X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fpart_efi.h;h=7170b61c9558fa977d7d5056f45d8b728dede912;hb=0223462b373b975d970fa86e5e1a7eadd1d41820;hp=4c8f6cc473c8fd02c8140629c8fa8c2462a87fb1;hpb=4ce521977f79a883f9c47984ef675c4b2267b7ad;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/part_efi.h b/include/part_efi.h index 4c8f6cc..7170b61 100644 --- a/include/part_efi.h +++ b/include/part_efi.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2008 RuggedCom, Inc. * Richard Retanubun - * - * SPDX-License-Identifier: GPL-2.0+ */ /* @@ -21,10 +20,11 @@ #include #define MSDOS_MBR_SIGNATURE 0xAA55 +#define MSDOS_MBR_BOOT_CODE_SIZE 440 #define EFI_PMBR_OSTYPE_EFI 0xEF #define EFI_PMBR_OSTYPE_EFI_GPT 0xEE -#define GPT_HEADER_SIGNATURE 0x5452415020494645ULL +#define GPT_HEADER_SIGNATURE_UBOOT 0x5452415020494645ULL #define GPT_HEADER_REVISION_V1 0x00010000 #define GPT_PRIMARY_PARTITION_TABLE_LBA 1ULL #define GPT_ENTRY_NUMBERS CONFIG_EFI_PARTITION_ENTRIES_NUMBERS @@ -112,7 +112,7 @@ typedef struct _gpt_entry { } __packed gpt_entry; typedef struct _legacy_mbr { - u8 boot_code[440]; + u8 boot_code[MSDOS_MBR_BOOT_CODE_SIZE]; __le32 unique_mbr_signature; __le16 unknown; struct partition partition_record[4];