sys/dev/uart/uart_dev_ns8250.c
/*
 * We can only flush UARTs with FIFOs. UARTs without FIFOs should be
 * drained. WARNING: this function clobbers the FIFO setting!
 */
We can only flush UARTs with FIFOs.
We can only flush UARTs with FIFOs .
static void
ns8250_flush(struct uart_bas *bas, int what)
{
	uint8_t fcr;
	fcr = FCR_ENABLE;
	if (what & UART_FLUSH_TRANSMITTER)
		fcr |= FCR_XMT_RST;
	if (what & UART_FLUSH_RECEIVER)
		fcr |= FCR_RCV_RST;
	uart_setreg(bas, REG_FCR, fcr);
	uart_barrier(bas);
}
static void ns8250_flush ( struct uart_bas * bas , int what ) { uint8_t fcr ; fcr = FCR_ENABLE ; if ( what & UART_FLUSH_TRANSMITTER ) fcr |= FCR_XMT_RST ; if ( what & UART_FLUSH_RECEIVER ) fcr |= FCR_RCV_RST ; uart_setreg ( bas , REG_FCR , fcr ) ; uart_barrier ( bas ) ; }
We can only flush UARTs with FIFOs.
We can only flush UARTs with FIFOs .