coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
uart.c File Reference
Include dependency graph for uart.c:

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
 

Function Documentation

◆ tegra124_uart_init()

static void tegra124_uart_init ( struct tegra124_uart uart_ptr)
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().

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

◆ tegra124_uart_rx_byte()

static unsigned char tegra124_uart_rx_byte ( struct tegra124_uart uart_ptr)
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().

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

◆ tegra124_uart_tst_byte()

static int tegra124_uart_tst_byte ( struct tegra124_uart uart_ptr)
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().

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

◆ tegra124_uart_tx_byte()

static void tegra124_uart_tx_byte ( struct tegra124_uart uart_ptr,
unsigned char  data 
)
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().

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

◆ tegra124_uart_tx_flush()

static void tegra124_uart_tx_flush ( struct tegra124_uart uart_ptr)
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().

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)

◆ uart_init()

void uart_init ( unsigned int  idx)

Definition at line 93 of file uart.c.

References tegra124_uart_init(), uart_platform_baseptr(), and uart_ptr.

Here is the call graph for this function:

◆ uart_platform_base()

uintptr_t uart_platform_base ( unsigned int  idx)

Definition at line 78 of file uart.c.

References base.

◆ uart_rx_byte()

unsigned char uart_rx_byte ( unsigned int  idx)

Definition at line 99 of file uart.c.

References tegra124_uart_rx_byte(), uart_platform_baseptr(), and uart_ptr.

Here is the call graph for this function:

◆ uart_tx_byte()

void uart_tx_byte ( unsigned int  idx,
unsigned char  data 
)

Definition at line 105 of file uart.c.

References tegra124_uart_tx_byte(), uart_platform_baseptr(), and uart_ptr.

Here is the call graph for this function:

◆ uart_tx_flush()

void uart_tx_flush ( unsigned int  idx)

Definition at line 111 of file uart.c.

References tegra124_uart_tx_flush(), uart_platform_baseptr(), and uart_ptr.

Here is the call graph for this function:

Variable Documentation

◆ __packed