3 * Functions related to GPT data structures
5 * Copyright (c) 2014-2015 Roderick W. Smith
8 * This program is distributed under the terms of the GNU General Public
9 * License (GPL) version 3 (GPLv3), a copy of which must be distributed
10 * with this source code or binaries made from it.
19 #ifdef __MAKEWITH_GNUEFI
23 #include "../include/tiano_includes.h"
36 // A 512-byte data structure into which the MBR can be loaded in one
37 // go. Also used when loading logical partitions.
43 MBR_PART_INFO partitions
[4];
54 UINT64 alternate_header_lba
;
55 UINT64 first_usable_lba
;
56 UINT64 last_usable_lba
;
67 UINT8 partition_guid
[16];
74 typedef struct _gpt_data
{
75 MBR_RECORD
*ProtectiveMBR
;
78 struct _gpt_data
*NextEntry
;
83 VOID
ClearGptData(GPT_DATA
*Data
);
84 EFI_STATUS
ReadGptData(REFIT_VOLUME
*Volume
, GPT_DATA
**Data
);
85 // CHAR16 * PartNameFromGuid(EFI_GUID *Guid);
86 GPT_ENTRY
* FindPartWithGuid(EFI_GUID
*Guid
);
87 VOID
ForgetPartitionTables(VOID
);
88 VOID
AddPartitionTable(REFIT_VOLUME
*Volume
);