3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Data Structures required for detecting GPT Partitions
29 #define PRIMARY_PART_HEADER_LBA 1
31 #define EFI_PTAB_HEADER_ID "EFI PART"
34 // EFI Partition Attributes
36 #define EFI_PART_REQUIRED_TO_FUNCTION 0x0000000000000001
39 // GPT Partition Table Header
42 EFI_TABLE_HEADER Header
;
45 EFI_LBA FirstUsableLBA
;
46 EFI_LBA LastUsableLBA
;
48 EFI_LBA PartitionEntryLBA
;
49 UINT32 NumberOfPartitionEntries
;
50 UINT32 SizeOfPartitionEntry
;
51 UINT32 PartitionEntryArrayCRC32
;
52 } EFI_PARTITION_TABLE_HEADER
;
55 // GPT Partition Entry
58 EFI_GUID PartitionTypeGUID
;
59 EFI_GUID UniquePartitionGUID
;
63 CHAR16 PartitionName
[36];
64 } EFI_PARTITION_ENTRY
;
67 // GPT Partition Entry Status
72 } EFI_PARTITION_ENTRY_STATUS
;