1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 #define CD1400_NO_OF_CHANNELS 4
39 #define CD1400_RX_FIFO_SIZE 12
40 #define CD1400_TX_FIFO_SIZE 12
41 #define CD1400_PAR_FIFO_SIZE 30
42
43
44
45
46 #define CD1400_GFRCR 0x40
47 #define CD1400_CAR 0x68
48 #define CD1400_CAR_CHAN (3<<0)
49 #define CD1400_GCR 0x4B
50 #define CD1400_GCR_PARALLEL (1<<7)
51 #define CD1400_SVRR 0x67
52 #define CD1400_SVRR_MDMCH (1<<2)
53 #define CD1400_SVRR_TXRDY (1<<1)
54 #define CD1400_SVRR_RXRDY (1<<0)
55 #define CD1400_RICR 0x44
56 #define CD1400_TICR 0x45
57 #define CD1400_MICR 0x46
58 #define CD1400_RIR 0x6B
59 #define CD1400_RIR_RDIREQ (1<<7)
60 #define CD1400_RIR_RBUSY (1<<6)
61 #define CD1400_RIR_CHAN (3<<0)
62 #define CD1400_TIR 0x6A
63 #define CD1400_TIR_RDIREQ (1<<7)
64 #define CD1400_TIR_RBUSY (1<<6)
65 #define CD1400_TIR_CHAN (3<<0)
66 #define CD1400_MIR 0x69
67 #define CD1400_MIR_RDIREQ (1<<7)
68 #define CD1400_MIR_RBUSY (1<<6)
69 #define CD1400_MIR_CHAN (3<<0)
70 #define CD1400_PPR 0x7E
71 #define CD1400_PPR_PRESCALER 512
72
73
74
75
76 #define CD1400_RIVR 0x43
77 #define CD1400_RIVR_EXCEPTION (1<<2)
78 #define CD1400_TIVR 0x42
79 #define CD1400_MIVR 0x41
80 #define CD1400_TDR 0x63
81 #define CD1400_RDSR 0x62
82 #define CD1400_RDSR_TIMEOUT (1<<7)
83 #define CD1400_RDSR_SPECIAL_SHIFT 4
84 #define CD1400_RDSR_SPECIAL (7<<4)
85 #define CD1400_RDSR_BREAK (1<<3)
86 #define CD1400_RDSR_PE (1<<2)
87 #define CD1400_RDSR_FE (1<<1)
88 #define CD1400_RDSR_OE (1<<0)
89 #define CD1400_MISR 0x4C
90 #define CD1400_MISR_DSRd (1<<7)
91 #define CD1400_MISR_CTSd (1<<6)
92 #define CD1400_MISR_RId (1<<5)
93 #define CD1400_MISR_CDd (1<<4)
94 #define CD1400_EOSRR 0x60
95
96
97
98
99 #define CD1400_LIVR 0x18
100 #define CD1400_CCR 0x05
101 #define CD1400_CCR_CMDRESET (1<<7)
102 #define CD1400_CCR_FTF (1<<1)
103 #define CD1400_CCR_FULLRESET (1<<0)
104 #define CD1400_CCR_CMDCORCHG (1<<6)
105 #define CD1400_CCR_COR3 (1<<3)
106 #define CD1400_CCR_COR2 (1<<2)
107 #define CD1400_CCR_COR1 (1<<1)
108 #define CD1400_CCR_CMDSENDSC (1<<5)
109 #define CD1400_CCR_SC (7<<0)
110 #define CD1400_CCR_CMDCHANCTL (1<<4)
111 #define CD1400_CCR_XMTEN (1<<3)
112 #define CD1400_CCR_XMTDIS (1<<2)
113 #define CD1400_CCR_RCVEN (1<<1)
114 #define CD1400_CCR_RCVDIS (1<<0)
115 #define CD1400_SRER 0x06
116 #define CD1400_SRER_MDMCH (1<<7)
117 #define CD1400_SRER_RXDATA (1<<4)
118 #define CD1400_SRER_TXRDY (1<<2)
119 #define CD1400_SRER_TXMPTY (1<<1)
120 #define CD1400_SRER_NNDT (1<<0)
121 #define CD1400_COR1 0x08
122 #define CD1400_COR1_PARODD (1<<7)
123 #define CD1400_COR1_PARNORMAL (2<<5)
124 #define CD1400_COR1_PARFORCE (1<<5)
125 #define CD1400_COR1_PARNONE (0<<5)
126 #define CD1400_COR1_NOINPCK (1<<4)
127 #define CD1400_COR1_STOP2 (2<<2)
128 #define CD1400_COR1_STOP15 (1<<2)
129 #define CD1400_COR1_STOP1 (0<<2)
130 #define CD1400_COR1_CS8 (3<<0)
131 #define CD1400_COR1_CS7 (2<<0)
132 #define CD1400_COR1_CS6 (1<<0)
133 #define CD1400_COR1_CS5 (0<<0)
134 #define CD1400_COR2 0x09
135 #define CD1400_COR2_IXANY (1<<7)
136 #define CD1400_COR2_IXOFF (1<<6)
137 #define CD1400_COR2_ETC (1<<5)
138 #define CD1400_COR2_LLM (1<<4)
139 #define CD1400_COR2_RLM (1<<3)
140 #define CD1400_COR2_RTSAO (1<<2)
141 #define CD1400_COR2_CCTS_OFLOW (1<<1)
142 #define CD1400_COR2_CDSR_OFLOW (1<<0)
143 #define CD1400_COR3 0x0A
144 #define CD1400_COR3_SCDRNG (1<<7)
145 #define CD1400_COR3_SCD34 (1<<6)
146 #define CD1400_COR3_FTC (1<<5)
147 #define CD1400_COR3_SCD12 (1<<4)
148 #define CD1400_COR3_RXTH (15<<0)
149 #define CD1400_COR4 0x1E
150 #define CD1400_COR4_IGNCR (1<<7)
151 #define CD1400_COR4_ICRNL (1<<6)
152 #define CD1400_COR4_INLCR (1<<5)
153 #define CD1400_COR4_IGNBRK (1<<4)
154 #define CD1400_COR4_NOBRKINT (1<<3)
155 #define CD1400_COR4_PFO_ESC (4<<0)
156 #define CD1400_COR4_PFO_NUL (3<<0)
157 #define CD1400_COR4_PFO_DISCARD (2<<0)
158 #define CD1400_COR4_PFO_GOOD (1<<0)
159 #define CD1400_COR4_PFO_EXCEPTION (0<<0)
160 #define CD1400_COR5 0x1F
161 #define CD1400_COR5_ISTRIP (1<<7)
162 #define CD1400_COR5_LNEXT (1<<6)
163 #define CD1400_COR5_CMOE (1<<5)
164 #define CD1400_COR5_EBD (1<<2)
165 #define CD1400_COR5_ONLCR (1<<1)
166 #define CD1400_COR5_OCRNL (1<<0)
167 #define CD1400_CCSR 0x0B
168 #define CD1400_RDCR 0x0E
169 #define CD1400_SCHR1 0x1A
170 #define CD1400_SCHR2 0x1B
171 #define CD1400_SCHR3 0x1C
172 #define CD1400_SCHR4 0x1D
173 #define CD1400_SCRL 0x22
174 #define CD1400_SCRH 0x23
175 #define CD1400_LNC 0x24
176 #define CD1400_MCOR1 0x15
177 #define CD1400_MCOR1_DSRzd (1<<7)
178 #define CD1400_MCOR1_CTSzd (1<<6)
179 #define CD1400_MCOR1_RIzd (1<<5)
180 #define CD1400_MCOR1_CDzd (1<<4)
181 #define CD1400_MCOR1_DTRth (15<<0)
182 #define CD1400_MCOR2 0x16
183 #define CD1400_MCOR2_DSRod (1<<7)
184 #define CD1400_MCOR2_CTSod (1<<6)
185 #define CD1400_MCOR2_RIod (1<<5)
186 #define CD1400_MCOR2_CDod (1<<4)
187 #define CD1400_RTPR 0x21
188 #define CD1400_MSVR1 0x6C
189 #define CD1400_MSVR1_RTS (1<<0)
190 #define CD1400_MSVR2 0x6D
191 #define CD1400_MSVR2_DSR (1<<7)
192 #define CD1400_MSVR2_CTS (1<<6)
193 #define CD1400_MSVR2_RI (1<<5)
194 #define CD1400_MSVR2_CD (1<<4)
195 #define CD1400_MSVR2_DTR (1<<1)
196 #define CD1400_PSVR 0x6F
197 #define CD1400_RBPR 0x78
198 #define CD1400_RCOR 0x7C
199 #define CD1400_TBPR 0x72
200 #define CD1400_TCOR 0x76