summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64/bootinfo.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-03-18 04:20:23 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-03-18 04:20:23 +0000
commite62014c38d171383c54eb1fee183f14f592521fc (patch)
tree4b7633718336d145b6173478d26a39cb9dcfe088 /include/asm-mips64/bootinfo.h
parentc66599c66b70d522363bceb2dec263e76470a3c8 (diff)
Lots of cleanup from Keith with additional tweaks by me. More to
come. Stay frightened :-)
Diffstat (limited to 'include/asm-mips64/bootinfo.h')
-rw-r--r--include/asm-mips64/bootinfo.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/asm-mips64/bootinfo.h b/include/asm-mips64/bootinfo.h
index dadcc4872..2c1d40205 100644
--- a/include/asm-mips64/bootinfo.h
+++ b/include/asm-mips64/bootinfo.h
@@ -144,6 +144,11 @@
#define CL_SIZE (80)
+#define BOOT_MEM_MAP_MAX 32
+#define BOOT_MEM_RAM 1
+#define BOOT_MEM_ROM_DATA 2
+#define BOOT_MEM_RESERVED 3
+
#ifndef _LANGUAGE_ASSEMBLY
/*
@@ -160,6 +165,24 @@ extern unsigned long mips_machtype;
extern unsigned long mips_machgroup;
extern unsigned long mips_tlb_entries;
+/*
+ * A memory map that's built upon what was determined
+ * or specified on the command line.
+ */
+struct boot_mem_map {
+ int nr_map;
+ struct {
+ unsigned long addr; /* start of memory segment */
+ unsigned long size; /* size of memory segment */
+ long type; /* type of memory segment */
+ } map[BOOT_MEM_MAP_MAX];
+};
+
+extern struct boot_mem_map boot_mem_map;
+
+extern void add_memory_region(unsigned long start, unsigned long size,
+ long type);
+
#endif /* _LANGUAGE_ASSEMBLY */
#endif /* _ASM_BOOTINFO_H */