]>
Commit | Line | Data |
---|---|---|
d1f95000 | 1 | /** @file\r |
8a7d75b0 | 2 | The device path protocol as defined in UEFI 2.0.\r |
959ccb23 | 3 | \r |
d1f95000 | 4 | The device path represents a programatic path to a device. It's the view\r |
5 | from a software point of view. It also must persist from boot to boot, so \r | |
6 | it can not contain things like PCI bus numbers that change from boot to boot.\r | |
959ccb23 | 7 | \r |
4ca9b6c4 | 8 | Copyright (c) 2006 - 2008, Intel Corporation \r |
d1f95000 | 9 | All rights reserved. This program and the accompanying materials \r |
10 | are licensed and made available under the terms and conditions of the BSD License \r | |
11 | which accompanies this distribution. The full text of the license may be found at \r | |
12 | http://opensource.org/licenses/bsd-license.php \r | |
959ccb23 | 13 | \r |
d1f95000 | 14 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r |
15 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
959ccb23 | 16 | \r |
959ccb23 | 17 | **/\r |
18 | \r | |
d1f95000 | 19 | #ifndef __EFI_DEVICE_PATH_PROTOCOL_H__\r |
20 | #define __EFI_DEVICE_PATH_PROTOCOL_H__\r | |
21 | \r | |
b25e8149 | 22 | #include <Guid/PcAnsi.h>\r |
23 | \r | |
99e8ed21 | 24 | ///\r |
25 | /// Device Path protocol\r | |
26 | ///\r | |
d1f95000 | 27 | #define EFI_DEVICE_PATH_PROTOCOL_GUID \\r |
28 | { \\r | |
29 | 0x9576e91, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \\r | |
30 | }\r | |
959ccb23 | 31 | \r |
a6508c05 | 32 | //\r |
33 | // Protocol GUID defined in EFI1.1.\r | |
34 | // \r | |
35 | \r | |
99e8ed21 | 36 | ///\r |
37 | /// Device Path information\r | |
38 | ///\r | |
a6508c05 | 39 | #define DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH_PROTOCOL_GUID\r |
959ccb23 | 40 | \r |
41 | #pragma pack(1)\r | |
42 | \r | |
2d824143 | 43 | /**\r |
44 | This protocol can be used on any device handle to obtain generic path/location \r | |
45 | information concerning the physical device or logical device. If the handle does \r | |
46 | not logically map to a physical device, the handle may not necessarily support \r | |
47 | the device path protocol. The device path describes the location of the device \r | |
48 | the handle is for. The size of the Device Path can be determined from the structures \r | |
49 | that make up the Device Path.\r | |
50 | **/\r | |
d1f95000 | 51 | typedef struct {\r |
842a119d | 52 | UINT8 Type; ///< 0x01 Hardware Device Path\r |
53 | ///< 0x02 ACPI Device Path\r | |
54 | ///< 0x03 Messaging Device Path\r | |
55 | ///< 0x04 Media Device Path\r | |
56 | ///< 0x05 BIOS Boot Specification Device Path\r | |
57 | ///< 0x7F End of Hardware Device Path\r | |
2d824143 | 58 | \r |
59 | UINT8 SubType; ///< Varies by Type\r | |
842a119d | 60 | ///< 0xFF End Entire Device Path, or\r |
61 | ///< 0x01 End This Instance of a Device Path and start a new\r | |
2d824143 | 62 | ///< Device Path\r |
63 | \r | |
64 | UINT8 Length[2]; ///< Specific Device Path data. Type and Sub-Type define\r | |
65 | ///< type of data. Size of data is included in Length.\r | |
66 | \r | |
d1f95000 | 67 | } EFI_DEVICE_PATH_PROTOCOL;\r |
68 | \r | |
99e8ed21 | 69 | ///\r |
70 | /// For backward-compatible with EFI1.1.\r | |
71 | /// \r | |
a6508c05 | 72 | typedef EFI_DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH;\r |
73 | \r | |
99e8ed21 | 74 | ///\r |
75 | /// Hardware Device Paths\r | |
76 | ///\r | |
959ccb23 | 77 | #define HARDWARE_DEVICE_PATH 0x01\r |
78 | \r | |
f1004231 LG |
79 | ///\r |
80 | /// PCI Device Path\r | |
81 | ///\r | |
959ccb23 | 82 | #define HW_PCI_DP 0x01\r |
83 | typedef struct {\r | |
84 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
85 | ///\r |
86 | /// PCI Function Number\r | |
87 | ///\r | |
959ccb23 | 88 | UINT8 Function;\r |
f1004231 LG |
89 | ///\r |
90 | /// PCI Device Number\r | |
91 | ///\r | |
959ccb23 | 92 | UINT8 Device;\r |
93 | } PCI_DEVICE_PATH;\r | |
94 | \r | |
f1004231 LG |
95 | ///\r |
96 | /// PCCARD Device Path\r | |
97 | ///\r | |
959ccb23 | 98 | #define HW_PCCARD_DP 0x02\r |
99 | typedef struct {\r | |
100 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
101 | ///\r |
102 | /// Function Number (0 = First Function)\r | |
103 | ///\r | |
959ccb23 | 104 | UINT8 FunctionNumber;\r |
105 | } PCCARD_DEVICE_PATH;\r | |
106 | \r | |
f1004231 LG |
107 | ///\r |
108 | /// Memory Mapped Device Path\r | |
109 | ///\r | |
959ccb23 | 110 | #define HW_MEMMAP_DP 0x03\r |
111 | typedef struct {\r | |
112 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
113 | ///\r |
114 | /// EFI_MEMORY_TYPE\r | |
115 | ///\r | |
959ccb23 | 116 | UINT32 MemoryType;\r |
f1004231 LG |
117 | ///\r |
118 | /// Starting Memory Address.\r | |
119 | ///\r | |
959ccb23 | 120 | EFI_PHYSICAL_ADDRESS StartingAddress;\r |
f1004231 LG |
121 | ///\r |
122 | /// Ending Memory Address\r | |
123 | ///\r | |
959ccb23 | 124 | EFI_PHYSICAL_ADDRESS EndingAddress;\r |
125 | } MEMMAP_DEVICE_PATH;\r | |
126 | \r | |
f1004231 LG |
127 | ///\r |
128 | /// The Vendor Device Path allows the creation of vendor-defined Device Paths. A vendor must\r | |
129 | /// allocate a Vendor GUID for a Device Path. The Vendor GUID can then be used to define the\r | |
130 | /// contents on the n bytes that follow in the Vendor Device Path node.\r | |
131 | ///\r | |
959ccb23 | 132 | #define HW_VENDOR_DP 0x04\r |
133 | typedef struct {\r | |
134 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
135 | ///\r |
136 | /// Vendor-assigned GUID that defines the data that follows.\r | |
137 | ///\r | |
959ccb23 | 138 | EFI_GUID Guid;\r |
f1004231 LG |
139 | ///\r |
140 | /// Vendor-defined variable size data.\r | |
141 | ///\r | |
959ccb23 | 142 | } VENDOR_DEVICE_PATH;\r |
143 | \r | |
f1004231 LG |
144 | ///\r |
145 | /// Controller Device Path\r | |
146 | ///\r | |
959ccb23 | 147 | #define HW_CONTROLLER_DP 0x05\r |
148 | typedef struct {\r | |
149 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
150 | ///\r |
151 | /// Controller number.\r | |
152 | ///\r | |
959ccb23 | 153 | UINT32 ControllerNumber;\r |
154 | } CONTROLLER_DEVICE_PATH;\r | |
155 | \r | |
99e8ed21 | 156 | ///\r |
157 | /// ACPI Device Paths\r | |
158 | ///\r | |
959ccb23 | 159 | #define ACPI_DEVICE_PATH 0x02\r |
160 | \r | |
f1004231 LG |
161 | ///\r |
162 | /// ACPI Device Path\r | |
163 | ///\r | |
959ccb23 | 164 | #define ACPI_DP 0x01\r |
165 | typedef struct {\r | |
166 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
167 | ///\r |
168 | /// Device's PnP hardware ID stored in a numeric 32-bit\r | |
169 | /// compressed EISA-type ID. This value must match the\r | |
170 | /// corresponding _HID in the ACPI name space.\r | |
171 | ///\r | |
959ccb23 | 172 | UINT32 HID;\r |
f1004231 LG |
173 | ///\r |
174 | /// Unique ID that is required by ACPI if two devices have the\r | |
175 | /// same _HID. This value must also match the corresponding\r | |
176 | /// _UID/_HID pair in the ACPI name space. Only the 32-bit\r | |
177 | /// numeric value type of _UID is supported; thus strings must\r | |
178 | /// not be used for the _UID in the ACPI name space.\r | |
179 | ///\r | |
959ccb23 | 180 | UINT32 UID;\r |
181 | } ACPI_HID_DEVICE_PATH;\r | |
182 | \r | |
f1004231 LG |
183 | ///\r |
184 | /// Expanded ACPI Device Path.\r | |
185 | ///\r | |
959ccb23 | 186 | #define ACPI_EXTENDED_DP 0x02\r |
187 | typedef struct {\r | |
188 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
189 | ///\r |
190 | /// Device's PnP hardware ID stored in a numeric 32-bit\r | |
191 | /// compressed EISA-type ID. This value must match the\r | |
192 | /// corresponding _HID in the ACPI name space.\r | |
193 | ///\r | |
959ccb23 | 194 | UINT32 HID;\r |
f1004231 LG |
195 | ///\r |
196 | /// Unique ID that is required by ACPI if two devices have the\r | |
197 | /// same _HID. This value must also match the corresponding\r | |
198 | /// _UID/_HID pair in the ACPI name space.\r | |
199 | ///\r | |
959ccb23 | 200 | UINT32 UID;\r |
f1004231 | 201 | ///\r |
cd2ed84a | 202 | /// Device's compatible PnP hardware ID stored in a numeric\r |
f1004231 LG |
203 | /// 32-bit compressed EISA-type ID. This value must match at\r |
204 | /// least one of the compatible device IDs returned by the\r | |
205 | /// corresponding _CID in the ACPI name space.\r | |
206 | ///\r | |
959ccb23 | 207 | UINT32 CID;\r |
99e8ed21 | 208 | ///\r |
209 | /// Optional variable length _HIDSTR\r | |
210 | /// Optional variable length _UIDSTR\r | |
39099938 | 211 | /// Optional variable length _CIDSTR\r |
99e8ed21 | 212 | ///\r |
959ccb23 | 213 | } ACPI_EXTENDED_HID_DEVICE_PATH;\r |
214 | \r | |
215 | //\r | |
216 | // EISA ID Macro\r | |
217 | // EISA ID Definition 32-bits\r | |
218 | // bits[15:0] - three character compressed ASCII EISA ID.\r | |
219 | // bits[31:16] - binary number\r | |
220 | // Compressed ASCII is 5 bits per character 0b00001 = 'A' 0b11010 = 'Z'\r | |
221 | //\r | |
222 | #define PNP_EISA_ID_CONST 0x41d0\r | |
8b13229b | 223 | #define EISA_ID(_Name, _Num) ((UINT32)((_Name) | (_Num) << 16))\r |
959ccb23 | 224 | #define EISA_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))\r |
225 | #define EFI_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))\r | |
226 | \r | |
227 | #define PNP_EISA_ID_MASK 0xffff\r | |
228 | #define EISA_ID_TO_NUM(_Id) ((_Id) >> 16)\r | |
229 | \r | |
230 | \r | |
f1004231 LG |
231 | ///\r |
232 | /// The _ADR device path is used to contain video output device attributes to support the Graphics\r | |
233 | /// Output Protocol. The device path can contain multiple _ADR entries if multiple video output\r | |
234 | /// devices are displaying the same output.\r | |
235 | ///\r | |
959ccb23 | 236 | #define ACPI_ADR_DP 0x03\r |
237 | typedef struct {\r | |
238 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
239 | ///\r |
240 | /// _ADR value. For video output devices the value of this\r | |
241 | /// field comes from Table B-2 ACPI 3.0 specification. At\r | |
242 | /// least one _ADR value is required.\r | |
243 | ///\r | |
959ccb23 | 244 | UINT32 ADR;\r |
f1004231 LG |
245 | ///\r |
246 | /// This device path may optionally contain more than one _ADR entry.\r | |
247 | ///\r | |
959ccb23 | 248 | } ACPI_ADR_DEVICE_PATH;\r |
249 | \r | |
fbbe00ad | 250 | #define ACPI_ADR_DISPLAY_TYPE_OTHER 0\r |
251 | #define ACPI_ADR_DISPLAY_TYPE_VGA 1\r | |
252 | #define ACPI_ADR_DISPLAY_TYPE_TV 2\r | |
253 | #define ACPI_ADR_DISPLAY_TYPE_EXTERNAL_DIGITAL 3\r | |
254 | #define ACPI_ADR_DISPLAY_TYPE_INTERNAL_DIGITAL 4\r | |
255 | \r | |
256 | #define ACPI_DISPLAY_ADR(_DeviceIdScheme, _HeadId, _NonVgaOutput, _BiosCanDetect, _VendorInfo, _Type, _Port, _Index) \\r | |
8b13229b | 257 | ((UINT32)( (((_DeviceIdScheme) & 0x1) << 31) | \\r |
fbbe00ad | 258 | (((_HeadId) & 0x7) << 18) | \\r |
259 | (((_NonVgaOutput) & 0x1) << 17) | \\r | |
260 | (((_BiosCanDetect) & 0x1) << 16) | \\r | |
261 | (((_VendorInfo) & 0xf) << 12) | \\r | |
262 | (((_Type) & 0xf) << 8) | \\r | |
263 | (((_Port) & 0xf) << 4) | \\r | |
264 | ((_Index) & 0xf) ))\r | |
959ccb23 | 265 | \r |
99e8ed21 | 266 | ///\r |
267 | /// Messaging Device Paths\r | |
f1004231 LG |
268 | /// This Device Path is used to describe the connection of devices outside the resource domain of the\r |
269 | /// system. This Device Path can describe physical messaging information like SCSI ID, or abstract\r | |
270 | /// information like networking protocol IP addresses.\r | |
99e8ed21 | 271 | ///\r |
959ccb23 | 272 | #define MESSAGING_DEVICE_PATH 0x03\r |
273 | \r | |
f1004231 LG |
274 | ///\r |
275 | /// ATAPI Device Path\r | |
276 | ///\r | |
959ccb23 | 277 | #define MSG_ATAPI_DP 0x01\r |
278 | typedef struct {\r | |
279 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
280 | ///\r |
281 | /// Set to zero for primary or one for secondary\r | |
282 | ///\r | |
959ccb23 | 283 | UINT8 PrimarySecondary;\r |
f1004231 LG |
284 | ///\r |
285 | /// Set to zero for master or one for slave mode\r | |
286 | ///\r | |
959ccb23 | 287 | UINT8 SlaveMaster;\r |
f1004231 LG |
288 | ///\r |
289 | /// Logical Unit Number\r | |
290 | ///\r | |
959ccb23 | 291 | UINT16 Lun;\r |
292 | } ATAPI_DEVICE_PATH;\r | |
293 | \r | |
f1004231 LG |
294 | ///\r |
295 | /// SCSI Device Path\r | |
296 | ///\r | |
959ccb23 | 297 | #define MSG_SCSI_DP 0x02\r |
298 | typedef struct {\r | |
299 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
300 | ///\r |
301 | /// Target ID on the SCSI bus (PUN)\r | |
302 | ///\r | |
959ccb23 | 303 | UINT16 Pun;\r |
f1004231 LG |
304 | ///\r |
305 | /// Logical Unit Number (LUN)\r | |
306 | ///\r | |
959ccb23 | 307 | UINT16 Lun;\r |
308 | } SCSI_DEVICE_PATH;\r | |
309 | \r | |
f1004231 LG |
310 | ///\r |
311 | /// Fibre Channel\r | |
312 | ///\r | |
959ccb23 | 313 | #define MSG_FIBRECHANNEL_DP 0x03\r |
314 | typedef struct {\r | |
315 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
316 | ///\r |
317 | /// Reserved for the future.\r | |
318 | ///\r | |
959ccb23 | 319 | UINT32 Reserved;\r |
f1004231 LG |
320 | ///\r |
321 | /// Fibre Channel World Wide Number.\r | |
322 | ///\r | |
959ccb23 | 323 | UINT64 WWN;\r |
f1004231 LG |
324 | ///\r |
325 | /// Fibre Channel Logical Unit Number.\r | |
326 | ///\r | |
959ccb23 | 327 | UINT64 Lun;\r |
328 | } FIBRECHANNEL_DEVICE_PATH;\r | |
329 | \r | |
f1004231 LG |
330 | ///\r |
331 | /// 1394 Device Path\r | |
332 | ///\r | |
959ccb23 | 333 | #define MSG_1394_DP 0x04\r |
334 | typedef struct {\r | |
335 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
336 | ///\r |
337 | /// Reserved for the future.\r | |
338 | ///\r | |
959ccb23 | 339 | UINT32 Reserved;\r |
f1004231 LG |
340 | ///\r |
341 | /// 1394 Global Unique ID (GUID).\r | |
342 | ///\r | |
959ccb23 | 343 | UINT64 Guid;\r |
344 | } F1394_DEVICE_PATH;\r | |
345 | \r | |
f1004231 LG |
346 | ///\r |
347 | /// USB Device Path\r | |
348 | ///\r | |
959ccb23 | 349 | #define MSG_USB_DP 0x05\r |
350 | typedef struct {\r | |
f1004231 LG |
351 | EFI_DEVICE_PATH_PROTOCOL Header;\r |
352 | ///\r | |
353 | /// USB Parent Port Number\r | |
354 | ///\r | |
355 | UINT8 ParentPortNumber;\r | |
356 | ///\r | |
357 | /// USB Interface Number\r | |
358 | ///\r | |
359 | UINT8 InterfaceNumber;\r | |
959ccb23 | 360 | } USB_DEVICE_PATH;\r |
361 | \r | |
f1004231 LG |
362 | ///\r |
363 | /// USB Class Device Path\r | |
364 | ///\r | |
959ccb23 | 365 | #define MSG_USB_CLASS_DP 0x0f\r |
366 | typedef struct {\r | |
f1004231 LG |
367 | EFI_DEVICE_PATH_PROTOCOL Header;\r |
368 | ///\r | |
369 | /// Vendor ID assigned by USB-IF. A value of 0xFFFF will\r | |
370 | /// match any Vendor ID.\r | |
371 | ///\r | |
372 | UINT16 VendorId;\r | |
373 | ///\r | |
374 | /// Product ID assigned by USB-IF. A value of 0xFFFF will\r | |
375 | /// match any Product ID.\r | |
376 | ///\r | |
377 | UINT16 ProductId;\r | |
378 | ///\r | |
379 | /// The class code assigned by the USB-IF. A value of 0xFF\r | |
380 | /// will match any class code.\r | |
381 | ///\r | |
382 | UINT8 DeviceClass;\r | |
383 | ///\r | |
384 | /// The subclass code assigned by the USB-IF. A value of\r | |
385 | /// 0xFF will match any subclass code.\r | |
386 | ///\r | |
387 | UINT8 DeviceSubClass;\r | |
388 | ///\r | |
389 | /// The protocol code assigned by the USB-IF. A value of\r | |
390 | /// 0xFF will match any protocol code.\r | |
391 | ///\r | |
392 | UINT8 DeviceProtocol;\r | |
959ccb23 | 393 | } USB_CLASS_DEVICE_PATH;\r |
394 | \r | |
f1004231 LG |
395 | ///\r |
396 | /// This device path describes a USB device using its serial number.\r | |
397 | /// USB WWID Device Path\r | |
398 | ///\r | |
959ccb23 | 399 | #define MSG_USB_WWID_DP 0x10\r |
400 | typedef struct {\r | |
f1004231 LG |
401 | EFI_DEVICE_PATH_PROTOCOL Header;\r |
402 | ///\r | |
403 | /// USB interface number\r | |
404 | ///\r | |
405 | UINT16 InterfaceNumber;\r | |
406 | ///\r | |
407 | /// USB vendor id of the device\r | |
408 | ///\r | |
409 | UINT16 VendorId;\r | |
410 | ///\r | |
411 | /// USB product id of the device\r | |
412 | ///\r | |
413 | UINT16 ProductId;\r | |
414 | ///\r | |
415 | /// Last 64-or-fewer UTF-16 characters of the USB\r | |
416 | /// serial number. The length of the string is\r | |
417 | /// determined by the Length field less the offset of the\r | |
418 | /// Serial Number field (10)\r | |
419 | ///\r | |
420 | /// CHAR16 SerialNumber[...];\r | |
959ccb23 | 421 | } USB_WWID_DEVICE_PATH;\r |
422 | \r | |
f1004231 LG |
423 | ///\r |
424 | /// Device Logical Unit\r | |
425 | ///\r | |
959ccb23 | 426 | #define MSG_DEVICE_LOGICAL_UNIT_DP 0x11\r |
427 | typedef struct {\r | |
f1004231 LG |
428 | EFI_DEVICE_PATH_PROTOCOL Header;\r |
429 | ///\r | |
430 | /// Logical Unit Number for the interface\r | |
431 | ///\r | |
432 | UINT8 Lun;\r | |
959ccb23 | 433 | } DEVICE_LOGICAL_UNIT_DEVICE_PATH;\r |
434 | \r | |
f1004231 LG |
435 | ///\r |
436 | /// SATA Device Path\r | |
437 | ///\r | |
00edb218 | 438 | #define MSG_SATA_DP 0x12\r |
959ccb23 | 439 | typedef struct {\r |
00edb218 | 440 | EFI_DEVICE_PATH_PROTOCOL Header;\r |
f1004231 LG |
441 | ///\r |
442 | /// The HBA port number that facilitates the connection to the\r | |
443 | /// device or a port multiplier. The value 0xFFFF is reserved.\r | |
444 | ///\r | |
7d582d6b | 445 | UINT16 HBAPortNumber;\r |
f1004231 LG |
446 | ///\r |
447 | /// The Port multiplier port number that facilitates the connection\r | |
448 | /// to the device. Bit 15 should be set if the device is directly\r | |
449 | /// connected to the HBA.\r | |
450 | ///\r | |
7d582d6b | 451 | UINT16 PortMultiplierPortNumber;\r |
f1004231 LG |
452 | ///\r |
453 | /// Logical Unit Number.\r | |
454 | ///\r | |
7d582d6b | 455 | UINT16 Lun;\r |
959ccb23 | 456 | } SATA_DEVICE_PATH;\r |
457 | \r | |
f1004231 LG |
458 | ///\r |
459 | /// I2O Device Path \r | |
460 | ///\r | |
959ccb23 | 461 | #define MSG_I2O_DP 0x06\r |
462 | typedef struct {\r | |
463 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
464 | ///\r |
465 | /// Target ID (TID) for a device\r | |
466 | ///\r | |
959ccb23 | 467 | UINT32 Tid;\r |
468 | } I2O_DEVICE_PATH;\r | |
469 | \r | |
f1004231 LG |
470 | ///\r |
471 | /// MAC Address Device Path\r | |
472 | ///\r | |
959ccb23 | 473 | #define MSG_MAC_ADDR_DP 0x0b\r |
474 | typedef struct {\r | |
475 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
476 | ///\r |
477 | /// The MAC address for a network interface padded with 0s\r | |
478 | ///\r | |
959ccb23 | 479 | EFI_MAC_ADDRESS MacAddress;\r |
f1004231 LG |
480 | ///\r |
481 | /// Network interface type(i.e. 802.3, FDDI).\r | |
482 | ///\r | |
959ccb23 | 483 | UINT8 IfType;\r |
484 | } MAC_ADDR_DEVICE_PATH;\r | |
485 | \r | |
f1004231 LG |
486 | ///\r |
487 | /// IPv4 Device Path\r | |
488 | ///\r | |
959ccb23 | 489 | #define MSG_IPv4_DP 0x0c\r |
490 | typedef struct {\r | |
491 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
492 | ///\r |
493 | /// The local IPv4 address\r | |
494 | ///\r | |
959ccb23 | 495 | EFI_IPv4_ADDRESS LocalIpAddress;\r |
f1004231 LG |
496 | ///\r |
497 | /// The remote IPv4 address\r | |
498 | ///\r | |
959ccb23 | 499 | EFI_IPv4_ADDRESS RemoteIpAddress;\r |
f1004231 LG |
500 | ///\r |
501 | /// The local port number\r | |
502 | ///\r | |
959ccb23 | 503 | UINT16 LocalPort;\r |
f1004231 LG |
504 | ///\r |
505 | /// The remote port number\r | |
506 | ///\r | |
959ccb23 | 507 | UINT16 RemotePort;\r |
f1004231 LG |
508 | ///\r |
509 | /// The network protocol(i.e. UDP, TCP).\r | |
510 | ///\r | |
959ccb23 | 511 | UINT16 Protocol;\r |
f1004231 LG |
512 | ///\r |
513 | /// 0x00 - The Source IP Address was assigned though DHCP\r | |
514 | /// 0x01 - The Source IP Address is statically bound\r | |
515 | ///\r | |
959ccb23 | 516 | BOOLEAN StaticIpAddress;\r |
517 | } IPv4_DEVICE_PATH;\r | |
518 | \r | |
f1004231 LG |
519 | ///\r |
520 | /// IPv6 Device Path\r | |
521 | ///\r | |
959ccb23 | 522 | #define MSG_IPv6_DP 0x0d\r |
523 | typedef struct {\r | |
524 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
525 | ///\r |
526 | /// The local IPv6 address\r | |
527 | ///\r | |
959ccb23 | 528 | EFI_IPv6_ADDRESS LocalIpAddress;\r |
f1004231 LG |
529 | ///\r |
530 | /// The remote IPv6 address\r | |
531 | ///\r | |
959ccb23 | 532 | EFI_IPv6_ADDRESS RemoteIpAddress;\r |
f1004231 LG |
533 | ///\r |
534 | /// The local port number\r | |
535 | ///\r | |
959ccb23 | 536 | UINT16 LocalPort;\r |
f1004231 LG |
537 | ///\r |
538 | /// The remote port number\r | |
539 | ///\r | |
959ccb23 | 540 | UINT16 RemotePort;\r |
f1004231 LG |
541 | ///\r |
542 | /// The network protocol(i.e. UDP, TCP).\r | |
543 | ///\r | |
959ccb23 | 544 | UINT16 Protocol;\r |
f1004231 LG |
545 | ///\r |
546 | /// 0x00 - The Source IP Address was assigned though DHCP\r | |
547 | /// 0x01 - The Source IP Address is statically bound\r | |
548 | ///\r | |
959ccb23 | 549 | BOOLEAN StaticIpAddress;\r |
550 | } IPv6_DEVICE_PATH;\r | |
551 | \r | |
f1004231 LG |
552 | ///\r |
553 | /// InfiniBand Device Path\r | |
554 | ///\r | |
959ccb23 | 555 | #define MSG_INFINIBAND_DP 0x09\r |
556 | typedef struct {\r | |
557 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
558 | ///\r |
559 | /// Flags to help identify/manage InfiniBand device path elements:\r | |
cd2ed84a | 560 | /// Bit 0 - IOC/Service (0b = IOC, 1b = Service)\r |
561 | /// Bit 1 - Extend Boot Environment\r | |
562 | /// Bit 2 - Console Protocol\r | |
563 | /// Bit 3 - Storage Protocol\r | |
564 | /// Bit 4 - Network Protocol\r | |
f1004231 LG |
565 | /// All other bits are reserved.\r |
566 | ///\r | |
959ccb23 | 567 | UINT32 ResourceFlags;\r |
f1004231 LG |
568 | ///\r |
569 | /// 128-bit Global Identifier for remote fabric port\r | |
570 | ///\r | |
959ccb23 | 571 | UINT8 PortGid[16];\r |
f1004231 LG |
572 | ///\r |
573 | /// 64-bit unique identifier to remote IOC or server process.\r | |
574 | /// Interpretation of field specified by Resource Flags (bit 0)\r | |
575 | ///\r | |
959ccb23 | 576 | UINT64 ServiceId;\r |
f1004231 LG |
577 | ///\r |
578 | /// 64-bit persistent ID of remote IOC port\r | |
579 | ///\r | |
959ccb23 | 580 | UINT64 TargetPortId;\r |
f1004231 LG |
581 | ///\r |
582 | /// 64-bit persistent ID of remote device\r | |
583 | ///\r | |
959ccb23 | 584 | UINT64 DeviceId;\r |
585 | } INFINIBAND_DEVICE_PATH;\r | |
586 | \r | |
587 | #define INFINIBAND_RESOURCE_FLAG_IOC_SERVICE 0x01\r | |
588 | #define INFINIBAND_RESOURCE_FLAG_EXTENDED_BOOT_ENVIRONMENT 0x02\r | |
589 | #define INFINIBAND_RESOURCE_FLAG_CONSOLE_PROTOCOL 0x04\r | |
590 | #define INFINIBAND_RESOURCE_FLAG_STORAGE_PROTOCOL 0x08\r | |
591 | #define INFINIBAND_RESOURCE_FLAG_NETWORK_PROTOCOL 0x10\r | |
592 | \r | |
f1004231 LG |
593 | ///\r |
594 | /// UART Device Path\r | |
595 | ///\r | |
959ccb23 | 596 | #define MSG_UART_DP 0x0e\r |
597 | typedef struct {\r | |
598 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
599 | ///\r |
600 | /// Reserved\r | |
601 | ///\r | |
959ccb23 | 602 | UINT32 Reserved;\r |
f1004231 LG |
603 | ///\r |
604 | /// The baud rate setting for the UART style device. A value of 0\r | |
605 | /// means that the device's default baud rate will be used.\r | |
606 | ///\r | |
959ccb23 | 607 | UINT64 BaudRate;\r |
f1004231 LG |
608 | ///\r |
609 | /// The number of data bits for the UART style device. A value\r | |
610 | /// of 0 means that the device's default number of data bits will be used.\r | |
611 | ///\r | |
959ccb23 | 612 | UINT8 DataBits;\r |
f1004231 LG |
613 | ///\r |
614 | /// The parity setting for the UART style device.\r | |
615 | /// Parity 0x00 - Default Parity\r | |
616 | /// Parity 0x01 - No Parity\r | |
617 | /// Parity 0x02 - Even Parity\r | |
618 | /// Parity 0x03 - Odd Parity\r | |
619 | /// Parity 0x04 - Mark Parity\r | |
620 | /// Parity 0x05 - Space Parity\r | |
621 | ///\r | |
959ccb23 | 622 | UINT8 Parity;\r |
f1004231 LG |
623 | ///\r |
624 | /// The number of stop bits for the UART style device.\r | |
625 | /// Stop Bits 0x00 - Default Stop Bits\r | |
626 | /// Stop Bits 0x01 - 1 Stop Bit\r | |
627 | /// Stop Bits 0x02 - 1.5 Stop Bits\r | |
628 | /// Stop Bits 0x03 - 2 Stop Bits\r | |
629 | ///\r | |
959ccb23 | 630 | UINT8 StopBits;\r |
631 | } UART_DEVICE_PATH;\r | |
632 | \r | |
633 | //\r | |
634 | // Use VENDOR_DEVICE_PATH struct\r | |
635 | //\r | |
636 | #define MSG_VENDOR_DP 0x0a\r | |
00edb218 | 637 | typedef VENDOR_DEVICE_PATH VENDOR_DEFINED_DEVICE_PATH;\r |
959ccb23 | 638 | \r |
639 | #define DEVICE_PATH_MESSAGING_PC_ANSI EFI_PC_ANSI_GUID\r | |
640 | #define DEVICE_PATH_MESSAGING_VT_100 EFI_VT_100_GUID\r | |
641 | #define DEVICE_PATH_MESSAGING_VT_100_PLUS EFI_VT_100_PLUS_GUID\r | |
642 | #define DEVICE_PATH_MESSAGING_VT_UTF8 EFI_VT_UTF8_GUID\r | |
643 | \r | |
f1004231 LG |
644 | ///\r |
645 | /// A new device path node is defined to declare flow control characteristics.\r | |
646 | /// UART Flow Control Messaging Device Path\r | |
647 | ///\r | |
959ccb23 | 648 | #define DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL EFI_UART_DEVICE_PATH_GUID\r |
959ccb23 | 649 | typedef struct {\r |
650 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
651 | ///\r |
652 | /// DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL\r | |
653 | ///\r | |
959ccb23 | 654 | EFI_GUID Guid;\r |
f1004231 LG |
655 | ///\r |
656 | /// Bitmap of supported flow control types.\r | |
657 | /// Bit 0 set indicates hardware flow control.\r | |
658 | /// Bit 1 set indicates Xon/Xoff flow control.\r | |
659 | /// All other bits are reserved and are clear.\r | |
660 | ///\r | |
959ccb23 | 661 | UINT32 FlowControlMap;\r |
662 | } UART_FLOW_CONTROL_DEVICE_PATH;\r | |
663 | \r | |
f1004231 LG |
664 | ///\r |
665 | /// Serial Attached SCSI (SAS) devices.\r | |
666 | ///\r | |
959ccb23 | 667 | #define DEVICE_PATH_MESSAGING_SAS EFI_SAS_DEVICE_PATH_GUID\r |
959ccb23 | 668 | typedef struct {\r |
669 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
670 | ///\r |
671 | /// DEVICE_PATH_MESSAGING_SAS\r | |
672 | ///\r | |
959ccb23 | 673 | EFI_GUID Guid;\r |
f1004231 LG |
674 | ///\r |
675 | /// Reserved for future use.\r | |
676 | ///\r | |
959ccb23 | 677 | UINT32 Reserved;\r |
f1004231 LG |
678 | ///\r |
679 | /// SAS Address for Serial Attached SCSI Target.\r | |
680 | ///\r | |
959ccb23 | 681 | UINT64 SasAddress;\r |
f1004231 LG |
682 | ///\r |
683 | /// SAS Logical Unit Number.\r | |
684 | ///\r | |
959ccb23 | 685 | UINT64 Lun;\r |
f1004231 LG |
686 | ///\r |
687 | /// More Information about the device and its interconnect\r | |
688 | ///\r | |
959ccb23 | 689 | UINT16 DeviceTopology;\r |
f1004231 LG |
690 | ///\r |
691 | /// Relative Target Port (RTP)\r | |
692 | ///\r | |
959ccb23 | 693 | UINT16 RelativeTargetPort;\r |
694 | } SAS_DEVICE_PATH;\r | |
695 | \r | |
f1004231 LG |
696 | ///\r |
697 | /// iSCSI Device Path Node (Base Information)\r | |
698 | ///\r | |
959ccb23 | 699 | #define MSG_ISCSI_DP 0x13\r |
700 | typedef struct {\r | |
701 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
702 | ///\r |
703 | /// Network Protocol (0 = TCP, 1+ = reserved)\r | |
704 | ///\r | |
959ccb23 | 705 | UINT16 NetworkProtocol;\r |
f1004231 LG |
706 | ///\r |
707 | /// iSCSI Login Options\r | |
708 | ///\r | |
959ccb23 | 709 | UINT16 LoginOption;\r |
f1004231 LG |
710 | ///\r |
711 | /// iSCSI Logical Unit Number\r | |
712 | ///\r | |
ab2abe4c | 713 | UINT64 Lun;\r |
f1004231 LG |
714 | ///\r |
715 | /// iSCSI Target Portal group tag the initiator intends\r | |
716 | /// to establish a session with.\r | |
717 | ///\r | |
959ccb23 | 718 | UINT16 TargetPortalGroupTag;\r |
f1004231 LG |
719 | ///\r |
720 | /// iSCSI NodeTarget Name. The length of the name\r | |
721 | /// is determined by subtracting the offset of this field from Length.\r | |
722 | ///\r | |
723 | /// CHAR8 iSCSI Target Name\r | |
959ccb23 | 724 | } ISCSI_DEVICE_PATH;\r |
725 | \r | |
726 | #define ISCSI_LOGIN_OPTION_NO_HEADER_DIGEST 0x0000\r | |
727 | #define ISCSI_LOGIN_OPTION_HEADER_DIGEST_USING_CRC32C 0x0002\r | |
728 | #define ISCSI_LOGIN_OPTION_NO_DATA_DIGEST 0x0000\r | |
729 | #define ISCSI_LOGIN_OPTION_DATA_DIGEST_USING_CRC32C 0x0008\r | |
730 | #define ISCSI_LOGIN_OPTION_AUTHMETHOD_CHAP 0x0000\r | |
731 | #define ISCSI_LOGIN_OPTION_AUTHMETHOD_NON 0x1000\r | |
732 | #define ISCSI_LOGIN_OPTION_CHAP_BI 0x0000\r | |
733 | #define ISCSI_LOGIN_OPTION_CHAP_UNI 0x2000\r | |
734 | \r | |
735 | //\r | |
736 | // Media Device Path\r | |
737 | //\r | |
738 | #define MEDIA_DEVICE_PATH 0x04\r | |
739 | \r | |
f1004231 LG |
740 | ///\r |
741 | /// The Hard Drive Media Device Path is used to represent a partition on a hard drive.\r | |
742 | /// Hard Drive Media Device Path\r | |
743 | ///\r | |
959ccb23 | 744 | #define MEDIA_HARDDRIVE_DP 0x01\r |
745 | typedef struct {\r | |
746 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
747 | ///\r |
748 | /// Describes the entry in a partition table, starting with entry 1.\r | |
749 | /// Partition number zero represents the entire device. Valid\r | |
750 | /// partition numbers for a MBR partition are [1, 4]. Valid\r | |
751 | /// partition numbers for a GPT partition are [1,\r | |
752 | /// NumberOfPartitionEntries].\r | |
753 | ///\r | |
959ccb23 | 754 | UINT32 PartitionNumber;\r |
f1004231 LG |
755 | ///\r |
756 | /// Starting LBA of the partition on the hard drive\r | |
757 | ///\r | |
959ccb23 | 758 | UINT64 PartitionStart;\r |
f1004231 LG |
759 | ///\r |
760 | /// Size of the partition in units of Logical Blocks\r | |
761 | ///\r | |
959ccb23 | 762 | UINT64 PartitionSize;\r |
f1004231 LG |
763 | ///\r |
764 | /// Signature unique to this partition\r | |
765 | ///\r | |
959ccb23 | 766 | UINT8 Signature[16];\r |
f1004231 LG |
767 | ///\r |
768 | /// Partition Format: (Unused values reserved)\r | |
cd2ed84a | 769 | /// 0x01 - PC-AT compatible legacy MBR\r |
770 | /// 0x02 - GUID Partition Table\r | |
f1004231 | 771 | ///\r |
959ccb23 | 772 | UINT8 MBRType;\r |
f1004231 LG |
773 | ///\r |
774 | /// Type of Disk Signature: (Unused values reserved)\r | |
cd2ed84a | 775 | /// 0x00 - No Disk Signature.\r |
776 | /// 0x01 - 32-bit signature from address 0x1b8 of the type 0x01 MBR.\r | |
777 | /// 0x02 - GUID signature.\r | |
f1004231 | 778 | ///\r |
959ccb23 | 779 | UINT8 SignatureType;\r |
780 | } HARDDRIVE_DEVICE_PATH;\r | |
781 | \r | |
782 | #define MBR_TYPE_PCAT 0x01\r | |
783 | #define MBR_TYPE_EFI_PARTITION_TABLE_HEADER 0x02\r | |
784 | \r | |
f1004231 | 785 | #define NO_DISK_SIGNATURE 0x00\r |
959ccb23 | 786 | #define SIGNATURE_TYPE_MBR 0x01\r |
787 | #define SIGNATURE_TYPE_GUID 0x02\r | |
788 | \r | |
f1004231 LG |
789 | ///\r |
790 | /// The CD-ROM Media Device Path is used to define a system partition that exists on a CD-ROM.\r | |
791 | /// CD-ROM Media Device Path\r | |
792 | ///\r | |
959ccb23 | 793 | #define MEDIA_CDROM_DP 0x02\r |
794 | typedef struct {\r | |
795 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
796 | ///\r |
797 | /// Boot Entry number from the Boot Catalog. The Initial/Default entry is defined as zero.\r | |
798 | ///\r | |
959ccb23 | 799 | UINT32 BootEntry;\r |
f1004231 LG |
800 | ///\r |
801 | /// Starting RBA of the partition on the medium. CD-ROMs use Relative logical Block Addressing.\r | |
802 | ///\r | |
959ccb23 | 803 | UINT64 PartitionStart;\r |
f1004231 LG |
804 | ///\r |
805 | /// Size of the partition in units of Blocks, also called Sectors.\r | |
806 | ///\r | |
959ccb23 | 807 | UINT64 PartitionSize;\r |
808 | } CDROM_DEVICE_PATH;\r | |
809 | \r | |
f1004231 LG |
810 | ///\r |
811 | /// Use VENDOR_DEVICE_PATH struct\r | |
812 | ///\r | |
959ccb23 | 813 | #define MEDIA_VENDOR_DP 0x03\r |
814 | \r | |
f1004231 LG |
815 | ///\r |
816 | /// File Path Media Device Path\r | |
817 | ///\r | |
959ccb23 | 818 | #define MEDIA_FILEPATH_DP 0x04\r |
819 | typedef struct {\r | |
820 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
821 | ///\r |
822 | /// A NULL-terminated Unicode Path string including directory and file names.\r | |
823 | ///\r | |
959ccb23 | 824 | CHAR16 PathName[1];\r |
825 | } FILEPATH_DEVICE_PATH;\r | |
826 | \r | |
146332ae | 827 | #define SIZE_OF_FILEPATH_DEVICE_PATH EFI_FIELD_OFFSET(FILEPATH_DEVICE_PATH,PathName)\r |
959ccb23 | 828 | \r |
f1004231 LG |
829 | ///\r |
830 | /// The Media Protocol Device Path is used to denote the protocol that is being \r | |
831 | /// used in a device path at the location of the path specified. \r | |
832 | /// Many protocols are inherent to the style of device path.\r | |
833 | ///\r | |
959ccb23 | 834 | #define MEDIA_PROTOCOL_DP 0x05\r |
835 | typedef struct {\r | |
836 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
837 | ///\r |
838 | /// The ID of the protocol.\r | |
839 | ///\r | |
959ccb23 | 840 | EFI_GUID Protocol;\r |
841 | } MEDIA_PROTOCOL_DEVICE_PATH;\r | |
842 | \r | |
f1004231 LG |
843 | ///\r |
844 | /// This type is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware volume.\r | |
845 | /// PIWG Firmware Volume Device Path.\r | |
846 | ///\r | |
9166ece0 | 847 | #define MEDIA_PIWG_FW_VOL_DP 0x7\r |
146332ae | 848 | typedef struct {\r |
849 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
850 | ///\r |
851 | /// Firmware volume name.\r | |
852 | ///\r | |
146332ae | 853 | EFI_GUID FvName;\r |
854 | } MEDIA_FW_VOL_DEVICE_PATH;\r | |
959ccb23 | 855 | \r |
f1004231 LG |
856 | ///\r |
857 | /// This type is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware file.\r | |
858 | /// PIWG Firmware Volume Device Path\r | |
859 | ///\r | |
9166ece0 | 860 | #define MEDIA_PIWG_FW_FILE_DP 0x6\r |
146332ae | 861 | typedef struct {\r |
862 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
863 | ///\r |
864 | /// Firmware file name\r | |
865 | ///\r | |
146332ae | 866 | EFI_GUID FvFileName;\r |
867 | } MEDIA_FW_VOL_FILEPATH_DEVICE_PATH;\r | |
959ccb23 | 868 | \r |
f1004231 LG |
869 | ///\r |
870 | /// This Device Path is used to describe the booting of non-EFI-aware operating systems.\r | |
871 | /// BIOS Boot Specification Device Path\r | |
872 | ///\r | |
959ccb23 | 873 | #define BBS_DEVICE_PATH 0x05\r |
874 | #define BBS_BBS_DP 0x01\r | |
875 | typedef struct {\r | |
876 | EFI_DEVICE_PATH_PROTOCOL Header;\r | |
f1004231 LG |
877 | ///\r |
878 | /// Device Type as defined by the BIOS Boot Specification.\r | |
879 | ///\r | |
959ccb23 | 880 | UINT16 DeviceType;\r |
f1004231 LG |
881 | ///\r |
882 | /// Status Flags as defined by the BIOS Boot Specification\r | |
883 | ///\r | |
959ccb23 | 884 | UINT16 StatusFlag;\r |
f1004231 LG |
885 | ///\r |
886 | /// ASCIIZ string that describes the boot device to a user. \r | |
887 | ///\r | |
959ccb23 | 888 | CHAR8 String[1];\r |
889 | } BBS_BBS_DEVICE_PATH;\r | |
890 | \r | |
891 | //\r | |
892 | // DeviceType definitions - from BBS specification\r | |
893 | //\r | |
894 | #define BBS_TYPE_FLOPPY 0x01\r | |
895 | #define BBS_TYPE_HARDDRIVE 0x02\r | |
896 | #define BBS_TYPE_CDROM 0x03\r | |
897 | #define BBS_TYPE_PCMCIA 0x04\r | |
898 | #define BBS_TYPE_USB 0x05\r | |
899 | #define BBS_TYPE_EMBEDDED_NETWORK 0x06\r | |
900 | #define BBS_TYPE_BEV 0x80\r | |
901 | #define BBS_TYPE_UNKNOWN 0xFF\r | |
902 | \r | |
903 | \r | |
99e8ed21 | 904 | ///\r |
905 | /// Union of all possible Device Paths and pointers to Device Paths\r | |
906 | ///\r | |
959ccb23 | 907 | \r |
908 | typedef union {\r | |
909 | EFI_DEVICE_PATH_PROTOCOL DevPath;\r | |
910 | PCI_DEVICE_PATH Pci;\r | |
911 | PCCARD_DEVICE_PATH PcCard;\r | |
912 | MEMMAP_DEVICE_PATH MemMap;\r | |
913 | VENDOR_DEVICE_PATH Vendor;\r | |
914 | \r | |
915 | CONTROLLER_DEVICE_PATH Controller;\r | |
916 | ACPI_HID_DEVICE_PATH Acpi;\r | |
917 | \r | |
918 | ATAPI_DEVICE_PATH Atapi;\r | |
919 | SCSI_DEVICE_PATH Scsi;\r | |
e3b1115e | 920 | ISCSI_DEVICE_PATH Iscsi;\r |
959ccb23 | 921 | FIBRECHANNEL_DEVICE_PATH FibreChannel;\r |
922 | \r | |
923 | F1394_DEVICE_PATH F1394;\r | |
924 | USB_DEVICE_PATH Usb;\r | |
925 | SATA_DEVICE_PATH Sata;\r | |
926 | USB_CLASS_DEVICE_PATH UsbClass;\r | |
927 | I2O_DEVICE_PATH I2O;\r | |
928 | MAC_ADDR_DEVICE_PATH MacAddr;\r | |
929 | IPv4_DEVICE_PATH Ipv4;\r | |
930 | IPv6_DEVICE_PATH Ipv6;\r | |
931 | INFINIBAND_DEVICE_PATH InfiniBand;\r | |
932 | UART_DEVICE_PATH Uart;\r | |
933 | \r | |
934 | HARDDRIVE_DEVICE_PATH HardDrive;\r | |
935 | CDROM_DEVICE_PATH CD;\r | |
936 | \r | |
937 | FILEPATH_DEVICE_PATH FilePath;\r | |
938 | MEDIA_PROTOCOL_DEVICE_PATH MediaProtocol;\r | |
939 | \r | |
940 | BBS_BBS_DEVICE_PATH Bbs;\r | |
941 | } EFI_DEV_PATH;\r | |
942 | \r | |
943 | \r | |
944 | \r | |
945 | typedef union {\r | |
946 | EFI_DEVICE_PATH_PROTOCOL *DevPath;\r | |
947 | PCI_DEVICE_PATH *Pci;\r | |
948 | PCCARD_DEVICE_PATH *PcCard;\r | |
949 | MEMMAP_DEVICE_PATH *MemMap;\r | |
950 | VENDOR_DEVICE_PATH *Vendor;\r | |
951 | \r | |
952 | CONTROLLER_DEVICE_PATH *Controller;\r | |
953 | ACPI_HID_DEVICE_PATH *Acpi;\r | |
954 | ACPI_EXTENDED_HID_DEVICE_PATH *ExtendedAcpi;\r | |
955 | \r | |
956 | ATAPI_DEVICE_PATH *Atapi;\r | |
957 | SCSI_DEVICE_PATH *Scsi;\r | |
958 | FIBRECHANNEL_DEVICE_PATH *FibreChannel;\r | |
959 | \r | |
960 | F1394_DEVICE_PATH *F1394;\r | |
961 | USB_DEVICE_PATH *Usb;\r | |
962 | SATA_DEVICE_PATH *Sata;\r | |
963 | USB_CLASS_DEVICE_PATH *UsbClass;\r | |
964 | I2O_DEVICE_PATH *I2O;\r | |
965 | MAC_ADDR_DEVICE_PATH *MacAddr;\r | |
966 | IPv4_DEVICE_PATH *Ipv4;\r | |
967 | IPv6_DEVICE_PATH *Ipv6;\r | |
968 | INFINIBAND_DEVICE_PATH *InfiniBand;\r | |
969 | UART_DEVICE_PATH *Uart;\r | |
970 | \r | |
971 | HARDDRIVE_DEVICE_PATH *HardDrive;\r | |
972 | CDROM_DEVICE_PATH *CD;\r | |
973 | \r | |
974 | FILEPATH_DEVICE_PATH *FilePath;\r | |
975 | MEDIA_PROTOCOL_DEVICE_PATH *MediaProtocol;\r | |
976 | \r | |
977 | BBS_BBS_DEVICE_PATH *Bbs;\r | |
978 | UINT8 *Raw;\r | |
979 | } EFI_DEV_PATH_PTR;\r | |
980 | \r | |
981 | #pragma pack()\r | |
d1f95000 | 982 | \r |
d1f95000 | 983 | #define END_DEVICE_PATH_TYPE 0x7f\r |
e5dab016 | 984 | #define END_ENTIRE_DEVICE_PATH_SUBTYPE 0xFF\r |
985 | #define END_INSTANCE_DEVICE_PATH_SUBTYPE 0x01\r | |
d1f95000 | 986 | \r |
987 | extern EFI_GUID gEfiDevicePathProtocolGuid;\r | |
959ccb23 | 988 | \r |
989 | #endif\r |