Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/efi/include/efidevp.h
Show All 34 Lines | typedef struct _EFI_DEVICE_PATH { | ||||
UINT8 Type; | UINT8 Type; | ||||
UINT8 SubType; | UINT8 SubType; | ||||
UINT8 Length[2]; | UINT8 Length[2]; | ||||
} EFI_DEVICE_PATH; | } EFI_DEVICE_PATH; | ||||
#define EFI_DP_TYPE_MASK 0x7F | #define EFI_DP_TYPE_MASK 0x7F | ||||
#define EFI_DP_TYPE_UNPACKED 0x80 | #define EFI_DP_TYPE_UNPACKED 0x80 | ||||
//#define END_DEVICE_PATH_TYPE 0xff | |||||
#define END_DEVICE_PATH_TYPE 0x7f | #define END_DEVICE_PATH_TYPE 0x7f | ||||
//#define END_DEVICE_PATH_TYPE_UNPACKED 0x7f | |||||
#define END_ENTIRE_DEVICE_PATH_SUBTYPE 0xff | #define END_ENTIRE_DEVICE_PATH_SUBTYPE 0xff | ||||
#define END_INSTANCE_DEVICE_PATH_SUBTYPE 0x01 | #define END_INSTANCE_DEVICE_PATH_SUBTYPE 0x01 | ||||
#define END_DEVICE_PATH_LENGTH (sizeof(EFI_DEVICE_PATH)) | #define END_DEVICE_PATH_LENGTH (sizeof(EFI_DEVICE_PATH)) | ||||
#define DP_IS_END_TYPE(a) | #define DP_IS_END_TYPE(a) | ||||
#define DP_IS_END_SUBTYPE(a) ( ((a)->SubType == END_ENTIRE_DEVICE_PATH_SUBTYPE ) | #define DP_IS_END_SUBTYPE(a) ( ((a)->SubType == END_ENTIRE_DEVICE_PATH_SUBTYPE ) | ||||
#define DevicePathType(a) ( ((a)->Type) & EFI_DP_TYPE_MASK ) | #define DevicePathType(a) ( ((a)->Type) & EFI_DP_TYPE_MASK ) | ||||
#define DevicePathSubType(a) ( (a)->SubType ) | #define DevicePathSubType(a) ( (a)->SubType ) | ||||
#define DevicePathNodeLength(a) ( ((a)->Length[0]) | ((a)->Length[1] << 8) ) | #define DevicePathNodeLength(a) ( ((a)->Length[0]) | ((a)->Length[1] << 8) ) | ||||
#define NextDevicePathNode(a) ( (EFI_DEVICE_PATH *) ( ((UINT8 *) (a)) + DevicePathNodeLength(a))) | #define NextDevicePathNode(a) ( (EFI_DEVICE_PATH *) ( ((UINT8 *) (a)) + DevicePathNodeLength(a))) | ||||
//#define IsDevicePathEndType(a) ( DevicePathType(a) == END_DEVICE_PATH_TYPE_UNPACKED ) | #define IsDevicePathType(a, t) ( DevicePathType(a) == t ) | ||||
#define IsDevicePathEndType(a) ( DevicePathType(a) == END_DEVICE_PATH_TYPE ) | #define IsDevicePathEndType(a) IsDevicePathType(a, END_DEVICE_PATH_TYPE) | ||||
#define IsDevicePathEndSubType(a) ( (a)->SubType == END_ENTIRE_DEVICE_PATH_SUBTYPE ) | #define IsDevicePathEndSubType(a) ( (a)->SubType == END_ENTIRE_DEVICE_PATH_SUBTYPE ) | ||||
#define IsDevicePathEnd(a) ( IsDevicePathEndType(a) && IsDevicePathEndSubType(a) ) | #define IsDevicePathEnd(a) ( IsDevicePathEndType(a) && IsDevicePathEndSubType(a) ) | ||||
#define IsDevicePathUnpacked(a) ( (a)->Type & EFI_DP_TYPE_UNPACKED ) | #define IsDevicePathUnpacked(a) ( (a)->Type & EFI_DP_TYPE_UNPACKED ) | ||||
#define SetDevicePathNodeLength(a,l) { \ | #define SetDevicePathNodeLength(a,l) { \ | ||||
(a)->Length[0] = (UINT8) (l); \ | (a)->Length[0] = (UINT8) (l); \ | ||||
(a)->Length[1] = (UINT8) ((l) >> 8); \ | (a)->Length[1] = (UINT8) ((l) >> 8); \ | ||||
▲ Show 20 Lines • Show All 211 Lines • ▼ Show 20 Lines | #define DEVICE_PATH_MESSAGING_VT_100 \ | ||||
{ 0xdfa66065, 0xb419, 0x11d3, {0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d} } | { 0xdfa66065, 0xb419, 0x11d3, {0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d} } | ||||
#define DEVICE_PATH_MESSAGING_VT_100_PLUS \ | #define DEVICE_PATH_MESSAGING_VT_100_PLUS \ | ||||
{ 0x7baec70b, 0x57e0, 0x4c76, {0x8e, 0x87, 0x2f, 0x9e, 0x28, 0x08, 0x83, 0x43} } | { 0x7baec70b, 0x57e0, 0x4c76, {0x8e, 0x87, 0x2f, 0x9e, 0x28, 0x08, 0x83, 0x43} } | ||||
#define DEVICE_PATH_MESSAGING_VT_UTF8 \ | #define DEVICE_PATH_MESSAGING_VT_UTF8 \ | ||||
{ 0xad15a0d6, 0x8bec, 0x4acf, {0xa0, 0x73, 0xd0, 0x1d, 0xe7, 0x7e, 0x2d, 0x88} } | { 0xad15a0d6, 0x8bec, 0x4acf, {0xa0, 0x73, 0xd0, 0x1d, 0xe7, 0x7e, 0x2d, 0x88} } | ||||
#define MSG_SATA_DP 0x12 | |||||
typedef struct _SATA_DEVICE_PATH { | |||||
EFI_DEVICE_PATH Header; | |||||
UINT16 HBAPortNumber; | |||||
UINT16 PortMultiplierPortNumber; | |||||
UINT16 Lun; | |||||
} SATA_DEVICE_PATH; | |||||
#define MEDIA_DEVICE_PATH 0x04 | #define MEDIA_DEVICE_PATH 0x04 | ||||
#define MEDIA_HARDDRIVE_DP 0x01 | #define MEDIA_HARDDRIVE_DP 0x01 | ||||
typedef struct _HARDDRIVE_DEVICE_PATH { | typedef struct _HARDDRIVE_DEVICE_PATH { | ||||
EFI_DEVICE_PATH Header; | EFI_DEVICE_PATH Header; | ||||
UINT32 PartitionNumber; | UINT32 PartitionNumber; | ||||
UINT64 PartitionStart; | UINT64 PartitionStart; | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |