]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Uefi/UefiGpt.h
Fix doxygen issue:
[mirror_edk2.git] / MdePkg / Include / Uefi / UefiGpt.h
CommitLineData
c311f86b 1/** @file\r
959ccb23 2 EFI Guid Partition Table Format Definition.\r
3\r
4 Copyright (c) 2006 - 2007, Intel Corporation\r
5 All rights reserved. This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
959ccb23 13**/\r
14\r
15#ifndef __UEFI_GPT_H__\r
16#define __UEFI_GPT_H__\r
17\r
18#define PRIMARY_PART_HEADER_LBA 1\r
19\r
8b13229b 20///\r
21/// EFI Partition Table Signature: "EFI PART"\r
22/// \r
959ccb23 23#define EFI_PTAB_HEADER_ID 0x5452415020494645ULL\r
24\r
25#pragma pack(1)\r
8b13229b 26\r
27///\r
28/// GPT Partition Table Header\r
29///\r
959ccb23 30typedef struct {\r
31 EFI_TABLE_HEADER Header;\r
32 EFI_LBA MyLBA;\r
33 EFI_LBA AlternateLBA;\r
34 EFI_LBA FirstUsableLBA;\r
35 EFI_LBA LastUsableLBA;\r
36 EFI_GUID DiskGUID;\r
37 EFI_LBA PartitionEntryLBA;\r
38 UINT32 NumberOfPartitionEntries;\r
39 UINT32 SizeOfPartitionEntry;\r
40 UINT32 PartitionEntryArrayCRC32;\r
41} EFI_PARTITION_TABLE_HEADER;\r
42\r
8b13229b 43///\r
44/// GPT Partition Entry\r
45///\r
959ccb23 46typedef struct {\r
47 EFI_GUID PartitionTypeGUID;\r
48 EFI_GUID UniquePartitionGUID;\r
49 EFI_LBA StartingLBA;\r
50 EFI_LBA EndingLBA;\r
51 UINT64 Attributes;\r
52 CHAR16 PartitionName[36];\r
53} EFI_PARTITION_ENTRY;\r
54\r
8b13229b 55///\r
56/// GPT Partition Entry Status\r
57///\r
959ccb23 58typedef struct {\r
59 BOOLEAN OutOfRange;\r
60 BOOLEAN Overlap;\r
61} EFI_PARTITION_ENTRY_STATUS;\r
62\r
63#pragma pack()\r
64#endif\r
65\r
66\r