X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fpartitions%2Fefi.h;h=c44fb0561448603fea42f9f758834b3ea641ad2b;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=9b2670e85c7665165b8ff598e31062b3c1696ba8;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/fs/partitions/efi.h b/fs/partitions/efi.h index 9b2670e85..c44fb0561 100644 --- a/fs/partitions/efi.h +++ b/fs/partitions/efi.h @@ -66,20 +66,20 @@ 0xa2, 0x3c, 0x23, 0x8f, 0x2a, 0x3d, 0xf9, 0x28) typedef struct _gpt_header { - u64 signature; - u32 revision; - u32 header_size; - u32 header_crc32; - u32 reserved1; - u64 my_lba; - u64 alternate_lba; - u64 first_usable_lba; - u64 last_usable_lba; + __le64 signature; + __le32 revision; + __le32 header_size; + __le32 header_crc32; + __le32 reserved1; + __le64 my_lba; + __le64 alternate_lba; + __le64 first_usable_lba; + __le64 last_usable_lba; efi_guid_t disk_guid; - u64 partition_entry_lba; - u32 num_partition_entries; - u32 sizeof_partition_entry; - u32 partition_entry_array_crc32; + __le64 partition_entry_lba; + __le32 num_partition_entries; + __le32 sizeof_partition_entry; + __le32 partition_entry_array_crc32; u8 reserved2[GPT_BLOCK_SIZE - 92]; } __attribute__ ((packed)) gpt_header; @@ -92,18 +92,18 @@ typedef struct _gpt_entry_attributes { typedef struct _gpt_entry { efi_guid_t partition_type_guid; efi_guid_t unique_partition_guid; - u64 starting_lba; - u64 ending_lba; + __le64 starting_lba; + __le64 ending_lba; gpt_entry_attributes attributes; efi_char16_t partition_name[72 / sizeof (efi_char16_t)]; } __attribute__ ((packed)) gpt_entry; typedef struct _legacy_mbr { u8 boot_code[440]; - u32 unique_mbr_signature; - u16 unknown; + __le32 unique_mbr_signature; + __le16 unknown; struct partition partition_record[4]; - u16 signature; + __le16 signature; } __attribute__ ((packed)) legacy_mbr; /* Functions */