2008-01-18 16:08:58 +01:00
|
|
|
#ifndef COREBOOT_TABLES_H
|
|
|
|
#define COREBOOT_TABLES_H
|
2003-04-22 21:02:15 +02:00
|
|
|
|
2015-09-08 20:34:43 +02:00
|
|
|
#include <commonlib/coreboot_tables.h>
|
2013-03-20 22:08:04 +01:00
|
|
|
/* 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 fill_lb_gpios(struct lb_gpios *gpios);
|
2013-12-22 02:12:38 +01:00
|
|
|
void fill_lb_gpio(struct lb_gpio *gpio, int num,
|
|
|
|
int polarity, const char *name, int value);
|
2013-03-20 22:08:04 +01:00
|
|
|
|
2014-03-15 00:32:55 +01:00
|
|
|
void uart_fill_lb(void *data);
|
|
|
|
void lb_add_serial(struct lb_serial *serial, void *data);
|
|
|
|
void lb_add_console(uint16_t consoletype, void *data);
|
|
|
|
|
2013-08-28 00:48:32 +02:00
|
|
|
/* Define this in mainboard.c to add board-specific table entries. */
|
|
|
|
void lb_board(struct lb_header *header);
|
|
|
|
|
2015-10-02 01:06:47 +02:00
|
|
|
/* Define this in soc or fsp driver to add specific table entries. */
|
|
|
|
void lb_framebuffer(struct lb_header *header);
|
|
|
|
|
2014-10-16 22:02:37 +02:00
|
|
|
/*
|
|
|
|
* Function to retrieve MAC address(es) from the VPD and store them in the
|
|
|
|
* coreboot table.
|
|
|
|
*/
|
|
|
|
void lb_table_add_macs_from_vpd(struct lb_header *header);
|
|
|
|
|
2015-03-11 23:53:10 +01:00
|
|
|
void lb_table_add_serialno_from_vpd(struct lb_header *header);
|
|
|
|
|
2013-08-28 00:48:32 +02:00
|
|
|
struct lb_record *lb_new_record(struct lb_header *header);
|
|
|
|
|
2008-01-18 16:08:58 +01:00
|
|
|
#endif /* COREBOOT_TABLES_H */
|