#include <linux/types.h>
#include <linux/fs.h>
#include <linux/genhd.h>
#include <linux/kernel.h>
#include <linux/major.h>
#include <linux/string.h>
#include <linux/efi.h>
Go to the source code of this file.
#define EFI_PMBR_OSTYPE_EFI 0xEF |
Definition at line 37 of file efi.h.
#define EFI_PMBR_OSTYPE_EFI_GPT 0xEE |
Definition at line 38 of file efi.h.
#define GPT_HEADER_REVISION_V1 0x00010000 |
Definition at line 41 of file efi.h.
#define GPT_HEADER_SIGNATURE 0x5452415020494645ULL |
Definition at line 40 of file efi.h.
#define GPT_PRIMARY_PARTITION_TABLE_LBA 1 |
Definition at line 42 of file efi.h.
#define LEGACY_MBR_PARTITION_GUID |
Value:
0x9D, 0x69, 0x00, 0x08, 0xC7, 0x81, 0xF3, 0x9F)
Definition at line 47 of file efi.h.
#define MSDOS_MBR_SIGNATURE 0xaa55 |
Definition at line 36 of file efi.h.
#define PARTITION_BASIC_DATA_GUID |
Value:
0x87, 0xC0, 0x68, 0xB6, 0xB7, 0x26, 0x99, 0xC7)
Definition at line 53 of file efi.h.
#define PARTITION_LINUX_LVM_GUID |
Value:
0xa2, 0x3c, 0x23, 0x8f, 0x2a, 0x3d, 0xf9, 0x28)
Definition at line 62 of file efi.h.
#define PARTITION_LINUX_RAID_GUID |
Value:
0xa0, 0x06, 0x74, 0x3f, 0x0f, 0x84, 0x91, 0x1e)
Definition at line 56 of file efi.h.
#define PARTITION_LINUX_SWAP_GUID |
Value:
0x84, 0xe5, 0x09, 0x33, 0xc8, 0x4b, 0x4f, 0x4f)
Definition at line 59 of file efi.h.
#define PARTITION_MSFT_RESERVED_GUID |
Value:
0x81, 0x7D, 0xF9, 0x2D, 0xF0, 0x02, 0x15, 0xAE)
Definition at line 50 of file efi.h.
#define PARTITION_SYSTEM_GUID |
Value:
0xBA, 0x4B, 0x00, 0xA0, 0xC9, 0x3E, 0xC9, 0x3B)
Definition at line 44 of file efi.h.
efi_partition(struct parsed_partitions *state)
Description: called from check.c, if the disk contains GPT partitions, sets up partition entries in the kernel.
If the first block on the disk is a legacy MBR, it will get handled by msdos_partition(). If it's a Protective MBR, we'll handle it here.
We do not create a Linux partition for GPT, but only for the actual data partitions. Returns: -1 if unable to read the partition table 0 if this isn't our partition table 1 if successful
Definition at line 617 of file efi.c.
Definition at line 94 of file efi.h.
Definition at line 97 of file efi.h.
Definition at line 95 of file efi.h.
Definition at line 91 of file efi.h.
Definition at line 90 of file efi.h.
Definition at line 96 of file efi.h.
Definition at line 93 of file efi.h.
Definition at line 99 of file efi.h.
__le32 partition_entry_array_crc32 |
Definition at line 98 of file efi.h.
Definition at line 94 of file efi.h.
Definition at line 95 of file efi.h.
Definition at line 92 of file efi.h.
Definition at line 89 of file efi.h.
Definition at line 88 of file efi.h.
Definition at line 96 of file efi.h.