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