OSDN Git Service

* public snapshot of sid simulator
[pf3gnuchains/pf3gnuchains3x.git] / sid / component / uart / testsuite / uart-def.h
1 // uart-def.h - UART interface stuff.  -*- C++ -*-
2
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.
6
7 #ifndef UART_DEF_DEF_H
8 #define UART_DEF_DEF_H  1
9
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
22   UART_SCRATCH  = 7
23 };
24
25 #define UART_ADDRESS    0xa0000
26
27 #endif // UART_DEF_DEF_H