6
* 16550-compatible UART
10
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
16
* Write to UART register
19
* @v addr Register address
22
static inline __attribute__ (( always_inline )) void
23
uart_write ( struct uart *uart, unsigned int addr, uint8_t data ) {
24
outb ( data, ( uart->base + addr ) );
28
* Read from UART register
31
* @v addr Register address
34
static inline __attribute__ (( always_inline )) uint8_t
35
uart_read ( struct uart *uart, unsigned int addr ) {
36
return inb ( uart->base + addr );
39
extern int uart_select ( struct uart *uart, unsigned int port );
41
#endif /* _BITS_UART_H */