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
4
#include <
commonlib/coreboot_tables.h
>
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
*/
14
size_t
write_coreboot_forwarding_table
(
uintptr_t
entry,
uintptr_t
target);
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. */
32
void
lb_arch_add_records
(
struct
lb_header
*
header
);
33
34
/*
35
* Function to retrieve MAC address(es) from the VPD and store them in the
36
* coreboot table.
37
*/
38
void
lb_table_add_macs_from_vpd
(
struct
lb_header
*
header
);
39
40
void
lb_table_add_serialno_from_vpd
(
struct
lb_header
*
header
);
41
42
struct
lb_record
*
lb_new_record
(
struct
lb_header
*
header
);
43
44
/* Add VBOOT VBNV offsets. */
45
void
lb_table_add_vbnv_cmos
(
struct
lb_header
*
header
);
46
47
#endif
/* COREBOOT_TABLES_H */
header
struct arm64_kernel_header header
Definition:
fit_payload.c:30
coreboot_tables.h
lb_new_record
struct lb_record * lb_new_record(struct lb_header *header)
Definition:
coreboot_table.c:70
fill_lb_framebuffer
int fill_lb_framebuffer(struct lb_framebuffer *framebuffer)
Definition:
edid_fill_fb.c:169
lb_add_console
void lb_add_console(uint16_t consoletype, void *data)
Definition:
coreboot_table.c:110
lb_table_add_macs_from_vpd
void lb_table_add_macs_from_vpd(struct lb_header *header)
lb_table_add_serialno_from_vpd
void lb_table_add_serialno_from_vpd(struct lb_header *header)
lb_table_add_vbnv_cmos
void lb_table_add_vbnv_cmos(struct lb_header *header)
Definition:
vbnv_cmos.c:90
lb_add_gpios
void lb_add_gpios(struct lb_gpios *gpios, const struct lb_gpio *gpio_table, size_t count)
Definition:
coreboot_table.c:143
lb_add_serial
void lb_add_serial(struct lb_serial *serial, void *data)
Definition:
coreboot_table.c:94
lb_board
void lb_board(struct lb_header *header)
Definition:
coreboot_table.c:381
uart_fill_lb
void uart_fill_lb(void *data)
Definition:
pl011.c:38
write_coreboot_forwarding_table
size_t write_coreboot_forwarding_table(uintptr_t entry, uintptr_t target)
Definition:
coreboot_table.c:432
fill_lb_gpios
void fill_lb_gpios(struct lb_gpios *gpios)
Definition:
chromeos.c:9
lb_arch_add_records
void lb_arch_add_records(struct lb_header *header)
Definition:
tables.c:24
serial
unsigned int serial
Definition:
edid.c:52
gpio_table
static const struct pad_config gpio_table[]
Definition:
gpio.h:24
stddef.h
stdint.h
uint16_t
unsigned short uint16_t
Definition:
stdint.h:11
uintptr_t
unsigned long uintptr_t
Definition:
stdint.h:21
lb_framebuffer
Definition:
coreboot_tables.h:272
lb_gpio
Definition:
coreboot_tables.h:292
lb_gpios
Definition:
coreboot_tables.h:302
lb_header
Definition:
coreboot_tables.h:108
lb_record
Definition:
coreboot_tables.h:123
lb_serial
Definition:
coreboot_tables.h:175
count
#define count
src
include
boot
coreboot_tables.h
Generated by
1.9.1