]>
Commit | Line | Data |
---|---|---|
d1f95000 | 1 | /** @file\r |
2 | EFI_DEVICE_PATH_FROM_TEXT_PROTOCOL as defined in UEFI 2.0. \r | |
3 | This protocol provides service to convert text to device paths and device nodes.\r | |
4 | \r | |
9df063a0 HT |
5 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r |
6 | This program and the accompanying materials \r | |
d1f95000 | 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_FROM_TEXT_PROTOCOL_H__\r | |
17 | #define __DEVICE_PATH_FROM_TEXT_PROTOCOL_H__\r | |
18 | \r | |
99e8ed21 | 19 | ///\r |
20 | /// Device Path From Text protocol\r | |
21 | ///\r | |
d1f95000 | 22 | #define EFI_DEVICE_PATH_FROM_TEXT_PROTOCOL_GUID \\r |
23 | { \\r | |
24 | 0x5c99a21, 0xc70f, 0x4ad2, {0x8a, 0x5f, 0x35, 0xdf, 0x33, 0x43, 0xf5, 0x1e } \\r | |
25 | }\r | |
26 | \r | |
27 | /**\r | |
28 | Convert text to the binary representation of a device node.\r | |
29 | \r | |
30 | @param TextDeviceNode TextDeviceNode points to the text representation of a device\r | |
31 | node. Conversion starts with the first character and continues\r | |
32 | until the first non-device node character.\r | |
33 | \r | |
34 | @retval a_pointer Pointer to the EFI device node.\r | |
35 | @retval NULL if TextDeviceNode is NULL or there was insufficient memory.\r | |
36 | \r | |
37 | **/\r | |
38 | typedef\r | |
39 | EFI_DEVICE_PATH_PROTOCOL*\r | |
8b13229b | 40 | (EFIAPI *EFI_DEVICE_PATH_FROM_TEXT_NODE)(\r |
d1f95000 | 41 | IN CONST CHAR16 *TextDeviceNode\r |
ed66e1bc | 42 | ); \r |
d1f95000 | 43 | \r |
44 | \r | |
45 | /**\r | |
46 | Convert text to the binary representation of a device node.\r | |
47 | \r | |
48 | @param TextDeviceNode TextDevicePath points to the text representation of a device\r | |
49 | path. Conversion starts with the first character and continues\r | |
50 | until the first non-device path character.\r | |
51 | \r | |
52 | @retval a_pointer Pointer to the allocated device path.\r | |
53 | @retval NULL if TextDeviceNode is NULL or there was insufficient memory.\r | |
54 | \r | |
55 | **/\r | |
56 | typedef\r | |
57 | EFI_DEVICE_PATH_PROTOCOL*\r | |
8b13229b | 58 | (EFIAPI *EFI_DEVICE_PATH_FROM_TEXT_PATH)(\r |
d1f95000 | 59 | IN CONST CHAR16 *TextDevicePath\r |
ed66e1bc | 60 | ); \r |
4ca9b6c4 | 61 | \r |
44717a39 | 62 | ///\r |
63 | /// This protocol converts text to device paths and device nodes.\r | |
64 | ///\r | |
d1f95000 | 65 | typedef struct {\r |
66 | EFI_DEVICE_PATH_FROM_TEXT_NODE ConvertTextToDeviceNode;\r | |
67 | EFI_DEVICE_PATH_FROM_TEXT_PATH ConvertTextToDevicePath;\r | |
68 | } EFI_DEVICE_PATH_FROM_TEXT_PROTOCOL;\r | |
69 | \r | |
70 | extern EFI_GUID gEfiDevicePathFromTextProtocolGuid;\r | |
71 | \r | |
72 | #endif\r |