added rx support
[coreboot.git] / src / include / uart8250.h
1 #ifndef UART8250_H
2 #define UART8250_H
3
4 struct uart8250 {
5         unsigned int baud;
6         /* Do I need an lcs parameter here? */
7 };
8
9 unsigned char uart8250_rx_byte(unsigned base_port);
10 int uart8250_can_rx_byte(unsigned base_port);
11 void uart8250_tx_byte(unsigned base_port, unsigned char data);
12 void uart8250_init(unsigned base_port, unsigned divisor, unsigned lcs);
13 void init_uart8250(unsigned base_port, struct uart8250 *uart);
14
15 #endif /* UART8250_H */