]>
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 | |
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 | |
14 | Module Name: DevicePathFromText.h\r | |
15 | \r | |
16 | **/\r | |
17 | \r | |
18 | #ifndef __DEVICE_PATH_FROM_TEXT_PROTOCOL_H__\r | |
19 | #define __DEVICE_PATH_FROM_TEXT_PROTOCOL_H__\r | |
20 | \r | |
21 | #include <Protocol/DevicePath.h>\r | |
22 | \r | |
23 | //\r | |
24 | // Device Path From Text protocol\r | |
25 | //\r | |
26 | #define EFI_DEVICE_PATH_FROM_TEXT_PROTOCOL_GUID \\r | |
27 | { \\r | |
28 | 0x5c99a21, 0xc70f, 0x4ad2, {0x8a, 0x5f, 0x35, 0xdf, 0x33, 0x43, 0xf5, 0x1e } \\r | |
29 | }\r | |
30 | \r | |
31 | /**\r | |
32 | Convert text to the binary representation of a device node.\r | |
33 | \r | |
34 | @param TextDeviceNode TextDeviceNode points to the text representation of a device\r | |
35 | node. Conversion starts with the first character and continues\r | |
36 | until the first non-device node character.\r | |
37 | \r | |
38 | @retval a_pointer Pointer to the EFI device node.\r | |
39 | @retval NULL if TextDeviceNode is NULL or there was insufficient memory.\r | |
40 | \r | |
41 | **/\r | |
42 | typedef\r | |
43 | EFI_DEVICE_PATH_PROTOCOL*\r | |
44 | (EFIAPI *EFI_DEVICE_PATH_FROM_TEXT_NODE) (\r | |
45 | IN CONST CHAR16 *TextDeviceNode\r | |
46 | )\r | |
47 | ; \r | |
48 | \r | |
49 | \r | |
50 | /**\r | |
51 | Convert text to the binary representation of a device node.\r | |
52 | \r | |
53 | @param TextDeviceNode TextDevicePath points to the text representation of a device\r | |
54 | path. Conversion starts with the first character and continues\r | |
55 | until the first non-device path character.\r | |
56 | \r | |
57 | @retval a_pointer Pointer to the allocated device path.\r | |
58 | @retval NULL if TextDeviceNode is NULL or there was insufficient memory.\r | |
59 | \r | |
60 | **/\r | |
61 | typedef\r | |
62 | EFI_DEVICE_PATH_PROTOCOL*\r | |
63 | (EFIAPI *EFI_DEVICE_PATH_FROM_TEXT_PATH) (\r | |
64 | IN CONST CHAR16 *TextDevicePath\r | |
65 | )\r | |
66 | ; \r | |
67 | \r | |
68 | typedef struct {\r | |
69 | EFI_DEVICE_PATH_FROM_TEXT_NODE ConvertTextToDeviceNode;\r | |
70 | EFI_DEVICE_PATH_FROM_TEXT_PATH ConvertTextToDevicePath;\r | |
71 | } EFI_DEVICE_PATH_FROM_TEXT_PROTOCOL;\r | |
72 | \r | |
73 | extern EFI_GUID gEfiDevicePathFromTextProtocolGuid;\r | |
74 | \r | |
75 | #endif\r |