diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-08-26 17:39:37 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-08-26 17:40:42 +0000 |
commit | 74704a26bc2cfc72de6821d29a1f53b9d8c65f55 (patch) | |
tree | 758dc8e5f7f4f2f49e419113c520d6802df6a255 | |
parent | 837b7203f0c7356a35d59ed903053b9df4530164 (diff) | |
download | src-74704a26bc2cfc72de6821d29a1f53b9d8c65f55.tar.gz src-74704a26bc2cfc72de6821d29a1f53b9d8c65f55.zip |
efi: Create a define for memory descriptor version
For true EFI platforms, the EFI BIOS will return version 1 (since no
other version is defined as of this commit). However, for environments
that wish to create an EFI memory mapping table that aren't actually
EFI, we need to know this. Add EFI_MEMORY_DESCRIPTOR_VERSION for this
constant.
Sponsored by: Netflix
-rw-r--r-- | sys/sys/efi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/efi.h b/sys/sys/efi.h index 6ace7dd6e523..f5dc15ae418f 100644 --- a/sys/sys/efi.h +++ b/sys/sys/efi.h @@ -59,6 +59,8 @@ struct efi_cfgtbl { void *ct_data; }; +#define EFI_MEMORY_DESCRIPTOR_VERSION 1 + struct efi_md { uint32_t md_type; #define EFI_MD_TYPE_NULL 0 |