]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/IndustryStandard/EfiGpt.h
Add EfiGpt.h, ElTorito.h, Mbr.h header files which are for EFI GUID Partition table...
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / EfiGpt.h
1 /** @file
2 EFI Guid Partition Table Format Definition.
3
4 Copyright (c) 2006, 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 _EFIGPT_H_
16 #define _EFIGPT_H_
17
18
19 #define PRIMARY_PART_HEADER_LBA 1
20
21 #define EFI_PTAB_HEADER_ID "EFI PART"
22
23 #pragma pack(1)
24 //
25 // GPT Partition Table Header
26 //
27 typedef struct {
28 EFI_TABLE_HEADER Header;
29 EFI_LBA MyLBA;
30 EFI_LBA AlternateLBA;
31 EFI_LBA FirstUsableLBA;
32 EFI_LBA LastUsableLBA;
33 EFI_GUID DiskGUID;
34 EFI_LBA PartitionEntryLBA;
35 UINT32 NumberOfPartitionEntries;
36 UINT32 SizeOfPartitionEntry;
37 UINT32 PartitionEntryArrayCRC32;
38 } EFI_PARTITION_TABLE_HEADER;
39
40 //
41 // GPT Partition Entry
42 //
43 typedef struct {
44 EFI_GUID PartitionTypeGUID;
45 EFI_GUID UniquePartitionGUID;
46 EFI_LBA StartingLBA;
47 EFI_LBA EndingLBA;
48 UINT64 Attributes;
49 CHAR16 PartitionName[36];
50 } EFI_PARTITION_ENTRY;
51
52 //
53 // GPT Partition Entry Status
54 //
55 typedef struct {
56 BOOLEAN OutOfRange;
57 BOOLEAN Overlap;
58 } EFI_PARTITION_ENTRY_STATUS;
59
60 #pragma pack()
61
62 #endif