From 3e4e3038584fb2055c482fd346bb821b3d6236fc Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 20 Mar 2013 14:08:04 -0700 Subject: Unify coreboot table generation coreboot tables are, unlike general system tables, a platform independent concept. Hence, use the same code for coreboot table generation on all platforms. lib/coreboot_tables.c is based on the x86 version of the file, because some important fixes were missed on the ARMv7 version lately. Change-Id: Icc38baf609f10536a320d21ac64408bef44bb77d Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/2863 Reviewed-by: Ronald G. Minnich Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/include/boot/coreboot_tables.h | 16 ++++++++++++++++ src/include/boot/tables.h | 1 - 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/boot/coreboot_tables.h b/src/include/boot/coreboot_tables.h index 71ad3f0477..f624ac1e1a 100644 --- a/src/include/boot/coreboot_tables.h +++ b/src/include/boot/coreboot_tables.h @@ -323,4 +323,20 @@ struct cmos_checksum { #define CHECKSUM_PCBIOS 1 }; +/* 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); + +void lb_add_memory_range(struct lb_memory *mem, + uint32_t type, uint64_t start, uint64_t size); + +/* Routines to extract part so the coreboot table or information + * from the coreboot table. + */ +struct lb_memory *get_lb_mem(void); + +void fill_lb_gpios(struct lb_gpios *gpios); + #endif /* COREBOOT_TABLES_H */ diff --git a/src/include/boot/tables.h b/src/include/boot/tables.h index 869da26f8c..f9e91a4e18 100644 --- a/src/include/boot/tables.h +++ b/src/include/boot/tables.h @@ -2,7 +2,6 @@ #define BOOT_TABLES_H #include -#include struct lb_memory *write_tables(void); -- cgit v1.2.3