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 
15 ///
16 /// Device Path To Text protocol
17 ///
18 #define EFI_DEVICE_PATH_TO_TEXT_PROTOCOL_GUID \
19  { \
20  0x8b843e20, 0x8132, 0x4852, {0x90, 0xcc, 0x55, 0x1a, 0x4e, 0x4a, 0x7f, 0x1c } \
21  }
22 
23 /**
24  Convert a device node to its text representation.
25 
26  @param DeviceNode Points to the device node to be converted.
27  @param DisplayOnly If DisplayOnly is TRUE, then the shorter text representation
28  of the display node is used, where applicable. If DisplayOnly
29  is FALSE, then the longer text representation of the display node
30  is used.
31  @param AllowShortcuts If AllowShortcuts is TRUE, then the shortcut forms of text
32  representation for a device node can be used, where applicable.
33 
34  @retval a_pointer a pointer to the allocated text representation of the device node data
35  @retval NULL if DeviceNode is NULL or there was insufficient memory.
36 
37 **/
38 typedef
39 CHAR16 *
41  IN CONST EFI_DEVICE_PATH_PROTOCOL *DeviceNode,
42  IN BOOLEAN DisplayOnly,
43  IN BOOLEAN AllowShortcuts
44  );
45 
46 /**
47  Convert a device path to its text representation.
48 
49  @param DevicePath Points to the device path to be converted.
50  @param DisplayOnly If DisplayOnly is TRUE, then the shorter text representation
51  of the display node is used, where applicable. If DisplayOnly
52  is FALSE, then the longer text representation of the display node
53  is used.
54  @param AllowShortcuts The AllowShortcuts is FALSE, then the shortcut forms of
55  text representation for a device node cannot be used.
56 
57  @retval a_pointer a pointer to the allocated text representation of the device node.
58  @retval NULL if DevicePath is NULL or there was insufficient memory.
59 
60 **/
61 typedef
62 CHAR16 *
64  IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
65  IN BOOLEAN DisplayOnly,
66  IN BOOLEAN AllowShortcuts
67  );
68 
69 ///
70 /// This protocol converts device paths and device nodes to text.
71 ///
72 typedef struct {
76 
78 
79 #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:215
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:45
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)
#define CONST
Datum is read-only.
Definition: Base.h:261
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.