]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/DevicePathToText.h
Use doxygen comment style for document entity such as struct, enum, variable that...
[mirror_edk2.git] / MdePkg / Include / Protocol / DevicePathToText.h
CommitLineData
d1f95000 1/** @file\r
2 EFI_DEVICE_PATH_TO_TEXT_PROTOCOL as defined in UEFI 2.0. \r
3 This protocol provides service to convert device nodes and paths to text.\r
4\r
4ca9b6c4 5 Copyright (c) 2006 - 2008, Intel Corporation \r
d1f95000 6 All rights reserved. This program and the accompanying materials \r
7 are licensed and made available under the terms and conditions of the BSD License \r
8 which accompanies this distribution. The full text of the license may be found at \r
9 http://opensource.org/licenses/bsd-license.php \r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
13\r
d1f95000 14**/\r
15\r
16#ifndef __DEVICE_PATH_TO_TEXT_PROTOCOL_H__\r
17#define __DEVICE_PATH_TO_TEXT_PROTOCOL_H__\r
18\r
19#include <Protocol/DevicePath.h>\r
20\r
99e8ed21 21///\r
22/// Device Path To Text protocol\r
23///\r
d1f95000 24#define EFI_DEVICE_PATH_TO_TEXT_PROTOCOL_GUID \\r
25 { \\r
26 0x8b843e20, 0x8132, 0x4852, {0x90, 0xcc, 0x55, 0x1a, 0x4e, 0x4a, 0x7f, 0x1c } \\r
27 }\r
28\r
29/**\r
30 Convert a device node to its text representation.\r
31\r
32 @param DeviceNode Points to the device node to be converted.\r
33 @param DisplayOnly If DisplayOnly is TRUE, then the shorter text representation\r
34 of the display node is used, where applicable. If DisplayOnly\r
35 is FALSE, then the longer text representation of the display node\r
36 is used.\r
37 @param AllowShortcuts If AllowShortcuts is TRUE, then the shortcut forms of text\r
38 representation for a device node can be used, where applicable.\r
39\r
40 @retval a_pointer a pointer to the allocated text representation of the device node data\r
41 @retval NULL if DeviceNode is NULL or there was insufficient memory.\r
42\r
43**/\r
44typedef\r
45CHAR16*\r
8b13229b 46(EFIAPI *EFI_DEVICE_PATH_TO_TEXT_NODE)(\r
d1f95000 47 IN CONST EFI_DEVICE_PATH_PROTOCOL *DeviceNode,\r
48 IN BOOLEAN DisplayOnly,\r
49 IN BOOLEAN AllowShortcuts\r
50 )\r
51; \r
52\r
53/**\r
54 Convert a device path to its text representation.\r
55\r
56 @param DevicePath Points to the device path to be converted.\r
57 @param DisplayOnly If DisplayOnly is TRUE, then the shorter text representation\r
58 of the display node is used, where applicable. If DisplayOnly\r
59 is FALSE, then the longer text representation of the display node\r
60 is used. \r
61 @param AllowShortcuts The AllowShortcuts is FALSE, then the shortcut forms of\r
62 text representation for a device node cannot be used.\r
63\r
64 @retval a_pointer a pointer to the allocated text representation of the device node.\r
65 @retval NULL if DevicePath is NULL or there was insufficient memory.\r
66\r
67**/\r
68typedef\r
69CHAR16*\r
8b13229b 70(EFIAPI *EFI_DEVICE_PATH_TO_TEXT_PATH)(\r
d1f95000 71 IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,\r
72 IN BOOLEAN DisplayOnly,\r
73 IN BOOLEAN AllowShortcuts\r
74 )\r
75; \r
76\r
4ca9b6c4
LG
77/**\r
78 @par Protocol Description:\r
79 This protocol converts device paths and device nodes to text.\r
80\r
81 @param ConvertTextToDeviceNode\r
82 Convert the device node to text.\r
83 \r
84 @param ConvertTextToDevicePath\r
85 Convert the device path to text.\r
86 \r
87**/\r
d1f95000 88typedef struct {\r
89 EFI_DEVICE_PATH_TO_TEXT_NODE ConvertDeviceNodeToText;\r
90 EFI_DEVICE_PATH_TO_TEXT_PATH ConvertDevicePathToText;\r
91} EFI_DEVICE_PATH_TO_TEXT_PROTOCOL;\r
92\r
93extern EFI_GUID gEfiDevicePathToTextProtocolGuid;\r
94\r
95#endif\r
96\r
97\r