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#pragma once
11
12FILE_LICENCE ( BSD2_PATENT );
13FILE_SECBOOT ( PERMITTED );
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**/
38typedef
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**/
61typedef
65 IN BOOLEAN DisplayOnly,
66 IN BOOLEAN AllowShortcuts
67 );
68
69///
70/// This protocol converts device paths and device nodes to text.
71///
76
unsigned char BOOLEAN
Logical Boolean.
unsigned short CHAR16
2-byte Character.
#define EFIAPI
#define CONST
Datum is read-only.
Definition Base.h:261
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:921
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:951
#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:45
This protocol converts device paths and device nodes to text.
EFI_DEVICE_PATH_TO_TEXT_PATH ConvertDevicePathToText
EFI_DEVICE_PATH_TO_TEXT_NODE ConvertDeviceNodeToText