aboutsummaryrefslogtreecommitdiffstats
path: root/fs/filesystems.c
diff options
context:
space:
mode:
authorPawel Moll <pawel.moll@st.com>2010-02-19 05:26:31 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-03-04 11:11:31 -0500
commit62c8cbbfc2367e706317f56ac21959120ae72773 (patch)
tree9ce45fe48d8dab041288ffc33039a5004a9d0ac2 /fs/filesystems.c
parentb07f6b327e798610bebaa581ffb7a226f3bcb96b (diff)
sh: Move PMB debugfs entry initialization to later stage
... so the "sh_debugfs_root" is already available. Previously it wasn't and in result its path was "/sys/kernel/debug/pmb" instead of "/sys/kernel/debug/sh/pmb". Signed-off-by: Pawel Moll <pawel.moll@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'fs/filesystems.c')
0 files changed, 0 insertions, 0 deletions
"hl opt">; __le64 my_lba; __le64 alternate_lba; __le64 first_usable_lba; __le64 last_usable_lba; efi_guid_t disk_guid; __le64 partition_entry_lba; __le32 num_partition_entries; __le32 sizeof_partition_entry; __le32 partition_entry_array_crc32; /* The rest of the logical block is reserved by UEFI and must be zero. * EFI standard handles this by: * * uint8_t reserved2[ BlockSize - 92 ]; */ } __packed gpt_header; typedef struct _gpt_entry_attributes { u64 required_to_function:1; u64 reserved:47; u64 type_guid_specific:16; } __packed gpt_entry_attributes; typedef struct _gpt_entry { efi_guid_t partition_type_guid; efi_guid_t unique_partition_guid; __le64 starting_lba; __le64 ending_lba; gpt_entry_attributes attributes; efi_char16_t partition_name[72 / sizeof (efi_char16_t)]; } __packed gpt_entry; typedef struct _gpt_mbr_record { u8 boot_indicator; /* unused by EFI, set to 0x80 for bootable */ u8 start_head; /* unused by EFI, pt start in CHS */ u8 start_sector; /* unused by EFI, pt start in CHS */ u8 start_track; u8 os_type; /* EFI and legacy non-EFI OS types */ u8 end_head; /* unused by EFI, pt end in CHS */ u8 end_sector; /* unused by EFI, pt end in CHS */ u8 end_track; /* unused by EFI, pt end in CHS */ __le32 starting_lba; /* used by EFI - start addr of the on disk pt */ __le32 size_in_lba; /* used by EFI - size of pt in LBA */ } __packed gpt_mbr_record; typedef struct _legacy_mbr { u8 boot_code[440]; __le32 unique_mbr_signature; __le16 unknown; gpt_mbr_record partition_record[4]; __le16 signature; } __packed legacy_mbr; /* Functions */ extern int efi_partition(struct parsed_partitions *state); #endif