coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
uart.c File Reference
#include <types.h>
#include <console/uart.h>
#include <boot/coreboot_tables.h>
Include dependency graph for uart.c:

Go to the source code of this file.

Functions

uintptr_t uart_platform_base (unsigned int idx)
 
void uart_init (unsigned int idx)
 
unsigned char uart_rx_byte (unsigned int idx)
 
void uart_tx_byte (unsigned int idx, unsigned char data)
 
void uart_tx_flush (unsigned int idx)
 
void uart_fill_lb (void *data)
 

Variables

static uint8_tbuf = (void *)0
 

Function Documentation

◆ uart_fill_lb()

void uart_fill_lb ( void data)

Definition at line 31 of file uart.c.

References lb_add_console(), lb_add_serial(), LB_SERIAL_TYPE_MEMORY_MAPPED, LB_TAG_CONSOLE_SERIAL8250MEM, serial, and uart_platform_refclk().

Here is the call graph for this function:

◆ uart_init()

void uart_init ( unsigned int  idx)

Definition at line 13 of file uart.c.

Referenced by ipq40xx_uart_init(), ipq806x_uart_init(), and qcs405_uart_init().

Here is the caller graph for this function:

◆ uart_platform_base()

uintptr_t uart_platform_base ( unsigned int  idx)

Definition at line 8 of file uart.c.

References buf.

Referenced by uart_fill_lb().

Here is the caller graph for this function:

◆ uart_rx_byte()

unsigned char uart_rx_byte ( unsigned int  idx)

Definition at line 17 of file uart.c.

◆ uart_tx_byte()

void uart_tx_byte ( unsigned int  idx,
unsigned char  data 
)

Definition at line 22 of file uart.c.

◆ uart_tx_flush()

void uart_tx_flush ( unsigned int  idx)

Definition at line 27 of file uart.c.

Variable Documentation

◆ buf

uint8_t* buf = (void *)0
static

Definition at line 7 of file uart.c.

Referenced by _cbfs_load(), acpi_device_path(), acpi_device_path_fill(), acpi_device_path_join(), acpi_device_scope(), acpi_pld_to_buffer(), acpigen_write_pld(), acpigen_write_uuid(), agesa_execute_state(), amd_create_struct(), anx7625_reg_block_read(), bdk_twsix_read_ia(), bdk_twsix_write_ia(), biosemu_dev_get_addr_info(), block_cmd_loop(), cbfs_load(), cbfs_ro_load(), cbfs_ro_type_load(), cbfs_type_load(), cbfs_unverified_area_load(), cbi_get_string(), check_locality(), cr50_i2c_tis_ready(), cr50_i2c_tis_recv(), cr50_i2c_tis_send(), cr50_i2c_tis_status(), cr50_i2c_wait_burststs(), cse_copy_rw(), dbgp_get_data(), dbgp_set_data(), do_i2c_block_write(), do_i2c_eeprom_read(), do_smbus_block_read(), do_smbus_block_write(), do_smbus_process_call(), dram_print_spd_ddr2(), dt_fix_symbols(), exynos_dp_handle_edid(), exynos_dp_link_start(), exynos_dp_process_clock_recovery(), exynos_dp_read_dpcd_adj_req(), exynos_dp_read_dpcd_lane_stat(), fast_spi_flash_read(), fast_spi_flash_write(), fsp_get_version(), fw_cfg_dma(), fw_cfg_smbios_init(), get_burstcount(), google_chromeec_cbi_get_dram_part_num(), google_chromeec_cbi_get_oem_name(), h8_build_id_and_function_spec_version(), h8_dsdt_scope(), hexstrtobin(), hub_port_status(), hudson_readSpd(), i2c_dev_read_at16(), i2c_dev_writeb_at(), i2c_read_field(), i2c_transfer_segment(), i2c_write_field(), i2c_writeb(), ich_hwseq_read(), ich_hwseq_write(), init_vbnv(), jpeg_check_size(), jpeg_decode(), jpeg_fetch_size(), lsmbus_block_write(), mainboard_fill_ec_version(), mainboard_read_spd(), mec_io_bytes(), mem_pool_init(), mipi_panel_parse_init_commands(), mt6360_i2c_read_byte(), nor_read(), nor_write(), platform_i2c_transfer(), qup_s_cancel_and_abort(), recv_data(), region_file_update_data(), release_locality(), report_resource_stored(), request_locality(), rk_edp_read_edid(), rk_mipi_dsi_write(), sb_read_spd(), scan_end(), sdhci_send_command(), segments_edid_read(), set_resource(), setbuf(), show_one_resource(), smbios_cache_associativity(), smbios_fill_dimm_asset_tag(), smbios_fill_dimm_locator(), smbios_write_type4(), smbus_i2c_block_write(), smbus_readSpd(), smmstore_init(), smmstorev2_exec(), sn65dsi86_bridge_link_training(), snprintf(), spi_flash_cmd_read(), spi_flash_cmd_write_page_program(), spi_flash_read(), spi_flash_write(), sst_byte_write(), sst_write_ai(), tegra_dp_update_config(), tpm_ppi_func0_cb(), tpm_tis_i2c_ready(), tpm_tis_i2c_recv(), tpm_tis_i2c_send(), tpm_tis_i2c_status(), tpm_vendor_probe(), uart_platform_base(), variant_mainboard_read_spd(), vb2ex_hwcrypto_digest_extend(), vb2ex_read_resource(), vprintk(), vsnprintf(), xfer_setup(), and xhci_generate_port_acpi().