Debian Codegraph @

src/nouveau/headers/nvidia/classes/clc9b7.h

raw
1 /*
2 * SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3 * SPDX-License-Identifier: MIT
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
22 */
23
24 #ifndef clc9b7_h_
25 #define clc9b7_h_
26
27 #include "nvtypes.h"
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 #define NVC9B7_VIDEO_ENCODER (0x0000C9B7)
34
35 #define NVC9B7_SET_UCODE_STATE (0x00000000)
36 #define NVC9B7_SET_UCODE_STATE_OFFSET 31:0
37 #define NVC9B7_NOP (0x00000100)
38 #define NVC9B7_NOP_PARAMETER 31:0
39 #define NVC9B7_PM_TRIGGER (0x00000140)
40 #define NVC9B7_PM_TRIGGER_V 31:0
41 #define NVC9B7_SET_APPLICATION_ID (0x00000200)
42 #define NVC9B7_SET_APPLICATION_ID_ID 31:0
43 #define NVC9B7_SET_APPLICATION_ID_ID_NVENC_H264 (0x00000001)
44 #define NVC9B7_SET_APPLICATION_ID_ID_NVENC_VP8 (0x00000002)
45 #define NVC9B7_SET_APPLICATION_ID_ID_NVENC_H265 (0x00000003)
46 #define NVC9B7_SET_APPLICATION_ID_ID_NVENC_VP9 (0x00000004)
47 #define NVC9B7_SET_APPLICATION_ID_ID_NVENC_RC (0x00000005)
48 #define NVC9B7_SET_APPLICATION_ID_ID_NVENC_OFS (0x00000006)
49 #define NVC9B7_SET_APPLICATION_ID_ID_NVENC_AV1 (0x00000007)
50 #define NVC9B7_SET_WATCHDOG_TIMER (0x00000204)
51 #define NVC9B7_SET_WATCHDOG_TIMER_TIMER 31:0
52 #define NVC9B7_SEMAPHORE_A (0x00000240)
53 #define NVC9B7_SEMAPHORE_A_UPPER 7:0
54 #define NVC9B7_SEMAPHORE_B (0x00000244)
55 #define NVC9B7_SEMAPHORE_B_LOWER 31:0
56 #define NVC9B7_SEMAPHORE_C (0x00000248)
57 #define NVC9B7_SEMAPHORE_C_PAYLOAD 31:0
58 #define NVC9B7_SET_SEMAPHORE_PAYLOAD_LOWER (0x00000254)
59 #define NVC9B7_SET_SEMAPHORE_PAYLOAD_LOWER_PAYLOAD_LOWER 31:0
60 #define NVC9B7_SET_SEMAPHORE_PAYLOAD_UPPER (0x00000258)
61 #define NVC9B7_SET_SEMAPHORE_PAYLOAD_UPPER_PAYLOAD_UPPER 31:0
62 #define NVC9B7_EXECUTE (0x00000300)
63 #define NVC9B7_EXECUTE_NOTIFY 0:0
64 #define NVC9B7_EXECUTE_NOTIFY_DISABLE (0x00000000)
65 #define NVC9B7_EXECUTE_NOTIFY_ENABLE (0x00000001)
66 #define NVC9B7_EXECUTE_NOTIFY_ON 1:1
67 #define NVC9B7_EXECUTE_NOTIFY_ON_END (0x00000000)
68 #define NVC9B7_EXECUTE_NOTIFY_ON_BEGIN (0x00000001)
69 #define NVC9B7_EXECUTE_PREDICATION 2:2
70 #define NVC9B7_EXECUTE_PREDICATION_DISABLE (0x00000000)
71 #define NVC9B7_EXECUTE_PREDICATION_ENABLE (0x00000001)
72 #define NVC9B7_EXECUTE_PREDICATION_OP 3:3
73 #define NVC9B7_EXECUTE_PREDICATION_OP_EQUAL_ZERO (0x00000000)
74 #define NVC9B7_EXECUTE_PREDICATION_OP_NOT_EQUAL_ZERO (0x00000001)
75 #define NVC9B7_EXECUTE_AWAKEN 8:8
76 #define NVC9B7_EXECUTE_AWAKEN_DISABLE (0x00000000)
77 #define NVC9B7_EXECUTE_AWAKEN_ENABLE (0x00000001)
78 #define NVC9B7_SEMAPHORE_D (0x00000304)
79 #define NVC9B7_SEMAPHORE_D_STRUCTURE_SIZE 1:0
80 #define NVC9B7_SEMAPHORE_D_STRUCTURE_SIZE_ONE (0x00000000)
81 #define NVC9B7_SEMAPHORE_D_STRUCTURE_SIZE_FOUR (0x00000001)
82 #define NVC9B7_SEMAPHORE_D_STRUCTURE_SIZE_TWO (0x00000002)
83 #define NVC9B7_SEMAPHORE_D_AWAKEN_ENABLE 8:8
84 #define NVC9B7_SEMAPHORE_D_AWAKEN_ENABLE_FALSE (0x00000000)
85 #define NVC9B7_SEMAPHORE_D_AWAKEN_ENABLE_TRUE (0x00000001)
86 #define NVC9B7_SEMAPHORE_D_OPERATION 17:16
87 #define NVC9B7_SEMAPHORE_D_OPERATION_RELEASE (0x00000000)
88 #define NVC9B7_SEMAPHORE_D_OPERATION_MONITORED_FENCE (0x00000001)
89 #define NVC9B7_SEMAPHORE_D_OPERATION_MONITORED_FENCE_EXT (0x00000002)
90 #define NVC9B7_SEMAPHORE_D_OPERATION_TRAP (0x00000003)
91 #define NVC9B7_SEMAPHORE_D_FLUSH_DISABLE 21:21
92 #define NVC9B7_SEMAPHORE_D_FLUSH_DISABLE_FALSE (0x00000000)
93 #define NVC9B7_SEMAPHORE_D_FLUSH_DISABLE_TRUE (0x00000001)
94 #define NVC9B7_SEMAPHORE_D_CONDITIONAL_TRAP 22:22
95 #define NVC9B7_SEMAPHORE_D_CONDITIONAL_TRAP_FALSE (0x00000000)
96 #define NVC9B7_SEMAPHORE_D_CONDITIONAL_TRAP_TRUE (0x00000001)
97 #define NVC9B7_SEMAPHORE_D_PAYLOAD_SIZE 2:2
98 #define NVC9B7_SEMAPHORE_D_PAYLOAD_SIZE_32BIT (0x00000000)
99 #define NVC9B7_SEMAPHORE_D_PAYLOAD_SIZE_64BIT (0x00000001)
100 #define NVC9B7_SET_PREDICATION_OFFSET_UPPER (0x00000308)
101 #define NVC9B7_SET_PREDICATION_OFFSET_UPPER_OFFSET 7:0
102 #define NVC9B7_SET_PREDICATION_OFFSET_LOWER (0x0000030C)
103 #define NVC9B7_SET_PREDICATION_OFFSET_LOWER_OFFSET 31:0
104 #define NVC9B7_SET_IN_REF_PIC0_LUMA (0x00000400)
105 #define NVC9B7_SET_IN_REF_PIC0_LUMA_OFFSET 31:0
106 #define NVC9B7_SET_IN_REF_PIC1_LUMA (0x00000404)
107 #define NVC9B7_SET_IN_REF_PIC1_LUMA_OFFSET 31:0
108 #define NVC9B7_SET_IN_REF_PIC2_LUMA (0x00000408)
109 #define NVC9B7_SET_IN_REF_PIC2_LUMA_OFFSET 31:0
110 #define NVC9B7_SET_IN_REF_PIC3_LUMA (0x0000040C)
111 #define NVC9B7_SET_IN_REF_PIC3_LUMA_OFFSET 31:0
112 #define NVC9B7_SET_IN_REF_PIC4_LUMA (0x00000410)
113 #define NVC9B7_SET_IN_REF_PIC4_LUMA_OFFSET 31:0
114 #define NVC9B7_SET_IN_REF_PIC5_LUMA (0x00000414)
115 #define NVC9B7_SET_IN_REF_PIC5_LUMA_OFFSET 31:0
116 #define NVC9B7_SET_IN_REF_PIC6_LUMA (0x00000418)
117 #define NVC9B7_SET_IN_REF_PIC6_LUMA_OFFSET 31:0
118 #define NVC9B7_SET_IN_REF_PIC7_LUMA (0x0000041C)
119 #define NVC9B7_SET_IN_REF_PIC7_LUMA_OFFSET 31:0
120 #define NVC9B7_SET_IN_REF_PIC8_LUMA (0x00000420)
121 #define NVC9B7_SET_IN_REF_PIC8_LUMA_OFFSET 31:0
122 #define NVC9B7_SET_IN_REF_PIC9_LUMA (0x00000424)
123 #define NVC9B7_SET_IN_REF_PIC9_LUMA_OFFSET 31:0
124 #define NVC9B7_SET_IN_REF_PIC10_LUMA (0x00000428)
125 #define NVC9B7_SET_IN_REF_PIC10_LUMA_OFFSET 31:0
126 #define NVC9B7_SET_IN_REF_PIC11_LUMA (0x0000042C)
127 #define NVC9B7_SET_IN_REF_PIC11_LUMA_OFFSET 31:0
128 #define NVC9B7_SET_IN_REF_PIC12_LUMA (0x00000430)
129 #define NVC9B7_SET_IN_REF_PIC12_LUMA_OFFSET 31:0
130 #define NVC9B7_SET_IN_REF_PIC13_LUMA (0x00000434)
131 #define NVC9B7_SET_IN_REF_PIC13_LUMA_OFFSET 31:0
132 #define NVC9B7_SET_IN_REF_PIC14_LUMA (0x00000438)
133 #define NVC9B7_SET_IN_REF_PIC14_LUMA_OFFSET 31:0
134 #define NVC9B7_SET_IN_REF_PIC15_LUMA (0x0000043C)
135 #define NVC9B7_SET_IN_REF_PIC15_LUMA_OFFSET 31:0
136 #define NVC9B7_SET_IN_REF_PIC0_CHROMA (0x00000440)
137 #define NVC9B7_SET_IN_REF_PIC0_CHROMA_OFFSET 31:0
138 #define NVC9B7_SET_IN_REF_PIC1_CHROMA (0x00000444)
139 #define NVC9B7_SET_IN_REF_PIC1_CHROMA_OFFSET 31:0
140 #define NVC9B7_SET_IN_REF_PIC2_CHROMA (0x00000448)
141 #define NVC9B7_SET_IN_REF_PIC2_CHROMA_OFFSET 31:0
142 #define NVC9B7_SET_IN_REF_PIC3_CHROMA (0x0000044C)
143 #define NVC9B7_SET_IN_REF_PIC3_CHROMA_OFFSET 31:0
144 #define NVC9B7_SET_IN_REF_PIC4_CHROMA (0x00000450)
145 #define NVC9B7_SET_IN_REF_PIC4_CHROMA_OFFSET 31:0
146 #define NVC9B7_SET_IN_REF_PIC5_CHROMA (0x00000454)
147 #define NVC9B7_SET_IN_REF_PIC5_CHROMA_OFFSET 31:0
148 #define NVC9B7_SET_IN_REF_PIC6_CHROMA (0x00000458)
149 #define NVC9B7_SET_IN_REF_PIC6_CHROMA_OFFSET 31:0
150 #define NVC9B7_SET_IN_REF_PIC7_CHROMA (0x0000045C)
151 #define NVC9B7_SET_IN_REF_PIC7_CHROMA_OFFSET 31:0
152 #define NVC9B7_SET_IN_REF_PIC8_CHROMA (0x00000460)
153 #define NVC9B7_SET_IN_REF_PIC8_CHROMA_OFFSET 31:0
154 #define NVC9B7_SET_IN_REF_PIC9_CHROMA (0x00000464)
155 #define NVC9B7_SET_IN_REF_PIC9_CHROMA_OFFSET 31:0
156 #define NVC9B7_SET_IN_REF_PIC10_CHROMA (0x00000468)
157 #define NVC9B7_SET_IN_REF_PIC10_CHROMA_OFFSET 31:0
158 #define NVC9B7_SET_IN_REF_PIC11_CHROMA (0x0000046C)
159 #define NVC9B7_SET_IN_REF_PIC11_CHROMA_OFFSET 31:0
160 #define NVC9B7_SET_IN_REF_PIC12_CHROMA (0x00000470)
161 #define NVC9B7_SET_IN_REF_PIC12_CHROMA_OFFSET 31:0
162 #define NVC9B7_SET_IN_REF_PIC13_CHROMA (0x00000474)
163 #define NVC9B7_SET_IN_REF_PIC13_CHROMA_OFFSET 31:0
164 #define NVC9B7_SET_IN_REF_PIC14_CHROMA (0x00000478)
165 #define NVC9B7_SET_IN_REF_PIC14_CHROMA_OFFSET 31:0
166 #define NVC9B7_SET_IN_REF_PIC15_CHROMA (0x0000047C)
167 #define NVC9B7_SET_IN_REF_PIC15_CHROMA_OFFSET 31:0
168 #define NVC9B7_SET_IN_AV1_PROBABILITY_DATA (0x00000480)
169 #define NVC9B7_SET_IN_AV1_PROBABILITY_DATA_OFFSET 31:0
170 #define NVC9B7_SET_OUT_AV1_PROBABILITY_DATA (0x00000484)
171 #define NVC9B7_SET_OUT_AV1_PROBABILITY_DATA_OFFSET 31:0
172 #define NVC9B7_SET_IOENTROPY_ABOVE_CTX_DATA (0x00000488)
173 #define NVC9B7_SET_IOENTROPY_ABOVE_CTX_DATA_OFFSET 31:0
174 #define NVC9B7_SET_IOENTROPY_ABOVE_MV_DATA (0x0000048C)
175 #define NVC9B7_SET_IOENTROPY_ABOVE_MV_DATA_OFFSET 31:0
176 #define NVC9B7_SET_IODEBLOCK_TOPROW (0x00000490)
177 #define NVC9B7_SET_IODEBLOCK_TOPROW_OFFSET 31:0
178 #define NVC9B7_SET_IODEBLOCK_LEFTCOLUMN (0x00000494)
179 #define NVC9B7_SET_IODEBLOCK_LEFTCOLUMN_OFFSET 31:0
180 #define NVC9B7_SET_IOCDEF_LEFTCOLUMN (0x00000498)
181 #define NVC9B7_SET_IOCDEF_LEFTCOLUMN_OFFSET 31:0
182 #define NVC9B7_SET_IOLR_LEFTCOLUMN (0x0000049C)
183 #define NVC9B7_SET_IOLR_LEFTCOLUMN_OFFSET 31:0
184 #define NVC9B7_SET_IN_SSIMRDO_INPUT_DENORM (0x000004A0)
185 #define NVC9B7_SET_IN_SSIMRDO_INPUT_DENORM_OFFSET 31:0
186 #define NVC9B7_SET_IN_SSIMRDO_OUTPUT_DENORM (0x000004A4)
187 #define NVC9B7_SET_IN_SSIMRDO_OUTPUT_DENORM_OFFSET 31:0
188 #define NVC9B7_SET_IN_VP9_PROBABILITY_DATA (0x000004A8)
189 #define NVC9B7_SET_IN_VP9_PROBABILITY_DATA_OFFSET 31:0
190 #define NVC9B7_SET_IN_VP9_CUR_TEMPORAL_DATA (0x000004AC)
191 #define NVC9B7_SET_IN_VP9_CUR_TEMPORAL_DATA_OFFSET 31:0
192 #define NVC9B7_SET_IN_VP9_REF_TEMPORAL_DATA (0x000004B0)
193 #define NVC9B7_SET_IN_VP9_REF_TEMPORAL_DATA_OFFSET 31:0
194 #define NVC9B7_SET_IN_VP9_COMBINEDLINE_BUF (0x000004B4)
195 #define NVC9B7_SET_IN_VP9_COMBINEDLINE_BUF_OFFSET 31:0
196 #define NVC9B7_SET_IN_VP9_FILTERLINE_BUF (0x000004B8)
197 #define NVC9B7_SET_IN_VP9_FILTERLINE_BUF_OFFSET 31:0
198 #define NVC9B7_SET_IN_VP9_FILTERCOLLINE_BUF (0x000004BC)
199 #define NVC9B7_SET_IN_VP9_FILTERCOLLINE_BUF_OFFSET 31:0
200 #define NVC9B7_SET_IN_VP9_MOCOMP_PIC_LUMA (0x000004C0)
201 #define NVC9B7_SET_IN_VP9_MOCOMP_PIC_LUMA_OFFSET 31:0
202 #define NVC9B7_SET_IN_VP9_MOCOMP_PIC_CHROMA (0x000004C4)
203 #define NVC9B7_SET_IN_VP9_MOCOMP_PIC_CHROMA_OFFSET 31:0
204 #define NVC9B7_SET_TOTAL_CORE_NUM (0x000004C8)
205 #define NVC9B7_SET_TOTAL_CORE_NUM_INDEX 31:0
206 #define NVC9B7_SET_CONTROL_PARAMS (0x00000700)
207 #define NVC9B7_SET_CONTROL_PARAMS_CODEC_TYPE 3:0
208 #define NVC9B7_SET_CONTROL_PARAMS_CODEC_TYPE_H264 (0x00000003)
209 #define NVC9B7_SET_CONTROL_PARAMS_FORCE_OUT_PIC 8:8
210 #define NVC9B7_SET_CONTROL_PARAMS_FORCE_OUT_COL 9:9
211 #define NVC9B7_SET_CONTROL_PARAMS_MEONLY 10:10
212 #define NVC9B7_SET_CONTROL_PARAMS_SLICE_STAT_ON 11:11
213 #define NVC9B7_SET_CONTROL_PARAMS_TOPLEVEL 4:4
214 #define NVC9B7_SET_CONTROL_PARAMS_GPTIMER_ON 12:12
215 #define NVC9B7_SET_CONTROL_PARAMS_STOP_PROB_UPDATE 13:13
216 #define NVC9B7_SET_CONTROL_PARAMS_DUMP_CYCLE_COUNT 14:14
217 #define NVC9B7_SET_CONTROL_PARAMS_MPEC_STAT_ON 15:15
218 #define NVC9B7_SET_CONTROL_PARAMS_DEBUG_MODE 16:16
219 #define NVC9B7_SET_CONTROL_PARAMS_SUBFRAME_MODE 18:17
220 #define NVC9B7_SET_CONTROL_PARAMS_SUBFRAME_MODE_NONE (0x00000000)
221 #define NVC9B7_SET_CONTROL_PARAMS_SUBFRAME_MODE_SLICE_FLUSH (0x00000001)
222 #define NVC9B7_SET_CONTROL_PARAMS_SUBFRAME_MODE_SLICE_OFFSETS_WITHOUT_FLUSH (0x00000002)
223 #define NVC9B7_SET_CONTROL_PARAMS_SUBFRAME_MODE_SLICE_OFFSETS_WITH_FLUSH (0x00000003)
224 #define NVC9B7_SET_CONTROL_PARAMS_RCSTAT_WRITE 19:19
225 #define NVC9B7_SET_CONTROL_PARAMS_RCSTAT_READ 20:20
226 #define NVC9B7_SET_CONTROL_PARAMS_ENCRYPT_ON 21:21
227 #define NVC9B7_SET_CONTROL_PARAMS_RCMODE 31:24
228 #define NVC9B7_SET_CONTROL_PARAMS_RCMODE_CONSTQP (0x00000000)
229 #define NVC9B7_SET_PICTURE_INDEX (0x00000704)
230 #define NVC9B7_SET_PICTURE_INDEX_INDEX 31:0
231 #define NVC9B7_SET_OUT_ENCRYPT_PARAMS (0x00000708)
232 #define NVC9B7_SET_OUT_ENCRYPT_PARAMS_OFFSET 31:0
233 #define NVC9B7_SET_IN_RCDATA (0x0000070C)
234 #define NVC9B7_SET_IN_RCDATA_OFFSET 31:0
235 #define NVC9B7_SET_IN_DRV_PIC_SETUP (0x00000710)
236 #define NVC9B7_SET_IN_DRV_PIC_SETUP_OFFSET 31:0
237 #define NVC9B7_SET_IN_CEAHINTS_DATA (0x00000714)
238 #define NVC9B7_SET_IN_CEAHINTS_DATA_OFFSET 31:0
239 #define NVC9B7_SET_OUT_ENC_STATUS (0x00000718)
240 #define NVC9B7_SET_OUT_ENC_STATUS_OFFSET 31:0
241 #define NVC9B7_SET_OUT_BITSTREAM (0x0000071C)
242 #define NVC9B7_SET_OUT_BITSTREAM_OFFSET 31:0
243 #define NVC9B7_SET_IOHISTORY (0x00000720)
244 #define NVC9B7_SET_IOHISTORY_OFFSET 31:0
245 #define NVC9B7_SET_IO_RC_PROCESS (0x00000724)
246 #define NVC9B7_SET_IO_RC_PROCESS_OFFSET 31:0
247 #define NVC9B7_SET_IN_COLOC_DATA (0x00000728)
248 #define NVC9B7_SET_IN_COLOC_DATA_OFFSET 31:0
249 #define NVC9B7_SET_OUT_COLOC_DATA (0x0000072C)
250 #define NVC9B7_SET_OUT_COLOC_DATA_OFFSET 31:0
251 #define NVC9B7_SET_OUT_REF_PIC_LUMA (0x00000730)
252 #define NVC9B7_SET_OUT_REF_PIC_LUMA_OFFSET 31:0
253 #define NVC9B7_SET_IN_CUR_PIC (0x00000734)
254 #define NVC9B7_SET_IN_CUR_PIC_OFFSET 31:0
255 #define NVC9B7_SET_IN_MEPRED_DATA (0x00000738)
256 #define NVC9B7_SET_IN_MEPRED_DATA_OFFSET 31:0
257 #define NVC9B7_SET_OUT_MEPRED_DATA (0x0000073C)
258 #define NVC9B7_SET_OUT_MEPRED_DATA_OFFSET 31:0
259 #define NVC9B7_SET_IN_CUR_PIC_CHROMA_U (0x00000740)
260 #define NVC9B7_SET_IN_CUR_PIC_CHROMA_U_OFFSET 31:0
261 #define NVC9B7_SET_IN_CUR_PIC_CHROMA_V (0x00000744)
262 #define NVC9B7_SET_IN_CUR_PIC_CHROMA_V_OFFSET 31:0
263 #define NVC9B7_SET_IN_QP_MAP (0x00000748)
264 #define NVC9B7_SET_IN_QP_MAP_OFFSET 31:0
265 #define NVC9B7_SET_OUT_REF_PIC_CHROMA (0x0000074C)
266 #define NVC9B7_SET_OUT_REF_PIC_CHROMA_OFFSET 31:0
267 #define NVC9B7_SET_IN_PARTITION_BUF (0x00000750)
268 #define NVC9B7_SET_IN_PARTITION_BUF_OFFSET 31:0
269 #define NVC9B7_SET_IN_CUR_PIC_TASK_STATUS (0x00000758)
270 #define NVC9B7_SET_IN_CUR_PIC_TASK_STATUS_OFFSET 31:0
271 #define NVC9B7_SET_IN_REF_PIC_TASK_STATUS (0x0000075C)
272 #define NVC9B7_SET_IN_REF_PIC_TASK_STATUS_OFFSET 31:0
273 #define NVC9B7_SET_OUT_TASK_STATUS (0x00000760)
274 #define NVC9B7_SET_OUT_TASK_STATUS_OFFSET 31:0
275 #define NVC9B7_SET_IN_MV_HINTS_TASK_STATUS (0x00000764)
276 #define NVC9B7_SET_IN_MV_HINTS_TASK_STATUS_OFFSET 31:0
277 #define NVC9B7_SET_OUT_SCALE_REF_PIC_LUMA (0x00000768)
278 #define NVC9B7_SET_OUT_SCALE_REF_PIC_LUMA_OFFSET 31:0
279 #define NVC9B7_SET_OUT_SCALE_REF_PIC_CHROMA (0x0000076C)
280 #define NVC9B7_SET_OUT_SCALE_REF_PIC_CHROMA_OFFSET 31:0
281 #define NVC9B7_SET_IO_OFS_ERROR_PROPAGATION (0x00000770)
282 #define NVC9B7_SET_IO_OFS_ERROR_PROPAGATION_OFFSET 31:0
283 #define NVC9B7_SET_IO_DEBUG_STATUS (0x00000774)
284 #define NVC9B7_SET_IO_DEBUG_STATUS_OFFSET 31:0
285 #define NVC9B7_SET_IN_LAMBDA_MAP (0x00000778)
286 #define NVC9B7_SET_IN_LAMBDA_MAP_OFFSET 31:0
287 #define NVC9B7_SET_OUT_HYBRID_RES (0x0000077C)
288 #define NVC9B7_SET_OUT_HYBRID_RES_OFFSET 31:0
289 #define NVC9B7_PM_TRIGGER_END (0x00001114)
290 #define NVC9B7_PM_TRIGGER_END_V 31:0
291
292 #define NVC9B7_SET_PER_CORE_SET_CORE_INDEX(a) (0x000004CC + (a)*0x00000010)
293 #define NVC9B7_SET_PER_CORE_SET_CORE_INDEX_INDEX 31:0
294 #define NVC9B7_SET_PER_CORE_SET_OUT_BITSTREAM(a) (0x000004D0 + (a)*0x00000010)
295 #define NVC9B7_SET_PER_CORE_SET_OUT_BITSTREAM_OFFSET 31:0
296 #define NVC9B7_SET_PER_CORE_SET_OUT_VP9_COUNTER_DATA(a) (0x000004D4 + (a)*0x00000010)
297 #define NVC9B7_SET_PER_CORE_SET_OUT_VP9_COUNTER_DATA_OFFSET 31:0
298 #define NVC9B7_SET_PER_CORE_SET_IN_TILE_DATA(a) (0x000004D8 + (a)*0x00000010)
299 #define NVC9B7_SET_PER_CORE_SET_IN_TILE_DATA_OFFSET 31:0
300
301 #define NVC9B7_ERROR_NONE (0x00000000)
302 #define NVC9B7_OS_ERROR_EXECUTE_INSUFFICIENT_DATA (0x00000001)
303 #define NVC9B7_OS_ERROR_SEMAPHORE_INSUFFICIENT_DATA (0x00000002)
304 #define NVC9B7_OS_ERROR_INVALID_METHOD (0x00000003)
305 #define NVC9B7_OS_ERROR_INVALID_DMA_PAGE (0x00000004)
306 #define NVC9B7_OS_ERROR_UNHANDLED_INTERRUPT (0x00000005)
307 #define NVC9B7_OS_ERROR_EXCEPTION (0x00000006)
308 #define NVC9B7_OS_ERROR_INVALID_CTXSW_REQUEST (0x00000007)
309 #define NVC9B7_OS_ERROR_APPLICATION (0x00000008)
310 #define NVC9B7_OS_INTERRUPT_EXECUTE_AWAKEN (0x00000100)
311 #define NVC9B7_OS_INTERRUPT_BACKEND_SEMAPHORE_AWAKEN (0x00000200)
312 #define NVC9B7_OS_INTERRUPT_CTX_ERROR_FBIF (0x00000300)
313 #define NVC9B7_OS_INTERRUPT_LIMIT_VIOLATION (0x00000400)
314 #define NVC9B7_OS_INTERRUPT_LIMIT_AND_FBIF_CTX_ERROR (0x00000500)
315 #define NVC9B7_OS_INTERRUPT_HALT_ENGINE (0x00000600)
316 #define NVC9B7_OS_INTERRUPT_TRAP_NONSTALL (0x00000700)
317 #define NVC9B7_OS_INTERRUPT_CTX_SAVE_DONE (0x00000800)
318 #define NVC9B7_OS_INTERRUPT_CTX_RESTORE_DONE (0x00000900)
319 #define NVC9B7_ENC_ERROR_H264_APPTIMER_EXPIRED (0x30000001)
320 #define NVC9B7_ENC_ERROR_H264_INVALID_INPUT (0x30000002)
321 #define NVC9B7_ENC_ERROR_H264_HWERR_INTERRUPT (0x30000003)
322 #define NVC9B7_ENC_ERROR_H264_BAD_MAGIC (0x30000004)
323
324 #ifdef __cplusplus
325 }; /* extern "C" */
326 #endif
327 #endif // clc9b7_h
328