uint8_t * primary_header
struct GptData
Defined at line 81 of file ../../third_party/vboot_reference/firmware/include/gpt_misc.h
A note about stored_on_device and gpt_drive_sectors:
This code is used by both the "cgpt" utility and depthcharge/vboot. ATM,
depthcharge does not have logic to properly setup stored_on_device and
gpt_drive_sectors, but it does do a memset(gpt, 0, sizeof(GptData)). And so,
GPT_STORED_ON_DEVICE should be 0 to make stored_on_device compatible with
present behavior. At the same time, in vboot_kernel:LoadKernel(), and
cgpt_common:GptLoad(), we need to have simple shims to set gpt_drive_sectors
to drive_sectors.
TODO(namnguyen): Remove those shims when the firmware can set these fields.
Public Members
uint8_t * secondary_header
uint8_t * primary_entries
uint8_t * secondary_entries
uint32_t sector_bytes
uint64_t streaming_drive_sectors
uint64_t gpt_drive_sectors
uint32_t flags
uint8_t modified
int current_kernel
uint8_t valid_headers
uint8_t valid_entries
uint8_t ignored
int current_priority