vmalloc: walk vmap_areas by sorted list instead of rb_next()
[linux/fpc-iii.git] / arch / blackfin / mach-bf548 / include / mach / cdefBF544.h
blob33ec8102cedae04d9b8a3840047aff2671ddec47
1 /*
2 * Copyright 2007-2010 Analog Devices Inc.
4 * Licensed under the GPL-2 or later.
5 */
7 #ifndef _CDEF_BF544_H
8 #define _CDEF_BF544_H
10 /* include cdefBF54x_base.h for the set of #defines that are common to all ADSP-BF54x bfin_read_()rocessors */
11 #include "cdefBF54x_base.h"
13 /* The following are the #defines needed by ADSP-BF544 that are not in the common header */
15 /* Timer Registers */
17 #define bfin_read_TIMER8_CONFIG() bfin_read16(TIMER8_CONFIG)
18 #define bfin_write_TIMER8_CONFIG(val) bfin_write16(TIMER8_CONFIG, val)
19 #define bfin_read_TIMER8_COUNTER() bfin_read32(TIMER8_COUNTER)
20 #define bfin_write_TIMER8_COUNTER(val) bfin_write32(TIMER8_COUNTER, val)
21 #define bfin_read_TIMER8_PERIOD() bfin_read32(TIMER8_PERIOD)
22 #define bfin_write_TIMER8_PERIOD(val) bfin_write32(TIMER8_PERIOD, val)
23 #define bfin_read_TIMER8_WIDTH() bfin_read32(TIMER8_WIDTH)
24 #define bfin_write_TIMER8_WIDTH(val) bfin_write32(TIMER8_WIDTH, val)
25 #define bfin_read_TIMER9_CONFIG() bfin_read16(TIMER9_CONFIG)
26 #define bfin_write_TIMER9_CONFIG(val) bfin_write16(TIMER9_CONFIG, val)
27 #define bfin_read_TIMER9_COUNTER() bfin_read32(TIMER9_COUNTER)
28 #define bfin_write_TIMER9_COUNTER(val) bfin_write32(TIMER9_COUNTER, val)
29 #define bfin_read_TIMER9_PERIOD() bfin_read32(TIMER9_PERIOD)
30 #define bfin_write_TIMER9_PERIOD(val) bfin_write32(TIMER9_PERIOD, val)
31 #define bfin_read_TIMER9_WIDTH() bfin_read32(TIMER9_WIDTH)
32 #define bfin_write_TIMER9_WIDTH(val) bfin_write32(TIMER9_WIDTH, val)
33 #define bfin_read_TIMER10_CONFIG() bfin_read16(TIMER10_CONFIG)
34 #define bfin_write_TIMER10_CONFIG(val) bfin_write16(TIMER10_CONFIG, val)
35 #define bfin_read_TIMER10_COUNTER() bfin_read32(TIMER10_COUNTER)
36 #define bfin_write_TIMER10_COUNTER(val) bfin_write32(TIMER10_COUNTER, val)
37 #define bfin_read_TIMER10_PERIOD() bfin_read32(TIMER10_PERIOD)
38 #define bfin_write_TIMER10_PERIOD(val) bfin_write32(TIMER10_PERIOD, val)
39 #define bfin_read_TIMER10_WIDTH() bfin_read32(TIMER10_WIDTH)
40 #define bfin_write_TIMER10_WIDTH(val) bfin_write32(TIMER10_WIDTH, val)
42 /* Timer Groubfin_read_() of 3 */
44 #define bfin_read_TIMER_ENABLE1() bfin_read16(TIMER_ENABLE1)
45 #define bfin_write_TIMER_ENABLE1(val) bfin_write16(TIMER_ENABLE1, val)
46 #define bfin_read_TIMER_DISABLE1() bfin_read16(TIMER_DISABLE1)
47 #define bfin_write_TIMER_DISABLE1(val) bfin_write16(TIMER_DISABLE1, val)
48 #define bfin_read_TIMER_STATUS1() bfin_read32(TIMER_STATUS1)
49 #define bfin_write_TIMER_STATUS1(val) bfin_write32(TIMER_STATUS1, val)
51 /* EPPI0 Registers */
53 #define bfin_read_EPPI0_STATUS() bfin_read16(EPPI0_STATUS)
54 #define bfin_write_EPPI0_STATUS(val) bfin_write16(EPPI0_STATUS, val)
55 #define bfin_read_EPPI0_HCOUNT() bfin_read16(EPPI0_HCOUNT)
56 #define bfin_write_EPPI0_HCOUNT(val) bfin_write16(EPPI0_HCOUNT, val)
57 #define bfin_read_EPPI0_HDELAY() bfin_read16(EPPI0_HDELAY)
58 #define bfin_write_EPPI0_HDELAY(val) bfin_write16(EPPI0_HDELAY, val)
59 #define bfin_read_EPPI0_VCOUNT() bfin_read16(EPPI0_VCOUNT)
60 #define bfin_write_EPPI0_VCOUNT(val) bfin_write16(EPPI0_VCOUNT, val)
61 #define bfin_read_EPPI0_VDELAY() bfin_read16(EPPI0_VDELAY)
62 #define bfin_write_EPPI0_VDELAY(val) bfin_write16(EPPI0_VDELAY, val)
63 #define bfin_read_EPPI0_FRAME() bfin_read16(EPPI0_FRAME)
64 #define bfin_write_EPPI0_FRAME(val) bfin_write16(EPPI0_FRAME, val)
65 #define bfin_read_EPPI0_LINE() bfin_read16(EPPI0_LINE)
66 #define bfin_write_EPPI0_LINE(val) bfin_write16(EPPI0_LINE, val)
67 #define bfin_read_EPPI0_CLKDIV() bfin_read16(EPPI0_CLKDIV)
68 #define bfin_write_EPPI0_CLKDIV(val) bfin_write16(EPPI0_CLKDIV, val)
69 #define bfin_read_EPPI0_CONTROL() bfin_read32(EPPI0_CONTROL)
70 #define bfin_write_EPPI0_CONTROL(val) bfin_write32(EPPI0_CONTROL, val)
71 #define bfin_read_EPPI0_FS1W_HBL() bfin_read32(EPPI0_FS1W_HBL)
72 #define bfin_write_EPPI0_FS1W_HBL(val) bfin_write32(EPPI0_FS1W_HBL, val)
73 #define bfin_read_EPPI0_FS1P_AVPL() bfin_read32(EPPI0_FS1P_AVPL)
74 #define bfin_write_EPPI0_FS1P_AVPL(val) bfin_write32(EPPI0_FS1P_AVPL, val)
75 #define bfin_read_EPPI0_FS2W_LVB() bfin_read32(EPPI0_FS2W_LVB)
76 #define bfin_write_EPPI0_FS2W_LVB(val) bfin_write32(EPPI0_FS2W_LVB, val)
77 #define bfin_read_EPPI0_FS2P_LAVF() bfin_read32(EPPI0_FS2P_LAVF)
78 #define bfin_write_EPPI0_FS2P_LAVF(val) bfin_write32(EPPI0_FS2P_LAVF, val)
79 #define bfin_read_EPPI0_CLIP() bfin_read32(EPPI0_CLIP)
80 #define bfin_write_EPPI0_CLIP(val) bfin_write32(EPPI0_CLIP, val)
82 /* Two Wire Interface Registers (TWI1) */
84 /* CAN Controller 1 Config 1 Registers */
86 #define bfin_read_CAN1_MC1() bfin_read16(CAN1_MC1)
87 #define bfin_write_CAN1_MC1(val) bfin_write16(CAN1_MC1, val)
88 #define bfin_read_CAN1_MD1() bfin_read16(CAN1_MD1)
89 #define bfin_write_CAN1_MD1(val) bfin_write16(CAN1_MD1, val)
90 #define bfin_read_CAN1_TRS1() bfin_read16(CAN1_TRS1)
91 #define bfin_write_CAN1_TRS1(val) bfin_write16(CAN1_TRS1, val)
92 #define bfin_read_CAN1_TRR1() bfin_read16(CAN1_TRR1)
93 #define bfin_write_CAN1_TRR1(val) bfin_write16(CAN1_TRR1, val)
94 #define bfin_read_CAN1_TA1() bfin_read16(CAN1_TA1)
95 #define bfin_write_CAN1_TA1(val) bfin_write16(CAN1_TA1, val)
96 #define bfin_read_CAN1_AA1() bfin_read16(CAN1_AA1)
97 #define bfin_write_CAN1_AA1(val) bfin_write16(CAN1_AA1, val)
98 #define bfin_read_CAN1_RMP1() bfin_read16(CAN1_RMP1)
99 #define bfin_write_CAN1_RMP1(val) bfin_write16(CAN1_RMP1, val)
100 #define bfin_read_CAN1_RML1() bfin_read16(CAN1_RML1)
101 #define bfin_write_CAN1_RML1(val) bfin_write16(CAN1_RML1, val)
102 #define bfin_read_CAN1_MBTIF1() bfin_read16(CAN1_MBTIF1)
103 #define bfin_write_CAN1_MBTIF1(val) bfin_write16(CAN1_MBTIF1, val)
104 #define bfin_read_CAN1_MBRIF1() bfin_read16(CAN1_MBRIF1)
105 #define bfin_write_CAN1_MBRIF1(val) bfin_write16(CAN1_MBRIF1, val)
106 #define bfin_read_CAN1_MBIM1() bfin_read16(CAN1_MBIM1)
107 #define bfin_write_CAN1_MBIM1(val) bfin_write16(CAN1_MBIM1, val)
108 #define bfin_read_CAN1_RFH1() bfin_read16(CAN1_RFH1)
109 #define bfin_write_CAN1_RFH1(val) bfin_write16(CAN1_RFH1, val)
110 #define bfin_read_CAN1_OPSS1() bfin_read16(CAN1_OPSS1)
111 #define bfin_write_CAN1_OPSS1(val) bfin_write16(CAN1_OPSS1, val)
113 /* CAN Controller 1 Config 2 Registers */
115 #define bfin_read_CAN1_MC2() bfin_read16(CAN1_MC2)
116 #define bfin_write_CAN1_MC2(val) bfin_write16(CAN1_MC2, val)
117 #define bfin_read_CAN1_MD2() bfin_read16(CAN1_MD2)
118 #define bfin_write_CAN1_MD2(val) bfin_write16(CAN1_MD2, val)
119 #define bfin_read_CAN1_TRS2() bfin_read16(CAN1_TRS2)
120 #define bfin_write_CAN1_TRS2(val) bfin_write16(CAN1_TRS2, val)
121 #define bfin_read_CAN1_TRR2() bfin_read16(CAN1_TRR2)
122 #define bfin_write_CAN1_TRR2(val) bfin_write16(CAN1_TRR2, val)
123 #define bfin_read_CAN1_TA2() bfin_read16(CAN1_TA2)
124 #define bfin_write_CAN1_TA2(val) bfin_write16(CAN1_TA2, val)
125 #define bfin_read_CAN1_AA2() bfin_read16(CAN1_AA2)
126 #define bfin_write_CAN1_AA2(val) bfin_write16(CAN1_AA2, val)
127 #define bfin_read_CAN1_RMP2() bfin_read16(CAN1_RMP2)
128 #define bfin_write_CAN1_RMP2(val) bfin_write16(CAN1_RMP2, val)
129 #define bfin_read_CAN1_RML2() bfin_read16(CAN1_RML2)
130 #define bfin_write_CAN1_RML2(val) bfin_write16(CAN1_RML2, val)
131 #define bfin_read_CAN1_MBTIF2() bfin_read16(CAN1_MBTIF2)
132 #define bfin_write_CAN1_MBTIF2(val) bfin_write16(CAN1_MBTIF2, val)
133 #define bfin_read_CAN1_MBRIF2() bfin_read16(CAN1_MBRIF2)
134 #define bfin_write_CAN1_MBRIF2(val) bfin_write16(CAN1_MBRIF2, val)
135 #define bfin_read_CAN1_MBIM2() bfin_read16(CAN1_MBIM2)
136 #define bfin_write_CAN1_MBIM2(val) bfin_write16(CAN1_MBIM2, val)
137 #define bfin_read_CAN1_RFH2() bfin_read16(CAN1_RFH2)
138 #define bfin_write_CAN1_RFH2(val) bfin_write16(CAN1_RFH2, val)
139 #define bfin_read_CAN1_OPSS2() bfin_read16(CAN1_OPSS2)
140 #define bfin_write_CAN1_OPSS2(val) bfin_write16(CAN1_OPSS2, val)
142 /* CAN Controller 1 Clock/Interrubfin_read_()t/Counter Registers */
144 #define bfin_read_CAN1_CLOCK() bfin_read16(CAN1_CLOCK)
145 #define bfin_write_CAN1_CLOCK(val) bfin_write16(CAN1_CLOCK, val)
146 #define bfin_read_CAN1_TIMING() bfin_read16(CAN1_TIMING)
147 #define bfin_write_CAN1_TIMING(val) bfin_write16(CAN1_TIMING, val)
148 #define bfin_read_CAN1_DEBUG() bfin_read16(CAN1_DEBUG)
149 #define bfin_write_CAN1_DEBUG(val) bfin_write16(CAN1_DEBUG, val)
150 #define bfin_read_CAN1_STATUS() bfin_read16(CAN1_STATUS)
151 #define bfin_write_CAN1_STATUS(val) bfin_write16(CAN1_STATUS, val)
152 #define bfin_read_CAN1_CEC() bfin_read16(CAN1_CEC)
153 #define bfin_write_CAN1_CEC(val) bfin_write16(CAN1_CEC, val)
154 #define bfin_read_CAN1_GIS() bfin_read16(CAN1_GIS)
155 #define bfin_write_CAN1_GIS(val) bfin_write16(CAN1_GIS, val)
156 #define bfin_read_CAN1_GIM() bfin_read16(CAN1_GIM)
157 #define bfin_write_CAN1_GIM(val) bfin_write16(CAN1_GIM, val)
158 #define bfin_read_CAN1_GIF() bfin_read16(CAN1_GIF)
159 #define bfin_write_CAN1_GIF(val) bfin_write16(CAN1_GIF, val)
160 #define bfin_read_CAN1_CONTROL() bfin_read16(CAN1_CONTROL)
161 #define bfin_write_CAN1_CONTROL(val) bfin_write16(CAN1_CONTROL, val)
162 #define bfin_read_CAN1_INTR() bfin_read16(CAN1_INTR)
163 #define bfin_write_CAN1_INTR(val) bfin_write16(CAN1_INTR, val)
164 #define bfin_read_CAN1_MBTD() bfin_read16(CAN1_MBTD)
165 #define bfin_write_CAN1_MBTD(val) bfin_write16(CAN1_MBTD, val)
166 #define bfin_read_CAN1_EWR() bfin_read16(CAN1_EWR)
167 #define bfin_write_CAN1_EWR(val) bfin_write16(CAN1_EWR, val)
168 #define bfin_read_CAN1_ESR() bfin_read16(CAN1_ESR)
169 #define bfin_write_CAN1_ESR(val) bfin_write16(CAN1_ESR, val)
170 #define bfin_read_CAN1_UCCNT() bfin_read16(CAN1_UCCNT)
171 #define bfin_write_CAN1_UCCNT(val) bfin_write16(CAN1_UCCNT, val)
172 #define bfin_read_CAN1_UCRC() bfin_read16(CAN1_UCRC)
173 #define bfin_write_CAN1_UCRC(val) bfin_write16(CAN1_UCRC, val)
174 #define bfin_read_CAN1_UCCNF() bfin_read16(CAN1_UCCNF)
175 #define bfin_write_CAN1_UCCNF(val) bfin_write16(CAN1_UCCNF, val)
177 /* CAN Controller 1 Mailbox Accebfin_read_()tance Registers */
179 #define bfin_read_CAN1_AM00L() bfin_read16(CAN1_AM00L)
180 #define bfin_write_CAN1_AM00L(val) bfin_write16(CAN1_AM00L, val)
181 #define bfin_read_CAN1_AM00H() bfin_read16(CAN1_AM00H)
182 #define bfin_write_CAN1_AM00H(val) bfin_write16(CAN1_AM00H, val)
183 #define bfin_read_CAN1_AM01L() bfin_read16(CAN1_AM01L)
184 #define bfin_write_CAN1_AM01L(val) bfin_write16(CAN1_AM01L, val)
185 #define bfin_read_CAN1_AM01H() bfin_read16(CAN1_AM01H)
186 #define bfin_write_CAN1_AM01H(val) bfin_write16(CAN1_AM01H, val)
187 #define bfin_read_CAN1_AM02L() bfin_read16(CAN1_AM02L)
188 #define bfin_write_CAN1_AM02L(val) bfin_write16(CAN1_AM02L, val)
189 #define bfin_read_CAN1_AM02H() bfin_read16(CAN1_AM02H)
190 #define bfin_write_CAN1_AM02H(val) bfin_write16(CAN1_AM02H, val)
191 #define bfin_read_CAN1_AM03L() bfin_read16(CAN1_AM03L)
192 #define bfin_write_CAN1_AM03L(val) bfin_write16(CAN1_AM03L, val)
193 #define bfin_read_CAN1_AM03H() bfin_read16(CAN1_AM03H)
194 #define bfin_write_CAN1_AM03H(val) bfin_write16(CAN1_AM03H, val)
195 #define bfin_read_CAN1_AM04L() bfin_read16(CAN1_AM04L)
196 #define bfin_write_CAN1_AM04L(val) bfin_write16(CAN1_AM04L, val)
197 #define bfin_read_CAN1_AM04H() bfin_read16(CAN1_AM04H)
198 #define bfin_write_CAN1_AM04H(val) bfin_write16(CAN1_AM04H, val)
199 #define bfin_read_CAN1_AM05L() bfin_read16(CAN1_AM05L)
200 #define bfin_write_CAN1_AM05L(val) bfin_write16(CAN1_AM05L, val)
201 #define bfin_read_CAN1_AM05H() bfin_read16(CAN1_AM05H)
202 #define bfin_write_CAN1_AM05H(val) bfin_write16(CAN1_AM05H, val)
203 #define bfin_read_CAN1_AM06L() bfin_read16(CAN1_AM06L)
204 #define bfin_write_CAN1_AM06L(val) bfin_write16(CAN1_AM06L, val)
205 #define bfin_read_CAN1_AM06H() bfin_read16(CAN1_AM06H)
206 #define bfin_write_CAN1_AM06H(val) bfin_write16(CAN1_AM06H, val)
207 #define bfin_read_CAN1_AM07L() bfin_read16(CAN1_AM07L)
208 #define bfin_write_CAN1_AM07L(val) bfin_write16(CAN1_AM07L, val)
209 #define bfin_read_CAN1_AM07H() bfin_read16(CAN1_AM07H)
210 #define bfin_write_CAN1_AM07H(val) bfin_write16(CAN1_AM07H, val)
211 #define bfin_read_CAN1_AM08L() bfin_read16(CAN1_AM08L)
212 #define bfin_write_CAN1_AM08L(val) bfin_write16(CAN1_AM08L, val)
213 #define bfin_read_CAN1_AM08H() bfin_read16(CAN1_AM08H)
214 #define bfin_write_CAN1_AM08H(val) bfin_write16(CAN1_AM08H, val)
215 #define bfin_read_CAN1_AM09L() bfin_read16(CAN1_AM09L)
216 #define bfin_write_CAN1_AM09L(val) bfin_write16(CAN1_AM09L, val)
217 #define bfin_read_CAN1_AM09H() bfin_read16(CAN1_AM09H)
218 #define bfin_write_CAN1_AM09H(val) bfin_write16(CAN1_AM09H, val)
219 #define bfin_read_CAN1_AM10L() bfin_read16(CAN1_AM10L)
220 #define bfin_write_CAN1_AM10L(val) bfin_write16(CAN1_AM10L, val)
221 #define bfin_read_CAN1_AM10H() bfin_read16(CAN1_AM10H)
222 #define bfin_write_CAN1_AM10H(val) bfin_write16(CAN1_AM10H, val)
223 #define bfin_read_CAN1_AM11L() bfin_read16(CAN1_AM11L)
224 #define bfin_write_CAN1_AM11L(val) bfin_write16(CAN1_AM11L, val)
225 #define bfin_read_CAN1_AM11H() bfin_read16(CAN1_AM11H)
226 #define bfin_write_CAN1_AM11H(val) bfin_write16(CAN1_AM11H, val)
227 #define bfin_read_CAN1_AM12L() bfin_read16(CAN1_AM12L)
228 #define bfin_write_CAN1_AM12L(val) bfin_write16(CAN1_AM12L, val)
229 #define bfin_read_CAN1_AM12H() bfin_read16(CAN1_AM12H)
230 #define bfin_write_CAN1_AM12H(val) bfin_write16(CAN1_AM12H, val)
231 #define bfin_read_CAN1_AM13L() bfin_read16(CAN1_AM13L)
232 #define bfin_write_CAN1_AM13L(val) bfin_write16(CAN1_AM13L, val)
233 #define bfin_read_CAN1_AM13H() bfin_read16(CAN1_AM13H)
234 #define bfin_write_CAN1_AM13H(val) bfin_write16(CAN1_AM13H, val)
235 #define bfin_read_CAN1_AM14L() bfin_read16(CAN1_AM14L)
236 #define bfin_write_CAN1_AM14L(val) bfin_write16(CAN1_AM14L, val)
237 #define bfin_read_CAN1_AM14H() bfin_read16(CAN1_AM14H)
238 #define bfin_write_CAN1_AM14H(val) bfin_write16(CAN1_AM14H, val)
239 #define bfin_read_CAN1_AM15L() bfin_read16(CAN1_AM15L)
240 #define bfin_write_CAN1_AM15L(val) bfin_write16(CAN1_AM15L, val)
241 #define bfin_read_CAN1_AM15H() bfin_read16(CAN1_AM15H)
242 #define bfin_write_CAN1_AM15H(val) bfin_write16(CAN1_AM15H, val)
244 /* CAN Controller 1 Mailbox Accebfin_read_()tance Registers */
246 #define bfin_read_CAN1_AM16L() bfin_read16(CAN1_AM16L)
247 #define bfin_write_CAN1_AM16L(val) bfin_write16(CAN1_AM16L, val)
248 #define bfin_read_CAN1_AM16H() bfin_read16(CAN1_AM16H)
249 #define bfin_write_CAN1_AM16H(val) bfin_write16(CAN1_AM16H, val)
250 #define bfin_read_CAN1_AM17L() bfin_read16(CAN1_AM17L)
251 #define bfin_write_CAN1_AM17L(val) bfin_write16(CAN1_AM17L, val)
252 #define bfin_read_CAN1_AM17H() bfin_read16(CAN1_AM17H)
253 #define bfin_write_CAN1_AM17H(val) bfin_write16(CAN1_AM17H, val)
254 #define bfin_read_CAN1_AM18L() bfin_read16(CAN1_AM18L)
255 #define bfin_write_CAN1_AM18L(val) bfin_write16(CAN1_AM18L, val)
256 #define bfin_read_CAN1_AM18H() bfin_read16(CAN1_AM18H)
257 #define bfin_write_CAN1_AM18H(val) bfin_write16(CAN1_AM18H, val)
258 #define bfin_read_CAN1_AM19L() bfin_read16(CAN1_AM19L)
259 #define bfin_write_CAN1_AM19L(val) bfin_write16(CAN1_AM19L, val)
260 #define bfin_read_CAN1_AM19H() bfin_read16(CAN1_AM19H)
261 #define bfin_write_CAN1_AM19H(val) bfin_write16(CAN1_AM19H, val)
262 #define bfin_read_CAN1_AM20L() bfin_read16(CAN1_AM20L)
263 #define bfin_write_CAN1_AM20L(val) bfin_write16(CAN1_AM20L, val)
264 #define bfin_read_CAN1_AM20H() bfin_read16(CAN1_AM20H)
265 #define bfin_write_CAN1_AM20H(val) bfin_write16(CAN1_AM20H, val)
266 #define bfin_read_CAN1_AM21L() bfin_read16(CAN1_AM21L)
267 #define bfin_write_CAN1_AM21L(val) bfin_write16(CAN1_AM21L, val)
268 #define bfin_read_CAN1_AM21H() bfin_read16(CAN1_AM21H)
269 #define bfin_write_CAN1_AM21H(val) bfin_write16(CAN1_AM21H, val)
270 #define bfin_read_CAN1_AM22L() bfin_read16(CAN1_AM22L)
271 #define bfin_write_CAN1_AM22L(val) bfin_write16(CAN1_AM22L, val)
272 #define bfin_read_CAN1_AM22H() bfin_read16(CAN1_AM22H)
273 #define bfin_write_CAN1_AM22H(val) bfin_write16(CAN1_AM22H, val)
274 #define bfin_read_CAN1_AM23L() bfin_read16(CAN1_AM23L)
275 #define bfin_write_CAN1_AM23L(val) bfin_write16(CAN1_AM23L, val)
276 #define bfin_read_CAN1_AM23H() bfin_read16(CAN1_AM23H)
277 #define bfin_write_CAN1_AM23H(val) bfin_write16(CAN1_AM23H, val)
278 #define bfin_read_CAN1_AM24L() bfin_read16(CAN1_AM24L)
279 #define bfin_write_CAN1_AM24L(val) bfin_write16(CAN1_AM24L, val)
280 #define bfin_read_CAN1_AM24H() bfin_read16(CAN1_AM24H)
281 #define bfin_write_CAN1_AM24H(val) bfin_write16(CAN1_AM24H, val)
282 #define bfin_read_CAN1_AM25L() bfin_read16(CAN1_AM25L)
283 #define bfin_write_CAN1_AM25L(val) bfin_write16(CAN1_AM25L, val)
284 #define bfin_read_CAN1_AM25H() bfin_read16(CAN1_AM25H)
285 #define bfin_write_CAN1_AM25H(val) bfin_write16(CAN1_AM25H, val)
286 #define bfin_read_CAN1_AM26L() bfin_read16(CAN1_AM26L)
287 #define bfin_write_CAN1_AM26L(val) bfin_write16(CAN1_AM26L, val)
288 #define bfin_read_CAN1_AM26H() bfin_read16(CAN1_AM26H)
289 #define bfin_write_CAN1_AM26H(val) bfin_write16(CAN1_AM26H, val)
290 #define bfin_read_CAN1_AM27L() bfin_read16(CAN1_AM27L)
291 #define bfin_write_CAN1_AM27L(val) bfin_write16(CAN1_AM27L, val)
292 #define bfin_read_CAN1_AM27H() bfin_read16(CAN1_AM27H)
293 #define bfin_write_CAN1_AM27H(val) bfin_write16(CAN1_AM27H, val)
294 #define bfin_read_CAN1_AM28L() bfin_read16(CAN1_AM28L)
295 #define bfin_write_CAN1_AM28L(val) bfin_write16(CAN1_AM28L, val)
296 #define bfin_read_CAN1_AM28H() bfin_read16(CAN1_AM28H)
297 #define bfin_write_CAN1_AM28H(val) bfin_write16(CAN1_AM28H, val)
298 #define bfin_read_CAN1_AM29L() bfin_read16(CAN1_AM29L)
299 #define bfin_write_CAN1_AM29L(val) bfin_write16(CAN1_AM29L, val)
300 #define bfin_read_CAN1_AM29H() bfin_read16(CAN1_AM29H)
301 #define bfin_write_CAN1_AM29H(val) bfin_write16(CAN1_AM29H, val)
302 #define bfin_read_CAN1_AM30L() bfin_read16(CAN1_AM30L)
303 #define bfin_write_CAN1_AM30L(val) bfin_write16(CAN1_AM30L, val)
304 #define bfin_read_CAN1_AM30H() bfin_read16(CAN1_AM30H)
305 #define bfin_write_CAN1_AM30H(val) bfin_write16(CAN1_AM30H, val)
306 #define bfin_read_CAN1_AM31L() bfin_read16(CAN1_AM31L)
307 #define bfin_write_CAN1_AM31L(val) bfin_write16(CAN1_AM31L, val)
308 #define bfin_read_CAN1_AM31H() bfin_read16(CAN1_AM31H)
309 #define bfin_write_CAN1_AM31H(val) bfin_write16(CAN1_AM31H, val)
311 /* CAN Controller 1 Mailbox Data Registers */
313 #define bfin_read_CAN1_MB00_DATA0() bfin_read16(CAN1_MB00_DATA0)
314 #define bfin_write_CAN1_MB00_DATA0(val) bfin_write16(CAN1_MB00_DATA0, val)
315 #define bfin_read_CAN1_MB00_DATA1() bfin_read16(CAN1_MB00_DATA1)
316 #define bfin_write_CAN1_MB00_DATA1(val) bfin_write16(CAN1_MB00_DATA1, val)
317 #define bfin_read_CAN1_MB00_DATA2() bfin_read16(CAN1_MB00_DATA2)
318 #define bfin_write_CAN1_MB00_DATA2(val) bfin_write16(CAN1_MB00_DATA2, val)
319 #define bfin_read_CAN1_MB00_DATA3() bfin_read16(CAN1_MB00_DATA3)
320 #define bfin_write_CAN1_MB00_DATA3(val) bfin_write16(CAN1_MB00_DATA3, val)
321 #define bfin_read_CAN1_MB00_LENGTH() bfin_read16(CAN1_MB00_LENGTH)
322 #define bfin_write_CAN1_MB00_LENGTH(val) bfin_write16(CAN1_MB00_LENGTH, val)
323 #define bfin_read_CAN1_MB00_TIMESTAMP() bfin_read16(CAN1_MB00_TIMESTAMP)
324 #define bfin_write_CAN1_MB00_TIMESTAMP(val) bfin_write16(CAN1_MB00_TIMESTAMP, val)
325 #define bfin_read_CAN1_MB00_ID0() bfin_read16(CAN1_MB00_ID0)
326 #define bfin_write_CAN1_MB00_ID0(val) bfin_write16(CAN1_MB00_ID0, val)
327 #define bfin_read_CAN1_MB00_ID1() bfin_read16(CAN1_MB00_ID1)
328 #define bfin_write_CAN1_MB00_ID1(val) bfin_write16(CAN1_MB00_ID1, val)
329 #define bfin_read_CAN1_MB01_DATA0() bfin_read16(CAN1_MB01_DATA0)
330 #define bfin_write_CAN1_MB01_DATA0(val) bfin_write16(CAN1_MB01_DATA0, val)
331 #define bfin_read_CAN1_MB01_DATA1() bfin_read16(CAN1_MB01_DATA1)
332 #define bfin_write_CAN1_MB01_DATA1(val) bfin_write16(CAN1_MB01_DATA1, val)
333 #define bfin_read_CAN1_MB01_DATA2() bfin_read16(CAN1_MB01_DATA2)
334 #define bfin_write_CAN1_MB01_DATA2(val) bfin_write16(CAN1_MB01_DATA2, val)
335 #define bfin_read_CAN1_MB01_DATA3() bfin_read16(CAN1_MB01_DATA3)
336 #define bfin_write_CAN1_MB01_DATA3(val) bfin_write16(CAN1_MB01_DATA3, val)
337 #define bfin_read_CAN1_MB01_LENGTH() bfin_read16(CAN1_MB01_LENGTH)
338 #define bfin_write_CAN1_MB01_LENGTH(val) bfin_write16(CAN1_MB01_LENGTH, val)
339 #define bfin_read_CAN1_MB01_TIMESTAMP() bfin_read16(CAN1_MB01_TIMESTAMP)
340 #define bfin_write_CAN1_MB01_TIMESTAMP(val) bfin_write16(CAN1_MB01_TIMESTAMP, val)
341 #define bfin_read_CAN1_MB01_ID0() bfin_read16(CAN1_MB01_ID0)
342 #define bfin_write_CAN1_MB01_ID0(val) bfin_write16(CAN1_MB01_ID0, val)
343 #define bfin_read_CAN1_MB01_ID1() bfin_read16(CAN1_MB01_ID1)
344 #define bfin_write_CAN1_MB01_ID1(val) bfin_write16(CAN1_MB01_ID1, val)
345 #define bfin_read_CAN1_MB02_DATA0() bfin_read16(CAN1_MB02_DATA0)
346 #define bfin_write_CAN1_MB02_DATA0(val) bfin_write16(CAN1_MB02_DATA0, val)
347 #define bfin_read_CAN1_MB02_DATA1() bfin_read16(CAN1_MB02_DATA1)
348 #define bfin_write_CAN1_MB02_DATA1(val) bfin_write16(CAN1_MB02_DATA1, val)
349 #define bfin_read_CAN1_MB02_DATA2() bfin_read16(CAN1_MB02_DATA2)
350 #define bfin_write_CAN1_MB02_DATA2(val) bfin_write16(CAN1_MB02_DATA2, val)
351 #define bfin_read_CAN1_MB02_DATA3() bfin_read16(CAN1_MB02_DATA3)
352 #define bfin_write_CAN1_MB02_DATA3(val) bfin_write16(CAN1_MB02_DATA3, val)
353 #define bfin_read_CAN1_MB02_LENGTH() bfin_read16(CAN1_MB02_LENGTH)
354 #define bfin_write_CAN1_MB02_LENGTH(val) bfin_write16(CAN1_MB02_LENGTH, val)
355 #define bfin_read_CAN1_MB02_TIMESTAMP() bfin_read16(CAN1_MB02_TIMESTAMP)
356 #define bfin_write_CAN1_MB02_TIMESTAMP(val) bfin_write16(CAN1_MB02_TIMESTAMP, val)
357 #define bfin_read_CAN1_MB02_ID0() bfin_read16(CAN1_MB02_ID0)
358 #define bfin_write_CAN1_MB02_ID0(val) bfin_write16(CAN1_MB02_ID0, val)
359 #define bfin_read_CAN1_MB02_ID1() bfin_read16(CAN1_MB02_ID1)
360 #define bfin_write_CAN1_MB02_ID1(val) bfin_write16(CAN1_MB02_ID1, val)
361 #define bfin_read_CAN1_MB03_DATA0() bfin_read16(CAN1_MB03_DATA0)
362 #define bfin_write_CAN1_MB03_DATA0(val) bfin_write16(CAN1_MB03_DATA0, val)
363 #define bfin_read_CAN1_MB03_DATA1() bfin_read16(CAN1_MB03_DATA1)
364 #define bfin_write_CAN1_MB03_DATA1(val) bfin_write16(CAN1_MB03_DATA1, val)
365 #define bfin_read_CAN1_MB03_DATA2() bfin_read16(CAN1_MB03_DATA2)
366 #define bfin_write_CAN1_MB03_DATA2(val) bfin_write16(CAN1_MB03_DATA2, val)
367 #define bfin_read_CAN1_MB03_DATA3() bfin_read16(CAN1_MB03_DATA3)
368 #define bfin_write_CAN1_MB03_DATA3(val) bfin_write16(CAN1_MB03_DATA3, val)
369 #define bfin_read_CAN1_MB03_LENGTH() bfin_read16(CAN1_MB03_LENGTH)
370 #define bfin_write_CAN1_MB03_LENGTH(val) bfin_write16(CAN1_MB03_LENGTH, val)
371 #define bfin_read_CAN1_MB03_TIMESTAMP() bfin_read16(CAN1_MB03_TIMESTAMP)
372 #define bfin_write_CAN1_MB03_TIMESTAMP(val) bfin_write16(CAN1_MB03_TIMESTAMP, val)
373 #define bfin_read_CAN1_MB03_ID0() bfin_read16(CAN1_MB03_ID0)
374 #define bfin_write_CAN1_MB03_ID0(val) bfin_write16(CAN1_MB03_ID0, val)
375 #define bfin_read_CAN1_MB03_ID1() bfin_read16(CAN1_MB03_ID1)
376 #define bfin_write_CAN1_MB03_ID1(val) bfin_write16(CAN1_MB03_ID1, val)
377 #define bfin_read_CAN1_MB04_DATA0() bfin_read16(CAN1_MB04_DATA0)
378 #define bfin_write_CAN1_MB04_DATA0(val) bfin_write16(CAN1_MB04_DATA0, val)
379 #define bfin_read_CAN1_MB04_DATA1() bfin_read16(CAN1_MB04_DATA1)
380 #define bfin_write_CAN1_MB04_DATA1(val) bfin_write16(CAN1_MB04_DATA1, val)
381 #define bfin_read_CAN1_MB04_DATA2() bfin_read16(CAN1_MB04_DATA2)
382 #define bfin_write_CAN1_MB04_DATA2(val) bfin_write16(CAN1_MB04_DATA2, val)
383 #define bfin_read_CAN1_MB04_DATA3() bfin_read16(CAN1_MB04_DATA3)
384 #define bfin_write_CAN1_MB04_DATA3(val) bfin_write16(CAN1_MB04_DATA3, val)
385 #define bfin_read_CAN1_MB04_LENGTH() bfin_read16(CAN1_MB04_LENGTH)
386 #define bfin_write_CAN1_MB04_LENGTH(val) bfin_write16(CAN1_MB04_LENGTH, val)
387 #define bfin_read_CAN1_MB04_TIMESTAMP() bfin_read16(CAN1_MB04_TIMESTAMP)
388 #define bfin_write_CAN1_MB04_TIMESTAMP(val) bfin_write16(CAN1_MB04_TIMESTAMP, val)
389 #define bfin_read_CAN1_MB04_ID0() bfin_read16(CAN1_MB04_ID0)
390 #define bfin_write_CAN1_MB04_ID0(val) bfin_write16(CAN1_MB04_ID0, val)
391 #define bfin_read_CAN1_MB04_ID1() bfin_read16(CAN1_MB04_ID1)
392 #define bfin_write_CAN1_MB04_ID1(val) bfin_write16(CAN1_MB04_ID1, val)
393 #define bfin_read_CAN1_MB05_DATA0() bfin_read16(CAN1_MB05_DATA0)
394 #define bfin_write_CAN1_MB05_DATA0(val) bfin_write16(CAN1_MB05_DATA0, val)
395 #define bfin_read_CAN1_MB05_DATA1() bfin_read16(CAN1_MB05_DATA1)
396 #define bfin_write_CAN1_MB05_DATA1(val) bfin_write16(CAN1_MB05_DATA1, val)
397 #define bfin_read_CAN1_MB05_DATA2() bfin_read16(CAN1_MB05_DATA2)
398 #define bfin_write_CAN1_MB05_DATA2(val) bfin_write16(CAN1_MB05_DATA2, val)
399 #define bfin_read_CAN1_MB05_DATA3() bfin_read16(CAN1_MB05_DATA3)
400 #define bfin_write_CAN1_MB05_DATA3(val) bfin_write16(CAN1_MB05_DATA3, val)
401 #define bfin_read_CAN1_MB05_LENGTH() bfin_read16(CAN1_MB05_LENGTH)
402 #define bfin_write_CAN1_MB05_LENGTH(val) bfin_write16(CAN1_MB05_LENGTH, val)
403 #define bfin_read_CAN1_MB05_TIMESTAMP() bfin_read16(CAN1_MB05_TIMESTAMP)
404 #define bfin_write_CAN1_MB05_TIMESTAMP(val) bfin_write16(CAN1_MB05_TIMESTAMP, val)
405 #define bfin_read_CAN1_MB05_ID0() bfin_read16(CAN1_MB05_ID0)
406 #define bfin_write_CAN1_MB05_ID0(val) bfin_write16(CAN1_MB05_ID0, val)
407 #define bfin_read_CAN1_MB05_ID1() bfin_read16(CAN1_MB05_ID1)
408 #define bfin_write_CAN1_MB05_ID1(val) bfin_write16(CAN1_MB05_ID1, val)
409 #define bfin_read_CAN1_MB06_DATA0() bfin_read16(CAN1_MB06_DATA0)
410 #define bfin_write_CAN1_MB06_DATA0(val) bfin_write16(CAN1_MB06_DATA0, val)
411 #define bfin_read_CAN1_MB06_DATA1() bfin_read16(CAN1_MB06_DATA1)
412 #define bfin_write_CAN1_MB06_DATA1(val) bfin_write16(CAN1_MB06_DATA1, val)
413 #define bfin_read_CAN1_MB06_DATA2() bfin_read16(CAN1_MB06_DATA2)
414 #define bfin_write_CAN1_MB06_DATA2(val) bfin_write16(CAN1_MB06_DATA2, val)
415 #define bfin_read_CAN1_MB06_DATA3() bfin_read16(CAN1_MB06_DATA3)
416 #define bfin_write_CAN1_MB06_DATA3(val) bfin_write16(CAN1_MB06_DATA3, val)
417 #define bfin_read_CAN1_MB06_LENGTH() bfin_read16(CAN1_MB06_LENGTH)
418 #define bfin_write_CAN1_MB06_LENGTH(val) bfin_write16(CAN1_MB06_LENGTH, val)
419 #define bfin_read_CAN1_MB06_TIMESTAMP() bfin_read16(CAN1_MB06_TIMESTAMP)
420 #define bfin_write_CAN1_MB06_TIMESTAMP(val) bfin_write16(CAN1_MB06_TIMESTAMP, val)
421 #define bfin_read_CAN1_MB06_ID0() bfin_read16(CAN1_MB06_ID0)
422 #define bfin_write_CAN1_MB06_ID0(val) bfin_write16(CAN1_MB06_ID0, val)
423 #define bfin_read_CAN1_MB06_ID1() bfin_read16(CAN1_MB06_ID1)
424 #define bfin_write_CAN1_MB06_ID1(val) bfin_write16(CAN1_MB06_ID1, val)
425 #define bfin_read_CAN1_MB07_DATA0() bfin_read16(CAN1_MB07_DATA0)
426 #define bfin_write_CAN1_MB07_DATA0(val) bfin_write16(CAN1_MB07_DATA0, val)
427 #define bfin_read_CAN1_MB07_DATA1() bfin_read16(CAN1_MB07_DATA1)
428 #define bfin_write_CAN1_MB07_DATA1(val) bfin_write16(CAN1_MB07_DATA1, val)
429 #define bfin_read_CAN1_MB07_DATA2() bfin_read16(CAN1_MB07_DATA2)
430 #define bfin_write_CAN1_MB07_DATA2(val) bfin_write16(CAN1_MB07_DATA2, val)
431 #define bfin_read_CAN1_MB07_DATA3() bfin_read16(CAN1_MB07_DATA3)
432 #define bfin_write_CAN1_MB07_DATA3(val) bfin_write16(CAN1_MB07_DATA3, val)
433 #define bfin_read_CAN1_MB07_LENGTH() bfin_read16(CAN1_MB07_LENGTH)
434 #define bfin_write_CAN1_MB07_LENGTH(val) bfin_write16(CAN1_MB07_LENGTH, val)
435 #define bfin_read_CAN1_MB07_TIMESTAMP() bfin_read16(CAN1_MB07_TIMESTAMP)
436 #define bfin_write_CAN1_MB07_TIMESTAMP(val) bfin_write16(CAN1_MB07_TIMESTAMP, val)
437 #define bfin_read_CAN1_MB07_ID0() bfin_read16(CAN1_MB07_ID0)
438 #define bfin_write_CAN1_MB07_ID0(val) bfin_write16(CAN1_MB07_ID0, val)
439 #define bfin_read_CAN1_MB07_ID1() bfin_read16(CAN1_MB07_ID1)
440 #define bfin_write_CAN1_MB07_ID1(val) bfin_write16(CAN1_MB07_ID1, val)
441 #define bfin_read_CAN1_MB08_DATA0() bfin_read16(CAN1_MB08_DATA0)
442 #define bfin_write_CAN1_MB08_DATA0(val) bfin_write16(CAN1_MB08_DATA0, val)
443 #define bfin_read_CAN1_MB08_DATA1() bfin_read16(CAN1_MB08_DATA1)
444 #define bfin_write_CAN1_MB08_DATA1(val) bfin_write16(CAN1_MB08_DATA1, val)
445 #define bfin_read_CAN1_MB08_DATA2() bfin_read16(CAN1_MB08_DATA2)
446 #define bfin_write_CAN1_MB08_DATA2(val) bfin_write16(CAN1_MB08_DATA2, val)
447 #define bfin_read_CAN1_MB08_DATA3() bfin_read16(CAN1_MB08_DATA3)
448 #define bfin_write_CAN1_MB08_DATA3(val) bfin_write16(CAN1_MB08_DATA3, val)
449 #define bfin_read_CAN1_MB08_LENGTH() bfin_read16(CAN1_MB08_LENGTH)
450 #define bfin_write_CAN1_MB08_LENGTH(val) bfin_write16(CAN1_MB08_LENGTH, val)
451 #define bfin_read_CAN1_MB08_TIMESTAMP() bfin_read16(CAN1_MB08_TIMESTAMP)
452 #define bfin_write_CAN1_MB08_TIMESTAMP(val) bfin_write16(CAN1_MB08_TIMESTAMP, val)
453 #define bfin_read_CAN1_MB08_ID0() bfin_read16(CAN1_MB08_ID0)
454 #define bfin_write_CAN1_MB08_ID0(val) bfin_write16(CAN1_MB08_ID0, val)
455 #define bfin_read_CAN1_MB08_ID1() bfin_read16(CAN1_MB08_ID1)
456 #define bfin_write_CAN1_MB08_ID1(val) bfin_write16(CAN1_MB08_ID1, val)
457 #define bfin_read_CAN1_MB09_DATA0() bfin_read16(CAN1_MB09_DATA0)
458 #define bfin_write_CAN1_MB09_DATA0(val) bfin_write16(CAN1_MB09_DATA0, val)
459 #define bfin_read_CAN1_MB09_DATA1() bfin_read16(CAN1_MB09_DATA1)
460 #define bfin_write_CAN1_MB09_DATA1(val) bfin_write16(CAN1_MB09_DATA1, val)
461 #define bfin_read_CAN1_MB09_DATA2() bfin_read16(CAN1_MB09_DATA2)
462 #define bfin_write_CAN1_MB09_DATA2(val) bfin_write16(CAN1_MB09_DATA2, val)
463 #define bfin_read_CAN1_MB09_DATA3() bfin_read16(CAN1_MB09_DATA3)
464 #define bfin_write_CAN1_MB09_DATA3(val) bfin_write16(CAN1_MB09_DATA3, val)
465 #define bfin_read_CAN1_MB09_LENGTH() bfin_read16(CAN1_MB09_LENGTH)
466 #define bfin_write_CAN1_MB09_LENGTH(val) bfin_write16(CAN1_MB09_LENGTH, val)
467 #define bfin_read_CAN1_MB09_TIMESTAMP() bfin_read16(CAN1_MB09_TIMESTAMP)
468 #define bfin_write_CAN1_MB09_TIMESTAMP(val) bfin_write16(CAN1_MB09_TIMESTAMP, val)
469 #define bfin_read_CAN1_MB09_ID0() bfin_read16(CAN1_MB09_ID0)
470 #define bfin_write_CAN1_MB09_ID0(val) bfin_write16(CAN1_MB09_ID0, val)
471 #define bfin_read_CAN1_MB09_ID1() bfin_read16(CAN1_MB09_ID1)
472 #define bfin_write_CAN1_MB09_ID1(val) bfin_write16(CAN1_MB09_ID1, val)
473 #define bfin_read_CAN1_MB10_DATA0() bfin_read16(CAN1_MB10_DATA0)
474 #define bfin_write_CAN1_MB10_DATA0(val) bfin_write16(CAN1_MB10_DATA0, val)
475 #define bfin_read_CAN1_MB10_DATA1() bfin_read16(CAN1_MB10_DATA1)
476 #define bfin_write_CAN1_MB10_DATA1(val) bfin_write16(CAN1_MB10_DATA1, val)
477 #define bfin_read_CAN1_MB10_DATA2() bfin_read16(CAN1_MB10_DATA2)
478 #define bfin_write_CAN1_MB10_DATA2(val) bfin_write16(CAN1_MB10_DATA2, val)
479 #define bfin_read_CAN1_MB10_DATA3() bfin_read16(CAN1_MB10_DATA3)
480 #define bfin_write_CAN1_MB10_DATA3(val) bfin_write16(CAN1_MB10_DATA3, val)
481 #define bfin_read_CAN1_MB10_LENGTH() bfin_read16(CAN1_MB10_LENGTH)
482 #define bfin_write_CAN1_MB10_LENGTH(val) bfin_write16(CAN1_MB10_LENGTH, val)
483 #define bfin_read_CAN1_MB10_TIMESTAMP() bfin_read16(CAN1_MB10_TIMESTAMP)
484 #define bfin_write_CAN1_MB10_TIMESTAMP(val) bfin_write16(CAN1_MB10_TIMESTAMP, val)
485 #define bfin_read_CAN1_MB10_ID0() bfin_read16(CAN1_MB10_ID0)
486 #define bfin_write_CAN1_MB10_ID0(val) bfin_write16(CAN1_MB10_ID0, val)
487 #define bfin_read_CAN1_MB10_ID1() bfin_read16(CAN1_MB10_ID1)
488 #define bfin_write_CAN1_MB10_ID1(val) bfin_write16(CAN1_MB10_ID1, val)
489 #define bfin_read_CAN1_MB11_DATA0() bfin_read16(CAN1_MB11_DATA0)
490 #define bfin_write_CAN1_MB11_DATA0(val) bfin_write16(CAN1_MB11_DATA0, val)
491 #define bfin_read_CAN1_MB11_DATA1() bfin_read16(CAN1_MB11_DATA1)
492 #define bfin_write_CAN1_MB11_DATA1(val) bfin_write16(CAN1_MB11_DATA1, val)
493 #define bfin_read_CAN1_MB11_DATA2() bfin_read16(CAN1_MB11_DATA2)
494 #define bfin_write_CAN1_MB11_DATA2(val) bfin_write16(CAN1_MB11_DATA2, val)
495 #define bfin_read_CAN1_MB11_DATA3() bfin_read16(CAN1_MB11_DATA3)
496 #define bfin_write_CAN1_MB11_DATA3(val) bfin_write16(CAN1_MB11_DATA3, val)
497 #define bfin_read_CAN1_MB11_LENGTH() bfin_read16(CAN1_MB11_LENGTH)
498 #define bfin_write_CAN1_MB11_LENGTH(val) bfin_write16(CAN1_MB11_LENGTH, val)
499 #define bfin_read_CAN1_MB11_TIMESTAMP() bfin_read16(CAN1_MB11_TIMESTAMP)
500 #define bfin_write_CAN1_MB11_TIMESTAMP(val) bfin_write16(CAN1_MB11_TIMESTAMP, val)
501 #define bfin_read_CAN1_MB11_ID0() bfin_read16(CAN1_MB11_ID0)
502 #define bfin_write_CAN1_MB11_ID0(val) bfin_write16(CAN1_MB11_ID0, val)
503 #define bfin_read_CAN1_MB11_ID1() bfin_read16(CAN1_MB11_ID1)
504 #define bfin_write_CAN1_MB11_ID1(val) bfin_write16(CAN1_MB11_ID1, val)
505 #define bfin_read_CAN1_MB12_DATA0() bfin_read16(CAN1_MB12_DATA0)
506 #define bfin_write_CAN1_MB12_DATA0(val) bfin_write16(CAN1_MB12_DATA0, val)
507 #define bfin_read_CAN1_MB12_DATA1() bfin_read16(CAN1_MB12_DATA1)
508 #define bfin_write_CAN1_MB12_DATA1(val) bfin_write16(CAN1_MB12_DATA1, val)
509 #define bfin_read_CAN1_MB12_DATA2() bfin_read16(CAN1_MB12_DATA2)
510 #define bfin_write_CAN1_MB12_DATA2(val) bfin_write16(CAN1_MB12_DATA2, val)
511 #define bfin_read_CAN1_MB12_DATA3() bfin_read16(CAN1_MB12_DATA3)
512 #define bfin_write_CAN1_MB12_DATA3(val) bfin_write16(CAN1_MB12_DATA3, val)
513 #define bfin_read_CAN1_MB12_LENGTH() bfin_read16(CAN1_MB12_LENGTH)
514 #define bfin_write_CAN1_MB12_LENGTH(val) bfin_write16(CAN1_MB12_LENGTH, val)
515 #define bfin_read_CAN1_MB12_TIMESTAMP() bfin_read16(CAN1_MB12_TIMESTAMP)
516 #define bfin_write_CAN1_MB12_TIMESTAMP(val) bfin_write16(CAN1_MB12_TIMESTAMP, val)
517 #define bfin_read_CAN1_MB12_ID0() bfin_read16(CAN1_MB12_ID0)
518 #define bfin_write_CAN1_MB12_ID0(val) bfin_write16(CAN1_MB12_ID0, val)
519 #define bfin_read_CAN1_MB12_ID1() bfin_read16(CAN1_MB12_ID1)
520 #define bfin_write_CAN1_MB12_ID1(val) bfin_write16(CAN1_MB12_ID1, val)
521 #define bfin_read_CAN1_MB13_DATA0() bfin_read16(CAN1_MB13_DATA0)
522 #define bfin_write_CAN1_MB13_DATA0(val) bfin_write16(CAN1_MB13_DATA0, val)
523 #define bfin_read_CAN1_MB13_DATA1() bfin_read16(CAN1_MB13_DATA1)
524 #define bfin_write_CAN1_MB13_DATA1(val) bfin_write16(CAN1_MB13_DATA1, val)
525 #define bfin_read_CAN1_MB13_DATA2() bfin_read16(CAN1_MB13_DATA2)
526 #define bfin_write_CAN1_MB13_DATA2(val) bfin_write16(CAN1_MB13_DATA2, val)
527 #define bfin_read_CAN1_MB13_DATA3() bfin_read16(CAN1_MB13_DATA3)
528 #define bfin_write_CAN1_MB13_DATA3(val) bfin_write16(CAN1_MB13_DATA3, val)
529 #define bfin_read_CAN1_MB13_LENGTH() bfin_read16(CAN1_MB13_LENGTH)
530 #define bfin_write_CAN1_MB13_LENGTH(val) bfin_write16(CAN1_MB13_LENGTH, val)
531 #define bfin_read_CAN1_MB13_TIMESTAMP() bfin_read16(CAN1_MB13_TIMESTAMP)
532 #define bfin_write_CAN1_MB13_TIMESTAMP(val) bfin_write16(CAN1_MB13_TIMESTAMP, val)
533 #define bfin_read_CAN1_MB13_ID0() bfin_read16(CAN1_MB13_ID0)
534 #define bfin_write_CAN1_MB13_ID0(val) bfin_write16(CAN1_MB13_ID0, val)
535 #define bfin_read_CAN1_MB13_ID1() bfin_read16(CAN1_MB13_ID1)
536 #define bfin_write_CAN1_MB13_ID1(val) bfin_write16(CAN1_MB13_ID1, val)
537 #define bfin_read_CAN1_MB14_DATA0() bfin_read16(CAN1_MB14_DATA0)
538 #define bfin_write_CAN1_MB14_DATA0(val) bfin_write16(CAN1_MB14_DATA0, val)
539 #define bfin_read_CAN1_MB14_DATA1() bfin_read16(CAN1_MB14_DATA1)
540 #define bfin_write_CAN1_MB14_DATA1(val) bfin_write16(CAN1_MB14_DATA1, val)
541 #define bfin_read_CAN1_MB14_DATA2() bfin_read16(CAN1_MB14_DATA2)
542 #define bfin_write_CAN1_MB14_DATA2(val) bfin_write16(CAN1_MB14_DATA2, val)
543 #define bfin_read_CAN1_MB14_DATA3() bfin_read16(CAN1_MB14_DATA3)
544 #define bfin_write_CAN1_MB14_DATA3(val) bfin_write16(CAN1_MB14_DATA3, val)
545 #define bfin_read_CAN1_MB14_LENGTH() bfin_read16(CAN1_MB14_LENGTH)
546 #define bfin_write_CAN1_MB14_LENGTH(val) bfin_write16(CAN1_MB14_LENGTH, val)
547 #define bfin_read_CAN1_MB14_TIMESTAMP() bfin_read16(CAN1_MB14_TIMESTAMP)
548 #define bfin_write_CAN1_MB14_TIMESTAMP(val) bfin_write16(CAN1_MB14_TIMESTAMP, val)
549 #define bfin_read_CAN1_MB14_ID0() bfin_read16(CAN1_MB14_ID0)
550 #define bfin_write_CAN1_MB14_ID0(val) bfin_write16(CAN1_MB14_ID0, val)
551 #define bfin_read_CAN1_MB14_ID1() bfin_read16(CAN1_MB14_ID1)
552 #define bfin_write_CAN1_MB14_ID1(val) bfin_write16(CAN1_MB14_ID1, val)
553 #define bfin_read_CAN1_MB15_DATA0() bfin_read16(CAN1_MB15_DATA0)
554 #define bfin_write_CAN1_MB15_DATA0(val) bfin_write16(CAN1_MB15_DATA0, val)
555 #define bfin_read_CAN1_MB15_DATA1() bfin_read16(CAN1_MB15_DATA1)
556 #define bfin_write_CAN1_MB15_DATA1(val) bfin_write16(CAN1_MB15_DATA1, val)
557 #define bfin_read_CAN1_MB15_DATA2() bfin_read16(CAN1_MB15_DATA2)
558 #define bfin_write_CAN1_MB15_DATA2(val) bfin_write16(CAN1_MB15_DATA2, val)
559 #define bfin_read_CAN1_MB15_DATA3() bfin_read16(CAN1_MB15_DATA3)
560 #define bfin_write_CAN1_MB15_DATA3(val) bfin_write16(CAN1_MB15_DATA3, val)
561 #define bfin_read_CAN1_MB15_LENGTH() bfin_read16(CAN1_MB15_LENGTH)
562 #define bfin_write_CAN1_MB15_LENGTH(val) bfin_write16(CAN1_MB15_LENGTH, val)
563 #define bfin_read_CAN1_MB15_TIMESTAMP() bfin_read16(CAN1_MB15_TIMESTAMP)
564 #define bfin_write_CAN1_MB15_TIMESTAMP(val) bfin_write16(CAN1_MB15_TIMESTAMP, val)
565 #define bfin_read_CAN1_MB15_ID0() bfin_read16(CAN1_MB15_ID0)
566 #define bfin_write_CAN1_MB15_ID0(val) bfin_write16(CAN1_MB15_ID0, val)
567 #define bfin_read_CAN1_MB15_ID1() bfin_read16(CAN1_MB15_ID1)
568 #define bfin_write_CAN1_MB15_ID1(val) bfin_write16(CAN1_MB15_ID1, val)
570 /* CAN Controller 1 Mailbox Data Registers */
572 #define bfin_read_CAN1_MB16_DATA0() bfin_read16(CAN1_MB16_DATA0)
573 #define bfin_write_CAN1_MB16_DATA0(val) bfin_write16(CAN1_MB16_DATA0, val)
574 #define bfin_read_CAN1_MB16_DATA1() bfin_read16(CAN1_MB16_DATA1)
575 #define bfin_write_CAN1_MB16_DATA1(val) bfin_write16(CAN1_MB16_DATA1, val)
576 #define bfin_read_CAN1_MB16_DATA2() bfin_read16(CAN1_MB16_DATA2)
577 #define bfin_write_CAN1_MB16_DATA2(val) bfin_write16(CAN1_MB16_DATA2, val)
578 #define bfin_read_CAN1_MB16_DATA3() bfin_read16(CAN1_MB16_DATA3)
579 #define bfin_write_CAN1_MB16_DATA3(val) bfin_write16(CAN1_MB16_DATA3, val)
580 #define bfin_read_CAN1_MB16_LENGTH() bfin_read16(CAN1_MB16_LENGTH)
581 #define bfin_write_CAN1_MB16_LENGTH(val) bfin_write16(CAN1_MB16_LENGTH, val)
582 #define bfin_read_CAN1_MB16_TIMESTAMP() bfin_read16(CAN1_MB16_TIMESTAMP)
583 #define bfin_write_CAN1_MB16_TIMESTAMP(val) bfin_write16(CAN1_MB16_TIMESTAMP, val)
584 #define bfin_read_CAN1_MB16_ID0() bfin_read16(CAN1_MB16_ID0)
585 #define bfin_write_CAN1_MB16_ID0(val) bfin_write16(CAN1_MB16_ID0, val)
586 #define bfin_read_CAN1_MB16_ID1() bfin_read16(CAN1_MB16_ID1)
587 #define bfin_write_CAN1_MB16_ID1(val) bfin_write16(CAN1_MB16_ID1, val)
588 #define bfin_read_CAN1_MB17_DATA0() bfin_read16(CAN1_MB17_DATA0)
589 #define bfin_write_CAN1_MB17_DATA0(val) bfin_write16(CAN1_MB17_DATA0, val)
590 #define bfin_read_CAN1_MB17_DATA1() bfin_read16(CAN1_MB17_DATA1)
591 #define bfin_write_CAN1_MB17_DATA1(val) bfin_write16(CAN1_MB17_DATA1, val)
592 #define bfin_read_CAN1_MB17_DATA2() bfin_read16(CAN1_MB17_DATA2)
593 #define bfin_write_CAN1_MB17_DATA2(val) bfin_write16(CAN1_MB17_DATA2, val)
594 #define bfin_read_CAN1_MB17_DATA3() bfin_read16(CAN1_MB17_DATA3)
595 #define bfin_write_CAN1_MB17_DATA3(val) bfin_write16(CAN1_MB17_DATA3, val)
596 #define bfin_read_CAN1_MB17_LENGTH() bfin_read16(CAN1_MB17_LENGTH)
597 #define bfin_write_CAN1_MB17_LENGTH(val) bfin_write16(CAN1_MB17_LENGTH, val)
598 #define bfin_read_CAN1_MB17_TIMESTAMP() bfin_read16(CAN1_MB17_TIMESTAMP)
599 #define bfin_write_CAN1_MB17_TIMESTAMP(val) bfin_write16(CAN1_MB17_TIMESTAMP, val)
600 #define bfin_read_CAN1_MB17_ID0() bfin_read16(CAN1_MB17_ID0)
601 #define bfin_write_CAN1_MB17_ID0(val) bfin_write16(CAN1_MB17_ID0, val)
602 #define bfin_read_CAN1_MB17_ID1() bfin_read16(CAN1_MB17_ID1)
603 #define bfin_write_CAN1_MB17_ID1(val) bfin_write16(CAN1_MB17_ID1, val)
604 #define bfin_read_CAN1_MB18_DATA0() bfin_read16(CAN1_MB18_DATA0)
605 #define bfin_write_CAN1_MB18_DATA0(val) bfin_write16(CAN1_MB18_DATA0, val)
606 #define bfin_read_CAN1_MB18_DATA1() bfin_read16(CAN1_MB18_DATA1)
607 #define bfin_write_CAN1_MB18_DATA1(val) bfin_write16(CAN1_MB18_DATA1, val)
608 #define bfin_read_CAN1_MB18_DATA2() bfin_read16(CAN1_MB18_DATA2)
609 #define bfin_write_CAN1_MB18_DATA2(val) bfin_write16(CAN1_MB18_DATA2, val)
610 #define bfin_read_CAN1_MB18_DATA3() bfin_read16(CAN1_MB18_DATA3)
611 #define bfin_write_CAN1_MB18_DATA3(val) bfin_write16(CAN1_MB18_DATA3, val)
612 #define bfin_read_CAN1_MB18_LENGTH() bfin_read16(CAN1_MB18_LENGTH)
613 #define bfin_write_CAN1_MB18_LENGTH(val) bfin_write16(CAN1_MB18_LENGTH, val)
614 #define bfin_read_CAN1_MB18_TIMESTAMP() bfin_read16(CAN1_MB18_TIMESTAMP)
615 #define bfin_write_CAN1_MB18_TIMESTAMP(val) bfin_write16(CAN1_MB18_TIMESTAMP, val)
616 #define bfin_read_CAN1_MB18_ID0() bfin_read16(CAN1_MB18_ID0)
617 #define bfin_write_CAN1_MB18_ID0(val) bfin_write16(CAN1_MB18_ID0, val)
618 #define bfin_read_CAN1_MB18_ID1() bfin_read16(CAN1_MB18_ID1)
619 #define bfin_write_CAN1_MB18_ID1(val) bfin_write16(CAN1_MB18_ID1, val)
620 #define bfin_read_CAN1_MB19_DATA0() bfin_read16(CAN1_MB19_DATA0)
621 #define bfin_write_CAN1_MB19_DATA0(val) bfin_write16(CAN1_MB19_DATA0, val)
622 #define bfin_read_CAN1_MB19_DATA1() bfin_read16(CAN1_MB19_DATA1)
623 #define bfin_write_CAN1_MB19_DATA1(val) bfin_write16(CAN1_MB19_DATA1, val)
624 #define bfin_read_CAN1_MB19_DATA2() bfin_read16(CAN1_MB19_DATA2)
625 #define bfin_write_CAN1_MB19_DATA2(val) bfin_write16(CAN1_MB19_DATA2, val)
626 #define bfin_read_CAN1_MB19_DATA3() bfin_read16(CAN1_MB19_DATA3)
627 #define bfin_write_CAN1_MB19_DATA3(val) bfin_write16(CAN1_MB19_DATA3, val)
628 #define bfin_read_CAN1_MB19_LENGTH() bfin_read16(CAN1_MB19_LENGTH)
629 #define bfin_write_CAN1_MB19_LENGTH(val) bfin_write16(CAN1_MB19_LENGTH, val)
630 #define bfin_read_CAN1_MB19_TIMESTAMP() bfin_read16(CAN1_MB19_TIMESTAMP)
631 #define bfin_write_CAN1_MB19_TIMESTAMP(val) bfin_write16(CAN1_MB19_TIMESTAMP, val)
632 #define bfin_read_CAN1_MB19_ID0() bfin_read16(CAN1_MB19_ID0)
633 #define bfin_write_CAN1_MB19_ID0(val) bfin_write16(CAN1_MB19_ID0, val)
634 #define bfin_read_CAN1_MB19_ID1() bfin_read16(CAN1_MB19_ID1)
635 #define bfin_write_CAN1_MB19_ID1(val) bfin_write16(CAN1_MB19_ID1, val)
636 #define bfin_read_CAN1_MB20_DATA0() bfin_read16(CAN1_MB20_DATA0)
637 #define bfin_write_CAN1_MB20_DATA0(val) bfin_write16(CAN1_MB20_DATA0, val)
638 #define bfin_read_CAN1_MB20_DATA1() bfin_read16(CAN1_MB20_DATA1)
639 #define bfin_write_CAN1_MB20_DATA1(val) bfin_write16(CAN1_MB20_DATA1, val)
640 #define bfin_read_CAN1_MB20_DATA2() bfin_read16(CAN1_MB20_DATA2)
641 #define bfin_write_CAN1_MB20_DATA2(val) bfin_write16(CAN1_MB20_DATA2, val)
642 #define bfin_read_CAN1_MB20_DATA3() bfin_read16(CAN1_MB20_DATA3)
643 #define bfin_write_CAN1_MB20_DATA3(val) bfin_write16(CAN1_MB20_DATA3, val)
644 #define bfin_read_CAN1_MB20_LENGTH() bfin_read16(CAN1_MB20_LENGTH)
645 #define bfin_write_CAN1_MB20_LENGTH(val) bfin_write16(CAN1_MB20_LENGTH, val)
646 #define bfin_read_CAN1_MB20_TIMESTAMP() bfin_read16(CAN1_MB20_TIMESTAMP)
647 #define bfin_write_CAN1_MB20_TIMESTAMP(val) bfin_write16(CAN1_MB20_TIMESTAMP, val)
648 #define bfin_read_CAN1_MB20_ID0() bfin_read16(CAN1_MB20_ID0)
649 #define bfin_write_CAN1_MB20_ID0(val) bfin_write16(CAN1_MB20_ID0, val)
650 #define bfin_read_CAN1_MB20_ID1() bfin_read16(CAN1_MB20_ID1)
651 #define bfin_write_CAN1_MB20_ID1(val) bfin_write16(CAN1_MB20_ID1, val)
652 #define bfin_read_CAN1_MB21_DATA0() bfin_read16(CAN1_MB21_DATA0)
653 #define bfin_write_CAN1_MB21_DATA0(val) bfin_write16(CAN1_MB21_DATA0, val)
654 #define bfin_read_CAN1_MB21_DATA1() bfin_read16(CAN1_MB21_DATA1)
655 #define bfin_write_CAN1_MB21_DATA1(val) bfin_write16(CAN1_MB21_DATA1, val)
656 #define bfin_read_CAN1_MB21_DATA2() bfin_read16(CAN1_MB21_DATA2)
657 #define bfin_write_CAN1_MB21_DATA2(val) bfin_write16(CAN1_MB21_DATA2, val)
658 #define bfin_read_CAN1_MB21_DATA3() bfin_read16(CAN1_MB21_DATA3)
659 #define bfin_write_CAN1_MB21_DATA3(val) bfin_write16(CAN1_MB21_DATA3, val)
660 #define bfin_read_CAN1_MB21_LENGTH() bfin_read16(CAN1_MB21_LENGTH)
661 #define bfin_write_CAN1_MB21_LENGTH(val) bfin_write16(CAN1_MB21_LENGTH, val)
662 #define bfin_read_CAN1_MB21_TIMESTAMP() bfin_read16(CAN1_MB21_TIMESTAMP)
663 #define bfin_write_CAN1_MB21_TIMESTAMP(val) bfin_write16(CAN1_MB21_TIMESTAMP, val)
664 #define bfin_read_CAN1_MB21_ID0() bfin_read16(CAN1_MB21_ID0)
665 #define bfin_write_CAN1_MB21_ID0(val) bfin_write16(CAN1_MB21_ID0, val)
666 #define bfin_read_CAN1_MB21_ID1() bfin_read16(CAN1_MB21_ID1)
667 #define bfin_write_CAN1_MB21_ID1(val) bfin_write16(CAN1_MB21_ID1, val)
668 #define bfin_read_CAN1_MB22_DATA0() bfin_read16(CAN1_MB22_DATA0)
669 #define bfin_write_CAN1_MB22_DATA0(val) bfin_write16(CAN1_MB22_DATA0, val)
670 #define bfin_read_CAN1_MB22_DATA1() bfin_read16(CAN1_MB22_DATA1)
671 #define bfin_write_CAN1_MB22_DATA1(val) bfin_write16(CAN1_MB22_DATA1, val)
672 #define bfin_read_CAN1_MB22_DATA2() bfin_read16(CAN1_MB22_DATA2)
673 #define bfin_write_CAN1_MB22_DATA2(val) bfin_write16(CAN1_MB22_DATA2, val)
674 #define bfin_read_CAN1_MB22_DATA3() bfin_read16(CAN1_MB22_DATA3)
675 #define bfin_write_CAN1_MB22_DATA3(val) bfin_write16(CAN1_MB22_DATA3, val)
676 #define bfin_read_CAN1_MB22_LENGTH() bfin_read16(CAN1_MB22_LENGTH)
677 #define bfin_write_CAN1_MB22_LENGTH(val) bfin_write16(CAN1_MB22_LENGTH, val)
678 #define bfin_read_CAN1_MB22_TIMESTAMP() bfin_read16(CAN1_MB22_TIMESTAMP)
679 #define bfin_write_CAN1_MB22_TIMESTAMP(val) bfin_write16(CAN1_MB22_TIMESTAMP, val)
680 #define bfin_read_CAN1_MB22_ID0() bfin_read16(CAN1_MB22_ID0)
681 #define bfin_write_CAN1_MB22_ID0(val) bfin_write16(CAN1_MB22_ID0, val)
682 #define bfin_read_CAN1_MB22_ID1() bfin_read16(CAN1_MB22_ID1)
683 #define bfin_write_CAN1_MB22_ID1(val) bfin_write16(CAN1_MB22_ID1, val)
684 #define bfin_read_CAN1_MB23_DATA0() bfin_read16(CAN1_MB23_DATA0)
685 #define bfin_write_CAN1_MB23_DATA0(val) bfin_write16(CAN1_MB23_DATA0, val)
686 #define bfin_read_CAN1_MB23_DATA1() bfin_read16(CAN1_MB23_DATA1)
687 #define bfin_write_CAN1_MB23_DATA1(val) bfin_write16(CAN1_MB23_DATA1, val)
688 #define bfin_read_CAN1_MB23_DATA2() bfin_read16(CAN1_MB23_DATA2)
689 #define bfin_write_CAN1_MB23_DATA2(val) bfin_write16(CAN1_MB23_DATA2, val)
690 #define bfin_read_CAN1_MB23_DATA3() bfin_read16(CAN1_MB23_DATA3)
691 #define bfin_write_CAN1_MB23_DATA3(val) bfin_write16(CAN1_MB23_DATA3, val)
692 #define bfin_read_CAN1_MB23_LENGTH() bfin_read16(CAN1_MB23_LENGTH)
693 #define bfin_write_CAN1_MB23_LENGTH(val) bfin_write16(CAN1_MB23_LENGTH, val)
694 #define bfin_read_CAN1_MB23_TIMESTAMP() bfin_read16(CAN1_MB23_TIMESTAMP)
695 #define bfin_write_CAN1_MB23_TIMESTAMP(val) bfin_write16(CAN1_MB23_TIMESTAMP, val)
696 #define bfin_read_CAN1_MB23_ID0() bfin_read16(CAN1_MB23_ID0)
697 #define bfin_write_CAN1_MB23_ID0(val) bfin_write16(CAN1_MB23_ID0, val)
698 #define bfin_read_CAN1_MB23_ID1() bfin_read16(CAN1_MB23_ID1)
699 #define bfin_write_CAN1_MB23_ID1(val) bfin_write16(CAN1_MB23_ID1, val)
700 #define bfin_read_CAN1_MB24_DATA0() bfin_read16(CAN1_MB24_DATA0)
701 #define bfin_write_CAN1_MB24_DATA0(val) bfin_write16(CAN1_MB24_DATA0, val)
702 #define bfin_read_CAN1_MB24_DATA1() bfin_read16(CAN1_MB24_DATA1)
703 #define bfin_write_CAN1_MB24_DATA1(val) bfin_write16(CAN1_MB24_DATA1, val)
704 #define bfin_read_CAN1_MB24_DATA2() bfin_read16(CAN1_MB24_DATA2)
705 #define bfin_write_CAN1_MB24_DATA2(val) bfin_write16(CAN1_MB24_DATA2, val)
706 #define bfin_read_CAN1_MB24_DATA3() bfin_read16(CAN1_MB24_DATA3)
707 #define bfin_write_CAN1_MB24_DATA3(val) bfin_write16(CAN1_MB24_DATA3, val)
708 #define bfin_read_CAN1_MB24_LENGTH() bfin_read16(CAN1_MB24_LENGTH)
709 #define bfin_write_CAN1_MB24_LENGTH(val) bfin_write16(CAN1_MB24_LENGTH, val)
710 #define bfin_read_CAN1_MB24_TIMESTAMP() bfin_read16(CAN1_MB24_TIMESTAMP)
711 #define bfin_write_CAN1_MB24_TIMESTAMP(val) bfin_write16(CAN1_MB24_TIMESTAMP, val)
712 #define bfin_read_CAN1_MB24_ID0() bfin_read16(CAN1_MB24_ID0)
713 #define bfin_write_CAN1_MB24_ID0(val) bfin_write16(CAN1_MB24_ID0, val)
714 #define bfin_read_CAN1_MB24_ID1() bfin_read16(CAN1_MB24_ID1)
715 #define bfin_write_CAN1_MB24_ID1(val) bfin_write16(CAN1_MB24_ID1, val)
716 #define bfin_read_CAN1_MB25_DATA0() bfin_read16(CAN1_MB25_DATA0)
717 #define bfin_write_CAN1_MB25_DATA0(val) bfin_write16(CAN1_MB25_DATA0, val)
718 #define bfin_read_CAN1_MB25_DATA1() bfin_read16(CAN1_MB25_DATA1)
719 #define bfin_write_CAN1_MB25_DATA1(val) bfin_write16(CAN1_MB25_DATA1, val)
720 #define bfin_read_CAN1_MB25_DATA2() bfin_read16(CAN1_MB25_DATA2)
721 #define bfin_write_CAN1_MB25_DATA2(val) bfin_write16(CAN1_MB25_DATA2, val)
722 #define bfin_read_CAN1_MB25_DATA3() bfin_read16(CAN1_MB25_DATA3)
723 #define bfin_write_CAN1_MB25_DATA3(val) bfin_write16(CAN1_MB25_DATA3, val)
724 #define bfin_read_CAN1_MB25_LENGTH() bfin_read16(CAN1_MB25_LENGTH)
725 #define bfin_write_CAN1_MB25_LENGTH(val) bfin_write16(CAN1_MB25_LENGTH, val)
726 #define bfin_read_CAN1_MB25_TIMESTAMP() bfin_read16(CAN1_MB25_TIMESTAMP)
727 #define bfin_write_CAN1_MB25_TIMESTAMP(val) bfin_write16(CAN1_MB25_TIMESTAMP, val)
728 #define bfin_read_CAN1_MB25_ID0() bfin_read16(CAN1_MB25_ID0)
729 #define bfin_write_CAN1_MB25_ID0(val) bfin_write16(CAN1_MB25_ID0, val)
730 #define bfin_read_CAN1_MB25_ID1() bfin_read16(CAN1_MB25_ID1)
731 #define bfin_write_CAN1_MB25_ID1(val) bfin_write16(CAN1_MB25_ID1, val)
732 #define bfin_read_CAN1_MB26_DATA0() bfin_read16(CAN1_MB26_DATA0)
733 #define bfin_write_CAN1_MB26_DATA0(val) bfin_write16(CAN1_MB26_DATA0, val)
734 #define bfin_read_CAN1_MB26_DATA1() bfin_read16(CAN1_MB26_DATA1)
735 #define bfin_write_CAN1_MB26_DATA1(val) bfin_write16(CAN1_MB26_DATA1, val)
736 #define bfin_read_CAN1_MB26_DATA2() bfin_read16(CAN1_MB26_DATA2)
737 #define bfin_write_CAN1_MB26_DATA2(val) bfin_write16(CAN1_MB26_DATA2, val)
738 #define bfin_read_CAN1_MB26_DATA3() bfin_read16(CAN1_MB26_DATA3)
739 #define bfin_write_CAN1_MB26_DATA3(val) bfin_write16(CAN1_MB26_DATA3, val)
740 #define bfin_read_CAN1_MB26_LENGTH() bfin_read16(CAN1_MB26_LENGTH)
741 #define bfin_write_CAN1_MB26_LENGTH(val) bfin_write16(CAN1_MB26_LENGTH, val)
742 #define bfin_read_CAN1_MB26_TIMESTAMP() bfin_read16(CAN1_MB26_TIMESTAMP)
743 #define bfin_write_CAN1_MB26_TIMESTAMP(val) bfin_write16(CAN1_MB26_TIMESTAMP, val)
744 #define bfin_read_CAN1_MB26_ID0() bfin_read16(CAN1_MB26_ID0)
745 #define bfin_write_CAN1_MB26_ID0(val) bfin_write16(CAN1_MB26_ID0, val)
746 #define bfin_read_CAN1_MB26_ID1() bfin_read16(CAN1_MB26_ID1)
747 #define bfin_write_CAN1_MB26_ID1(val) bfin_write16(CAN1_MB26_ID1, val)
748 #define bfin_read_CAN1_MB27_DATA0() bfin_read16(CAN1_MB27_DATA0)
749 #define bfin_write_CAN1_MB27_DATA0(val) bfin_write16(CAN1_MB27_DATA0, val)
750 #define bfin_read_CAN1_MB27_DATA1() bfin_read16(CAN1_MB27_DATA1)
751 #define bfin_write_CAN1_MB27_DATA1(val) bfin_write16(CAN1_MB27_DATA1, val)
752 #define bfin_read_CAN1_MB27_DATA2() bfin_read16(CAN1_MB27_DATA2)
753 #define bfin_write_CAN1_MB27_DATA2(val) bfin_write16(CAN1_MB27_DATA2, val)
754 #define bfin_read_CAN1_MB27_DATA3() bfin_read16(CAN1_MB27_DATA3)
755 #define bfin_write_CAN1_MB27_DATA3(val) bfin_write16(CAN1_MB27_DATA3, val)
756 #define bfin_read_CAN1_MB27_LENGTH() bfin_read16(CAN1_MB27_LENGTH)
757 #define bfin_write_CAN1_MB27_LENGTH(val) bfin_write16(CAN1_MB27_LENGTH, val)
758 #define bfin_read_CAN1_MB27_TIMESTAMP() bfin_read16(CAN1_MB27_TIMESTAMP)
759 #define bfin_write_CAN1_MB27_TIMESTAMP(val) bfin_write16(CAN1_MB27_TIMESTAMP, val)
760 #define bfin_read_CAN1_MB27_ID0() bfin_read16(CAN1_MB27_ID0)
761 #define bfin_write_CAN1_MB27_ID0(val) bfin_write16(CAN1_MB27_ID0, val)
762 #define bfin_read_CAN1_MB27_ID1() bfin_read16(CAN1_MB27_ID1)
763 #define bfin_write_CAN1_MB27_ID1(val) bfin_write16(CAN1_MB27_ID1, val)
764 #define bfin_read_CAN1_MB28_DATA0() bfin_read16(CAN1_MB28_DATA0)
765 #define bfin_write_CAN1_MB28_DATA0(val) bfin_write16(CAN1_MB28_DATA0, val)
766 #define bfin_read_CAN1_MB28_DATA1() bfin_read16(CAN1_MB28_DATA1)
767 #define bfin_write_CAN1_MB28_DATA1(val) bfin_write16(CAN1_MB28_DATA1, val)
768 #define bfin_read_CAN1_MB28_DATA2() bfin_read16(CAN1_MB28_DATA2)
769 #define bfin_write_CAN1_MB28_DATA2(val) bfin_write16(CAN1_MB28_DATA2, val)
770 #define bfin_read_CAN1_MB28_DATA3() bfin_read16(CAN1_MB28_DATA3)
771 #define bfin_write_CAN1_MB28_DATA3(val) bfin_write16(CAN1_MB28_DATA3, val)
772 #define bfin_read_CAN1_MB28_LENGTH() bfin_read16(CAN1_MB28_LENGTH)
773 #define bfin_write_CAN1_MB28_LENGTH(val) bfin_write16(CAN1_MB28_LENGTH, val)
774 #define bfin_read_CAN1_MB28_TIMESTAMP() bfin_read16(CAN1_MB28_TIMESTAMP)
775 #define bfin_write_CAN1_MB28_TIMESTAMP(val) bfin_write16(CAN1_MB28_TIMESTAMP, val)
776 #define bfin_read_CAN1_MB28_ID0() bfin_read16(CAN1_MB28_ID0)
777 #define bfin_write_CAN1_MB28_ID0(val) bfin_write16(CAN1_MB28_ID0, val)
778 #define bfin_read_CAN1_MB28_ID1() bfin_read16(CAN1_MB28_ID1)
779 #define bfin_write_CAN1_MB28_ID1(val) bfin_write16(CAN1_MB28_ID1, val)
780 #define bfin_read_CAN1_MB29_DATA0() bfin_read16(CAN1_MB29_DATA0)
781 #define bfin_write_CAN1_MB29_DATA0(val) bfin_write16(CAN1_MB29_DATA0, val)
782 #define bfin_read_CAN1_MB29_DATA1() bfin_read16(CAN1_MB29_DATA1)
783 #define bfin_write_CAN1_MB29_DATA1(val) bfin_write16(CAN1_MB29_DATA1, val)
784 #define bfin_read_CAN1_MB29_DATA2() bfin_read16(CAN1_MB29_DATA2)
785 #define bfin_write_CAN1_MB29_DATA2(val) bfin_write16(CAN1_MB29_DATA2, val)
786 #define bfin_read_CAN1_MB29_DATA3() bfin_read16(CAN1_MB29_DATA3)
787 #define bfin_write_CAN1_MB29_DATA3(val) bfin_write16(CAN1_MB29_DATA3, val)
788 #define bfin_read_CAN1_MB29_LENGTH() bfin_read16(CAN1_MB29_LENGTH)
789 #define bfin_write_CAN1_MB29_LENGTH(val) bfin_write16(CAN1_MB29_LENGTH, val)
790 #define bfin_read_CAN1_MB29_TIMESTAMP() bfin_read16(CAN1_MB29_TIMESTAMP)
791 #define bfin_write_CAN1_MB29_TIMESTAMP(val) bfin_write16(CAN1_MB29_TIMESTAMP, val)
792 #define bfin_read_CAN1_MB29_ID0() bfin_read16(CAN1_MB29_ID0)
793 #define bfin_write_CAN1_MB29_ID0(val) bfin_write16(CAN1_MB29_ID0, val)
794 #define bfin_read_CAN1_MB29_ID1() bfin_read16(CAN1_MB29_ID1)
795 #define bfin_write_CAN1_MB29_ID1(val) bfin_write16(CAN1_MB29_ID1, val)
796 #define bfin_read_CAN1_MB30_DATA0() bfin_read16(CAN1_MB30_DATA0)
797 #define bfin_write_CAN1_MB30_DATA0(val) bfin_write16(CAN1_MB30_DATA0, val)
798 #define bfin_read_CAN1_MB30_DATA1() bfin_read16(CAN1_MB30_DATA1)
799 #define bfin_write_CAN1_MB30_DATA1(val) bfin_write16(CAN1_MB30_DATA1, val)
800 #define bfin_read_CAN1_MB30_DATA2() bfin_read16(CAN1_MB30_DATA2)
801 #define bfin_write_CAN1_MB30_DATA2(val) bfin_write16(CAN1_MB30_DATA2, val)
802 #define bfin_read_CAN1_MB30_DATA3() bfin_read16(CAN1_MB30_DATA3)
803 #define bfin_write_CAN1_MB30_DATA3(val) bfin_write16(CAN1_MB30_DATA3, val)
804 #define bfin_read_CAN1_MB30_LENGTH() bfin_read16(CAN1_MB30_LENGTH)
805 #define bfin_write_CAN1_MB30_LENGTH(val) bfin_write16(CAN1_MB30_LENGTH, val)
806 #define bfin_read_CAN1_MB30_TIMESTAMP() bfin_read16(CAN1_MB30_TIMESTAMP)
807 #define bfin_write_CAN1_MB30_TIMESTAMP(val) bfin_write16(CAN1_MB30_TIMESTAMP, val)
808 #define bfin_read_CAN1_MB30_ID0() bfin_read16(CAN1_MB30_ID0)
809 #define bfin_write_CAN1_MB30_ID0(val) bfin_write16(CAN1_MB30_ID0, val)
810 #define bfin_read_CAN1_MB30_ID1() bfin_read16(CAN1_MB30_ID1)
811 #define bfin_write_CAN1_MB30_ID1(val) bfin_write16(CAN1_MB30_ID1, val)
812 #define bfin_read_CAN1_MB31_DATA0() bfin_read16(CAN1_MB31_DATA0)
813 #define bfin_write_CAN1_MB31_DATA0(val) bfin_write16(CAN1_MB31_DATA0, val)
814 #define bfin_read_CAN1_MB31_DATA1() bfin_read16(CAN1_MB31_DATA1)
815 #define bfin_write_CAN1_MB31_DATA1(val) bfin_write16(CAN1_MB31_DATA1, val)
816 #define bfin_read_CAN1_MB31_DATA2() bfin_read16(CAN1_MB31_DATA2)
817 #define bfin_write_CAN1_MB31_DATA2(val) bfin_write16(CAN1_MB31_DATA2, val)
818 #define bfin_read_CAN1_MB31_DATA3() bfin_read16(CAN1_MB31_DATA3)
819 #define bfin_write_CAN1_MB31_DATA3(val) bfin_write16(CAN1_MB31_DATA3, val)
820 #define bfin_read_CAN1_MB31_LENGTH() bfin_read16(CAN1_MB31_LENGTH)
821 #define bfin_write_CAN1_MB31_LENGTH(val) bfin_write16(CAN1_MB31_LENGTH, val)
822 #define bfin_read_CAN1_MB31_TIMESTAMP() bfin_read16(CAN1_MB31_TIMESTAMP)
823 #define bfin_write_CAN1_MB31_TIMESTAMP(val) bfin_write16(CAN1_MB31_TIMESTAMP, val)
824 #define bfin_read_CAN1_MB31_ID0() bfin_read16(CAN1_MB31_ID0)
825 #define bfin_write_CAN1_MB31_ID0(val) bfin_write16(CAN1_MB31_ID0, val)
826 #define bfin_read_CAN1_MB31_ID1() bfin_read16(CAN1_MB31_ID1)
827 #define bfin_write_CAN1_MB31_ID1(val) bfin_write16(CAN1_MB31_ID1, val)
829 /* HOST Port Registers */
831 #define bfin_read_HOST_CONTROL() bfin_read16(HOST_CONTROL)
832 #define bfin_write_HOST_CONTROL(val) bfin_write16(HOST_CONTROL, val)
833 #define bfin_read_HOST_STATUS() bfin_read16(HOST_STATUS)
834 #define bfin_write_HOST_STATUS(val) bfin_write16(HOST_STATUS, val)
835 #define bfin_read_HOST_TIMEOUT() bfin_read16(HOST_TIMEOUT)
836 #define bfin_write_HOST_TIMEOUT(val) bfin_write16(HOST_TIMEOUT, val)
838 /* Pixel Combfin_read_()ositor (PIXC) Registers */
840 #define bfin_read_PIXC_CTL() bfin_read16(PIXC_CTL)
841 #define bfin_write_PIXC_CTL(val) bfin_write16(PIXC_CTL, val)
842 #define bfin_read_PIXC_PPL() bfin_read16(PIXC_PPL)
843 #define bfin_write_PIXC_PPL(val) bfin_write16(PIXC_PPL, val)
844 #define bfin_read_PIXC_LPF() bfin_read16(PIXC_LPF)
845 #define bfin_write_PIXC_LPF(val) bfin_write16(PIXC_LPF, val)
846 #define bfin_read_PIXC_AHSTART() bfin_read16(PIXC_AHSTART)
847 #define bfin_write_PIXC_AHSTART(val) bfin_write16(PIXC_AHSTART, val)
848 #define bfin_read_PIXC_AHEND() bfin_read16(PIXC_AHEND)
849 #define bfin_write_PIXC_AHEND(val) bfin_write16(PIXC_AHEND, val)
850 #define bfin_read_PIXC_AVSTART() bfin_read16(PIXC_AVSTART)
851 #define bfin_write_PIXC_AVSTART(val) bfin_write16(PIXC_AVSTART, val)
852 #define bfin_read_PIXC_AVEND() bfin_read16(PIXC_AVEND)
853 #define bfin_write_PIXC_AVEND(val) bfin_write16(PIXC_AVEND, val)
854 #define bfin_read_PIXC_ATRANSP() bfin_read16(PIXC_ATRANSP)
855 #define bfin_write_PIXC_ATRANSP(val) bfin_write16(PIXC_ATRANSP, val)
856 #define bfin_read_PIXC_BHSTART() bfin_read16(PIXC_BHSTART)
857 #define bfin_write_PIXC_BHSTART(val) bfin_write16(PIXC_BHSTART, val)
858 #define bfin_read_PIXC_BHEND() bfin_read16(PIXC_BHEND)
859 #define bfin_write_PIXC_BHEND(val) bfin_write16(PIXC_BHEND, val)
860 #define bfin_read_PIXC_BVSTART() bfin_read16(PIXC_BVSTART)
861 #define bfin_write_PIXC_BVSTART(val) bfin_write16(PIXC_BVSTART, val)
862 #define bfin_read_PIXC_BVEND() bfin_read16(PIXC_BVEND)
863 #define bfin_write_PIXC_BVEND(val) bfin_write16(PIXC_BVEND, val)
864 #define bfin_read_PIXC_BTRANSP() bfin_read16(PIXC_BTRANSP)
865 #define bfin_write_PIXC_BTRANSP(val) bfin_write16(PIXC_BTRANSP, val)
866 #define bfin_read_PIXC_INTRSTAT() bfin_read16(PIXC_INTRSTAT)
867 #define bfin_write_PIXC_INTRSTAT(val) bfin_write16(PIXC_INTRSTAT, val)
868 #define bfin_read_PIXC_RYCON() bfin_read32(PIXC_RYCON)
869 #define bfin_write_PIXC_RYCON(val) bfin_write32(PIXC_RYCON, val)
870 #define bfin_read_PIXC_GUCON() bfin_read32(PIXC_GUCON)
871 #define bfin_write_PIXC_GUCON(val) bfin_write32(PIXC_GUCON, val)
872 #define bfin_read_PIXC_BVCON() bfin_read32(PIXC_BVCON)
873 #define bfin_write_PIXC_BVCON(val) bfin_write32(PIXC_BVCON, val)
874 #define bfin_read_PIXC_CCBIAS() bfin_read32(PIXC_CCBIAS)
875 #define bfin_write_PIXC_CCBIAS(val) bfin_write32(PIXC_CCBIAS, val)
876 #define bfin_read_PIXC_TC() bfin_read32(PIXC_TC)
877 #define bfin_write_PIXC_TC(val) bfin_write32(PIXC_TC, val)
879 /* Handshake MDMA 0 Registers */
881 #define bfin_read_HMDMA0_CONTROL() bfin_read16(HMDMA0_CONTROL)
882 #define bfin_write_HMDMA0_CONTROL(val) bfin_write16(HMDMA0_CONTROL, val)
883 #define bfin_read_HMDMA0_ECINIT() bfin_read16(HMDMA0_ECINIT)
884 #define bfin_write_HMDMA0_ECINIT(val) bfin_write16(HMDMA0_ECINIT, val)
885 #define bfin_read_HMDMA0_BCINIT() bfin_read16(HMDMA0_BCINIT)
886 #define bfin_write_HMDMA0_BCINIT(val) bfin_write16(HMDMA0_BCINIT, val)
887 #define bfin_read_HMDMA0_ECURGENT() bfin_read16(HMDMA0_ECURGENT)
888 #define bfin_write_HMDMA0_ECURGENT(val) bfin_write16(HMDMA0_ECURGENT, val)
889 #define bfin_read_HMDMA0_ECOVERFLOW() bfin_read16(HMDMA0_ECOVERFLOW)
890 #define bfin_write_HMDMA0_ECOVERFLOW(val) bfin_write16(HMDMA0_ECOVERFLOW, val)
891 #define bfin_read_HMDMA0_ECOUNT() bfin_read16(HMDMA0_ECOUNT)
892 #define bfin_write_HMDMA0_ECOUNT(val) bfin_write16(HMDMA0_ECOUNT, val)
893 #define bfin_read_HMDMA0_BCOUNT() bfin_read16(HMDMA0_BCOUNT)
894 #define bfin_write_HMDMA0_BCOUNT(val) bfin_write16(HMDMA0_BCOUNT, val)
896 /* Handshake MDMA 1 Registers */
898 #define bfin_read_HMDMA1_CONTROL() bfin_read16(HMDMA1_CONTROL)
899 #define bfin_write_HMDMA1_CONTROL(val) bfin_write16(HMDMA1_CONTROL, val)
900 #define bfin_read_HMDMA1_ECINIT() bfin_read16(HMDMA1_ECINIT)
901 #define bfin_write_HMDMA1_ECINIT(val) bfin_write16(HMDMA1_ECINIT, val)
902 #define bfin_read_HMDMA1_BCINIT() bfin_read16(HMDMA1_BCINIT)
903 #define bfin_write_HMDMA1_BCINIT(val) bfin_write16(HMDMA1_BCINIT, val)
904 #define bfin_read_HMDMA1_ECURGENT() bfin_read16(HMDMA1_ECURGENT)
905 #define bfin_write_HMDMA1_ECURGENT(val) bfin_write16(HMDMA1_ECURGENT, val)
906 #define bfin_read_HMDMA1_ECOVERFLOW() bfin_read16(HMDMA1_ECOVERFLOW)
907 #define bfin_write_HMDMA1_ECOVERFLOW(val) bfin_write16(HMDMA1_ECOVERFLOW, val)
908 #define bfin_read_HMDMA1_ECOUNT() bfin_read16(HMDMA1_ECOUNT)
909 #define bfin_write_HMDMA1_ECOUNT(val) bfin_write16(HMDMA1_ECOUNT, val)
910 #define bfin_read_HMDMA1_BCOUNT() bfin_read16(HMDMA1_BCOUNT)
911 #define bfin_write_HMDMA1_BCOUNT(val) bfin_write16(HMDMA1_BCOUNT, val)
913 #endif /* _CDEF_BF544_H */