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