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