iceland_sdma_pkt_open.h 117 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172
  1. /*
  2. * Copyright (C) 2014 Advanced Micro Devices, Inc.
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included
  12. * in all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  15. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. * THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  18. * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  19. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  20. *
  21. */
  22. #ifndef __ICELAND_SDMA_PKT_OPEN_H_
  23. #define __ICELAND_SDMA_PKT_OPEN_H_
  24. #define SDMA_OP_NOP 0
  25. #define SDMA_OP_COPY 1
  26. #define SDMA_OP_WRITE 2
  27. #define SDMA_OP_INDIRECT 4
  28. #define SDMA_OP_FENCE 5
  29. #define SDMA_OP_TRAP 6
  30. #define SDMA_OP_SEM 7
  31. #define SDMA_OP_POLL_REGMEM 8
  32. #define SDMA_OP_COND_EXE 9
  33. #define SDMA_OP_ATOMIC 10
  34. #define SDMA_OP_CONST_FILL 11
  35. #define SDMA_OP_GEN_PTEPDE 12
  36. #define SDMA_OP_TIMESTAMP 13
  37. #define SDMA_OP_SRBM_WRITE 14
  38. #define SDMA_OP_PRE_EXE 15
  39. #define SDMA_SUBOP_TIMESTAMP_SET 0
  40. #define SDMA_SUBOP_TIMESTAMP_GET 1
  41. #define SDMA_SUBOP_TIMESTAMP_GET_GLOBAL 2
  42. #define SDMA_SUBOP_COPY_LINEAR 0
  43. #define SDMA_SUBOP_COPY_LINEAR_SUB_WIND 4
  44. #define SDMA_SUBOP_COPY_TILED 1
  45. #define SDMA_SUBOP_COPY_TILED_SUB_WIND 5
  46. #define SDMA_SUBOP_COPY_T2T_SUB_WIND 6
  47. #define SDMA_SUBOP_COPY_SOA 3
  48. #define SDMA_SUBOP_WRITE_LINEAR 0
  49. #define SDMA_SUBOP_WRITE_TILED 1
  50. /*define for op field*/
  51. #define SDMA_PKT_HEADER_op_offset 0
  52. #define SDMA_PKT_HEADER_op_mask 0x000000FF
  53. #define SDMA_PKT_HEADER_op_shift 0
  54. #define SDMA_PKT_HEADER_OP(x) (((x) & SDMA_PKT_HEADER_op_mask) << SDMA_PKT_HEADER_op_shift)
  55. /*define for sub_op field*/
  56. #define SDMA_PKT_HEADER_sub_op_offset 0
  57. #define SDMA_PKT_HEADER_sub_op_mask 0x000000FF
  58. #define SDMA_PKT_HEADER_sub_op_shift 8
  59. #define SDMA_PKT_HEADER_SUB_OP(x) (((x) & SDMA_PKT_HEADER_sub_op_mask) << SDMA_PKT_HEADER_sub_op_shift)
  60. /*
  61. ** Definitions for SDMA_PKT_COPY_LINEAR packet
  62. */
  63. /*define for HEADER word*/
  64. /*define for op field*/
  65. #define SDMA_PKT_COPY_LINEAR_HEADER_op_offset 0
  66. #define SDMA_PKT_COPY_LINEAR_HEADER_op_mask 0x000000FF
  67. #define SDMA_PKT_COPY_LINEAR_HEADER_op_shift 0
  68. #define SDMA_PKT_COPY_LINEAR_HEADER_OP(x) (((x) & SDMA_PKT_COPY_LINEAR_HEADER_op_mask) << SDMA_PKT_COPY_LINEAR_HEADER_op_shift)
  69. /*define for sub_op field*/
  70. #define SDMA_PKT_COPY_LINEAR_HEADER_sub_op_offset 0
  71. #define SDMA_PKT_COPY_LINEAR_HEADER_sub_op_mask 0x000000FF
  72. #define SDMA_PKT_COPY_LINEAR_HEADER_sub_op_shift 8
  73. #define SDMA_PKT_COPY_LINEAR_HEADER_SUB_OP(x) (((x) & SDMA_PKT_COPY_LINEAR_HEADER_sub_op_mask) << SDMA_PKT_COPY_LINEAR_HEADER_sub_op_shift)
  74. /*define for broadcast field*/
  75. #define SDMA_PKT_COPY_LINEAR_HEADER_broadcast_offset 0
  76. #define SDMA_PKT_COPY_LINEAR_HEADER_broadcast_mask 0x00000001
  77. #define SDMA_PKT_COPY_LINEAR_HEADER_broadcast_shift 27
  78. #define SDMA_PKT_COPY_LINEAR_HEADER_BROADCAST(x) (((x) & SDMA_PKT_COPY_LINEAR_HEADER_broadcast_mask) << SDMA_PKT_COPY_LINEAR_HEADER_broadcast_shift)
  79. /*define for COUNT word*/
  80. /*define for count field*/
  81. #define SDMA_PKT_COPY_LINEAR_COUNT_count_offset 1
  82. #define SDMA_PKT_COPY_LINEAR_COUNT_count_mask 0x003FFFFF
  83. #define SDMA_PKT_COPY_LINEAR_COUNT_count_shift 0
  84. #define SDMA_PKT_COPY_LINEAR_COUNT_COUNT(x) (((x) & SDMA_PKT_COPY_LINEAR_COUNT_count_mask) << SDMA_PKT_COPY_LINEAR_COUNT_count_shift)
  85. /*define for PARAMETER word*/
  86. /*define for dst_sw field*/
  87. #define SDMA_PKT_COPY_LINEAR_PARAMETER_dst_sw_offset 2
  88. #define SDMA_PKT_COPY_LINEAR_PARAMETER_dst_sw_mask 0x00000003
  89. #define SDMA_PKT_COPY_LINEAR_PARAMETER_dst_sw_shift 16
  90. #define SDMA_PKT_COPY_LINEAR_PARAMETER_DST_SW(x) (((x) & SDMA_PKT_COPY_LINEAR_PARAMETER_dst_sw_mask) << SDMA_PKT_COPY_LINEAR_PARAMETER_dst_sw_shift)
  91. /*define for dst_ha field*/
  92. #define SDMA_PKT_COPY_LINEAR_PARAMETER_dst_ha_offset 2
  93. #define SDMA_PKT_COPY_LINEAR_PARAMETER_dst_ha_mask 0x00000001
  94. #define SDMA_PKT_COPY_LINEAR_PARAMETER_dst_ha_shift 22
  95. #define SDMA_PKT_COPY_LINEAR_PARAMETER_DST_HA(x) (((x) & SDMA_PKT_COPY_LINEAR_PARAMETER_dst_ha_mask) << SDMA_PKT_COPY_LINEAR_PARAMETER_dst_ha_shift)
  96. /*define for src_sw field*/
  97. #define SDMA_PKT_COPY_LINEAR_PARAMETER_src_sw_offset 2
  98. #define SDMA_PKT_COPY_LINEAR_PARAMETER_src_sw_mask 0x00000003
  99. #define SDMA_PKT_COPY_LINEAR_PARAMETER_src_sw_shift 24
  100. #define SDMA_PKT_COPY_LINEAR_PARAMETER_SRC_SW(x) (((x) & SDMA_PKT_COPY_LINEAR_PARAMETER_src_sw_mask) << SDMA_PKT_COPY_LINEAR_PARAMETER_src_sw_shift)
  101. /*define for src_ha field*/
  102. #define SDMA_PKT_COPY_LINEAR_PARAMETER_src_ha_offset 2
  103. #define SDMA_PKT_COPY_LINEAR_PARAMETER_src_ha_mask 0x00000001
  104. #define SDMA_PKT_COPY_LINEAR_PARAMETER_src_ha_shift 30
  105. #define SDMA_PKT_COPY_LINEAR_PARAMETER_SRC_HA(x) (((x) & SDMA_PKT_COPY_LINEAR_PARAMETER_src_ha_mask) << SDMA_PKT_COPY_LINEAR_PARAMETER_src_ha_shift)
  106. /*define for SRC_ADDR_LO word*/
  107. /*define for src_addr_31_0 field*/
  108. #define SDMA_PKT_COPY_LINEAR_SRC_ADDR_LO_src_addr_31_0_offset 3
  109. #define SDMA_PKT_COPY_LINEAR_SRC_ADDR_LO_src_addr_31_0_mask 0xFFFFFFFF
  110. #define SDMA_PKT_COPY_LINEAR_SRC_ADDR_LO_src_addr_31_0_shift 0
  111. #define SDMA_PKT_COPY_LINEAR_SRC_ADDR_LO_SRC_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_LINEAR_SRC_ADDR_LO_src_addr_31_0_mask) << SDMA_PKT_COPY_LINEAR_SRC_ADDR_LO_src_addr_31_0_shift)
  112. /*define for SRC_ADDR_HI word*/
  113. /*define for src_addr_63_32 field*/
  114. #define SDMA_PKT_COPY_LINEAR_SRC_ADDR_HI_src_addr_63_32_offset 4
  115. #define SDMA_PKT_COPY_LINEAR_SRC_ADDR_HI_src_addr_63_32_mask 0xFFFFFFFF
  116. #define SDMA_PKT_COPY_LINEAR_SRC_ADDR_HI_src_addr_63_32_shift 0
  117. #define SDMA_PKT_COPY_LINEAR_SRC_ADDR_HI_SRC_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_LINEAR_SRC_ADDR_HI_src_addr_63_32_mask) << SDMA_PKT_COPY_LINEAR_SRC_ADDR_HI_src_addr_63_32_shift)
  118. /*define for DST_ADDR_LO word*/
  119. /*define for dst_addr_31_0 field*/
  120. #define SDMA_PKT_COPY_LINEAR_DST_ADDR_LO_dst_addr_31_0_offset 5
  121. #define SDMA_PKT_COPY_LINEAR_DST_ADDR_LO_dst_addr_31_0_mask 0xFFFFFFFF
  122. #define SDMA_PKT_COPY_LINEAR_DST_ADDR_LO_dst_addr_31_0_shift 0
  123. #define SDMA_PKT_COPY_LINEAR_DST_ADDR_LO_DST_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_LINEAR_DST_ADDR_LO_dst_addr_31_0_mask) << SDMA_PKT_COPY_LINEAR_DST_ADDR_LO_dst_addr_31_0_shift)
  124. /*define for DST_ADDR_HI word*/
  125. /*define for dst_addr_63_32 field*/
  126. #define SDMA_PKT_COPY_LINEAR_DST_ADDR_HI_dst_addr_63_32_offset 6
  127. #define SDMA_PKT_COPY_LINEAR_DST_ADDR_HI_dst_addr_63_32_mask 0xFFFFFFFF
  128. #define SDMA_PKT_COPY_LINEAR_DST_ADDR_HI_dst_addr_63_32_shift 0
  129. #define SDMA_PKT_COPY_LINEAR_DST_ADDR_HI_DST_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_LINEAR_DST_ADDR_HI_dst_addr_63_32_mask) << SDMA_PKT_COPY_LINEAR_DST_ADDR_HI_dst_addr_63_32_shift)
  130. /*
  131. ** Definitions for SDMA_PKT_COPY_BROADCAST_LINEAR packet
  132. */
  133. /*define for HEADER word*/
  134. /*define for op field*/
  135. #define SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_op_offset 0
  136. #define SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_op_mask 0x000000FF
  137. #define SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_op_shift 0
  138. #define SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_OP(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_op_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_op_shift)
  139. /*define for sub_op field*/
  140. #define SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_sub_op_offset 0
  141. #define SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_sub_op_mask 0x000000FF
  142. #define SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_sub_op_shift 8
  143. #define SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_SUB_OP(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_sub_op_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_sub_op_shift)
  144. /*define for broadcast field*/
  145. #define SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_broadcast_offset 0
  146. #define SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_broadcast_mask 0x00000001
  147. #define SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_broadcast_shift 27
  148. #define SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_BROADCAST(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_broadcast_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_HEADER_broadcast_shift)
  149. /*define for COUNT word*/
  150. /*define for count field*/
  151. #define SDMA_PKT_COPY_BROADCAST_LINEAR_COUNT_count_offset 1
  152. #define SDMA_PKT_COPY_BROADCAST_LINEAR_COUNT_count_mask 0x003FFFFF
  153. #define SDMA_PKT_COPY_BROADCAST_LINEAR_COUNT_count_shift 0
  154. #define SDMA_PKT_COPY_BROADCAST_LINEAR_COUNT_COUNT(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_COUNT_count_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_COUNT_count_shift)
  155. /*define for PARAMETER word*/
  156. /*define for dst2_sw field*/
  157. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst2_sw_offset 2
  158. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst2_sw_mask 0x00000003
  159. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst2_sw_shift 8
  160. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_DST2_SW(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst2_sw_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst2_sw_shift)
  161. /*define for dst2_ha field*/
  162. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst2_ha_offset 2
  163. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst2_ha_mask 0x00000001
  164. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst2_ha_shift 14
  165. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_DST2_HA(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst2_ha_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst2_ha_shift)
  166. /*define for dst1_sw field*/
  167. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst1_sw_offset 2
  168. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst1_sw_mask 0x00000003
  169. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst1_sw_shift 16
  170. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_DST1_SW(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst1_sw_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst1_sw_shift)
  171. /*define for dst1_ha field*/
  172. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst1_ha_offset 2
  173. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst1_ha_mask 0x00000001
  174. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst1_ha_shift 22
  175. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_DST1_HA(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst1_ha_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_dst1_ha_shift)
  176. /*define for src_sw field*/
  177. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_src_sw_offset 2
  178. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_src_sw_mask 0x00000003
  179. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_src_sw_shift 24
  180. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_SRC_SW(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_src_sw_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_src_sw_shift)
  181. /*define for src_ha field*/
  182. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_src_ha_offset 2
  183. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_src_ha_mask 0x00000001
  184. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_src_ha_shift 30
  185. #define SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_SRC_HA(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_src_ha_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_PARAMETER_src_ha_shift)
  186. /*define for SRC_ADDR_LO word*/
  187. /*define for src_addr_31_0 field*/
  188. #define SDMA_PKT_COPY_BROADCAST_LINEAR_SRC_ADDR_LO_src_addr_31_0_offset 3
  189. #define SDMA_PKT_COPY_BROADCAST_LINEAR_SRC_ADDR_LO_src_addr_31_0_mask 0xFFFFFFFF
  190. #define SDMA_PKT_COPY_BROADCAST_LINEAR_SRC_ADDR_LO_src_addr_31_0_shift 0
  191. #define SDMA_PKT_COPY_BROADCAST_LINEAR_SRC_ADDR_LO_SRC_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_SRC_ADDR_LO_src_addr_31_0_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_SRC_ADDR_LO_src_addr_31_0_shift)
  192. /*define for SRC_ADDR_HI word*/
  193. /*define for src_addr_63_32 field*/
  194. #define SDMA_PKT_COPY_BROADCAST_LINEAR_SRC_ADDR_HI_src_addr_63_32_offset 4
  195. #define SDMA_PKT_COPY_BROADCAST_LINEAR_SRC_ADDR_HI_src_addr_63_32_mask 0xFFFFFFFF
  196. #define SDMA_PKT_COPY_BROADCAST_LINEAR_SRC_ADDR_HI_src_addr_63_32_shift 0
  197. #define SDMA_PKT_COPY_BROADCAST_LINEAR_SRC_ADDR_HI_SRC_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_SRC_ADDR_HI_src_addr_63_32_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_SRC_ADDR_HI_src_addr_63_32_shift)
  198. /*define for DST1_ADDR_LO word*/
  199. /*define for dst1_addr_31_0 field*/
  200. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST1_ADDR_LO_dst1_addr_31_0_offset 5
  201. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST1_ADDR_LO_dst1_addr_31_0_mask 0xFFFFFFFF
  202. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST1_ADDR_LO_dst1_addr_31_0_shift 0
  203. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST1_ADDR_LO_DST1_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_DST1_ADDR_LO_dst1_addr_31_0_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_DST1_ADDR_LO_dst1_addr_31_0_shift)
  204. /*define for DST1_ADDR_HI word*/
  205. /*define for dst1_addr_63_32 field*/
  206. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST1_ADDR_HI_dst1_addr_63_32_offset 6
  207. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST1_ADDR_HI_dst1_addr_63_32_mask 0xFFFFFFFF
  208. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST1_ADDR_HI_dst1_addr_63_32_shift 0
  209. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST1_ADDR_HI_DST1_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_DST1_ADDR_HI_dst1_addr_63_32_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_DST1_ADDR_HI_dst1_addr_63_32_shift)
  210. /*define for DST2_ADDR_LO word*/
  211. /*define for dst2_addr_31_0 field*/
  212. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST2_ADDR_LO_dst2_addr_31_0_offset 7
  213. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST2_ADDR_LO_dst2_addr_31_0_mask 0xFFFFFFFF
  214. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST2_ADDR_LO_dst2_addr_31_0_shift 0
  215. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST2_ADDR_LO_DST2_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_DST2_ADDR_LO_dst2_addr_31_0_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_DST2_ADDR_LO_dst2_addr_31_0_shift)
  216. /*define for DST2_ADDR_HI word*/
  217. /*define for dst2_addr_63_32 field*/
  218. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST2_ADDR_HI_dst2_addr_63_32_offset 8
  219. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST2_ADDR_HI_dst2_addr_63_32_mask 0xFFFFFFFF
  220. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST2_ADDR_HI_dst2_addr_63_32_shift 0
  221. #define SDMA_PKT_COPY_BROADCAST_LINEAR_DST2_ADDR_HI_DST2_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_BROADCAST_LINEAR_DST2_ADDR_HI_dst2_addr_63_32_mask) << SDMA_PKT_COPY_BROADCAST_LINEAR_DST2_ADDR_HI_dst2_addr_63_32_shift)
  222. /*
  223. ** Definitions for SDMA_PKT_COPY_LINEAR_SUBWIN packet
  224. */
  225. /*define for HEADER word*/
  226. /*define for op field*/
  227. #define SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_op_offset 0
  228. #define SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_op_mask 0x000000FF
  229. #define SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_op_shift 0
  230. #define SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_OP(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_op_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_op_shift)
  231. /*define for sub_op field*/
  232. #define SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_sub_op_offset 0
  233. #define SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_sub_op_mask 0x000000FF
  234. #define SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_sub_op_shift 8
  235. #define SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_SUB_OP(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_sub_op_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_sub_op_shift)
  236. /*define for elementsize field*/
  237. #define SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_elementsize_offset 0
  238. #define SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_elementsize_mask 0x00000007
  239. #define SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_elementsize_shift 29
  240. #define SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_ELEMENTSIZE(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_elementsize_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_HEADER_elementsize_shift)
  241. /*define for SRC_ADDR_LO word*/
  242. /*define for src_addr_31_0 field*/
  243. #define SDMA_PKT_COPY_LINEAR_SUBWIN_SRC_ADDR_LO_src_addr_31_0_offset 1
  244. #define SDMA_PKT_COPY_LINEAR_SUBWIN_SRC_ADDR_LO_src_addr_31_0_mask 0xFFFFFFFF
  245. #define SDMA_PKT_COPY_LINEAR_SUBWIN_SRC_ADDR_LO_src_addr_31_0_shift 0
  246. #define SDMA_PKT_COPY_LINEAR_SUBWIN_SRC_ADDR_LO_SRC_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_SRC_ADDR_LO_src_addr_31_0_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_SRC_ADDR_LO_src_addr_31_0_shift)
  247. /*define for SRC_ADDR_HI word*/
  248. /*define for src_addr_63_32 field*/
  249. #define SDMA_PKT_COPY_LINEAR_SUBWIN_SRC_ADDR_HI_src_addr_63_32_offset 2
  250. #define SDMA_PKT_COPY_LINEAR_SUBWIN_SRC_ADDR_HI_src_addr_63_32_mask 0xFFFFFFFF
  251. #define SDMA_PKT_COPY_LINEAR_SUBWIN_SRC_ADDR_HI_src_addr_63_32_shift 0
  252. #define SDMA_PKT_COPY_LINEAR_SUBWIN_SRC_ADDR_HI_SRC_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_SRC_ADDR_HI_src_addr_63_32_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_SRC_ADDR_HI_src_addr_63_32_shift)
  253. /*define for DW_3 word*/
  254. /*define for src_x field*/
  255. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_3_src_x_offset 3
  256. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_3_src_x_mask 0x00003FFF
  257. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_3_src_x_shift 0
  258. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_3_SRC_X(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_3_src_x_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_3_src_x_shift)
  259. /*define for src_y field*/
  260. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_3_src_y_offset 3
  261. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_3_src_y_mask 0x00003FFF
  262. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_3_src_y_shift 16
  263. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_3_SRC_Y(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_3_src_y_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_3_src_y_shift)
  264. /*define for DW_4 word*/
  265. /*define for src_z field*/
  266. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_4_src_z_offset 4
  267. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_4_src_z_mask 0x000007FF
  268. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_4_src_z_shift 0
  269. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_4_SRC_Z(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_4_src_z_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_4_src_z_shift)
  270. /*define for src_pitch field*/
  271. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_4_src_pitch_offset 4
  272. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_4_src_pitch_mask 0x00003FFF
  273. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_4_src_pitch_shift 16
  274. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_4_SRC_PITCH(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_4_src_pitch_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_4_src_pitch_shift)
  275. /*define for DW_5 word*/
  276. /*define for src_slice_pitch field*/
  277. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_5_src_slice_pitch_offset 5
  278. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_5_src_slice_pitch_mask 0x0FFFFFFF
  279. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_5_src_slice_pitch_shift 0
  280. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_5_SRC_SLICE_PITCH(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_5_src_slice_pitch_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_5_src_slice_pitch_shift)
  281. /*define for DST_ADDR_LO word*/
  282. /*define for dst_addr_31_0 field*/
  283. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DST_ADDR_LO_dst_addr_31_0_offset 6
  284. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DST_ADDR_LO_dst_addr_31_0_mask 0xFFFFFFFF
  285. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DST_ADDR_LO_dst_addr_31_0_shift 0
  286. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DST_ADDR_LO_DST_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DST_ADDR_LO_dst_addr_31_0_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DST_ADDR_LO_dst_addr_31_0_shift)
  287. /*define for DST_ADDR_HI word*/
  288. /*define for dst_addr_63_32 field*/
  289. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DST_ADDR_HI_dst_addr_63_32_offset 7
  290. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DST_ADDR_HI_dst_addr_63_32_mask 0xFFFFFFFF
  291. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DST_ADDR_HI_dst_addr_63_32_shift 0
  292. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DST_ADDR_HI_DST_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DST_ADDR_HI_dst_addr_63_32_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DST_ADDR_HI_dst_addr_63_32_shift)
  293. /*define for DW_8 word*/
  294. /*define for dst_x field*/
  295. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_8_dst_x_offset 8
  296. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_8_dst_x_mask 0x00003FFF
  297. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_8_dst_x_shift 0
  298. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_8_DST_X(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_8_dst_x_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_8_dst_x_shift)
  299. /*define for dst_y field*/
  300. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_8_dst_y_offset 8
  301. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_8_dst_y_mask 0x00003FFF
  302. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_8_dst_y_shift 16
  303. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_8_DST_Y(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_8_dst_y_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_8_dst_y_shift)
  304. /*define for DW_9 word*/
  305. /*define for dst_z field*/
  306. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_9_dst_z_offset 9
  307. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_9_dst_z_mask 0x000007FF
  308. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_9_dst_z_shift 0
  309. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_9_DST_Z(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_9_dst_z_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_9_dst_z_shift)
  310. /*define for dst_pitch field*/
  311. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_9_dst_pitch_offset 9
  312. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_9_dst_pitch_mask 0x00003FFF
  313. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_9_dst_pitch_shift 16
  314. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_9_DST_PITCH(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_9_dst_pitch_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_9_dst_pitch_shift)
  315. /*define for DW_10 word*/
  316. /*define for dst_slice_pitch field*/
  317. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_10_dst_slice_pitch_offset 10
  318. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_10_dst_slice_pitch_mask 0x0FFFFFFF
  319. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_10_dst_slice_pitch_shift 0
  320. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_10_DST_SLICE_PITCH(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_10_dst_slice_pitch_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_10_dst_slice_pitch_shift)
  321. /*define for DW_11 word*/
  322. /*define for rect_x field*/
  323. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_11_rect_x_offset 11
  324. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_11_rect_x_mask 0x00003FFF
  325. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_11_rect_x_shift 0
  326. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_11_RECT_X(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_11_rect_x_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_11_rect_x_shift)
  327. /*define for rect_y field*/
  328. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_11_rect_y_offset 11
  329. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_11_rect_y_mask 0x00003FFF
  330. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_11_rect_y_shift 16
  331. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_11_RECT_Y(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_11_rect_y_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_11_rect_y_shift)
  332. /*define for DW_12 word*/
  333. /*define for rect_z field*/
  334. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_rect_z_offset 12
  335. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_rect_z_mask 0x000007FF
  336. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_rect_z_shift 0
  337. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_RECT_Z(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_rect_z_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_rect_z_shift)
  338. /*define for dst_sw field*/
  339. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_dst_sw_offset 12
  340. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_dst_sw_mask 0x00000003
  341. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_dst_sw_shift 16
  342. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_DST_SW(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_dst_sw_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_dst_sw_shift)
  343. /*define for dst_ha field*/
  344. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_dst_ha_offset 12
  345. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_dst_ha_mask 0x00000001
  346. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_dst_ha_shift 22
  347. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_DST_HA(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_dst_ha_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_dst_ha_shift)
  348. /*define for src_sw field*/
  349. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_src_sw_offset 12
  350. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_src_sw_mask 0x00000003
  351. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_src_sw_shift 24
  352. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_SRC_SW(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_src_sw_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_src_sw_shift)
  353. /*define for src_ha field*/
  354. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_src_ha_offset 12
  355. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_src_ha_mask 0x00000001
  356. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_src_ha_shift 30
  357. #define SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_SRC_HA(x) (((x) & SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_src_ha_mask) << SDMA_PKT_COPY_LINEAR_SUBWIN_DW_12_src_ha_shift)
  358. /*
  359. ** Definitions for SDMA_PKT_COPY_TILED packet
  360. */
  361. /*define for HEADER word*/
  362. /*define for op field*/
  363. #define SDMA_PKT_COPY_TILED_HEADER_op_offset 0
  364. #define SDMA_PKT_COPY_TILED_HEADER_op_mask 0x000000FF
  365. #define SDMA_PKT_COPY_TILED_HEADER_op_shift 0
  366. #define SDMA_PKT_COPY_TILED_HEADER_OP(x) (((x) & SDMA_PKT_COPY_TILED_HEADER_op_mask) << SDMA_PKT_COPY_TILED_HEADER_op_shift)
  367. /*define for sub_op field*/
  368. #define SDMA_PKT_COPY_TILED_HEADER_sub_op_offset 0
  369. #define SDMA_PKT_COPY_TILED_HEADER_sub_op_mask 0x000000FF
  370. #define SDMA_PKT_COPY_TILED_HEADER_sub_op_shift 8
  371. #define SDMA_PKT_COPY_TILED_HEADER_SUB_OP(x) (((x) & SDMA_PKT_COPY_TILED_HEADER_sub_op_mask) << SDMA_PKT_COPY_TILED_HEADER_sub_op_shift)
  372. /*define for detile field*/
  373. #define SDMA_PKT_COPY_TILED_HEADER_detile_offset 0
  374. #define SDMA_PKT_COPY_TILED_HEADER_detile_mask 0x00000001
  375. #define SDMA_PKT_COPY_TILED_HEADER_detile_shift 31
  376. #define SDMA_PKT_COPY_TILED_HEADER_DETILE(x) (((x) & SDMA_PKT_COPY_TILED_HEADER_detile_mask) << SDMA_PKT_COPY_TILED_HEADER_detile_shift)
  377. /*define for TILED_ADDR_LO word*/
  378. /*define for tiled_addr_31_0 field*/
  379. #define SDMA_PKT_COPY_TILED_TILED_ADDR_LO_tiled_addr_31_0_offset 1
  380. #define SDMA_PKT_COPY_TILED_TILED_ADDR_LO_tiled_addr_31_0_mask 0xFFFFFFFF
  381. #define SDMA_PKT_COPY_TILED_TILED_ADDR_LO_tiled_addr_31_0_shift 0
  382. #define SDMA_PKT_COPY_TILED_TILED_ADDR_LO_TILED_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_TILED_TILED_ADDR_LO_tiled_addr_31_0_mask) << SDMA_PKT_COPY_TILED_TILED_ADDR_LO_tiled_addr_31_0_shift)
  383. /*define for TILED_ADDR_HI word*/
  384. /*define for tiled_addr_63_32 field*/
  385. #define SDMA_PKT_COPY_TILED_TILED_ADDR_HI_tiled_addr_63_32_offset 2
  386. #define SDMA_PKT_COPY_TILED_TILED_ADDR_HI_tiled_addr_63_32_mask 0xFFFFFFFF
  387. #define SDMA_PKT_COPY_TILED_TILED_ADDR_HI_tiled_addr_63_32_shift 0
  388. #define SDMA_PKT_COPY_TILED_TILED_ADDR_HI_TILED_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_TILED_TILED_ADDR_HI_tiled_addr_63_32_mask) << SDMA_PKT_COPY_TILED_TILED_ADDR_HI_tiled_addr_63_32_shift)
  389. /*define for DW_3 word*/
  390. /*define for pitch_in_tile field*/
  391. #define SDMA_PKT_COPY_TILED_DW_3_pitch_in_tile_offset 3
  392. #define SDMA_PKT_COPY_TILED_DW_3_pitch_in_tile_mask 0x000007FF
  393. #define SDMA_PKT_COPY_TILED_DW_3_pitch_in_tile_shift 0
  394. #define SDMA_PKT_COPY_TILED_DW_3_PITCH_IN_TILE(x) (((x) & SDMA_PKT_COPY_TILED_DW_3_pitch_in_tile_mask) << SDMA_PKT_COPY_TILED_DW_3_pitch_in_tile_shift)
  395. /*define for height field*/
  396. #define SDMA_PKT_COPY_TILED_DW_3_height_offset 3
  397. #define SDMA_PKT_COPY_TILED_DW_3_height_mask 0x00003FFF
  398. #define SDMA_PKT_COPY_TILED_DW_3_height_shift 16
  399. #define SDMA_PKT_COPY_TILED_DW_3_HEIGHT(x) (((x) & SDMA_PKT_COPY_TILED_DW_3_height_mask) << SDMA_PKT_COPY_TILED_DW_3_height_shift)
  400. /*define for DW_4 word*/
  401. /*define for slice_pitch field*/
  402. #define SDMA_PKT_COPY_TILED_DW_4_slice_pitch_offset 4
  403. #define SDMA_PKT_COPY_TILED_DW_4_slice_pitch_mask 0x003FFFFF
  404. #define SDMA_PKT_COPY_TILED_DW_4_slice_pitch_shift 0
  405. #define SDMA_PKT_COPY_TILED_DW_4_SLICE_PITCH(x) (((x) & SDMA_PKT_COPY_TILED_DW_4_slice_pitch_mask) << SDMA_PKT_COPY_TILED_DW_4_slice_pitch_shift)
  406. /*define for DW_5 word*/
  407. /*define for element_size field*/
  408. #define SDMA_PKT_COPY_TILED_DW_5_element_size_offset 5
  409. #define SDMA_PKT_COPY_TILED_DW_5_element_size_mask 0x00000007
  410. #define SDMA_PKT_COPY_TILED_DW_5_element_size_shift 0
  411. #define SDMA_PKT_COPY_TILED_DW_5_ELEMENT_SIZE(x) (((x) & SDMA_PKT_COPY_TILED_DW_5_element_size_mask) << SDMA_PKT_COPY_TILED_DW_5_element_size_shift)
  412. /*define for array_mode field*/
  413. #define SDMA_PKT_COPY_TILED_DW_5_array_mode_offset 5
  414. #define SDMA_PKT_COPY_TILED_DW_5_array_mode_mask 0x0000000F
  415. #define SDMA_PKT_COPY_TILED_DW_5_array_mode_shift 3
  416. #define SDMA_PKT_COPY_TILED_DW_5_ARRAY_MODE(x) (((x) & SDMA_PKT_COPY_TILED_DW_5_array_mode_mask) << SDMA_PKT_COPY_TILED_DW_5_array_mode_shift)
  417. /*define for mit_mode field*/
  418. #define SDMA_PKT_COPY_TILED_DW_5_mit_mode_offset 5
  419. #define SDMA_PKT_COPY_TILED_DW_5_mit_mode_mask 0x00000007
  420. #define SDMA_PKT_COPY_TILED_DW_5_mit_mode_shift 8
  421. #define SDMA_PKT_COPY_TILED_DW_5_MIT_MODE(x) (((x) & SDMA_PKT_COPY_TILED_DW_5_mit_mode_mask) << SDMA_PKT_COPY_TILED_DW_5_mit_mode_shift)
  422. /*define for tilesplit_size field*/
  423. #define SDMA_PKT_COPY_TILED_DW_5_tilesplit_size_offset 5
  424. #define SDMA_PKT_COPY_TILED_DW_5_tilesplit_size_mask 0x00000007
  425. #define SDMA_PKT_COPY_TILED_DW_5_tilesplit_size_shift 11
  426. #define SDMA_PKT_COPY_TILED_DW_5_TILESPLIT_SIZE(x) (((x) & SDMA_PKT_COPY_TILED_DW_5_tilesplit_size_mask) << SDMA_PKT_COPY_TILED_DW_5_tilesplit_size_shift)
  427. /*define for bank_w field*/
  428. #define SDMA_PKT_COPY_TILED_DW_5_bank_w_offset 5
  429. #define SDMA_PKT_COPY_TILED_DW_5_bank_w_mask 0x00000003
  430. #define SDMA_PKT_COPY_TILED_DW_5_bank_w_shift 15
  431. #define SDMA_PKT_COPY_TILED_DW_5_BANK_W(x) (((x) & SDMA_PKT_COPY_TILED_DW_5_bank_w_mask) << SDMA_PKT_COPY_TILED_DW_5_bank_w_shift)
  432. /*define for bank_h field*/
  433. #define SDMA_PKT_COPY_TILED_DW_5_bank_h_offset 5
  434. #define SDMA_PKT_COPY_TILED_DW_5_bank_h_mask 0x00000003
  435. #define SDMA_PKT_COPY_TILED_DW_5_bank_h_shift 18
  436. #define SDMA_PKT_COPY_TILED_DW_5_BANK_H(x) (((x) & SDMA_PKT_COPY_TILED_DW_5_bank_h_mask) << SDMA_PKT_COPY_TILED_DW_5_bank_h_shift)
  437. /*define for num_bank field*/
  438. #define SDMA_PKT_COPY_TILED_DW_5_num_bank_offset 5
  439. #define SDMA_PKT_COPY_TILED_DW_5_num_bank_mask 0x00000003
  440. #define SDMA_PKT_COPY_TILED_DW_5_num_bank_shift 21
  441. #define SDMA_PKT_COPY_TILED_DW_5_NUM_BANK(x) (((x) & SDMA_PKT_COPY_TILED_DW_5_num_bank_mask) << SDMA_PKT_COPY_TILED_DW_5_num_bank_shift)
  442. /*define for mat_aspt field*/
  443. #define SDMA_PKT_COPY_TILED_DW_5_mat_aspt_offset 5
  444. #define SDMA_PKT_COPY_TILED_DW_5_mat_aspt_mask 0x00000003
  445. #define SDMA_PKT_COPY_TILED_DW_5_mat_aspt_shift 24
  446. #define SDMA_PKT_COPY_TILED_DW_5_MAT_ASPT(x) (((x) & SDMA_PKT_COPY_TILED_DW_5_mat_aspt_mask) << SDMA_PKT_COPY_TILED_DW_5_mat_aspt_shift)
  447. /*define for pipe_config field*/
  448. #define SDMA_PKT_COPY_TILED_DW_5_pipe_config_offset 5
  449. #define SDMA_PKT_COPY_TILED_DW_5_pipe_config_mask 0x0000001F
  450. #define SDMA_PKT_COPY_TILED_DW_5_pipe_config_shift 26
  451. #define SDMA_PKT_COPY_TILED_DW_5_PIPE_CONFIG(x) (((x) & SDMA_PKT_COPY_TILED_DW_5_pipe_config_mask) << SDMA_PKT_COPY_TILED_DW_5_pipe_config_shift)
  452. /*define for DW_6 word*/
  453. /*define for x field*/
  454. #define SDMA_PKT_COPY_TILED_DW_6_x_offset 6
  455. #define SDMA_PKT_COPY_TILED_DW_6_x_mask 0x00003FFF
  456. #define SDMA_PKT_COPY_TILED_DW_6_x_shift 0
  457. #define SDMA_PKT_COPY_TILED_DW_6_X(x) (((x) & SDMA_PKT_COPY_TILED_DW_6_x_mask) << SDMA_PKT_COPY_TILED_DW_6_x_shift)
  458. /*define for y field*/
  459. #define SDMA_PKT_COPY_TILED_DW_6_y_offset 6
  460. #define SDMA_PKT_COPY_TILED_DW_6_y_mask 0x00003FFF
  461. #define SDMA_PKT_COPY_TILED_DW_6_y_shift 16
  462. #define SDMA_PKT_COPY_TILED_DW_6_Y(x) (((x) & SDMA_PKT_COPY_TILED_DW_6_y_mask) << SDMA_PKT_COPY_TILED_DW_6_y_shift)
  463. /*define for DW_7 word*/
  464. /*define for z field*/
  465. #define SDMA_PKT_COPY_TILED_DW_7_z_offset 7
  466. #define SDMA_PKT_COPY_TILED_DW_7_z_mask 0x00000FFF
  467. #define SDMA_PKT_COPY_TILED_DW_7_z_shift 0
  468. #define SDMA_PKT_COPY_TILED_DW_7_Z(x) (((x) & SDMA_PKT_COPY_TILED_DW_7_z_mask) << SDMA_PKT_COPY_TILED_DW_7_z_shift)
  469. /*define for linear_sw field*/
  470. #define SDMA_PKT_COPY_TILED_DW_7_linear_sw_offset 7
  471. #define SDMA_PKT_COPY_TILED_DW_7_linear_sw_mask 0x00000003
  472. #define SDMA_PKT_COPY_TILED_DW_7_linear_sw_shift 16
  473. #define SDMA_PKT_COPY_TILED_DW_7_LINEAR_SW(x) (((x) & SDMA_PKT_COPY_TILED_DW_7_linear_sw_mask) << SDMA_PKT_COPY_TILED_DW_7_linear_sw_shift)
  474. /*define for tile_sw field*/
  475. #define SDMA_PKT_COPY_TILED_DW_7_tile_sw_offset 7
  476. #define SDMA_PKT_COPY_TILED_DW_7_tile_sw_mask 0x00000003
  477. #define SDMA_PKT_COPY_TILED_DW_7_tile_sw_shift 24
  478. #define SDMA_PKT_COPY_TILED_DW_7_TILE_SW(x) (((x) & SDMA_PKT_COPY_TILED_DW_7_tile_sw_mask) << SDMA_PKT_COPY_TILED_DW_7_tile_sw_shift)
  479. /*define for LINEAR_ADDR_LO word*/
  480. /*define for linear_addr_31_0 field*/
  481. #define SDMA_PKT_COPY_TILED_LINEAR_ADDR_LO_linear_addr_31_0_offset 8
  482. #define SDMA_PKT_COPY_TILED_LINEAR_ADDR_LO_linear_addr_31_0_mask 0xFFFFFFFF
  483. #define SDMA_PKT_COPY_TILED_LINEAR_ADDR_LO_linear_addr_31_0_shift 0
  484. #define SDMA_PKT_COPY_TILED_LINEAR_ADDR_LO_LINEAR_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_TILED_LINEAR_ADDR_LO_linear_addr_31_0_mask) << SDMA_PKT_COPY_TILED_LINEAR_ADDR_LO_linear_addr_31_0_shift)
  485. /*define for LINEAR_ADDR_HI word*/
  486. /*define for linear_addr_63_32 field*/
  487. #define SDMA_PKT_COPY_TILED_LINEAR_ADDR_HI_linear_addr_63_32_offset 9
  488. #define SDMA_PKT_COPY_TILED_LINEAR_ADDR_HI_linear_addr_63_32_mask 0xFFFFFFFF
  489. #define SDMA_PKT_COPY_TILED_LINEAR_ADDR_HI_linear_addr_63_32_shift 0
  490. #define SDMA_PKT_COPY_TILED_LINEAR_ADDR_HI_LINEAR_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_TILED_LINEAR_ADDR_HI_linear_addr_63_32_mask) << SDMA_PKT_COPY_TILED_LINEAR_ADDR_HI_linear_addr_63_32_shift)
  491. /*define for LINEAR_PITCH word*/
  492. /*define for linear_pitch field*/
  493. #define SDMA_PKT_COPY_TILED_LINEAR_PITCH_linear_pitch_offset 10
  494. #define SDMA_PKT_COPY_TILED_LINEAR_PITCH_linear_pitch_mask 0x0007FFFF
  495. #define SDMA_PKT_COPY_TILED_LINEAR_PITCH_linear_pitch_shift 0
  496. #define SDMA_PKT_COPY_TILED_LINEAR_PITCH_LINEAR_PITCH(x) (((x) & SDMA_PKT_COPY_TILED_LINEAR_PITCH_linear_pitch_mask) << SDMA_PKT_COPY_TILED_LINEAR_PITCH_linear_pitch_shift)
  497. /*define for COUNT word*/
  498. /*define for count field*/
  499. #define SDMA_PKT_COPY_TILED_COUNT_count_offset 11
  500. #define SDMA_PKT_COPY_TILED_COUNT_count_mask 0x000FFFFF
  501. #define SDMA_PKT_COPY_TILED_COUNT_count_shift 0
  502. #define SDMA_PKT_COPY_TILED_COUNT_COUNT(x) (((x) & SDMA_PKT_COPY_TILED_COUNT_count_mask) << SDMA_PKT_COPY_TILED_COUNT_count_shift)
  503. /*
  504. ** Definitions for SDMA_PKT_COPY_L2T_BROADCAST packet
  505. */
  506. /*define for HEADER word*/
  507. /*define for op field*/
  508. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_op_offset 0
  509. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_op_mask 0x000000FF
  510. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_op_shift 0
  511. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_OP(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_HEADER_op_mask) << SDMA_PKT_COPY_L2T_BROADCAST_HEADER_op_shift)
  512. /*define for sub_op field*/
  513. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_sub_op_offset 0
  514. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_sub_op_mask 0x000000FF
  515. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_sub_op_shift 8
  516. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_SUB_OP(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_HEADER_sub_op_mask) << SDMA_PKT_COPY_L2T_BROADCAST_HEADER_sub_op_shift)
  517. /*define for videocopy field*/
  518. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_videocopy_offset 0
  519. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_videocopy_mask 0x00000001
  520. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_videocopy_shift 26
  521. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_VIDEOCOPY(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_HEADER_videocopy_mask) << SDMA_PKT_COPY_L2T_BROADCAST_HEADER_videocopy_shift)
  522. /*define for broadcast field*/
  523. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_broadcast_offset 0
  524. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_broadcast_mask 0x00000001
  525. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_broadcast_shift 27
  526. #define SDMA_PKT_COPY_L2T_BROADCAST_HEADER_BROADCAST(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_HEADER_broadcast_mask) << SDMA_PKT_COPY_L2T_BROADCAST_HEADER_broadcast_shift)
  527. /*define for TILED_ADDR_LO_0 word*/
  528. /*define for tiled_addr0_31_0 field*/
  529. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_LO_0_tiled_addr0_31_0_offset 1
  530. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_LO_0_tiled_addr0_31_0_mask 0xFFFFFFFF
  531. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_LO_0_tiled_addr0_31_0_shift 0
  532. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_LO_0_TILED_ADDR0_31_0(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_LO_0_tiled_addr0_31_0_mask) << SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_LO_0_tiled_addr0_31_0_shift)
  533. /*define for TILED_ADDR_HI_0 word*/
  534. /*define for tiled_addr0_63_32 field*/
  535. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_HI_0_tiled_addr0_63_32_offset 2
  536. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_HI_0_tiled_addr0_63_32_mask 0xFFFFFFFF
  537. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_HI_0_tiled_addr0_63_32_shift 0
  538. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_HI_0_TILED_ADDR0_63_32(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_HI_0_tiled_addr0_63_32_mask) << SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_HI_0_tiled_addr0_63_32_shift)
  539. /*define for TILED_ADDR_LO_1 word*/
  540. /*define for tiled_addr1_31_0 field*/
  541. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_LO_1_tiled_addr1_31_0_offset 3
  542. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_LO_1_tiled_addr1_31_0_mask 0xFFFFFFFF
  543. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_LO_1_tiled_addr1_31_0_shift 0
  544. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_LO_1_TILED_ADDR1_31_0(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_LO_1_tiled_addr1_31_0_mask) << SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_LO_1_tiled_addr1_31_0_shift)
  545. /*define for TILED_ADDR_HI_1 word*/
  546. /*define for tiled_addr1_63_32 field*/
  547. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_HI_1_tiled_addr1_63_32_offset 4
  548. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_HI_1_tiled_addr1_63_32_mask 0xFFFFFFFF
  549. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_HI_1_tiled_addr1_63_32_shift 0
  550. #define SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_HI_1_TILED_ADDR1_63_32(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_HI_1_tiled_addr1_63_32_mask) << SDMA_PKT_COPY_L2T_BROADCAST_TILED_ADDR_HI_1_tiled_addr1_63_32_shift)
  551. /*define for DW_5 word*/
  552. /*define for pitch_in_tile field*/
  553. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_5_pitch_in_tile_offset 5
  554. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_5_pitch_in_tile_mask 0x000007FF
  555. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_5_pitch_in_tile_shift 0
  556. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_5_PITCH_IN_TILE(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_5_pitch_in_tile_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_5_pitch_in_tile_shift)
  557. /*define for height field*/
  558. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_5_height_offset 5
  559. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_5_height_mask 0x00003FFF
  560. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_5_height_shift 16
  561. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_5_HEIGHT(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_5_height_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_5_height_shift)
  562. /*define for DW_6 word*/
  563. /*define for slice_pitch field*/
  564. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_6_slice_pitch_offset 6
  565. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_6_slice_pitch_mask 0x003FFFFF
  566. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_6_slice_pitch_shift 0
  567. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_6_SLICE_PITCH(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_6_slice_pitch_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_6_slice_pitch_shift)
  568. /*define for DW_7 word*/
  569. /*define for element_size field*/
  570. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_element_size_offset 7
  571. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_element_size_mask 0x00000007
  572. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_element_size_shift 0
  573. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_ELEMENT_SIZE(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_7_element_size_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_7_element_size_shift)
  574. /*define for array_mode field*/
  575. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_array_mode_offset 7
  576. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_array_mode_mask 0x0000000F
  577. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_array_mode_shift 3
  578. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_ARRAY_MODE(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_7_array_mode_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_7_array_mode_shift)
  579. /*define for mit_mode field*/
  580. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_mit_mode_offset 7
  581. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_mit_mode_mask 0x00000007
  582. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_mit_mode_shift 8
  583. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_MIT_MODE(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_7_mit_mode_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_7_mit_mode_shift)
  584. /*define for tilesplit_size field*/
  585. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_tilesplit_size_offset 7
  586. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_tilesplit_size_mask 0x00000007
  587. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_tilesplit_size_shift 11
  588. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_TILESPLIT_SIZE(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_7_tilesplit_size_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_7_tilesplit_size_shift)
  589. /*define for bank_w field*/
  590. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_bank_w_offset 7
  591. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_bank_w_mask 0x00000003
  592. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_bank_w_shift 15
  593. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_BANK_W(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_7_bank_w_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_7_bank_w_shift)
  594. /*define for bank_h field*/
  595. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_bank_h_offset 7
  596. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_bank_h_mask 0x00000003
  597. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_bank_h_shift 18
  598. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_BANK_H(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_7_bank_h_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_7_bank_h_shift)
  599. /*define for num_bank field*/
  600. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_num_bank_offset 7
  601. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_num_bank_mask 0x00000003
  602. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_num_bank_shift 21
  603. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_NUM_BANK(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_7_num_bank_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_7_num_bank_shift)
  604. /*define for mat_aspt field*/
  605. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_mat_aspt_offset 7
  606. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_mat_aspt_mask 0x00000003
  607. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_mat_aspt_shift 24
  608. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_MAT_ASPT(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_7_mat_aspt_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_7_mat_aspt_shift)
  609. /*define for pipe_config field*/
  610. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_pipe_config_offset 7
  611. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_pipe_config_mask 0x0000001F
  612. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_pipe_config_shift 26
  613. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_7_PIPE_CONFIG(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_7_pipe_config_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_7_pipe_config_shift)
  614. /*define for DW_8 word*/
  615. /*define for x field*/
  616. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_8_x_offset 8
  617. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_8_x_mask 0x00003FFF
  618. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_8_x_shift 0
  619. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_8_X(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_8_x_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_8_x_shift)
  620. /*define for y field*/
  621. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_8_y_offset 8
  622. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_8_y_mask 0x00003FFF
  623. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_8_y_shift 16
  624. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_8_Y(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_8_y_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_8_y_shift)
  625. /*define for DW_9 word*/
  626. /*define for z field*/
  627. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_9_z_offset 9
  628. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_9_z_mask 0x00000FFF
  629. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_9_z_shift 0
  630. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_9_Z(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_9_z_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_9_z_shift)
  631. /*define for DW_10 word*/
  632. /*define for dst2_sw field*/
  633. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_dst2_sw_offset 10
  634. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_dst2_sw_mask 0x00000003
  635. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_dst2_sw_shift 8
  636. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_DST2_SW(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_10_dst2_sw_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_10_dst2_sw_shift)
  637. /*define for dst2_ha field*/
  638. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_dst2_ha_offset 10
  639. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_dst2_ha_mask 0x00000001
  640. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_dst2_ha_shift 14
  641. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_DST2_HA(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_10_dst2_ha_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_10_dst2_ha_shift)
  642. /*define for linear_sw field*/
  643. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_linear_sw_offset 10
  644. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_linear_sw_mask 0x00000003
  645. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_linear_sw_shift 16
  646. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_LINEAR_SW(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_10_linear_sw_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_10_linear_sw_shift)
  647. /*define for tile_sw field*/
  648. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_tile_sw_offset 10
  649. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_tile_sw_mask 0x00000003
  650. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_tile_sw_shift 24
  651. #define SDMA_PKT_COPY_L2T_BROADCAST_DW_10_TILE_SW(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_DW_10_tile_sw_mask) << SDMA_PKT_COPY_L2T_BROADCAST_DW_10_tile_sw_shift)
  652. /*define for LINEAR_ADDR_LO word*/
  653. /*define for linear_addr_31_0 field*/
  654. #define SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_ADDR_LO_linear_addr_31_0_offset 11
  655. #define SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_ADDR_LO_linear_addr_31_0_mask 0xFFFFFFFF
  656. #define SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_ADDR_LO_linear_addr_31_0_shift 0
  657. #define SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_ADDR_LO_LINEAR_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_ADDR_LO_linear_addr_31_0_mask) << SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_ADDR_LO_linear_addr_31_0_shift)
  658. /*define for LINEAR_ADDR_HI word*/
  659. /*define for linear_addr_63_32 field*/
  660. #define SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_ADDR_HI_linear_addr_63_32_offset 12
  661. #define SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_ADDR_HI_linear_addr_63_32_mask 0xFFFFFFFF
  662. #define SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_ADDR_HI_linear_addr_63_32_shift 0
  663. #define SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_ADDR_HI_LINEAR_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_ADDR_HI_linear_addr_63_32_mask) << SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_ADDR_HI_linear_addr_63_32_shift)
  664. /*define for LINEAR_PITCH word*/
  665. /*define for linear_pitch field*/
  666. #define SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_PITCH_linear_pitch_offset 13
  667. #define SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_PITCH_linear_pitch_mask 0x0007FFFF
  668. #define SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_PITCH_linear_pitch_shift 0
  669. #define SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_PITCH_LINEAR_PITCH(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_PITCH_linear_pitch_mask) << SDMA_PKT_COPY_L2T_BROADCAST_LINEAR_PITCH_linear_pitch_shift)
  670. /*define for COUNT word*/
  671. /*define for count field*/
  672. #define SDMA_PKT_COPY_L2T_BROADCAST_COUNT_count_offset 14
  673. #define SDMA_PKT_COPY_L2T_BROADCAST_COUNT_count_mask 0x000FFFFF
  674. #define SDMA_PKT_COPY_L2T_BROADCAST_COUNT_count_shift 0
  675. #define SDMA_PKT_COPY_L2T_BROADCAST_COUNT_COUNT(x) (((x) & SDMA_PKT_COPY_L2T_BROADCAST_COUNT_count_mask) << SDMA_PKT_COPY_L2T_BROADCAST_COUNT_count_shift)
  676. /*
  677. ** Definitions for SDMA_PKT_COPY_T2T packet
  678. */
  679. /*define for HEADER word*/
  680. /*define for op field*/
  681. #define SDMA_PKT_COPY_T2T_HEADER_op_offset 0
  682. #define SDMA_PKT_COPY_T2T_HEADER_op_mask 0x000000FF
  683. #define SDMA_PKT_COPY_T2T_HEADER_op_shift 0
  684. #define SDMA_PKT_COPY_T2T_HEADER_OP(x) (((x) & SDMA_PKT_COPY_T2T_HEADER_op_mask) << SDMA_PKT_COPY_T2T_HEADER_op_shift)
  685. /*define for sub_op field*/
  686. #define SDMA_PKT_COPY_T2T_HEADER_sub_op_offset 0
  687. #define SDMA_PKT_COPY_T2T_HEADER_sub_op_mask 0x000000FF
  688. #define SDMA_PKT_COPY_T2T_HEADER_sub_op_shift 8
  689. #define SDMA_PKT_COPY_T2T_HEADER_SUB_OP(x) (((x) & SDMA_PKT_COPY_T2T_HEADER_sub_op_mask) << SDMA_PKT_COPY_T2T_HEADER_sub_op_shift)
  690. /*define for SRC_ADDR_LO word*/
  691. /*define for src_addr_31_0 field*/
  692. #define SDMA_PKT_COPY_T2T_SRC_ADDR_LO_src_addr_31_0_offset 1
  693. #define SDMA_PKT_COPY_T2T_SRC_ADDR_LO_src_addr_31_0_mask 0xFFFFFFFF
  694. #define SDMA_PKT_COPY_T2T_SRC_ADDR_LO_src_addr_31_0_shift 0
  695. #define SDMA_PKT_COPY_T2T_SRC_ADDR_LO_SRC_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_T2T_SRC_ADDR_LO_src_addr_31_0_mask) << SDMA_PKT_COPY_T2T_SRC_ADDR_LO_src_addr_31_0_shift)
  696. /*define for SRC_ADDR_HI word*/
  697. /*define for src_addr_63_32 field*/
  698. #define SDMA_PKT_COPY_T2T_SRC_ADDR_HI_src_addr_63_32_offset 2
  699. #define SDMA_PKT_COPY_T2T_SRC_ADDR_HI_src_addr_63_32_mask 0xFFFFFFFF
  700. #define SDMA_PKT_COPY_T2T_SRC_ADDR_HI_src_addr_63_32_shift 0
  701. #define SDMA_PKT_COPY_T2T_SRC_ADDR_HI_SRC_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_T2T_SRC_ADDR_HI_src_addr_63_32_mask) << SDMA_PKT_COPY_T2T_SRC_ADDR_HI_src_addr_63_32_shift)
  702. /*define for DW_3 word*/
  703. /*define for src_x field*/
  704. #define SDMA_PKT_COPY_T2T_DW_3_src_x_offset 3
  705. #define SDMA_PKT_COPY_T2T_DW_3_src_x_mask 0x00003FFF
  706. #define SDMA_PKT_COPY_T2T_DW_3_src_x_shift 0
  707. #define SDMA_PKT_COPY_T2T_DW_3_SRC_X(x) (((x) & SDMA_PKT_COPY_T2T_DW_3_src_x_mask) << SDMA_PKT_COPY_T2T_DW_3_src_x_shift)
  708. /*define for src_y field*/
  709. #define SDMA_PKT_COPY_T2T_DW_3_src_y_offset 3
  710. #define SDMA_PKT_COPY_T2T_DW_3_src_y_mask 0x00003FFF
  711. #define SDMA_PKT_COPY_T2T_DW_3_src_y_shift 16
  712. #define SDMA_PKT_COPY_T2T_DW_3_SRC_Y(x) (((x) & SDMA_PKT_COPY_T2T_DW_3_src_y_mask) << SDMA_PKT_COPY_T2T_DW_3_src_y_shift)
  713. /*define for DW_4 word*/
  714. /*define for src_z field*/
  715. #define SDMA_PKT_COPY_T2T_DW_4_src_z_offset 4
  716. #define SDMA_PKT_COPY_T2T_DW_4_src_z_mask 0x000007FF
  717. #define SDMA_PKT_COPY_T2T_DW_4_src_z_shift 0
  718. #define SDMA_PKT_COPY_T2T_DW_4_SRC_Z(x) (((x) & SDMA_PKT_COPY_T2T_DW_4_src_z_mask) << SDMA_PKT_COPY_T2T_DW_4_src_z_shift)
  719. /*define for src_pitch_in_tile field*/
  720. #define SDMA_PKT_COPY_T2T_DW_4_src_pitch_in_tile_offset 4
  721. #define SDMA_PKT_COPY_T2T_DW_4_src_pitch_in_tile_mask 0x00000FFF
  722. #define SDMA_PKT_COPY_T2T_DW_4_src_pitch_in_tile_shift 16
  723. #define SDMA_PKT_COPY_T2T_DW_4_SRC_PITCH_IN_TILE(x) (((x) & SDMA_PKT_COPY_T2T_DW_4_src_pitch_in_tile_mask) << SDMA_PKT_COPY_T2T_DW_4_src_pitch_in_tile_shift)
  724. /*define for DW_5 word*/
  725. /*define for src_slice_pitch field*/
  726. #define SDMA_PKT_COPY_T2T_DW_5_src_slice_pitch_offset 5
  727. #define SDMA_PKT_COPY_T2T_DW_5_src_slice_pitch_mask 0x003FFFFF
  728. #define SDMA_PKT_COPY_T2T_DW_5_src_slice_pitch_shift 0
  729. #define SDMA_PKT_COPY_T2T_DW_5_SRC_SLICE_PITCH(x) (((x) & SDMA_PKT_COPY_T2T_DW_5_src_slice_pitch_mask) << SDMA_PKT_COPY_T2T_DW_5_src_slice_pitch_shift)
  730. /*define for DW_6 word*/
  731. /*define for src_element_size field*/
  732. #define SDMA_PKT_COPY_T2T_DW_6_src_element_size_offset 6
  733. #define SDMA_PKT_COPY_T2T_DW_6_src_element_size_mask 0x00000007
  734. #define SDMA_PKT_COPY_T2T_DW_6_src_element_size_shift 0
  735. #define SDMA_PKT_COPY_T2T_DW_6_SRC_ELEMENT_SIZE(x) (((x) & SDMA_PKT_COPY_T2T_DW_6_src_element_size_mask) << SDMA_PKT_COPY_T2T_DW_6_src_element_size_shift)
  736. /*define for src_array_mode field*/
  737. #define SDMA_PKT_COPY_T2T_DW_6_src_array_mode_offset 6
  738. #define SDMA_PKT_COPY_T2T_DW_6_src_array_mode_mask 0x0000000F
  739. #define SDMA_PKT_COPY_T2T_DW_6_src_array_mode_shift 3
  740. #define SDMA_PKT_COPY_T2T_DW_6_SRC_ARRAY_MODE(x) (((x) & SDMA_PKT_COPY_T2T_DW_6_src_array_mode_mask) << SDMA_PKT_COPY_T2T_DW_6_src_array_mode_shift)
  741. /*define for src_mit_mode field*/
  742. #define SDMA_PKT_COPY_T2T_DW_6_src_mit_mode_offset 6
  743. #define SDMA_PKT_COPY_T2T_DW_6_src_mit_mode_mask 0x00000007
  744. #define SDMA_PKT_COPY_T2T_DW_6_src_mit_mode_shift 8
  745. #define SDMA_PKT_COPY_T2T_DW_6_SRC_MIT_MODE(x) (((x) & SDMA_PKT_COPY_T2T_DW_6_src_mit_mode_mask) << SDMA_PKT_COPY_T2T_DW_6_src_mit_mode_shift)
  746. /*define for src_tilesplit_size field*/
  747. #define SDMA_PKT_COPY_T2T_DW_6_src_tilesplit_size_offset 6
  748. #define SDMA_PKT_COPY_T2T_DW_6_src_tilesplit_size_mask 0x00000007
  749. #define SDMA_PKT_COPY_T2T_DW_6_src_tilesplit_size_shift 11
  750. #define SDMA_PKT_COPY_T2T_DW_6_SRC_TILESPLIT_SIZE(x) (((x) & SDMA_PKT_COPY_T2T_DW_6_src_tilesplit_size_mask) << SDMA_PKT_COPY_T2T_DW_6_src_tilesplit_size_shift)
  751. /*define for src_bank_w field*/
  752. #define SDMA_PKT_COPY_T2T_DW_6_src_bank_w_offset 6
  753. #define SDMA_PKT_COPY_T2T_DW_6_src_bank_w_mask 0x00000003
  754. #define SDMA_PKT_COPY_T2T_DW_6_src_bank_w_shift 15
  755. #define SDMA_PKT_COPY_T2T_DW_6_SRC_BANK_W(x) (((x) & SDMA_PKT_COPY_T2T_DW_6_src_bank_w_mask) << SDMA_PKT_COPY_T2T_DW_6_src_bank_w_shift)
  756. /*define for src_bank_h field*/
  757. #define SDMA_PKT_COPY_T2T_DW_6_src_bank_h_offset 6
  758. #define SDMA_PKT_COPY_T2T_DW_6_src_bank_h_mask 0x00000003
  759. #define SDMA_PKT_COPY_T2T_DW_6_src_bank_h_shift 18
  760. #define SDMA_PKT_COPY_T2T_DW_6_SRC_BANK_H(x) (((x) & SDMA_PKT_COPY_T2T_DW_6_src_bank_h_mask) << SDMA_PKT_COPY_T2T_DW_6_src_bank_h_shift)
  761. /*define for src_num_bank field*/
  762. #define SDMA_PKT_COPY_T2T_DW_6_src_num_bank_offset 6
  763. #define SDMA_PKT_COPY_T2T_DW_6_src_num_bank_mask 0x00000003
  764. #define SDMA_PKT_COPY_T2T_DW_6_src_num_bank_shift 21
  765. #define SDMA_PKT_COPY_T2T_DW_6_SRC_NUM_BANK(x) (((x) & SDMA_PKT_COPY_T2T_DW_6_src_num_bank_mask) << SDMA_PKT_COPY_T2T_DW_6_src_num_bank_shift)
  766. /*define for src_mat_aspt field*/
  767. #define SDMA_PKT_COPY_T2T_DW_6_src_mat_aspt_offset 6
  768. #define SDMA_PKT_COPY_T2T_DW_6_src_mat_aspt_mask 0x00000003
  769. #define SDMA_PKT_COPY_T2T_DW_6_src_mat_aspt_shift 24
  770. #define SDMA_PKT_COPY_T2T_DW_6_SRC_MAT_ASPT(x) (((x) & SDMA_PKT_COPY_T2T_DW_6_src_mat_aspt_mask) << SDMA_PKT_COPY_T2T_DW_6_src_mat_aspt_shift)
  771. /*define for src_pipe_config field*/
  772. #define SDMA_PKT_COPY_T2T_DW_6_src_pipe_config_offset 6
  773. #define SDMA_PKT_COPY_T2T_DW_6_src_pipe_config_mask 0x0000001F
  774. #define SDMA_PKT_COPY_T2T_DW_6_src_pipe_config_shift 26
  775. #define SDMA_PKT_COPY_T2T_DW_6_SRC_PIPE_CONFIG(x) (((x) & SDMA_PKT_COPY_T2T_DW_6_src_pipe_config_mask) << SDMA_PKT_COPY_T2T_DW_6_src_pipe_config_shift)
  776. /*define for DST_ADDR_LO word*/
  777. /*define for dst_addr_31_0 field*/
  778. #define SDMA_PKT_COPY_T2T_DST_ADDR_LO_dst_addr_31_0_offset 7
  779. #define SDMA_PKT_COPY_T2T_DST_ADDR_LO_dst_addr_31_0_mask 0xFFFFFFFF
  780. #define SDMA_PKT_COPY_T2T_DST_ADDR_LO_dst_addr_31_0_shift 0
  781. #define SDMA_PKT_COPY_T2T_DST_ADDR_LO_DST_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_T2T_DST_ADDR_LO_dst_addr_31_0_mask) << SDMA_PKT_COPY_T2T_DST_ADDR_LO_dst_addr_31_0_shift)
  782. /*define for DST_ADDR_HI word*/
  783. /*define for dst_addr_63_32 field*/
  784. #define SDMA_PKT_COPY_T2T_DST_ADDR_HI_dst_addr_63_32_offset 8
  785. #define SDMA_PKT_COPY_T2T_DST_ADDR_HI_dst_addr_63_32_mask 0xFFFFFFFF
  786. #define SDMA_PKT_COPY_T2T_DST_ADDR_HI_dst_addr_63_32_shift 0
  787. #define SDMA_PKT_COPY_T2T_DST_ADDR_HI_DST_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_T2T_DST_ADDR_HI_dst_addr_63_32_mask) << SDMA_PKT_COPY_T2T_DST_ADDR_HI_dst_addr_63_32_shift)
  788. /*define for DW_9 word*/
  789. /*define for dst_x field*/
  790. #define SDMA_PKT_COPY_T2T_DW_9_dst_x_offset 9
  791. #define SDMA_PKT_COPY_T2T_DW_9_dst_x_mask 0x00003FFF
  792. #define SDMA_PKT_COPY_T2T_DW_9_dst_x_shift 0
  793. #define SDMA_PKT_COPY_T2T_DW_9_DST_X(x) (((x) & SDMA_PKT_COPY_T2T_DW_9_dst_x_mask) << SDMA_PKT_COPY_T2T_DW_9_dst_x_shift)
  794. /*define for dst_y field*/
  795. #define SDMA_PKT_COPY_T2T_DW_9_dst_y_offset 9
  796. #define SDMA_PKT_COPY_T2T_DW_9_dst_y_mask 0x00003FFF
  797. #define SDMA_PKT_COPY_T2T_DW_9_dst_y_shift 16
  798. #define SDMA_PKT_COPY_T2T_DW_9_DST_Y(x) (((x) & SDMA_PKT_COPY_T2T_DW_9_dst_y_mask) << SDMA_PKT_COPY_T2T_DW_9_dst_y_shift)
  799. /*define for DW_10 word*/
  800. /*define for dst_z field*/
  801. #define SDMA_PKT_COPY_T2T_DW_10_dst_z_offset 10
  802. #define SDMA_PKT_COPY_T2T_DW_10_dst_z_mask 0x000007FF
  803. #define SDMA_PKT_COPY_T2T_DW_10_dst_z_shift 0
  804. #define SDMA_PKT_COPY_T2T_DW_10_DST_Z(x) (((x) & SDMA_PKT_COPY_T2T_DW_10_dst_z_mask) << SDMA_PKT_COPY_T2T_DW_10_dst_z_shift)
  805. /*define for dst_pitch_in_tile field*/
  806. #define SDMA_PKT_COPY_T2T_DW_10_dst_pitch_in_tile_offset 10
  807. #define SDMA_PKT_COPY_T2T_DW_10_dst_pitch_in_tile_mask 0x00000FFF
  808. #define SDMA_PKT_COPY_T2T_DW_10_dst_pitch_in_tile_shift 16
  809. #define SDMA_PKT_COPY_T2T_DW_10_DST_PITCH_IN_TILE(x) (((x) & SDMA_PKT_COPY_T2T_DW_10_dst_pitch_in_tile_mask) << SDMA_PKT_COPY_T2T_DW_10_dst_pitch_in_tile_shift)
  810. /*define for DW_11 word*/
  811. /*define for dst_slice_pitch field*/
  812. #define SDMA_PKT_COPY_T2T_DW_11_dst_slice_pitch_offset 11
  813. #define SDMA_PKT_COPY_T2T_DW_11_dst_slice_pitch_mask 0x003FFFFF
  814. #define SDMA_PKT_COPY_T2T_DW_11_dst_slice_pitch_shift 0
  815. #define SDMA_PKT_COPY_T2T_DW_11_DST_SLICE_PITCH(x) (((x) & SDMA_PKT_COPY_T2T_DW_11_dst_slice_pitch_mask) << SDMA_PKT_COPY_T2T_DW_11_dst_slice_pitch_shift)
  816. /*define for DW_12 word*/
  817. /*define for dst_array_mode field*/
  818. #define SDMA_PKT_COPY_T2T_DW_12_dst_array_mode_offset 12
  819. #define SDMA_PKT_COPY_T2T_DW_12_dst_array_mode_mask 0x0000000F
  820. #define SDMA_PKT_COPY_T2T_DW_12_dst_array_mode_shift 3
  821. #define SDMA_PKT_COPY_T2T_DW_12_DST_ARRAY_MODE(x) (((x) & SDMA_PKT_COPY_T2T_DW_12_dst_array_mode_mask) << SDMA_PKT_COPY_T2T_DW_12_dst_array_mode_shift)
  822. /*define for dst_mit_mode field*/
  823. #define SDMA_PKT_COPY_T2T_DW_12_dst_mit_mode_offset 12
  824. #define SDMA_PKT_COPY_T2T_DW_12_dst_mit_mode_mask 0x00000007
  825. #define SDMA_PKT_COPY_T2T_DW_12_dst_mit_mode_shift 8
  826. #define SDMA_PKT_COPY_T2T_DW_12_DST_MIT_MODE(x) (((x) & SDMA_PKT_COPY_T2T_DW_12_dst_mit_mode_mask) << SDMA_PKT_COPY_T2T_DW_12_dst_mit_mode_shift)
  827. /*define for dst_tilesplit_size field*/
  828. #define SDMA_PKT_COPY_T2T_DW_12_dst_tilesplit_size_offset 12
  829. #define SDMA_PKT_COPY_T2T_DW_12_dst_tilesplit_size_mask 0x00000007
  830. #define SDMA_PKT_COPY_T2T_DW_12_dst_tilesplit_size_shift 11
  831. #define SDMA_PKT_COPY_T2T_DW_12_DST_TILESPLIT_SIZE(x) (((x) & SDMA_PKT_COPY_T2T_DW_12_dst_tilesplit_size_mask) << SDMA_PKT_COPY_T2T_DW_12_dst_tilesplit_size_shift)
  832. /*define for dst_bank_w field*/
  833. #define SDMA_PKT_COPY_T2T_DW_12_dst_bank_w_offset 12
  834. #define SDMA_PKT_COPY_T2T_DW_12_dst_bank_w_mask 0x00000003
  835. #define SDMA_PKT_COPY_T2T_DW_12_dst_bank_w_shift 15
  836. #define SDMA_PKT_COPY_T2T_DW_12_DST_BANK_W(x) (((x) & SDMA_PKT_COPY_T2T_DW_12_dst_bank_w_mask) << SDMA_PKT_COPY_T2T_DW_12_dst_bank_w_shift)
  837. /*define for dst_bank_h field*/
  838. #define SDMA_PKT_COPY_T2T_DW_12_dst_bank_h_offset 12
  839. #define SDMA_PKT_COPY_T2T_DW_12_dst_bank_h_mask 0x00000003
  840. #define SDMA_PKT_COPY_T2T_DW_12_dst_bank_h_shift 18
  841. #define SDMA_PKT_COPY_T2T_DW_12_DST_BANK_H(x) (((x) & SDMA_PKT_COPY_T2T_DW_12_dst_bank_h_mask) << SDMA_PKT_COPY_T2T_DW_12_dst_bank_h_shift)
  842. /*define for dst_num_bank field*/
  843. #define SDMA_PKT_COPY_T2T_DW_12_dst_num_bank_offset 12
  844. #define SDMA_PKT_COPY_T2T_DW_12_dst_num_bank_mask 0x00000003
  845. #define SDMA_PKT_COPY_T2T_DW_12_dst_num_bank_shift 21
  846. #define SDMA_PKT_COPY_T2T_DW_12_DST_NUM_BANK(x) (((x) & SDMA_PKT_COPY_T2T_DW_12_dst_num_bank_mask) << SDMA_PKT_COPY_T2T_DW_12_dst_num_bank_shift)
  847. /*define for dst_mat_aspt field*/
  848. #define SDMA_PKT_COPY_T2T_DW_12_dst_mat_aspt_offset 12
  849. #define SDMA_PKT_COPY_T2T_DW_12_dst_mat_aspt_mask 0x00000003
  850. #define SDMA_PKT_COPY_T2T_DW_12_dst_mat_aspt_shift 24
  851. #define SDMA_PKT_COPY_T2T_DW_12_DST_MAT_ASPT(x) (((x) & SDMA_PKT_COPY_T2T_DW_12_dst_mat_aspt_mask) << SDMA_PKT_COPY_T2T_DW_12_dst_mat_aspt_shift)
  852. /*define for dst_pipe_config field*/
  853. #define SDMA_PKT_COPY_T2T_DW_12_dst_pipe_config_offset 12
  854. #define SDMA_PKT_COPY_T2T_DW_12_dst_pipe_config_mask 0x0000001F
  855. #define SDMA_PKT_COPY_T2T_DW_12_dst_pipe_config_shift 26
  856. #define SDMA_PKT_COPY_T2T_DW_12_DST_PIPE_CONFIG(x) (((x) & SDMA_PKT_COPY_T2T_DW_12_dst_pipe_config_mask) << SDMA_PKT_COPY_T2T_DW_12_dst_pipe_config_shift)
  857. /*define for DW_13 word*/
  858. /*define for rect_x field*/
  859. #define SDMA_PKT_COPY_T2T_DW_13_rect_x_offset 13
  860. #define SDMA_PKT_COPY_T2T_DW_13_rect_x_mask 0x00003FFF
  861. #define SDMA_PKT_COPY_T2T_DW_13_rect_x_shift 0
  862. #define SDMA_PKT_COPY_T2T_DW_13_RECT_X(x) (((x) & SDMA_PKT_COPY_T2T_DW_13_rect_x_mask) << SDMA_PKT_COPY_T2T_DW_13_rect_x_shift)
  863. /*define for rect_y field*/
  864. #define SDMA_PKT_COPY_T2T_DW_13_rect_y_offset 13
  865. #define SDMA_PKT_COPY_T2T_DW_13_rect_y_mask 0x00003FFF
  866. #define SDMA_PKT_COPY_T2T_DW_13_rect_y_shift 16
  867. #define SDMA_PKT_COPY_T2T_DW_13_RECT_Y(x) (((x) & SDMA_PKT_COPY_T2T_DW_13_rect_y_mask) << SDMA_PKT_COPY_T2T_DW_13_rect_y_shift)
  868. /*define for DW_14 word*/
  869. /*define for rect_z field*/
  870. #define SDMA_PKT_COPY_T2T_DW_14_rect_z_offset 14
  871. #define SDMA_PKT_COPY_T2T_DW_14_rect_z_mask 0x000007FF
  872. #define SDMA_PKT_COPY_T2T_DW_14_rect_z_shift 0
  873. #define SDMA_PKT_COPY_T2T_DW_14_RECT_Z(x) (((x) & SDMA_PKT_COPY_T2T_DW_14_rect_z_mask) << SDMA_PKT_COPY_T2T_DW_14_rect_z_shift)
  874. /*define for dst_sw field*/
  875. #define SDMA_PKT_COPY_T2T_DW_14_dst_sw_offset 14
  876. #define SDMA_PKT_COPY_T2T_DW_14_dst_sw_mask 0x00000003
  877. #define SDMA_PKT_COPY_T2T_DW_14_dst_sw_shift 16
  878. #define SDMA_PKT_COPY_T2T_DW_14_DST_SW(x) (((x) & SDMA_PKT_COPY_T2T_DW_14_dst_sw_mask) << SDMA_PKT_COPY_T2T_DW_14_dst_sw_shift)
  879. /*define for src_sw field*/
  880. #define SDMA_PKT_COPY_T2T_DW_14_src_sw_offset 14
  881. #define SDMA_PKT_COPY_T2T_DW_14_src_sw_mask 0x00000003
  882. #define SDMA_PKT_COPY_T2T_DW_14_src_sw_shift 24
  883. #define SDMA_PKT_COPY_T2T_DW_14_SRC_SW(x) (((x) & SDMA_PKT_COPY_T2T_DW_14_src_sw_mask) << SDMA_PKT_COPY_T2T_DW_14_src_sw_shift)
  884. /*
  885. ** Definitions for SDMA_PKT_COPY_TILED_SUBWIN packet
  886. */
  887. /*define for HEADER word*/
  888. /*define for op field*/
  889. #define SDMA_PKT_COPY_TILED_SUBWIN_HEADER_op_offset 0
  890. #define SDMA_PKT_COPY_TILED_SUBWIN_HEADER_op_mask 0x000000FF
  891. #define SDMA_PKT_COPY_TILED_SUBWIN_HEADER_op_shift 0
  892. #define SDMA_PKT_COPY_TILED_SUBWIN_HEADER_OP(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_HEADER_op_mask) << SDMA_PKT_COPY_TILED_SUBWIN_HEADER_op_shift)
  893. /*define for sub_op field*/
  894. #define SDMA_PKT_COPY_TILED_SUBWIN_HEADER_sub_op_offset 0
  895. #define SDMA_PKT_COPY_TILED_SUBWIN_HEADER_sub_op_mask 0x000000FF
  896. #define SDMA_PKT_COPY_TILED_SUBWIN_HEADER_sub_op_shift 8
  897. #define SDMA_PKT_COPY_TILED_SUBWIN_HEADER_SUB_OP(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_HEADER_sub_op_mask) << SDMA_PKT_COPY_TILED_SUBWIN_HEADER_sub_op_shift)
  898. /*define for detile field*/
  899. #define SDMA_PKT_COPY_TILED_SUBWIN_HEADER_detile_offset 0
  900. #define SDMA_PKT_COPY_TILED_SUBWIN_HEADER_detile_mask 0x00000001
  901. #define SDMA_PKT_COPY_TILED_SUBWIN_HEADER_detile_shift 31
  902. #define SDMA_PKT_COPY_TILED_SUBWIN_HEADER_DETILE(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_HEADER_detile_mask) << SDMA_PKT_COPY_TILED_SUBWIN_HEADER_detile_shift)
  903. /*define for TILED_ADDR_LO word*/
  904. /*define for tiled_addr_31_0 field*/
  905. #define SDMA_PKT_COPY_TILED_SUBWIN_TILED_ADDR_LO_tiled_addr_31_0_offset 1
  906. #define SDMA_PKT_COPY_TILED_SUBWIN_TILED_ADDR_LO_tiled_addr_31_0_mask 0xFFFFFFFF
  907. #define SDMA_PKT_COPY_TILED_SUBWIN_TILED_ADDR_LO_tiled_addr_31_0_shift 0
  908. #define SDMA_PKT_COPY_TILED_SUBWIN_TILED_ADDR_LO_TILED_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_TILED_ADDR_LO_tiled_addr_31_0_mask) << SDMA_PKT_COPY_TILED_SUBWIN_TILED_ADDR_LO_tiled_addr_31_0_shift)
  909. /*define for TILED_ADDR_HI word*/
  910. /*define for tiled_addr_63_32 field*/
  911. #define SDMA_PKT_COPY_TILED_SUBWIN_TILED_ADDR_HI_tiled_addr_63_32_offset 2
  912. #define SDMA_PKT_COPY_TILED_SUBWIN_TILED_ADDR_HI_tiled_addr_63_32_mask 0xFFFFFFFF
  913. #define SDMA_PKT_COPY_TILED_SUBWIN_TILED_ADDR_HI_tiled_addr_63_32_shift 0
  914. #define SDMA_PKT_COPY_TILED_SUBWIN_TILED_ADDR_HI_TILED_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_TILED_ADDR_HI_tiled_addr_63_32_mask) << SDMA_PKT_COPY_TILED_SUBWIN_TILED_ADDR_HI_tiled_addr_63_32_shift)
  915. /*define for DW_3 word*/
  916. /*define for tiled_x field*/
  917. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_3_tiled_x_offset 3
  918. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_3_tiled_x_mask 0x00003FFF
  919. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_3_tiled_x_shift 0
  920. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_3_TILED_X(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_3_tiled_x_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_3_tiled_x_shift)
  921. /*define for tiled_y field*/
  922. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_3_tiled_y_offset 3
  923. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_3_tiled_y_mask 0x00003FFF
  924. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_3_tiled_y_shift 16
  925. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_3_TILED_Y(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_3_tiled_y_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_3_tiled_y_shift)
  926. /*define for DW_4 word*/
  927. /*define for tiled_z field*/
  928. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_4_tiled_z_offset 4
  929. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_4_tiled_z_mask 0x000007FF
  930. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_4_tiled_z_shift 0
  931. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_4_TILED_Z(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_4_tiled_z_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_4_tiled_z_shift)
  932. /*define for pitch_in_tile field*/
  933. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_4_pitch_in_tile_offset 4
  934. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_4_pitch_in_tile_mask 0x00000FFF
  935. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_4_pitch_in_tile_shift 16
  936. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_4_PITCH_IN_TILE(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_4_pitch_in_tile_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_4_pitch_in_tile_shift)
  937. /*define for DW_5 word*/
  938. /*define for slice_pitch field*/
  939. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_5_slice_pitch_offset 5
  940. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_5_slice_pitch_mask 0x003FFFFF
  941. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_5_slice_pitch_shift 0
  942. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_5_SLICE_PITCH(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_5_slice_pitch_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_5_slice_pitch_shift)
  943. /*define for DW_6 word*/
  944. /*define for element_size field*/
  945. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_element_size_offset 6
  946. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_element_size_mask 0x00000007
  947. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_element_size_shift 0
  948. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_ELEMENT_SIZE(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_6_element_size_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_6_element_size_shift)
  949. /*define for array_mode field*/
  950. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_array_mode_offset 6
  951. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_array_mode_mask 0x0000000F
  952. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_array_mode_shift 3
  953. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_ARRAY_MODE(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_6_array_mode_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_6_array_mode_shift)
  954. /*define for mit_mode field*/
  955. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_mit_mode_offset 6
  956. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_mit_mode_mask 0x00000007
  957. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_mit_mode_shift 8
  958. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_MIT_MODE(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_6_mit_mode_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_6_mit_mode_shift)
  959. /*define for tilesplit_size field*/
  960. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_tilesplit_size_offset 6
  961. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_tilesplit_size_mask 0x00000007
  962. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_tilesplit_size_shift 11
  963. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_TILESPLIT_SIZE(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_6_tilesplit_size_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_6_tilesplit_size_shift)
  964. /*define for bank_w field*/
  965. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_bank_w_offset 6
  966. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_bank_w_mask 0x00000003
  967. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_bank_w_shift 15
  968. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_BANK_W(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_6_bank_w_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_6_bank_w_shift)
  969. /*define for bank_h field*/
  970. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_bank_h_offset 6
  971. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_bank_h_mask 0x00000003
  972. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_bank_h_shift 18
  973. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_BANK_H(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_6_bank_h_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_6_bank_h_shift)
  974. /*define for num_bank field*/
  975. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_num_bank_offset 6
  976. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_num_bank_mask 0x00000003
  977. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_num_bank_shift 21
  978. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_NUM_BANK(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_6_num_bank_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_6_num_bank_shift)
  979. /*define for mat_aspt field*/
  980. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_mat_aspt_offset 6
  981. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_mat_aspt_mask 0x00000003
  982. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_mat_aspt_shift 24
  983. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_MAT_ASPT(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_6_mat_aspt_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_6_mat_aspt_shift)
  984. /*define for pipe_config field*/
  985. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_pipe_config_offset 6
  986. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_pipe_config_mask 0x0000001F
  987. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_pipe_config_shift 26
  988. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_6_PIPE_CONFIG(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_6_pipe_config_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_6_pipe_config_shift)
  989. /*define for LINEAR_ADDR_LO word*/
  990. /*define for linear_addr_31_0 field*/
  991. #define SDMA_PKT_COPY_TILED_SUBWIN_LINEAR_ADDR_LO_linear_addr_31_0_offset 7
  992. #define SDMA_PKT_COPY_TILED_SUBWIN_LINEAR_ADDR_LO_linear_addr_31_0_mask 0xFFFFFFFF
  993. #define SDMA_PKT_COPY_TILED_SUBWIN_LINEAR_ADDR_LO_linear_addr_31_0_shift 0
  994. #define SDMA_PKT_COPY_TILED_SUBWIN_LINEAR_ADDR_LO_LINEAR_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_LINEAR_ADDR_LO_linear_addr_31_0_mask) << SDMA_PKT_COPY_TILED_SUBWIN_LINEAR_ADDR_LO_linear_addr_31_0_shift)
  995. /*define for LINEAR_ADDR_HI word*/
  996. /*define for linear_addr_63_32 field*/
  997. #define SDMA_PKT_COPY_TILED_SUBWIN_LINEAR_ADDR_HI_linear_addr_63_32_offset 8
  998. #define SDMA_PKT_COPY_TILED_SUBWIN_LINEAR_ADDR_HI_linear_addr_63_32_mask 0xFFFFFFFF
  999. #define SDMA_PKT_COPY_TILED_SUBWIN_LINEAR_ADDR_HI_linear_addr_63_32_shift 0
  1000. #define SDMA_PKT_COPY_TILED_SUBWIN_LINEAR_ADDR_HI_LINEAR_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_LINEAR_ADDR_HI_linear_addr_63_32_mask) << SDMA_PKT_COPY_TILED_SUBWIN_LINEAR_ADDR_HI_linear_addr_63_32_shift)
  1001. /*define for DW_9 word*/
  1002. /*define for linear_x field*/
  1003. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_9_linear_x_offset 9
  1004. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_9_linear_x_mask 0x00003FFF
  1005. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_9_linear_x_shift 0
  1006. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_9_LINEAR_X(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_9_linear_x_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_9_linear_x_shift)
  1007. /*define for linear_y field*/
  1008. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_9_linear_y_offset 9
  1009. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_9_linear_y_mask 0x00003FFF
  1010. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_9_linear_y_shift 16
  1011. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_9_LINEAR_Y(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_9_linear_y_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_9_linear_y_shift)
  1012. /*define for DW_10 word*/
  1013. /*define for linear_z field*/
  1014. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_10_linear_z_offset 10
  1015. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_10_linear_z_mask 0x000007FF
  1016. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_10_linear_z_shift 0
  1017. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_10_LINEAR_Z(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_10_linear_z_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_10_linear_z_shift)
  1018. /*define for linear_pitch field*/
  1019. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_10_linear_pitch_offset 10
  1020. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_10_linear_pitch_mask 0x00003FFF
  1021. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_10_linear_pitch_shift 16
  1022. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_10_LINEAR_PITCH(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_10_linear_pitch_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_10_linear_pitch_shift)
  1023. /*define for DW_11 word*/
  1024. /*define for linear_slice_pitch field*/
  1025. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_11_linear_slice_pitch_offset 11
  1026. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_11_linear_slice_pitch_mask 0x0FFFFFFF
  1027. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_11_linear_slice_pitch_shift 0
  1028. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_11_LINEAR_SLICE_PITCH(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_11_linear_slice_pitch_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_11_linear_slice_pitch_shift)
  1029. /*define for DW_12 word*/
  1030. /*define for rect_x field*/
  1031. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_12_rect_x_offset 12
  1032. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_12_rect_x_mask 0x00003FFF
  1033. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_12_rect_x_shift 0
  1034. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_12_RECT_X(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_12_rect_x_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_12_rect_x_shift)
  1035. /*define for rect_y field*/
  1036. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_12_rect_y_offset 12
  1037. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_12_rect_y_mask 0x00003FFF
  1038. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_12_rect_y_shift 16
  1039. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_12_RECT_Y(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_12_rect_y_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_12_rect_y_shift)
  1040. /*define for DW_13 word*/
  1041. /*define for rect_z field*/
  1042. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_13_rect_z_offset 13
  1043. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_13_rect_z_mask 0x000007FF
  1044. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_13_rect_z_shift 0
  1045. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_13_RECT_Z(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_13_rect_z_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_13_rect_z_shift)
  1046. /*define for linear_sw field*/
  1047. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_13_linear_sw_offset 13
  1048. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_13_linear_sw_mask 0x00000003
  1049. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_13_linear_sw_shift 16
  1050. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_13_LINEAR_SW(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_13_linear_sw_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_13_linear_sw_shift)
  1051. /*define for tile_sw field*/
  1052. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_13_tile_sw_offset 13
  1053. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_13_tile_sw_mask 0x00000003
  1054. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_13_tile_sw_shift 24
  1055. #define SDMA_PKT_COPY_TILED_SUBWIN_DW_13_TILE_SW(x) (((x) & SDMA_PKT_COPY_TILED_SUBWIN_DW_13_tile_sw_mask) << SDMA_PKT_COPY_TILED_SUBWIN_DW_13_tile_sw_shift)
  1056. /*
  1057. ** Definitions for SDMA_PKT_COPY_STRUCT packet
  1058. */
  1059. /*define for HEADER word*/
  1060. /*define for op field*/
  1061. #define SDMA_PKT_COPY_STRUCT_HEADER_op_offset 0
  1062. #define SDMA_PKT_COPY_STRUCT_HEADER_op_mask 0x000000FF
  1063. #define SDMA_PKT_COPY_STRUCT_HEADER_op_shift 0
  1064. #define SDMA_PKT_COPY_STRUCT_HEADER_OP(x) (((x) & SDMA_PKT_COPY_STRUCT_HEADER_op_mask) << SDMA_PKT_COPY_STRUCT_HEADER_op_shift)
  1065. /*define for sub_op field*/
  1066. #define SDMA_PKT_COPY_STRUCT_HEADER_sub_op_offset 0
  1067. #define SDMA_PKT_COPY_STRUCT_HEADER_sub_op_mask 0x000000FF
  1068. #define SDMA_PKT_COPY_STRUCT_HEADER_sub_op_shift 8
  1069. #define SDMA_PKT_COPY_STRUCT_HEADER_SUB_OP(x) (((x) & SDMA_PKT_COPY_STRUCT_HEADER_sub_op_mask) << SDMA_PKT_COPY_STRUCT_HEADER_sub_op_shift)
  1070. /*define for detile field*/
  1071. #define SDMA_PKT_COPY_STRUCT_HEADER_detile_offset 0
  1072. #define SDMA_PKT_COPY_STRUCT_HEADER_detile_mask 0x00000001
  1073. #define SDMA_PKT_COPY_STRUCT_HEADER_detile_shift 31
  1074. #define SDMA_PKT_COPY_STRUCT_HEADER_DETILE(x) (((x) & SDMA_PKT_COPY_STRUCT_HEADER_detile_mask) << SDMA_PKT_COPY_STRUCT_HEADER_detile_shift)
  1075. /*define for SB_ADDR_LO word*/
  1076. /*define for sb_addr_31_0 field*/
  1077. #define SDMA_PKT_COPY_STRUCT_SB_ADDR_LO_sb_addr_31_0_offset 1
  1078. #define SDMA_PKT_COPY_STRUCT_SB_ADDR_LO_sb_addr_31_0_mask 0xFFFFFFFF
  1079. #define SDMA_PKT_COPY_STRUCT_SB_ADDR_LO_sb_addr_31_0_shift 0
  1080. #define SDMA_PKT_COPY_STRUCT_SB_ADDR_LO_SB_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_STRUCT_SB_ADDR_LO_sb_addr_31_0_mask) << SDMA_PKT_COPY_STRUCT_SB_ADDR_LO_sb_addr_31_0_shift)
  1081. /*define for SB_ADDR_HI word*/
  1082. /*define for sb_addr_63_32 field*/
  1083. #define SDMA_PKT_COPY_STRUCT_SB_ADDR_HI_sb_addr_63_32_offset 2
  1084. #define SDMA_PKT_COPY_STRUCT_SB_ADDR_HI_sb_addr_63_32_mask 0xFFFFFFFF
  1085. #define SDMA_PKT_COPY_STRUCT_SB_ADDR_HI_sb_addr_63_32_shift 0
  1086. #define SDMA_PKT_COPY_STRUCT_SB_ADDR_HI_SB_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_STRUCT_SB_ADDR_HI_sb_addr_63_32_mask) << SDMA_PKT_COPY_STRUCT_SB_ADDR_HI_sb_addr_63_32_shift)
  1087. /*define for START_INDEX word*/
  1088. /*define for start_index field*/
  1089. #define SDMA_PKT_COPY_STRUCT_START_INDEX_start_index_offset 3
  1090. #define SDMA_PKT_COPY_STRUCT_START_INDEX_start_index_mask 0xFFFFFFFF
  1091. #define SDMA_PKT_COPY_STRUCT_START_INDEX_start_index_shift 0
  1092. #define SDMA_PKT_COPY_STRUCT_START_INDEX_START_INDEX(x) (((x) & SDMA_PKT_COPY_STRUCT_START_INDEX_start_index_mask) << SDMA_PKT_COPY_STRUCT_START_INDEX_start_index_shift)
  1093. /*define for COUNT word*/
  1094. /*define for count field*/
  1095. #define SDMA_PKT_COPY_STRUCT_COUNT_count_offset 4
  1096. #define SDMA_PKT_COPY_STRUCT_COUNT_count_mask 0xFFFFFFFF
  1097. #define SDMA_PKT_COPY_STRUCT_COUNT_count_shift 0
  1098. #define SDMA_PKT_COPY_STRUCT_COUNT_COUNT(x) (((x) & SDMA_PKT_COPY_STRUCT_COUNT_count_mask) << SDMA_PKT_COPY_STRUCT_COUNT_count_shift)
  1099. /*define for DW_5 word*/
  1100. /*define for stride field*/
  1101. #define SDMA_PKT_COPY_STRUCT_DW_5_stride_offset 5
  1102. #define SDMA_PKT_COPY_STRUCT_DW_5_stride_mask 0x000007FF
  1103. #define SDMA_PKT_COPY_STRUCT_DW_5_stride_shift 0
  1104. #define SDMA_PKT_COPY_STRUCT_DW_5_STRIDE(x) (((x) & SDMA_PKT_COPY_STRUCT_DW_5_stride_mask) << SDMA_PKT_COPY_STRUCT_DW_5_stride_shift)
  1105. /*define for struct_sw field*/
  1106. #define SDMA_PKT_COPY_STRUCT_DW_5_struct_sw_offset 5
  1107. #define SDMA_PKT_COPY_STRUCT_DW_5_struct_sw_mask 0x00000003
  1108. #define SDMA_PKT_COPY_STRUCT_DW_5_struct_sw_shift 16
  1109. #define SDMA_PKT_COPY_STRUCT_DW_5_STRUCT_SW(x) (((x) & SDMA_PKT_COPY_STRUCT_DW_5_struct_sw_mask) << SDMA_PKT_COPY_STRUCT_DW_5_struct_sw_shift)
  1110. /*define for struct_ha field*/
  1111. #define SDMA_PKT_COPY_STRUCT_DW_5_struct_ha_offset 5
  1112. #define SDMA_PKT_COPY_STRUCT_DW_5_struct_ha_mask 0x00000001
  1113. #define SDMA_PKT_COPY_STRUCT_DW_5_struct_ha_shift 22
  1114. #define SDMA_PKT_COPY_STRUCT_DW_5_STRUCT_HA(x) (((x) & SDMA_PKT_COPY_STRUCT_DW_5_struct_ha_mask) << SDMA_PKT_COPY_STRUCT_DW_5_struct_ha_shift)
  1115. /*define for linear_sw field*/
  1116. #define SDMA_PKT_COPY_STRUCT_DW_5_linear_sw_offset 5
  1117. #define SDMA_PKT_COPY_STRUCT_DW_5_linear_sw_mask 0x00000003
  1118. #define SDMA_PKT_COPY_STRUCT_DW_5_linear_sw_shift 24
  1119. #define SDMA_PKT_COPY_STRUCT_DW_5_LINEAR_SW(x) (((x) & SDMA_PKT_COPY_STRUCT_DW_5_linear_sw_mask) << SDMA_PKT_COPY_STRUCT_DW_5_linear_sw_shift)
  1120. /*define for linear_ha field*/
  1121. #define SDMA_PKT_COPY_STRUCT_DW_5_linear_ha_offset 5
  1122. #define SDMA_PKT_COPY_STRUCT_DW_5_linear_ha_mask 0x00000001
  1123. #define SDMA_PKT_COPY_STRUCT_DW_5_linear_ha_shift 30
  1124. #define SDMA_PKT_COPY_STRUCT_DW_5_LINEAR_HA(x) (((x) & SDMA_PKT_COPY_STRUCT_DW_5_linear_ha_mask) << SDMA_PKT_COPY_STRUCT_DW_5_linear_ha_shift)
  1125. /*define for LINEAR_ADDR_LO word*/
  1126. /*define for linear_addr_31_0 field*/
  1127. #define SDMA_PKT_COPY_STRUCT_LINEAR_ADDR_LO_linear_addr_31_0_offset 6
  1128. #define SDMA_PKT_COPY_STRUCT_LINEAR_ADDR_LO_linear_addr_31_0_mask 0xFFFFFFFF
  1129. #define SDMA_PKT_COPY_STRUCT_LINEAR_ADDR_LO_linear_addr_31_0_shift 0
  1130. #define SDMA_PKT_COPY_STRUCT_LINEAR_ADDR_LO_LINEAR_ADDR_31_0(x) (((x) & SDMA_PKT_COPY_STRUCT_LINEAR_ADDR_LO_linear_addr_31_0_mask) << SDMA_PKT_COPY_STRUCT_LINEAR_ADDR_LO_linear_addr_31_0_shift)
  1131. /*define for LINEAR_ADDR_HI word*/
  1132. /*define for linear_addr_63_32 field*/
  1133. #define SDMA_PKT_COPY_STRUCT_LINEAR_ADDR_HI_linear_addr_63_32_offset 7
  1134. #define SDMA_PKT_COPY_STRUCT_LINEAR_ADDR_HI_linear_addr_63_32_mask 0xFFFFFFFF
  1135. #define SDMA_PKT_COPY_STRUCT_LINEAR_ADDR_HI_linear_addr_63_32_shift 0
  1136. #define SDMA_PKT_COPY_STRUCT_LINEAR_ADDR_HI_LINEAR_ADDR_63_32(x) (((x) & SDMA_PKT_COPY_STRUCT_LINEAR_ADDR_HI_linear_addr_63_32_mask) << SDMA_PKT_COPY_STRUCT_LINEAR_ADDR_HI_linear_addr_63_32_shift)
  1137. /*
  1138. ** Definitions for SDMA_PKT_WRITE_UNTILED packet
  1139. */
  1140. /*define for HEADER word*/
  1141. /*define for op field*/
  1142. #define SDMA_PKT_WRITE_UNTILED_HEADER_op_offset 0
  1143. #define SDMA_PKT_WRITE_UNTILED_HEADER_op_mask 0x000000FF
  1144. #define SDMA_PKT_WRITE_UNTILED_HEADER_op_shift 0
  1145. #define SDMA_PKT_WRITE_UNTILED_HEADER_OP(x) (((x) & SDMA_PKT_WRITE_UNTILED_HEADER_op_mask) << SDMA_PKT_WRITE_UNTILED_HEADER_op_shift)
  1146. /*define for sub_op field*/
  1147. #define SDMA_PKT_WRITE_UNTILED_HEADER_sub_op_offset 0
  1148. #define SDMA_PKT_WRITE_UNTILED_HEADER_sub_op_mask 0x000000FF
  1149. #define SDMA_PKT_WRITE_UNTILED_HEADER_sub_op_shift 8
  1150. #define SDMA_PKT_WRITE_UNTILED_HEADER_SUB_OP(x) (((x) & SDMA_PKT_WRITE_UNTILED_HEADER_sub_op_mask) << SDMA_PKT_WRITE_UNTILED_HEADER_sub_op_shift)
  1151. /*define for DST_ADDR_LO word*/
  1152. /*define for dst_addr_31_0 field*/
  1153. #define SDMA_PKT_WRITE_UNTILED_DST_ADDR_LO_dst_addr_31_0_offset 1
  1154. #define SDMA_PKT_WRITE_UNTILED_DST_ADDR_LO_dst_addr_31_0_mask 0xFFFFFFFF
  1155. #define SDMA_PKT_WRITE_UNTILED_DST_ADDR_LO_dst_addr_31_0_shift 0
  1156. #define SDMA_PKT_WRITE_UNTILED_DST_ADDR_LO_DST_ADDR_31_0(x) (((x) & SDMA_PKT_WRITE_UNTILED_DST_ADDR_LO_dst_addr_31_0_mask) << SDMA_PKT_WRITE_UNTILED_DST_ADDR_LO_dst_addr_31_0_shift)
  1157. /*define for DST_ADDR_HI word*/
  1158. /*define for dst_addr_63_32 field*/
  1159. #define SDMA_PKT_WRITE_UNTILED_DST_ADDR_HI_dst_addr_63_32_offset 2
  1160. #define SDMA_PKT_WRITE_UNTILED_DST_ADDR_HI_dst_addr_63_32_mask 0xFFFFFFFF
  1161. #define SDMA_PKT_WRITE_UNTILED_DST_ADDR_HI_dst_addr_63_32_shift 0
  1162. #define SDMA_PKT_WRITE_UNTILED_DST_ADDR_HI_DST_ADDR_63_32(x) (((x) & SDMA_PKT_WRITE_UNTILED_DST_ADDR_HI_dst_addr_63_32_mask) << SDMA_PKT_WRITE_UNTILED_DST_ADDR_HI_dst_addr_63_32_shift)
  1163. /*define for DW_3 word*/
  1164. /*define for count field*/
  1165. #define SDMA_PKT_WRITE_UNTILED_DW_3_count_offset 3
  1166. #define SDMA_PKT_WRITE_UNTILED_DW_3_count_mask 0x003FFFFF
  1167. #define SDMA_PKT_WRITE_UNTILED_DW_3_count_shift 0
  1168. #define SDMA_PKT_WRITE_UNTILED_DW_3_COUNT(x) (((x) & SDMA_PKT_WRITE_UNTILED_DW_3_count_mask) << SDMA_PKT_WRITE_UNTILED_DW_3_count_shift)
  1169. /*define for sw field*/
  1170. #define SDMA_PKT_WRITE_UNTILED_DW_3_sw_offset 3
  1171. #define SDMA_PKT_WRITE_UNTILED_DW_3_sw_mask 0x00000003
  1172. #define SDMA_PKT_WRITE_UNTILED_DW_3_sw_shift 24
  1173. #define SDMA_PKT_WRITE_UNTILED_DW_3_SW(x) (((x) & SDMA_PKT_WRITE_UNTILED_DW_3_sw_mask) << SDMA_PKT_WRITE_UNTILED_DW_3_sw_shift)
  1174. /*define for DATA0 word*/
  1175. /*define for data0 field*/
  1176. #define SDMA_PKT_WRITE_UNTILED_DATA0_data0_offset 4
  1177. #define SDMA_PKT_WRITE_UNTILED_DATA0_data0_mask 0xFFFFFFFF
  1178. #define SDMA_PKT_WRITE_UNTILED_DATA0_data0_shift 0
  1179. #define SDMA_PKT_WRITE_UNTILED_DATA0_DATA0(x) (((x) & SDMA_PKT_WRITE_UNTILED_DATA0_data0_mask) << SDMA_PKT_WRITE_UNTILED_DATA0_data0_shift)
  1180. /*
  1181. ** Definitions for SDMA_PKT_WRITE_TILED packet
  1182. */
  1183. /*define for HEADER word*/
  1184. /*define for op field*/
  1185. #define SDMA_PKT_WRITE_TILED_HEADER_op_offset 0
  1186. #define SDMA_PKT_WRITE_TILED_HEADER_op_mask 0x000000FF
  1187. #define SDMA_PKT_WRITE_TILED_HEADER_op_shift 0
  1188. #define SDMA_PKT_WRITE_TILED_HEADER_OP(x) (((x) & SDMA_PKT_WRITE_TILED_HEADER_op_mask) << SDMA_PKT_WRITE_TILED_HEADER_op_shift)
  1189. /*define for sub_op field*/
  1190. #define SDMA_PKT_WRITE_TILED_HEADER_sub_op_offset 0
  1191. #define SDMA_PKT_WRITE_TILED_HEADER_sub_op_mask 0x000000FF
  1192. #define SDMA_PKT_WRITE_TILED_HEADER_sub_op_shift 8
  1193. #define SDMA_PKT_WRITE_TILED_HEADER_SUB_OP(x) (((x) & SDMA_PKT_WRITE_TILED_HEADER_sub_op_mask) << SDMA_PKT_WRITE_TILED_HEADER_sub_op_shift)
  1194. /*define for DST_ADDR_LO word*/
  1195. /*define for dst_addr_31_0 field*/
  1196. #define SDMA_PKT_WRITE_TILED_DST_ADDR_LO_dst_addr_31_0_offset 1
  1197. #define SDMA_PKT_WRITE_TILED_DST_ADDR_LO_dst_addr_31_0_mask 0xFFFFFFFF
  1198. #define SDMA_PKT_WRITE_TILED_DST_ADDR_LO_dst_addr_31_0_shift 0
  1199. #define SDMA_PKT_WRITE_TILED_DST_ADDR_LO_DST_ADDR_31_0(x) (((x) & SDMA_PKT_WRITE_TILED_DST_ADDR_LO_dst_addr_31_0_mask) << SDMA_PKT_WRITE_TILED_DST_ADDR_LO_dst_addr_31_0_shift)
  1200. /*define for DST_ADDR_HI word*/
  1201. /*define for dst_addr_63_32 field*/
  1202. #define SDMA_PKT_WRITE_TILED_DST_ADDR_HI_dst_addr_63_32_offset 2
  1203. #define SDMA_PKT_WRITE_TILED_DST_ADDR_HI_dst_addr_63_32_mask 0xFFFFFFFF
  1204. #define SDMA_PKT_WRITE_TILED_DST_ADDR_HI_dst_addr_63_32_shift 0
  1205. #define SDMA_PKT_WRITE_TILED_DST_ADDR_HI_DST_ADDR_63_32(x) (((x) & SDMA_PKT_WRITE_TILED_DST_ADDR_HI_dst_addr_63_32_mask) << SDMA_PKT_WRITE_TILED_DST_ADDR_HI_dst_addr_63_32_shift)
  1206. /*define for DW_3 word*/
  1207. /*define for pitch_in_tile field*/
  1208. #define SDMA_PKT_WRITE_TILED_DW_3_pitch_in_tile_offset 3
  1209. #define SDMA_PKT_WRITE_TILED_DW_3_pitch_in_tile_mask 0x000007FF
  1210. #define SDMA_PKT_WRITE_TILED_DW_3_pitch_in_tile_shift 0
  1211. #define SDMA_PKT_WRITE_TILED_DW_3_PITCH_IN_TILE(x) (((x) & SDMA_PKT_WRITE_TILED_DW_3_pitch_in_tile_mask) << SDMA_PKT_WRITE_TILED_DW_3_pitch_in_tile_shift)
  1212. /*define for height field*/
  1213. #define SDMA_PKT_WRITE_TILED_DW_3_height_offset 3
  1214. #define SDMA_PKT_WRITE_TILED_DW_3_height_mask 0x00003FFF
  1215. #define SDMA_PKT_WRITE_TILED_DW_3_height_shift 16
  1216. #define SDMA_PKT_WRITE_TILED_DW_3_HEIGHT(x) (((x) & SDMA_PKT_WRITE_TILED_DW_3_height_mask) << SDMA_PKT_WRITE_TILED_DW_3_height_shift)
  1217. /*define for DW_4 word*/
  1218. /*define for slice_pitch field*/
  1219. #define SDMA_PKT_WRITE_TILED_DW_4_slice_pitch_offset 4
  1220. #define SDMA_PKT_WRITE_TILED_DW_4_slice_pitch_mask 0x003FFFFF
  1221. #define SDMA_PKT_WRITE_TILED_DW_4_slice_pitch_shift 0
  1222. #define SDMA_PKT_WRITE_TILED_DW_4_SLICE_PITCH(x) (((x) & SDMA_PKT_WRITE_TILED_DW_4_slice_pitch_mask) << SDMA_PKT_WRITE_TILED_DW_4_slice_pitch_shift)
  1223. /*define for DW_5 word*/
  1224. /*define for element_size field*/
  1225. #define SDMA_PKT_WRITE_TILED_DW_5_element_size_offset 5
  1226. #define SDMA_PKT_WRITE_TILED_DW_5_element_size_mask 0x00000007
  1227. #define SDMA_PKT_WRITE_TILED_DW_5_element_size_shift 0
  1228. #define SDMA_PKT_WRITE_TILED_DW_5_ELEMENT_SIZE(x) (((x) & SDMA_PKT_WRITE_TILED_DW_5_element_size_mask) << SDMA_PKT_WRITE_TILED_DW_5_element_size_shift)
  1229. /*define for array_mode field*/
  1230. #define SDMA_PKT_WRITE_TILED_DW_5_array_mode_offset 5
  1231. #define SDMA_PKT_WRITE_TILED_DW_5_array_mode_mask 0x0000000F
  1232. #define SDMA_PKT_WRITE_TILED_DW_5_array_mode_shift 3
  1233. #define SDMA_PKT_WRITE_TILED_DW_5_ARRAY_MODE(x) (((x) & SDMA_PKT_WRITE_TILED_DW_5_array_mode_mask) << SDMA_PKT_WRITE_TILED_DW_5_array_mode_shift)
  1234. /*define for mit_mode field*/
  1235. #define SDMA_PKT_WRITE_TILED_DW_5_mit_mode_offset 5
  1236. #define SDMA_PKT_WRITE_TILED_DW_5_mit_mode_mask 0x00000007
  1237. #define SDMA_PKT_WRITE_TILED_DW_5_mit_mode_shift 8
  1238. #define SDMA_PKT_WRITE_TILED_DW_5_MIT_MODE(x) (((x) & SDMA_PKT_WRITE_TILED_DW_5_mit_mode_mask) << SDMA_PKT_WRITE_TILED_DW_5_mit_mode_shift)
  1239. /*define for tilesplit_size field*/
  1240. #define SDMA_PKT_WRITE_TILED_DW_5_tilesplit_size_offset 5
  1241. #define SDMA_PKT_WRITE_TILED_DW_5_tilesplit_size_mask 0x00000007
  1242. #define SDMA_PKT_WRITE_TILED_DW_5_tilesplit_size_shift 11
  1243. #define SDMA_PKT_WRITE_TILED_DW_5_TILESPLIT_SIZE(x) (((x) & SDMA_PKT_WRITE_TILED_DW_5_tilesplit_size_mask) << SDMA_PKT_WRITE_TILED_DW_5_tilesplit_size_shift)
  1244. /*define for bank_w field*/
  1245. #define SDMA_PKT_WRITE_TILED_DW_5_bank_w_offset 5
  1246. #define SDMA_PKT_WRITE_TILED_DW_5_bank_w_mask 0x00000003
  1247. #define SDMA_PKT_WRITE_TILED_DW_5_bank_w_shift 15
  1248. #define SDMA_PKT_WRITE_TILED_DW_5_BANK_W(x) (((x) & SDMA_PKT_WRITE_TILED_DW_5_bank_w_mask) << SDMA_PKT_WRITE_TILED_DW_5_bank_w_shift)
  1249. /*define for bank_h field*/
  1250. #define SDMA_PKT_WRITE_TILED_DW_5_bank_h_offset 5
  1251. #define SDMA_PKT_WRITE_TILED_DW_5_bank_h_mask 0x00000003
  1252. #define SDMA_PKT_WRITE_TILED_DW_5_bank_h_shift 18
  1253. #define SDMA_PKT_WRITE_TILED_DW_5_BANK_H(x) (((x) & SDMA_PKT_WRITE_TILED_DW_5_bank_h_mask) << SDMA_PKT_WRITE_TILED_DW_5_bank_h_shift)
  1254. /*define for num_bank field*/
  1255. #define SDMA_PKT_WRITE_TILED_DW_5_num_bank_offset 5
  1256. #define SDMA_PKT_WRITE_TILED_DW_5_num_bank_mask 0x00000003
  1257. #define SDMA_PKT_WRITE_TILED_DW_5_num_bank_shift 21
  1258. #define SDMA_PKT_WRITE_TILED_DW_5_NUM_BANK(x) (((x) & SDMA_PKT_WRITE_TILED_DW_5_num_bank_mask) << SDMA_PKT_WRITE_TILED_DW_5_num_bank_shift)
  1259. /*define for mat_aspt field*/
  1260. #define SDMA_PKT_WRITE_TILED_DW_5_mat_aspt_offset 5
  1261. #define SDMA_PKT_WRITE_TILED_DW_5_mat_aspt_mask 0x00000003
  1262. #define SDMA_PKT_WRITE_TILED_DW_5_mat_aspt_shift 24
  1263. #define SDMA_PKT_WRITE_TILED_DW_5_MAT_ASPT(x) (((x) & SDMA_PKT_WRITE_TILED_DW_5_mat_aspt_mask) << SDMA_PKT_WRITE_TILED_DW_5_mat_aspt_shift)
  1264. /*define for pipe_config field*/
  1265. #define SDMA_PKT_WRITE_TILED_DW_5_pipe_config_offset 5
  1266. #define SDMA_PKT_WRITE_TILED_DW_5_pipe_config_mask 0x0000001F
  1267. #define SDMA_PKT_WRITE_TILED_DW_5_pipe_config_shift 26
  1268. #define SDMA_PKT_WRITE_TILED_DW_5_PIPE_CONFIG(x) (((x) & SDMA_PKT_WRITE_TILED_DW_5_pipe_config_mask) << SDMA_PKT_WRITE_TILED_DW_5_pipe_config_shift)
  1269. /*define for DW_6 word*/
  1270. /*define for x field*/
  1271. #define SDMA_PKT_WRITE_TILED_DW_6_x_offset 6
  1272. #define SDMA_PKT_WRITE_TILED_DW_6_x_mask 0x00003FFF
  1273. #define SDMA_PKT_WRITE_TILED_DW_6_x_shift 0
  1274. #define SDMA_PKT_WRITE_TILED_DW_6_X(x) (((x) & SDMA_PKT_WRITE_TILED_DW_6_x_mask) << SDMA_PKT_WRITE_TILED_DW_6_x_shift)
  1275. /*define for y field*/
  1276. #define SDMA_PKT_WRITE_TILED_DW_6_y_offset 6
  1277. #define SDMA_PKT_WRITE_TILED_DW_6_y_mask 0x00003FFF
  1278. #define SDMA_PKT_WRITE_TILED_DW_6_y_shift 16
  1279. #define SDMA_PKT_WRITE_TILED_DW_6_Y(x) (((x) & SDMA_PKT_WRITE_TILED_DW_6_y_mask) << SDMA_PKT_WRITE_TILED_DW_6_y_shift)
  1280. /*define for DW_7 word*/
  1281. /*define for z field*/
  1282. #define SDMA_PKT_WRITE_TILED_DW_7_z_offset 7
  1283. #define SDMA_PKT_WRITE_TILED_DW_7_z_mask 0x00000FFF
  1284. #define SDMA_PKT_WRITE_TILED_DW_7_z_shift 0
  1285. #define SDMA_PKT_WRITE_TILED_DW_7_Z(x) (((x) & SDMA_PKT_WRITE_TILED_DW_7_z_mask) << SDMA_PKT_WRITE_TILED_DW_7_z_shift)
  1286. /*define for sw field*/
  1287. #define SDMA_PKT_WRITE_TILED_DW_7_sw_offset 7
  1288. #define SDMA_PKT_WRITE_TILED_DW_7_sw_mask 0x00000003
  1289. #define SDMA_PKT_WRITE_TILED_DW_7_sw_shift 24
  1290. #define SDMA_PKT_WRITE_TILED_DW_7_SW(x) (((x) & SDMA_PKT_WRITE_TILED_DW_7_sw_mask) << SDMA_PKT_WRITE_TILED_DW_7_sw_shift)
  1291. /*define for COUNT word*/
  1292. /*define for count field*/
  1293. #define SDMA_PKT_WRITE_TILED_COUNT_count_offset 8
  1294. #define SDMA_PKT_WRITE_TILED_COUNT_count_mask 0x003FFFFF
  1295. #define SDMA_PKT_WRITE_TILED_COUNT_count_shift 0
  1296. #define SDMA_PKT_WRITE_TILED_COUNT_COUNT(x) (((x) & SDMA_PKT_WRITE_TILED_COUNT_count_mask) << SDMA_PKT_WRITE_TILED_COUNT_count_shift)
  1297. /*define for DATA0 word*/
  1298. /*define for data0 field*/
  1299. #define SDMA_PKT_WRITE_TILED_DATA0_data0_offset 9
  1300. #define SDMA_PKT_WRITE_TILED_DATA0_data0_mask 0xFFFFFFFF
  1301. #define SDMA_PKT_WRITE_TILED_DATA0_data0_shift 0
  1302. #define SDMA_PKT_WRITE_TILED_DATA0_DATA0(x) (((x) & SDMA_PKT_WRITE_TILED_DATA0_data0_mask) << SDMA_PKT_WRITE_TILED_DATA0_data0_shift)
  1303. /*
  1304. ** Definitions for SDMA_PKT_WRITE_INCR packet
  1305. */
  1306. /*define for HEADER word*/
  1307. /*define for op field*/
  1308. #define SDMA_PKT_WRITE_INCR_HEADER_op_offset 0
  1309. #define SDMA_PKT_WRITE_INCR_HEADER_op_mask 0x000000FF
  1310. #define SDMA_PKT_WRITE_INCR_HEADER_op_shift 0
  1311. #define SDMA_PKT_WRITE_INCR_HEADER_OP(x) (((x) & SDMA_PKT_WRITE_INCR_HEADER_op_mask) << SDMA_PKT_WRITE_INCR_HEADER_op_shift)
  1312. /*define for sub_op field*/
  1313. #define SDMA_PKT_WRITE_INCR_HEADER_sub_op_offset 0
  1314. #define SDMA_PKT_WRITE_INCR_HEADER_sub_op_mask 0x000000FF
  1315. #define SDMA_PKT_WRITE_INCR_HEADER_sub_op_shift 8
  1316. #define SDMA_PKT_WRITE_INCR_HEADER_SUB_OP(x) (((x) & SDMA_PKT_WRITE_INCR_HEADER_sub_op_mask) << SDMA_PKT_WRITE_INCR_HEADER_sub_op_shift)
  1317. /*define for DST_ADDR_LO word*/
  1318. /*define for dst_addr_31_0 field*/
  1319. #define SDMA_PKT_WRITE_INCR_DST_ADDR_LO_dst_addr_31_0_offset 1
  1320. #define SDMA_PKT_WRITE_INCR_DST_ADDR_LO_dst_addr_31_0_mask 0xFFFFFFFF
  1321. #define SDMA_PKT_WRITE_INCR_DST_ADDR_LO_dst_addr_31_0_shift 0
  1322. #define SDMA_PKT_WRITE_INCR_DST_ADDR_LO_DST_ADDR_31_0(x) (((x) & SDMA_PKT_WRITE_INCR_DST_ADDR_LO_dst_addr_31_0_mask) << SDMA_PKT_WRITE_INCR_DST_ADDR_LO_dst_addr_31_0_shift)
  1323. /*define for DST_ADDR_HI word*/
  1324. /*define for dst_addr_63_32 field*/
  1325. #define SDMA_PKT_WRITE_INCR_DST_ADDR_HI_dst_addr_63_32_offset 2
  1326. #define SDMA_PKT_WRITE_INCR_DST_ADDR_HI_dst_addr_63_32_mask 0xFFFFFFFF
  1327. #define SDMA_PKT_WRITE_INCR_DST_ADDR_HI_dst_addr_63_32_shift 0
  1328. #define SDMA_PKT_WRITE_INCR_DST_ADDR_HI_DST_ADDR_63_32(x) (((x) & SDMA_PKT_WRITE_INCR_DST_ADDR_HI_dst_addr_63_32_mask) << SDMA_PKT_WRITE_INCR_DST_ADDR_HI_dst_addr_63_32_shift)
  1329. /*define for MASK_DW0 word*/
  1330. /*define for mask_dw0 field*/
  1331. #define SDMA_PKT_WRITE_INCR_MASK_DW0_mask_dw0_offset 3
  1332. #define SDMA_PKT_WRITE_INCR_MASK_DW0_mask_dw0_mask 0xFFFFFFFF
  1333. #define SDMA_PKT_WRITE_INCR_MASK_DW0_mask_dw0_shift 0
  1334. #define SDMA_PKT_WRITE_INCR_MASK_DW0_MASK_DW0(x) (((x) & SDMA_PKT_WRITE_INCR_MASK_DW0_mask_dw0_mask) << SDMA_PKT_WRITE_INCR_MASK_DW0_mask_dw0_shift)
  1335. /*define for MASK_DW1 word*/
  1336. /*define for mask_dw1 field*/
  1337. #define SDMA_PKT_WRITE_INCR_MASK_DW1_mask_dw1_offset 4
  1338. #define SDMA_PKT_WRITE_INCR_MASK_DW1_mask_dw1_mask 0xFFFFFFFF
  1339. #define SDMA_PKT_WRITE_INCR_MASK_DW1_mask_dw1_shift 0
  1340. #define SDMA_PKT_WRITE_INCR_MASK_DW1_MASK_DW1(x) (((x) & SDMA_PKT_WRITE_INCR_MASK_DW1_mask_dw1_mask) << SDMA_PKT_WRITE_INCR_MASK_DW1_mask_dw1_shift)
  1341. /*define for INIT_DW0 word*/
  1342. /*define for init_dw0 field*/
  1343. #define SDMA_PKT_WRITE_INCR_INIT_DW0_init_dw0_offset 5
  1344. #define SDMA_PKT_WRITE_INCR_INIT_DW0_init_dw0_mask 0xFFFFFFFF
  1345. #define SDMA_PKT_WRITE_INCR_INIT_DW0_init_dw0_shift 0
  1346. #define SDMA_PKT_WRITE_INCR_INIT_DW0_INIT_DW0(x) (((x) & SDMA_PKT_WRITE_INCR_INIT_DW0_init_dw0_mask) << SDMA_PKT_WRITE_INCR_INIT_DW0_init_dw0_shift)
  1347. /*define for INIT_DW1 word*/
  1348. /*define for init_dw1 field*/
  1349. #define SDMA_PKT_WRITE_INCR_INIT_DW1_init_dw1_offset 6
  1350. #define SDMA_PKT_WRITE_INCR_INIT_DW1_init_dw1_mask 0xFFFFFFFF
  1351. #define SDMA_PKT_WRITE_INCR_INIT_DW1_init_dw1_shift 0
  1352. #define SDMA_PKT_WRITE_INCR_INIT_DW1_INIT_DW1(x) (((x) & SDMA_PKT_WRITE_INCR_INIT_DW1_init_dw1_mask) << SDMA_PKT_WRITE_INCR_INIT_DW1_init_dw1_shift)
  1353. /*define for INCR_DW0 word*/
  1354. /*define for incr_dw0 field*/
  1355. #define SDMA_PKT_WRITE_INCR_INCR_DW0_incr_dw0_offset 7
  1356. #define SDMA_PKT_WRITE_INCR_INCR_DW0_incr_dw0_mask 0xFFFFFFFF
  1357. #define SDMA_PKT_WRITE_INCR_INCR_DW0_incr_dw0_shift 0
  1358. #define SDMA_PKT_WRITE_INCR_INCR_DW0_INCR_DW0(x) (((x) & SDMA_PKT_WRITE_INCR_INCR_DW0_incr_dw0_mask) << SDMA_PKT_WRITE_INCR_INCR_DW0_incr_dw0_shift)
  1359. /*define for INCR_DW1 word*/
  1360. /*define for incr_dw1 field*/
  1361. #define SDMA_PKT_WRITE_INCR_INCR_DW1_incr_dw1_offset 8
  1362. #define SDMA_PKT_WRITE_INCR_INCR_DW1_incr_dw1_mask 0xFFFFFFFF
  1363. #define SDMA_PKT_WRITE_INCR_INCR_DW1_incr_dw1_shift 0
  1364. #define SDMA_PKT_WRITE_INCR_INCR_DW1_INCR_DW1(x) (((x) & SDMA_PKT_WRITE_INCR_INCR_DW1_incr_dw1_mask) << SDMA_PKT_WRITE_INCR_INCR_DW1_incr_dw1_shift)
  1365. /*define for COUNT word*/
  1366. /*define for count field*/
  1367. #define SDMA_PKT_WRITE_INCR_COUNT_count_offset 9
  1368. #define SDMA_PKT_WRITE_INCR_COUNT_count_mask 0x0007FFFF
  1369. #define SDMA_PKT_WRITE_INCR_COUNT_count_shift 0
  1370. #define SDMA_PKT_WRITE_INCR_COUNT_COUNT(x) (((x) & SDMA_PKT_WRITE_INCR_COUNT_count_mask) << SDMA_PKT_WRITE_INCR_COUNT_count_shift)
  1371. /*
  1372. ** Definitions for SDMA_PKT_INDIRECT packet
  1373. */
  1374. /*define for HEADER word*/
  1375. /*define for op field*/
  1376. #define SDMA_PKT_INDIRECT_HEADER_op_offset 0
  1377. #define SDMA_PKT_INDIRECT_HEADER_op_mask 0x000000FF
  1378. #define SDMA_PKT_INDIRECT_HEADER_op_shift 0
  1379. #define SDMA_PKT_INDIRECT_HEADER_OP(x) (((x) & SDMA_PKT_INDIRECT_HEADER_op_mask) << SDMA_PKT_INDIRECT_HEADER_op_shift)
  1380. /*define for sub_op field*/
  1381. #define SDMA_PKT_INDIRECT_HEADER_sub_op_offset 0
  1382. #define SDMA_PKT_INDIRECT_HEADER_sub_op_mask 0x000000FF
  1383. #define SDMA_PKT_INDIRECT_HEADER_sub_op_shift 8
  1384. #define SDMA_PKT_INDIRECT_HEADER_SUB_OP(x) (((x) & SDMA_PKT_INDIRECT_HEADER_sub_op_mask) << SDMA_PKT_INDIRECT_HEADER_sub_op_shift)
  1385. /*define for vmid field*/
  1386. #define SDMA_PKT_INDIRECT_HEADER_vmid_offset 0
  1387. #define SDMA_PKT_INDIRECT_HEADER_vmid_mask 0x0000000F
  1388. #define SDMA_PKT_INDIRECT_HEADER_vmid_shift 16
  1389. #define SDMA_PKT_INDIRECT_HEADER_VMID(x) (((x) & SDMA_PKT_INDIRECT_HEADER_vmid_mask) << SDMA_PKT_INDIRECT_HEADER_vmid_shift)
  1390. /*define for BASE_LO word*/
  1391. /*define for ib_base_31_0 field*/
  1392. #define SDMA_PKT_INDIRECT_BASE_LO_ib_base_31_0_offset 1
  1393. #define SDMA_PKT_INDIRECT_BASE_LO_ib_base_31_0_mask 0xFFFFFFFF
  1394. #define SDMA_PKT_INDIRECT_BASE_LO_ib_base_31_0_shift 0
  1395. #define SDMA_PKT_INDIRECT_BASE_LO_IB_BASE_31_0(x) (((x) & SDMA_PKT_INDIRECT_BASE_LO_ib_base_31_0_mask) << SDMA_PKT_INDIRECT_BASE_LO_ib_base_31_0_shift)
  1396. /*define for BASE_HI word*/
  1397. /*define for ib_base_63_32 field*/
  1398. #define SDMA_PKT_INDIRECT_BASE_HI_ib_base_63_32_offset 2
  1399. #define SDMA_PKT_INDIRECT_BASE_HI_ib_base_63_32_mask 0xFFFFFFFF
  1400. #define SDMA_PKT_INDIRECT_BASE_HI_ib_base_63_32_shift 0
  1401. #define SDMA_PKT_INDIRECT_BASE_HI_IB_BASE_63_32(x) (((x) & SDMA_PKT_INDIRECT_BASE_HI_ib_base_63_32_mask) << SDMA_PKT_INDIRECT_BASE_HI_ib_base_63_32_shift)
  1402. /*define for IB_SIZE word*/
  1403. /*define for ib_size field*/
  1404. #define SDMA_PKT_INDIRECT_IB_SIZE_ib_size_offset 3
  1405. #define SDMA_PKT_INDIRECT_IB_SIZE_ib_size_mask 0x000FFFFF
  1406. #define SDMA_PKT_INDIRECT_IB_SIZE_ib_size_shift 0
  1407. #define SDMA_PKT_INDIRECT_IB_SIZE_IB_SIZE(x) (((x) & SDMA_PKT_INDIRECT_IB_SIZE_ib_size_mask) << SDMA_PKT_INDIRECT_IB_SIZE_ib_size_shift)
  1408. /*define for CSA_ADDR_LO word*/
  1409. /*define for csa_addr_31_0 field*/
  1410. #define SDMA_PKT_INDIRECT_CSA_ADDR_LO_csa_addr_31_0_offset 4
  1411. #define SDMA_PKT_INDIRECT_CSA_ADDR_LO_csa_addr_31_0_mask 0xFFFFFFFF
  1412. #define SDMA_PKT_INDIRECT_CSA_ADDR_LO_csa_addr_31_0_shift 0
  1413. #define SDMA_PKT_INDIRECT_CSA_ADDR_LO_CSA_ADDR_31_0(x) (((x) & SDMA_PKT_INDIRECT_CSA_ADDR_LO_csa_addr_31_0_mask) << SDMA_PKT_INDIRECT_CSA_ADDR_LO_csa_addr_31_0_shift)
  1414. /*define for CSA_ADDR_HI word*/
  1415. /*define for csa_addr_63_32 field*/
  1416. #define SDMA_PKT_INDIRECT_CSA_ADDR_HI_csa_addr_63_32_offset 5
  1417. #define SDMA_PKT_INDIRECT_CSA_ADDR_HI_csa_addr_63_32_mask 0xFFFFFFFF
  1418. #define SDMA_PKT_INDIRECT_CSA_ADDR_HI_csa_addr_63_32_shift 0
  1419. #define SDMA_PKT_INDIRECT_CSA_ADDR_HI_CSA_ADDR_63_32(x) (((x) & SDMA_PKT_INDIRECT_CSA_ADDR_HI_csa_addr_63_32_mask) << SDMA_PKT_INDIRECT_CSA_ADDR_HI_csa_addr_63_32_shift)
  1420. /*
  1421. ** Definitions for SDMA_PKT_SEMAPHORE packet
  1422. */
  1423. /*define for HEADER word*/
  1424. /*define for op field*/
  1425. #define SDMA_PKT_SEMAPHORE_HEADER_op_offset 0
  1426. #define SDMA_PKT_SEMAPHORE_HEADER_op_mask 0x000000FF
  1427. #define SDMA_PKT_SEMAPHORE_HEADER_op_shift 0
  1428. #define SDMA_PKT_SEMAPHORE_HEADER_OP(x) (((x) & SDMA_PKT_SEMAPHORE_HEADER_op_mask) << SDMA_PKT_SEMAPHORE_HEADER_op_shift)
  1429. /*define for sub_op field*/
  1430. #define SDMA_PKT_SEMAPHORE_HEADER_sub_op_offset 0
  1431. #define SDMA_PKT_SEMAPHORE_HEADER_sub_op_mask 0x000000FF
  1432. #define SDMA_PKT_SEMAPHORE_HEADER_sub_op_shift 8
  1433. #define SDMA_PKT_SEMAPHORE_HEADER_SUB_OP(x) (((x) & SDMA_PKT_SEMAPHORE_HEADER_sub_op_mask) << SDMA_PKT_SEMAPHORE_HEADER_sub_op_shift)
  1434. /*define for write_one field*/
  1435. #define SDMA_PKT_SEMAPHORE_HEADER_write_one_offset 0
  1436. #define SDMA_PKT_SEMAPHORE_HEADER_write_one_mask 0x00000001
  1437. #define SDMA_PKT_SEMAPHORE_HEADER_write_one_shift 29
  1438. #define SDMA_PKT_SEMAPHORE_HEADER_WRITE_ONE(x) (((x) & SDMA_PKT_SEMAPHORE_HEADER_write_one_mask) << SDMA_PKT_SEMAPHORE_HEADER_write_one_shift)
  1439. /*define for signal field*/
  1440. #define SDMA_PKT_SEMAPHORE_HEADER_signal_offset 0
  1441. #define SDMA_PKT_SEMAPHORE_HEADER_signal_mask 0x00000001
  1442. #define SDMA_PKT_SEMAPHORE_HEADER_signal_shift 30
  1443. #define SDMA_PKT_SEMAPHORE_HEADER_SIGNAL(x) (((x) & SDMA_PKT_SEMAPHORE_HEADER_signal_mask) << SDMA_PKT_SEMAPHORE_HEADER_signal_shift)
  1444. /*define for mailbox field*/
  1445. #define SDMA_PKT_SEMAPHORE_HEADER_mailbox_offset 0
  1446. #define SDMA_PKT_SEMAPHORE_HEADER_mailbox_mask 0x00000001
  1447. #define SDMA_PKT_SEMAPHORE_HEADER_mailbox_shift 31
  1448. #define SDMA_PKT_SEMAPHORE_HEADER_MAILBOX(x) (((x) & SDMA_PKT_SEMAPHORE_HEADER_mailbox_mask) << SDMA_PKT_SEMAPHORE_HEADER_mailbox_shift)
  1449. /*define for ADDR_LO word*/
  1450. /*define for addr_31_0 field*/
  1451. #define SDMA_PKT_SEMAPHORE_ADDR_LO_addr_31_0_offset 1
  1452. #define SDMA_PKT_SEMAPHORE_ADDR_LO_addr_31_0_mask 0xFFFFFFFF
  1453. #define SDMA_PKT_SEMAPHORE_ADDR_LO_addr_31_0_shift 0
  1454. #define SDMA_PKT_SEMAPHORE_ADDR_LO_ADDR_31_0(x) (((x) & SDMA_PKT_SEMAPHORE_ADDR_LO_addr_31_0_mask) << SDMA_PKT_SEMAPHORE_ADDR_LO_addr_31_0_shift)
  1455. /*define for ADDR_HI word*/
  1456. /*define for addr_63_32 field*/
  1457. #define SDMA_PKT_SEMAPHORE_ADDR_HI_addr_63_32_offset 2
  1458. #define SDMA_PKT_SEMAPHORE_ADDR_HI_addr_63_32_mask 0xFFFFFFFF
  1459. #define SDMA_PKT_SEMAPHORE_ADDR_HI_addr_63_32_shift 0
  1460. #define SDMA_PKT_SEMAPHORE_ADDR_HI_ADDR_63_32(x) (((x) & SDMA_PKT_SEMAPHORE_ADDR_HI_addr_63_32_mask) << SDMA_PKT_SEMAPHORE_ADDR_HI_addr_63_32_shift)
  1461. /*
  1462. ** Definitions for SDMA_PKT_FENCE packet
  1463. */
  1464. /*define for HEADER word*/
  1465. /*define for op field*/
  1466. #define SDMA_PKT_FENCE_HEADER_op_offset 0
  1467. #define SDMA_PKT_FENCE_HEADER_op_mask 0x000000FF
  1468. #define SDMA_PKT_FENCE_HEADER_op_shift 0
  1469. #define SDMA_PKT_FENCE_HEADER_OP(x) (((x) & SDMA_PKT_FENCE_HEADER_op_mask) << SDMA_PKT_FENCE_HEADER_op_shift)
  1470. /*define for sub_op field*/
  1471. #define SDMA_PKT_FENCE_HEADER_sub_op_offset 0
  1472. #define SDMA_PKT_FENCE_HEADER_sub_op_mask 0x000000FF
  1473. #define SDMA_PKT_FENCE_HEADER_sub_op_shift 8
  1474. #define SDMA_PKT_FENCE_HEADER_SUB_OP(x) (((x) & SDMA_PKT_FENCE_HEADER_sub_op_mask) << SDMA_PKT_FENCE_HEADER_sub_op_shift)
  1475. /*define for ADDR_LO word*/
  1476. /*define for addr_31_0 field*/
  1477. #define SDMA_PKT_FENCE_ADDR_LO_addr_31_0_offset 1
  1478. #define SDMA_PKT_FENCE_ADDR_LO_addr_31_0_mask 0xFFFFFFFF
  1479. #define SDMA_PKT_FENCE_ADDR_LO_addr_31_0_shift 0
  1480. #define SDMA_PKT_FENCE_ADDR_LO_ADDR_31_0(x) (((x) & SDMA_PKT_FENCE_ADDR_LO_addr_31_0_mask) << SDMA_PKT_FENCE_ADDR_LO_addr_31_0_shift)
  1481. /*define for ADDR_HI word*/
  1482. /*define for addr_63_32 field*/
  1483. #define SDMA_PKT_FENCE_ADDR_HI_addr_63_32_offset 2
  1484. #define SDMA_PKT_FENCE_ADDR_HI_addr_63_32_mask 0xFFFFFFFF
  1485. #define SDMA_PKT_FENCE_ADDR_HI_addr_63_32_shift 0
  1486. #define SDMA_PKT_FENCE_ADDR_HI_ADDR_63_32(x) (((x) & SDMA_PKT_FENCE_ADDR_HI_addr_63_32_mask) << SDMA_PKT_FENCE_ADDR_HI_addr_63_32_shift)
  1487. /*define for DATA word*/
  1488. /*define for data field*/
  1489. #define SDMA_PKT_FENCE_DATA_data_offset 3
  1490. #define SDMA_PKT_FENCE_DATA_data_mask 0xFFFFFFFF
  1491. #define SDMA_PKT_FENCE_DATA_data_shift 0
  1492. #define SDMA_PKT_FENCE_DATA_DATA(x) (((x) & SDMA_PKT_FENCE_DATA_data_mask) << SDMA_PKT_FENCE_DATA_data_shift)
  1493. /*
  1494. ** Definitions for SDMA_PKT_SRBM_WRITE packet
  1495. */
  1496. /*define for HEADER word*/
  1497. /*define for op field*/
  1498. #define SDMA_PKT_SRBM_WRITE_HEADER_op_offset 0
  1499. #define SDMA_PKT_SRBM_WRITE_HEADER_op_mask 0x000000FF
  1500. #define SDMA_PKT_SRBM_WRITE_HEADER_op_shift 0
  1501. #define SDMA_PKT_SRBM_WRITE_HEADER_OP(x) (((x) & SDMA_PKT_SRBM_WRITE_HEADER_op_mask) << SDMA_PKT_SRBM_WRITE_HEADER_op_shift)
  1502. /*define for sub_op field*/
  1503. #define SDMA_PKT_SRBM_WRITE_HEADER_sub_op_offset 0
  1504. #define SDMA_PKT_SRBM_WRITE_HEADER_sub_op_mask 0x000000FF
  1505. #define SDMA_PKT_SRBM_WRITE_HEADER_sub_op_shift 8
  1506. #define SDMA_PKT_SRBM_WRITE_HEADER_SUB_OP(x) (((x) & SDMA_PKT_SRBM_WRITE_HEADER_sub_op_mask) << SDMA_PKT_SRBM_WRITE_HEADER_sub_op_shift)
  1507. /*define for byte_en field*/
  1508. #define SDMA_PKT_SRBM_WRITE_HEADER_byte_en_offset 0
  1509. #define SDMA_PKT_SRBM_WRITE_HEADER_byte_en_mask 0x0000000F
  1510. #define SDMA_PKT_SRBM_WRITE_HEADER_byte_en_shift 28
  1511. #define SDMA_PKT_SRBM_WRITE_HEADER_BYTE_EN(x) (((x) & SDMA_PKT_SRBM_WRITE_HEADER_byte_en_mask) << SDMA_PKT_SRBM_WRITE_HEADER_byte_en_shift)
  1512. /*define for ADDR word*/
  1513. /*define for addr field*/
  1514. #define SDMA_PKT_SRBM_WRITE_ADDR_addr_offset 1
  1515. #define SDMA_PKT_SRBM_WRITE_ADDR_addr_mask 0x0000FFFF
  1516. #define SDMA_PKT_SRBM_WRITE_ADDR_addr_shift 0
  1517. #define SDMA_PKT_SRBM_WRITE_ADDR_ADDR(x) (((x) & SDMA_PKT_SRBM_WRITE_ADDR_addr_mask) << SDMA_PKT_SRBM_WRITE_ADDR_addr_shift)
  1518. /*define for DATA word*/
  1519. /*define for data field*/
  1520. #define SDMA_PKT_SRBM_WRITE_DATA_data_offset 2
  1521. #define SDMA_PKT_SRBM_WRITE_DATA_data_mask 0xFFFFFFFF
  1522. #define SDMA_PKT_SRBM_WRITE_DATA_data_shift 0
  1523. #define SDMA_PKT_SRBM_WRITE_DATA_DATA(x) (((x) & SDMA_PKT_SRBM_WRITE_DATA_data_mask) << SDMA_PKT_SRBM_WRITE_DATA_data_shift)
  1524. /*
  1525. ** Definitions for SDMA_PKT_PRE_EXE packet
  1526. */
  1527. /*define for HEADER word*/
  1528. /*define for op field*/
  1529. #define SDMA_PKT_PRE_EXE_HEADER_op_offset 0
  1530. #define SDMA_PKT_PRE_EXE_HEADER_op_mask 0x000000FF
  1531. #define SDMA_PKT_PRE_EXE_HEADER_op_shift 0
  1532. #define SDMA_PKT_PRE_EXE_HEADER_OP(x) (((x) & SDMA_PKT_PRE_EXE_HEADER_op_mask) << SDMA_PKT_PRE_EXE_HEADER_op_shift)
  1533. /*define for sub_op field*/
  1534. #define SDMA_PKT_PRE_EXE_HEADER_sub_op_offset 0
  1535. #define SDMA_PKT_PRE_EXE_HEADER_sub_op_mask 0x000000FF
  1536. #define SDMA_PKT_PRE_EXE_HEADER_sub_op_shift 8
  1537. #define SDMA_PKT_PRE_EXE_HEADER_SUB_OP(x) (((x) & SDMA_PKT_PRE_EXE_HEADER_sub_op_mask) << SDMA_PKT_PRE_EXE_HEADER_sub_op_shift)
  1538. /*define for dev_sel field*/
  1539. #define SDMA_PKT_PRE_EXE_HEADER_dev_sel_offset 0
  1540. #define SDMA_PKT_PRE_EXE_HEADER_dev_sel_mask 0x000000FF
  1541. #define SDMA_PKT_PRE_EXE_HEADER_dev_sel_shift 16
  1542. #define SDMA_PKT_PRE_EXE_HEADER_DEV_SEL(x) (((x) & SDMA_PKT_PRE_EXE_HEADER_dev_sel_mask) << SDMA_PKT_PRE_EXE_HEADER_dev_sel_shift)
  1543. /*define for EXEC_COUNT word*/
  1544. /*define for exec_count field*/
  1545. #define SDMA_PKT_PRE_EXE_EXEC_COUNT_exec_count_offset 1
  1546. #define SDMA_PKT_PRE_EXE_EXEC_COUNT_exec_count_mask 0x00003FFF
  1547. #define SDMA_PKT_PRE_EXE_EXEC_COUNT_exec_count_shift 0
  1548. #define SDMA_PKT_PRE_EXE_EXEC_COUNT_EXEC_COUNT(x) (((x) & SDMA_PKT_PRE_EXE_EXEC_COUNT_exec_count_mask) << SDMA_PKT_PRE_EXE_EXEC_COUNT_exec_count_shift)
  1549. /*
  1550. ** Definitions for SDMA_PKT_COND_EXE packet
  1551. */
  1552. /*define for HEADER word*/
  1553. /*define for op field*/
  1554. #define SDMA_PKT_COND_EXE_HEADER_op_offset 0
  1555. #define SDMA_PKT_COND_EXE_HEADER_op_mask 0x000000FF
  1556. #define SDMA_PKT_COND_EXE_HEADER_op_shift 0
  1557. #define SDMA_PKT_COND_EXE_HEADER_OP(x) (((x) & SDMA_PKT_COND_EXE_HEADER_op_mask) << SDMA_PKT_COND_EXE_HEADER_op_shift)
  1558. /*define for sub_op field*/
  1559. #define SDMA_PKT_COND_EXE_HEADER_sub_op_offset 0
  1560. #define SDMA_PKT_COND_EXE_HEADER_sub_op_mask 0x000000FF
  1561. #define SDMA_PKT_COND_EXE_HEADER_sub_op_shift 8
  1562. #define SDMA_PKT_COND_EXE_HEADER_SUB_OP(x) (((x) & SDMA_PKT_COND_EXE_HEADER_sub_op_mask) << SDMA_PKT_COND_EXE_HEADER_sub_op_shift)
  1563. /*define for ADDR_LO word*/
  1564. /*define for addr_31_0 field*/
  1565. #define SDMA_PKT_COND_EXE_ADDR_LO_addr_31_0_offset 1
  1566. #define SDMA_PKT_COND_EXE_ADDR_LO_addr_31_0_mask 0xFFFFFFFF
  1567. #define SDMA_PKT_COND_EXE_ADDR_LO_addr_31_0_shift 0
  1568. #define SDMA_PKT_COND_EXE_ADDR_LO_ADDR_31_0(x) (((x) & SDMA_PKT_COND_EXE_ADDR_LO_addr_31_0_mask) << SDMA_PKT_COND_EXE_ADDR_LO_addr_31_0_shift)
  1569. /*define for ADDR_HI word*/
  1570. /*define for addr_63_32 field*/
  1571. #define SDMA_PKT_COND_EXE_ADDR_HI_addr_63_32_offset 2
  1572. #define SDMA_PKT_COND_EXE_ADDR_HI_addr_63_32_mask 0xFFFFFFFF
  1573. #define SDMA_PKT_COND_EXE_ADDR_HI_addr_63_32_shift 0
  1574. #define SDMA_PKT_COND_EXE_ADDR_HI_ADDR_63_32(x) (((x) & SDMA_PKT_COND_EXE_ADDR_HI_addr_63_32_mask) << SDMA_PKT_COND_EXE_ADDR_HI_addr_63_32_shift)
  1575. /*define for REFERENCE word*/
  1576. /*define for reference field*/
  1577. #define SDMA_PKT_COND_EXE_REFERENCE_reference_offset 3
  1578. #define SDMA_PKT_COND_EXE_REFERENCE_reference_mask 0xFFFFFFFF
  1579. #define SDMA_PKT_COND_EXE_REFERENCE_reference_shift 0
  1580. #define SDMA_PKT_COND_EXE_REFERENCE_REFERENCE(x) (((x) & SDMA_PKT_COND_EXE_REFERENCE_reference_mask) << SDMA_PKT_COND_EXE_REFERENCE_reference_shift)
  1581. /*define for EXEC_COUNT word*/
  1582. /*define for exec_count field*/
  1583. #define SDMA_PKT_COND_EXE_EXEC_COUNT_exec_count_offset 4
  1584. #define SDMA_PKT_COND_EXE_EXEC_COUNT_exec_count_mask 0x00003FFF
  1585. #define SDMA_PKT_COND_EXE_EXEC_COUNT_exec_count_shift 0
  1586. #define SDMA_PKT_COND_EXE_EXEC_COUNT_EXEC_COUNT(x) (((x) & SDMA_PKT_COND_EXE_EXEC_COUNT_exec_count_mask) << SDMA_PKT_COND_EXE_EXEC_COUNT_exec_count_shift)
  1587. /*
  1588. ** Definitions for SDMA_PKT_CONSTANT_FILL packet
  1589. */
  1590. /*define for HEADER word*/
  1591. /*define for op field*/
  1592. #define SDMA_PKT_CONSTANT_FILL_HEADER_op_offset 0
  1593. #define SDMA_PKT_CONSTANT_FILL_HEADER_op_mask 0x000000FF
  1594. #define SDMA_PKT_CONSTANT_FILL_HEADER_op_shift 0
  1595. #define SDMA_PKT_CONSTANT_FILL_HEADER_OP(x) (((x) & SDMA_PKT_CONSTANT_FILL_HEADER_op_mask) << SDMA_PKT_CONSTANT_FILL_HEADER_op_shift)
  1596. /*define for sub_op field*/
  1597. #define SDMA_PKT_CONSTANT_FILL_HEADER_sub_op_offset 0
  1598. #define SDMA_PKT_CONSTANT_FILL_HEADER_sub_op_mask 0x000000FF
  1599. #define SDMA_PKT_CONSTANT_FILL_HEADER_sub_op_shift 8
  1600. #define SDMA_PKT_CONSTANT_FILL_HEADER_SUB_OP(x) (((x) & SDMA_PKT_CONSTANT_FILL_HEADER_sub_op_mask) << SDMA_PKT_CONSTANT_FILL_HEADER_sub_op_shift)
  1601. /*define for sw field*/
  1602. #define SDMA_PKT_CONSTANT_FILL_HEADER_sw_offset 0
  1603. #define SDMA_PKT_CONSTANT_FILL_HEADER_sw_mask 0x00000003
  1604. #define SDMA_PKT_CONSTANT_FILL_HEADER_sw_shift 16
  1605. #define SDMA_PKT_CONSTANT_FILL_HEADER_SW(x) (((x) & SDMA_PKT_CONSTANT_FILL_HEADER_sw_mask) << SDMA_PKT_CONSTANT_FILL_HEADER_sw_shift)
  1606. /*define for fillsize field*/
  1607. #define SDMA_PKT_CONSTANT_FILL_HEADER_fillsize_offset 0
  1608. #define SDMA_PKT_CONSTANT_FILL_HEADER_fillsize_mask 0x00000003
  1609. #define SDMA_PKT_CONSTANT_FILL_HEADER_fillsize_shift 30
  1610. #define SDMA_PKT_CONSTANT_FILL_HEADER_FILLSIZE(x) (((x) & SDMA_PKT_CONSTANT_FILL_HEADER_fillsize_mask) << SDMA_PKT_CONSTANT_FILL_HEADER_fillsize_shift)
  1611. /*define for DST_ADDR_LO word*/
  1612. /*define for dst_addr_31_0 field*/
  1613. #define SDMA_PKT_CONSTANT_FILL_DST_ADDR_LO_dst_addr_31_0_offset 1
  1614. #define SDMA_PKT_CONSTANT_FILL_DST_ADDR_LO_dst_addr_31_0_mask 0xFFFFFFFF
  1615. #define SDMA_PKT_CONSTANT_FILL_DST_ADDR_LO_dst_addr_31_0_shift 0
  1616. #define SDMA_PKT_CONSTANT_FILL_DST_ADDR_LO_DST_ADDR_31_0(x) (((x) & SDMA_PKT_CONSTANT_FILL_DST_ADDR_LO_dst_addr_31_0_mask) << SDMA_PKT_CONSTANT_FILL_DST_ADDR_LO_dst_addr_31_0_shift)
  1617. /*define for DST_ADDR_HI word*/
  1618. /*define for dst_addr_63_32 field*/
  1619. #define SDMA_PKT_CONSTANT_FILL_DST_ADDR_HI_dst_addr_63_32_offset 2
  1620. #define SDMA_PKT_CONSTANT_FILL_DST_ADDR_HI_dst_addr_63_32_mask 0xFFFFFFFF
  1621. #define SDMA_PKT_CONSTANT_FILL_DST_ADDR_HI_dst_addr_63_32_shift 0
  1622. #define SDMA_PKT_CONSTANT_FILL_DST_ADDR_HI_DST_ADDR_63_32(x) (((x) & SDMA_PKT_CONSTANT_FILL_DST_ADDR_HI_dst_addr_63_32_mask) << SDMA_PKT_CONSTANT_FILL_DST_ADDR_HI_dst_addr_63_32_shift)
  1623. /*define for DATA word*/
  1624. /*define for src_data_31_0 field*/
  1625. #define SDMA_PKT_CONSTANT_FILL_DATA_src_data_31_0_offset 3
  1626. #define SDMA_PKT_CONSTANT_FILL_DATA_src_data_31_0_mask 0xFFFFFFFF
  1627. #define SDMA_PKT_CONSTANT_FILL_DATA_src_data_31_0_shift 0
  1628. #define SDMA_PKT_CONSTANT_FILL_DATA_SRC_DATA_31_0(x) (((x) & SDMA_PKT_CONSTANT_FILL_DATA_src_data_31_0_mask) << SDMA_PKT_CONSTANT_FILL_DATA_src_data_31_0_shift)
  1629. /*define for COUNT word*/
  1630. /*define for count field*/
  1631. #define SDMA_PKT_CONSTANT_FILL_COUNT_count_offset 4
  1632. #define SDMA_PKT_CONSTANT_FILL_COUNT_count_mask 0x003FFFFF
  1633. #define SDMA_PKT_CONSTANT_FILL_COUNT_count_shift 0
  1634. #define SDMA_PKT_CONSTANT_FILL_COUNT_COUNT(x) (((x) & SDMA_PKT_CONSTANT_FILL_COUNT_count_mask) << SDMA_PKT_CONSTANT_FILL_COUNT_count_shift)
  1635. /*
  1636. ** Definitions for SDMA_PKT_POLL_REGMEM packet
  1637. */
  1638. /*define for HEADER word*/
  1639. /*define for op field*/
  1640. #define SDMA_PKT_POLL_REGMEM_HEADER_op_offset 0
  1641. #define SDMA_PKT_POLL_REGMEM_HEADER_op_mask 0x000000FF
  1642. #define SDMA_PKT_POLL_REGMEM_HEADER_op_shift 0
  1643. #define SDMA_PKT_POLL_REGMEM_HEADER_OP(x) (((x) & SDMA_PKT_POLL_REGMEM_HEADER_op_mask) << SDMA_PKT_POLL_REGMEM_HEADER_op_shift)
  1644. /*define for sub_op field*/
  1645. #define SDMA_PKT_POLL_REGMEM_HEADER_sub_op_offset 0
  1646. #define SDMA_PKT_POLL_REGMEM_HEADER_sub_op_mask 0x000000FF
  1647. #define SDMA_PKT_POLL_REGMEM_HEADER_sub_op_shift 8
  1648. #define SDMA_PKT_POLL_REGMEM_HEADER_SUB_OP(x) (((x) & SDMA_PKT_POLL_REGMEM_HEADER_sub_op_mask) << SDMA_PKT_POLL_REGMEM_HEADER_sub_op_shift)
  1649. /*define for hdp_flush field*/
  1650. #define SDMA_PKT_POLL_REGMEM_HEADER_hdp_flush_offset 0
  1651. #define SDMA_PKT_POLL_REGMEM_HEADER_hdp_flush_mask 0x00000001
  1652. #define SDMA_PKT_POLL_REGMEM_HEADER_hdp_flush_shift 26
  1653. #define SDMA_PKT_POLL_REGMEM_HEADER_HDP_FLUSH(x) (((x) & SDMA_PKT_POLL_REGMEM_HEADER_hdp_flush_mask) << SDMA_PKT_POLL_REGMEM_HEADER_hdp_flush_shift)
  1654. /*define for func field*/
  1655. #define SDMA_PKT_POLL_REGMEM_HEADER_func_offset 0
  1656. #define SDMA_PKT_POLL_REGMEM_HEADER_func_mask 0x00000007
  1657. #define SDMA_PKT_POLL_REGMEM_HEADER_func_shift 28
  1658. #define SDMA_PKT_POLL_REGMEM_HEADER_FUNC(x) (((x) & SDMA_PKT_POLL_REGMEM_HEADER_func_mask) << SDMA_PKT_POLL_REGMEM_HEADER_func_shift)
  1659. /*define for mem_poll field*/
  1660. #define SDMA_PKT_POLL_REGMEM_HEADER_mem_poll_offset 0
  1661. #define SDMA_PKT_POLL_REGMEM_HEADER_mem_poll_mask 0x00000001
  1662. #define SDMA_PKT_POLL_REGMEM_HEADER_mem_poll_shift 31
  1663. #define SDMA_PKT_POLL_REGMEM_HEADER_MEM_POLL(x) (((x) & SDMA_PKT_POLL_REGMEM_HEADER_mem_poll_mask) << SDMA_PKT_POLL_REGMEM_HEADER_mem_poll_shift)
  1664. /*define for ADDR_LO word*/
  1665. /*define for addr_31_0 field*/
  1666. #define SDMA_PKT_POLL_REGMEM_ADDR_LO_addr_31_0_offset 1
  1667. #define SDMA_PKT_POLL_REGMEM_ADDR_LO_addr_31_0_mask 0xFFFFFFFF
  1668. #define SDMA_PKT_POLL_REGMEM_ADDR_LO_addr_31_0_shift 0
  1669. #define SDMA_PKT_POLL_REGMEM_ADDR_LO_ADDR_31_0(x) (((x) & SDMA_PKT_POLL_REGMEM_ADDR_LO_addr_31_0_mask) << SDMA_PKT_POLL_REGMEM_ADDR_LO_addr_31_0_shift)
  1670. /*define for ADDR_HI word*/
  1671. /*define for addr_63_32 field*/
  1672. #define SDMA_PKT_POLL_REGMEM_ADDR_HI_addr_63_32_offset 2
  1673. #define SDMA_PKT_POLL_REGMEM_ADDR_HI_addr_63_32_mask 0xFFFFFFFF
  1674. #define SDMA_PKT_POLL_REGMEM_ADDR_HI_addr_63_32_shift 0
  1675. #define SDMA_PKT_POLL_REGMEM_ADDR_HI_ADDR_63_32(x) (((x) & SDMA_PKT_POLL_REGMEM_ADDR_HI_addr_63_32_mask) << SDMA_PKT_POLL_REGMEM_ADDR_HI_addr_63_32_shift)
  1676. /*define for VALUE word*/
  1677. /*define for value field*/
  1678. #define SDMA_PKT_POLL_REGMEM_VALUE_value_offset 3
  1679. #define SDMA_PKT_POLL_REGMEM_VALUE_value_mask 0xFFFFFFFF
  1680. #define SDMA_PKT_POLL_REGMEM_VALUE_value_shift 0
  1681. #define SDMA_PKT_POLL_REGMEM_VALUE_VALUE(x) (((x) & SDMA_PKT_POLL_REGMEM_VALUE_value_mask) << SDMA_PKT_POLL_REGMEM_VALUE_value_shift)
  1682. /*define for MASK word*/
  1683. /*define for mask field*/
  1684. #define SDMA_PKT_POLL_REGMEM_MASK_mask_offset 4
  1685. #define SDMA_PKT_POLL_REGMEM_MASK_mask_mask 0xFFFFFFFF
  1686. #define SDMA_PKT_POLL_REGMEM_MASK_mask_shift 0
  1687. #define SDMA_PKT_POLL_REGMEM_MASK_MASK(x) (((x) & SDMA_PKT_POLL_REGMEM_MASK_mask_mask) << SDMA_PKT_POLL_REGMEM_MASK_mask_shift)
  1688. /*define for DW5 word*/
  1689. /*define for interval field*/
  1690. #define SDMA_PKT_POLL_REGMEM_DW5_interval_offset 5
  1691. #define SDMA_PKT_POLL_REGMEM_DW5_interval_mask 0x0000FFFF
  1692. #define SDMA_PKT_POLL_REGMEM_DW5_interval_shift 0
  1693. #define SDMA_PKT_POLL_REGMEM_DW5_INTERVAL(x) (((x) & SDMA_PKT_POLL_REGMEM_DW5_interval_mask) << SDMA_PKT_POLL_REGMEM_DW5_interval_shift)
  1694. /*define for retry_count field*/
  1695. #define SDMA_PKT_POLL_REGMEM_DW5_retry_count_offset 5
  1696. #define SDMA_PKT_POLL_REGMEM_DW5_retry_count_mask 0x00000FFF
  1697. #define SDMA_PKT_POLL_REGMEM_DW5_retry_count_shift 16
  1698. #define SDMA_PKT_POLL_REGMEM_DW5_RETRY_COUNT(x) (((x) & SDMA_PKT_POLL_REGMEM_DW5_retry_count_mask) << SDMA_PKT_POLL_REGMEM_DW5_retry_count_shift)
  1699. /*
  1700. ** Definitions for SDMA_PKT_TIMESTAMP_SET packet
  1701. */
  1702. /*define for HEADER word*/
  1703. /*define for op field*/
  1704. #define SDMA_PKT_TIMESTAMP_SET_HEADER_op_offset 0
  1705. #define SDMA_PKT_TIMESTAMP_SET_HEADER_op_mask 0x000000FF
  1706. #define SDMA_PKT_TIMESTAMP_SET_HEADER_op_shift 0
  1707. #define SDMA_PKT_TIMESTAMP_SET_HEADER_OP(x) (((x) & SDMA_PKT_TIMESTAMP_SET_HEADER_op_mask) << SDMA_PKT_TIMESTAMP_SET_HEADER_op_shift)
  1708. /*define for sub_op field*/
  1709. #define SDMA_PKT_TIMESTAMP_SET_HEADER_sub_op_offset 0
  1710. #define SDMA_PKT_TIMESTAMP_SET_HEADER_sub_op_mask 0x000000FF
  1711. #define SDMA_PKT_TIMESTAMP_SET_HEADER_sub_op_shift 8
  1712. #define SDMA_PKT_TIMESTAMP_SET_HEADER_SUB_OP(x) (((x) & SDMA_PKT_TIMESTAMP_SET_HEADER_sub_op_mask) << SDMA_PKT_TIMESTAMP_SET_HEADER_sub_op_shift)
  1713. /*define for INIT_DATA_LO word*/
  1714. /*define for init_data_31_0 field*/
  1715. #define SDMA_PKT_TIMESTAMP_SET_INIT_DATA_LO_init_data_31_0_offset 1
  1716. #define SDMA_PKT_TIMESTAMP_SET_INIT_DATA_LO_init_data_31_0_mask 0xFFFFFFFF
  1717. #define SDMA_PKT_TIMESTAMP_SET_INIT_DATA_LO_init_data_31_0_shift 0
  1718. #define SDMA_PKT_TIMESTAMP_SET_INIT_DATA_LO_INIT_DATA_31_0(x) (((x) & SDMA_PKT_TIMESTAMP_SET_INIT_DATA_LO_init_data_31_0_mask) << SDMA_PKT_TIMESTAMP_SET_INIT_DATA_LO_init_data_31_0_shift)
  1719. /*define for INIT_DATA_HI word*/
  1720. /*define for init_data_63_32 field*/
  1721. #define SDMA_PKT_TIMESTAMP_SET_INIT_DATA_HI_init_data_63_32_offset 2
  1722. #define SDMA_PKT_TIMESTAMP_SET_INIT_DATA_HI_init_data_63_32_mask 0xFFFFFFFF
  1723. #define SDMA_PKT_TIMESTAMP_SET_INIT_DATA_HI_init_data_63_32_shift 0
  1724. #define SDMA_PKT_TIMESTAMP_SET_INIT_DATA_HI_INIT_DATA_63_32(x) (((x) & SDMA_PKT_TIMESTAMP_SET_INIT_DATA_HI_init_data_63_32_mask) << SDMA_PKT_TIMESTAMP_SET_INIT_DATA_HI_init_data_63_32_shift)
  1725. /*
  1726. ** Definitions for SDMA_PKT_TIMESTAMP_GET packet
  1727. */
  1728. /*define for HEADER word*/
  1729. /*define for op field*/
  1730. #define SDMA_PKT_TIMESTAMP_GET_HEADER_op_offset 0
  1731. #define SDMA_PKT_TIMESTAMP_GET_HEADER_op_mask 0x000000FF
  1732. #define SDMA_PKT_TIMESTAMP_GET_HEADER_op_shift 0
  1733. #define SDMA_PKT_TIMESTAMP_GET_HEADER_OP(x) (((x) & SDMA_PKT_TIMESTAMP_GET_HEADER_op_mask) << SDMA_PKT_TIMESTAMP_GET_HEADER_op_shift)
  1734. /*define for sub_op field*/
  1735. #define SDMA_PKT_TIMESTAMP_GET_HEADER_sub_op_offset 0
  1736. #define SDMA_PKT_TIMESTAMP_GET_HEADER_sub_op_mask 0x000000FF
  1737. #define SDMA_PKT_TIMESTAMP_GET_HEADER_sub_op_shift 8
  1738. #define SDMA_PKT_TIMESTAMP_GET_HEADER_SUB_OP(x) (((x) & SDMA_PKT_TIMESTAMP_GET_HEADER_sub_op_mask) << SDMA_PKT_TIMESTAMP_GET_HEADER_sub_op_shift)
  1739. /*define for WRITE_ADDR_LO word*/
  1740. /*define for write_addr_31_3 field*/
  1741. #define SDMA_PKT_TIMESTAMP_GET_WRITE_ADDR_LO_write_addr_31_3_offset 1
  1742. #define SDMA_PKT_TIMESTAMP_GET_WRITE_ADDR_LO_write_addr_31_3_mask 0x1FFFFFFF
  1743. #define SDMA_PKT_TIMESTAMP_GET_WRITE_ADDR_LO_write_addr_31_3_shift 3
  1744. #define SDMA_PKT_TIMESTAMP_GET_WRITE_ADDR_LO_WRITE_ADDR_31_3(x) (((x) & SDMA_PKT_TIMESTAMP_GET_WRITE_ADDR_LO_write_addr_31_3_mask) << SDMA_PKT_TIMESTAMP_GET_WRITE_ADDR_LO_write_addr_31_3_shift)
  1745. /*define for WRITE_ADDR_HI word*/
  1746. /*define for write_addr_63_32 field*/
  1747. #define SDMA_PKT_TIMESTAMP_GET_WRITE_ADDR_HI_write_addr_63_32_offset 2
  1748. #define SDMA_PKT_TIMESTAMP_GET_WRITE_ADDR_HI_write_addr_63_32_mask 0xFFFFFFFF
  1749. #define SDMA_PKT_TIMESTAMP_GET_WRITE_ADDR_HI_write_addr_63_32_shift 0
  1750. #define SDMA_PKT_TIMESTAMP_GET_WRITE_ADDR_HI_WRITE_ADDR_63_32(x) (((x) & SDMA_PKT_TIMESTAMP_GET_WRITE_ADDR_HI_write_addr_63_32_mask) << SDMA_PKT_TIMESTAMP_GET_WRITE_ADDR_HI_write_addr_63_32_shift)
  1751. /*
  1752. ** Definitions for SDMA_PKT_TIMESTAMP_GET_GLOBAL packet
  1753. */
  1754. /*define for HEADER word*/
  1755. /*define for op field*/
  1756. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_HEADER_op_offset 0
  1757. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_HEADER_op_mask 0x000000FF
  1758. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_HEADER_op_shift 0
  1759. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_HEADER_OP(x) (((x) & SDMA_PKT_TIMESTAMP_GET_GLOBAL_HEADER_op_mask) << SDMA_PKT_TIMESTAMP_GET_GLOBAL_HEADER_op_shift)
  1760. /*define for sub_op field*/
  1761. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_HEADER_sub_op_offset 0
  1762. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_HEADER_sub_op_mask 0x000000FF
  1763. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_HEADER_sub_op_shift 8
  1764. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_HEADER_SUB_OP(x) (((x) & SDMA_PKT_TIMESTAMP_GET_GLOBAL_HEADER_sub_op_mask) << SDMA_PKT_TIMESTAMP_GET_GLOBAL_HEADER_sub_op_shift)
  1765. /*define for WRITE_ADDR_LO word*/
  1766. /*define for write_addr_31_3 field*/
  1767. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_WRITE_ADDR_LO_write_addr_31_3_offset 1
  1768. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_WRITE_ADDR_LO_write_addr_31_3_mask 0x1FFFFFFF
  1769. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_WRITE_ADDR_LO_write_addr_31_3_shift 3
  1770. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_WRITE_ADDR_LO_WRITE_ADDR_31_3(x) (((x) & SDMA_PKT_TIMESTAMP_GET_GLOBAL_WRITE_ADDR_LO_write_addr_31_3_mask) << SDMA_PKT_TIMESTAMP_GET_GLOBAL_WRITE_ADDR_LO_write_addr_31_3_shift)
  1771. /*define for WRITE_ADDR_HI word*/
  1772. /*define for write_addr_63_32 field*/
  1773. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_WRITE_ADDR_HI_write_addr_63_32_offset 2
  1774. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_WRITE_ADDR_HI_write_addr_63_32_mask 0xFFFFFFFF
  1775. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_WRITE_ADDR_HI_write_addr_63_32_shift 0
  1776. #define SDMA_PKT_TIMESTAMP_GET_GLOBAL_WRITE_ADDR_HI_WRITE_ADDR_63_32(x) (((x) & SDMA_PKT_TIMESTAMP_GET_GLOBAL_WRITE_ADDR_HI_write_addr_63_32_mask) << SDMA_PKT_TIMESTAMP_GET_GLOBAL_WRITE_ADDR_HI_write_addr_63_32_shift)
  1777. /*
  1778. ** Definitions for SDMA_PKT_TRAP packet
  1779. */
  1780. /*define for HEADER word*/
  1781. /*define for op field*/
  1782. #define SDMA_PKT_TRAP_HEADER_op_offset 0
  1783. #define SDMA_PKT_TRAP_HEADER_op_mask 0x000000FF
  1784. #define SDMA_PKT_TRAP_HEADER_op_shift 0
  1785. #define SDMA_PKT_TRAP_HEADER_OP(x) (((x) & SDMA_PKT_TRAP_HEADER_op_mask) << SDMA_PKT_TRAP_HEADER_op_shift)
  1786. /*define for sub_op field*/
  1787. #define SDMA_PKT_TRAP_HEADER_sub_op_offset 0
  1788. #define SDMA_PKT_TRAP_HEADER_sub_op_mask 0x000000FF
  1789. #define SDMA_PKT_TRAP_HEADER_sub_op_shift 8
  1790. #define SDMA_PKT_TRAP_HEADER_SUB_OP(x) (((x) & SDMA_PKT_TRAP_HEADER_sub_op_mask) << SDMA_PKT_TRAP_HEADER_sub_op_shift)
  1791. /*define for INT_CONTEXT word*/
  1792. /*define for int_context field*/
  1793. #define SDMA_PKT_TRAP_INT_CONTEXT_int_context_offset 1
  1794. #define SDMA_PKT_TRAP_INT_CONTEXT_int_context_mask 0x0FFFFFFF
  1795. #define SDMA_PKT_TRAP_INT_CONTEXT_int_context_shift 0
  1796. #define SDMA_PKT_TRAP_INT_CONTEXT_INT_CONTEXT(x) (((x) & SDMA_PKT_TRAP_INT_CONTEXT_int_context_mask) << SDMA_PKT_TRAP_INT_CONTEXT_int_context_shift)
  1797. /*
  1798. ** Definitions for SDMA_PKT_NOP packet
  1799. */
  1800. /*define for HEADER word*/
  1801. /*define for op field*/
  1802. #define SDMA_PKT_NOP_HEADER_op_offset 0
  1803. #define SDMA_PKT_NOP_HEADER_op_mask 0x000000FF
  1804. #define SDMA_PKT_NOP_HEADER_op_shift 0
  1805. #define SDMA_PKT_NOP_HEADER_OP(x) (((x) & SDMA_PKT_NOP_HEADER_op_mask) << SDMA_PKT_NOP_HEADER_op_shift)
  1806. /*define for sub_op field*/
  1807. #define SDMA_PKT_NOP_HEADER_sub_op_offset 0
  1808. #define SDMA_PKT_NOP_HEADER_sub_op_mask 0x000000FF
  1809. #define SDMA_PKT_NOP_HEADER_sub_op_shift 8
  1810. #define SDMA_PKT_NOP_HEADER_SUB_OP(x) (((x) & SDMA_PKT_NOP_HEADER_sub_op_mask) << SDMA_PKT_NOP_HEADER_sub_op_shift)
  1811. /*define for count field*/
  1812. #define SDMA_PKT_NOP_HEADER_count_offset 0
  1813. #define SDMA_PKT_NOP_HEADER_count_mask 0x00003FFF
  1814. #define SDMA_PKT_NOP_HEADER_count_shift 16
  1815. #define SDMA_PKT_NOP_HEADER_COUNT(x) (((x) & SDMA_PKT_NOP_HEADER_count_mask) << SDMA_PKT_NOP_HEADER_count_shift)
  1816. #endif /* __ICELAND_SDMA_PKT_OPEN_H_ */