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