summaryrefslogtreecommitdiff
path: root/head
diff options
context:
space:
mode:
Diffstat (limited to 'head')
-rw-r--r--head/sboot/memmap.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/head/sboot/memmap.h b/head/sboot/memmap.h
new file mode 100644
index 0000000..daad502
--- /dev/null
+++ b/head/sboot/memmap.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2026, Apollo Telephone Laboratories.
+ * Provided under the BSD-3 clause.
+ */
+
+#ifndef _SBOOT_MEMMAP_H_
+#define _SBOOT_MEMMAP_H_ 1
+
+#include <efi.h>
+#include <efilib.h>
+
+/*
+ * EFI memory map
+ */
+typedef struct {
+ EFI_MEMORY_DESCRIPTOR *Map;
+ UINTN MapSize;
+ UINTN MapKey;
+ UINTN DescriptorSize;
+ UINT32 DescriptorVersion;
+} PLATFORM_MEMMAP;
+
+/*
+ * Obtain the platform memory map
+ *
+ * @Map: Result is written here
+ */
+EFI_STATUS SBootGetMemmap(OUT PLATFORM_MEMMAP *Map);
+
+#endif /* !_SBOOT_MEMMAP_H_ */