TianoCore EDK2
master
Loading...
Searching...
No Matches
PartitionInfo.h
Go to the documentation of this file.
1
12
#ifndef __PARTITION_INFO_PROTOCOL_H__
13
#define __PARTITION_INFO_PROTOCOL_H__
14
15
#include <
IndustryStandard/Mbr.h
>
16
#include <
Uefi/UefiGpt.h
>
17
18
//
19
// EFI Partition Information Protocol GUID value
20
//
21
#define EFI_PARTITION_INFO_PROTOCOL_GUID \
22
{ 0x8cf2f62c, 0xbc9b, 0x4821, { 0x80, 0x8d, 0xec, 0x9e, 0xc4, 0x21, 0xa1, 0xa0 }};
23
24
#define EFI_PARTITION_INFO_PROTOCOL_REVISION 0x0001000
25
#define PARTITION_TYPE_OTHER 0x00
26
#define PARTITION_TYPE_MBR 0x01
27
#define PARTITION_TYPE_GPT 0x02
28
29
#pragma pack(1)
30
34
typedef
struct
{
35
//
36
// Set to EFI_PARTITION_INFO_PROTOCOL_REVISION.
37
//
38
UINT32 Revision;
39
//
40
// Partition info type (PARTITION_TYPE_MBR, PARTITION_TYPE_GPT, or PARTITION_TYPE_OTHER).
41
//
42
UINT32 Type;
43
//
44
// If 1, partition describes an EFI System Partition.
45
//
46
UINT8 System;
47
UINT8 Reserved[7];
48
union
{
52
MBR_PARTITION_RECORD
Mbr
;
56
EFI_PARTITION_ENTRY
Gpt
;
57
} Info;
58
}
EFI_PARTITION_INFO_PROTOCOL
;
59
60
#pragma pack()
61
65
extern
EFI_GUID
gEfiPartitionInfoProtocolGuid
;
66
67
#endif
Mbr.h
gEfiPartitionInfoProtocolGuid
EFI_GUID gEfiPartitionInfoProtocolGuid
UefiGpt.h
EFI_PARTITION_ENTRY
Definition:
UefiGpt.h:86
EFI_PARTITION_INFO_PROTOCOL
Definition:
PartitionInfo.h:34
EFI_PARTITION_INFO_PROTOCOL::Mbr
MBR_PARTITION_RECORD Mbr
Definition:
PartitionInfo.h:52
EFI_PARTITION_INFO_PROTOCOL::Gpt
EFI_PARTITION_ENTRY Gpt
Definition:
PartitionInfo.h:56
GUID
Definition:
Base.h:213
MBR_PARTITION_RECORD
Definition:
Mbr.h:28
MdePkg
Include
Protocol
PartitionInfo.h
Generated on Fri Nov 15 2024 18:01:16 for TianoCore EDK2 by
1.9.6