From: Vladimir 'phcoder' Serbinenko Date: Tue, 22 Oct 2013 06:37:29 +0000 (+0200) Subject: Add EFI mmap specification X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9dcda7e1123a7eacf40be2c01321e1bdca461b93;p=thirdparty%2Fgrub.git Add EFI mmap specification --- diff --git a/doc/multiboot.texi b/doc/multiboot.texi index 44782c9c3..a8f45e330 100644 --- a/doc/multiboot.texi +++ b/doc/multiboot.texi @@ -1127,6 +1127,21 @@ u32 | size | This tag contains network information in the format specified as DHCP. It may be either a real DHCP reply or just the configuration info in the same format. This tag appears once per card. +@subsection EFI memory map +@example +@group + +-------------------+ +u32 | type = 17 | +u32 | size | +u32 | descriptor size | +u32 | descriptor version| + | EFI memory map | + +-------------------+ +@end group +@end example + +This tag contains EFI memory map as per EFI specification. + @node Examples @chapter Examples diff --git a/doc/multiboot2.h b/doc/multiboot2.h index 0e26a8ec2..58f2f6845 100644 --- a/doc/multiboot2.h +++ b/doc/multiboot2.h @@ -58,6 +58,7 @@ #define MULTIBOOT_TAG_TYPE_ACPI_OLD 14 #define MULTIBOOT_TAG_TYPE_ACPI_NEW 15 #define MULTIBOOT_TAG_TYPE_NETWORK 16 +#define MULTIBOOT_TAG_TYPE_EFI_MMAP 17 #define MULTIBOOT_HEADER_TAG_END 0 #define MULTIBOOT_HEADER_TAG_INFORMATION_REQUEST 1 @@ -361,6 +362,15 @@ struct multiboot_tag_network multiboot_uint8_t dhcpack[0]; }; +struct multiboot_tag_efi_mmap +{ + multiboot_uint32_t type; + multiboot_uint32_t size; + multiboot_uint32_t descr_size; + multiboot_uint32_t descr_vers; + multiboot_uint8_t efi_mmap[0]; +}; + #endif /* ! ASM_FILE */ #endif /* ! MULTIBOOT_HEADER */