1 // uart-def.h - UART interface stuff. -*- C++ -*-
3 // Copyright (C) 1999, 2000 Red Hat.
4 // This file is part of SID and is licensed under the GPL.
5 // See the file COPYING.SID for conditions for redistribution.
8 #define UART_DEF_DEF_H 1
10 enum uart_addr { // UART register offsets
11 UART_RXB = 0, // read-only
12 UART_THR = 0, // write-only
13 UART_DIVL = 0, // when DLAB = 1
14 UART_DIVM = 1, // when DLAB = 1
15 UART_IER = 1, // when DLAB = 0
16 UART_IIR = 2, // INTR id, read-only
17 UART_FCR = 2, // INTR id, write-only
18 UART_LCR = 3, // Line control
19 UART_MCR = 4, // Modem control
20 UART_LSR = 5, // Line status
21 UART_MSR = 6, // Modem status
25 #define UART_ADDRESS 0xa0000
27 #endif // UART_DEF_DEF_H