v9_structs.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. /*
  2. * Copyright 2012-2016 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 in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * 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) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
  18. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  19. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  20. * OTHER DEALINGS IN THE SOFTWARE.
  21. *
  22. */
  23. #ifndef V9_STRUCTS_H_
  24. #define V9_STRUCTS_H_
  25. struct v9_sdma_mqd {
  26. uint32_t sdmax_rlcx_rb_cntl;
  27. uint32_t sdmax_rlcx_rb_base;
  28. uint32_t sdmax_rlcx_rb_base_hi;
  29. uint32_t sdmax_rlcx_rb_rptr;
  30. uint32_t sdmax_rlcx_rb_wptr;
  31. uint32_t sdmax_rlcx_rb_wptr_poll_cntl;
  32. uint32_t sdmax_rlcx_rb_wptr_poll_addr_hi;
  33. uint32_t sdmax_rlcx_rb_wptr_poll_addr_lo;
  34. uint32_t sdmax_rlcx_rb_rptr_addr_hi;
  35. uint32_t sdmax_rlcx_rb_rptr_addr_lo;
  36. uint32_t sdmax_rlcx_ib_cntl;
  37. uint32_t sdmax_rlcx_ib_rptr;
  38. uint32_t sdmax_rlcx_ib_offset;
  39. uint32_t sdmax_rlcx_ib_base_lo;
  40. uint32_t sdmax_rlcx_ib_base_hi;
  41. uint32_t sdmax_rlcx_ib_size;
  42. uint32_t sdmax_rlcx_skip_cntl;
  43. uint32_t sdmax_rlcx_context_status;
  44. uint32_t sdmax_rlcx_doorbell;
  45. uint32_t sdmax_rlcx_virtual_addr;
  46. uint32_t sdmax_rlcx_ape1_cntl;
  47. uint32_t sdmax_rlcx_doorbell_log;
  48. uint32_t reserved_22;
  49. uint32_t reserved_23;
  50. uint32_t reserved_24;
  51. uint32_t reserved_25;
  52. uint32_t reserved_26;
  53. uint32_t reserved_27;
  54. uint32_t reserved_28;
  55. uint32_t reserved_29;
  56. uint32_t reserved_30;
  57. uint32_t reserved_31;
  58. uint32_t reserved_32;
  59. uint32_t reserved_33;
  60. uint32_t reserved_34;
  61. uint32_t reserved_35;
  62. uint32_t reserved_36;
  63. uint32_t reserved_37;
  64. uint32_t reserved_38;
  65. uint32_t reserved_39;
  66. uint32_t reserved_40;
  67. uint32_t reserved_41;
  68. uint32_t reserved_42;
  69. uint32_t reserved_43;
  70. uint32_t reserved_44;
  71. uint32_t reserved_45;
  72. uint32_t reserved_46;
  73. uint32_t reserved_47;
  74. uint32_t reserved_48;
  75. uint32_t reserved_49;
  76. uint32_t reserved_50;
  77. uint32_t reserved_51;
  78. uint32_t reserved_52;
  79. uint32_t reserved_53;
  80. uint32_t reserved_54;
  81. uint32_t reserved_55;
  82. uint32_t reserved_56;
  83. uint32_t reserved_57;
  84. uint32_t reserved_58;
  85. uint32_t reserved_59;
  86. uint32_t reserved_60;
  87. uint32_t reserved_61;
  88. uint32_t reserved_62;
  89. uint32_t reserved_63;
  90. uint32_t reserved_64;
  91. uint32_t reserved_65;
  92. uint32_t reserved_66;
  93. uint32_t reserved_67;
  94. uint32_t reserved_68;
  95. uint32_t reserved_69;
  96. uint32_t reserved_70;
  97. uint32_t reserved_71;
  98. uint32_t reserved_72;
  99. uint32_t reserved_73;
  100. uint32_t reserved_74;
  101. uint32_t reserved_75;
  102. uint32_t reserved_76;
  103. uint32_t reserved_77;
  104. uint32_t reserved_78;
  105. uint32_t reserved_79;
  106. uint32_t reserved_80;
  107. uint32_t reserved_81;
  108. uint32_t reserved_82;
  109. uint32_t reserved_83;
  110. uint32_t reserved_84;
  111. uint32_t reserved_85;
  112. uint32_t reserved_86;
  113. uint32_t reserved_87;
  114. uint32_t reserved_88;
  115. uint32_t reserved_89;
  116. uint32_t reserved_90;
  117. uint32_t reserved_91;
  118. uint32_t reserved_92;
  119. uint32_t reserved_93;
  120. uint32_t reserved_94;
  121. uint32_t reserved_95;
  122. uint32_t reserved_96;
  123. uint32_t reserved_97;
  124. uint32_t reserved_98;
  125. uint32_t reserved_99;
  126. uint32_t reserved_100;
  127. uint32_t reserved_101;
  128. uint32_t reserved_102;
  129. uint32_t reserved_103;
  130. uint32_t reserved_104;
  131. uint32_t reserved_105;
  132. uint32_t reserved_106;
  133. uint32_t reserved_107;
  134. uint32_t reserved_108;
  135. uint32_t reserved_109;
  136. uint32_t reserved_110;
  137. uint32_t reserved_111;
  138. uint32_t reserved_112;
  139. uint32_t reserved_113;
  140. uint32_t reserved_114;
  141. uint32_t reserved_115;
  142. uint32_t reserved_116;
  143. uint32_t reserved_117;
  144. uint32_t reserved_118;
  145. uint32_t reserved_119;
  146. uint32_t reserved_120;
  147. uint32_t reserved_121;
  148. uint32_t reserved_122;
  149. uint32_t reserved_123;
  150. uint32_t reserved_124;
  151. uint32_t reserved_125;
  152. uint32_t reserved_126;
  153. uint32_t reserved_127;
  154. uint32_t sdma_engine_id;
  155. uint32_t sdma_queue_id;
  156. };
  157. struct v9_mqd {
  158. uint32_t header;
  159. uint32_t compute_dispatch_initiator;
  160. uint32_t compute_dim_x;
  161. uint32_t compute_dim_y;
  162. uint32_t compute_dim_z;
  163. uint32_t compute_start_x;
  164. uint32_t compute_start_y;
  165. uint32_t compute_start_z;
  166. uint32_t compute_num_thread_x;
  167. uint32_t compute_num_thread_y;
  168. uint32_t compute_num_thread_z;
  169. uint32_t compute_pipelinestat_enable;
  170. uint32_t compute_perfcount_enable;
  171. uint32_t compute_pgm_lo;
  172. uint32_t compute_pgm_hi;
  173. uint32_t compute_tba_lo;
  174. uint32_t compute_tba_hi;
  175. uint32_t compute_tma_lo;
  176. uint32_t compute_tma_hi;
  177. uint32_t compute_pgm_rsrc1;
  178. uint32_t compute_pgm_rsrc2;
  179. uint32_t compute_vmid;
  180. uint32_t compute_resource_limits;
  181. uint32_t compute_static_thread_mgmt_se0;
  182. uint32_t compute_static_thread_mgmt_se1;
  183. uint32_t compute_tmpring_size;
  184. uint32_t compute_static_thread_mgmt_se2;
  185. uint32_t compute_static_thread_mgmt_se3;
  186. uint32_t compute_restart_x;
  187. uint32_t compute_restart_y;
  188. uint32_t compute_restart_z;
  189. uint32_t compute_thread_trace_enable;
  190. uint32_t compute_misc_reserved;
  191. uint32_t compute_dispatch_id;
  192. uint32_t compute_threadgroup_id;
  193. uint32_t compute_relaunch;
  194. uint32_t compute_wave_restore_addr_lo;
  195. uint32_t compute_wave_restore_addr_hi;
  196. uint32_t compute_wave_restore_control;
  197. uint32_t reserved_39;
  198. uint32_t reserved_40;
  199. uint32_t reserved_41;
  200. uint32_t reserved_42;
  201. uint32_t reserved_43;
  202. uint32_t reserved_44;
  203. uint32_t reserved_45;
  204. uint32_t reserved_46;
  205. uint32_t reserved_47;
  206. uint32_t reserved_48;
  207. uint32_t reserved_49;
  208. uint32_t reserved_50;
  209. uint32_t reserved_51;
  210. uint32_t reserved_52;
  211. uint32_t reserved_53;
  212. uint32_t reserved_54;
  213. uint32_t reserved_55;
  214. uint32_t reserved_56;
  215. uint32_t reserved_57;
  216. uint32_t reserved_58;
  217. uint32_t reserved_59;
  218. uint32_t reserved_60;
  219. uint32_t reserved_61;
  220. uint32_t reserved_62;
  221. uint32_t reserved_63;
  222. uint32_t reserved_64;
  223. uint32_t compute_user_data_0;
  224. uint32_t compute_user_data_1;
  225. uint32_t compute_user_data_2;
  226. uint32_t compute_user_data_3;
  227. uint32_t compute_user_data_4;
  228. uint32_t compute_user_data_5;
  229. uint32_t compute_user_data_6;
  230. uint32_t compute_user_data_7;
  231. uint32_t compute_user_data_8;
  232. uint32_t compute_user_data_9;
  233. uint32_t compute_user_data_10;
  234. uint32_t compute_user_data_11;
  235. uint32_t compute_user_data_12;
  236. uint32_t compute_user_data_13;
  237. uint32_t compute_user_data_14;
  238. uint32_t compute_user_data_15;
  239. uint32_t cp_compute_csinvoc_count_lo;
  240. uint32_t cp_compute_csinvoc_count_hi;
  241. uint32_t reserved_83;
  242. uint32_t reserved_84;
  243. uint32_t reserved_85;
  244. uint32_t cp_mqd_query_time_lo;
  245. uint32_t cp_mqd_query_time_hi;
  246. uint32_t cp_mqd_connect_start_time_lo;
  247. uint32_t cp_mqd_connect_start_time_hi;
  248. uint32_t cp_mqd_connect_end_time_lo;
  249. uint32_t cp_mqd_connect_end_time_hi;
  250. uint32_t cp_mqd_connect_end_wf_count;
  251. uint32_t cp_mqd_connect_end_pq_rptr;
  252. uint32_t cp_mqd_connect_end_pq_wptr;
  253. uint32_t cp_mqd_connect_end_ib_rptr;
  254. uint32_t cp_mqd_readindex_lo;
  255. uint32_t cp_mqd_readindex_hi;
  256. uint32_t cp_mqd_save_start_time_lo;
  257. uint32_t cp_mqd_save_start_time_hi;
  258. uint32_t cp_mqd_save_end_time_lo;
  259. uint32_t cp_mqd_save_end_time_hi;
  260. uint32_t cp_mqd_restore_start_time_lo;
  261. uint32_t cp_mqd_restore_start_time_hi;
  262. uint32_t cp_mqd_restore_end_time_lo;
  263. uint32_t cp_mqd_restore_end_time_hi;
  264. uint32_t disable_queue;
  265. uint32_t reserved_107;
  266. uint32_t gds_cs_ctxsw_cnt0;
  267. uint32_t gds_cs_ctxsw_cnt1;
  268. uint32_t gds_cs_ctxsw_cnt2;
  269. uint32_t gds_cs_ctxsw_cnt3;
  270. uint32_t reserved_112;
  271. uint32_t reserved_113;
  272. uint32_t cp_pq_exe_status_lo;
  273. uint32_t cp_pq_exe_status_hi;
  274. uint32_t cp_packet_id_lo;
  275. uint32_t cp_packet_id_hi;
  276. uint32_t cp_packet_exe_status_lo;
  277. uint32_t cp_packet_exe_status_hi;
  278. uint32_t gds_save_base_addr_lo;
  279. uint32_t gds_save_base_addr_hi;
  280. uint32_t gds_save_mask_lo;
  281. uint32_t gds_save_mask_hi;
  282. uint32_t ctx_save_base_addr_lo;
  283. uint32_t ctx_save_base_addr_hi;
  284. uint32_t reserved_126;
  285. uint32_t reserved_127;
  286. uint32_t cp_mqd_base_addr_lo;
  287. uint32_t cp_mqd_base_addr_hi;
  288. uint32_t cp_hqd_active;
  289. uint32_t cp_hqd_vmid;
  290. uint32_t cp_hqd_persistent_state;
  291. uint32_t cp_hqd_pipe_priority;
  292. uint32_t cp_hqd_queue_priority;
  293. uint32_t cp_hqd_quantum;
  294. uint32_t cp_hqd_pq_base_lo;
  295. uint32_t cp_hqd_pq_base_hi;
  296. uint32_t cp_hqd_pq_rptr;
  297. uint32_t cp_hqd_pq_rptr_report_addr_lo;
  298. uint32_t cp_hqd_pq_rptr_report_addr_hi;
  299. uint32_t cp_hqd_pq_wptr_poll_addr_lo;
  300. uint32_t cp_hqd_pq_wptr_poll_addr_hi;
  301. uint32_t cp_hqd_pq_doorbell_control;
  302. uint32_t reserved_144;
  303. uint32_t cp_hqd_pq_control;
  304. uint32_t cp_hqd_ib_base_addr_lo;
  305. uint32_t cp_hqd_ib_base_addr_hi;
  306. uint32_t cp_hqd_ib_rptr;
  307. uint32_t cp_hqd_ib_control;
  308. uint32_t cp_hqd_iq_timer;
  309. uint32_t cp_hqd_iq_rptr;
  310. uint32_t cp_hqd_dequeue_request;
  311. uint32_t cp_hqd_dma_offload;
  312. uint32_t cp_hqd_sema_cmd;
  313. uint32_t cp_hqd_msg_type;
  314. uint32_t cp_hqd_atomic0_preop_lo;
  315. uint32_t cp_hqd_atomic0_preop_hi;
  316. uint32_t cp_hqd_atomic1_preop_lo;
  317. uint32_t cp_hqd_atomic1_preop_hi;
  318. uint32_t cp_hqd_hq_status0;
  319. uint32_t cp_hqd_hq_control0;
  320. uint32_t cp_mqd_control;
  321. uint32_t cp_hqd_hq_status1;
  322. uint32_t cp_hqd_hq_control1;
  323. uint32_t cp_hqd_eop_base_addr_lo;
  324. uint32_t cp_hqd_eop_base_addr_hi;
  325. uint32_t cp_hqd_eop_control;
  326. uint32_t cp_hqd_eop_rptr;
  327. uint32_t cp_hqd_eop_wptr;
  328. uint32_t cp_hqd_eop_done_events;
  329. uint32_t cp_hqd_ctx_save_base_addr_lo;
  330. uint32_t cp_hqd_ctx_save_base_addr_hi;
  331. uint32_t cp_hqd_ctx_save_control;
  332. uint32_t cp_hqd_cntl_stack_offset;
  333. uint32_t cp_hqd_cntl_stack_size;
  334. uint32_t cp_hqd_wg_state_offset;
  335. uint32_t cp_hqd_ctx_save_size;
  336. uint32_t cp_hqd_gds_resource_state;
  337. uint32_t cp_hqd_error;
  338. uint32_t cp_hqd_eop_wptr_mem;
  339. uint32_t cp_hqd_aql_control;
  340. uint32_t cp_hqd_pq_wptr_lo;
  341. uint32_t cp_hqd_pq_wptr_hi;
  342. uint32_t reserved_184;
  343. uint32_t reserved_185;
  344. uint32_t reserved_186;
  345. uint32_t reserved_187;
  346. uint32_t reserved_188;
  347. uint32_t reserved_189;
  348. uint32_t reserved_190;
  349. uint32_t reserved_191;
  350. uint32_t iqtimer_pkt_header;
  351. uint32_t iqtimer_pkt_dw0;
  352. uint32_t iqtimer_pkt_dw1;
  353. uint32_t iqtimer_pkt_dw2;
  354. uint32_t iqtimer_pkt_dw3;
  355. uint32_t iqtimer_pkt_dw4;
  356. uint32_t iqtimer_pkt_dw5;
  357. uint32_t iqtimer_pkt_dw6;
  358. uint32_t iqtimer_pkt_dw7;
  359. uint32_t iqtimer_pkt_dw8;
  360. uint32_t iqtimer_pkt_dw9;
  361. uint32_t iqtimer_pkt_dw10;
  362. uint32_t iqtimer_pkt_dw11;
  363. uint32_t iqtimer_pkt_dw12;
  364. uint32_t iqtimer_pkt_dw13;
  365. uint32_t iqtimer_pkt_dw14;
  366. uint32_t iqtimer_pkt_dw15;
  367. uint32_t iqtimer_pkt_dw16;
  368. uint32_t iqtimer_pkt_dw17;
  369. uint32_t iqtimer_pkt_dw18;
  370. uint32_t iqtimer_pkt_dw19;
  371. uint32_t iqtimer_pkt_dw20;
  372. uint32_t iqtimer_pkt_dw21;
  373. uint32_t iqtimer_pkt_dw22;
  374. uint32_t iqtimer_pkt_dw23;
  375. uint32_t iqtimer_pkt_dw24;
  376. uint32_t iqtimer_pkt_dw25;
  377. uint32_t iqtimer_pkt_dw26;
  378. uint32_t iqtimer_pkt_dw27;
  379. uint32_t iqtimer_pkt_dw28;
  380. uint32_t iqtimer_pkt_dw29;
  381. uint32_t iqtimer_pkt_dw30;
  382. uint32_t iqtimer_pkt_dw31;
  383. uint32_t reserved_225;
  384. uint32_t reserved_226;
  385. uint32_t reserved_227;
  386. uint32_t set_resources_header;
  387. uint32_t set_resources_dw1;
  388. uint32_t set_resources_dw2;
  389. uint32_t set_resources_dw3;
  390. uint32_t set_resources_dw4;
  391. uint32_t set_resources_dw5;
  392. uint32_t set_resources_dw6;
  393. uint32_t set_resources_dw7;
  394. uint32_t reserved_236;
  395. uint32_t reserved_237;
  396. uint32_t reserved_238;
  397. uint32_t reserved_239;
  398. uint32_t queue_doorbell_id0;
  399. uint32_t queue_doorbell_id1;
  400. uint32_t queue_doorbell_id2;
  401. uint32_t queue_doorbell_id3;
  402. uint32_t queue_doorbell_id4;
  403. uint32_t queue_doorbell_id5;
  404. uint32_t queue_doorbell_id6;
  405. uint32_t queue_doorbell_id7;
  406. uint32_t queue_doorbell_id8;
  407. uint32_t queue_doorbell_id9;
  408. uint32_t queue_doorbell_id10;
  409. uint32_t queue_doorbell_id11;
  410. uint32_t queue_doorbell_id12;
  411. uint32_t queue_doorbell_id13;
  412. uint32_t queue_doorbell_id14;
  413. uint32_t queue_doorbell_id15;
  414. uint32_t reserved_256;
  415. uint32_t reserved_257;
  416. uint32_t reserved_258;
  417. uint32_t reserved_259;
  418. uint32_t reserved_260;
  419. uint32_t reserved_261;
  420. uint32_t reserved_262;
  421. uint32_t reserved_263;
  422. uint32_t reserved_264;
  423. uint32_t reserved_265;
  424. uint32_t reserved_266;
  425. uint32_t reserved_267;
  426. uint32_t reserved_268;
  427. uint32_t reserved_269;
  428. uint32_t reserved_270;
  429. uint32_t reserved_271;
  430. uint32_t reserved_272;
  431. uint32_t reserved_273;
  432. uint32_t reserved_274;
  433. uint32_t reserved_275;
  434. uint32_t reserved_276;
  435. uint32_t reserved_277;
  436. uint32_t reserved_278;
  437. uint32_t reserved_279;
  438. uint32_t reserved_280;
  439. uint32_t reserved_281;
  440. uint32_t reserved_282;
  441. uint32_t reserved_283;
  442. uint32_t reserved_284;
  443. uint32_t reserved_285;
  444. uint32_t reserved_286;
  445. uint32_t reserved_287;
  446. uint32_t reserved_288;
  447. uint32_t reserved_289;
  448. uint32_t reserved_290;
  449. uint32_t reserved_291;
  450. uint32_t reserved_292;
  451. uint32_t reserved_293;
  452. uint32_t reserved_294;
  453. uint32_t reserved_295;
  454. uint32_t reserved_296;
  455. uint32_t reserved_297;
  456. uint32_t reserved_298;
  457. uint32_t reserved_299;
  458. uint32_t reserved_300;
  459. uint32_t reserved_301;
  460. uint32_t reserved_302;
  461. uint32_t reserved_303;
  462. uint32_t reserved_304;
  463. uint32_t reserved_305;
  464. uint32_t reserved_306;
  465. uint32_t reserved_307;
  466. uint32_t reserved_308;
  467. uint32_t reserved_309;
  468. uint32_t reserved_310;
  469. uint32_t reserved_311;
  470. uint32_t reserved_312;
  471. uint32_t reserved_313;
  472. uint32_t reserved_314;
  473. uint32_t reserved_315;
  474. uint32_t reserved_316;
  475. uint32_t reserved_317;
  476. uint32_t reserved_318;
  477. uint32_t reserved_319;
  478. uint32_t reserved_320;
  479. uint32_t reserved_321;
  480. uint32_t reserved_322;
  481. uint32_t reserved_323;
  482. uint32_t reserved_324;
  483. uint32_t reserved_325;
  484. uint32_t reserved_326;
  485. uint32_t reserved_327;
  486. uint32_t reserved_328;
  487. uint32_t reserved_329;
  488. uint32_t reserved_330;
  489. uint32_t reserved_331;
  490. uint32_t reserved_332;
  491. uint32_t reserved_333;
  492. uint32_t reserved_334;
  493. uint32_t reserved_335;
  494. uint32_t reserved_336;
  495. uint32_t reserved_337;
  496. uint32_t reserved_338;
  497. uint32_t reserved_339;
  498. uint32_t reserved_340;
  499. uint32_t reserved_341;
  500. uint32_t reserved_342;
  501. uint32_t reserved_343;
  502. uint32_t reserved_344;
  503. uint32_t reserved_345;
  504. uint32_t reserved_346;
  505. uint32_t reserved_347;
  506. uint32_t reserved_348;
  507. uint32_t reserved_349;
  508. uint32_t reserved_350;
  509. uint32_t reserved_351;
  510. uint32_t reserved_352;
  511. uint32_t reserved_353;
  512. uint32_t reserved_354;
  513. uint32_t reserved_355;
  514. uint32_t reserved_356;
  515. uint32_t reserved_357;
  516. uint32_t reserved_358;
  517. uint32_t reserved_359;
  518. uint32_t reserved_360;
  519. uint32_t reserved_361;
  520. uint32_t reserved_362;
  521. uint32_t reserved_363;
  522. uint32_t reserved_364;
  523. uint32_t reserved_365;
  524. uint32_t reserved_366;
  525. uint32_t reserved_367;
  526. uint32_t reserved_368;
  527. uint32_t reserved_369;
  528. uint32_t reserved_370;
  529. uint32_t reserved_371;
  530. uint32_t reserved_372;
  531. uint32_t reserved_373;
  532. uint32_t reserved_374;
  533. uint32_t reserved_375;
  534. uint32_t reserved_376;
  535. uint32_t reserved_377;
  536. uint32_t reserved_378;
  537. uint32_t reserved_379;
  538. uint32_t reserved_380;
  539. uint32_t reserved_381;
  540. uint32_t reserved_382;
  541. uint32_t reserved_383;
  542. uint32_t reserved_384;
  543. uint32_t reserved_385;
  544. uint32_t reserved_386;
  545. uint32_t reserved_387;
  546. uint32_t reserved_388;
  547. uint32_t reserved_389;
  548. uint32_t reserved_390;
  549. uint32_t reserved_391;
  550. uint32_t reserved_392;
  551. uint32_t reserved_393;
  552. uint32_t reserved_394;
  553. uint32_t reserved_395;
  554. uint32_t reserved_396;
  555. uint32_t reserved_397;
  556. uint32_t reserved_398;
  557. uint32_t reserved_399;
  558. uint32_t reserved_400;
  559. uint32_t reserved_401;
  560. uint32_t reserved_402;
  561. uint32_t reserved_403;
  562. uint32_t reserved_404;
  563. uint32_t reserved_405;
  564. uint32_t reserved_406;
  565. uint32_t reserved_407;
  566. uint32_t reserved_408;
  567. uint32_t reserved_409;
  568. uint32_t reserved_410;
  569. uint32_t reserved_411;
  570. uint32_t reserved_412;
  571. uint32_t reserved_413;
  572. uint32_t reserved_414;
  573. uint32_t reserved_415;
  574. uint32_t reserved_416;
  575. uint32_t reserved_417;
  576. uint32_t reserved_418;
  577. uint32_t reserved_419;
  578. uint32_t reserved_420;
  579. uint32_t reserved_421;
  580. uint32_t reserved_422;
  581. uint32_t reserved_423;
  582. uint32_t reserved_424;
  583. uint32_t reserved_425;
  584. uint32_t reserved_426;
  585. uint32_t reserved_427;
  586. uint32_t reserved_428;
  587. uint32_t reserved_429;
  588. uint32_t reserved_430;
  589. uint32_t reserved_431;
  590. uint32_t reserved_432;
  591. uint32_t reserved_433;
  592. uint32_t reserved_434;
  593. uint32_t reserved_435;
  594. uint32_t reserved_436;
  595. uint32_t reserved_437;
  596. uint32_t reserved_438;
  597. uint32_t reserved_439;
  598. uint32_t reserved_440;
  599. uint32_t reserved_441;
  600. uint32_t reserved_442;
  601. uint32_t reserved_443;
  602. uint32_t reserved_444;
  603. uint32_t reserved_445;
  604. uint32_t reserved_446;
  605. uint32_t reserved_447;
  606. uint32_t reserved_448;
  607. uint32_t reserved_449;
  608. uint32_t reserved_450;
  609. uint32_t reserved_451;
  610. uint32_t reserved_452;
  611. uint32_t reserved_453;
  612. uint32_t reserved_454;
  613. uint32_t reserved_455;
  614. uint32_t reserved_456;
  615. uint32_t reserved_457;
  616. uint32_t reserved_458;
  617. uint32_t reserved_459;
  618. uint32_t reserved_460;
  619. uint32_t reserved_461;
  620. uint32_t reserved_462;
  621. uint32_t reserved_463;
  622. uint32_t reserved_464;
  623. uint32_t reserved_465;
  624. uint32_t reserved_466;
  625. uint32_t reserved_467;
  626. uint32_t reserved_468;
  627. uint32_t reserved_469;
  628. uint32_t reserved_470;
  629. uint32_t reserved_471;
  630. uint32_t reserved_472;
  631. uint32_t reserved_473;
  632. uint32_t reserved_474;
  633. uint32_t reserved_475;
  634. uint32_t reserved_476;
  635. uint32_t reserved_477;
  636. uint32_t reserved_478;
  637. uint32_t reserved_479;
  638. uint32_t reserved_480;
  639. uint32_t reserved_481;
  640. uint32_t reserved_482;
  641. uint32_t reserved_483;
  642. uint32_t reserved_484;
  643. uint32_t reserved_485;
  644. uint32_t reserved_486;
  645. uint32_t reserved_487;
  646. uint32_t reserved_488;
  647. uint32_t reserved_489;
  648. uint32_t reserved_490;
  649. uint32_t reserved_491;
  650. uint32_t reserved_492;
  651. uint32_t reserved_493;
  652. uint32_t reserved_494;
  653. uint32_t reserved_495;
  654. uint32_t reserved_496;
  655. uint32_t reserved_497;
  656. uint32_t reserved_498;
  657. uint32_t reserved_499;
  658. uint32_t reserved_500;
  659. uint32_t reserved_501;
  660. uint32_t reserved_502;
  661. uint32_t reserved_503;
  662. uint32_t reserved_504;
  663. uint32_t reserved_505;
  664. uint32_t reserved_506;
  665. uint32_t reserved_507;
  666. uint32_t reserved_508;
  667. uint32_t reserved_509;
  668. uint32_t reserved_510;
  669. uint32_t reserved_511;
  670. };
  671. /* from vega10 all CSA format is shifted to chain ib compatible mode */
  672. struct v9_ce_ib_state {
  673. /* section of non chained ib part */
  674. uint32_t ce_ib_completion_status;
  675. uint32_t ce_constegnine_count;
  676. uint32_t ce_ibOffset_ib1;
  677. uint32_t ce_ibOffset_ib2;
  678. /* section of chained ib */
  679. uint32_t ce_chainib_addrlo_ib1;
  680. uint32_t ce_chainib_addrlo_ib2;
  681. uint32_t ce_chainib_addrhi_ib1;
  682. uint32_t ce_chainib_addrhi_ib2;
  683. uint32_t ce_chainib_size_ib1;
  684. uint32_t ce_chainib_size_ib2;
  685. }; /* total 10 DWORD */
  686. struct v9_de_ib_state {
  687. /* section of non chained ib part */
  688. uint32_t ib_completion_status;
  689. uint32_t de_constEngine_count;
  690. uint32_t ib_offset_ib1;
  691. uint32_t ib_offset_ib2;
  692. /* section of chained ib */
  693. uint32_t chain_ib_addrlo_ib1;
  694. uint32_t chain_ib_addrlo_ib2;
  695. uint32_t chain_ib_addrhi_ib1;
  696. uint32_t chain_ib_addrhi_ib2;
  697. uint32_t chain_ib_size_ib1;
  698. uint32_t chain_ib_size_ib2;
  699. /* section of non chained ib part */
  700. uint32_t preamble_begin_ib1;
  701. uint32_t preamble_begin_ib2;
  702. uint32_t preamble_end_ib1;
  703. uint32_t preamble_end_ib2;
  704. /* section of chained ib */
  705. uint32_t chain_ib_pream_addrlo_ib1;
  706. uint32_t chain_ib_pream_addrlo_ib2;
  707. uint32_t chain_ib_pream_addrhi_ib1;
  708. uint32_t chain_ib_pream_addrhi_ib2;
  709. /* section of non chained ib part */
  710. uint32_t draw_indirect_baseLo;
  711. uint32_t draw_indirect_baseHi;
  712. uint32_t disp_indirect_baseLo;
  713. uint32_t disp_indirect_baseHi;
  714. uint32_t gds_backup_addrlo;
  715. uint32_t gds_backup_addrhi;
  716. uint32_t index_base_addrlo;
  717. uint32_t index_base_addrhi;
  718. uint32_t sample_cntl;
  719. }; /* Total of 27 DWORD */
  720. struct v9_gfx_meta_data {
  721. /* 10 DWORD, address must be 4KB aligned */
  722. struct v9_ce_ib_state ce_payload;
  723. uint32_t reserved1[54];
  724. /* 27 DWORD, address must be 64B aligned */
  725. struct v9_de_ib_state de_payload;
  726. /* PFP IB base address which get pre-empted */
  727. uint32_t DeIbBaseAddrLo;
  728. uint32_t DeIbBaseAddrHi;
  729. uint32_t reserved2[931];
  730. }; /* Total of 4K Bytes */
  731. #endif /* V9_STRUCTS_H_ */