diff options
Diffstat (limited to 'include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h')
-rw-r--r-- | include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h | 491 |
1 files changed, 0 insertions, 491 deletions
diff --git a/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h b/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h deleted file mode 100644 index d83320f..0000000 --- a/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h +++ /dev/null | |||
@@ -1,491 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | * copy of this software and associated documentation files (the "Software"), | ||
6 | * to deal in the Software without restriction, including without limitation | ||
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | * and/or sell copies of the Software, and to permit persons to whom the | ||
9 | * Software is furnished to do so, subject to the following conditions: | ||
10 | * | ||
11 | * The above copyright notice and this permission notice shall be included in | ||
12 | * all copies or substantial portions of the Software. | ||
13 | * | ||
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
20 | * DEALINGS IN THE SOFTWARE. | ||
21 | */ | ||
22 | /* | ||
23 | * Function naming determines intended use: | ||
24 | * | ||
25 | * <x>_r(void) : Returns the offset for register <x>. | ||
26 | * | ||
27 | * <x>_o(void) : Returns the offset for element <x>. | ||
28 | * | ||
29 | * <x>_w(void) : Returns the word offset for word (4 byte) element <x>. | ||
30 | * | ||
31 | * <x>_<y>_s(void) : Returns size of field <y> of register <x> in bits. | ||
32 | * | ||
33 | * <x>_<y>_f(u32 v) : Returns a value based on 'v' which has been shifted | ||
34 | * and masked to place it at field <y> of register <x>. This value | ||
35 | * can be |'d with others to produce a full register value for | ||
36 | * register <x>. | ||
37 | * | ||
38 | * <x>_<y>_m(void) : Returns a mask for field <y> of register <x>. This | ||
39 | * value can be ~'d and then &'d to clear the value of field <y> for | ||
40 | * register <x>. | ||
41 | * | ||
42 | * <x>_<y>_<z>_f(void) : Returns the constant value <z> after being shifted | ||
43 | * to place it at field <y> of register <x>. This value can be |'d | ||
44 | * with others to produce a full register value for <x>. | ||
45 | * | ||
46 | * <x>_<y>_v(u32 r) : Returns the value of field <y> from a full register | ||
47 | * <x> value 'r' after being shifted to place its LSB at bit 0. | ||
48 | * This value is suitable for direct comparison with other unshifted | ||
49 | * values appropriate for use in field <y> of register <x>. | ||
50 | * | ||
51 | * <x>_<y>_<z>_v(void) : Returns the constant value for <z> defined for | ||
52 | * field <y> of register <x>. This value is suitable for direct | ||
53 | * comparison with unshifted values appropriate for use in field <y> | ||
54 | * of register <x>. | ||
55 | */ | ||
56 | #ifndef _hw_ctxsw_prog_gp10b_h_ | ||
57 | #define _hw_ctxsw_prog_gp10b_h_ | ||
58 | |||
59 | static inline u32 ctxsw_prog_fecs_header_v(void) | ||
60 | { | ||
61 | return 0x00000100U; | ||
62 | } | ||
63 | static inline u32 ctxsw_prog_main_image_num_gpcs_o(void) | ||
64 | { | ||
65 | return 0x00000008U; | ||
66 | } | ||
67 | static inline u32 ctxsw_prog_main_image_patch_count_o(void) | ||
68 | { | ||
69 | return 0x00000010U; | ||
70 | } | ||
71 | static inline u32 ctxsw_prog_main_image_context_id_o(void) | ||
72 | { | ||
73 | return 0x000000f0U; | ||
74 | } | ||
75 | static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void) | ||
76 | { | ||
77 | return 0x00000014U; | ||
78 | } | ||
79 | static inline u32 ctxsw_prog_main_image_patch_adr_hi_o(void) | ||
80 | { | ||
81 | return 0x00000018U; | ||
82 | } | ||
83 | static inline u32 ctxsw_prog_main_image_zcull_o(void) | ||
84 | { | ||
85 | return 0x0000001cU; | ||
86 | } | ||
87 | static inline u32 ctxsw_prog_main_image_zcull_mode_no_ctxsw_v(void) | ||
88 | { | ||
89 | return 0x00000001U; | ||
90 | } | ||
91 | static inline u32 ctxsw_prog_main_image_zcull_mode_separate_buffer_v(void) | ||
92 | { | ||
93 | return 0x00000002U; | ||
94 | } | ||
95 | static inline u32 ctxsw_prog_main_image_zcull_ptr_o(void) | ||
96 | { | ||
97 | return 0x00000020U; | ||
98 | } | ||
99 | static inline u32 ctxsw_prog_main_image_pm_o(void) | ||
100 | { | ||
101 | return 0x00000028U; | ||
102 | } | ||
103 | static inline u32 ctxsw_prog_main_image_pm_mode_m(void) | ||
104 | { | ||
105 | return 0x7U << 0U; | ||
106 | } | ||
107 | static inline u32 ctxsw_prog_main_image_pm_mode_ctxsw_f(void) | ||
108 | { | ||
109 | return 0x1U; | ||
110 | } | ||
111 | static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void) | ||
112 | { | ||
113 | return 0x0U; | ||
114 | } | ||
115 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void) | ||
116 | { | ||
117 | return 0x7U << 3U; | ||
118 | } | ||
119 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void) | ||
120 | { | ||
121 | return 0x8U; | ||
122 | } | ||
123 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void) | ||
124 | { | ||
125 | return 0x0U; | ||
126 | } | ||
127 | static inline u32 ctxsw_prog_main_image_pm_ptr_o(void) | ||
128 | { | ||
129 | return 0x0000002cU; | ||
130 | } | ||
131 | static inline u32 ctxsw_prog_main_image_num_save_ops_o(void) | ||
132 | { | ||
133 | return 0x000000f4U; | ||
134 | } | ||
135 | static inline u32 ctxsw_prog_main_image_num_wfi_save_ops_o(void) | ||
136 | { | ||
137 | return 0x000000d0U; | ||
138 | } | ||
139 | static inline u32 ctxsw_prog_main_image_num_cta_save_ops_o(void) | ||
140 | { | ||
141 | return 0x000000d4U; | ||
142 | } | ||
143 | static inline u32 ctxsw_prog_main_image_num_gfxp_save_ops_o(void) | ||
144 | { | ||
145 | return 0x000000d8U; | ||
146 | } | ||
147 | static inline u32 ctxsw_prog_main_image_num_cilp_save_ops_o(void) | ||
148 | { | ||
149 | return 0x000000dcU; | ||
150 | } | ||
151 | static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void) | ||
152 | { | ||
153 | return 0x000000f8U; | ||
154 | } | ||
155 | static inline u32 ctxsw_prog_main_image_magic_value_o(void) | ||
156 | { | ||
157 | return 0x000000fcU; | ||
158 | } | ||
159 | static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void) | ||
160 | { | ||
161 | return 0x600dc0deU; | ||
162 | } | ||
163 | static inline u32 ctxsw_prog_local_priv_register_ctl_o(void) | ||
164 | { | ||
165 | return 0x0000000cU; | ||
166 | } | ||
167 | static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r) | ||
168 | { | ||
169 | return (r >> 0U) & 0xffffU; | ||
170 | } | ||
171 | static inline u32 ctxsw_prog_local_image_ppc_info_o(void) | ||
172 | { | ||
173 | return 0x000000f4U; | ||
174 | } | ||
175 | static inline u32 ctxsw_prog_local_image_ppc_info_num_ppcs_v(u32 r) | ||
176 | { | ||
177 | return (r >> 0U) & 0xffffU; | ||
178 | } | ||
179 | static inline u32 ctxsw_prog_local_image_ppc_info_ppc_mask_v(u32 r) | ||
180 | { | ||
181 | return (r >> 16U) & 0xffffU; | ||
182 | } | ||
183 | static inline u32 ctxsw_prog_local_image_num_tpcs_o(void) | ||
184 | { | ||
185 | return 0x000000f8U; | ||
186 | } | ||
187 | static inline u32 ctxsw_prog_local_magic_value_o(void) | ||
188 | { | ||
189 | return 0x000000fcU; | ||
190 | } | ||
191 | static inline u32 ctxsw_prog_local_magic_value_v_value_v(void) | ||
192 | { | ||
193 | return 0xad0becabU; | ||
194 | } | ||
195 | static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void) | ||
196 | { | ||
197 | return 0x000000ecU; | ||
198 | } | ||
199 | static inline u32 ctxsw_prog_main_extended_buffer_ctl_offset_v(u32 r) | ||
200 | { | ||
201 | return (r >> 0U) & 0xffffU; | ||
202 | } | ||
203 | static inline u32 ctxsw_prog_main_extended_buffer_ctl_size_v(u32 r) | ||
204 | { | ||
205 | return (r >> 16U) & 0xffU; | ||
206 | } | ||
207 | static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void) | ||
208 | { | ||
209 | return 0x00000100U; | ||
210 | } | ||
211 | static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void) | ||
212 | { | ||
213 | return 0x00000004U; | ||
214 | } | ||
215 | static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void) | ||
216 | { | ||
217 | return 0x00000000U; | ||
218 | } | ||
219 | static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void) | ||
220 | { | ||
221 | return 0x00000002U; | ||
222 | } | ||
223 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void) | ||
224 | { | ||
225 | return 0x000000a0U; | ||
226 | } | ||
227 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void) | ||
228 | { | ||
229 | return 2U; | ||
230 | } | ||
231 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v) | ||
232 | { | ||
233 | return (v & 0x3U) << 0U; | ||
234 | } | ||
235 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void) | ||
236 | { | ||
237 | return 0x3U << 0U; | ||
238 | } | ||
239 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r) | ||
240 | { | ||
241 | return (r >> 0U) & 0x3U; | ||
242 | } | ||
243 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void) | ||
244 | { | ||
245 | return 0x0U; | ||
246 | } | ||
247 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void) | ||
248 | { | ||
249 | return 0x2U; | ||
250 | } | ||
251 | static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void) | ||
252 | { | ||
253 | return 0x000000a4U; | ||
254 | } | ||
255 | static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void) | ||
256 | { | ||
257 | return 0x000000a8U; | ||
258 | } | ||
259 | static inline u32 ctxsw_prog_main_image_misc_options_o(void) | ||
260 | { | ||
261 | return 0x0000003cU; | ||
262 | } | ||
263 | static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void) | ||
264 | { | ||
265 | return 0x1U << 3U; | ||
266 | } | ||
267 | static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void) | ||
268 | { | ||
269 | return 0x0U; | ||
270 | } | ||
271 | static inline u32 ctxsw_prog_main_image_pmu_options_o(void) | ||
272 | { | ||
273 | return 0x00000070U; | ||
274 | } | ||
275 | static inline u32 ctxsw_prog_main_image_pmu_options_boost_clock_frequencies_f(u32 v) | ||
276 | { | ||
277 | return (v & 0x1U) << 0U; | ||
278 | } | ||
279 | static inline u32 ctxsw_prog_main_image_graphics_preemption_options_o(void) | ||
280 | { | ||
281 | return 0x00000080U; | ||
282 | } | ||
283 | static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_f(u32 v) | ||
284 | { | ||
285 | return (v & 0x3U) << 0U; | ||
286 | } | ||
287 | static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_gfxp_f(void) | ||
288 | { | ||
289 | return 0x1U; | ||
290 | } | ||
291 | static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void) | ||
292 | { | ||
293 | return 0x00000068U; | ||
294 | } | ||
295 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void) | ||
296 | { | ||
297 | return 0x00000084U; | ||
298 | } | ||
299 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_f(u32 v) | ||
300 | { | ||
301 | return (v & 0x3U) << 0U; | ||
302 | } | ||
303 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cta_f(void) | ||
304 | { | ||
305 | return 0x1U; | ||
306 | } | ||
307 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cilp_f(void) | ||
308 | { | ||
309 | return 0x2U; | ||
310 | } | ||
311 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_o(void) | ||
312 | { | ||
313 | return 0x000000acU; | ||
314 | } | ||
315 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_num_records_f(u32 v) | ||
316 | { | ||
317 | return (v & 0xffffU) << 0U; | ||
318 | } | ||
319 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(void) | ||
320 | { | ||
321 | return 0x000000b0U; | ||
322 | } | ||
323 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_v_m(void) | ||
324 | { | ||
325 | return 0xfffffffU << 0U; | ||
326 | } | ||
327 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_m(void) | ||
328 | { | ||
329 | return 0x3U << 28U; | ||
330 | } | ||
331 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_vid_mem_f(void) | ||
332 | { | ||
333 | return 0x0U; | ||
334 | } | ||
335 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_coherent_f(void) | ||
336 | { | ||
337 | return 0x20000000U; | ||
338 | } | ||
339 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_noncoherent_f(void) | ||
340 | { | ||
341 | return 0x30000000U; | ||
342 | } | ||
343 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(void) | ||
344 | { | ||
345 | return 0x000000b4U; | ||
346 | } | ||
347 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_v_f(u32 v) | ||
348 | { | ||
349 | return (v & 0xffffffffU) << 0U; | ||
350 | } | ||
351 | static inline u32 ctxsw_prog_record_timestamp_record_size_in_bytes_v(void) | ||
352 | { | ||
353 | return 0x00000080U; | ||
354 | } | ||
355 | static inline u32 ctxsw_prog_record_timestamp_record_size_in_words_v(void) | ||
356 | { | ||
357 | return 0x00000020U; | ||
358 | } | ||
359 | static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_o(void) | ||
360 | { | ||
361 | return 0x00000000U; | ||
362 | } | ||
363 | static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_v_value_v(void) | ||
364 | { | ||
365 | return 0x00000000U; | ||
366 | } | ||
367 | static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_o(void) | ||
368 | { | ||
369 | return 0x00000004U; | ||
370 | } | ||
371 | static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_v_value_v(void) | ||
372 | { | ||
373 | return 0x600dbeefU; | ||
374 | } | ||
375 | static inline u32 ctxsw_prog_record_timestamp_context_id_o(void) | ||
376 | { | ||
377 | return 0x00000008U; | ||
378 | } | ||
379 | static inline u32 ctxsw_prog_record_timestamp_context_ptr_o(void) | ||
380 | { | ||
381 | return 0x0000000cU; | ||
382 | } | ||
383 | static inline u32 ctxsw_prog_record_timestamp_timestamp_lo_o(void) | ||
384 | { | ||
385 | return 0x00000018U; | ||
386 | } | ||
387 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_o(void) | ||
388 | { | ||
389 | return 0x0000001cU; | ||
390 | } | ||
391 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_f(u32 v) | ||
392 | { | ||
393 | return (v & 0xffffffU) << 0U; | ||
394 | } | ||
395 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_v(u32 r) | ||
396 | { | ||
397 | return (r >> 0U) & 0xffffffU; | ||
398 | } | ||
399 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_f(u32 v) | ||
400 | { | ||
401 | return (v & 0xffU) << 24U; | ||
402 | } | ||
403 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_m(void) | ||
404 | { | ||
405 | return 0xffU << 24U; | ||
406 | } | ||
407 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_v(u32 r) | ||
408 | { | ||
409 | return (r >> 24U) & 0xffU; | ||
410 | } | ||
411 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_v(void) | ||
412 | { | ||
413 | return 0x00000001U; | ||
414 | } | ||
415 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_f(void) | ||
416 | { | ||
417 | return 0x1000000U; | ||
418 | } | ||
419 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_v(void) | ||
420 | { | ||
421 | return 0x00000002U; | ||
422 | } | ||
423 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_f(void) | ||
424 | { | ||
425 | return 0x2000000U; | ||
426 | } | ||
427 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_v(void) | ||
428 | { | ||
429 | return 0x0000000aU; | ||
430 | } | ||
431 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_f(void) | ||
432 | { | ||
433 | return 0xa000000U; | ||
434 | } | ||
435 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_v(void) | ||
436 | { | ||
437 | return 0x0000000bU; | ||
438 | } | ||
439 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_f(void) | ||
440 | { | ||
441 | return 0xb000000U; | ||
442 | } | ||
443 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_v(void) | ||
444 | { | ||
445 | return 0x0000000cU; | ||
446 | } | ||
447 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_f(void) | ||
448 | { | ||
449 | return 0xc000000U; | ||
450 | } | ||
451 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_v(void) | ||
452 | { | ||
453 | return 0x0000000dU; | ||
454 | } | ||
455 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_f(void) | ||
456 | { | ||
457 | return 0xd000000U; | ||
458 | } | ||
459 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_v(void) | ||
460 | { | ||
461 | return 0x00000003U; | ||
462 | } | ||
463 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_f(void) | ||
464 | { | ||
465 | return 0x3000000U; | ||
466 | } | ||
467 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_v(void) | ||
468 | { | ||
469 | return 0x00000004U; | ||
470 | } | ||
471 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_f(void) | ||
472 | { | ||
473 | return 0x4000000U; | ||
474 | } | ||
475 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_v(void) | ||
476 | { | ||
477 | return 0x00000005U; | ||
478 | } | ||
479 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_f(void) | ||
480 | { | ||
481 | return 0x5000000U; | ||
482 | } | ||
483 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_v(void) | ||
484 | { | ||
485 | return 0x000000ffU; | ||
486 | } | ||
487 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_f(void) | ||
488 | { | ||
489 | return 0xff000000U; | ||
490 | } | ||
491 | #endif | ||