Linux 2.6.26-rc5
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / asm-blackfin / mach-bf548 / cdefBF542.h
blob60b9f77576f155fe4eeba9a5c4559cab81dad16a
1 /*
2 * File: include/asm-blackfin/mach-bf548/cdefBF542.h
3 * Based on:
4 * Author:
6 * Created:
7 * Description:
9 * Rev:
11 * Modified:
13 * Bugs: Enter bugs at http://blackfin.uclinux.org/
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2, or (at your option)
18 * any later version.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; see the file COPYING.
27 * If not, write to the Free Software Foundation,
28 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 #ifndef _CDEF_BF542_H
32 #define _CDEF_BF542_H
34 /* include all Core registers and bit definitions */
35 #include "defBF542.h"
37 /* include core sbfin_read_()ecific register pointer definitions */
38 #include <asm/mach-common/cdef_LPBlackfin.h>
40 /* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF542 */
42 /* include cdefBF54x_base.h for the set of #defines that are common to all ADSP-BF54x bfin_read_()rocessors */
43 #include "cdefBF54x_base.h"
45 /* The following are the #defines needed by ADSP-BF542 that are not in the common header */
47 /* ATAPI Registers */
49 #define bfin_read_ATAPI_CONTROL() bfin_read16(ATAPI_CONTROL)
50 #define bfin_write_ATAPI_CONTROL(val) bfin_write16(ATAPI_CONTROL, val)
51 #define bfin_read_ATAPI_STATUS() bfin_read16(ATAPI_STATUS)
52 #define bfin_write_ATAPI_STATUS(val) bfin_write16(ATAPI_STATUS, val)
53 #define bfin_read_ATAPI_DEV_ADDR() bfin_read16(ATAPI_DEV_ADDR)
54 #define bfin_write_ATAPI_DEV_ADDR(val) bfin_write16(ATAPI_DEV_ADDR, val)
55 #define bfin_read_ATAPI_DEV_TXBUF() bfin_read16(ATAPI_DEV_TXBUF)
56 #define bfin_write_ATAPI_DEV_TXBUF(val) bfin_write16(ATAPI_DEV_TXBUF, val)
57 #define bfin_read_ATAPI_DEV_RXBUF() bfin_read16(ATAPI_DEV_RXBUF)
58 #define bfin_write_ATAPI_DEV_RXBUF(val) bfin_write16(ATAPI_DEV_RXBUF, val)
59 #define bfin_read_ATAPI_INT_MASK() bfin_read16(ATAPI_INT_MASK)
60 #define bfin_write_ATAPI_INT_MASK(val) bfin_write16(ATAPI_INT_MASK, val)
61 #define bfin_read_ATAPI_INT_STATUS() bfin_read16(ATAPI_INT_STATUS)
62 #define bfin_write_ATAPI_INT_STATUS(val) bfin_write16(ATAPI_INT_STATUS, val)
63 #define bfin_read_ATAPI_XFER_LEN() bfin_read16(ATAPI_XFER_LEN)
64 #define bfin_write_ATAPI_XFER_LEN(val) bfin_write16(ATAPI_XFER_LEN, val)
65 #define bfin_read_ATAPI_LINE_STATUS() bfin_read16(ATAPI_LINE_STATUS)
66 #define bfin_write_ATAPI_LINE_STATUS(val) bfin_write16(ATAPI_LINE_STATUS, val)
67 #define bfin_read_ATAPI_SM_STATE() bfin_read16(ATAPI_SM_STATE)
68 #define bfin_write_ATAPI_SM_STATE(val) bfin_write16(ATAPI_SM_STATE, val)
69 #define bfin_read_ATAPI_TERMINATE() bfin_read16(ATAPI_TERMINATE)
70 #define bfin_write_ATAPI_TERMINATE(val) bfin_write16(ATAPI_TERMINATE, val)
71 #define bfin_read_ATAPI_PIO_TFRCNT() bfin_read16(ATAPI_PIO_TFRCNT)
72 #define bfin_write_ATAPI_PIO_TFRCNT(val) bfin_write16(ATAPI_PIO_TFRCNT, val)
73 #define bfin_read_ATAPI_DMA_TFRCNT() bfin_read16(ATAPI_DMA_TFRCNT)
74 #define bfin_write_ATAPI_DMA_TFRCNT(val) bfin_write16(ATAPI_DMA_TFRCNT, val)
75 #define bfin_read_ATAPI_UMAIN_TFRCNT() bfin_read16(ATAPI_UMAIN_TFRCNT)
76 #define bfin_write_ATAPI_UMAIN_TFRCNT(val) bfin_write16(ATAPI_UMAIN_TFRCNT, val)
77 #define bfin_read_ATAPI_UDMAOUT_TFRCNT() bfin_read16(ATAPI_UDMAOUT_TFRCNT)
78 #define bfin_write_ATAPI_UDMAOUT_TFRCNT(val) bfin_write16(ATAPI_UDMAOUT_TFRCNT, val)
79 #define bfin_read_ATAPI_REG_TIM_0() bfin_read16(ATAPI_REG_TIM_0)
80 #define bfin_write_ATAPI_REG_TIM_0(val) bfin_write16(ATAPI_REG_TIM_0, val)
81 #define bfin_read_ATAPI_PIO_TIM_0() bfin_read16(ATAPI_PIO_TIM_0)
82 #define bfin_write_ATAPI_PIO_TIM_0(val) bfin_write16(ATAPI_PIO_TIM_0, val)
83 #define bfin_read_ATAPI_PIO_TIM_1() bfin_read16(ATAPI_PIO_TIM_1)
84 #define bfin_write_ATAPI_PIO_TIM_1(val) bfin_write16(ATAPI_PIO_TIM_1, val)
85 #define bfin_read_ATAPI_MULTI_TIM_0() bfin_read16(ATAPI_MULTI_TIM_0)
86 #define bfin_write_ATAPI_MULTI_TIM_0(val) bfin_write16(ATAPI_MULTI_TIM_0, val)
87 #define bfin_read_ATAPI_MULTI_TIM_1() bfin_read16(ATAPI_MULTI_TIM_1)
88 #define bfin_write_ATAPI_MULTI_TIM_1(val) bfin_write16(ATAPI_MULTI_TIM_1, val)
89 #define bfin_read_ATAPI_MULTI_TIM_2() bfin_read16(ATAPI_MULTI_TIM_2)
90 #define bfin_write_ATAPI_MULTI_TIM_2(val) bfin_write16(ATAPI_MULTI_TIM_2, val)
91 #define bfin_read_ATAPI_ULTRA_TIM_0() bfin_read16(ATAPI_ULTRA_TIM_0)
92 #define bfin_write_ATAPI_ULTRA_TIM_0(val) bfin_write16(ATAPI_ULTRA_TIM_0, val)
93 #define bfin_read_ATAPI_ULTRA_TIM_1() bfin_read16(ATAPI_ULTRA_TIM_1)
94 #define bfin_write_ATAPI_ULTRA_TIM_1(val) bfin_write16(ATAPI_ULTRA_TIM_1, val)
95 #define bfin_read_ATAPI_ULTRA_TIM_2() bfin_read16(ATAPI_ULTRA_TIM_2)
96 #define bfin_write_ATAPI_ULTRA_TIM_2(val) bfin_write16(ATAPI_ULTRA_TIM_2, val)
97 #define bfin_read_ATAPI_ULTRA_TIM_3() bfin_read16(ATAPI_ULTRA_TIM_3)
98 #define bfin_write_ATAPI_ULTRA_TIM_3(val) bfin_write16(ATAPI_ULTRA_TIM_3, val)
100 /* SDH Registers */
102 #define bfin_read_SDH_PWR_CTL() bfin_read16(SDH_PWR_CTL)
103 #define bfin_write_SDH_PWR_CTL(val) bfin_write16(SDH_PWR_CTL, val)
104 #define bfin_read_SDH_CLK_CTL() bfin_read16(SDH_CLK_CTL)
105 #define bfin_write_SDH_CLK_CTL(val) bfin_write16(SDH_CLK_CTL, val)
106 #define bfin_read_SDH_ARGUMENT() bfin_read32(SDH_ARGUMENT)
107 #define bfin_write_SDH_ARGUMENT(val) bfin_write32(SDH_ARGUMENT, val)
108 #define bfin_read_SDH_COMMAND() bfin_read16(SDH_COMMAND)
109 #define bfin_write_SDH_COMMAND(val) bfin_write16(SDH_COMMAND, val)
110 #define bfin_read_SDH_RESP_CMD() bfin_read16(SDH_RESP_CMD)
111 #define bfin_write_SDH_RESP_CMD(val) bfin_write16(SDH_RESP_CMD, val)
112 #define bfin_read_SDH_RESPONSE0() bfin_read32(SDH_RESPONSE0)
113 #define bfin_write_SDH_RESPONSE0(val) bfin_write32(SDH_RESPONSE0, val)
114 #define bfin_read_SDH_RESPONSE1() bfin_read32(SDH_RESPONSE1)
115 #define bfin_write_SDH_RESPONSE1(val) bfin_write32(SDH_RESPONSE1, val)
116 #define bfin_read_SDH_RESPONSE2() bfin_read32(SDH_RESPONSE2)
117 #define bfin_write_SDH_RESPONSE2(val) bfin_write32(SDH_RESPONSE2, val)
118 #define bfin_read_SDH_RESPONSE3() bfin_read32(SDH_RESPONSE3)
119 #define bfin_write_SDH_RESPONSE3(val) bfin_write32(SDH_RESPONSE3, val)
120 #define bfin_read_SDH_DATA_TIMER() bfin_read32(SDH_DATA_TIMER)
121 #define bfin_write_SDH_DATA_TIMER(val) bfin_write32(SDH_DATA_TIMER, val)
122 #define bfin_read_SDH_DATA_LGTH() bfin_read16(SDH_DATA_LGTH)
123 #define bfin_write_SDH_DATA_LGTH(val) bfin_write16(SDH_DATA_LGTH, val)
124 #define bfin_read_SDH_DATA_CTL() bfin_read16(SDH_DATA_CTL)
125 #define bfin_write_SDH_DATA_CTL(val) bfin_write16(SDH_DATA_CTL, val)
126 #define bfin_read_SDH_DATA_CNT() bfin_read16(SDH_DATA_CNT)
127 #define bfin_write_SDH_DATA_CNT(val) bfin_write16(SDH_DATA_CNT, val)
128 #define bfin_read_SDH_STATUS() bfin_read32(SDH_STATUS)
129 #define bfin_write_SDH_STATUS(val) bfin_write32(SDH_STATUS, val)
130 #define bfin_read_SDH_STATUS_CLR() bfin_read16(SDH_STATUS_CLR)
131 #define bfin_write_SDH_STATUS_CLR(val) bfin_write16(SDH_STATUS_CLR, val)
132 #define bfin_read_SDH_MASK0() bfin_read32(SDH_MASK0)
133 #define bfin_write_SDH_MASK0(val) bfin_write32(SDH_MASK0, val)
134 #define bfin_read_SDH_MASK1() bfin_read32(SDH_MASK1)
135 #define bfin_write_SDH_MASK1(val) bfin_write32(SDH_MASK1, val)
136 #define bfin_read_SDH_FIFO_CNT() bfin_read16(SDH_FIFO_CNT)
137 #define bfin_write_SDH_FIFO_CNT(val) bfin_write16(SDH_FIFO_CNT, val)
138 #define bfin_read_SDH_FIFO() bfin_read32(SDH_FIFO)
139 #define bfin_write_SDH_FIFO(val) bfin_write32(SDH_FIFO, val)
140 #define bfin_read_SDH_E_STATUS() bfin_read16(SDH_E_STATUS)
141 #define bfin_write_SDH_E_STATUS(val) bfin_write16(SDH_E_STATUS, val)
142 #define bfin_read_SDH_E_MASK() bfin_read16(SDH_E_MASK)
143 #define bfin_write_SDH_E_MASK(val) bfin_write16(SDH_E_MASK, val)
144 #define bfin_read_SDH_CFG() bfin_read16(SDH_CFG)
145 #define bfin_write_SDH_CFG(val) bfin_write16(SDH_CFG, val)
146 #define bfin_read_SDH_RD_WAIT_EN() bfin_read16(SDH_RD_WAIT_EN)
147 #define bfin_write_SDH_RD_WAIT_EN(val) bfin_write16(SDH_RD_WAIT_EN, val)
148 #define bfin_read_SDH_PID0() bfin_read16(SDH_PID0)
149 #define bfin_write_SDH_PID0(val) bfin_write16(SDH_PID0, val)
150 #define bfin_read_SDH_PID1() bfin_read16(SDH_PID1)
151 #define bfin_write_SDH_PID1(val) bfin_write16(SDH_PID1, val)
152 #define bfin_read_SDH_PID2() bfin_read16(SDH_PID2)
153 #define bfin_write_SDH_PID2(val) bfin_write16(SDH_PID2, val)
154 #define bfin_read_SDH_PID3() bfin_read16(SDH_PID3)
155 #define bfin_write_SDH_PID3(val) bfin_write16(SDH_PID3, val)
156 #define bfin_read_SDH_PID4() bfin_read16(SDH_PID4)
157 #define bfin_write_SDH_PID4(val) bfin_write16(SDH_PID4, val)
158 #define bfin_read_SDH_PID5() bfin_read16(SDH_PID5)
159 #define bfin_write_SDH_PID5(val) bfin_write16(SDH_PID5, val)
160 #define bfin_read_SDH_PID6() bfin_read16(SDH_PID6)
161 #define bfin_write_SDH_PID6(val) bfin_write16(SDH_PID6, val)
162 #define bfin_read_SDH_PID7() bfin_read16(SDH_PID7)
163 #define bfin_write_SDH_PID7(val) bfin_write16(SDH_PID7, val)
165 /* USB Control Registers */
167 #define bfin_read_USB_FADDR() bfin_read16(USB_FADDR)
168 #define bfin_write_USB_FADDR(val) bfin_write16(USB_FADDR, val)
169 #define bfin_read_USB_POWER() bfin_read16(USB_POWER)
170 #define bfin_write_USB_POWER(val) bfin_write16(USB_POWER, val)
171 #define bfin_read_USB_INTRTX() bfin_read16(USB_INTRTX)
172 #define bfin_write_USB_INTRTX(val) bfin_write16(USB_INTRTX, val)
173 #define bfin_read_USB_INTRRX() bfin_read16(USB_INTRRX)
174 #define bfin_write_USB_INTRRX(val) bfin_write16(USB_INTRRX, val)
175 #define bfin_read_USB_INTRTXE() bfin_read16(USB_INTRTXE)
176 #define bfin_write_USB_INTRTXE(val) bfin_write16(USB_INTRTXE, val)
177 #define bfin_read_USB_INTRRXE() bfin_read16(USB_INTRRXE)
178 #define bfin_write_USB_INTRRXE(val) bfin_write16(USB_INTRRXE, val)
179 #define bfin_read_USB_INTRUSB() bfin_read16(USB_INTRUSB)
180 #define bfin_write_USB_INTRUSB(val) bfin_write16(USB_INTRUSB, val)
181 #define bfin_read_USB_INTRUSBE() bfin_read16(USB_INTRUSBE)
182 #define bfin_write_USB_INTRUSBE(val) bfin_write16(USB_INTRUSBE, val)
183 #define bfin_read_USB_FRAME() bfin_read16(USB_FRAME)
184 #define bfin_write_USB_FRAME(val) bfin_write16(USB_FRAME, val)
185 #define bfin_read_USB_INDEX() bfin_read16(USB_INDEX)
186 #define bfin_write_USB_INDEX(val) bfin_write16(USB_INDEX, val)
187 #define bfin_read_USB_TESTMODE() bfin_read16(USB_TESTMODE)
188 #define bfin_write_USB_TESTMODE(val) bfin_write16(USB_TESTMODE, val)
189 #define bfin_read_USB_GLOBINTR() bfin_read16(USB_GLOBINTR)
190 #define bfin_write_USB_GLOBINTR(val) bfin_write16(USB_GLOBINTR, val)
191 #define bfin_read_USB_GLOBAL_CTL() bfin_read16(USB_GLOBAL_CTL)
192 #define bfin_write_USB_GLOBAL_CTL(val) bfin_write16(USB_GLOBAL_CTL, val)
194 /* USB Packet Control Registers */
196 #define bfin_read_USB_TX_MAX_PACKET() bfin_read16(USB_TX_MAX_PACKET)
197 #define bfin_write_USB_TX_MAX_PACKET(val) bfin_write16(USB_TX_MAX_PACKET, val)
198 #define bfin_read_USB_CSR0() bfin_read16(USB_CSR0)
199 #define bfin_write_USB_CSR0(val) bfin_write16(USB_CSR0, val)
200 #define bfin_read_USB_TXCSR() bfin_read16(USB_TXCSR)
201 #define bfin_write_USB_TXCSR(val) bfin_write16(USB_TXCSR, val)
202 #define bfin_read_USB_RX_MAX_PACKET() bfin_read16(USB_RX_MAX_PACKET)
203 #define bfin_write_USB_RX_MAX_PACKET(val) bfin_write16(USB_RX_MAX_PACKET, val)
204 #define bfin_read_USB_RXCSR() bfin_read16(USB_RXCSR)
205 #define bfin_write_USB_RXCSR(val) bfin_write16(USB_RXCSR, val)
206 #define bfin_read_USB_COUNT0() bfin_read16(USB_COUNT0)
207 #define bfin_write_USB_COUNT0(val) bfin_write16(USB_COUNT0, val)
208 #define bfin_read_USB_RXCOUNT() bfin_read16(USB_RXCOUNT)
209 #define bfin_write_USB_RXCOUNT(val) bfin_write16(USB_RXCOUNT, val)
210 #define bfin_read_USB_TXTYPE() bfin_read16(USB_TXTYPE)
211 #define bfin_write_USB_TXTYPE(val) bfin_write16(USB_TXTYPE, val)
212 #define bfin_read_USB_NAKLIMIT0() bfin_read16(USB_NAKLIMIT0)
213 #define bfin_write_USB_NAKLIMIT0(val) bfin_write16(USB_NAKLIMIT0, val)
214 #define bfin_read_USB_TXINTERVAL() bfin_read16(USB_TXINTERVAL)
215 #define bfin_write_USB_TXINTERVAL(val) bfin_write16(USB_TXINTERVAL, val)
216 #define bfin_read_USB_RXTYPE() bfin_read16(USB_RXTYPE)
217 #define bfin_write_USB_RXTYPE(val) bfin_write16(USB_RXTYPE, val)
218 #define bfin_read_USB_RXINTERVAL() bfin_read16(USB_RXINTERVAL)
219 #define bfin_write_USB_RXINTERVAL(val) bfin_write16(USB_RXINTERVAL, val)
220 #define bfin_read_USB_TXCOUNT() bfin_read16(USB_TXCOUNT)
221 #define bfin_write_USB_TXCOUNT(val) bfin_write16(USB_TXCOUNT, val)
223 /* USB Endbfin_read_()oint FIFO Registers */
225 #define bfin_read_USB_EP0_FIFO() bfin_read16(USB_EP0_FIFO)
226 #define bfin_write_USB_EP0_FIFO(val) bfin_write16(USB_EP0_FIFO, val)
227 #define bfin_read_USB_EP1_FIFO() bfin_read16(USB_EP1_FIFO)
228 #define bfin_write_USB_EP1_FIFO(val) bfin_write16(USB_EP1_FIFO, val)
229 #define bfin_read_USB_EP2_FIFO() bfin_read16(USB_EP2_FIFO)
230 #define bfin_write_USB_EP2_FIFO(val) bfin_write16(USB_EP2_FIFO, val)
231 #define bfin_read_USB_EP3_FIFO() bfin_read16(USB_EP3_FIFO)
232 #define bfin_write_USB_EP3_FIFO(val) bfin_write16(USB_EP3_FIFO, val)
233 #define bfin_read_USB_EP4_FIFO() bfin_read16(USB_EP4_FIFO)
234 #define bfin_write_USB_EP4_FIFO(val) bfin_write16(USB_EP4_FIFO, val)
235 #define bfin_read_USB_EP5_FIFO() bfin_read16(USB_EP5_FIFO)
236 #define bfin_write_USB_EP5_FIFO(val) bfin_write16(USB_EP5_FIFO, val)
237 #define bfin_read_USB_EP6_FIFO() bfin_read16(USB_EP6_FIFO)
238 #define bfin_write_USB_EP6_FIFO(val) bfin_write16(USB_EP6_FIFO, val)
239 #define bfin_read_USB_EP7_FIFO() bfin_read16(USB_EP7_FIFO)
240 #define bfin_write_USB_EP7_FIFO(val) bfin_write16(USB_EP7_FIFO, val)
242 /* USB OTG Control Registers */
244 #define bfin_read_USB_OTG_DEV_CTL() bfin_read16(USB_OTG_DEV_CTL)
245 #define bfin_write_USB_OTG_DEV_CTL(val) bfin_write16(USB_OTG_DEV_CTL, val)
246 #define bfin_read_USB_OTG_VBUS_IRQ() bfin_read16(USB_OTG_VBUS_IRQ)
247 #define bfin_write_USB_OTG_VBUS_IRQ(val) bfin_write16(USB_OTG_VBUS_IRQ, val)
248 #define bfin_read_USB_OTG_VBUS_MASK() bfin_read16(USB_OTG_VBUS_MASK)
249 #define bfin_write_USB_OTG_VBUS_MASK(val) bfin_write16(USB_OTG_VBUS_MASK, val)
251 /* USB Phy Control Registers */
253 #define bfin_read_USB_LINKINFO() bfin_read16(USB_LINKINFO)
254 #define bfin_write_USB_LINKINFO(val) bfin_write16(USB_LINKINFO, val)
255 #define bfin_read_USB_VPLEN() bfin_read16(USB_VPLEN)
256 #define bfin_write_USB_VPLEN(val) bfin_write16(USB_VPLEN, val)
257 #define bfin_read_USB_HS_EOF1() bfin_read16(USB_HS_EOF1)
258 #define bfin_write_USB_HS_EOF1(val) bfin_write16(USB_HS_EOF1, val)
259 #define bfin_read_USB_FS_EOF1() bfin_read16(USB_FS_EOF1)
260 #define bfin_write_USB_FS_EOF1(val) bfin_write16(USB_FS_EOF1, val)
261 #define bfin_read_USB_LS_EOF1() bfin_read16(USB_LS_EOF1)
262 #define bfin_write_USB_LS_EOF1(val) bfin_write16(USB_LS_EOF1, val)
264 /* (APHY_CNTRL is for ADI usage only) */
266 #define bfin_read_USB_APHY_CNTRL() bfin_read16(USB_APHY_CNTRL)
267 #define bfin_write_USB_APHY_CNTRL(val) bfin_write16(USB_APHY_CNTRL, val)
269 /* (APHY_CALIB is for ADI usage only) */
271 #define bfin_read_USB_APHY_CALIB() bfin_read16(USB_APHY_CALIB)
272 #define bfin_write_USB_APHY_CALIB(val) bfin_write16(USB_APHY_CALIB, val)
273 #define bfin_read_USB_APHY_CNTRL2() bfin_read16(USB_APHY_CNTRL2)
274 #define bfin_write_USB_APHY_CNTRL2(val) bfin_write16(USB_APHY_CNTRL2, val)
276 /* (PHY_TEST is for ADI usage only) */
278 #define bfin_read_USB_PHY_TEST() bfin_read16(USB_PHY_TEST)
279 #define bfin_write_USB_PHY_TEST(val) bfin_write16(USB_PHY_TEST, val)
280 #define bfin_read_USB_PLLOSC_CTRL() bfin_read16(USB_PLLOSC_CTRL)
281 #define bfin_write_USB_PLLOSC_CTRL(val) bfin_write16(USB_PLLOSC_CTRL, val)
282 #define bfin_read_USB_SRP_CLKDIV() bfin_read16(USB_SRP_CLKDIV)
283 #define bfin_write_USB_SRP_CLKDIV(val) bfin_write16(USB_SRP_CLKDIV, val)
285 /* USB Endbfin_read_()oint 0 Control Registers */
287 #define bfin_read_USB_EP_NI0_TXMAXP() bfin_read16(USB_EP_NI0_TXMAXP)
288 #define bfin_write_USB_EP_NI0_TXMAXP(val) bfin_write16(USB_EP_NI0_TXMAXP, val)
289 #define bfin_read_USB_EP_NI0_TXCSR() bfin_read16(USB_EP_NI0_TXCSR)
290 #define bfin_write_USB_EP_NI0_TXCSR(val) bfin_write16(USB_EP_NI0_TXCSR, val)
291 #define bfin_read_USB_EP_NI0_RXMAXP() bfin_read16(USB_EP_NI0_RXMAXP)
292 #define bfin_write_USB_EP_NI0_RXMAXP(val) bfin_write16(USB_EP_NI0_RXMAXP, val)
293 #define bfin_read_USB_EP_NI0_RXCSR() bfin_read16(USB_EP_NI0_RXCSR)
294 #define bfin_write_USB_EP_NI0_RXCSR(val) bfin_write16(USB_EP_NI0_RXCSR, val)
295 #define bfin_read_USB_EP_NI0_RXCOUNT() bfin_read16(USB_EP_NI0_RXCOUNT)
296 #define bfin_write_USB_EP_NI0_RXCOUNT(val) bfin_write16(USB_EP_NI0_RXCOUNT, val)
297 #define bfin_read_USB_EP_NI0_TXTYPE() bfin_read16(USB_EP_NI0_TXTYPE)
298 #define bfin_write_USB_EP_NI0_TXTYPE(val) bfin_write16(USB_EP_NI0_TXTYPE, val)
299 #define bfin_read_USB_EP_NI0_TXINTERVAL() bfin_read16(USB_EP_NI0_TXINTERVAL)
300 #define bfin_write_USB_EP_NI0_TXINTERVAL(val) bfin_write16(USB_EP_NI0_TXINTERVAL, val)
301 #define bfin_read_USB_EP_NI0_RXTYPE() bfin_read16(USB_EP_NI0_RXTYPE)
302 #define bfin_write_USB_EP_NI0_RXTYPE(val) bfin_write16(USB_EP_NI0_RXTYPE, val)
303 #define bfin_read_USB_EP_NI0_RXINTERVAL() bfin_read16(USB_EP_NI0_RXINTERVAL)
304 #define bfin_write_USB_EP_NI0_RXINTERVAL(val) bfin_write16(USB_EP_NI0_RXINTERVAL, val)
306 /* USB Endbfin_read_()oint 1 Control Registers */
308 #define bfin_read_USB_EP_NI0_TXCOUNT() bfin_read16(USB_EP_NI0_TXCOUNT)
309 #define bfin_write_USB_EP_NI0_TXCOUNT(val) bfin_write16(USB_EP_NI0_TXCOUNT, val)
310 #define bfin_read_USB_EP_NI1_TXMAXP() bfin_read16(USB_EP_NI1_TXMAXP)
311 #define bfin_write_USB_EP_NI1_TXMAXP(val) bfin_write16(USB_EP_NI1_TXMAXP, val)
312 #define bfin_read_USB_EP_NI1_TXCSR() bfin_read16(USB_EP_NI1_TXCSR)
313 #define bfin_write_USB_EP_NI1_TXCSR(val) bfin_write16(USB_EP_NI1_TXCSR, val)
314 #define bfin_read_USB_EP_NI1_RXMAXP() bfin_read16(USB_EP_NI1_RXMAXP)
315 #define bfin_write_USB_EP_NI1_RXMAXP(val) bfin_write16(USB_EP_NI1_RXMAXP, val)
316 #define bfin_read_USB_EP_NI1_RXCSR() bfin_read16(USB_EP_NI1_RXCSR)
317 #define bfin_write_USB_EP_NI1_RXCSR(val) bfin_write16(USB_EP_NI1_RXCSR, val)
318 #define bfin_read_USB_EP_NI1_RXCOUNT() bfin_read16(USB_EP_NI1_RXCOUNT)
319 #define bfin_write_USB_EP_NI1_RXCOUNT(val) bfin_write16(USB_EP_NI1_RXCOUNT, val)
320 #define bfin_read_USB_EP_NI1_TXTYPE() bfin_read16(USB_EP_NI1_TXTYPE)
321 #define bfin_write_USB_EP_NI1_TXTYPE(val) bfin_write16(USB_EP_NI1_TXTYPE, val)
322 #define bfin_read_USB_EP_NI1_TXINTERVAL() bfin_read16(USB_EP_NI1_TXINTERVAL)
323 #define bfin_write_USB_EP_NI1_TXINTERVAL(val) bfin_write16(USB_EP_NI1_TXINTERVAL, val)
324 #define bfin_read_USB_EP_NI1_RXTYPE() bfin_read16(USB_EP_NI1_RXTYPE)
325 #define bfin_write_USB_EP_NI1_RXTYPE(val) bfin_write16(USB_EP_NI1_RXTYPE, val)
326 #define bfin_read_USB_EP_NI1_RXINTERVAL() bfin_read16(USB_EP_NI1_RXINTERVAL)
327 #define bfin_write_USB_EP_NI1_RXINTERVAL(val) bfin_write16(USB_EP_NI1_RXINTERVAL, val)
329 /* USB Endbfin_read_()oint 2 Control Registers */
331 #define bfin_read_USB_EP_NI1_TXCOUNT() bfin_read16(USB_EP_NI1_TXCOUNT)
332 #define bfin_write_USB_EP_NI1_TXCOUNT(val) bfin_write16(USB_EP_NI1_TXCOUNT, val)
333 #define bfin_read_USB_EP_NI2_TXMAXP() bfin_read16(USB_EP_NI2_TXMAXP)
334 #define bfin_write_USB_EP_NI2_TXMAXP(val) bfin_write16(USB_EP_NI2_TXMAXP, val)
335 #define bfin_read_USB_EP_NI2_TXCSR() bfin_read16(USB_EP_NI2_TXCSR)
336 #define bfin_write_USB_EP_NI2_TXCSR(val) bfin_write16(USB_EP_NI2_TXCSR, val)
337 #define bfin_read_USB_EP_NI2_RXMAXP() bfin_read16(USB_EP_NI2_RXMAXP)
338 #define bfin_write_USB_EP_NI2_RXMAXP(val) bfin_write16(USB_EP_NI2_RXMAXP, val)
339 #define bfin_read_USB_EP_NI2_RXCSR() bfin_read16(USB_EP_NI2_RXCSR)
340 #define bfin_write_USB_EP_NI2_RXCSR(val) bfin_write16(USB_EP_NI2_RXCSR, val)
341 #define bfin_read_USB_EP_NI2_RXCOUNT() bfin_read16(USB_EP_NI2_RXCOUNT)
342 #define bfin_write_USB_EP_NI2_RXCOUNT(val) bfin_write16(USB_EP_NI2_RXCOUNT, val)
343 #define bfin_read_USB_EP_NI2_TXTYPE() bfin_read16(USB_EP_NI2_TXTYPE)
344 #define bfin_write_USB_EP_NI2_TXTYPE(val) bfin_write16(USB_EP_NI2_TXTYPE, val)
345 #define bfin_read_USB_EP_NI2_TXINTERVAL() bfin_read16(USB_EP_NI2_TXINTERVAL)
346 #define bfin_write_USB_EP_NI2_TXINTERVAL(val) bfin_write16(USB_EP_NI2_TXINTERVAL, val)
347 #define bfin_read_USB_EP_NI2_RXTYPE() bfin_read16(USB_EP_NI2_RXTYPE)
348 #define bfin_write_USB_EP_NI2_RXTYPE(val) bfin_write16(USB_EP_NI2_RXTYPE, val)
349 #define bfin_read_USB_EP_NI2_RXINTERVAL() bfin_read16(USB_EP_NI2_RXINTERVAL)
350 #define bfin_write_USB_EP_NI2_RXINTERVAL(val) bfin_write16(USB_EP_NI2_RXINTERVAL, val)
352 /* USB Endbfin_read_()oint 3 Control Registers */
354 #define bfin_read_USB_EP_NI2_TXCOUNT() bfin_read16(USB_EP_NI2_TXCOUNT)
355 #define bfin_write_USB_EP_NI2_TXCOUNT(val) bfin_write16(USB_EP_NI2_TXCOUNT, val)
356 #define bfin_read_USB_EP_NI3_TXMAXP() bfin_read16(USB_EP_NI3_TXMAXP)
357 #define bfin_write_USB_EP_NI3_TXMAXP(val) bfin_write16(USB_EP_NI3_TXMAXP, val)
358 #define bfin_read_USB_EP_NI3_TXCSR() bfin_read16(USB_EP_NI3_TXCSR)
359 #define bfin_write_USB_EP_NI3_TXCSR(val) bfin_write16(USB_EP_NI3_TXCSR, val)
360 #define bfin_read_USB_EP_NI3_RXMAXP() bfin_read16(USB_EP_NI3_RXMAXP)
361 #define bfin_write_USB_EP_NI3_RXMAXP(val) bfin_write16(USB_EP_NI3_RXMAXP, val)
362 #define bfin_read_USB_EP_NI3_RXCSR() bfin_read16(USB_EP_NI3_RXCSR)
363 #define bfin_write_USB_EP_NI3_RXCSR(val) bfin_write16(USB_EP_NI3_RXCSR, val)
364 #define bfin_read_USB_EP_NI3_RXCOUNT() bfin_read16(USB_EP_NI3_RXCOUNT)
365 #define bfin_write_USB_EP_NI3_RXCOUNT(val) bfin_write16(USB_EP_NI3_RXCOUNT, val)
366 #define bfin_read_USB_EP_NI3_TXTYPE() bfin_read16(USB_EP_NI3_TXTYPE)
367 #define bfin_write_USB_EP_NI3_TXTYPE(val) bfin_write16(USB_EP_NI3_TXTYPE, val)
368 #define bfin_read_USB_EP_NI3_TXINTERVAL() bfin_read16(USB_EP_NI3_TXINTERVAL)
369 #define bfin_write_USB_EP_NI3_TXINTERVAL(val) bfin_write16(USB_EP_NI3_TXINTERVAL, val)
370 #define bfin_read_USB_EP_NI3_RXTYPE() bfin_read16(USB_EP_NI3_RXTYPE)
371 #define bfin_write_USB_EP_NI3_RXTYPE(val) bfin_write16(USB_EP_NI3_RXTYPE, val)
372 #define bfin_read_USB_EP_NI3_RXINTERVAL() bfin_read16(USB_EP_NI3_RXINTERVAL)
373 #define bfin_write_USB_EP_NI3_RXINTERVAL(val) bfin_write16(USB_EP_NI3_RXINTERVAL, val)
375 /* USB Endbfin_read_()oint 4 Control Registers */
377 #define bfin_read_USB_EP_NI3_TXCOUNT() bfin_read16(USB_EP_NI3_TXCOUNT)
378 #define bfin_write_USB_EP_NI3_TXCOUNT(val) bfin_write16(USB_EP_NI3_TXCOUNT, val)
379 #define bfin_read_USB_EP_NI4_TXMAXP() bfin_read16(USB_EP_NI4_TXMAXP)
380 #define bfin_write_USB_EP_NI4_TXMAXP(val) bfin_write16(USB_EP_NI4_TXMAXP, val)
381 #define bfin_read_USB_EP_NI4_TXCSR() bfin_read16(USB_EP_NI4_TXCSR)
382 #define bfin_write_USB_EP_NI4_TXCSR(val) bfin_write16(USB_EP_NI4_TXCSR, val)
383 #define bfin_read_USB_EP_NI4_RXMAXP() bfin_read16(USB_EP_NI4_RXMAXP)
384 #define bfin_write_USB_EP_NI4_RXMAXP(val) bfin_write16(USB_EP_NI4_RXMAXP, val)
385 #define bfin_read_USB_EP_NI4_RXCSR() bfin_read16(USB_EP_NI4_RXCSR)
386 #define bfin_write_USB_EP_NI4_RXCSR(val) bfin_write16(USB_EP_NI4_RXCSR, val)
387 #define bfin_read_USB_EP_NI4_RXCOUNT() bfin_read16(USB_EP_NI4_RXCOUNT)
388 #define bfin_write_USB_EP_NI4_RXCOUNT(val) bfin_write16(USB_EP_NI4_RXCOUNT, val)
389 #define bfin_read_USB_EP_NI4_TXTYPE() bfin_read16(USB_EP_NI4_TXTYPE)
390 #define bfin_write_USB_EP_NI4_TXTYPE(val) bfin_write16(USB_EP_NI4_TXTYPE, val)
391 #define bfin_read_USB_EP_NI4_TXINTERVAL() bfin_read16(USB_EP_NI4_TXINTERVAL)
392 #define bfin_write_USB_EP_NI4_TXINTERVAL(val) bfin_write16(USB_EP_NI4_TXINTERVAL, val)
393 #define bfin_read_USB_EP_NI4_RXTYPE() bfin_read16(USB_EP_NI4_RXTYPE)
394 #define bfin_write_USB_EP_NI4_RXTYPE(val) bfin_write16(USB_EP_NI4_RXTYPE, val)
395 #define bfin_read_USB_EP_NI4_RXINTERVAL() bfin_read16(USB_EP_NI4_RXINTERVAL)
396 #define bfin_write_USB_EP_NI4_RXINTERVAL(val) bfin_write16(USB_EP_NI4_RXINTERVAL, val)
398 /* USB Endbfin_read_()oint 5 Control Registers */
400 #define bfin_read_USB_EP_NI4_TXCOUNT() bfin_read16(USB_EP_NI4_TXCOUNT)
401 #define bfin_write_USB_EP_NI4_TXCOUNT(val) bfin_write16(USB_EP_NI4_TXCOUNT, val)
402 #define bfin_read_USB_EP_NI5_TXMAXP() bfin_read16(USB_EP_NI5_TXMAXP)
403 #define bfin_write_USB_EP_NI5_TXMAXP(val) bfin_write16(USB_EP_NI5_TXMAXP, val)
404 #define bfin_read_USB_EP_NI5_TXCSR() bfin_read16(USB_EP_NI5_TXCSR)
405 #define bfin_write_USB_EP_NI5_TXCSR(val) bfin_write16(USB_EP_NI5_TXCSR, val)
406 #define bfin_read_USB_EP_NI5_RXMAXP() bfin_read16(USB_EP_NI5_RXMAXP)
407 #define bfin_write_USB_EP_NI5_RXMAXP(val) bfin_write16(USB_EP_NI5_RXMAXP, val)
408 #define bfin_read_USB_EP_NI5_RXCSR() bfin_read16(USB_EP_NI5_RXCSR)
409 #define bfin_write_USB_EP_NI5_RXCSR(val) bfin_write16(USB_EP_NI5_RXCSR, val)
410 #define bfin_read_USB_EP_NI5_RXCOUNT() bfin_read16(USB_EP_NI5_RXCOUNT)
411 #define bfin_write_USB_EP_NI5_RXCOUNT(val) bfin_write16(USB_EP_NI5_RXCOUNT, val)
412 #define bfin_read_USB_EP_NI5_TXTYPE() bfin_read16(USB_EP_NI5_TXTYPE)
413 #define bfin_write_USB_EP_NI5_TXTYPE(val) bfin_write16(USB_EP_NI5_TXTYPE, val)
414 #define bfin_read_USB_EP_NI5_TXINTERVAL() bfin_read16(USB_EP_NI5_TXINTERVAL)
415 #define bfin_write_USB_EP_NI5_TXINTERVAL(val) bfin_write16(USB_EP_NI5_TXINTERVAL, val)
416 #define bfin_read_USB_EP_NI5_RXTYPE() bfin_read16(USB_EP_NI5_RXTYPE)
417 #define bfin_write_USB_EP_NI5_RXTYPE(val) bfin_write16(USB_EP_NI5_RXTYPE, val)
418 #define bfin_read_USB_EP_NI5_RXINTERVAL() bfin_read16(USB_EP_NI5_RXINTERVAL)
419 #define bfin_write_USB_EP_NI5_RXINTERVAL(val) bfin_write16(USB_EP_NI5_RXINTERVAL, val)
421 /* USB Endbfin_read_()oint 6 Control Registers */
423 #define bfin_read_USB_EP_NI5_TXCOUNT() bfin_read16(USB_EP_NI5_TXCOUNT)
424 #define bfin_write_USB_EP_NI5_TXCOUNT(val) bfin_write16(USB_EP_NI5_TXCOUNT, val)
425 #define bfin_read_USB_EP_NI6_TXMAXP() bfin_read16(USB_EP_NI6_TXMAXP)
426 #define bfin_write_USB_EP_NI6_TXMAXP(val) bfin_write16(USB_EP_NI6_TXMAXP, val)
427 #define bfin_read_USB_EP_NI6_TXCSR() bfin_read16(USB_EP_NI6_TXCSR)
428 #define bfin_write_USB_EP_NI6_TXCSR(val) bfin_write16(USB_EP_NI6_TXCSR, val)
429 #define bfin_read_USB_EP_NI6_RXMAXP() bfin_read16(USB_EP_NI6_RXMAXP)
430 #define bfin_write_USB_EP_NI6_RXMAXP(val) bfin_write16(USB_EP_NI6_RXMAXP, val)
431 #define bfin_read_USB_EP_NI6_RXCSR() bfin_read16(USB_EP_NI6_RXCSR)
432 #define bfin_write_USB_EP_NI6_RXCSR(val) bfin_write16(USB_EP_NI6_RXCSR, val)
433 #define bfin_read_USB_EP_NI6_RXCOUNT() bfin_read16(USB_EP_NI6_RXCOUNT)
434 #define bfin_write_USB_EP_NI6_RXCOUNT(val) bfin_write16(USB_EP_NI6_RXCOUNT, val)
435 #define bfin_read_USB_EP_NI6_TXTYPE() bfin_read16(USB_EP_NI6_TXTYPE)
436 #define bfin_write_USB_EP_NI6_TXTYPE(val) bfin_write16(USB_EP_NI6_TXTYPE, val)
437 #define bfin_read_USB_EP_NI6_TXINTERVAL() bfin_read16(USB_EP_NI6_TXINTERVAL)
438 #define bfin_write_USB_EP_NI6_TXINTERVAL(val) bfin_write16(USB_EP_NI6_TXINTERVAL, val)
439 #define bfin_read_USB_EP_NI6_RXTYPE() bfin_read16(USB_EP_NI6_RXTYPE)
440 #define bfin_write_USB_EP_NI6_RXTYPE(val) bfin_write16(USB_EP_NI6_RXTYPE, val)
441 #define bfin_read_USB_EP_NI6_RXINTERVAL() bfin_read16(USB_EP_NI6_RXINTERVAL)
442 #define bfin_write_USB_EP_NI6_RXINTERVAL(val) bfin_write16(USB_EP_NI6_RXINTERVAL, val)
444 /* USB Endbfin_read_()oint 7 Control Registers */
446 #define bfin_read_USB_EP_NI6_TXCOUNT() bfin_read16(USB_EP_NI6_TXCOUNT)
447 #define bfin_write_USB_EP_NI6_TXCOUNT(val) bfin_write16(USB_EP_NI6_TXCOUNT, val)
448 #define bfin_read_USB_EP_NI7_TXMAXP() bfin_read16(USB_EP_NI7_TXMAXP)
449 #define bfin_write_USB_EP_NI7_TXMAXP(val) bfin_write16(USB_EP_NI7_TXMAXP, val)
450 #define bfin_read_USB_EP_NI7_TXCSR() bfin_read16(USB_EP_NI7_TXCSR)
451 #define bfin_write_USB_EP_NI7_TXCSR(val) bfin_write16(USB_EP_NI7_TXCSR, val)
452 #define bfin_read_USB_EP_NI7_RXMAXP() bfin_read16(USB_EP_NI7_RXMAXP)
453 #define bfin_write_USB_EP_NI7_RXMAXP(val) bfin_write16(USB_EP_NI7_RXMAXP, val)
454 #define bfin_read_USB_EP_NI7_RXCSR() bfin_read16(USB_EP_NI7_RXCSR)
455 #define bfin_write_USB_EP_NI7_RXCSR(val) bfin_write16(USB_EP_NI7_RXCSR, val)
456 #define bfin_read_USB_EP_NI7_RXCOUNT() bfin_read16(USB_EP_NI7_RXCOUNT)
457 #define bfin_write_USB_EP_NI7_RXCOUNT(val) bfin_write16(USB_EP_NI7_RXCOUNT, val)
458 #define bfin_read_USB_EP_NI7_TXTYPE() bfin_read16(USB_EP_NI7_TXTYPE)
459 #define bfin_write_USB_EP_NI7_TXTYPE(val) bfin_write16(USB_EP_NI7_TXTYPE, val)
460 #define bfin_read_USB_EP_NI7_TXINTERVAL() bfin_read16(USB_EP_NI7_TXINTERVAL)
461 #define bfin_write_USB_EP_NI7_TXINTERVAL(val) bfin_write16(USB_EP_NI7_TXINTERVAL, val)
462 #define bfin_read_USB_EP_NI7_RXTYPE() bfin_read16(USB_EP_NI7_RXTYPE)
463 #define bfin_write_USB_EP_NI7_RXTYPE(val) bfin_write16(USB_EP_NI7_RXTYPE, val)
464 #define bfin_read_USB_EP_NI7_RXINTERVAL() bfin_read16(USB_EP_NI7_RXINTERVAL)
465 #define bfin_write_USB_EP_NI7_RXINTERVAL(val) bfin_write16(USB_EP_NI7_RXINTERVAL, val)
466 #define bfin_read_USB_EP_NI7_TXCOUNT() bfin_read16(USB_EP_NI7_TXCOUNT)
467 #define bfin_write_USB_EP_NI7_TXCOUNT(val) bfin_write16(USB_EP_NI7_TXCOUNT, val)
468 #define bfin_read_USB_DMA_INTERRUPT() bfin_read16(USB_DMA_INTERRUPT)
469 #define bfin_write_USB_DMA_INTERRUPT(val) bfin_write16(USB_DMA_INTERRUPT, val)
471 /* USB Channel 0 Config Registers */
473 #define bfin_read_USB_DMA0CONTROL() bfin_read16(USB_DMA0CONTROL)
474 #define bfin_write_USB_DMA0CONTROL(val) bfin_write16(USB_DMA0CONTROL, val)
475 #define bfin_read_USB_DMA0ADDRLOW() bfin_read16(USB_DMA0ADDRLOW)
476 #define bfin_write_USB_DMA0ADDRLOW(val) bfin_write16(USB_DMA0ADDRLOW, val)
477 #define bfin_read_USB_DMA0ADDRHIGH() bfin_read16(USB_DMA0ADDRHIGH)
478 #define bfin_write_USB_DMA0ADDRHIGH(val) bfin_write16(USB_DMA0ADDRHIGH, val)
479 #define bfin_read_USB_DMA0COUNTLOW() bfin_read16(USB_DMA0COUNTLOW)
480 #define bfin_write_USB_DMA0COUNTLOW(val) bfin_write16(USB_DMA0COUNTLOW, val)
481 #define bfin_read_USB_DMA0COUNTHIGH() bfin_read16(USB_DMA0COUNTHIGH)
482 #define bfin_write_USB_DMA0COUNTHIGH(val) bfin_write16(USB_DMA0COUNTHIGH, val)
484 /* USB Channel 1 Config Registers */
486 #define bfin_read_USB_DMA1CONTROL() bfin_read16(USB_DMA1CONTROL)
487 #define bfin_write_USB_DMA1CONTROL(val) bfin_write16(USB_DMA1CONTROL, val)
488 #define bfin_read_USB_DMA1ADDRLOW() bfin_read16(USB_DMA1ADDRLOW)
489 #define bfin_write_USB_DMA1ADDRLOW(val) bfin_write16(USB_DMA1ADDRLOW, val)
490 #define bfin_read_USB_DMA1ADDRHIGH() bfin_read16(USB_DMA1ADDRHIGH)
491 #define bfin_write_USB_DMA1ADDRHIGH(val) bfin_write16(USB_DMA1ADDRHIGH, val)
492 #define bfin_read_USB_DMA1COUNTLOW() bfin_read16(USB_DMA1COUNTLOW)
493 #define bfin_write_USB_DMA1COUNTLOW(val) bfin_write16(USB_DMA1COUNTLOW, val)
494 #define bfin_read_USB_DMA1COUNTHIGH() bfin_read16(USB_DMA1COUNTHIGH)
495 #define bfin_write_USB_DMA1COUNTHIGH(val) bfin_write16(USB_DMA1COUNTHIGH, val)
497 /* USB Channel 2 Config Registers */
499 #define bfin_read_USB_DMA2CONTROL() bfin_read16(USB_DMA2CONTROL)
500 #define bfin_write_USB_DMA2CONTROL(val) bfin_write16(USB_DMA2CONTROL, val)
501 #define bfin_read_USB_DMA2ADDRLOW() bfin_read16(USB_DMA2ADDRLOW)
502 #define bfin_write_USB_DMA2ADDRLOW(val) bfin_write16(USB_DMA2ADDRLOW, val)
503 #define bfin_read_USB_DMA2ADDRHIGH() bfin_read16(USB_DMA2ADDRHIGH)
504 #define bfin_write_USB_DMA2ADDRHIGH(val) bfin_write16(USB_DMA2ADDRHIGH, val)
505 #define bfin_read_USB_DMA2COUNTLOW() bfin_read16(USB_DMA2COUNTLOW)
506 #define bfin_write_USB_DMA2COUNTLOW(val) bfin_write16(USB_DMA2COUNTLOW, val)
507 #define bfin_read_USB_DMA2COUNTHIGH() bfin_read16(USB_DMA2COUNTHIGH)
508 #define bfin_write_USB_DMA2COUNTHIGH(val) bfin_write16(USB_DMA2COUNTHIGH, val)
510 /* USB Channel 3 Config Registers */
512 #define bfin_read_USB_DMA3CONTROL() bfin_read16(USB_DMA3CONTROL)
513 #define bfin_write_USB_DMA3CONTROL(val) bfin_write16(USB_DMA3CONTROL, val)
514 #define bfin_read_USB_DMA3ADDRLOW() bfin_read16(USB_DMA3ADDRLOW)
515 #define bfin_write_USB_DMA3ADDRLOW(val) bfin_write16(USB_DMA3ADDRLOW, val)
516 #define bfin_read_USB_DMA3ADDRHIGH() bfin_read16(USB_DMA3ADDRHIGH)
517 #define bfin_write_USB_DMA3ADDRHIGH(val) bfin_write16(USB_DMA3ADDRHIGH, val)
518 #define bfin_read_USB_DMA3COUNTLOW() bfin_read16(USB_DMA3COUNTLOW)
519 #define bfin_write_USB_DMA3COUNTLOW(val) bfin_write16(USB_DMA3COUNTLOW, val)
520 #define bfin_read_USB_DMA3COUNTHIGH() bfin_read16(USB_DMA3COUNTHIGH)
521 #define bfin_write_USB_DMA3COUNTHIGH(val) bfin_write16(USB_DMA3COUNTHIGH, val)
523 /* USB Channel 4 Config Registers */
525 #define bfin_read_USB_DMA4CONTROL() bfin_read16(USB_DMA4CONTROL)
526 #define bfin_write_USB_DMA4CONTROL(val) bfin_write16(USB_DMA4CONTROL, val)
527 #define bfin_read_USB_DMA4ADDRLOW() bfin_read16(USB_DMA4ADDRLOW)
528 #define bfin_write_USB_DMA4ADDRLOW(val) bfin_write16(USB_DMA4ADDRLOW, val)
529 #define bfin_read_USB_DMA4ADDRHIGH() bfin_read16(USB_DMA4ADDRHIGH)
530 #define bfin_write_USB_DMA4ADDRHIGH(val) bfin_write16(USB_DMA4ADDRHIGH, val)
531 #define bfin_read_USB_DMA4COUNTLOW() bfin_read16(USB_DMA4COUNTLOW)
532 #define bfin_write_USB_DMA4COUNTLOW(val) bfin_write16(USB_DMA4COUNTLOW, val)
533 #define bfin_read_USB_DMA4COUNTHIGH() bfin_read16(USB_DMA4COUNTHIGH)
534 #define bfin_write_USB_DMA4COUNTHIGH(val) bfin_write16(USB_DMA4COUNTHIGH, val)
536 /* USB Channel 5 Config Registers */
538 #define bfin_read_USB_DMA5CONTROL() bfin_read16(USB_DMA5CONTROL)
539 #define bfin_write_USB_DMA5CONTROL(val) bfin_write16(USB_DMA5CONTROL, val)
540 #define bfin_read_USB_DMA5ADDRLOW() bfin_read16(USB_DMA5ADDRLOW)
541 #define bfin_write_USB_DMA5ADDRLOW(val) bfin_write16(USB_DMA5ADDRLOW, val)
542 #define bfin_read_USB_DMA5ADDRHIGH() bfin_read16(USB_DMA5ADDRHIGH)
543 #define bfin_write_USB_DMA5ADDRHIGH(val) bfin_write16(USB_DMA5ADDRHIGH, val)
544 #define bfin_read_USB_DMA5COUNTLOW() bfin_read16(USB_DMA5COUNTLOW)
545 #define bfin_write_USB_DMA5COUNTLOW(val) bfin_write16(USB_DMA5COUNTLOW, val)
546 #define bfin_read_USB_DMA5COUNTHIGH() bfin_read16(USB_DMA5COUNTHIGH)
547 #define bfin_write_USB_DMA5COUNTHIGH(val) bfin_write16(USB_DMA5COUNTHIGH, val)
549 /* USB Channel 6 Config Registers */
551 #define bfin_read_USB_DMA6CONTROL() bfin_read16(USB_DMA6CONTROL)
552 #define bfin_write_USB_DMA6CONTROL(val) bfin_write16(USB_DMA6CONTROL, val)
553 #define bfin_read_USB_DMA6ADDRLOW() bfin_read16(USB_DMA6ADDRLOW)
554 #define bfin_write_USB_DMA6ADDRLOW(val) bfin_write16(USB_DMA6ADDRLOW, val)
555 #define bfin_read_USB_DMA6ADDRHIGH() bfin_read16(USB_DMA6ADDRHIGH)
556 #define bfin_write_USB_DMA6ADDRHIGH(val) bfin_write16(USB_DMA6ADDRHIGH, val)
557 #define bfin_read_USB_DMA6COUNTLOW() bfin_read16(USB_DMA6COUNTLOW)
558 #define bfin_write_USB_DMA6COUNTLOW(val) bfin_write16(USB_DMA6COUNTLOW, val)
559 #define bfin_read_USB_DMA6COUNTHIGH() bfin_read16(USB_DMA6COUNTHIGH)
560 #define bfin_write_USB_DMA6COUNTHIGH(val) bfin_write16(USB_DMA6COUNTHIGH, val)
562 /* USB Channel 7 Config Registers */
564 #define bfin_read_USB_DMA7CONTROL() bfin_read16(USB_DMA7CONTROL)
565 #define bfin_write_USB_DMA7CONTROL(val) bfin_write16(USB_DMA7CONTROL, val)
566 #define bfin_read_USB_DMA7ADDRLOW() bfin_read16(USB_DMA7ADDRLOW)
567 #define bfin_write_USB_DMA7ADDRLOW(val) bfin_write16(USB_DMA7ADDRLOW, val)
568 #define bfin_read_USB_DMA7ADDRHIGH() bfin_read16(USB_DMA7ADDRHIGH)
569 #define bfin_write_USB_DMA7ADDRHIGH(val) bfin_write16(USB_DMA7ADDRHIGH, val)
570 #define bfin_read_USB_DMA7COUNTLOW() bfin_read16(USB_DMA7COUNTLOW)
571 #define bfin_write_USB_DMA7COUNTLOW(val) bfin_write16(USB_DMA7COUNTLOW, val)
572 #define bfin_read_USB_DMA7COUNTHIGH() bfin_read16(USB_DMA7COUNTHIGH)
573 #define bfin_write_USB_DMA7COUNTHIGH(val) bfin_write16(USB_DMA7COUNTHIGH, val)
575 /* Keybfin_read_()ad Registers */
577 #define bfin_read_KPAD_CTL() bfin_read16(KPAD_CTL)
578 #define bfin_write_KPAD_CTL(val) bfin_write16(KPAD_CTL, val)
579 #define bfin_read_KPAD_PRESCALE() bfin_read16(KPAD_PRESCALE)
580 #define bfin_write_KPAD_PRESCALE(val) bfin_write16(KPAD_PRESCALE, val)
581 #define bfin_read_KPAD_MSEL() bfin_read16(KPAD_MSEL)
582 #define bfin_write_KPAD_MSEL(val) bfin_write16(KPAD_MSEL, val)
583 #define bfin_read_KPAD_ROWCOL() bfin_read16(KPAD_ROWCOL)
584 #define bfin_write_KPAD_ROWCOL(val) bfin_write16(KPAD_ROWCOL, val)
585 #define bfin_read_KPAD_STAT() bfin_read16(KPAD_STAT)
586 #define bfin_write_KPAD_STAT(val) bfin_write16(KPAD_STAT, val)
587 #define bfin_read_KPAD_SOFTEVAL() bfin_read16(KPAD_SOFTEVAL)
588 #define bfin_write_KPAD_SOFTEVAL(val) bfin_write16(KPAD_SOFTEVAL, val)
590 #endif /* _CDEF_BF542_H */