aboutsummaryrefslogtreecommitdiffstats
path: root/include/nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h
diff options
context:
space:
mode:
authorJoshua Bakita <bakitajoshua@gmail.com>2024-09-25 16:09:09 -0400
committerJoshua Bakita <bakitajoshua@gmail.com>2024-09-25 16:09:09 -0400
commitf347fde22f1297e4f022600d201780d5ead78114 (patch)
tree76be305d6187003a1e0486ff6e91efb1062ae118 /include/nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h
parent8340d234d78a7d0f46c11a584de538148b78b7cb (diff)
Delete no-longer-needed nvgpu headersHEADmasterjbakita-wip
The dependency on these was removed in commit 8340d234.
Diffstat (limited to 'include/nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h')
-rw-r--r--include/nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h459
1 files changed, 0 insertions, 459 deletions
diff --git a/include/nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h b/include/nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h
deleted file mode 100644
index b7f3df2..0000000
--- a/include/nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h
+++ /dev/null
@@ -1,459 +0,0 @@
1/*
2 * Copyright (c) 2017-2018, 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_gv100_h_
57#define _hw_ctxsw_prog_gv100_h_
58
59static inline u32 ctxsw_prog_fecs_header_v(void)
60{
61 return 0x00000100U;
62}
63static inline u32 ctxsw_prog_main_image_num_gpcs_o(void)
64{
65 return 0x00000008U;
66}
67static inline u32 ctxsw_prog_main_image_ctl_o(void)
68{
69 return 0x0000000cU;
70}
71static inline u32 ctxsw_prog_main_image_ctl_type_f(u32 v)
72{
73 return (v & 0x3fU) << 0U;
74}
75static inline u32 ctxsw_prog_main_image_ctl_type_undefined_v(void)
76{
77 return 0x00000000U;
78}
79static inline u32 ctxsw_prog_main_image_ctl_type_opengl_v(void)
80{
81 return 0x00000008U;
82}
83static inline u32 ctxsw_prog_main_image_ctl_type_dx9_v(void)
84{
85 return 0x00000010U;
86}
87static inline u32 ctxsw_prog_main_image_ctl_type_dx10_v(void)
88{
89 return 0x00000011U;
90}
91static inline u32 ctxsw_prog_main_image_ctl_type_dx11_v(void)
92{
93 return 0x00000012U;
94}
95static inline u32 ctxsw_prog_main_image_ctl_type_compute_v(void)
96{
97 return 0x00000020U;
98}
99static inline u32 ctxsw_prog_main_image_ctl_type_per_veid_header_v(void)
100{
101 return 0x00000021U;
102}
103static inline u32 ctxsw_prog_main_image_patch_count_o(void)
104{
105 return 0x00000010U;
106}
107static inline u32 ctxsw_prog_main_image_context_id_o(void)
108{
109 return 0x000000f0U;
110}
111static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void)
112{
113 return 0x00000014U;
114}
115static inline u32 ctxsw_prog_main_image_patch_adr_hi_o(void)
116{
117 return 0x00000018U;
118}
119static inline u32 ctxsw_prog_main_image_zcull_o(void)
120{
121 return 0x0000001cU;
122}
123static inline u32 ctxsw_prog_main_image_zcull_mode_no_ctxsw_v(void)
124{
125 return 0x00000001U;
126}
127static inline u32 ctxsw_prog_main_image_zcull_mode_separate_buffer_v(void)
128{
129 return 0x00000002U;
130}
131static inline u32 ctxsw_prog_main_image_zcull_ptr_o(void)
132{
133 return 0x00000020U;
134}
135static inline u32 ctxsw_prog_main_image_pm_o(void)
136{
137 return 0x00000028U;
138}
139static inline u32 ctxsw_prog_main_image_pm_mode_m(void)
140{
141 return 0x7U << 0U;
142}
143static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void)
144{
145 return 0x0U;
146}
147static inline u32 ctxsw_prog_main_image_pm_mode_stream_out_ctxsw_f(void)
148{
149 return 0x2U;
150}
151static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void)
152{
153 return 0x7U << 3U;
154}
155static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void)
156{
157 return 0x8U;
158}
159static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void)
160{
161 return 0x0U;
162}
163static inline u32 ctxsw_prog_main_image_pm_ptr_o(void)
164{
165 return 0x0000002cU;
166}
167static inline u32 ctxsw_prog_main_image_num_save_ops_o(void)
168{
169 return 0x000000f4U;
170}
171static inline u32 ctxsw_prog_main_image_num_wfi_save_ops_o(void)
172{
173 return 0x000000d0U;
174}
175static inline u32 ctxsw_prog_main_image_num_cta_save_ops_o(void)
176{
177 return 0x000000d4U;
178}
179static inline u32 ctxsw_prog_main_image_num_gfxp_save_ops_o(void)
180{
181 return 0x000000d8U;
182}
183static inline u32 ctxsw_prog_main_image_num_cilp_save_ops_o(void)
184{
185 return 0x000000dcU;
186}
187static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void)
188{
189 return 0x000000f8U;
190}
191static inline u32 ctxsw_prog_main_image_zcull_ptr_hi_o(void)
192{
193 return 0x00000060U;
194}
195static inline u32 ctxsw_prog_main_image_zcull_ptr_hi_v_f(u32 v)
196{
197 return (v & 0x1ffffU) << 0U;
198}
199static inline u32 ctxsw_prog_main_image_pm_ptr_hi_o(void)
200{
201 return 0x00000094U;
202}
203static inline u32 ctxsw_prog_main_image_full_preemption_ptr_hi_o(void)
204{
205 return 0x00000064U;
206}
207static inline u32 ctxsw_prog_main_image_full_preemption_ptr_hi_v_f(u32 v)
208{
209 return (v & 0x1ffffU) << 0U;
210}
211static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void)
212{
213 return 0x00000068U;
214}
215static inline u32 ctxsw_prog_main_image_full_preemption_ptr_v_f(u32 v)
216{
217 return (v & 0xffffffffU) << 0U;
218}
219static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_hi_o(void)
220{
221 return 0x00000070U;
222}
223static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_hi_v_f(u32 v)
224{
225 return (v & 0x1ffffU) << 0U;
226}
227static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_o(void)
228{
229 return 0x00000074U;
230}
231static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_v_f(u32 v)
232{
233 return (v & 0xffffffffU) << 0U;
234}
235static inline u32 ctxsw_prog_main_image_context_buffer_ptr_hi_o(void)
236{
237 return 0x00000078U;
238}
239static inline u32 ctxsw_prog_main_image_context_buffer_ptr_hi_v_f(u32 v)
240{
241 return (v & 0x1ffffU) << 0U;
242}
243static inline u32 ctxsw_prog_main_image_context_buffer_ptr_o(void)
244{
245 return 0x0000007cU;
246}
247static inline u32 ctxsw_prog_main_image_context_buffer_ptr_v_f(u32 v)
248{
249 return (v & 0xffffffffU) << 0U;
250}
251static inline u32 ctxsw_prog_main_image_magic_value_o(void)
252{
253 return 0x000000fcU;
254}
255static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void)
256{
257 return 0x600dc0deU;
258}
259static inline u32 ctxsw_prog_local_priv_register_ctl_o(void)
260{
261 return 0x0000000cU;
262}
263static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r)
264{
265 return (r >> 0U) & 0xffffU;
266}
267static inline u32 ctxsw_prog_main_image_global_cb_ptr_o(void)
268{
269 return 0x000000b8U;
270}
271static inline u32 ctxsw_prog_main_image_global_cb_ptr_v_f(u32 v)
272{
273 return (v & 0xffffffffU) << 0U;
274}
275static inline u32 ctxsw_prog_main_image_global_cb_ptr_hi_o(void)
276{
277 return 0x000000bcU;
278}
279static inline u32 ctxsw_prog_main_image_global_cb_ptr_hi_v_f(u32 v)
280{
281 return (v & 0x1ffffU) << 0U;
282}
283static inline u32 ctxsw_prog_main_image_global_pagepool_ptr_o(void)
284{
285 return 0x000000c0U;
286}
287static inline u32 ctxsw_prog_main_image_global_pagepool_ptr_v_f(u32 v)
288{
289 return (v & 0xffffffffU) << 0U;
290}
291static inline u32 ctxsw_prog_main_image_global_pagepool_ptr_hi_o(void)
292{
293 return 0x000000c4U;
294}
295static inline u32 ctxsw_prog_main_image_global_pagepool_ptr_hi_v_f(u32 v)
296{
297 return (v & 0x1ffffU) << 0U;
298}
299static inline u32 ctxsw_prog_main_image_control_block_ptr_o(void)
300{
301 return 0x000000c8U;
302}
303static inline u32 ctxsw_prog_main_image_control_block_ptr_v_f(u32 v)
304{
305 return (v & 0xffffffffU) << 0U;
306}
307static inline u32 ctxsw_prog_main_image_control_block_ptr_hi_o(void)
308{
309 return 0x000000ccU;
310}
311static inline u32 ctxsw_prog_main_image_control_block_ptr_hi_v_f(u32 v)
312{
313 return (v & 0x1ffffU) << 0U;
314}
315static inline u32 ctxsw_prog_main_image_context_ramchain_buffer_addr_lo_o(void)
316{
317 return 0x000000e0U;
318}
319static inline u32 ctxsw_prog_main_image_context_ramchain_buffer_addr_lo_v_f(u32 v)
320{
321 return (v & 0xffffffffU) << 0U;
322}
323static inline u32 ctxsw_prog_main_image_context_ramchain_buffer_addr_hi_o(void)
324{
325 return 0x000000e4U;
326}
327static inline u32 ctxsw_prog_main_image_context_ramchain_buffer_addr_hi_v_f(u32 v)
328{
329 return (v & 0x1ffffU) << 0U;
330}
331static inline u32 ctxsw_prog_local_image_ppc_info_o(void)
332{
333 return 0x000000f4U;
334}
335static inline u32 ctxsw_prog_local_image_ppc_info_num_ppcs_v(u32 r)
336{
337 return (r >> 0U) & 0xffffU;
338}
339static inline u32 ctxsw_prog_local_image_ppc_info_ppc_mask_v(u32 r)
340{
341 return (r >> 16U) & 0xffffU;
342}
343static inline u32 ctxsw_prog_local_image_num_tpcs_o(void)
344{
345 return 0x000000f8U;
346}
347static inline u32 ctxsw_prog_local_magic_value_o(void)
348{
349 return 0x000000fcU;
350}
351static inline u32 ctxsw_prog_local_magic_value_v_value_v(void)
352{
353 return 0xad0becabU;
354}
355static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void)
356{
357 return 0x000000ecU;
358}
359static inline u32 ctxsw_prog_main_extended_buffer_ctl_offset_v(u32 r)
360{
361 return (r >> 0U) & 0xffffU;
362}
363static inline u32 ctxsw_prog_main_extended_buffer_ctl_size_v(u32 r)
364{
365 return (r >> 16U) & 0xffU;
366}
367static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void)
368{
369 return 0x00000100U;
370}
371static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void)
372{
373 return 0x00000004U;
374}
375static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void)
376{
377 return 0x00000000U;
378}
379static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void)
380{
381 return 0x00000002U;
382}
383static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void)
384{
385 return 0x000000a0U;
386}
387static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void)
388{
389 return 2U;
390}
391static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v)
392{
393 return (v & 0x3U) << 0U;
394}
395static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void)
396{
397 return 0x3U << 0U;
398}
399static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r)
400{
401 return (r >> 0U) & 0x3U;
402}
403static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void)
404{
405 return 0x0U;
406}
407static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void)
408{
409 return 0x2U;
410}
411static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void)
412{
413 return 0x000000a4U;
414}
415static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void)
416{
417 return 0x000000a8U;
418}
419static inline u32 ctxsw_prog_main_image_misc_options_o(void)
420{
421 return 0x0000003cU;
422}
423static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void)
424{
425 return 0x1U << 3U;
426}
427static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void)
428{
429 return 0x0U;
430}
431static inline u32 ctxsw_prog_main_image_graphics_preemption_options_o(void)
432{
433 return 0x00000080U;
434}
435static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_f(u32 v)
436{
437 return (v & 0x3U) << 0U;
438}
439static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_gfxp_f(void)
440{
441 return 0x1U;
442}
443static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void)
444{
445 return 0x00000084U;
446}
447static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_f(u32 v)
448{
449 return (v & 0x3U) << 0U;
450}
451static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cta_f(void)
452{
453 return 0x1U;
454}
455static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cilp_f(void)
456{
457 return 0x2U;
458}
459#endif