blob: 84fa5d2dfbeb32d198f1f1bda84b4e3f541950a5 [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_EDN_BF542_extended__
7#define __BFIN_CDEF_ADSP_EDN_BF542_extended__
8
Mike Frysinger66c4cf42008-02-04 19:26:55 -05009#define bfin_read_SIC_IMASK0() bfin_read32(SIC_IMASK0)
10#define bfin_write_SIC_IMASK0(val) bfin_write32(SIC_IMASK0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050011#define bfin_read_SIC_IMASK1() bfin_read32(SIC_IMASK1)
12#define bfin_write_SIC_IMASK1(val) bfin_write32(SIC_IMASK1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050013#define bfin_read_SIC_IMASK2() bfin_read32(SIC_IMASK2)
14#define bfin_write_SIC_IMASK2(val) bfin_write32(SIC_IMASK2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050015#define bfin_read_SIC_ISR0() bfin_read32(SIC_ISR0)
16#define bfin_write_SIC_ISR0(val) bfin_write32(SIC_ISR0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050017#define bfin_read_SIC_ISR1() bfin_read32(SIC_ISR1)
18#define bfin_write_SIC_ISR1(val) bfin_write32(SIC_ISR1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050019#define bfin_read_SIC_ISR2() bfin_read32(SIC_ISR2)
20#define bfin_write_SIC_ISR2(val) bfin_write32(SIC_ISR2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050021#define bfin_read_SIC_IWR0() bfin_read32(SIC_IWR0)
22#define bfin_write_SIC_IWR0(val) bfin_write32(SIC_IWR0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050023#define bfin_read_SIC_IWR1() bfin_read32(SIC_IWR1)
24#define bfin_write_SIC_IWR1(val) bfin_write32(SIC_IWR1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050025#define bfin_read_SIC_IWR2() bfin_read32(SIC_IWR2)
26#define bfin_write_SIC_IWR2(val) bfin_write32(SIC_IWR2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050027#define bfin_read_SIC_IAR0() bfin_read32(SIC_IAR0)
28#define bfin_write_SIC_IAR0(val) bfin_write32(SIC_IAR0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050029#define bfin_read_SIC_IAR1() bfin_read32(SIC_IAR1)
30#define bfin_write_SIC_IAR1(val) bfin_write32(SIC_IAR1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050031#define bfin_read_SIC_IAR2() bfin_read32(SIC_IAR2)
32#define bfin_write_SIC_IAR2(val) bfin_write32(SIC_IAR2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050033#define bfin_read_SIC_IAR3() bfin_read32(SIC_IAR3)
34#define bfin_write_SIC_IAR3(val) bfin_write32(SIC_IAR3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050035#define bfin_read_SIC_IAR4() bfin_read32(SIC_IAR4)
36#define bfin_write_SIC_IAR4(val) bfin_write32(SIC_IAR4, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050037#define bfin_read_SIC_IAR5() bfin_read32(SIC_IAR5)
38#define bfin_write_SIC_IAR5(val) bfin_write32(SIC_IAR5, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050039#define bfin_read_SIC_IAR6() bfin_read32(SIC_IAR6)
40#define bfin_write_SIC_IAR6(val) bfin_write32(SIC_IAR6, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050041#define bfin_read_SIC_IAR7() bfin_read32(SIC_IAR7)
42#define bfin_write_SIC_IAR7(val) bfin_write32(SIC_IAR7, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050043#define bfin_read_SIC_IAR8() bfin_read32(SIC_IAR8)
44#define bfin_write_SIC_IAR8(val) bfin_write32(SIC_IAR8, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050045#define bfin_read_SIC_IAR9() bfin_read32(SIC_IAR9)
46#define bfin_write_SIC_IAR9(val) bfin_write32(SIC_IAR9, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050047#define bfin_read_SIC_IAR10() bfin_read32(SIC_IAR10)
48#define bfin_write_SIC_IAR10(val) bfin_write32(SIC_IAR10, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050049#define bfin_read_SIC_IAR11() bfin_read32(SIC_IAR11)
50#define bfin_write_SIC_IAR11(val) bfin_write32(SIC_IAR11, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050051#define bfin_read_DMAC0_TCPER() bfin_read16(DMAC0_TCPER)
52#define bfin_write_DMAC0_TCPER(val) bfin_write16(DMAC0_TCPER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050053#define bfin_read_DMAC0_TCCNT() bfin_read16(DMAC0_TCCNT)
54#define bfin_write_DMAC0_TCCNT(val) bfin_write16(DMAC0_TCCNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050055#define bfin_read_DMAC1_TCPER() bfin_read16(DMAC1_TCPER)
56#define bfin_write_DMAC1_TCPER(val) bfin_write16(DMAC1_TCPER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050057#define bfin_read_DMAC1_TCCNT() bfin_read16(DMAC1_TCCNT)
58#define bfin_write_DMAC1_TCCNT(val) bfin_write16(DMAC1_TCCNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050059#define bfin_read_DMAC1_PERIMUX() bfin_read16(DMAC1_PERIMUX)
60#define bfin_write_DMAC1_PERIMUX(val) bfin_write16(DMAC1_PERIMUX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050061#define bfin_read_DMA0_NEXT_DESC_PTR() bfin_readPTR(DMA0_NEXT_DESC_PTR)
62#define bfin_write_DMA0_NEXT_DESC_PTR(val) bfin_writePTR(DMA0_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050063#define bfin_read_DMA0_START_ADDR() bfin_readPTR(DMA0_START_ADDR)
64#define bfin_write_DMA0_START_ADDR(val) bfin_writePTR(DMA0_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050065#define bfin_read_DMA0_CONFIG() bfin_read16(DMA0_CONFIG)
66#define bfin_write_DMA0_CONFIG(val) bfin_write16(DMA0_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050067#define bfin_read_DMA0_X_COUNT() bfin_read16(DMA0_X_COUNT)
68#define bfin_write_DMA0_X_COUNT(val) bfin_write16(DMA0_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050069#define bfin_read_DMA0_X_MODIFY() bfin_read16(DMA0_X_MODIFY)
70#define bfin_write_DMA0_X_MODIFY(val) bfin_write16(DMA0_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050071#define bfin_read_DMA0_Y_COUNT() bfin_read16(DMA0_Y_COUNT)
72#define bfin_write_DMA0_Y_COUNT(val) bfin_write16(DMA0_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050073#define bfin_read_DMA0_Y_MODIFY() bfin_read16(DMA0_Y_MODIFY)
74#define bfin_write_DMA0_Y_MODIFY(val) bfin_write16(DMA0_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050075#define bfin_read_DMA0_CURR_DESC_PTR() bfin_readPTR(DMA0_CURR_DESC_PTR)
76#define bfin_write_DMA0_CURR_DESC_PTR(val) bfin_writePTR(DMA0_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050077#define bfin_read_DMA0_CURR_ADDR() bfin_readPTR(DMA0_CURR_ADDR)
78#define bfin_write_DMA0_CURR_ADDR(val) bfin_writePTR(DMA0_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050079#define bfin_read_DMA0_IRQ_STATUS() bfin_read16(DMA0_IRQ_STATUS)
80#define bfin_write_DMA0_IRQ_STATUS(val) bfin_write16(DMA0_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050081#define bfin_read_DMA0_PERIPHERAL_MAP() bfin_read16(DMA0_PERIPHERAL_MAP)
82#define bfin_write_DMA0_PERIPHERAL_MAP(val) bfin_write16(DMA0_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050083#define bfin_read_DMA0_CURR_X_COUNT() bfin_read16(DMA0_CURR_X_COUNT)
84#define bfin_write_DMA0_CURR_X_COUNT(val) bfin_write16(DMA0_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050085#define bfin_read_DMA0_CURR_Y_COUNT() bfin_read16(DMA0_CURR_Y_COUNT)
86#define bfin_write_DMA0_CURR_Y_COUNT(val) bfin_write16(DMA0_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050087#define bfin_read_DMA1_NEXT_DESC_PTR() bfin_readPTR(DMA1_NEXT_DESC_PTR)
88#define bfin_write_DMA1_NEXT_DESC_PTR(val) bfin_writePTR(DMA1_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050089#define bfin_read_DMA1_START_ADDR() bfin_readPTR(DMA1_START_ADDR)
90#define bfin_write_DMA1_START_ADDR(val) bfin_writePTR(DMA1_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050091#define bfin_read_DMA1_CONFIG() bfin_read16(DMA1_CONFIG)
92#define bfin_write_DMA1_CONFIG(val) bfin_write16(DMA1_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050093#define bfin_read_DMA1_X_COUNT() bfin_read16(DMA1_X_COUNT)
94#define bfin_write_DMA1_X_COUNT(val) bfin_write16(DMA1_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050095#define bfin_read_DMA1_X_MODIFY() bfin_read16(DMA1_X_MODIFY)
96#define bfin_write_DMA1_X_MODIFY(val) bfin_write16(DMA1_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050097#define bfin_read_DMA1_Y_COUNT() bfin_read16(DMA1_Y_COUNT)
98#define bfin_write_DMA1_Y_COUNT(val) bfin_write16(DMA1_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -050099#define bfin_read_DMA1_Y_MODIFY() bfin_read16(DMA1_Y_MODIFY)
100#define bfin_write_DMA1_Y_MODIFY(val) bfin_write16(DMA1_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500101#define bfin_read_DMA1_CURR_DESC_PTR() bfin_readPTR(DMA1_CURR_DESC_PTR)
102#define bfin_write_DMA1_CURR_DESC_PTR(val) bfin_writePTR(DMA1_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500103#define bfin_read_DMA1_CURR_ADDR() bfin_readPTR(DMA1_CURR_ADDR)
104#define bfin_write_DMA1_CURR_ADDR(val) bfin_writePTR(DMA1_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500105#define bfin_read_DMA1_IRQ_STATUS() bfin_read16(DMA1_IRQ_STATUS)
106#define bfin_write_DMA1_IRQ_STATUS(val) bfin_write16(DMA1_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500107#define bfin_read_DMA1_PERIPHERAL_MAP() bfin_read16(DMA1_PERIPHERAL_MAP)
108#define bfin_write_DMA1_PERIPHERAL_MAP(val) bfin_write16(DMA1_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500109#define bfin_read_DMA1_CURR_X_COUNT() bfin_read16(DMA1_CURR_X_COUNT)
110#define bfin_write_DMA1_CURR_X_COUNT(val) bfin_write16(DMA1_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500111#define bfin_read_DMA1_CURR_Y_COUNT() bfin_read16(DMA1_CURR_Y_COUNT)
112#define bfin_write_DMA1_CURR_Y_COUNT(val) bfin_write16(DMA1_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500113#define bfin_read_DMA2_NEXT_DESC_PTR() bfin_readPTR(DMA2_NEXT_DESC_PTR)
114#define bfin_write_DMA2_NEXT_DESC_PTR(val) bfin_writePTR(DMA2_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500115#define bfin_read_DMA2_START_ADDR() bfin_readPTR(DMA2_START_ADDR)
116#define bfin_write_DMA2_START_ADDR(val) bfin_writePTR(DMA2_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500117#define bfin_read_DMA2_CONFIG() bfin_read16(DMA2_CONFIG)
118#define bfin_write_DMA2_CONFIG(val) bfin_write16(DMA2_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500119#define bfin_read_DMA2_X_COUNT() bfin_read16(DMA2_X_COUNT)
120#define bfin_write_DMA2_X_COUNT(val) bfin_write16(DMA2_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500121#define bfin_read_DMA2_X_MODIFY() bfin_read16(DMA2_X_MODIFY)
122#define bfin_write_DMA2_X_MODIFY(val) bfin_write16(DMA2_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500123#define bfin_read_DMA2_Y_COUNT() bfin_read16(DMA2_Y_COUNT)
124#define bfin_write_DMA2_Y_COUNT(val) bfin_write16(DMA2_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500125#define bfin_read_DMA2_Y_MODIFY() bfin_read16(DMA2_Y_MODIFY)
126#define bfin_write_DMA2_Y_MODIFY(val) bfin_write16(DMA2_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500127#define bfin_read_DMA2_CURR_DESC_PTR() bfin_readPTR(DMA2_CURR_DESC_PTR)
128#define bfin_write_DMA2_CURR_DESC_PTR(val) bfin_writePTR(DMA2_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500129#define bfin_read_DMA2_CURR_ADDR() bfin_readPTR(DMA2_CURR_ADDR)
130#define bfin_write_DMA2_CURR_ADDR(val) bfin_writePTR(DMA2_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500131#define bfin_read_DMA2_IRQ_STATUS() bfin_read16(DMA2_IRQ_STATUS)
132#define bfin_write_DMA2_IRQ_STATUS(val) bfin_write16(DMA2_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500133#define bfin_read_DMA2_PERIPHERAL_MAP() bfin_read16(DMA2_PERIPHERAL_MAP)
134#define bfin_write_DMA2_PERIPHERAL_MAP(val) bfin_write16(DMA2_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500135#define bfin_read_DMA2_CURR_X_COUNT() bfin_read16(DMA2_CURR_X_COUNT)
136#define bfin_write_DMA2_CURR_X_COUNT(val) bfin_write16(DMA2_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500137#define bfin_read_DMA2_CURR_Y_COUNT() bfin_read16(DMA2_CURR_Y_COUNT)
138#define bfin_write_DMA2_CURR_Y_COUNT(val) bfin_write16(DMA2_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500139#define bfin_read_DMA3_NEXT_DESC_PTR() bfin_readPTR(DMA3_NEXT_DESC_PTR)
140#define bfin_write_DMA3_NEXT_DESC_PTR(val) bfin_writePTR(DMA3_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500141#define bfin_read_DMA3_START_ADDR() bfin_readPTR(DMA3_START_ADDR)
142#define bfin_write_DMA3_START_ADDR(val) bfin_writePTR(DMA3_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500143#define bfin_read_DMA3_CONFIG() bfin_read16(DMA3_CONFIG)
144#define bfin_write_DMA3_CONFIG(val) bfin_write16(DMA3_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500145#define bfin_read_DMA3_X_COUNT() bfin_read16(DMA3_X_COUNT)
146#define bfin_write_DMA3_X_COUNT(val) bfin_write16(DMA3_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500147#define bfin_read_DMA3_X_MODIFY() bfin_read16(DMA3_X_MODIFY)
148#define bfin_write_DMA3_X_MODIFY(val) bfin_write16(DMA3_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500149#define bfin_read_DMA3_Y_COUNT() bfin_read16(DMA3_Y_COUNT)
150#define bfin_write_DMA3_Y_COUNT(val) bfin_write16(DMA3_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500151#define bfin_read_DMA3_Y_MODIFY() bfin_read16(DMA3_Y_MODIFY)
152#define bfin_write_DMA3_Y_MODIFY(val) bfin_write16(DMA3_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500153#define bfin_read_DMA3_CURR_DESC_PTR() bfin_readPTR(DMA3_CURR_DESC_PTR)
154#define bfin_write_DMA3_CURR_DESC_PTR(val) bfin_writePTR(DMA3_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500155#define bfin_read_DMA3_CURR_ADDR() bfin_readPTR(DMA3_CURR_ADDR)
156#define bfin_write_DMA3_CURR_ADDR(val) bfin_writePTR(DMA3_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500157#define bfin_read_DMA3_IRQ_STATUS() bfin_read16(DMA3_IRQ_STATUS)
158#define bfin_write_DMA3_IRQ_STATUS(val) bfin_write16(DMA3_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500159#define bfin_read_DMA3_PERIPHERAL_MAP() bfin_read16(DMA3_PERIPHERAL_MAP)
160#define bfin_write_DMA3_PERIPHERAL_MAP(val) bfin_write16(DMA3_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500161#define bfin_read_DMA3_CURR_X_COUNT() bfin_read16(DMA3_CURR_X_COUNT)
162#define bfin_write_DMA3_CURR_X_COUNT(val) bfin_write16(DMA3_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500163#define bfin_read_DMA3_CURR_Y_COUNT() bfin_read16(DMA3_CURR_Y_COUNT)
164#define bfin_write_DMA3_CURR_Y_COUNT(val) bfin_write16(DMA3_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500165#define bfin_read_DMA4_NEXT_DESC_PTR() bfin_readPTR(DMA4_NEXT_DESC_PTR)
166#define bfin_write_DMA4_NEXT_DESC_PTR(val) bfin_writePTR(DMA4_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500167#define bfin_read_DMA4_START_ADDR() bfin_readPTR(DMA4_START_ADDR)
168#define bfin_write_DMA4_START_ADDR(val) bfin_writePTR(DMA4_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500169#define bfin_read_DMA4_CONFIG() bfin_read16(DMA4_CONFIG)
170#define bfin_write_DMA4_CONFIG(val) bfin_write16(DMA4_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500171#define bfin_read_DMA4_X_COUNT() bfin_read16(DMA4_X_COUNT)
172#define bfin_write_DMA4_X_COUNT(val) bfin_write16(DMA4_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500173#define bfin_read_DMA4_X_MODIFY() bfin_read16(DMA4_X_MODIFY)
174#define bfin_write_DMA4_X_MODIFY(val) bfin_write16(DMA4_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500175#define bfin_read_DMA4_Y_COUNT() bfin_read16(DMA4_Y_COUNT)
176#define bfin_write_DMA4_Y_COUNT(val) bfin_write16(DMA4_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500177#define bfin_read_DMA4_Y_MODIFY() bfin_read16(DMA4_Y_MODIFY)
178#define bfin_write_DMA4_Y_MODIFY(val) bfin_write16(DMA4_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500179#define bfin_read_DMA4_CURR_DESC_PTR() bfin_readPTR(DMA4_CURR_DESC_PTR)
180#define bfin_write_DMA4_CURR_DESC_PTR(val) bfin_writePTR(DMA4_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500181#define bfin_read_DMA4_CURR_ADDR() bfin_readPTR(DMA4_CURR_ADDR)
182#define bfin_write_DMA4_CURR_ADDR(val) bfin_writePTR(DMA4_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500183#define bfin_read_DMA4_IRQ_STATUS() bfin_read16(DMA4_IRQ_STATUS)
184#define bfin_write_DMA4_IRQ_STATUS(val) bfin_write16(DMA4_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500185#define bfin_read_DMA4_PERIPHERAL_MAP() bfin_read16(DMA4_PERIPHERAL_MAP)
186#define bfin_write_DMA4_PERIPHERAL_MAP(val) bfin_write16(DMA4_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500187#define bfin_read_DMA4_CURR_X_COUNT() bfin_read16(DMA4_CURR_X_COUNT)
188#define bfin_write_DMA4_CURR_X_COUNT(val) bfin_write16(DMA4_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500189#define bfin_read_DMA4_CURR_Y_COUNT() bfin_read16(DMA4_CURR_Y_COUNT)
190#define bfin_write_DMA4_CURR_Y_COUNT(val) bfin_write16(DMA4_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500191#define bfin_read_DMA5_NEXT_DESC_PTR() bfin_readPTR(DMA5_NEXT_DESC_PTR)
192#define bfin_write_DMA5_NEXT_DESC_PTR(val) bfin_writePTR(DMA5_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500193#define bfin_read_DMA5_START_ADDR() bfin_readPTR(DMA5_START_ADDR)
194#define bfin_write_DMA5_START_ADDR(val) bfin_writePTR(DMA5_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500195#define bfin_read_DMA5_CONFIG() bfin_read16(DMA5_CONFIG)
196#define bfin_write_DMA5_CONFIG(val) bfin_write16(DMA5_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500197#define bfin_read_DMA5_X_COUNT() bfin_read16(DMA5_X_COUNT)
198#define bfin_write_DMA5_X_COUNT(val) bfin_write16(DMA5_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500199#define bfin_read_DMA5_X_MODIFY() bfin_read16(DMA5_X_MODIFY)
200#define bfin_write_DMA5_X_MODIFY(val) bfin_write16(DMA5_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500201#define bfin_read_DMA5_Y_COUNT() bfin_read16(DMA5_Y_COUNT)
202#define bfin_write_DMA5_Y_COUNT(val) bfin_write16(DMA5_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500203#define bfin_read_DMA5_Y_MODIFY() bfin_read16(DMA5_Y_MODIFY)
204#define bfin_write_DMA5_Y_MODIFY(val) bfin_write16(DMA5_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500205#define bfin_read_DMA5_CURR_DESC_PTR() bfin_readPTR(DMA5_CURR_DESC_PTR)
206#define bfin_write_DMA5_CURR_DESC_PTR(val) bfin_writePTR(DMA5_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500207#define bfin_read_DMA5_CURR_ADDR() bfin_readPTR(DMA5_CURR_ADDR)
208#define bfin_write_DMA5_CURR_ADDR(val) bfin_writePTR(DMA5_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500209#define bfin_read_DMA5_IRQ_STATUS() bfin_read16(DMA5_IRQ_STATUS)
210#define bfin_write_DMA5_IRQ_STATUS(val) bfin_write16(DMA5_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500211#define bfin_read_DMA5_PERIPHERAL_MAP() bfin_read16(DMA5_PERIPHERAL_MAP)
212#define bfin_write_DMA5_PERIPHERAL_MAP(val) bfin_write16(DMA5_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500213#define bfin_read_DMA5_CURR_X_COUNT() bfin_read16(DMA5_CURR_X_COUNT)
214#define bfin_write_DMA5_CURR_X_COUNT(val) bfin_write16(DMA5_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500215#define bfin_read_DMA5_CURR_Y_COUNT() bfin_read16(DMA5_CURR_Y_COUNT)
216#define bfin_write_DMA5_CURR_Y_COUNT(val) bfin_write16(DMA5_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500217#define bfin_read_DMA6_NEXT_DESC_PTR() bfin_readPTR(DMA6_NEXT_DESC_PTR)
218#define bfin_write_DMA6_NEXT_DESC_PTR(val) bfin_writePTR(DMA6_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500219#define bfin_read_DMA6_START_ADDR() bfin_readPTR(DMA6_START_ADDR)
220#define bfin_write_DMA6_START_ADDR(val) bfin_writePTR(DMA6_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500221#define bfin_read_DMA6_CONFIG() bfin_read16(DMA6_CONFIG)
222#define bfin_write_DMA6_CONFIG(val) bfin_write16(DMA6_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500223#define bfin_read_DMA6_X_COUNT() bfin_read16(DMA6_X_COUNT)
224#define bfin_write_DMA6_X_COUNT(val) bfin_write16(DMA6_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500225#define bfin_read_DMA6_X_MODIFY() bfin_read16(DMA6_X_MODIFY)
226#define bfin_write_DMA6_X_MODIFY(val) bfin_write16(DMA6_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500227#define bfin_read_DMA6_Y_COUNT() bfin_read16(DMA6_Y_COUNT)
228#define bfin_write_DMA6_Y_COUNT(val) bfin_write16(DMA6_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500229#define bfin_read_DMA6_Y_MODIFY() bfin_read16(DMA6_Y_MODIFY)
230#define bfin_write_DMA6_Y_MODIFY(val) bfin_write16(DMA6_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500231#define bfin_read_DMA6_CURR_DESC_PTR() bfin_readPTR(DMA6_CURR_DESC_PTR)
232#define bfin_write_DMA6_CURR_DESC_PTR(val) bfin_writePTR(DMA6_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500233#define bfin_read_DMA6_CURR_ADDR() bfin_readPTR(DMA6_CURR_ADDR)
234#define bfin_write_DMA6_CURR_ADDR(val) bfin_writePTR(DMA6_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500235#define bfin_read_DMA6_IRQ_STATUS() bfin_read16(DMA6_IRQ_STATUS)
236#define bfin_write_DMA6_IRQ_STATUS(val) bfin_write16(DMA6_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500237#define bfin_read_DMA6_PERIPHERAL_MAP() bfin_read16(DMA6_PERIPHERAL_MAP)
238#define bfin_write_DMA6_PERIPHERAL_MAP(val) bfin_write16(DMA6_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500239#define bfin_read_DMA6_CURR_X_COUNT() bfin_read16(DMA6_CURR_X_COUNT)
240#define bfin_write_DMA6_CURR_X_COUNT(val) bfin_write16(DMA6_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500241#define bfin_read_DMA6_CURR_Y_COUNT() bfin_read16(DMA6_CURR_Y_COUNT)
242#define bfin_write_DMA6_CURR_Y_COUNT(val) bfin_write16(DMA6_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500243#define bfin_read_DMA7_NEXT_DESC_PTR() bfin_readPTR(DMA7_NEXT_DESC_PTR)
244#define bfin_write_DMA7_NEXT_DESC_PTR(val) bfin_writePTR(DMA7_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500245#define bfin_read_DMA7_START_ADDR() bfin_readPTR(DMA7_START_ADDR)
246#define bfin_write_DMA7_START_ADDR(val) bfin_writePTR(DMA7_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500247#define bfin_read_DMA7_CONFIG() bfin_read16(DMA7_CONFIG)
248#define bfin_write_DMA7_CONFIG(val) bfin_write16(DMA7_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500249#define bfin_read_DMA7_X_COUNT() bfin_read16(DMA7_X_COUNT)
250#define bfin_write_DMA7_X_COUNT(val) bfin_write16(DMA7_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500251#define bfin_read_DMA7_X_MODIFY() bfin_read16(DMA7_X_MODIFY)
252#define bfin_write_DMA7_X_MODIFY(val) bfin_write16(DMA7_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500253#define bfin_read_DMA7_Y_COUNT() bfin_read16(DMA7_Y_COUNT)
254#define bfin_write_DMA7_Y_COUNT(val) bfin_write16(DMA7_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500255#define bfin_read_DMA7_Y_MODIFY() bfin_read16(DMA7_Y_MODIFY)
256#define bfin_write_DMA7_Y_MODIFY(val) bfin_write16(DMA7_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500257#define bfin_read_DMA7_CURR_DESC_PTR() bfin_readPTR(DMA7_CURR_DESC_PTR)
258#define bfin_write_DMA7_CURR_DESC_PTR(val) bfin_writePTR(DMA7_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500259#define bfin_read_DMA7_CURR_ADDR() bfin_readPTR(DMA7_CURR_ADDR)
260#define bfin_write_DMA7_CURR_ADDR(val) bfin_writePTR(DMA7_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500261#define bfin_read_DMA7_IRQ_STATUS() bfin_read16(DMA7_IRQ_STATUS)
262#define bfin_write_DMA7_IRQ_STATUS(val) bfin_write16(DMA7_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500263#define bfin_read_DMA7_PERIPHERAL_MAP() bfin_read16(DMA7_PERIPHERAL_MAP)
264#define bfin_write_DMA7_PERIPHERAL_MAP(val) bfin_write16(DMA7_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500265#define bfin_read_DMA7_CURR_X_COUNT() bfin_read16(DMA7_CURR_X_COUNT)
266#define bfin_write_DMA7_CURR_X_COUNT(val) bfin_write16(DMA7_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500267#define bfin_read_DMA7_CURR_Y_COUNT() bfin_read16(DMA7_CURR_Y_COUNT)
268#define bfin_write_DMA7_CURR_Y_COUNT(val) bfin_write16(DMA7_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500269#define bfin_read_DMA8_NEXT_DESC_PTR() bfin_readPTR(DMA8_NEXT_DESC_PTR)
270#define bfin_write_DMA8_NEXT_DESC_PTR(val) bfin_writePTR(DMA8_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500271#define bfin_read_DMA8_START_ADDR() bfin_readPTR(DMA8_START_ADDR)
272#define bfin_write_DMA8_START_ADDR(val) bfin_writePTR(DMA8_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500273#define bfin_read_DMA8_CONFIG() bfin_read16(DMA8_CONFIG)
274#define bfin_write_DMA8_CONFIG(val) bfin_write16(DMA8_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500275#define bfin_read_DMA8_X_COUNT() bfin_read16(DMA8_X_COUNT)
276#define bfin_write_DMA8_X_COUNT(val) bfin_write16(DMA8_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500277#define bfin_read_DMA8_X_MODIFY() bfin_read16(DMA8_X_MODIFY)
278#define bfin_write_DMA8_X_MODIFY(val) bfin_write16(DMA8_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500279#define bfin_read_DMA8_Y_COUNT() bfin_read16(DMA8_Y_COUNT)
280#define bfin_write_DMA8_Y_COUNT(val) bfin_write16(DMA8_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500281#define bfin_read_DMA8_Y_MODIFY() bfin_read16(DMA8_Y_MODIFY)
282#define bfin_write_DMA8_Y_MODIFY(val) bfin_write16(DMA8_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500283#define bfin_read_DMA8_CURR_DESC_PTR() bfin_readPTR(DMA8_CURR_DESC_PTR)
284#define bfin_write_DMA8_CURR_DESC_PTR(val) bfin_writePTR(DMA8_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500285#define bfin_read_DMA8_CURR_ADDR() bfin_readPTR(DMA8_CURR_ADDR)
286#define bfin_write_DMA8_CURR_ADDR(val) bfin_writePTR(DMA8_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500287#define bfin_read_DMA8_IRQ_STATUS() bfin_read16(DMA8_IRQ_STATUS)
288#define bfin_write_DMA8_IRQ_STATUS(val) bfin_write16(DMA8_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500289#define bfin_read_DMA8_PERIPHERAL_MAP() bfin_read16(DMA8_PERIPHERAL_MAP)
290#define bfin_write_DMA8_PERIPHERAL_MAP(val) bfin_write16(DMA8_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500291#define bfin_read_DMA8_CURR_X_COUNT() bfin_read16(DMA8_CURR_X_COUNT)
292#define bfin_write_DMA8_CURR_X_COUNT(val) bfin_write16(DMA8_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500293#define bfin_read_DMA8_CURR_Y_COUNT() bfin_read16(DMA8_CURR_Y_COUNT)
294#define bfin_write_DMA8_CURR_Y_COUNT(val) bfin_write16(DMA8_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500295#define bfin_read_DMA9_NEXT_DESC_PTR() bfin_readPTR(DMA9_NEXT_DESC_PTR)
296#define bfin_write_DMA9_NEXT_DESC_PTR(val) bfin_writePTR(DMA9_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500297#define bfin_read_DMA9_START_ADDR() bfin_readPTR(DMA9_START_ADDR)
298#define bfin_write_DMA9_START_ADDR(val) bfin_writePTR(DMA9_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500299#define bfin_read_DMA9_CONFIG() bfin_read16(DMA9_CONFIG)
300#define bfin_write_DMA9_CONFIG(val) bfin_write16(DMA9_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500301#define bfin_read_DMA9_X_COUNT() bfin_read16(DMA9_X_COUNT)
302#define bfin_write_DMA9_X_COUNT(val) bfin_write16(DMA9_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500303#define bfin_read_DMA9_X_MODIFY() bfin_read16(DMA9_X_MODIFY)
304#define bfin_write_DMA9_X_MODIFY(val) bfin_write16(DMA9_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500305#define bfin_read_DMA9_Y_COUNT() bfin_read16(DMA9_Y_COUNT)
306#define bfin_write_DMA9_Y_COUNT(val) bfin_write16(DMA9_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500307#define bfin_read_DMA9_Y_MODIFY() bfin_read16(DMA9_Y_MODIFY)
308#define bfin_write_DMA9_Y_MODIFY(val) bfin_write16(DMA9_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500309#define bfin_read_DMA9_CURR_DESC_PTR() bfin_readPTR(DMA9_CURR_DESC_PTR)
310#define bfin_write_DMA9_CURR_DESC_PTR(val) bfin_writePTR(DMA9_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500311#define bfin_read_DMA9_CURR_ADDR() bfin_readPTR(DMA9_CURR_ADDR)
312#define bfin_write_DMA9_CURR_ADDR(val) bfin_writePTR(DMA9_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500313#define bfin_read_DMA9_IRQ_STATUS() bfin_read16(DMA9_IRQ_STATUS)
314#define bfin_write_DMA9_IRQ_STATUS(val) bfin_write16(DMA9_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500315#define bfin_read_DMA9_PERIPHERAL_MAP() bfin_read16(DMA9_PERIPHERAL_MAP)
316#define bfin_write_DMA9_PERIPHERAL_MAP(val) bfin_write16(DMA9_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500317#define bfin_read_DMA9_CURR_X_COUNT() bfin_read16(DMA9_CURR_X_COUNT)
318#define bfin_write_DMA9_CURR_X_COUNT(val) bfin_write16(DMA9_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500319#define bfin_read_DMA9_CURR_Y_COUNT() bfin_read16(DMA9_CURR_Y_COUNT)
320#define bfin_write_DMA9_CURR_Y_COUNT(val) bfin_write16(DMA9_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500321#define bfin_read_DMA10_NEXT_DESC_PTR() bfin_readPTR(DMA10_NEXT_DESC_PTR)
322#define bfin_write_DMA10_NEXT_DESC_PTR(val) bfin_writePTR(DMA10_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500323#define bfin_read_DMA10_START_ADDR() bfin_readPTR(DMA10_START_ADDR)
324#define bfin_write_DMA10_START_ADDR(val) bfin_writePTR(DMA10_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500325#define bfin_read_DMA10_CONFIG() bfin_read16(DMA10_CONFIG)
326#define bfin_write_DMA10_CONFIG(val) bfin_write16(DMA10_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500327#define bfin_read_DMA10_X_COUNT() bfin_read16(DMA10_X_COUNT)
328#define bfin_write_DMA10_X_COUNT(val) bfin_write16(DMA10_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500329#define bfin_read_DMA10_X_MODIFY() bfin_read16(DMA10_X_MODIFY)
330#define bfin_write_DMA10_X_MODIFY(val) bfin_write16(DMA10_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500331#define bfin_read_DMA10_Y_COUNT() bfin_read16(DMA10_Y_COUNT)
332#define bfin_write_DMA10_Y_COUNT(val) bfin_write16(DMA10_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500333#define bfin_read_DMA10_Y_MODIFY() bfin_read16(DMA10_Y_MODIFY)
334#define bfin_write_DMA10_Y_MODIFY(val) bfin_write16(DMA10_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500335#define bfin_read_DMA10_CURR_DESC_PTR() bfin_readPTR(DMA10_CURR_DESC_PTR)
336#define bfin_write_DMA10_CURR_DESC_PTR(val) bfin_writePTR(DMA10_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500337#define bfin_read_DMA10_CURR_ADDR() bfin_readPTR(DMA10_CURR_ADDR)
338#define bfin_write_DMA10_CURR_ADDR(val) bfin_writePTR(DMA10_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500339#define bfin_read_DMA10_IRQ_STATUS() bfin_read16(DMA10_IRQ_STATUS)
340#define bfin_write_DMA10_IRQ_STATUS(val) bfin_write16(DMA10_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500341#define bfin_read_DMA10_PERIPHERAL_MAP() bfin_read16(DMA10_PERIPHERAL_MAP)
342#define bfin_write_DMA10_PERIPHERAL_MAP(val) bfin_write16(DMA10_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500343#define bfin_read_DMA10_CURR_X_COUNT() bfin_read16(DMA10_CURR_X_COUNT)
344#define bfin_write_DMA10_CURR_X_COUNT(val) bfin_write16(DMA10_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500345#define bfin_read_DMA10_CURR_Y_COUNT() bfin_read16(DMA10_CURR_Y_COUNT)
346#define bfin_write_DMA10_CURR_Y_COUNT(val) bfin_write16(DMA10_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500347#define bfin_read_DMA11_NEXT_DESC_PTR() bfin_readPTR(DMA11_NEXT_DESC_PTR)
348#define bfin_write_DMA11_NEXT_DESC_PTR(val) bfin_writePTR(DMA11_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500349#define bfin_read_DMA11_START_ADDR() bfin_readPTR(DMA11_START_ADDR)
350#define bfin_write_DMA11_START_ADDR(val) bfin_writePTR(DMA11_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500351#define bfin_read_DMA11_CONFIG() bfin_read16(DMA11_CONFIG)
352#define bfin_write_DMA11_CONFIG(val) bfin_write16(DMA11_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500353#define bfin_read_DMA11_X_COUNT() bfin_read16(DMA11_X_COUNT)
354#define bfin_write_DMA11_X_COUNT(val) bfin_write16(DMA11_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500355#define bfin_read_DMA11_X_MODIFY() bfin_read16(DMA11_X_MODIFY)
356#define bfin_write_DMA11_X_MODIFY(val) bfin_write16(DMA11_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500357#define bfin_read_DMA11_Y_COUNT() bfin_read16(DMA11_Y_COUNT)
358#define bfin_write_DMA11_Y_COUNT(val) bfin_write16(DMA11_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500359#define bfin_read_DMA11_Y_MODIFY() bfin_read16(DMA11_Y_MODIFY)
360#define bfin_write_DMA11_Y_MODIFY(val) bfin_write16(DMA11_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500361#define bfin_read_DMA11_CURR_DESC_PTR() bfin_readPTR(DMA11_CURR_DESC_PTR)
362#define bfin_write_DMA11_CURR_DESC_PTR(val) bfin_writePTR(DMA11_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500363#define bfin_read_DMA11_CURR_ADDR() bfin_readPTR(DMA11_CURR_ADDR)
364#define bfin_write_DMA11_CURR_ADDR(val) bfin_writePTR(DMA11_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500365#define bfin_read_DMA11_IRQ_STATUS() bfin_read16(DMA11_IRQ_STATUS)
366#define bfin_write_DMA11_IRQ_STATUS(val) bfin_write16(DMA11_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500367#define bfin_read_DMA11_PERIPHERAL_MAP() bfin_read16(DMA11_PERIPHERAL_MAP)
368#define bfin_write_DMA11_PERIPHERAL_MAP(val) bfin_write16(DMA11_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500369#define bfin_read_DMA11_CURR_X_COUNT() bfin_read16(DMA11_CURR_X_COUNT)
370#define bfin_write_DMA11_CURR_X_COUNT(val) bfin_write16(DMA11_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500371#define bfin_read_DMA11_CURR_Y_COUNT() bfin_read16(DMA11_CURR_Y_COUNT)
372#define bfin_write_DMA11_CURR_Y_COUNT(val) bfin_write16(DMA11_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500373#define bfin_read_DMA12_NEXT_DESC_PTR() bfin_readPTR(DMA12_NEXT_DESC_PTR)
374#define bfin_write_DMA12_NEXT_DESC_PTR(val) bfin_writePTR(DMA12_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500375#define bfin_read_DMA12_START_ADDR() bfin_readPTR(DMA12_START_ADDR)
376#define bfin_write_DMA12_START_ADDR(val) bfin_writePTR(DMA12_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500377#define bfin_read_DMA12_CONFIG() bfin_read16(DMA12_CONFIG)
378#define bfin_write_DMA12_CONFIG(val) bfin_write16(DMA12_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500379#define bfin_read_DMA12_X_COUNT() bfin_read16(DMA12_X_COUNT)
380#define bfin_write_DMA12_X_COUNT(val) bfin_write16(DMA12_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500381#define bfin_read_DMA12_X_MODIFY() bfin_read16(DMA12_X_MODIFY)
382#define bfin_write_DMA12_X_MODIFY(val) bfin_write16(DMA12_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500383#define bfin_read_DMA12_Y_COUNT() bfin_read16(DMA12_Y_COUNT)
384#define bfin_write_DMA12_Y_COUNT(val) bfin_write16(DMA12_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500385#define bfin_read_DMA12_Y_MODIFY() bfin_read16(DMA12_Y_MODIFY)
386#define bfin_write_DMA12_Y_MODIFY(val) bfin_write16(DMA12_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500387#define bfin_read_DMA12_CURR_DESC_PTR() bfin_readPTR(DMA12_CURR_DESC_PTR)
388#define bfin_write_DMA12_CURR_DESC_PTR(val) bfin_writePTR(DMA12_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500389#define bfin_read_DMA12_CURR_ADDR() bfin_readPTR(DMA12_CURR_ADDR)
390#define bfin_write_DMA12_CURR_ADDR(val) bfin_writePTR(DMA12_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500391#define bfin_read_DMA12_IRQ_STATUS() bfin_read16(DMA12_IRQ_STATUS)
392#define bfin_write_DMA12_IRQ_STATUS(val) bfin_write16(DMA12_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500393#define bfin_read_DMA12_PERIPHERAL_MAP() bfin_read16(DMA12_PERIPHERAL_MAP)
394#define bfin_write_DMA12_PERIPHERAL_MAP(val) bfin_write16(DMA12_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500395#define bfin_read_DMA12_CURR_X_COUNT() bfin_read16(DMA12_CURR_X_COUNT)
396#define bfin_write_DMA12_CURR_X_COUNT(val) bfin_write16(DMA12_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500397#define bfin_read_DMA12_CURR_Y_COUNT() bfin_read16(DMA12_CURR_Y_COUNT)
398#define bfin_write_DMA12_CURR_Y_COUNT(val) bfin_write16(DMA12_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500399#define bfin_read_DMA13_NEXT_DESC_PTR() bfin_readPTR(DMA13_NEXT_DESC_PTR)
400#define bfin_write_DMA13_NEXT_DESC_PTR(val) bfin_writePTR(DMA13_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500401#define bfin_read_DMA13_START_ADDR() bfin_readPTR(DMA13_START_ADDR)
402#define bfin_write_DMA13_START_ADDR(val) bfin_writePTR(DMA13_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500403#define bfin_read_DMA13_CONFIG() bfin_read16(DMA13_CONFIG)
404#define bfin_write_DMA13_CONFIG(val) bfin_write16(DMA13_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500405#define bfin_read_DMA13_X_COUNT() bfin_read16(DMA13_X_COUNT)
406#define bfin_write_DMA13_X_COUNT(val) bfin_write16(DMA13_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500407#define bfin_read_DMA13_X_MODIFY() bfin_read16(DMA13_X_MODIFY)
408#define bfin_write_DMA13_X_MODIFY(val) bfin_write16(DMA13_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500409#define bfin_read_DMA13_Y_COUNT() bfin_read16(DMA13_Y_COUNT)
410#define bfin_write_DMA13_Y_COUNT(val) bfin_write16(DMA13_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500411#define bfin_read_DMA13_Y_MODIFY() bfin_read16(DMA13_Y_MODIFY)
412#define bfin_write_DMA13_Y_MODIFY(val) bfin_write16(DMA13_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500413#define bfin_read_DMA13_CURR_DESC_PTR() bfin_readPTR(DMA13_CURR_DESC_PTR)
414#define bfin_write_DMA13_CURR_DESC_PTR(val) bfin_writePTR(DMA13_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500415#define bfin_read_DMA13_CURR_ADDR() bfin_readPTR(DMA13_CURR_ADDR)
416#define bfin_write_DMA13_CURR_ADDR(val) bfin_writePTR(DMA13_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500417#define bfin_read_DMA13_IRQ_STATUS() bfin_read16(DMA13_IRQ_STATUS)
418#define bfin_write_DMA13_IRQ_STATUS(val) bfin_write16(DMA13_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500419#define bfin_read_DMA13_PERIPHERAL_MAP() bfin_read16(DMA13_PERIPHERAL_MAP)
420#define bfin_write_DMA13_PERIPHERAL_MAP(val) bfin_write16(DMA13_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500421#define bfin_read_DMA13_CURR_X_COUNT() bfin_read16(DMA13_CURR_X_COUNT)
422#define bfin_write_DMA13_CURR_X_COUNT(val) bfin_write16(DMA13_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500423#define bfin_read_DMA13_CURR_Y_COUNT() bfin_read16(DMA13_CURR_Y_COUNT)
424#define bfin_write_DMA13_CURR_Y_COUNT(val) bfin_write16(DMA13_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500425#define bfin_read_DMA14_NEXT_DESC_PTR() bfin_readPTR(DMA14_NEXT_DESC_PTR)
426#define bfin_write_DMA14_NEXT_DESC_PTR(val) bfin_writePTR(DMA14_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500427#define bfin_read_DMA14_START_ADDR() bfin_readPTR(DMA14_START_ADDR)
428#define bfin_write_DMA14_START_ADDR(val) bfin_writePTR(DMA14_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500429#define bfin_read_DMA14_CONFIG() bfin_read16(DMA14_CONFIG)
430#define bfin_write_DMA14_CONFIG(val) bfin_write16(DMA14_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500431#define bfin_read_DMA14_X_COUNT() bfin_read16(DMA14_X_COUNT)
432#define bfin_write_DMA14_X_COUNT(val) bfin_write16(DMA14_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500433#define bfin_read_DMA14_X_MODIFY() bfin_read16(DMA14_X_MODIFY)
434#define bfin_write_DMA14_X_MODIFY(val) bfin_write16(DMA14_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500435#define bfin_read_DMA14_Y_COUNT() bfin_read16(DMA14_Y_COUNT)
436#define bfin_write_DMA14_Y_COUNT(val) bfin_write16(DMA14_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500437#define bfin_read_DMA14_Y_MODIFY() bfin_read16(DMA14_Y_MODIFY)
438#define bfin_write_DMA14_Y_MODIFY(val) bfin_write16(DMA14_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500439#define bfin_read_DMA14_CURR_DESC_PTR() bfin_readPTR(DMA14_CURR_DESC_PTR)
440#define bfin_write_DMA14_CURR_DESC_PTR(val) bfin_writePTR(DMA14_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500441#define bfin_read_DMA14_CURR_ADDR() bfin_readPTR(DMA14_CURR_ADDR)
442#define bfin_write_DMA14_CURR_ADDR(val) bfin_writePTR(DMA14_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500443#define bfin_read_DMA14_IRQ_STATUS() bfin_read16(DMA14_IRQ_STATUS)
444#define bfin_write_DMA14_IRQ_STATUS(val) bfin_write16(DMA14_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500445#define bfin_read_DMA14_PERIPHERAL_MAP() bfin_read16(DMA14_PERIPHERAL_MAP)
446#define bfin_write_DMA14_PERIPHERAL_MAP(val) bfin_write16(DMA14_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500447#define bfin_read_DMA14_CURR_X_COUNT() bfin_read16(DMA14_CURR_X_COUNT)
448#define bfin_write_DMA14_CURR_X_COUNT(val) bfin_write16(DMA14_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500449#define bfin_read_DMA14_CURR_Y_COUNT() bfin_read16(DMA14_CURR_Y_COUNT)
450#define bfin_write_DMA14_CURR_Y_COUNT(val) bfin_write16(DMA14_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500451#define bfin_read_DMA15_NEXT_DESC_PTR() bfin_readPTR(DMA15_NEXT_DESC_PTR)
452#define bfin_write_DMA15_NEXT_DESC_PTR(val) bfin_writePTR(DMA15_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500453#define bfin_read_DMA15_START_ADDR() bfin_readPTR(DMA15_START_ADDR)
454#define bfin_write_DMA15_START_ADDR(val) bfin_writePTR(DMA15_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500455#define bfin_read_DMA15_CONFIG() bfin_read16(DMA15_CONFIG)
456#define bfin_write_DMA15_CONFIG(val) bfin_write16(DMA15_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500457#define bfin_read_DMA15_X_COUNT() bfin_read16(DMA15_X_COUNT)
458#define bfin_write_DMA15_X_COUNT(val) bfin_write16(DMA15_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500459#define bfin_read_DMA15_X_MODIFY() bfin_read16(DMA15_X_MODIFY)
460#define bfin_write_DMA15_X_MODIFY(val) bfin_write16(DMA15_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500461#define bfin_read_DMA15_Y_COUNT() bfin_read16(DMA15_Y_COUNT)
462#define bfin_write_DMA15_Y_COUNT(val) bfin_write16(DMA15_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500463#define bfin_read_DMA15_Y_MODIFY() bfin_read16(DMA15_Y_MODIFY)
464#define bfin_write_DMA15_Y_MODIFY(val) bfin_write16(DMA15_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500465#define bfin_read_DMA15_CURR_DESC_PTR() bfin_readPTR(DMA15_CURR_DESC_PTR)
466#define bfin_write_DMA15_CURR_DESC_PTR(val) bfin_writePTR(DMA15_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500467#define bfin_read_DMA15_CURR_ADDR() bfin_readPTR(DMA15_CURR_ADDR)
468#define bfin_write_DMA15_CURR_ADDR(val) bfin_writePTR(DMA15_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500469#define bfin_read_DMA15_IRQ_STATUS() bfin_read16(DMA15_IRQ_STATUS)
470#define bfin_write_DMA15_IRQ_STATUS(val) bfin_write16(DMA15_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500471#define bfin_read_DMA15_PERIPHERAL_MAP() bfin_read16(DMA15_PERIPHERAL_MAP)
472#define bfin_write_DMA15_PERIPHERAL_MAP(val) bfin_write16(DMA15_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500473#define bfin_read_DMA15_CURR_X_COUNT() bfin_read16(DMA15_CURR_X_COUNT)
474#define bfin_write_DMA15_CURR_X_COUNT(val) bfin_write16(DMA15_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500475#define bfin_read_DMA15_CURR_Y_COUNT() bfin_read16(DMA15_CURR_Y_COUNT)
476#define bfin_write_DMA15_CURR_Y_COUNT(val) bfin_write16(DMA15_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500477#define bfin_read_DMA16_NEXT_DESC_PTR() bfin_readPTR(DMA16_NEXT_DESC_PTR)
478#define bfin_write_DMA16_NEXT_DESC_PTR(val) bfin_writePTR(DMA16_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500479#define bfin_read_DMA16_START_ADDR() bfin_readPTR(DMA16_START_ADDR)
480#define bfin_write_DMA16_START_ADDR(val) bfin_writePTR(DMA16_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500481#define bfin_read_DMA16_CONFIG() bfin_read16(DMA16_CONFIG)
482#define bfin_write_DMA16_CONFIG(val) bfin_write16(DMA16_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500483#define bfin_read_DMA16_X_COUNT() bfin_read16(DMA16_X_COUNT)
484#define bfin_write_DMA16_X_COUNT(val) bfin_write16(DMA16_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500485#define bfin_read_DMA16_X_MODIFY() bfin_read16(DMA16_X_MODIFY)
486#define bfin_write_DMA16_X_MODIFY(val) bfin_write16(DMA16_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500487#define bfin_read_DMA16_Y_COUNT() bfin_read16(DMA16_Y_COUNT)
488#define bfin_write_DMA16_Y_COUNT(val) bfin_write16(DMA16_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500489#define bfin_read_DMA16_Y_MODIFY() bfin_read16(DMA16_Y_MODIFY)
490#define bfin_write_DMA16_Y_MODIFY(val) bfin_write16(DMA16_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500491#define bfin_read_DMA16_CURR_DESC_PTR() bfin_readPTR(DMA16_CURR_DESC_PTR)
492#define bfin_write_DMA16_CURR_DESC_PTR(val) bfin_writePTR(DMA16_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500493#define bfin_read_DMA16_CURR_ADDR() bfin_readPTR(DMA16_CURR_ADDR)
494#define bfin_write_DMA16_CURR_ADDR(val) bfin_writePTR(DMA16_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500495#define bfin_read_DMA16_IRQ_STATUS() bfin_read16(DMA16_IRQ_STATUS)
496#define bfin_write_DMA16_IRQ_STATUS(val) bfin_write16(DMA16_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500497#define bfin_read_DMA16_PERIPHERAL_MAP() bfin_read16(DMA16_PERIPHERAL_MAP)
498#define bfin_write_DMA16_PERIPHERAL_MAP(val) bfin_write16(DMA16_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500499#define bfin_read_DMA16_CURR_X_COUNT() bfin_read16(DMA16_CURR_X_COUNT)
500#define bfin_write_DMA16_CURR_X_COUNT(val) bfin_write16(DMA16_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500501#define bfin_read_DMA16_CURR_Y_COUNT() bfin_read16(DMA16_CURR_Y_COUNT)
502#define bfin_write_DMA16_CURR_Y_COUNT(val) bfin_write16(DMA16_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500503#define bfin_read_DMA17_NEXT_DESC_PTR() bfin_readPTR(DMA17_NEXT_DESC_PTR)
504#define bfin_write_DMA17_NEXT_DESC_PTR(val) bfin_writePTR(DMA17_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500505#define bfin_read_DMA17_START_ADDR() bfin_readPTR(DMA17_START_ADDR)
506#define bfin_write_DMA17_START_ADDR(val) bfin_writePTR(DMA17_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500507#define bfin_read_DMA17_CONFIG() bfin_read16(DMA17_CONFIG)
508#define bfin_write_DMA17_CONFIG(val) bfin_write16(DMA17_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500509#define bfin_read_DMA17_X_COUNT() bfin_read16(DMA17_X_COUNT)
510#define bfin_write_DMA17_X_COUNT(val) bfin_write16(DMA17_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500511#define bfin_read_DMA17_X_MODIFY() bfin_read16(DMA17_X_MODIFY)
512#define bfin_write_DMA17_X_MODIFY(val) bfin_write16(DMA17_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500513#define bfin_read_DMA17_Y_COUNT() bfin_read16(DMA17_Y_COUNT)
514#define bfin_write_DMA17_Y_COUNT(val) bfin_write16(DMA17_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500515#define bfin_read_DMA17_Y_MODIFY() bfin_read16(DMA17_Y_MODIFY)
516#define bfin_write_DMA17_Y_MODIFY(val) bfin_write16(DMA17_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500517#define bfin_read_DMA17_CURR_DESC_PTR() bfin_readPTR(DMA17_CURR_DESC_PTR)
518#define bfin_write_DMA17_CURR_DESC_PTR(val) bfin_writePTR(DMA17_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500519#define bfin_read_DMA17_CURR_ADDR() bfin_readPTR(DMA17_CURR_ADDR)
520#define bfin_write_DMA17_CURR_ADDR(val) bfin_writePTR(DMA17_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500521#define bfin_read_DMA17_IRQ_STATUS() bfin_read16(DMA17_IRQ_STATUS)
522#define bfin_write_DMA17_IRQ_STATUS(val) bfin_write16(DMA17_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500523#define bfin_read_DMA17_PERIPHERAL_MAP() bfin_read16(DMA17_PERIPHERAL_MAP)
524#define bfin_write_DMA17_PERIPHERAL_MAP(val) bfin_write16(DMA17_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500525#define bfin_read_DMA17_CURR_X_COUNT() bfin_read16(DMA17_CURR_X_COUNT)
526#define bfin_write_DMA17_CURR_X_COUNT(val) bfin_write16(DMA17_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500527#define bfin_read_DMA17_CURR_Y_COUNT() bfin_read16(DMA17_CURR_Y_COUNT)
528#define bfin_write_DMA17_CURR_Y_COUNT(val) bfin_write16(DMA17_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500529#define bfin_read_DMA18_NEXT_DESC_PTR() bfin_readPTR(DMA18_NEXT_DESC_PTR)
530#define bfin_write_DMA18_NEXT_DESC_PTR(val) bfin_writePTR(DMA18_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500531#define bfin_read_DMA18_START_ADDR() bfin_readPTR(DMA18_START_ADDR)
532#define bfin_write_DMA18_START_ADDR(val) bfin_writePTR(DMA18_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500533#define bfin_read_DMA18_CONFIG() bfin_read16(DMA18_CONFIG)
534#define bfin_write_DMA18_CONFIG(val) bfin_write16(DMA18_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500535#define bfin_read_DMA18_X_COUNT() bfin_read16(DMA18_X_COUNT)
536#define bfin_write_DMA18_X_COUNT(val) bfin_write16(DMA18_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500537#define bfin_read_DMA18_X_MODIFY() bfin_read16(DMA18_X_MODIFY)
538#define bfin_write_DMA18_X_MODIFY(val) bfin_write16(DMA18_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500539#define bfin_read_DMA18_Y_COUNT() bfin_read16(DMA18_Y_COUNT)
540#define bfin_write_DMA18_Y_COUNT(val) bfin_write16(DMA18_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500541#define bfin_read_DMA18_Y_MODIFY() bfin_read16(DMA18_Y_MODIFY)
542#define bfin_write_DMA18_Y_MODIFY(val) bfin_write16(DMA18_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500543#define bfin_read_DMA18_CURR_DESC_PTR() bfin_readPTR(DMA18_CURR_DESC_PTR)
544#define bfin_write_DMA18_CURR_DESC_PTR(val) bfin_writePTR(DMA18_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500545#define bfin_read_DMA18_CURR_ADDR() bfin_readPTR(DMA18_CURR_ADDR)
546#define bfin_write_DMA18_CURR_ADDR(val) bfin_writePTR(DMA18_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500547#define bfin_read_DMA18_IRQ_STATUS() bfin_read16(DMA18_IRQ_STATUS)
548#define bfin_write_DMA18_IRQ_STATUS(val) bfin_write16(DMA18_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500549#define bfin_read_DMA18_PERIPHERAL_MAP() bfin_read16(DMA18_PERIPHERAL_MAP)
550#define bfin_write_DMA18_PERIPHERAL_MAP(val) bfin_write16(DMA18_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500551#define bfin_read_DMA18_CURR_X_COUNT() bfin_read16(DMA18_CURR_X_COUNT)
552#define bfin_write_DMA18_CURR_X_COUNT(val) bfin_write16(DMA18_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500553#define bfin_read_DMA18_CURR_Y_COUNT() bfin_read16(DMA18_CURR_Y_COUNT)
554#define bfin_write_DMA18_CURR_Y_COUNT(val) bfin_write16(DMA18_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500555#define bfin_read_DMA19_NEXT_DESC_PTR() bfin_readPTR(DMA19_NEXT_DESC_PTR)
556#define bfin_write_DMA19_NEXT_DESC_PTR(val) bfin_writePTR(DMA19_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500557#define bfin_read_DMA19_START_ADDR() bfin_readPTR(DMA19_START_ADDR)
558#define bfin_write_DMA19_START_ADDR(val) bfin_writePTR(DMA19_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500559#define bfin_read_DMA19_CONFIG() bfin_read16(DMA19_CONFIG)
560#define bfin_write_DMA19_CONFIG(val) bfin_write16(DMA19_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500561#define bfin_read_DMA19_X_COUNT() bfin_read16(DMA19_X_COUNT)
562#define bfin_write_DMA19_X_COUNT(val) bfin_write16(DMA19_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500563#define bfin_read_DMA19_X_MODIFY() bfin_read16(DMA19_X_MODIFY)
564#define bfin_write_DMA19_X_MODIFY(val) bfin_write16(DMA19_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500565#define bfin_read_DMA19_Y_COUNT() bfin_read16(DMA19_Y_COUNT)
566#define bfin_write_DMA19_Y_COUNT(val) bfin_write16(DMA19_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500567#define bfin_read_DMA19_Y_MODIFY() bfin_read16(DMA19_Y_MODIFY)
568#define bfin_write_DMA19_Y_MODIFY(val) bfin_write16(DMA19_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500569#define bfin_read_DMA19_CURR_DESC_PTR() bfin_readPTR(DMA19_CURR_DESC_PTR)
570#define bfin_write_DMA19_CURR_DESC_PTR(val) bfin_writePTR(DMA19_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500571#define bfin_read_DMA19_CURR_ADDR() bfin_readPTR(DMA19_CURR_ADDR)
572#define bfin_write_DMA19_CURR_ADDR(val) bfin_writePTR(DMA19_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500573#define bfin_read_DMA19_IRQ_STATUS() bfin_read16(DMA19_IRQ_STATUS)
574#define bfin_write_DMA19_IRQ_STATUS(val) bfin_write16(DMA19_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500575#define bfin_read_DMA19_PERIPHERAL_MAP() bfin_read16(DMA19_PERIPHERAL_MAP)
576#define bfin_write_DMA19_PERIPHERAL_MAP(val) bfin_write16(DMA19_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500577#define bfin_read_DMA19_CURR_X_COUNT() bfin_read16(DMA19_CURR_X_COUNT)
578#define bfin_write_DMA19_CURR_X_COUNT(val) bfin_write16(DMA19_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500579#define bfin_read_DMA19_CURR_Y_COUNT() bfin_read16(DMA19_CURR_Y_COUNT)
580#define bfin_write_DMA19_CURR_Y_COUNT(val) bfin_write16(DMA19_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500581#define bfin_read_DMA20_NEXT_DESC_PTR() bfin_readPTR(DMA20_NEXT_DESC_PTR)
582#define bfin_write_DMA20_NEXT_DESC_PTR(val) bfin_writePTR(DMA20_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500583#define bfin_read_DMA20_START_ADDR() bfin_readPTR(DMA20_START_ADDR)
584#define bfin_write_DMA20_START_ADDR(val) bfin_writePTR(DMA20_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500585#define bfin_read_DMA20_CONFIG() bfin_read16(DMA20_CONFIG)
586#define bfin_write_DMA20_CONFIG(val) bfin_write16(DMA20_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500587#define bfin_read_DMA20_X_COUNT() bfin_read16(DMA20_X_COUNT)
588#define bfin_write_DMA20_X_COUNT(val) bfin_write16(DMA20_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500589#define bfin_read_DMA20_X_MODIFY() bfin_read16(DMA20_X_MODIFY)
590#define bfin_write_DMA20_X_MODIFY(val) bfin_write16(DMA20_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500591#define bfin_read_DMA20_Y_COUNT() bfin_read16(DMA20_Y_COUNT)
592#define bfin_write_DMA20_Y_COUNT(val) bfin_write16(DMA20_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500593#define bfin_read_DMA20_Y_MODIFY() bfin_read16(DMA20_Y_MODIFY)
594#define bfin_write_DMA20_Y_MODIFY(val) bfin_write16(DMA20_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500595#define bfin_read_DMA20_CURR_DESC_PTR() bfin_readPTR(DMA20_CURR_DESC_PTR)
596#define bfin_write_DMA20_CURR_DESC_PTR(val) bfin_writePTR(DMA20_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500597#define bfin_read_DMA20_CURR_ADDR() bfin_readPTR(DMA20_CURR_ADDR)
598#define bfin_write_DMA20_CURR_ADDR(val) bfin_writePTR(DMA20_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500599#define bfin_read_DMA20_IRQ_STATUS() bfin_read16(DMA20_IRQ_STATUS)
600#define bfin_write_DMA20_IRQ_STATUS(val) bfin_write16(DMA20_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500601#define bfin_read_DMA20_PERIPHERAL_MAP() bfin_read16(DMA20_PERIPHERAL_MAP)
602#define bfin_write_DMA20_PERIPHERAL_MAP(val) bfin_write16(DMA20_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500603#define bfin_read_DMA20_CURR_X_COUNT() bfin_read16(DMA20_CURR_X_COUNT)
604#define bfin_write_DMA20_CURR_X_COUNT(val) bfin_write16(DMA20_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500605#define bfin_read_DMA20_CURR_Y_COUNT() bfin_read16(DMA20_CURR_Y_COUNT)
606#define bfin_write_DMA20_CURR_Y_COUNT(val) bfin_write16(DMA20_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500607#define bfin_read_DMA21_NEXT_DESC_PTR() bfin_readPTR(DMA21_NEXT_DESC_PTR)
608#define bfin_write_DMA21_NEXT_DESC_PTR(val) bfin_writePTR(DMA21_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500609#define bfin_read_DMA21_START_ADDR() bfin_readPTR(DMA21_START_ADDR)
610#define bfin_write_DMA21_START_ADDR(val) bfin_writePTR(DMA21_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500611#define bfin_read_DMA21_CONFIG() bfin_read16(DMA21_CONFIG)
612#define bfin_write_DMA21_CONFIG(val) bfin_write16(DMA21_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500613#define bfin_read_DMA21_X_COUNT() bfin_read16(DMA21_X_COUNT)
614#define bfin_write_DMA21_X_COUNT(val) bfin_write16(DMA21_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500615#define bfin_read_DMA21_X_MODIFY() bfin_read16(DMA21_X_MODIFY)
616#define bfin_write_DMA21_X_MODIFY(val) bfin_write16(DMA21_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500617#define bfin_read_DMA21_Y_COUNT() bfin_read16(DMA21_Y_COUNT)
618#define bfin_write_DMA21_Y_COUNT(val) bfin_write16(DMA21_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500619#define bfin_read_DMA21_Y_MODIFY() bfin_read16(DMA21_Y_MODIFY)
620#define bfin_write_DMA21_Y_MODIFY(val) bfin_write16(DMA21_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500621#define bfin_read_DMA21_CURR_DESC_PTR() bfin_readPTR(DMA21_CURR_DESC_PTR)
622#define bfin_write_DMA21_CURR_DESC_PTR(val) bfin_writePTR(DMA21_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500623#define bfin_read_DMA21_CURR_ADDR() bfin_readPTR(DMA21_CURR_ADDR)
624#define bfin_write_DMA21_CURR_ADDR(val) bfin_writePTR(DMA21_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500625#define bfin_read_DMA21_IRQ_STATUS() bfin_read16(DMA21_IRQ_STATUS)
626#define bfin_write_DMA21_IRQ_STATUS(val) bfin_write16(DMA21_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500627#define bfin_read_DMA21_PERIPHERAL_MAP() bfin_read16(DMA21_PERIPHERAL_MAP)
628#define bfin_write_DMA21_PERIPHERAL_MAP(val) bfin_write16(DMA21_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500629#define bfin_read_DMA21_CURR_X_COUNT() bfin_read16(DMA21_CURR_X_COUNT)
630#define bfin_write_DMA21_CURR_X_COUNT(val) bfin_write16(DMA21_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500631#define bfin_read_DMA21_CURR_Y_COUNT() bfin_read16(DMA21_CURR_Y_COUNT)
632#define bfin_write_DMA21_CURR_Y_COUNT(val) bfin_write16(DMA21_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500633#define bfin_read_DMA22_NEXT_DESC_PTR() bfin_readPTR(DMA22_NEXT_DESC_PTR)
634#define bfin_write_DMA22_NEXT_DESC_PTR(val) bfin_writePTR(DMA22_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500635#define bfin_read_DMA22_START_ADDR() bfin_readPTR(DMA22_START_ADDR)
636#define bfin_write_DMA22_START_ADDR(val) bfin_writePTR(DMA22_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500637#define bfin_read_DMA22_CONFIG() bfin_read16(DMA22_CONFIG)
638#define bfin_write_DMA22_CONFIG(val) bfin_write16(DMA22_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500639#define bfin_read_DMA22_X_COUNT() bfin_read16(DMA22_X_COUNT)
640#define bfin_write_DMA22_X_COUNT(val) bfin_write16(DMA22_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500641#define bfin_read_DMA22_X_MODIFY() bfin_read16(DMA22_X_MODIFY)
642#define bfin_write_DMA22_X_MODIFY(val) bfin_write16(DMA22_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500643#define bfin_read_DMA22_Y_COUNT() bfin_read16(DMA22_Y_COUNT)
644#define bfin_write_DMA22_Y_COUNT(val) bfin_write16(DMA22_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500645#define bfin_read_DMA22_Y_MODIFY() bfin_read16(DMA22_Y_MODIFY)
646#define bfin_write_DMA22_Y_MODIFY(val) bfin_write16(DMA22_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500647#define bfin_read_DMA22_CURR_DESC_PTR() bfin_readPTR(DMA22_CURR_DESC_PTR)
648#define bfin_write_DMA22_CURR_DESC_PTR(val) bfin_writePTR(DMA22_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500649#define bfin_read_DMA22_CURR_ADDR() bfin_readPTR(DMA22_CURR_ADDR)
650#define bfin_write_DMA22_CURR_ADDR(val) bfin_writePTR(DMA22_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500651#define bfin_read_DMA22_IRQ_STATUS() bfin_read16(DMA22_IRQ_STATUS)
652#define bfin_write_DMA22_IRQ_STATUS(val) bfin_write16(DMA22_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500653#define bfin_read_DMA22_PERIPHERAL_MAP() bfin_read16(DMA22_PERIPHERAL_MAP)
654#define bfin_write_DMA22_PERIPHERAL_MAP(val) bfin_write16(DMA22_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500655#define bfin_read_DMA22_CURR_X_COUNT() bfin_read16(DMA22_CURR_X_COUNT)
656#define bfin_write_DMA22_CURR_X_COUNT(val) bfin_write16(DMA22_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500657#define bfin_read_DMA22_CURR_Y_COUNT() bfin_read16(DMA22_CURR_Y_COUNT)
658#define bfin_write_DMA22_CURR_Y_COUNT(val) bfin_write16(DMA22_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500659#define bfin_read_DMA23_NEXT_DESC_PTR() bfin_readPTR(DMA23_NEXT_DESC_PTR)
660#define bfin_write_DMA23_NEXT_DESC_PTR(val) bfin_writePTR(DMA23_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500661#define bfin_read_DMA23_START_ADDR() bfin_readPTR(DMA23_START_ADDR)
662#define bfin_write_DMA23_START_ADDR(val) bfin_writePTR(DMA23_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500663#define bfin_read_DMA23_CONFIG() bfin_read16(DMA23_CONFIG)
664#define bfin_write_DMA23_CONFIG(val) bfin_write16(DMA23_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500665#define bfin_read_DMA23_X_COUNT() bfin_read16(DMA23_X_COUNT)
666#define bfin_write_DMA23_X_COUNT(val) bfin_write16(DMA23_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500667#define bfin_read_DMA23_X_MODIFY() bfin_read16(DMA23_X_MODIFY)
668#define bfin_write_DMA23_X_MODIFY(val) bfin_write16(DMA23_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500669#define bfin_read_DMA23_Y_COUNT() bfin_read16(DMA23_Y_COUNT)
670#define bfin_write_DMA23_Y_COUNT(val) bfin_write16(DMA23_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500671#define bfin_read_DMA23_Y_MODIFY() bfin_read16(DMA23_Y_MODIFY)
672#define bfin_write_DMA23_Y_MODIFY(val) bfin_write16(DMA23_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500673#define bfin_read_DMA23_CURR_DESC_PTR() bfin_readPTR(DMA23_CURR_DESC_PTR)
674#define bfin_write_DMA23_CURR_DESC_PTR(val) bfin_writePTR(DMA23_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500675#define bfin_read_DMA23_CURR_ADDR() bfin_readPTR(DMA23_CURR_ADDR)
676#define bfin_write_DMA23_CURR_ADDR(val) bfin_writePTR(DMA23_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500677#define bfin_read_DMA23_IRQ_STATUS() bfin_read16(DMA23_IRQ_STATUS)
678#define bfin_write_DMA23_IRQ_STATUS(val) bfin_write16(DMA23_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500679#define bfin_read_DMA23_PERIPHERAL_MAP() bfin_read16(DMA23_PERIPHERAL_MAP)
680#define bfin_write_DMA23_PERIPHERAL_MAP(val) bfin_write16(DMA23_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500681#define bfin_read_DMA23_CURR_X_COUNT() bfin_read16(DMA23_CURR_X_COUNT)
682#define bfin_write_DMA23_CURR_X_COUNT(val) bfin_write16(DMA23_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500683#define bfin_read_DMA23_CURR_Y_COUNT() bfin_read16(DMA23_CURR_Y_COUNT)
684#define bfin_write_DMA23_CURR_Y_COUNT(val) bfin_write16(DMA23_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500685#define bfin_read_MDMA_D0_NEXT_DESC_PTR() bfin_readPTR(MDMA_D0_NEXT_DESC_PTR)
686#define bfin_write_MDMA_D0_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_D0_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500687#define bfin_read_MDMA_D0_START_ADDR() bfin_readPTR(MDMA_D0_START_ADDR)
688#define bfin_write_MDMA_D0_START_ADDR(val) bfin_writePTR(MDMA_D0_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500689#define bfin_read_MDMA_D0_CONFIG() bfin_read16(MDMA_D0_CONFIG)
690#define bfin_write_MDMA_D0_CONFIG(val) bfin_write16(MDMA_D0_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500691#define bfin_read_MDMA_D0_X_COUNT() bfin_read16(MDMA_D0_X_COUNT)
692#define bfin_write_MDMA_D0_X_COUNT(val) bfin_write16(MDMA_D0_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500693#define bfin_read_MDMA_D0_X_MODIFY() bfin_read16(MDMA_D0_X_MODIFY)
694#define bfin_write_MDMA_D0_X_MODIFY(val) bfin_write16(MDMA_D0_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500695#define bfin_read_MDMA_D0_Y_COUNT() bfin_read16(MDMA_D0_Y_COUNT)
696#define bfin_write_MDMA_D0_Y_COUNT(val) bfin_write16(MDMA_D0_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500697#define bfin_read_MDMA_D0_Y_MODIFY() bfin_read16(MDMA_D0_Y_MODIFY)
698#define bfin_write_MDMA_D0_Y_MODIFY(val) bfin_write16(MDMA_D0_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500699#define bfin_read_MDMA_D0_CURR_DESC_PTR() bfin_readPTR(MDMA_D0_CURR_DESC_PTR)
700#define bfin_write_MDMA_D0_CURR_DESC_PTR(val) bfin_writePTR(MDMA_D0_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500701#define bfin_read_MDMA_D0_CURR_ADDR() bfin_readPTR(MDMA_D0_CURR_ADDR)
702#define bfin_write_MDMA_D0_CURR_ADDR(val) bfin_writePTR(MDMA_D0_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500703#define bfin_read_MDMA_D0_IRQ_STATUS() bfin_read16(MDMA_D0_IRQ_STATUS)
704#define bfin_write_MDMA_D0_IRQ_STATUS(val) bfin_write16(MDMA_D0_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500705#define bfin_read_MDMA_D0_PERIPHERAL_MAP() bfin_read16(MDMA_D0_PERIPHERAL_MAP)
706#define bfin_write_MDMA_D0_PERIPHERAL_MAP(val) bfin_write16(MDMA_D0_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500707#define bfin_read_MDMA_D0_CURR_X_COUNT() bfin_read16(MDMA_D0_CURR_X_COUNT)
708#define bfin_write_MDMA_D0_CURR_X_COUNT(val) bfin_write16(MDMA_D0_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500709#define bfin_read_MDMA_D0_CURR_Y_COUNT() bfin_read16(MDMA_D0_CURR_Y_COUNT)
710#define bfin_write_MDMA_D0_CURR_Y_COUNT(val) bfin_write16(MDMA_D0_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500711#define bfin_read_MDMA_S0_NEXT_DESC_PTR() bfin_readPTR(MDMA_S0_NEXT_DESC_PTR)
712#define bfin_write_MDMA_S0_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_S0_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500713#define bfin_read_MDMA_S0_START_ADDR() bfin_readPTR(MDMA_S0_START_ADDR)
714#define bfin_write_MDMA_S0_START_ADDR(val) bfin_writePTR(MDMA_S0_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500715#define bfin_read_MDMA_S0_CONFIG() bfin_read16(MDMA_S0_CONFIG)
716#define bfin_write_MDMA_S0_CONFIG(val) bfin_write16(MDMA_S0_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500717#define bfin_read_MDMA_S0_X_COUNT() bfin_read16(MDMA_S0_X_COUNT)
718#define bfin_write_MDMA_S0_X_COUNT(val) bfin_write16(MDMA_S0_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500719#define bfin_read_MDMA_S0_X_MODIFY() bfin_read16(MDMA_S0_X_MODIFY)
720#define bfin_write_MDMA_S0_X_MODIFY(val) bfin_write16(MDMA_S0_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500721#define bfin_read_MDMA_S0_Y_COUNT() bfin_read16(MDMA_S0_Y_COUNT)
722#define bfin_write_MDMA_S0_Y_COUNT(val) bfin_write16(MDMA_S0_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500723#define bfin_read_MDMA_S0_Y_MODIFY() bfin_read16(MDMA_S0_Y_MODIFY)
724#define bfin_write_MDMA_S0_Y_MODIFY(val) bfin_write16(MDMA_S0_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500725#define bfin_read_MDMA_S0_CURR_DESC_PTR() bfin_readPTR(MDMA_S0_CURR_DESC_PTR)
726#define bfin_write_MDMA_S0_CURR_DESC_PTR(val) bfin_writePTR(MDMA_S0_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500727#define bfin_read_MDMA_S0_CURR_ADDR() bfin_readPTR(MDMA_S0_CURR_ADDR)
728#define bfin_write_MDMA_S0_CURR_ADDR(val) bfin_writePTR(MDMA_S0_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500729#define bfin_read_MDMA_S0_IRQ_STATUS() bfin_read16(MDMA_S0_IRQ_STATUS)
730#define bfin_write_MDMA_S0_IRQ_STATUS(val) bfin_write16(MDMA_S0_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500731#define bfin_read_MDMA_S0_PERIPHERAL_MAP() bfin_read16(MDMA_S0_PERIPHERAL_MAP)
732#define bfin_write_MDMA_S0_PERIPHERAL_MAP(val) bfin_write16(MDMA_S0_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500733#define bfin_read_MDMA_S0_CURR_X_COUNT() bfin_read16(MDMA_S0_CURR_X_COUNT)
734#define bfin_write_MDMA_S0_CURR_X_COUNT(val) bfin_write16(MDMA_S0_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500735#define bfin_read_MDMA_S0_CURR_Y_COUNT() bfin_read16(MDMA_S0_CURR_Y_COUNT)
736#define bfin_write_MDMA_S0_CURR_Y_COUNT(val) bfin_write16(MDMA_S0_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500737#define bfin_read_MDMA_D1_NEXT_DESC_PTR() bfin_readPTR(MDMA_D1_NEXT_DESC_PTR)
738#define bfin_write_MDMA_D1_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_D1_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500739#define bfin_read_MDMA_D1_START_ADDR() bfin_readPTR(MDMA_D1_START_ADDR)
740#define bfin_write_MDMA_D1_START_ADDR(val) bfin_writePTR(MDMA_D1_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500741#define bfin_read_MDMA_D1_CONFIG() bfin_read16(MDMA_D1_CONFIG)
742#define bfin_write_MDMA_D1_CONFIG(val) bfin_write16(MDMA_D1_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500743#define bfin_read_MDMA_D1_X_COUNT() bfin_read16(MDMA_D1_X_COUNT)
744#define bfin_write_MDMA_D1_X_COUNT(val) bfin_write16(MDMA_D1_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500745#define bfin_read_MDMA_D1_X_MODIFY() bfin_read16(MDMA_D1_X_MODIFY)
746#define bfin_write_MDMA_D1_X_MODIFY(val) bfin_write16(MDMA_D1_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500747#define bfin_read_MDMA_D1_Y_COUNT() bfin_read16(MDMA_D1_Y_COUNT)
748#define bfin_write_MDMA_D1_Y_COUNT(val) bfin_write16(MDMA_D1_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500749#define bfin_read_MDMA_D1_Y_MODIFY() bfin_read16(MDMA_D1_Y_MODIFY)
750#define bfin_write_MDMA_D1_Y_MODIFY(val) bfin_write16(MDMA_D1_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500751#define bfin_read_MDMA_D1_CURR_DESC_PTR() bfin_readPTR(MDMA_D1_CURR_DESC_PTR)
752#define bfin_write_MDMA_D1_CURR_DESC_PTR(val) bfin_writePTR(MDMA_D1_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500753#define bfin_read_MDMA_D1_CURR_ADDR() bfin_readPTR(MDMA_D1_CURR_ADDR)
754#define bfin_write_MDMA_D1_CURR_ADDR(val) bfin_writePTR(MDMA_D1_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500755#define bfin_read_MDMA_D1_IRQ_STATUS() bfin_read16(MDMA_D1_IRQ_STATUS)
756#define bfin_write_MDMA_D1_IRQ_STATUS(val) bfin_write16(MDMA_D1_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500757#define bfin_read_MDMA_D1_PERIPHERAL_MAP() bfin_read16(MDMA_D1_PERIPHERAL_MAP)
758#define bfin_write_MDMA_D1_PERIPHERAL_MAP(val) bfin_write16(MDMA_D1_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500759#define bfin_read_MDMA_D1_CURR_X_COUNT() bfin_read16(MDMA_D1_CURR_X_COUNT)
760#define bfin_write_MDMA_D1_CURR_X_COUNT(val) bfin_write16(MDMA_D1_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500761#define bfin_read_MDMA_D1_CURR_Y_COUNT() bfin_read16(MDMA_D1_CURR_Y_COUNT)
762#define bfin_write_MDMA_D1_CURR_Y_COUNT(val) bfin_write16(MDMA_D1_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500763#define bfin_read_MDMA_S1_NEXT_DESC_PTR() bfin_readPTR(MDMA_S1_NEXT_DESC_PTR)
764#define bfin_write_MDMA_S1_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_S1_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500765#define bfin_read_MDMA_S1_START_ADDR() bfin_readPTR(MDMA_S1_START_ADDR)
766#define bfin_write_MDMA_S1_START_ADDR(val) bfin_writePTR(MDMA_S1_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500767#define bfin_read_MDMA_S1_CONFIG() bfin_read16(MDMA_S1_CONFIG)
768#define bfin_write_MDMA_S1_CONFIG(val) bfin_write16(MDMA_S1_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500769#define bfin_read_MDMA_S1_X_COUNT() bfin_read16(MDMA_S1_X_COUNT)
770#define bfin_write_MDMA_S1_X_COUNT(val) bfin_write16(MDMA_S1_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500771#define bfin_read_MDMA_S1_X_MODIFY() bfin_read16(MDMA_S1_X_MODIFY)
772#define bfin_write_MDMA_S1_X_MODIFY(val) bfin_write16(MDMA_S1_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500773#define bfin_read_MDMA_S1_Y_COUNT() bfin_read16(MDMA_S1_Y_COUNT)
774#define bfin_write_MDMA_S1_Y_COUNT(val) bfin_write16(MDMA_S1_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500775#define bfin_read_MDMA_S1_Y_MODIFY() bfin_read16(MDMA_S1_Y_MODIFY)
776#define bfin_write_MDMA_S1_Y_MODIFY(val) bfin_write16(MDMA_S1_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500777#define bfin_read_MDMA_S1_CURR_DESC_PTR() bfin_readPTR(MDMA_S1_CURR_DESC_PTR)
778#define bfin_write_MDMA_S1_CURR_DESC_PTR(val) bfin_writePTR(MDMA_S1_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500779#define bfin_read_MDMA_S1_CURR_ADDR() bfin_readPTR(MDMA_S1_CURR_ADDR)
780#define bfin_write_MDMA_S1_CURR_ADDR(val) bfin_writePTR(MDMA_S1_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500781#define bfin_read_MDMA_S1_IRQ_STATUS() bfin_read16(MDMA_S1_IRQ_STATUS)
782#define bfin_write_MDMA_S1_IRQ_STATUS(val) bfin_write16(MDMA_S1_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500783#define bfin_read_MDMA_S1_PERIPHERAL_MAP() bfin_read16(MDMA_S1_PERIPHERAL_MAP)
784#define bfin_write_MDMA_S1_PERIPHERAL_MAP(val) bfin_write16(MDMA_S1_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500785#define bfin_read_MDMA_S1_CURR_X_COUNT() bfin_read16(MDMA_S1_CURR_X_COUNT)
786#define bfin_write_MDMA_S1_CURR_X_COUNT(val) bfin_write16(MDMA_S1_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500787#define bfin_read_MDMA_S1_CURR_Y_COUNT() bfin_read16(MDMA_S1_CURR_Y_COUNT)
788#define bfin_write_MDMA_S1_CURR_Y_COUNT(val) bfin_write16(MDMA_S1_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500789#define bfin_read_MDMA_D2_NEXT_DESC_PTR() bfin_readPTR(MDMA_D2_NEXT_DESC_PTR)
790#define bfin_write_MDMA_D2_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_D2_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500791#define bfin_read_MDMA_D2_START_ADDR() bfin_readPTR(MDMA_D2_START_ADDR)
792#define bfin_write_MDMA_D2_START_ADDR(val) bfin_writePTR(MDMA_D2_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500793#define bfin_read_MDMA_D2_CONFIG() bfin_read16(MDMA_D2_CONFIG)
794#define bfin_write_MDMA_D2_CONFIG(val) bfin_write16(MDMA_D2_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500795#define bfin_read_MDMA_D2_X_COUNT() bfin_read16(MDMA_D2_X_COUNT)
796#define bfin_write_MDMA_D2_X_COUNT(val) bfin_write16(MDMA_D2_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500797#define bfin_read_MDMA_D2_X_MODIFY() bfin_read16(MDMA_D2_X_MODIFY)
798#define bfin_write_MDMA_D2_X_MODIFY(val) bfin_write16(MDMA_D2_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500799#define bfin_read_MDMA_D2_Y_COUNT() bfin_read16(MDMA_D2_Y_COUNT)
800#define bfin_write_MDMA_D2_Y_COUNT(val) bfin_write16(MDMA_D2_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500801#define bfin_read_MDMA_D2_Y_MODIFY() bfin_read16(MDMA_D2_Y_MODIFY)
802#define bfin_write_MDMA_D2_Y_MODIFY(val) bfin_write16(MDMA_D2_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500803#define bfin_read_MDMA_D2_CURR_DESC_PTR() bfin_readPTR(MDMA_D2_CURR_DESC_PTR)
804#define bfin_write_MDMA_D2_CURR_DESC_PTR(val) bfin_writePTR(MDMA_D2_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500805#define bfin_read_MDMA_D2_CURR_ADDR() bfin_readPTR(MDMA_D2_CURR_ADDR)
806#define bfin_write_MDMA_D2_CURR_ADDR(val) bfin_writePTR(MDMA_D2_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500807#define bfin_read_MDMA_D2_IRQ_STATUS() bfin_read16(MDMA_D2_IRQ_STATUS)
808#define bfin_write_MDMA_D2_IRQ_STATUS(val) bfin_write16(MDMA_D2_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500809#define bfin_read_MDMA_D2_PERIPHERAL_MAP() bfin_read16(MDMA_D2_PERIPHERAL_MAP)
810#define bfin_write_MDMA_D2_PERIPHERAL_MAP(val) bfin_write16(MDMA_D2_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500811#define bfin_read_MDMA_D2_CURR_X_COUNT() bfin_read16(MDMA_D2_CURR_X_COUNT)
812#define bfin_write_MDMA_D2_CURR_X_COUNT(val) bfin_write16(MDMA_D2_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500813#define bfin_read_MDMA_D2_CURR_Y_COUNT() bfin_read16(MDMA_D2_CURR_Y_COUNT)
814#define bfin_write_MDMA_D2_CURR_Y_COUNT(val) bfin_write16(MDMA_D2_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500815#define bfin_read_MDMA_S2_NEXT_DESC_PTR() bfin_readPTR(MDMA_S2_NEXT_DESC_PTR)
816#define bfin_write_MDMA_S2_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_S2_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500817#define bfin_read_MDMA_S2_START_ADDR() bfin_readPTR(MDMA_S2_START_ADDR)
818#define bfin_write_MDMA_S2_START_ADDR(val) bfin_writePTR(MDMA_S2_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500819#define bfin_read_MDMA_S2_CONFIG() bfin_read16(MDMA_S2_CONFIG)
820#define bfin_write_MDMA_S2_CONFIG(val) bfin_write16(MDMA_S2_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500821#define bfin_read_MDMA_S2_X_COUNT() bfin_read16(MDMA_S2_X_COUNT)
822#define bfin_write_MDMA_S2_X_COUNT(val) bfin_write16(MDMA_S2_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500823#define bfin_read_MDMA_S2_X_MODIFY() bfin_read16(MDMA_S2_X_MODIFY)
824#define bfin_write_MDMA_S2_X_MODIFY(val) bfin_write16(MDMA_S2_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500825#define bfin_read_MDMA_S2_Y_COUNT() bfin_read16(MDMA_S2_Y_COUNT)
826#define bfin_write_MDMA_S2_Y_COUNT(val) bfin_write16(MDMA_S2_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500827#define bfin_read_MDMA_S2_Y_MODIFY() bfin_read16(MDMA_S2_Y_MODIFY)
828#define bfin_write_MDMA_S2_Y_MODIFY(val) bfin_write16(MDMA_S2_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500829#define bfin_read_MDMA_S2_CURR_DESC_PTR() bfin_readPTR(MDMA_S2_CURR_DESC_PTR)
830#define bfin_write_MDMA_S2_CURR_DESC_PTR(val) bfin_writePTR(MDMA_S2_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500831#define bfin_read_MDMA_S2_CURR_ADDR() bfin_readPTR(MDMA_S2_CURR_ADDR)
832#define bfin_write_MDMA_S2_CURR_ADDR(val) bfin_writePTR(MDMA_S2_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500833#define bfin_read_MDMA_S2_IRQ_STATUS() bfin_read16(MDMA_S2_IRQ_STATUS)
834#define bfin_write_MDMA_S2_IRQ_STATUS(val) bfin_write16(MDMA_S2_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500835#define bfin_read_MDMA_S2_PERIPHERAL_MAP() bfin_read16(MDMA_S2_PERIPHERAL_MAP)
836#define bfin_write_MDMA_S2_PERIPHERAL_MAP(val) bfin_write16(MDMA_S2_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500837#define bfin_read_MDMA_S2_CURR_X_COUNT() bfin_read16(MDMA_S2_CURR_X_COUNT)
838#define bfin_write_MDMA_S2_CURR_X_COUNT(val) bfin_write16(MDMA_S2_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500839#define bfin_read_MDMA_S2_CURR_Y_COUNT() bfin_read16(MDMA_S2_CURR_Y_COUNT)
840#define bfin_write_MDMA_S2_CURR_Y_COUNT(val) bfin_write16(MDMA_S2_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500841#define bfin_read_MDMA_D3_NEXT_DESC_PTR() bfin_readPTR(MDMA_D3_NEXT_DESC_PTR)
842#define bfin_write_MDMA_D3_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_D3_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500843#define bfin_read_MDMA_D3_START_ADDR() bfin_readPTR(MDMA_D3_START_ADDR)
844#define bfin_write_MDMA_D3_START_ADDR(val) bfin_writePTR(MDMA_D3_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500845#define bfin_read_MDMA_D3_CONFIG() bfin_read16(MDMA_D3_CONFIG)
846#define bfin_write_MDMA_D3_CONFIG(val) bfin_write16(MDMA_D3_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500847#define bfin_read_MDMA_D3_X_COUNT() bfin_read16(MDMA_D3_X_COUNT)
848#define bfin_write_MDMA_D3_X_COUNT(val) bfin_write16(MDMA_D3_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500849#define bfin_read_MDMA_D3_X_MODIFY() bfin_read16(MDMA_D3_X_MODIFY)
850#define bfin_write_MDMA_D3_X_MODIFY(val) bfin_write16(MDMA_D3_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500851#define bfin_read_MDMA_D3_Y_COUNT() bfin_read16(MDMA_D3_Y_COUNT)
852#define bfin_write_MDMA_D3_Y_COUNT(val) bfin_write16(MDMA_D3_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500853#define bfin_read_MDMA_D3_Y_MODIFY() bfin_read16(MDMA_D3_Y_MODIFY)
854#define bfin_write_MDMA_D3_Y_MODIFY(val) bfin_write16(MDMA_D3_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500855#define bfin_read_MDMA_D3_CURR_DESC_PTR() bfin_readPTR(MDMA_D3_CURR_DESC_PTR)
856#define bfin_write_MDMA_D3_CURR_DESC_PTR(val) bfin_writePTR(MDMA_D3_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500857#define bfin_read_MDMA_D3_CURR_ADDR() bfin_readPTR(MDMA_D3_CURR_ADDR)
858#define bfin_write_MDMA_D3_CURR_ADDR(val) bfin_writePTR(MDMA_D3_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500859#define bfin_read_MDMA_D3_IRQ_STATUS() bfin_read16(MDMA_D3_IRQ_STATUS)
860#define bfin_write_MDMA_D3_IRQ_STATUS(val) bfin_write16(MDMA_D3_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500861#define bfin_read_MDMA_D3_PERIPHERAL_MAP() bfin_read16(MDMA_D3_PERIPHERAL_MAP)
862#define bfin_write_MDMA_D3_PERIPHERAL_MAP(val) bfin_write16(MDMA_D3_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500863#define bfin_read_MDMA_D3_CURR_X_COUNT() bfin_read16(MDMA_D3_CURR_X_COUNT)
864#define bfin_write_MDMA_D3_CURR_X_COUNT(val) bfin_write16(MDMA_D3_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500865#define bfin_read_MDMA_D3_CURR_Y_COUNT() bfin_read16(MDMA_D3_CURR_Y_COUNT)
866#define bfin_write_MDMA_D3_CURR_Y_COUNT(val) bfin_write16(MDMA_D3_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500867#define bfin_read_MDMA_S3_NEXT_DESC_PTR() bfin_readPTR(MDMA_S3_NEXT_DESC_PTR)
868#define bfin_write_MDMA_S3_NEXT_DESC_PTR(val) bfin_writePTR(MDMA_S3_NEXT_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500869#define bfin_read_MDMA_S3_START_ADDR() bfin_readPTR(MDMA_S3_START_ADDR)
870#define bfin_write_MDMA_S3_START_ADDR(val) bfin_writePTR(MDMA_S3_START_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500871#define bfin_read_MDMA_S3_CONFIG() bfin_read16(MDMA_S3_CONFIG)
872#define bfin_write_MDMA_S3_CONFIG(val) bfin_write16(MDMA_S3_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500873#define bfin_read_MDMA_S3_X_COUNT() bfin_read16(MDMA_S3_X_COUNT)
874#define bfin_write_MDMA_S3_X_COUNT(val) bfin_write16(MDMA_S3_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500875#define bfin_read_MDMA_S3_X_MODIFY() bfin_read16(MDMA_S3_X_MODIFY)
876#define bfin_write_MDMA_S3_X_MODIFY(val) bfin_write16(MDMA_S3_X_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500877#define bfin_read_MDMA_S3_Y_COUNT() bfin_read16(MDMA_S3_Y_COUNT)
878#define bfin_write_MDMA_S3_Y_COUNT(val) bfin_write16(MDMA_S3_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500879#define bfin_read_MDMA_S3_Y_MODIFY() bfin_read16(MDMA_S3_Y_MODIFY)
880#define bfin_write_MDMA_S3_Y_MODIFY(val) bfin_write16(MDMA_S3_Y_MODIFY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500881#define bfin_read_MDMA_S3_CURR_DESC_PTR() bfin_readPTR(MDMA_S3_CURR_DESC_PTR)
882#define bfin_write_MDMA_S3_CURR_DESC_PTR(val) bfin_writePTR(MDMA_S3_CURR_DESC_PTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500883#define bfin_read_MDMA_S3_CURR_ADDR() bfin_readPTR(MDMA_S3_CURR_ADDR)
884#define bfin_write_MDMA_S3_CURR_ADDR(val) bfin_writePTR(MDMA_S3_CURR_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500885#define bfin_read_MDMA_S3_IRQ_STATUS() bfin_read16(MDMA_S3_IRQ_STATUS)
886#define bfin_write_MDMA_S3_IRQ_STATUS(val) bfin_write16(MDMA_S3_IRQ_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500887#define bfin_read_MDMA_S3_PERIPHERAL_MAP() bfin_read16(MDMA_S3_PERIPHERAL_MAP)
888#define bfin_write_MDMA_S3_PERIPHERAL_MAP(val) bfin_write16(MDMA_S3_PERIPHERAL_MAP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500889#define bfin_read_MDMA_S3_CURR_X_COUNT() bfin_read16(MDMA_S3_CURR_X_COUNT)
890#define bfin_write_MDMA_S3_CURR_X_COUNT(val) bfin_write16(MDMA_S3_CURR_X_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500891#define bfin_read_MDMA_S3_CURR_Y_COUNT() bfin_read16(MDMA_S3_CURR_Y_COUNT)
892#define bfin_write_MDMA_S3_CURR_Y_COUNT(val) bfin_write16(MDMA_S3_CURR_Y_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500893#define bfin_read_HMDMA0_CONTROL() bfin_read16(HMDMA0_CONTROL)
894#define bfin_write_HMDMA0_CONTROL(val) bfin_write16(HMDMA0_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500895#define bfin_read_HMDMA0_ECINIT() bfin_read16(HMDMA0_ECINIT)
896#define bfin_write_HMDMA0_ECINIT(val) bfin_write16(HMDMA0_ECINIT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500897#define bfin_read_HMDMA0_BCINIT() bfin_read16(HMDMA0_BCINIT)
898#define bfin_write_HMDMA0_BCINIT(val) bfin_write16(HMDMA0_BCINIT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500899#define bfin_read_HMDMA0_ECOUNT() bfin_read16(HMDMA0_ECOUNT)
900#define bfin_write_HMDMA0_ECOUNT(val) bfin_write16(HMDMA0_ECOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500901#define bfin_read_HMDMA0_BCOUNT() bfin_read16(HMDMA0_BCOUNT)
902#define bfin_write_HMDMA0_BCOUNT(val) bfin_write16(HMDMA0_BCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500903#define bfin_read_HMDMA0_ECURGENT() bfin_read16(HMDMA0_ECURGENT)
904#define bfin_write_HMDMA0_ECURGENT(val) bfin_write16(HMDMA0_ECURGENT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500905#define bfin_read_HMDMA0_ECOVERFLOW() bfin_read16(HMDMA0_ECOVERFLOW)
906#define bfin_write_HMDMA0_ECOVERFLOW(val) bfin_write16(HMDMA0_ECOVERFLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500907#define bfin_read_HMDMA1_CONTROL() bfin_read16(HMDMA1_CONTROL)
908#define bfin_write_HMDMA1_CONTROL(val) bfin_write16(HMDMA1_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500909#define bfin_read_HMDMA1_ECINIT() bfin_read16(HMDMA1_ECINIT)
910#define bfin_write_HMDMA1_ECINIT(val) bfin_write16(HMDMA1_ECINIT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500911#define bfin_read_HMDMA1_BCINIT() bfin_read16(HMDMA1_BCINIT)
912#define bfin_write_HMDMA1_BCINIT(val) bfin_write16(HMDMA1_BCINIT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500913#define bfin_read_HMDMA1_ECURGENT() bfin_read16(HMDMA1_ECURGENT)
914#define bfin_write_HMDMA1_ECURGENT(val) bfin_write16(HMDMA1_ECURGENT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500915#define bfin_read_HMDMA1_ECOVERFLOW() bfin_read16(HMDMA1_ECOVERFLOW)
916#define bfin_write_HMDMA1_ECOVERFLOW(val) bfin_write16(HMDMA1_ECOVERFLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500917#define bfin_read_HMDMA1_ECOUNT() bfin_read16(HMDMA1_ECOUNT)
918#define bfin_write_HMDMA1_ECOUNT(val) bfin_write16(HMDMA1_ECOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500919#define bfin_read_HMDMA1_BCOUNT() bfin_read16(HMDMA1_BCOUNT)
920#define bfin_write_HMDMA1_BCOUNT(val) bfin_write16(HMDMA1_BCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500921#define bfin_read_EBIU_AMGCTL() bfin_read16(EBIU_AMGCTL)
922#define bfin_write_EBIU_AMGCTL(val) bfin_write16(EBIU_AMGCTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500923#define bfin_read_EBIU_AMBCTL0() bfin_read32(EBIU_AMBCTL0)
924#define bfin_write_EBIU_AMBCTL0(val) bfin_write32(EBIU_AMBCTL0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500925#define bfin_read_EBIU_AMBCTL1() bfin_read32(EBIU_AMBCTL1)
926#define bfin_write_EBIU_AMBCTL1(val) bfin_write32(EBIU_AMBCTL1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500927#define bfin_read_EBIU_MBSCTL() bfin_read32(EBIU_MBSCTL)
928#define bfin_write_EBIU_MBSCTL(val) bfin_write32(EBIU_MBSCTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500929#define bfin_read_EBIU_ARBSTAT() bfin_read32(EBIU_ARBSTAT)
930#define bfin_write_EBIU_ARBSTAT(val) bfin_write32(EBIU_ARBSTAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500931#define bfin_read_EBIU_MODE() bfin_read32(EBIU_MODE)
932#define bfin_write_EBIU_MODE(val) bfin_write32(EBIU_MODE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500933#define bfin_read_EBIU_FCTL() bfin_read32(EBIU_FCTL)
934#define bfin_write_EBIU_FCTL(val) bfin_write32(EBIU_FCTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500935#define bfin_read_EBIU_DDRCTL0() bfin_read32(EBIU_DDRCTL0)
936#define bfin_write_EBIU_DDRCTL0(val) bfin_write32(EBIU_DDRCTL0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500937#define bfin_read_EBIU_DDRCTL1() bfin_read32(EBIU_DDRCTL1)
938#define bfin_write_EBIU_DDRCTL1(val) bfin_write32(EBIU_DDRCTL1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500939#define bfin_read_EBIU_DDRCTL2() bfin_read32(EBIU_DDRCTL2)
940#define bfin_write_EBIU_DDRCTL2(val) bfin_write32(EBIU_DDRCTL2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500941#define bfin_read_EBIU_DDRCTL3() bfin_read32(EBIU_DDRCTL3)
942#define bfin_write_EBIU_DDRCTL3(val) bfin_write32(EBIU_DDRCTL3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500943#define bfin_read_EBIU_DDRQUE() bfin_read32(EBIU_DDRQUE)
944#define bfin_write_EBIU_DDRQUE(val) bfin_write32(EBIU_DDRQUE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500945#define bfin_read_EBIU_ERRADD() bfin_readPTR(EBIU_ERRADD)
946#define bfin_write_EBIU_ERRADD(val) bfin_writePTR(EBIU_ERRADD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500947#define bfin_read_EBIU_ERRMST() bfin_read16(EBIU_ERRMST)
948#define bfin_write_EBIU_ERRMST(val) bfin_write16(EBIU_ERRMST, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500949#define bfin_read_EBIU_RSTCTL() bfin_read16(EBIU_RSTCTL)
950#define bfin_write_EBIU_RSTCTL(val) bfin_write16(EBIU_RSTCTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500951#define bfin_read_EBIU_DDRBRC0() bfin_read32(EBIU_DDRBRC0)
952#define bfin_write_EBIU_DDRBRC0(val) bfin_write32(EBIU_DDRBRC0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500953#define bfin_read_EBIU_DDRBRC1() bfin_read32(EBIU_DDRBRC1)
954#define bfin_write_EBIU_DDRBRC1(val) bfin_write32(EBIU_DDRBRC1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500955#define bfin_read_EBIU_DDRBRC2() bfin_read32(EBIU_DDRBRC2)
956#define bfin_write_EBIU_DDRBRC2(val) bfin_write32(EBIU_DDRBRC2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500957#define bfin_read_EBIU_DDRBRC3() bfin_read32(EBIU_DDRBRC3)
958#define bfin_write_EBIU_DDRBRC3(val) bfin_write32(EBIU_DDRBRC3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500959#define bfin_read_EBIU_DDRBRC4() bfin_read32(EBIU_DDRBRC4)
960#define bfin_write_EBIU_DDRBRC4(val) bfin_write32(EBIU_DDRBRC4, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500961#define bfin_read_EBIU_DDRBRC5() bfin_read32(EBIU_DDRBRC5)
962#define bfin_write_EBIU_DDRBRC5(val) bfin_write32(EBIU_DDRBRC5, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500963#define bfin_read_EBIU_DDRBRC6() bfin_read32(EBIU_DDRBRC6)
964#define bfin_write_EBIU_DDRBRC6(val) bfin_write32(EBIU_DDRBRC6, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500965#define bfin_read_EBIU_DDRBRC7() bfin_read32(EBIU_DDRBRC7)
966#define bfin_write_EBIU_DDRBRC7(val) bfin_write32(EBIU_DDRBRC7, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500967#define bfin_read_EBIU_DDRBWC0() bfin_read32(EBIU_DDRBWC0)
968#define bfin_write_EBIU_DDRBWC0(val) bfin_write32(EBIU_DDRBWC0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500969#define bfin_read_EBIU_DDRBWC1() bfin_read32(EBIU_DDRBWC1)
970#define bfin_write_EBIU_DDRBWC1(val) bfin_write32(EBIU_DDRBWC1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500971#define bfin_read_EBIU_DDRBWC2() bfin_read32(EBIU_DDRBWC2)
972#define bfin_write_EBIU_DDRBWC2(val) bfin_write32(EBIU_DDRBWC2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500973#define bfin_read_EBIU_DDRBWC3() bfin_read32(EBIU_DDRBWC3)
974#define bfin_write_EBIU_DDRBWC3(val) bfin_write32(EBIU_DDRBWC3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500975#define bfin_read_EBIU_DDRBWC4() bfin_read32(EBIU_DDRBWC4)
976#define bfin_write_EBIU_DDRBWC4(val) bfin_write32(EBIU_DDRBWC4, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500977#define bfin_read_EBIU_DDRBWC5() bfin_read32(EBIU_DDRBWC5)
978#define bfin_write_EBIU_DDRBWC5(val) bfin_write32(EBIU_DDRBWC5, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500979#define bfin_read_EBIU_DDRBWC6() bfin_read32(EBIU_DDRBWC6)
980#define bfin_write_EBIU_DDRBWC6(val) bfin_write32(EBIU_DDRBWC6, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500981#define bfin_read_EBIU_DDRBWC7() bfin_read32(EBIU_DDRBWC7)
982#define bfin_write_EBIU_DDRBWC7(val) bfin_write32(EBIU_DDRBWC7, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500983#define bfin_read_EBIU_DDRACCT() bfin_read32(EBIU_DDRACCT)
984#define bfin_write_EBIU_DDRACCT(val) bfin_write32(EBIU_DDRACCT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500985#define bfin_read_EBIU_DDRTACT() bfin_read32(EBIU_DDRTACT)
986#define bfin_write_EBIU_DDRTACT(val) bfin_write32(EBIU_DDRTACT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500987#define bfin_read_EBIU_DDRARCT() bfin_read32(EBIU_DDRARCT)
988#define bfin_write_EBIU_DDRARCT(val) bfin_write32(EBIU_DDRARCT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500989#define bfin_read_EBIU_DDRGC0() bfin_read32(EBIU_DDRGC0)
990#define bfin_write_EBIU_DDRGC0(val) bfin_write32(EBIU_DDRGC0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500991#define bfin_read_EBIU_DDRGC1() bfin_read32(EBIU_DDRGC1)
992#define bfin_write_EBIU_DDRGC1(val) bfin_write32(EBIU_DDRGC1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500993#define bfin_read_EBIU_DDRGC2() bfin_read32(EBIU_DDRGC2)
994#define bfin_write_EBIU_DDRGC2(val) bfin_write32(EBIU_DDRGC2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500995#define bfin_read_EBIU_DDRGC3() bfin_read32(EBIU_DDRGC3)
996#define bfin_write_EBIU_DDRGC3(val) bfin_write32(EBIU_DDRGC3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500997#define bfin_read_EBIU_DDRMCEN() bfin_read32(EBIU_DDRMCEN)
998#define bfin_write_EBIU_DDRMCEN(val) bfin_write32(EBIU_DDRMCEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -0500999#define bfin_read_EBIU_DDRMCCL() bfin_read32(EBIU_DDRMCCL)
1000#define bfin_write_EBIU_DDRMCCL(val) bfin_write32(EBIU_DDRMCCL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001001#define bfin_read_PORTA_FER() bfin_read16(PORTA_FER)
1002#define bfin_write_PORTA_FER(val) bfin_write16(PORTA_FER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001003#define bfin_read_PORTA() bfin_read16(PORTA)
1004#define bfin_write_PORTA(val) bfin_write16(PORTA, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001005#define bfin_read_PORTA_SET() bfin_read16(PORTA_SET)
1006#define bfin_write_PORTA_SET(val) bfin_write16(PORTA_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001007#define bfin_read_PORTA_CLEAR() bfin_read16(PORTA_CLEAR)
1008#define bfin_write_PORTA_CLEAR(val) bfin_write16(PORTA_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001009#define bfin_read_PORTA_DIR_SET() bfin_read16(PORTA_DIR_SET)
1010#define bfin_write_PORTA_DIR_SET(val) bfin_write16(PORTA_DIR_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001011#define bfin_read_PORTA_DIR_CLEAR() bfin_read16(PORTA_DIR_CLEAR)
1012#define bfin_write_PORTA_DIR_CLEAR(val) bfin_write16(PORTA_DIR_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001013#define bfin_read_PORTA_INEN() bfin_read16(PORTA_INEN)
1014#define bfin_write_PORTA_INEN(val) bfin_write16(PORTA_INEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001015#define bfin_read_PORTA_MUX() bfin_read32(PORTA_MUX)
1016#define bfin_write_PORTA_MUX(val) bfin_write32(PORTA_MUX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001017#define bfin_read_PORTB_FER() bfin_read16(PORTB_FER)
1018#define bfin_write_PORTB_FER(val) bfin_write16(PORTB_FER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001019#define bfin_read_PORTB() bfin_read16(PORTB)
1020#define bfin_write_PORTB(val) bfin_write16(PORTB, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001021#define bfin_read_PORTB_SET() bfin_read16(PORTB_SET)
1022#define bfin_write_PORTB_SET(val) bfin_write16(PORTB_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001023#define bfin_read_PORTB_CLEAR() bfin_read16(PORTB_CLEAR)
1024#define bfin_write_PORTB_CLEAR(val) bfin_write16(PORTB_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001025#define bfin_read_PORTB_DIR_SET() bfin_read16(PORTB_DIR_SET)
1026#define bfin_write_PORTB_DIR_SET(val) bfin_write16(PORTB_DIR_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001027#define bfin_read_PORTB_DIR_CLEAR() bfin_read16(PORTB_DIR_CLEAR)
1028#define bfin_write_PORTB_DIR_CLEAR(val) bfin_write16(PORTB_DIR_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001029#define bfin_read_PORTB_INEN() bfin_read16(PORTB_INEN)
1030#define bfin_write_PORTB_INEN(val) bfin_write16(PORTB_INEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001031#define bfin_read_PORTB_MUX() bfin_read32(PORTB_MUX)
1032#define bfin_write_PORTB_MUX(val) bfin_write32(PORTB_MUX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001033#define bfin_read_PORTC_FER() bfin_read16(PORTC_FER)
1034#define bfin_write_PORTC_FER(val) bfin_write16(PORTC_FER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001035#define bfin_read_PORTC() bfin_read16(PORTC)
1036#define bfin_write_PORTC(val) bfin_write16(PORTC, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001037#define bfin_read_PORTC_SET() bfin_read16(PORTC_SET)
1038#define bfin_write_PORTC_SET(val) bfin_write16(PORTC_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001039#define bfin_read_PORTC_CLEAR() bfin_read16(PORTC_CLEAR)
1040#define bfin_write_PORTC_CLEAR(val) bfin_write16(PORTC_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001041#define bfin_read_PORTC_DIR_SET() bfin_read16(PORTC_DIR_SET)
1042#define bfin_write_PORTC_DIR_SET(val) bfin_write16(PORTC_DIR_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001043#define bfin_read_PORTC_DIR_CLEAR() bfin_read16(PORTC_DIR_CLEAR)
1044#define bfin_write_PORTC_DIR_CLEAR(val) bfin_write16(PORTC_DIR_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001045#define bfin_read_PORTC_INEN() bfin_read16(PORTC_INEN)
1046#define bfin_write_PORTC_INEN(val) bfin_write16(PORTC_INEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001047#define bfin_read_PORTC_MUX() bfin_read32(PORTC_MUX)
1048#define bfin_write_PORTC_MUX(val) bfin_write32(PORTC_MUX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001049#define bfin_read_PORTD_FER() bfin_read16(PORTD_FER)
1050#define bfin_write_PORTD_FER(val) bfin_write16(PORTD_FER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001051#define bfin_read_PORTD() bfin_read16(PORTD)
1052#define bfin_write_PORTD(val) bfin_write16(PORTD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001053#define bfin_read_PORTD_SET() bfin_read16(PORTD_SET)
1054#define bfin_write_PORTD_SET(val) bfin_write16(PORTD_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001055#define bfin_read_PORTD_CLEAR() bfin_read16(PORTD_CLEAR)
1056#define bfin_write_PORTD_CLEAR(val) bfin_write16(PORTD_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001057#define bfin_read_PORTD_DIR_SET() bfin_read16(PORTD_DIR_SET)
1058#define bfin_write_PORTD_DIR_SET(val) bfin_write16(PORTD_DIR_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001059#define bfin_read_PORTD_DIR_CLEAR() bfin_read16(PORTD_DIR_CLEAR)
1060#define bfin_write_PORTD_DIR_CLEAR(val) bfin_write16(PORTD_DIR_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001061#define bfin_read_PORTD_INEN() bfin_read16(PORTD_INEN)
1062#define bfin_write_PORTD_INEN(val) bfin_write16(PORTD_INEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001063#define bfin_read_PORTD_MUX() bfin_read32(PORTD_MUX)
1064#define bfin_write_PORTD_MUX(val) bfin_write32(PORTD_MUX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001065#define bfin_read_PORTE_FER() bfin_read16(PORTE_FER)
1066#define bfin_write_PORTE_FER(val) bfin_write16(PORTE_FER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001067#define bfin_read_PORTE() bfin_read16(PORTE)
1068#define bfin_write_PORTE(val) bfin_write16(PORTE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001069#define bfin_read_PORTE_SET() bfin_read16(PORTE_SET)
1070#define bfin_write_PORTE_SET(val) bfin_write16(PORTE_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001071#define bfin_read_PORTE_CLEAR() bfin_read16(PORTE_CLEAR)
1072#define bfin_write_PORTE_CLEAR(val) bfin_write16(PORTE_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001073#define bfin_read_PORTE_DIR_SET() bfin_read16(PORTE_DIR_SET)
1074#define bfin_write_PORTE_DIR_SET(val) bfin_write16(PORTE_DIR_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001075#define bfin_read_PORTE_DIR_CLEAR() bfin_read16(PORTE_DIR_CLEAR)
1076#define bfin_write_PORTE_DIR_CLEAR(val) bfin_write16(PORTE_DIR_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001077#define bfin_read_PORTE_INEN() bfin_read16(PORTE_INEN)
1078#define bfin_write_PORTE_INEN(val) bfin_write16(PORTE_INEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001079#define bfin_read_PORTE_MUX() bfin_read32(PORTE_MUX)
1080#define bfin_write_PORTE_MUX(val) bfin_write32(PORTE_MUX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001081#define bfin_read_PORTF_FER() bfin_read16(PORTF_FER)
1082#define bfin_write_PORTF_FER(val) bfin_write16(PORTF_FER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001083#define bfin_read_PORTF() bfin_read16(PORTF)
1084#define bfin_write_PORTF(val) bfin_write16(PORTF, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001085#define bfin_read_PORTF_SET() bfin_read16(PORTF_SET)
1086#define bfin_write_PORTF_SET(val) bfin_write16(PORTF_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001087#define bfin_read_PORTF_CLEAR() bfin_read16(PORTF_CLEAR)
1088#define bfin_write_PORTF_CLEAR(val) bfin_write16(PORTF_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001089#define bfin_read_PORTF_DIR_SET() bfin_read16(PORTF_DIR_SET)
1090#define bfin_write_PORTF_DIR_SET(val) bfin_write16(PORTF_DIR_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001091#define bfin_read_PORTF_DIR_CLEAR() bfin_read16(PORTF_DIR_CLEAR)
1092#define bfin_write_PORTF_DIR_CLEAR(val) bfin_write16(PORTF_DIR_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001093#define bfin_read_PORTF_INEN() bfin_read16(PORTF_INEN)
1094#define bfin_write_PORTF_INEN(val) bfin_write16(PORTF_INEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001095#define bfin_read_PORTF_MUX() bfin_read32(PORTF_MUX)
1096#define bfin_write_PORTF_MUX(val) bfin_write32(PORTF_MUX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001097#define bfin_read_PORTG_FER() bfin_read16(PORTG_FER)
1098#define bfin_write_PORTG_FER(val) bfin_write16(PORTG_FER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001099#define bfin_read_PORTG() bfin_read16(PORTG)
1100#define bfin_write_PORTG(val) bfin_write16(PORTG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001101#define bfin_read_PORTG_SET() bfin_read16(PORTG_SET)
1102#define bfin_write_PORTG_SET(val) bfin_write16(PORTG_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001103#define bfin_read_PORTG_CLEAR() bfin_read16(PORTG_CLEAR)
1104#define bfin_write_PORTG_CLEAR(val) bfin_write16(PORTG_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001105#define bfin_read_PORTG_DIR_SET() bfin_read16(PORTG_DIR_SET)
1106#define bfin_write_PORTG_DIR_SET(val) bfin_write16(PORTG_DIR_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001107#define bfin_read_PORTG_DIR_CLEAR() bfin_read16(PORTG_DIR_CLEAR)
1108#define bfin_write_PORTG_DIR_CLEAR(val) bfin_write16(PORTG_DIR_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001109#define bfin_read_PORTG_INEN() bfin_read16(PORTG_INEN)
1110#define bfin_write_PORTG_INEN(val) bfin_write16(PORTG_INEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001111#define bfin_read_PORTG_MUX() bfin_read32(PORTG_MUX)
1112#define bfin_write_PORTG_MUX(val) bfin_write32(PORTG_MUX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001113#define bfin_read_PORTH_FER() bfin_read16(PORTH_FER)
1114#define bfin_write_PORTH_FER(val) bfin_write16(PORTH_FER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001115#define bfin_read_PORTH() bfin_read16(PORTH)
1116#define bfin_write_PORTH(val) bfin_write16(PORTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001117#define bfin_read_PORTH_SET() bfin_read16(PORTH_SET)
1118#define bfin_write_PORTH_SET(val) bfin_write16(PORTH_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001119#define bfin_read_PORTH_CLEAR() bfin_read16(PORTH_CLEAR)
1120#define bfin_write_PORTH_CLEAR(val) bfin_write16(PORTH_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001121#define bfin_read_PORTH_DIR_SET() bfin_read16(PORTH_DIR_SET)
1122#define bfin_write_PORTH_DIR_SET(val) bfin_write16(PORTH_DIR_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001123#define bfin_read_PORTH_DIR_CLEAR() bfin_read16(PORTH_DIR_CLEAR)
1124#define bfin_write_PORTH_DIR_CLEAR(val) bfin_write16(PORTH_DIR_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001125#define bfin_read_PORTH_INEN() bfin_read16(PORTH_INEN)
1126#define bfin_write_PORTH_INEN(val) bfin_write16(PORTH_INEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001127#define bfin_read_PORTH_MUX() bfin_read32(PORTH_MUX)
1128#define bfin_write_PORTH_MUX(val) bfin_write32(PORTH_MUX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001129#define bfin_read_PORTI_FER() bfin_read16(PORTI_FER)
1130#define bfin_write_PORTI_FER(val) bfin_write16(PORTI_FER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001131#define bfin_read_PORTI() bfin_read16(PORTI)
1132#define bfin_write_PORTI(val) bfin_write16(PORTI, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001133#define bfin_read_PORTI_SET() bfin_read16(PORTI_SET)
1134#define bfin_write_PORTI_SET(val) bfin_write16(PORTI_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001135#define bfin_read_PORTI_CLEAR() bfin_read16(PORTI_CLEAR)
1136#define bfin_write_PORTI_CLEAR(val) bfin_write16(PORTI_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001137#define bfin_read_PORTI_DIR_SET() bfin_read16(PORTI_DIR_SET)
1138#define bfin_write_PORTI_DIR_SET(val) bfin_write16(PORTI_DIR_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001139#define bfin_read_PORTI_DIR_CLEAR() bfin_read16(PORTI_DIR_CLEAR)
1140#define bfin_write_PORTI_DIR_CLEAR(val) bfin_write16(PORTI_DIR_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001141#define bfin_read_PORTI_INEN() bfin_read16(PORTI_INEN)
1142#define bfin_write_PORTI_INEN(val) bfin_write16(PORTI_INEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001143#define bfin_read_PORTI_MUX() bfin_read32(PORTI_MUX)
1144#define bfin_write_PORTI_MUX(val) bfin_write32(PORTI_MUX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001145#define bfin_read_PORTJ_FER() bfin_read16(PORTJ_FER)
1146#define bfin_write_PORTJ_FER(val) bfin_write16(PORTJ_FER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001147#define bfin_read_PORTJ() bfin_read16(PORTJ)
1148#define bfin_write_PORTJ(val) bfin_write16(PORTJ, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001149#define bfin_read_PORTJ_SET() bfin_read16(PORTJ_SET)
1150#define bfin_write_PORTJ_SET(val) bfin_write16(PORTJ_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001151#define bfin_read_PORTJ_CLEAR() bfin_read16(PORTJ_CLEAR)
1152#define bfin_write_PORTJ_CLEAR(val) bfin_write16(PORTJ_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001153#define bfin_read_PORTJ_DIR_SET() bfin_read16(PORTJ_DIR_SET)
1154#define bfin_write_PORTJ_DIR_SET(val) bfin_write16(PORTJ_DIR_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001155#define bfin_read_PORTJ_DIR_CLEAR() bfin_read16(PORTJ_DIR_CLEAR)
1156#define bfin_write_PORTJ_DIR_CLEAR(val) bfin_write16(PORTJ_DIR_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001157#define bfin_read_PORTJ_INEN() bfin_read16(PORTJ_INEN)
1158#define bfin_write_PORTJ_INEN(val) bfin_write16(PORTJ_INEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001159#define bfin_read_PORTJ_MUX() bfin_read32(PORTJ_MUX)
1160#define bfin_write_PORTJ_MUX(val) bfin_write32(PORTJ_MUX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001161#define bfin_read_PINT0_MASK_SET() bfin_read32(PINT0_MASK_SET)
1162#define bfin_write_PINT0_MASK_SET(val) bfin_write32(PINT0_MASK_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001163#define bfin_read_PINT0_MASK_CLEAR() bfin_read32(PINT0_MASK_CLEAR)
1164#define bfin_write_PINT0_MASK_CLEAR(val) bfin_write32(PINT0_MASK_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001165#define bfin_read_PINT0_IRQ() bfin_read32(PINT0_IRQ)
1166#define bfin_write_PINT0_IRQ(val) bfin_write32(PINT0_IRQ, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001167#define bfin_read_PINT0_ASSIGN() bfin_read32(PINT0_ASSIGN)
1168#define bfin_write_PINT0_ASSIGN(val) bfin_write32(PINT0_ASSIGN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001169#define bfin_read_PINT0_EDGE_SET() bfin_read32(PINT0_EDGE_SET)
1170#define bfin_write_PINT0_EDGE_SET(val) bfin_write32(PINT0_EDGE_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001171#define bfin_read_PINT0_EDGE_CLEAR() bfin_read32(PINT0_EDGE_CLEAR)
1172#define bfin_write_PINT0_EDGE_CLEAR(val) bfin_write32(PINT0_EDGE_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001173#define bfin_read_PINT0_INVERT_SET() bfin_read32(PINT0_INVERT_SET)
1174#define bfin_write_PINT0_INVERT_SET(val) bfin_write32(PINT0_INVERT_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001175#define bfin_read_PINT0_INVERT_CLEAR() bfin_read32(PINT0_INVERT_CLEAR)
1176#define bfin_write_PINT0_INVERT_CLEAR(val) bfin_write32(PINT0_INVERT_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001177#define bfin_read_PINT0_PINSTATE() bfin_read32(PINT0_PINSTATE)
1178#define bfin_write_PINT0_PINSTATE(val) bfin_write32(PINT0_PINSTATE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001179#define bfin_read_PINT0_LATCH() bfin_read32(PINT0_LATCH)
1180#define bfin_write_PINT0_LATCH(val) bfin_write32(PINT0_LATCH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001181#define bfin_read_PINT1_MASK_SET() bfin_read32(PINT1_MASK_SET)
1182#define bfin_write_PINT1_MASK_SET(val) bfin_write32(PINT1_MASK_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001183#define bfin_read_PINT1_MASK_CLEAR() bfin_read32(PINT1_MASK_CLEAR)
1184#define bfin_write_PINT1_MASK_CLEAR(val) bfin_write32(PINT1_MASK_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001185#define bfin_read_PINT1_IRQ() bfin_read32(PINT1_IRQ)
1186#define bfin_write_PINT1_IRQ(val) bfin_write32(PINT1_IRQ, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001187#define bfin_read_PINT1_ASSIGN() bfin_read32(PINT1_ASSIGN)
1188#define bfin_write_PINT1_ASSIGN(val) bfin_write32(PINT1_ASSIGN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001189#define bfin_read_PINT1_EDGE_SET() bfin_read32(PINT1_EDGE_SET)
1190#define bfin_write_PINT1_EDGE_SET(val) bfin_write32(PINT1_EDGE_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001191#define bfin_read_PINT1_EDGE_CLEAR() bfin_read32(PINT1_EDGE_CLEAR)
1192#define bfin_write_PINT1_EDGE_CLEAR(val) bfin_write32(PINT1_EDGE_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001193#define bfin_read_PINT1_INVERT_SET() bfin_read32(PINT1_INVERT_SET)
1194#define bfin_write_PINT1_INVERT_SET(val) bfin_write32(PINT1_INVERT_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001195#define bfin_read_PINT1_INVERT_CLEAR() bfin_read32(PINT1_INVERT_CLEAR)
1196#define bfin_write_PINT1_INVERT_CLEAR(val) bfin_write32(PINT1_INVERT_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001197#define bfin_read_PINT1_PINSTATE() bfin_read32(PINT1_PINSTATE)
1198#define bfin_write_PINT1_PINSTATE(val) bfin_write32(PINT1_PINSTATE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001199#define bfin_read_PINT1_LATCH() bfin_read32(PINT1_LATCH)
1200#define bfin_write_PINT1_LATCH(val) bfin_write32(PINT1_LATCH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001201#define bfin_read_PINT2_MASK_SET() bfin_read32(PINT2_MASK_SET)
1202#define bfin_write_PINT2_MASK_SET(val) bfin_write32(PINT2_MASK_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001203#define bfin_read_PINT2_MASK_CLEAR() bfin_read32(PINT2_MASK_CLEAR)
1204#define bfin_write_PINT2_MASK_CLEAR(val) bfin_write32(PINT2_MASK_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001205#define bfin_read_PINT2_IRQ() bfin_read32(PINT2_IRQ)
1206#define bfin_write_PINT2_IRQ(val) bfin_write32(PINT2_IRQ, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001207#define bfin_read_PINT2_ASSIGN() bfin_read32(PINT2_ASSIGN)
1208#define bfin_write_PINT2_ASSIGN(val) bfin_write32(PINT2_ASSIGN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001209#define bfin_read_PINT2_EDGE_SET() bfin_read32(PINT2_EDGE_SET)
1210#define bfin_write_PINT2_EDGE_SET(val) bfin_write32(PINT2_EDGE_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001211#define bfin_read_PINT2_EDGE_CLEAR() bfin_read32(PINT2_EDGE_CLEAR)
1212#define bfin_write_PINT2_EDGE_CLEAR(val) bfin_write32(PINT2_EDGE_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001213#define bfin_read_PINT2_INVERT_SET() bfin_read32(PINT2_INVERT_SET)
1214#define bfin_write_PINT2_INVERT_SET(val) bfin_write32(PINT2_INVERT_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001215#define bfin_read_PINT2_INVERT_CLEAR() bfin_read32(PINT2_INVERT_CLEAR)
1216#define bfin_write_PINT2_INVERT_CLEAR(val) bfin_write32(PINT2_INVERT_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001217#define bfin_read_PINT2_PINSTATE() bfin_read32(PINT2_PINSTATE)
1218#define bfin_write_PINT2_PINSTATE(val) bfin_write32(PINT2_PINSTATE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001219#define bfin_read_PINT2_LATCH() bfin_read32(PINT2_LATCH)
1220#define bfin_write_PINT2_LATCH(val) bfin_write32(PINT2_LATCH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001221#define bfin_read_PINT3_MASK_SET() bfin_read32(PINT3_MASK_SET)
1222#define bfin_write_PINT3_MASK_SET(val) bfin_write32(PINT3_MASK_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001223#define bfin_read_PINT3_MASK_CLEAR() bfin_read32(PINT3_MASK_CLEAR)
1224#define bfin_write_PINT3_MASK_CLEAR(val) bfin_write32(PINT3_MASK_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001225#define bfin_read_PINT3_IRQ() bfin_read32(PINT3_IRQ)
1226#define bfin_write_PINT3_IRQ(val) bfin_write32(PINT3_IRQ, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001227#define bfin_read_PINT3_ASSIGN() bfin_read32(PINT3_ASSIGN)
1228#define bfin_write_PINT3_ASSIGN(val) bfin_write32(PINT3_ASSIGN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001229#define bfin_read_PINT3_EDGE_SET() bfin_read32(PINT3_EDGE_SET)
1230#define bfin_write_PINT3_EDGE_SET(val) bfin_write32(PINT3_EDGE_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001231#define bfin_read_PINT3_EDGE_CLEAR() bfin_read32(PINT3_EDGE_CLEAR)
1232#define bfin_write_PINT3_EDGE_CLEAR(val) bfin_write32(PINT3_EDGE_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001233#define bfin_read_PINT3_INVERT_SET() bfin_read32(PINT3_INVERT_SET)
1234#define bfin_write_PINT3_INVERT_SET(val) bfin_write32(PINT3_INVERT_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001235#define bfin_read_PINT3_INVERT_CLEAR() bfin_read32(PINT3_INVERT_CLEAR)
1236#define bfin_write_PINT3_INVERT_CLEAR(val) bfin_write32(PINT3_INVERT_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001237#define bfin_read_PINT3_PINSTATE() bfin_read32(PINT3_PINSTATE)
1238#define bfin_write_PINT3_PINSTATE(val) bfin_write32(PINT3_PINSTATE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001239#define bfin_read_PINT3_LATCH() bfin_read32(PINT3_LATCH)
1240#define bfin_write_PINT3_LATCH(val) bfin_write32(PINT3_LATCH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001241#define bfin_read_TIMER0_CONFIG() bfin_read16(TIMER0_CONFIG)
1242#define bfin_write_TIMER0_CONFIG(val) bfin_write16(TIMER0_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001243#define bfin_read_TIMER0_COUNTER() bfin_read32(TIMER0_COUNTER)
1244#define bfin_write_TIMER0_COUNTER(val) bfin_write32(TIMER0_COUNTER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001245#define bfin_read_TIMER0_PERIOD() bfin_read32(TIMER0_PERIOD)
1246#define bfin_write_TIMER0_PERIOD(val) bfin_write32(TIMER0_PERIOD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001247#define bfin_read_TIMER0_WIDTH() bfin_read32(TIMER0_WIDTH)
1248#define bfin_write_TIMER0_WIDTH(val) bfin_write32(TIMER0_WIDTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001249#define bfin_read_TIMER1_CONFIG() bfin_read16(TIMER1_CONFIG)
1250#define bfin_write_TIMER1_CONFIG(val) bfin_write16(TIMER1_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001251#define bfin_read_TIMER1_COUNTER() bfin_read32(TIMER1_COUNTER)
1252#define bfin_write_TIMER1_COUNTER(val) bfin_write32(TIMER1_COUNTER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001253#define bfin_read_TIMER1_PERIOD() bfin_read32(TIMER1_PERIOD)
1254#define bfin_write_TIMER1_PERIOD(val) bfin_write32(TIMER1_PERIOD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001255#define bfin_read_TIMER1_WIDTH() bfin_read32(TIMER1_WIDTH)
1256#define bfin_write_TIMER1_WIDTH(val) bfin_write32(TIMER1_WIDTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001257#define bfin_read_TIMER2_CONFIG() bfin_read16(TIMER2_CONFIG)
1258#define bfin_write_TIMER2_CONFIG(val) bfin_write16(TIMER2_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001259#define bfin_read_TIMER2_COUNTER() bfin_read32(TIMER2_COUNTER)
1260#define bfin_write_TIMER2_COUNTER(val) bfin_write32(TIMER2_COUNTER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001261#define bfin_read_TIMER2_PERIOD() bfin_read32(TIMER2_PERIOD)
1262#define bfin_write_TIMER2_PERIOD(val) bfin_write32(TIMER2_PERIOD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001263#define bfin_read_TIMER2_WIDTH() bfin_read32(TIMER2_WIDTH)
1264#define bfin_write_TIMER2_WIDTH(val) bfin_write32(TIMER2_WIDTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001265#define bfin_read_TIMER3_CONFIG() bfin_read16(TIMER3_CONFIG)
1266#define bfin_write_TIMER3_CONFIG(val) bfin_write16(TIMER3_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001267#define bfin_read_TIMER3_COUNTER() bfin_read32(TIMER3_COUNTER)
1268#define bfin_write_TIMER3_COUNTER(val) bfin_write32(TIMER3_COUNTER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001269#define bfin_read_TIMER3_PERIOD() bfin_read32(TIMER3_PERIOD)
1270#define bfin_write_TIMER3_PERIOD(val) bfin_write32(TIMER3_PERIOD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001271#define bfin_read_TIMER3_WIDTH() bfin_read32(TIMER3_WIDTH)
1272#define bfin_write_TIMER3_WIDTH(val) bfin_write32(TIMER3_WIDTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001273#define bfin_read_TIMER4_CONFIG() bfin_read16(TIMER4_CONFIG)
1274#define bfin_write_TIMER4_CONFIG(val) bfin_write16(TIMER4_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001275#define bfin_read_TIMER4_COUNTER() bfin_read32(TIMER4_COUNTER)
1276#define bfin_write_TIMER4_COUNTER(val) bfin_write32(TIMER4_COUNTER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001277#define bfin_read_TIMER4_PERIOD() bfin_read32(TIMER4_PERIOD)
1278#define bfin_write_TIMER4_PERIOD(val) bfin_write32(TIMER4_PERIOD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001279#define bfin_read_TIMER4_WIDTH() bfin_read32(TIMER4_WIDTH)
1280#define bfin_write_TIMER4_WIDTH(val) bfin_write32(TIMER4_WIDTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001281#define bfin_read_TIMER5_CONFIG() bfin_read16(TIMER5_CONFIG)
1282#define bfin_write_TIMER5_CONFIG(val) bfin_write16(TIMER5_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001283#define bfin_read_TIMER5_COUNTER() bfin_read32(TIMER5_COUNTER)
1284#define bfin_write_TIMER5_COUNTER(val) bfin_write32(TIMER5_COUNTER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001285#define bfin_read_TIMER5_PERIOD() bfin_read32(TIMER5_PERIOD)
1286#define bfin_write_TIMER5_PERIOD(val) bfin_write32(TIMER5_PERIOD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001287#define bfin_read_TIMER5_WIDTH() bfin_read32(TIMER5_WIDTH)
1288#define bfin_write_TIMER5_WIDTH(val) bfin_write32(TIMER5_WIDTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001289#define bfin_read_TIMER6_CONFIG() bfin_read16(TIMER6_CONFIG)
1290#define bfin_write_TIMER6_CONFIG(val) bfin_write16(TIMER6_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001291#define bfin_read_TIMER6_COUNTER() bfin_read32(TIMER6_COUNTER)
1292#define bfin_write_TIMER6_COUNTER(val) bfin_write32(TIMER6_COUNTER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001293#define bfin_read_TIMER6_PERIOD() bfin_read32(TIMER6_PERIOD)
1294#define bfin_write_TIMER6_PERIOD(val) bfin_write32(TIMER6_PERIOD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001295#define bfin_read_TIMER6_WIDTH() bfin_read32(TIMER6_WIDTH)
1296#define bfin_write_TIMER6_WIDTH(val) bfin_write32(TIMER6_WIDTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001297#define bfin_read_TIMER7_CONFIG() bfin_read16(TIMER7_CONFIG)
1298#define bfin_write_TIMER7_CONFIG(val) bfin_write16(TIMER7_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001299#define bfin_read_TIMER7_COUNTER() bfin_read32(TIMER7_COUNTER)
1300#define bfin_write_TIMER7_COUNTER(val) bfin_write32(TIMER7_COUNTER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001301#define bfin_read_TIMER7_PERIOD() bfin_read32(TIMER7_PERIOD)
1302#define bfin_write_TIMER7_PERIOD(val) bfin_write32(TIMER7_PERIOD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001303#define bfin_read_TIMER7_WIDTH() bfin_read32(TIMER7_WIDTH)
1304#define bfin_write_TIMER7_WIDTH(val) bfin_write32(TIMER7_WIDTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001305#define bfin_read_TIMER_ENABLE0() bfin_read16(TIMER_ENABLE0)
1306#define bfin_write_TIMER_ENABLE0(val) bfin_write16(TIMER_ENABLE0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001307#define bfin_read_TIMER_DISABLE0() bfin_read16(TIMER_DISABLE0)
1308#define bfin_write_TIMER_DISABLE0(val) bfin_write16(TIMER_DISABLE0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001309#define bfin_read_TIMER_STATUS0() bfin_read32(TIMER_STATUS0)
1310#define bfin_write_TIMER_STATUS0(val) bfin_write32(TIMER_STATUS0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001311#define bfin_read_WDOG_CTL() bfin_read16(WDOG_CTL)
1312#define bfin_write_WDOG_CTL(val) bfin_write16(WDOG_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001313#define bfin_read_WDOG_CNT() bfin_read32(WDOG_CNT)
1314#define bfin_write_WDOG_CNT(val) bfin_write32(WDOG_CNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001315#define bfin_read_WDOG_STAT() bfin_read32(WDOG_STAT)
1316#define bfin_write_WDOG_STAT(val) bfin_write32(WDOG_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001317#define bfin_read_CNT_CONFIG() bfin_read16(CNT_CONFIG)
1318#define bfin_write_CNT_CONFIG(val) bfin_write16(CNT_CONFIG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001319#define bfin_read_CNT_IMASK() bfin_read16(CNT_IMASK)
1320#define bfin_write_CNT_IMASK(val) bfin_write16(CNT_IMASK, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001321#define bfin_read_CNT_STATUS() bfin_read16(CNT_STATUS)
1322#define bfin_write_CNT_STATUS(val) bfin_write16(CNT_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001323#define bfin_read_CNT_COMMAND() bfin_read16(CNT_COMMAND)
1324#define bfin_write_CNT_COMMAND(val) bfin_write16(CNT_COMMAND, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001325#define bfin_read_CNT_DEBOUNCE() bfin_read16(CNT_DEBOUNCE)
1326#define bfin_write_CNT_DEBOUNCE(val) bfin_write16(CNT_DEBOUNCE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001327#define bfin_read_CNT_COUNTER() bfin_read32(CNT_COUNTER)
1328#define bfin_write_CNT_COUNTER(val) bfin_write32(CNT_COUNTER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001329#define bfin_read_CNT_MAX() bfin_read32(CNT_MAX)
1330#define bfin_write_CNT_MAX(val) bfin_write32(CNT_MAX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001331#define bfin_read_CNT_MIN() bfin_read32(CNT_MIN)
1332#define bfin_write_CNT_MIN(val) bfin_write32(CNT_MIN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001333#define bfin_read_RTC_STAT() bfin_read32(RTC_STAT)
1334#define bfin_write_RTC_STAT(val) bfin_write32(RTC_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001335#define bfin_read_RTC_ICTL() bfin_read16(RTC_ICTL)
1336#define bfin_write_RTC_ICTL(val) bfin_write16(RTC_ICTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001337#define bfin_read_RTC_ISTAT() bfin_read16(RTC_ISTAT)
1338#define bfin_write_RTC_ISTAT(val) bfin_write16(RTC_ISTAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001339#define bfin_read_RTC_SWCNT() bfin_read16(RTC_SWCNT)
1340#define bfin_write_RTC_SWCNT(val) bfin_write16(RTC_SWCNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001341#define bfin_read_RTC_ALARM() bfin_read32(RTC_ALARM)
1342#define bfin_write_RTC_ALARM(val) bfin_write32(RTC_ALARM, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001343#define bfin_read_RTC_PREN() bfin_read16(RTC_PREN)
1344#define bfin_write_RTC_PREN(val) bfin_write16(RTC_PREN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001345#define bfin_read_OTP_CONTROL() bfin_read16(OTP_CONTROL)
1346#define bfin_write_OTP_CONTROL(val) bfin_write16(OTP_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001347#define bfin_read_OTP_BEN() bfin_read16(OTP_BEN)
1348#define bfin_write_OTP_BEN(val) bfin_write16(OTP_BEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001349#define bfin_read_OTP_STATUS() bfin_read16(OTP_STATUS)
1350#define bfin_write_OTP_STATUS(val) bfin_write16(OTP_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001351#define bfin_read_OTP_TIMING() bfin_read32(OTP_TIMING)
1352#define bfin_write_OTP_TIMING(val) bfin_write32(OTP_TIMING, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001353#define bfin_read_SECURE_SYSSWT() bfin_read32(SECURE_SYSSWT)
1354#define bfin_write_SECURE_SYSSWT(val) bfin_write32(SECURE_SYSSWT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001355#define bfin_read_SECURE_CONTROL() bfin_read16(SECURE_CONTROL)
1356#define bfin_write_SECURE_CONTROL(val) bfin_write16(SECURE_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001357#define bfin_read_SECURE_STATUS() bfin_read16(SECURE_STATUS)
1358#define bfin_write_SECURE_STATUS(val) bfin_write16(SECURE_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001359#define bfin_read_OTP_DATA0() bfin_read32(OTP_DATA0)
1360#define bfin_write_OTP_DATA0(val) bfin_write32(OTP_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001361#define bfin_read_OTP_DATA1() bfin_read32(OTP_DATA1)
1362#define bfin_write_OTP_DATA1(val) bfin_write32(OTP_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001363#define bfin_read_OTP_DATA2() bfin_read32(OTP_DATA2)
1364#define bfin_write_OTP_DATA2(val) bfin_write32(OTP_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001365#define bfin_read_OTP_DATA3() bfin_read32(OTP_DATA3)
1366#define bfin_write_OTP_DATA3(val) bfin_write32(OTP_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001367#define bfin_read_PLL_CTL() bfin_read16(PLL_CTL)
1368#define bfin_write_PLL_CTL(val) bfin_write16(PLL_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001369#define bfin_read_PLL_DIV() bfin_read16(PLL_DIV)
1370#define bfin_write_PLL_DIV(val) bfin_write16(PLL_DIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001371#define bfin_read_VR_CTL() bfin_read16(VR_CTL)
1372#define bfin_write_VR_CTL(val) bfin_write16(VR_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001373#define bfin_read_PLL_STAT() bfin_read16(PLL_STAT)
1374#define bfin_write_PLL_STAT(val) bfin_write16(PLL_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001375#define bfin_read_PLL_LOCKCNT() bfin_read16(PLL_LOCKCNT)
1376#define bfin_write_PLL_LOCKCNT(val) bfin_write16(PLL_LOCKCNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001377#define bfin_read_KPAD_CTL() bfin_read16(KPAD_CTL)
1378#define bfin_write_KPAD_CTL(val) bfin_write16(KPAD_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001379#define bfin_read_KPAD_PRESCALE() bfin_read16(KPAD_PRESCALE)
1380#define bfin_write_KPAD_PRESCALE(val) bfin_write16(KPAD_PRESCALE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001381#define bfin_read_KPAD_MSEL() bfin_read16(KPAD_MSEL)
1382#define bfin_write_KPAD_MSEL(val) bfin_write16(KPAD_MSEL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001383#define bfin_read_KPAD_ROWCOL() bfin_read16(KPAD_ROWCOL)
1384#define bfin_write_KPAD_ROWCOL(val) bfin_write16(KPAD_ROWCOL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001385#define bfin_read_KPAD_STAT() bfin_read16(KPAD_STAT)
1386#define bfin_write_KPAD_STAT(val) bfin_write16(KPAD_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001387#define bfin_read_KPAD_SOFTEVAL() bfin_read16(KPAD_SOFTEVAL)
1388#define bfin_write_KPAD_SOFTEVAL(val) bfin_write16(KPAD_SOFTEVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001389#define bfin_read_SDH_PWR_CTL() bfin_read16(SDH_PWR_CTL)
1390#define bfin_write_SDH_PWR_CTL(val) bfin_write16(SDH_PWR_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001391#define bfin_read_SDH_CLK_CTL() bfin_read16(SDH_CLK_CTL)
1392#define bfin_write_SDH_CLK_CTL(val) bfin_write16(SDH_CLK_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001393#define bfin_read_SDH_ARGUMENT() bfin_read32(SDH_ARGUMENT)
1394#define bfin_write_SDH_ARGUMENT(val) bfin_write32(SDH_ARGUMENT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001395#define bfin_read_SDH_COMMAND() bfin_read16(SDH_COMMAND)
1396#define bfin_write_SDH_COMMAND(val) bfin_write16(SDH_COMMAND, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001397#define bfin_read_SDH_RESP_CMD() bfin_read16(SDH_RESP_CMD)
1398#define bfin_write_SDH_RESP_CMD(val) bfin_write16(SDH_RESP_CMD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001399#define bfin_read_SDH_RESPONSE0() bfin_read32(SDH_RESPONSE0)
1400#define bfin_write_SDH_RESPONSE0(val) bfin_write32(SDH_RESPONSE0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001401#define bfin_read_SDH_RESPONSE1() bfin_read32(SDH_RESPONSE1)
1402#define bfin_write_SDH_RESPONSE1(val) bfin_write32(SDH_RESPONSE1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001403#define bfin_read_SDH_RESPONSE2() bfin_read32(SDH_RESPONSE2)
1404#define bfin_write_SDH_RESPONSE2(val) bfin_write32(SDH_RESPONSE2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001405#define bfin_read_SDH_RESPONSE3() bfin_read32(SDH_RESPONSE3)
1406#define bfin_write_SDH_RESPONSE3(val) bfin_write32(SDH_RESPONSE3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001407#define bfin_read_SDH_DATA_TIMER() bfin_read32(SDH_DATA_TIMER)
1408#define bfin_write_SDH_DATA_TIMER(val) bfin_write32(SDH_DATA_TIMER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001409#define bfin_read_SDH_DATA_LGTH() bfin_read16(SDH_DATA_LGTH)
1410#define bfin_write_SDH_DATA_LGTH(val) bfin_write16(SDH_DATA_LGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001411#define bfin_read_SDH_DATA_CTL() bfin_read16(SDH_DATA_CTL)
1412#define bfin_write_SDH_DATA_CTL(val) bfin_write16(SDH_DATA_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001413#define bfin_read_SDH_DATA_CNT() bfin_read16(SDH_DATA_CNT)
1414#define bfin_write_SDH_DATA_CNT(val) bfin_write16(SDH_DATA_CNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001415#define bfin_read_SDH_STATUS() bfin_read32(SDH_STATUS)
1416#define bfin_write_SDH_STATUS(val) bfin_write32(SDH_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001417#define bfin_read_SDH_STATUS_CLR() bfin_read16(SDH_STATUS_CLR)
1418#define bfin_write_SDH_STATUS_CLR(val) bfin_write16(SDH_STATUS_CLR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001419#define bfin_read_SDH_MASK0() bfin_read32(SDH_MASK0)
1420#define bfin_write_SDH_MASK0(val) bfin_write32(SDH_MASK0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001421#define bfin_read_SDH_MASK1() bfin_read32(SDH_MASK1)
1422#define bfin_write_SDH_MASK1(val) bfin_write32(SDH_MASK1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001423#define bfin_read_SDH_FIFO_CNT() bfin_read16(SDH_FIFO_CNT)
1424#define bfin_write_SDH_FIFO_CNT(val) bfin_write16(SDH_FIFO_CNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001425#define bfin_read_SDH_FIFO() bfin_read32(SDH_FIFO)
1426#define bfin_write_SDH_FIFO(val) bfin_write32(SDH_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001427#define bfin_read_SDH_E_STATUS() bfin_read16(SDH_E_STATUS)
1428#define bfin_write_SDH_E_STATUS(val) bfin_write16(SDH_E_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001429#define bfin_read_SDH_E_MASK() bfin_read16(SDH_E_MASK)
1430#define bfin_write_SDH_E_MASK(val) bfin_write16(SDH_E_MASK, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001431#define bfin_read_SDH_CFG() bfin_read16(SDH_CFG)
1432#define bfin_write_SDH_CFG(val) bfin_write16(SDH_CFG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001433#define bfin_read_SDH_RD_WAIT_EN() bfin_read16(SDH_RD_WAIT_EN)
1434#define bfin_write_SDH_RD_WAIT_EN(val) bfin_write16(SDH_RD_WAIT_EN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001435#define bfin_read_SDH_PID0() bfin_read16(SDH_PID0)
1436#define bfin_write_SDH_PID0(val) bfin_write16(SDH_PID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001437#define bfin_read_SDH_PID1() bfin_read16(SDH_PID1)
1438#define bfin_write_SDH_PID1(val) bfin_write16(SDH_PID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001439#define bfin_read_SDH_PID2() bfin_read16(SDH_PID2)
1440#define bfin_write_SDH_PID2(val) bfin_write16(SDH_PID2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001441#define bfin_read_SDH_PID3() bfin_read16(SDH_PID3)
1442#define bfin_write_SDH_PID3(val) bfin_write16(SDH_PID3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001443#define bfin_read_SDH_PID4() bfin_read16(SDH_PID4)
1444#define bfin_write_SDH_PID4(val) bfin_write16(SDH_PID4, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001445#define bfin_read_SDH_PID5() bfin_read16(SDH_PID5)
1446#define bfin_write_SDH_PID5(val) bfin_write16(SDH_PID5, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001447#define bfin_read_SDH_PID6() bfin_read16(SDH_PID6)
1448#define bfin_write_SDH_PID6(val) bfin_write16(SDH_PID6, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001449#define bfin_read_SDH_PID7() bfin_read16(SDH_PID7)
1450#define bfin_write_SDH_PID7(val) bfin_write16(SDH_PID7, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001451#define bfin_read_ATAPI_CONTROL() bfin_read16(ATAPI_CONTROL)
1452#define bfin_write_ATAPI_CONTROL(val) bfin_write16(ATAPI_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001453#define bfin_read_ATAPI_STATUS() bfin_read16(ATAPI_STATUS)
1454#define bfin_write_ATAPI_STATUS(val) bfin_write16(ATAPI_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001455#define bfin_read_ATAPI_DEV_ADDR() bfin_read16(ATAPI_DEV_ADDR)
1456#define bfin_write_ATAPI_DEV_ADDR(val) bfin_write16(ATAPI_DEV_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001457#define bfin_read_ATAPI_DEV_TXBUF() bfin_read16(ATAPI_DEV_TXBUF)
1458#define bfin_write_ATAPI_DEV_TXBUF(val) bfin_write16(ATAPI_DEV_TXBUF, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001459#define bfin_read_ATAPI_DEV_RXBUF() bfin_read16(ATAPI_DEV_RXBUF)
1460#define bfin_write_ATAPI_DEV_RXBUF(val) bfin_write16(ATAPI_DEV_RXBUF, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001461#define bfin_read_ATAPI_INT_MASK() bfin_read16(ATAPI_INT_MASK)
1462#define bfin_write_ATAPI_INT_MASK(val) bfin_write16(ATAPI_INT_MASK, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001463#define bfin_read_ATAPI_INT_STATUS() bfin_read16(ATAPI_INT_STATUS)
1464#define bfin_write_ATAPI_INT_STATUS(val) bfin_write16(ATAPI_INT_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001465#define bfin_read_ATAPI_XFER_LEN() bfin_read16(ATAPI_XFER_LEN)
1466#define bfin_write_ATAPI_XFER_LEN(val) bfin_write16(ATAPI_XFER_LEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001467#define bfin_read_ATAPI_LINE_STATUS() bfin_read16(ATAPI_LINE_STATUS)
1468#define bfin_write_ATAPI_LINE_STATUS(val) bfin_write16(ATAPI_LINE_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001469#define bfin_read_ATAPI_SM_STATE() bfin_read16(ATAPI_SM_STATE)
1470#define bfin_write_ATAPI_SM_STATE(val) bfin_write16(ATAPI_SM_STATE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001471#define bfin_read_ATAPI_TERMINATE() bfin_read16(ATAPI_TERMINATE)
1472#define bfin_write_ATAPI_TERMINATE(val) bfin_write16(ATAPI_TERMINATE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001473#define bfin_read_ATAPI_PIO_TFRCNT() bfin_read16(ATAPI_PIO_TFRCNT)
1474#define bfin_write_ATAPI_PIO_TFRCNT(val) bfin_write16(ATAPI_PIO_TFRCNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001475#define bfin_read_ATAPI_DMA_TFRCNT() bfin_read16(ATAPI_DMA_TFRCNT)
1476#define bfin_write_ATAPI_DMA_TFRCNT(val) bfin_write16(ATAPI_DMA_TFRCNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001477#define bfin_read_ATAPI_UMAIN_TFRCNT() bfin_read16(ATAPI_UMAIN_TFRCNT)
1478#define bfin_write_ATAPI_UMAIN_TFRCNT(val) bfin_write16(ATAPI_UMAIN_TFRCNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001479#define bfin_read_ATAPI_UDMAOUT_TFRCNT() bfin_read16(ATAPI_UDMAOUT_TFRCNT)
1480#define bfin_write_ATAPI_UDMAOUT_TFRCNT(val) bfin_write16(ATAPI_UDMAOUT_TFRCNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001481#define bfin_read_ATAPI_REG_TIM_0() bfin_read16(ATAPI_REG_TIM_0)
1482#define bfin_write_ATAPI_REG_TIM_0(val) bfin_write16(ATAPI_REG_TIM_0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001483#define bfin_read_ATAPI_PIO_TIM_0() bfin_read16(ATAPI_PIO_TIM_0)
1484#define bfin_write_ATAPI_PIO_TIM_0(val) bfin_write16(ATAPI_PIO_TIM_0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001485#define bfin_read_ATAPI_PIO_TIM_1() bfin_read16(ATAPI_PIO_TIM_1)
1486#define bfin_write_ATAPI_PIO_TIM_1(val) bfin_write16(ATAPI_PIO_TIM_1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001487#define bfin_read_ATAPI_MULTI_TIM_0() bfin_read16(ATAPI_MULTI_TIM_0)
1488#define bfin_write_ATAPI_MULTI_TIM_0(val) bfin_write16(ATAPI_MULTI_TIM_0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001489#define bfin_read_ATAPI_MULTI_TIM_1() bfin_read16(ATAPI_MULTI_TIM_1)
1490#define bfin_write_ATAPI_MULTI_TIM_1(val) bfin_write16(ATAPI_MULTI_TIM_1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001491#define bfin_read_ATAPI_MULTI_TIM_2() bfin_read16(ATAPI_MULTI_TIM_2)
1492#define bfin_write_ATAPI_MULTI_TIM_2(val) bfin_write16(ATAPI_MULTI_TIM_2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001493#define bfin_read_ATAPI_ULTRA_TIM_0() bfin_read16(ATAPI_ULTRA_TIM_0)
1494#define bfin_write_ATAPI_ULTRA_TIM_0(val) bfin_write16(ATAPI_ULTRA_TIM_0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001495#define bfin_read_ATAPI_ULTRA_TIM_1() bfin_read16(ATAPI_ULTRA_TIM_1)
1496#define bfin_write_ATAPI_ULTRA_TIM_1(val) bfin_write16(ATAPI_ULTRA_TIM_1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001497#define bfin_read_ATAPI_ULTRA_TIM_2() bfin_read16(ATAPI_ULTRA_TIM_2)
1498#define bfin_write_ATAPI_ULTRA_TIM_2(val) bfin_write16(ATAPI_ULTRA_TIM_2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001499#define bfin_read_ATAPI_ULTRA_TIM_3() bfin_read16(ATAPI_ULTRA_TIM_3)
1500#define bfin_write_ATAPI_ULTRA_TIM_3(val) bfin_write16(ATAPI_ULTRA_TIM_3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001501#define bfin_read_NFC_CTL() bfin_read16(NFC_CTL)
1502#define bfin_write_NFC_CTL(val) bfin_write16(NFC_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001503#define bfin_read_NFC_STAT() bfin_read16(NFC_STAT)
1504#define bfin_write_NFC_STAT(val) bfin_write16(NFC_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001505#define bfin_read_NFC_IRQSTAT() bfin_read16(NFC_IRQSTAT)
1506#define bfin_write_NFC_IRQSTAT(val) bfin_write16(NFC_IRQSTAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001507#define bfin_read_NFC_IRQMASK() bfin_read16(NFC_IRQMASK)
1508#define bfin_write_NFC_IRQMASK(val) bfin_write16(NFC_IRQMASK, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001509#define bfin_read_NFC_ECC0() bfin_read16(NFC_ECC0)
1510#define bfin_write_NFC_ECC0(val) bfin_write16(NFC_ECC0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001511#define bfin_read_NFC_ECC1() bfin_read16(NFC_ECC1)
1512#define bfin_write_NFC_ECC1(val) bfin_write16(NFC_ECC1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001513#define bfin_read_NFC_ECC2() bfin_read16(NFC_ECC2)
1514#define bfin_write_NFC_ECC2(val) bfin_write16(NFC_ECC2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001515#define bfin_read_NFC_ECC3() bfin_read16(NFC_ECC3)
1516#define bfin_write_NFC_ECC3(val) bfin_write16(NFC_ECC3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001517#define bfin_read_NFC_COUNT() bfin_read16(NFC_COUNT)
1518#define bfin_write_NFC_COUNT(val) bfin_write16(NFC_COUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001519#define bfin_read_NFC_RST() bfin_read16(NFC_RST)
1520#define bfin_write_NFC_RST(val) bfin_write16(NFC_RST, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001521#define bfin_read_NFC_PGCTL() bfin_read16(NFC_PGCTL)
1522#define bfin_write_NFC_PGCTL(val) bfin_write16(NFC_PGCTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001523#define bfin_read_NFC_READ() bfin_read16(NFC_READ)
1524#define bfin_write_NFC_READ(val) bfin_write16(NFC_READ, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001525#define bfin_read_NFC_ADDR() bfin_read16(NFC_ADDR)
1526#define bfin_write_NFC_ADDR(val) bfin_write16(NFC_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001527#define bfin_read_NFC_CMD() bfin_read16(NFC_CMD)
1528#define bfin_write_NFC_CMD(val) bfin_write16(NFC_CMD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001529#define bfin_read_NFC_DATA_WR() bfin_read16(NFC_DATA_WR)
1530#define bfin_write_NFC_DATA_WR(val) bfin_write16(NFC_DATA_WR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001531#define bfin_read_NFC_DATA_RD() bfin_read16(NFC_DATA_RD)
1532#define bfin_write_NFC_DATA_RD(val) bfin_write16(NFC_DATA_RD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001533#define bfin_read_EPPI1_STATUS() bfin_read16(EPPI1_STATUS)
1534#define bfin_write_EPPI1_STATUS(val) bfin_write16(EPPI1_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001535#define bfin_read_EPPI1_HCOUNT() bfin_read16(EPPI1_HCOUNT)
1536#define bfin_write_EPPI1_HCOUNT(val) bfin_write16(EPPI1_HCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001537#define bfin_read_EPPI1_HDELAY() bfin_read16(EPPI1_HDELAY)
1538#define bfin_write_EPPI1_HDELAY(val) bfin_write16(EPPI1_HDELAY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001539#define bfin_read_EPPI1_VCOUNT() bfin_read16(EPPI1_VCOUNT)
1540#define bfin_write_EPPI1_VCOUNT(val) bfin_write16(EPPI1_VCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001541#define bfin_read_EPPI1_VDELAY() bfin_read16(EPPI1_VDELAY)
1542#define bfin_write_EPPI1_VDELAY(val) bfin_write16(EPPI1_VDELAY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001543#define bfin_read_EPPI1_FRAME() bfin_read16(EPPI1_FRAME)
1544#define bfin_write_EPPI1_FRAME(val) bfin_write16(EPPI1_FRAME, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001545#define bfin_read_EPPI1_LINE() bfin_read16(EPPI1_LINE)
1546#define bfin_write_EPPI1_LINE(val) bfin_write16(EPPI1_LINE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001547#define bfin_read_EPPI1_CLKDIV() bfin_read16(EPPI1_CLKDIV)
1548#define bfin_write_EPPI1_CLKDIV(val) bfin_write16(EPPI1_CLKDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001549#define bfin_read_EPPI1_CONTROL() bfin_read32(EPPI1_CONTROL)
1550#define bfin_write_EPPI1_CONTROL(val) bfin_write32(EPPI1_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001551#define bfin_read_EPPI1_FS1W_HBL() bfin_read32(EPPI1_FS1W_HBL)
1552#define bfin_write_EPPI1_FS1W_HBL(val) bfin_write32(EPPI1_FS1W_HBL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001553#define bfin_read_EPPI1_FS1P_AVPL() bfin_read32(EPPI1_FS1P_AVPL)
1554#define bfin_write_EPPI1_FS1P_AVPL(val) bfin_write32(EPPI1_FS1P_AVPL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001555#define bfin_read_EPPI1_FS2W_LVB() bfin_read32(EPPI1_FS2W_LVB)
1556#define bfin_write_EPPI1_FS2W_LVB(val) bfin_write32(EPPI1_FS2W_LVB, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001557#define bfin_read_EPPI1_FS2P_LAVF() bfin_read32(EPPI1_FS2P_LAVF)
1558#define bfin_write_EPPI1_FS2P_LAVF(val) bfin_write32(EPPI1_FS2P_LAVF, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001559#define bfin_read_EPPI1_CLIP() bfin_read32(EPPI1_CLIP)
1560#define bfin_write_EPPI1_CLIP(val) bfin_write32(EPPI1_CLIP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001561#define bfin_read_EPPI2_STATUS() bfin_read16(EPPI2_STATUS)
1562#define bfin_write_EPPI2_STATUS(val) bfin_write16(EPPI2_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001563#define bfin_read_EPPI2_HCOUNT() bfin_read16(EPPI2_HCOUNT)
1564#define bfin_write_EPPI2_HCOUNT(val) bfin_write16(EPPI2_HCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001565#define bfin_read_EPPI2_HDELAY() bfin_read16(EPPI2_HDELAY)
1566#define bfin_write_EPPI2_HDELAY(val) bfin_write16(EPPI2_HDELAY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001567#define bfin_read_EPPI2_VCOUNT() bfin_read16(EPPI2_VCOUNT)
1568#define bfin_write_EPPI2_VCOUNT(val) bfin_write16(EPPI2_VCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001569#define bfin_read_EPPI2_VDELAY() bfin_read16(EPPI2_VDELAY)
1570#define bfin_write_EPPI2_VDELAY(val) bfin_write16(EPPI2_VDELAY, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001571#define bfin_read_EPPI2_FRAME() bfin_read16(EPPI2_FRAME)
1572#define bfin_write_EPPI2_FRAME(val) bfin_write16(EPPI2_FRAME, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001573#define bfin_read_EPPI2_LINE() bfin_read16(EPPI2_LINE)
1574#define bfin_write_EPPI2_LINE(val) bfin_write16(EPPI2_LINE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001575#define bfin_read_EPPI2_CLKDIV() bfin_read16(EPPI2_CLKDIV)
1576#define bfin_write_EPPI2_CLKDIV(val) bfin_write16(EPPI2_CLKDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001577#define bfin_read_EPPI2_CONTROL() bfin_read32(EPPI2_CONTROL)
1578#define bfin_write_EPPI2_CONTROL(val) bfin_write32(EPPI2_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001579#define bfin_read_EPPI2_FS1W_HBL() bfin_read32(EPPI2_FS1W_HBL)
1580#define bfin_write_EPPI2_FS1W_HBL(val) bfin_write32(EPPI2_FS1W_HBL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001581#define bfin_read_EPPI2_FS1P_AVPL() bfin_read32(EPPI2_FS1P_AVPL)
1582#define bfin_write_EPPI2_FS1P_AVPL(val) bfin_write32(EPPI2_FS1P_AVPL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001583#define bfin_read_EPPI2_FS2W_LVB() bfin_read32(EPPI2_FS2W_LVB)
1584#define bfin_write_EPPI2_FS2W_LVB(val) bfin_write32(EPPI2_FS2W_LVB, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001585#define bfin_read_EPPI2_FS2P_LAVF() bfin_read32(EPPI2_FS2P_LAVF)
1586#define bfin_write_EPPI2_FS2P_LAVF(val) bfin_write32(EPPI2_FS2P_LAVF, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001587#define bfin_read_EPPI2_CLIP() bfin_read32(EPPI2_CLIP)
1588#define bfin_write_EPPI2_CLIP(val) bfin_write32(EPPI2_CLIP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001589#define bfin_read_CAN0_MC1() bfin_read16(CAN0_MC1)
1590#define bfin_write_CAN0_MC1(val) bfin_write16(CAN0_MC1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001591#define bfin_read_CAN0_MD1() bfin_read16(CAN0_MD1)
1592#define bfin_write_CAN0_MD1(val) bfin_write16(CAN0_MD1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001593#define bfin_read_CAN0_TRS1() bfin_read16(CAN0_TRS1)
1594#define bfin_write_CAN0_TRS1(val) bfin_write16(CAN0_TRS1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001595#define bfin_read_CAN0_TRR1() bfin_read16(CAN0_TRR1)
1596#define bfin_write_CAN0_TRR1(val) bfin_write16(CAN0_TRR1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001597#define bfin_read_CAN0_TA1() bfin_read16(CAN0_TA1)
1598#define bfin_write_CAN0_TA1(val) bfin_write16(CAN0_TA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001599#define bfin_read_CAN0_AA1() bfin_read16(CAN0_AA1)
1600#define bfin_write_CAN0_AA1(val) bfin_write16(CAN0_AA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001601#define bfin_read_CAN0_RMP1() bfin_read16(CAN0_RMP1)
1602#define bfin_write_CAN0_RMP1(val) bfin_write16(CAN0_RMP1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001603#define bfin_read_CAN0_RML1() bfin_read16(CAN0_RML1)
1604#define bfin_write_CAN0_RML1(val) bfin_write16(CAN0_RML1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001605#define bfin_read_CAN0_MBTIF1() bfin_read16(CAN0_MBTIF1)
1606#define bfin_write_CAN0_MBTIF1(val) bfin_write16(CAN0_MBTIF1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001607#define bfin_read_CAN0_MBRIF1() bfin_read16(CAN0_MBRIF1)
1608#define bfin_write_CAN0_MBRIF1(val) bfin_write16(CAN0_MBRIF1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001609#define bfin_read_CAN0_MBIM1() bfin_read16(CAN0_MBIM1)
1610#define bfin_write_CAN0_MBIM1(val) bfin_write16(CAN0_MBIM1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001611#define bfin_read_CAN0_RFH1() bfin_read16(CAN0_RFH1)
1612#define bfin_write_CAN0_RFH1(val) bfin_write16(CAN0_RFH1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001613#define bfin_read_CAN0_OPSS1() bfin_read16(CAN0_OPSS1)
1614#define bfin_write_CAN0_OPSS1(val) bfin_write16(CAN0_OPSS1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001615#define bfin_read_CAN0_MC2() bfin_read16(CAN0_MC2)
1616#define bfin_write_CAN0_MC2(val) bfin_write16(CAN0_MC2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001617#define bfin_read_CAN0_MD2() bfin_read16(CAN0_MD2)
1618#define bfin_write_CAN0_MD2(val) bfin_write16(CAN0_MD2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001619#define bfin_read_CAN0_TRS2() bfin_read16(CAN0_TRS2)
1620#define bfin_write_CAN0_TRS2(val) bfin_write16(CAN0_TRS2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001621#define bfin_read_CAN0_TRR2() bfin_read16(CAN0_TRR2)
1622#define bfin_write_CAN0_TRR2(val) bfin_write16(CAN0_TRR2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001623#define bfin_read_CAN0_TA2() bfin_read16(CAN0_TA2)
1624#define bfin_write_CAN0_TA2(val) bfin_write16(CAN0_TA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001625#define bfin_read_CAN0_AA2() bfin_read16(CAN0_AA2)
1626#define bfin_write_CAN0_AA2(val) bfin_write16(CAN0_AA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001627#define bfin_read_CAN0_RMP2() bfin_read16(CAN0_RMP2)
1628#define bfin_write_CAN0_RMP2(val) bfin_write16(CAN0_RMP2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001629#define bfin_read_CAN0_RML2() bfin_read16(CAN0_RML2)
1630#define bfin_write_CAN0_RML2(val) bfin_write16(CAN0_RML2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001631#define bfin_read_CAN0_MBTIF2() bfin_read16(CAN0_MBTIF2)
1632#define bfin_write_CAN0_MBTIF2(val) bfin_write16(CAN0_MBTIF2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001633#define bfin_read_CAN0_MBRIF2() bfin_read16(CAN0_MBRIF2)
1634#define bfin_write_CAN0_MBRIF2(val) bfin_write16(CAN0_MBRIF2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001635#define bfin_read_CAN0_MBIM2() bfin_read16(CAN0_MBIM2)
1636#define bfin_write_CAN0_MBIM2(val) bfin_write16(CAN0_MBIM2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001637#define bfin_read_CAN0_RFH2() bfin_read16(CAN0_RFH2)
1638#define bfin_write_CAN0_RFH2(val) bfin_write16(CAN0_RFH2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001639#define bfin_read_CAN0_OPSS2() bfin_read16(CAN0_OPSS2)
1640#define bfin_write_CAN0_OPSS2(val) bfin_write16(CAN0_OPSS2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001641#define bfin_read_CAN0_CLOCK() bfin_read16(CAN0_CLOCK)
1642#define bfin_write_CAN0_CLOCK(val) bfin_write16(CAN0_CLOCK, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001643#define bfin_read_CAN0_TIMING() bfin_read16(CAN0_TIMING)
1644#define bfin_write_CAN0_TIMING(val) bfin_write16(CAN0_TIMING, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001645#define bfin_read_CAN0_DEBUG() bfin_read16(CAN0_DEBUG)
1646#define bfin_write_CAN0_DEBUG(val) bfin_write16(CAN0_DEBUG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001647#define bfin_read_CAN0_STATUS() bfin_read16(CAN0_STATUS)
1648#define bfin_write_CAN0_STATUS(val) bfin_write16(CAN0_STATUS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001649#define bfin_read_CAN0_CEC() bfin_read16(CAN0_CEC)
1650#define bfin_write_CAN0_CEC(val) bfin_write16(CAN0_CEC, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001651#define bfin_read_CAN0_GIS() bfin_read16(CAN0_GIS)
1652#define bfin_write_CAN0_GIS(val) bfin_write16(CAN0_GIS, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001653#define bfin_read_CAN0_GIM() bfin_read16(CAN0_GIM)
1654#define bfin_write_CAN0_GIM(val) bfin_write16(CAN0_GIM, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001655#define bfin_read_CAN0_GIF() bfin_read16(CAN0_GIF)
1656#define bfin_write_CAN0_GIF(val) bfin_write16(CAN0_GIF, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001657#define bfin_read_CAN0_CONTROL() bfin_read16(CAN0_CONTROL)
1658#define bfin_write_CAN0_CONTROL(val) bfin_write16(CAN0_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001659#define bfin_read_CAN0_INTR() bfin_read16(CAN0_INTR)
1660#define bfin_write_CAN0_INTR(val) bfin_write16(CAN0_INTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001661#define bfin_read_CAN0_MBTD() bfin_read16(CAN0_MBTD)
1662#define bfin_write_CAN0_MBTD(val) bfin_write16(CAN0_MBTD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001663#define bfin_read_CAN0_EWR() bfin_read16(CAN0_EWR)
1664#define bfin_write_CAN0_EWR(val) bfin_write16(CAN0_EWR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001665#define bfin_read_CAN0_ESR() bfin_read16(CAN0_ESR)
1666#define bfin_write_CAN0_ESR(val) bfin_write16(CAN0_ESR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001667#define bfin_read_CAN0_UCCNT() bfin_read16(CAN0_UCCNT)
1668#define bfin_write_CAN0_UCCNT(val) bfin_write16(CAN0_UCCNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001669#define bfin_read_CAN0_UCRC() bfin_read16(CAN0_UCRC)
1670#define bfin_write_CAN0_UCRC(val) bfin_write16(CAN0_UCRC, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001671#define bfin_read_CAN0_UCCNF() bfin_read16(CAN0_UCCNF)
1672#define bfin_write_CAN0_UCCNF(val) bfin_write16(CAN0_UCCNF, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001673#define bfin_read_CAN0_AM00L() bfin_read16(CAN0_AM00L)
1674#define bfin_write_CAN0_AM00L(val) bfin_write16(CAN0_AM00L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001675#define bfin_read_CAN0_AM00H() bfin_read16(CAN0_AM00H)
1676#define bfin_write_CAN0_AM00H(val) bfin_write16(CAN0_AM00H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001677#define bfin_read_CAN0_AM01L() bfin_read16(CAN0_AM01L)
1678#define bfin_write_CAN0_AM01L(val) bfin_write16(CAN0_AM01L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001679#define bfin_read_CAN0_AM01H() bfin_read16(CAN0_AM01H)
1680#define bfin_write_CAN0_AM01H(val) bfin_write16(CAN0_AM01H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001681#define bfin_read_CAN0_AM02L() bfin_read16(CAN0_AM02L)
1682#define bfin_write_CAN0_AM02L(val) bfin_write16(CAN0_AM02L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001683#define bfin_read_CAN0_AM02H() bfin_read16(CAN0_AM02H)
1684#define bfin_write_CAN0_AM02H(val) bfin_write16(CAN0_AM02H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001685#define bfin_read_CAN0_AM03L() bfin_read16(CAN0_AM03L)
1686#define bfin_write_CAN0_AM03L(val) bfin_write16(CAN0_AM03L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001687#define bfin_read_CAN0_AM03H() bfin_read16(CAN0_AM03H)
1688#define bfin_write_CAN0_AM03H(val) bfin_write16(CAN0_AM03H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001689#define bfin_read_CAN0_AM04L() bfin_read16(CAN0_AM04L)
1690#define bfin_write_CAN0_AM04L(val) bfin_write16(CAN0_AM04L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001691#define bfin_read_CAN0_AM04H() bfin_read16(CAN0_AM04H)
1692#define bfin_write_CAN0_AM04H(val) bfin_write16(CAN0_AM04H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001693#define bfin_read_CAN0_AM05L() bfin_read16(CAN0_AM05L)
1694#define bfin_write_CAN0_AM05L(val) bfin_write16(CAN0_AM05L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001695#define bfin_read_CAN0_AM05H() bfin_read16(CAN0_AM05H)
1696#define bfin_write_CAN0_AM05H(val) bfin_write16(CAN0_AM05H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001697#define bfin_read_CAN0_AM06L() bfin_read16(CAN0_AM06L)
1698#define bfin_write_CAN0_AM06L(val) bfin_write16(CAN0_AM06L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001699#define bfin_read_CAN0_AM06H() bfin_read16(CAN0_AM06H)
1700#define bfin_write_CAN0_AM06H(val) bfin_write16(CAN0_AM06H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001701#define bfin_read_CAN0_AM07L() bfin_read16(CAN0_AM07L)
1702#define bfin_write_CAN0_AM07L(val) bfin_write16(CAN0_AM07L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001703#define bfin_read_CAN0_AM07H() bfin_read16(CAN0_AM07H)
1704#define bfin_write_CAN0_AM07H(val) bfin_write16(CAN0_AM07H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001705#define bfin_read_CAN0_AM08L() bfin_read16(CAN0_AM08L)
1706#define bfin_write_CAN0_AM08L(val) bfin_write16(CAN0_AM08L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001707#define bfin_read_CAN0_AM08H() bfin_read16(CAN0_AM08H)
1708#define bfin_write_CAN0_AM08H(val) bfin_write16(CAN0_AM08H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001709#define bfin_read_CAN0_AM09L() bfin_read16(CAN0_AM09L)
1710#define bfin_write_CAN0_AM09L(val) bfin_write16(CAN0_AM09L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001711#define bfin_read_CAN0_AM09H() bfin_read16(CAN0_AM09H)
1712#define bfin_write_CAN0_AM09H(val) bfin_write16(CAN0_AM09H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001713#define bfin_read_CAN0_AM10L() bfin_read16(CAN0_AM10L)
1714#define bfin_write_CAN0_AM10L(val) bfin_write16(CAN0_AM10L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001715#define bfin_read_CAN0_AM10H() bfin_read16(CAN0_AM10H)
1716#define bfin_write_CAN0_AM10H(val) bfin_write16(CAN0_AM10H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001717#define bfin_read_CAN0_AM11L() bfin_read16(CAN0_AM11L)
1718#define bfin_write_CAN0_AM11L(val) bfin_write16(CAN0_AM11L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001719#define bfin_read_CAN0_AM11H() bfin_read16(CAN0_AM11H)
1720#define bfin_write_CAN0_AM11H(val) bfin_write16(CAN0_AM11H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001721#define bfin_read_CAN0_AM12L() bfin_read16(CAN0_AM12L)
1722#define bfin_write_CAN0_AM12L(val) bfin_write16(CAN0_AM12L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001723#define bfin_read_CAN0_AM12H() bfin_read16(CAN0_AM12H)
1724#define bfin_write_CAN0_AM12H(val) bfin_write16(CAN0_AM12H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001725#define bfin_read_CAN0_AM13L() bfin_read16(CAN0_AM13L)
1726#define bfin_write_CAN0_AM13L(val) bfin_write16(CAN0_AM13L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001727#define bfin_read_CAN0_AM13H() bfin_read16(CAN0_AM13H)
1728#define bfin_write_CAN0_AM13H(val) bfin_write16(CAN0_AM13H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001729#define bfin_read_CAN0_AM14L() bfin_read16(CAN0_AM14L)
1730#define bfin_write_CAN0_AM14L(val) bfin_write16(CAN0_AM14L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001731#define bfin_read_CAN0_AM14H() bfin_read16(CAN0_AM14H)
1732#define bfin_write_CAN0_AM14H(val) bfin_write16(CAN0_AM14H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001733#define bfin_read_CAN0_AM15L() bfin_read16(CAN0_AM15L)
1734#define bfin_write_CAN0_AM15L(val) bfin_write16(CAN0_AM15L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001735#define bfin_read_CAN0_AM15H() bfin_read16(CAN0_AM15H)
1736#define bfin_write_CAN0_AM15H(val) bfin_write16(CAN0_AM15H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001737#define bfin_read_CAN0_AM16L() bfin_read16(CAN0_AM16L)
1738#define bfin_write_CAN0_AM16L(val) bfin_write16(CAN0_AM16L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001739#define bfin_read_CAN0_AM16H() bfin_read16(CAN0_AM16H)
1740#define bfin_write_CAN0_AM16H(val) bfin_write16(CAN0_AM16H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001741#define bfin_read_CAN0_AM17L() bfin_read16(CAN0_AM17L)
1742#define bfin_write_CAN0_AM17L(val) bfin_write16(CAN0_AM17L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001743#define bfin_read_CAN0_AM17H() bfin_read16(CAN0_AM17H)
1744#define bfin_write_CAN0_AM17H(val) bfin_write16(CAN0_AM17H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001745#define bfin_read_CAN0_AM18L() bfin_read16(CAN0_AM18L)
1746#define bfin_write_CAN0_AM18L(val) bfin_write16(CAN0_AM18L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001747#define bfin_read_CAN0_AM18H() bfin_read16(CAN0_AM18H)
1748#define bfin_write_CAN0_AM18H(val) bfin_write16(CAN0_AM18H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001749#define bfin_read_CAN0_AM19L() bfin_read16(CAN0_AM19L)
1750#define bfin_write_CAN0_AM19L(val) bfin_write16(CAN0_AM19L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001751#define bfin_read_CAN0_AM19H() bfin_read16(CAN0_AM19H)
1752#define bfin_write_CAN0_AM19H(val) bfin_write16(CAN0_AM19H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001753#define bfin_read_CAN0_AM20L() bfin_read16(CAN0_AM20L)
1754#define bfin_write_CAN0_AM20L(val) bfin_write16(CAN0_AM20L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001755#define bfin_read_CAN0_AM20H() bfin_read16(CAN0_AM20H)
1756#define bfin_write_CAN0_AM20H(val) bfin_write16(CAN0_AM20H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001757#define bfin_read_CAN0_AM21L() bfin_read16(CAN0_AM21L)
1758#define bfin_write_CAN0_AM21L(val) bfin_write16(CAN0_AM21L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001759#define bfin_read_CAN0_AM21H() bfin_read16(CAN0_AM21H)
1760#define bfin_write_CAN0_AM21H(val) bfin_write16(CAN0_AM21H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001761#define bfin_read_CAN0_AM22L() bfin_read16(CAN0_AM22L)
1762#define bfin_write_CAN0_AM22L(val) bfin_write16(CAN0_AM22L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001763#define bfin_read_CAN0_AM22H() bfin_read16(CAN0_AM22H)
1764#define bfin_write_CAN0_AM22H(val) bfin_write16(CAN0_AM22H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001765#define bfin_read_CAN0_AM23L() bfin_read16(CAN0_AM23L)
1766#define bfin_write_CAN0_AM23L(val) bfin_write16(CAN0_AM23L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001767#define bfin_read_CAN0_AM23H() bfin_read16(CAN0_AM23H)
1768#define bfin_write_CAN0_AM23H(val) bfin_write16(CAN0_AM23H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001769#define bfin_read_CAN0_AM24L() bfin_read16(CAN0_AM24L)
1770#define bfin_write_CAN0_AM24L(val) bfin_write16(CAN0_AM24L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001771#define bfin_read_CAN0_AM24H() bfin_read16(CAN0_AM24H)
1772#define bfin_write_CAN0_AM24H(val) bfin_write16(CAN0_AM24H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001773#define bfin_read_CAN0_AM25L() bfin_read16(CAN0_AM25L)
1774#define bfin_write_CAN0_AM25L(val) bfin_write16(CAN0_AM25L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001775#define bfin_read_CAN0_AM25H() bfin_read16(CAN0_AM25H)
1776#define bfin_write_CAN0_AM25H(val) bfin_write16(CAN0_AM25H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001777#define bfin_read_CAN0_AM26L() bfin_read16(CAN0_AM26L)
1778#define bfin_write_CAN0_AM26L(val) bfin_write16(CAN0_AM26L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001779#define bfin_read_CAN0_AM26H() bfin_read16(CAN0_AM26H)
1780#define bfin_write_CAN0_AM26H(val) bfin_write16(CAN0_AM26H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001781#define bfin_read_CAN0_AM27L() bfin_read16(CAN0_AM27L)
1782#define bfin_write_CAN0_AM27L(val) bfin_write16(CAN0_AM27L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001783#define bfin_read_CAN0_AM27H() bfin_read16(CAN0_AM27H)
1784#define bfin_write_CAN0_AM27H(val) bfin_write16(CAN0_AM27H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001785#define bfin_read_CAN0_AM28L() bfin_read16(CAN0_AM28L)
1786#define bfin_write_CAN0_AM28L(val) bfin_write16(CAN0_AM28L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001787#define bfin_read_CAN0_AM28H() bfin_read16(CAN0_AM28H)
1788#define bfin_write_CAN0_AM28H(val) bfin_write16(CAN0_AM28H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001789#define bfin_read_CAN0_AM29L() bfin_read16(CAN0_AM29L)
1790#define bfin_write_CAN0_AM29L(val) bfin_write16(CAN0_AM29L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001791#define bfin_read_CAN0_AM29H() bfin_read16(CAN0_AM29H)
1792#define bfin_write_CAN0_AM29H(val) bfin_write16(CAN0_AM29H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001793#define bfin_read_CAN0_AM30L() bfin_read16(CAN0_AM30L)
1794#define bfin_write_CAN0_AM30L(val) bfin_write16(CAN0_AM30L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001795#define bfin_read_CAN0_AM30H() bfin_read16(CAN0_AM30H)
1796#define bfin_write_CAN0_AM30H(val) bfin_write16(CAN0_AM30H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001797#define bfin_read_CAN0_AM31L() bfin_read16(CAN0_AM31L)
1798#define bfin_write_CAN0_AM31L(val) bfin_write16(CAN0_AM31L, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001799#define bfin_read_CAN0_AM31H() bfin_read16(CAN0_AM31H)
1800#define bfin_write_CAN0_AM31H(val) bfin_write16(CAN0_AM31H, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001801#define bfin_read_CAN0_MB00_DATA0() bfin_read16(CAN0_MB00_DATA0)
1802#define bfin_write_CAN0_MB00_DATA0(val) bfin_write16(CAN0_MB00_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001803#define bfin_read_CAN0_MB00_DATA1() bfin_read16(CAN0_MB00_DATA1)
1804#define bfin_write_CAN0_MB00_DATA1(val) bfin_write16(CAN0_MB00_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001805#define bfin_read_CAN0_MB00_DATA2() bfin_read16(CAN0_MB00_DATA2)
1806#define bfin_write_CAN0_MB00_DATA2(val) bfin_write16(CAN0_MB00_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001807#define bfin_read_CAN0_MB00_DATA3() bfin_read16(CAN0_MB00_DATA3)
1808#define bfin_write_CAN0_MB00_DATA3(val) bfin_write16(CAN0_MB00_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001809#define bfin_read_CAN0_MB00_LENGTH() bfin_read16(CAN0_MB00_LENGTH)
1810#define bfin_write_CAN0_MB00_LENGTH(val) bfin_write16(CAN0_MB00_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001811#define bfin_read_CAN0_MB00_TIMESTAMP() bfin_read16(CAN0_MB00_TIMESTAMP)
1812#define bfin_write_CAN0_MB00_TIMESTAMP(val) bfin_write16(CAN0_MB00_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001813#define bfin_read_CAN0_MB00_ID0() bfin_read16(CAN0_MB00_ID0)
1814#define bfin_write_CAN0_MB00_ID0(val) bfin_write16(CAN0_MB00_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001815#define bfin_read_CAN0_MB00_ID1() bfin_read16(CAN0_MB00_ID1)
1816#define bfin_write_CAN0_MB00_ID1(val) bfin_write16(CAN0_MB00_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001817#define bfin_read_CAN0_MB01_DATA0() bfin_read16(CAN0_MB01_DATA0)
1818#define bfin_write_CAN0_MB01_DATA0(val) bfin_write16(CAN0_MB01_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001819#define bfin_read_CAN0_MB01_DATA1() bfin_read16(CAN0_MB01_DATA1)
1820#define bfin_write_CAN0_MB01_DATA1(val) bfin_write16(CAN0_MB01_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001821#define bfin_read_CAN0_MB01_DATA2() bfin_read16(CAN0_MB01_DATA2)
1822#define bfin_write_CAN0_MB01_DATA2(val) bfin_write16(CAN0_MB01_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001823#define bfin_read_CAN0_MB01_DATA3() bfin_read16(CAN0_MB01_DATA3)
1824#define bfin_write_CAN0_MB01_DATA3(val) bfin_write16(CAN0_MB01_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001825#define bfin_read_CAN0_MB01_LENGTH() bfin_read16(CAN0_MB01_LENGTH)
1826#define bfin_write_CAN0_MB01_LENGTH(val) bfin_write16(CAN0_MB01_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001827#define bfin_read_CAN0_MB01_TIMESTAMP() bfin_read16(CAN0_MB01_TIMESTAMP)
1828#define bfin_write_CAN0_MB01_TIMESTAMP(val) bfin_write16(CAN0_MB01_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001829#define bfin_read_CAN0_MB01_ID0() bfin_read16(CAN0_MB01_ID0)
1830#define bfin_write_CAN0_MB01_ID0(val) bfin_write16(CAN0_MB01_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001831#define bfin_read_CAN0_MB01_ID1() bfin_read16(CAN0_MB01_ID1)
1832#define bfin_write_CAN0_MB01_ID1(val) bfin_write16(CAN0_MB01_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001833#define bfin_read_CAN0_MB02_DATA0() bfin_read16(CAN0_MB02_DATA0)
1834#define bfin_write_CAN0_MB02_DATA0(val) bfin_write16(CAN0_MB02_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001835#define bfin_read_CAN0_MB02_DATA1() bfin_read16(CAN0_MB02_DATA1)
1836#define bfin_write_CAN0_MB02_DATA1(val) bfin_write16(CAN0_MB02_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001837#define bfin_read_CAN0_MB02_DATA2() bfin_read16(CAN0_MB02_DATA2)
1838#define bfin_write_CAN0_MB02_DATA2(val) bfin_write16(CAN0_MB02_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001839#define bfin_read_CAN0_MB02_DATA3() bfin_read16(CAN0_MB02_DATA3)
1840#define bfin_write_CAN0_MB02_DATA3(val) bfin_write16(CAN0_MB02_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001841#define bfin_read_CAN0_MB02_LENGTH() bfin_read16(CAN0_MB02_LENGTH)
1842#define bfin_write_CAN0_MB02_LENGTH(val) bfin_write16(CAN0_MB02_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001843#define bfin_read_CAN0_MB02_TIMESTAMP() bfin_read16(CAN0_MB02_TIMESTAMP)
1844#define bfin_write_CAN0_MB02_TIMESTAMP(val) bfin_write16(CAN0_MB02_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001845#define bfin_read_CAN0_MB02_ID0() bfin_read16(CAN0_MB02_ID0)
1846#define bfin_write_CAN0_MB02_ID0(val) bfin_write16(CAN0_MB02_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001847#define bfin_read_CAN0_MB02_ID1() bfin_read16(CAN0_MB02_ID1)
1848#define bfin_write_CAN0_MB02_ID1(val) bfin_write16(CAN0_MB02_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001849#define bfin_read_CAN0_MB03_DATA0() bfin_read16(CAN0_MB03_DATA0)
1850#define bfin_write_CAN0_MB03_DATA0(val) bfin_write16(CAN0_MB03_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001851#define bfin_read_CAN0_MB03_DATA1() bfin_read16(CAN0_MB03_DATA1)
1852#define bfin_write_CAN0_MB03_DATA1(val) bfin_write16(CAN0_MB03_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001853#define bfin_read_CAN0_MB03_DATA2() bfin_read16(CAN0_MB03_DATA2)
1854#define bfin_write_CAN0_MB03_DATA2(val) bfin_write16(CAN0_MB03_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001855#define bfin_read_CAN0_MB03_DATA3() bfin_read16(CAN0_MB03_DATA3)
1856#define bfin_write_CAN0_MB03_DATA3(val) bfin_write16(CAN0_MB03_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001857#define bfin_read_CAN0_MB03_LENGTH() bfin_read16(CAN0_MB03_LENGTH)
1858#define bfin_write_CAN0_MB03_LENGTH(val) bfin_write16(CAN0_MB03_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001859#define bfin_read_CAN0_MB03_TIMESTAMP() bfin_read16(CAN0_MB03_TIMESTAMP)
1860#define bfin_write_CAN0_MB03_TIMESTAMP(val) bfin_write16(CAN0_MB03_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001861#define bfin_read_CAN0_MB03_ID0() bfin_read16(CAN0_MB03_ID0)
1862#define bfin_write_CAN0_MB03_ID0(val) bfin_write16(CAN0_MB03_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001863#define bfin_read_CAN0_MB03_ID1() bfin_read16(CAN0_MB03_ID1)
1864#define bfin_write_CAN0_MB03_ID1(val) bfin_write16(CAN0_MB03_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001865#define bfin_read_CAN0_MB04_DATA0() bfin_read16(CAN0_MB04_DATA0)
1866#define bfin_write_CAN0_MB04_DATA0(val) bfin_write16(CAN0_MB04_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001867#define bfin_read_CAN0_MB04_DATA1() bfin_read16(CAN0_MB04_DATA1)
1868#define bfin_write_CAN0_MB04_DATA1(val) bfin_write16(CAN0_MB04_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001869#define bfin_read_CAN0_MB04_DATA2() bfin_read16(CAN0_MB04_DATA2)
1870#define bfin_write_CAN0_MB04_DATA2(val) bfin_write16(CAN0_MB04_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001871#define bfin_read_CAN0_MB04_DATA3() bfin_read16(CAN0_MB04_DATA3)
1872#define bfin_write_CAN0_MB04_DATA3(val) bfin_write16(CAN0_MB04_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001873#define bfin_read_CAN0_MB04_LENGTH() bfin_read16(CAN0_MB04_LENGTH)
1874#define bfin_write_CAN0_MB04_LENGTH(val) bfin_write16(CAN0_MB04_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001875#define bfin_read_CAN0_MB04_TIMESTAMP() bfin_read16(CAN0_MB04_TIMESTAMP)
1876#define bfin_write_CAN0_MB04_TIMESTAMP(val) bfin_write16(CAN0_MB04_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001877#define bfin_read_CAN0_MB04_ID0() bfin_read16(CAN0_MB04_ID0)
1878#define bfin_write_CAN0_MB04_ID0(val) bfin_write16(CAN0_MB04_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001879#define bfin_read_CAN0_MB04_ID1() bfin_read16(CAN0_MB04_ID1)
1880#define bfin_write_CAN0_MB04_ID1(val) bfin_write16(CAN0_MB04_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001881#define bfin_read_CAN0_MB05_DATA0() bfin_read16(CAN0_MB05_DATA0)
1882#define bfin_write_CAN0_MB05_DATA0(val) bfin_write16(CAN0_MB05_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001883#define bfin_read_CAN0_MB05_DATA1() bfin_read16(CAN0_MB05_DATA1)
1884#define bfin_write_CAN0_MB05_DATA1(val) bfin_write16(CAN0_MB05_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001885#define bfin_read_CAN0_MB05_DATA2() bfin_read16(CAN0_MB05_DATA2)
1886#define bfin_write_CAN0_MB05_DATA2(val) bfin_write16(CAN0_MB05_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001887#define bfin_read_CAN0_MB05_DATA3() bfin_read16(CAN0_MB05_DATA3)
1888#define bfin_write_CAN0_MB05_DATA3(val) bfin_write16(CAN0_MB05_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001889#define bfin_read_CAN0_MB05_LENGTH() bfin_read16(CAN0_MB05_LENGTH)
1890#define bfin_write_CAN0_MB05_LENGTH(val) bfin_write16(CAN0_MB05_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001891#define bfin_read_CAN0_MB05_TIMESTAMP() bfin_read16(CAN0_MB05_TIMESTAMP)
1892#define bfin_write_CAN0_MB05_TIMESTAMP(val) bfin_write16(CAN0_MB05_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001893#define bfin_read_CAN0_MB05_ID0() bfin_read16(CAN0_MB05_ID0)
1894#define bfin_write_CAN0_MB05_ID0(val) bfin_write16(CAN0_MB05_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001895#define bfin_read_CAN0_MB05_ID1() bfin_read16(CAN0_MB05_ID1)
1896#define bfin_write_CAN0_MB05_ID1(val) bfin_write16(CAN0_MB05_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001897#define bfin_read_CAN0_MB06_DATA0() bfin_read16(CAN0_MB06_DATA0)
1898#define bfin_write_CAN0_MB06_DATA0(val) bfin_write16(CAN0_MB06_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001899#define bfin_read_CAN0_MB06_DATA1() bfin_read16(CAN0_MB06_DATA1)
1900#define bfin_write_CAN0_MB06_DATA1(val) bfin_write16(CAN0_MB06_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001901#define bfin_read_CAN0_MB06_DATA2() bfin_read16(CAN0_MB06_DATA2)
1902#define bfin_write_CAN0_MB06_DATA2(val) bfin_write16(CAN0_MB06_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001903#define bfin_read_CAN0_MB06_DATA3() bfin_read16(CAN0_MB06_DATA3)
1904#define bfin_write_CAN0_MB06_DATA3(val) bfin_write16(CAN0_MB06_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001905#define bfin_read_CAN0_MB06_LENGTH() bfin_read16(CAN0_MB06_LENGTH)
1906#define bfin_write_CAN0_MB06_LENGTH(val) bfin_write16(CAN0_MB06_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001907#define bfin_read_CAN0_MB06_TIMESTAMP() bfin_read16(CAN0_MB06_TIMESTAMP)
1908#define bfin_write_CAN0_MB06_TIMESTAMP(val) bfin_write16(CAN0_MB06_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001909#define bfin_read_CAN0_MB06_ID0() bfin_read16(CAN0_MB06_ID0)
1910#define bfin_write_CAN0_MB06_ID0(val) bfin_write16(CAN0_MB06_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001911#define bfin_read_CAN0_MB06_ID1() bfin_read16(CAN0_MB06_ID1)
1912#define bfin_write_CAN0_MB06_ID1(val) bfin_write16(CAN0_MB06_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001913#define bfin_read_CAN0_MB07_DATA0() bfin_read16(CAN0_MB07_DATA0)
1914#define bfin_write_CAN0_MB07_DATA0(val) bfin_write16(CAN0_MB07_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001915#define bfin_read_CAN0_MB07_DATA1() bfin_read16(CAN0_MB07_DATA1)
1916#define bfin_write_CAN0_MB07_DATA1(val) bfin_write16(CAN0_MB07_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001917#define bfin_read_CAN0_MB07_DATA2() bfin_read16(CAN0_MB07_DATA2)
1918#define bfin_write_CAN0_MB07_DATA2(val) bfin_write16(CAN0_MB07_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001919#define bfin_read_CAN0_MB07_DATA3() bfin_read16(CAN0_MB07_DATA3)
1920#define bfin_write_CAN0_MB07_DATA3(val) bfin_write16(CAN0_MB07_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001921#define bfin_read_CAN0_MB07_LENGTH() bfin_read16(CAN0_MB07_LENGTH)
1922#define bfin_write_CAN0_MB07_LENGTH(val) bfin_write16(CAN0_MB07_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001923#define bfin_read_CAN0_MB07_TIMESTAMP() bfin_read16(CAN0_MB07_TIMESTAMP)
1924#define bfin_write_CAN0_MB07_TIMESTAMP(val) bfin_write16(CAN0_MB07_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001925#define bfin_read_CAN0_MB07_ID0() bfin_read16(CAN0_MB07_ID0)
1926#define bfin_write_CAN0_MB07_ID0(val) bfin_write16(CAN0_MB07_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001927#define bfin_read_CAN0_MB07_ID1() bfin_read16(CAN0_MB07_ID1)
1928#define bfin_write_CAN0_MB07_ID1(val) bfin_write16(CAN0_MB07_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001929#define bfin_read_CAN0_MB08_DATA0() bfin_read16(CAN0_MB08_DATA0)
1930#define bfin_write_CAN0_MB08_DATA0(val) bfin_write16(CAN0_MB08_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001931#define bfin_read_CAN0_MB08_DATA1() bfin_read16(CAN0_MB08_DATA1)
1932#define bfin_write_CAN0_MB08_DATA1(val) bfin_write16(CAN0_MB08_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001933#define bfin_read_CAN0_MB08_DATA2() bfin_read16(CAN0_MB08_DATA2)
1934#define bfin_write_CAN0_MB08_DATA2(val) bfin_write16(CAN0_MB08_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001935#define bfin_read_CAN0_MB08_DATA3() bfin_read16(CAN0_MB08_DATA3)
1936#define bfin_write_CAN0_MB08_DATA3(val) bfin_write16(CAN0_MB08_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001937#define bfin_read_CAN0_MB08_LENGTH() bfin_read16(CAN0_MB08_LENGTH)
1938#define bfin_write_CAN0_MB08_LENGTH(val) bfin_write16(CAN0_MB08_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001939#define bfin_read_CAN0_MB08_TIMESTAMP() bfin_read16(CAN0_MB08_TIMESTAMP)
1940#define bfin_write_CAN0_MB08_TIMESTAMP(val) bfin_write16(CAN0_MB08_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001941#define bfin_read_CAN0_MB08_ID0() bfin_read16(CAN0_MB08_ID0)
1942#define bfin_write_CAN0_MB08_ID0(val) bfin_write16(CAN0_MB08_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001943#define bfin_read_CAN0_MB08_ID1() bfin_read16(CAN0_MB08_ID1)
1944#define bfin_write_CAN0_MB08_ID1(val) bfin_write16(CAN0_MB08_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001945#define bfin_read_CAN0_MB09_DATA0() bfin_read16(CAN0_MB09_DATA0)
1946#define bfin_write_CAN0_MB09_DATA0(val) bfin_write16(CAN0_MB09_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001947#define bfin_read_CAN0_MB09_DATA1() bfin_read16(CAN0_MB09_DATA1)
1948#define bfin_write_CAN0_MB09_DATA1(val) bfin_write16(CAN0_MB09_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001949#define bfin_read_CAN0_MB09_DATA2() bfin_read16(CAN0_MB09_DATA2)
1950#define bfin_write_CAN0_MB09_DATA2(val) bfin_write16(CAN0_MB09_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001951#define bfin_read_CAN0_MB09_DATA3() bfin_read16(CAN0_MB09_DATA3)
1952#define bfin_write_CAN0_MB09_DATA3(val) bfin_write16(CAN0_MB09_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001953#define bfin_read_CAN0_MB09_LENGTH() bfin_read16(CAN0_MB09_LENGTH)
1954#define bfin_write_CAN0_MB09_LENGTH(val) bfin_write16(CAN0_MB09_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001955#define bfin_read_CAN0_MB09_TIMESTAMP() bfin_read16(CAN0_MB09_TIMESTAMP)
1956#define bfin_write_CAN0_MB09_TIMESTAMP(val) bfin_write16(CAN0_MB09_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001957#define bfin_read_CAN0_MB09_ID0() bfin_read16(CAN0_MB09_ID0)
1958#define bfin_write_CAN0_MB09_ID0(val) bfin_write16(CAN0_MB09_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001959#define bfin_read_CAN0_MB09_ID1() bfin_read16(CAN0_MB09_ID1)
1960#define bfin_write_CAN0_MB09_ID1(val) bfin_write16(CAN0_MB09_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001961#define bfin_read_CAN0_MB10_DATA0() bfin_read16(CAN0_MB10_DATA0)
1962#define bfin_write_CAN0_MB10_DATA0(val) bfin_write16(CAN0_MB10_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001963#define bfin_read_CAN0_MB10_DATA1() bfin_read16(CAN0_MB10_DATA1)
1964#define bfin_write_CAN0_MB10_DATA1(val) bfin_write16(CAN0_MB10_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001965#define bfin_read_CAN0_MB10_DATA2() bfin_read16(CAN0_MB10_DATA2)
1966#define bfin_write_CAN0_MB10_DATA2(val) bfin_write16(CAN0_MB10_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001967#define bfin_read_CAN0_MB10_DATA3() bfin_read16(CAN0_MB10_DATA3)
1968#define bfin_write_CAN0_MB10_DATA3(val) bfin_write16(CAN0_MB10_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001969#define bfin_read_CAN0_MB10_LENGTH() bfin_read16(CAN0_MB10_LENGTH)
1970#define bfin_write_CAN0_MB10_LENGTH(val) bfin_write16(CAN0_MB10_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001971#define bfin_read_CAN0_MB10_TIMESTAMP() bfin_read16(CAN0_MB10_TIMESTAMP)
1972#define bfin_write_CAN0_MB10_TIMESTAMP(val) bfin_write16(CAN0_MB10_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001973#define bfin_read_CAN0_MB10_ID0() bfin_read16(CAN0_MB10_ID0)
1974#define bfin_write_CAN0_MB10_ID0(val) bfin_write16(CAN0_MB10_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001975#define bfin_read_CAN0_MB10_ID1() bfin_read16(CAN0_MB10_ID1)
1976#define bfin_write_CAN0_MB10_ID1(val) bfin_write16(CAN0_MB10_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001977#define bfin_read_CAN0_MB11_DATA0() bfin_read16(CAN0_MB11_DATA0)
1978#define bfin_write_CAN0_MB11_DATA0(val) bfin_write16(CAN0_MB11_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001979#define bfin_read_CAN0_MB11_DATA1() bfin_read16(CAN0_MB11_DATA1)
1980#define bfin_write_CAN0_MB11_DATA1(val) bfin_write16(CAN0_MB11_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001981#define bfin_read_CAN0_MB11_DATA2() bfin_read16(CAN0_MB11_DATA2)
1982#define bfin_write_CAN0_MB11_DATA2(val) bfin_write16(CAN0_MB11_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001983#define bfin_read_CAN0_MB11_DATA3() bfin_read16(CAN0_MB11_DATA3)
1984#define bfin_write_CAN0_MB11_DATA3(val) bfin_write16(CAN0_MB11_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001985#define bfin_read_CAN0_MB11_LENGTH() bfin_read16(CAN0_MB11_LENGTH)
1986#define bfin_write_CAN0_MB11_LENGTH(val) bfin_write16(CAN0_MB11_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001987#define bfin_read_CAN0_MB11_TIMESTAMP() bfin_read16(CAN0_MB11_TIMESTAMP)
1988#define bfin_write_CAN0_MB11_TIMESTAMP(val) bfin_write16(CAN0_MB11_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001989#define bfin_read_CAN0_MB11_ID0() bfin_read16(CAN0_MB11_ID0)
1990#define bfin_write_CAN0_MB11_ID0(val) bfin_write16(CAN0_MB11_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001991#define bfin_read_CAN0_MB11_ID1() bfin_read16(CAN0_MB11_ID1)
1992#define bfin_write_CAN0_MB11_ID1(val) bfin_write16(CAN0_MB11_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001993#define bfin_read_CAN0_MB12_DATA0() bfin_read16(CAN0_MB12_DATA0)
1994#define bfin_write_CAN0_MB12_DATA0(val) bfin_write16(CAN0_MB12_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001995#define bfin_read_CAN0_MB12_DATA1() bfin_read16(CAN0_MB12_DATA1)
1996#define bfin_write_CAN0_MB12_DATA1(val) bfin_write16(CAN0_MB12_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001997#define bfin_read_CAN0_MB12_DATA2() bfin_read16(CAN0_MB12_DATA2)
1998#define bfin_write_CAN0_MB12_DATA2(val) bfin_write16(CAN0_MB12_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05001999#define bfin_read_CAN0_MB12_DATA3() bfin_read16(CAN0_MB12_DATA3)
2000#define bfin_write_CAN0_MB12_DATA3(val) bfin_write16(CAN0_MB12_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002001#define bfin_read_CAN0_MB12_LENGTH() bfin_read16(CAN0_MB12_LENGTH)
2002#define bfin_write_CAN0_MB12_LENGTH(val) bfin_write16(CAN0_MB12_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002003#define bfin_read_CAN0_MB12_TIMESTAMP() bfin_read16(CAN0_MB12_TIMESTAMP)
2004#define bfin_write_CAN0_MB12_TIMESTAMP(val) bfin_write16(CAN0_MB12_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002005#define bfin_read_CAN0_MB12_ID0() bfin_read16(CAN0_MB12_ID0)
2006#define bfin_write_CAN0_MB12_ID0(val) bfin_write16(CAN0_MB12_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002007#define bfin_read_CAN0_MB12_ID1() bfin_read16(CAN0_MB12_ID1)
2008#define bfin_write_CAN0_MB12_ID1(val) bfin_write16(CAN0_MB12_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002009#define bfin_read_CAN0_MB13_DATA0() bfin_read16(CAN0_MB13_DATA0)
2010#define bfin_write_CAN0_MB13_DATA0(val) bfin_write16(CAN0_MB13_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002011#define bfin_read_CAN0_MB13_DATA1() bfin_read16(CAN0_MB13_DATA1)
2012#define bfin_write_CAN0_MB13_DATA1(val) bfin_write16(CAN0_MB13_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002013#define bfin_read_CAN0_MB13_DATA2() bfin_read16(CAN0_MB13_DATA2)
2014#define bfin_write_CAN0_MB13_DATA2(val) bfin_write16(CAN0_MB13_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002015#define bfin_read_CAN0_MB13_DATA3() bfin_read16(CAN0_MB13_DATA3)
2016#define bfin_write_CAN0_MB13_DATA3(val) bfin_write16(CAN0_MB13_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002017#define bfin_read_CAN0_MB13_LENGTH() bfin_read16(CAN0_MB13_LENGTH)
2018#define bfin_write_CAN0_MB13_LENGTH(val) bfin_write16(CAN0_MB13_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002019#define bfin_read_CAN0_MB13_TIMESTAMP() bfin_read16(CAN0_MB13_TIMESTAMP)
2020#define bfin_write_CAN0_MB13_TIMESTAMP(val) bfin_write16(CAN0_MB13_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002021#define bfin_read_CAN0_MB13_ID0() bfin_read16(CAN0_MB13_ID0)
2022#define bfin_write_CAN0_MB13_ID0(val) bfin_write16(CAN0_MB13_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002023#define bfin_read_CAN0_MB13_ID1() bfin_read16(CAN0_MB13_ID1)
2024#define bfin_write_CAN0_MB13_ID1(val) bfin_write16(CAN0_MB13_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002025#define bfin_read_CAN0_MB14_DATA0() bfin_read16(CAN0_MB14_DATA0)
2026#define bfin_write_CAN0_MB14_DATA0(val) bfin_write16(CAN0_MB14_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002027#define bfin_read_CAN0_MB14_DATA1() bfin_read16(CAN0_MB14_DATA1)
2028#define bfin_write_CAN0_MB14_DATA1(val) bfin_write16(CAN0_MB14_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002029#define bfin_read_CAN0_MB14_DATA2() bfin_read16(CAN0_MB14_DATA2)
2030#define bfin_write_CAN0_MB14_DATA2(val) bfin_write16(CAN0_MB14_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002031#define bfin_read_CAN0_MB14_DATA3() bfin_read16(CAN0_MB14_DATA3)
2032#define bfin_write_CAN0_MB14_DATA3(val) bfin_write16(CAN0_MB14_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002033#define bfin_read_CAN0_MB14_LENGTH() bfin_read16(CAN0_MB14_LENGTH)
2034#define bfin_write_CAN0_MB14_LENGTH(val) bfin_write16(CAN0_MB14_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002035#define bfin_read_CAN0_MB14_TIMESTAMP() bfin_read16(CAN0_MB14_TIMESTAMP)
2036#define bfin_write_CAN0_MB14_TIMESTAMP(val) bfin_write16(CAN0_MB14_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002037#define bfin_read_CAN0_MB14_ID0() bfin_read16(CAN0_MB14_ID0)
2038#define bfin_write_CAN0_MB14_ID0(val) bfin_write16(CAN0_MB14_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002039#define bfin_read_CAN0_MB14_ID1() bfin_read16(CAN0_MB14_ID1)
2040#define bfin_write_CAN0_MB14_ID1(val) bfin_write16(CAN0_MB14_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002041#define bfin_read_CAN0_MB15_DATA0() bfin_read16(CAN0_MB15_DATA0)
2042#define bfin_write_CAN0_MB15_DATA0(val) bfin_write16(CAN0_MB15_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002043#define bfin_read_CAN0_MB15_DATA1() bfin_read16(CAN0_MB15_DATA1)
2044#define bfin_write_CAN0_MB15_DATA1(val) bfin_write16(CAN0_MB15_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002045#define bfin_read_CAN0_MB15_DATA2() bfin_read16(CAN0_MB15_DATA2)
2046#define bfin_write_CAN0_MB15_DATA2(val) bfin_write16(CAN0_MB15_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002047#define bfin_read_CAN0_MB15_DATA3() bfin_read16(CAN0_MB15_DATA3)
2048#define bfin_write_CAN0_MB15_DATA3(val) bfin_write16(CAN0_MB15_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002049#define bfin_read_CAN0_MB15_LENGTH() bfin_read16(CAN0_MB15_LENGTH)
2050#define bfin_write_CAN0_MB15_LENGTH(val) bfin_write16(CAN0_MB15_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002051#define bfin_read_CAN0_MB15_TIMESTAMP() bfin_read16(CAN0_MB15_TIMESTAMP)
2052#define bfin_write_CAN0_MB15_TIMESTAMP(val) bfin_write16(CAN0_MB15_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002053#define bfin_read_CAN0_MB15_ID0() bfin_read16(CAN0_MB15_ID0)
2054#define bfin_write_CAN0_MB15_ID0(val) bfin_write16(CAN0_MB15_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002055#define bfin_read_CAN0_MB15_ID1() bfin_read16(CAN0_MB15_ID1)
2056#define bfin_write_CAN0_MB15_ID1(val) bfin_write16(CAN0_MB15_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002057#define bfin_read_CAN0_MB16_DATA0() bfin_read16(CAN0_MB16_DATA0)
2058#define bfin_write_CAN0_MB16_DATA0(val) bfin_write16(CAN0_MB16_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002059#define bfin_read_CAN0_MB16_DATA1() bfin_read16(CAN0_MB16_DATA1)
2060#define bfin_write_CAN0_MB16_DATA1(val) bfin_write16(CAN0_MB16_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002061#define bfin_read_CAN0_MB16_DATA2() bfin_read16(CAN0_MB16_DATA2)
2062#define bfin_write_CAN0_MB16_DATA2(val) bfin_write16(CAN0_MB16_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002063#define bfin_read_CAN0_MB16_DATA3() bfin_read16(CAN0_MB16_DATA3)
2064#define bfin_write_CAN0_MB16_DATA3(val) bfin_write16(CAN0_MB16_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002065#define bfin_read_CAN0_MB16_LENGTH() bfin_read16(CAN0_MB16_LENGTH)
2066#define bfin_write_CAN0_MB16_LENGTH(val) bfin_write16(CAN0_MB16_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002067#define bfin_read_CAN0_MB16_TIMESTAMP() bfin_read16(CAN0_MB16_TIMESTAMP)
2068#define bfin_write_CAN0_MB16_TIMESTAMP(val) bfin_write16(CAN0_MB16_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002069#define bfin_read_CAN0_MB16_ID0() bfin_read16(CAN0_MB16_ID0)
2070#define bfin_write_CAN0_MB16_ID0(val) bfin_write16(CAN0_MB16_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002071#define bfin_read_CAN0_MB16_ID1() bfin_read16(CAN0_MB16_ID1)
2072#define bfin_write_CAN0_MB16_ID1(val) bfin_write16(CAN0_MB16_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002073#define bfin_read_CAN0_MB17_DATA0() bfin_read16(CAN0_MB17_DATA0)
2074#define bfin_write_CAN0_MB17_DATA0(val) bfin_write16(CAN0_MB17_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002075#define bfin_read_CAN0_MB17_DATA1() bfin_read16(CAN0_MB17_DATA1)
2076#define bfin_write_CAN0_MB17_DATA1(val) bfin_write16(CAN0_MB17_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002077#define bfin_read_CAN0_MB17_DATA2() bfin_read16(CAN0_MB17_DATA2)
2078#define bfin_write_CAN0_MB17_DATA2(val) bfin_write16(CAN0_MB17_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002079#define bfin_read_CAN0_MB17_DATA3() bfin_read16(CAN0_MB17_DATA3)
2080#define bfin_write_CAN0_MB17_DATA3(val) bfin_write16(CAN0_MB17_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002081#define bfin_read_CAN0_MB17_LENGTH() bfin_read16(CAN0_MB17_LENGTH)
2082#define bfin_write_CAN0_MB17_LENGTH(val) bfin_write16(CAN0_MB17_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002083#define bfin_read_CAN0_MB17_TIMESTAMP() bfin_read16(CAN0_MB17_TIMESTAMP)
2084#define bfin_write_CAN0_MB17_TIMESTAMP(val) bfin_write16(CAN0_MB17_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002085#define bfin_read_CAN0_MB17_ID0() bfin_read16(CAN0_MB17_ID0)
2086#define bfin_write_CAN0_MB17_ID0(val) bfin_write16(CAN0_MB17_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002087#define bfin_read_CAN0_MB17_ID1() bfin_read16(CAN0_MB17_ID1)
2088#define bfin_write_CAN0_MB17_ID1(val) bfin_write16(CAN0_MB17_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002089#define bfin_read_CAN0_MB18_DATA0() bfin_read16(CAN0_MB18_DATA0)
2090#define bfin_write_CAN0_MB18_DATA0(val) bfin_write16(CAN0_MB18_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002091#define bfin_read_CAN0_MB18_DATA1() bfin_read16(CAN0_MB18_DATA1)
2092#define bfin_write_CAN0_MB18_DATA1(val) bfin_write16(CAN0_MB18_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002093#define bfin_read_CAN0_MB18_DATA2() bfin_read16(CAN0_MB18_DATA2)
2094#define bfin_write_CAN0_MB18_DATA2(val) bfin_write16(CAN0_MB18_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002095#define bfin_read_CAN0_MB18_DATA3() bfin_read16(CAN0_MB18_DATA3)
2096#define bfin_write_CAN0_MB18_DATA3(val) bfin_write16(CAN0_MB18_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002097#define bfin_read_CAN0_MB18_LENGTH() bfin_read16(CAN0_MB18_LENGTH)
2098#define bfin_write_CAN0_MB18_LENGTH(val) bfin_write16(CAN0_MB18_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002099#define bfin_read_CAN0_MB18_TIMESTAMP() bfin_read16(CAN0_MB18_TIMESTAMP)
2100#define bfin_write_CAN0_MB18_TIMESTAMP(val) bfin_write16(CAN0_MB18_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002101#define bfin_read_CAN0_MB18_ID0() bfin_read16(CAN0_MB18_ID0)
2102#define bfin_write_CAN0_MB18_ID0(val) bfin_write16(CAN0_MB18_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002103#define bfin_read_CAN0_MB18_ID1() bfin_read16(CAN0_MB18_ID1)
2104#define bfin_write_CAN0_MB18_ID1(val) bfin_write16(CAN0_MB18_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002105#define bfin_read_CAN0_MB19_DATA0() bfin_read16(CAN0_MB19_DATA0)
2106#define bfin_write_CAN0_MB19_DATA0(val) bfin_write16(CAN0_MB19_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002107#define bfin_read_CAN0_MB19_DATA1() bfin_read16(CAN0_MB19_DATA1)
2108#define bfin_write_CAN0_MB19_DATA1(val) bfin_write16(CAN0_MB19_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002109#define bfin_read_CAN0_MB19_DATA2() bfin_read16(CAN0_MB19_DATA2)
2110#define bfin_write_CAN0_MB19_DATA2(val) bfin_write16(CAN0_MB19_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002111#define bfin_read_CAN0_MB19_DATA3() bfin_read16(CAN0_MB19_DATA3)
2112#define bfin_write_CAN0_MB19_DATA3(val) bfin_write16(CAN0_MB19_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002113#define bfin_read_CAN0_MB19_LENGTH() bfin_read16(CAN0_MB19_LENGTH)
2114#define bfin_write_CAN0_MB19_LENGTH(val) bfin_write16(CAN0_MB19_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002115#define bfin_read_CAN0_MB19_TIMESTAMP() bfin_read16(CAN0_MB19_TIMESTAMP)
2116#define bfin_write_CAN0_MB19_TIMESTAMP(val) bfin_write16(CAN0_MB19_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002117#define bfin_read_CAN0_MB19_ID0() bfin_read16(CAN0_MB19_ID0)
2118#define bfin_write_CAN0_MB19_ID0(val) bfin_write16(CAN0_MB19_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002119#define bfin_read_CAN0_MB19_ID1() bfin_read16(CAN0_MB19_ID1)
2120#define bfin_write_CAN0_MB19_ID1(val) bfin_write16(CAN0_MB19_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002121#define bfin_read_CAN0_MB20_DATA0() bfin_read16(CAN0_MB20_DATA0)
2122#define bfin_write_CAN0_MB20_DATA0(val) bfin_write16(CAN0_MB20_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002123#define bfin_read_CAN0_MB20_DATA1() bfin_read16(CAN0_MB20_DATA1)
2124#define bfin_write_CAN0_MB20_DATA1(val) bfin_write16(CAN0_MB20_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002125#define bfin_read_CAN0_MB20_DATA2() bfin_read16(CAN0_MB20_DATA2)
2126#define bfin_write_CAN0_MB20_DATA2(val) bfin_write16(CAN0_MB20_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002127#define bfin_read_CAN0_MB20_DATA3() bfin_read16(CAN0_MB20_DATA3)
2128#define bfin_write_CAN0_MB20_DATA3(val) bfin_write16(CAN0_MB20_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002129#define bfin_read_CAN0_MB20_LENGTH() bfin_read16(CAN0_MB20_LENGTH)
2130#define bfin_write_CAN0_MB20_LENGTH(val) bfin_write16(CAN0_MB20_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002131#define bfin_read_CAN0_MB20_TIMESTAMP() bfin_read16(CAN0_MB20_TIMESTAMP)
2132#define bfin_write_CAN0_MB20_TIMESTAMP(val) bfin_write16(CAN0_MB20_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002133#define bfin_read_CAN0_MB20_ID0() bfin_read16(CAN0_MB20_ID0)
2134#define bfin_write_CAN0_MB20_ID0(val) bfin_write16(CAN0_MB20_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002135#define bfin_read_CAN0_MB20_ID1() bfin_read16(CAN0_MB20_ID1)
2136#define bfin_write_CAN0_MB20_ID1(val) bfin_write16(CAN0_MB20_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002137#define bfin_read_CAN0_MB21_DATA0() bfin_read16(CAN0_MB21_DATA0)
2138#define bfin_write_CAN0_MB21_DATA0(val) bfin_write16(CAN0_MB21_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002139#define bfin_read_CAN0_MB21_DATA1() bfin_read16(CAN0_MB21_DATA1)
2140#define bfin_write_CAN0_MB21_DATA1(val) bfin_write16(CAN0_MB21_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002141#define bfin_read_CAN0_MB21_DATA2() bfin_read16(CAN0_MB21_DATA2)
2142#define bfin_write_CAN0_MB21_DATA2(val) bfin_write16(CAN0_MB21_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002143#define bfin_read_CAN0_MB21_DATA3() bfin_read16(CAN0_MB21_DATA3)
2144#define bfin_write_CAN0_MB21_DATA3(val) bfin_write16(CAN0_MB21_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002145#define bfin_read_CAN0_MB21_LENGTH() bfin_read16(CAN0_MB21_LENGTH)
2146#define bfin_write_CAN0_MB21_LENGTH(val) bfin_write16(CAN0_MB21_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002147#define bfin_read_CAN0_MB21_TIMESTAMP() bfin_read16(CAN0_MB21_TIMESTAMP)
2148#define bfin_write_CAN0_MB21_TIMESTAMP(val) bfin_write16(CAN0_MB21_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002149#define bfin_read_CAN0_MB21_ID0() bfin_read16(CAN0_MB21_ID0)
2150#define bfin_write_CAN0_MB21_ID0(val) bfin_write16(CAN0_MB21_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002151#define bfin_read_CAN0_MB21_ID1() bfin_read16(CAN0_MB21_ID1)
2152#define bfin_write_CAN0_MB21_ID1(val) bfin_write16(CAN0_MB21_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002153#define bfin_read_CAN0_MB22_DATA0() bfin_read16(CAN0_MB22_DATA0)
2154#define bfin_write_CAN0_MB22_DATA0(val) bfin_write16(CAN0_MB22_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002155#define bfin_read_CAN0_MB22_DATA1() bfin_read16(CAN0_MB22_DATA1)
2156#define bfin_write_CAN0_MB22_DATA1(val) bfin_write16(CAN0_MB22_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002157#define bfin_read_CAN0_MB22_DATA2() bfin_read16(CAN0_MB22_DATA2)
2158#define bfin_write_CAN0_MB22_DATA2(val) bfin_write16(CAN0_MB22_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002159#define bfin_read_CAN0_MB22_DATA3() bfin_read16(CAN0_MB22_DATA3)
2160#define bfin_write_CAN0_MB22_DATA3(val) bfin_write16(CAN0_MB22_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002161#define bfin_read_CAN0_MB22_LENGTH() bfin_read16(CAN0_MB22_LENGTH)
2162#define bfin_write_CAN0_MB22_LENGTH(val) bfin_write16(CAN0_MB22_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002163#define bfin_read_CAN0_MB22_TIMESTAMP() bfin_read16(CAN0_MB22_TIMESTAMP)
2164#define bfin_write_CAN0_MB22_TIMESTAMP(val) bfin_write16(CAN0_MB22_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002165#define bfin_read_CAN0_MB22_ID0() bfin_read16(CAN0_MB22_ID0)
2166#define bfin_write_CAN0_MB22_ID0(val) bfin_write16(CAN0_MB22_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002167#define bfin_read_CAN0_MB22_ID1() bfin_read16(CAN0_MB22_ID1)
2168#define bfin_write_CAN0_MB22_ID1(val) bfin_write16(CAN0_MB22_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002169#define bfin_read_CAN0_MB23_DATA0() bfin_read16(CAN0_MB23_DATA0)
2170#define bfin_write_CAN0_MB23_DATA0(val) bfin_write16(CAN0_MB23_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002171#define bfin_read_CAN0_MB23_DATA1() bfin_read16(CAN0_MB23_DATA1)
2172#define bfin_write_CAN0_MB23_DATA1(val) bfin_write16(CAN0_MB23_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002173#define bfin_read_CAN0_MB23_DATA2() bfin_read16(CAN0_MB23_DATA2)
2174#define bfin_write_CAN0_MB23_DATA2(val) bfin_write16(CAN0_MB23_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002175#define bfin_read_CAN0_MB23_DATA3() bfin_read16(CAN0_MB23_DATA3)
2176#define bfin_write_CAN0_MB23_DATA3(val) bfin_write16(CAN0_MB23_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002177#define bfin_read_CAN0_MB23_LENGTH() bfin_read16(CAN0_MB23_LENGTH)
2178#define bfin_write_CAN0_MB23_LENGTH(val) bfin_write16(CAN0_MB23_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002179#define bfin_read_CAN0_MB23_TIMESTAMP() bfin_read16(CAN0_MB23_TIMESTAMP)
2180#define bfin_write_CAN0_MB23_TIMESTAMP(val) bfin_write16(CAN0_MB23_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002181#define bfin_read_CAN0_MB23_ID0() bfin_read16(CAN0_MB23_ID0)
2182#define bfin_write_CAN0_MB23_ID0(val) bfin_write16(CAN0_MB23_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002183#define bfin_read_CAN0_MB23_ID1() bfin_read16(CAN0_MB23_ID1)
2184#define bfin_write_CAN0_MB23_ID1(val) bfin_write16(CAN0_MB23_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002185#define bfin_read_CAN0_MB24_DATA0() bfin_read16(CAN0_MB24_DATA0)
2186#define bfin_write_CAN0_MB24_DATA0(val) bfin_write16(CAN0_MB24_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002187#define bfin_read_CAN0_MB24_DATA1() bfin_read16(CAN0_MB24_DATA1)
2188#define bfin_write_CAN0_MB24_DATA1(val) bfin_write16(CAN0_MB24_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002189#define bfin_read_CAN0_MB24_DATA2() bfin_read16(CAN0_MB24_DATA2)
2190#define bfin_write_CAN0_MB24_DATA2(val) bfin_write16(CAN0_MB24_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002191#define bfin_read_CAN0_MB24_DATA3() bfin_read16(CAN0_MB24_DATA3)
2192#define bfin_write_CAN0_MB24_DATA3(val) bfin_write16(CAN0_MB24_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002193#define bfin_read_CAN0_MB24_LENGTH() bfin_read16(CAN0_MB24_LENGTH)
2194#define bfin_write_CAN0_MB24_LENGTH(val) bfin_write16(CAN0_MB24_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002195#define bfin_read_CAN0_MB24_TIMESTAMP() bfin_read16(CAN0_MB24_TIMESTAMP)
2196#define bfin_write_CAN0_MB24_TIMESTAMP(val) bfin_write16(CAN0_MB24_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002197#define bfin_read_CAN0_MB24_ID0() bfin_read16(CAN0_MB24_ID0)
2198#define bfin_write_CAN0_MB24_ID0(val) bfin_write16(CAN0_MB24_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002199#define bfin_read_CAN0_MB24_ID1() bfin_read16(CAN0_MB24_ID1)
2200#define bfin_write_CAN0_MB24_ID1(val) bfin_write16(CAN0_MB24_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002201#define bfin_read_CAN0_MB25_DATA0() bfin_read16(CAN0_MB25_DATA0)
2202#define bfin_write_CAN0_MB25_DATA0(val) bfin_write16(CAN0_MB25_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002203#define bfin_read_CAN0_MB25_DATA1() bfin_read16(CAN0_MB25_DATA1)
2204#define bfin_write_CAN0_MB25_DATA1(val) bfin_write16(CAN0_MB25_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002205#define bfin_read_CAN0_MB25_DATA2() bfin_read16(CAN0_MB25_DATA2)
2206#define bfin_write_CAN0_MB25_DATA2(val) bfin_write16(CAN0_MB25_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002207#define bfin_read_CAN0_MB25_DATA3() bfin_read16(CAN0_MB25_DATA3)
2208#define bfin_write_CAN0_MB25_DATA3(val) bfin_write16(CAN0_MB25_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002209#define bfin_read_CAN0_MB25_LENGTH() bfin_read16(CAN0_MB25_LENGTH)
2210#define bfin_write_CAN0_MB25_LENGTH(val) bfin_write16(CAN0_MB25_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002211#define bfin_read_CAN0_MB25_TIMESTAMP() bfin_read16(CAN0_MB25_TIMESTAMP)
2212#define bfin_write_CAN0_MB25_TIMESTAMP(val) bfin_write16(CAN0_MB25_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002213#define bfin_read_CAN0_MB25_ID0() bfin_read16(CAN0_MB25_ID0)
2214#define bfin_write_CAN0_MB25_ID0(val) bfin_write16(CAN0_MB25_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002215#define bfin_read_CAN0_MB25_ID1() bfin_read16(CAN0_MB25_ID1)
2216#define bfin_write_CAN0_MB25_ID1(val) bfin_write16(CAN0_MB25_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002217#define bfin_read_CAN0_MB26_DATA0() bfin_read16(CAN0_MB26_DATA0)
2218#define bfin_write_CAN0_MB26_DATA0(val) bfin_write16(CAN0_MB26_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002219#define bfin_read_CAN0_MB26_DATA1() bfin_read16(CAN0_MB26_DATA1)
2220#define bfin_write_CAN0_MB26_DATA1(val) bfin_write16(CAN0_MB26_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002221#define bfin_read_CAN0_MB26_DATA2() bfin_read16(CAN0_MB26_DATA2)
2222#define bfin_write_CAN0_MB26_DATA2(val) bfin_write16(CAN0_MB26_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002223#define bfin_read_CAN0_MB26_DATA3() bfin_read16(CAN0_MB26_DATA3)
2224#define bfin_write_CAN0_MB26_DATA3(val) bfin_write16(CAN0_MB26_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002225#define bfin_read_CAN0_MB26_LENGTH() bfin_read16(CAN0_MB26_LENGTH)
2226#define bfin_write_CAN0_MB26_LENGTH(val) bfin_write16(CAN0_MB26_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002227#define bfin_read_CAN0_MB26_TIMESTAMP() bfin_read16(CAN0_MB26_TIMESTAMP)
2228#define bfin_write_CAN0_MB26_TIMESTAMP(val) bfin_write16(CAN0_MB26_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002229#define bfin_read_CAN0_MB26_ID0() bfin_read16(CAN0_MB26_ID0)
2230#define bfin_write_CAN0_MB26_ID0(val) bfin_write16(CAN0_MB26_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002231#define bfin_read_CAN0_MB26_ID1() bfin_read16(CAN0_MB26_ID1)
2232#define bfin_write_CAN0_MB26_ID1(val) bfin_write16(CAN0_MB26_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002233#define bfin_read_CAN0_MB27_DATA0() bfin_read16(CAN0_MB27_DATA0)
2234#define bfin_write_CAN0_MB27_DATA0(val) bfin_write16(CAN0_MB27_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002235#define bfin_read_CAN0_MB27_DATA1() bfin_read16(CAN0_MB27_DATA1)
2236#define bfin_write_CAN0_MB27_DATA1(val) bfin_write16(CAN0_MB27_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002237#define bfin_read_CAN0_MB27_DATA2() bfin_read16(CAN0_MB27_DATA2)
2238#define bfin_write_CAN0_MB27_DATA2(val) bfin_write16(CAN0_MB27_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002239#define bfin_read_CAN0_MB27_DATA3() bfin_read16(CAN0_MB27_DATA3)
2240#define bfin_write_CAN0_MB27_DATA3(val) bfin_write16(CAN0_MB27_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002241#define bfin_read_CAN0_MB27_LENGTH() bfin_read16(CAN0_MB27_LENGTH)
2242#define bfin_write_CAN0_MB27_LENGTH(val) bfin_write16(CAN0_MB27_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002243#define bfin_read_CAN0_MB27_TIMESTAMP() bfin_read16(CAN0_MB27_TIMESTAMP)
2244#define bfin_write_CAN0_MB27_TIMESTAMP(val) bfin_write16(CAN0_MB27_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002245#define bfin_read_CAN0_MB27_ID0() bfin_read16(CAN0_MB27_ID0)
2246#define bfin_write_CAN0_MB27_ID0(val) bfin_write16(CAN0_MB27_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002247#define bfin_read_CAN0_MB27_ID1() bfin_read16(CAN0_MB27_ID1)
2248#define bfin_write_CAN0_MB27_ID1(val) bfin_write16(CAN0_MB27_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002249#define bfin_read_CAN0_MB28_DATA0() bfin_read16(CAN0_MB28_DATA0)
2250#define bfin_write_CAN0_MB28_DATA0(val) bfin_write16(CAN0_MB28_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002251#define bfin_read_CAN0_MB28_DATA1() bfin_read16(CAN0_MB28_DATA1)
2252#define bfin_write_CAN0_MB28_DATA1(val) bfin_write16(CAN0_MB28_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002253#define bfin_read_CAN0_MB28_DATA2() bfin_read16(CAN0_MB28_DATA2)
2254#define bfin_write_CAN0_MB28_DATA2(val) bfin_write16(CAN0_MB28_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002255#define bfin_read_CAN0_MB28_DATA3() bfin_read16(CAN0_MB28_DATA3)
2256#define bfin_write_CAN0_MB28_DATA3(val) bfin_write16(CAN0_MB28_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002257#define bfin_read_CAN0_MB28_LENGTH() bfin_read16(CAN0_MB28_LENGTH)
2258#define bfin_write_CAN0_MB28_LENGTH(val) bfin_write16(CAN0_MB28_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002259#define bfin_read_CAN0_MB28_TIMESTAMP() bfin_read16(CAN0_MB28_TIMESTAMP)
2260#define bfin_write_CAN0_MB28_TIMESTAMP(val) bfin_write16(CAN0_MB28_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002261#define bfin_read_CAN0_MB28_ID0() bfin_read16(CAN0_MB28_ID0)
2262#define bfin_write_CAN0_MB28_ID0(val) bfin_write16(CAN0_MB28_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002263#define bfin_read_CAN0_MB28_ID1() bfin_read16(CAN0_MB28_ID1)
2264#define bfin_write_CAN0_MB28_ID1(val) bfin_write16(CAN0_MB28_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002265#define bfin_read_CAN0_MB29_DATA0() bfin_read16(CAN0_MB29_DATA0)
2266#define bfin_write_CAN0_MB29_DATA0(val) bfin_write16(CAN0_MB29_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002267#define bfin_read_CAN0_MB29_DATA1() bfin_read16(CAN0_MB29_DATA1)
2268#define bfin_write_CAN0_MB29_DATA1(val) bfin_write16(CAN0_MB29_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002269#define bfin_read_CAN0_MB29_DATA2() bfin_read16(CAN0_MB29_DATA2)
2270#define bfin_write_CAN0_MB29_DATA2(val) bfin_write16(CAN0_MB29_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002271#define bfin_read_CAN0_MB29_DATA3() bfin_read16(CAN0_MB29_DATA3)
2272#define bfin_write_CAN0_MB29_DATA3(val) bfin_write16(CAN0_MB29_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002273#define bfin_read_CAN0_MB29_LENGTH() bfin_read16(CAN0_MB29_LENGTH)
2274#define bfin_write_CAN0_MB29_LENGTH(val) bfin_write16(CAN0_MB29_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002275#define bfin_read_CAN0_MB29_TIMESTAMP() bfin_read16(CAN0_MB29_TIMESTAMP)
2276#define bfin_write_CAN0_MB29_TIMESTAMP(val) bfin_write16(CAN0_MB29_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002277#define bfin_read_CAN0_MB29_ID0() bfin_read16(CAN0_MB29_ID0)
2278#define bfin_write_CAN0_MB29_ID0(val) bfin_write16(CAN0_MB29_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002279#define bfin_read_CAN0_MB29_ID1() bfin_read16(CAN0_MB29_ID1)
2280#define bfin_write_CAN0_MB29_ID1(val) bfin_write16(CAN0_MB29_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002281#define bfin_read_CAN0_MB30_DATA0() bfin_read16(CAN0_MB30_DATA0)
2282#define bfin_write_CAN0_MB30_DATA0(val) bfin_write16(CAN0_MB30_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002283#define bfin_read_CAN0_MB30_DATA1() bfin_read16(CAN0_MB30_DATA1)
2284#define bfin_write_CAN0_MB30_DATA1(val) bfin_write16(CAN0_MB30_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002285#define bfin_read_CAN0_MB30_DATA2() bfin_read16(CAN0_MB30_DATA2)
2286#define bfin_write_CAN0_MB30_DATA2(val) bfin_write16(CAN0_MB30_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002287#define bfin_read_CAN0_MB30_DATA3() bfin_read16(CAN0_MB30_DATA3)
2288#define bfin_write_CAN0_MB30_DATA3(val) bfin_write16(CAN0_MB30_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002289#define bfin_read_CAN0_MB30_LENGTH() bfin_read16(CAN0_MB30_LENGTH)
2290#define bfin_write_CAN0_MB30_LENGTH(val) bfin_write16(CAN0_MB30_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002291#define bfin_read_CAN0_MB30_TIMESTAMP() bfin_read16(CAN0_MB30_TIMESTAMP)
2292#define bfin_write_CAN0_MB30_TIMESTAMP(val) bfin_write16(CAN0_MB30_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002293#define bfin_read_CAN0_MB30_ID0() bfin_read16(CAN0_MB30_ID0)
2294#define bfin_write_CAN0_MB30_ID0(val) bfin_write16(CAN0_MB30_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002295#define bfin_read_CAN0_MB30_ID1() bfin_read16(CAN0_MB30_ID1)
2296#define bfin_write_CAN0_MB30_ID1(val) bfin_write16(CAN0_MB30_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002297#define bfin_read_CAN0_MB31_DATA0() bfin_read16(CAN0_MB31_DATA0)
2298#define bfin_write_CAN0_MB31_DATA0(val) bfin_write16(CAN0_MB31_DATA0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002299#define bfin_read_CAN0_MB31_DATA1() bfin_read16(CAN0_MB31_DATA1)
2300#define bfin_write_CAN0_MB31_DATA1(val) bfin_write16(CAN0_MB31_DATA1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002301#define bfin_read_CAN0_MB31_DATA2() bfin_read16(CAN0_MB31_DATA2)
2302#define bfin_write_CAN0_MB31_DATA2(val) bfin_write16(CAN0_MB31_DATA2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002303#define bfin_read_CAN0_MB31_DATA3() bfin_read16(CAN0_MB31_DATA3)
2304#define bfin_write_CAN0_MB31_DATA3(val) bfin_write16(CAN0_MB31_DATA3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002305#define bfin_read_CAN0_MB31_LENGTH() bfin_read16(CAN0_MB31_LENGTH)
2306#define bfin_write_CAN0_MB31_LENGTH(val) bfin_write16(CAN0_MB31_LENGTH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002307#define bfin_read_CAN0_MB31_TIMESTAMP() bfin_read16(CAN0_MB31_TIMESTAMP)
2308#define bfin_write_CAN0_MB31_TIMESTAMP(val) bfin_write16(CAN0_MB31_TIMESTAMP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002309#define bfin_read_CAN0_MB31_ID0() bfin_read16(CAN0_MB31_ID0)
2310#define bfin_write_CAN0_MB31_ID0(val) bfin_write16(CAN0_MB31_ID0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002311#define bfin_read_CAN0_MB31_ID1() bfin_read16(CAN0_MB31_ID1)
2312#define bfin_write_CAN0_MB31_ID1(val) bfin_write16(CAN0_MB31_ID1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002313#define bfin_read_SPI0_CTL() bfin_read16(SPI0_CTL)
2314#define bfin_write_SPI0_CTL(val) bfin_write16(SPI0_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002315#define bfin_read_SPI0_FLG() bfin_read16(SPI0_FLG)
2316#define bfin_write_SPI0_FLG(val) bfin_write16(SPI0_FLG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002317#define bfin_read_SPI0_STAT() bfin_read16(SPI0_STAT)
2318#define bfin_write_SPI0_STAT(val) bfin_write16(SPI0_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002319#define bfin_read_SPI0_TDBR() bfin_read16(SPI0_TDBR)
2320#define bfin_write_SPI0_TDBR(val) bfin_write16(SPI0_TDBR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002321#define bfin_read_SPI0_RDBR() bfin_read16(SPI0_RDBR)
2322#define bfin_write_SPI0_RDBR(val) bfin_write16(SPI0_RDBR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002323#define bfin_read_SPI0_BAUD() bfin_read16(SPI0_BAUD)
2324#define bfin_write_SPI0_BAUD(val) bfin_write16(SPI0_BAUD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002325#define bfin_read_SPI0_SHADOW() bfin_read16(SPI0_SHADOW)
2326#define bfin_write_SPI0_SHADOW(val) bfin_write16(SPI0_SHADOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002327#define bfin_read_SPI1_CTL() bfin_read16(SPI1_CTL)
2328#define bfin_write_SPI1_CTL(val) bfin_write16(SPI1_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002329#define bfin_read_SPI1_FLG() bfin_read16(SPI1_FLG)
2330#define bfin_write_SPI1_FLG(val) bfin_write16(SPI1_FLG, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002331#define bfin_read_SPI1_STAT() bfin_read16(SPI1_STAT)
2332#define bfin_write_SPI1_STAT(val) bfin_write16(SPI1_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002333#define bfin_read_SPI1_TDBR() bfin_read16(SPI1_TDBR)
2334#define bfin_write_SPI1_TDBR(val) bfin_write16(SPI1_TDBR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002335#define bfin_read_SPI1_RDBR() bfin_read16(SPI1_RDBR)
2336#define bfin_write_SPI1_RDBR(val) bfin_write16(SPI1_RDBR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002337#define bfin_read_SPI1_BAUD() bfin_read16(SPI1_BAUD)
2338#define bfin_write_SPI1_BAUD(val) bfin_write16(SPI1_BAUD, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002339#define bfin_read_SPI1_SHADOW() bfin_read16(SPI1_SHADOW)
2340#define bfin_write_SPI1_SHADOW(val) bfin_write16(SPI1_SHADOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002341#define bfin_read_TWI0_CLKDIV() bfin_read16(TWI0_CLKDIV)
2342#define bfin_write_TWI0_CLKDIV(val) bfin_write16(TWI0_CLKDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002343#define bfin_read_TWI0_CONTROL() bfin_read16(TWI0_CONTROL)
2344#define bfin_write_TWI0_CONTROL(val) bfin_write16(TWI0_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002345#define bfin_read_TWI0_SLAVE_CTL() bfin_read16(TWI0_SLAVE_CTL)
2346#define bfin_write_TWI0_SLAVE_CTL(val) bfin_write16(TWI0_SLAVE_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002347#define bfin_read_TWI0_SLAVE_STAT() bfin_read16(TWI0_SLAVE_STAT)
2348#define bfin_write_TWI0_SLAVE_STAT(val) bfin_write16(TWI0_SLAVE_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002349#define bfin_read_TWI0_SLAVE_ADDR() bfin_read16(TWI0_SLAVE_ADDR)
2350#define bfin_write_TWI0_SLAVE_ADDR(val) bfin_write16(TWI0_SLAVE_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002351#define bfin_read_TWI0_MASTER_CTL() bfin_read16(TWI0_MASTER_CTL)
2352#define bfin_write_TWI0_MASTER_CTL(val) bfin_write16(TWI0_MASTER_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002353#define bfin_read_TWI0_MASTER_STAT() bfin_read16(TWI0_MASTER_STAT)
2354#define bfin_write_TWI0_MASTER_STAT(val) bfin_write16(TWI0_MASTER_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002355#define bfin_read_TWI0_MASTER_ADDR() bfin_read16(TWI0_MASTER_ADDR)
2356#define bfin_write_TWI0_MASTER_ADDR(val) bfin_write16(TWI0_MASTER_ADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002357#define bfin_read_TWI0_INT_STAT() bfin_read16(TWI0_INT_STAT)
2358#define bfin_write_TWI0_INT_STAT(val) bfin_write16(TWI0_INT_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002359#define bfin_read_TWI0_INT_MASK() bfin_read16(TWI0_INT_MASK)
2360#define bfin_write_TWI0_INT_MASK(val) bfin_write16(TWI0_INT_MASK, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002361#define bfin_read_TWI0_FIFO_CTL() bfin_read16(TWI0_FIFO_CTL)
2362#define bfin_write_TWI0_FIFO_CTL(val) bfin_write16(TWI0_FIFO_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002363#define bfin_read_TWI0_FIFO_STAT() bfin_read16(TWI0_FIFO_STAT)
2364#define bfin_write_TWI0_FIFO_STAT(val) bfin_write16(TWI0_FIFO_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002365#define bfin_read_TWI0_XMT_DATA8() bfin_read16(TWI0_XMT_DATA8)
2366#define bfin_write_TWI0_XMT_DATA8(val) bfin_write16(TWI0_XMT_DATA8, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002367#define bfin_read_TWI0_XMT_DATA16() bfin_read16(TWI0_XMT_DATA16)
2368#define bfin_write_TWI0_XMT_DATA16(val) bfin_write16(TWI0_XMT_DATA16, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002369#define bfin_read_TWI0_RCV_DATA8() bfin_read16(TWI0_RCV_DATA8)
2370#define bfin_write_TWI0_RCV_DATA8(val) bfin_write16(TWI0_RCV_DATA8, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002371#define bfin_read_TWI0_RCV_DATA16() bfin_read16(TWI0_RCV_DATA16)
2372#define bfin_write_TWI0_RCV_DATA16(val) bfin_write16(TWI0_RCV_DATA16, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002373#define bfin_read_SPORT1_TCR1() bfin_read16(SPORT1_TCR1)
2374#define bfin_write_SPORT1_TCR1(val) bfin_write16(SPORT1_TCR1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002375#define bfin_read_SPORT1_TCR2() bfin_read16(SPORT1_TCR2)
2376#define bfin_write_SPORT1_TCR2(val) bfin_write16(SPORT1_TCR2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002377#define bfin_read_SPORT1_TCLKDIV() bfin_read16(SPORT1_TCLKDIV)
2378#define bfin_write_SPORT1_TCLKDIV(val) bfin_write16(SPORT1_TCLKDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002379#define bfin_read_SPORT1_TFSDIV() bfin_read16(SPORT1_TFSDIV)
2380#define bfin_write_SPORT1_TFSDIV(val) bfin_write16(SPORT1_TFSDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002381#define bfin_write_SPORT1_TX(val) bfin_write32(SPORT1_TX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002382#define bfin_read_SPORT1_RCR1() bfin_read16(SPORT1_RCR1)
2383#define bfin_write_SPORT1_RCR1(val) bfin_write16(SPORT1_RCR1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002384#define bfin_read_SPORT1_RCR2() bfin_read16(SPORT1_RCR2)
2385#define bfin_write_SPORT1_RCR2(val) bfin_write16(SPORT1_RCR2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002386#define bfin_read_SPORT1_RCLKDIV() bfin_read16(SPORT1_RCLKDIV)
2387#define bfin_write_SPORT1_RCLKDIV(val) bfin_write16(SPORT1_RCLKDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002388#define bfin_read_SPORT1_RFSDIV() bfin_read16(SPORT1_RFSDIV)
2389#define bfin_write_SPORT1_RFSDIV(val) bfin_write16(SPORT1_RFSDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002390#define bfin_read_SPORT1_RX() bfin_read32(SPORT1_RX)
2391#define bfin_write_SPORT1_RX(val) bfin_write32(SPORT1_RX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002392#define bfin_read_SPORT1_STAT() bfin_read16(SPORT1_STAT)
2393#define bfin_write_SPORT1_STAT(val) bfin_write16(SPORT1_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002394#define bfin_read_SPORT1_MCMC1() bfin_read16(SPORT1_MCMC1)
2395#define bfin_write_SPORT1_MCMC1(val) bfin_write16(SPORT1_MCMC1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002396#define bfin_read_SPORT1_MCMC2() bfin_read16(SPORT1_MCMC2)
2397#define bfin_write_SPORT1_MCMC2(val) bfin_write16(SPORT1_MCMC2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002398#define bfin_read_SPORT1_CHNL() bfin_read16(SPORT1_CHNL)
2399#define bfin_write_SPORT1_CHNL(val) bfin_write16(SPORT1_CHNL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002400#define bfin_read_SPORT1_MRCS0() bfin_read32(SPORT1_MRCS0)
2401#define bfin_write_SPORT1_MRCS0(val) bfin_write32(SPORT1_MRCS0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002402#define bfin_read_SPORT1_MRCS1() bfin_read32(SPORT1_MRCS1)
2403#define bfin_write_SPORT1_MRCS1(val) bfin_write32(SPORT1_MRCS1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002404#define bfin_read_SPORT1_MRCS2() bfin_read32(SPORT1_MRCS2)
2405#define bfin_write_SPORT1_MRCS2(val) bfin_write32(SPORT1_MRCS2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002406#define bfin_read_SPORT1_MRCS3() bfin_read32(SPORT1_MRCS3)
2407#define bfin_write_SPORT1_MRCS3(val) bfin_write32(SPORT1_MRCS3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002408#define bfin_read_SPORT1_MTCS0() bfin_read32(SPORT1_MTCS0)
2409#define bfin_write_SPORT1_MTCS0(val) bfin_write32(SPORT1_MTCS0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002410#define bfin_read_SPORT1_MTCS1() bfin_read32(SPORT1_MTCS1)
2411#define bfin_write_SPORT1_MTCS1(val) bfin_write32(SPORT1_MTCS1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002412#define bfin_read_SPORT1_MTCS2() bfin_read32(SPORT1_MTCS2)
2413#define bfin_write_SPORT1_MTCS2(val) bfin_write32(SPORT1_MTCS2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002414#define bfin_read_SPORT1_MTCS3() bfin_read32(SPORT1_MTCS3)
2415#define bfin_write_SPORT1_MTCS3(val) bfin_write32(SPORT1_MTCS3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002416#define bfin_read_SPORT2_TCR1() bfin_read16(SPORT2_TCR1)
2417#define bfin_write_SPORT2_TCR1(val) bfin_write16(SPORT2_TCR1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002418#define bfin_read_SPORT2_TCR2() bfin_read16(SPORT2_TCR2)
2419#define bfin_write_SPORT2_TCR2(val) bfin_write16(SPORT2_TCR2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002420#define bfin_read_SPORT2_TCLKDIV() bfin_read16(SPORT2_TCLKDIV)
2421#define bfin_write_SPORT2_TCLKDIV(val) bfin_write16(SPORT2_TCLKDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002422#define bfin_read_SPORT2_TFSDIV() bfin_read16(SPORT2_TFSDIV)
2423#define bfin_write_SPORT2_TFSDIV(val) bfin_write16(SPORT2_TFSDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002424#define bfin_write_SPORT2_TX(val) bfin_write32(SPORT2_TX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002425#define bfin_read_SPORT2_RCR1() bfin_read16(SPORT2_RCR1)
2426#define bfin_write_SPORT2_RCR1(val) bfin_write16(SPORT2_RCR1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002427#define bfin_read_SPORT2_RCR2() bfin_read16(SPORT2_RCR2)
2428#define bfin_write_SPORT2_RCR2(val) bfin_write16(SPORT2_RCR2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002429#define bfin_read_SPORT2_RCLKDIV() bfin_read16(SPORT2_RCLKDIV)
2430#define bfin_write_SPORT2_RCLKDIV(val) bfin_write16(SPORT2_RCLKDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002431#define bfin_read_SPORT2_RFSDIV() bfin_read16(SPORT2_RFSDIV)
2432#define bfin_write_SPORT2_RFSDIV(val) bfin_write16(SPORT2_RFSDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002433#define bfin_read_SPORT2_RX() bfin_read32(SPORT2_RX)
2434#define bfin_write_SPORT2_RX(val) bfin_write32(SPORT2_RX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002435#define bfin_read_SPORT2_STAT() bfin_read16(SPORT2_STAT)
2436#define bfin_write_SPORT2_STAT(val) bfin_write16(SPORT2_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002437#define bfin_read_SPORT2_MCMC1() bfin_read16(SPORT2_MCMC1)
2438#define bfin_write_SPORT2_MCMC1(val) bfin_write16(SPORT2_MCMC1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002439#define bfin_read_SPORT2_MCMC2() bfin_read16(SPORT2_MCMC2)
2440#define bfin_write_SPORT2_MCMC2(val) bfin_write16(SPORT2_MCMC2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002441#define bfin_read_SPORT2_CHNL() bfin_read16(SPORT2_CHNL)
2442#define bfin_write_SPORT2_CHNL(val) bfin_write16(SPORT2_CHNL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002443#define bfin_read_SPORT2_MRCS0() bfin_read32(SPORT2_MRCS0)
2444#define bfin_write_SPORT2_MRCS0(val) bfin_write32(SPORT2_MRCS0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002445#define bfin_read_SPORT2_MRCS1() bfin_read32(SPORT2_MRCS1)
2446#define bfin_write_SPORT2_MRCS1(val) bfin_write32(SPORT2_MRCS1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002447#define bfin_read_SPORT2_MRCS2() bfin_read32(SPORT2_MRCS2)
2448#define bfin_write_SPORT2_MRCS2(val) bfin_write32(SPORT2_MRCS2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002449#define bfin_read_SPORT2_MRCS3() bfin_read32(SPORT2_MRCS3)
2450#define bfin_write_SPORT2_MRCS3(val) bfin_write32(SPORT2_MRCS3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002451#define bfin_read_SPORT2_MTCS0() bfin_read32(SPORT2_MTCS0)
2452#define bfin_write_SPORT2_MTCS0(val) bfin_write32(SPORT2_MTCS0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002453#define bfin_read_SPORT2_MTCS1() bfin_read32(SPORT2_MTCS1)
2454#define bfin_write_SPORT2_MTCS1(val) bfin_write32(SPORT2_MTCS1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002455#define bfin_read_SPORT2_MTCS2() bfin_read32(SPORT2_MTCS2)
2456#define bfin_write_SPORT2_MTCS2(val) bfin_write32(SPORT2_MTCS2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002457#define bfin_read_SPORT2_MTCS3() bfin_read32(SPORT2_MTCS3)
2458#define bfin_write_SPORT2_MTCS3(val) bfin_write32(SPORT2_MTCS3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002459#define bfin_read_SPORT3_TCR1() bfin_read16(SPORT3_TCR1)
2460#define bfin_write_SPORT3_TCR1(val) bfin_write16(SPORT3_TCR1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002461#define bfin_read_SPORT3_TCR2() bfin_read16(SPORT3_TCR2)
2462#define bfin_write_SPORT3_TCR2(val) bfin_write16(SPORT3_TCR2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002463#define bfin_read_SPORT3_TCLKDIV() bfin_read16(SPORT3_TCLKDIV)
2464#define bfin_write_SPORT3_TCLKDIV(val) bfin_write16(SPORT3_TCLKDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002465#define bfin_read_SPORT3_TFSDIV() bfin_read16(SPORT3_TFSDIV)
2466#define bfin_write_SPORT3_TFSDIV(val) bfin_write16(SPORT3_TFSDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002467#define bfin_write_SPORT3_TX(val) bfin_write32(SPORT3_TX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002468#define bfin_read_SPORT3_RCR1() bfin_read16(SPORT3_RCR1)
2469#define bfin_write_SPORT3_RCR1(val) bfin_write16(SPORT3_RCR1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002470#define bfin_read_SPORT3_RCR2() bfin_read16(SPORT3_RCR2)
2471#define bfin_write_SPORT3_RCR2(val) bfin_write16(SPORT3_RCR2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002472#define bfin_read_SPORT3_RCLKDIV() bfin_read16(SPORT3_RCLKDIV)
2473#define bfin_write_SPORT3_RCLKDIV(val) bfin_write16(SPORT3_RCLKDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002474#define bfin_read_SPORT3_RFSDIV() bfin_read16(SPORT3_RFSDIV)
2475#define bfin_write_SPORT3_RFSDIV(val) bfin_write16(SPORT3_RFSDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002476#define bfin_read_SPORT3_RX() bfin_read32(SPORT3_RX)
2477#define bfin_write_SPORT3_RX(val) bfin_write32(SPORT3_RX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002478#define bfin_read_SPORT3_STAT() bfin_read16(SPORT3_STAT)
2479#define bfin_write_SPORT3_STAT(val) bfin_write16(SPORT3_STAT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002480#define bfin_read_SPORT3_MCMC1() bfin_read16(SPORT3_MCMC1)
2481#define bfin_write_SPORT3_MCMC1(val) bfin_write16(SPORT3_MCMC1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002482#define bfin_read_SPORT3_MCMC2() bfin_read16(SPORT3_MCMC2)
2483#define bfin_write_SPORT3_MCMC2(val) bfin_write16(SPORT3_MCMC2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002484#define bfin_read_SPORT3_CHNL() bfin_read16(SPORT3_CHNL)
2485#define bfin_write_SPORT3_CHNL(val) bfin_write16(SPORT3_CHNL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002486#define bfin_read_SPORT3_MRCS0() bfin_read32(SPORT3_MRCS0)
2487#define bfin_write_SPORT3_MRCS0(val) bfin_write32(SPORT3_MRCS0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002488#define bfin_read_SPORT3_MRCS1() bfin_read32(SPORT3_MRCS1)
2489#define bfin_write_SPORT3_MRCS1(val) bfin_write32(SPORT3_MRCS1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002490#define bfin_read_SPORT3_MRCS2() bfin_read32(SPORT3_MRCS2)
2491#define bfin_write_SPORT3_MRCS2(val) bfin_write32(SPORT3_MRCS2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002492#define bfin_read_SPORT3_MRCS3() bfin_read32(SPORT3_MRCS3)
2493#define bfin_write_SPORT3_MRCS3(val) bfin_write32(SPORT3_MRCS3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002494#define bfin_read_SPORT3_MTCS0() bfin_read32(SPORT3_MTCS0)
2495#define bfin_write_SPORT3_MTCS0(val) bfin_write32(SPORT3_MTCS0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002496#define bfin_read_SPORT3_MTCS1() bfin_read32(SPORT3_MTCS1)
2497#define bfin_write_SPORT3_MTCS1(val) bfin_write32(SPORT3_MTCS1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002498#define bfin_read_SPORT3_MTCS2() bfin_read32(SPORT3_MTCS2)
2499#define bfin_write_SPORT3_MTCS2(val) bfin_write32(SPORT3_MTCS2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002500#define bfin_read_SPORT3_MTCS3() bfin_read32(SPORT3_MTCS3)
2501#define bfin_write_SPORT3_MTCS3(val) bfin_write32(SPORT3_MTCS3, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002502#define bfin_read_UART0_DLL() bfin_read16(UART0_DLL)
2503#define bfin_write_UART0_DLL(val) bfin_write16(UART0_DLL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002504#define bfin_read_UART0_DLH() bfin_read16(UART0_DLH)
2505#define bfin_write_UART0_DLH(val) bfin_write16(UART0_DLH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002506#define bfin_read_UART0_GCTL() bfin_read16(UART0_GCTL)
2507#define bfin_write_UART0_GCTL(val) bfin_write16(UART0_GCTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002508#define bfin_read_UART0_LCR() bfin_read16(UART0_LCR)
2509#define bfin_write_UART0_LCR(val) bfin_write16(UART0_LCR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002510#define bfin_read_UART0_MCR() bfin_read16(UART0_MCR)
2511#define bfin_write_UART0_MCR(val) bfin_write16(UART0_MCR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002512#define bfin_read_UART0_LSR() bfin_read16(UART0_LSR)
2513#define bfin_write_UART0_LSR(val) bfin_write16(UART0_LSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002514#define bfin_read_UART0_MSR() bfin_read16(UART0_MSR)
2515#define bfin_write_UART0_MSR(val) bfin_write16(UART0_MSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002516#define bfin_read_UART0_SCR() bfin_read16(UART0_SCR)
2517#define bfin_write_UART0_SCR(val) bfin_write16(UART0_SCR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002518#define bfin_read_UART0_IER_SET() bfin_read16(UART0_IER_SET)
2519#define bfin_write_UART0_IER_SET(val) bfin_write16(UART0_IER_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002520#define bfin_read_UART0_IER_CLEAR() bfin_read16(UART0_IER_CLEAR)
2521#define bfin_write_UART0_IER_CLEAR(val) bfin_write16(UART0_IER_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002522#define bfin_read_UART0_THR() bfin_read16(UART0_THR)
2523#define bfin_write_UART0_THR(val) bfin_write16(UART0_THR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002524#define bfin_read_UART0_RBR() bfin_read16(UART0_RBR)
2525#define bfin_write_UART0_RBR(val) bfin_write16(UART0_RBR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002526#define bfin_read_UART1_DLL() bfin_read16(UART1_DLL)
2527#define bfin_write_UART1_DLL(val) bfin_write16(UART1_DLL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002528#define bfin_read_UART1_DLH() bfin_read16(UART1_DLH)
2529#define bfin_write_UART1_DLH(val) bfin_write16(UART1_DLH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002530#define bfin_read_UART1_GCTL() bfin_read16(UART1_GCTL)
2531#define bfin_write_UART1_GCTL(val) bfin_write16(UART1_GCTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002532#define bfin_read_UART1_LCR() bfin_read16(UART1_LCR)
2533#define bfin_write_UART1_LCR(val) bfin_write16(UART1_LCR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002534#define bfin_read_UART1_MCR() bfin_read16(UART1_MCR)
2535#define bfin_write_UART1_MCR(val) bfin_write16(UART1_MCR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002536#define bfin_read_UART1_LSR() bfin_read16(UART1_LSR)
2537#define bfin_write_UART1_LSR(val) bfin_write16(UART1_LSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002538#define bfin_read_UART1_MSR() bfin_read16(UART1_MSR)
2539#define bfin_write_UART1_MSR(val) bfin_write16(UART1_MSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002540#define bfin_read_UART1_SCR() bfin_read16(UART1_SCR)
2541#define bfin_write_UART1_SCR(val) bfin_write16(UART1_SCR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002542#define bfin_read_UART1_IER_SET() bfin_read16(UART1_IER_SET)
2543#define bfin_write_UART1_IER_SET(val) bfin_write16(UART1_IER_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002544#define bfin_read_UART1_IER_CLEAR() bfin_read16(UART1_IER_CLEAR)
2545#define bfin_write_UART1_IER_CLEAR(val) bfin_write16(UART1_IER_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002546#define bfin_read_UART1_THR() bfin_read16(UART1_THR)
2547#define bfin_write_UART1_THR(val) bfin_write16(UART1_THR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002548#define bfin_read_UART1_RBR() bfin_read16(UART1_RBR)
2549#define bfin_write_UART1_RBR(val) bfin_write16(UART1_RBR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002550#define bfin_read_UART3_DLL() bfin_read16(UART3_DLL)
2551#define bfin_write_UART3_DLL(val) bfin_write16(UART3_DLL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002552#define bfin_read_UART3_DLH() bfin_read16(UART3_DLH)
2553#define bfin_write_UART3_DLH(val) bfin_write16(UART3_DLH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002554#define bfin_read_UART3_GCTL() bfin_read16(UART3_GCTL)
2555#define bfin_write_UART3_GCTL(val) bfin_write16(UART3_GCTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002556#define bfin_read_UART3_LCR() bfin_read16(UART3_LCR)
2557#define bfin_write_UART3_LCR(val) bfin_write16(UART3_LCR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002558#define bfin_read_UART3_MCR() bfin_read16(UART3_MCR)
2559#define bfin_write_UART3_MCR(val) bfin_write16(UART3_MCR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002560#define bfin_read_UART3_LSR() bfin_read16(UART3_LSR)
2561#define bfin_write_UART3_LSR(val) bfin_write16(UART3_LSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002562#define bfin_read_UART3_MSR() bfin_read16(UART3_MSR)
2563#define bfin_write_UART3_MSR(val) bfin_write16(UART3_MSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002564#define bfin_read_UART3_SCR() bfin_read16(UART3_SCR)
2565#define bfin_write_UART3_SCR(val) bfin_write16(UART3_SCR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002566#define bfin_read_UART3_IER_SET() bfin_read16(UART3_IER_SET)
2567#define bfin_write_UART3_IER_SET(val) bfin_write16(UART3_IER_SET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002568#define bfin_read_UART3_IER_CLEAR() bfin_read16(UART3_IER_CLEAR)
2569#define bfin_write_UART3_IER_CLEAR(val) bfin_write16(UART3_IER_CLEAR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002570#define bfin_read_UART3_THR() bfin_read16(UART3_THR)
2571#define bfin_write_UART3_THR(val) bfin_write16(UART3_THR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002572#define bfin_read_UART3_RBR() bfin_read16(UART3_RBR)
2573#define bfin_write_UART3_RBR(val) bfin_write16(UART3_RBR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002574#define bfin_read_USB_FADDR() bfin_read16(USB_FADDR)
2575#define bfin_write_USB_FADDR(val) bfin_write16(USB_FADDR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002576#define bfin_read_USB_POWER() bfin_read16(USB_POWER)
2577#define bfin_write_USB_POWER(val) bfin_write16(USB_POWER, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002578#define bfin_read_USB_INTRTX() bfin_read16(USB_INTRTX)
2579#define bfin_write_USB_INTRTX(val) bfin_write16(USB_INTRTX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002580#define bfin_read_USB_INTRRX() bfin_read16(USB_INTRRX)
2581#define bfin_write_USB_INTRRX(val) bfin_write16(USB_INTRRX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002582#define bfin_read_USB_INTRTXE() bfin_read16(USB_INTRTXE)
2583#define bfin_write_USB_INTRTXE(val) bfin_write16(USB_INTRTXE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002584#define bfin_read_USB_INTRRXE() bfin_read16(USB_INTRRXE)
2585#define bfin_write_USB_INTRRXE(val) bfin_write16(USB_INTRRXE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002586#define bfin_read_USB_INTRUSB() bfin_read16(USB_INTRUSB)
2587#define bfin_write_USB_INTRUSB(val) bfin_write16(USB_INTRUSB, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002588#define bfin_read_USB_INTRUSBE() bfin_read16(USB_INTRUSBE)
2589#define bfin_write_USB_INTRUSBE(val) bfin_write16(USB_INTRUSBE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002590#define bfin_read_USB_FRAME() bfin_read16(USB_FRAME)
2591#define bfin_write_USB_FRAME(val) bfin_write16(USB_FRAME, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002592#define bfin_read_USB_INDEX() bfin_read16(USB_INDEX)
2593#define bfin_write_USB_INDEX(val) bfin_write16(USB_INDEX, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002594#define bfin_read_USB_TESTMODE() bfin_read16(USB_TESTMODE)
2595#define bfin_write_USB_TESTMODE(val) bfin_write16(USB_TESTMODE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002596#define bfin_read_USB_GLOBINTR() bfin_read16(USB_GLOBINTR)
2597#define bfin_write_USB_GLOBINTR(val) bfin_write16(USB_GLOBINTR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002598#define bfin_read_USB_GLOBAL_CTL() bfin_read16(USB_GLOBAL_CTL)
2599#define bfin_write_USB_GLOBAL_CTL(val) bfin_write16(USB_GLOBAL_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002600#define bfin_read_USB_TX_MAX_PACKET() bfin_read16(USB_TX_MAX_PACKET)
2601#define bfin_write_USB_TX_MAX_PACKET(val) bfin_write16(USB_TX_MAX_PACKET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002602#define bfin_read_USB_CSR0() bfin_read16(USB_CSR0)
2603#define bfin_write_USB_CSR0(val) bfin_write16(USB_CSR0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002604#define bfin_read_USB_TXCSR() bfin_read16(USB_TXCSR)
2605#define bfin_write_USB_TXCSR(val) bfin_write16(USB_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002606#define bfin_read_USB_RX_MAX_PACKET() bfin_read16(USB_RX_MAX_PACKET)
2607#define bfin_write_USB_RX_MAX_PACKET(val) bfin_write16(USB_RX_MAX_PACKET, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002608#define bfin_read_USB_RXCSR() bfin_read16(USB_RXCSR)
2609#define bfin_write_USB_RXCSR(val) bfin_write16(USB_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002610#define bfin_read_USB_COUNT0() bfin_read16(USB_COUNT0)
2611#define bfin_write_USB_COUNT0(val) bfin_write16(USB_COUNT0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002612#define bfin_read_USB_RXCOUNT() bfin_read16(USB_RXCOUNT)
2613#define bfin_write_USB_RXCOUNT(val) bfin_write16(USB_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002614#define bfin_read_USB_TXTYPE() bfin_read16(USB_TXTYPE)
2615#define bfin_write_USB_TXTYPE(val) bfin_write16(USB_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002616#define bfin_read_USB_NAKLIMIT0() bfin_read16(USB_NAKLIMIT0)
2617#define bfin_write_USB_NAKLIMIT0(val) bfin_write16(USB_NAKLIMIT0, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002618#define bfin_read_USB_TXINTERVAL() bfin_read16(USB_TXINTERVAL)
2619#define bfin_write_USB_TXINTERVAL(val) bfin_write16(USB_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002620#define bfin_read_USB_RXTYPE() bfin_read16(USB_RXTYPE)
2621#define bfin_write_USB_RXTYPE(val) bfin_write16(USB_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002622#define bfin_read_USB_RXINTERVAL() bfin_read16(USB_RXINTERVAL)
2623#define bfin_write_USB_RXINTERVAL(val) bfin_write16(USB_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002624#define bfin_read_USB_TXCOUNT() bfin_read16(USB_TXCOUNT)
2625#define bfin_write_USB_TXCOUNT(val) bfin_write16(USB_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002626#define bfin_read_USB_EP0_FIFO() bfin_read16(USB_EP0_FIFO)
2627#define bfin_write_USB_EP0_FIFO(val) bfin_write16(USB_EP0_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002628#define bfin_read_USB_EP1_FIFO() bfin_read16(USB_EP1_FIFO)
2629#define bfin_write_USB_EP1_FIFO(val) bfin_write16(USB_EP1_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002630#define bfin_read_USB_EP2_FIFO() bfin_read16(USB_EP2_FIFO)
2631#define bfin_write_USB_EP2_FIFO(val) bfin_write16(USB_EP2_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002632#define bfin_read_USB_EP3_FIFO() bfin_read16(USB_EP3_FIFO)
2633#define bfin_write_USB_EP3_FIFO(val) bfin_write16(USB_EP3_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002634#define bfin_read_USB_EP4_FIFO() bfin_read16(USB_EP4_FIFO)
2635#define bfin_write_USB_EP4_FIFO(val) bfin_write16(USB_EP4_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002636#define bfin_read_USB_EP5_FIFO() bfin_read16(USB_EP5_FIFO)
2637#define bfin_write_USB_EP5_FIFO(val) bfin_write16(USB_EP5_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002638#define bfin_read_USB_EP6_FIFO() bfin_read16(USB_EP6_FIFO)
2639#define bfin_write_USB_EP6_FIFO(val) bfin_write16(USB_EP6_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002640#define bfin_read_USB_EP7_FIFO() bfin_read16(USB_EP7_FIFO)
2641#define bfin_write_USB_EP7_FIFO(val) bfin_write16(USB_EP7_FIFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002642#define bfin_read_USB_OTG_DEV_CTL() bfin_read16(USB_OTG_DEV_CTL)
2643#define bfin_write_USB_OTG_DEV_CTL(val) bfin_write16(USB_OTG_DEV_CTL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002644#define bfin_read_USB_OTG_VBUS_IRQ() bfin_read16(USB_OTG_VBUS_IRQ)
2645#define bfin_write_USB_OTG_VBUS_IRQ(val) bfin_write16(USB_OTG_VBUS_IRQ, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002646#define bfin_read_USB_OTG_VBUS_MASK() bfin_read16(USB_OTG_VBUS_MASK)
2647#define bfin_write_USB_OTG_VBUS_MASK(val) bfin_write16(USB_OTG_VBUS_MASK, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002648#define bfin_read_USB_LINKINFO() bfin_read16(USB_LINKINFO)
2649#define bfin_write_USB_LINKINFO(val) bfin_write16(USB_LINKINFO, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002650#define bfin_read_USB_VPLEN() bfin_read16(USB_VPLEN)
2651#define bfin_write_USB_VPLEN(val) bfin_write16(USB_VPLEN, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002652#define bfin_read_USB_HS_EOF1() bfin_read16(USB_HS_EOF1)
2653#define bfin_write_USB_HS_EOF1(val) bfin_write16(USB_HS_EOF1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002654#define bfin_read_USB_FS_EOF1() bfin_read16(USB_FS_EOF1)
2655#define bfin_write_USB_FS_EOF1(val) bfin_write16(USB_FS_EOF1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002656#define bfin_read_USB_LS_EOF1() bfin_read16(USB_LS_EOF1)
2657#define bfin_write_USB_LS_EOF1(val) bfin_write16(USB_LS_EOF1, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002658#define bfin_read_USB_APHY_CNTRL() bfin_read16(USB_APHY_CNTRL)
2659#define bfin_write_USB_APHY_CNTRL(val) bfin_write16(USB_APHY_CNTRL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002660#define bfin_read_USB_APHY_CALIB() bfin_read16(USB_APHY_CALIB)
2661#define bfin_write_USB_APHY_CALIB(val) bfin_write16(USB_APHY_CALIB, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002662#define bfin_read_USB_APHY_CNTRL2() bfin_read16(USB_APHY_CNTRL2)
2663#define bfin_write_USB_APHY_CNTRL2(val) bfin_write16(USB_APHY_CNTRL2, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002664#define bfin_read_USB_PHY_TEST() bfin_read16(USB_PHY_TEST)
2665#define bfin_write_USB_PHY_TEST(val) bfin_write16(USB_PHY_TEST, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002666#define bfin_read_USB_PLLOSC_CTRL() bfin_read16(USB_PLLOSC_CTRL)
2667#define bfin_write_USB_PLLOSC_CTRL(val) bfin_write16(USB_PLLOSC_CTRL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002668#define bfin_read_USB_SRP_CLKDIV() bfin_read16(USB_SRP_CLKDIV)
2669#define bfin_write_USB_SRP_CLKDIV(val) bfin_write16(USB_SRP_CLKDIV, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002670#define bfin_read_USB_EP_NI0_TXMAXP() bfin_read16(USB_EP_NI0_TXMAXP)
2671#define bfin_write_USB_EP_NI0_TXMAXP(val) bfin_write16(USB_EP_NI0_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002672#define bfin_read_USB_EP_NI0_TXCSR() bfin_read16(USB_EP_NI0_TXCSR)
2673#define bfin_write_USB_EP_NI0_TXCSR(val) bfin_write16(USB_EP_NI0_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002674#define bfin_read_USB_EP_NI0_RXMAXP() bfin_read16(USB_EP_NI0_RXMAXP)
2675#define bfin_write_USB_EP_NI0_RXMAXP(val) bfin_write16(USB_EP_NI0_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002676#define bfin_read_USB_EP_NI0_RXCSR() bfin_read16(USB_EP_NI0_RXCSR)
2677#define bfin_write_USB_EP_NI0_RXCSR(val) bfin_write16(USB_EP_NI0_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002678#define bfin_read_USB_EP_NI0_RXCOUNT() bfin_read16(USB_EP_NI0_RXCOUNT)
2679#define bfin_write_USB_EP_NI0_RXCOUNT(val) bfin_write16(USB_EP_NI0_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002680#define bfin_read_USB_EP_NI0_TXTYPE() bfin_read16(USB_EP_NI0_TXTYPE)
2681#define bfin_write_USB_EP_NI0_TXTYPE(val) bfin_write16(USB_EP_NI0_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002682#define bfin_read_USB_EP_NI0_TXINTERVAL() bfin_read16(USB_EP_NI0_TXINTERVAL)
2683#define bfin_write_USB_EP_NI0_TXINTERVAL(val) bfin_write16(USB_EP_NI0_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002684#define bfin_read_USB_EP_NI0_RXTYPE() bfin_read16(USB_EP_NI0_RXTYPE)
2685#define bfin_write_USB_EP_NI0_RXTYPE(val) bfin_write16(USB_EP_NI0_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002686#define bfin_read_USB_EP_NI0_RXINTERVAL() bfin_read16(USB_EP_NI0_RXINTERVAL)
2687#define bfin_write_USB_EP_NI0_RXINTERVAL(val) bfin_write16(USB_EP_NI0_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002688#define bfin_read_USB_EP_NI0_TXCOUNT() bfin_read16(USB_EP_NI0_TXCOUNT)
2689#define bfin_write_USB_EP_NI0_TXCOUNT(val) bfin_write16(USB_EP_NI0_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002690#define bfin_read_USB_EP_NI1_TXMAXP() bfin_read16(USB_EP_NI1_TXMAXP)
2691#define bfin_write_USB_EP_NI1_TXMAXP(val) bfin_write16(USB_EP_NI1_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002692#define bfin_read_USB_EP_NI1_TXCSR() bfin_read16(USB_EP_NI1_TXCSR)
2693#define bfin_write_USB_EP_NI1_TXCSR(val) bfin_write16(USB_EP_NI1_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002694#define bfin_read_USB_EP_NI1_RXMAXP() bfin_read16(USB_EP_NI1_RXMAXP)
2695#define bfin_write_USB_EP_NI1_RXMAXP(val) bfin_write16(USB_EP_NI1_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002696#define bfin_read_USB_EP_NI1_RXCSR() bfin_read16(USB_EP_NI1_RXCSR)
2697#define bfin_write_USB_EP_NI1_RXCSR(val) bfin_write16(USB_EP_NI1_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002698#define bfin_read_USB_EP_NI1_RXCOUNT() bfin_read16(USB_EP_NI1_RXCOUNT)
2699#define bfin_write_USB_EP_NI1_RXCOUNT(val) bfin_write16(USB_EP_NI1_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002700#define bfin_read_USB_EP_NI1_TXTYPE() bfin_read16(USB_EP_NI1_TXTYPE)
2701#define bfin_write_USB_EP_NI1_TXTYPE(val) bfin_write16(USB_EP_NI1_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002702#define bfin_read_USB_EP_NI1_TXINTERVAL() bfin_read16(USB_EP_NI1_TXINTERVAL)
2703#define bfin_write_USB_EP_NI1_TXINTERVAL(val) bfin_write16(USB_EP_NI1_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002704#define bfin_read_USB_EP_NI1_RXTYPE() bfin_read16(USB_EP_NI1_RXTYPE)
2705#define bfin_write_USB_EP_NI1_RXTYPE(val) bfin_write16(USB_EP_NI1_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002706#define bfin_read_USB_EP_NI1_RXINTERVAL() bfin_read16(USB_EP_NI1_RXINTERVAL)
2707#define bfin_write_USB_EP_NI1_RXINTERVAL(val) bfin_write16(USB_EP_NI1_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002708#define bfin_read_USB_EP_NI1_TXCOUNT() bfin_read16(USB_EP_NI1_TXCOUNT)
2709#define bfin_write_USB_EP_NI1_TXCOUNT(val) bfin_write16(USB_EP_NI1_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002710#define bfin_read_USB_EP_NI2_TXMAXP() bfin_read16(USB_EP_NI2_TXMAXP)
2711#define bfin_write_USB_EP_NI2_TXMAXP(val) bfin_write16(USB_EP_NI2_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002712#define bfin_read_USB_EP_NI2_TXCSR() bfin_read16(USB_EP_NI2_TXCSR)
2713#define bfin_write_USB_EP_NI2_TXCSR(val) bfin_write16(USB_EP_NI2_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002714#define bfin_read_USB_EP_NI2_RXMAXP() bfin_read16(USB_EP_NI2_RXMAXP)
2715#define bfin_write_USB_EP_NI2_RXMAXP(val) bfin_write16(USB_EP_NI2_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002716#define bfin_read_USB_EP_NI2_RXCSR() bfin_read16(USB_EP_NI2_RXCSR)
2717#define bfin_write_USB_EP_NI2_RXCSR(val) bfin_write16(USB_EP_NI2_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002718#define bfin_read_USB_EP_NI2_RXCOUNT() bfin_read16(USB_EP_NI2_RXCOUNT)
2719#define bfin_write_USB_EP_NI2_RXCOUNT(val) bfin_write16(USB_EP_NI2_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002720#define bfin_read_USB_EP_NI2_TXTYPE() bfin_read16(USB_EP_NI2_TXTYPE)
2721#define bfin_write_USB_EP_NI2_TXTYPE(val) bfin_write16(USB_EP_NI2_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002722#define bfin_read_USB_EP_NI2_TXINTERVAL() bfin_read16(USB_EP_NI2_TXINTERVAL)
2723#define bfin_write_USB_EP_NI2_TXINTERVAL(val) bfin_write16(USB_EP_NI2_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002724#define bfin_read_USB_EP_NI2_RXTYPE() bfin_read16(USB_EP_NI2_RXTYPE)
2725#define bfin_write_USB_EP_NI2_RXTYPE(val) bfin_write16(USB_EP_NI2_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002726#define bfin_read_USB_EP_NI2_RXINTERVAL() bfin_read16(USB_EP_NI2_RXINTERVAL)
2727#define bfin_write_USB_EP_NI2_RXINTERVAL(val) bfin_write16(USB_EP_NI2_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002728#define bfin_read_USB_EP_NI2_TXCOUNT() bfin_read16(USB_EP_NI2_TXCOUNT)
2729#define bfin_write_USB_EP_NI2_TXCOUNT(val) bfin_write16(USB_EP_NI2_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002730#define bfin_read_USB_EP_NI3_TXMAXP() bfin_read16(USB_EP_NI3_TXMAXP)
2731#define bfin_write_USB_EP_NI3_TXMAXP(val) bfin_write16(USB_EP_NI3_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002732#define bfin_read_USB_EP_NI3_TXCSR() bfin_read16(USB_EP_NI3_TXCSR)
2733#define bfin_write_USB_EP_NI3_TXCSR(val) bfin_write16(USB_EP_NI3_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002734#define bfin_read_USB_EP_NI3_RXMAXP() bfin_read16(USB_EP_NI3_RXMAXP)
2735#define bfin_write_USB_EP_NI3_RXMAXP(val) bfin_write16(USB_EP_NI3_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002736#define bfin_read_USB_EP_NI3_RXCSR() bfin_read16(USB_EP_NI3_RXCSR)
2737#define bfin_write_USB_EP_NI3_RXCSR(val) bfin_write16(USB_EP_NI3_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002738#define bfin_read_USB_EP_NI3_RXCOUNT() bfin_read16(USB_EP_NI3_RXCOUNT)
2739#define bfin_write_USB_EP_NI3_RXCOUNT(val) bfin_write16(USB_EP_NI3_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002740#define bfin_read_USB_EP_NI3_TXTYPE() bfin_read16(USB_EP_NI3_TXTYPE)
2741#define bfin_write_USB_EP_NI3_TXTYPE(val) bfin_write16(USB_EP_NI3_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002742#define bfin_read_USB_EP_NI3_TXINTERVAL() bfin_read16(USB_EP_NI3_TXINTERVAL)
2743#define bfin_write_USB_EP_NI3_TXINTERVAL(val) bfin_write16(USB_EP_NI3_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002744#define bfin_read_USB_EP_NI3_RXTYPE() bfin_read16(USB_EP_NI3_RXTYPE)
2745#define bfin_write_USB_EP_NI3_RXTYPE(val) bfin_write16(USB_EP_NI3_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002746#define bfin_read_USB_EP_NI3_RXINTERVAL() bfin_read16(USB_EP_NI3_RXINTERVAL)
2747#define bfin_write_USB_EP_NI3_RXINTERVAL(val) bfin_write16(USB_EP_NI3_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002748#define bfin_read_USB_EP_NI3_TXCOUNT() bfin_read16(USB_EP_NI3_TXCOUNT)
2749#define bfin_write_USB_EP_NI3_TXCOUNT(val) bfin_write16(USB_EP_NI3_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002750#define bfin_read_USB_EP_NI4_TXMAXP() bfin_read16(USB_EP_NI4_TXMAXP)
2751#define bfin_write_USB_EP_NI4_TXMAXP(val) bfin_write16(USB_EP_NI4_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002752#define bfin_read_USB_EP_NI4_TXCSR() bfin_read16(USB_EP_NI4_TXCSR)
2753#define bfin_write_USB_EP_NI4_TXCSR(val) bfin_write16(USB_EP_NI4_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002754#define bfin_read_USB_EP_NI4_RXMAXP() bfin_read16(USB_EP_NI4_RXMAXP)
2755#define bfin_write_USB_EP_NI4_RXMAXP(val) bfin_write16(USB_EP_NI4_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002756#define bfin_read_USB_EP_NI4_RXCSR() bfin_read16(USB_EP_NI4_RXCSR)
2757#define bfin_write_USB_EP_NI4_RXCSR(val) bfin_write16(USB_EP_NI4_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002758#define bfin_read_USB_EP_NI4_RXCOUNT() bfin_read16(USB_EP_NI4_RXCOUNT)
2759#define bfin_write_USB_EP_NI4_RXCOUNT(val) bfin_write16(USB_EP_NI4_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002760#define bfin_read_USB_EP_NI4_TXTYPE() bfin_read16(USB_EP_NI4_TXTYPE)
2761#define bfin_write_USB_EP_NI4_TXTYPE(val) bfin_write16(USB_EP_NI4_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002762#define bfin_read_USB_EP_NI4_TXINTERVAL() bfin_read16(USB_EP_NI4_TXINTERVAL)
2763#define bfin_write_USB_EP_NI4_TXINTERVAL(val) bfin_write16(USB_EP_NI4_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002764#define bfin_read_USB_EP_NI4_RXTYPE() bfin_read16(USB_EP_NI4_RXTYPE)
2765#define bfin_write_USB_EP_NI4_RXTYPE(val) bfin_write16(USB_EP_NI4_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002766#define bfin_read_USB_EP_NI4_RXINTERVAL() bfin_read16(USB_EP_NI4_RXINTERVAL)
2767#define bfin_write_USB_EP_NI4_RXINTERVAL(val) bfin_write16(USB_EP_NI4_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002768#define bfin_read_USB_EP_NI4_TXCOUNT() bfin_read16(USB_EP_NI4_TXCOUNT)
2769#define bfin_write_USB_EP_NI4_TXCOUNT(val) bfin_write16(USB_EP_NI4_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002770#define bfin_read_USB_EP_NI5_TXMAXP() bfin_read16(USB_EP_NI5_TXMAXP)
2771#define bfin_write_USB_EP_NI5_TXMAXP(val) bfin_write16(USB_EP_NI5_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002772#define bfin_read_USB_EP_NI5_TXCSR() bfin_read16(USB_EP_NI5_TXCSR)
2773#define bfin_write_USB_EP_NI5_TXCSR(val) bfin_write16(USB_EP_NI5_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002774#define bfin_read_USB_EP_NI5_RXMAXP() bfin_read16(USB_EP_NI5_RXMAXP)
2775#define bfin_write_USB_EP_NI5_RXMAXP(val) bfin_write16(USB_EP_NI5_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002776#define bfin_read_USB_EP_NI5_RXCSR() bfin_read16(USB_EP_NI5_RXCSR)
2777#define bfin_write_USB_EP_NI5_RXCSR(val) bfin_write16(USB_EP_NI5_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002778#define bfin_read_USB_EP_NI5_RXCOUNT() bfin_read16(USB_EP_NI5_RXCOUNT)
2779#define bfin_write_USB_EP_NI5_RXCOUNT(val) bfin_write16(USB_EP_NI5_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002780#define bfin_read_USB_EP_NI5_TXTYPE() bfin_read16(USB_EP_NI5_TXTYPE)
2781#define bfin_write_USB_EP_NI5_TXTYPE(val) bfin_write16(USB_EP_NI5_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002782#define bfin_read_USB_EP_NI5_TXINTERVAL() bfin_read16(USB_EP_NI5_TXINTERVAL)
2783#define bfin_write_USB_EP_NI5_TXINTERVAL(val) bfin_write16(USB_EP_NI5_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002784#define bfin_read_USB_EP_NI5_RXTYPE() bfin_read16(USB_EP_NI5_RXTYPE)
2785#define bfin_write_USB_EP_NI5_RXTYPE(val) bfin_write16(USB_EP_NI5_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002786#define bfin_read_USB_EP_NI5_RXINTERVAL() bfin_read16(USB_EP_NI5_RXINTERVAL)
2787#define bfin_write_USB_EP_NI5_RXINTERVAL(val) bfin_write16(USB_EP_NI5_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002788#define bfin_read_USB_EP_NI5_TXCOUNT() bfin_read16(USB_EP_NI5_TXCOUNT)
2789#define bfin_write_USB_EP_NI5_TXCOUNT(val) bfin_write16(USB_EP_NI5_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002790#define bfin_read_USB_EP_NI6_TXMAXP() bfin_read16(USB_EP_NI6_TXMAXP)
2791#define bfin_write_USB_EP_NI6_TXMAXP(val) bfin_write16(USB_EP_NI6_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002792#define bfin_read_USB_EP_NI6_TXCSR() bfin_read16(USB_EP_NI6_TXCSR)
2793#define bfin_write_USB_EP_NI6_TXCSR(val) bfin_write16(USB_EP_NI6_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002794#define bfin_read_USB_EP_NI6_RXMAXP() bfin_read16(USB_EP_NI6_RXMAXP)
2795#define bfin_write_USB_EP_NI6_RXMAXP(val) bfin_write16(USB_EP_NI6_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002796#define bfin_read_USB_EP_NI6_RXCSR() bfin_read16(USB_EP_NI6_RXCSR)
2797#define bfin_write_USB_EP_NI6_RXCSR(val) bfin_write16(USB_EP_NI6_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002798#define bfin_read_USB_EP_NI6_RXCOUNT() bfin_read16(USB_EP_NI6_RXCOUNT)
2799#define bfin_write_USB_EP_NI6_RXCOUNT(val) bfin_write16(USB_EP_NI6_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002800#define bfin_read_USB_EP_NI6_TXTYPE() bfin_read16(USB_EP_NI6_TXTYPE)
2801#define bfin_write_USB_EP_NI6_TXTYPE(val) bfin_write16(USB_EP_NI6_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002802#define bfin_read_USB_EP_NI6_TXINTERVAL() bfin_read16(USB_EP_NI6_TXINTERVAL)
2803#define bfin_write_USB_EP_NI6_TXINTERVAL(val) bfin_write16(USB_EP_NI6_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002804#define bfin_read_USB_EP_NI6_RXTYPE() bfin_read16(USB_EP_NI6_RXTYPE)
2805#define bfin_write_USB_EP_NI6_RXTYPE(val) bfin_write16(USB_EP_NI6_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002806#define bfin_read_USB_EP_NI6_RXINTERVAL() bfin_read16(USB_EP_NI6_RXINTERVAL)
2807#define bfin_write_USB_EP_NI6_RXINTERVAL(val) bfin_write16(USB_EP_NI6_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002808#define bfin_read_USB_EP_NI6_TXCOUNT() bfin_read16(USB_EP_NI6_TXCOUNT)
2809#define bfin_write_USB_EP_NI6_TXCOUNT(val) bfin_write16(USB_EP_NI6_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002810#define bfin_read_USB_EP_NI7_TXMAXP() bfin_read16(USB_EP_NI7_TXMAXP)
2811#define bfin_write_USB_EP_NI7_TXMAXP(val) bfin_write16(USB_EP_NI7_TXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002812#define bfin_read_USB_EP_NI7_TXCSR() bfin_read16(USB_EP_NI7_TXCSR)
2813#define bfin_write_USB_EP_NI7_TXCSR(val) bfin_write16(USB_EP_NI7_TXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002814#define bfin_read_USB_EP_NI7_RXMAXP() bfin_read16(USB_EP_NI7_RXMAXP)
2815#define bfin_write_USB_EP_NI7_RXMAXP(val) bfin_write16(USB_EP_NI7_RXMAXP, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002816#define bfin_read_USB_EP_NI7_RXCSR() bfin_read16(USB_EP_NI7_RXCSR)
2817#define bfin_write_USB_EP_NI7_RXCSR(val) bfin_write16(USB_EP_NI7_RXCSR, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002818#define bfin_read_USB_EP_NI7_RXCOUNT() bfin_read16(USB_EP_NI7_RXCOUNT)
2819#define bfin_write_USB_EP_NI7_RXCOUNT(val) bfin_write16(USB_EP_NI7_RXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002820#define bfin_read_USB_EP_NI7_TXTYPE() bfin_read16(USB_EP_NI7_TXTYPE)
2821#define bfin_write_USB_EP_NI7_TXTYPE(val) bfin_write16(USB_EP_NI7_TXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002822#define bfin_read_USB_EP_NI7_TXINTERVAL() bfin_read16(USB_EP_NI7_TXINTERVAL)
2823#define bfin_write_USB_EP_NI7_TXINTERVAL(val) bfin_write16(USB_EP_NI7_TXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002824#define bfin_read_USB_EP_NI7_RXTYPE() bfin_read16(USB_EP_NI7_RXTYPE)
2825#define bfin_write_USB_EP_NI7_RXTYPE(val) bfin_write16(USB_EP_NI7_RXTYPE, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002826#define bfin_read_USB_EP_NI7_RXINTERVAL() bfin_read16(USB_EP_NI7_RXINTERVAL)
2827#define bfin_write_USB_EP_NI7_RXINTERVAL(val) bfin_write16(USB_EP_NI7_RXINTERVAL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002828#define bfin_read_USB_EP_NI7_TXCOUNT() bfin_read16(USB_EP_NI7_TXCOUNT)
2829#define bfin_write_USB_EP_NI7_TXCOUNT(val) bfin_write16(USB_EP_NI7_TXCOUNT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002830#define bfin_read_USB_DMA_INTERRUPT() bfin_read16(USB_DMA_INTERRUPT)
2831#define bfin_write_USB_DMA_INTERRUPT(val) bfin_write16(USB_DMA_INTERRUPT, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002832#define bfin_read_USB_DMA0_CONTROL() bfin_read16(USB_DMA0_CONTROL)
2833#define bfin_write_USB_DMA0_CONTROL(val) bfin_write16(USB_DMA0_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002834#define bfin_read_USB_DMA0_ADDRLOW() bfin_read16(USB_DMA0_ADDRLOW)
2835#define bfin_write_USB_DMA0_ADDRLOW(val) bfin_write16(USB_DMA0_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002836#define bfin_read_USB_DMA0_ADDRHIGH() bfin_read16(USB_DMA0_ADDRHIGH)
2837#define bfin_write_USB_DMA0_ADDRHIGH(val) bfin_write16(USB_DMA0_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002838#define bfin_read_USB_DMA0_COUNTLOW() bfin_read16(USB_DMA0_COUNTLOW)
2839#define bfin_write_USB_DMA0_COUNTLOW(val) bfin_write16(USB_DMA0_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002840#define bfin_read_USB_DMA0_COUNTHIGH() bfin_read16(USB_DMA0_COUNTHIGH)
2841#define bfin_write_USB_DMA0_COUNTHIGH(val) bfin_write16(USB_DMA0_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002842#define bfin_read_USB_DMA1_CONTROL() bfin_read16(USB_DMA1_CONTROL)
2843#define bfin_write_USB_DMA1_CONTROL(val) bfin_write16(USB_DMA1_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002844#define bfin_read_USB_DMA1_ADDRLOW() bfin_read16(USB_DMA1_ADDRLOW)
2845#define bfin_write_USB_DMA1_ADDRLOW(val) bfin_write16(USB_DMA1_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002846#define bfin_read_USB_DMA1_ADDRHIGH() bfin_read16(USB_DMA1_ADDRHIGH)
2847#define bfin_write_USB_DMA1_ADDRHIGH(val) bfin_write16(USB_DMA1_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002848#define bfin_read_USB_DMA1_COUNTLOW() bfin_read16(USB_DMA1_COUNTLOW)
2849#define bfin_write_USB_DMA1_COUNTLOW(val) bfin_write16(USB_DMA1_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002850#define bfin_read_USB_DMA1_COUNTHIGH() bfin_read16(USB_DMA1_COUNTHIGH)
2851#define bfin_write_USB_DMA1_COUNTHIGH(val) bfin_write16(USB_DMA1_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002852#define bfin_read_USB_DMA2_CONTROL() bfin_read16(USB_DMA2_CONTROL)
2853#define bfin_write_USB_DMA2_CONTROL(val) bfin_write16(USB_DMA2_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002854#define bfin_read_USB_DMA2_ADDRLOW() bfin_read16(USB_DMA2_ADDRLOW)
2855#define bfin_write_USB_DMA2_ADDRLOW(val) bfin_write16(USB_DMA2_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002856#define bfin_read_USB_DMA2_ADDRHIGH() bfin_read16(USB_DMA2_ADDRHIGH)
2857#define bfin_write_USB_DMA2_ADDRHIGH(val) bfin_write16(USB_DMA2_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002858#define bfin_read_USB_DMA2_COUNTLOW() bfin_read16(USB_DMA2_COUNTLOW)
2859#define bfin_write_USB_DMA2_COUNTLOW(val) bfin_write16(USB_DMA2_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002860#define bfin_read_USB_DMA2_COUNTHIGH() bfin_read16(USB_DMA2_COUNTHIGH)
2861#define bfin_write_USB_DMA2_COUNTHIGH(val) bfin_write16(USB_DMA2_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002862#define bfin_read_USB_DMA3_CONTROL() bfin_read16(USB_DMA3_CONTROL)
2863#define bfin_write_USB_DMA3_CONTROL(val) bfin_write16(USB_DMA3_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002864#define bfin_read_USB_DMA3_ADDRLOW() bfin_read16(USB_DMA3_ADDRLOW)
2865#define bfin_write_USB_DMA3_ADDRLOW(val) bfin_write16(USB_DMA3_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002866#define bfin_read_USB_DMA3_ADDRHIGH() bfin_read16(USB_DMA3_ADDRHIGH)
2867#define bfin_write_USB_DMA3_ADDRHIGH(val) bfin_write16(USB_DMA3_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002868#define bfin_read_USB_DMA3_COUNTLOW() bfin_read16(USB_DMA3_COUNTLOW)
2869#define bfin_write_USB_DMA3_COUNTLOW(val) bfin_write16(USB_DMA3_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002870#define bfin_read_USB_DMA3_COUNTHIGH() bfin_read16(USB_DMA3_COUNTHIGH)
2871#define bfin_write_USB_DMA3_COUNTHIGH(val) bfin_write16(USB_DMA3_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002872#define bfin_read_USB_DMA4_CONTROL() bfin_read16(USB_DMA4_CONTROL)
2873#define bfin_write_USB_DMA4_CONTROL(val) bfin_write16(USB_DMA4_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002874#define bfin_read_USB_DMA4_ADDRLOW() bfin_read16(USB_DMA4_ADDRLOW)
2875#define bfin_write_USB_DMA4_ADDRLOW(val) bfin_write16(USB_DMA4_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002876#define bfin_read_USB_DMA4_ADDRHIGH() bfin_read16(USB_DMA4_ADDRHIGH)
2877#define bfin_write_USB_DMA4_ADDRHIGH(val) bfin_write16(USB_DMA4_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002878#define bfin_read_USB_DMA4_COUNTLOW() bfin_read16(USB_DMA4_COUNTLOW)
2879#define bfin_write_USB_DMA4_COUNTLOW(val) bfin_write16(USB_DMA4_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002880#define bfin_read_USB_DMA4_COUNTHIGH() bfin_read16(USB_DMA4_COUNTHIGH)
2881#define bfin_write_USB_DMA4_COUNTHIGH(val) bfin_write16(USB_DMA4_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002882#define bfin_read_USB_DMA5_CONTROL() bfin_read16(USB_DMA5_CONTROL)
2883#define bfin_write_USB_DMA5_CONTROL(val) bfin_write16(USB_DMA5_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002884#define bfin_read_USB_DMA5_ADDRLOW() bfin_read16(USB_DMA5_ADDRLOW)
2885#define bfin_write_USB_DMA5_ADDRLOW(val) bfin_write16(USB_DMA5_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002886#define bfin_read_USB_DMA5_ADDRHIGH() bfin_read16(USB_DMA5_ADDRHIGH)
2887#define bfin_write_USB_DMA5_ADDRHIGH(val) bfin_write16(USB_DMA5_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002888#define bfin_read_USB_DMA5_COUNTLOW() bfin_read16(USB_DMA5_COUNTLOW)
2889#define bfin_write_USB_DMA5_COUNTLOW(val) bfin_write16(USB_DMA5_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002890#define bfin_read_USB_DMA5_COUNTHIGH() bfin_read16(USB_DMA5_COUNTHIGH)
2891#define bfin_write_USB_DMA5_COUNTHIGH(val) bfin_write16(USB_DMA5_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002892#define bfin_read_USB_DMA6_CONTROL() bfin_read16(USB_DMA6_CONTROL)
2893#define bfin_write_USB_DMA6_CONTROL(val) bfin_write16(USB_DMA6_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002894#define bfin_read_USB_DMA6_ADDRLOW() bfin_read16(USB_DMA6_ADDRLOW)
2895#define bfin_write_USB_DMA6_ADDRLOW(val) bfin_write16(USB_DMA6_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002896#define bfin_read_USB_DMA6_ADDRHIGH() bfin_read16(USB_DMA6_ADDRHIGH)
2897#define bfin_write_USB_DMA6_ADDRHIGH(val) bfin_write16(USB_DMA6_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002898#define bfin_read_USB_DMA6_COUNTLOW() bfin_read16(USB_DMA6_COUNTLOW)
2899#define bfin_write_USB_DMA6_COUNTLOW(val) bfin_write16(USB_DMA6_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002900#define bfin_read_USB_DMA6_COUNTHIGH() bfin_read16(USB_DMA6_COUNTHIGH)
2901#define bfin_write_USB_DMA6_COUNTHIGH(val) bfin_write16(USB_DMA6_COUNTHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002902#define bfin_read_USB_DMA7_CONTROL() bfin_read16(USB_DMA7_CONTROL)
2903#define bfin_write_USB_DMA7_CONTROL(val) bfin_write16(USB_DMA7_CONTROL, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002904#define bfin_read_USB_DMA7_ADDRLOW() bfin_read16(USB_DMA7_ADDRLOW)
2905#define bfin_write_USB_DMA7_ADDRLOW(val) bfin_write16(USB_DMA7_ADDRLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002906#define bfin_read_USB_DMA7_ADDRHIGH() bfin_read16(USB_DMA7_ADDRHIGH)
2907#define bfin_write_USB_DMA7_ADDRHIGH(val) bfin_write16(USB_DMA7_ADDRHIGH, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002908#define bfin_read_USB_DMA7_COUNTLOW() bfin_read16(USB_DMA7_COUNTLOW)
2909#define bfin_write_USB_DMA7_COUNTLOW(val) bfin_write16(USB_DMA7_COUNTLOW, val)
Mike Frysinger66c4cf42008-02-04 19:26:55 -05002910#define bfin_read_USB_DMA7_COUNTHIGH() bfin_read16(USB_DMA7_COUNTHIGH)
2911#define bfin_write_USB_DMA7_COUNTHIGH(val) bfin_write16(USB_DMA7_COUNTHIGH, val)
2912
2913#endif /* __BFIN_CDEF_ADSP_EDN_BF542_extended__ */