]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
f57387d5 HT |
3 | Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | DevicePathFromText.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | --*/\r | |
19 | \r | |
20 | #ifndef _DEVICE_PATH_FROM_TEXT_PROTOCOL_H_\r | |
21 | #define _DEVICE_PATH_FROM_TEXT_PROTOCOL_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 | |
7ccf38a3 | 28 | 0x5c99a21, 0xc70f, 0x4ad2, {0x8a, 0x5f, 0x35, 0xdf, 0x33, 0x43, 0xf5, 0x1e} \\r |
3eb9473e | 29 | }\r |
30 | \r | |
31 | typedef\r | |
32 | EFI_DEVICE_PATH_PROTOCOL*\r | |
33 | (EFIAPI *EFI_DEVICE_PATH_FROM_TEXT_NODE) (\r | |
34 | IN CONST CHAR16 *TextDeviceNode\r | |
35 | )\r | |
36 | /*++\r | |
37 | \r | |
38 | Routine Description:\r | |
39 | Convert text to the binary representation of a device node.\r | |
40 | \r | |
41 | Arguments:\r | |
42 | TextDeviceNode - TextDeviceNode points to the text representation of a device\r | |
43 | node. Conversion starts with the first character and continues\r | |
44 | until the first non-device node character.\r | |
45 | \r | |
46 | Returns:\r | |
47 | A pointer - Pointer to the EFI device node.\r | |
48 | NULL - if TextDeviceNode is NULL or there was insufficient memory.\r | |
49 | \r | |
50 | --*/\r | |
51 | ; \r | |
52 | \r | |
53 | typedef\r | |
54 | EFI_DEVICE_PATH_PROTOCOL*\r | |
55 | (EFIAPI *EFI_DEVICE_PATH_FROM_TEXT_PATH) (\r | |
56 | IN CONST CHAR16 *TextDevicePath\r | |
57 | )\r | |
58 | /*++\r | |
59 | \r | |
60 | Routine Description:\r | |
61 | Convert text to the binary representation of a device path.\r | |
62 | \r | |
63 | Arguments:\r | |
64 | TextDevicePath - TextDevicePath points to the text representation of a device\r | |
65 | path. Conversion starts with the first character and continues\r | |
66 | until the first non-device node character.\r | |
67 | \r | |
68 | Returns:\r | |
69 | A pointer - Pointer to the allocated device path.\r | |
70 | NULL - if TextDeviceNode is NULL or there was insufficient memory.\r | |
71 | \r | |
72 | --*/\r | |
73 | ;\r | |
74 | \r | |
75 | typedef struct {\r | |
76 | EFI_DEVICE_PATH_FROM_TEXT_NODE ConvertTextToDeviceNode;\r | |
77 | EFI_DEVICE_PATH_FROM_TEXT_PATH ConvertTextToDevicePath;\r | |
78 | } EFI_DEVICE_PATH_FROM_TEXT_PROTOCOL;\r | |
79 | \r | |
80 | extern EFI_GUID gEfiDevicePathFromTextProtocolGuid;\r | |
81 | \r | |
82 | #endif\r |