coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
coreboot_tables.h File Reference
#include <commonlib/coreboot_tables.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for coreboot_tables.h:

Go to the source code of this file.

Functions

size_t write_coreboot_forwarding_table (uintptr_t entry, uintptr_t target)
 
void fill_lb_gpios (struct lb_gpios *gpios)
 
void lb_add_gpios (struct lb_gpios *gpios, const struct lb_gpio *gpio_table, size_t count)
 
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)
 
void lb_board (struct lb_header *header)
 
int fill_lb_framebuffer (struct lb_framebuffer *framebuffer)
 
void lb_arch_add_records (struct lb_header *header)
 
void lb_table_add_macs_from_vpd (struct lb_header *header)
 
void lb_table_add_serialno_from_vpd (struct lb_header *header)
 
struct lb_recordlb_new_record (struct lb_header *header)
 
void lb_table_add_vbnv_cmos (struct lb_header *header)
 

Function Documentation

◆ fill_lb_framebuffer()

int fill_lb_framebuffer ( struct lb_framebuffer framebuffer)

Definition at line 169 of file edid_fill_fb.c.

Referenced by lb_framebuffer().

Here is the caller graph for this function:

◆ fill_lb_gpios()

◆ lb_add_console()

void lb_add_console ( uint16_t  consoletype,
void data 
)

Definition at line 110 of file coreboot_table.c.

References header, lb_new_record(), LB_TAG_CONSOLE, lb_console::size, lb_console::tag, and lb_console::type.

Referenced by uart_fill_lb(), and write_coreboot_table().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lb_add_gpios()

void lb_add_gpios ( struct lb_gpios gpios,
const struct lb_gpio gpio_table,
size_t  count 
)

Definition at line 143 of file coreboot_table.c.

References lb_gpios::count, count, gpio_table, lb_gpios::gpios, memcpy(), and lb_gpios::size.

Referenced by fill_lb_gpios().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lb_add_serial()

void lb_add_serial ( struct lb_serial serial,
void data 
)

Definition at line 94 of file coreboot_table.c.

References lb_serial::baseaddr, lb_serial::baud, header, lb_serial::input_hertz, lb_new_record(), LB_TAG_SERIAL, lb_serial::regwidth, serial, lb_serial::type, and lb_serial::uart_pci_addr.

Referenced by uart_fill_lb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lb_arch_add_records()

void lb_arch_add_records ( struct lb_header header)

Definition at line 24 of file tables.c.

References lb_tsc_info::freq_khz, header, lb_new_record(), LB_TAG_TSC_INFO, lb_tsc_info::size, lb_tsc_info::tag, tsc_constant_rate(), and tsc_freq_mhz().

Referenced by write_coreboot_table().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lb_board()

void lb_board ( struct lb_header header)

Definition at line 381 of file coreboot_table.c.

References CONFIG, dma, dma_coherent(), header, lb_new_record(), lb_table_add_macs_from_vpd(), lb_table_add_serialno_from_vpd(), LB_TAG_DMA, REGION_SIZE, and soc_add_mtc().

Referenced by write_coreboot_table().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lb_new_record()

◆ lb_table_add_macs_from_vpd()

void lb_table_add_macs_from_vpd ( struct lb_header header)

Referenced by lb_board().

Here is the caller graph for this function:

◆ lb_table_add_serialno_from_vpd()

void lb_table_add_serialno_from_vpd ( struct lb_header header)

Referenced by lb_board().

Here is the caller graph for this function:

◆ lb_table_add_vbnv_cmos()

void lb_table_add_vbnv_cmos ( struct lb_header header)

Definition at line 90 of file vbnv_cmos.c.

References header, lb_new_record(), LB_TAG_VBNV, vbnv, and VBOOT_VBNV_BLOCK_SIZE.

Referenced by write_coreboot_table().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ uart_fill_lb()

void uart_fill_lb ( void data)

◆ write_coreboot_forwarding_table()

size_t write_coreboot_forwarding_table ( uintptr_t  entry,
uintptr_t  target 
)

Definition at line 432 of file coreboot_table.c.

References BIOS_DEBUG, lb_forward(), lb_table_fini(), lb_table_init(), and printk.

Referenced by arch_write_tables().

Here is the call graph for this function:
Here is the caller graph for this function: