2001-06-09 16:49:51 +00:00
|
|
|
/* $FreeBSD$ */
|
|
|
|
#ifndef _DEVPATH_H
|
|
|
|
#define _DEVPATH_H
|
|
|
|
|
|
|
|
/*++
|
|
|
|
|
2006-11-02 02:42:48 +00:00
|
|
|
Copyright (c) 1999 - 2002 Intel Corporation. All rights reserved
|
|
|
|
This software and associated documentation (if any) is furnished
|
|
|
|
under a license and may only be used or copied in accordance
|
|
|
|
with the terms of the license. Except as permitted by such
|
|
|
|
license, no part of this software or documentation may be
|
|
|
|
reproduced, stored in a retrieval system, or transmitted in any
|
|
|
|
form or by any means without the express written consent of
|
|
|
|
Intel Corporation.
|
2001-06-09 16:49:51 +00:00
|
|
|
|
|
|
|
Module Name:
|
|
|
|
|
|
|
|
devpath.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
|
|
|
|
Defines for parsing the EFI Device Path structures
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Revision History
|
|
|
|
|
|
|
|
--*/
|
|
|
|
|
2006-11-02 02:42:48 +00:00
|
|
|
//
|
|
|
|
// Device Path structures - Section C
|
|
|
|
//
|
2001-06-09 16:49:51 +00:00
|
|
|
|
2018-02-18 11:17:39 +00:00
|
|
|
#pragma pack(1)
|
|
|
|
|
2001-06-09 16:49:51 +00:00
|
|
|
typedef struct _EFI_DEVICE_PATH {
|
|
|
|
UINT8 Type;
|
|
|
|
UINT8 SubType;
|
|
|
|
UINT8 Length[2];
|
|
|
|
} EFI_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define EFI_DP_TYPE_MASK 0x7F
|
|
|
|
#define EFI_DP_TYPE_UNPACKED 0x80
|
|
|
|
|
|
|
|
#define END_DEVICE_PATH_TYPE 0x7f
|
|
|
|
|
|
|
|
#define END_ENTIRE_DEVICE_PATH_SUBTYPE 0xff
|
|
|
|
#define END_INSTANCE_DEVICE_PATH_SUBTYPE 0x01
|
|
|
|
#define END_DEVICE_PATH_LENGTH (sizeof(EFI_DEVICE_PATH))
|
|
|
|
|
|
|
|
|
|
|
|
#define DP_IS_END_TYPE(a)
|
|
|
|
#define DP_IS_END_SUBTYPE(a) ( ((a)->SubType == END_ENTIRE_DEVICE_PATH_SUBTYPE )
|
|
|
|
|
|
|
|
#define DevicePathType(a) ( ((a)->Type) & EFI_DP_TYPE_MASK )
|
|
|
|
#define DevicePathSubType(a) ( (a)->SubType )
|
2017-08-26 18:29:24 +00:00
|
|
|
#define DevicePathNodeLength(a) ((size_t)(((a)->Length[0]) | ((a)->Length[1] << 8)))
|
2001-06-09 16:49:51 +00:00
|
|
|
#define NextDevicePathNode(a) ( (EFI_DEVICE_PATH *) ( ((UINT8 *) (a)) + DevicePathNodeLength(a)))
|
2016-02-05 15:35:33 +00:00
|
|
|
#define IsDevicePathType(a, t) ( DevicePathType(a) == t )
|
|
|
|
#define IsDevicePathEndType(a) IsDevicePathType(a, END_DEVICE_PATH_TYPE)
|
2001-06-09 16:49:51 +00:00
|
|
|
#define IsDevicePathEndSubType(a) ( (a)->SubType == END_ENTIRE_DEVICE_PATH_SUBTYPE )
|
|
|
|
#define IsDevicePathEnd(a) ( IsDevicePathEndType(a) && IsDevicePathEndSubType(a) )
|
|
|
|
#define IsDevicePathUnpacked(a) ( (a)->Type & EFI_DP_TYPE_UNPACKED )
|
|
|
|
|
|
|
|
|
|
|
|
#define SetDevicePathNodeLength(a,l) { \
|
|
|
|
(a)->Length[0] = (UINT8) (l); \
|
|
|
|
(a)->Length[1] = (UINT8) ((l) >> 8); \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define SetDevicePathEndNode(a) { \
|
|
|
|
(a)->Type = END_DEVICE_PATH_TYPE; \
|
|
|
|
(a)->SubType = END_ENTIRE_DEVICE_PATH_SUBTYPE; \
|
|
|
|
(a)->Length[0] = sizeof(EFI_DEVICE_PATH); \
|
|
|
|
(a)->Length[1] = 0; \
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define HARDWARE_DEVICE_PATH 0x01
|
|
|
|
|
|
|
|
#define HW_PCI_DP 0x01
|
|
|
|
typedef struct _PCI_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT8 Function;
|
|
|
|
UINT8 Device;
|
|
|
|
} PCI_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define HW_PCCARD_DP 0x02
|
|
|
|
typedef struct _PCCARD_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
2006-11-02 02:42:48 +00:00
|
|
|
UINT8 FunctionNumber;
|
2001-06-09 16:49:51 +00:00
|
|
|
} PCCARD_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define HW_MEMMAP_DP 0x03
|
|
|
|
typedef struct _MEMMAP_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT32 MemoryType;
|
|
|
|
EFI_PHYSICAL_ADDRESS StartingAddress;
|
|
|
|
EFI_PHYSICAL_ADDRESS EndingAddress;
|
|
|
|
} MEMMAP_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define HW_VENDOR_DP 0x04
|
|
|
|
typedef struct _VENDOR_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
EFI_GUID Guid;
|
|
|
|
} VENDOR_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define UNKNOWN_DEVICE_GUID \
|
2016-01-12 02:17:39 +00:00
|
|
|
{ 0xcf31fac5, 0xc24e, 0x11d2, {0x85, 0xf3, 0x0, 0xa0, 0xc9, 0x3e, 0xc9, 0x3b} }
|
2001-06-09 16:49:51 +00:00
|
|
|
|
|
|
|
typedef struct _UKNOWN_DEVICE_VENDOR_DP {
|
|
|
|
VENDOR_DEVICE_PATH DevicePath;
|
|
|
|
UINT8 LegacyDriveLetter;
|
|
|
|
} UNKNOWN_DEVICE_VENDOR_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define HW_CONTROLLER_DP 0x05
|
|
|
|
typedef struct _CONTROLLER_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT32 Controller;
|
|
|
|
} CONTROLLER_DEVICE_PATH;
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define ACPI_DEVICE_PATH 0x02
|
|
|
|
|
|
|
|
#define ACPI_DP 0x01
|
|
|
|
typedef struct _ACPI_HID_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT32 HID;
|
|
|
|
UINT32 UID;
|
|
|
|
} ACPI_HID_DEVICE_PATH;
|
|
|
|
|
2006-11-02 02:42:48 +00:00
|
|
|
#define ACPI_EXTENDED_DP 0x02
|
|
|
|
typedef struct _ACPI_EXTENDED_HID_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT32 HID;
|
|
|
|
UINT32 UID;
|
|
|
|
UINT32 CID;
|
|
|
|
} ACPI_EXTENDED_HID_DEVICE_PATH;
|
|
|
|
|
2018-07-13 21:03:32 +00:00
|
|
|
#define ACPI_ADR_DP 0x03
|
|
|
|
/* ACPI_ADR_DEVICE_PATH not defined */
|
|
|
|
|
2006-11-02 02:42:48 +00:00
|
|
|
//
|
|
|
|
// EISA ID Macro
|
|
|
|
// EISA ID Definition 32-bits
|
|
|
|
// bits[15:0] - three character compressed ASCII EISA ID.
|
|
|
|
// bits[31:16] - binary number
|
|
|
|
// Compressed ASCII is 5 bits per character 0b00001 = 'A' 0b11010 = 'Z'
|
|
|
|
//
|
2015-12-22 20:40:34 +00:00
|
|
|
#define PNP_EISA_ID_CONST 0x41d0
|
|
|
|
#define EISA_ID(_Name, _Num) ((UINT32) ((_Name) | (_Num) << 16))
|
2001-06-09 16:49:51 +00:00
|
|
|
#define EISA_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))
|
2006-11-02 02:42:48 +00:00
|
|
|
#define EFI_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))
|
2001-06-09 16:49:51 +00:00
|
|
|
|
|
|
|
#define PNP_EISA_ID_MASK 0xffff
|
|
|
|
#define EISA_ID_TO_NUM(_Id) ((_Id) >> 16)
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
2015-12-22 20:40:34 +00:00
|
|
|
#define MESSAGING_DEVICE_PATH 0x03
|
2001-06-09 16:49:51 +00:00
|
|
|
|
|
|
|
#define MSG_ATAPI_DP 0x01
|
|
|
|
typedef struct _ATAPI_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT8 PrimarySecondary;
|
|
|
|
UINT8 SlaveMaster;
|
|
|
|
UINT16 Lun;
|
|
|
|
} ATAPI_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MSG_SCSI_DP 0x02
|
|
|
|
typedef struct _SCSI_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT16 Pun;
|
2015-12-22 20:40:34 +00:00
|
|
|
UINT16 Lun;
|
2001-06-09 16:49:51 +00:00
|
|
|
} SCSI_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MSG_FIBRECHANNEL_DP 0x03
|
|
|
|
typedef struct _FIBRECHANNEL_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT32 Reserved;
|
|
|
|
UINT64 WWN;
|
|
|
|
UINT64 Lun;
|
|
|
|
} FIBRECHANNEL_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MSG_1394_DP 0x04
|
|
|
|
typedef struct _F1394_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT32 Reserved;
|
|
|
|
UINT64 Guid;
|
|
|
|
} F1394_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MSG_USB_DP 0x05
|
|
|
|
typedef struct _USB_DEVICE_PATH {
|
2006-11-02 02:42:48 +00:00
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT8 ParentPortNumber;
|
|
|
|
UINT8 InterfaceNumber;
|
2001-06-09 16:49:51 +00:00
|
|
|
} USB_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MSG_USB_CLASS_DP 0x0F
|
|
|
|
typedef struct _USB_CLASS_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT16 VendorId;
|
|
|
|
UINT16 ProductId;
|
|
|
|
UINT8 DeviceClass;
|
2006-11-02 02:42:48 +00:00
|
|
|
UINT8 DeviceSubClass;
|
2001-06-09 16:49:51 +00:00
|
|
|
UINT8 DeviceProtocol;
|
|
|
|
} USB_CLASS_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MSG_I2O_DP 0x06
|
|
|
|
typedef struct _I2O_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT32 Tid;
|
|
|
|
} I2O_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MSG_MAC_ADDR_DP 0x0b
|
|
|
|
typedef struct _MAC_ADDR_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
EFI_MAC_ADDRESS MacAddress;
|
|
|
|
UINT8 IfType;
|
|
|
|
} MAC_ADDR_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MSG_IPv4_DP 0x0c
|
|
|
|
typedef struct _IPv4_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
EFI_IPv4_ADDRESS LocalIpAddress;
|
|
|
|
EFI_IPv4_ADDRESS RemoteIpAddress;
|
|
|
|
UINT16 LocalPort;
|
|
|
|
UINT16 RemotePort;
|
|
|
|
UINT16 Protocol;
|
|
|
|
BOOLEAN StaticIpAddress;
|
|
|
|
} IPv4_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MSG_IPv6_DP 0x0d
|
|
|
|
typedef struct _IPv6_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
EFI_IPv6_ADDRESS LocalIpAddress;
|
|
|
|
EFI_IPv6_ADDRESS RemoteIpAddress;
|
|
|
|
UINT16 LocalPort;
|
|
|
|
UINT16 RemotePort;
|
|
|
|
UINT16 Protocol;
|
|
|
|
BOOLEAN StaticIpAddress;
|
|
|
|
} IPv6_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MSG_INFINIBAND_DP 0x09
|
|
|
|
typedef struct _INFINIBAND_DEVICE_PATH {
|
2006-11-02 02:42:48 +00:00
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT32 ResourceFlags;
|
|
|
|
UINT8 PortGid[16];
|
|
|
|
UINT64 ServiceId;
|
|
|
|
UINT64 TargetPortId;
|
|
|
|
UINT64 DeviceId;
|
2001-06-09 16:49:51 +00:00
|
|
|
} INFINIBAND_DEVICE_PATH;
|
|
|
|
|
2006-11-02 02:42:48 +00:00
|
|
|
#define INFINIBAND_RESOURCE_FLAG_IOC_SERVICE 0x01
|
|
|
|
#define INFINIBAND_RESOURCE_FLAG_EXTENDED_BOOT_ENVIRONMENT 0x02
|
|
|
|
#define INFINIBAND_RESOURCE_FLAG_CONSOLE_PROTOCOL 0x04
|
|
|
|
#define INFINIBAND_RESOURCE_FLAG_STORAGE_PROTOCOL 0x08
|
|
|
|
#define INFINIBAND_RESOURCE_FLAG_NETWORK_PROTOCOL 0x10
|
|
|
|
|
2001-06-09 16:49:51 +00:00
|
|
|
#define MSG_UART_DP 0x0e
|
|
|
|
typedef struct _UART_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT32 Reserved;
|
|
|
|
UINT64 BaudRate;
|
|
|
|
UINT8 DataBits;
|
|
|
|
UINT8 Parity;
|
|
|
|
UINT8 StopBits;
|
|
|
|
} UART_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MSG_VENDOR_DP 0x0A
|
|
|
|
/* Use VENDOR_DEVICE_PATH struct */
|
|
|
|
|
|
|
|
#define DEVICE_PATH_MESSAGING_PC_ANSI \
|
2016-01-12 02:17:39 +00:00
|
|
|
{ 0xe0c14753, 0xf9be, 0x11d2, {0x9a, 0x0c, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d} }
|
2001-06-09 16:49:51 +00:00
|
|
|
|
|
|
|
#define DEVICE_PATH_MESSAGING_VT_100 \
|
2016-01-12 02:17:39 +00:00
|
|
|
{ 0xdfa66065, 0xb419, 0x11d3, {0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d} }
|
2001-06-09 16:49:51 +00:00
|
|
|
|
2006-11-02 02:42:48 +00:00
|
|
|
#define DEVICE_PATH_MESSAGING_VT_100_PLUS \
|
2016-01-12 02:17:39 +00:00
|
|
|
{ 0x7baec70b, 0x57e0, 0x4c76, {0x8e, 0x87, 0x2f, 0x9e, 0x28, 0x08, 0x83, 0x43} }
|
2015-12-22 20:40:34 +00:00
|
|
|
|
2006-11-02 02:42:48 +00:00
|
|
|
#define DEVICE_PATH_MESSAGING_VT_UTF8 \
|
2016-01-12 02:17:39 +00:00
|
|
|
{ 0xad15a0d6, 0x8bec, 0x4acf, {0xa0, 0x73, 0xd0, 0x1d, 0xe7, 0x7e, 0x2d, 0x88} }
|
2001-06-09 16:49:51 +00:00
|
|
|
|
2016-02-05 15:35:33 +00:00
|
|
|
#define MSG_SATA_DP 0x12
|
|
|
|
typedef struct _SATA_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT16 HBAPortNumber;
|
|
|
|
UINT16 PortMultiplierPortNumber;
|
|
|
|
UINT16 Lun;
|
|
|
|
} SATA_DEVICE_PATH;
|
2001-06-09 16:49:51 +00:00
|
|
|
|
|
|
|
#define MEDIA_DEVICE_PATH 0x04
|
|
|
|
|
|
|
|
#define MEDIA_HARDDRIVE_DP 0x01
|
|
|
|
typedef struct _HARDDRIVE_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT32 PartitionNumber;
|
|
|
|
UINT64 PartitionStart;
|
|
|
|
UINT64 PartitionSize;
|
|
|
|
UINT8 Signature[16];
|
|
|
|
UINT8 MBRType;
|
|
|
|
UINT8 SignatureType;
|
|
|
|
} HARDDRIVE_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MBR_TYPE_PCAT 0x01
|
|
|
|
#define MBR_TYPE_EFI_PARTITION_TABLE_HEADER 0x02
|
|
|
|
|
|
|
|
#define SIGNATURE_TYPE_MBR 0x01
|
|
|
|
#define SIGNATURE_TYPE_GUID 0x02
|
|
|
|
|
|
|
|
#define MEDIA_CDROM_DP 0x02
|
|
|
|
typedef struct _CDROM_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT32 BootEntry;
|
|
|
|
UINT64 PartitionStart;
|
|
|
|
UINT64 PartitionSize;
|
|
|
|
} CDROM_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MEDIA_VENDOR_DP 0x03
|
|
|
|
/* Use VENDOR_DEVICE_PATH struct */
|
|
|
|
|
|
|
|
#define MEDIA_FILEPATH_DP 0x04
|
|
|
|
typedef struct _FILEPATH_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
CHAR16 PathName[1];
|
|
|
|
} FILEPATH_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define SIZE_OF_FILEPATH_DEVICE_PATH EFI_FIELD_OFFSET(FILEPATH_DEVICE_PATH,PathName)
|
|
|
|
|
|
|
|
#define MEDIA_PROTOCOL_DP 0x05
|
|
|
|
typedef struct _MEDIA_PROTOCOL_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
EFI_GUID Protocol;
|
|
|
|
} MEDIA_PROTOCOL_DEVICE_PATH;
|
|
|
|
|
|
|
|
|
|
|
|
#define BBS_DEVICE_PATH 0x05
|
|
|
|
#define BBS_BBS_DP 0x01
|
|
|
|
typedef struct _BBS_BBS_DEVICE_PATH {
|
|
|
|
EFI_DEVICE_PATH Header;
|
|
|
|
UINT16 DeviceType;
|
|
|
|
UINT16 StatusFlag;
|
|
|
|
CHAR8 String[1];
|
|
|
|
} BBS_BBS_DEVICE_PATH;
|
|
|
|
|
|
|
|
/* DeviceType definitions - from BBS specification */
|
|
|
|
#define BBS_TYPE_FLOPPY 0x01
|
|
|
|
#define BBS_TYPE_HARDDRIVE 0x02
|
|
|
|
#define BBS_TYPE_CDROM 0x03
|
|
|
|
#define BBS_TYPE_PCMCIA 0x04
|
|
|
|
#define BBS_TYPE_USB 0x05
|
|
|
|
#define BBS_TYPE_EMBEDDED_NETWORK 0x06
|
|
|
|
#define BBS_TYPE_DEV 0x80
|
|
|
|
#define BBS_TYPE_UNKNOWN 0xFF
|
|
|
|
|
|
|
|
typedef union {
|
|
|
|
EFI_DEVICE_PATH DevPath;
|
|
|
|
PCI_DEVICE_PATH Pci;
|
|
|
|
PCCARD_DEVICE_PATH PcCard;
|
|
|
|
MEMMAP_DEVICE_PATH MemMap;
|
|
|
|
VENDOR_DEVICE_PATH Vendor;
|
2015-12-22 20:40:34 +00:00
|
|
|
UNKNOWN_DEVICE_VENDOR_DEVICE_PATH UnknownVendor;
|
2001-06-09 16:49:51 +00:00
|
|
|
CONTROLLER_DEVICE_PATH Controller;
|
|
|
|
ACPI_HID_DEVICE_PATH Acpi;
|
|
|
|
|
|
|
|
ATAPI_DEVICE_PATH Atapi;
|
|
|
|
SCSI_DEVICE_PATH Scsi;
|
|
|
|
FIBRECHANNEL_DEVICE_PATH FibreChannel;
|
|
|
|
|
|
|
|
F1394_DEVICE_PATH F1394;
|
|
|
|
USB_DEVICE_PATH Usb;
|
|
|
|
USB_CLASS_DEVICE_PATH UsbClass;
|
|
|
|
I2O_DEVICE_PATH I2O;
|
|
|
|
MAC_ADDR_DEVICE_PATH MacAddr;
|
|
|
|
IPv4_DEVICE_PATH Ipv4;
|
|
|
|
IPv6_DEVICE_PATH Ipv6;
|
|
|
|
INFINIBAND_DEVICE_PATH InfiniBand;
|
|
|
|
UART_DEVICE_PATH Uart;
|
|
|
|
|
|
|
|
HARDDRIVE_DEVICE_PATH HardDrive;
|
|
|
|
CDROM_DEVICE_PATH CD;
|
|
|
|
|
|
|
|
FILEPATH_DEVICE_PATH FilePath;
|
|
|
|
MEDIA_PROTOCOL_DEVICE_PATH MediaProtocol;
|
|
|
|
|
|
|
|
BBS_BBS_DEVICE_PATH Bbs;
|
|
|
|
|
|
|
|
} EFI_DEV_PATH;
|
|
|
|
|
|
|
|
typedef union {
|
|
|
|
EFI_DEVICE_PATH *DevPath;
|
|
|
|
PCI_DEVICE_PATH *Pci;
|
|
|
|
PCCARD_DEVICE_PATH *PcCard;
|
|
|
|
MEMMAP_DEVICE_PATH *MemMap;
|
|
|
|
VENDOR_DEVICE_PATH *Vendor;
|
2015-12-22 20:40:34 +00:00
|
|
|
UNKNOWN_DEVICE_VENDOR_DEVICE_PATH *UnknownVendor;
|
2001-06-09 16:49:51 +00:00
|
|
|
CONTROLLER_DEVICE_PATH *Controller;
|
|
|
|
ACPI_HID_DEVICE_PATH *Acpi;
|
2006-11-02 02:42:48 +00:00
|
|
|
ACPI_EXTENDED_HID_DEVICE_PATH *ExtendedAcpi;
|
2001-06-09 16:49:51 +00:00
|
|
|
|
|
|
|
ATAPI_DEVICE_PATH *Atapi;
|
|
|
|
SCSI_DEVICE_PATH *Scsi;
|
|
|
|
FIBRECHANNEL_DEVICE_PATH *FibreChannel;
|
|
|
|
|
|
|
|
F1394_DEVICE_PATH *F1394;
|
|
|
|
USB_DEVICE_PATH *Usb;
|
|
|
|
USB_CLASS_DEVICE_PATH *UsbClass;
|
|
|
|
I2O_DEVICE_PATH *I2O;
|
|
|
|
MAC_ADDR_DEVICE_PATH *MacAddr;
|
|
|
|
IPv4_DEVICE_PATH *Ipv4;
|
|
|
|
IPv6_DEVICE_PATH *Ipv6;
|
|
|
|
INFINIBAND_DEVICE_PATH *InfiniBand;
|
|
|
|
UART_DEVICE_PATH *Uart;
|
|
|
|
|
|
|
|
HARDDRIVE_DEVICE_PATH *HardDrive;
|
|
|
|
|
|
|
|
FILEPATH_DEVICE_PATH *FilePath;
|
|
|
|
MEDIA_PROTOCOL_DEVICE_PATH *MediaProtocol;
|
|
|
|
|
|
|
|
CDROM_DEVICE_PATH *CD;
|
|
|
|
BBS_BBS_DEVICE_PATH *Bbs;
|
|
|
|
|
|
|
|
} EFI_DEV_PATH_PTR;
|
|
|
|
|
2017-01-16 20:57:01 +00:00
|
|
|
#define EFI_LOADED_IMAGE_DEVICE_PATH_PROTOCOL_GUID \
|
|
|
|
{ 0xbc62157e, 0x3e33, 0x4fec, { 0x99, 0x20, 0x2d, 0x3b, 0x36, 0xd7, 0x50, 0xdf } }
|
|
|
|
|
|
|
|
#define EFI_DEVICE_PATH_TO_TEXT_PROTOCOL_GUID \
|
|
|
|
{ 0x8b843e20, 0x8132, 0x4852, { 0x90, 0xcc, 0x55, 0x1a, 0x4e, 0x4a, 0x7f, 0x1c } }
|
|
|
|
|
|
|
|
INTERFACE_DECL(_EFI_DEVICE_PATH_PROTOCOL);
|
|
|
|
|
|
|
|
typedef
|
|
|
|
CHAR16*
|
|
|
|
(EFIAPI *EFI_DEVICE_PATH_TO_TEXT_NODE) (
|
|
|
|
IN struct _EFI_DEVICE_PATH *This,
|
|
|
|
IN BOOLEAN DisplayOnly,
|
|
|
|
IN BOOLEAN AllowShortCuts
|
|
|
|
);
|
|
|
|
|
|
|
|
typedef
|
|
|
|
CHAR16*
|
|
|
|
(EFIAPI *EFI_DEVICE_PATH_TO_TEXT_PATH) (
|
|
|
|
IN struct _EFI_DEVICE_PATH *This,
|
|
|
|
IN BOOLEAN DisplayOnly,
|
|
|
|
IN BOOLEAN AllowShortCuts
|
|
|
|
);
|
|
|
|
|
|
|
|
typedef struct _EFI_DEVICE_PATH_TO_TEXT_PROTOCOL {
|
|
|
|
EFI_DEVICE_PATH_TO_TEXT_NODE ConvertDeviceNodeToText;
|
|
|
|
EFI_DEVICE_PATH_TO_TEXT_PATH ConvertDevicePathToText;
|
|
|
|
} EFI_DEVICE_PATH_TO_TEXT_PROTOCOL;
|
2001-06-09 16:49:51 +00:00
|
|
|
|
2018-02-18 11:17:39 +00:00
|
|
|
#pragma pack()
|
|
|
|
|
2001-06-09 16:49:51 +00:00
|
|
|
#endif
|