acp_2_2_enum.h 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069
  1. /*
  2. * ACP_2_2 Register documentation
  3. *
  4. * Copyright (C) 2014 Advanced Micro Devices, Inc.
  5. *
  6. * Permission is hereby granted, free of charge, to any person obtaining a
  7. * copy of this software and associated documentation files (the "Software"),
  8. * to deal in the Software without restriction, including without limitation
  9. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  10. * and/or sell copies of the Software, and to permit persons to whom the
  11. * Software is furnished to do so, subject to the following conditions:
  12. *
  13. * The above copyright notice and this permission notice shall be included
  14. * in all copies or substantial portions of the Software.
  15. *
  16. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  17. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  19. * THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  20. * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  21. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22. */
  23. #ifndef ACP_2_2_ENUM_H
  24. #define ACP_2_2_ENUM_H
  25. typedef enum DebugBlockId {
  26. DBG_BLOCK_ID_RESERVED = 0x0,
  27. DBG_BLOCK_ID_DBG = 0x1,
  28. DBG_BLOCK_ID_VMC = 0x2,
  29. DBG_BLOCK_ID_PDMA = 0x3,
  30. DBG_BLOCK_ID_CG = 0x4,
  31. DBG_BLOCK_ID_SRBM = 0x5,
  32. DBG_BLOCK_ID_GRBM = 0x6,
  33. DBG_BLOCK_ID_RLC = 0x7,
  34. DBG_BLOCK_ID_CSC = 0x8,
  35. DBG_BLOCK_ID_SEM = 0x9,
  36. DBG_BLOCK_ID_IH = 0xa,
  37. DBG_BLOCK_ID_SC = 0xb,
  38. DBG_BLOCK_ID_SQ = 0xc,
  39. DBG_BLOCK_ID_UVDU = 0xd,
  40. DBG_BLOCK_ID_SQA = 0xe,
  41. DBG_BLOCK_ID_SDMA0 = 0xf,
  42. DBG_BLOCK_ID_SDMA1 = 0x10,
  43. DBG_BLOCK_ID_SPIM = 0x11,
  44. DBG_BLOCK_ID_GDS = 0x12,
  45. DBG_BLOCK_ID_VC0 = 0x13,
  46. DBG_BLOCK_ID_VC1 = 0x14,
  47. DBG_BLOCK_ID_PA0 = 0x15,
  48. DBG_BLOCK_ID_PA1 = 0x16,
  49. DBG_BLOCK_ID_CP0 = 0x17,
  50. DBG_BLOCK_ID_CP1 = 0x18,
  51. DBG_BLOCK_ID_CP2 = 0x19,
  52. DBG_BLOCK_ID_XBR = 0x1a,
  53. DBG_BLOCK_ID_UVDM = 0x1b,
  54. DBG_BLOCK_ID_VGT0 = 0x1c,
  55. DBG_BLOCK_ID_VGT1 = 0x1d,
  56. DBG_BLOCK_ID_IA = 0x1e,
  57. DBG_BLOCK_ID_SXM0 = 0x1f,
  58. DBG_BLOCK_ID_SXM1 = 0x20,
  59. DBG_BLOCK_ID_SCT0 = 0x21,
  60. DBG_BLOCK_ID_SCT1 = 0x22,
  61. DBG_BLOCK_ID_SPM0 = 0x23,
  62. DBG_BLOCK_ID_SPM1 = 0x24,
  63. DBG_BLOCK_ID_UNUSED0 = 0x25,
  64. DBG_BLOCK_ID_UNUSED1 = 0x26,
  65. DBG_BLOCK_ID_TCAA = 0x27,
  66. DBG_BLOCK_ID_TCAB = 0x28,
  67. DBG_BLOCK_ID_TCCA = 0x29,
  68. DBG_BLOCK_ID_TCCB = 0x2a,
  69. DBG_BLOCK_ID_MCC0 = 0x2b,
  70. DBG_BLOCK_ID_MCC1 = 0x2c,
  71. DBG_BLOCK_ID_MCC2 = 0x2d,
  72. DBG_BLOCK_ID_MCC3 = 0x2e,
  73. DBG_BLOCK_ID_SXS0 = 0x2f,
  74. DBG_BLOCK_ID_SXS1 = 0x30,
  75. DBG_BLOCK_ID_SXS2 = 0x31,
  76. DBG_BLOCK_ID_SXS3 = 0x32,
  77. DBG_BLOCK_ID_SXS4 = 0x33,
  78. DBG_BLOCK_ID_SXS5 = 0x34,
  79. DBG_BLOCK_ID_SXS6 = 0x35,
  80. DBG_BLOCK_ID_SXS7 = 0x36,
  81. DBG_BLOCK_ID_SXS8 = 0x37,
  82. DBG_BLOCK_ID_SXS9 = 0x38,
  83. DBG_BLOCK_ID_BCI0 = 0x39,
  84. DBG_BLOCK_ID_BCI1 = 0x3a,
  85. DBG_BLOCK_ID_BCI2 = 0x3b,
  86. DBG_BLOCK_ID_BCI3 = 0x3c,
  87. DBG_BLOCK_ID_MCB = 0x3d,
  88. DBG_BLOCK_ID_UNUSED6 = 0x3e,
  89. DBG_BLOCK_ID_SQA00 = 0x3f,
  90. DBG_BLOCK_ID_SQA01 = 0x40,
  91. DBG_BLOCK_ID_SQA02 = 0x41,
  92. DBG_BLOCK_ID_SQA10 = 0x42,
  93. DBG_BLOCK_ID_SQA11 = 0x43,
  94. DBG_BLOCK_ID_SQA12 = 0x44,
  95. DBG_BLOCK_ID_UNUSED7 = 0x45,
  96. DBG_BLOCK_ID_UNUSED8 = 0x46,
  97. DBG_BLOCK_ID_SQB00 = 0x47,
  98. DBG_BLOCK_ID_SQB01 = 0x48,
  99. DBG_BLOCK_ID_SQB10 = 0x49,
  100. DBG_BLOCK_ID_SQB11 = 0x4a,
  101. DBG_BLOCK_ID_SQ00 = 0x4b,
  102. DBG_BLOCK_ID_SQ01 = 0x4c,
  103. DBG_BLOCK_ID_SQ10 = 0x4d,
  104. DBG_BLOCK_ID_SQ11 = 0x4e,
  105. DBG_BLOCK_ID_CB00 = 0x4f,
  106. DBG_BLOCK_ID_CB01 = 0x50,
  107. DBG_BLOCK_ID_CB02 = 0x51,
  108. DBG_BLOCK_ID_CB03 = 0x52,
  109. DBG_BLOCK_ID_CB04 = 0x53,
  110. DBG_BLOCK_ID_UNUSED9 = 0x54,
  111. DBG_BLOCK_ID_UNUSED10 = 0x55,
  112. DBG_BLOCK_ID_UNUSED11 = 0x56,
  113. DBG_BLOCK_ID_CB10 = 0x57,
  114. DBG_BLOCK_ID_CB11 = 0x58,
  115. DBG_BLOCK_ID_CB12 = 0x59,
  116. DBG_BLOCK_ID_CB13 = 0x5a,
  117. DBG_BLOCK_ID_CB14 = 0x5b,
  118. DBG_BLOCK_ID_UNUSED12 = 0x5c,
  119. DBG_BLOCK_ID_UNUSED13 = 0x5d,
  120. DBG_BLOCK_ID_UNUSED14 = 0x5e,
  121. DBG_BLOCK_ID_TCP0 = 0x5f,
  122. DBG_BLOCK_ID_TCP1 = 0x60,
  123. DBG_BLOCK_ID_TCP2 = 0x61,
  124. DBG_BLOCK_ID_TCP3 = 0x62,
  125. DBG_BLOCK_ID_TCP4 = 0x63,
  126. DBG_BLOCK_ID_TCP5 = 0x64,
  127. DBG_BLOCK_ID_TCP6 = 0x65,
  128. DBG_BLOCK_ID_TCP7 = 0x66,
  129. DBG_BLOCK_ID_TCP8 = 0x67,
  130. DBG_BLOCK_ID_TCP9 = 0x68,
  131. DBG_BLOCK_ID_TCP10 = 0x69,
  132. DBG_BLOCK_ID_TCP11 = 0x6a,
  133. DBG_BLOCK_ID_TCP12 = 0x6b,
  134. DBG_BLOCK_ID_TCP13 = 0x6c,
  135. DBG_BLOCK_ID_TCP14 = 0x6d,
  136. DBG_BLOCK_ID_TCP15 = 0x6e,
  137. DBG_BLOCK_ID_TCP16 = 0x6f,
  138. DBG_BLOCK_ID_TCP17 = 0x70,
  139. DBG_BLOCK_ID_TCP18 = 0x71,
  140. DBG_BLOCK_ID_TCP19 = 0x72,
  141. DBG_BLOCK_ID_TCP20 = 0x73,
  142. DBG_BLOCK_ID_TCP21 = 0x74,
  143. DBG_BLOCK_ID_TCP22 = 0x75,
  144. DBG_BLOCK_ID_TCP23 = 0x76,
  145. DBG_BLOCK_ID_TCP_RESERVED0 = 0x77,
  146. DBG_BLOCK_ID_TCP_RESERVED1 = 0x78,
  147. DBG_BLOCK_ID_TCP_RESERVED2 = 0x79,
  148. DBG_BLOCK_ID_TCP_RESERVED3 = 0x7a,
  149. DBG_BLOCK_ID_TCP_RESERVED4 = 0x7b,
  150. DBG_BLOCK_ID_TCP_RESERVED5 = 0x7c,
  151. DBG_BLOCK_ID_TCP_RESERVED6 = 0x7d,
  152. DBG_BLOCK_ID_TCP_RESERVED7 = 0x7e,
  153. DBG_BLOCK_ID_DB00 = 0x7f,
  154. DBG_BLOCK_ID_DB01 = 0x80,
  155. DBG_BLOCK_ID_DB02 = 0x81,
  156. DBG_BLOCK_ID_DB03 = 0x82,
  157. DBG_BLOCK_ID_DB04 = 0x83,
  158. DBG_BLOCK_ID_UNUSED15 = 0x84,
  159. DBG_BLOCK_ID_UNUSED16 = 0x85,
  160. DBG_BLOCK_ID_UNUSED17 = 0x86,
  161. DBG_BLOCK_ID_DB10 = 0x87,
  162. DBG_BLOCK_ID_DB11 = 0x88,
  163. DBG_BLOCK_ID_DB12 = 0x89,
  164. DBG_BLOCK_ID_DB13 = 0x8a,
  165. DBG_BLOCK_ID_DB14 = 0x8b,
  166. DBG_BLOCK_ID_UNUSED18 = 0x8c,
  167. DBG_BLOCK_ID_UNUSED19 = 0x8d,
  168. DBG_BLOCK_ID_UNUSED20 = 0x8e,
  169. DBG_BLOCK_ID_TCC0 = 0x8f,
  170. DBG_BLOCK_ID_TCC1 = 0x90,
  171. DBG_BLOCK_ID_TCC2 = 0x91,
  172. DBG_BLOCK_ID_TCC3 = 0x92,
  173. DBG_BLOCK_ID_TCC4 = 0x93,
  174. DBG_BLOCK_ID_TCC5 = 0x94,
  175. DBG_BLOCK_ID_TCC6 = 0x95,
  176. DBG_BLOCK_ID_TCC7 = 0x96,
  177. DBG_BLOCK_ID_SPS00 = 0x97,
  178. DBG_BLOCK_ID_SPS01 = 0x98,
  179. DBG_BLOCK_ID_SPS02 = 0x99,
  180. DBG_BLOCK_ID_SPS10 = 0x9a,
  181. DBG_BLOCK_ID_SPS11 = 0x9b,
  182. DBG_BLOCK_ID_SPS12 = 0x9c,
  183. DBG_BLOCK_ID_UNUSED21 = 0x9d,
  184. DBG_BLOCK_ID_UNUSED22 = 0x9e,
  185. DBG_BLOCK_ID_TA00 = 0x9f,
  186. DBG_BLOCK_ID_TA01 = 0xa0,
  187. DBG_BLOCK_ID_TA02 = 0xa1,
  188. DBG_BLOCK_ID_TA03 = 0xa2,
  189. DBG_BLOCK_ID_TA04 = 0xa3,
  190. DBG_BLOCK_ID_TA05 = 0xa4,
  191. DBG_BLOCK_ID_TA06 = 0xa5,
  192. DBG_BLOCK_ID_TA07 = 0xa6,
  193. DBG_BLOCK_ID_TA08 = 0xa7,
  194. DBG_BLOCK_ID_TA09 = 0xa8,
  195. DBG_BLOCK_ID_TA0A = 0xa9,
  196. DBG_BLOCK_ID_TA0B = 0xaa,
  197. DBG_BLOCK_ID_UNUSED23 = 0xab,
  198. DBG_BLOCK_ID_UNUSED24 = 0xac,
  199. DBG_BLOCK_ID_UNUSED25 = 0xad,
  200. DBG_BLOCK_ID_UNUSED26 = 0xae,
  201. DBG_BLOCK_ID_TA10 = 0xaf,
  202. DBG_BLOCK_ID_TA11 = 0xb0,
  203. DBG_BLOCK_ID_TA12 = 0xb1,
  204. DBG_BLOCK_ID_TA13 = 0xb2,
  205. DBG_BLOCK_ID_TA14 = 0xb3,
  206. DBG_BLOCK_ID_TA15 = 0xb4,
  207. DBG_BLOCK_ID_TA16 = 0xb5,
  208. DBG_BLOCK_ID_TA17 = 0xb6,
  209. DBG_BLOCK_ID_TA18 = 0xb7,
  210. DBG_BLOCK_ID_TA19 = 0xb8,
  211. DBG_BLOCK_ID_TA1A = 0xb9,
  212. DBG_BLOCK_ID_TA1B = 0xba,
  213. DBG_BLOCK_ID_UNUSED27 = 0xbb,
  214. DBG_BLOCK_ID_UNUSED28 = 0xbc,
  215. DBG_BLOCK_ID_UNUSED29 = 0xbd,
  216. DBG_BLOCK_ID_UNUSED30 = 0xbe,
  217. DBG_BLOCK_ID_TD00 = 0xbf,
  218. DBG_BLOCK_ID_TD01 = 0xc0,
  219. DBG_BLOCK_ID_TD02 = 0xc1,
  220. DBG_BLOCK_ID_TD03 = 0xc2,
  221. DBG_BLOCK_ID_TD04 = 0xc3,
  222. DBG_BLOCK_ID_TD05 = 0xc4,
  223. DBG_BLOCK_ID_TD06 = 0xc5,
  224. DBG_BLOCK_ID_TD07 = 0xc6,
  225. DBG_BLOCK_ID_TD08 = 0xc7,
  226. DBG_BLOCK_ID_TD09 = 0xc8,
  227. DBG_BLOCK_ID_TD0A = 0xc9,
  228. DBG_BLOCK_ID_TD0B = 0xca,
  229. DBG_BLOCK_ID_UNUSED31 = 0xcb,
  230. DBG_BLOCK_ID_UNUSED32 = 0xcc,
  231. DBG_BLOCK_ID_UNUSED33 = 0xcd,
  232. DBG_BLOCK_ID_UNUSED34 = 0xce,
  233. DBG_BLOCK_ID_TD10 = 0xcf,
  234. DBG_BLOCK_ID_TD11 = 0xd0,
  235. DBG_BLOCK_ID_TD12 = 0xd1,
  236. DBG_BLOCK_ID_TD13 = 0xd2,
  237. DBG_BLOCK_ID_TD14 = 0xd3,
  238. DBG_BLOCK_ID_TD15 = 0xd4,
  239. DBG_BLOCK_ID_TD16 = 0xd5,
  240. DBG_BLOCK_ID_TD17 = 0xd6,
  241. DBG_BLOCK_ID_TD18 = 0xd7,
  242. DBG_BLOCK_ID_TD19 = 0xd8,
  243. DBG_BLOCK_ID_TD1A = 0xd9,
  244. DBG_BLOCK_ID_TD1B = 0xda,
  245. DBG_BLOCK_ID_UNUSED35 = 0xdb,
  246. DBG_BLOCK_ID_UNUSED36 = 0xdc,
  247. DBG_BLOCK_ID_UNUSED37 = 0xdd,
  248. DBG_BLOCK_ID_UNUSED38 = 0xde,
  249. DBG_BLOCK_ID_LDS00 = 0xdf,
  250. DBG_BLOCK_ID_LDS01 = 0xe0,
  251. DBG_BLOCK_ID_LDS02 = 0xe1,
  252. DBG_BLOCK_ID_LDS03 = 0xe2,
  253. DBG_BLOCK_ID_LDS04 = 0xe3,
  254. DBG_BLOCK_ID_LDS05 = 0xe4,
  255. DBG_BLOCK_ID_LDS06 = 0xe5,
  256. DBG_BLOCK_ID_LDS07 = 0xe6,
  257. DBG_BLOCK_ID_LDS08 = 0xe7,
  258. DBG_BLOCK_ID_LDS09 = 0xe8,
  259. DBG_BLOCK_ID_LDS0A = 0xe9,
  260. DBG_BLOCK_ID_LDS0B = 0xea,
  261. DBG_BLOCK_ID_UNUSED39 = 0xeb,
  262. DBG_BLOCK_ID_UNUSED40 = 0xec,
  263. DBG_BLOCK_ID_UNUSED41 = 0xed,
  264. DBG_BLOCK_ID_UNUSED42 = 0xee,
  265. DBG_BLOCK_ID_LDS10 = 0xef,
  266. DBG_BLOCK_ID_LDS11 = 0xf0,
  267. DBG_BLOCK_ID_LDS12 = 0xf1,
  268. DBG_BLOCK_ID_LDS13 = 0xf2,
  269. DBG_BLOCK_ID_LDS14 = 0xf3,
  270. DBG_BLOCK_ID_LDS15 = 0xf4,
  271. DBG_BLOCK_ID_LDS16 = 0xf5,
  272. DBG_BLOCK_ID_LDS17 = 0xf6,
  273. DBG_BLOCK_ID_LDS18 = 0xf7,
  274. DBG_BLOCK_ID_LDS19 = 0xf8,
  275. DBG_BLOCK_ID_LDS1A = 0xf9,
  276. DBG_BLOCK_ID_LDS1B = 0xfa,
  277. DBG_BLOCK_ID_UNUSED43 = 0xfb,
  278. DBG_BLOCK_ID_UNUSED44 = 0xfc,
  279. DBG_BLOCK_ID_UNUSED45 = 0xfd,
  280. DBG_BLOCK_ID_UNUSED46 = 0xfe,
  281. } DebugBlockId;
  282. typedef enum DebugBlockId_BY2 {
  283. DBG_BLOCK_ID_RESERVED_BY2 = 0x0,
  284. DBG_BLOCK_ID_VMC_BY2 = 0x1,
  285. DBG_BLOCK_ID_UNUSED0_BY2 = 0x2,
  286. DBG_BLOCK_ID_GRBM_BY2 = 0x3,
  287. DBG_BLOCK_ID_CSC_BY2 = 0x4,
  288. DBG_BLOCK_ID_IH_BY2 = 0x5,
  289. DBG_BLOCK_ID_SQ_BY2 = 0x6,
  290. DBG_BLOCK_ID_UVD_BY2 = 0x7,
  291. DBG_BLOCK_ID_SDMA0_BY2 = 0x8,
  292. DBG_BLOCK_ID_SPIM_BY2 = 0x9,
  293. DBG_BLOCK_ID_VC0_BY2 = 0xa,
  294. DBG_BLOCK_ID_PA_BY2 = 0xb,
  295. DBG_BLOCK_ID_CP0_BY2 = 0xc,
  296. DBG_BLOCK_ID_CP2_BY2 = 0xd,
  297. DBG_BLOCK_ID_PC0_BY2 = 0xe,
  298. DBG_BLOCK_ID_BCI0_BY2 = 0xf,
  299. DBG_BLOCK_ID_SXM0_BY2 = 0x10,
  300. DBG_BLOCK_ID_SCT0_BY2 = 0x11,
  301. DBG_BLOCK_ID_SPM0_BY2 = 0x12,
  302. DBG_BLOCK_ID_BCI2_BY2 = 0x13,
  303. DBG_BLOCK_ID_TCA_BY2 = 0x14,
  304. DBG_BLOCK_ID_TCCA_BY2 = 0x15,
  305. DBG_BLOCK_ID_MCC_BY2 = 0x16,
  306. DBG_BLOCK_ID_MCC2_BY2 = 0x17,
  307. DBG_BLOCK_ID_MCD_BY2 = 0x18,
  308. DBG_BLOCK_ID_MCD2_BY2 = 0x19,
  309. DBG_BLOCK_ID_MCD4_BY2 = 0x1a,
  310. DBG_BLOCK_ID_MCB_BY2 = 0x1b,
  311. DBG_BLOCK_ID_SQA_BY2 = 0x1c,
  312. DBG_BLOCK_ID_SQA02_BY2 = 0x1d,
  313. DBG_BLOCK_ID_SQA11_BY2 = 0x1e,
  314. DBG_BLOCK_ID_UNUSED8_BY2 = 0x1f,
  315. DBG_BLOCK_ID_SQB_BY2 = 0x20,
  316. DBG_BLOCK_ID_SQB10_BY2 = 0x21,
  317. DBG_BLOCK_ID_UNUSED10_BY2 = 0x22,
  318. DBG_BLOCK_ID_UNUSED12_BY2 = 0x23,
  319. DBG_BLOCK_ID_CB_BY2 = 0x24,
  320. DBG_BLOCK_ID_CB02_BY2 = 0x25,
  321. DBG_BLOCK_ID_CB10_BY2 = 0x26,
  322. DBG_BLOCK_ID_CB12_BY2 = 0x27,
  323. DBG_BLOCK_ID_SXS_BY2 = 0x28,
  324. DBG_BLOCK_ID_SXS2_BY2 = 0x29,
  325. DBG_BLOCK_ID_SXS4_BY2 = 0x2a,
  326. DBG_BLOCK_ID_SXS6_BY2 = 0x2b,
  327. DBG_BLOCK_ID_DB_BY2 = 0x2c,
  328. DBG_BLOCK_ID_DB02_BY2 = 0x2d,
  329. DBG_BLOCK_ID_DB10_BY2 = 0x2e,
  330. DBG_BLOCK_ID_DB12_BY2 = 0x2f,
  331. DBG_BLOCK_ID_TCP_BY2 = 0x30,
  332. DBG_BLOCK_ID_TCP2_BY2 = 0x31,
  333. DBG_BLOCK_ID_TCP4_BY2 = 0x32,
  334. DBG_BLOCK_ID_TCP6_BY2 = 0x33,
  335. DBG_BLOCK_ID_TCP8_BY2 = 0x34,
  336. DBG_BLOCK_ID_TCP10_BY2 = 0x35,
  337. DBG_BLOCK_ID_TCP12_BY2 = 0x36,
  338. DBG_BLOCK_ID_TCP14_BY2 = 0x37,
  339. DBG_BLOCK_ID_TCP16_BY2 = 0x38,
  340. DBG_BLOCK_ID_TCP18_BY2 = 0x39,
  341. DBG_BLOCK_ID_TCP20_BY2 = 0x3a,
  342. DBG_BLOCK_ID_TCP22_BY2 = 0x3b,
  343. DBG_BLOCK_ID_TCP_RESERVED0_BY2 = 0x3c,
  344. DBG_BLOCK_ID_TCP_RESERVED2_BY2 = 0x3d,
  345. DBG_BLOCK_ID_TCP_RESERVED4_BY2 = 0x3e,
  346. DBG_BLOCK_ID_TCP_RESERVED6_BY2 = 0x3f,
  347. DBG_BLOCK_ID_TCC_BY2 = 0x40,
  348. DBG_BLOCK_ID_TCC2_BY2 = 0x41,
  349. DBG_BLOCK_ID_TCC4_BY2 = 0x42,
  350. DBG_BLOCK_ID_TCC6_BY2 = 0x43,
  351. DBG_BLOCK_ID_SPS_BY2 = 0x44,
  352. DBG_BLOCK_ID_SPS02_BY2 = 0x45,
  353. DBG_BLOCK_ID_SPS11_BY2 = 0x46,
  354. DBG_BLOCK_ID_UNUSED14_BY2 = 0x47,
  355. DBG_BLOCK_ID_TA_BY2 = 0x48,
  356. DBG_BLOCK_ID_TA02_BY2 = 0x49,
  357. DBG_BLOCK_ID_TA04_BY2 = 0x4a,
  358. DBG_BLOCK_ID_TA06_BY2 = 0x4b,
  359. DBG_BLOCK_ID_TA08_BY2 = 0x4c,
  360. DBG_BLOCK_ID_TA0A_BY2 = 0x4d,
  361. DBG_BLOCK_ID_UNUSED20_BY2 = 0x4e,
  362. DBG_BLOCK_ID_UNUSED22_BY2 = 0x4f,
  363. DBG_BLOCK_ID_TA10_BY2 = 0x50,
  364. DBG_BLOCK_ID_TA12_BY2 = 0x51,
  365. DBG_BLOCK_ID_TA14_BY2 = 0x52,
  366. DBG_BLOCK_ID_TA16_BY2 = 0x53,
  367. DBG_BLOCK_ID_TA18_BY2 = 0x54,
  368. DBG_BLOCK_ID_TA1A_BY2 = 0x55,
  369. DBG_BLOCK_ID_UNUSED24_BY2 = 0x56,
  370. DBG_BLOCK_ID_UNUSED26_BY2 = 0x57,
  371. DBG_BLOCK_ID_TD_BY2 = 0x58,
  372. DBG_BLOCK_ID_TD02_BY2 = 0x59,
  373. DBG_BLOCK_ID_TD04_BY2 = 0x5a,
  374. DBG_BLOCK_ID_TD06_BY2 = 0x5b,
  375. DBG_BLOCK_ID_TD08_BY2 = 0x5c,
  376. DBG_BLOCK_ID_TD0A_BY2 = 0x5d,
  377. DBG_BLOCK_ID_UNUSED28_BY2 = 0x5e,
  378. DBG_BLOCK_ID_UNUSED30_BY2 = 0x5f,
  379. DBG_BLOCK_ID_TD10_BY2 = 0x60,
  380. DBG_BLOCK_ID_TD12_BY2 = 0x61,
  381. DBG_BLOCK_ID_TD14_BY2 = 0x62,
  382. DBG_BLOCK_ID_TD16_BY2 = 0x63,
  383. DBG_BLOCK_ID_TD18_BY2 = 0x64,
  384. DBG_BLOCK_ID_TD1A_BY2 = 0x65,
  385. DBG_BLOCK_ID_UNUSED32_BY2 = 0x66,
  386. DBG_BLOCK_ID_UNUSED34_BY2 = 0x67,
  387. DBG_BLOCK_ID_LDS_BY2 = 0x68,
  388. DBG_BLOCK_ID_LDS02_BY2 = 0x69,
  389. DBG_BLOCK_ID_LDS04_BY2 = 0x6a,
  390. DBG_BLOCK_ID_LDS06_BY2 = 0x6b,
  391. DBG_BLOCK_ID_LDS08_BY2 = 0x6c,
  392. DBG_BLOCK_ID_LDS0A_BY2 = 0x6d,
  393. DBG_BLOCK_ID_UNUSED36_BY2 = 0x6e,
  394. DBG_BLOCK_ID_UNUSED38_BY2 = 0x6f,
  395. DBG_BLOCK_ID_LDS10_BY2 = 0x70,
  396. DBG_BLOCK_ID_LDS12_BY2 = 0x71,
  397. DBG_BLOCK_ID_LDS14_BY2 = 0x72,
  398. DBG_BLOCK_ID_LDS16_BY2 = 0x73,
  399. DBG_BLOCK_ID_LDS18_BY2 = 0x74,
  400. DBG_BLOCK_ID_LDS1A_BY2 = 0x75,
  401. DBG_BLOCK_ID_UNUSED40_BY2 = 0x76,
  402. DBG_BLOCK_ID_UNUSED42_BY2 = 0x77,
  403. } DebugBlockId_BY2;
  404. typedef enum DebugBlockId_BY4 {
  405. DBG_BLOCK_ID_RESERVED_BY4 = 0x0,
  406. DBG_BLOCK_ID_UNUSED0_BY4 = 0x1,
  407. DBG_BLOCK_ID_CSC_BY4 = 0x2,
  408. DBG_BLOCK_ID_SQ_BY4 = 0x3,
  409. DBG_BLOCK_ID_SDMA0_BY4 = 0x4,
  410. DBG_BLOCK_ID_VC0_BY4 = 0x5,
  411. DBG_BLOCK_ID_CP0_BY4 = 0x6,
  412. DBG_BLOCK_ID_UNUSED1_BY4 = 0x7,
  413. DBG_BLOCK_ID_SXM0_BY4 = 0x8,
  414. DBG_BLOCK_ID_SPM0_BY4 = 0x9,
  415. DBG_BLOCK_ID_TCAA_BY4 = 0xa,
  416. DBG_BLOCK_ID_MCC_BY4 = 0xb,
  417. DBG_BLOCK_ID_MCD_BY4 = 0xc,
  418. DBG_BLOCK_ID_MCD4_BY4 = 0xd,
  419. DBG_BLOCK_ID_SQA_BY4 = 0xe,
  420. DBG_BLOCK_ID_SQA11_BY4 = 0xf,
  421. DBG_BLOCK_ID_SQB_BY4 = 0x10,
  422. DBG_BLOCK_ID_UNUSED10_BY4 = 0x11,
  423. DBG_BLOCK_ID_CB_BY4 = 0x12,
  424. DBG_BLOCK_ID_CB10_BY4 = 0x13,
  425. DBG_BLOCK_ID_SXS_BY4 = 0x14,
  426. DBG_BLOCK_ID_SXS4_BY4 = 0x15,
  427. DBG_BLOCK_ID_DB_BY4 = 0x16,
  428. DBG_BLOCK_ID_DB10_BY4 = 0x17,
  429. DBG_BLOCK_ID_TCP_BY4 = 0x18,
  430. DBG_BLOCK_ID_TCP4_BY4 = 0x19,
  431. DBG_BLOCK_ID_TCP8_BY4 = 0x1a,
  432. DBG_BLOCK_ID_TCP12_BY4 = 0x1b,
  433. DBG_BLOCK_ID_TCP16_BY4 = 0x1c,
  434. DBG_BLOCK_ID_TCP20_BY4 = 0x1d,
  435. DBG_BLOCK_ID_TCP_RESERVED0_BY4 = 0x1e,
  436. DBG_BLOCK_ID_TCP_RESERVED4_BY4 = 0x1f,
  437. DBG_BLOCK_ID_TCC_BY4 = 0x20,
  438. DBG_BLOCK_ID_TCC4_BY4 = 0x21,
  439. DBG_BLOCK_ID_SPS_BY4 = 0x22,
  440. DBG_BLOCK_ID_SPS11_BY4 = 0x23,
  441. DBG_BLOCK_ID_TA_BY4 = 0x24,
  442. DBG_BLOCK_ID_TA04_BY4 = 0x25,
  443. DBG_BLOCK_ID_TA08_BY4 = 0x26,
  444. DBG_BLOCK_ID_UNUSED20_BY4 = 0x27,
  445. DBG_BLOCK_ID_TA10_BY4 = 0x28,
  446. DBG_BLOCK_ID_TA14_BY4 = 0x29,
  447. DBG_BLOCK_ID_TA18_BY4 = 0x2a,
  448. DBG_BLOCK_ID_UNUSED24_BY4 = 0x2b,
  449. DBG_BLOCK_ID_TD_BY4 = 0x2c,
  450. DBG_BLOCK_ID_TD04_BY4 = 0x2d,
  451. DBG_BLOCK_ID_TD08_BY4 = 0x2e,
  452. DBG_BLOCK_ID_UNUSED28_BY4 = 0x2f,
  453. DBG_BLOCK_ID_TD10_BY4 = 0x30,
  454. DBG_BLOCK_ID_TD14_BY4 = 0x31,
  455. DBG_BLOCK_ID_TD18_BY4 = 0x32,
  456. DBG_BLOCK_ID_UNUSED32_BY4 = 0x33,
  457. DBG_BLOCK_ID_LDS_BY4 = 0x34,
  458. DBG_BLOCK_ID_LDS04_BY4 = 0x35,
  459. DBG_BLOCK_ID_LDS08_BY4 = 0x36,
  460. DBG_BLOCK_ID_UNUSED36_BY4 = 0x37,
  461. DBG_BLOCK_ID_LDS10_BY4 = 0x38,
  462. DBG_BLOCK_ID_LDS14_BY4 = 0x39,
  463. DBG_BLOCK_ID_LDS18_BY4 = 0x3a,
  464. DBG_BLOCK_ID_UNUSED40_BY4 = 0x3b,
  465. } DebugBlockId_BY4;
  466. typedef enum DebugBlockId_BY8 {
  467. DBG_BLOCK_ID_RESERVED_BY8 = 0x0,
  468. DBG_BLOCK_ID_CSC_BY8 = 0x1,
  469. DBG_BLOCK_ID_SDMA0_BY8 = 0x2,
  470. DBG_BLOCK_ID_CP0_BY8 = 0x3,
  471. DBG_BLOCK_ID_SXM0_BY8 = 0x4,
  472. DBG_BLOCK_ID_TCA_BY8 = 0x5,
  473. DBG_BLOCK_ID_MCD_BY8 = 0x6,
  474. DBG_BLOCK_ID_SQA_BY8 = 0x7,
  475. DBG_BLOCK_ID_SQB_BY8 = 0x8,
  476. DBG_BLOCK_ID_CB_BY8 = 0x9,
  477. DBG_BLOCK_ID_SXS_BY8 = 0xa,
  478. DBG_BLOCK_ID_DB_BY8 = 0xb,
  479. DBG_BLOCK_ID_TCP_BY8 = 0xc,
  480. DBG_BLOCK_ID_TCP8_BY8 = 0xd,
  481. DBG_BLOCK_ID_TCP16_BY8 = 0xe,
  482. DBG_BLOCK_ID_TCP_RESERVED0_BY8 = 0xf,
  483. DBG_BLOCK_ID_TCC_BY8 = 0x10,
  484. DBG_BLOCK_ID_SPS_BY8 = 0x11,
  485. DBG_BLOCK_ID_TA_BY8 = 0x12,
  486. DBG_BLOCK_ID_TA08_BY8 = 0x13,
  487. DBG_BLOCK_ID_TA10_BY8 = 0x14,
  488. DBG_BLOCK_ID_TA18_BY8 = 0x15,
  489. DBG_BLOCK_ID_TD_BY8 = 0x16,
  490. DBG_BLOCK_ID_TD08_BY8 = 0x17,
  491. DBG_BLOCK_ID_TD10_BY8 = 0x18,
  492. DBG_BLOCK_ID_TD18_BY8 = 0x19,
  493. DBG_BLOCK_ID_LDS_BY8 = 0x1a,
  494. DBG_BLOCK_ID_LDS08_BY8 = 0x1b,
  495. DBG_BLOCK_ID_LDS10_BY8 = 0x1c,
  496. DBG_BLOCK_ID_LDS18_BY8 = 0x1d,
  497. } DebugBlockId_BY8;
  498. typedef enum DebugBlockId_BY16 {
  499. DBG_BLOCK_ID_RESERVED_BY16 = 0x0,
  500. DBG_BLOCK_ID_SDMA0_BY16 = 0x1,
  501. DBG_BLOCK_ID_SXM_BY16 = 0x2,
  502. DBG_BLOCK_ID_MCD_BY16 = 0x3,
  503. DBG_BLOCK_ID_SQB_BY16 = 0x4,
  504. DBG_BLOCK_ID_SXS_BY16 = 0x5,
  505. DBG_BLOCK_ID_TCP_BY16 = 0x6,
  506. DBG_BLOCK_ID_TCP16_BY16 = 0x7,
  507. DBG_BLOCK_ID_TCC_BY16 = 0x8,
  508. DBG_BLOCK_ID_TA_BY16 = 0x9,
  509. DBG_BLOCK_ID_TA10_BY16 = 0xa,
  510. DBG_BLOCK_ID_TD_BY16 = 0xb,
  511. DBG_BLOCK_ID_TD10_BY16 = 0xc,
  512. DBG_BLOCK_ID_LDS_BY16 = 0xd,
  513. DBG_BLOCK_ID_LDS10_BY16 = 0xe,
  514. } DebugBlockId_BY16;
  515. typedef enum SurfaceEndian {
  516. ENDIAN_NONE = 0x0,
  517. ENDIAN_8IN16 = 0x1,
  518. ENDIAN_8IN32 = 0x2,
  519. ENDIAN_8IN64 = 0x3,
  520. } SurfaceEndian;
  521. typedef enum ArrayMode {
  522. ARRAY_LINEAR_GENERAL = 0x0,
  523. ARRAY_LINEAR_ALIGNED = 0x1,
  524. ARRAY_1D_TILED_THIN1 = 0x2,
  525. ARRAY_1D_TILED_THICK = 0x3,
  526. ARRAY_2D_TILED_THIN1 = 0x4,
  527. ARRAY_PRT_TILED_THIN1 = 0x5,
  528. ARRAY_PRT_2D_TILED_THIN1 = 0x6,
  529. ARRAY_2D_TILED_THICK = 0x7,
  530. ARRAY_2D_TILED_XTHICK = 0x8,
  531. ARRAY_PRT_TILED_THICK = 0x9,
  532. ARRAY_PRT_2D_TILED_THICK = 0xa,
  533. ARRAY_PRT_3D_TILED_THIN1 = 0xb,
  534. ARRAY_3D_TILED_THIN1 = 0xc,
  535. ARRAY_3D_TILED_THICK = 0xd,
  536. ARRAY_3D_TILED_XTHICK = 0xe,
  537. ARRAY_PRT_3D_TILED_THICK = 0xf,
  538. } ArrayMode;
  539. typedef enum PipeTiling {
  540. CONFIG_1_PIPE = 0x0,
  541. CONFIG_2_PIPE = 0x1,
  542. CONFIG_4_PIPE = 0x2,
  543. CONFIG_8_PIPE = 0x3,
  544. } PipeTiling;
  545. typedef enum BankTiling {
  546. CONFIG_4_BANK = 0x0,
  547. CONFIG_8_BANK = 0x1,
  548. } BankTiling;
  549. typedef enum GroupInterleave {
  550. CONFIG_256B_GROUP = 0x0,
  551. CONFIG_512B_GROUP = 0x1,
  552. } GroupInterleave;
  553. typedef enum RowTiling {
  554. CONFIG_1KB_ROW = 0x0,
  555. CONFIG_2KB_ROW = 0x1,
  556. CONFIG_4KB_ROW = 0x2,
  557. CONFIG_8KB_ROW = 0x3,
  558. CONFIG_1KB_ROW_OPT = 0x4,
  559. CONFIG_2KB_ROW_OPT = 0x5,
  560. CONFIG_4KB_ROW_OPT = 0x6,
  561. CONFIG_8KB_ROW_OPT = 0x7,
  562. } RowTiling;
  563. typedef enum BankSwapBytes {
  564. CONFIG_128B_SWAPS = 0x0,
  565. CONFIG_256B_SWAPS = 0x1,
  566. CONFIG_512B_SWAPS = 0x2,
  567. CONFIG_1KB_SWAPS = 0x3,
  568. } BankSwapBytes;
  569. typedef enum SampleSplitBytes {
  570. CONFIG_1KB_SPLIT = 0x0,
  571. CONFIG_2KB_SPLIT = 0x1,
  572. CONFIG_4KB_SPLIT = 0x2,
  573. CONFIG_8KB_SPLIT = 0x3,
  574. } SampleSplitBytes;
  575. typedef enum NumPipes {
  576. ADDR_CONFIG_1_PIPE = 0x0,
  577. ADDR_CONFIG_2_PIPE = 0x1,
  578. ADDR_CONFIG_4_PIPE = 0x2,
  579. ADDR_CONFIG_8_PIPE = 0x3,
  580. } NumPipes;
  581. typedef enum PipeInterleaveSize {
  582. ADDR_CONFIG_PIPE_INTERLEAVE_256B = 0x0,
  583. ADDR_CONFIG_PIPE_INTERLEAVE_512B = 0x1,
  584. } PipeInterleaveSize;
  585. typedef enum BankInterleaveSize {
  586. ADDR_CONFIG_BANK_INTERLEAVE_1 = 0x0,
  587. ADDR_CONFIG_BANK_INTERLEAVE_2 = 0x1,
  588. ADDR_CONFIG_BANK_INTERLEAVE_4 = 0x2,
  589. ADDR_CONFIG_BANK_INTERLEAVE_8 = 0x3,
  590. } BankInterleaveSize;
  591. typedef enum NumShaderEngines {
  592. ADDR_CONFIG_1_SHADER_ENGINE = 0x0,
  593. ADDR_CONFIG_2_SHADER_ENGINE = 0x1,
  594. } NumShaderEngines;
  595. typedef enum ShaderEngineTileSize {
  596. ADDR_CONFIG_SE_TILE_16 = 0x0,
  597. ADDR_CONFIG_SE_TILE_32 = 0x1,
  598. } ShaderEngineTileSize;
  599. typedef enum NumGPUs {
  600. ADDR_CONFIG_1_GPU = 0x0,
  601. ADDR_CONFIG_2_GPU = 0x1,
  602. ADDR_CONFIG_4_GPU = 0x2,
  603. } NumGPUs;
  604. typedef enum MultiGPUTileSize {
  605. ADDR_CONFIG_GPU_TILE_16 = 0x0,
  606. ADDR_CONFIG_GPU_TILE_32 = 0x1,
  607. ADDR_CONFIG_GPU_TILE_64 = 0x2,
  608. ADDR_CONFIG_GPU_TILE_128 = 0x3,
  609. } MultiGPUTileSize;
  610. typedef enum RowSize {
  611. ADDR_CONFIG_1KB_ROW = 0x0,
  612. ADDR_CONFIG_2KB_ROW = 0x1,
  613. ADDR_CONFIG_4KB_ROW = 0x2,
  614. } RowSize;
  615. typedef enum NumLowerPipes {
  616. ADDR_CONFIG_1_LOWER_PIPES = 0x0,
  617. ADDR_CONFIG_2_LOWER_PIPES = 0x1,
  618. } NumLowerPipes;
  619. typedef enum ColorTransform {
  620. DCC_CT_AUTO = 0x0,
  621. DCC_CT_NONE = 0x1,
  622. ABGR_TO_A_BG_G_RB = 0x2,
  623. BGRA_TO_BG_G_RB_A = 0x3,
  624. } ColorTransform;
  625. typedef enum CompareRef {
  626. REF_NEVER = 0x0,
  627. REF_LESS = 0x1,
  628. REF_EQUAL = 0x2,
  629. REF_LEQUAL = 0x3,
  630. REF_GREATER = 0x4,
  631. REF_NOTEQUAL = 0x5,
  632. REF_GEQUAL = 0x6,
  633. REF_ALWAYS = 0x7,
  634. } CompareRef;
  635. typedef enum ReadSize {
  636. READ_256_BITS = 0x0,
  637. READ_512_BITS = 0x1,
  638. } ReadSize;
  639. typedef enum DepthFormat {
  640. DEPTH_INVALID = 0x0,
  641. DEPTH_16 = 0x1,
  642. DEPTH_X8_24 = 0x2,
  643. DEPTH_8_24 = 0x3,
  644. DEPTH_X8_24_FLOAT = 0x4,
  645. DEPTH_8_24_FLOAT = 0x5,
  646. DEPTH_32_FLOAT = 0x6,
  647. DEPTH_X24_8_32_FLOAT = 0x7,
  648. } DepthFormat;
  649. typedef enum ZFormat {
  650. Z_INVALID = 0x0,
  651. Z_16 = 0x1,
  652. Z_24 = 0x2,
  653. Z_32_FLOAT = 0x3,
  654. } ZFormat;
  655. typedef enum StencilFormat {
  656. STENCIL_INVALID = 0x0,
  657. STENCIL_8 = 0x1,
  658. } StencilFormat;
  659. typedef enum CmaskMode {
  660. CMASK_CLEAR_NONE = 0x0,
  661. CMASK_CLEAR_ONE = 0x1,
  662. CMASK_CLEAR_ALL = 0x2,
  663. CMASK_ANY_EXPANDED = 0x3,
  664. CMASK_ALPHA0_FRAG1 = 0x4,
  665. CMASK_ALPHA0_FRAG2 = 0x5,
  666. CMASK_ALPHA0_FRAG4 = 0x6,
  667. CMASK_ALPHA0_FRAGS = 0x7,
  668. CMASK_ALPHA1_FRAG1 = 0x8,
  669. CMASK_ALPHA1_FRAG2 = 0x9,
  670. CMASK_ALPHA1_FRAG4 = 0xa,
  671. CMASK_ALPHA1_FRAGS = 0xb,
  672. CMASK_ALPHAX_FRAG1 = 0xc,
  673. CMASK_ALPHAX_FRAG2 = 0xd,
  674. CMASK_ALPHAX_FRAG4 = 0xe,
  675. CMASK_ALPHAX_FRAGS = 0xf,
  676. } CmaskMode;
  677. typedef enum QuadExportFormat {
  678. EXPORT_UNUSED = 0x0,
  679. EXPORT_32_R = 0x1,
  680. EXPORT_32_GR = 0x2,
  681. EXPORT_32_AR = 0x3,
  682. EXPORT_FP16_ABGR = 0x4,
  683. EXPORT_UNSIGNED16_ABGR = 0x5,
  684. EXPORT_SIGNED16_ABGR = 0x6,
  685. EXPORT_32_ABGR = 0x7,
  686. } QuadExportFormat;
  687. typedef enum QuadExportFormatOld {
  688. EXPORT_4P_32BPC_ABGR = 0x0,
  689. EXPORT_4P_16BPC_ABGR = 0x1,
  690. EXPORT_4P_32BPC_GR = 0x2,
  691. EXPORT_4P_32BPC_AR = 0x3,
  692. EXPORT_2P_32BPC_ABGR = 0x4,
  693. EXPORT_8P_32BPC_R = 0x5,
  694. } QuadExportFormatOld;
  695. typedef enum ColorFormat {
  696. COLOR_INVALID = 0x0,
  697. COLOR_8 = 0x1,
  698. COLOR_16 = 0x2,
  699. COLOR_8_8 = 0x3,
  700. COLOR_32 = 0x4,
  701. COLOR_16_16 = 0x5,
  702. COLOR_10_11_11 = 0x6,
  703. COLOR_11_11_10 = 0x7,
  704. COLOR_10_10_10_2 = 0x8,
  705. COLOR_2_10_10_10 = 0x9,
  706. COLOR_8_8_8_8 = 0xa,
  707. COLOR_32_32 = 0xb,
  708. COLOR_16_16_16_16 = 0xc,
  709. COLOR_RESERVED_13 = 0xd,
  710. COLOR_32_32_32_32 = 0xe,
  711. COLOR_RESERVED_15 = 0xf,
  712. COLOR_5_6_5 = 0x10,
  713. COLOR_1_5_5_5 = 0x11,
  714. COLOR_5_5_5_1 = 0x12,
  715. COLOR_4_4_4_4 = 0x13,
  716. COLOR_8_24 = 0x14,
  717. COLOR_24_8 = 0x15,
  718. COLOR_X24_8_32_FLOAT = 0x16,
  719. COLOR_RESERVED_23 = 0x17,
  720. } ColorFormat;
  721. typedef enum SurfaceFormat {
  722. FMT_INVALID = 0x0,
  723. FMT_8 = 0x1,
  724. FMT_16 = 0x2,
  725. FMT_8_8 = 0x3,
  726. FMT_32 = 0x4,
  727. FMT_16_16 = 0x5,
  728. FMT_10_11_11 = 0x6,
  729. FMT_11_11_10 = 0x7,
  730. FMT_10_10_10_2 = 0x8,
  731. FMT_2_10_10_10 = 0x9,
  732. FMT_8_8_8_8 = 0xa,
  733. FMT_32_32 = 0xb,
  734. FMT_16_16_16_16 = 0xc,
  735. FMT_32_32_32 = 0xd,
  736. FMT_32_32_32_32 = 0xe,
  737. FMT_RESERVED_4 = 0xf,
  738. FMT_5_6_5 = 0x10,
  739. FMT_1_5_5_5 = 0x11,
  740. FMT_5_5_5_1 = 0x12,
  741. FMT_4_4_4_4 = 0x13,
  742. FMT_8_24 = 0x14,
  743. FMT_24_8 = 0x15,
  744. FMT_X24_8_32_FLOAT = 0x16,
  745. FMT_RESERVED_33 = 0x17,
  746. FMT_11_11_10_FLOAT = 0x18,
  747. FMT_16_FLOAT = 0x19,
  748. FMT_32_FLOAT = 0x1a,
  749. FMT_16_16_FLOAT = 0x1b,
  750. FMT_8_24_FLOAT = 0x1c,
  751. FMT_24_8_FLOAT = 0x1d,
  752. FMT_32_32_FLOAT = 0x1e,
  753. FMT_10_11_11_FLOAT = 0x1f,
  754. FMT_16_16_16_16_FLOAT = 0x20,
  755. FMT_3_3_2 = 0x21,
  756. FMT_6_5_5 = 0x22,
  757. FMT_32_32_32_32_FLOAT = 0x23,
  758. FMT_RESERVED_36 = 0x24,
  759. FMT_1 = 0x25,
  760. FMT_1_REVERSED = 0x26,
  761. FMT_GB_GR = 0x27,
  762. FMT_BG_RG = 0x28,
  763. FMT_32_AS_8 = 0x29,
  764. FMT_32_AS_8_8 = 0x2a,
  765. FMT_5_9_9_9_SHAREDEXP = 0x2b,
  766. FMT_8_8_8 = 0x2c,
  767. FMT_16_16_16 = 0x2d,
  768. FMT_16_16_16_FLOAT = 0x2e,
  769. FMT_4_4 = 0x2f,
  770. FMT_32_32_32_FLOAT = 0x30,
  771. FMT_BC1 = 0x31,
  772. FMT_BC2 = 0x32,
  773. FMT_BC3 = 0x33,
  774. FMT_BC4 = 0x34,
  775. FMT_BC5 = 0x35,
  776. FMT_BC6 = 0x36,
  777. FMT_BC7 = 0x37,
  778. FMT_32_AS_32_32_32_32 = 0x38,
  779. FMT_APC3 = 0x39,
  780. FMT_APC4 = 0x3a,
  781. FMT_APC5 = 0x3b,
  782. FMT_APC6 = 0x3c,
  783. FMT_APC7 = 0x3d,
  784. FMT_CTX1 = 0x3e,
  785. FMT_RESERVED_63 = 0x3f,
  786. } SurfaceFormat;
  787. typedef enum BUF_DATA_FORMAT {
  788. BUF_DATA_FORMAT_INVALID = 0x0,
  789. BUF_DATA_FORMAT_8 = 0x1,
  790. BUF_DATA_FORMAT_16 = 0x2,
  791. BUF_DATA_FORMAT_8_8 = 0x3,
  792. BUF_DATA_FORMAT_32 = 0x4,
  793. BUF_DATA_FORMAT_16_16 = 0x5,
  794. BUF_DATA_FORMAT_10_11_11 = 0x6,
  795. BUF_DATA_FORMAT_11_11_10 = 0x7,
  796. BUF_DATA_FORMAT_10_10_10_2 = 0x8,
  797. BUF_DATA_FORMAT_2_10_10_10 = 0x9,
  798. BUF_DATA_FORMAT_8_8_8_8 = 0xa,
  799. BUF_DATA_FORMAT_32_32 = 0xb,
  800. BUF_DATA_FORMAT_16_16_16_16 = 0xc,
  801. BUF_DATA_FORMAT_32_32_32 = 0xd,
  802. BUF_DATA_FORMAT_32_32_32_32 = 0xe,
  803. BUF_DATA_FORMAT_RESERVED_15 = 0xf,
  804. } BUF_DATA_FORMAT;
  805. typedef enum IMG_DATA_FORMAT {
  806. IMG_DATA_FORMAT_INVALID = 0x0,
  807. IMG_DATA_FORMAT_8 = 0x1,
  808. IMG_DATA_FORMAT_16 = 0x2,
  809. IMG_DATA_FORMAT_8_8 = 0x3,
  810. IMG_DATA_FORMAT_32 = 0x4,
  811. IMG_DATA_FORMAT_16_16 = 0x5,
  812. IMG_DATA_FORMAT_10_11_11 = 0x6,
  813. IMG_DATA_FORMAT_11_11_10 = 0x7,
  814. IMG_DATA_FORMAT_10_10_10_2 = 0x8,
  815. IMG_DATA_FORMAT_2_10_10_10 = 0x9,
  816. IMG_DATA_FORMAT_8_8_8_8 = 0xa,
  817. IMG_DATA_FORMAT_32_32 = 0xb,
  818. IMG_DATA_FORMAT_16_16_16_16 = 0xc,
  819. IMG_DATA_FORMAT_32_32_32 = 0xd,
  820. IMG_DATA_FORMAT_32_32_32_32 = 0xe,
  821. IMG_DATA_FORMAT_RESERVED_15 = 0xf,
  822. IMG_DATA_FORMAT_5_6_5 = 0x10,
  823. IMG_DATA_FORMAT_1_5_5_5 = 0x11,
  824. IMG_DATA_FORMAT_5_5_5_1 = 0x12,
  825. IMG_DATA_FORMAT_4_4_4_4 = 0x13,
  826. IMG_DATA_FORMAT_8_24 = 0x14,
  827. IMG_DATA_FORMAT_24_8 = 0x15,
  828. IMG_DATA_FORMAT_X24_8_32 = 0x16,
  829. IMG_DATA_FORMAT_RESERVED_23 = 0x17,
  830. IMG_DATA_FORMAT_RESERVED_24 = 0x18,
  831. IMG_DATA_FORMAT_RESERVED_25 = 0x19,
  832. IMG_DATA_FORMAT_RESERVED_26 = 0x1a,
  833. IMG_DATA_FORMAT_RESERVED_27 = 0x1b,
  834. IMG_DATA_FORMAT_RESERVED_28 = 0x1c,
  835. IMG_DATA_FORMAT_RESERVED_29 = 0x1d,
  836. IMG_DATA_FORMAT_RESERVED_30 = 0x1e,
  837. IMG_DATA_FORMAT_RESERVED_31 = 0x1f,
  838. IMG_DATA_FORMAT_GB_GR = 0x20,
  839. IMG_DATA_FORMAT_BG_RG = 0x21,
  840. IMG_DATA_FORMAT_5_9_9_9 = 0x22,
  841. IMG_DATA_FORMAT_BC1 = 0x23,
  842. IMG_DATA_FORMAT_BC2 = 0x24,
  843. IMG_DATA_FORMAT_BC3 = 0x25,
  844. IMG_DATA_FORMAT_BC4 = 0x26,
  845. IMG_DATA_FORMAT_BC5 = 0x27,
  846. IMG_DATA_FORMAT_BC6 = 0x28,
  847. IMG_DATA_FORMAT_BC7 = 0x29,
  848. IMG_DATA_FORMAT_RESERVED_42 = 0x2a,
  849. IMG_DATA_FORMAT_RESERVED_43 = 0x2b,
  850. IMG_DATA_FORMAT_FMASK8_S2_F1 = 0x2c,
  851. IMG_DATA_FORMAT_FMASK8_S4_F1 = 0x2d,
  852. IMG_DATA_FORMAT_FMASK8_S8_F1 = 0x2e,
  853. IMG_DATA_FORMAT_FMASK8_S2_F2 = 0x2f,
  854. IMG_DATA_FORMAT_FMASK8_S4_F2 = 0x30,
  855. IMG_DATA_FORMAT_FMASK8_S4_F4 = 0x31,
  856. IMG_DATA_FORMAT_FMASK16_S16_F1 = 0x32,
  857. IMG_DATA_FORMAT_FMASK16_S8_F2 = 0x33,
  858. IMG_DATA_FORMAT_FMASK32_S16_F2 = 0x34,
  859. IMG_DATA_FORMAT_FMASK32_S8_F4 = 0x35,
  860. IMG_DATA_FORMAT_FMASK32_S8_F8 = 0x36,
  861. IMG_DATA_FORMAT_FMASK64_S16_F4 = 0x37,
  862. IMG_DATA_FORMAT_FMASK64_S16_F8 = 0x38,
  863. IMG_DATA_FORMAT_4_4 = 0x39,
  864. IMG_DATA_FORMAT_6_5_5 = 0x3a,
  865. IMG_DATA_FORMAT_1 = 0x3b,
  866. IMG_DATA_FORMAT_1_REVERSED = 0x3c,
  867. IMG_DATA_FORMAT_32_AS_8 = 0x3d,
  868. IMG_DATA_FORMAT_32_AS_8_8 = 0x3e,
  869. IMG_DATA_FORMAT_32_AS_32_32_32_32 = 0x3f,
  870. } IMG_DATA_FORMAT;
  871. typedef enum BUF_NUM_FORMAT {
  872. BUF_NUM_FORMAT_UNORM = 0x0,
  873. BUF_NUM_FORMAT_SNORM = 0x1,
  874. BUF_NUM_FORMAT_USCALED = 0x2,
  875. BUF_NUM_FORMAT_SSCALED = 0x3,
  876. BUF_NUM_FORMAT_UINT = 0x4,
  877. BUF_NUM_FORMAT_SINT = 0x5,
  878. BUF_NUM_FORMAT_RESERVED_6 = 0x6,
  879. BUF_NUM_FORMAT_FLOAT = 0x7,
  880. } BUF_NUM_FORMAT;
  881. typedef enum IMG_NUM_FORMAT {
  882. IMG_NUM_FORMAT_UNORM = 0x0,
  883. IMG_NUM_FORMAT_SNORM = 0x1,
  884. IMG_NUM_FORMAT_USCALED = 0x2,
  885. IMG_NUM_FORMAT_SSCALED = 0x3,
  886. IMG_NUM_FORMAT_UINT = 0x4,
  887. IMG_NUM_FORMAT_SINT = 0x5,
  888. IMG_NUM_FORMAT_RESERVED_6 = 0x6,
  889. IMG_NUM_FORMAT_FLOAT = 0x7,
  890. IMG_NUM_FORMAT_RESERVED_8 = 0x8,
  891. IMG_NUM_FORMAT_SRGB = 0x9,
  892. IMG_NUM_FORMAT_RESERVED_10 = 0xa,
  893. IMG_NUM_FORMAT_RESERVED_11 = 0xb,
  894. IMG_NUM_FORMAT_RESERVED_12 = 0xc,
  895. IMG_NUM_FORMAT_RESERVED_13 = 0xd,
  896. IMG_NUM_FORMAT_RESERVED_14 = 0xe,
  897. IMG_NUM_FORMAT_RESERVED_15 = 0xf,
  898. } IMG_NUM_FORMAT;
  899. typedef enum TileType {
  900. ARRAY_COLOR_TILE = 0x0,
  901. ARRAY_DEPTH_TILE = 0x1,
  902. } TileType;
  903. typedef enum NonDispTilingOrder {
  904. ADDR_SURF_MICRO_TILING_DISPLAY = 0x0,
  905. ADDR_SURF_MICRO_TILING_NON_DISPLAY = 0x1,
  906. } NonDispTilingOrder;
  907. typedef enum MicroTileMode {
  908. ADDR_SURF_DISPLAY_MICRO_TILING = 0x0,
  909. ADDR_SURF_THIN_MICRO_TILING = 0x1,
  910. ADDR_SURF_DEPTH_MICRO_TILING = 0x2,
  911. ADDR_SURF_ROTATED_MICRO_TILING = 0x3,
  912. ADDR_SURF_THICK_MICRO_TILING = 0x4,
  913. } MicroTileMode;
  914. typedef enum TileSplit {
  915. ADDR_SURF_TILE_SPLIT_64B = 0x0,
  916. ADDR_SURF_TILE_SPLIT_128B = 0x1,
  917. ADDR_SURF_TILE_SPLIT_256B = 0x2,
  918. ADDR_SURF_TILE_SPLIT_512B = 0x3,
  919. ADDR_SURF_TILE_SPLIT_1KB = 0x4,
  920. ADDR_SURF_TILE_SPLIT_2KB = 0x5,
  921. ADDR_SURF_TILE_SPLIT_4KB = 0x6,
  922. } TileSplit;
  923. typedef enum SampleSplit {
  924. ADDR_SURF_SAMPLE_SPLIT_1 = 0x0,
  925. ADDR_SURF_SAMPLE_SPLIT_2 = 0x1,
  926. ADDR_SURF_SAMPLE_SPLIT_4 = 0x2,
  927. ADDR_SURF_SAMPLE_SPLIT_8 = 0x3,
  928. } SampleSplit;
  929. typedef enum PipeConfig {
  930. ADDR_SURF_P2 = 0x0,
  931. ADDR_SURF_P2_RESERVED0 = 0x1,
  932. ADDR_SURF_P2_RESERVED1 = 0x2,
  933. ADDR_SURF_P2_RESERVED2 = 0x3,
  934. ADDR_SURF_P4_8x16 = 0x4,
  935. ADDR_SURF_P4_16x16 = 0x5,
  936. ADDR_SURF_P4_16x32 = 0x6,
  937. ADDR_SURF_P4_32x32 = 0x7,
  938. ADDR_SURF_P8_16x16_8x16 = 0x8,
  939. ADDR_SURF_P8_16x32_8x16 = 0x9,
  940. ADDR_SURF_P8_32x32_8x16 = 0xa,
  941. ADDR_SURF_P8_16x32_16x16 = 0xb,
  942. ADDR_SURF_P8_32x32_16x16 = 0xc,
  943. ADDR_SURF_P8_32x32_16x32 = 0xd,
  944. ADDR_SURF_P8_32x64_32x32 = 0xe,
  945. ADDR_SURF_P8_RESERVED0 = 0xf,
  946. ADDR_SURF_P16_32x32_8x16 = 0x10,
  947. ADDR_SURF_P16_32x32_16x16 = 0x11,
  948. } PipeConfig;
  949. typedef enum NumBanks {
  950. ADDR_SURF_2_BANK = 0x0,
  951. ADDR_SURF_4_BANK = 0x1,
  952. ADDR_SURF_8_BANK = 0x2,
  953. ADDR_SURF_16_BANK = 0x3,
  954. } NumBanks;
  955. typedef enum BankWidth {
  956. ADDR_SURF_BANK_WIDTH_1 = 0x0,
  957. ADDR_SURF_BANK_WIDTH_2 = 0x1,
  958. ADDR_SURF_BANK_WIDTH_4 = 0x2,
  959. ADDR_SURF_BANK_WIDTH_8 = 0x3,
  960. } BankWidth;
  961. typedef enum BankHeight {
  962. ADDR_SURF_BANK_HEIGHT_1 = 0x0,
  963. ADDR_SURF_BANK_HEIGHT_2 = 0x1,
  964. ADDR_SURF_BANK_HEIGHT_4 = 0x2,
  965. ADDR_SURF_BANK_HEIGHT_8 = 0x3,
  966. } BankHeight;
  967. typedef enum BankWidthHeight {
  968. ADDR_SURF_BANK_WH_1 = 0x0,
  969. ADDR_SURF_BANK_WH_2 = 0x1,
  970. ADDR_SURF_BANK_WH_4 = 0x2,
  971. ADDR_SURF_BANK_WH_8 = 0x3,
  972. } BankWidthHeight;
  973. typedef enum MacroTileAspect {
  974. ADDR_SURF_MACRO_ASPECT_1 = 0x0,
  975. ADDR_SURF_MACRO_ASPECT_2 = 0x1,
  976. ADDR_SURF_MACRO_ASPECT_4 = 0x2,
  977. ADDR_SURF_MACRO_ASPECT_8 = 0x3,
  978. } MacroTileAspect;
  979. typedef enum GATCL1RequestType {
  980. GATCL1_TYPE_NORMAL = 0x0,
  981. GATCL1_TYPE_SHOOTDOWN = 0x1,
  982. GATCL1_TYPE_BYPASS = 0x2,
  983. } GATCL1RequestType;
  984. typedef enum TCC_CACHE_POLICIES {
  985. TCC_CACHE_POLICY_LRU = 0x0,
  986. TCC_CACHE_POLICY_STREAM = 0x1,
  987. } TCC_CACHE_POLICIES;
  988. typedef enum MTYPE {
  989. MTYPE_NC_NV = 0x0,
  990. MTYPE_NC = 0x1,
  991. MTYPE_CC = 0x2,
  992. MTYPE_UC = 0x3,
  993. } MTYPE;
  994. typedef enum PERFMON_COUNTER_MODE {
  995. PERFMON_COUNTER_MODE_ACCUM = 0x0,
  996. PERFMON_COUNTER_MODE_ACTIVE_CYCLES = 0x1,
  997. PERFMON_COUNTER_MODE_MAX = 0x2,
  998. PERFMON_COUNTER_MODE_DIRTY = 0x3,
  999. PERFMON_COUNTER_MODE_SAMPLE = 0x4,
  1000. PERFMON_COUNTER_MODE_CYCLES_SINCE_FIRST_EVENT = 0x5,
  1001. PERFMON_COUNTER_MODE_CYCLES_SINCE_LAST_EVENT = 0x6,
  1002. PERFMON_COUNTER_MODE_CYCLES_GE_HI = 0x7,
  1003. PERFMON_COUNTER_MODE_CYCLES_EQ_HI = 0x8,
  1004. PERFMON_COUNTER_MODE_INACTIVE_CYCLES = 0x9,
  1005. PERFMON_COUNTER_MODE_RESERVED = 0xf,
  1006. } PERFMON_COUNTER_MODE;
  1007. typedef enum PERFMON_SPM_MODE {
  1008. PERFMON_SPM_MODE_OFF = 0x0,
  1009. PERFMON_SPM_MODE_16BIT_CLAMP = 0x1,
  1010. PERFMON_SPM_MODE_16BIT_NO_CLAMP = 0x2,
  1011. PERFMON_SPM_MODE_32BIT_CLAMP = 0x3,
  1012. PERFMON_SPM_MODE_32BIT_NO_CLAMP = 0x4,
  1013. PERFMON_SPM_MODE_RESERVED_5 = 0x5,
  1014. PERFMON_SPM_MODE_RESERVED_6 = 0x6,
  1015. PERFMON_SPM_MODE_RESERVED_7 = 0x7,
  1016. PERFMON_SPM_MODE_TEST_MODE_0 = 0x8,
  1017. PERFMON_SPM_MODE_TEST_MODE_1 = 0x9,
  1018. PERFMON_SPM_MODE_TEST_MODE_2 = 0xa,
  1019. } PERFMON_SPM_MODE;
  1020. typedef enum SurfaceTiling {
  1021. ARRAY_LINEAR = 0x0,
  1022. ARRAY_TILED = 0x1,
  1023. } SurfaceTiling;
  1024. typedef enum SurfaceArray {
  1025. ARRAY_1D = 0x0,
  1026. ARRAY_2D = 0x1,
  1027. ARRAY_3D = 0x2,
  1028. ARRAY_3D_SLICE = 0x3,
  1029. } SurfaceArray;
  1030. typedef enum ColorArray {
  1031. ARRAY_2D_ALT_COLOR = 0x0,
  1032. ARRAY_2D_COLOR = 0x1,
  1033. ARRAY_3D_SLICE_COLOR = 0x3,
  1034. } ColorArray;
  1035. typedef enum DepthArray {
  1036. ARRAY_2D_ALT_DEPTH = 0x0,
  1037. ARRAY_2D_DEPTH = 0x1,
  1038. } DepthArray;
  1039. typedef enum ENUM_NUM_SIMD_PER_CU {
  1040. NUM_SIMD_PER_CU = 0x4,
  1041. } ENUM_NUM_SIMD_PER_CU;
  1042. typedef enum MEM_PWR_FORCE_CTRL {
  1043. NO_FORCE_REQUEST = 0x0,
  1044. FORCE_LIGHT_SLEEP_REQUEST = 0x1,
  1045. FORCE_DEEP_SLEEP_REQUEST = 0x2,
  1046. FORCE_SHUT_DOWN_REQUEST = 0x3,
  1047. } MEM_PWR_FORCE_CTRL;
  1048. typedef enum MEM_PWR_FORCE_CTRL2 {
  1049. NO_FORCE_REQ = 0x0,
  1050. FORCE_LIGHT_SLEEP_REQ = 0x1,
  1051. } MEM_PWR_FORCE_CTRL2;
  1052. typedef enum MEM_PWR_DIS_CTRL {
  1053. ENABLE_MEM_PWR_CTRL = 0x0,
  1054. DISABLE_MEM_PWR_CTRL = 0x1,
  1055. } MEM_PWR_DIS_CTRL;
  1056. typedef enum MEM_PWR_SEL_CTRL {
  1057. DYNAMIC_SHUT_DOWN_ENABLE = 0x0,
  1058. DYNAMIC_DEEP_SLEEP_ENABLE = 0x1,
  1059. DYNAMIC_LIGHT_SLEEP_ENABLE = 0x2,
  1060. } MEM_PWR_SEL_CTRL;
  1061. typedef enum MEM_PWR_SEL_CTRL2 {
  1062. DYNAMIC_DEEP_SLEEP_EN = 0x0,
  1063. DYNAMIC_LIGHT_SLEEP_EN = 0x1,
  1064. } MEM_PWR_SEL_CTRL2;
  1065. #endif /* ACP_2_2_ENUM_H */