summaryrefslogtreecommitdiffstats
path: root/disk/part_efi.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-10-08 08:14:36 +0000
committerTom Rini <trini@ti.com>2012-10-17 07:59:10 -0700
commit13bf2f55d9ea6620f0bcdc4a9f0b67f6ec81885f (patch)
treeb6c6c5357006a74fe39de7f829b9f1a356ba3bd5 /disk/part_efi.h
parent1c8346ab38a981559a25492dcdfda211cb09aab4 (diff)
downloadtalos-obmc-uboot-13bf2f55d9ea6620f0bcdc4a9f0b67f6ec81885f.tar.gz
talos-obmc-uboot-13bf2f55d9ea6620f0bcdc4a9f0b67f6ec81885f.zip
disk: part_efi: print raw partition attributes
When printing the EFI partition table, print the raw attributes. Convert struct gpt_entry_attributes to a union to allow raw access. Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'disk/part_efi.h')
-rw-r--r--disk/part_efi.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/disk/part_efi.h b/disk/part_efi.h
index 1d0c67cbe0..4e28d1dcb6 100644
--- a/disk/part_efi.h
+++ b/disk/part_efi.h
@@ -111,12 +111,15 @@ typedef struct _gpt_header {
unsigned char reserved2[GPT_BLOCK_SIZE - 92];
} __attribute__ ((packed)) gpt_header;
-typedef struct _gpt_entry_attributes {
- unsigned long long required_to_function:1;
- unsigned long long no_block_io_protocol:1;
- unsigned long long legacy_bios_bootable:1;
- unsigned long long reserved:45;
- unsigned long long type_guid_specific:16;
+typedef union _gpt_entry_attributes {
+ struct {
+ unsigned long long required_to_function:1;
+ unsigned long long no_block_io_protocol:1;
+ unsigned long long legacy_bios_bootable:1;
+ unsigned long long reserved:45;
+ unsigned long long type_guid_specific:16;
+ } fields;
+ unsigned long long raw;
} __attribute__ ((packed)) gpt_entry_attributes;
#define PARTNAME_SZ (72 / sizeof(efi_char16_t))
OpenPOWER on IntegriCloud