1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (c) 2021 MediaTek Inc.
4  * Author: Jason-JH Lin <jason0jh.lin@mediatek.com>
5  */
6 
7 #ifndef _DT_BINDINGS_GCE_MT8195_H
8 #define _DT_BINDINGS_GCE_MT8195_H
9 
10 /* assign timeout 0 also means default */
11 #define CMDQ_NO_TIMEOUT		0xffffffff
12 #define CMDQ_TIMEOUT_DEFAULT	1000
13 
14 /* GCE thread priority */
15 #define CMDQ_THR_PRIO_LOWEST	0
16 #define CMDQ_THR_PRIO_1		1
17 #define CMDQ_THR_PRIO_2		2
18 #define CMDQ_THR_PRIO_3		3
19 #define CMDQ_THR_PRIO_4		4
20 #define CMDQ_THR_PRIO_5		5
21 #define CMDQ_THR_PRIO_6		6
22 #define CMDQ_THR_PRIO_HIGHEST	7
23 
24 /* CPR count in 32bit register */
25 #define GCE_CPR_COUNT		1312
26 
27 /* GCE subsys table */
28 #define SUBSYS_1400XXXX		0
29 #define SUBSYS_1401XXXX		1
30 #define SUBSYS_1402XXXX		2
31 #define SUBSYS_1c00XXXX		3
32 #define SUBSYS_1c01XXXX		4
33 #define SUBSYS_1c02XXXX		5
34 #define SUBSYS_1c10XXXX		6
35 #define SUBSYS_1c11XXXX		7
36 #define SUBSYS_1c12XXXX		8
37 #define SUBSYS_14f0XXXX		9
38 #define SUBSYS_14f1XXXX		10
39 #define SUBSYS_14f2XXXX		11
40 #define SUBSYS_1800XXXX		12
41 #define SUBSYS_1801XXXX		13
42 #define SUBSYS_1802XXXX		14
43 #define SUBSYS_1803XXXX		15
44 #define SUBSYS_1032XXXX		16
45 #define SUBSYS_1033XXXX		17
46 #define SUBSYS_1600XXXX		18
47 #define SUBSYS_1601XXXX		19
48 #define SUBSYS_14e0XXXX		20
49 #define SUBSYS_1c20XXXX		21
50 #define SUBSYS_1c30XXXX		22
51 #define SUBSYS_1c40XXXX		23
52 #define SUBSYS_1c50XXXX		24
53 #define SUBSYS_1c60XXXX		25
54 
55 /* GCE General Purpose Register (GPR) support */
56 #define GCE_GPR_R00		0x0
57 #define GCE_GPR_R01		0x1
58 #define GCE_GPR_R02		0x2
59 #define GCE_GPR_R03		0x3
60 #define GCE_GPR_R04		0x4
61 #define GCE_GPR_R05		0x5
62 #define GCE_GPR_R06		0x6
63 #define GCE_GPR_R07		0x7
64 #define GCE_GPR_R08		0x8
65 #define GCE_GPR_R09		0x9
66 #define GCE_GPR_R10		0xa
67 #define GCE_GPR_R11		0xb
68 #define GCE_GPR_R12		0xc
69 #define GCE_GPR_R13		0xd
70 #define GCE_GPR_R14		0xe
71 #define GCE_GPR_R15		0xf
72 
73 /* GCE hw event id */
74 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_0	1
75 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_1	2
76 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_2	3
77 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_3	4
78 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_4	5
79 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_5	6
80 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_6	7
81 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_7	8
82 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_8	9
83 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_9	10
84 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_10	11
85 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_11	12
86 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_12	13
87 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_13	14
88 #define CMDQ_EVENT_CQ_THR_DONE_TRAW0_14	15
89 #define CMDQ_EVENT_TRAW0_DMA_ERROR_INT	16
90 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_0	17
91 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_1	18
92 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_2	19
93 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_3	20
94 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_4	21
95 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_5	22
96 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_6	23
97 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_7	24
98 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_8	25
99 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_9	26
100 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_10	27
101 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_11	28
102 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_12	29
103 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_13	30
104 #define CMDQ_EVENT_CQ_THR_DONE_TRAW1_14	31
105 #define CMDQ_EVENT_TRAW1_DMA_ERROR_INT	32
106 
107 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_0	65
108 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_1	66
109 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_2	67
110 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_3	68
111 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_4	69
112 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_5	70
113 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_6	71
114 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_7	72
115 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_8	73
116 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_9	74
117 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_10	75
118 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_11	76
119 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_12	77
120 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_13	78
121 #define CMDQ_EVENT_DIP0_FRAME_DONE_P2_14	79
122 #define CMDQ_EVENT_DIP0_DMA_ERR	80
123 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_0	81
124 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_1	82
125 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_2	83
126 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_3	84
127 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_4	85
128 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_5	86
129 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_6	87
130 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_7	88
131 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_8	89
132 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_9	90
133 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_10	91
134 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_11	92
135 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_12	93
136 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_13	94
137 #define CMDQ_EVENT_PQA0_FRAME_DONE_P2_14	95
138 #define CMDQ_EVENT_PQA0_DMA_ERR	96
139 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_0	97
140 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_1	98
141 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_2	99
142 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_3	100
143 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_4	101
144 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_5	102
145 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_6	103
146 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_7	104
147 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_8	105
148 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_9	106
149 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_10	107
150 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_11	108
151 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_12	109
152 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_13	110
153 #define CMDQ_EVENT_PQB0_FRAME_DONE_P2_14	111
154 #define CMDQ_EVENT_PQB0_DMA_ERR	112
155 #define CMDQ_EVENT_DIP0_DUMMY_0	113
156 #define CMDQ_EVENT_DIP0_DUMMY_1	114
157 #define CMDQ_EVENT_DIP0_DUMMY_2	115
158 #define CMDQ_EVENT_DIP0_DUMMY_3	116
159 #define CMDQ_EVENT_WPE0_EIS_GCE_FRAME_DONE	117
160 #define CMDQ_EVENT_WPE0_EIS_DONE_SYNC_OUT	118
161 #define CMDQ_EVENT_WPE0_TNR_GCE_FRAME_DONE	119
162 #define CMDQ_EVENT_WPE0_TNR_DONE_SYNC_OUT	120
163 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_0	121
164 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_1	122
165 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_2	123
166 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_3	124
167 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_4	125
168 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_5	126
169 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_6	127
170 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_7	128
171 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_8	129
172 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_9	130
173 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_10	131
174 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_11	132
175 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_12	133
176 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_13	134
177 #define CMDQ_EVENT_WPE0_EIS_FRAME_DONE_P2_14	135
178 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_0	136
179 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_1	137
180 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_2	138
181 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_3	139
182 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_4	140
183 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_5	141
184 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_6	142
185 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_7	143
186 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_8	144
187 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_9	145
188 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_10	146
189 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_11	147
190 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_12	148
191 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_13	149
192 #define CMDQ_EVENT_WPE0_TNR_FRAME_DONE_P2_14	150
193 #define CMDQ_EVENT_WPE0_DUMMY_0	151
194 #define CMDQ_EVENT_IMGSYS_IPE_DUMMY	152
195 #define CMDQ_EVENT_IMGSYS_IPE_FDVT_DONE	153
196 #define CMDQ_EVENT_IMGSYS_IPE_ME_DONE	154
197 #define CMDQ_EVENT_IMGSYS_IPE_DVS_DONE	155
198 #define CMDQ_EVENT_IMGSYS_IPE_DVP_DONE	156
199 
200 #define CMDQ_EVENT_TPR_0	194
201 #define CMDQ_EVENT_TPR_1	195
202 #define CMDQ_EVENT_TPR_2	196
203 #define CMDQ_EVENT_TPR_3	197
204 #define CMDQ_EVENT_TPR_4	198
205 #define CMDQ_EVENT_TPR_5	199
206 #define CMDQ_EVENT_TPR_6	200
207 #define CMDQ_EVENT_TPR_7	201
208 #define CMDQ_EVENT_TPR_8	202
209 #define CMDQ_EVENT_TPR_9	203
210 #define CMDQ_EVENT_TPR_10	204
211 #define CMDQ_EVENT_TPR_11	205
212 #define CMDQ_EVENT_TPR_12	206
213 #define CMDQ_EVENT_TPR_13	207
214 #define CMDQ_EVENT_TPR_14	208
215 #define CMDQ_EVENT_TPR_15	209
216 #define CMDQ_EVENT_TPR_16	210
217 #define CMDQ_EVENT_TPR_17	211
218 #define CMDQ_EVENT_TPR_18	212
219 #define CMDQ_EVENT_TPR_19	213
220 #define CMDQ_EVENT_TPR_20	214
221 #define CMDQ_EVENT_TPR_21	215
222 #define CMDQ_EVENT_TPR_22	216
223 #define CMDQ_EVENT_TPR_23	217
224 #define CMDQ_EVENT_TPR_24	218
225 #define CMDQ_EVENT_TPR_25	219
226 #define CMDQ_EVENT_TPR_26	220
227 #define CMDQ_EVENT_TPR_27	221
228 #define CMDQ_EVENT_TPR_28	222
229 #define CMDQ_EVENT_TPR_29	223
230 #define CMDQ_EVENT_TPR_30	224
231 #define CMDQ_EVENT_TPR_31	225
232 #define CMDQ_EVENT_TPR_TIMEOUT_0	226
233 #define CMDQ_EVENT_TPR_TIMEOUT_1	227
234 #define CMDQ_EVENT_TPR_TIMEOUT_2	228
235 #define CMDQ_EVENT_TPR_TIMEOUT_3	229
236 #define CMDQ_EVENT_TPR_TIMEOUT_4	230
237 #define CMDQ_EVENT_TPR_TIMEOUT_5	231
238 #define CMDQ_EVENT_TPR_TIMEOUT_6	232
239 #define CMDQ_EVENT_TPR_TIMEOUT_7	233
240 #define CMDQ_EVENT_TPR_TIMEOUT_8	234
241 #define CMDQ_EVENT_TPR_TIMEOUT_9	235
242 #define CMDQ_EVENT_TPR_TIMEOUT_10	236
243 #define CMDQ_EVENT_TPR_TIMEOUT_11	237
244 #define CMDQ_EVENT_TPR_TIMEOUT_12	238
245 #define CMDQ_EVENT_TPR_TIMEOUT_13	239
246 #define CMDQ_EVENT_TPR_TIMEOUT_14	240
247 #define CMDQ_EVENT_TPR_TIMEOUT_15	241
248 
249 #define CMDQ_EVENT_VPP0_MDP_RDMA_SOF	256
250 #define CMDQ_EVENT_VPP0_MDP_FG_SOF	257
251 #define CMDQ_EVENT_VPP0_STITCH_SOF	258
252 #define CMDQ_EVENT_VPP0_MDP_HDR_SOF	259
253 #define CMDQ_EVENT_VPP0_MDP_AAL_SOF	260
254 #define CMDQ_EVENT_VPP0_MDP_RSZ_IN_RSZ_SOF	261
255 #define CMDQ_EVENT_VPP0_MDP_TDSHP_SOF	262
256 #define CMDQ_EVENT_VPP0_DISP_COLOR_SOF	263
257 #define CMDQ_EVENT_VPP0_DISP_OVL_NOAFBC_SOF	264
258 #define CMDQ_EVENT_VPP0_VPP_PADDING_IN_PADDING_SOF	265
259 #define CMDQ_EVENT_VPP0_MDP_TCC_IN_SOF	266
260 #define CMDQ_EVENT_VPP0_MDP_WROT_SOF	267
261 
262 #define CMDQ_EVENT_VPP0_WARP0_MMSYS_TOP_RELAY_SOF_PRE	269
263 #define CMDQ_EVENT_VPP0_WARP1_MMSYS_TOP_RELAY_SOF_PRE	270
264 #define CMDQ_EVENT_VPP0_VPP1_MMSYS_TOP_RELAY_SOF	271
265 #define CMDQ_EVENT_VPP0_VPP1_IN_MMSYS_TOP_RELAY_SOF_PRE	272
266 
267 #define CMDQ_EVENT_VPP0_MDP_RDMA_FRAME_DONE	288
268 #define CMDQ_EVENT_VPP0_MDP_FG_TILE_DONE	289
269 #define CMDQ_EVENT_VPP0_STITCH_FRAME_DONE	290
270 #define CMDQ_EVENT_VPP0_MDP_HDR_FRAME_DONE	291
271 #define CMDQ_EVENT_VPP0_MDP_AAL_FRAME_DONE	292
272 #define CMDQ_EVENT_VPP0_MDP_RSZ_FRAME_DONE	293
273 #define CMDQ_EVENT_VPP0_MDP_TDSHP_FRAME_DONE	294
274 #define CMDQ_EVENT_VPP0_DISP_COLOR_FRAME_DONE	295
275 #define CMDQ_EVENT_VPP0_DISP_OVL_NOAFBC_FRAME_DONE	296
276 #define CMDQ_EVENT_VPP0_VPP_PADDING_IN_PADDING_FRAME_DONE	297
277 #define CMDQ_EVENT_VPP0_MDP_TCC_TCC_FRAME_DONE	298
278 #define CMDQ_EVENT_VPP0_MDP_WROT_VIDO_WDONE	299
279 
280 #define CMDQ_EVENT_VPP0_STREAM_DONE_0	320
281 #define CMDQ_EVENT_VPP0_STREAM_DONE_1	321
282 #define CMDQ_EVENT_VPP0_STREAM_DONE_2	322
283 #define CMDQ_EVENT_VPP0_STREAM_DONE_3	323
284 #define CMDQ_EVENT_VPP0_STREAM_DONE_4	324
285 #define CMDQ_EVENT_VPP0_STREAM_DONE_5	325
286 #define CMDQ_EVENT_VPP0_STREAM_DONE_6	326
287 #define CMDQ_EVENT_VPP0_STREAM_DONE_7	327
288 #define CMDQ_EVENT_VPP0_STREAM_DONE_8	328
289 #define CMDQ_EVENT_VPP0_STREAM_DONE_9	329
290 #define CMDQ_EVENT_VPP0_STREAM_DONE_10	330
291 #define CMDQ_EVENT_VPP0_STREAM_DONE_11	331
292 #define CMDQ_EVENT_VPP0_STREAM_DONE_12	332
293 #define CMDQ_EVENT_VPP0_STREAM_DONE_13	333
294 #define CMDQ_EVENT_VPP0_STREAM_DONE_14	334
295 #define CMDQ_EVENT_VPP0_STREAM_DONE_15	335
296 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_0	336
297 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_1	337
298 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_2	338
299 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_3	339
300 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_4	340
301 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_5	341
302 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_6	342
303 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_7	343
304 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_8	344
305 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_9	345
306 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_10	346
307 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_11	347
308 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_12	348
309 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_13	349
310 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_14	350
311 #define CMDQ_EVENT_VPP0_BUF_UNDERRUN_15	351
312 #define CMDQ_EVENT_VPP0_MDP_RDMA_SW_RST_DONE	352
313 #define CMDQ_EVENT_VPP0_MDP_RDMA_PM_VALID	353
314 #define CMDQ_EVENT_VPP0_DISP_OVL_NOAFBC_FRAME_RESET_DONE_PULSE	354
315 #define CMDQ_EVENT_VPP0_MDP_WROT_SW_RST_DONE	355
316 
317 #define CMDQ_EVENT_VPP1_HDMI_META_SOF		384
318 #define CMDQ_EVENT_VPP1_DGI_SOF			385
319 #define CMDQ_EVENT_VPP1_VPP_SPLIT_SOF		386
320 #define CMDQ_EVENT_VPP1_SVPP1_MDP_TCC_SOF	387
321 #define CMDQ_EVENT_VPP1_SVPP1_MDP_RDMA_SOF	388
322 #define CMDQ_EVENT_VPP1_SVPP2_MDP_RDMA_SOF	389
323 #define CMDQ_EVENT_VPP1_SVPP3_MDP_RDMA_SOF	390
324 #define CMDQ_EVENT_VPP1_SVPP1_MDP_FG_SOF	391
325 #define CMDQ_EVENT_VPP1_SVPP2_MDP_FG_SOF	392
326 #define CMDQ_EVENT_VPP1_SVPP3_MDP_FG_SOF	393
327 #define CMDQ_EVENT_VPP1_SVPP1_MDP_HDR_SOF	394
328 #define CMDQ_EVENT_VPP1_SVPP2_MDP_HDR_SOF	395
329 #define CMDQ_EVENT_VPP1_SVPP3_MDP_HDR_SOF	396
330 #define CMDQ_EVENT_VPP1_SVPP1_MDP_AAL_SOF	397
331 #define CMDQ_EVENT_VPP1_SVPP2_MDP_AAL_SOF	398
332 #define CMDQ_EVENT_VPP1_SVPP3_MDP_AAL_SOF	399
333 #define CMDQ_EVENT_VPP1_SVPP1_MDP_RSZ_SOF	400
334 #define CMDQ_EVENT_VPP1_SVPP2_MDP_RSZ_SOF	401
335 #define CMDQ_EVENT_VPP1_SVPP3_MDP_RSZ_SOF	402
336 #define CMDQ_EVENT_VPP1_SVPP1_TDSHP_SOF		403
337 #define CMDQ_EVENT_VPP1_SVPP2_TDSHP_SOF		404
338 #define CMDQ_EVENT_VPP1_SVPP3_TDSHP_SOF		405
339 #define CMDQ_EVENT_VPP1_SVPP2_VPP_MERGE_SOF	406
340 #define CMDQ_EVENT_VPP1_SVPP3_VPP_MERGE_SOF	407
341 #define CMDQ_EVENT_VPP1_SVPP1_MDP_COLOR_SOF	408
342 #define CMDQ_EVENT_VPP1_SVPP2_MDP_COLOR_SOF	409
343 #define CMDQ_EVENT_VPP1_SVPP3_MDP_COLOR_SOF	410
344 #define CMDQ_EVENT_VPP1_SVPP1_MDP_OVL_SOF	411
345 #define CMDQ_EVENT_VPP1_SVPP1_VPP_PAD_SOF	412
346 #define CMDQ_EVENT_VPP1_SVPP2_VPP_PAD_SOF	413
347 #define CMDQ_EVENT_VPP1_SVPP3_VPP_PAD_SOF	414
348 #define CMDQ_EVENT_VPP1_SVPP1_MDP_WROT_SOF	415
349 #define CMDQ_EVENT_VPP1_SVPP2_MDP_WROT_SOF	416
350 #define CMDQ_EVENT_VPP1_SVPP3_MDP_WROT_SOF	417
351 #define CMDQ_EVENT_VPP1_VPP0_DL_IRLY_SOF	418
352 #define CMDQ_EVENT_VPP1_VPP0_DL_ORLY_SOF	419
353 #define CMDQ_EVENT_VPP1_VDO0_DL_ORLY_0_SOF	420
354 #define CMDQ_EVENT_VPP1_VDO0_DL_ORLY_1_SOF	421
355 #define CMDQ_EVENT_VPP1_VDO1_DL_ORLY_0_SOF	422
356 #define CMDQ_EVENT_VPP1_VDO1_DL_ORLY_1_SOF	423
357 #define CMDQ_EVENT_VPP1_SVPP1_MDP_RDMA_FRAME_DONE	424
358 #define CMDQ_EVENT_VPP1_SVPP2_MDP_RDMA_FRAME_DONE	425
359 #define CMDQ_EVENT_VPP1_SVPP3_MDP_RDMA_FRAME_DONE	426
360 #define CMDQ_EVENT_VPP1_SVPP1_MDP_WROT_FRAME_DONE	427
361 #define CMDQ_EVENT_VPP1_SVPP2_MDP_WROT_FRAME_DONE	428
362 #define CMDQ_EVENT_VPP1_SVPP3_MDP_WROT_FRAME_DONE	429
363 #define CMDQ_EVENT_VPP1_SVPP1_MDP_OVL_FRAME_DONE	430
364 #define CMDQ_EVENT_VPP1_SVPP1_MDP_RSZ_FRAME_DONE	431
365 #define CMDQ_EVENT_VPP1_SVPP2_MDP_RSZ_FRAME_DONE	432
366 #define CMDQ_EVENT_VPP1_SVPP3_MDP_RSZ_FRAME_DONE	433
367 #define CMDQ_EVENT_VPP1_FRAME_DONE_10	434
368 #define CMDQ_EVENT_VPP1_FRAME_DONE_11	435
369 #define CMDQ_EVENT_VPP1_FRAME_DONE_12	436
370 #define CMDQ_EVENT_VPP1_FRAME_DONE_13	437
371 #define CMDQ_EVENT_VPP1_FRAME_DONE_14	438
372 #define CMDQ_EVENT_VPP1_STREAM_DONE_0	439
373 #define CMDQ_EVENT_VPP1_STREAM_DONE_1	440
374 #define CMDQ_EVENT_VPP1_STREAM_DONE_2	441
375 #define CMDQ_EVENT_VPP1_STREAM_DONE_3	442
376 #define CMDQ_EVENT_VPP1_STREAM_DONE_4	443
377 #define CMDQ_EVENT_VPP1_STREAM_DONE_5	444
378 #define CMDQ_EVENT_VPP1_STREAM_DONE_6	445
379 #define CMDQ_EVENT_VPP1_STREAM_DONE_7	446
380 #define CMDQ_EVENT_VPP1_STREAM_DONE_8	447
381 #define CMDQ_EVENT_VPP1_STREAM_DONE_9	448
382 #define CMDQ_EVENT_VPP1_STREAM_DONE_10	449
383 #define CMDQ_EVENT_VPP1_STREAM_DONE_11	450
384 #define CMDQ_EVENT_VPP1_STREAM_DONE_12	451
385 #define CMDQ_EVENT_VPP1_STREAM_DONE_13	452
386 #define CMDQ_EVENT_VPP1_STREAM_DONE_14	453
387 #define CMDQ_EVENT_VPP1_STREAM_DONE_15	454
388 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_0	455
389 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_1	456
390 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_2	457
391 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_3	458
392 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_4	459
393 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_5	460
394 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_6	461
395 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_7	462
396 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_8	463
397 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_9	464
398 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_10	465
399 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_11	466
400 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_12	467
401 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_13	468
402 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_14	469
403 #define CMDQ_EVENT_VPP1_MDP_BUF_UNDERRUN_15	470
404 #define CMDQ_EVENT_VPP1_DGI_0	471
405 #define CMDQ_EVENT_VPP1_DGI_1	472
406 #define CMDQ_EVENT_VPP1_DGI_2	473
407 #define CMDQ_EVENT_VPP1_DGI_3	474
408 #define CMDQ_EVENT_VPP1_DGI_4	475
409 #define CMDQ_EVENT_VPP1_DGI_5	476
410 #define CMDQ_EVENT_VPP1_DGI_6	477
411 #define CMDQ_EVENT_VPP1_DGI_7	478
412 #define CMDQ_EVENT_VPP1_DGI_8	479
413 #define CMDQ_EVENT_VPP1_DGI_9	480
414 #define CMDQ_EVENT_VPP1_DGI_10	481
415 #define CMDQ_EVENT_VPP1_DGI_11	482
416 #define CMDQ_EVENT_VPP1_DGI_12	483
417 #define CMDQ_EVENT_VPP1_DGI_13	484
418 #define CMDQ_EVENT_VPP1_SVPP3_VPP_MERGE	485
419 #define CMDQ_EVENT_VPP1_SVPP2_VPP_MERGE	486
420 #define CMDQ_EVENT_VPP1_MDP_OVL_FRAME_RESET_DONE_PULSE	487
421 #define CMDQ_EVENT_VPP1_VPP_SPLIT_DGI	488
422 #define CMDQ_EVENT_VPP1_VPP_SPLIT_HDMI	489
423 #define CMDQ_EVENT_VPP1_SVPP3_MDP_WROT_SW_RST_DONE	490
424 #define CMDQ_EVENT_VPP1_SVPP2_MDP_WROT_SW_RST_DONE	491
425 #define CMDQ_EVENT_VPP1_SVPP1_MDP_WROT_SW_RST_DONE	492
426 #define CMDQ_EVENT_VPP1_SVPP3_MDP_FG_TILE_DONE	493
427 #define CMDQ_EVENT_VPP1_SVPP2_MDP_FG_TILE_DONE	494
428 #define CMDQ_EVENT_VPP1_SVPP1_MDP_FG_TILE_DONE	495
429 
430 #define CMDQ_EVENT_VDO0_DISP_OVL0_SOF	512
431 #define CMDQ_EVENT_VDO0_DISP_WDMA0_SOF	513
432 #define CMDQ_EVENT_VDO0_DISP_RDMA0_SOF	514
433 #define CMDQ_EVENT_VDO0_DISP_COLOR0_SOF	515
434 #define CMDQ_EVENT_VDO0_DISP_CCORR0_SOF	516
435 #define CMDQ_EVENT_VDO0_DISP_AAL0_SOF	517
436 #define CMDQ_EVENT_VDO0_DISP_GAMMA0_SOF	518
437 #define CMDQ_EVENT_VDO0_DISP_DITHER0_SOF	519
438 #define CMDQ_EVENT_VDO0_DSI0_SOF	520
439 #define CMDQ_EVENT_VDO0_DSC_WRAP0C0_SOF	521
440 #define CMDQ_EVENT_VDO0_DISP_OVL1_SOF	522
441 #define CMDQ_EVENT_VDO0_DISP_WDMA1_SOF	523
442 #define CMDQ_EVENT_VDO0_DISP_RDMA1_SOF	524
443 #define CMDQ_EVENT_VDO0_DISP_COLOR1_SOF	525
444 #define CMDQ_EVENT_VDO0_DISP_CCORR1_SOF	526
445 #define CMDQ_EVENT_VDO0_DISP_AAL1_SOF	527
446 #define CMDQ_EVENT_VDO0_DISP_GAMMA1_SOF	528
447 #define CMDQ_EVENT_VDO0_DISP_DITHER1_SOF	529
448 #define CMDQ_EVENT_VDO0_DSI1_SOF	530
449 #define CMDQ_EVENT_VDO0_DSC_WRAP0C1_SOF	531
450 #define CMDQ_EVENT_VDO0_VPP_MERGE0_SOF	532
451 #define CMDQ_EVENT_VDO0_DP_INTF0_SOF	533
452 #define CMDQ_EVENT_VDO0_VPP1_DL_RELAY0_SOF	534
453 #define CMDQ_EVENT_VDO0_VPP1_DL_RELAY1_SOF	535
454 #define CMDQ_EVENT_VDO0_VDO1_DL_RELAY2_SOF	536
455 #define CMDQ_EVENT_VDO0_VDO0_DL_RELAY3_SOF	537
456 #define CMDQ_EVENT_VDO0_VDO0_DL_RELAY4_SOF	538
457 #define CMDQ_EVENT_VDO0_DISP_PWM0_SOF	539
458 #define CMDQ_EVENT_VDO0_DISP_PWM1_SOF	540
459 
460 #define CMDQ_EVENT_VDO0_DISP_OVL0_FRAME_DONE	544
461 #define CMDQ_EVENT_VDO0_DISP_WDMA0_FRAME_DONE	545
462 #define CMDQ_EVENT_VDO0_DISP_RDMA0_FRAME_DONE	546
463 #define CMDQ_EVENT_VDO0_DISP_COLOR0_FRAME_DONE	547
464 #define CMDQ_EVENT_VDO0_DISP_CCORR0_FRAME_DONE	548
465 #define CMDQ_EVENT_VDO0_DISP_AAL0_FRAME_DONE	549
466 #define CMDQ_EVENT_VDO0_DISP_GAMMA0_FRAME_DONE	550
467 #define CMDQ_EVENT_VDO0_DISP_DITHER0_FRAME_DONE	551
468 #define CMDQ_EVENT_VDO0_DSI0_FRAME_DONE	552
469 #define CMDQ_EVENT_VDO0_DSC_WRAP0C0_FRAME_DONE	553
470 #define CMDQ_EVENT_VDO0_DISP_OVL1_FRAME_DONE	554
471 #define CMDQ_EVENT_VDO0_DISP_WDMA1_FRAME_DONE	555
472 #define CMDQ_EVENT_VDO0_DISP_RDMA1_FRAME_DONE	556
473 #define CMDQ_EVENT_VDO0_DISP_COLOR1_FRAME_DONE	557
474 #define CMDQ_EVENT_VDO0_DISP_CCORR1_FRAME_DONE	558
475 #define CMDQ_EVENT_VDO0_DISP_AAL1_FRAME_DONE	559
476 #define CMDQ_EVENT_VDO0_DISP_GAMMA1_FRAME_DONE	560
477 #define CMDQ_EVENT_VDO0_DISP_DITHER1_FRAME_DONE	561
478 #define CMDQ_EVENT_VDO0_DSI1_FRAME_DONE	562
479 #define CMDQ_EVENT_VDO0_DSC_WRAP0C1_FRAME_DONE	563
480 
481 #define CMDQ_EVENT_VDO0_DP_INTF0_FRAME_DONE	565
482 
483 #define CMDQ_EVENT_VDO0_DISP_SMIASSERT_ENG	576
484 #define CMDQ_EVENT_VDO0_DSI0_IRQ_ENG_EVENT_MM	577
485 #define CMDQ_EVENT_VDO0_DSI0_TE_ENG_EVENT_MM	578
486 #define CMDQ_EVENT_VDO0_DSI0_DONE_ENG_EVENT_MM	579
487 #define CMDQ_EVENT_VDO0_DSI0_SOF_ENG_EVENT_MM	580
488 #define CMDQ_EVENT_VDO0_DSI0_VACTL_ENG_EVENT_MM	581
489 #define CMDQ_EVENT_VDO0_DSI1_IRQ_ENG_EVENT_MM	582
490 #define CMDQ_EVENT_VDO0_DSI1_TE_ENG_EVENT_MM	583
491 #define CMDQ_EVENT_VDO0_DSI1_DONE_ENG_EVENT_MM	584
492 #define CMDQ_EVENT_VDO0_DSI1_SOF_ENG_EVENT_MM	585
493 #define CMDQ_EVENT_VDO0_DSI1_VACTL_ENG_EVENT_MM	586
494 #define CMDQ_EVENT_VDO0_DISP_WDMA0_SW_RST_DONE_ENG	587
495 #define CMDQ_EVENT_VDO0_DISP_WDMA1_SW_RST_DONE_ENG	588
496 #define CMDQ_EVENT_VDO0_DISP_OVL0_RST_DONE_ENG	589
497 #define CMDQ_EVENT_VDO0_DISP_OVL1_RST_DONE_ENG	590
498 #define CMDQ_EVENT_VDO0_DP_INTF0_VSYNC_START_ENG_EVENT_MM	591
499 #define CMDQ_EVENT_VDO0_DP_INTF0_VSYNC_END_ENG_EVENT_MM	592
500 #define CMDQ_EVENT_VDO0_DP_INTF0_VDE_START_ENG_EVENT_MM	593
501 #define CMDQ_EVENT_VDO0_DP_INTF0_VDE_END_ENG_EVENT_MM	594
502 #define CMDQ_EVENT_VDO0_DP_INTF0_TARGET_LINE_ENG_EVENT_MM	595
503 #define CMDQ_EVENT_VDO0_VPP_MERGE0_ENG	596
504 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_0	597
505 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_1	598
506 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_2	599
507 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_3	600
508 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_4	601
509 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_5	602
510 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_6	603
511 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_7	604
512 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_8	605
513 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_9	606
514 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_10	607
515 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_11	608
516 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_12	609
517 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_13	610
518 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_14	611
519 #define CMDQ_EVENT_VDO0_DISP_STREAM_DONE_15	612
520 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_0	613
521 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_1	614
522 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_2	615
523 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_3	616
524 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_4	617
525 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_5	618
526 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_6	619
527 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_7	620
528 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_8	621
529 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_9	622
530 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_10	623
531 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_11	624
532 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_12	625
533 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_13	626
534 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_14	627
535 #define CMDQ_EVENT_VDO0_DISP_BUF_UNDERRUN_15	628
536 
537 #define CMDQ_EVENT_VDO1_MDP_RDMA0_SOF	640
538 #define CMDQ_EVENT_VDO1_MDP_RDMA1_SOF	641
539 #define CMDQ_EVENT_VDO1_MDP_RDMA2_SOF	642
540 #define CMDQ_EVENT_VDO1_MDP_RDMA3_SOF	643
541 #define CMDQ_EVENT_VDO1_MDP_RDMA4_SOF	644
542 #define CMDQ_EVENT_VDO1_MDP_RDMA5_SOF	645
543 #define CMDQ_EVENT_VDO1_MDP_RDMA6_SOF	646
544 #define CMDQ_EVENT_VDO1_MDP_RDMA7_SOF	647
545 #define CMDQ_EVENT_VDO1_VPP_MERGE0_SOF	648
546 #define CMDQ_EVENT_VDO1_VPP_MERGE1_SOF	649
547 #define CMDQ_EVENT_VDO1_VPP_MERGE2_SOF	650
548 #define CMDQ_EVENT_VDO1_VPP_MERGE3_SOF	651
549 #define CMDQ_EVENT_VDO1_VPP_MERGE4_SOF	652
550 #define CMDQ_EVENT_VDO1_VPP2_DL_RELAY_SOF	653
551 #define CMDQ_EVENT_VDO1_VPP3_DL_RELAY_SOF	654
552 #define CMDQ_EVENT_VDO1_VDO0_DSC_DL_ASYNC_SOF	655
553 #define CMDQ_EVENT_VDO1_VDO0_MERGE_DL_ASYNC_SOF	656
554 #define CMDQ_EVENT_VDO1_OUT_DL_RELAY_SOF	657
555 #define CMDQ_EVENT_VDO1_DISP_MIXER_SOF	658
556 #define CMDQ_EVENT_VDO1_HDR_VDO_FE0_SOF	659
557 #define CMDQ_EVENT_VDO1_HDR_VDO_FE1_SOF	660
558 #define CMDQ_EVENT_VDO1_HDR_GFX_FE0_SOF	661
559 #define CMDQ_EVENT_VDO1_HDR_GFX_FE1_SOF	662
560 #define CMDQ_EVENT_VDO1_HDR_VDO_BE0_SOF	663
561 #define CMDQ_EVENT_VDO1_HDR_MLOAD_SOF	664
562 
563 #define CMDQ_EVENT_VDO1_MDP_RDMA0_FRAME_DONE	672
564 #define CMDQ_EVENT_VDO1_MDP_RDMA1_FRAME_DONE	673
565 #define CMDQ_EVENT_VDO1_MDP_RDMA2_FRAME_DONE	674
566 #define CMDQ_EVENT_VDO1_MDP_RDMA3_FRAME_DONE	675
567 #define CMDQ_EVENT_VDO1_MDP_RDMA4_FRAME_DONE	676
568 #define CMDQ_EVENT_VDO1_MDP_RDMA5_FRAME_DONE	677
569 #define CMDQ_EVENT_VDO1_MDP_RDMA6_FRAME_DONE	678
570 #define CMDQ_EVENT_VDO1_MDP_RDMA7_FRAME_DONE	679
571 #define CMDQ_EVENT_VDO1_VPP_MERGE0_FRAME_DONE	680
572 #define CMDQ_EVENT_VDO1_VPP_MERGE1_FRAME_DONE	681
573 #define CMDQ_EVENT_VDO1_VPP_MERGE2_FRAME_DONE	682
574 #define CMDQ_EVENT_VDO1_VPP_MERGE3_FRAME_DONE	683
575 #define CMDQ_EVENT_VDO1_VPP_MERGE4_FRAME_DONE	684
576 #define CMDQ_EVENT_VDO1_DPI0_FRAME_DONE	685
577 #define CMDQ_EVENT_VDO1_DPI1_FRAME_DONE	686
578 #define CMDQ_EVENT_VDO1_DP_INTF0_FRAME_DONE	687
579 #define CMDQ_EVENT_VDO1_DISP_MIXER_FRAME_DONE_MM	688
580 
581 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_0	704
582 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_1	705
583 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_2	706
584 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_3	707
585 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_4	708
586 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_5	709
587 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_6	710
588 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_7	711
589 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_8	712
590 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_9	713
591 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_10	714
592 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_11	715
593 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_12	716
594 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_13	717
595 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_14	718
596 #define CMDQ_EVENT_VDO1_STREAM_DONE_ENG_15	719
597 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_0	720
598 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_1	721
599 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_2	722
600 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_3	723
601 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_4	724
602 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_5	725
603 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_6	726
604 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_7	727
605 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_8	728
606 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_9	729
607 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_10	730
608 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_11	731
609 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_12	732
610 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_13	733
611 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_14	734
612 #define CMDQ_EVENT_VDO1_BUF_UNDERRUN_ENG_15	735
613 #define CMDQ_EVENT_VDO1_MDP_RDMA0_SW_RST_DONE	736
614 #define CMDQ_EVENT_VDO1_MDP_RDMA1_SW_RST_DONE	737
615 #define CMDQ_EVENT_VDO1_MDP_RDMA2_SW_RST_DONE	738
616 #define CMDQ_EVENT_VDO1_MDP_RDMA3_SW_RST_DONE	739
617 #define CMDQ_EVENT_VDO1_MDP_RDMA4_SW_RST_DONE	740
618 #define CMDQ_EVENT_VDO1_MDP_RDMA5_SW_RST_DONE	741
619 #define CMDQ_EVENT_VDO1_MDP_RDMA6_SW_RST_DONE	742
620 #define CMDQ_EVENT_VDO1_MDP_RDMA7_SW_RST_DONE	743
621 
622 #define CMDQ_EVENT_VDO1_DP0_VDE_END_ENG_EVENT_MM	745
623 #define CMDQ_EVENT_VDO1_DP0_VDE_START_ENG_EVENT_MM	746
624 #define CMDQ_EVENT_VDO1_DP0_VSYNC_END_ENG_EVENT_MM	747
625 #define CMDQ_EVENT_VDO1_DP0_VSYNC_START_ENG_EVENT_MM	748
626 #define CMDQ_EVENT_VDO1_DP0_TARGET_LINE_ENG_EVENT_MM	749
627 #define CMDQ_EVENT_VDO1_VPP_MERGE0	750
628 #define CMDQ_EVENT_VDO1_VPP_MERGE1	751
629 #define CMDQ_EVENT_VDO1_VPP_MERGE2	752
630 #define CMDQ_EVENT_VDO1_VPP_MERGE3	753
631 #define CMDQ_EVENT_VDO1_VPP_MERGE4	754
632 #define CMDQ_EVENT_VDO1_HDMITX	755
633 #define CMDQ_EVENT_VDO1_HDR_VDO_BE0_ADL_TRIG_EVENT_MM	756
634 #define CMDQ_EVENT_VDO1_HDR_GFX_FE1_THDR_ADL_TRIG_EVENT_MM	757
635 #define CMDQ_EVENT_VDO1_HDR_GFX_FE1_DM_ADL_TRIG_EVENT_MM	758
636 #define CMDQ_EVENT_VDO1_HDR_GFX_FE0_THDR_ADL_TRIG_EVENT_MM	759
637 #define CMDQ_EVENT_VDO1_HDR_GFX_FE0_DM_ADL_TRIG_EVENT_MM	760
638 #define CMDQ_EVENT_VDO1_HDR_VDO_FE1_ADL_TRIG_EVENT_MM	761
639 #define CMDQ_EVENT_VDO1_HDR_VDO_FE1_AD0_TRIG_EVENT_MM	762
640 
641 #define CMDQ_EVENT_CAM_A_PASS1_DONE	769
642 #define CMDQ_EVENT_CAM_B_PASS1_DONE	770
643 #define CMDQ_EVENT_GCAMSV_A_PASS1_DONE	771
644 #define CMDQ_EVENT_GCAMSV_B_PASS1_DONE	772
645 #define CMDQ_EVENT_MRAW_0_PASS1_DONE	773
646 #define CMDQ_EVENT_MRAW_1_PASS1_DONE	774
647 #define CMDQ_EVENT_MRAW_2_PASS1_DONE	775
648 #define CMDQ_EVENT_MRAW_3_PASS1_DONE	776
649 #define CMDQ_EVENT_SENINF_CAM0_FIFO_FULL_X	777
650 #define CMDQ_EVENT_SENINF_CAM1_FIFO_FULL_X	778
651 #define CMDQ_EVENT_SENINF_CAM2_FIFO_FULL	779
652 #define CMDQ_EVENT_SENINF_CAM3_FIFO_FULL	780
653 #define CMDQ_EVENT_SENINF_CAM4_FIFO_FULL	781
654 #define CMDQ_EVENT_SENINF_CAM5_FIFO_FULL	782
655 #define CMDQ_EVENT_SENINF_CAM6_FIFO_FULL	783
656 #define CMDQ_EVENT_SENINF_CAM7_FIFO_FULL	784
657 #define CMDQ_EVENT_SENINF_CAM8_FIFO_FULL	785
658 #define CMDQ_EVENT_SENINF_CAM9_FIFO_FULL	786
659 #define CMDQ_EVENT_SENINF_CAM10_FIFO_FULL_X	787
660 #define CMDQ_EVENT_SENINF_CAM11_FIFO_FULL_X	788
661 #define CMDQ_EVENT_SENINF_CAM12_FIFO_FULL_X	789
662 #define CMDQ_EVENT_SENINF_CAM13_FIFO_FULL_X	790
663 #define CMDQ_EVENT_TG_OVRUN_MRAW0_INT_X0	791
664 #define CMDQ_EVENT_TG_OVRUN_MRAW1_INT_X0	792
665 #define CMDQ_EVENT_TG_OVRUN_MRAW2_INT	793
666 #define CMDQ_EVENT_TG_OVRUN_MRAW3_INT	794
667 #define CMDQ_EVENT_DMA_R1_ERROR_MRAW0_INT	795
668 #define CMDQ_EVENT_DMA_R1_ERROR_MRAW1_INT	796
669 #define CMDQ_EVENT_DMA_R1_ERROR_MRAW2_INT	797
670 #define CMDQ_EVENT_DMA_R1_ERROR_MRAW3_INT	798
671 #define CMDQ_EVENT_U_CAMSYS_PDA_IRQO_EVENT_DONE_D1	799
672 #define CMDQ_EVENT_SUBB_TG_INT4	800
673 #define CMDQ_EVENT_SUBB_TG_INT3	801
674 #define CMDQ_EVENT_SUBB_TG_INT2	802
675 #define CMDQ_EVENT_SUBB_TG_INT1	803
676 #define CMDQ_EVENT_SUBA_TG_INT4	804
677 #define CMDQ_EVENT_SUBA_TG_INT3	805
678 #define CMDQ_EVENT_SUBA_TG_INT2	806
679 #define CMDQ_EVENT_SUBA_TG_INT1	807
680 #define CMDQ_EVENT_SUBB_DRZS4NO_R1_LOW_LATENCY_LINE_CNT_INT	808
681 #define CMDQ_EVENT_SUBB_YUVO_R3_LOW_LATENCY_LINE_CNT_INT	809
682 #define CMDQ_EVENT_SUBB_YUVO_R1_LOW_LATENCY_LINE_CNT_INT	810
683 #define CMDQ_EVENT_SUBB_IMGO_R1_LOW_LATENCY_LINE_CNT_INT	811
684 #define CMDQ_EVENT_SUBA_DRZS4NO_R1_LOW_LATENCY_LINE_CNT_INT	812
685 #define CMDQ_EVENT_SUBA_YUVO_R3_LOW_LATENCY_LINE_CNT_INT	813
686 #define CMDQ_EVENT_SUBA_YUVO_R1_LOW_LATENCY_LINE_CNT_INT	814
687 #define CMDQ_EVENT_SUBA_IMGO_R1_LOW_LATENCY_LINE_CNT_INT	815
688 #define CMDQ_EVENT_GCE1_SOF_0	816
689 #define CMDQ_EVENT_GCE1_SOF_1	817
690 #define CMDQ_EVENT_GCE1_SOF_2	818
691 #define CMDQ_EVENT_GCE1_SOF_3	819
692 #define CMDQ_EVENT_GCE1_SOF_4	820
693 #define CMDQ_EVENT_GCE1_SOF_5	821
694 #define CMDQ_EVENT_GCE1_SOF_6	822
695 #define CMDQ_EVENT_GCE1_SOF_7	823
696 #define CMDQ_EVENT_GCE1_SOF_8	824
697 #define CMDQ_EVENT_GCE1_SOF_9	825
698 #define CMDQ_EVENT_GCE1_SOF_10	826
699 #define CMDQ_EVENT_GCE1_SOF_11	827
700 #define CMDQ_EVENT_GCE1_SOF_12	828
701 #define CMDQ_EVENT_GCE1_SOF_13	829
702 #define CMDQ_EVENT_GCE1_SOF_14	830
703 #define CMDQ_EVENT_GCE1_SOF_15	831
704 
705 #define CMDQ_EVENT_VDEC_LAT_LINE_COUNT_THRESHOLD_INTERRUPT	832
706 #define CMDQ_EVENT_VDEC_LAT_VDEC_INT	833
707 #define CMDQ_EVENT_VDEC_LAT_VDEC_PAUSE	834
708 #define CMDQ_EVENT_VDEC_LAT_VDEC_DEC_ERROR	835
709 #define CMDQ_EVENT_VDEC_LAT_MC_BUSY_OVERFLOW_MDEC_TIMEOUT	836
710 #define CMDQ_EVENT_VDEC_LAT_VDEC_FRAME_DONE	837
711 #define CMDQ_EVENT_VDEC_LAT_INI_FETCH_RDY	838
712 #define CMDQ_EVENT_VDEC_LAT_PROCESS_FLAG	839
713 #define CMDQ_EVENT_VDEC_LAT_SEARCH_START_CODE_DONE	840
714 #define CMDQ_EVENT_VDEC_LAT_REF_REORDER_DONE	841
715 #define CMDQ_EVENT_VDEC_LAT_WP_TBLE_DONE	842
716 #define CMDQ_EVENT_VDEC_LAT_COUNT_SRAM_CLR_DONE_AND_CTX_SRAM_CLR_DONE	843
717 #define CMDQ_EVENT_VDEC_LAT_GCE_CNT_OP_THRESHOLD	847
718 
719 #define CMDQ_EVENT_VDEC_LAT1_LINE_COUNT_THRESHOLD_INTERRUPT	848
720 #define CMDQ_EVENT_VDEC_LAT1_VDEC_INT	849
721 #define CMDQ_EVENT_VDEC_LAT1_VDEC_PAUSE	850
722 #define CMDQ_EVENT_VDEC_LAT1_VDEC_DEC_ERROR	851
723 #define CMDQ_EVENT_VDEC_LAT1_MC_BUSY_OVERFLOW_MDEC_TIMEOUT	852
724 #define CMDQ_EVENT_VDEC_LAT1_VDEC_FRAME_DONE	853
725 #define CMDQ_EVENT_VDEC_LAT1_INI_FETCH_RDY	854
726 #define CMDQ_EVENT_VDEC_LAT1_PROCESS_FLAG	855
727 #define CMDQ_EVENT_VDEC_LAT1_SEARCH_START_CODE_DONE	856
728 #define CMDQ_EVENT_VDEC_LAT1_REF_REORDER_DONE	857
729 #define CMDQ_EVENT_VDEC_LAT1_WP_TBLE_DONE	858
730 #define CMDQ_EVENT_VDEC_LAT1_COUNT_SRAM_CLR_DONE_AND_CTX_SRAM_CLR_DONE	859
731 #define CMDQ_EVENT_VDEC_LAT1_GCE_CNT_OP_THRESHOLD	863
732 
733 #define CMDQ_EVENT_VDEC_SOC_GLOBAL_CON_250_0	864
734 #define CMDQ_EVENT_VDEC_SOC_GLOBAL_CON_250_1	865
735 
736 #define CMDQ_EVENT_VDEC_SOC_GLOBAL_CON_250_8	872
737 #define CMDQ_EVENT_VDEC_SOC_GLOBAL_CON_250_9	873
738 
739 #define CMDQ_EVENT_VDEC_CORE_LINE_COUNT_THRESHOLD_INTERRUPT	896
740 #define CMDQ_EVENT_VDEC_CORE_VDEC_INT	897
741 #define CMDQ_EVENT_VDEC_CORE_VDEC_PAUSE	898
742 #define CMDQ_EVENT_VDEC_CORE_VDEC_DEC_ERROR	899
743 #define CMDQ_EVENT_VDEC_CORE_MC_BUSY_OVERFLOW_MDEC_TIMEOUT	900
744 #define CMDQ_EVENT_VDEC_CORE_VDEC_FRAME_DONE	901
745 #define CMDQ_EVENT_VDEC_CORE_INI_FETCH_RDY	902
746 #define CMDQ_EVENT_VDEC_CORE_PROCESS_FLAG	903
747 #define CMDQ_EVENT_VDEC_CORE_SEARCH_START_CODE_DONE	904
748 #define CMDQ_EVENT_VDEC_CORE_REF_REORDER_DONE	905
749 #define CMDQ_EVENT_VDEC_CORE_WP_TBLE_DONE	906
750 #define CMDQ_EVENT_VDEC_CORE_COUNT_SRAM_CLR_DONE_AND_CTX_SRAM_CLR_DONE	907
751 #define CMDQ_EVENT_VDEC_CORE_GCE_CNT_OP_THRESHOLD	911
752 
753 #define CMDQ_EVENT_VDEC_CORE1_LINE_COUNT_THRESHOLD_INTERRUPT	912
754 #define CMDQ_EVENT_VDEC_CORE1_VDEC_INT	913
755 #define CMDQ_EVENT_VDEC_CORE1_VDEC_PAUSE	914
756 #define CMDQ_EVENT_VDEC_CORE1_VDEC_DEC_ERROR	915
757 #define CMDQ_EVENT_VDEC_CORE1_MC_BUSY_OVERFLOW_MDEC_TIMEOUT	916
758 #define CMDQ_EVENT_VDEC_CORE1_VDEC_FRAME_DONE	917
759 #define CMDQ_EVENT_VDEC_CORE1_INI_FETCH_RDY	918
760 #define CMDQ_EVENT_VDEC_CORE1_PROCESS_FLAG	919
761 #define CMDQ_EVENT_VDEC_CORE1_SEARCH_START_CODE_DONE	920
762 #define CMDQ_EVENT_VDEC_CORE1_REF_REORDER_DONE	921
763 #define CMDQ_EVENT_VDEC_CORE1_WP_TBLE_DONE	922
764 #define CMDQ_EVENT_VDEC_CORE1_COUNT_SRAM_CLR_DONE_AND_CTX_SRAM_CLR_DONE	923
765 #define CMDQ_EVENT_VDEC_CORE1_CNT_OP_THRESHOLD	927
766 
767 #define CMDQ_EVENT_VENC_TOP_FRAME_DONE	929
768 #define CMDQ_EVENT_VENC_TOP_PAUSE_DONE	930
769 #define CMDQ_EVENT_VENC_TOP_JPGENC_DONE	931
770 #define CMDQ_EVENT_VENC_TOP_MB_DONE	932
771 #define CMDQ_EVENT_VENC_TOP_128BYTE_DONE	933
772 #define CMDQ_EVENT_VENC_TOP_JPGDEC_DONE	934
773 #define CMDQ_EVENT_VENC_TOP_JPGDEC_C1_DONE	935
774 #define CMDQ_EVENT_VENC_TOP_JPGDEC_INSUFF_DONE	936
775 #define CMDQ_EVENT_VENC_TOP_JPGDEC_C1_INSUFF_DONE	937
776 #define CMDQ_EVENT_VENC_TOP_WP_2ND_STAGE_DONE	938
777 #define CMDQ_EVENT_VENC_TOP_WP_3RD_STAGE_DONE	939
778 #define CMDQ_EVENT_VENC_TOP_PPS_HEADER_DONE	940
779 #define CMDQ_EVENT_VENC_TOP_SPS_HEADER_DONE	941
780 #define CMDQ_EVENT_VENC_TOP_VPS_HEADER_DONE	942
781 
782 #define CMDQ_EVENT_VENC_CORE1_TOP_FRAME_DONE	945
783 #define CMDQ_EVENT_VENC_CORE1_TOP_PAUSE_DONE	946
784 #define CMDQ_EVENT_VENC_CORE1_TOP_JPGENC_DONE	947
785 #define CMDQ_EVENT_VENC_CORE1_TOP_MB_DONE	948
786 #define CMDQ_EVENT_VENC_CORE1_TOP_128BYTE_DONE	949
787 #define CMDQ_EVENT_VENC_CORE1_TOP_JPGDEC_DONE	950
788 #define CMDQ_EVENT_VENC_CORE1_TOP_JPGDEC_C1_DONE	951
789 #define CMDQ_EVENT_VENC_CORE1_TOP_JPGDEC_INSUFF_DONE	952
790 #define CMDQ_EVENT_VENC_CORE1_TOP_JPGDEC_C1_INSUFF_DONE	953
791 #define CMDQ_EVENT_VENC_CORE1_TOP_WP_2ND_STAGE_DONE	954
792 #define CMDQ_EVENT_VENC_CORE1_TOP_WP_3RD_STAGE_DONE	955
793 #define CMDQ_EVENT_VENC_CORE1_TOP_PPS_HEADER_DONE	956
794 #define CMDQ_EVENT_VENC_CORE1_TOP_SPS_HEADER_DONE	957
795 #define CMDQ_EVENT_VENC_CORE1_TOP_VPS_HEADER_DONE	958
796 
797 #define CMDQ_EVENT_WPE_VPP0_WPE_GCE_FRAME_DONE	962
798 #define CMDQ_EVENT_WPE_VPP0_WPE_DONE_SYNC_OUT	963
799 
800 #define CMDQ_EVENT_WPE_VPP1_WPE_GCE_FRAME_DONE	969
801 #define CMDQ_EVENT_WPE_VPP1_WPE_DONE_SYNC_OUT	970
802 
803 #define CMDQ_EVENT_DP_TX_VBLANK_FALLING	994
804 #define CMDQ_EVENT_DP_TX_VSC_FINISH	995
805 
806 #define CMDQ_EVENT_OUTPIN_0	1018
807 #define CMDQ_EVENT_OUTPIN_1	1019
808 
809 /* end of hw event */
810 #define CMDQ_MAX_HW_EVENT				1019
811 
812 #endif
813