![]() |
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>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | tegra210_uart |
Functions | |
static void | tegra210_uart_tx_flush (void) |
static int | tegra210_uart_tst_byte (void) |
static void | tegra210_uart_init (void) |
static void | tegra210_uart_tx_byte (unsigned char data) |
static unsigned char | tegra210_uart_rx_byte (void) |
void | uart_init (unsigned int idx) |
void | uart_tx_byte (unsigned int idx, unsigned char data) |
void | uart_tx_flush (unsigned int idx) |
unsigned char | uart_rx_byte (unsigned int idx) |
void | uart_fill_lb (void *data) |
Variables | |
struct tegra210_uart | __packed |
static struct tegra210_uart *const | uart_ptr |
Definition at line 35 of file uart.c.
References tegra210_uart::dll, tegra210_uart::dlm, tegra210_uart::fcr, tegra210_uart::ier, tegra210_uart::lcr, tegra210_uart::mcr, tegra210_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().
Definition at line 72 of file uart.c.
References tegra210_uart::rbr, read8(), tegra210_uart_tst_byte(), and uart_ptr.
Referenced by uart_rx_byte().
|
static |
Definition at line 79 of file uart.c.
References tegra210_uart::lsr, read8(), UART8250_LSR_DR, and uart_ptr.
Referenced by tegra210_uart_rx_byte().
Definition at line 61 of file uart.c.
References tegra210_uart::lsr, read8(), tegra210_uart::thr, UART8250_LSR_THRE, uart_ptr, and write8().
Referenced by uart_tx_byte().
Definition at line 67 of file uart.c.
References tegra210_uart::lsr, read8(), UART8250_LSR_TEMT, and uart_ptr.
Referenced by tegra210_uart_init(), and uart_tx_flush().
Definition at line 104 of file uart.c.
References get_uart_baudrate(), lb_add_console(), lb_add_serial(), LB_SERIAL_TYPE_MEMORY_MAPPED, LB_TAG_CONSOLE_SERIAL8250MEM, serial, and uart_platform_refclk().
Definition at line 84 of file uart.c.
References tegra210_uart_init().
Definition at line 99 of file uart.c.
References tegra210_uart_rx_byte().
Definition at line 89 of file uart.c.
References tegra210_uart_tx_byte().
Definition at line 94 of file uart.c.
References tegra210_uart_tx_flush().
struct tegra210_uart __packed |
|
static |
Definition at line 29 of file uart.c.
Referenced by tegra210_uart_init(), tegra210_uart_rx_byte(), tegra210_uart_tst_byte(), tegra210_uart_tx_byte(), and tegra210_uart_tx_flush().