00001 #ifndef COREBOOT_TABLE_H 00002 #define COREBOOT_TABLE_H 00003 00004 #include <boot/coreboot_tables.h> 00005 00006 /* This file holds function prototypes for building the coreboot table. */ 00007 unsigned long write_coreboot_table( 00008 unsigned long low_table_start, unsigned long low_table_end, 00009 unsigned long rom_table_start, unsigned long rom_table_end); 00010 00011 struct lb_header *lb_table_init(unsigned long addr); 00012 struct lb_record *lb_first_record(struct lb_header *header); 00013 struct lb_record *lb_last_record(struct lb_header *header); 00014 struct lb_record *lb_next_record(struct lb_record *rec); 00015 struct lb_record *lb_new_record(struct lb_header *header); 00016 struct lb_memory *lb_memory(struct lb_header *header); 00017 void lb_memory_range(struct lb_memory *mem, 00018 uint32_t type, uint64_t start, uint64_t size); 00019 struct lb_mainboard *lb_mainboard(struct lb_header *header); 00020 unsigned long lb_table_fini(struct lb_header *header); 00021 00022 /* Routines to extract part so the coreboot table or information 00023 * from the coreboot table. 00024 */ 00025 struct lb_memory *get_lb_mem(void); 00026 00027 extern struct cmos_option_table option_table; 00028 00029 /* defined by mainboard.c if the mainboard requires extra resources */ 00030 int add_mainboard_resources(struct lb_memory *mem); 00031 00032 #endif /* COREBOOT_TABLE_H */
1.5.5