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