blob: f6a56792180bf20c22c5c1462a866b9508269b58 [file] [log] [blame]
Michael Hennerichdc26aec2008-11-18 17:48:22 +08001/*
Mike Frysinger1a5c2262010-10-26 23:46:22 -04002 * Copyright 2008-2010 Analog Devices Inc.
Michael Hennerichdc26aec2008-11-18 17:48:22 +08003 *
Robin Getz96f10502009-09-24 14:11:24 +00004 * Licensed under the GPL-2 or later.
Michael Hennerichdc26aec2008-11-18 17:48:22 +08005 */
6
7#ifndef _CDEF_BF538_H
8#define _CDEF_BF538_H
9
Michael Hennerichdc26aec2008-11-18 17:48:22 +080010#define bfin_writePTR(addr, val) bfin_write32(addr, val)
11
12#define bfin_read_PLL_CTL() bfin_read16(PLL_CTL)
Michael Hennerichdc26aec2008-11-18 17:48:22 +080013#define bfin_read_PLL_DIV() bfin_read16(PLL_DIV)
14#define bfin_write_PLL_DIV(val) bfin_write16(PLL_DIV, val)
15#define bfin_read_VR_CTL() bfin_read16(VR_CTL)
Michael Hennerichdc26aec2008-11-18 17:48:22 +080016#define bfin_read_PLL_STAT() bfin_read16(PLL_STAT)
17#define bfin_write_PLL_STAT(val) bfin_write16(PLL_STAT, val)
18#define bfin_read_PLL_LOCKCNT() bfin_read16(PLL_LOCKCNT)
19#define bfin_write_PLL_LOCKCNT(val) bfin_write16(PLL_LOCKCNT, val)
20#define bfin_read_CHIPID() bfin_read32(CHIPID)
21#define bfin_write_CHIPID(val) bfin_write32(CHIPID, val)
22#define bfin_read_SWRST() bfin_read16(SWRST)
23#define bfin_write_SWRST(val) bfin_write16(SWRST, val)
24#define bfin_read_SYSCR() bfin_read16(SYSCR)
25#define bfin_write_SYSCR(val) bfin_write16(SYSCR, val)
26#define bfin_read_SIC_RVECT() bfin_readPTR(SIC_RVECT)
27#define bfin_write_SIC_RVECT(val) bfin_writePTR(SIC_RVECT, val)
28#define bfin_read_SIC_IMASK0() bfin_read32(SIC_IMASK0)
29#define bfin_write_SIC_IMASK0(val) bfin_write32(SIC_IMASK0, val)
30#define bfin_read_SIC_IMASK1() bfin_read32(SIC_IMASK1)
31#define bfin_write_SIC_IMASK1(val) bfin_write32(SIC_IMASK1, val)
32#define bfin_read_SIC_IMASK(x) bfin_read32(SIC_IMASK0 + x * (SIC_IMASK1 - SIC_IMASK0))
33#define bfin_write_SIC_IMASK(x, val) bfin_write32(SIC_IMASK0 + x * (SIC_IMASK1 - SIC_IMASK0), val)
34#define bfin_read_SIC_ISR0() bfin_read32(SIC_ISR0)
35#define bfin_write_SIC_ISR0(val) bfin_write32(SIC_ISR0, val)
36#define bfin_read_SIC_ISR1() bfin_read32(SIC_ISR1)
37#define bfin_write_SIC_ISR1(val) bfin_write32(SIC_ISR1, val)
Mariusz Kozlowskif4290e82009-04-12 20:03:30 +000038#define bfin_read_SIC_ISR(x) bfin_read32(SIC_ISR0 + x * (SIC_ISR1 - SIC_ISR0))
Michael Hennerichdc26aec2008-11-18 17:48:22 +080039#define bfin_write_SIC_ISR(x, val) bfin_write32(SIC_ISR0 + x * (SIC_ISR1 - SIC_ISR0), val)
40#define bfin_read_SIC_IWR0() bfin_read32(SIC_IWR0)
41#define bfin_write_SIC_IWR0(val) bfin_write32(SIC_IWR0, val)
42#define bfin_read_SIC_IWR1() bfin_read32(SIC_IWR1)
43#define bfin_write_SIC_IWR1(val) bfin_write32(SIC_IWR1, val)
Mariusz Kozlowskif4290e82009-04-12 20:03:30 +000044#define bfin_read_SIC_IWR(x) bfin_read32(SIC_IWR0 + x * (SIC_IWR1 - SIC_IWR0))
45#define bfin_write_SIC_IWR(x, val) bfin_write32(SIC_IWR0 + x * (SIC_IWR1 - SIC_IWR0), val)
Michael Hennerichdc26aec2008-11-18 17:48:22 +080046#define bfin_read_SIC_IAR0() bfin_read32(SIC_IAR0)
47#define bfin_write_SIC_IAR0(val) bfin_write32(SIC_IAR0, val)
48#define bfin_read_SIC_IAR1() bfin_read32(SIC_IAR1)
49#define bfin_write_SIC_IAR1(val) bfin_write32(SIC_IAR1, val)
50#define bfin_read_SIC_IAR2() bfin_read32(SIC_IAR2)
51#define bfin_write_SIC_IAR2(val) bfin_write32(SIC_IAR2, val)
52#define bfin_read_SIC_IAR3() bfin_read32(SIC_IAR3)
53#define bfin_write_SIC_IAR3(val) bfin_write32(SIC_IAR3, val)
54#define bfin_read_SIC_IAR4() bfin_read32(SIC_IAR4)
55#define bfin_write_SIC_IAR4(val) bfin_write32(SIC_IAR4, val)
56#define bfin_read_SIC_IAR5() bfin_read32(SIC_IAR5)
57#define bfin_write_SIC_IAR5(val) bfin_write32(SIC_IAR5, val)
58#define bfin_read_SIC_IAR6() bfin_read32(SIC_IAR6)
59#define bfin_write_SIC_IAR6(val) bfin_write32(SIC_IAR6, val)
60#define bfin_read_WDOG_CTL() bfin_read16(WDOG_CTL)
61#define bfin_write_WDOG_CTL(val) bfin_write16(WDOG_CTL, val)
62#define bfin_read_WDOG_CNT() bfin_read32(WDOG_CNT)
63#define bfin_write_WDOG_CNT(val) bfin_write32(WDOG_CNT, val)
64#define bfin_read_WDOG_STAT() bfin_read32(WDOG_STAT)
65#define bfin_write_WDOG_STAT(val) bfin_write32(WDOG_STAT, val)
66#define bfin_read_RTC_STAT() bfin_read32(RTC_STAT)
67#define bfin_write_RTC_STAT(val) bfin_write32(RTC_STAT, val)
68#define bfin_read_RTC_ICTL() bfin_read16(RTC_ICTL)
69#define bfin_write_RTC_ICTL(val) bfin_write16(RTC_ICTL, val)
70#define bfin_read_RTC_ISTAT() bfin_read16(RTC_ISTAT)
71#define bfin_write_RTC_ISTAT(val) bfin_write16(RTC_ISTAT, val)
72#define bfin_read_RTC_SWCNT() bfin_read16(RTC_SWCNT)
73#define bfin_write_RTC_SWCNT(val) bfin_write16(RTC_SWCNT, val)
74#define bfin_read_RTC_ALARM() bfin_read32(RTC_ALARM)
75#define bfin_write_RTC_ALARM(val) bfin_write32(RTC_ALARM, val)
76#define bfin_read_RTC_PREN() bfin_read16(RTC_PREN)
77#define bfin_write_RTC_PREN(val) bfin_write16(RTC_PREN, val)
78#define bfin_read_UART0_THR() bfin_read16(UART0_THR)
79#define bfin_write_UART0_THR(val) bfin_write16(UART0_THR, val)
80#define bfin_read_UART0_RBR() bfin_read16(UART0_RBR)
81#define bfin_write_UART0_RBR(val) bfin_write16(UART0_RBR, val)
82#define bfin_read_UART0_DLL() bfin_read16(UART0_DLL)
83#define bfin_write_UART0_DLL(val) bfin_write16(UART0_DLL, val)
84#define bfin_read_UART0_DLH() bfin_read16(UART0_DLH)
85#define bfin_write_UART0_DLH(val) bfin_write16(UART0_DLH, val)
86#define bfin_read_UART0_IER() bfin_read16(UART0_IER)
87#define bfin_write_UART0_IER(val) bfin_write16(UART0_IER, val)
88#define bfin_read_UART0_IIR() bfin_read16(UART0_IIR)
89#define bfin_write_UART0_IIR(val) bfin_write16(UART0_IIR, val)
90#define bfin_read_UART0_LCR() bfin_read16(UART0_LCR)
91#define bfin_write_UART0_LCR(val) bfin_write16(UART0_LCR, val)
92#define bfin_read_UART0_MCR() bfin_read16(UART0_MCR)
93#define bfin_write_UART0_MCR(val) bfin_write16(UART0_MCR, val)
94#define bfin_read_UART0_LSR() bfin_read16(UART0_LSR)
95#define bfin_write_UART0_LSR(val) bfin_write16(UART0_LSR, val)
96#define bfin_read_UART0_SCR() bfin_read16(UART0_SCR)
97#define bfin_write_UART0_SCR(val) bfin_write16(UART0_SCR, val)
98#define bfin_read_UART0_GCTL() bfin_read16(UART0_GCTL)
99#define bfin_write_UART0_GCTL(val) bfin_write16(UART0_GCTL, val)
100#define bfin_read_UART1_THR() bfin_read16(UART1_THR)
101#define bfin_write_UART1_THR(val) bfin_write16(UART1_THR, val)
102#define bfin_read_UART1_RBR() bfin_read16(UART1_RBR)
103#define bfin_write_UART1_RBR(val) bfin_write16(UART1_RBR, val)
104#define bfin_read_UART1_DLL() bfin_read16(UART1_DLL)
105#define bfin_write_UART1_DLL(val) bfin_write16(UART1_DLL, val)
106#define bfin_read_UART1_DLH() bfin_read16(UART1_DLH)
107#define bfin_write_UART1_DLH(val) bfin_write16(UART1_DLH, val)
108#define bfin_read_UART1_IER() bfin_read16(UART1_IER)
109#define bfin_write_UART1_IER(val) bfin_write16(UART1_IER, val)
110#define bfin_read_UART1_IIR() bfin_read16(UART1_IIR)
111#define bfin_write_UART1_IIR(val) bfin_write16(UART1_IIR, val)
112#define bfin_read_UART1_LCR() bfin_read16(UART1_LCR)
113#define bfin_write_UART1_LCR(val) bfin_write16(UART1_LCR, val)
114#define bfin_read_UART1_MCR() bfin_read16(UART1_MCR)
115#define bfin_write_UART1_MCR(val) bfin_write16(UART1_MCR, val)
116#define bfin_read_UART1_LSR() bfin_read16(UART1_LSR)
117#define bfin_write_UART1_LSR(val) bfin_write16(UART1_LSR, val)
118#define bfin_read_UART1_SCR() bfin_read16(UART1_SCR)
119#define bfin_write_UART1_SCR(val) bfin_write16(UART1_SCR, val)
120#define bfin_read_UART1_GCTL() bfin_read16(UART1_GCTL)
121#define bfin_write_UART1_GCTL(val) bfin_write16(UART1_GCTL, val)
122#define bfin_read_UART2_THR() bfin_read16(UART2_THR)
123#define bfin_write_UART2_THR(val) bfin_write16(UART2_THR, val)
124#define bfin_read_UART2_RBR() bfin_read16(UART2_RBR)
125#define bfin_write_UART2_RBR(val) bfin_write16(UART2_RBR, val)
126#define bfin_read_UART2_DLL() bfin_read16(UART2_DLL)
127#define bfin_write_UART2_DLL(val) bfin_write16(UART2_DLL, val)
128#define bfin_read_UART2_DLH() bfin_read16(UART2_DLH)
129#define bfin_write_UART2_DLH(val) bfin_write16(UART2_DLH, val)
130#define bfin_read_UART2_IER() bfin_read16(UART2_IER)
131#define bfin_write_UART2_IER(val) bfin_write16(UART2_IER, val)
132#define bfin_read_UART2_IIR() bfin_read16(UART2_IIR)
133#define bfin_write_UART2_IIR(val) bfin_write16(UART2_IIR, val)
134#define bfin_read_UART2_LCR() bfin_read16(UART2_LCR)
135#define bfin_write_UART2_LCR(val) bfin_write16(UART2_LCR, val)
136#define bfin_read_UART2_MCR() bfin_read16(UART2_MCR)
137#define bfin_write_UART2_MCR(val) bfin_write16(UART2_MCR, val)
138#define bfin_read_UART2_LSR() bfin_read16(UART2_LSR)
139#define bfin_write_UART2_LSR(val) bfin_write16(UART2_LSR, val)
140#define bfin_read_UART2_SCR() bfin_read16(UART2_SCR)
141#define bfin_write_UART2_SCR(val) bfin_write16(UART2_SCR, val)
142#define bfin_read_UART2_GCTL() bfin_read16(UART2_GCTL)
143#define bfin_write_UART2_GCTL(val) bfin_write16(UART2_GCTL, val)
144#define bfin_read_SPI0_CTL() bfin_read16(SPI0_CTL)
145#define bfin_write_SPI0_CTL(val) bfin_write16(SPI0_CTL, val)
146#define bfin_read_SPI0_FLG() bfin_read16(SPI0_FLG)
147#define bfin_write_SPI0_FLG(val) bfin_write16(SPI0_FLG, val)
148#define bfin_read_SPI0_STAT() bfin_read16(SPI0_STAT)
149#define bfin_write_SPI0_STAT(val) bfin_write16(SPI0_STAT, val)
150#define bfin_read_SPI0_TDBR() bfin_read16(SPI0_TDBR)
151#define bfin_write_SPI0_TDBR(val) bfin_write16(SPI0_TDBR, val)
152#define bfin_read_SPI0_RDBR() bfin_read16(SPI0_RDBR)
153#define bfin_write_SPI0_RDBR(val) bfin_write16(SPI0_RDBR, val)
154#define bfin_read_SPI0_BAUD() bfin_read16(SPI0_BAUD)
155#define bfin_write_SPI0_BAUD(val) bfin_write16(SPI0_BAUD, val)
156#define bfin_read_SPI0_SHADOW() bfin_read16(SPI0_SHADOW)
157#define bfin_write_SPI0_SHADOW(val) bfin_write16(SPI0_SHADOW, val)
158#define bfin_read_SPI1_CTL() bfin_read16(SPI1_CTL)
159#define bfin_write_SPI1_CTL(val) bfin_write16(SPI1_CTL, val)
160#define bfin_read_SPI1_FLG() bfin_read16(SPI1_FLG)
161#define bfin_write_SPI1_FLG(val) bfin_write16(SPI1_FLG, val)
162#define bfin_read_SPI1_STAT() bfin_read16(SPI1_STAT)
163#define bfin_write_SPI1_STAT(val) bfin_write16(SPI1_STAT, val)
164#define bfin_read_SPI1_TDBR() bfin_read16(SPI1_TDBR)
165#define bfin_write_SPI1_TDBR(val) bfin_write16(SPI1_TDBR, val)
166#define bfin_read_SPI1_RDBR() bfin_read16(SPI1_RDBR)
167#define bfin_write_SPI1_RDBR(val) bfin_write16(SPI1_RDBR, val)
168#define bfin_read_SPI1_BAUD() bfin_read16(SPI1_BAUD)
169#define bfin_write_SPI1_BAUD(val) bfin_write16(SPI1_BAUD, val)
170#define bfin_read_SPI1_SHADOW() bfin_read16(SPI1_SHADOW)
171#define bfin_write_SPI1_SHADOW(val) bfin_write16(SPI1_SHADOW, val)
172#define bfin_read_SPI2_CTL() bfin_read16(SPI2_CTL)
173#define bfin_write_SPI2_CTL(val) bfin_write16(SPI2_CTL, val)
174#define bfin_read_SPI2_FLG() bfin_read16(SPI2_FLG)
175#define bfin_write_SPI2_FLG(val) bfin_write16(SPI2_FLG, val)
176#define bfin_read_SPI2_STAT() bfin_read16(SPI2_STAT)
177#define bfin_write_SPI2_STAT(val) bfin_write16(SPI2_STAT, val)
178#define bfin_read_SPI2_TDBR() bfin_read16(SPI2_TDBR)
179#define bfin_write_SPI2_TDBR(val) bfin_write16(SPI2_TDBR, val)
180#define bfin_read_SPI2_RDBR() bfin_read16(SPI2_RDBR)
181#define bfin_write_SPI2_RDBR(val) bfin_write16(SPI2_RDBR, val)
182#define bfin_read_SPI2_BAUD() bfin_read16(SPI2_BAUD)
183#define bfin_write_SPI2_BAUD(val) bfin_write16(SPI2_BAUD, val)
184#define bfin_read_SPI2_SHADOW() bfin_read16(SPI2_SHADOW)
185#define bfin_write_SPI2_SHADOW(val) bfin_write16(SPI2_SHADOW, val)
186#define bfin_read_TIMER0_CONFIG() bfin_read16(TIMER0_CONFIG)
187#define bfin_write_TIMER0_CONFIG(val) bfin_write16(TIMER0_CONFIG, val)
188#define bfin_read_TIMER0_COUNTER() bfin_read32(TIMER0_COUNTER)
189#define bfin_write_TIMER0_COUNTER(val) bfin_write32(TIMER0_COUNTER, val)
190#define bfin_read_TIMER0_PERIOD() bfin_read32(TIMER0_PERIOD)
191#define bfin_write_TIMER0_PERIOD(val) bfin_write32(TIMER0_PERIOD, val)
192#define bfin_read_TIMER0_WIDTH() bfin_read32(TIMER0_WIDTH)
193#define bfin_write_TIMER0_WIDTH(val) bfin_write32(TIMER0_WIDTH, val)
194#define bfin_read_TIMER1_CONFIG() bfin_read16(TIMER1_CONFIG)
195#define bfin_write_TIMER1_CONFIG(val) bfin_write16(TIMER1_CONFIG, val)
196#define bfin_read_TIMER1_COUNTER() bfin_read32(TIMER1_COUNTER)
197#define bfin_write_TIMER1_COUNTER(val) bfin_write32(TIMER1_COUNTER, val)
198#define bfin_read_TIMER1_PERIOD() bfin_read32(TIMER1_PERIOD)
199#define bfin_write_TIMER1_PERIOD(val) bfin_write32(TIMER1_PERIOD, val)
200#define bfin_read_TIMER1_WIDTH() bfin_read32(TIMER1_WIDTH)
201#define bfin_write_TIMER1_WIDTH(val) bfin_write32(TIMER1_WIDTH, val)
202#define bfin_read_TIMER2_CONFIG() bfin_read16(TIMER2_CONFIG)
203#define bfin_write_TIMER2_CONFIG(val) bfin_write16(TIMER2_CONFIG, val)
204#define bfin_read_TIMER2_COUNTER() bfin_read32(TIMER2_COUNTER)
205#define bfin_write_TIMER2_COUNTER(val) bfin_write32(TIMER2_COUNTER, val)
206#define bfin_read_TIMER2_PERIOD() bfin_read32(TIMER2_PERIOD)
207#define bfin_write_TIMER2_PERIOD(val) bfin_write32(TIMER2_PERIOD, val)
208#define bfin_read_TIMER2_WIDTH() bfin_read32(TIMER2_WIDTH)
209#define bfin_write_TIMER2_WIDTH(val) bfin_write32(TIMER2_WIDTH, val)
210#define bfin_read_TIMER_ENABLE() bfin_read16(TIMER_ENABLE)
211#define bfin_write_TIMER_ENABLE(val) bfin_write16(TIMER_ENABLE, val)
212#define bfin_read_TIMER_DISABLE() bfin_read16(TIMER_DISABLE)
213#define bfin_write_TIMER_DISABLE(val) bfin_write16(TIMER_DISABLE, val)
214#define bfin_read_TIMER_STATUS() bfin_read16(TIMER_STATUS)
215#define bfin_write_TIMER_STATUS(val) bfin_write16(TIMER_STATUS, val)
216#define bfin_read_SPORT0_TCR1() bfin_read16(SPORT0_TCR1)
217#define bfin_write_SPORT0_TCR1(val) bfin_write16(SPORT0_TCR1, val)
218#define bfin_read_SPORT0_TCR2() bfin_read16(SPORT0_TCR2)
219#define bfin_write_SPORT0_TCR2(val) bfin_write16(SPORT0_TCR2, val)
220#define bfin_read_SPORT0_TCLKDIV() bfin_read16(SPORT0_TCLKDIV)
221#define bfin_write_SPORT0_TCLKDIV(val) bfin_write16(SPORT0_TCLKDIV, val)
222#define bfin_read_SPORT0_TFSDIV() bfin_read16(SPORT0_TFSDIV)
223#define bfin_write_SPORT0_TFSDIV(val) bfin_write16(SPORT0_TFSDIV, val)
224#define bfin_read_SPORT0_TX() bfin_read32(SPORT0_TX)
225#define bfin_write_SPORT0_TX(val) bfin_write32(SPORT0_TX, val)
226#define bfin_read_SPORT0_RX() bfin_read32(SPORT0_RX)
227#define bfin_write_SPORT0_RX(val) bfin_write32(SPORT0_RX, val)
228#define bfin_read_SPORT0_RCR1() bfin_read16(SPORT0_RCR1)
229#define bfin_write_SPORT0_RCR1(val) bfin_write16(SPORT0_RCR1, val)
230#define bfin_read_SPORT0_RCR2() bfin_read16(SPORT0_RCR2)
231#define bfin_write_SPORT0_RCR2(val) bfin_write16(SPORT0_RCR2, val)
232#define bfin_read_SPORT0_RCLKDIV() bfin_read16(SPORT0_RCLKDIV)
233#define bfin_write_SPORT0_RCLKDIV(val) bfin_write16(SPORT0_RCLKDIV, val)
234#define bfin_read_SPORT0_RFSDIV() bfin_read16(SPORT0_RFSDIV)
235#define bfin_write_SPORT0_RFSDIV(val) bfin_write16(SPORT0_RFSDIV, val)
236#define bfin_read_SPORT0_STAT() bfin_read16(SPORT0_STAT)
237#define bfin_write_SPORT0_STAT(val) bfin_write16(SPORT0_STAT, val)
238#define bfin_read_SPORT0_CHNL() bfin_read16(SPORT0_CHNL)
239#define bfin_write_SPORT0_CHNL(val) bfin_write16(SPORT0_CHNL, val)
240#define bfin_read_SPORT0_MCMC1() bfin_read16(SPORT0_MCMC1)
241#define bfin_write_SPORT0_MCMC1(val) bfin_write16(SPORT0_MCMC1, val)
242#define bfin_read_SPORT0_MCMC2() bfin_read16(SPORT0_MCMC2)
243#define bfin_write_SPORT0_MCMC2(val) bfin_write16(SPORT0_MCMC2, val)
244#define bfin_read_SPORT0_MTCS0() bfin_read32(SPORT0_MTCS0)
245#define bfin_write_SPORT0_MTCS0(val) bfin_write32(SPORT0_MTCS0, val)
246#define bfin_read_SPORT0_MTCS1() bfin_read32(SPORT0_MTCS1)
247#define bfin_write_SPORT0_MTCS1(val) bfin_write32(SPORT0_MTCS1, val)
248#define bfin_read_SPORT0_MTCS2() bfin_read32(SPORT0_MTCS2)
249#define bfin_write_SPORT0_MTCS2(val) bfin_write32(SPORT0_MTCS2, val)
250#define bfin_read_SPORT0_MTCS3() bfin_read32(SPORT0_MTCS3)
251#define bfin_write_SPORT0_MTCS3(val) bfin_write32(SPORT0_MTCS3, val)
252#define bfin_read_SPORT0_MRCS0() bfin_read32(SPORT0_MRCS0)
253#define bfin_write_SPORT0_MRCS0(val) bfin_write32(SPORT0_MRCS0, val)
254#define bfin_read_SPORT0_MRCS1() bfin_read32(SPORT0_MRCS1)
255#define bfin_write_SPORT0_MRCS1(val) bfin_write32(SPORT0_MRCS1, val)
256#define bfin_read_SPORT0_MRCS2() bfin_read32(SPORT0_MRCS2)
257#define bfin_write_SPORT0_MRCS2(val) bfin_write32(SPORT0_MRCS2, val)
258#define bfin_read_SPORT0_MRCS3() bfin_read32(SPORT0_MRCS3)
259#define bfin_write_SPORT0_MRCS3(val) bfin_write32(SPORT0_MRCS3, val)
260#define bfin_read_SPORT1_TCR1() bfin_read16(SPORT1_TCR1)
261#define bfin_write_SPORT1_TCR1(val) bfin_write16(SPORT1_TCR1, val)
262#define bfin_read_SPORT1_TCR2() bfin_read16(SPORT1_TCR2)
263#define bfin_write_SPORT1_TCR2(val) bfin_write16(SPORT1_TCR2, val)
264#define bfin_read_SPORT1_TCLKDIV() bfin_read16(SPORT1_TCLKDIV)
265#define bfin_write_SPORT1_TCLKDIV(val) bfin_write16(SPORT1_TCLKDIV, val)
266#define bfin_read_SPORT1_TFSDIV() bfin_read16(SPORT1_TFSDIV)
267#define bfin_write_SPORT1_TFSDIV(val) bfin_write16(SPORT1_TFSDIV, val)
268#define bfin_read_SPORT1_TX() bfin_read32(SPORT1_TX)
269#define bfin_write_SPORT1_TX(val) bfin_write32(SPORT1_TX, val)
270#define bfin_read_SPORT1_RX() bfin_read32(SPORT1_RX)
271#define bfin_write_SPORT1_RX(val) bfin_write32(SPORT1_RX, val)
272#define bfin_read_SPORT1_RCR1() bfin_read16(SPORT1_RCR1)
273#define bfin_write_SPORT1_RCR1(val) bfin_write16(SPORT1_RCR1, val)
274#define bfin_read_SPORT1_RCR2() bfin_read16(SPORT1_RCR2)
275#define bfin_write_SPORT1_RCR2(val) bfin_write16(SPORT1_RCR2, val)
276#define bfin_read_SPORT1_RCLKDIV() bfin_read16(SPORT1_RCLKDIV)
277#define bfin_write_SPORT1_RCLKDIV(val) bfin_write16(SPORT1_RCLKDIV, val)
278#define bfin_read_SPORT1_RFSDIV() bfin_read16(SPORT1_RFSDIV)
279#define bfin_write_SPORT1_RFSDIV(val) bfin_write16(SPORT1_RFSDIV, val)
280#define bfin_read_SPORT1_STAT() bfin_read16(SPORT1_STAT)
281#define bfin_write_SPORT1_STAT(val) bfin_write16(SPORT1_STAT, val)
282#define bfin_read_SPORT1_CHNL() bfin_read16(SPORT1_CHNL)
283#define bfin_write_SPORT1_CHNL(val) bfin_write16(SPORT1_CHNL, val)
284#define bfin_read_SPORT1_MCMC1() bfin_read16(SPORT1_MCMC1)
285#define bfin_write_SPORT1_MCMC1(val) bfin_write16(SPORT1_MCMC1, val)
286#define bfin_read_SPORT1_MCMC2() bfin_read16(SPORT1_MCMC2)
287#define bfin_write_SPORT1_MCMC2(val) bfin_write16(SPORT1_MCMC2, val)
288#define bfin_read_SPORT1_MTCS0() bfin_read32(SPORT1_MTCS0)
289#define bfin_write_SPORT1_MTCS0(val) bfin_write32(SPORT1_MTCS0, val)
290#define bfin_read_SPORT1_MTCS1() bfin_read32(SPORT1_MTCS1)
291#define bfin_write_SPORT1_MTCS1(val) bfin_write32(SPORT1_MTCS1, val)
292#define bfin_read_SPORT1_MTCS2() bfin_read32(SPORT1_MTCS2)
293#define bfin_write_SPORT1_MTCS2(val) bfin_write32(SPORT1_MTCS2, val)
294#define bfin_read_SPORT1_MTCS3() bfin_read32(SPORT1_MTCS3)
295#define bfin_write_SPORT1_MTCS3(val) bfin_write32(SPORT1_MTCS3, val)
296#define bfin_read_SPORT1_MRCS0() bfin_read32(SPORT1_MRCS0)
297#define bfin_write_SPORT1_MRCS0(val) bfin_write32(SPORT1_MRCS0, val)
298#define bfin_read_SPORT1_MRCS1() bfin_read32(SPORT1_MRCS1)
299#define bfin_write_SPORT1_MRCS1(val) bfin_write32(SPORT1_MRCS1, val)
300#define bfin_read_SPORT1_MRCS2() bfin_read32(SPORT1_MRCS2)
301#define bfin_write_SPORT1_MRCS2(val) bfin_write32(SPORT1_MRCS2, val)
302#define bfin_read_SPORT1_MRCS3() bfin_read32(SPORT1_MRCS3)
303#define bfin_write_SPORT1_MRCS3(val) bfin_write32(SPORT1_MRCS3, val)
304#define bfin_read_SPORT2_TCR1() bfin_read16(SPORT2_TCR1)
305#define bfin_write_SPORT2_TCR1(val) bfin_write16(SPORT2_TCR1, val)
306#define bfin_read_SPORT2_TCR2() bfin_read16(SPORT2_TCR2)
307#define bfin_write_SPORT2_TCR2(val) bfin_write16(SPORT2_TCR2, val)
308#define bfin_read_SPORT2_TCLKDIV() bfin_read16(SPORT2_TCLKDIV)
309#define bfin_write_SPORT2_TCLKDIV(val) bfin_write16(SPORT2_TCLKDIV, val)
310#define bfin_read_SPORT2_TFSDIV() bfin_read16(SPORT2_TFSDIV)
311#define bfin_write_SPORT2_TFSDIV(val) bfin_write16(SPORT2_TFSDIV, val)
312#define bfin_read_SPORT2_TX() bfin_read32(SPORT2_TX)
313#define bfin_write_SPORT2_TX(val) bfin_write32(SPORT2_TX, val)
314#define bfin_read_SPORT2_RX() bfin_read32(SPORT2_RX)
315#define bfin_write_SPORT2_RX(val) bfin_write32(SPORT2_RX, val)
316#define bfin_read_SPORT2_RCR1() bfin_read16(SPORT2_RCR1)
317#define bfin_write_SPORT2_RCR1(val) bfin_write16(SPORT2_RCR1, val)
318#define bfin_read_SPORT2_RCR2() bfin_read16(SPORT2_RCR2)
319#define bfin_write_SPORT2_RCR2(val) bfin_write16(SPORT2_RCR2, val)
320#define bfin_read_SPORT2_RCLKDIV() bfin_read16(SPORT2_RCLKDIV)
321#define bfin_write_SPORT2_RCLKDIV(val) bfin_write16(SPORT2_RCLKDIV, val)
322#define bfin_read_SPORT2_RFSDIV() bfin_read16(SPORT2_RFSDIV)
323#define bfin_write_SPORT2_RFSDIV(val) bfin_write16(SPORT2_RFSDIV, val)
324#define bfin_read_SPORT2_STAT() bfin_read16(SPORT2_STAT)
325#define bfin_write_SPORT2_STAT(val) bfin_write16(SPORT2_STAT, val)
326#define bfin_read_SPORT2_CHNL() bfin_read16(SPORT2_CHNL)
327#define bfin_write_SPORT2_CHNL(val) bfin_write16(SPORT2_CHNL, val)
328#define bfin_read_SPORT2_MCMC1() bfin_read16(SPORT2_MCMC1)
329#define bfin_write_SPORT2_MCMC1(val) bfin_write16(SPORT2_MCMC1, val)
330#define bfin_read_SPORT2_MCMC2() bfin_read16(SPORT2_MCMC2)
331#define bfin_write_SPORT2_MCMC2(val) bfin_write16(SPORT2_MCMC2, val)
332#define bfin_read_SPORT2_MTCS0() bfin_read32(SPORT2_MTCS0)
333#define bfin_write_SPORT2_MTCS0(val) bfin_write32(SPORT2_MTCS0, val)
334#define bfin_read_SPORT2_MTCS1() bfin_read32(SPORT2_MTCS1)
335#define bfin_write_SPORT2_MTCS1(val) bfin_write32(SPORT2_MTCS1, val)
336#define bfin_read_SPORT2_MTCS2() bfin_read32(SPORT2_MTCS2)
337#define bfin_write_SPORT2_MTCS2(val) bfin_write32(SPORT2_MTCS2, val)
338#define bfin_read_SPORT2_MTCS3() bfin_read32(SPORT2_MTCS3)
339#define bfin_write_SPORT2_MTCS3(val) bfin_write32(SPORT2_MTCS3, val)
340#define bfin_read_SPORT2_MRCS0() bfin_read32(SPORT2_MRCS0)
341#define bfin_write_SPORT2_MRCS0(val) bfin_write32(SPORT2_MRCS0, val)
342#define bfin_read_SPORT2_MRCS1() bfin_read32(SPORT2_MRCS1)
343#define bfin_write_SPORT2_MRCS1(val) bfin_write32(SPORT2_MRCS1, val)
344#define bfin_read_SPORT2_MRCS2() bfin_read32(SPORT2_MRCS2)
345#define bfin_write_SPORT2_MRCS2(val) bfin_write32(SPORT2_MRCS2, val)
346#define bfin_read_SPORT2_MRCS3() bfin_read32(SPORT2_MRCS3)
347#define bfin_write_SPORT2_MRCS3(val) bfin_write32(SPORT2_MRCS3, val)
348#define bfin_read_SPORT3_TCR1() bfin_read16(SPORT3_TCR1)
349#define bfin_write_SPORT3_TCR1(val) bfin_write16(SPORT3_TCR1, val)
350#define bfin_read_SPORT3_TCR2() bfin_read16(SPORT3_TCR2)
351#define bfin_write_SPORT3_TCR2(val) bfin_write16(SPORT3_TCR2, val)
352#define bfin_read_SPORT3_TCLKDIV() bfin_read16(SPORT3_TCLKDIV)
353#define bfin_write_SPORT3_TCLKDIV(val) bfin_write16(SPORT3_TCLKDIV, val)
354#define bfin_read_SPORT3_TFSDIV() bfin_read16(SPORT3_TFSDIV)
355#define bfin_write_SPORT3_TFSDIV(val) bfin_write16(SPORT3_TFSDIV, val)
356#define bfin_read_SPORT3_TX() bfin_read32(SPORT3_TX)
357#define bfin_write_SPORT3_TX(val) bfin_write32(SPORT3_TX, val)
358#define bfin_read_SPORT3_RX() bfin_read32(SPORT3_RX)
359#define bfin_write_SPORT3_RX(val) bfin_write32(SPORT3_RX, val)
360#define bfin_read_SPORT3_RCR1() bfin_read16(SPORT3_RCR1)
361#define bfin_write_SPORT3_RCR1(val) bfin_write16(SPORT3_RCR1, val)
362#define bfin_read_SPORT3_RCR2() bfin_read16(SPORT3_RCR2)
363#define bfin_write_SPORT3_RCR2(val) bfin_write16(SPORT3_RCR2, val)
364#define bfin_read_SPORT3_RCLKDIV() bfin_read16(SPORT3_RCLKDIV)
365#define bfin_write_SPORT3_RCLKDIV(val) bfin_write16(SPORT3_RCLKDIV, val)
366#define bfin_read_SPORT3_RFSDIV() bfin_read16(SPORT3_RFSDIV)
367#define bfin_write_SPORT3_RFSDIV(val) bfin_write16(SPORT3_RFSDIV, val)
368#define bfin_read_SPORT3_STAT() bfin_read16(SPORT3_STAT)
369#define bfin_write_SPORT3_STAT(val) bfin_write16(SPORT3_STAT, val)
370#define bfin_read_SPORT3_CHNL() bfin_read16(SPORT3_CHNL)
371#define bfin_write_SPORT3_CHNL(val) bfin_write16(SPORT3_CHNL, val)
372#define bfin_read_SPORT3_MCMC1() bfin_read16(SPORT3_MCMC1)
373#define bfin_write_SPORT3_MCMC1(val) bfin_write16(SPORT3_MCMC1, val)
374#define bfin_read_SPORT3_MCMC2() bfin_read16(SPORT3_MCMC2)
375#define bfin_write_SPORT3_MCMC2(val) bfin_write16(SPORT3_MCMC2, val)
376#define bfin_read_SPORT3_MTCS0() bfin_read32(SPORT3_MTCS0)
377#define bfin_write_SPORT3_MTCS0(val) bfin_write32(SPORT3_MTCS0, val)
378#define bfin_read_SPORT3_MTCS1() bfin_read32(SPORT3_MTCS1)
379#define bfin_write_SPORT3_MTCS1(val) bfin_write32(SPORT3_MTCS1, val)
380#define bfin_read_SPORT3_MTCS2() bfin_read32(SPORT3_MTCS2)
381#define bfin_write_SPORT3_MTCS2(val) bfin_write32(SPORT3_MTCS2, val)
382#define bfin_read_SPORT3_MTCS3() bfin_read32(SPORT3_MTCS3)
383#define bfin_write_SPORT3_MTCS3(val) bfin_write32(SPORT3_MTCS3, val)
384#define bfin_read_SPORT3_MRCS0() bfin_read32(SPORT3_MRCS0)
385#define bfin_write_SPORT3_MRCS0(val) bfin_write32(SPORT3_MRCS0, val)
386#define bfin_read_SPORT3_MRCS1() bfin_read32(SPORT3_MRCS1)
387#define bfin_write_SPORT3_MRCS1(val) bfin_write32(SPORT3_MRCS1, val)
388#define bfin_read_SPORT3_MRCS2() bfin_read32(SPORT3_MRCS2)
389#define bfin_write_SPORT3_MRCS2(val) bfin_write32(SPORT3_MRCS2, val)
390#define bfin_read_SPORT3_MRCS3() bfin_read32(SPORT3_MRCS3)
391#define bfin_write_SPORT3_MRCS3(val) bfin_write32(SPORT3_MRCS3, val)
392#define bfin_read_PORTFIO() bfin_read16(PORTFIO)
393#define bfin_write_PORTFIO(val) bfin_write16(PORTFIO, val)
394#define bfin_read_PORTFIO_CLEAR() bfin_read16(PORTFIO_CLEAR)
395#define bfin_write_PORTFIO_CLEAR(val) bfin_write16(PORTFIO_CLEAR, val)
396#define bfin_read_PORTFIO_SET() bfin_read16(PORTFIO_SET)
397#define bfin_write_PORTFIO_SET(val) bfin_write16(PORTFIO_SET, val)
398#define bfin_read_PORTFIO_TOGGLE() bfin_read16(PORTFIO_TOGGLE)
399#define bfin_write_PORTFIO_TOGGLE(val) bfin_write16(PORTFIO_TOGGLE, val)
400#define bfin_read_PORTFIO_MASKA() bfin_read16(PORTFIO_MASKA)
401#define bfin_write_PORTFIO_MASKA(val) bfin_write16(PORTFIO_MASKA, val)
402#define bfin_read_PORTFIO_MASKA_CLEAR() bfin_read16(PORTFIO_MASKA_CLEAR)
403#define bfin_write_PORTFIO_MASKA_CLEAR(val) bfin_write16(PORTFIO_MASKA_CLEAR, val)
404#define bfin_read_PORTFIO_MASKA_SET() bfin_read16(PORTFIO_MASKA_SET)
405#define bfin_write_PORTFIO_MASKA_SET(val) bfin_write16(PORTFIO_MASKA_SET, val)
406#define bfin_read_PORTFIO_MASKA_TOGGLE() bfin_read16(PORTFIO_MASKA_TOGGLE)
407#define bfin_write_PORTFIO_MASKA_TOGGLE(val) bfin_write16(PORTFIO_MASKA_TOGGLE, val)
408#define bfin_read_PORTFIO_MASKB() bfin_read16(PORTFIO_MASKB)
409#define bfin_write_PORTFIO_MASKB(val) bfin_write16(PORTFIO_MASKB, val)
410#define bfin_read_PORTFIO_MASKB_CLEAR() bfin_read16(PORTFIO_MASKB_CLEAR)
411#define bfin_write_PORTFIO_MASKB_CLEAR(val) bfin_write16(PORTFIO_MASKB_CLEAR, val)
412#define bfin_read_PORTFIO_MASKB_SET() bfin_read16(PORTFIO_MASKB_SET)
413#define bfin_write_PORTFIO_MASKB_SET(val) bfin_write16(PORTFIO_MASKB_SET, val)
414#define bfin_read_PORTFIO_MASKB_TOGGLE() bfin_read16(PORTFIO_MASKB_TOGGLE)
415#define bfin_write_PORTFIO_MASKB_TOGGLE(val) bfin_write16(PORTFIO_MASKB_TOGGLE, val)
416#define bfin_read_PORTFIO_DIR() bfin_read16(PORTFIO_DIR)
417#define bfin_write_PORTFIO_DIR(val) bfin_write16(PORTFIO_DIR, val)
418#define bfin_read_PORTFIO_POLAR() bfin_read16(PORTFIO_POLAR)
419#define bfin_write_PORTFIO_POLAR(val) bfin_write16(PORTFIO_POLAR, val)
420#define bfin_read_PORTFIO_EDGE() bfin_read16(PORTFIO_EDGE)
421#define bfin_write_PORTFIO_EDGE(val) bfin_write16(PORTFIO_EDGE, val)
422#define bfin_read_PORTFIO_BOTH() bfin_read16(PORTFIO_BOTH)
423#define bfin_write_PORTFIO_BOTH(val) bfin_write16(PORTFIO_BOTH, val)
424#define bfin_read_PORTFIO_INEN() bfin_read16(PORTFIO_INEN)
425#define bfin_write_PORTFIO_INEN(val) bfin_write16(PORTFIO_INEN, val)
426#define bfin_read_PORTCIO_FER() bfin_read16(PORTCIO_FER)
427#define bfin_write_PORTCIO_FER(val) bfin_write16(PORTCIO_FER, val)
428#define bfin_read_PORTCIO() bfin_read16(PORTCIO)
429#define bfin_write_PORTCIO(val) bfin_write16(PORTCIO, val)
430#define bfin_read_PORTCIO_CLEAR() bfin_read16(PORTCIO_CLEAR)
431#define bfin_write_PORTCIO_CLEAR(val) bfin_write16(PORTCIO_CLEAR, val)
432#define bfin_read_PORTCIO_SET() bfin_read16(PORTCIO_SET)
433#define bfin_write_PORTCIO_SET(val) bfin_write16(PORTCIO_SET, val)
434#define bfin_read_PORTCIO_TOGGLE() bfin_read16(PORTCIO_TOGGLE)
435#define bfin_write_PORTCIO_TOGGLE(val) bfin_write16(PORTCIO_TOGGLE, val)
436#define bfin_read_PORTCIO_DIR() bfin_read16(PORTCIO_DIR)
437#define bfin_write_PORTCIO_DIR(val) bfin_write16(PORTCIO_DIR, val)
438#define bfin_read_PORTCIO_INEN() bfin_read16(PORTCIO_INEN)
439#define bfin_write_PORTCIO_INEN(val) bfin_write16(PORTCIO_INEN, val)
440#define bfin_read_PORTDIO_FER() bfin_read16(PORTDIO_FER)
441#define bfin_write_PORTDIO_FER(val) bfin_write16(PORTDIO_FER, val)
442#define bfin_read_PORTDIO() bfin_read16(PORTDIO)
443#define bfin_write_PORTDIO(val) bfin_write16(PORTDIO, val)
444#define bfin_read_PORTDIO_CLEAR() bfin_read16(PORTDIO_CLEAR)
445#define bfin_write_PORTDIO_CLEAR(val) bfin_write16(PORTDIO_CLEAR, val)
446#define bfin_read_PORTDIO_SET() bfin_read16(PORTDIO_SET)
447#define bfin_write_PORTDIO_SET(val) bfin_write16(PORTDIO_SET, val)
448#define bfin_read_PORTDIO_TOGGLE() bfin_read16(PORTDIO_TOGGLE)
449#define bfin_write_PORTDIO_TOGGLE(val) bfin_write16(PORTDIO_TOGGLE, val)
450#define bfin_read_PORTDIO_DIR() bfin_read16(PORTDIO_DIR)
451#define bfin_write_PORTDIO_DIR(val) bfin_write16(PORTDIO_DIR, val)
452#define bfin_read_PORTDIO_INEN() bfin_read16(PORTDIO_INEN)
453#define bfin_write_PORTDIO_INEN(val) bfin_write16(PORTDIO_INEN, val)
454#define bfin_read_PORTEIO_FER() bfin_read16(PORTEIO_FER)
455#define bfin_write_PORTEIO_FER(val) bfin_write16(PORTEIO_FER, val)
456#define bfin_read_PORTEIO() bfin_read16(PORTEIO)
457#define bfin_write_PORTEIO(val) bfin_write16(PORTEIO, val)
458#define bfin_read_PORTEIO_CLEAR() bfin_read16(PORTEIO_CLEAR)
459#define bfin_write_PORTEIO_CLEAR(val) bfin_write16(PORTEIO_CLEAR, val)
460#define bfin_read_PORTEIO_SET() bfin_read16(PORTEIO_SET)
461#define bfin_write_PORTEIO_SET(val) bfin_write16(PORTEIO_SET, val)
462#define bfin_read_PORTEIO_TOGGLE() bfin_read16(PORTEIO_TOGGLE)
463#define bfin_write_PORTEIO_TOGGLE(val) bfin_write16(PORTEIO_TOGGLE, val)
464#define bfin_read_PORTEIO_DIR() bfin_read16(PORTEIO_DIR)
465#define bfin_write_PORTEIO_DIR(val) bfin_write16(PORTEIO_DIR, val)
466#define bfin_read_PORTEIO_INEN() bfin_read16(PORTEIO_INEN)
467#define bfin_write_PORTEIO_INEN(val) bfin_write16(PORTEIO_INEN, val)
468#define bfin_read_EBIU_AMGCTL() bfin_read16(EBIU_AMGCTL)
469#define bfin_write_EBIU_AMGCTL(val) bfin_write16(EBIU_AMGCTL, val)
470#define bfin_read_EBIU_AMBCTL0() bfin_read32(EBIU_AMBCTL0)
471#define bfin_write_EBIU_AMBCTL0(val) bfin_write32(EBIU_AMBCTL0, val)
472#define bfin_read_EBIU_AMBCTL1() bfin_read32(EBIU_AMBCTL1)
473#define bfin_write_EBIU_AMBCTL1(val) bfin_write32(EBIU_AMBCTL1, val)
474#define bfin_read_EBIU_SDGCTL() bfin_read32(EBIU_SDGCTL)
475#define bfin_write_EBIU_SDGCTL(val) bfin_write32(EBIU_SDGCTL, val)
476#define bfin_read_EBIU_SDBCTL() bfin_read16(EBIU_SDBCTL)
477#define bfin_write_EBIU_SDBCTL(val) bfin_write16(EBIU_SDBCTL, val)
478#define bfin_read_EBIU_SDRRC() bfin_read16(EBIU_SDRRC)
479#define bfin_write_EBIU_SDRRC(val) bfin_write16(EBIU_SDRRC, val)
480#define bfin_read_EBIU_SDSTAT() bfin_read16(EBIU_SDSTAT)
481#define bfin_write_EBIU_SDSTAT(val) bfin_write16(EBIU_SDSTAT, val)
Mike Frysinger9346dba2010-10-25 08:04:44 +0000482#define bfin_read_DMAC0_TC_PER() bfin_read16(DMAC0_TC_PER)
483#define bfin_write_DMAC0_TC_PER(val) bfin_write16(DMAC0_TC_PER, val)
484#define bfin_read_DMAC0_TC_CNT() bfin_read16(DMAC0_TC_CNT)
485#define bfin_write_DMAC0_TC_CNT(val) bfin_write16(DMAC0_TC_CNT, val)
Michael Hennerichdc26aec2008-11-18 17:48:22 +0800486#define bfin_read_DMA0_NEXT_DESC_PTR() bfin_readPTR(DMA0_NEXT_DESC_PTR)
487#define bfin_write_DMA0_NEXT_DESC_PTR(val) bfin_writePTR(DMA0_NEXT_DESC_PTR, val)
488#define bfin_read_DMA0_START_ADDR() bfin_readPTR(DMA0_START_ADDR)
489#define bfin_write_DMA0_START_ADDR(val) bfin_writePTR(DMA0_START_ADDR, val)
490#define bfin_read_DMA0_CONFIG() bfin_read16(DMA0_CONFIG)
491#define bfin_write_DMA0_CONFIG(val) bfin_write16(DMA0_CONFIG, val)
492#define bfin_read_DMA0_X_COUNT() bfin_read16(DMA0_X_COUNT)
493#define bfin_write_DMA0_X_COUNT(val) bfin_write16(DMA0_X_COUNT, val)
494#define bfin_read_DMA0_X_MODIFY() bfin_read16(DMA0_X_MODIFY)
495#define bfin_write_DMA0_X_MODIFY(val) bfin_write16(DMA0_X_MODIFY, val)
496#define bfin_read_DMA0_Y_COUNT() bfin_read16(DMA0_Y_COUNT)
497#define bfin_write_DMA0_Y_COUNT(val) bfin_write16(DMA0_Y_COUNT, val)
498#define bfin_read_DMA0_Y_MODIFY() bfin_read16(DMA0_Y_MODIFY)
499#define bfin_write_DMA0_Y_MODIFY(val) bfin_write16(DMA0_Y_MODIFY, val)
500#define bfin_read_DMA0_CURR_DESC_PTR() bfin_readPTR(DMA0_CURR_DESC_PTR)
501#define bfin_write_DMA0_CURR_DESC_PTR(val) bfin_writePTR(DMA0_CURR_DESC_PTR, val)
502#define bfin_read_DMA0_CURR_ADDR() bfin_readPTR(DMA0_CURR_ADDR)
503#define bfin_write_DMA0_CURR_ADDR(val) bfin_writePTR(DMA0_CURR_ADDR, val)
504#define bfin_read_DMA0_IRQ_STATUS() bfin_read16(DMA0_IRQ_STATUS)
505#define bfin_write_DMA0_IRQ_STATUS(val) bfin_write16(DMA0_IRQ_STATUS, val)
506#define bfin_read_DMA0_PERIPHERAL_MAP() bfin_read16(DMA0_PERIPHERAL_MAP)
507#define bfin_write_DMA0_PERIPHERAL_MAP(val) bfin_write16(DMA0_PERIPHERAL_MAP, val)
508#define bfin_read_DMA0_CURR_X_COUNT() bfin_read16(DMA0_CURR_X_COUNT)
509#define bfin_write_DMA0_CURR_X_COUNT(val) bfin_write16(DMA0_CURR_X_COUNT, val)
510#define bfin_read_DMA0_CURR_Y_COUNT() bfin_read16(DMA0_CURR_Y_COUNT)
511#define bfin_write_DMA0_CURR_Y_COUNT(val) bfin_write16(DMA0_CURR_Y_COUNT, val)
512#define bfin_read_DMA1_NEXT_DESC_PTR() bfin_readPTR(DMA1_NEXT_DESC_PTR)
513#define bfin_write_DMA1_NEXT_DESC_PTR(val) bfin_writePTR(DMA1_NEXT_DESC_PTR, val)
514#define bfin_read_DMA1_START_ADDR() bfin_readPTR(DMA1_START_ADDR)
515#define bfin_write_DMA1_START_ADDR(val) bfin_writePTR(DMA1_START_ADDR, val)
516#define bfin_read_DMA1_CONFIG() bfin_read16(DMA1_CONFIG)
517#define bfin_write_DMA1_CONFIG(val) bfin_write16(DMA1_CONFIG, val)
518#define bfin_read_DMA1_X_COUNT() bfin_read16(DMA1_X_COUNT)
519#define bfin_write_DMA1_X_COUNT(val) bfin_write16(DMA1_X_COUNT, val)
520#define bfin_read_DMA1_X_MODIFY() bfin_read16(DMA1_X_MODIFY)
521#define bfin_write_DMA1_X_MODIFY(val) bfin_write16(DMA1_X_MODIFY, val)
522#define bfin_read_DMA1_Y_COUNT() bfin_read16(DMA1_Y_COUNT)
523#define bfin_write_DMA1_Y_COUNT(val) bfin_write16(DMA1_Y_COUNT, val)
524#define bfin_read_DMA1_Y_MODIFY() bfin_read16(DMA1_Y_MODIFY)
525#define bfin_write_DMA1_Y_MODIFY(val) bfin_write16(DMA1_Y_MODIFY, val)
526#define bfin_read_DMA1_CURR_DESC_PTR() bfin_readPTR(DMA1_CURR_DESC_PTR)
527#define bfin_write_DMA1_CURR_DESC_PTR(val) bfin_writePTR(DMA1_CURR_DESC_PTR, val)
528#define bfin_read_DMA1_CURR_ADDR() bfin_readPTR(DMA1_CURR_ADDR)
529#define bfin_write_DMA1_CURR_ADDR(val) bfin_writePTR(DMA1_CURR_ADDR, val)
530#define bfin_read_DMA1_IRQ_STATUS() bfin_read16(DMA1_IRQ_STATUS)
531#define bfin_write_DMA1_IRQ_STATUS(val) bfin_write16(DMA1_IRQ_STATUS, val)
532#define bfin_read_DMA1_PERIPHERAL_MAP() bfin_read16(DMA1_PERIPHERAL_MAP)
533#define bfin_write_DMA1_PERIPHERAL_MAP(val) bfin_write16(DMA1_PERIPHERAL_MAP, val)
534#define bfin_read_DMA1_CURR_X_COUNT() bfin_read16(DMA1_CURR_X_COUNT)
535#define bfin_write_DMA1_CURR_X_COUNT(val) bfin_write16(DMA1_CURR_X_COUNT, val)
536#define bfin_read_DMA1_CURR_Y_COUNT() bfin_read16(DMA1_CURR_Y_COUNT)
537#define bfin_write_DMA1_CURR_Y_COUNT(val) bfin_write16(DMA1_CURR_Y_COUNT, val)
538#define bfin_read_DMA2_NEXT_DESC_PTR() bfin_readPTR(DMA2_NEXT_DESC_PTR)
539#define bfin_write_DMA2_NEXT_DESC_PTR(val) bfin_writePTR(DMA2_NEXT_DESC_PTR, val)
540#define bfin_read_DMA2_START_ADDR() bfin_readPTR(DMA2_START_ADDR)
541#define bfin_write_DMA2_START_ADDR(val) bfin_writePTR(DMA2_START_ADDR, val)
542#define bfin_read_DMA2_CONFIG() bfin_read16(DMA2_CONFIG)
543#define bfin_write_DMA2_CONFIG(val) bfin_write16(DMA2_CONFIG, val)
544#define bfin_read_DMA2_X_COUNT() bfin_read16(DMA2_X_COUNT)
545#define bfin_write_DMA2_X_COUNT(val) bfin_write16(DMA2_X_COUNT, val)
546#define bfin_read_DMA2_X_MODIFY() bfin_read16(DMA2_X_MODIFY)
547#define bfin_write_DMA2_X_MODIFY(val) bfin_write16(DMA2_X_MODIFY, val)
548#define bfin_read_DMA2_Y_COUNT() bfin_read16(DMA2_Y_COUNT)
549#define bfin_write_DMA2_Y_COUNT(val) bfin_write16(DMA2_Y_COUNT, val)
550#define bfin_read_DMA2_Y_MODIFY() bfin_read16(DMA2_Y_MODIFY)
551#define bfin_write_DMA2_Y_MODIFY(val) bfin_write16(DMA2_Y_MODIFY, val)
552#define bfin_read_DMA2_CURR_DESC_PTR() bfin_readPTR(DMA2_CURR_DESC_PTR)
553#define bfin_write_DMA2_CURR_DESC_PTR(val) bfin_writePTR(DMA2_CURR_DESC_PTR, val)
554#define bfin_read_DMA2_CURR_ADDR() bfin_readPTR(DMA2_CURR_ADDR)
555#define bfin_write_DMA2_CURR_ADDR(val) bfin_writePTR(DMA2_CURR_ADDR, val)
556#define bfin_read_DMA2_IRQ_STATUS() bfin_read16(DMA2_IRQ_STATUS)
557#define bfin_write_DMA2_IRQ_STATUS(val) bfin_write16(DMA2_IRQ_STATUS, val)
558#define bfin_read_DMA2_PERIPHERAL_MAP() bfin_read16(DMA2_PERIPHERAL_MAP)
559#define bfin_write_DMA2_PERIPHERAL_MAP(val) bfin_write16(DMA2_PERIPHERAL_MAP, val)
560#define bfin_read_DMA2_CURR_X_COUNT() bfin_read16(DMA2_CURR_X_COUNT)
561#define bfin_write_DMA2_CURR_X_COUNT(val) bfin_write16(DMA2_CURR_X_COUNT, val)
562#define bfin_read_DMA2_CURR_Y_COUNT() bfin_read16(DMA2_CURR_Y_COUNT)
563#define bfin_write_DMA2_CURR_Y_COUNT(val) bfin_write16(DMA2_CURR_Y_COUNT, val)
564#define bfin_read_DMA3_NEXT_DESC_PTR() bfin_readPTR(DMA3_NEXT_DESC_PTR)
565#define bfin_write_DMA3_NEXT_DESC_PTR(val) bfin_writePTR(DMA3_NEXT_DESC_PTR, val)
566#define bfin_read_DMA3_START_ADDR() bfin_readPTR(DMA3_START_ADDR)
567#define bfin_write_DMA3_START_ADDR(val) bfin_writePTR(DMA3_START_ADDR, val)
568#define bfin_read_DMA3_CONFIG() bfin_read16(DMA3_CONFIG)
569#define bfin_write_DMA3_CONFIG(val) bfin_write16(DMA3_CONFIG, val)
570#define bfin_read_DMA3_X_COUNT() bfin_read16(DMA3_X_COUNT)
571#define bfin_write_DMA3_X_COUNT(val) bfin_write16(DMA3_X_COUNT, val)
572#define bfin_read_DMA3_X_MODIFY() bfin_read16(DMA3_X_MODIFY)
573#define bfin_write_DMA3_X_MODIFY(val) bfin_write16(DMA3_X_MODIFY, val)
574#define bfin_read_DMA3_Y_COUNT() bfin_read16(DMA3_Y_COUNT)
575#define bfin_write_DMA3_Y_COUNT(val) bfin_write16(DMA3_Y_COUNT, val)
576#define bfin_read_DMA3_Y_MODIFY() bfin_read16(DMA3_Y_MODIFY)
577#define bfin_write_DMA3_Y_MODIFY(val) bfin_write16(DMA3_Y_MODIFY, val)
578#define bfin_read_DMA3_CURR_DESC_PTR() bfin_readPTR(DMA3_CURR_DESC_PTR)
579#define bfin_write_DMA3_CURR_DESC_PTR(val) bfin_writePTR(DMA3_CURR_DESC_PTR, val)
580#define bfin_read_DMA3_CURR_ADDR() bfin_readPTR(DMA3_CURR_ADDR)
581#define bfin_write_DMA3_CURR_ADDR(val) bfin_writePTR(DMA3_CURR_ADDR, val)
582#define bfin_read_DMA3_IRQ_STATUS() bfin_read16(DMA3_IRQ_STATUS)
583#define bfin_write_DMA3_IRQ_STATUS(val) bfin_write16(DMA3_IRQ_STATUS, val)
584#define bfin_read_DMA3_PERIPHERAL_MAP() bfin_read16(DMA3_PERIPHERAL_MAP)
585#define bfin_write_DMA3_PERIPHERAL_MAP(val) bfin_write16(DMA3_PERIPHERAL_MAP, val)
586#define bfin_read_DMA3_CURR_X_COUNT() bfin_read16(DMA3_CURR_X_COUNT)
587#define bfin_write_DMA3_CURR_X_COUNT(val) bfin_write16(DMA3_CURR_X_COUNT, val)
588#define bfin_read_DMA3_CURR_Y_COUNT() bfin_read16(DMA3_CURR_Y_COUNT)
589#define bfin_write_DMA3_CURR_Y_COUNT(val) bfin_write16(DMA3_CURR_Y_COUNT, val)
590#define bfin_read_DMA4_NEXT_DESC_PTR() bfin_readPTR(DMA4_NEXT_DESC_PTR)
591#define bfin_write_DMA4_NEXT_DESC_PTR(val) bfin_writePTR(DMA4_NEXT_DESC_PTR, val)
592#define bfin_read_DMA4_START_ADDR() bfin_readPTR(DMA4_START_ADDR)
593#define bfin_write_DMA4_START_ADDR(val) bfin_writePTR(DMA4_START_ADDR, val)
594#define bfin_read_DMA4_CONFIG() bfin_read16(DMA4_CONFIG)
595#define bfin_write_DMA4_CONFIG(val) bfin_write16(DMA4_CONFIG, val)
596#define bfin_read_DMA4_X_COUNT() bfin_read16(DMA4_X_COUNT)
597#define bfin_write_DMA4_X_COUNT(val) bfin_write16(DMA4_X_COUNT, val)
598#define bfin_read_DMA4_X_MODIFY() bfin_read16(DMA4_X_MODIFY)
599#define bfin_write_DMA4_X_MODIFY(val) bfin_write16(DMA4_X_MODIFY, val)
600#define bfin_read_DMA4_Y_COUNT() bfin_read16(DMA4_Y_COUNT)
601#define bfin_write_DMA4_Y_COUNT(val) bfin_write16(DMA4_Y_COUNT, val)
602#define bfin_read_DMA4_Y_MODIFY() bfin_read16(DMA4_Y_MODIFY)
603#define bfin_write_DMA4_Y_MODIFY(val) bfin_write16(DMA4_Y_MODIFY, val)
604#define bfin_read_DMA4_CURR_DESC_PTR() bfin_readPTR(DMA4_CURR_DESC_PTR)
605#define bfin_write_DMA4_CURR_DESC_PTR(val) bfin_writePTR(DMA4_CURR_DESC_PTR, val)
606#define bfin_read_DMA4_CURR_ADDR() bfin_readPTR(DMA4_CURR_ADDR)
607#define bfin_write_DMA4_CURR_ADDR(val) bfin_writePTR(DMA4_CURR_ADDR, val)
608#define bfin_read_DMA4_IRQ_STATUS() bfin_read16(DMA4_IRQ_STATUS)
609#define bfin_write_DMA4_IRQ_STATUS(val) bfin_write16(DMA4_IRQ_STATUS, val)
610#define bfin_read_DMA4_PERIPHERAL_MAP() bfin_read16(DMA4_PERIPHERAL_MAP)
611#define bfin_write_DMA4_PERIPHERAL_MAP(val) bfin_write16(DMA4_PERIPHERAL_MAP, val)
612#define bfin_read_DMA4_CURR_X_COUNT() bfin_read16(DMA4_CURR_X_COUNT)
613#define bfin_write_DMA4_CURR_X_COUNT(val) bfin_write16(DMA4_CURR_X_COUNT, val)
614#define bfin_read_DMA4_CURR_Y_COUNT() bfin_read16(DMA4_CURR_Y_COUNT)
615#define bfin_write_DMA4_CURR_Y_COUNT(val) bfin_write16(DMA4_CURR_Y_COUNT, val)
616#define bfin_read_DMA5_NEXT_DESC_PTR() bfin_readPTR(DMA5_NEXT_DESC_PTR)
617#define bfin_write_DMA5_NEXT_DESC_PTR(val) bfin_writePTR(DMA5_NEXT_DESC_PTR, val)
618#define bfin_read_DMA5_START_ADDR() bfin_readPTR(DMA5_START_ADDR)
619#define bfin_write_DMA5_START_ADDR(val) bfin_writePTR(DMA5_START_ADDR, val)
620#define bfin_read_DMA5_CONFIG() bfin_read16(DMA5_CONFIG)
621#define bfin_write_DMA5_CONFIG(val) bfin_write16(DMA5_CONFIG, val)
622#define bfin_read_DMA5_X_COUNT() bfin_read16(DMA5_X_COUNT)
623#define bfin_write_DMA5_X_COUNT(val) bfin_write16(DMA5_X_COUNT, val)
624#define bfin_read_DMA5_X_MODIFY() bfin_read16(DMA5_X_MODIFY)
625#define bfin_write_DMA5_X_MODIFY(val) bfin_write16(DMA5_X_MODIFY, val)
626#define bfin_read_DMA5_Y_COUNT() bfin_read16(DMA5_Y_COUNT)
627#define bfin_write_DMA5_Y_COUNT(val) bfin_write16(DMA5_Y_COUNT, val)
628#define bfin_read_DMA5_Y_MODIFY() bfin_read16(DMA5_Y_MODIFY)
629#define bfin_write_DMA5_Y_MODIFY(val) bfin_write16(DMA5_Y_MODIFY, val)
630#define bfin_read_DMA5_CURR_DESC_PTR() bfin_readPTR(DMA5_CURR_DESC_PTR)
631#define bfin_write_DMA5_CURR_DESC_PTR(val) bfin_writePTR(DMA5_CURR_DESC_PTR, val)
632#define bfin_read_DMA5_CURR_ADDR() bfin_readPTR(DMA5_CURR_ADDR)
633#define bfin_write_DMA5_CURR_ADDR(val) bfin_writePTR(DMA5_CURR_ADDR, val)
634#define bfin_read_DMA5_IRQ_STATUS() bfin_read16(DMA5_IRQ_STATUS)
635#define bfin_write_DMA5_IRQ_STATUS(val) bfin_write16(DMA5_IRQ_STATUS, val)
636#define bfin_read_DMA5_PERIPHERAL_MAP() bfin_read16(DMA5_PERIPHERAL_MAP)
637#define bfin_write_DMA5_PERIPHERAL_MAP(val) bfin_write16(DMA5_PERIPHERAL_MAP, val)
638#define bfin_read_DMA5_CURR_X_COUNT() bfin_read16(DMA5_CURR_X_COUNT)
639#define bfin_write_DMA5_CURR_X_COUNT(val) bfin_write16(DMA5_CURR_X_COUNT, val)
640#define bfin_read_DMA5_CURR_Y_COUNT() bfin_read16(DMA5_CURR_Y_COUNT)
641#define bfin_write_DMA5_CURR_Y_COUNT(val) bfin_write16(DMA5_CURR_Y_COUNT, val)
642#define bfin_read_DMA6_NEXT_DESC_PTR() bfin_readPTR(DMA6_NEXT_DESC_PTR)
643#define bfin_write_DMA6_NEXT_DESC_PTR(val) bfin_writePTR(DMA6_NEXT_DESC_PTR, val)
644#define bfin_read_DMA6_START_ADDR() bfin_readPTR(DMA6_START_ADDR)
645#define bfin_write_DMA6_START_ADDR(val) bfin_writePTR(DMA6_START_ADDR, val)
646#define bfin_read_DMA6_CONFIG() bfin_read16(DMA6_CONFIG)
647#define bfin_write_DMA6_CONFIG(val) bfin_write16(DMA6_CONFIG, val)
648#define bfin_read_DMA6_X_COUNT() bfin_read16(DMA6_X_COUNT)
649#define bfin_write_DMA6_X_COUNT(val) bfin_write16(DMA6_X_COUNT, val)
650#define bfin_read_DMA6_X_MODIFY() bfin_read16(DMA6_X_MODIFY)
651#define bfin_write_DMA6_X_MODIFY(val) bfin_write16(DMA6_X_MODIFY, val)
652#define bfin_read_DMA6_Y_COUNT() bfin_read16(DMA6_Y_COUNT)
653#define bfin_write_DMA6_Y_COUNT(val) bfin_write16(DMA6_Y_COUNT, val)
654#define bfin_read_DMA6_Y_MODIFY() bfin_read16(DMA6_Y_MODIFY)
655#define bfin_write_DMA6_Y_MODIFY(val) bfin_write16(DMA6_Y_MODIFY, val)
656#define bfin_read_DMA6_CURR_DESC_PTR() bfin_readPTR(DMA6_CURR_DESC_PTR)
657#define bfin_write_DMA6_CURR_DESC_PTR(val) bfin_writePTR(DMA6_CURR_DESC_PTR, val)
658#define bfin_read_DMA6_CURR_ADDR() bfin_readPTR(DMA6_CURR_ADDR)
659#define bfin_write_DMA6_CURR_ADDR(val) bfin_writePTR(DMA6_CURR_ADDR, val)
660#define bfin_read_DMA6_IRQ_STATUS() bfin_read16(DMA6_IRQ_STATUS)
661#define bfin_write_DMA6_IRQ_STATUS(val) bfin_write16(DMA6_IRQ_STATUS, val)
662#define bfin_read_DMA6_PERIPHERAL_MAP() bfin_read16(DMA6_PERIPHERAL_MAP)
663#define bfin_write_DMA6_PERIPHERAL_MAP(val) bfin_write16(DMA6_PERIPHERAL_MAP, val)
664#define bfin_read_DMA6_CURR_X_COUNT() bfin_read16(DMA6_CURR_X_COUNT)
665#define bfin_write_DMA6_CURR_X_COUNT(val) bfin_write16(DMA6_CURR_X_COUNT, val)
666#define bfin_read_DMA6_CURR_Y_COUNT() bfin_read16(DMA6_CURR_Y_COUNT)
667#define bfin_write_DMA6_CURR_Y_COUNT(val) bfin_write16(DMA6_CURR_Y_COUNT, val)
668#define bfin_read_DMA7_NEXT_DESC_PTR() bfin_readPTR(DMA7_NEXT_DESC_PTR)
669#define bfin_write_DMA7_NEXT_DESC_PTR(val) bfin_writePTR(DMA7_NEXT_DESC_PTR, val)
670#define bfin_read_DMA7_START_ADDR() bfin_readPTR(DMA7_START_ADDR)
671#define bfin_write_DMA7_START_ADDR(val) bfin_writePTR(DMA7_START_ADDR, val)
672#define bfin_read_DMA7_CONFIG() bfin_read16(DMA7_CONFIG)
673#define bfin_write_DMA7_CONFIG(val) bfin_write16(DMA7_CONFIG, val)
674#define bfin_read_DMA7_X_COUNT() bfin_read16(DMA7_X_COUNT)
675#define bfin_write_DMA7_X_COUNT(val) bfin_write16(DMA7_X_COUNT, val)
676#define bfin_read_DMA7_X_MODIFY() bfin_read16(DMA7_X_MODIFY)
677#define bfin_write_DMA7_X_MODIFY(val) bfin_write16(DMA7_X_MODIFY, val)
678#define bfin_read_DMA7_Y_COUNT() bfin_read16(DMA7_Y_COUNT)
679#define bfin_write_DMA7_Y_COUNT(val) bfin_write16(DMA7_Y_COUNT, val)
680#define bfin_read_DMA7_Y_MODIFY() bfin_read16(DMA7_Y_MODIFY)
681#define bfin_write_DMA7_Y_MODIFY(val) bfin_write16(DMA7_Y_MODIFY, val)
682#define bfin_read_DMA7_CURR_DESC_PTR() bfin_readPTR(DMA7_CURR_DESC_PTR)
683#define bfin_write_DMA7_CURR_DESC_PTR(val) bfin_writePTR(DMA7_CURR_DESC_PTR, val)
684#define bfin_read_DMA7_CURR_ADDR() bfin_readPTR(DMA7_CURR_ADDR)
685#define bfin_write_DMA7_CURR_ADDR(val) bfin_writePTR(DMA7_CURR_ADDR, val)
686#define bfin_read_DMA7_IRQ_STATUS() bfin_read16(DMA7_IRQ_STATUS)
687#define bfin_write_DMA7_IRQ_STATUS(val) bfin_write16(DMA7_IRQ_STATUS, val)
688#define bfin_read_DMA7_PERIPHERAL_MAP() bfin_read16(DMA7_PERIPHERAL_MAP)
689#define bfin_write_DMA7_PERIPHERAL_MAP(val) bfin_write16(DMA7_PERIPHERAL_MAP, val)
690#define bfin_read_DMA7_CURR_X_COUNT() bfin_read16(DMA7_CURR_X_COUNT)
691#define bfin_write_DMA7_CURR_X_COUNT(val) bfin_write16(DMA7_CURR_X_COUNT, val)
692#define bfin_read_DMA7_CURR_Y_COUNT() bfin_read16(DMA7_CURR_Y_COUNT)
693#define bfin_write_DMA7_CURR_Y_COUNT(val) bfin_write16(DMA7_CURR_Y_COUNT, val)
Mike Frysinger9346dba2010-10-25 08:04:44 +0000694#define bfin_read_DMAC1_TC_PER() bfin_read16(DMAC1_TC_PER)
695#define bfin_write_DMAC1_TC_PER(val) bfin_write16(DMAC1_TC_PER, val)
696#define bfin_read_DMAC1_TC_CNT() bfin_read16(DMAC1_TC_CNT)
697#define bfin_write_DMAC1_TC_CNT(val) bfin_write16(DMAC1_TC_CNT, val)
Michael Hennerichdc26aec2008-11-18 17:48:22 +0800698#define bfin_read_DMA8_NEXT_DESC_PTR() bfin_readPTR(DMA8_NEXT_DESC_PTR)
699#define bfin_write_DMA8_NEXT_DESC_PTR(val) bfin_writePTR(DMA8_NEXT_DESC_PTR, val)
700#define bfin_read_DMA8_START_ADDR() bfin_readPTR(DMA8_START_ADDR)
701#define bfin_write_DMA8_START_ADDR(val) bfin_writePTR(DMA8_START_ADDR, val)
702#define bfin_read_DMA8_CONFIG() bfin_read16(DMA8_CONFIG)
703#define bfin_write_DMA8_CONFIG(val) bfin_write16(DMA8_CONFIG, val)
704#define bfin_read_DMA8_X_COUNT() bfin_read16(DMA8_X_COUNT)
705#define bfin_write_DMA8_X_COUNT(val) bfin_write16(DMA8_X_COUNT, val)
706#define bfin_read_DMA8_X_MODIFY() bfin_read16(DMA8_X_MODIFY)
707#define bfin_write_DMA8_X_MODIFY(val) bfin_write16(DMA8_X_MODIFY, val)
708#define bfin_read_DMA8_Y_COUNT() bfin_read16(DMA8_Y_COUNT)
709#define bfin_write_DMA8_Y_COUNT(val) bfin_write16(DMA8_Y_COUNT, val)
710#define bfin_read_DMA8_Y_MODIFY() bfin_read16(DMA8_Y_MODIFY)
711#define bfin_write_DMA8_Y_MODIFY(val) bfin_write16(DMA8_Y_MODIFY, val)
712#define bfin_read_DMA8_CURR_DESC_PTR() bfin_readPTR(DMA8_CURR_DESC_PTR)
713#define bfin_write_DMA8_CURR_DESC_PTR(val) bfin_writePTR(DMA8_CURR_DESC_PTR, val)
714#define bfin_read_DMA8_CURR_ADDR() bfin_readPTR(DMA8_CURR_ADDR)
715#define bfin_write_DMA8_CURR_ADDR(val) bfin_writePTR(DMA8_CURR_ADDR, val)
716#define bfin_read_DMA8_IRQ_STATUS() bfin_read16(DMA8_IRQ_STATUS)
717#define bfin_write_DMA8_IRQ_STATUS(val) bfin_write16(DMA8_IRQ_STATUS, val)
718#define bfin_read_DMA8_PERIPHERAL_MAP() bfin_read16(DMA8_PERIPHERAL_MAP)
719#define bfin_write_DMA8_PERIPHERAL_MAP(val) bfin_write16(DMA8_PERIPHERAL_MAP, val)
720#define bfin_read_DMA8_CURR_X_COUNT() bfin_read16(DMA8_CURR_X_COUNT)
721#define bfin_write_DMA8_CURR_X_COUNT(val) bfin_write16(DMA8_CURR_X_COUNT, val)
722#define bfin_read_DMA8_CURR_Y_COUNT() bfin_read16(DMA8_CURR_Y_COUNT)
723#define bfin_write_DMA8_CURR_Y_COUNT(val) bfin_write16(DMA8_CURR_Y_COUNT, val)
724#define bfin_read_DMA9_NEXT_DESC_PTR() bfin_readPTR(DMA9_NEXT_DESC_PTR)
725#define bfin_write_DMA9_NEXT_DESC_PTR(val) bfin_writePTR(DMA9_NEXT_DESC_PTR, val)
726#define bfin_read_DMA9_START_ADDR() bfin_readPTR(DMA9_START_ADDR)
727#define bfin_write_DMA9_START_ADDR(val) bfin_writePTR(DMA9_START_ADDR, val)
728#define bfin_read_DMA9_CONFIG() bfin_read16(DMA9_CONFIG)
729#define bfin_write_DMA9_CONFIG(val) bfin_write16(DMA9_CONFIG, val)
730#define bfin_read_DMA9_X_COUNT() bfin_read16(DMA9_X_COUNT)
731#define bfin_write_DMA9_X_COUNT(val) bfin_write16(DMA9_X_COUNT, val)
732#define bfin_read_DMA9_X_MODIFY() bfin_read16(DMA9_X_MODIFY)
733#define bfin_write_DMA9_X_MODIFY(val) bfin_write16(DMA9_X_MODIFY, val)
734#define bfin_read_DMA9_Y_COUNT() bfin_read16(DMA9_Y_COUNT)
735#define bfin_write_DMA9_Y_COUNT(val) bfin_write16(DMA9_Y_COUNT, val)
736#define bfin_read_DMA9_Y_MODIFY() bfin_read16(DMA9_Y_MODIFY)
737#define bfin_write_DMA9_Y_MODIFY(val) bfin_write16(DMA9_Y_MODIFY, val)
738#define bfin_read_DMA9_CURR_DESC_PTR() bfin_readPTR(DMA9_CURR_DESC_PTR)
739#define bfin_write_DMA9_CURR_DESC_PTR(val) bfin_writePTR(DMA9_CURR_DESC_PTR, val)
740#define bfin_read_DMA9_CURR_ADDR() bfin_readPTR(DMA9_CURR_ADDR)
741#define bfin_write_DMA9_CURR_ADDR(val) bfin_writePTR(DMA9_CURR_ADDR, val)
742#define bfin_read_DMA9_IRQ_STATUS() bfin_read16(DMA9_IRQ_STATUS)
743#define bfin_write_DMA9_IRQ_STATUS(val) bfin_write16(DMA9_IRQ_STATUS, val)
744#define bfin_read_DMA9_PERIPHERAL_MAP() bfin_read16(DMA9_PERIPHERAL_MAP)
745#define bfin_write_DMA9_PERIPHERAL_MAP(val) bfin_write16(DMA9_PERIPHERAL_MAP, val)
746#define bfin_read_DMA9_CURR_X_COUNT() bfin_read16(DMA9_CURR_X_COUNT)
747#define bfin_write_DMA9_CURR_X_COUNT(val) bfin_write16(DMA9_CURR_X_COUNT, val)
748#define bfin_read_DMA9_CURR_Y_COUNT() bfin_read16(DMA9_CURR_Y_COUNT)
749#define bfin_write_DMA9_CURR_Y_COUNT(val) bfin_write16(DMA9_CURR_Y_COUNT, val)
750#define bfin_read_DMA10_NEXT_DESC_PTR() bfin_readPTR(DMA10_NEXT_DESC_PTR)
751#define bfin_write_DMA10_NEXT_DESC_PTR(val) bfin_writePTR(DMA10_NEXT_DESC_PTR, val)
752#define bfin_read_DMA10_START_ADDR() bfin_readPTR(DMA10_START_ADDR)
753#define bfin_write_DMA10_START_ADDR(val) bfin_writePTR(DMA10_START_ADDR, val)
754#define bfin_read_DMA10_CONFIG() bfin_read16(DMA10_CONFIG)
755#define bfin_write_DMA10_CONFIG(val) bfin_write16(DMA10_CONFIG, val)
756#define bfin_read_DMA10_X_COUNT() bfin_read16(DMA10_X_COUNT)
757#define bfin_write_DMA10_X_COUNT(val) bfin_write16(DMA10_X_COUNT, val)
758#define bfin_read_DMA10_X_MODIFY() bfin_read16(DMA10_X_MODIFY)
759#define bfin_write_DMA10_X_MODIFY(val) bfin_write16(DMA10_X_MODIFY, val)
760#define bfin_read_DMA10_Y_COUNT() bfin_read16(DMA10_Y_COUNT)
761#define bfin_write_DMA10_Y_COUNT(val) bfin_write16(DMA10_Y_COUNT, val)
762#define bfin_read_DMA10_Y_MODIFY() bfin_read16(DMA10_Y_MODIFY)
763#define bfin_write_DMA10_Y_MODIFY(val) bfin_write16(DMA10_Y_MODIFY, val)
764#define bfin_read_DMA10_CURR_DESC_PTR() bfin_readPTR(DMA10_CURR_DESC_PTR)
765#define bfin_write_DMA10_CURR_DESC_PTR(val) bfin_writePTR(DMA10_CURR_DESC_PTR, val)
766#define bfin_read_DMA10_CURR_ADDR() bfin_readPTR(DMA10_CURR_ADDR)
767#define bfin_write_DMA10_CURR_ADDR(val) bfin_writePTR(DMA10_CURR_ADDR, val)
768#define bfin_read_DMA10_IRQ_STATUS() bfin_read16(DMA10_IRQ_STATUS)
769#define bfin_write_DMA10_IRQ_STATUS(val) bfin_write16(DMA10_IRQ_STATUS, val)
770#define bfin_read_DMA10_PERIPHERAL_MAP() bfin_read16(DMA10_PERIPHERAL_MAP)
771#define bfin_write_DMA10_PERIPHERAL_MAP(val) bfin_write16(DMA10_PERIPHERAL_MAP, val)
772#define bfin_read_DMA10_CURR_X_COUNT() bfin_read16(DMA10_CURR_X_COUNT)
773#define bfin_write_DMA10_CURR_X_COUNT(val) bfin_write16(DMA10_CURR_X_COUNT, val)
774#define bfin_read_DMA10_CURR_Y_COUNT() bfin_read16(DMA10_CURR_Y_COUNT)
775#define bfin_write_DMA10_CURR_Y_COUNT(val) bfin_write16(DMA10_CURR_Y_COUNT, val)
776#define bfin_read_DMA11_NEXT_DESC_PTR() bfin_readPTR(DMA11_NEXT_DESC_PTR)
777#define bfin_write_DMA11_NEXT_DESC_PTR(val) bfin_writePTR(DMA11_NEXT_DESC_PTR, val)
778#define bfin_read_DMA11_START_ADDR() bfin_readPTR(DMA11_START_ADDR)
779#define bfin_write_DMA11_START_ADDR(val) bfin_writePTR(DMA11_START_ADDR, val)
780#define bfin_read_DMA11_CONFIG() bfin_read16(DMA11_CONFIG)
781#define bfin_write_DMA11_CONFIG(val) bfin_write16(DMA11_CONFIG, val)
782#define bfin_read_DMA11_X_COUNT() bfin_read16(DMA11_X_COUNT)
783#define bfin_write_DMA11_X_COUNT(val) bfin_write16(DMA11_X_COUNT, val)
784#define bfin_read_DMA11_X_MODIFY() bfin_read16(DMA11_X_MODIFY)
785#define bfin_write_DMA11_X_MODIFY(val) bfin_write16(DMA11_X_MODIFY, val)
786#define bfin_read_DMA11_Y_COUNT() bfin_read16(DMA11_Y_COUNT)
787#define bfin_write_DMA11_Y_COUNT(val) bfin_write16(DMA11_Y_COUNT, val)
788#define bfin_read_DMA11_Y_MODIFY() bfin_read16(DMA11_Y_MODIFY)
789#define bfin_write_DMA11_Y_MODIFY(val) bfin_write16(DMA11_Y_MODIFY, val)
790#define bfin_read_DMA11_CURR_DESC_PTR() bfin_readPTR(DMA11_CURR_DESC_PTR)
791#define bfin_write_DMA11_CURR_DESC_PTR(val) bfin_writePTR(DMA11_CURR_DESC_PTR, val)
792#define bfin_read_DMA11_CURR_ADDR() bfin_readPTR(DMA11_CURR_ADDR)
793#define bfin_write_DMA11_CURR_ADDR(val) bfin_writePTR(DMA11_CURR_ADDR, val)
794#define bfin_read_DMA11_IRQ_STATUS() bfin_read16(DMA11_IRQ_STATUS)
795#define bfin_write_DMA11_IRQ_STATUS(val) bfin_write16(DMA11_IRQ_STATUS, val)
796#define bfin_read_DMA11_PERIPHERAL_MAP() bfin_read16(DMA11_PERIPHERAL_MAP)
797#define bfin_write_DMA11_PERIPHERAL_MAP(val) bfin_write16(DMA11_PERIPHERAL_MAP, val)
798#define bfin_read_DMA11_CURR_X_COUNT() bfin_read16(DMA11_CURR_X_COUNT)
799#define bfin_write_DMA11_CURR_X_COUNT(val) bfin_write16(DMA11_CURR_X_COUNT, val)
800#define bfin_read_DMA11_CURR_Y_COUNT() bfin_read16(DMA11_CURR_Y_COUNT)
801#define bfin_write_DMA11_CURR_Y_COUNT(val) bfin_write16(DMA11_CURR_Y_COUNT, val)
802#define bfin_read_DMA12_NEXT_DESC_PTR() bfin_readPTR(DMA12_NEXT_DESC_PTR)
803#define bfin_write_DMA12_NEXT_DESC_PTR(val) bfin_writePTR(DMA12_NEXT_DESC_PTR, val)
804#define bfin_read_DMA12_START_ADDR() bfin_readPTR(DMA12_START_ADDR)
805#define bfin_write_DMA12_START_ADDR(val) bfin_writePTR(DMA12_START_ADDR, val)
806#define bfin_read_DMA12_CONFIG() bfin_read16(DMA12_CONFIG)
807#define bfin_write_DMA12_CONFIG(val) bfin_write16(DMA12_CONFIG, val)
808#define bfin_read_DMA12_X_COUNT() bfin_read16(DMA12_X_COUNT)
809#define bfin_write_DMA12_X_COUNT(val) bfin_write16(DMA12_X_COUNT, val)
810#define bfin_read_DMA12_X_MODIFY() bfin_read16(DMA12_X_MODIFY)
811#define bfin_write_DMA12_X_MODIFY(val) bfin_write16(DMA12_X_MODIFY, val)
812#define bfin_read_DMA12_Y_COUNT() bfin_read16(DMA12_Y_COUNT)
813#define bfin_write_DMA12_Y_COUNT(val) bfin_write16(DMA12_Y_COUNT, val)
814#define bfin_read_DMA12_Y_MODIFY() bfin_read16(DMA12_Y_MODIFY)
815#define bfin_write_DMA12_Y_MODIFY(val) bfin_write16(DMA12_Y_MODIFY, val)
816#define bfin_read_DMA12_CURR_DESC_PTR() bfin_readPTR(DMA12_CURR_DESC_PTR)
817#define bfin_write_DMA12_CURR_DESC_PTR(val) bfin_writePTR(DMA12_CURR_DESC_PTR, val)
818#define bfin_read_DMA12_CURR_ADDR() bfin_readPTR(DMA12_CURR_ADDR)
819#define bfin_write_DMA12_CURR_ADDR(val) bfin_writePTR(DMA12_CURR_ADDR, val)
820#define bfin_read_DMA12_IRQ_STATUS() bfin_read16(DMA12_IRQ_STATUS)
821#define bfin_write_DMA12_IRQ_STATUS(val) bfin_write16(DMA12_IRQ_STATUS, val)
822#define bfin_read_DMA12_PERIPHERAL_MAP() bfin_read16(DMA12_PERIPHERAL_MAP)
823#define bfin_write_DMA12_PERIPHERAL_MAP(val) bfin_write16(DMA12_PERIPHERAL_MAP, val)
824#define bfin_read_DMA12_CURR_X_COUNT() bfin_read16(DMA12_CURR_X_COUNT)
825#define bfin_write_DMA12_CURR_X_COUNT(val) bfin_write16(DMA12_CURR_X_COUNT, val)
826#define bfin_read_DMA12_CURR_Y_COUNT() bfin_read16(DMA12_CURR_Y_COUNT)
827#define bfin_write_DMA12_CURR_Y_COUNT(val) bfin_write16(DMA12_CURR_Y_COUNT, val)
828#define bfin_read_DMA13_NEXT_DESC_PTR() bfin_readPTR(DMA13_NEXT_DESC_PTR)
829#define bfin_write_DMA13_NEXT_DESC_PTR(val) bfin_writePTR(DMA13_NEXT_DESC_PTR, val)
830#define bfin_read_DMA13_START_ADDR() bfin_readPTR(DMA13_START_ADDR)
831#define bfin_write_DMA13_START_ADDR(val) bfin_writePTR(DMA13_START_ADDR, val)
832#define bfin_read_DMA13_CONFIG() bfin_read16(DMA13_CONFIG)
833#define bfin_write_DMA13_CONFIG(val) bfin_write16(DMA13_CONFIG, val)
834#define bfin_read_DMA13_X_COUNT() bfin_read16(DMA13_X_COUNT)
835#define bfin_write_DMA13_X_COUNT(val) bfin_write16(DMA13_X_COUNT, val)
836#define bfin_read_DMA13_X_MODIFY() bfin_read16(DMA13_X_MODIFY)
837#define bfin_write_DMA13_X_MODIFY(val) bfin_write16(DMA13_X_MODIFY, val)
838#define bfin_read_DMA13_Y_COUNT() bfin_read16(DMA13_Y_COUNT)
839#define bfin_write_DMA13_Y_COUNT(val) bfin_write16(DMA13_Y_COUNT, val)
840#define bfin_read_DMA13_Y_MODIFY() bfin_read16(DMA13_Y_MODIFY)
841#define bfin_write_DMA13_Y_MODIFY(val) bfin_write16(DMA13_Y_MODIFY, val)
842#define bfin_read_DMA13_CURR_DESC_PTR() bfin_readPTR(DMA13_CURR_DESC_PTR)
843#define bfin_write_DMA13_CURR_DESC_PTR(val) bfin_writePTR(DMA13_CURR_DESC_PTR, val)
844#define bfin_read_DMA13_CURR_ADDR() bfin_readPTR(DMA13_CURR_ADDR)
845#define bfin_write_DMA13_CURR_ADDR(val) bfin_writePTR(DMA13_CURR_ADDR, val)
846#define bfin_read_DMA13_IRQ_STATUS() bfin_read16(DMA13_IRQ_STATUS)
847#define bfin_write_DMA13_IRQ_STATUS(val) bfin_write16(DMA13_IRQ_STATUS, val)
848#define bfin_read_DMA13_PERIPHERAL_MAP() bfin_read16(DMA13_PERIPHERAL_MAP)
849#define bfin_write_DMA13_PERIPHERAL_MAP(val) bfin_write16(DMA13_PERIPHERAL_MAP, val)
850#define bfin_read_DMA13_CURR_X_COUNT() bfin_read16(DMA13_CURR_X_COUNT)
851#define bfin_write_DMA13_CURR_X_COUNT(val) bfin_write16(DMA13_CURR_X_COUNT, val)
852#define bfin_read_DMA13_CURR_Y_COUNT() bfin_read16(DMA13_CURR_Y_COUNT)
853#define bfin_write_DMA13_CURR_Y_COUNT(val) bfin_write16(DMA13_CURR_Y_COUNT, val)
854#define bfin_read_DMA14_NEXT_DESC_PTR() bfin_readPTR(DMA14_NEXT_DESC_PTR)
855#define bfin_write_DMA14_NEXT_DESC_PTR(val) bfin_writePTR(DMA14_NEXT_DESC_PTR, val)
856#define bfin_read_DMA14_START_ADDR() bfin_readPTR(DMA14_START_ADDR)
857#define bfin_write_DMA14_START_ADDR(val) bfin_writePTR(DMA14_START_ADDR, val)
858#define bfin_read_DMA14_CONFIG() bfin_read16(DMA14_CONFIG)
859#define bfin_write_DMA14_CONFIG(val) bfin_write16(DMA14_CONFIG, val)
860#define bfin_read_DMA14_X_COUNT() bfin_read16(DMA14_X_COUNT)
861#define bfin_write_DMA14_X_COUNT(val) bfin_write16(DMA14_X_COUNT, val)
862#define bfin_read_DMA14_X_MODIFY() bfin_read16(DMA14_X_MODIFY)
863#define bfin_write_DMA14_X_MODIFY(val) bfin_write16(DMA14_X_MODIFY, val)
864#define bfin_read_DMA14_Y_COUNT() bfin_read16(DMA14_Y_COUNT)
865#define bfin_write_DMA14_Y_COUNT(val) bfin_write16(DMA14_Y_COUNT, val)
866#define bfin_read_DMA14_Y_MODIFY() bfin_read16(DMA14_Y_MODIFY)
867#define bfin_write_DMA14_Y_MODIFY(val) bfin_write16(DMA14_Y_MODIFY, val)
868#define bfin_read_DMA14_CURR_DESC_PTR() bfin_readPTR(DMA14_CURR_DESC_PTR)
869#define bfin_write_DMA14_CURR_DESC_PTR(val) bfin_writePTR(DMA14_CURR_DESC_PTR, val)
870#define bfin_read_DMA14_CURR_ADDR() bfin_readPTR(DMA14_CURR_ADDR)
871#define bfin_write_DMA14_CURR_ADDR(val) bfin_writePTR(DMA14_CURR_ADDR, val)
872#define bfin_read_DMA14_IRQ_STATUS() bfin_read16(DMA14_IRQ_STATUS)
873#define bfin_write_DMA14_IRQ_STATUS(val) bfin_write16(DMA14_IRQ_STATUS, val)
874#define bfin_read_DMA14_PERIPHERAL_MAP() bfin_read16(DMA14_PERIPHERAL_MAP)
875#define bfin_write_DMA14_PERIPHERAL_MAP(val) bfin_write16(DMA14_PERIPHERAL_MAP, val)
876#define bfin_read_DMA14_CURR_X_COUNT() bfin_read16(DMA14_CURR_X_COUNT)
877#define bfin_write_DMA14_CURR_X_COUNT(val) bfin_write16(DMA14_CURR_X_COUNT, val)
878#define bfin_read_DMA14_CURR_Y_COUNT() bfin_read16(DMA14_CURR_Y_COUNT)
879#define bfin_write_DMA14_CURR_Y_COUNT(val) bfin_write16(DMA14_CURR_Y_COUNT, val)
880#define bfin_read_DMA15_NEXT_DESC_PTR() bfin_readPTR(DMA15_NEXT_DESC_PTR)
881#define bfin_write_DMA15_NEXT_DESC_PTR(val) bfin_writePTR(DMA15_NEXT_DESC_PTR, val)
882#define bfin_read_DMA15_START_ADDR() bfin_readPTR(DMA15_START_ADDR)
883#define bfin_write_DMA15_START_ADDR(val) bfin_writePTR(DMA15_START_ADDR, val)
884#define bfin_read_DMA15_CONFIG() bfin_read16(DMA15_CONFIG)
885#define bfin_write_DMA15_CONFIG(val) bfin_write16(DMA15_CONFIG, val)
886#define bfin_read_DMA15_X_COUNT() bfin_read16(DMA15_X_COUNT)
887#define bfin_write_DMA15_X_COUNT(val) bfin_write16(DMA15_X_COUNT, val)
888#define bfin_read_DMA15_X_MODIFY() bfin_read16(DMA15_X_MODIFY)
889#define bfin_write_DMA15_X_MODIFY(val) bfin_write16(DMA15_X_MODIFY, val)
890#define bfin_read_DMA15_Y_COUNT() bfin_read16(DMA15_Y_COUNT)
891#define bfin_write_DMA15_Y_COUNT(val) bfin_write16(DMA15_Y_COUNT, val)
892#define bfin_read_DMA15_Y_MODIFY() bfin_read16(DMA15_Y_MODIFY)
893#define bfin_write_DMA15_Y_MODIFY(val) bfin_write16(DMA15_Y_MODIFY, val)
894#define bfin_read_DMA15_CURR_DESC_PTR() bfin_readPTR(DMA15_CURR_DESC_PTR)
895#define bfin_write_DMA15_CURR_DESC_PTR(val) bfin_writePTR(DMA15_CURR_DESC_PTR, val)
896#define bfin_read_DMA15_CURR_ADDR() bfin_readPTR(DMA15_CURR_ADDR)
897#define bfin_write_DMA15_CURR_ADDR(val) bfin_writePTR(DMA15_CURR_ADDR, val)
898#define bfin_read_DMA15_IRQ_STATUS() bfin_read16(DMA15_IRQ_STATUS)
899#define bfin_write_DMA15_IRQ_STATUS(val) bfin_write16(DMA15_IRQ_STATUS, val)
900#define bfin_read_DMA15_PERIPHERAL_MAP() bfin_read16(DMA15_PERIPHERAL_MAP)
901#define bfin_write_DMA15_PERIPHERAL_MAP(val) bfin_write16(DMA15_PERIPHERAL_MAP, val)
902#define bfin_read_DMA15_CURR_X_COUNT() bfin_read16(DMA15_CURR_X_COUNT)
903#define bfin_write_DMA15_CURR_X_COUNT(val) bfin_write16(DMA15_CURR_X_COUNT, val)
904#define bfin_read_DMA15_CURR_Y_COUNT() bfin_read16(DMA15_CURR_Y_COUNT)
905#define bfin_write_DMA15_CURR_Y_COUNT(val) bfin_write16(DMA15_CURR_Y_COUNT, val)
906#define bfin_read_DMA16_NEXT_DESC_PTR() bfin_readPTR(DMA16_NEXT_DESC_PTR)
907#define bfin_write_DMA16_NEXT_DESC_PTR(val) bfin_writePTR(DMA16_NEXT_DESC_PTR, val)
908#define bfin_read_DMA16_START_ADDR() bfin_readPTR(DMA16_START_ADDR)
909#define bfin_write_DMA16_START_ADDR(val) bfin_writePTR(DMA16_START_ADDR, val)
910#define bfin_read_DMA16_CONFIG() bfin_read16(DMA16_CONFIG)
911#define bfin_write_DMA16_CONFIG(val) bfin_write16(DMA16_CONFIG, val)
912#define bfin_read_DMA16_X_COUNT() bfin_read16(DMA16_X_COUNT)
913#define bfin_write_DMA16_X_COUNT(val) bfin_write16(DMA16_X_COUNT, val)
914#define bfin_read_DMA16_X_MODIFY() bfin_read16(DMA16_X_MODIFY)
915#define bfin_write_DMA16_X_MODIFY(val) bfin_write16(DMA16_X_MODIFY, val)
916#define bfin_read_DMA16_Y_COUNT() bfin_read16(DMA16_Y_COUNT)
917#define bfin_write_DMA16_Y_COUNT(val) bfin_write16(DMA16_Y_COUNT, val)
918#define bfin_read_DMA16_Y_MODIFY() bfin_read16(DMA16_Y_MODIFY)
919#define bfin_write_DMA16_Y_MODIFY(val) bfin_write16(DMA16_Y_MODIFY, val)
920#define bfin_read_DMA16_CURR_DESC_PTR() bfin_readPTR(DMA16_CURR_DESC_PTR)
921#define bfin_write_DMA16_CURR_DESC_PTR(val) bfin_writePTR(DMA16_CURR_DESC_PTR, val)
922#define bfin_read_DMA16_CURR_ADDR() bfin_readPTR(DMA16_CURR_ADDR)
923#define bfin_write_DMA16_CURR_ADDR(val) bfin_writePTR(DMA16_CURR_ADDR, val)
924#define bfin_read_DMA16_IRQ_STATUS() bfin_read16(DMA16_IRQ_STATUS)
925#define bfin_write_DMA16_IRQ_STATUS(val) bfin_write16(DMA16_IRQ_STATUS, val)
926#define bfin_read_DMA16_PERIPHERAL_MAP() bfin_read16(DMA16_PERIPHERAL_MAP)
927#define bfin_write_DMA16_PERIPHERAL_MAP(val) bfin_write16(DMA16_PERIPHERAL_MAP, val)
928#define bfin_read_DMA16_CURR_X_COUNT() bfin_read16(DMA16_CURR_X_COUNT)
929#define bfin_write_DMA16_CURR_X_COUNT(val) bfin_write16(DMA16_CURR_X_COUNT, val)
930#define bfin_read_DMA16_CURR_Y_COUNT() bfin_read16(DMA16_CURR_Y_COUNT)
931#define bfin_write_DMA16_CURR_Y_COUNT(val) bfin_write16(DMA16_CURR_Y_COUNT, val)
932#define bfin_read_DMA17_NEXT_DESC_PTR() bfin_readPTR(DMA17_NEXT_DESC_PTR)
933#define bfin_write_DMA17_NEXT_DESC_PTR(val) bfin_writePTR(DMA17_NEXT_DESC_PTR, val)
934#define bfin_read_DMA17_START_ADDR() bfin_readPTR(DMA17_START_ADDR)
935#define bfin_write_DMA17_START_ADDR(val) bfin_writePTR(DMA17_START_ADDR, val)
936#define bfin_read_DMA17_CONFIG() bfin_read16(DMA17_CONFIG)
937#define bfin_write_DMA17_CONFIG(val) bfin_write16(DMA17_CONFIG, val)
938#define bfin_read_DMA17_X_COUNT() bfin_read16(DMA17_X_COUNT)
939#define bfin_write_DMA17_X_COUNT(val) bfin_write16(DMA17_X_COUNT, val)
940#define bfin_read_DMA17_X_MODIFY() bfin_read16(DMA17_X_MODIFY)
941#define bfin_write_DMA17_X_MODIFY(val) bfin_write16(DMA17_X_MODIFY, val)
942#define bfin_read_DMA17_Y_COUNT() bfin_read16(DMA17_Y_COUNT)
943#define bfin_write_DMA17_Y_COUNT(val) bfin_write16(DMA17_Y_COUNT, val)
944#define bfin_read_DMA17_Y_MODIFY() bfin_read16(DMA17_Y_MODIFY)
945#define bfin_write_DMA17_Y_MODIFY(val) bfin_write16(DMA17_Y_MODIFY, val)
946#define bfin_read_DMA17_CURR_DESC_PTR() bfin_readPTR(DMA17_CURR_DESC_PTR)
947#define bfin_write_DMA17_CURR_DESC_PTR(val) bfin_writePTR(DMA17_CURR_DESC_PTR, val)
948#define bfin_read_DMA17_CURR_ADDR() bfin_readPTR(DMA17_CURR_ADDR)
949#define bfin_write_DMA17_CURR_ADDR(val) bfin_writePTR(DMA17_CURR_ADDR, val)
950#define bfin_read_DMA17_IRQ_STATUS() bfin_read16(DMA17_IRQ_STATUS)
951#define bfin_write_DMA17_IRQ_STATUS(val) bfin_write16(DMA17_IRQ_STATUS, val)
952#define bfin_read_DMA17_PERIPHERAL_MAP() bfin_read16(DMA17_PERIPHERAL_MAP)
953#define bfin_write_DMA17_PERIPHERAL_MAP(val) bfin_write16(DMA17_PERIPHERAL_MAP, val)
954#define bfin_read_DMA17_CURR_X_COUNT() bfin_read16(DMA17_CURR_X_COUNT)
955#define bfin_write_DMA17_CURR_X_COUNT(val) bfin_write16(DMA17_CURR_X_COUNT, val)
956#define bfin_read_DMA17_CURR_Y_COUNT() bfin_read16(DMA17_CURR_Y_COUNT)
957#define bfin_write_DMA17_CURR_Y_COUNT(val) bfin_write16(DMA17_CURR_Y_COUNT, val)
958#define bfin_read_DMA18_NEXT_DESC_PTR() bfin_readPTR(DMA18_NEXT_DESC_PTR)
959#define bfin_write_DMA18_NEXT_DESC_PTR(val) bfin_writePTR(DMA18_NEXT_DESC_PTR, val)
960#define bfin_read_DMA18_START_ADDR() bfin_readPTR(DMA18_START_ADDR)
961#define bfin_write_DMA18_START_ADDR(val) bfin_writePTR(DMA18_START_ADDR, val)
962#define bfin_read_DMA18_CONFIG() bfin_read16(DMA18_CONFIG)
963#define bfin_write_DMA18_CONFIG(val) bfin_write16(DMA18_CONFIG, val)
964#define bfin_read_DMA18_X_COUNT() bfin_read16(DMA18_X_COUNT)
965#define bfin_write_DMA18_X_COUNT(val) bfin_write16(DMA18_X_COUNT, val)
966#define bfin_read_DMA18_X_MODIFY() bfin_read16(DMA18_X_MODIFY)
967#define bfin_write_DMA18_X_MODIFY(val) bfin_write16(DMA18_X_MODIFY, val)
968#define bfin_read_DMA18_Y_COUNT() bfin_read16(DMA18_Y_COUNT)
969#define bfin_write_DMA18_Y_COUNT(val) bfin_write16(DMA18_Y_COUNT, val)
970#define bfin_read_DMA18_Y_MODIFY() bfin_read16(DMA18_Y_MODIFY)
971#define bfin_write_DMA18_Y_MODIFY(val) bfin_write16(DMA18_Y_MODIFY, val)
972#define bfin_read_DMA18_CURR_DESC_PTR() bfin_readPTR(DMA18_CURR_DESC_PTR)
973#define bfin_write_DMA18_CURR_DESC_PTR(val) bfin_writePTR(DMA18_CURR_DESC_PTR, val)
974#define bfin_read_DMA18_CURR_ADDR() bfin_readPTR(DMA18_CURR_ADDR)
975#define bfin_write_DMA18_CURR_ADDR(val) bfin_writePTR(DMA18_CURR_ADDR, val)
976#define bfin_read_DMA18_IRQ_STATUS() bfin_read16(DMA18_IRQ_STATUS)
977#define bfin_write_DMA18_IRQ_STATUS(val) bfin_write16(DMA18_IRQ_STATUS, val)
978#define bfin_read_DMA18_PERIPHERAL_MAP() bfin_read16(DMA18_PERIPHERAL_MAP)
979#define bfin_write_DMA18_PERIPHERAL_MAP(val) bfin_write16(DMA18_PERIPHERAL_MAP, val)
980#define bfin_read_DMA18_CURR_X_COUNT() bfin_read16(DMA18_CURR_X_COUNT)
981#define bfin_write_DMA18_CURR_X_COUNT(val) bfin_write16(DMA18_CURR_X_COUNT, val)
982#define bfin_read_DMA18_CURR_Y_COUNT() bfin_read16(DMA18_CURR_Y_COUNT)
983#define bfin_write_DMA18_CURR_Y_COUNT(val) bfin_write16(DMA18_CURR_Y_COUNT, val)
984#define bfin_read_DMA19_NEXT_DESC_PTR() bfin_readPTR(DMA19_NEXT_DESC_PTR)
985#define bfin_write_DMA19_NEXT_DESC_PTR(val) bfin_writePTR(DMA19_NEXT_DESC_PTR, val)
986#define bfin_read_DMA19_START_ADDR() bfin_readPTR(DMA19_START_ADDR)
987#define bfin_write_DMA19_START_ADDR(val) bfin_writePTR(DMA19_START_ADDR, val)
988#define bfin_read_DMA19_CONFIG() bfin_read16(DMA19_CONFIG)
989#define bfin_write_DMA19_CONFIG(val) bfin_write16(DMA19_CONFIG, val)
990#define bfin_read_DMA19_X_COUNT() bfin_read16(DMA19_X_COUNT)
991#define bfin_write_DMA19_X_COUNT(val) bfin_write16(DMA19_X_COUNT, val)
992#define bfin_read_DMA19_X_MODIFY() bfin_read16(DMA19_X_MODIFY)
993#define bfin_write_DMA19_X_MODIFY(val) bfin_write16(DMA19_X_MODIFY, val)
994#define bfin_read_DMA19_Y_COUNT() bfin_read16(DMA19_Y_COUNT)
995#define bfin_write_DMA19_Y_COUNT(val) bfin_write16(DMA19_Y_COUNT, val)
996#define bfin_read_DMA19_Y_MODIFY() bfin_read16(DMA19_Y_MODIFY)
997#define bfin_write_DMA19_Y_MODIFY(val) bfin_write16(DMA19_Y_MODIFY, val)
998#define bfin_read_DMA19_CURR_DESC_PTR() bfin_readPTR(DMA19_CURR_DESC_PTR)
999#define bfin_write_DMA19_CURR_DESC_PTR(val) bfin_writePTR(DMA19_CURR_DESC_PTR, val)
1000#define bfin_read_DMA19_CURR_ADDR() bfin_readPTR(DMA19_CURR_ADDR)
1001#define bfin_write_DMA19_CURR_ADDR(val) bfin_writePTR(DMA19_CURR_ADDR, val)
1002#define bfin_read_DMA19_IRQ_STATUS() bfin_read16(DMA19_IRQ_STATUS)
1003#define bfin_write_DMA19_IRQ_STATUS(val) bfin_write16(DMA19_IRQ_STATUS, val)
1004#define bfin_read_DMA19_PERIPHERAL_MAP() bfin_read16(DMA19_PERIPHERAL_MAP)
1005#define bfin_write_DMA19_PERIPHERAL_MAP(val) bfin_write16(DMA19_PERIPHERAL_MAP, val)
1006#define bfin_read_DMA19_CURR_X_COUNT() bfin_read16(DMA19_CURR_X_COUNT)
1007#define bfin_write_DMA19_CURR_X_COUNT(val) bfin_write16(DMA19_CURR_X_COUNT, val)
1008#define bfin_read_DMA19_CURR_Y_COUNT() bfin_read16(DMA19_CURR_Y_COUNT)
1009#define bfin_write_DMA19_CURR_Y_COUNT(val) bfin_write16(DMA19_CURR_Y_COUNT, val)
Mike Frysinger9346dba2010-10-25 08:04:44 +00001010#define bfin_read_MDMA_D0_NEXT_DESC_PTR() bfin_readPTR(MDMA_D0_NEXT_DESC_PTR)
1011#define bfin_write_MDMA_D0_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_D0_NEXT_DESC_PTR, val)
1012#define bfin_read_MDMA_D0_START_ADDR() bfin_readPTR(MDMA_D0_START_ADDR)
1013#define bfin_write_MDMA_D0_START_ADDR(val) bfin_writePTR(MDMA_D0_START_ADDR, val)
1014#define bfin_read_MDMA_D0_CONFIG() bfin_read16(MDMA_D0_CONFIG)
1015#define bfin_write_MDMA_D0_CONFIG(val) bfin_write16(MDMA_D0_CONFIG, val)
1016#define bfin_read_MDMA_D0_X_COUNT() bfin_read16(MDMA_D0_X_COUNT)
1017#define bfin_write_MDMA_D0_X_COUNT(val) bfin_write16(MDMA_D0_X_COUNT, val)
1018#define bfin_read_MDMA_D0_X_MODIFY() bfin_read16(MDMA_D0_X_MODIFY)
1019#define bfin_write_MDMA_D0_X_MODIFY(val) bfin_write16(MDMA_D0_X_MODIFY, val)
1020#define bfin_read_MDMA_D0_Y_COUNT() bfin_read16(MDMA_D0_Y_COUNT)
1021#define bfin_write_MDMA_D0_Y_COUNT(val) bfin_write16(MDMA_D0_Y_COUNT, val)
1022#define bfin_read_MDMA_D0_Y_MODIFY() bfin_read16(MDMA_D0_Y_MODIFY)
1023#define bfin_write_MDMA_D0_Y_MODIFY(val) bfin_write16(MDMA_D0_Y_MODIFY, val)
1024#define bfin_read_MDMA_D0_CURR_DESC_PTR() bfin_readPTR(MDMA_D0_CURR_DESC_PTR)
1025#define bfin_write_MDMA_D0_CURR_DESC_PTR(val) bfin_writePTR(MDMA_D0_CURR_DESC_PTR, val)
1026#define bfin_read_MDMA_D0_CURR_ADDR() bfin_readPTR(MDMA_D0_CURR_ADDR)
1027#define bfin_write_MDMA_D0_CURR_ADDR(val) bfin_writePTR(MDMA_D0_CURR_ADDR, val)
1028#define bfin_read_MDMA_D0_IRQ_STATUS() bfin_read16(MDMA_D0_IRQ_STATUS)
1029#define bfin_write_MDMA_D0_IRQ_STATUS(val) bfin_write16(MDMA_D0_IRQ_STATUS, val)
1030#define bfin_read_MDMA_D0_PERIPHERAL_MAP() bfin_read16(MDMA_D0_PERIPHERAL_MAP)
1031#define bfin_write_MDMA_D0_PERIPHERAL_MAP(val) bfin_write16(MDMA_D0_PERIPHERAL_MAP, val)
1032#define bfin_read_MDMA_D0_CURR_X_COUNT() bfin_read16(MDMA_D0_CURR_X_COUNT)
1033#define bfin_write_MDMA_D0_CURR_X_COUNT(val) bfin_write16(MDMA_D0_CURR_X_COUNT, val)
1034#define bfin_read_MDMA_D0_CURR_Y_COUNT() bfin_read16(MDMA_D0_CURR_Y_COUNT)
1035#define bfin_write_MDMA_D0_CURR_Y_COUNT(val) bfin_write16(MDMA_D0_CURR_Y_COUNT, val)
1036#define bfin_read_MDMA_S0_NEXT_DESC_PTR() bfin_readPTR(MDMA_S0_NEXT_DESC_PTR)
1037#define bfin_write_MDMA_S0_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_S0_NEXT_DESC_PTR, val)
1038#define bfin_read_MDMA_S0_START_ADDR() bfin_readPTR(MDMA_S0_START_ADDR)
1039#define bfin_write_MDMA_S0_START_ADDR(val) bfin_writePTR(MDMA_S0_START_ADDR, val)
1040#define bfin_read_MDMA_S0_CONFIG() bfin_read16(MDMA_S0_CONFIG)
1041#define bfin_write_MDMA_S0_CONFIG(val) bfin_write16(MDMA_S0_CONFIG, val)
1042#define bfin_read_MDMA_S0_X_COUNT() bfin_read16(MDMA_S0_X_COUNT)
1043#define bfin_write_MDMA_S0_X_COUNT(val) bfin_write16(MDMA_S0_X_COUNT, val)
1044#define bfin_read_MDMA_S0_X_MODIFY() bfin_read16(MDMA_S0_X_MODIFY)
1045#define bfin_write_MDMA_S0_X_MODIFY(val) bfin_write16(MDMA_S0_X_MODIFY, val)
1046#define bfin_read_MDMA_S0_Y_COUNT() bfin_read16(MDMA_S0_Y_COUNT)
1047#define bfin_write_MDMA_S0_Y_COUNT(val) bfin_write16(MDMA_S0_Y_COUNT, val)
1048#define bfin_read_MDMA_S0_Y_MODIFY() bfin_read16(MDMA_S0_Y_MODIFY)
1049#define bfin_write_MDMA_S0_Y_MODIFY(val) bfin_write16(MDMA_S0_Y_MODIFY, val)
1050#define bfin_read_MDMA_S0_CURR_DESC_PTR() bfin_readPTR(MDMA_S0_CURR_DESC_PTR)
1051#define bfin_write_MDMA_S0_CURR_DESC_PTR(val) bfin_writePTR(MDMA_S0_CURR_DESC_PTR, val)
1052#define bfin_read_MDMA_S0_CURR_ADDR() bfin_readPTR(MDMA_S0_CURR_ADDR)
1053#define bfin_write_MDMA_S0_CURR_ADDR(val) bfin_writePTR(MDMA_S0_CURR_ADDR, val)
1054#define bfin_read_MDMA_S0_IRQ_STATUS() bfin_read16(MDMA_S0_IRQ_STATUS)
1055#define bfin_write_MDMA_S0_IRQ_STATUS(val) bfin_write16(MDMA_S0_IRQ_STATUS, val)
1056#define bfin_read_MDMA_S0_PERIPHERAL_MAP() bfin_read16(MDMA_S0_PERIPHERAL_MAP)
1057#define bfin_write_MDMA_S0_PERIPHERAL_MAP(val) bfin_write16(MDMA_S0_PERIPHERAL_MAP, val)
1058#define bfin_read_MDMA_S0_CURR_X_COUNT() bfin_read16(MDMA_S0_CURR_X_COUNT)
1059#define bfin_write_MDMA_S0_CURR_X_COUNT(val) bfin_write16(MDMA_S0_CURR_X_COUNT, val)
1060#define bfin_read_MDMA_S0_CURR_Y_COUNT() bfin_read16(MDMA_S0_CURR_Y_COUNT)
1061#define bfin_write_MDMA_S0_CURR_Y_COUNT(val) bfin_write16(MDMA_S0_CURR_Y_COUNT, val)
1062#define bfin_read_MDMA_D1_NEXT_DESC_PTR() bfin_readPTR(MDMA_D1_NEXT_DESC_PTR)
1063#define bfin_write_MDMA_D1_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_D1_NEXT_DESC_PTR, val)
1064#define bfin_read_MDMA_D1_START_ADDR() bfin_readPTR(MDMA_D1_START_ADDR)
1065#define bfin_write_MDMA_D1_START_ADDR(val) bfin_writePTR(MDMA_D1_START_ADDR, val)
1066#define bfin_read_MDMA_D1_CONFIG() bfin_read16(MDMA_D1_CONFIG)
1067#define bfin_write_MDMA_D1_CONFIG(val) bfin_write16(MDMA_D1_CONFIG, val)
1068#define bfin_read_MDMA_D1_X_COUNT() bfin_read16(MDMA_D1_X_COUNT)
1069#define bfin_write_MDMA_D1_X_COUNT(val) bfin_write16(MDMA_D1_X_COUNT, val)
1070#define bfin_read_MDMA_D1_X_MODIFY() bfin_read16(MDMA_D1_X_MODIFY)
1071#define bfin_write_MDMA_D1_X_MODIFY(val) bfin_write16(MDMA_D1_X_MODIFY, val)
1072#define bfin_read_MDMA_D1_Y_COUNT() bfin_read16(MDMA_D1_Y_COUNT)
1073#define bfin_write_MDMA_D1_Y_COUNT(val) bfin_write16(MDMA_D1_Y_COUNT, val)
1074#define bfin_read_MDMA_D1_Y_MODIFY() bfin_read16(MDMA_D1_Y_MODIFY)
1075#define bfin_write_MDMA_D1_Y_MODIFY(val) bfin_write16(MDMA_D1_Y_MODIFY, val)
1076#define bfin_read_MDMA_D1_CURR_DESC_PTR() bfin_readPTR(MDMA_D1_CURR_DESC_PTR)
1077#define bfin_write_MDMA_D1_CURR_DESC_PTR(val) bfin_writePTR(MDMA_D1_CURR_DESC_PTR, val)
1078#define bfin_read_MDMA_D1_CURR_ADDR() bfin_readPTR(MDMA_D1_CURR_ADDR)
1079#define bfin_write_MDMA_D1_CURR_ADDR(val) bfin_writePTR(MDMA_D1_CURR_ADDR, val)
1080#define bfin_read_MDMA_D1_IRQ_STATUS() bfin_read16(MDMA_D1_IRQ_STATUS)
1081#define bfin_write_MDMA_D1_IRQ_STATUS(val) bfin_write16(MDMA_D1_IRQ_STATUS, val)
1082#define bfin_read_MDMA_D1_PERIPHERAL_MAP() bfin_read16(MDMA_D1_PERIPHERAL_MAP)
1083#define bfin_write_MDMA_D1_PERIPHERAL_MAP(val) bfin_write16(MDMA_D1_PERIPHERAL_MAP, val)
1084#define bfin_read_MDMA_D1_CURR_X_COUNT() bfin_read16(MDMA_D1_CURR_X_COUNT)
1085#define bfin_write_MDMA_D1_CURR_X_COUNT(val) bfin_write16(MDMA_D1_CURR_X_COUNT, val)
1086#define bfin_read_MDMA_D1_CURR_Y_COUNT() bfin_read16(MDMA_D1_CURR_Y_COUNT)
1087#define bfin_write_MDMA_D1_CURR_Y_COUNT(val) bfin_write16(MDMA_D1_CURR_Y_COUNT, val)
1088#define bfin_read_MDMA_S1_NEXT_DESC_PTR() bfin_readPTR(MDMA_S1_NEXT_DESC_PTR)
1089#define bfin_write_MDMA_S1_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_S1_NEXT_DESC_PTR, val)
1090#define bfin_read_MDMA_S1_START_ADDR() bfin_readPTR(MDMA_S1_START_ADDR)
1091#define bfin_write_MDMA_S1_START_ADDR(val) bfin_writePTR(MDMA_S1_START_ADDR, val)
1092#define bfin_read_MDMA_S1_CONFIG() bfin_read16(MDMA_S1_CONFIG)
1093#define bfin_write_MDMA_S1_CONFIG(val) bfin_write16(MDMA_S1_CONFIG, val)
1094#define bfin_read_MDMA_S1_X_COUNT() bfin_read16(MDMA_S1_X_COUNT)
1095#define bfin_write_MDMA_S1_X_COUNT(val) bfin_write16(MDMA_S1_X_COUNT, val)
1096#define bfin_read_MDMA_S1_X_MODIFY() bfin_read16(MDMA_S1_X_MODIFY)
1097#define bfin_write_MDMA_S1_X_MODIFY(val) bfin_write16(MDMA_S1_X_MODIFY, val)
1098#define bfin_read_MDMA_S1_Y_COUNT() bfin_read16(MDMA_S1_Y_COUNT)
1099#define bfin_write_MDMA_S1_Y_COUNT(val) bfin_write16(MDMA_S1_Y_COUNT, val)
1100#define bfin_read_MDMA_S1_Y_MODIFY() bfin_read16(MDMA_S1_Y_MODIFY)
1101#define bfin_write_MDMA_S1_Y_MODIFY(val) bfin_write16(MDMA_S1_Y_MODIFY, val)
1102#define bfin_read_MDMA_S1_CURR_DESC_PTR() bfin_readPTR(MDMA_S1_CURR_DESC_PTR)
1103#define bfin_write_MDMA_S1_CURR_DESC_PTR(val) bfin_writePTR(MDMA_S1_CURR_DESC_PTR, val)
1104#define bfin_read_MDMA_S1_CURR_ADDR() bfin_readPTR(MDMA_S1_CURR_ADDR)
1105#define bfin_write_MDMA_S1_CURR_ADDR(val) bfin_writePTR(MDMA_S1_CURR_ADDR, val)
1106#define bfin_read_MDMA_S1_IRQ_STATUS() bfin_read16(MDMA_S1_IRQ_STATUS)
1107#define bfin_write_MDMA_S1_IRQ_STATUS(val) bfin_write16(MDMA_S1_IRQ_STATUS, val)
1108#define bfin_read_MDMA_S1_PERIPHERAL_MAP() bfin_read16(MDMA_S1_PERIPHERAL_MAP)
1109#define bfin_write_MDMA_S1_PERIPHERAL_MAP(val) bfin_write16(MDMA_S1_PERIPHERAL_MAP, val)
1110#define bfin_read_MDMA_S1_CURR_X_COUNT() bfin_read16(MDMA_S1_CURR_X_COUNT)
1111#define bfin_write_MDMA_S1_CURR_X_COUNT(val) bfin_write16(MDMA_S1_CURR_X_COUNT, val)
1112#define bfin_read_MDMA_S1_CURR_Y_COUNT() bfin_read16(MDMA_S1_CURR_Y_COUNT)
1113#define bfin_write_MDMA_S1_CURR_Y_COUNT(val) bfin_write16(MDMA_S1_CURR_Y_COUNT, val)
1114#define bfin_read_MDMA_D2_NEXT_DESC_PTR() bfin_readPTR(MDMA_D2_NEXT_DESC_PTR)
1115#define bfin_write_MDMA_D2_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_D2_NEXT_DESC_PTR, val)
1116#define bfin_read_MDMA_D2_START_ADDR() bfin_readPTR(MDMA_D2_START_ADDR)
1117#define bfin_write_MDMA_D2_START_ADDR(val) bfin_writePTR(MDMA_D2_START_ADDR, val)
1118#define bfin_read_MDMA_D2_CONFIG() bfin_read16(MDMA_D2_CONFIG)
1119#define bfin_write_MDMA_D2_CONFIG(val) bfin_write16(MDMA_D2_CONFIG, val)
1120#define bfin_read_MDMA_D2_X_COUNT() bfin_read16(MDMA_D2_X_COUNT)
1121#define bfin_write_MDMA_D2_X_COUNT(val) bfin_write16(MDMA_D2_X_COUNT, val)
1122#define bfin_read_MDMA_D2_X_MODIFY() bfin_read16(MDMA_D2_X_MODIFY)
1123#define bfin_write_MDMA_D2_X_MODIFY(val) bfin_write16(MDMA_D2_X_MODIFY, val)
1124#define bfin_read_MDMA_D2_Y_COUNT() bfin_read16(MDMA_D2_Y_COUNT)
1125#define bfin_write_MDMA_D2_Y_COUNT(val) bfin_write16(MDMA_D2_Y_COUNT, val)
1126#define bfin_read_MDMA_D2_Y_MODIFY() bfin_read16(MDMA_D2_Y_MODIFY)
1127#define bfin_write_MDMA_D2_Y_MODIFY(val) bfin_write16(MDMA_D2_Y_MODIFY, val)
1128#define bfin_read_MDMA_D2_CURR_DESC_PTR() bfin_readPTR(MDMA_D2_CURR_DESC_PTR)
1129#define bfin_write_MDMA_D2_CURR_DESC_PTR(val) bfin_writePTR(MDMA_D2_CURR_DESC_PTR, val)
1130#define bfin_read_MDMA_D2_CURR_ADDR() bfin_readPTR(MDMA_D2_CURR_ADDR)
1131#define bfin_write_MDMA_D2_CURR_ADDR(val) bfin_writePTR(MDMA_D2_CURR_ADDR, val)
1132#define bfin_read_MDMA_D2_IRQ_STATUS() bfin_read16(MDMA_D2_IRQ_STATUS)
1133#define bfin_write_MDMA_D2_IRQ_STATUS(val) bfin_write16(MDMA_D2_IRQ_STATUS, val)
1134#define bfin_read_MDMA_D2_PERIPHERAL_MAP() bfin_read16(MDMA_D2_PERIPHERAL_MAP)
1135#define bfin_write_MDMA_D2_PERIPHERAL_MAP(val) bfin_write16(MDMA_D2_PERIPHERAL_MAP, val)
1136#define bfin_read_MDMA_D2_CURR_X_COUNT() bfin_read16(MDMA_D2_CURR_X_COUNT)
1137#define bfin_write_MDMA_D2_CURR_X_COUNT(val) bfin_write16(MDMA_D2_CURR_X_COUNT, val)
1138#define bfin_read_MDMA_D2_CURR_Y_COUNT() bfin_read16(MDMA_D2_CURR_Y_COUNT)
1139#define bfin_write_MDMA_D2_CURR_Y_COUNT(val) bfin_write16(MDMA_D2_CURR_Y_COUNT, val)
1140#define bfin_read_MDMA_S2_NEXT_DESC_PTR() bfin_readPTR(MDMA_S2_NEXT_DESC_PTR)
1141#define bfin_write_MDMA_S2_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_S2_NEXT_DESC_PTR, val)
1142#define bfin_read_MDMA_S2_START_ADDR() bfin_readPTR(MDMA_S2_START_ADDR)
1143#define bfin_write_MDMA_S2_START_ADDR(val) bfin_writePTR(MDMA_S2_START_ADDR, val)
1144#define bfin_read_MDMA_S2_CONFIG() bfin_read16(MDMA_S2_CONFIG)
1145#define bfin_write_MDMA_S2_CONFIG(val) bfin_write16(MDMA_S2_CONFIG, val)
1146#define bfin_read_MDMA_S2_X_COUNT() bfin_read16(MDMA_S2_X_COUNT)
1147#define bfin_write_MDMA_S2_X_COUNT(val) bfin_write16(MDMA_S2_X_COUNT, val)
1148#define bfin_read_MDMA_S2_X_MODIFY() bfin_read16(MDMA_S2_X_MODIFY)
1149#define bfin_write_MDMA_S2_X_MODIFY(val) bfin_write16(MDMA_S2_X_MODIFY, val)
1150#define bfin_read_MDMA_S2_Y_COUNT() bfin_read16(MDMA_S2_Y_COUNT)
1151#define bfin_write_MDMA_S2_Y_COUNT(val) bfin_write16(MDMA_S2_Y_COUNT, val)
1152#define bfin_read_MDMA_S2_Y_MODIFY() bfin_read16(MDMA_S2_Y_MODIFY)
1153#define bfin_write_MDMA_S2_Y_MODIFY(val) bfin_write16(MDMA_S2_Y_MODIFY, val)
1154#define bfin_read_MDMA_S2_CURR_DESC_PTR() bfin_readPTR(MDMA_S2_CURR_DESC_PTR)
1155#define bfin_write_MDMA_S2_CURR_DESC_PTR(val) bfin_writePTR(MDMA_S2_CURR_DESC_PTR, val)
1156#define bfin_read_MDMA_S2_CURR_ADDR() bfin_readPTR(MDMA_S2_CURR_ADDR)
1157#define bfin_write_MDMA_S2_CURR_ADDR(val) bfin_writePTR(MDMA_S2_CURR_ADDR, val)
1158#define bfin_read_MDMA_S2_IRQ_STATUS() bfin_read16(MDMA_S2_IRQ_STATUS)
1159#define bfin_write_MDMA_S2_IRQ_STATUS(val) bfin_write16(MDMA_S2_IRQ_STATUS, val)
1160#define bfin_read_MDMA_S2_PERIPHERAL_MAP() bfin_read16(MDMA_S2_PERIPHERAL_MAP)
1161#define bfin_write_MDMA_S2_PERIPHERAL_MAP(val) bfin_write16(MDMA_S2_PERIPHERAL_MAP, val)
1162#define bfin_read_MDMA_S2_CURR_X_COUNT() bfin_read16(MDMA_S2_CURR_X_COUNT)
1163#define bfin_write_MDMA_S2_CURR_X_COUNT(val) bfin_write16(MDMA_S2_CURR_X_COUNT, val)
1164#define bfin_read_MDMA_S2_CURR_Y_COUNT() bfin_read16(MDMA_S2_CURR_Y_COUNT)
1165#define bfin_write_MDMA_S2_CURR_Y_COUNT(val) bfin_write16(MDMA_S2_CURR_Y_COUNT, val)
1166#define bfin_read_MDMA_D3_NEXT_DESC_PTR() bfin_readPTR(MDMA_D3_NEXT_DESC_PTR)
1167#define bfin_write_MDMA_D3_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_D3_NEXT_DESC_PTR, val)
1168#define bfin_read_MDMA_D3_START_ADDR() bfin_readPTR(MDMA_D3_START_ADDR)
1169#define bfin_write_MDMA_D3_START_ADDR(val) bfin_writePTR(MDMA_D3_START_ADDR, val)
1170#define bfin_read_MDMA_D3_CONFIG() bfin_read16(MDMA_D3_CONFIG)
1171#define bfin_write_MDMA_D3_CONFIG(val) bfin_write16(MDMA_D3_CONFIG, val)
1172#define bfin_read_MDMA_D3_X_COUNT() bfin_read16(MDMA_D3_X_COUNT)
1173#define bfin_write_MDMA_D3_X_COUNT(val) bfin_write16(MDMA_D3_X_COUNT, val)
1174#define bfin_read_MDMA_D3_X_MODIFY() bfin_read16(MDMA_D3_X_MODIFY)
1175#define bfin_write_MDMA_D3_X_MODIFY(val) bfin_write16(MDMA_D3_X_MODIFY, val)
1176#define bfin_read_MDMA_D3_Y_COUNT() bfin_read16(MDMA_D3_Y_COUNT)
1177#define bfin_write_MDMA_D3_Y_COUNT(val) bfin_write16(MDMA_D3_Y_COUNT, val)
1178#define bfin_read_MDMA_D3_Y_MODIFY() bfin_read16(MDMA_D3_Y_MODIFY)
1179#define bfin_write_MDMA_D3_Y_MODIFY(val) bfin_write16(MDMA_D3_Y_MODIFY, val)
1180#define bfin_read_MDMA_D3_CURR_DESC_PTR() bfin_readPTR(MDMA_D3_CURR_DESC_PTR)
1181#define bfin_write_MDMA_D3_CURR_DESC_PTR(val) bfin_writePTR(MDMA_D3_CURR_DESC_PTR, val)
1182#define bfin_read_MDMA_D3_CURR_ADDR() bfin_readPTR(MDMA_D3_CURR_ADDR)
1183#define bfin_write_MDMA_D3_CURR_ADDR(val) bfin_writePTR(MDMA_D3_CURR_ADDR, val)
1184#define bfin_read_MDMA_D3_IRQ_STATUS() bfin_read16(MDMA_D3_IRQ_STATUS)
1185#define bfin_write_MDMA_D3_IRQ_STATUS(val) bfin_write16(MDMA_D3_IRQ_STATUS, val)
1186#define bfin_read_MDMA_D3_PERIPHERAL_MAP() bfin_read16(MDMA_D3_PERIPHERAL_MAP)
1187#define bfin_write_MDMA_D3_PERIPHERAL_MAP(val) bfin_write16(MDMA_D3_PERIPHERAL_MAP, val)
1188#define bfin_read_MDMA_D3_CURR_X_COUNT() bfin_read16(MDMA_D3_CURR_X_COUNT)
1189#define bfin_write_MDMA_D3_CURR_X_COUNT(val) bfin_write16(MDMA_D3_CURR_X_COUNT, val)
1190#define bfin_read_MDMA_D3_CURR_Y_COUNT() bfin_read16(MDMA_D3_CURR_Y_COUNT)
1191#define bfin_write_MDMA_D3_CURR_Y_COUNT(val) bfin_write16(MDMA_D3_CURR_Y_COUNT, val)
1192#define bfin_read_MDMA_S3_NEXT_DESC_PTR() bfin_readPTR(MDMA_S3_NEXT_DESC_PTR)
1193#define bfin_write_MDMA_S3_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_S3_NEXT_DESC_PTR, val)
1194#define bfin_read_MDMA_S3_START_ADDR() bfin_readPTR(MDMA_S3_START_ADDR)
1195#define bfin_write_MDMA_S3_START_ADDR(val) bfin_writePTR(MDMA_S3_START_ADDR, val)
1196#define bfin_read_MDMA_S3_CONFIG() bfin_read16(MDMA_S3_CONFIG)
1197#define bfin_write_MDMA_S3_CONFIG(val) bfin_write16(MDMA_S3_CONFIG, val)
1198#define bfin_read_MDMA_S3_X_COUNT() bfin_read16(MDMA_S3_X_COUNT)
1199#define bfin_write_MDMA_S3_X_COUNT(val) bfin_write16(MDMA_S3_X_COUNT, val)
1200#define bfin_read_MDMA_S3_X_MODIFY() bfin_read16(MDMA_S3_X_MODIFY)
1201#define bfin_write_MDMA_S3_X_MODIFY(val) bfin_write16(MDMA_S3_X_MODIFY, val)
1202#define bfin_read_MDMA_S3_Y_COUNT() bfin_read16(MDMA_S3_Y_COUNT)
1203#define bfin_write_MDMA_S3_Y_COUNT(val) bfin_write16(MDMA_S3_Y_COUNT, val)
1204#define bfin_read_MDMA_S3_Y_MODIFY() bfin_read16(MDMA_S3_Y_MODIFY)
1205#define bfin_write_MDMA_S3_Y_MODIFY(val) bfin_write16(MDMA_S3_Y_MODIFY, val)
1206#define bfin_read_MDMA_S3_CURR_DESC_PTR() bfin_readPTR(MDMA_S3_CURR_DESC_PTR)
1207#define bfin_write_MDMA_S3_CURR_DESC_PTR(val) bfin_writePTR(MDMA_S3_CURR_DESC_PTR, val)
1208#define bfin_read_MDMA_S3_CURR_ADDR() bfin_readPTR(MDMA_S3_CURR_ADDR)
1209#define bfin_write_MDMA_S3_CURR_ADDR(val) bfin_writePTR(MDMA_S3_CURR_ADDR, val)
1210#define bfin_read_MDMA_S3_IRQ_STATUS() bfin_read16(MDMA_S3_IRQ_STATUS)
1211#define bfin_write_MDMA_S3_IRQ_STATUS(val) bfin_write16(MDMA_S3_IRQ_STATUS, val)
1212#define bfin_read_MDMA_S3_PERIPHERAL_MAP() bfin_read16(MDMA_S3_PERIPHERAL_MAP)
1213#define bfin_write_MDMA_S3_PERIPHERAL_MAP(val) bfin_write16(MDMA_S3_PERIPHERAL_MAP, val)
1214#define bfin_read_MDMA_S3_CURR_X_COUNT() bfin_read16(MDMA_S3_CURR_X_COUNT)
1215#define bfin_write_MDMA_S3_CURR_X_COUNT(val) bfin_write16(MDMA_S3_CURR_X_COUNT, val)
1216#define bfin_read_MDMA_S3_CURR_Y_COUNT() bfin_read16(MDMA_S3_CURR_Y_COUNT)
1217#define bfin_write_MDMA_S3_CURR_Y_COUNT(val) bfin_write16(MDMA_S3_CURR_Y_COUNT, val)
Michael Hennerichdc26aec2008-11-18 17:48:22 +08001218#define bfin_read_PPI_CONTROL() bfin_read16(PPI_CONTROL)
1219#define bfin_write_PPI_CONTROL(val) bfin_write16(PPI_CONTROL, val)
1220#define bfin_read_PPI_STATUS() bfin_read16(PPI_STATUS)
1221#define bfin_write_PPI_STATUS(val) bfin_write16(PPI_STATUS, val)
Barry Songf41e2fd2009-07-13 04:16:42 +00001222#define bfin_clear_PPI_STATUS() bfin_read_PPI_STATUS()
Michael Hennerichdc26aec2008-11-18 17:48:22 +08001223#define bfin_read_PPI_DELAY() bfin_read16(PPI_DELAY)
1224#define bfin_write_PPI_DELAY(val) bfin_write16(PPI_DELAY, val)
1225#define bfin_read_PPI_COUNT() bfin_read16(PPI_COUNT)
1226#define bfin_write_PPI_COUNT(val) bfin_write16(PPI_COUNT, val)
1227#define bfin_read_PPI_FRAME() bfin_read16(PPI_FRAME)
1228#define bfin_write_PPI_FRAME(val) bfin_write16(PPI_FRAME, val)
Michael Hennerichdc26aec2008-11-18 17:48:22 +08001229#define bfin_read_CAN_MC1() bfin_read16(CAN_MC1)
1230#define bfin_write_CAN_MC1(val) bfin_write16(CAN_MC1, val)
1231#define bfin_read_CAN_MD1() bfin_read16(CAN_MD1)
1232#define bfin_write_CAN_MD1(val) bfin_write16(CAN_MD1, val)
1233#define bfin_read_CAN_TRS1() bfin_read16(CAN_TRS1)
1234#define bfin_write_CAN_TRS1(val) bfin_write16(CAN_TRS1, val)
1235#define bfin_read_CAN_TRR1() bfin_read16(CAN_TRR1)
1236#define bfin_write_CAN_TRR1(val) bfin_write16(CAN_TRR1, val)
1237#define bfin_read_CAN_TA1() bfin_read16(CAN_TA1)
1238#define bfin_write_CAN_TA1(val) bfin_write16(CAN_TA1, val)
1239#define bfin_read_CAN_AA1() bfin_read16(CAN_AA1)
1240#define bfin_write_CAN_AA1(val) bfin_write16(CAN_AA1, val)
1241#define bfin_read_CAN_RMP1() bfin_read16(CAN_RMP1)
1242#define bfin_write_CAN_RMP1(val) bfin_write16(CAN_RMP1, val)
1243#define bfin_read_CAN_RML1() bfin_read16(CAN_RML1)
1244#define bfin_write_CAN_RML1(val) bfin_write16(CAN_RML1, val)
1245#define bfin_read_CAN_MBTIF1() bfin_read16(CAN_MBTIF1)
1246#define bfin_write_CAN_MBTIF1(val) bfin_write16(CAN_MBTIF1, val)
1247#define bfin_read_CAN_MBRIF1() bfin_read16(CAN_MBRIF1)
1248#define bfin_write_CAN_MBRIF1(val) bfin_write16(CAN_MBRIF1, val)
1249#define bfin_read_CAN_MBIM1() bfin_read16(CAN_MBIM1)
1250#define bfin_write_CAN_MBIM1(val) bfin_write16(CAN_MBIM1, val)
1251#define bfin_read_CAN_RFH1() bfin_read16(CAN_RFH1)
1252#define bfin_write_CAN_RFH1(val) bfin_write16(CAN_RFH1, val)
1253#define bfin_read_CAN_OPSS1() bfin_read16(CAN_OPSS1)
1254#define bfin_write_CAN_OPSS1(val) bfin_write16(CAN_OPSS1, val)
1255#define bfin_read_CAN_MC2() bfin_read16(CAN_MC2)
1256#define bfin_write_CAN_MC2(val) bfin_write16(CAN_MC2, val)
1257#define bfin_read_CAN_MD2() bfin_read16(CAN_MD2)
1258#define bfin_write_CAN_MD2(val) bfin_write16(CAN_MD2, val)
1259#define bfin_read_CAN_TRS2() bfin_read16(CAN_TRS2)
1260#define bfin_write_CAN_TRS2(val) bfin_write16(CAN_TRS2, val)
1261#define bfin_read_CAN_TRR2() bfin_read16(CAN_TRR2)
1262#define bfin_write_CAN_TRR2(val) bfin_write16(CAN_TRR2, val)
1263#define bfin_read_CAN_TA2() bfin_read16(CAN_TA2)
1264#define bfin_write_CAN_TA2(val) bfin_write16(CAN_TA2, val)
1265#define bfin_read_CAN_AA2() bfin_read16(CAN_AA2)
1266#define bfin_write_CAN_AA2(val) bfin_write16(CAN_AA2, val)
1267#define bfin_read_CAN_RMP2() bfin_read16(CAN_RMP2)
1268#define bfin_write_CAN_RMP2(val) bfin_write16(CAN_RMP2, val)
1269#define bfin_read_CAN_RML2() bfin_read16(CAN_RML2)
1270#define bfin_write_CAN_RML2(val) bfin_write16(CAN_RML2, val)
1271#define bfin_read_CAN_MBTIF2() bfin_read16(CAN_MBTIF2)
1272#define bfin_write_CAN_MBTIF2(val) bfin_write16(CAN_MBTIF2, val)
1273#define bfin_read_CAN_MBRIF2() bfin_read16(CAN_MBRIF2)
1274#define bfin_write_CAN_MBRIF2(val) bfin_write16(CAN_MBRIF2, val)
1275#define bfin_read_CAN_MBIM2() bfin_read16(CAN_MBIM2)
1276#define bfin_write_CAN_MBIM2(val) bfin_write16(CAN_MBIM2, val)
1277#define bfin_read_CAN_RFH2() bfin_read16(CAN_RFH2)
1278#define bfin_write_CAN_RFH2(val) bfin_write16(CAN_RFH2, val)
1279#define bfin_read_CAN_OPSS2() bfin_read16(CAN_OPSS2)
1280#define bfin_write_CAN_OPSS2(val) bfin_write16(CAN_OPSS2, val)
1281#define bfin_read_CAN_CLOCK() bfin_read16(CAN_CLOCK)
1282#define bfin_write_CAN_CLOCK(val) bfin_write16(CAN_CLOCK, val)
1283#define bfin_read_CAN_TIMING() bfin_read16(CAN_TIMING)
1284#define bfin_write_CAN_TIMING(val) bfin_write16(CAN_TIMING, val)
1285#define bfin_read_CAN_DEBUG() bfin_read16(CAN_DEBUG)
1286#define bfin_write_CAN_DEBUG(val) bfin_write16(CAN_DEBUG, val)
1287#define bfin_read_CAN_STATUS() bfin_read16(CAN_STATUS)
1288#define bfin_write_CAN_STATUS(val) bfin_write16(CAN_STATUS, val)
1289#define bfin_read_CAN_CEC() bfin_read16(CAN_CEC)
1290#define bfin_write_CAN_CEC(val) bfin_write16(CAN_CEC, val)
1291#define bfin_read_CAN_GIS() bfin_read16(CAN_GIS)
1292#define bfin_write_CAN_GIS(val) bfin_write16(CAN_GIS, val)
1293#define bfin_read_CAN_GIM() bfin_read16(CAN_GIM)
1294#define bfin_write_CAN_GIM(val) bfin_write16(CAN_GIM, val)
1295#define bfin_read_CAN_GIF() bfin_read16(CAN_GIF)
1296#define bfin_write_CAN_GIF(val) bfin_write16(CAN_GIF, val)
1297#define bfin_read_CAN_CONTROL() bfin_read16(CAN_CONTROL)
1298#define bfin_write_CAN_CONTROL(val) bfin_write16(CAN_CONTROL, val)
1299#define bfin_read_CAN_INTR() bfin_read16(CAN_INTR)
1300#define bfin_write_CAN_INTR(val) bfin_write16(CAN_INTR, val)
1301#define bfin_read_CAN_VERSION() bfin_read16(CAN_VERSION)
1302#define bfin_write_CAN_VERSION(val) bfin_write16(CAN_VERSION, val)
1303#define bfin_read_CAN_MBTD() bfin_read16(CAN_MBTD)
1304#define bfin_write_CAN_MBTD(val) bfin_write16(CAN_MBTD, val)
1305#define bfin_read_CAN_EWR() bfin_read16(CAN_EWR)
1306#define bfin_write_CAN_EWR(val) bfin_write16(CAN_EWR, val)
1307#define bfin_read_CAN_ESR() bfin_read16(CAN_ESR)
1308#define bfin_write_CAN_ESR(val) bfin_write16(CAN_ESR, val)
1309#define bfin_read_CAN_UCREG() bfin_read16(CAN_UCREG)
1310#define bfin_write_CAN_UCREG(val) bfin_write16(CAN_UCREG, val)
1311#define bfin_read_CAN_UCCNT() bfin_read16(CAN_UCCNT)
1312#define bfin_write_CAN_UCCNT(val) bfin_write16(CAN_UCCNT, val)
1313#define bfin_read_CAN_UCRC() bfin_read16(CAN_UCRC)
1314#define bfin_write_CAN_UCRC(val) bfin_write16(CAN_UCRC, val)
1315#define bfin_read_CAN_UCCNF() bfin_read16(CAN_UCCNF)
1316#define bfin_write_CAN_UCCNF(val) bfin_write16(CAN_UCCNF, val)
1317#define bfin_read_CAN_VERSION2() bfin_read16(CAN_VERSION2)
1318#define bfin_write_CAN_VERSION2(val) bfin_write16(CAN_VERSION2, val)
1319#define bfin_read_CAN_AM00L() bfin_read16(CAN_AM00L)
1320#define bfin_write_CAN_AM00L(val) bfin_write16(CAN_AM00L, val)
1321#define bfin_read_CAN_AM00H() bfin_read16(CAN_AM00H)
1322#define bfin_write_CAN_AM00H(val) bfin_write16(CAN_AM00H, val)
1323#define bfin_read_CAN_AM01L() bfin_read16(CAN_AM01L)
1324#define bfin_write_CAN_AM01L(val) bfin_write16(CAN_AM01L, val)
1325#define bfin_read_CAN_AM01H() bfin_read16(CAN_AM01H)
1326#define bfin_write_CAN_AM01H(val) bfin_write16(CAN_AM01H, val)
1327#define bfin_read_CAN_AM02L() bfin_read16(CAN_AM02L)
1328#define bfin_write_CAN_AM02L(val) bfin_write16(CAN_AM02L, val)
1329#define bfin_read_CAN_AM02H() bfin_read16(CAN_AM02H)
1330#define bfin_write_CAN_AM02H(val) bfin_write16(CAN_AM02H, val)
1331#define bfin_read_CAN_AM03L() bfin_read16(CAN_AM03L)
1332#define bfin_write_CAN_AM03L(val) bfin_write16(CAN_AM03L, val)
1333#define bfin_read_CAN_AM03H() bfin_read16(CAN_AM03H)
1334#define bfin_write_CAN_AM03H(val) bfin_write16(CAN_AM03H, val)
1335#define bfin_read_CAN_AM04L() bfin_read16(CAN_AM04L)
1336#define bfin_write_CAN_AM04L(val) bfin_write16(CAN_AM04L, val)
1337#define bfin_read_CAN_AM04H() bfin_read16(CAN_AM04H)
1338#define bfin_write_CAN_AM04H(val) bfin_write16(CAN_AM04H, val)
1339#define bfin_read_CAN_AM05L() bfin_read16(CAN_AM05L)
1340#define bfin_write_CAN_AM05L(val) bfin_write16(CAN_AM05L, val)
1341#define bfin_read_CAN_AM05H() bfin_read16(CAN_AM05H)
1342#define bfin_write_CAN_AM05H(val) bfin_write16(CAN_AM05H, val)
1343#define bfin_read_CAN_AM06L() bfin_read16(CAN_AM06L)
1344#define bfin_write_CAN_AM06L(val) bfin_write16(CAN_AM06L, val)
1345#define bfin_read_CAN_AM06H() bfin_read16(CAN_AM06H)
1346#define bfin_write_CAN_AM06H(val) bfin_write16(CAN_AM06H, val)
1347#define bfin_read_CAN_AM07L() bfin_read16(CAN_AM07L)
1348#define bfin_write_CAN_AM07L(val) bfin_write16(CAN_AM07L, val)
1349#define bfin_read_CAN_AM07H() bfin_read16(CAN_AM07H)
1350#define bfin_write_CAN_AM07H(val) bfin_write16(CAN_AM07H, val)
1351#define bfin_read_CAN_AM08L() bfin_read16(CAN_AM08L)
1352#define bfin_write_CAN_AM08L(val) bfin_write16(CAN_AM08L, val)
1353#define bfin_read_CAN_AM08H() bfin_read16(CAN_AM08H)
1354#define bfin_write_CAN_AM08H(val) bfin_write16(CAN_AM08H, val)
1355#define bfin_read_CAN_AM09L() bfin_read16(CAN_AM09L)
1356#define bfin_write_CAN_AM09L(val) bfin_write16(CAN_AM09L, val)
1357#define bfin_read_CAN_AM09H() bfin_read16(CAN_AM09H)
1358#define bfin_write_CAN_AM09H(val) bfin_write16(CAN_AM09H, val)
1359#define bfin_read_CAN_AM10L() bfin_read16(CAN_AM10L)
1360#define bfin_write_CAN_AM10L(val) bfin_write16(CAN_AM10L, val)
1361#define bfin_read_CAN_AM10H() bfin_read16(CAN_AM10H)
1362#define bfin_write_CAN_AM10H(val) bfin_write16(CAN_AM10H, val)
1363#define bfin_read_CAN_AM11L() bfin_read16(CAN_AM11L)
1364#define bfin_write_CAN_AM11L(val) bfin_write16(CAN_AM11L, val)
1365#define bfin_read_CAN_AM11H() bfin_read16(CAN_AM11H)
1366#define bfin_write_CAN_AM11H(val) bfin_write16(CAN_AM11H, val)
1367#define bfin_read_CAN_AM12L() bfin_read16(CAN_AM12L)
1368#define bfin_write_CAN_AM12L(val) bfin_write16(CAN_AM12L, val)
1369#define bfin_read_CAN_AM12H() bfin_read16(CAN_AM12H)
1370#define bfin_write_CAN_AM12H(val) bfin_write16(CAN_AM12H, val)
1371#define bfin_read_CAN_AM13L() bfin_read16(CAN_AM13L)
1372#define bfin_write_CAN_AM13L(val) bfin_write16(CAN_AM13L, val)
1373#define bfin_read_CAN_AM13H() bfin_read16(CAN_AM13H)
1374#define bfin_write_CAN_AM13H(val) bfin_write16(CAN_AM13H, val)
1375#define bfin_read_CAN_AM14L() bfin_read16(CAN_AM14L)
1376#define bfin_write_CAN_AM14L(val) bfin_write16(CAN_AM14L, val)
1377#define bfin_read_CAN_AM14H() bfin_read16(CAN_AM14H)
1378#define bfin_write_CAN_AM14H(val) bfin_write16(CAN_AM14H, val)
1379#define bfin_read_CAN_AM15L() bfin_read16(CAN_AM15L)
1380#define bfin_write_CAN_AM15L(val) bfin_write16(CAN_AM15L, val)
1381#define bfin_read_CAN_AM15H() bfin_read16(CAN_AM15H)
1382#define bfin_write_CAN_AM15H(val) bfin_write16(CAN_AM15H, val)
1383#define bfin_read_CAN_AM16L() bfin_read16(CAN_AM16L)
1384#define bfin_write_CAN_AM16L(val) bfin_write16(CAN_AM16L, val)
1385#define bfin_read_CAN_AM16H() bfin_read16(CAN_AM16H)
1386#define bfin_write_CAN_AM16H(val) bfin_write16(CAN_AM16H, val)
1387#define bfin_read_CAN_AM17L() bfin_read16(CAN_AM17L)
1388#define bfin_write_CAN_AM17L(val) bfin_write16(CAN_AM17L, val)
1389#define bfin_read_CAN_AM17H() bfin_read16(CAN_AM17H)
1390#define bfin_write_CAN_AM17H(val) bfin_write16(CAN_AM17H, val)
1391#define bfin_read_CAN_AM18L() bfin_read16(CAN_AM18L)
1392#define bfin_write_CAN_AM18L(val) bfin_write16(CAN_AM18L, val)
1393#define bfin_read_CAN_AM18H() bfin_read16(CAN_AM18H)
1394#define bfin_write_CAN_AM18H(val) bfin_write16(CAN_AM18H, val)
1395#define bfin_read_CAN_AM19L() bfin_read16(CAN_AM19L)
1396#define bfin_write_CAN_AM19L(val) bfin_write16(CAN_AM19L, val)
1397#define bfin_read_CAN_AM19H() bfin_read16(CAN_AM19H)
1398#define bfin_write_CAN_AM19H(val) bfin_write16(CAN_AM19H, val)
1399#define bfin_read_CAN_AM20L() bfin_read16(CAN_AM20L)
1400#define bfin_write_CAN_AM20L(val) bfin_write16(CAN_AM20L, val)
1401#define bfin_read_CAN_AM20H() bfin_read16(CAN_AM20H)
1402#define bfin_write_CAN_AM20H(val) bfin_write16(CAN_AM20H, val)
1403#define bfin_read_CAN_AM21L() bfin_read16(CAN_AM21L)
1404#define bfin_write_CAN_AM21L(val) bfin_write16(CAN_AM21L, val)
1405#define bfin_read_CAN_AM21H() bfin_read16(CAN_AM21H)
1406#define bfin_write_CAN_AM21H(val) bfin_write16(CAN_AM21H, val)
1407#define bfin_read_CAN_AM22L() bfin_read16(CAN_AM22L)
1408#define bfin_write_CAN_AM22L(val) bfin_write16(CAN_AM22L, val)
1409#define bfin_read_CAN_AM22H() bfin_read16(CAN_AM22H)
1410#define bfin_write_CAN_AM22H(val) bfin_write16(CAN_AM22H, val)
1411#define bfin_read_CAN_AM23L() bfin_read16(CAN_AM23L)
1412#define bfin_write_CAN_AM23L(val) bfin_write16(CAN_AM23L, val)
1413#define bfin_read_CAN_AM23H() bfin_read16(CAN_AM23H)
1414#define bfin_write_CAN_AM23H(val) bfin_write16(CAN_AM23H, val)
1415#define bfin_read_CAN_AM24L() bfin_read16(CAN_AM24L)
1416#define bfin_write_CAN_AM24L(val) bfin_write16(CAN_AM24L, val)
1417#define bfin_read_CAN_AM24H() bfin_read16(CAN_AM24H)
1418#define bfin_write_CAN_AM24H(val) bfin_write16(CAN_AM24H, val)
1419#define bfin_read_CAN_AM25L() bfin_read16(CAN_AM25L)
1420#define bfin_write_CAN_AM25L(val) bfin_write16(CAN_AM25L, val)
1421#define bfin_read_CAN_AM25H() bfin_read16(CAN_AM25H)
1422#define bfin_write_CAN_AM25H(val) bfin_write16(CAN_AM25H, val)
1423#define bfin_read_CAN_AM26L() bfin_read16(CAN_AM26L)
1424#define bfin_write_CAN_AM26L(val) bfin_write16(CAN_AM26L, val)
1425#define bfin_read_CAN_AM26H() bfin_read16(CAN_AM26H)
1426#define bfin_write_CAN_AM26H(val) bfin_write16(CAN_AM26H, val)
1427#define bfin_read_CAN_AM27L() bfin_read16(CAN_AM27L)
1428#define bfin_write_CAN_AM27L(val) bfin_write16(CAN_AM27L, val)
1429#define bfin_read_CAN_AM27H() bfin_read16(CAN_AM27H)
1430#define bfin_write_CAN_AM27H(val) bfin_write16(CAN_AM27H, val)
1431#define bfin_read_CAN_AM28L() bfin_read16(CAN_AM28L)
1432#define bfin_write_CAN_AM28L(val) bfin_write16(CAN_AM28L, val)
1433#define bfin_read_CAN_AM28H() bfin_read16(CAN_AM28H)
1434#define bfin_write_CAN_AM28H(val) bfin_write16(CAN_AM28H, val)
1435#define bfin_read_CAN_AM29L() bfin_read16(CAN_AM29L)
1436#define bfin_write_CAN_AM29L(val) bfin_write16(CAN_AM29L, val)
1437#define bfin_read_CAN_AM29H() bfin_read16(CAN_AM29H)
1438#define bfin_write_CAN_AM29H(val) bfin_write16(CAN_AM29H, val)
1439#define bfin_read_CAN_AM30L() bfin_read16(CAN_AM30L)
1440#define bfin_write_CAN_AM30L(val) bfin_write16(CAN_AM30L, val)
1441#define bfin_read_CAN_AM30H() bfin_read16(CAN_AM30H)
1442#define bfin_write_CAN_AM30H(val) bfin_write16(CAN_AM30H, val)
1443#define bfin_read_CAN_AM31L() bfin_read16(CAN_AM31L)
1444#define bfin_write_CAN_AM31L(val) bfin_write16(CAN_AM31L, val)
1445#define bfin_read_CAN_AM31H() bfin_read16(CAN_AM31H)
1446#define bfin_write_CAN_AM31H(val) bfin_write16(CAN_AM31H, val)
1447#define bfin_read_CAN_MB00_DATA0() bfin_read16(CAN_MB00_DATA0)
1448#define bfin_write_CAN_MB00_DATA0(val) bfin_write16(CAN_MB00_DATA0, val)
1449#define bfin_read_CAN_MB00_DATA1() bfin_read16(CAN_MB00_DATA1)
1450#define bfin_write_CAN_MB00_DATA1(val) bfin_write16(CAN_MB00_DATA1, val)
1451#define bfin_read_CAN_MB00_DATA2() bfin_read16(CAN_MB00_DATA2)
1452#define bfin_write_CAN_MB00_DATA2(val) bfin_write16(CAN_MB00_DATA2, val)
1453#define bfin_read_CAN_MB00_DATA3() bfin_read16(CAN_MB00_DATA3)
1454#define bfin_write_CAN_MB00_DATA3(val) bfin_write16(CAN_MB00_DATA3, val)
1455#define bfin_read_CAN_MB00_LENGTH() bfin_read16(CAN_MB00_LENGTH)
1456#define bfin_write_CAN_MB00_LENGTH(val) bfin_write16(CAN_MB00_LENGTH, val)
1457#define bfin_read_CAN_MB00_TIMESTAMP() bfin_read16(CAN_MB00_TIMESTAMP)
1458#define bfin_write_CAN_MB00_TIMESTAMP(val) bfin_write16(CAN_MB00_TIMESTAMP, val)
1459#define bfin_read_CAN_MB00_ID0() bfin_read16(CAN_MB00_ID0)
1460#define bfin_write_CAN_MB00_ID0(val) bfin_write16(CAN_MB00_ID0, val)
1461#define bfin_read_CAN_MB00_ID1() bfin_read16(CAN_MB00_ID1)
1462#define bfin_write_CAN_MB00_ID1(val) bfin_write16(CAN_MB00_ID1, val)
1463#define bfin_read_CAN_MB01_DATA0() bfin_read16(CAN_MB01_DATA0)
1464#define bfin_write_CAN_MB01_DATA0(val) bfin_write16(CAN_MB01_DATA0, val)
1465#define bfin_read_CAN_MB01_DATA1() bfin_read16(CAN_MB01_DATA1)
1466#define bfin_write_CAN_MB01_DATA1(val) bfin_write16(CAN_MB01_DATA1, val)
1467#define bfin_read_CAN_MB01_DATA2() bfin_read16(CAN_MB01_DATA2)
1468#define bfin_write_CAN_MB01_DATA2(val) bfin_write16(CAN_MB01_DATA2, val)
1469#define bfin_read_CAN_MB01_DATA3() bfin_read16(CAN_MB01_DATA3)
1470#define bfin_write_CAN_MB01_DATA3(val) bfin_write16(CAN_MB01_DATA3, val)
1471#define bfin_read_CAN_MB01_LENGTH() bfin_read16(CAN_MB01_LENGTH)
1472#define bfin_write_CAN_MB01_LENGTH(val) bfin_write16(CAN_MB01_LENGTH, val)
1473#define bfin_read_CAN_MB01_TIMESTAMP() bfin_read16(CAN_MB01_TIMESTAMP)
1474#define bfin_write_CAN_MB01_TIMESTAMP(val) bfin_write16(CAN_MB01_TIMESTAMP, val)
1475#define bfin_read_CAN_MB01_ID0() bfin_read16(CAN_MB01_ID0)
1476#define bfin_write_CAN_MB01_ID0(val) bfin_write16(CAN_MB01_ID0, val)
1477#define bfin_read_CAN_MB01_ID1() bfin_read16(CAN_MB01_ID1)
1478#define bfin_write_CAN_MB01_ID1(val) bfin_write16(CAN_MB01_ID1, val)
1479#define bfin_read_CAN_MB02_DATA0() bfin_read16(CAN_MB02_DATA0)
1480#define bfin_write_CAN_MB02_DATA0(val) bfin_write16(CAN_MB02_DATA0, val)
1481#define bfin_read_CAN_MB02_DATA1() bfin_read16(CAN_MB02_DATA1)
1482#define bfin_write_CAN_MB02_DATA1(val) bfin_write16(CAN_MB02_DATA1, val)
1483#define bfin_read_CAN_MB02_DATA2() bfin_read16(CAN_MB02_DATA2)
1484#define bfin_write_CAN_MB02_DATA2(val) bfin_write16(CAN_MB02_DATA2, val)
1485#define bfin_read_CAN_MB02_DATA3() bfin_read16(CAN_MB02_DATA3)
1486#define bfin_write_CAN_MB02_DATA3(val) bfin_write16(CAN_MB02_DATA3, val)
1487#define bfin_read_CAN_MB02_LENGTH() bfin_read16(CAN_MB02_LENGTH)
1488#define bfin_write_CAN_MB02_LENGTH(val) bfin_write16(CAN_MB02_LENGTH, val)
1489#define bfin_read_CAN_MB02_TIMESTAMP() bfin_read16(CAN_MB02_TIMESTAMP)
1490#define bfin_write_CAN_MB02_TIMESTAMP(val) bfin_write16(CAN_MB02_TIMESTAMP, val)
1491#define bfin_read_CAN_MB02_ID0() bfin_read16(CAN_MB02_ID0)
1492#define bfin_write_CAN_MB02_ID0(val) bfin_write16(CAN_MB02_ID0, val)
1493#define bfin_read_CAN_MB02_ID1() bfin_read16(CAN_MB02_ID1)
1494#define bfin_write_CAN_MB02_ID1(val) bfin_write16(CAN_MB02_ID1, val)
1495#define bfin_read_CAN_MB03_DATA0() bfin_read16(CAN_MB03_DATA0)
1496#define bfin_write_CAN_MB03_DATA0(val) bfin_write16(CAN_MB03_DATA0, val)
1497#define bfin_read_CAN_MB03_DATA1() bfin_read16(CAN_MB03_DATA1)
1498#define bfin_write_CAN_MB03_DATA1(val) bfin_write16(CAN_MB03_DATA1, val)
1499#define bfin_read_CAN_MB03_DATA2() bfin_read16(CAN_MB03_DATA2)
1500#define bfin_write_CAN_MB03_DATA2(val) bfin_write16(CAN_MB03_DATA2, val)
1501#define bfin_read_CAN_MB03_DATA3() bfin_read16(CAN_MB03_DATA3)
1502#define bfin_write_CAN_MB03_DATA3(val) bfin_write16(CAN_MB03_DATA3, val)
1503#define bfin_read_CAN_MB03_LENGTH() bfin_read16(CAN_MB03_LENGTH)
1504#define bfin_write_CAN_MB03_LENGTH(val) bfin_write16(CAN_MB03_LENGTH, val)
1505#define bfin_read_CAN_MB03_TIMESTAMP() bfin_read16(CAN_MB03_TIMESTAMP)
1506#define bfin_write_CAN_MB03_TIMESTAMP(val) bfin_write16(CAN_MB03_TIMESTAMP, val)
1507#define bfin_read_CAN_MB03_ID0() bfin_read16(CAN_MB03_ID0)
1508#define bfin_write_CAN_MB03_ID0(val) bfin_write16(CAN_MB03_ID0, val)
1509#define bfin_read_CAN_MB03_ID1() bfin_read16(CAN_MB03_ID1)
1510#define bfin_write_CAN_MB03_ID1(val) bfin_write16(CAN_MB03_ID1, val)
1511#define bfin_read_CAN_MB04_DATA0() bfin_read16(CAN_MB04_DATA0)
1512#define bfin_write_CAN_MB04_DATA0(val) bfin_write16(CAN_MB04_DATA0, val)
1513#define bfin_read_CAN_MB04_DATA1() bfin_read16(CAN_MB04_DATA1)
1514#define bfin_write_CAN_MB04_DATA1(val) bfin_write16(CAN_MB04_DATA1, val)
1515#define bfin_read_CAN_MB04_DATA2() bfin_read16(CAN_MB04_DATA2)
1516#define bfin_write_CAN_MB04_DATA2(val) bfin_write16(CAN_MB04_DATA2, val)
1517#define bfin_read_CAN_MB04_DATA3() bfin_read16(CAN_MB04_DATA3)
1518#define bfin_write_CAN_MB04_DATA3(val) bfin_write16(CAN_MB04_DATA3, val)
1519#define bfin_read_CAN_MB04_LENGTH() bfin_read16(CAN_MB04_LENGTH)
1520#define bfin_write_CAN_MB04_LENGTH(val) bfin_write16(CAN_MB04_LENGTH, val)
1521#define bfin_read_CAN_MB04_TIMESTAMP() bfin_read16(CAN_MB04_TIMESTAMP)
1522#define bfin_write_CAN_MB04_TIMESTAMP(val) bfin_write16(CAN_MB04_TIMESTAMP, val)
1523#define bfin_read_CAN_MB04_ID0() bfin_read16(CAN_MB04_ID0)
1524#define bfin_write_CAN_MB04_ID0(val) bfin_write16(CAN_MB04_ID0, val)
1525#define bfin_read_CAN_MB04_ID1() bfin_read16(CAN_MB04_ID1)
1526#define bfin_write_CAN_MB04_ID1(val) bfin_write16(CAN_MB04_ID1, val)
1527#define bfin_read_CAN_MB05_DATA0() bfin_read16(CAN_MB05_DATA0)
1528#define bfin_write_CAN_MB05_DATA0(val) bfin_write16(CAN_MB05_DATA0, val)
1529#define bfin_read_CAN_MB05_DATA1() bfin_read16(CAN_MB05_DATA1)
1530#define bfin_write_CAN_MB05_DATA1(val) bfin_write16(CAN_MB05_DATA1, val)
1531#define bfin_read_CAN_MB05_DATA2() bfin_read16(CAN_MB05_DATA2)
1532#define bfin_write_CAN_MB05_DATA2(val) bfin_write16(CAN_MB05_DATA2, val)
1533#define bfin_read_CAN_MB05_DATA3() bfin_read16(CAN_MB05_DATA3)
1534#define bfin_write_CAN_MB05_DATA3(val) bfin_write16(CAN_MB05_DATA3, val)
1535#define bfin_read_CAN_MB05_LENGTH() bfin_read16(CAN_MB05_LENGTH)
1536#define bfin_write_CAN_MB05_LENGTH(val) bfin_write16(CAN_MB05_LENGTH, val)
1537#define bfin_read_CAN_MB05_TIMESTAMP() bfin_read16(CAN_MB05_TIMESTAMP)
1538#define bfin_write_CAN_MB05_TIMESTAMP(val) bfin_write16(CAN_MB05_TIMESTAMP, val)
1539#define bfin_read_CAN_MB05_ID0() bfin_read16(CAN_MB05_ID0)
1540#define bfin_write_CAN_MB05_ID0(val) bfin_write16(CAN_MB05_ID0, val)
1541#define bfin_read_CAN_MB05_ID1() bfin_read16(CAN_MB05_ID1)
1542#define bfin_write_CAN_MB05_ID1(val) bfin_write16(CAN_MB05_ID1, val)
1543#define bfin_read_CAN_MB06_DATA0() bfin_read16(CAN_MB06_DATA0)
1544#define bfin_write_CAN_MB06_DATA0(val) bfin_write16(CAN_MB06_DATA0, val)
1545#define bfin_read_CAN_MB06_DATA1() bfin_read16(CAN_MB06_DATA1)
1546#define bfin_write_CAN_MB06_DATA1(val) bfin_write16(CAN_MB06_DATA1, val)
1547#define bfin_read_CAN_MB06_DATA2() bfin_read16(CAN_MB06_DATA2)
1548#define bfin_write_CAN_MB06_DATA2(val) bfin_write16(CAN_MB06_DATA2, val)
1549#define bfin_read_CAN_MB06_DATA3() bfin_read16(CAN_MB06_DATA3)
1550#define bfin_write_CAN_MB06_DATA3(val) bfin_write16(CAN_MB06_DATA3, val)
1551#define bfin_read_CAN_MB06_LENGTH() bfin_read16(CAN_MB06_LENGTH)
1552#define bfin_write_CAN_MB06_LENGTH(val) bfin_write16(CAN_MB06_LENGTH, val)
1553#define bfin_read_CAN_MB06_TIMESTAMP() bfin_read16(CAN_MB06_TIMESTAMP)
1554#define bfin_write_CAN_MB06_TIMESTAMP(val) bfin_write16(CAN_MB06_TIMESTAMP, val)
1555#define bfin_read_CAN_MB06_ID0() bfin_read16(CAN_MB06_ID0)
1556#define bfin_write_CAN_MB06_ID0(val) bfin_write16(CAN_MB06_ID0, val)
1557#define bfin_read_CAN_MB06_ID1() bfin_read16(CAN_MB06_ID1)
1558#define bfin_write_CAN_MB06_ID1(val) bfin_write16(CAN_MB06_ID1, val)
1559#define bfin_read_CAN_MB07_DATA0() bfin_read16(CAN_MB07_DATA0)
1560#define bfin_write_CAN_MB07_DATA0(val) bfin_write16(CAN_MB07_DATA0, val)
1561#define bfin_read_CAN_MB07_DATA1() bfin_read16(CAN_MB07_DATA1)
1562#define bfin_write_CAN_MB07_DATA1(val) bfin_write16(CAN_MB07_DATA1, val)
1563#define bfin_read_CAN_MB07_DATA2() bfin_read16(CAN_MB07_DATA2)
1564#define bfin_write_CAN_MB07_DATA2(val) bfin_write16(CAN_MB07_DATA2, val)
1565#define bfin_read_CAN_MB07_DATA3() bfin_read16(CAN_MB07_DATA3)
1566#define bfin_write_CAN_MB07_DATA3(val) bfin_write16(CAN_MB07_DATA3, val)
1567#define bfin_read_CAN_MB07_LENGTH() bfin_read16(CAN_MB07_LENGTH)
1568#define bfin_write_CAN_MB07_LENGTH(val) bfin_write16(CAN_MB07_LENGTH, val)
1569#define bfin_read_CAN_MB07_TIMESTAMP() bfin_read16(CAN_MB07_TIMESTAMP)
1570#define bfin_write_CAN_MB07_TIMESTAMP(val) bfin_write16(CAN_MB07_TIMESTAMP, val)
1571#define bfin_read_CAN_MB07_ID0() bfin_read16(CAN_MB07_ID0)
1572#define bfin_write_CAN_MB07_ID0(val) bfin_write16(CAN_MB07_ID0, val)
1573#define bfin_read_CAN_MB07_ID1() bfin_read16(CAN_MB07_ID1)
1574#define bfin_write_CAN_MB07_ID1(val) bfin_write16(CAN_MB07_ID1, val)
1575#define bfin_read_CAN_MB08_DATA0() bfin_read16(CAN_MB08_DATA0)
1576#define bfin_write_CAN_MB08_DATA0(val) bfin_write16(CAN_MB08_DATA0, val)
1577#define bfin_read_CAN_MB08_DATA1() bfin_read16(CAN_MB08_DATA1)
1578#define bfin_write_CAN_MB08_DATA1(val) bfin_write16(CAN_MB08_DATA1, val)
1579#define bfin_read_CAN_MB08_DATA2() bfin_read16(CAN_MB08_DATA2)
1580#define bfin_write_CAN_MB08_DATA2(val) bfin_write16(CAN_MB08_DATA2, val)
1581#define bfin_read_CAN_MB08_DATA3() bfin_read16(CAN_MB08_DATA3)
1582#define bfin_write_CAN_MB08_DATA3(val) bfin_write16(CAN_MB08_DATA3, val)
1583#define bfin_read_CAN_MB08_LENGTH() bfin_read16(CAN_MB08_LENGTH)
1584#define bfin_write_CAN_MB08_LENGTH(val) bfin_write16(CAN_MB08_LENGTH, val)
1585#define bfin_read_CAN_MB08_TIMESTAMP() bfin_read16(CAN_MB08_TIMESTAMP)
1586#define bfin_write_CAN_MB08_TIMESTAMP(val) bfin_write16(CAN_MB08_TIMESTAMP, val)
1587#define bfin_read_CAN_MB08_ID0() bfin_read16(CAN_MB08_ID0)
1588#define bfin_write_CAN_MB08_ID0(val) bfin_write16(CAN_MB08_ID0, val)
1589#define bfin_read_CAN_MB08_ID1() bfin_read16(CAN_MB08_ID1)
1590#define bfin_write_CAN_MB08_ID1(val) bfin_write16(CAN_MB08_ID1, val)
1591#define bfin_read_CAN_MB09_DATA0() bfin_read16(CAN_MB09_DATA0)
1592#define bfin_write_CAN_MB09_DATA0(val) bfin_write16(CAN_MB09_DATA0, val)
1593#define bfin_read_CAN_MB09_DATA1() bfin_read16(CAN_MB09_DATA1)
1594#define bfin_write_CAN_MB09_DATA1(val) bfin_write16(CAN_MB09_DATA1, val)
1595#define bfin_read_CAN_MB09_DATA2() bfin_read16(CAN_MB09_DATA2)
1596#define bfin_write_CAN_MB09_DATA2(val) bfin_write16(CAN_MB09_DATA2, val)
1597#define bfin_read_CAN_MB09_DATA3() bfin_read16(CAN_MB09_DATA3)
1598#define bfin_write_CAN_MB09_DATA3(val) bfin_write16(CAN_MB09_DATA3, val)
1599#define bfin_read_CAN_MB09_LENGTH() bfin_read16(CAN_MB09_LENGTH)
1600#define bfin_write_CAN_MB09_LENGTH(val) bfin_write16(CAN_MB09_LENGTH, val)
1601#define bfin_read_CAN_MB09_TIMESTAMP() bfin_read16(CAN_MB09_TIMESTAMP)
1602#define bfin_write_CAN_MB09_TIMESTAMP(val) bfin_write16(CAN_MB09_TIMESTAMP, val)
1603#define bfin_read_CAN_MB09_ID0() bfin_read16(CAN_MB09_ID0)
1604#define bfin_write_CAN_MB09_ID0(val) bfin_write16(CAN_MB09_ID0, val)
1605#define bfin_read_CAN_MB09_ID1() bfin_read16(CAN_MB09_ID1)
1606#define bfin_write_CAN_MB09_ID1(val) bfin_write16(CAN_MB09_ID1, val)
1607#define bfin_read_CAN_MB10_DATA0() bfin_read16(CAN_MB10_DATA0)
1608#define bfin_write_CAN_MB10_DATA0(val) bfin_write16(CAN_MB10_DATA0, val)
1609#define bfin_read_CAN_MB10_DATA1() bfin_read16(CAN_MB10_DATA1)
1610#define bfin_write_CAN_MB10_DATA1(val) bfin_write16(CAN_MB10_DATA1, val)
1611#define bfin_read_CAN_MB10_DATA2() bfin_read16(CAN_MB10_DATA2)
1612#define bfin_write_CAN_MB10_DATA2(val) bfin_write16(CAN_MB10_DATA2, val)
1613#define bfin_read_CAN_MB10_DATA3() bfin_read16(CAN_MB10_DATA3)
1614#define bfin_write_CAN_MB10_DATA3(val) bfin_write16(CAN_MB10_DATA3, val)
1615#define bfin_read_CAN_MB10_LENGTH() bfin_read16(CAN_MB10_LENGTH)
1616#define bfin_write_CAN_MB10_LENGTH(val) bfin_write16(CAN_MB10_LENGTH, val)
1617#define bfin_read_CAN_MB10_TIMESTAMP() bfin_read16(CAN_MB10_TIMESTAMP)
1618#define bfin_write_CAN_MB10_TIMESTAMP(val) bfin_write16(CAN_MB10_TIMESTAMP, val)
1619#define bfin_read_CAN_MB10_ID0() bfin_read16(CAN_MB10_ID0)
1620#define bfin_write_CAN_MB10_ID0(val) bfin_write16(CAN_MB10_ID0, val)
1621#define bfin_read_CAN_MB10_ID1() bfin_read16(CAN_MB10_ID1)
1622#define bfin_write_CAN_MB10_ID1(val) bfin_write16(CAN_MB10_ID1, val)
1623#define bfin_read_CAN_MB11_DATA0() bfin_read16(CAN_MB11_DATA0)
1624#define bfin_write_CAN_MB11_DATA0(val) bfin_write16(CAN_MB11_DATA0, val)
1625#define bfin_read_CAN_MB11_DATA1() bfin_read16(CAN_MB11_DATA1)
1626#define bfin_write_CAN_MB11_DATA1(val) bfin_write16(CAN_MB11_DATA1, val)
1627#define bfin_read_CAN_MB11_DATA2() bfin_read16(CAN_MB11_DATA2)
1628#define bfin_write_CAN_MB11_DATA2(val) bfin_write16(CAN_MB11_DATA2, val)
1629#define bfin_read_CAN_MB11_DATA3() bfin_read16(CAN_MB11_DATA3)
1630#define bfin_write_CAN_MB11_DATA3(val) bfin_write16(CAN_MB11_DATA3, val)
1631#define bfin_read_CAN_MB11_LENGTH() bfin_read16(CAN_MB11_LENGTH)
1632#define bfin_write_CAN_MB11_LENGTH(val) bfin_write16(CAN_MB11_LENGTH, val)
1633#define bfin_read_CAN_MB11_TIMESTAMP() bfin_read16(CAN_MB11_TIMESTAMP)
1634#define bfin_write_CAN_MB11_TIMESTAMP(val) bfin_write16(CAN_MB11_TIMESTAMP, val)
1635#define bfin_read_CAN_MB11_ID0() bfin_read16(CAN_MB11_ID0)
1636#define bfin_write_CAN_MB11_ID0(val) bfin_write16(CAN_MB11_ID0, val)
1637#define bfin_read_CAN_MB11_ID1() bfin_read16(CAN_MB11_ID1)
1638#define bfin_write_CAN_MB11_ID1(val) bfin_write16(CAN_MB11_ID1, val)
1639#define bfin_read_CAN_MB12_DATA0() bfin_read16(CAN_MB12_DATA0)
1640#define bfin_write_CAN_MB12_DATA0(val) bfin_write16(CAN_MB12_DATA0, val)
1641#define bfin_read_CAN_MB12_DATA1() bfin_read16(CAN_MB12_DATA1)
1642#define bfin_write_CAN_MB12_DATA1(val) bfin_write16(CAN_MB12_DATA1, val)
1643#define bfin_read_CAN_MB12_DATA2() bfin_read16(CAN_MB12_DATA2)
1644#define bfin_write_CAN_MB12_DATA2(val) bfin_write16(CAN_MB12_DATA2, val)
1645#define bfin_read_CAN_MB12_DATA3() bfin_read16(CAN_MB12_DATA3)
1646#define bfin_write_CAN_MB12_DATA3(val) bfin_write16(CAN_MB12_DATA3, val)
1647#define bfin_read_CAN_MB12_LENGTH() bfin_read16(CAN_MB12_LENGTH)
1648#define bfin_write_CAN_MB12_LENGTH(val) bfin_write16(CAN_MB12_LENGTH, val)
1649#define bfin_read_CAN_MB12_TIMESTAMP() bfin_read16(CAN_MB12_TIMESTAMP)
1650#define bfin_write_CAN_MB12_TIMESTAMP(val) bfin_write16(CAN_MB12_TIMESTAMP, val)
1651#define bfin_read_CAN_MB12_ID0() bfin_read16(CAN_MB12_ID0)
1652#define bfin_write_CAN_MB12_ID0(val) bfin_write16(CAN_MB12_ID0, val)
1653#define bfin_read_CAN_MB12_ID1() bfin_read16(CAN_MB12_ID1)
1654#define bfin_write_CAN_MB12_ID1(val) bfin_write16(CAN_MB12_ID1, val)
1655#define bfin_read_CAN_MB13_DATA0() bfin_read16(CAN_MB13_DATA0)
1656#define bfin_write_CAN_MB13_DATA0(val) bfin_write16(CAN_MB13_DATA0, val)
1657#define bfin_read_CAN_MB13_DATA1() bfin_read16(CAN_MB13_DATA1)
1658#define bfin_write_CAN_MB13_DATA1(val) bfin_write16(CAN_MB13_DATA1, val)
1659#define bfin_read_CAN_MB13_DATA2() bfin_read16(CAN_MB13_DATA2)
1660#define bfin_write_CAN_MB13_DATA2(val) bfin_write16(CAN_MB13_DATA2, val)
1661#define bfin_read_CAN_MB13_DATA3() bfin_read16(CAN_MB13_DATA3)
1662#define bfin_write_CAN_MB13_DATA3(val) bfin_write16(CAN_MB13_DATA3, val)
1663#define bfin_read_CAN_MB13_LENGTH() bfin_read16(CAN_MB13_LENGTH)
1664#define bfin_write_CAN_MB13_LENGTH(val) bfin_write16(CAN_MB13_LENGTH, val)
1665#define bfin_read_CAN_MB13_TIMESTAMP() bfin_read16(CAN_MB13_TIMESTAMP)
1666#define bfin_write_CAN_MB13_TIMESTAMP(val) bfin_write16(CAN_MB13_TIMESTAMP, val)
1667#define bfin_read_CAN_MB13_ID0() bfin_read16(CAN_MB13_ID0)
1668#define bfin_write_CAN_MB13_ID0(val) bfin_write16(CAN_MB13_ID0, val)
1669#define bfin_read_CAN_MB13_ID1() bfin_read16(CAN_MB13_ID1)
1670#define bfin_write_CAN_MB13_ID1(val) bfin_write16(CAN_MB13_ID1, val)
1671#define bfin_read_CAN_MB14_DATA0() bfin_read16(CAN_MB14_DATA0)
1672#define bfin_write_CAN_MB14_DATA0(val) bfin_write16(CAN_MB14_DATA0, val)
1673#define bfin_read_CAN_MB14_DATA1() bfin_read16(CAN_MB14_DATA1)
1674#define bfin_write_CAN_MB14_DATA1(val) bfin_write16(CAN_MB14_DATA1, val)
1675#define bfin_read_CAN_MB14_DATA2() bfin_read16(CAN_MB14_DATA2)
1676#define bfin_write_CAN_MB14_DATA2(val) bfin_write16(CAN_MB14_DATA2, val)
1677#define bfin_read_CAN_MB14_DATA3() bfin_read16(CAN_MB14_DATA3)
1678#define bfin_write_CAN_MB14_DATA3(val) bfin_write16(CAN_MB14_DATA3, val)
1679#define bfin_read_CAN_MB14_LENGTH() bfin_read16(CAN_MB14_LENGTH)
1680#define bfin_write_CAN_MB14_LENGTH(val) bfin_write16(CAN_MB14_LENGTH, val)
1681#define bfin_read_CAN_MB14_TIMESTAMP() bfin_read16(CAN_MB14_TIMESTAMP)
1682#define bfin_write_CAN_MB14_TIMESTAMP(val) bfin_write16(CAN_MB14_TIMESTAMP, val)
1683#define bfin_read_CAN_MB14_ID0() bfin_read16(CAN_MB14_ID0)
1684#define bfin_write_CAN_MB14_ID0(val) bfin_write16(CAN_MB14_ID0, val)
1685#define bfin_read_CAN_MB14_ID1() bfin_read16(CAN_MB14_ID1)
1686#define bfin_write_CAN_MB14_ID1(val) bfin_write16(CAN_MB14_ID1, val)
1687#define bfin_read_CAN_MB15_DATA0() bfin_read16(CAN_MB15_DATA0)
1688#define bfin_write_CAN_MB15_DATA0(val) bfin_write16(CAN_MB15_DATA0, val)
1689#define bfin_read_CAN_MB15_DATA1() bfin_read16(CAN_MB15_DATA1)
1690#define bfin_write_CAN_MB15_DATA1(val) bfin_write16(CAN_MB15_DATA1, val)
1691#define bfin_read_CAN_MB15_DATA2() bfin_read16(CAN_MB15_DATA2)
1692#define bfin_write_CAN_MB15_DATA2(val) bfin_write16(CAN_MB15_DATA2, val)
1693#define bfin_read_CAN_MB15_DATA3() bfin_read16(CAN_MB15_DATA3)
1694#define bfin_write_CAN_MB15_DATA3(val) bfin_write16(CAN_MB15_DATA3, val)
1695#define bfin_read_CAN_MB15_LENGTH() bfin_read16(CAN_MB15_LENGTH)
1696#define bfin_write_CAN_MB15_LENGTH(val) bfin_write16(CAN_MB15_LENGTH, val)
1697#define bfin_read_CAN_MB15_TIMESTAMP() bfin_read16(CAN_MB15_TIMESTAMP)
1698#define bfin_write_CAN_MB15_TIMESTAMP(val) bfin_write16(CAN_MB15_TIMESTAMP, val)
1699#define bfin_read_CAN_MB15_ID0() bfin_read16(CAN_MB15_ID0)
1700#define bfin_write_CAN_MB15_ID0(val) bfin_write16(CAN_MB15_ID0, val)
1701#define bfin_read_CAN_MB15_ID1() bfin_read16(CAN_MB15_ID1)
1702#define bfin_write_CAN_MB15_ID1(val) bfin_write16(CAN_MB15_ID1, val)
1703#define bfin_read_CAN_MB16_DATA0() bfin_read16(CAN_MB16_DATA0)
1704#define bfin_write_CAN_MB16_DATA0(val) bfin_write16(CAN_MB16_DATA0, val)
1705#define bfin_read_CAN_MB16_DATA1() bfin_read16(CAN_MB16_DATA1)
1706#define bfin_write_CAN_MB16_DATA1(val) bfin_write16(CAN_MB16_DATA1, val)
1707#define bfin_read_CAN_MB16_DATA2() bfin_read16(CAN_MB16_DATA2)
1708#define bfin_write_CAN_MB16_DATA2(val) bfin_write16(CAN_MB16_DATA2, val)
1709#define bfin_read_CAN_MB16_DATA3() bfin_read16(CAN_MB16_DATA3)
1710#define bfin_write_CAN_MB16_DATA3(val) bfin_write16(CAN_MB16_DATA3, val)
1711#define bfin_read_CAN_MB16_LENGTH() bfin_read16(CAN_MB16_LENGTH)
1712#define bfin_write_CAN_MB16_LENGTH(val) bfin_write16(CAN_MB16_LENGTH, val)
1713#define bfin_read_CAN_MB16_TIMESTAMP() bfin_read16(CAN_MB16_TIMESTAMP)
1714#define bfin_write_CAN_MB16_TIMESTAMP(val) bfin_write16(CAN_MB16_TIMESTAMP, val)
1715#define bfin_read_CAN_MB16_ID0() bfin_read16(CAN_MB16_ID0)
1716#define bfin_write_CAN_MB16_ID0(val) bfin_write16(CAN_MB16_ID0, val)
1717#define bfin_read_CAN_MB16_ID1() bfin_read16(CAN_MB16_ID1)
1718#define bfin_write_CAN_MB16_ID1(val) bfin_write16(CAN_MB16_ID1, val)
1719#define bfin_read_CAN_MB17_DATA0() bfin_read16(CAN_MB17_DATA0)
1720#define bfin_write_CAN_MB17_DATA0(val) bfin_write16(CAN_MB17_DATA0, val)
1721#define bfin_read_CAN_MB17_DATA1() bfin_read16(CAN_MB17_DATA1)
1722#define bfin_write_CAN_MB17_DATA1(val) bfin_write16(CAN_MB17_DATA1, val)
1723#define bfin_read_CAN_MB17_DATA2() bfin_read16(CAN_MB17_DATA2)
1724#define bfin_write_CAN_MB17_DATA2(val) bfin_write16(CAN_MB17_DATA2, val)
1725#define bfin_read_CAN_MB17_DATA3() bfin_read16(CAN_MB17_DATA3)
1726#define bfin_write_CAN_MB17_DATA3(val) bfin_write16(CAN_MB17_DATA3, val)
1727#define bfin_read_CAN_MB17_LENGTH() bfin_read16(CAN_MB17_LENGTH)
1728#define bfin_write_CAN_MB17_LENGTH(val) bfin_write16(CAN_MB17_LENGTH, val)
1729#define bfin_read_CAN_MB17_TIMESTAMP() bfin_read16(CAN_MB17_TIMESTAMP)
1730#define bfin_write_CAN_MB17_TIMESTAMP(val) bfin_write16(CAN_MB17_TIMESTAMP, val)
1731#define bfin_read_CAN_MB17_ID0() bfin_read16(CAN_MB17_ID0)
1732#define bfin_write_CAN_MB17_ID0(val) bfin_write16(CAN_MB17_ID0, val)
1733#define bfin_read_CAN_MB17_ID1() bfin_read16(CAN_MB17_ID1)
1734#define bfin_write_CAN_MB17_ID1(val) bfin_write16(CAN_MB17_ID1, val)
1735#define bfin_read_CAN_MB18_DATA0() bfin_read16(CAN_MB18_DATA0)
1736#define bfin_write_CAN_MB18_DATA0(val) bfin_write16(CAN_MB18_DATA0, val)
1737#define bfin_read_CAN_MB18_DATA1() bfin_read16(CAN_MB18_DATA1)
1738#define bfin_write_CAN_MB18_DATA1(val) bfin_write16(CAN_MB18_DATA1, val)
1739#define bfin_read_CAN_MB18_DATA2() bfin_read16(CAN_MB18_DATA2)
1740#define bfin_write_CAN_MB18_DATA2(val) bfin_write16(CAN_MB18_DATA2, val)
1741#define bfin_read_CAN_MB18_DATA3() bfin_read16(CAN_MB18_DATA3)
1742#define bfin_write_CAN_MB18_DATA3(val) bfin_write16(CAN_MB18_DATA3, val)
1743#define bfin_read_CAN_MB18_LENGTH() bfin_read16(CAN_MB18_LENGTH)
1744#define bfin_write_CAN_MB18_LENGTH(val) bfin_write16(CAN_MB18_LENGTH, val)
1745#define bfin_read_CAN_MB18_TIMESTAMP() bfin_read16(CAN_MB18_TIMESTAMP)
1746#define bfin_write_CAN_MB18_TIMESTAMP(val) bfin_write16(CAN_MB18_TIMESTAMP, val)
1747#define bfin_read_CAN_MB18_ID0() bfin_read16(CAN_MB18_ID0)
1748#define bfin_write_CAN_MB18_ID0(val) bfin_write16(CAN_MB18_ID0, val)
1749#define bfin_read_CAN_MB18_ID1() bfin_read16(CAN_MB18_ID1)
1750#define bfin_write_CAN_MB18_ID1(val) bfin_write16(CAN_MB18_ID1, val)
1751#define bfin_read_CAN_MB19_DATA0() bfin_read16(CAN_MB19_DATA0)
1752#define bfin_write_CAN_MB19_DATA0(val) bfin_write16(CAN_MB19_DATA0, val)
1753#define bfin_read_CAN_MB19_DATA1() bfin_read16(CAN_MB19_DATA1)
1754#define bfin_write_CAN_MB19_DATA1(val) bfin_write16(CAN_MB19_DATA1, val)
1755#define bfin_read_CAN_MB19_DATA2() bfin_read16(CAN_MB19_DATA2)
1756#define bfin_write_CAN_MB19_DATA2(val) bfin_write16(CAN_MB19_DATA2, val)
1757#define bfin_read_CAN_MB19_DATA3() bfin_read16(CAN_MB19_DATA3)
1758#define bfin_write_CAN_MB19_DATA3(val) bfin_write16(CAN_MB19_DATA3, val)
1759#define bfin_read_CAN_MB19_LENGTH() bfin_read16(CAN_MB19_LENGTH)
1760#define bfin_write_CAN_MB19_LENGTH(val) bfin_write16(CAN_MB19_LENGTH, val)
1761#define bfin_read_CAN_MB19_TIMESTAMP() bfin_read16(CAN_MB19_TIMESTAMP)
1762#define bfin_write_CAN_MB19_TIMESTAMP(val) bfin_write16(CAN_MB19_TIMESTAMP, val)
1763#define bfin_read_CAN_MB19_ID0() bfin_read16(CAN_MB19_ID0)
1764#define bfin_write_CAN_MB19_ID0(val) bfin_write16(CAN_MB19_ID0, val)
1765#define bfin_read_CAN_MB19_ID1() bfin_read16(CAN_MB19_ID1)
1766#define bfin_write_CAN_MB19_ID1(val) bfin_write16(CAN_MB19_ID1, val)
1767#define bfin_read_CAN_MB20_DATA0() bfin_read16(CAN_MB20_DATA0)
1768#define bfin_write_CAN_MB20_DATA0(val) bfin_write16(CAN_MB20_DATA0, val)
1769#define bfin_read_CAN_MB20_DATA1() bfin_read16(CAN_MB20_DATA1)
1770#define bfin_write_CAN_MB20_DATA1(val) bfin_write16(CAN_MB20_DATA1, val)
1771#define bfin_read_CAN_MB20_DATA2() bfin_read16(CAN_MB20_DATA2)
1772#define bfin_write_CAN_MB20_DATA2(val) bfin_write16(CAN_MB20_DATA2, val)
1773#define bfin_read_CAN_MB20_DATA3() bfin_read16(CAN_MB20_DATA3)
1774#define bfin_write_CAN_MB20_DATA3(val) bfin_write16(CAN_MB20_DATA3, val)
1775#define bfin_read_CAN_MB20_LENGTH() bfin_read16(CAN_MB20_LENGTH)
1776#define bfin_write_CAN_MB20_LENGTH(val) bfin_write16(CAN_MB20_LENGTH, val)
1777#define bfin_read_CAN_MB20_TIMESTAMP() bfin_read16(CAN_MB20_TIMESTAMP)
1778#define bfin_write_CAN_MB20_TIMESTAMP(val) bfin_write16(CAN_MB20_TIMESTAMP, val)
1779#define bfin_read_CAN_MB20_ID0() bfin_read16(CAN_MB20_ID0)
1780#define bfin_write_CAN_MB20_ID0(val) bfin_write16(CAN_MB20_ID0, val)
1781#define bfin_read_CAN_MB20_ID1() bfin_read16(CAN_MB20_ID1)
1782#define bfin_write_CAN_MB20_ID1(val) bfin_write16(CAN_MB20_ID1, val)
1783#define bfin_read_CAN_MB21_DATA0() bfin_read16(CAN_MB21_DATA0)
1784#define bfin_write_CAN_MB21_DATA0(val) bfin_write16(CAN_MB21_DATA0, val)
1785#define bfin_read_CAN_MB21_DATA1() bfin_read16(CAN_MB21_DATA1)
1786#define bfin_write_CAN_MB21_DATA1(val) bfin_write16(CAN_MB21_DATA1, val)
1787#define bfin_read_CAN_MB21_DATA2() bfin_read16(CAN_MB21_DATA2)
1788#define bfin_write_CAN_MB21_DATA2(val) bfin_write16(CAN_MB21_DATA2, val)
1789#define bfin_read_CAN_MB21_DATA3() bfin_read16(CAN_MB21_DATA3)
1790#define bfin_write_CAN_MB21_DATA3(val) bfin_write16(CAN_MB21_DATA3, val)
1791#define bfin_read_CAN_MB21_LENGTH() bfin_read16(CAN_MB21_LENGTH)
1792#define bfin_write_CAN_MB21_LENGTH(val) bfin_write16(CAN_MB21_LENGTH, val)
1793#define bfin_read_CAN_MB21_TIMESTAMP() bfin_read16(CAN_MB21_TIMESTAMP)
1794#define bfin_write_CAN_MB21_TIMESTAMP(val) bfin_write16(CAN_MB21_TIMESTAMP, val)
1795#define bfin_read_CAN_MB21_ID0() bfin_read16(CAN_MB21_ID0)
1796#define bfin_write_CAN_MB21_ID0(val) bfin_write16(CAN_MB21_ID0, val)
1797#define bfin_read_CAN_MB21_ID1() bfin_read16(CAN_MB21_ID1)
1798#define bfin_write_CAN_MB21_ID1(val) bfin_write16(CAN_MB21_ID1, val)
1799#define bfin_read_CAN_MB22_DATA0() bfin_read16(CAN_MB22_DATA0)
1800#define bfin_write_CAN_MB22_DATA0(val) bfin_write16(CAN_MB22_DATA0, val)
1801#define bfin_read_CAN_MB22_DATA1() bfin_read16(CAN_MB22_DATA1)
1802#define bfin_write_CAN_MB22_DATA1(val) bfin_write16(CAN_MB22_DATA1, val)
1803#define bfin_read_CAN_MB22_DATA2() bfin_read16(CAN_MB22_DATA2)
1804#define bfin_write_CAN_MB22_DATA2(val) bfin_write16(CAN_MB22_DATA2, val)
1805#define bfin_read_CAN_MB22_DATA3() bfin_read16(CAN_MB22_DATA3)
1806#define bfin_write_CAN_MB22_DATA3(val) bfin_write16(CAN_MB22_DATA3, val)
1807#define bfin_read_CAN_MB22_LENGTH() bfin_read16(CAN_MB22_LENGTH)
1808#define bfin_write_CAN_MB22_LENGTH(val) bfin_write16(CAN_MB22_LENGTH, val)
1809#define bfin_read_CAN_MB22_TIMESTAMP() bfin_read16(CAN_MB22_TIMESTAMP)
1810#define bfin_write_CAN_MB22_TIMESTAMP(val) bfin_write16(CAN_MB22_TIMESTAMP, val)
1811#define bfin_read_CAN_MB22_ID0() bfin_read16(CAN_MB22_ID0)
1812#define bfin_write_CAN_MB22_ID0(val) bfin_write16(CAN_MB22_ID0, val)
1813#define bfin_read_CAN_MB22_ID1() bfin_read16(CAN_MB22_ID1)
1814#define bfin_write_CAN_MB22_ID1(val) bfin_write16(CAN_MB22_ID1, val)
1815#define bfin_read_CAN_MB23_DATA0() bfin_read16(CAN_MB23_DATA0)
1816#define bfin_write_CAN_MB23_DATA0(val) bfin_write16(CAN_MB23_DATA0, val)
1817#define bfin_read_CAN_MB23_DATA1() bfin_read16(CAN_MB23_DATA1)
1818#define bfin_write_CAN_MB23_DATA1(val) bfin_write16(CAN_MB23_DATA1, val)
1819#define bfin_read_CAN_MB23_DATA2() bfin_read16(CAN_MB23_DATA2)
1820#define bfin_write_CAN_MB23_DATA2(val) bfin_write16(CAN_MB23_DATA2, val)
1821#define bfin_read_CAN_MB23_DATA3() bfin_read16(CAN_MB23_DATA3)
1822#define bfin_write_CAN_MB23_DATA3(val) bfin_write16(CAN_MB23_DATA3, val)
1823#define bfin_read_CAN_MB23_LENGTH() bfin_read16(CAN_MB23_LENGTH)
1824#define bfin_write_CAN_MB23_LENGTH(val) bfin_write16(CAN_MB23_LENGTH, val)
1825#define bfin_read_CAN_MB23_TIMESTAMP() bfin_read16(CAN_MB23_TIMESTAMP)
1826#define bfin_write_CAN_MB23_TIMESTAMP(val) bfin_write16(CAN_MB23_TIMESTAMP, val)
1827#define bfin_read_CAN_MB23_ID0() bfin_read16(CAN_MB23_ID0)
1828#define bfin_write_CAN_MB23_ID0(val) bfin_write16(CAN_MB23_ID0, val)
1829#define bfin_read_CAN_MB23_ID1() bfin_read16(CAN_MB23_ID1)
1830#define bfin_write_CAN_MB23_ID1(val) bfin_write16(CAN_MB23_ID1, val)
1831#define bfin_read_CAN_MB24_DATA0() bfin_read16(CAN_MB24_DATA0)
1832#define bfin_write_CAN_MB24_DATA0(val) bfin_write16(CAN_MB24_DATA0, val)
1833#define bfin_read_CAN_MB24_DATA1() bfin_read16(CAN_MB24_DATA1)
1834#define bfin_write_CAN_MB24_DATA1(val) bfin_write16(CAN_MB24_DATA1, val)
1835#define bfin_read_CAN_MB24_DATA2() bfin_read16(CAN_MB24_DATA2)
1836#define bfin_write_CAN_MB24_DATA2(val) bfin_write16(CAN_MB24_DATA2, val)
1837#define bfin_read_CAN_MB24_DATA3() bfin_read16(CAN_MB24_DATA3)
1838#define bfin_write_CAN_MB24_DATA3(val) bfin_write16(CAN_MB24_DATA3, val)
1839#define bfin_read_CAN_MB24_LENGTH() bfin_read16(CAN_MB24_LENGTH)
1840#define bfin_write_CAN_MB24_LENGTH(val) bfin_write16(CAN_MB24_LENGTH, val)
1841#define bfin_read_CAN_MB24_TIMESTAMP() bfin_read16(CAN_MB24_TIMESTAMP)
1842#define bfin_write_CAN_MB24_TIMESTAMP(val) bfin_write16(CAN_MB24_TIMESTAMP, val)
1843#define bfin_read_CAN_MB24_ID0() bfin_read16(CAN_MB24_ID0)
1844#define bfin_write_CAN_MB24_ID0(val) bfin_write16(CAN_MB24_ID0, val)
1845#define bfin_read_CAN_MB24_ID1() bfin_read16(CAN_MB24_ID1)
1846#define bfin_write_CAN_MB24_ID1(val) bfin_write16(CAN_MB24_ID1, val)
1847#define bfin_read_CAN_MB25_DATA0() bfin_read16(CAN_MB25_DATA0)
1848#define bfin_write_CAN_MB25_DATA0(val) bfin_write16(CAN_MB25_DATA0, val)
1849#define bfin_read_CAN_MB25_DATA1() bfin_read16(CAN_MB25_DATA1)
1850#define bfin_write_CAN_MB25_DATA1(val) bfin_write16(CAN_MB25_DATA1, val)
1851#define bfin_read_CAN_MB25_DATA2() bfin_read16(CAN_MB25_DATA2)
1852#define bfin_write_CAN_MB25_DATA2(val) bfin_write16(CAN_MB25_DATA2, val)
1853#define bfin_read_CAN_MB25_DATA3() bfin_read16(CAN_MB25_DATA3)
1854#define bfin_write_CAN_MB25_DATA3(val) bfin_write16(CAN_MB25_DATA3, val)
1855#define bfin_read_CAN_MB25_LENGTH() bfin_read16(CAN_MB25_LENGTH)
1856#define bfin_write_CAN_MB25_LENGTH(val) bfin_write16(CAN_MB25_LENGTH, val)
1857#define bfin_read_CAN_MB25_TIMESTAMP() bfin_read16(CAN_MB25_TIMESTAMP)
1858#define bfin_write_CAN_MB25_TIMESTAMP(val) bfin_write16(CAN_MB25_TIMESTAMP, val)
1859#define bfin_read_CAN_MB25_ID0() bfin_read16(CAN_MB25_ID0)
1860#define bfin_write_CAN_MB25_ID0(val) bfin_write16(CAN_MB25_ID0, val)
1861#define bfin_read_CAN_MB25_ID1() bfin_read16(CAN_MB25_ID1)
1862#define bfin_write_CAN_MB25_ID1(val) bfin_write16(CAN_MB25_ID1, val)
1863#define bfin_read_CAN_MB26_DATA0() bfin_read16(CAN_MB26_DATA0)
1864#define bfin_write_CAN_MB26_DATA0(val) bfin_write16(CAN_MB26_DATA0, val)
1865#define bfin_read_CAN_MB26_DATA1() bfin_read16(CAN_MB26_DATA1)
1866#define bfin_write_CAN_MB26_DATA1(val) bfin_write16(CAN_MB26_DATA1, val)
1867#define bfin_read_CAN_MB26_DATA2() bfin_read16(CAN_MB26_DATA2)
1868#define bfin_write_CAN_MB26_DATA2(val) bfin_write16(CAN_MB26_DATA2, val)
1869#define bfin_read_CAN_MB26_DATA3() bfin_read16(CAN_MB26_DATA3)
1870#define bfin_write_CAN_MB26_DATA3(val) bfin_write16(CAN_MB26_DATA3, val)
1871#define bfin_read_CAN_MB26_LENGTH() bfin_read16(CAN_MB26_LENGTH)
1872#define bfin_write_CAN_MB26_LENGTH(val) bfin_write16(CAN_MB26_LENGTH, val)
1873#define bfin_read_CAN_MB26_TIMESTAMP() bfin_read16(CAN_MB26_TIMESTAMP)
1874#define bfin_write_CAN_MB26_TIMESTAMP(val) bfin_write16(CAN_MB26_TIMESTAMP, val)
1875#define bfin_read_CAN_MB26_ID0() bfin_read16(CAN_MB26_ID0)
1876#define bfin_write_CAN_MB26_ID0(val) bfin_write16(CAN_MB26_ID0, val)
1877#define bfin_read_CAN_MB26_ID1() bfin_read16(CAN_MB26_ID1)
1878#define bfin_write_CAN_MB26_ID1(val) bfin_write16(CAN_MB26_ID1, val)
1879#define bfin_read_CAN_MB27_DATA0() bfin_read16(CAN_MB27_DATA0)
1880#define bfin_write_CAN_MB27_DATA0(val) bfin_write16(CAN_MB27_DATA0, val)
1881#define bfin_read_CAN_MB27_DATA1() bfin_read16(CAN_MB27_DATA1)
1882#define bfin_write_CAN_MB27_DATA1(val) bfin_write16(CAN_MB27_DATA1, val)
1883#define bfin_read_CAN_MB27_DATA2() bfin_read16(CAN_MB27_DATA2)
1884#define bfin_write_CAN_MB27_DATA2(val) bfin_write16(CAN_MB27_DATA2, val)
1885#define bfin_read_CAN_MB27_DATA3() bfin_read16(CAN_MB27_DATA3)
1886#define bfin_write_CAN_MB27_DATA3(val) bfin_write16(CAN_MB27_DATA3, val)
1887#define bfin_read_CAN_MB27_LENGTH() bfin_read16(CAN_MB27_LENGTH)
1888#define bfin_write_CAN_MB27_LENGTH(val) bfin_write16(CAN_MB27_LENGTH, val)
1889#define bfin_read_CAN_MB27_TIMESTAMP() bfin_read16(CAN_MB27_TIMESTAMP)
1890#define bfin_write_CAN_MB27_TIMESTAMP(val) bfin_write16(CAN_MB27_TIMESTAMP, val)
1891#define bfin_read_CAN_MB27_ID0() bfin_read16(CAN_MB27_ID0)
1892#define bfin_write_CAN_MB27_ID0(val) bfin_write16(CAN_MB27_ID0, val)
1893#define bfin_read_CAN_MB27_ID1() bfin_read16(CAN_MB27_ID1)
1894#define bfin_write_CAN_MB27_ID1(val) bfin_write16(CAN_MB27_ID1, val)
1895#define bfin_read_CAN_MB28_DATA0() bfin_read16(CAN_MB28_DATA0)
1896#define bfin_write_CAN_MB28_DATA0(val) bfin_write16(CAN_MB28_DATA0, val)
1897#define bfin_read_CAN_MB28_DATA1() bfin_read16(CAN_MB28_DATA1)
1898#define bfin_write_CAN_MB28_DATA1(val) bfin_write16(CAN_MB28_DATA1, val)
1899#define bfin_read_CAN_MB28_DATA2() bfin_read16(CAN_MB28_DATA2)
1900#define bfin_write_CAN_MB28_DATA2(val) bfin_write16(CAN_MB28_DATA2, val)
1901#define bfin_read_CAN_MB28_DATA3() bfin_read16(CAN_MB28_DATA3)
1902#define bfin_write_CAN_MB28_DATA3(val) bfin_write16(CAN_MB28_DATA3, val)
1903#define bfin_read_CAN_MB28_LENGTH() bfin_read16(CAN_MB28_LENGTH)
1904#define bfin_write_CAN_MB28_LENGTH(val) bfin_write16(CAN_MB28_LENGTH, val)
1905#define bfin_read_CAN_MB28_TIMESTAMP() bfin_read16(CAN_MB28_TIMESTAMP)
1906#define bfin_write_CAN_MB28_TIMESTAMP(val) bfin_write16(CAN_MB28_TIMESTAMP, val)
1907#define bfin_read_CAN_MB28_ID0() bfin_read16(CAN_MB28_ID0)
1908#define bfin_write_CAN_MB28_ID0(val) bfin_write16(CAN_MB28_ID0, val)
1909#define bfin_read_CAN_MB28_ID1() bfin_read16(CAN_MB28_ID1)
1910#define bfin_write_CAN_MB28_ID1(val) bfin_write16(CAN_MB28_ID1, val)
1911#define bfin_read_CAN_MB29_DATA0() bfin_read16(CAN_MB29_DATA0)
1912#define bfin_write_CAN_MB29_DATA0(val) bfin_write16(CAN_MB29_DATA0, val)
1913#define bfin_read_CAN_MB29_DATA1() bfin_read16(CAN_MB29_DATA1)
1914#define bfin_write_CAN_MB29_DATA1(val) bfin_write16(CAN_MB29_DATA1, val)
1915#define bfin_read_CAN_MB29_DATA2() bfin_read16(CAN_MB29_DATA2)
1916#define bfin_write_CAN_MB29_DATA2(val) bfin_write16(CAN_MB29_DATA2, val)
1917#define bfin_read_CAN_MB29_DATA3() bfin_read16(CAN_MB29_DATA3)
1918#define bfin_write_CAN_MB29_DATA3(val) bfin_write16(CAN_MB29_DATA3, val)
1919#define bfin_read_CAN_MB29_LENGTH() bfin_read16(CAN_MB29_LENGTH)
1920#define bfin_write_CAN_MB29_LENGTH(val) bfin_write16(CAN_MB29_LENGTH, val)
1921#define bfin_read_CAN_MB29_TIMESTAMP() bfin_read16(CAN_MB29_TIMESTAMP)
1922#define bfin_write_CAN_MB29_TIMESTAMP(val) bfin_write16(CAN_MB29_TIMESTAMP, val)
1923#define bfin_read_CAN_MB29_ID0() bfin_read16(CAN_MB29_ID0)
1924#define bfin_write_CAN_MB29_ID0(val) bfin_write16(CAN_MB29_ID0, val)
1925#define bfin_read_CAN_MB29_ID1() bfin_read16(CAN_MB29_ID1)
1926#define bfin_write_CAN_MB29_ID1(val) bfin_write16(CAN_MB29_ID1, val)
1927#define bfin_read_CAN_MB30_DATA0() bfin_read16(CAN_MB30_DATA0)
1928#define bfin_write_CAN_MB30_DATA0(val) bfin_write16(CAN_MB30_DATA0, val)
1929#define bfin_read_CAN_MB30_DATA1() bfin_read16(CAN_MB30_DATA1)
1930#define bfin_write_CAN_MB30_DATA1(val) bfin_write16(CAN_MB30_DATA1, val)
1931#define bfin_read_CAN_MB30_DATA2() bfin_read16(CAN_MB30_DATA2)
1932#define bfin_write_CAN_MB30_DATA2(val) bfin_write16(CAN_MB30_DATA2, val)
1933#define bfin_read_CAN_MB30_DATA3() bfin_read16(CAN_MB30_DATA3)
1934#define bfin_write_CAN_MB30_DATA3(val) bfin_write16(CAN_MB30_DATA3, val)
1935#define bfin_read_CAN_MB30_LENGTH() bfin_read16(CAN_MB30_LENGTH)
1936#define bfin_write_CAN_MB30_LENGTH(val) bfin_write16(CAN_MB30_LENGTH, val)
1937#define bfin_read_CAN_MB30_TIMESTAMP() bfin_read16(CAN_MB30_TIMESTAMP)
1938#define bfin_write_CAN_MB30_TIMESTAMP(val) bfin_write16(CAN_MB30_TIMESTAMP, val)
1939#define bfin_read_CAN_MB30_ID0() bfin_read16(CAN_MB30_ID0)
1940#define bfin_write_CAN_MB30_ID0(val) bfin_write16(CAN_MB30_ID0, val)
1941#define bfin_read_CAN_MB30_ID1() bfin_read16(CAN_MB30_ID1)
1942#define bfin_write_CAN_MB30_ID1(val) bfin_write16(CAN_MB30_ID1, val)
1943#define bfin_read_CAN_MB31_DATA0() bfin_read16(CAN_MB31_DATA0)
1944#define bfin_write_CAN_MB31_DATA0(val) bfin_write16(CAN_MB31_DATA0, val)
1945#define bfin_read_CAN_MB31_DATA1() bfin_read16(CAN_MB31_DATA1)
1946#define bfin_write_CAN_MB31_DATA1(val) bfin_write16(CAN_MB31_DATA1, val)
1947#define bfin_read_CAN_MB31_DATA2() bfin_read16(CAN_MB31_DATA2)
1948#define bfin_write_CAN_MB31_DATA2(val) bfin_write16(CAN_MB31_DATA2, val)
1949#define bfin_read_CAN_MB31_DATA3() bfin_read16(CAN_MB31_DATA3)
1950#define bfin_write_CAN_MB31_DATA3(val) bfin_write16(CAN_MB31_DATA3, val)
1951#define bfin_read_CAN_MB31_LENGTH() bfin_read16(CAN_MB31_LENGTH)
1952#define bfin_write_CAN_MB31_LENGTH(val) bfin_write16(CAN_MB31_LENGTH, val)
1953#define bfin_read_CAN_MB31_TIMESTAMP() bfin_read16(CAN_MB31_TIMESTAMP)
1954#define bfin_write_CAN_MB31_TIMESTAMP(val) bfin_write16(CAN_MB31_TIMESTAMP, val)
1955#define bfin_read_CAN_MB31_ID0() bfin_read16(CAN_MB31_ID0)
1956#define bfin_write_CAN_MB31_ID0(val) bfin_write16(CAN_MB31_ID0, val)
1957#define bfin_read_CAN_MB31_ID1() bfin_read16(CAN_MB31_ID1)
1958#define bfin_write_CAN_MB31_ID1(val) bfin_write16(CAN_MB31_ID1, val)
1959
Michael Hennerichdc26aec2008-11-18 17:48:22 +08001960#endif