[IPV4]: Clean the ip_sockglue.c from some ugly ifdefs
[linux-2.6] / include / asm-blackfin / mach-bf548 / cdefBF54x_base.h
1 /*
2  * File:         include/asm-blackfin/mach-bf548/cdefBF54x_base.h
3  * Based on:
4  * Author:
5  *
6  * Created:
7  * Description:
8  *
9  * Rev:
10  *
11  * Modified:
12  *
13  * Bugs:         Enter bugs at http://blackfin.uclinux.org/
14  *
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 2, or (at your option)
18  * any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with this program; see the file COPYING.
27  * If not, write to the Free Software Foundation,
28  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29  */
30
31 #ifndef _CDEF_BF54X_H
32 #define _CDEF_BF54X_H
33
34 #include <asm/blackfin.h>
35
36 #include "defBF54x_base.h"
37 #include <asm/system.h>
38
39 /* ************************************************************** */
40 /* SYSTEM & MMR ADDRESS DEFINITIONS COMMON TO ALL ADSP-BF54x    */
41 /* ************************************************************** */
42
43 /* PLL Registers */
44
45 #define bfin_read_PLL_CTL()             bfin_read16(PLL_CTL)
46 #define bfin_write_PLL_CTL(val)         bfin_write16(PLL_CTL, val)
47 #define bfin_read_PLL_DIV()             bfin_read16(PLL_DIV)
48 #define bfin_write_PLL_DIV(val)         bfin_write16(PLL_DIV, val)
49 #define bfin_read_VR_CTL()              bfin_read16(VR_CTL)
50 /* Writing to VR_CTL initiates a PLL relock sequence. */
51 static __inline__ void bfin_write_VR_CTL(unsigned int val)
52 {
53         unsigned long flags, iwr0, iwr1, iwr2;
54
55         /* Enable the PLL Wakeup bit in SIC IWR */
56         iwr0 = bfin_read32(SIC_IWR0);
57         iwr1 = bfin_read32(SIC_IWR1);
58         iwr2 = bfin_read32(SIC_IWR2);
59         /* Only allow PPL Wakeup) */
60         bfin_write32(SIC_IWR0, IWR_ENABLE(0));
61         bfin_write32(SIC_IWR1, 0);
62         bfin_write32(SIC_IWR2, 0);
63
64         bfin_write16(VR_CTL, val);
65         SSYNC();
66
67         local_irq_save(flags);
68         asm("IDLE;");
69         local_irq_restore(flags);
70         bfin_write32(SIC_IWR0, iwr0);
71         bfin_write32(SIC_IWR1, iwr1);
72         bfin_write32(SIC_IWR2, iwr2);
73 }
74 #define bfin_read_PLL_STAT()            bfin_read16(PLL_STAT)
75 #define bfin_write_PLL_STAT(val)        bfin_write16(PLL_STAT, val)
76 #define bfin_read_PLL_LOCKCNT()         bfin_read16(PLL_LOCKCNT)
77 #define bfin_write_PLL_LOCKCNT(val)     bfin_write16(PLL_LOCKCNT, val)
78
79 /* Debug/MP/Emulation Registers (0xFFC00014 - 0xFFC00014) */
80
81 #define bfin_read_CHIPID()              bfin_read32(CHIPID)
82 #define bfin_write_CHIPID(val)          bfin_write32(CHIPID, val)
83
84 /* System Reset and Interrubfin_read_()t Controller (0xFFC00100 - 0xFFC00104) */
85
86 #define bfin_read_SWRST()               bfin_read16(SWRST)
87 #define bfin_write_SWRST(val)           bfin_write16(SWRST, val)
88 #define bfin_read_SYSCR()               bfin_read16(SYSCR)
89 #define bfin_write_SYSCR(val)           bfin_write16(SYSCR, val)
90
91 /* SIC Registers */
92
93 #define bfin_read_SIC_IMASK0()          bfin_read32(SIC_IMASK0)
94 #define bfin_write_SIC_IMASK0(val)      bfin_write32(SIC_IMASK0, val)
95 #define bfin_read_SIC_IMASK1()          bfin_read32(SIC_IMASK1)
96 #define bfin_write_SIC_IMASK1(val)      bfin_write32(SIC_IMASK1, val)
97 #define bfin_read_SIC_IMASK2()          bfin_read32(SIC_IMASK2)
98 #define bfin_write_SIC_IMASK2(val)      bfin_write32(SIC_IMASK2, val)
99 #define bfin_read_SIC_IMASK(x)          bfin_read32(SIC_IMASK0 + (x << 2))
100 #define bfin_write_SIC_IMASK(x, val)    bfin_write32((SIC_IMASK0 + (x << 2)), val)
101
102 #define bfin_read_SIC_ISR0()            bfin_read32(SIC_ISR0)
103 #define bfin_write_SIC_ISR0(val)        bfin_write32(SIC_ISR0, val)
104 #define bfin_read_SIC_ISR1()            bfin_read32(SIC_ISR1)
105 #define bfin_write_SIC_ISR1(val)        bfin_write32(SIC_ISR1, val)
106 #define bfin_read_SIC_ISR2()            bfin_read32(SIC_ISR2)
107 #define bfin_write_SIC_ISR2(val)        bfin_write32(SIC_ISR2, val)
108 #define bfin_read_SIC_ISR(x)            bfin_read32(SIC_ISR0 + (x << 2))
109 #define bfin_write_SIC_ISR(x, val)      bfin_write32((SIC_ISR0 + (x << 2)), val)
110
111 #define bfin_read_SIC_IWR0()            bfin_read32(SIC_IWR0)
112 #define bfin_write_SIC_IWR0(val)        bfin_write32(SIC_IWR0, val)
113 #define bfin_read_SIC_IWR1()            bfin_read32(SIC_IWR1)
114 #define bfin_write_SIC_IWR1(val)        bfin_write32(SIC_IWR1, val)
115 #define bfin_read_SIC_IWR2()            bfin_read32(SIC_IWR2)
116 #define bfin_write_SIC_IWR2(val)        bfin_write32(SIC_IWR2, val)
117 #define bfin_read_SIC_IAR0()            bfin_read32(SIC_IAR0)
118 #define bfin_write_SIC_IAR0(val)        bfin_write32(SIC_IAR0, val)
119 #define bfin_read_SIC_IAR1()            bfin_read32(SIC_IAR1)
120 #define bfin_write_SIC_IAR1(val)        bfin_write32(SIC_IAR1, val)
121 #define bfin_read_SIC_IAR2()            bfin_read32(SIC_IAR2)
122 #define bfin_write_SIC_IAR2(val)        bfin_write32(SIC_IAR2, val)
123 #define bfin_read_SIC_IAR3()            bfin_read32(SIC_IAR3)
124 #define bfin_write_SIC_IAR3(val)        bfin_write32(SIC_IAR3, val)
125 #define bfin_read_SIC_IAR4()            bfin_read32(SIC_IAR4)
126 #define bfin_write_SIC_IAR4(val)        bfin_write32(SIC_IAR4, val)
127 #define bfin_read_SIC_IAR5()            bfin_read32(SIC_IAR5)
128 #define bfin_write_SIC_IAR5(val)        bfin_write32(SIC_IAR5, val)
129 #define bfin_read_SIC_IAR6()            bfin_read32(SIC_IAR6)
130 #define bfin_write_SIC_IAR6(val)        bfin_write32(SIC_IAR6, val)
131 #define bfin_read_SIC_IAR7()            bfin_read32(SIC_IAR7)
132 #define bfin_write_SIC_IAR7(val)        bfin_write32(SIC_IAR7, val)
133 #define bfin_read_SIC_IAR8()            bfin_read32(SIC_IAR8)
134 #define bfin_write_SIC_IAR8(val)        bfin_write32(SIC_IAR8, val)
135 #define bfin_read_SIC_IAR9()            bfin_read32(SIC_IAR9)
136 #define bfin_write_SIC_IAR9(val)        bfin_write32(SIC_IAR9, val)
137 #define bfin_read_SIC_IAR10()           bfin_read32(SIC_IAR10)
138 #define bfin_write_SIC_IAR10(val)       bfin_write32(SIC_IAR10, val)
139 #define bfin_read_SIC_IAR11()           bfin_read32(SIC_IAR11)
140 #define bfin_write_SIC_IAR11(val)       bfin_write32(SIC_IAR11, val)
141
142 /* Watchdog Timer Registers */
143
144 #define bfin_read_WDOG_CTL()            bfin_read16(WDOG_CTL)
145 #define bfin_write_WDOG_CTL(val)        bfin_write16(WDOG_CTL, val)
146 #define bfin_read_WDOG_CNT()            bfin_read32(WDOG_CNT)
147 #define bfin_write_WDOG_CNT(val)        bfin_write32(WDOG_CNT, val)
148 #define bfin_read_WDOG_STAT()           bfin_read32(WDOG_STAT)
149 #define bfin_write_WDOG_STAT(val)       bfin_write32(WDOG_STAT, val)
150
151 /* RTC Registers */
152
153 #define bfin_read_RTC_STAT()            bfin_read32(RTC_STAT)
154 #define bfin_write_RTC_STAT(val)        bfin_write32(RTC_STAT, val)
155 #define bfin_read_RTC_ICTL()            bfin_read16(RTC_ICTL)
156 #define bfin_write_RTC_ICTL(val)        bfin_write16(RTC_ICTL, val)
157 #define bfin_read_RTC_ISTAT()           bfin_read16(RTC_ISTAT)
158 #define bfin_write_RTC_ISTAT(val)       bfin_write16(RTC_ISTAT, val)
159 #define bfin_read_RTC_SWCNT()           bfin_read16(RTC_SWCNT)
160 #define bfin_write_RTC_SWCNT(val)       bfin_write16(RTC_SWCNT, val)
161 #define bfin_read_RTC_ALARM()           bfin_read32(RTC_ALARM)
162 #define bfin_write_RTC_ALARM(val)       bfin_write32(RTC_ALARM, val)
163 #define bfin_read_RTC_PREN()            bfin_read16(RTC_PREN)
164 #define bfin_write_RTC_PREN(val)        bfin_write16(RTC_PREN, val)
165
166 /* UART0 Registers */
167
168 #define bfin_read_UART0_DLL()           bfin_read16(UART0_DLL)
169 #define bfin_write_UART0_DLL(val)       bfin_write16(UART0_DLL, val)
170 #define bfin_read_UART0_DLH()           bfin_read16(UART0_DLH)
171 #define bfin_write_UART0_DLH(val)       bfin_write16(UART0_DLH, val)
172 #define bfin_read_UART0_GCTL()          bfin_read16(UART0_GCTL)
173 #define bfin_write_UART0_GCTL(val)      bfin_write16(UART0_GCTL, val)
174 #define bfin_read_UART0_LCR()           bfin_read16(UART0_LCR)
175 #define bfin_write_UART0_LCR(val)       bfin_write16(UART0_LCR, val)
176 #define bfin_read_UART0_MCR()           bfin_read16(UART0_MCR)
177 #define bfin_write_UART0_MCR(val)       bfin_write16(UART0_MCR, val)
178 #define bfin_read_UART0_LSR()           bfin_read16(UART0_LSR)
179 #define bfin_write_UART0_LSR(val)       bfin_write16(UART0_LSR, val)
180 #define bfin_read_UART0_MSR()           bfin_read16(UART0_MSR)
181 #define bfin_write_UART0_MSR(val)       bfin_write16(UART0_MSR, val)
182 #define bfin_read_UART0_SCR()           bfin_read16(UART0_SCR)
183 #define bfin_write_UART0_SCR(val)       bfin_write16(UART0_SCR, val)
184 #define bfin_read_UART0_IER_SET()       bfin_read16(UART0_IER_SET)
185 #define bfin_write_UART0_IER_SET(val)   bfin_write16(UART0_IER_SET, val)
186 #define bfin_read_UART0_IER_CLEAR()     bfin_read16(UART0_IER_CLEAR)
187 #define bfin_write_UART0_IER_CLEAR(val) bfin_write16(UART0_IER_CLEAR, val)
188 #define bfin_read_UART0_THR()           bfin_read16(UART0_THR)
189 #define bfin_write_UART0_THR(val)       bfin_write16(UART0_THR, val)
190 #define bfin_read_UART0_RBR()           bfin_read16(UART0_RBR)
191 #define bfin_write_UART0_RBR(val)       bfin_write16(UART0_RBR, val)
192
193 /* SPI0 Registers */
194
195 #define bfin_read_SPI0_CTL()            bfin_read16(SPI0_CTL)
196 #define bfin_write_SPI0_CTL(val)        bfin_write16(SPI0_CTL, val)
197 #define bfin_read_SPI0_FLG()            bfin_read16(SPI0_FLG)
198 #define bfin_write_SPI0_FLG(val)        bfin_write16(SPI0_FLG, val)
199 #define bfin_read_SPI0_STAT()           bfin_read16(SPI0_STAT)
200 #define bfin_write_SPI0_STAT(val)       bfin_write16(SPI0_STAT, val)
201 #define bfin_read_SPI0_TDBR()           bfin_read16(SPI0_TDBR)
202 #define bfin_write_SPI0_TDBR(val)       bfin_write16(SPI0_TDBR, val)
203 #define bfin_read_SPI0_RDBR()           bfin_read16(SPI0_RDBR)
204 #define bfin_write_SPI0_RDBR(val)       bfin_write16(SPI0_RDBR, val)
205 #define bfin_read_SPI0_BAUD()           bfin_read16(SPI0_BAUD)
206 #define bfin_write_SPI0_BAUD(val)       bfin_write16(SPI0_BAUD, val)
207 #define bfin_read_SPI0_SHADOW()         bfin_read16(SPI0_SHADOW)
208 #define bfin_write_SPI0_SHADOW(val)     bfin_write16(SPI0_SHADOW, val)
209
210 /* Timer Groubfin_read_() of 3 registers are not defined in the shared file because they are not available on the ADSP-BF542 processor */
211
212 /* Two Wire Interface Registers (TWI0) */
213
214 #define bfin_read_TWI0_CLKDIV()                 bfin_read16(TWI0_CLKDIV)
215 #define bfin_write_TWI0_CLKDIV(val)             bfin_write16(TWI0_CLKDIV, val)
216 #define bfin_read_TWI0_CONTROL()                bfin_read16(TWI0_CONTROL)
217 #define bfin_write_TWI0_CONTROL(val)            bfin_write16(TWI0_CONTROL, val)
218 #define bfin_read_TWI0_SLAVE_CTRL()             bfin_read16(TWI0_SLAVE_CTRL)
219 #define bfin_write_TWI0_SLAVE_CTRL(val)         bfin_write16(TWI0_SLAVE_CTRL, val)
220 #define bfin_read_TWI0_SLAVE_STAT()             bfin_read16(TWI0_SLAVE_STAT)
221 #define bfin_write_TWI0_SLAVE_STAT(val)         bfin_write16(TWI0_SLAVE_STAT, val)
222 #define bfin_read_TWI0_SLAVE_ADDR()             bfin_read16(TWI0_SLAVE_ADDR)
223 #define bfin_write_TWI0_SLAVE_ADDR(val)         bfin_write16(TWI0_SLAVE_ADDR, val)
224 #define bfin_read_TWI0_MASTER_CTRL()            bfin_read16(TWI0_MASTER_CTRL)
225 #define bfin_write_TWI0_MASTER_CTRL(val)        bfin_write16(TWI0_MASTER_CTRL, val)
226 #define bfin_read_TWI0_MASTER_STAT()            bfin_read16(TWI0_MASTER_STAT)
227 #define bfin_write_TWI0_MASTER_STAT(val)        bfin_write16(TWI0_MASTER_STAT, val)
228 #define bfin_read_TWI0_MASTER_ADDR()            bfin_read16(TWI0_MASTER_ADDR)
229 #define bfin_write_TWI0_MASTER_ADDR(val)        bfin_write16(TWI0_MASTER_ADDR, val)
230 #define bfin_read_TWI0_INT_STAT()               bfin_read16(TWI0_INT_STAT)
231 #define bfin_write_TWI0_INT_STAT(val)           bfin_write16(TWI0_INT_STAT, val)
232 #define bfin_read_TWI0_INT_MASK()               bfin_read16(TWI0_INT_MASK)
233 #define bfin_write_TWI0_INT_MASK(val)           bfin_write16(TWI0_INT_MASK, val)
234 #define bfin_read_TWI0_FIFO_CTRL()              bfin_read16(TWI0_FIFO_CTRL)
235 #define bfin_write_TWI0_FIFO_CTRL(val)          bfin_write16(TWI0_FIFO_CTRL, val)
236 #define bfin_read_TWI0_FIFO_STAT()              bfin_read16(TWI0_FIFO_STAT)
237 #define bfin_write_TWI0_FIFO_STAT(val)          bfin_write16(TWI0_FIFO_STAT, val)
238 #define bfin_read_TWI0_XMT_DATA8()              bfin_read16(TWI0_XMT_DATA8)
239 #define bfin_write_TWI0_XMT_DATA8(val)          bfin_write16(TWI0_XMT_DATA8, val)
240 #define bfin_read_TWI0_XMT_DATA16()             bfin_read16(TWI0_XMT_DATA16)
241 #define bfin_write_TWI0_XMT_DATA16(val)         bfin_write16(TWI0_XMT_DATA16, val)
242 #define bfin_read_TWI0_RCV_DATA8()              bfin_read16(TWI0_RCV_DATA8)
243 #define bfin_write_TWI0_RCV_DATA8(val)          bfin_write16(TWI0_RCV_DATA8, val)
244 #define bfin_read_TWI0_RCV_DATA16()             bfin_read16(TWI0_RCV_DATA16)
245 #define bfin_write_TWI0_RCV_DATA16(val)         bfin_write16(TWI0_RCV_DATA16, val)
246
247 #define bfin_read_TWI_CLKDIV()                  bfin_read16(TWI0_CLKDIV)
248 #define bfin_write_TWI_CLKDIV(val)              bfin_write16(TWI0_CLKDIV, val)
249 #define bfin_read_TWI_CONTROL()                 bfin_read16(TWI0_CONTROL)
250 #define bfin_write_TWI_CONTROL(val)             bfin_write16(TWI0_CONTROL, val)
251 #define bfin_read_TWI_SLAVE_CTRL()              bfin_read16(TWI0_SLAVE_CTRL)
252 #define bfin_write_TWI_SLAVE_CTRL(val)          bfin_write16(TWI0_SLAVE_CTRL, val)
253 #define bfin_read_TWI_SLAVE_STAT()              bfin_read16(TWI0_SLAVE_STAT)
254 #define bfin_write_TWI_SLAVE_STAT(val)          bfin_write16(TWI0_SLAVE_STAT, val)
255 #define bfin_read_TWI_SLAVE_ADDR()              bfin_read16(TWI0_SLAVE_ADDR)
256 #define bfin_write_TWI_SLAVE_ADDR(val)          bfin_write16(TWI0_SLAVE_ADDR, val)
257 #define bfin_read_TWI_MASTER_CTL()              bfin_read16(TWI0_MASTER_CTRL)
258 #define bfin_write_TWI_MASTER_CTL(val)          bfin_write16(TWI0_MASTER_CTRL, val)
259 #define bfin_read_TWI_MASTER_STAT()             bfin_read16(TWI0_MASTER_STAT)
260 #define bfin_write_TWI_MASTER_STAT(val)         bfin_write16(TWI0_MASTER_STAT, val)
261 #define bfin_read_TWI_MASTER_ADDR()             bfin_read16(TWI0_MASTER_ADDR)
262 #define bfin_write_TWI_MASTER_ADDR(val)         bfin_write16(TWI0_MASTER_ADDR, val)
263 #define bfin_read_TWI_INT_STAT()                bfin_read16(TWI0_INT_STAT)
264 #define bfin_write_TWI_INT_STAT(val)            bfin_write16(TWI0_INT_STAT, val)
265 #define bfin_read_TWI_INT_MASK()                bfin_read16(TWI0_INT_MASK)
266 #define bfin_write_TWI_INT_MASK(val)            bfin_write16(TWI0_INT_MASK, val)
267 #define bfin_read_TWI_FIFO_CTL()                bfin_read16(TWI0_FIFO_CTRL)
268 #define bfin_write_TWI_FIFO_CTL(val)            bfin_write16(TWI0_FIFO_CTRL, val)
269 #define bfin_read_TWI_FIFO_STAT()               bfin_read16(TWI0_FIFO_STAT)
270 #define bfin_write_TWI_FIFO_STAT(val)           bfin_write16(TWI0_FIFO_STAT, val)
271 #define bfin_read_TWI_XMT_DATA8()               bfin_read16(TWI0_XMT_DATA8)
272 #define bfin_write_TWI_XMT_DATA8(val)           bfin_write16(TWI0_XMT_DATA8, val)
273 #define bfin_read_TWI_XMT_DATA16()              bfin_read16(TWI0_XMT_DATA16)
274 #define bfin_write_TWI_XMT_DATA16(val)          bfin_write16(TWI0_XMT_DATA16, val)
275 #define bfin_read_TWI_RCV_DATA8()               bfin_read16(TWI0_RCV_DATA8)
276 #define bfin_write_TWI_RCV_DATA8(val)           bfin_write16(TWI0_RCV_DATA8, val)
277 #define bfin_read_TWI_RCV_DATA16()              bfin_read16(TWI0_RCV_DATA16)
278 #define bfin_write_TWI_RCV_DATA16(val)          bfin_write16(TWI0_RCV_DATA16, val)
279
280 /* SPORT0 is not defined in the shared file because it is not available on the ADSP-BF542 and ADSP-BF544 bfin_read_()rocessors */
281
282 /* SPORT1 Registers */
283
284 #define bfin_read_SPORT1_TCR1()         bfin_read16(SPORT1_TCR1)
285 #define bfin_write_SPORT1_TCR1(val)     bfin_write16(SPORT1_TCR1, val)
286 #define bfin_read_SPORT1_TCR2()         bfin_read16(SPORT1_TCR2)
287 #define bfin_write_SPORT1_TCR2(val)     bfin_write16(SPORT1_TCR2, val)
288 #define bfin_read_SPORT1_TCLKDIV()      bfin_read16(SPORT1_TCLKDIV)
289 #define bfin_write_SPORT1_TCLKDIV(val)  bfin_write16(SPORT1_TCLKDIV, val)
290 #define bfin_read_SPORT1_TFSDIV()       bfin_read16(SPORT1_TFSDIV)
291 #define bfin_write_SPORT1_TFSDIV(val)   bfin_write16(SPORT1_TFSDIV, val)
292 #define bfin_read_SPORT1_TX()           bfin_read32(SPORT1_TX)
293 #define bfin_write_SPORT1_TX(val)       bfin_write32(SPORT1_TX, val)
294 #define bfin_read_SPORT1_RX()           bfin_read32(SPORT1_RX)
295 #define bfin_write_SPORT1_RX(val)       bfin_write32(SPORT1_RX, val)
296 #define bfin_read_SPORT1_RCR1()         bfin_read16(SPORT1_RCR1)
297 #define bfin_write_SPORT1_RCR1(val)     bfin_write16(SPORT1_RCR1, val)
298 #define bfin_read_SPORT1_RCR2()         bfin_read16(SPORT1_RCR2)
299 #define bfin_write_SPORT1_RCR2(val)     bfin_write16(SPORT1_RCR2, val)
300 #define bfin_read_SPORT1_RCLKDIV()      bfin_read16(SPORT1_RCLKDIV)
301 #define bfin_write_SPORT1_RCLKDIV(val)  bfin_write16(SPORT1_RCLKDIV, val)
302 #define bfin_read_SPORT1_RFSDIV()       bfin_read16(SPORT1_RFSDIV)
303 #define bfin_write_SPORT1_RFSDIV(val)   bfin_write16(SPORT1_RFSDIV, val)
304 #define bfin_read_SPORT1_STAT()         bfin_read16(SPORT1_STAT)
305 #define bfin_write_SPORT1_STAT(val)     bfin_write16(SPORT1_STAT, val)
306 #define bfin_read_SPORT1_CHNL()         bfin_read16(SPORT1_CHNL)
307 #define bfin_write_SPORT1_CHNL(val)     bfin_write16(SPORT1_CHNL, val)
308 #define bfin_read_SPORT1_MCMC1()        bfin_read16(SPORT1_MCMC1)
309 #define bfin_write_SPORT1_MCMC1(val)    bfin_write16(SPORT1_MCMC1, val)
310 #define bfin_read_SPORT1_MCMC2()        bfin_read16(SPORT1_MCMC2)
311 #define bfin_write_SPORT1_MCMC2(val)    bfin_write16(SPORT1_MCMC2, val)
312 #define bfin_read_SPORT1_MTCS0()        bfin_read32(SPORT1_MTCS0)
313 #define bfin_write_SPORT1_MTCS0(val)    bfin_write32(SPORT1_MTCS0, val)
314 #define bfin_read_SPORT1_MTCS1()        bfin_read32(SPORT1_MTCS1)
315 #define bfin_write_SPORT1_MTCS1(val)    bfin_write32(SPORT1_MTCS1, val)
316 #define bfin_read_SPORT1_MTCS2()        bfin_read32(SPORT1_MTCS2)
317 #define bfin_write_SPORT1_MTCS2(val)    bfin_write32(SPORT1_MTCS2, val)
318 #define bfin_read_SPORT1_MTCS3()        bfin_read32(SPORT1_MTCS3)
319 #define bfin_write_SPORT1_MTCS3(val)    bfin_write32(SPORT1_MTCS3, val)
320 #define bfin_read_SPORT1_MRCS0()        bfin_read32(SPORT1_MRCS0)
321 #define bfin_write_SPORT1_MRCS0(val)    bfin_write32(SPORT1_MRCS0, val)
322 #define bfin_read_SPORT1_MRCS1()        bfin_read32(SPORT1_MRCS1)
323 #define bfin_write_SPORT1_MRCS1(val)    bfin_write32(SPORT1_MRCS1, val)
324 #define bfin_read_SPORT1_MRCS2()        bfin_read32(SPORT1_MRCS2)
325 #define bfin_write_SPORT1_MRCS2(val)    bfin_write32(SPORT1_MRCS2, val)
326 #define bfin_read_SPORT1_MRCS3()        bfin_read32(SPORT1_MRCS3)
327 #define bfin_write_SPORT1_MRCS3(val)    bfin_write32(SPORT1_MRCS3, val)
328
329 /* Asynchronous Memory Control Registers */
330
331 #define bfin_read_EBIU_AMGCTL()         bfin_read16(EBIU_AMGCTL)
332 #define bfin_write_EBIU_AMGCTL(val)     bfin_write16(EBIU_AMGCTL, val)
333 #define bfin_read_EBIU_AMBCTL0()        bfin_read32(EBIU_AMBCTL0)
334 #define bfin_write_EBIU_AMBCTL0(val)    bfin_write32(EBIU_AMBCTL0, val)
335 #define bfin_read_EBIU_AMBCTL1()        bfin_read32(EBIU_AMBCTL1)
336 #define bfin_write_EBIU_AMBCTL1(val)    bfin_write32(EBIU_AMBCTL1, val)
337 #define bfin_read_EBIU_MBSCTL()         bfin_read16(EBIU_MBSCTL)
338 #define bfin_write_EBIU_MBSCTL(val)     bfin_write16(EBIU_MBSCTL, val)
339 #define bfin_read_EBIU_ARBSTAT()        bfin_read32(EBIU_ARBSTAT)
340 #define bfin_write_EBIU_ARBSTAT(val)    bfin_write32(EBIU_ARBSTAT, val)
341 #define bfin_read_EBIU_MODE()           bfin_read32(EBIU_MODE)
342 #define bfin_write_EBIU_MODE(val)       bfin_write32(EBIU_MODE, val)
343 #define bfin_read_EBIU_FCTL()           bfin_read16(EBIU_FCTL)
344 #define bfin_write_EBIU_FCTL(val)       bfin_write16(EBIU_FCTL, val)
345
346 /* DDR Memory Control Registers */
347
348 #define bfin_read_EBIU_DDRCTL0()        bfin_read32(EBIU_DDRCTL0)
349 #define bfin_write_EBIU_DDRCTL0(val)    bfin_write32(EBIU_DDRCTL0, val)
350 #define bfin_read_EBIU_DDRCTL1()        bfin_read32(EBIU_DDRCTL1)
351 #define bfin_write_EBIU_DDRCTL1(val)    bfin_write32(EBIU_DDRCTL1, val)
352 #define bfin_read_EBIU_DDRCTL2()        bfin_read32(EBIU_DDRCTL2)
353 #define bfin_write_EBIU_DDRCTL2(val)    bfin_write32(EBIU_DDRCTL2, val)
354 #define bfin_read_EBIU_DDRCTL3()        bfin_read32(EBIU_DDRCTL3)
355 #define bfin_write_EBIU_DDRCTL3(val)    bfin_write32(EBIU_DDRCTL3, val)
356 #define bfin_read_EBIU_DDRQUE()         bfin_read32(EBIU_DDRQUE)
357 #define bfin_write_EBIU_DDRQUE(val)     bfin_write32(EBIU_DDRQUE, val)
358 #define bfin_read_EBIU_ERRADD()         bfin_read32(EBIU_ERRADD)
359 #define bfin_write_EBIU_ERRADD(val)     bfin_write32(EBIU_ERRADD)
360 #define bfin_read_EBIU_ERRMST()         bfin_read16(EBIU_ERRMST)
361 #define bfin_write_EBIU_ERRMST(val)     bfin_write16(EBIU_ERRMST, val)
362 #define bfin_read_EBIU_RSTCTL()         bfin_read16(EBIU_RSTCTL)
363 #define bfin_write_EBIU_RSTCTL(val)     bfin_write16(EBIU_RSTCTL, val)
364
365 /* DDR BankRead and Write Count Registers */
366
367 #define bfin_read_EBIU_DDRBRC0()        bfin_read32(EBIU_DDRBRC0)
368 #define bfin_write_EBIU_DDRBRC0(val)    bfin_write32(EBIU_DDRBRC0, val)
369 #define bfin_read_EBIU_DDRBRC1()        bfin_read32(EBIU_DDRBRC1)
370 #define bfin_write_EBIU_DDRBRC1(val)    bfin_write32(EBIU_DDRBRC1, val)
371 #define bfin_read_EBIU_DDRBRC2()        bfin_read32(EBIU_DDRBRC2)
372 #define bfin_write_EBIU_DDRBRC2(val)    bfin_write32(EBIU_DDRBRC2, val)
373 #define bfin_read_EBIU_DDRBRC3()        bfin_read32(EBIU_DDRBRC3)
374 #define bfin_write_EBIU_DDRBRC3(val)    bfin_write32(EBIU_DDRBRC3, val)
375 #define bfin_read_EBIU_DDRBRC4()        bfin_read32(EBIU_DDRBRC4)
376 #define bfin_write_EBIU_DDRBRC4(val)    bfin_write32(EBIU_DDRBRC4, val)
377 #define bfin_read_EBIU_DDRBRC5()        bfin_read32(EBIU_DDRBRC5)
378 #define bfin_write_EBIU_DDRBRC5(val)    bfin_write32(EBIU_DDRBRC5, val)
379 #define bfin_read_EBIU_DDRBRC6()        bfin_read32(EBIU_DDRBRC6)
380 #define bfin_write_EBIU_DDRBRC6(val)    bfin_write32(EBIU_DDRBRC6, val)
381 #define bfin_read_EBIU_DDRBRC7()        bfin_read32(EBIU_DDRBRC7)
382 #define bfin_write_EBIU_DDRBRC7(val)    bfin_write32(EBIU_DDRBRC7, val)
383 #define bfin_read_EBIU_DDRBWC0()        bfin_read32(EBIU_DDRBWC0)
384 #define bfin_write_EBIU_DDRBWC0(val)    bfin_write32(EBIU_DDRBWC0, val)
385 #define bfin_read_EBIU_DDRBWC1()        bfin_read32(EBIU_DDRBWC1)
386 #define bfin_write_EBIU_DDRBWC1(val)    bfin_write32(EBIU_DDRBWC1, val)
387 #define bfin_read_EBIU_DDRBWC2()        bfin_read32(EBIU_DDRBWC2)
388 #define bfin_write_EBIU_DDRBWC2(val)    bfin_write32(EBIU_DDRBWC2, val)
389 #define bfin_read_EBIU_DDRBWC3()        bfin_read32(EBIU_DDRBWC3)
390 #define bfin_write_EBIU_DDRBWC3(val)    bfin_write32(EBIU_DDRBWC3, val)
391 #define bfin_read_EBIU_DDRBWC4()        bfin_read32(EBIU_DDRBWC4)
392 #define bfin_write_EBIU_DDRBWC4(val)    bfin_write32(EBIU_DDRBWC4, val)
393 #define bfin_read_EBIU_DDRBWC5()        bfin_read32(EBIU_DDRBWC5)
394 #define bfin_write_EBIU_DDRBWC5(val)    bfin_write32(EBIU_DDRBWC5, val)
395 #define bfin_read_EBIU_DDRBWC6()        bfin_read32(EBIU_DDRBWC6)
396 #define bfin_write_EBIU_DDRBWC6(val)    bfin_write32(EBIU_DDRBWC6, val)
397 #define bfin_read_EBIU_DDRBWC7()        bfin_read32(EBIU_DDRBWC7)
398 #define bfin_write_EBIU_DDRBWC7(val)    bfin_write32(EBIU_DDRBWC7, val)
399 #define bfin_read_EBIU_DDRACCT()        bfin_read32(EBIU_DDRACCT)
400 #define bfin_write_EBIU_DDRACCT(val)    bfin_write32(EBIU_DDRACCT, val)
401 #define bfin_read_EBIU_DDRTACT()        bfin_read32(EBIU_DDRTACT)
402 #define bfin_write_EBIU_DDRTACT(val)    bfin_write32(EBIU_DDRTACT, val)
403 #define bfin_read_EBIU_DDRARCT()        bfin_read32(EBIU_DDRARCT)
404 #define bfin_write_EBIU_DDRARCT(val)    bfin_write32(EBIU_DDRARCT, val)
405 #define bfin_read_EBIU_DDRGC0()         bfin_read32(EBIU_DDRGC0)
406 #define bfin_write_EBIU_DDRGC0(val)     bfin_write32(EBIU_DDRGC0, val)
407 #define bfin_read_EBIU_DDRGC1()         bfin_read32(EBIU_DDRGC1)
408 #define bfin_write_EBIU_DDRGC1(val)     bfin_write32(EBIU_DDRGC1, val)
409 #define bfin_read_EBIU_DDRGC2()         bfin_read32(EBIU_DDRGC2)
410 #define bfin_write_EBIU_DDRGC2(val)     bfin_write32(EBIU_DDRGC2, val)
411 #define bfin_read_EBIU_DDRGC3()         bfin_read32(EBIU_DDRGC3)
412 #define bfin_write_EBIU_DDRGC3(val)     bfin_write32(EBIU_DDRGC3, val)
413 #define bfin_read_EBIU_DDRMCEN()        bfin_read32(EBIU_DDRMCEN)
414 #define bfin_write_EBIU_DDRMCEN(val)    bfin_write32(EBIU_DDRMCEN, val)
415 #define bfin_read_EBIU_DDRMCCL()        bfin_read32(EBIU_DDRMCCL)
416 #define bfin_write_EBIU_DDRMCCL(val)    bfin_write32(EBIU_DDRMCCL, val)
417
418 /* DMAC0 Registers */
419
420 #define bfin_read_DMAC0_TCPER()         bfin_read16(DMAC0_TCPER)
421 #define bfin_write_DMAC0_TCPER(val)     bfin_write16(DMAC0_TCPER, val)
422 #define bfin_read_DMAC0_TCCNT()         bfin_read16(DMAC0_TCCNT)
423 #define bfin_write_DMAC0_TCCNT(val)     bfin_write16(DMAC0_TCCNT, val)
424
425 /* DMA Channel 0 Registers */
426
427 #define bfin_read_DMA0_NEXT_DESC_PTR()          bfin_read32(DMA0_NEXT_DESC_PTR)
428 #define bfin_write_DMA0_NEXT_DESC_PTR(val)      bfin_write32(DMA0_NEXT_DESC_PTR)
429 #define bfin_read_DMA0_START_ADDR()             bfin_read32(DMA0_START_ADDR)
430 #define bfin_write_DMA0_START_ADDR(val)         bfin_write32(DMA0_START_ADDR)
431 #define bfin_read_DMA0_CONFIG()                 bfin_read16(DMA0_CONFIG)
432 #define bfin_write_DMA0_CONFIG(val)             bfin_write16(DMA0_CONFIG, val)
433 #define bfin_read_DMA0_X_COUNT()                bfin_read16(DMA0_X_COUNT)
434 #define bfin_write_DMA0_X_COUNT(val)            bfin_write16(DMA0_X_COUNT, val)
435 #define bfin_read_DMA0_X_MODIFY()               bfin_read16(DMA0_X_MODIFY)
436 #define bfin_write_DMA0_X_MODIFY(val)           bfin_write16(DMA0_X_MODIFY)
437 #define bfin_read_DMA0_Y_COUNT()                bfin_read16(DMA0_Y_COUNT)
438 #define bfin_write_DMA0_Y_COUNT(val)            bfin_write16(DMA0_Y_COUNT, val)
439 #define bfin_read_DMA0_Y_MODIFY()               bfin_read16(DMA0_Y_MODIFY)
440 #define bfin_write_DMA0_Y_MODIFY(val)           bfin_write16(DMA0_Y_MODIFY)
441 #define bfin_read_DMA0_CURR_DESC_PTR()          bfin_read32(DMA0_CURR_DESC_PTR)
442 #define bfin_write_DMA0_CURR_DESC_PTR(val)      bfin_write32(DMA0_CURR_DESC_PTR)
443 #define bfin_read_DMA0_CURR_ADDR()              bfin_read32(DMA0_CURR_ADDR)
444 #define bfin_write_DMA0_CURR_ADDR(val)          bfin_write32(DMA0_CURR_ADDR)
445 #define bfin_read_DMA0_IRQ_STATUS()             bfin_read16(DMA0_IRQ_STATUS)
446 #define bfin_write_DMA0_IRQ_STATUS(val)         bfin_write16(DMA0_IRQ_STATUS, val)
447 #define bfin_read_DMA0_PERIPHERAL_MAP()         bfin_read16(DMA0_PERIPHERAL_MAP)
448 #define bfin_write_DMA0_PERIPHERAL_MAP(val)     bfin_write16(DMA0_PERIPHERAL_MAP, val)
449 #define bfin_read_DMA0_CURR_X_COUNT()           bfin_read16(DMA0_CURR_X_COUNT)
450 #define bfin_write_DMA0_CURR_X_COUNT(val)       bfin_write16(DMA0_CURR_X_COUNT, val)
451 #define bfin_read_DMA0_CURR_Y_COUNT()           bfin_read16(DMA0_CURR_Y_COUNT)
452 #define bfin_write_DMA0_CURR_Y_COUNT(val)       bfin_write16(DMA0_CURR_Y_COUNT, val)
453
454 /* DMA Channel 1 Registers */
455
456 #define bfin_read_DMA1_NEXT_DESC_PTR()          bfin_read32(DMA1_NEXT_DESC_PTR)
457 #define bfin_write_DMA1_NEXT_DESC_PTR(val)      bfin_write32(DMA1_NEXT_DESC_PTR)
458 #define bfin_read_DMA1_START_ADDR()             bfin_read32(DMA1_START_ADDR)
459 #define bfin_write_DMA1_START_ADDR(val)         bfin_write32(DMA1_START_ADDR)
460 #define bfin_read_DMA1_CONFIG()                 bfin_read16(DMA1_CONFIG)
461 #define bfin_write_DMA1_CONFIG(val)             bfin_write16(DMA1_CONFIG, val)
462 #define bfin_read_DMA1_X_COUNT()                bfin_read16(DMA1_X_COUNT)
463 #define bfin_write_DMA1_X_COUNT(val)            bfin_write16(DMA1_X_COUNT, val)
464 #define bfin_read_DMA1_X_MODIFY()               bfin_read16(DMA1_X_MODIFY)
465 #define bfin_write_DMA1_X_MODIFY(val)           bfin_write16(DMA1_X_MODIFY)
466 #define bfin_read_DMA1_Y_COUNT()                bfin_read16(DMA1_Y_COUNT)
467 #define bfin_write_DMA1_Y_COUNT(val)            bfin_write16(DMA1_Y_COUNT, val)
468 #define bfin_read_DMA1_Y_MODIFY()               bfin_read16(DMA1_Y_MODIFY)
469 #define bfin_write_DMA1_Y_MODIFY(val)           bfin_write16(DMA1_Y_MODIFY)
470 #define bfin_read_DMA1_CURR_DESC_PTR()          bfin_read32(DMA1_CURR_DESC_PTR)
471 #define bfin_write_DMA1_CURR_DESC_PTR(val)      bfin_write32(DMA1_CURR_DESC_PTR)
472 #define bfin_read_DMA1_CURR_ADDR()              bfin_read32(DMA1_CURR_ADDR)
473 #define bfin_write_DMA1_CURR_ADDR(val)          bfin_write32(DMA1_CURR_ADDR)
474 #define bfin_read_DMA1_IRQ_STATUS()             bfin_read16(DMA1_IRQ_STATUS)
475 #define bfin_write_DMA1_IRQ_STATUS(val)         bfin_write16(DMA1_IRQ_STATUS, val)
476 #define bfin_read_DMA1_PERIPHERAL_MAP()         bfin_read16(DMA1_PERIPHERAL_MAP)
477 #define bfin_write_DMA1_PERIPHERAL_MAP(val)     bfin_write16(DMA1_PERIPHERAL_MAP, val)
478 #define bfin_read_DMA1_CURR_X_COUNT()           bfin_read16(DMA1_CURR_X_COUNT)
479 #define bfin_write_DMA1_CURR_X_COUNT(val)       bfin_write16(DMA1_CURR_X_COUNT, val)
480 #define bfin_read_DMA1_CURR_Y_COUNT()           bfin_read16(DMA1_CURR_Y_COUNT)
481 #define bfin_write_DMA1_CURR_Y_COUNT(val)       bfin_write16(DMA1_CURR_Y_COUNT, val)
482
483 /* DMA Channel 2 Registers */
484
485 #define bfin_read_DMA2_NEXT_DESC_PTR()          bfin_read32(DMA2_NEXT_DESC_PTR)
486 #define bfin_write_DMA2_NEXT_DESC_PTR(val)      bfin_write32(DMA2_NEXT_DESC_PTR)
487 #define bfin_read_DMA2_START_ADDR()             bfin_read32(DMA2_START_ADDR)
488 #define bfin_write_DMA2_START_ADDR(val)         bfin_write32(DMA2_START_ADDR)
489 #define bfin_read_DMA2_CONFIG()                 bfin_read16(DMA2_CONFIG)
490 #define bfin_write_DMA2_CONFIG(val)             bfin_write16(DMA2_CONFIG, val)
491 #define bfin_read_DMA2_X_COUNT()                bfin_read16(DMA2_X_COUNT)
492 #define bfin_write_DMA2_X_COUNT(val)            bfin_write16(DMA2_X_COUNT, val)
493 #define bfin_read_DMA2_X_MODIFY()               bfin_read16(DMA2_X_MODIFY)
494 #define bfin_write_DMA2_X_MODIFY(val)           bfin_write16(DMA2_X_MODIFY)
495 #define bfin_read_DMA2_Y_COUNT()                bfin_read16(DMA2_Y_COUNT)
496 #define bfin_write_DMA2_Y_COUNT(val)            bfin_write16(DMA2_Y_COUNT, val)
497 #define bfin_read_DMA2_Y_MODIFY()               bfin_read16(DMA2_Y_MODIFY)
498 #define bfin_write_DMA2_Y_MODIFY(val)           bfin_write16(DMA2_Y_MODIFY)
499 #define bfin_read_DMA2_CURR_DESC_PTR()          bfin_read32(DMA2_CURR_DESC_PTR)
500 #define bfin_write_DMA2_CURR_DESC_PTR(val)      bfin_write32(DMA2_CURR_DESC_PTR)
501 #define bfin_read_DMA2_CURR_ADDR()              bfin_read32(DMA2_CURR_ADDR)
502 #define bfin_write_DMA2_CURR_ADDR(val)          bfin_write32(DMA2_CURR_ADDR)
503 #define bfin_read_DMA2_IRQ_STATUS()             bfin_read16(DMA2_IRQ_STATUS)
504 #define bfin_write_DMA2_IRQ_STATUS(val)         bfin_write16(DMA2_IRQ_STATUS, val)
505 #define bfin_read_DMA2_PERIPHERAL_MAP()         bfin_read16(DMA2_PERIPHERAL_MAP)
506 #define bfin_write_DMA2_PERIPHERAL_MAP(val)     bfin_write16(DMA2_PERIPHERAL_MAP, val)
507 #define bfin_read_DMA2_CURR_X_COUNT()           bfin_read16(DMA2_CURR_X_COUNT)
508 #define bfin_write_DMA2_CURR_X_COUNT(val)       bfin_write16(DMA2_CURR_X_COUNT, val)
509 #define bfin_read_DMA2_CURR_Y_COUNT()           bfin_read16(DMA2_CURR_Y_COUNT)
510 #define bfin_write_DMA2_CURR_Y_COUNT(val)       bfin_write16(DMA2_CURR_Y_COUNT, val)
511
512 /* DMA Channel 3 Registers */
513
514 #define bfin_read_DMA3_NEXT_DESC_PTR()          bfin_read32(DMA3_NEXT_DESC_PTR)
515 #define bfin_write_DMA3_NEXT_DESC_PTR(val)      bfin_write32(DMA3_NEXT_DESC_PTR)
516 #define bfin_read_DMA3_START_ADDR()             bfin_read32(DMA3_START_ADDR)
517 #define bfin_write_DMA3_START_ADDR(val)         bfin_write32(DMA3_START_ADDR)
518 #define bfin_read_DMA3_CONFIG()                 bfin_read16(DMA3_CONFIG)
519 #define bfin_write_DMA3_CONFIG(val)             bfin_write16(DMA3_CONFIG, val)
520 #define bfin_read_DMA3_X_COUNT()                bfin_read16(DMA3_X_COUNT)
521 #define bfin_write_DMA3_X_COUNT(val)            bfin_write16(DMA3_X_COUNT, val)
522 #define bfin_read_DMA3_X_MODIFY()               bfin_read16(DMA3_X_MODIFY)
523 #define bfin_write_DMA3_X_MODIFY(val)           bfin_write16(DMA3_X_MODIFY)
524 #define bfin_read_DMA3_Y_COUNT()                bfin_read16(DMA3_Y_COUNT)
525 #define bfin_write_DMA3_Y_COUNT(val)            bfin_write16(DMA3_Y_COUNT, val)
526 #define bfin_read_DMA3_Y_MODIFY()               bfin_read16(DMA3_Y_MODIFY)
527 #define bfin_write_DMA3_Y_MODIFY(val)           bfin_write16(DMA3_Y_MODIFY)
528 #define bfin_read_DMA3_CURR_DESC_PTR()          bfin_read32(DMA3_CURR_DESC_PTR)
529 #define bfin_write_DMA3_CURR_DESC_PTR(val)      bfin_write32(DMA3_CURR_DESC_PTR)
530 #define bfin_read_DMA3_CURR_ADDR()              bfin_read32(DMA3_CURR_ADDR)
531 #define bfin_write_DMA3_CURR_ADDR(val)          bfin_write32(DMA3_CURR_ADDR)
532 #define bfin_read_DMA3_IRQ_STATUS()             bfin_read16(DMA3_IRQ_STATUS)
533 #define bfin_write_DMA3_IRQ_STATUS(val)         bfin_write16(DMA3_IRQ_STATUS, val)
534 #define bfin_read_DMA3_PERIPHERAL_MAP()         bfin_read16(DMA3_PERIPHERAL_MAP)
535 #define bfin_write_DMA3_PERIPHERAL_MAP(val)     bfin_write16(DMA3_PERIPHERAL_MAP, val)
536 #define bfin_read_DMA3_CURR_X_COUNT()           bfin_read16(DMA3_CURR_X_COUNT)
537 #define bfin_write_DMA3_CURR_X_COUNT(val)       bfin_write16(DMA3_CURR_X_COUNT, val)
538 #define bfin_read_DMA3_CURR_Y_COUNT()           bfin_read16(DMA3_CURR_Y_COUNT)
539 #define bfin_write_DMA3_CURR_Y_COUNT(val)       bfin_write16(DMA3_CURR_Y_COUNT, val)
540
541 /* DMA Channel 4 Registers */
542
543 #define bfin_read_DMA4_NEXT_DESC_PTR()          bfin_read32(DMA4_NEXT_DESC_PTR)
544 #define bfin_write_DMA4_NEXT_DESC_PTR(val)      bfin_write32(DMA4_NEXT_DESC_PTR)
545 #define bfin_read_DMA4_START_ADDR()             bfin_read32(DMA4_START_ADDR)
546 #define bfin_write_DMA4_START_ADDR(val)         bfin_write32(DMA4_START_ADDR)
547 #define bfin_read_DMA4_CONFIG()                 bfin_read16(DMA4_CONFIG)
548 #define bfin_write_DMA4_CONFIG(val)             bfin_write16(DMA4_CONFIG, val)
549 #define bfin_read_DMA4_X_COUNT()                bfin_read16(DMA4_X_COUNT)
550 #define bfin_write_DMA4_X_COUNT(val)            bfin_write16(DMA4_X_COUNT, val)
551 #define bfin_read_DMA4_X_MODIFY()               bfin_read16(DMA4_X_MODIFY)
552 #define bfin_write_DMA4_X_MODIFY(val)           bfin_write16(DMA4_X_MODIFY)
553 #define bfin_read_DMA4_Y_COUNT()                bfin_read16(DMA4_Y_COUNT)
554 #define bfin_write_DMA4_Y_COUNT(val)            bfin_write16(DMA4_Y_COUNT, val)
555 #define bfin_read_DMA4_Y_MODIFY()               bfin_read16(DMA4_Y_MODIFY)
556 #define bfin_write_DMA4_Y_MODIFY(val)           bfin_write16(DMA4_Y_MODIFY)
557 #define bfin_read_DMA4_CURR_DESC_PTR()          bfin_read32(DMA4_CURR_DESC_PTR)
558 #define bfin_write_DMA4_CURR_DESC_PTR(val)      bfin_write32(DMA4_CURR_DESC_PTR)
559 #define bfin_read_DMA4_CURR_ADDR()              bfin_read32(DMA4_CURR_ADDR)
560 #define bfin_write_DMA4_CURR_ADDR(val)          bfin_write32(DMA4_CURR_ADDR)
561 #define bfin_read_DMA4_IRQ_STATUS()             bfin_read16(DMA4_IRQ_STATUS)
562 #define bfin_write_DMA4_IRQ_STATUS(val)         bfin_write16(DMA4_IRQ_STATUS, val)
563 #define bfin_read_DMA4_PERIPHERAL_MAP()         bfin_read16(DMA4_PERIPHERAL_MAP)
564 #define bfin_write_DMA4_PERIPHERAL_MAP(val)     bfin_write16(DMA4_PERIPHERAL_MAP, val)
565 #define bfin_read_DMA4_CURR_X_COUNT()           bfin_read16(DMA4_CURR_X_COUNT)
566 #define bfin_write_DMA4_CURR_X_COUNT(val)       bfin_write16(DMA4_CURR_X_COUNT, val)
567 #define bfin_read_DMA4_CURR_Y_COUNT()           bfin_read16(DMA4_CURR_Y_COUNT)
568 #define bfin_write_DMA4_CURR_Y_COUNT(val)       bfin_write16(DMA4_CURR_Y_COUNT, val)
569
570 /* DMA Channel 5 Registers */
571
572 #define bfin_read_DMA5_NEXT_DESC_PTR()          bfin_read32(DMA5_NEXT_DESC_PTR)
573 #define bfin_write_DMA5_NEXT_DESC_PTR(val)      bfin_write32(DMA5_NEXT_DESC_PTR)
574 #define bfin_read_DMA5_START_ADDR()             bfin_read32(DMA5_START_ADDR)
575 #define bfin_write_DMA5_START_ADDR(val)         bfin_write32(DMA5_START_ADDR)
576 #define bfin_read_DMA5_CONFIG()                 bfin_read16(DMA5_CONFIG)
577 #define bfin_write_DMA5_CONFIG(val)             bfin_write16(DMA5_CONFIG, val)
578 #define bfin_read_DMA5_X_COUNT()                bfin_read16(DMA5_X_COUNT)
579 #define bfin_write_DMA5_X_COUNT(val)            bfin_write16(DMA5_X_COUNT, val)
580 #define bfin_read_DMA5_X_MODIFY()               bfin_read16(DMA5_X_MODIFY)
581 #define bfin_write_DMA5_X_MODIFY(val)           bfin_write16(DMA5_X_MODIFY)
582 #define bfin_read_DMA5_Y_COUNT()                bfin_read16(DMA5_Y_COUNT)
583 #define bfin_write_DMA5_Y_COUNT(val)            bfin_write16(DMA5_Y_COUNT, val)
584 #define bfin_read_DMA5_Y_MODIFY()               bfin_read16(DMA5_Y_MODIFY)
585 #define bfin_write_DMA5_Y_MODIFY(val)           bfin_write16(DMA5_Y_MODIFY)
586 #define bfin_read_DMA5_CURR_DESC_PTR()          bfin_read32(DMA5_CURR_DESC_PTR)
587 #define bfin_write_DMA5_CURR_DESC_PTR(val)      bfin_write32(DMA5_CURR_DESC_PTR)
588 #define bfin_read_DMA5_CURR_ADDR()              bfin_read32(DMA5_CURR_ADDR)
589 #define bfin_write_DMA5_CURR_ADDR(val)          bfin_write32(DMA5_CURR_ADDR)
590 #define bfin_read_DMA5_IRQ_STATUS()             bfin_read16(DMA5_IRQ_STATUS)
591 #define bfin_write_DMA5_IRQ_STATUS(val)         bfin_write16(DMA5_IRQ_STATUS, val)
592 #define bfin_read_DMA5_PERIPHERAL_MAP()         bfin_read16(DMA5_PERIPHERAL_MAP)
593 #define bfin_write_DMA5_PERIPHERAL_MAP(val)     bfin_write16(DMA5_PERIPHERAL_MAP, val)
594 #define bfin_read_DMA5_CURR_X_COUNT()           bfin_read16(DMA5_CURR_X_COUNT)
595 #define bfin_write_DMA5_CURR_X_COUNT(val)       bfin_write16(DMA5_CURR_X_COUNT, val)
596 #define bfin_read_DMA5_CURR_Y_COUNT()           bfin_read16(DMA5_CURR_Y_COUNT)
597 #define bfin_write_DMA5_CURR_Y_COUNT(val)       bfin_write16(DMA5_CURR_Y_COUNT, val)
598
599 /* DMA Channel 6 Registers */
600
601 #define bfin_read_DMA6_NEXT_DESC_PTR()          bfin_read32(DMA6_NEXT_DESC_PTR)
602 #define bfin_write_DMA6_NEXT_DESC_PTR(val)      bfin_write32(DMA6_NEXT_DESC_PTR)
603 #define bfin_read_DMA6_START_ADDR()             bfin_read32(DMA6_START_ADDR)
604 #define bfin_write_DMA6_START_ADDR(val)         bfin_write32(DMA6_START_ADDR)
605 #define bfin_read_DMA6_CONFIG()                 bfin_read16(DMA6_CONFIG)
606 #define bfin_write_DMA6_CONFIG(val)             bfin_write16(DMA6_CONFIG, val)
607 #define bfin_read_DMA6_X_COUNT()                bfin_read16(DMA6_X_COUNT)
608 #define bfin_write_DMA6_X_COUNT(val)            bfin_write16(DMA6_X_COUNT, val)
609 #define bfin_read_DMA6_X_MODIFY()               bfin_read16(DMA6_X_MODIFY)
610 #define bfin_write_DMA6_X_MODIFY(val)           bfin_write16(DMA6_X_MODIFY)
611 #define bfin_read_DMA6_Y_COUNT()                bfin_read16(DMA6_Y_COUNT)
612 #define bfin_write_DMA6_Y_COUNT(val)            bfin_write16(DMA6_Y_COUNT, val)
613 #define bfin_read_DMA6_Y_MODIFY()               bfin_read16(DMA6_Y_MODIFY)
614 #define bfin_write_DMA6_Y_MODIFY(val)           bfin_write16(DMA6_Y_MODIFY)
615 #define bfin_read_DMA6_CURR_DESC_PTR()          bfin_read32(DMA6_CURR_DESC_PTR)
616 #define bfin_write_DMA6_CURR_DESC_PTR(val)      bfin_write32(DMA6_CURR_DESC_PTR)
617 #define bfin_read_DMA6_CURR_ADDR()              bfin_read32(DMA6_CURR_ADDR)
618 #define bfin_write_DMA6_CURR_ADDR(val)          bfin_write32(DMA6_CURR_ADDR)
619 #define bfin_read_DMA6_IRQ_STATUS()             bfin_read16(DMA6_IRQ_STATUS)
620 #define bfin_write_DMA6_IRQ_STATUS(val)         bfin_write16(DMA6_IRQ_STATUS, val)
621 #define bfin_read_DMA6_PERIPHERAL_MAP()         bfin_read16(DMA6_PERIPHERAL_MAP)
622 #define bfin_write_DMA6_PERIPHERAL_MAP(val)     bfin_write16(DMA6_PERIPHERAL_MAP, val)
623 #define bfin_read_DMA6_CURR_X_COUNT()           bfin_read16(DMA6_CURR_X_COUNT)
624 #define bfin_write_DMA6_CURR_X_COUNT(val)       bfin_write16(DMA6_CURR_X_COUNT, val)
625 #define bfin_read_DMA6_CURR_Y_COUNT()           bfin_read16(DMA6_CURR_Y_COUNT)
626 #define bfin_write_DMA6_CURR_Y_COUNT(val)       bfin_write16(DMA6_CURR_Y_COUNT, val)
627
628 /* DMA Channel 7 Registers */
629
630 #define bfin_read_DMA7_NEXT_DESC_PTR()          bfin_read32(DMA7_NEXT_DESC_PTR)
631 #define bfin_write_DMA7_NEXT_DESC_PTR(val)      bfin_write32(DMA7_NEXT_DESC_PTR)
632 #define bfin_read_DMA7_START_ADDR()             bfin_read32(DMA7_START_ADDR)
633 #define bfin_write_DMA7_START_ADDR(val)         bfin_write32(DMA7_START_ADDR)
634 #define bfin_read_DMA7_CONFIG()                 bfin_read16(DMA7_CONFIG)
635 #define bfin_write_DMA7_CONFIG(val)             bfin_write16(DMA7_CONFIG, val)
636 #define bfin_read_DMA7_X_COUNT()                bfin_read16(DMA7_X_COUNT)
637 #define bfin_write_DMA7_X_COUNT(val)            bfin_write16(DMA7_X_COUNT, val)
638 #define bfin_read_DMA7_X_MODIFY()               bfin_read16(DMA7_X_MODIFY)
639 #define bfin_write_DMA7_X_MODIFY(val)           bfin_write16(DMA7_X_MODIFY)
640 #define bfin_read_DMA7_Y_COUNT()                bfin_read16(DMA7_Y_COUNT)
641 #define bfin_write_DMA7_Y_COUNT(val)            bfin_write16(DMA7_Y_COUNT, val)
642 #define bfin_read_DMA7_Y_MODIFY()               bfin_read16(DMA7_Y_MODIFY)
643 #define bfin_write_DMA7_Y_MODIFY(val)           bfin_write16(DMA7_Y_MODIFY)
644 #define bfin_read_DMA7_CURR_DESC_PTR()          bfin_read32(DMA7_CURR_DESC_PTR)
645 #define bfin_write_DMA7_CURR_DESC_PTR(val)      bfin_write32(DMA7_CURR_DESC_PTR)
646 #define bfin_read_DMA7_CURR_ADDR()              bfin_read32(DMA7_CURR_ADDR)
647 #define bfin_write_DMA7_CURR_ADDR(val)          bfin_write32(DMA7_CURR_ADDR)
648 #define bfin_read_DMA7_IRQ_STATUS()             bfin_read16(DMA7_IRQ_STATUS)
649 #define bfin_write_DMA7_IRQ_STATUS(val)         bfin_write16(DMA7_IRQ_STATUS, val)
650 #define bfin_read_DMA7_PERIPHERAL_MAP()         bfin_read16(DMA7_PERIPHERAL_MAP)
651 #define bfin_write_DMA7_PERIPHERAL_MAP(val)     bfin_write16(DMA7_PERIPHERAL_MAP, val)
652 #define bfin_read_DMA7_CURR_X_COUNT()           bfin_read16(DMA7_CURR_X_COUNT)
653 #define bfin_write_DMA7_CURR_X_COUNT(val)       bfin_write16(DMA7_CURR_X_COUNT, val)
654 #define bfin_read_DMA7_CURR_Y_COUNT()           bfin_read16(DMA7_CURR_Y_COUNT)
655 #define bfin_write_DMA7_CURR_Y_COUNT(val)       bfin_write16(DMA7_CURR_Y_COUNT, val)
656
657 /* DMA Channel 8 Registers */
658
659 #define bfin_read_DMA8_NEXT_DESC_PTR()          bfin_read32(DMA8_NEXT_DESC_PTR)
660 #define bfin_write_DMA8_NEXT_DESC_PTR(val)      bfin_write32(DMA8_NEXT_DESC_PTR)
661 #define bfin_read_DMA8_START_ADDR()             bfin_read32(DMA8_START_ADDR)
662 #define bfin_write_DMA8_START_ADDR(val)         bfin_write32(DMA8_START_ADDR)
663 #define bfin_read_DMA8_CONFIG()                 bfin_read16(DMA8_CONFIG)
664 #define bfin_write_DMA8_CONFIG(val)             bfin_write16(DMA8_CONFIG, val)
665 #define bfin_read_DMA8_X_COUNT()                bfin_read16(DMA8_X_COUNT)
666 #define bfin_write_DMA8_X_COUNT(val)            bfin_write16(DMA8_X_COUNT, val)
667 #define bfin_read_DMA8_X_MODIFY()               bfin_read16(DMA8_X_MODIFY)
668 #define bfin_write_DMA8_X_MODIFY(val)           bfin_write16(DMA8_X_MODIFY)
669 #define bfin_read_DMA8_Y_COUNT()                bfin_read16(DMA8_Y_COUNT)
670 #define bfin_write_DMA8_Y_COUNT(val)            bfin_write16(DMA8_Y_COUNT, val)
671 #define bfin_read_DMA8_Y_MODIFY()               bfin_read16(DMA8_Y_MODIFY)
672 #define bfin_write_DMA8_Y_MODIFY(val)           bfin_write16(DMA8_Y_MODIFY)
673 #define bfin_read_DMA8_CURR_DESC_PTR()          bfin_read32(DMA8_CURR_DESC_PTR)
674 #define bfin_write_DMA8_CURR_DESC_PTR(val)      bfin_write32(DMA8_CURR_DESC_PTR)
675 #define bfin_read_DMA8_CURR_ADDR()              bfin_read32(DMA8_CURR_ADDR)
676 #define bfin_write_DMA8_CURR_ADDR(val)          bfin_write32(DMA8_CURR_ADDR)
677 #define bfin_read_DMA8_IRQ_STATUS()             bfin_read16(DMA8_IRQ_STATUS)
678 #define bfin_write_DMA8_IRQ_STATUS(val)         bfin_write16(DMA8_IRQ_STATUS, val)
679 #define bfin_read_DMA8_PERIPHERAL_MAP()         bfin_read16(DMA8_PERIPHERAL_MAP)
680 #define bfin_write_DMA8_PERIPHERAL_MAP(val)     bfin_write16(DMA8_PERIPHERAL_MAP, val)
681 #define bfin_read_DMA8_CURR_X_COUNT()           bfin_read16(DMA8_CURR_X_COUNT)
682 #define bfin_write_DMA8_CURR_X_COUNT(val)       bfin_write16(DMA8_CURR_X_COUNT, val)
683 #define bfin_read_DMA8_CURR_Y_COUNT()           bfin_read16(DMA8_CURR_Y_COUNT)
684 #define bfin_write_DMA8_CURR_Y_COUNT(val)       bfin_write16(DMA8_CURR_Y_COUNT, val)
685
686 /* DMA Channel 9 Registers */
687
688 #define bfin_read_DMA9_NEXT_DESC_PTR()          bfin_read32(DMA9_NEXT_DESC_PTR)
689 #define bfin_write_DMA9_NEXT_DESC_PTR(val)      bfin_write32(DMA9_NEXT_DESC_PTR)
690 #define bfin_read_DMA9_START_ADDR()             bfin_read32(DMA9_START_ADDR)
691 #define bfin_write_DMA9_START_ADDR(val)         bfin_write32(DMA9_START_ADDR)
692 #define bfin_read_DMA9_CONFIG()                 bfin_read16(DMA9_CONFIG)
693 #define bfin_write_DMA9_CONFIG(val)             bfin_write16(DMA9_CONFIG, val)
694 #define bfin_read_DMA9_X_COUNT()                bfin_read16(DMA9_X_COUNT)
695 #define bfin_write_DMA9_X_COUNT(val)            bfin_write16(DMA9_X_COUNT, val)
696 #define bfin_read_DMA9_X_MODIFY()               bfin_read16(DMA9_X_MODIFY)
697 #define bfin_write_DMA9_X_MODIFY(val)           bfin_write16(DMA9_X_MODIFY)
698 #define bfin_read_DMA9_Y_COUNT()                bfin_read16(DMA9_Y_COUNT)
699 #define bfin_write_DMA9_Y_COUNT(val)            bfin_write16(DMA9_Y_COUNT, val)
700 #define bfin_read_DMA9_Y_MODIFY()               bfin_read16(DMA9_Y_MODIFY)
701 #define bfin_write_DMA9_Y_MODIFY(val)           bfin_write16(DMA9_Y_MODIFY)
702 #define bfin_read_DMA9_CURR_DESC_PTR()          bfin_read32(DMA9_CURR_DESC_PTR)
703 #define bfin_write_DMA9_CURR_DESC_PTR(val)      bfin_write32(DMA9_CURR_DESC_PTR)
704 #define bfin_read_DMA9_CURR_ADDR()              bfin_read32(DMA9_CURR_ADDR)
705 #define bfin_write_DMA9_CURR_ADDR(val)          bfin_write32(DMA9_CURR_ADDR)
706 #define bfin_read_DMA9_IRQ_STATUS()             bfin_read16(DMA9_IRQ_STATUS)
707 #define bfin_write_DMA9_IRQ_STATUS(val)         bfin_write16(DMA9_IRQ_STATUS, val)
708 #define bfin_read_DMA9_PERIPHERAL_MAP()         bfin_read16(DMA9_PERIPHERAL_MAP)
709 #define bfin_write_DMA9_PERIPHERAL_MAP(val)     bfin_write16(DMA9_PERIPHERAL_MAP, val)
710 #define bfin_read_DMA9_CURR_X_COUNT()           bfin_read16(DMA9_CURR_X_COUNT)
711 #define bfin_write_DMA9_CURR_X_COUNT(val)       bfin_write16(DMA9_CURR_X_COUNT, val)
712 #define bfin_read_DMA9_CURR_Y_COUNT()           bfin_read16(DMA9_CURR_Y_COUNT)
713 #define bfin_write_DMA9_CURR_Y_COUNT(val)       bfin_write16(DMA9_CURR_Y_COUNT, val)
714
715 /* DMA Channel 10 Registers */
716
717 #define bfin_read_DMA10_NEXT_DESC_PTR()         bfin_read32(DMA10_NEXT_DESC_PTR)
718 #define bfin_write_DMA10_NEXT_DESC_PTR(val)     bfin_write32(DMA10_NEXT_DESC_PTR)
719 #define bfin_read_DMA10_START_ADDR()            bfin_read32(DMA10_START_ADDR)
720 #define bfin_write_DMA10_START_ADDR(val)        bfin_write32(DMA10_START_ADDR)
721 #define bfin_read_DMA10_CONFIG()                bfin_read16(DMA10_CONFIG)
722 #define bfin_write_DMA10_CONFIG(val)            bfin_write16(DMA10_CONFIG, val)
723 #define bfin_read_DMA10_X_COUNT()               bfin_read16(DMA10_X_COUNT)
724 #define bfin_write_DMA10_X_COUNT(val)           bfin_write16(DMA10_X_COUNT, val)
725 #define bfin_read_DMA10_X_MODIFY()              bfin_read16(DMA10_X_MODIFY)
726 #define bfin_write_DMA10_X_MODIFY(val)          bfin_write16(DMA10_X_MODIFY)
727 #define bfin_read_DMA10_Y_COUNT()               bfin_read16(DMA10_Y_COUNT)
728 #define bfin_write_DMA10_Y_COUNT(val)           bfin_write16(DMA10_Y_COUNT, val)
729 #define bfin_read_DMA10_Y_MODIFY()              bfin_read16(DMA10_Y_MODIFY)
730 #define bfin_write_DMA10_Y_MODIFY(val)          bfin_write16(DMA10_Y_MODIFY)
731 #define bfin_read_DMA10_CURR_DESC_PTR()         bfin_read32(DMA10_CURR_DESC_PTR)
732 #define bfin_write_DMA10_CURR_DESC_PTR(val)     bfin_write32(DMA10_CURR_DESC_PTR)
733 #define bfin_read_DMA10_CURR_ADDR()             bfin_read32(DMA10_CURR_ADDR)
734 #define bfin_write_DMA10_CURR_ADDR(val)         bfin_write32(DMA10_CURR_ADDR)
735 #define bfin_read_DMA10_IRQ_STATUS()            bfin_read16(DMA10_IRQ_STATUS)
736 #define bfin_write_DMA10_IRQ_STATUS(val)        bfin_write16(DMA10_IRQ_STATUS, val)
737 #define bfin_read_DMA10_PERIPHERAL_MAP()        bfin_read16(DMA10_PERIPHERAL_MAP)
738 #define bfin_write_DMA10_PERIPHERAL_MAP(val)    bfin_write16(DMA10_PERIPHERAL_MAP, val)
739 #define bfin_read_DMA10_CURR_X_COUNT()          bfin_read16(DMA10_CURR_X_COUNT)
740 #define bfin_write_DMA10_CURR_X_COUNT(val)      bfin_write16(DMA10_CURR_X_COUNT, val)
741 #define bfin_read_DMA10_CURR_Y_COUNT()          bfin_read16(DMA10_CURR_Y_COUNT)
742 #define bfin_write_DMA10_CURR_Y_COUNT(val)      bfin_write16(DMA10_CURR_Y_COUNT, val)
743
744 /* DMA Channel 11 Registers */
745
746 #define bfin_read_DMA11_NEXT_DESC_PTR()         bfin_read32(DMA11_NEXT_DESC_PTR)
747 #define bfin_write_DMA11_NEXT_DESC_PTR(val)     bfin_write32(DMA11_NEXT_DESC_PTR)
748 #define bfin_read_DMA11_START_ADDR()            bfin_read32(DMA11_START_ADDR)
749 #define bfin_write_DMA11_START_ADDR(val)        bfin_write32(DMA11_START_ADDR)
750 #define bfin_read_DMA11_CONFIG()                bfin_read16(DMA11_CONFIG)
751 #define bfin_write_DMA11_CONFIG(val)            bfin_write16(DMA11_CONFIG, val)
752 #define bfin_read_DMA11_X_COUNT()               bfin_read16(DMA11_X_COUNT)
753 #define bfin_write_DMA11_X_COUNT(val)           bfin_write16(DMA11_X_COUNT, val)
754 #define bfin_read_DMA11_X_MODIFY()              bfin_read16(DMA11_X_MODIFY)
755 #define bfin_write_DMA11_X_MODIFY(val)          bfin_write16(DMA11_X_MODIFY)
756 #define bfin_read_DMA11_Y_COUNT()               bfin_read16(DMA11_Y_COUNT)
757 #define bfin_write_DMA11_Y_COUNT(val)           bfin_write16(DMA11_Y_COUNT, val)
758 #define bfin_read_DMA11_Y_MODIFY()              bfin_read16(DMA11_Y_MODIFY)
759 #define bfin_write_DMA11_Y_MODIFY(val)          bfin_write16(DMA11_Y_MODIFY)
760 #define bfin_read_DMA11_CURR_DESC_PTR()         bfin_read32(DMA11_CURR_DESC_PTR)
761 #define bfin_write_DMA11_CURR_DESC_PTR(val)     bfin_write32(DMA11_CURR_DESC_PTR)
762 #define bfin_read_DMA11_CURR_ADDR()             bfin_read32(DMA11_CURR_ADDR)
763 #define bfin_write_DMA11_CURR_ADDR(val)         bfin_write32(DMA11_CURR_ADDR)
764 #define bfin_read_DMA11_IRQ_STATUS()            bfin_read16(DMA11_IRQ_STATUS)
765 #define bfin_write_DMA11_IRQ_STATUS(val)        bfin_write16(DMA11_IRQ_STATUS, val)
766 #define bfin_read_DMA11_PERIPHERAL_MAP()        bfin_read16(DMA11_PERIPHERAL_MAP)
767 #define bfin_write_DMA11_PERIPHERAL_MAP(val)    bfin_write16(DMA11_PERIPHERAL_MAP, val)
768 #define bfin_read_DMA11_CURR_X_COUNT()          bfin_read16(DMA11_CURR_X_COUNT)
769 #define bfin_write_DMA11_CURR_X_COUNT(val)      bfin_write16(DMA11_CURR_X_COUNT, val)
770 #define bfin_read_DMA11_CURR_Y_COUNT()          bfin_read16(DMA11_CURR_Y_COUNT)
771 #define bfin_write_DMA11_CURR_Y_COUNT(val)      bfin_write16(DMA11_CURR_Y_COUNT, val)
772
773 /* MDMA Stream 0 Registers */
774
775 #define bfin_read_MDMA_D0_NEXT_DESC_PTR()       bfin_read32(MDMA_D0_NEXT_DESC_PTR)
776 #define bfin_write_MDMA_D0_NEXT_DESC_PTR(val)   bfin_write32(MDMA_D0_NEXT_DESC_PTR)
777 #define bfin_read_MDMA_D0_START_ADDR()          bfin_read32(MDMA_D0_START_ADDR)
778 #define bfin_write_MDMA_D0_START_ADDR(val)      bfin_write32(MDMA_D0_START_ADDR, val)
779 #define bfin_read_MDMA_D0_CONFIG()              bfin_read16(MDMA_D0_CONFIG)
780 #define bfin_write_MDMA_D0_CONFIG(val)          bfin_write16(MDMA_D0_CONFIG, val)
781 #define bfin_read_MDMA_D0_X_COUNT()             bfin_read16(MDMA_D0_X_COUNT)
782 #define bfin_write_MDMA_D0_X_COUNT(val)         bfin_write16(MDMA_D0_X_COUNT, val)
783 #define bfin_read_MDMA_D0_X_MODIFY()            bfin_read16(MDMA_D0_X_MODIFY)
784 #define bfin_write_MDMA_D0_X_MODIFY(val)        bfin_write16(MDMA_D0_X_MODIFY, val)
785 #define bfin_read_MDMA_D0_Y_COUNT()             bfin_read16(MDMA_D0_Y_COUNT)
786 #define bfin_write_MDMA_D0_Y_COUNT(val)         bfin_write16(MDMA_D0_Y_COUNT, val)
787 #define bfin_read_MDMA_D0_Y_MODIFY()            bfin_read16(MDMA_D0_Y_MODIFY)
788 #define bfin_write_MDMA_D0_Y_MODIFY(val)        bfin_write16(MDMA_D0_Y_MODIFY, val)
789 #define bfin_read_MDMA_D0_CURR_DESC_PTR()       bfin_read32(MDMA_D0_CURR_DESC_PTR)
790 #define bfin_write_MDMA_D0_CURR_DESC_PTR(val)   bfin_write32(MDMA_D0_CURR_DESC_PTR, val)
791 #define bfin_read_MDMA_D0_CURR_ADDR()           bfin_read32(MDMA_D0_CURR_ADDR)
792 #define bfin_write_MDMA_D0_CURR_ADDR(val)       bfin_write32(MDMA_D0_CURR_ADDR, val)
793 #define bfin_read_MDMA_D0_IRQ_STATUS()          bfin_read16(MDMA_D0_IRQ_STATUS)
794 #define bfin_write_MDMA_D0_IRQ_STATUS(val)      bfin_write16(MDMA_D0_IRQ_STATUS, val)
795 #define bfin_read_MDMA_D0_PERIPHERAL_MAP()      bfin_read16(MDMA_D0_PERIPHERAL_MAP)
796 #define bfin_write_MDMA_D0_PERIPHERAL_MAP(val)  bfin_write16(MDMA_D0_PERIPHERAL_MAP, val)
797 #define bfin_read_MDMA_D0_CURR_X_COUNT()        bfin_read16(MDMA_D0_CURR_X_COUNT)
798 #define bfin_write_MDMA_D0_CURR_X_COUNT(val)    bfin_write16(MDMA_D0_CURR_X_COUNT, val)
799 #define bfin_read_MDMA_D0_CURR_Y_COUNT()        bfin_read16(MDMA_D0_CURR_Y_COUNT)
800 #define bfin_write_MDMA_D0_CURR_Y_COUNT(val)    bfin_write16(MDMA_D0_CURR_Y_COUNT, val)
801 #define bfin_read_MDMA_S0_NEXT_DESC_PTR()       bfin_read32(MDMA_S0_NEXT_DESC_PTR)
802 #define bfin_write_MDMA_S0_NEXT_DESC_PTR(val)   bfin_write32(MDMA_S0_NEXT_DESC_PTR, val)
803 #define bfin_read_MDMA_S0_START_ADDR()          bfin_read32(MDMA_S0_START_ADDR)
804 #define bfin_write_MDMA_S0_START_ADDR(val)      bfin_write32(MDMA_S0_START_ADDR, val)
805 #define bfin_read_MDMA_S0_CONFIG()              bfin_read16(MDMA_S0_CONFIG)
806 #define bfin_write_MDMA_S0_CONFIG(val)          bfin_write16(MDMA_S0_CONFIG, val)
807 #define bfin_read_MDMA_S0_X_COUNT()             bfin_read16(MDMA_S0_X_COUNT)
808 #define bfin_write_MDMA_S0_X_COUNT(val)         bfin_write16(MDMA_S0_X_COUNT, val)
809 #define bfin_read_MDMA_S0_X_MODIFY()            bfin_read16(MDMA_S0_X_MODIFY)
810 #define bfin_write_MDMA_S0_X_MODIFY(val)        bfin_write16(MDMA_S0_X_MODIFY, val)
811 #define bfin_read_MDMA_S0_Y_COUNT()             bfin_read16(MDMA_S0_Y_COUNT)
812 #define bfin_write_MDMA_S0_Y_COUNT(val)         bfin_write16(MDMA_S0_Y_COUNT, val)
813 #define bfin_read_MDMA_S0_Y_MODIFY()            bfin_read16(MDMA_S0_Y_MODIFY)
814 #define bfin_write_MDMA_S0_Y_MODIFY(val)        bfin_write16(MDMA_S0_Y_MODIFY, val)
815 #define bfin_read_MDMA_S0_CURR_DESC_PTR()       bfin_read32(MDMA_S0_CURR_DESC_PTR)
816 #define bfin_write_MDMA_S0_CURR_DESC_PTR(val)   bfin_write32(MDMA_S0_CURR_DESC_PTR, val)
817 #define bfin_read_MDMA_S0_CURR_ADDR()           bfin_read32(MDMA_S0_CURR_ADDR)
818 #define bfin_write_MDMA_S0_CURR_ADDR(val)       bfin_write32(MDMA_S0_CURR_ADDR, val)
819 #define bfin_read_MDMA_S0_IRQ_STATUS()          bfin_read16(MDMA_S0_IRQ_STATUS)
820 #define bfin_write_MDMA_S0_IRQ_STATUS(val)      bfin_write16(MDMA_S0_IRQ_STATUS, val)
821 #define bfin_read_MDMA_S0_PERIPHERAL_MAP()      bfin_read16(MDMA_S0_PERIPHERAL_MAP)
822 #define bfin_write_MDMA_S0_PERIPHERAL_MAP(val)  bfin_write16(MDMA_S0_PERIPHERAL_MAP, val)
823 #define bfin_read_MDMA_S0_CURR_X_COUNT()        bfin_read16(MDMA_S0_CURR_X_COUNT)
824 #define bfin_write_MDMA_S0_CURR_X_COUNT(val)    bfin_write16(MDMA_S0_CURR_X_COUNT, val)
825 #define bfin_read_MDMA_S0_CURR_Y_COUNT()        bfin_read16(MDMA_S0_CURR_Y_COUNT)
826 #define bfin_write_MDMA_S0_CURR_Y_COUNT(val)    bfin_write16(MDMA_S0_CURR_Y_COUNT, val)
827
828 /* MDMA Stream 1 Registers */
829
830 #define bfin_read_MDMA_D1_NEXT_DESC_PTR()       bfin_read32(MDMA_D1_NEXT_DESC_PTR)
831 #define bfin_write_MDMA_D1_NEXT_DESC_PTR(val)   bfin_write32(MDMA_D1_NEXT_DESC_PTR, val)
832 #define bfin_read_MDMA_D1_START_ADDR()          bfin_read32(MDMA_D1_START_ADDR)
833 #define bfin_write_MDMA_D1_START_ADDR(val)      bfin_write32(MDMA_D1_START_ADDR, val)
834 #define bfin_read_MDMA_D1_CONFIG()              bfin_read16(MDMA_D1_CONFIG)
835 #define bfin_write_MDMA_D1_CONFIG(val)          bfin_write16(MDMA_D1_CONFIG, val)
836 #define bfin_read_MDMA_D1_X_COUNT()             bfin_read16(MDMA_D1_X_COUNT)
837 #define bfin_write_MDMA_D1_X_COUNT(val)         bfin_write16(MDMA_D1_X_COUNT, val)
838 #define bfin_read_MDMA_D1_X_MODIFY()            bfin_read16(MDMA_D1_X_MODIFY)
839 #define bfin_write_MDMA_D1_X_MODIFY(val)        bfin_write16(MDMA_D1_X_MODIFY)
840 #define bfin_read_MDMA_D1_Y_COUNT()             bfin_read16(MDMA_D1_Y_COUNT)
841 #define bfin_write_MDMA_D1_Y_COUNT(val)         bfin_write16(MDMA_D1_Y_COUNT, val)
842 #define bfin_read_MDMA_D1_Y_MODIFY()            bfin_read16(MDMA_D1_Y_MODIFY)
843 #define bfin_write_MDMA_D1_Y_MODIFY(val)        bfin_write16(MDMA_D1_Y_MODIFY)
844 #define bfin_read_MDMA_D1_CURR_DESC_PTR()       bfin_read32(MDMA_D1_CURR_DESC_PTR)
845 #define bfin_write_MDMA_D1_CURR_DESC_PTR(val)   bfin_write32(MDMA_D1_CURR_DESC_PTR, val)
846 #define bfin_read_MDMA_D1_CURR_ADDR()           bfin_read32(MDMA_D1_CURR_ADDR)
847 #define bfin_write_MDMA_D1_CURR_ADDR(val)       bfin_write32(MDMA_D1_CURR_ADDR, val)
848 #define bfin_read_MDMA_D1_IRQ_STATUS()          bfin_read16(MDMA_D1_IRQ_STATUS)
849 #define bfin_write_MDMA_D1_IRQ_STATUS(val)      bfin_write16(MDMA_D1_IRQ_STATUS, val)
850 #define bfin_read_MDMA_D1_PERIPHERAL_MAP()      bfin_read16(MDMA_D1_PERIPHERAL_MAP)
851 #define bfin_write_MDMA_D1_PERIPHERAL_MAP(val)  bfin_write16(MDMA_D1_PERIPHERAL_MAP, val)
852 #define bfin_read_MDMA_D1_CURR_X_COUNT()        bfin_read16(MDMA_D1_CURR_X_COUNT)
853 #define bfin_write_MDMA_D1_CURR_X_COUNT(val)    bfin_write16(MDMA_D1_CURR_X_COUNT, val)
854 #define bfin_read_MDMA_D1_CURR_Y_COUNT()        bfin_read16(MDMA_D1_CURR_Y_COUNT)
855 #define bfin_write_MDMA_D1_CURR_Y_COUNT(val)    bfin_write16(MDMA_D1_CURR_Y_COUNT, val)
856 #define bfin_read_MDMA_S1_NEXT_DESC_PTR()       bfin_read32(MDMA_S1_NEXT_DESC_PTR)
857 #define bfin_write_MDMA_S1_NEXT_DESC_PTR(val)   bfin_write32(MDMA_S1_NEXT_DESC_PTR, val)
858 #define bfin_read_MDMA_S1_START_ADDR()          bfin_read32(MDMA_S1_START_ADDR)
859 #define bfin_write_MDMA_S1_START_ADDR(val)      bfin_write32(MDMA_S1_START_ADDR, val)
860 #define bfin_read_MDMA_S1_CONFIG()              bfin_read16(MDMA_S1_CONFIG)
861 #define bfin_write_MDMA_S1_CONFIG(val)          bfin_write16(MDMA_S1_CONFIG, val)
862 #define bfin_read_MDMA_S1_X_COUNT()             bfin_read16(MDMA_S1_X_COUNT)
863 #define bfin_write_MDMA_S1_X_COUNT(val)         bfin_write16(MDMA_S1_X_COUNT, val)
864 #define bfin_read_MDMA_S1_X_MODIFY()            bfin_read16(MDMA_S1_X_MODIFY)
865 #define bfin_write_MDMA_S1_X_MODIFY(val)        bfin_write16(MDMA_S1_X_MODIFY)
866 #define bfin_read_MDMA_S1_Y_COUNT()             bfin_read16(MDMA_S1_Y_COUNT)
867 #define bfin_write_MDMA_S1_Y_COUNT(val)         bfin_write16(MDMA_S1_Y_COUNT, val)
868 #define bfin_read_MDMA_S1_Y_MODIFY()            bfin_read16(MDMA_S1_Y_MODIFY)
869 #define bfin_write_MDMA_S1_Y_MODIFY(val)        bfin_write16(MDMA_S1_Y_MODIFY)
870 #define bfin_read_MDMA_S1_CURR_DESC_PTR()       bfin_read32(MDMA_S1_CURR_DESC_PTR)
871 #define bfin_write_MDMA_S1_CURR_DESC_PTR(val)   bfin_write32(MDMA_S1_CURR_DESC_PTR, val)
872 #define bfin_read_MDMA_S1_CURR_ADDR()           bfin_read32(MDMA_S1_CURR_ADDR)
873 #define bfin_write_MDMA_S1_CURR_ADDR(val)       bfin_write32(MDMA_S1_CURR_ADDR, val)
874 #define bfin_read_MDMA_S1_IRQ_STATUS()          bfin_read16(MDMA_S1_IRQ_STATUS)
875 #define bfin_write_MDMA_S1_IRQ_STATUS(val)      bfin_write16(MDMA_S1_IRQ_STATUS, val)
876 #define bfin_read_MDMA_S1_PERIPHERAL_MAP()      bfin_read16(MDMA_S1_PERIPHERAL_MAP)
877 #define bfin_write_MDMA_S1_PERIPHERAL_MAP(val)  bfin_write16(MDMA_S1_PERIPHERAL_MAP, val)
878 #define bfin_read_MDMA_S1_CURR_X_COUNT()        bfin_read16(MDMA_S1_CURR_X_COUNT)
879 #define bfin_write_MDMA_S1_CURR_X_COUNT(val)    bfin_write16(MDMA_S1_CURR_X_COUNT, val)
880 #define bfin_read_MDMA_S1_CURR_Y_COUNT()        bfin_read16(MDMA_S1_CURR_Y_COUNT)
881 #define bfin_write_MDMA_S1_CURR_Y_COUNT(val)    bfin_write16(MDMA_S1_CURR_Y_COUNT, val)
882
883 /* EPPI1 Registers */
884
885 #define bfin_read_EPPI1_STATUS()                bfin_read16(EPPI1_STATUS)
886 #define bfin_write_EPPI1_STATUS(val)            bfin_write16(EPPI1_STATUS, val)
887 #define bfin_read_EPPI1_HCOUNT()                bfin_read16(EPPI1_HCOUNT)
888 #define bfin_write_EPPI1_HCOUNT(val)            bfin_write16(EPPI1_HCOUNT, val)
889 #define bfin_read_EPPI1_HDELAY()                bfin_read16(EPPI1_HDELAY)
890 #define bfin_write_EPPI1_HDELAY(val)            bfin_write16(EPPI1_HDELAY, val)
891 #define bfin_read_EPPI1_VCOUNT()                bfin_read16(EPPI1_VCOUNT)
892 #define bfin_write_EPPI1_VCOUNT(val)            bfin_write16(EPPI1_VCOUNT, val)
893 #define bfin_read_EPPI1_VDELAY()                bfin_read16(EPPI1_VDELAY)
894 #define bfin_write_EPPI1_VDELAY(val)            bfin_write16(EPPI1_VDELAY, val)
895 #define bfin_read_EPPI1_FRAME()                 bfin_read16(EPPI1_FRAME)
896 #define bfin_write_EPPI1_FRAME(val)             bfin_write16(EPPI1_FRAME, val)
897 #define bfin_read_EPPI1_LINE()                  bfin_read16(EPPI1_LINE)
898 #define bfin_write_EPPI1_LINE(val)              bfin_write16(EPPI1_LINE, val)
899 #define bfin_read_EPPI1_CLKDIV()                bfin_read16(EPPI1_CLKDIV)
900 #define bfin_write_EPPI1_CLKDIV(val)            bfin_write16(EPPI1_CLKDIV, val)
901 #define bfin_read_EPPI1_CONTROL()               bfin_read32(EPPI1_CONTROL)
902 #define bfin_write_EPPI1_CONTROL(val)           bfin_write32(EPPI1_CONTROL, val)
903 #define bfin_read_EPPI1_FS1W_HBL()              bfin_read32(EPPI1_FS1W_HBL)
904 #define bfin_write_EPPI1_FS1W_HBL(val)          bfin_write32(EPPI1_FS1W_HBL, val)
905 #define bfin_read_EPPI1_FS1P_AVPL()             bfin_read32(EPPI1_FS1P_AVPL)
906 #define bfin_write_EPPI1_FS1P_AVPL(val)         bfin_write32(EPPI1_FS1P_AVPL, val)
907 #define bfin_read_EPPI1_FS2W_LVB()              bfin_read32(EPPI1_FS2W_LVB)
908 #define bfin_write_EPPI1_FS2W_LVB(val)          bfin_write32(EPPI1_FS2W_LVB, val)
909 #define bfin_read_EPPI1_FS2P_LAVF()             bfin_read32(EPPI1_FS2P_LAVF)
910 #define bfin_write_EPPI1_FS2P_LAVF(val)         bfin_write32(EPPI1_FS2P_LAVF, val)
911 #define bfin_read_EPPI1_CLIP()                  bfin_read32(EPPI1_CLIP)
912 #define bfin_write_EPPI1_CLIP(val)              bfin_write32(EPPI1_CLIP, val)
913
914 /* Port Interrubfin_read_()t 0 Registers (32-bit) */
915
916 #define bfin_read_PINT0_MASK_SET()              bfin_read32(PINT0_MASK_SET)
917 #define bfin_write_PINT0_MASK_SET(val)          bfin_write32(PINT0_MASK_SET, val)
918 #define bfin_read_PINT0_MASK_CLEAR()            bfin_read32(PINT0_MASK_CLEAR)
919 #define bfin_write_PINT0_MASK_CLEAR(val)        bfin_write32(PINT0_MASK_CLEAR, val)
920 #define bfin_read_PINT0_REQUEST()               bfin_read32(PINT0_REQUEST)
921 #define bfin_write_PINT0_REQUEST(val)           bfin_write32(PINT0_REQUEST, val)
922 #define bfin_read_PINT0_ASSIGN()                bfin_read32(PINT0_ASSIGN)
923 #define bfin_write_PINT0_ASSIGN(val)            bfin_write32(PINT0_ASSIGN, val)
924 #define bfin_read_PINT0_EDGE_SET()              bfin_read32(PINT0_EDGE_SET)
925 #define bfin_write_PINT0_EDGE_SET(val)          bfin_write32(PINT0_EDGE_SET, val)
926 #define bfin_read_PINT0_EDGE_CLEAR()            bfin_read32(PINT0_EDGE_CLEAR)
927 #define bfin_write_PINT0_EDGE_CLEAR(val)        bfin_write32(PINT0_EDGE_CLEAR, val)
928 #define bfin_read_PINT0_INVERT_SET()            bfin_read32(PINT0_INVERT_SET)
929 #define bfin_write_PINT0_INVERT_SET(val)        bfin_write32(PINT0_INVERT_SET, val)
930 #define bfin_read_PINT0_INVERT_CLEAR()          bfin_read32(PINT0_INVERT_CLEAR)
931 #define bfin_write_PINT0_INVERT_CLEAR(val)      bfin_write32(PINT0_INVERT_CLEAR, val)
932 #define bfin_read_PINT0_PINSTATE()              bfin_read32(PINT0_PINSTATE)
933 #define bfin_write_PINT0_PINSTATE(val)          bfin_write32(PINT0_PINSTATE, val)
934 #define bfin_read_PINT0_LATCH()                 bfin_read32(PINT0_LATCH)
935 #define bfin_write_PINT0_LATCH(val)             bfin_write32(PINT0_LATCH, val)
936
937 /* Port Interrubfin_read_()t 1 Registers (32-bit) */
938
939 #define bfin_read_PINT1_MASK_SET()              bfin_read32(PINT1_MASK_SET)
940 #define bfin_write_PINT1_MASK_SET(val)          bfin_write32(PINT1_MASK_SET, val)
941 #define bfin_read_PINT1_MASK_CLEAR()            bfin_read32(PINT1_MASK_CLEAR)
942 #define bfin_write_PINT1_MASK_CLEAR(val)        bfin_write32(PINT1_MASK_CLEAR, val)
943 #define bfin_read_PINT1_REQUEST()               bfin_read32(PINT1_REQUEST)
944 #define bfin_write_PINT1_REQUEST(val)           bfin_write32(PINT1_REQUEST, val)
945 #define bfin_read_PINT1_ASSIGN()                bfin_read32(PINT1_ASSIGN)
946 #define bfin_write_PINT1_ASSIGN(val)            bfin_write32(PINT1_ASSIGN, val)
947 #define bfin_read_PINT1_EDGE_SET()              bfin_read32(PINT1_EDGE_SET)
948 #define bfin_write_PINT1_EDGE_SET(val)          bfin_write32(PINT1_EDGE_SET, val)
949 #define bfin_read_PINT1_EDGE_CLEAR()            bfin_read32(PINT1_EDGE_CLEAR)
950 #define bfin_write_PINT1_EDGE_CLEAR(val)        bfin_write32(PINT1_EDGE_CLEAR, val)
951 #define bfin_read_PINT1_INVERT_SET()            bfin_read32(PINT1_INVERT_SET)
952 #define bfin_write_PINT1_INVERT_SET(val)        bfin_write32(PINT1_INVERT_SET, val)
953 #define bfin_read_PINT1_INVERT_CLEAR()          bfin_read32(PINT1_INVERT_CLEAR)
954 #define bfin_write_PINT1_INVERT_CLEAR(val)      bfin_write32(PINT1_INVERT_CLEAR, val)
955 #define bfin_read_PINT1_PINSTATE()              bfin_read32(PINT1_PINSTATE)
956 #define bfin_write_PINT1_PINSTATE(val)          bfin_write32(PINT1_PINSTATE, val)
957 #define bfin_read_PINT1_LATCH()                 bfin_read32(PINT1_LATCH)
958 #define bfin_write_PINT1_LATCH(val)             bfin_write32(PINT1_LATCH, val)
959
960 /* Port Interrubfin_read_()t 2 Registers (32-bit) */
961
962 #define bfin_read_PINT2_MASK_SET()              bfin_read32(PINT2_MASK_SET)
963 #define bfin_write_PINT2_MASK_SET(val)          bfin_write32(PINT2_MASK_SET, val)
964 #define bfin_read_PINT2_MASK_CLEAR()            bfin_read32(PINT2_MASK_CLEAR)
965 #define bfin_write_PINT2_MASK_CLEAR(val)        bfin_write32(PINT2_MASK_CLEAR, val)
966 #define bfin_read_PINT2_REQUEST()               bfin_read32(PINT2_REQUEST)
967 #define bfin_write_PINT2_REQUEST(val)           bfin_write32(PINT2_REQUEST, val)
968 #define bfin_read_PINT2_ASSIGN()                bfin_read32(PINT2_ASSIGN)
969 #define bfin_write_PINT2_ASSIGN(val)            bfin_write32(PINT2_ASSIGN, val)
970 #define bfin_read_PINT2_EDGE_SET()              bfin_read32(PINT2_EDGE_SET)
971 #define bfin_write_PINT2_EDGE_SET(val)          bfin_write32(PINT2_EDGE_SET, val)
972 #define bfin_read_PINT2_EDGE_CLEAR()            bfin_read32(PINT2_EDGE_CLEAR)
973 #define bfin_write_PINT2_EDGE_CLEAR(val)        bfin_write32(PINT2_EDGE_CLEAR, val)
974 #define bfin_read_PINT2_INVERT_SET()            bfin_read32(PINT2_INVERT_SET)
975 #define bfin_write_PINT2_INVERT_SET(val)        bfin_write32(PINT2_INVERT_SET, val)
976 #define bfin_read_PINT2_INVERT_CLEAR()          bfin_read32(PINT2_INVERT_CLEAR)
977 #define bfin_write_PINT2_INVERT_CLEAR(val)      bfin_write32(PINT2_INVERT_CLEAR, val)
978 #define bfin_read_PINT2_PINSTATE()              bfin_read32(PINT2_PINSTATE)
979 #define bfin_write_PINT2_PINSTATE(val)          bfin_write32(PINT2_PINSTATE, val)
980 #define bfin_read_PINT2_LATCH()                 bfin_read32(PINT2_LATCH)
981 #define bfin_write_PINT2_LATCH(val)             bfin_write32(PINT2_LATCH, val)
982
983 /* Port Interrubfin_read_()t 3 Registers (32-bit) */
984
985 #define bfin_read_PINT3_MASK_SET()              bfin_read32(PINT3_MASK_SET)
986 #define bfin_write_PINT3_MASK_SET(val)          bfin_write32(PINT3_MASK_SET, val)
987 #define bfin_read_PINT3_MASK_CLEAR()            bfin_read32(PINT3_MASK_CLEAR)
988 #define bfin_write_PINT3_MASK_CLEAR(val)        bfin_write32(PINT3_MASK_CLEAR, val)
989 #define bfin_read_PINT3_REQUEST()               bfin_read32(PINT3_REQUEST)
990 #define bfin_write_PINT3_REQUEST(val)           bfin_write32(PINT3_REQUEST, val)
991 #define bfin_read_PINT3_ASSIGN()                bfin_read32(PINT3_ASSIGN)
992 #define bfin_write_PINT3_ASSIGN(val)            bfin_write32(PINT3_ASSIGN, val)
993 #define bfin_read_PINT3_EDGE_SET()              bfin_read32(PINT3_EDGE_SET)
994 #define bfin_write_PINT3_EDGE_SET(val)          bfin_write32(PINT3_EDGE_SET, val)
995 #define bfin_read_PINT3_EDGE_CLEAR()            bfin_read32(PINT3_EDGE_CLEAR)
996 #define bfin_write_PINT3_EDGE_CLEAR(val)        bfin_write32(PINT3_EDGE_CLEAR, val)
997 #define bfin_read_PINT3_INVERT_SET()            bfin_read32(PINT3_INVERT_SET)
998 #define bfin_write_PINT3_INVERT_SET(val)        bfin_write32(PINT3_INVERT_SET, val)
999 #define bfin_read_PINT3_INVERT_CLEAR()          bfin_read32(PINT3_INVERT_CLEAR)
1000 #define bfin_write_PINT3_INVERT_CLEAR(val)      bfin_write32(PINT3_INVERT_CLEAR, val)
1001 #define bfin_read_PINT3_PINSTATE()              bfin_read32(PINT3_PINSTATE)
1002 #define bfin_write_PINT3_PINSTATE(val)          bfin_write32(PINT3_PINSTATE, val)
1003 #define bfin_read_PINT3_LATCH()                 bfin_read32(PINT3_LATCH)
1004 #define bfin_write_PINT3_LATCH(val)             bfin_write32(PINT3_LATCH, val)
1005
1006 /* Port A Registers */
1007
1008 #define bfin_read_PORTA_FER()           bfin_read16(PORTA_FER)
1009 #define bfin_write_PORTA_FER(val)       bfin_write16(PORTA_FER, val)
1010 #define bfin_read_PORTA()               bfin_read16(PORTA)
1011 #define bfin_write_PORTA(val)           bfin_write16(PORTA, val)
1012 #define bfin_read_PORTA_SET()           bfin_read16(PORTA_SET)
1013 #define bfin_write_PORTA_SET(val)       bfin_write16(PORTA_SET, val)
1014 #define bfin_read_PORTA_CLEAR()         bfin_read16(PORTA_CLEAR)
1015 #define bfin_write_PORTA_CLEAR(val)     bfin_write16(PORTA_CLEAR, val)
1016 #define bfin_read_PORTA_DIR_SET()       bfin_read16(PORTA_DIR_SET)
1017 #define bfin_write_PORTA_DIR_SET(val)   bfin_write16(PORTA_DIR_SET, val)
1018 #define bfin_read_PORTA_DIR_CLEAR()     bfin_read16(PORTA_DIR_CLEAR)
1019 #define bfin_write_PORTA_DIR_CLEAR(val) bfin_write16(PORTA_DIR_CLEAR, val)
1020 #define bfin_read_PORTA_INEN()          bfin_read16(PORTA_INEN)
1021 #define bfin_write_PORTA_INEN(val)      bfin_write16(PORTA_INEN, val)
1022 #define bfin_read_PORTA_MUX()           bfin_read32(PORTA_MUX)
1023 #define bfin_write_PORTA_MUX(val)       bfin_write32(PORTA_MUX, val)
1024
1025 /* Port B Registers */
1026
1027 #define bfin_read_PORTB_FER()           bfin_read16(PORTB_FER)
1028 #define bfin_write_PORTB_FER(val)       bfin_write16(PORTB_FER, val)
1029 #define bfin_read_PORTB()               bfin_read16(PORTB)
1030 #define bfin_write_PORTB(val)           bfin_write16(PORTB, val)
1031 #define bfin_read_PORTB_SET()           bfin_read16(PORTB_SET)
1032 #define bfin_write_PORTB_SET(val)       bfin_write16(PORTB_SET, val)
1033 #define bfin_read_PORTB_CLEAR()         bfin_read16(PORTB_CLEAR)
1034 #define bfin_write_PORTB_CLEAR(val)     bfin_write16(PORTB_CLEAR, val)
1035 #define bfin_read_PORTB_DIR_SET()       bfin_read16(PORTB_DIR_SET)
1036 #define bfin_write_PORTB_DIR_SET(val)   bfin_write16(PORTB_DIR_SET, val)
1037 #define bfin_read_PORTB_DIR_CLEAR()     bfin_read16(PORTB_DIR_CLEAR)
1038 #define bfin_write_PORTB_DIR_CLEAR(val) bfin_write16(PORTB_DIR_CLEAR, val)
1039 #define bfin_read_PORTB_INEN()          bfin_read16(PORTB_INEN)
1040 #define bfin_write_PORTB_INEN(val)      bfin_write16(PORTB_INEN, val)
1041 #define bfin_read_PORTB_MUX()           bfin_read32(PORTB_MUX)
1042 #define bfin_write_PORTB_MUX(val)       bfin_write32(PORTB_MUX, val)
1043
1044 /* Port C Registers */
1045
1046 #define bfin_read_PORTC_FER()           bfin_read16(PORTC_FER)
1047 #define bfin_write_PORTC_FER(val)       bfin_write16(PORTC_FER, val)
1048 #define bfin_read_PORTC()               bfin_read16(PORTC)
1049 #define bfin_write_PORTC(val)           bfin_write16(PORTC, val)
1050 #define bfin_read_PORTC_SET()           bfin_read16(PORTC_SET)
1051 #define bfin_write_PORTC_SET(val)       bfin_write16(PORTC_SET, val)
1052 #define bfin_read_PORTC_CLEAR()         bfin_read16(PORTC_CLEAR)
1053 #define bfin_write_PORTC_CLEAR(val)     bfin_write16(PORTC_CLEAR, val)
1054 #define bfin_read_PORTC_DIR_SET()       bfin_read16(PORTC_DIR_SET)
1055 #define bfin_write_PORTC_DIR_SET(val)   bfin_write16(PORTC_DIR_SET, val)
1056 #define bfin_read_PORTC_DIR_CLEAR()     bfin_read16(PORTC_DIR_CLEAR)
1057 #define bfin_write_PORTC_DIR_CLEAR(val) bfin_write16(PORTC_DIR_CLEAR, val)
1058 #define bfin_read_PORTC_INEN()          bfin_read16(PORTC_INEN)
1059 #define bfin_write_PORTC_INEN(val)      bfin_write16(PORTC_INEN, val)
1060 #define bfin_read_PORTC_MUX()           bfin_read32(PORTC_MUX)
1061 #define bfin_write_PORTC_MUX(val)       bfin_write32(PORTC_MUX, val)
1062
1063 /* Port D Registers */
1064
1065 #define bfin_read_PORTD_FER()           bfin_read16(PORTD_FER)
1066 #define bfin_write_PORTD_FER(val)       bfin_write16(PORTD_FER, val)
1067 #define bfin_read_PORTD()               bfin_read16(PORTD)
1068 #define bfin_write_PORTD(val)           bfin_write16(PORTD, val)
1069 #define bfin_read_PORTD_SET()           bfin_read16(PORTD_SET)
1070 #define bfin_write_PORTD_SET(val)       bfin_write16(PORTD_SET, val)
1071 #define bfin_read_PORTD_CLEAR()         bfin_read16(PORTD_CLEAR)
1072 #define bfin_write_PORTD_CLEAR(val)     bfin_write16(PORTD_CLEAR, val)
1073 #define bfin_read_PORTD_DIR_SET()       bfin_read16(PORTD_DIR_SET)
1074 #define bfin_write_PORTD_DIR_SET(val)   bfin_write16(PORTD_DIR_SET, val)
1075 #define bfin_read_PORTD_DIR_CLEAR()     bfin_read16(PORTD_DIR_CLEAR)
1076 #define bfin_write_PORTD_DIR_CLEAR(val) bfin_write16(PORTD_DIR_CLEAR, val)
1077 #define bfin_read_PORTD_INEN()          bfin_read16(PORTD_INEN)
1078 #define bfin_write_PORTD_INEN(val)      bfin_write16(PORTD_INEN, val)
1079 #define bfin_read_PORTD_MUX()           bfin_read32(PORTD_MUX)
1080 #define bfin_write_PORTD_MUX(val)       bfin_write32(PORTD_MUX, val)
1081
1082 /* Port E Registers */
1083
1084 #define bfin_read_PORTE_FER()           bfin_read16(PORTE_FER)
1085 #define bfin_write_PORTE_FER(val)       bfin_write16(PORTE_FER, val)
1086 #define bfin_read_PORTE()               bfin_read16(PORTE)
1087 #define bfin_write_PORTE(val)           bfin_write16(PORTE, val)
1088 #define bfin_read_PORTE_SET()           bfin_read16(PORTE_SET)
1089 #define bfin_write_PORTE_SET(val)       bfin_write16(PORTE_SET, val)
1090 #define bfin_read_PORTE_CLEAR()         bfin_read16(PORTE_CLEAR)
1091 #define bfin_write_PORTE_CLEAR(val)     bfin_write16(PORTE_CLEAR, val)
1092 #define bfin_read_PORTE_DIR_SET()       bfin_read16(PORTE_DIR_SET)
1093 #define bfin_write_PORTE_DIR_SET(val)   bfin_write16(PORTE_DIR_SET, val)
1094 #define bfin_read_PORTE_DIR_CLEAR()     bfin_read16(PORTE_DIR_CLEAR)
1095 #define bfin_write_PORTE_DIR_CLEAR(val) bfin_write16(PORTE_DIR_CLEAR, val)
1096 #define bfin_read_PORTE_INEN()          bfin_read16(PORTE_INEN)
1097 #define bfin_write_PORTE_INEN(val)      bfin_write16(PORTE_INEN, val)
1098 #define bfin_read_PORTE_MUX()           bfin_read32(PORTE_MUX)
1099 #define bfin_write_PORTE_MUX(val)       bfin_write32(PORTE_MUX, val)
1100
1101 /* Port F Registers */
1102
1103 #define bfin_read_PORTF_FER()           bfin_read16(PORTF_FER)
1104 #define bfin_write_PORTF_FER(val)       bfin_write16(PORTF_FER, val)
1105 #define bfin_read_PORTF()               bfin_read16(PORTF)
1106 #define bfin_write_PORTF(val)           bfin_write16(PORTF, val)
1107 #define bfin_read_PORTF_SET()           bfin_read16(PORTF_SET)
1108 #define bfin_write_PORTF_SET(val)       bfin_write16(PORTF_SET, val)
1109 #define bfin_read_PORTF_CLEAR()         bfin_read16(PORTF_CLEAR)
1110 #define bfin_write_PORTF_CLEAR(val)     bfin_write16(PORTF_CLEAR, val)
1111 #define bfin_read_PORTF_DIR_SET()       bfin_read16(PORTF_DIR_SET)
1112 #define bfin_write_PORTF_DIR_SET(val)   bfin_write16(PORTF_DIR_SET, val)
1113 #define bfin_read_PORTF_DIR_CLEAR()     bfin_read16(PORTF_DIR_CLEAR)
1114 #define bfin_write_PORTF_DIR_CLEAR(val) bfin_write16(PORTF_DIR_CLEAR, val)
1115 #define bfin_read_PORTF_INEN()          bfin_read16(PORTF_INEN)
1116 #define bfin_write_PORTF_INEN(val)      bfin_write16(PORTF_INEN, val)
1117 #define bfin_read_PORTF_MUX()           bfin_read32(PORTF_MUX)
1118 #define bfin_write_PORTF_MUX(val)       bfin_write32(PORTF_MUX, val)
1119
1120 /* Port G Registers */
1121
1122 #define bfin_read_PORTG_FER()           bfin_read16(PORTG_FER)
1123 #define bfin_write_PORTG_FER(val)       bfin_write16(PORTG_FER, val)
1124 #define bfin_read_PORTG()               bfin_read16(PORTG)
1125 #define bfin_write_PORTG(val)           bfin_write16(PORTG, val)
1126 #define bfin_read_PORTG_SET()           bfin_read16(PORTG_SET)
1127 #define bfin_write_PORTG_SET(val)       bfin_write16(PORTG_SET, val)
1128 #define bfin_read_PORTG_CLEAR()         bfin_read16(PORTG_CLEAR)
1129 #define bfin_write_PORTG_CLEAR(val)     bfin_write16(PORTG_CLEAR, val)
1130 #define bfin_read_PORTG_DIR_SET()       bfin_read16(PORTG_DIR_SET)
1131 #define bfin_write_PORTG_DIR_SET(val)   bfin_write16(PORTG_DIR_SET, val)
1132 #define bfin_read_PORTG_DIR_CLEAR()     bfin_read16(PORTG_DIR_CLEAR)
1133 #define bfin_write_PORTG_DIR_CLEAR(val) bfin_write16(PORTG_DIR_CLEAR, val)
1134 #define bfin_read_PORTG_INEN()          bfin_read16(PORTG_INEN)
1135 #define bfin_write_PORTG_INEN(val)      bfin_write16(PORTG_INEN, val)
1136 #define bfin_read_PORTG_MUX()           bfin_read32(PORTG_MUX)
1137 #define bfin_write_PORTG_MUX(val)       bfin_write32(PORTG_MUX, val)
1138
1139 /* Port H Registers */
1140
1141 #define bfin_read_PORTH_FER()           bfin_read16(PORTH_FER)
1142 #define bfin_write_PORTH_FER(val)       bfin_write16(PORTH_FER, val)
1143 #define bfin_read_PORTH()               bfin_read16(PORTH)
1144 #define bfin_write_PORTH(val)           bfin_write16(PORTH, val)
1145 #define bfin_read_PORTH_SET()           bfin_read16(PORTH_SET)
1146 #define bfin_write_PORTH_SET(val)       bfin_write16(PORTH_SET, val)
1147 #define bfin_read_PORTH_CLEAR()         bfin_read16(PORTH_CLEAR)
1148 #define bfin_write_PORTH_CLEAR(val)     bfin_write16(PORTH_CLEAR, val)
1149 #define bfin_read_PORTH_DIR_SET()       bfin_read16(PORTH_DIR_SET)
1150 #define bfin_write_PORTH_DIR_SET(val)   bfin_write16(PORTH_DIR_SET, val)
1151 #define bfin_read_PORTH_DIR_CLEAR()     bfin_read16(PORTH_DIR_CLEAR)
1152 #define bfin_write_PORTH_DIR_CLEAR(val) bfin_write16(PORTH_DIR_CLEAR, val)
1153 #define bfin_read_PORTH_INEN()          bfin_read16(PORTH_INEN)
1154 #define bfin_write_PORTH_INEN(val)      bfin_write16(PORTH_INEN, val)
1155 #define bfin_read_PORTH_MUX()           bfin_read32(PORTH_MUX)
1156 #define bfin_write_PORTH_MUX(val)       bfin_write32(PORTH_MUX, val)
1157
1158 /* Port I Registers */
1159
1160 #define bfin_read_PORTI_FER()           bfin_read16(PORTI_FER)
1161 #define bfin_write_PORTI_FER(val)       bfin_write16(PORTI_FER, val)
1162 #define bfin_read_PORTI()               bfin_read16(PORTI)
1163 #define bfin_write_PORTI(val)           bfin_write16(PORTI, val)
1164 #define bfin_read_PORTI_SET()           bfin_read16(PORTI_SET)
1165 #define bfin_write_PORTI_SET(val)       bfin_write16(PORTI_SET, val)
1166 #define bfin_read_PORTI_CLEAR()         bfin_read16(PORTI_CLEAR)
1167 #define bfin_write_PORTI_CLEAR(val)     bfin_write16(PORTI_CLEAR, val)
1168 #define bfin_read_PORTI_DIR_SET()       bfin_read16(PORTI_DIR_SET)
1169 #define bfin_write_PORTI_DIR_SET(val)   bfin_write16(PORTI_DIR_SET, val)
1170 #define bfin_read_PORTI_DIR_CLEAR()     bfin_read16(PORTI_DIR_CLEAR)
1171 #define bfin_write_PORTI_DIR_CLEAR(val) bfin_write16(PORTI_DIR_CLEAR, val)
1172 #define bfin_read_PORTI_INEN()          bfin_read16(PORTI_INEN)
1173 #define bfin_write_PORTI_INEN(val)      bfin_write16(PORTI_INEN, val)
1174 #define bfin_read_PORTI_MUX()           bfin_read32(PORTI_MUX)
1175 #define bfin_write_PORTI_MUX(val)       bfin_write32(PORTI_MUX, val)
1176
1177 /* Port J Registers */
1178
1179 #define bfin_read_PORTJ_FER()           bfin_read16(PORTJ_FER)
1180 #define bfin_write_PORTJ_FER(val)       bfin_write16(PORTJ_FER, val)
1181 #define bfin_read_PORTJ()               bfin_read16(PORTJ)
1182 #define bfin_write_PORTJ(val)           bfin_write16(PORTJ, val)
1183 #define bfin_read_PORTJ_SET()           bfin_read16(PORTJ_SET)
1184 #define bfin_write_PORTJ_SET(val)       bfin_write16(PORTJ_SET, val)
1185 #define bfin_read_PORTJ_CLEAR()         bfin_read16(PORTJ_CLEAR)
1186 #define bfin_write_PORTJ_CLEAR(val)     bfin_write16(PORTJ_CLEAR, val)
1187 #define bfin_read_PORTJ_DIR_SET()       bfin_read16(PORTJ_DIR_SET)
1188 #define bfin_write_PORTJ_DIR_SET(val)   bfin_write16(PORTJ_DIR_SET, val)
1189 #define bfin_read_PORTJ_DIR_CLEAR()     bfin_read16(PORTJ_DIR_CLEAR)
1190 #define bfin_write_PORTJ_DIR_CLEAR(val) bfin_write16(PORTJ_DIR_CLEAR, val)
1191 #define bfin_read_PORTJ_INEN()          bfin_read16(PORTJ_INEN)
1192 #define bfin_write_PORTJ_INEN(val)      bfin_write16(PORTJ_INEN, val)
1193 #define bfin_read_PORTJ_MUX()           bfin_read32(PORTJ_MUX)
1194 #define bfin_write_PORTJ_MUX(val)       bfin_write32(PORTJ_MUX, val)
1195
1196 /* PWM Timer Registers */
1197
1198 #define bfin_read_TIMER0_CONFIG()               bfin_read16(TIMER0_CONFIG)
1199 #define bfin_write_TIMER0_CONFIG(val)           bfin_write16(TIMER0_CONFIG, val)
1200 #define bfin_read_TIMER0_COUNTER()              bfin_read32(TIMER0_COUNTER)
1201 #define bfin_write_TIMER0_COUNTER(val)          bfin_write32(TIMER0_COUNTER, val)
1202 #define bfin_read_TIMER0_PERIOD()               bfin_read32(TIMER0_PERIOD)
1203 #define bfin_write_TIMER0_PERIOD(val)           bfin_write32(TIMER0_PERIOD, val)
1204 #define bfin_read_TIMER0_WIDTH()                bfin_read32(TIMER0_WIDTH)
1205 #define bfin_write_TIMER0_WIDTH(val)            bfin_write32(TIMER0_WIDTH, val)
1206 #define bfin_read_TIMER1_CONFIG()               bfin_read16(TIMER1_CONFIG)
1207 #define bfin_write_TIMER1_CONFIG(val)           bfin_write16(TIMER1_CONFIG, val)
1208 #define bfin_read_TIMER1_COUNTER()              bfin_read32(TIMER1_COUNTER)
1209 #define bfin_write_TIMER1_COUNTER(val)          bfin_write32(TIMER1_COUNTER, val)
1210 #define bfin_read_TIMER1_PERIOD()               bfin_read32(TIMER1_PERIOD)
1211 #define bfin_write_TIMER1_PERIOD(val)           bfin_write32(TIMER1_PERIOD, val)
1212 #define bfin_read_TIMER1_WIDTH()                bfin_read32(TIMER1_WIDTH)
1213 #define bfin_write_TIMER1_WIDTH(val)            bfin_write32(TIMER1_WIDTH, val)
1214 #define bfin_read_TIMER2_CONFIG()               bfin_read16(TIMER2_CONFIG)
1215 #define bfin_write_TIMER2_CONFIG(val)           bfin_write16(TIMER2_CONFIG, val)
1216 #define bfin_read_TIMER2_COUNTER()              bfin_read32(TIMER2_COUNTER)
1217 #define bfin_write_TIMER2_COUNTER(val)          bfin_write32(TIMER2_COUNTER, val)
1218 #define bfin_read_TIMER2_PERIOD()               bfin_read32(TIMER2_PERIOD)
1219 #define bfin_write_TIMER2_PERIOD(val)           bfin_write32(TIMER2_PERIOD, val)
1220 #define bfin_read_TIMER2_WIDTH()                bfin_read32(TIMER2_WIDTH)
1221 #define bfin_write_TIMER2_WIDTH(val)            bfin_write32(TIMER2_WIDTH, val)
1222 #define bfin_read_TIMER3_CONFIG()               bfin_read16(TIMER3_CONFIG)
1223 #define bfin_write_TIMER3_CONFIG(val)           bfin_write16(TIMER3_CONFIG, val)
1224 #define bfin_read_TIMER3_COUNTER()              bfin_read32(TIMER3_COUNTER)
1225 #define bfin_write_TIMER3_COUNTER(val)          bfin_write32(TIMER3_COUNTER, val)
1226 #define bfin_read_TIMER3_PERIOD()               bfin_read32(TIMER3_PERIOD)
1227 #define bfin_write_TIMER3_PERIOD(val)           bfin_write32(TIMER3_PERIOD, val)
1228 #define bfin_read_TIMER3_WIDTH()                bfin_read32(TIMER3_WIDTH)
1229 #define bfin_write_TIMER3_WIDTH(val)            bfin_write32(TIMER3_WIDTH, val)
1230 #define bfin_read_TIMER4_CONFIG()               bfin_read16(TIMER4_CONFIG)
1231 #define bfin_write_TIMER4_CONFIG(val)           bfin_write16(TIMER4_CONFIG, val)
1232 #define bfin_read_TIMER4_COUNTER()              bfin_read32(TIMER4_COUNTER)
1233 #define bfin_write_TIMER4_COUNTER(val)          bfin_write32(TIMER4_COUNTER, val)
1234 #define bfin_read_TIMER4_PERIOD()               bfin_read32(TIMER4_PERIOD)
1235 #define bfin_write_TIMER4_PERIOD(val)           bfin_write32(TIMER4_PERIOD, val)
1236 #define bfin_read_TIMER4_WIDTH()                bfin_read32(TIMER4_WIDTH)
1237 #define bfin_write_TIMER4_WIDTH(val)            bfin_write32(TIMER4_WIDTH, val)
1238 #define bfin_read_TIMER5_CONFIG()               bfin_read16(TIMER5_CONFIG)
1239 #define bfin_write_TIMER5_CONFIG(val)           bfin_write16(TIMER5_CONFIG, val)
1240 #define bfin_read_TIMER5_COUNTER()              bfin_read32(TIMER5_COUNTER)
1241 #define bfin_write_TIMER5_COUNTER(val)          bfin_write32(TIMER5_COUNTER, val)
1242 #define bfin_read_TIMER5_PERIOD()               bfin_read32(TIMER5_PERIOD)
1243 #define bfin_write_TIMER5_PERIOD(val)           bfin_write32(TIMER5_PERIOD, val)
1244 #define bfin_read_TIMER5_WIDTH()                bfin_read32(TIMER5_WIDTH)
1245 #define bfin_write_TIMER5_WIDTH(val)            bfin_write32(TIMER5_WIDTH, val)
1246 #define bfin_read_TIMER6_CONFIG()               bfin_read16(TIMER6_CONFIG)
1247 #define bfin_write_TIMER6_CONFIG(val)           bfin_write16(TIMER6_CONFIG, val)
1248 #define bfin_read_TIMER6_COUNTER()              bfin_read32(TIMER6_COUNTER)
1249 #define bfin_write_TIMER6_COUNTER(val)          bfin_write32(TIMER6_COUNTER, val)
1250 #define bfin_read_TIMER6_PERIOD()               bfin_read32(TIMER6_PERIOD)
1251 #define bfin_write_TIMER6_PERIOD(val)           bfin_write32(TIMER6_PERIOD, val)
1252 #define bfin_read_TIMER6_WIDTH()                bfin_read32(TIMER6_WIDTH)
1253 #define bfin_write_TIMER6_WIDTH(val)            bfin_write32(TIMER6_WIDTH, val)
1254 #define bfin_read_TIMER7_CONFIG()               bfin_read16(TIMER7_CONFIG)
1255 #define bfin_write_TIMER7_CONFIG(val)           bfin_write16(TIMER7_CONFIG, val)
1256 #define bfin_read_TIMER7_COUNTER()              bfin_read32(TIMER7_COUNTER)
1257 #define bfin_write_TIMER7_COUNTER(val)          bfin_write32(TIMER7_COUNTER, val)
1258 #define bfin_read_TIMER7_PERIOD()               bfin_read32(TIMER7_PERIOD)
1259 #define bfin_write_TIMER7_PERIOD(val)           bfin_write32(TIMER7_PERIOD, val)
1260 #define bfin_read_TIMER7_WIDTH()                bfin_read32(TIMER7_WIDTH)
1261 #define bfin_write_TIMER7_WIDTH(val)            bfin_write32(TIMER7_WIDTH, val)
1262
1263 /* Timer Groubfin_read_() of 8 */
1264
1265 #define bfin_read_TIMER_ENABLE0()               bfin_read16(TIMER_ENABLE0)
1266 #define bfin_write_TIMER_ENABLE0(val)           bfin_write16(TIMER_ENABLE0, val)
1267 #define bfin_read_TIMER_DISABLE0()              bfin_read16(TIMER_DISABLE0)
1268 #define bfin_write_TIMER_DISABLE0(val)          bfin_write16(TIMER_DISABLE0, val)
1269 #define bfin_read_TIMER_STATUS0()               bfin_read32(TIMER_STATUS0)
1270 #define bfin_write_TIMER_STATUS0(val)           bfin_write32(TIMER_STATUS0, val)
1271
1272 /* DMAC1 Registers */
1273
1274 #define bfin_read_DMAC1_TCPER()                 bfin_read16(DMAC1_TCPER)
1275 #define bfin_write_DMAC1_TCPER(val)             bfin_write16(DMAC1_TCPER, val)
1276 #define bfin_read_DMAC1_TCCNT()                 bfin_read16(DMAC1_TCCNT)
1277 #define bfin_write_DMAC1_TCCNT(val)             bfin_write16(DMAC1_TCCNT, val)
1278
1279 /* DMA Channel 12 Registers */
1280
1281 #define bfin_read_DMA12_NEXT_DESC_PTR()         bfin_read32(DMA12_NEXT_DESC_PTR)
1282 #define bfin_write_DMA12_NEXT_DESC_PTR(val)     bfin_write32(DMA12_NEXT_DESC_PTR)
1283 #define bfin_read_DMA12_START_ADDR()            bfin_read32(DMA12_START_ADDR)
1284 #define bfin_write_DMA12_START_ADDR(val)        bfin_write32(DMA12_START_ADDR)
1285 #define bfin_read_DMA12_CONFIG()                bfin_read16(DMA12_CONFIG)
1286 #define bfin_write_DMA12_CONFIG(val)            bfin_write16(DMA12_CONFIG, val)
1287 #define bfin_read_DMA12_X_COUNT()               bfin_read16(DMA12_X_COUNT)
1288 #define bfin_write_DMA12_X_COUNT(val)           bfin_write16(DMA12_X_COUNT, val)
1289 #define bfin_read_DMA12_X_MODIFY()              bfin_read16(DMA12_X_MODIFY)
1290 #define bfin_write_DMA12_X_MODIFY(val)          bfin_write16(DMA12_X_MODIFY)
1291 #define bfin_read_DMA12_Y_COUNT()               bfin_read16(DMA12_Y_COUNT)
1292 #define bfin_write_DMA12_Y_COUNT(val)           bfin_write16(DMA12_Y_COUNT, val)
1293 #define bfin_read_DMA12_Y_MODIFY()              bfin_read16(DMA12_Y_MODIFY)
1294 #define bfin_write_DMA12_Y_MODIFY(val)          bfin_write16(DMA12_Y_MODIFY)
1295 #define bfin_read_DMA12_CURR_DESC_PTR()         bfin_read32(DMA12_CURR_DESC_PTR)
1296 #define bfin_write_DMA12_CURR_DESC_PTR(val)     bfin_write32(DMA12_CURR_DESC_PTR)
1297 #define bfin_read_DMA12_CURR_ADDR()             bfin_read32(DMA12_CURR_ADDR)
1298 #define bfin_write_DMA12_CURR_ADDR(val)         bfin_write32(DMA12_CURR_ADDR)
1299 #define bfin_read_DMA12_IRQ_STATUS()            bfin_read16(DMA12_IRQ_STATUS)
1300 #define bfin_write_DMA12_IRQ_STATUS(val)        bfin_write16(DMA12_IRQ_STATUS, val)
1301 #define bfin_read_DMA12_PERIPHERAL_MAP()        bfin_read16(DMA12_PERIPHERAL_MAP)
1302 #define bfin_write_DMA12_PERIPHERAL_MAP(val)    bfin_write16(DMA12_PERIPHERAL_MAP, val)
1303 #define bfin_read_DMA12_CURR_X_COUNT()          bfin_read16(DMA12_CURR_X_COUNT)
1304 #define bfin_write_DMA12_CURR_X_COUNT(val)      bfin_write16(DMA12_CURR_X_COUNT, val)
1305 #define bfin_read_DMA12_CURR_Y_COUNT()          bfin_read16(DMA12_CURR_Y_COUNT)
1306 #define bfin_write_DMA12_CURR_Y_COUNT(val)      bfin_write16(DMA12_CURR_Y_COUNT, val)
1307
1308 /* DMA Channel 13 Registers */
1309
1310 #define bfin_read_DMA13_NEXT_DESC_PTR()         bfin_read32(DMA13_NEXT_DESC_PTR)
1311 #define bfin_write_DMA13_NEXT_DESC_PTR(val)     bfin_write32(DMA13_NEXT_DESC_PTR)
1312 #define bfin_read_DMA13_START_ADDR()            bfin_read32(DMA13_START_ADDR)
1313 #define bfin_write_DMA13_START_ADDR(val)        bfin_write32(DMA13_START_ADDR)
1314 #define bfin_read_DMA13_CONFIG()                bfin_read16(DMA13_CONFIG)
1315 #define bfin_write_DMA13_CONFIG(val)            bfin_write16(DMA13_CONFIG, val)
1316 #define bfin_read_DMA13_X_COUNT()               bfin_read16(DMA13_X_COUNT)
1317 #define bfin_write_DMA13_X_COUNT(val)           bfin_write16(DMA13_X_COUNT, val)
1318 #define bfin_read_DMA13_X_MODIFY()              bfin_read16(DMA13_X_MODIFY)
1319 #define bfin_write_DMA13_X_MODIFY(val)          bfin_write16(DMA13_X_MODIFY)
1320 #define bfin_read_DMA13_Y_COUNT()               bfin_read16(DMA13_Y_COUNT)
1321 #define bfin_write_DMA13_Y_COUNT(val)           bfin_write16(DMA13_Y_COUNT, val)
1322 #define bfin_read_DMA13_Y_MODIFY()              bfin_read16(DMA13_Y_MODIFY)
1323 #define bfin_write_DMA13_Y_MODIFY(val)          bfin_write16(DMA13_Y_MODIFY)
1324 #define bfin_read_DMA13_CURR_DESC_PTR()         bfin_read32(DMA13_CURR_DESC_PTR)
1325 #define bfin_write_DMA13_CURR_DESC_PTR(val)     bfin_write32(DMA13_CURR_DESC_PTR)
1326 #define bfin_read_DMA13_CURR_ADDR()             bfin_read32(DMA13_CURR_ADDR)
1327 #define bfin_write_DMA13_CURR_ADDR(val)         bfin_write32(DMA13_CURR_ADDR)
1328 #define bfin_read_DMA13_IRQ_STATUS()            bfin_read16(DMA13_IRQ_STATUS)
1329 #define bfin_write_DMA13_IRQ_STATUS(val)        bfin_write16(DMA13_IRQ_STATUS, val)
1330 #define bfin_read_DMA13_PERIPHERAL_MAP()        bfin_read16(DMA13_PERIPHERAL_MAP)
1331 #define bfin_write_DMA13_PERIPHERAL_MAP(val)    bfin_write16(DMA13_PERIPHERAL_MAP, val)
1332 #define bfin_read_DMA13_CURR_X_COUNT()          bfin_read16(DMA13_CURR_X_COUNT)
1333 #define bfin_write_DMA13_CURR_X_COUNT(val)      bfin_write16(DMA13_CURR_X_COUNT, val)
1334 #define bfin_read_DMA13_CURR_Y_COUNT()          bfin_read16(DMA13_CURR_Y_COUNT)
1335 #define bfin_write_DMA13_CURR_Y_COUNT(val)      bfin_write16(DMA13_CURR_Y_COUNT, val)
1336
1337 /* DMA Channel 14 Registers */
1338
1339 #define bfin_read_DMA14_NEXT_DESC_PTR()         bfin_read32(DMA14_NEXT_DESC_PTR)
1340 #define bfin_write_DMA14_NEXT_DESC_PTR(val)     bfin_write32(DMA14_NEXT_DESC_PTR)
1341 #define bfin_read_DMA14_START_ADDR()            bfin_read32(DMA14_START_ADDR)
1342 #define bfin_write_DMA14_START_ADDR(val)        bfin_write32(DMA14_START_ADDR)
1343 #define bfin_read_DMA14_CONFIG()                bfin_read16(DMA14_CONFIG)
1344 #define bfin_write_DMA14_CONFIG(val)            bfin_write16(DMA14_CONFIG, val)
1345 #define bfin_read_DMA14_X_COUNT()               bfin_read16(DMA14_X_COUNT)
1346 #define bfin_write_DMA14_X_COUNT(val)           bfin_write16(DMA14_X_COUNT, val)
1347 #define bfin_read_DMA14_X_MODIFY()              bfin_read16(DMA14_X_MODIFY)
1348 #define bfin_write_DMA14_X_MODIFY(val)          bfin_write16(DMA14_X_MODIFY)
1349 #define bfin_read_DMA14_Y_COUNT()               bfin_read16(DMA14_Y_COUNT)
1350 #define bfin_write_DMA14_Y_COUNT(val)           bfin_write16(DMA14_Y_COUNT, val)
1351 #define bfin_read_DMA14_Y_MODIFY()              bfin_read16(DMA14_Y_MODIFY)
1352 #define bfin_write_DMA14_Y_MODIFY(val)          bfin_write16(DMA14_Y_MODIFY)
1353 #define bfin_read_DMA14_CURR_DESC_PTR()         bfin_read32(DMA14_CURR_DESC_PTR)
1354 #define bfin_write_DMA14_CURR_DESC_PTR(val)     bfin_write32(DMA14_CURR_DESC_PTR)
1355 #define bfin_read_DMA14_CURR_ADDR()             bfin_read32(DMA14_CURR_ADDR)
1356 #define bfin_write_DMA14_CURR_ADDR(val)         bfin_write32(DMA14_CURR_ADDR)
1357 #define bfin_read_DMA14_IRQ_STATUS()            bfin_read16(DMA14_IRQ_STATUS)
1358 #define bfin_write_DMA14_IRQ_STATUS(val)        bfin_write16(DMA14_IRQ_STATUS, val)
1359 #define bfin_read_DMA14_PERIPHERAL_MAP()        bfin_read16(DMA14_PERIPHERAL_MAP)
1360 #define bfin_write_DMA14_PERIPHERAL_MAP(val)    bfin_write16(DMA14_PERIPHERAL_MAP, val)
1361 #define bfin_read_DMA14_CURR_X_COUNT()          bfin_read16(DMA14_CURR_X_COUNT)
1362 #define bfin_write_DMA14_CURR_X_COUNT(val)      bfin_write16(DMA14_CURR_X_COUNT, val)
1363 #define bfin_read_DMA14_CURR_Y_COUNT()          bfin_read16(DMA14_CURR_Y_COUNT)
1364 #define bfin_write_DMA14_CURR_Y_COUNT(val)      bfin_write16(DMA14_CURR_Y_COUNT, val)
1365
1366 /* DMA Channel 15 Registers */
1367
1368 #define bfin_read_DMA15_NEXT_DESC_PTR()         bfin_read32(DMA15_NEXT_DESC_PTR)
1369 #define bfin_write_DMA15_NEXT_DESC_PTR(val)     bfin_write32(DMA15_NEXT_DESC_PTR)
1370 #define bfin_read_DMA15_START_ADDR()            bfin_read32(DMA15_START_ADDR)
1371 #define bfin_write_DMA15_START_ADDR(val)        bfin_write32(DMA15_START_ADDR)
1372 #define bfin_read_DMA15_CONFIG()                bfin_read16(DMA15_CONFIG)
1373 #define bfin_write_DMA15_CONFIG(val)            bfin_write16(DMA15_CONFIG, val)
1374 #define bfin_read_DMA15_X_COUNT()               bfin_read16(DMA15_X_COUNT)
1375 #define bfin_write_DMA15_X_COUNT(val)           bfin_write16(DMA15_X_COUNT, val)
1376 #define bfin_read_DMA15_X_MODIFY()              bfin_read16(DMA15_X_MODIFY)
1377 #define bfin_write_DMA15_X_MODIFY(val)          bfin_write16(DMA15_X_MODIFY)
1378 #define bfin_read_DMA15_Y_COUNT()               bfin_read16(DMA15_Y_COUNT)
1379 #define bfin_write_DMA15_Y_COUNT(val)           bfin_write16(DMA15_Y_COUNT, val)
1380 #define bfin_read_DMA15_Y_MODIFY()              bfin_read16(DMA15_Y_MODIFY)
1381 #define bfin_write_DMA15_Y_MODIFY(val)          bfin_write16(DMA15_Y_MODIFY)
1382 #define bfin_read_DMA15_CURR_DESC_PTR()         bfin_read32(DMA15_CURR_DESC_PTR)
1383 #define bfin_write_DMA15_CURR_DESC_PTR(val)     bfin_write32(DMA15_CURR_DESC_PTR)
1384 #define bfin_read_DMA15_CURR_ADDR()             bfin_read32(DMA15_CURR_ADDR)
1385 #define bfin_write_DMA15_CURR_ADDR(val)         bfin_write32(DMA15_CURR_ADDR)
1386 #define bfin_read_DMA15_IRQ_STATUS()            bfin_read16(DMA15_IRQ_STATUS)
1387 #define bfin_write_DMA15_IRQ_STATUS(val)        bfin_write16(DMA15_IRQ_STATUS, val)
1388 #define bfin_read_DMA15_PERIPHERAL_MAP()        bfin_read16(DMA15_PERIPHERAL_MAP)
1389 #define bfin_write_DMA15_PERIPHERAL_MAP(val)    bfin_write16(DMA15_PERIPHERAL_MAP, val)
1390 #define bfin_read_DMA15_CURR_X_COUNT()          bfin_read16(DMA15_CURR_X_COUNT)
1391 #define bfin_write_DMA15_CURR_X_COUNT(val)      bfin_write16(DMA15_CURR_X_COUNT, val)
1392 #define bfin_read_DMA15_CURR_Y_COUNT()          bfin_read16(DMA15_CURR_Y_COUNT)
1393 #define bfin_write_DMA15_CURR_Y_COUNT(val)      bfin_write16(DMA15_CURR_Y_COUNT, val)
1394
1395 /* DMA Channel 16 Registers */
1396
1397 #define bfin_read_DMA16_NEXT_DESC_PTR()         bfin_read32(DMA16_NEXT_DESC_PTR)
1398 #define bfin_write_DMA16_NEXT_DESC_PTR(val)     bfin_write32(DMA16_NEXT_DESC_PTR)
1399 #define bfin_read_DMA16_START_ADDR()            bfin_read32(DMA16_START_ADDR)
1400 #define bfin_write_DMA16_START_ADDR(val)        bfin_write32(DMA16_START_ADDR)
1401 #define bfin_read_DMA16_CONFIG()                bfin_read16(DMA16_CONFIG)
1402 #define bfin_write_DMA16_CONFIG(val)            bfin_write16(DMA16_CONFIG, val)
1403 #define bfin_read_DMA16_X_COUNT()               bfin_read16(DMA16_X_COUNT)
1404 #define bfin_write_DMA16_X_COUNT(val)           bfin_write16(DMA16_X_COUNT, val)
1405 #define bfin_read_DMA16_X_MODIFY()              bfin_read16(DMA16_X_MODIFY)
1406 #define bfin_write_DMA16_X_MODIFY(val)          bfin_write16(DMA16_X_MODIFY)
1407 #define bfin_read_DMA16_Y_COUNT()               bfin_read16(DMA16_Y_COUNT)
1408 #define bfin_write_DMA16_Y_COUNT(val)           bfin_write16(DMA16_Y_COUNT, val)
1409 #define bfin_read_DMA16_Y_MODIFY()              bfin_read16(DMA16_Y_MODIFY)
1410 #define bfin_write_DMA16_Y_MODIFY(val)          bfin_write16(DMA16_Y_MODIFY)
1411 #define bfin_read_DMA16_CURR_DESC_PTR()         bfin_read32(DMA16_CURR_DESC_PTR)
1412 #define bfin_write_DMA16_CURR_DESC_PTR(val)     bfin_write32(DMA16_CURR_DESC_PTR)
1413 #define bfin_read_DMA16_CURR_ADDR()             bfin_read32(DMA16_CURR_ADDR)
1414 #define bfin_write_DMA16_CURR_ADDR(val)         bfin_write32(DMA16_CURR_ADDR)
1415 #define bfin_read_DMA16_IRQ_STATUS()            bfin_read16(DMA16_IRQ_STATUS)
1416 #define bfin_write_DMA16_IRQ_STATUS(val)        bfin_write16(DMA16_IRQ_STATUS, val)
1417 #define bfin_read_DMA16_PERIPHERAL_MAP()        bfin_read16(DMA16_PERIPHERAL_MAP)
1418 #define bfin_write_DMA16_PERIPHERAL_MAP(val)    bfin_write16(DMA16_PERIPHERAL_MAP, val)
1419 #define bfin_read_DMA16_CURR_X_COUNT()          bfin_read16(DMA16_CURR_X_COUNT)
1420 #define bfin_write_DMA16_CURR_X_COUNT(val)      bfin_write16(DMA16_CURR_X_COUNT, val)
1421 #define bfin_read_DMA16_CURR_Y_COUNT()          bfin_read16(DMA16_CURR_Y_COUNT)
1422 #define bfin_write_DMA16_CURR_Y_COUNT(val)      bfin_write16(DMA16_CURR_Y_COUNT, val)
1423
1424 /* DMA Channel 17 Registers */
1425
1426 #define bfin_read_DMA17_NEXT_DESC_PTR()         bfin_read32(DMA17_NEXT_DESC_PTR)
1427 #define bfin_write_DMA17_NEXT_DESC_PTR(val)     bfin_write32(DMA17_NEXT_DESC_PTR)
1428 #define bfin_read_DMA17_START_ADDR()            bfin_read32(DMA17_START_ADDR)
1429 #define bfin_write_DMA17_START_ADDR(val)        bfin_write32(DMA17_START_ADDR)
1430 #define bfin_read_DMA17_CONFIG()                bfin_read16(DMA17_CONFIG)
1431 #define bfin_write_DMA17_CONFIG(val)            bfin_write16(DMA17_CONFIG, val)
1432 #define bfin_read_DMA17_X_COUNT()               bfin_read16(DMA17_X_COUNT)
1433 #define bfin_write_DMA17_X_COUNT(val)           bfin_write16(DMA17_X_COUNT, val)
1434 #define bfin_read_DMA17_X_MODIFY()              bfin_read16(DMA17_X_MODIFY)
1435 #define bfin_write_DMA17_X_MODIFY(val)          bfin_write16(DMA17_X_MODIFY)
1436 #define bfin_read_DMA17_Y_COUNT()               bfin_read16(DMA17_Y_COUNT)
1437 #define bfin_write_DMA17_Y_COUNT(val)           bfin_write16(DMA17_Y_COUNT, val)
1438 #define bfin_read_DMA17_Y_MODIFY()              bfin_read16(DMA17_Y_MODIFY)
1439 #define bfin_write_DMA17_Y_MODIFY(val)          bfin_write16(DMA17_Y_MODIFY)
1440 #define bfin_read_DMA17_CURR_DESC_PTR()         bfin_read32(DMA17_CURR_DESC_PTR)
1441 #define bfin_write_DMA17_CURR_DESC_PTR(val)     bfin_write32(DMA17_CURR_DESC_PTR)
1442 #define bfin_read_DMA17_CURR_ADDR()             bfin_read32(DMA17_CURR_ADDR)
1443 #define bfin_write_DMA17_CURR_ADDR(val)         bfin_write32(DMA17_CURR_ADDR)
1444 #define bfin_read_DMA17_IRQ_STATUS()            bfin_read16(DMA17_IRQ_STATUS)
1445 #define bfin_write_DMA17_IRQ_STATUS(val)        bfin_write16(DMA17_IRQ_STATUS, val)
1446 #define bfin_read_DMA17_PERIPHERAL_MAP()        bfin_read16(DMA17_PERIPHERAL_MAP)
1447 #define bfin_write_DMA17_PERIPHERAL_MAP(val)    bfin_write16(DMA17_PERIPHERAL_MAP, val)
1448 #define bfin_read_DMA17_CURR_X_COUNT()          bfin_read16(DMA17_CURR_X_COUNT)
1449 #define bfin_write_DMA17_CURR_X_COUNT(val)      bfin_write16(DMA17_CURR_X_COUNT, val)
1450 #define bfin_read_DMA17_CURR_Y_COUNT()          bfin_read16(DMA17_CURR_Y_COUNT)
1451 #define bfin_write_DMA17_CURR_Y_COUNT(val)      bfin_write16(DMA17_CURR_Y_COUNT, val)
1452
1453 /* DMA Channel 18 Registers */
1454
1455 #define bfin_read_DMA18_NEXT_DESC_PTR()         bfin_read32(DMA18_NEXT_DESC_PTR)
1456 #define bfin_write_DMA18_NEXT_DESC_PTR(val)     bfin_write32(DMA18_NEXT_DESC_PTR)
1457 #define bfin_read_DMA18_START_ADDR()            bfin_read32(DMA18_START_ADDR)
1458 #define bfin_write_DMA18_START_ADDR(val)        bfin_write32(DMA18_START_ADDR)
1459 #define bfin_read_DMA18_CONFIG()                bfin_read16(DMA18_CONFIG)
1460 #define bfin_write_DMA18_CONFIG(val)            bfin_write16(DMA18_CONFIG, val)
1461 #define bfin_read_DMA18_X_COUNT()               bfin_read16(DMA18_X_COUNT)
1462 #define bfin_write_DMA18_X_COUNT(val)           bfin_write16(DMA18_X_COUNT, val)
1463 #define bfin_read_DMA18_X_MODIFY()              bfin_read16(DMA18_X_MODIFY)
1464 #define bfin_write_DMA18_X_MODIFY(val)          bfin_write16(DMA18_X_MODIFY)
1465 #define bfin_read_DMA18_Y_COUNT()               bfin_read16(DMA18_Y_COUNT)
1466 #define bfin_write_DMA18_Y_COUNT(val)           bfin_write16(DMA18_Y_COUNT, val)
1467 #define bfin_read_DMA18_Y_MODIFY()              bfin_read16(DMA18_Y_MODIFY)
1468 #define bfin_write_DMA18_Y_MODIFY(val)          bfin_write16(DMA18_Y_MODIFY)
1469 #define bfin_read_DMA18_CURR_DESC_PTR()         bfin_read32(DMA18_CURR_DESC_PTR)
1470 #define bfin_write_DMA18_CURR_DESC_PTR(val)     bfin_write32(DMA18_CURR_DESC_PTR)
1471 #define bfin_read_DMA18_CURR_ADDR()             bfin_read32(DMA18_CURR_ADDR)
1472 #define bfin_write_DMA18_CURR_ADDR(val)         bfin_write32(DMA18_CURR_ADDR)
1473 #define bfin_read_DMA18_IRQ_STATUS()            bfin_read16(DMA18_IRQ_STATUS)
1474 #define bfin_write_DMA18_IRQ_STATUS(val)        bfin_write16(DMA18_IRQ_STATUS, val)
1475 #define bfin_read_DMA18_PERIPHERAL_MAP()        bfin_read16(DMA18_PERIPHERAL_MAP)
1476 #define bfin_write_DMA18_PERIPHERAL_MAP(val)    bfin_write16(DMA18_PERIPHERAL_MAP, val)
1477 #define bfin_read_DMA18_CURR_X_COUNT()          bfin_read16(DMA18_CURR_X_COUNT)
1478 #define bfin_write_DMA18_CURR_X_COUNT(val)      bfin_write16(DMA18_CURR_X_COUNT, val)
1479 #define bfin_read_DMA18_CURR_Y_COUNT()          bfin_read16(DMA18_CURR_Y_COUNT)
1480 #define bfin_write_DMA18_CURR_Y_COUNT(val)      bfin_write16(DMA18_CURR_Y_COUNT, val)
1481
1482 /* DMA Channel 19 Registers */
1483
1484 #define bfin_read_DMA19_NEXT_DESC_PTR()         bfin_read32(DMA19_NEXT_DESC_PTR)
1485 #define bfin_write_DMA19_NEXT_DESC_PTR(val)     bfin_write32(DMA19_NEXT_DESC_PTR)
1486 #define bfin_read_DMA19_START_ADDR()            bfin_read32(DMA19_START_ADDR)
1487 #define bfin_write_DMA19_START_ADDR(val)        bfin_write32(DMA19_START_ADDR)
1488 #define bfin_read_DMA19_CONFIG()                bfin_read16(DMA19_CONFIG)
1489 #define bfin_write_DMA19_CONFIG(val)            bfin_write16(DMA19_CONFIG, val)
1490 #define bfin_read_DMA19_X_COUNT()               bfin_read16(DMA19_X_COUNT)
1491 #define bfin_write_DMA19_X_COUNT(val)           bfin_write16(DMA19_X_COUNT, val)
1492 #define bfin_read_DMA19_X_MODIFY()              bfin_read16(DMA19_X_MODIFY)
1493 #define bfin_write_DMA19_X_MODIFY(val)          bfin_write16(DMA19_X_MODIFY)
1494 #define bfin_read_DMA19_Y_COUNT()               bfin_read16(DMA19_Y_COUNT)
1495 #define bfin_write_DMA19_Y_COUNT(val)           bfin_write16(DMA19_Y_COUNT, val)
1496 #define bfin_read_DMA19_Y_MODIFY()              bfin_read16(DMA19_Y_MODIFY)
1497 #define bfin_write_DMA19_Y_MODIFY(val)          bfin_write16(DMA19_Y_MODIFY)
1498 #define bfin_read_DMA19_CURR_DESC_PTR()         bfin_read32(DMA19_CURR_DESC_PTR)
1499 #define bfin_write_DMA19_CURR_DESC_PTR(val)     bfin_write32(DMA19_CURR_DESC_PTR)
1500 #define bfin_read_DMA19_CURR_ADDR()             bfin_read32(DMA19_CURR_ADDR)
1501 #define bfin_write_DMA19_CURR_ADDR(val)         bfin_write32(DMA19_CURR_ADDR)
1502 #define bfin_read_DMA19_IRQ_STATUS()            bfin_read16(DMA19_IRQ_STATUS)
1503 #define bfin_write_DMA19_IRQ_STATUS(val)        bfin_write16(DMA19_IRQ_STATUS, val)
1504 #define bfin_read_DMA19_PERIPHERAL_MAP()        bfin_read16(DMA19_PERIPHERAL_MAP)
1505 #define bfin_write_DMA19_PERIPHERAL_MAP(val)    bfin_write16(DMA19_PERIPHERAL_MAP, val)
1506 #define bfin_read_DMA19_CURR_X_COUNT()          bfin_read16(DMA19_CURR_X_COUNT)
1507 #define bfin_write_DMA19_CURR_X_COUNT(val)      bfin_write16(DMA19_CURR_X_COUNT, val)
1508 #define bfin_read_DMA19_CURR_Y_COUNT()          bfin_read16(DMA19_CURR_Y_COUNT)
1509 #define bfin_write_DMA19_CURR_Y_COUNT(val)      bfin_write16(DMA19_CURR_Y_COUNT, val)
1510
1511 /* DMA Channel 20 Registers */
1512
1513 #define bfin_read_DMA20_NEXT_DESC_PTR()         bfin_read32(DMA20_NEXT_DESC_PTR)
1514 #define bfin_write_DMA20_NEXT_DESC_PTR(val)     bfin_write32(DMA20_NEXT_DESC_PTR)
1515 #define bfin_read_DMA20_START_ADDR()            bfin_read32(DMA20_START_ADDR)
1516 #define bfin_write_DMA20_START_ADDR(val)        bfin_write32(DMA20_START_ADDR)
1517 #define bfin_read_DMA20_CONFIG()                bfin_read16(DMA20_CONFIG)
1518 #define bfin_write_DMA20_CONFIG(val)            bfin_write16(DMA20_CONFIG, val)
1519 #define bfin_read_DMA20_X_COUNT()               bfin_read16(DMA20_X_COUNT)
1520 #define bfin_write_DMA20_X_COUNT(val)           bfin_write16(DMA20_X_COUNT, val)
1521 #define bfin_read_DMA20_X_MODIFY()              bfin_read16(DMA20_X_MODIFY)
1522 #define bfin_write_DMA20_X_MODIFY(val)          bfin_write16(DMA20_X_MODIFY)
1523 #define bfin_read_DMA20_Y_COUNT()               bfin_read16(DMA20_Y_COUNT)
1524 #define bfin_write_DMA20_Y_COUNT(val)           bfin_write16(DMA20_Y_COUNT, val)
1525 #define bfin_read_DMA20_Y_MODIFY()              bfin_read16(DMA20_Y_MODIFY)
1526 #define bfin_write_DMA20_Y_MODIFY(val)          bfin_write16(DMA20_Y_MODIFY)
1527 #define bfin_read_DMA20_CURR_DESC_PTR()         bfin_read32(DMA20_CURR_DESC_PTR)
1528 #define bfin_write_DMA20_CURR_DESC_PTR(val)     bfin_write32(DMA20_CURR_DESC_PTR)
1529 #define bfin_read_DMA20_CURR_ADDR()             bfin_read32(DMA20_CURR_ADDR)
1530 #define bfin_write_DMA20_CURR_ADDR(val)         bfin_write32(DMA20_CURR_ADDR)
1531 #define bfin_read_DMA20_IRQ_STATUS()            bfin_read16(DMA20_IRQ_STATUS)
1532 #define bfin_write_DMA20_IRQ_STATUS(val)        bfin_write16(DMA20_IRQ_STATUS, val)
1533 #define bfin_read_DMA20_PERIPHERAL_MAP()        bfin_read16(DMA20_PERIPHERAL_MAP)
1534 #define bfin_write_DMA20_PERIPHERAL_MAP(val)    bfin_write16(DMA20_PERIPHERAL_MAP, val)
1535 #define bfin_read_DMA20_CURR_X_COUNT()          bfin_read16(DMA20_CURR_X_COUNT)
1536 #define bfin_write_DMA20_CURR_X_COUNT(val)      bfin_write16(DMA20_CURR_X_COUNT, val)
1537 #define bfin_read_DMA20_CURR_Y_COUNT()          bfin_read16(DMA20_CURR_Y_COUNT)
1538 #define bfin_write_DMA20_CURR_Y_COUNT(val)      bfin_write16(DMA20_CURR_Y_COUNT, val)
1539
1540 /* DMA Channel 21 Registers */
1541
1542 #define bfin_read_DMA21_NEXT_DESC_PTR()         bfin_read32(DMA21_NEXT_DESC_PTR)
1543 #define bfin_write_DMA21_NEXT_DESC_PTR(val)     bfin_write32(DMA21_NEXT_DESC_PTR)
1544 #define bfin_read_DMA21_START_ADDR()            bfin_read32(DMA21_START_ADDR)
1545 #define bfin_write_DMA21_START_ADDR(val)        bfin_write32(DMA21_START_ADDR)
1546 #define bfin_read_DMA21_CONFIG()                bfin_read16(DMA21_CONFIG)
1547 #define bfin_write_DMA21_CONFIG(val)            bfin_write16(DMA21_CONFIG, val)
1548 #define bfin_read_DMA21_X_COUNT()               bfin_read16(DMA21_X_COUNT)
1549 #define bfin_write_DMA21_X_COUNT(val)           bfin_write16(DMA21_X_COUNT, val)
1550 #define bfin_read_DMA21_X_MODIFY()              bfin_read16(DMA21_X_MODIFY)
1551 #define bfin_write_DMA21_X_MODIFY(val)          bfin_write16(DMA21_X_MODIFY)
1552 #define bfin_read_DMA21_Y_COUNT()               bfin_read16(DMA21_Y_COUNT)
1553 #define bfin_write_DMA21_Y_COUNT(val)           bfin_write16(DMA21_Y_COUNT, val)
1554 #define bfin_read_DMA21_Y_MODIFY()              bfin_read16(DMA21_Y_MODIFY)
1555 #define bfin_write_DMA21_Y_MODIFY(val)          bfin_write16(DMA21_Y_MODIFY)
1556 #define bfin_read_DMA21_CURR_DESC_PTR()         bfin_read32(DMA21_CURR_DESC_PTR)
1557 #define bfin_write_DMA21_CURR_DESC_PTR(val)     bfin_write32(DMA21_CURR_DESC_PTR)
1558 #define bfin_read_DMA21_CURR_ADDR()             bfin_read32(DMA21_CURR_ADDR)
1559 #define bfin_write_DMA21_CURR_ADDR(val)         bfin_write32(DMA21_CURR_ADDR)
1560 #define bfin_read_DMA21_IRQ_STATUS()            bfin_read16(DMA21_IRQ_STATUS)
1561 #define bfin_write_DMA21_IRQ_STATUS(val)        bfin_write16(DMA21_IRQ_STATUS, val)
1562 #define bfin_read_DMA21_PERIPHERAL_MAP()        bfin_read16(DMA21_PERIPHERAL_MAP)
1563 #define bfin_write_DMA21_PERIPHERAL_MAP(val)    bfin_write16(DMA21_PERIPHERAL_MAP, val)
1564 #define bfin_read_DMA21_CURR_X_COUNT()          bfin_read16(DMA21_CURR_X_COUNT)
1565 #define bfin_write_DMA21_CURR_X_COUNT(val)      bfin_write16(DMA21_CURR_X_COUNT, val)
1566 #define bfin_read_DMA21_CURR_Y_COUNT()          bfin_read16(DMA21_CURR_Y_COUNT)
1567 #define bfin_write_DMA21_CURR_Y_COUNT(val)      bfin_write16(DMA21_CURR_Y_COUNT, val)
1568
1569 /* DMA Channel 22 Registers */
1570
1571 #define bfin_read_DMA22_NEXT_DESC_PTR()         bfin_read32(DMA22_NEXT_DESC_PTR)
1572 #define bfin_write_DMA22_NEXT_DESC_PTR(val)     bfin_write32(DMA22_NEXT_DESC_PTR)
1573 #define bfin_read_DMA22_START_ADDR()            bfin_read32(DMA22_START_ADDR)
1574 #define bfin_write_DMA22_START_ADDR(val)        bfin_write32(DMA22_START_ADDR)
1575 #define bfin_read_DMA22_CONFIG()                bfin_read16(DMA22_CONFIG)
1576 #define bfin_write_DMA22_CONFIG(val)            bfin_write16(DMA22_CONFIG, val)
1577 #define bfin_read_DMA22_X_COUNT()               bfin_read16(DMA22_X_COUNT)
1578 #define bfin_write_DMA22_X_COUNT(val)           bfin_write16(DMA22_X_COUNT, val)
1579 #define bfin_read_DMA22_X_MODIFY()              bfin_read16(DMA22_X_MODIFY)
1580 #define bfin_write_DMA22_X_MODIFY(val)          bfin_write16(DMA22_X_MODIFY)
1581 #define bfin_read_DMA22_Y_COUNT()               bfin_read16(DMA22_Y_COUNT)
1582 #define bfin_write_DMA22_Y_COUNT(val)           bfin_write16(DMA22_Y_COUNT, val)
1583 #define bfin_read_DMA22_Y_MODIFY()              bfin_read16(DMA22_Y_MODIFY)
1584 #define bfin_write_DMA22_Y_MODIFY(val)          bfin_write16(DMA22_Y_MODIFY)
1585 #define bfin_read_DMA22_CURR_DESC_PTR()         bfin_read32(DMA22_CURR_DESC_PTR)
1586 #define bfin_write_DMA22_CURR_DESC_PTR(val)     bfin_write32(DMA22_CURR_DESC_PTR)
1587 #define bfin_read_DMA22_CURR_ADDR()             bfin_read32(DMA22_CURR_ADDR)
1588 #define bfin_write_DMA22_CURR_ADDR(val)         bfin_write32(DMA22_CURR_ADDR)
1589 #define bfin_read_DMA22_IRQ_STATUS()            bfin_read16(DMA22_IRQ_STATUS)
1590 #define bfin_write_DMA22_IRQ_STATUS(val)        bfin_write16(DMA22_IRQ_STATUS, val)
1591 #define bfin_read_DMA22_PERIPHERAL_MAP()        bfin_read16(DMA22_PERIPHERAL_MAP)
1592 #define bfin_write_DMA22_PERIPHERAL_MAP(val)    bfin_write16(DMA22_PERIPHERAL_MAP, val)
1593 #define bfin_read_DMA22_CURR_X_COUNT()          bfin_read16(DMA22_CURR_X_COUNT)
1594 #define bfin_write_DMA22_CURR_X_COUNT(val)      bfin_write16(DMA22_CURR_X_COUNT, val)
1595 #define bfin_read_DMA22_CURR_Y_COUNT()          bfin_read16(DMA22_CURR_Y_COUNT)
1596 #define bfin_write_DMA22_CURR_Y_COUNT(val)      bfin_write16(DMA22_CURR_Y_COUNT, val)
1597
1598 /* DMA Channel 23 Registers */
1599
1600 #define bfin_read_DMA23_NEXT_DESC_PTR()                 bfin_read32(DMA23_NEXT_DESC_PTR)
1601 #define bfin_write_DMA23_NEXT_DESC_PTR(val)             bfin_write32(DMA23_NEXT_DESC_PTR)
1602 #define bfin_read_DMA23_START_ADDR()                    bfin_read32(DMA23_START_ADDR)
1603 #define bfin_write_DMA23_START_ADDR(val)                bfin_write32(DMA23_START_ADDR)
1604 #define bfin_read_DMA23_CONFIG()                        bfin_read16(DMA23_CONFIG)
1605 #define bfin_write_DMA23_CONFIG(val)                    bfin_write16(DMA23_CONFIG, val)
1606 #define bfin_read_DMA23_X_COUNT()                       bfin_read16(DMA23_X_COUNT)
1607 #define bfin_write_DMA23_X_COUNT(val)                   bfin_write16(DMA23_X_COUNT, val)
1608 #define bfin_read_DMA23_X_MODIFY()                      bfin_read16(DMA23_X_MODIFY)
1609 #define bfin_write_DMA23_X_MODIFY(val)                  bfin_write16(DMA23_X_MODIFY)
1610 #define bfin_read_DMA23_Y_COUNT()                       bfin_read16(DMA23_Y_COUNT)
1611 #define bfin_write_DMA23_Y_COUNT(val)                   bfin_write16(DMA23_Y_COUNT, val)
1612 #define bfin_read_DMA23_Y_MODIFY()                      bfin_read16(DMA23_Y_MODIFY)
1613 #define bfin_write_DMA23_Y_MODIFY(val)                  bfin_write16(DMA23_Y_MODIFY)
1614 #define bfin_read_DMA23_CURR_DESC_PTR()                 bfin_read32(DMA23_CURR_DESC_PTR)
1615 #define bfin_write_DMA23_CURR_DESC_PTR(val)             bfin_write32(DMA23_CURR_DESC_PTR)
1616 #define bfin_read_DMA23_CURR_ADDR()                     bfin_read32(DMA23_CURR_ADDR)
1617 #define bfin_write_DMA23_CURR_ADDR(val)                 bfin_write32(DMA23_CURR_ADDR)
1618 #define bfin_read_DMA23_IRQ_STATUS()                    bfin_read16(DMA23_IRQ_STATUS)
1619 #define bfin_write_DMA23_IRQ_STATUS(val)                bfin_write16(DMA23_IRQ_STATUS, val)
1620 #define bfin_read_DMA23_PERIPHERAL_MAP()                bfin_read16(DMA23_PERIPHERAL_MAP)
1621 #define bfin_write_DMA23_PERIPHERAL_MAP(val)            bfin_write16(DMA23_PERIPHERAL_MAP, val)
1622 #define bfin_read_DMA23_CURR_X_COUNT()                  bfin_read16(DMA23_CURR_X_COUNT)
1623 #define bfin_write_DMA23_CURR_X_COUNT(val)              bfin_write16(DMA23_CURR_X_COUNT, val)
1624 #define bfin_read_DMA23_CURR_Y_COUNT()                  bfin_read16(DMA23_CURR_Y_COUNT)
1625 #define bfin_write_DMA23_CURR_Y_COUNT(val)              bfin_write16(DMA23_CURR_Y_COUNT, val)
1626
1627 /* MDMA Stream 2 Registers */
1628
1629 #define bfin_read_MDMA_D2_NEXT_DESC_PTR()               bfin_read32(MDMA_D2_NEXT_DESC_PTR)
1630 #define bfin_write_MDMA_D2_NEXT_DESC_PTR(val)           bfin_write32(MDMA_D2_NEXT_DESC_PTR)
1631 #define bfin_read_MDMA_D2_START_ADDR()                  bfin_read32(MDMA_D2_START_ADDR)
1632 #define bfin_write_MDMA_D2_START_ADDR(val)              bfin_write32(MDMA_D2_START_ADDR)
1633 #define bfin_read_MDMA_D2_CONFIG()                      bfin_read16(MDMA_D2_CONFIG)
1634 #define bfin_write_MDMA_D2_CONFIG(val)                  bfin_write16(MDMA_D2_CONFIG, val)
1635 #define bfin_read_MDMA_D2_X_COUNT()                     bfin_read16(MDMA_D2_X_COUNT)
1636 #define bfin_write_MDMA_D2_X_COUNT(val)                 bfin_write16(MDMA_D2_X_COUNT, val)
1637 #define bfin_read_MDMA_D2_X_MODIFY()                    bfin_read16(MDMA_D2_X_MODIFY)
1638 #define bfin_write_MDMA_D2_X_MODIFY(val)                bfin_write16(MDMA_D2_X_MODIFY)
1639 #define bfin_read_MDMA_D2_Y_COUNT()                     bfin_read16(MDMA_D2_Y_COUNT)
1640 #define bfin_write_MDMA_D2_Y_COUNT(val)                 bfin_write16(MDMA_D2_Y_COUNT, val)
1641 #define bfin_read_MDMA_D2_Y_MODIFY()                    bfin_read16(MDMA_D2_Y_MODIFY)
1642 #define bfin_write_MDMA_D2_Y_MODIFY(val)                bfin_write16(MDMA_D2_Y_MODIFY)
1643 #define bfin_read_MDMA_D2_CURR_DESC_PTR()               bfin_read32(MDMA_D2_CURR_DESC_PTR)
1644 #define bfin_write_MDMA_D2_CURR_DESC_PTR(val)           bfin_write32(MDMA_D2_CURR_DESC_PTR)
1645 #define bfin_read_MDMA_D2_CURR_ADDR()                   bfin_read32(MDMA_D2_CURR_ADDR)
1646 #define bfin_write_MDMA_D2_CURR_ADDR(val)               bfin_write32(MDMA_D2_CURR_ADDR)
1647 #define bfin_read_MDMA_D2_IRQ_STATUS()                  bfin_read16(MDMA_D2_IRQ_STATUS)
1648 #define bfin_write_MDMA_D2_IRQ_STATUS(val)              bfin_write16(MDMA_D2_IRQ_STATUS, val)
1649 #define bfin_read_MDMA_D2_PERIPHERAL_MAP()              bfin_read16(MDMA_D2_PERIPHERAL_MAP)
1650 #define bfin_write_MDMA_D2_PERIPHERAL_MAP(val)          bfin_write16(MDMA_D2_PERIPHERAL_MAP, val)
1651 #define bfin_read_MDMA_D2_CURR_X_COUNT()                bfin_read16(MDMA_D2_CURR_X_COUNT)
1652 #define bfin_write_MDMA_D2_CURR_X_COUNT(val)            bfin_write16(MDMA_D2_CURR_X_COUNT, val)
1653 #define bfin_read_MDMA_D2_CURR_Y_COUNT()                bfin_read16(MDMA_D2_CURR_Y_COUNT)
1654 #define bfin_write_MDMA_D2_CURR_Y_COUNT(val)            bfin_write16(MDMA_D2_CURR_Y_COUNT, val)
1655 #define bfin_read_MDMA_S2_NEXT_DESC_PTR()               bfin_read32(MDMA_S2_NEXT_DESC_PTR)
1656 #define bfin_write_MDMA_S2_NEXT_DESC_PTR(val)           bfin_write32(MDMA_S2_NEXT_DESC_PTR)
1657 #define bfin_read_MDMA_S2_START_ADDR()                  bfin_read32(MDMA_S2_START_ADDR)
1658 #define bfin_write_MDMA_S2_START_ADDR(val)              bfin_write32(MDMA_S2_START_ADDR)
1659 #define bfin_read_MDMA_S2_CONFIG()                      bfin_read16(MDMA_S2_CONFIG)
1660 #define bfin_write_MDMA_S2_CONFIG(val)                  bfin_write16(MDMA_S2_CONFIG, val)
1661 #define bfin_read_MDMA_S2_X_COUNT()                     bfin_read16(MDMA_S2_X_COUNT)
1662 #define bfin_write_MDMA_S2_X_COUNT(val)                 bfin_write16(MDMA_S2_X_COUNT, val)
1663 #define bfin_read_MDMA_S2_X_MODIFY()                    bfin_read16(MDMA_S2_X_MODIFY)
1664 #define bfin_write_MDMA_S2_X_MODIFY(val)                bfin_write16(MDMA_S2_X_MODIFY)
1665 #define bfin_read_MDMA_S2_Y_COUNT()                     bfin_read16(MDMA_S2_Y_COUNT)
1666 #define bfin_write_MDMA_S2_Y_COUNT(val)                 bfin_write16(MDMA_S2_Y_COUNT, val)
1667 #define bfin_read_MDMA_S2_Y_MODIFY()                    bfin_read16(MDMA_S2_Y_MODIFY)
1668 #define bfin_write_MDMA_S2_Y_MODIFY(val)                bfin_write16(MDMA_S2_Y_MODIFY)
1669 #define bfin_read_MDMA_S2_CURR_DESC_PTR()               bfin_read32(MDMA_S2_CURR_DESC_PTR)
1670 #define bfin_write_MDMA_S2_CURR_DESC_PTR(val)           bfin_write32(MDMA_S2_CURR_DESC_PTR)
1671 #define bfin_read_MDMA_S2_CURR_ADDR()                   bfin_read32(MDMA_S2_CURR_ADDR)
1672 #define bfin_write_MDMA_S2_CURR_ADDR(val)               bfin_write32(MDMA_S2_CURR_ADDR)
1673 #define bfin_read_MDMA_S2_IRQ_STATUS()                  bfin_read16(MDMA_S2_IRQ_STATUS)
1674 #define bfin_write_MDMA_S2_IRQ_STATUS(val)              bfin_write16(MDMA_S2_IRQ_STATUS, val)
1675 #define bfin_read_MDMA_S2_PERIPHERAL_MAP()              bfin_read16(MDMA_S2_PERIPHERAL_MAP)
1676 #define bfin_write_MDMA_S2_PERIPHERAL_MAP(val)          bfin_write16(MDMA_S2_PERIPHERAL_MAP, val)
1677 #define bfin_read_MDMA_S2_CURR_X_COUNT()                bfin_read16(MDMA_S2_CURR_X_COUNT)
1678 #define bfin_write_MDMA_S2_CURR_X_COUNT(val)            bfin_write16(MDMA_S2_CURR_X_COUNT, val)
1679 #define bfin_read_MDMA_S2_CURR_Y_COUNT()                bfin_read16(MDMA_S2_CURR_Y_COUNT)
1680 #define bfin_write_MDMA_S2_CURR_Y_COUNT(val)            bfin_write16(MDMA_S2_CURR_Y_COUNT, val)
1681
1682 /* MDMA Stream 3 Registers */
1683
1684 #define bfin_read_MDMA_D3_NEXT_DESC_PTR()               bfin_read32(MDMA_D3_NEXT_DESC_PTR)
1685 #define bfin_write_MDMA_D3_NEXT_DESC_PTR(val)           bfin_write32(MDMA_D3_NEXT_DESC_PTR)
1686 #define bfin_read_MDMA_D3_START_ADDR()                  bfin_read32(MDMA_D3_START_ADDR)
1687 #define bfin_write_MDMA_D3_START_ADDR(val)              bfin_write32(MDMA_D3_START_ADDR)
1688 #define bfin_read_MDMA_D3_CONFIG()                      bfin_read16(MDMA_D3_CONFIG)
1689 #define bfin_write_MDMA_D3_CONFIG(val)                  bfin_write16(MDMA_D3_CONFIG, val)
1690 #define bfin_read_MDMA_D3_X_COUNT()                     bfin_read16(MDMA_D3_X_COUNT)
1691 #define bfin_write_MDMA_D3_X_COUNT(val)                 bfin_write16(MDMA_D3_X_COUNT, val)
1692 #define bfin_read_MDMA_D3_X_MODIFY()                    bfin_read16(MDMA_D3_X_MODIFY)
1693 #define bfin_write_MDMA_D3_X_MODIFY(val)                bfin_write16(MDMA_D3_X_MODIFY)
1694 #define bfin_read_MDMA_D3_Y_COUNT()                     bfin_read16(MDMA_D3_Y_COUNT)
1695 #define bfin_write_MDMA_D3_Y_COUNT(val)                 bfin_write16(MDMA_D3_Y_COUNT, val)
1696 #define bfin_read_MDMA_D3_Y_MODIFY()                    bfin_read16(MDMA_D3_Y_MODIFY)
1697 #define bfin_write_MDMA_D3_Y_MODIFY(val)                bfin_write16(MDMA_D3_Y_MODIFY)
1698 #define bfin_read_MDMA_D3_CURR_DESC_PTR()               bfin_read32(MDMA_D3_CURR_DESC_PTR)
1699 #define bfin_write_MDMA_D3_CURR_DESC_PTR(val)           bfin_write32(MDMA_D3_CURR_DESC_PTR)
1700 #define bfin_read_MDMA_D3_CURR_ADDR()                   bfin_read32(MDMA_D3_CURR_ADDR)
1701 #define bfin_write_MDMA_D3_CURR_ADDR(val)               bfin_write32(MDMA_D3_CURR_ADDR)
1702 #define bfin_read_MDMA_D3_IRQ_STATUS()                  bfin_read16(MDMA_D3_IRQ_STATUS)
1703 #define bfin_write_MDMA_D3_IRQ_STATUS(val)              bfin_write16(MDMA_D3_IRQ_STATUS, val)
1704 #define bfin_read_MDMA_D3_PERIPHERAL_MAP()              bfin_read16(MDMA_D3_PERIPHERAL_MAP)
1705 #define bfin_write_MDMA_D3_PERIPHERAL_MAP(val)          bfin_write16(MDMA_D3_PERIPHERAL_MAP, val)
1706 #define bfin_read_MDMA_D3_CURR_X_COUNT()                bfin_read16(MDMA_D3_CURR_X_COUNT)
1707 #define bfin_write_MDMA_D3_CURR_X_COUNT(val)            bfin_write16(MDMA_D3_CURR_X_COUNT, val)
1708 #define bfin_read_MDMA_D3_CURR_Y_COUNT()                bfin_read16(MDMA_D3_CURR_Y_COUNT)
1709 #define bfin_write_MDMA_D3_CURR_Y_COUNT(val)            bfin_write16(MDMA_D3_CURR_Y_COUNT, val)
1710 #define bfin_read_MDMA_S3_NEXT_DESC_PTR()               bfin_read32(MDMA_S3_NEXT_DESC_PTR)
1711 #define bfin_write_MDMA_S3_NEXT_DESC_PTR(val)           bfin_write32(MDMA_S3_NEXT_DESC_PTR)
1712 #define bfin_read_MDMA_S3_START_ADDR()                  bfin_read32(MDMA_S3_START_ADDR)
1713 #define bfin_write_MDMA_S3_START_ADDR(val)              bfin_write32(MDMA_S3_START_ADDR)
1714 #define bfin_read_MDMA_S3_CONFIG()                      bfin_read16(MDMA_S3_CONFIG)
1715 #define bfin_write_MDMA_S3_CONFIG(val)                  bfin_write16(MDMA_S3_CONFIG, val)
1716 #define bfin_read_MDMA_S3_X_COUNT()                     bfin_read16(MDMA_S3_X_COUNT)
1717 #define bfin_write_MDMA_S3_X_COUNT(val)                 bfin_write16(MDMA_S3_X_COUNT, val)
1718 #define bfin_read_MDMA_S3_X_MODIFY()                    bfin_read16(MDMA_S3_X_MODIFY)
1719 #define bfin_write_MDMA_S3_X_MODIFY(val)                bfin_write16(MDMA_S3_X_MODIFY)
1720 #define bfin_read_MDMA_S3_Y_COUNT()                     bfin_read16(MDMA_S3_Y_COUNT)
1721 #define bfin_write_MDMA_S3_Y_COUNT(val)                 bfin_write16(MDMA_S3_Y_COUNT, val)
1722 #define bfin_read_MDMA_S3_Y_MODIFY()                    bfin_read16(MDMA_S3_Y_MODIFY)
1723 #define bfin_write_MDMA_S3_Y_MODIFY(val)                bfin_write16(MDMA_S3_Y_MODIFY)
1724 #define bfin_read_MDMA_S3_CURR_DESC_PTR()               bfin_read32(MDMA_S3_CURR_DESC_PTR)
1725 #define bfin_write_MDMA_S3_CURR_DESC_PTR(val)           bfin_write32(MDMA_S3_CURR_DESC_PTR)
1726 #define bfin_read_MDMA_S3_CURR_ADDR()                   bfin_read32(MDMA_S3_CURR_ADDR)
1727 #define bfin_write_MDMA_S3_CURR_ADDR(val)               bfin_write32(MDMA_S3_CURR_ADDR)
1728 #define bfin_read_MDMA_S3_IRQ_STATUS()                  bfin_read16(MDMA_S3_IRQ_STATUS)
1729 #define bfin_write_MDMA_S3_IRQ_STATUS(val)              bfin_write16(MDMA_S3_IRQ_STATUS, val)
1730 #define bfin_read_MDMA_S3_PERIPHERAL_MAP()              bfin_read16(MDMA_S3_PERIPHERAL_MAP)
1731 #define bfin_write_MDMA_S3_PERIPHERAL_MAP(val)          bfin_write16(MDMA_S3_PERIPHERAL_MAP, val)
1732 #define bfin_read_MDMA_S3_CURR_X_COUNT()                bfin_read16(MDMA_S3_CURR_X_COUNT)
1733 #define bfin_write_MDMA_S3_CURR_X_COUNT(val)            bfin_write16(MDMA_S3_CURR_X_COUNT, val)
1734 #define bfin_read_MDMA_S3_CURR_Y_COUNT()                bfin_read16(MDMA_S3_CURR_Y_COUNT)
1735 #define bfin_write_MDMA_S3_CURR_Y_COUNT(val)            bfin_write16(MDMA_S3_CURR_Y_COUNT, val)
1736
1737 /* UART1 Registers */
1738
1739 #define bfin_read_UART1_DLL()                   bfin_read16(UART1_DLL)
1740 #define bfin_write_UART1_DLL(val)               bfin_write16(UART1_DLL, val)
1741 #define bfin_read_UART1_DLH()                   bfin_read16(UART1_DLH)
1742 #define bfin_write_UART1_DLH(val)               bfin_write16(UART1_DLH, val)
1743 #define bfin_read_UART1_GCTL()                  bfin_read16(UART1_GCTL)
1744 #define bfin_write_UART1_GCTL(val)              bfin_write16(UART1_GCTL, val)
1745 #define bfin_read_UART1_LCR()                   bfin_read16(UART1_LCR)
1746 #define bfin_write_UART1_LCR(val)               bfin_write16(UART1_LCR, val)
1747 #define bfin_read_UART1_MCR()                   bfin_read16(UART1_MCR)
1748 #define bfin_write_UART1_MCR(val)               bfin_write16(UART1_MCR, val)
1749 #define bfin_read_UART1_LSR()                   bfin_read16(UART1_LSR)
1750 #define bfin_write_UART1_LSR(val)               bfin_write16(UART1_LSR, val)
1751 #define bfin_read_UART1_MSR()                   bfin_read16(UART1_MSR)
1752 #define bfin_write_UART1_MSR(val)               bfin_write16(UART1_MSR, val)
1753 #define bfin_read_UART1_SCR()                   bfin_read16(UART1_SCR)
1754 #define bfin_write_UART1_SCR(val)               bfin_write16(UART1_SCR, val)
1755 #define bfin_read_UART1_IER_SET()               bfin_read16(UART1_IER_SET)
1756 #define bfin_write_UART1_IER_SET(val)           bfin_write16(UART1_IER_SET, val)
1757 #define bfin_read_UART1_IER_CLEAR()             bfin_read16(UART1_IER_CLEAR)
1758 #define bfin_write_UART1_IER_CLEAR(val)         bfin_write16(UART1_IER_CLEAR, val)
1759 #define bfin_read_UART1_THR()                   bfin_read16(UART1_THR)
1760 #define bfin_write_UART1_THR(val)               bfin_write16(UART1_THR, val)
1761 #define bfin_read_UART1_RBR()                   bfin_read16(UART1_RBR)
1762 #define bfin_write_UART1_RBR(val)               bfin_write16(UART1_RBR, val)
1763
1764 /* UART2 is not defined in the shared file because it is not available on the ADSP-BF542 and ADSP-BF544 bfin_read_()rocessors */
1765
1766 /* SPI1 Registers */
1767
1768 #define bfin_read_SPI1_CTL()                    bfin_read16(SPI1_CTL)
1769 #define bfin_write_SPI1_CTL(val)                bfin_write16(SPI1_CTL, val)
1770 #define bfin_read_SPI1_FLG()                    bfin_read16(SPI1_FLG)
1771 #define bfin_write_SPI1_FLG(val)                bfin_write16(SPI1_FLG, val)
1772 #define bfin_read_SPI1_STAT()                   bfin_read16(SPI1_STAT)
1773 #define bfin_write_SPI1_STAT(val)               bfin_write16(SPI1_STAT, val)
1774 #define bfin_read_SPI1_TDBR()                   bfin_read16(SPI1_TDBR)
1775 #define bfin_write_SPI1_TDBR(val)               bfin_write16(SPI1_TDBR, val)
1776 #define bfin_read_SPI1_RDBR()                   bfin_read16(SPI1_RDBR)
1777 #define bfin_write_SPI1_RDBR(val)               bfin_write16(SPI1_RDBR, val)
1778 #define bfin_read_SPI1_BAUD()                   bfin_read16(SPI1_BAUD)
1779 #define bfin_write_SPI1_BAUD(val)               bfin_write16(SPI1_BAUD, val)
1780 #define bfin_read_SPI1_SHADOW()                 bfin_read16(SPI1_SHADOW)
1781 #define bfin_write_SPI1_SHADOW(val)             bfin_write16(SPI1_SHADOW, val)
1782
1783 /* SPORT2 Registers */
1784
1785 #define bfin_read_SPORT2_TCR1()                 bfin_read16(SPORT2_TCR1)
1786 #define bfin_write_SPORT2_TCR1(val)             bfin_write16(SPORT2_TCR1, val)
1787 #define bfin_read_SPORT2_TCR2()                 bfin_read16(SPORT2_TCR2)
1788 #define bfin_write_SPORT2_TCR2(val)             bfin_write16(SPORT2_TCR2, val)
1789 #define bfin_read_SPORT2_TCLKDIV()              bfin_read16(SPORT2_TCLKDIV)
1790 #define bfin_write_SPORT2_TCLKDIV(val)          bfin_write16(SPORT2_TCLKDIV, val)
1791 #define bfin_read_SPORT2_TFSDIV()               bfin_read16(SPORT2_TFSDIV)
1792 #define bfin_write_SPORT2_TFSDIV(val)           bfin_write16(SPORT2_TFSDIV, val)
1793 #define bfin_read_SPORT2_TX()                   bfin_read32(SPORT2_TX)
1794 #define bfin_write_SPORT2_TX(val)               bfin_write32(SPORT2_TX, val)
1795 #define bfin_read_SPORT2_RX()                   bfin_read32(SPORT2_RX)
1796 #define bfin_write_SPORT2_RX(val)               bfin_write32(SPORT2_RX, val)
1797 #define bfin_read_SPORT2_RCR1()                 bfin_read16(SPORT2_RCR1)
1798 #define bfin_write_SPORT2_RCR1(val)             bfin_write16(SPORT2_RCR1, val)
1799 #define bfin_read_SPORT2_RCR2()                 bfin_read16(SPORT2_RCR2)
1800 #define bfin_write_SPORT2_RCR2(val)             bfin_write16(SPORT2_RCR2, val)
1801 #define bfin_read_SPORT2_RCLKDIV()              bfin_read16(SPORT2_RCLKDIV)
1802 #define bfin_write_SPORT2_RCLKDIV(val)          bfin_write16(SPORT2_RCLKDIV, val)
1803 #define bfin_read_SPORT2_RFSDIV()               bfin_read16(SPORT2_RFSDIV)
1804 #define bfin_write_SPORT2_RFSDIV(val)           bfin_write16(SPORT2_RFSDIV, val)
1805 #define bfin_read_SPORT2_STAT()                 bfin_read16(SPORT2_STAT)
1806 #define bfin_write_SPORT2_STAT(val)             bfin_write16(SPORT2_STAT, val)
1807 #define bfin_read_SPORT2_CHNL()                 bfin_read16(SPORT2_CHNL)
1808 #define bfin_write_SPORT2_CHNL(val)             bfin_write16(SPORT2_CHNL, val)
1809 #define bfin_read_SPORT2_MCMC1()                bfin_read16(SPORT2_MCMC1)
1810 #define bfin_write_SPORT2_MCMC1(val)            bfin_write16(SPORT2_MCMC1, val)
1811 #define bfin_read_SPORT2_MCMC2()                bfin_read16(SPORT2_MCMC2)
1812 #define bfin_write_SPORT2_MCMC2(val)            bfin_write16(SPORT2_MCMC2, val)
1813 #define bfin_read_SPORT2_MTCS0()                bfin_read32(SPORT2_MTCS0)
1814 #define bfin_write_SPORT2_MTCS0(val)            bfin_write32(SPORT2_MTCS0, val)
1815 #define bfin_read_SPORT2_MTCS1()                bfin_read32(SPORT2_MTCS1)
1816 #define bfin_write_SPORT2_MTCS1(val)            bfin_write32(SPORT2_MTCS1, val)
1817 #define bfin_read_SPORT2_MTCS2()                bfin_read32(SPORT2_MTCS2)
1818 #define bfin_write_SPORT2_MTCS2(val)            bfin_write32(SPORT2_MTCS2, val)
1819 #define bfin_read_SPORT2_MTCS3()                bfin_read32(SPORT2_MTCS3)
1820 #define bfin_write_SPORT2_MTCS3(val)            bfin_write32(SPORT2_MTCS3, val)
1821 #define bfin_read_SPORT2_MRCS0()                bfin_read32(SPORT2_MRCS0)
1822 #define bfin_write_SPORT2_MRCS0(val)            bfin_write32(SPORT2_MRCS0, val)
1823 #define bfin_read_SPORT2_MRCS1()                bfin_read32(SPORT2_MRCS1)
1824 #define bfin_write_SPORT2_MRCS1(val)            bfin_write32(SPORT2_MRCS1, val)
1825 #define bfin_read_SPORT2_MRCS2()                bfin_read32(SPORT2_MRCS2)
1826 #define bfin_write_SPORT2_MRCS2(val)            bfin_write32(SPORT2_MRCS2, val)
1827 #define bfin_read_SPORT2_MRCS3()                bfin_read32(SPORT2_MRCS3)
1828 #define bfin_write_SPORT2_MRCS3(val)            bfin_write32(SPORT2_MRCS3, val)
1829
1830 /* SPORT3 Registers */
1831
1832 #define bfin_read_SPORT3_TCR1()                 bfin_read16(SPORT3_TCR1)
1833 #define bfin_write_SPORT3_TCR1(val)             bfin_write16(SPORT3_TCR1, val)
1834 #define bfin_read_SPORT3_TCR2()                 bfin_read16(SPORT3_TCR2)
1835 #define bfin_write_SPORT3_TCR2(val)             bfin_write16(SPORT3_TCR2, val)
1836 #define bfin_read_SPORT3_TCLKDIV()              bfin_read16(SPORT3_TCLKDIV)
1837 #define bfin_write_SPORT3_TCLKDIV(val)          bfin_write16(SPORT3_TCLKDIV, val)
1838 #define bfin_read_SPORT3_TFSDIV()               bfin_read16(SPORT3_TFSDIV)
1839 #define bfin_write_SPORT3_TFSDIV(val)           bfin_write16(SPORT3_TFSDIV, val)
1840 #define bfin_read_SPORT3_TX()                   bfin_read32(SPORT3_TX)
1841 #define bfin_write_SPORT3_TX(val)               bfin_write32(SPORT3_TX, val)
1842 #define bfin_read_SPORT3_RX()                   bfin_read32(SPORT3_RX)
1843 #define bfin_write_SPORT3_RX(val)               bfin_write32(SPORT3_RX, val)
1844 #define bfin_read_SPORT3_RCR1()                 bfin_read16(SPORT3_RCR1)
1845 #define bfin_write_SPORT3_RCR1(val)             bfin_write16(SPORT3_RCR1, val)
1846 #define bfin_read_SPORT3_RCR2()                 bfin_read16(SPORT3_RCR2)
1847 #define bfin_write_SPORT3_RCR2(val)             bfin_write16(SPORT3_RCR2, val)
1848 #define bfin_read_SPORT3_RCLKDIV()              bfin_read16(SPORT3_RCLKDIV)
1849 #define bfin_write_SPORT3_RCLKDIV(val)          bfin_write16(SPORT3_RCLKDIV, val)
1850 #define bfin_read_SPORT3_RFSDIV()               bfin_read16(SPORT3_RFSDIV)
1851 #define bfin_write_SPORT3_RFSDIV(val)           bfin_write16(SPORT3_RFSDIV, val)
1852 #define bfin_read_SPORT3_STAT()                 bfin_read16(SPORT3_STAT)
1853 #define bfin_write_SPORT3_STAT(val)             bfin_write16(SPORT3_STAT, val)
1854 #define bfin_read_SPORT3_CHNL()                 bfin_read16(SPORT3_CHNL)
1855 #define bfin_write_SPORT3_CHNL(val)             bfin_write16(SPORT3_CHNL, val)
1856 #define bfin_read_SPORT3_MCMC1()                bfin_read16(SPORT3_MCMC1)
1857 #define bfin_write_SPORT3_MCMC1(val)            bfin_write16(SPORT3_MCMC1, val)
1858 #define bfin_read_SPORT3_MCMC2()                bfin_read16(SPORT3_MCMC2)
1859 #define bfin_write_SPORT3_MCMC2(val)            bfin_write16(SPORT3_MCMC2, val)
1860 #define bfin_read_SPORT3_MTCS0()                bfin_read32(SPORT3_MTCS0)
1861 #define bfin_write_SPORT3_MTCS0(val)            bfin_write32(SPORT3_MTCS0, val)
1862 #define bfin_read_SPORT3_MTCS1()                bfin_read32(SPORT3_MTCS1)
1863 #define bfin_write_SPORT3_MTCS1(val)            bfin_write32(SPORT3_MTCS1, val)
1864 #define bfin_read_SPORT3_MTCS2()                bfin_read32(SPORT3_MTCS2)
1865 #define bfin_write_SPORT3_MTCS2(val)            bfin_write32(SPORT3_MTCS2, val)
1866 #define bfin_read_SPORT3_MTCS3()                bfin_read32(SPORT3_MTCS3)
1867 #define bfin_write_SPORT3_MTCS3(val)            bfin_write32(SPORT3_MTCS3, val)
1868 #define bfin_read_SPORT3_MRCS0()                bfin_read32(SPORT3_MRCS0)
1869 #define bfin_write_SPORT3_MRCS0(val)            bfin_write32(SPORT3_MRCS0, val)
1870 #define bfin_read_SPORT3_MRCS1()                bfin_read32(SPORT3_MRCS1)
1871 #define bfin_write_SPORT3_MRCS1(val)            bfin_write32(SPORT3_MRCS1, val)
1872 #define bfin_read_SPORT3_MRCS2()                bfin_read32(SPORT3_MRCS2)
1873 #define bfin_write_SPORT3_MRCS2(val)            bfin_write32(SPORT3_MRCS2, val)
1874 #define bfin_read_SPORT3_MRCS3()                bfin_read32(SPORT3_MRCS3)
1875 #define bfin_write_SPORT3_MRCS3(val)            bfin_write32(SPORT3_MRCS3, val)
1876
1877 /* EPPI2 Registers */
1878
1879 #define bfin_read_EPPI2_STATUS()                bfin_read16(EPPI2_STATUS)
1880 #define bfin_write_EPPI2_STATUS(val)            bfin_write16(EPPI2_STATUS, val)
1881 #define bfin_read_EPPI2_HCOUNT()                bfin_read16(EPPI2_HCOUNT)
1882 #define bfin_write_EPPI2_HCOUNT(val)            bfin_write16(EPPI2_HCOUNT, val)
1883 #define bfin_read_EPPI2_HDELAY()                bfin_read16(EPPI2_HDELAY)
1884 #define bfin_write_EPPI2_HDELAY(val)            bfin_write16(EPPI2_HDELAY, val)
1885 #define bfin_read_EPPI2_VCOUNT()                bfin_read16(EPPI2_VCOUNT)
1886 #define bfin_write_EPPI2_VCOUNT(val)            bfin_write16(EPPI2_VCOUNT, val)
1887 #define bfin_read_EPPI2_VDELAY()                bfin_read16(EPPI2_VDELAY)
1888 #define bfin_write_EPPI2_VDELAY(val)            bfin_write16(EPPI2_VDELAY, val)
1889 #define bfin_read_EPPI2_FRAME()                 bfin_read16(EPPI2_FRAME)
1890 #define bfin_write_EPPI2_FRAME(val)             bfin_write16(EPPI2_FRAME, val)
1891 #define bfin_read_EPPI2_LINE()                  bfin_read16(EPPI2_LINE)
1892 #define bfin_write_EPPI2_LINE(val)              bfin_write16(EPPI2_LINE, val)
1893 #define bfin_read_EPPI2_CLKDIV()                bfin_read16(EPPI2_CLKDIV)
1894 #define bfin_write_EPPI2_CLKDIV(val)            bfin_write16(EPPI2_CLKDIV, val)
1895 #define bfin_read_EPPI2_CONTROL()               bfin_read32(EPPI2_CONTROL)
1896 #define bfin_write_EPPI2_CONTROL(val)           bfin_write32(EPPI2_CONTROL, val)
1897 #define bfin_read_EPPI2_FS1W_HBL()              bfin_read32(EPPI2_FS1W_HBL)
1898 #define bfin_write_EPPI2_FS1W_HBL(val)          bfin_write32(EPPI2_FS1W_HBL, val)
1899 #define bfin_read_EPPI2_FS1P_AVPL()             bfin_read32(EPPI2_FS1P_AVPL)
1900 #define bfin_write_EPPI2_FS1P_AVPL(val)         bfin_write32(EPPI2_FS1P_AVPL, val)
1901 #define bfin_read_EPPI2_FS2W_LVB()              bfin_read32(EPPI2_FS2W_LVB)
1902 #define bfin_write_EPPI2_FS2W_LVB(val)          bfin_write32(EPPI2_FS2W_LVB, val)
1903 #define bfin_read_EPPI2_FS2P_LAVF()             bfin_read32(EPPI2_FS2P_LAVF)
1904 #define bfin_write_EPPI2_FS2P_LAVF(val)         bfin_write32(EPPI2_FS2P_LAVF, val)
1905 #define bfin_read_EPPI2_CLIP()                  bfin_read32(EPPI2_CLIP)
1906 #define bfin_write_EPPI2_CLIP(val)              bfin_write32(EPPI2_CLIP, val)
1907
1908 /* CAN Controller 0 Config 1 Registers */
1909
1910 #define bfin_read_CAN0_MC1()            bfin_read16(CAN0_MC1)
1911 #define bfin_write_CAN0_MC1(val)        bfin_write16(CAN0_MC1, val)
1912 #define bfin_read_CAN0_MD1()            bfin_read16(CAN0_MD1)
1913 #define bfin_write_CAN0_MD1(val)        bfin_write16(CAN0_MD1, val)
1914 #define bfin_read_CAN0_TRS1()           bfin_read16(CAN0_TRS1)
1915 #define bfin_write_CAN0_TRS1(val)       bfin_write16(CAN0_TRS1, val)
1916 #define bfin_read_CAN0_TRR1()           bfin_read16(CAN0_TRR1)
1917 #define bfin_write_CAN0_TRR1(val)       bfin_write16(CAN0_TRR1, val)
1918 #define bfin_read_CAN0_TA1()            bfin_read16(CAN0_TA1)
1919 #define bfin_write_CAN0_TA1(val)        bfin_write16(CAN0_TA1, val)
1920 #define bfin_read_CAN0_AA1()            bfin_read16(CAN0_AA1)
1921 #define bfin_write_CAN0_AA1(val)        bfin_write16(CAN0_AA1, val)
1922 #define bfin_read_CAN0_RMP1()           bfin_read16(CAN0_RMP1)
1923 #define bfin_write_CAN0_RMP1(val)       bfin_write16(CAN0_RMP1, val)
1924 #define bfin_read_CAN0_RML1()           bfin_read16(CAN0_RML1)
1925 #define bfin_write_CAN0_RML1(val)       bfin_write16(CAN0_RML1, val)
1926 #define bfin_read_CAN0_MBTIF1()         bfin_read16(CAN0_MBTIF1)
1927 #define bfin_write_CAN0_MBTIF1(val)     bfin_write16(CAN0_MBTIF1, val)
1928 #define bfin_read_CAN0_MBRIF1()         bfin_read16(CAN0_MBRIF1)
1929 #define bfin_write_CAN0_MBRIF1(val)     bfin_write16(CAN0_MBRIF1, val)
1930 #define bfin_read_CAN0_MBIM1()          bfin_read16(CAN0_MBIM1)
1931 #define bfin_write_CAN0_MBIM1(val)      bfin_write16(CAN0_MBIM1, val)
1932 #define bfin_read_CAN0_RFH1()           bfin_read16(CAN0_RFH1)
1933 #define bfin_write_CAN0_RFH1(val)       bfin_write16(CAN0_RFH1, val)
1934 #define bfin_read_CAN0_OPSS1()          bfin_read16(CAN0_OPSS1)
1935 #define bfin_write_CAN0_OPSS1(val)      bfin_write16(CAN0_OPSS1, val)
1936
1937 /* CAN Controller 0 Config 2 Registers */
1938
1939 #define bfin_read_CAN0_MC2()            bfin_read16(CAN0_MC2)
1940 #define bfin_write_CAN0_MC2(val)        bfin_write16(CAN0_MC2, val)
1941 #define bfin_read_CAN0_MD2()            bfin_read16(CAN0_MD2)
1942 #define bfin_write_CAN0_MD2(val)        bfin_write16(CAN0_MD2, val)
1943 #define bfin_read_CAN0_TRS2()           bfin_read16(CAN0_TRS2)
1944 #define bfin_write_CAN0_TRS2(val)       bfin_write16(CAN0_TRS2, val)
1945 #define bfin_read_CAN0_TRR2()           bfin_read16(CAN0_TRR2)
1946 #define bfin_write_CAN0_TRR2(val)       bfin_write16(CAN0_TRR2, val)
1947 #define bfin_read_CAN0_TA2()            bfin_read16(CAN0_TA2)
1948 #define bfin_write_CAN0_TA2(val)        bfin_write16(CAN0_TA2, val)
1949 #define bfin_read_CAN0_AA2()            bfin_read16(CAN0_AA2)
1950 #define bfin_write_CAN0_AA2(val)        bfin_write16(CAN0_AA2, val)
1951 #define bfin_read_CAN0_RMP2()           bfin_read16(CAN0_RMP2)
1952 #define bfin_write_CAN0_RMP2(val)       bfin_write16(CAN0_RMP2, val)
1953 #define bfin_read_CAN0_RML2()           bfin_read16(CAN0_RML2)
1954 #define bfin_write_CAN0_RML2(val)       bfin_write16(CAN0_RML2, val)
1955 #define bfin_read_CAN0_MBTIF2()         bfin_read16(CAN0_MBTIF2)
1956 #define bfin_write_CAN0_MBTIF2(val)     bfin_write16(CAN0_MBTIF2, val)
1957 #define bfin_read_CAN0_MBRIF2()         bfin_read16(CAN0_MBRIF2)
1958 #define bfin_write_CAN0_MBRIF2(val)     bfin_write16(CAN0_MBRIF2, val)
1959 #define bfin_read_CAN0_MBIM2()          bfin_read16(CAN0_MBIM2)
1960 #define bfin_write_CAN0_MBIM2(val)      bfin_write16(CAN0_MBIM2, val)
1961 #define bfin_read_CAN0_RFH2()           bfin_read16(CAN0_RFH2)
1962 #define bfin_write_CAN0_RFH2(val)       bfin_write16(CAN0_RFH2, val)
1963 #define bfin_read_CAN0_OPSS2()          bfin_read16(CAN0_OPSS2)
1964 #define bfin_write_CAN0_OPSS2(val)      bfin_write16(CAN0_OPSS2, val)
1965
1966 /* CAN Controller 0 Clock/Interrubfin_read_()t/Counter Registers */
1967
1968 #define bfin_read_CAN0_CLOCK()          bfin_read16(CAN0_CLOCK)
1969 #define bfin_write_CAN0_CLOCK(val)      bfin_write16(CAN0_CLOCK, val)
1970 #define bfin_read_CAN0_TIMING()         bfin_read16(CAN0_TIMING)
1971 #define bfin_write_CAN0_TIMING(val)     bfin_write16(CAN0_TIMING, val)
1972 #define bfin_read_CAN0_DEBUG()          bfin_read16(CAN0_DEBUG)
1973 #define bfin_write_CAN0_DEBUG(val)      bfin_write16(CAN0_DEBUG, val)
1974 #define bfin_read_CAN0_STATUS()         bfin_read16(CAN0_STATUS)
1975 #define bfin_write_CAN0_STATUS(val)     bfin_write16(CAN0_STATUS, val)
1976 #define bfin_read_CAN0_CEC()            bfin_read16(CAN0_CEC)
1977 #define bfin_write_CAN0_CEC(val)        bfin_write16(CAN0_CEC, val)
1978 #define bfin_read_CAN0_GIS()            bfin_read16(CAN0_GIS)
1979 #define bfin_write_CAN0_GIS(val)        bfin_write16(CAN0_GIS, val)
1980 #define bfin_read_CAN0_GIM()            bfin_read16(CAN0_GIM)
1981 #define bfin_write_CAN0_GIM(val)        bfin_write16(CAN0_GIM, val)
1982 #define bfin_read_CAN0_GIF()            bfin_read16(CAN0_GIF)
1983 #define bfin_write_CAN0_GIF(val)        bfin_write16(CAN0_GIF, val)
1984 #define bfin_read_CAN0_CONTROL()        bfin_read16(CAN0_CONTROL)
1985 #define bfin_write_CAN0_CONTROL(val)    bfin_write16(CAN0_CONTROL, val)
1986 #define bfin_read_CAN0_INTR()           bfin_read16(CAN0_INTR)
1987 #define bfin_write_CAN0_INTR(val)       bfin_write16(CAN0_INTR, val)
1988 #define bfin_read_CAN0_MBTD()           bfin_read16(CAN0_MBTD)
1989 #define bfin_write_CAN0_MBTD(val)       bfin_write16(CAN0_MBTD, val)
1990 #define bfin_read_CAN0_EWR()            bfin_read16(CAN0_EWR)
1991 #define bfin_write_CAN0_EWR(val)        bfin_write16(CAN0_EWR, val)
1992 #define bfin_read_CAN0_ESR()            bfin_read16(CAN0_ESR)
1993 #define bfin_write_CAN0_ESR(val)        bfin_write16(CAN0_ESR, val)
1994 #define bfin_read_CAN0_UCCNT()          bfin_read16(CAN0_UCCNT)
1995 #define bfin_write_CAN0_UCCNT(val)      bfin_write16(CAN0_UCCNT, val)
1996 #define bfin_read_CAN0_UCRC()           bfin_read16(CAN0_UCRC)
1997 #define bfin_write_CAN0_UCRC(val)       bfin_write16(CAN0_UCRC, val)
1998 #define bfin_read_CAN0_UCCNF()          bfin_read16(CAN0_UCCNF)
1999 #define bfin_write_CAN0_UCCNF(val)      bfin_write16(CAN0_UCCNF, val)
2000
2001 /* CAN Controller 0 Accebfin_read_()tance Registers */
2002
2003 #define bfin_read_CAN0_AM00L()          bfin_read16(CAN0_AM00L)
2004 #define bfin_write_CAN0_AM00L(val)      bfin_write16(CAN0_AM00L, val)
2005 #define bfin_read_CAN0_AM00H()          bfin_read16(CAN0_AM00H)
2006 #define bfin_write_CAN0_AM00H(val)      bfin_write16(CAN0_AM00H, val)
2007 #define bfin_read_CAN0_AM01L()          bfin_read16(CAN0_AM01L)
2008 #define bfin_write_CAN0_AM01L(val)      bfin_write16(CAN0_AM01L, val)
2009 #define bfin_read_CAN0_AM01H()          bfin_read16(CAN0_AM01H)
2010 #define bfin_write_CAN0_AM01H(val)      bfin_write16(CAN0_AM01H, val)
2011 #define bfin_read_CAN0_AM02L()          bfin_read16(CAN0_AM02L)
2012 #define bfin_write_CAN0_AM02L(val)      bfin_write16(CAN0_AM02L, val)
2013 #define bfin_read_CAN0_AM02H()          bfin_read16(CAN0_AM02H)
2014 #define bfin_write_CAN0_AM02H(val)      bfin_write16(CAN0_AM02H, val)
2015 #define bfin_read_CAN0_AM03L()          bfin_read16(CAN0_AM03L)
2016 #define bfin_write_CAN0_AM03L(val)      bfin_write16(CAN0_AM03L, val)
2017 #define bfin_read_CAN0_AM03H()          bfin_read16(CAN0_AM03H)
2018 #define bfin_write_CAN0_AM03H(val)      bfin_write16(CAN0_AM03H, val)
2019 #define bfin_read_CAN0_AM04L()          bfin_read16(CAN0_AM04L)
2020 #define bfin_write_CAN0_AM04L(val)      bfin_write16(CAN0_AM04L, val)
2021 #define bfin_read_CAN0_AM04H()          bfin_read16(CAN0_AM04H)
2022 #define bfin_write_CAN0_AM04H(val)      bfin_write16(CAN0_AM04H, val)
2023 #define bfin_read_CAN0_AM05L()          bfin_read16(CAN0_AM05L)
2024 #define bfin_write_CAN0_AM05L(val)      bfin_write16(CAN0_AM05L, val)
2025 #define bfin_read_CAN0_AM05H()          bfin_read16(CAN0_AM05H)
2026 #define bfin_write_CAN0_AM05H(val)      bfin_write16(CAN0_AM05H, val)
2027 #define bfin_read_CAN0_AM06L()          bfin_read16(CAN0_AM06L)
2028 #define bfin_write_CAN0_AM06L(val)      bfin_write16(CAN0_AM06L, val)
2029 #define bfin_read_CAN0_AM06H()          bfin_read16(CAN0_AM06H)
2030 #define bfin_write_CAN0_AM06H(val)      bfin_write16(CAN0_AM06H, val)
2031 #define bfin_read_CAN0_AM07L()          bfin_read16(CAN0_AM07L)
2032 #define bfin_write_CAN0_AM07L(val)      bfin_write16(CAN0_AM07L, val)
2033 #define bfin_read_CAN0_AM07H()          bfin_read16(CAN0_AM07H)
2034 #define bfin_write_CAN0_AM07H(val)      bfin_write16(CAN0_AM07H, val)
2035 #define bfin_read_CAN0_AM08L()          bfin_read16(CAN0_AM08L)
2036 #define bfin_write_CAN0_AM08L(val)      bfin_write16(CAN0_AM08L, val)
2037 #define bfin_read_CAN0_AM08H()          bfin_read16(CAN0_AM08H)
2038 #define bfin_write_CAN0_AM08H(val)      bfin_write16(CAN0_AM08H, val)
2039 #define bfin_read_CAN0_AM09L()          bfin_read16(CAN0_AM09L)
2040 #define bfin_write_CAN0_AM09L(val)      bfin_write16(CAN0_AM09L, val)
2041 #define bfin_read_CAN0_AM09H()          bfin_read16(CAN0_AM09H)
2042 #define bfin_write_CAN0_AM09H(val)      bfin_write16(CAN0_AM09H, val)
2043 #define bfin_read_CAN0_AM10L()          bfin_read16(CAN0_AM10L)
2044 #define bfin_write_CAN0_AM10L(val)      bfin_write16(CAN0_AM10L, val)
2045 #define bfin_read_CAN0_AM10H()          bfin_read16(CAN0_AM10H)
2046 #define bfin_write_CAN0_AM10H(val)      bfin_write16(CAN0_AM10H, val)
2047 #define bfin_read_CAN0_AM11L()          bfin_read16(CAN0_AM11L)
2048 #define bfin_write_CAN0_AM11L(val)      bfin_write16(CAN0_AM11L, val)
2049 #define bfin_read_CAN0_AM11H()          bfin_read16(CAN0_AM11H)
2050 #define bfin_write_CAN0_AM11H(val)      bfin_write16(CAN0_AM11H, val)
2051 #define bfin_read_CAN0_AM12L()          bfin_read16(CAN0_AM12L)
2052 #define bfin_write_CAN0_AM12L(val)      bfin_write16(CAN0_AM12L, val)
2053 #define bfin_read_CAN0_AM12H()          bfin_read16(CAN0_AM12H)
2054 #define bfin_write_CAN0_AM12H(val)      bfin_write16(CAN0_AM12H, val)
2055 #define bfin_read_CAN0_AM13L()          bfin_read16(CAN0_AM13L)
2056 #define bfin_write_CAN0_AM13L(val)      bfin_write16(CAN0_AM13L, val)
2057 #define bfin_read_CAN0_AM13H()          bfin_read16(CAN0_AM13H)
2058 #define bfin_write_CAN0_AM13H(val)      bfin_write16(CAN0_AM13H, val)
2059 #define bfin_read_CAN0_AM14L()          bfin_read16(CAN0_AM14L)
2060 #define bfin_write_CAN0_AM14L(val)      bfin_write16(CAN0_AM14L, val)
2061 #define bfin_read_CAN0_AM14H()          bfin_read16(CAN0_AM14H)
2062 #define bfin_write_CAN0_AM14H(val)      bfin_write16(CAN0_AM14H, val)
2063 #define bfin_read_CAN0_AM15L()          bfin_read16(CAN0_AM15L)
2064 #define bfin_write_CAN0_AM15L(val)      bfin_write16(CAN0_AM15L, val)
2065 #define bfin_read_CAN0_AM15H()          bfin_read16(CAN0_AM15H)
2066 #define bfin_write_CAN0_AM15H(val)      bfin_write16(CAN0_AM15H, val)
2067
2068 /* CAN Controller 0 Accebfin_read_()tance Registers */
2069
2070 #define bfin_read_CAN0_AM16L()          bfin_read16(CAN0_AM16L)
2071 #define bfin_write_CAN0_AM16L(val)      bfin_write16(CAN0_AM16L, val)
2072 #define bfin_read_CAN0_AM16H()          bfin_read16(CAN0_AM16H)
2073 #define bfin_write_CAN0_AM16H(val)      bfin_write16(CAN0_AM16H, val)
2074 #define bfin_read_CAN0_AM17L()          bfin_read16(CAN0_AM17L)
2075 #define bfin_write_CAN0_AM17L(val)      bfin_write16(CAN0_AM17L, val)
2076 #define bfin_read_CAN0_AM17H()          bfin_read16(CAN0_AM17H)
2077 #define bfin_write_CAN0_AM17H(val)      bfin_write16(CAN0_AM17H, val)
2078 #define bfin_read_CAN0_AM18L()          bfin_read16(CAN0_AM18L)
2079 #define bfin_write_CAN0_AM18L(val)      bfin_write16(CAN0_AM18L, val)
2080 #define bfin_read_CAN0_AM18H()          bfin_read16(CAN0_AM18H)
2081 #define bfin_write_CAN0_AM18H(val)      bfin_write16(CAN0_AM18H, val)
2082 #define bfin_read_CAN0_AM19L()          bfin_read16(CAN0_AM19L)
2083 #define bfin_write_CAN0_AM19L(val)      bfin_write16(CAN0_AM19L, val)
2084 #define bfin_read_CAN0_AM19H()          bfin_read16(CAN0_AM19H)
2085 #define bfin_write_CAN0_AM19H(val)      bfin_write16(CAN0_AM19H, val)
2086 #define bfin_read_CAN0_AM20L()          bfin_read16(CAN0_AM20L)
2087 #define bfin_write_CAN0_AM20L(val)      bfin_write16(CAN0_AM20L, val)
2088 #define bfin_read_CAN0_AM20H()          bfin_read16(CAN0_AM20H)
2089 #define bfin_write_CAN0_AM20H(val)      bfin_write16(CAN0_AM20H, val)
2090 #define bfin_read_CAN0_AM21L()          bfin_read16(CAN0_AM21L)
2091 #define bfin_write_CAN0_AM21L(val)      bfin_write16(CAN0_AM21L, val)
2092 #define bfin_read_CAN0_AM21H()          bfin_read16(CAN0_AM21H)
2093 #define bfin_write_CAN0_AM21H(val)      bfin_write16(CAN0_AM21H, val)
2094 #define bfin_read_CAN0_AM22L()          bfin_read16(CAN0_AM22L)
2095 #define bfin_write_CAN0_AM22L(val)      bfin_write16(CAN0_AM22L, val)
2096 #define bfin_read_CAN0_AM22H()          bfin_read16(CAN0_AM22H)
2097 #define bfin_write_CAN0_AM22H(val)      bfin_write16(CAN0_AM22H, val)
2098 #define bfin_read_CAN0_AM23L()          bfin_read16(CAN0_AM23L)
2099 #define bfin_write_CAN0_AM23L(val)      bfin_write16(CAN0_AM23L, val)
2100 #define bfin_read_CAN0_AM23H()          bfin_read16(CAN0_AM23H)
2101 #define bfin_write_CAN0_AM23H(val)      bfin_write16(CAN0_AM23H, val)
2102 #define bfin_read_CAN0_AM24L()          bfin_read16(CAN0_AM24L)
2103 #define bfin_write_CAN0_AM24L(val)      bfin_write16(CAN0_AM24L, val)
2104 #define bfin_read_CAN0_AM24H()          bfin_read16(CAN0_AM24H)
2105 #define bfin_write_CAN0_AM24H(val)      bfin_write16(CAN0_AM24H, val)
2106 #define bfin_read_CAN0_AM25L()          bfin_read16(CAN0_AM25L)
2107 #define bfin_write_CAN0_AM25L(val)      bfin_write16(CAN0_AM25L, val)
2108 #define bfin_read_CAN0_AM25H()          bfin_read16(CAN0_AM25H)
2109 #define bfin_write_CAN0_AM25H(val)      bfin_write16(CAN0_AM25H, val)
2110 #define bfin_read_CAN0_AM26L()          bfin_read16(CAN0_AM26L)
2111 #define bfin_write_CAN0_AM26L(val)      bfin_write16(CAN0_AM26L, val)
2112 #define bfin_read_CAN0_AM26H()          bfin_read16(CAN0_AM26H)
2113 #define bfin_write_CAN0_AM26H(val)      bfin_write16(CAN0_AM26H, val)
2114 #define bfin_read_CAN0_AM27L()          bfin_read16(CAN0_AM27L)
2115 #define bfin_write_CAN0_AM27L(val)      bfin_write16(CAN0_AM27L, val)
2116 #define bfin_read_CAN0_AM27H()          bfin_read16(CAN0_AM27H)
2117 #define bfin_write_CAN0_AM27H(val)      bfin_write16(CAN0_AM27H, val)
2118 #define bfin_read_CAN0_AM28L()          bfin_read16(CAN0_AM28L)
2119 #define bfin_write_CAN0_AM28L(val)      bfin_write16(CAN0_AM28L, val)
2120 #define bfin_read_CAN0_AM28H()          bfin_read16(CAN0_AM28H)
2121 #define bfin_write_CAN0_AM28H(val)      bfin_write16(CAN0_AM28H, val)
2122 #define bfin_read_CAN0_AM29L()          bfin_read16(CAN0_AM29L)
2123 #define bfin_write_CAN0_AM29L(val)      bfin_write16(CAN0_AM29L, val)
2124 #define bfin_read_CAN0_AM29H()          bfin_read16(CAN0_AM29H)
2125 #define bfin_write_CAN0_AM29H(val)      bfin_write16(CAN0_AM29H, val)
2126 #define bfin_read_CAN0_AM30L()          bfin_read16(CAN0_AM30L)
2127 #define bfin_write_CAN0_AM30L(val)      bfin_write16(CAN0_AM30L, val)
2128 #define bfin_read_CAN0_AM30H()          bfin_read16(CAN0_AM30H)
2129 #define bfin_write_CAN0_AM30H(val)      bfin_write16(CAN0_AM30H, val)
2130 #define bfin_read_CAN0_AM31L()          bfin_read16(CAN0_AM31L)
2131 #define bfin_write_CAN0_AM31L(val)      bfin_write16(CAN0_AM31L, val)
2132 #define bfin_read_CAN0_AM31H()          bfin_read16(CAN0_AM31H)
2133 #define bfin_write_CAN0_AM31H(val)      bfin_write16(CAN0_AM31H, val)
2134
2135 /* CAN Controller 0 Mailbox Data Registers */
2136
2137 #define bfin_read_CAN0_MB00_DATA0()             bfin_read16(CAN0_MB00_DATA0)
2138 #define bfin_write_CAN0_MB00_DATA0(val)         bfin_write16(CAN0_MB00_DATA0, val)
2139 #define bfin_read_CAN0_MB00_DATA1()             bfin_read16(CAN0_MB00_DATA1)
2140 #define bfin_write_CAN0_MB00_DATA1(val)         bfin_write16(CAN0_MB00_DATA1, val)
2141 #define bfin_read_CAN0_MB00_DATA2()             bfin_read16(CAN0_MB00_DATA2)
2142 #define bfin_write_CAN0_MB00_DATA2(val)         bfin_write16(CAN0_MB00_DATA2, val)
2143 #define bfin_read_CAN0_MB00_DATA3()             bfin_read16(CAN0_MB00_DATA3)
2144 #define bfin_write_CAN0_MB00_DATA3(val)         bfin_write16(CAN0_MB00_DATA3, val)
2145 #define bfin_read_CAN0_MB00_LENGTH()            bfin_read16(CAN0_MB00_LENGTH)
2146 #define bfin_write_CAN0_MB00_LENGTH(val)        bfin_write16(CAN0_MB00_LENGTH, val)
2147 #define bfin_read_CAN0_MB00_TIMESTAMP()         bfin_read16(CAN0_MB00_TIMESTAMP)
2148 #define bfin_write_CAN0_MB00_TIMESTAMP(val)     bfin_write16(CAN0_MB00_TIMESTAMP, val)
2149 #define bfin_read_CAN0_MB00_ID0()               bfin_read16(CAN0_MB00_ID0)
2150 #define bfin_write_CAN0_MB00_ID0(val)           bfin_write16(CAN0_MB00_ID0, val)
2151 #define bfin_read_CAN0_MB00_ID1()               bfin_read16(CAN0_MB00_ID1)
2152 #define bfin_write_CAN0_MB00_ID1(val)           bfin_write16(CAN0_MB00_ID1, val)
2153 #define bfin_read_CAN0_MB01_DATA0()             bfin_read16(CAN0_MB01_DATA0)
2154 #define bfin_write_CAN0_MB01_DATA0(val)         bfin_write16(CAN0_MB01_DATA0, val)
2155 #define bfin_read_CAN0_MB01_DATA1()             bfin_read16(CAN0_MB01_DATA1)
2156 #define bfin_write_CAN0_MB01_DATA1(val)         bfin_write16(CAN0_MB01_DATA1, val)
2157 #define bfin_read_CAN0_MB01_DATA2()             bfin_read16(CAN0_MB01_DATA2)
2158 #define bfin_write_CAN0_MB01_DATA2(val)         bfin_write16(CAN0_MB01_DATA2, val)
2159 #define bfin_read_CAN0_MB01_DATA3()             bfin_read16(CAN0_MB01_DATA3)
2160 #define bfin_write_CAN0_MB01_DATA3(val)         bfin_write16(CAN0_MB01_DATA3, val)
2161 #define bfin_read_CAN0_MB01_LENGTH()            bfin_read16(CAN0_MB01_LENGTH)
2162 #define bfin_write_CAN0_MB01_LENGTH(val)        bfin_write16(CAN0_MB01_LENGTH, val)
2163 #define bfin_read_CAN0_MB01_TIMESTAMP()         bfin_read16(CAN0_MB01_TIMESTAMP)
2164 #define bfin_write_CAN0_MB01_TIMESTAMP(val)     bfin_write16(CAN0_MB01_TIMESTAMP, val)
2165 #define bfin_read_CAN0_MB01_ID0()               bfin_read16(CAN0_MB01_ID0)
2166 #define bfin_write_CAN0_MB01_ID0(val)           bfin_write16(CAN0_MB01_ID0, val)
2167 #define bfin_read_CAN0_MB01_ID1()               bfin_read16(CAN0_MB01_ID1)
2168 #define bfin_write_CAN0_MB01_ID1(val)           bfin_write16(CAN0_MB01_ID1, val)
2169 #define bfin_read_CAN0_MB02_DATA0()             bfin_read16(CAN0_MB02_DATA0)
2170 #define bfin_write_CAN0_MB02_DATA0(val)         bfin_write16(CAN0_MB02_DATA0, val)
2171 #define bfin_read_CAN0_MB02_DATA1()             bfin_read16(CAN0_MB02_DATA1)
2172 #define bfin_write_CAN0_MB02_DATA1(val)         bfin_write16(CAN0_MB02_DATA1, val)
2173 #define bfin_read_CAN0_MB02_DATA2()             bfin_read16(CAN0_MB02_DATA2)
2174 #define bfin_write_CAN0_MB02_DATA2(val)         bfin_write16(CAN0_MB02_DATA2, val)
2175 #define bfin_read_CAN0_MB02_DATA3()             bfin_read16(CAN0_MB02_DATA3)
2176 #define bfin_write_CAN0_MB02_DATA3(val)         bfin_write16(CAN0_MB02_DATA3, val)
2177 #define bfin_read_CAN0_MB02_LENGTH()            bfin_read16(CAN0_MB02_LENGTH)
2178 #define bfin_write_CAN0_MB02_LENGTH(val)        bfin_write16(CAN0_MB02_LENGTH, val)
2179 #define bfin_read_CAN0_MB02_TIMESTAMP()         bfin_read16(CAN0_MB02_TIMESTAMP)
2180 #define bfin_write_CAN0_MB02_TIMESTAMP(val)     bfin_write16(CAN0_MB02_TIMESTAMP, val)
2181 #define bfin_read_CAN0_MB02_ID0()               bfin_read16(CAN0_MB02_ID0)
2182 #define bfin_write_CAN0_MB02_ID0(val)           bfin_write16(CAN0_MB02_ID0, val)
2183 #define bfin_read_CAN0_MB02_ID1()               bfin_read16(CAN0_MB02_ID1)
2184 #define bfin_write_CAN0_MB02_ID1(val)           bfin_write16(CAN0_MB02_ID1, val)
2185 #define bfin_read_CAN0_MB03_DATA0()             bfin_read16(CAN0_MB03_DATA0)
2186 #define bfin_write_CAN0_MB03_DATA0(val)         bfin_write16(CAN0_MB03_DATA0, val)
2187 #define bfin_read_CAN0_MB03_DATA1()             bfin_read16(CAN0_MB03_DATA1)
2188 #define bfin_write_CAN0_MB03_DATA1(val)         bfin_write16(CAN0_MB03_DATA1, val)
2189 #define bfin_read_CAN0_MB03_DATA2()             bfin_read16(CAN0_MB03_DATA2)
2190 #define bfin_write_CAN0_MB03_DATA2(val)         bfin_write16(CAN0_MB03_DATA2, val)
2191 #define bfin_read_CAN0_MB03_DATA3()             bfin_read16(CAN0_MB03_DATA3)
2192 #define bfin_write_CAN0_MB03_DATA3(val)         bfin_write16(CAN0_MB03_DATA3, val)
2193 #define bfin_read_CAN0_MB03_LENGTH()            bfin_read16(CAN0_MB03_LENGTH)
2194 #define bfin_write_CAN0_MB03_LENGTH(val)        bfin_write16(CAN0_MB03_LENGTH, val)
2195 #define bfin_read_CAN0_MB03_TIMESTAMP()         bfin_read16(CAN0_MB03_TIMESTAMP)
2196 #define bfin_write_CAN0_MB03_TIMESTAMP(val)     bfin_write16(CAN0_MB03_TIMESTAMP, val)
2197 #define bfin_read_CAN0_MB03_ID0()               bfin_read16(CAN0_MB03_ID0)
2198 #define bfin_write_CAN0_MB03_ID0(val)           bfin_write16(CAN0_MB03_ID0, val)
2199 #define bfin_read_CAN0_MB03_ID1()               bfin_read16(CAN0_MB03_ID1)
2200 #define bfin_write_CAN0_MB03_ID1(val)           bfin_write16(CAN0_MB03_ID1, val)
2201 #define bfin_read_CAN0_MB04_DATA0()             bfin_read16(CAN0_MB04_DATA0)
2202 #define bfin_write_CAN0_MB04_DATA0(val)         bfin_write16(CAN0_MB04_DATA0, val)
2203 #define bfin_read_CAN0_MB04_DATA1()             bfin_read16(CAN0_MB04_DATA1)
2204 #define bfin_write_CAN0_MB04_DATA1(val)         bfin_write16(CAN0_MB04_DATA1, val)
2205 #define bfin_read_CAN0_MB04_DATA2()             bfin_read16(CAN0_MB04_DATA2)
2206 #define bfin_write_CAN0_MB04_DATA2(val)         bfin_write16(CAN0_MB04_DATA2, val)
2207 #define bfin_read_CAN0_MB04_DATA3()             bfin_read16(CAN0_MB04_DATA3)
2208 #define bfin_write_CAN0_MB04_DATA3(val)         bfin_write16(CAN0_MB04_DATA3, val)
2209 #define bfin_read_CAN0_MB04_LENGTH()            bfin_read16(CAN0_MB04_LENGTH)
2210 #define bfin_write_CAN0_MB04_LENGTH(val)        bfin_write16(CAN0_MB04_LENGTH, val)
2211 #define bfin_read_CAN0_MB04_TIMESTAMP()         bfin_read16(CAN0_MB04_TIMESTAMP)
2212 #define bfin_write_CAN0_MB04_TIMESTAMP(val)     bfin_write16(CAN0_MB04_TIMESTAMP, val)
2213 #define bfin_read_CAN0_MB04_ID0()               bfin_read16(CAN0_MB04_ID0)
2214 #define bfin_write_CAN0_MB04_ID0(val)           bfin_write16(CAN0_MB04_ID0, val)
2215 #define bfin_read_CAN0_MB04_ID1()               bfin_read16(CAN0_MB04_ID1)
2216 #define bfin_write_CAN0_MB04_ID1(val)           bfin_write16(CAN0_MB04_ID1, val)
2217 #define bfin_read_CAN0_MB05_DATA0()             bfin_read16(CAN0_MB05_DATA0)
2218 #define bfin_write_CAN0_MB05_DATA0(val)         bfin_write16(CAN0_MB05_DATA0, val)
2219 #define bfin_read_CAN0_MB05_DATA1()             bfin_read16(CAN0_MB05_DATA1)
2220 #define bfin_write_CAN0_MB05_DATA1(val)         bfin_write16(CAN0_MB05_DATA1, val)
2221 #define bfin_read_CAN0_MB05_DATA2()             bfin_read16(CAN0_MB05_DATA2)
2222 #define bfin_write_CAN0_MB05_DATA2(val)         bfin_write16(CAN0_MB05_DATA2, val)
2223 #define bfin_read_CAN0_MB05_DATA3()             bfin_read16(CAN0_MB05_DATA3)
2224 #define bfin_write_CAN0_MB05_DATA3(val)         bfin_write16(CAN0_MB05_DATA3, val)
2225 #define bfin_read_CAN0_MB05_LENGTH()            bfin_read16(CAN0_MB05_LENGTH)
2226 #define bfin_write_CAN0_MB05_LENGTH(val)        bfin_write16(CAN0_MB05_LENGTH, val)
2227 #define bfin_read_CAN0_MB05_TIMESTAMP()         bfin_read16(CAN0_MB05_TIMESTAMP)
2228 #define bfin_write_CAN0_MB05_TIMESTAMP(val)     bfin_write16(CAN0_MB05_TIMESTAMP, val)
2229 #define bfin_read_CAN0_MB05_ID0()               bfin_read16(CAN0_MB05_ID0)
2230 #define bfin_write_CAN0_MB05_ID0(val)           bfin_write16(CAN0_MB05_ID0, val)
2231 #define bfin_read_CAN0_MB05_ID1()               bfin_read16(CAN0_MB05_ID1)
2232 #define bfin_write_CAN0_MB05_ID1(val)           bfin_write16(CAN0_MB05_ID1, val)
2233 #define bfin_read_CAN0_MB06_DATA0()             bfin_read16(CAN0_MB06_DATA0)
2234 #define bfin_write_CAN0_MB06_DATA0(val)         bfin_write16(CAN0_MB06_DATA0, val)
2235 #define bfin_read_CAN0_MB06_DATA1()             bfin_read16(CAN0_MB06_DATA1)
2236 #define bfin_write_CAN0_MB06_DATA1(val)         bfin_write16(CAN0_MB06_DATA1, val)
2237 #define bfin_read_CAN0_MB06_DATA2()             bfin_read16(CAN0_MB06_DATA2)
2238 #define bfin_write_CAN0_MB06_DATA2(val)         bfin_write16(CAN0_MB06_DATA2, val)
2239 #define bfin_read_CAN0_MB06_DATA3()             bfin_read16(CAN0_MB06_DATA3)
2240 #define bfin_write_CAN0_MB06_DATA3(val)         bfin_write16(CAN0_MB06_DATA3, val)
2241 #define bfin_read_CAN0_MB06_LENGTH()            bfin_read16(CAN0_MB06_LENGTH)
2242 #define bfin_write_CAN0_MB06_LENGTH(val)        bfin_write16(CAN0_MB06_LENGTH, val)
2243 #define bfin_read_CAN0_MB06_TIMESTAMP()         bfin_read16(CAN0_MB06_TIMESTAMP)
2244 #define bfin_write_CAN0_MB06_TIMESTAMP(val)     bfin_write16(CAN0_MB06_TIMESTAMP, val)
2245 #define bfin_read_CAN0_MB06_ID0()               bfin_read16(CAN0_MB06_ID0)
2246 #define bfin_write_CAN0_MB06_ID0(val)           bfin_write16(CAN0_MB06_ID0, val)
2247 #define bfin_read_CAN0_MB06_ID1()               bfin_read16(CAN0_MB06_ID1)
2248 #define bfin_write_CAN0_MB06_ID1(val)           bfin_write16(CAN0_MB06_ID1, val)
2249 #define bfin_read_CAN0_MB07_DATA0()             bfin_read16(CAN0_MB07_DATA0)
2250 #define bfin_write_CAN0_MB07_DATA0(val)         bfin_write16(CAN0_MB07_DATA0, val)
2251 #define bfin_read_CAN0_MB07_DATA1()             bfin_read16(CAN0_MB07_DATA1)
2252 #define bfin_write_CAN0_MB07_DATA1(val)         bfin_write16(CAN0_MB07_DATA1, val)
2253 #define bfin_read_CAN0_MB07_DATA2()             bfin_read16(CAN0_MB07_DATA2)
2254 #define bfin_write_CAN0_MB07_DATA2(val)         bfin_write16(CAN0_MB07_DATA2, val)
2255 #define bfin_read_CAN0_MB07_DATA3()             bfin_read16(CAN0_MB07_DATA3)
2256 #define bfin_write_CAN0_MB07_DATA3(val)         bfin_write16(CAN0_MB07_DATA3, val)
2257 #define bfin_read_CAN0_MB07_LENGTH()            bfin_read16(CAN0_MB07_LENGTH)
2258 #define bfin_write_CAN0_MB07_LENGTH(val)        bfin_write16(CAN0_MB07_LENGTH, val)
2259 #define bfin_read_CAN0_MB07_TIMESTAMP()         bfin_read16(CAN0_MB07_TIMESTAMP)
2260 #define bfin_write_CAN0_MB07_TIMESTAMP(val)     bfin_write16(CAN0_MB07_TIMESTAMP, val)
2261 #define bfin_read_CAN0_MB07_ID0()               bfin_read16(CAN0_MB07_ID0)
2262 #define bfin_write_CAN0_MB07_ID0(val)           bfin_write16(CAN0_MB07_ID0, val)
2263 #define bfin_read_CAN0_MB07_ID1()               bfin_read16(CAN0_MB07_ID1)
2264 #define bfin_write_CAN0_MB07_ID1(val)           bfin_write16(CAN0_MB07_ID1, val)
2265 #define bfin_read_CAN0_MB08_DATA0()             bfin_read16(CAN0_MB08_DATA0)
2266 #define bfin_write_CAN0_MB08_DATA0(val)         bfin_write16(CAN0_MB08_DATA0, val)
2267 #define bfin_read_CAN0_MB08_DATA1()             bfin_read16(CAN0_MB08_DATA1)
2268 #define bfin_write_CAN0_MB08_DATA1(val)         bfin_write16(CAN0_MB08_DATA1, val)
2269 #define bfin_read_CAN0_MB08_DATA2()             bfin_read16(CAN0_MB08_DATA2)
2270 #define bfin_write_CAN0_MB08_DATA2(val)         bfin_write16(CAN0_MB08_DATA2, val)
2271 #define bfin_read_CAN0_MB08_DATA3()             bfin_read16(CAN0_MB08_DATA3)
2272 #define bfin_write_CAN0_MB08_DATA3(val)         bfin_write16(CAN0_MB08_DATA3, val)
2273 #define bfin_read_CAN0_MB08_LENGTH()            bfin_read16(CAN0_MB08_LENGTH)
2274 #define bfin_write_CAN0_MB08_LENGTH(val)        bfin_write16(CAN0_MB08_LENGTH, val)
2275 #define bfin_read_CAN0_MB08_TIMESTAMP()         bfin_read16(CAN0_MB08_TIMESTAMP)
2276 #define bfin_write_CAN0_MB08_TIMESTAMP(val)     bfin_write16(CAN0_MB08_TIMESTAMP, val)
2277 #define bfin_read_CAN0_MB08_ID0()               bfin_read16(CAN0_MB08_ID0)
2278 #define bfin_write_CAN0_MB08_ID0(val)           bfin_write16(CAN0_MB08_ID0, val)
2279 #define bfin_read_CAN0_MB08_ID1()               bfin_read16(CAN0_MB08_ID1)
2280 #define bfin_write_CAN0_MB08_ID1(val)           bfin_write16(CAN0_MB08_ID1, val)
2281 #define bfin_read_CAN0_MB09_DATA0()             bfin_read16(CAN0_MB09_DATA0)
2282 #define bfin_write_CAN0_MB09_DATA0(val)         bfin_write16(CAN0_MB09_DATA0, val)
2283 #define bfin_read_CAN0_MB09_DATA1()             bfin_read16(CAN0_MB09_DATA1)
2284 #define bfin_write_CAN0_MB09_DATA1(val)         bfin_write16(CAN0_MB09_DATA1, val)
2285 #define bfin_read_CAN0_MB09_DATA2()             bfin_read16(CAN0_MB09_DATA2)
2286 #define bfin_write_CAN0_MB09_DATA2(val)         bfin_write16(CAN0_MB09_DATA2, val)
2287 #define bfin_read_CAN0_MB09_DATA3()             bfin_read16(CAN0_MB09_DATA3)
2288 #define bfin_write_CAN0_MB09_DATA3(val)         bfin_write16(CAN0_MB09_DATA3, val)
2289 #define bfin_read_CAN0_MB09_LENGTH()            bfin_read16(CAN0_MB09_LENGTH)
2290 #define bfin_write_CAN0_MB09_LENGTH(val)        bfin_write16(CAN0_MB09_LENGTH, val)
2291 #define bfin_read_CAN0_MB09_TIMESTAMP()         bfin_read16(CAN0_MB09_TIMESTAMP)
2292 #define bfin_write_CAN0_MB09_TIMESTAMP(val)     bfin_write16(CAN0_MB09_TIMESTAMP, val)
2293 #define bfin_read_CAN0_MB09_ID0()               bfin_read16(CAN0_MB09_ID0)
2294 #define bfin_write_CAN0_MB09_ID0(val)           bfin_write16(CAN0_MB09_ID0, val)
2295 #define bfin_read_CAN0_MB09_ID1()               bfin_read16(CAN0_MB09_ID1)
2296 #define bfin_write_CAN0_MB09_ID1(val)           bfin_write16(CAN0_MB09_ID1, val)
2297 #define bfin_read_CAN0_MB10_DATA0()             bfin_read16(CAN0_MB10_DATA0)
2298 #define bfin_write_CAN0_MB10_DATA0(val)         bfin_write16(CAN0_MB10_DATA0, val)
2299 #define bfin_read_CAN0_MB10_DATA1()             bfin_read16(CAN0_MB10_DATA1)
2300 #define bfin_write_CAN0_MB10_DATA1(val)         bfin_write16(CAN0_MB10_DATA1, val)
2301 #define bfin_read_CAN0_MB10_DATA2()             bfin_read16(CAN0_MB10_DATA2)
2302 #define bfin_write_CAN0_MB10_DATA2(val)         bfin_write16(CAN0_MB10_DATA2, val)
2303 #define bfin_read_CAN0_MB10_DATA3()             bfin_read16(CAN0_MB10_DATA3)
2304 #define bfin_write_CAN0_MB10_DATA3(val)         bfin_write16(CAN0_MB10_DATA3, val)
2305 #define bfin_read_CAN0_MB10_LENGTH()            bfin_read16(CAN0_MB10_LENGTH)
2306 #define bfin_write_CAN0_MB10_LENGTH(val)        bfin_write16(CAN0_MB10_LENGTH, val)
2307 #define bfin_read_CAN0_MB10_TIMESTAMP()         bfin_read16(CAN0_MB10_TIMESTAMP)
2308 #define bfin_write_CAN0_MB10_TIMESTAMP(val)     bfin_write16(CAN0_MB10_TIMESTAMP, val)
2309 #define bfin_read_CAN0_MB10_ID0()               bfin_read16(CAN0_MB10_ID0)
2310 #define bfin_write_CAN0_MB10_ID0(val)           bfin_write16(CAN0_MB10_ID0, val)
2311 #define bfin_read_CAN0_MB10_ID1()               bfin_read16(CAN0_MB10_ID1)
2312 #define bfin_write_CAN0_MB10_ID1(val)           bfin_write16(CAN0_MB10_ID1, val)
2313 #define bfin_read_CAN0_MB11_DATA0()             bfin_read16(CAN0_MB11_DATA0)
2314 #define bfin_write_CAN0_MB11_DATA0(val)         bfin_write16(CAN0_MB11_DATA0, val)
2315 #define bfin_read_CAN0_MB11_DATA1()             bfin_read16(CAN0_MB11_DATA1)
2316 #define bfin_write_CAN0_MB11_DATA1(val)         bfin_write16(CAN0_MB11_DATA1, val)
2317 #define bfin_read_CAN0_MB11_DATA2()             bfin_read16(CAN0_MB11_DATA2)
2318 #define bfin_write_CAN0_MB11_DATA2(val)         bfin_write16(CAN0_MB11_DATA2, val)
2319 #define bfin_read_CAN0_MB11_DATA3()             bfin_read16(CAN0_MB11_DATA3)
2320 #define bfin_write_CAN0_MB11_DATA3(val)         bfin_write16(CAN0_MB11_DATA3, val)
2321 #define bfin_read_CAN0_MB11_LENGTH()            bfin_read16(CAN0_MB11_LENGTH)
2322 #define bfin_write_CAN0_MB11_LENGTH(val)        bfin_write16(CAN0_MB11_LENGTH, val)
2323 #define bfin_read_CAN0_MB11_TIMESTAMP()         bfin_read16(CAN0_MB11_TIMESTAMP)
2324 #define bfin_write_CAN0_MB11_TIMESTAMP(val)     bfin_write16(CAN0_MB11_TIMESTAMP, val)
2325 #define bfin_read_CAN0_MB11_ID0()               bfin_read16(CAN0_MB11_ID0)
2326 #define bfin_write_CAN0_MB11_ID0(val)           bfin_write16(CAN0_MB11_ID0, val)
2327 #define bfin_read_CAN0_MB11_ID1()               bfin_read16(CAN0_MB11_ID1)
2328 #define bfin_write_CAN0_MB11_ID1(val)           bfin_write16(CAN0_MB11_ID1, val)
2329 #define bfin_read_CAN0_MB12_DATA0()             bfin_read16(CAN0_MB12_DATA0)
2330 #define bfin_write_CAN0_MB12_DATA0(val)         bfin_write16(CAN0_MB12_DATA0, val)
2331 #define bfin_read_CAN0_MB12_DATA1()             bfin_read16(CAN0_MB12_DATA1)
2332 #define bfin_write_CAN0_MB12_DATA1(val)         bfin_write16(CAN0_MB12_DATA1, val)
2333 #define bfin_read_CAN0_MB12_DATA2()             bfin_read16(CAN0_MB12_DATA2)
2334 #define bfin_write_CAN0_MB12_DATA2(val)         bfin_write16(CAN0_MB12_DATA2, val)
2335 #define bfin_read_CAN0_MB12_DATA3()             bfin_read16(CAN0_MB12_DATA3)
2336 #define bfin_write_CAN0_MB12_DATA3(val)         bfin_write16(CAN0_MB12_DATA3, val)
2337 #define bfin_read_CAN0_MB12_LENGTH()            bfin_read16(CAN0_MB12_LENGTH)
2338 #define bfin_write_CAN0_MB12_LENGTH(val)        bfin_write16(CAN0_MB12_LENGTH, val)
2339 #define bfin_read_CAN0_MB12_TIMESTAMP()         bfin_read16(CAN0_MB12_TIMESTAMP)
2340 #define bfin_write_CAN0_MB12_TIMESTAMP(val)     bfin_write16(CAN0_MB12_TIMESTAMP, val)
2341 #define bfin_read_CAN0_MB12_ID0()               bfin_read16(CAN0_MB12_ID0)
2342 #define bfin_write_CAN0_MB12_ID0(val)           bfin_write16(CAN0_MB12_ID0, val)
2343 #define bfin_read_CAN0_MB12_ID1()               bfin_read16(CAN0_MB12_ID1)
2344 #define bfin_write_CAN0_MB12_ID1(val)           bfin_write16(CAN0_MB12_ID1, val)
2345 #define bfin_read_CAN0_MB13_DATA0()             bfin_read16(CAN0_MB13_DATA0)
2346 #define bfin_write_CAN0_MB13_DATA0(val)         bfin_write16(CAN0_MB13_DATA0, val)
2347 #define bfin_read_CAN0_MB13_DATA1()             bfin_read16(CAN0_MB13_DATA1)
2348 #define bfin_write_CAN0_MB13_DATA1(val)         bfin_write16(CAN0_MB13_DATA1, val)
2349 #define bfin_read_CAN0_MB13_DATA2()             bfin_read16(CAN0_MB13_DATA2)
2350 #define bfin_write_CAN0_MB13_DATA2(val)         bfin_write16(CAN0_MB13_DATA2, val)
2351 #define bfin_read_CAN0_MB13_DATA3()             bfin_read16(CAN0_MB13_DATA3)
2352 #define bfin_write_CAN0_MB13_DATA3(val)         bfin_write16(CAN0_MB13_DATA3, val)
2353 #define bfin_read_CAN0_MB13_LENGTH()            bfin_read16(CAN0_MB13_LENGTH)
2354 #define bfin_write_CAN0_MB13_LENGTH(val)        bfin_write16(CAN0_MB13_LENGTH, val)
2355 #define bfin_read_CAN0_MB13_TIMESTAMP()         bfin_read16(CAN0_MB13_TIMESTAMP)
2356 #define bfin_write_CAN0_MB13_TIMESTAMP(val)     bfin_write16(CAN0_MB13_TIMESTAMP, val)
2357 #define bfin_read_CAN0_MB13_ID0()               bfin_read16(CAN0_MB13_ID0)
2358 #define bfin_write_CAN0_MB13_ID0(val)           bfin_write16(CAN0_MB13_ID0, val)
2359 #define bfin_read_CAN0_MB13_ID1()               bfin_read16(CAN0_MB13_ID1)
2360 #define bfin_write_CAN0_MB13_ID1(val)           bfin_write16(CAN0_MB13_ID1, val)
2361 #define bfin_read_CAN0_MB14_DATA0()             bfin_read16(CAN0_MB14_DATA0)
2362 #define bfin_write_CAN0_MB14_DATA0(val)         bfin_write16(CAN0_MB14_DATA0, val)
2363 #define bfin_read_CAN0_MB14_DATA1()             bfin_read16(CAN0_MB14_DATA1)
2364 #define bfin_write_CAN0_MB14_DATA1(val)         bfin_write16(CAN0_MB14_DATA1, val)
2365 #define bfin_read_CAN0_MB14_DATA2()             bfin_read16(CAN0_MB14_DATA2)
2366 #define bfin_write_CAN0_MB14_DATA2(val)         bfin_write16(CAN0_MB14_DATA2, val)
2367 #define bfin_read_CAN0_MB14_DATA3()             bfin_read16(CAN0_MB14_DATA3)
2368 #define bfin_write_CAN0_MB14_DATA3(val)         bfin_write16(CAN0_MB14_DATA3, val)
2369 #define bfin_read_CAN0_MB14_LENGTH()            bfin_read16(CAN0_MB14_LENGTH)
2370 #define bfin_write_CAN0_MB14_LENGTH(val)        bfin_write16(CAN0_MB14_LENGTH, val)
2371 #define bfin_read_CAN0_MB14_TIMESTAMP()         bfin_read16(CAN0_MB14_TIMESTAMP)
2372 #define bfin_write_CAN0_MB14_TIMESTAMP(val)     bfin_write16(CAN0_MB14_TIMESTAMP, val)
2373 #define bfin_read_CAN0_MB14_ID0()               bfin_read16(CAN0_MB14_ID0)
2374 #define bfin_write_CAN0_MB14_ID0(val)           bfin_write16(CAN0_MB14_ID0, val)
2375 #define bfin_read_CAN0_MB14_ID1()               bfin_read16(CAN0_MB14_ID1)
2376 #define bfin_write_CAN0_MB14_ID1(val)           bfin_write16(CAN0_MB14_ID1, val)
2377 #define bfin_read_CAN0_MB15_DATA0()             bfin_read16(CAN0_MB15_DATA0)
2378 #define bfin_write_CAN0_MB15_DATA0(val)         bfin_write16(CAN0_MB15_DATA0, val)
2379 #define bfin_read_CAN0_MB15_DATA1()             bfin_read16(CAN0_MB15_DATA1)
2380 #define bfin_write_CAN0_MB15_DATA1(val)         bfin_write16(CAN0_MB15_DATA1, val)
2381 #define bfin_read_CAN0_MB15_DATA2()             bfin_read16(CAN0_MB15_DATA2)
2382 #define bfin_write_CAN0_MB15_DATA2(val)         bfin_write16(CAN0_MB15_DATA2, val)
2383 #define bfin_read_CAN0_MB15_DATA3()             bfin_read16(CAN0_MB15_DATA3)
2384 #define bfin_write_CAN0_MB15_DATA3(val)         bfin_write16(CAN0_MB15_DATA3, val)
2385 #define bfin_read_CAN0_MB15_LENGTH()            bfin_read16(CAN0_MB15_LENGTH)
2386 #define bfin_write_CAN0_MB15_LENGTH(val)        bfin_write16(CAN0_MB15_LENGTH, val)
2387 #define bfin_read_CAN0_MB15_TIMESTAMP()         bfin_read16(CAN0_MB15_TIMESTAMP)
2388 #define bfin_write_CAN0_MB15_TIMESTAMP(val)     bfin_write16(CAN0_MB15_TIMESTAMP, val)
2389 #define bfin_read_CAN0_MB15_ID0()               bfin_read16(CAN0_MB15_ID0)
2390 #define bfin_write_CAN0_MB15_ID0(val)           bfin_write16(CAN0_MB15_ID0, val)
2391 #define bfin_read_CAN0_MB15_ID1()               bfin_read16(CAN0_MB15_ID1)
2392 #define bfin_write_CAN0_MB15_ID1(val)           bfin_write16(CAN0_MB15_ID1, val)
2393
2394 /* CAN Controller 0 Mailbox Data Registers */
2395
2396 #define bfin_read_CAN0_MB16_DATA0()             bfin_read16(CAN0_MB16_DATA0)
2397 #define bfin_write_CAN0_MB16_DATA0(val)         bfin_write16(CAN0_MB16_DATA0, val)
2398 #define bfin_read_CAN0_MB16_DATA1()             bfin_read16(CAN0_MB16_DATA1)
2399 #define bfin_write_CAN0_MB16_DATA1(val)         bfin_write16(CAN0_MB16_DATA1, val)
2400 #define bfin_read_CAN0_MB16_DATA2()             bfin_read16(CAN0_MB16_DATA2)
2401 #define bfin_write_CAN0_MB16_DATA2(val)         bfin_write16(CAN0_MB16_DATA2, val)
2402 #define bfin_read_CAN0_MB16_DATA3()             bfin_read16(CAN0_MB16_DATA3)
2403 #define bfin_write_CAN0_MB16_DATA3(val)         bfin_write16(CAN0_MB16_DATA3, val)
2404 #define bfin_read_CAN0_MB16_LENGTH()            bfin_read16(CAN0_MB16_LENGTH)
2405 #define bfin_write_CAN0_MB16_LENGTH(val)        bfin_write16(CAN0_MB16_LENGTH, val)
2406 #define bfin_read_CAN0_MB16_TIMESTAMP()         bfin_read16(CAN0_MB16_TIMESTAMP)
2407 #define bfin_write_CAN0_MB16_TIMESTAMP(val)     bfin_write16(CAN0_MB16_TIMESTAMP, val)
2408 #define bfin_read_CAN0_MB16_ID0()               bfin_read16(CAN0_MB16_ID0)
2409 #define bfin_write_CAN0_MB16_ID0(val)           bfin_write16(CAN0_MB16_ID0, val)
2410 #define bfin_read_CAN0_MB16_ID1()               bfin_read16(CAN0_MB16_ID1)
2411 #define bfin_write_CAN0_MB16_ID1(val)           bfin_write16(CAN0_MB16_ID1, val)
2412 #define bfin_read_CAN0_MB17_DATA0()             bfin_read16(CAN0_MB17_DATA0)
2413 #define bfin_write_CAN0_MB17_DATA0(val)         bfin_write16(CAN0_MB17_DATA0, val)
2414 #define bfin_read_CAN0_MB17_DATA1()             bfin_read16(CAN0_MB17_DATA1)
2415 #define bfin_write_CAN0_MB17_DATA1(val)         bfin_write16(CAN0_MB17_DATA1, val)
2416 #define bfin_read_CAN0_MB17_DATA2()             bfin_read16(CAN0_MB17_DATA2)
2417 #define bfin_write_CAN0_MB17_DATA2(val)         bfin_write16(CAN0_MB17_DATA2, val)
2418 #define bfin_read_CAN0_MB17_DATA3()             bfin_read16(CAN0_MB17_DATA3)
2419 #define bfin_write_CAN0_MB17_DATA3(val)         bfin_write16(CAN0_MB17_DATA3, val)
2420 #define bfin_read_CAN0_MB17_LENGTH()            bfin_read16(CAN0_MB17_LENGTH)
2421 #define bfin_write_CAN0_MB17_LENGTH(val)        bfin_write16(CAN0_MB17_LENGTH, val)
2422 #define bfin_read_CAN0_MB17_TIMESTAMP()         bfin_read16(CAN0_MB17_TIMESTAMP)
2423 #define bfin_write_CAN0_MB17_TIMESTAMP(val)     bfin_write16(CAN0_MB17_TIMESTAMP, val)
2424 #define bfin_read_CAN0_MB17_ID0()               bfin_read16(CAN0_MB17_ID0)
2425 #define bfin_write_CAN0_MB17_ID0(val)           bfin_write16(CAN0_MB17_ID0, val)
2426 #define bfin_read_CAN0_MB17_ID1()               bfin_read16(CAN0_MB17_ID1)
2427 #define bfin_write_CAN0_MB17_ID1(val)           bfin_write16(CAN0_MB17_ID1, val)
2428 #define bfin_read_CAN0_MB18_DATA0()             bfin_read16(CAN0_MB18_DATA0)
2429 #define bfin_write_CAN0_MB18_DATA0(val)         bfin_write16(CAN0_MB18_DATA0, val)
2430 #define bfin_read_CAN0_MB18_DATA1()             bfin_read16(CAN0_MB18_DATA1)
2431 #define bfin_write_CAN0_MB18_DATA1(val)         bfin_write16(CAN0_MB18_DATA1, val)
2432 #define bfin_read_CAN0_MB18_DATA2()             bfin_read16(CAN0_MB18_DATA2)
2433 #define bfin_write_CAN0_MB18_DATA2(val)         bfin_write16(CAN0_MB18_DATA2, val)
2434 #define bfin_read_CAN0_MB18_DATA3()             bfin_read16(CAN0_MB18_DATA3)
2435 #define bfin_write_CAN0_MB18_DATA3(val)         bfin_write16(CAN0_MB18_DATA3, val)
2436 #define bfin_read_CAN0_MB18_LENGTH()            bfin_read16(CAN0_MB18_LENGTH)
2437 #define bfin_write_CAN0_MB18_LENGTH(val)        bfin_write16(CAN0_MB18_LENGTH, val)
2438 #define bfin_read_CAN0_MB18_TIMESTAMP()         bfin_read16(CAN0_MB18_TIMESTAMP)
2439 #define bfin_write_CAN0_MB18_TIMESTAMP(val)     bfin_write16(CAN0_MB18_TIMESTAMP, val)
2440 #define bfin_read_CAN0_MB18_ID0()               bfin_read16(CAN0_MB18_ID0)
2441 #define bfin_write_CAN0_MB18_ID0(val)           bfin_write16(CAN0_MB18_ID0, val)
2442 #define bfin_read_CAN0_MB18_ID1()               bfin_read16(CAN0_MB18_ID1)
2443 #define bfin_write_CAN0_MB18_ID1(val)           bfin_write16(CAN0_MB18_ID1, val)
2444 #define bfin_read_CAN0_MB19_DATA0()             bfin_read16(CAN0_MB19_DATA0)
2445 #define bfin_write_CAN0_MB19_DATA0(val)         bfin_write16(CAN0_MB19_DATA0, val)
2446 #define bfin_read_CAN0_MB19_DATA1()             bfin_read16(CAN0_MB19_DATA1)
2447 #define bfin_write_CAN0_MB19_DATA1(val)         bfin_write16(CAN0_MB19_DATA1, val)
2448 #define bfin_read_CAN0_MB19_DATA2()             bfin_read16(CAN0_MB19_DATA2)
2449 #define bfin_write_CAN0_MB19_DATA2(val)         bfin_write16(CAN0_MB19_DATA2, val)
2450 #define bfin_read_CAN0_MB19_DATA3()             bfin_read16(CAN0_MB19_DATA3)
2451 #define bfin_write_CAN0_MB19_DATA3(val)         bfin_write16(CAN0_MB19_DATA3, val)
2452 #define bfin_read_CAN0_MB19_LENGTH()            bfin_read16(CAN0_MB19_LENGTH)
2453 #define bfin_write_CAN0_MB19_LENGTH(val)        bfin_write16(CAN0_MB19_LENGTH, val)
2454 #define bfin_read_CAN0_MB19_TIMESTAMP()         bfin_read16(CAN0_MB19_TIMESTAMP)
2455 #define bfin_write_CAN0_MB19_TIMESTAMP(val)     bfin_write16(CAN0_MB19_TIMESTAMP, val)
2456 #define bfin_read_CAN0_MB19_ID0()               bfin_read16(CAN0_MB19_ID0)
2457 #define bfin_write_CAN0_MB19_ID0(val)           bfin_write16(CAN0_MB19_ID0, val)
2458 #define bfin_read_CAN0_MB19_ID1()               bfin_read16(CAN0_MB19_ID1)
2459 #define bfin_write_CAN0_MB19_ID1(val)           bfin_write16(CAN0_MB19_ID1, val)
2460 #define bfin_read_CAN0_MB20_DATA0()             bfin_read16(CAN0_MB20_DATA0)
2461 #define bfin_write_CAN0_MB20_DATA0(val)         bfin_write16(CAN0_MB20_DATA0, val)
2462 #define bfin_read_CAN0_MB20_DATA1()             bfin_read16(CAN0_MB20_DATA1)
2463 #define bfin_write_CAN0_MB20_DATA1(val)         bfin_write16(CAN0_MB20_DATA1, val)
2464 #define bfin_read_CAN0_MB20_DATA2()             bfin_read16(CAN0_MB20_DATA2)
2465 #define bfin_write_CAN0_MB20_DATA2(val)         bfin_write16(CAN0_MB20_DATA2, val)
2466 #define bfin_read_CAN0_MB20_DATA3()             bfin_read16(CAN0_MB20_DATA3)
2467 #define bfin_write_CAN0_MB20_DATA3(val)         bfin_write16(CAN0_MB20_DATA3, val)
2468 #define bfin_read_CAN0_MB20_LENGTH()            bfin_read16(CAN0_MB20_LENGTH)
2469 #define bfin_write_CAN0_MB20_LENGTH(val)        bfin_write16(CAN0_MB20_LENGTH, val)
2470 #define bfin_read_CAN0_MB20_TIMESTAMP()         bfin_read16(CAN0_MB20_TIMESTAMP)
2471 #define bfin_write_CAN0_MB20_TIMESTAMP(val)     bfin_write16(CAN0_MB20_TIMESTAMP, val)
2472 #define bfin_read_CAN0_MB20_ID0()               bfin_read16(CAN0_MB20_ID0)
2473 #define bfin_write_CAN0_MB20_ID0(val)           bfin_write16(CAN0_MB20_ID0, val)
2474 #define bfin_read_CAN0_MB20_ID1()               bfin_read16(CAN0_MB20_ID1)
2475 #define bfin_write_CAN0_MB20_ID1(val)           bfin_write16(CAN0_MB20_ID1, val)
2476 #define bfin_read_CAN0_MB21_DATA0()             bfin_read16(CAN0_MB21_DATA0)
2477 #define bfin_write_CAN0_MB21_DATA0(val)         bfin_write16(CAN0_MB21_DATA0, val)
2478 #define bfin_read_CAN0_MB21_DATA1()             bfin_read16(CAN0_MB21_DATA1)
2479 #define bfin_write_CAN0_MB21_DATA1(val)         bfin_write16(CAN0_MB21_DATA1, val)
2480 #define bfin_read_CAN0_MB21_DATA2()             bfin_read16(CAN0_MB21_DATA2)
2481 #define bfin_write_CAN0_MB21_DATA2(val)         bfin_write16(CAN0_MB21_DATA2, val)
2482 #define bfin_read_CAN0_MB21_DATA3()             bfin_read16(CAN0_MB21_DATA3)
2483 #define bfin_write_CAN0_MB21_DATA3(val)         bfin_write16(CAN0_MB21_DATA3, val)
2484 #define bfin_read_CAN0_MB21_LENGTH()            bfin_read16(CAN0_MB21_LENGTH)
2485 #define bfin_write_CAN0_MB21_LENGTH(val)        bfin_write16(CAN0_MB21_LENGTH, val)
2486 #define bfin_read_CAN0_MB21_TIMESTAMP()         bfin_read16(CAN0_MB21_TIMESTAMP)
2487 #define bfin_write_CAN0_MB21_TIMESTAMP(val)     bfin_write16(CAN0_MB21_TIMESTAMP, val)
2488 #define bfin_read_CAN0_MB21_ID0()               bfin_read16(CAN0_MB21_ID0)
2489 #define bfin_write_CAN0_MB21_ID0(val)           bfin_write16(CAN0_MB21_ID0, val)
2490 #define bfin_read_CAN0_MB21_ID1()               bfin_read16(CAN0_MB21_ID1)
2491 #define bfin_write_CAN0_MB21_ID1(val)           bfin_write16(CAN0_MB21_ID1, val)
2492 #define bfin_read_CAN0_MB22_DATA0()             bfin_read16(CAN0_MB22_DATA0)
2493 #define bfin_write_CAN0_MB22_DATA0(val)         bfin_write16(CAN0_MB22_DATA0, val)
2494 #define bfin_read_CAN0_MB22_DATA1()             bfin_read16(CAN0_MB22_DATA1)
2495 #define bfin_write_CAN0_MB22_DATA1(val)         bfin_write16(CAN0_MB22_DATA1, val)
2496 #define bfin_read_CAN0_MB22_DATA2()             bfin_read16(CAN0_MB22_DATA2)
2497 #define bfin_write_CAN0_MB22_DATA2(val)         bfin_write16(CAN0_MB22_DATA2, val)
2498 #define bfin_read_CAN0_MB22_DATA3()             bfin_read16(CAN0_MB22_DATA3)
2499 #define bfin_write_CAN0_MB22_DATA3(val)         bfin_write16(CAN0_MB22_DATA3, val)
2500 #define bfin_read_CAN0_MB22_LENGTH()            bfin_read16(CAN0_MB22_LENGTH)
2501 #define bfin_write_CAN0_MB22_LENGTH(val)        bfin_write16(CAN0_MB22_LENGTH, val)
2502 #define bfin_read_CAN0_MB22_TIMESTAMP()         bfin_read16(CAN0_MB22_TIMESTAMP)
2503 #define bfin_write_CAN0_MB22_TIMESTAMP(val)     bfin_write16(CAN0_MB22_TIMESTAMP, val)
2504 #define bfin_read_CAN0_MB22_ID0()               bfin_read16(CAN0_MB22_ID0)
2505 #define bfin_write_CAN0_MB22_ID0(val)           bfin_write16(CAN0_MB22_ID0, val)
2506 #define bfin_read_CAN0_MB22_ID1()               bfin_read16(CAN0_MB22_ID1)
2507 #define bfin_write_CAN0_MB22_ID1(val)           bfin_write16(CAN0_MB22_ID1, val)
2508 #define bfin_read_CAN0_MB23_DATA0()             bfin_read16(CAN0_MB23_DATA0)
2509 #define bfin_write_CAN0_MB23_DATA0(val)         bfin_write16(CAN0_MB23_DATA0, val)
2510 #define bfin_read_CAN0_MB23_DATA1()             bfin_read16(CAN0_MB23_DATA1)
2511 #define bfin_write_CAN0_MB23_DATA1(val)         bfin_write16(CAN0_MB23_DATA1, val)
2512 #define bfin_read_CAN0_MB23_DATA2()             bfin_read16(CAN0_MB23_DATA2)
2513 #define bfin_write_CAN0_MB23_DATA2(val)         bfin_write16(CAN0_MB23_DATA2, val)
2514 #define bfin_read_CAN0_MB23_DATA3()             bfin_read16(CAN0_MB23_DATA3)
2515 #define bfin_write_CAN0_MB23_DATA3(val)         bfin_write16(CAN0_MB23_DATA3, val)
2516 #define bfin_read_CAN0_MB23_LENGTH()            bfin_read16(CAN0_MB23_LENGTH)
2517 #define bfin_write_CAN0_MB23_LENGTH(val)        bfin_write16(CAN0_MB23_LENGTH, val)
2518 #define bfin_read_CAN0_MB23_TIMESTAMP()         bfin_read16(CAN0_MB23_TIMESTAMP)
2519 #define bfin_write_CAN0_MB23_TIMESTAMP(val)     bfin_write16(CAN0_MB23_TIMESTAMP, val)
2520 #define bfin_read_CAN0_MB23_ID0()               bfin_read16(CAN0_MB23_ID0)
2521 #define bfin_write_CAN0_MB23_ID0(val)           bfin_write16(CAN0_MB23_ID0, val)
2522 #define bfin_read_CAN0_MB23_ID1()               bfin_read16(CAN0_MB23_ID1)
2523 #define bfin_write_CAN0_MB23_ID1(val)           bfin_write16(CAN0_MB23_ID1, val)
2524 #define bfin_read_CAN0_MB24_DATA0()             bfin_read16(CAN0_MB24_DATA0)
2525 #define bfin_write_CAN0_MB24_DATA0(val)         bfin_write16(CAN0_MB24_DATA0, val)
2526 #define bfin_read_CAN0_MB24_DATA1()             bfin_read16(CAN0_MB24_DATA1)
2527 #define bfin_write_CAN0_MB24_DATA1(val)         bfin_write16(CAN0_MB24_DATA1, val)
2528 #define bfin_read_CAN0_MB24_DATA2()             bfin_read16(CAN0_MB24_DATA2)
2529 #define bfin_write_CAN0_MB24_DATA2(val)         bfin_write16(CAN0_MB24_DATA2, val)
2530 #define bfin_read_CAN0_MB24_DATA3()             bfin_read16(CAN0_MB24_DATA3)
2531 #define bfin_write_CAN0_MB24_DATA3(val)         bfin_write16(CAN0_MB24_DATA3, val)
2532 #define bfin_read_CAN0_MB24_LENGTH()            bfin_read16(CAN0_MB24_LENGTH)
2533 #define bfin_write_CAN0_MB24_LENGTH(val)        bfin_write16(CAN0_MB24_LENGTH, val)
2534 #define bfin_read_CAN0_MB24_TIMESTAMP()         bfin_read16(CAN0_MB24_TIMESTAMP)
2535 #define bfin_write_CAN0_MB24_TIMESTAMP(val)     bfin_write16(CAN0_MB24_TIMESTAMP, val)
2536 #define bfin_read_CAN0_MB24_ID0()               bfin_read16(CAN0_MB24_ID0)
2537 #define bfin_write_CAN0_MB24_ID0(val)           bfin_write16(CAN0_MB24_ID0, val)
2538 #define bfin_read_CAN0_MB24_ID1()               bfin_read16(CAN0_MB24_ID1)
2539 #define bfin_write_CAN0_MB24_ID1(val)           bfin_write16(CAN0_MB24_ID1, val)
2540 #define bfin_read_CAN0_MB25_DATA0()             bfin_read16(CAN0_MB25_DATA0)
2541 #define bfin_write_CAN0_MB25_DATA0(val)         bfin_write16(CAN0_MB25_DATA0, val)
2542 #define bfin_read_CAN0_MB25_DATA1()             bfin_read16(CAN0_MB25_DATA1)
2543 #define bfin_write_CAN0_MB25_DATA1(val)         bfin_write16(CAN0_MB25_DATA1, val)
2544 #define bfin_read_CAN0_MB25_DATA2()             bfin_read16(CAN0_MB25_DATA2)
2545 #define bfin_write_CAN0_MB25_DATA2(val)         bfin_write16(CAN0_MB25_DATA2, val)
2546 #define bfin_read_CAN0_MB25_DATA3()             bfin_read16(CAN0_MB25_DATA3)
2547 #define bfin_write_CAN0_MB25_DATA3(val)         bfin_write16(CAN0_MB25_DATA3, val)
2548 #define bfin_read_CAN0_MB25_LENGTH()            bfin_read16(CAN0_MB25_LENGTH)
2549 #define bfin_write_CAN0_MB25_LENGTH(val)        bfin_write16(CAN0_MB25_LENGTH, val)
2550 #define bfin_read_CAN0_MB25_TIMESTAMP()         bfin_read16(CAN0_MB25_TIMESTAMP)
2551 #define bfin_write_CAN0_MB25_TIMESTAMP(val)     bfin_write16(CAN0_MB25_TIMESTAMP, val)
2552 #define bfin_read_CAN0_MB25_ID0()               bfin_read16(CAN0_MB25_ID0)
2553 #define bfin_write_CAN0_MB25_ID0(val)           bfin_write16(CAN0_MB25_ID0, val)
2554 #define bfin_read_CAN0_MB25_ID1()               bfin_read16(CAN0_MB25_ID1)
2555 #define bfin_write_CAN0_MB25_ID1(val)           bfin_write16(CAN0_MB25_ID1, val)
2556 #define bfin_read_CAN0_MB26_DATA0()             bfin_read16(CAN0_MB26_DATA0)
2557 #define bfin_write_CAN0_MB26_DATA0(val)         bfin_write16(CAN0_MB26_DATA0, val)
2558 #define bfin_read_CAN0_MB26_DATA1()             bfin_read16(CAN0_MB26_DATA1)
2559 #define bfin_write_CAN0_MB26_DATA1(val)         bfin_write16(CAN0_MB26_DATA1, val)
2560 #define bfin_read_CAN0_MB26_DATA2()             bfin_read16(CAN0_MB26_DATA2)
2561 #define bfin_write_CAN0_MB26_DATA2(val)         bfin_write16(CAN0_MB26_DATA2, val)
2562 #define bfin_read_CAN0_MB26_DATA3()             bfin_read16(CAN0_MB26_DATA3)
2563 #define bfin_write_CAN0_MB26_DATA3(val)         bfin_write16(CAN0_MB26_DATA3, val)
2564 #define bfin_read_CAN0_MB26_LENGTH()            bfin_read16(CAN0_MB26_LENGTH)
2565 #define bfin_write_CAN0_MB26_LENGTH(val)        bfin_write16(CAN0_MB26_LENGTH, val)
2566 #define bfin_read_CAN0_MB26_TIMESTAMP()         bfin_read16(CAN0_MB26_TIMESTAMP)
2567 #define bfin_write_CAN0_MB26_TIMESTAMP(val)     bfin_write16(CAN0_MB26_TIMESTAMP, val)
2568 #define bfin_read_CAN0_MB26_ID0()               bfin_read16(CAN0_MB26_ID0)
2569 #define bfin_write_CAN0_MB26_ID0(val)           bfin_write16(CAN0_MB26_ID0, val)
2570 #define bfin_read_CAN0_MB26_ID1()               bfin_read16(CAN0_MB26_ID1)
2571 #define bfin_write_CAN0_MB26_ID1(val)           bfin_write16(CAN0_MB26_ID1, val)
2572 #define bfin_read_CAN0_MB27_DATA0()             bfin_read16(CAN0_MB27_DATA0)
2573 #define bfin_write_CAN0_MB27_DATA0(val)         bfin_write16(CAN0_MB27_DATA0, val)
2574 #define bfin_read_CAN0_MB27_DATA1()             bfin_read16(CAN0_MB27_DATA1)
2575 #define bfin_write_CAN0_MB27_DATA1(val)         bfin_write16(CAN0_MB27_DATA1, val)
2576 #define bfin_read_CAN0_MB27_DATA2()             bfin_read16(CAN0_MB27_DATA2)
2577 #define bfin_write_CAN0_MB27_DATA2(val)         bfin_write16(CAN0_MB27_DATA2, val)
2578 #define bfin_read_CAN0_MB27_DATA3()             bfin_read16(CAN0_MB27_DATA3)
2579 #define bfin_write_CAN0_MB27_DATA3(val)         bfin_write16(CAN0_MB27_DATA3, val)
2580 #define bfin_read_CAN0_MB27_LENGTH()            bfin_read16(CAN0_MB27_LENGTH)
2581 #define bfin_write_CAN0_MB27_LENGTH(val)        bfin_write16(CAN0_MB27_LENGTH, val)
2582 #define bfin_read_CAN0_MB27_TIMESTAMP()         bfin_read16(CAN0_MB27_TIMESTAMP)
2583 #define bfin_write_CAN0_MB27_TIMESTAMP(val)     bfin_write16(CAN0_MB27_TIMESTAMP, val)
2584 #define bfin_read_CAN0_MB27_ID0()               bfin_read16(CAN0_MB27_ID0)
2585 #define bfin_write_CAN0_MB27_ID0(val)           bfin_write16(CAN0_MB27_ID0, val)
2586 #define bfin_read_CAN0_MB27_ID1()               bfin_read16(CAN0_MB27_ID1)
2587 #define bfin_write_CAN0_MB27_ID1(val)           bfin_write16(CAN0_MB27_ID1, val)
2588 #define bfin_read_CAN0_MB28_DATA0()             bfin_read16(CAN0_MB28_DATA0)
2589 #define bfin_write_CAN0_MB28_DATA0(val)         bfin_write16(CAN0_MB28_DATA0, val)
2590 #define bfin_read_CAN0_MB28_DATA1()             bfin_read16(CAN0_MB28_DATA1)
2591 #define bfin_write_CAN0_MB28_DATA1(val)         bfin_write16(CAN0_MB28_DATA1, val)
2592 #define bfin_read_CAN0_MB28_DATA2()             bfin_read16(CAN0_MB28_DATA2)
2593 #define bfin_write_CAN0_MB28_DATA2(val)         bfin_write16(CAN0_MB28_DATA2, val)
2594 #define bfin_read_CAN0_MB28_DATA3()             bfin_read16(CAN0_MB28_DATA3)
2595 #define bfin_write_CAN0_MB28_DATA3(val)         bfin_write16(CAN0_MB28_DATA3, val)
2596 #define bfin_read_CAN0_MB28_LENGTH()            bfin_read16(CAN0_MB28_LENGTH)
2597 #define bfin_write_CAN0_MB28_LENGTH(val)        bfin_write16(CAN0_MB28_LENGTH, val)
2598 #define bfin_read_CAN0_MB28_TIMESTAMP()         bfin_read16(CAN0_MB28_TIMESTAMP)
2599 #define bfin_write_CAN0_MB28_TIMESTAMP(val)     bfin_write16(CAN0_MB28_TIMESTAMP, val)
2600 #define bfin_read_CAN0_MB28_ID0()               bfin_read16(CAN0_MB28_ID0)
2601 #define bfin_write_CAN0_MB28_ID0(val)           bfin_write16(CAN0_MB28_ID0, val)
2602 #define bfin_read_CAN0_MB28_ID1()               bfin_read16(CAN0_MB28_ID1)
2603 #define bfin_write_CAN0_MB28_ID1(val)           bfin_write16(CAN0_MB28_ID1, val)
2604 #define bfin_read_CAN0_MB29_DATA0()             bfin_read16(CAN0_MB29_DATA0)
2605 #define bfin_write_CAN0_MB29_DATA0(val)         bfin_write16(CAN0_MB29_DATA0, val)
2606 #define bfin_read_CAN0_MB29_DATA1()             bfin_read16(CAN0_MB29_DATA1)
2607 #define bfin_write_CAN0_MB29_DATA1(val)         bfin_write16(CAN0_MB29_DATA1, val)
2608 #define bfin_read_CAN0_MB29_DATA2()             bfin_read16(CAN0_MB29_DATA2)
2609 #define bfin_write_CAN0_MB29_DATA2(val)         bfin_write16(CAN0_MB29_DATA2, val)
2610 #define bfin_read_CAN0_MB29_DATA3()             bfin_read16(CAN0_MB29_DATA3)
2611 #define bfin_write_CAN0_MB29_DATA3(val)         bfin_write16(CAN0_MB29_DATA3, val)
2612 #define bfin_read_CAN0_MB29_LENGTH()            bfin_read16(CAN0_MB29_LENGTH)
2613 #define bfin_write_CAN0_MB29_LENGTH(val)        bfin_write16(CAN0_MB29_LENGTH, val)
2614 #define bfin_read_CAN0_MB29_TIMESTAMP()         bfin_read16(CAN0_MB29_TIMESTAMP)
2615 #define bfin_write_CAN0_MB29_TIMESTAMP(val)     bfin_write16(CAN0_MB29_TIMESTAMP, val)
2616 #define bfin_read_CAN0_MB29_ID0()               bfin_read16(CAN0_MB29_ID0)
2617 #define bfin_write_CAN0_MB29_ID0(val)           bfin_write16(CAN0_MB29_ID0, val)
2618 #define bfin_read_CAN0_MB29_ID1()               bfin_read16(CAN0_MB29_ID1)
2619 #define bfin_write_CAN0_MB29_ID1(val)           bfin_write16(CAN0_MB29_ID1, val)
2620 #define bfin_read_CAN0_MB30_DATA0()             bfin_read16(CAN0_MB30_DATA0)
2621 #define bfin_write_CAN0_MB30_DATA0(val)         bfin_write16(CAN0_MB30_DATA0, val)
2622 #define bfin_read_CAN0_MB30_DATA1()             bfin_read16(CAN0_MB30_DATA1)
2623 #define bfin_write_CAN0_MB30_DATA1(val)         bfin_write16(CAN0_MB30_DATA1, val)
2624 #define bfin_read_CAN0_MB30_DATA2()             bfin_read16(CAN0_MB30_DATA2)
2625 #define bfin_write_CAN0_MB30_DATA2(val)         bfin_write16(CAN0_MB30_DATA2, val)
2626 #define bfin_read_CAN0_MB30_DATA3()             bfin_read16(CAN0_MB30_DATA3)
2627 #define bfin_write_CAN0_MB30_DATA3(val)         bfin_write16(CAN0_MB30_DATA3, val)
2628 #define bfin_read_CAN0_MB30_LENGTH()            bfin_read16(CAN0_MB30_LENGTH)
2629 #define bfin_write_CAN0_MB30_LENGTH(val)        bfin_write16(CAN0_MB30_LENGTH, val)
2630 #define bfin_read_CAN0_MB30_TIMESTAMP()         bfin_read16(CAN0_MB30_TIMESTAMP)
2631 #define bfin_write_CAN0_MB30_TIMESTAMP(val)     bfin_write16(CAN0_MB30_TIMESTAMP, val)
2632 #define bfin_read_CAN0_MB30_ID0()               bfin_read16(CAN0_MB30_ID0)
2633 #define bfin_write_CAN0_MB30_ID0(val)           bfin_write16(CAN0_MB30_ID0, val)
2634 #define bfin_read_CAN0_MB30_ID1()               bfin_read16(CAN0_MB30_ID1)
2635 #define bfin_write_CAN0_MB30_ID1(val)           bfin_write16(CAN0_MB30_ID1, val)
2636 #define bfin_read_CAN0_MB31_DATA0()             bfin_read16(CAN0_MB31_DATA0)
2637 #define bfin_write_CAN0_MB31_DATA0(val)         bfin_write16(CAN0_MB31_DATA0, val)
2638 #define bfin_read_CAN0_MB31_DATA1()             bfin_read16(CAN0_MB31_DATA1)
2639 #define bfin_write_CAN0_MB31_DATA1(val)         bfin_write16(CAN0_MB31_DATA1, val)
2640 #define bfin_read_CAN0_MB31_DATA2()             bfin_read16(CAN0_MB31_DATA2)
2641 #define bfin_write_CAN0_MB31_DATA2(val)         bfin_write16(CAN0_MB31_DATA2, val)
2642 #define bfin_read_CAN0_MB31_DATA3()             bfin_read16(CAN0_MB31_DATA3)
2643 #define bfin_write_CAN0_MB31_DATA3(val)         bfin_write16(CAN0_MB31_DATA3, val)
2644 #define bfin_read_CAN0_MB31_LENGTH()            bfin_read16(CAN0_MB31_LENGTH)
2645 #define bfin_write_CAN0_MB31_LENGTH(val)        bfin_write16(CAN0_MB31_LENGTH, val)
2646 #define bfin_read_CAN0_MB31_TIMESTAMP()         bfin_read16(CAN0_MB31_TIMESTAMP)
2647 #define bfin_write_CAN0_MB31_TIMESTAMP(val)     bfin_write16(CAN0_MB31_TIMESTAMP, val)
2648 #define bfin_read_CAN0_MB31_ID0()               bfin_read16(CAN0_MB31_ID0)
2649 #define bfin_write_CAN0_MB31_ID0(val)           bfin_write16(CAN0_MB31_ID0, val)
2650 #define bfin_read_CAN0_MB31_ID1()               bfin_read16(CAN0_MB31_ID1)
2651 #define bfin_write_CAN0_MB31_ID1(val)           bfin_write16(CAN0_MB31_ID1, val)
2652
2653 /* UART3 Registers */
2654
2655 #define bfin_read_UART3_DLL()           bfin_read16(UART3_DLL)
2656 #define bfin_write_UART3_DLL(val)       bfin_write16(UART3_DLL, val)
2657 #define bfin_read_UART3_DLH()           bfin_read16(UART3_DLH)
2658 #define bfin_write_UART3_DLH(val)       bfin_write16(UART3_DLH, val)
2659 #define bfin_read_UART3_GCTL()          bfin_read16(UART3_GCTL)
2660 #define bfin_write_UART3_GCTL(val)      bfin_write16(UART3_GCTL, val)
2661 #define bfin_read_UART3_LCR()           bfin_read16(UART3_LCR)
2662 #define bfin_write_UART3_LCR(val)       bfin_write16(UART3_LCR, val)
2663 #define bfin_read_UART3_MCR()           bfin_read16(UART3_MCR)
2664 #define bfin_write_UART3_MCR(val)       bfin_write16(UART3_MCR, val)
2665 #define bfin_read_UART3_LSR()           bfin_read16(UART3_LSR)
2666 #define bfin_write_UART3_LSR(val)       bfin_write16(UART3_LSR, val)
2667 #define bfin_read_UART3_MSR()           bfin_read16(UART3_MSR)
2668 #define bfin_write_UART3_MSR(val)       bfin_write16(UART3_MSR, val)
2669 #define bfin_read_UART3_SCR()           bfin_read16(UART3_SCR)
2670 #define bfin_write_UART3_SCR(val)       bfin_write16(UART3_SCR, val)
2671 #define bfin_read_UART3_IER_SET()       bfin_read16(UART3_IER_SET)
2672 #define bfin_write_UART3_IER_SET(val)   bfin_write16(UART3_IER_SET, val)
2673 #define bfin_read_UART3_IER_CLEAR()     bfin_read16(UART3_IER_CLEAR)
2674 #define bfin_write_UART3_IER_CLEAR(val) bfin_write16(UART3_IER_CLEAR, val)
2675 #define bfin_read_UART3_THR()           bfin_read16(UART3_THR)
2676 #define bfin_write_UART3_THR(val)       bfin_write16(UART3_THR, val)
2677 #define bfin_read_UART3_RBR()           bfin_read16(UART3_RBR)
2678 #define bfin_write_UART3_RBR(val)       bfin_write16(UART3_RBR, val)
2679
2680 /* NFC Registers */
2681
2682 #define bfin_read_NFC_CTL()             bfin_read16(NFC_CTL)
2683 #define bfin_write_NFC_CTL(val)         bfin_write16(NFC_CTL, val)
2684 #define bfin_read_NFC_STAT()            bfin_read16(NFC_STAT)
2685 #define bfin_write_NFC_STAT(val)        bfin_write16(NFC_STAT, val)
2686 #define bfin_read_NFC_IRQSTAT()         bfin_read16(NFC_IRQSTAT)
2687 #define bfin_write_NFC_IRQSTAT(val)     bfin_write16(NFC_IRQSTAT, val)
2688 #define bfin_read_NFC_IRQMASK()         bfin_read16(NFC_IRQMASK)
2689 #define bfin_write_NFC_IRQMASK(val)     bfin_write16(NFC_IRQMASK, val)
2690 #define bfin_read_NFC_ECC0()            bfin_read16(NFC_ECC0)
2691 #define bfin_write_NFC_ECC0(val)        bfin_write16(NFC_ECC0, val)
2692 #define bfin_read_NFC_ECC1()            bfin_read16(NFC_ECC1)
2693 #define bfin_write_NFC_ECC1(val)        bfin_write16(NFC_ECC1, val)
2694 #define bfin_read_NFC_ECC2()            bfin_read16(NFC_ECC2)
2695 #define bfin_write_NFC_ECC2(val)        bfin_write16(NFC_ECC2, val)
2696 #define bfin_read_NFC_ECC3()            bfin_read16(NFC_ECC3)
2697 #define bfin_write_NFC_ECC3(val)        bfin_write16(NFC_ECC3, val)
2698 #define bfin_read_NFC_COUNT()           bfin_read16(NFC_COUNT)
2699 #define bfin_write_NFC_COUNT(val)       bfin_write16(NFC_COUNT, val)
2700 #define bfin_read_NFC_RST()             bfin_read16(NFC_RST)
2701 #define bfin_write_NFC_RST(val)         bfin_write16(NFC_RST, val)
2702 #define bfin_read_NFC_PGCTL()           bfin_read16(NFC_PGCTL)
2703 #define bfin_write_NFC_PGCTL(val)       bfin_write16(NFC_PGCTL, val)
2704 #define bfin_read_NFC_READ()            bfin_read16(NFC_READ)
2705 #define bfin_write_NFC_READ(val)        bfin_write16(NFC_READ, val)
2706 #define bfin_read_NFC_ADDR()            bfin_read16(NFC_ADDR)
2707 #define bfin_write_NFC_ADDR(val)        bfin_write16(NFC_ADDR, val)
2708 #define bfin_read_NFC_CMD()             bfin_read16(NFC_CMD)
2709 #define bfin_write_NFC_CMD(val)         bfin_write16(NFC_CMD, val)
2710 #define bfin_read_NFC_DATA_WR()         bfin_read16(NFC_DATA_WR)
2711 #define bfin_write_NFC_DATA_WR(val)     bfin_write16(NFC_DATA_WR, val)
2712 #define bfin_read_NFC_DATA_RD()         bfin_read16(NFC_DATA_RD)
2713 #define bfin_write_NFC_DATA_RD(val)     bfin_write16(NFC_DATA_RD, val)
2714
2715 /* Counter Registers */
2716
2717 #define bfin_read_CNT_CONFIG()          bfin_read16(CNT_CONFIG)
2718 #define bfin_write_CNT_CONFIG(val)      bfin_write16(CNT_CONFIG, val)
2719 #define bfin_read_CNT_IMASK()           bfin_read16(CNT_IMASK)
2720 #define bfin_write_CNT_IMASK(val)       bfin_write16(CNT_IMASK, val)
2721 #define bfin_read_CNT_STATUS()          bfin_read16(CNT_STATUS)
2722 #define bfin_write_CNT_STATUS(val)      bfin_write16(CNT_STATUS, val)
2723 #define bfin_read_CNT_COMMAND()         bfin_read16(CNT_COMMAND)
2724 #define bfin_write_CNT_COMMAND(val)     bfin_write16(CNT_COMMAND, val)
2725 #define bfin_read_CNT_DEBOUNCE()        bfin_read16(CNT_DEBOUNCE)
2726 #define bfin_write_CNT_DEBOUNCE(val)    bfin_write16(CNT_DEBOUNCE, val)
2727 #define bfin_read_CNT_COUNTER()         bfin_read32(CNT_COUNTER)
2728 #define bfin_write_CNT_COUNTER(val)     bfin_write32(CNT_COUNTER, val)
2729 #define bfin_read_CNT_MAX()             bfin_read32(CNT_MAX)
2730 #define bfin_write_CNT_MAX(val)         bfin_write32(CNT_MAX, val)
2731 #define bfin_read_CNT_MIN()             bfin_read32(CNT_MIN)
2732 #define bfin_write_CNT_MIN(val)         bfin_write32(CNT_MIN, val)
2733
2734 /* OTP/FUSE Registers */
2735
2736 #define bfin_read_OTP_CONTROL()         bfin_read16(OTP_CONTROL)
2737 #define bfin_write_OTP_CONTROL(val)     bfin_write16(OTP_CONTROL, val)
2738 #define bfin_read_OTP_BEN()             bfin_read16(OTP_BEN)
2739 #define bfin_write_OTP_BEN(val)         bfin_write16(OTP_BEN, val)
2740 #define bfin_read_OTP_STATUS()          bfin_read16(OTP_STATUS)
2741 #define bfin_write_OTP_STATUS(val)      bfin_write16(OTP_STATUS, val)
2742 #define bfin_read_OTP_TIMING()          bfin_read32(OTP_TIMING)
2743 #define bfin_write_OTP_TIMING(val)      bfin_write32(OTP_TIMING, val)
2744
2745 /* Security Registers */
2746
2747 #define bfin_read_SECURE_SYSSWT()       bfin_read32(SECURE_SYSSWT)
2748 #define bfin_write_SECURE_SYSSWT(val)   bfin_write32(SECURE_SYSSWT, val)
2749 #define bfin_read_SECURE_CONTROL()      bfin_read16(SECURE_CONTROL)
2750 #define bfin_write_SECURE_CONTROL(val)  bfin_write16(SECURE_CONTROL, val)
2751 #define bfin_read_SECURE_STATUS()       bfin_read16(SECURE_STATUS)
2752 #define bfin_write_SECURE_STATUS(val)   bfin_write16(SECURE_STATUS, val)
2753
2754 /* DMA Peribfin_read_()heral Mux Register */
2755
2756 #define bfin_read_DMAC1_PERIMUX()       bfin_read16(DMAC1_PERIMUX)
2757 #define bfin_write_DMAC1_PERIMUX(val)   bfin_write16(DMAC1_PERIMUX, val)
2758
2759 /* OTP Read/Write Data Buffer Registers */
2760
2761 #define bfin_read_OTP_DATA0()           bfin_read32(OTP_DATA0)
2762 #define bfin_write_OTP_DATA0(val)       bfin_write32(OTP_DATA0, val)
2763 #define bfin_read_OTP_DATA1()           bfin_read32(OTP_DATA1)
2764 #define bfin_write_OTP_DATA1(val)       bfin_write32(OTP_DATA1, val)
2765 #define bfin_read_OTP_DATA2()           bfin_read32(OTP_DATA2)
2766 #define bfin_write_OTP_DATA2(val)       bfin_write32(OTP_DATA2, val)
2767 #define bfin_read_OTP_DATA3()           bfin_read32(OTP_DATA3)
2768 #define bfin_write_OTP_DATA3(val)       bfin_write32(OTP_DATA3, val)
2769
2770 /* Handshake MDMA is not defined in the shared file because it is not available on the ADSP-BF542 bfin_read_()rocessor */
2771
2772 /* legacy definitions */
2773 #define bfin_read_EBIU_AMCBCTL0         bfin_read_EBIU_AMBCTL0
2774 #define bfin_write_EBIU_AMCBCTL0        bfin_write_EBIU_AMBCTL0
2775 #define bfin_read_EBIU_AMCBCTL1         bfin_read_EBIU_AMBCTL1
2776 #define bfin_write_EBIU_AMCBCTL1        bfin_write_EBIU_AMBCTL1
2777 #define bfin_read_PINT0_IRQ             bfin_read_PINT0_REQUEST
2778 #define bfin_write_PINT0_IRQ            bfin_write_PINT0_REQUEST
2779 #define bfin_read_PINT1_IRQ             bfin_read_PINT1_REQUEST
2780 #define bfin_write_PINT1_IRQ            bfin_write_PINT1_REQUEST
2781 #define bfin_read_PINT2_IRQ             bfin_read_PINT2_REQUEST
2782 #define bfin_write_PINT2_IRQ            bfin_write_PINT2_REQUEST
2783 #define bfin_read_PINT3_IRQ             bfin_read_PINT3_REQUEST
2784 #define bfin_write_PINT3_IRQ            bfin_write_PINT3_REQUEST
2785
2786 #endif /* _CDEF_BF54X_H */
2787