Example #1
0
unsigned char uart_rx_byte(int idx)
{
	void *base = uart_platform_baseptr(idx);
	if (!base)
		return 0xff;
	return uart8250_mem_rx_byte(base);
}
Example #2
0
static unsigned char uartmem_rx_byte(void)
{
	if (!uart_bar)
		return 0;

	return uart8250_mem_rx_byte(uart_bar);
}