]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/PartitionInfo.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / PartitionInfo.h
CommitLineData
bce72b58
HW
1/** @file\r
2 This file defines the EFI Partition Information Protocol.\r
3\r
4 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
9344f092 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
bce72b58
HW
6\r
7 @par Revision Reference:\r
8 This Protocol is introduced in UEFI Specification 2.7\r
9\r
10**/\r
11\r
12#ifndef __PARTITION_INFO_PROTOCOL_H__\r
13#define __PARTITION_INFO_PROTOCOL_H__\r
14\r
15#include <IndustryStandard/Mbr.h>\r
16#include <Uefi/UefiGpt.h>\r
17\r
18//\r
19// EFI Partition Information Protocol GUID value\r
20//\r
21#define EFI_PARTITION_INFO_PROTOCOL_GUID \\r
22 { 0x8cf2f62c, 0xbc9b, 0x4821, { 0x80, 0x8d, 0xec, 0x9e, 0xc4, 0x21, 0xa1, 0xa0 }};\r
23\r
2f88bd3a
MK
24#define EFI_PARTITION_INFO_PROTOCOL_REVISION 0x0001000\r
25#define PARTITION_TYPE_OTHER 0x00\r
26#define PARTITION_TYPE_MBR 0x01\r
27#define PARTITION_TYPE_GPT 0x02\r
bce72b58
HW
28\r
29#pragma pack(1)\r
30\r
31///\r
32/// Partition Information Protocol structure.\r
33///\r
34typedef struct {\r
35 //\r
36 // Set to EFI_PARTITION_INFO_PROTOCOL_REVISION.\r
37 //\r
2f88bd3a 38 UINT32 Revision;\r
bce72b58
HW
39 //\r
40 // Partition info type (PARTITION_TYPE_MBR, PARTITION_TYPE_GPT, or PARTITION_TYPE_OTHER).\r
41 //\r
2f88bd3a 42 UINT32 Type;\r
bce72b58
HW
43 //\r
44 // If 1, partition describes an EFI System Partition.\r
45 //\r
2f88bd3a
MK
46 UINT8 System;\r
47 UINT8 Reserved[7];\r
bce72b58
HW
48 union {\r
49 ///\r
50 /// MBR data\r
51 ///\r
2f88bd3a 52 MBR_PARTITION_RECORD Mbr;\r
bce72b58
HW
53 ///\r
54 /// GPT data\r
55 ///\r
2f88bd3a 56 EFI_PARTITION_ENTRY Gpt;\r
bce72b58
HW
57 } Info;\r
58} EFI_PARTITION_INFO_PROTOCOL;\r
59\r
60#pragma pack()\r
61\r
62///\r
63/// Partition Information Protocol GUID variable.\r
64///\r
2f88bd3a 65extern EFI_GUID gEfiPartitionInfoProtocolGuid;\r
bce72b58
HW
66\r
67#endif\r