+++ /dev/null
-/** @file\r
- EFI Guid Partition Table Format Definition.\r
-\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
---*/\r
-\r
-#ifndef _EFIGPT_H_\r
-#define _EFIGPT_H_\r
-\r
-\r
-#define PRIMARY_PART_HEADER_LBA 1\r
-\r
-#define EFI_PTAB_HEADER_ID "EFI PART"\r
-\r
-#pragma pack(1)\r
-//\r
-// GPT Partition Table Header\r
-//\r
-typedef struct {\r
- EFI_TABLE_HEADER Header;\r
- EFI_LBA MyLBA;\r
- EFI_LBA AlternateLBA;\r
- EFI_LBA FirstUsableLBA;\r
- EFI_LBA LastUsableLBA;\r
- EFI_GUID DiskGUID;\r
- EFI_LBA PartitionEntryLBA;\r
- UINT32 NumberOfPartitionEntries;\r
- UINT32 SizeOfPartitionEntry;\r
- UINT32 PartitionEntryArrayCRC32;\r
-} EFI_PARTITION_TABLE_HEADER;\r
-\r
-//\r
-// GPT Partition Entry\r
-//\r
-typedef struct {\r
- EFI_GUID PartitionTypeGUID;\r
- EFI_GUID UniquePartitionGUID;\r
- EFI_LBA StartingLBA;\r
- EFI_LBA EndingLBA;\r
- UINT64 Attributes;\r
- CHAR16 PartitionName[36];\r
-} EFI_PARTITION_ENTRY;\r
-\r
-//\r
-// GPT Partition Entry Status\r
-//\r
-typedef struct {\r
- BOOLEAN OutOfRange;\r
- BOOLEAN Overlap;\r
-} EFI_PARTITION_ENTRY_STATUS;\r
-\r
-#pragma pack()\r
-\r
-#endif\r