cdefBF534.h 119 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737
  1. /*
  2. * Copyright 2005-2010 Analog Devices Inc.
  3. *
  4. * Licensed under the GPL-2 or later
  5. */
  6. #ifndef _CDEF_BF534_H
  7. #define _CDEF_BF534_H
  8. /* Clock and System Control (0xFFC00000 - 0xFFC000FF) */
  9. #define bfin_read_PLL_CTL() bfin_read16(PLL_CTL)
  10. #define bfin_read_PLL_DIV() bfin_read16(PLL_DIV)
  11. #define bfin_write_PLL_DIV(val) bfin_write16(PLL_DIV,val)
  12. #define bfin_read_VR_CTL() bfin_read16(VR_CTL)
  13. #define bfin_read_PLL_STAT() bfin_read16(PLL_STAT)
  14. #define bfin_write_PLL_STAT(val) bfin_write16(PLL_STAT,val)
  15. #define bfin_read_PLL_LOCKCNT() bfin_read16(PLL_LOCKCNT)
  16. #define bfin_write_PLL_LOCKCNT(val) bfin_write16(PLL_LOCKCNT,val)
  17. #define bfin_read_CHIPID() bfin_read32(CHIPID)
  18. /* System Interrupt Controller (0xFFC00100 - 0xFFC001FF) */
  19. #define bfin_read_SWRST() bfin_read16(SWRST)
  20. #define bfin_write_SWRST(val) bfin_write16(SWRST,val)
  21. #define bfin_read_SYSCR() bfin_read16(SYSCR)
  22. #define bfin_write_SYSCR(val) bfin_write16(SYSCR,val)
  23. #define bfin_read_SIC_RVECT() bfin_read32(SIC_RVECT)
  24. #define bfin_write_SIC_RVECT(val) bfin_write32(SIC_RVECT,val)
  25. #define bfin_read_SIC_IMASK() bfin_read32(SIC_IMASK)
  26. #define bfin_write_SIC_IMASK(val) bfin_write32(SIC_IMASK,val)
  27. #define bfin_read_SIC_IAR0() bfin_read32(SIC_IAR0)
  28. #define bfin_write_SIC_IAR0(val) bfin_write32(SIC_IAR0,val)
  29. #define bfin_read_SIC_IAR1() bfin_read32(SIC_IAR1)
  30. #define bfin_write_SIC_IAR1(val) bfin_write32(SIC_IAR1,val)
  31. #define bfin_read_SIC_IAR2() bfin_read32(SIC_IAR2)
  32. #define bfin_write_SIC_IAR2(val) bfin_write32(SIC_IAR2,val)
  33. #define bfin_read_SIC_IAR3() bfin_read32(SIC_IAR3)
  34. #define bfin_write_SIC_IAR3(val) bfin_write32(SIC_IAR3,val)
  35. #define bfin_read_SIC_ISR() bfin_read32(SIC_ISR)
  36. #define bfin_write_SIC_ISR(val) bfin_write32(SIC_ISR,val)
  37. #define bfin_read_SIC_IWR() bfin_read32(SIC_IWR)
  38. #define bfin_write_SIC_IWR(val) bfin_write32(SIC_IWR,val)
  39. /* Watchdog Timer (0xFFC00200 - 0xFFC002FF) */
  40. #define bfin_read_WDOG_CTL() bfin_read16(WDOG_CTL)
  41. #define bfin_write_WDOG_CTL(val) bfin_write16(WDOG_CTL,val)
  42. #define bfin_read_WDOG_CNT() bfin_read32(WDOG_CNT)
  43. #define bfin_write_WDOG_CNT(val) bfin_write32(WDOG_CNT,val)
  44. #define bfin_read_WDOG_STAT() bfin_read32(WDOG_STAT)
  45. #define bfin_write_WDOG_STAT(val) bfin_write32(WDOG_STAT,val)
  46. /* Real Time Clock (0xFFC00300 - 0xFFC003FF) */
  47. #define bfin_read_RTC_STAT() bfin_read32(RTC_STAT)
  48. #define bfin_write_RTC_STAT(val) bfin_write32(RTC_STAT,val)
  49. #define bfin_read_RTC_ICTL() bfin_read16(RTC_ICTL)
  50. #define bfin_write_RTC_ICTL(val) bfin_write16(RTC_ICTL,val)
  51. #define bfin_read_RTC_ISTAT() bfin_read16(RTC_ISTAT)
  52. #define bfin_write_RTC_ISTAT(val) bfin_write16(RTC_ISTAT,val)
  53. #define bfin_read_RTC_SWCNT() bfin_read16(RTC_SWCNT)
  54. #define bfin_write_RTC_SWCNT(val) bfin_write16(RTC_SWCNT,val)
  55. #define bfin_read_RTC_ALARM() bfin_read32(RTC_ALARM)
  56. #define bfin_write_RTC_ALARM(val) bfin_write32(RTC_ALARM,val)
  57. #define bfin_read_RTC_FAST() bfin_read16(RTC_FAST)
  58. #define bfin_write_RTC_FAST(val) bfin_write16(RTC_FAST,val)
  59. #define bfin_read_RTC_PREN() bfin_read16(RTC_PREN)
  60. #define bfin_write_RTC_PREN(val) bfin_write16(RTC_PREN,val)
  61. /* UART0 Controller (0xFFC00400 - 0xFFC004FF) */
  62. #define bfin_read_UART0_THR() bfin_read16(UART0_THR)
  63. #define bfin_write_UART0_THR(val) bfin_write16(UART0_THR,val)
  64. #define bfin_read_UART0_RBR() bfin_read16(UART0_RBR)
  65. #define bfin_write_UART0_RBR(val) bfin_write16(UART0_RBR,val)
  66. #define bfin_read_UART0_DLL() bfin_read16(UART0_DLL)
  67. #define bfin_write_UART0_DLL(val) bfin_write16(UART0_DLL,val)
  68. #define bfin_read_UART0_IER() bfin_read16(UART0_IER)
  69. #define bfin_write_UART0_IER(val) bfin_write16(UART0_IER,val)
  70. #define bfin_read_UART0_DLH() bfin_read16(UART0_DLH)
  71. #define bfin_write_UART0_DLH(val) bfin_write16(UART0_DLH,val)
  72. #define bfin_read_UART0_IIR() bfin_read16(UART0_IIR)
  73. #define bfin_write_UART0_IIR(val) bfin_write16(UART0_IIR,val)
  74. #define bfin_read_UART0_LCR() bfin_read16(UART0_LCR)
  75. #define bfin_write_UART0_LCR(val) bfin_write16(UART0_LCR,val)
  76. #define bfin_read_UART0_MCR() bfin_read16(UART0_MCR)
  77. #define bfin_write_UART0_MCR(val) bfin_write16(UART0_MCR,val)
  78. #define bfin_read_UART0_LSR() bfin_read16(UART0_LSR)
  79. #define bfin_write_UART0_LSR(val) bfin_write16(UART0_LSR,val)
  80. #define bfin_read_UART0_MSR() bfin_read16(UART0_MSR)
  81. #define bfin_write_UART0_MSR(val) bfin_write16(UART0_MSR,val)
  82. #define bfin_read_UART0_SCR() bfin_read16(UART0_SCR)
  83. #define bfin_write_UART0_SCR(val) bfin_write16(UART0_SCR,val)
  84. #define bfin_read_UART0_GCTL() bfin_read16(UART0_GCTL)
  85. #define bfin_write_UART0_GCTL(val) bfin_write16(UART0_GCTL,val)
  86. /* SPI Controller (0xFFC00500 - 0xFFC005FF) */
  87. #define bfin_read_SPI_CTL() bfin_read16(SPI_CTL)
  88. #define bfin_write_SPI_CTL(val) bfin_write16(SPI_CTL,val)
  89. #define bfin_read_SPI_FLG() bfin_read16(SPI_FLG)
  90. #define bfin_write_SPI_FLG(val) bfin_write16(SPI_FLG,val)
  91. #define bfin_read_SPI_STAT() bfin_read16(SPI_STAT)
  92. #define bfin_write_SPI_STAT(val) bfin_write16(SPI_STAT,val)
  93. #define bfin_read_SPI_TDBR() bfin_read16(SPI_TDBR)
  94. #define bfin_write_SPI_TDBR(val) bfin_write16(SPI_TDBR,val)
  95. #define bfin_read_SPI_RDBR() bfin_read16(SPI_RDBR)
  96. #define bfin_write_SPI_RDBR(val) bfin_write16(SPI_RDBR,val)
  97. #define bfin_read_SPI_BAUD() bfin_read16(SPI_BAUD)
  98. #define bfin_write_SPI_BAUD(val) bfin_write16(SPI_BAUD,val)
  99. #define bfin_read_SPI_SHADOW() bfin_read16(SPI_SHADOW)
  100. #define bfin_write_SPI_SHADOW(val) bfin_write16(SPI_SHADOW,val)
  101. /* TIMER0-7 Registers (0xFFC00600 - 0xFFC006FF) */
  102. #define bfin_read_TIMER0_CONFIG() bfin_read16(TIMER0_CONFIG)
  103. #define bfin_write_TIMER0_CONFIG(val) bfin_write16(TIMER0_CONFIG,val)
  104. #define bfin_read_TIMER0_COUNTER() bfin_read32(TIMER0_COUNTER)
  105. #define bfin_write_TIMER0_COUNTER(val) bfin_write32(TIMER0_COUNTER,val)
  106. #define bfin_read_TIMER0_PERIOD() bfin_read32(TIMER0_PERIOD)
  107. #define bfin_write_TIMER0_PERIOD(val) bfin_write32(TIMER0_PERIOD,val)
  108. #define bfin_read_TIMER0_WIDTH() bfin_read32(TIMER0_WIDTH)
  109. #define bfin_write_TIMER0_WIDTH(val) bfin_write32(TIMER0_WIDTH,val)
  110. #define bfin_read_TIMER1_CONFIG() bfin_read16(TIMER1_CONFIG)
  111. #define bfin_write_TIMER1_CONFIG(val) bfin_write16(TIMER1_CONFIG,val)
  112. #define bfin_read_TIMER1_COUNTER() bfin_read32(TIMER1_COUNTER)
  113. #define bfin_write_TIMER1_COUNTER(val) bfin_write32(TIMER1_COUNTER,val)
  114. #define bfin_read_TIMER1_PERIOD() bfin_read32(TIMER1_PERIOD)
  115. #define bfin_write_TIMER1_PERIOD(val) bfin_write32(TIMER1_PERIOD,val)
  116. #define bfin_read_TIMER1_WIDTH() bfin_read32(TIMER1_WIDTH)
  117. #define bfin_write_TIMER1_WIDTH(val) bfin_write32(TIMER1_WIDTH,val)
  118. #define bfin_read_TIMER2_CONFIG() bfin_read16(TIMER2_CONFIG)
  119. #define bfin_write_TIMER2_CONFIG(val) bfin_write16(TIMER2_CONFIG,val)
  120. #define bfin_read_TIMER2_COUNTER() bfin_read32(TIMER2_COUNTER)
  121. #define bfin_write_TIMER2_COUNTER(val) bfin_write32(TIMER2_COUNTER,val)
  122. #define bfin_read_TIMER2_PERIOD() bfin_read32(TIMER2_PERIOD)
  123. #define bfin_write_TIMER2_PERIOD(val) bfin_write32(TIMER2_PERIOD,val)
  124. #define bfin_read_TIMER2_WIDTH() bfin_read32(TIMER2_WIDTH)
  125. #define bfin_write_TIMER2_WIDTH(val) bfin_write32(TIMER2_WIDTH,val)
  126. #define bfin_read_TIMER3_CONFIG() bfin_read16(TIMER3_CONFIG)
  127. #define bfin_write_TIMER3_CONFIG(val) bfin_write16(TIMER3_CONFIG,val)
  128. #define bfin_read_TIMER3_COUNTER() bfin_read32(TIMER3_COUNTER)
  129. #define bfin_write_TIMER3_COUNTER(val) bfin_write32(TIMER3_COUNTER,val)
  130. #define bfin_read_TIMER3_PERIOD() bfin_read32(TIMER3_PERIOD)
  131. #define bfin_write_TIMER3_PERIOD(val) bfin_write32(TIMER3_PERIOD,val)
  132. #define bfin_read_TIMER3_WIDTH() bfin_read32(TIMER3_WIDTH)
  133. #define bfin_write_TIMER3_WIDTH(val) bfin_write32(TIMER3_WIDTH,val)
  134. #define bfin_read_TIMER4_CONFIG() bfin_read16(TIMER4_CONFIG)
  135. #define bfin_write_TIMER4_CONFIG(val) bfin_write16(TIMER4_CONFIG,val)
  136. #define bfin_read_TIMER4_COUNTER() bfin_read32(TIMER4_COUNTER)
  137. #define bfin_write_TIMER4_COUNTER(val) bfin_write32(TIMER4_COUNTER,val)
  138. #define bfin_read_TIMER4_PERIOD() bfin_read32(TIMER4_PERIOD)
  139. #define bfin_write_TIMER4_PERIOD(val) bfin_write32(TIMER4_PERIOD,val)
  140. #define bfin_read_TIMER4_WIDTH() bfin_read32(TIMER4_WIDTH)
  141. #define bfin_write_TIMER4_WIDTH(val) bfin_write32(TIMER4_WIDTH,val)
  142. #define bfin_read_TIMER5_CONFIG() bfin_read16(TIMER5_CONFIG)
  143. #define bfin_write_TIMER5_CONFIG(val) bfin_write16(TIMER5_CONFIG,val)
  144. #define bfin_read_TIMER5_COUNTER() bfin_read32(TIMER5_COUNTER)
  145. #define bfin_write_TIMER5_COUNTER(val) bfin_write32(TIMER5_COUNTER,val)
  146. #define bfin_read_TIMER5_PERIOD() bfin_read32(TIMER5_PERIOD)
  147. #define bfin_write_TIMER5_PERIOD(val) bfin_write32(TIMER5_PERIOD,val)
  148. #define bfin_read_TIMER5_WIDTH() bfin_read32(TIMER5_WIDTH)
  149. #define bfin_write_TIMER5_WIDTH(val) bfin_write32(TIMER5_WIDTH,val)
  150. #define bfin_read_TIMER6_CONFIG() bfin_read16(TIMER6_CONFIG)
  151. #define bfin_write_TIMER6_CONFIG(val) bfin_write16(TIMER6_CONFIG,val)
  152. #define bfin_read_TIMER6_COUNTER() bfin_read32(TIMER6_COUNTER)
  153. #define bfin_write_TIMER6_COUNTER(val) bfin_write32(TIMER6_COUNTER,val)
  154. #define bfin_read_TIMER6_PERIOD() bfin_read32(TIMER6_PERIOD)
  155. #define bfin_write_TIMER6_PERIOD(val) bfin_write32(TIMER6_PERIOD,val)
  156. #define bfin_read_TIMER6_WIDTH() bfin_read32(TIMER6_WIDTH)
  157. #define bfin_write_TIMER6_WIDTH(val) bfin_write32(TIMER6_WIDTH,val)
  158. #define bfin_read_TIMER7_CONFIG() bfin_read16(TIMER7_CONFIG)
  159. #define bfin_write_TIMER7_CONFIG(val) bfin_write16(TIMER7_CONFIG,val)
  160. #define bfin_read_TIMER7_COUNTER() bfin_read32(TIMER7_COUNTER)
  161. #define bfin_write_TIMER7_COUNTER(val) bfin_write32(TIMER7_COUNTER,val)
  162. #define bfin_read_TIMER7_PERIOD() bfin_read32(TIMER7_PERIOD)
  163. #define bfin_write_TIMER7_PERIOD(val) bfin_write32(TIMER7_PERIOD,val)
  164. #define bfin_read_TIMER7_WIDTH() bfin_read32(TIMER7_WIDTH)
  165. #define bfin_write_TIMER7_WIDTH(val) bfin_write32(TIMER7_WIDTH,val)
  166. #define bfin_read_TIMER_ENABLE() bfin_read16(TIMER_ENABLE)
  167. #define bfin_write_TIMER_ENABLE(val) bfin_write16(TIMER_ENABLE,val)
  168. #define bfin_read_TIMER_DISABLE() bfin_read16(TIMER_DISABLE)
  169. #define bfin_write_TIMER_DISABLE(val) bfin_write16(TIMER_DISABLE,val)
  170. #define bfin_read_TIMER_STATUS() bfin_read32(TIMER_STATUS)
  171. #define bfin_write_TIMER_STATUS(val) bfin_write32(TIMER_STATUS,val)
  172. /* General Purpose I/O Port F (0xFFC00700 - 0xFFC007FF) */
  173. #define bfin_read_PORTFIO() bfin_read16(PORTFIO)
  174. #define bfin_write_PORTFIO(val) bfin_write16(PORTFIO,val)
  175. #define bfin_read_PORTFIO_CLEAR() bfin_read16(PORTFIO_CLEAR)
  176. #define bfin_write_PORTFIO_CLEAR(val) bfin_write16(PORTFIO_CLEAR,val)
  177. #define bfin_read_PORTFIO_SET() bfin_read16(PORTFIO_SET)
  178. #define bfin_write_PORTFIO_SET(val) bfin_write16(PORTFIO_SET,val)
  179. #define bfin_read_PORTFIO_TOGGLE() bfin_read16(PORTFIO_TOGGLE)
  180. #define bfin_write_PORTFIO_TOGGLE(val) bfin_write16(PORTFIO_TOGGLE,val)
  181. #define bfin_read_PORTFIO_MASKA() bfin_read16(PORTFIO_MASKA)
  182. #define bfin_write_PORTFIO_MASKA(val) bfin_write16(PORTFIO_MASKA,val)
  183. #define bfin_read_PORTFIO_MASKA_CLEAR() bfin_read16(PORTFIO_MASKA_CLEAR)
  184. #define bfin_write_PORTFIO_MASKA_CLEAR(val) bfin_write16(PORTFIO_MASKA_CLEAR,val)
  185. #define bfin_read_PORTFIO_MASKA_SET() bfin_read16(PORTFIO_MASKA_SET)
  186. #define bfin_write_PORTFIO_MASKA_SET(val) bfin_write16(PORTFIO_MASKA_SET,val)
  187. #define bfin_read_PORTFIO_MASKA_TOGGLE() bfin_read16(PORTFIO_MASKA_TOGGLE)
  188. #define bfin_write_PORTFIO_MASKA_TOGGLE(val) bfin_write16(PORTFIO_MASKA_TOGGLE,val)
  189. #define bfin_read_PORTFIO_MASKB() bfin_read16(PORTFIO_MASKB)
  190. #define bfin_write_PORTFIO_MASKB(val) bfin_write16(PORTFIO_MASKB,val)
  191. #define bfin_read_PORTFIO_MASKB_CLEAR() bfin_read16(PORTFIO_MASKB_CLEAR)
  192. #define bfin_write_PORTFIO_MASKB_CLEAR(val) bfin_write16(PORTFIO_MASKB_CLEAR,val)
  193. #define bfin_read_PORTFIO_MASKB_SET() bfin_read16(PORTFIO_MASKB_SET)
  194. #define bfin_write_PORTFIO_MASKB_SET(val) bfin_write16(PORTFIO_MASKB_SET,val)
  195. #define bfin_read_PORTFIO_MASKB_TOGGLE() bfin_read16(PORTFIO_MASKB_TOGGLE)
  196. #define bfin_write_PORTFIO_MASKB_TOGGLE(val) bfin_write16(PORTFIO_MASKB_TOGGLE,val)
  197. #define bfin_read_PORTFIO_DIR() bfin_read16(PORTFIO_DIR)
  198. #define bfin_write_PORTFIO_DIR(val) bfin_write16(PORTFIO_DIR,val)
  199. #define bfin_read_PORTFIO_POLAR() bfin_read16(PORTFIO_POLAR)
  200. #define bfin_write_PORTFIO_POLAR(val) bfin_write16(PORTFIO_POLAR,val)
  201. #define bfin_read_PORTFIO_EDGE() bfin_read16(PORTFIO_EDGE)
  202. #define bfin_write_PORTFIO_EDGE(val) bfin_write16(PORTFIO_EDGE,val)
  203. #define bfin_read_PORTFIO_BOTH() bfin_read16(PORTFIO_BOTH)
  204. #define bfin_write_PORTFIO_BOTH(val) bfin_write16(PORTFIO_BOTH,val)
  205. #define bfin_read_PORTFIO_INEN() bfin_read16(PORTFIO_INEN)
  206. #define bfin_write_PORTFIO_INEN(val) bfin_write16(PORTFIO_INEN,val)
  207. /* SPORT0 Controller (0xFFC00800 - 0xFFC008FF) */
  208. #define bfin_read_SPORT0_TCR1() bfin_read16(SPORT0_TCR1)
  209. #define bfin_write_SPORT0_TCR1(val) bfin_write16(SPORT0_TCR1,val)
  210. #define bfin_read_SPORT0_TCR2() bfin_read16(SPORT0_TCR2)
  211. #define bfin_write_SPORT0_TCR2(val) bfin_write16(SPORT0_TCR2,val)
  212. #define bfin_read_SPORT0_TCLKDIV() bfin_read16(SPORT0_TCLKDIV)
  213. #define bfin_write_SPORT0_TCLKDIV(val) bfin_write16(SPORT0_TCLKDIV,val)
  214. #define bfin_read_SPORT0_TFSDIV() bfin_read16(SPORT0_TFSDIV)
  215. #define bfin_write_SPORT0_TFSDIV(val) bfin_write16(SPORT0_TFSDIV,val)
  216. #define bfin_read_SPORT0_TX() bfin_read32(SPORT0_TX)
  217. #define bfin_write_SPORT0_TX(val) bfin_write32(SPORT0_TX,val)
  218. #define bfin_read_SPORT0_RX() bfin_read32(SPORT0_RX)
  219. #define bfin_write_SPORT0_RX(val) bfin_write32(SPORT0_RX,val)
  220. #define bfin_read_SPORT0_TX32() bfin_read32(SPORT0_TX)
  221. #define bfin_write_SPORT0_TX32(val) bfin_write32(SPORT0_TX,val)
  222. #define bfin_read_SPORT0_RX32() bfin_read32(SPORT0_RX)
  223. #define bfin_write_SPORT0_RX32(val) bfin_write32(SPORT0_RX,val)
  224. #define bfin_read_SPORT0_TX16() bfin_read16(SPORT0_TX)
  225. #define bfin_write_SPORT0_TX16(val) bfin_write16(SPORT0_TX,val)
  226. #define bfin_read_SPORT0_RX16() bfin_read16(SPORT0_RX)
  227. #define bfin_write_SPORT0_RX16(val) bfin_write16(SPORT0_RX,val)
  228. #define bfin_read_SPORT0_RCR1() bfin_read16(SPORT0_RCR1)
  229. #define bfin_write_SPORT0_RCR1(val) bfin_write16(SPORT0_RCR1,val)
  230. #define bfin_read_SPORT0_RCR2() bfin_read16(SPORT0_RCR2)
  231. #define bfin_write_SPORT0_RCR2(val) bfin_write16(SPORT0_RCR2,val)
  232. #define bfin_read_SPORT0_RCLKDIV() bfin_read16(SPORT0_RCLKDIV)
  233. #define bfin_write_SPORT0_RCLKDIV(val) bfin_write16(SPORT0_RCLKDIV,val)
  234. #define bfin_read_SPORT0_RFSDIV() bfin_read16(SPORT0_RFSDIV)
  235. #define bfin_write_SPORT0_RFSDIV(val) bfin_write16(SPORT0_RFSDIV,val)
  236. #define bfin_read_SPORT0_STAT() bfin_read16(SPORT0_STAT)
  237. #define bfin_write_SPORT0_STAT(val) bfin_write16(SPORT0_STAT,val)
  238. #define bfin_read_SPORT0_CHNL() bfin_read16(SPORT0_CHNL)
  239. #define bfin_write_SPORT0_CHNL(val) bfin_write16(SPORT0_CHNL,val)
  240. #define bfin_read_SPORT0_MCMC1() bfin_read16(SPORT0_MCMC1)
  241. #define bfin_write_SPORT0_MCMC1(val) bfin_write16(SPORT0_MCMC1,val)
  242. #define bfin_read_SPORT0_MCMC2() bfin_read16(SPORT0_MCMC2)
  243. #define bfin_write_SPORT0_MCMC2(val) bfin_write16(SPORT0_MCMC2,val)
  244. #define bfin_read_SPORT0_MTCS0() bfin_read32(SPORT0_MTCS0)
  245. #define bfin_write_SPORT0_MTCS0(val) bfin_write32(SPORT0_MTCS0,val)
  246. #define bfin_read_SPORT0_MTCS1() bfin_read32(SPORT0_MTCS1)
  247. #define bfin_write_SPORT0_MTCS1(val) bfin_write32(SPORT0_MTCS1,val)
  248. #define bfin_read_SPORT0_MTCS2() bfin_read32(SPORT0_MTCS2)
  249. #define bfin_write_SPORT0_MTCS2(val) bfin_write32(SPORT0_MTCS2,val)
  250. #define bfin_read_SPORT0_MTCS3() bfin_read32(SPORT0_MTCS3)
  251. #define bfin_write_SPORT0_MTCS3(val) bfin_write32(SPORT0_MTCS3,val)
  252. #define bfin_read_SPORT0_MRCS0() bfin_read32(SPORT0_MRCS0)
  253. #define bfin_write_SPORT0_MRCS0(val) bfin_write32(SPORT0_MRCS0,val)
  254. #define bfin_read_SPORT0_MRCS1() bfin_read32(SPORT0_MRCS1)
  255. #define bfin_write_SPORT0_MRCS1(val) bfin_write32(SPORT0_MRCS1,val)
  256. #define bfin_read_SPORT0_MRCS2() bfin_read32(SPORT0_MRCS2)
  257. #define bfin_write_SPORT0_MRCS2(val) bfin_write32(SPORT0_MRCS2,val)
  258. #define bfin_read_SPORT0_MRCS3() bfin_read32(SPORT0_MRCS3)
  259. #define bfin_write_SPORT0_MRCS3(val) bfin_write32(SPORT0_MRCS3,val)
  260. /* SPORT1 Controller (0xFFC00900 - 0xFFC009FF) */
  261. #define bfin_read_SPORT1_TCR1() bfin_read16(SPORT1_TCR1)
  262. #define bfin_write_SPORT1_TCR1(val) bfin_write16(SPORT1_TCR1,val)
  263. #define bfin_read_SPORT1_TCR2() bfin_read16(SPORT1_TCR2)
  264. #define bfin_write_SPORT1_TCR2(val) bfin_write16(SPORT1_TCR2,val)
  265. #define bfin_read_SPORT1_TCLKDIV() bfin_read16(SPORT1_TCLKDIV)
  266. #define bfin_write_SPORT1_TCLKDIV(val) bfin_write16(SPORT1_TCLKDIV,val)
  267. #define bfin_read_SPORT1_TFSDIV() bfin_read16(SPORT1_TFSDIV)
  268. #define bfin_write_SPORT1_TFSDIV(val) bfin_write16(SPORT1_TFSDIV,val)
  269. #define bfin_read_SPORT1_TX() bfin_read32(SPORT1_TX)
  270. #define bfin_write_SPORT1_TX(val) bfin_write32(SPORT1_TX,val)
  271. #define bfin_read_SPORT1_RX() bfin_read32(SPORT1_RX)
  272. #define bfin_write_SPORT1_RX(val) bfin_write32(SPORT1_RX,val)
  273. #define bfin_read_SPORT1_TX32() bfin_read32(SPORT1_TX)
  274. #define bfin_write_SPORT1_TX32(val) bfin_write32(SPORT1_TX,val)
  275. #define bfin_read_SPORT1_RX32() bfin_read32(SPORT1_RX)
  276. #define bfin_write_SPORT1_RX32(val) bfin_write32(SPORT1_RX,val)
  277. #define bfin_read_SPORT1_TX16() bfin_read16(SPORT1_TX)
  278. #define bfin_write_SPORT1_TX16(val) bfin_write16(SPORT1_TX,val)
  279. #define bfin_read_SPORT1_RX16() bfin_read16(SPORT1_RX)
  280. #define bfin_write_SPORT1_RX16(val) bfin_write16(SPORT1_RX,val)
  281. #define bfin_read_SPORT1_RCR1() bfin_read16(SPORT1_RCR1)
  282. #define bfin_write_SPORT1_RCR1(val) bfin_write16(SPORT1_RCR1,val)
  283. #define bfin_read_SPORT1_RCR2() bfin_read16(SPORT1_RCR2)
  284. #define bfin_write_SPORT1_RCR2(val) bfin_write16(SPORT1_RCR2,val)
  285. #define bfin_read_SPORT1_RCLKDIV() bfin_read16(SPORT1_RCLKDIV)
  286. #define bfin_write_SPORT1_RCLKDIV(val) bfin_write16(SPORT1_RCLKDIV,val)
  287. #define bfin_read_SPORT1_RFSDIV() bfin_read16(SPORT1_RFSDIV)
  288. #define bfin_write_SPORT1_RFSDIV(val) bfin_write16(SPORT1_RFSDIV,val)
  289. #define bfin_read_SPORT1_STAT() bfin_read16(SPORT1_STAT)
  290. #define bfin_write_SPORT1_STAT(val) bfin_write16(SPORT1_STAT,val)
  291. #define bfin_read_SPORT1_CHNL() bfin_read16(SPORT1_CHNL)
  292. #define bfin_write_SPORT1_CHNL(val) bfin_write16(SPORT1_CHNL,val)
  293. #define bfin_read_SPORT1_MCMC1() bfin_read16(SPORT1_MCMC1)
  294. #define bfin_write_SPORT1_MCMC1(val) bfin_write16(SPORT1_MCMC1,val)
  295. #define bfin_read_SPORT1_MCMC2() bfin_read16(SPORT1_MCMC2)
  296. #define bfin_write_SPORT1_MCMC2(val) bfin_write16(SPORT1_MCMC2,val)
  297. #define bfin_read_SPORT1_MTCS0() bfin_read32(SPORT1_MTCS0)
  298. #define bfin_write_SPORT1_MTCS0(val) bfin_write32(SPORT1_MTCS0,val)
  299. #define bfin_read_SPORT1_MTCS1() bfin_read32(SPORT1_MTCS1)
  300. #define bfin_write_SPORT1_MTCS1(val) bfin_write32(SPORT1_MTCS1,val)
  301. #define bfin_read_SPORT1_MTCS2() bfin_read32(SPORT1_MTCS2)
  302. #define bfin_write_SPORT1_MTCS2(val) bfin_write32(SPORT1_MTCS2,val)
  303. #define bfin_read_SPORT1_MTCS3() bfin_read32(SPORT1_MTCS3)
  304. #define bfin_write_SPORT1_MTCS3(val) bfin_write32(SPORT1_MTCS3,val)
  305. #define bfin_read_SPORT1_MRCS0() bfin_read32(SPORT1_MRCS0)
  306. #define bfin_write_SPORT1_MRCS0(val) bfin_write32(SPORT1_MRCS0,val)
  307. #define bfin_read_SPORT1_MRCS1() bfin_read32(SPORT1_MRCS1)
  308. #define bfin_write_SPORT1_MRCS1(val) bfin_write32(SPORT1_MRCS1,val)
  309. #define bfin_read_SPORT1_MRCS2() bfin_read32(SPORT1_MRCS2)
  310. #define bfin_write_SPORT1_MRCS2(val) bfin_write32(SPORT1_MRCS2,val)
  311. #define bfin_read_SPORT1_MRCS3() bfin_read32(SPORT1_MRCS3)
  312. #define bfin_write_SPORT1_MRCS3(val) bfin_write32(SPORT1_MRCS3,val)
  313. /* External Bus Interface Unit (0xFFC00A00 - 0xFFC00AFF) */
  314. #define bfin_read_EBIU_AMGCTL() bfin_read16(EBIU_AMGCTL)
  315. #define bfin_write_EBIU_AMGCTL(val) bfin_write16(EBIU_AMGCTL,val)
  316. #define bfin_read_EBIU_AMBCTL0() bfin_read32(EBIU_AMBCTL0)
  317. #define bfin_write_EBIU_AMBCTL0(val) bfin_write32(EBIU_AMBCTL0,val)
  318. #define bfin_read_EBIU_AMBCTL1() bfin_read32(EBIU_AMBCTL1)
  319. #define bfin_write_EBIU_AMBCTL1(val) bfin_write32(EBIU_AMBCTL1,val)
  320. #define bfin_read_EBIU_SDGCTL() bfin_read32(EBIU_SDGCTL)
  321. #define bfin_write_EBIU_SDGCTL(val) bfin_write32(EBIU_SDGCTL,val)
  322. #define bfin_read_EBIU_SDBCTL() bfin_read16(EBIU_SDBCTL)
  323. #define bfin_write_EBIU_SDBCTL(val) bfin_write16(EBIU_SDBCTL,val)
  324. #define bfin_read_EBIU_SDRRC() bfin_read16(EBIU_SDRRC)
  325. #define bfin_write_EBIU_SDRRC(val) bfin_write16(EBIU_SDRRC,val)
  326. #define bfin_read_EBIU_SDSTAT() bfin_read16(EBIU_SDSTAT)
  327. #define bfin_write_EBIU_SDSTAT(val) bfin_write16(EBIU_SDSTAT,val)
  328. /* DMA Traffic Control Registers */
  329. #define bfin_read_DMAC_TC_PER() bfin_read16(DMAC_TC_PER)
  330. #define bfin_write_DMAC_TC_PER(val) bfin_write16(DMAC_TC_PER,val)
  331. #define bfin_read_DMAC_TC_CNT() bfin_read16(DMAC_TC_CNT)
  332. #define bfin_write_DMAC_TC_CNT(val) bfin_write16(DMAC_TC_CNT,val)
  333. /* DMA Controller */
  334. #define bfin_read_DMA0_CONFIG() bfin_read16(DMA0_CONFIG)
  335. #define bfin_write_DMA0_CONFIG(val) bfin_write16(DMA0_CONFIG,val)
  336. #define bfin_read_DMA0_NEXT_DESC_PTR() bfin_read32(DMA0_NEXT_DESC_PTR)
  337. #define bfin_write_DMA0_NEXT_DESC_PTR(val) bfin_write32(DMA0_NEXT_DESC_PTR,val)
  338. #define bfin_read_DMA0_START_ADDR() bfin_read32(DMA0_START_ADDR)
  339. #define bfin_write_DMA0_START_ADDR(val) bfin_write32(DMA0_START_ADDR,val)
  340. #define bfin_read_DMA0_X_COUNT() bfin_read16(DMA0_X_COUNT)
  341. #define bfin_write_DMA0_X_COUNT(val) bfin_write16(DMA0_X_COUNT,val)
  342. #define bfin_read_DMA0_Y_COUNT() bfin_read16(DMA0_Y_COUNT)
  343. #define bfin_write_DMA0_Y_COUNT(val) bfin_write16(DMA0_Y_COUNT,val)
  344. #define bfin_read_DMA0_X_MODIFY() bfin_read16(DMA0_X_MODIFY)
  345. #define bfin_write_DMA0_X_MODIFY(val) bfin_write16(DMA0_X_MODIFY,val)
  346. #define bfin_read_DMA0_Y_MODIFY() bfin_read16(DMA0_Y_MODIFY)
  347. #define bfin_write_DMA0_Y_MODIFY(val) bfin_write16(DMA0_Y_MODIFY,val)
  348. #define bfin_read_DMA0_CURR_DESC_PTR() bfin_read32(DMA0_CURR_DESC_PTR)
  349. #define bfin_write_DMA0_CURR_DESC_PTR(val) bfin_write32(DMA0_CURR_DESC_PTR,val)
  350. #define bfin_read_DMA0_CURR_ADDR() bfin_read32(DMA0_CURR_ADDR)
  351. #define bfin_write_DMA0_CURR_ADDR(val) bfin_write32(DMA0_CURR_ADDR,val)
  352. #define bfin_read_DMA0_CURR_X_COUNT() bfin_read16(DMA0_CURR_X_COUNT)
  353. #define bfin_write_DMA0_CURR_X_COUNT(val) bfin_write16(DMA0_CURR_X_COUNT,val)
  354. #define bfin_read_DMA0_CURR_Y_COUNT() bfin_read16(DMA0_CURR_Y_COUNT)
  355. #define bfin_write_DMA0_CURR_Y_COUNT(val) bfin_write16(DMA0_CURR_Y_COUNT,val)
  356. #define bfin_read_DMA0_IRQ_STATUS() bfin_read16(DMA0_IRQ_STATUS)
  357. #define bfin_write_DMA0_IRQ_STATUS(val) bfin_write16(DMA0_IRQ_STATUS,val)
  358. #define bfin_read_DMA0_PERIPHERAL_MAP() bfin_read16(DMA0_PERIPHERAL_MAP)
  359. #define bfin_write_DMA0_PERIPHERAL_MAP(val) bfin_write16(DMA0_PERIPHERAL_MAP,val)
  360. #define bfin_read_DMA1_CONFIG() bfin_read16(DMA1_CONFIG)
  361. #define bfin_write_DMA1_CONFIG(val) bfin_write16(DMA1_CONFIG,val)
  362. #define bfin_read_DMA1_NEXT_DESC_PTR() bfin_read32(DMA1_NEXT_DESC_PTR)
  363. #define bfin_write_DMA1_NEXT_DESC_PTR(val) bfin_write32(DMA1_NEXT_DESC_PTR,val)
  364. #define bfin_read_DMA1_START_ADDR() bfin_read32(DMA1_START_ADDR)
  365. #define bfin_write_DMA1_START_ADDR(val) bfin_write32(DMA1_START_ADDR,val)
  366. #define bfin_read_DMA1_X_COUNT() bfin_read16(DMA1_X_COUNT)
  367. #define bfin_write_DMA1_X_COUNT(val) bfin_write16(DMA1_X_COUNT,val)
  368. #define bfin_read_DMA1_Y_COUNT() bfin_read16(DMA1_Y_COUNT)
  369. #define bfin_write_DMA1_Y_COUNT(val) bfin_write16(DMA1_Y_COUNT,val)
  370. #define bfin_read_DMA1_X_MODIFY() bfin_read16(DMA1_X_MODIFY)
  371. #define bfin_write_DMA1_X_MODIFY(val) bfin_write16(DMA1_X_MODIFY,val)
  372. #define bfin_read_DMA1_Y_MODIFY() bfin_read16(DMA1_Y_MODIFY)
  373. #define bfin_write_DMA1_Y_MODIFY(val) bfin_write16(DMA1_Y_MODIFY,val)
  374. #define bfin_read_DMA1_CURR_DESC_PTR() bfin_read32(DMA1_CURR_DESC_PTR)
  375. #define bfin_write_DMA1_CURR_DESC_PTR(val) bfin_write32(DMA1_CURR_DESC_PTR,val)
  376. #define bfin_read_DMA1_CURR_ADDR() bfin_read32(DMA1_CURR_ADDR)
  377. #define bfin_write_DMA1_CURR_ADDR(val) bfin_write32(DMA1_CURR_ADDR,val)
  378. #define bfin_read_DMA1_CURR_X_COUNT() bfin_read16(DMA1_CURR_X_COUNT)
  379. #define bfin_write_DMA1_CURR_X_COUNT(val) bfin_write16(DMA1_CURR_X_COUNT,val)
  380. #define bfin_read_DMA1_CURR_Y_COUNT() bfin_read16(DMA1_CURR_Y_COUNT)
  381. #define bfin_write_DMA1_CURR_Y_COUNT(val) bfin_write16(DMA1_CURR_Y_COUNT,val)
  382. #define bfin_read_DMA1_IRQ_STATUS() bfin_read16(DMA1_IRQ_STATUS)
  383. #define bfin_write_DMA1_IRQ_STATUS(val) bfin_write16(DMA1_IRQ_STATUS,val)
  384. #define bfin_read_DMA1_PERIPHERAL_MAP() bfin_read16(DMA1_PERIPHERAL_MAP)
  385. #define bfin_write_DMA1_PERIPHERAL_MAP(val) bfin_write16(DMA1_PERIPHERAL_MAP,val)
  386. #define bfin_read_DMA2_CONFIG() bfin_read16(DMA2_CONFIG)
  387. #define bfin_write_DMA2_CONFIG(val) bfin_write16(DMA2_CONFIG,val)
  388. #define bfin_read_DMA2_NEXT_DESC_PTR() bfin_read32(DMA2_NEXT_DESC_PTR)
  389. #define bfin_write_DMA2_NEXT_DESC_PTR(val) bfin_write32(DMA2_NEXT_DESC_PTR,val)
  390. #define bfin_read_DMA2_START_ADDR() bfin_read32(DMA2_START_ADDR)
  391. #define bfin_write_DMA2_START_ADDR(val) bfin_write32(DMA2_START_ADDR,val)
  392. #define bfin_read_DMA2_X_COUNT() bfin_read16(DMA2_X_COUNT)
  393. #define bfin_write_DMA2_X_COUNT(val) bfin_write16(DMA2_X_COUNT,val)
  394. #define bfin_read_DMA2_Y_COUNT() bfin_read16(DMA2_Y_COUNT)
  395. #define bfin_write_DMA2_Y_COUNT(val) bfin_write16(DMA2_Y_COUNT,val)
  396. #define bfin_read_DMA2_X_MODIFY() bfin_read16(DMA2_X_MODIFY)
  397. #define bfin_write_DMA2_X_MODIFY(val) bfin_write16(DMA2_X_MODIFY,val)
  398. #define bfin_read_DMA2_Y_MODIFY() bfin_read16(DMA2_Y_MODIFY)
  399. #define bfin_write_DMA2_Y_MODIFY(val) bfin_write16(DMA2_Y_MODIFY,val)
  400. #define bfin_read_DMA2_CURR_DESC_PTR() bfin_read32(DMA2_CURR_DESC_PTR)
  401. #define bfin_write_DMA2_CURR_DESC_PTR(val) bfin_write32(DMA2_CURR_DESC_PTR,val)
  402. #define bfin_read_DMA2_CURR_ADDR() bfin_read32(DMA2_CURR_ADDR)
  403. #define bfin_write_DMA2_CURR_ADDR(val) bfin_write32(DMA2_CURR_ADDR,val)
  404. #define bfin_read_DMA2_CURR_X_COUNT() bfin_read16(DMA2_CURR_X_COUNT)
  405. #define bfin_write_DMA2_CURR_X_COUNT(val) bfin_write16(DMA2_CURR_X_COUNT,val)
  406. #define bfin_read_DMA2_CURR_Y_COUNT() bfin_read16(DMA2_CURR_Y_COUNT)
  407. #define bfin_write_DMA2_CURR_Y_COUNT(val) bfin_write16(DMA2_CURR_Y_COUNT,val)
  408. #define bfin_read_DMA2_IRQ_STATUS() bfin_read16(DMA2_IRQ_STATUS)
  409. #define bfin_write_DMA2_IRQ_STATUS(val) bfin_write16(DMA2_IRQ_STATUS,val)
  410. #define bfin_read_DMA2_PERIPHERAL_MAP() bfin_read16(DMA2_PERIPHERAL_MAP)
  411. #define bfin_write_DMA2_PERIPHERAL_MAP(val) bfin_write16(DMA2_PERIPHERAL_MAP,val)
  412. #define bfin_read_DMA3_CONFIG() bfin_read16(DMA3_CONFIG)
  413. #define bfin_write_DMA3_CONFIG(val) bfin_write16(DMA3_CONFIG,val)
  414. #define bfin_read_DMA3_NEXT_DESC_PTR() bfin_read32(DMA3_NEXT_DESC_PTR)
  415. #define bfin_write_DMA3_NEXT_DESC_PTR(val) bfin_write32(DMA3_NEXT_DESC_PTR,val)
  416. #define bfin_read_DMA3_START_ADDR() bfin_read32(DMA3_START_ADDR)
  417. #define bfin_write_DMA3_START_ADDR(val) bfin_write32(DMA3_START_ADDR,val)
  418. #define bfin_read_DMA3_X_COUNT() bfin_read16(DMA3_X_COUNT)
  419. #define bfin_write_DMA3_X_COUNT(val) bfin_write16(DMA3_X_COUNT,val)
  420. #define bfin_read_DMA3_Y_COUNT() bfin_read16(DMA3_Y_COUNT)
  421. #define bfin_write_DMA3_Y_COUNT(val) bfin_write16(DMA3_Y_COUNT,val)
  422. #define bfin_read_DMA3_X_MODIFY() bfin_read16(DMA3_X_MODIFY)
  423. #define bfin_write_DMA3_X_MODIFY(val) bfin_write16(DMA3_X_MODIFY,val)
  424. #define bfin_read_DMA3_Y_MODIFY() bfin_read16(DMA3_Y_MODIFY)
  425. #define bfin_write_DMA3_Y_MODIFY(val) bfin_write16(DMA3_Y_MODIFY,val)
  426. #define bfin_read_DMA3_CURR_DESC_PTR() bfin_read32(DMA3_CURR_DESC_PTR)
  427. #define bfin_write_DMA3_CURR_DESC_PTR(val) bfin_write32(DMA3_CURR_DESC_PTR,val)
  428. #define bfin_read_DMA3_CURR_ADDR() bfin_read32(DMA3_CURR_ADDR)
  429. #define bfin_write_DMA3_CURR_ADDR(val) bfin_write32(DMA3_CURR_ADDR,val)
  430. #define bfin_read_DMA3_CURR_X_COUNT() bfin_read16(DMA3_CURR_X_COUNT)
  431. #define bfin_write_DMA3_CURR_X_COUNT(val) bfin_write16(DMA3_CURR_X_COUNT,val)
  432. #define bfin_read_DMA3_CURR_Y_COUNT() bfin_read16(DMA3_CURR_Y_COUNT)
  433. #define bfin_write_DMA3_CURR_Y_COUNT(val) bfin_write16(DMA3_CURR_Y_COUNT,val)
  434. #define bfin_read_DMA3_IRQ_STATUS() bfin_read16(DMA3_IRQ_STATUS)
  435. #define bfin_write_DMA3_IRQ_STATUS(val) bfin_write16(DMA3_IRQ_STATUS,val)
  436. #define bfin_read_DMA3_PERIPHERAL_MAP() bfin_read16(DMA3_PERIPHERAL_MAP)
  437. #define bfin_write_DMA3_PERIPHERAL_MAP(val) bfin_write16(DMA3_PERIPHERAL_MAP,val)
  438. #define bfin_read_DMA4_CONFIG() bfin_read16(DMA4_CONFIG)
  439. #define bfin_write_DMA4_CONFIG(val) bfin_write16(DMA4_CONFIG,val)
  440. #define bfin_read_DMA4_NEXT_DESC_PTR() bfin_read32(DMA4_NEXT_DESC_PTR)
  441. #define bfin_write_DMA4_NEXT_DESC_PTR(val) bfin_write32(DMA4_NEXT_DESC_PTR,val)
  442. #define bfin_read_DMA4_START_ADDR() bfin_read32(DMA4_START_ADDR)
  443. #define bfin_write_DMA4_START_ADDR(val) bfin_write32(DMA4_START_ADDR,val)
  444. #define bfin_read_DMA4_X_COUNT() bfin_read16(DMA4_X_COUNT)
  445. #define bfin_write_DMA4_X_COUNT(val) bfin_write16(DMA4_X_COUNT,val)
  446. #define bfin_read_DMA4_Y_COUNT() bfin_read16(DMA4_Y_COUNT)
  447. #define bfin_write_DMA4_Y_COUNT(val) bfin_write16(DMA4_Y_COUNT,val)
  448. #define bfin_read_DMA4_X_MODIFY() bfin_read16(DMA4_X_MODIFY)
  449. #define bfin_write_DMA4_X_MODIFY(val) bfin_write16(DMA4_X_MODIFY,val)
  450. #define bfin_read_DMA4_Y_MODIFY() bfin_read16(DMA4_Y_MODIFY)
  451. #define bfin_write_DMA4_Y_MODIFY(val) bfin_write16(DMA4_Y_MODIFY,val)
  452. #define bfin_read_DMA4_CURR_DESC_PTR() bfin_read32(DMA4_CURR_DESC_PTR)
  453. #define bfin_write_DMA4_CURR_DESC_PTR(val) bfin_write32(DMA4_CURR_DESC_PTR,val)
  454. #define bfin_read_DMA4_CURR_ADDR() bfin_read32(DMA4_CURR_ADDR)
  455. #define bfin_write_DMA4_CURR_ADDR(val) bfin_write32(DMA4_CURR_ADDR,val)
  456. #define bfin_read_DMA4_CURR_X_COUNT() bfin_read16(DMA4_CURR_X_COUNT)
  457. #define bfin_write_DMA4_CURR_X_COUNT(val) bfin_write16(DMA4_CURR_X_COUNT,val)
  458. #define bfin_read_DMA4_CURR_Y_COUNT() bfin_read16(DMA4_CURR_Y_COUNT)
  459. #define bfin_write_DMA4_CURR_Y_COUNT(val) bfin_write16(DMA4_CURR_Y_COUNT,val)
  460. #define bfin_read_DMA4_IRQ_STATUS() bfin_read16(DMA4_IRQ_STATUS)
  461. #define bfin_write_DMA4_IRQ_STATUS(val) bfin_write16(DMA4_IRQ_STATUS,val)
  462. #define bfin_read_DMA4_PERIPHERAL_MAP() bfin_read16(DMA4_PERIPHERAL_MAP)
  463. #define bfin_write_DMA4_PERIPHERAL_MAP(val) bfin_write16(DMA4_PERIPHERAL_MAP,val)
  464. #define bfin_read_DMA5_CONFIG() bfin_read16(DMA5_CONFIG)
  465. #define bfin_write_DMA5_CONFIG(val) bfin_write16(DMA5_CONFIG,val)
  466. #define bfin_read_DMA5_NEXT_DESC_PTR() bfin_read32(DMA5_NEXT_DESC_PTR)
  467. #define bfin_write_DMA5_NEXT_DESC_PTR(val) bfin_write32(DMA5_NEXT_DESC_PTR,val)
  468. #define bfin_read_DMA5_START_ADDR() bfin_read32(DMA5_START_ADDR)
  469. #define bfin_write_DMA5_START_ADDR(val) bfin_write32(DMA5_START_ADDR,val)
  470. #define bfin_read_DMA5_X_COUNT() bfin_read16(DMA5_X_COUNT)
  471. #define bfin_write_DMA5_X_COUNT(val) bfin_write16(DMA5_X_COUNT,val)
  472. #define bfin_read_DMA5_Y_COUNT() bfin_read16(DMA5_Y_COUNT)
  473. #define bfin_write_DMA5_Y_COUNT(val) bfin_write16(DMA5_Y_COUNT,val)
  474. #define bfin_read_DMA5_X_MODIFY() bfin_read16(DMA5_X_MODIFY)
  475. #define bfin_write_DMA5_X_MODIFY(val) bfin_write16(DMA5_X_MODIFY,val)
  476. #define bfin_read_DMA5_Y_MODIFY() bfin_read16(DMA5_Y_MODIFY)
  477. #define bfin_write_DMA5_Y_MODIFY(val) bfin_write16(DMA5_Y_MODIFY,val)
  478. #define bfin_read_DMA5_CURR_DESC_PTR() bfin_read32(DMA5_CURR_DESC_PTR)
  479. #define bfin_write_DMA5_CURR_DESC_PTR(val) bfin_write32(DMA5_CURR_DESC_PTR,val)
  480. #define bfin_read_DMA5_CURR_ADDR() bfin_read32(DMA5_CURR_ADDR)
  481. #define bfin_write_DMA5_CURR_ADDR(val) bfin_write32(DMA5_CURR_ADDR,val)
  482. #define bfin_read_DMA5_CURR_X_COUNT() bfin_read16(DMA5_CURR_X_COUNT)
  483. #define bfin_write_DMA5_CURR_X_COUNT(val) bfin_write16(DMA5_CURR_X_COUNT,val)
  484. #define bfin_read_DMA5_CURR_Y_COUNT() bfin_read16(DMA5_CURR_Y_COUNT)
  485. #define bfin_write_DMA5_CURR_Y_COUNT(val) bfin_write16(DMA5_CURR_Y_COUNT,val)
  486. #define bfin_read_DMA5_IRQ_STATUS() bfin_read16(DMA5_IRQ_STATUS)
  487. #define bfin_write_DMA5_IRQ_STATUS(val) bfin_write16(DMA5_IRQ_STATUS,val)
  488. #define bfin_read_DMA5_PERIPHERAL_MAP() bfin_read16(DMA5_PERIPHERAL_MAP)
  489. #define bfin_write_DMA5_PERIPHERAL_MAP(val) bfin_write16(DMA5_PERIPHERAL_MAP,val)
  490. #define bfin_read_DMA6_CONFIG() bfin_read16(DMA6_CONFIG)
  491. #define bfin_write_DMA6_CONFIG(val) bfin_write16(DMA6_CONFIG,val)
  492. #define bfin_read_DMA6_NEXT_DESC_PTR() bfin_read32(DMA6_NEXT_DESC_PTR)
  493. #define bfin_write_DMA6_NEXT_DESC_PTR(val) bfin_write32(DMA6_NEXT_DESC_PTR,val)
  494. #define bfin_read_DMA6_START_ADDR() bfin_read32(DMA6_START_ADDR)
  495. #define bfin_write_DMA6_START_ADDR(val) bfin_write32(DMA6_START_ADDR,val)
  496. #define bfin_read_DMA6_X_COUNT() bfin_read16(DMA6_X_COUNT)
  497. #define bfin_write_DMA6_X_COUNT(val) bfin_write16(DMA6_X_COUNT,val)
  498. #define bfin_read_DMA6_Y_COUNT() bfin_read16(DMA6_Y_COUNT)
  499. #define bfin_write_DMA6_Y_COUNT(val) bfin_write16(DMA6_Y_COUNT,val)
  500. #define bfin_read_DMA6_X_MODIFY() bfin_read16(DMA6_X_MODIFY)
  501. #define bfin_write_DMA6_X_MODIFY(val) bfin_write16(DMA6_X_MODIFY,val)
  502. #define bfin_read_DMA6_Y_MODIFY() bfin_read16(DMA6_Y_MODIFY)
  503. #define bfin_write_DMA6_Y_MODIFY(val) bfin_write16(DMA6_Y_MODIFY,val)
  504. #define bfin_read_DMA6_CURR_DESC_PTR() bfin_read32(DMA6_CURR_DESC_PTR)
  505. #define bfin_write_DMA6_CURR_DESC_PTR(val) bfin_write32(DMA6_CURR_DESC_PTR,val)
  506. #define bfin_read_DMA6_CURR_ADDR() bfin_read32(DMA6_CURR_ADDR)
  507. #define bfin_write_DMA6_CURR_ADDR(val) bfin_write32(DMA6_CURR_ADDR,val)
  508. #define bfin_read_DMA6_CURR_X_COUNT() bfin_read16(DMA6_CURR_X_COUNT)
  509. #define bfin_write_DMA6_CURR_X_COUNT(val) bfin_write16(DMA6_CURR_X_COUNT,val)
  510. #define bfin_read_DMA6_CURR_Y_COUNT() bfin_read16(DMA6_CURR_Y_COUNT)
  511. #define bfin_write_DMA6_CURR_Y_COUNT(val) bfin_write16(DMA6_CURR_Y_COUNT,val)
  512. #define bfin_read_DMA6_IRQ_STATUS() bfin_read16(DMA6_IRQ_STATUS)
  513. #define bfin_write_DMA6_IRQ_STATUS(val) bfin_write16(DMA6_IRQ_STATUS,val)
  514. #define bfin_read_DMA6_PERIPHERAL_MAP() bfin_read16(DMA6_PERIPHERAL_MAP)
  515. #define bfin_write_DMA6_PERIPHERAL_MAP(val) bfin_write16(DMA6_PERIPHERAL_MAP,val)
  516. #define bfin_read_DMA7_CONFIG() bfin_read16(DMA7_CONFIG)
  517. #define bfin_write_DMA7_CONFIG(val) bfin_write16(DMA7_CONFIG,val)
  518. #define bfin_read_DMA7_NEXT_DESC_PTR() bfin_read32(DMA7_NEXT_DESC_PTR)
  519. #define bfin_write_DMA7_NEXT_DESC_PTR(val) bfin_write32(DMA7_NEXT_DESC_PTR,val)
  520. #define bfin_read_DMA7_START_ADDR() bfin_read32(DMA7_START_ADDR)
  521. #define bfin_write_DMA7_START_ADDR(val) bfin_write32(DMA7_START_ADDR,val)
  522. #define bfin_read_DMA7_X_COUNT() bfin_read16(DMA7_X_COUNT)
  523. #define bfin_write_DMA7_X_COUNT(val) bfin_write16(DMA7_X_COUNT,val)
  524. #define bfin_read_DMA7_Y_COUNT() bfin_read16(DMA7_Y_COUNT)
  525. #define bfin_write_DMA7_Y_COUNT(val) bfin_write16(DMA7_Y_COUNT,val)
  526. #define bfin_read_DMA7_X_MODIFY() bfin_read16(DMA7_X_MODIFY)
  527. #define bfin_write_DMA7_X_MODIFY(val) bfin_write16(DMA7_X_MODIFY,val)
  528. #define bfin_read_DMA7_Y_MODIFY() bfin_read16(DMA7_Y_MODIFY)
  529. #define bfin_write_DMA7_Y_MODIFY(val) bfin_write16(DMA7_Y_MODIFY,val)
  530. #define bfin_read_DMA7_CURR_DESC_PTR() bfin_read32(DMA7_CURR_DESC_PTR)
  531. #define bfin_write_DMA7_CURR_DESC_PTR(val) bfin_write32(DMA7_CURR_DESC_PTR,val)
  532. #define bfin_read_DMA7_CURR_ADDR() bfin_read32(DMA7_CURR_ADDR)
  533. #define bfin_write_DMA7_CURR_ADDR(val) bfin_write32(DMA7_CURR_ADDR,val)
  534. #define bfin_read_DMA7_CURR_X_COUNT() bfin_read16(DMA7_CURR_X_COUNT)
  535. #define bfin_write_DMA7_CURR_X_COUNT(val) bfin_write16(DMA7_CURR_X_COUNT,val)
  536. #define bfin_read_DMA7_CURR_Y_COUNT() bfin_read16(DMA7_CURR_Y_COUNT)
  537. #define bfin_write_DMA7_CURR_Y_COUNT(val) bfin_write16(DMA7_CURR_Y_COUNT,val)
  538. #define bfin_read_DMA7_IRQ_STATUS() bfin_read16(DMA7_IRQ_STATUS)
  539. #define bfin_write_DMA7_IRQ_STATUS(val) bfin_write16(DMA7_IRQ_STATUS,val)
  540. #define bfin_read_DMA7_PERIPHERAL_MAP() bfin_read16(DMA7_PERIPHERAL_MAP)
  541. #define bfin_write_DMA7_PERIPHERAL_MAP(val) bfin_write16(DMA7_PERIPHERAL_MAP,val)
  542. #define bfin_read_DMA8_CONFIG() bfin_read16(DMA8_CONFIG)
  543. #define bfin_write_DMA8_CONFIG(val) bfin_write16(DMA8_CONFIG,val)
  544. #define bfin_read_DMA8_NEXT_DESC_PTR() bfin_read32(DMA8_NEXT_DESC_PTR)
  545. #define bfin_write_DMA8_NEXT_DESC_PTR(val) bfin_write32(DMA8_NEXT_DESC_PTR,val)
  546. #define bfin_read_DMA8_START_ADDR() bfin_read32(DMA8_START_ADDR)
  547. #define bfin_write_DMA8_START_ADDR(val) bfin_write32(DMA8_START_ADDR,val)
  548. #define bfin_read_DMA8_X_COUNT() bfin_read16(DMA8_X_COUNT)
  549. #define bfin_write_DMA8_X_COUNT(val) bfin_write16(DMA8_X_COUNT,val)
  550. #define bfin_read_DMA8_Y_COUNT() bfin_read16(DMA8_Y_COUNT)
  551. #define bfin_write_DMA8_Y_COUNT(val) bfin_write16(DMA8_Y_COUNT,val)
  552. #define bfin_read_DMA8_X_MODIFY() bfin_read16(DMA8_X_MODIFY)
  553. #define bfin_write_DMA8_X_MODIFY(val) bfin_write16(DMA8_X_MODIFY,val)
  554. #define bfin_read_DMA8_Y_MODIFY() bfin_read16(DMA8_Y_MODIFY)
  555. #define bfin_write_DMA8_Y_MODIFY(val) bfin_write16(DMA8_Y_MODIFY,val)
  556. #define bfin_read_DMA8_CURR_DESC_PTR() bfin_read32(DMA8_CURR_DESC_PTR)
  557. #define bfin_write_DMA8_CURR_DESC_PTR(val) bfin_write32(DMA8_CURR_DESC_PTR,val)
  558. #define bfin_read_DMA8_CURR_ADDR() bfin_read32(DMA8_CURR_ADDR)
  559. #define bfin_write_DMA8_CURR_ADDR(val) bfin_write32(DMA8_CURR_ADDR,val)
  560. #define bfin_read_DMA8_CURR_X_COUNT() bfin_read16(DMA8_CURR_X_COUNT)
  561. #define bfin_write_DMA8_CURR_X_COUNT(val) bfin_write16(DMA8_CURR_X_COUNT,val)
  562. #define bfin_read_DMA8_CURR_Y_COUNT() bfin_read16(DMA8_CURR_Y_COUNT)
  563. #define bfin_write_DMA8_CURR_Y_COUNT(val) bfin_write16(DMA8_CURR_Y_COUNT,val)
  564. #define bfin_read_DMA8_IRQ_STATUS() bfin_read16(DMA8_IRQ_STATUS)
  565. #define bfin_write_DMA8_IRQ_STATUS(val) bfin_write16(DMA8_IRQ_STATUS,val)
  566. #define bfin_read_DMA8_PERIPHERAL_MAP() bfin_read16(DMA8_PERIPHERAL_MAP)
  567. #define bfin_write_DMA8_PERIPHERAL_MAP(val) bfin_write16(DMA8_PERIPHERAL_MAP,val)
  568. #define bfin_read_DMA9_CONFIG() bfin_read16(DMA9_CONFIG)
  569. #define bfin_write_DMA9_CONFIG(val) bfin_write16(DMA9_CONFIG,val)
  570. #define bfin_read_DMA9_NEXT_DESC_PTR() bfin_read32(DMA9_NEXT_DESC_PTR)
  571. #define bfin_write_DMA9_NEXT_DESC_PTR(val) bfin_write32(DMA9_NEXT_DESC_PTR,val)
  572. #define bfin_read_DMA9_START_ADDR() bfin_read32(DMA9_START_ADDR)
  573. #define bfin_write_DMA9_START_ADDR(val) bfin_write32(DMA9_START_ADDR,val)
  574. #define bfin_read_DMA9_X_COUNT() bfin_read16(DMA9_X_COUNT)
  575. #define bfin_write_DMA9_X_COUNT(val) bfin_write16(DMA9_X_COUNT,val)
  576. #define bfin_read_DMA9_Y_COUNT() bfin_read16(DMA9_Y_COUNT)
  577. #define bfin_write_DMA9_Y_COUNT(val) bfin_write16(DMA9_Y_COUNT,val)
  578. #define bfin_read_DMA9_X_MODIFY() bfin_read16(DMA9_X_MODIFY)
  579. #define bfin_write_DMA9_X_MODIFY(val) bfin_write16(DMA9_X_MODIFY,val)
  580. #define bfin_read_DMA9_Y_MODIFY() bfin_read16(DMA9_Y_MODIFY)
  581. #define bfin_write_DMA9_Y_MODIFY(val) bfin_write16(DMA9_Y_MODIFY,val)
  582. #define bfin_read_DMA9_CURR_DESC_PTR() bfin_read32(DMA9_CURR_DESC_PTR)
  583. #define bfin_write_DMA9_CURR_DESC_PTR(val) bfin_write32(DMA9_CURR_DESC_PTR,val)
  584. #define bfin_read_DMA9_CURR_ADDR() bfin_read32(DMA9_CURR_ADDR)
  585. #define bfin_write_DMA9_CURR_ADDR(val) bfin_write32(DMA9_CURR_ADDR,val)
  586. #define bfin_read_DMA9_CURR_X_COUNT() bfin_read16(DMA9_CURR_X_COUNT)
  587. #define bfin_write_DMA9_CURR_X_COUNT(val) bfin_write16(DMA9_CURR_X_COUNT,val)
  588. #define bfin_read_DMA9_CURR_Y_COUNT() bfin_read16(DMA9_CURR_Y_COUNT)
  589. #define bfin_write_DMA9_CURR_Y_COUNT(val) bfin_write16(DMA9_CURR_Y_COUNT,val)
  590. #define bfin_read_DMA9_IRQ_STATUS() bfin_read16(DMA9_IRQ_STATUS)
  591. #define bfin_write_DMA9_IRQ_STATUS(val) bfin_write16(DMA9_IRQ_STATUS,val)
  592. #define bfin_read_DMA9_PERIPHERAL_MAP() bfin_read16(DMA9_PERIPHERAL_MAP)
  593. #define bfin_write_DMA9_PERIPHERAL_MAP(val) bfin_write16(DMA9_PERIPHERAL_MAP,val)
  594. #define bfin_read_DMA10_CONFIG() bfin_read16(DMA10_CONFIG)
  595. #define bfin_write_DMA10_CONFIG(val) bfin_write16(DMA10_CONFIG,val)
  596. #define bfin_read_DMA10_NEXT_DESC_PTR() bfin_read32(DMA10_NEXT_DESC_PTR)
  597. #define bfin_write_DMA10_NEXT_DESC_PTR(val) bfin_write32(DMA10_NEXT_DESC_PTR,val)
  598. #define bfin_read_DMA10_START_ADDR() bfin_read32(DMA10_START_ADDR)
  599. #define bfin_write_DMA10_START_ADDR(val) bfin_write32(DMA10_START_ADDR,val)
  600. #define bfin_read_DMA10_X_COUNT() bfin_read16(DMA10_X_COUNT)
  601. #define bfin_write_DMA10_X_COUNT(val) bfin_write16(DMA10_X_COUNT,val)
  602. #define bfin_read_DMA10_Y_COUNT() bfin_read16(DMA10_Y_COUNT)
  603. #define bfin_write_DMA10_Y_COUNT(val) bfin_write16(DMA10_Y_COUNT,val)
  604. #define bfin_read_DMA10_X_MODIFY() bfin_read16(DMA10_X_MODIFY)
  605. #define bfin_write_DMA10_X_MODIFY(val) bfin_write16(DMA10_X_MODIFY,val)
  606. #define bfin_read_DMA10_Y_MODIFY() bfin_read16(DMA10_Y_MODIFY)
  607. #define bfin_write_DMA10_Y_MODIFY(val) bfin_write16(DMA10_Y_MODIFY,val)
  608. #define bfin_read_DMA10_CURR_DESC_PTR() bfin_read32(DMA10_CURR_DESC_PTR)
  609. #define bfin_write_DMA10_CURR_DESC_PTR(val) bfin_write32(DMA10_CURR_DESC_PTR,val)
  610. #define bfin_read_DMA10_CURR_ADDR() bfin_read32(DMA10_CURR_ADDR)
  611. #define bfin_write_DMA10_CURR_ADDR(val) bfin_write32(DMA10_CURR_ADDR,val)
  612. #define bfin_read_DMA10_CURR_X_COUNT() bfin_read16(DMA10_CURR_X_COUNT)
  613. #define bfin_write_DMA10_CURR_X_COUNT(val) bfin_write16(DMA10_CURR_X_COUNT,val)
  614. #define bfin_read_DMA10_CURR_Y_COUNT() bfin_read16(DMA10_CURR_Y_COUNT)
  615. #define bfin_write_DMA10_CURR_Y_COUNT(val) bfin_write16(DMA10_CURR_Y_COUNT,val)
  616. #define bfin_read_DMA10_IRQ_STATUS() bfin_read16(DMA10_IRQ_STATUS)
  617. #define bfin_write_DMA10_IRQ_STATUS(val) bfin_write16(DMA10_IRQ_STATUS,val)
  618. #define bfin_read_DMA10_PERIPHERAL_MAP() bfin_read16(DMA10_PERIPHERAL_MAP)
  619. #define bfin_write_DMA10_PERIPHERAL_MAP(val) bfin_write16(DMA10_PERIPHERAL_MAP,val)
  620. #define bfin_read_DMA11_CONFIG() bfin_read16(DMA11_CONFIG)
  621. #define bfin_write_DMA11_CONFIG(val) bfin_write16(DMA11_CONFIG,val)
  622. #define bfin_read_DMA11_NEXT_DESC_PTR() bfin_read32(DMA11_NEXT_DESC_PTR)
  623. #define bfin_write_DMA11_NEXT_DESC_PTR(val) bfin_write32(DMA11_NEXT_DESC_PTR,val)
  624. #define bfin_read_DMA11_START_ADDR() bfin_read32(DMA11_START_ADDR)
  625. #define bfin_write_DMA11_START_ADDR(val) bfin_write32(DMA11_START_ADDR,val)
  626. #define bfin_read_DMA11_X_COUNT() bfin_read16(DMA11_X_COUNT)
  627. #define bfin_write_DMA11_X_COUNT(val) bfin_write16(DMA11_X_COUNT,val)
  628. #define bfin_read_DMA11_Y_COUNT() bfin_read16(DMA11_Y_COUNT)
  629. #define bfin_write_DMA11_Y_COUNT(val) bfin_write16(DMA11_Y_COUNT,val)
  630. #define bfin_read_DMA11_X_MODIFY() bfin_read16(DMA11_X_MODIFY)
  631. #define bfin_write_DMA11_X_MODIFY(val) bfin_write16(DMA11_X_MODIFY,val)
  632. #define bfin_read_DMA11_Y_MODIFY() bfin_read16(DMA11_Y_MODIFY)
  633. #define bfin_write_DMA11_Y_MODIFY(val) bfin_write16(DMA11_Y_MODIFY,val)
  634. #define bfin_read_DMA11_CURR_DESC_PTR() bfin_read32(DMA11_CURR_DESC_PTR)
  635. #define bfin_write_DMA11_CURR_DESC_PTR(val) bfin_write32(DMA11_CURR_DESC_PTR,val)
  636. #define bfin_read_DMA11_CURR_ADDR() bfin_read32(DMA11_CURR_ADDR)
  637. #define bfin_write_DMA11_CURR_ADDR(val) bfin_write32(DMA11_CURR_ADDR,val)
  638. #define bfin_read_DMA11_CURR_X_COUNT() bfin_read16(DMA11_CURR_X_COUNT)
  639. #define bfin_write_DMA11_CURR_X_COUNT(val) bfin_write16(DMA11_CURR_X_COUNT,val)
  640. #define bfin_read_DMA11_CURR_Y_COUNT() bfin_read16(DMA11_CURR_Y_COUNT)
  641. #define bfin_write_DMA11_CURR_Y_COUNT(val) bfin_write16(DMA11_CURR_Y_COUNT,val)
  642. #define bfin_read_DMA11_IRQ_STATUS() bfin_read16(DMA11_IRQ_STATUS)
  643. #define bfin_write_DMA11_IRQ_STATUS(val) bfin_write16(DMA11_IRQ_STATUS,val)
  644. #define bfin_read_DMA11_PERIPHERAL_MAP() bfin_read16(DMA11_PERIPHERAL_MAP)
  645. #define bfin_write_DMA11_PERIPHERAL_MAP(val) bfin_write16(DMA11_PERIPHERAL_MAP,val)
  646. #define bfin_read_MDMA_D0_CONFIG() bfin_read16(MDMA_D0_CONFIG)
  647. #define bfin_write_MDMA_D0_CONFIG(val) bfin_write16(MDMA_D0_CONFIG,val)
  648. #define bfin_read_MDMA_D0_NEXT_DESC_PTR() bfin_read32(MDMA_D0_NEXT_DESC_PTR)
  649. #define bfin_write_MDMA_D0_NEXT_DESC_PTR(val) bfin_write32(MDMA_D0_NEXT_DESC_PTR,val)
  650. #define bfin_read_MDMA_D0_START_ADDR() bfin_read32(MDMA_D0_START_ADDR)
  651. #define bfin_write_MDMA_D0_START_ADDR(val) bfin_write32(MDMA_D0_START_ADDR,val)
  652. #define bfin_read_MDMA_D0_X_COUNT() bfin_read16(MDMA_D0_X_COUNT)
  653. #define bfin_write_MDMA_D0_X_COUNT(val) bfin_write16(MDMA_D0_X_COUNT,val)
  654. #define bfin_read_MDMA_D0_Y_COUNT() bfin_read16(MDMA_D0_Y_COUNT)
  655. #define bfin_write_MDMA_D0_Y_COUNT(val) bfin_write16(MDMA_D0_Y_COUNT,val)
  656. #define bfin_read_MDMA_D0_X_MODIFY() bfin_read16(MDMA_D0_X_MODIFY)
  657. #define bfin_write_MDMA_D0_X_MODIFY(val) bfin_write16(MDMA_D0_X_MODIFY,val)
  658. #define bfin_read_MDMA_D0_Y_MODIFY() bfin_read16(MDMA_D0_Y_MODIFY)
  659. #define bfin_write_MDMA_D0_Y_MODIFY(val) bfin_write16(MDMA_D0_Y_MODIFY,val)
  660. #define bfin_read_MDMA_D0_CURR_DESC_PTR() bfin_read32(MDMA_D0_CURR_DESC_PTR)
  661. #define bfin_write_MDMA_D0_CURR_DESC_PTR(val) bfin_write32(MDMA_D0_CURR_DESC_PTR,val)
  662. #define bfin_read_MDMA_D0_CURR_ADDR() bfin_read32(MDMA_D0_CURR_ADDR)
  663. #define bfin_write_MDMA_D0_CURR_ADDR(val) bfin_write32(MDMA_D0_CURR_ADDR,val)
  664. #define bfin_read_MDMA_D0_CURR_X_COUNT() bfin_read16(MDMA_D0_CURR_X_COUNT)
  665. #define bfin_write_MDMA_D0_CURR_X_COUNT(val) bfin_write16(MDMA_D0_CURR_X_COUNT,val)
  666. #define bfin_read_MDMA_D0_CURR_Y_COUNT() bfin_read16(MDMA_D0_CURR_Y_COUNT)
  667. #define bfin_write_MDMA_D0_CURR_Y_COUNT(val) bfin_write16(MDMA_D0_CURR_Y_COUNT,val)
  668. #define bfin_read_MDMA_D0_IRQ_STATUS() bfin_read16(MDMA_D0_IRQ_STATUS)
  669. #define bfin_write_MDMA_D0_IRQ_STATUS(val) bfin_write16(MDMA_D0_IRQ_STATUS,val)
  670. #define bfin_read_MDMA_D0_PERIPHERAL_MAP() bfin_read16(MDMA_D0_PERIPHERAL_MAP)
  671. #define bfin_write_MDMA_D0_PERIPHERAL_MAP(val) bfin_write16(MDMA_D0_PERIPHERAL_MAP,val)
  672. #define bfin_read_MDMA_S0_CONFIG() bfin_read16(MDMA_S0_CONFIG)
  673. #define bfin_write_MDMA_S0_CONFIG(val) bfin_write16(MDMA_S0_CONFIG,val)
  674. #define bfin_read_MDMA_S0_NEXT_DESC_PTR() bfin_read32(MDMA_S0_NEXT_DESC_PTR)
  675. #define bfin_write_MDMA_S0_NEXT_DESC_PTR(val) bfin_write32(MDMA_S0_NEXT_DESC_PTR,val)
  676. #define bfin_read_MDMA_S0_START_ADDR() bfin_read32(MDMA_S0_START_ADDR)
  677. #define bfin_write_MDMA_S0_START_ADDR(val) bfin_write32(MDMA_S0_START_ADDR,val)
  678. #define bfin_read_MDMA_S0_X_COUNT() bfin_read16(MDMA_S0_X_COUNT)
  679. #define bfin_write_MDMA_S0_X_COUNT(val) bfin_write16(MDMA_S0_X_COUNT,val)
  680. #define bfin_read_MDMA_S0_Y_COUNT() bfin_read16(MDMA_S0_Y_COUNT)
  681. #define bfin_write_MDMA_S0_Y_COUNT(val) bfin_write16(MDMA_S0_Y_COUNT,val)
  682. #define bfin_read_MDMA_S0_X_MODIFY() bfin_read16(MDMA_S0_X_MODIFY)
  683. #define bfin_write_MDMA_S0_X_MODIFY(val) bfin_write16(MDMA_S0_X_MODIFY,val)
  684. #define bfin_read_MDMA_S0_Y_MODIFY() bfin_read16(MDMA_S0_Y_MODIFY)
  685. #define bfin_write_MDMA_S0_Y_MODIFY(val) bfin_write16(MDMA_S0_Y_MODIFY,val)
  686. #define bfin_read_MDMA_S0_CURR_DESC_PTR() bfin_read32(MDMA_S0_CURR_DESC_PTR)
  687. #define bfin_write_MDMA_S0_CURR_DESC_PTR(val) bfin_write32(MDMA_S0_CURR_DESC_PTR,val)
  688. #define bfin_read_MDMA_S0_CURR_ADDR() bfin_read32(MDMA_S0_CURR_ADDR)
  689. #define bfin_write_MDMA_S0_CURR_ADDR(val) bfin_write32(MDMA_S0_CURR_ADDR,val)
  690. #define bfin_read_MDMA_S0_CURR_X_COUNT() bfin_read16(MDMA_S0_CURR_X_COUNT)
  691. #define bfin_write_MDMA_S0_CURR_X_COUNT(val) bfin_write16(MDMA_S0_CURR_X_COUNT,val)
  692. #define bfin_read_MDMA_S0_CURR_Y_COUNT() bfin_read16(MDMA_S0_CURR_Y_COUNT)
  693. #define bfin_write_MDMA_S0_CURR_Y_COUNT(val) bfin_write16(MDMA_S0_CURR_Y_COUNT,val)
  694. #define bfin_read_MDMA_S0_IRQ_STATUS() bfin_read16(MDMA_S0_IRQ_STATUS)
  695. #define bfin_write_MDMA_S0_IRQ_STATUS(val) bfin_write16(MDMA_S0_IRQ_STATUS,val)
  696. #define bfin_read_MDMA_S0_PERIPHERAL_MAP() bfin_read16(MDMA_S0_PERIPHERAL_MAP)
  697. #define bfin_write_MDMA_S0_PERIPHERAL_MAP(val) bfin_write16(MDMA_S0_PERIPHERAL_MAP,val)
  698. #define bfin_read_MDMA_D1_CONFIG() bfin_read16(MDMA_D1_CONFIG)
  699. #define bfin_write_MDMA_D1_CONFIG(val) bfin_write16(MDMA_D1_CONFIG,val)
  700. #define bfin_read_MDMA_D1_NEXT_DESC_PTR() bfin_read32(MDMA_D1_NEXT_DESC_PTR)
  701. #define bfin_write_MDMA_D1_NEXT_DESC_PTR(val) bfin_write32(MDMA_D1_NEXT_DESC_PTR,val)
  702. #define bfin_read_MDMA_D1_START_ADDR() bfin_read32(MDMA_D1_START_ADDR)
  703. #define bfin_write_MDMA_D1_START_ADDR(val) bfin_write32(MDMA_D1_START_ADDR,val)
  704. #define bfin_read_MDMA_D1_X_COUNT() bfin_read16(MDMA_D1_X_COUNT)
  705. #define bfin_write_MDMA_D1_X_COUNT(val) bfin_write16(MDMA_D1_X_COUNT,val)
  706. #define bfin_read_MDMA_D1_Y_COUNT() bfin_read16(MDMA_D1_Y_COUNT)
  707. #define bfin_write_MDMA_D1_Y_COUNT(val) bfin_write16(MDMA_D1_Y_COUNT,val)
  708. #define bfin_read_MDMA_D1_X_MODIFY() bfin_read16(MDMA_D1_X_MODIFY)
  709. #define bfin_write_MDMA_D1_X_MODIFY(val) bfin_write16(MDMA_D1_X_MODIFY,val)
  710. #define bfin_read_MDMA_D1_Y_MODIFY() bfin_read16(MDMA_D1_Y_MODIFY)
  711. #define bfin_write_MDMA_D1_Y_MODIFY(val) bfin_write16(MDMA_D1_Y_MODIFY,val)
  712. #define bfin_read_MDMA_D1_CURR_DESC_PTR() bfin_read32(MDMA_D1_CURR_DESC_PTR)
  713. #define bfin_write_MDMA_D1_CURR_DESC_PTR(val) bfin_write32(MDMA_D1_CURR_DESC_PTR,val)
  714. #define bfin_read_MDMA_D1_CURR_ADDR() bfin_read32(MDMA_D1_CURR_ADDR)
  715. #define bfin_write_MDMA_D1_CURR_ADDR(val) bfin_write32(MDMA_D1_CURR_ADDR,val)
  716. #define bfin_read_MDMA_D1_CURR_X_COUNT() bfin_read16(MDMA_D1_CURR_X_COUNT)
  717. #define bfin_write_MDMA_D1_CURR_X_COUNT(val) bfin_write16(MDMA_D1_CURR_X_COUNT,val)
  718. #define bfin_read_MDMA_D1_CURR_Y_COUNT() bfin_read16(MDMA_D1_CURR_Y_COUNT)
  719. #define bfin_write_MDMA_D1_CURR_Y_COUNT(val) bfin_write16(MDMA_D1_CURR_Y_COUNT,val)
  720. #define bfin_read_MDMA_D1_IRQ_STATUS() bfin_read16(MDMA_D1_IRQ_STATUS)
  721. #define bfin_write_MDMA_D1_IRQ_STATUS(val) bfin_write16(MDMA_D1_IRQ_STATUS,val)
  722. #define bfin_read_MDMA_D1_PERIPHERAL_MAP() bfin_read16(MDMA_D1_PERIPHERAL_MAP)
  723. #define bfin_write_MDMA_D1_PERIPHERAL_MAP(val) bfin_write16(MDMA_D1_PERIPHERAL_MAP,val)
  724. #define bfin_read_MDMA_S1_CONFIG() bfin_read16(MDMA_S1_CONFIG)
  725. #define bfin_write_MDMA_S1_CONFIG(val) bfin_write16(MDMA_S1_CONFIG,val)
  726. #define bfin_read_MDMA_S1_NEXT_DESC_PTR() bfin_read32(MDMA_S1_NEXT_DESC_PTR)
  727. #define bfin_write_MDMA_S1_NEXT_DESC_PTR(val) bfin_write32(MDMA_S1_NEXT_DESC_PTR,val)
  728. #define bfin_read_MDMA_S1_START_ADDR() bfin_read32(MDMA_S1_START_ADDR)
  729. #define bfin_write_MDMA_S1_START_ADDR(val) bfin_write32(MDMA_S1_START_ADDR,val)
  730. #define bfin_read_MDMA_S1_X_COUNT() bfin_read16(MDMA_S1_X_COUNT)
  731. #define bfin_write_MDMA_S1_X_COUNT(val) bfin_write16(MDMA_S1_X_COUNT,val)
  732. #define bfin_read_MDMA_S1_Y_COUNT() bfin_read16(MDMA_S1_Y_COUNT)
  733. #define bfin_write_MDMA_S1_Y_COUNT(val) bfin_write16(MDMA_S1_Y_COUNT,val)
  734. #define bfin_read_MDMA_S1_X_MODIFY() bfin_read16(MDMA_S1_X_MODIFY)
  735. #define bfin_write_MDMA_S1_X_MODIFY(val) bfin_write16(MDMA_S1_X_MODIFY,val)
  736. #define bfin_read_MDMA_S1_Y_MODIFY() bfin_read16(MDMA_S1_Y_MODIFY)
  737. #define bfin_write_MDMA_S1_Y_MODIFY(val) bfin_write16(MDMA_S1_Y_MODIFY,val)
  738. #define bfin_read_MDMA_S1_CURR_DESC_PTR() bfin_read32(MDMA_S1_CURR_DESC_PTR)
  739. #define bfin_write_MDMA_S1_CURR_DESC_PTR(val) bfin_write32(MDMA_S1_CURR_DESC_PTR,val)
  740. #define bfin_read_MDMA_S1_CURR_ADDR() bfin_read32(MDMA_S1_CURR_ADDR)
  741. #define bfin_write_MDMA_S1_CURR_ADDR(val) bfin_write32(MDMA_S1_CURR_ADDR,val)
  742. #define bfin_read_MDMA_S1_CURR_X_COUNT() bfin_read16(MDMA_S1_CURR_X_COUNT)
  743. #define bfin_write_MDMA_S1_CURR_X_COUNT(val) bfin_write16(MDMA_S1_CURR_X_COUNT,val)
  744. #define bfin_read_MDMA_S1_CURR_Y_COUNT() bfin_read16(MDMA_S1_CURR_Y_COUNT)
  745. #define bfin_write_MDMA_S1_CURR_Y_COUNT(val) bfin_write16(MDMA_S1_CURR_Y_COUNT,val)
  746. #define bfin_read_MDMA_S1_IRQ_STATUS() bfin_read16(MDMA_S1_IRQ_STATUS)
  747. #define bfin_write_MDMA_S1_IRQ_STATUS(val) bfin_write16(MDMA_S1_IRQ_STATUS,val)
  748. #define bfin_read_MDMA_S1_PERIPHERAL_MAP() bfin_read16(MDMA_S1_PERIPHERAL_MAP)
  749. #define bfin_write_MDMA_S1_PERIPHERAL_MAP(val) bfin_write16(MDMA_S1_PERIPHERAL_MAP,val)
  750. /* Parallel Peripheral Interface (0xFFC01000 - 0xFFC010FF) */
  751. #define bfin_read_PPI_CONTROL() bfin_read16(PPI_CONTROL)
  752. #define bfin_write_PPI_CONTROL(val) bfin_write16(PPI_CONTROL,val)
  753. #define bfin_read_PPI_STATUS() bfin_read16(PPI_STATUS)
  754. #define bfin_write_PPI_STATUS(val) bfin_write16(PPI_STATUS,val)
  755. #define bfin_clear_PPI_STATUS() bfin_write_PPI_STATUS(0xFFFF)
  756. #define bfin_read_PPI_DELAY() bfin_read16(PPI_DELAY)
  757. #define bfin_write_PPI_DELAY(val) bfin_write16(PPI_DELAY,val)
  758. #define bfin_read_PPI_COUNT() bfin_read16(PPI_COUNT)
  759. #define bfin_write_PPI_COUNT(val) bfin_write16(PPI_COUNT,val)
  760. #define bfin_read_PPI_FRAME() bfin_read16(PPI_FRAME)
  761. #define bfin_write_PPI_FRAME(val) bfin_write16(PPI_FRAME,val)
  762. /* Two-Wire Interface (0xFFC01400 - 0xFFC014FF) */
  763. /* General Purpose I/O Port G (0xFFC01500 - 0xFFC015FF) */
  764. #define bfin_read_PORTGIO() bfin_read16(PORTGIO)
  765. #define bfin_write_PORTGIO(val) bfin_write16(PORTGIO,val)
  766. #define bfin_read_PORTGIO_CLEAR() bfin_read16(PORTGIO_CLEAR)
  767. #define bfin_write_PORTGIO_CLEAR(val) bfin_write16(PORTGIO_CLEAR,val)
  768. #define bfin_read_PORTGIO_SET() bfin_read16(PORTGIO_SET)
  769. #define bfin_write_PORTGIO_SET(val) bfin_write16(PORTGIO_SET,val)
  770. #define bfin_read_PORTGIO_TOGGLE() bfin_read16(PORTGIO_TOGGLE)
  771. #define bfin_write_PORTGIO_TOGGLE(val) bfin_write16(PORTGIO_TOGGLE,val)
  772. #define bfin_read_PORTGIO_MASKA() bfin_read16(PORTGIO_MASKA)
  773. #define bfin_write_PORTGIO_MASKA(val) bfin_write16(PORTGIO_MASKA,val)
  774. #define bfin_read_PORTGIO_MASKA_CLEAR() bfin_read16(PORTGIO_MASKA_CLEAR)
  775. #define bfin_write_PORTGIO_MASKA_CLEAR(val) bfin_write16(PORTGIO_MASKA_CLEAR,val)
  776. #define bfin_read_PORTGIO_MASKA_SET() bfin_read16(PORTGIO_MASKA_SET)
  777. #define bfin_write_PORTGIO_MASKA_SET(val) bfin_write16(PORTGIO_MASKA_SET,val)
  778. #define bfin_read_PORTGIO_MASKA_TOGGLE() bfin_read16(PORTGIO_MASKA_TOGGLE)
  779. #define bfin_write_PORTGIO_MASKA_TOGGLE(val) bfin_write16(PORTGIO_MASKA_TOGGLE,val)
  780. #define bfin_read_PORTGIO_MASKB() bfin_read16(PORTGIO_MASKB)
  781. #define bfin_write_PORTGIO_MASKB(val) bfin_write16(PORTGIO_MASKB,val)
  782. #define bfin_read_PORTGIO_MASKB_CLEAR() bfin_read16(PORTGIO_MASKB_CLEAR)
  783. #define bfin_write_PORTGIO_MASKB_CLEAR(val) bfin_write16(PORTGIO_MASKB_CLEAR,val)
  784. #define bfin_read_PORTGIO_MASKB_SET() bfin_read16(PORTGIO_MASKB_SET)
  785. #define bfin_write_PORTGIO_MASKB_SET(val) bfin_write16(PORTGIO_MASKB_SET,val)
  786. #define bfin_read_PORTGIO_MASKB_TOGGLE() bfin_read16(PORTGIO_MASKB_TOGGLE)
  787. #define bfin_write_PORTGIO_MASKB_TOGGLE(val) bfin_write16(PORTGIO_MASKB_TOGGLE,val)
  788. #define bfin_read_PORTGIO_DIR() bfin_read16(PORTGIO_DIR)
  789. #define bfin_write_PORTGIO_DIR(val) bfin_write16(PORTGIO_DIR,val)
  790. #define bfin_read_PORTGIO_POLAR() bfin_read16(PORTGIO_POLAR)
  791. #define bfin_write_PORTGIO_POLAR(val) bfin_write16(PORTGIO_POLAR,val)
  792. #define bfin_read_PORTGIO_EDGE() bfin_read16(PORTGIO_EDGE)
  793. #define bfin_write_PORTGIO_EDGE(val) bfin_write16(PORTGIO_EDGE,val)
  794. #define bfin_read_PORTGIO_BOTH() bfin_read16(PORTGIO_BOTH)
  795. #define bfin_write_PORTGIO_BOTH(val) bfin_write16(PORTGIO_BOTH,val)
  796. #define bfin_read_PORTGIO_INEN() bfin_read16(PORTGIO_INEN)
  797. #define bfin_write_PORTGIO_INEN(val) bfin_write16(PORTGIO_INEN,val)
  798. /* General Purpose I/O Port H (0xFFC01700 - 0xFFC017FF) */
  799. #define bfin_read_PORTHIO() bfin_read16(PORTHIO)
  800. #define bfin_write_PORTHIO(val) bfin_write16(PORTHIO,val)
  801. #define bfin_read_PORTHIO_CLEAR() bfin_read16(PORTHIO_CLEAR)
  802. #define bfin_write_PORTHIO_CLEAR(val) bfin_write16(PORTHIO_CLEAR,val)
  803. #define bfin_read_PORTHIO_SET() bfin_read16(PORTHIO_SET)
  804. #define bfin_write_PORTHIO_SET(val) bfin_write16(PORTHIO_SET,val)
  805. #define bfin_read_PORTHIO_TOGGLE() bfin_read16(PORTHIO_TOGGLE)
  806. #define bfin_write_PORTHIO_TOGGLE(val) bfin_write16(PORTHIO_TOGGLE,val)
  807. #define bfin_read_PORTHIO_MASKA() bfin_read16(PORTHIO_MASKA)
  808. #define bfin_write_PORTHIO_MASKA(val) bfin_write16(PORTHIO_MASKA,val)
  809. #define bfin_read_PORTHIO_MASKA_CLEAR() bfin_read16(PORTHIO_MASKA_CLEAR)
  810. #define bfin_write_PORTHIO_MASKA_CLEAR(val) bfin_write16(PORTHIO_MASKA_CLEAR,val)
  811. #define bfin_read_PORTHIO_MASKA_SET() bfin_read16(PORTHIO_MASKA_SET)
  812. #define bfin_write_PORTHIO_MASKA_SET(val) bfin_write16(PORTHIO_MASKA_SET,val)
  813. #define bfin_read_PORTHIO_MASKA_TOGGLE() bfin_read16(PORTHIO_MASKA_TOGGLE)
  814. #define bfin_write_PORTHIO_MASKA_TOGGLE(val) bfin_write16(PORTHIO_MASKA_TOGGLE,val)
  815. #define bfin_read_PORTHIO_MASKB() bfin_read16(PORTHIO_MASKB)
  816. #define bfin_write_PORTHIO_MASKB(val) bfin_write16(PORTHIO_MASKB,val)
  817. #define bfin_read_PORTHIO_MASKB_CLEAR() bfin_read16(PORTHIO_MASKB_CLEAR)
  818. #define bfin_write_PORTHIO_MASKB_CLEAR(val) bfin_write16(PORTHIO_MASKB_CLEAR,val)
  819. #define bfin_read_PORTHIO_MASKB_SET() bfin_read16(PORTHIO_MASKB_SET)
  820. #define bfin_write_PORTHIO_MASKB_SET(val) bfin_write16(PORTHIO_MASKB_SET,val)
  821. #define bfin_read_PORTHIO_MASKB_TOGGLE() bfin_read16(PORTHIO_MASKB_TOGGLE)
  822. #define bfin_write_PORTHIO_MASKB_TOGGLE(val) bfin_write16(PORTHIO_MASKB_TOGGLE,val)
  823. #define bfin_read_PORTHIO_DIR() bfin_read16(PORTHIO_DIR)
  824. #define bfin_write_PORTHIO_DIR(val) bfin_write16(PORTHIO_DIR,val)
  825. #define bfin_read_PORTHIO_POLAR() bfin_read16(PORTHIO_POLAR)
  826. #define bfin_write_PORTHIO_POLAR(val) bfin_write16(PORTHIO_POLAR,val)
  827. #define bfin_read_PORTHIO_EDGE() bfin_read16(PORTHIO_EDGE)
  828. #define bfin_write_PORTHIO_EDGE(val) bfin_write16(PORTHIO_EDGE,val)
  829. #define bfin_read_PORTHIO_BOTH() bfin_read16(PORTHIO_BOTH)
  830. #define bfin_write_PORTHIO_BOTH(val) bfin_write16(PORTHIO_BOTH,val)
  831. #define bfin_read_PORTHIO_INEN() bfin_read16(PORTHIO_INEN)
  832. #define bfin_write_PORTHIO_INEN(val) bfin_write16(PORTHIO_INEN,val)
  833. /* UART1 Controller (0xFFC02000 - 0xFFC020FF) */
  834. #define bfin_read_UART1_THR() bfin_read16(UART1_THR)
  835. #define bfin_write_UART1_THR(val) bfin_write16(UART1_THR,val)
  836. #define bfin_read_UART1_RBR() bfin_read16(UART1_RBR)
  837. #define bfin_write_UART1_RBR(val) bfin_write16(UART1_RBR,val)
  838. #define bfin_read_UART1_DLL() bfin_read16(UART1_DLL)
  839. #define bfin_write_UART1_DLL(val) bfin_write16(UART1_DLL,val)
  840. #define bfin_read_UART1_IER() bfin_read16(UART1_IER)
  841. #define bfin_write_UART1_IER(val) bfin_write16(UART1_IER,val)
  842. #define bfin_read_UART1_DLH() bfin_read16(UART1_DLH)
  843. #define bfin_write_UART1_DLH(val) bfin_write16(UART1_DLH,val)
  844. #define bfin_read_UART1_IIR() bfin_read16(UART1_IIR)
  845. #define bfin_write_UART1_IIR(val) bfin_write16(UART1_IIR,val)
  846. #define bfin_read_UART1_LCR() bfin_read16(UART1_LCR)
  847. #define bfin_write_UART1_LCR(val) bfin_write16(UART1_LCR,val)
  848. #define bfin_read_UART1_MCR() bfin_read16(UART1_MCR)
  849. #define bfin_write_UART1_MCR(val) bfin_write16(UART1_MCR,val)
  850. #define bfin_read_UART1_LSR() bfin_read16(UART1_LSR)
  851. #define bfin_write_UART1_LSR(val) bfin_write16(UART1_LSR,val)
  852. #define bfin_read_UART1_MSR() bfin_read16(UART1_MSR)
  853. #define bfin_write_UART1_MSR(val) bfin_write16(UART1_MSR,val)
  854. #define bfin_read_UART1_SCR() bfin_read16(UART1_SCR)
  855. #define bfin_write_UART1_SCR(val) bfin_write16(UART1_SCR,val)
  856. #define bfin_read_UART1_GCTL() bfin_read16(UART1_GCTL)
  857. #define bfin_write_UART1_GCTL(val) bfin_write16(UART1_GCTL,val)
  858. /* CAN Controller (0xFFC02A00 - 0xFFC02FFF) */
  859. /* For Mailboxes 0-15 */
  860. #define bfin_read_CAN_MC1() bfin_read16(CAN_MC1)
  861. #define bfin_write_CAN_MC1(val) bfin_write16(CAN_MC1,val)
  862. #define bfin_read_CAN_MD1() bfin_read16(CAN_MD1)
  863. #define bfin_write_CAN_MD1(val) bfin_write16(CAN_MD1,val)
  864. #define bfin_read_CAN_TRS1() bfin_read16(CAN_TRS1)
  865. #define bfin_write_CAN_TRS1(val) bfin_write16(CAN_TRS1,val)
  866. #define bfin_read_CAN_TRR1() bfin_read16(CAN_TRR1)
  867. #define bfin_write_CAN_TRR1(val) bfin_write16(CAN_TRR1,val)
  868. #define bfin_read_CAN_TA1() bfin_read16(CAN_TA1)
  869. #define bfin_write_CAN_TA1(val) bfin_write16(CAN_TA1,val)
  870. #define bfin_read_CAN_AA1() bfin_read16(CAN_AA1)
  871. #define bfin_write_CAN_AA1(val) bfin_write16(CAN_AA1,val)
  872. #define bfin_read_CAN_RMP1() bfin_read16(CAN_RMP1)
  873. #define bfin_write_CAN_RMP1(val) bfin_write16(CAN_RMP1,val)
  874. #define bfin_read_CAN_RML1() bfin_read16(CAN_RML1)
  875. #define bfin_write_CAN_RML1(val) bfin_write16(CAN_RML1,val)
  876. #define bfin_read_CAN_MBTIF1() bfin_read16(CAN_MBTIF1)
  877. #define bfin_write_CAN_MBTIF1(val) bfin_write16(CAN_MBTIF1,val)
  878. #define bfin_read_CAN_MBRIF1() bfin_read16(CAN_MBRIF1)
  879. #define bfin_write_CAN_MBRIF1(val) bfin_write16(CAN_MBRIF1,val)
  880. #define bfin_read_CAN_MBIM1() bfin_read16(CAN_MBIM1)
  881. #define bfin_write_CAN_MBIM1(val) bfin_write16(CAN_MBIM1,val)
  882. #define bfin_read_CAN_RFH1() bfin_read16(CAN_RFH1)
  883. #define bfin_write_CAN_RFH1(val) bfin_write16(CAN_RFH1,val)
  884. #define bfin_read_CAN_OPSS1() bfin_read16(CAN_OPSS1)
  885. #define bfin_write_CAN_OPSS1(val) bfin_write16(CAN_OPSS1,val)
  886. /* For Mailboxes 16-31 */
  887. #define bfin_read_CAN_MC2() bfin_read16(CAN_MC2)
  888. #define bfin_write_CAN_MC2(val) bfin_write16(CAN_MC2,val)
  889. #define bfin_read_CAN_MD2() bfin_read16(CAN_MD2)
  890. #define bfin_write_CAN_MD2(val) bfin_write16(CAN_MD2,val)
  891. #define bfin_read_CAN_TRS2() bfin_read16(CAN_TRS2)
  892. #define bfin_write_CAN_TRS2(val) bfin_write16(CAN_TRS2,val)
  893. #define bfin_read_CAN_TRR2() bfin_read16(CAN_TRR2)
  894. #define bfin_write_CAN_TRR2(val) bfin_write16(CAN_TRR2,val)
  895. #define bfin_read_CAN_TA2() bfin_read16(CAN_TA2)
  896. #define bfin_write_CAN_TA2(val) bfin_write16(CAN_TA2,val)
  897. #define bfin_read_CAN_AA2() bfin_read16(CAN_AA2)
  898. #define bfin_write_CAN_AA2(val) bfin_write16(CAN_AA2,val)
  899. #define bfin_read_CAN_RMP2() bfin_read16(CAN_RMP2)
  900. #define bfin_write_CAN_RMP2(val) bfin_write16(CAN_RMP2,val)
  901. #define bfin_read_CAN_RML2() bfin_read16(CAN_RML2)
  902. #define bfin_write_CAN_RML2(val) bfin_write16(CAN_RML2,val)
  903. #define bfin_read_CAN_MBTIF2() bfin_read16(CAN_MBTIF2)
  904. #define bfin_write_CAN_MBTIF2(val) bfin_write16(CAN_MBTIF2,val)
  905. #define bfin_read_CAN_MBRIF2() bfin_read16(CAN_MBRIF2)
  906. #define bfin_write_CAN_MBRIF2(val) bfin_write16(CAN_MBRIF2,val)
  907. #define bfin_read_CAN_MBIM2() bfin_read16(CAN_MBIM2)
  908. #define bfin_write_CAN_MBIM2(val) bfin_write16(CAN_MBIM2,val)
  909. #define bfin_read_CAN_RFH2() bfin_read16(CAN_RFH2)
  910. #define bfin_write_CAN_RFH2(val) bfin_write16(CAN_RFH2,val)
  911. #define bfin_read_CAN_OPSS2() bfin_read16(CAN_OPSS2)
  912. #define bfin_write_CAN_OPSS2(val) bfin_write16(CAN_OPSS2,val)
  913. #define bfin_read_CAN_CLOCK() bfin_read16(CAN_CLOCK)
  914. #define bfin_write_CAN_CLOCK(val) bfin_write16(CAN_CLOCK,val)
  915. #define bfin_read_CAN_TIMING() bfin_read16(CAN_TIMING)
  916. #define bfin_write_CAN_TIMING(val) bfin_write16(CAN_TIMING,val)
  917. #define bfin_read_CAN_DEBUG() bfin_read16(CAN_DEBUG)
  918. #define bfin_write_CAN_DEBUG(val) bfin_write16(CAN_DEBUG,val)
  919. #define bfin_read_CAN_STATUS() bfin_read16(CAN_STATUS)
  920. #define bfin_write_CAN_STATUS(val) bfin_write16(CAN_STATUS,val)
  921. #define bfin_read_CAN_CEC() bfin_read16(CAN_CEC)
  922. #define bfin_write_CAN_CEC(val) bfin_write16(CAN_CEC,val)
  923. #define bfin_read_CAN_GIS() bfin_read16(CAN_GIS)
  924. #define bfin_write_CAN_GIS(val) bfin_write16(CAN_GIS,val)
  925. #define bfin_read_CAN_GIM() bfin_read16(CAN_GIM)
  926. #define bfin_write_CAN_GIM(val) bfin_write16(CAN_GIM,val)
  927. #define bfin_read_CAN_GIF() bfin_read16(CAN_GIF)
  928. #define bfin_write_CAN_GIF(val) bfin_write16(CAN_GIF,val)
  929. #define bfin_read_CAN_CONTROL() bfin_read16(CAN_CONTROL)
  930. #define bfin_write_CAN_CONTROL(val) bfin_write16(CAN_CONTROL,val)
  931. #define bfin_read_CAN_INTR() bfin_read16(CAN_INTR)
  932. #define bfin_write_CAN_INTR(val) bfin_write16(CAN_INTR,val)
  933. #define bfin_read_CAN_SFCMVER() bfin_read16(CAN_SFCMVER)
  934. #define bfin_write_CAN_SFCMVER(val) bfin_write16(CAN_SFCMVER,val)
  935. #define bfin_read_CAN_MBTD() bfin_read16(CAN_MBTD)
  936. #define bfin_write_CAN_MBTD(val) bfin_write16(CAN_MBTD,val)
  937. #define bfin_read_CAN_EWR() bfin_read16(CAN_EWR)
  938. #define bfin_write_CAN_EWR(val) bfin_write16(CAN_EWR,val)
  939. #define bfin_read_CAN_ESR() bfin_read16(CAN_ESR)
  940. #define bfin_write_CAN_ESR(val) bfin_write16(CAN_ESR,val)
  941. #define bfin_read_CAN_UCREG() bfin_read16(CAN_UCREG)
  942. #define bfin_write_CAN_UCREG(val) bfin_write16(CAN_UCREG,val)
  943. #define bfin_read_CAN_UCCNT() bfin_read16(CAN_UCCNT)
  944. #define bfin_write_CAN_UCCNT(val) bfin_write16(CAN_UCCNT,val)
  945. #define bfin_read_CAN_UCRC() bfin_read16(CAN_UCRC)
  946. #define bfin_write_CAN_UCRC(val) bfin_write16(CAN_UCRC,val)
  947. #define bfin_read_CAN_UCCNF() bfin_read16(CAN_UCCNF)
  948. #define bfin_write_CAN_UCCNF(val) bfin_write16(CAN_UCCNF,val)
  949. /* Mailbox Acceptance Masks */
  950. #define bfin_read_CAN_AM00L() bfin_read16(CAN_AM00L)
  951. #define bfin_write_CAN_AM00L(val) bfin_write16(CAN_AM00L,val)
  952. #define bfin_read_CAN_AM00H() bfin_read16(CAN_AM00H)
  953. #define bfin_write_CAN_AM00H(val) bfin_write16(CAN_AM00H,val)
  954. #define bfin_read_CAN_AM01L() bfin_read16(CAN_AM01L)
  955. #define bfin_write_CAN_AM01L(val) bfin_write16(CAN_AM01L,val)
  956. #define bfin_read_CAN_AM01H() bfin_read16(CAN_AM01H)
  957. #define bfin_write_CAN_AM01H(val) bfin_write16(CAN_AM01H,val)
  958. #define bfin_read_CAN_AM02L() bfin_read16(CAN_AM02L)
  959. #define bfin_write_CAN_AM02L(val) bfin_write16(CAN_AM02L,val)
  960. #define bfin_read_CAN_AM02H() bfin_read16(CAN_AM02H)
  961. #define bfin_write_CAN_AM02H(val) bfin_write16(CAN_AM02H,val)
  962. #define bfin_read_CAN_AM03L() bfin_read16(CAN_AM03L)
  963. #define bfin_write_CAN_AM03L(val) bfin_write16(CAN_AM03L,val)
  964. #define bfin_read_CAN_AM03H() bfin_read16(CAN_AM03H)
  965. #define bfin_write_CAN_AM03H(val) bfin_write16(CAN_AM03H,val)
  966. #define bfin_read_CAN_AM04L() bfin_read16(CAN_AM04L)
  967. #define bfin_write_CAN_AM04L(val) bfin_write16(CAN_AM04L,val)
  968. #define bfin_read_CAN_AM04H() bfin_read16(CAN_AM04H)
  969. #define bfin_write_CAN_AM04H(val) bfin_write16(CAN_AM04H,val)
  970. #define bfin_read_CAN_AM05L() bfin_read16(CAN_AM05L)
  971. #define bfin_write_CAN_AM05L(val) bfin_write16(CAN_AM05L,val)
  972. #define bfin_read_CAN_AM05H() bfin_read16(CAN_AM05H)
  973. #define bfin_write_CAN_AM05H(val) bfin_write16(CAN_AM05H,val)
  974. #define bfin_read_CAN_AM06L() bfin_read16(CAN_AM06L)
  975. #define bfin_write_CAN_AM06L(val) bfin_write16(CAN_AM06L,val)
  976. #define bfin_read_CAN_AM06H() bfin_read16(CAN_AM06H)
  977. #define bfin_write_CAN_AM06H(val) bfin_write16(CAN_AM06H,val)
  978. #define bfin_read_CAN_AM07L() bfin_read16(CAN_AM07L)
  979. #define bfin_write_CAN_AM07L(val) bfin_write16(CAN_AM07L,val)
  980. #define bfin_read_CAN_AM07H() bfin_read16(CAN_AM07H)
  981. #define bfin_write_CAN_AM07H(val) bfin_write16(CAN_AM07H,val)
  982. #define bfin_read_CAN_AM08L() bfin_read16(CAN_AM08L)
  983. #define bfin_write_CAN_AM08L(val) bfin_write16(CAN_AM08L,val)
  984. #define bfin_read_CAN_AM08H() bfin_read16(CAN_AM08H)
  985. #define bfin_write_CAN_AM08H(val) bfin_write16(CAN_AM08H,val)
  986. #define bfin_read_CAN_AM09L() bfin_read16(CAN_AM09L)
  987. #define bfin_write_CAN_AM09L(val) bfin_write16(CAN_AM09L,val)
  988. #define bfin_read_CAN_AM09H() bfin_read16(CAN_AM09H)
  989. #define bfin_write_CAN_AM09H(val) bfin_write16(CAN_AM09H,val)
  990. #define bfin_read_CAN_AM10L() bfin_read16(CAN_AM10L)
  991. #define bfin_write_CAN_AM10L(val) bfin_write16(CAN_AM10L,val)
  992. #define bfin_read_CAN_AM10H() bfin_read16(CAN_AM10H)
  993. #define bfin_write_CAN_AM10H(val) bfin_write16(CAN_AM10H,val)
  994. #define bfin_read_CAN_AM11L() bfin_read16(CAN_AM11L)
  995. #define bfin_write_CAN_AM11L(val) bfin_write16(CAN_AM11L,val)
  996. #define bfin_read_CAN_AM11H() bfin_read16(CAN_AM11H)
  997. #define bfin_write_CAN_AM11H(val) bfin_write16(CAN_AM11H,val)
  998. #define bfin_read_CAN_AM12L() bfin_read16(CAN_AM12L)
  999. #define bfin_write_CAN_AM12L(val) bfin_write16(CAN_AM12L,val)
  1000. #define bfin_read_CAN_AM12H() bfin_read16(CAN_AM12H)
  1001. #define bfin_write_CAN_AM12H(val) bfin_write16(CAN_AM12H,val)
  1002. #define bfin_read_CAN_AM13L() bfin_read16(CAN_AM13L)
  1003. #define bfin_write_CAN_AM13L(val) bfin_write16(CAN_AM13L,val)
  1004. #define bfin_read_CAN_AM13H() bfin_read16(CAN_AM13H)
  1005. #define bfin_write_CAN_AM13H(val) bfin_write16(CAN_AM13H,val)
  1006. #define bfin_read_CAN_AM14L() bfin_read16(CAN_AM14L)
  1007. #define bfin_write_CAN_AM14L(val) bfin_write16(CAN_AM14L,val)
  1008. #define bfin_read_CAN_AM14H() bfin_read16(CAN_AM14H)
  1009. #define bfin_write_CAN_AM14H(val) bfin_write16(CAN_AM14H,val)
  1010. #define bfin_read_CAN_AM15L() bfin_read16(CAN_AM15L)
  1011. #define bfin_write_CAN_AM15L(val) bfin_write16(CAN_AM15L,val)
  1012. #define bfin_read_CAN_AM15H() bfin_read16(CAN_AM15H)
  1013. #define bfin_write_CAN_AM15H(val) bfin_write16(CAN_AM15H,val)
  1014. #define bfin_read_CAN_AM16L() bfin_read16(CAN_AM16L)
  1015. #define bfin_write_CAN_AM16L(val) bfin_write16(CAN_AM16L,val)
  1016. #define bfin_read_CAN_AM16H() bfin_read16(CAN_AM16H)
  1017. #define bfin_write_CAN_AM16H(val) bfin_write16(CAN_AM16H,val)
  1018. #define bfin_read_CAN_AM17L() bfin_read16(CAN_AM17L)
  1019. #define bfin_write_CAN_AM17L(val) bfin_write16(CAN_AM17L,val)
  1020. #define bfin_read_CAN_AM17H() bfin_read16(CAN_AM17H)
  1021. #define bfin_write_CAN_AM17H(val) bfin_write16(CAN_AM17H,val)
  1022. #define bfin_read_CAN_AM18L() bfin_read16(CAN_AM18L)
  1023. #define bfin_write_CAN_AM18L(val) bfin_write16(CAN_AM18L,val)
  1024. #define bfin_read_CAN_AM18H() bfin_read16(CAN_AM18H)
  1025. #define bfin_write_CAN_AM18H(val) bfin_write16(CAN_AM18H,val)
  1026. #define bfin_read_CAN_AM19L() bfin_read16(CAN_AM19L)
  1027. #define bfin_write_CAN_AM19L(val) bfin_write16(CAN_AM19L,val)
  1028. #define bfin_read_CAN_AM19H() bfin_read16(CAN_AM19H)
  1029. #define bfin_write_CAN_AM19H(val) bfin_write16(CAN_AM19H,val)
  1030. #define bfin_read_CAN_AM20L() bfin_read16(CAN_AM20L)
  1031. #define bfin_write_CAN_AM20L(val) bfin_write16(CAN_AM20L,val)
  1032. #define bfin_read_CAN_AM20H() bfin_read16(CAN_AM20H)
  1033. #define bfin_write_CAN_AM20H(val) bfin_write16(CAN_AM20H,val)
  1034. #define bfin_read_CAN_AM21L() bfin_read16(CAN_AM21L)
  1035. #define bfin_write_CAN_AM21L(val) bfin_write16(CAN_AM21L,val)
  1036. #define bfin_read_CAN_AM21H() bfin_read16(CAN_AM21H)
  1037. #define bfin_write_CAN_AM21H(val) bfin_write16(CAN_AM21H,val)
  1038. #define bfin_read_CAN_AM22L() bfin_read16(CAN_AM22L)
  1039. #define bfin_write_CAN_AM22L(val) bfin_write16(CAN_AM22L,val)
  1040. #define bfin_read_CAN_AM22H() bfin_read16(CAN_AM22H)
  1041. #define bfin_write_CAN_AM22H(val) bfin_write16(CAN_AM22H,val)
  1042. #define bfin_read_CAN_AM23L() bfin_read16(CAN_AM23L)
  1043. #define bfin_write_CAN_AM23L(val) bfin_write16(CAN_AM23L,val)
  1044. #define bfin_read_CAN_AM23H() bfin_read16(CAN_AM23H)
  1045. #define bfin_write_CAN_AM23H(val) bfin_write16(CAN_AM23H,val)
  1046. #define bfin_read_CAN_AM24L() bfin_read16(CAN_AM24L)
  1047. #define bfin_write_CAN_AM24L(val) bfin_write16(CAN_AM24L,val)
  1048. #define bfin_read_CAN_AM24H() bfin_read16(CAN_AM24H)
  1049. #define bfin_write_CAN_AM24H(val) bfin_write16(CAN_AM24H,val)
  1050. #define bfin_read_CAN_AM25L() bfin_read16(CAN_AM25L)
  1051. #define bfin_write_CAN_AM25L(val) bfin_write16(CAN_AM25L,val)
  1052. #define bfin_read_CAN_AM25H() bfin_read16(CAN_AM25H)
  1053. #define bfin_write_CAN_AM25H(val) bfin_write16(CAN_AM25H,val)
  1054. #define bfin_read_CAN_AM26L() bfin_read16(CAN_AM26L)
  1055. #define bfin_write_CAN_AM26L(val) bfin_write16(CAN_AM26L,val)
  1056. #define bfin_read_CAN_AM26H() bfin_read16(CAN_AM26H)
  1057. #define bfin_write_CAN_AM26H(val) bfin_write16(CAN_AM26H,val)
  1058. #define bfin_read_CAN_AM27L() bfin_read16(CAN_AM27L)
  1059. #define bfin_write_CAN_AM27L(val) bfin_write16(CAN_AM27L,val)
  1060. #define bfin_read_CAN_AM27H() bfin_read16(CAN_AM27H)
  1061. #define bfin_write_CAN_AM27H(val) bfin_write16(CAN_AM27H,val)
  1062. #define bfin_read_CAN_AM28L() bfin_read16(CAN_AM28L)
  1063. #define bfin_write_CAN_AM28L(val) bfin_write16(CAN_AM28L,val)
  1064. #define bfin_read_CAN_AM28H() bfin_read16(CAN_AM28H)
  1065. #define bfin_write_CAN_AM28H(val) bfin_write16(CAN_AM28H,val)
  1066. #define bfin_read_CAN_AM29L() bfin_read16(CAN_AM29L)
  1067. #define bfin_write_CAN_AM29L(val) bfin_write16(CAN_AM29L,val)
  1068. #define bfin_read_CAN_AM29H() bfin_read16(CAN_AM29H)
  1069. #define bfin_write_CAN_AM29H(val) bfin_write16(CAN_AM29H,val)
  1070. #define bfin_read_CAN_AM30L() bfin_read16(CAN_AM30L)
  1071. #define bfin_write_CAN_AM30L(val) bfin_write16(CAN_AM30L,val)
  1072. #define bfin_read_CAN_AM30H() bfin_read16(CAN_AM30H)
  1073. #define bfin_write_CAN_AM30H(val) bfin_write16(CAN_AM30H,val)
  1074. #define bfin_read_CAN_AM31L() bfin_read16(CAN_AM31L)
  1075. #define bfin_write_CAN_AM31L(val) bfin_write16(CAN_AM31L,val)
  1076. #define bfin_read_CAN_AM31H() bfin_read16(CAN_AM31H)
  1077. #define bfin_write_CAN_AM31H(val) bfin_write16(CAN_AM31H,val)
  1078. /* CAN Acceptance Mask Area Macros */
  1079. #define bfin_read_CAN_AM_L(x)() bfin_read16(CAN_AM_L(x))
  1080. #define bfin_write_CAN_AM_L(x)(val) bfin_write16(CAN_AM_L(x),val)
  1081. #define bfin_read_CAN_AM_H(x)() bfin_read16(CAN_AM_H(x))
  1082. #define bfin_write_CAN_AM_H(x)(val) bfin_write16(CAN_AM_H(x),val)
  1083. /* Mailbox Registers */
  1084. #define bfin_read_CAN_MB00_ID1() bfin_read16(CAN_MB00_ID1)
  1085. #define bfin_write_CAN_MB00_ID1(val) bfin_write16(CAN_MB00_ID1,val)
  1086. #define bfin_read_CAN_MB00_ID0() bfin_read16(CAN_MB00_ID0)
  1087. #define bfin_write_CAN_MB00_ID0(val) bfin_write16(CAN_MB00_ID0,val)
  1088. #define bfin_read_CAN_MB00_TIMESTAMP() bfin_read16(CAN_MB00_TIMESTAMP)
  1089. #define bfin_write_CAN_MB00_TIMESTAMP(val) bfin_write16(CAN_MB00_TIMESTAMP,val)
  1090. #define bfin_read_CAN_MB00_LENGTH() bfin_read16(CAN_MB00_LENGTH)
  1091. #define bfin_write_CAN_MB00_LENGTH(val) bfin_write16(CAN_MB00_LENGTH,val)
  1092. #define bfin_read_CAN_MB00_DATA3() bfin_read16(CAN_MB00_DATA3)
  1093. #define bfin_write_CAN_MB00_DATA3(val) bfin_write16(CAN_MB00_DATA3,val)
  1094. #define bfin_read_CAN_MB00_DATA2() bfin_read16(CAN_MB00_DATA2)
  1095. #define bfin_write_CAN_MB00_DATA2(val) bfin_write16(CAN_MB00_DATA2,val)
  1096. #define bfin_read_CAN_MB00_DATA1() bfin_read16(CAN_MB00_DATA1)
  1097. #define bfin_write_CAN_MB00_DATA1(val) bfin_write16(CAN_MB00_DATA1,val)
  1098. #define bfin_read_CAN_MB00_DATA0() bfin_read16(CAN_MB00_DATA0)
  1099. #define bfin_write_CAN_MB00_DATA0(val) bfin_write16(CAN_MB00_DATA0,val)
  1100. #define bfin_read_CAN_MB01_ID1() bfin_read16(CAN_MB01_ID1)
  1101. #define bfin_write_CAN_MB01_ID1(val) bfin_write16(CAN_MB01_ID1,val)
  1102. #define bfin_read_CAN_MB01_ID0() bfin_read16(CAN_MB01_ID0)
  1103. #define bfin_write_CAN_MB01_ID0(val) bfin_write16(CAN_MB01_ID0,val)
  1104. #define bfin_read_CAN_MB01_TIMESTAMP() bfin_read16(CAN_MB01_TIMESTAMP)
  1105. #define bfin_write_CAN_MB01_TIMESTAMP(val) bfin_write16(CAN_MB01_TIMESTAMP,val)
  1106. #define bfin_read_CAN_MB01_LENGTH() bfin_read16(CAN_MB01_LENGTH)
  1107. #define bfin_write_CAN_MB01_LENGTH(val) bfin_write16(CAN_MB01_LENGTH,val)
  1108. #define bfin_read_CAN_MB01_DATA3() bfin_read16(CAN_MB01_DATA3)
  1109. #define bfin_write_CAN_MB01_DATA3(val) bfin_write16(CAN_MB01_DATA3,val)
  1110. #define bfin_read_CAN_MB01_DATA2() bfin_read16(CAN_MB01_DATA2)
  1111. #define bfin_write_CAN_MB01_DATA2(val) bfin_write16(CAN_MB01_DATA2,val)
  1112. #define bfin_read_CAN_MB01_DATA1() bfin_read16(CAN_MB01_DATA1)
  1113. #define bfin_write_CAN_MB01_DATA1(val) bfin_write16(CAN_MB01_DATA1,val)
  1114. #define bfin_read_CAN_MB01_DATA0() bfin_read16(CAN_MB01_DATA0)
  1115. #define bfin_write_CAN_MB01_DATA0(val) bfin_write16(CAN_MB01_DATA0,val)
  1116. #define bfin_read_CAN_MB02_ID1() bfin_read16(CAN_MB02_ID1)
  1117. #define bfin_write_CAN_MB02_ID1(val) bfin_write16(CAN_MB02_ID1,val)
  1118. #define bfin_read_CAN_MB02_ID0() bfin_read16(CAN_MB02_ID0)
  1119. #define bfin_write_CAN_MB02_ID0(val) bfin_write16(CAN_MB02_ID0,val)
  1120. #define bfin_read_CAN_MB02_TIMESTAMP() bfin_read16(CAN_MB02_TIMESTAMP)
  1121. #define bfin_write_CAN_MB02_TIMESTAMP(val) bfin_write16(CAN_MB02_TIMESTAMP,val)
  1122. #define bfin_read_CAN_MB02_LENGTH() bfin_read16(CAN_MB02_LENGTH)
  1123. #define bfin_write_CAN_MB02_LENGTH(val) bfin_write16(CAN_MB02_LENGTH,val)
  1124. #define bfin_read_CAN_MB02_DATA3() bfin_read16(CAN_MB02_DATA3)
  1125. #define bfin_write_CAN_MB02_DATA3(val) bfin_write16(CAN_MB02_DATA3,val)
  1126. #define bfin_read_CAN_MB02_DATA2() bfin_read16(CAN_MB02_DATA2)
  1127. #define bfin_write_CAN_MB02_DATA2(val) bfin_write16(CAN_MB02_DATA2,val)
  1128. #define bfin_read_CAN_MB02_DATA1() bfin_read16(CAN_MB02_DATA1)
  1129. #define bfin_write_CAN_MB02_DATA1(val) bfin_write16(CAN_MB02_DATA1,val)
  1130. #define bfin_read_CAN_MB02_DATA0() bfin_read16(CAN_MB02_DATA0)
  1131. #define bfin_write_CAN_MB02_DATA0(val) bfin_write16(CAN_MB02_DATA0,val)
  1132. #define bfin_read_CAN_MB03_ID1() bfin_read16(CAN_MB03_ID1)
  1133. #define bfin_write_CAN_MB03_ID1(val) bfin_write16(CAN_MB03_ID1,val)
  1134. #define bfin_read_CAN_MB03_ID0() bfin_read16(CAN_MB03_ID0)
  1135. #define bfin_write_CAN_MB03_ID0(val) bfin_write16(CAN_MB03_ID0,val)
  1136. #define bfin_read_CAN_MB03_TIMESTAMP() bfin_read16(CAN_MB03_TIMESTAMP)
  1137. #define bfin_write_CAN_MB03_TIMESTAMP(val) bfin_write16(CAN_MB03_TIMESTAMP,val)
  1138. #define bfin_read_CAN_MB03_LENGTH() bfin_read16(CAN_MB03_LENGTH)
  1139. #define bfin_write_CAN_MB03_LENGTH(val) bfin_write16(CAN_MB03_LENGTH,val)
  1140. #define bfin_read_CAN_MB03_DATA3() bfin_read16(CAN_MB03_DATA3)
  1141. #define bfin_write_CAN_MB03_DATA3(val) bfin_write16(CAN_MB03_DATA3,val)
  1142. #define bfin_read_CAN_MB03_DATA2() bfin_read16(CAN_MB03_DATA2)
  1143. #define bfin_write_CAN_MB03_DATA2(val) bfin_write16(CAN_MB03_DATA2,val)
  1144. #define bfin_read_CAN_MB03_DATA1() bfin_read16(CAN_MB03_DATA1)
  1145. #define bfin_write_CAN_MB03_DATA1(val) bfin_write16(CAN_MB03_DATA1,val)
  1146. #define bfin_read_CAN_MB03_DATA0() bfin_read16(CAN_MB03_DATA0)
  1147. #define bfin_write_CAN_MB03_DATA0(val) bfin_write16(CAN_MB03_DATA0,val)
  1148. #define bfin_read_CAN_MB04_ID1() bfin_read16(CAN_MB04_ID1)
  1149. #define bfin_write_CAN_MB04_ID1(val) bfin_write16(CAN_MB04_ID1,val)
  1150. #define bfin_read_CAN_MB04_ID0() bfin_read16(CAN_MB04_ID0)
  1151. #define bfin_write_CAN_MB04_ID0(val) bfin_write16(CAN_MB04_ID0,val)
  1152. #define bfin_read_CAN_MB04_TIMESTAMP() bfin_read16(CAN_MB04_TIMESTAMP)
  1153. #define bfin_write_CAN_MB04_TIMESTAMP(val) bfin_write16(CAN_MB04_TIMESTAMP,val)
  1154. #define bfin_read_CAN_MB04_LENGTH() bfin_read16(CAN_MB04_LENGTH)
  1155. #define bfin_write_CAN_MB04_LENGTH(val) bfin_write16(CAN_MB04_LENGTH,val)
  1156. #define bfin_read_CAN_MB04_DATA3() bfin_read16(CAN_MB04_DATA3)
  1157. #define bfin_write_CAN_MB04_DATA3(val) bfin_write16(CAN_MB04_DATA3,val)
  1158. #define bfin_read_CAN_MB04_DATA2() bfin_read16(CAN_MB04_DATA2)
  1159. #define bfin_write_CAN_MB04_DATA2(val) bfin_write16(CAN_MB04_DATA2,val)
  1160. #define bfin_read_CAN_MB04_DATA1() bfin_read16(CAN_MB04_DATA1)
  1161. #define bfin_write_CAN_MB04_DATA1(val) bfin_write16(CAN_MB04_DATA1,val)
  1162. #define bfin_read_CAN_MB04_DATA0() bfin_read16(CAN_MB04_DATA0)
  1163. #define bfin_write_CAN_MB04_DATA0(val) bfin_write16(CAN_MB04_DATA0,val)
  1164. #define bfin_read_CAN_MB05_ID1() bfin_read16(CAN_MB05_ID1)
  1165. #define bfin_write_CAN_MB05_ID1(val) bfin_write16(CAN_MB05_ID1,val)
  1166. #define bfin_read_CAN_MB05_ID0() bfin_read16(CAN_MB05_ID0)
  1167. #define bfin_write_CAN_MB05_ID0(val) bfin_write16(CAN_MB05_ID0,val)
  1168. #define bfin_read_CAN_MB05_TIMESTAMP() bfin_read16(CAN_MB05_TIMESTAMP)
  1169. #define bfin_write_CAN_MB05_TIMESTAMP(val) bfin_write16(CAN_MB05_TIMESTAMP,val)
  1170. #define bfin_read_CAN_MB05_LENGTH() bfin_read16(CAN_MB05_LENGTH)
  1171. #define bfin_write_CAN_MB05_LENGTH(val) bfin_write16(CAN_MB05_LENGTH,val)
  1172. #define bfin_read_CAN_MB05_DATA3() bfin_read16(CAN_MB05_DATA3)
  1173. #define bfin_write_CAN_MB05_DATA3(val) bfin_write16(CAN_MB05_DATA3,val)
  1174. #define bfin_read_CAN_MB05_DATA2() bfin_read16(CAN_MB05_DATA2)
  1175. #define bfin_write_CAN_MB05_DATA2(val) bfin_write16(CAN_MB05_DATA2,val)
  1176. #define bfin_read_CAN_MB05_DATA1() bfin_read16(CAN_MB05_DATA1)
  1177. #define bfin_write_CAN_MB05_DATA1(val) bfin_write16(CAN_MB05_DATA1,val)
  1178. #define bfin_read_CAN_MB05_DATA0() bfin_read16(CAN_MB05_DATA0)
  1179. #define bfin_write_CAN_MB05_DATA0(val) bfin_write16(CAN_MB05_DATA0,val)
  1180. #define bfin_read_CAN_MB06_ID1() bfin_read16(CAN_MB06_ID1)
  1181. #define bfin_write_CAN_MB06_ID1(val) bfin_write16(CAN_MB06_ID1,val)
  1182. #define bfin_read_CAN_MB06_ID0() bfin_read16(CAN_MB06_ID0)
  1183. #define bfin_write_CAN_MB06_ID0(val) bfin_write16(CAN_MB06_ID0,val)
  1184. #define bfin_read_CAN_MB06_TIMESTAMP() bfin_read16(CAN_MB06_TIMESTAMP)
  1185. #define bfin_write_CAN_MB06_TIMESTAMP(val) bfin_write16(CAN_MB06_TIMESTAMP,val)
  1186. #define bfin_read_CAN_MB06_LENGTH() bfin_read16(CAN_MB06_LENGTH)
  1187. #define bfin_write_CAN_MB06_LENGTH(val) bfin_write16(CAN_MB06_LENGTH,val)
  1188. #define bfin_read_CAN_MB06_DATA3() bfin_read16(CAN_MB06_DATA3)
  1189. #define bfin_write_CAN_MB06_DATA3(val) bfin_write16(CAN_MB06_DATA3,val)
  1190. #define bfin_read_CAN_MB06_DATA2() bfin_read16(CAN_MB06_DATA2)
  1191. #define bfin_write_CAN_MB06_DATA2(val) bfin_write16(CAN_MB06_DATA2,val)
  1192. #define bfin_read_CAN_MB06_DATA1() bfin_read16(CAN_MB06_DATA1)
  1193. #define bfin_write_CAN_MB06_DATA1(val) bfin_write16(CAN_MB06_DATA1,val)
  1194. #define bfin_read_CAN_MB06_DATA0() bfin_read16(CAN_MB06_DATA0)
  1195. #define bfin_write_CAN_MB06_DATA0(val) bfin_write16(CAN_MB06_DATA0,val)
  1196. #define bfin_read_CAN_MB07_ID1() bfin_read16(CAN_MB07_ID1)
  1197. #define bfin_write_CAN_MB07_ID1(val) bfin_write16(CAN_MB07_ID1,val)
  1198. #define bfin_read_CAN_MB07_ID0() bfin_read16(CAN_MB07_ID0)
  1199. #define bfin_write_CAN_MB07_ID0(val) bfin_write16(CAN_MB07_ID0,val)
  1200. #define bfin_read_CAN_MB07_TIMESTAMP() bfin_read16(CAN_MB07_TIMESTAMP)
  1201. #define bfin_write_CAN_MB07_TIMESTAMP(val) bfin_write16(CAN_MB07_TIMESTAMP,val)
  1202. #define bfin_read_CAN_MB07_LENGTH() bfin_read16(CAN_MB07_LENGTH)
  1203. #define bfin_write_CAN_MB07_LENGTH(val) bfin_write16(CAN_MB07_LENGTH,val)
  1204. #define bfin_read_CAN_MB07_DATA3() bfin_read16(CAN_MB07_DATA3)
  1205. #define bfin_write_CAN_MB07_DATA3(val) bfin_write16(CAN_MB07_DATA3,val)
  1206. #define bfin_read_CAN_MB07_DATA2() bfin_read16(CAN_MB07_DATA2)
  1207. #define bfin_write_CAN_MB07_DATA2(val) bfin_write16(CAN_MB07_DATA2,val)
  1208. #define bfin_read_CAN_MB07_DATA1() bfin_read16(CAN_MB07_DATA1)
  1209. #define bfin_write_CAN_MB07_DATA1(val) bfin_write16(CAN_MB07_DATA1,val)
  1210. #define bfin_read_CAN_MB07_DATA0() bfin_read16(CAN_MB07_DATA0)
  1211. #define bfin_write_CAN_MB07_DATA0(val) bfin_write16(CAN_MB07_DATA0,val)
  1212. #define bfin_read_CAN_MB08_ID1() bfin_read16(CAN_MB08_ID1)
  1213. #define bfin_write_CAN_MB08_ID1(val) bfin_write16(CAN_MB08_ID1,val)
  1214. #define bfin_read_CAN_MB08_ID0() bfin_read16(CAN_MB08_ID0)
  1215. #define bfin_write_CAN_MB08_ID0(val) bfin_write16(CAN_MB08_ID0,val)
  1216. #define bfin_read_CAN_MB08_TIMESTAMP() bfin_read16(CAN_MB08_TIMESTAMP)
  1217. #define bfin_write_CAN_MB08_TIMESTAMP(val) bfin_write16(CAN_MB08_TIMESTAMP,val)
  1218. #define bfin_read_CAN_MB08_LENGTH() bfin_read16(CAN_MB08_LENGTH)
  1219. #define bfin_write_CAN_MB08_LENGTH(val) bfin_write16(CAN_MB08_LENGTH,val)
  1220. #define bfin_read_CAN_MB08_DATA3() bfin_read16(CAN_MB08_DATA3)
  1221. #define bfin_write_CAN_MB08_DATA3(val) bfin_write16(CAN_MB08_DATA3,val)
  1222. #define bfin_read_CAN_MB08_DATA2() bfin_read16(CAN_MB08_DATA2)
  1223. #define bfin_write_CAN_MB08_DATA2(val) bfin_write16(CAN_MB08_DATA2,val)
  1224. #define bfin_read_CAN_MB08_DATA1() bfin_read16(CAN_MB08_DATA1)
  1225. #define bfin_write_CAN_MB08_DATA1(val) bfin_write16(CAN_MB08_DATA1,val)
  1226. #define bfin_read_CAN_MB08_DATA0() bfin_read16(CAN_MB08_DATA0)
  1227. #define bfin_write_CAN_MB08_DATA0(val) bfin_write16(CAN_MB08_DATA0,val)
  1228. #define bfin_read_CAN_MB09_ID1() bfin_read16(CAN_MB09_ID1)
  1229. #define bfin_write_CAN_MB09_ID1(val) bfin_write16(CAN_MB09_ID1,val)
  1230. #define bfin_read_CAN_MB09_ID0() bfin_read16(CAN_MB09_ID0)
  1231. #define bfin_write_CAN_MB09_ID0(val) bfin_write16(CAN_MB09_ID0,val)
  1232. #define bfin_read_CAN_MB09_TIMESTAMP() bfin_read16(CAN_MB09_TIMESTAMP)
  1233. #define bfin_write_CAN_MB09_TIMESTAMP(val) bfin_write16(CAN_MB09_TIMESTAMP,val)
  1234. #define bfin_read_CAN_MB09_LENGTH() bfin_read16(CAN_MB09_LENGTH)
  1235. #define bfin_write_CAN_MB09_LENGTH(val) bfin_write16(CAN_MB09_LENGTH,val)
  1236. #define bfin_read_CAN_MB09_DATA3() bfin_read16(CAN_MB09_DATA3)
  1237. #define bfin_write_CAN_MB09_DATA3(val) bfin_write16(CAN_MB09_DATA3,val)
  1238. #define bfin_read_CAN_MB09_DATA2() bfin_read16(CAN_MB09_DATA2)
  1239. #define bfin_write_CAN_MB09_DATA2(val) bfin_write16(CAN_MB09_DATA2,val)
  1240. #define bfin_read_CAN_MB09_DATA1() bfin_read16(CAN_MB09_DATA1)
  1241. #define bfin_write_CAN_MB09_DATA1(val) bfin_write16(CAN_MB09_DATA1,val)
  1242. #define bfin_read_CAN_MB09_DATA0() bfin_read16(CAN_MB09_DATA0)
  1243. #define bfin_write_CAN_MB09_DATA0(val) bfin_write16(CAN_MB09_DATA0,val)
  1244. #define bfin_read_CAN_MB10_ID1() bfin_read16(CAN_MB10_ID1)
  1245. #define bfin_write_CAN_MB10_ID1(val) bfin_write16(CAN_MB10_ID1,val)
  1246. #define bfin_read_CAN_MB10_ID0() bfin_read16(CAN_MB10_ID0)
  1247. #define bfin_write_CAN_MB10_ID0(val) bfin_write16(CAN_MB10_ID0,val)
  1248. #define bfin_read_CAN_MB10_TIMESTAMP() bfin_read16(CAN_MB10_TIMESTAMP)
  1249. #define bfin_write_CAN_MB10_TIMESTAMP(val) bfin_write16(CAN_MB10_TIMESTAMP,val)
  1250. #define bfin_read_CAN_MB10_LENGTH() bfin_read16(CAN_MB10_LENGTH)
  1251. #define bfin_write_CAN_MB10_LENGTH(val) bfin_write16(CAN_MB10_LENGTH,val)
  1252. #define bfin_read_CAN_MB10_DATA3() bfin_read16(CAN_MB10_DATA3)
  1253. #define bfin_write_CAN_MB10_DATA3(val) bfin_write16(CAN_MB10_DATA3,val)
  1254. #define bfin_read_CAN_MB10_DATA2() bfin_read16(CAN_MB10_DATA2)
  1255. #define bfin_write_CAN_MB10_DATA2(val) bfin_write16(CAN_MB10_DATA2,val)
  1256. #define bfin_read_CAN_MB10_DATA1() bfin_read16(CAN_MB10_DATA1)
  1257. #define bfin_write_CAN_MB10_DATA1(val) bfin_write16(CAN_MB10_DATA1,val)
  1258. #define bfin_read_CAN_MB10_DATA0() bfin_read16(CAN_MB10_DATA0)
  1259. #define bfin_write_CAN_MB10_DATA0(val) bfin_write16(CAN_MB10_DATA0,val)
  1260. #define bfin_read_CAN_MB11_ID1() bfin_read16(CAN_MB11_ID1)
  1261. #define bfin_write_CAN_MB11_ID1(val) bfin_write16(CAN_MB11_ID1,val)
  1262. #define bfin_read_CAN_MB11_ID0() bfin_read16(CAN_MB11_ID0)
  1263. #define bfin_write_CAN_MB11_ID0(val) bfin_write16(CAN_MB11_ID0,val)
  1264. #define bfin_read_CAN_MB11_TIMESTAMP() bfin_read16(CAN_MB11_TIMESTAMP)
  1265. #define bfin_write_CAN_MB11_TIMESTAMP(val) bfin_write16(CAN_MB11_TIMESTAMP,val)
  1266. #define bfin_read_CAN_MB11_LENGTH() bfin_read16(CAN_MB11_LENGTH)
  1267. #define bfin_write_CAN_MB11_LENGTH(val) bfin_write16(CAN_MB11_LENGTH,val)
  1268. #define bfin_read_CAN_MB11_DATA3() bfin_read16(CAN_MB11_DATA3)
  1269. #define bfin_write_CAN_MB11_DATA3(val) bfin_write16(CAN_MB11_DATA3,val)
  1270. #define bfin_read_CAN_MB11_DATA2() bfin_read16(CAN_MB11_DATA2)
  1271. #define bfin_write_CAN_MB11_DATA2(val) bfin_write16(CAN_MB11_DATA2,val)
  1272. #define bfin_read_CAN_MB11_DATA1() bfin_read16(CAN_MB11_DATA1)
  1273. #define bfin_write_CAN_MB11_DATA1(val) bfin_write16(CAN_MB11_DATA1,val)
  1274. #define bfin_read_CAN_MB11_DATA0() bfin_read16(CAN_MB11_DATA0)
  1275. #define bfin_write_CAN_MB11_DATA0(val) bfin_write16(CAN_MB11_DATA0,val)
  1276. #define bfin_read_CAN_MB12_ID1() bfin_read16(CAN_MB12_ID1)
  1277. #define bfin_write_CAN_MB12_ID1(val) bfin_write16(CAN_MB12_ID1,val)
  1278. #define bfin_read_CAN_MB12_ID0() bfin_read16(CAN_MB12_ID0)
  1279. #define bfin_write_CAN_MB12_ID0(val) bfin_write16(CAN_MB12_ID0,val)
  1280. #define bfin_read_CAN_MB12_TIMESTAMP() bfin_read16(CAN_MB12_TIMESTAMP)
  1281. #define bfin_write_CAN_MB12_TIMESTAMP(val) bfin_write16(CAN_MB12_TIMESTAMP,val)
  1282. #define bfin_read_CAN_MB12_LENGTH() bfin_read16(CAN_MB12_LENGTH)
  1283. #define bfin_write_CAN_MB12_LENGTH(val) bfin_write16(CAN_MB12_LENGTH,val)
  1284. #define bfin_read_CAN_MB12_DATA3() bfin_read16(CAN_MB12_DATA3)
  1285. #define bfin_write_CAN_MB12_DATA3(val) bfin_write16(CAN_MB12_DATA3,val)
  1286. #define bfin_read_CAN_MB12_DATA2() bfin_read16(CAN_MB12_DATA2)
  1287. #define bfin_write_CAN_MB12_DATA2(val) bfin_write16(CAN_MB12_DATA2,val)
  1288. #define bfin_read_CAN_MB12_DATA1() bfin_read16(CAN_MB12_DATA1)
  1289. #define bfin_write_CAN_MB12_DATA1(val) bfin_write16(CAN_MB12_DATA1,val)
  1290. #define bfin_read_CAN_MB12_DATA0() bfin_read16(CAN_MB12_DATA0)
  1291. #define bfin_write_CAN_MB12_DATA0(val) bfin_write16(CAN_MB12_DATA0,val)
  1292. #define bfin_read_CAN_MB13_ID1() bfin_read16(CAN_MB13_ID1)
  1293. #define bfin_write_CAN_MB13_ID1(val) bfin_write16(CAN_MB13_ID1,val)
  1294. #define bfin_read_CAN_MB13_ID0() bfin_read16(CAN_MB13_ID0)
  1295. #define bfin_write_CAN_MB13_ID0(val) bfin_write16(CAN_MB13_ID0,val)
  1296. #define bfin_read_CAN_MB13_TIMESTAMP() bfin_read16(CAN_MB13_TIMESTAMP)
  1297. #define bfin_write_CAN_MB13_TIMESTAMP(val) bfin_write16(CAN_MB13_TIMESTAMP,val)
  1298. #define bfin_read_CAN_MB13_LENGTH() bfin_read16(CAN_MB13_LENGTH)
  1299. #define bfin_write_CAN_MB13_LENGTH(val) bfin_write16(CAN_MB13_LENGTH,val)
  1300. #define bfin_read_CAN_MB13_DATA3() bfin_read16(CAN_MB13_DATA3)
  1301. #define bfin_write_CAN_MB13_DATA3(val) bfin_write16(CAN_MB13_DATA3,val)
  1302. #define bfin_read_CAN_MB13_DATA2() bfin_read16(CAN_MB13_DATA2)
  1303. #define bfin_write_CAN_MB13_DATA2(val) bfin_write16(CAN_MB13_DATA2,val)
  1304. #define bfin_read_CAN_MB13_DATA1() bfin_read16(CAN_MB13_DATA1)
  1305. #define bfin_write_CAN_MB13_DATA1(val) bfin_write16(CAN_MB13_DATA1,val)
  1306. #define bfin_read_CAN_MB13_DATA0() bfin_read16(CAN_MB13_DATA0)
  1307. #define bfin_write_CAN_MB13_DATA0(val) bfin_write16(CAN_MB13_DATA0,val)
  1308. #define bfin_read_CAN_MB14_ID1() bfin_read16(CAN_MB14_ID1)
  1309. #define bfin_write_CAN_MB14_ID1(val) bfin_write16(CAN_MB14_ID1,val)
  1310. #define bfin_read_CAN_MB14_ID0() bfin_read16(CAN_MB14_ID0)
  1311. #define bfin_write_CAN_MB14_ID0(val) bfin_write16(CAN_MB14_ID0,val)
  1312. #define bfin_read_CAN_MB14_TIMESTAMP() bfin_read16(CAN_MB14_TIMESTAMP)
  1313. #define bfin_write_CAN_MB14_TIMESTAMP(val) bfin_write16(CAN_MB14_TIMESTAMP,val)
  1314. #define bfin_read_CAN_MB14_LENGTH() bfin_read16(CAN_MB14_LENGTH)
  1315. #define bfin_write_CAN_MB14_LENGTH(val) bfin_write16(CAN_MB14_LENGTH,val)
  1316. #define bfin_read_CAN_MB14_DATA3() bfin_read16(CAN_MB14_DATA3)
  1317. #define bfin_write_CAN_MB14_DATA3(val) bfin_write16(CAN_MB14_DATA3,val)
  1318. #define bfin_read_CAN_MB14_DATA2() bfin_read16(CAN_MB14_DATA2)
  1319. #define bfin_write_CAN_MB14_DATA2(val) bfin_write16(CAN_MB14_DATA2,val)
  1320. #define bfin_read_CAN_MB14_DATA1() bfin_read16(CAN_MB14_DATA1)
  1321. #define bfin_write_CAN_MB14_DATA1(val) bfin_write16(CAN_MB14_DATA1,val)
  1322. #define bfin_read_CAN_MB14_DATA0() bfin_read16(CAN_MB14_DATA0)
  1323. #define bfin_write_CAN_MB14_DATA0(val) bfin_write16(CAN_MB14_DATA0,val)
  1324. #define bfin_read_CAN_MB15_ID1() bfin_read16(CAN_MB15_ID1)
  1325. #define bfin_write_CAN_MB15_ID1(val) bfin_write16(CAN_MB15_ID1,val)
  1326. #define bfin_read_CAN_MB15_ID0() bfin_read16(CAN_MB15_ID0)
  1327. #define bfin_write_CAN_MB15_ID0(val) bfin_write16(CAN_MB15_ID0,val)
  1328. #define bfin_read_CAN_MB15_TIMESTAMP() bfin_read16(CAN_MB15_TIMESTAMP)
  1329. #define bfin_write_CAN_MB15_TIMESTAMP(val) bfin_write16(CAN_MB15_TIMESTAMP,val)
  1330. #define bfin_read_CAN_MB15_LENGTH() bfin_read16(CAN_MB15_LENGTH)
  1331. #define bfin_write_CAN_MB15_LENGTH(val) bfin_write16(CAN_MB15_LENGTH,val)
  1332. #define bfin_read_CAN_MB15_DATA3() bfin_read16(CAN_MB15_DATA3)
  1333. #define bfin_write_CAN_MB15_DATA3(val) bfin_write16(CAN_MB15_DATA3,val)
  1334. #define bfin_read_CAN_MB15_DATA2() bfin_read16(CAN_MB15_DATA2)
  1335. #define bfin_write_CAN_MB15_DATA2(val) bfin_write16(CAN_MB15_DATA2,val)
  1336. #define bfin_read_CAN_MB15_DATA1() bfin_read16(CAN_MB15_DATA1)
  1337. #define bfin_write_CAN_MB15_DATA1(val) bfin_write16(CAN_MB15_DATA1,val)
  1338. #define bfin_read_CAN_MB15_DATA0() bfin_read16(CAN_MB15_DATA0)
  1339. #define bfin_write_CAN_MB15_DATA0(val) bfin_write16(CAN_MB15_DATA0,val)
  1340. #define bfin_read_CAN_MB16_ID1() bfin_read16(CAN_MB16_ID1)
  1341. #define bfin_write_CAN_MB16_ID1(val) bfin_write16(CAN_MB16_ID1,val)
  1342. #define bfin_read_CAN_MB16_ID0() bfin_read16(CAN_MB16_ID0)
  1343. #define bfin_write_CAN_MB16_ID0(val) bfin_write16(CAN_MB16_ID0,val)
  1344. #define bfin_read_CAN_MB16_TIMESTAMP() bfin_read16(CAN_MB16_TIMESTAMP)
  1345. #define bfin_write_CAN_MB16_TIMESTAMP(val) bfin_write16(CAN_MB16_TIMESTAMP,val)
  1346. #define bfin_read_CAN_MB16_LENGTH() bfin_read16(CAN_MB16_LENGTH)
  1347. #define bfin_write_CAN_MB16_LENGTH(val) bfin_write16(CAN_MB16_LENGTH,val)
  1348. #define bfin_read_CAN_MB16_DATA3() bfin_read16(CAN_MB16_DATA3)
  1349. #define bfin_write_CAN_MB16_DATA3(val) bfin_write16(CAN_MB16_DATA3,val)
  1350. #define bfin_read_CAN_MB16_DATA2() bfin_read16(CAN_MB16_DATA2)
  1351. #define bfin_write_CAN_MB16_DATA2(val) bfin_write16(CAN_MB16_DATA2,val)
  1352. #define bfin_read_CAN_MB16_DATA1() bfin_read16(CAN_MB16_DATA1)
  1353. #define bfin_write_CAN_MB16_DATA1(val) bfin_write16(CAN_MB16_DATA1,val)
  1354. #define bfin_read_CAN_MB16_DATA0() bfin_read16(CAN_MB16_DATA0)
  1355. #define bfin_write_CAN_MB16_DATA0(val) bfin_write16(CAN_MB16_DATA0,val)
  1356. #define bfin_read_CAN_MB17_ID1() bfin_read16(CAN_MB17_ID1)
  1357. #define bfin_write_CAN_MB17_ID1(val) bfin_write16(CAN_MB17_ID1,val)
  1358. #define bfin_read_CAN_MB17_ID0() bfin_read16(CAN_MB17_ID0)
  1359. #define bfin_write_CAN_MB17_ID0(val) bfin_write16(CAN_MB17_ID0,val)
  1360. #define bfin_read_CAN_MB17_TIMESTAMP() bfin_read16(CAN_MB17_TIMESTAMP)
  1361. #define bfin_write_CAN_MB17_TIMESTAMP(val) bfin_write16(CAN_MB17_TIMESTAMP,val)
  1362. #define bfin_read_CAN_MB17_LENGTH() bfin_read16(CAN_MB17_LENGTH)
  1363. #define bfin_write_CAN_MB17_LENGTH(val) bfin_write16(CAN_MB17_LENGTH,val)
  1364. #define bfin_read_CAN_MB17_DATA3() bfin_read16(CAN_MB17_DATA3)
  1365. #define bfin_write_CAN_MB17_DATA3(val) bfin_write16(CAN_MB17_DATA3,val)
  1366. #define bfin_read_CAN_MB17_DATA2() bfin_read16(CAN_MB17_DATA2)
  1367. #define bfin_write_CAN_MB17_DATA2(val) bfin_write16(CAN_MB17_DATA2,val)
  1368. #define bfin_read_CAN_MB17_DATA1() bfin_read16(CAN_MB17_DATA1)
  1369. #define bfin_write_CAN_MB17_DATA1(val) bfin_write16(CAN_MB17_DATA1,val)
  1370. #define bfin_read_CAN_MB17_DATA0() bfin_read16(CAN_MB17_DATA0)
  1371. #define bfin_write_CAN_MB17_DATA0(val) bfin_write16(CAN_MB17_DATA0,val)
  1372. #define bfin_read_CAN_MB18_ID1() bfin_read16(CAN_MB18_ID1)
  1373. #define bfin_write_CAN_MB18_ID1(val) bfin_write16(CAN_MB18_ID1,val)
  1374. #define bfin_read_CAN_MB18_ID0() bfin_read16(CAN_MB18_ID0)
  1375. #define bfin_write_CAN_MB18_ID0(val) bfin_write16(CAN_MB18_ID0,val)
  1376. #define bfin_read_CAN_MB18_TIMESTAMP() bfin_read16(CAN_MB18_TIMESTAMP)
  1377. #define bfin_write_CAN_MB18_TIMESTAMP(val) bfin_write16(CAN_MB18_TIMESTAMP,val)
  1378. #define bfin_read_CAN_MB18_LENGTH() bfin_read16(CAN_MB18_LENGTH)
  1379. #define bfin_write_CAN_MB18_LENGTH(val) bfin_write16(CAN_MB18_LENGTH,val)
  1380. #define bfin_read_CAN_MB18_DATA3() bfin_read16(CAN_MB18_DATA3)
  1381. #define bfin_write_CAN_MB18_DATA3(val) bfin_write16(CAN_MB18_DATA3,val)
  1382. #define bfin_read_CAN_MB18_DATA2() bfin_read16(CAN_MB18_DATA2)
  1383. #define bfin_write_CAN_MB18_DATA2(val) bfin_write16(CAN_MB18_DATA2,val)
  1384. #define bfin_read_CAN_MB18_DATA1() bfin_read16(CAN_MB18_DATA1)
  1385. #define bfin_write_CAN_MB18_DATA1(val) bfin_write16(CAN_MB18_DATA1,val)
  1386. #define bfin_read_CAN_MB18_DATA0() bfin_read16(CAN_MB18_DATA0)
  1387. #define bfin_write_CAN_MB18_DATA0(val) bfin_write16(CAN_MB18_DATA0,val)
  1388. #define bfin_read_CAN_MB19_ID1() bfin_read16(CAN_MB19_ID1)
  1389. #define bfin_write_CAN_MB19_ID1(val) bfin_write16(CAN_MB19_ID1,val)
  1390. #define bfin_read_CAN_MB19_ID0() bfin_read16(CAN_MB19_ID0)
  1391. #define bfin_write_CAN_MB19_ID0(val) bfin_write16(CAN_MB19_ID0,val)
  1392. #define bfin_read_CAN_MB19_TIMESTAMP() bfin_read16(CAN_MB19_TIMESTAMP)
  1393. #define bfin_write_CAN_MB19_TIMESTAMP(val) bfin_write16(CAN_MB19_TIMESTAMP,val)
  1394. #define bfin_read_CAN_MB19_LENGTH() bfin_read16(CAN_MB19_LENGTH)
  1395. #define bfin_write_CAN_MB19_LENGTH(val) bfin_write16(CAN_MB19_LENGTH,val)
  1396. #define bfin_read_CAN_MB19_DATA3() bfin_read16(CAN_MB19_DATA3)
  1397. #define bfin_write_CAN_MB19_DATA3(val) bfin_write16(CAN_MB19_DATA3,val)
  1398. #define bfin_read_CAN_MB19_DATA2() bfin_read16(CAN_MB19_DATA2)
  1399. #define bfin_write_CAN_MB19_DATA2(val) bfin_write16(CAN_MB19_DATA2,val)
  1400. #define bfin_read_CAN_MB19_DATA1() bfin_read16(CAN_MB19_DATA1)
  1401. #define bfin_write_CAN_MB19_DATA1(val) bfin_write16(CAN_MB19_DATA1,val)
  1402. #define bfin_read_CAN_MB19_DATA0() bfin_read16(CAN_MB19_DATA0)
  1403. #define bfin_write_CAN_MB19_DATA0(val) bfin_write16(CAN_MB19_DATA0,val)
  1404. #define bfin_read_CAN_MB20_ID1() bfin_read16(CAN_MB20_ID1)
  1405. #define bfin_write_CAN_MB20_ID1(val) bfin_write16(CAN_MB20_ID1,val)
  1406. #define bfin_read_CAN_MB20_ID0() bfin_read16(CAN_MB20_ID0)
  1407. #define bfin_write_CAN_MB20_ID0(val) bfin_write16(CAN_MB20_ID0,val)
  1408. #define bfin_read_CAN_MB20_TIMESTAMP() bfin_read16(CAN_MB20_TIMESTAMP)
  1409. #define bfin_write_CAN_MB20_TIMESTAMP(val) bfin_write16(CAN_MB20_TIMESTAMP,val)
  1410. #define bfin_read_CAN_MB20_LENGTH() bfin_read16(CAN_MB20_LENGTH)
  1411. #define bfin_write_CAN_MB20_LENGTH(val) bfin_write16(CAN_MB20_LENGTH,val)
  1412. #define bfin_read_CAN_MB20_DATA3() bfin_read16(CAN_MB20_DATA3)
  1413. #define bfin_write_CAN_MB20_DATA3(val) bfin_write16(CAN_MB20_DATA3,val)
  1414. #define bfin_read_CAN_MB20_DATA2() bfin_read16(CAN_MB20_DATA2)
  1415. #define bfin_write_CAN_MB20_DATA2(val) bfin_write16(CAN_MB20_DATA2,val)
  1416. #define bfin_read_CAN_MB20_DATA1() bfin_read16(CAN_MB20_DATA1)
  1417. #define bfin_write_CAN_MB20_DATA1(val) bfin_write16(CAN_MB20_DATA1,val)
  1418. #define bfin_read_CAN_MB20_DATA0() bfin_read16(CAN_MB20_DATA0)
  1419. #define bfin_write_CAN_MB20_DATA0(val) bfin_write16(CAN_MB20_DATA0,val)
  1420. #define bfin_read_CAN_MB21_ID1() bfin_read16(CAN_MB21_ID1)
  1421. #define bfin_write_CAN_MB21_ID1(val) bfin_write16(CAN_MB21_ID1,val)
  1422. #define bfin_read_CAN_MB21_ID0() bfin_read16(CAN_MB21_ID0)
  1423. #define bfin_write_CAN_MB21_ID0(val) bfin_write16(CAN_MB21_ID0,val)
  1424. #define bfin_read_CAN_MB21_TIMESTAMP() bfin_read16(CAN_MB21_TIMESTAMP)
  1425. #define bfin_write_CAN_MB21_TIMESTAMP(val) bfin_write16(CAN_MB21_TIMESTAMP,val)
  1426. #define bfin_read_CAN_MB21_LENGTH() bfin_read16(CAN_MB21_LENGTH)
  1427. #define bfin_write_CAN_MB21_LENGTH(val) bfin_write16(CAN_MB21_LENGTH,val)
  1428. #define bfin_read_CAN_MB21_DATA3() bfin_read16(CAN_MB21_DATA3)
  1429. #define bfin_write_CAN_MB21_DATA3(val) bfin_write16(CAN_MB21_DATA3,val)
  1430. #define bfin_read_CAN_MB21_DATA2() bfin_read16(CAN_MB21_DATA2)
  1431. #define bfin_write_CAN_MB21_DATA2(val) bfin_write16(CAN_MB21_DATA2,val)
  1432. #define bfin_read_CAN_MB21_DATA1() bfin_read16(CAN_MB21_DATA1)
  1433. #define bfin_write_CAN_MB21_DATA1(val) bfin_write16(CAN_MB21_DATA1,val)
  1434. #define bfin_read_CAN_MB21_DATA0() bfin_read16(CAN_MB21_DATA0)
  1435. #define bfin_write_CAN_MB21_DATA0(val) bfin_write16(CAN_MB21_DATA0,val)
  1436. #define bfin_read_CAN_MB22_ID1() bfin_read16(CAN_MB22_ID1)
  1437. #define bfin_write_CAN_MB22_ID1(val) bfin_write16(CAN_MB22_ID1,val)
  1438. #define bfin_read_CAN_MB22_ID0() bfin_read16(CAN_MB22_ID0)
  1439. #define bfin_write_CAN_MB22_ID0(val) bfin_write16(CAN_MB22_ID0,val)
  1440. #define bfin_read_CAN_MB22_TIMESTAMP() bfin_read16(CAN_MB22_TIMESTAMP)
  1441. #define bfin_write_CAN_MB22_TIMESTAMP(val) bfin_write16(CAN_MB22_TIMESTAMP,val)
  1442. #define bfin_read_CAN_MB22_LENGTH() bfin_read16(CAN_MB22_LENGTH)
  1443. #define bfin_write_CAN_MB22_LENGTH(val) bfin_write16(CAN_MB22_LENGTH,val)
  1444. #define bfin_read_CAN_MB22_DATA3() bfin_read16(CAN_MB22_DATA3)
  1445. #define bfin_write_CAN_MB22_DATA3(val) bfin_write16(CAN_MB22_DATA3,val)
  1446. #define bfin_read_CAN_MB22_DATA2() bfin_read16(CAN_MB22_DATA2)
  1447. #define bfin_write_CAN_MB22_DATA2(val) bfin_write16(CAN_MB22_DATA2,val)
  1448. #define bfin_read_CAN_MB22_DATA1() bfin_read16(CAN_MB22_DATA1)
  1449. #define bfin_write_CAN_MB22_DATA1(val) bfin_write16(CAN_MB22_DATA1,val)
  1450. #define bfin_read_CAN_MB22_DATA0() bfin_read16(CAN_MB22_DATA0)
  1451. #define bfin_write_CAN_MB22_DATA0(val) bfin_write16(CAN_MB22_DATA0,val)
  1452. #define bfin_read_CAN_MB23_ID1() bfin_read16(CAN_MB23_ID1)
  1453. #define bfin_write_CAN_MB23_ID1(val) bfin_write16(CAN_MB23_ID1,val)
  1454. #define bfin_read_CAN_MB23_ID0() bfin_read16(CAN_MB23_ID0)
  1455. #define bfin_write_CAN_MB23_ID0(val) bfin_write16(CAN_MB23_ID0,val)
  1456. #define bfin_read_CAN_MB23_TIMESTAMP() bfin_read16(CAN_MB23_TIMESTAMP)
  1457. #define bfin_write_CAN_MB23_TIMESTAMP(val) bfin_write16(CAN_MB23_TIMESTAMP,val)
  1458. #define bfin_read_CAN_MB23_LENGTH() bfin_read16(CAN_MB23_LENGTH)
  1459. #define bfin_write_CAN_MB23_LENGTH(val) bfin_write16(CAN_MB23_LENGTH,val)
  1460. #define bfin_read_CAN_MB23_DATA3() bfin_read16(CAN_MB23_DATA3)
  1461. #define bfin_write_CAN_MB23_DATA3(val) bfin_write16(CAN_MB23_DATA3,val)
  1462. #define bfin_read_CAN_MB23_DATA2() bfin_read16(CAN_MB23_DATA2)
  1463. #define bfin_write_CAN_MB23_DATA2(val) bfin_write16(CAN_MB23_DATA2,val)
  1464. #define bfin_read_CAN_MB23_DATA1() bfin_read16(CAN_MB23_DATA1)
  1465. #define bfin_write_CAN_MB23_DATA1(val) bfin_write16(CAN_MB23_DATA1,val)
  1466. #define bfin_read_CAN_MB23_DATA0() bfin_read16(CAN_MB23_DATA0)
  1467. #define bfin_write_CAN_MB23_DATA0(val) bfin_write16(CAN_MB23_DATA0,val)
  1468. #define bfin_read_CAN_MB24_ID1() bfin_read16(CAN_MB24_ID1)
  1469. #define bfin_write_CAN_MB24_ID1(val) bfin_write16(CAN_MB24_ID1,val)
  1470. #define bfin_read_CAN_MB24_ID0() bfin_read16(CAN_MB24_ID0)
  1471. #define bfin_write_CAN_MB24_ID0(val) bfin_write16(CAN_MB24_ID0,val)
  1472. #define bfin_read_CAN_MB24_TIMESTAMP() bfin_read16(CAN_MB24_TIMESTAMP)
  1473. #define bfin_write_CAN_MB24_TIMESTAMP(val) bfin_write16(CAN_MB24_TIMESTAMP,val)
  1474. #define bfin_read_CAN_MB24_LENGTH() bfin_read16(CAN_MB24_LENGTH)
  1475. #define bfin_write_CAN_MB24_LENGTH(val) bfin_write16(CAN_MB24_LENGTH,val)
  1476. #define bfin_read_CAN_MB24_DATA3() bfin_read16(CAN_MB24_DATA3)
  1477. #define bfin_write_CAN_MB24_DATA3(val) bfin_write16(CAN_MB24_DATA3,val)
  1478. #define bfin_read_CAN_MB24_DATA2() bfin_read16(CAN_MB24_DATA2)
  1479. #define bfin_write_CAN_MB24_DATA2(val) bfin_write16(CAN_MB24_DATA2,val)
  1480. #define bfin_read_CAN_MB24_DATA1() bfin_read16(CAN_MB24_DATA1)
  1481. #define bfin_write_CAN_MB24_DATA1(val) bfin_write16(CAN_MB24_DATA1,val)
  1482. #define bfin_read_CAN_MB24_DATA0() bfin_read16(CAN_MB24_DATA0)
  1483. #define bfin_write_CAN_MB24_DATA0(val) bfin_write16(CAN_MB24_DATA0,val)
  1484. #define bfin_read_CAN_MB25_ID1() bfin_read16(CAN_MB25_ID1)
  1485. #define bfin_write_CAN_MB25_ID1(val) bfin_write16(CAN_MB25_ID1,val)
  1486. #define bfin_read_CAN_MB25_ID0() bfin_read16(CAN_MB25_ID0)
  1487. #define bfin_write_CAN_MB25_ID0(val) bfin_write16(CAN_MB25_ID0,val)
  1488. #define bfin_read_CAN_MB25_TIMESTAMP() bfin_read16(CAN_MB25_TIMESTAMP)
  1489. #define bfin_write_CAN_MB25_TIMESTAMP(val) bfin_write16(CAN_MB25_TIMESTAMP,val)
  1490. #define bfin_read_CAN_MB25_LENGTH() bfin_read16(CAN_MB25_LENGTH)
  1491. #define bfin_write_CAN_MB25_LENGTH(val) bfin_write16(CAN_MB25_LENGTH,val)
  1492. #define bfin_read_CAN_MB25_DATA3() bfin_read16(CAN_MB25_DATA3)
  1493. #define bfin_write_CAN_MB25_DATA3(val) bfin_write16(CAN_MB25_DATA3,val)
  1494. #define bfin_read_CAN_MB25_DATA2() bfin_read16(CAN_MB25_DATA2)
  1495. #define bfin_write_CAN_MB25_DATA2(val) bfin_write16(CAN_MB25_DATA2,val)
  1496. #define bfin_read_CAN_MB25_DATA1() bfin_read16(CAN_MB25_DATA1)
  1497. #define bfin_write_CAN_MB25_DATA1(val) bfin_write16(CAN_MB25_DATA1,val)
  1498. #define bfin_read_CAN_MB25_DATA0() bfin_read16(CAN_MB25_DATA0)
  1499. #define bfin_write_CAN_MB25_DATA0(val) bfin_write16(CAN_MB25_DATA0,val)
  1500. #define bfin_read_CAN_MB26_ID1() bfin_read16(CAN_MB26_ID1)
  1501. #define bfin_write_CAN_MB26_ID1(val) bfin_write16(CAN_MB26_ID1,val)
  1502. #define bfin_read_CAN_MB26_ID0() bfin_read16(CAN_MB26_ID0)
  1503. #define bfin_write_CAN_MB26_ID0(val) bfin_write16(CAN_MB26_ID0,val)
  1504. #define bfin_read_CAN_MB26_TIMESTAMP() bfin_read16(CAN_MB26_TIMESTAMP)
  1505. #define bfin_write_CAN_MB26_TIMESTAMP(val) bfin_write16(CAN_MB26_TIMESTAMP,val)
  1506. #define bfin_read_CAN_MB26_LENGTH() bfin_read16(CAN_MB26_LENGTH)
  1507. #define bfin_write_CAN_MB26_LENGTH(val) bfin_write16(CAN_MB26_LENGTH,val)
  1508. #define bfin_read_CAN_MB26_DATA3() bfin_read16(CAN_MB26_DATA3)
  1509. #define bfin_write_CAN_MB26_DATA3(val) bfin_write16(CAN_MB26_DATA3,val)
  1510. #define bfin_read_CAN_MB26_DATA2() bfin_read16(CAN_MB26_DATA2)
  1511. #define bfin_write_CAN_MB26_DATA2(val) bfin_write16(CAN_MB26_DATA2,val)
  1512. #define bfin_read_CAN_MB26_DATA1() bfin_read16(CAN_MB26_DATA1)
  1513. #define bfin_write_CAN_MB26_DATA1(val) bfin_write16(CAN_MB26_DATA1,val)
  1514. #define bfin_read_CAN_MB26_DATA0() bfin_read16(CAN_MB26_DATA0)
  1515. #define bfin_write_CAN_MB26_DATA0(val) bfin_write16(CAN_MB26_DATA0,val)
  1516. #define bfin_read_CAN_MB27_ID1() bfin_read16(CAN_MB27_ID1)
  1517. #define bfin_write_CAN_MB27_ID1(val) bfin_write16(CAN_MB27_ID1,val)
  1518. #define bfin_read_CAN_MB27_ID0() bfin_read16(CAN_MB27_ID0)
  1519. #define bfin_write_CAN_MB27_ID0(val) bfin_write16(CAN_MB27_ID0,val)
  1520. #define bfin_read_CAN_MB27_TIMESTAMP() bfin_read16(CAN_MB27_TIMESTAMP)
  1521. #define bfin_write_CAN_MB27_TIMESTAMP(val) bfin_write16(CAN_MB27_TIMESTAMP,val)
  1522. #define bfin_read_CAN_MB27_LENGTH() bfin_read16(CAN_MB27_LENGTH)
  1523. #define bfin_write_CAN_MB27_LENGTH(val) bfin_write16(CAN_MB27_LENGTH,val)
  1524. #define bfin_read_CAN_MB27_DATA3() bfin_read16(CAN_MB27_DATA3)
  1525. #define bfin_write_CAN_MB27_DATA3(val) bfin_write16(CAN_MB27_DATA3,val)
  1526. #define bfin_read_CAN_MB27_DATA2() bfin_read16(CAN_MB27_DATA2)
  1527. #define bfin_write_CAN_MB27_DATA2(val) bfin_write16(CAN_MB27_DATA2,val)
  1528. #define bfin_read_CAN_MB27_DATA1() bfin_read16(CAN_MB27_DATA1)
  1529. #define bfin_write_CAN_MB27_DATA1(val) bfin_write16(CAN_MB27_DATA1,val)
  1530. #define bfin_read_CAN_MB27_DATA0() bfin_read16(CAN_MB27_DATA0)
  1531. #define bfin_write_CAN_MB27_DATA0(val) bfin_write16(CAN_MB27_DATA0,val)
  1532. #define bfin_read_CAN_MB28_ID1() bfin_read16(CAN_MB28_ID1)
  1533. #define bfin_write_CAN_MB28_ID1(val) bfin_write16(CAN_MB28_ID1,val)
  1534. #define bfin_read_CAN_MB28_ID0() bfin_read16(CAN_MB28_ID0)
  1535. #define bfin_write_CAN_MB28_ID0(val) bfin_write16(CAN_MB28_ID0,val)
  1536. #define bfin_read_CAN_MB28_TIMESTAMP() bfin_read16(CAN_MB28_TIMESTAMP)
  1537. #define bfin_write_CAN_MB28_TIMESTAMP(val) bfin_write16(CAN_MB28_TIMESTAMP,val)
  1538. #define bfin_read_CAN_MB28_LENGTH() bfin_read16(CAN_MB28_LENGTH)
  1539. #define bfin_write_CAN_MB28_LENGTH(val) bfin_write16(CAN_MB28_LENGTH,val)
  1540. #define bfin_read_CAN_MB28_DATA3() bfin_read16(CAN_MB28_DATA3)
  1541. #define bfin_write_CAN_MB28_DATA3(val) bfin_write16(CAN_MB28_DATA3,val)
  1542. #define bfin_read_CAN_MB28_DATA2() bfin_read16(CAN_MB28_DATA2)
  1543. #define bfin_write_CAN_MB28_DATA2(val) bfin_write16(CAN_MB28_DATA2,val)
  1544. #define bfin_read_CAN_MB28_DATA1() bfin_read16(CAN_MB28_DATA1)
  1545. #define bfin_write_CAN_MB28_DATA1(val) bfin_write16(CAN_MB28_DATA1,val)
  1546. #define bfin_read_CAN_MB28_DATA0() bfin_read16(CAN_MB28_DATA0)
  1547. #define bfin_write_CAN_MB28_DATA0(val) bfin_write16(CAN_MB28_DATA0,val)
  1548. #define bfin_read_CAN_MB29_ID1() bfin_read16(CAN_MB29_ID1)
  1549. #define bfin_write_CAN_MB29_ID1(val) bfin_write16(CAN_MB29_ID1,val)
  1550. #define bfin_read_CAN_MB29_ID0() bfin_read16(CAN_MB29_ID0)
  1551. #define bfin_write_CAN_MB29_ID0(val) bfin_write16(CAN_MB29_ID0,val)
  1552. #define bfin_read_CAN_MB29_TIMESTAMP() bfin_read16(CAN_MB29_TIMESTAMP)
  1553. #define bfin_write_CAN_MB29_TIMESTAMP(val) bfin_write16(CAN_MB29_TIMESTAMP,val)
  1554. #define bfin_read_CAN_MB29_LENGTH() bfin_read16(CAN_MB29_LENGTH)
  1555. #define bfin_write_CAN_MB29_LENGTH(val) bfin_write16(CAN_MB29_LENGTH,val)
  1556. #define bfin_read_CAN_MB29_DATA3() bfin_read16(CAN_MB29_DATA3)
  1557. #define bfin_write_CAN_MB29_DATA3(val) bfin_write16(CAN_MB29_DATA3,val)
  1558. #define bfin_read_CAN_MB29_DATA2() bfin_read16(CAN_MB29_DATA2)
  1559. #define bfin_write_CAN_MB29_DATA2(val) bfin_write16(CAN_MB29_DATA2,val)
  1560. #define bfin_read_CAN_MB29_DATA1() bfin_read16(CAN_MB29_DATA1)
  1561. #define bfin_write_CAN_MB29_DATA1(val) bfin_write16(CAN_MB29_DATA1,val)
  1562. #define bfin_read_CAN_MB29_DATA0() bfin_read16(CAN_MB29_DATA0)
  1563. #define bfin_write_CAN_MB29_DATA0(val) bfin_write16(CAN_MB29_DATA0,val)
  1564. #define bfin_read_CAN_MB30_ID1() bfin_read16(CAN_MB30_ID1)
  1565. #define bfin_write_CAN_MB30_ID1(val) bfin_write16(CAN_MB30_ID1,val)
  1566. #define bfin_read_CAN_MB30_ID0() bfin_read16(CAN_MB30_ID0)
  1567. #define bfin_write_CAN_MB30_ID0(val) bfin_write16(CAN_MB30_ID0,val)
  1568. #define bfin_read_CAN_MB30_TIMESTAMP() bfin_read16(CAN_MB30_TIMESTAMP)
  1569. #define bfin_write_CAN_MB30_TIMESTAMP(val) bfin_write16(CAN_MB30_TIMESTAMP,val)
  1570. #define bfin_read_CAN_MB30_LENGTH() bfin_read16(CAN_MB30_LENGTH)
  1571. #define bfin_write_CAN_MB30_LENGTH(val) bfin_write16(CAN_MB30_LENGTH,val)
  1572. #define bfin_read_CAN_MB30_DATA3() bfin_read16(CAN_MB30_DATA3)
  1573. #define bfin_write_CAN_MB30_DATA3(val) bfin_write16(CAN_MB30_DATA3,val)
  1574. #define bfin_read_CAN_MB30_DATA2() bfin_read16(CAN_MB30_DATA2)
  1575. #define bfin_write_CAN_MB30_DATA2(val) bfin_write16(CAN_MB30_DATA2,val)
  1576. #define bfin_read_CAN_MB30_DATA1() bfin_read16(CAN_MB30_DATA1)
  1577. #define bfin_write_CAN_MB30_DATA1(val) bfin_write16(CAN_MB30_DATA1,val)
  1578. #define bfin_read_CAN_MB30_DATA0() bfin_read16(CAN_MB30_DATA0)
  1579. #define bfin_write_CAN_MB30_DATA0(val) bfin_write16(CAN_MB30_DATA0,val)
  1580. #define bfin_read_CAN_MB31_ID1() bfin_read16(CAN_MB31_ID1)
  1581. #define bfin_write_CAN_MB31_ID1(val) bfin_write16(CAN_MB31_ID1,val)
  1582. #define bfin_read_CAN_MB31_ID0() bfin_read16(CAN_MB31_ID0)
  1583. #define bfin_write_CAN_MB31_ID0(val) bfin_write16(CAN_MB31_ID0,val)
  1584. #define bfin_read_CAN_MB31_TIMESTAMP() bfin_read16(CAN_MB31_TIMESTAMP)
  1585. #define bfin_write_CAN_MB31_TIMESTAMP(val) bfin_write16(CAN_MB31_TIMESTAMP,val)
  1586. #define bfin_read_CAN_MB31_LENGTH() bfin_read16(CAN_MB31_LENGTH)
  1587. #define bfin_write_CAN_MB31_LENGTH(val) bfin_write16(CAN_MB31_LENGTH,val)
  1588. #define bfin_read_CAN_MB31_DATA3() bfin_read16(CAN_MB31_DATA3)
  1589. #define bfin_write_CAN_MB31_DATA3(val) bfin_write16(CAN_MB31_DATA3,val)
  1590. #define bfin_read_CAN_MB31_DATA2() bfin_read16(CAN_MB31_DATA2)
  1591. #define bfin_write_CAN_MB31_DATA2(val) bfin_write16(CAN_MB31_DATA2,val)
  1592. #define bfin_read_CAN_MB31_DATA1() bfin_read16(CAN_MB31_DATA1)
  1593. #define bfin_write_CAN_MB31_DATA1(val) bfin_write16(CAN_MB31_DATA1,val)
  1594. #define bfin_read_CAN_MB31_DATA0() bfin_read16(CAN_MB31_DATA0)
  1595. #define bfin_write_CAN_MB31_DATA0(val) bfin_write16(CAN_MB31_DATA0,val)
  1596. /* CAN Mailbox Area Macros */
  1597. #define bfin_read_CAN_MB_ID1(x)() bfin_read16(CAN_MB_ID1(x))
  1598. #define bfin_write_CAN_MB_ID1(x)(val) bfin_write16(CAN_MB_ID1(x),val)
  1599. #define bfin_read_CAN_MB_ID0(x)() bfin_read16(CAN_MB_ID0(x))
  1600. #define bfin_write_CAN_MB_ID0(x)(val) bfin_write16(CAN_MB_ID0(x),val)
  1601. #define bfin_read_CAN_MB_TIMESTAMP(x)() bfin_read16(CAN_MB_TIMESTAMP(x))
  1602. #define bfin_write_CAN_MB_TIMESTAMP(x)(val) bfin_write16(CAN_MB_TIMESTAMP(x),val)
  1603. #define bfin_read_CAN_MB_LENGTH(x)() bfin_read16(CAN_MB_LENGTH(x))
  1604. #define bfin_write_CAN_MB_LENGTH(x)(val) bfin_write16(CAN_MB_LENGTH(x),val)
  1605. #define bfin_read_CAN_MB_DATA3(x)() bfin_read16(CAN_MB_DATA3(x))
  1606. #define bfin_write_CAN_MB_DATA3(x)(val) bfin_write16(CAN_MB_DATA3(x),val)
  1607. #define bfin_read_CAN_MB_DATA2(x)() bfin_read16(CAN_MB_DATA2(x))
  1608. #define bfin_write_CAN_MB_DATA2(x)(val) bfin_write16(CAN_MB_DATA2(x),val)
  1609. #define bfin_read_CAN_MB_DATA1(x)() bfin_read16(CAN_MB_DATA1(x))
  1610. #define bfin_write_CAN_MB_DATA1(x)(val) bfin_write16(CAN_MB_DATA1(x),val)
  1611. #define bfin_read_CAN_MB_DATA0(x)() bfin_read16(CAN_MB_DATA0(x))
  1612. #define bfin_write_CAN_MB_DATA0(x)(val) bfin_write16(CAN_MB_DATA0(x),val)
  1613. /* Pin Control Registers (0xFFC03200 - 0xFFC032FF) */
  1614. #define bfin_read_PORTF_FER() bfin_read16(PORTF_FER)
  1615. #define bfin_write_PORTF_FER(val) bfin_write16(PORTF_FER,val)
  1616. #define bfin_read_PORTG_FER() bfin_read16(PORTG_FER)
  1617. #define bfin_write_PORTG_FER(val) bfin_write16(PORTG_FER,val)
  1618. #define bfin_read_PORTH_FER() bfin_read16(PORTH_FER)
  1619. #define bfin_write_PORTH_FER(val) bfin_write16(PORTH_FER,val)
  1620. #define bfin_read_PORT_MUX() bfin_read16(BFIN_PORT_MUX)
  1621. #define bfin_write_PORT_MUX(val) bfin_write16(BFIN_PORT_MUX,val)
  1622. /* Handshake MDMA Registers (0xFFC03300 - 0xFFC033FF) */
  1623. #define bfin_read_HMDMA0_CONTROL() bfin_read16(HMDMA0_CONTROL)
  1624. #define bfin_write_HMDMA0_CONTROL(val) bfin_write16(HMDMA0_CONTROL,val)
  1625. #define bfin_read_HMDMA0_ECINIT() bfin_read16(HMDMA0_ECINIT)
  1626. #define bfin_write_HMDMA0_ECINIT(val) bfin_write16(HMDMA0_ECINIT,val)
  1627. #define bfin_read_HMDMA0_BCINIT() bfin_read16(HMDMA0_BCINIT)
  1628. #define bfin_write_HMDMA0_BCINIT(val) bfin_write16(HMDMA0_BCINIT,val)
  1629. #define bfin_read_HMDMA0_ECURGENT() bfin_read16(HMDMA0_ECURGENT)
  1630. #define bfin_write_HMDMA0_ECURGENT(val) bfin_write16(HMDMA0_ECURGENT,val)
  1631. #define bfin_read_HMDMA0_ECOVERFLOW() bfin_read16(HMDMA0_ECOVERFLOW)
  1632. #define bfin_write_HMDMA0_ECOVERFLOW(val) bfin_write16(HMDMA0_ECOVERFLOW,val)
  1633. #define bfin_read_HMDMA0_ECOUNT() bfin_read16(HMDMA0_ECOUNT)
  1634. #define bfin_write_HMDMA0_ECOUNT(val) bfin_write16(HMDMA0_ECOUNT,val)
  1635. #define bfin_read_HMDMA0_BCOUNT() bfin_read16(HMDMA0_BCOUNT)
  1636. #define bfin_write_HMDMA0_BCOUNT(val) bfin_write16(HMDMA0_BCOUNT,val)
  1637. #define bfin_read_HMDMA1_CONTROL() bfin_read16(HMDMA1_CONTROL)
  1638. #define bfin_write_HMDMA1_CONTROL(val) bfin_write16(HMDMA1_CONTROL,val)
  1639. #define bfin_read_HMDMA1_ECINIT() bfin_read16(HMDMA1_ECINIT)
  1640. #define bfin_write_HMDMA1_ECINIT(val) bfin_write16(HMDMA1_ECINIT,val)
  1641. #define bfin_read_HMDMA1_BCINIT() bfin_read16(HMDMA1_BCINIT)
  1642. #define bfin_write_HMDMA1_BCINIT(val) bfin_write16(HMDMA1_BCINIT,val)
  1643. #define bfin_read_HMDMA1_ECURGENT() bfin_read16(HMDMA1_ECURGENT)
  1644. #define bfin_write_HMDMA1_ECURGENT(val) bfin_write16(HMDMA1_ECURGENT,val)
  1645. #define bfin_read_HMDMA1_ECOVERFLOW() bfin_read16(HMDMA1_ECOVERFLOW)
  1646. #define bfin_write_HMDMA1_ECOVERFLOW(val) bfin_write16(HMDMA1_ECOVERFLOW,val)
  1647. #define bfin_read_HMDMA1_ECOUNT() bfin_read16(HMDMA1_ECOUNT)
  1648. #define bfin_write_HMDMA1_ECOUNT(val) bfin_write16(HMDMA1_ECOUNT,val)
  1649. #define bfin_read_HMDMA1_BCOUNT() bfin_read16(HMDMA1_BCOUNT)
  1650. #define bfin_write_HMDMA1_BCOUNT(val) bfin_write16(HMDMA1_BCOUNT,val)
  1651. #endif /* _CDEF_BF534_H */