blob: 93e1d5a7af8f1559c68c75222fece391fd8b920a [file] [log] [blame]
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001/* DO NOT EDIT THIS FILE
2 * Automatically generated by generate-cdef-headers.xsl
3 * DO NOT EDIT THIS FILE
4 */
5
6#ifndef __BFIN_CDEF_ADSP_BF524_proc__
7#define __BFIN_CDEF_ADSP_BF524_proc__
8
9#include "../mach-common/ADSP-EDN-core_cdef.h"
10
11#include "ADSP-EDN-BF52x-extended_cdef.h"
12
Mike Frysinger66c4cf42008-02-04 19:26:55 -050013#define bfin_read_PLL_CTL() bfin_read16(PLL_CTL)
14#define bfin_write_PLL_CTL(val) bfin_write16(PLL_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050015#define bfin_read_PLL_DIV() bfin_read16(PLL_DIV)
16#define bfin_write_PLL_DIV(val) bfin_write16(PLL_DIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050017#define bfin_read_VR_CTL() bfin_read16(VR_CTL)
18#define bfin_write_VR_CTL(val) bfin_write16(VR_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050019#define bfin_read_PLL_STAT() bfin_read16(PLL_STAT)
20#define bfin_write_PLL_STAT(val) bfin_write16(PLL_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050021#define bfin_read_PLL_LOCKCNT() bfin_read16(PLL_LOCKCNT)
22#define bfin_write_PLL_LOCKCNT(val) bfin_write16(PLL_LOCKCNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050023#define bfin_read_CHIPID() bfin_read32(CHIPID)
24#define bfin_write_CHIPID(val) bfin_write32(CHIPID, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050025#define bfin_read_SWRST() bfin_read16(SWRST)
26#define bfin_write_SWRST(val) bfin_write16(SWRST, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050027#define bfin_read_SYSCR() bfin_read16(SYSCR)
28#define bfin_write_SYSCR(val) bfin_write16(SYSCR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050029#define bfin_read_SRAM_BASE_ADDR() bfin_readPTR(SRAM_BASE_ADDR)
30#define bfin_write_SRAM_BASE_ADDR(val) bfin_writePTR(SRAM_BASE_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050031#define bfin_read_DMEM_CONTROL() bfin_read32(DMEM_CONTROL)
32#define bfin_write_DMEM_CONTROL(val) bfin_write32(DMEM_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050033#define bfin_read_DCPLB_STATUS() bfin_read32(DCPLB_STATUS)
34#define bfin_write_DCPLB_STATUS(val) bfin_write32(DCPLB_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050035#define bfin_read_DCPLB_FAULT_ADDR() bfin_readPTR(DCPLB_FAULT_ADDR)
36#define bfin_write_DCPLB_FAULT_ADDR(val) bfin_writePTR(DCPLB_FAULT_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050037#define bfin_read_DCPLB_ADDR0() bfin_readPTR(DCPLB_ADDR0)
38#define bfin_write_DCPLB_ADDR0(val) bfin_writePTR(DCPLB_ADDR0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050039#define bfin_read_DCPLB_ADDR1() bfin_readPTR(DCPLB_ADDR1)
40#define bfin_write_DCPLB_ADDR1(val) bfin_writePTR(DCPLB_ADDR1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050041#define bfin_read_DCPLB_ADDR2() bfin_readPTR(DCPLB_ADDR2)
42#define bfin_write_DCPLB_ADDR2(val) bfin_writePTR(DCPLB_ADDR2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050043#define bfin_read_DCPLB_ADDR3() bfin_readPTR(DCPLB_ADDR3)
44#define bfin_write_DCPLB_ADDR3(val) bfin_writePTR(DCPLB_ADDR3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050045#define bfin_read_DCPLB_ADDR4() bfin_readPTR(DCPLB_ADDR4)
46#define bfin_write_DCPLB_ADDR4(val) bfin_writePTR(DCPLB_ADDR4, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050047#define bfin_read_DCPLB_ADDR5() bfin_readPTR(DCPLB_ADDR5)
48#define bfin_write_DCPLB_ADDR5(val) bfin_writePTR(DCPLB_ADDR5, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050049#define bfin_read_DCPLB_ADDR6() bfin_readPTR(DCPLB_ADDR6)
50#define bfin_write_DCPLB_ADDR6(val) bfin_writePTR(DCPLB_ADDR6, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050051#define bfin_read_DCPLB_ADDR7() bfin_readPTR(DCPLB_ADDR7)
52#define bfin_write_DCPLB_ADDR7(val) bfin_writePTR(DCPLB_ADDR7, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050053#define bfin_read_DCPLB_ADDR8() bfin_readPTR(DCPLB_ADDR8)
54#define bfin_write_DCPLB_ADDR8(val) bfin_writePTR(DCPLB_ADDR8, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050055#define bfin_read_DCPLB_ADDR9() bfin_readPTR(DCPLB_ADDR9)
56#define bfin_write_DCPLB_ADDR9(val) bfin_writePTR(DCPLB_ADDR9, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050057#define bfin_read_DCPLB_ADDR10() bfin_readPTR(DCPLB_ADDR10)
58#define bfin_write_DCPLB_ADDR10(val) bfin_writePTR(DCPLB_ADDR10, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050059#define bfin_read_DCPLB_ADDR11() bfin_readPTR(DCPLB_ADDR11)
60#define bfin_write_DCPLB_ADDR11(val) bfin_writePTR(DCPLB_ADDR11, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050061#define bfin_read_DCPLB_ADDR12() bfin_readPTR(DCPLB_ADDR12)
62#define bfin_write_DCPLB_ADDR12(val) bfin_writePTR(DCPLB_ADDR12, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050063#define bfin_read_DCPLB_ADDR13() bfin_readPTR(DCPLB_ADDR13)
64#define bfin_write_DCPLB_ADDR13(val) bfin_writePTR(DCPLB_ADDR13, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050065#define bfin_read_DCPLB_ADDR14() bfin_readPTR(DCPLB_ADDR14)
66#define bfin_write_DCPLB_ADDR14(val) bfin_writePTR(DCPLB_ADDR14, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050067#define bfin_read_DCPLB_ADDR15() bfin_readPTR(DCPLB_ADDR15)
68#define bfin_write_DCPLB_ADDR15(val) bfin_writePTR(DCPLB_ADDR15, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050069#define bfin_read_DCPLB_DATA0() bfin_read32(DCPLB_DATA0)
70#define bfin_write_DCPLB_DATA0(val) bfin_write32(DCPLB_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050071#define bfin_read_DCPLB_DATA1() bfin_read32(DCPLB_DATA1)
72#define bfin_write_DCPLB_DATA1(val) bfin_write32(DCPLB_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050073#define bfin_read_DCPLB_DATA2() bfin_read32(DCPLB_DATA2)
74#define bfin_write_DCPLB_DATA2(val) bfin_write32(DCPLB_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050075#define bfin_read_DCPLB_DATA3() bfin_read32(DCPLB_DATA3)
76#define bfin_write_DCPLB_DATA3(val) bfin_write32(DCPLB_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050077#define bfin_read_DCPLB_DATA4() bfin_read32(DCPLB_DATA4)
78#define bfin_write_DCPLB_DATA4(val) bfin_write32(DCPLB_DATA4, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050079#define bfin_read_DCPLB_DATA5() bfin_read32(DCPLB_DATA5)
80#define bfin_write_DCPLB_DATA5(val) bfin_write32(DCPLB_DATA5, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050081#define bfin_read_DCPLB_DATA6() bfin_read32(DCPLB_DATA6)
82#define bfin_write_DCPLB_DATA6(val) bfin_write32(DCPLB_DATA6, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050083#define bfin_read_DCPLB_DATA7() bfin_read32(DCPLB_DATA7)
84#define bfin_write_DCPLB_DATA7(val) bfin_write32(DCPLB_DATA7, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050085#define bfin_read_DCPLB_DATA8() bfin_read32(DCPLB_DATA8)
86#define bfin_write_DCPLB_DATA8(val) bfin_write32(DCPLB_DATA8, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050087#define bfin_read_DCPLB_DATA9() bfin_read32(DCPLB_DATA9)
88#define bfin_write_DCPLB_DATA9(val) bfin_write32(DCPLB_DATA9, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050089#define bfin_read_DCPLB_DATA10() bfin_read32(DCPLB_DATA10)
90#define bfin_write_DCPLB_DATA10(val) bfin_write32(DCPLB_DATA10, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050091#define bfin_read_DCPLB_DATA11() bfin_read32(DCPLB_DATA11)
92#define bfin_write_DCPLB_DATA11(val) bfin_write32(DCPLB_DATA11, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050093#define bfin_read_DCPLB_DATA12() bfin_read32(DCPLB_DATA12)
94#define bfin_write_DCPLB_DATA12(val) bfin_write32(DCPLB_DATA12, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050095#define bfin_read_DCPLB_DATA13() bfin_read32(DCPLB_DATA13)
96#define bfin_write_DCPLB_DATA13(val) bfin_write32(DCPLB_DATA13, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050097#define bfin_read_DCPLB_DATA14() bfin_read32(DCPLB_DATA14)
98#define bfin_write_DCPLB_DATA14(val) bfin_write32(DCPLB_DATA14, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050099#define bfin_read_DCPLB_DATA15() bfin_read32(DCPLB_DATA15)
100#define bfin_write_DCPLB_DATA15(val) bfin_write32(DCPLB_DATA15, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500101#define bfin_read_DTEST_COMMAND() bfin_read32(DTEST_COMMAND)
102#define bfin_write_DTEST_COMMAND(val) bfin_write32(DTEST_COMMAND, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500103#define bfin_read_DTEST_DATA0() bfin_read32(DTEST_DATA0)
104#define bfin_write_DTEST_DATA0(val) bfin_write32(DTEST_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500105#define bfin_read_DTEST_DATA1() bfin_read32(DTEST_DATA1)
106#define bfin_write_DTEST_DATA1(val) bfin_write32(DTEST_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500107#define bfin_read_IMEM_CONTROL() bfin_read32(IMEM_CONTROL)
108#define bfin_write_IMEM_CONTROL(val) bfin_write32(IMEM_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500109#define bfin_read_ICPLB_STATUS() bfin_read32(ICPLB_STATUS)
110#define bfin_write_ICPLB_STATUS(val) bfin_write32(ICPLB_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500111#define bfin_read_ICPLB_FAULT_ADDR() bfin_readPTR(ICPLB_FAULT_ADDR)
112#define bfin_write_ICPLB_FAULT_ADDR(val) bfin_writePTR(ICPLB_FAULT_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500113#define bfin_read_ICPLB_ADDR0() bfin_readPTR(ICPLB_ADDR0)
114#define bfin_write_ICPLB_ADDR0(val) bfin_writePTR(ICPLB_ADDR0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500115#define bfin_read_ICPLB_ADDR1() bfin_readPTR(ICPLB_ADDR1)
116#define bfin_write_ICPLB_ADDR1(val) bfin_writePTR(ICPLB_ADDR1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500117#define bfin_read_ICPLB_ADDR2() bfin_readPTR(ICPLB_ADDR2)
118#define bfin_write_ICPLB_ADDR2(val) bfin_writePTR(ICPLB_ADDR2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500119#define bfin_read_ICPLB_ADDR3() bfin_readPTR(ICPLB_ADDR3)
120#define bfin_write_ICPLB_ADDR3(val) bfin_writePTR(ICPLB_ADDR3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500121#define bfin_read_ICPLB_ADDR4() bfin_readPTR(ICPLB_ADDR4)
122#define bfin_write_ICPLB_ADDR4(val) bfin_writePTR(ICPLB_ADDR4, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500123#define bfin_read_ICPLB_ADDR5() bfin_readPTR(ICPLB_ADDR5)
124#define bfin_write_ICPLB_ADDR5(val) bfin_writePTR(ICPLB_ADDR5, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500125#define bfin_read_ICPLB_ADDR6() bfin_readPTR(ICPLB_ADDR6)
126#define bfin_write_ICPLB_ADDR6(val) bfin_writePTR(ICPLB_ADDR6, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500127#define bfin_read_ICPLB_ADDR7() bfin_readPTR(ICPLB_ADDR7)
128#define bfin_write_ICPLB_ADDR7(val) bfin_writePTR(ICPLB_ADDR7, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500129#define bfin_read_ICPLB_ADDR8() bfin_readPTR(ICPLB_ADDR8)
130#define bfin_write_ICPLB_ADDR8(val) bfin_writePTR(ICPLB_ADDR8, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500131#define bfin_read_ICPLB_ADDR9() bfin_readPTR(ICPLB_ADDR9)
132#define bfin_write_ICPLB_ADDR9(val) bfin_writePTR(ICPLB_ADDR9, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500133#define bfin_read_ICPLB_ADDR10() bfin_readPTR(ICPLB_ADDR10)
134#define bfin_write_ICPLB_ADDR10(val) bfin_writePTR(ICPLB_ADDR10, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500135#define bfin_read_ICPLB_ADDR11() bfin_readPTR(ICPLB_ADDR11)
136#define bfin_write_ICPLB_ADDR11(val) bfin_writePTR(ICPLB_ADDR11, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500137#define bfin_read_ICPLB_ADDR12() bfin_readPTR(ICPLB_ADDR12)
138#define bfin_write_ICPLB_ADDR12(val) bfin_writePTR(ICPLB_ADDR12, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500139#define bfin_read_ICPLB_ADDR13() bfin_readPTR(ICPLB_ADDR13)
140#define bfin_write_ICPLB_ADDR13(val) bfin_writePTR(ICPLB_ADDR13, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500141#define bfin_read_ICPLB_ADDR14() bfin_readPTR(ICPLB_ADDR14)
142#define bfin_write_ICPLB_ADDR14(val) bfin_writePTR(ICPLB_ADDR14, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500143#define bfin_read_ICPLB_ADDR15() bfin_readPTR(ICPLB_ADDR15)
144#define bfin_write_ICPLB_ADDR15(val) bfin_writePTR(ICPLB_ADDR15, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500145#define bfin_read_ICPLB_DATA0() bfin_read32(ICPLB_DATA0)
146#define bfin_write_ICPLB_DATA0(val) bfin_write32(ICPLB_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500147#define bfin_read_ICPLB_DATA1() bfin_read32(ICPLB_DATA1)
148#define bfin_write_ICPLB_DATA1(val) bfin_write32(ICPLB_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500149#define bfin_read_ICPLB_DATA2() bfin_read32(ICPLB_DATA2)
150#define bfin_write_ICPLB_DATA2(val) bfin_write32(ICPLB_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500151#define bfin_read_ICPLB_DATA3() bfin_read32(ICPLB_DATA3)
152#define bfin_write_ICPLB_DATA3(val) bfin_write32(ICPLB_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500153#define bfin_read_ICPLB_DATA4() bfin_read32(ICPLB_DATA4)
154#define bfin_write_ICPLB_DATA4(val) bfin_write32(ICPLB_DATA4, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500155#define bfin_read_ICPLB_DATA5() bfin_read32(ICPLB_DATA5)
156#define bfin_write_ICPLB_DATA5(val) bfin_write32(ICPLB_DATA5, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500157#define bfin_read_ICPLB_DATA6() bfin_read32(ICPLB_DATA6)
158#define bfin_write_ICPLB_DATA6(val) bfin_write32(ICPLB_DATA6, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500159#define bfin_read_ICPLB_DATA7() bfin_read32(ICPLB_DATA7)
160#define bfin_write_ICPLB_DATA7(val) bfin_write32(ICPLB_DATA7, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500161#define bfin_read_ICPLB_DATA8() bfin_read32(ICPLB_DATA8)
162#define bfin_write_ICPLB_DATA8(val) bfin_write32(ICPLB_DATA8, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500163#define bfin_read_ICPLB_DATA9() bfin_read32(ICPLB_DATA9)
164#define bfin_write_ICPLB_DATA9(val) bfin_write32(ICPLB_DATA9, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500165#define bfin_read_ICPLB_DATA10() bfin_read32(ICPLB_DATA10)
166#define bfin_write_ICPLB_DATA10(val) bfin_write32(ICPLB_DATA10, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500167#define bfin_read_ICPLB_DATA11() bfin_read32(ICPLB_DATA11)
168#define bfin_write_ICPLB_DATA11(val) bfin_write32(ICPLB_DATA11, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500169#define bfin_read_ICPLB_DATA12() bfin_read32(ICPLB_DATA12)
170#define bfin_write_ICPLB_DATA12(val) bfin_write32(ICPLB_DATA12, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500171#define bfin_read_ICPLB_DATA13() bfin_read32(ICPLB_DATA13)
172#define bfin_write_ICPLB_DATA13(val) bfin_write32(ICPLB_DATA13, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500173#define bfin_read_ICPLB_DATA14() bfin_read32(ICPLB_DATA14)
174#define bfin_write_ICPLB_DATA14(val) bfin_write32(ICPLB_DATA14, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500175#define bfin_read_ICPLB_DATA15() bfin_read32(ICPLB_DATA15)
176#define bfin_write_ICPLB_DATA15(val) bfin_write32(ICPLB_DATA15, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500177#define bfin_read_ITEST_COMMAND() bfin_read32(ITEST_COMMAND)
178#define bfin_write_ITEST_COMMAND(val) bfin_write32(ITEST_COMMAND, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500179#define bfin_read_ITEST_DATA0() bfin_read32(ITEST_DATA0)
180#define bfin_write_ITEST_DATA0(val) bfin_write32(ITEST_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500181#define bfin_read_ITEST_DATA1() bfin_read32(ITEST_DATA1)
182#define bfin_write_ITEST_DATA1(val) bfin_write32(ITEST_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500183#define bfin_read_EVT0() bfin_readPTR(EVT0)
184#define bfin_write_EVT0(val) bfin_writePTR(EVT0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500185#define bfin_read_EVT1() bfin_readPTR(EVT1)
186#define bfin_write_EVT1(val) bfin_writePTR(EVT1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500187#define bfin_read_EVT2() bfin_readPTR(EVT2)
188#define bfin_write_EVT2(val) bfin_writePTR(EVT2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500189#define bfin_read_EVT3() bfin_readPTR(EVT3)
190#define bfin_write_EVT3(val) bfin_writePTR(EVT3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500191#define bfin_read_EVT4() bfin_readPTR(EVT4)
192#define bfin_write_EVT4(val) bfin_writePTR(EVT4, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500193#define bfin_read_EVT5() bfin_readPTR(EVT5)
194#define bfin_write_EVT5(val) bfin_writePTR(EVT5, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500195#define bfin_read_EVT6() bfin_readPTR(EVT6)
196#define bfin_write_EVT6(val) bfin_writePTR(EVT6, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500197#define bfin_read_EVT7() bfin_readPTR(EVT7)
198#define bfin_write_EVT7(val) bfin_writePTR(EVT7, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500199#define bfin_read_EVT8() bfin_readPTR(EVT8)
200#define bfin_write_EVT8(val) bfin_writePTR(EVT8, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500201#define bfin_read_EVT9() bfin_readPTR(EVT9)
202#define bfin_write_EVT9(val) bfin_writePTR(EVT9, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500203#define bfin_read_EVT10() bfin_readPTR(EVT10)
204#define bfin_write_EVT10(val) bfin_writePTR(EVT10, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500205#define bfin_read_EVT11() bfin_readPTR(EVT11)
206#define bfin_write_EVT11(val) bfin_writePTR(EVT11, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500207#define bfin_read_EVT12() bfin_readPTR(EVT12)
208#define bfin_write_EVT12(val) bfin_writePTR(EVT12, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500209#define bfin_read_EVT13() bfin_readPTR(EVT13)
210#define bfin_write_EVT13(val) bfin_writePTR(EVT13, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500211#define bfin_read_EVT14() bfin_readPTR(EVT14)
212#define bfin_write_EVT14(val) bfin_writePTR(EVT14, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500213#define bfin_read_EVT15() bfin_readPTR(EVT15)
214#define bfin_write_EVT15(val) bfin_writePTR(EVT15, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500215#define bfin_read_ILAT() bfin_read32(ILAT)
216#define bfin_write_ILAT(val) bfin_write32(ILAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500217#define bfin_read_IMASK() bfin_read32(IMASK)
218#define bfin_write_IMASK(val) bfin_write32(IMASK, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500219#define bfin_read_IPEND() bfin_read32(IPEND)
220#define bfin_write_IPEND(val) bfin_write32(IPEND, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500221#define bfin_read_IPRIO() bfin_read32(IPRIO)
222#define bfin_write_IPRIO(val) bfin_write32(IPRIO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500223#define bfin_read_TCNTL() bfin_read32(TCNTL)
224#define bfin_write_TCNTL(val) bfin_write32(TCNTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500225#define bfin_read_TPERIOD() bfin_read32(TPERIOD)
226#define bfin_write_TPERIOD(val) bfin_write32(TPERIOD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500227#define bfin_read_TSCALE() bfin_read32(TSCALE)
228#define bfin_write_TSCALE(val) bfin_write32(TSCALE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500229#define bfin_read_TCOUNT() bfin_read32(TCOUNT)
230#define bfin_write_TCOUNT(val) bfin_write32(TCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500231#define bfin_read_USB_FADDR() bfin_read16(USB_FADDR)
232#define bfin_write_USB_FADDR(val) bfin_write16(USB_FADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500233#define bfin_read_USB_POWER() bfin_read16(USB_POWER)
234#define bfin_write_USB_POWER(val) bfin_write16(USB_POWER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500235#define bfin_read_USB_INTRTX() bfin_read16(USB_INTRTX)
236#define bfin_write_USB_INTRTX(val) bfin_write16(USB_INTRTX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500237#define bfin_read_USB_INTRRX() bfin_read16(USB_INTRRX)
238#define bfin_write_USB_INTRRX(val) bfin_write16(USB_INTRRX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500239#define bfin_read_USB_INTRTXE() bfin_read16(USB_INTRTXE)
240#define bfin_write_USB_INTRTXE(val) bfin_write16(USB_INTRTXE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500241#define bfin_read_USB_INTRRXE() bfin_read16(USB_INTRRXE)
242#define bfin_write_USB_INTRRXE(val) bfin_write16(USB_INTRRXE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500243#define bfin_read_USB_INTRUSB() bfin_read16(USB_INTRUSB)
244#define bfin_write_USB_INTRUSB(val) bfin_write16(USB_INTRUSB, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500245#define bfin_read_USB_INTRUSBE() bfin_read16(USB_INTRUSBE)
246#define bfin_write_USB_INTRUSBE(val) bfin_write16(USB_INTRUSBE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500247#define bfin_read_USB_FRAME() bfin_read16(USB_FRAME)
248#define bfin_write_USB_FRAME(val) bfin_write16(USB_FRAME, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500249#define bfin_read_USB_INDEX() bfin_read16(USB_INDEX)
250#define bfin_write_USB_INDEX(val) bfin_write16(USB_INDEX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500251#define bfin_read_USB_TESTMODE() bfin_read16(USB_TESTMODE)
252#define bfin_write_USB_TESTMODE(val) bfin_write16(USB_TESTMODE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500253#define bfin_read_USB_GLOBINTR() bfin_read16(USB_GLOBINTR)
254#define bfin_write_USB_GLOBINTR(val) bfin_write16(USB_GLOBINTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500255#define bfin_read_USB_GLOBAL_CTL() bfin_read16(USB_GLOBAL_CTL)
256#define bfin_write_USB_GLOBAL_CTL(val) bfin_write16(USB_GLOBAL_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500257#define bfin_read_USB_TX_MAX_PACKET() bfin_read16(USB_TX_MAX_PACKET)
258#define bfin_write_USB_TX_MAX_PACKET(val) bfin_write16(USB_TX_MAX_PACKET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500259#define bfin_read_USB_CSR0() bfin_read16(USB_CSR0)
260#define bfin_write_USB_CSR0(val) bfin_write16(USB_CSR0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500261#define bfin_read_USB_TXCSR() bfin_read16(USB_TXCSR)
262#define bfin_write_USB_TXCSR(val) bfin_write16(USB_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500263#define bfin_read_USB_RX_MAX_PACKET() bfin_read16(USB_RX_MAX_PACKET)
264#define bfin_write_USB_RX_MAX_PACKET(val) bfin_write16(USB_RX_MAX_PACKET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500265#define bfin_read_USB_RXCSR() bfin_read16(USB_RXCSR)
266#define bfin_write_USB_RXCSR(val) bfin_write16(USB_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500267#define bfin_read_USB_COUNT0() bfin_read16(USB_COUNT0)
268#define bfin_write_USB_COUNT0(val) bfin_write16(USB_COUNT0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500269#define bfin_read_USB_RXCOUNT() bfin_read16(USB_RXCOUNT)
270#define bfin_write_USB_RXCOUNT(val) bfin_write16(USB_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500271#define bfin_read_USB_TXTYPE() bfin_read16(USB_TXTYPE)
272#define bfin_write_USB_TXTYPE(val) bfin_write16(USB_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500273#define bfin_read_USB_NAKLIMIT0() bfin_read16(USB_NAKLIMIT0)
274#define bfin_write_USB_NAKLIMIT0(val) bfin_write16(USB_NAKLIMIT0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500275#define bfin_read_USB_TXINTERVAL() bfin_read16(USB_TXINTERVAL)
276#define bfin_write_USB_TXINTERVAL(val) bfin_write16(USB_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500277#define bfin_read_USB_RXTYPE() bfin_read16(USB_RXTYPE)
278#define bfin_write_USB_RXTYPE(val) bfin_write16(USB_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500279#define bfin_read_USB_RXINTERVAL() bfin_read16(USB_RXINTERVAL)
280#define bfin_write_USB_RXINTERVAL(val) bfin_write16(USB_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500281#define bfin_read_USB_TXCOUNT() bfin_read16(USB_TXCOUNT)
282#define bfin_write_USB_TXCOUNT(val) bfin_write16(USB_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500283#define bfin_read_USB_EP0_FIFO() bfin_read16(USB_EP0_FIFO)
284#define bfin_write_USB_EP0_FIFO(val) bfin_write16(USB_EP0_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500285#define bfin_read_USB_EP1_FIFO() bfin_read16(USB_EP1_FIFO)
286#define bfin_write_USB_EP1_FIFO(val) bfin_write16(USB_EP1_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500287#define bfin_read_USB_EP2_FIFO() bfin_read16(USB_EP2_FIFO)
288#define bfin_write_USB_EP2_FIFO(val) bfin_write16(USB_EP2_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500289#define bfin_read_USB_EP3_FIFO() bfin_read16(USB_EP3_FIFO)
290#define bfin_write_USB_EP3_FIFO(val) bfin_write16(USB_EP3_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500291#define bfin_read_USB_EP4_FIFO() bfin_read16(USB_EP4_FIFO)
292#define bfin_write_USB_EP4_FIFO(val) bfin_write16(USB_EP4_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500293#define bfin_read_USB_EP5_FIFO() bfin_read16(USB_EP5_FIFO)
294#define bfin_write_USB_EP5_FIFO(val) bfin_write16(USB_EP5_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500295#define bfin_read_USB_EP6_FIFO() bfin_read16(USB_EP6_FIFO)
296#define bfin_write_USB_EP6_FIFO(val) bfin_write16(USB_EP6_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500297#define bfin_read_USB_EP7_FIFO() bfin_read16(USB_EP7_FIFO)
298#define bfin_write_USB_EP7_FIFO(val) bfin_write16(USB_EP7_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500299#define bfin_read_USB_OTG_DEV_CTL() bfin_read16(USB_OTG_DEV_CTL)
300#define bfin_write_USB_OTG_DEV_CTL(val) bfin_write16(USB_OTG_DEV_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500301#define bfin_read_USB_OTG_VBUS_IRQ() bfin_read16(USB_OTG_VBUS_IRQ)
302#define bfin_write_USB_OTG_VBUS_IRQ(val) bfin_write16(USB_OTG_VBUS_IRQ, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500303#define bfin_read_USB_OTG_VBUS_MASK() bfin_read16(USB_OTG_VBUS_MASK)
304#define bfin_write_USB_OTG_VBUS_MASK(val) bfin_write16(USB_OTG_VBUS_MASK, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500305#define bfin_read_USB_LINKINFO() bfin_read16(USB_LINKINFO)
306#define bfin_write_USB_LINKINFO(val) bfin_write16(USB_LINKINFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500307#define bfin_read_USB_VPLEN() bfin_read16(USB_VPLEN)
308#define bfin_write_USB_VPLEN(val) bfin_write16(USB_VPLEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500309#define bfin_read_USB_HS_EOF1() bfin_read16(USB_HS_EOF1)
310#define bfin_write_USB_HS_EOF1(val) bfin_write16(USB_HS_EOF1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500311#define bfin_read_USB_FS_EOF1() bfin_read16(USB_FS_EOF1)
312#define bfin_write_USB_FS_EOF1(val) bfin_write16(USB_FS_EOF1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500313#define bfin_read_USB_LS_EOF1() bfin_read16(USB_LS_EOF1)
314#define bfin_write_USB_LS_EOF1(val) bfin_write16(USB_LS_EOF1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500315#define bfin_read_USB_APHY_CNTRL() bfin_read16(USB_APHY_CNTRL)
316#define bfin_write_USB_APHY_CNTRL(val) bfin_write16(USB_APHY_CNTRL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500317#define bfin_read_USB_APHY_CALIB() bfin_read16(USB_APHY_CALIB)
318#define bfin_write_USB_APHY_CALIB(val) bfin_write16(USB_APHY_CALIB, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500319#define bfin_read_USB_APHY_CNTRL2() bfin_read16(USB_APHY_CNTRL2)
320#define bfin_write_USB_APHY_CNTRL2(val) bfin_write16(USB_APHY_CNTRL2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500321#define bfin_read_USB_PHY_TEST() bfin_read16(USB_PHY_TEST)
322#define bfin_write_USB_PHY_TEST(val) bfin_write16(USB_PHY_TEST, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500323#define bfin_read_USB_PLLOSC_CTRL() bfin_read16(USB_PLLOSC_CTRL)
324#define bfin_write_USB_PLLOSC_CTRL(val) bfin_write16(USB_PLLOSC_CTRL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500325#define bfin_read_USB_SRP_CLKDIV() bfin_read16(USB_SRP_CLKDIV)
326#define bfin_write_USB_SRP_CLKDIV(val) bfin_write16(USB_SRP_CLKDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500327#define bfin_read_USB_EP_NI0_TXMAXP() bfin_read16(USB_EP_NI0_TXMAXP)
328#define bfin_write_USB_EP_NI0_TXMAXP(val) bfin_write16(USB_EP_NI0_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500329#define bfin_read_USB_EP_NI0_TXCSR() bfin_read16(USB_EP_NI0_TXCSR)
330#define bfin_write_USB_EP_NI0_TXCSR(val) bfin_write16(USB_EP_NI0_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500331#define bfin_read_USB_EP_NI0_RXMAXP() bfin_read16(USB_EP_NI0_RXMAXP)
332#define bfin_write_USB_EP_NI0_RXMAXP(val) bfin_write16(USB_EP_NI0_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500333#define bfin_read_USB_EP_NI0_RXCSR() bfin_read16(USB_EP_NI0_RXCSR)
334#define bfin_write_USB_EP_NI0_RXCSR(val) bfin_write16(USB_EP_NI0_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500335#define bfin_read_USB_EP_NI0_RXCOUNT() bfin_read16(USB_EP_NI0_RXCOUNT)
336#define bfin_write_USB_EP_NI0_RXCOUNT(val) bfin_write16(USB_EP_NI0_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500337#define bfin_read_USB_EP_NI0_TXTYPE() bfin_read16(USB_EP_NI0_TXTYPE)
338#define bfin_write_USB_EP_NI0_TXTYPE(val) bfin_write16(USB_EP_NI0_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500339#define bfin_read_USB_EP_NI0_TXINTERVAL() bfin_read16(USB_EP_NI0_TXINTERVAL)
340#define bfin_write_USB_EP_NI0_TXINTERVAL(val) bfin_write16(USB_EP_NI0_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500341#define bfin_read_USB_EP_NI0_RXTYPE() bfin_read16(USB_EP_NI0_RXTYPE)
342#define bfin_write_USB_EP_NI0_RXTYPE(val) bfin_write16(USB_EP_NI0_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500343#define bfin_read_USB_EP_NI0_RXINTERVAL() bfin_read16(USB_EP_NI0_RXINTERVAL)
344#define bfin_write_USB_EP_NI0_RXINTERVAL(val) bfin_write16(USB_EP_NI0_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500345#define bfin_read_USB_EP_NI0_TXCOUNT() bfin_read16(USB_EP_NI0_TXCOUNT)
346#define bfin_write_USB_EP_NI0_TXCOUNT(val) bfin_write16(USB_EP_NI0_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500347#define bfin_read_USB_EP_NI1_TXMAXP() bfin_read16(USB_EP_NI1_TXMAXP)
348#define bfin_write_USB_EP_NI1_TXMAXP(val) bfin_write16(USB_EP_NI1_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500349#define bfin_read_USB_EP_NI1_TXCSR() bfin_read16(USB_EP_NI1_TXCSR)
350#define bfin_write_USB_EP_NI1_TXCSR(val) bfin_write16(USB_EP_NI1_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500351#define bfin_read_USB_EP_NI1_RXMAXP() bfin_read16(USB_EP_NI1_RXMAXP)
352#define bfin_write_USB_EP_NI1_RXMAXP(val) bfin_write16(USB_EP_NI1_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500353#define bfin_read_USB_EP_NI1_RXCSR() bfin_read16(USB_EP_NI1_RXCSR)
354#define bfin_write_USB_EP_NI1_RXCSR(val) bfin_write16(USB_EP_NI1_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500355#define bfin_read_USB_EP_NI1_RXCOUNT() bfin_read16(USB_EP_NI1_RXCOUNT)
356#define bfin_write_USB_EP_NI1_RXCOUNT(val) bfin_write16(USB_EP_NI1_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500357#define bfin_read_USB_EP_NI1_TXTYPE() bfin_read16(USB_EP_NI1_TXTYPE)
358#define bfin_write_USB_EP_NI1_TXTYPE(val) bfin_write16(USB_EP_NI1_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500359#define bfin_read_USB_EP_NI1_TXINTERVAL() bfin_read16(USB_EP_NI1_TXINTERVAL)
360#define bfin_write_USB_EP_NI1_TXINTERVAL(val) bfin_write16(USB_EP_NI1_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500361#define bfin_read_USB_EP_NI1_RXTYPE() bfin_read16(USB_EP_NI1_RXTYPE)
362#define bfin_write_USB_EP_NI1_RXTYPE(val) bfin_write16(USB_EP_NI1_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500363#define bfin_read_USB_EP_NI1_RXINTERVAL() bfin_read16(USB_EP_NI1_RXINTERVAL)
364#define bfin_write_USB_EP_NI1_RXINTERVAL(val) bfin_write16(USB_EP_NI1_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500365#define bfin_read_USB_EP_NI1_TXCOUNT() bfin_read16(USB_EP_NI1_TXCOUNT)
366#define bfin_write_USB_EP_NI1_TXCOUNT(val) bfin_write16(USB_EP_NI1_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500367#define bfin_read_USB_EP_NI2_TXMAXP() bfin_read16(USB_EP_NI2_TXMAXP)
368#define bfin_write_USB_EP_NI2_TXMAXP(val) bfin_write16(USB_EP_NI2_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500369#define bfin_read_USB_EP_NI2_TXCSR() bfin_read16(USB_EP_NI2_TXCSR)
370#define bfin_write_USB_EP_NI2_TXCSR(val) bfin_write16(USB_EP_NI2_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500371#define bfin_read_USB_EP_NI2_RXMAXP() bfin_read16(USB_EP_NI2_RXMAXP)
372#define bfin_write_USB_EP_NI2_RXMAXP(val) bfin_write16(USB_EP_NI2_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500373#define bfin_read_USB_EP_NI2_RXCSR() bfin_read16(USB_EP_NI2_RXCSR)
374#define bfin_write_USB_EP_NI2_RXCSR(val) bfin_write16(USB_EP_NI2_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500375#define bfin_read_USB_EP_NI2_RXCOUNT() bfin_read16(USB_EP_NI2_RXCOUNT)
376#define bfin_write_USB_EP_NI2_RXCOUNT(val) bfin_write16(USB_EP_NI2_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500377#define bfin_read_USB_EP_NI2_TXTYPE() bfin_read16(USB_EP_NI2_TXTYPE)
378#define bfin_write_USB_EP_NI2_TXTYPE(val) bfin_write16(USB_EP_NI2_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500379#define bfin_read_USB_EP_NI2_TXINTERVAL() bfin_read16(USB_EP_NI2_TXINTERVAL)
380#define bfin_write_USB_EP_NI2_TXINTERVAL(val) bfin_write16(USB_EP_NI2_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500381#define bfin_read_USB_EP_NI2_RXTYPE() bfin_read16(USB_EP_NI2_RXTYPE)
382#define bfin_write_USB_EP_NI2_RXTYPE(val) bfin_write16(USB_EP_NI2_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500383#define bfin_read_USB_EP_NI2_RXINTERVAL() bfin_read16(USB_EP_NI2_RXINTERVAL)
384#define bfin_write_USB_EP_NI2_RXINTERVAL(val) bfin_write16(USB_EP_NI2_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500385#define bfin_read_USB_EP_NI2_TXCOUNT() bfin_read16(USB_EP_NI2_TXCOUNT)
386#define bfin_write_USB_EP_NI2_TXCOUNT(val) bfin_write16(USB_EP_NI2_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500387#define bfin_read_USB_EP_NI3_TXMAXP() bfin_read16(USB_EP_NI3_TXMAXP)
388#define bfin_write_USB_EP_NI3_TXMAXP(val) bfin_write16(USB_EP_NI3_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500389#define bfin_read_USB_EP_NI3_TXCSR() bfin_read16(USB_EP_NI3_TXCSR)
390#define bfin_write_USB_EP_NI3_TXCSR(val) bfin_write16(USB_EP_NI3_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500391#define bfin_read_USB_EP_NI3_RXMAXP() bfin_read16(USB_EP_NI3_RXMAXP)
392#define bfin_write_USB_EP_NI3_RXMAXP(val) bfin_write16(USB_EP_NI3_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500393#define bfin_read_USB_EP_NI3_RXCSR() bfin_read16(USB_EP_NI3_RXCSR)
394#define bfin_write_USB_EP_NI3_RXCSR(val) bfin_write16(USB_EP_NI3_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500395#define bfin_read_USB_EP_NI3_RXCOUNT() bfin_read16(USB_EP_NI3_RXCOUNT)
396#define bfin_write_USB_EP_NI3_RXCOUNT(val) bfin_write16(USB_EP_NI3_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500397#define bfin_read_USB_EP_NI3_TXTYPE() bfin_read16(USB_EP_NI3_TXTYPE)
398#define bfin_write_USB_EP_NI3_TXTYPE(val) bfin_write16(USB_EP_NI3_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500399#define bfin_read_USB_EP_NI3_TXINTERVAL() bfin_read16(USB_EP_NI3_TXINTERVAL)
400#define bfin_write_USB_EP_NI3_TXINTERVAL(val) bfin_write16(USB_EP_NI3_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500401#define bfin_read_USB_EP_NI3_RXTYPE() bfin_read16(USB_EP_NI3_RXTYPE)
402#define bfin_write_USB_EP_NI3_RXTYPE(val) bfin_write16(USB_EP_NI3_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500403#define bfin_read_USB_EP_NI3_RXINTERVAL() bfin_read16(USB_EP_NI3_RXINTERVAL)
404#define bfin_write_USB_EP_NI3_RXINTERVAL(val) bfin_write16(USB_EP_NI3_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500405#define bfin_read_USB_EP_NI3_TXCOUNT() bfin_read16(USB_EP_NI3_TXCOUNT)
406#define bfin_write_USB_EP_NI3_TXCOUNT(val) bfin_write16(USB_EP_NI3_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500407#define bfin_read_USB_EP_NI4_TXMAXP() bfin_read16(USB_EP_NI4_TXMAXP)
408#define bfin_write_USB_EP_NI4_TXMAXP(val) bfin_write16(USB_EP_NI4_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500409#define bfin_read_USB_EP_NI4_TXCSR() bfin_read16(USB_EP_NI4_TXCSR)
410#define bfin_write_USB_EP_NI4_TXCSR(val) bfin_write16(USB_EP_NI4_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500411#define bfin_read_USB_EP_NI4_RXMAXP() bfin_read16(USB_EP_NI4_RXMAXP)
412#define bfin_write_USB_EP_NI4_RXMAXP(val) bfin_write16(USB_EP_NI4_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500413#define bfin_read_USB_EP_NI4_RXCSR() bfin_read16(USB_EP_NI4_RXCSR)
414#define bfin_write_USB_EP_NI4_RXCSR(val) bfin_write16(USB_EP_NI4_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500415#define bfin_read_USB_EP_NI4_RXCOUNT() bfin_read16(USB_EP_NI4_RXCOUNT)
416#define bfin_write_USB_EP_NI4_RXCOUNT(val) bfin_write16(USB_EP_NI4_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500417#define bfin_read_USB_EP_NI4_TXTYPE() bfin_read16(USB_EP_NI4_TXTYPE)
418#define bfin_write_USB_EP_NI4_TXTYPE(val) bfin_write16(USB_EP_NI4_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500419#define bfin_read_USB_EP_NI4_TXINTERVAL() bfin_read16(USB_EP_NI4_TXINTERVAL)
420#define bfin_write_USB_EP_NI4_TXINTERVAL(val) bfin_write16(USB_EP_NI4_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500421#define bfin_read_USB_EP_NI4_RXTYPE() bfin_read16(USB_EP_NI4_RXTYPE)
422#define bfin_write_USB_EP_NI4_RXTYPE(val) bfin_write16(USB_EP_NI4_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500423#define bfin_read_USB_EP_NI4_RXINTERVAL() bfin_read16(USB_EP_NI4_RXINTERVAL)
424#define bfin_write_USB_EP_NI4_RXINTERVAL(val) bfin_write16(USB_EP_NI4_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500425#define bfin_read_USB_EP_NI4_TXCOUNT() bfin_read16(USB_EP_NI4_TXCOUNT)
426#define bfin_write_USB_EP_NI4_TXCOUNT(val) bfin_write16(USB_EP_NI4_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500427#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)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500429#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)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500431#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)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500433#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)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500435#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)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500437#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)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500439#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)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500441#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)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500443#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)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500445#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)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500447#define bfin_read_USB_EP_NI6_TXMAXP() bfin_read16(USB_EP_NI6_TXMAXP)
448#define bfin_write_USB_EP_NI6_TXMAXP(val) bfin_write16(USB_EP_NI6_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500449#define bfin_read_USB_EP_NI6_TXCSR() bfin_read16(USB_EP_NI6_TXCSR)
450#define bfin_write_USB_EP_NI6_TXCSR(val) bfin_write16(USB_EP_NI6_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500451#define bfin_read_USB_EP_NI6_RXMAXP() bfin_read16(USB_EP_NI6_RXMAXP)
452#define bfin_write_USB_EP_NI6_RXMAXP(val) bfin_write16(USB_EP_NI6_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500453#define bfin_read_USB_EP_NI6_RXCSR() bfin_read16(USB_EP_NI6_RXCSR)
454#define bfin_write_USB_EP_NI6_RXCSR(val) bfin_write16(USB_EP_NI6_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500455#define bfin_read_USB_EP_NI6_RXCOUNT() bfin_read16(USB_EP_NI6_RXCOUNT)
456#define bfin_write_USB_EP_NI6_RXCOUNT(val) bfin_write16(USB_EP_NI6_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500457#define bfin_read_USB_EP_NI6_TXTYPE() bfin_read16(USB_EP_NI6_TXTYPE)
458#define bfin_write_USB_EP_NI6_TXTYPE(val) bfin_write16(USB_EP_NI6_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500459#define bfin_read_USB_EP_NI6_TXINTERVAL() bfin_read16(USB_EP_NI6_TXINTERVAL)
460#define bfin_write_USB_EP_NI6_TXINTERVAL(val) bfin_write16(USB_EP_NI6_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500461#define bfin_read_USB_EP_NI6_RXTYPE() bfin_read16(USB_EP_NI6_RXTYPE)
462#define bfin_write_USB_EP_NI6_RXTYPE(val) bfin_write16(USB_EP_NI6_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500463#define bfin_read_USB_EP_NI6_RXINTERVAL() bfin_read16(USB_EP_NI6_RXINTERVAL)
464#define bfin_write_USB_EP_NI6_RXINTERVAL(val) bfin_write16(USB_EP_NI6_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500465#define bfin_read_USB_EP_NI6_TXCOUNT() bfin_read16(USB_EP_NI6_TXCOUNT)
466#define bfin_write_USB_EP_NI6_TXCOUNT(val) bfin_write16(USB_EP_NI6_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500467#define bfin_read_USB_EP_NI7_TXMAXP() bfin_read16(USB_EP_NI7_TXMAXP)
468#define bfin_write_USB_EP_NI7_TXMAXP(val) bfin_write16(USB_EP_NI7_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500469#define bfin_read_USB_EP_NI7_TXCSR() bfin_read16(USB_EP_NI7_TXCSR)
470#define bfin_write_USB_EP_NI7_TXCSR(val) bfin_write16(USB_EP_NI7_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500471#define bfin_read_USB_EP_NI7_RXMAXP() bfin_read16(USB_EP_NI7_RXMAXP)
472#define bfin_write_USB_EP_NI7_RXMAXP(val) bfin_write16(USB_EP_NI7_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500473#define bfin_read_USB_EP_NI7_RXCSR() bfin_read16(USB_EP_NI7_RXCSR)
474#define bfin_write_USB_EP_NI7_RXCSR(val) bfin_write16(USB_EP_NI7_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500475#define bfin_read_USB_EP_NI7_RXCOUNT() bfin_read16(USB_EP_NI7_RXCOUNT)
476#define bfin_write_USB_EP_NI7_RXCOUNT(val) bfin_write16(USB_EP_NI7_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500477#define bfin_read_USB_EP_NI7_TXTYPE() bfin_read16(USB_EP_NI7_TXTYPE)
478#define bfin_write_USB_EP_NI7_TXTYPE(val) bfin_write16(USB_EP_NI7_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500479#define bfin_read_USB_EP_NI7_TXINTERVAL() bfin_read16(USB_EP_NI7_TXINTERVAL)
480#define bfin_write_USB_EP_NI7_TXINTERVAL(val) bfin_write16(USB_EP_NI7_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500481#define bfin_read_USB_EP_NI7_RXTYPE() bfin_read16(USB_EP_NI7_RXTYPE)
482#define bfin_write_USB_EP_NI7_RXTYPE(val) bfin_write16(USB_EP_NI7_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500483#define bfin_read_USB_EP_NI7_RXINTERVAL() bfin_read16(USB_EP_NI7_RXINTERVAL)
484#define bfin_write_USB_EP_NI7_RXINTERVAL(val) bfin_write16(USB_EP_NI7_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500485#define bfin_read_USB_EP_NI7_TXCOUNT() bfin_read16(USB_EP_NI7_TXCOUNT)
486#define bfin_write_USB_EP_NI7_TXCOUNT(val) bfin_write16(USB_EP_NI7_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500487#define bfin_read_USB_DMA_INTERRUPT() bfin_read16(USB_DMA_INTERRUPT)
488#define bfin_write_USB_DMA_INTERRUPT(val) bfin_write16(USB_DMA_INTERRUPT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500489#define bfin_read_USB_DMA0_CONTROL() bfin_read16(USB_DMA0_CONTROL)
490#define bfin_write_USB_DMA0_CONTROL(val) bfin_write16(USB_DMA0_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500491#define bfin_read_USB_DMA0_ADDRLOW() bfin_read16(USB_DMA0_ADDRLOW)
492#define bfin_write_USB_DMA0_ADDRLOW(val) bfin_write16(USB_DMA0_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500493#define bfin_read_USB_DMA0_ADDRHIGH() bfin_read16(USB_DMA0_ADDRHIGH)
494#define bfin_write_USB_DMA0_ADDRHIGH(val) bfin_write16(USB_DMA0_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500495#define bfin_read_USB_DMA0_COUNTLOW() bfin_read16(USB_DMA0_COUNTLOW)
496#define bfin_write_USB_DMA0_COUNTLOW(val) bfin_write16(USB_DMA0_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500497#define bfin_read_USB_DMA0_COUNTHIGH() bfin_read16(USB_DMA0_COUNTHIGH)
498#define bfin_write_USB_DMA0_COUNTHIGH(val) bfin_write16(USB_DMA0_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500499#define bfin_read_USB_DMA1_CONTROL() bfin_read16(USB_DMA1_CONTROL)
500#define bfin_write_USB_DMA1_CONTROL(val) bfin_write16(USB_DMA1_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500501#define bfin_read_USB_DMA1_ADDRLOW() bfin_read16(USB_DMA1_ADDRLOW)
502#define bfin_write_USB_DMA1_ADDRLOW(val) bfin_write16(USB_DMA1_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500503#define bfin_read_USB_DMA1_ADDRHIGH() bfin_read16(USB_DMA1_ADDRHIGH)
504#define bfin_write_USB_DMA1_ADDRHIGH(val) bfin_write16(USB_DMA1_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500505#define bfin_read_USB_DMA1_COUNTLOW() bfin_read16(USB_DMA1_COUNTLOW)
506#define bfin_write_USB_DMA1_COUNTLOW(val) bfin_write16(USB_DMA1_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500507#define bfin_read_USB_DMA1_COUNTHIGH() bfin_read16(USB_DMA1_COUNTHIGH)
508#define bfin_write_USB_DMA1_COUNTHIGH(val) bfin_write16(USB_DMA1_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500509#define bfin_read_USB_DMA2_CONTROL() bfin_read16(USB_DMA2_CONTROL)
510#define bfin_write_USB_DMA2_CONTROL(val) bfin_write16(USB_DMA2_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500511#define bfin_read_USB_DMA2_ADDRLOW() bfin_read16(USB_DMA2_ADDRLOW)
512#define bfin_write_USB_DMA2_ADDRLOW(val) bfin_write16(USB_DMA2_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500513#define bfin_read_USB_DMA2_ADDRHIGH() bfin_read16(USB_DMA2_ADDRHIGH)
514#define bfin_write_USB_DMA2_ADDRHIGH(val) bfin_write16(USB_DMA2_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500515#define bfin_read_USB_DMA2_COUNTLOW() bfin_read16(USB_DMA2_COUNTLOW)
516#define bfin_write_USB_DMA2_COUNTLOW(val) bfin_write16(USB_DMA2_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500517#define bfin_read_USB_DMA2_COUNTHIGH() bfin_read16(USB_DMA2_COUNTHIGH)
518#define bfin_write_USB_DMA2_COUNTHIGH(val) bfin_write16(USB_DMA2_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500519#define bfin_read_USB_DMA3_CONTROL() bfin_read16(USB_DMA3_CONTROL)
520#define bfin_write_USB_DMA3_CONTROL(val) bfin_write16(USB_DMA3_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500521#define bfin_read_USB_DMA3_ADDRLOW() bfin_read16(USB_DMA3_ADDRLOW)
522#define bfin_write_USB_DMA3_ADDRLOW(val) bfin_write16(USB_DMA3_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500523#define bfin_read_USB_DMA3_ADDRHIGH() bfin_read16(USB_DMA3_ADDRHIGH)
524#define bfin_write_USB_DMA3_ADDRHIGH(val) bfin_write16(USB_DMA3_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500525#define bfin_read_USB_DMA3_COUNTLOW() bfin_read16(USB_DMA3_COUNTLOW)
526#define bfin_write_USB_DMA3_COUNTLOW(val) bfin_write16(USB_DMA3_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500527#define bfin_read_USB_DMA3_COUNTHIGH() bfin_read16(USB_DMA3_COUNTHIGH)
528#define bfin_write_USB_DMA3_COUNTHIGH(val) bfin_write16(USB_DMA3_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500529#define bfin_read_USB_DMA4_CONTROL() bfin_read16(USB_DMA4_CONTROL)
530#define bfin_write_USB_DMA4_CONTROL(val) bfin_write16(USB_DMA4_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500531#define bfin_read_USB_DMA4_ADDRLOW() bfin_read16(USB_DMA4_ADDRLOW)
532#define bfin_write_USB_DMA4_ADDRLOW(val) bfin_write16(USB_DMA4_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500533#define bfin_read_USB_DMA4_ADDRHIGH() bfin_read16(USB_DMA4_ADDRHIGH)
534#define bfin_write_USB_DMA4_ADDRHIGH(val) bfin_write16(USB_DMA4_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500535#define bfin_read_USB_DMA4_COUNTLOW() bfin_read16(USB_DMA4_COUNTLOW)
536#define bfin_write_USB_DMA4_COUNTLOW(val) bfin_write16(USB_DMA4_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500537#define bfin_read_USB_DMA4_COUNTHIGH() bfin_read16(USB_DMA4_COUNTHIGH)
538#define bfin_write_USB_DMA4_COUNTHIGH(val) bfin_write16(USB_DMA4_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500539#define bfin_read_USB_DMA5_CONTROL() bfin_read16(USB_DMA5_CONTROL)
540#define bfin_write_USB_DMA5_CONTROL(val) bfin_write16(USB_DMA5_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500541#define bfin_read_USB_DMA5_ADDRLOW() bfin_read16(USB_DMA5_ADDRLOW)
542#define bfin_write_USB_DMA5_ADDRLOW(val) bfin_write16(USB_DMA5_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500543#define bfin_read_USB_DMA5_ADDRHIGH() bfin_read16(USB_DMA5_ADDRHIGH)
544#define bfin_write_USB_DMA5_ADDRHIGH(val) bfin_write16(USB_DMA5_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500545#define bfin_read_USB_DMA5_COUNTLOW() bfin_read16(USB_DMA5_COUNTLOW)
546#define bfin_write_USB_DMA5_COUNTLOW(val) bfin_write16(USB_DMA5_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500547#define bfin_read_USB_DMA5_COUNTHIGH() bfin_read16(USB_DMA5_COUNTHIGH)
548#define bfin_write_USB_DMA5_COUNTHIGH(val) bfin_write16(USB_DMA5_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500549#define bfin_read_USB_DMA6_CONTROL() bfin_read16(USB_DMA6_CONTROL)
550#define bfin_write_USB_DMA6_CONTROL(val) bfin_write16(USB_DMA6_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500551#define bfin_read_USB_DMA6_ADDRLOW() bfin_read16(USB_DMA6_ADDRLOW)
552#define bfin_write_USB_DMA6_ADDRLOW(val) bfin_write16(USB_DMA6_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500553#define bfin_read_USB_DMA6_ADDRHIGH() bfin_read16(USB_DMA6_ADDRHIGH)
554#define bfin_write_USB_DMA6_ADDRHIGH(val) bfin_write16(USB_DMA6_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500555#define bfin_read_USB_DMA6_COUNTLOW() bfin_read16(USB_DMA6_COUNTLOW)
556#define bfin_write_USB_DMA6_COUNTLOW(val) bfin_write16(USB_DMA6_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500557#define bfin_read_USB_DMA6_COUNTHIGH() bfin_read16(USB_DMA6_COUNTHIGH)
558#define bfin_write_USB_DMA6_COUNTHIGH(val) bfin_write16(USB_DMA6_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500559#define bfin_read_USB_DMA7_CONTROL() bfin_read16(USB_DMA7_CONTROL)
560#define bfin_write_USB_DMA7_CONTROL(val) bfin_write16(USB_DMA7_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500561#define bfin_read_USB_DMA7_ADDRLOW() bfin_read16(USB_DMA7_ADDRLOW)
562#define bfin_write_USB_DMA7_ADDRLOW(val) bfin_write16(USB_DMA7_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500563#define bfin_read_USB_DMA7_ADDRHIGH() bfin_read16(USB_DMA7_ADDRHIGH)
564#define bfin_write_USB_DMA7_ADDRHIGH(val) bfin_write16(USB_DMA7_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500565#define bfin_read_USB_DMA7_COUNTLOW() bfin_read16(USB_DMA7_COUNTLOW)
566#define bfin_write_USB_DMA7_COUNTLOW(val) bfin_write16(USB_DMA7_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500567#define bfin_read_USB_DMA7_COUNTHIGH() bfin_read16(USB_DMA7_COUNTHIGH)
568#define bfin_write_USB_DMA7_COUNTHIGH(val) bfin_write16(USB_DMA7_COUNTHIGH, val)
569
570#endif /* __BFIN_CDEF_ADSP_BF524_proc__ */