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
13FILE_LICENCE ( BSD2_PATENT );
14FILE_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**/
39typedef
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**/
62typedef
66 IN BOOLEAN DisplayOnly,
67 IN BOOLEAN AllowShortcuts
68 );
69
70///
71/// This protocol converts device paths and device nodes to text.
72///
77
79
80#endif
unsigned char BOOLEAN
Logical Boolean.
unsigned short CHAR16
2-byte Character.
#define EFIAPI
#define CONST
Datum is read-only.
Definition Base.h:262
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.
EFI_GUID gEfiDevicePathToTextProtocolGuid
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.
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
#define IN
Definition mlx_utils.h:28
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.
EFI_DEVICE_PATH_TO_TEXT_PATH ConvertDevicePathToText
EFI_DEVICE_PATH_TO_TEXT_NODE ConvertDeviceNodeToText