summaryrefslogtreecommitdiffhomepage
path: root/src/loader/inc/memory.h
diff options
context:
space:
mode:
authorMarvin Borner2021-07-12 18:14:44 +0200
committerMarvin Borner2021-07-12 18:15:29 +0200
commit1b429c0fc28e5cd8b474ad5a1de1fa6f3d7c2e2a (patch)
tree593af3e3ec78795bb47553f492db07fb7e87e373 /src/loader/inc/memory.h
parentd414d2f6f46bd425d727af5baae3e2658d6e1384 (diff)
Renamed files to match presentation
Diffstat (limited to 'src/loader/inc/memory.h')
-rw-r--r--src/loader/inc/memory.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/loader/inc/memory.h b/src/loader/inc/memory.h
new file mode 100644
index 0000000..1a74884
--- /dev/null
+++ b/src/loader/inc/memory.h
@@ -0,0 +1,32 @@
+// MIT License, Copyright (c) 2021 Marvin Borner
+
+#ifndef MEMORY_H
+#define MEMORY_H
+
+#include <def.h>
+
+enum memory_entry_type {
+ MEMORY_NONE,
+ MEMORY_USABLE,
+ MEMORY_RESERVED,
+ MEMORY_RECLAIMABLE,
+ MEMORY_ACPI_NVS,
+ MEMORY_UNUSABLE,
+};
+
+// Generalised memory map entry struct
+struct memory_entry {
+ u32 base;
+ u32 length;
+ u32 type;
+};
+
+struct memory_map {
+ struct memory_entry *entry;
+ u32 count;
+};
+
+void memory_map(void);
+struct memory_map *memory_map_get(void);
+
+#endif