summaryrefslogtreecommitdiff
path: root/src/include/uart8250.h
blob: dc09315dea0f7b1645262566bb47fb25a1bb97fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef UART8250_H
#define UART8250_H

struct uart8250 {
	unsigned int baud;
	/* Do I need an lcs parameter here? */
};

unsigned char uart8250_rx_byte(unsigned base_port);
int uart8250_can_rx_byte(unsigned base_port);
void uart8250_tx_byte(unsigned base_port, unsigned char data);
void uart8250_init(unsigned base_port, unsigned divisor, unsigned lcs);
void init_uart8250(unsigned base_port, struct uart8250 *uart);

#endif /* UART8250_H */