e7e026308216c960d27bde2fd706c869683bf5b5
[uccvend-snackrom.git] / ROM2 / 16550.h
1 #ifndef _16550_H_
2 #define _16550_H_
3
4 #include "vend.h"
5
6 /* Must be accessed with DLAB low */
7 #define UART_RX_BUF       0x00 /* read  */
8 #define UART_TX_BUF       0x00 /* write */
9 #define UART_INT_ENABLE   0x01
10 #define UART_INT_IDENT    0x02 /* read  */
11 #define UART_FIFO_CTL     0x02 /* write */
12 #define UART_LINE_CTL     0x03
13 #define UART_MODEM_CTL    0x04
14 #define UART_LINE_STATUS  0x05
15 #define UART_MODEM_STATUS 0x06
16 #define UART_SCRATCH      0x07
17
18 /* Same addresses as above, but accessed with DLAB high */
19 #define UART_DLAB_LSB     0x00
20 #define UART_DLAB_MSB     0x01
21
22 extern volatile u8 _uart_regs[]; /* UART registers - fixed at link time */
23
24 #endif /* _16550_H_ */

UCC git Repository :: git.ucc.asn.au