vrdsiureg.h revision 1.1.4.2 1 1.1.4.2 tv /*
2 1.1.4.2 tv * Copyright (c) 2001, 2002 Greg Hughes. All rights reserved.
3 1.1.4.2 tv * Copyright (c) 1999 PocketBSD Project. All rights reserved.
4 1.1.4.2 tv *
5 1.1.4.2 tv * Redistribution and use in source and binary forms, with or without
6 1.1.4.2 tv * modification, are permitted provided that the following conditions
7 1.1.4.2 tv * are met:
8 1.1.4.2 tv * 1. Redistributions of source code must retain the above copyright
9 1.1.4.2 tv * notice, this list of conditions and the following disclaimer.
10 1.1.4.2 tv * 2. Redistributions in binary form must reproduce the above copyright
11 1.1.4.2 tv * notice, this list of conditions and the following disclaimer in the
12 1.1.4.2 tv * documentation and/or other materials provided with the distribution.
13 1.1.4.2 tv *
14 1.1.4.2 tv * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 1.1.4.2 tv * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 1.1.4.2 tv * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 1.1.4.2 tv * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 1.1.4.2 tv * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 1.1.4.2 tv * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 1.1.4.2 tv * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 1.1.4.2 tv * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 1.1.4.2 tv * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 1.1.4.2 tv * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 1.1.4.2 tv * SUCH DAMAGE.
25 1.1.4.2 tv */
26 1.1.4.2 tv
27 1.1.4.2 tv /*
28 1.1.4.2 tv * DSIU (debug serial interface unit) register definitions
29 1.1.4.2 tv */
30 1.1.4.2 tv
31 1.1.4.2 tv /* Port Change Register */
32 1.1.4.2 tv #define DSIUPORT_REG_W 0x00
33 1.1.4.2 tv #define DSIUPORT_CDDIN (1 << 3)
34 1.1.4.2 tv #define DSIUPORT_CDDOUT (1 << 2)
35 1.1.4.2 tv #define DSIUPORT_CDRTS (1 << 1)
36 1.1.4.2 tv #define DSIUPORT_CDCTS (1 << 0)
37 1.1.4.2 tv
38 1.1.4.2 tv /* Modem Control Register */
39 1.1.4.2 tv #define DSIUMODEM_REG_W 0x02
40 1.1.4.2 tv #define DSIUMODEM_DRTS (1 << 1)
41 1.1.4.2 tv #define DSIUMODEM_DCTS (1 << 0)
42 1.1.4.2 tv
43 1.1.4.2 tv /* Asynchronous Mode 0 Register */
44 1.1.4.2 tv #define DSIUASIM00_REG_W 0x04
45 1.1.4.2 tv #define DSIUASIM00_RXE0 (1 << 6)
46 1.1.4.2 tv #define DSIUASIM00_PS0_MASK (3 << 4)
47 1.1.4.2 tv #define DSIUASIM00_PS00 (1 << 4)
48 1.1.4.2 tv #define DSIUASIM00_PS01 (1 << 5)
49 1.1.4.2 tv #define DSIUASIM00_CL0 (1 << 3)
50 1.1.4.2 tv #define DSIUASIM00_SL0 (1 << 2)
51 1.1.4.2 tv
52 1.1.4.2 tv /* Asynchronous Mode 1 Register */
53 1.1.4.2 tv #define DSIUASIM01_REG_W 0x06
54 1.1.4.2 tv #define DSIUASIM01_EBS0 (1 << 0)
55 1.1.4.2 tv
56 1.1.4.2 tv /* Recceive Buffer Register (Extended) */
57 1.1.4.2 tv #define DSIURXB0R_REG_W 0x08
58 1.1.4.2 tv #define DSIURXB0R_RXB0_MASK (0x1FF << 0)
59 1.1.4.2 tv
60 1.1.4.2 tv /* Receive Buffer Register */
61 1.1.4.2 tv #define DSIURXB0L_REG_W 0x0A
62 1.1.4.2 tv #define DSIURXB0L_RXB0L_MASK (0xFF << 0)
63 1.1.4.2 tv
64 1.1.4.2 tv /* Transmit Data Register (Extended) */
65 1.1.4.2 tv #define DSIUTXS0R_REG_W 0x0C
66 1.1.4.2 tv #define DSIUTXS0R_TXS0_MASK (0x1FF << 0)
67 1.1.4.2 tv
68 1.1.4.2 tv /* Transmit Data Register */
69 1.1.4.2 tv #define DSIUTXS0L_REG_W 0x0E
70 1.1.4.2 tv #define DSIUTXS0L_TXS0L_MASK (0xFF << 0)
71 1.1.4.2 tv
72 1.1.4.2 tv /* Status Register */
73 1.1.4.2 tv #define DSIUASIS0_REG_W 0x10
74 1.1.4.2 tv #define DSIUASIS0_SOT0 (1 << 7)
75 1.1.4.2 tv #define DSIUASIS0_PE0 (1 << 2)
76 1.1.4.2 tv #define DSIUASIS0_FE0 (1 << 1)
77 1.1.4.2 tv #define DSIUASIS0_OVE0 (1 << 0)
78 1.1.4.2 tv
79 1.1.4.2 tv /* Debug SIU Interrupt Register */
80 1.1.4.2 tv #define DSIUINTR0_REG_W 0x12
81 1.1.4.2 tv #define DSIUINTR0_INTDCD (1 << 3)
82 1.1.4.2 tv #define DSIUINTR0_INTSER0 (1 << 2)
83 1.1.4.2 tv #define DSIUINTR0_INTSR0 (1 << 1)
84 1.1.4.2 tv #define DSIUINTR0_INTST0 (1 << 0)
85 1.1.4.2 tv
86 1.1.4.2 tv /* Baud rate Generator Prescaler Mode Register */
87 1.1.4.2 tv #define DSIUBPRM0_REG_W 0x16
88 1.1.4.2 tv #define DSIUBPRM0_BRCE0 (1 << 7)
89 1.1.4.2 tv #define DSIUBPRM0_BPR0_MASK (7 << 0)
90 1.1.4.2 tv #define DSIUBPRM0_BPR00 (1 << 0)
91 1.1.4.2 tv #define DSIUBPRM0_BPR01 (1 << 1)
92 1.1.4.2 tv #define DSIUBPRM0_BPR02 (1 << 2)
93 1.1.4.2 tv
94 1.1.4.2 tv /* Debug SIU Reset Register */
95 1.1.4.2 tv #define DSIURESET_REG_W 0x18
96 1.1.4.2 tv #define DSIURESET_DSIURST (1 << 0)
97