cdefBF561.h 108 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461
  1. /*
  2. * Copyright 2005-2010 Analog Devices Inc.
  3. *
  4. * Licensed under the GPL-2 or later.
  5. */
  6. #ifndef _CDEF_BF561_H
  7. #define _CDEF_BF561_H
  8. /*********************************************************************************** */
  9. /* System MMR Register Map */
  10. /*********************************************************************************** */
  11. /* Clock and System Control (0xFFC00000 - 0xFFC000FF) */
  12. #define bfin_read_PLL_CTL() bfin_read16(PLL_CTL)
  13. #define bfin_read_PLL_DIV() bfin_read16(PLL_DIV)
  14. #define bfin_write_PLL_DIV(val) bfin_write16(PLL_DIV,val)
  15. #define bfin_read_VR_CTL() bfin_read16(VR_CTL)
  16. #define bfin_read_PLL_STAT() bfin_read16(PLL_STAT)
  17. #define bfin_write_PLL_STAT(val) bfin_write16(PLL_STAT,val)
  18. #define bfin_read_PLL_LOCKCNT() bfin_read16(PLL_LOCKCNT)
  19. #define bfin_write_PLL_LOCKCNT(val) bfin_write16(PLL_LOCKCNT,val)
  20. #define bfin_read_CHIPID() bfin_read32(CHIPID)
  21. /* System Reset and Interrupt Controller registers for core A (0xFFC0 0100-0xFFC0 01FF) */
  22. #define bfin_read_SWRST() bfin_read16(SWRST)
  23. #define bfin_write_SWRST(val) bfin_write16(SWRST,val)
  24. #define bfin_read_SYSCR() bfin_read16(SYSCR)
  25. #define bfin_write_SYSCR(val) bfin_write16(SYSCR,val)
  26. #define bfin_read_SIC_RVECT() bfin_read16(SIC_RVECT)
  27. #define bfin_write_SIC_RVECT(val) bfin_write16(SIC_RVECT,val)
  28. #define bfin_read_SIC_IMASK0() bfin_read32(SIC_IMASK0)
  29. #define bfin_write_SIC_IMASK0(val) bfin_write32(SIC_IMASK0,val)
  30. #define bfin_read_SIC_IMASK1() bfin_read32(SIC_IMASK1)
  31. #define bfin_write_SIC_IMASK1(val) bfin_write32(SIC_IMASK1,val)
  32. #define bfin_read_SIC_IAR0() bfin_read32(SIC_IAR0)
  33. #define bfin_write_SIC_IAR0(val) bfin_write32(SIC_IAR0,val)
  34. #define bfin_read_SIC_IAR1() bfin_read32(SIC_IAR1)
  35. #define bfin_write_SIC_IAR1(val) bfin_write32(SIC_IAR1,val)
  36. #define bfin_read_SIC_IAR2() bfin_read32(SIC_IAR2)
  37. #define bfin_write_SIC_IAR2(val) bfin_write32(SIC_IAR2,val)
  38. #define bfin_read_SIC_IAR3() bfin_read32(SIC_IAR3)
  39. #define bfin_write_SIC_IAR3(val) bfin_write32(SIC_IAR3,val)
  40. #define bfin_read_SIC_IAR4() bfin_read32(SIC_IAR4)
  41. #define bfin_write_SIC_IAR4(val) bfin_write32(SIC_IAR4,val)
  42. #define bfin_read_SIC_IAR5() bfin_read32(SIC_IAR5)
  43. #define bfin_write_SIC_IAR5(val) bfin_write32(SIC_IAR5,val)
  44. #define bfin_read_SIC_IAR6() bfin_read32(SIC_IAR6)
  45. #define bfin_write_SIC_IAR6(val) bfin_write32(SIC_IAR6,val)
  46. #define bfin_read_SIC_IAR7() bfin_read32(SIC_IAR7)
  47. #define bfin_write_SIC_IAR7(val) bfin_write32(SIC_IAR7,val)
  48. #define bfin_read_SIC_ISR0() bfin_read32(SIC_ISR0)
  49. #define bfin_write_SIC_ISR0(val) bfin_write32(SIC_ISR0,val)
  50. #define bfin_read_SIC_ISR1() bfin_read32(SIC_ISR1)
  51. #define bfin_write_SIC_ISR1(val) bfin_write32(SIC_ISR1,val)
  52. #define bfin_read_SIC_IWR0() bfin_read32(SIC_IWR0)
  53. #define bfin_write_SIC_IWR0(val) bfin_write32(SIC_IWR0,val)
  54. #define bfin_read_SIC_IWR1() bfin_read32(SIC_IWR1)
  55. #define bfin_write_SIC_IWR1(val) bfin_write32(SIC_IWR1,val)
  56. /* System Reset and Interrupt Controller registers for Core B (0xFFC0 1100-0xFFC0 11FF) */
  57. #define bfin_read_SICB_SWRST() bfin_read16(SICB_SWRST)
  58. #define bfin_write_SICB_SWRST(val) bfin_write16(SICB_SWRST,val)
  59. #define bfin_read_SICB_SYSCR() bfin_read16(SICB_SYSCR)
  60. #define bfin_write_SICB_SYSCR(val) bfin_write16(SICB_SYSCR,val)
  61. #define bfin_read_SICB_RVECT() bfin_read16(SICB_RVECT)
  62. #define bfin_write_SICB_RVECT(val) bfin_write16(SICB_RVECT,val)
  63. #define bfin_read_SICB_IMASK0() bfin_read32(SICB_IMASK0)
  64. #define bfin_write_SICB_IMASK0(val) bfin_write32(SICB_IMASK0,val)
  65. #define bfin_read_SICB_IMASK1() bfin_read32(SICB_IMASK1)
  66. #define bfin_write_SICB_IMASK1(val) bfin_write32(SICB_IMASK1,val)
  67. #define bfin_read_SICB_IAR0() bfin_read32(SICB_IAR0)
  68. #define bfin_write_SICB_IAR0(val) bfin_write32(SICB_IAR0,val)
  69. #define bfin_read_SICB_IAR1() bfin_read32(SICB_IAR1)
  70. #define bfin_write_SICB_IAR1(val) bfin_write32(SICB_IAR1,val)
  71. #define bfin_read_SICB_IAR2() bfin_read32(SICB_IAR2)
  72. #define bfin_write_SICB_IAR2(val) bfin_write32(SICB_IAR2,val)
  73. #define bfin_read_SICB_IAR3() bfin_read32(SICB_IAR3)
  74. #define bfin_write_SICB_IAR3(val) bfin_write32(SICB_IAR3,val)
  75. #define bfin_read_SICB_IAR4() bfin_read32(SICB_IAR4)
  76. #define bfin_write_SICB_IAR4(val) bfin_write32(SICB_IAR4,val)
  77. #define bfin_read_SICB_IAR5() bfin_read32(SICB_IAR5)
  78. #define bfin_write_SICB_IAR5(val) bfin_write32(SICB_IAR5,val)
  79. #define bfin_read_SICB_IAR6() bfin_read32(SICB_IAR6)
  80. #define bfin_write_SICB_IAR6(val) bfin_write32(SICB_IAR6,val)
  81. #define bfin_read_SICB_IAR7() bfin_read32(SICB_IAR7)
  82. #define bfin_write_SICB_IAR7(val) bfin_write32(SICB_IAR7,val)
  83. #define bfin_read_SICB_ISR0() bfin_read32(SICB_ISR0)
  84. #define bfin_write_SICB_ISR0(val) bfin_write32(SICB_ISR0,val)
  85. #define bfin_read_SICB_ISR1() bfin_read32(SICB_ISR1)
  86. #define bfin_write_SICB_ISR1(val) bfin_write32(SICB_ISR1,val)
  87. #define bfin_read_SICB_IWR0() bfin_read32(SICB_IWR0)
  88. #define bfin_write_SICB_IWR0(val) bfin_write32(SICB_IWR0,val)
  89. #define bfin_read_SICB_IWR1() bfin_read32(SICB_IWR1)
  90. #define bfin_write_SICB_IWR1(val) bfin_write32(SICB_IWR1,val)
  91. /* Watchdog Timer registers for Core A (0xFFC0 0200-0xFFC0 02FF) */
  92. #define bfin_read_WDOGA_CTL() bfin_read16(WDOGA_CTL)
  93. #define bfin_write_WDOGA_CTL(val) bfin_write16(WDOGA_CTL,val)
  94. #define bfin_read_WDOGA_CNT() bfin_read32(WDOGA_CNT)
  95. #define bfin_write_WDOGA_CNT(val) bfin_write32(WDOGA_CNT,val)
  96. #define bfin_read_WDOGA_STAT() bfin_read32(WDOGA_STAT)
  97. #define bfin_write_WDOGA_STAT(val) bfin_write32(WDOGA_STAT,val)
  98. /* Watchdog Timer registers for Core B (0xFFC0 1200-0xFFC0 12FF) */
  99. #define bfin_read_WDOGB_CTL() bfin_read16(WDOGB_CTL)
  100. #define bfin_write_WDOGB_CTL(val) bfin_write16(WDOGB_CTL,val)
  101. #define bfin_read_WDOGB_CNT() bfin_read32(WDOGB_CNT)
  102. #define bfin_write_WDOGB_CNT(val) bfin_write32(WDOGB_CNT,val)
  103. #define bfin_read_WDOGB_STAT() bfin_read32(WDOGB_STAT)
  104. #define bfin_write_WDOGB_STAT(val) bfin_write32(WDOGB_STAT,val)
  105. /* UART Controller (0xFFC00400 - 0xFFC004FF) */
  106. #define bfin_read_UART_THR() bfin_read16(UART_THR)
  107. #define bfin_write_UART_THR(val) bfin_write16(UART_THR,val)
  108. #define bfin_read_UART_RBR() bfin_read16(UART_RBR)
  109. #define bfin_write_UART_RBR(val) bfin_write16(UART_RBR,val)
  110. #define bfin_read_UART_DLL() bfin_read16(UART_DLL)
  111. #define bfin_write_UART_DLL(val) bfin_write16(UART_DLL,val)
  112. #define bfin_read_UART_IER() bfin_read16(UART_IER)
  113. #define bfin_write_UART_IER(val) bfin_write16(UART_IER,val)
  114. #define bfin_read_UART_DLH() bfin_read16(UART_DLH)
  115. #define bfin_write_UART_DLH(val) bfin_write16(UART_DLH,val)
  116. #define bfin_read_UART_IIR() bfin_read16(UART_IIR)
  117. #define bfin_write_UART_IIR(val) bfin_write16(UART_IIR,val)
  118. #define bfin_read_UART_LCR() bfin_read16(UART_LCR)
  119. #define bfin_write_UART_LCR(val) bfin_write16(UART_LCR,val)
  120. #define bfin_read_UART_MCR() bfin_read16(UART_MCR)
  121. #define bfin_write_UART_MCR(val) bfin_write16(UART_MCR,val)
  122. #define bfin_read_UART_LSR() bfin_read16(UART_LSR)
  123. #define bfin_write_UART_LSR(val) bfin_write16(UART_LSR,val)
  124. #define bfin_read_UART_MSR() bfin_read16(UART_MSR)
  125. #define bfin_write_UART_MSR(val) bfin_write16(UART_MSR,val)
  126. #define bfin_read_UART_SCR() bfin_read16(UART_SCR)
  127. #define bfin_write_UART_SCR(val) bfin_write16(UART_SCR,val)
  128. #define bfin_read_UART_GCTL() bfin_read16(UART_GCTL)
  129. #define bfin_write_UART_GCTL(val) bfin_write16(UART_GCTL,val)
  130. /* SPI Controller (0xFFC00500 - 0xFFC005FF) */
  131. #define bfin_read_SPI_CTL() bfin_read16(SPI_CTL)
  132. #define bfin_write_SPI_CTL(val) bfin_write16(SPI_CTL,val)
  133. #define bfin_read_SPI_FLG() bfin_read16(SPI_FLG)
  134. #define bfin_write_SPI_FLG(val) bfin_write16(SPI_FLG,val)
  135. #define bfin_read_SPI_STAT() bfin_read16(SPI_STAT)
  136. #define bfin_write_SPI_STAT(val) bfin_write16(SPI_STAT,val)
  137. #define bfin_read_SPI_TDBR() bfin_read16(SPI_TDBR)
  138. #define bfin_write_SPI_TDBR(val) bfin_write16(SPI_TDBR,val)
  139. #define bfin_read_SPI_RDBR() bfin_read16(SPI_RDBR)
  140. #define bfin_write_SPI_RDBR(val) bfin_write16(SPI_RDBR,val)
  141. #define bfin_read_SPI_BAUD() bfin_read16(SPI_BAUD)
  142. #define bfin_write_SPI_BAUD(val) bfin_write16(SPI_BAUD,val)
  143. #define bfin_read_SPI_SHADOW() bfin_read16(SPI_SHADOW)
  144. #define bfin_write_SPI_SHADOW(val) bfin_write16(SPI_SHADOW,val)
  145. /* Timer 0-7 registers (0xFFC0 0600-0xFFC0 06FF) */
  146. #define bfin_read_TIMER0_CONFIG() bfin_read16(TIMER0_CONFIG)
  147. #define bfin_write_TIMER0_CONFIG(val) bfin_write16(TIMER0_CONFIG,val)
  148. #define bfin_read_TIMER0_COUNTER() bfin_read32(TIMER0_COUNTER)
  149. #define bfin_write_TIMER0_COUNTER(val) bfin_write32(TIMER0_COUNTER,val)
  150. #define bfin_read_TIMER0_PERIOD() bfin_read32(TIMER0_PERIOD)
  151. #define bfin_write_TIMER0_PERIOD(val) bfin_write32(TIMER0_PERIOD,val)
  152. #define bfin_read_TIMER0_WIDTH() bfin_read32(TIMER0_WIDTH)
  153. #define bfin_write_TIMER0_WIDTH(val) bfin_write32(TIMER0_WIDTH,val)
  154. #define bfin_read_TIMER1_CONFIG() bfin_read16(TIMER1_CONFIG)
  155. #define bfin_write_TIMER1_CONFIG(val) bfin_write16(TIMER1_CONFIG,val)
  156. #define bfin_read_TIMER1_COUNTER() bfin_read32(TIMER1_COUNTER)
  157. #define bfin_write_TIMER1_COUNTER(val) bfin_write32(TIMER1_COUNTER,val)
  158. #define bfin_read_TIMER1_PERIOD() bfin_read32(TIMER1_PERIOD)
  159. #define bfin_write_TIMER1_PERIOD(val) bfin_write32(TIMER1_PERIOD,val)
  160. #define bfin_read_TIMER1_WIDTH() bfin_read32(TIMER1_WIDTH)
  161. #define bfin_write_TIMER1_WIDTH(val) bfin_write32(TIMER1_WIDTH,val)
  162. #define bfin_read_TIMER2_CONFIG() bfin_read16(TIMER2_CONFIG)
  163. #define bfin_write_TIMER2_CONFIG(val) bfin_write16(TIMER2_CONFIG,val)
  164. #define bfin_read_TIMER2_COUNTER() bfin_read32(TIMER2_COUNTER)
  165. #define bfin_write_TIMER2_COUNTER(val) bfin_write32(TIMER2_COUNTER,val)
  166. #define bfin_read_TIMER2_PERIOD() bfin_read32(TIMER2_PERIOD)
  167. #define bfin_write_TIMER2_PERIOD(val) bfin_write32(TIMER2_PERIOD,val)
  168. #define bfin_read_TIMER2_WIDTH() bfin_read32(TIMER2_WIDTH)
  169. #define bfin_write_TIMER2_WIDTH(val) bfin_write32(TIMER2_WIDTH,val)
  170. #define bfin_read_TIMER3_CONFIG() bfin_read16(TIMER3_CONFIG)
  171. #define bfin_write_TIMER3_CONFIG(val) bfin_write16(TIMER3_CONFIG,val)
  172. #define bfin_read_TIMER3_COUNTER() bfin_read32(TIMER3_COUNTER)
  173. #define bfin_write_TIMER3_COUNTER(val) bfin_write32(TIMER3_COUNTER,val)
  174. #define bfin_read_TIMER3_PERIOD() bfin_read32(TIMER3_PERIOD)
  175. #define bfin_write_TIMER3_PERIOD(val) bfin_write32(TIMER3_PERIOD,val)
  176. #define bfin_read_TIMER3_WIDTH() bfin_read32(TIMER3_WIDTH)
  177. #define bfin_write_TIMER3_WIDTH(val) bfin_write32(TIMER3_WIDTH,val)
  178. #define bfin_read_TIMER4_CONFIG() bfin_read16(TIMER4_CONFIG)
  179. #define bfin_write_TIMER4_CONFIG(val) bfin_write16(TIMER4_CONFIG,val)
  180. #define bfin_read_TIMER4_COUNTER() bfin_read32(TIMER4_COUNTER)
  181. #define bfin_write_TIMER4_COUNTER(val) bfin_write32(TIMER4_COUNTER,val)
  182. #define bfin_read_TIMER4_PERIOD() bfin_read32(TIMER4_PERIOD)
  183. #define bfin_write_TIMER4_PERIOD(val) bfin_write32(TIMER4_PERIOD,val)
  184. #define bfin_read_TIMER4_WIDTH() bfin_read32(TIMER4_WIDTH)
  185. #define bfin_write_TIMER4_WIDTH(val) bfin_write32(TIMER4_WIDTH,val)
  186. #define bfin_read_TIMER5_CONFIG() bfin_read16(TIMER5_CONFIG)
  187. #define bfin_write_TIMER5_CONFIG(val) bfin_write16(TIMER5_CONFIG,val)
  188. #define bfin_read_TIMER5_COUNTER() bfin_read32(TIMER5_COUNTER)
  189. #define bfin_write_TIMER5_COUNTER(val) bfin_write32(TIMER5_COUNTER,val)
  190. #define bfin_read_TIMER5_PERIOD() bfin_read32(TIMER5_PERIOD)
  191. #define bfin_write_TIMER5_PERIOD(val) bfin_write32(TIMER5_PERIOD,val)
  192. #define bfin_read_TIMER5_WIDTH() bfin_read32(TIMER5_WIDTH)
  193. #define bfin_write_TIMER5_WIDTH(val) bfin_write32(TIMER5_WIDTH,val)
  194. #define bfin_read_TIMER6_CONFIG() bfin_read16(TIMER6_CONFIG)
  195. #define bfin_write_TIMER6_CONFIG(val) bfin_write16(TIMER6_CONFIG,val)
  196. #define bfin_read_TIMER6_COUNTER() bfin_read32(TIMER6_COUNTER)
  197. #define bfin_write_TIMER6_COUNTER(val) bfin_write32(TIMER6_COUNTER,val)
  198. #define bfin_read_TIMER6_PERIOD() bfin_read32(TIMER6_PERIOD)
  199. #define bfin_write_TIMER6_PERIOD(val) bfin_write32(TIMER6_PERIOD,val)
  200. #define bfin_read_TIMER6_WIDTH() bfin_read32(TIMER6_WIDTH)
  201. #define bfin_write_TIMER6_WIDTH(val) bfin_write32(TIMER6_WIDTH,val)
  202. #define bfin_read_TIMER7_CONFIG() bfin_read16(TIMER7_CONFIG)
  203. #define bfin_write_TIMER7_CONFIG(val) bfin_write16(TIMER7_CONFIG,val)
  204. #define bfin_read_TIMER7_COUNTER() bfin_read32(TIMER7_COUNTER)
  205. #define bfin_write_TIMER7_COUNTER(val) bfin_write32(TIMER7_COUNTER,val)
  206. #define bfin_read_TIMER7_PERIOD() bfin_read32(TIMER7_PERIOD)
  207. #define bfin_write_TIMER7_PERIOD(val) bfin_write32(TIMER7_PERIOD,val)
  208. #define bfin_read_TIMER7_WIDTH() bfin_read32(TIMER7_WIDTH)
  209. #define bfin_write_TIMER7_WIDTH(val) bfin_write32(TIMER7_WIDTH,val)
  210. /* Timer registers 8-11 (0xFFC0 1600-0xFFC0 16FF) */
  211. #define bfin_read_TMRS8_ENABLE() bfin_read16(TMRS8_ENABLE)
  212. #define bfin_write_TMRS8_ENABLE(val) bfin_write16(TMRS8_ENABLE,val)
  213. #define bfin_read_TMRS8_DISABLE() bfin_read16(TMRS8_DISABLE)
  214. #define bfin_write_TMRS8_DISABLE(val) bfin_write16(TMRS8_DISABLE,val)
  215. #define bfin_read_TMRS8_STATUS() bfin_read32(TMRS8_STATUS)
  216. #define bfin_write_TMRS8_STATUS(val) bfin_write32(TMRS8_STATUS,val)
  217. #define bfin_read_TIMER8_CONFIG() bfin_read16(TIMER8_CONFIG)
  218. #define bfin_write_TIMER8_CONFIG(val) bfin_write16(TIMER8_CONFIG,val)
  219. #define bfin_read_TIMER8_COUNTER() bfin_read32(TIMER8_COUNTER)
  220. #define bfin_write_TIMER8_COUNTER(val) bfin_write32(TIMER8_COUNTER,val)
  221. #define bfin_read_TIMER8_PERIOD() bfin_read32(TIMER8_PERIOD)
  222. #define bfin_write_TIMER8_PERIOD(val) bfin_write32(TIMER8_PERIOD,val)
  223. #define bfin_read_TIMER8_WIDTH() bfin_read32(TIMER8_WIDTH)
  224. #define bfin_write_TIMER8_WIDTH(val) bfin_write32(TIMER8_WIDTH,val)
  225. #define bfin_read_TIMER9_CONFIG() bfin_read16(TIMER9_CONFIG)
  226. #define bfin_write_TIMER9_CONFIG(val) bfin_write16(TIMER9_CONFIG,val)
  227. #define bfin_read_TIMER9_COUNTER() bfin_read32(TIMER9_COUNTER)
  228. #define bfin_write_TIMER9_COUNTER(val) bfin_write32(TIMER9_COUNTER,val)
  229. #define bfin_read_TIMER9_PERIOD() bfin_read32(TIMER9_PERIOD)
  230. #define bfin_write_TIMER9_PERIOD(val) bfin_write32(TIMER9_PERIOD,val)
  231. #define bfin_read_TIMER9_WIDTH() bfin_read32(TIMER9_WIDTH)
  232. #define bfin_write_TIMER9_WIDTH(val) bfin_write32(TIMER9_WIDTH,val)
  233. #define bfin_read_TIMER10_CONFIG() bfin_read16(TIMER10_CONFIG)
  234. #define bfin_write_TIMER10_CONFIG(val) bfin_write16(TIMER10_CONFIG,val)
  235. #define bfin_read_TIMER10_COUNTER() bfin_read32(TIMER10_COUNTER)
  236. #define bfin_write_TIMER10_COUNTER(val) bfin_write32(TIMER10_COUNTER,val)
  237. #define bfin_read_TIMER10_PERIOD() bfin_read32(TIMER10_PERIOD)
  238. #define bfin_write_TIMER10_PERIOD(val) bfin_write32(TIMER10_PERIOD,val)
  239. #define bfin_read_TIMER10_WIDTH() bfin_read32(TIMER10_WIDTH)
  240. #define bfin_write_TIMER10_WIDTH(val) bfin_write32(TIMER10_WIDTH,val)
  241. #define bfin_read_TIMER11_CONFIG() bfin_read16(TIMER11_CONFIG)
  242. #define bfin_write_TIMER11_CONFIG(val) bfin_write16(TIMER11_CONFIG,val)
  243. #define bfin_read_TIMER11_COUNTER() bfin_read32(TIMER11_COUNTER)
  244. #define bfin_write_TIMER11_COUNTER(val) bfin_write32(TIMER11_COUNTER,val)
  245. #define bfin_read_TIMER11_PERIOD() bfin_read32(TIMER11_PERIOD)
  246. #define bfin_write_TIMER11_PERIOD(val) bfin_write32(TIMER11_PERIOD,val)
  247. #define bfin_read_TIMER11_WIDTH() bfin_read32(TIMER11_WIDTH)
  248. #define bfin_write_TIMER11_WIDTH(val) bfin_write32(TIMER11_WIDTH,val)
  249. #define bfin_read_TMRS4_ENABLE() bfin_read16(TMRS4_ENABLE)
  250. #define bfin_write_TMRS4_ENABLE(val) bfin_write16(TMRS4_ENABLE,val)
  251. #define bfin_read_TMRS4_DISABLE() bfin_read16(TMRS4_DISABLE)
  252. #define bfin_write_TMRS4_DISABLE(val) bfin_write16(TMRS4_DISABLE,val)
  253. #define bfin_read_TMRS4_STATUS() bfin_read32(TMRS4_STATUS)
  254. #define bfin_write_TMRS4_STATUS(val) bfin_write32(TMRS4_STATUS,val)
  255. /* Programmable Flag 0 registers (0xFFC0 0700-0xFFC0 07FF) */
  256. #define bfin_read_FIO0_FLAG_D() bfin_read16(FIO0_FLAG_D)
  257. #define bfin_write_FIO0_FLAG_D(val) bfin_write16(FIO0_FLAG_D,val)
  258. #define bfin_read_FIO0_FLAG_C() bfin_read16(FIO0_FLAG_C)
  259. #define bfin_write_FIO0_FLAG_C(val) bfin_write16(FIO0_FLAG_C,val)
  260. #define bfin_read_FIO0_FLAG_S() bfin_read16(FIO0_FLAG_S)
  261. #define bfin_write_FIO0_FLAG_S(val) bfin_write16(FIO0_FLAG_S,val)
  262. #define bfin_read_FIO0_FLAG_T() bfin_read16(FIO0_FLAG_T)
  263. #define bfin_write_FIO0_FLAG_T(val) bfin_write16(FIO0_FLAG_T,val)
  264. #define bfin_read_FIO0_MASKA_D() bfin_read16(FIO0_MASKA_D)
  265. #define bfin_write_FIO0_MASKA_D(val) bfin_write16(FIO0_MASKA_D,val)
  266. #define bfin_read_FIO0_MASKA_C() bfin_read16(FIO0_MASKA_C)
  267. #define bfin_write_FIO0_MASKA_C(val) bfin_write16(FIO0_MASKA_C,val)
  268. #define bfin_read_FIO0_MASKA_S() bfin_read16(FIO0_MASKA_S)
  269. #define bfin_write_FIO0_MASKA_S(val) bfin_write16(FIO0_MASKA_S,val)
  270. #define bfin_read_FIO0_MASKA_T() bfin_read16(FIO0_MASKA_T)
  271. #define bfin_write_FIO0_MASKA_T(val) bfin_write16(FIO0_MASKA_T,val)
  272. #define bfin_read_FIO0_MASKB_D() bfin_read16(FIO0_MASKB_D)
  273. #define bfin_write_FIO0_MASKB_D(val) bfin_write16(FIO0_MASKB_D,val)
  274. #define bfin_read_FIO0_MASKB_C() bfin_read16(FIO0_MASKB_C)
  275. #define bfin_write_FIO0_MASKB_C(val) bfin_write16(FIO0_MASKB_C,val)
  276. #define bfin_read_FIO0_MASKB_S() bfin_read16(FIO0_MASKB_S)
  277. #define bfin_write_FIO0_MASKB_S(val) bfin_write16(FIO0_MASKB_S,val)
  278. #define bfin_read_FIO0_MASKB_T() bfin_read16(FIO0_MASKB_T)
  279. #define bfin_write_FIO0_MASKB_T(val) bfin_write16(FIO0_MASKB_T,val)
  280. #define bfin_read_FIO0_DIR() bfin_read16(FIO0_DIR)
  281. #define bfin_write_FIO0_DIR(val) bfin_write16(FIO0_DIR,val)
  282. #define bfin_read_FIO0_POLAR() bfin_read16(FIO0_POLAR)
  283. #define bfin_write_FIO0_POLAR(val) bfin_write16(FIO0_POLAR,val)
  284. #define bfin_read_FIO0_EDGE() bfin_read16(FIO0_EDGE)
  285. #define bfin_write_FIO0_EDGE(val) bfin_write16(FIO0_EDGE,val)
  286. #define bfin_read_FIO0_BOTH() bfin_read16(FIO0_BOTH)
  287. #define bfin_write_FIO0_BOTH(val) bfin_write16(FIO0_BOTH,val)
  288. #define bfin_read_FIO0_INEN() bfin_read16(FIO0_INEN)
  289. #define bfin_write_FIO0_INEN(val) bfin_write16(FIO0_INEN,val)
  290. /* Programmable Flag 1 registers (0xFFC0 1500-0xFFC0 15FF) */
  291. #define bfin_read_FIO1_FLAG_D() bfin_read16(FIO1_FLAG_D)
  292. #define bfin_write_FIO1_FLAG_D(val) bfin_write16(FIO1_FLAG_D,val)
  293. #define bfin_read_FIO1_FLAG_C() bfin_read16(FIO1_FLAG_C)
  294. #define bfin_write_FIO1_FLAG_C(val) bfin_write16(FIO1_FLAG_C,val)
  295. #define bfin_read_FIO1_FLAG_S() bfin_read16(FIO1_FLAG_S)
  296. #define bfin_write_FIO1_FLAG_S(val) bfin_write16(FIO1_FLAG_S,val)
  297. #define bfin_read_FIO1_FLAG_T() bfin_read16(FIO1_FLAG_T)
  298. #define bfin_write_FIO1_FLAG_T(val) bfin_write16(FIO1_FLAG_T,val)
  299. #define bfin_read_FIO1_MASKA_D() bfin_read16(FIO1_MASKA_D)
  300. #define bfin_write_FIO1_MASKA_D(val) bfin_write16(FIO1_MASKA_D,val)
  301. #define bfin_read_FIO1_MASKA_C() bfin_read16(FIO1_MASKA_C)
  302. #define bfin_write_FIO1_MASKA_C(val) bfin_write16(FIO1_MASKA_C,val)
  303. #define bfin_read_FIO1_MASKA_S() bfin_read16(FIO1_MASKA_S)
  304. #define bfin_write_FIO1_MASKA_S(val) bfin_write16(FIO1_MASKA_S,val)
  305. #define bfin_read_FIO1_MASKA_T() bfin_read16(FIO1_MASKA_T)
  306. #define bfin_write_FIO1_MASKA_T(val) bfin_write16(FIO1_MASKA_T,val)
  307. #define bfin_read_FIO1_MASKB_D() bfin_read16(FIO1_MASKB_D)
  308. #define bfin_write_FIO1_MASKB_D(val) bfin_write16(FIO1_MASKB_D,val)
  309. #define bfin_read_FIO1_MASKB_C() bfin_read16(FIO1_MASKB_C)
  310. #define bfin_write_FIO1_MASKB_C(val) bfin_write16(FIO1_MASKB_C,val)
  311. #define bfin_read_FIO1_MASKB_S() bfin_read16(FIO1_MASKB_S)
  312. #define bfin_write_FIO1_MASKB_S(val) bfin_write16(FIO1_MASKB_S,val)
  313. #define bfin_read_FIO1_MASKB_T() bfin_read16(FIO1_MASKB_T)
  314. #define bfin_write_FIO1_MASKB_T(val) bfin_write16(FIO1_MASKB_T,val)
  315. #define bfin_read_FIO1_DIR() bfin_read16(FIO1_DIR)
  316. #define bfin_write_FIO1_DIR(val) bfin_write16(FIO1_DIR,val)
  317. #define bfin_read_FIO1_POLAR() bfin_read16(FIO1_POLAR)
  318. #define bfin_write_FIO1_POLAR(val) bfin_write16(FIO1_POLAR,val)
  319. #define bfin_read_FIO1_EDGE() bfin_read16(FIO1_EDGE)
  320. #define bfin_write_FIO1_EDGE(val) bfin_write16(FIO1_EDGE,val)
  321. #define bfin_read_FIO1_BOTH() bfin_read16(FIO1_BOTH)
  322. #define bfin_write_FIO1_BOTH(val) bfin_write16(FIO1_BOTH,val)
  323. #define bfin_read_FIO1_INEN() bfin_read16(FIO1_INEN)
  324. #define bfin_write_FIO1_INEN(val) bfin_write16(FIO1_INEN,val)
  325. /* Programmable Flag registers (0xFFC0 1700-0xFFC0 17FF) */
  326. #define bfin_read_FIO2_FLAG_D() bfin_read16(FIO2_FLAG_D)
  327. #define bfin_write_FIO2_FLAG_D(val) bfin_write16(FIO2_FLAG_D,val)
  328. #define bfin_read_FIO2_FLAG_C() bfin_read16(FIO2_FLAG_C)
  329. #define bfin_write_FIO2_FLAG_C(val) bfin_write16(FIO2_FLAG_C,val)
  330. #define bfin_read_FIO2_FLAG_S() bfin_read16(FIO2_FLAG_S)
  331. #define bfin_write_FIO2_FLAG_S(val) bfin_write16(FIO2_FLAG_S,val)
  332. #define bfin_read_FIO2_FLAG_T() bfin_read16(FIO2_FLAG_T)
  333. #define bfin_write_FIO2_FLAG_T(val) bfin_write16(FIO2_FLAG_T,val)
  334. #define bfin_read_FIO2_MASKA_D() bfin_read16(FIO2_MASKA_D)
  335. #define bfin_write_FIO2_MASKA_D(val) bfin_write16(FIO2_MASKA_D,val)
  336. #define bfin_read_FIO2_MASKA_C() bfin_read16(FIO2_MASKA_C)
  337. #define bfin_write_FIO2_MASKA_C(val) bfin_write16(FIO2_MASKA_C,val)
  338. #define bfin_read_FIO2_MASKA_S() bfin_read16(FIO2_MASKA_S)
  339. #define bfin_write_FIO2_MASKA_S(val) bfin_write16(FIO2_MASKA_S,val)
  340. #define bfin_read_FIO2_MASKA_T() bfin_read16(FIO2_MASKA_T)
  341. #define bfin_write_FIO2_MASKA_T(val) bfin_write16(FIO2_MASKA_T,val)
  342. #define bfin_read_FIO2_MASKB_D() bfin_read16(FIO2_MASKB_D)
  343. #define bfin_write_FIO2_MASKB_D(val) bfin_write16(FIO2_MASKB_D,val)
  344. #define bfin_read_FIO2_MASKB_C() bfin_read16(FIO2_MASKB_C)
  345. #define bfin_write_FIO2_MASKB_C(val) bfin_write16(FIO2_MASKB_C,val)
  346. #define bfin_read_FIO2_MASKB_S() bfin_read16(FIO2_MASKB_S)
  347. #define bfin_write_FIO2_MASKB_S(val) bfin_write16(FIO2_MASKB_S,val)
  348. #define bfin_read_FIO2_MASKB_T() bfin_read16(FIO2_MASKB_T)
  349. #define bfin_write_FIO2_MASKB_T(val) bfin_write16(FIO2_MASKB_T,val)
  350. #define bfin_read_FIO2_DIR() bfin_read16(FIO2_DIR)
  351. #define bfin_write_FIO2_DIR(val) bfin_write16(FIO2_DIR,val)
  352. #define bfin_read_FIO2_POLAR() bfin_read16(FIO2_POLAR)
  353. #define bfin_write_FIO2_POLAR(val) bfin_write16(FIO2_POLAR,val)
  354. #define bfin_read_FIO2_EDGE() bfin_read16(FIO2_EDGE)
  355. #define bfin_write_FIO2_EDGE(val) bfin_write16(FIO2_EDGE,val)
  356. #define bfin_read_FIO2_BOTH() bfin_read16(FIO2_BOTH)
  357. #define bfin_write_FIO2_BOTH(val) bfin_write16(FIO2_BOTH,val)
  358. #define bfin_read_FIO2_INEN() bfin_read16(FIO2_INEN)
  359. #define bfin_write_FIO2_INEN(val) bfin_write16(FIO2_INEN,val)
  360. /* SPORT0 Controller (0xFFC00800 - 0xFFC008FF) */
  361. #define bfin_read_SPORT0_TCR1() bfin_read16(SPORT0_TCR1)
  362. #define bfin_write_SPORT0_TCR1(val) bfin_write16(SPORT0_TCR1,val)
  363. #define bfin_read_SPORT0_TCR2() bfin_read16(SPORT0_TCR2)
  364. #define bfin_write_SPORT0_TCR2(val) bfin_write16(SPORT0_TCR2,val)
  365. #define bfin_read_SPORT0_TCLKDIV() bfin_read16(SPORT0_TCLKDIV)
  366. #define bfin_write_SPORT0_TCLKDIV(val) bfin_write16(SPORT0_TCLKDIV,val)
  367. #define bfin_read_SPORT0_TFSDIV() bfin_read16(SPORT0_TFSDIV)
  368. #define bfin_write_SPORT0_TFSDIV(val) bfin_write16(SPORT0_TFSDIV,val)
  369. #define bfin_read_SPORT0_TX() bfin_read32(SPORT0_TX)
  370. #define bfin_write_SPORT0_TX(val) bfin_write32(SPORT0_TX,val)
  371. #define bfin_read_SPORT0_RX() bfin_read32(SPORT0_RX)
  372. #define bfin_write_SPORT0_RX(val) bfin_write32(SPORT0_RX,val)
  373. #define bfin_read_SPORT0_TX32() bfin_read32(SPORT0_TX)
  374. #define bfin_write_SPORT0_TX32(val) bfin_write32(SPORT0_TX,val)
  375. #define bfin_read_SPORT0_RX32() bfin_read32(SPORT0_RX)
  376. #define bfin_write_SPORT0_RX32(val) bfin_write32(SPORT0_RX,val)
  377. #define bfin_read_SPORT0_TX16() bfin_read16(SPORT0_TX)
  378. #define bfin_write_SPORT0_TX16(val) bfin_write16(SPORT0_TX,val)
  379. #define bfin_read_SPORT0_RX16() bfin_read16(SPORT0_RX)
  380. #define bfin_write_SPORT0_RX16(val) bfin_write16(SPORT0_RX,val)
  381. #define bfin_read_SPORT0_RCR1() bfin_read16(SPORT0_RCR1)
  382. #define bfin_write_SPORT0_RCR1(val) bfin_write16(SPORT0_RCR1,val)
  383. #define bfin_read_SPORT0_RCR2() bfin_read16(SPORT0_RCR2)
  384. #define bfin_write_SPORT0_RCR2(val) bfin_write16(SPORT0_RCR2,val)
  385. #define bfin_read_SPORT0_RCLKDIV() bfin_read16(SPORT0_RCLKDIV)
  386. #define bfin_write_SPORT0_RCLKDIV(val) bfin_write16(SPORT0_RCLKDIV,val)
  387. #define bfin_read_SPORT0_RFSDIV() bfin_read16(SPORT0_RFSDIV)
  388. #define bfin_write_SPORT0_RFSDIV(val) bfin_write16(SPORT0_RFSDIV,val)
  389. #define bfin_read_SPORT0_STAT() bfin_read16(SPORT0_STAT)
  390. #define bfin_write_SPORT0_STAT(val) bfin_write16(SPORT0_STAT,val)
  391. #define bfin_read_SPORT0_CHNL() bfin_read16(SPORT0_CHNL)
  392. #define bfin_write_SPORT0_CHNL(val) bfin_write16(SPORT0_CHNL,val)
  393. #define bfin_read_SPORT0_MCMC1() bfin_read16(SPORT0_MCMC1)
  394. #define bfin_write_SPORT0_MCMC1(val) bfin_write16(SPORT0_MCMC1,val)
  395. #define bfin_read_SPORT0_MCMC2() bfin_read16(SPORT0_MCMC2)
  396. #define bfin_write_SPORT0_MCMC2(val) bfin_write16(SPORT0_MCMC2,val)
  397. #define bfin_read_SPORT0_MTCS0() bfin_read32(SPORT0_MTCS0)
  398. #define bfin_write_SPORT0_MTCS0(val) bfin_write32(SPORT0_MTCS0,val)
  399. #define bfin_read_SPORT0_MTCS1() bfin_read32(SPORT0_MTCS1)
  400. #define bfin_write_SPORT0_MTCS1(val) bfin_write32(SPORT0_MTCS1,val)
  401. #define bfin_read_SPORT0_MTCS2() bfin_read32(SPORT0_MTCS2)
  402. #define bfin_write_SPORT0_MTCS2(val) bfin_write32(SPORT0_MTCS2,val)
  403. #define bfin_read_SPORT0_MTCS3() bfin_read32(SPORT0_MTCS3)
  404. #define bfin_write_SPORT0_MTCS3(val) bfin_write32(SPORT0_MTCS3,val)
  405. #define bfin_read_SPORT0_MRCS0() bfin_read32(SPORT0_MRCS0)
  406. #define bfin_write_SPORT0_MRCS0(val) bfin_write32(SPORT0_MRCS0,val)
  407. #define bfin_read_SPORT0_MRCS1() bfin_read32(SPORT0_MRCS1)
  408. #define bfin_write_SPORT0_MRCS1(val) bfin_write32(SPORT0_MRCS1,val)
  409. #define bfin_read_SPORT0_MRCS2() bfin_read32(SPORT0_MRCS2)
  410. #define bfin_write_SPORT0_MRCS2(val) bfin_write32(SPORT0_MRCS2,val)
  411. #define bfin_read_SPORT0_MRCS3() bfin_read32(SPORT0_MRCS3)
  412. #define bfin_write_SPORT0_MRCS3(val) bfin_write32(SPORT0_MRCS3,val)
  413. /* SPORT1 Controller (0xFFC00900 - 0xFFC009FF) */
  414. #define bfin_read_SPORT1_TCR1() bfin_read16(SPORT1_TCR1)
  415. #define bfin_write_SPORT1_TCR1(val) bfin_write16(SPORT1_TCR1,val)
  416. #define bfin_read_SPORT1_TCR2() bfin_read16(SPORT1_TCR2)
  417. #define bfin_write_SPORT1_TCR2(val) bfin_write16(SPORT1_TCR2,val)
  418. #define bfin_read_SPORT1_TCLKDIV() bfin_read16(SPORT1_TCLKDIV)
  419. #define bfin_write_SPORT1_TCLKDIV(val) bfin_write16(SPORT1_TCLKDIV,val)
  420. #define bfin_read_SPORT1_TFSDIV() bfin_read16(SPORT1_TFSDIV)
  421. #define bfin_write_SPORT1_TFSDIV(val) bfin_write16(SPORT1_TFSDIV,val)
  422. #define bfin_read_SPORT1_TX() bfin_read32(SPORT1_TX)
  423. #define bfin_write_SPORT1_TX(val) bfin_write32(SPORT1_TX,val)
  424. #define bfin_read_SPORT1_RX() bfin_read32(SPORT1_RX)
  425. #define bfin_write_SPORT1_RX(val) bfin_write32(SPORT1_RX,val)
  426. #define bfin_read_SPORT1_TX32() bfin_read32(SPORT1_TX)
  427. #define bfin_write_SPORT1_TX32(val) bfin_write32(SPORT1_TX,val)
  428. #define bfin_read_SPORT1_RX32() bfin_read32(SPORT1_RX)
  429. #define bfin_write_SPORT1_RX32(val) bfin_write32(SPORT1_RX,val)
  430. #define bfin_read_SPORT1_TX16() bfin_read16(SPORT1_TX)
  431. #define bfin_write_SPORT1_TX16(val) bfin_write16(SPORT1_TX,val)
  432. #define bfin_read_SPORT1_RX16() bfin_read16(SPORT1_RX)
  433. #define bfin_write_SPORT1_RX16(val) bfin_write16(SPORT1_RX,val)
  434. #define bfin_read_SPORT1_RCR1() bfin_read16(SPORT1_RCR1)
  435. #define bfin_write_SPORT1_RCR1(val) bfin_write16(SPORT1_RCR1,val)
  436. #define bfin_read_SPORT1_RCR2() bfin_read16(SPORT1_RCR2)
  437. #define bfin_write_SPORT1_RCR2(val) bfin_write16(SPORT1_RCR2,val)
  438. #define bfin_read_SPORT1_RCLKDIV() bfin_read16(SPORT1_RCLKDIV)
  439. #define bfin_write_SPORT1_RCLKDIV(val) bfin_write16(SPORT1_RCLKDIV,val)
  440. #define bfin_read_SPORT1_RFSDIV() bfin_read16(SPORT1_RFSDIV)
  441. #define bfin_write_SPORT1_RFSDIV(val) bfin_write16(SPORT1_RFSDIV,val)
  442. #define bfin_read_SPORT1_STAT() bfin_read16(SPORT1_STAT)
  443. #define bfin_write_SPORT1_STAT(val) bfin_write16(SPORT1_STAT,val)
  444. #define bfin_read_SPORT1_CHNL() bfin_read16(SPORT1_CHNL)
  445. #define bfin_write_SPORT1_CHNL(val) bfin_write16(SPORT1_CHNL,val)
  446. #define bfin_read_SPORT1_MCMC1() bfin_read16(SPORT1_MCMC1)
  447. #define bfin_write_SPORT1_MCMC1(val) bfin_write16(SPORT1_MCMC1,val)
  448. #define bfin_read_SPORT1_MCMC2() bfin_read16(SPORT1_MCMC2)
  449. #define bfin_write_SPORT1_MCMC2(val) bfin_write16(SPORT1_MCMC2,val)
  450. #define bfin_read_SPORT1_MTCS0() bfin_read32(SPORT1_MTCS0)
  451. #define bfin_write_SPORT1_MTCS0(val) bfin_write32(SPORT1_MTCS0,val)
  452. #define bfin_read_SPORT1_MTCS1() bfin_read32(SPORT1_MTCS1)
  453. #define bfin_write_SPORT1_MTCS1(val) bfin_write32(SPORT1_MTCS1,val)
  454. #define bfin_read_SPORT1_MTCS2() bfin_read32(SPORT1_MTCS2)
  455. #define bfin_write_SPORT1_MTCS2(val) bfin_write32(SPORT1_MTCS2,val)
  456. #define bfin_read_SPORT1_MTCS3() bfin_read32(SPORT1_MTCS3)
  457. #define bfin_write_SPORT1_MTCS3(val) bfin_write32(SPORT1_MTCS3,val)
  458. #define bfin_read_SPORT1_MRCS0() bfin_read32(SPORT1_MRCS0)
  459. #define bfin_write_SPORT1_MRCS0(val) bfin_write32(SPORT1_MRCS0,val)
  460. #define bfin_read_SPORT1_MRCS1() bfin_read32(SPORT1_MRCS1)
  461. #define bfin_write_SPORT1_MRCS1(val) bfin_write32(SPORT1_MRCS1,val)
  462. #define bfin_read_SPORT1_MRCS2() bfin_read32(SPORT1_MRCS2)
  463. #define bfin_write_SPORT1_MRCS2(val) bfin_write32(SPORT1_MRCS2,val)
  464. #define bfin_read_SPORT1_MRCS3() bfin_read32(SPORT1_MRCS3)
  465. #define bfin_write_SPORT1_MRCS3(val) bfin_write32(SPORT1_MRCS3,val)
  466. /* Asynchronous Memory Controller - External Bus Interface Unit */
  467. #define bfin_read_EBIU_AMGCTL() bfin_read16(EBIU_AMGCTL)
  468. #define bfin_write_EBIU_AMGCTL(val) bfin_write16(EBIU_AMGCTL,val)
  469. #define bfin_read_EBIU_AMBCTL0() bfin_read32(EBIU_AMBCTL0)
  470. #define bfin_write_EBIU_AMBCTL0(val) bfin_write32(EBIU_AMBCTL0,val)
  471. #define bfin_read_EBIU_AMBCTL1() bfin_read32(EBIU_AMBCTL1)
  472. #define bfin_write_EBIU_AMBCTL1(val) bfin_write32(EBIU_AMBCTL1,val)
  473. /* SDRAM Controller External Bus Interface Unit (0xFFC00A00 - 0xFFC00AFF) */
  474. #define bfin_read_EBIU_SDGCTL() bfin_read32(EBIU_SDGCTL)
  475. #define bfin_write_EBIU_SDGCTL(val) bfin_write32(EBIU_SDGCTL,val)
  476. #define bfin_read_EBIU_SDBCTL() bfin_read32(EBIU_SDBCTL)
  477. #define bfin_write_EBIU_SDBCTL(val) bfin_write32(EBIU_SDBCTL,val)
  478. #define bfin_read_EBIU_SDRRC() bfin_read16(EBIU_SDRRC)
  479. #define bfin_write_EBIU_SDRRC(val) bfin_write16(EBIU_SDRRC,val)
  480. #define bfin_read_EBIU_SDSTAT() bfin_read16(EBIU_SDSTAT)
  481. #define bfin_write_EBIU_SDSTAT(val) bfin_write16(EBIU_SDSTAT,val)
  482. /* Parallel Peripheral Interface (PPI) 0 registers (0xFFC0 1000-0xFFC0 10FF) */
  483. #define bfin_read_PPI0_CONTROL() bfin_read16(PPI0_CONTROL)
  484. #define bfin_write_PPI0_CONTROL(val) bfin_write16(PPI0_CONTROL,val)
  485. #define bfin_read_PPI0_STATUS() bfin_read16(PPI0_STATUS)
  486. #define bfin_write_PPI0_STATUS(val) bfin_write16(PPI0_STATUS,val)
  487. #define bfin_clear_PPI0_STATUS() bfin_read_PPI0_STATUS()
  488. #define bfin_read_PPI0_COUNT() bfin_read16(PPI0_COUNT)
  489. #define bfin_write_PPI0_COUNT(val) bfin_write16(PPI0_COUNT,val)
  490. #define bfin_read_PPI0_DELAY() bfin_read16(PPI0_DELAY)
  491. #define bfin_write_PPI0_DELAY(val) bfin_write16(PPI0_DELAY,val)
  492. #define bfin_read_PPI0_FRAME() bfin_read16(PPI0_FRAME)
  493. #define bfin_write_PPI0_FRAME(val) bfin_write16(PPI0_FRAME,val)
  494. /* Parallel Peripheral Interface (PPI) 1 registers (0xFFC0 1300-0xFFC0 13FF) */
  495. #define bfin_read_PPI1_CONTROL() bfin_read16(PPI1_CONTROL)
  496. #define bfin_write_PPI1_CONTROL(val) bfin_write16(PPI1_CONTROL,val)
  497. #define bfin_read_PPI1_STATUS() bfin_read16(PPI1_STATUS)
  498. #define bfin_write_PPI1_STATUS(val) bfin_write16(PPI1_STATUS,val)
  499. #define bfin_clear_PPI1_STATUS() bfin_read_PPI1_STATUS()
  500. #define bfin_read_PPI1_COUNT() bfin_read16(PPI1_COUNT)
  501. #define bfin_write_PPI1_COUNT(val) bfin_write16(PPI1_COUNT,val)
  502. #define bfin_read_PPI1_DELAY() bfin_read16(PPI1_DELAY)
  503. #define bfin_write_PPI1_DELAY(val) bfin_write16(PPI1_DELAY,val)
  504. #define bfin_read_PPI1_FRAME() bfin_read16(PPI1_FRAME)
  505. #define bfin_write_PPI1_FRAME(val) bfin_write16(PPI1_FRAME,val)
  506. /*DMA traffic control registers */
  507. #define bfin_read_DMAC0_TC_PER() bfin_read16(DMAC0_TC_PER)
  508. #define bfin_write_DMAC0_TC_PER(val) bfin_write16(DMAC0_TC_PER,val)
  509. #define bfin_read_DMAC0_TC_CNT() bfin_read16(DMAC0_TC_CNT)
  510. #define bfin_write_DMAC0_TC_CNT(val) bfin_write16(DMAC0_TC_CNT,val)
  511. #define bfin_read_DMAC1_TC_PER() bfin_read16(DMAC1_TC_PER)
  512. #define bfin_write_DMAC1_TC_PER(val) bfin_write16(DMAC1_TC_PER,val)
  513. #define bfin_read_DMAC1_TC_CNT() bfin_read16(DMAC1_TC_CNT)
  514. #define bfin_write_DMAC1_TC_CNT(val) bfin_write16(DMAC1_TC_CNT,val)
  515. /* DMA1 Controller registers (0xFFC0 1C00-0xFFC0 1FFF) */
  516. #define bfin_read_DMA1_0_CONFIG() bfin_read16(DMA1_0_CONFIG)
  517. #define bfin_write_DMA1_0_CONFIG(val) bfin_write16(DMA1_0_CONFIG,val)
  518. #define bfin_read_DMA1_0_NEXT_DESC_PTR() bfin_read32(DMA1_0_NEXT_DESC_PTR)
  519. #define bfin_write_DMA1_0_NEXT_DESC_PTR(val) bfin_write32(DMA1_0_NEXT_DESC_PTR,val)
  520. #define bfin_read_DMA1_0_START_ADDR() bfin_read32(DMA1_0_START_ADDR)
  521. #define bfin_write_DMA1_0_START_ADDR(val) bfin_write32(DMA1_0_START_ADDR,val)
  522. #define bfin_read_DMA1_0_X_COUNT() bfin_read16(DMA1_0_X_COUNT)
  523. #define bfin_write_DMA1_0_X_COUNT(val) bfin_write16(DMA1_0_X_COUNT,val)
  524. #define bfin_read_DMA1_0_Y_COUNT() bfin_read16(DMA1_0_Y_COUNT)
  525. #define bfin_write_DMA1_0_Y_COUNT(val) bfin_write16(DMA1_0_Y_COUNT,val)
  526. #define bfin_read_DMA1_0_X_MODIFY() bfin_read16(DMA1_0_X_MODIFY)
  527. #define bfin_write_DMA1_0_X_MODIFY(val) bfin_write16(DMA1_0_X_MODIFY,val)
  528. #define bfin_read_DMA1_0_Y_MODIFY() bfin_read16(DMA1_0_Y_MODIFY)
  529. #define bfin_write_DMA1_0_Y_MODIFY(val) bfin_write16(DMA1_0_Y_MODIFY,val)
  530. #define bfin_read_DMA1_0_CURR_DESC_PTR() bfin_read32(DMA1_0_CURR_DESC_PTR)
  531. #define bfin_write_DMA1_0_CURR_DESC_PTR(val) bfin_write32(DMA1_0_CURR_DESC_PTR,val)
  532. #define bfin_read_DMA1_0_CURR_ADDR() bfin_read32(DMA1_0_CURR_ADDR)
  533. #define bfin_write_DMA1_0_CURR_ADDR(val) bfin_write32(DMA1_0_CURR_ADDR,val)
  534. #define bfin_read_DMA1_0_CURR_X_COUNT() bfin_read16(DMA1_0_CURR_X_COUNT)
  535. #define bfin_write_DMA1_0_CURR_X_COUNT(val) bfin_write16(DMA1_0_CURR_X_COUNT,val)
  536. #define bfin_read_DMA1_0_CURR_Y_COUNT() bfin_read16(DMA1_0_CURR_Y_COUNT)
  537. #define bfin_write_DMA1_0_CURR_Y_COUNT(val) bfin_write16(DMA1_0_CURR_Y_COUNT,val)
  538. #define bfin_read_DMA1_0_IRQ_STATUS() bfin_read16(DMA1_0_IRQ_STATUS)
  539. #define bfin_write_DMA1_0_IRQ_STATUS(val) bfin_write16(DMA1_0_IRQ_STATUS,val)
  540. #define bfin_read_DMA1_0_PERIPHERAL_MAP() bfin_read16(DMA1_0_PERIPHERAL_MAP)
  541. #define bfin_write_DMA1_0_PERIPHERAL_MAP(val) bfin_write16(DMA1_0_PERIPHERAL_MAP,val)
  542. #define bfin_read_DMA1_1_CONFIG() bfin_read16(DMA1_1_CONFIG)
  543. #define bfin_write_DMA1_1_CONFIG(val) bfin_write16(DMA1_1_CONFIG,val)
  544. #define bfin_read_DMA1_1_NEXT_DESC_PTR() bfin_read32(DMA1_1_NEXT_DESC_PTR)
  545. #define bfin_write_DMA1_1_NEXT_DESC_PTR(val) bfin_write32(DMA1_1_NEXT_DESC_PTR,val)
  546. #define bfin_read_DMA1_1_START_ADDR() bfin_read32(DMA1_1_START_ADDR)
  547. #define bfin_write_DMA1_1_START_ADDR(val) bfin_write32(DMA1_1_START_ADDR,val)
  548. #define bfin_read_DMA1_1_X_COUNT() bfin_read16(DMA1_1_X_COUNT)
  549. #define bfin_write_DMA1_1_X_COUNT(val) bfin_write16(DMA1_1_X_COUNT,val)
  550. #define bfin_read_DMA1_1_Y_COUNT() bfin_read16(DMA1_1_Y_COUNT)
  551. #define bfin_write_DMA1_1_Y_COUNT(val) bfin_write16(DMA1_1_Y_COUNT,val)
  552. #define bfin_read_DMA1_1_X_MODIFY() bfin_read16(DMA1_1_X_MODIFY)
  553. #define bfin_write_DMA1_1_X_MODIFY(val) bfin_write16(DMA1_1_X_MODIFY,val)
  554. #define bfin_read_DMA1_1_Y_MODIFY() bfin_read16(DMA1_1_Y_MODIFY)
  555. #define bfin_write_DMA1_1_Y_MODIFY(val) bfin_write16(DMA1_1_Y_MODIFY,val)
  556. #define bfin_read_DMA1_1_CURR_DESC_PTR() bfin_read32(DMA1_1_CURR_DESC_PTR)
  557. #define bfin_write_DMA1_1_CURR_DESC_PTR(val) bfin_write32(DMA1_1_CURR_DESC_PTR,val)
  558. #define bfin_read_DMA1_1_CURR_ADDR() bfin_read32(DMA1_1_CURR_ADDR)
  559. #define bfin_write_DMA1_1_CURR_ADDR(val) bfin_write32(DMA1_1_CURR_ADDR,val)
  560. #define bfin_read_DMA1_1_CURR_X_COUNT() bfin_read16(DMA1_1_CURR_X_COUNT)
  561. #define bfin_write_DMA1_1_CURR_X_COUNT(val) bfin_write16(DMA1_1_CURR_X_COUNT,val)
  562. #define bfin_read_DMA1_1_CURR_Y_COUNT() bfin_read16(DMA1_1_CURR_Y_COUNT)
  563. #define bfin_write_DMA1_1_CURR_Y_COUNT(val) bfin_write16(DMA1_1_CURR_Y_COUNT,val)
  564. #define bfin_read_DMA1_1_IRQ_STATUS() bfin_read16(DMA1_1_IRQ_STATUS)
  565. #define bfin_write_DMA1_1_IRQ_STATUS(val) bfin_write16(DMA1_1_IRQ_STATUS,val)
  566. #define bfin_read_DMA1_1_PERIPHERAL_MAP() bfin_read16(DMA1_1_PERIPHERAL_MAP)
  567. #define bfin_write_DMA1_1_PERIPHERAL_MAP(val) bfin_write16(DMA1_1_PERIPHERAL_MAP,val)
  568. #define bfin_read_DMA1_2_CONFIG() bfin_read16(DMA1_2_CONFIG)
  569. #define bfin_write_DMA1_2_CONFIG(val) bfin_write16(DMA1_2_CONFIG,val)
  570. #define bfin_read_DMA1_2_NEXT_DESC_PTR() bfin_read32(DMA1_2_NEXT_DESC_PTR)
  571. #define bfin_write_DMA1_2_NEXT_DESC_PTR(val) bfin_write32(DMA1_2_NEXT_DESC_PTR,val)
  572. #define bfin_read_DMA1_2_START_ADDR() bfin_read32(DMA1_2_START_ADDR)
  573. #define bfin_write_DMA1_2_START_ADDR(val) bfin_write32(DMA1_2_START_ADDR,val)
  574. #define bfin_read_DMA1_2_X_COUNT() bfin_read16(DMA1_2_X_COUNT)
  575. #define bfin_write_DMA1_2_X_COUNT(val) bfin_write16(DMA1_2_X_COUNT,val)
  576. #define bfin_read_DMA1_2_Y_COUNT() bfin_read16(DMA1_2_Y_COUNT)
  577. #define bfin_write_DMA1_2_Y_COUNT(val) bfin_write16(DMA1_2_Y_COUNT,val)
  578. #define bfin_read_DMA1_2_X_MODIFY() bfin_read16(DMA1_2_X_MODIFY)
  579. #define bfin_write_DMA1_2_X_MODIFY(val) bfin_write16(DMA1_2_X_MODIFY,val)
  580. #define bfin_read_DMA1_2_Y_MODIFY() bfin_read16(DMA1_2_Y_MODIFY)
  581. #define bfin_write_DMA1_2_Y_MODIFY(val) bfin_write16(DMA1_2_Y_MODIFY,val)
  582. #define bfin_read_DMA1_2_CURR_DESC_PTR() bfin_read32(DMA1_2_CURR_DESC_PTR)
  583. #define bfin_write_DMA1_2_CURR_DESC_PTR(val) bfin_write32(DMA1_2_CURR_DESC_PTR,val)
  584. #define bfin_read_DMA1_2_CURR_ADDR() bfin_read32(DMA1_2_CURR_ADDR)
  585. #define bfin_write_DMA1_2_CURR_ADDR(val) bfin_write32(DMA1_2_CURR_ADDR,val)
  586. #define bfin_read_DMA1_2_CURR_X_COUNT() bfin_read16(DMA1_2_CURR_X_COUNT)
  587. #define bfin_write_DMA1_2_CURR_X_COUNT(val) bfin_write16(DMA1_2_CURR_X_COUNT,val)
  588. #define bfin_read_DMA1_2_CURR_Y_COUNT() bfin_read16(DMA1_2_CURR_Y_COUNT)
  589. #define bfin_write_DMA1_2_CURR_Y_COUNT(val) bfin_write16(DMA1_2_CURR_Y_COUNT,val)
  590. #define bfin_read_DMA1_2_IRQ_STATUS() bfin_read16(DMA1_2_IRQ_STATUS)
  591. #define bfin_write_DMA1_2_IRQ_STATUS(val) bfin_write16(DMA1_2_IRQ_STATUS,val)
  592. #define bfin_read_DMA1_2_PERIPHERAL_MAP() bfin_read16(DMA1_2_PERIPHERAL_MAP)
  593. #define bfin_write_DMA1_2_PERIPHERAL_MAP(val) bfin_write16(DMA1_2_PERIPHERAL_MAP,val)
  594. #define bfin_read_DMA1_3_CONFIG() bfin_read16(DMA1_3_CONFIG)
  595. #define bfin_write_DMA1_3_CONFIG(val) bfin_write16(DMA1_3_CONFIG,val)
  596. #define bfin_read_DMA1_3_NEXT_DESC_PTR() bfin_read32(DMA1_3_NEXT_DESC_PTR)
  597. #define bfin_write_DMA1_3_NEXT_DESC_PTR(val) bfin_write32(DMA1_3_NEXT_DESC_PTR,val)
  598. #define bfin_read_DMA1_3_START_ADDR() bfin_read32(DMA1_3_START_ADDR)
  599. #define bfin_write_DMA1_3_START_ADDR(val) bfin_write32(DMA1_3_START_ADDR,val)
  600. #define bfin_read_DMA1_3_X_COUNT() bfin_read16(DMA1_3_X_COUNT)
  601. #define bfin_write_DMA1_3_X_COUNT(val) bfin_write16(DMA1_3_X_COUNT,val)
  602. #define bfin_read_DMA1_3_Y_COUNT() bfin_read16(DMA1_3_Y_COUNT)
  603. #define bfin_write_DMA1_3_Y_COUNT(val) bfin_write16(DMA1_3_Y_COUNT,val)
  604. #define bfin_read_DMA1_3_X_MODIFY() bfin_read16(DMA1_3_X_MODIFY)
  605. #define bfin_write_DMA1_3_X_MODIFY(val) bfin_write16(DMA1_3_X_MODIFY,val)
  606. #define bfin_read_DMA1_3_Y_MODIFY() bfin_read16(DMA1_3_Y_MODIFY)
  607. #define bfin_write_DMA1_3_Y_MODIFY(val) bfin_write16(DMA1_3_Y_MODIFY,val)
  608. #define bfin_read_DMA1_3_CURR_DESC_PTR() bfin_read32(DMA1_3_CURR_DESC_PTR)
  609. #define bfin_write_DMA1_3_CURR_DESC_PTR(val) bfin_write32(DMA1_3_CURR_DESC_PTR,val)
  610. #define bfin_read_DMA1_3_CURR_ADDR() bfin_read32(DMA1_3_CURR_ADDR)
  611. #define bfin_write_DMA1_3_CURR_ADDR(val) bfin_write32(DMA1_3_CURR_ADDR,val)
  612. #define bfin_read_DMA1_3_CURR_X_COUNT() bfin_read16(DMA1_3_CURR_X_COUNT)
  613. #define bfin_write_DMA1_3_CURR_X_COUNT(val) bfin_write16(DMA1_3_CURR_X_COUNT,val)
  614. #define bfin_read_DMA1_3_CURR_Y_COUNT() bfin_read16(DMA1_3_CURR_Y_COUNT)
  615. #define bfin_write_DMA1_3_CURR_Y_COUNT(val) bfin_write16(DMA1_3_CURR_Y_COUNT,val)
  616. #define bfin_read_DMA1_3_IRQ_STATUS() bfin_read16(DMA1_3_IRQ_STATUS)
  617. #define bfin_write_DMA1_3_IRQ_STATUS(val) bfin_write16(DMA1_3_IRQ_STATUS,val)
  618. #define bfin_read_DMA1_3_PERIPHERAL_MAP() bfin_read16(DMA1_3_PERIPHERAL_MAP)
  619. #define bfin_write_DMA1_3_PERIPHERAL_MAP(val) bfin_write16(DMA1_3_PERIPHERAL_MAP,val)
  620. #define bfin_read_DMA1_4_CONFIG() bfin_read16(DMA1_4_CONFIG)
  621. #define bfin_write_DMA1_4_CONFIG(val) bfin_write16(DMA1_4_CONFIG,val)
  622. #define bfin_read_DMA1_4_NEXT_DESC_PTR() bfin_read32(DMA1_4_NEXT_DESC_PTR)
  623. #define bfin_write_DMA1_4_NEXT_DESC_PTR(val) bfin_write32(DMA1_4_NEXT_DESC_PTR,val)
  624. #define bfin_read_DMA1_4_START_ADDR() bfin_read32(DMA1_4_START_ADDR)
  625. #define bfin_write_DMA1_4_START_ADDR(val) bfin_write32(DMA1_4_START_ADDR,val)
  626. #define bfin_read_DMA1_4_X_COUNT() bfin_read16(DMA1_4_X_COUNT)
  627. #define bfin_write_DMA1_4_X_COUNT(val) bfin_write16(DMA1_4_X_COUNT,val)
  628. #define bfin_read_DMA1_4_Y_COUNT() bfin_read16(DMA1_4_Y_COUNT)
  629. #define bfin_write_DMA1_4_Y_COUNT(val) bfin_write16(DMA1_4_Y_COUNT,val)
  630. #define bfin_read_DMA1_4_X_MODIFY() bfin_read16(DMA1_4_X_MODIFY)
  631. #define bfin_write_DMA1_4_X_MODIFY(val) bfin_write16(DMA1_4_X_MODIFY,val)
  632. #define bfin_read_DMA1_4_Y_MODIFY() bfin_read16(DMA1_4_Y_MODIFY)
  633. #define bfin_write_DMA1_4_Y_MODIFY(val) bfin_write16(DMA1_4_Y_MODIFY,val)
  634. #define bfin_read_DMA1_4_CURR_DESC_PTR() bfin_read32(DMA1_4_CURR_DESC_PTR)
  635. #define bfin_write_DMA1_4_CURR_DESC_PTR(val) bfin_write32(DMA1_4_CURR_DESC_PTR,val)
  636. #define bfin_read_DMA1_4_CURR_ADDR() bfin_read32(DMA1_4_CURR_ADDR)
  637. #define bfin_write_DMA1_4_CURR_ADDR(val) bfin_write32(DMA1_4_CURR_ADDR,val)
  638. #define bfin_read_DMA1_4_CURR_X_COUNT() bfin_read16(DMA1_4_CURR_X_COUNT)
  639. #define bfin_write_DMA1_4_CURR_X_COUNT(val) bfin_write16(DMA1_4_CURR_X_COUNT,val)
  640. #define bfin_read_DMA1_4_CURR_Y_COUNT() bfin_read16(DMA1_4_CURR_Y_COUNT)
  641. #define bfin_write_DMA1_4_CURR_Y_COUNT(val) bfin_write16(DMA1_4_CURR_Y_COUNT,val)
  642. #define bfin_read_DMA1_4_IRQ_STATUS() bfin_read16(DMA1_4_IRQ_STATUS)
  643. #define bfin_write_DMA1_4_IRQ_STATUS(val) bfin_write16(DMA1_4_IRQ_STATUS,val)
  644. #define bfin_read_DMA1_4_PERIPHERAL_MAP() bfin_read16(DMA1_4_PERIPHERAL_MAP)
  645. #define bfin_write_DMA1_4_PERIPHERAL_MAP(val) bfin_write16(DMA1_4_PERIPHERAL_MAP,val)
  646. #define bfin_read_DMA1_5_CONFIG() bfin_read16(DMA1_5_CONFIG)
  647. #define bfin_write_DMA1_5_CONFIG(val) bfin_write16(DMA1_5_CONFIG,val)
  648. #define bfin_read_DMA1_5_NEXT_DESC_PTR() bfin_read32(DMA1_5_NEXT_DESC_PTR)
  649. #define bfin_write_DMA1_5_NEXT_DESC_PTR(val) bfin_write32(DMA1_5_NEXT_DESC_PTR,val)
  650. #define bfin_read_DMA1_5_START_ADDR() bfin_read32(DMA1_5_START_ADDR)
  651. #define bfin_write_DMA1_5_START_ADDR(val) bfin_write32(DMA1_5_START_ADDR,val)
  652. #define bfin_read_DMA1_5_X_COUNT() bfin_read16(DMA1_5_X_COUNT)
  653. #define bfin_write_DMA1_5_X_COUNT(val) bfin_write16(DMA1_5_X_COUNT,val)
  654. #define bfin_read_DMA1_5_Y_COUNT() bfin_read16(DMA1_5_Y_COUNT)
  655. #define bfin_write_DMA1_5_Y_COUNT(val) bfin_write16(DMA1_5_Y_COUNT,val)
  656. #define bfin_read_DMA1_5_X_MODIFY() bfin_read16(DMA1_5_X_MODIFY)
  657. #define bfin_write_DMA1_5_X_MODIFY(val) bfin_write16(DMA1_5_X_MODIFY,val)
  658. #define bfin_read_DMA1_5_Y_MODIFY() bfin_read16(DMA1_5_Y_MODIFY)
  659. #define bfin_write_DMA1_5_Y_MODIFY(val) bfin_write16(DMA1_5_Y_MODIFY,val)
  660. #define bfin_read_DMA1_5_CURR_DESC_PTR() bfin_read32(DMA1_5_CURR_DESC_PTR)
  661. #define bfin_write_DMA1_5_CURR_DESC_PTR(val) bfin_write32(DMA1_5_CURR_DESC_PTR,val)
  662. #define bfin_read_DMA1_5_CURR_ADDR() bfin_read32(DMA1_5_CURR_ADDR)
  663. #define bfin_write_DMA1_5_CURR_ADDR(val) bfin_write32(DMA1_5_CURR_ADDR,val)
  664. #define bfin_read_DMA1_5_CURR_X_COUNT() bfin_read16(DMA1_5_CURR_X_COUNT)
  665. #define bfin_write_DMA1_5_CURR_X_COUNT(val) bfin_write16(DMA1_5_CURR_X_COUNT,val)
  666. #define bfin_read_DMA1_5_CURR_Y_COUNT() bfin_read16(DMA1_5_CURR_Y_COUNT)
  667. #define bfin_write_DMA1_5_CURR_Y_COUNT(val) bfin_write16(DMA1_5_CURR_Y_COUNT,val)
  668. #define bfin_read_DMA1_5_IRQ_STATUS() bfin_read16(DMA1_5_IRQ_STATUS)
  669. #define bfin_write_DMA1_5_IRQ_STATUS(val) bfin_write16(DMA1_5_IRQ_STATUS,val)
  670. #define bfin_read_DMA1_5_PERIPHERAL_MAP() bfin_read16(DMA1_5_PERIPHERAL_MAP)
  671. #define bfin_write_DMA1_5_PERIPHERAL_MAP(val) bfin_write16(DMA1_5_PERIPHERAL_MAP,val)
  672. #define bfin_read_DMA1_6_CONFIG() bfin_read16(DMA1_6_CONFIG)
  673. #define bfin_write_DMA1_6_CONFIG(val) bfin_write16(DMA1_6_CONFIG,val)
  674. #define bfin_read_DMA1_6_NEXT_DESC_PTR() bfin_read32(DMA1_6_NEXT_DESC_PTR)
  675. #define bfin_write_DMA1_6_NEXT_DESC_PTR(val) bfin_write32(DMA1_6_NEXT_DESC_PTR,val)
  676. #define bfin_read_DMA1_6_START_ADDR() bfin_read32(DMA1_6_START_ADDR)
  677. #define bfin_write_DMA1_6_START_ADDR(val) bfin_write32(DMA1_6_START_ADDR,val)
  678. #define bfin_read_DMA1_6_X_COUNT() bfin_read16(DMA1_6_X_COUNT)
  679. #define bfin_write_DMA1_6_X_COUNT(val) bfin_write16(DMA1_6_X_COUNT,val)
  680. #define bfin_read_DMA1_6_Y_COUNT() bfin_read16(DMA1_6_Y_COUNT)
  681. #define bfin_write_DMA1_6_Y_COUNT(val) bfin_write16(DMA1_6_Y_COUNT,val)
  682. #define bfin_read_DMA1_6_X_MODIFY() bfin_read16(DMA1_6_X_MODIFY)
  683. #define bfin_write_DMA1_6_X_MODIFY(val) bfin_write16(DMA1_6_X_MODIFY,val)
  684. #define bfin_read_DMA1_6_Y_MODIFY() bfin_read16(DMA1_6_Y_MODIFY)
  685. #define bfin_write_DMA1_6_Y_MODIFY(val) bfin_write16(DMA1_6_Y_MODIFY,val)
  686. #define bfin_read_DMA1_6_CURR_DESC_PTR() bfin_read32(DMA1_6_CURR_DESC_PTR)
  687. #define bfin_write_DMA1_6_CURR_DESC_PTR(val) bfin_write32(DMA1_6_CURR_DESC_PTR,val)
  688. #define bfin_read_DMA1_6_CURR_ADDR() bfin_read32(DMA1_6_CURR_ADDR)
  689. #define bfin_write_DMA1_6_CURR_ADDR(val) bfin_write32(DMA1_6_CURR_ADDR,val)
  690. #define bfin_read_DMA1_6_CURR_X_COUNT() bfin_read16(DMA1_6_CURR_X_COUNT)
  691. #define bfin_write_DMA1_6_CURR_X_COUNT(val) bfin_write16(DMA1_6_CURR_X_COUNT,val)
  692. #define bfin_read_DMA1_6_CURR_Y_COUNT() bfin_read16(DMA1_6_CURR_Y_COUNT)
  693. #define bfin_write_DMA1_6_CURR_Y_COUNT(val) bfin_write16(DMA1_6_CURR_Y_COUNT,val)
  694. #define bfin_read_DMA1_6_IRQ_STATUS() bfin_read16(DMA1_6_IRQ_STATUS)
  695. #define bfin_write_DMA1_6_IRQ_STATUS(val) bfin_write16(DMA1_6_IRQ_STATUS,val)
  696. #define bfin_read_DMA1_6_PERIPHERAL_MAP() bfin_read16(DMA1_6_PERIPHERAL_MAP)
  697. #define bfin_write_DMA1_6_PERIPHERAL_MAP(val) bfin_write16(DMA1_6_PERIPHERAL_MAP,val)
  698. #define bfin_read_DMA1_7_CONFIG() bfin_read16(DMA1_7_CONFIG)
  699. #define bfin_write_DMA1_7_CONFIG(val) bfin_write16(DMA1_7_CONFIG,val)
  700. #define bfin_read_DMA1_7_NEXT_DESC_PTR() bfin_read32(DMA1_7_NEXT_DESC_PTR)
  701. #define bfin_write_DMA1_7_NEXT_DESC_PTR(val) bfin_write32(DMA1_7_NEXT_DESC_PTR,val)
  702. #define bfin_read_DMA1_7_START_ADDR() bfin_read32(DMA1_7_START_ADDR)
  703. #define bfin_write_DMA1_7_START_ADDR(val) bfin_write32(DMA1_7_START_ADDR,val)
  704. #define bfin_read_DMA1_7_X_COUNT() bfin_read16(DMA1_7_X_COUNT)
  705. #define bfin_write_DMA1_7_X_COUNT(val) bfin_write16(DMA1_7_X_COUNT,val)
  706. #define bfin_read_DMA1_7_Y_COUNT() bfin_read16(DMA1_7_Y_COUNT)
  707. #define bfin_write_DMA1_7_Y_COUNT(val) bfin_write16(DMA1_7_Y_COUNT,val)
  708. #define bfin_read_DMA1_7_X_MODIFY() bfin_read16(DMA1_7_X_MODIFY)
  709. #define bfin_write_DMA1_7_X_MODIFY(val) bfin_write16(DMA1_7_X_MODIFY,val)
  710. #define bfin_read_DMA1_7_Y_MODIFY() bfin_read16(DMA1_7_Y_MODIFY)
  711. #define bfin_write_DMA1_7_Y_MODIFY(val) bfin_write16(DMA1_7_Y_MODIFY,val)
  712. #define bfin_read_DMA1_7_CURR_DESC_PTR() bfin_read32(DMA1_7_CURR_DESC_PTR)
  713. #define bfin_write_DMA1_7_CURR_DESC_PTR(val) bfin_write32(DMA1_7_CURR_DESC_PTR,val)
  714. #define bfin_read_DMA1_7_CURR_ADDR() bfin_read32(DMA1_7_CURR_ADDR)
  715. #define bfin_write_DMA1_7_CURR_ADDR(val) bfin_write32(DMA1_7_CURR_ADDR,val)
  716. #define bfin_read_DMA1_7_CURR_X_COUNT() bfin_read16(DMA1_7_CURR_X_COUNT)
  717. #define bfin_write_DMA1_7_CURR_X_COUNT(val) bfin_write16(DMA1_7_CURR_X_COUNT,val)
  718. #define bfin_read_DMA1_7_CURR_Y_COUNT() bfin_read16(DMA1_7_CURR_Y_COUNT)
  719. #define bfin_write_DMA1_7_CURR_Y_COUNT(val) bfin_write16(DMA1_7_CURR_Y_COUNT,val)
  720. #define bfin_read_DMA1_7_IRQ_STATUS() bfin_read16(DMA1_7_IRQ_STATUS)
  721. #define bfin_write_DMA1_7_IRQ_STATUS(val) bfin_write16(DMA1_7_IRQ_STATUS,val)
  722. #define bfin_read_DMA1_7_PERIPHERAL_MAP() bfin_read16(DMA1_7_PERIPHERAL_MAP)
  723. #define bfin_write_DMA1_7_PERIPHERAL_MAP(val) bfin_write16(DMA1_7_PERIPHERAL_MAP,val)
  724. #define bfin_read_DMA1_8_CONFIG() bfin_read16(DMA1_8_CONFIG)
  725. #define bfin_write_DMA1_8_CONFIG(val) bfin_write16(DMA1_8_CONFIG,val)
  726. #define bfin_read_DMA1_8_NEXT_DESC_PTR() bfin_read32(DMA1_8_NEXT_DESC_PTR)
  727. #define bfin_write_DMA1_8_NEXT_DESC_PTR(val) bfin_write32(DMA1_8_NEXT_DESC_PTR,val)
  728. #define bfin_read_DMA1_8_START_ADDR() bfin_read32(DMA1_8_START_ADDR)
  729. #define bfin_write_DMA1_8_START_ADDR(val) bfin_write32(DMA1_8_START_ADDR,val)
  730. #define bfin_read_DMA1_8_X_COUNT() bfin_read16(DMA1_8_X_COUNT)
  731. #define bfin_write_DMA1_8_X_COUNT(val) bfin_write16(DMA1_8_X_COUNT,val)
  732. #define bfin_read_DMA1_8_Y_COUNT() bfin_read16(DMA1_8_Y_COUNT)
  733. #define bfin_write_DMA1_8_Y_COUNT(val) bfin_write16(DMA1_8_Y_COUNT,val)
  734. #define bfin_read_DMA1_8_X_MODIFY() bfin_read16(DMA1_8_X_MODIFY)
  735. #define bfin_write_DMA1_8_X_MODIFY(val) bfin_write16(DMA1_8_X_MODIFY,val)
  736. #define bfin_read_DMA1_8_Y_MODIFY() bfin_read16(DMA1_8_Y_MODIFY)
  737. #define bfin_write_DMA1_8_Y_MODIFY(val) bfin_write16(DMA1_8_Y_MODIFY,val)
  738. #define bfin_read_DMA1_8_CURR_DESC_PTR() bfin_read32(DMA1_8_CURR_DESC_PTR)
  739. #define bfin_write_DMA1_8_CURR_DESC_PTR(val) bfin_write32(DMA1_8_CURR_DESC_PTR,val)
  740. #define bfin_read_DMA1_8_CURR_ADDR() bfin_read32(DMA1_8_CURR_ADDR)
  741. #define bfin_write_DMA1_8_CURR_ADDR(val) bfin_write32(DMA1_8_CURR_ADDR,val)
  742. #define bfin_read_DMA1_8_CURR_X_COUNT() bfin_read16(DMA1_8_CURR_X_COUNT)
  743. #define bfin_write_DMA1_8_CURR_X_COUNT(val) bfin_write16(DMA1_8_CURR_X_COUNT,val)
  744. #define bfin_read_DMA1_8_CURR_Y_COUNT() bfin_read16(DMA1_8_CURR_Y_COUNT)
  745. #define bfin_write_DMA1_8_CURR_Y_COUNT(val) bfin_write16(DMA1_8_CURR_Y_COUNT,val)
  746. #define bfin_read_DMA1_8_IRQ_STATUS() bfin_read16(DMA1_8_IRQ_STATUS)
  747. #define bfin_write_DMA1_8_IRQ_STATUS(val) bfin_write16(DMA1_8_IRQ_STATUS,val)
  748. #define bfin_read_DMA1_8_PERIPHERAL_MAP() bfin_read16(DMA1_8_PERIPHERAL_MAP)
  749. #define bfin_write_DMA1_8_PERIPHERAL_MAP(val) bfin_write16(DMA1_8_PERIPHERAL_MAP,val)
  750. #define bfin_read_DMA1_9_CONFIG() bfin_read16(DMA1_9_CONFIG)
  751. #define bfin_write_DMA1_9_CONFIG(val) bfin_write16(DMA1_9_CONFIG,val)
  752. #define bfin_read_DMA1_9_NEXT_DESC_PTR() bfin_read32(DMA1_9_NEXT_DESC_PTR)
  753. #define bfin_write_DMA1_9_NEXT_DESC_PTR(val) bfin_write32(DMA1_9_NEXT_DESC_PTR,val)
  754. #define bfin_read_DMA1_9_START_ADDR() bfin_read32(DMA1_9_START_ADDR)
  755. #define bfin_write_DMA1_9_START_ADDR(val) bfin_write32(DMA1_9_START_ADDR,val)
  756. #define bfin_read_DMA1_9_X_COUNT() bfin_read16(DMA1_9_X_COUNT)
  757. #define bfin_write_DMA1_9_X_COUNT(val) bfin_write16(DMA1_9_X_COUNT,val)
  758. #define bfin_read_DMA1_9_Y_COUNT() bfin_read16(DMA1_9_Y_COUNT)
  759. #define bfin_write_DMA1_9_Y_COUNT(val) bfin_write16(DMA1_9_Y_COUNT,val)
  760. #define bfin_read_DMA1_9_X_MODIFY() bfin_read16(DMA1_9_X_MODIFY)
  761. #define bfin_write_DMA1_9_X_MODIFY(val) bfin_write16(DMA1_9_X_MODIFY,val)
  762. #define bfin_read_DMA1_9_Y_MODIFY() bfin_read16(DMA1_9_Y_MODIFY)
  763. #define bfin_write_DMA1_9_Y_MODIFY(val) bfin_write16(DMA1_9_Y_MODIFY,val)
  764. #define bfin_read_DMA1_9_CURR_DESC_PTR() bfin_read32(DMA1_9_CURR_DESC_PTR)
  765. #define bfin_write_DMA1_9_CURR_DESC_PTR(val) bfin_write32(DMA1_9_CURR_DESC_PTR,val)
  766. #define bfin_read_DMA1_9_CURR_ADDR() bfin_read32(DMA1_9_CURR_ADDR)
  767. #define bfin_write_DMA1_9_CURR_ADDR(val) bfin_write32(DMA1_9_CURR_ADDR,val)
  768. #define bfin_read_DMA1_9_CURR_X_COUNT() bfin_read16(DMA1_9_CURR_X_COUNT)
  769. #define bfin_write_DMA1_9_CURR_X_COUNT(val) bfin_write16(DMA1_9_CURR_X_COUNT,val)
  770. #define bfin_read_DMA1_9_CURR_Y_COUNT() bfin_read16(DMA1_9_CURR_Y_COUNT)
  771. #define bfin_write_DMA1_9_CURR_Y_COUNT(val) bfin_write16(DMA1_9_CURR_Y_COUNT,val)
  772. #define bfin_read_DMA1_9_IRQ_STATUS() bfin_read16(DMA1_9_IRQ_STATUS)
  773. #define bfin_write_DMA1_9_IRQ_STATUS(val) bfin_write16(DMA1_9_IRQ_STATUS,val)
  774. #define bfin_read_DMA1_9_PERIPHERAL_MAP() bfin_read16(DMA1_9_PERIPHERAL_MAP)
  775. #define bfin_write_DMA1_9_PERIPHERAL_MAP(val) bfin_write16(DMA1_9_PERIPHERAL_MAP,val)
  776. #define bfin_read_DMA1_10_CONFIG() bfin_read16(DMA1_10_CONFIG)
  777. #define bfin_write_DMA1_10_CONFIG(val) bfin_write16(DMA1_10_CONFIG,val)
  778. #define bfin_read_DMA1_10_NEXT_DESC_PTR() bfin_read32(DMA1_10_NEXT_DESC_PTR)
  779. #define bfin_write_DMA1_10_NEXT_DESC_PTR(val) bfin_write32(DMA1_10_NEXT_DESC_PTR,val)
  780. #define bfin_read_DMA1_10_START_ADDR() bfin_read32(DMA1_10_START_ADDR)
  781. #define bfin_write_DMA1_10_START_ADDR(val) bfin_write32(DMA1_10_START_ADDR,val)
  782. #define bfin_read_DMA1_10_X_COUNT() bfin_read16(DMA1_10_X_COUNT)
  783. #define bfin_write_DMA1_10_X_COUNT(val) bfin_write16(DMA1_10_X_COUNT,val)
  784. #define bfin_read_DMA1_10_Y_COUNT() bfin_read16(DMA1_10_Y_COUNT)
  785. #define bfin_write_DMA1_10_Y_COUNT(val) bfin_write16(DMA1_10_Y_COUNT,val)
  786. #define bfin_read_DMA1_10_X_MODIFY() bfin_read16(DMA1_10_X_MODIFY)
  787. #define bfin_write_DMA1_10_X_MODIFY(val) bfin_write16(DMA1_10_X_MODIFY,val)
  788. #define bfin_read_DMA1_10_Y_MODIFY() bfin_read16(DMA1_10_Y_MODIFY)
  789. #define bfin_write_DMA1_10_Y_MODIFY(val) bfin_write16(DMA1_10_Y_MODIFY,val)
  790. #define bfin_read_DMA1_10_CURR_DESC_PTR() bfin_read32(DMA1_10_CURR_DESC_PTR)
  791. #define bfin_write_DMA1_10_CURR_DESC_PTR(val) bfin_write32(DMA1_10_CURR_DESC_PTR,val)
  792. #define bfin_read_DMA1_10_CURR_ADDR() bfin_read32(DMA1_10_CURR_ADDR)
  793. #define bfin_write_DMA1_10_CURR_ADDR(val) bfin_write32(DMA1_10_CURR_ADDR,val)
  794. #define bfin_read_DMA1_10_CURR_X_COUNT() bfin_read16(DMA1_10_CURR_X_COUNT)
  795. #define bfin_write_DMA1_10_CURR_X_COUNT(val) bfin_write16(DMA1_10_CURR_X_COUNT,val)
  796. #define bfin_read_DMA1_10_CURR_Y_COUNT() bfin_read16(DMA1_10_CURR_Y_COUNT)
  797. #define bfin_write_DMA1_10_CURR_Y_COUNT(val) bfin_write16(DMA1_10_CURR_Y_COUNT,val)
  798. #define bfin_read_DMA1_10_IRQ_STATUS() bfin_read16(DMA1_10_IRQ_STATUS)
  799. #define bfin_write_DMA1_10_IRQ_STATUS(val) bfin_write16(DMA1_10_IRQ_STATUS,val)
  800. #define bfin_read_DMA1_10_PERIPHERAL_MAP() bfin_read16(DMA1_10_PERIPHERAL_MAP)
  801. #define bfin_write_DMA1_10_PERIPHERAL_MAP(val) bfin_write16(DMA1_10_PERIPHERAL_MAP,val)
  802. #define bfin_read_DMA1_11_CONFIG() bfin_read16(DMA1_11_CONFIG)
  803. #define bfin_write_DMA1_11_CONFIG(val) bfin_write16(DMA1_11_CONFIG,val)
  804. #define bfin_read_DMA1_11_NEXT_DESC_PTR() bfin_read32(DMA1_11_NEXT_DESC_PTR)
  805. #define bfin_write_DMA1_11_NEXT_DESC_PTR(val) bfin_write32(DMA1_11_NEXT_DESC_PTR,val)
  806. #define bfin_read_DMA1_11_START_ADDR() bfin_read32(DMA1_11_START_ADDR)
  807. #define bfin_write_DMA1_11_START_ADDR(val) bfin_write32(DMA1_11_START_ADDR,val)
  808. #define bfin_read_DMA1_11_X_COUNT() bfin_read16(DMA1_11_X_COUNT)
  809. #define bfin_write_DMA1_11_X_COUNT(val) bfin_write16(DMA1_11_X_COUNT,val)
  810. #define bfin_read_DMA1_11_Y_COUNT() bfin_read16(DMA1_11_Y_COUNT)
  811. #define bfin_write_DMA1_11_Y_COUNT(val) bfin_write16(DMA1_11_Y_COUNT,val)
  812. #define bfin_read_DMA1_11_X_MODIFY() bfin_read16(DMA1_11_X_MODIFY)
  813. #define bfin_write_DMA1_11_X_MODIFY(val) bfin_write16(DMA1_11_X_MODIFY,val)
  814. #define bfin_read_DMA1_11_Y_MODIFY() bfin_read16(DMA1_11_Y_MODIFY)
  815. #define bfin_write_DMA1_11_Y_MODIFY(val) bfin_write16(DMA1_11_Y_MODIFY,val)
  816. #define bfin_read_DMA1_11_CURR_DESC_PTR() bfin_read32(DMA1_11_CURR_DESC_PTR)
  817. #define bfin_write_DMA1_11_CURR_DESC_PTR(val) bfin_write32(DMA1_11_CURR_DESC_PTR,val)
  818. #define bfin_read_DMA1_11_CURR_ADDR() bfin_read32(DMA1_11_CURR_ADDR)
  819. #define bfin_write_DMA1_11_CURR_ADDR(val) bfin_write32(DMA1_11_CURR_ADDR,val)
  820. #define bfin_read_DMA1_11_CURR_X_COUNT() bfin_read16(DMA1_11_CURR_X_COUNT)
  821. #define bfin_write_DMA1_11_CURR_X_COUNT(val) bfin_write16(DMA1_11_CURR_X_COUNT,val)
  822. #define bfin_read_DMA1_11_CURR_Y_COUNT() bfin_read16(DMA1_11_CURR_Y_COUNT)
  823. #define bfin_write_DMA1_11_CURR_Y_COUNT(val) bfin_write16(DMA1_11_CURR_Y_COUNT,val)
  824. #define bfin_read_DMA1_11_IRQ_STATUS() bfin_read16(DMA1_11_IRQ_STATUS)
  825. #define bfin_write_DMA1_11_IRQ_STATUS(val) bfin_write16(DMA1_11_IRQ_STATUS,val)
  826. #define bfin_read_DMA1_11_PERIPHERAL_MAP() bfin_read16(DMA1_11_PERIPHERAL_MAP)
  827. #define bfin_write_DMA1_11_PERIPHERAL_MAP(val) bfin_write16(DMA1_11_PERIPHERAL_MAP,val)
  828. /* Memory DMA1 Controller registers (0xFFC0 1E80-0xFFC0 1FFF) */
  829. #define bfin_read_MDMA_D2_CONFIG() bfin_read16(MDMA_D2_CONFIG)
  830. #define bfin_write_MDMA_D2_CONFIG(val) bfin_write16(MDMA_D2_CONFIG,val)
  831. #define bfin_read_MDMA_D2_NEXT_DESC_PTR() bfin_read32(MDMA_D2_NEXT_DESC_PTR)
  832. #define bfin_write_MDMA_D2_NEXT_DESC_PTR(val) bfin_write32(MDMA_D2_NEXT_DESC_PTR,val)
  833. #define bfin_read_MDMA_D2_START_ADDR() bfin_read32(MDMA_D2_START_ADDR)
  834. #define bfin_write_MDMA_D2_START_ADDR(val) bfin_write32(MDMA_D2_START_ADDR,val)
  835. #define bfin_read_MDMA_D2_X_COUNT() bfin_read16(MDMA_D2_X_COUNT)
  836. #define bfin_write_MDMA_D2_X_COUNT(val) bfin_write16(MDMA_D2_X_COUNT,val)
  837. #define bfin_read_MDMA_D2_Y_COUNT() bfin_read16(MDMA_D2_Y_COUNT)
  838. #define bfin_write_MDMA_D2_Y_COUNT(val) bfin_write16(MDMA_D2_Y_COUNT,val)
  839. #define bfin_read_MDMA_D2_X_MODIFY() bfin_read16(MDMA_D2_X_MODIFY)
  840. #define bfin_write_MDMA_D2_X_MODIFY(val) bfin_write16(MDMA_D2_X_MODIFY,val)
  841. #define bfin_read_MDMA_D2_Y_MODIFY() bfin_read16(MDMA_D2_Y_MODIFY)
  842. #define bfin_write_MDMA_D2_Y_MODIFY(val) bfin_write16(MDMA_D2_Y_MODIFY,val)
  843. #define bfin_read_MDMA_D2_CURR_DESC_PTR() bfin_read32(MDMA_D2_CURR_DESC_PTR)
  844. #define bfin_write_MDMA_D2_CURR_DESC_PTR(val) bfin_write32(MDMA_D2_CURR_DESC_PTR,val)
  845. #define bfin_read_MDMA_D2_CURR_ADDR() bfin_read32(MDMA_D2_CURR_ADDR)
  846. #define bfin_write_MDMA_D2_CURR_ADDR(val) bfin_write32(MDMA_D2_CURR_ADDR,val)
  847. #define bfin_read_MDMA_D2_CURR_X_COUNT() bfin_read16(MDMA_D2_CURR_X_COUNT)
  848. #define bfin_write_MDMA_D2_CURR_X_COUNT(val) bfin_write16(MDMA_D2_CURR_X_COUNT,val)
  849. #define bfin_read_MDMA_D2_CURR_Y_COUNT() bfin_read16(MDMA_D2_CURR_Y_COUNT)
  850. #define bfin_write_MDMA_D2_CURR_Y_COUNT(val) bfin_write16(MDMA_D2_CURR_Y_COUNT,val)
  851. #define bfin_read_MDMA_D2_IRQ_STATUS() bfin_read16(MDMA_D2_IRQ_STATUS)
  852. #define bfin_write_MDMA_D2_IRQ_STATUS(val) bfin_write16(MDMA_D2_IRQ_STATUS,val)
  853. #define bfin_read_MDMA_D2_PERIPHERAL_MAP() bfin_read16(MDMA_D2_PERIPHERAL_MAP)
  854. #define bfin_write_MDMA_D2_PERIPHERAL_MAP(val) bfin_write16(MDMA_D2_PERIPHERAL_MAP,val)
  855. #define bfin_read_MDMA_S2_CONFIG() bfin_read16(MDMA_S2_CONFIG)
  856. #define bfin_write_MDMA_S2_CONFIG(val) bfin_write16(MDMA_S2_CONFIG,val)
  857. #define bfin_read_MDMA_S2_NEXT_DESC_PTR() bfin_read32(MDMA_S2_NEXT_DESC_PTR)
  858. #define bfin_write_MDMA_S2_NEXT_DESC_PTR(val) bfin_write32(MDMA_S2_NEXT_DESC_PTR,val)
  859. #define bfin_read_MDMA_S2_START_ADDR() bfin_read32(MDMA_S2_START_ADDR)
  860. #define bfin_write_MDMA_S2_START_ADDR(val) bfin_write32(MDMA_S2_START_ADDR,val)
  861. #define bfin_read_MDMA_S2_X_COUNT() bfin_read16(MDMA_S2_X_COUNT)
  862. #define bfin_write_MDMA_S2_X_COUNT(val) bfin_write16(MDMA_S2_X_COUNT,val)
  863. #define bfin_read_MDMA_S2_Y_COUNT() bfin_read16(MDMA_S2_Y_COUNT)
  864. #define bfin_write_MDMA_S2_Y_COUNT(val) bfin_write16(MDMA_S2_Y_COUNT,val)
  865. #define bfin_read_MDMA_S2_X_MODIFY() bfin_read16(MDMA_S2_X_MODIFY)
  866. #define bfin_write_MDMA_S2_X_MODIFY(val) bfin_write16(MDMA_S2_X_MODIFY,val)
  867. #define bfin_read_MDMA_S2_Y_MODIFY() bfin_read16(MDMA_S2_Y_MODIFY)
  868. #define bfin_write_MDMA_S2_Y_MODIFY(val) bfin_write16(MDMA_S2_Y_MODIFY,val)
  869. #define bfin_read_MDMA_S2_CURR_DESC_PTR() bfin_read32(MDMA_S2_CURR_DESC_PTR)
  870. #define bfin_write_MDMA_S2_CURR_DESC_PTR(val) bfin_write32(MDMA_S2_CURR_DESC_PTR,val)
  871. #define bfin_read_MDMA_S2_CURR_ADDR() bfin_read32(MDMA_S2_CURR_ADDR)
  872. #define bfin_write_MDMA_S2_CURR_ADDR(val) bfin_write32(MDMA_S2_CURR_ADDR,val)
  873. #define bfin_read_MDMA_S2_CURR_X_COUNT() bfin_read16(MDMA_S2_CURR_X_COUNT)
  874. #define bfin_write_MDMA_S2_CURR_X_COUNT(val) bfin_write16(MDMA_S2_CURR_X_COUNT,val)
  875. #define bfin_read_MDMA_S2_CURR_Y_COUNT() bfin_read16(MDMA_S2_CURR_Y_COUNT)
  876. #define bfin_write_MDMA_S2_CURR_Y_COUNT(val) bfin_write16(MDMA_S2_CURR_Y_COUNT,val)
  877. #define bfin_read_MDMA_S2_IRQ_STATUS() bfin_read16(MDMA_S2_IRQ_STATUS)
  878. #define bfin_write_MDMA_S2_IRQ_STATUS(val) bfin_write16(MDMA_S2_IRQ_STATUS,val)
  879. #define bfin_read_MDMA_S2_PERIPHERAL_MAP() bfin_read16(MDMA_S2_PERIPHERAL_MAP)
  880. #define bfin_write_MDMA_S2_PERIPHERAL_MAP(val) bfin_write16(MDMA_S2_PERIPHERAL_MAP,val)
  881. #define bfin_read_MDMA_D3_CONFIG() bfin_read16(MDMA_D3_CONFIG)
  882. #define bfin_write_MDMA_D3_CONFIG(val) bfin_write16(MDMA_D3_CONFIG,val)
  883. #define bfin_read_MDMA_D3_NEXT_DESC_PTR() bfin_read32(MDMA_D3_NEXT_DESC_PTR)
  884. #define bfin_write_MDMA_D3_NEXT_DESC_PTR(val) bfin_write32(MDMA_D3_NEXT_DESC_PTR,val)
  885. #define bfin_read_MDMA_D3_START_ADDR() bfin_read32(MDMA_D3_START_ADDR)
  886. #define bfin_write_MDMA_D3_START_ADDR(val) bfin_write32(MDMA_D3_START_ADDR,val)
  887. #define bfin_read_MDMA_D3_X_COUNT() bfin_read16(MDMA_D3_X_COUNT)
  888. #define bfin_write_MDMA_D3_X_COUNT(val) bfin_write16(MDMA_D3_X_COUNT,val)
  889. #define bfin_read_MDMA_D3_Y_COUNT() bfin_read16(MDMA_D3_Y_COUNT)
  890. #define bfin_write_MDMA_D3_Y_COUNT(val) bfin_write16(MDMA_D3_Y_COUNT,val)
  891. #define bfin_read_MDMA_D3_X_MODIFY() bfin_read16(MDMA_D3_X_MODIFY)
  892. #define bfin_write_MDMA_D3_X_MODIFY(val) bfin_write16(MDMA_D3_X_MODIFY,val)
  893. #define bfin_read_MDMA_D3_Y_MODIFY() bfin_read16(MDMA_D3_Y_MODIFY)
  894. #define bfin_write_MDMA_D3_Y_MODIFY(val) bfin_write16(MDMA_D3_Y_MODIFY,val)
  895. #define bfin_read_MDMA_D3_CURR_DESC_PTR() bfin_read32(MDMA_D3_CURR_DESC_PTR)
  896. #define bfin_write_MDMA_D3_CURR_DESC_PTR(val) bfin_write32(MDMA_D3_CURR_DESC_PTR,val)
  897. #define bfin_read_MDMA_D3_CURR_ADDR() bfin_read32(MDMA_D3_CURR_ADDR)
  898. #define bfin_write_MDMA_D3_CURR_ADDR(val) bfin_write32(MDMA_D3_CURR_ADDR,val)
  899. #define bfin_read_MDMA_D3_CURR_X_COUNT() bfin_read16(MDMA_D3_CURR_X_COUNT)
  900. #define bfin_write_MDMA_D3_CURR_X_COUNT(val) bfin_write16(MDMA_D3_CURR_X_COUNT,val)
  901. #define bfin_read_MDMA_D3_CURR_Y_COUNT() bfin_read16(MDMA_D3_CURR_Y_COUNT)
  902. #define bfin_write_MDMA_D3_CURR_Y_COUNT(val) bfin_write16(MDMA_D3_CURR_Y_COUNT,val)
  903. #define bfin_read_MDMA_D3_IRQ_STATUS() bfin_read16(MDMA_D3_IRQ_STATUS)
  904. #define bfin_write_MDMA_D3_IRQ_STATUS(val) bfin_write16(MDMA_D3_IRQ_STATUS,val)
  905. #define bfin_read_MDMA_D3_PERIPHERAL_MAP() bfin_read16(MDMA_D3_PERIPHERAL_MAP)
  906. #define bfin_write_MDMA_D3_PERIPHERAL_MAP(val) bfin_write16(MDMA_D3_PERIPHERAL_MAP,val)
  907. #define bfin_read_MDMA_S3_CONFIG() bfin_read16(MDMA_S3_CONFIG)
  908. #define bfin_write_MDMA_S3_CONFIG(val) bfin_write16(MDMA_S3_CONFIG,val)
  909. #define bfin_read_MDMA_S3_NEXT_DESC_PTR() bfin_read32(MDMA_S3_NEXT_DESC_PTR)
  910. #define bfin_write_MDMA_S3_NEXT_DESC_PTR(val) bfin_write32(MDMA_S3_NEXT_DESC_PTR,val)
  911. #define bfin_read_MDMA_S3_START_ADDR() bfin_read32(MDMA_S3_START_ADDR)
  912. #define bfin_write_MDMA_S3_START_ADDR(val) bfin_write32(MDMA_S3_START_ADDR,val)
  913. #define bfin_read_MDMA_S3_X_COUNT() bfin_read16(MDMA_S3_X_COUNT)
  914. #define bfin_write_MDMA_S3_X_COUNT(val) bfin_write16(MDMA_S3_X_COUNT,val)
  915. #define bfin_read_MDMA_S3_Y_COUNT() bfin_read16(MDMA_S3_Y_COUNT)
  916. #define bfin_write_MDMA_S3_Y_COUNT(val) bfin_write16(MDMA_S3_Y_COUNT,val)
  917. #define bfin_read_MDMA_S3_X_MODIFY() bfin_read16(MDMA_S3_X_MODIFY)
  918. #define bfin_write_MDMA_S3_X_MODIFY(val) bfin_write16(MDMA_S3_X_MODIFY,val)
  919. #define bfin_read_MDMA_S3_Y_MODIFY() bfin_read16(MDMA_S3_Y_MODIFY)
  920. #define bfin_write_MDMA_S3_Y_MODIFY(val) bfin_write16(MDMA_S3_Y_MODIFY,val)
  921. #define bfin_read_MDMA_S3_CURR_DESC_PTR() bfin_read32(MDMA_S3_CURR_DESC_PTR)
  922. #define bfin_write_MDMA_S3_CURR_DESC_PTR(val) bfin_write32(MDMA_S3_CURR_DESC_PTR,val)
  923. #define bfin_read_MDMA_S3_CURR_ADDR() bfin_read32(MDMA_S3_CURR_ADDR)
  924. #define bfin_write_MDMA_S3_CURR_ADDR(val) bfin_write32(MDMA_S3_CURR_ADDR,val)
  925. #define bfin_read_MDMA_S3_CURR_X_COUNT() bfin_read16(MDMA_S3_CURR_X_COUNT)
  926. #define bfin_write_MDMA_S3_CURR_X_COUNT(val) bfin_write16(MDMA_S3_CURR_X_COUNT,val)
  927. #define bfin_read_MDMA_S3_CURR_Y_COUNT() bfin_read16(MDMA_S3_CURR_Y_COUNT)
  928. #define bfin_write_MDMA_S3_CURR_Y_COUNT(val) bfin_write16(MDMA_S3_CURR_Y_COUNT,val)
  929. #define bfin_read_MDMA_S3_IRQ_STATUS() bfin_read16(MDMA_S3_IRQ_STATUS)
  930. #define bfin_write_MDMA_S3_IRQ_STATUS(val) bfin_write16(MDMA_S3_IRQ_STATUS,val)
  931. #define bfin_read_MDMA_S3_PERIPHERAL_MAP() bfin_read16(MDMA_S3_PERIPHERAL_MAP)
  932. #define bfin_write_MDMA_S3_PERIPHERAL_MAP(val) bfin_write16(MDMA_S3_PERIPHERAL_MAP,val)
  933. /* DMA2 Controller registers (0xFFC0 0C00-0xFFC0 0DFF) */
  934. #define bfin_read_DMA2_0_CONFIG() bfin_read16(DMA2_0_CONFIG)
  935. #define bfin_write_DMA2_0_CONFIG(val) bfin_write16(DMA2_0_CONFIG,val)
  936. #define bfin_read_DMA2_0_NEXT_DESC_PTR() bfin_read32(DMA2_0_NEXT_DESC_PTR)
  937. #define bfin_write_DMA2_0_NEXT_DESC_PTR(val) bfin_write32(DMA2_0_NEXT_DESC_PTR,val)
  938. #define bfin_read_DMA2_0_START_ADDR() bfin_read32(DMA2_0_START_ADDR)
  939. #define bfin_write_DMA2_0_START_ADDR(val) bfin_write32(DMA2_0_START_ADDR,val)
  940. #define bfin_read_DMA2_0_X_COUNT() bfin_read16(DMA2_0_X_COUNT)
  941. #define bfin_write_DMA2_0_X_COUNT(val) bfin_write16(DMA2_0_X_COUNT,val)
  942. #define bfin_read_DMA2_0_Y_COUNT() bfin_read16(DMA2_0_Y_COUNT)
  943. #define bfin_write_DMA2_0_Y_COUNT(val) bfin_write16(DMA2_0_Y_COUNT,val)
  944. #define bfin_read_DMA2_0_X_MODIFY() bfin_read16(DMA2_0_X_MODIFY)
  945. #define bfin_write_DMA2_0_X_MODIFY(val) bfin_write16(DMA2_0_X_MODIFY,val)
  946. #define bfin_read_DMA2_0_Y_MODIFY() bfin_read16(DMA2_0_Y_MODIFY)
  947. #define bfin_write_DMA2_0_Y_MODIFY(val) bfin_write16(DMA2_0_Y_MODIFY,val)
  948. #define bfin_read_DMA2_0_CURR_DESC_PTR() bfin_read32(DMA2_0_CURR_DESC_PTR)
  949. #define bfin_write_DMA2_0_CURR_DESC_PTR(val) bfin_write32(DMA2_0_CURR_DESC_PTR,val)
  950. #define bfin_read_DMA2_0_CURR_ADDR() bfin_read32(DMA2_0_CURR_ADDR)
  951. #define bfin_write_DMA2_0_CURR_ADDR(val) bfin_write32(DMA2_0_CURR_ADDR,val)
  952. #define bfin_read_DMA2_0_CURR_X_COUNT() bfin_read16(DMA2_0_CURR_X_COUNT)
  953. #define bfin_write_DMA2_0_CURR_X_COUNT(val) bfin_write16(DMA2_0_CURR_X_COUNT,val)
  954. #define bfin_read_DMA2_0_CURR_Y_COUNT() bfin_read16(DMA2_0_CURR_Y_COUNT)
  955. #define bfin_write_DMA2_0_CURR_Y_COUNT(val) bfin_write16(DMA2_0_CURR_Y_COUNT,val)
  956. #define bfin_read_DMA2_0_IRQ_STATUS() bfin_read16(DMA2_0_IRQ_STATUS)
  957. #define bfin_write_DMA2_0_IRQ_STATUS(val) bfin_write16(DMA2_0_IRQ_STATUS,val)
  958. #define bfin_read_DMA2_0_PERIPHERAL_MAP() bfin_read16(DMA2_0_PERIPHERAL_MAP)
  959. #define bfin_write_DMA2_0_PERIPHERAL_MAP(val) bfin_write16(DMA2_0_PERIPHERAL_MAP,val)
  960. #define bfin_read_DMA2_1_CONFIG() bfin_read16(DMA2_1_CONFIG)
  961. #define bfin_write_DMA2_1_CONFIG(val) bfin_write16(DMA2_1_CONFIG,val)
  962. #define bfin_read_DMA2_1_NEXT_DESC_PTR() bfin_read32(DMA2_1_NEXT_DESC_PTR)
  963. #define bfin_write_DMA2_1_NEXT_DESC_PTR(val) bfin_write32(DMA2_1_NEXT_DESC_PTR,val)
  964. #define bfin_read_DMA2_1_START_ADDR() bfin_read32(DMA2_1_START_ADDR)
  965. #define bfin_write_DMA2_1_START_ADDR(val) bfin_write32(DMA2_1_START_ADDR,val)
  966. #define bfin_read_DMA2_1_X_COUNT() bfin_read16(DMA2_1_X_COUNT)
  967. #define bfin_write_DMA2_1_X_COUNT(val) bfin_write16(DMA2_1_X_COUNT,val)
  968. #define bfin_read_DMA2_1_Y_COUNT() bfin_read16(DMA2_1_Y_COUNT)
  969. #define bfin_write_DMA2_1_Y_COUNT(val) bfin_write16(DMA2_1_Y_COUNT,val)
  970. #define bfin_read_DMA2_1_X_MODIFY() bfin_read16(DMA2_1_X_MODIFY)
  971. #define bfin_write_DMA2_1_X_MODIFY(val) bfin_write16(DMA2_1_X_MODIFY,val)
  972. #define bfin_read_DMA2_1_Y_MODIFY() bfin_read16(DMA2_1_Y_MODIFY)
  973. #define bfin_write_DMA2_1_Y_MODIFY(val) bfin_write16(DMA2_1_Y_MODIFY,val)
  974. #define bfin_read_DMA2_1_CURR_DESC_PTR() bfin_read32(DMA2_1_CURR_DESC_PTR)
  975. #define bfin_write_DMA2_1_CURR_DESC_PTR(val) bfin_write32(DMA2_1_CURR_DESC_PTR,val)
  976. #define bfin_read_DMA2_1_CURR_ADDR() bfin_read32(DMA2_1_CURR_ADDR)
  977. #define bfin_write_DMA2_1_CURR_ADDR(val) bfin_write32(DMA2_1_CURR_ADDR,val)
  978. #define bfin_read_DMA2_1_CURR_X_COUNT() bfin_read16(DMA2_1_CURR_X_COUNT)
  979. #define bfin_write_DMA2_1_CURR_X_COUNT(val) bfin_write16(DMA2_1_CURR_X_COUNT,val)
  980. #define bfin_read_DMA2_1_CURR_Y_COUNT() bfin_read16(DMA2_1_CURR_Y_COUNT)
  981. #define bfin_write_DMA2_1_CURR_Y_COUNT(val) bfin_write16(DMA2_1_CURR_Y_COUNT,val)
  982. #define bfin_read_DMA2_1_IRQ_STATUS() bfin_read16(DMA2_1_IRQ_STATUS)
  983. #define bfin_write_DMA2_1_IRQ_STATUS(val) bfin_write16(DMA2_1_IRQ_STATUS,val)
  984. #define bfin_read_DMA2_1_PERIPHERAL_MAP() bfin_read16(DMA2_1_PERIPHERAL_MAP)
  985. #define bfin_write_DMA2_1_PERIPHERAL_MAP(val) bfin_write16(DMA2_1_PERIPHERAL_MAP,val)
  986. #define bfin_read_DMA2_2_CONFIG() bfin_read16(DMA2_2_CONFIG)
  987. #define bfin_write_DMA2_2_CONFIG(val) bfin_write16(DMA2_2_CONFIG,val)
  988. #define bfin_read_DMA2_2_NEXT_DESC_PTR() bfin_read32(DMA2_2_NEXT_DESC_PTR)
  989. #define bfin_write_DMA2_2_NEXT_DESC_PTR(val) bfin_write32(DMA2_2_NEXT_DESC_PTR,val)
  990. #define bfin_read_DMA2_2_START_ADDR() bfin_read32(DMA2_2_START_ADDR)
  991. #define bfin_write_DMA2_2_START_ADDR(val) bfin_write32(DMA2_2_START_ADDR,val)
  992. #define bfin_read_DMA2_2_X_COUNT() bfin_read16(DMA2_2_X_COUNT)
  993. #define bfin_write_DMA2_2_X_COUNT(val) bfin_write16(DMA2_2_X_COUNT,val)
  994. #define bfin_read_DMA2_2_Y_COUNT() bfin_read16(DMA2_2_Y_COUNT)
  995. #define bfin_write_DMA2_2_Y_COUNT(val) bfin_write16(DMA2_2_Y_COUNT,val)
  996. #define bfin_read_DMA2_2_X_MODIFY() bfin_read16(DMA2_2_X_MODIFY)
  997. #define bfin_write_DMA2_2_X_MODIFY(val) bfin_write16(DMA2_2_X_MODIFY,val)
  998. #define bfin_read_DMA2_2_Y_MODIFY() bfin_read16(DMA2_2_Y_MODIFY)
  999. #define bfin_write_DMA2_2_Y_MODIFY(val) bfin_write16(DMA2_2_Y_MODIFY,val)
  1000. #define bfin_read_DMA2_2_CURR_DESC_PTR() bfin_read32(DMA2_2_CURR_DESC_PTR)
  1001. #define bfin_write_DMA2_2_CURR_DESC_PTR(val) bfin_write32(DMA2_2_CURR_DESC_PTR,val)
  1002. #define bfin_read_DMA2_2_CURR_ADDR() bfin_read32(DMA2_2_CURR_ADDR)
  1003. #define bfin_write_DMA2_2_CURR_ADDR(val) bfin_write32(DMA2_2_CURR_ADDR,val)
  1004. #define bfin_read_DMA2_2_CURR_X_COUNT() bfin_read16(DMA2_2_CURR_X_COUNT)
  1005. #define bfin_write_DMA2_2_CURR_X_COUNT(val) bfin_write16(DMA2_2_CURR_X_COUNT,val)
  1006. #define bfin_read_DMA2_2_CURR_Y_COUNT() bfin_read16(DMA2_2_CURR_Y_COUNT)
  1007. #define bfin_write_DMA2_2_CURR_Y_COUNT(val) bfin_write16(DMA2_2_CURR_Y_COUNT,val)
  1008. #define bfin_read_DMA2_2_IRQ_STATUS() bfin_read16(DMA2_2_IRQ_STATUS)
  1009. #define bfin_write_DMA2_2_IRQ_STATUS(val) bfin_write16(DMA2_2_IRQ_STATUS,val)
  1010. #define bfin_read_DMA2_2_PERIPHERAL_MAP() bfin_read16(DMA2_2_PERIPHERAL_MAP)
  1011. #define bfin_write_DMA2_2_PERIPHERAL_MAP(val) bfin_write16(DMA2_2_PERIPHERAL_MAP,val)
  1012. #define bfin_read_DMA2_3_CONFIG() bfin_read16(DMA2_3_CONFIG)
  1013. #define bfin_write_DMA2_3_CONFIG(val) bfin_write16(DMA2_3_CONFIG,val)
  1014. #define bfin_read_DMA2_3_NEXT_DESC_PTR() bfin_read32(DMA2_3_NEXT_DESC_PTR)
  1015. #define bfin_write_DMA2_3_NEXT_DESC_PTR(val) bfin_write32(DMA2_3_NEXT_DESC_PTR,val)
  1016. #define bfin_read_DMA2_3_START_ADDR() bfin_read32(DMA2_3_START_ADDR)
  1017. #define bfin_write_DMA2_3_START_ADDR(val) bfin_write32(DMA2_3_START_ADDR,val)
  1018. #define bfin_read_DMA2_3_X_COUNT() bfin_read16(DMA2_3_X_COUNT)
  1019. #define bfin_write_DMA2_3_X_COUNT(val) bfin_write16(DMA2_3_X_COUNT,val)
  1020. #define bfin_read_DMA2_3_Y_COUNT() bfin_read16(DMA2_3_Y_COUNT)
  1021. #define bfin_write_DMA2_3_Y_COUNT(val) bfin_write16(DMA2_3_Y_COUNT,val)
  1022. #define bfin_read_DMA2_3_X_MODIFY() bfin_read16(DMA2_3_X_MODIFY)
  1023. #define bfin_write_DMA2_3_X_MODIFY(val) bfin_write16(DMA2_3_X_MODIFY,val)
  1024. #define bfin_read_DMA2_3_Y_MODIFY() bfin_read16(DMA2_3_Y_MODIFY)
  1025. #define bfin_write_DMA2_3_Y_MODIFY(val) bfin_write16(DMA2_3_Y_MODIFY,val)
  1026. #define bfin_read_DMA2_3_CURR_DESC_PTR() bfin_read32(DMA2_3_CURR_DESC_PTR)
  1027. #define bfin_write_DMA2_3_CURR_DESC_PTR(val) bfin_write32(DMA2_3_CURR_DESC_PTR,val)
  1028. #define bfin_read_DMA2_3_CURR_ADDR() bfin_read32(DMA2_3_CURR_ADDR)
  1029. #define bfin_write_DMA2_3_CURR_ADDR(val) bfin_write32(DMA2_3_CURR_ADDR,val)
  1030. #define bfin_read_DMA2_3_CURR_X_COUNT() bfin_read16(DMA2_3_CURR_X_COUNT)
  1031. #define bfin_write_DMA2_3_CURR_X_COUNT(val) bfin_write16(DMA2_3_CURR_X_COUNT,val)
  1032. #define bfin_read_DMA2_3_CURR_Y_COUNT() bfin_read16(DMA2_3_CURR_Y_COUNT)
  1033. #define bfin_write_DMA2_3_CURR_Y_COUNT(val) bfin_write16(DMA2_3_CURR_Y_COUNT,val)
  1034. #define bfin_read_DMA2_3_IRQ_STATUS() bfin_read16(DMA2_3_IRQ_STATUS)
  1035. #define bfin_write_DMA2_3_IRQ_STATUS(val) bfin_write16(DMA2_3_IRQ_STATUS,val)
  1036. #define bfin_read_DMA2_3_PERIPHERAL_MAP() bfin_read16(DMA2_3_PERIPHERAL_MAP)
  1037. #define bfin_write_DMA2_3_PERIPHERAL_MAP(val) bfin_write16(DMA2_3_PERIPHERAL_MAP,val)
  1038. #define bfin_read_DMA2_4_CONFIG() bfin_read16(DMA2_4_CONFIG)
  1039. #define bfin_write_DMA2_4_CONFIG(val) bfin_write16(DMA2_4_CONFIG,val)
  1040. #define bfin_read_DMA2_4_NEXT_DESC_PTR() bfin_read32(DMA2_4_NEXT_DESC_PTR)
  1041. #define bfin_write_DMA2_4_NEXT_DESC_PTR(val) bfin_write32(DMA2_4_NEXT_DESC_PTR,val)
  1042. #define bfin_read_DMA2_4_START_ADDR() bfin_read32(DMA2_4_START_ADDR)
  1043. #define bfin_write_DMA2_4_START_ADDR(val) bfin_write32(DMA2_4_START_ADDR,val)
  1044. #define bfin_read_DMA2_4_X_COUNT() bfin_read16(DMA2_4_X_COUNT)
  1045. #define bfin_write_DMA2_4_X_COUNT(val) bfin_write16(DMA2_4_X_COUNT,val)
  1046. #define bfin_read_DMA2_4_Y_COUNT() bfin_read16(DMA2_4_Y_COUNT)
  1047. #define bfin_write_DMA2_4_Y_COUNT(val) bfin_write16(DMA2_4_Y_COUNT,val)
  1048. #define bfin_read_DMA2_4_X_MODIFY() bfin_read16(DMA2_4_X_MODIFY)
  1049. #define bfin_write_DMA2_4_X_MODIFY(val) bfin_write16(DMA2_4_X_MODIFY,val)
  1050. #define bfin_read_DMA2_4_Y_MODIFY() bfin_read16(DMA2_4_Y_MODIFY)
  1051. #define bfin_write_DMA2_4_Y_MODIFY(val) bfin_write16(DMA2_4_Y_MODIFY,val)
  1052. #define bfin_read_DMA2_4_CURR_DESC_PTR() bfin_read32(DMA2_4_CURR_DESC_PTR)
  1053. #define bfin_write_DMA2_4_CURR_DESC_PTR(val) bfin_write32(DMA2_4_CURR_DESC_PTR,val)
  1054. #define bfin_read_DMA2_4_CURR_ADDR() bfin_read32(DMA2_4_CURR_ADDR)
  1055. #define bfin_write_DMA2_4_CURR_ADDR(val) bfin_write32(DMA2_4_CURR_ADDR,val)
  1056. #define bfin_read_DMA2_4_CURR_X_COUNT() bfin_read16(DMA2_4_CURR_X_COUNT)
  1057. #define bfin_write_DMA2_4_CURR_X_COUNT(val) bfin_write16(DMA2_4_CURR_X_COUNT,val)
  1058. #define bfin_read_DMA2_4_CURR_Y_COUNT() bfin_read16(DMA2_4_CURR_Y_COUNT)
  1059. #define bfin_write_DMA2_4_CURR_Y_COUNT(val) bfin_write16(DMA2_4_CURR_Y_COUNT,val)
  1060. #define bfin_read_DMA2_4_IRQ_STATUS() bfin_read16(DMA2_4_IRQ_STATUS)
  1061. #define bfin_write_DMA2_4_IRQ_STATUS(val) bfin_write16(DMA2_4_IRQ_STATUS,val)
  1062. #define bfin_read_DMA2_4_PERIPHERAL_MAP() bfin_read16(DMA2_4_PERIPHERAL_MAP)
  1063. #define bfin_write_DMA2_4_PERIPHERAL_MAP(val) bfin_write16(DMA2_4_PERIPHERAL_MAP,val)
  1064. #define bfin_read_DMA2_5_CONFIG() bfin_read16(DMA2_5_CONFIG)
  1065. #define bfin_write_DMA2_5_CONFIG(val) bfin_write16(DMA2_5_CONFIG,val)
  1066. #define bfin_read_DMA2_5_NEXT_DESC_PTR() bfin_read32(DMA2_5_NEXT_DESC_PTR)
  1067. #define bfin_write_DMA2_5_NEXT_DESC_PTR(val) bfin_write32(DMA2_5_NEXT_DESC_PTR,val)
  1068. #define bfin_read_DMA2_5_START_ADDR() bfin_read32(DMA2_5_START_ADDR)
  1069. #define bfin_write_DMA2_5_START_ADDR(val) bfin_write32(DMA2_5_START_ADDR,val)
  1070. #define bfin_read_DMA2_5_X_COUNT() bfin_read16(DMA2_5_X_COUNT)
  1071. #define bfin_write_DMA2_5_X_COUNT(val) bfin_write16(DMA2_5_X_COUNT,val)
  1072. #define bfin_read_DMA2_5_Y_COUNT() bfin_read16(DMA2_5_Y_COUNT)
  1073. #define bfin_write_DMA2_5_Y_COUNT(val) bfin_write16(DMA2_5_Y_COUNT,val)
  1074. #define bfin_read_DMA2_5_X_MODIFY() bfin_read16(DMA2_5_X_MODIFY)
  1075. #define bfin_write_DMA2_5_X_MODIFY(val) bfin_write16(DMA2_5_X_MODIFY,val)
  1076. #define bfin_read_DMA2_5_Y_MODIFY() bfin_read16(DMA2_5_Y_MODIFY)
  1077. #define bfin_write_DMA2_5_Y_MODIFY(val) bfin_write16(DMA2_5_Y_MODIFY,val)
  1078. #define bfin_read_DMA2_5_CURR_DESC_PTR() bfin_read32(DMA2_5_CURR_DESC_PTR)
  1079. #define bfin_write_DMA2_5_CURR_DESC_PTR(val) bfin_write32(DMA2_5_CURR_DESC_PTR,val)
  1080. #define bfin_read_DMA2_5_CURR_ADDR() bfin_read32(DMA2_5_CURR_ADDR)
  1081. #define bfin_write_DMA2_5_CURR_ADDR(val) bfin_write32(DMA2_5_CURR_ADDR,val)
  1082. #define bfin_read_DMA2_5_CURR_X_COUNT() bfin_read16(DMA2_5_CURR_X_COUNT)
  1083. #define bfin_write_DMA2_5_CURR_X_COUNT(val) bfin_write16(DMA2_5_CURR_X_COUNT,val)
  1084. #define bfin_read_DMA2_5_CURR_Y_COUNT() bfin_read16(DMA2_5_CURR_Y_COUNT)
  1085. #define bfin_write_DMA2_5_CURR_Y_COUNT(val) bfin_write16(DMA2_5_CURR_Y_COUNT,val)
  1086. #define bfin_read_DMA2_5_IRQ_STATUS() bfin_read16(DMA2_5_IRQ_STATUS)
  1087. #define bfin_write_DMA2_5_IRQ_STATUS(val) bfin_write16(DMA2_5_IRQ_STATUS,val)
  1088. #define bfin_read_DMA2_5_PERIPHERAL_MAP() bfin_read16(DMA2_5_PERIPHERAL_MAP)
  1089. #define bfin_write_DMA2_5_PERIPHERAL_MAP(val) bfin_write16(DMA2_5_PERIPHERAL_MAP,val)
  1090. #define bfin_read_DMA2_6_CONFIG() bfin_read16(DMA2_6_CONFIG)
  1091. #define bfin_write_DMA2_6_CONFIG(val) bfin_write16(DMA2_6_CONFIG,val)
  1092. #define bfin_read_DMA2_6_NEXT_DESC_PTR() bfin_read32(DMA2_6_NEXT_DESC_PTR)
  1093. #define bfin_write_DMA2_6_NEXT_DESC_PTR(val) bfin_write32(DMA2_6_NEXT_DESC_PTR,val)
  1094. #define bfin_read_DMA2_6_START_ADDR() bfin_read32(DMA2_6_START_ADDR)
  1095. #define bfin_write_DMA2_6_START_ADDR(val) bfin_write32(DMA2_6_START_ADDR,val)
  1096. #define bfin_read_DMA2_6_X_COUNT() bfin_read16(DMA2_6_X_COUNT)
  1097. #define bfin_write_DMA2_6_X_COUNT(val) bfin_write16(DMA2_6_X_COUNT,val)
  1098. #define bfin_read_DMA2_6_Y_COUNT() bfin_read16(DMA2_6_Y_COUNT)
  1099. #define bfin_write_DMA2_6_Y_COUNT(val) bfin_write16(DMA2_6_Y_COUNT,val)
  1100. #define bfin_read_DMA2_6_X_MODIFY() bfin_read16(DMA2_6_X_MODIFY)
  1101. #define bfin_write_DMA2_6_X_MODIFY(val) bfin_write16(DMA2_6_X_MODIFY,val)
  1102. #define bfin_read_DMA2_6_Y_MODIFY() bfin_read16(DMA2_6_Y_MODIFY)
  1103. #define bfin_write_DMA2_6_Y_MODIFY(val) bfin_write16(DMA2_6_Y_MODIFY,val)
  1104. #define bfin_read_DMA2_6_CURR_DESC_PTR() bfin_read32(DMA2_6_CURR_DESC_PTR)
  1105. #define bfin_write_DMA2_6_CURR_DESC_PTR(val) bfin_write32(DMA2_6_CURR_DESC_PTR,val)
  1106. #define bfin_read_DMA2_6_CURR_ADDR() bfin_read32(DMA2_6_CURR_ADDR)
  1107. #define bfin_write_DMA2_6_CURR_ADDR(val) bfin_write32(DMA2_6_CURR_ADDR,val)
  1108. #define bfin_read_DMA2_6_CURR_X_COUNT() bfin_read16(DMA2_6_CURR_X_COUNT)
  1109. #define bfin_write_DMA2_6_CURR_X_COUNT(val) bfin_write16(DMA2_6_CURR_X_COUNT,val)
  1110. #define bfin_read_DMA2_6_CURR_Y_COUNT() bfin_read16(DMA2_6_CURR_Y_COUNT)
  1111. #define bfin_write_DMA2_6_CURR_Y_COUNT(val) bfin_write16(DMA2_6_CURR_Y_COUNT,val)
  1112. #define bfin_read_DMA2_6_IRQ_STATUS() bfin_read16(DMA2_6_IRQ_STATUS)
  1113. #define bfin_write_DMA2_6_IRQ_STATUS(val) bfin_write16(DMA2_6_IRQ_STATUS,val)
  1114. #define bfin_read_DMA2_6_PERIPHERAL_MAP() bfin_read16(DMA2_6_PERIPHERAL_MAP)
  1115. #define bfin_write_DMA2_6_PERIPHERAL_MAP(val) bfin_write16(DMA2_6_PERIPHERAL_MAP,val)
  1116. #define bfin_read_DMA2_7_CONFIG() bfin_read16(DMA2_7_CONFIG)
  1117. #define bfin_write_DMA2_7_CONFIG(val) bfin_write16(DMA2_7_CONFIG,val)
  1118. #define bfin_read_DMA2_7_NEXT_DESC_PTR() bfin_read32(DMA2_7_NEXT_DESC_PTR)
  1119. #define bfin_write_DMA2_7_NEXT_DESC_PTR(val) bfin_write32(DMA2_7_NEXT_DESC_PTR,val)
  1120. #define bfin_read_DMA2_7_START_ADDR() bfin_read32(DMA2_7_START_ADDR)
  1121. #define bfin_write_DMA2_7_START_ADDR(val) bfin_write32(DMA2_7_START_ADDR,val)
  1122. #define bfin_read_DMA2_7_X_COUNT() bfin_read16(DMA2_7_X_COUNT)
  1123. #define bfin_write_DMA2_7_X_COUNT(val) bfin_write16(DMA2_7_X_COUNT,val)
  1124. #define bfin_read_DMA2_7_Y_COUNT() bfin_read16(DMA2_7_Y_COUNT)
  1125. #define bfin_write_DMA2_7_Y_COUNT(val) bfin_write16(DMA2_7_Y_COUNT,val)
  1126. #define bfin_read_DMA2_7_X_MODIFY() bfin_read16(DMA2_7_X_MODIFY)
  1127. #define bfin_write_DMA2_7_X_MODIFY(val) bfin_write16(DMA2_7_X_MODIFY,val)
  1128. #define bfin_read_DMA2_7_Y_MODIFY() bfin_read16(DMA2_7_Y_MODIFY)
  1129. #define bfin_write_DMA2_7_Y_MODIFY(val) bfin_write16(DMA2_7_Y_MODIFY,val)
  1130. #define bfin_read_DMA2_7_CURR_DESC_PTR() bfin_read32(DMA2_7_CURR_DESC_PTR)
  1131. #define bfin_write_DMA2_7_CURR_DESC_PTR(val) bfin_write32(DMA2_7_CURR_DESC_PTR,val)
  1132. #define bfin_read_DMA2_7_CURR_ADDR() bfin_read32(DMA2_7_CURR_ADDR)
  1133. #define bfin_write_DMA2_7_CURR_ADDR(val) bfin_write32(DMA2_7_CURR_ADDR,val)
  1134. #define bfin_read_DMA2_7_CURR_X_COUNT() bfin_read16(DMA2_7_CURR_X_COUNT)
  1135. #define bfin_write_DMA2_7_CURR_X_COUNT(val) bfin_write16(DMA2_7_CURR_X_COUNT,val)
  1136. #define bfin_read_DMA2_7_CURR_Y_COUNT() bfin_read16(DMA2_7_CURR_Y_COUNT)
  1137. #define bfin_write_DMA2_7_CURR_Y_COUNT(val) bfin_write16(DMA2_7_CURR_Y_COUNT,val)
  1138. #define bfin_read_DMA2_7_IRQ_STATUS() bfin_read16(DMA2_7_IRQ_STATUS)
  1139. #define bfin_write_DMA2_7_IRQ_STATUS(val) bfin_write16(DMA2_7_IRQ_STATUS,val)
  1140. #define bfin_read_DMA2_7_PERIPHERAL_MAP() bfin_read16(DMA2_7_PERIPHERAL_MAP)
  1141. #define bfin_write_DMA2_7_PERIPHERAL_MAP(val) bfin_write16(DMA2_7_PERIPHERAL_MAP,val)
  1142. #define bfin_read_DMA2_8_CONFIG() bfin_read16(DMA2_8_CONFIG)
  1143. #define bfin_write_DMA2_8_CONFIG(val) bfin_write16(DMA2_8_CONFIG,val)
  1144. #define bfin_read_DMA2_8_NEXT_DESC_PTR() bfin_read32(DMA2_8_NEXT_DESC_PTR)
  1145. #define bfin_write_DMA2_8_NEXT_DESC_PTR(val) bfin_write32(DMA2_8_NEXT_DESC_PTR,val)
  1146. #define bfin_read_DMA2_8_START_ADDR() bfin_read32(DMA2_8_START_ADDR)
  1147. #define bfin_write_DMA2_8_START_ADDR(val) bfin_write32(DMA2_8_START_ADDR,val)
  1148. #define bfin_read_DMA2_8_X_COUNT() bfin_read16(DMA2_8_X_COUNT)
  1149. #define bfin_write_DMA2_8_X_COUNT(val) bfin_write16(DMA2_8_X_COUNT,val)
  1150. #define bfin_read_DMA2_8_Y_COUNT() bfin_read16(DMA2_8_Y_COUNT)
  1151. #define bfin_write_DMA2_8_Y_COUNT(val) bfin_write16(DMA2_8_Y_COUNT,val)
  1152. #define bfin_read_DMA2_8_X_MODIFY() bfin_read16(DMA2_8_X_MODIFY)
  1153. #define bfin_write_DMA2_8_X_MODIFY(val) bfin_write16(DMA2_8_X_MODIFY,val)
  1154. #define bfin_read_DMA2_8_Y_MODIFY() bfin_read16(DMA2_8_Y_MODIFY)
  1155. #define bfin_write_DMA2_8_Y_MODIFY(val) bfin_write16(DMA2_8_Y_MODIFY,val)
  1156. #define bfin_read_DMA2_8_CURR_DESC_PTR() bfin_read32(DMA2_8_CURR_DESC_PTR)
  1157. #define bfin_write_DMA2_8_CURR_DESC_PTR(val) bfin_write32(DMA2_8_CURR_DESC_PTR,val)
  1158. #define bfin_read_DMA2_8_CURR_ADDR() bfin_read32(DMA2_8_CURR_ADDR)
  1159. #define bfin_write_DMA2_8_CURR_ADDR(val) bfin_write32(DMA2_8_CURR_ADDR,val)
  1160. #define bfin_read_DMA2_8_CURR_X_COUNT() bfin_read16(DMA2_8_CURR_X_COUNT)
  1161. #define bfin_write_DMA2_8_CURR_X_COUNT(val) bfin_write16(DMA2_8_CURR_X_COUNT,val)
  1162. #define bfin_read_DMA2_8_CURR_Y_COUNT() bfin_read16(DMA2_8_CURR_Y_COUNT)
  1163. #define bfin_write_DMA2_8_CURR_Y_COUNT(val) bfin_write16(DMA2_8_CURR_Y_COUNT,val)
  1164. #define bfin_read_DMA2_8_IRQ_STATUS() bfin_read16(DMA2_8_IRQ_STATUS)
  1165. #define bfin_write_DMA2_8_IRQ_STATUS(val) bfin_write16(DMA2_8_IRQ_STATUS,val)
  1166. #define bfin_read_DMA2_8_PERIPHERAL_MAP() bfin_read16(DMA2_8_PERIPHERAL_MAP)
  1167. #define bfin_write_DMA2_8_PERIPHERAL_MAP(val) bfin_write16(DMA2_8_PERIPHERAL_MAP,val)
  1168. #define bfin_read_DMA2_9_CONFIG() bfin_read16(DMA2_9_CONFIG)
  1169. #define bfin_write_DMA2_9_CONFIG(val) bfin_write16(DMA2_9_CONFIG,val)
  1170. #define bfin_read_DMA2_9_NEXT_DESC_PTR() bfin_read32(DMA2_9_NEXT_DESC_PTR)
  1171. #define bfin_write_DMA2_9_NEXT_DESC_PTR(val) bfin_write32(DMA2_9_NEXT_DESC_PTR,val)
  1172. #define bfin_read_DMA2_9_START_ADDR() bfin_read32(DMA2_9_START_ADDR)
  1173. #define bfin_write_DMA2_9_START_ADDR(val) bfin_write32(DMA2_9_START_ADDR,val)
  1174. #define bfin_read_DMA2_9_X_COUNT() bfin_read16(DMA2_9_X_COUNT)
  1175. #define bfin_write_DMA2_9_X_COUNT(val) bfin_write16(DMA2_9_X_COUNT,val)
  1176. #define bfin_read_DMA2_9_Y_COUNT() bfin_read16(DMA2_9_Y_COUNT)
  1177. #define bfin_write_DMA2_9_Y_COUNT(val) bfin_write16(DMA2_9_Y_COUNT,val)
  1178. #define bfin_read_DMA2_9_X_MODIFY() bfin_read16(DMA2_9_X_MODIFY)
  1179. #define bfin_write_DMA2_9_X_MODIFY(val) bfin_write16(DMA2_9_X_MODIFY,val)
  1180. #define bfin_read_DMA2_9_Y_MODIFY() bfin_read16(DMA2_9_Y_MODIFY)
  1181. #define bfin_write_DMA2_9_Y_MODIFY(val) bfin_write16(DMA2_9_Y_MODIFY,val)
  1182. #define bfin_read_DMA2_9_CURR_DESC_PTR() bfin_read32(DMA2_9_CURR_DESC_PTR)
  1183. #define bfin_write_DMA2_9_CURR_DESC_PTR(val) bfin_write32(DMA2_9_CURR_DESC_PTR,val)
  1184. #define bfin_read_DMA2_9_CURR_ADDR() bfin_read32(DMA2_9_CURR_ADDR)
  1185. #define bfin_write_DMA2_9_CURR_ADDR(val) bfin_write32(DMA2_9_CURR_ADDR,val)
  1186. #define bfin_read_DMA2_9_CURR_X_COUNT() bfin_read16(DMA2_9_CURR_X_COUNT)
  1187. #define bfin_write_DMA2_9_CURR_X_COUNT(val) bfin_write16(DMA2_9_CURR_X_COUNT,val)
  1188. #define bfin_read_DMA2_9_CURR_Y_COUNT() bfin_read16(DMA2_9_CURR_Y_COUNT)
  1189. #define bfin_write_DMA2_9_CURR_Y_COUNT(val) bfin_write16(DMA2_9_CURR_Y_COUNT,val)
  1190. #define bfin_read_DMA2_9_IRQ_STATUS() bfin_read16(DMA2_9_IRQ_STATUS)
  1191. #define bfin_write_DMA2_9_IRQ_STATUS(val) bfin_write16(DMA2_9_IRQ_STATUS,val)
  1192. #define bfin_read_DMA2_9_PERIPHERAL_MAP() bfin_read16(DMA2_9_PERIPHERAL_MAP)
  1193. #define bfin_write_DMA2_9_PERIPHERAL_MAP(val) bfin_write16(DMA2_9_PERIPHERAL_MAP,val)
  1194. #define bfin_read_DMA2_10_CONFIG() bfin_read16(DMA2_10_CONFIG)
  1195. #define bfin_write_DMA2_10_CONFIG(val) bfin_write16(DMA2_10_CONFIG,val)
  1196. #define bfin_read_DMA2_10_NEXT_DESC_PTR() bfin_read32(DMA2_10_NEXT_DESC_PTR)
  1197. #define bfin_write_DMA2_10_NEXT_DESC_PTR(val) bfin_write32(DMA2_10_NEXT_DESC_PTR,val)
  1198. #define bfin_read_DMA2_10_START_ADDR() bfin_read32(DMA2_10_START_ADDR)
  1199. #define bfin_write_DMA2_10_START_ADDR(val) bfin_write32(DMA2_10_START_ADDR,val)
  1200. #define bfin_read_DMA2_10_X_COUNT() bfin_read16(DMA2_10_X_COUNT)
  1201. #define bfin_write_DMA2_10_X_COUNT(val) bfin_write16(DMA2_10_X_COUNT,val)
  1202. #define bfin_read_DMA2_10_Y_COUNT() bfin_read16(DMA2_10_Y_COUNT)
  1203. #define bfin_write_DMA2_10_Y_COUNT(val) bfin_write16(DMA2_10_Y_COUNT,val)
  1204. #define bfin_read_DMA2_10_X_MODIFY() bfin_read16(DMA2_10_X_MODIFY)
  1205. #define bfin_write_DMA2_10_X_MODIFY(val) bfin_write16(DMA2_10_X_MODIFY,val)
  1206. #define bfin_read_DMA2_10_Y_MODIFY() bfin_read16(DMA2_10_Y_MODIFY)
  1207. #define bfin_write_DMA2_10_Y_MODIFY(val) bfin_write16(DMA2_10_Y_MODIFY,val)
  1208. #define bfin_read_DMA2_10_CURR_DESC_PTR() bfin_read32(DMA2_10_CURR_DESC_PTR)
  1209. #define bfin_write_DMA2_10_CURR_DESC_PTR(val) bfin_write32(DMA2_10_CURR_DESC_PTR,val)
  1210. #define bfin_read_DMA2_10_CURR_ADDR() bfin_read32(DMA2_10_CURR_ADDR)
  1211. #define bfin_write_DMA2_10_CURR_ADDR(val) bfin_write32(DMA2_10_CURR_ADDR,val)
  1212. #define bfin_read_DMA2_10_CURR_X_COUNT() bfin_read16(DMA2_10_CURR_X_COUNT)
  1213. #define bfin_write_DMA2_10_CURR_X_COUNT(val) bfin_write16(DMA2_10_CURR_X_COUNT,val)
  1214. #define bfin_read_DMA2_10_CURR_Y_COUNT() bfin_read16(DMA2_10_CURR_Y_COUNT)
  1215. #define bfin_write_DMA2_10_CURR_Y_COUNT(val) bfin_write16(DMA2_10_CURR_Y_COUNT,val)
  1216. #define bfin_read_DMA2_10_IRQ_STATUS() bfin_read16(DMA2_10_IRQ_STATUS)
  1217. #define bfin_write_DMA2_10_IRQ_STATUS(val) bfin_write16(DMA2_10_IRQ_STATUS,val)
  1218. #define bfin_read_DMA2_10_PERIPHERAL_MAP() bfin_read16(DMA2_10_PERIPHERAL_MAP)
  1219. #define bfin_write_DMA2_10_PERIPHERAL_MAP(val) bfin_write16(DMA2_10_PERIPHERAL_MAP,val)
  1220. #define bfin_read_DMA2_11_CONFIG() bfin_read16(DMA2_11_CONFIG)
  1221. #define bfin_write_DMA2_11_CONFIG(val) bfin_write16(DMA2_11_CONFIG,val)
  1222. #define bfin_read_DMA2_11_NEXT_DESC_PTR() bfin_read32(DMA2_11_NEXT_DESC_PTR)
  1223. #define bfin_write_DMA2_11_NEXT_DESC_PTR(val) bfin_write32(DMA2_11_NEXT_DESC_PTR,val)
  1224. #define bfin_read_DMA2_11_START_ADDR() bfin_read32(DMA2_11_START_ADDR)
  1225. #define bfin_write_DMA2_11_START_ADDR(val) bfin_write32(DMA2_11_START_ADDR,val)
  1226. #define bfin_read_DMA2_11_X_COUNT() bfin_read16(DMA2_11_X_COUNT)
  1227. #define bfin_write_DMA2_11_X_COUNT(val) bfin_write16(DMA2_11_X_COUNT,val)
  1228. #define bfin_read_DMA2_11_Y_COUNT() bfin_read16(DMA2_11_Y_COUNT)
  1229. #define bfin_write_DMA2_11_Y_COUNT(val) bfin_write16(DMA2_11_Y_COUNT,val)
  1230. #define bfin_read_DMA2_11_X_MODIFY() bfin_read16(DMA2_11_X_MODIFY)
  1231. #define bfin_write_DMA2_11_X_MODIFY(val) bfin_write16(DMA2_11_X_MODIFY,val)
  1232. #define bfin_read_DMA2_11_Y_MODIFY() bfin_read16(DMA2_11_Y_MODIFY)
  1233. #define bfin_write_DMA2_11_Y_MODIFY(val) bfin_write16(DMA2_11_Y_MODIFY,val)
  1234. #define bfin_read_DMA2_11_CURR_DESC_PTR() bfin_read32(DMA2_11_CURR_DESC_PTR)
  1235. #define bfin_write_DMA2_11_CURR_DESC_PTR(val) bfin_write32(DMA2_11_CURR_DESC_PTR,val)
  1236. #define bfin_read_DMA2_11_CURR_ADDR() bfin_read32(DMA2_11_CURR_ADDR)
  1237. #define bfin_write_DMA2_11_CURR_ADDR(val) bfin_write32(DMA2_11_CURR_ADDR,val)
  1238. #define bfin_read_DMA2_11_CURR_X_COUNT() bfin_read16(DMA2_11_CURR_X_COUNT)
  1239. #define bfin_write_DMA2_11_CURR_X_COUNT(val) bfin_write16(DMA2_11_CURR_X_COUNT,val)
  1240. #define bfin_read_DMA2_11_CURR_Y_COUNT() bfin_read16(DMA2_11_CURR_Y_COUNT)
  1241. #define bfin_write_DMA2_11_CURR_Y_COUNT(val) bfin_write16(DMA2_11_CURR_Y_COUNT,val)
  1242. #define bfin_read_DMA2_11_IRQ_STATUS() bfin_read16(DMA2_11_IRQ_STATUS)
  1243. #define bfin_write_DMA2_11_IRQ_STATUS(val) bfin_write16(DMA2_11_IRQ_STATUS,val)
  1244. #define bfin_read_DMA2_11_PERIPHERAL_MAP() bfin_read16(DMA2_11_PERIPHERAL_MAP)
  1245. #define bfin_write_DMA2_11_PERIPHERAL_MAP(val) bfin_write16(DMA2_11_PERIPHERAL_MAP,val)
  1246. /* Memory DMA2 Controller registers (0xFFC0 0E80-0xFFC0 0FFF) */
  1247. #define bfin_read_MDMA_D0_CONFIG() bfin_read16(MDMA_D0_CONFIG)
  1248. #define bfin_write_MDMA_D0_CONFIG(val) bfin_write16(MDMA_D0_CONFIG,val)
  1249. #define bfin_read_MDMA_D0_NEXT_DESC_PTR() bfin_read32(MDMA_D0_NEXT_DESC_PTR)
  1250. #define bfin_write_MDMA_D0_NEXT_DESC_PTR(val) bfin_write32(MDMA_D0_NEXT_DESC_PTR,val)
  1251. #define bfin_read_MDMA_D0_START_ADDR() bfin_read32(MDMA_D0_START_ADDR)
  1252. #define bfin_write_MDMA_D0_START_ADDR(val) bfin_write32(MDMA_D0_START_ADDR,val)
  1253. #define bfin_read_MDMA_D0_X_COUNT() bfin_read16(MDMA_D0_X_COUNT)
  1254. #define bfin_write_MDMA_D0_X_COUNT(val) bfin_write16(MDMA_D0_X_COUNT,val)
  1255. #define bfin_read_MDMA_D0_Y_COUNT() bfin_read16(MDMA_D0_Y_COUNT)
  1256. #define bfin_write_MDMA_D0_Y_COUNT(val) bfin_write16(MDMA_D0_Y_COUNT,val)
  1257. #define bfin_read_MDMA_D0_X_MODIFY() bfin_read16(MDMA_D0_X_MODIFY)
  1258. #define bfin_write_MDMA_D0_X_MODIFY(val) bfin_write16(MDMA_D0_X_MODIFY,val)
  1259. #define bfin_read_MDMA_D0_Y_MODIFY() bfin_read16(MDMA_D0_Y_MODIFY)
  1260. #define bfin_write_MDMA_D0_Y_MODIFY(val) bfin_write16(MDMA_D0_Y_MODIFY,val)
  1261. #define bfin_read_MDMA_D0_CURR_DESC_PTR() bfin_read32(MDMA_D0_CURR_DESC_PTR)
  1262. #define bfin_write_MDMA_D0_CURR_DESC_PTR(val) bfin_write32(MDMA_D0_CURR_DESC_PTR,val)
  1263. #define bfin_read_MDMA_D0_CURR_ADDR() bfin_read32(MDMA_D0_CURR_ADDR)
  1264. #define bfin_write_MDMA_D0_CURR_ADDR(val) bfin_write32(MDMA_D0_CURR_ADDR,val)
  1265. #define bfin_read_MDMA_D0_CURR_X_COUNT() bfin_read16(MDMA_D0_CURR_X_COUNT)
  1266. #define bfin_write_MDMA_D0_CURR_X_COUNT(val) bfin_write16(MDMA_D0_CURR_X_COUNT,val)
  1267. #define bfin_read_MDMA_D0_CURR_Y_COUNT() bfin_read16(MDMA_D0_CURR_Y_COUNT)
  1268. #define bfin_write_MDMA_D0_CURR_Y_COUNT(val) bfin_write16(MDMA_D0_CURR_Y_COUNT,val)
  1269. #define bfin_read_MDMA_D0_IRQ_STATUS() bfin_read16(MDMA_D0_IRQ_STATUS)
  1270. #define bfin_write_MDMA_D0_IRQ_STATUS(val) bfin_write16(MDMA_D0_IRQ_STATUS,val)
  1271. #define bfin_read_MDMA_D0_PERIPHERAL_MAP() bfin_read16(MDMA_D0_PERIPHERAL_MAP)
  1272. #define bfin_write_MDMA_D0_PERIPHERAL_MAP(val) bfin_write16(MDMA_D0_PERIPHERAL_MAP,val)
  1273. #define bfin_read_MDMA_S0_CONFIG() bfin_read16(MDMA_S0_CONFIG)
  1274. #define bfin_write_MDMA_S0_CONFIG(val) bfin_write16(MDMA_S0_CONFIG,val)
  1275. #define bfin_read_MDMA_S0_NEXT_DESC_PTR() bfin_read32(MDMA_S0_NEXT_DESC_PTR)
  1276. #define bfin_write_MDMA_S0_NEXT_DESC_PTR(val) bfin_write32(MDMA_S0_NEXT_DESC_PTR,val)
  1277. #define bfin_read_MDMA_S0_START_ADDR() bfin_read32(MDMA_S0_START_ADDR)
  1278. #define bfin_write_MDMA_S0_START_ADDR(val) bfin_write32(MDMA_S0_START_ADDR,val)
  1279. #define bfin_read_MDMA_S0_X_COUNT() bfin_read16(MDMA_S0_X_COUNT)
  1280. #define bfin_write_MDMA_S0_X_COUNT(val) bfin_write16(MDMA_S0_X_COUNT,val)
  1281. #define bfin_read_MDMA_S0_Y_COUNT() bfin_read16(MDMA_S0_Y_COUNT)
  1282. #define bfin_write_MDMA_S0_Y_COUNT(val) bfin_write16(MDMA_S0_Y_COUNT,val)
  1283. #define bfin_read_MDMA_S0_X_MODIFY() bfin_read16(MDMA_S0_X_MODIFY)
  1284. #define bfin_write_MDMA_S0_X_MODIFY(val) bfin_write16(MDMA_S0_X_MODIFY,val)
  1285. #define bfin_read_MDMA_S0_Y_MODIFY() bfin_read16(MDMA_S0_Y_MODIFY)
  1286. #define bfin_write_MDMA_S0_Y_MODIFY(val) bfin_write16(MDMA_S0_Y_MODIFY,val)
  1287. #define bfin_read_MDMA_S0_CURR_DESC_PTR() bfin_read32(MDMA_S0_CURR_DESC_PTR)
  1288. #define bfin_write_MDMA_S0_CURR_DESC_PTR(val) bfin_write32(MDMA_S0_CURR_DESC_PTR,val)
  1289. #define bfin_read_MDMA_S0_CURR_ADDR() bfin_read32(MDMA_S0_CURR_ADDR)
  1290. #define bfin_write_MDMA_S0_CURR_ADDR(val) bfin_write32(MDMA_S0_CURR_ADDR,val)
  1291. #define bfin_read_MDMA_S0_CURR_X_COUNT() bfin_read16(MDMA_S0_CURR_X_COUNT)
  1292. #define bfin_write_MDMA_S0_CURR_X_COUNT(val) bfin_write16(MDMA_S0_CURR_X_COUNT,val)
  1293. #define bfin_read_MDMA_S0_CURR_Y_COUNT() bfin_read16(MDMA_S0_CURR_Y_COUNT)
  1294. #define bfin_write_MDMA_S0_CURR_Y_COUNT(val) bfin_write16(MDMA_S0_CURR_Y_COUNT,val)
  1295. #define bfin_read_MDMA_S0_IRQ_STATUS() bfin_read16(MDMA_S0_IRQ_STATUS)
  1296. #define bfin_write_MDMA_S0_IRQ_STATUS(val) bfin_write16(MDMA_S0_IRQ_STATUS,val)
  1297. #define bfin_read_MDMA_S0_PERIPHERAL_MAP() bfin_read16(MDMA_S0_PERIPHERAL_MAP)
  1298. #define bfin_write_MDMA_S0_PERIPHERAL_MAP(val) bfin_write16(MDMA_S0_PERIPHERAL_MAP,val)
  1299. #define bfin_read_MDMA_D1_CONFIG() bfin_read16(MDMA_D1_CONFIG)
  1300. #define bfin_write_MDMA_D1_CONFIG(val) bfin_write16(MDMA_D1_CONFIG,val)
  1301. #define bfin_read_MDMA_D1_NEXT_DESC_PTR() bfin_read32(MDMA_D1_NEXT_DESC_PTR)
  1302. #define bfin_write_MDMA_D1_NEXT_DESC_PTR(val) bfin_write32(MDMA_D1_NEXT_DESC_PTR,val)
  1303. #define bfin_read_MDMA_D1_START_ADDR() bfin_read32(MDMA_D1_START_ADDR)
  1304. #define bfin_write_MDMA_D1_START_ADDR(val) bfin_write32(MDMA_D1_START_ADDR,val)
  1305. #define bfin_read_MDMA_D1_X_COUNT() bfin_read16(MDMA_D1_X_COUNT)
  1306. #define bfin_write_MDMA_D1_X_COUNT(val) bfin_write16(MDMA_D1_X_COUNT,val)
  1307. #define bfin_read_MDMA_D1_Y_COUNT() bfin_read16(MDMA_D1_Y_COUNT)
  1308. #define bfin_write_MDMA_D1_Y_COUNT(val) bfin_write16(MDMA_D1_Y_COUNT,val)
  1309. #define bfin_read_MDMA_D1_X_MODIFY() bfin_read16(MDMA_D1_X_MODIFY)
  1310. #define bfin_write_MDMA_D1_X_MODIFY(val) bfin_write16(MDMA_D1_X_MODIFY,val)
  1311. #define bfin_read_MDMA_D1_Y_MODIFY() bfin_read16(MDMA_D1_Y_MODIFY)
  1312. #define bfin_write_MDMA_D1_Y_MODIFY(val) bfin_write16(MDMA_D1_Y_MODIFY,val)
  1313. #define bfin_read_MDMA_D1_CURR_DESC_PTR() bfin_read32(MDMA_D1_CURR_DESC_PTR)
  1314. #define bfin_write_MDMA_D1_CURR_DESC_PTR(val) bfin_write32(MDMA_D1_CURR_DESC_PTR,val)
  1315. #define bfin_read_MDMA_D1_CURR_ADDR() bfin_read32(MDMA_D1_CURR_ADDR)
  1316. #define bfin_write_MDMA_D1_CURR_ADDR(val) bfin_write32(MDMA_D1_CURR_ADDR,val)
  1317. #define bfin_read_MDMA_D1_CURR_X_COUNT() bfin_read16(MDMA_D1_CURR_X_COUNT)
  1318. #define bfin_write_MDMA_D1_CURR_X_COUNT(val) bfin_write16(MDMA_D1_CURR_X_COUNT,val)
  1319. #define bfin_read_MDMA_D1_CURR_Y_COUNT() bfin_read16(MDMA_D1_CURR_Y_COUNT)
  1320. #define bfin_write_MDMA_D1_CURR_Y_COUNT(val) bfin_write16(MDMA_D1_CURR_Y_COUNT,val)
  1321. #define bfin_read_MDMA_D1_IRQ_STATUS() bfin_read16(MDMA_D1_IRQ_STATUS)
  1322. #define bfin_write_MDMA_D1_IRQ_STATUS(val) bfin_write16(MDMA_D1_IRQ_STATUS,val)
  1323. #define bfin_read_MDMA_D1_PERIPHERAL_MAP() bfin_read16(MDMA_D1_PERIPHERAL_MAP)
  1324. #define bfin_write_MDMA_D1_PERIPHERAL_MAP(val) bfin_write16(MDMA_D1_PERIPHERAL_MAP,val)
  1325. #define bfin_read_MDMA_S1_CONFIG() bfin_read16(MDMA_S1_CONFIG)
  1326. #define bfin_write_MDMA_S1_CONFIG(val) bfin_write16(MDMA_S1_CONFIG,val)
  1327. #define bfin_read_MDMA_S1_NEXT_DESC_PTR() bfin_read32(MDMA_S1_NEXT_DESC_PTR)
  1328. #define bfin_write_MDMA_S1_NEXT_DESC_PTR(val) bfin_write32(MDMA_S1_NEXT_DESC_PTR,val)
  1329. #define bfin_read_MDMA_S1_START_ADDR() bfin_read32(MDMA_S1_START_ADDR)
  1330. #define bfin_write_MDMA_S1_START_ADDR(val) bfin_write32(MDMA_S1_START_ADDR,val)
  1331. #define bfin_read_MDMA_S1_X_COUNT() bfin_read16(MDMA_S1_X_COUNT)
  1332. #define bfin_write_MDMA_S1_X_COUNT(val) bfin_write16(MDMA_S1_X_COUNT,val)
  1333. #define bfin_read_MDMA_S1_Y_COUNT() bfin_read16(MDMA_S1_Y_COUNT)
  1334. #define bfin_write_MDMA_S1_Y_COUNT(val) bfin_write16(MDMA_S1_Y_COUNT,val)
  1335. #define bfin_read_MDMA_S1_X_MODIFY() bfin_read16(MDMA_S1_X_MODIFY)
  1336. #define bfin_write_MDMA_S1_X_MODIFY(val) bfin_write16(MDMA_S1_X_MODIFY,val)
  1337. #define bfin_read_MDMA_S1_Y_MODIFY() bfin_read16(MDMA_S1_Y_MODIFY)
  1338. #define bfin_write_MDMA_S1_Y_MODIFY(val) bfin_write16(MDMA_S1_Y_MODIFY,val)
  1339. #define bfin_read_MDMA_S1_CURR_DESC_PTR() bfin_read32(MDMA_S1_CURR_DESC_PTR)
  1340. #define bfin_write_MDMA_S1_CURR_DESC_PTR(val) bfin_write32(MDMA_S1_CURR_DESC_PTR,val)
  1341. #define bfin_read_MDMA_S1_CURR_ADDR() bfin_read32(MDMA_S1_CURR_ADDR)
  1342. #define bfin_write_MDMA_S1_CURR_ADDR(val) bfin_write32(MDMA_S1_CURR_ADDR,val)
  1343. #define bfin_read_MDMA_S1_CURR_X_COUNT() bfin_read16(MDMA_S1_CURR_X_COUNT)
  1344. #define bfin_write_MDMA_S1_CURR_X_COUNT(val) bfin_write16(MDMA_S1_CURR_X_COUNT,val)
  1345. #define bfin_read_MDMA_S1_CURR_Y_COUNT() bfin_read16(MDMA_S1_CURR_Y_COUNT)
  1346. #define bfin_write_MDMA_S1_CURR_Y_COUNT(val) bfin_write16(MDMA_S1_CURR_Y_COUNT,val)
  1347. #define bfin_read_MDMA_S1_IRQ_STATUS() bfin_read16(MDMA_S1_IRQ_STATUS)
  1348. #define bfin_write_MDMA_S1_IRQ_STATUS(val) bfin_write16(MDMA_S1_IRQ_STATUS,val)
  1349. #define bfin_read_MDMA_S1_PERIPHERAL_MAP() bfin_read16(MDMA_S1_PERIPHERAL_MAP)
  1350. #define bfin_write_MDMA_S1_PERIPHERAL_MAP(val) bfin_write16(MDMA_S1_PERIPHERAL_MAP,val)
  1351. /* Internal Memory DMA Registers (0xFFC0_1800 - 0xFFC0_19FF) */
  1352. #define bfin_read_IMDMA_D0_CONFIG() bfin_read16(IMDMA_D0_CONFIG)
  1353. #define bfin_write_IMDMA_D0_CONFIG(val) bfin_write16(IMDMA_D0_CONFIG,val)
  1354. #define bfin_read_IMDMA_D0_NEXT_DESC_PTR() bfin_read32(IMDMA_D0_NEXT_DESC_PTR)
  1355. #define bfin_write_IMDMA_D0_NEXT_DESC_PTR(val) bfin_write32(IMDMA_D0_NEXT_DESC_PTR,val)
  1356. #define bfin_read_IMDMA_D0_START_ADDR() bfin_read32(IMDMA_D0_START_ADDR)
  1357. #define bfin_write_IMDMA_D0_START_ADDR(val) bfin_write32(IMDMA_D0_START_ADDR,val)
  1358. #define bfin_read_IMDMA_D0_X_COUNT() bfin_read16(IMDMA_D0_X_COUNT)
  1359. #define bfin_write_IMDMA_D0_X_COUNT(val) bfin_write16(IMDMA_D0_X_COUNT,val)
  1360. #define bfin_read_IMDMA_D0_Y_COUNT() bfin_read16(IMDMA_D0_Y_COUNT)
  1361. #define bfin_write_IMDMA_D0_Y_COUNT(val) bfin_write16(IMDMA_D0_Y_COUNT,val)
  1362. #define bfin_read_IMDMA_D0_X_MODIFY() bfin_read16(IMDMA_D0_X_MODIFY)
  1363. #define bfin_write_IMDMA_D0_X_MODIFY(val) bfin_write16(IMDMA_D0_X_MODIFY,val)
  1364. #define bfin_read_IMDMA_D0_Y_MODIFY() bfin_read16(IMDMA_D0_Y_MODIFY)
  1365. #define bfin_write_IMDMA_D0_Y_MODIFY(val) bfin_write16(IMDMA_D0_Y_MODIFY,val)
  1366. #define bfin_read_IMDMA_D0_CURR_DESC_PTR() bfin_read32(IMDMA_D0_CURR_DESC_PTR)
  1367. #define bfin_write_IMDMA_D0_CURR_DESC_PTR(val) bfin_write32(IMDMA_D0_CURR_DESC_PTR,val)
  1368. #define bfin_read_IMDMA_D0_CURR_ADDR() bfin_read32(IMDMA_D0_CURR_ADDR)
  1369. #define bfin_write_IMDMA_D0_CURR_ADDR(val) bfin_write32(IMDMA_D0_CURR_ADDR,val)
  1370. #define bfin_read_IMDMA_D0_CURR_X_COUNT() bfin_read16(IMDMA_D0_CURR_X_COUNT)
  1371. #define bfin_write_IMDMA_D0_CURR_X_COUNT(val) bfin_write16(IMDMA_D0_CURR_X_COUNT,val)
  1372. #define bfin_read_IMDMA_D0_CURR_Y_COUNT() bfin_read16(IMDMA_D0_CURR_Y_COUNT)
  1373. #define bfin_write_IMDMA_D0_CURR_Y_COUNT(val) bfin_write16(IMDMA_D0_CURR_Y_COUNT,val)
  1374. #define bfin_read_IMDMA_D0_IRQ_STATUS() bfin_read16(IMDMA_D0_IRQ_STATUS)
  1375. #define bfin_write_IMDMA_D0_IRQ_STATUS(val) bfin_write16(IMDMA_D0_IRQ_STATUS,val)
  1376. #define bfin_read_IMDMA_S0_CONFIG() bfin_read16(IMDMA_S0_CONFIG)
  1377. #define bfin_write_IMDMA_S0_CONFIG(val) bfin_write16(IMDMA_S0_CONFIG,val)
  1378. #define bfin_read_IMDMA_S0_NEXT_DESC_PTR() bfin_read32(IMDMA_S0_NEXT_DESC_PTR)
  1379. #define bfin_write_IMDMA_S0_NEXT_DESC_PTR(val) bfin_write32(IMDMA_S0_NEXT_DESC_PTR,val)
  1380. #define bfin_read_IMDMA_S0_START_ADDR() bfin_read32(IMDMA_S0_START_ADDR)
  1381. #define bfin_write_IMDMA_S0_START_ADDR(val) bfin_write32(IMDMA_S0_START_ADDR,val)
  1382. #define bfin_read_IMDMA_S0_X_COUNT() bfin_read16(IMDMA_S0_X_COUNT)
  1383. #define bfin_write_IMDMA_S0_X_COUNT(val) bfin_write16(IMDMA_S0_X_COUNT,val)
  1384. #define bfin_read_IMDMA_S0_Y_COUNT() bfin_read16(IMDMA_S0_Y_COUNT)
  1385. #define bfin_write_IMDMA_S0_Y_COUNT(val) bfin_write16(IMDMA_S0_Y_COUNT,val)
  1386. #define bfin_read_IMDMA_S0_X_MODIFY() bfin_read16(IMDMA_S0_X_MODIFY)
  1387. #define bfin_write_IMDMA_S0_X_MODIFY(val) bfin_write16(IMDMA_S0_X_MODIFY,val)
  1388. #define bfin_read_IMDMA_S0_Y_MODIFY() bfin_read16(IMDMA_S0_Y_MODIFY)
  1389. #define bfin_write_IMDMA_S0_Y_MODIFY(val) bfin_write16(IMDMA_S0_Y_MODIFY,val)
  1390. #define bfin_read_IMDMA_S0_CURR_DESC_PTR() bfin_read32(IMDMA_S0_CURR_DESC_PTR)
  1391. #define bfin_write_IMDMA_S0_CURR_DESC_PTR(val) bfin_write32(IMDMA_S0_CURR_DESC_PTR,val)
  1392. #define bfin_read_IMDMA_S0_CURR_ADDR() bfin_read32(IMDMA_S0_CURR_ADDR)
  1393. #define bfin_write_IMDMA_S0_CURR_ADDR(val) bfin_write32(IMDMA_S0_CURR_ADDR,val)
  1394. #define bfin_read_IMDMA_S0_CURR_X_COUNT() bfin_read16(IMDMA_S0_CURR_X_COUNT)
  1395. #define bfin_write_IMDMA_S0_CURR_X_COUNT(val) bfin_write16(IMDMA_S0_CURR_X_COUNT,val)
  1396. #define bfin_read_IMDMA_S0_CURR_Y_COUNT() bfin_read16(IMDMA_S0_CURR_Y_COUNT)
  1397. #define bfin_write_IMDMA_S0_CURR_Y_COUNT(val) bfin_write16(IMDMA_S0_CURR_Y_COUNT,val)
  1398. #define bfin_read_IMDMA_S0_IRQ_STATUS() bfin_read16(IMDMA_S0_IRQ_STATUS)
  1399. #define bfin_write_IMDMA_S0_IRQ_STATUS(val) bfin_write16(IMDMA_S0_IRQ_STATUS,val)
  1400. #define bfin_read_IMDMA_D1_CONFIG() bfin_read16(IMDMA_D1_CONFIG)
  1401. #define bfin_write_IMDMA_D1_CONFIG(val) bfin_write16(IMDMA_D1_CONFIG,val)
  1402. #define bfin_read_IMDMA_D1_NEXT_DESC_PTR() bfin_read32(IMDMA_D1_NEXT_DESC_PTR)
  1403. #define bfin_write_IMDMA_D1_NEXT_DESC_PTR(val) bfin_write32(IMDMA_D1_NEXT_DESC_PTR,val)
  1404. #define bfin_read_IMDMA_D1_START_ADDR() bfin_read32(IMDMA_D1_START_ADDR)
  1405. #define bfin_write_IMDMA_D1_START_ADDR(val) bfin_write32(IMDMA_D1_START_ADDR,val)
  1406. #define bfin_read_IMDMA_D1_X_COUNT() bfin_read16(IMDMA_D1_X_COUNT)
  1407. #define bfin_write_IMDMA_D1_X_COUNT(val) bfin_write16(IMDMA_D1_X_COUNT,val)
  1408. #define bfin_read_IMDMA_D1_Y_COUNT() bfin_read16(IMDMA_D1_Y_COUNT)
  1409. #define bfin_write_IMDMA_D1_Y_COUNT(val) bfin_write16(IMDMA_D1_Y_COUNT,val)
  1410. #define bfin_read_IMDMA_D1_X_MODIFY() bfin_read16(IMDMA_D1_X_MODIFY)
  1411. #define bfin_write_IMDMA_D1_X_MODIFY(val) bfin_write16(IMDMA_D1_X_MODIFY,val)
  1412. #define bfin_read_IMDMA_D1_Y_MODIFY() bfin_read16(IMDMA_D1_Y_MODIFY)
  1413. #define bfin_write_IMDMA_D1_Y_MODIFY(val) bfin_write16(IMDMA_D1_Y_MODIFY,val)
  1414. #define bfin_read_IMDMA_D1_CURR_DESC_PTR() bfin_read32(IMDMA_D1_CURR_DESC_PTR)
  1415. #define bfin_write_IMDMA_D1_CURR_DESC_PTR(val) bfin_write32(IMDMA_D1_CURR_DESC_PTR,val)
  1416. #define bfin_read_IMDMA_D1_CURR_ADDR() bfin_read32(IMDMA_D1_CURR_ADDR)
  1417. #define bfin_write_IMDMA_D1_CURR_ADDR(val) bfin_write32(IMDMA_D1_CURR_ADDR,val)
  1418. #define bfin_read_IMDMA_D1_CURR_X_COUNT() bfin_read16(IMDMA_D1_CURR_X_COUNT)
  1419. #define bfin_write_IMDMA_D1_CURR_X_COUNT(val) bfin_write16(IMDMA_D1_CURR_X_COUNT,val)
  1420. #define bfin_read_IMDMA_D1_CURR_Y_COUNT() bfin_read16(IMDMA_D1_CURR_Y_COUNT)
  1421. #define bfin_write_IMDMA_D1_CURR_Y_COUNT(val) bfin_write16(IMDMA_D1_CURR_Y_COUNT,val)
  1422. #define bfin_read_IMDMA_D1_IRQ_STATUS() bfin_read16(IMDMA_D1_IRQ_STATUS)
  1423. #define bfin_write_IMDMA_D1_IRQ_STATUS(val) bfin_write16(IMDMA_D1_IRQ_STATUS,val)
  1424. #define bfin_read_IMDMA_S1_CONFIG() bfin_read16(IMDMA_S1_CONFIG)
  1425. #define bfin_write_IMDMA_S1_CONFIG(val) bfin_write16(IMDMA_S1_CONFIG,val)
  1426. #define bfin_read_IMDMA_S1_NEXT_DESC_PTR() bfin_read32(IMDMA_S1_NEXT_DESC_PTR)
  1427. #define bfin_write_IMDMA_S1_NEXT_DESC_PTR(val) bfin_write32(IMDMA_S1_NEXT_DESC_PTR,val)
  1428. #define bfin_read_IMDMA_S1_START_ADDR() bfin_read32(IMDMA_S1_START_ADDR)
  1429. #define bfin_write_IMDMA_S1_START_ADDR(val) bfin_write32(IMDMA_S1_START_ADDR,val)
  1430. #define bfin_read_IMDMA_S1_X_COUNT() bfin_read16(IMDMA_S1_X_COUNT)
  1431. #define bfin_write_IMDMA_S1_X_COUNT(val) bfin_write16(IMDMA_S1_X_COUNT,val)
  1432. #define bfin_read_IMDMA_S1_Y_COUNT() bfin_read16(IMDMA_S1_Y_COUNT)
  1433. #define bfin_write_IMDMA_S1_Y_COUNT(val) bfin_write16(IMDMA_S1_Y_COUNT,val)
  1434. #define bfin_read_IMDMA_S1_X_MODIFY() bfin_read16(IMDMA_S1_X_MODIFY)
  1435. #define bfin_write_IMDMA_S1_X_MODIFY(val) bfin_write16(IMDMA_S1_X_MODIFY,val)
  1436. #define bfin_read_IMDMA_S1_Y_MODIFY() bfin_read16(IMDMA_S1_Y_MODIFY)
  1437. #define bfin_write_IMDMA_S1_Y_MODIFY(val) bfin_write16(IMDMA_S1_Y_MODIFY,val)
  1438. #define bfin_read_IMDMA_S1_CURR_DESC_PTR() bfin_read32(IMDMA_S1_CURR_DESC_PTR)
  1439. #define bfin_write_IMDMA_S1_CURR_DESC_PTR(val) bfin_write32(IMDMA_S1_CURR_DESC_PTR,val)
  1440. #define bfin_read_IMDMA_S1_CURR_ADDR() bfin_read32(IMDMA_S1_CURR_ADDR)
  1441. #define bfin_write_IMDMA_S1_CURR_ADDR(val) bfin_write32(IMDMA_S1_CURR_ADDR,val)
  1442. #define bfin_read_IMDMA_S1_CURR_X_COUNT() bfin_read16(IMDMA_S1_CURR_X_COUNT)
  1443. #define bfin_write_IMDMA_S1_CURR_X_COUNT(val) bfin_write16(IMDMA_S1_CURR_X_COUNT,val)
  1444. #define bfin_read_IMDMA_S1_CURR_Y_COUNT() bfin_read16(IMDMA_S1_CURR_Y_COUNT)
  1445. #define bfin_write_IMDMA_S1_CURR_Y_COUNT(val) bfin_write16(IMDMA_S1_CURR_Y_COUNT,val)
  1446. #define bfin_read_IMDMA_S1_IRQ_STATUS() bfin_read16(IMDMA_S1_IRQ_STATUS)
  1447. #define bfin_write_IMDMA_S1_IRQ_STATUS(val) bfin_write16(IMDMA_S1_IRQ_STATUS,val)
  1448. #endif /* _CDEF_BF561_H */