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