summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authormmel <mmel@FreeBSD.org>2017-04-16 07:21:20 +0000
committermmel <mmel@FreeBSD.org>2017-04-16 07:21:20 +0000
commit2589e5f69f04cfa8fcf63ea99bd8a5914762ab67 (patch)
treed3eda75a992ada6dc29229dad9b932af98a86c06 /sys/sys
parent2f97dffc6bbcc68082bbc2eeb847ee0f688fb86d (diff)
downloadFreeBSD-src-2589e5f69f04cfa8fcf63ea99bd8a5914762ab67.zip
FreeBSD-src-2589e5f69f04cfa8fcf63ea99bd8a5914762ab67.tar.gz
MFC r303261,r315059:
r303261: Add more UEFI/e820 memory types from latest specifications. r315059: Split overbloated machep.c to multiple files and do basic cleanup of these fragments.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/efi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/efi.h b/sys/sys/efi.h
index 50f4abe..68fc281 100644
--- a/sys/sys/efi.h
+++ b/sys/sys/efi.h
@@ -70,6 +70,7 @@ struct efi_md {
#define EFI_MD_TYPE_IOMEM 11 /* Memory-mapped I/O. */
#define EFI_MD_TYPE_IOPORT 12 /* I/O port space. */
#define EFI_MD_TYPE_PALCODE 13 /* PAL */
+#define EFI_MD_TYPE_PERSISTENT 14 /* Persistent memory. */
uint32_t __pad;
uint64_t md_phys;
void *md_virt;
@@ -83,6 +84,10 @@ struct efi_md {
#define EFI_MD_ATTR_WP 0x0000000000001000UL
#define EFI_MD_ATTR_RP 0x0000000000002000UL
#define EFI_MD_ATTR_XP 0x0000000000004000UL
+#define EFI_MD_ATTR_NV 0x0000000000008000UL
+#define EFI_MD_ATTR_MORE_RELIABLE \
+ 0x0000000000010000UL
+#define EFI_MD_ATTR_RO 0x0000000000020000UL
#define EFI_MD_ATTR_RT 0x8000000000000000UL
};
OpenPOWER on IntegriCloud