summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/x1000/uart.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-05-29 16:34:32 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-05-29 16:34:32 +0100
commitf64e8dc33c83e41f5ce3917ba1c88bcfbbb6a3bf (patch)
tree7b919f493c0dc5263d7c2c91894fc26bc0503b30 /firmware/target/mips/ingenic_x1000/x1000/uart.h
parent8056b7fd1a333fe4d0c7ed8d3de0caf702f89164 (diff)
downloadrockbox-f64e8dc33c83e41f5ce3917ba1c88bcfbbb6a3bf.tar.gz
rockbox-f64e8dc33c83e41f5ce3917ba1c88bcfbbb6a3bf.zip
x1000: Complete the register definitions
I think this covers everything now, although some fields are missing enum values. Those can be added in if and when they are needed. Change-Id: Ib1a94ba9c9a5949b6a038f8c1a49786823fae58f
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/x1000/uart.h')
-rw-r--r--firmware/target/mips/ingenic_x1000/x1000/uart.h390
1 files changed, 390 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/x1000/uart.h b/firmware/target/mips/ingenic_x1000/x1000/uart.h
new file mode 100644
index 0000000000..6b42740bb7
--- /dev/null
+++ b/firmware/target/mips/ingenic_x1000/x1000/uart.h
@@ -0,0 +1,390 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * This file was automatically generated by headergen, DO NOT EDIT it.
9 * headergen version: 3.0.0
10 * x1000 version: 1.0
11 * x1000 authors: Aidan MacDonald
12 *
13 * Copyright (C) 2015 by the authors
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 ****************************************************************************/
24#ifndef __HEADERGEN_UART_H__
25#define __HEADERGEN_UART_H__
26
27#include "macro.h"
28
29#define REG_UART_URBR(_n1) jz_reg(UART_URBR(_n1))
30#define JA_UART_URBR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x0)
31#define JT_UART_URBR(_n1) JIO_32_RW
32#define JN_UART_URBR(_n1) UART_URBR
33#define JI_UART_URBR(_n1) (_n1)
34
35#define REG_UART_UTHR(_n1) jz_reg(UART_UTHR(_n1))
36#define JA_UART_UTHR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x0)
37#define JT_UART_UTHR(_n1) JIO_32_RW
38#define JN_UART_UTHR(_n1) UART_UTHR
39#define JI_UART_UTHR(_n1) (_n1)
40
41#define REG_UART_UDLLR(_n1) jz_reg(UART_UDLLR(_n1))
42#define JA_UART_UDLLR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x0)
43#define JT_UART_UDLLR(_n1) JIO_32_RW
44#define JN_UART_UDLLR(_n1) UART_UDLLR
45#define JI_UART_UDLLR(_n1) (_n1)
46
47#define REG_UART_UDLHR(_n1) jz_reg(UART_UDLHR(_n1))
48#define JA_UART_UDLHR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x4)
49#define JT_UART_UDLHR(_n1) JIO_32_RW
50#define JN_UART_UDLHR(_n1) UART_UDLHR
51#define JI_UART_UDLHR(_n1) (_n1)
52
53#define REG_UART_UIER(_n1) jz_reg(UART_UIER(_n1))
54#define JA_UART_UIER(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x4)
55#define JT_UART_UIER(_n1) JIO_32_RW
56#define JN_UART_UIER(_n1) UART_UIER
57#define JI_UART_UIER(_n1) (_n1)
58#define BP_UART_UIER_RTOIE 4
59#define BM_UART_UIER_RTOIE 0x10
60#define BF_UART_UIER_RTOIE(v) (((v) & 0x1) << 4)
61#define BFM_UART_UIER_RTOIE(v) BM_UART_UIER_RTOIE
62#define BF_UART_UIER_RTOIE_V(e) BF_UART_UIER_RTOIE(BV_UART_UIER_RTOIE__##e)
63#define BFM_UART_UIER_RTOIE_V(v) BM_UART_UIER_RTOIE
64#define BP_UART_UIER_MSIE 3
65#define BM_UART_UIER_MSIE 0x8
66#define BF_UART_UIER_MSIE(v) (((v) & 0x1) << 3)
67#define BFM_UART_UIER_MSIE(v) BM_UART_UIER_MSIE
68#define BF_UART_UIER_MSIE_V(e) BF_UART_UIER_MSIE(BV_UART_UIER_MSIE__##e)
69#define BFM_UART_UIER_MSIE_V(v) BM_UART_UIER_MSIE
70#define BP_UART_UIER_RLSIE 2
71#define BM_UART_UIER_RLSIE 0x4
72#define BF_UART_UIER_RLSIE(v) (((v) & 0x1) << 2)
73#define BFM_UART_UIER_RLSIE(v) BM_UART_UIER_RLSIE
74#define BF_UART_UIER_RLSIE_V(e) BF_UART_UIER_RLSIE(BV_UART_UIER_RLSIE__##e)
75#define BFM_UART_UIER_RLSIE_V(v) BM_UART_UIER_RLSIE
76#define BP_UART_UIER_TDRIE 1
77#define BM_UART_UIER_TDRIE 0x2
78#define BF_UART_UIER_TDRIE(v) (((v) & 0x1) << 1)
79#define BFM_UART_UIER_TDRIE(v) BM_UART_UIER_TDRIE
80#define BF_UART_UIER_TDRIE_V(e) BF_UART_UIER_TDRIE(BV_UART_UIER_TDRIE__##e)
81#define BFM_UART_UIER_TDRIE_V(v) BM_UART_UIER_TDRIE
82#define BP_UART_UIER_RDRIE 0
83#define BM_UART_UIER_RDRIE 0x1
84#define BF_UART_UIER_RDRIE(v) (((v) & 0x1) << 0)
85#define BFM_UART_UIER_RDRIE(v) BM_UART_UIER_RDRIE
86#define BF_UART_UIER_RDRIE_V(e) BF_UART_UIER_RDRIE(BV_UART_UIER_RDRIE__##e)
87#define BFM_UART_UIER_RDRIE_V(v) BM_UART_UIER_RDRIE
88
89#define REG_UART_UIIR(_n1) jz_reg(UART_UIIR(_n1))
90#define JA_UART_UIIR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x8)
91#define JT_UART_UIIR(_n1) JIO_32_RW
92#define JN_UART_UIIR(_n1) UART_UIIR
93#define JI_UART_UIIR(_n1) (_n1)
94#define BP_UART_UIIR_FFMSEL 6
95#define BM_UART_UIIR_FFMSEL 0xc0
96#define BV_UART_UIIR_FFMSEL__NON_FIFO_MODE 0x0
97#define BV_UART_UIIR_FFMSEL__FIFO_MODE 0x1
98#define BF_UART_UIIR_FFMSEL(v) (((v) & 0x3) << 6)
99#define BFM_UART_UIIR_FFMSEL(v) BM_UART_UIIR_FFMSEL
100#define BF_UART_UIIR_FFMSEL_V(e) BF_UART_UIIR_FFMSEL(BV_UART_UIIR_FFMSEL__##e)
101#define BFM_UART_UIIR_FFMSEL_V(v) BM_UART_UIIR_FFMSEL
102#define BP_UART_UIIR_INID 1
103#define BM_UART_UIIR_INID 0xe
104#define BV_UART_UIIR_INID__MODEM_STATUS 0x0
105#define BV_UART_UIIR_INID__TRANSMIT_DATA_REQ 0x1
106#define BV_UART_UIIR_INID__RECEIVE_DATA_READY 0x2
107#define BV_UART_UIIR_INID__RECEIVE_LINE_STATUS 0x3
108#define BV_UART_UIIR_INID__RECEIVE_TIME_OUT 0x6
109#define BF_UART_UIIR_INID(v) (((v) & 0x7) << 1)
110#define BFM_UART_UIIR_INID(v) BM_UART_UIIR_INID
111#define BF_UART_UIIR_INID_V(e) BF_UART_UIIR_INID(BV_UART_UIIR_INID__##e)
112#define BFM_UART_UIIR_INID_V(v) BM_UART_UIIR_INID
113#define BP_UART_UIIR_INPEND 0
114#define BM_UART_UIIR_INPEND 0x1
115#define BF_UART_UIIR_INPEND(v) (((v) & 0x1) << 0)
116#define BFM_UART_UIIR_INPEND(v) BM_UART_UIIR_INPEND
117#define BF_UART_UIIR_INPEND_V(e) BF_UART_UIIR_INPEND(BV_UART_UIIR_INPEND__##e)
118#define BFM_UART_UIIR_INPEND_V(v) BM_UART_UIIR_INPEND
119
120#define REG_UART_UFCR(_n1) jz_reg(UART_UFCR(_n1))
121#define JA_UART_UFCR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x8)
122#define JT_UART_UFCR(_n1) JIO_32_RW
123#define JN_UART_UFCR(_n1) UART_UFCR
124#define JI_UART_UFCR(_n1) (_n1)
125#define BP_UART_UFCR_RDTR 6
126#define BM_UART_UFCR_RDTR 0xc0
127#define BV_UART_UFCR_RDTR__1BYTE 0x0
128#define BV_UART_UFCR_RDTR__16BYTE 0x1
129#define BV_UART_UFCR_RDTR__32BYTE 0x2
130#define BV_UART_UFCR_RDTR__60BYTE 0x3
131#define BF_UART_UFCR_RDTR(v) (((v) & 0x3) << 6)
132#define BFM_UART_UFCR_RDTR(v) BM_UART_UFCR_RDTR
133#define BF_UART_UFCR_RDTR_V(e) BF_UART_UFCR_RDTR(BV_UART_UFCR_RDTR__##e)
134#define BFM_UART_UFCR_RDTR_V(v) BM_UART_UFCR_RDTR
135#define BP_UART_UFCR_UME 4
136#define BM_UART_UFCR_UME 0x10
137#define BF_UART_UFCR_UME(v) (((v) & 0x1) << 4)
138#define BFM_UART_UFCR_UME(v) BM_UART_UFCR_UME
139#define BF_UART_UFCR_UME_V(e) BF_UART_UFCR_UME(BV_UART_UFCR_UME__##e)
140#define BFM_UART_UFCR_UME_V(v) BM_UART_UFCR_UME
141#define BP_UART_UFCR_DME 3
142#define BM_UART_UFCR_DME 0x8
143#define BF_UART_UFCR_DME(v) (((v) & 0x1) << 3)
144#define BFM_UART_UFCR_DME(v) BM_UART_UFCR_DME
145#define BF_UART_UFCR_DME_V(e) BF_UART_UFCR_DME(BV_UART_UFCR_DME__##e)
146#define BFM_UART_UFCR_DME_V(v) BM_UART_UFCR_DME
147#define BP_UART_UFCR_TFRT 2
148#define BM_UART_UFCR_TFRT 0x4
149#define BF_UART_UFCR_TFRT(v) (((v) & 0x1) << 2)
150#define BFM_UART_UFCR_TFRT(v) BM_UART_UFCR_TFRT
151#define BF_UART_UFCR_TFRT_V(e) BF_UART_UFCR_TFRT(BV_UART_UFCR_TFRT__##e)
152#define BFM_UART_UFCR_TFRT_V(v) BM_UART_UFCR_TFRT
153#define BP_UART_UFCR_RFRT 1
154#define BM_UART_UFCR_RFRT 0x2
155#define BF_UART_UFCR_RFRT(v) (((v) & 0x1) << 1)
156#define BFM_UART_UFCR_RFRT(v) BM_UART_UFCR_RFRT
157#define BF_UART_UFCR_RFRT_V(e) BF_UART_UFCR_RFRT(BV_UART_UFCR_RFRT__##e)
158#define BFM_UART_UFCR_RFRT_V(v) BM_UART_UFCR_RFRT
159#define BP_UART_UFCR_FME 0
160#define BM_UART_UFCR_FME 0x1
161#define BF_UART_UFCR_FME(v) (((v) & 0x1) << 0)
162#define BFM_UART_UFCR_FME(v) BM_UART_UFCR_FME
163#define BF_UART_UFCR_FME_V(e) BF_UART_UFCR_FME(BV_UART_UFCR_FME__##e)
164#define BFM_UART_UFCR_FME_V(v) BM_UART_UFCR_FME
165
166#define REG_UART_ULCR(_n1) jz_reg(UART_ULCR(_n1))
167#define JA_UART_ULCR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0xc)
168#define JT_UART_ULCR(_n1) JIO_32_RW
169#define JN_UART_ULCR(_n1) UART_ULCR
170#define JI_UART_ULCR(_n1) (_n1)
171#define BP_UART_ULCR_WLS 0
172#define BM_UART_ULCR_WLS 0x3
173#define BV_UART_ULCR_WLS__5BITS 0x0
174#define BV_UART_ULCR_WLS__6BITS 0x1
175#define BV_UART_ULCR_WLS__7BITS 0x2
176#define BV_UART_ULCR_WLS__8BITS 0x3
177#define BF_UART_ULCR_WLS(v) (((v) & 0x3) << 0)
178#define BFM_UART_ULCR_WLS(v) BM_UART_ULCR_WLS
179#define BF_UART_ULCR_WLS_V(e) BF_UART_ULCR_WLS(BV_UART_ULCR_WLS__##e)
180#define BFM_UART_ULCR_WLS_V(v) BM_UART_ULCR_WLS
181#define BP_UART_ULCR_DLAB 7
182#define BM_UART_ULCR_DLAB 0x80
183#define BF_UART_ULCR_DLAB(v) (((v) & 0x1) << 7)
184#define BFM_UART_ULCR_DLAB(v) BM_UART_ULCR_DLAB
185#define BF_UART_ULCR_DLAB_V(e) BF_UART_ULCR_DLAB(BV_UART_ULCR_DLAB__##e)
186#define BFM_UART_ULCR_DLAB_V(v) BM_UART_ULCR_DLAB
187#define BP_UART_ULCR_SBK 6
188#define BM_UART_ULCR_SBK 0x40
189#define BF_UART_ULCR_SBK(v) (((v) & 0x1) << 6)
190#define BFM_UART_ULCR_SBK(v) BM_UART_ULCR_SBK
191#define BF_UART_ULCR_SBK_V(e) BF_UART_ULCR_SBK(BV_UART_ULCR_SBK__##e)
192#define BFM_UART_ULCR_SBK_V(v) BM_UART_ULCR_SBK
193#define BP_UART_ULCR_STPAR 5
194#define BM_UART_ULCR_STPAR 0x20
195#define BF_UART_ULCR_STPAR(v) (((v) & 0x1) << 5)
196#define BFM_UART_ULCR_STPAR(v) BM_UART_ULCR_STPAR
197#define BF_UART_ULCR_STPAR_V(e) BF_UART_ULCR_STPAR(BV_UART_ULCR_STPAR__##e)
198#define BFM_UART_ULCR_STPAR_V(v) BM_UART_ULCR_STPAR
199#define BP_UART_ULCR_PARM 4
200#define BM_UART_ULCR_PARM 0x10
201#define BV_UART_ULCR_PARM__ODD 0x0
202#define BV_UART_ULCR_PARM__EVEN 0x1
203#define BF_UART_ULCR_PARM(v) (((v) & 0x1) << 4)
204#define BFM_UART_ULCR_PARM(v) BM_UART_ULCR_PARM
205#define BF_UART_ULCR_PARM_V(e) BF_UART_ULCR_PARM(BV_UART_ULCR_PARM__##e)
206#define BFM_UART_ULCR_PARM_V(v) BM_UART_ULCR_PARM
207#define BP_UART_ULCR_PARE 3
208#define BM_UART_ULCR_PARE 0x8
209#define BF_UART_ULCR_PARE(v) (((v) & 0x1) << 3)
210#define BFM_UART_ULCR_PARE(v) BM_UART_ULCR_PARE
211#define BF_UART_ULCR_PARE_V(e) BF_UART_ULCR_PARE(BV_UART_ULCR_PARE__##e)
212#define BFM_UART_ULCR_PARE_V(v) BM_UART_ULCR_PARE
213#define BP_UART_ULCR_SBLS 2
214#define BM_UART_ULCR_SBLS 0x4
215#define BV_UART_ULCR_SBLS__1_STOP_BIT 0x0
216#define BV_UART_ULCR_SBLS__2_STOP_BITS 0x1
217#define BF_UART_ULCR_SBLS(v) (((v) & 0x1) << 2)
218#define BFM_UART_ULCR_SBLS(v) BM_UART_ULCR_SBLS
219#define BF_UART_ULCR_SBLS_V(e) BF_UART_ULCR_SBLS(BV_UART_ULCR_SBLS__##e)
220#define BFM_UART_ULCR_SBLS_V(v) BM_UART_ULCR_SBLS
221
222#define REG_UART_UMCR(_n1) jz_reg(UART_UMCR(_n1))
223#define JA_UART_UMCR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x10)
224#define JT_UART_UMCR(_n1) JIO_32_RW
225#define JN_UART_UMCR(_n1) UART_UMCR
226#define JI_UART_UMCR(_n1) (_n1)
227#define BP_UART_UMCR_MDCE 7
228#define BM_UART_UMCR_MDCE 0x80
229#define BF_UART_UMCR_MDCE(v) (((v) & 0x1) << 7)
230#define BFM_UART_UMCR_MDCE(v) BM_UART_UMCR_MDCE
231#define BF_UART_UMCR_MDCE_V(e) BF_UART_UMCR_MDCE(BV_UART_UMCR_MDCE__##e)
232#define BFM_UART_UMCR_MDCE_V(v) BM_UART_UMCR_MDCE
233#define BP_UART_UMCR_FCM 6
234#define BM_UART_UMCR_FCM 0x40
235#define BF_UART_UMCR_FCM(v) (((v) & 0x1) << 6)
236#define BFM_UART_UMCR_FCM(v) BM_UART_UMCR_FCM
237#define BF_UART_UMCR_FCM_V(e) BF_UART_UMCR_FCM(BV_UART_UMCR_FCM__##e)
238#define BFM_UART_UMCR_FCM_V(v) BM_UART_UMCR_FCM
239#define BP_UART_UMCR_LOOP 4
240#define BM_UART_UMCR_LOOP 0x10
241#define BF_UART_UMCR_LOOP(v) (((v) & 0x1) << 4)
242#define BFM_UART_UMCR_LOOP(v) BM_UART_UMCR_LOOP
243#define BF_UART_UMCR_LOOP_V(e) BF_UART_UMCR_LOOP(BV_UART_UMCR_LOOP__##e)
244#define BFM_UART_UMCR_LOOP_V(v) BM_UART_UMCR_LOOP
245#define BP_UART_UMCR_RTS 1
246#define BM_UART_UMCR_RTS 0x2
247#define BF_UART_UMCR_RTS(v) (((v) & 0x1) << 1)
248#define BFM_UART_UMCR_RTS(v) BM_UART_UMCR_RTS
249#define BF_UART_UMCR_RTS_V(e) BF_UART_UMCR_RTS(BV_UART_UMCR_RTS__##e)
250#define BFM_UART_UMCR_RTS_V(v) BM_UART_UMCR_RTS
251
252#define REG_UART_ULSR(_n1) jz_reg(UART_ULSR(_n1))
253#define JA_UART_ULSR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x14)
254#define JT_UART_ULSR(_n1) JIO_32_RW
255#define JN_UART_ULSR(_n1) UART_ULSR
256#define JI_UART_ULSR(_n1) (_n1)
257#define BP_UART_ULSR_FIFOE 7
258#define BM_UART_ULSR_FIFOE 0x80
259#define BF_UART_ULSR_FIFOE(v) (((v) & 0x1) << 7)
260#define BFM_UART_ULSR_FIFOE(v) BM_UART_ULSR_FIFOE
261#define BF_UART_ULSR_FIFOE_V(e) BF_UART_ULSR_FIFOE(BV_UART_ULSR_FIFOE__##e)
262#define BFM_UART_ULSR_FIFOE_V(v) BM_UART_ULSR_FIFOE
263#define BP_UART_ULSR_TEMP 6
264#define BM_UART_ULSR_TEMP 0x40
265#define BF_UART_ULSR_TEMP(v) (((v) & 0x1) << 6)
266#define BFM_UART_ULSR_TEMP(v) BM_UART_ULSR_TEMP
267#define BF_UART_ULSR_TEMP_V(e) BF_UART_ULSR_TEMP(BV_UART_ULSR_TEMP__##e)
268#define BFM_UART_ULSR_TEMP_V(v) BM_UART_ULSR_TEMP
269#define BP_UART_ULSR_TDRQ 5
270#define BM_UART_ULSR_TDRQ 0x20
271#define BF_UART_ULSR_TDRQ(v) (((v) & 0x1) << 5)
272#define BFM_UART_ULSR_TDRQ(v) BM_UART_ULSR_TDRQ
273#define BF_UART_ULSR_TDRQ_V(e) BF_UART_ULSR_TDRQ(BV_UART_ULSR_TDRQ__##e)
274#define BFM_UART_ULSR_TDRQ_V(v) BM_UART_ULSR_TDRQ
275#define BP_UART_ULSR_BI 4
276#define BM_UART_ULSR_BI 0x10
277#define BF_UART_ULSR_BI(v) (((v) & 0x1) << 4)
278#define BFM_UART_ULSR_BI(v) BM_UART_ULSR_BI
279#define BF_UART_ULSR_BI_V(e) BF_UART_ULSR_BI(BV_UART_ULSR_BI__##e)
280#define BFM_UART_ULSR_BI_V(v) BM_UART_ULSR_BI
281#define BP_UART_ULSR_FMER 3
282#define BM_UART_ULSR_FMER 0x8
283#define BF_UART_ULSR_FMER(v) (((v) & 0x1) << 3)
284#define BFM_UART_ULSR_FMER(v) BM_UART_ULSR_FMER
285#define BF_UART_ULSR_FMER_V(e) BF_UART_ULSR_FMER(BV_UART_ULSR_FMER__##e)
286#define BFM_UART_ULSR_FMER_V(v) BM_UART_ULSR_FMER
287#define BP_UART_ULSR_PARER 2
288#define BM_UART_ULSR_PARER 0x4
289#define BF_UART_ULSR_PARER(v) (((v) & 0x1) << 2)
290#define BFM_UART_ULSR_PARER(v) BM_UART_ULSR_PARER
291#define BF_UART_ULSR_PARER_V(e) BF_UART_ULSR_PARER(BV_UART_ULSR_PARER__##e)
292#define BFM_UART_ULSR_PARER_V(v) BM_UART_ULSR_PARER
293#define BP_UART_ULSR_OVER 1
294#define BM_UART_ULSR_OVER 0x2
295#define BF_UART_ULSR_OVER(v) (((v) & 0x1) << 1)
296#define BFM_UART_ULSR_OVER(v) BM_UART_ULSR_OVER
297#define BF_UART_ULSR_OVER_V(e) BF_UART_ULSR_OVER(BV_UART_ULSR_OVER__##e)
298#define BFM_UART_ULSR_OVER_V(v) BM_UART_ULSR_OVER
299#define BP_UART_ULSR_DRY 0
300#define BM_UART_ULSR_DRY 0x1
301#define BF_UART_ULSR_DRY(v) (((v) & 0x1) << 0)
302#define BFM_UART_ULSR_DRY(v) BM_UART_ULSR_DRY
303#define BF_UART_ULSR_DRY_V(e) BF_UART_ULSR_DRY(BV_UART_ULSR_DRY__##e)
304#define BFM_UART_ULSR_DRY_V(v) BM_UART_ULSR_DRY
305
306#define REG_UART_UMSR(_n1) jz_reg(UART_UMSR(_n1))
307#define JA_UART_UMSR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x18)
308#define JT_UART_UMSR(_n1) JIO_32_RW
309#define JN_UART_UMSR(_n1) UART_UMSR
310#define JI_UART_UMSR(_n1) (_n1)
311#define BP_UART_UMSR_CTS 4
312#define BM_UART_UMSR_CTS 0x10
313#define BF_UART_UMSR_CTS(v) (((v) & 0x1) << 4)
314#define BFM_UART_UMSR_CTS(v) BM_UART_UMSR_CTS
315#define BF_UART_UMSR_CTS_V(e) BF_UART_UMSR_CTS(BV_UART_UMSR_CTS__##e)
316#define BFM_UART_UMSR_CTS_V(v) BM_UART_UMSR_CTS
317#define BP_UART_UMSR_CCTS 0
318#define BM_UART_UMSR_CCTS 0x1
319#define BF_UART_UMSR_CCTS(v) (((v) & 0x1) << 0)
320#define BFM_UART_UMSR_CCTS(v) BM_UART_UMSR_CCTS
321#define BF_UART_UMSR_CCTS_V(e) BF_UART_UMSR_CCTS(BV_UART_UMSR_CCTS__##e)
322#define BFM_UART_UMSR_CCTS_V(v) BM_UART_UMSR_CCTS
323
324#define REG_UART_USPR(_n1) jz_reg(UART_USPR(_n1))
325#define JA_UART_USPR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x1c)
326#define JT_UART_USPR(_n1) JIO_32_RW
327#define JN_UART_USPR(_n1) UART_USPR
328#define JI_UART_USPR(_n1) (_n1)
329
330#define REG_UART_ISR(_n1) jz_reg(UART_ISR(_n1))
331#define JA_UART_ISR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x20)
332#define JT_UART_ISR(_n1) JIO_32_RW
333#define JN_UART_ISR(_n1) UART_ISR
334#define JI_UART_ISR(_n1) (_n1)
335#define BP_UART_ISR_RDPL 4
336#define BM_UART_ISR_RDPL 0x10
337#define BF_UART_ISR_RDPL(v) (((v) & 0x1) << 4)
338#define BFM_UART_ISR_RDPL(v) BM_UART_ISR_RDPL
339#define BF_UART_ISR_RDPL_V(e) BF_UART_ISR_RDPL(BV_UART_ISR_RDPL__##e)
340#define BFM_UART_ISR_RDPL_V(v) BM_UART_ISR_RDPL
341#define BP_UART_ISR_TDPL 3
342#define BM_UART_ISR_TDPL 0x8
343#define BF_UART_ISR_TDPL(v) (((v) & 0x1) << 3)
344#define BFM_UART_ISR_TDPL(v) BM_UART_ISR_TDPL
345#define BF_UART_ISR_TDPL_V(e) BF_UART_ISR_TDPL(BV_UART_ISR_TDPL__##e)
346#define BFM_UART_ISR_TDPL_V(v) BM_UART_ISR_TDPL
347#define BP_UART_ISR_XMODE 2
348#define BM_UART_ISR_XMODE 0x4
349#define BF_UART_ISR_XMODE(v) (((v) & 0x1) << 2)
350#define BFM_UART_ISR_XMODE(v) BM_UART_ISR_XMODE
351#define BF_UART_ISR_XMODE_V(e) BF_UART_ISR_XMODE(BV_UART_ISR_XMODE__##e)
352#define BFM_UART_ISR_XMODE_V(v) BM_UART_ISR_XMODE
353#define BP_UART_ISR_RCVEIR 1
354#define BM_UART_ISR_RCVEIR 0x2
355#define BF_UART_ISR_RCVEIR(v) (((v) & 0x1) << 1)
356#define BFM_UART_ISR_RCVEIR(v) BM_UART_ISR_RCVEIR
357#define BF_UART_ISR_RCVEIR_V(e) BF_UART_ISR_RCVEIR(BV_UART_ISR_RCVEIR__##e)
358#define BFM_UART_ISR_RCVEIR_V(v) BM_UART_ISR_RCVEIR
359#define BP_UART_ISR_XMITIR 0
360#define BM_UART_ISR_XMITIR 0x1
361#define BF_UART_ISR_XMITIR(v) (((v) & 0x1) << 0)
362#define BFM_UART_ISR_XMITIR(v) BM_UART_ISR_XMITIR
363#define BF_UART_ISR_XMITIR_V(e) BF_UART_ISR_XMITIR(BV_UART_ISR_XMITIR__##e)
364#define BFM_UART_ISR_XMITIR_V(v) BM_UART_ISR_XMITIR
365
366#define REG_UART_UMR(_n1) jz_reg(UART_UMR(_n1))
367#define JA_UART_UMR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x24)
368#define JT_UART_UMR(_n1) JIO_32_RW
369#define JN_UART_UMR(_n1) UART_UMR
370#define JI_UART_UMR(_n1) (_n1)
371
372#define REG_UART_UACR(_n1) jz_reg(UART_UACR(_n1))
373#define JA_UART_UACR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x28)
374#define JT_UART_UACR(_n1) JIO_32_RW
375#define JN_UART_UACR(_n1) UART_UACR
376#define JI_UART_UACR(_n1) (_n1)
377
378#define REG_UART_URCR(_n1) jz_reg(UART_URCR(_n1))
379#define JA_UART_URCR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x40)
380#define JT_UART_URCR(_n1) JIO_32_RW
381#define JN_UART_URCR(_n1) UART_URCR
382#define JI_UART_URCR(_n1) (_n1)
383
384#define REG_UART_UTCR(_n1) jz_reg(UART_UTCR(_n1))
385#define JA_UART_UTCR(_n1) (0xb0030000 + (_n1) * 0x1000 + 0x44)
386#define JT_UART_UTCR(_n1) JIO_32_RW
387#define JN_UART_UTCR(_n1) UART_UTCR
388#define JI_UART_UTCR(_n1) (_n1)
389
390#endif /* __HEADERGEN_UART_H__*/