]>
Commit | Line | Data |
---|---|---|
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 | |
5 | Copyright (c) 2006, Intel Corporation \r | |
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 | |
21 | //\r | |
22 | // Device Path To Text protocol\r | |
23 | //\r | |
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 | |
44 | typedef\r | |
45 | CHAR16*\r | |
46 | (EFIAPI *EFI_DEVICE_PATH_TO_TEXT_NODE) (\r | |
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 | |
68 | typedef\r | |
69 | CHAR16*\r | |
70 | (EFIAPI *EFI_DEVICE_PATH_TO_TEXT_PATH) (\r | |
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 | |
77 | typedef struct {\r | |
78 | EFI_DEVICE_PATH_TO_TEXT_NODE ConvertDeviceNodeToText;\r | |
79 | EFI_DEVICE_PATH_TO_TEXT_PATH ConvertDevicePathToText;\r | |
80 | } EFI_DEVICE_PATH_TO_TEXT_PROTOCOL;\r | |
81 | \r | |
82 | extern EFI_GUID gEfiDevicePathToTextProtocolGuid;\r | |
83 | \r | |
84 | #endif\r | |
85 | \r | |
86 | \r |