aboutsummaryrefslogtreecommitdiff
path: root/src/arch/ppc/boot/coreboot_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/ppc/boot/coreboot_table.h')
-rw-r--r--src/arch/ppc/boot/coreboot_table.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/arch/ppc/boot/coreboot_table.h b/src/arch/ppc/boot/coreboot_table.h
new file mode 100644
index 0000000000..2645dd5890
--- /dev/null
+++ b/src/arch/ppc/boot/coreboot_table.h
@@ -0,0 +1,31 @@
+#ifndef COREBOOT_TABLE_H
+#define COREBOOT_TABLE_H
+
+#include <boot/coreboot_tables.h>
+
+struct mem_range;
+
+/* This file holds function prototypes for building the coreboot table. */
+unsigned long write_coreboot_table(
+ unsigned long low_table_start, unsigned long low_table_end,
+ unsigned long rom_table_start, unsigned long rom_table_end);
+
+struct lb_header *lb_table_init(unsigned long addr);
+struct lb_record *lb_first_record(struct lb_header *header);
+struct lb_record *lb_last_record(struct lb_header *header);
+struct lb_record *lb_next_record(struct lb_record *rec);
+struct lb_record *lb_new_record(struct lb_header *header);
+struct lb_memory *lb_memory(struct lb_header *header);
+void lb_memory_range(struct lb_memory *mem,
+ uint32_t type, uint64_t startk, uint64_t sizek);
+struct lb_mainboard *lb_mainboard(struct lb_header *header);
+unsigned long lb_table_fini(struct lb_header *header);
+
+/* Routines to extract part so the coreboot table or information
+ * from the coreboot table.
+ */
+struct lb_memory *get_lb_mem(void);
+
+extern struct cmos_option_table option_table;
+
+#endif /* COREBOOT_TABLE_H */