]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Uefi/UefiGpt.h
Updated headers to follow coding standard
[mirror_edk2.git] / MdePkg / Include / Uefi / UefiGpt.h
CommitLineData
959ccb23 1/* @file\r
2 EFI Guid Partition Table Format Definition.\r
3\r
4 Copyright (c) 2006 - 2007, 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
959ccb23 13**/\r
14\r
15#ifndef __UEFI_GPT_H__\r
16#define __UEFI_GPT_H__\r
17\r
18#define PRIMARY_PART_HEADER_LBA 1\r
19\r
20//\r
21// EFI Partition Table Signature: "EFI PART"\r
22// \r
23#define EFI_PTAB_HEADER_ID 0x5452415020494645ULL\r
24\r
25#pragma pack(1)\r
26//\r
27// GPT Partition Table Header\r
28//\r
29typedef struct {\r
30 EFI_TABLE_HEADER Header;\r
31 EFI_LBA MyLBA;\r
32 EFI_LBA AlternateLBA;\r
33 EFI_LBA FirstUsableLBA;\r
34 EFI_LBA LastUsableLBA;\r
35 EFI_GUID DiskGUID;\r
36 EFI_LBA PartitionEntryLBA;\r
37 UINT32 NumberOfPartitionEntries;\r
38 UINT32 SizeOfPartitionEntry;\r
39 UINT32 PartitionEntryArrayCRC32;\r
40} EFI_PARTITION_TABLE_HEADER;\r
41\r
42//\r
43// GPT Partition Entry\r
44//\r
45typedef struct {\r
46 EFI_GUID PartitionTypeGUID;\r
47 EFI_GUID UniquePartitionGUID;\r
48 EFI_LBA StartingLBA;\r
49 EFI_LBA EndingLBA;\r
50 UINT64 Attributes;\r
51 CHAR16 PartitionName[36];\r
52} EFI_PARTITION_ENTRY;\r
53\r
54//\r
55// GPT Partition Entry Status\r
56//\r
57typedef struct {\r
58 BOOLEAN OutOfRange;\r
59 BOOLEAN Overlap;\r
60} EFI_PARTITION_ENTRY_STATUS;\r
61\r
62#pragma pack()\r
63#endif\r
64\r
65\r