mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] efi: define extra efi_memory_type flags
@ 2024-07-31  7:13 Ahmad Fatoum
  2024-08-01 11:30 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-07-31  7:13 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

We already define a number of memory types, but we are missing some
bits in-between. Add them for completion's sake.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 include/efi.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/efi.h b/include/efi.h
index a27cbe1f498b..217e3d9f56ff 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -110,10 +110,16 @@ enum efi_memory_type {
 #define EFI_MEMORY_WC		((u64)0x0000000000000002ULL)	/* write-coalescing */
 #define EFI_MEMORY_WT		((u64)0x0000000000000004ULL)	/* write-through */
 #define EFI_MEMORY_WB		((u64)0x0000000000000008ULL)	/* write-back */
+#define EFI_MEMORY_UCE		((u64)0x0000000000000010ULL)	/* uncached, exported */
 #define EFI_MEMORY_WP		((u64)0x0000000000001000ULL)	/* write-protect */
 #define EFI_MEMORY_RP		((u64)0x0000000000002000ULL)	/* read-protect */
 #define EFI_MEMORY_XP		((u64)0x0000000000004000ULL)	/* execute-protect */
+#define EFI_MEMORY_NV		((u64)0x0000000000008000ULL)	/* non-volatile */
 #define EFI_MEMORY_RUNTIME	((u64)0x8000000000000000ULL)	/* range requires runtime mapping */
+#define EFI_MEMORY_MORE_RELIABLE \
+				((u64)0x0000000000010000ULL)	/* higher reliability */
+#define EFI_MEMORY_RO		((u64)0x0000000000020000ULL)	/* read-only */
+#define EFI_MEMORY_SP		((u64)0x0000000000040000ULL)	/* specific-purpose memory (SPM) */
 #define EFI_MEMORY_DESCRIPTOR_VERSION	1
 
 #define EFI_PAGE_SHIFT		12
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] efi: define extra efi_memory_type flags
  2024-07-31  7:13 [PATCH] efi: define extra efi_memory_type flags Ahmad Fatoum
@ 2024-08-01 11:30 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2024-08-01 11:30 UTC (permalink / raw)
  To: barebox, Ahmad Fatoum


On Wed, 31 Jul 2024 09:13:21 +0200, Ahmad Fatoum wrote:
> We already define a number of memory types, but we are missing some
> bits in-between. Add them for completion's sake.
> 
> 

Applied, thanks!

[1/1] efi: define extra efi_memory_type flags
      https://git.pengutronix.de/cgit/barebox/commit/?id=e6701ffd6f1d (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-01 11:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-31  7:13 [PATCH] efi: define extra efi_memory_type flags Ahmad Fatoum
2024-08-01 11:30 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox