cp_axidma.h 74 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _CP_AXIDMA_H_
  13. #define _CP_AXIDMA_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_CP_AXIDMA_BASE (0x12040000)
  17. typedef volatile struct
  18. {
  19. uint32_t axidma_conf; // 0x00000000
  20. uint32_t axidma_delay; // 0x00000004
  21. uint32_t axidma_status; // 0x00000008
  22. uint32_t axidma_irq_stat; // 0x0000000c
  23. uint32_t axidma_arm_req_stat; // 0x00000010
  24. uint32_t axidma_arm_ack_stat; // 0x00000014
  25. uint32_t axidma_zsp_req_stat0; // 0x00000018
  26. uint32_t axidma_zsp_req_stat1; // 0x0000001c
  27. uint32_t axidma_ch_irq_distr; // 0x00000020
  28. uint32_t __36[7]; // 0x00000024
  29. uint32_t axidma_c0_conf; // 0x00000040
  30. uint32_t axidma_c0_map; // 0x00000044
  31. uint32_t axidma_c0_saddr; // 0x00000048
  32. uint32_t axidma_c0_daddr; // 0x0000004c
  33. uint32_t axidma_c0_count; // 0x00000050
  34. uint32_t axidma_c0_countp; // 0x00000054
  35. uint32_t axidma_c0_status; // 0x00000058
  36. uint32_t axidma_c0_sgaddr; // 0x0000005c
  37. uint32_t axidma_c0_sgconf; // 0x00000060
  38. uint32_t axidma_c0_set; // 0x00000064
  39. uint32_t axidma_c0_clr; // 0x00000068
  40. uint32_t __108[5]; // 0x0000006c
  41. uint32_t axidma_c1_conf; // 0x00000080
  42. uint32_t axidma_c1_map; // 0x00000084
  43. uint32_t axidma_c1_saddr; // 0x00000088
  44. uint32_t axidma_c1_daddr; // 0x0000008c
  45. uint32_t axidma_c1_count; // 0x00000090
  46. uint32_t axidma_c1_countp; // 0x00000094
  47. uint32_t axidma_c1_status; // 0x00000098
  48. uint32_t axidma_c1_sgaddr; // 0x0000009c
  49. uint32_t axidma_c1_sgconf; // 0x000000a0
  50. uint32_t axidma_c1_set; // 0x000000a4
  51. uint32_t axidma_c1_clr; // 0x000000a8
  52. uint32_t __172[5]; // 0x000000ac
  53. uint32_t axidma_c2_conf; // 0x000000c0
  54. uint32_t axidma_c2_map; // 0x000000c4
  55. uint32_t axidma_c2_saddr; // 0x000000c8
  56. uint32_t axidma_c2_daddr; // 0x000000cc
  57. uint32_t axidma_c2_count; // 0x000000d0
  58. uint32_t axidma_c2_countp; // 0x000000d4
  59. uint32_t axidma_c2_status; // 0x000000d8
  60. uint32_t axidma_c2_sgaddr; // 0x000000dc
  61. uint32_t axidma_c2_sgconf; // 0x000000e0
  62. uint32_t axidma_c2_set; // 0x000000e4
  63. uint32_t axidma_c2_clr; // 0x000000e8
  64. uint32_t __236[5]; // 0x000000ec
  65. uint32_t axidma_c3_conf; // 0x00000100
  66. uint32_t axidma_c3_map; // 0x00000104
  67. uint32_t axidma_c3_saddr; // 0x00000108
  68. uint32_t axidma_c3_daddr; // 0x0000010c
  69. uint32_t axidma_c3_count; // 0x00000110
  70. uint32_t axidma_c3_countp; // 0x00000114
  71. uint32_t axidma_c3_status; // 0x00000118
  72. uint32_t axidma_c3_sgaddr; // 0x0000011c
  73. uint32_t axidma_c3_sgconf; // 0x00000120
  74. uint32_t axidma_c3_set; // 0x00000124
  75. uint32_t axidma_c3_clr; // 0x00000128
  76. uint32_t __300[5]; // 0x0000012c
  77. uint32_t axidma_c4_conf; // 0x00000140
  78. uint32_t axidma_c4_map; // 0x00000144
  79. uint32_t axidma_c4_saddr; // 0x00000148
  80. uint32_t axidma_c4_daddr; // 0x0000014c
  81. uint32_t axidma_c4_count; // 0x00000150
  82. uint32_t axidma_c4_countp; // 0x00000154
  83. uint32_t axidma_c4_status; // 0x00000158
  84. uint32_t axidma_c4_sgaddr; // 0x0000015c
  85. uint32_t axidma_c4_sgconf; // 0x00000160
  86. uint32_t axidma_c4_set; // 0x00000164
  87. uint32_t axidma_c4_clr; // 0x00000168
  88. uint32_t __364[5]; // 0x0000016c
  89. uint32_t axidma_c5_conf; // 0x00000180
  90. uint32_t axidma_c5_map; // 0x00000184
  91. uint32_t axidma_c5_saddr; // 0x00000188
  92. uint32_t axidma_c5_daddr; // 0x0000018c
  93. uint32_t axidma_c5_count; // 0x00000190
  94. uint32_t axidma_c5_countp; // 0x00000194
  95. uint32_t axidma_c5_status; // 0x00000198
  96. uint32_t axidma_c5_sgaddr; // 0x0000019c
  97. uint32_t axidma_c5_sgconf; // 0x000001a0
  98. uint32_t axidma_c5_set; // 0x000001a4
  99. uint32_t axidma_c5_clr; // 0x000001a8
  100. uint32_t __428[5]; // 0x000001ac
  101. uint32_t axidma_c6_conf; // 0x000001c0
  102. uint32_t axidma_c6_map; // 0x000001c4
  103. uint32_t axidma_c6_saddr; // 0x000001c8
  104. uint32_t axidma_c6_daddr; // 0x000001cc
  105. uint32_t axidma_c6_count; // 0x000001d0
  106. uint32_t axidma_c6_countp; // 0x000001d4
  107. uint32_t axidma_c6_status; // 0x000001d8
  108. uint32_t axidma_c6_sgaddr; // 0x000001dc
  109. uint32_t axidma_c6_sgconf; // 0x000001e0
  110. uint32_t axidma_c6_set; // 0x000001e4
  111. uint32_t axidma_c6_clr; // 0x000001e8
  112. uint32_t __492[5]; // 0x000001ec
  113. uint32_t axidma_c7_conf; // 0x00000200
  114. uint32_t axidma_c7_map; // 0x00000204
  115. uint32_t axidma_c7_saddr; // 0x00000208
  116. uint32_t axidma_c7_daddr; // 0x0000020c
  117. uint32_t axidma_c7_count; // 0x00000210
  118. uint32_t axidma_c7_countp; // 0x00000214
  119. uint32_t axidma_c7_status; // 0x00000218
  120. uint32_t axidma_c7_sgaddr; // 0x0000021c
  121. uint32_t axidma_c7_sgconf; // 0x00000220
  122. uint32_t axidma_c7_set; // 0x00000224
  123. uint32_t axidma_c7_clr; // 0x00000228
  124. uint32_t __556[5]; // 0x0000022c
  125. uint32_t axidma_c8_conf; // 0x00000240
  126. uint32_t axidma_c8_map; // 0x00000244
  127. uint32_t axidma_c8_saddr; // 0x00000248
  128. uint32_t axidma_c8_daddr; // 0x0000024c
  129. uint32_t axidma_c8_count; // 0x00000250
  130. uint32_t axidma_c8_countp; // 0x00000254
  131. uint32_t axidma_c8_status; // 0x00000258
  132. uint32_t axidma_c8_sgaddr; // 0x0000025c
  133. uint32_t axidma_c8_sgconf; // 0x00000260
  134. uint32_t axidma_c8_set; // 0x00000264
  135. uint32_t axidma_c8_clr; // 0x00000268
  136. uint32_t __620[5]; // 0x0000026c
  137. uint32_t axidma_c9_conf; // 0x00000280
  138. uint32_t axidma_c9_map; // 0x00000284
  139. uint32_t axidma_c9_saddr; // 0x00000288
  140. uint32_t axidma_c9_daddr; // 0x0000028c
  141. uint32_t axidma_c9_count; // 0x00000290
  142. uint32_t axidma_c9_countp; // 0x00000294
  143. uint32_t axidma_c9_status; // 0x00000298
  144. uint32_t axidma_c9_sgaddr; // 0x0000029c
  145. uint32_t axidma_c9_sgconf; // 0x000002a0
  146. uint32_t axidma_c9_set; // 0x000002a4
  147. uint32_t axidma_c9_clr; // 0x000002a8
  148. uint32_t __684[5]; // 0x000002ac
  149. uint32_t axidma_c10_conf; // 0x000002c0
  150. uint32_t axidma_c10_map; // 0x000002c4
  151. uint32_t axidma_c10_saddr; // 0x000002c8
  152. uint32_t axidma_c10_daddr; // 0x000002cc
  153. uint32_t axidma_c10_count; // 0x000002d0
  154. uint32_t axidma_c10_countp; // 0x000002d4
  155. uint32_t axidma_c10_status; // 0x000002d8
  156. uint32_t axidma_c10_sgaddr; // 0x000002dc
  157. uint32_t axidma_c10_sgconf; // 0x000002e0
  158. uint32_t axidma_c10_set; // 0x000002e4
  159. uint32_t axidma_c10_clr; // 0x000002e8
  160. uint32_t __748[5]; // 0x000002ec
  161. uint32_t axidma_c11_conf; // 0x00000300
  162. uint32_t axidma_c11_map; // 0x00000304
  163. uint32_t axidma_c11_saddr; // 0x00000308
  164. uint32_t axidma_c11_daddr; // 0x0000030c
  165. uint32_t axidma_c11_count; // 0x00000310
  166. uint32_t axidma_c11_countp; // 0x00000314
  167. uint32_t axidma_c11_status; // 0x00000318
  168. uint32_t axidma_c11_sgaddr; // 0x0000031c
  169. uint32_t axidma_c11_sgconf; // 0x00000320
  170. uint32_t axidma_c11_set; // 0x00000324
  171. uint32_t axidma_c11_clr; // 0x00000328
  172. } HWP_CP_AXIDMA_T;
  173. #define hwp_cpAxidma ((HWP_CP_AXIDMA_T *)REG_ACCESS_ADDRESS(REG_CP_AXIDMA_BASE))
  174. // axidma_conf
  175. typedef union {
  176. uint32_t v;
  177. struct
  178. {
  179. uint32_t stop : 1; // [0]
  180. uint32_t stop_ie : 1; // [1]
  181. uint32_t priority : 1; // [2]
  182. uint32_t outstand : 2; // [4:3]
  183. uint32_t resp_err_stop_en : 1; // [5]
  184. uint32_t gen_reg_secuirty_en : 1; // [6]
  185. uint32_t __31_7 : 25; // [31:7]
  186. } b;
  187. } REG_CP_AXIDMA_AXIDMA_CONF_T;
  188. // axidma_delay
  189. typedef union {
  190. uint32_t v;
  191. struct
  192. {
  193. uint32_t delay : 16; // [15:0]
  194. uint32_t __31_16 : 16; // [31:16]
  195. } b;
  196. } REG_CP_AXIDMA_AXIDMA_DELAY_T;
  197. // axidma_status
  198. typedef union {
  199. uint32_t v;
  200. struct
  201. {
  202. uint32_t ch_num : 4; // [3:0], read only
  203. uint32_t stop_status : 1; // [4], read only
  204. uint32_t __31_5 : 27; // [31:5]
  205. } b;
  206. } REG_CP_AXIDMA_AXIDMA_STATUS_T;
  207. // axidma_irq_stat
  208. typedef union {
  209. uint32_t v;
  210. struct
  211. {
  212. uint32_t ch0_irq : 1; // [0], read only
  213. uint32_t ch1_irq : 1; // [1], read only
  214. uint32_t ch2_irq : 1; // [2], read only
  215. uint32_t ch3_irq : 1; // [3], read only
  216. uint32_t ch4_irq : 1; // [4], read only
  217. uint32_t ch5_irq : 1; // [5], read only
  218. uint32_t ch6_irq : 1; // [6], read only
  219. uint32_t ch7_irq : 1; // [7], read only
  220. uint32_t ch8_irq : 1; // [8], read only
  221. uint32_t ch9_irq : 1; // [9], read only
  222. uint32_t ch10_irq : 1; // [10], read only
  223. uint32_t ch11_irq : 1; // [11], read only
  224. uint32_t rst_fin_irq : 1; // [12], read only
  225. uint32_t __31_13 : 19; // [31:13]
  226. } b;
  227. } REG_CP_AXIDMA_AXIDMA_IRQ_STAT_T;
  228. // axidma_arm_req_stat
  229. typedef union {
  230. uint32_t v;
  231. struct
  232. {
  233. uint32_t irq0 : 1; // [0], read only
  234. uint32_t irq1 : 1; // [1], read only
  235. uint32_t irq2 : 1; // [2], read only
  236. uint32_t irq3 : 1; // [3], read only
  237. uint32_t irq4 : 1; // [4], read only
  238. uint32_t irq5 : 1; // [5], read only
  239. uint32_t irq6 : 1; // [6], read only
  240. uint32_t irq7 : 1; // [7], read only
  241. uint32_t irq8 : 1; // [8], read only
  242. uint32_t irq9 : 1; // [9], read only
  243. uint32_t irq10 : 1; // [10], read only
  244. uint32_t irq11 : 1; // [11], read only
  245. uint32_t irq12 : 1; // [12], read only
  246. uint32_t irq13 : 1; // [13], read only
  247. uint32_t irq14 : 1; // [14], read only
  248. uint32_t irq15 : 1; // [15], read only
  249. uint32_t irq16 : 1; // [16], read only
  250. uint32_t irq17 : 1; // [17], read only
  251. uint32_t irq18 : 1; // [18], read only
  252. uint32_t irq19 : 1; // [19], read only
  253. uint32_t irq20 : 1; // [20], read only
  254. uint32_t irq21 : 1; // [21], read only
  255. uint32_t irq22 : 1; // [22], read only
  256. uint32_t irq23 : 1; // [23], read only
  257. uint32_t __31_24 : 8; // [31:24]
  258. } b;
  259. } REG_CP_AXIDMA_AXIDMA_ARM_REQ_STAT_T;
  260. // axidma_arm_ack_stat
  261. typedef union {
  262. uint32_t v;
  263. struct
  264. {
  265. uint32_t ack0 : 1; // [0], read only
  266. uint32_t ack1 : 1; // [1], read only
  267. uint32_t ack2 : 1; // [2], read only
  268. uint32_t ack3 : 1; // [3], read only
  269. uint32_t ack4 : 1; // [4], read only
  270. uint32_t ack5 : 1; // [5], read only
  271. uint32_t ack6 : 1; // [6], read only
  272. uint32_t ack7 : 1; // [7], read only
  273. uint32_t ack8 : 1; // [8], read only
  274. uint32_t ack9 : 1; // [9], read only
  275. uint32_t ack10 : 1; // [10], read only
  276. uint32_t ack11 : 1; // [11], read only
  277. uint32_t ack12 : 1; // [12], read only
  278. uint32_t ack13 : 1; // [13], read only
  279. uint32_t ack14 : 1; // [14], read only
  280. uint32_t ack15 : 1; // [15], read only
  281. uint32_t ack16 : 1; // [16], read only
  282. uint32_t ack17 : 1; // [17], read only
  283. uint32_t ack18 : 1; // [18], read only
  284. uint32_t ack19 : 1; // [19], read only
  285. uint32_t ack20 : 1; // [20], read only
  286. uint32_t ack21 : 1; // [21], read only
  287. uint32_t ack22 : 1; // [22], read only
  288. uint32_t ack23 : 1; // [23], read only
  289. uint32_t __31_24 : 8; // [31:24]
  290. } b;
  291. } REG_CP_AXIDMA_AXIDMA_ARM_ACK_STAT_T;
  292. // axidma_zsp_req_stat0
  293. typedef union {
  294. uint32_t v;
  295. struct
  296. {
  297. uint32_t req0 : 3; // [2:0]
  298. uint32_t __3_3 : 1; // [3]
  299. uint32_t req1 : 3; // [6:4]
  300. uint32_t __7_7 : 1; // [7]
  301. uint32_t req2 : 3; // [10:8]
  302. uint32_t __11_11 : 1; // [11]
  303. uint32_t req3 : 3; // [14:12]
  304. uint32_t __15_15 : 1; // [15]
  305. uint32_t req4 : 3; // [18:16]
  306. uint32_t __19_19 : 1; // [19]
  307. uint32_t req5 : 3; // [22:20]
  308. uint32_t __23_23 : 1; // [23]
  309. uint32_t req6 : 3; // [26:24]
  310. uint32_t __27_27 : 1; // [27]
  311. uint32_t req7 : 3; // [30:28]
  312. uint32_t __31_31 : 1; // [31]
  313. } b;
  314. } REG_CP_AXIDMA_AXIDMA_ZSP_REQ_STAT0_T;
  315. // axidma_zsp_req_stat1
  316. typedef union {
  317. uint32_t v;
  318. struct
  319. {
  320. uint32_t req8 : 3; // [2:0]
  321. uint32_t __3_3 : 1; // [3]
  322. uint32_t req9 : 3; // [6:4]
  323. uint32_t __7_7 : 1; // [7]
  324. uint32_t req10 : 3; // [10:8]
  325. uint32_t __11_11 : 1; // [11]
  326. uint32_t req11 : 3; // [14:12]
  327. uint32_t __31_15 : 17; // [31:15]
  328. } b;
  329. } REG_CP_AXIDMA_AXIDMA_ZSP_REQ_STAT1_T;
  330. // axidma_ch_irq_distr
  331. typedef union {
  332. uint32_t v;
  333. struct
  334. {
  335. uint32_t ch0_irq_en0 : 1; // [0]
  336. uint32_t ch1_irq_en0 : 1; // [1]
  337. uint32_t ch2_irq_en0 : 1; // [2]
  338. uint32_t ch3_irq_en0 : 1; // [3]
  339. uint32_t ch4_irq_en0 : 1; // [4]
  340. uint32_t ch5_irq_en0 : 1; // [5]
  341. uint32_t ch6_irq_en0 : 1; // [6]
  342. uint32_t ch7_irq_en0 : 1; // [7]
  343. uint32_t ch8_irq_en0 : 1; // [8]
  344. uint32_t ch9_irq_en0 : 1; // [9]
  345. uint32_t ch10_irq_en0 : 1; // [10]
  346. uint32_t ch11_irq_en0 : 1; // [11]
  347. uint32_t __31_12 : 20; // [31:12]
  348. } b;
  349. } REG_CP_AXIDMA_AXIDMA_CH_IRQ_DISTR_T;
  350. // axidma_c0_conf
  351. typedef union {
  352. uint32_t v;
  353. struct
  354. {
  355. uint32_t start : 1; // [0]
  356. uint32_t data_type : 2; // [2:1]
  357. uint32_t syn_irq : 1; // [3]
  358. uint32_t irq_f : 1; // [4]
  359. uint32_t irq_t : 1; // [5]
  360. uint32_t saddr_fix : 1; // [6]
  361. uint32_t daddr_fix : 1; // [7]
  362. uint32_t force_trans : 1; // [8]
  363. uint32_t __9_9 : 1; // [9]
  364. uint32_t count_sel : 1; // [10]
  365. uint32_t __11_11 : 1; // [11]
  366. uint32_t saddr_turnaround : 1; // [12]
  367. uint32_t daddr_turnaround : 1; // [13]
  368. uint32_t security_en : 1; // [14]
  369. uint32_t err_int_en : 1; // [15]
  370. uint32_t __31_16 : 16; // [31:16]
  371. } b;
  372. } REG_CP_AXIDMA_AXIDMA_C0_CONF_T;
  373. // axidma_c0_map
  374. typedef union {
  375. uint32_t v;
  376. struct
  377. {
  378. uint32_t req_source : 5; // [4:0]
  379. uint32_t __7_5 : 3; // [7:5]
  380. uint32_t ack_map : 5; // [12:8]
  381. uint32_t __31_13 : 19; // [31:13]
  382. } b;
  383. } REG_CP_AXIDMA_AXIDMA_C0_MAP_T;
  384. // axidma_c0_count
  385. typedef union {
  386. uint32_t v;
  387. struct
  388. {
  389. uint32_t count : 24; // [23:0]
  390. uint32_t __31_24 : 8; // [31:24]
  391. } b;
  392. } REG_CP_AXIDMA_AXIDMA_C0_COUNT_T;
  393. // axidma_c0_countp
  394. typedef union {
  395. uint32_t v;
  396. struct
  397. {
  398. uint32_t countp : 16; // [15:0]
  399. uint32_t __31_16 : 16; // [31:16]
  400. } b;
  401. } REG_CP_AXIDMA_AXIDMA_C0_COUNTP_T;
  402. // axidma_c0_status
  403. typedef union {
  404. uint32_t v;
  405. struct
  406. {
  407. uint32_t run : 1; // [0], write clear
  408. uint32_t count_finish_int : 1; // [1], write clear
  409. uint32_t countp_finish_int : 1; // [2], write clear
  410. uint32_t sg_finish_int : 1; // [3], write clear
  411. uint32_t sg_count : 16; // [19:4], write clear
  412. uint32_t sg_suspend_int : 1; // [20], write clear
  413. uint32_t count_finish_sta : 1; // [21], write clear
  414. uint32_t countp_finish_sta : 1; // [22], write clear
  415. uint32_t sg_finish_sta : 1; // [23], write clear
  416. uint32_t sg_suspend_sta : 1; // [24], write clear
  417. uint32_t resp_err : 1; // [25], write clear
  418. uint32_t resp_err_int : 1; // [26], write clear
  419. uint32_t __31_27 : 5; // [31:27]
  420. } b;
  421. } REG_CP_AXIDMA_AXIDMA_C0_STATUS_T;
  422. // axidma_c0_sgconf
  423. typedef union {
  424. uint32_t v;
  425. struct
  426. {
  427. uint32_t sg_en : 1; // [0], write clear
  428. uint32_t sg_finish_ie : 1; // [1]
  429. uint32_t sg_suspend_ie : 1; // [2]
  430. uint32_t desc_rd_ctrl : 1; // [3]
  431. uint32_t sg_num : 16; // [19:4]
  432. uint32_t __31_20 : 12; // [31:20]
  433. } b;
  434. } REG_CP_AXIDMA_AXIDMA_C0_SGCONF_T;
  435. // axidma_c0_set
  436. typedef union {
  437. uint32_t v;
  438. struct
  439. {
  440. uint32_t run_set : 1; // [0]
  441. uint32_t __31_1 : 31; // [31:1]
  442. } b;
  443. } REG_CP_AXIDMA_AXIDMA_C0_SET_T;
  444. // axidma_c0_clr
  445. typedef union {
  446. uint32_t v;
  447. struct
  448. {
  449. uint32_t run_clr : 1; // [0]
  450. uint32_t __31_1 : 31; // [31:1]
  451. } b;
  452. } REG_CP_AXIDMA_AXIDMA_C0_CLR_T;
  453. // axidma_c1_conf
  454. typedef union {
  455. uint32_t v;
  456. struct
  457. {
  458. uint32_t start : 1; // [0]
  459. uint32_t data_type : 2; // [2:1]
  460. uint32_t syn_irq : 1; // [3]
  461. uint32_t irq_f : 1; // [4]
  462. uint32_t irq_t : 1; // [5]
  463. uint32_t saddr_fix : 1; // [6]
  464. uint32_t daddr_fix : 1; // [7]
  465. uint32_t force_trans : 1; // [8]
  466. uint32_t __9_9 : 1; // [9]
  467. uint32_t count_sel : 1; // [10]
  468. uint32_t __11_11 : 1; // [11]
  469. uint32_t saddr_turnaround : 1; // [12]
  470. uint32_t daddr_turnaround : 1; // [13]
  471. uint32_t security_en : 1; // [14]
  472. uint32_t err_int_en : 1; // [15]
  473. uint32_t __31_16 : 16; // [31:16]
  474. } b;
  475. } REG_CP_AXIDMA_AXIDMA_C1_CONF_T;
  476. // axidma_c1_map
  477. typedef union {
  478. uint32_t v;
  479. struct
  480. {
  481. uint32_t req_source : 5; // [4:0]
  482. uint32_t __7_5 : 3; // [7:5]
  483. uint32_t ack_map : 5; // [12:8]
  484. uint32_t __31_13 : 19; // [31:13]
  485. } b;
  486. } REG_CP_AXIDMA_AXIDMA_C1_MAP_T;
  487. // axidma_c1_count
  488. typedef union {
  489. uint32_t v;
  490. struct
  491. {
  492. uint32_t count : 24; // [23:0]
  493. uint32_t __31_24 : 8; // [31:24]
  494. } b;
  495. } REG_CP_AXIDMA_AXIDMA_C1_COUNT_T;
  496. // axidma_c1_countp
  497. typedef union {
  498. uint32_t v;
  499. struct
  500. {
  501. uint32_t countp : 16; // [15:0]
  502. uint32_t __31_16 : 16; // [31:16]
  503. } b;
  504. } REG_CP_AXIDMA_AXIDMA_C1_COUNTP_T;
  505. // axidma_c1_status
  506. typedef union {
  507. uint32_t v;
  508. struct
  509. {
  510. uint32_t run : 1; // [0], write clear
  511. uint32_t count_finish_int : 1; // [1], write clear
  512. uint32_t countp_finish_int : 1; // [2], write clear
  513. uint32_t sg_finish_int : 1; // [3], write clear
  514. uint32_t sg_count : 16; // [19:4], write clear
  515. uint32_t sg_suspend_int : 1; // [20], write clear
  516. uint32_t count_finish_sta : 1; // [21], write clear
  517. uint32_t countp_finish_sta : 1; // [22], write clear
  518. uint32_t sg_finish_sta : 1; // [23], write clear
  519. uint32_t sg_suspend_sta : 1; // [24], write clear
  520. uint32_t resp_err : 1; // [25], write clear
  521. uint32_t resp_err_int : 1; // [26], write clear
  522. uint32_t __31_27 : 5; // [31:27]
  523. } b;
  524. } REG_CP_AXIDMA_AXIDMA_C1_STATUS_T;
  525. // axidma_c1_sgconf
  526. typedef union {
  527. uint32_t v;
  528. struct
  529. {
  530. uint32_t sg_en : 1; // [0], write clear
  531. uint32_t sg_finish_ie : 1; // [1]
  532. uint32_t sg_suspend_ie : 1; // [2]
  533. uint32_t desc_rd_ctrl : 1; // [3]
  534. uint32_t sg_num : 16; // [19:4]
  535. uint32_t __31_20 : 12; // [31:20]
  536. } b;
  537. } REG_CP_AXIDMA_AXIDMA_C1_SGCONF_T;
  538. // axidma_c1_set
  539. typedef union {
  540. uint32_t v;
  541. struct
  542. {
  543. uint32_t run_set : 1; // [0]
  544. uint32_t __31_1 : 31; // [31:1]
  545. } b;
  546. } REG_CP_AXIDMA_AXIDMA_C1_SET_T;
  547. // axidma_c1_clr
  548. typedef union {
  549. uint32_t v;
  550. struct
  551. {
  552. uint32_t run_clr : 1; // [0]
  553. uint32_t __31_1 : 31; // [31:1]
  554. } b;
  555. } REG_CP_AXIDMA_AXIDMA_C1_CLR_T;
  556. // axidma_c2_conf
  557. typedef union {
  558. uint32_t v;
  559. struct
  560. {
  561. uint32_t start : 1; // [0]
  562. uint32_t data_type : 2; // [2:1]
  563. uint32_t syn_irq : 1; // [3]
  564. uint32_t irq_f : 1; // [4]
  565. uint32_t irq_t : 1; // [5]
  566. uint32_t saddr_fix : 1; // [6]
  567. uint32_t daddr_fix : 1; // [7]
  568. uint32_t force_trans : 1; // [8]
  569. uint32_t __9_9 : 1; // [9]
  570. uint32_t count_sel : 1; // [10]
  571. uint32_t __11_11 : 1; // [11]
  572. uint32_t saddr_turnaround : 1; // [12]
  573. uint32_t daddr_turnaround : 1; // [13]
  574. uint32_t security_en : 1; // [14]
  575. uint32_t err_int_en : 1; // [15]
  576. uint32_t __31_16 : 16; // [31:16]
  577. } b;
  578. } REG_CP_AXIDMA_AXIDMA_C2_CONF_T;
  579. // axidma_c2_map
  580. typedef union {
  581. uint32_t v;
  582. struct
  583. {
  584. uint32_t req_source : 5; // [4:0]
  585. uint32_t __7_5 : 3; // [7:5]
  586. uint32_t ack_map : 5; // [12:8]
  587. uint32_t __31_13 : 19; // [31:13]
  588. } b;
  589. } REG_CP_AXIDMA_AXIDMA_C2_MAP_T;
  590. // axidma_c2_count
  591. typedef union {
  592. uint32_t v;
  593. struct
  594. {
  595. uint32_t count : 24; // [23:0]
  596. uint32_t __31_24 : 8; // [31:24]
  597. } b;
  598. } REG_CP_AXIDMA_AXIDMA_C2_COUNT_T;
  599. // axidma_c2_countp
  600. typedef union {
  601. uint32_t v;
  602. struct
  603. {
  604. uint32_t countp : 16; // [15:0]
  605. uint32_t __31_16 : 16; // [31:16]
  606. } b;
  607. } REG_CP_AXIDMA_AXIDMA_C2_COUNTP_T;
  608. // axidma_c2_status
  609. typedef union {
  610. uint32_t v;
  611. struct
  612. {
  613. uint32_t run : 1; // [0], write clear
  614. uint32_t count_finish_int : 1; // [1], write clear
  615. uint32_t countp_finish_int : 1; // [2], write clear
  616. uint32_t sg_finish_int : 1; // [3], write clear
  617. uint32_t sg_count : 16; // [19:4], write clear
  618. uint32_t sg_suspend_int : 1; // [20], write clear
  619. uint32_t count_finish_sta : 1; // [21], write clear
  620. uint32_t countp_finish_sta : 1; // [22], write clear
  621. uint32_t sg_finish_sta : 1; // [23], write clear
  622. uint32_t sg_suspend_sta : 1; // [24], write clear
  623. uint32_t resp_err : 1; // [25], write clear
  624. uint32_t resp_err_int : 1; // [26], write clear
  625. uint32_t __31_27 : 5; // [31:27]
  626. } b;
  627. } REG_CP_AXIDMA_AXIDMA_C2_STATUS_T;
  628. // axidma_c2_sgconf
  629. typedef union {
  630. uint32_t v;
  631. struct
  632. {
  633. uint32_t sg_en : 1; // [0], write clear
  634. uint32_t sg_finish_ie : 1; // [1]
  635. uint32_t sg_suspend_ie : 1; // [2]
  636. uint32_t desc_rd_ctrl : 1; // [3]
  637. uint32_t sg_num : 16; // [19:4]
  638. uint32_t __31_20 : 12; // [31:20]
  639. } b;
  640. } REG_CP_AXIDMA_AXIDMA_C2_SGCONF_T;
  641. // axidma_c2_set
  642. typedef union {
  643. uint32_t v;
  644. struct
  645. {
  646. uint32_t run_set : 1; // [0]
  647. uint32_t __31_1 : 31; // [31:1]
  648. } b;
  649. } REG_CP_AXIDMA_AXIDMA_C2_SET_T;
  650. // axidma_c2_clr
  651. typedef union {
  652. uint32_t v;
  653. struct
  654. {
  655. uint32_t run_clr : 1; // [0]
  656. uint32_t __31_1 : 31; // [31:1]
  657. } b;
  658. } REG_CP_AXIDMA_AXIDMA_C2_CLR_T;
  659. // axidma_c3_conf
  660. typedef union {
  661. uint32_t v;
  662. struct
  663. {
  664. uint32_t start : 1; // [0]
  665. uint32_t data_type : 2; // [2:1]
  666. uint32_t syn_irq : 1; // [3]
  667. uint32_t irq_f : 1; // [4]
  668. uint32_t irq_t : 1; // [5]
  669. uint32_t saddr_fix : 1; // [6]
  670. uint32_t daddr_fix : 1; // [7]
  671. uint32_t force_trans : 1; // [8]
  672. uint32_t __9_9 : 1; // [9]
  673. uint32_t count_sel : 1; // [10]
  674. uint32_t __11_11 : 1; // [11]
  675. uint32_t saddr_turnaround : 1; // [12]
  676. uint32_t daddr_turnaround : 1; // [13]
  677. uint32_t security_en : 1; // [14]
  678. uint32_t err_int_en : 1; // [15]
  679. uint32_t __31_16 : 16; // [31:16]
  680. } b;
  681. } REG_CP_AXIDMA_AXIDMA_C3_CONF_T;
  682. // axidma_c3_map
  683. typedef union {
  684. uint32_t v;
  685. struct
  686. {
  687. uint32_t req_source : 5; // [4:0]
  688. uint32_t __7_5 : 3; // [7:5]
  689. uint32_t ack_map : 5; // [12:8]
  690. uint32_t __31_13 : 19; // [31:13]
  691. } b;
  692. } REG_CP_AXIDMA_AXIDMA_C3_MAP_T;
  693. // axidma_c3_count
  694. typedef union {
  695. uint32_t v;
  696. struct
  697. {
  698. uint32_t count : 24; // [23:0]
  699. uint32_t __31_24 : 8; // [31:24]
  700. } b;
  701. } REG_CP_AXIDMA_AXIDMA_C3_COUNT_T;
  702. // axidma_c3_countp
  703. typedef union {
  704. uint32_t v;
  705. struct
  706. {
  707. uint32_t countp : 16; // [15:0]
  708. uint32_t __31_16 : 16; // [31:16]
  709. } b;
  710. } REG_CP_AXIDMA_AXIDMA_C3_COUNTP_T;
  711. // axidma_c3_status
  712. typedef union {
  713. uint32_t v;
  714. struct
  715. {
  716. uint32_t run : 1; // [0], write clear
  717. uint32_t count_finish_int : 1; // [1], write clear
  718. uint32_t countp_finish_int : 1; // [2], write clear
  719. uint32_t sg_finish_int : 1; // [3], write clear
  720. uint32_t sg_count : 16; // [19:4], write clear
  721. uint32_t sg_suspend_int : 1; // [20], write clear
  722. uint32_t count_finish_sta : 1; // [21], write clear
  723. uint32_t countp_finish_sta : 1; // [22], write clear
  724. uint32_t sg_finish_sta : 1; // [23], write clear
  725. uint32_t sg_suspend_sta : 1; // [24], write clear
  726. uint32_t resp_err : 1; // [25], write clear
  727. uint32_t resp_err_int : 1; // [26], write clear
  728. uint32_t __31_27 : 5; // [31:27]
  729. } b;
  730. } REG_CP_AXIDMA_AXIDMA_C3_STATUS_T;
  731. // axidma_c3_sgconf
  732. typedef union {
  733. uint32_t v;
  734. struct
  735. {
  736. uint32_t sg_en : 1; // [0], write clear
  737. uint32_t sg_finish_ie : 1; // [1]
  738. uint32_t sg_suspend_ie : 1; // [2]
  739. uint32_t desc_rd_ctrl : 1; // [3]
  740. uint32_t sg_num : 16; // [19:4]
  741. uint32_t __31_20 : 12; // [31:20]
  742. } b;
  743. } REG_CP_AXIDMA_AXIDMA_C3_SGCONF_T;
  744. // axidma_c3_set
  745. typedef union {
  746. uint32_t v;
  747. struct
  748. {
  749. uint32_t run_set : 1; // [0]
  750. uint32_t __31_1 : 31; // [31:1]
  751. } b;
  752. } REG_CP_AXIDMA_AXIDMA_C3_SET_T;
  753. // axidma_c3_clr
  754. typedef union {
  755. uint32_t v;
  756. struct
  757. {
  758. uint32_t run_clr : 1; // [0]
  759. uint32_t __31_1 : 31; // [31:1]
  760. } b;
  761. } REG_CP_AXIDMA_AXIDMA_C3_CLR_T;
  762. // axidma_c4_conf
  763. typedef union {
  764. uint32_t v;
  765. struct
  766. {
  767. uint32_t start : 1; // [0]
  768. uint32_t data_type : 2; // [2:1]
  769. uint32_t syn_irq : 1; // [3]
  770. uint32_t irq_f : 1; // [4]
  771. uint32_t irq_t : 1; // [5]
  772. uint32_t saddr_fix : 1; // [6]
  773. uint32_t daddr_fix : 1; // [7]
  774. uint32_t force_trans : 1; // [8]
  775. uint32_t __9_9 : 1; // [9]
  776. uint32_t count_sel : 1; // [10]
  777. uint32_t __11_11 : 1; // [11]
  778. uint32_t saddr_turnaround : 1; // [12]
  779. uint32_t daddr_turnaround : 1; // [13]
  780. uint32_t security_en : 1; // [14]
  781. uint32_t err_int_en : 1; // [15]
  782. uint32_t __31_16 : 16; // [31:16]
  783. } b;
  784. } REG_CP_AXIDMA_AXIDMA_C4_CONF_T;
  785. // axidma_c4_map
  786. typedef union {
  787. uint32_t v;
  788. struct
  789. {
  790. uint32_t req_source : 5; // [4:0]
  791. uint32_t __7_5 : 3; // [7:5]
  792. uint32_t ack_map : 5; // [12:8]
  793. uint32_t __31_13 : 19; // [31:13]
  794. } b;
  795. } REG_CP_AXIDMA_AXIDMA_C4_MAP_T;
  796. // axidma_c4_count
  797. typedef union {
  798. uint32_t v;
  799. struct
  800. {
  801. uint32_t count : 24; // [23:0]
  802. uint32_t __31_24 : 8; // [31:24]
  803. } b;
  804. } REG_CP_AXIDMA_AXIDMA_C4_COUNT_T;
  805. // axidma_c4_countp
  806. typedef union {
  807. uint32_t v;
  808. struct
  809. {
  810. uint32_t countp : 16; // [15:0]
  811. uint32_t __31_16 : 16; // [31:16]
  812. } b;
  813. } REG_CP_AXIDMA_AXIDMA_C4_COUNTP_T;
  814. // axidma_c4_status
  815. typedef union {
  816. uint32_t v;
  817. struct
  818. {
  819. uint32_t run : 1; // [0], write clear
  820. uint32_t count_finish_int : 1; // [1], write clear
  821. uint32_t countp_finish_int : 1; // [2], write clear
  822. uint32_t sg_finish_int : 1; // [3], write clear
  823. uint32_t sg_count : 16; // [19:4], write clear
  824. uint32_t sg_suspend_int : 1; // [20], write clear
  825. uint32_t count_finish_sta : 1; // [21], write clear
  826. uint32_t countp_finish_sta : 1; // [22], write clear
  827. uint32_t sg_finish_sta : 1; // [23], write clear
  828. uint32_t sg_suspend_sta : 1; // [24], write clear
  829. uint32_t resp_err : 1; // [25], write clear
  830. uint32_t resp_err_int : 1; // [26], write clear
  831. uint32_t __31_27 : 5; // [31:27]
  832. } b;
  833. } REG_CP_AXIDMA_AXIDMA_C4_STATUS_T;
  834. // axidma_c4_sgconf
  835. typedef union {
  836. uint32_t v;
  837. struct
  838. {
  839. uint32_t sg_en : 1; // [0], write clear
  840. uint32_t sg_finish_ie : 1; // [1]
  841. uint32_t sg_suspend_ie : 1; // [2]
  842. uint32_t desc_rd_ctrl : 1; // [3]
  843. uint32_t sg_num : 16; // [19:4]
  844. uint32_t __31_20 : 12; // [31:20]
  845. } b;
  846. } REG_CP_AXIDMA_AXIDMA_C4_SGCONF_T;
  847. // axidma_c4_set
  848. typedef union {
  849. uint32_t v;
  850. struct
  851. {
  852. uint32_t run_set : 1; // [0]
  853. uint32_t __31_1 : 31; // [31:1]
  854. } b;
  855. } REG_CP_AXIDMA_AXIDMA_C4_SET_T;
  856. // axidma_c4_clr
  857. typedef union {
  858. uint32_t v;
  859. struct
  860. {
  861. uint32_t run_clr : 1; // [0]
  862. uint32_t __31_1 : 31; // [31:1]
  863. } b;
  864. } REG_CP_AXIDMA_AXIDMA_C4_CLR_T;
  865. // axidma_c5_conf
  866. typedef union {
  867. uint32_t v;
  868. struct
  869. {
  870. uint32_t start : 1; // [0]
  871. uint32_t data_type : 2; // [2:1]
  872. uint32_t syn_irq : 1; // [3]
  873. uint32_t irq_f : 1; // [4]
  874. uint32_t irq_t : 1; // [5]
  875. uint32_t saddr_fix : 1; // [6]
  876. uint32_t daddr_fix : 1; // [7]
  877. uint32_t force_trans : 1; // [8]
  878. uint32_t __9_9 : 1; // [9]
  879. uint32_t count_sel : 1; // [10]
  880. uint32_t __11_11 : 1; // [11]
  881. uint32_t saddr_turnaround : 1; // [12]
  882. uint32_t daddr_turnaround : 1; // [13]
  883. uint32_t security_en : 1; // [14]
  884. uint32_t err_int_en : 1; // [15]
  885. uint32_t __31_16 : 16; // [31:16]
  886. } b;
  887. } REG_CP_AXIDMA_AXIDMA_C5_CONF_T;
  888. // axidma_c5_map
  889. typedef union {
  890. uint32_t v;
  891. struct
  892. {
  893. uint32_t req_source : 5; // [4:0]
  894. uint32_t __7_5 : 3; // [7:5]
  895. uint32_t ack_map : 5; // [12:8]
  896. uint32_t __31_13 : 19; // [31:13]
  897. } b;
  898. } REG_CP_AXIDMA_AXIDMA_C5_MAP_T;
  899. // axidma_c5_count
  900. typedef union {
  901. uint32_t v;
  902. struct
  903. {
  904. uint32_t count : 24; // [23:0]
  905. uint32_t __31_24 : 8; // [31:24]
  906. } b;
  907. } REG_CP_AXIDMA_AXIDMA_C5_COUNT_T;
  908. // axidma_c5_countp
  909. typedef union {
  910. uint32_t v;
  911. struct
  912. {
  913. uint32_t countp : 16; // [15:0]
  914. uint32_t __31_16 : 16; // [31:16]
  915. } b;
  916. } REG_CP_AXIDMA_AXIDMA_C5_COUNTP_T;
  917. // axidma_c5_status
  918. typedef union {
  919. uint32_t v;
  920. struct
  921. {
  922. uint32_t run : 1; // [0], write clear
  923. uint32_t count_finish_int : 1; // [1], write clear
  924. uint32_t countp_finish_int : 1; // [2], write clear
  925. uint32_t sg_finish_int : 1; // [3], write clear
  926. uint32_t sg_count : 16; // [19:4], write clear
  927. uint32_t sg_suspend_int : 1; // [20], write clear
  928. uint32_t count_finish_sta : 1; // [21], write clear
  929. uint32_t countp_finish_sta : 1; // [22], write clear
  930. uint32_t sg_finish_sta : 1; // [23], write clear
  931. uint32_t sg_suspend_sta : 1; // [24], write clear
  932. uint32_t resp_err : 1; // [25], write clear
  933. uint32_t resp_err_int : 1; // [26], write clear
  934. uint32_t __31_27 : 5; // [31:27]
  935. } b;
  936. } REG_CP_AXIDMA_AXIDMA_C5_STATUS_T;
  937. // axidma_c5_sgconf
  938. typedef union {
  939. uint32_t v;
  940. struct
  941. {
  942. uint32_t sg_en : 1; // [0], write clear
  943. uint32_t sg_finish_ie : 1; // [1]
  944. uint32_t sg_suspend_ie : 1; // [2]
  945. uint32_t desc_rd_ctrl : 1; // [3]
  946. uint32_t sg_num : 16; // [19:4]
  947. uint32_t __31_20 : 12; // [31:20]
  948. } b;
  949. } REG_CP_AXIDMA_AXIDMA_C5_SGCONF_T;
  950. // axidma_c5_set
  951. typedef union {
  952. uint32_t v;
  953. struct
  954. {
  955. uint32_t run_set : 1; // [0]
  956. uint32_t __31_1 : 31; // [31:1]
  957. } b;
  958. } REG_CP_AXIDMA_AXIDMA_C5_SET_T;
  959. // axidma_c5_clr
  960. typedef union {
  961. uint32_t v;
  962. struct
  963. {
  964. uint32_t run_clr : 1; // [0]
  965. uint32_t __31_1 : 31; // [31:1]
  966. } b;
  967. } REG_CP_AXIDMA_AXIDMA_C5_CLR_T;
  968. // axidma_c6_conf
  969. typedef union {
  970. uint32_t v;
  971. struct
  972. {
  973. uint32_t start : 1; // [0]
  974. uint32_t data_type : 2; // [2:1]
  975. uint32_t syn_irq : 1; // [3]
  976. uint32_t irq_f : 1; // [4]
  977. uint32_t irq_t : 1; // [5]
  978. uint32_t saddr_fix : 1; // [6]
  979. uint32_t daddr_fix : 1; // [7]
  980. uint32_t force_trans : 1; // [8]
  981. uint32_t __9_9 : 1; // [9]
  982. uint32_t count_sel : 1; // [10]
  983. uint32_t __11_11 : 1; // [11]
  984. uint32_t saddr_turnaround : 1; // [12]
  985. uint32_t daddr_turnaround : 1; // [13]
  986. uint32_t security_en : 1; // [14]
  987. uint32_t err_int_en : 1; // [15]
  988. uint32_t __31_16 : 16; // [31:16]
  989. } b;
  990. } REG_CP_AXIDMA_AXIDMA_C6_CONF_T;
  991. // axidma_c6_map
  992. typedef union {
  993. uint32_t v;
  994. struct
  995. {
  996. uint32_t req_source : 5; // [4:0]
  997. uint32_t __7_5 : 3; // [7:5]
  998. uint32_t ack_map : 5; // [12:8]
  999. uint32_t __31_13 : 19; // [31:13]
  1000. } b;
  1001. } REG_CP_AXIDMA_AXIDMA_C6_MAP_T;
  1002. // axidma_c6_count
  1003. typedef union {
  1004. uint32_t v;
  1005. struct
  1006. {
  1007. uint32_t count : 24; // [23:0]
  1008. uint32_t __31_24 : 8; // [31:24]
  1009. } b;
  1010. } REG_CP_AXIDMA_AXIDMA_C6_COUNT_T;
  1011. // axidma_c6_countp
  1012. typedef union {
  1013. uint32_t v;
  1014. struct
  1015. {
  1016. uint32_t countp : 16; // [15:0]
  1017. uint32_t __31_16 : 16; // [31:16]
  1018. } b;
  1019. } REG_CP_AXIDMA_AXIDMA_C6_COUNTP_T;
  1020. // axidma_c6_status
  1021. typedef union {
  1022. uint32_t v;
  1023. struct
  1024. {
  1025. uint32_t run : 1; // [0], write clear
  1026. uint32_t count_finish_int : 1; // [1], write clear
  1027. uint32_t countp_finish_int : 1; // [2], write clear
  1028. uint32_t sg_finish_int : 1; // [3], write clear
  1029. uint32_t sg_count : 16; // [19:4], write clear
  1030. uint32_t sg_suspend_int : 1; // [20], write clear
  1031. uint32_t count_finish_sta : 1; // [21], write clear
  1032. uint32_t countp_finish_sta : 1; // [22], write clear
  1033. uint32_t sg_finish_sta : 1; // [23], write clear
  1034. uint32_t sg_suspend_sta : 1; // [24], write clear
  1035. uint32_t resp_err : 1; // [25], write clear
  1036. uint32_t resp_err_int : 1; // [26], write clear
  1037. uint32_t __31_27 : 5; // [31:27]
  1038. } b;
  1039. } REG_CP_AXIDMA_AXIDMA_C6_STATUS_T;
  1040. // axidma_c6_sgconf
  1041. typedef union {
  1042. uint32_t v;
  1043. struct
  1044. {
  1045. uint32_t sg_en : 1; // [0], write clear
  1046. uint32_t sg_finish_ie : 1; // [1]
  1047. uint32_t sg_suspend_ie : 1; // [2]
  1048. uint32_t desc_rd_ctrl : 1; // [3]
  1049. uint32_t sg_num : 16; // [19:4]
  1050. uint32_t __31_20 : 12; // [31:20]
  1051. } b;
  1052. } REG_CP_AXIDMA_AXIDMA_C6_SGCONF_T;
  1053. // axidma_c6_set
  1054. typedef union {
  1055. uint32_t v;
  1056. struct
  1057. {
  1058. uint32_t run_set : 1; // [0]
  1059. uint32_t __31_1 : 31; // [31:1]
  1060. } b;
  1061. } REG_CP_AXIDMA_AXIDMA_C6_SET_T;
  1062. // axidma_c6_clr
  1063. typedef union {
  1064. uint32_t v;
  1065. struct
  1066. {
  1067. uint32_t run_clr : 1; // [0]
  1068. uint32_t __31_1 : 31; // [31:1]
  1069. } b;
  1070. } REG_CP_AXIDMA_AXIDMA_C6_CLR_T;
  1071. // axidma_c7_conf
  1072. typedef union {
  1073. uint32_t v;
  1074. struct
  1075. {
  1076. uint32_t start : 1; // [0]
  1077. uint32_t data_type : 2; // [2:1]
  1078. uint32_t syn_irq : 1; // [3]
  1079. uint32_t irq_f : 1; // [4]
  1080. uint32_t irq_t : 1; // [5]
  1081. uint32_t saddr_fix : 1; // [6]
  1082. uint32_t daddr_fix : 1; // [7]
  1083. uint32_t force_trans : 1; // [8]
  1084. uint32_t __9_9 : 1; // [9]
  1085. uint32_t count_sel : 1; // [10]
  1086. uint32_t __11_11 : 1; // [11]
  1087. uint32_t saddr_turnaround : 1; // [12]
  1088. uint32_t daddr_turnaround : 1; // [13]
  1089. uint32_t security_en : 1; // [14]
  1090. uint32_t err_int_en : 1; // [15]
  1091. uint32_t __31_16 : 16; // [31:16]
  1092. } b;
  1093. } REG_CP_AXIDMA_AXIDMA_C7_CONF_T;
  1094. // axidma_c7_map
  1095. typedef union {
  1096. uint32_t v;
  1097. struct
  1098. {
  1099. uint32_t req_source : 5; // [4:0]
  1100. uint32_t __7_5 : 3; // [7:5]
  1101. uint32_t ack_map : 5; // [12:8]
  1102. uint32_t __31_13 : 19; // [31:13]
  1103. } b;
  1104. } REG_CP_AXIDMA_AXIDMA_C7_MAP_T;
  1105. // axidma_c7_count
  1106. typedef union {
  1107. uint32_t v;
  1108. struct
  1109. {
  1110. uint32_t count : 24; // [23:0]
  1111. uint32_t __31_24 : 8; // [31:24]
  1112. } b;
  1113. } REG_CP_AXIDMA_AXIDMA_C7_COUNT_T;
  1114. // axidma_c7_countp
  1115. typedef union {
  1116. uint32_t v;
  1117. struct
  1118. {
  1119. uint32_t countp : 16; // [15:0]
  1120. uint32_t __31_16 : 16; // [31:16]
  1121. } b;
  1122. } REG_CP_AXIDMA_AXIDMA_C7_COUNTP_T;
  1123. // axidma_c7_status
  1124. typedef union {
  1125. uint32_t v;
  1126. struct
  1127. {
  1128. uint32_t run : 1; // [0], write clear
  1129. uint32_t count_finish_int : 1; // [1], write clear
  1130. uint32_t countp_finish_int : 1; // [2], write clear
  1131. uint32_t sg_finish_int : 1; // [3], write clear
  1132. uint32_t sg_count : 16; // [19:4], write clear
  1133. uint32_t sg_suspend_int : 1; // [20], write clear
  1134. uint32_t count_finish_sta : 1; // [21], write clear
  1135. uint32_t countp_finish_sta : 1; // [22], write clear
  1136. uint32_t sg_finish_sta : 1; // [23], write clear
  1137. uint32_t sg_suspend_sta : 1; // [24], write clear
  1138. uint32_t resp_err : 1; // [25], write clear
  1139. uint32_t resp_err_int : 1; // [26], write clear
  1140. uint32_t __31_27 : 5; // [31:27]
  1141. } b;
  1142. } REG_CP_AXIDMA_AXIDMA_C7_STATUS_T;
  1143. // axidma_c7_sgconf
  1144. typedef union {
  1145. uint32_t v;
  1146. struct
  1147. {
  1148. uint32_t sg_en : 1; // [0], write clear
  1149. uint32_t sg_finish_ie : 1; // [1]
  1150. uint32_t sg_suspend_ie : 1; // [2]
  1151. uint32_t desc_rd_ctrl : 1; // [3]
  1152. uint32_t sg_num : 16; // [19:4]
  1153. uint32_t __31_20 : 12; // [31:20]
  1154. } b;
  1155. } REG_CP_AXIDMA_AXIDMA_C7_SGCONF_T;
  1156. // axidma_c7_set
  1157. typedef union {
  1158. uint32_t v;
  1159. struct
  1160. {
  1161. uint32_t run_set : 1; // [0]
  1162. uint32_t __31_1 : 31; // [31:1]
  1163. } b;
  1164. } REG_CP_AXIDMA_AXIDMA_C7_SET_T;
  1165. // axidma_c7_clr
  1166. typedef union {
  1167. uint32_t v;
  1168. struct
  1169. {
  1170. uint32_t run_clr : 1; // [0]
  1171. uint32_t __31_1 : 31; // [31:1]
  1172. } b;
  1173. } REG_CP_AXIDMA_AXIDMA_C7_CLR_T;
  1174. // axidma_c8_conf
  1175. typedef union {
  1176. uint32_t v;
  1177. struct
  1178. {
  1179. uint32_t start : 1; // [0]
  1180. uint32_t data_type : 2; // [2:1]
  1181. uint32_t syn_irq : 1; // [3]
  1182. uint32_t irq_f : 1; // [4]
  1183. uint32_t irq_t : 1; // [5]
  1184. uint32_t saddr_fix : 1; // [6]
  1185. uint32_t daddr_fix : 1; // [7]
  1186. uint32_t force_trans : 1; // [8]
  1187. uint32_t __9_9 : 1; // [9]
  1188. uint32_t count_sel : 1; // [10]
  1189. uint32_t __11_11 : 1; // [11]
  1190. uint32_t saddr_turnaround : 1; // [12]
  1191. uint32_t daddr_turnaround : 1; // [13]
  1192. uint32_t security_en : 1; // [14]
  1193. uint32_t err_int_en : 1; // [15]
  1194. uint32_t __31_16 : 16; // [31:16]
  1195. } b;
  1196. } REG_CP_AXIDMA_AXIDMA_C8_CONF_T;
  1197. // axidma_c8_map
  1198. typedef union {
  1199. uint32_t v;
  1200. struct
  1201. {
  1202. uint32_t req_source : 5; // [4:0]
  1203. uint32_t __7_5 : 3; // [7:5]
  1204. uint32_t ack_map : 5; // [12:8]
  1205. uint32_t __31_13 : 19; // [31:13]
  1206. } b;
  1207. } REG_CP_AXIDMA_AXIDMA_C8_MAP_T;
  1208. // axidma_c8_count
  1209. typedef union {
  1210. uint32_t v;
  1211. struct
  1212. {
  1213. uint32_t count : 24; // [23:0]
  1214. uint32_t __31_24 : 8; // [31:24]
  1215. } b;
  1216. } REG_CP_AXIDMA_AXIDMA_C8_COUNT_T;
  1217. // axidma_c8_countp
  1218. typedef union {
  1219. uint32_t v;
  1220. struct
  1221. {
  1222. uint32_t countp : 16; // [15:0]
  1223. uint32_t __31_16 : 16; // [31:16]
  1224. } b;
  1225. } REG_CP_AXIDMA_AXIDMA_C8_COUNTP_T;
  1226. // axidma_c8_status
  1227. typedef union {
  1228. uint32_t v;
  1229. struct
  1230. {
  1231. uint32_t run : 1; // [0], write clear
  1232. uint32_t count_finish_int : 1; // [1], write clear
  1233. uint32_t countp_finish_int : 1; // [2], write clear
  1234. uint32_t sg_finish_int : 1; // [3], write clear
  1235. uint32_t sg_count : 16; // [19:4], write clear
  1236. uint32_t sg_suspend_int : 1; // [20], write clear
  1237. uint32_t count_finish_sta : 1; // [21], write clear
  1238. uint32_t countp_finish_sta : 1; // [22], write clear
  1239. uint32_t sg_finish_sta : 1; // [23], write clear
  1240. uint32_t sg_suspend_sta : 1; // [24], write clear
  1241. uint32_t resp_err : 1; // [25], write clear
  1242. uint32_t resp_err_int : 1; // [26], write clear
  1243. uint32_t __31_27 : 5; // [31:27]
  1244. } b;
  1245. } REG_CP_AXIDMA_AXIDMA_C8_STATUS_T;
  1246. // axidma_c8_sgconf
  1247. typedef union {
  1248. uint32_t v;
  1249. struct
  1250. {
  1251. uint32_t sg_en : 1; // [0], write clear
  1252. uint32_t sg_finish_ie : 1; // [1]
  1253. uint32_t sg_suspend_ie : 1; // [2]
  1254. uint32_t desc_rd_ctrl : 1; // [3]
  1255. uint32_t sg_num : 16; // [19:4]
  1256. uint32_t __31_20 : 12; // [31:20]
  1257. } b;
  1258. } REG_CP_AXIDMA_AXIDMA_C8_SGCONF_T;
  1259. // axidma_c8_set
  1260. typedef union {
  1261. uint32_t v;
  1262. struct
  1263. {
  1264. uint32_t run_set : 1; // [0]
  1265. uint32_t __31_1 : 31; // [31:1]
  1266. } b;
  1267. } REG_CP_AXIDMA_AXIDMA_C8_SET_T;
  1268. // axidma_c8_clr
  1269. typedef union {
  1270. uint32_t v;
  1271. struct
  1272. {
  1273. uint32_t run_clr : 1; // [0]
  1274. uint32_t __31_1 : 31; // [31:1]
  1275. } b;
  1276. } REG_CP_AXIDMA_AXIDMA_C8_CLR_T;
  1277. // axidma_c9_conf
  1278. typedef union {
  1279. uint32_t v;
  1280. struct
  1281. {
  1282. uint32_t start : 1; // [0]
  1283. uint32_t data_type : 2; // [2:1]
  1284. uint32_t syn_irq : 1; // [3]
  1285. uint32_t irq_f : 1; // [4]
  1286. uint32_t irq_t : 1; // [5]
  1287. uint32_t saddr_fix : 1; // [6]
  1288. uint32_t daddr_fix : 1; // [7]
  1289. uint32_t force_trans : 1; // [8]
  1290. uint32_t __9_9 : 1; // [9]
  1291. uint32_t count_sel : 1; // [10]
  1292. uint32_t __11_11 : 1; // [11]
  1293. uint32_t saddr_turnaround : 1; // [12]
  1294. uint32_t daddr_turnaround : 1; // [13]
  1295. uint32_t security_en : 1; // [14]
  1296. uint32_t err_int_en : 1; // [15]
  1297. uint32_t __31_16 : 16; // [31:16]
  1298. } b;
  1299. } REG_CP_AXIDMA_AXIDMA_C9_CONF_T;
  1300. // axidma_c9_map
  1301. typedef union {
  1302. uint32_t v;
  1303. struct
  1304. {
  1305. uint32_t req_source : 5; // [4:0]
  1306. uint32_t __7_5 : 3; // [7:5]
  1307. uint32_t ack_map : 5; // [12:8]
  1308. uint32_t __31_13 : 19; // [31:13]
  1309. } b;
  1310. } REG_CP_AXIDMA_AXIDMA_C9_MAP_T;
  1311. // axidma_c9_count
  1312. typedef union {
  1313. uint32_t v;
  1314. struct
  1315. {
  1316. uint32_t count : 24; // [23:0]
  1317. uint32_t __31_24 : 8; // [31:24]
  1318. } b;
  1319. } REG_CP_AXIDMA_AXIDMA_C9_COUNT_T;
  1320. // axidma_c9_countp
  1321. typedef union {
  1322. uint32_t v;
  1323. struct
  1324. {
  1325. uint32_t countp : 16; // [15:0]
  1326. uint32_t __31_16 : 16; // [31:16]
  1327. } b;
  1328. } REG_CP_AXIDMA_AXIDMA_C9_COUNTP_T;
  1329. // axidma_c9_status
  1330. typedef union {
  1331. uint32_t v;
  1332. struct
  1333. {
  1334. uint32_t run : 1; // [0], write clear
  1335. uint32_t count_finish_int : 1; // [1], write clear
  1336. uint32_t countp_finish_int : 1; // [2], write clear
  1337. uint32_t sg_finish_int : 1; // [3], write clear
  1338. uint32_t sg_count : 16; // [19:4], write clear
  1339. uint32_t sg_suspend_int : 1; // [20], write clear
  1340. uint32_t count_finish_sta : 1; // [21], write clear
  1341. uint32_t countp_finish_sta : 1; // [22], write clear
  1342. uint32_t sg_finish_sta : 1; // [23], write clear
  1343. uint32_t sg_suspend_sta : 1; // [24], write clear
  1344. uint32_t resp_err : 1; // [25], write clear
  1345. uint32_t resp_err_int : 1; // [26], write clear
  1346. uint32_t __31_27 : 5; // [31:27]
  1347. } b;
  1348. } REG_CP_AXIDMA_AXIDMA_C9_STATUS_T;
  1349. // axidma_c9_sgconf
  1350. typedef union {
  1351. uint32_t v;
  1352. struct
  1353. {
  1354. uint32_t sg_en : 1; // [0], write clear
  1355. uint32_t sg_finish_ie : 1; // [1]
  1356. uint32_t sg_suspend_ie : 1; // [2]
  1357. uint32_t desc_rd_ctrl : 1; // [3]
  1358. uint32_t sg_num : 16; // [19:4]
  1359. uint32_t __31_20 : 12; // [31:20]
  1360. } b;
  1361. } REG_CP_AXIDMA_AXIDMA_C9_SGCONF_T;
  1362. // axidma_c9_set
  1363. typedef union {
  1364. uint32_t v;
  1365. struct
  1366. {
  1367. uint32_t run_set : 1; // [0]
  1368. uint32_t __31_1 : 31; // [31:1]
  1369. } b;
  1370. } REG_CP_AXIDMA_AXIDMA_C9_SET_T;
  1371. // axidma_c9_clr
  1372. typedef union {
  1373. uint32_t v;
  1374. struct
  1375. {
  1376. uint32_t run_clr : 1; // [0]
  1377. uint32_t __31_1 : 31; // [31:1]
  1378. } b;
  1379. } REG_CP_AXIDMA_AXIDMA_C9_CLR_T;
  1380. // axidma_c10_conf
  1381. typedef union {
  1382. uint32_t v;
  1383. struct
  1384. {
  1385. uint32_t start : 1; // [0]
  1386. uint32_t data_type : 2; // [2:1]
  1387. uint32_t syn_irq : 1; // [3]
  1388. uint32_t irq_f : 1; // [4]
  1389. uint32_t irq_t : 1; // [5]
  1390. uint32_t saddr_fix : 1; // [6]
  1391. uint32_t daddr_fix : 1; // [7]
  1392. uint32_t force_trans : 1; // [8]
  1393. uint32_t __9_9 : 1; // [9]
  1394. uint32_t count_sel : 1; // [10]
  1395. uint32_t __11_11 : 1; // [11]
  1396. uint32_t saddr_turnaround : 1; // [12]
  1397. uint32_t daddr_turnaround : 1; // [13]
  1398. uint32_t security_en : 1; // [14]
  1399. uint32_t err_int_en : 1; // [15]
  1400. uint32_t __31_16 : 16; // [31:16]
  1401. } b;
  1402. } REG_CP_AXIDMA_AXIDMA_C10_CONF_T;
  1403. // axidma_c10_map
  1404. typedef union {
  1405. uint32_t v;
  1406. struct
  1407. {
  1408. uint32_t req_source : 5; // [4:0]
  1409. uint32_t __7_5 : 3; // [7:5]
  1410. uint32_t ack_map : 5; // [12:8]
  1411. uint32_t __31_13 : 19; // [31:13]
  1412. } b;
  1413. } REG_CP_AXIDMA_AXIDMA_C10_MAP_T;
  1414. // axidma_c10_count
  1415. typedef union {
  1416. uint32_t v;
  1417. struct
  1418. {
  1419. uint32_t count : 24; // [23:0]
  1420. uint32_t __31_24 : 8; // [31:24]
  1421. } b;
  1422. } REG_CP_AXIDMA_AXIDMA_C10_COUNT_T;
  1423. // axidma_c10_countp
  1424. typedef union {
  1425. uint32_t v;
  1426. struct
  1427. {
  1428. uint32_t countp : 16; // [15:0]
  1429. uint32_t __31_16 : 16; // [31:16]
  1430. } b;
  1431. } REG_CP_AXIDMA_AXIDMA_C10_COUNTP_T;
  1432. // axidma_c10_status
  1433. typedef union {
  1434. uint32_t v;
  1435. struct
  1436. {
  1437. uint32_t run : 1; // [0], write clear
  1438. uint32_t count_finish_int : 1; // [1], write clear
  1439. uint32_t countp_finish_int : 1; // [2], write clear
  1440. uint32_t sg_finish_int : 1; // [3], write clear
  1441. uint32_t sg_count : 16; // [19:4], write clear
  1442. uint32_t sg_suspend_int : 1; // [20], write clear
  1443. uint32_t count_finish_sta : 1; // [21], write clear
  1444. uint32_t countp_finish_sta : 1; // [22], write clear
  1445. uint32_t sg_finish_sta : 1; // [23], write clear
  1446. uint32_t sg_suspend_sta : 1; // [24], write clear
  1447. uint32_t resp_err : 1; // [25], write clear
  1448. uint32_t resp_err_int : 1; // [26], write clear
  1449. uint32_t __31_27 : 5; // [31:27]
  1450. } b;
  1451. } REG_CP_AXIDMA_AXIDMA_C10_STATUS_T;
  1452. // axidma_c10_sgconf
  1453. typedef union {
  1454. uint32_t v;
  1455. struct
  1456. {
  1457. uint32_t sg_en : 1; // [0], write clear
  1458. uint32_t sg_finish_ie : 1; // [1]
  1459. uint32_t sg_suspend_ie : 1; // [2]
  1460. uint32_t desc_rd_ctrl : 1; // [3]
  1461. uint32_t sg_num : 16; // [19:4]
  1462. uint32_t __31_20 : 12; // [31:20]
  1463. } b;
  1464. } REG_CP_AXIDMA_AXIDMA_C10_SGCONF_T;
  1465. // axidma_c10_set
  1466. typedef union {
  1467. uint32_t v;
  1468. struct
  1469. {
  1470. uint32_t run_set : 1; // [0]
  1471. uint32_t __31_1 : 31; // [31:1]
  1472. } b;
  1473. } REG_CP_AXIDMA_AXIDMA_C10_SET_T;
  1474. // axidma_c10_clr
  1475. typedef union {
  1476. uint32_t v;
  1477. struct
  1478. {
  1479. uint32_t run_clr : 1; // [0]
  1480. uint32_t __31_1 : 31; // [31:1]
  1481. } b;
  1482. } REG_CP_AXIDMA_AXIDMA_C10_CLR_T;
  1483. // axidma_c11_conf
  1484. typedef union {
  1485. uint32_t v;
  1486. struct
  1487. {
  1488. uint32_t start : 1; // [0]
  1489. uint32_t data_type : 2; // [2:1]
  1490. uint32_t syn_irq : 1; // [3]
  1491. uint32_t irq_f : 1; // [4]
  1492. uint32_t irq_t : 1; // [5]
  1493. uint32_t saddr_fix : 1; // [6]
  1494. uint32_t daddr_fix : 1; // [7]
  1495. uint32_t force_trans : 1; // [8]
  1496. uint32_t __9_9 : 1; // [9]
  1497. uint32_t count_sel : 1; // [10]
  1498. uint32_t __11_11 : 1; // [11]
  1499. uint32_t saddr_turnaround : 1; // [12]
  1500. uint32_t daddr_turnaround : 1; // [13]
  1501. uint32_t security_en : 1; // [14]
  1502. uint32_t err_int_en : 1; // [15]
  1503. uint32_t __31_16 : 16; // [31:16]
  1504. } b;
  1505. } REG_CP_AXIDMA_AXIDMA_C11_CONF_T;
  1506. // axidma_c11_map
  1507. typedef union {
  1508. uint32_t v;
  1509. struct
  1510. {
  1511. uint32_t req_source : 5; // [4:0]
  1512. uint32_t __7_5 : 3; // [7:5]
  1513. uint32_t ack_map : 5; // [12:8]
  1514. uint32_t __31_13 : 19; // [31:13]
  1515. } b;
  1516. } REG_CP_AXIDMA_AXIDMA_C11_MAP_T;
  1517. // axidma_c11_count
  1518. typedef union {
  1519. uint32_t v;
  1520. struct
  1521. {
  1522. uint32_t count : 24; // [23:0]
  1523. uint32_t __31_24 : 8; // [31:24]
  1524. } b;
  1525. } REG_CP_AXIDMA_AXIDMA_C11_COUNT_T;
  1526. // axidma_c11_countp
  1527. typedef union {
  1528. uint32_t v;
  1529. struct
  1530. {
  1531. uint32_t countp : 16; // [15:0]
  1532. uint32_t __31_16 : 16; // [31:16]
  1533. } b;
  1534. } REG_CP_AXIDMA_AXIDMA_C11_COUNTP_T;
  1535. // axidma_c11_status
  1536. typedef union {
  1537. uint32_t v;
  1538. struct
  1539. {
  1540. uint32_t run : 1; // [0], write clear
  1541. uint32_t count_finish_int : 1; // [1], write clear
  1542. uint32_t countp_finish_int : 1; // [2], write clear
  1543. uint32_t sg_finish_int : 1; // [3], write clear
  1544. uint32_t sg_count : 16; // [19:4], write clear
  1545. uint32_t sg_suspend_int : 1; // [20], write clear
  1546. uint32_t count_finish_sta : 1; // [21], write clear
  1547. uint32_t countp_finish_sta : 1; // [22], write clear
  1548. uint32_t sg_finish_sta : 1; // [23], write clear
  1549. uint32_t sg_suspend_sta : 1; // [24], write clear
  1550. uint32_t resp_err : 1; // [25], write clear
  1551. uint32_t resp_err_int : 1; // [26], write clear
  1552. uint32_t __31_27 : 5; // [31:27]
  1553. } b;
  1554. } REG_CP_AXIDMA_AXIDMA_C11_STATUS_T;
  1555. // axidma_c11_sgconf
  1556. typedef union {
  1557. uint32_t v;
  1558. struct
  1559. {
  1560. uint32_t sg_en : 1; // [0], write clear
  1561. uint32_t sg_finish_ie : 1; // [1]
  1562. uint32_t sg_suspend_ie : 1; // [2]
  1563. uint32_t desc_rd_ctrl : 1; // [3]
  1564. uint32_t sg_num : 16; // [19:4]
  1565. uint32_t __31_20 : 12; // [31:20]
  1566. } b;
  1567. } REG_CP_AXIDMA_AXIDMA_C11_SGCONF_T;
  1568. // axidma_c11_set
  1569. typedef union {
  1570. uint32_t v;
  1571. struct
  1572. {
  1573. uint32_t run_set : 1; // [0]
  1574. uint32_t __31_1 : 31; // [31:1]
  1575. } b;
  1576. } REG_CP_AXIDMA_AXIDMA_C11_SET_T;
  1577. // axidma_c11_clr
  1578. typedef union {
  1579. uint32_t v;
  1580. struct
  1581. {
  1582. uint32_t run_clr : 1; // [0]
  1583. uint32_t __31_1 : 31; // [31:1]
  1584. } b;
  1585. } REG_CP_AXIDMA_AXIDMA_C11_CLR_T;
  1586. // axidma_conf
  1587. #define CP_AXIDMA_STOP (1 << 0)
  1588. #define CP_AXIDMA_STOP_IE (1 << 1)
  1589. #define CP_AXIDMA_PRIORITY (1 << 2)
  1590. #define CP_AXIDMA_OUTSTAND(n) (((n)&0x3) << 3)
  1591. #define CP_AXIDMA_RESP_ERR_STOP_EN (1 << 5)
  1592. #define CP_AXIDMA_GEN_REG_SECUIRTY_EN (1 << 6)
  1593. // axidma_delay
  1594. #define CP_AXIDMA_DELAY(n) (((n)&0xffff) << 0)
  1595. // axidma_status
  1596. #define CP_AXIDMA_CH_NUM(n) (((n)&0xf) << 0)
  1597. #define CP_AXIDMA_STOP_STATUS (1 << 4)
  1598. // axidma_irq_stat
  1599. #define CP_AXIDMA_CH0_IRQ (1 << 0)
  1600. #define CP_AXIDMA_CH1_IRQ (1 << 1)
  1601. #define CP_AXIDMA_CH2_IRQ (1 << 2)
  1602. #define CP_AXIDMA_CH3_IRQ (1 << 3)
  1603. #define CP_AXIDMA_CH4_IRQ (1 << 4)
  1604. #define CP_AXIDMA_CH5_IRQ (1 << 5)
  1605. #define CP_AXIDMA_CH6_IRQ (1 << 6)
  1606. #define CP_AXIDMA_CH7_IRQ (1 << 7)
  1607. #define CP_AXIDMA_CH8_IRQ (1 << 8)
  1608. #define CP_AXIDMA_CH9_IRQ (1 << 9)
  1609. #define CP_AXIDMA_CH10_IRQ (1 << 10)
  1610. #define CP_AXIDMA_CH11_IRQ (1 << 11)
  1611. #define CP_AXIDMA_RST_FIN_IRQ (1 << 12)
  1612. // axidma_arm_req_stat
  1613. #define CP_AXIDMA_IRQ0 (1 << 0)
  1614. #define CP_AXIDMA_IRQ1 (1 << 1)
  1615. #define CP_AXIDMA_IRQ2 (1 << 2)
  1616. #define CP_AXIDMA_IRQ3 (1 << 3)
  1617. #define CP_AXIDMA_IRQ4 (1 << 4)
  1618. #define CP_AXIDMA_IRQ5 (1 << 5)
  1619. #define CP_AXIDMA_IRQ6 (1 << 6)
  1620. #define CP_AXIDMA_IRQ7 (1 << 7)
  1621. #define CP_AXIDMA_IRQ8 (1 << 8)
  1622. #define CP_AXIDMA_IRQ9 (1 << 9)
  1623. #define CP_AXIDMA_IRQ10 (1 << 10)
  1624. #define CP_AXIDMA_IRQ11 (1 << 11)
  1625. #define CP_AXIDMA_IRQ12 (1 << 12)
  1626. #define CP_AXIDMA_IRQ13 (1 << 13)
  1627. #define CP_AXIDMA_IRQ14 (1 << 14)
  1628. #define CP_AXIDMA_IRQ15 (1 << 15)
  1629. #define CP_AXIDMA_IRQ16 (1 << 16)
  1630. #define CP_AXIDMA_IRQ17 (1 << 17)
  1631. #define CP_AXIDMA_IRQ18 (1 << 18)
  1632. #define CP_AXIDMA_IRQ19 (1 << 19)
  1633. #define CP_AXIDMA_IRQ20 (1 << 20)
  1634. #define CP_AXIDMA_IRQ21 (1 << 21)
  1635. #define CP_AXIDMA_IRQ22 (1 << 22)
  1636. #define CP_AXIDMA_IRQ23 (1 << 23)
  1637. // axidma_arm_ack_stat
  1638. #define CP_AXIDMA_ACK0 (1 << 0)
  1639. #define CP_AXIDMA_ACK1 (1 << 1)
  1640. #define CP_AXIDMA_ACK2 (1 << 2)
  1641. #define CP_AXIDMA_ACK3 (1 << 3)
  1642. #define CP_AXIDMA_ACK4 (1 << 4)
  1643. #define CP_AXIDMA_ACK5 (1 << 5)
  1644. #define CP_AXIDMA_ACK6 (1 << 6)
  1645. #define CP_AXIDMA_ACK7 (1 << 7)
  1646. #define CP_AXIDMA_ACK8 (1 << 8)
  1647. #define CP_AXIDMA_ACK9 (1 << 9)
  1648. #define CP_AXIDMA_ACK10 (1 << 10)
  1649. #define CP_AXIDMA_ACK11 (1 << 11)
  1650. #define CP_AXIDMA_ACK12 (1 << 12)
  1651. #define CP_AXIDMA_ACK13 (1 << 13)
  1652. #define CP_AXIDMA_ACK14 (1 << 14)
  1653. #define CP_AXIDMA_ACK15 (1 << 15)
  1654. #define CP_AXIDMA_ACK16 (1 << 16)
  1655. #define CP_AXIDMA_ACK17 (1 << 17)
  1656. #define CP_AXIDMA_ACK18 (1 << 18)
  1657. #define CP_AXIDMA_ACK19 (1 << 19)
  1658. #define CP_AXIDMA_ACK20 (1 << 20)
  1659. #define CP_AXIDMA_ACK21 (1 << 21)
  1660. #define CP_AXIDMA_ACK22 (1 << 22)
  1661. #define CP_AXIDMA_ACK23 (1 << 23)
  1662. // axidma_zsp_req_stat0
  1663. #define CP_AXIDMA_REQ0(n) (((n)&0x7) << 0)
  1664. #define CP_AXIDMA_REQ1(n) (((n)&0x7) << 4)
  1665. #define CP_AXIDMA_REQ2(n) (((n)&0x7) << 8)
  1666. #define CP_AXIDMA_REQ3(n) (((n)&0x7) << 12)
  1667. #define CP_AXIDMA_REQ4(n) (((n)&0x7) << 16)
  1668. #define CP_AXIDMA_REQ5(n) (((n)&0x7) << 20)
  1669. #define CP_AXIDMA_REQ6(n) (((n)&0x7) << 24)
  1670. #define CP_AXIDMA_REQ7(n) (((n)&0x7) << 28)
  1671. // axidma_zsp_req_stat1
  1672. #define CP_AXIDMA_REQ8(n) (((n)&0x7) << 0)
  1673. #define CP_AXIDMA_REQ9(n) (((n)&0x7) << 4)
  1674. #define CP_AXIDMA_REQ10(n) (((n)&0x7) << 8)
  1675. #define CP_AXIDMA_REQ11(n) (((n)&0x7) << 12)
  1676. // axidma_ch_irq_distr
  1677. #define CP_AXIDMA_CH0_IRQ_EN0 (1 << 0)
  1678. #define CP_AXIDMA_CH1_IRQ_EN0 (1 << 1)
  1679. #define CP_AXIDMA_CH2_IRQ_EN0 (1 << 2)
  1680. #define CP_AXIDMA_CH3_IRQ_EN0 (1 << 3)
  1681. #define CP_AXIDMA_CH4_IRQ_EN0 (1 << 4)
  1682. #define CP_AXIDMA_CH5_IRQ_EN0 (1 << 5)
  1683. #define CP_AXIDMA_CH6_IRQ_EN0 (1 << 6)
  1684. #define CP_AXIDMA_CH7_IRQ_EN0 (1 << 7)
  1685. #define CP_AXIDMA_CH8_IRQ_EN0 (1 << 8)
  1686. #define CP_AXIDMA_CH9_IRQ_EN0 (1 << 9)
  1687. #define CP_AXIDMA_CH10_IRQ_EN0 (1 << 10)
  1688. #define CP_AXIDMA_CH11_IRQ_EN0 (1 << 11)
  1689. // axidma_c0_conf
  1690. #define CP_AXIDMA_START (1 << 0)
  1691. #define CP_AXIDMA_DATA_TYPE(n) (((n)&0x3) << 1)
  1692. #define CP_AXIDMA_SYN_IRQ (1 << 3)
  1693. #define CP_AXIDMA_IRQ_F (1 << 4)
  1694. #define CP_AXIDMA_IRQ_T (1 << 5)
  1695. #define CP_AXIDMA_SADDR_FIX (1 << 6)
  1696. #define CP_AXIDMA_DADDR_FIX (1 << 7)
  1697. #define CP_AXIDMA_FORCE_TRANS (1 << 8)
  1698. #define CP_AXIDMA_COUNT_SEL (1 << 10)
  1699. #define CP_AXIDMA_SADDR_TURNAROUND (1 << 12)
  1700. #define CP_AXIDMA_DADDR_TURNAROUND (1 << 13)
  1701. #define CP_AXIDMA_SECURITY_EN (1 << 14)
  1702. #define CP_AXIDMA_ERR_INT_EN (1 << 15)
  1703. // axidma_c0_map
  1704. #define CP_AXIDMA_REQ_SOURCE(n) (((n)&0x1f) << 0)
  1705. #define CP_AXIDMA_ACK_MAP(n) (((n)&0x1f) << 8)
  1706. // axidma_c0_count
  1707. #define CP_AXIDMA_COUNT(n) (((n)&0xffffff) << 0)
  1708. // axidma_c0_countp
  1709. #define CP_AXIDMA_COUNTP(n) (((n)&0xffff) << 0)
  1710. // axidma_c0_status
  1711. #define CP_AXIDMA_RUN (1 << 0)
  1712. #define CP_AXIDMA_COUNT_FINISH_INT (1 << 1)
  1713. #define CP_AXIDMA_COUNTP_FINISH_INT (1 << 2)
  1714. #define CP_AXIDMA_SG_FINISH_INT (1 << 3)
  1715. #define CP_AXIDMA_SG_COUNT(n) (((n)&0xffff) << 4)
  1716. #define CP_AXIDMA_SG_SUSPEND_INT (1 << 20)
  1717. #define CP_AXIDMA_COUNT_FINISH_STA (1 << 21)
  1718. #define CP_AXIDMA_COUNTP_FINISH_STA (1 << 22)
  1719. #define CP_AXIDMA_SG_FINISH_STA (1 << 23)
  1720. #define CP_AXIDMA_SG_SUSPEND_STA (1 << 24)
  1721. #define CP_AXIDMA_RESP_ERR (1 << 25)
  1722. #define CP_AXIDMA_RESP_ERR_INT (1 << 26)
  1723. // axidma_c0_sgconf
  1724. #define CP_AXIDMA_SG_EN (1 << 0)
  1725. #define CP_AXIDMA_SG_FINISH_IE (1 << 1)
  1726. #define CP_AXIDMA_SG_SUSPEND_IE (1 << 2)
  1727. #define CP_AXIDMA_DESC_RD_CTRL (1 << 3)
  1728. #define CP_AXIDMA_SG_NUM(n) (((n)&0xffff) << 4)
  1729. // axidma_c0_set
  1730. #define CP_AXIDMA_RUN_SET (1 << 0)
  1731. // axidma_c0_clr
  1732. #define CP_AXIDMA_RUN_CLR (1 << 0)
  1733. // axidma_c1_conf
  1734. #define CP_AXIDMA_START (1 << 0)
  1735. #define CP_AXIDMA_DATA_TYPE(n) (((n)&0x3) << 1)
  1736. #define CP_AXIDMA_SYN_IRQ (1 << 3)
  1737. #define CP_AXIDMA_IRQ_F (1 << 4)
  1738. #define CP_AXIDMA_IRQ_T (1 << 5)
  1739. #define CP_AXIDMA_SADDR_FIX (1 << 6)
  1740. #define CP_AXIDMA_DADDR_FIX (1 << 7)
  1741. #define CP_AXIDMA_FORCE_TRANS (1 << 8)
  1742. #define CP_AXIDMA_COUNT_SEL (1 << 10)
  1743. #define CP_AXIDMA_SADDR_TURNAROUND (1 << 12)
  1744. #define CP_AXIDMA_DADDR_TURNAROUND (1 << 13)
  1745. #define CP_AXIDMA_SECURITY_EN (1 << 14)
  1746. #define CP_AXIDMA_ERR_INT_EN (1 << 15)
  1747. // axidma_c1_map
  1748. #define CP_AXIDMA_REQ_SOURCE(n) (((n)&0x1f) << 0)
  1749. #define CP_AXIDMA_ACK_MAP(n) (((n)&0x1f) << 8)
  1750. // axidma_c1_count
  1751. #define CP_AXIDMA_COUNT(n) (((n)&0xffffff) << 0)
  1752. // axidma_c1_countp
  1753. #define CP_AXIDMA_COUNTP(n) (((n)&0xffff) << 0)
  1754. // axidma_c1_status
  1755. #define CP_AXIDMA_RUN (1 << 0)
  1756. #define CP_AXIDMA_COUNT_FINISH_INT (1 << 1)
  1757. #define CP_AXIDMA_COUNTP_FINISH_INT (1 << 2)
  1758. #define CP_AXIDMA_SG_FINISH_INT (1 << 3)
  1759. #define CP_AXIDMA_SG_COUNT(n) (((n)&0xffff) << 4)
  1760. #define CP_AXIDMA_SG_SUSPEND_INT (1 << 20)
  1761. #define CP_AXIDMA_COUNT_FINISH_STA (1 << 21)
  1762. #define CP_AXIDMA_COUNTP_FINISH_STA (1 << 22)
  1763. #define CP_AXIDMA_SG_FINISH_STA (1 << 23)
  1764. #define CP_AXIDMA_SG_SUSPEND_STA (1 << 24)
  1765. #define CP_AXIDMA_RESP_ERR (1 << 25)
  1766. #define CP_AXIDMA_RESP_ERR_INT (1 << 26)
  1767. // axidma_c1_sgconf
  1768. #define CP_AXIDMA_SG_EN (1 << 0)
  1769. #define CP_AXIDMA_SG_FINISH_IE (1 << 1)
  1770. #define CP_AXIDMA_SG_SUSPEND_IE (1 << 2)
  1771. #define CP_AXIDMA_DESC_RD_CTRL (1 << 3)
  1772. #define CP_AXIDMA_SG_NUM(n) (((n)&0xffff) << 4)
  1773. // axidma_c1_set
  1774. #define CP_AXIDMA_RUN_SET (1 << 0)
  1775. // axidma_c1_clr
  1776. #define CP_AXIDMA_RUN_CLR (1 << 0)
  1777. // axidma_c2_conf
  1778. #define CP_AXIDMA_START (1 << 0)
  1779. #define CP_AXIDMA_DATA_TYPE(n) (((n)&0x3) << 1)
  1780. #define CP_AXIDMA_SYN_IRQ (1 << 3)
  1781. #define CP_AXIDMA_IRQ_F (1 << 4)
  1782. #define CP_AXIDMA_IRQ_T (1 << 5)
  1783. #define CP_AXIDMA_SADDR_FIX (1 << 6)
  1784. #define CP_AXIDMA_DADDR_FIX (1 << 7)
  1785. #define CP_AXIDMA_FORCE_TRANS (1 << 8)
  1786. #define CP_AXIDMA_COUNT_SEL (1 << 10)
  1787. #define CP_AXIDMA_SADDR_TURNAROUND (1 << 12)
  1788. #define CP_AXIDMA_DADDR_TURNAROUND (1 << 13)
  1789. #define CP_AXIDMA_SECURITY_EN (1 << 14)
  1790. #define CP_AXIDMA_ERR_INT_EN (1 << 15)
  1791. // axidma_c2_map
  1792. #define CP_AXIDMA_REQ_SOURCE(n) (((n)&0x1f) << 0)
  1793. #define CP_AXIDMA_ACK_MAP(n) (((n)&0x1f) << 8)
  1794. // axidma_c2_count
  1795. #define CP_AXIDMA_COUNT(n) (((n)&0xffffff) << 0)
  1796. // axidma_c2_countp
  1797. #define CP_AXIDMA_COUNTP(n) (((n)&0xffff) << 0)
  1798. // axidma_c2_status
  1799. #define CP_AXIDMA_RUN (1 << 0)
  1800. #define CP_AXIDMA_COUNT_FINISH_INT (1 << 1)
  1801. #define CP_AXIDMA_COUNTP_FINISH_INT (1 << 2)
  1802. #define CP_AXIDMA_SG_FINISH_INT (1 << 3)
  1803. #define CP_AXIDMA_SG_COUNT(n) (((n)&0xffff) << 4)
  1804. #define CP_AXIDMA_SG_SUSPEND_INT (1 << 20)
  1805. #define CP_AXIDMA_COUNT_FINISH_STA (1 << 21)
  1806. #define CP_AXIDMA_COUNTP_FINISH_STA (1 << 22)
  1807. #define CP_AXIDMA_SG_FINISH_STA (1 << 23)
  1808. #define CP_AXIDMA_SG_SUSPEND_STA (1 << 24)
  1809. #define CP_AXIDMA_RESP_ERR (1 << 25)
  1810. #define CP_AXIDMA_RESP_ERR_INT (1 << 26)
  1811. // axidma_c2_sgconf
  1812. #define CP_AXIDMA_SG_EN (1 << 0)
  1813. #define CP_AXIDMA_SG_FINISH_IE (1 << 1)
  1814. #define CP_AXIDMA_SG_SUSPEND_IE (1 << 2)
  1815. #define CP_AXIDMA_DESC_RD_CTRL (1 << 3)
  1816. #define CP_AXIDMA_SG_NUM(n) (((n)&0xffff) << 4)
  1817. // axidma_c2_set
  1818. #define CP_AXIDMA_RUN_SET (1 << 0)
  1819. // axidma_c2_clr
  1820. #define CP_AXIDMA_RUN_CLR (1 << 0)
  1821. // axidma_c3_conf
  1822. #define CP_AXIDMA_START (1 << 0)
  1823. #define CP_AXIDMA_DATA_TYPE(n) (((n)&0x3) << 1)
  1824. #define CP_AXIDMA_SYN_IRQ (1 << 3)
  1825. #define CP_AXIDMA_IRQ_F (1 << 4)
  1826. #define CP_AXIDMA_IRQ_T (1 << 5)
  1827. #define CP_AXIDMA_SADDR_FIX (1 << 6)
  1828. #define CP_AXIDMA_DADDR_FIX (1 << 7)
  1829. #define CP_AXIDMA_FORCE_TRANS (1 << 8)
  1830. #define CP_AXIDMA_COUNT_SEL (1 << 10)
  1831. #define CP_AXIDMA_SADDR_TURNAROUND (1 << 12)
  1832. #define CP_AXIDMA_DADDR_TURNAROUND (1 << 13)
  1833. #define CP_AXIDMA_SECURITY_EN (1 << 14)
  1834. #define CP_AXIDMA_ERR_INT_EN (1 << 15)
  1835. // axidma_c3_map
  1836. #define CP_AXIDMA_REQ_SOURCE(n) (((n)&0x1f) << 0)
  1837. #define CP_AXIDMA_ACK_MAP(n) (((n)&0x1f) << 8)
  1838. // axidma_c3_count
  1839. #define CP_AXIDMA_COUNT(n) (((n)&0xffffff) << 0)
  1840. // axidma_c3_countp
  1841. #define CP_AXIDMA_COUNTP(n) (((n)&0xffff) << 0)
  1842. // axidma_c3_status
  1843. #define CP_AXIDMA_RUN (1 << 0)
  1844. #define CP_AXIDMA_COUNT_FINISH_INT (1 << 1)
  1845. #define CP_AXIDMA_COUNTP_FINISH_INT (1 << 2)
  1846. #define CP_AXIDMA_SG_FINISH_INT (1 << 3)
  1847. #define CP_AXIDMA_SG_COUNT(n) (((n)&0xffff) << 4)
  1848. #define CP_AXIDMA_SG_SUSPEND_INT (1 << 20)
  1849. #define CP_AXIDMA_COUNT_FINISH_STA (1 << 21)
  1850. #define CP_AXIDMA_COUNTP_FINISH_STA (1 << 22)
  1851. #define CP_AXIDMA_SG_FINISH_STA (1 << 23)
  1852. #define CP_AXIDMA_SG_SUSPEND_STA (1 << 24)
  1853. #define CP_AXIDMA_RESP_ERR (1 << 25)
  1854. #define CP_AXIDMA_RESP_ERR_INT (1 << 26)
  1855. // axidma_c3_sgconf
  1856. #define CP_AXIDMA_SG_EN (1 << 0)
  1857. #define CP_AXIDMA_SG_FINISH_IE (1 << 1)
  1858. #define CP_AXIDMA_SG_SUSPEND_IE (1 << 2)
  1859. #define CP_AXIDMA_DESC_RD_CTRL (1 << 3)
  1860. #define CP_AXIDMA_SG_NUM(n) (((n)&0xffff) << 4)
  1861. // axidma_c3_set
  1862. #define CP_AXIDMA_RUN_SET (1 << 0)
  1863. // axidma_c3_clr
  1864. #define CP_AXIDMA_RUN_CLR (1 << 0)
  1865. // axidma_c4_conf
  1866. #define CP_AXIDMA_START (1 << 0)
  1867. #define CP_AXIDMA_DATA_TYPE(n) (((n)&0x3) << 1)
  1868. #define CP_AXIDMA_SYN_IRQ (1 << 3)
  1869. #define CP_AXIDMA_IRQ_F (1 << 4)
  1870. #define CP_AXIDMA_IRQ_T (1 << 5)
  1871. #define CP_AXIDMA_SADDR_FIX (1 << 6)
  1872. #define CP_AXIDMA_DADDR_FIX (1 << 7)
  1873. #define CP_AXIDMA_FORCE_TRANS (1 << 8)
  1874. #define CP_AXIDMA_COUNT_SEL (1 << 10)
  1875. #define CP_AXIDMA_SADDR_TURNAROUND (1 << 12)
  1876. #define CP_AXIDMA_DADDR_TURNAROUND (1 << 13)
  1877. #define CP_AXIDMA_SECURITY_EN (1 << 14)
  1878. #define CP_AXIDMA_ERR_INT_EN (1 << 15)
  1879. // axidma_c4_map
  1880. #define CP_AXIDMA_REQ_SOURCE(n) (((n)&0x1f) << 0)
  1881. #define CP_AXIDMA_ACK_MAP(n) (((n)&0x1f) << 8)
  1882. // axidma_c4_count
  1883. #define CP_AXIDMA_COUNT(n) (((n)&0xffffff) << 0)
  1884. // axidma_c4_countp
  1885. #define CP_AXIDMA_COUNTP(n) (((n)&0xffff) << 0)
  1886. // axidma_c4_status
  1887. #define CP_AXIDMA_RUN (1 << 0)
  1888. #define CP_AXIDMA_COUNT_FINISH_INT (1 << 1)
  1889. #define CP_AXIDMA_COUNTP_FINISH_INT (1 << 2)
  1890. #define CP_AXIDMA_SG_FINISH_INT (1 << 3)
  1891. #define CP_AXIDMA_SG_COUNT(n) (((n)&0xffff) << 4)
  1892. #define CP_AXIDMA_SG_SUSPEND_INT (1 << 20)
  1893. #define CP_AXIDMA_COUNT_FINISH_STA (1 << 21)
  1894. #define CP_AXIDMA_COUNTP_FINISH_STA (1 << 22)
  1895. #define CP_AXIDMA_SG_FINISH_STA (1 << 23)
  1896. #define CP_AXIDMA_SG_SUSPEND_STA (1 << 24)
  1897. #define CP_AXIDMA_RESP_ERR (1 << 25)
  1898. #define CP_AXIDMA_RESP_ERR_INT (1 << 26)
  1899. // axidma_c4_sgconf
  1900. #define CP_AXIDMA_SG_EN (1 << 0)
  1901. #define CP_AXIDMA_SG_FINISH_IE (1 << 1)
  1902. #define CP_AXIDMA_SG_SUSPEND_IE (1 << 2)
  1903. #define CP_AXIDMA_DESC_RD_CTRL (1 << 3)
  1904. #define CP_AXIDMA_SG_NUM(n) (((n)&0xffff) << 4)
  1905. // axidma_c4_set
  1906. #define CP_AXIDMA_RUN_SET (1 << 0)
  1907. // axidma_c4_clr
  1908. #define CP_AXIDMA_RUN_CLR (1 << 0)
  1909. // axidma_c5_conf
  1910. #define CP_AXIDMA_START (1 << 0)
  1911. #define CP_AXIDMA_DATA_TYPE(n) (((n)&0x3) << 1)
  1912. #define CP_AXIDMA_SYN_IRQ (1 << 3)
  1913. #define CP_AXIDMA_IRQ_F (1 << 4)
  1914. #define CP_AXIDMA_IRQ_T (1 << 5)
  1915. #define CP_AXIDMA_SADDR_FIX (1 << 6)
  1916. #define CP_AXIDMA_DADDR_FIX (1 << 7)
  1917. #define CP_AXIDMA_FORCE_TRANS (1 << 8)
  1918. #define CP_AXIDMA_COUNT_SEL (1 << 10)
  1919. #define CP_AXIDMA_SADDR_TURNAROUND (1 << 12)
  1920. #define CP_AXIDMA_DADDR_TURNAROUND (1 << 13)
  1921. #define CP_AXIDMA_SECURITY_EN (1 << 14)
  1922. #define CP_AXIDMA_ERR_INT_EN (1 << 15)
  1923. // axidma_c5_map
  1924. #define CP_AXIDMA_REQ_SOURCE(n) (((n)&0x1f) << 0)
  1925. #define CP_AXIDMA_ACK_MAP(n) (((n)&0x1f) << 8)
  1926. // axidma_c5_count
  1927. #define CP_AXIDMA_COUNT(n) (((n)&0xffffff) << 0)
  1928. // axidma_c5_countp
  1929. #define CP_AXIDMA_COUNTP(n) (((n)&0xffff) << 0)
  1930. // axidma_c5_status
  1931. #define CP_AXIDMA_RUN (1 << 0)
  1932. #define CP_AXIDMA_COUNT_FINISH_INT (1 << 1)
  1933. #define CP_AXIDMA_COUNTP_FINISH_INT (1 << 2)
  1934. #define CP_AXIDMA_SG_FINISH_INT (1 << 3)
  1935. #define CP_AXIDMA_SG_COUNT(n) (((n)&0xffff) << 4)
  1936. #define CP_AXIDMA_SG_SUSPEND_INT (1 << 20)
  1937. #define CP_AXIDMA_COUNT_FINISH_STA (1 << 21)
  1938. #define CP_AXIDMA_COUNTP_FINISH_STA (1 << 22)
  1939. #define CP_AXIDMA_SG_FINISH_STA (1 << 23)
  1940. #define CP_AXIDMA_SG_SUSPEND_STA (1 << 24)
  1941. #define CP_AXIDMA_RESP_ERR (1 << 25)
  1942. #define CP_AXIDMA_RESP_ERR_INT (1 << 26)
  1943. // axidma_c5_sgconf
  1944. #define CP_AXIDMA_SG_EN (1 << 0)
  1945. #define CP_AXIDMA_SG_FINISH_IE (1 << 1)
  1946. #define CP_AXIDMA_SG_SUSPEND_IE (1 << 2)
  1947. #define CP_AXIDMA_DESC_RD_CTRL (1 << 3)
  1948. #define CP_AXIDMA_SG_NUM(n) (((n)&0xffff) << 4)
  1949. // axidma_c5_set
  1950. #define CP_AXIDMA_RUN_SET (1 << 0)
  1951. // axidma_c5_clr
  1952. #define CP_AXIDMA_RUN_CLR (1 << 0)
  1953. // axidma_c6_conf
  1954. #define CP_AXIDMA_START (1 << 0)
  1955. #define CP_AXIDMA_DATA_TYPE(n) (((n)&0x3) << 1)
  1956. #define CP_AXIDMA_SYN_IRQ (1 << 3)
  1957. #define CP_AXIDMA_IRQ_F (1 << 4)
  1958. #define CP_AXIDMA_IRQ_T (1 << 5)
  1959. #define CP_AXIDMA_SADDR_FIX (1 << 6)
  1960. #define CP_AXIDMA_DADDR_FIX (1 << 7)
  1961. #define CP_AXIDMA_FORCE_TRANS (1 << 8)
  1962. #define CP_AXIDMA_COUNT_SEL (1 << 10)
  1963. #define CP_AXIDMA_SADDR_TURNAROUND (1 << 12)
  1964. #define CP_AXIDMA_DADDR_TURNAROUND (1 << 13)
  1965. #define CP_AXIDMA_SECURITY_EN (1 << 14)
  1966. #define CP_AXIDMA_ERR_INT_EN (1 << 15)
  1967. // axidma_c6_map
  1968. #define CP_AXIDMA_REQ_SOURCE(n) (((n)&0x1f) << 0)
  1969. #define CP_AXIDMA_ACK_MAP(n) (((n)&0x1f) << 8)
  1970. // axidma_c6_count
  1971. #define CP_AXIDMA_COUNT(n) (((n)&0xffffff) << 0)
  1972. // axidma_c6_countp
  1973. #define CP_AXIDMA_COUNTP(n) (((n)&0xffff) << 0)
  1974. // axidma_c6_status
  1975. #define CP_AXIDMA_RUN (1 << 0)
  1976. #define CP_AXIDMA_COUNT_FINISH_INT (1 << 1)
  1977. #define CP_AXIDMA_COUNTP_FINISH_INT (1 << 2)
  1978. #define CP_AXIDMA_SG_FINISH_INT (1 << 3)
  1979. #define CP_AXIDMA_SG_COUNT(n) (((n)&0xffff) << 4)
  1980. #define CP_AXIDMA_SG_SUSPEND_INT (1 << 20)
  1981. #define CP_AXIDMA_COUNT_FINISH_STA (1 << 21)
  1982. #define CP_AXIDMA_COUNTP_FINISH_STA (1 << 22)
  1983. #define CP_AXIDMA_SG_FINISH_STA (1 << 23)
  1984. #define CP_AXIDMA_SG_SUSPEND_STA (1 << 24)
  1985. #define CP_AXIDMA_RESP_ERR (1 << 25)
  1986. #define CP_AXIDMA_RESP_ERR_INT (1 << 26)
  1987. // axidma_c6_sgconf
  1988. #define CP_AXIDMA_SG_EN (1 << 0)
  1989. #define CP_AXIDMA_SG_FINISH_IE (1 << 1)
  1990. #define CP_AXIDMA_SG_SUSPEND_IE (1 << 2)
  1991. #define CP_AXIDMA_DESC_RD_CTRL (1 << 3)
  1992. #define CP_AXIDMA_SG_NUM(n) (((n)&0xffff) << 4)
  1993. // axidma_c6_set
  1994. #define CP_AXIDMA_RUN_SET (1 << 0)
  1995. // axidma_c6_clr
  1996. #define CP_AXIDMA_RUN_CLR (1 << 0)
  1997. // axidma_c7_conf
  1998. #define CP_AXIDMA_START (1 << 0)
  1999. #define CP_AXIDMA_DATA_TYPE(n) (((n)&0x3) << 1)
  2000. #define CP_AXIDMA_SYN_IRQ (1 << 3)
  2001. #define CP_AXIDMA_IRQ_F (1 << 4)
  2002. #define CP_AXIDMA_IRQ_T (1 << 5)
  2003. #define CP_AXIDMA_SADDR_FIX (1 << 6)
  2004. #define CP_AXIDMA_DADDR_FIX (1 << 7)
  2005. #define CP_AXIDMA_FORCE_TRANS (1 << 8)
  2006. #define CP_AXIDMA_COUNT_SEL (1 << 10)
  2007. #define CP_AXIDMA_SADDR_TURNAROUND (1 << 12)
  2008. #define CP_AXIDMA_DADDR_TURNAROUND (1 << 13)
  2009. #define CP_AXIDMA_SECURITY_EN (1 << 14)
  2010. #define CP_AXIDMA_ERR_INT_EN (1 << 15)
  2011. // axidma_c7_map
  2012. #define CP_AXIDMA_REQ_SOURCE(n) (((n)&0x1f) << 0)
  2013. #define CP_AXIDMA_ACK_MAP(n) (((n)&0x1f) << 8)
  2014. // axidma_c7_count
  2015. #define CP_AXIDMA_COUNT(n) (((n)&0xffffff) << 0)
  2016. // axidma_c7_countp
  2017. #define CP_AXIDMA_COUNTP(n) (((n)&0xffff) << 0)
  2018. // axidma_c7_status
  2019. #define CP_AXIDMA_RUN (1 << 0)
  2020. #define CP_AXIDMA_COUNT_FINISH_INT (1 << 1)
  2021. #define CP_AXIDMA_COUNTP_FINISH_INT (1 << 2)
  2022. #define CP_AXIDMA_SG_FINISH_INT (1 << 3)
  2023. #define CP_AXIDMA_SG_COUNT(n) (((n)&0xffff) << 4)
  2024. #define CP_AXIDMA_SG_SUSPEND_INT (1 << 20)
  2025. #define CP_AXIDMA_COUNT_FINISH_STA (1 << 21)
  2026. #define CP_AXIDMA_COUNTP_FINISH_STA (1 << 22)
  2027. #define CP_AXIDMA_SG_FINISH_STA (1 << 23)
  2028. #define CP_AXIDMA_SG_SUSPEND_STA (1 << 24)
  2029. #define CP_AXIDMA_RESP_ERR (1 << 25)
  2030. #define CP_AXIDMA_RESP_ERR_INT (1 << 26)
  2031. // axidma_c7_sgconf
  2032. #define CP_AXIDMA_SG_EN (1 << 0)
  2033. #define CP_AXIDMA_SG_FINISH_IE (1 << 1)
  2034. #define CP_AXIDMA_SG_SUSPEND_IE (1 << 2)
  2035. #define CP_AXIDMA_DESC_RD_CTRL (1 << 3)
  2036. #define CP_AXIDMA_SG_NUM(n) (((n)&0xffff) << 4)
  2037. // axidma_c7_set
  2038. #define CP_AXIDMA_RUN_SET (1 << 0)
  2039. // axidma_c7_clr
  2040. #define CP_AXIDMA_RUN_CLR (1 << 0)
  2041. // axidma_c8_conf
  2042. #define CP_AXIDMA_START (1 << 0)
  2043. #define CP_AXIDMA_DATA_TYPE(n) (((n)&0x3) << 1)
  2044. #define CP_AXIDMA_SYN_IRQ (1 << 3)
  2045. #define CP_AXIDMA_IRQ_F (1 << 4)
  2046. #define CP_AXIDMA_IRQ_T (1 << 5)
  2047. #define CP_AXIDMA_SADDR_FIX (1 << 6)
  2048. #define CP_AXIDMA_DADDR_FIX (1 << 7)
  2049. #define CP_AXIDMA_FORCE_TRANS (1 << 8)
  2050. #define CP_AXIDMA_COUNT_SEL (1 << 10)
  2051. #define CP_AXIDMA_SADDR_TURNAROUND (1 << 12)
  2052. #define CP_AXIDMA_DADDR_TURNAROUND (1 << 13)
  2053. #define CP_AXIDMA_SECURITY_EN (1 << 14)
  2054. #define CP_AXIDMA_ERR_INT_EN (1 << 15)
  2055. // axidma_c8_map
  2056. #define CP_AXIDMA_REQ_SOURCE(n) (((n)&0x1f) << 0)
  2057. #define CP_AXIDMA_ACK_MAP(n) (((n)&0x1f) << 8)
  2058. // axidma_c8_count
  2059. #define CP_AXIDMA_COUNT(n) (((n)&0xffffff) << 0)
  2060. // axidma_c8_countp
  2061. #define CP_AXIDMA_COUNTP(n) (((n)&0xffff) << 0)
  2062. // axidma_c8_status
  2063. #define CP_AXIDMA_RUN (1 << 0)
  2064. #define CP_AXIDMA_COUNT_FINISH_INT (1 << 1)
  2065. #define CP_AXIDMA_COUNTP_FINISH_INT (1 << 2)
  2066. #define CP_AXIDMA_SG_FINISH_INT (1 << 3)
  2067. #define CP_AXIDMA_SG_COUNT(n) (((n)&0xffff) << 4)
  2068. #define CP_AXIDMA_SG_SUSPEND_INT (1 << 20)
  2069. #define CP_AXIDMA_COUNT_FINISH_STA (1 << 21)
  2070. #define CP_AXIDMA_COUNTP_FINISH_STA (1 << 22)
  2071. #define CP_AXIDMA_SG_FINISH_STA (1 << 23)
  2072. #define CP_AXIDMA_SG_SUSPEND_STA (1 << 24)
  2073. #define CP_AXIDMA_RESP_ERR (1 << 25)
  2074. #define CP_AXIDMA_RESP_ERR_INT (1 << 26)
  2075. // axidma_c8_sgconf
  2076. #define CP_AXIDMA_SG_EN (1 << 0)
  2077. #define CP_AXIDMA_SG_FINISH_IE (1 << 1)
  2078. #define CP_AXIDMA_SG_SUSPEND_IE (1 << 2)
  2079. #define CP_AXIDMA_DESC_RD_CTRL (1 << 3)
  2080. #define CP_AXIDMA_SG_NUM(n) (((n)&0xffff) << 4)
  2081. // axidma_c8_set
  2082. #define CP_AXIDMA_RUN_SET (1 << 0)
  2083. // axidma_c8_clr
  2084. #define CP_AXIDMA_RUN_CLR (1 << 0)
  2085. // axidma_c9_conf
  2086. #define CP_AXIDMA_START (1 << 0)
  2087. #define CP_AXIDMA_DATA_TYPE(n) (((n)&0x3) << 1)
  2088. #define CP_AXIDMA_SYN_IRQ (1 << 3)
  2089. #define CP_AXIDMA_IRQ_F (1 << 4)
  2090. #define CP_AXIDMA_IRQ_T (1 << 5)
  2091. #define CP_AXIDMA_SADDR_FIX (1 << 6)
  2092. #define CP_AXIDMA_DADDR_FIX (1 << 7)
  2093. #define CP_AXIDMA_FORCE_TRANS (1 << 8)
  2094. #define CP_AXIDMA_COUNT_SEL (1 << 10)
  2095. #define CP_AXIDMA_SADDR_TURNAROUND (1 << 12)
  2096. #define CP_AXIDMA_DADDR_TURNAROUND (1 << 13)
  2097. #define CP_AXIDMA_SECURITY_EN (1 << 14)
  2098. #define CP_AXIDMA_ERR_INT_EN (1 << 15)
  2099. // axidma_c9_map
  2100. #define CP_AXIDMA_REQ_SOURCE(n) (((n)&0x1f) << 0)
  2101. #define CP_AXIDMA_ACK_MAP(n) (((n)&0x1f) << 8)
  2102. // axidma_c9_count
  2103. #define CP_AXIDMA_COUNT(n) (((n)&0xffffff) << 0)
  2104. // axidma_c9_countp
  2105. #define CP_AXIDMA_COUNTP(n) (((n)&0xffff) << 0)
  2106. // axidma_c9_status
  2107. #define CP_AXIDMA_RUN (1 << 0)
  2108. #define CP_AXIDMA_COUNT_FINISH_INT (1 << 1)
  2109. #define CP_AXIDMA_COUNTP_FINISH_INT (1 << 2)
  2110. #define CP_AXIDMA_SG_FINISH_INT (1 << 3)
  2111. #define CP_AXIDMA_SG_COUNT(n) (((n)&0xffff) << 4)
  2112. #define CP_AXIDMA_SG_SUSPEND_INT (1 << 20)
  2113. #define CP_AXIDMA_COUNT_FINISH_STA (1 << 21)
  2114. #define CP_AXIDMA_COUNTP_FINISH_STA (1 << 22)
  2115. #define CP_AXIDMA_SG_FINISH_STA (1 << 23)
  2116. #define CP_AXIDMA_SG_SUSPEND_STA (1 << 24)
  2117. #define CP_AXIDMA_RESP_ERR (1 << 25)
  2118. #define CP_AXIDMA_RESP_ERR_INT (1 << 26)
  2119. // axidma_c9_sgconf
  2120. #define CP_AXIDMA_SG_EN (1 << 0)
  2121. #define CP_AXIDMA_SG_FINISH_IE (1 << 1)
  2122. #define CP_AXIDMA_SG_SUSPEND_IE (1 << 2)
  2123. #define CP_AXIDMA_DESC_RD_CTRL (1 << 3)
  2124. #define CP_AXIDMA_SG_NUM(n) (((n)&0xffff) << 4)
  2125. // axidma_c9_set
  2126. #define CP_AXIDMA_RUN_SET (1 << 0)
  2127. // axidma_c9_clr
  2128. #define CP_AXIDMA_RUN_CLR (1 << 0)
  2129. // axidma_c10_conf
  2130. #define CP_AXIDMA_START (1 << 0)
  2131. #define CP_AXIDMA_DATA_TYPE(n) (((n)&0x3) << 1)
  2132. #define CP_AXIDMA_SYN_IRQ (1 << 3)
  2133. #define CP_AXIDMA_IRQ_F (1 << 4)
  2134. #define CP_AXIDMA_IRQ_T (1 << 5)
  2135. #define CP_AXIDMA_SADDR_FIX (1 << 6)
  2136. #define CP_AXIDMA_DADDR_FIX (1 << 7)
  2137. #define CP_AXIDMA_FORCE_TRANS (1 << 8)
  2138. #define CP_AXIDMA_COUNT_SEL (1 << 10)
  2139. #define CP_AXIDMA_SADDR_TURNAROUND (1 << 12)
  2140. #define CP_AXIDMA_DADDR_TURNAROUND (1 << 13)
  2141. #define CP_AXIDMA_SECURITY_EN (1 << 14)
  2142. #define CP_AXIDMA_ERR_INT_EN (1 << 15)
  2143. // axidma_c10_map
  2144. #define CP_AXIDMA_REQ_SOURCE(n) (((n)&0x1f) << 0)
  2145. #define CP_AXIDMA_ACK_MAP(n) (((n)&0x1f) << 8)
  2146. // axidma_c10_count
  2147. #define CP_AXIDMA_COUNT(n) (((n)&0xffffff) << 0)
  2148. // axidma_c10_countp
  2149. #define CP_AXIDMA_COUNTP(n) (((n)&0xffff) << 0)
  2150. // axidma_c10_status
  2151. #define CP_AXIDMA_RUN (1 << 0)
  2152. #define CP_AXIDMA_COUNT_FINISH_INT (1 << 1)
  2153. #define CP_AXIDMA_COUNTP_FINISH_INT (1 << 2)
  2154. #define CP_AXIDMA_SG_FINISH_INT (1 << 3)
  2155. #define CP_AXIDMA_SG_COUNT(n) (((n)&0xffff) << 4)
  2156. #define CP_AXIDMA_SG_SUSPEND_INT (1 << 20)
  2157. #define CP_AXIDMA_COUNT_FINISH_STA (1 << 21)
  2158. #define CP_AXIDMA_COUNTP_FINISH_STA (1 << 22)
  2159. #define CP_AXIDMA_SG_FINISH_STA (1 << 23)
  2160. #define CP_AXIDMA_SG_SUSPEND_STA (1 << 24)
  2161. #define CP_AXIDMA_RESP_ERR (1 << 25)
  2162. #define CP_AXIDMA_RESP_ERR_INT (1 << 26)
  2163. // axidma_c10_sgconf
  2164. #define CP_AXIDMA_SG_EN (1 << 0)
  2165. #define CP_AXIDMA_SG_FINISH_IE (1 << 1)
  2166. #define CP_AXIDMA_SG_SUSPEND_IE (1 << 2)
  2167. #define CP_AXIDMA_DESC_RD_CTRL (1 << 3)
  2168. #define CP_AXIDMA_SG_NUM(n) (((n)&0xffff) << 4)
  2169. // axidma_c10_set
  2170. #define CP_AXIDMA_RUN_SET (1 << 0)
  2171. // axidma_c10_clr
  2172. #define CP_AXIDMA_RUN_CLR (1 << 0)
  2173. // axidma_c11_conf
  2174. #define CP_AXIDMA_START (1 << 0)
  2175. #define CP_AXIDMA_DATA_TYPE(n) (((n)&0x3) << 1)
  2176. #define CP_AXIDMA_SYN_IRQ (1 << 3)
  2177. #define CP_AXIDMA_IRQ_F (1 << 4)
  2178. #define CP_AXIDMA_IRQ_T (1 << 5)
  2179. #define CP_AXIDMA_SADDR_FIX (1 << 6)
  2180. #define CP_AXIDMA_DADDR_FIX (1 << 7)
  2181. #define CP_AXIDMA_FORCE_TRANS (1 << 8)
  2182. #define CP_AXIDMA_COUNT_SEL (1 << 10)
  2183. #define CP_AXIDMA_SADDR_TURNAROUND (1 << 12)
  2184. #define CP_AXIDMA_DADDR_TURNAROUND (1 << 13)
  2185. #define CP_AXIDMA_SECURITY_EN (1 << 14)
  2186. #define CP_AXIDMA_ERR_INT_EN (1 << 15)
  2187. // axidma_c11_map
  2188. #define CP_AXIDMA_REQ_SOURCE(n) (((n)&0x1f) << 0)
  2189. #define CP_AXIDMA_ACK_MAP(n) (((n)&0x1f) << 8)
  2190. // axidma_c11_count
  2191. #define CP_AXIDMA_COUNT(n) (((n)&0xffffff) << 0)
  2192. // axidma_c11_countp
  2193. #define CP_AXIDMA_COUNTP(n) (((n)&0xffff) << 0)
  2194. // axidma_c11_status
  2195. #define CP_AXIDMA_RUN (1 << 0)
  2196. #define CP_AXIDMA_COUNT_FINISH_INT (1 << 1)
  2197. #define CP_AXIDMA_COUNTP_FINISH_INT (1 << 2)
  2198. #define CP_AXIDMA_SG_FINISH_INT (1 << 3)
  2199. #define CP_AXIDMA_SG_COUNT(n) (((n)&0xffff) << 4)
  2200. #define CP_AXIDMA_SG_SUSPEND_INT (1 << 20)
  2201. #define CP_AXIDMA_COUNT_FINISH_STA (1 << 21)
  2202. #define CP_AXIDMA_COUNTP_FINISH_STA (1 << 22)
  2203. #define CP_AXIDMA_SG_FINISH_STA (1 << 23)
  2204. #define CP_AXIDMA_SG_SUSPEND_STA (1 << 24)
  2205. #define CP_AXIDMA_RESP_ERR (1 << 25)
  2206. #define CP_AXIDMA_RESP_ERR_INT (1 << 26)
  2207. // axidma_c11_sgconf
  2208. #define CP_AXIDMA_SG_EN (1 << 0)
  2209. #define CP_AXIDMA_SG_FINISH_IE (1 << 1)
  2210. #define CP_AXIDMA_SG_SUSPEND_IE (1 << 2)
  2211. #define CP_AXIDMA_DESC_RD_CTRL (1 << 3)
  2212. #define CP_AXIDMA_SG_NUM(n) (((n)&0xffff) << 4)
  2213. // axidma_c11_set
  2214. #define CP_AXIDMA_RUN_SET (1 << 0)
  2215. // axidma_c11_clr
  2216. #define CP_AXIDMA_RUN_CLR (1 << 0)
  2217. #endif // _CP_AXIDMA_H_