XenevaOS
Loading...
Searching...
No Matches
PartitionInfo.h
Go to the documentation of this file.
1
18#ifndef __PARTITION_INFO_PROTOCOL_H__
19#define __PARTITION_INFO_PROTOCOL_H__
20
22#include <Uefi/UefiGpt.h>
23
24//
25// EFI Partition Information Protocol GUID value
26//
27#define EFI_PARTITION_INFO_PROTOCOL_GUID \
28 { 0x8cf2f62c, 0xbc9b, 0x4821, { 0x80, 0x8d, 0xec, 0x9e, 0xc4, 0x21, 0xa1, 0xa0 }};
29
30
31#define EFI_PARTITION_INFO_PROTOCOL_REVISION 0x0001000
32#define PARTITION_TYPE_OTHER 0x00
33#define PARTITION_TYPE_MBR 0x01
34#define PARTITION_TYPE_GPT 0x02
35
36#pragma pack(1)
37
41typedef struct {
42 //
43 // Set to EFI_PARTITION_INFO_PROTOCOL_REVISION.
44 //
46 //
47 // Partition info type (PARTITION_TYPE_MBR, PARTITION_TYPE_GPT, or PARTITION_TYPE_OTHER).
48 //
50 //
51 // If 1, partition describes an EFI System Partition.
52 //
55 union {
64 } Info;
66
67#pragma pack()
68
73
74#endif
unsigned int UINT32
Definition ProcessorBind.h:102
UINT8 Reserved
Definition Acpi30.h:40
EFI_GUID gEfiPartitionInfoProtocolGuid
unsigned char UINT8
Definition actypes.h:236
Definition UefiGpt.h:88
Definition PartitionInfo.h:41
UINT32 Type
Definition PartitionInfo.h:49
MBR_PARTITION_RECORD Mbr
Definition PartitionInfo.h:59
UINT8 System
Definition PartitionInfo.h:53
UINT32 Revision
Definition PartitionInfo.h:45
EFI_PARTITION_ENTRY Gpt
Definition PartitionInfo.h:63
Definition Base.h:281
Definition Mbr.h:34