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