2 This file defines the EFI Partition Information Protocol.
4 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
7 @par Revision Reference:
8 This Protocol is introduced in UEFI Specification 2.7
12 #ifndef __PARTITION_INFO_PROTOCOL_H__
13 #define __PARTITION_INFO_PROTOCOL_H__
15 #include <IndustryStandard/Mbr.h>
16 #include <Uefi/UefiGpt.h>
19 // EFI Partition Information Protocol GUID value
21 #define EFI_PARTITION_INFO_PROTOCOL_GUID \
22 { 0x8cf2f62c, 0xbc9b, 0x4821, { 0x80, 0x8d, 0xec, 0x9e, 0xc4, 0x21, 0xa1, 0xa0 }};
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
32 /// Partition Information Protocol structure.
36 // Set to EFI_PARTITION_INFO_PROTOCOL_REVISION.
40 // Partition info type (PARTITION_TYPE_MBR, PARTITION_TYPE_GPT, or PARTITION_TYPE_OTHER).
44 // If 1, partition describes an EFI System Partition.
52 MBR_PARTITION_RECORD Mbr
;
56 EFI_PARTITION_ENTRY Gpt
;
58 } EFI_PARTITION_INFO_PROTOCOL
;
63 /// Partition Information Protocol GUID variable.
65 extern EFI_GUID gEfiPartitionInfoProtocolGuid
;