On Tue, Nov 06, 2007 at 02:33:53AM -0800, akpm@linux-foundation.org wrote:
[mmotm.git] / arch / blackfin / mach-bf527 / include / mach / cdefBF527.h
blobd6579449ee463b182254f5c77d6d219588b18859
1 /*
2 * Copyright 2007-2008 Analog Devices Inc.
4 * Licensed under the GPL-2 or later
5 */
7 #ifndef _CDEF_BF527_H
8 #define _CDEF_BF527_H
10 /* include all Core registers and bit definitions */
11 #include "defBF527.h"
13 /* include core specific register pointer definitions */
14 #include <asm/cdef_LPBlackfin.h>
16 /* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF527 */
18 /* include cdefBF52x_base.h for the set of #defines that are common to all ADSP-BF52x processors */
19 #include "cdefBF52x_base.h"
21 /* The following are the #defines needed by ADSP-BF527 that are not in the common header */
23 /* 10/100 Ethernet Controller (0xFFC03000 - 0xFFC031FF) */
25 #define bfin_read_EMAC_OPMODE() bfin_read32(EMAC_OPMODE)
26 #define bfin_write_EMAC_OPMODE(val) bfin_write32(EMAC_OPMODE, val)
27 #define bfin_read_EMAC_ADDRLO() bfin_read32(EMAC_ADDRLO)
28 #define bfin_write_EMAC_ADDRLO(val) bfin_write32(EMAC_ADDRLO, val)
29 #define bfin_read_EMAC_ADDRHI() bfin_read32(EMAC_ADDRHI)
30 #define bfin_write_EMAC_ADDRHI(val) bfin_write32(EMAC_ADDRHI, val)
31 #define bfin_read_EMAC_HASHLO() bfin_read32(EMAC_HASHLO)
32 #define bfin_write_EMAC_HASHLO(val) bfin_write32(EMAC_HASHLO, val)
33 #define bfin_read_EMAC_HASHHI() bfin_read32(EMAC_HASHHI)
34 #define bfin_write_EMAC_HASHHI(val) bfin_write32(EMAC_HASHHI, val)
35 #define bfin_read_EMAC_STAADD() bfin_read32(EMAC_STAADD)
36 #define bfin_write_EMAC_STAADD(val) bfin_write32(EMAC_STAADD, val)
37 #define bfin_read_EMAC_STADAT() bfin_read32(EMAC_STADAT)
38 #define bfin_write_EMAC_STADAT(val) bfin_write32(EMAC_STADAT, val)
39 #define bfin_read_EMAC_FLC() bfin_read32(EMAC_FLC)
40 #define bfin_write_EMAC_FLC(val) bfin_write32(EMAC_FLC, val)
41 #define bfin_read_EMAC_VLAN1() bfin_read32(EMAC_VLAN1)
42 #define bfin_write_EMAC_VLAN1(val) bfin_write32(EMAC_VLAN1, val)
43 #define bfin_read_EMAC_VLAN2() bfin_read32(EMAC_VLAN2)
44 #define bfin_write_EMAC_VLAN2(val) bfin_write32(EMAC_VLAN2, val)
45 #define bfin_read_EMAC_WKUP_CTL() bfin_read32(EMAC_WKUP_CTL)
46 #define bfin_write_EMAC_WKUP_CTL(val) bfin_write32(EMAC_WKUP_CTL, val)
47 #define bfin_read_EMAC_WKUP_FFMSK0() bfin_read32(EMAC_WKUP_FFMSK0)
48 #define bfin_write_EMAC_WKUP_FFMSK0(val) bfin_write32(EMAC_WKUP_FFMSK0, val)
49 #define bfin_read_EMAC_WKUP_FFMSK1() bfin_read32(EMAC_WKUP_FFMSK1)
50 #define bfin_write_EMAC_WKUP_FFMSK1(val) bfin_write32(EMAC_WKUP_FFMSK1, val)
51 #define bfin_read_EMAC_WKUP_FFMSK2() bfin_read32(EMAC_WKUP_FFMSK2)
52 #define bfin_write_EMAC_WKUP_FFMSK2(val) bfin_write32(EMAC_WKUP_FFMSK2, val)
53 #define bfin_read_EMAC_WKUP_FFMSK3() bfin_read32(EMAC_WKUP_FFMSK3)
54 #define bfin_write_EMAC_WKUP_FFMSK3(val) bfin_write32(EMAC_WKUP_FFMSK3, val)
55 #define bfin_read_EMAC_WKUP_FFCMD() bfin_read32(EMAC_WKUP_FFCMD)
56 #define bfin_write_EMAC_WKUP_FFCMD(val) bfin_write32(EMAC_WKUP_FFCMD, val)
57 #define bfin_read_EMAC_WKUP_FFOFF() bfin_read32(EMAC_WKUP_FFOFF)
58 #define bfin_write_EMAC_WKUP_FFOFF(val) bfin_write32(EMAC_WKUP_FFOFF, val)
59 #define bfin_read_EMAC_WKUP_FFCRC0() bfin_read32(EMAC_WKUP_FFCRC0)
60 #define bfin_write_EMAC_WKUP_FFCRC0(val) bfin_write32(EMAC_WKUP_FFCRC0, val)
61 #define bfin_read_EMAC_WKUP_FFCRC1() bfin_read32(EMAC_WKUP_FFCRC1)
62 #define bfin_write_EMAC_WKUP_FFCRC1(val) bfin_write32(EMAC_WKUP_FFCRC1, val)
64 #define bfin_read_EMAC_SYSCTL() bfin_read32(EMAC_SYSCTL)
65 #define bfin_write_EMAC_SYSCTL(val) bfin_write32(EMAC_SYSCTL, val)
66 #define bfin_read_EMAC_SYSTAT() bfin_read32(EMAC_SYSTAT)
67 #define bfin_write_EMAC_SYSTAT(val) bfin_write32(EMAC_SYSTAT, val)
68 #define bfin_read_EMAC_RX_STAT() bfin_read32(EMAC_RX_STAT)
69 #define bfin_write_EMAC_RX_STAT(val) bfin_write32(EMAC_RX_STAT, val)
70 #define bfin_read_EMAC_RX_STKY() bfin_read32(EMAC_RX_STKY)
71 #define bfin_write_EMAC_RX_STKY(val) bfin_write32(EMAC_RX_STKY, val)
72 #define bfin_read_EMAC_RX_IRQE() bfin_read32(EMAC_RX_IRQE)
73 #define bfin_write_EMAC_RX_IRQE(val) bfin_write32(EMAC_RX_IRQE, val)
74 #define bfin_read_EMAC_TX_STAT() bfin_read32(EMAC_TX_STAT)
75 #define bfin_write_EMAC_TX_STAT(val) bfin_write32(EMAC_TX_STAT, val)
76 #define bfin_read_EMAC_TX_STKY() bfin_read32(EMAC_TX_STKY)
77 #define bfin_write_EMAC_TX_STKY(val) bfin_write32(EMAC_TX_STKY, val)
78 #define bfin_read_EMAC_TX_IRQE() bfin_read32(EMAC_TX_IRQE)
79 #define bfin_write_EMAC_TX_IRQE(val) bfin_write32(EMAC_TX_IRQE, val)
81 #define bfin_read_EMAC_MMC_CTL() bfin_read32(EMAC_MMC_CTL)
82 #define bfin_write_EMAC_MMC_CTL(val) bfin_write32(EMAC_MMC_CTL, val)
83 #define bfin_read_EMAC_MMC_RIRQS() bfin_read32(EMAC_MMC_RIRQS)
84 #define bfin_write_EMAC_MMC_RIRQS(val) bfin_write32(EMAC_MMC_RIRQS, val)
85 #define bfin_read_EMAC_MMC_RIRQE() bfin_read32(EMAC_MMC_RIRQE)
86 #define bfin_write_EMAC_MMC_RIRQE(val) bfin_write32(EMAC_MMC_RIRQE, val)
87 #define bfin_read_EMAC_MMC_TIRQS() bfin_read32(EMAC_MMC_TIRQS)
88 #define bfin_write_EMAC_MMC_TIRQS(val) bfin_write32(EMAC_MMC_TIRQS, val)
89 #define bfin_read_EMAC_MMC_TIRQE() bfin_read32(EMAC_MMC_TIRQE)
90 #define bfin_write_EMAC_MMC_TIRQE(val) bfin_write32(EMAC_MMC_TIRQE, val)
92 #define bfin_read_EMAC_RXC_OK() bfin_read32(EMAC_RXC_OK)
93 #define bfin_write_EMAC_RXC_OK(val) bfin_write32(EMAC_RXC_OK, val)
94 #define bfin_read_EMAC_RXC_FCS() bfin_read32(EMAC_RXC_FCS)
95 #define bfin_write_EMAC_RXC_FCS(val) bfin_write32(EMAC_RXC_FCS, val)
96 #define bfin_read_EMAC_RXC_ALIGN() bfin_read32(EMAC_RXC_ALIGN)
97 #define bfin_write_EMAC_RXC_ALIGN(val) bfin_write32(EMAC_RXC_ALIGN, val)
98 #define bfin_read_EMAC_RXC_OCTET() bfin_read32(EMAC_RXC_OCTET)
99 #define bfin_write_EMAC_RXC_OCTET(val) bfin_write32(EMAC_RXC_OCTET, val)
100 #define bfin_read_EMAC_RXC_DMAOVF() bfin_read32(EMAC_RXC_DMAOVF)
101 #define bfin_write_EMAC_RXC_DMAOVF(val) bfin_write32(EMAC_RXC_DMAOVF, val)
102 #define bfin_read_EMAC_RXC_UNICST() bfin_read32(EMAC_RXC_UNICST)
103 #define bfin_write_EMAC_RXC_UNICST(val) bfin_write32(EMAC_RXC_UNICST, val)
104 #define bfin_read_EMAC_RXC_MULTI() bfin_read32(EMAC_RXC_MULTI)
105 #define bfin_write_EMAC_RXC_MULTI(val) bfin_write32(EMAC_RXC_MULTI, val)
106 #define bfin_read_EMAC_RXC_BROAD() bfin_read32(EMAC_RXC_BROAD)
107 #define bfin_write_EMAC_RXC_BROAD(val) bfin_write32(EMAC_RXC_BROAD, val)
108 #define bfin_read_EMAC_RXC_LNERRI() bfin_read32(EMAC_RXC_LNERRI)
109 #define bfin_write_EMAC_RXC_LNERRI(val) bfin_write32(EMAC_RXC_LNERRI, val)
110 #define bfin_read_EMAC_RXC_LNERRO() bfin_read32(EMAC_RXC_LNERRO)
111 #define bfin_write_EMAC_RXC_LNERRO(val) bfin_write32(EMAC_RXC_LNERRO, val)
112 #define bfin_read_EMAC_RXC_LONG() bfin_read32(EMAC_RXC_LONG)
113 #define bfin_write_EMAC_RXC_LONG(val) bfin_write32(EMAC_RXC_LONG, val)
114 #define bfin_read_EMAC_RXC_MACCTL() bfin_read32(EMAC_RXC_MACCTL)
115 #define bfin_write_EMAC_RXC_MACCTL(val) bfin_write32(EMAC_RXC_MACCTL, val)
116 #define bfin_read_EMAC_RXC_OPCODE() bfin_read32(EMAC_RXC_OPCODE)
117 #define bfin_write_EMAC_RXC_OPCODE(val) bfin_write32(EMAC_RXC_OPCODE, val)
118 #define bfin_read_EMAC_RXC_PAUSE() bfin_read32(EMAC_RXC_PAUSE)
119 #define bfin_write_EMAC_RXC_PAUSE(val) bfin_write32(EMAC_RXC_PAUSE, val)
120 #define bfin_read_EMAC_RXC_ALLFRM() bfin_read32(EMAC_RXC_ALLFRM)
121 #define bfin_write_EMAC_RXC_ALLFRM(val) bfin_write32(EMAC_RXC_ALLFRM, val)
122 #define bfin_read_EMAC_RXC_ALLOCT() bfin_read32(EMAC_RXC_ALLOCT)
123 #define bfin_write_EMAC_RXC_ALLOCT(val) bfin_write32(EMAC_RXC_ALLOCT, val)
124 #define bfin_read_EMAC_RXC_TYPED() bfin_read32(EMAC_RXC_TYPED)
125 #define bfin_write_EMAC_RXC_TYPED(val) bfin_write32(EMAC_RXC_TYPED, val)
126 #define bfin_read_EMAC_RXC_SHORT() bfin_read32(EMAC_RXC_SHORT)
127 #define bfin_write_EMAC_RXC_SHORT(val) bfin_write32(EMAC_RXC_SHORT, val)
128 #define bfin_read_EMAC_RXC_EQ64() bfin_read32(EMAC_RXC_EQ64)
129 #define bfin_write_EMAC_RXC_EQ64(val) bfin_write32(EMAC_RXC_EQ64, val)
130 #define bfin_read_EMAC_RXC_LT128() bfin_read32(EMAC_RXC_LT128)
131 #define bfin_write_EMAC_RXC_LT128(val) bfin_write32(EMAC_RXC_LT128, val)
132 #define bfin_read_EMAC_RXC_LT256() bfin_read32(EMAC_RXC_LT256)
133 #define bfin_write_EMAC_RXC_LT256(val) bfin_write32(EMAC_RXC_LT256, val)
134 #define bfin_read_EMAC_RXC_LT512() bfin_read32(EMAC_RXC_LT512)
135 #define bfin_write_EMAC_RXC_LT512(val) bfin_write32(EMAC_RXC_LT512, val)
136 #define bfin_read_EMAC_RXC_LT1024() bfin_read32(EMAC_RXC_LT1024)
137 #define bfin_write_EMAC_RXC_LT1024(val) bfin_write32(EMAC_RXC_LT1024, val)
138 #define bfin_read_EMAC_RXC_GE1024() bfin_read32(EMAC_RXC_GE1024)
139 #define bfin_write_EMAC_RXC_GE1024(val) bfin_write32(EMAC_RXC_GE1024, val)
141 #define bfin_read_EMAC_TXC_OK() bfin_read32(EMAC_TXC_OK)
142 #define bfin_write_EMAC_TXC_OK(val) bfin_write32(EMAC_TXC_OK, val)
143 #define bfin_read_EMAC_TXC_1COL() bfin_read32(EMAC_TXC_1COL)
144 #define bfin_write_EMAC_TXC_1COL(val) bfin_write32(EMAC_TXC_1COL, val)
145 #define bfin_read_EMAC_TXC_GT1COL() bfin_read32(EMAC_TXC_GT1COL)
146 #define bfin_write_EMAC_TXC_GT1COL(val) bfin_write32(EMAC_TXC_GT1COL, val)
147 #define bfin_read_EMAC_TXC_OCTET() bfin_read32(EMAC_TXC_OCTET)
148 #define bfin_write_EMAC_TXC_OCTET(val) bfin_write32(EMAC_TXC_OCTET, val)
149 #define bfin_read_EMAC_TXC_DEFER() bfin_read32(EMAC_TXC_DEFER)
150 #define bfin_write_EMAC_TXC_DEFER(val) bfin_write32(EMAC_TXC_DEFER, val)
151 #define bfin_read_EMAC_TXC_LATECL() bfin_read32(EMAC_TXC_LATECL)
152 #define bfin_write_EMAC_TXC_LATECL(val) bfin_write32(EMAC_TXC_LATECL, val)
153 #define bfin_read_EMAC_TXC_XS_COL() bfin_read32(EMAC_TXC_XS_COL)
154 #define bfin_write_EMAC_TXC_XS_COL(val) bfin_write32(EMAC_TXC_XS_COL, val)
155 #define bfin_read_EMAC_TXC_DMAUND() bfin_read32(EMAC_TXC_DMAUND)
156 #define bfin_write_EMAC_TXC_DMAUND(val) bfin_write32(EMAC_TXC_DMAUND, val)
157 #define bfin_read_EMAC_TXC_CRSERR() bfin_read32(EMAC_TXC_CRSERR)
158 #define bfin_write_EMAC_TXC_CRSERR(val) bfin_write32(EMAC_TXC_CRSERR, val)
159 #define bfin_read_EMAC_TXC_UNICST() bfin_read32(EMAC_TXC_UNICST)
160 #define bfin_write_EMAC_TXC_UNICST(val) bfin_write32(EMAC_TXC_UNICST, val)
161 #define bfin_read_EMAC_TXC_MULTI() bfin_read32(EMAC_TXC_MULTI)
162 #define bfin_write_EMAC_TXC_MULTI(val) bfin_write32(EMAC_TXC_MULTI, val)
163 #define bfin_read_EMAC_TXC_BROAD() bfin_read32(EMAC_TXC_BROAD)
164 #define bfin_write_EMAC_TXC_BROAD(val) bfin_write32(EMAC_TXC_BROAD, val)
165 #define bfin_read_EMAC_TXC_XS_DFR() bfin_read32(EMAC_TXC_XS_DFR)
166 #define bfin_write_EMAC_TXC_XS_DFR(val) bfin_write32(EMAC_TXC_XS_DFR, val)
167 #define bfin_read_EMAC_TXC_MACCTL() bfin_read32(EMAC_TXC_MACCTL)
168 #define bfin_write_EMAC_TXC_MACCTL(val) bfin_write32(EMAC_TXC_MACCTL, val)
169 #define bfin_read_EMAC_TXC_ALLFRM() bfin_read32(EMAC_TXC_ALLFRM)
170 #define bfin_write_EMAC_TXC_ALLFRM(val) bfin_write32(EMAC_TXC_ALLFRM, val)
171 #define bfin_read_EMAC_TXC_ALLOCT() bfin_read32(EMAC_TXC_ALLOCT)
172 #define bfin_write_EMAC_TXC_ALLOCT(val) bfin_write32(EMAC_TXC_ALLOCT, val)
173 #define bfin_read_EMAC_TXC_EQ64() bfin_read32(EMAC_TXC_EQ64)
174 #define bfin_write_EMAC_TXC_EQ64(val) bfin_write32(EMAC_TXC_EQ64, val)
175 #define bfin_read_EMAC_TXC_LT128() bfin_read32(EMAC_TXC_LT128)
176 #define bfin_write_EMAC_TXC_LT128(val) bfin_write32(EMAC_TXC_LT128, val)
177 #define bfin_read_EMAC_TXC_LT256() bfin_read32(EMAC_TXC_LT256)
178 #define bfin_write_EMAC_TXC_LT256(val) bfin_write32(EMAC_TXC_LT256, val)
179 #define bfin_read_EMAC_TXC_LT512() bfin_read32(EMAC_TXC_LT512)
180 #define bfin_write_EMAC_TXC_LT512(val) bfin_write32(EMAC_TXC_LT512, val)
181 #define bfin_read_EMAC_TXC_LT1024() bfin_read32(EMAC_TXC_LT1024)
182 #define bfin_write_EMAC_TXC_LT1024(val) bfin_write32(EMAC_TXC_LT1024, val)
183 #define bfin_read_EMAC_TXC_GE1024() bfin_read32(EMAC_TXC_GE1024)
184 #define bfin_write_EMAC_TXC_GE1024(val) bfin_write32(EMAC_TXC_GE1024, val)
185 #define bfin_read_EMAC_TXC_ABORT() bfin_read32(EMAC_TXC_ABORT)
186 #define bfin_write_EMAC_TXC_ABORT(val) bfin_write32(EMAC_TXC_ABORT, val)
188 /* USB Control Registers */
190 #define bfin_read_USB_FADDR() bfin_read16(USB_FADDR)
191 #define bfin_write_USB_FADDR(val) bfin_write16(USB_FADDR, val)
192 #define bfin_read_USB_POWER() bfin_read16(USB_POWER)
193 #define bfin_write_USB_POWER(val) bfin_write16(USB_POWER, val)
194 #define bfin_read_USB_INTRTX() bfin_read16(USB_INTRTX)
195 #define bfin_write_USB_INTRTX(val) bfin_write16(USB_INTRTX, val)
196 #define bfin_read_USB_INTRRX() bfin_read16(USB_INTRRX)
197 #define bfin_write_USB_INTRRX(val) bfin_write16(USB_INTRRX, val)
198 #define bfin_read_USB_INTRTXE() bfin_read16(USB_INTRTXE)
199 #define bfin_write_USB_INTRTXE(val) bfin_write16(USB_INTRTXE, val)
200 #define bfin_read_USB_INTRRXE() bfin_read16(USB_INTRRXE)
201 #define bfin_write_USB_INTRRXE(val) bfin_write16(USB_INTRRXE, val)
202 #define bfin_read_USB_INTRUSB() bfin_read16(USB_INTRUSB)
203 #define bfin_write_USB_INTRUSB(val) bfin_write16(USB_INTRUSB, val)
204 #define bfin_read_USB_INTRUSBE() bfin_read16(USB_INTRUSBE)
205 #define bfin_write_USB_INTRUSBE(val) bfin_write16(USB_INTRUSBE, val)
206 #define bfin_read_USB_FRAME() bfin_read16(USB_FRAME)
207 #define bfin_write_USB_FRAME(val) bfin_write16(USB_FRAME, val)
208 #define bfin_read_USB_INDEX() bfin_read16(USB_INDEX)
209 #define bfin_write_USB_INDEX(val) bfin_write16(USB_INDEX, val)
210 #define bfin_read_USB_TESTMODE() bfin_read16(USB_TESTMODE)
211 #define bfin_write_USB_TESTMODE(val) bfin_write16(USB_TESTMODE, val)
212 #define bfin_read_USB_GLOBINTR() bfin_read16(USB_GLOBINTR)
213 #define bfin_write_USB_GLOBINTR(val) bfin_write16(USB_GLOBINTR, val)
214 #define bfin_read_USB_GLOBAL_CTL() bfin_read16(USB_GLOBAL_CTL)
215 #define bfin_write_USB_GLOBAL_CTL(val) bfin_write16(USB_GLOBAL_CTL, val)
217 /* USB Packet Control Registers */
219 #define bfin_read_USB_TX_MAX_PACKET() bfin_read16(USB_TX_MAX_PACKET)
220 #define bfin_write_USB_TX_MAX_PACKET(val) bfin_write16(USB_TX_MAX_PACKET, val)
221 #define bfin_read_USB_CSR0() bfin_read16(USB_CSR0)
222 #define bfin_write_USB_CSR0(val) bfin_write16(USB_CSR0, val)
223 #define bfin_read_USB_TXCSR() bfin_read16(USB_TXCSR)
224 #define bfin_write_USB_TXCSR(val) bfin_write16(USB_TXCSR, val)
225 #define bfin_read_USB_RX_MAX_PACKET() bfin_read16(USB_RX_MAX_PACKET)
226 #define bfin_write_USB_RX_MAX_PACKET(val) bfin_write16(USB_RX_MAX_PACKET, val)
227 #define bfin_read_USB_RXCSR() bfin_read16(USB_RXCSR)
228 #define bfin_write_USB_RXCSR(val) bfin_write16(USB_RXCSR, val)
229 #define bfin_read_USB_COUNT0() bfin_read16(USB_COUNT0)
230 #define bfin_write_USB_COUNT0(val) bfin_write16(USB_COUNT0, val)
231 #define bfin_read_USB_RXCOUNT() bfin_read16(USB_RXCOUNT)
232 #define bfin_write_USB_RXCOUNT(val) bfin_write16(USB_RXCOUNT, val)
233 #define bfin_read_USB_TXTYPE() bfin_read16(USB_TXTYPE)
234 #define bfin_write_USB_TXTYPE(val) bfin_write16(USB_TXTYPE, val)
235 #define bfin_read_USB_NAKLIMIT0() bfin_read16(USB_NAKLIMIT0)
236 #define bfin_write_USB_NAKLIMIT0(val) bfin_write16(USB_NAKLIMIT0, val)
237 #define bfin_read_USB_TXINTERVAL() bfin_read16(USB_TXINTERVAL)
238 #define bfin_write_USB_TXINTERVAL(val) bfin_write16(USB_TXINTERVAL, val)
239 #define bfin_read_USB_RXTYPE() bfin_read16(USB_RXTYPE)
240 #define bfin_write_USB_RXTYPE(val) bfin_write16(USB_RXTYPE, val)
241 #define bfin_read_USB_RXINTERVAL() bfin_read16(USB_RXINTERVAL)
242 #define bfin_write_USB_RXINTERVAL(val) bfin_write16(USB_RXINTERVAL, val)
243 #define bfin_read_USB_TXCOUNT() bfin_read16(USB_TXCOUNT)
244 #define bfin_write_USB_TXCOUNT(val) bfin_write16(USB_TXCOUNT, val)
246 /* USB Endpoint FIFO Registers */
248 #define bfin_read_USB_EP0_FIFO() bfin_read16(USB_EP0_FIFO)
249 #define bfin_write_USB_EP0_FIFO(val) bfin_write16(USB_EP0_FIFO, val)
250 #define bfin_read_USB_EP1_FIFO() bfin_read16(USB_EP1_FIFO)
251 #define bfin_write_USB_EP1_FIFO(val) bfin_write16(USB_EP1_FIFO, val)
252 #define bfin_read_USB_EP2_FIFO() bfin_read16(USB_EP2_FIFO)
253 #define bfin_write_USB_EP2_FIFO(val) bfin_write16(USB_EP2_FIFO, val)
254 #define bfin_read_USB_EP3_FIFO() bfin_read16(USB_EP3_FIFO)
255 #define bfin_write_USB_EP3_FIFO(val) bfin_write16(USB_EP3_FIFO, val)
256 #define bfin_read_USB_EP4_FIFO() bfin_read16(USB_EP4_FIFO)
257 #define bfin_write_USB_EP4_FIFO(val) bfin_write16(USB_EP4_FIFO, val)
258 #define bfin_read_USB_EP5_FIFO() bfin_read16(USB_EP5_FIFO)
259 #define bfin_write_USB_EP5_FIFO(val) bfin_write16(USB_EP5_FIFO, val)
260 #define bfin_read_USB_EP6_FIFO() bfin_read16(USB_EP6_FIFO)
261 #define bfin_write_USB_EP6_FIFO(val) bfin_write16(USB_EP6_FIFO, val)
262 #define bfin_read_USB_EP7_FIFO() bfin_read16(USB_EP7_FIFO)
263 #define bfin_write_USB_EP7_FIFO(val) bfin_write16(USB_EP7_FIFO, val)
265 /* USB OTG Control Registers */
267 #define bfin_read_USB_OTG_DEV_CTL() bfin_read16(USB_OTG_DEV_CTL)
268 #define bfin_write_USB_OTG_DEV_CTL(val) bfin_write16(USB_OTG_DEV_CTL, val)
269 #define bfin_read_USB_OTG_VBUS_IRQ() bfin_read16(USB_OTG_VBUS_IRQ)
270 #define bfin_write_USB_OTG_VBUS_IRQ(val) bfin_write16(USB_OTG_VBUS_IRQ, val)
271 #define bfin_read_USB_OTG_VBUS_MASK() bfin_read16(USB_OTG_VBUS_MASK)
272 #define bfin_write_USB_OTG_VBUS_MASK(val) bfin_write16(USB_OTG_VBUS_MASK, val)
274 /* USB Phy Control Registers */
276 #define bfin_read_USB_LINKINFO() bfin_read16(USB_LINKINFO)
277 #define bfin_write_USB_LINKINFO(val) bfin_write16(USB_LINKINFO, val)
278 #define bfin_read_USB_VPLEN() bfin_read16(USB_VPLEN)
279 #define bfin_write_USB_VPLEN(val) bfin_write16(USB_VPLEN, val)
280 #define bfin_read_USB_HS_EOF1() bfin_read16(USB_HS_EOF1)
281 #define bfin_write_USB_HS_EOF1(val) bfin_write16(USB_HS_EOF1, val)
282 #define bfin_read_USB_FS_EOF1() bfin_read16(USB_FS_EOF1)
283 #define bfin_write_USB_FS_EOF1(val) bfin_write16(USB_FS_EOF1, val)
284 #define bfin_read_USB_LS_EOF1() bfin_read16(USB_LS_EOF1)
285 #define bfin_write_USB_LS_EOF1(val) bfin_write16(USB_LS_EOF1, val)
287 /* (APHY_CNTRL is for ADI usage only) */
289 #define bfin_read_USB_APHY_CNTRL() bfin_read16(USB_APHY_CNTRL)
290 #define bfin_write_USB_APHY_CNTRL(val) bfin_write16(USB_APHY_CNTRL, val)
292 /* (APHY_CALIB is for ADI usage only) */
294 #define bfin_read_USB_APHY_CALIB() bfin_read16(USB_APHY_CALIB)
295 #define bfin_write_USB_APHY_CALIB(val) bfin_write16(USB_APHY_CALIB, val)
297 #define bfin_read_USB_APHY_CNTRL2() bfin_read16(USB_APHY_CNTRL2)
298 #define bfin_write_USB_APHY_CNTRL2(val) bfin_write16(USB_APHY_CNTRL2, val)
300 /* (PHY_TEST is for ADI usage only) */
302 #define bfin_read_USB_PHY_TEST() bfin_read16(USB_PHY_TEST)
303 #define bfin_write_USB_PHY_TEST(val) bfin_write16(USB_PHY_TEST, val)
305 #define bfin_read_USB_PLLOSC_CTRL() bfin_read16(USB_PLLOSC_CTRL)
306 #define bfin_write_USB_PLLOSC_CTRL(val) bfin_write16(USB_PLLOSC_CTRL, val)
307 #define bfin_read_USB_SRP_CLKDIV() bfin_read16(USB_SRP_CLKDIV)
308 #define bfin_write_USB_SRP_CLKDIV(val) bfin_write16(USB_SRP_CLKDIV, val)
310 /* USB Endpoint 0 Control Registers */
312 #define bfin_read_USB_EP_NI0_TXMAXP() bfin_read16(USB_EP_NI0_TXMAXP)
313 #define bfin_write_USB_EP_NI0_TXMAXP(val) bfin_write16(USB_EP_NI0_TXMAXP, val)
314 #define bfin_read_USB_EP_NI0_TXCSR() bfin_read16(USB_EP_NI0_TXCSR)
315 #define bfin_write_USB_EP_NI0_TXCSR(val) bfin_write16(USB_EP_NI0_TXCSR, val)
316 #define bfin_read_USB_EP_NI0_RXMAXP() bfin_read16(USB_EP_NI0_RXMAXP)
317 #define bfin_write_USB_EP_NI0_RXMAXP(val) bfin_write16(USB_EP_NI0_RXMAXP, val)
318 #define bfin_read_USB_EP_NI0_RXCSR() bfin_read16(USB_EP_NI0_RXCSR)
319 #define bfin_write_USB_EP_NI0_RXCSR(val) bfin_write16(USB_EP_NI0_RXCSR, val)
320 #define bfin_read_USB_EP_NI0_RXCOUNT() bfin_read16(USB_EP_NI0_RXCOUNT)
321 #define bfin_write_USB_EP_NI0_RXCOUNT(val) bfin_write16(USB_EP_NI0_RXCOUNT, val)
322 #define bfin_read_USB_EP_NI0_TXTYPE() bfin_read16(USB_EP_NI0_TXTYPE)
323 #define bfin_write_USB_EP_NI0_TXTYPE(val) bfin_write16(USB_EP_NI0_TXTYPE, val)
324 #define bfin_read_USB_EP_NI0_TXINTERVAL() bfin_read16(USB_EP_NI0_TXINTERVAL)
325 #define bfin_write_USB_EP_NI0_TXINTERVAL(val) bfin_write16(USB_EP_NI0_TXINTERVAL, val)
326 #define bfin_read_USB_EP_NI0_RXTYPE() bfin_read16(USB_EP_NI0_RXTYPE)
327 #define bfin_write_USB_EP_NI0_RXTYPE(val) bfin_write16(USB_EP_NI0_RXTYPE, val)
328 #define bfin_read_USB_EP_NI0_RXINTERVAL() bfin_read16(USB_EP_NI0_RXINTERVAL)
329 #define bfin_write_USB_EP_NI0_RXINTERVAL(val) bfin_write16(USB_EP_NI0_RXINTERVAL, val)
330 #define bfin_read_USB_EP_NI0_TXCOUNT() bfin_read16(USB_EP_NI0_TXCOUNT)
331 #define bfin_write_USB_EP_NI0_TXCOUNT(val) bfin_write16(USB_EP_NI0_TXCOUNT, val)
333 /* USB Endpoint 1 Control Registers */
335 #define bfin_read_USB_EP_NI1_TXMAXP() bfin_read16(USB_EP_NI1_TXMAXP)
336 #define bfin_write_USB_EP_NI1_TXMAXP(val) bfin_write16(USB_EP_NI1_TXMAXP, val)
337 #define bfin_read_USB_EP_NI1_TXCSR() bfin_read16(USB_EP_NI1_TXCSR)
338 #define bfin_write_USB_EP_NI1_TXCSR(val) bfin_write16(USB_EP_NI1_TXCSR, val)
339 #define bfin_read_USB_EP_NI1_RXMAXP() bfin_read16(USB_EP_NI1_RXMAXP)
340 #define bfin_write_USB_EP_NI1_RXMAXP(val) bfin_write16(USB_EP_NI1_RXMAXP, val)
341 #define bfin_read_USB_EP_NI1_RXCSR() bfin_read16(USB_EP_NI1_RXCSR)
342 #define bfin_write_USB_EP_NI1_RXCSR(val) bfin_write16(USB_EP_NI1_RXCSR, val)
343 #define bfin_read_USB_EP_NI1_RXCOUNT() bfin_read16(USB_EP_NI1_RXCOUNT)
344 #define bfin_write_USB_EP_NI1_RXCOUNT(val) bfin_write16(USB_EP_NI1_RXCOUNT, val)
345 #define bfin_read_USB_EP_NI1_TXTYPE() bfin_read16(USB_EP_NI1_TXTYPE)
346 #define bfin_write_USB_EP_NI1_TXTYPE(val) bfin_write16(USB_EP_NI1_TXTYPE, val)
347 #define bfin_read_USB_EP_NI1_TXINTERVAL() bfin_read16(USB_EP_NI1_TXINTERVAL)
348 #define bfin_write_USB_EP_NI1_TXINTERVAL(val) bfin_write16(USB_EP_NI1_TXINTERVAL, val)
349 #define bfin_read_USB_EP_NI1_RXTYPE() bfin_read16(USB_EP_NI1_RXTYPE)
350 #define bfin_write_USB_EP_NI1_RXTYPE(val) bfin_write16(USB_EP_NI1_RXTYPE, val)
351 #define bfin_read_USB_EP_NI1_RXINTERVAL() bfin_read16(USB_EP_NI1_RXINTERVAL)
352 #define bfin_write_USB_EP_NI1_RXINTERVAL(val) bfin_write16(USB_EP_NI1_RXINTERVAL, val)
353 #define bfin_read_USB_EP_NI1_TXCOUNT() bfin_read16(USB_EP_NI1_TXCOUNT)
354 #define bfin_write_USB_EP_NI1_TXCOUNT(val) bfin_write16(USB_EP_NI1_TXCOUNT, val)
356 /* USB Endpoint 2 Control Registers */
358 #define bfin_read_USB_EP_NI2_TXMAXP() bfin_read16(USB_EP_NI2_TXMAXP)
359 #define bfin_write_USB_EP_NI2_TXMAXP(val) bfin_write16(USB_EP_NI2_TXMAXP, val)
360 #define bfin_read_USB_EP_NI2_TXCSR() bfin_read16(USB_EP_NI2_TXCSR)
361 #define bfin_write_USB_EP_NI2_TXCSR(val) bfin_write16(USB_EP_NI2_TXCSR, val)
362 #define bfin_read_USB_EP_NI2_RXMAXP() bfin_read16(USB_EP_NI2_RXMAXP)
363 #define bfin_write_USB_EP_NI2_RXMAXP(val) bfin_write16(USB_EP_NI2_RXMAXP, val)
364 #define bfin_read_USB_EP_NI2_RXCSR() bfin_read16(USB_EP_NI2_RXCSR)
365 #define bfin_write_USB_EP_NI2_RXCSR(val) bfin_write16(USB_EP_NI2_RXCSR, val)
366 #define bfin_read_USB_EP_NI2_RXCOUNT() bfin_read16(USB_EP_NI2_RXCOUNT)
367 #define bfin_write_USB_EP_NI2_RXCOUNT(val) bfin_write16(USB_EP_NI2_RXCOUNT, val)
368 #define bfin_read_USB_EP_NI2_TXTYPE() bfin_read16(USB_EP_NI2_TXTYPE)
369 #define bfin_write_USB_EP_NI2_TXTYPE(val) bfin_write16(USB_EP_NI2_TXTYPE, val)
370 #define bfin_read_USB_EP_NI2_TXINTERVAL() bfin_read16(USB_EP_NI2_TXINTERVAL)
371 #define bfin_write_USB_EP_NI2_TXINTERVAL(val) bfin_write16(USB_EP_NI2_TXINTERVAL, val)
372 #define bfin_read_USB_EP_NI2_RXTYPE() bfin_read16(USB_EP_NI2_RXTYPE)
373 #define bfin_write_USB_EP_NI2_RXTYPE(val) bfin_write16(USB_EP_NI2_RXTYPE, val)
374 #define bfin_read_USB_EP_NI2_RXINTERVAL() bfin_read16(USB_EP_NI2_RXINTERVAL)
375 #define bfin_write_USB_EP_NI2_RXINTERVAL(val) bfin_write16(USB_EP_NI2_RXINTERVAL, val)
376 #define bfin_read_USB_EP_NI2_TXCOUNT() bfin_read16(USB_EP_NI2_TXCOUNT)
377 #define bfin_write_USB_EP_NI2_TXCOUNT(val) bfin_write16(USB_EP_NI2_TXCOUNT, val)
379 /* USB Endpoint 3 Control Registers */
381 #define bfin_read_USB_EP_NI3_TXMAXP() bfin_read16(USB_EP_NI3_TXMAXP)
382 #define bfin_write_USB_EP_NI3_TXMAXP(val) bfin_write16(USB_EP_NI3_TXMAXP, val)
383 #define bfin_read_USB_EP_NI3_TXCSR() bfin_read16(USB_EP_NI3_TXCSR)
384 #define bfin_write_USB_EP_NI3_TXCSR(val) bfin_write16(USB_EP_NI3_TXCSR, val)
385 #define bfin_read_USB_EP_NI3_RXMAXP() bfin_read16(USB_EP_NI3_RXMAXP)
386 #define bfin_write_USB_EP_NI3_RXMAXP(val) bfin_write16(USB_EP_NI3_RXMAXP, val)
387 #define bfin_read_USB_EP_NI3_RXCSR() bfin_read16(USB_EP_NI3_RXCSR)
388 #define bfin_write_USB_EP_NI3_RXCSR(val) bfin_write16(USB_EP_NI3_RXCSR, val)
389 #define bfin_read_USB_EP_NI3_RXCOUNT() bfin_read16(USB_EP_NI3_RXCOUNT)
390 #define bfin_write_USB_EP_NI3_RXCOUNT(val) bfin_write16(USB_EP_NI3_RXCOUNT, val)
391 #define bfin_read_USB_EP_NI3_TXTYPE() bfin_read16(USB_EP_NI3_TXTYPE)
392 #define bfin_write_USB_EP_NI3_TXTYPE(val) bfin_write16(USB_EP_NI3_TXTYPE, val)
393 #define bfin_read_USB_EP_NI3_TXINTERVAL() bfin_read16(USB_EP_NI3_TXINTERVAL)
394 #define bfin_write_USB_EP_NI3_TXINTERVAL(val) bfin_write16(USB_EP_NI3_TXINTERVAL, val)
395 #define bfin_read_USB_EP_NI3_RXTYPE() bfin_read16(USB_EP_NI3_RXTYPE)
396 #define bfin_write_USB_EP_NI3_RXTYPE(val) bfin_write16(USB_EP_NI3_RXTYPE, val)
397 #define bfin_read_USB_EP_NI3_RXINTERVAL() bfin_read16(USB_EP_NI3_RXINTERVAL)
398 #define bfin_write_USB_EP_NI3_RXINTERVAL(val) bfin_write16(USB_EP_NI3_RXINTERVAL, val)
399 #define bfin_read_USB_EP_NI3_TXCOUNT() bfin_read16(USB_EP_NI3_TXCOUNT)
400 #define bfin_write_USB_EP_NI3_TXCOUNT(val) bfin_write16(USB_EP_NI3_TXCOUNT, val)
402 /* USB Endpoint 4 Control Registers */
404 #define bfin_read_USB_EP_NI4_TXMAXP() bfin_read16(USB_EP_NI4_TXMAXP)
405 #define bfin_write_USB_EP_NI4_TXMAXP(val) bfin_write16(USB_EP_NI4_TXMAXP, val)
406 #define bfin_read_USB_EP_NI4_TXCSR() bfin_read16(USB_EP_NI4_TXCSR)
407 #define bfin_write_USB_EP_NI4_TXCSR(val) bfin_write16(USB_EP_NI4_TXCSR, val)
408 #define bfin_read_USB_EP_NI4_RXMAXP() bfin_read16(USB_EP_NI4_RXMAXP)
409 #define bfin_write_USB_EP_NI4_RXMAXP(val) bfin_write16(USB_EP_NI4_RXMAXP, val)
410 #define bfin_read_USB_EP_NI4_RXCSR() bfin_read16(USB_EP_NI4_RXCSR)
411 #define bfin_write_USB_EP_NI4_RXCSR(val) bfin_write16(USB_EP_NI4_RXCSR, val)
412 #define bfin_read_USB_EP_NI4_RXCOUNT() bfin_read16(USB_EP_NI4_RXCOUNT)
413 #define bfin_write_USB_EP_NI4_RXCOUNT(val) bfin_write16(USB_EP_NI4_RXCOUNT, val)
414 #define bfin_read_USB_EP_NI4_TXTYPE() bfin_read16(USB_EP_NI4_TXTYPE)
415 #define bfin_write_USB_EP_NI4_TXTYPE(val) bfin_write16(USB_EP_NI4_TXTYPE, val)
416 #define bfin_read_USB_EP_NI4_TXINTERVAL() bfin_read16(USB_EP_NI4_TXINTERVAL)
417 #define bfin_write_USB_EP_NI4_TXINTERVAL(val) bfin_write16(USB_EP_NI4_TXINTERVAL, val)
418 #define bfin_read_USB_EP_NI4_RXTYPE() bfin_read16(USB_EP_NI4_RXTYPE)
419 #define bfin_write_USB_EP_NI4_RXTYPE(val) bfin_write16(USB_EP_NI4_RXTYPE, val)
420 #define bfin_read_USB_EP_NI4_RXINTERVAL() bfin_read16(USB_EP_NI4_RXINTERVAL)
421 #define bfin_write_USB_EP_NI4_RXINTERVAL(val) bfin_write16(USB_EP_NI4_RXINTERVAL, val)
422 #define bfin_read_USB_EP_NI4_TXCOUNT() bfin_read16(USB_EP_NI4_TXCOUNT)
423 #define bfin_write_USB_EP_NI4_TXCOUNT(val) bfin_write16(USB_EP_NI4_TXCOUNT, val)
425 /* USB Endpoint 5 Control Registers */
427 #define bfin_read_USB_EP_NI5_TXMAXP() bfin_read16(USB_EP_NI5_TXMAXP)
428 #define bfin_write_USB_EP_NI5_TXMAXP(val) bfin_write16(USB_EP_NI5_TXMAXP, val)
429 #define bfin_read_USB_EP_NI5_TXCSR() bfin_read16(USB_EP_NI5_TXCSR)
430 #define bfin_write_USB_EP_NI5_TXCSR(val) bfin_write16(USB_EP_NI5_TXCSR, val)
431 #define bfin_read_USB_EP_NI5_RXMAXP() bfin_read16(USB_EP_NI5_RXMAXP)
432 #define bfin_write_USB_EP_NI5_RXMAXP(val) bfin_write16(USB_EP_NI5_RXMAXP, val)
433 #define bfin_read_USB_EP_NI5_RXCSR() bfin_read16(USB_EP_NI5_RXCSR)
434 #define bfin_write_USB_EP_NI5_RXCSR(val) bfin_write16(USB_EP_NI5_RXCSR, val)
435 #define bfin_read_USB_EP_NI5_RXCOUNT() bfin_read16(USB_EP_NI5_RXCOUNT)
436 #define bfin_write_USB_EP_NI5_RXCOUNT(val) bfin_write16(USB_EP_NI5_RXCOUNT, val)
437 #define bfin_read_USB_EP_NI5_TXTYPE() bfin_read16(USB_EP_NI5_TXTYPE)
438 #define bfin_write_USB_EP_NI5_TXTYPE(val) bfin_write16(USB_EP_NI5_TXTYPE, val)
439 #define bfin_read_USB_EP_NI5_TXINTERVAL() bfin_read16(USB_EP_NI5_TXINTERVAL)
440 #define bfin_write_USB_EP_NI5_TXINTERVAL(val) bfin_write16(USB_EP_NI5_TXINTERVAL, val)
441 #define bfin_read_USB_EP_NI5_RXTYPE() bfin_read16(USB_EP_NI5_RXTYPE)
442 #define bfin_write_USB_EP_NI5_RXTYPE(val) bfin_write16(USB_EP_NI5_RXTYPE, val)
443 #define bfin_read_USB_EP_NI5_RXINTERVAL() bfin_read16(USB_EP_NI5_RXINTERVAL)
444 #define bfin_write_USB_EP_NI5_RXINTERVAL(val) bfin_write16(USB_EP_NI5_RXINTERVAL, val)
445 #define bfin_read_USB_EP_NI5_TXCOUNT() bfin_read16(USB_EP_NI5_TXCOUNT)
446 #define bfin_write_USB_EP_NI5_TXCOUNT(val) bfin_write16(USB_EP_NI5_TXCOUNT, val)
448 /* USB Endpoint 6 Control Registers */
450 #define bfin_read_USB_EP_NI6_TXMAXP() bfin_read16(USB_EP_NI6_TXMAXP)
451 #define bfin_write_USB_EP_NI6_TXMAXP(val) bfin_write16(USB_EP_NI6_TXMAXP, val)
452 #define bfin_read_USB_EP_NI6_TXCSR() bfin_read16(USB_EP_NI6_TXCSR)
453 #define bfin_write_USB_EP_NI6_TXCSR(val) bfin_write16(USB_EP_NI6_TXCSR, val)
454 #define bfin_read_USB_EP_NI6_RXMAXP() bfin_read16(USB_EP_NI6_RXMAXP)
455 #define bfin_write_USB_EP_NI6_RXMAXP(val) bfin_write16(USB_EP_NI6_RXMAXP, val)
456 #define bfin_read_USB_EP_NI6_RXCSR() bfin_read16(USB_EP_NI6_RXCSR)
457 #define bfin_write_USB_EP_NI6_RXCSR(val) bfin_write16(USB_EP_NI6_RXCSR, val)
458 #define bfin_read_USB_EP_NI6_RXCOUNT() bfin_read16(USB_EP_NI6_RXCOUNT)
459 #define bfin_write_USB_EP_NI6_RXCOUNT(val) bfin_write16(USB_EP_NI6_RXCOUNT, val)
460 #define bfin_read_USB_EP_NI6_TXTYPE() bfin_read16(USB_EP_NI6_TXTYPE)
461 #define bfin_write_USB_EP_NI6_TXTYPE(val) bfin_write16(USB_EP_NI6_TXTYPE, val)
462 #define bfin_read_USB_EP_NI6_TXINTERVAL() bfin_read16(USB_EP_NI6_TXINTERVAL)
463 #define bfin_write_USB_EP_NI6_TXINTERVAL(val) bfin_write16(USB_EP_NI6_TXINTERVAL, val)
464 #define bfin_read_USB_EP_NI6_RXTYPE() bfin_read16(USB_EP_NI6_RXTYPE)
465 #define bfin_write_USB_EP_NI6_RXTYPE(val) bfin_write16(USB_EP_NI6_RXTYPE, val)
466 #define bfin_read_USB_EP_NI6_RXINTERVAL() bfin_read16(USB_EP_NI6_RXINTERVAL)
467 #define bfin_write_USB_EP_NI6_RXINTERVAL(val) bfin_write16(USB_EP_NI6_RXINTERVAL, val)
468 #define bfin_read_USB_EP_NI6_TXCOUNT() bfin_read16(USB_EP_NI6_TXCOUNT)
469 #define bfin_write_USB_EP_NI6_TXCOUNT(val) bfin_write16(USB_EP_NI6_TXCOUNT, val)
471 /* USB Endpoint 7 Control Registers */
473 #define bfin_read_USB_EP_NI7_TXMAXP() bfin_read16(USB_EP_NI7_TXMAXP)
474 #define bfin_write_USB_EP_NI7_TXMAXP(val) bfin_write16(USB_EP_NI7_TXMAXP, val)
475 #define bfin_read_USB_EP_NI7_TXCSR() bfin_read16(USB_EP_NI7_TXCSR)
476 #define bfin_write_USB_EP_NI7_TXCSR(val) bfin_write16(USB_EP_NI7_TXCSR, val)
477 #define bfin_read_USB_EP_NI7_RXMAXP() bfin_read16(USB_EP_NI7_RXMAXP)
478 #define bfin_write_USB_EP_NI7_RXMAXP(val) bfin_write16(USB_EP_NI7_RXMAXP, val)
479 #define bfin_read_USB_EP_NI7_RXCSR() bfin_read16(USB_EP_NI7_RXCSR)
480 #define bfin_write_USB_EP_NI7_RXCSR(val) bfin_write16(USB_EP_NI7_RXCSR, val)
481 #define bfin_read_USB_EP_NI7_RXCOUNT() bfin_read16(USB_EP_NI7_RXCOUNT)
482 #define bfin_write_USB_EP_NI7_RXCOUNT(val) bfin_write16(USB_EP_NI7_RXCOUNT, val)
483 #define bfin_read_USB_EP_NI7_TXTYPE() bfin_read16(USB_EP_NI7_TXTYPE)
484 #define bfin_write_USB_EP_NI7_TXTYPE(val) bfin_write16(USB_EP_NI7_TXTYPE, val)
485 #define bfin_read_USB_EP_NI7_TXINTERVAL() bfin_read16(USB_EP_NI7_TXINTERVAL)
486 #define bfin_write_USB_EP_NI7_TXINTERVAL(val) bfin_write16(USB_EP_NI7_TXINTERVAL, val)
487 #define bfin_read_USB_EP_NI7_RXTYPE() bfin_read16(USB_EP_NI7_RXTYPE)
488 #define bfin_write_USB_EP_NI7_RXTYPE(val) bfin_write16(USB_EP_NI7_RXTYPE, val)
489 #define bfin_read_USB_EP_NI7_RXINTERVAL() bfin_read16(USB_EP_NI7_RXINTERVAL)
490 #define bfin_write_USB_EP_NI7_RXINTERVAL(val) bfin_write16(USB_EP_NI7_RXINTERVAL, val)
491 #define bfin_read_USB_EP_NI7_TXCOUNT() bfin_read16(USB_EP_NI7_TXCOUNT)
492 #define bfin_write_USB_EP_NI7_TXCOUNT(val) bfin_write16(USB_EP_NI7_TXCOUNT, val)
494 #define bfin_read_USB_DMA_INTERRUPT() bfin_read16(USB_DMA_INTERRUPT)
495 #define bfin_write_USB_DMA_INTERRUPT(val) bfin_write16(USB_DMA_INTERRUPT, val)
497 /* USB Channel 0 Config Registers */
499 #define bfin_read_USB_DMA0CONTROL() bfin_read16(USB_DMA0CONTROL)
500 #define bfin_write_USB_DMA0CONTROL(val) bfin_write16(USB_DMA0CONTROL, val)
501 #define bfin_read_USB_DMA0ADDRLOW() bfin_read16(USB_DMA0ADDRLOW)
502 #define bfin_write_USB_DMA0ADDRLOW(val) bfin_write16(USB_DMA0ADDRLOW, val)
503 #define bfin_read_USB_DMA0ADDRHIGH() bfin_read16(USB_DMA0ADDRHIGH)
504 #define bfin_write_USB_DMA0ADDRHIGH(val) bfin_write16(USB_DMA0ADDRHIGH, val)
505 #define bfin_read_USB_DMA0COUNTLOW() bfin_read16(USB_DMA0COUNTLOW)
506 #define bfin_write_USB_DMA0COUNTLOW(val) bfin_write16(USB_DMA0COUNTLOW, val)
507 #define bfin_read_USB_DMA0COUNTHIGH() bfin_read16(USB_DMA0COUNTHIGH)
508 #define bfin_write_USB_DMA0COUNTHIGH(val) bfin_write16(USB_DMA0COUNTHIGH, val)
510 /* USB Channel 1 Config Registers */
512 #define bfin_read_USB_DMA1CONTROL() bfin_read16(USB_DMA1CONTROL)
513 #define bfin_write_USB_DMA1CONTROL(val) bfin_write16(USB_DMA1CONTROL, val)
514 #define bfin_read_USB_DMA1ADDRLOW() bfin_read16(USB_DMA1ADDRLOW)
515 #define bfin_write_USB_DMA1ADDRLOW(val) bfin_write16(USB_DMA1ADDRLOW, val)
516 #define bfin_read_USB_DMA1ADDRHIGH() bfin_read16(USB_DMA1ADDRHIGH)
517 #define bfin_write_USB_DMA1ADDRHIGH(val) bfin_write16(USB_DMA1ADDRHIGH, val)
518 #define bfin_read_USB_DMA1COUNTLOW() bfin_read16(USB_DMA1COUNTLOW)
519 #define bfin_write_USB_DMA1COUNTLOW(val) bfin_write16(USB_DMA1COUNTLOW, val)
520 #define bfin_read_USB_DMA1COUNTHIGH() bfin_read16(USB_DMA1COUNTHIGH)
521 #define bfin_write_USB_DMA1COUNTHIGH(val) bfin_write16(USB_DMA1COUNTHIGH, val)
523 /* USB Channel 2 Config Registers */
525 #define bfin_read_USB_DMA2CONTROL() bfin_read16(USB_DMA2CONTROL)
526 #define bfin_write_USB_DMA2CONTROL(val) bfin_write16(USB_DMA2CONTROL, val)
527 #define bfin_read_USB_DMA2ADDRLOW() bfin_read16(USB_DMA2ADDRLOW)
528 #define bfin_write_USB_DMA2ADDRLOW(val) bfin_write16(USB_DMA2ADDRLOW, val)
529 #define bfin_read_USB_DMA2ADDRHIGH() bfin_read16(USB_DMA2ADDRHIGH)
530 #define bfin_write_USB_DMA2ADDRHIGH(val) bfin_write16(USB_DMA2ADDRHIGH, val)
531 #define bfin_read_USB_DMA2COUNTLOW() bfin_read16(USB_DMA2COUNTLOW)
532 #define bfin_write_USB_DMA2COUNTLOW(val) bfin_write16(USB_DMA2COUNTLOW, val)
533 #define bfin_read_USB_DMA2COUNTHIGH() bfin_read16(USB_DMA2COUNTHIGH)
534 #define bfin_write_USB_DMA2COUNTHIGH(val) bfin_write16(USB_DMA2COUNTHIGH, val)
536 /* USB Channel 3 Config Registers */
538 #define bfin_read_USB_DMA3CONTROL() bfin_read16(USB_DMA3CONTROL)
539 #define bfin_write_USB_DMA3CONTROL(val) bfin_write16(USB_DMA3CONTROL, val)
540 #define bfin_read_USB_DMA3ADDRLOW() bfin_read16(USB_DMA3ADDRLOW)
541 #define bfin_write_USB_DMA3ADDRLOW(val) bfin_write16(USB_DMA3ADDRLOW, val)
542 #define bfin_read_USB_DMA3ADDRHIGH() bfin_read16(USB_DMA3ADDRHIGH)
543 #define bfin_write_USB_DMA3ADDRHIGH(val) bfin_write16(USB_DMA3ADDRHIGH, val)
544 #define bfin_read_USB_DMA3COUNTLOW() bfin_read16(USB_DMA3COUNTLOW)
545 #define bfin_write_USB_DMA3COUNTLOW(val) bfin_write16(USB_DMA3COUNTLOW, val)
546 #define bfin_read_USB_DMA3COUNTHIGH() bfin_read16(USB_DMA3COUNTHIGH)
547 #define bfin_write_USB_DMA3COUNTHIGH(val) bfin_write16(USB_DMA3COUNTHIGH, val)
549 /* USB Channel 4 Config Registers */
551 #define bfin_read_USB_DMA4CONTROL() bfin_read16(USB_DMA4CONTROL)
552 #define bfin_write_USB_DMA4CONTROL(val) bfin_write16(USB_DMA4CONTROL, val)
553 #define bfin_read_USB_DMA4ADDRLOW() bfin_read16(USB_DMA4ADDRLOW)
554 #define bfin_write_USB_DMA4ADDRLOW(val) bfin_write16(USB_DMA4ADDRLOW, val)
555 #define bfin_read_USB_DMA4ADDRHIGH() bfin_read16(USB_DMA4ADDRHIGH)
556 #define bfin_write_USB_DMA4ADDRHIGH(val) bfin_write16(USB_DMA4ADDRHIGH, val)
557 #define bfin_read_USB_DMA4COUNTLOW() bfin_read16(USB_DMA4COUNTLOW)
558 #define bfin_write_USB_DMA4COUNTLOW(val) bfin_write16(USB_DMA4COUNTLOW, val)
559 #define bfin_read_USB_DMA4COUNTHIGH() bfin_read16(USB_DMA4COUNTHIGH)
560 #define bfin_write_USB_DMA4COUNTHIGH(val) bfin_write16(USB_DMA4COUNTHIGH, val)
562 /* USB Channel 5 Config Registers */
564 #define bfin_read_USB_DMA5CONTROL() bfin_read16(USB_DMA5CONTROL)
565 #define bfin_write_USB_DMA5CONTROL(val) bfin_write16(USB_DMA5CONTROL, val)
566 #define bfin_read_USB_DMA5ADDRLOW() bfin_read16(USB_DMA5ADDRLOW)
567 #define bfin_write_USB_DMA5ADDRLOW(val) bfin_write16(USB_DMA5ADDRLOW, val)
568 #define bfin_read_USB_DMA5ADDRHIGH() bfin_read16(USB_DMA5ADDRHIGH)
569 #define bfin_write_USB_DMA5ADDRHIGH(val) bfin_write16(USB_DMA5ADDRHIGH, val)
570 #define bfin_read_USB_DMA5COUNTLOW() bfin_read16(USB_DMA5COUNTLOW)
571 #define bfin_write_USB_DMA5COUNTLOW(val) bfin_write16(USB_DMA5COUNTLOW, val)
572 #define bfin_read_USB_DMA5COUNTHIGH() bfin_read16(USB_DMA5COUNTHIGH)
573 #define bfin_write_USB_DMA5COUNTHIGH(val) bfin_write16(USB_DMA5COUNTHIGH, val)
575 /* USB Channel 6 Config Registers */
577 #define bfin_read_USB_DMA6CONTROL() bfin_read16(USB_DMA6CONTROL)
578 #define bfin_write_USB_DMA6CONTROL(val) bfin_write16(USB_DMA6CONTROL, val)
579 #define bfin_read_USB_DMA6ADDRLOW() bfin_read16(USB_DMA6ADDRLOW)
580 #define bfin_write_USB_DMA6ADDRLOW(val) bfin_write16(USB_DMA6ADDRLOW, val)
581 #define bfin_read_USB_DMA6ADDRHIGH() bfin_read16(USB_DMA6ADDRHIGH)
582 #define bfin_write_USB_DMA6ADDRHIGH(val) bfin_write16(USB_DMA6ADDRHIGH, val)
583 #define bfin_read_USB_DMA6COUNTLOW() bfin_read16(USB_DMA6COUNTLOW)
584 #define bfin_write_USB_DMA6COUNTLOW(val) bfin_write16(USB_DMA6COUNTLOW, val)
585 #define bfin_read_USB_DMA6COUNTHIGH() bfin_read16(USB_DMA6COUNTHIGH)
586 #define bfin_write_USB_DMA6COUNTHIGH(val) bfin_write16(USB_DMA6COUNTHIGH, val)
588 /* USB Channel 7 Config Registers */
590 #define bfin_read_USB_DMA7CONTROL() bfin_read16(USB_DMA7CONTROL)
591 #define bfin_write_USB_DMA7CONTROL(val) bfin_write16(USB_DMA7CONTROL, val)
592 #define bfin_read_USB_DMA7ADDRLOW() bfin_read16(USB_DMA7ADDRLOW)
593 #define bfin_write_USB_DMA7ADDRLOW(val) bfin_write16(USB_DMA7ADDRLOW, val)
594 #define bfin_read_USB_DMA7ADDRHIGH() bfin_read16(USB_DMA7ADDRHIGH)
595 #define bfin_write_USB_DMA7ADDRHIGH(val) bfin_write16(USB_DMA7ADDRHIGH, val)
596 #define bfin_read_USB_DMA7COUNTLOW() bfin_read16(USB_DMA7COUNTLOW)
597 #define bfin_write_USB_DMA7COUNTLOW(val) bfin_write16(USB_DMA7COUNTLOW, val)
598 #define bfin_read_USB_DMA7COUNTHIGH() bfin_read16(USB_DMA7COUNTHIGH)
599 #define bfin_write_USB_DMA7COUNTHIGH(val) bfin_write16(USB_DMA7COUNTHIGH, val)
601 #endif /* _CDEF_BF527_H */