coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
coreboot_tables.h
Go to the documentation of this file.
1 #ifndef COREBOOT_TABLES_H
2 #define COREBOOT_TABLES_H
3 
5 #include <stddef.h>
6 #include <stdint.h>
7 
8 /* function prototypes for building the coreboot table */
9 
10 /*
11  * Write forwarding table of target address at entry address returning size
12  * of table written.
13  */
15 
16 void fill_lb_gpios(struct lb_gpios *gpios);
17 void lb_add_gpios(struct lb_gpios *gpios, const struct lb_gpio *gpio_table,
18  size_t count);
19 
20 void uart_fill_lb(void *data);
21 void lb_add_serial(struct lb_serial *serial, void *data);
22 void lb_add_console(uint16_t consoletype, void *data);
23 
24 /* Define this in mainboard.c to add board-specific table entries. */
25 void lb_board(struct lb_header *header);
26 
27 /* Define this function to fill in the frame buffer returning 0 on success and
28  < 0 on error. */
29 int fill_lb_framebuffer(struct lb_framebuffer *framebuffer);
30 
31 /* Allow arch to add records. */
33 
34 /*
35  * Function to retrieve MAC address(es) from the VPD and store them in the
36  * coreboot table.
37  */
39 
41 
42 struct lb_record *lb_new_record(struct lb_header *header);
43 
44 /* Add VBOOT VBNV offsets. */
46 
47 #endif /* COREBOOT_TABLES_H */
struct arm64_kernel_header header
Definition: fit_payload.c:30
struct lb_record * lb_new_record(struct lb_header *header)
int fill_lb_framebuffer(struct lb_framebuffer *framebuffer)
Definition: edid_fill_fb.c:169
void lb_add_console(uint16_t consoletype, void *data)
void lb_table_add_macs_from_vpd(struct lb_header *header)
void lb_table_add_serialno_from_vpd(struct lb_header *header)
void lb_table_add_vbnv_cmos(struct lb_header *header)
Definition: vbnv_cmos.c:90
void lb_add_gpios(struct lb_gpios *gpios, const struct lb_gpio *gpio_table, size_t count)
void lb_add_serial(struct lb_serial *serial, void *data)
void lb_board(struct lb_header *header)
void uart_fill_lb(void *data)
Definition: pl011.c:38
size_t write_coreboot_forwarding_table(uintptr_t entry, uintptr_t target)
void fill_lb_gpios(struct lb_gpios *gpios)
Definition: chromeos.c:9
void lb_arch_add_records(struct lb_header *header)
Definition: tables.c:24
unsigned int serial
Definition: edid.c:52
static const struct pad_config gpio_table[]
Definition: gpio.h:24
unsigned short uint16_t
Definition: stdint.h:11
unsigned long uintptr_t
Definition: stdint.h:21
#define count