]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Include/Protocol/DevicePath.h
MdePkg: Add UEFI2.5 Ramdisk device path definition
[mirror_edk2.git] / MdePkg / Include / Protocol / DevicePath.h
... / ...
CommitLineData
1/** @file\r
2 The device path protocol as defined in UEFI 2.0.\r
3\r
4 The device path represents a programmatic path to a device,\r
5 from a software point of view. The path 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
7\r
8Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
9This program and the accompanying materials are licensed and made available under \r
10the terms and conditions of the BSD License that accompanies this distribution. \r
11The full text of the license may be found at\r
12http://opensource.org/licenses/bsd-license.php. \r
13 \r
14THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
15WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
16\r
17**/\r
18\r
19#ifndef __EFI_DEVICE_PATH_PROTOCOL_H__\r
20#define __EFI_DEVICE_PATH_PROTOCOL_H__\r
21\r
22#include <Guid/PcAnsi.h>\r
23#include <IndustryStandard/Bluetooth.h>\r
24#include <IndustryStandard/Acpi60.h>\r
25\r
26///\r
27/// Device Path protocol.\r
28///\r
29#define EFI_DEVICE_PATH_PROTOCOL_GUID \\r
30 { \\r
31 0x9576e91, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \\r
32 }\r
33\r
34///\r
35/// Device Path guid definition for backward-compatible with EFI1.1.\r
36///\r
37#define DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH_PROTOCOL_GUID\r
38\r
39#pragma pack(1)\r
40\r
41/**\r
42 This protocol can be used on any device handle to obtain generic path/location \r
43 information concerning the physical device or logical device. If the handle does \r
44 not logically map to a physical device, the handle may not necessarily support \r
45 the device path protocol. The device path describes the location of the device \r
46 the handle is for. The size of the Device Path can be determined from the structures \r
47 that make up the Device Path.\r
48**/\r
49typedef struct {\r
50 UINT8 Type; ///< 0x01 Hardware Device Path.\r
51 ///< 0x02 ACPI Device Path.\r
52 ///< 0x03 Messaging Device Path.\r
53 ///< 0x04 Media Device Path.\r
54 ///< 0x05 BIOS Boot Specification Device Path.\r
55 ///< 0x7F End of Hardware Device Path.\r
56 \r
57 UINT8 SubType; ///< Varies by Type\r
58 ///< 0xFF End Entire Device Path, or\r
59 ///< 0x01 End This Instance of a Device Path and start a new\r
60 ///< Device Path.\r
61 \r
62 UINT8 Length[2]; ///< Specific Device Path data. Type and Sub-Type define\r
63 ///< type of data. Size of data is included in Length.\r
64 \r
65} EFI_DEVICE_PATH_PROTOCOL;\r
66\r
67///\r
68/// Device Path protocol definition for backward-compatible with EFI1.1.\r
69/// \r
70typedef EFI_DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH;\r
71\r
72///\r
73/// Hardware Device Paths.\r
74///\r
75#define HARDWARE_DEVICE_PATH 0x01\r
76\r
77///\r
78/// PCI Device Path SubType.\r
79///\r
80#define HW_PCI_DP 0x01\r
81\r
82///\r
83/// PCI Device Path.\r
84///\r
85typedef struct {\r
86 EFI_DEVICE_PATH_PROTOCOL Header;\r
87 ///\r
88 /// PCI Function Number.\r
89 ///\r
90 UINT8 Function;\r
91 ///\r
92 /// PCI Device Number.\r
93 ///\r
94 UINT8 Device;\r
95} PCI_DEVICE_PATH;\r
96\r
97///\r
98/// PCCARD Device Path SubType.\r
99///\r
100#define HW_PCCARD_DP 0x02\r
101\r
102///\r
103/// PCCARD Device Path.\r
104///\r
105typedef struct {\r
106 EFI_DEVICE_PATH_PROTOCOL Header;\r
107 ///\r
108 /// Function Number (0 = First Function).\r
109 ///\r
110 UINT8 FunctionNumber;\r
111} PCCARD_DEVICE_PATH;\r
112\r
113///\r
114/// Memory Mapped Device Path SubType.\r
115///\r
116#define HW_MEMMAP_DP 0x03\r
117\r
118///\r
119/// Memory Mapped Device Path.\r
120///\r
121typedef struct {\r
122 EFI_DEVICE_PATH_PROTOCOL Header;\r
123 ///\r
124 /// EFI_MEMORY_TYPE\r
125 ///\r
126 UINT32 MemoryType;\r
127 ///\r
128 /// Starting Memory Address.\r
129 ///\r
130 EFI_PHYSICAL_ADDRESS StartingAddress;\r
131 ///\r
132 /// Ending Memory Address.\r
133 ///\r
134 EFI_PHYSICAL_ADDRESS EndingAddress;\r
135} MEMMAP_DEVICE_PATH;\r
136\r
137///\r
138/// Hardware Vendor Device Path SubType.\r
139///\r
140#define HW_VENDOR_DP 0x04\r
141\r
142///\r
143/// The Vendor Device Path allows the creation of vendor-defined Device Paths. A vendor must\r
144/// allocate a Vendor GUID for a Device Path. The Vendor GUID can then be used to define the\r
145/// contents on the n bytes that follow in the Vendor Device Path node.\r
146///\r
147typedef struct {\r
148 EFI_DEVICE_PATH_PROTOCOL Header;\r
149 ///\r
150 /// Vendor-assigned GUID that defines the data that follows.\r
151 ///\r
152 EFI_GUID Guid;\r
153 ///\r
154 /// Vendor-defined variable size data.\r
155 ///\r
156} VENDOR_DEVICE_PATH;\r
157\r
158///\r
159/// Controller Device Path SubType.\r
160///\r
161#define HW_CONTROLLER_DP 0x05\r
162\r
163///\r
164/// Controller Device Path.\r
165///\r
166typedef struct {\r
167 EFI_DEVICE_PATH_PROTOCOL Header;\r
168 ///\r
169 /// Controller number.\r
170 ///\r
171 UINT32 ControllerNumber;\r
172} CONTROLLER_DEVICE_PATH;\r
173\r
174///\r
175/// ACPI Device Paths.\r
176///\r
177#define ACPI_DEVICE_PATH 0x02\r
178\r
179///\r
180/// ACPI Device Path SubType.\r
181///\r
182#define ACPI_DP 0x01\r
183typedef struct {\r
184 EFI_DEVICE_PATH_PROTOCOL Header;\r
185 ///\r
186 /// Device's PnP hardware ID stored in a numeric 32-bit\r
187 /// compressed EISA-type ID. This value must match the\r
188 /// corresponding _HID in the ACPI name space.\r
189 ///\r
190 UINT32 HID;\r
191 ///\r
192 /// Unique ID that is required by ACPI if two devices have the\r
193 /// same _HID. This value must also match the corresponding\r
194 /// _UID/_HID pair in the ACPI name space. Only the 32-bit\r
195 /// numeric value type of _UID is supported. Thus, strings must\r
196 /// not be used for the _UID in the ACPI name space.\r
197 ///\r
198 UINT32 UID;\r
199} ACPI_HID_DEVICE_PATH;\r
200\r
201///\r
202/// Expanded ACPI Device Path SubType.\r
203///\r
204#define ACPI_EXTENDED_DP 0x02\r
205typedef struct {\r
206 EFI_DEVICE_PATH_PROTOCOL Header;\r
207 ///\r
208 /// Device's PnP hardware ID stored in a numeric 32-bit\r
209 /// compressed EISA-type ID. This value must match the\r
210 /// corresponding _HID in the ACPI name space.\r
211 ///\r
212 UINT32 HID;\r
213 ///\r
214 /// Unique ID that is required by ACPI if two devices have the\r
215 /// same _HID. This value must also match the corresponding\r
216 /// _UID/_HID pair in the ACPI name space.\r
217 ///\r
218 UINT32 UID;\r
219 ///\r
220 /// Device's compatible PnP hardware ID stored in a numeric\r
221 /// 32-bit compressed EISA-type ID. This value must match at\r
222 /// least one of the compatible device IDs returned by the\r
223 /// corresponding _CID in the ACPI name space.\r
224 ///\r
225 UINT32 CID;\r
226 ///\r
227 /// Optional variable length _HIDSTR.\r
228 /// Optional variable length _UIDSTR.\r
229 /// Optional variable length _CIDSTR.\r
230 ///\r
231} ACPI_EXTENDED_HID_DEVICE_PATH;\r
232\r
233//\r
234// EISA ID Macro\r
235// EISA ID Definition 32-bits\r
236// bits[15:0] - three character compressed ASCII EISA ID.\r
237// bits[31:16] - binary number\r
238// Compressed ASCII is 5 bits per character 0b00001 = 'A' 0b11010 = 'Z'\r
239//\r
240#define PNP_EISA_ID_CONST 0x41d0\r
241#define EISA_ID(_Name, _Num) ((UINT32)((_Name) | (_Num) << 16))\r
242#define EISA_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))\r
243#define EFI_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))\r
244\r
245#define PNP_EISA_ID_MASK 0xffff\r
246#define EISA_ID_TO_NUM(_Id) ((_Id) >> 16)\r
247\r
248///\r
249/// ACPI _ADR Device Path SubType.\r
250///\r
251#define ACPI_ADR_DP 0x03\r
252\r
253///\r
254/// The _ADR device path is used to contain video output device attributes to support the Graphics\r
255/// Output Protocol. The device path can contain multiple _ADR entries if multiple video output\r
256/// devices are displaying the same output.\r
257///\r
258typedef struct {\r
259 EFI_DEVICE_PATH_PROTOCOL Header;\r
260 ///\r
261 /// _ADR value. For video output devices the value of this\r
262 /// field comes from Table B-2 of the ACPI 3.0 specification. At\r
263 /// least one _ADR value is required.\r
264 ///\r
265 UINT32 ADR;\r
266 //\r
267 // This device path may optionally contain more than one _ADR entry.\r
268 //\r
269} ACPI_ADR_DEVICE_PATH;\r
270\r
271#define ACPI_ADR_DISPLAY_TYPE_OTHER 0\r
272#define ACPI_ADR_DISPLAY_TYPE_VGA 1\r
273#define ACPI_ADR_DISPLAY_TYPE_TV 2\r
274#define ACPI_ADR_DISPLAY_TYPE_EXTERNAL_DIGITAL 3\r
275#define ACPI_ADR_DISPLAY_TYPE_INTERNAL_DIGITAL 4\r
276\r
277#define ACPI_DISPLAY_ADR(_DeviceIdScheme, _HeadId, _NonVgaOutput, _BiosCanDetect, _VendorInfo, _Type, _Port, _Index) \\r
278 ((UINT32)( ((UINT32)((_DeviceIdScheme) & 0x1) << 31) | \\r
279 (((_HeadId) & 0x7) << 18) | \\r
280 (((_NonVgaOutput) & 0x1) << 17) | \\r
281 (((_BiosCanDetect) & 0x1) << 16) | \\r
282 (((_VendorInfo) & 0xf) << 12) | \\r
283 (((_Type) & 0xf) << 8) | \\r
284 (((_Port) & 0xf) << 4) | \\r
285 ((_Index) & 0xf) ))\r
286\r
287///\r
288/// Messaging Device Paths.\r
289/// This Device Path is used to describe the connection of devices outside the resource domain of the\r
290/// system. This Device Path can describe physical messaging information like SCSI ID, or abstract\r
291/// information like networking protocol IP addresses.\r
292///\r
293#define MESSAGING_DEVICE_PATH 0x03\r
294\r
295///\r
296/// ATAPI Device Path SubType\r
297///\r
298#define MSG_ATAPI_DP 0x01\r
299typedef struct {\r
300 EFI_DEVICE_PATH_PROTOCOL Header;\r
301 ///\r
302 /// Set to zero for primary, or one for secondary.\r
303 ///\r
304 UINT8 PrimarySecondary;\r
305 ///\r
306 /// Set to zero for master, or one for slave mode.\r
307 ///\r
308 UINT8 SlaveMaster;\r
309 ///\r
310 /// Logical Unit Number.\r
311 ///\r
312 UINT16 Lun;\r
313} ATAPI_DEVICE_PATH;\r
314\r
315///\r
316/// SCSI Device Path SubType.\r
317///\r
318#define MSG_SCSI_DP 0x02\r
319typedef struct {\r
320 EFI_DEVICE_PATH_PROTOCOL Header;\r
321 ///\r
322 /// Target ID on the SCSI bus (PUN).\r
323 ///\r
324 UINT16 Pun;\r
325 ///\r
326 /// Logical Unit Number (LUN).\r
327 ///\r
328 UINT16 Lun;\r
329} SCSI_DEVICE_PATH;\r
330\r
331///\r
332/// Fibre Channel SubType.\r
333///\r
334#define MSG_FIBRECHANNEL_DP 0x03\r
335typedef struct {\r
336 EFI_DEVICE_PATH_PROTOCOL Header;\r
337 ///\r
338 /// Reserved for the future.\r
339 ///\r
340 UINT32 Reserved;\r
341 ///\r
342 /// Fibre Channel World Wide Number.\r
343 ///\r
344 UINT64 WWN;\r
345 ///\r
346 /// Fibre Channel Logical Unit Number.\r
347 ///\r
348 UINT64 Lun;\r
349} FIBRECHANNEL_DEVICE_PATH;\r
350\r
351///\r
352/// Fibre Channel Ex SubType.\r
353///\r
354#define MSG_FIBRECHANNELEX_DP 0x15\r
355typedef struct {\r
356 EFI_DEVICE_PATH_PROTOCOL Header;\r
357 ///\r
358 /// Reserved for the future.\r
359 ///\r
360 UINT32 Reserved;\r
361 ///\r
362 /// 8 byte array containing Fibre Channel End Device Port Name.\r
363 ///\r
364 UINT8 WWN[8];\r
365 ///\r
366 /// 8 byte array containing Fibre Channel Logical Unit Number.\r
367 ///\r
368 UINT8 Lun[8];\r
369} FIBRECHANNELEX_DEVICE_PATH;\r
370\r
371///\r
372/// 1394 Device Path SubType\r
373///\r
374#define MSG_1394_DP 0x04\r
375typedef struct {\r
376 EFI_DEVICE_PATH_PROTOCOL Header;\r
377 ///\r
378 /// Reserved for the future.\r
379 ///\r
380 UINT32 Reserved;\r
381 ///\r
382 /// 1394 Global Unique ID (GUID).\r
383 ///\r
384 UINT64 Guid;\r
385} F1394_DEVICE_PATH;\r
386\r
387///\r
388/// USB Device Path SubType.\r
389///\r
390#define MSG_USB_DP 0x05\r
391typedef struct {\r
392 EFI_DEVICE_PATH_PROTOCOL Header;\r
393 ///\r
394 /// USB Parent Port Number.\r
395 ///\r
396 UINT8 ParentPortNumber;\r
397 ///\r
398 /// USB Interface Number.\r
399 ///\r
400 UINT8 InterfaceNumber;\r
401} USB_DEVICE_PATH;\r
402\r
403///\r
404/// USB Class Device Path SubType.\r
405///\r
406#define MSG_USB_CLASS_DP 0x0f\r
407typedef struct {\r
408 EFI_DEVICE_PATH_PROTOCOL Header;\r
409 ///\r
410 /// Vendor ID assigned by USB-IF. A value of 0xFFFF will\r
411 /// match any Vendor ID.\r
412 ///\r
413 UINT16 VendorId;\r
414 ///\r
415 /// Product ID assigned by USB-IF. A value of 0xFFFF will\r
416 /// match any Product ID.\r
417 ///\r
418 UINT16 ProductId;\r
419 ///\r
420 /// The class code assigned by the USB-IF. A value of 0xFF\r
421 /// will match any class code.\r
422 ///\r
423 UINT8 DeviceClass;\r
424 ///\r
425 /// The subclass code assigned by the USB-IF. A value of\r
426 /// 0xFF will match any subclass code.\r
427 ///\r
428 UINT8 DeviceSubClass;\r
429 ///\r
430 /// The protocol code assigned by the USB-IF. A value of\r
431 /// 0xFF will match any protocol code.\r
432 ///\r
433 UINT8 DeviceProtocol;\r
434} USB_CLASS_DEVICE_PATH;\r
435\r
436///\r
437/// USB WWID Device Path SubType.\r
438///\r
439#define MSG_USB_WWID_DP 0x10\r
440\r
441///\r
442/// This device path describes a USB device using its serial number.\r
443///\r
444typedef struct {\r
445 EFI_DEVICE_PATH_PROTOCOL Header;\r
446 ///\r
447 /// USB interface number.\r
448 ///\r
449 UINT16 InterfaceNumber;\r
450 ///\r
451 /// USB vendor id of the device.\r
452 ///\r
453 UINT16 VendorId;\r
454 ///\r
455 /// USB product id of the device.\r
456 ///\r
457 UINT16 ProductId;\r
458 ///\r
459 /// Last 64-or-fewer UTF-16 characters of the USB\r
460 /// serial number. The length of the string is\r
461 /// determined by the Length field less the offset of the\r
462 /// Serial Number field (10)\r
463 ///\r
464 /// CHAR16 SerialNumber[...];\r
465} USB_WWID_DEVICE_PATH;\r
466\r
467///\r
468/// Device Logical Unit SubType.\r
469///\r
470#define MSG_DEVICE_LOGICAL_UNIT_DP 0x11\r
471typedef struct {\r
472 EFI_DEVICE_PATH_PROTOCOL Header;\r
473 ///\r
474 /// Logical Unit Number for the interface.\r
475 ///\r
476 UINT8 Lun;\r
477} DEVICE_LOGICAL_UNIT_DEVICE_PATH;\r
478\r
479///\r
480/// SATA Device Path SubType.\r
481///\r
482#define MSG_SATA_DP 0x12\r
483typedef struct {\r
484 EFI_DEVICE_PATH_PROTOCOL Header;\r
485 ///\r
486 /// The HBA port number that facilitates the connection to the\r
487 /// device or a port multiplier. The value 0xFFFF is reserved.\r
488 ///\r
489 UINT16 HBAPortNumber;\r
490 ///\r
491 /// The Port multiplier port number that facilitates the connection\r
492 /// to the device. Bit 15 should be set if the device is directly\r
493 /// connected to the HBA.\r
494 ///\r
495 UINT16 PortMultiplierPortNumber;\r
496 ///\r
497 /// Logical Unit Number.\r
498 ///\r
499 UINT16 Lun;\r
500} SATA_DEVICE_PATH;\r
501\r
502///\r
503/// Flag for if the device is directly connected to the HBA.\r
504///\r
505#define SATA_HBA_DIRECT_CONNECT_FLAG 0x8000\r
506\r
507///\r
508/// I2O Device Path SubType.\r
509///\r
510#define MSG_I2O_DP 0x06\r
511typedef struct {\r
512 EFI_DEVICE_PATH_PROTOCOL Header;\r
513 ///\r
514 /// Target ID (TID) for a device.\r
515 ///\r
516 UINT32 Tid;\r
517} I2O_DEVICE_PATH;\r
518\r
519///\r
520/// MAC Address Device Path SubType.\r
521///\r
522#define MSG_MAC_ADDR_DP 0x0b\r
523typedef struct {\r
524 EFI_DEVICE_PATH_PROTOCOL Header;\r
525 ///\r
526 /// The MAC address for a network interface padded with 0s.\r
527 ///\r
528 EFI_MAC_ADDRESS MacAddress;\r
529 ///\r
530 /// Network interface type(i.e. 802.3, FDDI).\r
531 ///\r
532 UINT8 IfType;\r
533} MAC_ADDR_DEVICE_PATH;\r
534\r
535///\r
536/// IPv4 Device Path SubType\r
537///\r
538#define MSG_IPv4_DP 0x0c\r
539typedef struct {\r
540 EFI_DEVICE_PATH_PROTOCOL Header;\r
541 ///\r
542 /// The local IPv4 address.\r
543 ///\r
544 EFI_IPv4_ADDRESS LocalIpAddress;\r
545 ///\r
546 /// The remote IPv4 address.\r
547 ///\r
548 EFI_IPv4_ADDRESS RemoteIpAddress;\r
549 ///\r
550 /// The local port number.\r
551 ///\r
552 UINT16 LocalPort;\r
553 ///\r
554 /// The remote port number.\r
555 ///\r
556 UINT16 RemotePort;\r
557 ///\r
558 /// The network protocol(i.e. UDP, TCP).\r
559 ///\r
560 UINT16 Protocol;\r
561 ///\r
562 /// 0x00 - The Source IP Address was assigned though DHCP.\r
563 /// 0x01 - The Source IP Address is statically bound.\r
564 ///\r
565 BOOLEAN StaticIpAddress;\r
566 ///\r
567 /// The gateway IP address\r
568 ///\r
569 EFI_IPv4_ADDRESS GatewayIpAddress;\r
570 ///\r
571 /// The subnet mask\r
572 ///\r
573 EFI_IPv4_ADDRESS SubnetMask;\r
574} IPv4_DEVICE_PATH;\r
575\r
576///\r
577/// IPv6 Device Path SubType.\r
578///\r
579#define MSG_IPv6_DP 0x0d\r
580typedef struct {\r
581 EFI_DEVICE_PATH_PROTOCOL Header;\r
582 ///\r
583 /// The local IPv6 address.\r
584 ///\r
585 EFI_IPv6_ADDRESS LocalIpAddress;\r
586 ///\r
587 /// The remote IPv6 address.\r
588 ///\r
589 EFI_IPv6_ADDRESS RemoteIpAddress;\r
590 ///\r
591 /// The local port number.\r
592 ///\r
593 UINT16 LocalPort;\r
594 ///\r
595 /// The remote port number.\r
596 ///\r
597 UINT16 RemotePort;\r
598 ///\r
599 /// The network protocol(i.e. UDP, TCP).\r
600 ///\r
601 UINT16 Protocol;\r
602 ///\r
603 /// 0x00 - The Local IP Address was manually configured.\r
604 /// 0x01 - The Local IP Address is assigned through IPv6\r
605 /// stateless auto-configuration.\r
606 /// 0x02 - The Local IP Address is assigned through IPv6\r
607 /// stateful configuration.\r
608 ///\r
609 UINT8 IpAddressOrigin;\r
610 ///\r
611 /// The prefix length\r
612 ///\r
613 UINT8 PrefixLength;\r
614 ///\r
615 /// The gateway IP address\r
616 ///\r
617 EFI_IPv6_ADDRESS GatewayIpAddress;\r
618} IPv6_DEVICE_PATH;\r
619\r
620///\r
621/// InfiniBand Device Path SubType.\r
622///\r
623#define MSG_INFINIBAND_DP 0x09\r
624typedef struct {\r
625 EFI_DEVICE_PATH_PROTOCOL Header;\r
626 ///\r
627 /// Flags to help identify/manage InfiniBand device path elements:\r
628 /// Bit 0 - IOC/Service (0b = IOC, 1b = Service).\r
629 /// Bit 1 - Extend Boot Environment.\r
630 /// Bit 2 - Console Protocol.\r
631 /// Bit 3 - Storage Protocol.\r
632 /// Bit 4 - Network Protocol.\r
633 /// All other bits are reserved.\r
634 ///\r
635 UINT32 ResourceFlags;\r
636 ///\r
637 /// 128-bit Global Identifier for remote fabric port.\r
638 ///\r
639 UINT8 PortGid[16];\r
640 ///\r
641 /// 64-bit unique identifier to remote IOC or server process.\r
642 /// Interpretation of field specified by Resource Flags (bit 0).\r
643 ///\r
644 UINT64 ServiceId;\r
645 ///\r
646 /// 64-bit persistent ID of remote IOC port.\r
647 ///\r
648 UINT64 TargetPortId;\r
649 ///\r
650 /// 64-bit persistent ID of remote device.\r
651 ///\r
652 UINT64 DeviceId;\r
653} INFINIBAND_DEVICE_PATH;\r
654\r
655#define INFINIBAND_RESOURCE_FLAG_IOC_SERVICE 0x01\r
656#define INFINIBAND_RESOURCE_FLAG_EXTENDED_BOOT_ENVIRONMENT 0x02\r
657#define INFINIBAND_RESOURCE_FLAG_CONSOLE_PROTOCOL 0x04\r
658#define INFINIBAND_RESOURCE_FLAG_STORAGE_PROTOCOL 0x08\r
659#define INFINIBAND_RESOURCE_FLAG_NETWORK_PROTOCOL 0x10\r
660\r
661///\r
662/// UART Device Path SubType.\r
663///\r
664#define MSG_UART_DP 0x0e\r
665typedef struct {\r
666 EFI_DEVICE_PATH_PROTOCOL Header;\r
667 ///\r
668 /// Reserved.\r
669 ///\r
670 UINT32 Reserved;\r
671 ///\r
672 /// The baud rate setting for the UART style device. A value of 0\r
673 /// means that the device's default baud rate will be used.\r
674 ///\r
675 UINT64 BaudRate;\r
676 ///\r
677 /// The number of data bits for the UART style device. A value\r
678 /// of 0 means that the device's default number of data bits will be used.\r
679 ///\r
680 UINT8 DataBits;\r
681 ///\r
682 /// The parity setting for the UART style device.\r
683 /// Parity 0x00 - Default Parity.\r
684 /// Parity 0x01 - No Parity.\r
685 /// Parity 0x02 - Even Parity.\r
686 /// Parity 0x03 - Odd Parity.\r
687 /// Parity 0x04 - Mark Parity.\r
688 /// Parity 0x05 - Space Parity.\r
689 ///\r
690 UINT8 Parity;\r
691 ///\r
692 /// The number of stop bits for the UART style device.\r
693 /// Stop Bits 0x00 - Default Stop Bits.\r
694 /// Stop Bits 0x01 - 1 Stop Bit.\r
695 /// Stop Bits 0x02 - 1.5 Stop Bits.\r
696 /// Stop Bits 0x03 - 2 Stop Bits.\r
697 ///\r
698 UINT8 StopBits;\r
699} UART_DEVICE_PATH;\r
700\r
701//\r
702// Use VENDOR_DEVICE_PATH struct\r
703//\r
704#define MSG_VENDOR_DP 0x0a\r
705typedef VENDOR_DEVICE_PATH VENDOR_DEFINED_DEVICE_PATH;\r
706\r
707#define DEVICE_PATH_MESSAGING_PC_ANSI EFI_PC_ANSI_GUID\r
708#define DEVICE_PATH_MESSAGING_VT_100 EFI_VT_100_GUID\r
709#define DEVICE_PATH_MESSAGING_VT_100_PLUS EFI_VT_100_PLUS_GUID\r
710#define DEVICE_PATH_MESSAGING_VT_UTF8 EFI_VT_UTF8_GUID\r
711\r
712///\r
713/// A new device path node is defined to declare flow control characteristics.\r
714/// UART Flow Control Messaging Device Path\r
715///\r
716typedef struct {\r
717 EFI_DEVICE_PATH_PROTOCOL Header;\r
718 ///\r
719 /// DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL GUID.\r
720 ///\r
721 EFI_GUID Guid;\r
722 ///\r
723 /// Bitmap of supported flow control types.\r
724 /// Bit 0 set indicates hardware flow control.\r
725 /// Bit 1 set indicates Xon/Xoff flow control.\r
726 /// All other bits are reserved and are clear.\r
727 ///\r
728 UINT32 FlowControlMap;\r
729} UART_FLOW_CONTROL_DEVICE_PATH;\r
730\r
731#define UART_FLOW_CONTROL_HARDWARE 0x00000001\r
732#define UART_FLOW_CONTROL_XON_XOFF 0x00000010\r
733\r
734#define DEVICE_PATH_MESSAGING_SAS EFI_SAS_DEVICE_PATH_GUID\r
735///\r
736/// Serial Attached SCSI (SAS) Device Path.\r
737///\r
738typedef struct {\r
739 EFI_DEVICE_PATH_PROTOCOL Header;\r
740 ///\r
741 /// DEVICE_PATH_MESSAGING_SAS GUID.\r
742 ///\r
743 EFI_GUID Guid;\r
744 ///\r
745 /// Reserved for future use.\r
746 ///\r
747 UINT32 Reserved;\r
748 ///\r
749 /// SAS Address for Serial Attached SCSI Target.\r
750 ///\r
751 UINT64 SasAddress;\r
752 ///\r
753 /// SAS Logical Unit Number.\r
754 ///\r
755 UINT64 Lun;\r
756 ///\r
757 /// More Information about the device and its interconnect.\r
758 ///\r
759 UINT16 DeviceTopology;\r
760 ///\r
761 /// Relative Target Port (RTP).\r
762 ///\r
763 UINT16 RelativeTargetPort;\r
764} SAS_DEVICE_PATH;\r
765\r
766///\r
767/// Serial Attached SCSI (SAS) Ex Device Path SubType\r
768///\r
769#define MSG_SASEX_DP 0x16\r
770typedef struct {\r
771 EFI_DEVICE_PATH_PROTOCOL Header;\r
772 ///\r
773 /// 8-byte array of the SAS Address for Serial Attached SCSI Target Port.\r
774 ///\r
775 UINT8 SasAddress[8];\r
776 ///\r
777 /// 8-byte array of the SAS Logical Unit Number.\r
778 ///\r
779 UINT8 Lun[8];\r
780 ///\r
781 /// More Information about the device and its interconnect.\r
782 ///\r
783 UINT16 DeviceTopology;\r
784 ///\r
785 /// Relative Target Port (RTP).\r
786 ///\r
787 UINT16 RelativeTargetPort;\r
788} SASEX_DEVICE_PATH;\r
789\r
790///\r
791/// NvmExpress Namespace Device Path SubType.\r
792///\r
793#define MSG_NVME_NAMESPACE_DP 0x17\r
794typedef struct {\r
795 EFI_DEVICE_PATH_PROTOCOL Header;\r
796 UINT32 NamespaceId;\r
797 UINT64 NamespaceUuid;\r
798} NVME_NAMESPACE_DEVICE_PATH;\r
799\r
800///\r
801/// Uniform Resource Identifiers (URI) Device Path SubType\r
802///\r
803#define MSG_URI_DP 0x18\r
804typedef struct {\r
805 EFI_DEVICE_PATH_PROTOCOL Header;\r
806 ///\r
807 /// Instance of the URI pursuant to RFC 3986.\r
808 ///\r
809 CHAR8 Uri[];\r
810} URI_DEVICE_PATH;\r
811\r
812///\r
813/// Universal Flash Storage (UFS) Device Path SubType.\r
814///\r
815#define MSG_UFS_DP 0x19\r
816typedef struct {\r
817 EFI_DEVICE_PATH_PROTOCOL Header;\r
818 ///\r
819 /// Target ID on the UFS bus (PUN).\r
820 ///\r
821 UINT8 Pun;\r
822 ///\r
823 /// Logical Unit Number (LUN).\r
824 ///\r
825 UINT8 Lun;\r
826} UFS_DEVICE_PATH;\r
827\r
828///\r
829/// SD (Secure Digital) Device Path SubType.\r
830///\r
831#define MSG_SD_DP 0x1A\r
832typedef struct {\r
833 EFI_DEVICE_PATH_PROTOCOL Header;\r
834 UINT8 SlotNumber;\r
835} SD_DEVICE_PATH;\r
836\r
837///\r
838/// iSCSI Device Path SubType\r
839///\r
840#define MSG_ISCSI_DP 0x13\r
841typedef struct {\r
842 EFI_DEVICE_PATH_PROTOCOL Header;\r
843 ///\r
844 /// Network Protocol (0 = TCP, 1+ = reserved).\r
845 ///\r
846 UINT16 NetworkProtocol;\r
847 ///\r
848 /// iSCSI Login Options.\r
849 ///\r
850 UINT16 LoginOption;\r
851 ///\r
852 /// iSCSI Logical Unit Number.\r
853 ///\r
854 UINT64 Lun;\r
855 ///\r
856 /// iSCSI Target Portal group tag the initiator intends\r
857 /// to establish a session with.\r
858 ///\r
859 UINT16 TargetPortalGroupTag;\r
860 ///\r
861 /// iSCSI NodeTarget Name. The length of the name\r
862 /// is determined by subtracting the offset of this field from Length.\r
863 ///\r
864 /// CHAR8 iSCSI Target Name.\r
865} ISCSI_DEVICE_PATH;\r
866\r
867#define ISCSI_LOGIN_OPTION_NO_HEADER_DIGEST 0x0000\r
868#define ISCSI_LOGIN_OPTION_HEADER_DIGEST_USING_CRC32C 0x0002\r
869#define ISCSI_LOGIN_OPTION_NO_DATA_DIGEST 0x0000\r
870#define ISCSI_LOGIN_OPTION_DATA_DIGEST_USING_CRC32C 0x0008\r
871#define ISCSI_LOGIN_OPTION_AUTHMETHOD_CHAP 0x0000\r
872#define ISCSI_LOGIN_OPTION_AUTHMETHOD_NON 0x1000\r
873#define ISCSI_LOGIN_OPTION_CHAP_BI 0x0000\r
874#define ISCSI_LOGIN_OPTION_CHAP_UNI 0x2000\r
875\r
876///\r
877/// VLAN Device Path SubType.\r
878///\r
879#define MSG_VLAN_DP 0x14\r
880typedef struct {\r
881 EFI_DEVICE_PATH_PROTOCOL Header;\r
882 ///\r
883 /// VLAN identifier (0-4094).\r
884 ///\r
885 UINT16 VlanId;\r
886} VLAN_DEVICE_PATH;\r
887\r
888///\r
889/// Bluetooth Device Path SubType.\r
890///\r
891#define MSG_BLUETOOTH_DP 0x1b\r
892typedef struct {\r
893 EFI_DEVICE_PATH_PROTOCOL Header;\r
894 ///\r
895 /// 48bit Bluetooth device address.\r
896 ///\r
897 BLUETOOTH_ADDRESS BD_ADDR;\r
898} BLUETOOTH_DEVICE_PATH;\r
899\r
900///\r
901/// Wi-Fi Device Path SubType.\r
902///\r
903#define MSG_WIFI_DP 0x1C\r
904typedef struct {\r
905 EFI_DEVICE_PATH_PROTOCOL Header;\r
906 ///\r
907 /// Service set identifier. A 32-byte octets string.\r
908 ///\r
909 UINT8 SSId[32];\r
910} WIFI_DEVICE_PATH;\r
911\r
912//\r
913// Media Device Path\r
914//\r
915#define MEDIA_DEVICE_PATH 0x04\r
916\r
917///\r
918/// Hard Drive Media Device Path SubType.\r
919///\r
920#define MEDIA_HARDDRIVE_DP 0x01\r
921\r
922///\r
923/// The Hard Drive Media Device Path is used to represent a partition on a hard drive.\r
924///\r
925typedef struct {\r
926 EFI_DEVICE_PATH_PROTOCOL Header;\r
927 ///\r
928 /// Describes the entry in a partition table, starting with entry 1.\r
929 /// Partition number zero represents the entire device. Valid\r
930 /// partition numbers for a MBR partition are [1, 4]. Valid\r
931 /// partition numbers for a GPT partition are [1, NumberOfPartitionEntries].\r
932 ///\r
933 UINT32 PartitionNumber;\r
934 ///\r
935 /// Starting LBA of the partition on the hard drive.\r
936 ///\r
937 UINT64 PartitionStart;\r
938 ///\r
939 /// Size of the partition in units of Logical Blocks.\r
940 ///\r
941 UINT64 PartitionSize;\r
942 ///\r
943 /// Signature unique to this partition:\r
944 /// If SignatureType is 0, this field has to be initialized with 16 zeros.\r
945 /// If SignatureType is 1, the MBR signature is stored in the first 4 bytes of this field.\r
946 /// The other 12 bytes are initialized with zeros.\r
947 /// If SignatureType is 2, this field contains a 16 byte signature.\r
948 ///\r
949 UINT8 Signature[16];\r
950 ///\r
951 /// Partition Format: (Unused values reserved).\r
952 /// 0x01 - PC-AT compatible legacy MBR.\r
953 /// 0x02 - GUID Partition Table.\r
954 ///\r
955 UINT8 MBRType;\r
956 ///\r
957 /// Type of Disk Signature: (Unused values reserved).\r
958 /// 0x00 - No Disk Signature.\r
959 /// 0x01 - 32-bit signature from address 0x1b8 of the type 0x01 MBR.\r
960 /// 0x02 - GUID signature.\r
961 ///\r
962 UINT8 SignatureType;\r
963} HARDDRIVE_DEVICE_PATH;\r
964\r
965#define MBR_TYPE_PCAT 0x01\r
966#define MBR_TYPE_EFI_PARTITION_TABLE_HEADER 0x02\r
967\r
968#define NO_DISK_SIGNATURE 0x00\r
969#define SIGNATURE_TYPE_MBR 0x01\r
970#define SIGNATURE_TYPE_GUID 0x02\r
971\r
972///\r
973/// CD-ROM Media Device Path SubType.\r
974///\r
975#define MEDIA_CDROM_DP 0x02\r
976\r
977///\r
978/// The CD-ROM Media Device Path is used to define a system partition that exists on a CD-ROM.\r
979///\r
980typedef struct {\r
981 EFI_DEVICE_PATH_PROTOCOL Header;\r
982 ///\r
983 /// Boot Entry number from the Boot Catalog. The Initial/Default entry is defined as zero.\r
984 ///\r
985 UINT32 BootEntry;\r
986 ///\r
987 /// Starting RBA of the partition on the medium. CD-ROMs use Relative logical Block Addressing.\r
988 ///\r
989 UINT64 PartitionStart;\r
990 ///\r
991 /// Size of the partition in units of Blocks, also called Sectors.\r
992 ///\r
993 UINT64 PartitionSize;\r
994} CDROM_DEVICE_PATH;\r
995\r
996//\r
997// Use VENDOR_DEVICE_PATH struct\r
998//\r
999#define MEDIA_VENDOR_DP 0x03 ///< Media vendor device path subtype.\r
1000\r
1001///\r
1002/// File Path Media Device Path SubType\r
1003///\r
1004#define MEDIA_FILEPATH_DP 0x04\r
1005typedef struct {\r
1006 EFI_DEVICE_PATH_PROTOCOL Header;\r
1007 ///\r
1008 /// A NULL-terminated Path string including directory and file names.\r
1009 ///\r
1010 CHAR16 PathName[1];\r
1011} FILEPATH_DEVICE_PATH;\r
1012\r
1013#define SIZE_OF_FILEPATH_DEVICE_PATH OFFSET_OF(FILEPATH_DEVICE_PATH,PathName)\r
1014\r
1015///\r
1016/// Media Protocol Device Path SubType.\r
1017///\r
1018#define MEDIA_PROTOCOL_DP 0x05\r
1019\r
1020///\r
1021/// The Media Protocol Device Path is used to denote the protocol that is being \r
1022/// used in a device path at the location of the path specified. \r
1023/// Many protocols are inherent to the style of device path.\r
1024///\r
1025typedef struct {\r
1026 EFI_DEVICE_PATH_PROTOCOL Header;\r
1027 ///\r
1028 /// The ID of the protocol.\r
1029 ///\r
1030 EFI_GUID Protocol;\r
1031} MEDIA_PROTOCOL_DEVICE_PATH;\r
1032\r
1033///\r
1034/// PIWG Firmware File SubType.\r
1035///\r
1036#define MEDIA_PIWG_FW_FILE_DP 0x06\r
1037\r
1038///\r
1039/// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware file.\r
1040///\r
1041typedef struct {\r
1042 EFI_DEVICE_PATH_PROTOCOL Header;\r
1043 ///\r
1044 /// Firmware file name\r
1045 ///\r
1046 EFI_GUID FvFileName;\r
1047} MEDIA_FW_VOL_FILEPATH_DEVICE_PATH;\r
1048\r
1049///\r
1050/// PIWG Firmware Volume Device Path SubType.\r
1051///\r
1052#define MEDIA_PIWG_FW_VOL_DP 0x07\r
1053\r
1054///\r
1055/// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware volume.\r
1056///\r
1057typedef struct {\r
1058 EFI_DEVICE_PATH_PROTOCOL Header;\r
1059 ///\r
1060 /// Firmware volume name.\r
1061 ///\r
1062 EFI_GUID FvName;\r
1063} MEDIA_FW_VOL_DEVICE_PATH;\r
1064\r
1065///\r
1066/// Media relative offset range device path.\r
1067///\r
1068#define MEDIA_RELATIVE_OFFSET_RANGE_DP 0x08\r
1069\r
1070///\r
1071/// Used to describe the offset range of media relative.\r
1072///\r
1073typedef struct {\r
1074 EFI_DEVICE_PATH_PROTOCOL Header;\r
1075 UINT32 Reserved;\r
1076 UINT64 StartingOffset;\r
1077 UINT64 EndingOffset;\r
1078} MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH;\r
1079\r
1080///\r
1081/// This GUID defines a RAM Disk supporting a raw disk format in volatile memory.\r
1082///\r
1083#define EFI_VIRTUAL_DISK_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_VOLATILE\r
1084\r
1085extern EFI_GUID gEfiVirtualDiskGuid;\r
1086\r
1087///\r
1088/// This GUID defines a RAM Disk supporting an ISO image in volatile memory.\r
1089///\r
1090#define EFI_VIRTUAL_CD_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_VOLATILE\r
1091\r
1092extern EFI_GUID gEfiVirtualCdGuid;\r
1093\r
1094///\r
1095/// This GUID defines a RAM Disk supporting a raw disk format in persistent memory.\r
1096///\r
1097#define EFI_PERSISTENT_VIRTUAL_DISK_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_PERSISTENT\r
1098\r
1099extern EFI_GUID gEfiPersistentVirtualDiskGuid;\r
1100\r
1101///\r
1102/// This GUID defines a RAM Disk supporting an ISO image in persistent memory.\r
1103///\r
1104#define EFI_PERSISTENT_VIRTUAL_CD_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_PERSISTENT\r
1105\r
1106extern EFI_GUID gEfiPersistentVirtualCdGuid;\r
1107\r
1108///\r
1109/// Media ram disk device path.\r
1110///\r
1111#define MEDIA_RAM_DISK_DP 0x09\r
1112\r
1113///\r
1114/// Used to describe the ram disk device path.\r
1115///\r
1116typedef struct {\r
1117 EFI_DEVICE_PATH_PROTOCOL Header;\r
1118 ///\r
1119 /// Starting Memory Address.\r
1120 ///\r
1121 UINT32 StartingAddr[2];\r
1122 ///\r
1123 /// Ending Memory Address.\r
1124 ///\r
1125 UINT32 EndingAddr[2];\r
1126 ///\r
1127 /// GUID that defines the type of the RAM Disk.\r
1128 ///\r
1129 EFI_GUID TypeGuid;\r
1130 ///\r
1131 /// RAM Diskinstance number, if supported. The default value is zero.\r
1132 ///\r
1133 UINT16 Instance;\r
1134} MEDIA_RAM_DISK_DEVICE_PATH;\r
1135\r
1136///\r
1137/// BIOS Boot Specification Device Path.\r
1138///\r
1139#define BBS_DEVICE_PATH 0x05\r
1140\r
1141///\r
1142/// BIOS Boot Specification Device Path SubType.\r
1143///\r
1144#define BBS_BBS_DP 0x01\r
1145\r
1146///\r
1147/// This Device Path is used to describe the booting of non-EFI-aware operating systems.\r
1148///\r
1149typedef struct {\r
1150 EFI_DEVICE_PATH_PROTOCOL Header;\r
1151 ///\r
1152 /// Device Type as defined by the BIOS Boot Specification.\r
1153 ///\r
1154 UINT16 DeviceType;\r
1155 ///\r
1156 /// Status Flags as defined by the BIOS Boot Specification.\r
1157 ///\r
1158 UINT16 StatusFlag;\r
1159 ///\r
1160 /// Null-terminated ASCII string that describes the boot device to a user.\r
1161 ///\r
1162 CHAR8 String[1];\r
1163} BBS_BBS_DEVICE_PATH;\r
1164\r
1165//\r
1166// DeviceType definitions - from BBS specification\r
1167//\r
1168#define BBS_TYPE_FLOPPY 0x01\r
1169#define BBS_TYPE_HARDDRIVE 0x02\r
1170#define BBS_TYPE_CDROM 0x03\r
1171#define BBS_TYPE_PCMCIA 0x04\r
1172#define BBS_TYPE_USB 0x05\r
1173#define BBS_TYPE_EMBEDDED_NETWORK 0x06\r
1174#define BBS_TYPE_BEV 0x80\r
1175#define BBS_TYPE_UNKNOWN 0xFF\r
1176\r
1177\r
1178///\r
1179/// Union of all possible Device Paths and pointers to Device Paths.\r
1180///\r
1181typedef union {\r
1182 EFI_DEVICE_PATH_PROTOCOL DevPath;\r
1183 PCI_DEVICE_PATH Pci;\r
1184 PCCARD_DEVICE_PATH PcCard;\r
1185 MEMMAP_DEVICE_PATH MemMap;\r
1186 VENDOR_DEVICE_PATH Vendor;\r
1187\r
1188 CONTROLLER_DEVICE_PATH Controller;\r
1189 ACPI_HID_DEVICE_PATH Acpi;\r
1190 ACPI_EXTENDED_HID_DEVICE_PATH ExtendedAcpi;\r
1191 ACPI_ADR_DEVICE_PATH AcpiAdr;\r
1192\r
1193 ATAPI_DEVICE_PATH Atapi;\r
1194 SCSI_DEVICE_PATH Scsi;\r
1195 ISCSI_DEVICE_PATH Iscsi;\r
1196 FIBRECHANNEL_DEVICE_PATH FibreChannel;\r
1197 FIBRECHANNELEX_DEVICE_PATH FibreChannelEx;\r
1198\r
1199 F1394_DEVICE_PATH F1394;\r
1200 USB_DEVICE_PATH Usb;\r
1201 SATA_DEVICE_PATH Sata;\r
1202 USB_CLASS_DEVICE_PATH UsbClass;\r
1203 USB_WWID_DEVICE_PATH UsbWwid;\r
1204 DEVICE_LOGICAL_UNIT_DEVICE_PATH LogicUnit;\r
1205 I2O_DEVICE_PATH I2O;\r
1206 MAC_ADDR_DEVICE_PATH MacAddr;\r
1207 IPv4_DEVICE_PATH Ipv4;\r
1208 IPv6_DEVICE_PATH Ipv6;\r
1209 VLAN_DEVICE_PATH Vlan;\r
1210 INFINIBAND_DEVICE_PATH InfiniBand;\r
1211 UART_DEVICE_PATH Uart;\r
1212 UART_FLOW_CONTROL_DEVICE_PATH UartFlowControl;\r
1213 SAS_DEVICE_PATH Sas;\r
1214 SASEX_DEVICE_PATH SasEx;\r
1215 NVME_NAMESPACE_DEVICE_PATH NvmeNamespace;\r
1216 URI_DEVICE_PATH Uri;\r
1217 BLUETOOTH_DEVICE_PATH Bluetooth;\r
1218 WIFI_DEVICE_PATH WiFi;\r
1219 UFS_DEVICE_PATH Ufs;\r
1220 SD_DEVICE_PATH Sd;\r
1221 HARDDRIVE_DEVICE_PATH HardDrive;\r
1222 CDROM_DEVICE_PATH CD;\r
1223\r
1224 FILEPATH_DEVICE_PATH FilePath;\r
1225 MEDIA_PROTOCOL_DEVICE_PATH MediaProtocol;\r
1226\r
1227 MEDIA_FW_VOL_DEVICE_PATH FirmwareVolume;\r
1228 MEDIA_FW_VOL_FILEPATH_DEVICE_PATH FirmwareFile;\r
1229 MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH Offset;\r
1230 MEDIA_RAM_DISK_DEVICE_PATH RamDisk;\r
1231 BBS_BBS_DEVICE_PATH Bbs;\r
1232} EFI_DEV_PATH;\r
1233\r
1234\r
1235\r
1236typedef union {\r
1237 EFI_DEVICE_PATH_PROTOCOL *DevPath;\r
1238 PCI_DEVICE_PATH *Pci;\r
1239 PCCARD_DEVICE_PATH *PcCard;\r
1240 MEMMAP_DEVICE_PATH *MemMap;\r
1241 VENDOR_DEVICE_PATH *Vendor;\r
1242\r
1243 CONTROLLER_DEVICE_PATH *Controller;\r
1244 ACPI_HID_DEVICE_PATH *Acpi;\r
1245 ACPI_EXTENDED_HID_DEVICE_PATH *ExtendedAcpi;\r
1246 ACPI_ADR_DEVICE_PATH *AcpiAdr;\r
1247\r
1248 ATAPI_DEVICE_PATH *Atapi;\r
1249 SCSI_DEVICE_PATH *Scsi;\r
1250 ISCSI_DEVICE_PATH *Iscsi;\r
1251 FIBRECHANNEL_DEVICE_PATH *FibreChannel;\r
1252 FIBRECHANNELEX_DEVICE_PATH *FibreChannelEx;\r
1253\r
1254 F1394_DEVICE_PATH *F1394;\r
1255 USB_DEVICE_PATH *Usb;\r
1256 SATA_DEVICE_PATH *Sata;\r
1257 USB_CLASS_DEVICE_PATH *UsbClass;\r
1258 USB_WWID_DEVICE_PATH *UsbWwid;\r
1259 DEVICE_LOGICAL_UNIT_DEVICE_PATH *LogicUnit;\r
1260 I2O_DEVICE_PATH *I2O;\r
1261 MAC_ADDR_DEVICE_PATH *MacAddr;\r
1262 IPv4_DEVICE_PATH *Ipv4;\r
1263 IPv6_DEVICE_PATH *Ipv6;\r
1264 VLAN_DEVICE_PATH *Vlan;\r
1265 INFINIBAND_DEVICE_PATH *InfiniBand;\r
1266 UART_DEVICE_PATH *Uart;\r
1267 UART_FLOW_CONTROL_DEVICE_PATH *UartFlowControl;\r
1268 SAS_DEVICE_PATH *Sas;\r
1269 SASEX_DEVICE_PATH *SasEx;\r
1270 NVME_NAMESPACE_DEVICE_PATH *NvmeNamespace;\r
1271 URI_DEVICE_PATH *Uri;\r
1272 BLUETOOTH_DEVICE_PATH *Bluetooth;\r
1273 WIFI_DEVICE_PATH *WiFi;\r
1274 UFS_DEVICE_PATH *Ufs;\r
1275 SD_DEVICE_PATH *Sd;\r
1276 HARDDRIVE_DEVICE_PATH *HardDrive;\r
1277 CDROM_DEVICE_PATH *CD;\r
1278\r
1279 FILEPATH_DEVICE_PATH *FilePath;\r
1280 MEDIA_PROTOCOL_DEVICE_PATH *MediaProtocol;\r
1281\r
1282 MEDIA_FW_VOL_DEVICE_PATH *FirmwareVolume;\r
1283 MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FirmwareFile;\r
1284 MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH *Offset;\r
1285 MEDIA_RAM_DISK_DEVICE_PATH *RamDisk;\r
1286 BBS_BBS_DEVICE_PATH *Bbs;\r
1287 UINT8 *Raw;\r
1288} EFI_DEV_PATH_PTR;\r
1289\r
1290#pragma pack()\r
1291 \r
1292#define END_DEVICE_PATH_TYPE 0x7f\r
1293#define END_ENTIRE_DEVICE_PATH_SUBTYPE 0xFF\r
1294#define END_INSTANCE_DEVICE_PATH_SUBTYPE 0x01\r
1295\r
1296extern EFI_GUID gEfiDevicePathProtocolGuid;\r
1297\r
1298#endif\r