iPXE
DevicePathToText.h
Go to the documentation of this file.
1 /** @file
2  EFI_DEVICE_PATH_TO_TEXT_PROTOCOL as defined in UEFI 2.0.
3  This protocol provides service to convert device nodes and paths to text.
4 
5  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
6  SPDX-License-Identifier: BSD-2-Clause-Patent
7 
8 **/
9 
10 #ifndef __DEVICE_PATH_TO_TEXT_PROTOCOL_H__
11 #define __DEVICE_PATH_TO_TEXT_PROTOCOL_H__
12 
13 FILE_LICENCE ( BSD2_PATENT );
14 FILE_SECBOOT ( PERMITTED );
15 
16 ///
17 /// Device Path To Text protocol
18 ///
19 #define EFI_DEVICE_PATH_TO_TEXT_PROTOCOL_GUID \
20  { \
21  0x8b843e20, 0x8132, 0x4852, {0x90, 0xcc, 0x55, 0x1a, 0x4e, 0x4a, 0x7f, 0x1c } \
22  }
23 
24 /**
25  Convert a device node to its text representation.
26 
27  @param DeviceNode Points to the device node to be converted.
28  @param DisplayOnly If DisplayOnly is TRUE, then the shorter text representation
29  of the display node is used, where applicable. If DisplayOnly
30  is FALSE, then the longer text representation of the display node
31  is used.
32  @param AllowShortcuts If AllowShortcuts is TRUE, then the shortcut forms of text
33  representation for a device node can be used, where applicable.
34 
35  @retval a_pointer a pointer to the allocated text representation of the device node data
36  @retval NULL if DeviceNode is NULL or there was insufficient memory.
37 
38 **/
39 typedef
40 CHAR16 *
42  IN CONST EFI_DEVICE_PATH_PROTOCOL *DeviceNode,
43  IN BOOLEAN DisplayOnly,
44  IN BOOLEAN AllowShortcuts
45  );
46 
47 /**
48  Convert a device path to its text representation.
49 
50  @param DevicePath Points to the device path to be converted.
51  @param DisplayOnly If DisplayOnly is TRUE, then the shorter text representation
52  of the display node is used, where applicable. If DisplayOnly
53  is FALSE, then the longer text representation of the display node
54  is used.
55  @param AllowShortcuts The AllowShortcuts is FALSE, then the shortcut forms of
56  text representation for a device node cannot be used.
57 
58  @retval a_pointer a pointer to the allocated text representation of the device node.
59  @retval NULL if DevicePath is NULL or there was insufficient memory.
60 
61 **/
62 typedef
63 CHAR16 *
65  IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
66  IN BOOLEAN DisplayOnly,
67  IN BOOLEAN AllowShortcuts
68  );
69 
70 ///
71 /// This protocol converts device paths and device nodes to text.
72 ///
73 typedef struct {
77 
79 
80 #endif
CHAR16 *(EFIAPI * EFI_DEVICE_PATH_TO_TEXT_NODE)(IN CONST EFI_DEVICE_PATH_PROTOCOL *DeviceNode, IN BOOLEAN DisplayOnly, IN BOOLEAN AllowShortcuts)
Convert a device node to its text representation.
128 bit buffer containing a unique identifier value.
Definition: Base.h:216
unsigned char BOOLEAN
unsigned short CHAR16
This protocol can be used on any device handle to obtain generic path/location information concerning...
Definition: DevicePath.h:46
This protocol converts device paths and device nodes to text.
#define EFIAPI
EFI_DEVICE_PATH_TO_TEXT_NODE ConvertDeviceNodeToText
#define IN
Definition: mlx_utils.h:28
FILE_LICENCE(BSD2_PATENT)
FILE_SECBOOT(PERMITTED)
#define CONST
Datum is read-only.
Definition: Base.h:262
EFI_DEVICE_PATH_TO_TEXT_PATH ConvertDevicePathToText
EFI_GUID gEfiDevicePathToTextProtocolGuid
CHAR16 *(EFIAPI * EFI_DEVICE_PATH_TO_TEXT_PATH)(IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, IN BOOLEAN DisplayOnly, IN BOOLEAN AllowShortcuts)
Convert a device path to its text representation.