![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <console/uart.h>
#include <drivers/uart/uart8250reg.h>
Go to the source code of this file.
Data Structures | |
struct | tegra124_uart |
Functions | |
static void | tegra124_uart_tx_flush (struct tegra124_uart *uart_ptr) |
static int | tegra124_uart_tst_byte (struct tegra124_uart *uart_ptr) |
static void | tegra124_uart_init (struct tegra124_uart *uart_ptr) |
static unsigned char | tegra124_uart_rx_byte (struct tegra124_uart *uart_ptr) |
static void | tegra124_uart_tx_byte (struct tegra124_uart *uart_ptr, unsigned char data) |
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 | |
struct tegra124_uart | __packed |
|
static |
Definition at line 31 of file uart.c.
References mtk_uart::dll, mtk_uart::dlm, mtk_uart::fcr, mtk_uart::ier, mtk_uart::lcr, mtk_uart::mcr, tegra124_uart_tx_flush(), UART8250_FCR_CLEAR_RCVR, UART8250_FCR_CLEAR_XMIT, UART8250_FCR_FIFO_EN, UART8250_LCR_DLAB, UART8250_LCR_WLS_8, UART8250_MCR_DTR, UART8250_MCR_RTS, uart_ptr, and write8().
Referenced by uart_init().
|
static |
Definition at line 55 of file uart.c.
References mtk_uart::rbr, read8(), tegra124_uart_tst_byte(), and uart_ptr.
Referenced by uart_rx_byte().
|
static |
Definition at line 73 of file uart.c.
References mtk_uart::lsr, read8(), UART8250_LSR_DR, and uart_ptr.
Referenced by tegra124_uart_rx_byte().
|
static |
Definition at line 62 of file uart.c.
References mtk_uart::lsr, read8(), mtk_uart::thr, UART8250_LSR_THRE, uart_ptr, and write8().
Referenced by uart_tx_byte().
|
static |
Definition at line 68 of file uart.c.
References mtk_uart::lsr, read8(), UART8250_LSR_TEMT, and uart_ptr.
Referenced by tegra124_uart_init(), and uart_tx_flush().
Definition at line 117 of file uart.c.
References get_uart_baudrate(), lb_add_console(), lb_add_serial(), LB_SERIAL_TYPE_MEMORY_MAPPED, LB_TAG_CONSOLE_SERIAL8250MEM, serial, uart_platform_base(), and uart_platform_refclk().
Definition at line 93 of file uart.c.
References tegra124_uart_init(), uart_platform_baseptr(), and uart_ptr.
Definition at line 99 of file uart.c.
References tegra124_uart_rx_byte(), uart_platform_baseptr(), and uart_ptr.
Definition at line 105 of file uart.c.
References tegra124_uart_tx_byte(), uart_platform_baseptr(), and uart_ptr.
Definition at line 111 of file uart.c.
References tegra124_uart_tx_flush(), uart_platform_baseptr(), and uart_ptr.
struct tegra124_uart __packed |