aboutsummaryrefslogtreecommitdiff
path: root/src/memmap.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-06-08 23:09:42 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-06-08 23:09:42 -0400
commit59a23bb0f8d2c1a44206de3fd1571f17858492ab (patch)
treeeac13c8a562521d565f28ae808270da6c5802b89 /src/memmap.h
parentc781293122c6875b6d66a04d80f7fb62b11a6735 (diff)
downloadseabios-hppa-59a23bb0f8d2c1a44206de3fd1571f17858492ab.zip
seabios-hppa-59a23bb0f8d2c1a44206de3fd1571f17858492ab.tar.gz
seabios-hppa-59a23bb0f8d2c1a44206de3fd1571f17858492ab.tar.bz2
Enhance e820 memory map generation - include files missing from last commit.
Diffstat (limited to 'src/memmap.h')
-rw-r--r--src/memmap.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/memmap.h b/src/memmap.h
new file mode 100644
index 0000000..c0cdca5
--- /dev/null
+++ b/src/memmap.h
@@ -0,0 +1,25 @@
+#ifndef __E820MAP_H
+#define __E820MAP_H
+
+#include "types.h" // u64
+
+#define E820_RAM 1
+#define E820_RESERVED 2
+#define E820_ACPI 3
+#define E820_NVS 4
+#define E820_UNUSABLE 5
+
+struct e820entry {
+ u64 start;
+ u64 size;
+ u32 type;
+};
+
+void add_e820(u64 start, u64 size, u32 type);
+void memmap_setup();
+void memmap_finalize();
+
+// Space for exported bios tables.
+extern u32 bios_table_cur_addr, bios_table_end_addr;
+
+#endif // e820map.h