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