2 The device path protocol as defined in UEFI 2.0.
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.
8 Copyright (c) 2006 - 2009, Intel Corporation
9 All rights reserved. This program and the accompanying materials
10 are licensed and made available under the terms and conditions of the BSD License
11 which accompanies this distribution. The full text of the license may be found at
12 http://opensource.org/licenses/bsd-license.php
14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 #ifndef __EFI_DEVICE_PATH_PROTOCOL_H__
20 #define __EFI_DEVICE_PATH_PROTOCOL_H__
22 #include <Guid/PcAnsi.h>
25 /// Device Path protocol
27 #define EFI_DEVICE_PATH_PROTOCOL_GUID \
29 0x9576e91, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \
33 /// Device Path guid definition for backward-compatible with EFI1.1.
35 #define DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH_PROTOCOL_GUID
40 This protocol can be used on any device handle to obtain generic path/location
41 information concerning the physical device or logical device. If the handle does
42 not logically map to a physical device, the handle may not necessarily support
43 the device path protocol. The device path describes the location of the device
44 the handle is for. The size of the Device Path can be determined from the structures
45 that make up the Device Path.
48 UINT8 Type
; ///< 0x01 Hardware Device Path
49 ///< 0x02 ACPI Device Path
50 ///< 0x03 Messaging Device Path
51 ///< 0x04 Media Device Path
52 ///< 0x05 BIOS Boot Specification Device Path
53 ///< 0x7F End of Hardware Device Path
55 UINT8 SubType
; ///< Varies by Type
56 ///< 0xFF End Entire Device Path, or
57 ///< 0x01 End This Instance of a Device Path and start a new
60 UINT8 Length
[2]; ///< Specific Device Path data. Type and Sub-Type define
61 ///< type of data. Size of data is included in Length.
63 } EFI_DEVICE_PATH_PROTOCOL
;
66 /// Device Path protocol definition for backward-compatible with EFI1.1.
68 typedef EFI_DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH
;
71 /// Hardware Device Paths
73 #define HARDWARE_DEVICE_PATH 0x01
76 /// PCI Device Path SubType
78 #define HW_PCI_DP 0x01
84 EFI_DEVICE_PATH_PROTOCOL Header
;
86 /// PCI Function Number
96 /// PCCARD Device Path SubType
98 #define HW_PCCARD_DP 0x02
101 /// PCCARD Device Path
104 EFI_DEVICE_PATH_PROTOCOL Header
;
106 /// Function Number (0 = First Function)
108 UINT8 FunctionNumber
;
109 } PCCARD_DEVICE_PATH
;
112 /// Memory Mapped Device Path SubType
114 #define HW_MEMMAP_DP 0x03
117 /// Memory Mapped Device Path
120 EFI_DEVICE_PATH_PROTOCOL Header
;
126 /// Starting Memory Address.
128 EFI_PHYSICAL_ADDRESS StartingAddress
;
130 /// Ending Memory Address
132 EFI_PHYSICAL_ADDRESS EndingAddress
;
133 } MEMMAP_DEVICE_PATH
;
136 /// Hardware Vendor Device Path SubType
138 #define HW_VENDOR_DP 0x04
141 /// The Vendor Device Path allows the creation of vendor-defined Device Paths. A vendor must
142 /// allocate a Vendor GUID for a Device Path. The Vendor GUID can then be used to define the
143 /// contents on the n bytes that follow in the Vendor Device Path node.
146 EFI_DEVICE_PATH_PROTOCOL Header
;
148 /// Vendor-assigned GUID that defines the data that follows.
152 /// Vendor-defined variable size data.
154 } VENDOR_DEVICE_PATH
;
157 /// Controller Device Path SubType
159 #define HW_CONTROLLER_DP 0x05
162 /// Controller Device Path
165 EFI_DEVICE_PATH_PROTOCOL Header
;
167 /// Controller number.
169 UINT32 ControllerNumber
;
170 } CONTROLLER_DEVICE_PATH
;
173 /// ACPI Device Paths
175 #define ACPI_DEVICE_PATH 0x02
178 /// ACPI Device Path SubType
182 EFI_DEVICE_PATH_PROTOCOL Header
;
184 /// Device's PnP hardware ID stored in a numeric 32-bit
185 /// compressed EISA-type ID. This value must match the
186 /// corresponding _HID in the ACPI name space.
190 /// Unique ID that is required by ACPI if two devices have the
191 /// same _HID. This value must also match the corresponding
192 /// _UID/_HID pair in the ACPI name space. Only the 32-bit
193 /// numeric value type of _UID is supported; thus strings must
194 /// not be used for the _UID in the ACPI name space.
197 } ACPI_HID_DEVICE_PATH
;
200 /// Expanded ACPI Device Path SubType
202 #define ACPI_EXTENDED_DP 0x02
204 EFI_DEVICE_PATH_PROTOCOL Header
;
206 /// Device's PnP hardware ID stored in a numeric 32-bit
207 /// compressed EISA-type ID. This value must match the
208 /// corresponding _HID in the ACPI name space.
212 /// Unique ID that is required by ACPI if two devices have the
213 /// same _HID. This value must also match the corresponding
214 /// _UID/_HID pair in the ACPI name space.
218 /// Device's compatible PnP hardware ID stored in a numeric
219 /// 32-bit compressed EISA-type ID. This value must match at
220 /// least one of the compatible device IDs returned by the
221 /// corresponding _CID in the ACPI name space.
225 /// Optional variable length _HIDSTR
226 /// Optional variable length _UIDSTR
227 /// Optional variable length _CIDSTR
229 } ACPI_EXTENDED_HID_DEVICE_PATH
;
233 // EISA ID Definition 32-bits
234 // bits[15:0] - three character compressed ASCII EISA ID.
235 // bits[31:16] - binary number
236 // Compressed ASCII is 5 bits per character 0b00001 = 'A' 0b11010 = 'Z'
238 #define PNP_EISA_ID_CONST 0x41d0
239 #define EISA_ID(_Name, _Num) ((UINT32)((_Name) | (_Num) << 16))
240 #define EISA_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))
241 #define EFI_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))
243 #define PNP_EISA_ID_MASK 0xffff
244 #define EISA_ID_TO_NUM(_Id) ((_Id) >> 16)
247 /// ACPI _ADR Device Path SubType
249 #define ACPI_ADR_DP 0x03
252 /// The _ADR device path is used to contain video output device attributes to support the Graphics
253 /// Output Protocol. The device path can contain multiple _ADR entries if multiple video output
254 /// devices are displaying the same output.
257 EFI_DEVICE_PATH_PROTOCOL Header
;
259 /// _ADR value. For video output devices the value of this
260 /// field comes from Table B-2 ACPI 3.0 specification. At
261 /// least one _ADR value is required.
265 // This device path may optionally contain more than one _ADR entry.
267 } ACPI_ADR_DEVICE_PATH
;
269 #define ACPI_ADR_DISPLAY_TYPE_OTHER 0
270 #define ACPI_ADR_DISPLAY_TYPE_VGA 1
271 #define ACPI_ADR_DISPLAY_TYPE_TV 2
272 #define ACPI_ADR_DISPLAY_TYPE_EXTERNAL_DIGITAL 3
273 #define ACPI_ADR_DISPLAY_TYPE_INTERNAL_DIGITAL 4
275 #define ACPI_DISPLAY_ADR(_DeviceIdScheme, _HeadId, _NonVgaOutput, _BiosCanDetect, _VendorInfo, _Type, _Port, _Index) \
276 ((UINT32)( (((_DeviceIdScheme) & 0x1) << 31) | \
277 (((_HeadId) & 0x7) << 18) | \
278 (((_NonVgaOutput) & 0x1) << 17) | \
279 (((_BiosCanDetect) & 0x1) << 16) | \
280 (((_VendorInfo) & 0xf) << 12) | \
281 (((_Type) & 0xf) << 8) | \
282 (((_Port) & 0xf) << 4) | \
286 /// Messaging Device Paths
287 /// This Device Path is used to describe the connection of devices outside the resource domain of the
288 /// system. This Device Path can describe physical messaging information like SCSI ID, or abstract
289 /// information like networking protocol IP addresses.
291 #define MESSAGING_DEVICE_PATH 0x03
294 /// ATAPI Device Path SubType
296 #define MSG_ATAPI_DP 0x01
298 EFI_DEVICE_PATH_PROTOCOL Header
;
300 /// Set to zero for primary or one for secondary
302 UINT8 PrimarySecondary
;
304 /// Set to zero for master or one for slave mode
308 /// Logical Unit Number
314 /// SCSI Device Path SubType
316 #define MSG_SCSI_DP 0x02
318 EFI_DEVICE_PATH_PROTOCOL Header
;
320 /// Target ID on the SCSI bus (PUN)
324 /// Logical Unit Number (LUN)
330 /// Fibre Channel SubType
332 #define MSG_FIBRECHANNEL_DP 0x03
334 EFI_DEVICE_PATH_PROTOCOL Header
;
336 /// Reserved for the future.
340 /// Fibre Channel World Wide Number.
344 /// Fibre Channel Logical Unit Number.
347 } FIBRECHANNEL_DEVICE_PATH
;
350 /// 1394 Device Path SubType
352 #define MSG_1394_DP 0x04
354 EFI_DEVICE_PATH_PROTOCOL Header
;
356 /// Reserved for the future.
360 /// 1394 Global Unique ID (GUID).
366 /// USB Device Path SubType
368 #define MSG_USB_DP 0x05
370 EFI_DEVICE_PATH_PROTOCOL Header
;
372 /// USB Parent Port Number
374 UINT8 ParentPortNumber
;
376 /// USB Interface Number
378 UINT8 InterfaceNumber
;
382 /// USB Class Device Path SubType
384 #define MSG_USB_CLASS_DP 0x0f
386 EFI_DEVICE_PATH_PROTOCOL Header
;
388 /// Vendor ID assigned by USB-IF. A value of 0xFFFF will
389 /// match any Vendor ID.
393 /// Product ID assigned by USB-IF. A value of 0xFFFF will
394 /// match any Product ID.
398 /// The class code assigned by the USB-IF. A value of 0xFF
399 /// will match any class code.
403 /// The subclass code assigned by the USB-IF. A value of
404 /// 0xFF will match any subclass code.
406 UINT8 DeviceSubClass
;
408 /// The protocol code assigned by the USB-IF. A value of
409 /// 0xFF will match any protocol code.
411 UINT8 DeviceProtocol
;
412 } USB_CLASS_DEVICE_PATH
;
415 /// USB WWID Device Path SubType
417 #define MSG_USB_WWID_DP 0x10
420 /// This device path describes a USB device using its serial number.
423 EFI_DEVICE_PATH_PROTOCOL Header
;
425 /// USB interface number
427 UINT16 InterfaceNumber
;
429 /// USB vendor id of the device
433 /// USB product id of the device
437 /// Last 64-or-fewer UTF-16 characters of the USB
438 /// serial number. The length of the string is
439 /// determined by the Length field less the offset of the
440 /// Serial Number field (10)
442 /// CHAR16 SerialNumber[...];
443 } USB_WWID_DEVICE_PATH
;
446 /// Device Logical Unit SubType
448 #define MSG_DEVICE_LOGICAL_UNIT_DP 0x11
450 EFI_DEVICE_PATH_PROTOCOL Header
;
452 /// Logical Unit Number for the interface
455 } DEVICE_LOGICAL_UNIT_DEVICE_PATH
;
458 /// SATA Device Path SubType
460 #define MSG_SATA_DP 0x12
462 EFI_DEVICE_PATH_PROTOCOL Header
;
464 /// The HBA port number that facilitates the connection to the
465 /// device or a port multiplier. The value 0xFFFF is reserved.
467 UINT16 HBAPortNumber
;
469 /// The Port multiplier port number that facilitates the connection
470 /// to the device. Bit 15 should be set if the device is directly
471 /// connected to the HBA.
473 UINT16 PortMultiplierPortNumber
;
475 /// Logical Unit Number.
481 /// Flag for if the device is directly connected to the HBA.
483 #define SATA_HBA_DIRECT_CONNECT_FLAG 0x8000
486 /// I2O Device Path SubType
488 #define MSG_I2O_DP 0x06
490 EFI_DEVICE_PATH_PROTOCOL Header
;
492 /// Target ID (TID) for a device
498 /// MAC Address Device Path SubType
500 #define MSG_MAC_ADDR_DP 0x0b
502 EFI_DEVICE_PATH_PROTOCOL Header
;
504 /// The MAC address for a network interface padded with 0s
506 EFI_MAC_ADDRESS MacAddress
;
508 /// Network interface type(i.e. 802.3, FDDI).
511 } MAC_ADDR_DEVICE_PATH
;
514 /// IPv4 Device Path SubType
516 #define MSG_IPv4_DP 0x0c
518 EFI_DEVICE_PATH_PROTOCOL Header
;
520 /// The local IPv4 address
522 EFI_IPv4_ADDRESS LocalIpAddress
;
524 /// The remote IPv4 address
526 EFI_IPv4_ADDRESS RemoteIpAddress
;
528 /// The local port number
532 /// The remote port number
536 /// The network protocol(i.e. UDP, TCP).
540 /// 0x00 - The Source IP Address was assigned though DHCP
541 /// 0x01 - The Source IP Address is statically bound
543 BOOLEAN StaticIpAddress
;
547 /// IPv6 Device Path SubType
549 #define MSG_IPv6_DP 0x0d
551 EFI_DEVICE_PATH_PROTOCOL Header
;
553 /// The local IPv6 address
555 EFI_IPv6_ADDRESS LocalIpAddress
;
557 /// The remote IPv6 address
559 EFI_IPv6_ADDRESS RemoteIpAddress
;
561 /// The local port number
565 /// The remote port number
569 /// The network protocol(i.e. UDP, TCP).
573 /// 0x00 - The Source IP Address was assigned though DHCP
574 /// 0x01 - The Source IP Address is statically bound
576 BOOLEAN StaticIpAddress
;
580 /// InfiniBand Device Path SubType
582 #define MSG_INFINIBAND_DP 0x09
584 EFI_DEVICE_PATH_PROTOCOL Header
;
586 /// Flags to help identify/manage InfiniBand device path elements:
587 /// Bit 0 - IOC/Service (0b = IOC, 1b = Service)
588 /// Bit 1 - Extend Boot Environment
589 /// Bit 2 - Console Protocol
590 /// Bit 3 - Storage Protocol
591 /// Bit 4 - Network Protocol
592 /// All other bits are reserved.
594 UINT32 ResourceFlags
;
596 /// 128-bit Global Identifier for remote fabric port
600 /// 64-bit unique identifier to remote IOC or server process.
601 /// Interpretation of field specified by Resource Flags (bit 0)
605 /// 64-bit persistent ID of remote IOC port
609 /// 64-bit persistent ID of remote device
612 } INFINIBAND_DEVICE_PATH
;
614 #define INFINIBAND_RESOURCE_FLAG_IOC_SERVICE 0x01
615 #define INFINIBAND_RESOURCE_FLAG_EXTENDED_BOOT_ENVIRONMENT 0x02
616 #define INFINIBAND_RESOURCE_FLAG_CONSOLE_PROTOCOL 0x04
617 #define INFINIBAND_RESOURCE_FLAG_STORAGE_PROTOCOL 0x08
618 #define INFINIBAND_RESOURCE_FLAG_NETWORK_PROTOCOL 0x10
621 /// UART Device Path SubType
623 #define MSG_UART_DP 0x0e
625 EFI_DEVICE_PATH_PROTOCOL Header
;
631 /// The baud rate setting for the UART style device. A value of 0
632 /// means that the device's default baud rate will be used.
636 /// The number of data bits for the UART style device. A value
637 /// of 0 means that the device's default number of data bits will be used.
641 /// The parity setting for the UART style device.
642 /// Parity 0x00 - Default Parity
643 /// Parity 0x01 - No Parity
644 /// Parity 0x02 - Even Parity
645 /// Parity 0x03 - Odd Parity
646 /// Parity 0x04 - Mark Parity
647 /// Parity 0x05 - Space Parity
651 /// The number of stop bits for the UART style device.
652 /// Stop Bits 0x00 - Default Stop Bits
653 /// Stop Bits 0x01 - 1 Stop Bit
654 /// Stop Bits 0x02 - 1.5 Stop Bits
655 /// Stop Bits 0x03 - 2 Stop Bits
661 // Use VENDOR_DEVICE_PATH struct
663 #define MSG_VENDOR_DP 0x0a
664 typedef VENDOR_DEVICE_PATH VENDOR_DEFINED_DEVICE_PATH
;
666 #define DEVICE_PATH_MESSAGING_PC_ANSI EFI_PC_ANSI_GUID
667 #define DEVICE_PATH_MESSAGING_VT_100 EFI_VT_100_GUID
668 #define DEVICE_PATH_MESSAGING_VT_100_PLUS EFI_VT_100_PLUS_GUID
669 #define DEVICE_PATH_MESSAGING_VT_UTF8 EFI_VT_UTF8_GUID
672 /// A new device path node is defined to declare flow control characteristics.
673 /// UART Flow Control Messaging Device Path
676 EFI_DEVICE_PATH_PROTOCOL Header
;
678 /// DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL GUID
682 /// Bitmap of supported flow control types.
683 /// Bit 0 set indicates hardware flow control.
684 /// Bit 1 set indicates Xon/Xoff flow control.
685 /// All other bits are reserved and are clear.
687 UINT32 FlowControlMap
;
688 } UART_FLOW_CONTROL_DEVICE_PATH
;
690 #define DEVICE_PATH_MESSAGING_SAS EFI_SAS_DEVICE_PATH_GUID
692 /// Serial Attached SCSI (SAS) devices.
695 EFI_DEVICE_PATH_PROTOCOL Header
;
697 /// DEVICE_PATH_MESSAGING_SAS GUID
701 /// Reserved for future use.
705 /// SAS Address for Serial Attached SCSI Target.
709 /// SAS Logical Unit Number.
713 /// More Information about the device and its interconnect
715 UINT16 DeviceTopology
;
717 /// Relative Target Port (RTP)
719 UINT16 RelativeTargetPort
;
723 /// iSCSI Device Path SubType
725 #define MSG_ISCSI_DP 0x13
727 EFI_DEVICE_PATH_PROTOCOL Header
;
729 /// Network Protocol (0 = TCP, 1+ = reserved)
731 UINT16 NetworkProtocol
;
733 /// iSCSI Login Options
737 /// iSCSI Logical Unit Number
741 /// iSCSI Target Portal group tag the initiator intends
742 /// to establish a session with.
744 UINT16 TargetPortalGroupTag
;
746 /// iSCSI NodeTarget Name. The length of the name
747 /// is determined by subtracting the offset of this field from Length.
749 /// CHAR8 iSCSI Target Name
752 #define ISCSI_LOGIN_OPTION_NO_HEADER_DIGEST 0x0000
753 #define ISCSI_LOGIN_OPTION_HEADER_DIGEST_USING_CRC32C 0x0002
754 #define ISCSI_LOGIN_OPTION_NO_DATA_DIGEST 0x0000
755 #define ISCSI_LOGIN_OPTION_DATA_DIGEST_USING_CRC32C 0x0008
756 #define ISCSI_LOGIN_OPTION_AUTHMETHOD_CHAP 0x0000
757 #define ISCSI_LOGIN_OPTION_AUTHMETHOD_NON 0x1000
758 #define ISCSI_LOGIN_OPTION_CHAP_BI 0x0000
759 #define ISCSI_LOGIN_OPTION_CHAP_UNI 0x2000
764 #define MEDIA_DEVICE_PATH 0x04
767 /// Hard Drive Media Device Path SubType
769 #define MEDIA_HARDDRIVE_DP 0x01
772 /// The Hard Drive Media Device Path is used to represent a partition on a hard drive.
775 EFI_DEVICE_PATH_PROTOCOL Header
;
777 /// Describes the entry in a partition table, starting with entry 1.
778 /// Partition number zero represents the entire device. Valid
779 /// partition numbers for a MBR partition are [1, 4]. Valid
780 /// partition numbers for a GPT partition are [1,
781 /// NumberOfPartitionEntries].
783 UINT32 PartitionNumber
;
785 /// Starting LBA of the partition on the hard drive
787 UINT64 PartitionStart
;
789 /// Size of the partition in units of Logical Blocks
791 UINT64 PartitionSize
;
793 /// Signature unique to this partition
797 /// Partition Format: (Unused values reserved)
798 /// 0x01 - PC-AT compatible legacy MBR
799 /// 0x02 - GUID Partition Table
803 /// Type of Disk Signature: (Unused values reserved)
804 /// 0x00 - No Disk Signature.
805 /// 0x01 - 32-bit signature from address 0x1b8 of the type 0x01 MBR.
806 /// 0x02 - GUID signature.
809 } HARDDRIVE_DEVICE_PATH
;
811 #define MBR_TYPE_PCAT 0x01
812 #define MBR_TYPE_EFI_PARTITION_TABLE_HEADER 0x02
814 #define NO_DISK_SIGNATURE 0x00
815 #define SIGNATURE_TYPE_MBR 0x01
816 #define SIGNATURE_TYPE_GUID 0x02
819 /// CD-ROM Media Device Path SubType
821 #define MEDIA_CDROM_DP 0x02
824 /// The CD-ROM Media Device Path is used to define a system partition that exists on a CD-ROM.
827 EFI_DEVICE_PATH_PROTOCOL Header
;
829 /// Boot Entry number from the Boot Catalog. The Initial/Default entry is defined as zero.
833 /// Starting RBA of the partition on the medium. CD-ROMs use Relative logical Block Addressing.
835 UINT64 PartitionStart
;
837 /// Size of the partition in units of Blocks, also called Sectors.
839 UINT64 PartitionSize
;
843 // Use VENDOR_DEVICE_PATH struct
845 #define MEDIA_VENDOR_DP 0x03 ///< Media vendor device path subtype
848 /// File Path Media Device Path SubType
850 #define MEDIA_FILEPATH_DP 0x04
852 EFI_DEVICE_PATH_PROTOCOL Header
;
854 /// A NULL-terminated Unicode Path string including directory and file names.
857 } FILEPATH_DEVICE_PATH
;
859 #define SIZE_OF_FILEPATH_DEVICE_PATH OFFSET_OF(FILEPATH_DEVICE_PATH,PathName)
862 /// Media Protocol Device Path SubType
864 #define MEDIA_PROTOCOL_DP 0x05
867 /// The Media Protocol Device Path is used to denote the protocol that is being
868 /// used in a device path at the location of the path specified.
869 /// Many protocols are inherent to the style of device path.
872 EFI_DEVICE_PATH_PROTOCOL Header
;
874 /// The ID of the protocol.
877 } MEDIA_PROTOCOL_DEVICE_PATH
;
880 /// PIWG Firmware Volume Device Path SubType
882 #define MEDIA_PIWG_FW_FILE_DP 0x06
885 /// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware file.
888 EFI_DEVICE_PATH_PROTOCOL Header
;
890 /// Firmware file name
893 } MEDIA_FW_VOL_FILEPATH_DEVICE_PATH
;
896 /// PIWG Firmware Volume Device Path SubType
898 #define MEDIA_PIWG_FW_VOL_DP 0x07
901 /// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware volume.
904 EFI_DEVICE_PATH_PROTOCOL Header
;
906 /// Firmware volume name.
909 } MEDIA_FW_VOL_DEVICE_PATH
;
912 /// Media relative offset range device path
914 #define MEDIA_RELATIVE_OFFSET_RANGE_DP 0x08
917 /// Used to describe the offset range of media relative.
920 EFI_DEVICE_PATH_PROTOCOL Header
;
922 UINT64 StartingOffset
;
924 } MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH
;
927 /// BIOS Boot Specification Device Path
929 #define BBS_DEVICE_PATH 0x05
932 /// BIOS Boot Specification Device Path SubType
934 #define BBS_BBS_DP 0x01
937 /// This Device Path is used to describe the booting of non-EFI-aware operating systems.
940 EFI_DEVICE_PATH_PROTOCOL Header
;
942 /// Device Type as defined by the BIOS Boot Specification.
946 /// Status Flags as defined by the BIOS Boot Specification
950 /// ASCIIZ string that describes the boot device to a user.
953 } BBS_BBS_DEVICE_PATH
;
956 // DeviceType definitions - from BBS specification
958 #define BBS_TYPE_FLOPPY 0x01
959 #define BBS_TYPE_HARDDRIVE 0x02
960 #define BBS_TYPE_CDROM 0x03
961 #define BBS_TYPE_PCMCIA 0x04
962 #define BBS_TYPE_USB 0x05
963 #define BBS_TYPE_EMBEDDED_NETWORK 0x06
964 #define BBS_TYPE_BEV 0x80
965 #define BBS_TYPE_UNKNOWN 0xFF
969 /// Union of all possible Device Paths and pointers to Device Paths
972 EFI_DEVICE_PATH_PROTOCOL DevPath
;
974 PCCARD_DEVICE_PATH PcCard
;
975 MEMMAP_DEVICE_PATH MemMap
;
976 VENDOR_DEVICE_PATH Vendor
;
978 CONTROLLER_DEVICE_PATH Controller
;
979 ACPI_HID_DEVICE_PATH Acpi
;
981 ATAPI_DEVICE_PATH Atapi
;
982 SCSI_DEVICE_PATH Scsi
;
983 ISCSI_DEVICE_PATH Iscsi
;
984 FIBRECHANNEL_DEVICE_PATH FibreChannel
;
986 F1394_DEVICE_PATH F1394
;
988 SATA_DEVICE_PATH Sata
;
989 USB_CLASS_DEVICE_PATH UsbClass
;
991 MAC_ADDR_DEVICE_PATH MacAddr
;
992 IPv4_DEVICE_PATH Ipv4
;
993 IPv6_DEVICE_PATH Ipv6
;
994 INFINIBAND_DEVICE_PATH InfiniBand
;
995 UART_DEVICE_PATH Uart
;
997 HARDDRIVE_DEVICE_PATH HardDrive
;
998 CDROM_DEVICE_PATH CD
;
1000 FILEPATH_DEVICE_PATH FilePath
;
1001 MEDIA_PROTOCOL_DEVICE_PATH MediaProtocol
;
1002 MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH Offset
;
1004 BBS_BBS_DEVICE_PATH Bbs
;
1010 EFI_DEVICE_PATH_PROTOCOL
*DevPath
;
1011 PCI_DEVICE_PATH
*Pci
;
1012 PCCARD_DEVICE_PATH
*PcCard
;
1013 MEMMAP_DEVICE_PATH
*MemMap
;
1014 VENDOR_DEVICE_PATH
*Vendor
;
1016 CONTROLLER_DEVICE_PATH
*Controller
;
1017 ACPI_HID_DEVICE_PATH
*Acpi
;
1018 ACPI_EXTENDED_HID_DEVICE_PATH
*ExtendedAcpi
;
1020 ATAPI_DEVICE_PATH
*Atapi
;
1021 SCSI_DEVICE_PATH
*Scsi
;
1022 FIBRECHANNEL_DEVICE_PATH
*FibreChannel
;
1024 F1394_DEVICE_PATH
*F1394
;
1025 USB_DEVICE_PATH
*Usb
;
1026 SATA_DEVICE_PATH
*Sata
;
1027 USB_CLASS_DEVICE_PATH
*UsbClass
;
1028 I2O_DEVICE_PATH
*I2O
;
1029 MAC_ADDR_DEVICE_PATH
*MacAddr
;
1030 IPv4_DEVICE_PATH
*Ipv4
;
1031 IPv6_DEVICE_PATH
*Ipv6
;
1032 INFINIBAND_DEVICE_PATH
*InfiniBand
;
1033 UART_DEVICE_PATH
*Uart
;
1035 HARDDRIVE_DEVICE_PATH
*HardDrive
;
1036 CDROM_DEVICE_PATH
*CD
;
1038 FILEPATH_DEVICE_PATH
*FilePath
;
1039 MEDIA_PROTOCOL_DEVICE_PATH
*MediaProtocol
;
1040 MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH
*Offset
;
1042 BBS_BBS_DEVICE_PATH
*Bbs
;
1048 #define END_DEVICE_PATH_TYPE 0x7f
1049 #define END_ENTIRE_DEVICE_PATH_SUBTYPE 0xFF
1050 #define END_INSTANCE_DEVICE_PATH_SUBTYPE 0x01
1052 extern EFI_GUID gEfiDevicePathProtocolGuid
;