Debian Codegraph @

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

raw
1 /*
2 * SPDX-FileCopyrightText: Copyright (c) 2003-2021 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
25
26 #ifndef _cl_kepler_inline_to_memory_b_h_
27 #define _cl_kepler_inline_to_memory_b_h_
28
29 /* AUTO GENERATED FILE -- DO NOT EDIT */
30 /* Command: ../../../../class/bin/sw_header.pl kepler_inline_to_memory_b */
31
32 #include "nvtypes.h"
33
34 #define KEPLER_INLINE_TO_MEMORY_B 0xA140
35
36 #define NVA140_SET_OBJECT 0x0000
37 #define NVA140_SET_OBJECT_CLASS_ID 15:0
38 #define NVA140_SET_OBJECT_ENGINE_ID 20:16
39
40 #define NVA140_NO_OPERATION 0x0100
41 #define NVA140_NO_OPERATION_V 31:0
42
43 #define NVA140_SET_NOTIFY_A 0x0104
44 #define NVA140_SET_NOTIFY_A_ADDRESS_UPPER 24:0
45
46 #define NVA140_SET_NOTIFY_B 0x0108
47 #define NVA140_SET_NOTIFY_B_ADDRESS_LOWER 31:0
48
49 #define NVA140_NOTIFY 0x010c
50 #define NVA140_NOTIFY_TYPE 31:0
51 #define NVA140_NOTIFY_TYPE_WRITE_ONLY 0x00000000
52 #define NVA140_NOTIFY_TYPE_WRITE_THEN_AWAKEN 0x00000001
53
54 #define NVA140_WAIT_FOR_IDLE 0x0110
55 #define NVA140_WAIT_FOR_IDLE_V 31:0
56
57 #define NVA140_SET_GLOBAL_RENDER_ENABLE_A 0x0130
58 #define NVA140_SET_GLOBAL_RENDER_ENABLE_A_OFFSET_UPPER 7:0
59
60 #define NVA140_SET_GLOBAL_RENDER_ENABLE_B 0x0134
61 #define NVA140_SET_GLOBAL_RENDER_ENABLE_B_OFFSET_LOWER 31:0
62
63 #define NVA140_SET_GLOBAL_RENDER_ENABLE_C 0x0138
64 #define NVA140_SET_GLOBAL_RENDER_ENABLE_C_MODE 2:0
65 #define NVA140_SET_GLOBAL_RENDER_ENABLE_C_MODE_FALSE 0x00000000
66 #define NVA140_SET_GLOBAL_RENDER_ENABLE_C_MODE_TRUE 0x00000001
67 #define NVA140_SET_GLOBAL_RENDER_ENABLE_C_MODE_CONDITIONAL 0x00000002
68 #define NVA140_SET_GLOBAL_RENDER_ENABLE_C_MODE_RENDER_IF_EQUAL 0x00000003
69 #define NVA140_SET_GLOBAL_RENDER_ENABLE_C_MODE_RENDER_IF_NOT_EQUAL 0x00000004
70
71 #define NVA140_SEND_GO_IDLE 0x013c
72 #define NVA140_SEND_GO_IDLE_V 31:0
73
74 #define NVA140_PM_TRIGGER 0x0140
75 #define NVA140_PM_TRIGGER_V 31:0
76
77 #define NVA140_PM_TRIGGER_WFI 0x0144
78 #define NVA140_PM_TRIGGER_WFI_V 31:0
79
80 #define NVA140_SET_INSTRUMENTATION_METHOD_HEADER 0x0150
81 #define NVA140_SET_INSTRUMENTATION_METHOD_HEADER_V 31:0
82
83 #define NVA140_SET_INSTRUMENTATION_METHOD_DATA 0x0154
84 #define NVA140_SET_INSTRUMENTATION_METHOD_DATA_V 31:0
85
86 #define NVA140_LINE_LENGTH_IN 0x0180
87 #define NVA140_LINE_LENGTH_IN_VALUE 31:0
88
89 #define NVA140_LINE_COUNT 0x0184
90 #define NVA140_LINE_COUNT_VALUE 31:0
91
92 #define NVA140_OFFSET_OUT_UPPER 0x0188
93 #define NVA140_OFFSET_OUT_UPPER_VALUE 24:0
94
95 #define NVA140_OFFSET_OUT 0x018c
96 #define NVA140_OFFSET_OUT_VALUE 31:0
97
98 #define NVA140_PITCH_OUT 0x0190
99 #define NVA140_PITCH_OUT_VALUE 31:0
100
101 #define NVA140_SET_DST_BLOCK_SIZE 0x0194
102 #define NVA140_SET_DST_BLOCK_SIZE_WIDTH 3:0
103 #define NVA140_SET_DST_BLOCK_SIZE_WIDTH_ONE_GOB 0x00000000
104 #define NVA140_SET_DST_BLOCK_SIZE_HEIGHT 7:4
105 #define NVA140_SET_DST_BLOCK_SIZE_HEIGHT_ONE_GOB 0x00000000
106 #define NVA140_SET_DST_BLOCK_SIZE_HEIGHT_TWO_GOBS 0x00000001
107 #define NVA140_SET_DST_BLOCK_SIZE_HEIGHT_FOUR_GOBS 0x00000002
108 #define NVA140_SET_DST_BLOCK_SIZE_HEIGHT_EIGHT_GOBS 0x00000003
109 #define NVA140_SET_DST_BLOCK_SIZE_HEIGHT_SIXTEEN_GOBS 0x00000004
110 #define NVA140_SET_DST_BLOCK_SIZE_HEIGHT_THIRTYTWO_GOBS 0x00000005
111 #define NVA140_SET_DST_BLOCK_SIZE_DEPTH 11:8
112 #define NVA140_SET_DST_BLOCK_SIZE_DEPTH_ONE_GOB 0x00000000
113 #define NVA140_SET_DST_BLOCK_SIZE_DEPTH_TWO_GOBS 0x00000001
114 #define NVA140_SET_DST_BLOCK_SIZE_DEPTH_FOUR_GOBS 0x00000002
115 #define NVA140_SET_DST_BLOCK_SIZE_DEPTH_EIGHT_GOBS 0x00000003
116 #define NVA140_SET_DST_BLOCK_SIZE_DEPTH_SIXTEEN_GOBS 0x00000004
117 #define NVA140_SET_DST_BLOCK_SIZE_DEPTH_THIRTYTWO_GOBS 0x00000005
118
119 #define NVA140_SET_DST_WIDTH 0x0198
120 #define NVA140_SET_DST_WIDTH_V 31:0
121
122 #define NVA140_SET_DST_HEIGHT 0x019c
123 #define NVA140_SET_DST_HEIGHT_V 31:0
124
125 #define NVA140_SET_DST_DEPTH 0x01a0
126 #define NVA140_SET_DST_DEPTH_V 31:0
127
128 #define NVA140_SET_DST_LAYER 0x01a4
129 #define NVA140_SET_DST_LAYER_V 31:0
130
131 #define NVA140_SET_DST_ORIGIN_BYTES_X 0x01a8
132 #define NVA140_SET_DST_ORIGIN_BYTES_X_V 20:0
133
134 #define NVA140_SET_DST_ORIGIN_SAMPLES_Y 0x01ac
135 #define NVA140_SET_DST_ORIGIN_SAMPLES_Y_V 16:0
136
137 #define NVA140_LAUNCH_DMA 0x01b0
138 #define NVA140_LAUNCH_DMA_DST_MEMORY_LAYOUT 0:0
139 #define NVA140_LAUNCH_DMA_DST_MEMORY_LAYOUT_BLOCKLINEAR 0x00000000
140 #define NVA140_LAUNCH_DMA_DST_MEMORY_LAYOUT_PITCH 0x00000001
141 #define NVA140_LAUNCH_DMA_COMPLETION_TYPE 5:4
142 #define NVA140_LAUNCH_DMA_COMPLETION_TYPE_FLUSH_DISABLE 0x00000000
143 #define NVA140_LAUNCH_DMA_COMPLETION_TYPE_FLUSH_ONLY 0x00000001
144 #define NVA140_LAUNCH_DMA_COMPLETION_TYPE_RELEASE_SEMAPHORE 0x00000002
145 #define NVA140_LAUNCH_DMA_INTERRUPT_TYPE 9:8
146 #define NVA140_LAUNCH_DMA_INTERRUPT_TYPE_NONE 0x00000000
147 #define NVA140_LAUNCH_DMA_INTERRUPT_TYPE_INTERRUPT 0x00000001
148 #define NVA140_LAUNCH_DMA_SEMAPHORE_STRUCT_SIZE 12:12
149 #define NVA140_LAUNCH_DMA_SEMAPHORE_STRUCT_SIZE_FOUR_WORDS 0x00000000
150 #define NVA140_LAUNCH_DMA_SEMAPHORE_STRUCT_SIZE_ONE_WORD 0x00000001
151 #define NVA140_LAUNCH_DMA_REDUCTION_ENABLE 1:1
152 #define NVA140_LAUNCH_DMA_REDUCTION_ENABLE_FALSE 0x00000000
153 #define NVA140_LAUNCH_DMA_REDUCTION_ENABLE_TRUE 0x00000001
154 #define NVA140_LAUNCH_DMA_REDUCTION_OP 15:13
155 #define NVA140_LAUNCH_DMA_REDUCTION_OP_RED_ADD 0x00000000
156 #define NVA140_LAUNCH_DMA_REDUCTION_OP_RED_MIN 0x00000001
157 #define NVA140_LAUNCH_DMA_REDUCTION_OP_RED_MAX 0x00000002
158 #define NVA140_LAUNCH_DMA_REDUCTION_OP_RED_INC 0x00000003
159 #define NVA140_LAUNCH_DMA_REDUCTION_OP_RED_DEC 0x00000004
160 #define NVA140_LAUNCH_DMA_REDUCTION_OP_RED_AND 0x00000005
161 #define NVA140_LAUNCH_DMA_REDUCTION_OP_RED_OR 0x00000006
162 #define NVA140_LAUNCH_DMA_REDUCTION_OP_RED_XOR 0x00000007
163 #define NVA140_LAUNCH_DMA_REDUCTION_FORMAT 3:2
164 #define NVA140_LAUNCH_DMA_REDUCTION_FORMAT_UNSIGNED_32 0x00000000
165 #define NVA140_LAUNCH_DMA_REDUCTION_FORMAT_SIGNED_32 0x00000001
166 #define NVA140_LAUNCH_DMA_SYSMEMBAR_DISABLE 6:6
167 #define NVA140_LAUNCH_DMA_SYSMEMBAR_DISABLE_FALSE 0x00000000
168 #define NVA140_LAUNCH_DMA_SYSMEMBAR_DISABLE_TRUE 0x00000001
169
170 #define NVA140_LOAD_INLINE_DATA 0x01b4
171 #define NVA140_LOAD_INLINE_DATA_V 31:0
172
173 #define NVA140_SET_I2M_SEMAPHORE_A 0x01dc
174 #define NVA140_SET_I2M_SEMAPHORE_A_OFFSET_UPPER 24:0
175
176 #define NVA140_SET_I2M_SEMAPHORE_B 0x01e0
177 #define NVA140_SET_I2M_SEMAPHORE_B_OFFSET_LOWER 31:0
178
179 #define NVA140_SET_I2M_SEMAPHORE_C 0x01e4
180 #define NVA140_SET_I2M_SEMAPHORE_C_PAYLOAD 31:0
181
182 #define NVA140_SET_I2M_SPARE_NOOP00 0x01f0
183 #define NVA140_SET_I2M_SPARE_NOOP00_V 31:0
184
185 #define NVA140_SET_I2M_SPARE_NOOP01 0x01f4
186 #define NVA140_SET_I2M_SPARE_NOOP01_V 31:0
187
188 #define NVA140_SET_I2M_SPARE_NOOP02 0x01f8
189 #define NVA140_SET_I2M_SPARE_NOOP02_V 31:0
190
191 #define NVA140_SET_I2M_SPARE_NOOP03 0x01fc
192 #define NVA140_SET_I2M_SPARE_NOOP03_V 31:0
193
194 #define NVA140_SET_FALCON00 0x0200
195 #define NVA140_SET_FALCON00_V 31:0
196
197 #define NVA140_SET_FALCON01 0x0204
198 #define NVA140_SET_FALCON01_V 31:0
199
200 #define NVA140_SET_FALCON02 0x0208
201 #define NVA140_SET_FALCON02_V 31:0
202
203 #define NVA140_SET_FALCON03 0x020c
204 #define NVA140_SET_FALCON03_V 31:0
205
206 #define NVA140_SET_FALCON04 0x0210
207 #define NVA140_SET_FALCON04_V 31:0
208
209 #define NVA140_SET_FALCON05 0x0214
210 #define NVA140_SET_FALCON05_V 31:0
211
212 #define NVA140_SET_FALCON06 0x0218
213 #define NVA140_SET_FALCON06_V 31:0
214
215 #define NVA140_SET_FALCON07 0x021c
216 #define NVA140_SET_FALCON07_V 31:0
217
218 #define NVA140_SET_FALCON08 0x0220
219 #define NVA140_SET_FALCON08_V 31:0
220
221 #define NVA140_SET_FALCON09 0x0224
222 #define NVA140_SET_FALCON09_V 31:0
223
224 #define NVA140_SET_FALCON10 0x0228
225 #define NVA140_SET_FALCON10_V 31:0
226
227 #define NVA140_SET_FALCON11 0x022c
228 #define NVA140_SET_FALCON11_V 31:0
229
230 #define NVA140_SET_FALCON12 0x0230
231 #define NVA140_SET_FALCON12_V 31:0
232
233 #define NVA140_SET_FALCON13 0x0234
234 #define NVA140_SET_FALCON13_V 31:0
235
236 #define NVA140_SET_FALCON14 0x0238
237 #define NVA140_SET_FALCON14_V 31:0
238
239 #define NVA140_SET_FALCON15 0x023c
240 #define NVA140_SET_FALCON15_V 31:0
241
242 #define NVA140_SET_FALCON16 0x0240
243 #define NVA140_SET_FALCON16_V 31:0
244
245 #define NVA140_SET_FALCON17 0x0244
246 #define NVA140_SET_FALCON17_V 31:0
247
248 #define NVA140_SET_FALCON18 0x0248
249 #define NVA140_SET_FALCON18_V 31:0
250
251 #define NVA140_SET_FALCON19 0x024c
252 #define NVA140_SET_FALCON19_V 31:0
253
254 #define NVA140_SET_FALCON20 0x0250
255 #define NVA140_SET_FALCON20_V 31:0
256
257 #define NVA140_SET_FALCON21 0x0254
258 #define NVA140_SET_FALCON21_V 31:0
259
260 #define NVA140_SET_FALCON22 0x0258
261 #define NVA140_SET_FALCON22_V 31:0
262
263 #define NVA140_SET_FALCON23 0x025c
264 #define NVA140_SET_FALCON23_V 31:0
265
266 #define NVA140_SET_FALCON24 0x0260
267 #define NVA140_SET_FALCON24_V 31:0
268
269 #define NVA140_SET_FALCON25 0x0264
270 #define NVA140_SET_FALCON25_V 31:0
271
272 #define NVA140_SET_FALCON26 0x0268
273 #define NVA140_SET_FALCON26_V 31:0
274
275 #define NVA140_SET_FALCON27 0x026c
276 #define NVA140_SET_FALCON27_V 31:0
277
278 #define NVA140_SET_FALCON28 0x0270
279 #define NVA140_SET_FALCON28_V 31:0
280
281 #define NVA140_SET_FALCON29 0x0274
282 #define NVA140_SET_FALCON29_V 31:0
283
284 #define NVA140_SET_FALCON30 0x0278
285 #define NVA140_SET_FALCON30_V 31:0
286
287 #define NVA140_SET_FALCON31 0x027c
288 #define NVA140_SET_FALCON31_V 31:0
289
290 #define NVA140_SET_RENDER_ENABLE_A 0x1550
291 #define NVA140_SET_RENDER_ENABLE_A_OFFSET_UPPER 7:0
292
293 #define NVA140_SET_RENDER_ENABLE_B 0x1554
294 #define NVA140_SET_RENDER_ENABLE_B_OFFSET_LOWER 31:0
295
296 #define NVA140_SET_RENDER_ENABLE_C 0x1558
297 #define NVA140_SET_RENDER_ENABLE_C_MODE 2:0
298 #define NVA140_SET_RENDER_ENABLE_C_MODE_FALSE 0x00000000
299 #define NVA140_SET_RENDER_ENABLE_C_MODE_TRUE 0x00000001
300 #define NVA140_SET_RENDER_ENABLE_C_MODE_CONDITIONAL 0x00000002
301 #define NVA140_SET_RENDER_ENABLE_C_MODE_RENDER_IF_EQUAL 0x00000003
302 #define NVA140_SET_RENDER_ENABLE_C_MODE_RENDER_IF_NOT_EQUAL 0x00000004
303
304 #define NVA140_SET_RENDER_ENABLE_OVERRIDE 0x1944
305 #define NVA140_SET_RENDER_ENABLE_OVERRIDE_MODE 1:0
306 #define NVA140_SET_RENDER_ENABLE_OVERRIDE_MODE_USE_RENDER_ENABLE 0x00000000
307 #define NVA140_SET_RENDER_ENABLE_OVERRIDE_MODE_ALWAYS_RENDER 0x00000001
308 #define NVA140_SET_RENDER_ENABLE_OVERRIDE_MODE_NEVER_RENDER 0x00000002
309
310 #define NVA140_SET_MME_SHADOW_SCRATCH(i) (0x3400+(i)*4)
311 #define NVA140_SET_MME_SHADOW_SCRATCH_V 31:0
312
313 #endif /* _cl_kepler_inline_to_memory_b_h_ */