Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 1 | #ifndef COREBOOT_TABLE_H |
| 2 | #define COREBOOT_TABLE_H |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 3 | |
Stefan Reinauer | ca374d4 | 2008-01-18 16:16:45 +0000 | [diff] [blame] | 4 | #include <boot/coreboot_tables.h> |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 5 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 6 | /* This file holds function prototypes for building the coreboot table. */ |
| 7 | unsigned long write_coreboot_table( |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 8 | unsigned long low_table_start, unsigned long low_table_end, |
| 9 | unsigned long rom_table_start, unsigned long rom_table_end); |
| 10 | |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 11 | void lb_memory_range(struct lb_memory *mem, |
Eric Biederman | 6e53f50 | 2004-10-27 08:53:57 +0000 | [diff] [blame] | 12 | uint32_t type, uint64_t start, uint64_t size); |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 13 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 14 | /* Routines to extract part so the coreboot table or information |
| 15 | * from the coreboot table. |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 16 | */ |
| 17 | struct lb_memory *get_lb_mem(void); |
| 18 | |
Stefan Reinauer | 045c348 | 2008-12-13 20:51:34 +0000 | [diff] [blame] | 19 | /* defined by mainboard.c if the mainboard requires extra resources */ |
| 20 | int add_mainboard_resources(struct lb_memory *mem); |
Stefan Reinauer | de3206a | 2010-02-22 06:09:43 +0000 | [diff] [blame] | 21 | int add_northbridge_resources(struct lb_memory *mem); |
Stefan Reinauer | 045c348 | 2008-12-13 20:51:34 +0000 | [diff] [blame] | 22 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 23 | #endif /* COREBOOT_TABLE_H */ |