aboutsummaryrefslogtreecommitdiffstats
path: root/include/nvgpu/hw
diff options
context:
space:
mode:
Diffstat (limited to 'include/nvgpu/hw')
-rw-r--r--include/nvgpu/hw/gk20a/hw_bus_gk20a.h171
-rw-r--r--include/nvgpu/hw/gk20a/hw_ccsr_gk20a.h163
-rw-r--r--include/nvgpu/hw/gk20a/hw_ce2_gk20a.h87
-rw-r--r--include/nvgpu/hw/gk20a/hw_ctxsw_prog_gk20a.h447
-rw-r--r--include/nvgpu/hw/gk20a/hw_falcon_gk20a.h559
-rw-r--r--include/nvgpu/hw/gk20a/hw_fb_gk20a.h263
-rw-r--r--include/nvgpu/hw/gk20a/hw_fifo_gk20a.h619
-rw-r--r--include/nvgpu/hw/gk20a/hw_flush_gk20a.h187
-rw-r--r--include/nvgpu/hw/gk20a/hw_gmmu_gk20a.h283
-rw-r--r--include/nvgpu/hw/gk20a/hw_gr_gk20a.h3807
-rw-r--r--include/nvgpu/hw/gk20a/hw_ltc_gk20a.h455
-rw-r--r--include/nvgpu/hw/gk20a/hw_mc_gk20a.h291
-rw-r--r--include/nvgpu/hw/gk20a/hw_pbdma_gk20a.h575
-rw-r--r--include/nvgpu/hw/gk20a/hw_perf_gk20a.h211
-rw-r--r--include/nvgpu/hw/gk20a/hw_pram_gk20a.h63
-rw-r--r--include/nvgpu/hw/gk20a/hw_pri_ringmaster_gk20a.h159
-rw-r--r--include/nvgpu/hw/gk20a/hw_pri_ringstation_fbp_gk20a.h231
-rw-r--r--include/nvgpu/hw/gk20a/hw_pri_ringstation_gpc_gk20a.h79
-rw-r--r--include/nvgpu/hw/gk20a/hw_pri_ringstation_sys_gk20a.h91
-rw-r--r--include/nvgpu/hw/gk20a/hw_proj_gk20a.h167
-rw-r--r--include/nvgpu/hw/gk20a/hw_pwr_gk20a.h827
-rw-r--r--include/nvgpu/hw/gk20a/hw_ram_gk20a.h443
-rw-r--r--include/nvgpu/hw/gk20a/hw_therm_gk20a.h367
-rw-r--r--include/nvgpu/hw/gk20a/hw_timer_gk20a.h127
-rw-r--r--include/nvgpu/hw/gk20a/hw_top_gk20a.h211
-rw-r--r--include/nvgpu/hw/gk20a/hw_trim_gk20a.h315
-rw-r--r--include/nvgpu/hw/gm20b/hw_bus_gm20b.h223
-rw-r--r--include/nvgpu/hw/gm20b/hw_ccsr_gm20b.h163
-rw-r--r--include/nvgpu/hw/gm20b/hw_ce2_gm20b.h87
-rw-r--r--include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h475
-rw-r--r--include/nvgpu/hw/gm20b/hw_falcon_gm20b.h599
-rw-r--r--include/nvgpu/hw/gm20b/hw_fb_gm20b.h339
-rw-r--r--include/nvgpu/hw/gm20b/hw_fifo_gm20b.h571
-rw-r--r--include/nvgpu/hw/gm20b/hw_flush_gm20b.h187
-rw-r--r--include/nvgpu/hw/gm20b/hw_fuse_gm20b.h147
-rw-r--r--include/nvgpu/hw/gm20b/hw_gmmu_gm20b.h283
-rw-r--r--include/nvgpu/hw/gm20b/hw_gr_gm20b.h3927
-rw-r--r--include/nvgpu/hw/gm20b/hw_ltc_gm20b.h527
-rw-r--r--include/nvgpu/hw/gm20b/hw_mc_gm20b.h287
-rw-r--r--include/nvgpu/hw/gm20b/hw_pbdma_gm20b.h579
-rw-r--r--include/nvgpu/hw/gm20b/hw_perf_gm20b.h219
-rw-r--r--include/nvgpu/hw/gm20b/hw_pram_gm20b.h63
-rw-r--r--include/nvgpu/hw/gm20b/hw_pri_ringmaster_gm20b.h167
-rw-r--r--include/nvgpu/hw/gm20b/hw_pri_ringstation_gpc_gm20b.h79
-rw-r--r--include/nvgpu/hw/gm20b/hw_pri_ringstation_sys_gm20b.h91
-rw-r--r--include/nvgpu/hw/gm20b/hw_proj_gm20b.h171
-rw-r--r--include/nvgpu/hw/gm20b/hw_pwr_gm20b.h879
-rw-r--r--include/nvgpu/hw/gm20b/hw_ram_gm20b.h459
-rw-r--r--include/nvgpu/hw/gm20b/hw_therm_gm20b.h355
-rw-r--r--include/nvgpu/hw/gm20b/hw_timer_gm20b.h127
-rw-r--r--include/nvgpu/hw/gm20b/hw_top_gm20b.h235
-rw-r--r--include/nvgpu/hw/gm20b/hw_trim_gm20b.h503
-rw-r--r--include/nvgpu/hw/gp106/hw_bus_gp106.h223
-rw-r--r--include/nvgpu/hw/gp106/hw_ccsr_gp106.h163
-rw-r--r--include/nvgpu/hw/gp106/hw_ce_gp106.h87
-rw-r--r--include/nvgpu/hw/gp106/hw_ctxsw_prog_gp106.h295
-rw-r--r--include/nvgpu/hw/gp106/hw_falcon_gp106.h603
-rw-r--r--include/nvgpu/hw/gp106/hw_fb_gp106.h563
-rw-r--r--include/nvgpu/hw/gp106/hw_fbpa_gp106.h67
-rw-r--r--include/nvgpu/hw/gp106/hw_fifo_gp106.h695
-rw-r--r--include/nvgpu/hw/gp106/hw_flush_gp106.h187
-rw-r--r--include/nvgpu/hw/gp106/hw_fuse_gp106.h275
-rw-r--r--include/nvgpu/hw/gp106/hw_gc6_gp106.h62
-rw-r--r--include/nvgpu/hw/gp106/hw_gmmu_gp106.h331
-rw-r--r--include/nvgpu/hw/gp106/hw_gr_gp106.h4163
-rw-r--r--include/nvgpu/hw/gp106/hw_ltc_gp106.h559
-rw-r--r--include/nvgpu/hw/gp106/hw_mc_gp106.h251
-rw-r--r--include/nvgpu/hw/gp106/hw_pbdma_gp106.h535
-rw-r--r--include/nvgpu/hw/gp106/hw_perf_gp106.h219
-rw-r--r--include/nvgpu/hw/gp106/hw_pram_gp106.h63
-rw-r--r--include/nvgpu/hw/gp106/hw_pri_ringmaster_gp106.h151
-rw-r--r--include/nvgpu/hw/gp106/hw_pri_ringstation_gpc_gp106.h79
-rw-r--r--include/nvgpu/hw/gp106/hw_pri_ringstation_sys_gp106.h91
-rw-r--r--include/nvgpu/hw/gp106/hw_proj_gp106.h179
-rw-r--r--include/nvgpu/hw/gp106/hw_psec_gp106.h615
-rw-r--r--include/nvgpu/hw/gp106/hw_pwr_gp106.h895
-rw-r--r--include/nvgpu/hw/gp106/hw_ram_gp106.h507
-rw-r--r--include/nvgpu/hw/gp106/hw_therm_gp106.h183
-rw-r--r--include/nvgpu/hw/gp106/hw_timer_gp106.h115
-rw-r--r--include/nvgpu/hw/gp106/hw_top_gp106.h255
-rw-r--r--include/nvgpu/hw/gp106/hw_trim_gp106.h195
-rw-r--r--include/nvgpu/hw/gp106/hw_xp_gp106.h143
-rw-r--r--include/nvgpu/hw/gp106/hw_xve_gp106.h207
-rw-r--r--include/nvgpu/hw/gp10b/hw_bus_gp10b.h223
-rw-r--r--include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h163
-rw-r--r--include/nvgpu/hw/gp10b/hw_ce_gp10b.h87
-rw-r--r--include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h491
-rw-r--r--include/nvgpu/hw/gp10b/hw_falcon_gp10b.h603
-rw-r--r--include/nvgpu/hw/gp10b/hw_fb_gp10b.h463
-rw-r--r--include/nvgpu/hw/gp10b/hw_fifo_gp10b.h699
-rw-r--r--include/nvgpu/hw/gp10b/hw_flush_gp10b.h187
-rw-r--r--include/nvgpu/hw/gp10b/hw_fuse_gp10b.h155
-rw-r--r--include/nvgpu/hw/gp10b/hw_gmmu_gp10b.h331
-rw-r--r--include/nvgpu/hw/gp10b/hw_gr_gp10b.h4415
-rw-r--r--include/nvgpu/hw/gp10b/hw_ltc_gp10b.h587
-rw-r--r--include/nvgpu/hw/gp10b/hw_mc_gp10b.h255
-rw-r--r--include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h615
-rw-r--r--include/nvgpu/hw/gp10b/hw_perf_gp10b.h219
-rw-r--r--include/nvgpu/hw/gp10b/hw_pram_gp10b.h63
-rw-r--r--include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h167
-rw-r--r--include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h87
-rw-r--r--include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h99
-rw-r--r--include/nvgpu/hw/gp10b/hw_proj_gp10b.h179
-rw-r--r--include/nvgpu/hw/gp10b/hw_pwr_gp10b.h883
-rw-r--r--include/nvgpu/hw/gp10b/hw_ram_gp10b.h519
-rw-r--r--include/nvgpu/hw/gp10b/hw_therm_gp10b.h415
-rw-r--r--include/nvgpu/hw/gp10b/hw_timer_gp10b.h127
-rw-r--r--include/nvgpu/hw/gp10b/hw_top_gp10b.h231
-rw-r--r--include/nvgpu/hw/gv100/hw_bus_gv100.h227
-rw-r--r--include/nvgpu/hw/gv100/hw_ccsr_gv100.h187
-rw-r--r--include/nvgpu/hw/gv100/hw_ce_gv100.h107
-rw-r--r--include/nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h459
-rw-r--r--include/nvgpu/hw/gv100/hw_falcon_gv100.h603
-rw-r--r--include/nvgpu/hw/gv100/hw_fb_gv100.h1923
-rw-r--r--include/nvgpu/hw/gv100/hw_fifo_gv100.h531
-rw-r--r--include/nvgpu/hw/gv100/hw_flush_gv100.h187
-rw-r--r--include/nvgpu/hw/gv100/hw_fuse_gv100.h147
-rw-r--r--include/nvgpu/hw/gv100/hw_gmmu_gv100.h355
-rw-r--r--include/nvgpu/hw/gv100/hw_gr_gv100.h4119
-rw-r--r--include/nvgpu/hw/gv100/hw_ioctrl_gv100.h331
-rw-r--r--include/nvgpu/hw/gv100/hw_ioctrlmif_gv100.h331
-rw-r--r--include/nvgpu/hw/gv100/hw_ltc_gv100.h631
-rw-r--r--include/nvgpu/hw/gv100/hw_mc_gv100.h259
-rw-r--r--include/nvgpu/hw/gv100/hw_minion_gv100.h943
-rw-r--r--include/nvgpu/hw/gv100/hw_nvl_gv100.h1571
-rw-r--r--include/nvgpu/hw/gv100/hw_nvlinkip_discovery_gv100.h311
-rw-r--r--include/nvgpu/hw/gv100/hw_nvlipt_gv100.h279
-rw-r--r--include/nvgpu/hw/gv100/hw_nvtlc_gv100.h95
-rw-r--r--include/nvgpu/hw/gv100/hw_pbdma_gv100.h651
-rw-r--r--include/nvgpu/hw/gv100/hw_perf_gv100.h263
-rw-r--r--include/nvgpu/hw/gv100/hw_pgsp_gv100.h643
-rw-r--r--include/nvgpu/hw/gv100/hw_pram_gv100.h63
-rw-r--r--include/nvgpu/hw/gv100/hw_pri_ringmaster_gv100.h167
-rw-r--r--include/nvgpu/hw/gv100/hw_pri_ringstation_gpc_gv100.h79
-rw-r--r--include/nvgpu/hw/gv100/hw_pri_ringstation_sys_gv100.h91
-rw-r--r--include/nvgpu/hw/gv100/hw_proj_gv100.h199
-rw-r--r--include/nvgpu/hw/gv100/hw_pwr_gv100.h983
-rw-r--r--include/nvgpu/hw/gv100/hw_ram_gv100.h791
-rw-r--r--include/nvgpu/hw/gv100/hw_therm_gv100.h299
-rw-r--r--include/nvgpu/hw/gv100/hw_timer_gv100.h115
-rw-r--r--include/nvgpu/hw/gv100/hw_top_gv100.h343
-rw-r--r--include/nvgpu/hw/gv100/hw_trim_gv100.h247
-rw-r--r--include/nvgpu/hw/gv100/hw_usermode_gv100.h95
-rw-r--r--include/nvgpu/hw/gv100/hw_xp_gv100.h143
-rw-r--r--include/nvgpu/hw/gv100/hw_xve_gv100.h207
-rw-r--r--include/nvgpu/hw/gv11b/hw_bus_gv11b.h223
-rw-r--r--include/nvgpu/hw/gv11b/hw_ccsr_gv11b.h187
-rw-r--r--include/nvgpu/hw/gv11b/hw_ce_gv11b.h115
-rw-r--r--include/nvgpu/hw/gv11b/hw_ctxsw_prog_gv11b.h463
-rw-r--r--include/nvgpu/hw/gv11b/hw_falcon_gv11b.h603
-rw-r--r--include/nvgpu/hw/gv11b/hw_fb_gv11b.h1867
-rw-r--r--include/nvgpu/hw/gv11b/hw_fifo_gv11b.h667
-rw-r--r--include/nvgpu/hw/gv11b/hw_flush_gv11b.h187
-rw-r--r--include/nvgpu/hw/gv11b/hw_fuse_gv11b.h155
-rw-r--r--include/nvgpu/hw/gv11b/hw_gmmu_gv11b.h571
-rw-r--r--include/nvgpu/hw/gv11b/hw_gr_gv11b.h5699
-rw-r--r--include/nvgpu/hw/gv11b/hw_ltc_gv11b.h815
-rw-r--r--include/nvgpu/hw/gv11b/hw_mc_gv11b.h231
-rw-r--r--include/nvgpu/hw/gv11b/hw_pbdma_gv11b.h651
-rw-r--r--include/nvgpu/hw/gv11b/hw_perf_gv11b.h263
-rw-r--r--include/nvgpu/hw/gv11b/hw_pram_gv11b.h63
-rw-r--r--include/nvgpu/hw/gv11b/hw_pri_ringmaster_gv11b.h167
-rw-r--r--include/nvgpu/hw/gv11b/hw_pri_ringstation_gpc_gv11b.h79
-rw-r--r--include/nvgpu/hw/gv11b/hw_pri_ringstation_sys_gv11b.h91
-rw-r--r--include/nvgpu/hw/gv11b/hw_proj_gv11b.h191
-rw-r--r--include/nvgpu/hw/gv11b/hw_pwr_gv11b.h1219
-rw-r--r--include/nvgpu/hw/gv11b/hw_ram_gv11b.h791
-rw-r--r--include/nvgpu/hw/gv11b/hw_therm_gv11b.h487
-rw-r--r--include/nvgpu/hw/gv11b/hw_timer_gv11b.h127
-rw-r--r--include/nvgpu/hw/gv11b/hw_top_gv11b.h235
-rw-r--r--include/nvgpu/hw/gv11b/hw_usermode_gv11b.h95
171 files changed, 83376 insertions, 0 deletions
diff --git a/include/nvgpu/hw/gk20a/hw_bus_gk20a.h b/include/nvgpu/hw/gk20a/hw_bus_gk20a.h
new file mode 100644
index 0000000..d3bb9e9
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_bus_gk20a.h
@@ -0,0 +1,171 @@
1/*
2 * Copyright (c) 2012-2017, 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_bus_gk20a_h_
57#define _hw_bus_gk20a_h_
58
59static inline u32 bus_bar0_window_r(void)
60{
61 return 0x00001700U;
62}
63static inline u32 bus_bar0_window_base_f(u32 v)
64{
65 return (v & 0xffffffU) << 0U;
66}
67static inline u32 bus_bar0_window_target_vid_mem_f(void)
68{
69 return 0x0U;
70}
71static inline u32 bus_bar0_window_target_sys_mem_coherent_f(void)
72{
73 return 0x2000000U;
74}
75static inline u32 bus_bar0_window_target_sys_mem_noncoherent_f(void)
76{
77 return 0x3000000U;
78}
79static inline u32 bus_bar0_window_target_bar0_window_base_shift_v(void)
80{
81 return 0x00000010U;
82}
83static inline u32 bus_bar1_block_r(void)
84{
85 return 0x00001704U;
86}
87static inline u32 bus_bar1_block_ptr_f(u32 v)
88{
89 return (v & 0xfffffffU) << 0U;
90}
91static inline u32 bus_bar1_block_target_vid_mem_f(void)
92{
93 return 0x0U;
94}
95static inline u32 bus_bar1_block_target_sys_mem_coh_f(void)
96{
97 return 0x20000000U;
98}
99static inline u32 bus_bar1_block_target_sys_mem_ncoh_f(void)
100{
101 return 0x30000000U;
102}
103static inline u32 bus_bar1_block_mode_virtual_f(void)
104{
105 return 0x80000000U;
106}
107static inline u32 bus_bar2_block_r(void)
108{
109 return 0x00001714U;
110}
111static inline u32 bus_bar2_block_ptr_f(u32 v)
112{
113 return (v & 0xfffffffU) << 0U;
114}
115static inline u32 bus_bar2_block_target_vid_mem_f(void)
116{
117 return 0x0U;
118}
119static inline u32 bus_bar2_block_target_sys_mem_coh_f(void)
120{
121 return 0x20000000U;
122}
123static inline u32 bus_bar2_block_target_sys_mem_ncoh_f(void)
124{
125 return 0x30000000U;
126}
127static inline u32 bus_bar2_block_mode_virtual_f(void)
128{
129 return 0x80000000U;
130}
131static inline u32 bus_bar1_block_ptr_shift_v(void)
132{
133 return 0x0000000cU;
134}
135static inline u32 bus_bar2_block_ptr_shift_v(void)
136{
137 return 0x0000000cU;
138}
139static inline u32 bus_intr_0_r(void)
140{
141 return 0x00001100U;
142}
143static inline u32 bus_intr_0_pri_squash_m(void)
144{
145 return 0x1U << 1U;
146}
147static inline u32 bus_intr_0_pri_fecserr_m(void)
148{
149 return 0x1U << 2U;
150}
151static inline u32 bus_intr_0_pri_timeout_m(void)
152{
153 return 0x1U << 3U;
154}
155static inline u32 bus_intr_en_0_r(void)
156{
157 return 0x00001140U;
158}
159static inline u32 bus_intr_en_0_pri_squash_m(void)
160{
161 return 0x1U << 1U;
162}
163static inline u32 bus_intr_en_0_pri_fecserr_m(void)
164{
165 return 0x1U << 2U;
166}
167static inline u32 bus_intr_en_0_pri_timeout_m(void)
168{
169 return 0x1U << 3U;
170}
171#endif
diff --git a/include/nvgpu/hw/gk20a/hw_ccsr_gk20a.h b/include/nvgpu/hw/gk20a/hw_ccsr_gk20a.h
new file mode 100644
index 0000000..95151f6
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_ccsr_gk20a.h
@@ -0,0 +1,163 @@
1/*
2 * Copyright (c) 2012-2017, 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_ccsr_gk20a_h_
57#define _hw_ccsr_gk20a_h_
58
59static inline u32 ccsr_channel_inst_r(u32 i)
60{
61 return 0x00800000U + i*8U;
62}
63static inline u32 ccsr_channel_inst__size_1_v(void)
64{
65 return 0x00000080U;
66}
67static inline u32 ccsr_channel_inst_ptr_f(u32 v)
68{
69 return (v & 0xfffffffU) << 0U;
70}
71static inline u32 ccsr_channel_inst_target_vid_mem_f(void)
72{
73 return 0x0U;
74}
75static inline u32 ccsr_channel_inst_target_sys_mem_coh_f(void)
76{
77 return 0x20000000U;
78}
79static inline u32 ccsr_channel_inst_target_sys_mem_ncoh_f(void)
80{
81 return 0x30000000U;
82}
83static inline u32 ccsr_channel_inst_bind_false_f(void)
84{
85 return 0x0U;
86}
87static inline u32 ccsr_channel_inst_bind_true_f(void)
88{
89 return 0x80000000U;
90}
91static inline u32 ccsr_channel_r(u32 i)
92{
93 return 0x00800004U + i*8U;
94}
95static inline u32 ccsr_channel__size_1_v(void)
96{
97 return 0x00000080U;
98}
99static inline u32 ccsr_channel_enable_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 ccsr_channel_enable_set_f(u32 v)
104{
105 return (v & 0x1U) << 10U;
106}
107static inline u32 ccsr_channel_enable_set_true_f(void)
108{
109 return 0x400U;
110}
111static inline u32 ccsr_channel_enable_clr_true_f(void)
112{
113 return 0x800U;
114}
115static inline u32 ccsr_channel_runlist_f(u32 v)
116{
117 return (v & 0xfU) << 16U;
118}
119static inline u32 ccsr_channel_status_v(u32 r)
120{
121 return (r >> 24U) & 0xfU;
122}
123static inline u32 ccsr_channel_status_pending_ctx_reload_v(void)
124{
125 return 0x00000002U;
126}
127static inline u32 ccsr_channel_status_pending_acq_ctx_reload_v(void)
128{
129 return 0x00000004U;
130}
131static inline u32 ccsr_channel_status_on_pbdma_ctx_reload_v(void)
132{
133 return 0x0000000aU;
134}
135static inline u32 ccsr_channel_status_on_pbdma_and_eng_ctx_reload_v(void)
136{
137 return 0x0000000bU;
138}
139static inline u32 ccsr_channel_status_on_eng_ctx_reload_v(void)
140{
141 return 0x0000000cU;
142}
143static inline u32 ccsr_channel_status_on_eng_pending_ctx_reload_v(void)
144{
145 return 0x0000000dU;
146}
147static inline u32 ccsr_channel_status_on_eng_pending_acq_ctx_reload_v(void)
148{
149 return 0x0000000eU;
150}
151static inline u32 ccsr_channel_next_v(u32 r)
152{
153 return (r >> 1U) & 0x1U;
154}
155static inline u32 ccsr_channel_next_true_v(void)
156{
157 return 0x00000001U;
158}
159static inline u32 ccsr_channel_busy_v(u32 r)
160{
161 return (r >> 28U) & 0x1U;
162}
163#endif
diff --git a/include/nvgpu/hw/gk20a/hw_ce2_gk20a.h b/include/nvgpu/hw/gk20a/hw_ce2_gk20a.h
new file mode 100644
index 0000000..87481cd
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_ce2_gk20a.h
@@ -0,0 +1,87 @@
1/*
2 * Copyright (c) 2015-2017, 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_ce2_gk20a_h_
57#define _hw_ce2_gk20a_h_
58
59static inline u32 ce2_intr_status_r(void)
60{
61 return 0x00106908U;
62}
63static inline u32 ce2_intr_status_blockpipe_pending_f(void)
64{
65 return 0x1U;
66}
67static inline u32 ce2_intr_status_blockpipe_reset_f(void)
68{
69 return 0x1U;
70}
71static inline u32 ce2_intr_status_nonblockpipe_pending_f(void)
72{
73 return 0x2U;
74}
75static inline u32 ce2_intr_status_nonblockpipe_reset_f(void)
76{
77 return 0x2U;
78}
79static inline u32 ce2_intr_status_launcherr_pending_f(void)
80{
81 return 0x4U;
82}
83static inline u32 ce2_intr_status_launcherr_reset_f(void)
84{
85 return 0x4U;
86}
87#endif
diff --git a/include/nvgpu/hw/gk20a/hw_ctxsw_prog_gk20a.h b/include/nvgpu/hw/gk20a/hw_ctxsw_prog_gk20a.h
new file mode 100644
index 0000000..131fd12
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_ctxsw_prog_gk20a.h
@@ -0,0 +1,447 @@
1/*
2 * Copyright (c) 2012-2017, 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_gk20a_h_
57#define _hw_ctxsw_prog_gk20a_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_patch_count_o(void)
68{
69 return 0x00000010U;
70}
71static inline u32 ctxsw_prog_main_image_context_id_o(void)
72{
73 return 0x000000f0U;
74}
75static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void)
76{
77 return 0x00000014U;
78}
79static inline u32 ctxsw_prog_main_image_patch_adr_hi_o(void)
80{
81 return 0x00000018U;
82}
83static inline u32 ctxsw_prog_main_image_zcull_o(void)
84{
85 return 0x0000001cU;
86}
87static inline u32 ctxsw_prog_main_image_zcull_mode_no_ctxsw_v(void)
88{
89 return 0x00000001U;
90}
91static inline u32 ctxsw_prog_main_image_zcull_mode_separate_buffer_v(void)
92{
93 return 0x00000002U;
94}
95static inline u32 ctxsw_prog_main_image_zcull_ptr_o(void)
96{
97 return 0x00000020U;
98}
99static inline u32 ctxsw_prog_main_image_pm_o(void)
100{
101 return 0x00000028U;
102}
103static inline u32 ctxsw_prog_main_image_pm_mode_m(void)
104{
105 return 0x7U << 0U;
106}
107static inline u32 ctxsw_prog_main_image_pm_mode_ctxsw_f(void)
108{
109 return 0x1U;
110}
111static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void)
112{
113 return 0x0U;
114}
115static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void)
116{
117 return 0x7U << 3U;
118}
119static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void)
120{
121 return 0x8U;
122}
123static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void)
124{
125 return 0x0U;
126}
127static inline u32 ctxsw_prog_main_image_pm_ptr_o(void)
128{
129 return 0x0000002cU;
130}
131static inline u32 ctxsw_prog_main_image_num_save_ops_o(void)
132{
133 return 0x000000f4U;
134}
135static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void)
136{
137 return 0x000000f8U;
138}
139static inline u32 ctxsw_prog_main_image_magic_value_o(void)
140{
141 return 0x000000fcU;
142}
143static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void)
144{
145 return 0x600dc0deU;
146}
147static inline u32 ctxsw_prog_local_priv_register_ctl_o(void)
148{
149 return 0x0000000cU;
150}
151static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r)
152{
153 return (r >> 0U) & 0xffffU;
154}
155static inline u32 ctxsw_prog_local_image_ppc_info_o(void)
156{
157 return 0x000000f4U;
158}
159static inline u32 ctxsw_prog_local_image_ppc_info_num_ppcs_v(u32 r)
160{
161 return (r >> 0U) & 0xffffU;
162}
163static inline u32 ctxsw_prog_local_image_ppc_info_ppc_mask_v(u32 r)
164{
165 return (r >> 16U) & 0xffffU;
166}
167static inline u32 ctxsw_prog_local_image_num_tpcs_o(void)
168{
169 return 0x000000f8U;
170}
171static inline u32 ctxsw_prog_local_magic_value_o(void)
172{
173 return 0x000000fcU;
174}
175static inline u32 ctxsw_prog_local_magic_value_v_value_v(void)
176{
177 return 0xad0becabU;
178}
179static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void)
180{
181 return 0x000000ecU;
182}
183static inline u32 ctxsw_prog_main_extended_buffer_ctl_offset_v(u32 r)
184{
185 return (r >> 0U) & 0xffffU;
186}
187static inline u32 ctxsw_prog_main_extended_buffer_ctl_size_v(u32 r)
188{
189 return (r >> 16U) & 0xffU;
190}
191static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void)
192{
193 return 0x00000100U;
194}
195static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void)
196{
197 return 0x00000004U;
198}
199static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void)
200{
201 return 0x00000005U;
202}
203static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void)
204{
205 return 0x00000004U;
206}
207static inline u32 ctxsw_prog_extended_num_smpc_quadrants_v(void)
208{
209 return 0x00000004U;
210}
211static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void)
212{
213 return 0x000000a0U;
214}
215static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void)
216{
217 return 2U;
218}
219static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v)
220{
221 return (v & 0x3U) << 0U;
222}
223static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void)
224{
225 return 0x3U << 0U;
226}
227static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r)
228{
229 return (r >> 0U) & 0x3U;
230}
231static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void)
232{
233 return 0x0U;
234}
235static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void)
236{
237 return 0x2U;
238}
239static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void)
240{
241 return 0x000000a4U;
242}
243static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void)
244{
245 return 0x000000a8U;
246}
247static inline u32 ctxsw_prog_main_image_misc_options_o(void)
248{
249 return 0x0000003cU;
250}
251static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void)
252{
253 return 0x1U << 3U;
254}
255static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void)
256{
257 return 0x0U;
258}
259static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_o(void)
260{
261 return 0x000000acU;
262}
263static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_num_records_f(u32 v)
264{
265 return (v & 0xffffU) << 0U;
266}
267static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(void)
268{
269 return 0x000000b0U;
270}
271static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_v_m(void)
272{
273 return 0xfffffffU << 0U;
274}
275static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_m(void)
276{
277 return 0x3U << 28U;
278}
279static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_vid_mem_f(void)
280{
281 return 0x0U;
282}
283static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_coherent_f(void)
284{
285 return 0x20000000U;
286}
287static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_noncoherent_f(void)
288{
289 return 0x30000000U;
290}
291static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(void)
292{
293 return 0x000000b4U;
294}
295static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_v_f(u32 v)
296{
297 return (v & 0xffffffffU) << 0U;
298}
299static inline u32 ctxsw_prog_record_timestamp_record_size_in_bytes_v(void)
300{
301 return 0x00000080U;
302}
303static inline u32 ctxsw_prog_record_timestamp_record_size_in_words_v(void)
304{
305 return 0x00000020U;
306}
307static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_o(void)
308{
309 return 0x00000000U;
310}
311static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_v_value_v(void)
312{
313 return 0x00000000U;
314}
315static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_o(void)
316{
317 return 0x00000004U;
318}
319static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_v_value_v(void)
320{
321 return 0x600dbeefU;
322}
323static inline u32 ctxsw_prog_record_timestamp_context_id_o(void)
324{
325 return 0x00000008U;
326}
327static inline u32 ctxsw_prog_record_timestamp_context_ptr_o(void)
328{
329 return 0x0000000cU;
330}
331static inline u32 ctxsw_prog_record_timestamp_new_context_id_o(void)
332{
333 return 0x00000010U;
334}
335static inline u32 ctxsw_prog_record_timestamp_new_context_ptr_o(void)
336{
337 return 0x00000014U;
338}
339static inline u32 ctxsw_prog_record_timestamp_timestamp_lo_o(void)
340{
341 return 0x00000018U;
342}
343static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_o(void)
344{
345 return 0x0000001cU;
346}
347static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_f(u32 v)
348{
349 return (v & 0xffffffU) << 0U;
350}
351static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_v(u32 r)
352{
353 return (r >> 0U) & 0xffffffU;
354}
355static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_f(u32 v)
356{
357 return (v & 0xffU) << 24U;
358}
359static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_m(void)
360{
361 return 0xffU << 24U;
362}
363static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_v(u32 r)
364{
365 return (r >> 24U) & 0xffU;
366}
367static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_v(void)
368{
369 return 0x00000001U;
370}
371static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_f(void)
372{
373 return 0x1000000U;
374}
375static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_v(void)
376{
377 return 0x00000002U;
378}
379static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_f(void)
380{
381 return 0x2000000U;
382}
383static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_v(void)
384{
385 return 0x0000000aU;
386}
387static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_f(void)
388{
389 return 0xa000000U;
390}
391static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_v(void)
392{
393 return 0x0000000bU;
394}
395static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_f(void)
396{
397 return 0xb000000U;
398}
399static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_v(void)
400{
401 return 0x0000000cU;
402}
403static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_f(void)
404{
405 return 0xc000000U;
406}
407static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_v(void)
408{
409 return 0x0000000dU;
410}
411static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_f(void)
412{
413 return 0xd000000U;
414}
415static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_v(void)
416{
417 return 0x00000003U;
418}
419static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_f(void)
420{
421 return 0x3000000U;
422}
423static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_v(void)
424{
425 return 0x00000004U;
426}
427static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_f(void)
428{
429 return 0x4000000U;
430}
431static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_v(void)
432{
433 return 0x00000005U;
434}
435static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_f(void)
436{
437 return 0x5000000U;
438}
439static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_v(void)
440{
441 return 0x000000ffU;
442}
443static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_f(void)
444{
445 return 0xff000000U;
446}
447#endif
diff --git a/include/nvgpu/hw/gk20a/hw_falcon_gk20a.h b/include/nvgpu/hw/gk20a/hw_falcon_gk20a.h
new file mode 100644
index 0000000..7b4d87b
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_falcon_gk20a.h
@@ -0,0 +1,559 @@
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_falcon_gk20a_h_
57#define _hw_falcon_gk20a_h_
58
59static inline u32 falcon_falcon_irqsset_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 falcon_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 falcon_falcon_irqsclr_r(void)
68{
69 return 0x00000004U;
70}
71static inline u32 falcon_falcon_irqstat_r(void)
72{
73 return 0x00000008U;
74}
75static inline u32 falcon_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 falcon_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 falcon_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 falcon_falcon_irqmode_r(void)
88{
89 return 0x0000000cU;
90}
91static inline u32 falcon_falcon_irqmset_r(void)
92{
93 return 0x00000010U;
94}
95static inline u32 falcon_falcon_irqmset_gptmr_f(u32 v)
96{
97 return (v & 0x1U) << 0U;
98}
99static inline u32 falcon_falcon_irqmset_wdtmr_f(u32 v)
100{
101 return (v & 0x1U) << 1U;
102}
103static inline u32 falcon_falcon_irqmset_mthd_f(u32 v)
104{
105 return (v & 0x1U) << 2U;
106}
107static inline u32 falcon_falcon_irqmset_ctxsw_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 falcon_falcon_irqmset_halt_f(u32 v)
112{
113 return (v & 0x1U) << 4U;
114}
115static inline u32 falcon_falcon_irqmset_exterr_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 falcon_falcon_irqmset_swgen0_f(u32 v)
120{
121 return (v & 0x1U) << 6U;
122}
123static inline u32 falcon_falcon_irqmset_swgen1_f(u32 v)
124{
125 return (v & 0x1U) << 7U;
126}
127static inline u32 falcon_falcon_irqmclr_r(void)
128{
129 return 0x00000014U;
130}
131static inline u32 falcon_falcon_irqmclr_gptmr_f(u32 v)
132{
133 return (v & 0x1U) << 0U;
134}
135static inline u32 falcon_falcon_irqmclr_wdtmr_f(u32 v)
136{
137 return (v & 0x1U) << 1U;
138}
139static inline u32 falcon_falcon_irqmclr_mthd_f(u32 v)
140{
141 return (v & 0x1U) << 2U;
142}
143static inline u32 falcon_falcon_irqmclr_ctxsw_f(u32 v)
144{
145 return (v & 0x1U) << 3U;
146}
147static inline u32 falcon_falcon_irqmclr_halt_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 falcon_falcon_irqmclr_exterr_f(u32 v)
152{
153 return (v & 0x1U) << 5U;
154}
155static inline u32 falcon_falcon_irqmclr_swgen0_f(u32 v)
156{
157 return (v & 0x1U) << 6U;
158}
159static inline u32 falcon_falcon_irqmclr_swgen1_f(u32 v)
160{
161 return (v & 0x1U) << 7U;
162}
163static inline u32 falcon_falcon_irqmclr_ext_f(u32 v)
164{
165 return (v & 0xffU) << 8U;
166}
167static inline u32 falcon_falcon_irqmask_r(void)
168{
169 return 0x00000018U;
170}
171static inline u32 falcon_falcon_irqdest_r(void)
172{
173 return 0x0000001cU;
174}
175static inline u32 falcon_falcon_irqdest_host_gptmr_f(u32 v)
176{
177 return (v & 0x1U) << 0U;
178}
179static inline u32 falcon_falcon_irqdest_host_wdtmr_f(u32 v)
180{
181 return (v & 0x1U) << 1U;
182}
183static inline u32 falcon_falcon_irqdest_host_mthd_f(u32 v)
184{
185 return (v & 0x1U) << 2U;
186}
187static inline u32 falcon_falcon_irqdest_host_ctxsw_f(u32 v)
188{
189 return (v & 0x1U) << 3U;
190}
191static inline u32 falcon_falcon_irqdest_host_halt_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 falcon_falcon_irqdest_host_exterr_f(u32 v)
196{
197 return (v & 0x1U) << 5U;
198}
199static inline u32 falcon_falcon_irqdest_host_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 falcon_falcon_irqdest_host_swgen1_f(u32 v)
204{
205 return (v & 0x1U) << 7U;
206}
207static inline u32 falcon_falcon_irqdest_host_ext_f(u32 v)
208{
209 return (v & 0xffU) << 8U;
210}
211static inline u32 falcon_falcon_irqdest_target_gptmr_f(u32 v)
212{
213 return (v & 0x1U) << 16U;
214}
215static inline u32 falcon_falcon_irqdest_target_wdtmr_f(u32 v)
216{
217 return (v & 0x1U) << 17U;
218}
219static inline u32 falcon_falcon_irqdest_target_mthd_f(u32 v)
220{
221 return (v & 0x1U) << 18U;
222}
223static inline u32 falcon_falcon_irqdest_target_ctxsw_f(u32 v)
224{
225 return (v & 0x1U) << 19U;
226}
227static inline u32 falcon_falcon_irqdest_target_halt_f(u32 v)
228{
229 return (v & 0x1U) << 20U;
230}
231static inline u32 falcon_falcon_irqdest_target_exterr_f(u32 v)
232{
233 return (v & 0x1U) << 21U;
234}
235static inline u32 falcon_falcon_irqdest_target_swgen0_f(u32 v)
236{
237 return (v & 0x1U) << 22U;
238}
239static inline u32 falcon_falcon_irqdest_target_swgen1_f(u32 v)
240{
241 return (v & 0x1U) << 23U;
242}
243static inline u32 falcon_falcon_irqdest_target_ext_f(u32 v)
244{
245 return (v & 0xffU) << 24U;
246}
247static inline u32 falcon_falcon_curctx_r(void)
248{
249 return 0x00000050U;
250}
251static inline u32 falcon_falcon_nxtctx_r(void)
252{
253 return 0x00000054U;
254}
255static inline u32 falcon_falcon_mailbox0_r(void)
256{
257 return 0x00000040U;
258}
259static inline u32 falcon_falcon_mailbox1_r(void)
260{
261 return 0x00000044U;
262}
263static inline u32 falcon_falcon_itfen_r(void)
264{
265 return 0x00000048U;
266}
267static inline u32 falcon_falcon_itfen_ctxen_enable_f(void)
268{
269 return 0x1U;
270}
271static inline u32 falcon_falcon_idlestate_r(void)
272{
273 return 0x0000004cU;
274}
275static inline u32 falcon_falcon_idlestate_falcon_busy_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 falcon_falcon_idlestate_ext_busy_v(u32 r)
280{
281 return (r >> 1U) & 0x7fffU;
282}
283static inline u32 falcon_falcon_os_r(void)
284{
285 return 0x00000080U;
286}
287static inline u32 falcon_falcon_engctl_r(void)
288{
289 return 0x000000a4U;
290}
291static inline u32 falcon_falcon_cpuctl_r(void)
292{
293 return 0x00000100U;
294}
295static inline u32 falcon_falcon_cpuctl_startcpu_f(u32 v)
296{
297 return (v & 0x1U) << 1U;
298}
299static inline u32 falcon_falcon_cpuctl_sreset_f(u32 v)
300{
301 return (v & 0x1U) << 2U;
302}
303static inline u32 falcon_falcon_cpuctl_hreset_f(u32 v)
304{
305 return (v & 0x1U) << 3U;
306}
307static inline u32 falcon_falcon_cpuctl_halt_intr_f(u32 v)
308{
309 return (v & 0x1U) << 4U;
310}
311static inline u32 falcon_falcon_cpuctl_halt_intr_m(void)
312{
313 return 0x1U << 4U;
314}
315static inline u32 falcon_falcon_cpuctl_halt_intr_v(u32 r)
316{
317 return (r >> 4U) & 0x1U;
318}
319static inline u32 falcon_falcon_cpuctl_stopped_m(void)
320{
321 return 0x1U << 5U;
322}
323static inline u32 falcon_falcon_imemc_r(u32 i)
324{
325 return 0x00000180U + i*16U;
326}
327static inline u32 falcon_falcon_imemc_offs_f(u32 v)
328{
329 return (v & 0x3fU) << 2U;
330}
331static inline u32 falcon_falcon_imemc_blk_f(u32 v)
332{
333 return (v & 0xffU) << 8U;
334}
335static inline u32 falcon_falcon_imemc_aincw_f(u32 v)
336{
337 return (v & 0x1U) << 24U;
338}
339static inline u32 falcon_falcon_imemc_secure_f(u32 v)
340{
341 return (v & 0x1U) << 28U;
342}
343static inline u32 falcon_falcon_imemd_r(u32 i)
344{
345 return 0x00000184U + i*16U;
346}
347static inline u32 falcon_falcon_imemt_r(u32 i)
348{
349 return 0x00000188U + i*16U;
350}
351static inline u32 falcon_falcon_bootvec_r(void)
352{
353 return 0x00000104U;
354}
355static inline u32 falcon_falcon_bootvec_vec_f(u32 v)
356{
357 return (v & 0xffffffffU) << 0U;
358}
359static inline u32 falcon_falcon_dmactl_r(void)
360{
361 return 0x0000010cU;
362}
363static inline u32 falcon_falcon_dmactl_dmem_scrubbing_m(void)
364{
365 return 0x1U << 1U;
366}
367static inline u32 falcon_falcon_dmactl_imem_scrubbing_m(void)
368{
369 return 0x1U << 2U;
370}
371static inline u32 falcon_falcon_dmactl_require_ctx_f(u32 v)
372{
373 return (v & 0x1U) << 0U;
374}
375static inline u32 falcon_falcon_hwcfg_r(void)
376{
377 return 0x00000108U;
378}
379static inline u32 falcon_falcon_hwcfg_imem_size_v(u32 r)
380{
381 return (r >> 0U) & 0x1ffU;
382}
383static inline u32 falcon_falcon_hwcfg_dmem_size_v(u32 r)
384{
385 return (r >> 9U) & 0x1ffU;
386}
387static inline u32 falcon_falcon_dmatrfbase_r(void)
388{
389 return 0x00000110U;
390}
391static inline u32 falcon_falcon_dmatrfmoffs_r(void)
392{
393 return 0x00000114U;
394}
395static inline u32 falcon_falcon_dmatrfcmd_r(void)
396{
397 return 0x00000118U;
398}
399static inline u32 falcon_falcon_dmatrfcmd_imem_f(u32 v)
400{
401 return (v & 0x1U) << 4U;
402}
403static inline u32 falcon_falcon_dmatrfcmd_write_f(u32 v)
404{
405 return (v & 0x1U) << 5U;
406}
407static inline u32 falcon_falcon_dmatrfcmd_size_f(u32 v)
408{
409 return (v & 0x7U) << 8U;
410}
411static inline u32 falcon_falcon_dmatrfcmd_ctxdma_f(u32 v)
412{
413 return (v & 0x7U) << 12U;
414}
415static inline u32 falcon_falcon_dmatrffboffs_r(void)
416{
417 return 0x0000011cU;
418}
419static inline u32 falcon_falcon_imstat_r(void)
420{
421 return 0x00000144U;
422}
423static inline u32 falcon_falcon_traceidx_r(void)
424{
425 return 0x00000148U;
426}
427static inline u32 falcon_falcon_traceidx_maxidx_v(u32 r)
428{
429 return (r >> 16U) & 0xffU;
430}
431static inline u32 falcon_falcon_traceidx_idx_v(u32 r)
432{
433 return (r >> 0U) & 0xffU;
434}
435static inline u32 falcon_falcon_tracepc_r(void)
436{
437 return 0x0000014cU;
438}
439static inline u32 falcon_falcon_tracepc_pc_v(u32 r)
440{
441 return (r >> 0U) & 0xffffffU;
442}
443static inline u32 falcon_falcon_exterraddr_r(void)
444{
445 return 0x00000168U;
446}
447static inline u32 falcon_falcon_exterrstat_r(void)
448{
449 return 0x0000016cU;
450}
451static inline u32 falcon_falcon_exterrstat_valid_m(void)
452{
453 return 0x1U << 31U;
454}
455static inline u32 falcon_falcon_exterrstat_valid_v(u32 r)
456{
457 return (r >> 31U) & 0x1U;
458}
459static inline u32 falcon_falcon_exterrstat_valid_true_v(void)
460{
461 return 0x00000001U;
462}
463static inline u32 falcon_falcon_icd_cmd_r(void)
464{
465 return 0x00000200U;
466}
467static inline u32 falcon_falcon_icd_cmd_opc_s(void)
468{
469 return 4U;
470}
471static inline u32 falcon_falcon_icd_cmd_opc_f(u32 v)
472{
473 return (v & 0xfU) << 0U;
474}
475static inline u32 falcon_falcon_icd_cmd_opc_m(void)
476{
477 return 0xfU << 0U;
478}
479static inline u32 falcon_falcon_icd_cmd_opc_v(u32 r)
480{
481 return (r >> 0U) & 0xfU;
482}
483static inline u32 falcon_falcon_icd_cmd_opc_rreg_f(void)
484{
485 return 0x8U;
486}
487static inline u32 falcon_falcon_icd_cmd_opc_rstat_f(void)
488{
489 return 0xeU;
490}
491static inline u32 falcon_falcon_icd_cmd_idx_f(u32 v)
492{
493 return (v & 0x1fU) << 8U;
494}
495static inline u32 falcon_falcon_icd_rdata_r(void)
496{
497 return 0x0000020cU;
498}
499static inline u32 falcon_falcon_dmemc_r(u32 i)
500{
501 return 0x000001c0U + i*8U;
502}
503static inline u32 falcon_falcon_dmemc_offs_f(u32 v)
504{
505 return (v & 0x3fU) << 2U;
506}
507static inline u32 falcon_falcon_dmemc_offs_m(void)
508{
509 return 0x3fU << 2U;
510}
511static inline u32 falcon_falcon_dmemc_blk_f(u32 v)
512{
513 return (v & 0xffU) << 8U;
514}
515static inline u32 falcon_falcon_dmemc_blk_m(void)
516{
517 return 0xffU << 8U;
518}
519static inline u32 falcon_falcon_dmemc_aincw_f(u32 v)
520{
521 return (v & 0x1U) << 24U;
522}
523static inline u32 falcon_falcon_dmemc_aincr_f(u32 v)
524{
525 return (v & 0x1U) << 25U;
526}
527static inline u32 falcon_falcon_dmemd_r(u32 i)
528{
529 return 0x000001c4U + i*8U;
530}
531static inline u32 falcon_falcon_debug1_r(void)
532{
533 return 0x00000090U;
534}
535static inline u32 falcon_falcon_debug1_ctxsw_mode_s(void)
536{
537 return 1U;
538}
539static inline u32 falcon_falcon_debug1_ctxsw_mode_f(u32 v)
540{
541 return (v & 0x1U) << 16U;
542}
543static inline u32 falcon_falcon_debug1_ctxsw_mode_m(void)
544{
545 return 0x1U << 16U;
546}
547static inline u32 falcon_falcon_debug1_ctxsw_mode_v(u32 r)
548{
549 return (r >> 16U) & 0x1U;
550}
551static inline u32 falcon_falcon_debug1_ctxsw_mode_init_f(void)
552{
553 return 0x0U;
554}
555static inline u32 falcon_falcon_debuginfo_r(void)
556{
557 return 0x00000094U;
558}
559#endif
diff --git a/include/nvgpu/hw/gk20a/hw_fb_gk20a.h b/include/nvgpu/hw/gk20a/hw_fb_gk20a.h
new file mode 100644
index 0000000..42df4f5
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_fb_gk20a.h
@@ -0,0 +1,263 @@
1/*
2 * Copyright (c) 2012-2017, 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_fb_gk20a_h_
57#define _hw_fb_gk20a_h_
58
59static inline u32 fb_mmu_ctrl_r(void)
60{
61 return 0x00100c80U;
62}
63static inline u32 fb_mmu_ctrl_vm_pg_size_f(u32 v)
64{
65 return (v & 0x1U) << 0U;
66}
67static inline u32 fb_mmu_ctrl_vm_pg_size_128kb_f(void)
68{
69 return 0x0U;
70}
71static inline u32 fb_mmu_ctrl_vm_pg_size_64kb_f(void)
72{
73 return 0x1U;
74}
75static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r)
76{
77 return (r >> 15U) & 0x1U;
78}
79static inline u32 fb_mmu_ctrl_pri_fifo_empty_false_f(void)
80{
81 return 0x0U;
82}
83static inline u32 fb_mmu_ctrl_pri_fifo_space_v(u32 r)
84{
85 return (r >> 16U) & 0xffU;
86}
87static inline u32 fb_mmu_invalidate_pdb_r(void)
88{
89 return 0x00100cb8U;
90}
91static inline u32 fb_mmu_invalidate_pdb_aperture_vid_mem_f(void)
92{
93 return 0x0U;
94}
95static inline u32 fb_mmu_invalidate_pdb_aperture_sys_mem_f(void)
96{
97 return 0x2U;
98}
99static inline u32 fb_mmu_invalidate_pdb_addr_f(u32 v)
100{
101 return (v & 0xfffffffU) << 4U;
102}
103static inline u32 fb_mmu_invalidate_r(void)
104{
105 return 0x00100cbcU;
106}
107static inline u32 fb_mmu_invalidate_all_va_true_f(void)
108{
109 return 0x1U;
110}
111static inline u32 fb_mmu_invalidate_all_pdb_true_f(void)
112{
113 return 0x2U;
114}
115static inline u32 fb_mmu_invalidate_trigger_s(void)
116{
117 return 1U;
118}
119static inline u32 fb_mmu_invalidate_trigger_f(u32 v)
120{
121 return (v & 0x1U) << 31U;
122}
123static inline u32 fb_mmu_invalidate_trigger_m(void)
124{
125 return 0x1U << 31U;
126}
127static inline u32 fb_mmu_invalidate_trigger_v(u32 r)
128{
129 return (r >> 31U) & 0x1U;
130}
131static inline u32 fb_mmu_invalidate_trigger_true_f(void)
132{
133 return 0x80000000U;
134}
135static inline u32 fb_mmu_debug_wr_r(void)
136{
137 return 0x00100cc8U;
138}
139static inline u32 fb_mmu_debug_wr_aperture_s(void)
140{
141 return 2U;
142}
143static inline u32 fb_mmu_debug_wr_aperture_f(u32 v)
144{
145 return (v & 0x3U) << 0U;
146}
147static inline u32 fb_mmu_debug_wr_aperture_m(void)
148{
149 return 0x3U << 0U;
150}
151static inline u32 fb_mmu_debug_wr_aperture_v(u32 r)
152{
153 return (r >> 0U) & 0x3U;
154}
155static inline u32 fb_mmu_debug_wr_aperture_vid_mem_f(void)
156{
157 return 0x0U;
158}
159static inline u32 fb_mmu_debug_wr_aperture_sys_mem_coh_f(void)
160{
161 return 0x2U;
162}
163static inline u32 fb_mmu_debug_wr_aperture_sys_mem_ncoh_f(void)
164{
165 return 0x3U;
166}
167static inline u32 fb_mmu_debug_wr_vol_false_f(void)
168{
169 return 0x0U;
170}
171static inline u32 fb_mmu_debug_wr_vol_true_v(void)
172{
173 return 0x00000001U;
174}
175static inline u32 fb_mmu_debug_wr_vol_true_f(void)
176{
177 return 0x4U;
178}
179static inline u32 fb_mmu_debug_wr_addr_f(u32 v)
180{
181 return (v & 0xfffffffU) << 4U;
182}
183static inline u32 fb_mmu_debug_wr_addr_alignment_v(void)
184{
185 return 0x0000000cU;
186}
187static inline u32 fb_mmu_debug_rd_r(void)
188{
189 return 0x00100cccU;
190}
191static inline u32 fb_mmu_debug_rd_aperture_vid_mem_f(void)
192{
193 return 0x0U;
194}
195static inline u32 fb_mmu_debug_rd_aperture_sys_mem_coh_f(void)
196{
197 return 0x2U;
198}
199static inline u32 fb_mmu_debug_rd_aperture_sys_mem_ncoh_f(void)
200{
201 return 0x3U;
202}
203static inline u32 fb_mmu_debug_rd_vol_false_f(void)
204{
205 return 0x0U;
206}
207static inline u32 fb_mmu_debug_rd_addr_f(u32 v)
208{
209 return (v & 0xfffffffU) << 4U;
210}
211static inline u32 fb_mmu_debug_rd_addr_alignment_v(void)
212{
213 return 0x0000000cU;
214}
215static inline u32 fb_mmu_debug_ctrl_r(void)
216{
217 return 0x00100cc4U;
218}
219static inline u32 fb_mmu_debug_ctrl_debug_v(u32 r)
220{
221 return (r >> 16U) & 0x1U;
222}
223static inline u32 fb_mmu_debug_ctrl_debug_m(void)
224{
225 return 0x1U << 16U;
226}
227static inline u32 fb_mmu_debug_ctrl_debug_enabled_v(void)
228{
229 return 0x00000001U;
230}
231static inline u32 fb_mmu_debug_ctrl_debug_enabled_f(void)
232{
233 return 0x10000U;
234}
235static inline u32 fb_mmu_debug_ctrl_debug_disabled_v(void)
236{
237 return 0x00000000U;
238}
239static inline u32 fb_mmu_debug_ctrl_debug_disabled_f(void)
240{
241 return 0x0U;
242}
243static inline u32 fb_mmu_vpr_info_r(void)
244{
245 return 0x00100cd0U;
246}
247static inline u32 fb_mmu_vpr_info_fetch_v(u32 r)
248{
249 return (r >> 2U) & 0x1U;
250}
251static inline u32 fb_mmu_vpr_info_fetch_false_v(void)
252{
253 return 0x00000000U;
254}
255static inline u32 fb_mmu_vpr_info_fetch_true_v(void)
256{
257 return 0x00000001U;
258}
259static inline u32 fb_niso_flush_sysmem_addr_r(void)
260{
261 return 0x00100c10U;
262}
263#endif
diff --git a/include/nvgpu/hw/gk20a/hw_fifo_gk20a.h b/include/nvgpu/hw/gk20a/hw_fifo_gk20a.h
new file mode 100644
index 0000000..e61e386
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_fifo_gk20a.h
@@ -0,0 +1,619 @@
1/*
2 * Copyright (c) 2012-2017, 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_fifo_gk20a_h_
57#define _hw_fifo_gk20a_h_
58
59static inline u32 fifo_bar1_base_r(void)
60{
61 return 0x00002254U;
62}
63static inline u32 fifo_bar1_base_ptr_f(u32 v)
64{
65 return (v & 0xfffffffU) << 0U;
66}
67static inline u32 fifo_bar1_base_ptr_align_shift_v(void)
68{
69 return 0x0000000cU;
70}
71static inline u32 fifo_bar1_base_valid_false_f(void)
72{
73 return 0x0U;
74}
75static inline u32 fifo_bar1_base_valid_true_f(void)
76{
77 return 0x10000000U;
78}
79static inline u32 fifo_runlist_base_r(void)
80{
81 return 0x00002270U;
82}
83static inline u32 fifo_runlist_base_ptr_f(u32 v)
84{
85 return (v & 0xfffffffU) << 0U;
86}
87static inline u32 fifo_runlist_base_target_vid_mem_f(void)
88{
89 return 0x0U;
90}
91static inline u32 fifo_runlist_base_target_sys_mem_coh_f(void)
92{
93 return 0x20000000U;
94}
95static inline u32 fifo_runlist_base_target_sys_mem_ncoh_f(void)
96{
97 return 0x30000000U;
98}
99static inline u32 fifo_runlist_r(void)
100{
101 return 0x00002274U;
102}
103static inline u32 fifo_runlist_engine_f(u32 v)
104{
105 return (v & 0xfU) << 20U;
106}
107static inline u32 fifo_eng_runlist_base_r(u32 i)
108{
109 return 0x00002280U + i*8U;
110}
111static inline u32 fifo_eng_runlist_base__size_1_v(void)
112{
113 return 0x00000001U;
114}
115static inline u32 fifo_eng_runlist_r(u32 i)
116{
117 return 0x00002284U + i*8U;
118}
119static inline u32 fifo_eng_runlist__size_1_v(void)
120{
121 return 0x00000001U;
122}
123static inline u32 fifo_eng_runlist_length_f(u32 v)
124{
125 return (v & 0xffffU) << 0U;
126}
127static inline u32 fifo_eng_runlist_length_max_v(void)
128{
129 return 0x0000ffffU;
130}
131static inline u32 fifo_eng_runlist_pending_true_f(void)
132{
133 return 0x100000U;
134}
135static inline u32 fifo_runlist_timeslice_r(u32 i)
136{
137 return 0x00002310U + i*4U;
138}
139static inline u32 fifo_runlist_timeslice_timeout_128_f(void)
140{
141 return 0x80U;
142}
143static inline u32 fifo_runlist_timeslice_timescale_3_f(void)
144{
145 return 0x3000U;
146}
147static inline u32 fifo_runlist_timeslice_enable_true_f(void)
148{
149 return 0x10000000U;
150}
151static inline u32 fifo_eng_timeout_r(void)
152{
153 return 0x00002a0cU;
154}
155static inline u32 fifo_eng_timeout_period_max_f(void)
156{
157 return 0x7fffffffU;
158}
159static inline u32 fifo_eng_timeout_detection_enabled_f(void)
160{
161 return 0x80000000U;
162}
163static inline u32 fifo_eng_timeout_detection_disabled_f(void)
164{
165 return 0x0U;
166}
167static inline u32 fifo_pb_timeslice_r(u32 i)
168{
169 return 0x00002350U + i*4U;
170}
171static inline u32 fifo_pb_timeslice_timeout_16_f(void)
172{
173 return 0x10U;
174}
175static inline u32 fifo_pb_timeslice_timescale_0_f(void)
176{
177 return 0x0U;
178}
179static inline u32 fifo_pb_timeslice_enable_true_f(void)
180{
181 return 0x10000000U;
182}
183static inline u32 fifo_pbdma_map_r(u32 i)
184{
185 return 0x00002390U + i*4U;
186}
187static inline u32 fifo_intr_0_r(void)
188{
189 return 0x00002100U;
190}
191static inline u32 fifo_intr_0_bind_error_pending_f(void)
192{
193 return 0x1U;
194}
195static inline u32 fifo_intr_0_bind_error_reset_f(void)
196{
197 return 0x1U;
198}
199static inline u32 fifo_intr_0_pio_error_pending_f(void)
200{
201 return 0x10U;
202}
203static inline u32 fifo_intr_0_pio_error_reset_f(void)
204{
205 return 0x10U;
206}
207static inline u32 fifo_intr_0_sched_error_pending_f(void)
208{
209 return 0x100U;
210}
211static inline u32 fifo_intr_0_sched_error_reset_f(void)
212{
213 return 0x100U;
214}
215static inline u32 fifo_intr_0_chsw_error_pending_f(void)
216{
217 return 0x10000U;
218}
219static inline u32 fifo_intr_0_chsw_error_reset_f(void)
220{
221 return 0x10000U;
222}
223static inline u32 fifo_intr_0_fb_flush_timeout_pending_f(void)
224{
225 return 0x800000U;
226}
227static inline u32 fifo_intr_0_fb_flush_timeout_reset_f(void)
228{
229 return 0x800000U;
230}
231static inline u32 fifo_intr_0_lb_error_pending_f(void)
232{
233 return 0x1000000U;
234}
235static inline u32 fifo_intr_0_lb_error_reset_f(void)
236{
237 return 0x1000000U;
238}
239static inline u32 fifo_intr_0_dropped_mmu_fault_pending_f(void)
240{
241 return 0x8000000U;
242}
243static inline u32 fifo_intr_0_dropped_mmu_fault_reset_f(void)
244{
245 return 0x8000000U;
246}
247static inline u32 fifo_intr_0_mmu_fault_pending_f(void)
248{
249 return 0x10000000U;
250}
251static inline u32 fifo_intr_0_pbdma_intr_pending_f(void)
252{
253 return 0x20000000U;
254}
255static inline u32 fifo_intr_0_runlist_event_pending_f(void)
256{
257 return 0x40000000U;
258}
259static inline u32 fifo_intr_0_channel_intr_pending_f(void)
260{
261 return 0x80000000U;
262}
263static inline u32 fifo_intr_en_0_r(void)
264{
265 return 0x00002140U;
266}
267static inline u32 fifo_intr_en_0_sched_error_f(u32 v)
268{
269 return (v & 0x1U) << 8U;
270}
271static inline u32 fifo_intr_en_0_sched_error_m(void)
272{
273 return 0x1U << 8U;
274}
275static inline u32 fifo_intr_en_0_mmu_fault_f(u32 v)
276{
277 return (v & 0x1U) << 28U;
278}
279static inline u32 fifo_intr_en_0_mmu_fault_m(void)
280{
281 return 0x1U << 28U;
282}
283static inline u32 fifo_intr_en_1_r(void)
284{
285 return 0x00002528U;
286}
287static inline u32 fifo_intr_bind_error_r(void)
288{
289 return 0x0000252cU;
290}
291static inline u32 fifo_intr_sched_error_r(void)
292{
293 return 0x0000254cU;
294}
295static inline u32 fifo_intr_sched_error_code_f(u32 v)
296{
297 return (v & 0xffU) << 0U;
298}
299static inline u32 fifo_intr_sched_error_code_ctxsw_timeout_v(void)
300{
301 return 0x0000000aU;
302}
303static inline u32 fifo_intr_chsw_error_r(void)
304{
305 return 0x0000256cU;
306}
307static inline u32 fifo_intr_mmu_fault_id_r(void)
308{
309 return 0x0000259cU;
310}
311static inline u32 fifo_intr_mmu_fault_eng_id_graphics_v(void)
312{
313 return 0x00000000U;
314}
315static inline u32 fifo_intr_mmu_fault_eng_id_graphics_f(void)
316{
317 return 0x0U;
318}
319static inline u32 fifo_intr_mmu_fault_inst_r(u32 i)
320{
321 return 0x00002800U + i*16U;
322}
323static inline u32 fifo_intr_mmu_fault_inst_ptr_v(u32 r)
324{
325 return (r >> 0U) & 0xfffffffU;
326}
327static inline u32 fifo_intr_mmu_fault_inst_ptr_align_shift_v(void)
328{
329 return 0x0000000cU;
330}
331static inline u32 fifo_intr_mmu_fault_lo_r(u32 i)
332{
333 return 0x00002804U + i*16U;
334}
335static inline u32 fifo_intr_mmu_fault_hi_r(u32 i)
336{
337 return 0x00002808U + i*16U;
338}
339static inline u32 fifo_intr_mmu_fault_info_r(u32 i)
340{
341 return 0x0000280cU + i*16U;
342}
343static inline u32 fifo_intr_mmu_fault_info_type_v(u32 r)
344{
345 return (r >> 0U) & 0xfU;
346}
347static inline u32 fifo_intr_mmu_fault_info_write_v(u32 r)
348{
349 return (r >> 7U) & 0x1U;
350}
351static inline u32 fifo_intr_mmu_fault_info_engine_subid_v(u32 r)
352{
353 return (r >> 6U) & 0x1U;
354}
355static inline u32 fifo_intr_mmu_fault_info_engine_subid_gpc_v(void)
356{
357 return 0x00000000U;
358}
359static inline u32 fifo_intr_mmu_fault_info_engine_subid_hub_v(void)
360{
361 return 0x00000001U;
362}
363static inline u32 fifo_intr_mmu_fault_info_client_v(u32 r)
364{
365 return (r >> 8U) & 0x1fU;
366}
367static inline u32 fifo_intr_pbdma_id_r(void)
368{
369 return 0x000025a0U;
370}
371static inline u32 fifo_intr_pbdma_id_status_f(u32 v, u32 i)
372{
373 return (v & 0x1U) << (0U + i*1U);
374}
375static inline u32 fifo_intr_pbdma_id_status_v(u32 r, u32 i)
376{
377 return (r >> (0U + i*1U)) & 0x1U;
378}
379static inline u32 fifo_intr_pbdma_id_status__size_1_v(void)
380{
381 return 0x00000001U;
382}
383static inline u32 fifo_intr_runlist_r(void)
384{
385 return 0x00002a00U;
386}
387static inline u32 fifo_fb_timeout_r(void)
388{
389 return 0x00002a04U;
390}
391static inline u32 fifo_fb_timeout_period_m(void)
392{
393 return 0x3fffffffU << 0U;
394}
395static inline u32 fifo_fb_timeout_period_max_f(void)
396{
397 return 0x3fffffffU;
398}
399static inline u32 fifo_pb_timeout_r(void)
400{
401 return 0x00002a08U;
402}
403static inline u32 fifo_pb_timeout_detection_enabled_f(void)
404{
405 return 0x80000000U;
406}
407static inline u32 fifo_error_sched_disable_r(void)
408{
409 return 0x0000262cU;
410}
411static inline u32 fifo_sched_disable_r(void)
412{
413 return 0x00002630U;
414}
415static inline u32 fifo_sched_disable_runlist_f(u32 v, u32 i)
416{
417 return (v & 0x1U) << (0U + i*1U);
418}
419static inline u32 fifo_sched_disable_runlist_m(u32 i)
420{
421 return 0x1U << (0U + i*1U);
422}
423static inline u32 fifo_sched_disable_true_v(void)
424{
425 return 0x00000001U;
426}
427static inline u32 fifo_preempt_r(void)
428{
429 return 0x00002634U;
430}
431static inline u32 fifo_preempt_pending_true_f(void)
432{
433 return 0x100000U;
434}
435static inline u32 fifo_preempt_type_channel_f(void)
436{
437 return 0x0U;
438}
439static inline u32 fifo_preempt_type_tsg_f(void)
440{
441 return 0x1000000U;
442}
443static inline u32 fifo_preempt_chid_f(u32 v)
444{
445 return (v & 0xfffU) << 0U;
446}
447static inline u32 fifo_preempt_id_f(u32 v)
448{
449 return (v & 0xfffU) << 0U;
450}
451static inline u32 fifo_trigger_mmu_fault_r(u32 i)
452{
453 return 0x00002a30U + i*4U;
454}
455static inline u32 fifo_trigger_mmu_fault_id_f(u32 v)
456{
457 return (v & 0x1fU) << 0U;
458}
459static inline u32 fifo_trigger_mmu_fault_enable_f(u32 v)
460{
461 return (v & 0x1U) << 8U;
462}
463static inline u32 fifo_engine_status_r(u32 i)
464{
465 return 0x00002640U + i*8U;
466}
467static inline u32 fifo_engine_status__size_1_v(void)
468{
469 return 0x00000002U;
470}
471static inline u32 fifo_engine_status_id_v(u32 r)
472{
473 return (r >> 0U) & 0xfffU;
474}
475static inline u32 fifo_engine_status_id_type_v(u32 r)
476{
477 return (r >> 12U) & 0x1U;
478}
479static inline u32 fifo_engine_status_id_type_chid_v(void)
480{
481 return 0x00000000U;
482}
483static inline u32 fifo_engine_status_id_type_tsgid_v(void)
484{
485 return 0x00000001U;
486}
487static inline u32 fifo_engine_status_ctx_status_v(u32 r)
488{
489 return (r >> 13U) & 0x7U;
490}
491static inline u32 fifo_engine_status_ctx_status_invalid_v(void)
492{
493 return 0x00000000U;
494}
495static inline u32 fifo_engine_status_ctx_status_valid_v(void)
496{
497 return 0x00000001U;
498}
499static inline u32 fifo_engine_status_ctx_status_ctxsw_load_v(void)
500{
501 return 0x00000005U;
502}
503static inline u32 fifo_engine_status_ctx_status_ctxsw_save_v(void)
504{
505 return 0x00000006U;
506}
507static inline u32 fifo_engine_status_ctx_status_ctxsw_switch_v(void)
508{
509 return 0x00000007U;
510}
511static inline u32 fifo_engine_status_next_id_v(u32 r)
512{
513 return (r >> 16U) & 0xfffU;
514}
515static inline u32 fifo_engine_status_next_id_type_v(u32 r)
516{
517 return (r >> 28U) & 0x1U;
518}
519static inline u32 fifo_engine_status_next_id_type_chid_v(void)
520{
521 return 0x00000000U;
522}
523static inline u32 fifo_engine_status_faulted_v(u32 r)
524{
525 return (r >> 30U) & 0x1U;
526}
527static inline u32 fifo_engine_status_faulted_true_v(void)
528{
529 return 0x00000001U;
530}
531static inline u32 fifo_engine_status_engine_v(u32 r)
532{
533 return (r >> 31U) & 0x1U;
534}
535static inline u32 fifo_engine_status_engine_idle_v(void)
536{
537 return 0x00000000U;
538}
539static inline u32 fifo_engine_status_engine_busy_v(void)
540{
541 return 0x00000001U;
542}
543static inline u32 fifo_engine_status_ctxsw_v(u32 r)
544{
545 return (r >> 15U) & 0x1U;
546}
547static inline u32 fifo_engine_status_ctxsw_in_progress_v(void)
548{
549 return 0x00000001U;
550}
551static inline u32 fifo_engine_status_ctxsw_in_progress_f(void)
552{
553 return 0x8000U;
554}
555static inline u32 fifo_pbdma_status_r(u32 i)
556{
557 return 0x00003080U + i*4U;
558}
559static inline u32 fifo_pbdma_status__size_1_v(void)
560{
561 return 0x00000001U;
562}
563static inline u32 fifo_pbdma_status_id_v(u32 r)
564{
565 return (r >> 0U) & 0xfffU;
566}
567static inline u32 fifo_pbdma_status_id_type_v(u32 r)
568{
569 return (r >> 12U) & 0x1U;
570}
571static inline u32 fifo_pbdma_status_id_type_chid_v(void)
572{
573 return 0x00000000U;
574}
575static inline u32 fifo_pbdma_status_id_type_tsgid_v(void)
576{
577 return 0x00000001U;
578}
579static inline u32 fifo_pbdma_status_chan_status_v(u32 r)
580{
581 return (r >> 13U) & 0x7U;
582}
583static inline u32 fifo_pbdma_status_chan_status_valid_v(void)
584{
585 return 0x00000001U;
586}
587static inline u32 fifo_pbdma_status_chan_status_chsw_load_v(void)
588{
589 return 0x00000005U;
590}
591static inline u32 fifo_pbdma_status_chan_status_chsw_save_v(void)
592{
593 return 0x00000006U;
594}
595static inline u32 fifo_pbdma_status_chan_status_chsw_switch_v(void)
596{
597 return 0x00000007U;
598}
599static inline u32 fifo_pbdma_status_next_id_v(u32 r)
600{
601 return (r >> 16U) & 0xfffU;
602}
603static inline u32 fifo_pbdma_status_next_id_type_v(u32 r)
604{
605 return (r >> 28U) & 0x1U;
606}
607static inline u32 fifo_pbdma_status_next_id_type_chid_v(void)
608{
609 return 0x00000000U;
610}
611static inline u32 fifo_pbdma_status_chsw_v(u32 r)
612{
613 return (r >> 15U) & 0x1U;
614}
615static inline u32 fifo_pbdma_status_chsw_in_progress_v(void)
616{
617 return 0x00000001U;
618}
619#endif
diff --git a/include/nvgpu/hw/gk20a/hw_flush_gk20a.h b/include/nvgpu/hw/gk20a/hw_flush_gk20a.h
new file mode 100644
index 0000000..d270b5f
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_flush_gk20a.h
@@ -0,0 +1,187 @@
1/*
2 * Copyright (c) 2012-2017, 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_flush_gk20a_h_
57#define _hw_flush_gk20a_h_
58
59static inline u32 flush_l2_system_invalidate_r(void)
60{
61 return 0x00070004U;
62}
63static inline u32 flush_l2_system_invalidate_pending_v(u32 r)
64{
65 return (r >> 0U) & 0x1U;
66}
67static inline u32 flush_l2_system_invalidate_pending_busy_v(void)
68{
69 return 0x00000001U;
70}
71static inline u32 flush_l2_system_invalidate_pending_busy_f(void)
72{
73 return 0x1U;
74}
75static inline u32 flush_l2_system_invalidate_outstanding_v(u32 r)
76{
77 return (r >> 1U) & 0x1U;
78}
79static inline u32 flush_l2_system_invalidate_outstanding_true_v(void)
80{
81 return 0x00000001U;
82}
83static inline u32 flush_l2_flush_dirty_r(void)
84{
85 return 0x00070010U;
86}
87static inline u32 flush_l2_flush_dirty_pending_v(u32 r)
88{
89 return (r >> 0U) & 0x1U;
90}
91static inline u32 flush_l2_flush_dirty_pending_empty_v(void)
92{
93 return 0x00000000U;
94}
95static inline u32 flush_l2_flush_dirty_pending_empty_f(void)
96{
97 return 0x0U;
98}
99static inline u32 flush_l2_flush_dirty_pending_busy_v(void)
100{
101 return 0x00000001U;
102}
103static inline u32 flush_l2_flush_dirty_pending_busy_f(void)
104{
105 return 0x1U;
106}
107static inline u32 flush_l2_flush_dirty_outstanding_v(u32 r)
108{
109 return (r >> 1U) & 0x1U;
110}
111static inline u32 flush_l2_flush_dirty_outstanding_false_v(void)
112{
113 return 0x00000000U;
114}
115static inline u32 flush_l2_flush_dirty_outstanding_false_f(void)
116{
117 return 0x0U;
118}
119static inline u32 flush_l2_flush_dirty_outstanding_true_v(void)
120{
121 return 0x00000001U;
122}
123static inline u32 flush_l2_clean_comptags_r(void)
124{
125 return 0x0007000cU;
126}
127static inline u32 flush_l2_clean_comptags_pending_v(u32 r)
128{
129 return (r >> 0U) & 0x1U;
130}
131static inline u32 flush_l2_clean_comptags_pending_empty_v(void)
132{
133 return 0x00000000U;
134}
135static inline u32 flush_l2_clean_comptags_pending_empty_f(void)
136{
137 return 0x0U;
138}
139static inline u32 flush_l2_clean_comptags_pending_busy_v(void)
140{
141 return 0x00000001U;
142}
143static inline u32 flush_l2_clean_comptags_pending_busy_f(void)
144{
145 return 0x1U;
146}
147static inline u32 flush_l2_clean_comptags_outstanding_v(u32 r)
148{
149 return (r >> 1U) & 0x1U;
150}
151static inline u32 flush_l2_clean_comptags_outstanding_false_v(void)
152{
153 return 0x00000000U;
154}
155static inline u32 flush_l2_clean_comptags_outstanding_false_f(void)
156{
157 return 0x0U;
158}
159static inline u32 flush_l2_clean_comptags_outstanding_true_v(void)
160{
161 return 0x00000001U;
162}
163static inline u32 flush_fb_flush_r(void)
164{
165 return 0x00070000U;
166}
167static inline u32 flush_fb_flush_pending_v(u32 r)
168{
169 return (r >> 0U) & 0x1U;
170}
171static inline u32 flush_fb_flush_pending_busy_v(void)
172{
173 return 0x00000001U;
174}
175static inline u32 flush_fb_flush_pending_busy_f(void)
176{
177 return 0x1U;
178}
179static inline u32 flush_fb_flush_outstanding_v(u32 r)
180{
181 return (r >> 1U) & 0x1U;
182}
183static inline u32 flush_fb_flush_outstanding_true_v(void)
184{
185 return 0x00000001U;
186}
187#endif
diff --git a/include/nvgpu/hw/gk20a/hw_gmmu_gk20a.h b/include/nvgpu/hw/gk20a/hw_gmmu_gk20a.h
new file mode 100644
index 0000000..a788d1d
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_gmmu_gk20a.h
@@ -0,0 +1,283 @@
1/*
2 * Copyright (c) 2012-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_gmmu_gk20a_h_
57#define _hw_gmmu_gk20a_h_
58
59static inline u32 gmmu_pde_aperture_big_w(void)
60{
61 return 0U;
62}
63static inline u32 gmmu_pde_aperture_big_invalid_f(void)
64{
65 return 0x0U;
66}
67static inline u32 gmmu_pde_aperture_big_video_memory_f(void)
68{
69 return 0x1U;
70}
71static inline u32 gmmu_pde_aperture_big_sys_mem_coh_f(void)
72{
73 return 0x2U;
74}
75static inline u32 gmmu_pde_aperture_big_sys_mem_ncoh_f(void)
76{
77 return 0x3U;
78}
79static inline u32 gmmu_pde_size_w(void)
80{
81 return 0U;
82}
83static inline u32 gmmu_pde_size_full_f(void)
84{
85 return 0x0U;
86}
87static inline u32 gmmu_pde_address_big_sys_f(u32 v)
88{
89 return (v & 0xfffffffU) << 4U;
90}
91static inline u32 gmmu_pde_address_big_sys_w(void)
92{
93 return 0U;
94}
95static inline u32 gmmu_pde_aperture_small_w(void)
96{
97 return 1U;
98}
99static inline u32 gmmu_pde_aperture_small_invalid_f(void)
100{
101 return 0x0U;
102}
103static inline u32 gmmu_pde_aperture_small_video_memory_f(void)
104{
105 return 0x1U;
106}
107static inline u32 gmmu_pde_aperture_small_sys_mem_coh_f(void)
108{
109 return 0x2U;
110}
111static inline u32 gmmu_pde_aperture_small_sys_mem_ncoh_f(void)
112{
113 return 0x3U;
114}
115static inline u32 gmmu_pde_vol_small_w(void)
116{
117 return 1U;
118}
119static inline u32 gmmu_pde_vol_small_true_f(void)
120{
121 return 0x4U;
122}
123static inline u32 gmmu_pde_vol_small_false_f(void)
124{
125 return 0x0U;
126}
127static inline u32 gmmu_pde_vol_big_w(void)
128{
129 return 1U;
130}
131static inline u32 gmmu_pde_vol_big_true_f(void)
132{
133 return 0x8U;
134}
135static inline u32 gmmu_pde_vol_big_false_f(void)
136{
137 return 0x0U;
138}
139static inline u32 gmmu_pde_address_small_sys_f(u32 v)
140{
141 return (v & 0xfffffffU) << 4U;
142}
143static inline u32 gmmu_pde_address_small_sys_w(void)
144{
145 return 1U;
146}
147static inline u32 gmmu_pde_address_shift_v(void)
148{
149 return 0x0000000cU;
150}
151static inline u32 gmmu_pde__size_v(void)
152{
153 return 0x00000008U;
154}
155static inline u32 gmmu_pte__size_v(void)
156{
157 return 0x00000008U;
158}
159static inline u32 gmmu_pte_valid_w(void)
160{
161 return 0U;
162}
163static inline u32 gmmu_pte_valid_true_f(void)
164{
165 return 0x1U;
166}
167static inline u32 gmmu_pte_valid_false_f(void)
168{
169 return 0x0U;
170}
171static inline u32 gmmu_pte_privilege_w(void)
172{
173 return 0U;
174}
175static inline u32 gmmu_pte_privilege_true_f(void)
176{
177 return 0x2U;
178}
179static inline u32 gmmu_pte_privilege_false_f(void)
180{
181 return 0x0U;
182}
183static inline u32 gmmu_pte_address_sys_f(u32 v)
184{
185 return (v & 0xfffffffU) << 4U;
186}
187static inline u32 gmmu_pte_address_sys_w(void)
188{
189 return 0U;
190}
191static inline u32 gmmu_pte_address_vid_f(u32 v)
192{
193 return (v & 0x1ffffffU) << 4U;
194}
195static inline u32 gmmu_pte_address_vid_w(void)
196{
197 return 0U;
198}
199static inline u32 gmmu_pte_vol_w(void)
200{
201 return 1U;
202}
203static inline u32 gmmu_pte_vol_true_f(void)
204{
205 return 0x1U;
206}
207static inline u32 gmmu_pte_vol_false_f(void)
208{
209 return 0x0U;
210}
211static inline u32 gmmu_pte_aperture_w(void)
212{
213 return 1U;
214}
215static inline u32 gmmu_pte_aperture_video_memory_f(void)
216{
217 return 0x0U;
218}
219static inline u32 gmmu_pte_aperture_sys_mem_coh_f(void)
220{
221 return 0x4U;
222}
223static inline u32 gmmu_pte_aperture_sys_mem_ncoh_f(void)
224{
225 return 0x6U;
226}
227static inline u32 gmmu_pte_read_only_w(void)
228{
229 return 0U;
230}
231static inline u32 gmmu_pte_read_only_true_f(void)
232{
233 return 0x4U;
234}
235static inline u32 gmmu_pte_write_disable_w(void)
236{
237 return 1U;
238}
239static inline u32 gmmu_pte_write_disable_true_f(void)
240{
241 return 0x80000000U;
242}
243static inline u32 gmmu_pte_read_disable_w(void)
244{
245 return 1U;
246}
247static inline u32 gmmu_pte_read_disable_true_f(void)
248{
249 return 0x40000000U;
250}
251static inline u32 gmmu_pte_comptagline_s(void)
252{
253 return 17U;
254}
255static inline u32 gmmu_pte_comptagline_f(u32 v)
256{
257 return (v & 0x1ffffU) << 12U;
258}
259static inline u32 gmmu_pte_comptagline_w(void)
260{
261 return 1U;
262}
263static inline u32 gmmu_pte_address_shift_v(void)
264{
265 return 0x0000000cU;
266}
267static inline u32 gmmu_pte_kind_f(u32 v)
268{
269 return (v & 0xffU) << 4U;
270}
271static inline u32 gmmu_pte_kind_w(void)
272{
273 return 1U;
274}
275static inline u32 gmmu_pte_kind_invalid_v(void)
276{
277 return 0x000000ffU;
278}
279static inline u32 gmmu_pte_kind_pitch_v(void)
280{
281 return 0x00000000U;
282}
283#endif
diff --git a/include/nvgpu/hw/gk20a/hw_gr_gk20a.h b/include/nvgpu/hw/gk20a/hw_gr_gk20a.h
new file mode 100644
index 0000000..826108f
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_gr_gk20a.h
@@ -0,0 +1,3807 @@
1/*
2 * Copyright (c) 2014-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_gr_gk20a_h_
57#define _hw_gr_gk20a_h_
58
59static inline u32 gr_intr_r(void)
60{
61 return 0x00400100U;
62}
63static inline u32 gr_intr_notify_pending_f(void)
64{
65 return 0x1U;
66}
67static inline u32 gr_intr_notify_reset_f(void)
68{
69 return 0x1U;
70}
71static inline u32 gr_intr_semaphore_pending_f(void)
72{
73 return 0x2U;
74}
75static inline u32 gr_intr_semaphore_reset_f(void)
76{
77 return 0x2U;
78}
79static inline u32 gr_intr_semaphore_timeout_not_pending_f(void)
80{
81 return 0x0U;
82}
83static inline u32 gr_intr_semaphore_timeout_pending_f(void)
84{
85 return 0x4U;
86}
87static inline u32 gr_intr_semaphore_timeout_reset_f(void)
88{
89 return 0x4U;
90}
91static inline u32 gr_intr_illegal_method_pending_f(void)
92{
93 return 0x10U;
94}
95static inline u32 gr_intr_illegal_method_reset_f(void)
96{
97 return 0x10U;
98}
99static inline u32 gr_intr_illegal_notify_pending_f(void)
100{
101 return 0x40U;
102}
103static inline u32 gr_intr_illegal_notify_reset_f(void)
104{
105 return 0x40U;
106}
107static inline u32 gr_intr_firmware_method_f(u32 v)
108{
109 return (v & 0x1U) << 8U;
110}
111static inline u32 gr_intr_firmware_method_pending_f(void)
112{
113 return 0x100U;
114}
115static inline u32 gr_intr_firmware_method_reset_f(void)
116{
117 return 0x100U;
118}
119static inline u32 gr_intr_illegal_class_pending_f(void)
120{
121 return 0x20U;
122}
123static inline u32 gr_intr_illegal_class_reset_f(void)
124{
125 return 0x20U;
126}
127static inline u32 gr_intr_fecs_error_pending_f(void)
128{
129 return 0x80000U;
130}
131static inline u32 gr_intr_fecs_error_reset_f(void)
132{
133 return 0x80000U;
134}
135static inline u32 gr_intr_class_error_pending_f(void)
136{
137 return 0x100000U;
138}
139static inline u32 gr_intr_class_error_reset_f(void)
140{
141 return 0x100000U;
142}
143static inline u32 gr_intr_exception_pending_f(void)
144{
145 return 0x200000U;
146}
147static inline u32 gr_intr_exception_reset_f(void)
148{
149 return 0x200000U;
150}
151static inline u32 gr_fecs_intr_r(void)
152{
153 return 0x00400144U;
154}
155static inline u32 gr_class_error_r(void)
156{
157 return 0x00400110U;
158}
159static inline u32 gr_class_error_code_v(u32 r)
160{
161 return (r >> 0U) & 0xffffU;
162}
163static inline u32 gr_intr_nonstall_r(void)
164{
165 return 0x00400120U;
166}
167static inline u32 gr_intr_nonstall_trap_pending_f(void)
168{
169 return 0x2U;
170}
171static inline u32 gr_intr_en_r(void)
172{
173 return 0x0040013cU;
174}
175static inline u32 gr_exception_r(void)
176{
177 return 0x00400108U;
178}
179static inline u32 gr_exception_fe_m(void)
180{
181 return 0x1U << 0U;
182}
183static inline u32 gr_exception_gpc_m(void)
184{
185 return 0x1U << 24U;
186}
187static inline u32 gr_exception_memfmt_m(void)
188{
189 return 0x1U << 1U;
190}
191static inline u32 gr_exception_ds_m(void)
192{
193 return 0x1U << 4U;
194}
195static inline u32 gr_exception_sked_m(void)
196{
197 return 0x1U << 8U;
198}
199static inline u32 gr_exception_pd_m(void)
200{
201 return 0x1U << 2U;
202}
203static inline u32 gr_exception_scc_m(void)
204{
205 return 0x1U << 3U;
206}
207static inline u32 gr_exception_ssync_m(void)
208{
209 return 0x1U << 5U;
210}
211static inline u32 gr_exception_mme_m(void)
212{
213 return 0x1U << 7U;
214}
215static inline u32 gr_exception1_r(void)
216{
217 return 0x00400118U;
218}
219static inline u32 gr_exception1_gpc_0_pending_f(void)
220{
221 return 0x1U;
222}
223static inline u32 gr_exception2_r(void)
224{
225 return 0x0040011cU;
226}
227static inline u32 gr_exception_en_r(void)
228{
229 return 0x00400138U;
230}
231static inline u32 gr_exception_en_fe_m(void)
232{
233 return 0x1U << 0U;
234}
235static inline u32 gr_exception1_en_r(void)
236{
237 return 0x00400130U;
238}
239static inline u32 gr_exception2_en_r(void)
240{
241 return 0x00400134U;
242}
243static inline u32 gr_gpfifo_ctl_r(void)
244{
245 return 0x00400500U;
246}
247static inline u32 gr_gpfifo_ctl_access_f(u32 v)
248{
249 return (v & 0x1U) << 0U;
250}
251static inline u32 gr_gpfifo_ctl_access_disabled_f(void)
252{
253 return 0x0U;
254}
255static inline u32 gr_gpfifo_ctl_access_enabled_f(void)
256{
257 return 0x1U;
258}
259static inline u32 gr_gpfifo_ctl_semaphore_access_f(u32 v)
260{
261 return (v & 0x1U) << 16U;
262}
263static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_v(void)
264{
265 return 0x00000001U;
266}
267static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_f(void)
268{
269 return 0x10000U;
270}
271static inline u32 gr_gpfifo_status_r(void)
272{
273 return 0x00400504U;
274}
275static inline u32 gr_trapped_addr_r(void)
276{
277 return 0x00400704U;
278}
279static inline u32 gr_trapped_addr_mthd_v(u32 r)
280{
281 return (r >> 2U) & 0xfffU;
282}
283static inline u32 gr_trapped_addr_subch_v(u32 r)
284{
285 return (r >> 16U) & 0x7U;
286}
287static inline u32 gr_trapped_addr_mme_generated_v(u32 r)
288{
289 return (r >> 20U) & 0x1U;
290}
291static inline u32 gr_trapped_addr_datahigh_v(u32 r)
292{
293 return (r >> 24U) & 0x1U;
294}
295static inline u32 gr_trapped_addr_priv_v(u32 r)
296{
297 return (r >> 28U) & 0x1U;
298}
299static inline u32 gr_trapped_addr_status_v(u32 r)
300{
301 return (r >> 31U) & 0x1U;
302}
303static inline u32 gr_trapped_data_lo_r(void)
304{
305 return 0x00400708U;
306}
307static inline u32 gr_trapped_data_hi_r(void)
308{
309 return 0x0040070cU;
310}
311static inline u32 gr_trapped_data_mme_r(void)
312{
313 return 0x00400710U;
314}
315static inline u32 gr_trapped_data_mme_pc_v(u32 r)
316{
317 return (r >> 0U) & 0x7ffU;
318}
319static inline u32 gr_status_r(void)
320{
321 return 0x00400700U;
322}
323static inline u32 gr_status_fe_method_upper_v(u32 r)
324{
325 return (r >> 1U) & 0x1U;
326}
327static inline u32 gr_status_fe_method_lower_v(u32 r)
328{
329 return (r >> 2U) & 0x1U;
330}
331static inline u32 gr_status_fe_method_lower_idle_v(void)
332{
333 return 0x00000000U;
334}
335static inline u32 gr_status_fe_gi_v(u32 r)
336{
337 return (r >> 21U) & 0x1U;
338}
339static inline u32 gr_status_mask_r(void)
340{
341 return 0x00400610U;
342}
343static inline u32 gr_status_1_r(void)
344{
345 return 0x00400604U;
346}
347static inline u32 gr_status_2_r(void)
348{
349 return 0x00400608U;
350}
351static inline u32 gr_engine_status_r(void)
352{
353 return 0x0040060cU;
354}
355static inline u32 gr_engine_status_value_busy_f(void)
356{
357 return 0x1U;
358}
359static inline u32 gr_pri_be0_becs_be_exception_r(void)
360{
361 return 0x00410204U;
362}
363static inline u32 gr_pri_be0_becs_be_exception_en_r(void)
364{
365 return 0x00410208U;
366}
367static inline u32 gr_pri_gpc0_gpccs_gpc_exception_r(void)
368{
369 return 0x00502c90U;
370}
371static inline u32 gr_pri_gpc0_gpccs_gpc_exception_en_r(void)
372{
373 return 0x00502c94U;
374}
375static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_r(void)
376{
377 return 0x00504508U;
378}
379static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
380{
381 return 0x0050450cU;
382}
383static inline u32 gr_activity_0_r(void)
384{
385 return 0x00400380U;
386}
387static inline u32 gr_activity_1_r(void)
388{
389 return 0x00400384U;
390}
391static inline u32 gr_activity_2_r(void)
392{
393 return 0x00400388U;
394}
395static inline u32 gr_activity_4_r(void)
396{
397 return 0x00400390U;
398}
399static inline u32 gr_pri_gpc0_gcc_dbg_r(void)
400{
401 return 0x00501000U;
402}
403static inline u32 gr_pri_gpcs_gcc_dbg_r(void)
404{
405 return 0x00419000U;
406}
407static inline u32 gr_pri_gpcs_gcc_dbg_invalidate_m(void)
408{
409 return 0x1U << 1U;
410}
411static inline u32 gr_pri_gpc0_tpc0_sm_cache_control_r(void)
412{
413 return 0x005046a4U;
414}
415static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_r(void)
416{
417 return 0x00419ea4U;
418}
419static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_invalidate_cache_m(void)
420{
421 return 0x1U << 0U;
422}
423static inline u32 gr_pri_sked_activity_r(void)
424{
425 return 0x00407054U;
426}
427static inline u32 gr_pri_gpc0_gpccs_gpc_activity0_r(void)
428{
429 return 0x00502c80U;
430}
431static inline u32 gr_pri_gpc0_gpccs_gpc_activity1_r(void)
432{
433 return 0x00502c84U;
434}
435static inline u32 gr_pri_gpc0_gpccs_gpc_activity2_r(void)
436{
437 return 0x00502c88U;
438}
439static inline u32 gr_pri_gpc0_gpccs_gpc_activity3_r(void)
440{
441 return 0x00502c8cU;
442}
443static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_activity_0_r(void)
444{
445 return 0x00504500U;
446}
447static inline u32 gr_pri_gpc0_tpcs_tpccs_tpc_activity_0_r(void)
448{
449 return 0x00501d00U;
450}
451static inline u32 gr_pri_gpcs_gpccs_gpc_activity_0_r(void)
452{
453 return 0x0041ac80U;
454}
455static inline u32 gr_pri_gpcs_gpccs_gpc_activity_1_r(void)
456{
457 return 0x0041ac84U;
458}
459static inline u32 gr_pri_gpcs_gpccs_gpc_activity_2_r(void)
460{
461 return 0x0041ac88U;
462}
463static inline u32 gr_pri_gpcs_gpccs_gpc_activity_3_r(void)
464{
465 return 0x0041ac8cU;
466}
467static inline u32 gr_pri_gpcs_tpc0_tpccs_tpc_activity_0_r(void)
468{
469 return 0x0041c500U;
470}
471static inline u32 gr_pri_gpcs_tpcs_tpccs_tpc_activity_0_r(void)
472{
473 return 0x00419d00U;
474}
475static inline u32 gr_pri_be0_becs_be_activity0_r(void)
476{
477 return 0x00410200U;
478}
479static inline u32 gr_pri_bes_becs_be_activity0_r(void)
480{
481 return 0x00408a00U;
482}
483static inline u32 gr_pri_ds_mpipe_status_r(void)
484{
485 return 0x00405858U;
486}
487static inline u32 gr_pri_fe_go_idle_on_status_r(void)
488{
489 return 0x00404150U;
490}
491static inline u32 gr_pri_fe_go_idle_check_r(void)
492{
493 return 0x00404158U;
494}
495static inline u32 gr_pri_fe_go_idle_info_r(void)
496{
497 return 0x00404194U;
498}
499static inline u32 gr_pri_gpc0_tpc0_tex_m_tex_subunits_status_r(void)
500{
501 return 0x00504238U;
502}
503static inline u32 gr_pri_be0_crop_status1_r(void)
504{
505 return 0x00410134U;
506}
507static inline u32 gr_pri_bes_crop_status1_r(void)
508{
509 return 0x00408934U;
510}
511static inline u32 gr_pri_be0_zrop_status_r(void)
512{
513 return 0x00410048U;
514}
515static inline u32 gr_pri_be0_zrop_status2_r(void)
516{
517 return 0x0041004cU;
518}
519static inline u32 gr_pri_bes_zrop_status_r(void)
520{
521 return 0x00408848U;
522}
523static inline u32 gr_pri_bes_zrop_status2_r(void)
524{
525 return 0x0040884cU;
526}
527static inline u32 gr_pipe_bundle_address_r(void)
528{
529 return 0x00400200U;
530}
531static inline u32 gr_pipe_bundle_address_value_v(u32 r)
532{
533 return (r >> 0U) & 0xffffU;
534}
535static inline u32 gr_pipe_bundle_data_r(void)
536{
537 return 0x00400204U;
538}
539static inline u32 gr_pipe_bundle_config_r(void)
540{
541 return 0x00400208U;
542}
543static inline u32 gr_pipe_bundle_config_override_pipe_mode_disabled_f(void)
544{
545 return 0x0U;
546}
547static inline u32 gr_pipe_bundle_config_override_pipe_mode_enabled_f(void)
548{
549 return 0x80000000U;
550}
551static inline u32 gr_fe_hww_esr_r(void)
552{
553 return 0x00404000U;
554}
555static inline u32 gr_fe_hww_esr_reset_active_f(void)
556{
557 return 0x40000000U;
558}
559static inline u32 gr_fe_hww_esr_en_enable_f(void)
560{
561 return 0x80000000U;
562}
563static inline u32 gr_fe_hww_esr_info_r(void)
564{
565 return 0x004041b0U;
566}
567static inline u32 gr_fe_go_idle_timeout_r(void)
568{
569 return 0x00404154U;
570}
571static inline u32 gr_fe_go_idle_timeout_count_f(u32 v)
572{
573 return (v & 0xffffffffU) << 0U;
574}
575static inline u32 gr_fe_go_idle_timeout_count_disabled_f(void)
576{
577 return 0x0U;
578}
579static inline u32 gr_fe_go_idle_timeout_count_prod_f(void)
580{
581 return 0x800U;
582}
583static inline u32 gr_fe_object_table_r(u32 i)
584{
585 return 0x00404200U + i*4U;
586}
587static inline u32 gr_fe_object_table_nvclass_v(u32 r)
588{
589 return (r >> 0U) & 0xffffU;
590}
591static inline u32 gr_pri_mme_shadow_raw_index_r(void)
592{
593 return 0x00404488U;
594}
595static inline u32 gr_pri_mme_shadow_raw_index_write_trigger_f(void)
596{
597 return 0x80000000U;
598}
599static inline u32 gr_pri_mme_shadow_raw_data_r(void)
600{
601 return 0x0040448cU;
602}
603static inline u32 gr_mme_hww_esr_r(void)
604{
605 return 0x00404490U;
606}
607static inline u32 gr_mme_hww_esr_reset_active_f(void)
608{
609 return 0x40000000U;
610}
611static inline u32 gr_mme_hww_esr_en_enable_f(void)
612{
613 return 0x80000000U;
614}
615static inline u32 gr_mme_hww_esr_info_r(void)
616{
617 return 0x00404494U;
618}
619static inline u32 gr_memfmt_hww_esr_r(void)
620{
621 return 0x00404600U;
622}
623static inline u32 gr_memfmt_hww_esr_reset_active_f(void)
624{
625 return 0x40000000U;
626}
627static inline u32 gr_memfmt_hww_esr_en_enable_f(void)
628{
629 return 0x80000000U;
630}
631static inline u32 gr_fecs_cpuctl_r(void)
632{
633 return 0x00409100U;
634}
635static inline u32 gr_fecs_cpuctl_startcpu_f(u32 v)
636{
637 return (v & 0x1U) << 1U;
638}
639static inline u32 gr_fecs_dmactl_r(void)
640{
641 return 0x0040910cU;
642}
643static inline u32 gr_fecs_dmactl_require_ctx_f(u32 v)
644{
645 return (v & 0x1U) << 0U;
646}
647static inline u32 gr_fecs_dmactl_dmem_scrubbing_m(void)
648{
649 return 0x1U << 1U;
650}
651static inline u32 gr_fecs_dmactl_imem_scrubbing_m(void)
652{
653 return 0x1U << 2U;
654}
655static inline u32 gr_fecs_os_r(void)
656{
657 return 0x00409080U;
658}
659static inline u32 gr_fecs_idlestate_r(void)
660{
661 return 0x0040904cU;
662}
663static inline u32 gr_fecs_mailbox0_r(void)
664{
665 return 0x00409040U;
666}
667static inline u32 gr_fecs_mailbox1_r(void)
668{
669 return 0x00409044U;
670}
671static inline u32 gr_fecs_irqstat_r(void)
672{
673 return 0x00409008U;
674}
675static inline u32 gr_fecs_irqmode_r(void)
676{
677 return 0x0040900cU;
678}
679static inline u32 gr_fecs_irqmask_r(void)
680{
681 return 0x00409018U;
682}
683static inline u32 gr_fecs_irqdest_r(void)
684{
685 return 0x0040901cU;
686}
687static inline u32 gr_fecs_curctx_r(void)
688{
689 return 0x00409050U;
690}
691static inline u32 gr_fecs_nxtctx_r(void)
692{
693 return 0x00409054U;
694}
695static inline u32 gr_fecs_engctl_r(void)
696{
697 return 0x004090a4U;
698}
699static inline u32 gr_fecs_debug1_r(void)
700{
701 return 0x00409090U;
702}
703static inline u32 gr_fecs_debuginfo_r(void)
704{
705 return 0x00409094U;
706}
707static inline u32 gr_fecs_icd_cmd_r(void)
708{
709 return 0x00409200U;
710}
711static inline u32 gr_fecs_icd_cmd_opc_s(void)
712{
713 return 4U;
714}
715static inline u32 gr_fecs_icd_cmd_opc_f(u32 v)
716{
717 return (v & 0xfU) << 0U;
718}
719static inline u32 gr_fecs_icd_cmd_opc_m(void)
720{
721 return 0xfU << 0U;
722}
723static inline u32 gr_fecs_icd_cmd_opc_v(u32 r)
724{
725 return (r >> 0U) & 0xfU;
726}
727static inline u32 gr_fecs_icd_cmd_opc_rreg_f(void)
728{
729 return 0x8U;
730}
731static inline u32 gr_fecs_icd_cmd_opc_rstat_f(void)
732{
733 return 0xeU;
734}
735static inline u32 gr_fecs_icd_cmd_idx_f(u32 v)
736{
737 return (v & 0x1fU) << 8U;
738}
739static inline u32 gr_fecs_icd_rdata_r(void)
740{
741 return 0x0040920cU;
742}
743static inline u32 gr_fecs_imemc_r(u32 i)
744{
745 return 0x00409180U + i*16U;
746}
747static inline u32 gr_fecs_imemc_offs_f(u32 v)
748{
749 return (v & 0x3fU) << 2U;
750}
751static inline u32 gr_fecs_imemc_blk_f(u32 v)
752{
753 return (v & 0xffU) << 8U;
754}
755static inline u32 gr_fecs_imemc_aincw_f(u32 v)
756{
757 return (v & 0x1U) << 24U;
758}
759static inline u32 gr_fecs_imemd_r(u32 i)
760{
761 return 0x00409184U + i*16U;
762}
763static inline u32 gr_fecs_imemt_r(u32 i)
764{
765 return 0x00409188U + i*16U;
766}
767static inline u32 gr_fecs_imemt_tag_f(u32 v)
768{
769 return (v & 0xffffU) << 0U;
770}
771static inline u32 gr_fecs_dmemc_r(u32 i)
772{
773 return 0x004091c0U + i*8U;
774}
775static inline u32 gr_fecs_dmemc_offs_s(void)
776{
777 return 6U;
778}
779static inline u32 gr_fecs_dmemc_offs_f(u32 v)
780{
781 return (v & 0x3fU) << 2U;
782}
783static inline u32 gr_fecs_dmemc_offs_m(void)
784{
785 return 0x3fU << 2U;
786}
787static inline u32 gr_fecs_dmemc_offs_v(u32 r)
788{
789 return (r >> 2U) & 0x3fU;
790}
791static inline u32 gr_fecs_dmemc_blk_f(u32 v)
792{
793 return (v & 0xffU) << 8U;
794}
795static inline u32 gr_fecs_dmemc_aincw_f(u32 v)
796{
797 return (v & 0x1U) << 24U;
798}
799static inline u32 gr_fecs_dmemd_r(u32 i)
800{
801 return 0x004091c4U + i*8U;
802}
803static inline u32 gr_fecs_dmatrfbase_r(void)
804{
805 return 0x00409110U;
806}
807static inline u32 gr_fecs_dmatrfmoffs_r(void)
808{
809 return 0x00409114U;
810}
811static inline u32 gr_fecs_dmatrffboffs_r(void)
812{
813 return 0x0040911cU;
814}
815static inline u32 gr_fecs_dmatrfcmd_r(void)
816{
817 return 0x00409118U;
818}
819static inline u32 gr_fecs_dmatrfcmd_imem_f(u32 v)
820{
821 return (v & 0x1U) << 4U;
822}
823static inline u32 gr_fecs_dmatrfcmd_write_f(u32 v)
824{
825 return (v & 0x1U) << 5U;
826}
827static inline u32 gr_fecs_dmatrfcmd_size_f(u32 v)
828{
829 return (v & 0x7U) << 8U;
830}
831static inline u32 gr_fecs_dmatrfcmd_ctxdma_f(u32 v)
832{
833 return (v & 0x7U) << 12U;
834}
835static inline u32 gr_fecs_bootvec_r(void)
836{
837 return 0x00409104U;
838}
839static inline u32 gr_fecs_bootvec_vec_f(u32 v)
840{
841 return (v & 0xffffffffU) << 0U;
842}
843static inline u32 gr_fecs_falcon_hwcfg_r(void)
844{
845 return 0x00409108U;
846}
847static inline u32 gr_gpcs_gpccs_falcon_hwcfg_r(void)
848{
849 return 0x0041a108U;
850}
851static inline u32 gr_fecs_falcon_rm_r(void)
852{
853 return 0x00409084U;
854}
855static inline u32 gr_fecs_current_ctx_r(void)
856{
857 return 0x00409b00U;
858}
859static inline u32 gr_fecs_current_ctx_ptr_f(u32 v)
860{
861 return (v & 0xfffffffU) << 0U;
862}
863static inline u32 gr_fecs_current_ctx_ptr_v(u32 r)
864{
865 return (r >> 0U) & 0xfffffffU;
866}
867static inline u32 gr_fecs_current_ctx_target_s(void)
868{
869 return 2U;
870}
871static inline u32 gr_fecs_current_ctx_target_f(u32 v)
872{
873 return (v & 0x3U) << 28U;
874}
875static inline u32 gr_fecs_current_ctx_target_m(void)
876{
877 return 0x3U << 28U;
878}
879static inline u32 gr_fecs_current_ctx_target_v(u32 r)
880{
881 return (r >> 28U) & 0x3U;
882}
883static inline u32 gr_fecs_current_ctx_target_vid_mem_f(void)
884{
885 return 0x0U;
886}
887static inline u32 gr_fecs_current_ctx_target_sys_mem_coh_f(void)
888{
889 return 0x20000000U;
890}
891static inline u32 gr_fecs_current_ctx_target_sys_mem_ncoh_f(void)
892{
893 return 0x30000000U;
894}
895static inline u32 gr_fecs_current_ctx_valid_s(void)
896{
897 return 1U;
898}
899static inline u32 gr_fecs_current_ctx_valid_f(u32 v)
900{
901 return (v & 0x1U) << 31U;
902}
903static inline u32 gr_fecs_current_ctx_valid_m(void)
904{
905 return 0x1U << 31U;
906}
907static inline u32 gr_fecs_current_ctx_valid_v(u32 r)
908{
909 return (r >> 31U) & 0x1U;
910}
911static inline u32 gr_fecs_current_ctx_valid_false_f(void)
912{
913 return 0x0U;
914}
915static inline u32 gr_fecs_method_data_r(void)
916{
917 return 0x00409500U;
918}
919static inline u32 gr_fecs_method_push_r(void)
920{
921 return 0x00409504U;
922}
923static inline u32 gr_fecs_method_push_adr_f(u32 v)
924{
925 return (v & 0xfffU) << 0U;
926}
927static inline u32 gr_fecs_method_push_adr_bind_pointer_v(void)
928{
929 return 0x00000003U;
930}
931static inline u32 gr_fecs_method_push_adr_bind_pointer_f(void)
932{
933 return 0x3U;
934}
935static inline u32 gr_fecs_method_push_adr_discover_image_size_v(void)
936{
937 return 0x00000010U;
938}
939static inline u32 gr_fecs_method_push_adr_wfi_golden_save_v(void)
940{
941 return 0x00000009U;
942}
943static inline u32 gr_fecs_method_push_adr_restore_golden_v(void)
944{
945 return 0x00000015U;
946}
947static inline u32 gr_fecs_method_push_adr_discover_zcull_image_size_v(void)
948{
949 return 0x00000016U;
950}
951static inline u32 gr_fecs_method_push_adr_discover_pm_image_size_v(void)
952{
953 return 0x00000025U;
954}
955static inline u32 gr_fecs_method_push_adr_discover_reglist_image_size_v(void)
956{
957 return 0x00000030U;
958}
959static inline u32 gr_fecs_method_push_adr_set_reglist_bind_instance_v(void)
960{
961 return 0x00000031U;
962}
963static inline u32 gr_fecs_method_push_adr_set_reglist_virtual_address_v(void)
964{
965 return 0x00000032U;
966}
967static inline u32 gr_fecs_method_push_adr_stop_ctxsw_v(void)
968{
969 return 0x00000038U;
970}
971static inline u32 gr_fecs_method_push_adr_start_ctxsw_v(void)
972{
973 return 0x00000039U;
974}
975static inline u32 gr_fecs_method_push_adr_set_watchdog_timeout_f(void)
976{
977 return 0x21U;
978}
979static inline u32 gr_fecs_method_push_adr_halt_pipeline_v(void)
980{
981 return 0x00000004U;
982}
983static inline u32 gr_fecs_host_int_status_r(void)
984{
985 return 0x00409c18U;
986}
987static inline u32 gr_fecs_host_int_status_fault_during_ctxsw_f(u32 v)
988{
989 return (v & 0x1U) << 16U;
990}
991static inline u32 gr_fecs_host_int_status_umimp_firmware_method_f(u32 v)
992{
993 return (v & 0x1U) << 17U;
994}
995static inline u32 gr_fecs_host_int_status_umimp_illegal_method_f(u32 v)
996{
997 return (v & 0x1U) << 18U;
998}
999static inline u32 gr_fecs_host_int_status_watchdog_active_f(void)
1000{
1001 return 0x80000U;
1002}
1003static inline u32 gr_fecs_host_int_status_ctxsw_intr_f(u32 v)
1004{
1005 return (v & 0xffffU) << 0U;
1006}
1007static inline u32 gr_fecs_host_int_clear_r(void)
1008{
1009 return 0x00409c20U;
1010}
1011static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_f(u32 v)
1012{
1013 return (v & 0x1U) << 1U;
1014}
1015static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_clear_f(void)
1016{
1017 return 0x2U;
1018}
1019static inline u32 gr_fecs_host_int_enable_r(void)
1020{
1021 return 0x00409c24U;
1022}
1023static inline u32 gr_fecs_host_int_enable_ctxsw_intr1_enable_f(void)
1024{
1025 return 0x2U;
1026}
1027static inline u32 gr_fecs_host_int_enable_fault_during_ctxsw_enable_f(void)
1028{
1029 return 0x10000U;
1030}
1031static inline u32 gr_fecs_host_int_enable_umimp_firmware_method_enable_f(void)
1032{
1033 return 0x20000U;
1034}
1035static inline u32 gr_fecs_host_int_enable_umimp_illegal_method_enable_f(void)
1036{
1037 return 0x40000U;
1038}
1039static inline u32 gr_fecs_host_int_enable_watchdog_enable_f(void)
1040{
1041 return 0x80000U;
1042}
1043static inline u32 gr_fecs_ctxsw_reset_ctl_r(void)
1044{
1045 return 0x00409614U;
1046}
1047static inline u32 gr_fecs_ctxsw_reset_ctl_sys_halt_disabled_f(void)
1048{
1049 return 0x0U;
1050}
1051static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_halt_disabled_f(void)
1052{
1053 return 0x0U;
1054}
1055static inline u32 gr_fecs_ctxsw_reset_ctl_be_halt_disabled_f(void)
1056{
1057 return 0x0U;
1058}
1059static inline u32 gr_fecs_ctxsw_reset_ctl_sys_engine_reset_disabled_f(void)
1060{
1061 return 0x10U;
1062}
1063static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_engine_reset_disabled_f(void)
1064{
1065 return 0x20U;
1066}
1067static inline u32 gr_fecs_ctxsw_reset_ctl_be_engine_reset_disabled_f(void)
1068{
1069 return 0x40U;
1070}
1071static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_enabled_f(void)
1072{
1073 return 0x0U;
1074}
1075static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_disabled_f(void)
1076{
1077 return 0x100U;
1078}
1079static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_enabled_f(void)
1080{
1081 return 0x0U;
1082}
1083static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_disabled_f(void)
1084{
1085 return 0x200U;
1086}
1087static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_s(void)
1088{
1089 return 1U;
1090}
1091static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_f(u32 v)
1092{
1093 return (v & 0x1U) << 10U;
1094}
1095static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_m(void)
1096{
1097 return 0x1U << 10U;
1098}
1099static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_v(u32 r)
1100{
1101 return (r >> 10U) & 0x1U;
1102}
1103static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_enabled_f(void)
1104{
1105 return 0x0U;
1106}
1107static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_disabled_f(void)
1108{
1109 return 0x400U;
1110}
1111static inline u32 gr_fecs_ctx_state_store_major_rev_id_r(void)
1112{
1113 return 0x0040960cU;
1114}
1115static inline u32 gr_fecs_ctxsw_mailbox_r(u32 i)
1116{
1117 return 0x00409800U + i*4U;
1118}
1119static inline u32 gr_fecs_ctxsw_mailbox__size_1_v(void)
1120{
1121 return 0x00000008U;
1122}
1123static inline u32 gr_fecs_ctxsw_mailbox_value_f(u32 v)
1124{
1125 return (v & 0xffffffffU) << 0U;
1126}
1127static inline u32 gr_fecs_ctxsw_mailbox_value_pass_v(void)
1128{
1129 return 0x00000001U;
1130}
1131static inline u32 gr_fecs_ctxsw_mailbox_value_fail_v(void)
1132{
1133 return 0x00000002U;
1134}
1135static inline u32 gr_fecs_ctxsw_mailbox_set_r(u32 i)
1136{
1137 return 0x00409820U + i*4U;
1138}
1139static inline u32 gr_fecs_ctxsw_mailbox_set_value_f(u32 v)
1140{
1141 return (v & 0xffffffffU) << 0U;
1142}
1143static inline u32 gr_fecs_ctxsw_mailbox_clear_r(u32 i)
1144{
1145 return 0x00409840U + i*4U;
1146}
1147static inline u32 gr_fecs_ctxsw_mailbox_clear_value_f(u32 v)
1148{
1149 return (v & 0xffffffffU) << 0U;
1150}
1151static inline u32 gr_fecs_fs_r(void)
1152{
1153 return 0x00409604U;
1154}
1155static inline u32 gr_fecs_fs_num_available_gpcs_s(void)
1156{
1157 return 5U;
1158}
1159static inline u32 gr_fecs_fs_num_available_gpcs_f(u32 v)
1160{
1161 return (v & 0x1fU) << 0U;
1162}
1163static inline u32 gr_fecs_fs_num_available_gpcs_m(void)
1164{
1165 return 0x1fU << 0U;
1166}
1167static inline u32 gr_fecs_fs_num_available_gpcs_v(u32 r)
1168{
1169 return (r >> 0U) & 0x1fU;
1170}
1171static inline u32 gr_fecs_fs_num_available_fbps_s(void)
1172{
1173 return 5U;
1174}
1175static inline u32 gr_fecs_fs_num_available_fbps_f(u32 v)
1176{
1177 return (v & 0x1fU) << 16U;
1178}
1179static inline u32 gr_fecs_fs_num_available_fbps_m(void)
1180{
1181 return 0x1fU << 16U;
1182}
1183static inline u32 gr_fecs_fs_num_available_fbps_v(u32 r)
1184{
1185 return (r >> 16U) & 0x1fU;
1186}
1187static inline u32 gr_fecs_cfg_r(void)
1188{
1189 return 0x00409620U;
1190}
1191static inline u32 gr_fecs_cfg_imem_sz_v(u32 r)
1192{
1193 return (r >> 0U) & 0xffU;
1194}
1195static inline u32 gr_fecs_rc_lanes_r(void)
1196{
1197 return 0x00409880U;
1198}
1199static inline u32 gr_fecs_rc_lanes_num_chains_s(void)
1200{
1201 return 6U;
1202}
1203static inline u32 gr_fecs_rc_lanes_num_chains_f(u32 v)
1204{
1205 return (v & 0x3fU) << 0U;
1206}
1207static inline u32 gr_fecs_rc_lanes_num_chains_m(void)
1208{
1209 return 0x3fU << 0U;
1210}
1211static inline u32 gr_fecs_rc_lanes_num_chains_v(u32 r)
1212{
1213 return (r >> 0U) & 0x3fU;
1214}
1215static inline u32 gr_fecs_ctxsw_status_1_r(void)
1216{
1217 return 0x00409400U;
1218}
1219static inline u32 gr_fecs_ctxsw_status_1_arb_busy_s(void)
1220{
1221 return 1U;
1222}
1223static inline u32 gr_fecs_ctxsw_status_1_arb_busy_f(u32 v)
1224{
1225 return (v & 0x1U) << 12U;
1226}
1227static inline u32 gr_fecs_ctxsw_status_1_arb_busy_m(void)
1228{
1229 return 0x1U << 12U;
1230}
1231static inline u32 gr_fecs_ctxsw_status_1_arb_busy_v(u32 r)
1232{
1233 return (r >> 12U) & 0x1U;
1234}
1235static inline u32 gr_fecs_arb_ctx_adr_r(void)
1236{
1237 return 0x00409a24U;
1238}
1239static inline u32 gr_fecs_new_ctx_r(void)
1240{
1241 return 0x00409b04U;
1242}
1243static inline u32 gr_fecs_new_ctx_ptr_s(void)
1244{
1245 return 28U;
1246}
1247static inline u32 gr_fecs_new_ctx_ptr_f(u32 v)
1248{
1249 return (v & 0xfffffffU) << 0U;
1250}
1251static inline u32 gr_fecs_new_ctx_ptr_m(void)
1252{
1253 return 0xfffffffU << 0U;
1254}
1255static inline u32 gr_fecs_new_ctx_ptr_v(u32 r)
1256{
1257 return (r >> 0U) & 0xfffffffU;
1258}
1259static inline u32 gr_fecs_new_ctx_target_s(void)
1260{
1261 return 2U;
1262}
1263static inline u32 gr_fecs_new_ctx_target_f(u32 v)
1264{
1265 return (v & 0x3U) << 28U;
1266}
1267static inline u32 gr_fecs_new_ctx_target_m(void)
1268{
1269 return 0x3U << 28U;
1270}
1271static inline u32 gr_fecs_new_ctx_target_v(u32 r)
1272{
1273 return (r >> 28U) & 0x3U;
1274}
1275static inline u32 gr_fecs_new_ctx_target_vid_mem_f(void)
1276{
1277 return 0x0U;
1278}
1279static inline u32 gr_fecs_new_ctx_target_sys_mem_ncoh_f(void)
1280{
1281 return 0x30000000U;
1282}
1283static inline u32 gr_fecs_new_ctx_target_sys_mem_coh_f(void)
1284{
1285 return 0x20000000U;
1286}
1287static inline u32 gr_fecs_new_ctx_valid_s(void)
1288{
1289 return 1U;
1290}
1291static inline u32 gr_fecs_new_ctx_valid_f(u32 v)
1292{
1293 return (v & 0x1U) << 31U;
1294}
1295static inline u32 gr_fecs_new_ctx_valid_m(void)
1296{
1297 return 0x1U << 31U;
1298}
1299static inline u32 gr_fecs_new_ctx_valid_v(u32 r)
1300{
1301 return (r >> 31U) & 0x1U;
1302}
1303static inline u32 gr_fecs_arb_ctx_ptr_r(void)
1304{
1305 return 0x00409a0cU;
1306}
1307static inline u32 gr_fecs_arb_ctx_ptr_ptr_s(void)
1308{
1309 return 28U;
1310}
1311static inline u32 gr_fecs_arb_ctx_ptr_ptr_f(u32 v)
1312{
1313 return (v & 0xfffffffU) << 0U;
1314}
1315static inline u32 gr_fecs_arb_ctx_ptr_ptr_m(void)
1316{
1317 return 0xfffffffU << 0U;
1318}
1319static inline u32 gr_fecs_arb_ctx_ptr_ptr_v(u32 r)
1320{
1321 return (r >> 0U) & 0xfffffffU;
1322}
1323static inline u32 gr_fecs_arb_ctx_ptr_target_s(void)
1324{
1325 return 2U;
1326}
1327static inline u32 gr_fecs_arb_ctx_ptr_target_f(u32 v)
1328{
1329 return (v & 0x3U) << 28U;
1330}
1331static inline u32 gr_fecs_arb_ctx_ptr_target_m(void)
1332{
1333 return 0x3U << 28U;
1334}
1335static inline u32 gr_fecs_arb_ctx_ptr_target_v(u32 r)
1336{
1337 return (r >> 28U) & 0x3U;
1338}
1339static inline u32 gr_fecs_arb_ctx_ptr_target_vid_mem_f(void)
1340{
1341 return 0x0U;
1342}
1343static inline u32 gr_fecs_arb_ctx_ptr_target_sys_mem_ncoh_f(void)
1344{
1345 return 0x30000000U;
1346}
1347static inline u32 gr_fecs_arb_ctx_ptr_target_sys_mem_coh_f(void)
1348{
1349 return 0x20000000U;
1350}
1351static inline u32 gr_fecs_arb_ctx_cmd_r(void)
1352{
1353 return 0x00409a10U;
1354}
1355static inline u32 gr_fecs_arb_ctx_cmd_cmd_s(void)
1356{
1357 return 5U;
1358}
1359static inline u32 gr_fecs_arb_ctx_cmd_cmd_f(u32 v)
1360{
1361 return (v & 0x1fU) << 0U;
1362}
1363static inline u32 gr_fecs_arb_ctx_cmd_cmd_m(void)
1364{
1365 return 0x1fU << 0U;
1366}
1367static inline u32 gr_fecs_arb_ctx_cmd_cmd_v(u32 r)
1368{
1369 return (r >> 0U) & 0x1fU;
1370}
1371static inline u32 gr_fecs_ctxsw_status_fe_0_r(void)
1372{
1373 return 0x00409c00U;
1374}
1375static inline u32 gr_gpc0_gpccs_ctxsw_status_gpc_0_r(void)
1376{
1377 return 0x00502c04U;
1378}
1379static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void)
1380{
1381 return 0x00502400U;
1382}
1383static inline u32 gr_fecs_ctxsw_idlestate_r(void)
1384{
1385 return 0x00409420U;
1386}
1387static inline u32 gr_gpc0_gpccs_ctxsw_idlestate_r(void)
1388{
1389 return 0x00502420U;
1390}
1391static inline u32 gr_rstr2d_gpc_map0_r(void)
1392{
1393 return 0x0040780cU;
1394}
1395static inline u32 gr_rstr2d_gpc_map1_r(void)
1396{
1397 return 0x00407810U;
1398}
1399static inline u32 gr_rstr2d_gpc_map2_r(void)
1400{
1401 return 0x00407814U;
1402}
1403static inline u32 gr_rstr2d_gpc_map3_r(void)
1404{
1405 return 0x00407818U;
1406}
1407static inline u32 gr_rstr2d_gpc_map4_r(void)
1408{
1409 return 0x0040781cU;
1410}
1411static inline u32 gr_rstr2d_gpc_map5_r(void)
1412{
1413 return 0x00407820U;
1414}
1415static inline u32 gr_rstr2d_map_table_cfg_r(void)
1416{
1417 return 0x004078bcU;
1418}
1419static inline u32 gr_rstr2d_map_table_cfg_row_offset_f(u32 v)
1420{
1421 return (v & 0xffU) << 0U;
1422}
1423static inline u32 gr_rstr2d_map_table_cfg_num_entries_f(u32 v)
1424{
1425 return (v & 0xffU) << 8U;
1426}
1427static inline u32 gr_pd_hww_esr_r(void)
1428{
1429 return 0x00406018U;
1430}
1431static inline u32 gr_pd_hww_esr_reset_active_f(void)
1432{
1433 return 0x40000000U;
1434}
1435static inline u32 gr_pd_hww_esr_en_enable_f(void)
1436{
1437 return 0x80000000U;
1438}
1439static inline u32 gr_pd_num_tpc_per_gpc_r(u32 i)
1440{
1441 return 0x00406028U + i*4U;
1442}
1443static inline u32 gr_pd_num_tpc_per_gpc__size_1_v(void)
1444{
1445 return 0x00000004U;
1446}
1447static inline u32 gr_pd_num_tpc_per_gpc_count0_f(u32 v)
1448{
1449 return (v & 0xfU) << 0U;
1450}
1451static inline u32 gr_pd_num_tpc_per_gpc_count1_f(u32 v)
1452{
1453 return (v & 0xfU) << 4U;
1454}
1455static inline u32 gr_pd_num_tpc_per_gpc_count2_f(u32 v)
1456{
1457 return (v & 0xfU) << 8U;
1458}
1459static inline u32 gr_pd_num_tpc_per_gpc_count3_f(u32 v)
1460{
1461 return (v & 0xfU) << 12U;
1462}
1463static inline u32 gr_pd_num_tpc_per_gpc_count4_f(u32 v)
1464{
1465 return (v & 0xfU) << 16U;
1466}
1467static inline u32 gr_pd_num_tpc_per_gpc_count5_f(u32 v)
1468{
1469 return (v & 0xfU) << 20U;
1470}
1471static inline u32 gr_pd_num_tpc_per_gpc_count6_f(u32 v)
1472{
1473 return (v & 0xfU) << 24U;
1474}
1475static inline u32 gr_pd_num_tpc_per_gpc_count7_f(u32 v)
1476{
1477 return (v & 0xfU) << 28U;
1478}
1479static inline u32 gr_pd_ab_dist_cfg0_r(void)
1480{
1481 return 0x004064c0U;
1482}
1483static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_en_f(void)
1484{
1485 return 0x80000000U;
1486}
1487static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_dis_f(void)
1488{
1489 return 0x0U;
1490}
1491static inline u32 gr_pd_ab_dist_cfg1_r(void)
1492{
1493 return 0x004064c4U;
1494}
1495static inline u32 gr_pd_ab_dist_cfg1_max_batches_init_f(void)
1496{
1497 return 0xffffU;
1498}
1499static inline u32 gr_pd_ab_dist_cfg1_max_output_f(u32 v)
1500{
1501 return (v & 0x7ffU) << 16U;
1502}
1503static inline u32 gr_pd_ab_dist_cfg1_max_output_granularity_v(void)
1504{
1505 return 0x00000080U;
1506}
1507static inline u32 gr_pd_ab_dist_cfg2_r(void)
1508{
1509 return 0x004064c8U;
1510}
1511static inline u32 gr_pd_ab_dist_cfg2_token_limit_f(u32 v)
1512{
1513 return (v & 0xfffU) << 0U;
1514}
1515static inline u32 gr_pd_ab_dist_cfg2_token_limit_init_v(void)
1516{
1517 return 0x00000100U;
1518}
1519static inline u32 gr_pd_ab_dist_cfg2_state_limit_f(u32 v)
1520{
1521 return (v & 0xfffU) << 16U;
1522}
1523static inline u32 gr_pd_ab_dist_cfg2_state_limit_scc_bundle_granularity_v(void)
1524{
1525 return 0x00000020U;
1526}
1527static inline u32 gr_pd_ab_dist_cfg2_state_limit_min_gpm_fifo_depths_v(void)
1528{
1529 return 0x00000062U;
1530}
1531static inline u32 gr_pd_pagepool_r(void)
1532{
1533 return 0x004064ccU;
1534}
1535static inline u32 gr_pd_pagepool_total_pages_f(u32 v)
1536{
1537 return (v & 0xffU) << 0U;
1538}
1539static inline u32 gr_pd_pagepool_valid_true_f(void)
1540{
1541 return 0x80000000U;
1542}
1543static inline u32 gr_pd_dist_skip_table_r(u32 i)
1544{
1545 return 0x004064d0U + i*4U;
1546}
1547static inline u32 gr_pd_dist_skip_table__size_1_v(void)
1548{
1549 return 0x00000008U;
1550}
1551static inline u32 gr_pd_dist_skip_table_gpc_4n0_mask_f(u32 v)
1552{
1553 return (v & 0xffU) << 0U;
1554}
1555static inline u32 gr_pd_dist_skip_table_gpc_4n1_mask_f(u32 v)
1556{
1557 return (v & 0xffU) << 8U;
1558}
1559static inline u32 gr_pd_dist_skip_table_gpc_4n2_mask_f(u32 v)
1560{
1561 return (v & 0xffU) << 16U;
1562}
1563static inline u32 gr_pd_dist_skip_table_gpc_4n3_mask_f(u32 v)
1564{
1565 return (v & 0xffU) << 24U;
1566}
1567static inline u32 gr_pd_alpha_ratio_table_r(u32 i)
1568{
1569 return 0x00406800U + i*4U;
1570}
1571static inline u32 gr_pd_alpha_ratio_table__size_1_v(void)
1572{
1573 return 0x00000100U;
1574}
1575static inline u32 gr_pd_alpha_ratio_table_gpc_4n0_mask_f(u32 v)
1576{
1577 return (v & 0xffU) << 0U;
1578}
1579static inline u32 gr_pd_alpha_ratio_table_gpc_4n1_mask_f(u32 v)
1580{
1581 return (v & 0xffU) << 8U;
1582}
1583static inline u32 gr_pd_alpha_ratio_table_gpc_4n2_mask_f(u32 v)
1584{
1585 return (v & 0xffU) << 16U;
1586}
1587static inline u32 gr_pd_alpha_ratio_table_gpc_4n3_mask_f(u32 v)
1588{
1589 return (v & 0xffU) << 24U;
1590}
1591static inline u32 gr_pd_beta_ratio_table_r(u32 i)
1592{
1593 return 0x00406c00U + i*4U;
1594}
1595static inline u32 gr_pd_beta_ratio_table__size_1_v(void)
1596{
1597 return 0x00000100U;
1598}
1599static inline u32 gr_pd_beta_ratio_table_gpc_4n0_mask_f(u32 v)
1600{
1601 return (v & 0xffU) << 0U;
1602}
1603static inline u32 gr_pd_beta_ratio_table_gpc_4n1_mask_f(u32 v)
1604{
1605 return (v & 0xffU) << 8U;
1606}
1607static inline u32 gr_pd_beta_ratio_table_gpc_4n2_mask_f(u32 v)
1608{
1609 return (v & 0xffU) << 16U;
1610}
1611static inline u32 gr_pd_beta_ratio_table_gpc_4n3_mask_f(u32 v)
1612{
1613 return (v & 0xffU) << 24U;
1614}
1615static inline u32 gr_ds_debug_r(void)
1616{
1617 return 0x00405800U;
1618}
1619static inline u32 gr_ds_debug_timeslice_mode_disable_f(void)
1620{
1621 return 0x0U;
1622}
1623static inline u32 gr_ds_debug_timeslice_mode_enable_f(void)
1624{
1625 return 0x8000000U;
1626}
1627static inline u32 gr_ds_zbc_color_r_r(void)
1628{
1629 return 0x00405804U;
1630}
1631static inline u32 gr_ds_zbc_color_r_val_f(u32 v)
1632{
1633 return (v & 0xffffffffU) << 0U;
1634}
1635static inline u32 gr_ds_zbc_color_g_r(void)
1636{
1637 return 0x00405808U;
1638}
1639static inline u32 gr_ds_zbc_color_g_val_f(u32 v)
1640{
1641 return (v & 0xffffffffU) << 0U;
1642}
1643static inline u32 gr_ds_zbc_color_b_r(void)
1644{
1645 return 0x0040580cU;
1646}
1647static inline u32 gr_ds_zbc_color_b_val_f(u32 v)
1648{
1649 return (v & 0xffffffffU) << 0U;
1650}
1651static inline u32 gr_ds_zbc_color_a_r(void)
1652{
1653 return 0x00405810U;
1654}
1655static inline u32 gr_ds_zbc_color_a_val_f(u32 v)
1656{
1657 return (v & 0xffffffffU) << 0U;
1658}
1659static inline u32 gr_ds_zbc_color_fmt_r(void)
1660{
1661 return 0x00405814U;
1662}
1663static inline u32 gr_ds_zbc_color_fmt_val_f(u32 v)
1664{
1665 return (v & 0x7fU) << 0U;
1666}
1667static inline u32 gr_ds_zbc_color_fmt_val_invalid_f(void)
1668{
1669 return 0x0U;
1670}
1671static inline u32 gr_ds_zbc_color_fmt_val_zero_v(void)
1672{
1673 return 0x00000001U;
1674}
1675static inline u32 gr_ds_zbc_color_fmt_val_unorm_one_v(void)
1676{
1677 return 0x00000002U;
1678}
1679static inline u32 gr_ds_zbc_color_fmt_val_rf32_gf32_bf32_af32_v(void)
1680{
1681 return 0x00000004U;
1682}
1683static inline u32 gr_ds_zbc_color_fmt_val_a8_b8_g8_r8_v(void)
1684{
1685 return 0x00000028U;
1686}
1687static inline u32 gr_ds_zbc_z_r(void)
1688{
1689 return 0x00405818U;
1690}
1691static inline u32 gr_ds_zbc_z_val_s(void)
1692{
1693 return 32U;
1694}
1695static inline u32 gr_ds_zbc_z_val_f(u32 v)
1696{
1697 return (v & 0xffffffffU) << 0U;
1698}
1699static inline u32 gr_ds_zbc_z_val_m(void)
1700{
1701 return 0xffffffffU << 0U;
1702}
1703static inline u32 gr_ds_zbc_z_val_v(u32 r)
1704{
1705 return (r >> 0U) & 0xffffffffU;
1706}
1707static inline u32 gr_ds_zbc_z_val__init_v(void)
1708{
1709 return 0x00000000U;
1710}
1711static inline u32 gr_ds_zbc_z_val__init_f(void)
1712{
1713 return 0x0U;
1714}
1715static inline u32 gr_ds_zbc_z_fmt_r(void)
1716{
1717 return 0x0040581cU;
1718}
1719static inline u32 gr_ds_zbc_z_fmt_val_f(u32 v)
1720{
1721 return (v & 0x1U) << 0U;
1722}
1723static inline u32 gr_ds_zbc_z_fmt_val_invalid_f(void)
1724{
1725 return 0x0U;
1726}
1727static inline u32 gr_ds_zbc_z_fmt_val_fp32_v(void)
1728{
1729 return 0x00000001U;
1730}
1731static inline u32 gr_ds_zbc_tbl_index_r(void)
1732{
1733 return 0x00405820U;
1734}
1735static inline u32 gr_ds_zbc_tbl_index_val_f(u32 v)
1736{
1737 return (v & 0xfU) << 0U;
1738}
1739static inline u32 gr_ds_zbc_tbl_ld_r(void)
1740{
1741 return 0x00405824U;
1742}
1743static inline u32 gr_ds_zbc_tbl_ld_select_c_f(void)
1744{
1745 return 0x0U;
1746}
1747static inline u32 gr_ds_zbc_tbl_ld_select_z_f(void)
1748{
1749 return 0x1U;
1750}
1751static inline u32 gr_ds_zbc_tbl_ld_action_write_f(void)
1752{
1753 return 0x0U;
1754}
1755static inline u32 gr_ds_zbc_tbl_ld_trigger_active_f(void)
1756{
1757 return 0x4U;
1758}
1759static inline u32 gr_ds_tga_constraintlogic_r(void)
1760{
1761 return 0x00405830U;
1762}
1763static inline u32 gr_ds_tga_constraintlogic_beta_cbsize_f(u32 v)
1764{
1765 return (v & 0xfffU) << 16U;
1766}
1767static inline u32 gr_ds_tga_constraintlogic_alpha_cbsize_f(u32 v)
1768{
1769 return (v & 0xfffU) << 0U;
1770}
1771static inline u32 gr_ds_hww_esr_r(void)
1772{
1773 return 0x00405840U;
1774}
1775static inline u32 gr_ds_hww_esr_reset_s(void)
1776{
1777 return 1U;
1778}
1779static inline u32 gr_ds_hww_esr_reset_f(u32 v)
1780{
1781 return (v & 0x1U) << 30U;
1782}
1783static inline u32 gr_ds_hww_esr_reset_m(void)
1784{
1785 return 0x1U << 30U;
1786}
1787static inline u32 gr_ds_hww_esr_reset_v(u32 r)
1788{
1789 return (r >> 30U) & 0x1U;
1790}
1791static inline u32 gr_ds_hww_esr_reset_task_v(void)
1792{
1793 return 0x00000001U;
1794}
1795static inline u32 gr_ds_hww_esr_reset_task_f(void)
1796{
1797 return 0x40000000U;
1798}
1799static inline u32 gr_ds_hww_esr_en_enabled_f(void)
1800{
1801 return 0x80000000U;
1802}
1803static inline u32 gr_ds_hww_report_mask_r(void)
1804{
1805 return 0x00405844U;
1806}
1807static inline u32 gr_ds_hww_report_mask_sph0_err_report_f(void)
1808{
1809 return 0x1U;
1810}
1811static inline u32 gr_ds_hww_report_mask_sph1_err_report_f(void)
1812{
1813 return 0x2U;
1814}
1815static inline u32 gr_ds_hww_report_mask_sph2_err_report_f(void)
1816{
1817 return 0x4U;
1818}
1819static inline u32 gr_ds_hww_report_mask_sph3_err_report_f(void)
1820{
1821 return 0x8U;
1822}
1823static inline u32 gr_ds_hww_report_mask_sph4_err_report_f(void)
1824{
1825 return 0x10U;
1826}
1827static inline u32 gr_ds_hww_report_mask_sph5_err_report_f(void)
1828{
1829 return 0x20U;
1830}
1831static inline u32 gr_ds_hww_report_mask_sph6_err_report_f(void)
1832{
1833 return 0x40U;
1834}
1835static inline u32 gr_ds_hww_report_mask_sph7_err_report_f(void)
1836{
1837 return 0x80U;
1838}
1839static inline u32 gr_ds_hww_report_mask_sph8_err_report_f(void)
1840{
1841 return 0x100U;
1842}
1843static inline u32 gr_ds_hww_report_mask_sph9_err_report_f(void)
1844{
1845 return 0x200U;
1846}
1847static inline u32 gr_ds_hww_report_mask_sph10_err_report_f(void)
1848{
1849 return 0x400U;
1850}
1851static inline u32 gr_ds_hww_report_mask_sph11_err_report_f(void)
1852{
1853 return 0x800U;
1854}
1855static inline u32 gr_ds_hww_report_mask_sph12_err_report_f(void)
1856{
1857 return 0x1000U;
1858}
1859static inline u32 gr_ds_hww_report_mask_sph13_err_report_f(void)
1860{
1861 return 0x2000U;
1862}
1863static inline u32 gr_ds_hww_report_mask_sph14_err_report_f(void)
1864{
1865 return 0x4000U;
1866}
1867static inline u32 gr_ds_hww_report_mask_sph15_err_report_f(void)
1868{
1869 return 0x8000U;
1870}
1871static inline u32 gr_ds_hww_report_mask_sph16_err_report_f(void)
1872{
1873 return 0x10000U;
1874}
1875static inline u32 gr_ds_hww_report_mask_sph17_err_report_f(void)
1876{
1877 return 0x20000U;
1878}
1879static inline u32 gr_ds_hww_report_mask_sph18_err_report_f(void)
1880{
1881 return 0x40000U;
1882}
1883static inline u32 gr_ds_hww_report_mask_sph19_err_report_f(void)
1884{
1885 return 0x80000U;
1886}
1887static inline u32 gr_ds_hww_report_mask_sph20_err_report_f(void)
1888{
1889 return 0x100000U;
1890}
1891static inline u32 gr_ds_hww_report_mask_sph21_err_report_f(void)
1892{
1893 return 0x200000U;
1894}
1895static inline u32 gr_ds_hww_report_mask_sph22_err_report_f(void)
1896{
1897 return 0x400000U;
1898}
1899static inline u32 gr_ds_hww_report_mask_sph23_err_report_f(void)
1900{
1901 return 0x800000U;
1902}
1903static inline u32 gr_ds_num_tpc_per_gpc_r(u32 i)
1904{
1905 return 0x00405870U + i*4U;
1906}
1907static inline u32 gr_scc_bundle_cb_base_r(void)
1908{
1909 return 0x00408004U;
1910}
1911static inline u32 gr_scc_bundle_cb_base_addr_39_8_f(u32 v)
1912{
1913 return (v & 0xffffffffU) << 0U;
1914}
1915static inline u32 gr_scc_bundle_cb_base_addr_39_8_align_bits_v(void)
1916{
1917 return 0x00000008U;
1918}
1919static inline u32 gr_scc_bundle_cb_size_r(void)
1920{
1921 return 0x00408008U;
1922}
1923static inline u32 gr_scc_bundle_cb_size_div_256b_f(u32 v)
1924{
1925 return (v & 0x7ffU) << 0U;
1926}
1927static inline u32 gr_scc_bundle_cb_size_div_256b__prod_v(void)
1928{
1929 return 0x00000018U;
1930}
1931static inline u32 gr_scc_bundle_cb_size_div_256b_byte_granularity_v(void)
1932{
1933 return 0x00000100U;
1934}
1935static inline u32 gr_scc_bundle_cb_size_valid_false_v(void)
1936{
1937 return 0x00000000U;
1938}
1939static inline u32 gr_scc_bundle_cb_size_valid_false_f(void)
1940{
1941 return 0x0U;
1942}
1943static inline u32 gr_scc_bundle_cb_size_valid_true_f(void)
1944{
1945 return 0x80000000U;
1946}
1947static inline u32 gr_scc_pagepool_base_r(void)
1948{
1949 return 0x0040800cU;
1950}
1951static inline u32 gr_scc_pagepool_base_addr_39_8_f(u32 v)
1952{
1953 return (v & 0xffffffffU) << 0U;
1954}
1955static inline u32 gr_scc_pagepool_base_addr_39_8_align_bits_v(void)
1956{
1957 return 0x00000008U;
1958}
1959static inline u32 gr_scc_pagepool_r(void)
1960{
1961 return 0x00408010U;
1962}
1963static inline u32 gr_scc_pagepool_total_pages_f(u32 v)
1964{
1965 return (v & 0xffU) << 0U;
1966}
1967static inline u32 gr_scc_pagepool_total_pages_hwmax_v(void)
1968{
1969 return 0x00000000U;
1970}
1971static inline u32 gr_scc_pagepool_total_pages_hwmax_value_v(void)
1972{
1973 return 0x00000080U;
1974}
1975static inline u32 gr_scc_pagepool_total_pages_byte_granularity_v(void)
1976{
1977 return 0x00000100U;
1978}
1979static inline u32 gr_scc_pagepool_max_valid_pages_s(void)
1980{
1981 return 8U;
1982}
1983static inline u32 gr_scc_pagepool_max_valid_pages_f(u32 v)
1984{
1985 return (v & 0xffU) << 8U;
1986}
1987static inline u32 gr_scc_pagepool_max_valid_pages_m(void)
1988{
1989 return 0xffU << 8U;
1990}
1991static inline u32 gr_scc_pagepool_max_valid_pages_v(u32 r)
1992{
1993 return (r >> 8U) & 0xffU;
1994}
1995static inline u32 gr_scc_pagepool_valid_true_f(void)
1996{
1997 return 0x80000000U;
1998}
1999static inline u32 gr_scc_init_r(void)
2000{
2001 return 0x0040802cU;
2002}
2003static inline u32 gr_scc_init_ram_trigger_f(void)
2004{
2005 return 0x1U;
2006}
2007static inline u32 gr_scc_hww_esr_r(void)
2008{
2009 return 0x00408030U;
2010}
2011static inline u32 gr_scc_hww_esr_reset_active_f(void)
2012{
2013 return 0x40000000U;
2014}
2015static inline u32 gr_scc_hww_esr_en_enable_f(void)
2016{
2017 return 0x80000000U;
2018}
2019static inline u32 gr_sked_hww_esr_r(void)
2020{
2021 return 0x00407020U;
2022}
2023static inline u32 gr_sked_hww_esr_reset_active_f(void)
2024{
2025 return 0x40000000U;
2026}
2027static inline u32 gr_cwd_fs_r(void)
2028{
2029 return 0x00405b00U;
2030}
2031static inline u32 gr_cwd_fs_num_gpcs_f(u32 v)
2032{
2033 return (v & 0xffU) << 0U;
2034}
2035static inline u32 gr_cwd_fs_num_tpcs_f(u32 v)
2036{
2037 return (v & 0xffU) << 8U;
2038}
2039static inline u32 gr_gpc0_fs_gpc_r(void)
2040{
2041 return 0x00502608U;
2042}
2043static inline u32 gr_gpc0_fs_gpc_num_available_tpcs_v(u32 r)
2044{
2045 return (r >> 0U) & 0x1fU;
2046}
2047static inline u32 gr_gpc0_fs_gpc_num_available_zculls_v(u32 r)
2048{
2049 return (r >> 16U) & 0x1fU;
2050}
2051static inline u32 gr_gpc0_cfg_r(void)
2052{
2053 return 0x00502620U;
2054}
2055static inline u32 gr_gpc0_cfg_imem_sz_v(u32 r)
2056{
2057 return (r >> 0U) & 0xffU;
2058}
2059static inline u32 gr_gpccs_rc_lanes_r(void)
2060{
2061 return 0x00502880U;
2062}
2063static inline u32 gr_gpccs_rc_lanes_num_chains_s(void)
2064{
2065 return 6U;
2066}
2067static inline u32 gr_gpccs_rc_lanes_num_chains_f(u32 v)
2068{
2069 return (v & 0x3fU) << 0U;
2070}
2071static inline u32 gr_gpccs_rc_lanes_num_chains_m(void)
2072{
2073 return 0x3fU << 0U;
2074}
2075static inline u32 gr_gpccs_rc_lanes_num_chains_v(u32 r)
2076{
2077 return (r >> 0U) & 0x3fU;
2078}
2079static inline u32 gr_gpccs_rc_lane_size_r(u32 i)
2080{
2081 return 0x00502910U + i*0U;
2082}
2083static inline u32 gr_gpccs_rc_lane_size__size_1_v(void)
2084{
2085 return 0x00000010U;
2086}
2087static inline u32 gr_gpccs_rc_lane_size_v_s(void)
2088{
2089 return 24U;
2090}
2091static inline u32 gr_gpccs_rc_lane_size_v_f(u32 v)
2092{
2093 return (v & 0xffffffU) << 0U;
2094}
2095static inline u32 gr_gpccs_rc_lane_size_v_m(void)
2096{
2097 return 0xffffffU << 0U;
2098}
2099static inline u32 gr_gpccs_rc_lane_size_v_v(u32 r)
2100{
2101 return (r >> 0U) & 0xffffffU;
2102}
2103static inline u32 gr_gpccs_rc_lane_size_v_0_v(void)
2104{
2105 return 0x00000000U;
2106}
2107static inline u32 gr_gpccs_rc_lane_size_v_0_f(void)
2108{
2109 return 0x0U;
2110}
2111static inline u32 gr_gpc0_zcull_fs_r(void)
2112{
2113 return 0x00500910U;
2114}
2115static inline u32 gr_gpc0_zcull_fs_num_sms_f(u32 v)
2116{
2117 return (v & 0x1ffU) << 0U;
2118}
2119static inline u32 gr_gpc0_zcull_fs_num_active_banks_f(u32 v)
2120{
2121 return (v & 0xfU) << 16U;
2122}
2123static inline u32 gr_gpc0_zcull_ram_addr_r(void)
2124{
2125 return 0x00500914U;
2126}
2127static inline u32 gr_gpc0_zcull_ram_addr_tiles_per_hypertile_row_per_gpc_f(u32 v)
2128{
2129 return (v & 0xfU) << 0U;
2130}
2131static inline u32 gr_gpc0_zcull_ram_addr_row_offset_f(u32 v)
2132{
2133 return (v & 0xfU) << 8U;
2134}
2135static inline u32 gr_gpc0_zcull_sm_num_rcp_r(void)
2136{
2137 return 0x00500918U;
2138}
2139static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative_f(u32 v)
2140{
2141 return (v & 0xffffffU) << 0U;
2142}
2143static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative__max_v(void)
2144{
2145 return 0x00800000U;
2146}
2147static inline u32 gr_gpc0_zcull_total_ram_size_r(void)
2148{
2149 return 0x00500920U;
2150}
2151static inline u32 gr_gpc0_zcull_total_ram_size_num_aliquots_f(u32 v)
2152{
2153 return (v & 0xffffU) << 0U;
2154}
2155static inline u32 gr_gpc0_zcull_zcsize_r(u32 i)
2156{
2157 return 0x00500a04U + i*32U;
2158}
2159static inline u32 gr_gpc0_zcull_zcsize_height_subregion__multiple_v(void)
2160{
2161 return 0x00000040U;
2162}
2163static inline u32 gr_gpc0_zcull_zcsize_width_subregion__multiple_v(void)
2164{
2165 return 0x00000010U;
2166}
2167static inline u32 gr_gpc0_gpm_pd_active_tpcs_r(void)
2168{
2169 return 0x00500c08U;
2170}
2171static inline u32 gr_gpc0_gpm_pd_active_tpcs_num_f(u32 v)
2172{
2173 return (v & 0x7U) << 0U;
2174}
2175static inline u32 gr_gpc0_gpm_pd_sm_id_r(u32 i)
2176{
2177 return 0x00500c10U + i*4U;
2178}
2179static inline u32 gr_gpc0_gpm_pd_sm_id_id_f(u32 v)
2180{
2181 return (v & 0xffU) << 0U;
2182}
2183static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_r(u32 i)
2184{
2185 return 0x00500c30U + i*4U;
2186}
2187static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_mask_v(u32 r)
2188{
2189 return (r >> 0U) & 0xffU;
2190}
2191static inline u32 gr_gpc0_gpm_sd_active_tpcs_r(void)
2192{
2193 return 0x00500c8cU;
2194}
2195static inline u32 gr_gpc0_gpm_sd_active_tpcs_num_f(u32 v)
2196{
2197 return (v & 0x7U) << 0U;
2198}
2199static inline u32 gr_gpc0_tpc0_pe_cfg_smid_r(void)
2200{
2201 return 0x00504088U;
2202}
2203static inline u32 gr_gpc0_tpc0_pe_cfg_smid_value_f(u32 v)
2204{
2205 return (v & 0xffffU) << 0U;
2206}
2207static inline u32 gr_gpc0_tpc0_l1c_cfg_smid_r(void)
2208{
2209 return 0x005044e8U;
2210}
2211static inline u32 gr_gpc0_tpc0_l1c_cfg_smid_value_f(u32 v)
2212{
2213 return (v & 0xffffU) << 0U;
2214}
2215static inline u32 gr_gpc0_tpc0_sm_cfg_r(void)
2216{
2217 return 0x00504698U;
2218}
2219static inline u32 gr_gpc0_tpc0_sm_cfg_sm_id_f(u32 v)
2220{
2221 return (v & 0xffffU) << 0U;
2222}
2223static inline u32 gr_gpc0_tpc0_sm_cfg_sm_id_v(u32 r)
2224{
2225 return (r >> 0U) & 0xffffU;
2226}
2227static inline u32 gr_gpc0_tpc0_sm_arch_r(void)
2228{
2229 return 0x0050469cU;
2230}
2231static inline u32 gr_gpc0_tpc0_sm_arch_warp_count_v(u32 r)
2232{
2233 return (r >> 0U) & 0xffU;
2234}
2235static inline u32 gr_gpc0_tpc0_sm_arch_spa_version_v(u32 r)
2236{
2237 return (r >> 8U) & 0xfU;
2238}
2239static inline u32 gr_gpc0_tpc0_sm_arch_spa_version_smkepler_lp_v(void)
2240{
2241 return 0x0000000cU;
2242}
2243static inline u32 gr_gpc0_ppc0_pes_vsc_strem_r(void)
2244{
2245 return 0x00503018U;
2246}
2247static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_m(void)
2248{
2249 return 0x1U << 0U;
2250}
2251static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_true_f(void)
2252{
2253 return 0x1U;
2254}
2255static inline u32 gr_gpc0_ppc0_cbm_cfg_r(void)
2256{
2257 return 0x005030c0U;
2258}
2259static inline u32 gr_gpc0_ppc0_cbm_cfg_start_offset_f(u32 v)
2260{
2261 return (v & 0xffffU) << 0U;
2262}
2263static inline u32 gr_gpc0_ppc0_cbm_cfg_start_offset_m(void)
2264{
2265 return 0xffffU << 0U;
2266}
2267static inline u32 gr_gpc0_ppc0_cbm_cfg_start_offset_v(u32 r)
2268{
2269 return (r >> 0U) & 0xffffU;
2270}
2271static inline u32 gr_gpc0_ppc0_cbm_cfg_size_f(u32 v)
2272{
2273 return (v & 0xfffU) << 16U;
2274}
2275static inline u32 gr_gpc0_ppc0_cbm_cfg_size_m(void)
2276{
2277 return 0xfffU << 16U;
2278}
2279static inline u32 gr_gpc0_ppc0_cbm_cfg_size_v(u32 r)
2280{
2281 return (r >> 16U) & 0xfffU;
2282}
2283static inline u32 gr_gpc0_ppc0_cbm_cfg_size_default_v(void)
2284{
2285 return 0x00000240U;
2286}
2287static inline u32 gr_gpc0_ppc0_cbm_cfg_size_granularity_v(void)
2288{
2289 return 0x00000020U;
2290}
2291static inline u32 gr_gpc0_ppc0_cbm_cfg_timeslice_mode_f(u32 v)
2292{
2293 return (v & 0x1U) << 28U;
2294}
2295static inline u32 gr_gpc0_ppc0_cbm_cfg2_r(void)
2296{
2297 return 0x005030e4U;
2298}
2299static inline u32 gr_gpc0_ppc0_cbm_cfg2_start_offset_f(u32 v)
2300{
2301 return (v & 0xffffU) << 0U;
2302}
2303static inline u32 gr_gpc0_ppc0_cbm_cfg2_size_f(u32 v)
2304{
2305 return (v & 0xfffU) << 16U;
2306}
2307static inline u32 gr_gpc0_ppc0_cbm_cfg2_size_m(void)
2308{
2309 return 0xfffU << 16U;
2310}
2311static inline u32 gr_gpc0_ppc0_cbm_cfg2_size_v(u32 r)
2312{
2313 return (r >> 16U) & 0xfffU;
2314}
2315static inline u32 gr_gpc0_ppc0_cbm_cfg2_size_default_v(void)
2316{
2317 return 0x00000648U;
2318}
2319static inline u32 gr_gpc0_ppc0_cbm_cfg2_size_granularity_v(void)
2320{
2321 return 0x00000020U;
2322}
2323static inline u32 gr_gpccs_falcon_addr_r(void)
2324{
2325 return 0x0041a0acU;
2326}
2327static inline u32 gr_gpccs_falcon_addr_lsb_s(void)
2328{
2329 return 6U;
2330}
2331static inline u32 gr_gpccs_falcon_addr_lsb_f(u32 v)
2332{
2333 return (v & 0x3fU) << 0U;
2334}
2335static inline u32 gr_gpccs_falcon_addr_lsb_m(void)
2336{
2337 return 0x3fU << 0U;
2338}
2339static inline u32 gr_gpccs_falcon_addr_lsb_v(u32 r)
2340{
2341 return (r >> 0U) & 0x3fU;
2342}
2343static inline u32 gr_gpccs_falcon_addr_lsb_init_v(void)
2344{
2345 return 0x00000000U;
2346}
2347static inline u32 gr_gpccs_falcon_addr_lsb_init_f(void)
2348{
2349 return 0x0U;
2350}
2351static inline u32 gr_gpccs_falcon_addr_msb_s(void)
2352{
2353 return 6U;
2354}
2355static inline u32 gr_gpccs_falcon_addr_msb_f(u32 v)
2356{
2357 return (v & 0x3fU) << 6U;
2358}
2359static inline u32 gr_gpccs_falcon_addr_msb_m(void)
2360{
2361 return 0x3fU << 6U;
2362}
2363static inline u32 gr_gpccs_falcon_addr_msb_v(u32 r)
2364{
2365 return (r >> 6U) & 0x3fU;
2366}
2367static inline u32 gr_gpccs_falcon_addr_msb_init_v(void)
2368{
2369 return 0x00000000U;
2370}
2371static inline u32 gr_gpccs_falcon_addr_msb_init_f(void)
2372{
2373 return 0x0U;
2374}
2375static inline u32 gr_gpccs_falcon_addr_ext_s(void)
2376{
2377 return 12U;
2378}
2379static inline u32 gr_gpccs_falcon_addr_ext_f(u32 v)
2380{
2381 return (v & 0xfffU) << 0U;
2382}
2383static inline u32 gr_gpccs_falcon_addr_ext_m(void)
2384{
2385 return 0xfffU << 0U;
2386}
2387static inline u32 gr_gpccs_falcon_addr_ext_v(u32 r)
2388{
2389 return (r >> 0U) & 0xfffU;
2390}
2391static inline u32 gr_gpccs_cpuctl_r(void)
2392{
2393 return 0x0041a100U;
2394}
2395static inline u32 gr_gpccs_cpuctl_startcpu_f(u32 v)
2396{
2397 return (v & 0x1U) << 1U;
2398}
2399static inline u32 gr_gpccs_dmactl_r(void)
2400{
2401 return 0x0041a10cU;
2402}
2403static inline u32 gr_gpccs_dmactl_require_ctx_f(u32 v)
2404{
2405 return (v & 0x1U) << 0U;
2406}
2407static inline u32 gr_gpccs_dmactl_dmem_scrubbing_m(void)
2408{
2409 return 0x1U << 1U;
2410}
2411static inline u32 gr_gpccs_dmactl_imem_scrubbing_m(void)
2412{
2413 return 0x1U << 2U;
2414}
2415static inline u32 gr_gpccs_imemc_r(u32 i)
2416{
2417 return 0x0041a180U + i*16U;
2418}
2419static inline u32 gr_gpccs_imemc_offs_f(u32 v)
2420{
2421 return (v & 0x3fU) << 2U;
2422}
2423static inline u32 gr_gpccs_imemc_blk_f(u32 v)
2424{
2425 return (v & 0xffU) << 8U;
2426}
2427static inline u32 gr_gpccs_imemc_aincw_f(u32 v)
2428{
2429 return (v & 0x1U) << 24U;
2430}
2431static inline u32 gr_gpccs_imemd_r(u32 i)
2432{
2433 return 0x0041a184U + i*16U;
2434}
2435static inline u32 gr_gpccs_imemt_r(u32 i)
2436{
2437 return 0x0041a188U + i*16U;
2438}
2439static inline u32 gr_gpccs_imemt__size_1_v(void)
2440{
2441 return 0x00000004U;
2442}
2443static inline u32 gr_gpccs_imemt_tag_f(u32 v)
2444{
2445 return (v & 0xffffU) << 0U;
2446}
2447static inline u32 gr_gpccs_dmemc_r(u32 i)
2448{
2449 return 0x0041a1c0U + i*8U;
2450}
2451static inline u32 gr_gpccs_dmemc_offs_f(u32 v)
2452{
2453 return (v & 0x3fU) << 2U;
2454}
2455static inline u32 gr_gpccs_dmemc_blk_f(u32 v)
2456{
2457 return (v & 0xffU) << 8U;
2458}
2459static inline u32 gr_gpccs_dmemc_aincw_f(u32 v)
2460{
2461 return (v & 0x1U) << 24U;
2462}
2463static inline u32 gr_gpccs_dmemd_r(u32 i)
2464{
2465 return 0x0041a1c4U + i*8U;
2466}
2467static inline u32 gr_gpccs_ctxsw_mailbox_r(u32 i)
2468{
2469 return 0x0041a800U + i*4U;
2470}
2471static inline u32 gr_gpccs_ctxsw_mailbox_value_f(u32 v)
2472{
2473 return (v & 0xffffffffU) << 0U;
2474}
2475static inline u32 gr_gpcs_setup_bundle_cb_base_r(void)
2476{
2477 return 0x00418808U;
2478}
2479static inline u32 gr_gpcs_setup_bundle_cb_base_addr_39_8_s(void)
2480{
2481 return 32U;
2482}
2483static inline u32 gr_gpcs_setup_bundle_cb_base_addr_39_8_f(u32 v)
2484{
2485 return (v & 0xffffffffU) << 0U;
2486}
2487static inline u32 gr_gpcs_setup_bundle_cb_base_addr_39_8_m(void)
2488{
2489 return 0xffffffffU << 0U;
2490}
2491static inline u32 gr_gpcs_setup_bundle_cb_base_addr_39_8_v(u32 r)
2492{
2493 return (r >> 0U) & 0xffffffffU;
2494}
2495static inline u32 gr_gpcs_setup_bundle_cb_base_addr_39_8_init_v(void)
2496{
2497 return 0x00000000U;
2498}
2499static inline u32 gr_gpcs_setup_bundle_cb_base_addr_39_8_init_f(void)
2500{
2501 return 0x0U;
2502}
2503static inline u32 gr_gpcs_setup_bundle_cb_size_r(void)
2504{
2505 return 0x0041880cU;
2506}
2507static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b_s(void)
2508{
2509 return 11U;
2510}
2511static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b_f(u32 v)
2512{
2513 return (v & 0x7ffU) << 0U;
2514}
2515static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b_m(void)
2516{
2517 return 0x7ffU << 0U;
2518}
2519static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b_v(u32 r)
2520{
2521 return (r >> 0U) & 0x7ffU;
2522}
2523static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b_init_v(void)
2524{
2525 return 0x00000000U;
2526}
2527static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b_init_f(void)
2528{
2529 return 0x0U;
2530}
2531static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b__prod_v(void)
2532{
2533 return 0x00000018U;
2534}
2535static inline u32 gr_gpcs_setup_bundle_cb_size_div_256b__prod_f(void)
2536{
2537 return 0x18U;
2538}
2539static inline u32 gr_gpcs_setup_bundle_cb_size_valid_s(void)
2540{
2541 return 1U;
2542}
2543static inline u32 gr_gpcs_setup_bundle_cb_size_valid_f(u32 v)
2544{
2545 return (v & 0x1U) << 31U;
2546}
2547static inline u32 gr_gpcs_setup_bundle_cb_size_valid_m(void)
2548{
2549 return 0x1U << 31U;
2550}
2551static inline u32 gr_gpcs_setup_bundle_cb_size_valid_v(u32 r)
2552{
2553 return (r >> 31U) & 0x1U;
2554}
2555static inline u32 gr_gpcs_setup_bundle_cb_size_valid_false_v(void)
2556{
2557 return 0x00000000U;
2558}
2559static inline u32 gr_gpcs_setup_bundle_cb_size_valid_false_f(void)
2560{
2561 return 0x0U;
2562}
2563static inline u32 gr_gpcs_setup_bundle_cb_size_valid_true_v(void)
2564{
2565 return 0x00000001U;
2566}
2567static inline u32 gr_gpcs_setup_bundle_cb_size_valid_true_f(void)
2568{
2569 return 0x80000000U;
2570}
2571static inline u32 gr_gpcs_setup_attrib_cb_base_r(void)
2572{
2573 return 0x00418810U;
2574}
2575static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_f(u32 v)
2576{
2577 return (v & 0xfffffffU) << 0U;
2578}
2579static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_align_bits_v(void)
2580{
2581 return 0x0000000cU;
2582}
2583static inline u32 gr_gpcs_setup_attrib_cb_base_valid_true_f(void)
2584{
2585 return 0x80000000U;
2586}
2587static inline u32 gr_crstr_gpc_map0_r(void)
2588{
2589 return 0x00418b08U;
2590}
2591static inline u32 gr_crstr_gpc_map0_tile0_f(u32 v)
2592{
2593 return (v & 0x7U) << 0U;
2594}
2595static inline u32 gr_crstr_gpc_map0_tile1_f(u32 v)
2596{
2597 return (v & 0x7U) << 5U;
2598}
2599static inline u32 gr_crstr_gpc_map0_tile2_f(u32 v)
2600{
2601 return (v & 0x7U) << 10U;
2602}
2603static inline u32 gr_crstr_gpc_map0_tile3_f(u32 v)
2604{
2605 return (v & 0x7U) << 15U;
2606}
2607static inline u32 gr_crstr_gpc_map0_tile4_f(u32 v)
2608{
2609 return (v & 0x7U) << 20U;
2610}
2611static inline u32 gr_crstr_gpc_map0_tile5_f(u32 v)
2612{
2613 return (v & 0x7U) << 25U;
2614}
2615static inline u32 gr_crstr_gpc_map1_r(void)
2616{
2617 return 0x00418b0cU;
2618}
2619static inline u32 gr_crstr_gpc_map1_tile6_f(u32 v)
2620{
2621 return (v & 0x7U) << 0U;
2622}
2623static inline u32 gr_crstr_gpc_map1_tile7_f(u32 v)
2624{
2625 return (v & 0x7U) << 5U;
2626}
2627static inline u32 gr_crstr_gpc_map1_tile8_f(u32 v)
2628{
2629 return (v & 0x7U) << 10U;
2630}
2631static inline u32 gr_crstr_gpc_map1_tile9_f(u32 v)
2632{
2633 return (v & 0x7U) << 15U;
2634}
2635static inline u32 gr_crstr_gpc_map1_tile10_f(u32 v)
2636{
2637 return (v & 0x7U) << 20U;
2638}
2639static inline u32 gr_crstr_gpc_map1_tile11_f(u32 v)
2640{
2641 return (v & 0x7U) << 25U;
2642}
2643static inline u32 gr_crstr_gpc_map2_r(void)
2644{
2645 return 0x00418b10U;
2646}
2647static inline u32 gr_crstr_gpc_map2_tile12_f(u32 v)
2648{
2649 return (v & 0x7U) << 0U;
2650}
2651static inline u32 gr_crstr_gpc_map2_tile13_f(u32 v)
2652{
2653 return (v & 0x7U) << 5U;
2654}
2655static inline u32 gr_crstr_gpc_map2_tile14_f(u32 v)
2656{
2657 return (v & 0x7U) << 10U;
2658}
2659static inline u32 gr_crstr_gpc_map2_tile15_f(u32 v)
2660{
2661 return (v & 0x7U) << 15U;
2662}
2663static inline u32 gr_crstr_gpc_map2_tile16_f(u32 v)
2664{
2665 return (v & 0x7U) << 20U;
2666}
2667static inline u32 gr_crstr_gpc_map2_tile17_f(u32 v)
2668{
2669 return (v & 0x7U) << 25U;
2670}
2671static inline u32 gr_crstr_gpc_map3_r(void)
2672{
2673 return 0x00418b14U;
2674}
2675static inline u32 gr_crstr_gpc_map3_tile18_f(u32 v)
2676{
2677 return (v & 0x7U) << 0U;
2678}
2679static inline u32 gr_crstr_gpc_map3_tile19_f(u32 v)
2680{
2681 return (v & 0x7U) << 5U;
2682}
2683static inline u32 gr_crstr_gpc_map3_tile20_f(u32 v)
2684{
2685 return (v & 0x7U) << 10U;
2686}
2687static inline u32 gr_crstr_gpc_map3_tile21_f(u32 v)
2688{
2689 return (v & 0x7U) << 15U;
2690}
2691static inline u32 gr_crstr_gpc_map3_tile22_f(u32 v)
2692{
2693 return (v & 0x7U) << 20U;
2694}
2695static inline u32 gr_crstr_gpc_map3_tile23_f(u32 v)
2696{
2697 return (v & 0x7U) << 25U;
2698}
2699static inline u32 gr_crstr_gpc_map4_r(void)
2700{
2701 return 0x00418b18U;
2702}
2703static inline u32 gr_crstr_gpc_map4_tile24_f(u32 v)
2704{
2705 return (v & 0x7U) << 0U;
2706}
2707static inline u32 gr_crstr_gpc_map4_tile25_f(u32 v)
2708{
2709 return (v & 0x7U) << 5U;
2710}
2711static inline u32 gr_crstr_gpc_map4_tile26_f(u32 v)
2712{
2713 return (v & 0x7U) << 10U;
2714}
2715static inline u32 gr_crstr_gpc_map4_tile27_f(u32 v)
2716{
2717 return (v & 0x7U) << 15U;
2718}
2719static inline u32 gr_crstr_gpc_map4_tile28_f(u32 v)
2720{
2721 return (v & 0x7U) << 20U;
2722}
2723static inline u32 gr_crstr_gpc_map4_tile29_f(u32 v)
2724{
2725 return (v & 0x7U) << 25U;
2726}
2727static inline u32 gr_crstr_gpc_map5_r(void)
2728{
2729 return 0x00418b1cU;
2730}
2731static inline u32 gr_crstr_gpc_map5_tile30_f(u32 v)
2732{
2733 return (v & 0x7U) << 0U;
2734}
2735static inline u32 gr_crstr_gpc_map5_tile31_f(u32 v)
2736{
2737 return (v & 0x7U) << 5U;
2738}
2739static inline u32 gr_crstr_gpc_map5_tile32_f(u32 v)
2740{
2741 return (v & 0x7U) << 10U;
2742}
2743static inline u32 gr_crstr_gpc_map5_tile33_f(u32 v)
2744{
2745 return (v & 0x7U) << 15U;
2746}
2747static inline u32 gr_crstr_gpc_map5_tile34_f(u32 v)
2748{
2749 return (v & 0x7U) << 20U;
2750}
2751static inline u32 gr_crstr_gpc_map5_tile35_f(u32 v)
2752{
2753 return (v & 0x7U) << 25U;
2754}
2755static inline u32 gr_crstr_map_table_cfg_r(void)
2756{
2757 return 0x00418bb8U;
2758}
2759static inline u32 gr_crstr_map_table_cfg_row_offset_f(u32 v)
2760{
2761 return (v & 0xffU) << 0U;
2762}
2763static inline u32 gr_crstr_map_table_cfg_num_entries_f(u32 v)
2764{
2765 return (v & 0xffU) << 8U;
2766}
2767static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_r(void)
2768{
2769 return 0x00418980U;
2770}
2771static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_0_f(u32 v)
2772{
2773 return (v & 0x7U) << 0U;
2774}
2775static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_1_f(u32 v)
2776{
2777 return (v & 0x7U) << 4U;
2778}
2779static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_2_f(u32 v)
2780{
2781 return (v & 0x7U) << 8U;
2782}
2783static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_3_f(u32 v)
2784{
2785 return (v & 0x7U) << 12U;
2786}
2787static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_4_f(u32 v)
2788{
2789 return (v & 0x7U) << 16U;
2790}
2791static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_5_f(u32 v)
2792{
2793 return (v & 0x7U) << 20U;
2794}
2795static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_6_f(u32 v)
2796{
2797 return (v & 0x7U) << 24U;
2798}
2799static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_7_f(u32 v)
2800{
2801 return (v & 0x7U) << 28U;
2802}
2803static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_r(void)
2804{
2805 return 0x00418984U;
2806}
2807static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_8_f(u32 v)
2808{
2809 return (v & 0x7U) << 0U;
2810}
2811static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_9_f(u32 v)
2812{
2813 return (v & 0x7U) << 4U;
2814}
2815static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_10_f(u32 v)
2816{
2817 return (v & 0x7U) << 8U;
2818}
2819static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_11_f(u32 v)
2820{
2821 return (v & 0x7U) << 12U;
2822}
2823static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_12_f(u32 v)
2824{
2825 return (v & 0x7U) << 16U;
2826}
2827static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_13_f(u32 v)
2828{
2829 return (v & 0x7U) << 20U;
2830}
2831static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_14_f(u32 v)
2832{
2833 return (v & 0x7U) << 24U;
2834}
2835static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_15_f(u32 v)
2836{
2837 return (v & 0x7U) << 28U;
2838}
2839static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_r(void)
2840{
2841 return 0x00418988U;
2842}
2843static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_16_f(u32 v)
2844{
2845 return (v & 0x7U) << 0U;
2846}
2847static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_17_f(u32 v)
2848{
2849 return (v & 0x7U) << 4U;
2850}
2851static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_18_f(u32 v)
2852{
2853 return (v & 0x7U) << 8U;
2854}
2855static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_19_f(u32 v)
2856{
2857 return (v & 0x7U) << 12U;
2858}
2859static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_20_f(u32 v)
2860{
2861 return (v & 0x7U) << 16U;
2862}
2863static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_21_f(u32 v)
2864{
2865 return (v & 0x7U) << 20U;
2866}
2867static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_22_f(u32 v)
2868{
2869 return (v & 0x7U) << 24U;
2870}
2871static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_s(void)
2872{
2873 return 3U;
2874}
2875static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_f(u32 v)
2876{
2877 return (v & 0x7U) << 28U;
2878}
2879static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_m(void)
2880{
2881 return 0x7U << 28U;
2882}
2883static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_v(u32 r)
2884{
2885 return (r >> 28U) & 0x7U;
2886}
2887static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_r(void)
2888{
2889 return 0x0041898cU;
2890}
2891static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_24_f(u32 v)
2892{
2893 return (v & 0x7U) << 0U;
2894}
2895static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_25_f(u32 v)
2896{
2897 return (v & 0x7U) << 4U;
2898}
2899static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_26_f(u32 v)
2900{
2901 return (v & 0x7U) << 8U;
2902}
2903static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_27_f(u32 v)
2904{
2905 return (v & 0x7U) << 12U;
2906}
2907static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_28_f(u32 v)
2908{
2909 return (v & 0x7U) << 16U;
2910}
2911static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_29_f(u32 v)
2912{
2913 return (v & 0x7U) << 20U;
2914}
2915static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_30_f(u32 v)
2916{
2917 return (v & 0x7U) << 24U;
2918}
2919static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_31_f(u32 v)
2920{
2921 return (v & 0x7U) << 28U;
2922}
2923static inline u32 gr_gpcs_gpm_pd_cfg_r(void)
2924{
2925 return 0x00418c6cU;
2926}
2927static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_disable_f(void)
2928{
2929 return 0x0U;
2930}
2931static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_enable_f(void)
2932{
2933 return 0x1U;
2934}
2935static inline u32 gr_gpcs_gcc_pagepool_base_r(void)
2936{
2937 return 0x00419004U;
2938}
2939static inline u32 gr_gpcs_gcc_pagepool_base_addr_39_8_f(u32 v)
2940{
2941 return (v & 0xffffffffU) << 0U;
2942}
2943static inline u32 gr_gpcs_gcc_pagepool_r(void)
2944{
2945 return 0x00419008U;
2946}
2947static inline u32 gr_gpcs_gcc_pagepool_total_pages_f(u32 v)
2948{
2949 return (v & 0xffU) << 0U;
2950}
2951static inline u32 gr_gpcs_tpcs_pe_vaf_r(void)
2952{
2953 return 0x0041980cU;
2954}
2955static inline u32 gr_gpcs_tpcs_pe_vaf_fast_mode_switch_true_f(void)
2956{
2957 return 0x10U;
2958}
2959static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_r(void)
2960{
2961 return 0x00419848U;
2962}
2963static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_v_f(u32 v)
2964{
2965 return (v & 0xfffffffU) << 0U;
2966}
2967static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_f(u32 v)
2968{
2969 return (v & 0x1U) << 28U;
2970}
2971static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_true_f(void)
2972{
2973 return 0x10000000U;
2974}
2975static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_r(void)
2976{
2977 return 0x00419c00U;
2978}
2979static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_disabled_f(void)
2980{
2981 return 0x0U;
2982}
2983static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_enabled_f(void)
2984{
2985 return 0x8U;
2986}
2987static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_r(void)
2988{
2989 return 0x00419e44U;
2990}
2991static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_stack_error_report_f(void)
2992{
2993 return 0x2U;
2994}
2995static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_api_stack_error_report_f(void)
2996{
2997 return 0x4U;
2998}
2999static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_ret_empty_stack_error_report_f(void)
3000{
3001 return 0x8U;
3002}
3003static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_wrap_report_f(void)
3004{
3005 return 0x10U;
3006}
3007static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_pc_report_f(void)
3008{
3009 return 0x20U;
3010}
3011static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_overflow_report_f(void)
3012{
3013 return 0x40U;
3014}
3015static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_immc_addr_report_f(void)
3016{
3017 return 0x80U;
3018}
3019static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_reg_report_f(void)
3020{
3021 return 0x100U;
3022}
3023static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_encoding_report_f(void)
3024{
3025 return 0x200U;
3026}
3027static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_sph_instr_combo_report_f(void)
3028{
3029 return 0x400U;
3030}
3031static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param_report_f(void)
3032{
3033 return 0x800U;
3034}
3035static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_report_f(void)
3036{
3037 return 0x1000U;
3038}
3039static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_reg_report_f(void)
3040{
3041 return 0x2000U;
3042}
3043static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_addr_report_f(void)
3044{
3045 return 0x4000U;
3046}
3047static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_addr_report_f(void)
3048{
3049 return 0x8000U;
3050}
3051static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_addr_space_report_f(void)
3052{
3053 return 0x10000U;
3054}
3055static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param2_report_f(void)
3056{
3057 return 0x20000U;
3058}
3059static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_ldc_report_f(void)
3060{
3061 return 0x40000U;
3062}
3063static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_geometry_sm_error_report_f(void)
3064{
3065 return 0x80000U;
3066}
3067static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_divergent_report_f(void)
3068{
3069 return 0x100000U;
3070}
3071static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_r(void)
3072{
3073 return 0x00419e4cU;
3074}
3075static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_sm_to_sm_fault_report_f(void)
3076{
3077 return 0x1U;
3078}
3079static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_l1_error_report_f(void)
3080{
3081 return 0x2U;
3082}
3083static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_multiple_warp_errors_report_f(void)
3084{
3085 return 0x4U;
3086}
3087static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_physical_stack_overflow_error_report_f(void)
3088{
3089 return 0x8U;
3090}
3091static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_int_report_f(void)
3092{
3093 return 0x10U;
3094}
3095static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_pause_report_f(void)
3096{
3097 return 0x20U;
3098}
3099static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_single_step_complete_report_f(void)
3100{
3101 return 0x40U;
3102}
3103static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_r(void)
3104{
3105 return 0x00419d0cU;
3106}
3107static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_sm_enabled_f(void)
3108{
3109 return 0x2U;
3110}
3111static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_tex_enabled_f(void)
3112{
3113 return 0x1U;
3114}
3115static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
3116{
3117 return 0x0050450cU;
3118}
3119static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_v(u32 r)
3120{
3121 return (r >> 1U) & 0x1U;
3122}
3123static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_enabled_f(void)
3124{
3125 return 0x2U;
3126}
3127static inline u32 gr_gpcs_gpccs_gpc_exception_en_r(void)
3128{
3129 return 0x0041ac94U;
3130}
3131static inline u32 gr_gpcs_gpccs_gpc_exception_en_tpc_f(u32 v)
3132{
3133 return (v & 0xffU) << 16U;
3134}
3135static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
3136{
3137 return 0x00502c90U;
3138}
3139static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r)
3140{
3141 return (r >> 2U) & 0x1U;
3142}
3143static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
3144{
3145 return (r >> 16U) & 0xffU;
3146}
3147static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_0_pending_v(void)
3148{
3149 return 0x00000001U;
3150}
3151static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_r(void)
3152{
3153 return 0x00504508U;
3154}
3155static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_v(u32 r)
3156{
3157 return (r >> 0U) & 0x1U;
3158}
3159static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_pending_v(void)
3160{
3161 return 0x00000001U;
3162}
3163static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_v(u32 r)
3164{
3165 return (r >> 1U) & 0x1U;
3166}
3167static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_pending_v(void)
3168{
3169 return 0x00000001U;
3170}
3171static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_r(void)
3172{
3173 return 0x00504610U;
3174}
3175static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_m(void)
3176{
3177 return 0x1U << 0U;
3178}
3179static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_v(u32 r)
3180{
3181 return (r >> 0U) & 0x1U;
3182}
3183static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_on_v(void)
3184{
3185 return 0x00000001U;
3186}
3187static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_on_f(void)
3188{
3189 return 0x1U;
3190}
3191static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_off_v(void)
3192{
3193 return 0x00000000U;
3194}
3195static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_off_f(void)
3196{
3197 return 0x0U;
3198}
3199static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_enable_f(void)
3200{
3201 return 0x80000000U;
3202}
3203static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_disable_f(void)
3204{
3205 return 0x0U;
3206}
3207static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_single_step_mode_enable_f(void)
3208{
3209 return 0x8U;
3210}
3211static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_single_step_mode_disable_f(void)
3212{
3213 return 0x0U;
3214}
3215static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_run_trigger_task_f(void)
3216{
3217 return 0x40000000U;
3218}
3219static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_m(void)
3220{
3221 return 0x1U << 1U;
3222}
3223static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_v(u32 r)
3224{
3225 return (r >> 1U) & 0x1U;
3226}
3227static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_disable_f(void)
3228{
3229 return 0x0U;
3230}
3231static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_m(void)
3232{
3233 return 0x1U << 2U;
3234}
3235static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_v(u32 r)
3236{
3237 return (r >> 2U) & 0x1U;
3238}
3239static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_disable_f(void)
3240{
3241 return 0x0U;
3242}
3243static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_stop_on_any_warp_disable_v(void)
3244{
3245 return 0x00000000U;
3246}
3247static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_stop_on_any_sm_disable_v(void)
3248{
3249 return 0x00000000U;
3250}
3251static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_r(void)
3252{
3253 return 0x00504614U;
3254}
3255static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_1_r(void)
3256{
3257 return 0x00504618U;
3258}
3259static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_r(void)
3260{
3261 return 0x00504624U;
3262}
3263static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_1_r(void)
3264{
3265 return 0x00504628U;
3266}
3267static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_r(void)
3268{
3269 return 0x00504634U;
3270}
3271static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_1_r(void)
3272{
3273 return 0x00504638U;
3274}
3275static inline u32 gr_gpcs_tpcs_sm_dbgr_bpt_pause_mask_r(void)
3276{
3277 return 0x00419e24U;
3278}
3279static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_r(void)
3280{
3281 return 0x0050460cU;
3282}
3283static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_sm_in_trap_mode_v(u32 r)
3284{
3285 return (r >> 0U) & 0x1U;
3286}
3287static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_v(u32 r)
3288{
3289 return (r >> 4U) & 0x1U;
3290}
3291static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_true_v(void)
3292{
3293 return 0x00000001U;
3294}
3295static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_r(void)
3296{
3297 return 0x00419e50U;
3298}
3299static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_int_pending_f(void)
3300{
3301 return 0x10U;
3302}
3303static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_pause_pending_f(void)
3304{
3305 return 0x20U;
3306}
3307static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_single_step_complete_pending_f(void)
3308{
3309 return 0x40U;
3310}
3311static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_sm_to_sm_fault_pending_f(void)
3312{
3313 return 0x1U;
3314}
3315static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_l1_error_pending_f(void)
3316{
3317 return 0x2U;
3318}
3319static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_multiple_warp_errors_pending_f(void)
3320{
3321 return 0x4U;
3322}
3323static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_physical_stack_overflow_error_pending_f(void)
3324{
3325 return 0x8U;
3326}
3327static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_timeout_error_pending_f(void)
3328{
3329 return 0x80000000U;
3330}
3331static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_r(void)
3332{
3333 return 0x00504650U;
3334}
3335static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_int_pending_f(void)
3336{
3337 return 0x10U;
3338}
3339static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_pause_pending_f(void)
3340{
3341 return 0x20U;
3342}
3343static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_single_step_complete_pending_f(void)
3344{
3345 return 0x40U;
3346}
3347static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_sm_to_sm_fault_pending_f(void)
3348{
3349 return 0x1U;
3350}
3351static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_l1_error_pending_f(void)
3352{
3353 return 0x2U;
3354}
3355static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_multiple_warp_errors_pending_f(void)
3356{
3357 return 0x4U;
3358}
3359static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_physical_stack_overflow_error_pending_f(void)
3360{
3361 return 0x8U;
3362}
3363static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_timeout_error_pending_f(void)
3364{
3365 return 0x80000000U;
3366}
3367static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_r(void)
3368{
3369 return 0x00504224U;
3370}
3371static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_intr_pending_f(void)
3372{
3373 return 0x1U;
3374}
3375static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_r(void)
3376{
3377 return 0x00504648U;
3378}
3379static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_v(u32 r)
3380{
3381 return (r >> 0U) & 0xffffU;
3382}
3383static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_v(void)
3384{
3385 return 0x00000000U;
3386}
3387static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_f(void)
3388{
3389 return 0x0U;
3390}
3391static inline u32 gr_gpc0_tpc0_sm_halfctl_ctrl_r(void)
3392{
3393 return 0x00504770U;
3394}
3395static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_r(void)
3396{
3397 return 0x00419f70U;
3398}
3399static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_m(void)
3400{
3401 return 0x1U << 4U;
3402}
3403static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_f(u32 v)
3404{
3405 return (v & 0x1U) << 4U;
3406}
3407static inline u32 gr_gpc0_tpc0_sm_debug_sfe_control_r(void)
3408{
3409 return 0x0050477cU;
3410}
3411static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_r(void)
3412{
3413 return 0x00419f7cU;
3414}
3415static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_m(void)
3416{
3417 return 0x1U << 0U;
3418}
3419static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_f(u32 v)
3420{
3421 return (v & 0x1U) << 0U;
3422}
3423static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_r(void)
3424{
3425 return 0x0041be08U;
3426}
3427static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_fast_mode_switch_true_f(void)
3428{
3429 return 0x4U;
3430}
3431static inline u32 gr_ppcs_wwdx_map_gpc_map0_r(void)
3432{
3433 return 0x0041bf00U;
3434}
3435static inline u32 gr_ppcs_wwdx_map_gpc_map1_r(void)
3436{
3437 return 0x0041bf04U;
3438}
3439static inline u32 gr_ppcs_wwdx_map_gpc_map2_r(void)
3440{
3441 return 0x0041bf08U;
3442}
3443static inline u32 gr_ppcs_wwdx_map_gpc_map3_r(void)
3444{
3445 return 0x0041bf0cU;
3446}
3447static inline u32 gr_ppcs_wwdx_map_gpc_map4_r(void)
3448{
3449 return 0x0041bf10U;
3450}
3451static inline u32 gr_ppcs_wwdx_map_gpc_map5_r(void)
3452{
3453 return 0x0041bf14U;
3454}
3455static inline u32 gr_ppcs_wwdx_map_table_cfg_r(void)
3456{
3457 return 0x0041bfd0U;
3458}
3459static inline u32 gr_ppcs_wwdx_map_table_cfg_row_offset_f(u32 v)
3460{
3461 return (v & 0xffU) << 0U;
3462}
3463static inline u32 gr_ppcs_wwdx_map_table_cfg_num_entries_f(u32 v)
3464{
3465 return (v & 0xffU) << 8U;
3466}
3467static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_num_entries_f(u32 v)
3468{
3469 return (v & 0x1fU) << 16U;
3470}
3471static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_shift_value_f(u32 v)
3472{
3473 return (v & 0x7U) << 21U;
3474}
3475static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff5_mod_value_f(u32 v)
3476{
3477 return (v & 0x1fU) << 24U;
3478}
3479static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_r(void)
3480{
3481 return 0x0041bfd4U;
3482}
3483static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_conservative_f(u32 v)
3484{
3485 return (v & 0xffffffU) << 0U;
3486}
3487static inline u32 gr_ppcs_wwdx_map_table_cfg2_r(void)
3488{
3489 return 0x0041bfe4U;
3490}
3491static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff6_mod_value_f(u32 v)
3492{
3493 return (v & 0x1fU) << 0U;
3494}
3495static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff7_mod_value_f(u32 v)
3496{
3497 return (v & 0x1fU) << 5U;
3498}
3499static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff8_mod_value_f(u32 v)
3500{
3501 return (v & 0x1fU) << 10U;
3502}
3503static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff9_mod_value_f(u32 v)
3504{
3505 return (v & 0x1fU) << 15U;
3506}
3507static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff10_mod_value_f(u32 v)
3508{
3509 return (v & 0x1fU) << 20U;
3510}
3511static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff11_mod_value_f(u32 v)
3512{
3513 return (v & 0x1fU) << 25U;
3514}
3515static inline u32 gr_gpcs_ppcs_cbm_cfg_r(void)
3516{
3517 return 0x0041bec0U;
3518}
3519static inline u32 gr_gpcs_ppcs_cbm_cfg_timeslice_mode_enable_v(void)
3520{
3521 return 0x00000001U;
3522}
3523static inline u32 gr_bes_zrop_settings_r(void)
3524{
3525 return 0x00408850U;
3526}
3527static inline u32 gr_bes_zrop_settings_num_active_fbps_f(u32 v)
3528{
3529 return (v & 0xfU) << 0U;
3530}
3531static inline u32 gr_bes_crop_settings_r(void)
3532{
3533 return 0x00408958U;
3534}
3535static inline u32 gr_bes_crop_settings_num_active_fbps_f(u32 v)
3536{
3537 return (v & 0xfU) << 0U;
3538}
3539static inline u32 gr_zcull_bytes_per_aliquot_per_gpu_v(void)
3540{
3541 return 0x00000020U;
3542}
3543static inline u32 gr_zcull_save_restore_header_bytes_per_gpc_v(void)
3544{
3545 return 0x00000020U;
3546}
3547static inline u32 gr_zcull_save_restore_subregion_header_bytes_per_gpc_v(void)
3548{
3549 return 0x000000c0U;
3550}
3551static inline u32 gr_zcull_subregion_qty_v(void)
3552{
3553 return 0x00000010U;
3554}
3555static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel0_r(void)
3556{
3557 return 0x00504604U;
3558}
3559static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel1_r(void)
3560{
3561 return 0x00504608U;
3562}
3563static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control0_r(void)
3564{
3565 return 0x0050465cU;
3566}
3567static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control1_r(void)
3568{
3569 return 0x00504660U;
3570}
3571static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control2_r(void)
3572{
3573 return 0x00504664U;
3574}
3575static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control3_r(void)
3576{
3577 return 0x00504668U;
3578}
3579static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control4_r(void)
3580{
3581 return 0x0050466cU;
3582}
3583static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control5_r(void)
3584{
3585 return 0x00504658U;
3586}
3587static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status_r(void)
3588{
3589 return 0x00504670U;
3590}
3591static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status1_r(void)
3592{
3593 return 0x00504694U;
3594}
3595static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_control_r(void)
3596{
3597 return 0x00504730U;
3598}
3599static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_control_r(void)
3600{
3601 return 0x00504734U;
3602}
3603static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_control_r(void)
3604{
3605 return 0x00504738U;
3606}
3607static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_control_r(void)
3608{
3609 return 0x0050473cU;
3610}
3611static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter4_control_r(void)
3612{
3613 return 0x00504740U;
3614}
3615static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter5_control_r(void)
3616{
3617 return 0x00504744U;
3618}
3619static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter6_control_r(void)
3620{
3621 return 0x00504748U;
3622}
3623static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter7_control_r(void)
3624{
3625 return 0x0050474cU;
3626}
3627static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_r(void)
3628{
3629 return 0x00504674U;
3630}
3631static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_r(void)
3632{
3633 return 0x00504678U;
3634}
3635static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_r(void)
3636{
3637 return 0x0050467cU;
3638}
3639static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_r(void)
3640{
3641 return 0x00504680U;
3642}
3643static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter4_r(void)
3644{
3645 return 0x00504684U;
3646}
3647static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter5_r(void)
3648{
3649 return 0x00504688U;
3650}
3651static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter6_r(void)
3652{
3653 return 0x0050468cU;
3654}
3655static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter7_r(void)
3656{
3657 return 0x00504690U;
3658}
3659static inline u32 gr_fe_pwr_mode_r(void)
3660{
3661 return 0x00404170U;
3662}
3663static inline u32 gr_fe_pwr_mode_mode_auto_f(void)
3664{
3665 return 0x0U;
3666}
3667static inline u32 gr_fe_pwr_mode_mode_force_on_f(void)
3668{
3669 return 0x2U;
3670}
3671static inline u32 gr_fe_pwr_mode_req_v(u32 r)
3672{
3673 return (r >> 4U) & 0x1U;
3674}
3675static inline u32 gr_fe_pwr_mode_req_send_f(void)
3676{
3677 return 0x10U;
3678}
3679static inline u32 gr_fe_pwr_mode_req_done_v(void)
3680{
3681 return 0x00000000U;
3682}
3683static inline u32 gr_gpc0_tpc0_l1c_dbg_r(void)
3684{
3685 return 0x005044b0U;
3686}
3687static inline u32 gr_gpc0_tpc0_l1c_dbg_cya15_en_f(void)
3688{
3689 return 0x8000000U;
3690}
3691static inline u32 gr_gpcs_tpcs_sm_sch_texlock_r(void)
3692{
3693 return 0x00419ec8U;
3694}
3695static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_m(void)
3696{
3697 return 0x1U << 0U;
3698}
3699static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_disable_f(void)
3700{
3701 return 0x0U;
3702}
3703static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_tile_m(void)
3704{
3705 return 0x1U << 1U;
3706}
3707static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_tile_disable_f(void)
3708{
3709 return 0x0U;
3710}
3711static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_phase_m(void)
3712{
3713 return 0x1U << 2U;
3714}
3715static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_phase_disable_f(void)
3716{
3717 return 0x0U;
3718}
3719static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_tex_m(void)
3720{
3721 return 0x1U << 3U;
3722}
3723static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_tex_disable_f(void)
3724{
3725 return 0x0U;
3726}
3727static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_timeout_m(void)
3728{
3729 return 0xffU << 4U;
3730}
3731static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_timeout_disable_f(void)
3732{
3733 return 0x0U;
3734}
3735static inline u32 gr_gpcs_tpcs_sm_sch_texlock_dot_t_unlock_m(void)
3736{
3737 return 0x1U << 16U;
3738}
3739static inline u32 gr_gpcs_tpcs_sm_sch_texlock_dot_t_unlock_disable_f(void)
3740{
3741 return 0x0U;
3742}
3743static inline u32 gr_gpcs_tpcs_sm_sch_macro_sched_r(void)
3744{
3745 return 0x00419eacU;
3746}
3747static inline u32 gr_gpcs_tpcs_sm_sch_macro_sched_lockboost_size_f(u32 v)
3748{
3749 return (v & 0x1U) << 2U;
3750}
3751static inline u32 gr_gpcs_tpcs_sm_sch_macro_sched_lockboost_size_m(void)
3752{
3753 return 0x1U << 2U;
3754}
3755static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_r(void)
3756{
3757 return 0x00419e10U;
3758}
3759static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_f(u32 v)
3760{
3761 return (v & 0x1U) << 0U;
3762}
3763static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_on_v(void)
3764{
3765 return 0x00000001U;
3766}
3767static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_m(void)
3768{
3769 return 0x1U << 31U;
3770}
3771static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_v(u32 r)
3772{
3773 return (r >> 31U) & 0x1U;
3774}
3775static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_enable_f(void)
3776{
3777 return 0x80000000U;
3778}
3779static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_disable_f(void)
3780{
3781 return 0x0U;
3782}
3783static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_m(void)
3784{
3785 return 0x1U << 3U;
3786}
3787static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_enable_f(void)
3788{
3789 return 0x8U;
3790}
3791static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_disable_f(void)
3792{
3793 return 0x0U;
3794}
3795static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_m(void)
3796{
3797 return 0x1U << 30U;
3798}
3799static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_v(u32 r)
3800{
3801 return (r >> 30U) & 0x1U;
3802}
3803static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_task_f(void)
3804{
3805 return 0x40000000U;
3806}
3807#endif
diff --git a/include/nvgpu/hw/gk20a/hw_ltc_gk20a.h b/include/nvgpu/hw/gk20a/hw_ltc_gk20a.h
new file mode 100644
index 0000000..efe7f98
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_ltc_gk20a.h
@@ -0,0 +1,455 @@
1/*
2 * Copyright (c) 2012-2017, 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_ltc_gk20a_h_
57#define _hw_ltc_gk20a_h_
58
59static inline u32 ltc_pltcg_base_v(void)
60{
61 return 0x00140000U;
62}
63static inline u32 ltc_pltcg_extent_v(void)
64{
65 return 0x0017ffffU;
66}
67static inline u32 ltc_ltcs_lts0_cbc_ctrl1_r(void)
68{
69 return 0x001410c8U;
70}
71static inline u32 ltc_ltc0_lts0_dstg_cfg0_r(void)
72{
73 return 0x00141200U;
74}
75static inline u32 ltc_ltcs_ltss_dstg_cfg0_r(void)
76{
77 return 0x0017ea00U;
78}
79static inline u32 ltc_ltc0_lts0_tstg_cfg1_r(void)
80{
81 return 0x00141104U;
82}
83static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_ways_v(u32 r)
84{
85 return (r >> 0U) & 0xffffU;
86}
87static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_v(u32 r)
88{
89 return (r >> 16U) & 0x3U;
90}
91static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_all_v(void)
92{
93 return 0x00000000U;
94}
95static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_half_v(void)
96{
97 return 0x00000001U;
98}
99static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_quarter_v(void)
100{
101 return 0x00000002U;
102}
103static inline u32 ltc_ltcs_ltss_cbc_ctrl1_r(void)
104{
105 return 0x0017e8c8U;
106}
107static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clean_active_f(void)
108{
109 return 0x1U;
110}
111static inline u32 ltc_ltcs_ltss_cbc_ctrl1_invalidate_active_f(void)
112{
113 return 0x2U;
114}
115static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_v(u32 r)
116{
117 return (r >> 2U) & 0x1U;
118}
119static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_v(void)
120{
121 return 0x00000001U;
122}
123static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_f(void)
124{
125 return 0x4U;
126}
127static inline u32 ltc_ltc0_lts0_cbc_ctrl1_r(void)
128{
129 return 0x001410c8U;
130}
131static inline u32 ltc_ltcs_ltss_cbc_ctrl2_r(void)
132{
133 return 0x0017e8ccU;
134}
135static inline u32 ltc_ltcs_ltss_cbc_ctrl2_clear_lower_bound_f(u32 v)
136{
137 return (v & 0x1ffffU) << 0U;
138}
139static inline u32 ltc_ltcs_ltss_cbc_ctrl3_r(void)
140{
141 return 0x0017e8d0U;
142}
143static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_f(u32 v)
144{
145 return (v & 0x1ffffU) << 0U;
146}
147static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_init_v(void)
148{
149 return 0x0001ffffU;
150}
151static inline u32 ltc_ltcs_ltss_cbc_base_r(void)
152{
153 return 0x0017e8d4U;
154}
155static inline u32 ltc_ltcs_ltss_cbc_base_alignment_shift_v(void)
156{
157 return 0x0000000bU;
158}
159static inline u32 ltc_ltcs_ltss_cbc_base_address_v(u32 r)
160{
161 return (r >> 0U) & 0x3ffffffU;
162}
163static inline u32 ltc_ltcs_ltss_cbc_param_r(void)
164{
165 return 0x0017e8dcU;
166}
167static inline u32 ltc_ltcs_ltss_cbc_param_comptags_per_cache_line_v(u32 r)
168{
169 return (r >> 0U) & 0xffffU;
170}
171static inline u32 ltc_ltcs_ltss_cbc_param_cache_line_size_v(u32 r)
172{
173 return (r >> 24U) & 0xfU;
174}
175static inline u32 ltc_ltcs_ltss_cbc_param_slices_per_fbp_v(u32 r)
176{
177 return (r >> 28U) & 0xfU;
178}
179static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_r(void)
180{
181 return 0x0017e91cU;
182}
183static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_max_ways_evict_last_f(u32 v)
184{
185 return (v & 0x1fU) << 16U;
186}
187static inline u32 ltc_ltcs_ltss_dstg_zbc_index_r(void)
188{
189 return 0x0017ea44U;
190}
191static inline u32 ltc_ltcs_ltss_dstg_zbc_index_address_f(u32 v)
192{
193 return (v & 0xfU) << 0U;
194}
195static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value_r(u32 i)
196{
197 return 0x0017ea48U + i*4U;
198}
199static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value__size_1_v(void)
200{
201 return 0x00000004U;
202}
203static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_r(void)
204{
205 return 0x0017ea58U;
206}
207static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_s(void)
208{
209 return 32U;
210}
211static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_f(u32 v)
212{
213 return (v & 0xffffffffU) << 0U;
214}
215static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_m(void)
216{
217 return 0xffffffffU << 0U;
218}
219static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_v(u32 r)
220{
221 return (r >> 0U) & 0xffffffffU;
222}
223static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_r(void)
224{
225 return 0x0017e924U;
226}
227static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_l2_bypass_mode_enabled_f(void)
228{
229 return 0x10000000U;
230}
231static inline u32 ltc_ltcs_ltss_g_elpg_r(void)
232{
233 return 0x0017e828U;
234}
235static inline u32 ltc_ltcs_ltss_g_elpg_flush_v(u32 r)
236{
237 return (r >> 0U) & 0x1U;
238}
239static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_v(void)
240{
241 return 0x00000001U;
242}
243static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_f(void)
244{
245 return 0x1U;
246}
247static inline u32 ltc_ltc0_ltss_g_elpg_r(void)
248{
249 return 0x00140828U;
250}
251static inline u32 ltc_ltc0_ltss_g_elpg_flush_v(u32 r)
252{
253 return (r >> 0U) & 0x1U;
254}
255static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_v(void)
256{
257 return 0x00000001U;
258}
259static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_f(void)
260{
261 return 0x1U;
262}
263static inline u32 ltc_ltc0_ltss_intr_r(void)
264{
265 return 0x00140820U;
266}
267static inline u32 ltc_ltcs_ltss_intr_r(void)
268{
269 return 0x0017e820U;
270}
271static inline u32 ltc_ltcs_ltss_intr_en_evicted_cb_m(void)
272{
273 return 0x1U << 20U;
274}
275static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_m(void)
276{
277 return 0x1U << 21U;
278}
279static inline u32 ltc_ltc0_lts0_intr_r(void)
280{
281 return 0x00141020U;
282}
283static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_r(void)
284{
285 return 0x0017e910U;
286}
287static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_v(u32 r)
288{
289 return (r >> 0U) & 0x1U;
290}
291static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_v(void)
292{
293 return 0x00000001U;
294}
295static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_f(void)
296{
297 return 0x1U;
298}
299static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_v(u32 r)
300{
301 return (r >> 8U) & 0xfU;
302}
303static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_v(void)
304{
305 return 0x00000003U;
306}
307static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_f(void)
308{
309 return 0x300U;
310}
311static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_v(u32 r)
312{
313 return (r >> 28U) & 0x1U;
314}
315static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_v(void)
316{
317 return 0x00000001U;
318}
319static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_f(void)
320{
321 return 0x10000000U;
322}
323static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_v(u32 r)
324{
325 return (r >> 29U) & 0x1U;
326}
327static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_v(void)
328{
329 return 0x00000001U;
330}
331static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_f(void)
332{
333 return 0x20000000U;
334}
335static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_v(u32 r)
336{
337 return (r >> 30U) & 0x1U;
338}
339static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_v(void)
340{
341 return 0x00000001U;
342}
343static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_f(void)
344{
345 return 0x40000000U;
346}
347static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_r(void)
348{
349 return 0x0017e914U;
350}
351static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_v(u32 r)
352{
353 return (r >> 0U) & 0x1U;
354}
355static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_v(void)
356{
357 return 0x00000001U;
358}
359static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_f(void)
360{
361 return 0x1U;
362}
363static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_v(u32 r)
364{
365 return (r >> 8U) & 0xfU;
366}
367static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_v(void)
368{
369 return 0x00000003U;
370}
371static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_f(void)
372{
373 return 0x300U;
374}
375static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_v(u32 r)
376{
377 return (r >> 16U) & 0x1U;
378}
379static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_v(void)
380{
381 return 0x00000001U;
382}
383static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_f(void)
384{
385 return 0x10000U;
386}
387static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_v(u32 r)
388{
389 return (r >> 28U) & 0x1U;
390}
391static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_v(void)
392{
393 return 0x00000001U;
394}
395static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_f(void)
396{
397 return 0x10000000U;
398}
399static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_v(u32 r)
400{
401 return (r >> 29U) & 0x1U;
402}
403static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_v(void)
404{
405 return 0x00000001U;
406}
407static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_f(void)
408{
409 return 0x20000000U;
410}
411static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_v(u32 r)
412{
413 return (r >> 30U) & 0x1U;
414}
415static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_v(void)
416{
417 return 0x00000001U;
418}
419static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_f(void)
420{
421 return 0x40000000U;
422}
423static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_r(void)
424{
425 return 0x00140910U;
426}
427static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_v(u32 r)
428{
429 return (r >> 0U) & 0x1U;
430}
431static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_v(void)
432{
433 return 0x00000001U;
434}
435static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_f(void)
436{
437 return 0x1U;
438}
439static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_r(void)
440{
441 return 0x00140914U;
442}
443static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_v(u32 r)
444{
445 return (r >> 0U) & 0x1U;
446}
447static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_v(void)
448{
449 return 0x00000001U;
450}
451static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_f(void)
452{
453 return 0x1U;
454}
455#endif
diff --git a/include/nvgpu/hw/gk20a/hw_mc_gk20a.h b/include/nvgpu/hw/gk20a/hw_mc_gk20a.h
new file mode 100644
index 0000000..3ca2a29
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_mc_gk20a.h
@@ -0,0 +1,291 @@
1/*
2 * Copyright (c) 2012-2017, 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_mc_gk20a_h_
57#define _hw_mc_gk20a_h_
58
59static inline u32 mc_boot_0_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 mc_boot_0_architecture_v(u32 r)
64{
65 return (r >> 24U) & 0x1fU;
66}
67static inline u32 mc_boot_0_implementation_v(u32 r)
68{
69 return (r >> 20U) & 0xfU;
70}
71static inline u32 mc_boot_0_major_revision_v(u32 r)
72{
73 return (r >> 4U) & 0xfU;
74}
75static inline u32 mc_boot_0_minor_revision_v(u32 r)
76{
77 return (r >> 0U) & 0xfU;
78}
79static inline u32 mc_intr_0_r(void)
80{
81 return 0x00000100U;
82}
83static inline u32 mc_intr_0_pfifo_pending_f(void)
84{
85 return 0x100U;
86}
87static inline u32 mc_intr_0_pgraph_pending_f(void)
88{
89 return 0x1000U;
90}
91static inline u32 mc_intr_0_pmu_pending_f(void)
92{
93 return 0x1000000U;
94}
95static inline u32 mc_intr_0_ltc_pending_f(void)
96{
97 return 0x2000000U;
98}
99static inline u32 mc_intr_0_priv_ring_pending_f(void)
100{
101 return 0x40000000U;
102}
103static inline u32 mc_intr_0_pbus_pending_f(void)
104{
105 return 0x10000000U;
106}
107static inline u32 mc_intr_1_r(void)
108{
109 return 0x00000104U;
110}
111static inline u32 mc_intr_mask_0_r(void)
112{
113 return 0x00000640U;
114}
115static inline u32 mc_intr_mask_0_pmu_enabled_f(void)
116{
117 return 0x1000000U;
118}
119static inline u32 mc_intr_en_0_r(void)
120{
121 return 0x00000140U;
122}
123static inline u32 mc_intr_en_0_inta_disabled_f(void)
124{
125 return 0x0U;
126}
127static inline u32 mc_intr_en_0_inta_hardware_f(void)
128{
129 return 0x1U;
130}
131static inline u32 mc_intr_mask_1_r(void)
132{
133 return 0x00000644U;
134}
135static inline u32 mc_intr_mask_1_pmu_s(void)
136{
137 return 1U;
138}
139static inline u32 mc_intr_mask_1_pmu_f(u32 v)
140{
141 return (v & 0x1U) << 24U;
142}
143static inline u32 mc_intr_mask_1_pmu_m(void)
144{
145 return 0x1U << 24U;
146}
147static inline u32 mc_intr_mask_1_pmu_v(u32 r)
148{
149 return (r >> 24U) & 0x1U;
150}
151static inline u32 mc_intr_mask_1_pmu_enabled_f(void)
152{
153 return 0x1000000U;
154}
155static inline u32 mc_intr_en_1_r(void)
156{
157 return 0x00000144U;
158}
159static inline u32 mc_intr_en_1_inta_disabled_f(void)
160{
161 return 0x0U;
162}
163static inline u32 mc_intr_en_1_inta_hardware_f(void)
164{
165 return 0x1U;
166}
167static inline u32 mc_enable_r(void)
168{
169 return 0x00000200U;
170}
171static inline u32 mc_enable_xbar_enabled_f(void)
172{
173 return 0x4U;
174}
175static inline u32 mc_enable_l2_enabled_f(void)
176{
177 return 0x8U;
178}
179static inline u32 mc_enable_pmedia_s(void)
180{
181 return 1U;
182}
183static inline u32 mc_enable_pmedia_f(u32 v)
184{
185 return (v & 0x1U) << 4U;
186}
187static inline u32 mc_enable_pmedia_m(void)
188{
189 return 0x1U << 4U;
190}
191static inline u32 mc_enable_pmedia_v(u32 r)
192{
193 return (r >> 4U) & 0x1U;
194}
195static inline u32 mc_enable_priv_ring_enabled_f(void)
196{
197 return 0x20U;
198}
199static inline u32 mc_enable_ce0_m(void)
200{
201 return 0x1U << 6U;
202}
203static inline u32 mc_enable_pfifo_enabled_f(void)
204{
205 return 0x100U;
206}
207static inline u32 mc_enable_pgraph_enabled_f(void)
208{
209 return 0x1000U;
210}
211static inline u32 mc_enable_pwr_v(u32 r)
212{
213 return (r >> 13U) & 0x1U;
214}
215static inline u32 mc_enable_pwr_disabled_v(void)
216{
217 return 0x00000000U;
218}
219static inline u32 mc_enable_pwr_enabled_f(void)
220{
221 return 0x2000U;
222}
223static inline u32 mc_enable_pfb_enabled_f(void)
224{
225 return 0x100000U;
226}
227static inline u32 mc_enable_ce2_m(void)
228{
229 return 0x1U << 21U;
230}
231static inline u32 mc_enable_ce2_enabled_f(void)
232{
233 return 0x200000U;
234}
235static inline u32 mc_enable_blg_enabled_f(void)
236{
237 return 0x8000000U;
238}
239static inline u32 mc_enable_perfmon_enabled_f(void)
240{
241 return 0x10000000U;
242}
243static inline u32 mc_enable_hub_enabled_f(void)
244{
245 return 0x20000000U;
246}
247static inline u32 mc_enable_pb_r(void)
248{
249 return 0x00000204U;
250}
251static inline u32 mc_enable_pb_0_s(void)
252{
253 return 1U;
254}
255static inline u32 mc_enable_pb_0_f(u32 v)
256{
257 return (v & 0x1U) << 0U;
258}
259static inline u32 mc_enable_pb_0_m(void)
260{
261 return 0x1U << 0U;
262}
263static inline u32 mc_enable_pb_0_v(u32 r)
264{
265 return (r >> 0U) & 0x1U;
266}
267static inline u32 mc_enable_pb_0_enabled_v(void)
268{
269 return 0x00000001U;
270}
271static inline u32 mc_enable_pb_sel_f(u32 v, u32 i)
272{
273 return (v & 0x1U) << (0U + i*1U);
274}
275static inline u32 mc_elpg_enable_r(void)
276{
277 return 0x0000020cU;
278}
279static inline u32 mc_elpg_enable_xbar_enabled_f(void)
280{
281 return 0x4U;
282}
283static inline u32 mc_elpg_enable_pfb_enabled_f(void)
284{
285 return 0x100000U;
286}
287static inline u32 mc_elpg_enable_hub_enabled_f(void)
288{
289 return 0x20000000U;
290}
291#endif
diff --git a/include/nvgpu/hw/gk20a/hw_pbdma_gk20a.h b/include/nvgpu/hw/gk20a/hw_pbdma_gk20a.h
new file mode 100644
index 0000000..2c8f48d
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_pbdma_gk20a.h
@@ -0,0 +1,575 @@
1/*
2 * Copyright (c) 2012-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_pbdma_gk20a_h_
57#define _hw_pbdma_gk20a_h_
58
59static inline u32 pbdma_gp_entry1_r(void)
60{
61 return 0x10000004U;
62}
63static inline u32 pbdma_gp_entry1_get_hi_v(u32 r)
64{
65 return (r >> 0U) & 0xffU;
66}
67static inline u32 pbdma_gp_entry1_length_f(u32 v)
68{
69 return (v & 0x1fffffU) << 10U;
70}
71static inline u32 pbdma_gp_entry1_length_v(u32 r)
72{
73 return (r >> 10U) & 0x1fffffU;
74}
75static inline u32 pbdma_gp_base_r(u32 i)
76{
77 return 0x00040048U + i*8192U;
78}
79static inline u32 pbdma_gp_base__size_1_v(void)
80{
81 return 0x00000001U;
82}
83static inline u32 pbdma_gp_base_offset_f(u32 v)
84{
85 return (v & 0x1fffffffU) << 3U;
86}
87static inline u32 pbdma_gp_base_rsvd_s(void)
88{
89 return 3U;
90}
91static inline u32 pbdma_gp_base_hi_r(u32 i)
92{
93 return 0x0004004cU + i*8192U;
94}
95static inline u32 pbdma_gp_base_hi_offset_f(u32 v)
96{
97 return (v & 0xffU) << 0U;
98}
99static inline u32 pbdma_gp_base_hi_limit2_f(u32 v)
100{
101 return (v & 0x1fU) << 16U;
102}
103static inline u32 pbdma_gp_fetch_r(u32 i)
104{
105 return 0x00040050U + i*8192U;
106}
107static inline u32 pbdma_gp_get_r(u32 i)
108{
109 return 0x00040014U + i*8192U;
110}
111static inline u32 pbdma_gp_put_r(u32 i)
112{
113 return 0x00040000U + i*8192U;
114}
115static inline u32 pbdma_timeout_r(u32 i)
116{
117 return 0x0004012cU + i*8192U;
118}
119static inline u32 pbdma_timeout__size_1_v(void)
120{
121 return 0x00000001U;
122}
123static inline u32 pbdma_timeout_period_m(void)
124{
125 return 0xffffffffU << 0U;
126}
127static inline u32 pbdma_timeout_period_max_f(void)
128{
129 return 0xffffffffU;
130}
131static inline u32 pbdma_pb_fetch_r(u32 i)
132{
133 return 0x00040054U + i*8192U;
134}
135static inline u32 pbdma_pb_fetch_hi_r(u32 i)
136{
137 return 0x00040058U + i*8192U;
138}
139static inline u32 pbdma_get_r(u32 i)
140{
141 return 0x00040018U + i*8192U;
142}
143static inline u32 pbdma_get_hi_r(u32 i)
144{
145 return 0x0004001cU + i*8192U;
146}
147static inline u32 pbdma_put_r(u32 i)
148{
149 return 0x0004005cU + i*8192U;
150}
151static inline u32 pbdma_put_hi_r(u32 i)
152{
153 return 0x00040060U + i*8192U;
154}
155static inline u32 pbdma_formats_r(u32 i)
156{
157 return 0x0004009cU + i*8192U;
158}
159static inline u32 pbdma_formats_gp_fermi0_f(void)
160{
161 return 0x0U;
162}
163static inline u32 pbdma_formats_pb_fermi1_f(void)
164{
165 return 0x100U;
166}
167static inline u32 pbdma_formats_mp_fermi0_f(void)
168{
169 return 0x0U;
170}
171static inline u32 pbdma_pb_header_r(u32 i)
172{
173 return 0x00040084U + i*8192U;
174}
175static inline u32 pbdma_pb_header_priv_user_f(void)
176{
177 return 0x0U;
178}
179static inline u32 pbdma_pb_header_method_zero_f(void)
180{
181 return 0x0U;
182}
183static inline u32 pbdma_pb_header_subchannel_zero_f(void)
184{
185 return 0x0U;
186}
187static inline u32 pbdma_pb_header_level_main_f(void)
188{
189 return 0x0U;
190}
191static inline u32 pbdma_pb_header_first_true_f(void)
192{
193 return 0x400000U;
194}
195static inline u32 pbdma_pb_header_type_inc_f(void)
196{
197 return 0x20000000U;
198}
199static inline u32 pbdma_pb_header_type_non_inc_f(void)
200{
201 return 0x60000000U;
202}
203static inline u32 pbdma_hdr_shadow_r(u32 i)
204{
205 return 0x00040118U + i*8192U;
206}
207static inline u32 pbdma_gp_shadow_0_r(u32 i)
208{
209 return 0x00040110U + i*8192U;
210}
211static inline u32 pbdma_gp_shadow_1_r(u32 i)
212{
213 return 0x00040114U + i*8192U;
214}
215static inline u32 pbdma_subdevice_r(u32 i)
216{
217 return 0x00040094U + i*8192U;
218}
219static inline u32 pbdma_subdevice_id_f(u32 v)
220{
221 return (v & 0xfffU) << 0U;
222}
223static inline u32 pbdma_subdevice_status_active_f(void)
224{
225 return 0x10000000U;
226}
227static inline u32 pbdma_subdevice_channel_dma_enable_f(void)
228{
229 return 0x20000000U;
230}
231static inline u32 pbdma_method0_r(u32 i)
232{
233 return 0x000400c0U + i*8192U;
234}
235static inline u32 pbdma_method0_addr_f(u32 v)
236{
237 return (v & 0xfffU) << 2U;
238}
239static inline u32 pbdma_method0_addr_v(u32 r)
240{
241 return (r >> 2U) & 0xfffU;
242}
243static inline u32 pbdma_method0_subch_v(u32 r)
244{
245 return (r >> 16U) & 0x7U;
246}
247static inline u32 pbdma_method0_first_true_f(void)
248{
249 return 0x400000U;
250}
251static inline u32 pbdma_method0_valid_true_f(void)
252{
253 return 0x80000000U;
254}
255static inline u32 pbdma_method1_r(u32 i)
256{
257 return 0x000400c8U + i*8192U;
258}
259static inline u32 pbdma_method2_r(u32 i)
260{
261 return 0x000400d0U + i*8192U;
262}
263static inline u32 pbdma_method3_r(u32 i)
264{
265 return 0x000400d8U + i*8192U;
266}
267static inline u32 pbdma_data0_r(u32 i)
268{
269 return 0x000400c4U + i*8192U;
270}
271static inline u32 pbdma_target_r(u32 i)
272{
273 return 0x000400acU + i*8192U;
274}
275static inline u32 pbdma_target_engine_sw_f(void)
276{
277 return 0x1fU;
278}
279static inline u32 pbdma_acquire_r(u32 i)
280{
281 return 0x00040030U + i*8192U;
282}
283static inline u32 pbdma_acquire_retry_man_2_f(void)
284{
285 return 0x2U;
286}
287static inline u32 pbdma_acquire_retry_exp_2_f(void)
288{
289 return 0x100U;
290}
291static inline u32 pbdma_acquire_timeout_exp_f(u32 v)
292{
293 return (v & 0xfU) << 11U;
294}
295static inline u32 pbdma_acquire_timeout_exp_max_v(void)
296{
297 return 0x0000000fU;
298}
299static inline u32 pbdma_acquire_timeout_exp_max_f(void)
300{
301 return 0x7800U;
302}
303static inline u32 pbdma_acquire_timeout_man_f(u32 v)
304{
305 return (v & 0xffffU) << 15U;
306}
307static inline u32 pbdma_acquire_timeout_man_max_v(void)
308{
309 return 0x0000ffffU;
310}
311static inline u32 pbdma_acquire_timeout_man_max_f(void)
312{
313 return 0x7fff8000U;
314}
315static inline u32 pbdma_acquire_timeout_en_enable_f(void)
316{
317 return 0x80000000U;
318}
319static inline u32 pbdma_acquire_timeout_en_disable_f(void)
320{
321 return 0x0U;
322}
323static inline u32 pbdma_status_r(u32 i)
324{
325 return 0x00040100U + i*8192U;
326}
327static inline u32 pbdma_channel_r(u32 i)
328{
329 return 0x00040120U + i*8192U;
330}
331static inline u32 pbdma_signature_r(u32 i)
332{
333 return 0x00040010U + i*8192U;
334}
335static inline u32 pbdma_signature_hw_valid_f(void)
336{
337 return 0xfaceU;
338}
339static inline u32 pbdma_signature_sw_zero_f(void)
340{
341 return 0x0U;
342}
343static inline u32 pbdma_userd_r(u32 i)
344{
345 return 0x00040008U + i*8192U;
346}
347static inline u32 pbdma_userd_target_vid_mem_f(void)
348{
349 return 0x0U;
350}
351static inline u32 pbdma_userd_target_sys_mem_coh_f(void)
352{
353 return 0x2U;
354}
355static inline u32 pbdma_userd_target_sys_mem_ncoh_f(void)
356{
357 return 0x3U;
358}
359static inline u32 pbdma_userd_addr_f(u32 v)
360{
361 return (v & 0x7fffffU) << 9U;
362}
363static inline u32 pbdma_userd_hi_r(u32 i)
364{
365 return 0x0004000cU + i*8192U;
366}
367static inline u32 pbdma_userd_hi_addr_f(u32 v)
368{
369 return (v & 0xffU) << 0U;
370}
371static inline u32 pbdma_hce_ctrl_r(u32 i)
372{
373 return 0x000400e4U + i*8192U;
374}
375static inline u32 pbdma_hce_ctrl_hce_priv_mode_yes_f(void)
376{
377 return 0x20U;
378}
379static inline u32 pbdma_intr_0_r(u32 i)
380{
381 return 0x00040108U + i*8192U;
382}
383static inline u32 pbdma_intr_0_memreq_v(u32 r)
384{
385 return (r >> 0U) & 0x1U;
386}
387static inline u32 pbdma_intr_0_memreq_pending_f(void)
388{
389 return 0x1U;
390}
391static inline u32 pbdma_intr_0_memack_timeout_pending_f(void)
392{
393 return 0x2U;
394}
395static inline u32 pbdma_intr_0_memack_extra_pending_f(void)
396{
397 return 0x4U;
398}
399static inline u32 pbdma_intr_0_memdat_timeout_pending_f(void)
400{
401 return 0x8U;
402}
403static inline u32 pbdma_intr_0_memdat_extra_pending_f(void)
404{
405 return 0x10U;
406}
407static inline u32 pbdma_intr_0_memflush_pending_f(void)
408{
409 return 0x20U;
410}
411static inline u32 pbdma_intr_0_memop_pending_f(void)
412{
413 return 0x40U;
414}
415static inline u32 pbdma_intr_0_lbconnect_pending_f(void)
416{
417 return 0x80U;
418}
419static inline u32 pbdma_intr_0_lbreq_pending_f(void)
420{
421 return 0x100U;
422}
423static inline u32 pbdma_intr_0_lback_timeout_pending_f(void)
424{
425 return 0x200U;
426}
427static inline u32 pbdma_intr_0_lback_extra_pending_f(void)
428{
429 return 0x400U;
430}
431static inline u32 pbdma_intr_0_lbdat_timeout_pending_f(void)
432{
433 return 0x800U;
434}
435static inline u32 pbdma_intr_0_lbdat_extra_pending_f(void)
436{
437 return 0x1000U;
438}
439static inline u32 pbdma_intr_0_gpfifo_pending_f(void)
440{
441 return 0x2000U;
442}
443static inline u32 pbdma_intr_0_gpptr_pending_f(void)
444{
445 return 0x4000U;
446}
447static inline u32 pbdma_intr_0_gpentry_pending_f(void)
448{
449 return 0x8000U;
450}
451static inline u32 pbdma_intr_0_gpcrc_pending_f(void)
452{
453 return 0x10000U;
454}
455static inline u32 pbdma_intr_0_pbptr_pending_f(void)
456{
457 return 0x20000U;
458}
459static inline u32 pbdma_intr_0_pbentry_pending_f(void)
460{
461 return 0x40000U;
462}
463static inline u32 pbdma_intr_0_pbcrc_pending_f(void)
464{
465 return 0x80000U;
466}
467static inline u32 pbdma_intr_0_xbarconnect_pending_f(void)
468{
469 return 0x100000U;
470}
471static inline u32 pbdma_intr_0_method_pending_f(void)
472{
473 return 0x200000U;
474}
475static inline u32 pbdma_intr_0_methodcrc_pending_f(void)
476{
477 return 0x400000U;
478}
479static inline u32 pbdma_intr_0_device_pending_f(void)
480{
481 return 0x800000U;
482}
483static inline u32 pbdma_intr_0_semaphore_pending_f(void)
484{
485 return 0x2000000U;
486}
487static inline u32 pbdma_intr_0_acquire_pending_f(void)
488{
489 return 0x4000000U;
490}
491static inline u32 pbdma_intr_0_pri_pending_f(void)
492{
493 return 0x8000000U;
494}
495static inline u32 pbdma_intr_0_no_ctxsw_seg_pending_f(void)
496{
497 return 0x20000000U;
498}
499static inline u32 pbdma_intr_0_pbseg_pending_f(void)
500{
501 return 0x40000000U;
502}
503static inline u32 pbdma_intr_0_signature_pending_f(void)
504{
505 return 0x80000000U;
506}
507static inline u32 pbdma_intr_1_r(u32 i)
508{
509 return 0x00040148U + i*8192U;
510}
511static inline u32 pbdma_intr_en_0_r(u32 i)
512{
513 return 0x0004010cU + i*8192U;
514}
515static inline u32 pbdma_intr_en_0_lbreq_enabled_f(void)
516{
517 return 0x100U;
518}
519static inline u32 pbdma_intr_en_1_r(u32 i)
520{
521 return 0x0004014cU + i*8192U;
522}
523static inline u32 pbdma_intr_stall_r(u32 i)
524{
525 return 0x0004013cU + i*8192U;
526}
527static inline u32 pbdma_intr_stall_lbreq_enabled_f(void)
528{
529 return 0x100U;
530}
531static inline u32 pbdma_intr_stall_1_r(u32 i)
532{
533 return 0x00040140U + i*8192U;
534}
535static inline u32 pbdma_intr_stall_1_hce_illegal_op_enabled_f(void)
536{
537 return 0x1U;
538}
539static inline u32 pbdma_udma_nop_r(void)
540{
541 return 0x00000008U;
542}
543static inline u32 pbdma_syncpointa_r(u32 i)
544{
545 return 0x000400a4U + i*8192U;
546}
547static inline u32 pbdma_syncpointa_payload_v(u32 r)
548{
549 return (r >> 0U) & 0xffffffffU;
550}
551static inline u32 pbdma_syncpointb_r(u32 i)
552{
553 return 0x000400a8U + i*8192U;
554}
555static inline u32 pbdma_syncpointb_op_v(u32 r)
556{
557 return (r >> 0U) & 0x3U;
558}
559static inline u32 pbdma_syncpointb_op_wait_v(void)
560{
561 return 0x00000000U;
562}
563static inline u32 pbdma_syncpointb_wait_switch_v(u32 r)
564{
565 return (r >> 4U) & 0x1U;
566}
567static inline u32 pbdma_syncpointb_wait_switch_en_v(void)
568{
569 return 0x00000001U;
570}
571static inline u32 pbdma_syncpointb_syncpt_index_v(u32 r)
572{
573 return (r >> 8U) & 0xffU;
574}
575#endif
diff --git a/include/nvgpu/hw/gk20a/hw_perf_gk20a.h b/include/nvgpu/hw/gk20a/hw_perf_gk20a.h
new file mode 100644
index 0000000..a93560f
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_perf_gk20a.h
@@ -0,0 +1,211 @@
1/*
2 * Copyright (c) 2015-2017, 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_perf_gk20a_h_
57#define _hw_perf_gk20a_h_
58
59static inline u32 perf_pmasys_control_r(void)
60{
61 return 0x001b4000U;
62}
63static inline u32 perf_pmasys_control_membuf_status_v(u32 r)
64{
65 return (r >> 4U) & 0x1U;
66}
67static inline u32 perf_pmasys_control_membuf_status_overflowed_v(void)
68{
69 return 0x00000001U;
70}
71static inline u32 perf_pmasys_control_membuf_status_overflowed_f(void)
72{
73 return 0x10U;
74}
75static inline u32 perf_pmasys_control_membuf_clear_status_f(u32 v)
76{
77 return (v & 0x1U) << 5U;
78}
79static inline u32 perf_pmasys_control_membuf_clear_status_v(u32 r)
80{
81 return (r >> 5U) & 0x1U;
82}
83static inline u32 perf_pmasys_control_membuf_clear_status_doit_v(void)
84{
85 return 0x00000001U;
86}
87static inline u32 perf_pmasys_control_membuf_clear_status_doit_f(void)
88{
89 return 0x20U;
90}
91static inline u32 perf_pmasys_mem_block_r(void)
92{
93 return 0x001b4070U;
94}
95static inline u32 perf_pmasys_mem_block_base_f(u32 v)
96{
97 return (v & 0xfffffffU) << 0U;
98}
99static inline u32 perf_pmasys_mem_block_target_f(u32 v)
100{
101 return (v & 0x3U) << 28U;
102}
103static inline u32 perf_pmasys_mem_block_target_v(u32 r)
104{
105 return (r >> 28U) & 0x3U;
106}
107static inline u32 perf_pmasys_mem_block_target_lfb_v(void)
108{
109 return 0x00000000U;
110}
111static inline u32 perf_pmasys_mem_block_target_lfb_f(void)
112{
113 return 0x0U;
114}
115static inline u32 perf_pmasys_mem_block_target_sys_coh_v(void)
116{
117 return 0x00000002U;
118}
119static inline u32 perf_pmasys_mem_block_target_sys_coh_f(void)
120{
121 return 0x20000000U;
122}
123static inline u32 perf_pmasys_mem_block_target_sys_ncoh_v(void)
124{
125 return 0x00000003U;
126}
127static inline u32 perf_pmasys_mem_block_target_sys_ncoh_f(void)
128{
129 return 0x30000000U;
130}
131static inline u32 perf_pmasys_mem_block_valid_f(u32 v)
132{
133 return (v & 0x1U) << 31U;
134}
135static inline u32 perf_pmasys_mem_block_valid_v(u32 r)
136{
137 return (r >> 31U) & 0x1U;
138}
139static inline u32 perf_pmasys_mem_block_valid_true_v(void)
140{
141 return 0x00000001U;
142}
143static inline u32 perf_pmasys_mem_block_valid_true_f(void)
144{
145 return 0x80000000U;
146}
147static inline u32 perf_pmasys_mem_block_valid_false_v(void)
148{
149 return 0x00000000U;
150}
151static inline u32 perf_pmasys_mem_block_valid_false_f(void)
152{
153 return 0x0U;
154}
155static inline u32 perf_pmasys_outbase_r(void)
156{
157 return 0x001b4074U;
158}
159static inline u32 perf_pmasys_outbase_ptr_f(u32 v)
160{
161 return (v & 0x7ffffffU) << 5U;
162}
163static inline u32 perf_pmasys_outbaseupper_r(void)
164{
165 return 0x001b4078U;
166}
167static inline u32 perf_pmasys_outbaseupper_ptr_f(u32 v)
168{
169 return (v & 0xffU) << 0U;
170}
171static inline u32 perf_pmasys_outsize_r(void)
172{
173 return 0x001b407cU;
174}
175static inline u32 perf_pmasys_outsize_numbytes_f(u32 v)
176{
177 return (v & 0x7ffffffU) << 5U;
178}
179static inline u32 perf_pmasys_mem_bytes_r(void)
180{
181 return 0x001b4084U;
182}
183static inline u32 perf_pmasys_mem_bytes_numbytes_f(u32 v)
184{
185 return (v & 0xfffffffU) << 4U;
186}
187static inline u32 perf_pmasys_mem_bump_r(void)
188{
189 return 0x001b4088U;
190}
191static inline u32 perf_pmasys_mem_bump_numbytes_f(u32 v)
192{
193 return (v & 0xfffffffU) << 4U;
194}
195static inline u32 perf_pmasys_enginestatus_r(void)
196{
197 return 0x001b40a4U;
198}
199static inline u32 perf_pmasys_enginestatus_rbufempty_f(u32 v)
200{
201 return (v & 0x1U) << 4U;
202}
203static inline u32 perf_pmasys_enginestatus_rbufempty_empty_v(void)
204{
205 return 0x00000001U;
206}
207static inline u32 perf_pmasys_enginestatus_rbufempty_empty_f(void)
208{
209 return 0x10U;
210}
211#endif
diff --git a/include/nvgpu/hw/gk20a/hw_pram_gk20a.h b/include/nvgpu/hw/gk20a/hw_pram_gk20a.h
new file mode 100644
index 0000000..10923e2
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_pram_gk20a.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (c) 2016-2017, 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_pram_gk20a_h_
57#define _hw_pram_gk20a_h_
58
59static inline u32 pram_data032_r(u32 i)
60{
61 return 0x00700000U + i*4U;
62}
63#endif
diff --git a/include/nvgpu/hw/gk20a/hw_pri_ringmaster_gk20a.h b/include/nvgpu/hw/gk20a/hw_pri_ringmaster_gk20a.h
new file mode 100644
index 0000000..ca2775e
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_pri_ringmaster_gk20a.h
@@ -0,0 +1,159 @@
1/*
2 * Copyright (c) 2012-2017, 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_pri_ringmaster_gk20a_h_
57#define _hw_pri_ringmaster_gk20a_h_
58
59static inline u32 pri_ringmaster_command_r(void)
60{
61 return 0x0012004cU;
62}
63static inline u32 pri_ringmaster_command_cmd_m(void)
64{
65 return 0x3fU << 0U;
66}
67static inline u32 pri_ringmaster_command_cmd_v(u32 r)
68{
69 return (r >> 0U) & 0x3fU;
70}
71static inline u32 pri_ringmaster_command_cmd_no_cmd_v(void)
72{
73 return 0x00000000U;
74}
75static inline u32 pri_ringmaster_command_cmd_start_ring_f(void)
76{
77 return 0x1U;
78}
79static inline u32 pri_ringmaster_command_cmd_ack_interrupt_f(void)
80{
81 return 0x2U;
82}
83static inline u32 pri_ringmaster_command_cmd_enumerate_stations_f(void)
84{
85 return 0x3U;
86}
87static inline u32 pri_ringmaster_command_cmd_enumerate_stations_bc_grp_all_f(void)
88{
89 return 0x0U;
90}
91static inline u32 pri_ringmaster_command_data_r(void)
92{
93 return 0x00120048U;
94}
95static inline u32 pri_ringmaster_start_results_r(void)
96{
97 return 0x00120050U;
98}
99static inline u32 pri_ringmaster_start_results_connectivity_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 pri_ringmaster_start_results_connectivity_pass_v(void)
104{
105 return 0x00000001U;
106}
107static inline u32 pri_ringmaster_intr_status0_r(void)
108{
109 return 0x00120058U;
110}
111static inline u32 pri_ringmaster_intr_status0_ring_start_conn_fault_v(u32 r)
112{
113 return (r >> 0U) & 0x1U;
114}
115static inline u32 pri_ringmaster_intr_status0_disconnect_fault_v(u32 r)
116{
117 return (r >> 1U) & 0x1U;
118}
119static inline u32 pri_ringmaster_intr_status0_overflow_fault_v(u32 r)
120{
121 return (r >> 2U) & 0x1U;
122}
123static inline u32 pri_ringmaster_intr_status0_gbl_write_error_sys_v(u32 r)
124{
125 return (r >> 8U) & 0x1U;
126}
127static inline u32 pri_ringmaster_intr_status1_r(void)
128{
129 return 0x0012005cU;
130}
131static inline u32 pri_ringmaster_global_ctl_r(void)
132{
133 return 0x00120060U;
134}
135static inline u32 pri_ringmaster_global_ctl_ring_reset_asserted_f(void)
136{
137 return 0x1U;
138}
139static inline u32 pri_ringmaster_global_ctl_ring_reset_deasserted_f(void)
140{
141 return 0x0U;
142}
143static inline u32 pri_ringmaster_enum_fbp_r(void)
144{
145 return 0x00120074U;
146}
147static inline u32 pri_ringmaster_enum_fbp_count_v(u32 r)
148{
149 return (r >> 0U) & 0x1fU;
150}
151static inline u32 pri_ringmaster_enum_gpc_r(void)
152{
153 return 0x00120078U;
154}
155static inline u32 pri_ringmaster_enum_gpc_count_v(u32 r)
156{
157 return (r >> 0U) & 0x1fU;
158}
159#endif
diff --git a/include/nvgpu/hw/gk20a/hw_pri_ringstation_fbp_gk20a.h b/include/nvgpu/hw/gk20a/hw_pri_ringstation_fbp_gk20a.h
new file mode 100644
index 0000000..06e08bd
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_pri_ringstation_fbp_gk20a.h
@@ -0,0 +1,231 @@
1/*
2 * drivers/video/tegra/host/gk20a/hw_pri_ringstation_fbp_gk20a.h
3 *
4 * Copyright (c) 2012-2013, NVIDIA Corporation. All rights reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 */
24
25 /*
26 * Function naming determines intended use:
27 *
28 * <x>_r(void) : Returns the offset for register <x>.
29 *
30 * <x>_w(void) : Returns the word offset for word (4 byte) element <x>.
31 *
32 * <x>_<y>_s(void) : Returns size of field <y> of register <x> in bits.
33 *
34 * <x>_<y>_f(u32 v) : Returns a value based on 'v' which has been shifted
35 * and masked to place it at field <y> of register <x>. This value
36 * can be |'d with others to produce a full register value for
37 * register <x>.
38 *
39 * <x>_<y>_m(void) : Returns a mask for field <y> of register <x>. This
40 * value can be ~'d and then &'d to clear the value of field <y> for
41 * register <x>.
42 *
43 * <x>_<y>_<z>_f(void) : Returns the constant value <z> after being shifted
44 * to place it at field <y> of register <x>. This value can be |'d
45 * with others to produce a full register value for <x>.
46 *
47 * <x>_<y>_v(u32 r) : Returns the value of field <y> from a full register
48 * <x> value 'r' after being shifted to place its LSB at bit 0.
49 * This value is suitable for direct comparison with other unshifted
50 * values appropriate for use in field <y> of register <x>.
51 *
52 * <x>_<y>_<z>_v(void) : Returns the constant value for <z> defined for
53 * field <y> of register <x>. This value is suitable for direct
54 * comparison with unshifted values appropriate for use in field <y>
55 * of register <x>.
56 */
57
58#ifndef __hw_pri_ringstation_fbp_gk20a_h__
59#define __hw_pri_ringstation_fbp_gk20a_h__
60/*This file is autogenerated. Do not edit. */
61
62static inline u32 pri_ringstation_fbp_master_config_r(u32 i)
63{
64 return 0x00124300+((i)*4);
65}
66static inline u32 pri_ringstation_fbp_master_config__size_1_v(void)
67{
68 return 64;
69}
70static inline u32 pri_ringstation_fbp_master_config_timeout_s(void)
71{
72 return 18;
73}
74static inline u32 pri_ringstation_fbp_master_config_timeout_f(u32 v)
75{
76 return (v & 0x3ffff) << 0;
77}
78static inline u32 pri_ringstation_fbp_master_config_timeout_m(void)
79{
80 return 0x3ffff << 0;
81}
82static inline u32 pri_ringstation_fbp_master_config_timeout_v(u32 r)
83{
84 return (r >> 0) & 0x3ffff;
85}
86static inline u32 pri_ringstation_fbp_master_config_timeout_i_v(void)
87{
88 return 0x00000064;
89}
90static inline u32 pri_ringstation_fbp_master_config_timeout_i_f(void)
91{
92 return 0x64;
93}
94static inline u32 pri_ringstation_fbp_master_config_fs_action_s(void)
95{
96 return 1;
97}
98static inline u32 pri_ringstation_fbp_master_config_fs_action_f(u32 v)
99{
100 return (v & 0x1) << 30;
101}
102static inline u32 pri_ringstation_fbp_master_config_fs_action_m(void)
103{
104 return 0x1 << 30;
105}
106static inline u32 pri_ringstation_fbp_master_config_fs_action_v(u32 r)
107{
108 return (r >> 30) & 0x1;
109}
110static inline u32 pri_ringstation_fbp_master_config_fs_action_error_v(void)
111{
112 return 0x00000000;
113}
114static inline u32 pri_ringstation_fbp_master_config_fs_action_error_f(void)
115{
116 return 0x0;
117}
118static inline u32 pri_ringstation_fbp_master_config_fs_action_soldier_on_v(void)
119{
120 return 0x00000001;
121}
122static inline u32 pri_ringstation_fbp_master_config_fs_action_soldier_on_f(void)
123{
124 return 0x40000000;
125}
126static inline u32 pri_ringstation_fbp_master_config_reset_action_s(void)
127{
128 return 1;
129}
130static inline u32 pri_ringstation_fbp_master_config_reset_action_f(u32 v)
131{
132 return (v & 0x1) << 31;
133}
134static inline u32 pri_ringstation_fbp_master_config_reset_action_m(void)
135{
136 return 0x1 << 31;
137}
138static inline u32 pri_ringstation_fbp_master_config_reset_action_v(u32 r)
139{
140 return (r >> 31) & 0x1;
141}
142static inline u32 pri_ringstation_fbp_master_config_reset_action_error_v(void)
143{
144 return 0x00000000;
145}
146static inline u32 pri_ringstation_fbp_master_config_reset_action_error_f(void)
147{
148 return 0x0;
149}
150static inline u32 pri_ringstation_fbp_master_config_reset_action_soldier_on_v(void)
151{
152 return 0x00000001;
153}
154static inline u32 pri_ringstation_fbp_master_config_reset_action_soldier_on_f(void)
155{
156 return 0x80000000;
157}
158static inline u32 pri_ringstation_fbp_master_config_setup_clocks_s(void)
159{
160 return 3;
161}
162static inline u32 pri_ringstation_fbp_master_config_setup_clocks_f(u32 v)
163{
164 return (v & 0x7) << 20;
165}
166static inline u32 pri_ringstation_fbp_master_config_setup_clocks_m(void)
167{
168 return 0x7 << 20;
169}
170static inline u32 pri_ringstation_fbp_master_config_setup_clocks_v(u32 r)
171{
172 return (r >> 20) & 0x7;
173}
174static inline u32 pri_ringstation_fbp_master_config_setup_clocks_i_v(void)
175{
176 return 0x00000000;
177}
178static inline u32 pri_ringstation_fbp_master_config_setup_clocks_i_f(void)
179{
180 return 0x0;
181}
182static inline u32 pri_ringstation_fbp_master_config_wait_clocks_s(void)
183{
184 return 3;
185}
186static inline u32 pri_ringstation_fbp_master_config_wait_clocks_f(u32 v)
187{
188 return (v & 0x7) << 24;
189}
190static inline u32 pri_ringstation_fbp_master_config_wait_clocks_m(void)
191{
192 return 0x7 << 24;
193}
194static inline u32 pri_ringstation_fbp_master_config_wait_clocks_v(u32 r)
195{
196 return (r >> 24) & 0x7;
197}
198static inline u32 pri_ringstation_fbp_master_config_wait_clocks_i_v(void)
199{
200 return 0x00000000;
201}
202static inline u32 pri_ringstation_fbp_master_config_wait_clocks_i_f(void)
203{
204 return 0x0;
205}
206static inline u32 pri_ringstation_fbp_master_config_hold_clocks_s(void)
207{
208 return 3;
209}
210static inline u32 pri_ringstation_fbp_master_config_hold_clocks_f(u32 v)
211{
212 return (v & 0x7) << 27;
213}
214static inline u32 pri_ringstation_fbp_master_config_hold_clocks_m(void)
215{
216 return 0x7 << 27;
217}
218static inline u32 pri_ringstation_fbp_master_config_hold_clocks_v(u32 r)
219{
220 return (r >> 27) & 0x7;
221}
222static inline u32 pri_ringstation_fbp_master_config_hold_clocks_i_v(void)
223{
224 return 0x00000000;
225}
226static inline u32 pri_ringstation_fbp_master_config_hold_clocks_i_f(void)
227{
228 return 0x0;
229}
230
231#endif /* __hw_pri_ringstation_fbp_gk20a_h__ */
diff --git a/include/nvgpu/hw/gk20a/hw_pri_ringstation_gpc_gk20a.h b/include/nvgpu/hw/gk20a/hw_pri_ringstation_gpc_gk20a.h
new file mode 100644
index 0000000..6b57429
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_pri_ringstation_gpc_gk20a.h
@@ -0,0 +1,79 @@
1/*
2 * Copyright (c) 2012-2017, 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_pri_ringstation_gpc_gk20a_h_
57#define _hw_pri_ringstation_gpc_gk20a_h_
58
59static inline u32 pri_ringstation_gpc_master_config_r(u32 i)
60{
61 return 0x00128300U + i*4U;
62}
63static inline u32 pri_ringstation_gpc_gpc0_priv_error_adr_r(void)
64{
65 return 0x00128120U;
66}
67static inline u32 pri_ringstation_gpc_gpc0_priv_error_wrdat_r(void)
68{
69 return 0x00128124U;
70}
71static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_r(void)
72{
73 return 0x00128128U;
74}
75static inline u32 pri_ringstation_gpc_gpc0_priv_error_code_r(void)
76{
77 return 0x0012812cU;
78}
79#endif
diff --git a/include/nvgpu/hw/gk20a/hw_pri_ringstation_sys_gk20a.h b/include/nvgpu/hw/gk20a/hw_pri_ringstation_sys_gk20a.h
new file mode 100644
index 0000000..e4d5c3b
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_pri_ringstation_sys_gk20a.h
@@ -0,0 +1,91 @@
1/*
2 * Copyright (c) 2012-2017, 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_pri_ringstation_sys_gk20a_h_
57#define _hw_pri_ringstation_sys_gk20a_h_
58
59static inline u32 pri_ringstation_sys_master_config_r(u32 i)
60{
61 return 0x00122300U + i*4U;
62}
63static inline u32 pri_ringstation_sys_decode_config_r(void)
64{
65 return 0x00122204U;
66}
67static inline u32 pri_ringstation_sys_decode_config_ring_m(void)
68{
69 return 0x7U << 0U;
70}
71static inline u32 pri_ringstation_sys_decode_config_ring_drop_on_ring_not_started_f(void)
72{
73 return 0x1U;
74}
75static inline u32 pri_ringstation_sys_priv_error_adr_r(void)
76{
77 return 0x00122120U;
78}
79static inline u32 pri_ringstation_sys_priv_error_wrdat_r(void)
80{
81 return 0x00122124U;
82}
83static inline u32 pri_ringstation_sys_priv_error_info_r(void)
84{
85 return 0x00122128U;
86}
87static inline u32 pri_ringstation_sys_priv_error_code_r(void)
88{
89 return 0x0012212cU;
90}
91#endif
diff --git a/include/nvgpu/hw/gk20a/hw_proj_gk20a.h b/include/nvgpu/hw/gk20a/hw_proj_gk20a.h
new file mode 100644
index 0000000..10509ca
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_proj_gk20a.h
@@ -0,0 +1,167 @@
1/*
2 * Copyright (c) 2012-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_proj_gk20a_h_
57#define _hw_proj_gk20a_h_
58
59static inline u32 proj_gpc_base_v(void)
60{
61 return 0x00500000U;
62}
63static inline u32 proj_gpc_shared_base_v(void)
64{
65 return 0x00418000U;
66}
67static inline u32 proj_gpc_stride_v(void)
68{
69 return 0x00008000U;
70}
71static inline u32 proj_gpc_priv_stride_v(void)
72{
73 return 0x00000800U;
74}
75static inline u32 proj_ltc_stride_v(void)
76{
77 return 0x00002000U;
78}
79static inline u32 proj_lts_stride_v(void)
80{
81 return 0x00000400U;
82}
83static inline u32 proj_fbpa_stride_v(void)
84{
85 return 0x00001000U;
86}
87static inline u32 proj_ppc_in_gpc_base_v(void)
88{
89 return 0x00003000U;
90}
91static inline u32 proj_ppc_in_gpc_shared_base_v(void)
92{
93 return 0x00003e00U;
94}
95static inline u32 proj_ppc_in_gpc_stride_v(void)
96{
97 return 0x00000200U;
98}
99static inline u32 proj_rop_base_v(void)
100{
101 return 0x00410000U;
102}
103static inline u32 proj_rop_shared_base_v(void)
104{
105 return 0x00408800U;
106}
107static inline u32 proj_rop_stride_v(void)
108{
109 return 0x00000400U;
110}
111static inline u32 proj_tpc_in_gpc_base_v(void)
112{
113 return 0x00004000U;
114}
115static inline u32 proj_tpc_in_gpc_stride_v(void)
116{
117 return 0x00000800U;
118}
119static inline u32 proj_tpc_in_gpc_shared_base_v(void)
120{
121 return 0x00001800U;
122}
123static inline u32 proj_host_num_engines_v(void)
124{
125 return 0x00000002U;
126}
127static inline u32 proj_host_num_pbdma_v(void)
128{
129 return 0x00000001U;
130}
131static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void)
132{
133 return 0x00000001U;
134}
135static inline u32 proj_scal_litter_num_fbps_v(void)
136{
137 return 0x00000001U;
138}
139static inline u32 proj_scal_litter_num_fbpas_v(void)
140{
141 return 0x00000001U;
142}
143static inline u32 proj_scal_litter_num_gpcs_v(void)
144{
145 return 0x00000001U;
146}
147static inline u32 proj_scal_litter_num_pes_per_gpc_v(void)
148{
149 return 0x00000001U;
150}
151static inline u32 proj_scal_litter_num_tpcs_per_pes_v(void)
152{
153 return 0x00000001U;
154}
155static inline u32 proj_scal_litter_num_zcull_banks_v(void)
156{
157 return 0x00000004U;
158}
159static inline u32 proj_scal_max_gpcs_v(void)
160{
161 return 0x00000020U;
162}
163static inline u32 proj_scal_max_tpc_per_gpc_v(void)
164{
165 return 0x00000008U;
166}
167#endif
diff --git a/include/nvgpu/hw/gk20a/hw_pwr_gk20a.h b/include/nvgpu/hw/gk20a/hw_pwr_gk20a.h
new file mode 100644
index 0000000..b879563
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_pwr_gk20a.h
@@ -0,0 +1,827 @@
1/*
2 * Copyright (c) 2012-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_pwr_gk20a_h_
57#define _hw_pwr_gk20a_h_
58
59static inline u32 pwr_falcon_irqsset_r(void)
60{
61 return 0x0010a000U;
62}
63static inline u32 pwr_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 pwr_falcon_irqsclr_r(void)
68{
69 return 0x0010a004U;
70}
71static inline u32 pwr_falcon_irqstat_r(void)
72{
73 return 0x0010a008U;
74}
75static inline u32 pwr_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 pwr_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 pwr_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 pwr_falcon_irqmode_r(void)
88{
89 return 0x0010a00cU;
90}
91static inline u32 pwr_falcon_irqmset_r(void)
92{
93 return 0x0010a010U;
94}
95static inline u32 pwr_falcon_irqmset_gptmr_f(u32 v)
96{
97 return (v & 0x1U) << 0U;
98}
99static inline u32 pwr_falcon_irqmset_wdtmr_f(u32 v)
100{
101 return (v & 0x1U) << 1U;
102}
103static inline u32 pwr_falcon_irqmset_mthd_f(u32 v)
104{
105 return (v & 0x1U) << 2U;
106}
107static inline u32 pwr_falcon_irqmset_ctxsw_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 pwr_falcon_irqmset_halt_f(u32 v)
112{
113 return (v & 0x1U) << 4U;
114}
115static inline u32 pwr_falcon_irqmset_exterr_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 pwr_falcon_irqmset_swgen0_f(u32 v)
120{
121 return (v & 0x1U) << 6U;
122}
123static inline u32 pwr_falcon_irqmset_swgen1_f(u32 v)
124{
125 return (v & 0x1U) << 7U;
126}
127static inline u32 pwr_falcon_irqmclr_r(void)
128{
129 return 0x0010a014U;
130}
131static inline u32 pwr_falcon_irqmclr_gptmr_f(u32 v)
132{
133 return (v & 0x1U) << 0U;
134}
135static inline u32 pwr_falcon_irqmclr_wdtmr_f(u32 v)
136{
137 return (v & 0x1U) << 1U;
138}
139static inline u32 pwr_falcon_irqmclr_mthd_f(u32 v)
140{
141 return (v & 0x1U) << 2U;
142}
143static inline u32 pwr_falcon_irqmclr_ctxsw_f(u32 v)
144{
145 return (v & 0x1U) << 3U;
146}
147static inline u32 pwr_falcon_irqmclr_halt_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 pwr_falcon_irqmclr_exterr_f(u32 v)
152{
153 return (v & 0x1U) << 5U;
154}
155static inline u32 pwr_falcon_irqmclr_swgen0_f(u32 v)
156{
157 return (v & 0x1U) << 6U;
158}
159static inline u32 pwr_falcon_irqmclr_swgen1_f(u32 v)
160{
161 return (v & 0x1U) << 7U;
162}
163static inline u32 pwr_falcon_irqmclr_ext_f(u32 v)
164{
165 return (v & 0xffU) << 8U;
166}
167static inline u32 pwr_falcon_irqmask_r(void)
168{
169 return 0x0010a018U;
170}
171static inline u32 pwr_falcon_irqdest_r(void)
172{
173 return 0x0010a01cU;
174}
175static inline u32 pwr_falcon_irqdest_host_gptmr_f(u32 v)
176{
177 return (v & 0x1U) << 0U;
178}
179static inline u32 pwr_falcon_irqdest_host_wdtmr_f(u32 v)
180{
181 return (v & 0x1U) << 1U;
182}
183static inline u32 pwr_falcon_irqdest_host_mthd_f(u32 v)
184{
185 return (v & 0x1U) << 2U;
186}
187static inline u32 pwr_falcon_irqdest_host_ctxsw_f(u32 v)
188{
189 return (v & 0x1U) << 3U;
190}
191static inline u32 pwr_falcon_irqdest_host_halt_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 pwr_falcon_irqdest_host_exterr_f(u32 v)
196{
197 return (v & 0x1U) << 5U;
198}
199static inline u32 pwr_falcon_irqdest_host_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 pwr_falcon_irqdest_host_swgen1_f(u32 v)
204{
205 return (v & 0x1U) << 7U;
206}
207static inline u32 pwr_falcon_irqdest_host_ext_f(u32 v)
208{
209 return (v & 0xffU) << 8U;
210}
211static inline u32 pwr_falcon_irqdest_target_gptmr_f(u32 v)
212{
213 return (v & 0x1U) << 16U;
214}
215static inline u32 pwr_falcon_irqdest_target_wdtmr_f(u32 v)
216{
217 return (v & 0x1U) << 17U;
218}
219static inline u32 pwr_falcon_irqdest_target_mthd_f(u32 v)
220{
221 return (v & 0x1U) << 18U;
222}
223static inline u32 pwr_falcon_irqdest_target_ctxsw_f(u32 v)
224{
225 return (v & 0x1U) << 19U;
226}
227static inline u32 pwr_falcon_irqdest_target_halt_f(u32 v)
228{
229 return (v & 0x1U) << 20U;
230}
231static inline u32 pwr_falcon_irqdest_target_exterr_f(u32 v)
232{
233 return (v & 0x1U) << 21U;
234}
235static inline u32 pwr_falcon_irqdest_target_swgen0_f(u32 v)
236{
237 return (v & 0x1U) << 22U;
238}
239static inline u32 pwr_falcon_irqdest_target_swgen1_f(u32 v)
240{
241 return (v & 0x1U) << 23U;
242}
243static inline u32 pwr_falcon_irqdest_target_ext_f(u32 v)
244{
245 return (v & 0xffU) << 24U;
246}
247static inline u32 pwr_falcon_curctx_r(void)
248{
249 return 0x0010a050U;
250}
251static inline u32 pwr_falcon_nxtctx_r(void)
252{
253 return 0x0010a054U;
254}
255static inline u32 pwr_falcon_mailbox0_r(void)
256{
257 return 0x0010a040U;
258}
259static inline u32 pwr_falcon_mailbox1_r(void)
260{
261 return 0x0010a044U;
262}
263static inline u32 pwr_falcon_itfen_r(void)
264{
265 return 0x0010a048U;
266}
267static inline u32 pwr_falcon_itfen_ctxen_enable_f(void)
268{
269 return 0x1U;
270}
271static inline u32 pwr_falcon_idlestate_r(void)
272{
273 return 0x0010a04cU;
274}
275static inline u32 pwr_falcon_idlestate_falcon_busy_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 pwr_falcon_idlestate_ext_busy_v(u32 r)
280{
281 return (r >> 1U) & 0x7fffU;
282}
283static inline u32 pwr_falcon_os_r(void)
284{
285 return 0x0010a080U;
286}
287static inline u32 pwr_falcon_engctl_r(void)
288{
289 return 0x0010a0a4U;
290}
291static inline u32 pwr_falcon_cpuctl_r(void)
292{
293 return 0x0010a100U;
294}
295static inline u32 pwr_falcon_cpuctl_startcpu_f(u32 v)
296{
297 return (v & 0x1U) << 1U;
298}
299static inline u32 pwr_falcon_cpuctl_halt_intr_f(u32 v)
300{
301 return (v & 0x1U) << 4U;
302}
303static inline u32 pwr_falcon_cpuctl_halt_intr_m(void)
304{
305 return 0x1U << 4U;
306}
307static inline u32 pwr_falcon_cpuctl_halt_intr_v(u32 r)
308{
309 return (r >> 4U) & 0x1U;
310}
311static inline u32 pwr_falcon_imemc_r(u32 i)
312{
313 return 0x0010a180U + i*16U;
314}
315static inline u32 pwr_falcon_imemc_offs_f(u32 v)
316{
317 return (v & 0x3fU) << 2U;
318}
319static inline u32 pwr_falcon_imemc_blk_f(u32 v)
320{
321 return (v & 0xffU) << 8U;
322}
323static inline u32 pwr_falcon_imemc_aincw_f(u32 v)
324{
325 return (v & 0x1U) << 24U;
326}
327static inline u32 pwr_falcon_imemd_r(u32 i)
328{
329 return 0x0010a184U + i*16U;
330}
331static inline u32 pwr_falcon_imemt_r(u32 i)
332{
333 return 0x0010a188U + i*16U;
334}
335static inline u32 pwr_falcon_bootvec_r(void)
336{
337 return 0x0010a104U;
338}
339static inline u32 pwr_falcon_bootvec_vec_f(u32 v)
340{
341 return (v & 0xffffffffU) << 0U;
342}
343static inline u32 pwr_falcon_dmactl_r(void)
344{
345 return 0x0010a10cU;
346}
347static inline u32 pwr_falcon_dmactl_dmem_scrubbing_m(void)
348{
349 return 0x1U << 1U;
350}
351static inline u32 pwr_falcon_dmactl_imem_scrubbing_m(void)
352{
353 return 0x1U << 2U;
354}
355static inline u32 pwr_falcon_hwcfg_r(void)
356{
357 return 0x0010a108U;
358}
359static inline u32 pwr_falcon_hwcfg_imem_size_v(u32 r)
360{
361 return (r >> 0U) & 0x1ffU;
362}
363static inline u32 pwr_falcon_hwcfg_dmem_size_v(u32 r)
364{
365 return (r >> 9U) & 0x1ffU;
366}
367static inline u32 pwr_falcon_dmatrfbase_r(void)
368{
369 return 0x0010a110U;
370}
371static inline u32 pwr_falcon_dmatrfmoffs_r(void)
372{
373 return 0x0010a114U;
374}
375static inline u32 pwr_falcon_dmatrfcmd_r(void)
376{
377 return 0x0010a118U;
378}
379static inline u32 pwr_falcon_dmatrfcmd_imem_f(u32 v)
380{
381 return (v & 0x1U) << 4U;
382}
383static inline u32 pwr_falcon_dmatrfcmd_write_f(u32 v)
384{
385 return (v & 0x1U) << 5U;
386}
387static inline u32 pwr_falcon_dmatrfcmd_size_f(u32 v)
388{
389 return (v & 0x7U) << 8U;
390}
391static inline u32 pwr_falcon_dmatrfcmd_ctxdma_f(u32 v)
392{
393 return (v & 0x7U) << 12U;
394}
395static inline u32 pwr_falcon_dmatrffboffs_r(void)
396{
397 return 0x0010a11cU;
398}
399static inline u32 pwr_falcon_exterraddr_r(void)
400{
401 return 0x0010a168U;
402}
403static inline u32 pwr_falcon_exterrstat_r(void)
404{
405 return 0x0010a16cU;
406}
407static inline u32 pwr_falcon_exterrstat_valid_m(void)
408{
409 return 0x1U << 31U;
410}
411static inline u32 pwr_falcon_exterrstat_valid_v(u32 r)
412{
413 return (r >> 31U) & 0x1U;
414}
415static inline u32 pwr_falcon_exterrstat_valid_true_v(void)
416{
417 return 0x00000001U;
418}
419static inline u32 pwr_pmu_falcon_icd_cmd_r(void)
420{
421 return 0x0010a200U;
422}
423static inline u32 pwr_pmu_falcon_icd_cmd_opc_s(void)
424{
425 return 4U;
426}
427static inline u32 pwr_pmu_falcon_icd_cmd_opc_f(u32 v)
428{
429 return (v & 0xfU) << 0U;
430}
431static inline u32 pwr_pmu_falcon_icd_cmd_opc_m(void)
432{
433 return 0xfU << 0U;
434}
435static inline u32 pwr_pmu_falcon_icd_cmd_opc_v(u32 r)
436{
437 return (r >> 0U) & 0xfU;
438}
439static inline u32 pwr_pmu_falcon_icd_cmd_opc_rreg_f(void)
440{
441 return 0x8U;
442}
443static inline u32 pwr_pmu_falcon_icd_cmd_opc_rstat_f(void)
444{
445 return 0xeU;
446}
447static inline u32 pwr_pmu_falcon_icd_cmd_idx_f(u32 v)
448{
449 return (v & 0x1fU) << 8U;
450}
451static inline u32 pwr_pmu_falcon_icd_rdata_r(void)
452{
453 return 0x0010a20cU;
454}
455static inline u32 pwr_falcon_dmemc_r(u32 i)
456{
457 return 0x0010a1c0U + i*8U;
458}
459static inline u32 pwr_falcon_dmemc_offs_f(u32 v)
460{
461 return (v & 0x3fU) << 2U;
462}
463static inline u32 pwr_falcon_dmemc_offs_m(void)
464{
465 return 0x3fU << 2U;
466}
467static inline u32 pwr_falcon_dmemc_blk_f(u32 v)
468{
469 return (v & 0xffU) << 8U;
470}
471static inline u32 pwr_falcon_dmemc_blk_m(void)
472{
473 return 0xffU << 8U;
474}
475static inline u32 pwr_falcon_dmemc_aincw_f(u32 v)
476{
477 return (v & 0x1U) << 24U;
478}
479static inline u32 pwr_falcon_dmemc_aincr_f(u32 v)
480{
481 return (v & 0x1U) << 25U;
482}
483static inline u32 pwr_falcon_dmemd_r(u32 i)
484{
485 return 0x0010a1c4U + i*8U;
486}
487static inline u32 pwr_pmu_new_instblk_r(void)
488{
489 return 0x0010a480U;
490}
491static inline u32 pwr_pmu_new_instblk_ptr_f(u32 v)
492{
493 return (v & 0xfffffffU) << 0U;
494}
495static inline u32 pwr_pmu_new_instblk_target_fb_f(void)
496{
497 return 0x0U;
498}
499static inline u32 pwr_pmu_new_instblk_target_sys_coh_f(void)
500{
501 return 0x20000000U;
502}
503static inline u32 pwr_pmu_new_instblk_target_sys_ncoh_f(void)
504{
505 return 0x30000000U;
506}
507static inline u32 pwr_pmu_new_instblk_valid_f(u32 v)
508{
509 return (v & 0x1U) << 30U;
510}
511static inline u32 pwr_pmu_mutex_id_r(void)
512{
513 return 0x0010a488U;
514}
515static inline u32 pwr_pmu_mutex_id_value_v(u32 r)
516{
517 return (r >> 0U) & 0xffU;
518}
519static inline u32 pwr_pmu_mutex_id_value_init_v(void)
520{
521 return 0x00000000U;
522}
523static inline u32 pwr_pmu_mutex_id_value_not_avail_v(void)
524{
525 return 0x000000ffU;
526}
527static inline u32 pwr_pmu_mutex_id_release_r(void)
528{
529 return 0x0010a48cU;
530}
531static inline u32 pwr_pmu_mutex_id_release_value_f(u32 v)
532{
533 return (v & 0xffU) << 0U;
534}
535static inline u32 pwr_pmu_mutex_id_release_value_m(void)
536{
537 return 0xffU << 0U;
538}
539static inline u32 pwr_pmu_mutex_id_release_value_init_v(void)
540{
541 return 0x00000000U;
542}
543static inline u32 pwr_pmu_mutex_id_release_value_init_f(void)
544{
545 return 0x0U;
546}
547static inline u32 pwr_pmu_mutex_r(u32 i)
548{
549 return 0x0010a580U + i*4U;
550}
551static inline u32 pwr_pmu_mutex__size_1_v(void)
552{
553 return 0x00000010U;
554}
555static inline u32 pwr_pmu_mutex_value_f(u32 v)
556{
557 return (v & 0xffU) << 0U;
558}
559static inline u32 pwr_pmu_mutex_value_v(u32 r)
560{
561 return (r >> 0U) & 0xffU;
562}
563static inline u32 pwr_pmu_mutex_value_initial_lock_f(void)
564{
565 return 0x0U;
566}
567static inline u32 pwr_pmu_queue_head_r(u32 i)
568{
569 return 0x0010a4a0U + i*4U;
570}
571static inline u32 pwr_pmu_queue_head__size_1_v(void)
572{
573 return 0x00000004U;
574}
575static inline u32 pwr_pmu_queue_head_address_f(u32 v)
576{
577 return (v & 0xffffffffU) << 0U;
578}
579static inline u32 pwr_pmu_queue_head_address_v(u32 r)
580{
581 return (r >> 0U) & 0xffffffffU;
582}
583static inline u32 pwr_pmu_queue_tail_r(u32 i)
584{
585 return 0x0010a4b0U + i*4U;
586}
587static inline u32 pwr_pmu_queue_tail__size_1_v(void)
588{
589 return 0x00000004U;
590}
591static inline u32 pwr_pmu_queue_tail_address_f(u32 v)
592{
593 return (v & 0xffffffffU) << 0U;
594}
595static inline u32 pwr_pmu_queue_tail_address_v(u32 r)
596{
597 return (r >> 0U) & 0xffffffffU;
598}
599static inline u32 pwr_pmu_msgq_head_r(void)
600{
601 return 0x0010a4c8U;
602}
603static inline u32 pwr_pmu_msgq_head_val_f(u32 v)
604{
605 return (v & 0xffffffffU) << 0U;
606}
607static inline u32 pwr_pmu_msgq_head_val_v(u32 r)
608{
609 return (r >> 0U) & 0xffffffffU;
610}
611static inline u32 pwr_pmu_msgq_tail_r(void)
612{
613 return 0x0010a4ccU;
614}
615static inline u32 pwr_pmu_msgq_tail_val_f(u32 v)
616{
617 return (v & 0xffffffffU) << 0U;
618}
619static inline u32 pwr_pmu_msgq_tail_val_v(u32 r)
620{
621 return (r >> 0U) & 0xffffffffU;
622}
623static inline u32 pwr_pmu_idle_mask_r(u32 i)
624{
625 return 0x0010a504U + i*16U;
626}
627static inline u32 pwr_pmu_idle_mask_gr_enabled_f(void)
628{
629 return 0x1U;
630}
631static inline u32 pwr_pmu_idle_mask_ce_2_enabled_f(void)
632{
633 return 0x200000U;
634}
635static inline u32 pwr_pmu_idle_mask_1_r(u32 i)
636{
637 return 0x0010aa34U + i*8U;
638}
639static inline u32 pwr_pmu_idle_count_r(u32 i)
640{
641 return 0x0010a508U + i*16U;
642}
643static inline u32 pwr_pmu_idle_count_value_f(u32 v)
644{
645 return (v & 0x7fffffffU) << 0U;
646}
647static inline u32 pwr_pmu_idle_count_value_v(u32 r)
648{
649 return (r >> 0U) & 0x7fffffffU;
650}
651static inline u32 pwr_pmu_idle_count_reset_f(u32 v)
652{
653 return (v & 0x1U) << 31U;
654}
655static inline u32 pwr_pmu_idle_ctrl_r(u32 i)
656{
657 return 0x0010a50cU + i*16U;
658}
659static inline u32 pwr_pmu_idle_ctrl_value_m(void)
660{
661 return 0x3U << 0U;
662}
663static inline u32 pwr_pmu_idle_ctrl_value_busy_f(void)
664{
665 return 0x2U;
666}
667static inline u32 pwr_pmu_idle_ctrl_value_always_f(void)
668{
669 return 0x3U;
670}
671static inline u32 pwr_pmu_idle_ctrl_filter_m(void)
672{
673 return 0x1U << 2U;
674}
675static inline u32 pwr_pmu_idle_ctrl_filter_disabled_f(void)
676{
677 return 0x0U;
678}
679static inline u32 pwr_pmu_idle_threshold_r(u32 i)
680{
681 return 0x0010a8a0U + i*4U;
682}
683static inline u32 pwr_pmu_idle_threshold_value_f(u32 v)
684{
685 return (v & 0x7fffffffU) << 0U;
686}
687static inline u32 pwr_pmu_idle_intr_r(void)
688{
689 return 0x0010a9e8U;
690}
691static inline u32 pwr_pmu_idle_intr_en_f(u32 v)
692{
693 return (v & 0x1U) << 0U;
694}
695static inline u32 pwr_pmu_idle_intr_en_disabled_v(void)
696{
697 return 0x00000000U;
698}
699static inline u32 pwr_pmu_idle_intr_en_enabled_v(void)
700{
701 return 0x00000001U;
702}
703static inline u32 pwr_pmu_idle_intr_status_r(void)
704{
705 return 0x0010a9ecU;
706}
707static inline u32 pwr_pmu_idle_intr_status_intr_f(u32 v)
708{
709 return (v & 0x1U) << 0U;
710}
711static inline u32 pwr_pmu_idle_intr_status_intr_m(void)
712{
713 return 0x1U << 0U;
714}
715static inline u32 pwr_pmu_idle_intr_status_intr_v(u32 r)
716{
717 return (r >> 0U) & 0x1U;
718}
719static inline u32 pwr_pmu_idle_mask_supp_r(u32 i)
720{
721 return 0x0010a9f0U + i*8U;
722}
723static inline u32 pwr_pmu_idle_mask_1_supp_r(u32 i)
724{
725 return 0x0010a9f4U + i*8U;
726}
727static inline u32 pwr_pmu_idle_ctrl_supp_r(u32 i)
728{
729 return 0x0010aa30U + i*8U;
730}
731static inline u32 pwr_pmu_debug_r(u32 i)
732{
733 return 0x0010a5c0U + i*4U;
734}
735static inline u32 pwr_pmu_debug__size_1_v(void)
736{
737 return 0x00000004U;
738}
739static inline u32 pwr_pmu_mailbox_r(u32 i)
740{
741 return 0x0010a450U + i*4U;
742}
743static inline u32 pwr_pmu_mailbox__size_1_v(void)
744{
745 return 0x0000000cU;
746}
747static inline u32 pwr_pmu_bar0_addr_r(void)
748{
749 return 0x0010a7a0U;
750}
751static inline u32 pwr_pmu_bar0_data_r(void)
752{
753 return 0x0010a7a4U;
754}
755static inline u32 pwr_pmu_bar0_ctl_r(void)
756{
757 return 0x0010a7acU;
758}
759static inline u32 pwr_pmu_bar0_timeout_r(void)
760{
761 return 0x0010a7a8U;
762}
763static inline u32 pwr_pmu_bar0_fecs_error_r(void)
764{
765 return 0x0010a988U;
766}
767static inline u32 pwr_pmu_bar0_error_status_r(void)
768{
769 return 0x0010a7b0U;
770}
771static inline u32 pwr_pmu_pg_idlefilth_r(u32 i)
772{
773 return 0x0010a6c0U + i*4U;
774}
775static inline u32 pwr_pmu_pg_ppuidlefilth_r(u32 i)
776{
777 return 0x0010a6e8U + i*4U;
778}
779static inline u32 pwr_pmu_pg_idle_cnt_r(u32 i)
780{
781 return 0x0010a710U + i*4U;
782}
783static inline u32 pwr_pmu_pg_intren_r(u32 i)
784{
785 return 0x0010a760U + i*4U;
786}
787static inline u32 pwr_fbif_transcfg_r(u32 i)
788{
789 return 0x0010a600U + i*4U;
790}
791static inline u32 pwr_fbif_transcfg_target_local_fb_f(void)
792{
793 return 0x0U;
794}
795static inline u32 pwr_fbif_transcfg_target_coherent_sysmem_f(void)
796{
797 return 0x1U;
798}
799static inline u32 pwr_fbif_transcfg_target_noncoherent_sysmem_f(void)
800{
801 return 0x2U;
802}
803static inline u32 pwr_fbif_transcfg_mem_type_s(void)
804{
805 return 1U;
806}
807static inline u32 pwr_fbif_transcfg_mem_type_f(u32 v)
808{
809 return (v & 0x1U) << 2U;
810}
811static inline u32 pwr_fbif_transcfg_mem_type_m(void)
812{
813 return 0x1U << 2U;
814}
815static inline u32 pwr_fbif_transcfg_mem_type_v(u32 r)
816{
817 return (r >> 2U) & 0x1U;
818}
819static inline u32 pwr_fbif_transcfg_mem_type_virtual_f(void)
820{
821 return 0x0U;
822}
823static inline u32 pwr_fbif_transcfg_mem_type_physical_f(void)
824{
825 return 0x4U;
826}
827#endif
diff --git a/include/nvgpu/hw/gk20a/hw_ram_gk20a.h b/include/nvgpu/hw/gk20a/hw_ram_gk20a.h
new file mode 100644
index 0000000..ed385d9
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_ram_gk20a.h
@@ -0,0 +1,443 @@
1/*
2 * Copyright (c) 2012-2017, 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_ram_gk20a_h_
57#define _hw_ram_gk20a_h_
58
59static inline u32 ram_in_ramfc_s(void)
60{
61 return 4096U;
62}
63static inline u32 ram_in_ramfc_w(void)
64{
65 return 0U;
66}
67static inline u32 ram_in_page_dir_base_target_f(u32 v)
68{
69 return (v & 0x3U) << 0U;
70}
71static inline u32 ram_in_page_dir_base_target_w(void)
72{
73 return 128U;
74}
75static inline u32 ram_in_page_dir_base_target_vid_mem_f(void)
76{
77 return 0x0U;
78}
79static inline u32 ram_in_page_dir_base_target_sys_mem_coh_f(void)
80{
81 return 0x2U;
82}
83static inline u32 ram_in_page_dir_base_target_sys_mem_ncoh_f(void)
84{
85 return 0x3U;
86}
87static inline u32 ram_in_page_dir_base_vol_w(void)
88{
89 return 128U;
90}
91static inline u32 ram_in_page_dir_base_vol_true_f(void)
92{
93 return 0x4U;
94}
95static inline u32 ram_in_page_dir_base_lo_f(u32 v)
96{
97 return (v & 0xfffffU) << 12U;
98}
99static inline u32 ram_in_page_dir_base_lo_w(void)
100{
101 return 128U;
102}
103static inline u32 ram_in_page_dir_base_hi_f(u32 v)
104{
105 return (v & 0xffU) << 0U;
106}
107static inline u32 ram_in_page_dir_base_hi_w(void)
108{
109 return 129U;
110}
111static inline u32 ram_in_adr_limit_lo_f(u32 v)
112{
113 return (v & 0xfffffU) << 12U;
114}
115static inline u32 ram_in_adr_limit_lo_w(void)
116{
117 return 130U;
118}
119static inline u32 ram_in_adr_limit_hi_f(u32 v)
120{
121 return (v & 0xffU) << 0U;
122}
123static inline u32 ram_in_adr_limit_hi_w(void)
124{
125 return 131U;
126}
127static inline u32 ram_in_engine_cs_w(void)
128{
129 return 132U;
130}
131static inline u32 ram_in_engine_cs_wfi_v(void)
132{
133 return 0x00000000U;
134}
135static inline u32 ram_in_engine_cs_wfi_f(void)
136{
137 return 0x0U;
138}
139static inline u32 ram_in_engine_cs_fg_v(void)
140{
141 return 0x00000001U;
142}
143static inline u32 ram_in_engine_cs_fg_f(void)
144{
145 return 0x8U;
146}
147static inline u32 ram_in_gr_cs_w(void)
148{
149 return 132U;
150}
151static inline u32 ram_in_gr_cs_wfi_f(void)
152{
153 return 0x0U;
154}
155static inline u32 ram_in_gr_wfi_target_w(void)
156{
157 return 132U;
158}
159static inline u32 ram_in_gr_wfi_mode_w(void)
160{
161 return 132U;
162}
163static inline u32 ram_in_gr_wfi_mode_physical_v(void)
164{
165 return 0x00000000U;
166}
167static inline u32 ram_in_gr_wfi_mode_physical_f(void)
168{
169 return 0x0U;
170}
171static inline u32 ram_in_gr_wfi_mode_virtual_v(void)
172{
173 return 0x00000001U;
174}
175static inline u32 ram_in_gr_wfi_mode_virtual_f(void)
176{
177 return 0x4U;
178}
179static inline u32 ram_in_gr_wfi_ptr_lo_f(u32 v)
180{
181 return (v & 0xfffffU) << 12U;
182}
183static inline u32 ram_in_gr_wfi_ptr_lo_w(void)
184{
185 return 132U;
186}
187static inline u32 ram_in_gr_wfi_ptr_hi_f(u32 v)
188{
189 return (v & 0xffU) << 0U;
190}
191static inline u32 ram_in_gr_wfi_ptr_hi_w(void)
192{
193 return 133U;
194}
195static inline u32 ram_in_base_shift_v(void)
196{
197 return 0x0000000cU;
198}
199static inline u32 ram_in_alloc_size_v(void)
200{
201 return 0x00001000U;
202}
203static inline u32 ram_fc_size_val_v(void)
204{
205 return 0x00000200U;
206}
207static inline u32 ram_fc_gp_put_w(void)
208{
209 return 0U;
210}
211static inline u32 ram_fc_userd_w(void)
212{
213 return 2U;
214}
215static inline u32 ram_fc_userd_hi_w(void)
216{
217 return 3U;
218}
219static inline u32 ram_fc_signature_w(void)
220{
221 return 4U;
222}
223static inline u32 ram_fc_gp_get_w(void)
224{
225 return 5U;
226}
227static inline u32 ram_fc_pb_get_w(void)
228{
229 return 6U;
230}
231static inline u32 ram_fc_pb_get_hi_w(void)
232{
233 return 7U;
234}
235static inline u32 ram_fc_pb_top_level_get_w(void)
236{
237 return 8U;
238}
239static inline u32 ram_fc_pb_top_level_get_hi_w(void)
240{
241 return 9U;
242}
243static inline u32 ram_fc_acquire_w(void)
244{
245 return 12U;
246}
247static inline u32 ram_fc_semaphorea_w(void)
248{
249 return 14U;
250}
251static inline u32 ram_fc_semaphoreb_w(void)
252{
253 return 15U;
254}
255static inline u32 ram_fc_semaphorec_w(void)
256{
257 return 16U;
258}
259static inline u32 ram_fc_semaphored_w(void)
260{
261 return 17U;
262}
263static inline u32 ram_fc_gp_base_w(void)
264{
265 return 18U;
266}
267static inline u32 ram_fc_gp_base_hi_w(void)
268{
269 return 19U;
270}
271static inline u32 ram_fc_gp_fetch_w(void)
272{
273 return 20U;
274}
275static inline u32 ram_fc_pb_fetch_w(void)
276{
277 return 21U;
278}
279static inline u32 ram_fc_pb_fetch_hi_w(void)
280{
281 return 22U;
282}
283static inline u32 ram_fc_pb_put_w(void)
284{
285 return 23U;
286}
287static inline u32 ram_fc_pb_put_hi_w(void)
288{
289 return 24U;
290}
291static inline u32 ram_fc_pb_header_w(void)
292{
293 return 33U;
294}
295static inline u32 ram_fc_pb_count_w(void)
296{
297 return 34U;
298}
299static inline u32 ram_fc_subdevice_w(void)
300{
301 return 37U;
302}
303static inline u32 ram_fc_formats_w(void)
304{
305 return 39U;
306}
307static inline u32 ram_fc_syncpointa_w(void)
308{
309 return 41U;
310}
311static inline u32 ram_fc_syncpointb_w(void)
312{
313 return 42U;
314}
315static inline u32 ram_fc_target_w(void)
316{
317 return 43U;
318}
319static inline u32 ram_fc_hce_ctrl_w(void)
320{
321 return 57U;
322}
323static inline u32 ram_fc_chid_w(void)
324{
325 return 58U;
326}
327static inline u32 ram_fc_chid_id_f(u32 v)
328{
329 return (v & 0xfffU) << 0U;
330}
331static inline u32 ram_fc_chid_id_w(void)
332{
333 return 0U;
334}
335static inline u32 ram_fc_runlist_timeslice_w(void)
336{
337 return 62U;
338}
339static inline u32 ram_fc_pb_timeslice_w(void)
340{
341 return 63U;
342}
343static inline u32 ram_userd_base_shift_v(void)
344{
345 return 0x00000009U;
346}
347static inline u32 ram_userd_chan_size_v(void)
348{
349 return 0x00000200U;
350}
351static inline u32 ram_userd_put_w(void)
352{
353 return 16U;
354}
355static inline u32 ram_userd_get_w(void)
356{
357 return 17U;
358}
359static inline u32 ram_userd_ref_w(void)
360{
361 return 18U;
362}
363static inline u32 ram_userd_put_hi_w(void)
364{
365 return 19U;
366}
367static inline u32 ram_userd_ref_threshold_w(void)
368{
369 return 20U;
370}
371static inline u32 ram_userd_top_level_get_w(void)
372{
373 return 22U;
374}
375static inline u32 ram_userd_top_level_get_hi_w(void)
376{
377 return 23U;
378}
379static inline u32 ram_userd_get_hi_w(void)
380{
381 return 24U;
382}
383static inline u32 ram_userd_gp_get_w(void)
384{
385 return 34U;
386}
387static inline u32 ram_userd_gp_put_w(void)
388{
389 return 35U;
390}
391static inline u32 ram_userd_gp_top_level_get_w(void)
392{
393 return 22U;
394}
395static inline u32 ram_userd_gp_top_level_get_hi_w(void)
396{
397 return 23U;
398}
399static inline u32 ram_rl_entry_size_v(void)
400{
401 return 0x00000008U;
402}
403static inline u32 ram_rl_entry_chid_f(u32 v)
404{
405 return (v & 0xfffU) << 0U;
406}
407static inline u32 ram_rl_entry_id_f(u32 v)
408{
409 return (v & 0xfffU) << 0U;
410}
411static inline u32 ram_rl_entry_type_f(u32 v)
412{
413 return (v & 0x1U) << 13U;
414}
415static inline u32 ram_rl_entry_type_chid_f(void)
416{
417 return 0x0U;
418}
419static inline u32 ram_rl_entry_type_tsg_f(void)
420{
421 return 0x2000U;
422}
423static inline u32 ram_rl_entry_timeslice_scale_f(u32 v)
424{
425 return (v & 0xfU) << 14U;
426}
427static inline u32 ram_rl_entry_timeslice_scale_3_f(void)
428{
429 return 0xc000U;
430}
431static inline u32 ram_rl_entry_timeslice_timeout_f(u32 v)
432{
433 return (v & 0xffU) << 18U;
434}
435static inline u32 ram_rl_entry_timeslice_timeout_128_f(void)
436{
437 return 0x2000000U;
438}
439static inline u32 ram_rl_entry_tsg_length_f(u32 v)
440{
441 return (v & 0x3fU) << 26U;
442}
443#endif
diff --git a/include/nvgpu/hw/gk20a/hw_therm_gk20a.h b/include/nvgpu/hw/gk20a/hw_therm_gk20a.h
new file mode 100644
index 0000000..075c9bc
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_therm_gk20a.h
@@ -0,0 +1,367 @@
1/*
2 * Copyright (c) 2012-2017, 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_therm_gk20a_h_
57#define _hw_therm_gk20a_h_
58
59static inline u32 therm_use_a_r(void)
60{
61 return 0x00020798U;
62}
63static inline u32 therm_use_a_ext_therm_0_enable_f(void)
64{
65 return 0x1U;
66}
67static inline u32 therm_use_a_ext_therm_1_enable_f(void)
68{
69 return 0x2U;
70}
71static inline u32 therm_use_a_ext_therm_2_enable_f(void)
72{
73 return 0x4U;
74}
75static inline u32 therm_evt_ext_therm_0_r(void)
76{
77 return 0x00020700U;
78}
79static inline u32 therm_evt_ext_therm_0_slow_factor_f(u32 v)
80{
81 return (v & 0x3fU) << 8U;
82}
83static inline u32 therm_evt_ext_therm_0_slow_factor_init_v(void)
84{
85 return 0x00000000U;
86}
87static inline u32 therm_evt_ext_therm_0_priority_f(u32 v)
88{
89 return (v & 0x1fU) << 24U;
90}
91static inline u32 therm_evt_ext_therm_1_r(void)
92{
93 return 0x00020704U;
94}
95static inline u32 therm_evt_ext_therm_1_slow_factor_f(u32 v)
96{
97 return (v & 0x3fU) << 8U;
98}
99static inline u32 therm_evt_ext_therm_1_slow_factor_init_v(void)
100{
101 return 0x00000000U;
102}
103static inline u32 therm_evt_ext_therm_1_priority_f(u32 v)
104{
105 return (v & 0x1fU) << 24U;
106}
107static inline u32 therm_evt_ext_therm_2_r(void)
108{
109 return 0x00020708U;
110}
111static inline u32 therm_evt_ext_therm_2_slow_factor_f(u32 v)
112{
113 return (v & 0x3fU) << 8U;
114}
115static inline u32 therm_evt_ext_therm_2_slow_factor_init_v(void)
116{
117 return 0x00000000U;
118}
119static inline u32 therm_evt_ext_therm_2_priority_f(u32 v)
120{
121 return (v & 0x1fU) << 24U;
122}
123static inline u32 therm_weight_1_r(void)
124{
125 return 0x00020024U;
126}
127static inline u32 therm_config1_r(void)
128{
129 return 0x00020050U;
130}
131static inline u32 therm_config2_r(void)
132{
133 return 0x00020130U;
134}
135static inline u32 therm_config2_slowdown_factor_extended_f(u32 v)
136{
137 return (v & 0x1U) << 24U;
138}
139static inline u32 therm_config2_grad_enable_f(u32 v)
140{
141 return (v & 0x1U) << 31U;
142}
143static inline u32 therm_gate_ctrl_r(u32 i)
144{
145 return 0x00020200U + i*4U;
146}
147static inline u32 therm_gate_ctrl_eng_clk_m(void)
148{
149 return 0x3U << 0U;
150}
151static inline u32 therm_gate_ctrl_eng_clk_run_f(void)
152{
153 return 0x0U;
154}
155static inline u32 therm_gate_ctrl_eng_clk_auto_f(void)
156{
157 return 0x1U;
158}
159static inline u32 therm_gate_ctrl_eng_clk_stop_f(void)
160{
161 return 0x2U;
162}
163static inline u32 therm_gate_ctrl_blk_clk_m(void)
164{
165 return 0x3U << 2U;
166}
167static inline u32 therm_gate_ctrl_blk_clk_run_f(void)
168{
169 return 0x0U;
170}
171static inline u32 therm_gate_ctrl_blk_clk_auto_f(void)
172{
173 return 0x4U;
174}
175static inline u32 therm_gate_ctrl_eng_pwr_m(void)
176{
177 return 0x3U << 4U;
178}
179static inline u32 therm_gate_ctrl_eng_pwr_auto_f(void)
180{
181 return 0x10U;
182}
183static inline u32 therm_gate_ctrl_eng_pwr_off_v(void)
184{
185 return 0x00000002U;
186}
187static inline u32 therm_gate_ctrl_eng_pwr_off_f(void)
188{
189 return 0x20U;
190}
191static inline u32 therm_gate_ctrl_eng_idle_filt_exp_f(u32 v)
192{
193 return (v & 0x1fU) << 8U;
194}
195static inline u32 therm_gate_ctrl_eng_idle_filt_exp_m(void)
196{
197 return 0x1fU << 8U;
198}
199static inline u32 therm_gate_ctrl_eng_idle_filt_mant_f(u32 v)
200{
201 return (v & 0x7U) << 13U;
202}
203static inline u32 therm_gate_ctrl_eng_idle_filt_mant_m(void)
204{
205 return 0x7U << 13U;
206}
207static inline u32 therm_gate_ctrl_eng_delay_before_f(u32 v)
208{
209 return (v & 0xfU) << 16U;
210}
211static inline u32 therm_gate_ctrl_eng_delay_before_m(void)
212{
213 return 0xfU << 16U;
214}
215static inline u32 therm_gate_ctrl_eng_delay_after_f(u32 v)
216{
217 return (v & 0xfU) << 20U;
218}
219static inline u32 therm_gate_ctrl_eng_delay_after_m(void)
220{
221 return 0xfU << 20U;
222}
223static inline u32 therm_fecs_idle_filter_r(void)
224{
225 return 0x00020288U;
226}
227static inline u32 therm_fecs_idle_filter_value_m(void)
228{
229 return 0xffffffffU << 0U;
230}
231static inline u32 therm_hubmmu_idle_filter_r(void)
232{
233 return 0x0002028cU;
234}
235static inline u32 therm_hubmmu_idle_filter_value_m(void)
236{
237 return 0xffffffffU << 0U;
238}
239static inline u32 therm_clk_slowdown_r(u32 i)
240{
241 return 0x00020160U + i*4U;
242}
243static inline u32 therm_clk_slowdown_idle_factor_f(u32 v)
244{
245 return (v & 0x3fU) << 16U;
246}
247static inline u32 therm_clk_slowdown_idle_factor_m(void)
248{
249 return 0x3fU << 16U;
250}
251static inline u32 therm_clk_slowdown_idle_factor_v(u32 r)
252{
253 return (r >> 16U) & 0x3fU;
254}
255static inline u32 therm_clk_slowdown_idle_factor_disabled_f(void)
256{
257 return 0x0U;
258}
259static inline u32 therm_grad_stepping_table_r(u32 i)
260{
261 return 0x000202c8U + i*4U;
262}
263static inline u32 therm_grad_stepping_table_slowdown_factor0_f(u32 v)
264{
265 return (v & 0x3fU) << 0U;
266}
267static inline u32 therm_grad_stepping_table_slowdown_factor0_m(void)
268{
269 return 0x3fU << 0U;
270}
271static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by1p5_f(void)
272{
273 return 0x1U;
274}
275static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by2_f(void)
276{
277 return 0x2U;
278}
279static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by4_f(void)
280{
281 return 0x6U;
282}
283static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by8_f(void)
284{
285 return 0xeU;
286}
287static inline u32 therm_grad_stepping_table_slowdown_factor1_f(u32 v)
288{
289 return (v & 0x3fU) << 6U;
290}
291static inline u32 therm_grad_stepping_table_slowdown_factor1_m(void)
292{
293 return 0x3fU << 6U;
294}
295static inline u32 therm_grad_stepping_table_slowdown_factor2_f(u32 v)
296{
297 return (v & 0x3fU) << 12U;
298}
299static inline u32 therm_grad_stepping_table_slowdown_factor2_m(void)
300{
301 return 0x3fU << 12U;
302}
303static inline u32 therm_grad_stepping_table_slowdown_factor3_f(u32 v)
304{
305 return (v & 0x3fU) << 18U;
306}
307static inline u32 therm_grad_stepping_table_slowdown_factor3_m(void)
308{
309 return 0x3fU << 18U;
310}
311static inline u32 therm_grad_stepping_table_slowdown_factor4_f(u32 v)
312{
313 return (v & 0x3fU) << 24U;
314}
315static inline u32 therm_grad_stepping_table_slowdown_factor4_m(void)
316{
317 return 0x3fU << 24U;
318}
319static inline u32 therm_grad_stepping0_r(void)
320{
321 return 0x000202c0U;
322}
323static inline u32 therm_grad_stepping0_feature_s(void)
324{
325 return 1U;
326}
327static inline u32 therm_grad_stepping0_feature_f(u32 v)
328{
329 return (v & 0x1U) << 0U;
330}
331static inline u32 therm_grad_stepping0_feature_m(void)
332{
333 return 0x1U << 0U;
334}
335static inline u32 therm_grad_stepping0_feature_v(u32 r)
336{
337 return (r >> 0U) & 0x1U;
338}
339static inline u32 therm_grad_stepping0_feature_enable_f(void)
340{
341 return 0x1U;
342}
343static inline u32 therm_grad_stepping1_r(void)
344{
345 return 0x000202c4U;
346}
347static inline u32 therm_grad_stepping1_pdiv_duration_f(u32 v)
348{
349 return (v & 0x1ffffU) << 0U;
350}
351static inline u32 therm_clk_timing_r(u32 i)
352{
353 return 0x000203c0U + i*4U;
354}
355static inline u32 therm_clk_timing_grad_slowdown_f(u32 v)
356{
357 return (v & 0x1U) << 16U;
358}
359static inline u32 therm_clk_timing_grad_slowdown_m(void)
360{
361 return 0x1U << 16U;
362}
363static inline u32 therm_clk_timing_grad_slowdown_enabled_f(void)
364{
365 return 0x10000U;
366}
367#endif
diff --git a/include/nvgpu/hw/gk20a/hw_timer_gk20a.h b/include/nvgpu/hw/gk20a/hw_timer_gk20a.h
new file mode 100644
index 0000000..972d68a
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_timer_gk20a.h
@@ -0,0 +1,127 @@
1/*
2 * Copyright (c) 2013-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_timer_gk20a_h_
57#define _hw_timer_gk20a_h_
58
59static inline u32 timer_pri_timeout_r(void)
60{
61 return 0x00009080U;
62}
63static inline u32 timer_pri_timeout_period_f(u32 v)
64{
65 return (v & 0xffffffU) << 0U;
66}
67static inline u32 timer_pri_timeout_period_m(void)
68{
69 return 0xffffffU << 0U;
70}
71static inline u32 timer_pri_timeout_period_v(u32 r)
72{
73 return (r >> 0U) & 0xffffffU;
74}
75static inline u32 timer_pri_timeout_en_f(u32 v)
76{
77 return (v & 0x1U) << 31U;
78}
79static inline u32 timer_pri_timeout_en_m(void)
80{
81 return 0x1U << 31U;
82}
83static inline u32 timer_pri_timeout_en_v(u32 r)
84{
85 return (r >> 31U) & 0x1U;
86}
87static inline u32 timer_pri_timeout_en_en_enabled_f(void)
88{
89 return 0x80000000U;
90}
91static inline u32 timer_pri_timeout_en_en_disabled_f(void)
92{
93 return 0x0U;
94}
95static inline u32 timer_pri_timeout_save_0_r(void)
96{
97 return 0x00009084U;
98}
99static inline u32 timer_pri_timeout_save_0_fecs_tgt_v(u32 r)
100{
101 return (r >> 31U) & 0x1U;
102}
103static inline u32 timer_pri_timeout_save_0_addr_v(u32 r)
104{
105 return (r >> 2U) & 0x3fffffU;
106}
107static inline u32 timer_pri_timeout_save_0_write_v(u32 r)
108{
109 return (r >> 1U) & 0x1U;
110}
111static inline u32 timer_pri_timeout_save_1_r(void)
112{
113 return 0x00009088U;
114}
115static inline u32 timer_pri_timeout_fecs_errcode_r(void)
116{
117 return 0x0000908cU;
118}
119static inline u32 timer_time_0_r(void)
120{
121 return 0x00009400U;
122}
123static inline u32 timer_time_1_r(void)
124{
125 return 0x00009410U;
126}
127#endif
diff --git a/include/nvgpu/hw/gk20a/hw_top_gk20a.h b/include/nvgpu/hw/gk20a/hw_top_gk20a.h
new file mode 100644
index 0000000..be7fa4a
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_top_gk20a.h
@@ -0,0 +1,211 @@
1/*
2 * Copyright (c) 2012-2017, 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_top_gk20a_h_
57#define _hw_top_gk20a_h_
58
59static inline u32 top_num_gpcs_r(void)
60{
61 return 0x00022430U;
62}
63static inline u32 top_num_gpcs_value_v(u32 r)
64{
65 return (r >> 0U) & 0x1fU;
66}
67static inline u32 top_tpc_per_gpc_r(void)
68{
69 return 0x00022434U;
70}
71static inline u32 top_tpc_per_gpc_value_v(u32 r)
72{
73 return (r >> 0U) & 0x1fU;
74}
75static inline u32 top_num_fbps_r(void)
76{
77 return 0x00022438U;
78}
79static inline u32 top_num_fbps_value_v(u32 r)
80{
81 return (r >> 0U) & 0x1fU;
82}
83static inline u32 top_device_info_r(u32 i)
84{
85 return 0x00022700U + i*4U;
86}
87static inline u32 top_device_info__size_1_v(void)
88{
89 return 0x00000040U;
90}
91static inline u32 top_device_info_chain_v(u32 r)
92{
93 return (r >> 31U) & 0x1U;
94}
95static inline u32 top_device_info_chain_enable_v(void)
96{
97 return 0x00000001U;
98}
99static inline u32 top_device_info_engine_enum_v(u32 r)
100{
101 return (r >> 26U) & 0xfU;
102}
103static inline u32 top_device_info_runlist_enum_v(u32 r)
104{
105 return (r >> 21U) & 0xfU;
106}
107static inline u32 top_device_info_intr_enum_v(u32 r)
108{
109 return (r >> 15U) & 0x1fU;
110}
111static inline u32 top_device_info_reset_enum_v(u32 r)
112{
113 return (r >> 9U) & 0x1fU;
114}
115static inline u32 top_device_info_type_enum_v(u32 r)
116{
117 return (r >> 2U) & 0x1fffffffU;
118}
119static inline u32 top_device_info_type_enum_graphics_v(void)
120{
121 return 0x00000000U;
122}
123static inline u32 top_device_info_type_enum_graphics_f(void)
124{
125 return 0x0U;
126}
127static inline u32 top_device_info_type_enum_copy0_v(void)
128{
129 return 0x00000001U;
130}
131static inline u32 top_device_info_type_enum_copy0_f(void)
132{
133 return 0x4U;
134}
135static inline u32 top_device_info_type_enum_copy1_v(void)
136{
137 return 0x00000002U;
138}
139static inline u32 top_device_info_type_enum_copy1_f(void)
140{
141 return 0x8U;
142}
143static inline u32 top_device_info_type_enum_copy2_v(void)
144{
145 return 0x00000003U;
146}
147static inline u32 top_device_info_type_enum_copy2_f(void)
148{
149 return 0xcU;
150}
151static inline u32 top_device_info_engine_v(u32 r)
152{
153 return (r >> 5U) & 0x1U;
154}
155static inline u32 top_device_info_runlist_v(u32 r)
156{
157 return (r >> 4U) & 0x1U;
158}
159static inline u32 top_device_info_intr_v(u32 r)
160{
161 return (r >> 3U) & 0x1U;
162}
163static inline u32 top_device_info_reset_v(u32 r)
164{
165 return (r >> 2U) & 0x1U;
166}
167static inline u32 top_device_info_entry_v(u32 r)
168{
169 return (r >> 0U) & 0x3U;
170}
171static inline u32 top_device_info_entry_not_valid_v(void)
172{
173 return 0x00000000U;
174}
175static inline u32 top_device_info_entry_enum_v(void)
176{
177 return 0x00000002U;
178}
179static inline u32 top_device_info_entry_engine_type_v(void)
180{
181 return 0x00000003U;
182}
183static inline u32 top_device_info_entry_data_v(void)
184{
185 return 0x00000001U;
186}
187static inline u32 top_fs_status_fbp_r(void)
188{
189 return 0x00022548U;
190}
191static inline u32 top_fs_status_fbp_cluster_v(u32 r)
192{
193 return (r >> 0U) & 0xffffU;
194}
195static inline u32 top_fs_status_fbp_cluster_enable_v(void)
196{
197 return 0x00000000U;
198}
199static inline u32 top_fs_status_fbp_cluster_enable_f(void)
200{
201 return 0x0U;
202}
203static inline u32 top_fs_status_fbp_cluster_disable_v(void)
204{
205 return 0x00000001U;
206}
207static inline u32 top_fs_status_fbp_cluster_disable_f(void)
208{
209 return 0x1U;
210}
211#endif
diff --git a/include/nvgpu/hw/gk20a/hw_trim_gk20a.h b/include/nvgpu/hw/gk20a/hw_trim_gk20a.h
new file mode 100644
index 0000000..f28c21f
--- /dev/null
+++ b/include/nvgpu/hw/gk20a/hw_trim_gk20a.h
@@ -0,0 +1,315 @@
1/*
2 * Copyright (c) 2012-2017, 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_trim_gk20a_h_
57#define _hw_trim_gk20a_h_
58
59static inline u32 trim_sys_gpcpll_cfg_r(void)
60{
61 return 0x00137000U;
62}
63static inline u32 trim_sys_gpcpll_cfg_enable_m(void)
64{
65 return 0x1U << 0U;
66}
67static inline u32 trim_sys_gpcpll_cfg_enable_v(u32 r)
68{
69 return (r >> 0U) & 0x1U;
70}
71static inline u32 trim_sys_gpcpll_cfg_enable_no_f(void)
72{
73 return 0x0U;
74}
75static inline u32 trim_sys_gpcpll_cfg_enable_yes_f(void)
76{
77 return 0x1U;
78}
79static inline u32 trim_sys_gpcpll_cfg_iddq_m(void)
80{
81 return 0x1U << 1U;
82}
83static inline u32 trim_sys_gpcpll_cfg_iddq_v(u32 r)
84{
85 return (r >> 1U) & 0x1U;
86}
87static inline u32 trim_sys_gpcpll_cfg_iddq_power_on_v(void)
88{
89 return 0x00000000U;
90}
91static inline u32 trim_sys_gpcpll_cfg_enb_lckdet_m(void)
92{
93 return 0x1U << 4U;
94}
95static inline u32 trim_sys_gpcpll_cfg_enb_lckdet_power_on_f(void)
96{
97 return 0x0U;
98}
99static inline u32 trim_sys_gpcpll_cfg_enb_lckdet_power_off_f(void)
100{
101 return 0x10U;
102}
103static inline u32 trim_sys_gpcpll_cfg_pll_lock_v(u32 r)
104{
105 return (r >> 17U) & 0x1U;
106}
107static inline u32 trim_sys_gpcpll_cfg_pll_lock_true_f(void)
108{
109 return 0x20000U;
110}
111static inline u32 trim_sys_gpcpll_coeff_r(void)
112{
113 return 0x00137004U;
114}
115static inline u32 trim_sys_gpcpll_coeff_mdiv_f(u32 v)
116{
117 return (v & 0xffU) << 0U;
118}
119static inline u32 trim_sys_gpcpll_coeff_mdiv_m(void)
120{
121 return 0xffU << 0U;
122}
123static inline u32 trim_sys_gpcpll_coeff_mdiv_v(u32 r)
124{
125 return (r >> 0U) & 0xffU;
126}
127static inline u32 trim_sys_gpcpll_coeff_ndiv_f(u32 v)
128{
129 return (v & 0xffU) << 8U;
130}
131static inline u32 trim_sys_gpcpll_coeff_ndiv_m(void)
132{
133 return 0xffU << 8U;
134}
135static inline u32 trim_sys_gpcpll_coeff_ndiv_v(u32 r)
136{
137 return (r >> 8U) & 0xffU;
138}
139static inline u32 trim_sys_gpcpll_coeff_pldiv_f(u32 v)
140{
141 return (v & 0x3fU) << 16U;
142}
143static inline u32 trim_sys_gpcpll_coeff_pldiv_m(void)
144{
145 return 0x3fU << 16U;
146}
147static inline u32 trim_sys_gpcpll_coeff_pldiv_v(u32 r)
148{
149 return (r >> 16U) & 0x3fU;
150}
151static inline u32 trim_sys_sel_vco_r(void)
152{
153 return 0x00137100U;
154}
155static inline u32 trim_sys_sel_vco_gpc2clk_out_m(void)
156{
157 return 0x1U << 0U;
158}
159static inline u32 trim_sys_sel_vco_gpc2clk_out_init_v(void)
160{
161 return 0x00000000U;
162}
163static inline u32 trim_sys_sel_vco_gpc2clk_out_init_f(void)
164{
165 return 0x0U;
166}
167static inline u32 trim_sys_sel_vco_gpc2clk_out_bypass_f(void)
168{
169 return 0x0U;
170}
171static inline u32 trim_sys_sel_vco_gpc2clk_out_vco_f(void)
172{
173 return 0x1U;
174}
175static inline u32 trim_sys_gpc2clk_out_r(void)
176{
177 return 0x00137250U;
178}
179static inline u32 trim_sys_gpc2clk_out_bypdiv_s(void)
180{
181 return 6U;
182}
183static inline u32 trim_sys_gpc2clk_out_bypdiv_f(u32 v)
184{
185 return (v & 0x3fU) << 0U;
186}
187static inline u32 trim_sys_gpc2clk_out_bypdiv_m(void)
188{
189 return 0x3fU << 0U;
190}
191static inline u32 trim_sys_gpc2clk_out_bypdiv_v(u32 r)
192{
193 return (r >> 0U) & 0x3fU;
194}
195static inline u32 trim_sys_gpc2clk_out_bypdiv_by31_f(void)
196{
197 return 0x3cU;
198}
199static inline u32 trim_sys_gpc2clk_out_vcodiv_s(void)
200{
201 return 6U;
202}
203static inline u32 trim_sys_gpc2clk_out_vcodiv_f(u32 v)
204{
205 return (v & 0x3fU) << 8U;
206}
207static inline u32 trim_sys_gpc2clk_out_vcodiv_m(void)
208{
209 return 0x3fU << 8U;
210}
211static inline u32 trim_sys_gpc2clk_out_vcodiv_v(u32 r)
212{
213 return (r >> 8U) & 0x3fU;
214}
215static inline u32 trim_sys_gpc2clk_out_vcodiv_by1_f(void)
216{
217 return 0x0U;
218}
219static inline u32 trim_sys_gpc2clk_out_sdiv14_m(void)
220{
221 return 0x1U << 31U;
222}
223static inline u32 trim_sys_gpc2clk_out_sdiv14_indiv4_mode_f(void)
224{
225 return 0x80000000U;
226}
227static inline u32 trim_gpc_clk_cntr_ncgpcclk_cfg_r(u32 i)
228{
229 return 0x00134124U + i*512U;
230}
231static inline u32 trim_gpc_clk_cntr_ncgpcclk_cfg_noofipclks_f(u32 v)
232{
233 return (v & 0x3fffU) << 0U;
234}
235static inline u32 trim_gpc_clk_cntr_ncgpcclk_cfg_write_en_asserted_f(void)
236{
237 return 0x10000U;
238}
239static inline u32 trim_gpc_clk_cntr_ncgpcclk_cfg_enable_asserted_f(void)
240{
241 return 0x100000U;
242}
243static inline u32 trim_gpc_clk_cntr_ncgpcclk_cfg_reset_asserted_f(void)
244{
245 return 0x1000000U;
246}
247static inline u32 trim_gpc_clk_cntr_ncgpcclk_cnt_r(u32 i)
248{
249 return 0x00134128U + i*512U;
250}
251static inline u32 trim_gpc_clk_cntr_ncgpcclk_cnt_value_v(u32 r)
252{
253 return (r >> 0U) & 0xfffffU;
254}
255static inline u32 trim_sys_gpcpll_cfg2_r(void)
256{
257 return 0x0013700cU;
258}
259static inline u32 trim_sys_gpcpll_cfg2_pll_stepa_f(u32 v)
260{
261 return (v & 0xffU) << 24U;
262}
263static inline u32 trim_sys_gpcpll_cfg2_pll_stepa_m(void)
264{
265 return 0xffU << 24U;
266}
267static inline u32 trim_sys_gpcpll_cfg3_r(void)
268{
269 return 0x00137018U;
270}
271static inline u32 trim_sys_gpcpll_cfg3_pll_stepb_f(u32 v)
272{
273 return (v & 0xffU) << 16U;
274}
275static inline u32 trim_sys_gpcpll_cfg3_pll_stepb_m(void)
276{
277 return 0xffU << 16U;
278}
279static inline u32 trim_sys_gpcpll_ndiv_slowdown_r(void)
280{
281 return 0x0013701cU;
282}
283static inline u32 trim_sys_gpcpll_ndiv_slowdown_slowdown_using_pll_m(void)
284{
285 return 0x1U << 22U;
286}
287static inline u32 trim_sys_gpcpll_ndiv_slowdown_slowdown_using_pll_yes_f(void)
288{
289 return 0x400000U;
290}
291static inline u32 trim_sys_gpcpll_ndiv_slowdown_slowdown_using_pll_no_f(void)
292{
293 return 0x0U;
294}
295static inline u32 trim_sys_gpcpll_ndiv_slowdown_en_dynramp_m(void)
296{
297 return 0x1U << 31U;
298}
299static inline u32 trim_sys_gpcpll_ndiv_slowdown_en_dynramp_yes_f(void)
300{
301 return 0x80000000U;
302}
303static inline u32 trim_sys_gpcpll_ndiv_slowdown_en_dynramp_no_f(void)
304{
305 return 0x0U;
306}
307static inline u32 trim_gpc_bcast_gpcpll_ndiv_slowdown_debug_r(void)
308{
309 return 0x001328a0U;
310}
311static inline u32 trim_gpc_bcast_gpcpll_ndiv_slowdown_debug_pll_dynramp_done_synced_v(u32 r)
312{
313 return (r >> 24U) & 0x1U;
314}
315#endif
diff --git a/include/nvgpu/hw/gm20b/hw_bus_gm20b.h b/include/nvgpu/hw/gm20b/hw_bus_gm20b.h
new file mode 100644
index 0000000..15cddae
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_bus_gm20b.h
@@ -0,0 +1,223 @@
1/*
2 * Copyright (c) 2014-2017, 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_bus_gm20b_h_
57#define _hw_bus_gm20b_h_
58
59static inline u32 bus_bar0_window_r(void)
60{
61 return 0x00001700U;
62}
63static inline u32 bus_bar0_window_base_f(u32 v)
64{
65 return (v & 0xffffffU) << 0U;
66}
67static inline u32 bus_bar0_window_target_vid_mem_f(void)
68{
69 return 0x0U;
70}
71static inline u32 bus_bar0_window_target_sys_mem_coherent_f(void)
72{
73 return 0x2000000U;
74}
75static inline u32 bus_bar0_window_target_sys_mem_noncoherent_f(void)
76{
77 return 0x3000000U;
78}
79static inline u32 bus_bar0_window_target_bar0_window_base_shift_v(void)
80{
81 return 0x00000010U;
82}
83static inline u32 bus_bar1_block_r(void)
84{
85 return 0x00001704U;
86}
87static inline u32 bus_bar1_block_ptr_f(u32 v)
88{
89 return (v & 0xfffffffU) << 0U;
90}
91static inline u32 bus_bar1_block_target_vid_mem_f(void)
92{
93 return 0x0U;
94}
95static inline u32 bus_bar1_block_target_sys_mem_coh_f(void)
96{
97 return 0x20000000U;
98}
99static inline u32 bus_bar1_block_target_sys_mem_ncoh_f(void)
100{
101 return 0x30000000U;
102}
103static inline u32 bus_bar1_block_mode_virtual_f(void)
104{
105 return 0x80000000U;
106}
107static inline u32 bus_bar2_block_r(void)
108{
109 return 0x00001714U;
110}
111static inline u32 bus_bar2_block_ptr_f(u32 v)
112{
113 return (v & 0xfffffffU) << 0U;
114}
115static inline u32 bus_bar2_block_target_vid_mem_f(void)
116{
117 return 0x0U;
118}
119static inline u32 bus_bar2_block_target_sys_mem_coh_f(void)
120{
121 return 0x20000000U;
122}
123static inline u32 bus_bar2_block_target_sys_mem_ncoh_f(void)
124{
125 return 0x30000000U;
126}
127static inline u32 bus_bar2_block_mode_virtual_f(void)
128{
129 return 0x80000000U;
130}
131static inline u32 bus_bar1_block_ptr_shift_v(void)
132{
133 return 0x0000000cU;
134}
135static inline u32 bus_bar2_block_ptr_shift_v(void)
136{
137 return 0x0000000cU;
138}
139static inline u32 bus_bind_status_r(void)
140{
141 return 0x00001710U;
142}
143static inline u32 bus_bind_status_bar1_pending_v(u32 r)
144{
145 return (r >> 0U) & 0x1U;
146}
147static inline u32 bus_bind_status_bar1_pending_empty_f(void)
148{
149 return 0x0U;
150}
151static inline u32 bus_bind_status_bar1_pending_busy_f(void)
152{
153 return 0x1U;
154}
155static inline u32 bus_bind_status_bar1_outstanding_v(u32 r)
156{
157 return (r >> 1U) & 0x1U;
158}
159static inline u32 bus_bind_status_bar1_outstanding_false_f(void)
160{
161 return 0x0U;
162}
163static inline u32 bus_bind_status_bar1_outstanding_true_f(void)
164{
165 return 0x2U;
166}
167static inline u32 bus_bind_status_bar2_pending_v(u32 r)
168{
169 return (r >> 2U) & 0x1U;
170}
171static inline u32 bus_bind_status_bar2_pending_empty_f(void)
172{
173 return 0x0U;
174}
175static inline u32 bus_bind_status_bar2_pending_busy_f(void)
176{
177 return 0x4U;
178}
179static inline u32 bus_bind_status_bar2_outstanding_v(u32 r)
180{
181 return (r >> 3U) & 0x1U;
182}
183static inline u32 bus_bind_status_bar2_outstanding_false_f(void)
184{
185 return 0x0U;
186}
187static inline u32 bus_bind_status_bar2_outstanding_true_f(void)
188{
189 return 0x8U;
190}
191static inline u32 bus_intr_0_r(void)
192{
193 return 0x00001100U;
194}
195static inline u32 bus_intr_0_pri_squash_m(void)
196{
197 return 0x1U << 1U;
198}
199static inline u32 bus_intr_0_pri_fecserr_m(void)
200{
201 return 0x1U << 2U;
202}
203static inline u32 bus_intr_0_pri_timeout_m(void)
204{
205 return 0x1U << 3U;
206}
207static inline u32 bus_intr_en_0_r(void)
208{
209 return 0x00001140U;
210}
211static inline u32 bus_intr_en_0_pri_squash_m(void)
212{
213 return 0x1U << 1U;
214}
215static inline u32 bus_intr_en_0_pri_fecserr_m(void)
216{
217 return 0x1U << 2U;
218}
219static inline u32 bus_intr_en_0_pri_timeout_m(void)
220{
221 return 0x1U << 3U;
222}
223#endif
diff --git a/include/nvgpu/hw/gm20b/hw_ccsr_gm20b.h b/include/nvgpu/hw/gm20b/hw_ccsr_gm20b.h
new file mode 100644
index 0000000..adfce72
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_ccsr_gm20b.h
@@ -0,0 +1,163 @@
1/*
2 * Copyright (c) 2014-2017, 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_ccsr_gm20b_h_
57#define _hw_ccsr_gm20b_h_
58
59static inline u32 ccsr_channel_inst_r(u32 i)
60{
61 return 0x00800000U + i*8U;
62}
63static inline u32 ccsr_channel_inst__size_1_v(void)
64{
65 return 0x00000200U;
66}
67static inline u32 ccsr_channel_inst_ptr_f(u32 v)
68{
69 return (v & 0xfffffffU) << 0U;
70}
71static inline u32 ccsr_channel_inst_target_vid_mem_f(void)
72{
73 return 0x0U;
74}
75static inline u32 ccsr_channel_inst_target_sys_mem_coh_f(void)
76{
77 return 0x20000000U;
78}
79static inline u32 ccsr_channel_inst_target_sys_mem_ncoh_f(void)
80{
81 return 0x30000000U;
82}
83static inline u32 ccsr_channel_inst_bind_false_f(void)
84{
85 return 0x0U;
86}
87static inline u32 ccsr_channel_inst_bind_true_f(void)
88{
89 return 0x80000000U;
90}
91static inline u32 ccsr_channel_r(u32 i)
92{
93 return 0x00800004U + i*8U;
94}
95static inline u32 ccsr_channel__size_1_v(void)
96{
97 return 0x00000200U;
98}
99static inline u32 ccsr_channel_enable_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 ccsr_channel_enable_set_f(u32 v)
104{
105 return (v & 0x1U) << 10U;
106}
107static inline u32 ccsr_channel_enable_set_true_f(void)
108{
109 return 0x400U;
110}
111static inline u32 ccsr_channel_enable_clr_true_f(void)
112{
113 return 0x800U;
114}
115static inline u32 ccsr_channel_status_v(u32 r)
116{
117 return (r >> 24U) & 0xfU;
118}
119static inline u32 ccsr_channel_status_pending_ctx_reload_v(void)
120{
121 return 0x00000002U;
122}
123static inline u32 ccsr_channel_status_pending_acq_ctx_reload_v(void)
124{
125 return 0x00000004U;
126}
127static inline u32 ccsr_channel_status_on_pbdma_ctx_reload_v(void)
128{
129 return 0x0000000aU;
130}
131static inline u32 ccsr_channel_status_on_pbdma_and_eng_ctx_reload_v(void)
132{
133 return 0x0000000bU;
134}
135static inline u32 ccsr_channel_status_on_eng_ctx_reload_v(void)
136{
137 return 0x0000000cU;
138}
139static inline u32 ccsr_channel_status_on_eng_pending_ctx_reload_v(void)
140{
141 return 0x0000000dU;
142}
143static inline u32 ccsr_channel_status_on_eng_pending_acq_ctx_reload_v(void)
144{
145 return 0x0000000eU;
146}
147static inline u32 ccsr_channel_next_v(u32 r)
148{
149 return (r >> 1U) & 0x1U;
150}
151static inline u32 ccsr_channel_next_true_v(void)
152{
153 return 0x00000001U;
154}
155static inline u32 ccsr_channel_force_ctx_reload_true_f(void)
156{
157 return 0x100U;
158}
159static inline u32 ccsr_channel_busy_v(u32 r)
160{
161 return (r >> 28U) & 0x1U;
162}
163#endif
diff --git a/include/nvgpu/hw/gm20b/hw_ce2_gm20b.h b/include/nvgpu/hw/gm20b/hw_ce2_gm20b.h
new file mode 100644
index 0000000..fb741a7
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_ce2_gm20b.h
@@ -0,0 +1,87 @@
1/*
2 * Copyright (c) 2015-2017, 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_ce2_gm20b_h_
57#define _hw_ce2_gm20b_h_
58
59static inline u32 ce2_intr_status_r(void)
60{
61 return 0x00106908U;
62}
63static inline u32 ce2_intr_status_blockpipe_pending_f(void)
64{
65 return 0x1U;
66}
67static inline u32 ce2_intr_status_blockpipe_reset_f(void)
68{
69 return 0x1U;
70}
71static inline u32 ce2_intr_status_nonblockpipe_pending_f(void)
72{
73 return 0x2U;
74}
75static inline u32 ce2_intr_status_nonblockpipe_reset_f(void)
76{
77 return 0x2U;
78}
79static inline u32 ce2_intr_status_launcherr_pending_f(void)
80{
81 return 0x4U;
82}
83static inline u32 ce2_intr_status_launcherr_reset_f(void)
84{
85 return 0x4U;
86}
87#endif
diff --git a/include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h b/include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h
new file mode 100644
index 0000000..6b5632a
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h
@@ -0,0 +1,475 @@
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_gm20b_h_
57#define _hw_ctxsw_prog_gm20b_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_cde_enabled_f(void)
72{
73 return 0x400U;
74}
75static inline u32 ctxsw_prog_main_image_ctl_cde_disabled_f(void)
76{
77 return 0x0U;
78}
79static inline u32 ctxsw_prog_main_image_patch_count_o(void)
80{
81 return 0x00000010U;
82}
83static inline u32 ctxsw_prog_main_image_context_id_o(void)
84{
85 return 0x000000f0U;
86}
87static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void)
88{
89 return 0x00000014U;
90}
91static inline u32 ctxsw_prog_main_image_patch_adr_hi_o(void)
92{
93 return 0x00000018U;
94}
95static inline u32 ctxsw_prog_main_image_zcull_o(void)
96{
97 return 0x0000001cU;
98}
99static inline u32 ctxsw_prog_main_image_zcull_mode_no_ctxsw_v(void)
100{
101 return 0x00000001U;
102}
103static inline u32 ctxsw_prog_main_image_zcull_mode_separate_buffer_v(void)
104{
105 return 0x00000002U;
106}
107static inline u32 ctxsw_prog_main_image_zcull_ptr_o(void)
108{
109 return 0x00000020U;
110}
111static inline u32 ctxsw_prog_main_image_pm_o(void)
112{
113 return 0x00000028U;
114}
115static inline u32 ctxsw_prog_main_image_pm_mode_m(void)
116{
117 return 0x7U << 0U;
118}
119static inline u32 ctxsw_prog_main_image_pm_mode_ctxsw_f(void)
120{
121 return 0x1U;
122}
123static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void)
124{
125 return 0x0U;
126}
127static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void)
128{
129 return 0x7U << 3U;
130}
131static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void)
132{
133 return 0x8U;
134}
135static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void)
136{
137 return 0x0U;
138}
139static inline u32 ctxsw_prog_main_image_pm_pc_sampling_f(u32 v)
140{
141 return (v & 0x1U) << 6U;
142}
143static inline u32 ctxsw_prog_main_image_pm_pc_sampling_m(void)
144{
145 return 0x1U << 6U;
146}
147static inline u32 ctxsw_prog_main_image_pm_ptr_o(void)
148{
149 return 0x0000002cU;
150}
151static inline u32 ctxsw_prog_main_image_num_save_ops_o(void)
152{
153 return 0x000000f4U;
154}
155static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void)
156{
157 return 0x000000f8U;
158}
159static inline u32 ctxsw_prog_main_image_magic_value_o(void)
160{
161 return 0x000000fcU;
162}
163static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void)
164{
165 return 0x600dc0deU;
166}
167static inline u32 ctxsw_prog_local_priv_register_ctl_o(void)
168{
169 return 0x0000000cU;
170}
171static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r)
172{
173 return (r >> 0U) & 0xffffU;
174}
175static inline u32 ctxsw_prog_local_image_ppc_info_o(void)
176{
177 return 0x000000f4U;
178}
179static inline u32 ctxsw_prog_local_image_ppc_info_num_ppcs_v(u32 r)
180{
181 return (r >> 0U) & 0xffffU;
182}
183static inline u32 ctxsw_prog_local_image_ppc_info_ppc_mask_v(u32 r)
184{
185 return (r >> 16U) & 0xffffU;
186}
187static inline u32 ctxsw_prog_local_image_num_tpcs_o(void)
188{
189 return 0x000000f8U;
190}
191static inline u32 ctxsw_prog_local_magic_value_o(void)
192{
193 return 0x000000fcU;
194}
195static inline u32 ctxsw_prog_local_magic_value_v_value_v(void)
196{
197 return 0xad0becabU;
198}
199static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void)
200{
201 return 0x000000ecU;
202}
203static inline u32 ctxsw_prog_main_extended_buffer_ctl_offset_v(u32 r)
204{
205 return (r >> 0U) & 0xffffU;
206}
207static inline u32 ctxsw_prog_main_extended_buffer_ctl_size_v(u32 r)
208{
209 return (r >> 16U) & 0xffU;
210}
211static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void)
212{
213 return 0x00000100U;
214}
215static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void)
216{
217 return 0x00000004U;
218}
219static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void)
220{
221 return 0x00000000U;
222}
223static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void)
224{
225 return 0x00000002U;
226}
227static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void)
228{
229 return 0x000000a0U;
230}
231static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void)
232{
233 return 2U;
234}
235static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v)
236{
237 return (v & 0x3U) << 0U;
238}
239static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void)
240{
241 return 0x3U << 0U;
242}
243static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r)
244{
245 return (r >> 0U) & 0x3U;
246}
247static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void)
248{
249 return 0x0U;
250}
251static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void)
252{
253 return 0x2U;
254}
255static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void)
256{
257 return 0x000000a4U;
258}
259static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void)
260{
261 return 0x000000a8U;
262}
263static inline u32 ctxsw_prog_main_image_misc_options_o(void)
264{
265 return 0x0000003cU;
266}
267static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void)
268{
269 return 0x1U << 3U;
270}
271static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void)
272{
273 return 0x0U;
274}
275static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_o(void)
276{
277 return 0x000000acU;
278}
279static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_num_records_f(u32 v)
280{
281 return (v & 0xffffU) << 0U;
282}
283static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(void)
284{
285 return 0x000000b0U;
286}
287static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_v_m(void)
288{
289 return 0xfffffffU << 0U;
290}
291static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_m(void)
292{
293 return 0x3U << 28U;
294}
295static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_vid_mem_f(void)
296{
297 return 0x0U;
298}
299static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_coherent_f(void)
300{
301 return 0x20000000U;
302}
303static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_noncoherent_f(void)
304{
305 return 0x30000000U;
306}
307static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(void)
308{
309 return 0x000000b4U;
310}
311static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_v_f(u32 v)
312{
313 return (v & 0xffffffffU) << 0U;
314}
315static inline u32 ctxsw_prog_record_timestamp_record_size_in_bytes_v(void)
316{
317 return 0x00000080U;
318}
319static inline u32 ctxsw_prog_record_timestamp_record_size_in_words_v(void)
320{
321 return 0x00000020U;
322}
323static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_o(void)
324{
325 return 0x00000000U;
326}
327static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_v_value_v(void)
328{
329 return 0x00000000U;
330}
331static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_o(void)
332{
333 return 0x00000004U;
334}
335static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_v_value_v(void)
336{
337 return 0x600dbeefU;
338}
339static inline u32 ctxsw_prog_record_timestamp_context_id_o(void)
340{
341 return 0x00000008U;
342}
343static inline u32 ctxsw_prog_record_timestamp_context_ptr_o(void)
344{
345 return 0x0000000cU;
346}
347static inline u32 ctxsw_prog_record_timestamp_new_context_id_o(void)
348{
349 return 0x00000010U;
350}
351static inline u32 ctxsw_prog_record_timestamp_new_context_ptr_o(void)
352{
353 return 0x00000014U;
354}
355static inline u32 ctxsw_prog_record_timestamp_timestamp_lo_o(void)
356{
357 return 0x00000018U;
358}
359static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_o(void)
360{
361 return 0x0000001cU;
362}
363static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_f(u32 v)
364{
365 return (v & 0xffffffU) << 0U;
366}
367static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_v(u32 r)
368{
369 return (r >> 0U) & 0xffffffU;
370}
371static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_f(u32 v)
372{
373 return (v & 0xffU) << 24U;
374}
375static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_m(void)
376{
377 return 0xffU << 24U;
378}
379static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_v(u32 r)
380{
381 return (r >> 24U) & 0xffU;
382}
383static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_v(void)
384{
385 return 0x00000001U;
386}
387static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_f(void)
388{
389 return 0x1000000U;
390}
391static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_v(void)
392{
393 return 0x00000002U;
394}
395static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_f(void)
396{
397 return 0x2000000U;
398}
399static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_v(void)
400{
401 return 0x0000000aU;
402}
403static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_f(void)
404{
405 return 0xa000000U;
406}
407static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_v(void)
408{
409 return 0x0000000bU;
410}
411static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_f(void)
412{
413 return 0xb000000U;
414}
415static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_v(void)
416{
417 return 0x0000000cU;
418}
419static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_f(void)
420{
421 return 0xc000000U;
422}
423static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_v(void)
424{
425 return 0x0000000dU;
426}
427static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_f(void)
428{
429 return 0xd000000U;
430}
431static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_v(void)
432{
433 return 0x00000003U;
434}
435static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_f(void)
436{
437 return 0x3000000U;
438}
439static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_v(void)
440{
441 return 0x00000004U;
442}
443static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_f(void)
444{
445 return 0x4000000U;
446}
447static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_v(void)
448{
449 return 0x00000005U;
450}
451static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_f(void)
452{
453 return 0x5000000U;
454}
455static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_v(void)
456{
457 return 0x000000ffU;
458}
459static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_f(void)
460{
461 return 0xff000000U;
462}
463static inline u32 ctxsw_prog_main_image_preemption_options_o(void)
464{
465 return 0x00000060U;
466}
467static inline u32 ctxsw_prog_main_image_preemption_options_control_f(u32 v)
468{
469 return (v & 0x3U) << 0U;
470}
471static inline u32 ctxsw_prog_main_image_preemption_options_control_cta_enabled_f(void)
472{
473 return 0x1U;
474}
475#endif
diff --git a/include/nvgpu/hw/gm20b/hw_falcon_gm20b.h b/include/nvgpu/hw/gm20b/hw_falcon_gm20b.h
new file mode 100644
index 0000000..c598568
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_falcon_gm20b.h
@@ -0,0 +1,599 @@
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_falcon_gm20b_h_
57#define _hw_falcon_gm20b_h_
58
59static inline u32 falcon_falcon_irqsset_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 falcon_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 falcon_falcon_irqsclr_r(void)
68{
69 return 0x00000004U;
70}
71static inline u32 falcon_falcon_irqstat_r(void)
72{
73 return 0x00000008U;
74}
75static inline u32 falcon_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 falcon_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 falcon_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 falcon_falcon_irqmode_r(void)
88{
89 return 0x0000000cU;
90}
91static inline u32 falcon_falcon_irqmset_r(void)
92{
93 return 0x00000010U;
94}
95static inline u32 falcon_falcon_irqmset_gptmr_f(u32 v)
96{
97 return (v & 0x1U) << 0U;
98}
99static inline u32 falcon_falcon_irqmset_wdtmr_f(u32 v)
100{
101 return (v & 0x1U) << 1U;
102}
103static inline u32 falcon_falcon_irqmset_mthd_f(u32 v)
104{
105 return (v & 0x1U) << 2U;
106}
107static inline u32 falcon_falcon_irqmset_ctxsw_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 falcon_falcon_irqmset_halt_f(u32 v)
112{
113 return (v & 0x1U) << 4U;
114}
115static inline u32 falcon_falcon_irqmset_exterr_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 falcon_falcon_irqmset_swgen0_f(u32 v)
120{
121 return (v & 0x1U) << 6U;
122}
123static inline u32 falcon_falcon_irqmset_swgen1_f(u32 v)
124{
125 return (v & 0x1U) << 7U;
126}
127static inline u32 falcon_falcon_irqmclr_r(void)
128{
129 return 0x00000014U;
130}
131static inline u32 falcon_falcon_irqmclr_gptmr_f(u32 v)
132{
133 return (v & 0x1U) << 0U;
134}
135static inline u32 falcon_falcon_irqmclr_wdtmr_f(u32 v)
136{
137 return (v & 0x1U) << 1U;
138}
139static inline u32 falcon_falcon_irqmclr_mthd_f(u32 v)
140{
141 return (v & 0x1U) << 2U;
142}
143static inline u32 falcon_falcon_irqmclr_ctxsw_f(u32 v)
144{
145 return (v & 0x1U) << 3U;
146}
147static inline u32 falcon_falcon_irqmclr_halt_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 falcon_falcon_irqmclr_exterr_f(u32 v)
152{
153 return (v & 0x1U) << 5U;
154}
155static inline u32 falcon_falcon_irqmclr_swgen0_f(u32 v)
156{
157 return (v & 0x1U) << 6U;
158}
159static inline u32 falcon_falcon_irqmclr_swgen1_f(u32 v)
160{
161 return (v & 0x1U) << 7U;
162}
163static inline u32 falcon_falcon_irqmclr_ext_f(u32 v)
164{
165 return (v & 0xffU) << 8U;
166}
167static inline u32 falcon_falcon_irqmask_r(void)
168{
169 return 0x00000018U;
170}
171static inline u32 falcon_falcon_irqdest_r(void)
172{
173 return 0x0000001cU;
174}
175static inline u32 falcon_falcon_irqdest_host_gptmr_f(u32 v)
176{
177 return (v & 0x1U) << 0U;
178}
179static inline u32 falcon_falcon_irqdest_host_wdtmr_f(u32 v)
180{
181 return (v & 0x1U) << 1U;
182}
183static inline u32 falcon_falcon_irqdest_host_mthd_f(u32 v)
184{
185 return (v & 0x1U) << 2U;
186}
187static inline u32 falcon_falcon_irqdest_host_ctxsw_f(u32 v)
188{
189 return (v & 0x1U) << 3U;
190}
191static inline u32 falcon_falcon_irqdest_host_halt_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 falcon_falcon_irqdest_host_exterr_f(u32 v)
196{
197 return (v & 0x1U) << 5U;
198}
199static inline u32 falcon_falcon_irqdest_host_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 falcon_falcon_irqdest_host_swgen1_f(u32 v)
204{
205 return (v & 0x1U) << 7U;
206}
207static inline u32 falcon_falcon_irqdest_host_ext_f(u32 v)
208{
209 return (v & 0xffU) << 8U;
210}
211static inline u32 falcon_falcon_irqdest_target_gptmr_f(u32 v)
212{
213 return (v & 0x1U) << 16U;
214}
215static inline u32 falcon_falcon_irqdest_target_wdtmr_f(u32 v)
216{
217 return (v & 0x1U) << 17U;
218}
219static inline u32 falcon_falcon_irqdest_target_mthd_f(u32 v)
220{
221 return (v & 0x1U) << 18U;
222}
223static inline u32 falcon_falcon_irqdest_target_ctxsw_f(u32 v)
224{
225 return (v & 0x1U) << 19U;
226}
227static inline u32 falcon_falcon_irqdest_target_halt_f(u32 v)
228{
229 return (v & 0x1U) << 20U;
230}
231static inline u32 falcon_falcon_irqdest_target_exterr_f(u32 v)
232{
233 return (v & 0x1U) << 21U;
234}
235static inline u32 falcon_falcon_irqdest_target_swgen0_f(u32 v)
236{
237 return (v & 0x1U) << 22U;
238}
239static inline u32 falcon_falcon_irqdest_target_swgen1_f(u32 v)
240{
241 return (v & 0x1U) << 23U;
242}
243static inline u32 falcon_falcon_irqdest_target_ext_f(u32 v)
244{
245 return (v & 0xffU) << 24U;
246}
247static inline u32 falcon_falcon_curctx_r(void)
248{
249 return 0x00000050U;
250}
251static inline u32 falcon_falcon_nxtctx_r(void)
252{
253 return 0x00000054U;
254}
255static inline u32 falcon_falcon_mailbox0_r(void)
256{
257 return 0x00000040U;
258}
259static inline u32 falcon_falcon_mailbox1_r(void)
260{
261 return 0x00000044U;
262}
263static inline u32 falcon_falcon_itfen_r(void)
264{
265 return 0x00000048U;
266}
267static inline u32 falcon_falcon_itfen_ctxen_enable_f(void)
268{
269 return 0x1U;
270}
271static inline u32 falcon_falcon_idlestate_r(void)
272{
273 return 0x0000004cU;
274}
275static inline u32 falcon_falcon_idlestate_falcon_busy_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 falcon_falcon_idlestate_ext_busy_v(u32 r)
280{
281 return (r >> 1U) & 0x7fffU;
282}
283static inline u32 falcon_falcon_os_r(void)
284{
285 return 0x00000080U;
286}
287static inline u32 falcon_falcon_engctl_r(void)
288{
289 return 0x000000a4U;
290}
291static inline u32 falcon_falcon_cpuctl_r(void)
292{
293 return 0x00000100U;
294}
295static inline u32 falcon_falcon_cpuctl_startcpu_f(u32 v)
296{
297 return (v & 0x1U) << 1U;
298}
299static inline u32 falcon_falcon_cpuctl_sreset_f(u32 v)
300{
301 return (v & 0x1U) << 2U;
302}
303static inline u32 falcon_falcon_cpuctl_hreset_f(u32 v)
304{
305 return (v & 0x1U) << 3U;
306}
307static inline u32 falcon_falcon_cpuctl_halt_intr_f(u32 v)
308{
309 return (v & 0x1U) << 4U;
310}
311static inline u32 falcon_falcon_cpuctl_halt_intr_m(void)
312{
313 return 0x1U << 4U;
314}
315static inline u32 falcon_falcon_cpuctl_halt_intr_v(u32 r)
316{
317 return (r >> 4U) & 0x1U;
318}
319static inline u32 falcon_falcon_cpuctl_stopped_m(void)
320{
321 return 0x1U << 5U;
322}
323static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
324{
325 return (v & 0x1U) << 6U;
326}
327static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_m(void)
328{
329 return 0x1U << 6U;
330}
331static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
332{
333 return (r >> 6U) & 0x1U;
334}
335static inline u32 falcon_falcon_cpuctl_alias_r(void)
336{
337 return 0x00000130U;
338}
339static inline u32 falcon_falcon_cpuctl_alias_startcpu_f(u32 v)
340{
341 return (v & 0x1U) << 1U;
342}
343static inline u32 falcon_falcon_imemc_r(u32 i)
344{
345 return 0x00000180U + i*16U;
346}
347static inline u32 falcon_falcon_imemc_offs_f(u32 v)
348{
349 return (v & 0x3fU) << 2U;
350}
351static inline u32 falcon_falcon_imemc_blk_f(u32 v)
352{
353 return (v & 0xffU) << 8U;
354}
355static inline u32 falcon_falcon_imemc_aincw_f(u32 v)
356{
357 return (v & 0x1U) << 24U;
358}
359static inline u32 falcon_falcon_imemc_secure_f(u32 v)
360{
361 return (v & 0x1U) << 28U;
362}
363static inline u32 falcon_falcon_imemd_r(u32 i)
364{
365 return 0x00000184U + i*16U;
366}
367static inline u32 falcon_falcon_imemt_r(u32 i)
368{
369 return 0x00000188U + i*16U;
370}
371static inline u32 falcon_falcon_sctl_r(void)
372{
373 return 0x00000240U;
374}
375static inline u32 falcon_falcon_mmu_phys_sec_r(void)
376{
377 return 0x00100ce4U;
378}
379static inline u32 falcon_falcon_bootvec_r(void)
380{
381 return 0x00000104U;
382}
383static inline u32 falcon_falcon_bootvec_vec_f(u32 v)
384{
385 return (v & 0xffffffffU) << 0U;
386}
387static inline u32 falcon_falcon_dmactl_r(void)
388{
389 return 0x0000010cU;
390}
391static inline u32 falcon_falcon_dmactl_dmem_scrubbing_m(void)
392{
393 return 0x1U << 1U;
394}
395static inline u32 falcon_falcon_dmactl_imem_scrubbing_m(void)
396{
397 return 0x1U << 2U;
398}
399static inline u32 falcon_falcon_dmactl_require_ctx_f(u32 v)
400{
401 return (v & 0x1U) << 0U;
402}
403static inline u32 falcon_falcon_hwcfg_r(void)
404{
405 return 0x00000108U;
406}
407static inline u32 falcon_falcon_hwcfg_imem_size_v(u32 r)
408{
409 return (r >> 0U) & 0x1ffU;
410}
411static inline u32 falcon_falcon_hwcfg_dmem_size_v(u32 r)
412{
413 return (r >> 9U) & 0x1ffU;
414}
415static inline u32 falcon_falcon_dmatrfbase_r(void)
416{
417 return 0x00000110U;
418}
419static inline u32 falcon_falcon_dmatrfmoffs_r(void)
420{
421 return 0x00000114U;
422}
423static inline u32 falcon_falcon_dmatrfcmd_r(void)
424{
425 return 0x00000118U;
426}
427static inline u32 falcon_falcon_dmatrfcmd_imem_f(u32 v)
428{
429 return (v & 0x1U) << 4U;
430}
431static inline u32 falcon_falcon_dmatrfcmd_write_f(u32 v)
432{
433 return (v & 0x1U) << 5U;
434}
435static inline u32 falcon_falcon_dmatrfcmd_size_f(u32 v)
436{
437 return (v & 0x7U) << 8U;
438}
439static inline u32 falcon_falcon_dmatrfcmd_ctxdma_f(u32 v)
440{
441 return (v & 0x7U) << 12U;
442}
443static inline u32 falcon_falcon_dmatrffboffs_r(void)
444{
445 return 0x0000011cU;
446}
447static inline u32 falcon_falcon_imctl_debug_r(void)
448{
449 return 0x0000015cU;
450}
451static inline u32 falcon_falcon_imctl_debug_addr_blk_f(u32 v)
452{
453 return (v & 0xffffffU) << 0U;
454}
455static inline u32 falcon_falcon_imctl_debug_cmd_f(u32 v)
456{
457 return (v & 0x7U) << 24U;
458}
459static inline u32 falcon_falcon_imstat_r(void)
460{
461 return 0x00000144U;
462}
463static inline u32 falcon_falcon_traceidx_r(void)
464{
465 return 0x00000148U;
466}
467static inline u32 falcon_falcon_traceidx_maxidx_v(u32 r)
468{
469 return (r >> 16U) & 0xffU;
470}
471static inline u32 falcon_falcon_traceidx_idx_f(u32 v)
472{
473 return (v & 0xffU) << 0U;
474}
475static inline u32 falcon_falcon_tracepc_r(void)
476{
477 return 0x0000014cU;
478}
479static inline u32 falcon_falcon_tracepc_pc_v(u32 r)
480{
481 return (r >> 0U) & 0xffffffU;
482}
483static inline u32 falcon_falcon_exterraddr_r(void)
484{
485 return 0x00000168U;
486}
487static inline u32 falcon_falcon_exterrstat_r(void)
488{
489 return 0x0000016cU;
490}
491static inline u32 falcon_falcon_exterrstat_valid_m(void)
492{
493 return 0x1U << 31U;
494}
495static inline u32 falcon_falcon_exterrstat_valid_v(u32 r)
496{
497 return (r >> 31U) & 0x1U;
498}
499static inline u32 falcon_falcon_exterrstat_valid_true_v(void)
500{
501 return 0x00000001U;
502}
503static inline u32 falcon_falcon_icd_cmd_r(void)
504{
505 return 0x00000200U;
506}
507static inline u32 falcon_falcon_icd_cmd_opc_s(void)
508{
509 return 4U;
510}
511static inline u32 falcon_falcon_icd_cmd_opc_f(u32 v)
512{
513 return (v & 0xfU) << 0U;
514}
515static inline u32 falcon_falcon_icd_cmd_opc_m(void)
516{
517 return 0xfU << 0U;
518}
519static inline u32 falcon_falcon_icd_cmd_opc_v(u32 r)
520{
521 return (r >> 0U) & 0xfU;
522}
523static inline u32 falcon_falcon_icd_cmd_opc_rreg_f(void)
524{
525 return 0x8U;
526}
527static inline u32 falcon_falcon_icd_cmd_opc_rstat_f(void)
528{
529 return 0xeU;
530}
531static inline u32 falcon_falcon_icd_cmd_idx_f(u32 v)
532{
533 return (v & 0x1fU) << 8U;
534}
535static inline u32 falcon_falcon_icd_rdata_r(void)
536{
537 return 0x0000020cU;
538}
539static inline u32 falcon_falcon_dmemc_r(u32 i)
540{
541 return 0x000001c0U + i*8U;
542}
543static inline u32 falcon_falcon_dmemc_offs_f(u32 v)
544{
545 return (v & 0x3fU) << 2U;
546}
547static inline u32 falcon_falcon_dmemc_offs_m(void)
548{
549 return 0x3fU << 2U;
550}
551static inline u32 falcon_falcon_dmemc_blk_f(u32 v)
552{
553 return (v & 0xffU) << 8U;
554}
555static inline u32 falcon_falcon_dmemc_blk_m(void)
556{
557 return 0xffU << 8U;
558}
559static inline u32 falcon_falcon_dmemc_aincw_f(u32 v)
560{
561 return (v & 0x1U) << 24U;
562}
563static inline u32 falcon_falcon_dmemc_aincr_f(u32 v)
564{
565 return (v & 0x1U) << 25U;
566}
567static inline u32 falcon_falcon_dmemd_r(u32 i)
568{
569 return 0x000001c4U + i*8U;
570}
571static inline u32 falcon_falcon_debug1_r(void)
572{
573 return 0x00000090U;
574}
575static inline u32 falcon_falcon_debug1_ctxsw_mode_s(void)
576{
577 return 1U;
578}
579static inline u32 falcon_falcon_debug1_ctxsw_mode_f(u32 v)
580{
581 return (v & 0x1U) << 16U;
582}
583static inline u32 falcon_falcon_debug1_ctxsw_mode_m(void)
584{
585 return 0x1U << 16U;
586}
587static inline u32 falcon_falcon_debug1_ctxsw_mode_v(u32 r)
588{
589 return (r >> 16U) & 0x1U;
590}
591static inline u32 falcon_falcon_debug1_ctxsw_mode_init_f(void)
592{
593 return 0x0U;
594}
595static inline u32 falcon_falcon_debuginfo_r(void)
596{
597 return 0x00000094U;
598}
599#endif
diff --git a/include/nvgpu/hw/gm20b/hw_fb_gm20b.h b/include/nvgpu/hw/gm20b/hw_fb_gm20b.h
new file mode 100644
index 0000000..e6464c1
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_fb_gm20b.h
@@ -0,0 +1,339 @@
1/*
2 * Copyright (c) 2014-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_fb_gm20b_h_
57#define _hw_fb_gm20b_h_
58
59static inline u32 fb_fbhub_num_active_ltcs_r(void)
60{
61 return 0x00100800U;
62}
63static inline u32 fb_mmu_ctrl_r(void)
64{
65 return 0x00100c80U;
66}
67static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r)
68{
69 return (r >> 15U) & 0x1U;
70}
71static inline u32 fb_mmu_ctrl_pri_fifo_empty_false_f(void)
72{
73 return 0x0U;
74}
75static inline u32 fb_mmu_ctrl_pri_fifo_space_v(u32 r)
76{
77 return (r >> 16U) & 0xffU;
78}
79static inline u32 fb_mmu_ctrl_use_pdb_big_page_size_v(u32 r)
80{
81 return (r >> 11U) & 0x1U;
82}
83static inline u32 fb_mmu_ctrl_use_pdb_big_page_size_true_f(void)
84{
85 return 0x800U;
86}
87static inline u32 fb_mmu_ctrl_use_pdb_big_page_size_false_f(void)
88{
89 return 0x0U;
90}
91static inline u32 fb_mmu_ctrl_use_full_comp_tag_line_v(u32 r)
92{
93 return (r >> 12U) & 0x1U;
94}
95static inline u32 fb_mmu_ctrl_use_full_comp_tag_line_true_f(void)
96{
97 return 0x1000U;
98}
99static inline u32 fb_priv_mmu_phy_secure_r(void)
100{
101 return 0x00100ce4U;
102}
103static inline u32 fb_mmu_invalidate_pdb_r(void)
104{
105 return 0x00100cb8U;
106}
107static inline u32 fb_mmu_invalidate_pdb_aperture_vid_mem_f(void)
108{
109 return 0x0U;
110}
111static inline u32 fb_mmu_invalidate_pdb_aperture_sys_mem_f(void)
112{
113 return 0x2U;
114}
115static inline u32 fb_mmu_invalidate_pdb_addr_f(u32 v)
116{
117 return (v & 0xfffffffU) << 4U;
118}
119static inline u32 fb_mmu_invalidate_r(void)
120{
121 return 0x00100cbcU;
122}
123static inline u32 fb_mmu_invalidate_all_va_true_f(void)
124{
125 return 0x1U;
126}
127static inline u32 fb_mmu_invalidate_all_pdb_true_f(void)
128{
129 return 0x2U;
130}
131static inline u32 fb_mmu_invalidate_trigger_s(void)
132{
133 return 1U;
134}
135static inline u32 fb_mmu_invalidate_trigger_f(u32 v)
136{
137 return (v & 0x1U) << 31U;
138}
139static inline u32 fb_mmu_invalidate_trigger_m(void)
140{
141 return 0x1U << 31U;
142}
143static inline u32 fb_mmu_invalidate_trigger_v(u32 r)
144{
145 return (r >> 31U) & 0x1U;
146}
147static inline u32 fb_mmu_invalidate_trigger_true_f(void)
148{
149 return 0x80000000U;
150}
151static inline u32 fb_mmu_debug_wr_r(void)
152{
153 return 0x00100cc8U;
154}
155static inline u32 fb_mmu_debug_wr_aperture_s(void)
156{
157 return 2U;
158}
159static inline u32 fb_mmu_debug_wr_aperture_f(u32 v)
160{
161 return (v & 0x3U) << 0U;
162}
163static inline u32 fb_mmu_debug_wr_aperture_m(void)
164{
165 return 0x3U << 0U;
166}
167static inline u32 fb_mmu_debug_wr_aperture_v(u32 r)
168{
169 return (r >> 0U) & 0x3U;
170}
171static inline u32 fb_mmu_debug_wr_aperture_vid_mem_f(void)
172{
173 return 0x0U;
174}
175static inline u32 fb_mmu_debug_wr_aperture_sys_mem_coh_f(void)
176{
177 return 0x2U;
178}
179static inline u32 fb_mmu_debug_wr_aperture_sys_mem_ncoh_f(void)
180{
181 return 0x3U;
182}
183static inline u32 fb_mmu_debug_wr_vol_false_f(void)
184{
185 return 0x0U;
186}
187static inline u32 fb_mmu_debug_wr_vol_true_v(void)
188{
189 return 0x00000001U;
190}
191static inline u32 fb_mmu_debug_wr_vol_true_f(void)
192{
193 return 0x4U;
194}
195static inline u32 fb_mmu_debug_wr_addr_f(u32 v)
196{
197 return (v & 0xfffffffU) << 4U;
198}
199static inline u32 fb_mmu_debug_wr_addr_alignment_v(void)
200{
201 return 0x0000000cU;
202}
203static inline u32 fb_mmu_debug_rd_r(void)
204{
205 return 0x00100cccU;
206}
207static inline u32 fb_mmu_debug_rd_aperture_vid_mem_f(void)
208{
209 return 0x0U;
210}
211static inline u32 fb_mmu_debug_rd_aperture_sys_mem_coh_f(void)
212{
213 return 0x2U;
214}
215static inline u32 fb_mmu_debug_rd_aperture_sys_mem_ncoh_f(void)
216{
217 return 0x3U;
218}
219static inline u32 fb_mmu_debug_rd_vol_false_f(void)
220{
221 return 0x0U;
222}
223static inline u32 fb_mmu_debug_rd_addr_f(u32 v)
224{
225 return (v & 0xfffffffU) << 4U;
226}
227static inline u32 fb_mmu_debug_rd_addr_alignment_v(void)
228{
229 return 0x0000000cU;
230}
231static inline u32 fb_mmu_debug_ctrl_r(void)
232{
233 return 0x00100cc4U;
234}
235static inline u32 fb_mmu_debug_ctrl_debug_v(u32 r)
236{
237 return (r >> 16U) & 0x1U;
238}
239static inline u32 fb_mmu_debug_ctrl_debug_m(void)
240{
241 return 0x1U << 16U;
242}
243static inline u32 fb_mmu_debug_ctrl_debug_enabled_v(void)
244{
245 return 0x00000001U;
246}
247static inline u32 fb_mmu_debug_ctrl_debug_enabled_f(void)
248{
249 return 0x10000U;
250}
251static inline u32 fb_mmu_debug_ctrl_debug_disabled_v(void)
252{
253 return 0x00000000U;
254}
255static inline u32 fb_mmu_debug_ctrl_debug_disabled_f(void)
256{
257 return 0x0U;
258}
259static inline u32 fb_mmu_vpr_info_r(void)
260{
261 return 0x00100cd0U;
262}
263static inline u32 fb_mmu_vpr_info_index_f(u32 v)
264{
265 return (v & 0x3U) << 0U;
266}
267static inline u32 fb_mmu_vpr_info_index_v(u32 r)
268{
269 return (r >> 0U) & 0x3U;
270}
271static inline u32 fb_mmu_vpr_info_index_addr_lo_v(void)
272{
273 return 0x00000000U;
274}
275static inline u32 fb_mmu_vpr_info_index_addr_hi_v(void)
276{
277 return 0x00000001U;
278}
279static inline u32 fb_mmu_vpr_info_index_cya_lo_v(void)
280{
281 return 0x00000002U;
282}
283static inline u32 fb_mmu_vpr_info_index_cya_hi_v(void)
284{
285 return 0x00000003U;
286}
287static inline u32 fb_mmu_vpr_info_fetch_f(u32 v)
288{
289 return (v & 0x1U) << 2U;
290}
291static inline u32 fb_mmu_vpr_info_fetch_v(u32 r)
292{
293 return (r >> 2U) & 0x1U;
294}
295static inline u32 fb_mmu_vpr_info_fetch_false_v(void)
296{
297 return 0x00000000U;
298}
299static inline u32 fb_mmu_vpr_info_fetch_true_v(void)
300{
301 return 0x00000001U;
302}
303static inline u32 fb_mmu_wpr_info_r(void)
304{
305 return 0x00100cd4U;
306}
307static inline u32 fb_mmu_wpr_info_index_f(u32 v)
308{
309 return (v & 0xfU) << 0U;
310}
311static inline u32 fb_mmu_wpr_info_index_allow_read_v(void)
312{
313 return 0x00000000U;
314}
315static inline u32 fb_mmu_wpr_info_index_allow_write_v(void)
316{
317 return 0x00000001U;
318}
319static inline u32 fb_mmu_wpr_info_index_wpr1_addr_lo_v(void)
320{
321 return 0x00000002U;
322}
323static inline u32 fb_mmu_wpr_info_index_wpr1_addr_hi_v(void)
324{
325 return 0x00000003U;
326}
327static inline u32 fb_mmu_wpr_info_index_wpr2_addr_lo_v(void)
328{
329 return 0x00000004U;
330}
331static inline u32 fb_mmu_wpr_info_index_wpr2_addr_hi_v(void)
332{
333 return 0x00000005U;
334}
335static inline u32 fb_niso_flush_sysmem_addr_r(void)
336{
337 return 0x00100c10U;
338}
339#endif
diff --git a/include/nvgpu/hw/gm20b/hw_fifo_gm20b.h b/include/nvgpu/hw/gm20b/hw_fifo_gm20b.h
new file mode 100644
index 0000000..d32506d
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_fifo_gm20b.h
@@ -0,0 +1,571 @@
1/*
2 * Copyright (c) 2014-2017, 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_fifo_gm20b_h_
57#define _hw_fifo_gm20b_h_
58
59static inline u32 fifo_bar1_base_r(void)
60{
61 return 0x00002254U;
62}
63static inline u32 fifo_bar1_base_ptr_f(u32 v)
64{
65 return (v & 0xfffffffU) << 0U;
66}
67static inline u32 fifo_bar1_base_ptr_align_shift_v(void)
68{
69 return 0x0000000cU;
70}
71static inline u32 fifo_bar1_base_valid_false_f(void)
72{
73 return 0x0U;
74}
75static inline u32 fifo_bar1_base_valid_true_f(void)
76{
77 return 0x10000000U;
78}
79static inline u32 fifo_runlist_base_r(void)
80{
81 return 0x00002270U;
82}
83static inline u32 fifo_runlist_base_ptr_f(u32 v)
84{
85 return (v & 0xfffffffU) << 0U;
86}
87static inline u32 fifo_runlist_base_target_vid_mem_f(void)
88{
89 return 0x0U;
90}
91static inline u32 fifo_runlist_base_target_sys_mem_coh_f(void)
92{
93 return 0x20000000U;
94}
95static inline u32 fifo_runlist_base_target_sys_mem_ncoh_f(void)
96{
97 return 0x30000000U;
98}
99static inline u32 fifo_runlist_r(void)
100{
101 return 0x00002274U;
102}
103static inline u32 fifo_runlist_engine_f(u32 v)
104{
105 return (v & 0xfU) << 20U;
106}
107static inline u32 fifo_eng_runlist_base_r(u32 i)
108{
109 return 0x00002280U + i*8U;
110}
111static inline u32 fifo_eng_runlist_base__size_1_v(void)
112{
113 return 0x00000001U;
114}
115static inline u32 fifo_eng_runlist_r(u32 i)
116{
117 return 0x00002284U + i*8U;
118}
119static inline u32 fifo_eng_runlist__size_1_v(void)
120{
121 return 0x00000001U;
122}
123static inline u32 fifo_eng_runlist_length_f(u32 v)
124{
125 return (v & 0xffffU) << 0U;
126}
127static inline u32 fifo_eng_runlist_length_max_v(void)
128{
129 return 0x0000ffffU;
130}
131static inline u32 fifo_eng_runlist_pending_true_f(void)
132{
133 return 0x100000U;
134}
135static inline u32 fifo_pb_timeslice_r(u32 i)
136{
137 return 0x00002350U + i*4U;
138}
139static inline u32 fifo_pb_timeslice_timeout_16_f(void)
140{
141 return 0x10U;
142}
143static inline u32 fifo_pb_timeslice_timescale_0_f(void)
144{
145 return 0x0U;
146}
147static inline u32 fifo_pb_timeslice_enable_true_f(void)
148{
149 return 0x10000000U;
150}
151static inline u32 fifo_pbdma_map_r(u32 i)
152{
153 return 0x00002390U + i*4U;
154}
155static inline u32 fifo_intr_0_r(void)
156{
157 return 0x00002100U;
158}
159static inline u32 fifo_intr_0_bind_error_pending_f(void)
160{
161 return 0x1U;
162}
163static inline u32 fifo_intr_0_bind_error_reset_f(void)
164{
165 return 0x1U;
166}
167static inline u32 fifo_intr_0_sched_error_pending_f(void)
168{
169 return 0x100U;
170}
171static inline u32 fifo_intr_0_sched_error_reset_f(void)
172{
173 return 0x100U;
174}
175static inline u32 fifo_intr_0_chsw_error_pending_f(void)
176{
177 return 0x10000U;
178}
179static inline u32 fifo_intr_0_chsw_error_reset_f(void)
180{
181 return 0x10000U;
182}
183static inline u32 fifo_intr_0_fb_flush_timeout_pending_f(void)
184{
185 return 0x800000U;
186}
187static inline u32 fifo_intr_0_fb_flush_timeout_reset_f(void)
188{
189 return 0x800000U;
190}
191static inline u32 fifo_intr_0_lb_error_pending_f(void)
192{
193 return 0x1000000U;
194}
195static inline u32 fifo_intr_0_lb_error_reset_f(void)
196{
197 return 0x1000000U;
198}
199static inline u32 fifo_intr_0_dropped_mmu_fault_pending_f(void)
200{
201 return 0x8000000U;
202}
203static inline u32 fifo_intr_0_dropped_mmu_fault_reset_f(void)
204{
205 return 0x8000000U;
206}
207static inline u32 fifo_intr_0_mmu_fault_pending_f(void)
208{
209 return 0x10000000U;
210}
211static inline u32 fifo_intr_0_pbdma_intr_pending_f(void)
212{
213 return 0x20000000U;
214}
215static inline u32 fifo_intr_0_runlist_event_pending_f(void)
216{
217 return 0x40000000U;
218}
219static inline u32 fifo_intr_0_channel_intr_pending_f(void)
220{
221 return 0x80000000U;
222}
223static inline u32 fifo_intr_en_0_r(void)
224{
225 return 0x00002140U;
226}
227static inline u32 fifo_intr_en_0_sched_error_f(u32 v)
228{
229 return (v & 0x1U) << 8U;
230}
231static inline u32 fifo_intr_en_0_sched_error_m(void)
232{
233 return 0x1U << 8U;
234}
235static inline u32 fifo_intr_en_0_mmu_fault_f(u32 v)
236{
237 return (v & 0x1U) << 28U;
238}
239static inline u32 fifo_intr_en_0_mmu_fault_m(void)
240{
241 return 0x1U << 28U;
242}
243static inline u32 fifo_intr_en_1_r(void)
244{
245 return 0x00002528U;
246}
247static inline u32 fifo_intr_bind_error_r(void)
248{
249 return 0x0000252cU;
250}
251static inline u32 fifo_intr_sched_error_r(void)
252{
253 return 0x0000254cU;
254}
255static inline u32 fifo_intr_sched_error_code_f(u32 v)
256{
257 return (v & 0xffU) << 0U;
258}
259static inline u32 fifo_intr_sched_error_code_ctxsw_timeout_v(void)
260{
261 return 0x0000000aU;
262}
263static inline u32 fifo_intr_chsw_error_r(void)
264{
265 return 0x0000256cU;
266}
267static inline u32 fifo_intr_mmu_fault_id_r(void)
268{
269 return 0x0000259cU;
270}
271static inline u32 fifo_intr_mmu_fault_eng_id_graphics_v(void)
272{
273 return 0x00000000U;
274}
275static inline u32 fifo_intr_mmu_fault_eng_id_graphics_f(void)
276{
277 return 0x0U;
278}
279static inline u32 fifo_intr_mmu_fault_inst_r(u32 i)
280{
281 return 0x00002800U + i*16U;
282}
283static inline u32 fifo_intr_mmu_fault_inst_ptr_v(u32 r)
284{
285 return (r >> 0U) & 0xfffffffU;
286}
287static inline u32 fifo_intr_mmu_fault_inst_ptr_align_shift_v(void)
288{
289 return 0x0000000cU;
290}
291static inline u32 fifo_intr_mmu_fault_lo_r(u32 i)
292{
293 return 0x00002804U + i*16U;
294}
295static inline u32 fifo_intr_mmu_fault_hi_r(u32 i)
296{
297 return 0x00002808U + i*16U;
298}
299static inline u32 fifo_intr_mmu_fault_info_r(u32 i)
300{
301 return 0x0000280cU + i*16U;
302}
303static inline u32 fifo_intr_mmu_fault_info_type_v(u32 r)
304{
305 return (r >> 0U) & 0xfU;
306}
307static inline u32 fifo_intr_mmu_fault_info_write_v(u32 r)
308{
309 return (r >> 7U) & 0x1U;
310}
311static inline u32 fifo_intr_mmu_fault_info_engine_subid_v(u32 r)
312{
313 return (r >> 6U) & 0x1U;
314}
315static inline u32 fifo_intr_mmu_fault_info_engine_subid_gpc_v(void)
316{
317 return 0x00000000U;
318}
319static inline u32 fifo_intr_mmu_fault_info_engine_subid_hub_v(void)
320{
321 return 0x00000001U;
322}
323static inline u32 fifo_intr_mmu_fault_info_client_v(u32 r)
324{
325 return (r >> 8U) & 0x3fU;
326}
327static inline u32 fifo_intr_pbdma_id_r(void)
328{
329 return 0x000025a0U;
330}
331static inline u32 fifo_intr_pbdma_id_status_f(u32 v, u32 i)
332{
333 return (v & 0x1U) << (0U + i*1U);
334}
335static inline u32 fifo_intr_pbdma_id_status_v(u32 r, u32 i)
336{
337 return (r >> (0U + i*1U)) & 0x1U;
338}
339static inline u32 fifo_intr_pbdma_id_status__size_1_v(void)
340{
341 return 0x00000001U;
342}
343static inline u32 fifo_intr_runlist_r(void)
344{
345 return 0x00002a00U;
346}
347static inline u32 fifo_fb_timeout_r(void)
348{
349 return 0x00002a04U;
350}
351static inline u32 fifo_fb_timeout_period_m(void)
352{
353 return 0x3fffffffU << 0U;
354}
355static inline u32 fifo_fb_timeout_period_max_f(void)
356{
357 return 0x3fffffffU;
358}
359static inline u32 fifo_error_sched_disable_r(void)
360{
361 return 0x0000262cU;
362}
363static inline u32 fifo_sched_disable_r(void)
364{
365 return 0x00002630U;
366}
367static inline u32 fifo_sched_disable_runlist_f(u32 v, u32 i)
368{
369 return (v & 0x1U) << (0U + i*1U);
370}
371static inline u32 fifo_sched_disable_runlist_m(u32 i)
372{
373 return 0x1U << (0U + i*1U);
374}
375static inline u32 fifo_sched_disable_true_v(void)
376{
377 return 0x00000001U;
378}
379static inline u32 fifo_preempt_r(void)
380{
381 return 0x00002634U;
382}
383static inline u32 fifo_preempt_pending_true_f(void)
384{
385 return 0x100000U;
386}
387static inline u32 fifo_preempt_type_channel_f(void)
388{
389 return 0x0U;
390}
391static inline u32 fifo_preempt_type_tsg_f(void)
392{
393 return 0x1000000U;
394}
395static inline u32 fifo_preempt_chid_f(u32 v)
396{
397 return (v & 0xfffU) << 0U;
398}
399static inline u32 fifo_preempt_id_f(u32 v)
400{
401 return (v & 0xfffU) << 0U;
402}
403static inline u32 fifo_trigger_mmu_fault_r(u32 i)
404{
405 return 0x00002a30U + i*4U;
406}
407static inline u32 fifo_trigger_mmu_fault_id_f(u32 v)
408{
409 return (v & 0x1fU) << 0U;
410}
411static inline u32 fifo_trigger_mmu_fault_enable_f(u32 v)
412{
413 return (v & 0x1U) << 8U;
414}
415static inline u32 fifo_engine_status_r(u32 i)
416{
417 return 0x00002640U + i*8U;
418}
419static inline u32 fifo_engine_status__size_1_v(void)
420{
421 return 0x00000002U;
422}
423static inline u32 fifo_engine_status_id_v(u32 r)
424{
425 return (r >> 0U) & 0xfffU;
426}
427static inline u32 fifo_engine_status_id_type_v(u32 r)
428{
429 return (r >> 12U) & 0x1U;
430}
431static inline u32 fifo_engine_status_id_type_chid_v(void)
432{
433 return 0x00000000U;
434}
435static inline u32 fifo_engine_status_id_type_tsgid_v(void)
436{
437 return 0x00000001U;
438}
439static inline u32 fifo_engine_status_ctx_status_v(u32 r)
440{
441 return (r >> 13U) & 0x7U;
442}
443static inline u32 fifo_engine_status_ctx_status_invalid_v(void)
444{
445 return 0x00000000U;
446}
447static inline u32 fifo_engine_status_ctx_status_valid_v(void)
448{
449 return 0x00000001U;
450}
451static inline u32 fifo_engine_status_ctx_status_ctxsw_load_v(void)
452{
453 return 0x00000005U;
454}
455static inline u32 fifo_engine_status_ctx_status_ctxsw_save_v(void)
456{
457 return 0x00000006U;
458}
459static inline u32 fifo_engine_status_ctx_status_ctxsw_switch_v(void)
460{
461 return 0x00000007U;
462}
463static inline u32 fifo_engine_status_next_id_v(u32 r)
464{
465 return (r >> 16U) & 0xfffU;
466}
467static inline u32 fifo_engine_status_next_id_type_v(u32 r)
468{
469 return (r >> 28U) & 0x1U;
470}
471static inline u32 fifo_engine_status_next_id_type_chid_v(void)
472{
473 return 0x00000000U;
474}
475static inline u32 fifo_engine_status_faulted_v(u32 r)
476{
477 return (r >> 30U) & 0x1U;
478}
479static inline u32 fifo_engine_status_faulted_true_v(void)
480{
481 return 0x00000001U;
482}
483static inline u32 fifo_engine_status_engine_v(u32 r)
484{
485 return (r >> 31U) & 0x1U;
486}
487static inline u32 fifo_engine_status_engine_idle_v(void)
488{
489 return 0x00000000U;
490}
491static inline u32 fifo_engine_status_engine_busy_v(void)
492{
493 return 0x00000001U;
494}
495static inline u32 fifo_engine_status_ctxsw_v(u32 r)
496{
497 return (r >> 15U) & 0x1U;
498}
499static inline u32 fifo_engine_status_ctxsw_in_progress_v(void)
500{
501 return 0x00000001U;
502}
503static inline u32 fifo_engine_status_ctxsw_in_progress_f(void)
504{
505 return 0x8000U;
506}
507static inline u32 fifo_pbdma_status_r(u32 i)
508{
509 return 0x00003080U + i*4U;
510}
511static inline u32 fifo_pbdma_status__size_1_v(void)
512{
513 return 0x00000001U;
514}
515static inline u32 fifo_pbdma_status_id_v(u32 r)
516{
517 return (r >> 0U) & 0xfffU;
518}
519static inline u32 fifo_pbdma_status_id_type_v(u32 r)
520{
521 return (r >> 12U) & 0x1U;
522}
523static inline u32 fifo_pbdma_status_id_type_chid_v(void)
524{
525 return 0x00000000U;
526}
527static inline u32 fifo_pbdma_status_id_type_tsgid_v(void)
528{
529 return 0x00000001U;
530}
531static inline u32 fifo_pbdma_status_chan_status_v(u32 r)
532{
533 return (r >> 13U) & 0x7U;
534}
535static inline u32 fifo_pbdma_status_chan_status_valid_v(void)
536{
537 return 0x00000001U;
538}
539static inline u32 fifo_pbdma_status_chan_status_chsw_load_v(void)
540{
541 return 0x00000005U;
542}
543static inline u32 fifo_pbdma_status_chan_status_chsw_save_v(void)
544{
545 return 0x00000006U;
546}
547static inline u32 fifo_pbdma_status_chan_status_chsw_switch_v(void)
548{
549 return 0x00000007U;
550}
551static inline u32 fifo_pbdma_status_next_id_v(u32 r)
552{
553 return (r >> 16U) & 0xfffU;
554}
555static inline u32 fifo_pbdma_status_next_id_type_v(u32 r)
556{
557 return (r >> 28U) & 0x1U;
558}
559static inline u32 fifo_pbdma_status_next_id_type_chid_v(void)
560{
561 return 0x00000000U;
562}
563static inline u32 fifo_pbdma_status_chsw_v(u32 r)
564{
565 return (r >> 15U) & 0x1U;
566}
567static inline u32 fifo_pbdma_status_chsw_in_progress_v(void)
568{
569 return 0x00000001U;
570}
571#endif
diff --git a/include/nvgpu/hw/gm20b/hw_flush_gm20b.h b/include/nvgpu/hw/gm20b/hw_flush_gm20b.h
new file mode 100644
index 0000000..3b5801b
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_flush_gm20b.h
@@ -0,0 +1,187 @@
1/*
2 * Copyright (c) 2014-2017, 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_flush_gm20b_h_
57#define _hw_flush_gm20b_h_
58
59static inline u32 flush_l2_system_invalidate_r(void)
60{
61 return 0x00070004U;
62}
63static inline u32 flush_l2_system_invalidate_pending_v(u32 r)
64{
65 return (r >> 0U) & 0x1U;
66}
67static inline u32 flush_l2_system_invalidate_pending_busy_v(void)
68{
69 return 0x00000001U;
70}
71static inline u32 flush_l2_system_invalidate_pending_busy_f(void)
72{
73 return 0x1U;
74}
75static inline u32 flush_l2_system_invalidate_outstanding_v(u32 r)
76{
77 return (r >> 1U) & 0x1U;
78}
79static inline u32 flush_l2_system_invalidate_outstanding_true_v(void)
80{
81 return 0x00000001U;
82}
83static inline u32 flush_l2_flush_dirty_r(void)
84{
85 return 0x00070010U;
86}
87static inline u32 flush_l2_flush_dirty_pending_v(u32 r)
88{
89 return (r >> 0U) & 0x1U;
90}
91static inline u32 flush_l2_flush_dirty_pending_empty_v(void)
92{
93 return 0x00000000U;
94}
95static inline u32 flush_l2_flush_dirty_pending_empty_f(void)
96{
97 return 0x0U;
98}
99static inline u32 flush_l2_flush_dirty_pending_busy_v(void)
100{
101 return 0x00000001U;
102}
103static inline u32 flush_l2_flush_dirty_pending_busy_f(void)
104{
105 return 0x1U;
106}
107static inline u32 flush_l2_flush_dirty_outstanding_v(u32 r)
108{
109 return (r >> 1U) & 0x1U;
110}
111static inline u32 flush_l2_flush_dirty_outstanding_false_v(void)
112{
113 return 0x00000000U;
114}
115static inline u32 flush_l2_flush_dirty_outstanding_false_f(void)
116{
117 return 0x0U;
118}
119static inline u32 flush_l2_flush_dirty_outstanding_true_v(void)
120{
121 return 0x00000001U;
122}
123static inline u32 flush_l2_clean_comptags_r(void)
124{
125 return 0x0007000cU;
126}
127static inline u32 flush_l2_clean_comptags_pending_v(u32 r)
128{
129 return (r >> 0U) & 0x1U;
130}
131static inline u32 flush_l2_clean_comptags_pending_empty_v(void)
132{
133 return 0x00000000U;
134}
135static inline u32 flush_l2_clean_comptags_pending_empty_f(void)
136{
137 return 0x0U;
138}
139static inline u32 flush_l2_clean_comptags_pending_busy_v(void)
140{
141 return 0x00000001U;
142}
143static inline u32 flush_l2_clean_comptags_pending_busy_f(void)
144{
145 return 0x1U;
146}
147static inline u32 flush_l2_clean_comptags_outstanding_v(u32 r)
148{
149 return (r >> 1U) & 0x1U;
150}
151static inline u32 flush_l2_clean_comptags_outstanding_false_v(void)
152{
153 return 0x00000000U;
154}
155static inline u32 flush_l2_clean_comptags_outstanding_false_f(void)
156{
157 return 0x0U;
158}
159static inline u32 flush_l2_clean_comptags_outstanding_true_v(void)
160{
161 return 0x00000001U;
162}
163static inline u32 flush_fb_flush_r(void)
164{
165 return 0x00070000U;
166}
167static inline u32 flush_fb_flush_pending_v(u32 r)
168{
169 return (r >> 0U) & 0x1U;
170}
171static inline u32 flush_fb_flush_pending_busy_v(void)
172{
173 return 0x00000001U;
174}
175static inline u32 flush_fb_flush_pending_busy_f(void)
176{
177 return 0x1U;
178}
179static inline u32 flush_fb_flush_outstanding_v(u32 r)
180{
181 return (r >> 1U) & 0x1U;
182}
183static inline u32 flush_fb_flush_outstanding_true_v(void)
184{
185 return 0x00000001U;
186}
187#endif
diff --git a/include/nvgpu/hw/gm20b/hw_fuse_gm20b.h b/include/nvgpu/hw/gm20b/hw_fuse_gm20b.h
new file mode 100644
index 0000000..d97eb7d
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_fuse_gm20b.h
@@ -0,0 +1,147 @@
1/*
2 * Copyright (c) 2014-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_fuse_gm20b_h_
57#define _hw_fuse_gm20b_h_
58
59static inline u32 fuse_status_opt_gpc_r(void)
60{
61 return 0x00021c1cU;
62}
63static inline u32 fuse_status_opt_tpc_gpc_r(u32 i)
64{
65 return 0x00021c38U + i*4U;
66}
67static inline u32 fuse_ctrl_opt_tpc_gpc_r(u32 i)
68{
69 return 0x00021838U + i*4U;
70}
71static inline u32 fuse_ctrl_opt_ram_svop_pdp_r(void)
72{
73 return 0x00021944U;
74}
75static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_f(u32 v)
76{
77 return (v & 0x3U) << 0U;
78}
79static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_m(void)
80{
81 return 0x3U << 0U;
82}
83static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_v(u32 r)
84{
85 return (r >> 0U) & 0x3U;
86}
87static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_r(void)
88{
89 return 0x00021948U;
90}
91static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_f(u32 v)
92{
93 return (v & 0x1U) << 0U;
94}
95static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_m(void)
96{
97 return 0x1U << 0U;
98}
99static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_yes_f(void)
104{
105 return 0x1U;
106}
107static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_no_f(void)
108{
109 return 0x0U;
110}
111static inline u32 fuse_status_opt_fbio_r(void)
112{
113 return 0x00021c14U;
114}
115static inline u32 fuse_status_opt_fbio_data_f(u32 v)
116{
117 return (v & 0xffffU) << 0U;
118}
119static inline u32 fuse_status_opt_fbio_data_m(void)
120{
121 return 0xffffU << 0U;
122}
123static inline u32 fuse_status_opt_fbio_data_v(u32 r)
124{
125 return (r >> 0U) & 0xffffU;
126}
127static inline u32 fuse_status_opt_rop_l2_fbp_r(u32 i)
128{
129 return 0x00021d70U + i*4U;
130}
131static inline u32 fuse_status_opt_fbp_r(void)
132{
133 return 0x00021d38U;
134}
135static inline u32 fuse_status_opt_fbp_idx_v(u32 r, u32 i)
136{
137 return (r >> (0U + i*1U)) & 0x1U;
138}
139static inline u32 fuse_opt_sec_debug_en_r(void)
140{
141 return 0x00021218U;
142}
143static inline u32 fuse_opt_priv_sec_en_r(void)
144{
145 return 0x00021434U;
146}
147#endif
diff --git a/include/nvgpu/hw/gm20b/hw_gmmu_gm20b.h b/include/nvgpu/hw/gm20b/hw_gmmu_gm20b.h
new file mode 100644
index 0000000..11cc3d7
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_gmmu_gm20b.h
@@ -0,0 +1,283 @@
1/*
2 * Copyright (c) 2014-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_gmmu_gm20b_h_
57#define _hw_gmmu_gm20b_h_
58
59static inline u32 gmmu_pde_aperture_big_w(void)
60{
61 return 0U;
62}
63static inline u32 gmmu_pde_aperture_big_invalid_f(void)
64{
65 return 0x0U;
66}
67static inline u32 gmmu_pde_aperture_big_video_memory_f(void)
68{
69 return 0x1U;
70}
71static inline u32 gmmu_pde_aperture_big_sys_mem_coh_f(void)
72{
73 return 0x2U;
74}
75static inline u32 gmmu_pde_aperture_big_sys_mem_ncoh_f(void)
76{
77 return 0x3U;
78}
79static inline u32 gmmu_pde_size_w(void)
80{
81 return 0U;
82}
83static inline u32 gmmu_pde_size_full_f(void)
84{
85 return 0x0U;
86}
87static inline u32 gmmu_pde_address_big_sys_f(u32 v)
88{
89 return (v & 0xfffffffU) << 4U;
90}
91static inline u32 gmmu_pde_address_big_sys_w(void)
92{
93 return 0U;
94}
95static inline u32 gmmu_pde_aperture_small_w(void)
96{
97 return 1U;
98}
99static inline u32 gmmu_pde_aperture_small_invalid_f(void)
100{
101 return 0x0U;
102}
103static inline u32 gmmu_pde_aperture_small_video_memory_f(void)
104{
105 return 0x1U;
106}
107static inline u32 gmmu_pde_aperture_small_sys_mem_coh_f(void)
108{
109 return 0x2U;
110}
111static inline u32 gmmu_pde_aperture_small_sys_mem_ncoh_f(void)
112{
113 return 0x3U;
114}
115static inline u32 gmmu_pde_vol_small_w(void)
116{
117 return 1U;
118}
119static inline u32 gmmu_pde_vol_small_true_f(void)
120{
121 return 0x4U;
122}
123static inline u32 gmmu_pde_vol_small_false_f(void)
124{
125 return 0x0U;
126}
127static inline u32 gmmu_pde_vol_big_w(void)
128{
129 return 1U;
130}
131static inline u32 gmmu_pde_vol_big_true_f(void)
132{
133 return 0x8U;
134}
135static inline u32 gmmu_pde_vol_big_false_f(void)
136{
137 return 0x0U;
138}
139static inline u32 gmmu_pde_address_small_sys_f(u32 v)
140{
141 return (v & 0xfffffffU) << 4U;
142}
143static inline u32 gmmu_pde_address_small_sys_w(void)
144{
145 return 1U;
146}
147static inline u32 gmmu_pde_address_shift_v(void)
148{
149 return 0x0000000cU;
150}
151static inline u32 gmmu_pde__size_v(void)
152{
153 return 0x00000008U;
154}
155static inline u32 gmmu_pte__size_v(void)
156{
157 return 0x00000008U;
158}
159static inline u32 gmmu_pte_valid_w(void)
160{
161 return 0U;
162}
163static inline u32 gmmu_pte_valid_true_f(void)
164{
165 return 0x1U;
166}
167static inline u32 gmmu_pte_valid_false_f(void)
168{
169 return 0x0U;
170}
171static inline u32 gmmu_pte_privilege_w(void)
172{
173 return 0U;
174}
175static inline u32 gmmu_pte_privilege_true_f(void)
176{
177 return 0x2U;
178}
179static inline u32 gmmu_pte_privilege_false_f(void)
180{
181 return 0x0U;
182}
183static inline u32 gmmu_pte_address_sys_f(u32 v)
184{
185 return (v & 0xfffffffU) << 4U;
186}
187static inline u32 gmmu_pte_address_sys_w(void)
188{
189 return 0U;
190}
191static inline u32 gmmu_pte_address_vid_f(u32 v)
192{
193 return (v & 0x1ffffffU) << 4U;
194}
195static inline u32 gmmu_pte_address_vid_w(void)
196{
197 return 0U;
198}
199static inline u32 gmmu_pte_vol_w(void)
200{
201 return 1U;
202}
203static inline u32 gmmu_pte_vol_true_f(void)
204{
205 return 0x1U;
206}
207static inline u32 gmmu_pte_vol_false_f(void)
208{
209 return 0x0U;
210}
211static inline u32 gmmu_pte_aperture_w(void)
212{
213 return 1U;
214}
215static inline u32 gmmu_pte_aperture_video_memory_f(void)
216{
217 return 0x0U;
218}
219static inline u32 gmmu_pte_aperture_sys_mem_coh_f(void)
220{
221 return 0x4U;
222}
223static inline u32 gmmu_pte_aperture_sys_mem_ncoh_f(void)
224{
225 return 0x6U;
226}
227static inline u32 gmmu_pte_read_only_w(void)
228{
229 return 0U;
230}
231static inline u32 gmmu_pte_read_only_true_f(void)
232{
233 return 0x4U;
234}
235static inline u32 gmmu_pte_write_disable_w(void)
236{
237 return 1U;
238}
239static inline u32 gmmu_pte_write_disable_true_f(void)
240{
241 return 0x80000000U;
242}
243static inline u32 gmmu_pte_read_disable_w(void)
244{
245 return 1U;
246}
247static inline u32 gmmu_pte_read_disable_true_f(void)
248{
249 return 0x40000000U;
250}
251static inline u32 gmmu_pte_comptagline_s(void)
252{
253 return 17U;
254}
255static inline u32 gmmu_pte_comptagline_f(u32 v)
256{
257 return (v & 0x1ffffU) << 12U;
258}
259static inline u32 gmmu_pte_comptagline_w(void)
260{
261 return 1U;
262}
263static inline u32 gmmu_pte_address_shift_v(void)
264{
265 return 0x0000000cU;
266}
267static inline u32 gmmu_pte_kind_f(u32 v)
268{
269 return (v & 0xffU) << 4U;
270}
271static inline u32 gmmu_pte_kind_w(void)
272{
273 return 1U;
274}
275static inline u32 gmmu_pte_kind_invalid_v(void)
276{
277 return 0x000000ffU;
278}
279static inline u32 gmmu_pte_kind_pitch_v(void)
280{
281 return 0x00000000U;
282}
283#endif
diff --git a/include/nvgpu/hw/gm20b/hw_gr_gm20b.h b/include/nvgpu/hw/gm20b/hw_gr_gm20b.h
new file mode 100644
index 0000000..5bbb3b9
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_gr_gm20b.h
@@ -0,0 +1,3927 @@
1/*
2 * Copyright (c) 2014-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_gr_gm20b_h_
57#define _hw_gr_gm20b_h_
58
59static inline u32 gr_intr_r(void)
60{
61 return 0x00400100U;
62}
63static inline u32 gr_intr_notify_pending_f(void)
64{
65 return 0x1U;
66}
67static inline u32 gr_intr_notify_reset_f(void)
68{
69 return 0x1U;
70}
71static inline u32 gr_intr_semaphore_pending_f(void)
72{
73 return 0x2U;
74}
75static inline u32 gr_intr_semaphore_reset_f(void)
76{
77 return 0x2U;
78}
79static inline u32 gr_intr_illegal_method_pending_f(void)
80{
81 return 0x10U;
82}
83static inline u32 gr_intr_illegal_method_reset_f(void)
84{
85 return 0x10U;
86}
87static inline u32 gr_intr_illegal_notify_pending_f(void)
88{
89 return 0x40U;
90}
91static inline u32 gr_intr_illegal_notify_reset_f(void)
92{
93 return 0x40U;
94}
95static inline u32 gr_intr_firmware_method_f(u32 v)
96{
97 return (v & 0x1U) << 8U;
98}
99static inline u32 gr_intr_firmware_method_pending_f(void)
100{
101 return 0x100U;
102}
103static inline u32 gr_intr_firmware_method_reset_f(void)
104{
105 return 0x100U;
106}
107static inline u32 gr_intr_illegal_class_pending_f(void)
108{
109 return 0x20U;
110}
111static inline u32 gr_intr_illegal_class_reset_f(void)
112{
113 return 0x20U;
114}
115static inline u32 gr_intr_fecs_error_pending_f(void)
116{
117 return 0x80000U;
118}
119static inline u32 gr_intr_fecs_error_reset_f(void)
120{
121 return 0x80000U;
122}
123static inline u32 gr_intr_class_error_pending_f(void)
124{
125 return 0x100000U;
126}
127static inline u32 gr_intr_class_error_reset_f(void)
128{
129 return 0x100000U;
130}
131static inline u32 gr_intr_exception_pending_f(void)
132{
133 return 0x200000U;
134}
135static inline u32 gr_intr_exception_reset_f(void)
136{
137 return 0x200000U;
138}
139static inline u32 gr_fecs_intr_r(void)
140{
141 return 0x00400144U;
142}
143static inline u32 gr_class_error_r(void)
144{
145 return 0x00400110U;
146}
147static inline u32 gr_class_error_code_v(u32 r)
148{
149 return (r >> 0U) & 0xffffU;
150}
151static inline u32 gr_intr_nonstall_r(void)
152{
153 return 0x00400120U;
154}
155static inline u32 gr_intr_nonstall_trap_pending_f(void)
156{
157 return 0x2U;
158}
159static inline u32 gr_intr_en_r(void)
160{
161 return 0x0040013cU;
162}
163static inline u32 gr_exception_r(void)
164{
165 return 0x00400108U;
166}
167static inline u32 gr_exception_fe_m(void)
168{
169 return 0x1U << 0U;
170}
171static inline u32 gr_exception_gpc_m(void)
172{
173 return 0x1U << 24U;
174}
175static inline u32 gr_exception_memfmt_m(void)
176{
177 return 0x1U << 1U;
178}
179static inline u32 gr_exception_ds_m(void)
180{
181 return 0x1U << 4U;
182}
183static inline u32 gr_exception_sked_m(void)
184{
185 return 0x1U << 8U;
186}
187static inline u32 gr_exception_pd_m(void)
188{
189 return 0x1U << 2U;
190}
191static inline u32 gr_exception_scc_m(void)
192{
193 return 0x1U << 3U;
194}
195static inline u32 gr_exception_ssync_m(void)
196{
197 return 0x1U << 5U;
198}
199static inline u32 gr_exception_mme_m(void)
200{
201 return 0x1U << 7U;
202}
203static inline u32 gr_exception1_r(void)
204{
205 return 0x00400118U;
206}
207static inline u32 gr_exception1_gpc_0_pending_f(void)
208{
209 return 0x1U;
210}
211static inline u32 gr_exception2_r(void)
212{
213 return 0x0040011cU;
214}
215static inline u32 gr_exception_en_r(void)
216{
217 return 0x00400138U;
218}
219static inline u32 gr_exception_en_fe_m(void)
220{
221 return 0x1U << 0U;
222}
223static inline u32 gr_exception1_en_r(void)
224{
225 return 0x00400130U;
226}
227static inline u32 gr_exception2_en_r(void)
228{
229 return 0x00400134U;
230}
231static inline u32 gr_gpfifo_ctl_r(void)
232{
233 return 0x00400500U;
234}
235static inline u32 gr_gpfifo_ctl_access_f(u32 v)
236{
237 return (v & 0x1U) << 0U;
238}
239static inline u32 gr_gpfifo_ctl_access_disabled_f(void)
240{
241 return 0x0U;
242}
243static inline u32 gr_gpfifo_ctl_access_enabled_f(void)
244{
245 return 0x1U;
246}
247static inline u32 gr_gpfifo_ctl_semaphore_access_f(u32 v)
248{
249 return (v & 0x1U) << 16U;
250}
251static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_v(void)
252{
253 return 0x00000001U;
254}
255static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_f(void)
256{
257 return 0x10000U;
258}
259static inline u32 gr_gpfifo_status_r(void)
260{
261 return 0x00400504U;
262}
263static inline u32 gr_trapped_addr_r(void)
264{
265 return 0x00400704U;
266}
267static inline u32 gr_trapped_addr_mthd_v(u32 r)
268{
269 return (r >> 2U) & 0xfffU;
270}
271static inline u32 gr_trapped_addr_subch_v(u32 r)
272{
273 return (r >> 16U) & 0x7U;
274}
275static inline u32 gr_trapped_addr_mme_generated_v(u32 r)
276{
277 return (r >> 20U) & 0x1U;
278}
279static inline u32 gr_trapped_addr_datahigh_v(u32 r)
280{
281 return (r >> 24U) & 0x1U;
282}
283static inline u32 gr_trapped_addr_priv_v(u32 r)
284{
285 return (r >> 28U) & 0x1U;
286}
287static inline u32 gr_trapped_addr_status_v(u32 r)
288{
289 return (r >> 31U) & 0x1U;
290}
291static inline u32 gr_trapped_data_lo_r(void)
292{
293 return 0x00400708U;
294}
295static inline u32 gr_trapped_data_hi_r(void)
296{
297 return 0x0040070cU;
298}
299static inline u32 gr_trapped_data_mme_r(void)
300{
301 return 0x00400710U;
302}
303static inline u32 gr_trapped_data_mme_pc_v(u32 r)
304{
305 return (r >> 0U) & 0x7ffU;
306}
307static inline u32 gr_status_r(void)
308{
309 return 0x00400700U;
310}
311static inline u32 gr_status_fe_method_upper_v(u32 r)
312{
313 return (r >> 1U) & 0x1U;
314}
315static inline u32 gr_status_fe_method_lower_v(u32 r)
316{
317 return (r >> 2U) & 0x1U;
318}
319static inline u32 gr_status_fe_method_lower_idle_v(void)
320{
321 return 0x00000000U;
322}
323static inline u32 gr_status_fe_gi_v(u32 r)
324{
325 return (r >> 21U) & 0x1U;
326}
327static inline u32 gr_status_mask_r(void)
328{
329 return 0x00400610U;
330}
331static inline u32 gr_status_1_r(void)
332{
333 return 0x00400604U;
334}
335static inline u32 gr_status_2_r(void)
336{
337 return 0x00400608U;
338}
339static inline u32 gr_engine_status_r(void)
340{
341 return 0x0040060cU;
342}
343static inline u32 gr_engine_status_value_busy_f(void)
344{
345 return 0x1U;
346}
347static inline u32 gr_pri_be0_becs_be_exception_r(void)
348{
349 return 0x00410204U;
350}
351static inline u32 gr_pri_be0_becs_be_exception_en_r(void)
352{
353 return 0x00410208U;
354}
355static inline u32 gr_pri_gpc0_gpccs_gpc_exception_r(void)
356{
357 return 0x00502c90U;
358}
359static inline u32 gr_pri_gpc0_gpccs_gpc_exception_en_r(void)
360{
361 return 0x00502c94U;
362}
363static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_r(void)
364{
365 return 0x00504508U;
366}
367static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
368{
369 return 0x0050450cU;
370}
371static inline u32 gr_activity_0_r(void)
372{
373 return 0x00400380U;
374}
375static inline u32 gr_activity_1_r(void)
376{
377 return 0x00400384U;
378}
379static inline u32 gr_activity_2_r(void)
380{
381 return 0x00400388U;
382}
383static inline u32 gr_activity_4_r(void)
384{
385 return 0x00400390U;
386}
387static inline u32 gr_pri_gpc0_gcc_dbg_r(void)
388{
389 return 0x00501000U;
390}
391static inline u32 gr_pri_gpcs_gcc_dbg_r(void)
392{
393 return 0x00419000U;
394}
395static inline u32 gr_pri_gpcs_gcc_dbg_invalidate_m(void)
396{
397 return 0x1U << 1U;
398}
399static inline u32 gr_pri_gpc0_tpc0_sm_cache_control_r(void)
400{
401 return 0x005046a4U;
402}
403static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_r(void)
404{
405 return 0x00419ea4U;
406}
407static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_invalidate_cache_m(void)
408{
409 return 0x1U << 0U;
410}
411static inline u32 gr_pri_sked_activity_r(void)
412{
413 return 0x00407054U;
414}
415static inline u32 gr_pri_gpc0_gpccs_gpc_activity0_r(void)
416{
417 return 0x00502c80U;
418}
419static inline u32 gr_pri_gpc0_gpccs_gpc_activity1_r(void)
420{
421 return 0x00502c84U;
422}
423static inline u32 gr_pri_gpc0_gpccs_gpc_activity2_r(void)
424{
425 return 0x00502c88U;
426}
427static inline u32 gr_pri_gpc0_gpccs_gpc_activity3_r(void)
428{
429 return 0x00502c8cU;
430}
431static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_activity_0_r(void)
432{
433 return 0x00504500U;
434}
435static inline u32 gr_pri_gpc0_tpc1_tpccs_tpc_activity_0_r(void)
436{
437 return 0x00504d00U;
438}
439static inline u32 gr_pri_gpc0_tpcs_tpccs_tpc_activity_0_r(void)
440{
441 return 0x00501d00U;
442}
443static inline u32 gr_pri_gpcs_gpccs_gpc_activity_0_r(void)
444{
445 return 0x0041ac80U;
446}
447static inline u32 gr_pri_gpcs_gpccs_gpc_activity_1_r(void)
448{
449 return 0x0041ac84U;
450}
451static inline u32 gr_pri_gpcs_gpccs_gpc_activity_2_r(void)
452{
453 return 0x0041ac88U;
454}
455static inline u32 gr_pri_gpcs_gpccs_gpc_activity_3_r(void)
456{
457 return 0x0041ac8cU;
458}
459static inline u32 gr_pri_gpcs_tpc0_tpccs_tpc_activity_0_r(void)
460{
461 return 0x0041c500U;
462}
463static inline u32 gr_pri_gpcs_tpc1_tpccs_tpc_activity_0_r(void)
464{
465 return 0x0041cd00U;
466}
467static inline u32 gr_pri_gpcs_tpcs_tpccs_tpc_activity_0_r(void)
468{
469 return 0x00419d00U;
470}
471static inline u32 gr_pri_be0_becs_be_activity0_r(void)
472{
473 return 0x00410200U;
474}
475static inline u32 gr_pri_be1_becs_be_activity0_r(void)
476{
477 return 0x00410600U;
478}
479static inline u32 gr_pri_bes_becs_be_activity0_r(void)
480{
481 return 0x00408a00U;
482}
483static inline u32 gr_pri_ds_mpipe_status_r(void)
484{
485 return 0x00405858U;
486}
487static inline u32 gr_pri_fe_go_idle_on_status_r(void)
488{
489 return 0x00404150U;
490}
491static inline u32 gr_pri_fe_go_idle_check_r(void)
492{
493 return 0x00404158U;
494}
495static inline u32 gr_pri_fe_go_idle_info_r(void)
496{
497 return 0x00404194U;
498}
499static inline u32 gr_pri_gpc0_tpc0_tex_m_tex_subunits_status_r(void)
500{
501 return 0x00504238U;
502}
503static inline u32 gr_pri_be0_crop_status1_r(void)
504{
505 return 0x00410134U;
506}
507static inline u32 gr_pri_bes_crop_status1_r(void)
508{
509 return 0x00408934U;
510}
511static inline u32 gr_pri_be0_zrop_status_r(void)
512{
513 return 0x00410048U;
514}
515static inline u32 gr_pri_be0_zrop_status2_r(void)
516{
517 return 0x0041004cU;
518}
519static inline u32 gr_pri_bes_zrop_status_r(void)
520{
521 return 0x00408848U;
522}
523static inline u32 gr_pri_bes_zrop_status2_r(void)
524{
525 return 0x0040884cU;
526}
527static inline u32 gr_pipe_bundle_address_r(void)
528{
529 return 0x00400200U;
530}
531static inline u32 gr_pipe_bundle_address_value_v(u32 r)
532{
533 return (r >> 0U) & 0xffffU;
534}
535static inline u32 gr_pipe_bundle_data_r(void)
536{
537 return 0x00400204U;
538}
539static inline u32 gr_pipe_bundle_config_r(void)
540{
541 return 0x00400208U;
542}
543static inline u32 gr_pipe_bundle_config_override_pipe_mode_disabled_f(void)
544{
545 return 0x0U;
546}
547static inline u32 gr_pipe_bundle_config_override_pipe_mode_enabled_f(void)
548{
549 return 0x80000000U;
550}
551static inline u32 gr_fe_hww_esr_r(void)
552{
553 return 0x00404000U;
554}
555static inline u32 gr_fe_hww_esr_reset_active_f(void)
556{
557 return 0x40000000U;
558}
559static inline u32 gr_fe_hww_esr_en_enable_f(void)
560{
561 return 0x80000000U;
562}
563static inline u32 gr_fe_hww_esr_info_r(void)
564{
565 return 0x004041b0U;
566}
567static inline u32 gr_fe_go_idle_timeout_r(void)
568{
569 return 0x00404154U;
570}
571static inline u32 gr_fe_go_idle_timeout_count_f(u32 v)
572{
573 return (v & 0xffffffffU) << 0U;
574}
575static inline u32 gr_fe_go_idle_timeout_count_disabled_f(void)
576{
577 return 0x0U;
578}
579static inline u32 gr_fe_go_idle_timeout_count_prod_f(void)
580{
581 return 0x800U;
582}
583static inline u32 gr_fe_object_table_r(u32 i)
584{
585 return 0x00404200U + i*4U;
586}
587static inline u32 gr_fe_object_table_nvclass_v(u32 r)
588{
589 return (r >> 0U) & 0xffffU;
590}
591static inline u32 gr_fe_tpc_fs_r(void)
592{
593 return 0x004041c4U;
594}
595static inline u32 gr_pri_mme_shadow_raw_index_r(void)
596{
597 return 0x00404488U;
598}
599static inline u32 gr_pri_mme_shadow_raw_index_write_trigger_f(void)
600{
601 return 0x80000000U;
602}
603static inline u32 gr_pri_mme_shadow_raw_data_r(void)
604{
605 return 0x0040448cU;
606}
607static inline u32 gr_mme_hww_esr_r(void)
608{
609 return 0x00404490U;
610}
611static inline u32 gr_mme_hww_esr_reset_active_f(void)
612{
613 return 0x40000000U;
614}
615static inline u32 gr_mme_hww_esr_en_enable_f(void)
616{
617 return 0x80000000U;
618}
619static inline u32 gr_mme_hww_esr_info_r(void)
620{
621 return 0x00404494U;
622}
623static inline u32 gr_memfmt_hww_esr_r(void)
624{
625 return 0x00404600U;
626}
627static inline u32 gr_memfmt_hww_esr_reset_active_f(void)
628{
629 return 0x40000000U;
630}
631static inline u32 gr_memfmt_hww_esr_en_enable_f(void)
632{
633 return 0x80000000U;
634}
635static inline u32 gr_fecs_cpuctl_r(void)
636{
637 return 0x00409100U;
638}
639static inline u32 gr_fecs_cpuctl_startcpu_f(u32 v)
640{
641 return (v & 0x1U) << 1U;
642}
643static inline u32 gr_fecs_cpuctl_alias_r(void)
644{
645 return 0x00409130U;
646}
647static inline u32 gr_fecs_cpuctl_alias_startcpu_f(u32 v)
648{
649 return (v & 0x1U) << 1U;
650}
651static inline u32 gr_fecs_dmactl_r(void)
652{
653 return 0x0040910cU;
654}
655static inline u32 gr_fecs_dmactl_require_ctx_f(u32 v)
656{
657 return (v & 0x1U) << 0U;
658}
659static inline u32 gr_fecs_dmactl_dmem_scrubbing_m(void)
660{
661 return 0x1U << 1U;
662}
663static inline u32 gr_fecs_dmactl_imem_scrubbing_m(void)
664{
665 return 0x1U << 2U;
666}
667static inline u32 gr_fecs_os_r(void)
668{
669 return 0x00409080U;
670}
671static inline u32 gr_fecs_idlestate_r(void)
672{
673 return 0x0040904cU;
674}
675static inline u32 gr_fecs_mailbox0_r(void)
676{
677 return 0x00409040U;
678}
679static inline u32 gr_fecs_mailbox1_r(void)
680{
681 return 0x00409044U;
682}
683static inline u32 gr_fecs_irqstat_r(void)
684{
685 return 0x00409008U;
686}
687static inline u32 gr_fecs_irqmode_r(void)
688{
689 return 0x0040900cU;
690}
691static inline u32 gr_fecs_irqmask_r(void)
692{
693 return 0x00409018U;
694}
695static inline u32 gr_fecs_irqdest_r(void)
696{
697 return 0x0040901cU;
698}
699static inline u32 gr_fecs_curctx_r(void)
700{
701 return 0x00409050U;
702}
703static inline u32 gr_fecs_nxtctx_r(void)
704{
705 return 0x00409054U;
706}
707static inline u32 gr_fecs_engctl_r(void)
708{
709 return 0x004090a4U;
710}
711static inline u32 gr_fecs_debug1_r(void)
712{
713 return 0x00409090U;
714}
715static inline u32 gr_fecs_debuginfo_r(void)
716{
717 return 0x00409094U;
718}
719static inline u32 gr_fecs_icd_cmd_r(void)
720{
721 return 0x00409200U;
722}
723static inline u32 gr_fecs_icd_cmd_opc_s(void)
724{
725 return 4U;
726}
727static inline u32 gr_fecs_icd_cmd_opc_f(u32 v)
728{
729 return (v & 0xfU) << 0U;
730}
731static inline u32 gr_fecs_icd_cmd_opc_m(void)
732{
733 return 0xfU << 0U;
734}
735static inline u32 gr_fecs_icd_cmd_opc_v(u32 r)
736{
737 return (r >> 0U) & 0xfU;
738}
739static inline u32 gr_fecs_icd_cmd_opc_rreg_f(void)
740{
741 return 0x8U;
742}
743static inline u32 gr_fecs_icd_cmd_opc_rstat_f(void)
744{
745 return 0xeU;
746}
747static inline u32 gr_fecs_icd_cmd_idx_f(u32 v)
748{
749 return (v & 0x1fU) << 8U;
750}
751static inline u32 gr_fecs_icd_rdata_r(void)
752{
753 return 0x0040920cU;
754}
755static inline u32 gr_fecs_imemc_r(u32 i)
756{
757 return 0x00409180U + i*16U;
758}
759static inline u32 gr_fecs_imemc_offs_f(u32 v)
760{
761 return (v & 0x3fU) << 2U;
762}
763static inline u32 gr_fecs_imemc_blk_f(u32 v)
764{
765 return (v & 0xffU) << 8U;
766}
767static inline u32 gr_fecs_imemc_aincw_f(u32 v)
768{
769 return (v & 0x1U) << 24U;
770}
771static inline u32 gr_fecs_imemd_r(u32 i)
772{
773 return 0x00409184U + i*16U;
774}
775static inline u32 gr_fecs_imemt_r(u32 i)
776{
777 return 0x00409188U + i*16U;
778}
779static inline u32 gr_fecs_imemt_tag_f(u32 v)
780{
781 return (v & 0xffffU) << 0U;
782}
783static inline u32 gr_fecs_dmemc_r(u32 i)
784{
785 return 0x004091c0U + i*8U;
786}
787static inline u32 gr_fecs_dmemc_offs_s(void)
788{
789 return 6U;
790}
791static inline u32 gr_fecs_dmemc_offs_f(u32 v)
792{
793 return (v & 0x3fU) << 2U;
794}
795static inline u32 gr_fecs_dmemc_offs_m(void)
796{
797 return 0x3fU << 2U;
798}
799static inline u32 gr_fecs_dmemc_offs_v(u32 r)
800{
801 return (r >> 2U) & 0x3fU;
802}
803static inline u32 gr_fecs_dmemc_blk_f(u32 v)
804{
805 return (v & 0xffU) << 8U;
806}
807static inline u32 gr_fecs_dmemc_aincw_f(u32 v)
808{
809 return (v & 0x1U) << 24U;
810}
811static inline u32 gr_fecs_dmemd_r(u32 i)
812{
813 return 0x004091c4U + i*8U;
814}
815static inline u32 gr_fecs_dmatrfbase_r(void)
816{
817 return 0x00409110U;
818}
819static inline u32 gr_fecs_dmatrfmoffs_r(void)
820{
821 return 0x00409114U;
822}
823static inline u32 gr_fecs_dmatrffboffs_r(void)
824{
825 return 0x0040911cU;
826}
827static inline u32 gr_fecs_dmatrfcmd_r(void)
828{
829 return 0x00409118U;
830}
831static inline u32 gr_fecs_dmatrfcmd_imem_f(u32 v)
832{
833 return (v & 0x1U) << 4U;
834}
835static inline u32 gr_fecs_dmatrfcmd_write_f(u32 v)
836{
837 return (v & 0x1U) << 5U;
838}
839static inline u32 gr_fecs_dmatrfcmd_size_f(u32 v)
840{
841 return (v & 0x7U) << 8U;
842}
843static inline u32 gr_fecs_dmatrfcmd_ctxdma_f(u32 v)
844{
845 return (v & 0x7U) << 12U;
846}
847static inline u32 gr_fecs_bootvec_r(void)
848{
849 return 0x00409104U;
850}
851static inline u32 gr_fecs_bootvec_vec_f(u32 v)
852{
853 return (v & 0xffffffffU) << 0U;
854}
855static inline u32 gr_fecs_falcon_hwcfg_r(void)
856{
857 return 0x00409108U;
858}
859static inline u32 gr_gpcs_gpccs_falcon_hwcfg_r(void)
860{
861 return 0x0041a108U;
862}
863static inline u32 gr_fecs_falcon_rm_r(void)
864{
865 return 0x00409084U;
866}
867static inline u32 gr_fecs_current_ctx_r(void)
868{
869 return 0x00409b00U;
870}
871static inline u32 gr_fecs_current_ctx_ptr_f(u32 v)
872{
873 return (v & 0xfffffffU) << 0U;
874}
875static inline u32 gr_fecs_current_ctx_ptr_v(u32 r)
876{
877 return (r >> 0U) & 0xfffffffU;
878}
879static inline u32 gr_fecs_current_ctx_target_s(void)
880{
881 return 2U;
882}
883static inline u32 gr_fecs_current_ctx_target_f(u32 v)
884{
885 return (v & 0x3U) << 28U;
886}
887static inline u32 gr_fecs_current_ctx_target_m(void)
888{
889 return 0x3U << 28U;
890}
891static inline u32 gr_fecs_current_ctx_target_v(u32 r)
892{
893 return (r >> 28U) & 0x3U;
894}
895static inline u32 gr_fecs_current_ctx_target_vid_mem_f(void)
896{
897 return 0x0U;
898}
899static inline u32 gr_fecs_current_ctx_target_sys_mem_coh_f(void)
900{
901 return 0x20000000U;
902}
903static inline u32 gr_fecs_current_ctx_target_sys_mem_ncoh_f(void)
904{
905 return 0x30000000U;
906}
907static inline u32 gr_fecs_current_ctx_valid_s(void)
908{
909 return 1U;
910}
911static inline u32 gr_fecs_current_ctx_valid_f(u32 v)
912{
913 return (v & 0x1U) << 31U;
914}
915static inline u32 gr_fecs_current_ctx_valid_m(void)
916{
917 return 0x1U << 31U;
918}
919static inline u32 gr_fecs_current_ctx_valid_v(u32 r)
920{
921 return (r >> 31U) & 0x1U;
922}
923static inline u32 gr_fecs_current_ctx_valid_false_f(void)
924{
925 return 0x0U;
926}
927static inline u32 gr_fecs_method_data_r(void)
928{
929 return 0x00409500U;
930}
931static inline u32 gr_fecs_method_push_r(void)
932{
933 return 0x00409504U;
934}
935static inline u32 gr_fecs_method_push_adr_f(u32 v)
936{
937 return (v & 0xfffU) << 0U;
938}
939static inline u32 gr_fecs_method_push_adr_bind_pointer_v(void)
940{
941 return 0x00000003U;
942}
943static inline u32 gr_fecs_method_push_adr_bind_pointer_f(void)
944{
945 return 0x3U;
946}
947static inline u32 gr_fecs_method_push_adr_discover_image_size_v(void)
948{
949 return 0x00000010U;
950}
951static inline u32 gr_fecs_method_push_adr_wfi_golden_save_v(void)
952{
953 return 0x00000009U;
954}
955static inline u32 gr_fecs_method_push_adr_restore_golden_v(void)
956{
957 return 0x00000015U;
958}
959static inline u32 gr_fecs_method_push_adr_discover_zcull_image_size_v(void)
960{
961 return 0x00000016U;
962}
963static inline u32 gr_fecs_method_push_adr_discover_pm_image_size_v(void)
964{
965 return 0x00000025U;
966}
967static inline u32 gr_fecs_method_push_adr_discover_reglist_image_size_v(void)
968{
969 return 0x00000030U;
970}
971static inline u32 gr_fecs_method_push_adr_set_reglist_bind_instance_v(void)
972{
973 return 0x00000031U;
974}
975static inline u32 gr_fecs_method_push_adr_set_reglist_virtual_address_v(void)
976{
977 return 0x00000032U;
978}
979static inline u32 gr_fecs_method_push_adr_stop_ctxsw_v(void)
980{
981 return 0x00000038U;
982}
983static inline u32 gr_fecs_method_push_adr_start_ctxsw_v(void)
984{
985 return 0x00000039U;
986}
987static inline u32 gr_fecs_method_push_adr_set_watchdog_timeout_f(void)
988{
989 return 0x21U;
990}
991static inline u32 gr_fecs_method_push_adr_write_timestamp_record_v(void)
992{
993 return 0x0000003dU;
994}
995static inline u32 gr_fecs_method_push_adr_halt_pipeline_v(void)
996{
997 return 0x00000004U;
998}
999static inline u32 gr_fecs_host_int_status_r(void)
1000{
1001 return 0x00409c18U;
1002}
1003static inline u32 gr_fecs_host_int_status_fault_during_ctxsw_f(u32 v)
1004{
1005 return (v & 0x1U) << 16U;
1006}
1007static inline u32 gr_fecs_host_int_status_umimp_firmware_method_f(u32 v)
1008{
1009 return (v & 0x1U) << 17U;
1010}
1011static inline u32 gr_fecs_host_int_status_umimp_illegal_method_f(u32 v)
1012{
1013 return (v & 0x1U) << 18U;
1014}
1015static inline u32 gr_fecs_host_int_status_watchdog_active_f(void)
1016{
1017 return 0x80000U;
1018}
1019static inline u32 gr_fecs_host_int_status_ctxsw_intr_f(u32 v)
1020{
1021 return (v & 0xffffU) << 0U;
1022}
1023static inline u32 gr_fecs_host_int_clear_r(void)
1024{
1025 return 0x00409c20U;
1026}
1027static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_f(u32 v)
1028{
1029 return (v & 0x1U) << 1U;
1030}
1031static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_clear_f(void)
1032{
1033 return 0x2U;
1034}
1035static inline u32 gr_fecs_host_int_enable_r(void)
1036{
1037 return 0x00409c24U;
1038}
1039static inline u32 gr_fecs_host_int_enable_ctxsw_intr1_enable_f(void)
1040{
1041 return 0x2U;
1042}
1043static inline u32 gr_fecs_host_int_enable_fault_during_ctxsw_enable_f(void)
1044{
1045 return 0x10000U;
1046}
1047static inline u32 gr_fecs_host_int_enable_umimp_firmware_method_enable_f(void)
1048{
1049 return 0x20000U;
1050}
1051static inline u32 gr_fecs_host_int_enable_umimp_illegal_method_enable_f(void)
1052{
1053 return 0x40000U;
1054}
1055static inline u32 gr_fecs_host_int_enable_watchdog_enable_f(void)
1056{
1057 return 0x80000U;
1058}
1059static inline u32 gr_fecs_ctxsw_reset_ctl_r(void)
1060{
1061 return 0x00409614U;
1062}
1063static inline u32 gr_fecs_ctxsw_reset_ctl_sys_halt_disabled_f(void)
1064{
1065 return 0x0U;
1066}
1067static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_halt_disabled_f(void)
1068{
1069 return 0x0U;
1070}
1071static inline u32 gr_fecs_ctxsw_reset_ctl_be_halt_disabled_f(void)
1072{
1073 return 0x0U;
1074}
1075static inline u32 gr_fecs_ctxsw_reset_ctl_sys_engine_reset_disabled_f(void)
1076{
1077 return 0x10U;
1078}
1079static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_engine_reset_disabled_f(void)
1080{
1081 return 0x20U;
1082}
1083static inline u32 gr_fecs_ctxsw_reset_ctl_be_engine_reset_disabled_f(void)
1084{
1085 return 0x40U;
1086}
1087static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_enabled_f(void)
1088{
1089 return 0x0U;
1090}
1091static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_disabled_f(void)
1092{
1093 return 0x100U;
1094}
1095static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_enabled_f(void)
1096{
1097 return 0x0U;
1098}
1099static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_disabled_f(void)
1100{
1101 return 0x200U;
1102}
1103static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_s(void)
1104{
1105 return 1U;
1106}
1107static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_f(u32 v)
1108{
1109 return (v & 0x1U) << 10U;
1110}
1111static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_m(void)
1112{
1113 return 0x1U << 10U;
1114}
1115static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_v(u32 r)
1116{
1117 return (r >> 10U) & 0x1U;
1118}
1119static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_enabled_f(void)
1120{
1121 return 0x0U;
1122}
1123static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_disabled_f(void)
1124{
1125 return 0x400U;
1126}
1127static inline u32 gr_fecs_ctx_state_store_major_rev_id_r(void)
1128{
1129 return 0x0040960cU;
1130}
1131static inline u32 gr_fecs_ctxsw_mailbox_r(u32 i)
1132{
1133 return 0x00409800U + i*4U;
1134}
1135static inline u32 gr_fecs_ctxsw_mailbox__size_1_v(void)
1136{
1137 return 0x00000010U;
1138}
1139static inline u32 gr_fecs_ctxsw_mailbox_value_f(u32 v)
1140{
1141 return (v & 0xffffffffU) << 0U;
1142}
1143static inline u32 gr_fecs_ctxsw_mailbox_value_pass_v(void)
1144{
1145 return 0x00000001U;
1146}
1147static inline u32 gr_fecs_ctxsw_mailbox_value_fail_v(void)
1148{
1149 return 0x00000002U;
1150}
1151static inline u32 gr_fecs_ctxsw_mailbox_set_r(u32 i)
1152{
1153 return 0x004098c0U + i*4U;
1154}
1155static inline u32 gr_fecs_ctxsw_mailbox_set_value_f(u32 v)
1156{
1157 return (v & 0xffffffffU) << 0U;
1158}
1159static inline u32 gr_fecs_ctxsw_mailbox_clear_r(u32 i)
1160{
1161 return 0x00409840U + i*4U;
1162}
1163static inline u32 gr_fecs_ctxsw_mailbox_clear_value_f(u32 v)
1164{
1165 return (v & 0xffffffffU) << 0U;
1166}
1167static inline u32 gr_fecs_fs_r(void)
1168{
1169 return 0x00409604U;
1170}
1171static inline u32 gr_fecs_fs_num_available_gpcs_s(void)
1172{
1173 return 5U;
1174}
1175static inline u32 gr_fecs_fs_num_available_gpcs_f(u32 v)
1176{
1177 return (v & 0x1fU) << 0U;
1178}
1179static inline u32 gr_fecs_fs_num_available_gpcs_m(void)
1180{
1181 return 0x1fU << 0U;
1182}
1183static inline u32 gr_fecs_fs_num_available_gpcs_v(u32 r)
1184{
1185 return (r >> 0U) & 0x1fU;
1186}
1187static inline u32 gr_fecs_fs_num_available_fbps_s(void)
1188{
1189 return 5U;
1190}
1191static inline u32 gr_fecs_fs_num_available_fbps_f(u32 v)
1192{
1193 return (v & 0x1fU) << 16U;
1194}
1195static inline u32 gr_fecs_fs_num_available_fbps_m(void)
1196{
1197 return 0x1fU << 16U;
1198}
1199static inline u32 gr_fecs_fs_num_available_fbps_v(u32 r)
1200{
1201 return (r >> 16U) & 0x1fU;
1202}
1203static inline u32 gr_fecs_cfg_r(void)
1204{
1205 return 0x00409620U;
1206}
1207static inline u32 gr_fecs_cfg_imem_sz_v(u32 r)
1208{
1209 return (r >> 0U) & 0xffU;
1210}
1211static inline u32 gr_fecs_rc_lanes_r(void)
1212{
1213 return 0x00409880U;
1214}
1215static inline u32 gr_fecs_rc_lanes_num_chains_s(void)
1216{
1217 return 6U;
1218}
1219static inline u32 gr_fecs_rc_lanes_num_chains_f(u32 v)
1220{
1221 return (v & 0x3fU) << 0U;
1222}
1223static inline u32 gr_fecs_rc_lanes_num_chains_m(void)
1224{
1225 return 0x3fU << 0U;
1226}
1227static inline u32 gr_fecs_rc_lanes_num_chains_v(u32 r)
1228{
1229 return (r >> 0U) & 0x3fU;
1230}
1231static inline u32 gr_fecs_ctxsw_status_1_r(void)
1232{
1233 return 0x00409400U;
1234}
1235static inline u32 gr_fecs_ctxsw_status_1_arb_busy_s(void)
1236{
1237 return 1U;
1238}
1239static inline u32 gr_fecs_ctxsw_status_1_arb_busy_f(u32 v)
1240{
1241 return (v & 0x1U) << 12U;
1242}
1243static inline u32 gr_fecs_ctxsw_status_1_arb_busy_m(void)
1244{
1245 return 0x1U << 12U;
1246}
1247static inline u32 gr_fecs_ctxsw_status_1_arb_busy_v(u32 r)
1248{
1249 return (r >> 12U) & 0x1U;
1250}
1251static inline u32 gr_fecs_arb_ctx_adr_r(void)
1252{
1253 return 0x00409a24U;
1254}
1255static inline u32 gr_fecs_new_ctx_r(void)
1256{
1257 return 0x00409b04U;
1258}
1259static inline u32 gr_fecs_new_ctx_ptr_s(void)
1260{
1261 return 28U;
1262}
1263static inline u32 gr_fecs_new_ctx_ptr_f(u32 v)
1264{
1265 return (v & 0xfffffffU) << 0U;
1266}
1267static inline u32 gr_fecs_new_ctx_ptr_m(void)
1268{
1269 return 0xfffffffU << 0U;
1270}
1271static inline u32 gr_fecs_new_ctx_ptr_v(u32 r)
1272{
1273 return (r >> 0U) & 0xfffffffU;
1274}
1275static inline u32 gr_fecs_new_ctx_target_s(void)
1276{
1277 return 2U;
1278}
1279static inline u32 gr_fecs_new_ctx_target_f(u32 v)
1280{
1281 return (v & 0x3U) << 28U;
1282}
1283static inline u32 gr_fecs_new_ctx_target_m(void)
1284{
1285 return 0x3U << 28U;
1286}
1287static inline u32 gr_fecs_new_ctx_target_v(u32 r)
1288{
1289 return (r >> 28U) & 0x3U;
1290}
1291static inline u32 gr_fecs_new_ctx_target_vid_mem_f(void)
1292{
1293 return 0x0U;
1294}
1295static inline u32 gr_fecs_new_ctx_target_sys_mem_ncoh_f(void)
1296{
1297 return 0x30000000U;
1298}
1299static inline u32 gr_fecs_new_ctx_target_sys_mem_coh_f(void)
1300{
1301 return 0x20000000U;
1302}
1303static inline u32 gr_fecs_new_ctx_valid_s(void)
1304{
1305 return 1U;
1306}
1307static inline u32 gr_fecs_new_ctx_valid_f(u32 v)
1308{
1309 return (v & 0x1U) << 31U;
1310}
1311static inline u32 gr_fecs_new_ctx_valid_m(void)
1312{
1313 return 0x1U << 31U;
1314}
1315static inline u32 gr_fecs_new_ctx_valid_v(u32 r)
1316{
1317 return (r >> 31U) & 0x1U;
1318}
1319static inline u32 gr_fecs_arb_ctx_ptr_r(void)
1320{
1321 return 0x00409a0cU;
1322}
1323static inline u32 gr_fecs_arb_ctx_ptr_ptr_s(void)
1324{
1325 return 28U;
1326}
1327static inline u32 gr_fecs_arb_ctx_ptr_ptr_f(u32 v)
1328{
1329 return (v & 0xfffffffU) << 0U;
1330}
1331static inline u32 gr_fecs_arb_ctx_ptr_ptr_m(void)
1332{
1333 return 0xfffffffU << 0U;
1334}
1335static inline u32 gr_fecs_arb_ctx_ptr_ptr_v(u32 r)
1336{
1337 return (r >> 0U) & 0xfffffffU;
1338}
1339static inline u32 gr_fecs_arb_ctx_ptr_target_s(void)
1340{
1341 return 2U;
1342}
1343static inline u32 gr_fecs_arb_ctx_ptr_target_f(u32 v)
1344{
1345 return (v & 0x3U) << 28U;
1346}
1347static inline u32 gr_fecs_arb_ctx_ptr_target_m(void)
1348{
1349 return 0x3U << 28U;
1350}
1351static inline u32 gr_fecs_arb_ctx_ptr_target_v(u32 r)
1352{
1353 return (r >> 28U) & 0x3U;
1354}
1355static inline u32 gr_fecs_arb_ctx_ptr_target_vid_mem_f(void)
1356{
1357 return 0x0U;
1358}
1359static inline u32 gr_fecs_arb_ctx_ptr_target_sys_mem_ncoh_f(void)
1360{
1361 return 0x30000000U;
1362}
1363static inline u32 gr_fecs_arb_ctx_ptr_target_sys_mem_coh_f(void)
1364{
1365 return 0x20000000U;
1366}
1367static inline u32 gr_fecs_arb_ctx_cmd_r(void)
1368{
1369 return 0x00409a10U;
1370}
1371static inline u32 gr_fecs_arb_ctx_cmd_cmd_s(void)
1372{
1373 return 5U;
1374}
1375static inline u32 gr_fecs_arb_ctx_cmd_cmd_f(u32 v)
1376{
1377 return (v & 0x1fU) << 0U;
1378}
1379static inline u32 gr_fecs_arb_ctx_cmd_cmd_m(void)
1380{
1381 return 0x1fU << 0U;
1382}
1383static inline u32 gr_fecs_arb_ctx_cmd_cmd_v(u32 r)
1384{
1385 return (r >> 0U) & 0x1fU;
1386}
1387static inline u32 gr_fecs_ctxsw_status_fe_0_r(void)
1388{
1389 return 0x00409c00U;
1390}
1391static inline u32 gr_gpc0_gpccs_ctxsw_status_gpc_0_r(void)
1392{
1393 return 0x00502c04U;
1394}
1395static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void)
1396{
1397 return 0x00502400U;
1398}
1399static inline u32 gr_fecs_ctxsw_idlestate_r(void)
1400{
1401 return 0x00409420U;
1402}
1403static inline u32 gr_gpc0_gpccs_ctxsw_idlestate_r(void)
1404{
1405 return 0x00502420U;
1406}
1407static inline u32 gr_rstr2d_gpc_map0_r(void)
1408{
1409 return 0x0040780cU;
1410}
1411static inline u32 gr_rstr2d_gpc_map1_r(void)
1412{
1413 return 0x00407810U;
1414}
1415static inline u32 gr_rstr2d_gpc_map2_r(void)
1416{
1417 return 0x00407814U;
1418}
1419static inline u32 gr_rstr2d_gpc_map3_r(void)
1420{
1421 return 0x00407818U;
1422}
1423static inline u32 gr_rstr2d_gpc_map4_r(void)
1424{
1425 return 0x0040781cU;
1426}
1427static inline u32 gr_rstr2d_gpc_map5_r(void)
1428{
1429 return 0x00407820U;
1430}
1431static inline u32 gr_rstr2d_map_table_cfg_r(void)
1432{
1433 return 0x004078bcU;
1434}
1435static inline u32 gr_rstr2d_map_table_cfg_row_offset_f(u32 v)
1436{
1437 return (v & 0xffU) << 0U;
1438}
1439static inline u32 gr_rstr2d_map_table_cfg_num_entries_f(u32 v)
1440{
1441 return (v & 0xffU) << 8U;
1442}
1443static inline u32 gr_pd_hww_esr_r(void)
1444{
1445 return 0x00406018U;
1446}
1447static inline u32 gr_pd_hww_esr_reset_active_f(void)
1448{
1449 return 0x40000000U;
1450}
1451static inline u32 gr_pd_hww_esr_en_enable_f(void)
1452{
1453 return 0x80000000U;
1454}
1455static inline u32 gr_pd_num_tpc_per_gpc_r(u32 i)
1456{
1457 return 0x00406028U + i*4U;
1458}
1459static inline u32 gr_pd_num_tpc_per_gpc__size_1_v(void)
1460{
1461 return 0x00000004U;
1462}
1463static inline u32 gr_pd_num_tpc_per_gpc_count0_f(u32 v)
1464{
1465 return (v & 0xfU) << 0U;
1466}
1467static inline u32 gr_pd_num_tpc_per_gpc_count1_f(u32 v)
1468{
1469 return (v & 0xfU) << 4U;
1470}
1471static inline u32 gr_pd_num_tpc_per_gpc_count2_f(u32 v)
1472{
1473 return (v & 0xfU) << 8U;
1474}
1475static inline u32 gr_pd_num_tpc_per_gpc_count3_f(u32 v)
1476{
1477 return (v & 0xfU) << 12U;
1478}
1479static inline u32 gr_pd_num_tpc_per_gpc_count4_f(u32 v)
1480{
1481 return (v & 0xfU) << 16U;
1482}
1483static inline u32 gr_pd_num_tpc_per_gpc_count5_f(u32 v)
1484{
1485 return (v & 0xfU) << 20U;
1486}
1487static inline u32 gr_pd_num_tpc_per_gpc_count6_f(u32 v)
1488{
1489 return (v & 0xfU) << 24U;
1490}
1491static inline u32 gr_pd_num_tpc_per_gpc_count7_f(u32 v)
1492{
1493 return (v & 0xfU) << 28U;
1494}
1495static inline u32 gr_pd_ab_dist_cfg0_r(void)
1496{
1497 return 0x004064c0U;
1498}
1499static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_en_f(void)
1500{
1501 return 0x80000000U;
1502}
1503static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_dis_f(void)
1504{
1505 return 0x0U;
1506}
1507static inline u32 gr_pd_ab_dist_cfg1_r(void)
1508{
1509 return 0x004064c4U;
1510}
1511static inline u32 gr_pd_ab_dist_cfg1_max_batches_init_f(void)
1512{
1513 return 0xffffU;
1514}
1515static inline u32 gr_pd_ab_dist_cfg1_max_output_f(u32 v)
1516{
1517 return (v & 0xffffU) << 16U;
1518}
1519static inline u32 gr_pd_ab_dist_cfg1_max_output_granularity_v(void)
1520{
1521 return 0x00000080U;
1522}
1523static inline u32 gr_pd_ab_dist_cfg2_r(void)
1524{
1525 return 0x004064c8U;
1526}
1527static inline u32 gr_pd_ab_dist_cfg2_token_limit_f(u32 v)
1528{
1529 return (v & 0xfffU) << 0U;
1530}
1531static inline u32 gr_pd_ab_dist_cfg2_token_limit_init_v(void)
1532{
1533 return 0x000001c0U;
1534}
1535static inline u32 gr_pd_ab_dist_cfg2_state_limit_f(u32 v)
1536{
1537 return (v & 0xfffU) << 16U;
1538}
1539static inline u32 gr_pd_ab_dist_cfg2_state_limit_scc_bundle_granularity_v(void)
1540{
1541 return 0x00000020U;
1542}
1543static inline u32 gr_pd_ab_dist_cfg2_state_limit_min_gpm_fifo_depths_v(void)
1544{
1545 return 0x00000182U;
1546}
1547static inline u32 gr_pd_pagepool_r(void)
1548{
1549 return 0x004064ccU;
1550}
1551static inline u32 gr_pd_pagepool_total_pages_f(u32 v)
1552{
1553 return (v & 0xffU) << 0U;
1554}
1555static inline u32 gr_pd_pagepool_valid_true_f(void)
1556{
1557 return 0x80000000U;
1558}
1559static inline u32 gr_pd_dist_skip_table_r(u32 i)
1560{
1561 return 0x004064d0U + i*4U;
1562}
1563static inline u32 gr_pd_dist_skip_table__size_1_v(void)
1564{
1565 return 0x00000008U;
1566}
1567static inline u32 gr_pd_dist_skip_table_gpc_4n0_mask_f(u32 v)
1568{
1569 return (v & 0xffU) << 0U;
1570}
1571static inline u32 gr_pd_dist_skip_table_gpc_4n1_mask_f(u32 v)
1572{
1573 return (v & 0xffU) << 8U;
1574}
1575static inline u32 gr_pd_dist_skip_table_gpc_4n2_mask_f(u32 v)
1576{
1577 return (v & 0xffU) << 16U;
1578}
1579static inline u32 gr_pd_dist_skip_table_gpc_4n3_mask_f(u32 v)
1580{
1581 return (v & 0xffU) << 24U;
1582}
1583static inline u32 gr_ds_debug_r(void)
1584{
1585 return 0x00405800U;
1586}
1587static inline u32 gr_ds_debug_timeslice_mode_disable_f(void)
1588{
1589 return 0x0U;
1590}
1591static inline u32 gr_ds_debug_timeslice_mode_enable_f(void)
1592{
1593 return 0x8000000U;
1594}
1595static inline u32 gr_ds_zbc_color_r_r(void)
1596{
1597 return 0x00405804U;
1598}
1599static inline u32 gr_ds_zbc_color_r_val_f(u32 v)
1600{
1601 return (v & 0xffffffffU) << 0U;
1602}
1603static inline u32 gr_ds_zbc_color_g_r(void)
1604{
1605 return 0x00405808U;
1606}
1607static inline u32 gr_ds_zbc_color_g_val_f(u32 v)
1608{
1609 return (v & 0xffffffffU) << 0U;
1610}
1611static inline u32 gr_ds_zbc_color_b_r(void)
1612{
1613 return 0x0040580cU;
1614}
1615static inline u32 gr_ds_zbc_color_b_val_f(u32 v)
1616{
1617 return (v & 0xffffffffU) << 0U;
1618}
1619static inline u32 gr_ds_zbc_color_a_r(void)
1620{
1621 return 0x00405810U;
1622}
1623static inline u32 gr_ds_zbc_color_a_val_f(u32 v)
1624{
1625 return (v & 0xffffffffU) << 0U;
1626}
1627static inline u32 gr_ds_zbc_color_fmt_r(void)
1628{
1629 return 0x00405814U;
1630}
1631static inline u32 gr_ds_zbc_color_fmt_val_f(u32 v)
1632{
1633 return (v & 0x7fU) << 0U;
1634}
1635static inline u32 gr_ds_zbc_color_fmt_val_invalid_f(void)
1636{
1637 return 0x0U;
1638}
1639static inline u32 gr_ds_zbc_color_fmt_val_zero_v(void)
1640{
1641 return 0x00000001U;
1642}
1643static inline u32 gr_ds_zbc_color_fmt_val_unorm_one_v(void)
1644{
1645 return 0x00000002U;
1646}
1647static inline u32 gr_ds_zbc_color_fmt_val_rf32_gf32_bf32_af32_v(void)
1648{
1649 return 0x00000004U;
1650}
1651static inline u32 gr_ds_zbc_color_fmt_val_a8_b8_g8_r8_v(void)
1652{
1653 return 0x00000028U;
1654}
1655static inline u32 gr_ds_zbc_z_r(void)
1656{
1657 return 0x00405818U;
1658}
1659static inline u32 gr_ds_zbc_z_val_s(void)
1660{
1661 return 32U;
1662}
1663static inline u32 gr_ds_zbc_z_val_f(u32 v)
1664{
1665 return (v & 0xffffffffU) << 0U;
1666}
1667static inline u32 gr_ds_zbc_z_val_m(void)
1668{
1669 return 0xffffffffU << 0U;
1670}
1671static inline u32 gr_ds_zbc_z_val_v(u32 r)
1672{
1673 return (r >> 0U) & 0xffffffffU;
1674}
1675static inline u32 gr_ds_zbc_z_val__init_v(void)
1676{
1677 return 0x00000000U;
1678}
1679static inline u32 gr_ds_zbc_z_val__init_f(void)
1680{
1681 return 0x0U;
1682}
1683static inline u32 gr_ds_zbc_z_fmt_r(void)
1684{
1685 return 0x0040581cU;
1686}
1687static inline u32 gr_ds_zbc_z_fmt_val_f(u32 v)
1688{
1689 return (v & 0x1U) << 0U;
1690}
1691static inline u32 gr_ds_zbc_z_fmt_val_invalid_f(void)
1692{
1693 return 0x0U;
1694}
1695static inline u32 gr_ds_zbc_z_fmt_val_fp32_v(void)
1696{
1697 return 0x00000001U;
1698}
1699static inline u32 gr_ds_zbc_tbl_index_r(void)
1700{
1701 return 0x00405820U;
1702}
1703static inline u32 gr_ds_zbc_tbl_index_val_f(u32 v)
1704{
1705 return (v & 0xfU) << 0U;
1706}
1707static inline u32 gr_ds_zbc_tbl_ld_r(void)
1708{
1709 return 0x00405824U;
1710}
1711static inline u32 gr_ds_zbc_tbl_ld_select_c_f(void)
1712{
1713 return 0x0U;
1714}
1715static inline u32 gr_ds_zbc_tbl_ld_select_z_f(void)
1716{
1717 return 0x1U;
1718}
1719static inline u32 gr_ds_zbc_tbl_ld_action_write_f(void)
1720{
1721 return 0x0U;
1722}
1723static inline u32 gr_ds_zbc_tbl_ld_trigger_active_f(void)
1724{
1725 return 0x4U;
1726}
1727static inline u32 gr_ds_tga_constraintlogic_r(void)
1728{
1729 return 0x00405830U;
1730}
1731static inline u32 gr_ds_tga_constraintlogic_beta_cbsize_f(u32 v)
1732{
1733 return (v & 0xffffU) << 16U;
1734}
1735static inline u32 gr_ds_tga_constraintlogic_alpha_cbsize_f(u32 v)
1736{
1737 return (v & 0xffffU) << 0U;
1738}
1739static inline u32 gr_ds_hww_esr_r(void)
1740{
1741 return 0x00405840U;
1742}
1743static inline u32 gr_ds_hww_esr_reset_s(void)
1744{
1745 return 1U;
1746}
1747static inline u32 gr_ds_hww_esr_reset_f(u32 v)
1748{
1749 return (v & 0x1U) << 30U;
1750}
1751static inline u32 gr_ds_hww_esr_reset_m(void)
1752{
1753 return 0x1U << 30U;
1754}
1755static inline u32 gr_ds_hww_esr_reset_v(u32 r)
1756{
1757 return (r >> 30U) & 0x1U;
1758}
1759static inline u32 gr_ds_hww_esr_reset_task_v(void)
1760{
1761 return 0x00000001U;
1762}
1763static inline u32 gr_ds_hww_esr_reset_task_f(void)
1764{
1765 return 0x40000000U;
1766}
1767static inline u32 gr_ds_hww_esr_en_enabled_f(void)
1768{
1769 return 0x80000000U;
1770}
1771static inline u32 gr_ds_hww_esr_2_r(void)
1772{
1773 return 0x00405848U;
1774}
1775static inline u32 gr_ds_hww_esr_2_reset_s(void)
1776{
1777 return 1U;
1778}
1779static inline u32 gr_ds_hww_esr_2_reset_f(u32 v)
1780{
1781 return (v & 0x1U) << 30U;
1782}
1783static inline u32 gr_ds_hww_esr_2_reset_m(void)
1784{
1785 return 0x1U << 30U;
1786}
1787static inline u32 gr_ds_hww_esr_2_reset_v(u32 r)
1788{
1789 return (r >> 30U) & 0x1U;
1790}
1791static inline u32 gr_ds_hww_esr_2_reset_task_v(void)
1792{
1793 return 0x00000001U;
1794}
1795static inline u32 gr_ds_hww_esr_2_reset_task_f(void)
1796{
1797 return 0x40000000U;
1798}
1799static inline u32 gr_ds_hww_esr_2_en_enabled_f(void)
1800{
1801 return 0x80000000U;
1802}
1803static inline u32 gr_ds_hww_report_mask_r(void)
1804{
1805 return 0x00405844U;
1806}
1807static inline u32 gr_ds_hww_report_mask_sph0_err_report_f(void)
1808{
1809 return 0x1U;
1810}
1811static inline u32 gr_ds_hww_report_mask_sph1_err_report_f(void)
1812{
1813 return 0x2U;
1814}
1815static inline u32 gr_ds_hww_report_mask_sph2_err_report_f(void)
1816{
1817 return 0x4U;
1818}
1819static inline u32 gr_ds_hww_report_mask_sph3_err_report_f(void)
1820{
1821 return 0x8U;
1822}
1823static inline u32 gr_ds_hww_report_mask_sph4_err_report_f(void)
1824{
1825 return 0x10U;
1826}
1827static inline u32 gr_ds_hww_report_mask_sph5_err_report_f(void)
1828{
1829 return 0x20U;
1830}
1831static inline u32 gr_ds_hww_report_mask_sph6_err_report_f(void)
1832{
1833 return 0x40U;
1834}
1835static inline u32 gr_ds_hww_report_mask_sph7_err_report_f(void)
1836{
1837 return 0x80U;
1838}
1839static inline u32 gr_ds_hww_report_mask_sph8_err_report_f(void)
1840{
1841 return 0x100U;
1842}
1843static inline u32 gr_ds_hww_report_mask_sph9_err_report_f(void)
1844{
1845 return 0x200U;
1846}
1847static inline u32 gr_ds_hww_report_mask_sph10_err_report_f(void)
1848{
1849 return 0x400U;
1850}
1851static inline u32 gr_ds_hww_report_mask_sph11_err_report_f(void)
1852{
1853 return 0x800U;
1854}
1855static inline u32 gr_ds_hww_report_mask_sph12_err_report_f(void)
1856{
1857 return 0x1000U;
1858}
1859static inline u32 gr_ds_hww_report_mask_sph13_err_report_f(void)
1860{
1861 return 0x2000U;
1862}
1863static inline u32 gr_ds_hww_report_mask_sph14_err_report_f(void)
1864{
1865 return 0x4000U;
1866}
1867static inline u32 gr_ds_hww_report_mask_sph15_err_report_f(void)
1868{
1869 return 0x8000U;
1870}
1871static inline u32 gr_ds_hww_report_mask_sph16_err_report_f(void)
1872{
1873 return 0x10000U;
1874}
1875static inline u32 gr_ds_hww_report_mask_sph17_err_report_f(void)
1876{
1877 return 0x20000U;
1878}
1879static inline u32 gr_ds_hww_report_mask_sph18_err_report_f(void)
1880{
1881 return 0x40000U;
1882}
1883static inline u32 gr_ds_hww_report_mask_sph19_err_report_f(void)
1884{
1885 return 0x80000U;
1886}
1887static inline u32 gr_ds_hww_report_mask_sph20_err_report_f(void)
1888{
1889 return 0x100000U;
1890}
1891static inline u32 gr_ds_hww_report_mask_sph21_err_report_f(void)
1892{
1893 return 0x200000U;
1894}
1895static inline u32 gr_ds_hww_report_mask_sph22_err_report_f(void)
1896{
1897 return 0x400000U;
1898}
1899static inline u32 gr_ds_hww_report_mask_sph23_err_report_f(void)
1900{
1901 return 0x800000U;
1902}
1903static inline u32 gr_ds_hww_report_mask_2_r(void)
1904{
1905 return 0x0040584cU;
1906}
1907static inline u32 gr_ds_hww_report_mask_2_sph24_err_report_f(void)
1908{
1909 return 0x1U;
1910}
1911static inline u32 gr_ds_num_tpc_per_gpc_r(u32 i)
1912{
1913 return 0x00405870U + i*4U;
1914}
1915static inline u32 gr_scc_bundle_cb_base_r(void)
1916{
1917 return 0x00408004U;
1918}
1919static inline u32 gr_scc_bundle_cb_base_addr_39_8_f(u32 v)
1920{
1921 return (v & 0xffffffffU) << 0U;
1922}
1923static inline u32 gr_scc_bundle_cb_base_addr_39_8_align_bits_v(void)
1924{
1925 return 0x00000008U;
1926}
1927static inline u32 gr_scc_bundle_cb_size_r(void)
1928{
1929 return 0x00408008U;
1930}
1931static inline u32 gr_scc_bundle_cb_size_div_256b_f(u32 v)
1932{
1933 return (v & 0x7ffU) << 0U;
1934}
1935static inline u32 gr_scc_bundle_cb_size_div_256b__prod_v(void)
1936{
1937 return 0x00000018U;
1938}
1939static inline u32 gr_scc_bundle_cb_size_div_256b_byte_granularity_v(void)
1940{
1941 return 0x00000100U;
1942}
1943static inline u32 gr_scc_bundle_cb_size_valid_false_v(void)
1944{
1945 return 0x00000000U;
1946}
1947static inline u32 gr_scc_bundle_cb_size_valid_false_f(void)
1948{
1949 return 0x0U;
1950}
1951static inline u32 gr_scc_bundle_cb_size_valid_true_f(void)
1952{
1953 return 0x80000000U;
1954}
1955static inline u32 gr_scc_pagepool_base_r(void)
1956{
1957 return 0x0040800cU;
1958}
1959static inline u32 gr_scc_pagepool_base_addr_39_8_f(u32 v)
1960{
1961 return (v & 0xffffffffU) << 0U;
1962}
1963static inline u32 gr_scc_pagepool_base_addr_39_8_align_bits_v(void)
1964{
1965 return 0x00000008U;
1966}
1967static inline u32 gr_scc_pagepool_r(void)
1968{
1969 return 0x00408010U;
1970}
1971static inline u32 gr_scc_pagepool_total_pages_f(u32 v)
1972{
1973 return (v & 0xffU) << 0U;
1974}
1975static inline u32 gr_scc_pagepool_total_pages_hwmax_v(void)
1976{
1977 return 0x00000000U;
1978}
1979static inline u32 gr_scc_pagepool_total_pages_hwmax_value_v(void)
1980{
1981 return 0x00000080U;
1982}
1983static inline u32 gr_scc_pagepool_total_pages_byte_granularity_v(void)
1984{
1985 return 0x00000100U;
1986}
1987static inline u32 gr_scc_pagepool_max_valid_pages_s(void)
1988{
1989 return 8U;
1990}
1991static inline u32 gr_scc_pagepool_max_valid_pages_f(u32 v)
1992{
1993 return (v & 0xffU) << 8U;
1994}
1995static inline u32 gr_scc_pagepool_max_valid_pages_m(void)
1996{
1997 return 0xffU << 8U;
1998}
1999static inline u32 gr_scc_pagepool_max_valid_pages_v(u32 r)
2000{
2001 return (r >> 8U) & 0xffU;
2002}
2003static inline u32 gr_scc_pagepool_valid_true_f(void)
2004{
2005 return 0x80000000U;
2006}
2007static inline u32 gr_scc_init_r(void)
2008{
2009 return 0x0040802cU;
2010}
2011static inline u32 gr_scc_init_ram_trigger_f(void)
2012{
2013 return 0x1U;
2014}
2015static inline u32 gr_scc_hww_esr_r(void)
2016{
2017 return 0x00408030U;
2018}
2019static inline u32 gr_scc_hww_esr_reset_active_f(void)
2020{
2021 return 0x40000000U;
2022}
2023static inline u32 gr_scc_hww_esr_en_enable_f(void)
2024{
2025 return 0x80000000U;
2026}
2027static inline u32 gr_sked_hww_esr_r(void)
2028{
2029 return 0x00407020U;
2030}
2031static inline u32 gr_sked_hww_esr_reset_active_f(void)
2032{
2033 return 0x40000000U;
2034}
2035static inline u32 gr_cwd_fs_r(void)
2036{
2037 return 0x00405b00U;
2038}
2039static inline u32 gr_cwd_fs_num_gpcs_f(u32 v)
2040{
2041 return (v & 0xffU) << 0U;
2042}
2043static inline u32 gr_cwd_fs_num_tpcs_f(u32 v)
2044{
2045 return (v & 0xffU) << 8U;
2046}
2047static inline u32 gr_cwd_gpc_tpc_id_r(u32 i)
2048{
2049 return 0x00405b60U + i*4U;
2050}
2051static inline u32 gr_cwd_gpc_tpc_id_tpc0_s(void)
2052{
2053 return 4U;
2054}
2055static inline u32 gr_cwd_gpc_tpc_id_tpc0_f(u32 v)
2056{
2057 return (v & 0xfU) << 0U;
2058}
2059static inline u32 gr_cwd_gpc_tpc_id_gpc0_s(void)
2060{
2061 return 4U;
2062}
2063static inline u32 gr_cwd_gpc_tpc_id_gpc0_f(u32 v)
2064{
2065 return (v & 0xfU) << 4U;
2066}
2067static inline u32 gr_cwd_gpc_tpc_id_tpc1_f(u32 v)
2068{
2069 return (v & 0xfU) << 8U;
2070}
2071static inline u32 gr_cwd_sm_id_r(u32 i)
2072{
2073 return 0x00405ba0U + i*4U;
2074}
2075static inline u32 gr_cwd_sm_id__size_1_v(void)
2076{
2077 return 0x00000006U;
2078}
2079static inline u32 gr_cwd_sm_id_tpc0_f(u32 v)
2080{
2081 return (v & 0xffU) << 0U;
2082}
2083static inline u32 gr_cwd_sm_id_tpc1_f(u32 v)
2084{
2085 return (v & 0xffU) << 8U;
2086}
2087static inline u32 gr_gpc0_fs_gpc_r(void)
2088{
2089 return 0x00502608U;
2090}
2091static inline u32 gr_gpc0_fs_gpc_num_available_tpcs_v(u32 r)
2092{
2093 return (r >> 0U) & 0x1fU;
2094}
2095static inline u32 gr_gpc0_fs_gpc_num_available_zculls_v(u32 r)
2096{
2097 return (r >> 16U) & 0x1fU;
2098}
2099static inline u32 gr_gpc0_cfg_r(void)
2100{
2101 return 0x00502620U;
2102}
2103static inline u32 gr_gpc0_cfg_imem_sz_v(u32 r)
2104{
2105 return (r >> 0U) & 0xffU;
2106}
2107static inline u32 gr_gpccs_rc_lanes_r(void)
2108{
2109 return 0x00502880U;
2110}
2111static inline u32 gr_gpccs_rc_lanes_num_chains_s(void)
2112{
2113 return 6U;
2114}
2115static inline u32 gr_gpccs_rc_lanes_num_chains_f(u32 v)
2116{
2117 return (v & 0x3fU) << 0U;
2118}
2119static inline u32 gr_gpccs_rc_lanes_num_chains_m(void)
2120{
2121 return 0x3fU << 0U;
2122}
2123static inline u32 gr_gpccs_rc_lanes_num_chains_v(u32 r)
2124{
2125 return (r >> 0U) & 0x3fU;
2126}
2127static inline u32 gr_gpccs_rc_lane_size_r(u32 i)
2128{
2129 return 0x00502910U + i*0U;
2130}
2131static inline u32 gr_gpccs_rc_lane_size__size_1_v(void)
2132{
2133 return 0x00000010U;
2134}
2135static inline u32 gr_gpccs_rc_lane_size_v_s(void)
2136{
2137 return 24U;
2138}
2139static inline u32 gr_gpccs_rc_lane_size_v_f(u32 v)
2140{
2141 return (v & 0xffffffU) << 0U;
2142}
2143static inline u32 gr_gpccs_rc_lane_size_v_m(void)
2144{
2145 return 0xffffffU << 0U;
2146}
2147static inline u32 gr_gpccs_rc_lane_size_v_v(u32 r)
2148{
2149 return (r >> 0U) & 0xffffffU;
2150}
2151static inline u32 gr_gpccs_rc_lane_size_v_0_v(void)
2152{
2153 return 0x00000000U;
2154}
2155static inline u32 gr_gpccs_rc_lane_size_v_0_f(void)
2156{
2157 return 0x0U;
2158}
2159static inline u32 gr_gpc0_zcull_fs_r(void)
2160{
2161 return 0x00500910U;
2162}
2163static inline u32 gr_gpc0_zcull_fs_num_sms_f(u32 v)
2164{
2165 return (v & 0x1ffU) << 0U;
2166}
2167static inline u32 gr_gpc0_zcull_fs_num_active_banks_f(u32 v)
2168{
2169 return (v & 0xfU) << 16U;
2170}
2171static inline u32 gr_gpc0_zcull_ram_addr_r(void)
2172{
2173 return 0x00500914U;
2174}
2175static inline u32 gr_gpc0_zcull_ram_addr_tiles_per_hypertile_row_per_gpc_f(u32 v)
2176{
2177 return (v & 0xfU) << 0U;
2178}
2179static inline u32 gr_gpc0_zcull_ram_addr_row_offset_f(u32 v)
2180{
2181 return (v & 0xfU) << 8U;
2182}
2183static inline u32 gr_gpc0_zcull_sm_num_rcp_r(void)
2184{
2185 return 0x00500918U;
2186}
2187static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative_f(u32 v)
2188{
2189 return (v & 0xffffffU) << 0U;
2190}
2191static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative__max_v(void)
2192{
2193 return 0x00800000U;
2194}
2195static inline u32 gr_gpc0_zcull_total_ram_size_r(void)
2196{
2197 return 0x00500920U;
2198}
2199static inline u32 gr_gpc0_zcull_total_ram_size_num_aliquots_f(u32 v)
2200{
2201 return (v & 0xffffU) << 0U;
2202}
2203static inline u32 gr_gpc0_zcull_zcsize_r(u32 i)
2204{
2205 return 0x00500a04U + i*32U;
2206}
2207static inline u32 gr_gpc0_zcull_zcsize_height_subregion__multiple_v(void)
2208{
2209 return 0x00000040U;
2210}
2211static inline u32 gr_gpc0_zcull_zcsize_width_subregion__multiple_v(void)
2212{
2213 return 0x00000010U;
2214}
2215static inline u32 gr_gpc0_gpm_pd_sm_id_r(u32 i)
2216{
2217 return 0x00500c10U + i*4U;
2218}
2219static inline u32 gr_gpc0_gpm_pd_sm_id_id_f(u32 v)
2220{
2221 return (v & 0xffU) << 0U;
2222}
2223static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_r(u32 i)
2224{
2225 return 0x00500c30U + i*4U;
2226}
2227static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_mask_v(u32 r)
2228{
2229 return (r >> 0U) & 0xffU;
2230}
2231static inline u32 gr_gpc0_tpc0_pe_cfg_smid_r(void)
2232{
2233 return 0x00504088U;
2234}
2235static inline u32 gr_gpc0_tpc0_pe_cfg_smid_value_f(u32 v)
2236{
2237 return (v & 0xffffU) << 0U;
2238}
2239static inline u32 gr_gpc0_tpc0_sm_cfg_r(void)
2240{
2241 return 0x00504698U;
2242}
2243static inline u32 gr_gpc0_tpc0_sm_cfg_sm_id_f(u32 v)
2244{
2245 return (v & 0xffffU) << 0U;
2246}
2247static inline u32 gr_gpc0_tpc0_sm_cfg_sm_id_v(u32 r)
2248{
2249 return (r >> 0U) & 0xffffU;
2250}
2251static inline u32 gr_gpc0_tpc0_sm_arch_r(void)
2252{
2253 return 0x0050469cU;
2254}
2255static inline u32 gr_gpc0_tpc0_sm_arch_warp_count_v(u32 r)
2256{
2257 return (r >> 0U) & 0xffU;
2258}
2259static inline u32 gr_gpc0_tpc0_sm_arch_spa_version_v(u32 r)
2260{
2261 return (r >> 8U) & 0xfffU;
2262}
2263static inline u32 gr_gpc0_tpc0_sm_arch_sm_version_v(u32 r)
2264{
2265 return (r >> 20U) & 0xfffU;
2266}
2267static inline u32 gr_gpc0_ppc0_pes_vsc_strem_r(void)
2268{
2269 return 0x00503018U;
2270}
2271static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_m(void)
2272{
2273 return 0x1U << 0U;
2274}
2275static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_true_f(void)
2276{
2277 return 0x1U;
2278}
2279static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_r(void)
2280{
2281 return 0x005030c0U;
2282}
2283static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_f(u32 v)
2284{
2285 return (v & 0xffffU) << 0U;
2286}
2287static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_m(void)
2288{
2289 return 0xffffU << 0U;
2290}
2291static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_default_v(void)
2292{
2293 return 0x00000400U;
2294}
2295static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_granularity_v(void)
2296{
2297 return 0x00000020U;
2298}
2299static inline u32 gr_gpc0_ppc0_cbm_beta_cb_offset_r(void)
2300{
2301 return 0x005030f4U;
2302}
2303static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_r(void)
2304{
2305 return 0x005030e4U;
2306}
2307static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_f(u32 v)
2308{
2309 return (v & 0xffffU) << 0U;
2310}
2311static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_m(void)
2312{
2313 return 0xffffU << 0U;
2314}
2315static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_default_v(void)
2316{
2317 return 0x00000800U;
2318}
2319static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_granularity_v(void)
2320{
2321 return 0x00000020U;
2322}
2323static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_offset_r(void)
2324{
2325 return 0x005030f8U;
2326}
2327static inline u32 gr_gpcs_tpcs_tex_m_dbg2_r(void)
2328{
2329 return 0x00419a3cU;
2330}
2331static inline u32 gr_gpcs_tpcs_tex_m_dbg2_lg_rd_coalesce_en_f(u32 v)
2332{
2333 return (v & 0x1U) << 2U;
2334}
2335static inline u32 gr_gpcs_tpcs_tex_m_dbg2_lg_rd_coalesce_en_m(void)
2336{
2337 return 0x1U << 2U;
2338}
2339static inline u32 gr_gpcs_tpcs_tex_m_dbg2_su_rd_coalesce_en_f(u32 v)
2340{
2341 return (v & 0x1U) << 4U;
2342}
2343static inline u32 gr_gpcs_tpcs_tex_m_dbg2_su_rd_coalesce_en_m(void)
2344{
2345 return 0x1U << 4U;
2346}
2347static inline u32 gr_gpccs_falcon_addr_r(void)
2348{
2349 return 0x0041a0acU;
2350}
2351static inline u32 gr_gpccs_falcon_addr_lsb_s(void)
2352{
2353 return 6U;
2354}
2355static inline u32 gr_gpccs_falcon_addr_lsb_f(u32 v)
2356{
2357 return (v & 0x3fU) << 0U;
2358}
2359static inline u32 gr_gpccs_falcon_addr_lsb_m(void)
2360{
2361 return 0x3fU << 0U;
2362}
2363static inline u32 gr_gpccs_falcon_addr_lsb_v(u32 r)
2364{
2365 return (r >> 0U) & 0x3fU;
2366}
2367static inline u32 gr_gpccs_falcon_addr_lsb_init_v(void)
2368{
2369 return 0x00000000U;
2370}
2371static inline u32 gr_gpccs_falcon_addr_lsb_init_f(void)
2372{
2373 return 0x0U;
2374}
2375static inline u32 gr_gpccs_falcon_addr_msb_s(void)
2376{
2377 return 6U;
2378}
2379static inline u32 gr_gpccs_falcon_addr_msb_f(u32 v)
2380{
2381 return (v & 0x3fU) << 6U;
2382}
2383static inline u32 gr_gpccs_falcon_addr_msb_m(void)
2384{
2385 return 0x3fU << 6U;
2386}
2387static inline u32 gr_gpccs_falcon_addr_msb_v(u32 r)
2388{
2389 return (r >> 6U) & 0x3fU;
2390}
2391static inline u32 gr_gpccs_falcon_addr_msb_init_v(void)
2392{
2393 return 0x00000000U;
2394}
2395static inline u32 gr_gpccs_falcon_addr_msb_init_f(void)
2396{
2397 return 0x0U;
2398}
2399static inline u32 gr_gpccs_falcon_addr_ext_s(void)
2400{
2401 return 12U;
2402}
2403static inline u32 gr_gpccs_falcon_addr_ext_f(u32 v)
2404{
2405 return (v & 0xfffU) << 0U;
2406}
2407static inline u32 gr_gpccs_falcon_addr_ext_m(void)
2408{
2409 return 0xfffU << 0U;
2410}
2411static inline u32 gr_gpccs_falcon_addr_ext_v(u32 r)
2412{
2413 return (r >> 0U) & 0xfffU;
2414}
2415static inline u32 gr_gpccs_cpuctl_r(void)
2416{
2417 return 0x0041a100U;
2418}
2419static inline u32 gr_gpccs_cpuctl_startcpu_f(u32 v)
2420{
2421 return (v & 0x1U) << 1U;
2422}
2423static inline u32 gr_gpccs_dmactl_r(void)
2424{
2425 return 0x0041a10cU;
2426}
2427static inline u32 gr_gpccs_dmactl_require_ctx_f(u32 v)
2428{
2429 return (v & 0x1U) << 0U;
2430}
2431static inline u32 gr_gpccs_dmactl_dmem_scrubbing_m(void)
2432{
2433 return 0x1U << 1U;
2434}
2435static inline u32 gr_gpccs_dmactl_imem_scrubbing_m(void)
2436{
2437 return 0x1U << 2U;
2438}
2439static inline u32 gr_gpccs_imemc_r(u32 i)
2440{
2441 return 0x0041a180U + i*16U;
2442}
2443static inline u32 gr_gpccs_imemc_offs_f(u32 v)
2444{
2445 return (v & 0x3fU) << 2U;
2446}
2447static inline u32 gr_gpccs_imemc_blk_f(u32 v)
2448{
2449 return (v & 0xffU) << 8U;
2450}
2451static inline u32 gr_gpccs_imemc_aincw_f(u32 v)
2452{
2453 return (v & 0x1U) << 24U;
2454}
2455static inline u32 gr_gpccs_imemd_r(u32 i)
2456{
2457 return 0x0041a184U + i*16U;
2458}
2459static inline u32 gr_gpccs_imemt_r(u32 i)
2460{
2461 return 0x0041a188U + i*16U;
2462}
2463static inline u32 gr_gpccs_imemt__size_1_v(void)
2464{
2465 return 0x00000004U;
2466}
2467static inline u32 gr_gpccs_imemt_tag_f(u32 v)
2468{
2469 return (v & 0xffffU) << 0U;
2470}
2471static inline u32 gr_gpccs_dmemc_r(u32 i)
2472{
2473 return 0x0041a1c0U + i*8U;
2474}
2475static inline u32 gr_gpccs_dmemc_offs_f(u32 v)
2476{
2477 return (v & 0x3fU) << 2U;
2478}
2479static inline u32 gr_gpccs_dmemc_blk_f(u32 v)
2480{
2481 return (v & 0xffU) << 8U;
2482}
2483static inline u32 gr_gpccs_dmemc_aincw_f(u32 v)
2484{
2485 return (v & 0x1U) << 24U;
2486}
2487static inline u32 gr_gpccs_dmemd_r(u32 i)
2488{
2489 return 0x0041a1c4U + i*8U;
2490}
2491static inline u32 gr_gpccs_ctxsw_mailbox_r(u32 i)
2492{
2493 return 0x0041a800U + i*4U;
2494}
2495static inline u32 gr_gpccs_ctxsw_mailbox_value_f(u32 v)
2496{
2497 return (v & 0xffffffffU) << 0U;
2498}
2499static inline u32 gr_gpcs_swdx_bundle_cb_base_r(void)
2500{
2501 return 0x00418e24U;
2502}
2503static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_s(void)
2504{
2505 return 32U;
2506}
2507static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_f(u32 v)
2508{
2509 return (v & 0xffffffffU) << 0U;
2510}
2511static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_m(void)
2512{
2513 return 0xffffffffU << 0U;
2514}
2515static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_v(u32 r)
2516{
2517 return (r >> 0U) & 0xffffffffU;
2518}
2519static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_v(void)
2520{
2521 return 0x00000000U;
2522}
2523static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_f(void)
2524{
2525 return 0x0U;
2526}
2527static inline u32 gr_gpcs_swdx_bundle_cb_size_r(void)
2528{
2529 return 0x00418e28U;
2530}
2531static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_s(void)
2532{
2533 return 11U;
2534}
2535static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_f(u32 v)
2536{
2537 return (v & 0x7ffU) << 0U;
2538}
2539static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_m(void)
2540{
2541 return 0x7ffU << 0U;
2542}
2543static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_v(u32 r)
2544{
2545 return (r >> 0U) & 0x7ffU;
2546}
2547static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_v(void)
2548{
2549 return 0x00000018U;
2550}
2551static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_f(void)
2552{
2553 return 0x18U;
2554}
2555static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_s(void)
2556{
2557 return 1U;
2558}
2559static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_f(u32 v)
2560{
2561 return (v & 0x1U) << 31U;
2562}
2563static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_m(void)
2564{
2565 return 0x1U << 31U;
2566}
2567static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_v(u32 r)
2568{
2569 return (r >> 31U) & 0x1U;
2570}
2571static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_v(void)
2572{
2573 return 0x00000000U;
2574}
2575static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_f(void)
2576{
2577 return 0x0U;
2578}
2579static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_v(void)
2580{
2581 return 0x00000001U;
2582}
2583static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_f(void)
2584{
2585 return 0x80000000U;
2586}
2587static inline u32 gr_gpcs_swdx_tc_beta_cb_size_r(u32 i)
2588{
2589 return 0x00418ea0U + i*4U;
2590}
2591static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_f(u32 v)
2592{
2593 return (v & 0xffffU) << 0U;
2594}
2595static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_m(void)
2596{
2597 return 0xffffU << 0U;
2598}
2599static inline u32 gr_gpcs_swdx_tc_beta_cb_size_div3_f(u32 v)
2600{
2601 return (v & 0xffffU) << 16U;
2602}
2603static inline u32 gr_gpcs_swdx_tc_beta_cb_size_div3_m(void)
2604{
2605 return 0xffffU << 16U;
2606}
2607static inline u32 gr_gpcs_swdx_rm_pagepool_r(void)
2608{
2609 return 0x00418e30U;
2610}
2611static inline u32 gr_gpcs_swdx_rm_pagepool_total_pages_f(u32 v)
2612{
2613 return (v & 0xffU) << 0U;
2614}
2615static inline u32 gr_gpcs_swdx_rm_pagepool_valid_true_f(void)
2616{
2617 return 0x80000000U;
2618}
2619static inline u32 gr_gpcs_setup_attrib_cb_base_r(void)
2620{
2621 return 0x00418810U;
2622}
2623static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_f(u32 v)
2624{
2625 return (v & 0xfffffffU) << 0U;
2626}
2627static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_align_bits_v(void)
2628{
2629 return 0x0000000cU;
2630}
2631static inline u32 gr_gpcs_setup_attrib_cb_base_valid_true_f(void)
2632{
2633 return 0x80000000U;
2634}
2635static inline u32 gr_crstr_gpc_map0_r(void)
2636{
2637 return 0x00418b08U;
2638}
2639static inline u32 gr_crstr_gpc_map0_tile0_f(u32 v)
2640{
2641 return (v & 0x7U) << 0U;
2642}
2643static inline u32 gr_crstr_gpc_map0_tile1_f(u32 v)
2644{
2645 return (v & 0x7U) << 5U;
2646}
2647static inline u32 gr_crstr_gpc_map0_tile2_f(u32 v)
2648{
2649 return (v & 0x7U) << 10U;
2650}
2651static inline u32 gr_crstr_gpc_map0_tile3_f(u32 v)
2652{
2653 return (v & 0x7U) << 15U;
2654}
2655static inline u32 gr_crstr_gpc_map0_tile4_f(u32 v)
2656{
2657 return (v & 0x7U) << 20U;
2658}
2659static inline u32 gr_crstr_gpc_map0_tile5_f(u32 v)
2660{
2661 return (v & 0x7U) << 25U;
2662}
2663static inline u32 gr_crstr_gpc_map1_r(void)
2664{
2665 return 0x00418b0cU;
2666}
2667static inline u32 gr_crstr_gpc_map1_tile6_f(u32 v)
2668{
2669 return (v & 0x7U) << 0U;
2670}
2671static inline u32 gr_crstr_gpc_map1_tile7_f(u32 v)
2672{
2673 return (v & 0x7U) << 5U;
2674}
2675static inline u32 gr_crstr_gpc_map1_tile8_f(u32 v)
2676{
2677 return (v & 0x7U) << 10U;
2678}
2679static inline u32 gr_crstr_gpc_map1_tile9_f(u32 v)
2680{
2681 return (v & 0x7U) << 15U;
2682}
2683static inline u32 gr_crstr_gpc_map1_tile10_f(u32 v)
2684{
2685 return (v & 0x7U) << 20U;
2686}
2687static inline u32 gr_crstr_gpc_map1_tile11_f(u32 v)
2688{
2689 return (v & 0x7U) << 25U;
2690}
2691static inline u32 gr_crstr_gpc_map2_r(void)
2692{
2693 return 0x00418b10U;
2694}
2695static inline u32 gr_crstr_gpc_map2_tile12_f(u32 v)
2696{
2697 return (v & 0x7U) << 0U;
2698}
2699static inline u32 gr_crstr_gpc_map2_tile13_f(u32 v)
2700{
2701 return (v & 0x7U) << 5U;
2702}
2703static inline u32 gr_crstr_gpc_map2_tile14_f(u32 v)
2704{
2705 return (v & 0x7U) << 10U;
2706}
2707static inline u32 gr_crstr_gpc_map2_tile15_f(u32 v)
2708{
2709 return (v & 0x7U) << 15U;
2710}
2711static inline u32 gr_crstr_gpc_map2_tile16_f(u32 v)
2712{
2713 return (v & 0x7U) << 20U;
2714}
2715static inline u32 gr_crstr_gpc_map2_tile17_f(u32 v)
2716{
2717 return (v & 0x7U) << 25U;
2718}
2719static inline u32 gr_crstr_gpc_map3_r(void)
2720{
2721 return 0x00418b14U;
2722}
2723static inline u32 gr_crstr_gpc_map3_tile18_f(u32 v)
2724{
2725 return (v & 0x7U) << 0U;
2726}
2727static inline u32 gr_crstr_gpc_map3_tile19_f(u32 v)
2728{
2729 return (v & 0x7U) << 5U;
2730}
2731static inline u32 gr_crstr_gpc_map3_tile20_f(u32 v)
2732{
2733 return (v & 0x7U) << 10U;
2734}
2735static inline u32 gr_crstr_gpc_map3_tile21_f(u32 v)
2736{
2737 return (v & 0x7U) << 15U;
2738}
2739static inline u32 gr_crstr_gpc_map3_tile22_f(u32 v)
2740{
2741 return (v & 0x7U) << 20U;
2742}
2743static inline u32 gr_crstr_gpc_map3_tile23_f(u32 v)
2744{
2745 return (v & 0x7U) << 25U;
2746}
2747static inline u32 gr_crstr_gpc_map4_r(void)
2748{
2749 return 0x00418b18U;
2750}
2751static inline u32 gr_crstr_gpc_map4_tile24_f(u32 v)
2752{
2753 return (v & 0x7U) << 0U;
2754}
2755static inline u32 gr_crstr_gpc_map4_tile25_f(u32 v)
2756{
2757 return (v & 0x7U) << 5U;
2758}
2759static inline u32 gr_crstr_gpc_map4_tile26_f(u32 v)
2760{
2761 return (v & 0x7U) << 10U;
2762}
2763static inline u32 gr_crstr_gpc_map4_tile27_f(u32 v)
2764{
2765 return (v & 0x7U) << 15U;
2766}
2767static inline u32 gr_crstr_gpc_map4_tile28_f(u32 v)
2768{
2769 return (v & 0x7U) << 20U;
2770}
2771static inline u32 gr_crstr_gpc_map4_tile29_f(u32 v)
2772{
2773 return (v & 0x7U) << 25U;
2774}
2775static inline u32 gr_crstr_gpc_map5_r(void)
2776{
2777 return 0x00418b1cU;
2778}
2779static inline u32 gr_crstr_gpc_map5_tile30_f(u32 v)
2780{
2781 return (v & 0x7U) << 0U;
2782}
2783static inline u32 gr_crstr_gpc_map5_tile31_f(u32 v)
2784{
2785 return (v & 0x7U) << 5U;
2786}
2787static inline u32 gr_crstr_gpc_map5_tile32_f(u32 v)
2788{
2789 return (v & 0x7U) << 10U;
2790}
2791static inline u32 gr_crstr_gpc_map5_tile33_f(u32 v)
2792{
2793 return (v & 0x7U) << 15U;
2794}
2795static inline u32 gr_crstr_gpc_map5_tile34_f(u32 v)
2796{
2797 return (v & 0x7U) << 20U;
2798}
2799static inline u32 gr_crstr_gpc_map5_tile35_f(u32 v)
2800{
2801 return (v & 0x7U) << 25U;
2802}
2803static inline u32 gr_crstr_map_table_cfg_r(void)
2804{
2805 return 0x00418bb8U;
2806}
2807static inline u32 gr_crstr_map_table_cfg_row_offset_f(u32 v)
2808{
2809 return (v & 0xffU) << 0U;
2810}
2811static inline u32 gr_crstr_map_table_cfg_num_entries_f(u32 v)
2812{
2813 return (v & 0xffU) << 8U;
2814}
2815static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_r(void)
2816{
2817 return 0x00418980U;
2818}
2819static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_0_f(u32 v)
2820{
2821 return (v & 0x7U) << 0U;
2822}
2823static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_1_f(u32 v)
2824{
2825 return (v & 0x7U) << 4U;
2826}
2827static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_2_f(u32 v)
2828{
2829 return (v & 0x7U) << 8U;
2830}
2831static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_3_f(u32 v)
2832{
2833 return (v & 0x7U) << 12U;
2834}
2835static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_4_f(u32 v)
2836{
2837 return (v & 0x7U) << 16U;
2838}
2839static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_5_f(u32 v)
2840{
2841 return (v & 0x7U) << 20U;
2842}
2843static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_6_f(u32 v)
2844{
2845 return (v & 0x7U) << 24U;
2846}
2847static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_7_f(u32 v)
2848{
2849 return (v & 0x7U) << 28U;
2850}
2851static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_r(void)
2852{
2853 return 0x00418984U;
2854}
2855static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_8_f(u32 v)
2856{
2857 return (v & 0x7U) << 0U;
2858}
2859static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_9_f(u32 v)
2860{
2861 return (v & 0x7U) << 4U;
2862}
2863static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_10_f(u32 v)
2864{
2865 return (v & 0x7U) << 8U;
2866}
2867static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_11_f(u32 v)
2868{
2869 return (v & 0x7U) << 12U;
2870}
2871static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_12_f(u32 v)
2872{
2873 return (v & 0x7U) << 16U;
2874}
2875static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_13_f(u32 v)
2876{
2877 return (v & 0x7U) << 20U;
2878}
2879static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_14_f(u32 v)
2880{
2881 return (v & 0x7U) << 24U;
2882}
2883static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_15_f(u32 v)
2884{
2885 return (v & 0x7U) << 28U;
2886}
2887static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_r(void)
2888{
2889 return 0x00418988U;
2890}
2891static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_16_f(u32 v)
2892{
2893 return (v & 0x7U) << 0U;
2894}
2895static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_17_f(u32 v)
2896{
2897 return (v & 0x7U) << 4U;
2898}
2899static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_18_f(u32 v)
2900{
2901 return (v & 0x7U) << 8U;
2902}
2903static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_19_f(u32 v)
2904{
2905 return (v & 0x7U) << 12U;
2906}
2907static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_20_f(u32 v)
2908{
2909 return (v & 0x7U) << 16U;
2910}
2911static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_21_f(u32 v)
2912{
2913 return (v & 0x7U) << 20U;
2914}
2915static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_22_f(u32 v)
2916{
2917 return (v & 0x7U) << 24U;
2918}
2919static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_s(void)
2920{
2921 return 3U;
2922}
2923static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_f(u32 v)
2924{
2925 return (v & 0x7U) << 28U;
2926}
2927static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_m(void)
2928{
2929 return 0x7U << 28U;
2930}
2931static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_v(u32 r)
2932{
2933 return (r >> 28U) & 0x7U;
2934}
2935static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_r(void)
2936{
2937 return 0x0041898cU;
2938}
2939static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_24_f(u32 v)
2940{
2941 return (v & 0x7U) << 0U;
2942}
2943static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_25_f(u32 v)
2944{
2945 return (v & 0x7U) << 4U;
2946}
2947static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_26_f(u32 v)
2948{
2949 return (v & 0x7U) << 8U;
2950}
2951static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_27_f(u32 v)
2952{
2953 return (v & 0x7U) << 12U;
2954}
2955static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_28_f(u32 v)
2956{
2957 return (v & 0x7U) << 16U;
2958}
2959static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_29_f(u32 v)
2960{
2961 return (v & 0x7U) << 20U;
2962}
2963static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_30_f(u32 v)
2964{
2965 return (v & 0x7U) << 24U;
2966}
2967static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_31_f(u32 v)
2968{
2969 return (v & 0x7U) << 28U;
2970}
2971static inline u32 gr_gpcs_gpm_pd_cfg_r(void)
2972{
2973 return 0x00418c6cU;
2974}
2975static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_disable_f(void)
2976{
2977 return 0x0U;
2978}
2979static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_enable_f(void)
2980{
2981 return 0x1U;
2982}
2983static inline u32 gr_gpcs_gcc_pagepool_base_r(void)
2984{
2985 return 0x00419004U;
2986}
2987static inline u32 gr_gpcs_gcc_pagepool_base_addr_39_8_f(u32 v)
2988{
2989 return (v & 0xffffffffU) << 0U;
2990}
2991static inline u32 gr_gpcs_gcc_pagepool_r(void)
2992{
2993 return 0x00419008U;
2994}
2995static inline u32 gr_gpcs_gcc_pagepool_total_pages_f(u32 v)
2996{
2997 return (v & 0xffU) << 0U;
2998}
2999static inline u32 gr_gpcs_tpcs_pe_vaf_r(void)
3000{
3001 return 0x0041980cU;
3002}
3003static inline u32 gr_gpcs_tpcs_pe_vaf_fast_mode_switch_true_f(void)
3004{
3005 return 0x10U;
3006}
3007static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_r(void)
3008{
3009 return 0x00419848U;
3010}
3011static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_v_f(u32 v)
3012{
3013 return (v & 0xfffffffU) << 0U;
3014}
3015static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_f(u32 v)
3016{
3017 return (v & 0x1U) << 28U;
3018}
3019static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_true_f(void)
3020{
3021 return 0x10000000U;
3022}
3023static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_r(void)
3024{
3025 return 0x00419c00U;
3026}
3027static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_disabled_f(void)
3028{
3029 return 0x0U;
3030}
3031static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_enabled_f(void)
3032{
3033 return 0x8U;
3034}
3035static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_r(void)
3036{
3037 return 0x00419c2cU;
3038}
3039static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_v_f(u32 v)
3040{
3041 return (v & 0xfffffffU) << 0U;
3042}
3043static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_f(u32 v)
3044{
3045 return (v & 0x1U) << 28U;
3046}
3047static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_true_f(void)
3048{
3049 return 0x10000000U;
3050}
3051static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_r(void)
3052{
3053 return 0x00419e44U;
3054}
3055static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_stack_error_report_f(void)
3056{
3057 return 0x2U;
3058}
3059static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_api_stack_error_report_f(void)
3060{
3061 return 0x4U;
3062}
3063static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_ret_empty_stack_error_report_f(void)
3064{
3065 return 0x8U;
3066}
3067static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_wrap_report_f(void)
3068{
3069 return 0x10U;
3070}
3071static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_pc_report_f(void)
3072{
3073 return 0x20U;
3074}
3075static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_overflow_report_f(void)
3076{
3077 return 0x40U;
3078}
3079static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_immc_addr_report_f(void)
3080{
3081 return 0x80U;
3082}
3083static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_reg_report_f(void)
3084{
3085 return 0x100U;
3086}
3087static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_encoding_report_f(void)
3088{
3089 return 0x200U;
3090}
3091static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_sph_instr_combo_report_f(void)
3092{
3093 return 0x400U;
3094}
3095static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param_report_f(void)
3096{
3097 return 0x800U;
3098}
3099static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_report_f(void)
3100{
3101 return 0x1000U;
3102}
3103static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_reg_report_f(void)
3104{
3105 return 0x2000U;
3106}
3107static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_addr_report_f(void)
3108{
3109 return 0x4000U;
3110}
3111static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_addr_report_f(void)
3112{
3113 return 0x8000U;
3114}
3115static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_addr_space_report_f(void)
3116{
3117 return 0x10000U;
3118}
3119static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param2_report_f(void)
3120{
3121 return 0x20000U;
3122}
3123static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_ldc_report_f(void)
3124{
3125 return 0x40000U;
3126}
3127static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_mmu_fault_report_f(void)
3128{
3129 return 0x800000U;
3130}
3131static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_stack_overflow_report_f(void)
3132{
3133 return 0x400000U;
3134}
3135static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_geometry_sm_error_report_f(void)
3136{
3137 return 0x80000U;
3138}
3139static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_divergent_report_f(void)
3140{
3141 return 0x100000U;
3142}
3143static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_report_mask_r(void)
3144{
3145 return 0x00504644U;
3146}
3147static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_r(void)
3148{
3149 return 0x00419e4cU;
3150}
3151static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_sm_to_sm_fault_report_f(void)
3152{
3153 return 0x1U;
3154}
3155static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_l1_error_report_f(void)
3156{
3157 return 0x2U;
3158}
3159static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_multiple_warp_errors_report_f(void)
3160{
3161 return 0x4U;
3162}
3163static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_physical_stack_overflow_error_report_f(void)
3164{
3165 return 0x8U;
3166}
3167static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_int_report_f(void)
3168{
3169 return 0x10U;
3170}
3171static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_pause_report_f(void)
3172{
3173 return 0x20U;
3174}
3175static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_single_step_complete_report_f(void)
3176{
3177 return 0x40U;
3178}
3179static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_report_mask_r(void)
3180{
3181 return 0x0050464cU;
3182}
3183static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_r(void)
3184{
3185 return 0x00419d0cU;
3186}
3187static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_sm_enabled_f(void)
3188{
3189 return 0x2U;
3190}
3191static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_tex_enabled_f(void)
3192{
3193 return 0x1U;
3194}
3195static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
3196{
3197 return 0x0050450cU;
3198}
3199static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_enabled_f(void)
3200{
3201 return 0x2U;
3202}
3203static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_v(u32 r)
3204{
3205 return (r >> 1U) & 0x1U;
3206}
3207static inline u32 gr_gpcs_gpccs_gpc_exception_en_r(void)
3208{
3209 return 0x0041ac94U;
3210}
3211static inline u32 gr_gpcs_gpccs_gpc_exception_en_tpc_f(u32 v)
3212{
3213 return (v & 0xffU) << 16U;
3214}
3215static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
3216{
3217 return 0x00502c90U;
3218}
3219static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r)
3220{
3221 return (r >> 2U) & 0x1U;
3222}
3223static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
3224{
3225 return (r >> 16U) & 0xffU;
3226}
3227static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_0_pending_v(void)
3228{
3229 return 0x00000001U;
3230}
3231static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_r(void)
3232{
3233 return 0x00504508U;
3234}
3235static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_v(u32 r)
3236{
3237 return (r >> 0U) & 0x1U;
3238}
3239static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_pending_v(void)
3240{
3241 return 0x00000001U;
3242}
3243static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_v(u32 r)
3244{
3245 return (r >> 1U) & 0x1U;
3246}
3247static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_pending_v(void)
3248{
3249 return 0x00000001U;
3250}
3251static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_r(void)
3252{
3253 return 0x00504610U;
3254}
3255static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_m(void)
3256{
3257 return 0x1U << 0U;
3258}
3259static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_v(u32 r)
3260{
3261 return (r >> 0U) & 0x1U;
3262}
3263static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_on_v(void)
3264{
3265 return 0x00000001U;
3266}
3267static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_on_f(void)
3268{
3269 return 0x1U;
3270}
3271static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_off_v(void)
3272{
3273 return 0x00000000U;
3274}
3275static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_off_f(void)
3276{
3277 return 0x0U;
3278}
3279static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_enable_f(void)
3280{
3281 return 0x80000000U;
3282}
3283static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_disable_f(void)
3284{
3285 return 0x0U;
3286}
3287static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_single_step_mode_enable_f(void)
3288{
3289 return 0x8U;
3290}
3291static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_single_step_mode_disable_f(void)
3292{
3293 return 0x0U;
3294}
3295static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_run_trigger_task_f(void)
3296{
3297 return 0x40000000U;
3298}
3299static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_m(void)
3300{
3301 return 0x1U << 1U;
3302}
3303static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_v(u32 r)
3304{
3305 return (r >> 1U) & 0x1U;
3306}
3307static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_disable_f(void)
3308{
3309 return 0x0U;
3310}
3311static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_m(void)
3312{
3313 return 0x1U << 2U;
3314}
3315static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_v(u32 r)
3316{
3317 return (r >> 2U) & 0x1U;
3318}
3319static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_disable_f(void)
3320{
3321 return 0x0U;
3322}
3323static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_stop_on_any_warp_disable_v(void)
3324{
3325 return 0x00000000U;
3326}
3327static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_stop_on_any_sm_disable_v(void)
3328{
3329 return 0x00000000U;
3330}
3331static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_r(void)
3332{
3333 return 0x00504614U;
3334}
3335static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_1_r(void)
3336{
3337 return 0x00504618U;
3338}
3339static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_2_r(void)
3340{
3341 return 0x0050461cU;
3342}
3343static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_r(void)
3344{
3345 return 0x00504624U;
3346}
3347static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_1_r(void)
3348{
3349 return 0x00504628U;
3350}
3351static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_2_r(void)
3352{
3353 return 0x00504750U;
3354}
3355static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_r(void)
3356{
3357 return 0x00504634U;
3358}
3359static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_1_r(void)
3360{
3361 return 0x00504638U;
3362}
3363static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_2_r(void)
3364{
3365 return 0x00504758U;
3366}
3367static inline u32 gr_gpcs_tpcs_sm_dbgr_bpt_pause_mask_r(void)
3368{
3369 return 0x00419e24U;
3370}
3371static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_r(void)
3372{
3373 return 0x0050460cU;
3374}
3375static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_sm_in_trap_mode_v(u32 r)
3376{
3377 return (r >> 0U) & 0x1U;
3378}
3379static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_v(u32 r)
3380{
3381 return (r >> 4U) & 0x1U;
3382}
3383static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_true_v(void)
3384{
3385 return 0x00000001U;
3386}
3387static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_r(void)
3388{
3389 return 0x00419e50U;
3390}
3391static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_int_pending_f(void)
3392{
3393 return 0x10U;
3394}
3395static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_pause_pending_f(void)
3396{
3397 return 0x20U;
3398}
3399static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_single_step_complete_pending_f(void)
3400{
3401 return 0x40U;
3402}
3403static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_sm_to_sm_fault_pending_f(void)
3404{
3405 return 0x1U;
3406}
3407static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_l1_error_pending_f(void)
3408{
3409 return 0x2U;
3410}
3411static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_multiple_warp_errors_pending_f(void)
3412{
3413 return 0x4U;
3414}
3415static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_physical_stack_overflow_error_pending_f(void)
3416{
3417 return 0x8U;
3418}
3419static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_timeout_error_pending_f(void)
3420{
3421 return 0x80000000U;
3422}
3423static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_r(void)
3424{
3425 return 0x00504650U;
3426}
3427static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_int_pending_f(void)
3428{
3429 return 0x10U;
3430}
3431static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_pause_pending_f(void)
3432{
3433 return 0x20U;
3434}
3435static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_single_step_complete_pending_f(void)
3436{
3437 return 0x40U;
3438}
3439static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_sm_to_sm_fault_pending_f(void)
3440{
3441 return 0x1U;
3442}
3443static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_l1_error_pending_f(void)
3444{
3445 return 0x2U;
3446}
3447static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_multiple_warp_errors_pending_f(void)
3448{
3449 return 0x4U;
3450}
3451static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_physical_stack_overflow_error_pending_f(void)
3452{
3453 return 0x8U;
3454}
3455static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_timeout_error_pending_f(void)
3456{
3457 return 0x80000000U;
3458}
3459static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_r(void)
3460{
3461 return 0x00504224U;
3462}
3463static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_intr_pending_f(void)
3464{
3465 return 0x1U;
3466}
3467static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_r(void)
3468{
3469 return 0x00504648U;
3470}
3471static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_v(u32 r)
3472{
3473 return (r >> 0U) & 0xffffU;
3474}
3475static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_v(void)
3476{
3477 return 0x00000000U;
3478}
3479static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_f(void)
3480{
3481 return 0x0U;
3482}
3483static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_pc_r(void)
3484{
3485 return 0x00504654U;
3486}
3487static inline u32 gr_gpc0_tpc0_sm_halfctl_ctrl_r(void)
3488{
3489 return 0x00504770U;
3490}
3491static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_r(void)
3492{
3493 return 0x00419f70U;
3494}
3495static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_m(void)
3496{
3497 return 0x1U << 4U;
3498}
3499static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_f(u32 v)
3500{
3501 return (v & 0x1U) << 4U;
3502}
3503static inline u32 gr_gpc0_tpc0_sm_debug_sfe_control_r(void)
3504{
3505 return 0x0050477cU;
3506}
3507static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_r(void)
3508{
3509 return 0x00419f7cU;
3510}
3511static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_m(void)
3512{
3513 return 0x1U << 0U;
3514}
3515static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_f(u32 v)
3516{
3517 return (v & 0x1U) << 0U;
3518}
3519static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_r(void)
3520{
3521 return 0x0041be08U;
3522}
3523static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_fast_mode_switch_true_f(void)
3524{
3525 return 0x4U;
3526}
3527static inline u32 gr_ppcs_wwdx_map_gpc_map0_r(void)
3528{
3529 return 0x0041bf00U;
3530}
3531static inline u32 gr_ppcs_wwdx_map_gpc_map1_r(void)
3532{
3533 return 0x0041bf04U;
3534}
3535static inline u32 gr_ppcs_wwdx_map_gpc_map2_r(void)
3536{
3537 return 0x0041bf08U;
3538}
3539static inline u32 gr_ppcs_wwdx_map_gpc_map3_r(void)
3540{
3541 return 0x0041bf0cU;
3542}
3543static inline u32 gr_ppcs_wwdx_map_gpc_map4_r(void)
3544{
3545 return 0x0041bf10U;
3546}
3547static inline u32 gr_ppcs_wwdx_map_gpc_map5_r(void)
3548{
3549 return 0x0041bf14U;
3550}
3551static inline u32 gr_ppcs_wwdx_map_table_cfg_r(void)
3552{
3553 return 0x0041bfd0U;
3554}
3555static inline u32 gr_ppcs_wwdx_map_table_cfg_row_offset_f(u32 v)
3556{
3557 return (v & 0xffU) << 0U;
3558}
3559static inline u32 gr_ppcs_wwdx_map_table_cfg_num_entries_f(u32 v)
3560{
3561 return (v & 0xffU) << 8U;
3562}
3563static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_num_entries_f(u32 v)
3564{
3565 return (v & 0x1fU) << 16U;
3566}
3567static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_shift_value_f(u32 v)
3568{
3569 return (v & 0x7U) << 21U;
3570}
3571static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff5_mod_value_f(u32 v)
3572{
3573 return (v & 0x1fU) << 24U;
3574}
3575static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_r(void)
3576{
3577 return 0x0041bfd4U;
3578}
3579static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_conservative_f(u32 v)
3580{
3581 return (v & 0xffffffU) << 0U;
3582}
3583static inline u32 gr_ppcs_wwdx_map_table_cfg2_r(void)
3584{
3585 return 0x0041bfe4U;
3586}
3587static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff6_mod_value_f(u32 v)
3588{
3589 return (v & 0x1fU) << 0U;
3590}
3591static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff7_mod_value_f(u32 v)
3592{
3593 return (v & 0x1fU) << 5U;
3594}
3595static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff8_mod_value_f(u32 v)
3596{
3597 return (v & 0x1fU) << 10U;
3598}
3599static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff9_mod_value_f(u32 v)
3600{
3601 return (v & 0x1fU) << 15U;
3602}
3603static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff10_mod_value_f(u32 v)
3604{
3605 return (v & 0x1fU) << 20U;
3606}
3607static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff11_mod_value_f(u32 v)
3608{
3609 return (v & 0x1fU) << 25U;
3610}
3611static inline u32 gr_bes_zrop_settings_r(void)
3612{
3613 return 0x00408850U;
3614}
3615static inline u32 gr_bes_zrop_settings_num_active_ltcs_f(u32 v)
3616{
3617 return (v & 0xfU) << 0U;
3618}
3619static inline u32 gr_be0_crop_debug3_r(void)
3620{
3621 return 0x00410108U;
3622}
3623static inline u32 gr_bes_crop_debug3_r(void)
3624{
3625 return 0x00408908U;
3626}
3627static inline u32 gr_bes_crop_debug3_comp_vdc_4to2_disable_m(void)
3628{
3629 return 0x1U << 31U;
3630}
3631static inline u32 gr_bes_crop_settings_r(void)
3632{
3633 return 0x00408958U;
3634}
3635static inline u32 gr_bes_crop_settings_num_active_ltcs_f(u32 v)
3636{
3637 return (v & 0xfU) << 0U;
3638}
3639static inline u32 gr_zcull_bytes_per_aliquot_per_gpu_v(void)
3640{
3641 return 0x00000020U;
3642}
3643static inline u32 gr_zcull_save_restore_header_bytes_per_gpc_v(void)
3644{
3645 return 0x00000020U;
3646}
3647static inline u32 gr_zcull_save_restore_subregion_header_bytes_per_gpc_v(void)
3648{
3649 return 0x000000c0U;
3650}
3651static inline u32 gr_zcull_subregion_qty_v(void)
3652{
3653 return 0x00000010U;
3654}
3655static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel0_r(void)
3656{
3657 return 0x00504604U;
3658}
3659static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel1_r(void)
3660{
3661 return 0x00504608U;
3662}
3663static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control0_r(void)
3664{
3665 return 0x0050465cU;
3666}
3667static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control1_r(void)
3668{
3669 return 0x00504660U;
3670}
3671static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control2_r(void)
3672{
3673 return 0x00504664U;
3674}
3675static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control3_r(void)
3676{
3677 return 0x00504668U;
3678}
3679static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control4_r(void)
3680{
3681 return 0x0050466cU;
3682}
3683static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control5_r(void)
3684{
3685 return 0x00504658U;
3686}
3687static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_control_r(void)
3688{
3689 return 0x00504730U;
3690}
3691static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_control_r(void)
3692{
3693 return 0x00504734U;
3694}
3695static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_control_r(void)
3696{
3697 return 0x00504738U;
3698}
3699static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_control_r(void)
3700{
3701 return 0x0050473cU;
3702}
3703static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter4_control_r(void)
3704{
3705 return 0x00504740U;
3706}
3707static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter5_control_r(void)
3708{
3709 return 0x00504744U;
3710}
3711static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter6_control_r(void)
3712{
3713 return 0x00504748U;
3714}
3715static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter7_control_r(void)
3716{
3717 return 0x0050474cU;
3718}
3719static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status_s1_r(void)
3720{
3721 return 0x00504678U;
3722}
3723static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status1_r(void)
3724{
3725 return 0x00504694U;
3726}
3727static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_s0_r(void)
3728{
3729 return 0x005046f0U;
3730}
3731static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_s1_r(void)
3732{
3733 return 0x00504700U;
3734}
3735static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_s0_r(void)
3736{
3737 return 0x005046f4U;
3738}
3739static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_s1_r(void)
3740{
3741 return 0x00504704U;
3742}
3743static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_s0_r(void)
3744{
3745 return 0x005046f8U;
3746}
3747static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_s1_r(void)
3748{
3749 return 0x00504708U;
3750}
3751static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_s0_r(void)
3752{
3753 return 0x005046fcU;
3754}
3755static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_s1_r(void)
3756{
3757 return 0x0050470cU;
3758}
3759static inline u32 gr_fe_pwr_mode_r(void)
3760{
3761 return 0x00404170U;
3762}
3763static inline u32 gr_fe_pwr_mode_mode_auto_f(void)
3764{
3765 return 0x0U;
3766}
3767static inline u32 gr_fe_pwr_mode_mode_force_on_f(void)
3768{
3769 return 0x2U;
3770}
3771static inline u32 gr_fe_pwr_mode_req_v(u32 r)
3772{
3773 return (r >> 4U) & 0x1U;
3774}
3775static inline u32 gr_fe_pwr_mode_req_send_f(void)
3776{
3777 return 0x10U;
3778}
3779static inline u32 gr_fe_pwr_mode_req_done_v(void)
3780{
3781 return 0x00000000U;
3782}
3783static inline u32 gr_gpcs_pri_mmu_ctrl_r(void)
3784{
3785 return 0x00418880U;
3786}
3787static inline u32 gr_gpcs_pri_mmu_ctrl_vm_pg_size_m(void)
3788{
3789 return 0x1U << 0U;
3790}
3791static inline u32 gr_gpcs_pri_mmu_ctrl_use_pdb_big_page_size_m(void)
3792{
3793 return 0x1U << 11U;
3794}
3795static inline u32 gr_gpcs_pri_mmu_ctrl_use_full_comp_tag_line_m(void)
3796{
3797 return 0x1U << 12U;
3798}
3799static inline u32 gr_gpcs_pri_mmu_ctrl_vol_fault_m(void)
3800{
3801 return 0x1U << 1U;
3802}
3803static inline u32 gr_gpcs_pri_mmu_ctrl_comp_fault_m(void)
3804{
3805 return 0x1U << 2U;
3806}
3807static inline u32 gr_gpcs_pri_mmu_ctrl_miss_gran_m(void)
3808{
3809 return 0x3U << 3U;
3810}
3811static inline u32 gr_gpcs_pri_mmu_ctrl_cache_mode_m(void)
3812{
3813 return 0x3U << 5U;
3814}
3815static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_aperture_m(void)
3816{
3817 return 0x3U << 28U;
3818}
3819static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_vol_m(void)
3820{
3821 return 0x1U << 30U;
3822}
3823static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_disable_m(void)
3824{
3825 return 0x1U << 31U;
3826}
3827static inline u32 gr_gpcs_pri_mmu_pm_unit_mask_r(void)
3828{
3829 return 0x00418890U;
3830}
3831static inline u32 gr_gpcs_pri_mmu_pm_req_mask_r(void)
3832{
3833 return 0x00418894U;
3834}
3835static inline u32 gr_gpcs_pri_mmu_debug_ctrl_r(void)
3836{
3837 return 0x004188b0U;
3838}
3839static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_m(void)
3840{
3841 return 0x1U << 16U;
3842}
3843static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_v(u32 r)
3844{
3845 return (r >> 16U) & 0x1U;
3846}
3847static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v(void)
3848{
3849 return 0x00000001U;
3850}
3851static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_f(void)
3852{
3853 return 0x10000U;
3854}
3855static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_disabled_v(void)
3856{
3857 return 0x00000000U;
3858}
3859static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_disabled_f(void)
3860{
3861 return 0x0U;
3862}
3863static inline u32 gr_gpcs_pri_mmu_debug_wr_r(void)
3864{
3865 return 0x004188b4U;
3866}
3867static inline u32 gr_gpcs_pri_mmu_debug_rd_r(void)
3868{
3869 return 0x004188b8U;
3870}
3871static inline u32 gr_gpcs_mmu_num_active_ltcs_r(void)
3872{
3873 return 0x004188acU;
3874}
3875static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_r(void)
3876{
3877 return 0x00419e10U;
3878}
3879static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_f(u32 v)
3880{
3881 return (v & 0x1U) << 0U;
3882}
3883static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_on_v(void)
3884{
3885 return 0x00000001U;
3886}
3887static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_m(void)
3888{
3889 return 0x1U << 31U;
3890}
3891static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_v(u32 r)
3892{
3893 return (r >> 31U) & 0x1U;
3894}
3895static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_enable_f(void)
3896{
3897 return 0x80000000U;
3898}
3899static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_disable_f(void)
3900{
3901 return 0x0U;
3902}
3903static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_m(void)
3904{
3905 return 0x1U << 3U;
3906}
3907static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_enable_f(void)
3908{
3909 return 0x8U;
3910}
3911static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_disable_f(void)
3912{
3913 return 0x0U;
3914}
3915static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_m(void)
3916{
3917 return 0x1U << 30U;
3918}
3919static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_v(u32 r)
3920{
3921 return (r >> 30U) & 0x1U;
3922}
3923static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_task_f(void)
3924{
3925 return 0x40000000U;
3926}
3927#endif
diff --git a/include/nvgpu/hw/gm20b/hw_ltc_gm20b.h b/include/nvgpu/hw/gm20b/hw_ltc_gm20b.h
new file mode 100644
index 0000000..2c3ebb4
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_ltc_gm20b.h
@@ -0,0 +1,527 @@
1/*
2 * Copyright (c) 2014-2017, 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_ltc_gm20b_h_
57#define _hw_ltc_gm20b_h_
58
59static inline u32 ltc_pltcg_base_v(void)
60{
61 return 0x00140000U;
62}
63static inline u32 ltc_pltcg_extent_v(void)
64{
65 return 0x0017ffffU;
66}
67static inline u32 ltc_ltc0_ltss_v(void)
68{
69 return 0x00140200U;
70}
71static inline u32 ltc_ltc0_lts0_v(void)
72{
73 return 0x00140400U;
74}
75static inline u32 ltc_ltcs_ltss_v(void)
76{
77 return 0x0017e200U;
78}
79static inline u32 ltc_ltcs_lts0_cbc_ctrl1_r(void)
80{
81 return 0x0014046cU;
82}
83static inline u32 ltc_ltc0_lts0_dstg_cfg0_r(void)
84{
85 return 0x00140518U;
86}
87static inline u32 ltc_ltcs_ltss_dstg_cfg0_r(void)
88{
89 return 0x0017e318U;
90}
91static inline u32 ltc_ltcs_ltss_dstg_cfg0_vdc_4to2_disable_m(void)
92{
93 return 0x1U << 15U;
94}
95static inline u32 ltc_ltc0_lts0_tstg_cfg1_r(void)
96{
97 return 0x00140494U;
98}
99static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_ways_v(u32 r)
100{
101 return (r >> 0U) & 0xffffU;
102}
103static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_v(u32 r)
104{
105 return (r >> 16U) & 0x3U;
106}
107static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_all_v(void)
108{
109 return 0x00000000U;
110}
111static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_half_v(void)
112{
113 return 0x00000001U;
114}
115static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_quarter_v(void)
116{
117 return 0x00000002U;
118}
119static inline u32 ltc_ltcs_ltss_cbc_ctrl1_r(void)
120{
121 return 0x0017e26cU;
122}
123static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clean_active_f(void)
124{
125 return 0x1U;
126}
127static inline u32 ltc_ltcs_ltss_cbc_ctrl1_invalidate_active_f(void)
128{
129 return 0x2U;
130}
131static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_v(u32 r)
132{
133 return (r >> 2U) & 0x1U;
134}
135static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_v(void)
136{
137 return 0x00000001U;
138}
139static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_f(void)
140{
141 return 0x4U;
142}
143static inline u32 ltc_ltc0_lts0_cbc_ctrl1_r(void)
144{
145 return 0x0014046cU;
146}
147static inline u32 ltc_ltcs_ltss_cbc_ctrl2_r(void)
148{
149 return 0x0017e270U;
150}
151static inline u32 ltc_ltcs_ltss_cbc_ctrl2_clear_lower_bound_f(u32 v)
152{
153 return (v & 0x1ffffU) << 0U;
154}
155static inline u32 ltc_ltcs_ltss_cbc_ctrl3_r(void)
156{
157 return 0x0017e274U;
158}
159static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_f(u32 v)
160{
161 return (v & 0x1ffffU) << 0U;
162}
163static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_init_v(void)
164{
165 return 0x0001ffffU;
166}
167static inline u32 ltc_ltcs_ltss_cbc_base_r(void)
168{
169 return 0x0017e278U;
170}
171static inline u32 ltc_ltcs_ltss_cbc_base_alignment_shift_v(void)
172{
173 return 0x0000000bU;
174}
175static inline u32 ltc_ltcs_ltss_cbc_base_address_v(u32 r)
176{
177 return (r >> 0U) & 0x3ffffffU;
178}
179static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_r(void)
180{
181 return 0x0017e27cU;
182}
183static inline u32 ltc_ltcs_misc_ltc_num_active_ltcs_r(void)
184{
185 return 0x0017e000U;
186}
187static inline u32 ltc_ltcs_ltss_cbc_param_r(void)
188{
189 return 0x0017e280U;
190}
191static inline u32 ltc_ltcs_ltss_cbc_param_comptags_per_cache_line_v(u32 r)
192{
193 return (r >> 0U) & 0xffffU;
194}
195static inline u32 ltc_ltcs_ltss_cbc_param_cache_line_size_v(u32 r)
196{
197 return (r >> 24U) & 0xfU;
198}
199static inline u32 ltc_ltcs_ltss_cbc_param_slices_per_ltc_v(u32 r)
200{
201 return (r >> 28U) & 0xfU;
202}
203static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_r(void)
204{
205 return 0x0017e2acU;
206}
207static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_max_ways_evict_last_f(u32 v)
208{
209 return (v & 0x1fU) << 16U;
210}
211static inline u32 ltc_ltcs_ltss_dstg_zbc_index_r(void)
212{
213 return 0x0017e338U;
214}
215static inline u32 ltc_ltcs_ltss_dstg_zbc_index_address_f(u32 v)
216{
217 return (v & 0xfU) << 0U;
218}
219static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value_r(u32 i)
220{
221 return 0x0017e33cU + i*4U;
222}
223static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value__size_1_v(void)
224{
225 return 0x00000004U;
226}
227static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_r(void)
228{
229 return 0x0017e34cU;
230}
231static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_s(void)
232{
233 return 32U;
234}
235static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_f(u32 v)
236{
237 return (v & 0xffffffffU) << 0U;
238}
239static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_m(void)
240{
241 return 0xffffffffU << 0U;
242}
243static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_v(u32 r)
244{
245 return (r >> 0U) & 0xffffffffU;
246}
247static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_r(void)
248{
249 return 0x0017e2b0U;
250}
251static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_l2_bypass_mode_enabled_f(void)
252{
253 return 0x10000000U;
254}
255static inline u32 ltc_ltcs_ltss_g_elpg_r(void)
256{
257 return 0x0017e214U;
258}
259static inline u32 ltc_ltcs_ltss_g_elpg_flush_v(u32 r)
260{
261 return (r >> 0U) & 0x1U;
262}
263static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_v(void)
264{
265 return 0x00000001U;
266}
267static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_f(void)
268{
269 return 0x1U;
270}
271static inline u32 ltc_ltc0_ltss_g_elpg_r(void)
272{
273 return 0x00140214U;
274}
275static inline u32 ltc_ltc0_ltss_g_elpg_flush_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_v(void)
280{
281 return 0x00000001U;
282}
283static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_f(void)
284{
285 return 0x1U;
286}
287static inline u32 ltc_ltc1_ltss_g_elpg_r(void)
288{
289 return 0x00142214U;
290}
291static inline u32 ltc_ltc1_ltss_g_elpg_flush_v(u32 r)
292{
293 return (r >> 0U) & 0x1U;
294}
295static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_v(void)
296{
297 return 0x00000001U;
298}
299static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_f(void)
300{
301 return 0x1U;
302}
303static inline u32 ltc_ltcs_ltss_intr_r(void)
304{
305 return 0x0017e20cU;
306}
307static inline u32 ltc_ltcs_ltss_intr_en_evicted_cb_m(void)
308{
309 return 0x1U << 20U;
310}
311static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(void)
312{
313 return 0x1U << 30U;
314}
315static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_m(void)
316{
317 return 0x1U << 21U;
318}
319static inline u32 ltc_ltc0_lts0_intr_r(void)
320{
321 return 0x0014040cU;
322}
323static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_r(void)
324{
325 return 0x0017e2a0U;
326}
327static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_v(u32 r)
328{
329 return (r >> 0U) & 0x1U;
330}
331static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_v(void)
332{
333 return 0x00000001U;
334}
335static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_f(void)
336{
337 return 0x1U;
338}
339static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_v(u32 r)
340{
341 return (r >> 8U) & 0xfU;
342}
343static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_v(void)
344{
345 return 0x00000003U;
346}
347static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_f(void)
348{
349 return 0x300U;
350}
351static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_v(u32 r)
352{
353 return (r >> 28U) & 0x1U;
354}
355static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_v(void)
356{
357 return 0x00000001U;
358}
359static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_f(void)
360{
361 return 0x10000000U;
362}
363static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_v(u32 r)
364{
365 return (r >> 29U) & 0x1U;
366}
367static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_v(void)
368{
369 return 0x00000001U;
370}
371static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_f(void)
372{
373 return 0x20000000U;
374}
375static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_v(u32 r)
376{
377 return (r >> 30U) & 0x1U;
378}
379static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_v(void)
380{
381 return 0x00000001U;
382}
383static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_f(void)
384{
385 return 0x40000000U;
386}
387static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_r(void)
388{
389 return 0x0017e2a4U;
390}
391static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_v(u32 r)
392{
393 return (r >> 0U) & 0x1U;
394}
395static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_v(void)
396{
397 return 0x00000001U;
398}
399static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_f(void)
400{
401 return 0x1U;
402}
403static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_v(u32 r)
404{
405 return (r >> 8U) & 0xfU;
406}
407static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_v(void)
408{
409 return 0x00000003U;
410}
411static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_f(void)
412{
413 return 0x300U;
414}
415static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_v(u32 r)
416{
417 return (r >> 16U) & 0x1U;
418}
419static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_v(void)
420{
421 return 0x00000001U;
422}
423static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_f(void)
424{
425 return 0x10000U;
426}
427static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_v(u32 r)
428{
429 return (r >> 28U) & 0x1U;
430}
431static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_v(void)
432{
433 return 0x00000001U;
434}
435static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_f(void)
436{
437 return 0x10000000U;
438}
439static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_v(u32 r)
440{
441 return (r >> 29U) & 0x1U;
442}
443static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_v(void)
444{
445 return 0x00000001U;
446}
447static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_f(void)
448{
449 return 0x20000000U;
450}
451static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_v(u32 r)
452{
453 return (r >> 30U) & 0x1U;
454}
455static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_v(void)
456{
457 return 0x00000001U;
458}
459static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_f(void)
460{
461 return 0x40000000U;
462}
463static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_r(void)
464{
465 return 0x001402a0U;
466}
467static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_v(u32 r)
468{
469 return (r >> 0U) & 0x1U;
470}
471static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_v(void)
472{
473 return 0x00000001U;
474}
475static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_f(void)
476{
477 return 0x1U;
478}
479static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_r(void)
480{
481 return 0x001402a4U;
482}
483static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_v(u32 r)
484{
485 return (r >> 0U) & 0x1U;
486}
487static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_v(void)
488{
489 return 0x00000001U;
490}
491static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_f(void)
492{
493 return 0x1U;
494}
495static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_r(void)
496{
497 return 0x001422a0U;
498}
499static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_v(u32 r)
500{
501 return (r >> 0U) & 0x1U;
502}
503static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_v(void)
504{
505 return 0x00000001U;
506}
507static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_f(void)
508{
509 return 0x1U;
510}
511static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_r(void)
512{
513 return 0x001422a4U;
514}
515static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_v(u32 r)
516{
517 return (r >> 0U) & 0x1U;
518}
519static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_v(void)
520{
521 return 0x00000001U;
522}
523static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_f(void)
524{
525 return 0x1U;
526}
527#endif
diff --git a/include/nvgpu/hw/gm20b/hw_mc_gm20b.h b/include/nvgpu/hw/gm20b/hw_mc_gm20b.h
new file mode 100644
index 0000000..0264803
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_mc_gm20b.h
@@ -0,0 +1,287 @@
1/*
2 * Copyright (c) 2014-2017, 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_mc_gm20b_h_
57#define _hw_mc_gm20b_h_
58
59static inline u32 mc_boot_0_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 mc_boot_0_architecture_v(u32 r)
64{
65 return (r >> 24U) & 0x1fU;
66}
67static inline u32 mc_boot_0_implementation_v(u32 r)
68{
69 return (r >> 20U) & 0xfU;
70}
71static inline u32 mc_boot_0_major_revision_v(u32 r)
72{
73 return (r >> 4U) & 0xfU;
74}
75static inline u32 mc_boot_0_minor_revision_v(u32 r)
76{
77 return (r >> 0U) & 0xfU;
78}
79static inline u32 mc_intr_r(u32 i)
80{
81 return 0x00000100U + i*4U;
82}
83static inline u32 mc_intr_pfifo_pending_f(void)
84{
85 return 0x100U;
86}
87static inline u32 mc_intr_pmu_pending_f(void)
88{
89 return 0x1000000U;
90}
91static inline u32 mc_intr_ltc_pending_f(void)
92{
93 return 0x2000000U;
94}
95static inline u32 mc_intr_priv_ring_pending_f(void)
96{
97 return 0x40000000U;
98}
99static inline u32 mc_intr_pbus_pending_f(void)
100{
101 return 0x10000000U;
102}
103static inline u32 mc_intr_mask_0_r(void)
104{
105 return 0x00000640U;
106}
107static inline u32 mc_intr_mask_0_pmu_enabled_f(void)
108{
109 return 0x1000000U;
110}
111static inline u32 mc_intr_en_0_r(void)
112{
113 return 0x00000140U;
114}
115static inline u32 mc_intr_en_0_inta_disabled_f(void)
116{
117 return 0x0U;
118}
119static inline u32 mc_intr_en_0_inta_hardware_f(void)
120{
121 return 0x1U;
122}
123static inline u32 mc_intr_mask_1_r(void)
124{
125 return 0x00000644U;
126}
127static inline u32 mc_intr_mask_1_pmu_s(void)
128{
129 return 1U;
130}
131static inline u32 mc_intr_mask_1_pmu_f(u32 v)
132{
133 return (v & 0x1U) << 24U;
134}
135static inline u32 mc_intr_mask_1_pmu_m(void)
136{
137 return 0x1U << 24U;
138}
139static inline u32 mc_intr_mask_1_pmu_v(u32 r)
140{
141 return (r >> 24U) & 0x1U;
142}
143static inline u32 mc_intr_mask_1_pmu_enabled_f(void)
144{
145 return 0x1000000U;
146}
147static inline u32 mc_intr_en_1_r(void)
148{
149 return 0x00000144U;
150}
151static inline u32 mc_intr_en_1_inta_disabled_f(void)
152{
153 return 0x0U;
154}
155static inline u32 mc_intr_en_1_inta_hardware_f(void)
156{
157 return 0x1U;
158}
159static inline u32 mc_enable_r(void)
160{
161 return 0x00000200U;
162}
163static inline u32 mc_enable_xbar_enabled_f(void)
164{
165 return 0x4U;
166}
167static inline u32 mc_enable_l2_enabled_f(void)
168{
169 return 0x8U;
170}
171static inline u32 mc_enable_pmedia_s(void)
172{
173 return 1U;
174}
175static inline u32 mc_enable_pmedia_f(u32 v)
176{
177 return (v & 0x1U) << 4U;
178}
179static inline u32 mc_enable_pmedia_m(void)
180{
181 return 0x1U << 4U;
182}
183static inline u32 mc_enable_pmedia_v(u32 r)
184{
185 return (r >> 4U) & 0x1U;
186}
187static inline u32 mc_enable_priv_ring_enabled_f(void)
188{
189 return 0x20U;
190}
191static inline u32 mc_enable_ce0_m(void)
192{
193 return 0x1U << 6U;
194}
195static inline u32 mc_enable_pfifo_enabled_f(void)
196{
197 return 0x100U;
198}
199static inline u32 mc_enable_pgraph_enabled_f(void)
200{
201 return 0x1000U;
202}
203static inline u32 mc_enable_pwr_v(u32 r)
204{
205 return (r >> 13U) & 0x1U;
206}
207static inline u32 mc_enable_pwr_disabled_v(void)
208{
209 return 0x00000000U;
210}
211static inline u32 mc_enable_pwr_enabled_f(void)
212{
213 return 0x2000U;
214}
215static inline u32 mc_enable_pfb_enabled_f(void)
216{
217 return 0x100000U;
218}
219static inline u32 mc_enable_ce2_m(void)
220{
221 return 0x1U << 21U;
222}
223static inline u32 mc_enable_ce2_enabled_f(void)
224{
225 return 0x200000U;
226}
227static inline u32 mc_enable_blg_enabled_f(void)
228{
229 return 0x8000000U;
230}
231static inline u32 mc_enable_perfmon_enabled_f(void)
232{
233 return 0x10000000U;
234}
235static inline u32 mc_enable_hub_enabled_f(void)
236{
237 return 0x20000000U;
238}
239static inline u32 mc_intr_ltc_r(void)
240{
241 return 0x0000017cU;
242}
243static inline u32 mc_enable_pb_r(void)
244{
245 return 0x00000204U;
246}
247static inline u32 mc_enable_pb_0_s(void)
248{
249 return 1U;
250}
251static inline u32 mc_enable_pb_0_f(u32 v)
252{
253 return (v & 0x1U) << 0U;
254}
255static inline u32 mc_enable_pb_0_m(void)
256{
257 return 0x1U << 0U;
258}
259static inline u32 mc_enable_pb_0_v(u32 r)
260{
261 return (r >> 0U) & 0x1U;
262}
263static inline u32 mc_enable_pb_0_enabled_v(void)
264{
265 return 0x00000001U;
266}
267static inline u32 mc_enable_pb_sel_f(u32 v, u32 i)
268{
269 return (v & 0x1U) << (0U + i*1U);
270}
271static inline u32 mc_elpg_enable_r(void)
272{
273 return 0x0000020cU;
274}
275static inline u32 mc_elpg_enable_xbar_enabled_f(void)
276{
277 return 0x4U;
278}
279static inline u32 mc_elpg_enable_pfb_enabled_f(void)
280{
281 return 0x100000U;
282}
283static inline u32 mc_elpg_enable_hub_enabled_f(void)
284{
285 return 0x20000000U;
286}
287#endif
diff --git a/include/nvgpu/hw/gm20b/hw_pbdma_gm20b.h b/include/nvgpu/hw/gm20b/hw_pbdma_gm20b.h
new file mode 100644
index 0000000..10ed9ec
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_pbdma_gm20b.h
@@ -0,0 +1,579 @@
1/*
2 * Copyright (c) 2014-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_pbdma_gm20b_h_
57#define _hw_pbdma_gm20b_h_
58
59static inline u32 pbdma_gp_entry1_r(void)
60{
61 return 0x10000004U;
62}
63static inline u32 pbdma_gp_entry1_get_hi_v(u32 r)
64{
65 return (r >> 0U) & 0xffU;
66}
67static inline u32 pbdma_gp_entry1_length_f(u32 v)
68{
69 return (v & 0x1fffffU) << 10U;
70}
71static inline u32 pbdma_gp_entry1_length_v(u32 r)
72{
73 return (r >> 10U) & 0x1fffffU;
74}
75static inline u32 pbdma_gp_base_r(u32 i)
76{
77 return 0x00040048U + i*8192U;
78}
79static inline u32 pbdma_gp_base__size_1_v(void)
80{
81 return 0x00000001U;
82}
83static inline u32 pbdma_gp_base_offset_f(u32 v)
84{
85 return (v & 0x1fffffffU) << 3U;
86}
87static inline u32 pbdma_gp_base_rsvd_s(void)
88{
89 return 3U;
90}
91static inline u32 pbdma_gp_base_hi_r(u32 i)
92{
93 return 0x0004004cU + i*8192U;
94}
95static inline u32 pbdma_gp_base_hi_offset_f(u32 v)
96{
97 return (v & 0xffU) << 0U;
98}
99static inline u32 pbdma_gp_base_hi_limit2_f(u32 v)
100{
101 return (v & 0x1fU) << 16U;
102}
103static inline u32 pbdma_gp_fetch_r(u32 i)
104{
105 return 0x00040050U + i*8192U;
106}
107static inline u32 pbdma_gp_get_r(u32 i)
108{
109 return 0x00040014U + i*8192U;
110}
111static inline u32 pbdma_gp_put_r(u32 i)
112{
113 return 0x00040000U + i*8192U;
114}
115static inline u32 pbdma_pb_fetch_r(u32 i)
116{
117 return 0x00040054U + i*8192U;
118}
119static inline u32 pbdma_pb_fetch_hi_r(u32 i)
120{
121 return 0x00040058U + i*8192U;
122}
123static inline u32 pbdma_get_r(u32 i)
124{
125 return 0x00040018U + i*8192U;
126}
127static inline u32 pbdma_get_hi_r(u32 i)
128{
129 return 0x0004001cU + i*8192U;
130}
131static inline u32 pbdma_put_r(u32 i)
132{
133 return 0x0004005cU + i*8192U;
134}
135static inline u32 pbdma_put_hi_r(u32 i)
136{
137 return 0x00040060U + i*8192U;
138}
139static inline u32 pbdma_formats_r(u32 i)
140{
141 return 0x0004009cU + i*8192U;
142}
143static inline u32 pbdma_formats_gp_fermi0_f(void)
144{
145 return 0x0U;
146}
147static inline u32 pbdma_formats_pb_fermi1_f(void)
148{
149 return 0x100U;
150}
151static inline u32 pbdma_formats_mp_fermi0_f(void)
152{
153 return 0x0U;
154}
155static inline u32 pbdma_pb_header_r(u32 i)
156{
157 return 0x00040084U + i*8192U;
158}
159static inline u32 pbdma_pb_header_priv_user_f(void)
160{
161 return 0x0U;
162}
163static inline u32 pbdma_pb_header_method_zero_f(void)
164{
165 return 0x0U;
166}
167static inline u32 pbdma_pb_header_subchannel_zero_f(void)
168{
169 return 0x0U;
170}
171static inline u32 pbdma_pb_header_level_main_f(void)
172{
173 return 0x0U;
174}
175static inline u32 pbdma_pb_header_first_true_f(void)
176{
177 return 0x400000U;
178}
179static inline u32 pbdma_pb_header_type_inc_f(void)
180{
181 return 0x20000000U;
182}
183static inline u32 pbdma_pb_header_type_non_inc_f(void)
184{
185 return 0x60000000U;
186}
187static inline u32 pbdma_hdr_shadow_r(u32 i)
188{
189 return 0x00040118U + i*8192U;
190}
191static inline u32 pbdma_gp_shadow_0_r(u32 i)
192{
193 return 0x00040110U + i*8192U;
194}
195static inline u32 pbdma_gp_shadow_1_r(u32 i)
196{
197 return 0x00040114U + i*8192U;
198}
199static inline u32 pbdma_subdevice_r(u32 i)
200{
201 return 0x00040094U + i*8192U;
202}
203static inline u32 pbdma_subdevice_id_f(u32 v)
204{
205 return (v & 0xfffU) << 0U;
206}
207static inline u32 pbdma_subdevice_status_active_f(void)
208{
209 return 0x10000000U;
210}
211static inline u32 pbdma_subdevice_channel_dma_enable_f(void)
212{
213 return 0x20000000U;
214}
215static inline u32 pbdma_method0_r(u32 i)
216{
217 return 0x000400c0U + i*8192U;
218}
219static inline u32 pbdma_method0_fifo_size_v(void)
220{
221 return 0x00000004U;
222}
223static inline u32 pbdma_method0_addr_f(u32 v)
224{
225 return (v & 0xfffU) << 2U;
226}
227static inline u32 pbdma_method0_addr_v(u32 r)
228{
229 return (r >> 2U) & 0xfffU;
230}
231static inline u32 pbdma_method0_subch_v(u32 r)
232{
233 return (r >> 16U) & 0x7U;
234}
235static inline u32 pbdma_method0_first_true_f(void)
236{
237 return 0x400000U;
238}
239static inline u32 pbdma_method0_valid_true_f(void)
240{
241 return 0x80000000U;
242}
243static inline u32 pbdma_method1_r(u32 i)
244{
245 return 0x000400c8U + i*8192U;
246}
247static inline u32 pbdma_method2_r(u32 i)
248{
249 return 0x000400d0U + i*8192U;
250}
251static inline u32 pbdma_method3_r(u32 i)
252{
253 return 0x000400d8U + i*8192U;
254}
255static inline u32 pbdma_data0_r(u32 i)
256{
257 return 0x000400c4U + i*8192U;
258}
259static inline u32 pbdma_target_r(u32 i)
260{
261 return 0x000400acU + i*8192U;
262}
263static inline u32 pbdma_target_engine_sw_f(void)
264{
265 return 0x1fU;
266}
267static inline u32 pbdma_acquire_r(u32 i)
268{
269 return 0x00040030U + i*8192U;
270}
271static inline u32 pbdma_acquire_retry_man_2_f(void)
272{
273 return 0x2U;
274}
275static inline u32 pbdma_acquire_retry_exp_2_f(void)
276{
277 return 0x100U;
278}
279static inline u32 pbdma_acquire_timeout_exp_f(u32 v)
280{
281 return (v & 0xfU) << 11U;
282}
283static inline u32 pbdma_acquire_timeout_exp_max_v(void)
284{
285 return 0x0000000fU;
286}
287static inline u32 pbdma_acquire_timeout_exp_max_f(void)
288{
289 return 0x7800U;
290}
291static inline u32 pbdma_acquire_timeout_man_f(u32 v)
292{
293 return (v & 0xffffU) << 15U;
294}
295static inline u32 pbdma_acquire_timeout_man_max_v(void)
296{
297 return 0x0000ffffU;
298}
299static inline u32 pbdma_acquire_timeout_man_max_f(void)
300{
301 return 0x7fff8000U;
302}
303static inline u32 pbdma_acquire_timeout_en_enable_f(void)
304{
305 return 0x80000000U;
306}
307static inline u32 pbdma_acquire_timeout_en_disable_f(void)
308{
309 return 0x0U;
310}
311static inline u32 pbdma_status_r(u32 i)
312{
313 return 0x00040100U + i*8192U;
314}
315static inline u32 pbdma_channel_r(u32 i)
316{
317 return 0x00040120U + i*8192U;
318}
319static inline u32 pbdma_signature_r(u32 i)
320{
321 return 0x00040010U + i*8192U;
322}
323static inline u32 pbdma_signature_hw_valid_f(void)
324{
325 return 0xfaceU;
326}
327static inline u32 pbdma_signature_sw_zero_f(void)
328{
329 return 0x0U;
330}
331static inline u32 pbdma_userd_r(u32 i)
332{
333 return 0x00040008U + i*8192U;
334}
335static inline u32 pbdma_userd_target_vid_mem_f(void)
336{
337 return 0x0U;
338}
339static inline u32 pbdma_userd_target_sys_mem_coh_f(void)
340{
341 return 0x2U;
342}
343static inline u32 pbdma_userd_target_sys_mem_ncoh_f(void)
344{
345 return 0x3U;
346}
347static inline u32 pbdma_userd_addr_f(u32 v)
348{
349 return (v & 0x7fffffU) << 9U;
350}
351static inline u32 pbdma_userd_hi_r(u32 i)
352{
353 return 0x0004000cU + i*8192U;
354}
355static inline u32 pbdma_userd_hi_addr_f(u32 v)
356{
357 return (v & 0xffU) << 0U;
358}
359static inline u32 pbdma_hce_ctrl_r(u32 i)
360{
361 return 0x000400e4U + i*8192U;
362}
363static inline u32 pbdma_hce_ctrl_hce_priv_mode_yes_f(void)
364{
365 return 0x20U;
366}
367static inline u32 pbdma_intr_0_r(u32 i)
368{
369 return 0x00040108U + i*8192U;
370}
371static inline u32 pbdma_intr_0_memreq_v(u32 r)
372{
373 return (r >> 0U) & 0x1U;
374}
375static inline u32 pbdma_intr_0_memreq_pending_f(void)
376{
377 return 0x1U;
378}
379static inline u32 pbdma_intr_0_memack_timeout_pending_f(void)
380{
381 return 0x2U;
382}
383static inline u32 pbdma_intr_0_memack_extra_pending_f(void)
384{
385 return 0x4U;
386}
387static inline u32 pbdma_intr_0_memdat_timeout_pending_f(void)
388{
389 return 0x8U;
390}
391static inline u32 pbdma_intr_0_memdat_extra_pending_f(void)
392{
393 return 0x10U;
394}
395static inline u32 pbdma_intr_0_memflush_pending_f(void)
396{
397 return 0x20U;
398}
399static inline u32 pbdma_intr_0_memop_pending_f(void)
400{
401 return 0x40U;
402}
403static inline u32 pbdma_intr_0_lbconnect_pending_f(void)
404{
405 return 0x80U;
406}
407static inline u32 pbdma_intr_0_lbreq_pending_f(void)
408{
409 return 0x100U;
410}
411static inline u32 pbdma_intr_0_lback_timeout_pending_f(void)
412{
413 return 0x200U;
414}
415static inline u32 pbdma_intr_0_lback_extra_pending_f(void)
416{
417 return 0x400U;
418}
419static inline u32 pbdma_intr_0_lbdat_timeout_pending_f(void)
420{
421 return 0x800U;
422}
423static inline u32 pbdma_intr_0_lbdat_extra_pending_f(void)
424{
425 return 0x1000U;
426}
427static inline u32 pbdma_intr_0_gpfifo_pending_f(void)
428{
429 return 0x2000U;
430}
431static inline u32 pbdma_intr_0_gpptr_pending_f(void)
432{
433 return 0x4000U;
434}
435static inline u32 pbdma_intr_0_gpentry_pending_f(void)
436{
437 return 0x8000U;
438}
439static inline u32 pbdma_intr_0_gpcrc_pending_f(void)
440{
441 return 0x10000U;
442}
443static inline u32 pbdma_intr_0_pbptr_pending_f(void)
444{
445 return 0x20000U;
446}
447static inline u32 pbdma_intr_0_pbentry_pending_f(void)
448{
449 return 0x40000U;
450}
451static inline u32 pbdma_intr_0_pbcrc_pending_f(void)
452{
453 return 0x80000U;
454}
455static inline u32 pbdma_intr_0_xbarconnect_pending_f(void)
456{
457 return 0x100000U;
458}
459static inline u32 pbdma_intr_0_method_pending_f(void)
460{
461 return 0x200000U;
462}
463static inline u32 pbdma_intr_0_methodcrc_pending_f(void)
464{
465 return 0x400000U;
466}
467static inline u32 pbdma_intr_0_device_pending_f(void)
468{
469 return 0x800000U;
470}
471static inline u32 pbdma_intr_0_semaphore_pending_f(void)
472{
473 return 0x2000000U;
474}
475static inline u32 pbdma_intr_0_acquire_pending_f(void)
476{
477 return 0x4000000U;
478}
479static inline u32 pbdma_intr_0_pri_pending_f(void)
480{
481 return 0x8000000U;
482}
483static inline u32 pbdma_intr_0_no_ctxsw_seg_pending_f(void)
484{
485 return 0x20000000U;
486}
487static inline u32 pbdma_intr_0_pbseg_pending_f(void)
488{
489 return 0x40000000U;
490}
491static inline u32 pbdma_intr_0_signature_pending_f(void)
492{
493 return 0x80000000U;
494}
495static inline u32 pbdma_intr_1_r(u32 i)
496{
497 return 0x00040148U + i*8192U;
498}
499static inline u32 pbdma_intr_en_0_r(u32 i)
500{
501 return 0x0004010cU + i*8192U;
502}
503static inline u32 pbdma_intr_en_0_lbreq_enabled_f(void)
504{
505 return 0x100U;
506}
507static inline u32 pbdma_intr_en_1_r(u32 i)
508{
509 return 0x0004014cU + i*8192U;
510}
511static inline u32 pbdma_intr_stall_r(u32 i)
512{
513 return 0x0004013cU + i*8192U;
514}
515static inline u32 pbdma_intr_stall_lbreq_enabled_f(void)
516{
517 return 0x100U;
518}
519static inline u32 pbdma_intr_stall_1_r(u32 i)
520{
521 return 0x00040140U + i*8192U;
522}
523static inline u32 pbdma_intr_stall_1_hce_illegal_op_enabled_f(void)
524{
525 return 0x1U;
526}
527static inline u32 pbdma_udma_nop_r(void)
528{
529 return 0x00000008U;
530}
531static inline u32 pbdma_syncpointa_r(u32 i)
532{
533 return 0x000400a4U + i*8192U;
534}
535static inline u32 pbdma_syncpointa_payload_v(u32 r)
536{
537 return (r >> 0U) & 0xffffffffU;
538}
539static inline u32 pbdma_syncpointb_r(u32 i)
540{
541 return 0x000400a8U + i*8192U;
542}
543static inline u32 pbdma_syncpointb_op_v(u32 r)
544{
545 return (r >> 0U) & 0x3U;
546}
547static inline u32 pbdma_syncpointb_op_wait_v(void)
548{
549 return 0x00000000U;
550}
551static inline u32 pbdma_syncpointb_wait_switch_v(u32 r)
552{
553 return (r >> 4U) & 0x1U;
554}
555static inline u32 pbdma_syncpointb_wait_switch_en_v(void)
556{
557 return 0x00000001U;
558}
559static inline u32 pbdma_syncpointb_syncpt_index_v(u32 r)
560{
561 return (r >> 8U) & 0xffU;
562}
563static inline u32 pbdma_runlist_timeslice_r(u32 i)
564{
565 return 0x000400f8U + i*8192U;
566}
567static inline u32 pbdma_runlist_timeslice_timeout_128_f(void)
568{
569 return 0x80U;
570}
571static inline u32 pbdma_runlist_timeslice_timescale_3_f(void)
572{
573 return 0x3000U;
574}
575static inline u32 pbdma_runlist_timeslice_enable_true_f(void)
576{
577 return 0x10000000U;
578}
579#endif
diff --git a/include/nvgpu/hw/gm20b/hw_perf_gm20b.h b/include/nvgpu/hw/gm20b/hw_perf_gm20b.h
new file mode 100644
index 0000000..a94ba30
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_perf_gm20b.h
@@ -0,0 +1,219 @@
1/*
2 * Copyright (c) 2015-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_perf_gm20b_h_
57#define _hw_perf_gm20b_h_
58
59static inline u32 perf_pmmsys_base_v(void)
60{
61 return 0x001b0000U;
62}
63static inline u32 perf_pmmsys_extent_v(void)
64{
65 return 0x001b0fffU;
66}
67static inline u32 perf_pmasys_control_r(void)
68{
69 return 0x001b4000U;
70}
71static inline u32 perf_pmasys_control_membuf_status_v(u32 r)
72{
73 return (r >> 4U) & 0x1U;
74}
75static inline u32 perf_pmasys_control_membuf_status_overflowed_v(void)
76{
77 return 0x00000001U;
78}
79static inline u32 perf_pmasys_control_membuf_status_overflowed_f(void)
80{
81 return 0x10U;
82}
83static inline u32 perf_pmasys_control_membuf_clear_status_f(u32 v)
84{
85 return (v & 0x1U) << 5U;
86}
87static inline u32 perf_pmasys_control_membuf_clear_status_v(u32 r)
88{
89 return (r >> 5U) & 0x1U;
90}
91static inline u32 perf_pmasys_control_membuf_clear_status_doit_v(void)
92{
93 return 0x00000001U;
94}
95static inline u32 perf_pmasys_control_membuf_clear_status_doit_f(void)
96{
97 return 0x20U;
98}
99static inline u32 perf_pmasys_mem_block_r(void)
100{
101 return 0x001b4070U;
102}
103static inline u32 perf_pmasys_mem_block_base_f(u32 v)
104{
105 return (v & 0xfffffffU) << 0U;
106}
107static inline u32 perf_pmasys_mem_block_target_f(u32 v)
108{
109 return (v & 0x3U) << 28U;
110}
111static inline u32 perf_pmasys_mem_block_target_v(u32 r)
112{
113 return (r >> 28U) & 0x3U;
114}
115static inline u32 perf_pmasys_mem_block_target_lfb_v(void)
116{
117 return 0x00000000U;
118}
119static inline u32 perf_pmasys_mem_block_target_lfb_f(void)
120{
121 return 0x0U;
122}
123static inline u32 perf_pmasys_mem_block_target_sys_coh_v(void)
124{
125 return 0x00000002U;
126}
127static inline u32 perf_pmasys_mem_block_target_sys_coh_f(void)
128{
129 return 0x20000000U;
130}
131static inline u32 perf_pmasys_mem_block_target_sys_ncoh_v(void)
132{
133 return 0x00000003U;
134}
135static inline u32 perf_pmasys_mem_block_target_sys_ncoh_f(void)
136{
137 return 0x30000000U;
138}
139static inline u32 perf_pmasys_mem_block_valid_f(u32 v)
140{
141 return (v & 0x1U) << 31U;
142}
143static inline u32 perf_pmasys_mem_block_valid_v(u32 r)
144{
145 return (r >> 31U) & 0x1U;
146}
147static inline u32 perf_pmasys_mem_block_valid_true_v(void)
148{
149 return 0x00000001U;
150}
151static inline u32 perf_pmasys_mem_block_valid_true_f(void)
152{
153 return 0x80000000U;
154}
155static inline u32 perf_pmasys_mem_block_valid_false_v(void)
156{
157 return 0x00000000U;
158}
159static inline u32 perf_pmasys_mem_block_valid_false_f(void)
160{
161 return 0x0U;
162}
163static inline u32 perf_pmasys_outbase_r(void)
164{
165 return 0x001b4074U;
166}
167static inline u32 perf_pmasys_outbase_ptr_f(u32 v)
168{
169 return (v & 0x7ffffffU) << 5U;
170}
171static inline u32 perf_pmasys_outbaseupper_r(void)
172{
173 return 0x001b4078U;
174}
175static inline u32 perf_pmasys_outbaseupper_ptr_f(u32 v)
176{
177 return (v & 0xffU) << 0U;
178}
179static inline u32 perf_pmasys_outsize_r(void)
180{
181 return 0x001b407cU;
182}
183static inline u32 perf_pmasys_outsize_numbytes_f(u32 v)
184{
185 return (v & 0x7ffffffU) << 5U;
186}
187static inline u32 perf_pmasys_mem_bytes_r(void)
188{
189 return 0x001b4084U;
190}
191static inline u32 perf_pmasys_mem_bytes_numbytes_f(u32 v)
192{
193 return (v & 0xfffffffU) << 4U;
194}
195static inline u32 perf_pmasys_mem_bump_r(void)
196{
197 return 0x001b4088U;
198}
199static inline u32 perf_pmasys_mem_bump_numbytes_f(u32 v)
200{
201 return (v & 0xfffffffU) << 4U;
202}
203static inline u32 perf_pmasys_enginestatus_r(void)
204{
205 return 0x001b40a4U;
206}
207static inline u32 perf_pmasys_enginestatus_rbufempty_f(u32 v)
208{
209 return (v & 0x1U) << 4U;
210}
211static inline u32 perf_pmasys_enginestatus_rbufempty_empty_v(void)
212{
213 return 0x00000001U;
214}
215static inline u32 perf_pmasys_enginestatus_rbufempty_empty_f(void)
216{
217 return 0x10U;
218}
219#endif
diff --git a/include/nvgpu/hw/gm20b/hw_pram_gm20b.h b/include/nvgpu/hw/gm20b/hw_pram_gm20b.h
new file mode 100644
index 0000000..47a6bfa
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_pram_gm20b.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (c) 2016-2017, 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_pram_gm20b_h_
57#define _hw_pram_gm20b_h_
58
59static inline u32 pram_data032_r(u32 i)
60{
61 return 0x00700000U + i*4U;
62}
63#endif
diff --git a/include/nvgpu/hw/gm20b/hw_pri_ringmaster_gm20b.h b/include/nvgpu/hw/gm20b/hw_pri_ringmaster_gm20b.h
new file mode 100644
index 0000000..c6f08ed
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_pri_ringmaster_gm20b.h
@@ -0,0 +1,167 @@
1/*
2 * Copyright (c) 2014-2017, 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_pri_ringmaster_gm20b_h_
57#define _hw_pri_ringmaster_gm20b_h_
58
59static inline u32 pri_ringmaster_command_r(void)
60{
61 return 0x0012004cU;
62}
63static inline u32 pri_ringmaster_command_cmd_m(void)
64{
65 return 0x3fU << 0U;
66}
67static inline u32 pri_ringmaster_command_cmd_v(u32 r)
68{
69 return (r >> 0U) & 0x3fU;
70}
71static inline u32 pri_ringmaster_command_cmd_no_cmd_v(void)
72{
73 return 0x00000000U;
74}
75static inline u32 pri_ringmaster_command_cmd_start_ring_f(void)
76{
77 return 0x1U;
78}
79static inline u32 pri_ringmaster_command_cmd_ack_interrupt_f(void)
80{
81 return 0x2U;
82}
83static inline u32 pri_ringmaster_command_cmd_enumerate_stations_f(void)
84{
85 return 0x3U;
86}
87static inline u32 pri_ringmaster_command_cmd_enumerate_stations_bc_grp_all_f(void)
88{
89 return 0x0U;
90}
91static inline u32 pri_ringmaster_command_data_r(void)
92{
93 return 0x00120048U;
94}
95static inline u32 pri_ringmaster_start_results_r(void)
96{
97 return 0x00120050U;
98}
99static inline u32 pri_ringmaster_start_results_connectivity_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 pri_ringmaster_start_results_connectivity_pass_v(void)
104{
105 return 0x00000001U;
106}
107static inline u32 pri_ringmaster_intr_status0_r(void)
108{
109 return 0x00120058U;
110}
111static inline u32 pri_ringmaster_intr_status0_ring_start_conn_fault_v(u32 r)
112{
113 return (r >> 0U) & 0x1U;
114}
115static inline u32 pri_ringmaster_intr_status0_disconnect_fault_v(u32 r)
116{
117 return (r >> 1U) & 0x1U;
118}
119static inline u32 pri_ringmaster_intr_status0_overflow_fault_v(u32 r)
120{
121 return (r >> 2U) & 0x1U;
122}
123static inline u32 pri_ringmaster_intr_status0_gbl_write_error_sys_v(u32 r)
124{
125 return (r >> 8U) & 0x1U;
126}
127static inline u32 pri_ringmaster_intr_status1_r(void)
128{
129 return 0x0012005cU;
130}
131static inline u32 pri_ringmaster_global_ctl_r(void)
132{
133 return 0x00120060U;
134}
135static inline u32 pri_ringmaster_global_ctl_ring_reset_asserted_f(void)
136{
137 return 0x1U;
138}
139static inline u32 pri_ringmaster_global_ctl_ring_reset_deasserted_f(void)
140{
141 return 0x0U;
142}
143static inline u32 pri_ringmaster_enum_fbp_r(void)
144{
145 return 0x00120074U;
146}
147static inline u32 pri_ringmaster_enum_fbp_count_v(u32 r)
148{
149 return (r >> 0U) & 0x1fU;
150}
151static inline u32 pri_ringmaster_enum_gpc_r(void)
152{
153 return 0x00120078U;
154}
155static inline u32 pri_ringmaster_enum_gpc_count_v(u32 r)
156{
157 return (r >> 0U) & 0x1fU;
158}
159static inline u32 pri_ringmaster_enum_ltc_r(void)
160{
161 return 0x0012006cU;
162}
163static inline u32 pri_ringmaster_enum_ltc_count_v(u32 r)
164{
165 return (r >> 0U) & 0x1fU;
166}
167#endif
diff --git a/include/nvgpu/hw/gm20b/hw_pri_ringstation_gpc_gm20b.h b/include/nvgpu/hw/gm20b/hw_pri_ringstation_gpc_gm20b.h
new file mode 100644
index 0000000..8d1ffb2
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_pri_ringstation_gpc_gm20b.h
@@ -0,0 +1,79 @@
1/*
2 * Copyright (c) 2017, 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_pri_ringstation_gpc_gm20b_h_
57#define _hw_pri_ringstation_gpc_gm20b_h_
58
59static inline u32 pri_ringstation_gpc_master_config_r(u32 i)
60{
61 return 0x00128300U + i*4U;
62}
63static inline u32 pri_ringstation_gpc_gpc0_priv_error_adr_r(void)
64{
65 return 0x00128120U;
66}
67static inline u32 pri_ringstation_gpc_gpc0_priv_error_wrdat_r(void)
68{
69 return 0x00128124U;
70}
71static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_r(void)
72{
73 return 0x00128128U;
74}
75static inline u32 pri_ringstation_gpc_gpc0_priv_error_code_r(void)
76{
77 return 0x0012812cU;
78}
79#endif
diff --git a/include/nvgpu/hw/gm20b/hw_pri_ringstation_sys_gm20b.h b/include/nvgpu/hw/gm20b/hw_pri_ringstation_sys_gm20b.h
new file mode 100644
index 0000000..ac1d245
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_pri_ringstation_sys_gm20b.h
@@ -0,0 +1,91 @@
1/*
2 * Copyright (c) 2014-2017, 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_pri_ringstation_sys_gm20b_h_
57#define _hw_pri_ringstation_sys_gm20b_h_
58
59static inline u32 pri_ringstation_sys_master_config_r(u32 i)
60{
61 return 0x00122300U + i*4U;
62}
63static inline u32 pri_ringstation_sys_decode_config_r(void)
64{
65 return 0x00122204U;
66}
67static inline u32 pri_ringstation_sys_decode_config_ring_m(void)
68{
69 return 0x7U << 0U;
70}
71static inline u32 pri_ringstation_sys_decode_config_ring_drop_on_ring_not_started_f(void)
72{
73 return 0x1U;
74}
75static inline u32 pri_ringstation_sys_priv_error_adr_r(void)
76{
77 return 0x00122120U;
78}
79static inline u32 pri_ringstation_sys_priv_error_wrdat_r(void)
80{
81 return 0x00122124U;
82}
83static inline u32 pri_ringstation_sys_priv_error_info_r(void)
84{
85 return 0x00122128U;
86}
87static inline u32 pri_ringstation_sys_priv_error_code_r(void)
88{
89 return 0x0012212cU;
90}
91#endif
diff --git a/include/nvgpu/hw/gm20b/hw_proj_gm20b.h b/include/nvgpu/hw/gm20b/hw_proj_gm20b.h
new file mode 100644
index 0000000..8129ea6
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_proj_gm20b.h
@@ -0,0 +1,171 @@
1/*
2 * Copyright (c) 2014-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_proj_gm20b_h_
57#define _hw_proj_gm20b_h_
58
59static inline u32 proj_gpc_base_v(void)
60{
61 return 0x00500000U;
62}
63static inline u32 proj_gpc_shared_base_v(void)
64{
65 return 0x00418000U;
66}
67static inline u32 proj_gpc_stride_v(void)
68{
69 return 0x00008000U;
70}
71static inline u32 proj_gpc_priv_stride_v(void)
72{
73 return 0x00000800U;
74}
75static inline u32 proj_ltc_stride_v(void)
76{
77 return 0x00002000U;
78}
79static inline u32 proj_lts_stride_v(void)
80{
81 return 0x00000200U;
82}
83static inline u32 proj_fbpa_stride_v(void)
84{
85 return 0x00001000U;
86}
87static inline u32 proj_ppc_in_gpc_base_v(void)
88{
89 return 0x00003000U;
90}
91static inline u32 proj_ppc_in_gpc_shared_base_v(void)
92{
93 return 0x00003e00U;
94}
95static inline u32 proj_ppc_in_gpc_stride_v(void)
96{
97 return 0x00000200U;
98}
99static inline u32 proj_rop_base_v(void)
100{
101 return 0x00410000U;
102}
103static inline u32 proj_rop_shared_base_v(void)
104{
105 return 0x00408800U;
106}
107static inline u32 proj_rop_stride_v(void)
108{
109 return 0x00000400U;
110}
111static inline u32 proj_tpc_in_gpc_base_v(void)
112{
113 return 0x00004000U;
114}
115static inline u32 proj_tpc_in_gpc_stride_v(void)
116{
117 return 0x00000800U;
118}
119static inline u32 proj_tpc_in_gpc_shared_base_v(void)
120{
121 return 0x00001800U;
122}
123static inline u32 proj_host_num_engines_v(void)
124{
125 return 0x00000002U;
126}
127static inline u32 proj_host_num_pbdma_v(void)
128{
129 return 0x00000001U;
130}
131static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void)
132{
133 return 0x00000002U;
134}
135static inline u32 proj_scal_litter_num_sm_per_tpc_v(void)
136{
137 return 0x00000001U;
138}
139static inline u32 proj_scal_litter_num_fbps_v(void)
140{
141 return 0x00000001U;
142}
143static inline u32 proj_scal_litter_num_fbpas_v(void)
144{
145 return 0x00000001U;
146}
147static inline u32 proj_scal_litter_num_gpcs_v(void)
148{
149 return 0x00000001U;
150}
151static inline u32 proj_scal_litter_num_pes_per_gpc_v(void)
152{
153 return 0x00000001U;
154}
155static inline u32 proj_scal_litter_num_tpcs_per_pes_v(void)
156{
157 return 0x00000002U;
158}
159static inline u32 proj_scal_litter_num_zcull_banks_v(void)
160{
161 return 0x00000004U;
162}
163static inline u32 proj_scal_max_gpcs_v(void)
164{
165 return 0x00000020U;
166}
167static inline u32 proj_scal_max_tpc_per_gpc_v(void)
168{
169 return 0x00000008U;
170}
171#endif
diff --git a/include/nvgpu/hw/gm20b/hw_pwr_gm20b.h b/include/nvgpu/hw/gm20b/hw_pwr_gm20b.h
new file mode 100644
index 0000000..a7c409d
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_pwr_gm20b.h
@@ -0,0 +1,879 @@
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_pwr_gm20b_h_
57#define _hw_pwr_gm20b_h_
58
59static inline u32 pwr_falcon_irqsset_r(void)
60{
61 return 0x0010a000U;
62}
63static inline u32 pwr_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 pwr_falcon_irqsclr_r(void)
68{
69 return 0x0010a004U;
70}
71static inline u32 pwr_falcon_irqstat_r(void)
72{
73 return 0x0010a008U;
74}
75static inline u32 pwr_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 pwr_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 pwr_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 pwr_falcon_irqmode_r(void)
88{
89 return 0x0010a00cU;
90}
91static inline u32 pwr_falcon_irqmset_r(void)
92{
93 return 0x0010a010U;
94}
95static inline u32 pwr_falcon_irqmset_gptmr_f(u32 v)
96{
97 return (v & 0x1U) << 0U;
98}
99static inline u32 pwr_falcon_irqmset_wdtmr_f(u32 v)
100{
101 return (v & 0x1U) << 1U;
102}
103static inline u32 pwr_falcon_irqmset_mthd_f(u32 v)
104{
105 return (v & 0x1U) << 2U;
106}
107static inline u32 pwr_falcon_irqmset_ctxsw_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 pwr_falcon_irqmset_halt_f(u32 v)
112{
113 return (v & 0x1U) << 4U;
114}
115static inline u32 pwr_falcon_irqmset_exterr_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 pwr_falcon_irqmset_swgen0_f(u32 v)
120{
121 return (v & 0x1U) << 6U;
122}
123static inline u32 pwr_falcon_irqmset_swgen1_f(u32 v)
124{
125 return (v & 0x1U) << 7U;
126}
127static inline u32 pwr_falcon_irqmclr_r(void)
128{
129 return 0x0010a014U;
130}
131static inline u32 pwr_falcon_irqmclr_gptmr_f(u32 v)
132{
133 return (v & 0x1U) << 0U;
134}
135static inline u32 pwr_falcon_irqmclr_wdtmr_f(u32 v)
136{
137 return (v & 0x1U) << 1U;
138}
139static inline u32 pwr_falcon_irqmclr_mthd_f(u32 v)
140{
141 return (v & 0x1U) << 2U;
142}
143static inline u32 pwr_falcon_irqmclr_ctxsw_f(u32 v)
144{
145 return (v & 0x1U) << 3U;
146}
147static inline u32 pwr_falcon_irqmclr_halt_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 pwr_falcon_irqmclr_exterr_f(u32 v)
152{
153 return (v & 0x1U) << 5U;
154}
155static inline u32 pwr_falcon_irqmclr_swgen0_f(u32 v)
156{
157 return (v & 0x1U) << 6U;
158}
159static inline u32 pwr_falcon_irqmclr_swgen1_f(u32 v)
160{
161 return (v & 0x1U) << 7U;
162}
163static inline u32 pwr_falcon_irqmclr_ext_f(u32 v)
164{
165 return (v & 0xffU) << 8U;
166}
167static inline u32 pwr_falcon_irqmask_r(void)
168{
169 return 0x0010a018U;
170}
171static inline u32 pwr_falcon_irqdest_r(void)
172{
173 return 0x0010a01cU;
174}
175static inline u32 pwr_falcon_irqdest_host_gptmr_f(u32 v)
176{
177 return (v & 0x1U) << 0U;
178}
179static inline u32 pwr_falcon_irqdest_host_wdtmr_f(u32 v)
180{
181 return (v & 0x1U) << 1U;
182}
183static inline u32 pwr_falcon_irqdest_host_mthd_f(u32 v)
184{
185 return (v & 0x1U) << 2U;
186}
187static inline u32 pwr_falcon_irqdest_host_ctxsw_f(u32 v)
188{
189 return (v & 0x1U) << 3U;
190}
191static inline u32 pwr_falcon_irqdest_host_halt_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 pwr_falcon_irqdest_host_exterr_f(u32 v)
196{
197 return (v & 0x1U) << 5U;
198}
199static inline u32 pwr_falcon_irqdest_host_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 pwr_falcon_irqdest_host_swgen1_f(u32 v)
204{
205 return (v & 0x1U) << 7U;
206}
207static inline u32 pwr_falcon_irqdest_host_ext_f(u32 v)
208{
209 return (v & 0xffU) << 8U;
210}
211static inline u32 pwr_falcon_irqdest_target_gptmr_f(u32 v)
212{
213 return (v & 0x1U) << 16U;
214}
215static inline u32 pwr_falcon_irqdest_target_wdtmr_f(u32 v)
216{
217 return (v & 0x1U) << 17U;
218}
219static inline u32 pwr_falcon_irqdest_target_mthd_f(u32 v)
220{
221 return (v & 0x1U) << 18U;
222}
223static inline u32 pwr_falcon_irqdest_target_ctxsw_f(u32 v)
224{
225 return (v & 0x1U) << 19U;
226}
227static inline u32 pwr_falcon_irqdest_target_halt_f(u32 v)
228{
229 return (v & 0x1U) << 20U;
230}
231static inline u32 pwr_falcon_irqdest_target_exterr_f(u32 v)
232{
233 return (v & 0x1U) << 21U;
234}
235static inline u32 pwr_falcon_irqdest_target_swgen0_f(u32 v)
236{
237 return (v & 0x1U) << 22U;
238}
239static inline u32 pwr_falcon_irqdest_target_swgen1_f(u32 v)
240{
241 return (v & 0x1U) << 23U;
242}
243static inline u32 pwr_falcon_irqdest_target_ext_f(u32 v)
244{
245 return (v & 0xffU) << 24U;
246}
247static inline u32 pwr_falcon_curctx_r(void)
248{
249 return 0x0010a050U;
250}
251static inline u32 pwr_falcon_nxtctx_r(void)
252{
253 return 0x0010a054U;
254}
255static inline u32 pwr_falcon_mailbox0_r(void)
256{
257 return 0x0010a040U;
258}
259static inline u32 pwr_falcon_mailbox1_r(void)
260{
261 return 0x0010a044U;
262}
263static inline u32 pwr_falcon_itfen_r(void)
264{
265 return 0x0010a048U;
266}
267static inline u32 pwr_falcon_itfen_ctxen_enable_f(void)
268{
269 return 0x1U;
270}
271static inline u32 pwr_falcon_idlestate_r(void)
272{
273 return 0x0010a04cU;
274}
275static inline u32 pwr_falcon_idlestate_falcon_busy_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 pwr_falcon_idlestate_ext_busy_v(u32 r)
280{
281 return (r >> 1U) & 0x7fffU;
282}
283static inline u32 pwr_falcon_os_r(void)
284{
285 return 0x0010a080U;
286}
287static inline u32 pwr_falcon_engctl_r(void)
288{
289 return 0x0010a0a4U;
290}
291static inline u32 pwr_falcon_cpuctl_r(void)
292{
293 return 0x0010a100U;
294}
295static inline u32 pwr_falcon_cpuctl_startcpu_f(u32 v)
296{
297 return (v & 0x1U) << 1U;
298}
299static inline u32 pwr_falcon_cpuctl_halt_intr_f(u32 v)
300{
301 return (v & 0x1U) << 4U;
302}
303static inline u32 pwr_falcon_cpuctl_halt_intr_m(void)
304{
305 return 0x1U << 4U;
306}
307static inline u32 pwr_falcon_cpuctl_halt_intr_v(u32 r)
308{
309 return (r >> 4U) & 0x1U;
310}
311static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
312{
313 return (v & 0x1U) << 6U;
314}
315static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_m(void)
316{
317 return 0x1U << 6U;
318}
319static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
320{
321 return (r >> 6U) & 0x1U;
322}
323static inline u32 pwr_falcon_cpuctl_alias_r(void)
324{
325 return 0x0010a130U;
326}
327static inline u32 pwr_falcon_cpuctl_alias_startcpu_f(u32 v)
328{
329 return (v & 0x1U) << 1U;
330}
331static inline u32 pwr_pmu_scpctl_stat_r(void)
332{
333 return 0x0010ac08U;
334}
335static inline u32 pwr_pmu_scpctl_stat_debug_mode_f(u32 v)
336{
337 return (v & 0x1U) << 20U;
338}
339static inline u32 pwr_pmu_scpctl_stat_debug_mode_m(void)
340{
341 return 0x1U << 20U;
342}
343static inline u32 pwr_pmu_scpctl_stat_debug_mode_v(u32 r)
344{
345 return (r >> 20U) & 0x1U;
346}
347static inline u32 pwr_falcon_imemc_r(u32 i)
348{
349 return 0x0010a180U + i*16U;
350}
351static inline u32 pwr_falcon_imemc_offs_f(u32 v)
352{
353 return (v & 0x3fU) << 2U;
354}
355static inline u32 pwr_falcon_imemc_blk_f(u32 v)
356{
357 return (v & 0xffU) << 8U;
358}
359static inline u32 pwr_falcon_imemc_aincw_f(u32 v)
360{
361 return (v & 0x1U) << 24U;
362}
363static inline u32 pwr_falcon_imemd_r(u32 i)
364{
365 return 0x0010a184U + i*16U;
366}
367static inline u32 pwr_falcon_imemt_r(u32 i)
368{
369 return 0x0010a188U + i*16U;
370}
371static inline u32 pwr_falcon_sctl_r(void)
372{
373 return 0x0010a240U;
374}
375static inline u32 pwr_falcon_mmu_phys_sec_r(void)
376{
377 return 0x00100ce4U;
378}
379static inline u32 pwr_falcon_bootvec_r(void)
380{
381 return 0x0010a104U;
382}
383static inline u32 pwr_falcon_bootvec_vec_f(u32 v)
384{
385 return (v & 0xffffffffU) << 0U;
386}
387static inline u32 pwr_falcon_dmactl_r(void)
388{
389 return 0x0010a10cU;
390}
391static inline u32 pwr_falcon_dmactl_dmem_scrubbing_m(void)
392{
393 return 0x1U << 1U;
394}
395static inline u32 pwr_falcon_dmactl_imem_scrubbing_m(void)
396{
397 return 0x1U << 2U;
398}
399static inline u32 pwr_falcon_hwcfg_r(void)
400{
401 return 0x0010a108U;
402}
403static inline u32 pwr_falcon_hwcfg_imem_size_v(u32 r)
404{
405 return (r >> 0U) & 0x1ffU;
406}
407static inline u32 pwr_falcon_hwcfg_dmem_size_v(u32 r)
408{
409 return (r >> 9U) & 0x1ffU;
410}
411static inline u32 pwr_falcon_dmatrfbase_r(void)
412{
413 return 0x0010a110U;
414}
415static inline u32 pwr_falcon_dmatrfmoffs_r(void)
416{
417 return 0x0010a114U;
418}
419static inline u32 pwr_falcon_dmatrfcmd_r(void)
420{
421 return 0x0010a118U;
422}
423static inline u32 pwr_falcon_dmatrfcmd_imem_f(u32 v)
424{
425 return (v & 0x1U) << 4U;
426}
427static inline u32 pwr_falcon_dmatrfcmd_write_f(u32 v)
428{
429 return (v & 0x1U) << 5U;
430}
431static inline u32 pwr_falcon_dmatrfcmd_size_f(u32 v)
432{
433 return (v & 0x7U) << 8U;
434}
435static inline u32 pwr_falcon_dmatrfcmd_ctxdma_f(u32 v)
436{
437 return (v & 0x7U) << 12U;
438}
439static inline u32 pwr_falcon_dmatrffboffs_r(void)
440{
441 return 0x0010a11cU;
442}
443static inline u32 pwr_falcon_exterraddr_r(void)
444{
445 return 0x0010a168U;
446}
447static inline u32 pwr_falcon_exterrstat_r(void)
448{
449 return 0x0010a16cU;
450}
451static inline u32 pwr_falcon_exterrstat_valid_m(void)
452{
453 return 0x1U << 31U;
454}
455static inline u32 pwr_falcon_exterrstat_valid_v(u32 r)
456{
457 return (r >> 31U) & 0x1U;
458}
459static inline u32 pwr_falcon_exterrstat_valid_true_v(void)
460{
461 return 0x00000001U;
462}
463static inline u32 pwr_pmu_falcon_icd_cmd_r(void)
464{
465 return 0x0010a200U;
466}
467static inline u32 pwr_pmu_falcon_icd_cmd_opc_s(void)
468{
469 return 4U;
470}
471static inline u32 pwr_pmu_falcon_icd_cmd_opc_f(u32 v)
472{
473 return (v & 0xfU) << 0U;
474}
475static inline u32 pwr_pmu_falcon_icd_cmd_opc_m(void)
476{
477 return 0xfU << 0U;
478}
479static inline u32 pwr_pmu_falcon_icd_cmd_opc_v(u32 r)
480{
481 return (r >> 0U) & 0xfU;
482}
483static inline u32 pwr_pmu_falcon_icd_cmd_opc_rreg_f(void)
484{
485 return 0x8U;
486}
487static inline u32 pwr_pmu_falcon_icd_cmd_opc_rstat_f(void)
488{
489 return 0xeU;
490}
491static inline u32 pwr_pmu_falcon_icd_cmd_idx_f(u32 v)
492{
493 return (v & 0x1fU) << 8U;
494}
495static inline u32 pwr_pmu_falcon_icd_rdata_r(void)
496{
497 return 0x0010a20cU;
498}
499static inline u32 pwr_falcon_dmemc_r(u32 i)
500{
501 return 0x0010a1c0U + i*8U;
502}
503static inline u32 pwr_falcon_dmemc_offs_f(u32 v)
504{
505 return (v & 0x3fU) << 2U;
506}
507static inline u32 pwr_falcon_dmemc_offs_m(void)
508{
509 return 0x3fU << 2U;
510}
511static inline u32 pwr_falcon_dmemc_blk_f(u32 v)
512{
513 return (v & 0xffU) << 8U;
514}
515static inline u32 pwr_falcon_dmemc_blk_m(void)
516{
517 return 0xffU << 8U;
518}
519static inline u32 pwr_falcon_dmemc_aincw_f(u32 v)
520{
521 return (v & 0x1U) << 24U;
522}
523static inline u32 pwr_falcon_dmemc_aincr_f(u32 v)
524{
525 return (v & 0x1U) << 25U;
526}
527static inline u32 pwr_falcon_dmemd_r(u32 i)
528{
529 return 0x0010a1c4U + i*8U;
530}
531static inline u32 pwr_pmu_new_instblk_r(void)
532{
533 return 0x0010a480U;
534}
535static inline u32 pwr_pmu_new_instblk_ptr_f(u32 v)
536{
537 return (v & 0xfffffffU) << 0U;
538}
539static inline u32 pwr_pmu_new_instblk_target_fb_f(void)
540{
541 return 0x0U;
542}
543static inline u32 pwr_pmu_new_instblk_target_sys_coh_f(void)
544{
545 return 0x20000000U;
546}
547static inline u32 pwr_pmu_new_instblk_target_sys_ncoh_f(void)
548{
549 return 0x30000000U;
550}
551static inline u32 pwr_pmu_new_instblk_valid_f(u32 v)
552{
553 return (v & 0x1U) << 30U;
554}
555static inline u32 pwr_pmu_mutex_id_r(void)
556{
557 return 0x0010a488U;
558}
559static inline u32 pwr_pmu_mutex_id_value_v(u32 r)
560{
561 return (r >> 0U) & 0xffU;
562}
563static inline u32 pwr_pmu_mutex_id_value_init_v(void)
564{
565 return 0x00000000U;
566}
567static inline u32 pwr_pmu_mutex_id_value_not_avail_v(void)
568{
569 return 0x000000ffU;
570}
571static inline u32 pwr_pmu_mutex_id_release_r(void)
572{
573 return 0x0010a48cU;
574}
575static inline u32 pwr_pmu_mutex_id_release_value_f(u32 v)
576{
577 return (v & 0xffU) << 0U;
578}
579static inline u32 pwr_pmu_mutex_id_release_value_m(void)
580{
581 return 0xffU << 0U;
582}
583static inline u32 pwr_pmu_mutex_id_release_value_init_v(void)
584{
585 return 0x00000000U;
586}
587static inline u32 pwr_pmu_mutex_id_release_value_init_f(void)
588{
589 return 0x0U;
590}
591static inline u32 pwr_pmu_mutex_r(u32 i)
592{
593 return 0x0010a580U + i*4U;
594}
595static inline u32 pwr_pmu_mutex__size_1_v(void)
596{
597 return 0x00000010U;
598}
599static inline u32 pwr_pmu_mutex_value_f(u32 v)
600{
601 return (v & 0xffU) << 0U;
602}
603static inline u32 pwr_pmu_mutex_value_v(u32 r)
604{
605 return (r >> 0U) & 0xffU;
606}
607static inline u32 pwr_pmu_mutex_value_initial_lock_f(void)
608{
609 return 0x0U;
610}
611static inline u32 pwr_pmu_queue_head_r(u32 i)
612{
613 return 0x0010a4a0U + i*4U;
614}
615static inline u32 pwr_pmu_queue_head__size_1_v(void)
616{
617 return 0x00000004U;
618}
619static inline u32 pwr_pmu_queue_head_address_f(u32 v)
620{
621 return (v & 0xffffffffU) << 0U;
622}
623static inline u32 pwr_pmu_queue_head_address_v(u32 r)
624{
625 return (r >> 0U) & 0xffffffffU;
626}
627static inline u32 pwr_pmu_queue_tail_r(u32 i)
628{
629 return 0x0010a4b0U + i*4U;
630}
631static inline u32 pwr_pmu_queue_tail__size_1_v(void)
632{
633 return 0x00000004U;
634}
635static inline u32 pwr_pmu_queue_tail_address_f(u32 v)
636{
637 return (v & 0xffffffffU) << 0U;
638}
639static inline u32 pwr_pmu_queue_tail_address_v(u32 r)
640{
641 return (r >> 0U) & 0xffffffffU;
642}
643static inline u32 pwr_pmu_msgq_head_r(void)
644{
645 return 0x0010a4c8U;
646}
647static inline u32 pwr_pmu_msgq_head_val_f(u32 v)
648{
649 return (v & 0xffffffffU) << 0U;
650}
651static inline u32 pwr_pmu_msgq_head_val_v(u32 r)
652{
653 return (r >> 0U) & 0xffffffffU;
654}
655static inline u32 pwr_pmu_msgq_tail_r(void)
656{
657 return 0x0010a4ccU;
658}
659static inline u32 pwr_pmu_msgq_tail_val_f(u32 v)
660{
661 return (v & 0xffffffffU) << 0U;
662}
663static inline u32 pwr_pmu_msgq_tail_val_v(u32 r)
664{
665 return (r >> 0U) & 0xffffffffU;
666}
667static inline u32 pwr_pmu_idle_mask_r(u32 i)
668{
669 return 0x0010a504U + i*16U;
670}
671static inline u32 pwr_pmu_idle_mask_gr_enabled_f(void)
672{
673 return 0x1U;
674}
675static inline u32 pwr_pmu_idle_mask_ce_2_enabled_f(void)
676{
677 return 0x200000U;
678}
679static inline u32 pwr_pmu_idle_mask_1_r(u32 i)
680{
681 return 0x0010aa34U + i*8U;
682}
683static inline u32 pwr_pmu_idle_count_r(u32 i)
684{
685 return 0x0010a508U + i*16U;
686}
687static inline u32 pwr_pmu_idle_count_value_f(u32 v)
688{
689 return (v & 0x7fffffffU) << 0U;
690}
691static inline u32 pwr_pmu_idle_count_value_v(u32 r)
692{
693 return (r >> 0U) & 0x7fffffffU;
694}
695static inline u32 pwr_pmu_idle_count_reset_f(u32 v)
696{
697 return (v & 0x1U) << 31U;
698}
699static inline u32 pwr_pmu_idle_ctrl_r(u32 i)
700{
701 return 0x0010a50cU + i*16U;
702}
703static inline u32 pwr_pmu_idle_ctrl_value_m(void)
704{
705 return 0x3U << 0U;
706}
707static inline u32 pwr_pmu_idle_ctrl_value_busy_f(void)
708{
709 return 0x2U;
710}
711static inline u32 pwr_pmu_idle_ctrl_value_always_f(void)
712{
713 return 0x3U;
714}
715static inline u32 pwr_pmu_idle_ctrl_filter_m(void)
716{
717 return 0x1U << 2U;
718}
719static inline u32 pwr_pmu_idle_ctrl_filter_disabled_f(void)
720{
721 return 0x0U;
722}
723static inline u32 pwr_pmu_idle_threshold_r(u32 i)
724{
725 return 0x0010a8a0U + i*4U;
726}
727static inline u32 pwr_pmu_idle_threshold_value_f(u32 v)
728{
729 return (v & 0x7fffffffU) << 0U;
730}
731static inline u32 pwr_pmu_idle_intr_r(void)
732{
733 return 0x0010a9e8U;
734}
735static inline u32 pwr_pmu_idle_intr_en_f(u32 v)
736{
737 return (v & 0x1U) << 0U;
738}
739static inline u32 pwr_pmu_idle_intr_en_disabled_v(void)
740{
741 return 0x00000000U;
742}
743static inline u32 pwr_pmu_idle_intr_en_enabled_v(void)
744{
745 return 0x00000001U;
746}
747static inline u32 pwr_pmu_idle_intr_status_r(void)
748{
749 return 0x0010a9ecU;
750}
751static inline u32 pwr_pmu_idle_intr_status_intr_f(u32 v)
752{
753 return (v & 0x1U) << 0U;
754}
755static inline u32 pwr_pmu_idle_intr_status_intr_m(void)
756{
757 return 0x1U << 0U;
758}
759static inline u32 pwr_pmu_idle_intr_status_intr_v(u32 r)
760{
761 return (r >> 0U) & 0x1U;
762}
763static inline u32 pwr_pmu_idle_intr_status_intr_pending_v(void)
764{
765 return 0x00000001U;
766}
767static inline u32 pwr_pmu_idle_intr_status_intr_clear_v(void)
768{
769 return 0x00000001U;
770}
771static inline u32 pwr_pmu_idle_mask_supp_r(u32 i)
772{
773 return 0x0010a9f0U + i*8U;
774}
775static inline u32 pwr_pmu_idle_mask_1_supp_r(u32 i)
776{
777 return 0x0010a9f4U + i*8U;
778}
779static inline u32 pwr_pmu_idle_ctrl_supp_r(u32 i)
780{
781 return 0x0010aa30U + i*8U;
782}
783static inline u32 pwr_pmu_debug_r(u32 i)
784{
785 return 0x0010a5c0U + i*4U;
786}
787static inline u32 pwr_pmu_debug__size_1_v(void)
788{
789 return 0x00000004U;
790}
791static inline u32 pwr_pmu_mailbox_r(u32 i)
792{
793 return 0x0010a450U + i*4U;
794}
795static inline u32 pwr_pmu_mailbox__size_1_v(void)
796{
797 return 0x0000000cU;
798}
799static inline u32 pwr_pmu_bar0_addr_r(void)
800{
801 return 0x0010a7a0U;
802}
803static inline u32 pwr_pmu_bar0_data_r(void)
804{
805 return 0x0010a7a4U;
806}
807static inline u32 pwr_pmu_bar0_ctl_r(void)
808{
809 return 0x0010a7acU;
810}
811static inline u32 pwr_pmu_bar0_timeout_r(void)
812{
813 return 0x0010a7a8U;
814}
815static inline u32 pwr_pmu_bar0_fecs_error_r(void)
816{
817 return 0x0010a988U;
818}
819static inline u32 pwr_pmu_bar0_error_status_r(void)
820{
821 return 0x0010a7b0U;
822}
823static inline u32 pwr_pmu_pg_idlefilth_r(u32 i)
824{
825 return 0x0010a6c0U + i*4U;
826}
827static inline u32 pwr_pmu_pg_ppuidlefilth_r(u32 i)
828{
829 return 0x0010a6e8U + i*4U;
830}
831static inline u32 pwr_pmu_pg_idle_cnt_r(u32 i)
832{
833 return 0x0010a710U + i*4U;
834}
835static inline u32 pwr_pmu_pg_intren_r(u32 i)
836{
837 return 0x0010a760U + i*4U;
838}
839static inline u32 pwr_fbif_transcfg_r(u32 i)
840{
841 return 0x0010ae00U + i*4U;
842}
843static inline u32 pwr_fbif_transcfg_target_local_fb_f(void)
844{
845 return 0x0U;
846}
847static inline u32 pwr_fbif_transcfg_target_coherent_sysmem_f(void)
848{
849 return 0x1U;
850}
851static inline u32 pwr_fbif_transcfg_target_noncoherent_sysmem_f(void)
852{
853 return 0x2U;
854}
855static inline u32 pwr_fbif_transcfg_mem_type_s(void)
856{
857 return 1U;
858}
859static inline u32 pwr_fbif_transcfg_mem_type_f(u32 v)
860{
861 return (v & 0x1U) << 2U;
862}
863static inline u32 pwr_fbif_transcfg_mem_type_m(void)
864{
865 return 0x1U << 2U;
866}
867static inline u32 pwr_fbif_transcfg_mem_type_v(u32 r)
868{
869 return (r >> 2U) & 0x1U;
870}
871static inline u32 pwr_fbif_transcfg_mem_type_virtual_f(void)
872{
873 return 0x0U;
874}
875static inline u32 pwr_fbif_transcfg_mem_type_physical_f(void)
876{
877 return 0x4U;
878}
879#endif
diff --git a/include/nvgpu/hw/gm20b/hw_ram_gm20b.h b/include/nvgpu/hw/gm20b/hw_ram_gm20b.h
new file mode 100644
index 0000000..2414abf
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_ram_gm20b.h
@@ -0,0 +1,459 @@
1/*
2 * Copyright (c) 2014-2017, 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_ram_gm20b_h_
57#define _hw_ram_gm20b_h_
58
59static inline u32 ram_in_ramfc_s(void)
60{
61 return 4096U;
62}
63static inline u32 ram_in_ramfc_w(void)
64{
65 return 0U;
66}
67static inline u32 ram_in_page_dir_base_target_f(u32 v)
68{
69 return (v & 0x3U) << 0U;
70}
71static inline u32 ram_in_page_dir_base_target_w(void)
72{
73 return 128U;
74}
75static inline u32 ram_in_page_dir_base_target_vid_mem_f(void)
76{
77 return 0x0U;
78}
79static inline u32 ram_in_page_dir_base_target_sys_mem_coh_f(void)
80{
81 return 0x2U;
82}
83static inline u32 ram_in_page_dir_base_target_sys_mem_ncoh_f(void)
84{
85 return 0x3U;
86}
87static inline u32 ram_in_page_dir_base_vol_w(void)
88{
89 return 128U;
90}
91static inline u32 ram_in_page_dir_base_vol_true_f(void)
92{
93 return 0x4U;
94}
95static inline u32 ram_in_big_page_size_f(u32 v)
96{
97 return (v & 0x1U) << 11U;
98}
99static inline u32 ram_in_big_page_size_m(void)
100{
101 return 0x1U << 11U;
102}
103static inline u32 ram_in_big_page_size_w(void)
104{
105 return 128U;
106}
107static inline u32 ram_in_big_page_size_128kb_f(void)
108{
109 return 0x0U;
110}
111static inline u32 ram_in_big_page_size_64kb_f(void)
112{
113 return 0x800U;
114}
115static inline u32 ram_in_page_dir_base_lo_f(u32 v)
116{
117 return (v & 0xfffffU) << 12U;
118}
119static inline u32 ram_in_page_dir_base_lo_w(void)
120{
121 return 128U;
122}
123static inline u32 ram_in_page_dir_base_hi_f(u32 v)
124{
125 return (v & 0xffU) << 0U;
126}
127static inline u32 ram_in_page_dir_base_hi_w(void)
128{
129 return 129U;
130}
131static inline u32 ram_in_adr_limit_lo_f(u32 v)
132{
133 return (v & 0xfffffU) << 12U;
134}
135static inline u32 ram_in_adr_limit_lo_w(void)
136{
137 return 130U;
138}
139static inline u32 ram_in_adr_limit_hi_f(u32 v)
140{
141 return (v & 0xffU) << 0U;
142}
143static inline u32 ram_in_adr_limit_hi_w(void)
144{
145 return 131U;
146}
147static inline u32 ram_in_engine_cs_w(void)
148{
149 return 132U;
150}
151static inline u32 ram_in_engine_cs_wfi_v(void)
152{
153 return 0x00000000U;
154}
155static inline u32 ram_in_engine_cs_wfi_f(void)
156{
157 return 0x0U;
158}
159static inline u32 ram_in_engine_cs_fg_v(void)
160{
161 return 0x00000001U;
162}
163static inline u32 ram_in_engine_cs_fg_f(void)
164{
165 return 0x8U;
166}
167static inline u32 ram_in_gr_cs_w(void)
168{
169 return 132U;
170}
171static inline u32 ram_in_gr_cs_wfi_f(void)
172{
173 return 0x0U;
174}
175static inline u32 ram_in_gr_wfi_target_w(void)
176{
177 return 132U;
178}
179static inline u32 ram_in_gr_wfi_mode_w(void)
180{
181 return 132U;
182}
183static inline u32 ram_in_gr_wfi_mode_physical_v(void)
184{
185 return 0x00000000U;
186}
187static inline u32 ram_in_gr_wfi_mode_physical_f(void)
188{
189 return 0x0U;
190}
191static inline u32 ram_in_gr_wfi_mode_virtual_v(void)
192{
193 return 0x00000001U;
194}
195static inline u32 ram_in_gr_wfi_mode_virtual_f(void)
196{
197 return 0x4U;
198}
199static inline u32 ram_in_gr_wfi_ptr_lo_f(u32 v)
200{
201 return (v & 0xfffffU) << 12U;
202}
203static inline u32 ram_in_gr_wfi_ptr_lo_w(void)
204{
205 return 132U;
206}
207static inline u32 ram_in_gr_wfi_ptr_hi_f(u32 v)
208{
209 return (v & 0xffU) << 0U;
210}
211static inline u32 ram_in_gr_wfi_ptr_hi_w(void)
212{
213 return 133U;
214}
215static inline u32 ram_in_base_shift_v(void)
216{
217 return 0x0000000cU;
218}
219static inline u32 ram_in_alloc_size_v(void)
220{
221 return 0x00001000U;
222}
223static inline u32 ram_fc_size_val_v(void)
224{
225 return 0x00000200U;
226}
227static inline u32 ram_fc_gp_put_w(void)
228{
229 return 0U;
230}
231static inline u32 ram_fc_userd_w(void)
232{
233 return 2U;
234}
235static inline u32 ram_fc_userd_hi_w(void)
236{
237 return 3U;
238}
239static inline u32 ram_fc_signature_w(void)
240{
241 return 4U;
242}
243static inline u32 ram_fc_gp_get_w(void)
244{
245 return 5U;
246}
247static inline u32 ram_fc_pb_get_w(void)
248{
249 return 6U;
250}
251static inline u32 ram_fc_pb_get_hi_w(void)
252{
253 return 7U;
254}
255static inline u32 ram_fc_pb_top_level_get_w(void)
256{
257 return 8U;
258}
259static inline u32 ram_fc_pb_top_level_get_hi_w(void)
260{
261 return 9U;
262}
263static inline u32 ram_fc_acquire_w(void)
264{
265 return 12U;
266}
267static inline u32 ram_fc_semaphorea_w(void)
268{
269 return 14U;
270}
271static inline u32 ram_fc_semaphoreb_w(void)
272{
273 return 15U;
274}
275static inline u32 ram_fc_semaphorec_w(void)
276{
277 return 16U;
278}
279static inline u32 ram_fc_semaphored_w(void)
280{
281 return 17U;
282}
283static inline u32 ram_fc_gp_base_w(void)
284{
285 return 18U;
286}
287static inline u32 ram_fc_gp_base_hi_w(void)
288{
289 return 19U;
290}
291static inline u32 ram_fc_gp_fetch_w(void)
292{
293 return 20U;
294}
295static inline u32 ram_fc_pb_fetch_w(void)
296{
297 return 21U;
298}
299static inline u32 ram_fc_pb_fetch_hi_w(void)
300{
301 return 22U;
302}
303static inline u32 ram_fc_pb_put_w(void)
304{
305 return 23U;
306}
307static inline u32 ram_fc_pb_put_hi_w(void)
308{
309 return 24U;
310}
311static inline u32 ram_fc_pb_header_w(void)
312{
313 return 33U;
314}
315static inline u32 ram_fc_pb_count_w(void)
316{
317 return 34U;
318}
319static inline u32 ram_fc_subdevice_w(void)
320{
321 return 37U;
322}
323static inline u32 ram_fc_formats_w(void)
324{
325 return 39U;
326}
327static inline u32 ram_fc_syncpointa_w(void)
328{
329 return 41U;
330}
331static inline u32 ram_fc_syncpointb_w(void)
332{
333 return 42U;
334}
335static inline u32 ram_fc_target_w(void)
336{
337 return 43U;
338}
339static inline u32 ram_fc_hce_ctrl_w(void)
340{
341 return 57U;
342}
343static inline u32 ram_fc_chid_w(void)
344{
345 return 58U;
346}
347static inline u32 ram_fc_chid_id_f(u32 v)
348{
349 return (v & 0xfffU) << 0U;
350}
351static inline u32 ram_fc_chid_id_w(void)
352{
353 return 0U;
354}
355static inline u32 ram_fc_runlist_timeslice_w(void)
356{
357 return 62U;
358}
359static inline u32 ram_userd_base_shift_v(void)
360{
361 return 0x00000009U;
362}
363static inline u32 ram_userd_chan_size_v(void)
364{
365 return 0x00000200U;
366}
367static inline u32 ram_userd_put_w(void)
368{
369 return 16U;
370}
371static inline u32 ram_userd_get_w(void)
372{
373 return 17U;
374}
375static inline u32 ram_userd_ref_w(void)
376{
377 return 18U;
378}
379static inline u32 ram_userd_put_hi_w(void)
380{
381 return 19U;
382}
383static inline u32 ram_userd_ref_threshold_w(void)
384{
385 return 20U;
386}
387static inline u32 ram_userd_top_level_get_w(void)
388{
389 return 22U;
390}
391static inline u32 ram_userd_top_level_get_hi_w(void)
392{
393 return 23U;
394}
395static inline u32 ram_userd_get_hi_w(void)
396{
397 return 24U;
398}
399static inline u32 ram_userd_gp_get_w(void)
400{
401 return 34U;
402}
403static inline u32 ram_userd_gp_put_w(void)
404{
405 return 35U;
406}
407static inline u32 ram_userd_gp_top_level_get_w(void)
408{
409 return 22U;
410}
411static inline u32 ram_userd_gp_top_level_get_hi_w(void)
412{
413 return 23U;
414}
415static inline u32 ram_rl_entry_size_v(void)
416{
417 return 0x00000008U;
418}
419static inline u32 ram_rl_entry_chid_f(u32 v)
420{
421 return (v & 0xfffU) << 0U;
422}
423static inline u32 ram_rl_entry_id_f(u32 v)
424{
425 return (v & 0xfffU) << 0U;
426}
427static inline u32 ram_rl_entry_type_f(u32 v)
428{
429 return (v & 0x1U) << 13U;
430}
431static inline u32 ram_rl_entry_type_chid_f(void)
432{
433 return 0x0U;
434}
435static inline u32 ram_rl_entry_type_tsg_f(void)
436{
437 return 0x2000U;
438}
439static inline u32 ram_rl_entry_timeslice_scale_f(u32 v)
440{
441 return (v & 0xfU) << 14U;
442}
443static inline u32 ram_rl_entry_timeslice_scale_3_f(void)
444{
445 return 0xc000U;
446}
447static inline u32 ram_rl_entry_timeslice_timeout_f(u32 v)
448{
449 return (v & 0xffU) << 18U;
450}
451static inline u32 ram_rl_entry_timeslice_timeout_128_f(void)
452{
453 return 0x2000000U;
454}
455static inline u32 ram_rl_entry_tsg_length_f(u32 v)
456{
457 return (v & 0x3fU) << 26U;
458}
459#endif
diff --git a/include/nvgpu/hw/gm20b/hw_therm_gm20b.h b/include/nvgpu/hw/gm20b/hw_therm_gm20b.h
new file mode 100644
index 0000000..fc1cd51
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_therm_gm20b.h
@@ -0,0 +1,355 @@
1/*
2 * Copyright (c) 2014-2017, 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_therm_gm20b_h_
57#define _hw_therm_gm20b_h_
58
59static inline u32 therm_use_a_r(void)
60{
61 return 0x00020798U;
62}
63static inline u32 therm_use_a_ext_therm_0_enable_f(void)
64{
65 return 0x1U;
66}
67static inline u32 therm_use_a_ext_therm_1_enable_f(void)
68{
69 return 0x2U;
70}
71static inline u32 therm_use_a_ext_therm_2_enable_f(void)
72{
73 return 0x4U;
74}
75static inline u32 therm_evt_ext_therm_0_r(void)
76{
77 return 0x00020700U;
78}
79static inline u32 therm_evt_ext_therm_0_slow_factor_f(u32 v)
80{
81 return (v & 0x3fU) << 8U;
82}
83static inline u32 therm_evt_ext_therm_0_slow_factor_init_v(void)
84{
85 return 0x00000000U;
86}
87static inline u32 therm_evt_ext_therm_1_r(void)
88{
89 return 0x00020704U;
90}
91static inline u32 therm_evt_ext_therm_1_slow_factor_f(u32 v)
92{
93 return (v & 0x3fU) << 8U;
94}
95static inline u32 therm_evt_ext_therm_1_slow_factor_init_v(void)
96{
97 return 0x00000000U;
98}
99static inline u32 therm_evt_ext_therm_2_r(void)
100{
101 return 0x00020708U;
102}
103static inline u32 therm_evt_ext_therm_2_slow_factor_f(u32 v)
104{
105 return (v & 0x3fU) << 8U;
106}
107static inline u32 therm_evt_ext_therm_2_slow_factor_init_v(void)
108{
109 return 0x00000000U;
110}
111static inline u32 therm_weight_1_r(void)
112{
113 return 0x00020024U;
114}
115static inline u32 therm_config1_r(void)
116{
117 return 0x00020050U;
118}
119static inline u32 therm_config2_r(void)
120{
121 return 0x00020130U;
122}
123static inline u32 therm_config2_slowdown_factor_extended_f(u32 v)
124{
125 return (v & 0x1U) << 24U;
126}
127static inline u32 therm_config2_grad_enable_f(u32 v)
128{
129 return (v & 0x1U) << 31U;
130}
131static inline u32 therm_gate_ctrl_r(u32 i)
132{
133 return 0x00020200U + i*4U;
134}
135static inline u32 therm_gate_ctrl_eng_clk_m(void)
136{
137 return 0x3U << 0U;
138}
139static inline u32 therm_gate_ctrl_eng_clk_run_f(void)
140{
141 return 0x0U;
142}
143static inline u32 therm_gate_ctrl_eng_clk_auto_f(void)
144{
145 return 0x1U;
146}
147static inline u32 therm_gate_ctrl_eng_clk_stop_f(void)
148{
149 return 0x2U;
150}
151static inline u32 therm_gate_ctrl_blk_clk_m(void)
152{
153 return 0x3U << 2U;
154}
155static inline u32 therm_gate_ctrl_blk_clk_run_f(void)
156{
157 return 0x0U;
158}
159static inline u32 therm_gate_ctrl_blk_clk_auto_f(void)
160{
161 return 0x4U;
162}
163static inline u32 therm_gate_ctrl_eng_pwr_m(void)
164{
165 return 0x3U << 4U;
166}
167static inline u32 therm_gate_ctrl_eng_pwr_auto_f(void)
168{
169 return 0x10U;
170}
171static inline u32 therm_gate_ctrl_eng_pwr_off_v(void)
172{
173 return 0x00000002U;
174}
175static inline u32 therm_gate_ctrl_eng_pwr_off_f(void)
176{
177 return 0x20U;
178}
179static inline u32 therm_gate_ctrl_eng_idle_filt_exp_f(u32 v)
180{
181 return (v & 0x1fU) << 8U;
182}
183static inline u32 therm_gate_ctrl_eng_idle_filt_exp_m(void)
184{
185 return 0x1fU << 8U;
186}
187static inline u32 therm_gate_ctrl_eng_idle_filt_mant_f(u32 v)
188{
189 return (v & 0x7U) << 13U;
190}
191static inline u32 therm_gate_ctrl_eng_idle_filt_mant_m(void)
192{
193 return 0x7U << 13U;
194}
195static inline u32 therm_gate_ctrl_eng_delay_before_f(u32 v)
196{
197 return (v & 0xfU) << 16U;
198}
199static inline u32 therm_gate_ctrl_eng_delay_before_m(void)
200{
201 return 0xfU << 16U;
202}
203static inline u32 therm_gate_ctrl_eng_delay_after_f(u32 v)
204{
205 return (v & 0xfU) << 20U;
206}
207static inline u32 therm_gate_ctrl_eng_delay_after_m(void)
208{
209 return 0xfU << 20U;
210}
211static inline u32 therm_fecs_idle_filter_r(void)
212{
213 return 0x00020288U;
214}
215static inline u32 therm_fecs_idle_filter_value_m(void)
216{
217 return 0xffffffffU << 0U;
218}
219static inline u32 therm_hubmmu_idle_filter_r(void)
220{
221 return 0x0002028cU;
222}
223static inline u32 therm_hubmmu_idle_filter_value_m(void)
224{
225 return 0xffffffffU << 0U;
226}
227static inline u32 therm_clk_slowdown_r(u32 i)
228{
229 return 0x00020160U + i*4U;
230}
231static inline u32 therm_clk_slowdown_idle_factor_f(u32 v)
232{
233 return (v & 0x3fU) << 16U;
234}
235static inline u32 therm_clk_slowdown_idle_factor_m(void)
236{
237 return 0x3fU << 16U;
238}
239static inline u32 therm_clk_slowdown_idle_factor_v(u32 r)
240{
241 return (r >> 16U) & 0x3fU;
242}
243static inline u32 therm_clk_slowdown_idle_factor_disabled_f(void)
244{
245 return 0x0U;
246}
247static inline u32 therm_grad_stepping_table_r(u32 i)
248{
249 return 0x000202c8U + i*4U;
250}
251static inline u32 therm_grad_stepping_table_slowdown_factor0_f(u32 v)
252{
253 return (v & 0x3fU) << 0U;
254}
255static inline u32 therm_grad_stepping_table_slowdown_factor0_m(void)
256{
257 return 0x3fU << 0U;
258}
259static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by1p5_f(void)
260{
261 return 0x1U;
262}
263static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by2_f(void)
264{
265 return 0x2U;
266}
267static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by4_f(void)
268{
269 return 0x6U;
270}
271static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by8_f(void)
272{
273 return 0xeU;
274}
275static inline u32 therm_grad_stepping_table_slowdown_factor1_f(u32 v)
276{
277 return (v & 0x3fU) << 6U;
278}
279static inline u32 therm_grad_stepping_table_slowdown_factor1_m(void)
280{
281 return 0x3fU << 6U;
282}
283static inline u32 therm_grad_stepping_table_slowdown_factor2_f(u32 v)
284{
285 return (v & 0x3fU) << 12U;
286}
287static inline u32 therm_grad_stepping_table_slowdown_factor2_m(void)
288{
289 return 0x3fU << 12U;
290}
291static inline u32 therm_grad_stepping_table_slowdown_factor3_f(u32 v)
292{
293 return (v & 0x3fU) << 18U;
294}
295static inline u32 therm_grad_stepping_table_slowdown_factor3_m(void)
296{
297 return 0x3fU << 18U;
298}
299static inline u32 therm_grad_stepping_table_slowdown_factor4_f(u32 v)
300{
301 return (v & 0x3fU) << 24U;
302}
303static inline u32 therm_grad_stepping_table_slowdown_factor4_m(void)
304{
305 return 0x3fU << 24U;
306}
307static inline u32 therm_grad_stepping0_r(void)
308{
309 return 0x000202c0U;
310}
311static inline u32 therm_grad_stepping0_feature_s(void)
312{
313 return 1U;
314}
315static inline u32 therm_grad_stepping0_feature_f(u32 v)
316{
317 return (v & 0x1U) << 0U;
318}
319static inline u32 therm_grad_stepping0_feature_m(void)
320{
321 return 0x1U << 0U;
322}
323static inline u32 therm_grad_stepping0_feature_v(u32 r)
324{
325 return (r >> 0U) & 0x1U;
326}
327static inline u32 therm_grad_stepping0_feature_enable_f(void)
328{
329 return 0x1U;
330}
331static inline u32 therm_grad_stepping1_r(void)
332{
333 return 0x000202c4U;
334}
335static inline u32 therm_grad_stepping1_pdiv_duration_f(u32 v)
336{
337 return (v & 0x1ffffU) << 0U;
338}
339static inline u32 therm_clk_timing_r(u32 i)
340{
341 return 0x000203c0U + i*4U;
342}
343static inline u32 therm_clk_timing_grad_slowdown_f(u32 v)
344{
345 return (v & 0x1U) << 16U;
346}
347static inline u32 therm_clk_timing_grad_slowdown_m(void)
348{
349 return 0x1U << 16U;
350}
351static inline u32 therm_clk_timing_grad_slowdown_enabled_f(void)
352{
353 return 0x10000U;
354}
355#endif
diff --git a/include/nvgpu/hw/gm20b/hw_timer_gm20b.h b/include/nvgpu/hw/gm20b/hw_timer_gm20b.h
new file mode 100644
index 0000000..f409367
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_timer_gm20b.h
@@ -0,0 +1,127 @@
1/*
2 * Copyright (c) 2016-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_timer_gm20b_h_
57#define _hw_timer_gm20b_h_
58
59static inline u32 timer_pri_timeout_r(void)
60{
61 return 0x00009080U;
62}
63static inline u32 timer_pri_timeout_period_f(u32 v)
64{
65 return (v & 0xffffffU) << 0U;
66}
67static inline u32 timer_pri_timeout_period_m(void)
68{
69 return 0xffffffU << 0U;
70}
71static inline u32 timer_pri_timeout_period_v(u32 r)
72{
73 return (r >> 0U) & 0xffffffU;
74}
75static inline u32 timer_pri_timeout_en_f(u32 v)
76{
77 return (v & 0x1U) << 31U;
78}
79static inline u32 timer_pri_timeout_en_m(void)
80{
81 return 0x1U << 31U;
82}
83static inline u32 timer_pri_timeout_en_v(u32 r)
84{
85 return (r >> 31U) & 0x1U;
86}
87static inline u32 timer_pri_timeout_en_en_enabled_f(void)
88{
89 return 0x80000000U;
90}
91static inline u32 timer_pri_timeout_en_en_disabled_f(void)
92{
93 return 0x0U;
94}
95static inline u32 timer_pri_timeout_save_0_r(void)
96{
97 return 0x00009084U;
98}
99static inline u32 timer_pri_timeout_save_0_fecs_tgt_v(u32 r)
100{
101 return (r >> 31U) & 0x1U;
102}
103static inline u32 timer_pri_timeout_save_0_addr_v(u32 r)
104{
105 return (r >> 2U) & 0x3fffffU;
106}
107static inline u32 timer_pri_timeout_save_0_write_v(u32 r)
108{
109 return (r >> 1U) & 0x1U;
110}
111static inline u32 timer_pri_timeout_save_1_r(void)
112{
113 return 0x00009088U;
114}
115static inline u32 timer_pri_timeout_fecs_errcode_r(void)
116{
117 return 0x0000908cU;
118}
119static inline u32 timer_time_0_r(void)
120{
121 return 0x00009400U;
122}
123static inline u32 timer_time_1_r(void)
124{
125 return 0x00009410U;
126}
127#endif
diff --git a/include/nvgpu/hw/gm20b/hw_top_gm20b.h b/include/nvgpu/hw/gm20b/hw_top_gm20b.h
new file mode 100644
index 0000000..6d48839
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_top_gm20b.h
@@ -0,0 +1,235 @@
1/*
2 * Copyright (c) 2014-2017, 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_top_gm20b_h_
57#define _hw_top_gm20b_h_
58
59static inline u32 top_num_gpcs_r(void)
60{
61 return 0x00022430U;
62}
63static inline u32 top_num_gpcs_value_v(u32 r)
64{
65 return (r >> 0U) & 0x1fU;
66}
67static inline u32 top_tpc_per_gpc_r(void)
68{
69 return 0x00022434U;
70}
71static inline u32 top_tpc_per_gpc_value_v(u32 r)
72{
73 return (r >> 0U) & 0x1fU;
74}
75static inline u32 top_num_fbps_r(void)
76{
77 return 0x00022438U;
78}
79static inline u32 top_num_fbps_value_v(u32 r)
80{
81 return (r >> 0U) & 0x1fU;
82}
83static inline u32 top_ltc_per_fbp_r(void)
84{
85 return 0x00022450U;
86}
87static inline u32 top_ltc_per_fbp_value_v(u32 r)
88{
89 return (r >> 0U) & 0x1fU;
90}
91static inline u32 top_slices_per_ltc_r(void)
92{
93 return 0x0002245cU;
94}
95static inline u32 top_slices_per_ltc_value_v(u32 r)
96{
97 return (r >> 0U) & 0x1fU;
98}
99static inline u32 top_num_ltcs_r(void)
100{
101 return 0x00022454U;
102}
103static inline u32 top_device_info_r(u32 i)
104{
105 return 0x00022700U + i*4U;
106}
107static inline u32 top_device_info__size_1_v(void)
108{
109 return 0x00000040U;
110}
111static inline u32 top_device_info_chain_v(u32 r)
112{
113 return (r >> 31U) & 0x1U;
114}
115static inline u32 top_device_info_chain_enable_v(void)
116{
117 return 0x00000001U;
118}
119static inline u32 top_device_info_engine_enum_v(u32 r)
120{
121 return (r >> 26U) & 0xfU;
122}
123static inline u32 top_device_info_runlist_enum_v(u32 r)
124{
125 return (r >> 21U) & 0xfU;
126}
127static inline u32 top_device_info_intr_enum_v(u32 r)
128{
129 return (r >> 15U) & 0x1fU;
130}
131static inline u32 top_device_info_reset_enum_v(u32 r)
132{
133 return (r >> 9U) & 0x1fU;
134}
135static inline u32 top_device_info_type_enum_v(u32 r)
136{
137 return (r >> 2U) & 0x1fffffffU;
138}
139static inline u32 top_device_info_type_enum_graphics_v(void)
140{
141 return 0x00000000U;
142}
143static inline u32 top_device_info_type_enum_graphics_f(void)
144{
145 return 0x0U;
146}
147static inline u32 top_device_info_type_enum_copy0_v(void)
148{
149 return 0x00000001U;
150}
151static inline u32 top_device_info_type_enum_copy0_f(void)
152{
153 return 0x4U;
154}
155static inline u32 top_device_info_type_enum_copy1_v(void)
156{
157 return 0x00000002U;
158}
159static inline u32 top_device_info_type_enum_copy1_f(void)
160{
161 return 0x8U;
162}
163static inline u32 top_device_info_type_enum_copy2_v(void)
164{
165 return 0x00000003U;
166}
167static inline u32 top_device_info_type_enum_copy2_f(void)
168{
169 return 0xcU;
170}
171static inline u32 top_device_info_engine_v(u32 r)
172{
173 return (r >> 5U) & 0x1U;
174}
175static inline u32 top_device_info_runlist_v(u32 r)
176{
177 return (r >> 4U) & 0x1U;
178}
179static inline u32 top_device_info_intr_v(u32 r)
180{
181 return (r >> 3U) & 0x1U;
182}
183static inline u32 top_device_info_reset_v(u32 r)
184{
185 return (r >> 2U) & 0x1U;
186}
187static inline u32 top_device_info_entry_v(u32 r)
188{
189 return (r >> 0U) & 0x3U;
190}
191static inline u32 top_device_info_entry_not_valid_v(void)
192{
193 return 0x00000000U;
194}
195static inline u32 top_device_info_entry_enum_v(void)
196{
197 return 0x00000002U;
198}
199static inline u32 top_device_info_entry_engine_type_v(void)
200{
201 return 0x00000003U;
202}
203static inline u32 top_device_info_entry_data_v(void)
204{
205 return 0x00000001U;
206}
207static inline u32 top_device_info_data_type_v(u32 r)
208{
209 return (r >> 30U) & 0x1U;
210}
211static inline u32 top_device_info_data_type_enum2_v(void)
212{
213 return 0x00000000U;
214}
215static inline u32 top_device_info_data_pri_base_v(u32 r)
216{
217 return (r >> 12U) & 0x7ffU;
218}
219static inline u32 top_device_info_data_pri_base_align_v(void)
220{
221 return 0x0000000cU;
222}
223static inline u32 top_device_info_data_fault_id_enum_v(u32 r)
224{
225 return (r >> 3U) & 0x1fU;
226}
227static inline u32 top_device_info_data_fault_id_v(u32 r)
228{
229 return (r >> 2U) & 0x1U;
230}
231static inline u32 top_device_info_data_fault_id_valid_v(void)
232{
233 return 0x00000001U;
234}
235#endif
diff --git a/include/nvgpu/hw/gm20b/hw_trim_gm20b.h b/include/nvgpu/hw/gm20b/hw_trim_gm20b.h
new file mode 100644
index 0000000..8f0a77a
--- /dev/null
+++ b/include/nvgpu/hw/gm20b/hw_trim_gm20b.h
@@ -0,0 +1,503 @@
1/*
2 * Copyright (c) 2014-2017, 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_trim_gm20b_h_
57#define _hw_trim_gm20b_h_
58
59static inline u32 trim_sys_gpcpll_cfg_r(void)
60{
61 return 0x00137000U;
62}
63static inline u32 trim_sys_gpcpll_cfg_enable_m(void)
64{
65 return 0x1U << 0U;
66}
67static inline u32 trim_sys_gpcpll_cfg_enable_v(u32 r)
68{
69 return (r >> 0U) & 0x1U;
70}
71static inline u32 trim_sys_gpcpll_cfg_enable_no_f(void)
72{
73 return 0x0U;
74}
75static inline u32 trim_sys_gpcpll_cfg_enable_yes_f(void)
76{
77 return 0x1U;
78}
79static inline u32 trim_sys_gpcpll_cfg_iddq_m(void)
80{
81 return 0x1U << 1U;
82}
83static inline u32 trim_sys_gpcpll_cfg_iddq_v(u32 r)
84{
85 return (r >> 1U) & 0x1U;
86}
87static inline u32 trim_sys_gpcpll_cfg_iddq_power_on_v(void)
88{
89 return 0x00000000U;
90}
91static inline u32 trim_sys_gpcpll_cfg_sync_mode_m(void)
92{
93 return 0x1U << 2U;
94}
95static inline u32 trim_sys_gpcpll_cfg_sync_mode_v(u32 r)
96{
97 return (r >> 2U) & 0x1U;
98}
99static inline u32 trim_sys_gpcpll_cfg_sync_mode_enable_f(void)
100{
101 return 0x4U;
102}
103static inline u32 trim_sys_gpcpll_cfg_sync_mode_disable_f(void)
104{
105 return 0x0U;
106}
107static inline u32 trim_sys_gpcpll_cfg_enb_lckdet_m(void)
108{
109 return 0x1U << 4U;
110}
111static inline u32 trim_sys_gpcpll_cfg_enb_lckdet_power_on_f(void)
112{
113 return 0x0U;
114}
115static inline u32 trim_sys_gpcpll_cfg_enb_lckdet_power_off_f(void)
116{
117 return 0x10U;
118}
119static inline u32 trim_sys_gpcpll_cfg_pll_lock_v(u32 r)
120{
121 return (r >> 17U) & 0x1U;
122}
123static inline u32 trim_sys_gpcpll_cfg_pll_lock_true_f(void)
124{
125 return 0x20000U;
126}
127static inline u32 trim_sys_gpcpll_coeff_r(void)
128{
129 return 0x00137004U;
130}
131static inline u32 trim_sys_gpcpll_coeff_mdiv_f(u32 v)
132{
133 return (v & 0xffU) << 0U;
134}
135static inline u32 trim_sys_gpcpll_coeff_mdiv_m(void)
136{
137 return 0xffU << 0U;
138}
139static inline u32 trim_sys_gpcpll_coeff_mdiv_v(u32 r)
140{
141 return (r >> 0U) & 0xffU;
142}
143static inline u32 trim_sys_gpcpll_coeff_ndiv_f(u32 v)
144{
145 return (v & 0xffU) << 8U;
146}
147static inline u32 trim_sys_gpcpll_coeff_ndiv_m(void)
148{
149 return 0xffU << 8U;
150}
151static inline u32 trim_sys_gpcpll_coeff_ndiv_v(u32 r)
152{
153 return (r >> 8U) & 0xffU;
154}
155static inline u32 trim_sys_gpcpll_coeff_pldiv_f(u32 v)
156{
157 return (v & 0x3fU) << 16U;
158}
159static inline u32 trim_sys_gpcpll_coeff_pldiv_m(void)
160{
161 return 0x3fU << 16U;
162}
163static inline u32 trim_sys_gpcpll_coeff_pldiv_v(u32 r)
164{
165 return (r >> 16U) & 0x3fU;
166}
167static inline u32 trim_sys_sel_vco_r(void)
168{
169 return 0x00137100U;
170}
171static inline u32 trim_sys_sel_vco_gpc2clk_out_m(void)
172{
173 return 0x1U << 0U;
174}
175static inline u32 trim_sys_sel_vco_gpc2clk_out_init_v(void)
176{
177 return 0x00000000U;
178}
179static inline u32 trim_sys_sel_vco_gpc2clk_out_init_f(void)
180{
181 return 0x0U;
182}
183static inline u32 trim_sys_sel_vco_gpc2clk_out_bypass_f(void)
184{
185 return 0x0U;
186}
187static inline u32 trim_sys_sel_vco_gpc2clk_out_vco_f(void)
188{
189 return 0x1U;
190}
191static inline u32 trim_sys_gpc2clk_out_r(void)
192{
193 return 0x00137250U;
194}
195static inline u32 trim_sys_gpc2clk_out_bypdiv_s(void)
196{
197 return 6U;
198}
199static inline u32 trim_sys_gpc2clk_out_bypdiv_f(u32 v)
200{
201 return (v & 0x3fU) << 0U;
202}
203static inline u32 trim_sys_gpc2clk_out_bypdiv_m(void)
204{
205 return 0x3fU << 0U;
206}
207static inline u32 trim_sys_gpc2clk_out_bypdiv_v(u32 r)
208{
209 return (r >> 0U) & 0x3fU;
210}
211static inline u32 trim_sys_gpc2clk_out_bypdiv_by31_f(void)
212{
213 return 0x3cU;
214}
215static inline u32 trim_sys_gpc2clk_out_vcodiv_s(void)
216{
217 return 6U;
218}
219static inline u32 trim_sys_gpc2clk_out_vcodiv_f(u32 v)
220{
221 return (v & 0x3fU) << 8U;
222}
223static inline u32 trim_sys_gpc2clk_out_vcodiv_m(void)
224{
225 return 0x3fU << 8U;
226}
227static inline u32 trim_sys_gpc2clk_out_vcodiv_v(u32 r)
228{
229 return (r >> 8U) & 0x3fU;
230}
231static inline u32 trim_sys_gpc2clk_out_vcodiv_by1_f(void)
232{
233 return 0x0U;
234}
235static inline u32 trim_sys_gpc2clk_out_sdiv14_m(void)
236{
237 return 0x1U << 31U;
238}
239static inline u32 trim_sys_gpc2clk_out_sdiv14_indiv4_mode_f(void)
240{
241 return 0x80000000U;
242}
243static inline u32 trim_gpc_clk_cntr_ncgpcclk_cfg_r(u32 i)
244{
245 return 0x00134124U + i*512U;
246}
247static inline u32 trim_gpc_clk_cntr_ncgpcclk_cfg_noofipclks_f(u32 v)
248{
249 return (v & 0x3fffU) << 0U;
250}
251static inline u32 trim_gpc_clk_cntr_ncgpcclk_cfg_write_en_asserted_f(void)
252{
253 return 0x10000U;
254}
255static inline u32 trim_gpc_clk_cntr_ncgpcclk_cfg_enable_asserted_f(void)
256{
257 return 0x100000U;
258}
259static inline u32 trim_gpc_clk_cntr_ncgpcclk_cfg_reset_asserted_f(void)
260{
261 return 0x1000000U;
262}
263static inline u32 trim_gpc_clk_cntr_ncgpcclk_cnt_r(u32 i)
264{
265 return 0x00134128U + i*512U;
266}
267static inline u32 trim_gpc_clk_cntr_ncgpcclk_cnt_value_v(u32 r)
268{
269 return (r >> 0U) & 0xfffffU;
270}
271static inline u32 trim_sys_gpcpll_cfg2_r(void)
272{
273 return 0x0013700cU;
274}
275static inline u32 trim_sys_gpcpll_cfg2_sdm_din_f(u32 v)
276{
277 return (v & 0xffU) << 0U;
278}
279static inline u32 trim_sys_gpcpll_cfg2_sdm_din_m(void)
280{
281 return 0xffU << 0U;
282}
283static inline u32 trim_sys_gpcpll_cfg2_sdm_din_v(u32 r)
284{
285 return (r >> 0U) & 0xffU;
286}
287static inline u32 trim_sys_gpcpll_cfg2_sdm_din_new_f(u32 v)
288{
289 return (v & 0xffU) << 8U;
290}
291static inline u32 trim_sys_gpcpll_cfg2_sdm_din_new_m(void)
292{
293 return 0xffU << 8U;
294}
295static inline u32 trim_sys_gpcpll_cfg2_sdm_din_new_v(u32 r)
296{
297 return (r >> 8U) & 0xffU;
298}
299static inline u32 trim_sys_gpcpll_cfg2_pll_stepa_f(u32 v)
300{
301 return (v & 0xffU) << 24U;
302}
303static inline u32 trim_sys_gpcpll_cfg2_pll_stepa_m(void)
304{
305 return 0xffU << 24U;
306}
307static inline u32 trim_sys_gpcpll_cfg3_r(void)
308{
309 return 0x00137018U;
310}
311static inline u32 trim_sys_gpcpll_cfg3_vco_ctrl_f(u32 v)
312{
313 return (v & 0x1ffU) << 0U;
314}
315static inline u32 trim_sys_gpcpll_cfg3_vco_ctrl_m(void)
316{
317 return 0x1ffU << 0U;
318}
319static inline u32 trim_sys_gpcpll_cfg3_pll_stepb_f(u32 v)
320{
321 return (v & 0xffU) << 16U;
322}
323static inline u32 trim_sys_gpcpll_cfg3_pll_stepb_m(void)
324{
325 return 0xffU << 16U;
326}
327static inline u32 trim_sys_gpcpll_cfg3_dfs_testout_v(u32 r)
328{
329 return (r >> 24U) & 0x7fU;
330}
331static inline u32 trim_sys_gpcpll_dvfs0_r(void)
332{
333 return 0x00137010U;
334}
335static inline u32 trim_sys_gpcpll_dvfs0_dfs_coeff_f(u32 v)
336{
337 return (v & 0x7fU) << 0U;
338}
339static inline u32 trim_sys_gpcpll_dvfs0_dfs_coeff_m(void)
340{
341 return 0x7fU << 0U;
342}
343static inline u32 trim_sys_gpcpll_dvfs0_dfs_coeff_v(u32 r)
344{
345 return (r >> 0U) & 0x7fU;
346}
347static inline u32 trim_sys_gpcpll_dvfs0_dfs_det_max_f(u32 v)
348{
349 return (v & 0x7fU) << 8U;
350}
351static inline u32 trim_sys_gpcpll_dvfs0_dfs_det_max_m(void)
352{
353 return 0x7fU << 8U;
354}
355static inline u32 trim_sys_gpcpll_dvfs0_dfs_det_max_v(u32 r)
356{
357 return (r >> 8U) & 0x7fU;
358}
359static inline u32 trim_sys_gpcpll_dvfs0_dfs_dc_offset_f(u32 v)
360{
361 return (v & 0x3fU) << 16U;
362}
363static inline u32 trim_sys_gpcpll_dvfs0_dfs_dc_offset_m(void)
364{
365 return 0x3fU << 16U;
366}
367static inline u32 trim_sys_gpcpll_dvfs0_dfs_dc_offset_v(u32 r)
368{
369 return (r >> 16U) & 0x3fU;
370}
371static inline u32 trim_sys_gpcpll_dvfs0_mode_m(void)
372{
373 return 0x1U << 28U;
374}
375static inline u32 trim_sys_gpcpll_dvfs0_mode_dvfspll_f(void)
376{
377 return 0x0U;
378}
379static inline u32 trim_sys_gpcpll_dvfs1_r(void)
380{
381 return 0x00137014U;
382}
383static inline u32 trim_sys_gpcpll_dvfs1_dfs_ext_det_f(u32 v)
384{
385 return (v & 0x7fU) << 0U;
386}
387static inline u32 trim_sys_gpcpll_dvfs1_dfs_ext_det_m(void)
388{
389 return 0x7fU << 0U;
390}
391static inline u32 trim_sys_gpcpll_dvfs1_dfs_ext_det_v(u32 r)
392{
393 return (r >> 0U) & 0x7fU;
394}
395static inline u32 trim_sys_gpcpll_dvfs1_dfs_ext_strb_m(void)
396{
397 return 0x1U << 7U;
398}
399static inline u32 trim_sys_gpcpll_dvfs1_dfs_ext_cal_f(u32 v)
400{
401 return (v & 0x7fU) << 8U;
402}
403static inline u32 trim_sys_gpcpll_dvfs1_dfs_ext_cal_m(void)
404{
405 return 0x7fU << 8U;
406}
407static inline u32 trim_sys_gpcpll_dvfs1_dfs_ext_cal_v(u32 r)
408{
409 return (r >> 8U) & 0x7fU;
410}
411static inline u32 trim_sys_gpcpll_dvfs1_dfs_ext_sel_m(void)
412{
413 return 0x1U << 15U;
414}
415static inline u32 trim_sys_gpcpll_dvfs1_dfs_ctrl_f(u32 v)
416{
417 return (v & 0xfffU) << 16U;
418}
419static inline u32 trim_sys_gpcpll_dvfs1_dfs_ctrl_m(void)
420{
421 return 0xfffU << 16U;
422}
423static inline u32 trim_sys_gpcpll_dvfs1_dfs_ctrl_v(u32 r)
424{
425 return (r >> 16U) & 0xfffU;
426}
427static inline u32 trim_sys_gpcpll_dvfs1_en_sdm_m(void)
428{
429 return 0x1U << 28U;
430}
431static inline u32 trim_sys_gpcpll_dvfs1_en_dfs_m(void)
432{
433 return 0x1U << 29U;
434}
435static inline u32 trim_sys_gpcpll_dvfs1_en_dfs_cal_m(void)
436{
437 return 0x1U << 30U;
438}
439static inline u32 trim_sys_gpcpll_dvfs1_dfs_cal_done_v(u32 r)
440{
441 return (r >> 31U) & 0x1U;
442}
443static inline u32 trim_sys_gpcpll_dvfs2_r(void)
444{
445 return 0x00137020U;
446}
447static inline u32 trim_sys_gpcpll_ndiv_slowdown_r(void)
448{
449 return 0x0013701cU;
450}
451static inline u32 trim_sys_gpcpll_ndiv_slowdown_slowdown_using_pll_m(void)
452{
453 return 0x1U << 22U;
454}
455static inline u32 trim_sys_gpcpll_ndiv_slowdown_slowdown_using_pll_yes_f(void)
456{
457 return 0x400000U;
458}
459static inline u32 trim_sys_gpcpll_ndiv_slowdown_slowdown_using_pll_no_f(void)
460{
461 return 0x0U;
462}
463static inline u32 trim_sys_gpcpll_ndiv_slowdown_en_dynramp_m(void)
464{
465 return 0x1U << 31U;
466}
467static inline u32 trim_sys_gpcpll_ndiv_slowdown_en_dynramp_yes_f(void)
468{
469 return 0x80000000U;
470}
471static inline u32 trim_sys_gpcpll_ndiv_slowdown_en_dynramp_no_f(void)
472{
473 return 0x0U;
474}
475static inline u32 trim_gpc_bcast_gpcpll_ndiv_slowdown_debug_r(void)
476{
477 return 0x001328a0U;
478}
479static inline u32 trim_gpc_bcast_gpcpll_ndiv_slowdown_debug_pll_dynramp_done_synced_v(u32 r)
480{
481 return (r >> 24U) & 0x1U;
482}
483static inline u32 trim_gpc_bcast_gpcpll_dvfs2_r(void)
484{
485 return 0x00132820U;
486}
487static inline u32 trim_sys_bypassctrl_r(void)
488{
489 return 0x00137340U;
490}
491static inline u32 trim_sys_bypassctrl_gpcpll_m(void)
492{
493 return 0x1U << 0U;
494}
495static inline u32 trim_sys_bypassctrl_gpcpll_bypassclk_f(void)
496{
497 return 0x1U;
498}
499static inline u32 trim_sys_bypassctrl_gpcpll_vco_f(void)
500{
501 return 0x0U;
502}
503#endif
diff --git a/include/nvgpu/hw/gp106/hw_bus_gp106.h b/include/nvgpu/hw/gp106/hw_bus_gp106.h
new file mode 100644
index 0000000..ce3aafd
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_bus_gp106.h
@@ -0,0 +1,223 @@
1/*
2 * Copyright (c) 2016-2017, 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_bus_gp106_h_
57#define _hw_bus_gp106_h_
58
59static inline u32 bus_bar0_window_r(void)
60{
61 return 0x00001700U;
62}
63static inline u32 bus_bar0_window_base_f(u32 v)
64{
65 return (v & 0xffffffU) << 0U;
66}
67static inline u32 bus_bar0_window_target_vid_mem_f(void)
68{
69 return 0x0U;
70}
71static inline u32 bus_bar0_window_target_sys_mem_coherent_f(void)
72{
73 return 0x2000000U;
74}
75static inline u32 bus_bar0_window_target_sys_mem_noncoherent_f(void)
76{
77 return 0x3000000U;
78}
79static inline u32 bus_bar0_window_target_bar0_window_base_shift_v(void)
80{
81 return 0x00000010U;
82}
83static inline u32 bus_bar1_block_r(void)
84{
85 return 0x00001704U;
86}
87static inline u32 bus_bar1_block_ptr_f(u32 v)
88{
89 return (v & 0xfffffffU) << 0U;
90}
91static inline u32 bus_bar1_block_target_vid_mem_f(void)
92{
93 return 0x0U;
94}
95static inline u32 bus_bar1_block_target_sys_mem_coh_f(void)
96{
97 return 0x20000000U;
98}
99static inline u32 bus_bar1_block_target_sys_mem_ncoh_f(void)
100{
101 return 0x30000000U;
102}
103static inline u32 bus_bar1_block_mode_virtual_f(void)
104{
105 return 0x80000000U;
106}
107static inline u32 bus_bar2_block_r(void)
108{
109 return 0x00001714U;
110}
111static inline u32 bus_bar2_block_ptr_f(u32 v)
112{
113 return (v & 0xfffffffU) << 0U;
114}
115static inline u32 bus_bar2_block_target_vid_mem_f(void)
116{
117 return 0x0U;
118}
119static inline u32 bus_bar2_block_target_sys_mem_coh_f(void)
120{
121 return 0x20000000U;
122}
123static inline u32 bus_bar2_block_target_sys_mem_ncoh_f(void)
124{
125 return 0x30000000U;
126}
127static inline u32 bus_bar2_block_mode_virtual_f(void)
128{
129 return 0x80000000U;
130}
131static inline u32 bus_bar1_block_ptr_shift_v(void)
132{
133 return 0x0000000cU;
134}
135static inline u32 bus_bar2_block_ptr_shift_v(void)
136{
137 return 0x0000000cU;
138}
139static inline u32 bus_bind_status_r(void)
140{
141 return 0x00001710U;
142}
143static inline u32 bus_bind_status_bar1_pending_v(u32 r)
144{
145 return (r >> 0U) & 0x1U;
146}
147static inline u32 bus_bind_status_bar1_pending_empty_f(void)
148{
149 return 0x0U;
150}
151static inline u32 bus_bind_status_bar1_pending_busy_f(void)
152{
153 return 0x1U;
154}
155static inline u32 bus_bind_status_bar1_outstanding_v(u32 r)
156{
157 return (r >> 1U) & 0x1U;
158}
159static inline u32 bus_bind_status_bar1_outstanding_false_f(void)
160{
161 return 0x0U;
162}
163static inline u32 bus_bind_status_bar1_outstanding_true_f(void)
164{
165 return 0x2U;
166}
167static inline u32 bus_bind_status_bar2_pending_v(u32 r)
168{
169 return (r >> 2U) & 0x1U;
170}
171static inline u32 bus_bind_status_bar2_pending_empty_f(void)
172{
173 return 0x0U;
174}
175static inline u32 bus_bind_status_bar2_pending_busy_f(void)
176{
177 return 0x4U;
178}
179static inline u32 bus_bind_status_bar2_outstanding_v(u32 r)
180{
181 return (r >> 3U) & 0x1U;
182}
183static inline u32 bus_bind_status_bar2_outstanding_false_f(void)
184{
185 return 0x0U;
186}
187static inline u32 bus_bind_status_bar2_outstanding_true_f(void)
188{
189 return 0x8U;
190}
191static inline u32 bus_intr_0_r(void)
192{
193 return 0x00001100U;
194}
195static inline u32 bus_intr_0_pri_squash_m(void)
196{
197 return 0x1U << 1U;
198}
199static inline u32 bus_intr_0_pri_fecserr_m(void)
200{
201 return 0x1U << 2U;
202}
203static inline u32 bus_intr_0_pri_timeout_m(void)
204{
205 return 0x1U << 3U;
206}
207static inline u32 bus_intr_en_0_r(void)
208{
209 return 0x00001140U;
210}
211static inline u32 bus_intr_en_0_pri_squash_m(void)
212{
213 return 0x1U << 1U;
214}
215static inline u32 bus_intr_en_0_pri_fecserr_m(void)
216{
217 return 0x1U << 2U;
218}
219static inline u32 bus_intr_en_0_pri_timeout_m(void)
220{
221 return 0x1U << 3U;
222}
223#endif
diff --git a/include/nvgpu/hw/gp106/hw_ccsr_gp106.h b/include/nvgpu/hw/gp106/hw_ccsr_gp106.h
new file mode 100644
index 0000000..cd63777
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_ccsr_gp106.h
@@ -0,0 +1,163 @@
1/*
2 * Copyright (c) 2016-2017, 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_ccsr_gp106_h_
57#define _hw_ccsr_gp106_h_
58
59static inline u32 ccsr_channel_inst_r(u32 i)
60{
61 return 0x00800000U + i*8U;
62}
63static inline u32 ccsr_channel_inst__size_1_v(void)
64{
65 return 0x00001000U;
66}
67static inline u32 ccsr_channel_inst_ptr_f(u32 v)
68{
69 return (v & 0xfffffffU) << 0U;
70}
71static inline u32 ccsr_channel_inst_target_vid_mem_f(void)
72{
73 return 0x0U;
74}
75static inline u32 ccsr_channel_inst_target_sys_mem_coh_f(void)
76{
77 return 0x20000000U;
78}
79static inline u32 ccsr_channel_inst_target_sys_mem_ncoh_f(void)
80{
81 return 0x30000000U;
82}
83static inline u32 ccsr_channel_inst_bind_false_f(void)
84{
85 return 0x0U;
86}
87static inline u32 ccsr_channel_inst_bind_true_f(void)
88{
89 return 0x80000000U;
90}
91static inline u32 ccsr_channel_r(u32 i)
92{
93 return 0x00800004U + i*8U;
94}
95static inline u32 ccsr_channel__size_1_v(void)
96{
97 return 0x00001000U;
98}
99static inline u32 ccsr_channel_enable_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 ccsr_channel_enable_set_f(u32 v)
104{
105 return (v & 0x1U) << 10U;
106}
107static inline u32 ccsr_channel_enable_set_true_f(void)
108{
109 return 0x400U;
110}
111static inline u32 ccsr_channel_enable_clr_true_f(void)
112{
113 return 0x800U;
114}
115static inline u32 ccsr_channel_status_v(u32 r)
116{
117 return (r >> 24U) & 0xfU;
118}
119static inline u32 ccsr_channel_status_pending_ctx_reload_v(void)
120{
121 return 0x00000002U;
122}
123static inline u32 ccsr_channel_status_pending_acq_ctx_reload_v(void)
124{
125 return 0x00000004U;
126}
127static inline u32 ccsr_channel_status_on_pbdma_ctx_reload_v(void)
128{
129 return 0x0000000aU;
130}
131static inline u32 ccsr_channel_status_on_pbdma_and_eng_ctx_reload_v(void)
132{
133 return 0x0000000bU;
134}
135static inline u32 ccsr_channel_status_on_eng_ctx_reload_v(void)
136{
137 return 0x0000000cU;
138}
139static inline u32 ccsr_channel_status_on_eng_pending_ctx_reload_v(void)
140{
141 return 0x0000000dU;
142}
143static inline u32 ccsr_channel_status_on_eng_pending_acq_ctx_reload_v(void)
144{
145 return 0x0000000eU;
146}
147static inline u32 ccsr_channel_next_v(u32 r)
148{
149 return (r >> 1U) & 0x1U;
150}
151static inline u32 ccsr_channel_next_true_v(void)
152{
153 return 0x00000001U;
154}
155static inline u32 ccsr_channel_force_ctx_reload_true_f(void)
156{
157 return 0x100U;
158}
159static inline u32 ccsr_channel_busy_v(u32 r)
160{
161 return (r >> 28U) & 0x1U;
162}
163#endif
diff --git a/include/nvgpu/hw/gp106/hw_ce_gp106.h b/include/nvgpu/hw/gp106/hw_ce_gp106.h
new file mode 100644
index 0000000..8892f42
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_ce_gp106.h
@@ -0,0 +1,87 @@
1/*
2 * Copyright (c) 2016-2017, 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_ce_gp106_h_
57#define _hw_ce_gp106_h_
58
59static inline u32 ce_intr_status_r(u32 i)
60{
61 return 0x00104410U + i*128U;
62}
63static inline u32 ce_intr_status_blockpipe_pending_f(void)
64{
65 return 0x1U;
66}
67static inline u32 ce_intr_status_blockpipe_reset_f(void)
68{
69 return 0x1U;
70}
71static inline u32 ce_intr_status_nonblockpipe_pending_f(void)
72{
73 return 0x2U;
74}
75static inline u32 ce_intr_status_nonblockpipe_reset_f(void)
76{
77 return 0x2U;
78}
79static inline u32 ce_intr_status_launcherr_pending_f(void)
80{
81 return 0x4U;
82}
83static inline u32 ce_intr_status_launcherr_reset_f(void)
84{
85 return 0x4U;
86}
87#endif
diff --git a/include/nvgpu/hw/gp106/hw_ctxsw_prog_gp106.h b/include/nvgpu/hw/gp106/hw_ctxsw_prog_gp106.h
new file mode 100644
index 0000000..3387d23
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_ctxsw_prog_gp106.h
@@ -0,0 +1,295 @@
1/*
2 * Copyright (c) 2016-2017, 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_gp106_h_
57#define _hw_ctxsw_prog_gp106_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_patch_count_o(void)
68{
69 return 0x00000010U;
70}
71static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void)
72{
73 return 0x00000014U;
74}
75static inline u32 ctxsw_prog_main_image_patch_adr_hi_o(void)
76{
77 return 0x00000018U;
78}
79static inline u32 ctxsw_prog_main_image_zcull_o(void)
80{
81 return 0x0000001cU;
82}
83static inline u32 ctxsw_prog_main_image_zcull_mode_no_ctxsw_v(void)
84{
85 return 0x00000001U;
86}
87static inline u32 ctxsw_prog_main_image_zcull_mode_separate_buffer_v(void)
88{
89 return 0x00000002U;
90}
91static inline u32 ctxsw_prog_main_image_zcull_ptr_o(void)
92{
93 return 0x00000020U;
94}
95static inline u32 ctxsw_prog_main_image_pm_o(void)
96{
97 return 0x00000028U;
98}
99static inline u32 ctxsw_prog_main_image_pm_mode_m(void)
100{
101 return 0x7U << 0U;
102}
103static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void)
104{
105 return 0x0U;
106}
107static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void)
108{
109 return 0x7U << 3U;
110}
111static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void)
112{
113 return 0x8U;
114}
115static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void)
116{
117 return 0x0U;
118}
119static inline u32 ctxsw_prog_main_image_pm_ptr_o(void)
120{
121 return 0x0000002cU;
122}
123static inline u32 ctxsw_prog_main_image_num_save_ops_o(void)
124{
125 return 0x000000f4U;
126}
127static inline u32 ctxsw_prog_main_image_num_wfi_save_ops_o(void)
128{
129 return 0x000000d0U;
130}
131static inline u32 ctxsw_prog_main_image_num_cta_save_ops_o(void)
132{
133 return 0x000000d4U;
134}
135static inline u32 ctxsw_prog_main_image_num_gfxp_save_ops_o(void)
136{
137 return 0x000000d8U;
138}
139static inline u32 ctxsw_prog_main_image_num_cilp_save_ops_o(void)
140{
141 return 0x000000dcU;
142}
143static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void)
144{
145 return 0x000000f8U;
146}
147static inline u32 ctxsw_prog_main_image_magic_value_o(void)
148{
149 return 0x000000fcU;
150}
151static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void)
152{
153 return 0x600dc0deU;
154}
155static inline u32 ctxsw_prog_local_priv_register_ctl_o(void)
156{
157 return 0x0000000cU;
158}
159static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r)
160{
161 return (r >> 0U) & 0xffffU;
162}
163static inline u32 ctxsw_prog_local_image_ppc_info_o(void)
164{
165 return 0x000000f4U;
166}
167static inline u32 ctxsw_prog_local_image_ppc_info_num_ppcs_v(u32 r)
168{
169 return (r >> 0U) & 0xffffU;
170}
171static inline u32 ctxsw_prog_local_image_ppc_info_ppc_mask_v(u32 r)
172{
173 return (r >> 16U) & 0xffffU;
174}
175static inline u32 ctxsw_prog_local_image_num_tpcs_o(void)
176{
177 return 0x000000f8U;
178}
179static inline u32 ctxsw_prog_local_magic_value_o(void)
180{
181 return 0x000000fcU;
182}
183static inline u32 ctxsw_prog_local_magic_value_v_value_v(void)
184{
185 return 0xad0becabU;
186}
187static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void)
188{
189 return 0x000000ecU;
190}
191static inline u32 ctxsw_prog_main_extended_buffer_ctl_offset_v(u32 r)
192{
193 return (r >> 0U) & 0xffffU;
194}
195static inline u32 ctxsw_prog_main_extended_buffer_ctl_size_v(u32 r)
196{
197 return (r >> 16U) & 0xffU;
198}
199static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void)
200{
201 return 0x00000100U;
202}
203static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void)
204{
205 return 0x00000004U;
206}
207static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void)
208{
209 return 0x00000000U;
210}
211static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void)
212{
213 return 0x00000002U;
214}
215static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void)
216{
217 return 0x000000a0U;
218}
219static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void)
220{
221 return 2U;
222}
223static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v)
224{
225 return (v & 0x3U) << 0U;
226}
227static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void)
228{
229 return 0x3U << 0U;
230}
231static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r)
232{
233 return (r >> 0U) & 0x3U;
234}
235static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void)
236{
237 return 0x0U;
238}
239static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void)
240{
241 return 0x2U;
242}
243static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void)
244{
245 return 0x000000a4U;
246}
247static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void)
248{
249 return 0x000000a8U;
250}
251static inline u32 ctxsw_prog_main_image_misc_options_o(void)
252{
253 return 0x0000003cU;
254}
255static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void)
256{
257 return 0x1U << 3U;
258}
259static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void)
260{
261 return 0x0U;
262}
263static inline u32 ctxsw_prog_main_image_graphics_preemption_options_o(void)
264{
265 return 0x00000080U;
266}
267static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_f(u32 v)
268{
269 return (v & 0x3U) << 0U;
270}
271static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_gfxp_f(void)
272{
273 return 0x1U;
274}
275static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void)
276{
277 return 0x00000068U;
278}
279static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void)
280{
281 return 0x00000084U;
282}
283static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_f(u32 v)
284{
285 return (v & 0x3U) << 0U;
286}
287static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cta_f(void)
288{
289 return 0x1U;
290}
291static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cilp_f(void)
292{
293 return 0x2U;
294}
295#endif
diff --git a/include/nvgpu/hw/gp106/hw_falcon_gp106.h b/include/nvgpu/hw/gp106/hw_falcon_gp106.h
new file mode 100644
index 0000000..d899e3f
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_falcon_gp106.h
@@ -0,0 +1,603 @@
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_falcon_gp106_h_
57#define _hw_falcon_gp106_h_
58
59static inline u32 falcon_falcon_irqsset_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 falcon_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 falcon_falcon_irqsclr_r(void)
68{
69 return 0x00000004U;
70}
71static inline u32 falcon_falcon_irqstat_r(void)
72{
73 return 0x00000008U;
74}
75static inline u32 falcon_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 falcon_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 falcon_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 falcon_falcon_irqmode_r(void)
88{
89 return 0x0000000cU;
90}
91static inline u32 falcon_falcon_irqmset_r(void)
92{
93 return 0x00000010U;
94}
95static inline u32 falcon_falcon_irqmset_gptmr_f(u32 v)
96{
97 return (v & 0x1U) << 0U;
98}
99static inline u32 falcon_falcon_irqmset_wdtmr_f(u32 v)
100{
101 return (v & 0x1U) << 1U;
102}
103static inline u32 falcon_falcon_irqmset_mthd_f(u32 v)
104{
105 return (v & 0x1U) << 2U;
106}
107static inline u32 falcon_falcon_irqmset_ctxsw_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 falcon_falcon_irqmset_halt_f(u32 v)
112{
113 return (v & 0x1U) << 4U;
114}
115static inline u32 falcon_falcon_irqmset_exterr_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 falcon_falcon_irqmset_swgen0_f(u32 v)
120{
121 return (v & 0x1U) << 6U;
122}
123static inline u32 falcon_falcon_irqmset_swgen1_f(u32 v)
124{
125 return (v & 0x1U) << 7U;
126}
127static inline u32 falcon_falcon_irqmclr_r(void)
128{
129 return 0x00000014U;
130}
131static inline u32 falcon_falcon_irqmclr_gptmr_f(u32 v)
132{
133 return (v & 0x1U) << 0U;
134}
135static inline u32 falcon_falcon_irqmclr_wdtmr_f(u32 v)
136{
137 return (v & 0x1U) << 1U;
138}
139static inline u32 falcon_falcon_irqmclr_mthd_f(u32 v)
140{
141 return (v & 0x1U) << 2U;
142}
143static inline u32 falcon_falcon_irqmclr_ctxsw_f(u32 v)
144{
145 return (v & 0x1U) << 3U;
146}
147static inline u32 falcon_falcon_irqmclr_halt_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 falcon_falcon_irqmclr_exterr_f(u32 v)
152{
153 return (v & 0x1U) << 5U;
154}
155static inline u32 falcon_falcon_irqmclr_swgen0_f(u32 v)
156{
157 return (v & 0x1U) << 6U;
158}
159static inline u32 falcon_falcon_irqmclr_swgen1_f(u32 v)
160{
161 return (v & 0x1U) << 7U;
162}
163static inline u32 falcon_falcon_irqmclr_ext_f(u32 v)
164{
165 return (v & 0xffU) << 8U;
166}
167static inline u32 falcon_falcon_irqmask_r(void)
168{
169 return 0x00000018U;
170}
171static inline u32 falcon_falcon_irqdest_r(void)
172{
173 return 0x0000001cU;
174}
175static inline u32 falcon_falcon_irqdest_host_gptmr_f(u32 v)
176{
177 return (v & 0x1U) << 0U;
178}
179static inline u32 falcon_falcon_irqdest_host_wdtmr_f(u32 v)
180{
181 return (v & 0x1U) << 1U;
182}
183static inline u32 falcon_falcon_irqdest_host_mthd_f(u32 v)
184{
185 return (v & 0x1U) << 2U;
186}
187static inline u32 falcon_falcon_irqdest_host_ctxsw_f(u32 v)
188{
189 return (v & 0x1U) << 3U;
190}
191static inline u32 falcon_falcon_irqdest_host_halt_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 falcon_falcon_irqdest_host_exterr_f(u32 v)
196{
197 return (v & 0x1U) << 5U;
198}
199static inline u32 falcon_falcon_irqdest_host_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 falcon_falcon_irqdest_host_swgen1_f(u32 v)
204{
205 return (v & 0x1U) << 7U;
206}
207static inline u32 falcon_falcon_irqdest_host_ext_f(u32 v)
208{
209 return (v & 0xffU) << 8U;
210}
211static inline u32 falcon_falcon_irqdest_target_gptmr_f(u32 v)
212{
213 return (v & 0x1U) << 16U;
214}
215static inline u32 falcon_falcon_irqdest_target_wdtmr_f(u32 v)
216{
217 return (v & 0x1U) << 17U;
218}
219static inline u32 falcon_falcon_irqdest_target_mthd_f(u32 v)
220{
221 return (v & 0x1U) << 18U;
222}
223static inline u32 falcon_falcon_irqdest_target_ctxsw_f(u32 v)
224{
225 return (v & 0x1U) << 19U;
226}
227static inline u32 falcon_falcon_irqdest_target_halt_f(u32 v)
228{
229 return (v & 0x1U) << 20U;
230}
231static inline u32 falcon_falcon_irqdest_target_exterr_f(u32 v)
232{
233 return (v & 0x1U) << 21U;
234}
235static inline u32 falcon_falcon_irqdest_target_swgen0_f(u32 v)
236{
237 return (v & 0x1U) << 22U;
238}
239static inline u32 falcon_falcon_irqdest_target_swgen1_f(u32 v)
240{
241 return (v & 0x1U) << 23U;
242}
243static inline u32 falcon_falcon_irqdest_target_ext_f(u32 v)
244{
245 return (v & 0xffU) << 24U;
246}
247static inline u32 falcon_falcon_curctx_r(void)
248{
249 return 0x00000050U;
250}
251static inline u32 falcon_falcon_nxtctx_r(void)
252{
253 return 0x00000054U;
254}
255static inline u32 falcon_falcon_mailbox0_r(void)
256{
257 return 0x00000040U;
258}
259static inline u32 falcon_falcon_mailbox1_r(void)
260{
261 return 0x00000044U;
262}
263static inline u32 falcon_falcon_itfen_r(void)
264{
265 return 0x00000048U;
266}
267static inline u32 falcon_falcon_itfen_ctxen_enable_f(void)
268{
269 return 0x1U;
270}
271static inline u32 falcon_falcon_idlestate_r(void)
272{
273 return 0x0000004cU;
274}
275static inline u32 falcon_falcon_idlestate_falcon_busy_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 falcon_falcon_idlestate_ext_busy_v(u32 r)
280{
281 return (r >> 1U) & 0x7fffU;
282}
283static inline u32 falcon_falcon_os_r(void)
284{
285 return 0x00000080U;
286}
287static inline u32 falcon_falcon_engctl_r(void)
288{
289 return 0x000000a4U;
290}
291static inline u32 falcon_falcon_cpuctl_r(void)
292{
293 return 0x00000100U;
294}
295static inline u32 falcon_falcon_cpuctl_startcpu_f(u32 v)
296{
297 return (v & 0x1U) << 1U;
298}
299static inline u32 falcon_falcon_cpuctl_sreset_f(u32 v)
300{
301 return (v & 0x1U) << 2U;
302}
303static inline u32 falcon_falcon_cpuctl_hreset_f(u32 v)
304{
305 return (v & 0x1U) << 3U;
306}
307static inline u32 falcon_falcon_cpuctl_halt_intr_f(u32 v)
308{
309 return (v & 0x1U) << 4U;
310}
311static inline u32 falcon_falcon_cpuctl_halt_intr_m(void)
312{
313 return 0x1U << 4U;
314}
315static inline u32 falcon_falcon_cpuctl_halt_intr_v(u32 r)
316{
317 return (r >> 4U) & 0x1U;
318}
319static inline u32 falcon_falcon_cpuctl_stopped_m(void)
320{
321 return 0x1U << 5U;
322}
323static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
324{
325 return (v & 0x1U) << 6U;
326}
327static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_m(void)
328{
329 return 0x1U << 6U;
330}
331static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
332{
333 return (r >> 6U) & 0x1U;
334}
335static inline u32 falcon_falcon_cpuctl_alias_r(void)
336{
337 return 0x00000130U;
338}
339static inline u32 falcon_falcon_cpuctl_alias_startcpu_f(u32 v)
340{
341 return (v & 0x1U) << 1U;
342}
343static inline u32 falcon_falcon_imemc_r(u32 i)
344{
345 return 0x00000180U + i*16U;
346}
347static inline u32 falcon_falcon_imemc_offs_f(u32 v)
348{
349 return (v & 0x3fU) << 2U;
350}
351static inline u32 falcon_falcon_imemc_blk_f(u32 v)
352{
353 return (v & 0xffU) << 8U;
354}
355static inline u32 falcon_falcon_imemc_aincw_f(u32 v)
356{
357 return (v & 0x1U) << 24U;
358}
359static inline u32 falcon_falcon_imemc_secure_f(u32 v)
360{
361 return (v & 0x1U) << 28U;
362}
363static inline u32 falcon_falcon_imemd_r(u32 i)
364{
365 return 0x00000184U + i*16U;
366}
367static inline u32 falcon_falcon_imemt_r(u32 i)
368{
369 return 0x00000188U + i*16U;
370}
371static inline u32 falcon_falcon_sctl_r(void)
372{
373 return 0x00000240U;
374}
375static inline u32 falcon_falcon_mmu_phys_sec_r(void)
376{
377 return 0x00100ce4U;
378}
379static inline u32 falcon_falcon_bootvec_r(void)
380{
381 return 0x00000104U;
382}
383static inline u32 falcon_falcon_bootvec_vec_f(u32 v)
384{
385 return (v & 0xffffffffU) << 0U;
386}
387static inline u32 falcon_falcon_dmactl_r(void)
388{
389 return 0x0000010cU;
390}
391static inline u32 falcon_falcon_dmactl_dmem_scrubbing_m(void)
392{
393 return 0x1U << 1U;
394}
395static inline u32 falcon_falcon_dmactl_imem_scrubbing_m(void)
396{
397 return 0x1U << 2U;
398}
399static inline u32 falcon_falcon_dmactl_require_ctx_f(u32 v)
400{
401 return (v & 0x1U) << 0U;
402}
403static inline u32 falcon_falcon_hwcfg_r(void)
404{
405 return 0x00000108U;
406}
407static inline u32 falcon_falcon_hwcfg_imem_size_v(u32 r)
408{
409 return (r >> 0U) & 0x1ffU;
410}
411static inline u32 falcon_falcon_hwcfg_dmem_size_v(u32 r)
412{
413 return (r >> 9U) & 0x1ffU;
414}
415static inline u32 falcon_falcon_dmatrfbase_r(void)
416{
417 return 0x00000110U;
418}
419static inline u32 falcon_falcon_dmatrfbase1_r(void)
420{
421 return 0x00000128U;
422}
423static inline u32 falcon_falcon_dmatrfmoffs_r(void)
424{
425 return 0x00000114U;
426}
427static inline u32 falcon_falcon_dmatrfcmd_r(void)
428{
429 return 0x00000118U;
430}
431static inline u32 falcon_falcon_dmatrfcmd_imem_f(u32 v)
432{
433 return (v & 0x1U) << 4U;
434}
435static inline u32 falcon_falcon_dmatrfcmd_write_f(u32 v)
436{
437 return (v & 0x1U) << 5U;
438}
439static inline u32 falcon_falcon_dmatrfcmd_size_f(u32 v)
440{
441 return (v & 0x7U) << 8U;
442}
443static inline u32 falcon_falcon_dmatrfcmd_ctxdma_f(u32 v)
444{
445 return (v & 0x7U) << 12U;
446}
447static inline u32 falcon_falcon_dmatrffboffs_r(void)
448{
449 return 0x0000011cU;
450}
451static inline u32 falcon_falcon_imctl_debug_r(void)
452{
453 return 0x0000015cU;
454}
455static inline u32 falcon_falcon_imctl_debug_addr_blk_f(u32 v)
456{
457 return (v & 0xffffffU) << 0U;
458}
459static inline u32 falcon_falcon_imctl_debug_cmd_f(u32 v)
460{
461 return (v & 0x7U) << 24U;
462}
463static inline u32 falcon_falcon_imstat_r(void)
464{
465 return 0x00000144U;
466}
467static inline u32 falcon_falcon_traceidx_r(void)
468{
469 return 0x00000148U;
470}
471static inline u32 falcon_falcon_traceidx_maxidx_v(u32 r)
472{
473 return (r >> 16U) & 0xffU;
474}
475static inline u32 falcon_falcon_traceidx_idx_f(u32 v)
476{
477 return (v & 0xffU) << 0U;
478}
479static inline u32 falcon_falcon_tracepc_r(void)
480{
481 return 0x0000014cU;
482}
483static inline u32 falcon_falcon_tracepc_pc_v(u32 r)
484{
485 return (r >> 0U) & 0xffffffU;
486}
487static inline u32 falcon_falcon_exterraddr_r(void)
488{
489 return 0x00000168U;
490}
491static inline u32 falcon_falcon_exterrstat_r(void)
492{
493 return 0x0000016cU;
494}
495static inline u32 falcon_falcon_exterrstat_valid_m(void)
496{
497 return 0x1U << 31U;
498}
499static inline u32 falcon_falcon_exterrstat_valid_v(u32 r)
500{
501 return (r >> 31U) & 0x1U;
502}
503static inline u32 falcon_falcon_exterrstat_valid_true_v(void)
504{
505 return 0x00000001U;
506}
507static inline u32 falcon_falcon_icd_cmd_r(void)
508{
509 return 0x00000200U;
510}
511static inline u32 falcon_falcon_icd_cmd_opc_s(void)
512{
513 return 4U;
514}
515static inline u32 falcon_falcon_icd_cmd_opc_f(u32 v)
516{
517 return (v & 0xfU) << 0U;
518}
519static inline u32 falcon_falcon_icd_cmd_opc_m(void)
520{
521 return 0xfU << 0U;
522}
523static inline u32 falcon_falcon_icd_cmd_opc_v(u32 r)
524{
525 return (r >> 0U) & 0xfU;
526}
527static inline u32 falcon_falcon_icd_cmd_opc_rreg_f(void)
528{
529 return 0x8U;
530}
531static inline u32 falcon_falcon_icd_cmd_opc_rstat_f(void)
532{
533 return 0xeU;
534}
535static inline u32 falcon_falcon_icd_cmd_idx_f(u32 v)
536{
537 return (v & 0x1fU) << 8U;
538}
539static inline u32 falcon_falcon_icd_rdata_r(void)
540{
541 return 0x0000020cU;
542}
543static inline u32 falcon_falcon_dmemc_r(u32 i)
544{
545 return 0x000001c0U + i*8U;
546}
547static inline u32 falcon_falcon_dmemc_offs_f(u32 v)
548{
549 return (v & 0x3fU) << 2U;
550}
551static inline u32 falcon_falcon_dmemc_offs_m(void)
552{
553 return 0x3fU << 2U;
554}
555static inline u32 falcon_falcon_dmemc_blk_f(u32 v)
556{
557 return (v & 0xffU) << 8U;
558}
559static inline u32 falcon_falcon_dmemc_blk_m(void)
560{
561 return 0xffU << 8U;
562}
563static inline u32 falcon_falcon_dmemc_aincw_f(u32 v)
564{
565 return (v & 0x1U) << 24U;
566}
567static inline u32 falcon_falcon_dmemc_aincr_f(u32 v)
568{
569 return (v & 0x1U) << 25U;
570}
571static inline u32 falcon_falcon_dmemd_r(u32 i)
572{
573 return 0x000001c4U + i*8U;
574}
575static inline u32 falcon_falcon_debug1_r(void)
576{
577 return 0x00000090U;
578}
579static inline u32 falcon_falcon_debug1_ctxsw_mode_s(void)
580{
581 return 1U;
582}
583static inline u32 falcon_falcon_debug1_ctxsw_mode_f(u32 v)
584{
585 return (v & 0x1U) << 16U;
586}
587static inline u32 falcon_falcon_debug1_ctxsw_mode_m(void)
588{
589 return 0x1U << 16U;
590}
591static inline u32 falcon_falcon_debug1_ctxsw_mode_v(u32 r)
592{
593 return (r >> 16U) & 0x1U;
594}
595static inline u32 falcon_falcon_debug1_ctxsw_mode_init_f(void)
596{
597 return 0x0U;
598}
599static inline u32 falcon_falcon_debuginfo_r(void)
600{
601 return 0x00000094U;
602}
603#endif
diff --git a/include/nvgpu/hw/gp106/hw_fb_gp106.h b/include/nvgpu/hw/gp106/hw_fb_gp106.h
new file mode 100644
index 0000000..1c2a1ac
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_fb_gp106.h
@@ -0,0 +1,563 @@
1/*
2 * Copyright (c) 2016-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_fb_gp106_h_
57#define _hw_fb_gp106_h_
58
59static inline u32 fb_fbhub_num_active_ltcs_r(void)
60{
61 return 0x00100800U;
62}
63static inline u32 fb_mmu_ctrl_r(void)
64{
65 return 0x00100c80U;
66}
67static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r)
68{
69 return (r >> 15U) & 0x1U;
70}
71static inline u32 fb_mmu_ctrl_pri_fifo_empty_false_f(void)
72{
73 return 0x0U;
74}
75static inline u32 fb_mmu_ctrl_pri_fifo_space_v(u32 r)
76{
77 return (r >> 16U) & 0xffU;
78}
79static inline u32 fb_priv_mmu_phy_secure_r(void)
80{
81 return 0x00100ce4U;
82}
83static inline u32 fb_mmu_invalidate_pdb_r(void)
84{
85 return 0x00100cb8U;
86}
87static inline u32 fb_mmu_invalidate_pdb_aperture_vid_mem_f(void)
88{
89 return 0x0U;
90}
91static inline u32 fb_mmu_invalidate_pdb_aperture_sys_mem_f(void)
92{
93 return 0x2U;
94}
95static inline u32 fb_mmu_invalidate_pdb_addr_f(u32 v)
96{
97 return (v & 0xfffffffU) << 4U;
98}
99static inline u32 fb_mmu_invalidate_r(void)
100{
101 return 0x00100cbcU;
102}
103static inline u32 fb_mmu_invalidate_all_va_true_f(void)
104{
105 return 0x1U;
106}
107static inline u32 fb_mmu_invalidate_all_pdb_true_f(void)
108{
109 return 0x2U;
110}
111static inline u32 fb_mmu_invalidate_hubtlb_only_s(void)
112{
113 return 1U;
114}
115static inline u32 fb_mmu_invalidate_hubtlb_only_f(u32 v)
116{
117 return (v & 0x1U) << 2U;
118}
119static inline u32 fb_mmu_invalidate_hubtlb_only_m(void)
120{
121 return 0x1U << 2U;
122}
123static inline u32 fb_mmu_invalidate_hubtlb_only_v(u32 r)
124{
125 return (r >> 2U) & 0x1U;
126}
127static inline u32 fb_mmu_invalidate_hubtlb_only_true_f(void)
128{
129 return 0x4U;
130}
131static inline u32 fb_mmu_invalidate_replay_s(void)
132{
133 return 3U;
134}
135static inline u32 fb_mmu_invalidate_replay_f(u32 v)
136{
137 return (v & 0x7U) << 3U;
138}
139static inline u32 fb_mmu_invalidate_replay_m(void)
140{
141 return 0x7U << 3U;
142}
143static inline u32 fb_mmu_invalidate_replay_v(u32 r)
144{
145 return (r >> 3U) & 0x7U;
146}
147static inline u32 fb_mmu_invalidate_replay_none_f(void)
148{
149 return 0x0U;
150}
151static inline u32 fb_mmu_invalidate_replay_start_f(void)
152{
153 return 0x8U;
154}
155static inline u32 fb_mmu_invalidate_replay_start_ack_all_f(void)
156{
157 return 0x10U;
158}
159static inline u32 fb_mmu_invalidate_replay_cancel_targeted_f(void)
160{
161 return 0x18U;
162}
163static inline u32 fb_mmu_invalidate_replay_cancel_global_f(void)
164{
165 return 0x20U;
166}
167static inline u32 fb_mmu_invalidate_replay_cancel_f(void)
168{
169 return 0x20U;
170}
171static inline u32 fb_mmu_invalidate_sys_membar_s(void)
172{
173 return 1U;
174}
175static inline u32 fb_mmu_invalidate_sys_membar_f(u32 v)
176{
177 return (v & 0x1U) << 6U;
178}
179static inline u32 fb_mmu_invalidate_sys_membar_m(void)
180{
181 return 0x1U << 6U;
182}
183static inline u32 fb_mmu_invalidate_sys_membar_v(u32 r)
184{
185 return (r >> 6U) & 0x1U;
186}
187static inline u32 fb_mmu_invalidate_sys_membar_true_f(void)
188{
189 return 0x40U;
190}
191static inline u32 fb_mmu_invalidate_ack_s(void)
192{
193 return 2U;
194}
195static inline u32 fb_mmu_invalidate_ack_f(u32 v)
196{
197 return (v & 0x3U) << 7U;
198}
199static inline u32 fb_mmu_invalidate_ack_m(void)
200{
201 return 0x3U << 7U;
202}
203static inline u32 fb_mmu_invalidate_ack_v(u32 r)
204{
205 return (r >> 7U) & 0x3U;
206}
207static inline u32 fb_mmu_invalidate_ack_ack_none_required_f(void)
208{
209 return 0x0U;
210}
211static inline u32 fb_mmu_invalidate_ack_ack_intranode_f(void)
212{
213 return 0x100U;
214}
215static inline u32 fb_mmu_invalidate_ack_ack_globally_f(void)
216{
217 return 0x80U;
218}
219static inline u32 fb_mmu_invalidate_cancel_client_id_s(void)
220{
221 return 6U;
222}
223static inline u32 fb_mmu_invalidate_cancel_client_id_f(u32 v)
224{
225 return (v & 0x3fU) << 9U;
226}
227static inline u32 fb_mmu_invalidate_cancel_client_id_m(void)
228{
229 return 0x3fU << 9U;
230}
231static inline u32 fb_mmu_invalidate_cancel_client_id_v(u32 r)
232{
233 return (r >> 9U) & 0x3fU;
234}
235static inline u32 fb_mmu_invalidate_cancel_gpc_id_s(void)
236{
237 return 5U;
238}
239static inline u32 fb_mmu_invalidate_cancel_gpc_id_f(u32 v)
240{
241 return (v & 0x1fU) << 15U;
242}
243static inline u32 fb_mmu_invalidate_cancel_gpc_id_m(void)
244{
245 return 0x1fU << 15U;
246}
247static inline u32 fb_mmu_invalidate_cancel_gpc_id_v(u32 r)
248{
249 return (r >> 15U) & 0x1fU;
250}
251static inline u32 fb_mmu_invalidate_cancel_client_type_s(void)
252{
253 return 1U;
254}
255static inline u32 fb_mmu_invalidate_cancel_client_type_f(u32 v)
256{
257 return (v & 0x1U) << 20U;
258}
259static inline u32 fb_mmu_invalidate_cancel_client_type_m(void)
260{
261 return 0x1U << 20U;
262}
263static inline u32 fb_mmu_invalidate_cancel_client_type_v(u32 r)
264{
265 return (r >> 20U) & 0x1U;
266}
267static inline u32 fb_mmu_invalidate_cancel_client_type_gpc_f(void)
268{
269 return 0x0U;
270}
271static inline u32 fb_mmu_invalidate_cancel_client_type_hub_f(void)
272{
273 return 0x100000U;
274}
275static inline u32 fb_mmu_invalidate_cancel_cache_level_s(void)
276{
277 return 3U;
278}
279static inline u32 fb_mmu_invalidate_cancel_cache_level_f(u32 v)
280{
281 return (v & 0x7U) << 24U;
282}
283static inline u32 fb_mmu_invalidate_cancel_cache_level_m(void)
284{
285 return 0x7U << 24U;
286}
287static inline u32 fb_mmu_invalidate_cancel_cache_level_v(u32 r)
288{
289 return (r >> 24U) & 0x7U;
290}
291static inline u32 fb_mmu_invalidate_cancel_cache_level_all_f(void)
292{
293 return 0x0U;
294}
295static inline u32 fb_mmu_invalidate_cancel_cache_level_pte_only_f(void)
296{
297 return 0x1000000U;
298}
299static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde0_f(void)
300{
301 return 0x2000000U;
302}
303static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde1_f(void)
304{
305 return 0x3000000U;
306}
307static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde2_f(void)
308{
309 return 0x4000000U;
310}
311static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde3_f(void)
312{
313 return 0x5000000U;
314}
315static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde4_f(void)
316{
317 return 0x6000000U;
318}
319static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde5_f(void)
320{
321 return 0x7000000U;
322}
323static inline u32 fb_mmu_invalidate_trigger_s(void)
324{
325 return 1U;
326}
327static inline u32 fb_mmu_invalidate_trigger_f(u32 v)
328{
329 return (v & 0x1U) << 31U;
330}
331static inline u32 fb_mmu_invalidate_trigger_m(void)
332{
333 return 0x1U << 31U;
334}
335static inline u32 fb_mmu_invalidate_trigger_v(u32 r)
336{
337 return (r >> 31U) & 0x1U;
338}
339static inline u32 fb_mmu_invalidate_trigger_true_f(void)
340{
341 return 0x80000000U;
342}
343static inline u32 fb_mmu_debug_wr_r(void)
344{
345 return 0x00100cc8U;
346}
347static inline u32 fb_mmu_debug_wr_aperture_s(void)
348{
349 return 2U;
350}
351static inline u32 fb_mmu_debug_wr_aperture_f(u32 v)
352{
353 return (v & 0x3U) << 0U;
354}
355static inline u32 fb_mmu_debug_wr_aperture_m(void)
356{
357 return 0x3U << 0U;
358}
359static inline u32 fb_mmu_debug_wr_aperture_v(u32 r)
360{
361 return (r >> 0U) & 0x3U;
362}
363static inline u32 fb_mmu_debug_wr_aperture_vid_mem_f(void)
364{
365 return 0x0U;
366}
367static inline u32 fb_mmu_debug_wr_aperture_sys_mem_coh_f(void)
368{
369 return 0x2U;
370}
371static inline u32 fb_mmu_debug_wr_aperture_sys_mem_ncoh_f(void)
372{
373 return 0x3U;
374}
375static inline u32 fb_mmu_debug_wr_vol_false_f(void)
376{
377 return 0x0U;
378}
379static inline u32 fb_mmu_debug_wr_vol_true_v(void)
380{
381 return 0x00000001U;
382}
383static inline u32 fb_mmu_debug_wr_vol_true_f(void)
384{
385 return 0x4U;
386}
387static inline u32 fb_mmu_debug_wr_addr_f(u32 v)
388{
389 return (v & 0xfffffffU) << 4U;
390}
391static inline u32 fb_mmu_debug_wr_addr_alignment_v(void)
392{
393 return 0x0000000cU;
394}
395static inline u32 fb_mmu_debug_rd_r(void)
396{
397 return 0x00100cccU;
398}
399static inline u32 fb_mmu_debug_rd_aperture_vid_mem_f(void)
400{
401 return 0x0U;
402}
403static inline u32 fb_mmu_debug_rd_aperture_sys_mem_coh_f(void)
404{
405 return 0x2U;
406}
407static inline u32 fb_mmu_debug_rd_aperture_sys_mem_ncoh_f(void)
408{
409 return 0x3U;
410}
411static inline u32 fb_mmu_debug_rd_vol_false_f(void)
412{
413 return 0x0U;
414}
415static inline u32 fb_mmu_debug_rd_addr_f(u32 v)
416{
417 return (v & 0xfffffffU) << 4U;
418}
419static inline u32 fb_mmu_debug_rd_addr_alignment_v(void)
420{
421 return 0x0000000cU;
422}
423static inline u32 fb_mmu_debug_ctrl_r(void)
424{
425 return 0x00100cc4U;
426}
427static inline u32 fb_mmu_debug_ctrl_debug_v(u32 r)
428{
429 return (r >> 16U) & 0x1U;
430}
431static inline u32 fb_mmu_debug_ctrl_debug_m(void)
432{
433 return 0x1U << 16U;
434}
435static inline u32 fb_mmu_debug_ctrl_debug_enabled_v(void)
436{
437 return 0x00000001U;
438}
439static inline u32 fb_mmu_debug_ctrl_debug_enabled_f(void)
440{
441 return 0x10000U;
442}
443static inline u32 fb_mmu_debug_ctrl_debug_disabled_v(void)
444{
445 return 0x00000000U;
446}
447static inline u32 fb_mmu_debug_ctrl_debug_disabled_f(void)
448{
449 return 0x0U;
450}
451static inline u32 fb_mmu_priv_level_mask_r(void)
452{
453 return 0x00100cdcU;
454}
455static inline u32 fb_mmu_priv_level_mask_write_violation_m(void)
456{
457 return 0x1U << 7U;
458}
459static inline u32 fb_niso_flush_sysmem_addr_r(void)
460{
461 return 0x00100c10U;
462}
463static inline u32 fb_mmu_local_memory_range_r(void)
464{
465 return 0x00100ce0U;
466}
467static inline u32 fb_mmu_local_memory_range_lower_scale_v(u32 r)
468{
469 return (r >> 0U) & 0xfU;
470}
471static inline u32 fb_mmu_local_memory_range_lower_mag_v(u32 r)
472{
473 return (r >> 4U) & 0x3fU;
474}
475static inline u32 fb_mmu_local_memory_range_ecc_mode_v(u32 r)
476{
477 return (r >> 30U) & 0x1U;
478}
479static inline u32 fb_fbpa_fbio_delay_r(void)
480{
481 return 0x009a065cU;
482}
483static inline u32 fb_fbpa_fbio_delay_src_f(u32 v)
484{
485 return (v & 0xfU) << 0U;
486}
487static inline u32 fb_fbpa_fbio_delay_src_m(void)
488{
489 return 0xfU << 0U;
490}
491static inline u32 fb_fbpa_fbio_delay_src_v(u32 r)
492{
493 return (r >> 0U) & 0xfU;
494}
495static inline u32 fb_fbpa_fbio_delay_src_max_v(void)
496{
497 return 0x00000002U;
498}
499static inline u32 fb_fbpa_fbio_delay_priv_f(u32 v)
500{
501 return (v & 0xfU) << 4U;
502}
503static inline u32 fb_fbpa_fbio_delay_priv_m(void)
504{
505 return 0xfU << 4U;
506}
507static inline u32 fb_fbpa_fbio_delay_priv_v(u32 r)
508{
509 return (r >> 4U) & 0xfU;
510}
511static inline u32 fb_fbpa_fbio_delay_priv_max_v(void)
512{
513 return 0x00000002U;
514}
515static inline u32 fb_fbpa_fbio_cmd_delay_r(void)
516{
517 return 0x009a08e0U;
518}
519static inline u32 fb_fbpa_fbio_cmd_delay_cmd_src_f(u32 v)
520{
521 return (v & 0xfU) << 0U;
522}
523static inline u32 fb_fbpa_fbio_cmd_delay_cmd_src_m(void)
524{
525 return 0xfU << 0U;
526}
527static inline u32 fb_fbpa_fbio_cmd_delay_cmd_src_v(u32 r)
528{
529 return (r >> 0U) & 0xfU;
530}
531static inline u32 fb_fbpa_fbio_cmd_delay_cmd_src_max_v(void)
532{
533 return 0x00000001U;
534}
535static inline u32 fb_fbpa_fbio_cmd_delay_cmd_priv_f(u32 v)
536{
537 return (v & 0xfU) << 4U;
538}
539static inline u32 fb_fbpa_fbio_cmd_delay_cmd_priv_m(void)
540{
541 return 0xfU << 4U;
542}
543static inline u32 fb_fbpa_fbio_cmd_delay_cmd_priv_v(u32 r)
544{
545 return (r >> 4U) & 0xfU;
546}
547static inline u32 fb_fbpa_fbio_cmd_delay_cmd_priv_max_v(void)
548{
549 return 0x00000001U;
550}
551static inline u32 fb_niso_scrub_status_r(void)
552{
553 return 0x00100b20U;
554}
555static inline u32 fb_niso_scrub_status_flag_v(u32 r)
556{
557 return (r >> 0U) & 0x1U;
558}
559static inline u32 fb_fbpa_fbio_iref_byte_rx_ctrl_r(void)
560{
561 return 0x009a0eb0U;
562}
563#endif
diff --git a/include/nvgpu/hw/gp106/hw_fbpa_gp106.h b/include/nvgpu/hw/gp106/hw_fbpa_gp106.h
new file mode 100644
index 0000000..797a40c
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_fbpa_gp106.h
@@ -0,0 +1,67 @@
1/*
2 * Copyright (c) 2016-2017, 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_fbpa_gp106_h_
57#define _hw_fbpa_gp106_h_
58
59static inline u32 fbpa_cstatus_r(void)
60{
61 return 0x009a020cU;
62}
63static inline u32 fbpa_cstatus_ramamount_v(u32 r)
64{
65 return (r >> 0U) & 0x1ffffU;
66}
67#endif
diff --git a/include/nvgpu/hw/gp106/hw_fifo_gp106.h b/include/nvgpu/hw/gp106/hw_fifo_gp106.h
new file mode 100644
index 0000000..804e9e4
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_fifo_gp106.h
@@ -0,0 +1,695 @@
1/*
2 * Copyright (c) 2016-2017, 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_fifo_gp106_h_
57#define _hw_fifo_gp106_h_
58
59static inline u32 fifo_bar1_base_r(void)
60{
61 return 0x00002254U;
62}
63static inline u32 fifo_bar1_base_ptr_f(u32 v)
64{
65 return (v & 0xfffffffU) << 0U;
66}
67static inline u32 fifo_bar1_base_ptr_align_shift_v(void)
68{
69 return 0x0000000cU;
70}
71static inline u32 fifo_bar1_base_valid_false_f(void)
72{
73 return 0x0U;
74}
75static inline u32 fifo_bar1_base_valid_true_f(void)
76{
77 return 0x10000000U;
78}
79static inline u32 fifo_runlist_base_r(void)
80{
81 return 0x00002270U;
82}
83static inline u32 fifo_runlist_base_ptr_f(u32 v)
84{
85 return (v & 0xfffffffU) << 0U;
86}
87static inline u32 fifo_runlist_base_target_vid_mem_f(void)
88{
89 return 0x0U;
90}
91static inline u32 fifo_runlist_base_target_sys_mem_coh_f(void)
92{
93 return 0x20000000U;
94}
95static inline u32 fifo_runlist_base_target_sys_mem_ncoh_f(void)
96{
97 return 0x30000000U;
98}
99static inline u32 fifo_runlist_r(void)
100{
101 return 0x00002274U;
102}
103static inline u32 fifo_runlist_engine_f(u32 v)
104{
105 return (v & 0xfU) << 20U;
106}
107static inline u32 fifo_eng_runlist_base_r(u32 i)
108{
109 return 0x00002280U + i*8U;
110}
111static inline u32 fifo_eng_runlist_base__size_1_v(void)
112{
113 return 0x00000007U;
114}
115static inline u32 fifo_eng_runlist_r(u32 i)
116{
117 return 0x00002284U + i*8U;
118}
119static inline u32 fifo_eng_runlist__size_1_v(void)
120{
121 return 0x00000007U;
122}
123static inline u32 fifo_eng_runlist_length_f(u32 v)
124{
125 return (v & 0xffffU) << 0U;
126}
127static inline u32 fifo_eng_runlist_length_max_v(void)
128{
129 return 0x0000ffffU;
130}
131static inline u32 fifo_eng_runlist_pending_true_f(void)
132{
133 return 0x100000U;
134}
135static inline u32 fifo_pb_timeslice_r(u32 i)
136{
137 return 0x00002350U + i*4U;
138}
139static inline u32 fifo_pb_timeslice_timeout_16_f(void)
140{
141 return 0x10U;
142}
143static inline u32 fifo_pb_timeslice_timescale_0_f(void)
144{
145 return 0x0U;
146}
147static inline u32 fifo_pb_timeslice_enable_true_f(void)
148{
149 return 0x10000000U;
150}
151static inline u32 fifo_pbdma_map_r(u32 i)
152{
153 return 0x00002390U + i*4U;
154}
155static inline u32 fifo_intr_0_r(void)
156{
157 return 0x00002100U;
158}
159static inline u32 fifo_intr_0_bind_error_pending_f(void)
160{
161 return 0x1U;
162}
163static inline u32 fifo_intr_0_bind_error_reset_f(void)
164{
165 return 0x1U;
166}
167static inline u32 fifo_intr_0_sched_error_pending_f(void)
168{
169 return 0x100U;
170}
171static inline u32 fifo_intr_0_sched_error_reset_f(void)
172{
173 return 0x100U;
174}
175static inline u32 fifo_intr_0_chsw_error_pending_f(void)
176{
177 return 0x10000U;
178}
179static inline u32 fifo_intr_0_chsw_error_reset_f(void)
180{
181 return 0x10000U;
182}
183static inline u32 fifo_intr_0_fb_flush_timeout_pending_f(void)
184{
185 return 0x800000U;
186}
187static inline u32 fifo_intr_0_fb_flush_timeout_reset_f(void)
188{
189 return 0x800000U;
190}
191static inline u32 fifo_intr_0_lb_error_pending_f(void)
192{
193 return 0x1000000U;
194}
195static inline u32 fifo_intr_0_lb_error_reset_f(void)
196{
197 return 0x1000000U;
198}
199static inline u32 fifo_intr_0_replayable_fault_error_pending_f(void)
200{
201 return 0x2000000U;
202}
203static inline u32 fifo_intr_0_dropped_mmu_fault_pending_f(void)
204{
205 return 0x8000000U;
206}
207static inline u32 fifo_intr_0_dropped_mmu_fault_reset_f(void)
208{
209 return 0x8000000U;
210}
211static inline u32 fifo_intr_0_mmu_fault_pending_f(void)
212{
213 return 0x10000000U;
214}
215static inline u32 fifo_intr_0_pbdma_intr_pending_f(void)
216{
217 return 0x20000000U;
218}
219static inline u32 fifo_intr_0_runlist_event_pending_f(void)
220{
221 return 0x40000000U;
222}
223static inline u32 fifo_intr_0_channel_intr_pending_f(void)
224{
225 return 0x80000000U;
226}
227static inline u32 fifo_intr_en_0_r(void)
228{
229 return 0x00002140U;
230}
231static inline u32 fifo_intr_en_0_sched_error_f(u32 v)
232{
233 return (v & 0x1U) << 8U;
234}
235static inline u32 fifo_intr_en_0_sched_error_m(void)
236{
237 return 0x1U << 8U;
238}
239static inline u32 fifo_intr_en_0_mmu_fault_f(u32 v)
240{
241 return (v & 0x1U) << 28U;
242}
243static inline u32 fifo_intr_en_0_mmu_fault_m(void)
244{
245 return 0x1U << 28U;
246}
247static inline u32 fifo_intr_en_1_r(void)
248{
249 return 0x00002528U;
250}
251static inline u32 fifo_intr_bind_error_r(void)
252{
253 return 0x0000252cU;
254}
255static inline u32 fifo_intr_sched_error_r(void)
256{
257 return 0x0000254cU;
258}
259static inline u32 fifo_intr_sched_error_code_f(u32 v)
260{
261 return (v & 0xffU) << 0U;
262}
263static inline u32 fifo_intr_sched_error_code_ctxsw_timeout_v(void)
264{
265 return 0x0000000aU;
266}
267static inline u32 fifo_intr_chsw_error_r(void)
268{
269 return 0x0000256cU;
270}
271static inline u32 fifo_intr_mmu_fault_id_r(void)
272{
273 return 0x0000259cU;
274}
275static inline u32 fifo_intr_mmu_fault_eng_id_graphics_v(void)
276{
277 return 0x00000000U;
278}
279static inline u32 fifo_intr_mmu_fault_eng_id_graphics_f(void)
280{
281 return 0x0U;
282}
283static inline u32 fifo_intr_mmu_fault_inst_r(u32 i)
284{
285 return 0x00002800U + i*16U;
286}
287static inline u32 fifo_intr_mmu_fault_inst_ptr_v(u32 r)
288{
289 return (r >> 0U) & 0xfffffffU;
290}
291static inline u32 fifo_intr_mmu_fault_inst_ptr_align_shift_v(void)
292{
293 return 0x0000000cU;
294}
295static inline u32 fifo_intr_mmu_fault_lo_r(u32 i)
296{
297 return 0x00002804U + i*16U;
298}
299static inline u32 fifo_intr_mmu_fault_hi_r(u32 i)
300{
301 return 0x00002808U + i*16U;
302}
303static inline u32 fifo_intr_mmu_fault_info_r(u32 i)
304{
305 return 0x0000280cU + i*16U;
306}
307static inline u32 fifo_intr_mmu_fault_info_type_v(u32 r)
308{
309 return (r >> 0U) & 0x1fU;
310}
311static inline u32 fifo_intr_mmu_fault_info_client_type_v(u32 r)
312{
313 return (r >> 20U) & 0x1U;
314}
315static inline u32 fifo_intr_mmu_fault_info_client_type_gpc_v(void)
316{
317 return 0x00000000U;
318}
319static inline u32 fifo_intr_mmu_fault_info_client_type_hub_v(void)
320{
321 return 0x00000001U;
322}
323static inline u32 fifo_intr_mmu_fault_info_client_v(u32 r)
324{
325 return (r >> 8U) & 0x7fU;
326}
327static inline u32 fifo_intr_pbdma_id_r(void)
328{
329 return 0x000025a0U;
330}
331static inline u32 fifo_intr_pbdma_id_status_f(u32 v, u32 i)
332{
333 return (v & 0x1U) << (0U + i*1U);
334}
335static inline u32 fifo_intr_pbdma_id_status_v(u32 r, u32 i)
336{
337 return (r >> (0U + i*1U)) & 0x1U;
338}
339static inline u32 fifo_intr_pbdma_id_status__size_1_v(void)
340{
341 return 0x00000004U;
342}
343static inline u32 fifo_intr_runlist_r(void)
344{
345 return 0x00002a00U;
346}
347static inline u32 fifo_fb_timeout_r(void)
348{
349 return 0x00002a04U;
350}
351static inline u32 fifo_fb_timeout_period_m(void)
352{
353 return 0x3fffffffU << 0U;
354}
355static inline u32 fifo_fb_timeout_period_max_f(void)
356{
357 return 0x3fffffffU;
358}
359static inline u32 fifo_error_sched_disable_r(void)
360{
361 return 0x0000262cU;
362}
363static inline u32 fifo_sched_disable_r(void)
364{
365 return 0x00002630U;
366}
367static inline u32 fifo_sched_disable_runlist_f(u32 v, u32 i)
368{
369 return (v & 0x1U) << (0U + i*1U);
370}
371static inline u32 fifo_sched_disable_runlist_m(u32 i)
372{
373 return 0x1U << (0U + i*1U);
374}
375static inline u32 fifo_sched_disable_true_v(void)
376{
377 return 0x00000001U;
378}
379static inline u32 fifo_preempt_r(void)
380{
381 return 0x00002634U;
382}
383static inline u32 fifo_preempt_pending_true_f(void)
384{
385 return 0x100000U;
386}
387static inline u32 fifo_preempt_type_channel_f(void)
388{
389 return 0x0U;
390}
391static inline u32 fifo_preempt_type_tsg_f(void)
392{
393 return 0x1000000U;
394}
395static inline u32 fifo_preempt_chid_f(u32 v)
396{
397 return (v & 0xfffU) << 0U;
398}
399static inline u32 fifo_preempt_id_f(u32 v)
400{
401 return (v & 0xfffU) << 0U;
402}
403static inline u32 fifo_trigger_mmu_fault_r(u32 i)
404{
405 return 0x00002a30U + i*4U;
406}
407static inline u32 fifo_trigger_mmu_fault_id_f(u32 v)
408{
409 return (v & 0x1fU) << 0U;
410}
411static inline u32 fifo_trigger_mmu_fault_enable_f(u32 v)
412{
413 return (v & 0x1U) << 8U;
414}
415static inline u32 fifo_engine_status_r(u32 i)
416{
417 return 0x00002640U + i*8U;
418}
419static inline u32 fifo_engine_status__size_1_v(void)
420{
421 return 0x00000009U;
422}
423static inline u32 fifo_engine_status_id_v(u32 r)
424{
425 return (r >> 0U) & 0xfffU;
426}
427static inline u32 fifo_engine_status_id_type_v(u32 r)
428{
429 return (r >> 12U) & 0x1U;
430}
431static inline u32 fifo_engine_status_id_type_chid_v(void)
432{
433 return 0x00000000U;
434}
435static inline u32 fifo_engine_status_id_type_tsgid_v(void)
436{
437 return 0x00000001U;
438}
439static inline u32 fifo_engine_status_ctx_status_v(u32 r)
440{
441 return (r >> 13U) & 0x7U;
442}
443static inline u32 fifo_engine_status_ctx_status_invalid_v(void)
444{
445 return 0x00000000U;
446}
447static inline u32 fifo_engine_status_ctx_status_valid_v(void)
448{
449 return 0x00000001U;
450}
451static inline u32 fifo_engine_status_ctx_status_ctxsw_load_v(void)
452{
453 return 0x00000005U;
454}
455static inline u32 fifo_engine_status_ctx_status_ctxsw_save_v(void)
456{
457 return 0x00000006U;
458}
459static inline u32 fifo_engine_status_ctx_status_ctxsw_switch_v(void)
460{
461 return 0x00000007U;
462}
463static inline u32 fifo_engine_status_next_id_v(u32 r)
464{
465 return (r >> 16U) & 0xfffU;
466}
467static inline u32 fifo_engine_status_next_id_type_v(u32 r)
468{
469 return (r >> 28U) & 0x1U;
470}
471static inline u32 fifo_engine_status_next_id_type_chid_v(void)
472{
473 return 0x00000000U;
474}
475static inline u32 fifo_engine_status_faulted_v(u32 r)
476{
477 return (r >> 30U) & 0x1U;
478}
479static inline u32 fifo_engine_status_faulted_true_v(void)
480{
481 return 0x00000001U;
482}
483static inline u32 fifo_engine_status_engine_v(u32 r)
484{
485 return (r >> 31U) & 0x1U;
486}
487static inline u32 fifo_engine_status_engine_idle_v(void)
488{
489 return 0x00000000U;
490}
491static inline u32 fifo_engine_status_engine_busy_v(void)
492{
493 return 0x00000001U;
494}
495static inline u32 fifo_engine_status_ctxsw_v(u32 r)
496{
497 return (r >> 15U) & 0x1U;
498}
499static inline u32 fifo_engine_status_ctxsw_in_progress_v(void)
500{
501 return 0x00000001U;
502}
503static inline u32 fifo_engine_status_ctxsw_in_progress_f(void)
504{
505 return 0x8000U;
506}
507static inline u32 fifo_pbdma_status_r(u32 i)
508{
509 return 0x00003080U + i*4U;
510}
511static inline u32 fifo_pbdma_status__size_1_v(void)
512{
513 return 0x00000004U;
514}
515static inline u32 fifo_pbdma_status_id_v(u32 r)
516{
517 return (r >> 0U) & 0xfffU;
518}
519static inline u32 fifo_pbdma_status_id_type_v(u32 r)
520{
521 return (r >> 12U) & 0x1U;
522}
523static inline u32 fifo_pbdma_status_id_type_chid_v(void)
524{
525 return 0x00000000U;
526}
527static inline u32 fifo_pbdma_status_id_type_tsgid_v(void)
528{
529 return 0x00000001U;
530}
531static inline u32 fifo_pbdma_status_chan_status_v(u32 r)
532{
533 return (r >> 13U) & 0x7U;
534}
535static inline u32 fifo_pbdma_status_chan_status_valid_v(void)
536{
537 return 0x00000001U;
538}
539static inline u32 fifo_pbdma_status_chan_status_chsw_load_v(void)
540{
541 return 0x00000005U;
542}
543static inline u32 fifo_pbdma_status_chan_status_chsw_save_v(void)
544{
545 return 0x00000006U;
546}
547static inline u32 fifo_pbdma_status_chan_status_chsw_switch_v(void)
548{
549 return 0x00000007U;
550}
551static inline u32 fifo_pbdma_status_next_id_v(u32 r)
552{
553 return (r >> 16U) & 0xfffU;
554}
555static inline u32 fifo_pbdma_status_next_id_type_v(u32 r)
556{
557 return (r >> 28U) & 0x1U;
558}
559static inline u32 fifo_pbdma_status_next_id_type_chid_v(void)
560{
561 return 0x00000000U;
562}
563static inline u32 fifo_pbdma_status_chsw_v(u32 r)
564{
565 return (r >> 15U) & 0x1U;
566}
567static inline u32 fifo_pbdma_status_chsw_in_progress_v(void)
568{
569 return 0x00000001U;
570}
571static inline u32 fifo_replay_fault_buffer_lo_r(void)
572{
573 return 0x00002a70U;
574}
575static inline u32 fifo_replay_fault_buffer_lo_enable_v(u32 r)
576{
577 return (r >> 0U) & 0x1U;
578}
579static inline u32 fifo_replay_fault_buffer_lo_enable_true_v(void)
580{
581 return 0x00000001U;
582}
583static inline u32 fifo_replay_fault_buffer_lo_enable_false_v(void)
584{
585 return 0x00000000U;
586}
587static inline u32 fifo_replay_fault_buffer_lo_base_f(u32 v)
588{
589 return (v & 0xfffffU) << 12U;
590}
591static inline u32 fifo_replay_fault_buffer_lo_base_reset_v(void)
592{
593 return 0x00000000U;
594}
595static inline u32 fifo_replay_fault_buffer_hi_r(void)
596{
597 return 0x00002a74U;
598}
599static inline u32 fifo_replay_fault_buffer_hi_base_f(u32 v)
600{
601 return (v & 0xffU) << 0U;
602}
603static inline u32 fifo_replay_fault_buffer_hi_base_reset_v(void)
604{
605 return 0x00000000U;
606}
607static inline u32 fifo_replay_fault_buffer_size_r(void)
608{
609 return 0x00002a78U;
610}
611static inline u32 fifo_replay_fault_buffer_size_hw_f(u32 v)
612{
613 return (v & 0x3fffU) << 0U;
614}
615static inline u32 fifo_replay_fault_buffer_size_hw_entries_v(void)
616{
617 return 0x00001200U;
618}
619static inline u32 fifo_replay_fault_buffer_get_r(void)
620{
621 return 0x00002a7cU;
622}
623static inline u32 fifo_replay_fault_buffer_get_offset_hw_f(u32 v)
624{
625 return (v & 0x3fffU) << 0U;
626}
627static inline u32 fifo_replay_fault_buffer_get_offset_hw_init_v(void)
628{
629 return 0x00000000U;
630}
631static inline u32 fifo_replay_fault_buffer_put_r(void)
632{
633 return 0x00002a80U;
634}
635static inline u32 fifo_replay_fault_buffer_put_offset_hw_f(u32 v)
636{
637 return (v & 0x3fffU) << 0U;
638}
639static inline u32 fifo_replay_fault_buffer_put_offset_hw_init_v(void)
640{
641 return 0x00000000U;
642}
643static inline u32 fifo_replay_fault_buffer_info_r(void)
644{
645 return 0x00002a84U;
646}
647static inline u32 fifo_replay_fault_buffer_info_overflow_f(u32 v)
648{
649 return (v & 0x1U) << 0U;
650}
651static inline u32 fifo_replay_fault_buffer_info_overflow_false_v(void)
652{
653 return 0x00000000U;
654}
655static inline u32 fifo_replay_fault_buffer_info_overflow_true_v(void)
656{
657 return 0x00000001U;
658}
659static inline u32 fifo_replay_fault_buffer_info_overflow_clear_v(void)
660{
661 return 0x00000001U;
662}
663static inline u32 fifo_replay_fault_buffer_info_write_nack_f(u32 v)
664{
665 return (v & 0x1U) << 24U;
666}
667static inline u32 fifo_replay_fault_buffer_info_write_nack_false_v(void)
668{
669 return 0x00000000U;
670}
671static inline u32 fifo_replay_fault_buffer_info_write_nack_true_v(void)
672{
673 return 0x00000001U;
674}
675static inline u32 fifo_replay_fault_buffer_info_write_nack_clear_v(void)
676{
677 return 0x00000001U;
678}
679static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_f(u32 v)
680{
681 return (v & 0x1U) << 28U;
682}
683static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_false_v(void)
684{
685 return 0x00000000U;
686}
687static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_true_v(void)
688{
689 return 0x00000001U;
690}
691static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_clear_v(void)
692{
693 return 0x00000001U;
694}
695#endif
diff --git a/include/nvgpu/hw/gp106/hw_flush_gp106.h b/include/nvgpu/hw/gp106/hw_flush_gp106.h
new file mode 100644
index 0000000..c4e1c32
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_flush_gp106.h
@@ -0,0 +1,187 @@
1/*
2 * Copyright (c) 2016-2017, 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_flush_gp106_h_
57#define _hw_flush_gp106_h_
58
59static inline u32 flush_l2_system_invalidate_r(void)
60{
61 return 0x00070004U;
62}
63static inline u32 flush_l2_system_invalidate_pending_v(u32 r)
64{
65 return (r >> 0U) & 0x1U;
66}
67static inline u32 flush_l2_system_invalidate_pending_busy_v(void)
68{
69 return 0x00000001U;
70}
71static inline u32 flush_l2_system_invalidate_pending_busy_f(void)
72{
73 return 0x1U;
74}
75static inline u32 flush_l2_system_invalidate_outstanding_v(u32 r)
76{
77 return (r >> 1U) & 0x1U;
78}
79static inline u32 flush_l2_system_invalidate_outstanding_true_v(void)
80{
81 return 0x00000001U;
82}
83static inline u32 flush_l2_flush_dirty_r(void)
84{
85 return 0x00070010U;
86}
87static inline u32 flush_l2_flush_dirty_pending_v(u32 r)
88{
89 return (r >> 0U) & 0x1U;
90}
91static inline u32 flush_l2_flush_dirty_pending_empty_v(void)
92{
93 return 0x00000000U;
94}
95static inline u32 flush_l2_flush_dirty_pending_empty_f(void)
96{
97 return 0x0U;
98}
99static inline u32 flush_l2_flush_dirty_pending_busy_v(void)
100{
101 return 0x00000001U;
102}
103static inline u32 flush_l2_flush_dirty_pending_busy_f(void)
104{
105 return 0x1U;
106}
107static inline u32 flush_l2_flush_dirty_outstanding_v(u32 r)
108{
109 return (r >> 1U) & 0x1U;
110}
111static inline u32 flush_l2_flush_dirty_outstanding_false_v(void)
112{
113 return 0x00000000U;
114}
115static inline u32 flush_l2_flush_dirty_outstanding_false_f(void)
116{
117 return 0x0U;
118}
119static inline u32 flush_l2_flush_dirty_outstanding_true_v(void)
120{
121 return 0x00000001U;
122}
123static inline u32 flush_l2_clean_comptags_r(void)
124{
125 return 0x0007000cU;
126}
127static inline u32 flush_l2_clean_comptags_pending_v(u32 r)
128{
129 return (r >> 0U) & 0x1U;
130}
131static inline u32 flush_l2_clean_comptags_pending_empty_v(void)
132{
133 return 0x00000000U;
134}
135static inline u32 flush_l2_clean_comptags_pending_empty_f(void)
136{
137 return 0x0U;
138}
139static inline u32 flush_l2_clean_comptags_pending_busy_v(void)
140{
141 return 0x00000001U;
142}
143static inline u32 flush_l2_clean_comptags_pending_busy_f(void)
144{
145 return 0x1U;
146}
147static inline u32 flush_l2_clean_comptags_outstanding_v(u32 r)
148{
149 return (r >> 1U) & 0x1U;
150}
151static inline u32 flush_l2_clean_comptags_outstanding_false_v(void)
152{
153 return 0x00000000U;
154}
155static inline u32 flush_l2_clean_comptags_outstanding_false_f(void)
156{
157 return 0x0U;
158}
159static inline u32 flush_l2_clean_comptags_outstanding_true_v(void)
160{
161 return 0x00000001U;
162}
163static inline u32 flush_fb_flush_r(void)
164{
165 return 0x00070000U;
166}
167static inline u32 flush_fb_flush_pending_v(u32 r)
168{
169 return (r >> 0U) & 0x1U;
170}
171static inline u32 flush_fb_flush_pending_busy_v(void)
172{
173 return 0x00000001U;
174}
175static inline u32 flush_fb_flush_pending_busy_f(void)
176{
177 return 0x1U;
178}
179static inline u32 flush_fb_flush_outstanding_v(u32 r)
180{
181 return (r >> 1U) & 0x1U;
182}
183static inline u32 flush_fb_flush_outstanding_true_v(void)
184{
185 return 0x00000001U;
186}
187#endif
diff --git a/include/nvgpu/hw/gp106/hw_fuse_gp106.h b/include/nvgpu/hw/gp106/hw_fuse_gp106.h
new file mode 100644
index 0000000..bfb19b9
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_fuse_gp106.h
@@ -0,0 +1,275 @@
1/*
2 * Copyright (c) 2016-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_fuse_gp106_h_
57#define _hw_fuse_gp106_h_
58
59static inline u32 fuse_status_opt_gpc_r(void)
60{
61 return 0x00021c1cU;
62}
63static inline u32 fuse_status_opt_tpc_gpc_r(u32 i)
64{
65 return 0x00021c38U + i*4U;
66}
67static inline u32 fuse_ctrl_opt_tpc_gpc_r(u32 i)
68{
69 return 0x00021838U + i*4U;
70}
71static inline u32 fuse_ctrl_opt_ram_svop_pdp_r(void)
72{
73 return 0x00021944U;
74}
75static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_f(u32 v)
76{
77 return (v & 0x3U) << 0U;
78}
79static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_m(void)
80{
81 return 0x3U << 0U;
82}
83static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_v(u32 r)
84{
85 return (r >> 0U) & 0x3U;
86}
87static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_r(void)
88{
89 return 0x00021948U;
90}
91static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_f(u32 v)
92{
93 return (v & 0x1U) << 0U;
94}
95static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_m(void)
96{
97 return 0x1U << 0U;
98}
99static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_yes_f(void)
104{
105 return 0x1U;
106}
107static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_no_f(void)
108{
109 return 0x0U;
110}
111static inline u32 fuse_status_opt_fbio_r(void)
112{
113 return 0x00021c14U;
114}
115static inline u32 fuse_status_opt_fbio_data_f(u32 v)
116{
117 return (v & 0xffffU) << 0U;
118}
119static inline u32 fuse_status_opt_fbio_data_m(void)
120{
121 return 0xffffU << 0U;
122}
123static inline u32 fuse_status_opt_fbio_data_v(u32 r)
124{
125 return (r >> 0U) & 0xffffU;
126}
127static inline u32 fuse_status_opt_rop_l2_fbp_r(u32 i)
128{
129 return 0x00021d70U + i*4U;
130}
131static inline u32 fuse_status_opt_fbp_r(void)
132{
133 return 0x00021d38U;
134}
135static inline u32 fuse_status_opt_fbp_idx_v(u32 r, u32 i)
136{
137 return (r >> (0U + i*1U)) & 0x1U;
138}
139static inline u32 fuse_vin_cal_fuse_rev_r(void)
140{
141 return 0x0002164cU;
142}
143static inline u32 fuse_vin_cal_fuse_rev_data_v(u32 r)
144{
145 return (r >> 0U) & 0x3U;
146}
147static inline u32 fuse_vin_cal_gpc0_r(void)
148{
149 return 0x00021650U;
150}
151static inline u32 fuse_vin_cal_gpc0_icpt_int_data_s(void)
152{
153 return 12U;
154}
155static inline u32 fuse_vin_cal_gpc0_icpt_int_data_v(u32 r)
156{
157 return (r >> 16U) & 0xfffU;
158}
159static inline u32 fuse_vin_cal_gpc0_icpt_frac_data_s(void)
160{
161 return 2U;
162}
163static inline u32 fuse_vin_cal_gpc0_icpt_frac_data_v(u32 r)
164{
165 return (r >> 14U) & 0x3U;
166}
167static inline u32 fuse_vin_cal_gpc0_slope_int_data_s(void)
168{
169 return 4U;
170}
171static inline u32 fuse_vin_cal_gpc0_slope_int_data_v(u32 r)
172{
173 return (r >> 10U) & 0xfU;
174}
175static inline u32 fuse_vin_cal_gpc0_slope_frac_data_s(void)
176{
177 return 10U;
178}
179static inline u32 fuse_vin_cal_gpc0_slope_frac_data_v(u32 r)
180{
181 return (r >> 0U) & 0x3ffU;
182}
183static inline u32 fuse_vin_cal_gpc1_delta_r(void)
184{
185 return 0x00021654U;
186}
187static inline u32 fuse_vin_cal_gpc1_delta_icpt_int_data_s(void)
188{
189 return 8U;
190}
191static inline u32 fuse_vin_cal_gpc1_delta_icpt_int_data_v(u32 r)
192{
193 return (r >> 14U) & 0xffU;
194}
195static inline u32 fuse_vin_cal_gpc1_delta_icpt_frac_data_s(void)
196{
197 return 2U;
198}
199static inline u32 fuse_vin_cal_gpc1_delta_icpt_frac_data_v(u32 r)
200{
201 return (r >> 12U) & 0x3U;
202}
203static inline u32 fuse_vin_cal_gpc1_delta_icpt_sign_data_s(void)
204{
205 return 1U;
206}
207static inline u32 fuse_vin_cal_gpc1_delta_icpt_sign_data_v(u32 r)
208{
209 return (r >> 22U) & 0x1U;
210}
211static inline u32 fuse_vin_cal_gpc1_delta_slope_int_data_s(void)
212{
213 return 1U;
214}
215static inline u32 fuse_vin_cal_gpc1_delta_slope_int_data_v(u32 r)
216{
217 return (r >> 10U) & 0x1U;
218}
219static inline u32 fuse_vin_cal_gpc1_delta_slope_frac_data_s(void)
220{
221 return 10U;
222}
223static inline u32 fuse_vin_cal_gpc1_delta_slope_frac_data_v(u32 r)
224{
225 return (r >> 0U) & 0x3ffU;
226}
227static inline u32 fuse_vin_cal_gpc1_delta_slope_sign_data_s(void)
228{
229 return 1U;
230}
231static inline u32 fuse_vin_cal_gpc1_delta_slope_sign_data_v(u32 r)
232{
233 return (r >> 11U) & 0x1U;
234}
235static inline u32 fuse_vin_cal_gpc2_delta_r(void)
236{
237 return 0x00021658U;
238}
239static inline u32 fuse_vin_cal_gpc3_delta_r(void)
240{
241 return 0x0002165cU;
242}
243static inline u32 fuse_vin_cal_gpc4_delta_r(void)
244{
245 return 0x00021660U;
246}
247static inline u32 fuse_vin_cal_gpc5_delta_r(void)
248{
249 return 0x00021664U;
250}
251static inline u32 fuse_vin_cal_shared_delta_r(void)
252{
253 return 0x00021668U;
254}
255static inline u32 fuse_vin_cal_sram_delta_r(void)
256{
257 return 0x0002166cU;
258}
259static inline u32 fuse_vin_cal_sram_delta_icpt_int_data_s(void)
260{
261 return 9U;
262}
263static inline u32 fuse_vin_cal_sram_delta_icpt_int_data_v(u32 r)
264{
265 return (r >> 13U) & 0x1ffU;
266}
267static inline u32 fuse_vin_cal_sram_delta_icpt_frac_data_s(void)
268{
269 return 1U;
270}
271static inline u32 fuse_vin_cal_sram_delta_icpt_frac_data_v(u32 r)
272{
273 return (r >> 12U) & 0x1U;
274}
275#endif
diff --git a/include/nvgpu/hw/gp106/hw_gc6_gp106.h b/include/nvgpu/hw/gp106/hw_gc6_gp106.h
new file mode 100644
index 0000000..91e9d7b
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_gc6_gp106.h
@@ -0,0 +1,62 @@
1/*
2 * Copyright (c) 2016, 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_gc6_gp106_h_
57#define _hw_gc6_gp106_h_
58static inline u32 gc6_sci_strap_r(void)
59{
60 return 0x00010ebb0;
61}
62#endif
diff --git a/include/nvgpu/hw/gp106/hw_gmmu_gp106.h b/include/nvgpu/hw/gp106/hw_gmmu_gp106.h
new file mode 100644
index 0000000..8369001
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_gmmu_gp106.h
@@ -0,0 +1,331 @@
1/*
2 * Copyright (c) 2016-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_gmmu_gp106_h_
57#define _hw_gmmu_gp106_h_
58
59static inline u32 gmmu_new_pde_is_pte_w(void)
60{
61 return 0U;
62}
63static inline u32 gmmu_new_pde_is_pte_false_f(void)
64{
65 return 0x0U;
66}
67static inline u32 gmmu_new_pde_aperture_w(void)
68{
69 return 0U;
70}
71static inline u32 gmmu_new_pde_aperture_invalid_f(void)
72{
73 return 0x0U;
74}
75static inline u32 gmmu_new_pde_aperture_video_memory_f(void)
76{
77 return 0x2U;
78}
79static inline u32 gmmu_new_pde_aperture_sys_mem_coh_f(void)
80{
81 return 0x4U;
82}
83static inline u32 gmmu_new_pde_aperture_sys_mem_ncoh_f(void)
84{
85 return 0x6U;
86}
87static inline u32 gmmu_new_pde_address_sys_f(u32 v)
88{
89 return (v & 0xffffffU) << 8U;
90}
91static inline u32 gmmu_new_pde_address_sys_w(void)
92{
93 return 0U;
94}
95static inline u32 gmmu_new_pde_vol_w(void)
96{
97 return 0U;
98}
99static inline u32 gmmu_new_pde_vol_true_f(void)
100{
101 return 0x8U;
102}
103static inline u32 gmmu_new_pde_vol_false_f(void)
104{
105 return 0x0U;
106}
107static inline u32 gmmu_new_pde_address_shift_v(void)
108{
109 return 0x0000000cU;
110}
111static inline u32 gmmu_new_pde__size_v(void)
112{
113 return 0x00000008U;
114}
115static inline u32 gmmu_new_dual_pde_is_pte_w(void)
116{
117 return 0U;
118}
119static inline u32 gmmu_new_dual_pde_is_pte_false_f(void)
120{
121 return 0x0U;
122}
123static inline u32 gmmu_new_dual_pde_aperture_big_w(void)
124{
125 return 0U;
126}
127static inline u32 gmmu_new_dual_pde_aperture_big_invalid_f(void)
128{
129 return 0x0U;
130}
131static inline u32 gmmu_new_dual_pde_aperture_big_video_memory_f(void)
132{
133 return 0x2U;
134}
135static inline u32 gmmu_new_dual_pde_aperture_big_sys_mem_coh_f(void)
136{
137 return 0x4U;
138}
139static inline u32 gmmu_new_dual_pde_aperture_big_sys_mem_ncoh_f(void)
140{
141 return 0x6U;
142}
143static inline u32 gmmu_new_dual_pde_address_big_sys_f(u32 v)
144{
145 return (v & 0xfffffffU) << 4U;
146}
147static inline u32 gmmu_new_dual_pde_address_big_sys_w(void)
148{
149 return 0U;
150}
151static inline u32 gmmu_new_dual_pde_aperture_small_w(void)
152{
153 return 2U;
154}
155static inline u32 gmmu_new_dual_pde_aperture_small_invalid_f(void)
156{
157 return 0x0U;
158}
159static inline u32 gmmu_new_dual_pde_aperture_small_video_memory_f(void)
160{
161 return 0x2U;
162}
163static inline u32 gmmu_new_dual_pde_aperture_small_sys_mem_coh_f(void)
164{
165 return 0x4U;
166}
167static inline u32 gmmu_new_dual_pde_aperture_small_sys_mem_ncoh_f(void)
168{
169 return 0x6U;
170}
171static inline u32 gmmu_new_dual_pde_vol_small_w(void)
172{
173 return 2U;
174}
175static inline u32 gmmu_new_dual_pde_vol_small_true_f(void)
176{
177 return 0x8U;
178}
179static inline u32 gmmu_new_dual_pde_vol_small_false_f(void)
180{
181 return 0x0U;
182}
183static inline u32 gmmu_new_dual_pde_vol_big_w(void)
184{
185 return 0U;
186}
187static inline u32 gmmu_new_dual_pde_vol_big_true_f(void)
188{
189 return 0x8U;
190}
191static inline u32 gmmu_new_dual_pde_vol_big_false_f(void)
192{
193 return 0x0U;
194}
195static inline u32 gmmu_new_dual_pde_address_small_sys_f(u32 v)
196{
197 return (v & 0xffffffU) << 8U;
198}
199static inline u32 gmmu_new_dual_pde_address_small_sys_w(void)
200{
201 return 2U;
202}
203static inline u32 gmmu_new_dual_pde_address_shift_v(void)
204{
205 return 0x0000000cU;
206}
207static inline u32 gmmu_new_dual_pde_address_big_shift_v(void)
208{
209 return 0x00000008U;
210}
211static inline u32 gmmu_new_dual_pde__size_v(void)
212{
213 return 0x00000010U;
214}
215static inline u32 gmmu_new_pte__size_v(void)
216{
217 return 0x00000008U;
218}
219static inline u32 gmmu_new_pte_valid_w(void)
220{
221 return 0U;
222}
223static inline u32 gmmu_new_pte_valid_true_f(void)
224{
225 return 0x1U;
226}
227static inline u32 gmmu_new_pte_valid_false_f(void)
228{
229 return 0x0U;
230}
231static inline u32 gmmu_new_pte_privilege_w(void)
232{
233 return 0U;
234}
235static inline u32 gmmu_new_pte_privilege_true_f(void)
236{
237 return 0x20U;
238}
239static inline u32 gmmu_new_pte_privilege_false_f(void)
240{
241 return 0x0U;
242}
243static inline u32 gmmu_new_pte_address_sys_f(u32 v)
244{
245 return (v & 0xffffffU) << 8U;
246}
247static inline u32 gmmu_new_pte_address_sys_w(void)
248{
249 return 0U;
250}
251static inline u32 gmmu_new_pte_address_vid_f(u32 v)
252{
253 return (v & 0xffffffU) << 8U;
254}
255static inline u32 gmmu_new_pte_address_vid_w(void)
256{
257 return 0U;
258}
259static inline u32 gmmu_new_pte_vol_w(void)
260{
261 return 0U;
262}
263static inline u32 gmmu_new_pte_vol_true_f(void)
264{
265 return 0x8U;
266}
267static inline u32 gmmu_new_pte_vol_false_f(void)
268{
269 return 0x0U;
270}
271static inline u32 gmmu_new_pte_aperture_w(void)
272{
273 return 0U;
274}
275static inline u32 gmmu_new_pte_aperture_video_memory_f(void)
276{
277 return 0x0U;
278}
279static inline u32 gmmu_new_pte_aperture_sys_mem_coh_f(void)
280{
281 return 0x4U;
282}
283static inline u32 gmmu_new_pte_aperture_sys_mem_ncoh_f(void)
284{
285 return 0x6U;
286}
287static inline u32 gmmu_new_pte_read_only_w(void)
288{
289 return 0U;
290}
291static inline u32 gmmu_new_pte_read_only_true_f(void)
292{
293 return 0x40U;
294}
295static inline u32 gmmu_new_pte_comptagline_f(u32 v)
296{
297 return (v & 0x3ffffU) << 4U;
298}
299static inline u32 gmmu_new_pte_comptagline_w(void)
300{
301 return 1U;
302}
303static inline u32 gmmu_new_pte_kind_f(u32 v)
304{
305 return (v & 0xffU) << 24U;
306}
307static inline u32 gmmu_new_pte_kind_w(void)
308{
309 return 1U;
310}
311static inline u32 gmmu_new_pte_address_shift_v(void)
312{
313 return 0x0000000cU;
314}
315static inline u32 gmmu_pte_kind_f(u32 v)
316{
317 return (v & 0xffU) << 4U;
318}
319static inline u32 gmmu_pte_kind_w(void)
320{
321 return 1U;
322}
323static inline u32 gmmu_pte_kind_invalid_v(void)
324{
325 return 0x000000ffU;
326}
327static inline u32 gmmu_pte_kind_pitch_v(void)
328{
329 return 0x00000000U;
330}
331#endif
diff --git a/include/nvgpu/hw/gp106/hw_gr_gp106.h b/include/nvgpu/hw/gp106/hw_gr_gp106.h
new file mode 100644
index 0000000..3ebed7e
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_gr_gp106.h
@@ -0,0 +1,4163 @@
1/*
2 * Copyright (c) 2016-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_gr_gp106_h_
57#define _hw_gr_gp106_h_
58
59static inline u32 gr_intr_r(void)
60{
61 return 0x00400100U;
62}
63static inline u32 gr_intr_notify_pending_f(void)
64{
65 return 0x1U;
66}
67static inline u32 gr_intr_notify_reset_f(void)
68{
69 return 0x1U;
70}
71static inline u32 gr_intr_semaphore_pending_f(void)
72{
73 return 0x2U;
74}
75static inline u32 gr_intr_semaphore_reset_f(void)
76{
77 return 0x2U;
78}
79static inline u32 gr_intr_illegal_method_pending_f(void)
80{
81 return 0x10U;
82}
83static inline u32 gr_intr_illegal_method_reset_f(void)
84{
85 return 0x10U;
86}
87static inline u32 gr_intr_illegal_notify_pending_f(void)
88{
89 return 0x40U;
90}
91static inline u32 gr_intr_illegal_notify_reset_f(void)
92{
93 return 0x40U;
94}
95static inline u32 gr_intr_firmware_method_f(u32 v)
96{
97 return (v & 0x1U) << 8U;
98}
99static inline u32 gr_intr_firmware_method_pending_f(void)
100{
101 return 0x100U;
102}
103static inline u32 gr_intr_firmware_method_reset_f(void)
104{
105 return 0x100U;
106}
107static inline u32 gr_intr_illegal_class_pending_f(void)
108{
109 return 0x20U;
110}
111static inline u32 gr_intr_illegal_class_reset_f(void)
112{
113 return 0x20U;
114}
115static inline u32 gr_intr_fecs_error_pending_f(void)
116{
117 return 0x80000U;
118}
119static inline u32 gr_intr_fecs_error_reset_f(void)
120{
121 return 0x80000U;
122}
123static inline u32 gr_intr_class_error_pending_f(void)
124{
125 return 0x100000U;
126}
127static inline u32 gr_intr_class_error_reset_f(void)
128{
129 return 0x100000U;
130}
131static inline u32 gr_intr_exception_pending_f(void)
132{
133 return 0x200000U;
134}
135static inline u32 gr_intr_exception_reset_f(void)
136{
137 return 0x200000U;
138}
139static inline u32 gr_fecs_intr_r(void)
140{
141 return 0x00400144U;
142}
143static inline u32 gr_class_error_r(void)
144{
145 return 0x00400110U;
146}
147static inline u32 gr_class_error_code_v(u32 r)
148{
149 return (r >> 0U) & 0xffffU;
150}
151static inline u32 gr_intr_nonstall_r(void)
152{
153 return 0x00400120U;
154}
155static inline u32 gr_intr_nonstall_trap_pending_f(void)
156{
157 return 0x2U;
158}
159static inline u32 gr_intr_en_r(void)
160{
161 return 0x0040013cU;
162}
163static inline u32 gr_exception_r(void)
164{
165 return 0x00400108U;
166}
167static inline u32 gr_exception_fe_m(void)
168{
169 return 0x1U << 0U;
170}
171static inline u32 gr_exception_gpc_m(void)
172{
173 return 0x1U << 24U;
174}
175static inline u32 gr_exception_memfmt_m(void)
176{
177 return 0x1U << 1U;
178}
179static inline u32 gr_exception_ds_m(void)
180{
181 return 0x1U << 4U;
182}
183static inline u32 gr_exception_sked_m(void)
184{
185 return 0x1U << 8U;
186}
187static inline u32 gr_exception_pd_m(void)
188{
189 return 0x1U << 2U;
190}
191static inline u32 gr_exception_scc_m(void)
192{
193 return 0x1U << 3U;
194}
195static inline u32 gr_exception_ssync_m(void)
196{
197 return 0x1U << 5U;
198}
199static inline u32 gr_exception_mme_m(void)
200{
201 return 0x1U << 7U;
202}
203static inline u32 gr_exception1_r(void)
204{
205 return 0x00400118U;
206}
207static inline u32 gr_exception1_gpc_0_pending_f(void)
208{
209 return 0x1U;
210}
211static inline u32 gr_exception2_r(void)
212{
213 return 0x0040011cU;
214}
215static inline u32 gr_exception_en_r(void)
216{
217 return 0x00400138U;
218}
219static inline u32 gr_exception_en_fe_m(void)
220{
221 return 0x1U << 0U;
222}
223static inline u32 gr_exception1_en_r(void)
224{
225 return 0x00400130U;
226}
227static inline u32 gr_exception2_en_r(void)
228{
229 return 0x00400134U;
230}
231static inline u32 gr_gpfifo_ctl_r(void)
232{
233 return 0x00400500U;
234}
235static inline u32 gr_gpfifo_ctl_access_f(u32 v)
236{
237 return (v & 0x1U) << 0U;
238}
239static inline u32 gr_gpfifo_ctl_access_disabled_f(void)
240{
241 return 0x0U;
242}
243static inline u32 gr_gpfifo_ctl_access_enabled_f(void)
244{
245 return 0x1U;
246}
247static inline u32 gr_gpfifo_ctl_semaphore_access_f(u32 v)
248{
249 return (v & 0x1U) << 16U;
250}
251static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_v(void)
252{
253 return 0x00000001U;
254}
255static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_f(void)
256{
257 return 0x10000U;
258}
259static inline u32 gr_gpfifo_status_r(void)
260{
261 return 0x00400504U;
262}
263static inline u32 gr_trapped_addr_r(void)
264{
265 return 0x00400704U;
266}
267static inline u32 gr_trapped_addr_mthd_v(u32 r)
268{
269 return (r >> 2U) & 0xfffU;
270}
271static inline u32 gr_trapped_addr_subch_v(u32 r)
272{
273 return (r >> 16U) & 0x7U;
274}
275static inline u32 gr_trapped_addr_mme_generated_v(u32 r)
276{
277 return (r >> 20U) & 0x1U;
278}
279static inline u32 gr_trapped_addr_datahigh_v(u32 r)
280{
281 return (r >> 24U) & 0x1U;
282}
283static inline u32 gr_trapped_addr_priv_v(u32 r)
284{
285 return (r >> 28U) & 0x1U;
286}
287static inline u32 gr_trapped_addr_status_v(u32 r)
288{
289 return (r >> 31U) & 0x1U;
290}
291static inline u32 gr_trapped_data_lo_r(void)
292{
293 return 0x00400708U;
294}
295static inline u32 gr_trapped_data_hi_r(void)
296{
297 return 0x0040070cU;
298}
299static inline u32 gr_trapped_data_mme_r(void)
300{
301 return 0x00400710U;
302}
303static inline u32 gr_trapped_data_mme_pc_v(u32 r)
304{
305 return (r >> 0U) & 0xfffU;
306}
307static inline u32 gr_status_r(void)
308{
309 return 0x00400700U;
310}
311static inline u32 gr_status_fe_method_upper_v(u32 r)
312{
313 return (r >> 1U) & 0x1U;
314}
315static inline u32 gr_status_fe_method_lower_v(u32 r)
316{
317 return (r >> 2U) & 0x1U;
318}
319static inline u32 gr_status_fe_method_lower_idle_v(void)
320{
321 return 0x00000000U;
322}
323static inline u32 gr_status_fe_gi_v(u32 r)
324{
325 return (r >> 21U) & 0x1U;
326}
327static inline u32 gr_status_mask_r(void)
328{
329 return 0x00400610U;
330}
331static inline u32 gr_status_1_r(void)
332{
333 return 0x00400604U;
334}
335static inline u32 gr_status_2_r(void)
336{
337 return 0x00400608U;
338}
339static inline u32 gr_engine_status_r(void)
340{
341 return 0x0040060cU;
342}
343static inline u32 gr_engine_status_value_busy_f(void)
344{
345 return 0x1U;
346}
347static inline u32 gr_pri_be0_becs_be_exception_r(void)
348{
349 return 0x00410204U;
350}
351static inline u32 gr_pri_be0_becs_be_exception_en_r(void)
352{
353 return 0x00410208U;
354}
355static inline u32 gr_pri_gpc0_gpccs_gpc_exception_r(void)
356{
357 return 0x00502c90U;
358}
359static inline u32 gr_pri_gpc0_gpccs_gpc_exception_en_r(void)
360{
361 return 0x00502c94U;
362}
363static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_r(void)
364{
365 return 0x00504508U;
366}
367static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
368{
369 return 0x0050450cU;
370}
371static inline u32 gr_activity_0_r(void)
372{
373 return 0x00400380U;
374}
375static inline u32 gr_activity_1_r(void)
376{
377 return 0x00400384U;
378}
379static inline u32 gr_activity_2_r(void)
380{
381 return 0x00400388U;
382}
383static inline u32 gr_activity_4_r(void)
384{
385 return 0x00400390U;
386}
387static inline u32 gr_activity_4_gpc0_s(void)
388{
389 return 3U;
390}
391static inline u32 gr_activity_4_gpc0_f(u32 v)
392{
393 return (v & 0x7U) << 0U;
394}
395static inline u32 gr_activity_4_gpc0_m(void)
396{
397 return 0x7U << 0U;
398}
399static inline u32 gr_activity_4_gpc0_v(u32 r)
400{
401 return (r >> 0U) & 0x7U;
402}
403static inline u32 gr_activity_4_gpc0_empty_v(void)
404{
405 return 0x00000000U;
406}
407static inline u32 gr_activity_4_gpc0_preempted_v(void)
408{
409 return 0x00000004U;
410}
411static inline u32 gr_pri_gpc0_gcc_dbg_r(void)
412{
413 return 0x00501000U;
414}
415static inline u32 gr_pri_gpcs_gcc_dbg_r(void)
416{
417 return 0x00419000U;
418}
419static inline u32 gr_pri_gpcs_gcc_dbg_invalidate_m(void)
420{
421 return 0x1U << 1U;
422}
423static inline u32 gr_pri_gpc0_tpc0_sm_cache_control_r(void)
424{
425 return 0x005046a4U;
426}
427static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_r(void)
428{
429 return 0x00419ea4U;
430}
431static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_invalidate_cache_m(void)
432{
433 return 0x1U << 0U;
434}
435static inline u32 gr_pri_sked_activity_r(void)
436{
437 return 0x00407054U;
438}
439static inline u32 gr_pri_gpc0_gpccs_gpc_activity0_r(void)
440{
441 return 0x00502c80U;
442}
443static inline u32 gr_pri_gpc0_gpccs_gpc_activity1_r(void)
444{
445 return 0x00502c84U;
446}
447static inline u32 gr_pri_gpc0_gpccs_gpc_activity2_r(void)
448{
449 return 0x00502c88U;
450}
451static inline u32 gr_pri_gpc0_gpccs_gpc_activity3_r(void)
452{
453 return 0x00502c8cU;
454}
455static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_activity_0_r(void)
456{
457 return 0x00504500U;
458}
459static inline u32 gr_pri_gpc0_tpc1_tpccs_tpc_activity_0_r(void)
460{
461 return 0x00504d00U;
462}
463static inline u32 gr_pri_gpc0_tpcs_tpccs_tpc_activity_0_r(void)
464{
465 return 0x00501d00U;
466}
467static inline u32 gr_pri_gpcs_gpccs_gpc_activity_0_r(void)
468{
469 return 0x0041ac80U;
470}
471static inline u32 gr_pri_gpcs_gpccs_gpc_activity_1_r(void)
472{
473 return 0x0041ac84U;
474}
475static inline u32 gr_pri_gpcs_gpccs_gpc_activity_2_r(void)
476{
477 return 0x0041ac88U;
478}
479static inline u32 gr_pri_gpcs_gpccs_gpc_activity_3_r(void)
480{
481 return 0x0041ac8cU;
482}
483static inline u32 gr_pri_gpcs_tpc0_tpccs_tpc_activity_0_r(void)
484{
485 return 0x0041c500U;
486}
487static inline u32 gr_pri_gpcs_tpc1_tpccs_tpc_activity_0_r(void)
488{
489 return 0x0041cd00U;
490}
491static inline u32 gr_pri_gpcs_tpcs_tpccs_tpc_activity_0_r(void)
492{
493 return 0x00419d00U;
494}
495static inline u32 gr_pri_be0_becs_be_activity0_r(void)
496{
497 return 0x00410200U;
498}
499static inline u32 gr_pri_be1_becs_be_activity0_r(void)
500{
501 return 0x00410600U;
502}
503static inline u32 gr_pri_bes_becs_be_activity0_r(void)
504{
505 return 0x00408a00U;
506}
507static inline u32 gr_pri_ds_mpipe_status_r(void)
508{
509 return 0x00405858U;
510}
511static inline u32 gr_pri_fe_go_idle_info_r(void)
512{
513 return 0x00404194U;
514}
515static inline u32 gr_pri_gpc0_tpc0_tex_m_tex_subunits_status_r(void)
516{
517 return 0x00504238U;
518}
519static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_r(void)
520{
521 return 0x005046b8U;
522}
523static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp0_pending_f(void)
524{
525 return 0x10U;
526}
527static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp1_pending_f(void)
528{
529 return 0x20U;
530}
531static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp2_pending_f(void)
532{
533 return 0x40U;
534}
535static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp3_pending_f(void)
536{
537 return 0x80U;
538}
539static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp0_pending_f(void)
540{
541 return 0x100U;
542}
543static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp1_pending_f(void)
544{
545 return 0x200U;
546}
547static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp2_pending_f(void)
548{
549 return 0x400U;
550}
551static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp3_pending_f(void)
552{
553 return 0x800U;
554}
555static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_r(void)
556{
557 return 0x005044a0U;
558}
559static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_corrected_shm0_pending_f(void)
560{
561 return 0x1U;
562}
563static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_corrected_shm1_pending_f(void)
564{
565 return 0x2U;
566}
567static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_detected_shm0_pending_f(void)
568{
569 return 0x10U;
570}
571static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_detected_shm1_pending_f(void)
572{
573 return 0x20U;
574}
575static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_double_err_detected_shm0_pending_f(void)
576{
577 return 0x100U;
578}
579static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_double_err_detected_shm1_pending_f(void)
580{
581 return 0x200U;
582}
583static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_single_err_count_r(void)
584{
585 return 0x005046bcU;
586}
587static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_double_err_count_r(void)
588{
589 return 0x005046c0U;
590}
591static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_r(void)
592{
593 return 0x005044a4U;
594}
595static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_corrected_m(void)
596{
597 return 0xffU << 0U;
598}
599static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_corrected_v(u32 r)
600{
601 return (r >> 0U) & 0xffU;
602}
603static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_detected_m(void)
604{
605 return 0xffU << 8U;
606}
607static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_detected_v(u32 r)
608{
609 return (r >> 8U) & 0xffU;
610}
611static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_double_detected_m(void)
612{
613 return 0xffU << 16U;
614}
615static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_double_detected_v(u32 r)
616{
617 return (r >> 16U) & 0xffU;
618}
619static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_r(void)
620{
621 return 0x005042c4U;
622}
623static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_default_f(void)
624{
625 return 0x0U;
626}
627static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe0_f(void)
628{
629 return 0x1U;
630}
631static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe1_f(void)
632{
633 return 0x2U;
634}
635static inline u32 gr_pri_be0_crop_status1_r(void)
636{
637 return 0x00410134U;
638}
639static inline u32 gr_pri_bes_crop_status1_r(void)
640{
641 return 0x00408934U;
642}
643static inline u32 gr_pri_be0_zrop_status_r(void)
644{
645 return 0x00410048U;
646}
647static inline u32 gr_pri_be0_zrop_status2_r(void)
648{
649 return 0x0041004cU;
650}
651static inline u32 gr_pri_bes_zrop_status_r(void)
652{
653 return 0x00408848U;
654}
655static inline u32 gr_pri_bes_zrop_status2_r(void)
656{
657 return 0x0040884cU;
658}
659static inline u32 gr_pipe_bundle_address_r(void)
660{
661 return 0x00400200U;
662}
663static inline u32 gr_pipe_bundle_address_value_v(u32 r)
664{
665 return (r >> 0U) & 0xffffU;
666}
667static inline u32 gr_pipe_bundle_data_r(void)
668{
669 return 0x00400204U;
670}
671static inline u32 gr_pipe_bundle_config_r(void)
672{
673 return 0x00400208U;
674}
675static inline u32 gr_pipe_bundle_config_override_pipe_mode_disabled_f(void)
676{
677 return 0x0U;
678}
679static inline u32 gr_pipe_bundle_config_override_pipe_mode_enabled_f(void)
680{
681 return 0x80000000U;
682}
683static inline u32 gr_fe_hww_esr_r(void)
684{
685 return 0x00404000U;
686}
687static inline u32 gr_fe_hww_esr_reset_active_f(void)
688{
689 return 0x40000000U;
690}
691static inline u32 gr_fe_hww_esr_en_enable_f(void)
692{
693 return 0x80000000U;
694}
695static inline u32 gr_fe_hww_esr_info_r(void)
696{
697 return 0x004041b0U;
698}
699static inline u32 gr_fe_go_idle_timeout_r(void)
700{
701 return 0x00404154U;
702}
703static inline u32 gr_fe_go_idle_timeout_count_f(u32 v)
704{
705 return (v & 0xffffffffU) << 0U;
706}
707static inline u32 gr_fe_go_idle_timeout_count_disabled_f(void)
708{
709 return 0x0U;
710}
711static inline u32 gr_fe_go_idle_timeout_count_prod_f(void)
712{
713 return 0x1800U;
714}
715static inline u32 gr_fe_object_table_r(u32 i)
716{
717 return 0x00404200U + i*4U;
718}
719static inline u32 gr_fe_object_table_nvclass_v(u32 r)
720{
721 return (r >> 0U) & 0xffffU;
722}
723static inline u32 gr_fe_tpc_fs_r(void)
724{
725 return 0x004041c4U;
726}
727static inline u32 gr_pri_mme_shadow_raw_index_r(void)
728{
729 return 0x00404488U;
730}
731static inline u32 gr_pri_mme_shadow_raw_index_write_trigger_f(void)
732{
733 return 0x80000000U;
734}
735static inline u32 gr_pri_mme_shadow_raw_data_r(void)
736{
737 return 0x0040448cU;
738}
739static inline u32 gr_mme_hww_esr_r(void)
740{
741 return 0x00404490U;
742}
743static inline u32 gr_mme_hww_esr_reset_active_f(void)
744{
745 return 0x40000000U;
746}
747static inline u32 gr_mme_hww_esr_en_enable_f(void)
748{
749 return 0x80000000U;
750}
751static inline u32 gr_mme_hww_esr_info_r(void)
752{
753 return 0x00404494U;
754}
755static inline u32 gr_memfmt_hww_esr_r(void)
756{
757 return 0x00404600U;
758}
759static inline u32 gr_memfmt_hww_esr_reset_active_f(void)
760{
761 return 0x40000000U;
762}
763static inline u32 gr_memfmt_hww_esr_en_enable_f(void)
764{
765 return 0x80000000U;
766}
767static inline u32 gr_fecs_cpuctl_r(void)
768{
769 return 0x00409100U;
770}
771static inline u32 gr_fecs_cpuctl_startcpu_f(u32 v)
772{
773 return (v & 0x1U) << 1U;
774}
775static inline u32 gr_fecs_cpuctl_alias_r(void)
776{
777 return 0x00409130U;
778}
779static inline u32 gr_fecs_cpuctl_alias_startcpu_f(u32 v)
780{
781 return (v & 0x1U) << 1U;
782}
783static inline u32 gr_fecs_dmactl_r(void)
784{
785 return 0x0040910cU;
786}
787static inline u32 gr_fecs_dmactl_require_ctx_f(u32 v)
788{
789 return (v & 0x1U) << 0U;
790}
791static inline u32 gr_fecs_dmactl_dmem_scrubbing_m(void)
792{
793 return 0x1U << 1U;
794}
795static inline u32 gr_fecs_dmactl_imem_scrubbing_m(void)
796{
797 return 0x1U << 2U;
798}
799static inline u32 gr_fecs_os_r(void)
800{
801 return 0x00409080U;
802}
803static inline u32 gr_fecs_idlestate_r(void)
804{
805 return 0x0040904cU;
806}
807static inline u32 gr_fecs_mailbox0_r(void)
808{
809 return 0x00409040U;
810}
811static inline u32 gr_fecs_mailbox1_r(void)
812{
813 return 0x00409044U;
814}
815static inline u32 gr_fecs_irqstat_r(void)
816{
817 return 0x00409008U;
818}
819static inline u32 gr_fecs_irqmode_r(void)
820{
821 return 0x0040900cU;
822}
823static inline u32 gr_fecs_irqmask_r(void)
824{
825 return 0x00409018U;
826}
827static inline u32 gr_fecs_irqdest_r(void)
828{
829 return 0x0040901cU;
830}
831static inline u32 gr_fecs_curctx_r(void)
832{
833 return 0x00409050U;
834}
835static inline u32 gr_fecs_nxtctx_r(void)
836{
837 return 0x00409054U;
838}
839static inline u32 gr_fecs_engctl_r(void)
840{
841 return 0x004090a4U;
842}
843static inline u32 gr_fecs_debug1_r(void)
844{
845 return 0x00409090U;
846}
847static inline u32 gr_fecs_debuginfo_r(void)
848{
849 return 0x00409094U;
850}
851static inline u32 gr_fecs_icd_cmd_r(void)
852{
853 return 0x00409200U;
854}
855static inline u32 gr_fecs_icd_cmd_opc_s(void)
856{
857 return 4U;
858}
859static inline u32 gr_fecs_icd_cmd_opc_f(u32 v)
860{
861 return (v & 0xfU) << 0U;
862}
863static inline u32 gr_fecs_icd_cmd_opc_m(void)
864{
865 return 0xfU << 0U;
866}
867static inline u32 gr_fecs_icd_cmd_opc_v(u32 r)
868{
869 return (r >> 0U) & 0xfU;
870}
871static inline u32 gr_fecs_icd_cmd_opc_rreg_f(void)
872{
873 return 0x8U;
874}
875static inline u32 gr_fecs_icd_cmd_opc_rstat_f(void)
876{
877 return 0xeU;
878}
879static inline u32 gr_fecs_icd_cmd_idx_f(u32 v)
880{
881 return (v & 0x1fU) << 8U;
882}
883static inline u32 gr_fecs_icd_rdata_r(void)
884{
885 return 0x0040920cU;
886}
887static inline u32 gr_fecs_imemc_r(u32 i)
888{
889 return 0x00409180U + i*16U;
890}
891static inline u32 gr_fecs_imemc_offs_f(u32 v)
892{
893 return (v & 0x3fU) << 2U;
894}
895static inline u32 gr_fecs_imemc_blk_f(u32 v)
896{
897 return (v & 0xffU) << 8U;
898}
899static inline u32 gr_fecs_imemc_aincw_f(u32 v)
900{
901 return (v & 0x1U) << 24U;
902}
903static inline u32 gr_fecs_imemd_r(u32 i)
904{
905 return 0x00409184U + i*16U;
906}
907static inline u32 gr_fecs_imemt_r(u32 i)
908{
909 return 0x00409188U + i*16U;
910}
911static inline u32 gr_fecs_imemt_tag_f(u32 v)
912{
913 return (v & 0xffffU) << 0U;
914}
915static inline u32 gr_fecs_dmemc_r(u32 i)
916{
917 return 0x004091c0U + i*8U;
918}
919static inline u32 gr_fecs_dmemc_offs_s(void)
920{
921 return 6U;
922}
923static inline u32 gr_fecs_dmemc_offs_f(u32 v)
924{
925 return (v & 0x3fU) << 2U;
926}
927static inline u32 gr_fecs_dmemc_offs_m(void)
928{
929 return 0x3fU << 2U;
930}
931static inline u32 gr_fecs_dmemc_offs_v(u32 r)
932{
933 return (r >> 2U) & 0x3fU;
934}
935static inline u32 gr_fecs_dmemc_blk_f(u32 v)
936{
937 return (v & 0xffU) << 8U;
938}
939static inline u32 gr_fecs_dmemc_aincw_f(u32 v)
940{
941 return (v & 0x1U) << 24U;
942}
943static inline u32 gr_fecs_dmemd_r(u32 i)
944{
945 return 0x004091c4U + i*8U;
946}
947static inline u32 gr_fecs_dmatrfbase_r(void)
948{
949 return 0x00409110U;
950}
951static inline u32 gr_fecs_dmatrfmoffs_r(void)
952{
953 return 0x00409114U;
954}
955static inline u32 gr_fecs_dmatrffboffs_r(void)
956{
957 return 0x0040911cU;
958}
959static inline u32 gr_fecs_dmatrfcmd_r(void)
960{
961 return 0x00409118U;
962}
963static inline u32 gr_fecs_dmatrfcmd_imem_f(u32 v)
964{
965 return (v & 0x1U) << 4U;
966}
967static inline u32 gr_fecs_dmatrfcmd_write_f(u32 v)
968{
969 return (v & 0x1U) << 5U;
970}
971static inline u32 gr_fecs_dmatrfcmd_size_f(u32 v)
972{
973 return (v & 0x7U) << 8U;
974}
975static inline u32 gr_fecs_dmatrfcmd_ctxdma_f(u32 v)
976{
977 return (v & 0x7U) << 12U;
978}
979static inline u32 gr_fecs_bootvec_r(void)
980{
981 return 0x00409104U;
982}
983static inline u32 gr_fecs_bootvec_vec_f(u32 v)
984{
985 return (v & 0xffffffffU) << 0U;
986}
987static inline u32 gr_fecs_falcon_hwcfg_r(void)
988{
989 return 0x00409108U;
990}
991static inline u32 gr_gpcs_gpccs_falcon_hwcfg_r(void)
992{
993 return 0x0041a108U;
994}
995static inline u32 gr_fecs_falcon_rm_r(void)
996{
997 return 0x00409084U;
998}
999static inline u32 gr_fecs_current_ctx_r(void)
1000{
1001 return 0x00409b00U;
1002}
1003static inline u32 gr_fecs_current_ctx_ptr_f(u32 v)
1004{
1005 return (v & 0xfffffffU) << 0U;
1006}
1007static inline u32 gr_fecs_current_ctx_ptr_v(u32 r)
1008{
1009 return (r >> 0U) & 0xfffffffU;
1010}
1011static inline u32 gr_fecs_current_ctx_target_s(void)
1012{
1013 return 2U;
1014}
1015static inline u32 gr_fecs_current_ctx_target_f(u32 v)
1016{
1017 return (v & 0x3U) << 28U;
1018}
1019static inline u32 gr_fecs_current_ctx_target_m(void)
1020{
1021 return 0x3U << 28U;
1022}
1023static inline u32 gr_fecs_current_ctx_target_v(u32 r)
1024{
1025 return (r >> 28U) & 0x3U;
1026}
1027static inline u32 gr_fecs_current_ctx_target_vid_mem_f(void)
1028{
1029 return 0x0U;
1030}
1031static inline u32 gr_fecs_current_ctx_target_sys_mem_coh_f(void)
1032{
1033 return 0x20000000U;
1034}
1035static inline u32 gr_fecs_current_ctx_target_sys_mem_ncoh_f(void)
1036{
1037 return 0x30000000U;
1038}
1039static inline u32 gr_fecs_current_ctx_valid_s(void)
1040{
1041 return 1U;
1042}
1043static inline u32 gr_fecs_current_ctx_valid_f(u32 v)
1044{
1045 return (v & 0x1U) << 31U;
1046}
1047static inline u32 gr_fecs_current_ctx_valid_m(void)
1048{
1049 return 0x1U << 31U;
1050}
1051static inline u32 gr_fecs_current_ctx_valid_v(u32 r)
1052{
1053 return (r >> 31U) & 0x1U;
1054}
1055static inline u32 gr_fecs_current_ctx_valid_false_f(void)
1056{
1057 return 0x0U;
1058}
1059static inline u32 gr_fecs_method_data_r(void)
1060{
1061 return 0x00409500U;
1062}
1063static inline u32 gr_fecs_method_push_r(void)
1064{
1065 return 0x00409504U;
1066}
1067static inline u32 gr_fecs_method_push_adr_f(u32 v)
1068{
1069 return (v & 0xfffU) << 0U;
1070}
1071static inline u32 gr_fecs_method_push_adr_bind_pointer_v(void)
1072{
1073 return 0x00000003U;
1074}
1075static inline u32 gr_fecs_method_push_adr_bind_pointer_f(void)
1076{
1077 return 0x3U;
1078}
1079static inline u32 gr_fecs_method_push_adr_discover_image_size_v(void)
1080{
1081 return 0x00000010U;
1082}
1083static inline u32 gr_fecs_method_push_adr_wfi_golden_save_v(void)
1084{
1085 return 0x00000009U;
1086}
1087static inline u32 gr_fecs_method_push_adr_restore_golden_v(void)
1088{
1089 return 0x00000015U;
1090}
1091static inline u32 gr_fecs_method_push_adr_discover_zcull_image_size_v(void)
1092{
1093 return 0x00000016U;
1094}
1095static inline u32 gr_fecs_method_push_adr_discover_pm_image_size_v(void)
1096{
1097 return 0x00000025U;
1098}
1099static inline u32 gr_fecs_method_push_adr_discover_reglist_image_size_v(void)
1100{
1101 return 0x00000030U;
1102}
1103static inline u32 gr_fecs_method_push_adr_set_reglist_bind_instance_v(void)
1104{
1105 return 0x00000031U;
1106}
1107static inline u32 gr_fecs_method_push_adr_set_reglist_virtual_address_v(void)
1108{
1109 return 0x00000032U;
1110}
1111static inline u32 gr_fecs_method_push_adr_stop_ctxsw_v(void)
1112{
1113 return 0x00000038U;
1114}
1115static inline u32 gr_fecs_method_push_adr_start_ctxsw_v(void)
1116{
1117 return 0x00000039U;
1118}
1119static inline u32 gr_fecs_method_push_adr_set_watchdog_timeout_f(void)
1120{
1121 return 0x21U;
1122}
1123static inline u32 gr_fecs_method_push_adr_discover_preemption_image_size_v(void)
1124{
1125 return 0x0000001aU;
1126}
1127static inline u32 gr_fecs_method_push_adr_halt_pipeline_v(void)
1128{
1129 return 0x00000004U;
1130}
1131static inline u32 gr_fecs_host_int_status_r(void)
1132{
1133 return 0x00409c18U;
1134}
1135static inline u32 gr_fecs_host_int_status_fault_during_ctxsw_f(u32 v)
1136{
1137 return (v & 0x1U) << 16U;
1138}
1139static inline u32 gr_fecs_host_int_status_umimp_firmware_method_f(u32 v)
1140{
1141 return (v & 0x1U) << 17U;
1142}
1143static inline u32 gr_fecs_host_int_status_umimp_illegal_method_f(u32 v)
1144{
1145 return (v & 0x1U) << 18U;
1146}
1147static inline u32 gr_fecs_host_int_clear_r(void)
1148{
1149 return 0x00409c20U;
1150}
1151static inline u32 gr_fecs_host_int_enable_r(void)
1152{
1153 return 0x00409c24U;
1154}
1155static inline u32 gr_fecs_host_int_enable_fault_during_ctxsw_enable_f(void)
1156{
1157 return 0x10000U;
1158}
1159static inline u32 gr_fecs_host_int_enable_umimp_firmware_method_enable_f(void)
1160{
1161 return 0x20000U;
1162}
1163static inline u32 gr_fecs_host_int_enable_umimp_illegal_method_enable_f(void)
1164{
1165 return 0x40000U;
1166}
1167static inline u32 gr_fecs_host_int_enable_watchdog_enable_f(void)
1168{
1169 return 0x80000U;
1170}
1171static inline u32 gr_fecs_ctxsw_reset_ctl_r(void)
1172{
1173 return 0x00409614U;
1174}
1175static inline u32 gr_fecs_ctxsw_reset_ctl_sys_halt_disabled_f(void)
1176{
1177 return 0x0U;
1178}
1179static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_halt_disabled_f(void)
1180{
1181 return 0x0U;
1182}
1183static inline u32 gr_fecs_ctxsw_reset_ctl_be_halt_disabled_f(void)
1184{
1185 return 0x0U;
1186}
1187static inline u32 gr_fecs_ctxsw_reset_ctl_sys_engine_reset_disabled_f(void)
1188{
1189 return 0x10U;
1190}
1191static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_engine_reset_disabled_f(void)
1192{
1193 return 0x20U;
1194}
1195static inline u32 gr_fecs_ctxsw_reset_ctl_be_engine_reset_disabled_f(void)
1196{
1197 return 0x40U;
1198}
1199static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_enabled_f(void)
1200{
1201 return 0x0U;
1202}
1203static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_disabled_f(void)
1204{
1205 return 0x100U;
1206}
1207static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_enabled_f(void)
1208{
1209 return 0x0U;
1210}
1211static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_disabled_f(void)
1212{
1213 return 0x200U;
1214}
1215static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_s(void)
1216{
1217 return 1U;
1218}
1219static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_f(u32 v)
1220{
1221 return (v & 0x1U) << 10U;
1222}
1223static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_m(void)
1224{
1225 return 0x1U << 10U;
1226}
1227static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_v(u32 r)
1228{
1229 return (r >> 10U) & 0x1U;
1230}
1231static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_enabled_f(void)
1232{
1233 return 0x0U;
1234}
1235static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_disabled_f(void)
1236{
1237 return 0x400U;
1238}
1239static inline u32 gr_fecs_ctx_state_store_major_rev_id_r(void)
1240{
1241 return 0x0040960cU;
1242}
1243static inline u32 gr_fecs_ctxsw_mailbox_r(u32 i)
1244{
1245 return 0x00409800U + i*4U;
1246}
1247static inline u32 gr_fecs_ctxsw_mailbox__size_1_v(void)
1248{
1249 return 0x00000010U;
1250}
1251static inline u32 gr_fecs_ctxsw_mailbox_value_f(u32 v)
1252{
1253 return (v & 0xffffffffU) << 0U;
1254}
1255static inline u32 gr_fecs_ctxsw_mailbox_value_pass_v(void)
1256{
1257 return 0x00000001U;
1258}
1259static inline u32 gr_fecs_ctxsw_mailbox_value_fail_v(void)
1260{
1261 return 0x00000002U;
1262}
1263static inline u32 gr_fecs_ctxsw_mailbox_set_r(u32 i)
1264{
1265 return 0x004098c0U + i*4U;
1266}
1267static inline u32 gr_fecs_ctxsw_mailbox_set_value_f(u32 v)
1268{
1269 return (v & 0xffffffffU) << 0U;
1270}
1271static inline u32 gr_fecs_ctxsw_mailbox_clear_r(u32 i)
1272{
1273 return 0x00409840U + i*4U;
1274}
1275static inline u32 gr_fecs_ctxsw_mailbox_clear_value_f(u32 v)
1276{
1277 return (v & 0xffffffffU) << 0U;
1278}
1279static inline u32 gr_fecs_fs_r(void)
1280{
1281 return 0x00409604U;
1282}
1283static inline u32 gr_fecs_fs_num_available_gpcs_s(void)
1284{
1285 return 5U;
1286}
1287static inline u32 gr_fecs_fs_num_available_gpcs_f(u32 v)
1288{
1289 return (v & 0x1fU) << 0U;
1290}
1291static inline u32 gr_fecs_fs_num_available_gpcs_m(void)
1292{
1293 return 0x1fU << 0U;
1294}
1295static inline u32 gr_fecs_fs_num_available_gpcs_v(u32 r)
1296{
1297 return (r >> 0U) & 0x1fU;
1298}
1299static inline u32 gr_fecs_fs_num_available_fbps_s(void)
1300{
1301 return 5U;
1302}
1303static inline u32 gr_fecs_fs_num_available_fbps_f(u32 v)
1304{
1305 return (v & 0x1fU) << 16U;
1306}
1307static inline u32 gr_fecs_fs_num_available_fbps_m(void)
1308{
1309 return 0x1fU << 16U;
1310}
1311static inline u32 gr_fecs_fs_num_available_fbps_v(u32 r)
1312{
1313 return (r >> 16U) & 0x1fU;
1314}
1315static inline u32 gr_fecs_cfg_r(void)
1316{
1317 return 0x00409620U;
1318}
1319static inline u32 gr_fecs_cfg_imem_sz_v(u32 r)
1320{
1321 return (r >> 0U) & 0xffU;
1322}
1323static inline u32 gr_fecs_rc_lanes_r(void)
1324{
1325 return 0x00409880U;
1326}
1327static inline u32 gr_fecs_rc_lanes_num_chains_s(void)
1328{
1329 return 6U;
1330}
1331static inline u32 gr_fecs_rc_lanes_num_chains_f(u32 v)
1332{
1333 return (v & 0x3fU) << 0U;
1334}
1335static inline u32 gr_fecs_rc_lanes_num_chains_m(void)
1336{
1337 return 0x3fU << 0U;
1338}
1339static inline u32 gr_fecs_rc_lanes_num_chains_v(u32 r)
1340{
1341 return (r >> 0U) & 0x3fU;
1342}
1343static inline u32 gr_fecs_ctxsw_status_1_r(void)
1344{
1345 return 0x00409400U;
1346}
1347static inline u32 gr_fecs_ctxsw_status_1_arb_busy_s(void)
1348{
1349 return 1U;
1350}
1351static inline u32 gr_fecs_ctxsw_status_1_arb_busy_f(u32 v)
1352{
1353 return (v & 0x1U) << 12U;
1354}
1355static inline u32 gr_fecs_ctxsw_status_1_arb_busy_m(void)
1356{
1357 return 0x1U << 12U;
1358}
1359static inline u32 gr_fecs_ctxsw_status_1_arb_busy_v(u32 r)
1360{
1361 return (r >> 12U) & 0x1U;
1362}
1363static inline u32 gr_fecs_arb_ctx_adr_r(void)
1364{
1365 return 0x00409a24U;
1366}
1367static inline u32 gr_fecs_new_ctx_r(void)
1368{
1369 return 0x00409b04U;
1370}
1371static inline u32 gr_fecs_new_ctx_ptr_s(void)
1372{
1373 return 28U;
1374}
1375static inline u32 gr_fecs_new_ctx_ptr_f(u32 v)
1376{
1377 return (v & 0xfffffffU) << 0U;
1378}
1379static inline u32 gr_fecs_new_ctx_ptr_m(void)
1380{
1381 return 0xfffffffU << 0U;
1382}
1383static inline u32 gr_fecs_new_ctx_ptr_v(u32 r)
1384{
1385 return (r >> 0U) & 0xfffffffU;
1386}
1387static inline u32 gr_fecs_new_ctx_target_s(void)
1388{
1389 return 2U;
1390}
1391static inline u32 gr_fecs_new_ctx_target_f(u32 v)
1392{
1393 return (v & 0x3U) << 28U;
1394}
1395static inline u32 gr_fecs_new_ctx_target_m(void)
1396{
1397 return 0x3U << 28U;
1398}
1399static inline u32 gr_fecs_new_ctx_target_v(u32 r)
1400{
1401 return (r >> 28U) & 0x3U;
1402}
1403static inline u32 gr_fecs_new_ctx_target_vid_mem_f(void)
1404{
1405 return 0x0U;
1406}
1407static inline u32 gr_fecs_new_ctx_target_sys_mem_ncoh_f(void)
1408{
1409 return 0x30000000U;
1410}
1411static inline u32 gr_fecs_new_ctx_target_sys_mem_coh_f(void)
1412{
1413 return 0x20000000U;
1414}
1415static inline u32 gr_fecs_new_ctx_valid_s(void)
1416{
1417 return 1U;
1418}
1419static inline u32 gr_fecs_new_ctx_valid_f(u32 v)
1420{
1421 return (v & 0x1U) << 31U;
1422}
1423static inline u32 gr_fecs_new_ctx_valid_m(void)
1424{
1425 return 0x1U << 31U;
1426}
1427static inline u32 gr_fecs_new_ctx_valid_v(u32 r)
1428{
1429 return (r >> 31U) & 0x1U;
1430}
1431static inline u32 gr_fecs_arb_ctx_ptr_r(void)
1432{
1433 return 0x00409a0cU;
1434}
1435static inline u32 gr_fecs_arb_ctx_ptr_ptr_s(void)
1436{
1437 return 28U;
1438}
1439static inline u32 gr_fecs_arb_ctx_ptr_ptr_f(u32 v)
1440{
1441 return (v & 0xfffffffU) << 0U;
1442}
1443static inline u32 gr_fecs_arb_ctx_ptr_ptr_m(void)
1444{
1445 return 0xfffffffU << 0U;
1446}
1447static inline u32 gr_fecs_arb_ctx_ptr_ptr_v(u32 r)
1448{
1449 return (r >> 0U) & 0xfffffffU;
1450}
1451static inline u32 gr_fecs_arb_ctx_ptr_target_s(void)
1452{
1453 return 2U;
1454}
1455static inline u32 gr_fecs_arb_ctx_ptr_target_f(u32 v)
1456{
1457 return (v & 0x3U) << 28U;
1458}
1459static inline u32 gr_fecs_arb_ctx_ptr_target_m(void)
1460{
1461 return 0x3U << 28U;
1462}
1463static inline u32 gr_fecs_arb_ctx_ptr_target_v(u32 r)
1464{
1465 return (r >> 28U) & 0x3U;
1466}
1467static inline u32 gr_fecs_arb_ctx_ptr_target_vid_mem_f(void)
1468{
1469 return 0x0U;
1470}
1471static inline u32 gr_fecs_arb_ctx_ptr_target_sys_mem_ncoh_f(void)
1472{
1473 return 0x30000000U;
1474}
1475static inline u32 gr_fecs_arb_ctx_ptr_target_sys_mem_coh_f(void)
1476{
1477 return 0x20000000U;
1478}
1479static inline u32 gr_fecs_arb_ctx_cmd_r(void)
1480{
1481 return 0x00409a10U;
1482}
1483static inline u32 gr_fecs_arb_ctx_cmd_cmd_s(void)
1484{
1485 return 5U;
1486}
1487static inline u32 gr_fecs_arb_ctx_cmd_cmd_f(u32 v)
1488{
1489 return (v & 0x1fU) << 0U;
1490}
1491static inline u32 gr_fecs_arb_ctx_cmd_cmd_m(void)
1492{
1493 return 0x1fU << 0U;
1494}
1495static inline u32 gr_fecs_arb_ctx_cmd_cmd_v(u32 r)
1496{
1497 return (r >> 0U) & 0x1fU;
1498}
1499static inline u32 gr_fecs_ctxsw_status_fe_0_r(void)
1500{
1501 return 0x00409c00U;
1502}
1503static inline u32 gr_gpc0_gpccs_ctxsw_status_gpc_0_r(void)
1504{
1505 return 0x00502c04U;
1506}
1507static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void)
1508{
1509 return 0x00502400U;
1510}
1511static inline u32 gr_fecs_ctxsw_idlestate_r(void)
1512{
1513 return 0x00409420U;
1514}
1515static inline u32 gr_fecs_feature_override_ecc_r(void)
1516{
1517 return 0x00409658U;
1518}
1519static inline u32 gr_gpc0_gpccs_ctxsw_idlestate_r(void)
1520{
1521 return 0x00502420U;
1522}
1523static inline u32 gr_rstr2d_gpc_map0_r(void)
1524{
1525 return 0x0040780cU;
1526}
1527static inline u32 gr_rstr2d_gpc_map1_r(void)
1528{
1529 return 0x00407810U;
1530}
1531static inline u32 gr_rstr2d_gpc_map2_r(void)
1532{
1533 return 0x00407814U;
1534}
1535static inline u32 gr_rstr2d_gpc_map3_r(void)
1536{
1537 return 0x00407818U;
1538}
1539static inline u32 gr_rstr2d_gpc_map4_r(void)
1540{
1541 return 0x0040781cU;
1542}
1543static inline u32 gr_rstr2d_gpc_map5_r(void)
1544{
1545 return 0x00407820U;
1546}
1547static inline u32 gr_rstr2d_map_table_cfg_r(void)
1548{
1549 return 0x004078bcU;
1550}
1551static inline u32 gr_rstr2d_map_table_cfg_row_offset_f(u32 v)
1552{
1553 return (v & 0xffU) << 0U;
1554}
1555static inline u32 gr_rstr2d_map_table_cfg_num_entries_f(u32 v)
1556{
1557 return (v & 0xffU) << 8U;
1558}
1559static inline u32 gr_pd_hww_esr_r(void)
1560{
1561 return 0x00406018U;
1562}
1563static inline u32 gr_pd_hww_esr_reset_active_f(void)
1564{
1565 return 0x40000000U;
1566}
1567static inline u32 gr_pd_hww_esr_en_enable_f(void)
1568{
1569 return 0x80000000U;
1570}
1571static inline u32 gr_pd_num_tpc_per_gpc_r(u32 i)
1572{
1573 return 0x00406028U + i*4U;
1574}
1575static inline u32 gr_pd_num_tpc_per_gpc__size_1_v(void)
1576{
1577 return 0x00000004U;
1578}
1579static inline u32 gr_pd_num_tpc_per_gpc_count0_f(u32 v)
1580{
1581 return (v & 0xfU) << 0U;
1582}
1583static inline u32 gr_pd_num_tpc_per_gpc_count1_f(u32 v)
1584{
1585 return (v & 0xfU) << 4U;
1586}
1587static inline u32 gr_pd_num_tpc_per_gpc_count2_f(u32 v)
1588{
1589 return (v & 0xfU) << 8U;
1590}
1591static inline u32 gr_pd_num_tpc_per_gpc_count3_f(u32 v)
1592{
1593 return (v & 0xfU) << 12U;
1594}
1595static inline u32 gr_pd_num_tpc_per_gpc_count4_f(u32 v)
1596{
1597 return (v & 0xfU) << 16U;
1598}
1599static inline u32 gr_pd_num_tpc_per_gpc_count5_f(u32 v)
1600{
1601 return (v & 0xfU) << 20U;
1602}
1603static inline u32 gr_pd_num_tpc_per_gpc_count6_f(u32 v)
1604{
1605 return (v & 0xfU) << 24U;
1606}
1607static inline u32 gr_pd_num_tpc_per_gpc_count7_f(u32 v)
1608{
1609 return (v & 0xfU) << 28U;
1610}
1611static inline u32 gr_pd_ab_dist_cfg0_r(void)
1612{
1613 return 0x004064c0U;
1614}
1615static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_en_f(void)
1616{
1617 return 0x80000000U;
1618}
1619static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_dis_f(void)
1620{
1621 return 0x0U;
1622}
1623static inline u32 gr_pd_ab_dist_cfg1_r(void)
1624{
1625 return 0x004064c4U;
1626}
1627static inline u32 gr_pd_ab_dist_cfg1_max_batches_init_f(void)
1628{
1629 return 0xffffU;
1630}
1631static inline u32 gr_pd_ab_dist_cfg1_max_output_f(u32 v)
1632{
1633 return (v & 0xffffU) << 16U;
1634}
1635static inline u32 gr_pd_ab_dist_cfg1_max_output_granularity_v(void)
1636{
1637 return 0x00000080U;
1638}
1639static inline u32 gr_pd_ab_dist_cfg2_r(void)
1640{
1641 return 0x004064c8U;
1642}
1643static inline u32 gr_pd_ab_dist_cfg2_token_limit_f(u32 v)
1644{
1645 return (v & 0x1fffU) << 0U;
1646}
1647static inline u32 gr_pd_ab_dist_cfg2_token_limit_init_v(void)
1648{
1649 return 0x00000900U;
1650}
1651static inline u32 gr_pd_ab_dist_cfg2_state_limit_f(u32 v)
1652{
1653 return (v & 0x1fffU) << 16U;
1654}
1655static inline u32 gr_pd_ab_dist_cfg2_state_limit_scc_bundle_granularity_v(void)
1656{
1657 return 0x00000020U;
1658}
1659static inline u32 gr_pd_ab_dist_cfg2_state_limit_min_gpm_fifo_depths_v(void)
1660{
1661 return 0x00000900U;
1662}
1663static inline u32 gr_pd_dist_skip_table_r(u32 i)
1664{
1665 return 0x004064d0U + i*4U;
1666}
1667static inline u32 gr_pd_dist_skip_table__size_1_v(void)
1668{
1669 return 0x00000008U;
1670}
1671static inline u32 gr_pd_dist_skip_table_gpc_4n0_mask_f(u32 v)
1672{
1673 return (v & 0xffU) << 0U;
1674}
1675static inline u32 gr_pd_dist_skip_table_gpc_4n1_mask_f(u32 v)
1676{
1677 return (v & 0xffU) << 8U;
1678}
1679static inline u32 gr_pd_dist_skip_table_gpc_4n2_mask_f(u32 v)
1680{
1681 return (v & 0xffU) << 16U;
1682}
1683static inline u32 gr_pd_dist_skip_table_gpc_4n3_mask_f(u32 v)
1684{
1685 return (v & 0xffU) << 24U;
1686}
1687static inline u32 gr_ds_debug_r(void)
1688{
1689 return 0x00405800U;
1690}
1691static inline u32 gr_ds_debug_timeslice_mode_disable_f(void)
1692{
1693 return 0x0U;
1694}
1695static inline u32 gr_ds_debug_timeslice_mode_enable_f(void)
1696{
1697 return 0x8000000U;
1698}
1699static inline u32 gr_ds_zbc_color_r_r(void)
1700{
1701 return 0x00405804U;
1702}
1703static inline u32 gr_ds_zbc_color_r_val_f(u32 v)
1704{
1705 return (v & 0xffffffffU) << 0U;
1706}
1707static inline u32 gr_ds_zbc_color_g_r(void)
1708{
1709 return 0x00405808U;
1710}
1711static inline u32 gr_ds_zbc_color_g_val_f(u32 v)
1712{
1713 return (v & 0xffffffffU) << 0U;
1714}
1715static inline u32 gr_ds_zbc_color_b_r(void)
1716{
1717 return 0x0040580cU;
1718}
1719static inline u32 gr_ds_zbc_color_b_val_f(u32 v)
1720{
1721 return (v & 0xffffffffU) << 0U;
1722}
1723static inline u32 gr_ds_zbc_color_a_r(void)
1724{
1725 return 0x00405810U;
1726}
1727static inline u32 gr_ds_zbc_color_a_val_f(u32 v)
1728{
1729 return (v & 0xffffffffU) << 0U;
1730}
1731static inline u32 gr_ds_zbc_color_fmt_r(void)
1732{
1733 return 0x00405814U;
1734}
1735static inline u32 gr_ds_zbc_color_fmt_val_f(u32 v)
1736{
1737 return (v & 0x7fU) << 0U;
1738}
1739static inline u32 gr_ds_zbc_color_fmt_val_invalid_f(void)
1740{
1741 return 0x0U;
1742}
1743static inline u32 gr_ds_zbc_color_fmt_val_zero_v(void)
1744{
1745 return 0x00000001U;
1746}
1747static inline u32 gr_ds_zbc_color_fmt_val_unorm_one_v(void)
1748{
1749 return 0x00000002U;
1750}
1751static inline u32 gr_ds_zbc_color_fmt_val_rf32_gf32_bf32_af32_v(void)
1752{
1753 return 0x00000004U;
1754}
1755static inline u32 gr_ds_zbc_color_fmt_val_a8_b8_g8_r8_v(void)
1756{
1757 return 0x00000028U;
1758}
1759static inline u32 gr_ds_zbc_z_r(void)
1760{
1761 return 0x00405818U;
1762}
1763static inline u32 gr_ds_zbc_z_val_s(void)
1764{
1765 return 32U;
1766}
1767static inline u32 gr_ds_zbc_z_val_f(u32 v)
1768{
1769 return (v & 0xffffffffU) << 0U;
1770}
1771static inline u32 gr_ds_zbc_z_val_m(void)
1772{
1773 return 0xffffffffU << 0U;
1774}
1775static inline u32 gr_ds_zbc_z_val_v(u32 r)
1776{
1777 return (r >> 0U) & 0xffffffffU;
1778}
1779static inline u32 gr_ds_zbc_z_val__init_v(void)
1780{
1781 return 0x00000000U;
1782}
1783static inline u32 gr_ds_zbc_z_val__init_f(void)
1784{
1785 return 0x0U;
1786}
1787static inline u32 gr_ds_zbc_z_fmt_r(void)
1788{
1789 return 0x0040581cU;
1790}
1791static inline u32 gr_ds_zbc_z_fmt_val_f(u32 v)
1792{
1793 return (v & 0x1U) << 0U;
1794}
1795static inline u32 gr_ds_zbc_z_fmt_val_invalid_f(void)
1796{
1797 return 0x0U;
1798}
1799static inline u32 gr_ds_zbc_z_fmt_val_fp32_v(void)
1800{
1801 return 0x00000001U;
1802}
1803static inline u32 gr_ds_zbc_tbl_index_r(void)
1804{
1805 return 0x00405820U;
1806}
1807static inline u32 gr_ds_zbc_tbl_index_val_f(u32 v)
1808{
1809 return (v & 0xfU) << 0U;
1810}
1811static inline u32 gr_ds_zbc_tbl_ld_r(void)
1812{
1813 return 0x00405824U;
1814}
1815static inline u32 gr_ds_zbc_tbl_ld_select_c_f(void)
1816{
1817 return 0x0U;
1818}
1819static inline u32 gr_ds_zbc_tbl_ld_select_z_f(void)
1820{
1821 return 0x1U;
1822}
1823static inline u32 gr_ds_zbc_tbl_ld_action_write_f(void)
1824{
1825 return 0x0U;
1826}
1827static inline u32 gr_ds_zbc_tbl_ld_trigger_active_f(void)
1828{
1829 return 0x4U;
1830}
1831static inline u32 gr_ds_tga_constraintlogic_beta_r(void)
1832{
1833 return 0x00405830U;
1834}
1835static inline u32 gr_ds_tga_constraintlogic_beta_cbsize_f(u32 v)
1836{
1837 return (v & 0x3fffffU) << 0U;
1838}
1839static inline u32 gr_ds_tga_constraintlogic_alpha_r(void)
1840{
1841 return 0x0040585cU;
1842}
1843static inline u32 gr_ds_tga_constraintlogic_alpha_cbsize_f(u32 v)
1844{
1845 return (v & 0xffffU) << 0U;
1846}
1847static inline u32 gr_ds_hww_esr_r(void)
1848{
1849 return 0x00405840U;
1850}
1851static inline u32 gr_ds_hww_esr_reset_s(void)
1852{
1853 return 1U;
1854}
1855static inline u32 gr_ds_hww_esr_reset_f(u32 v)
1856{
1857 return (v & 0x1U) << 30U;
1858}
1859static inline u32 gr_ds_hww_esr_reset_m(void)
1860{
1861 return 0x1U << 30U;
1862}
1863static inline u32 gr_ds_hww_esr_reset_v(u32 r)
1864{
1865 return (r >> 30U) & 0x1U;
1866}
1867static inline u32 gr_ds_hww_esr_reset_task_v(void)
1868{
1869 return 0x00000001U;
1870}
1871static inline u32 gr_ds_hww_esr_reset_task_f(void)
1872{
1873 return 0x40000000U;
1874}
1875static inline u32 gr_ds_hww_esr_en_enabled_f(void)
1876{
1877 return 0x80000000U;
1878}
1879static inline u32 gr_ds_hww_esr_2_r(void)
1880{
1881 return 0x00405848U;
1882}
1883static inline u32 gr_ds_hww_esr_2_reset_s(void)
1884{
1885 return 1U;
1886}
1887static inline u32 gr_ds_hww_esr_2_reset_f(u32 v)
1888{
1889 return (v & 0x1U) << 30U;
1890}
1891static inline u32 gr_ds_hww_esr_2_reset_m(void)
1892{
1893 return 0x1U << 30U;
1894}
1895static inline u32 gr_ds_hww_esr_2_reset_v(u32 r)
1896{
1897 return (r >> 30U) & 0x1U;
1898}
1899static inline u32 gr_ds_hww_esr_2_reset_task_v(void)
1900{
1901 return 0x00000001U;
1902}
1903static inline u32 gr_ds_hww_esr_2_reset_task_f(void)
1904{
1905 return 0x40000000U;
1906}
1907static inline u32 gr_ds_hww_esr_2_en_enabled_f(void)
1908{
1909 return 0x80000000U;
1910}
1911static inline u32 gr_ds_hww_report_mask_r(void)
1912{
1913 return 0x00405844U;
1914}
1915static inline u32 gr_ds_hww_report_mask_sph0_err_report_f(void)
1916{
1917 return 0x1U;
1918}
1919static inline u32 gr_ds_hww_report_mask_sph1_err_report_f(void)
1920{
1921 return 0x2U;
1922}
1923static inline u32 gr_ds_hww_report_mask_sph2_err_report_f(void)
1924{
1925 return 0x4U;
1926}
1927static inline u32 gr_ds_hww_report_mask_sph3_err_report_f(void)
1928{
1929 return 0x8U;
1930}
1931static inline u32 gr_ds_hww_report_mask_sph4_err_report_f(void)
1932{
1933 return 0x10U;
1934}
1935static inline u32 gr_ds_hww_report_mask_sph5_err_report_f(void)
1936{
1937 return 0x20U;
1938}
1939static inline u32 gr_ds_hww_report_mask_sph6_err_report_f(void)
1940{
1941 return 0x40U;
1942}
1943static inline u32 gr_ds_hww_report_mask_sph7_err_report_f(void)
1944{
1945 return 0x80U;
1946}
1947static inline u32 gr_ds_hww_report_mask_sph8_err_report_f(void)
1948{
1949 return 0x100U;
1950}
1951static inline u32 gr_ds_hww_report_mask_sph9_err_report_f(void)
1952{
1953 return 0x200U;
1954}
1955static inline u32 gr_ds_hww_report_mask_sph10_err_report_f(void)
1956{
1957 return 0x400U;
1958}
1959static inline u32 gr_ds_hww_report_mask_sph11_err_report_f(void)
1960{
1961 return 0x800U;
1962}
1963static inline u32 gr_ds_hww_report_mask_sph12_err_report_f(void)
1964{
1965 return 0x1000U;
1966}
1967static inline u32 gr_ds_hww_report_mask_sph13_err_report_f(void)
1968{
1969 return 0x2000U;
1970}
1971static inline u32 gr_ds_hww_report_mask_sph14_err_report_f(void)
1972{
1973 return 0x4000U;
1974}
1975static inline u32 gr_ds_hww_report_mask_sph15_err_report_f(void)
1976{
1977 return 0x8000U;
1978}
1979static inline u32 gr_ds_hww_report_mask_sph16_err_report_f(void)
1980{
1981 return 0x10000U;
1982}
1983static inline u32 gr_ds_hww_report_mask_sph17_err_report_f(void)
1984{
1985 return 0x20000U;
1986}
1987static inline u32 gr_ds_hww_report_mask_sph18_err_report_f(void)
1988{
1989 return 0x40000U;
1990}
1991static inline u32 gr_ds_hww_report_mask_sph19_err_report_f(void)
1992{
1993 return 0x80000U;
1994}
1995static inline u32 gr_ds_hww_report_mask_sph20_err_report_f(void)
1996{
1997 return 0x100000U;
1998}
1999static inline u32 gr_ds_hww_report_mask_sph21_err_report_f(void)
2000{
2001 return 0x200000U;
2002}
2003static inline u32 gr_ds_hww_report_mask_sph22_err_report_f(void)
2004{
2005 return 0x400000U;
2006}
2007static inline u32 gr_ds_hww_report_mask_sph23_err_report_f(void)
2008{
2009 return 0x800000U;
2010}
2011static inline u32 gr_ds_hww_report_mask_2_r(void)
2012{
2013 return 0x0040584cU;
2014}
2015static inline u32 gr_ds_hww_report_mask_2_sph24_err_report_f(void)
2016{
2017 return 0x1U;
2018}
2019static inline u32 gr_ds_num_tpc_per_gpc_r(u32 i)
2020{
2021 return 0x00405870U + i*4U;
2022}
2023static inline u32 gr_scc_bundle_cb_base_r(void)
2024{
2025 return 0x00408004U;
2026}
2027static inline u32 gr_scc_bundle_cb_base_addr_39_8_f(u32 v)
2028{
2029 return (v & 0xffffffffU) << 0U;
2030}
2031static inline u32 gr_scc_bundle_cb_base_addr_39_8_align_bits_v(void)
2032{
2033 return 0x00000008U;
2034}
2035static inline u32 gr_scc_bundle_cb_size_r(void)
2036{
2037 return 0x00408008U;
2038}
2039static inline u32 gr_scc_bundle_cb_size_div_256b_f(u32 v)
2040{
2041 return (v & 0x7ffU) << 0U;
2042}
2043static inline u32 gr_scc_bundle_cb_size_div_256b__prod_v(void)
2044{
2045 return 0x00000030U;
2046}
2047static inline u32 gr_scc_bundle_cb_size_div_256b_byte_granularity_v(void)
2048{
2049 return 0x00000100U;
2050}
2051static inline u32 gr_scc_bundle_cb_size_valid_false_v(void)
2052{
2053 return 0x00000000U;
2054}
2055static inline u32 gr_scc_bundle_cb_size_valid_false_f(void)
2056{
2057 return 0x0U;
2058}
2059static inline u32 gr_scc_bundle_cb_size_valid_true_f(void)
2060{
2061 return 0x80000000U;
2062}
2063static inline u32 gr_scc_pagepool_base_r(void)
2064{
2065 return 0x0040800cU;
2066}
2067static inline u32 gr_scc_pagepool_base_addr_39_8_f(u32 v)
2068{
2069 return (v & 0xffffffffU) << 0U;
2070}
2071static inline u32 gr_scc_pagepool_base_addr_39_8_align_bits_v(void)
2072{
2073 return 0x00000008U;
2074}
2075static inline u32 gr_scc_pagepool_r(void)
2076{
2077 return 0x00408010U;
2078}
2079static inline u32 gr_scc_pagepool_total_pages_f(u32 v)
2080{
2081 return (v & 0x3ffU) << 0U;
2082}
2083static inline u32 gr_scc_pagepool_total_pages_hwmax_v(void)
2084{
2085 return 0x00000000U;
2086}
2087static inline u32 gr_scc_pagepool_total_pages_hwmax_value_v(void)
2088{
2089 return 0x00000200U;
2090}
2091static inline u32 gr_scc_pagepool_total_pages_byte_granularity_v(void)
2092{
2093 return 0x00000100U;
2094}
2095static inline u32 gr_scc_pagepool_max_valid_pages_s(void)
2096{
2097 return 10U;
2098}
2099static inline u32 gr_scc_pagepool_max_valid_pages_f(u32 v)
2100{
2101 return (v & 0x3ffU) << 10U;
2102}
2103static inline u32 gr_scc_pagepool_max_valid_pages_m(void)
2104{
2105 return 0x3ffU << 10U;
2106}
2107static inline u32 gr_scc_pagepool_max_valid_pages_v(u32 r)
2108{
2109 return (r >> 10U) & 0x3ffU;
2110}
2111static inline u32 gr_scc_pagepool_valid_true_f(void)
2112{
2113 return 0x80000000U;
2114}
2115static inline u32 gr_scc_init_r(void)
2116{
2117 return 0x0040802cU;
2118}
2119static inline u32 gr_scc_init_ram_trigger_f(void)
2120{
2121 return 0x1U;
2122}
2123static inline u32 gr_scc_hww_esr_r(void)
2124{
2125 return 0x00408030U;
2126}
2127static inline u32 gr_scc_hww_esr_reset_active_f(void)
2128{
2129 return 0x40000000U;
2130}
2131static inline u32 gr_scc_hww_esr_en_enable_f(void)
2132{
2133 return 0x80000000U;
2134}
2135static inline u32 gr_sked_hww_esr_r(void)
2136{
2137 return 0x00407020U;
2138}
2139static inline u32 gr_sked_hww_esr_reset_active_f(void)
2140{
2141 return 0x40000000U;
2142}
2143static inline u32 gr_cwd_fs_r(void)
2144{
2145 return 0x00405b00U;
2146}
2147static inline u32 gr_cwd_fs_num_gpcs_f(u32 v)
2148{
2149 return (v & 0xffU) << 0U;
2150}
2151static inline u32 gr_cwd_fs_num_tpcs_f(u32 v)
2152{
2153 return (v & 0xffU) << 8U;
2154}
2155static inline u32 gr_cwd_gpc_tpc_id_r(u32 i)
2156{
2157 return 0x00405b60U + i*4U;
2158}
2159static inline u32 gr_cwd_gpc_tpc_id_tpc0_s(void)
2160{
2161 return 4U;
2162}
2163static inline u32 gr_cwd_gpc_tpc_id_tpc0_f(u32 v)
2164{
2165 return (v & 0xfU) << 0U;
2166}
2167static inline u32 gr_cwd_gpc_tpc_id_gpc0_s(void)
2168{
2169 return 4U;
2170}
2171static inline u32 gr_cwd_gpc_tpc_id_gpc0_f(u32 v)
2172{
2173 return (v & 0xfU) << 4U;
2174}
2175static inline u32 gr_cwd_gpc_tpc_id_tpc1_f(u32 v)
2176{
2177 return (v & 0xfU) << 8U;
2178}
2179static inline u32 gr_cwd_sm_id_r(u32 i)
2180{
2181 return 0x00405ba0U + i*4U;
2182}
2183static inline u32 gr_cwd_sm_id__size_1_v(void)
2184{
2185 return 0x00000010U;
2186}
2187static inline u32 gr_cwd_sm_id_tpc0_f(u32 v)
2188{
2189 return (v & 0xffU) << 0U;
2190}
2191static inline u32 gr_cwd_sm_id_tpc1_f(u32 v)
2192{
2193 return (v & 0xffU) << 8U;
2194}
2195static inline u32 gr_gpc0_fs_gpc_r(void)
2196{
2197 return 0x00502608U;
2198}
2199static inline u32 gr_gpc0_fs_gpc_num_available_tpcs_v(u32 r)
2200{
2201 return (r >> 0U) & 0x1fU;
2202}
2203static inline u32 gr_gpc0_fs_gpc_num_available_zculls_v(u32 r)
2204{
2205 return (r >> 16U) & 0x1fU;
2206}
2207static inline u32 gr_gpc0_cfg_r(void)
2208{
2209 return 0x00502620U;
2210}
2211static inline u32 gr_gpc0_cfg_imem_sz_v(u32 r)
2212{
2213 return (r >> 0U) & 0xffU;
2214}
2215static inline u32 gr_gpccs_rc_lanes_r(void)
2216{
2217 return 0x00502880U;
2218}
2219static inline u32 gr_gpccs_rc_lanes_num_chains_s(void)
2220{
2221 return 6U;
2222}
2223static inline u32 gr_gpccs_rc_lanes_num_chains_f(u32 v)
2224{
2225 return (v & 0x3fU) << 0U;
2226}
2227static inline u32 gr_gpccs_rc_lanes_num_chains_m(void)
2228{
2229 return 0x3fU << 0U;
2230}
2231static inline u32 gr_gpccs_rc_lanes_num_chains_v(u32 r)
2232{
2233 return (r >> 0U) & 0x3fU;
2234}
2235static inline u32 gr_gpccs_rc_lane_size_r(void)
2236{
2237 return 0x00502910U;
2238}
2239static inline u32 gr_gpccs_rc_lane_size_v_s(void)
2240{
2241 return 24U;
2242}
2243static inline u32 gr_gpccs_rc_lane_size_v_f(u32 v)
2244{
2245 return (v & 0xffffffU) << 0U;
2246}
2247static inline u32 gr_gpccs_rc_lane_size_v_m(void)
2248{
2249 return 0xffffffU << 0U;
2250}
2251static inline u32 gr_gpccs_rc_lane_size_v_v(u32 r)
2252{
2253 return (r >> 0U) & 0xffffffU;
2254}
2255static inline u32 gr_gpccs_rc_lane_size_v_0_v(void)
2256{
2257 return 0x00000000U;
2258}
2259static inline u32 gr_gpccs_rc_lane_size_v_0_f(void)
2260{
2261 return 0x0U;
2262}
2263static inline u32 gr_gpc0_zcull_fs_r(void)
2264{
2265 return 0x00500910U;
2266}
2267static inline u32 gr_gpc0_zcull_fs_num_sms_f(u32 v)
2268{
2269 return (v & 0x1ffU) << 0U;
2270}
2271static inline u32 gr_gpc0_zcull_fs_num_active_banks_f(u32 v)
2272{
2273 return (v & 0xfU) << 16U;
2274}
2275static inline u32 gr_gpc0_zcull_ram_addr_r(void)
2276{
2277 return 0x00500914U;
2278}
2279static inline u32 gr_gpc0_zcull_ram_addr_tiles_per_hypertile_row_per_gpc_f(u32 v)
2280{
2281 return (v & 0xfU) << 0U;
2282}
2283static inline u32 gr_gpc0_zcull_ram_addr_row_offset_f(u32 v)
2284{
2285 return (v & 0xfU) << 8U;
2286}
2287static inline u32 gr_gpc0_zcull_sm_num_rcp_r(void)
2288{
2289 return 0x00500918U;
2290}
2291static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative_f(u32 v)
2292{
2293 return (v & 0xffffffU) << 0U;
2294}
2295static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative__max_v(void)
2296{
2297 return 0x00800000U;
2298}
2299static inline u32 gr_gpc0_zcull_total_ram_size_r(void)
2300{
2301 return 0x00500920U;
2302}
2303static inline u32 gr_gpc0_zcull_total_ram_size_num_aliquots_f(u32 v)
2304{
2305 return (v & 0xffffU) << 0U;
2306}
2307static inline u32 gr_gpc0_zcull_zcsize_r(u32 i)
2308{
2309 return 0x00500a04U + i*32U;
2310}
2311static inline u32 gr_gpc0_zcull_zcsize_height_subregion__multiple_v(void)
2312{
2313 return 0x00000040U;
2314}
2315static inline u32 gr_gpc0_zcull_zcsize_width_subregion__multiple_v(void)
2316{
2317 return 0x00000010U;
2318}
2319static inline u32 gr_gpc0_gpm_pd_sm_id_r(u32 i)
2320{
2321 return 0x00500c10U + i*4U;
2322}
2323static inline u32 gr_gpc0_gpm_pd_sm_id_id_f(u32 v)
2324{
2325 return (v & 0xffU) << 0U;
2326}
2327static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_r(u32 i)
2328{
2329 return 0x00500c30U + i*4U;
2330}
2331static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_mask_v(u32 r)
2332{
2333 return (r >> 0U) & 0xffU;
2334}
2335static inline u32 gr_gpc0_tpc0_pe_cfg_smid_r(void)
2336{
2337 return 0x00504088U;
2338}
2339static inline u32 gr_gpc0_tpc0_pe_cfg_smid_value_f(u32 v)
2340{
2341 return (v & 0xffffU) << 0U;
2342}
2343static inline u32 gr_gpc0_tpc0_sm_cfg_r(void)
2344{
2345 return 0x00504698U;
2346}
2347static inline u32 gr_gpc0_tpc0_sm_cfg_sm_id_f(u32 v)
2348{
2349 return (v & 0xffffU) << 0U;
2350}
2351static inline u32 gr_gpc0_tpc0_sm_arch_r(void)
2352{
2353 return 0x0050469cU;
2354}
2355static inline u32 gr_gpc0_tpc0_sm_arch_warp_count_v(u32 r)
2356{
2357 return (r >> 0U) & 0xffU;
2358}
2359static inline u32 gr_gpc0_tpc0_sm_arch_spa_version_v(u32 r)
2360{
2361 return (r >> 8U) & 0xfffU;
2362}
2363static inline u32 gr_gpc0_tpc0_sm_arch_sm_version_v(u32 r)
2364{
2365 return (r >> 20U) & 0xfffU;
2366}
2367static inline u32 gr_gpc0_ppc0_pes_vsc_strem_r(void)
2368{
2369 return 0x00503018U;
2370}
2371static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_m(void)
2372{
2373 return 0x1U << 0U;
2374}
2375static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_true_f(void)
2376{
2377 return 0x1U;
2378}
2379static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_r(void)
2380{
2381 return 0x005030c0U;
2382}
2383static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_f(u32 v)
2384{
2385 return (v & 0x3fffffU) << 0U;
2386}
2387static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_m(void)
2388{
2389 return 0x3fffffU << 0U;
2390}
2391static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_default_v(void)
2392{
2393 return 0x00000320U;
2394}
2395static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_gfxp_v(void)
2396{
2397 return 0x00000ba8U;
2398}
2399static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_granularity_v(void)
2400{
2401 return 0x00000020U;
2402}
2403static inline u32 gr_gpc0_ppc0_cbm_beta_cb_offset_r(void)
2404{
2405 return 0x005030f4U;
2406}
2407static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_r(void)
2408{
2409 return 0x005030e4U;
2410}
2411static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_f(u32 v)
2412{
2413 return (v & 0xffffU) << 0U;
2414}
2415static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_m(void)
2416{
2417 return 0xffffU << 0U;
2418}
2419static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_default_v(void)
2420{
2421 return 0x00000800U;
2422}
2423static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_granularity_v(void)
2424{
2425 return 0x00000020U;
2426}
2427static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_offset_r(void)
2428{
2429 return 0x005030f8U;
2430}
2431static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_r(void)
2432{
2433 return 0x005030f0U;
2434}
2435static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_f(u32 v)
2436{
2437 return (v & 0x3fffffU) << 0U;
2438}
2439static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_default_v(void)
2440{
2441 return 0x00000320U;
2442}
2443static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_r(void)
2444{
2445 return 0x00419b00U;
2446}
2447static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_base_addr_43_12_f(u32 v)
2448{
2449 return (v & 0xffffffffU) << 0U;
2450}
2451static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_r(void)
2452{
2453 return 0x00419b04U;
2454}
2455static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_s(void)
2456{
2457 return 21U;
2458}
2459static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_f(u32 v)
2460{
2461 return (v & 0x1fffffU) << 0U;
2462}
2463static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_m(void)
2464{
2465 return 0x1fffffU << 0U;
2466}
2467static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_v(u32 r)
2468{
2469 return (r >> 0U) & 0x1fffffU;
2470}
2471static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_granularity_f(void)
2472{
2473 return 0x80U;
2474}
2475static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_s(void)
2476{
2477 return 1U;
2478}
2479static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_f(u32 v)
2480{
2481 return (v & 0x1U) << 31U;
2482}
2483static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_m(void)
2484{
2485 return 0x1U << 31U;
2486}
2487static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_v(u32 r)
2488{
2489 return (r >> 31U) & 0x1U;
2490}
2491static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_true_f(void)
2492{
2493 return 0x80000000U;
2494}
2495static inline u32 gr_gpccs_falcon_addr_r(void)
2496{
2497 return 0x0041a0acU;
2498}
2499static inline u32 gr_gpccs_falcon_addr_lsb_s(void)
2500{
2501 return 6U;
2502}
2503static inline u32 gr_gpccs_falcon_addr_lsb_f(u32 v)
2504{
2505 return (v & 0x3fU) << 0U;
2506}
2507static inline u32 gr_gpccs_falcon_addr_lsb_m(void)
2508{
2509 return 0x3fU << 0U;
2510}
2511static inline u32 gr_gpccs_falcon_addr_lsb_v(u32 r)
2512{
2513 return (r >> 0U) & 0x3fU;
2514}
2515static inline u32 gr_gpccs_falcon_addr_lsb_init_v(void)
2516{
2517 return 0x00000000U;
2518}
2519static inline u32 gr_gpccs_falcon_addr_lsb_init_f(void)
2520{
2521 return 0x0U;
2522}
2523static inline u32 gr_gpccs_falcon_addr_msb_s(void)
2524{
2525 return 6U;
2526}
2527static inline u32 gr_gpccs_falcon_addr_msb_f(u32 v)
2528{
2529 return (v & 0x3fU) << 6U;
2530}
2531static inline u32 gr_gpccs_falcon_addr_msb_m(void)
2532{
2533 return 0x3fU << 6U;
2534}
2535static inline u32 gr_gpccs_falcon_addr_msb_v(u32 r)
2536{
2537 return (r >> 6U) & 0x3fU;
2538}
2539static inline u32 gr_gpccs_falcon_addr_msb_init_v(void)
2540{
2541 return 0x00000000U;
2542}
2543static inline u32 gr_gpccs_falcon_addr_msb_init_f(void)
2544{
2545 return 0x0U;
2546}
2547static inline u32 gr_gpccs_falcon_addr_ext_s(void)
2548{
2549 return 12U;
2550}
2551static inline u32 gr_gpccs_falcon_addr_ext_f(u32 v)
2552{
2553 return (v & 0xfffU) << 0U;
2554}
2555static inline u32 gr_gpccs_falcon_addr_ext_m(void)
2556{
2557 return 0xfffU << 0U;
2558}
2559static inline u32 gr_gpccs_falcon_addr_ext_v(u32 r)
2560{
2561 return (r >> 0U) & 0xfffU;
2562}
2563static inline u32 gr_gpccs_cpuctl_r(void)
2564{
2565 return 0x0041a100U;
2566}
2567static inline u32 gr_gpccs_cpuctl_startcpu_f(u32 v)
2568{
2569 return (v & 0x1U) << 1U;
2570}
2571static inline u32 gr_gpccs_dmactl_r(void)
2572{
2573 return 0x0041a10cU;
2574}
2575static inline u32 gr_gpccs_dmactl_require_ctx_f(u32 v)
2576{
2577 return (v & 0x1U) << 0U;
2578}
2579static inline u32 gr_gpccs_dmactl_dmem_scrubbing_m(void)
2580{
2581 return 0x1U << 1U;
2582}
2583static inline u32 gr_gpccs_dmactl_imem_scrubbing_m(void)
2584{
2585 return 0x1U << 2U;
2586}
2587static inline u32 gr_gpccs_imemc_r(u32 i)
2588{
2589 return 0x0041a180U + i*16U;
2590}
2591static inline u32 gr_gpccs_imemc_offs_f(u32 v)
2592{
2593 return (v & 0x3fU) << 2U;
2594}
2595static inline u32 gr_gpccs_imemc_blk_f(u32 v)
2596{
2597 return (v & 0xffU) << 8U;
2598}
2599static inline u32 gr_gpccs_imemc_aincw_f(u32 v)
2600{
2601 return (v & 0x1U) << 24U;
2602}
2603static inline u32 gr_gpccs_imemd_r(u32 i)
2604{
2605 return 0x0041a184U + i*16U;
2606}
2607static inline u32 gr_gpccs_imemt_r(u32 i)
2608{
2609 return 0x0041a188U + i*16U;
2610}
2611static inline u32 gr_gpccs_imemt__size_1_v(void)
2612{
2613 return 0x00000004U;
2614}
2615static inline u32 gr_gpccs_imemt_tag_f(u32 v)
2616{
2617 return (v & 0xffffU) << 0U;
2618}
2619static inline u32 gr_gpccs_dmemc_r(u32 i)
2620{
2621 return 0x0041a1c0U + i*8U;
2622}
2623static inline u32 gr_gpccs_dmemc_offs_f(u32 v)
2624{
2625 return (v & 0x3fU) << 2U;
2626}
2627static inline u32 gr_gpccs_dmemc_blk_f(u32 v)
2628{
2629 return (v & 0xffU) << 8U;
2630}
2631static inline u32 gr_gpccs_dmemc_aincw_f(u32 v)
2632{
2633 return (v & 0x1U) << 24U;
2634}
2635static inline u32 gr_gpccs_dmemd_r(u32 i)
2636{
2637 return 0x0041a1c4U + i*8U;
2638}
2639static inline u32 gr_gpccs_ctxsw_mailbox_r(u32 i)
2640{
2641 return 0x0041a800U + i*4U;
2642}
2643static inline u32 gr_gpccs_ctxsw_mailbox_value_f(u32 v)
2644{
2645 return (v & 0xffffffffU) << 0U;
2646}
2647static inline u32 gr_gpcs_swdx_bundle_cb_base_r(void)
2648{
2649 return 0x00418e24U;
2650}
2651static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_s(void)
2652{
2653 return 32U;
2654}
2655static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_f(u32 v)
2656{
2657 return (v & 0xffffffffU) << 0U;
2658}
2659static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_m(void)
2660{
2661 return 0xffffffffU << 0U;
2662}
2663static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_v(u32 r)
2664{
2665 return (r >> 0U) & 0xffffffffU;
2666}
2667static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_v(void)
2668{
2669 return 0x00000000U;
2670}
2671static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_f(void)
2672{
2673 return 0x0U;
2674}
2675static inline u32 gr_gpcs_swdx_bundle_cb_size_r(void)
2676{
2677 return 0x00418e28U;
2678}
2679static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_s(void)
2680{
2681 return 11U;
2682}
2683static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_f(u32 v)
2684{
2685 return (v & 0x7ffU) << 0U;
2686}
2687static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_m(void)
2688{
2689 return 0x7ffU << 0U;
2690}
2691static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_v(u32 r)
2692{
2693 return (r >> 0U) & 0x7ffU;
2694}
2695static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_v(void)
2696{
2697 return 0x00000030U;
2698}
2699static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_f(void)
2700{
2701 return 0x30U;
2702}
2703static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_s(void)
2704{
2705 return 1U;
2706}
2707static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_f(u32 v)
2708{
2709 return (v & 0x1U) << 31U;
2710}
2711static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_m(void)
2712{
2713 return 0x1U << 31U;
2714}
2715static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_v(u32 r)
2716{
2717 return (r >> 31U) & 0x1U;
2718}
2719static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_v(void)
2720{
2721 return 0x00000000U;
2722}
2723static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_f(void)
2724{
2725 return 0x0U;
2726}
2727static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_v(void)
2728{
2729 return 0x00000001U;
2730}
2731static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_f(void)
2732{
2733 return 0x80000000U;
2734}
2735static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_r(void)
2736{
2737 return 0x005001dcU;
2738}
2739static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_f(u32 v)
2740{
2741 return (v & 0xffffU) << 0U;
2742}
2743static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_default_v(void)
2744{
2745 return 0x00000de0U;
2746}
2747static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_byte_granularity_v(void)
2748{
2749 return 0x00000100U;
2750}
2751static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_r(void)
2752{
2753 return 0x005001d8U;
2754}
2755static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_f(u32 v)
2756{
2757 return (v & 0xffffffffU) << 0U;
2758}
2759static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_align_bits_v(void)
2760{
2761 return 0x00000008U;
2762}
2763static inline u32 gr_gpcs_swdx_beta_cb_ctrl_r(void)
2764{
2765 return 0x004181e4U;
2766}
2767static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_f(u32 v)
2768{
2769 return (v & 0xfffU) << 0U;
2770}
2771static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_gfxp_v(void)
2772{
2773 return 0x00000100U;
2774}
2775static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_r(void)
2776{
2777 return 0x0041befcU;
2778}
2779static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_cbes_reserve_f(u32 v)
2780{
2781 return (v & 0xfffU) << 0U;
2782}
2783static inline u32 gr_gpcs_swdx_tc_beta_cb_size_r(u32 i)
2784{
2785 return 0x00418ea0U + i*4U;
2786}
2787static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_f(u32 v)
2788{
2789 return (v & 0x3fffffU) << 0U;
2790}
2791static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_m(void)
2792{
2793 return 0x3fffffU << 0U;
2794}
2795static inline u32 gr_gpcs_swdx_dss_zbc_color_r_r(u32 i)
2796{
2797 return 0x00418010U + i*4U;
2798}
2799static inline u32 gr_gpcs_swdx_dss_zbc_color_r_val_f(u32 v)
2800{
2801 return (v & 0xffffffffU) << 0U;
2802}
2803static inline u32 gr_gpcs_swdx_dss_zbc_color_g_r(u32 i)
2804{
2805 return 0x0041804cU + i*4U;
2806}
2807static inline u32 gr_gpcs_swdx_dss_zbc_color_g_val_f(u32 v)
2808{
2809 return (v & 0xffffffffU) << 0U;
2810}
2811static inline u32 gr_gpcs_swdx_dss_zbc_color_b_r(u32 i)
2812{
2813 return 0x00418088U + i*4U;
2814}
2815static inline u32 gr_gpcs_swdx_dss_zbc_color_b_val_f(u32 v)
2816{
2817 return (v & 0xffffffffU) << 0U;
2818}
2819static inline u32 gr_gpcs_swdx_dss_zbc_color_a_r(u32 i)
2820{
2821 return 0x004180c4U + i*4U;
2822}
2823static inline u32 gr_gpcs_swdx_dss_zbc_color_a_val_f(u32 v)
2824{
2825 return (v & 0xffffffffU) << 0U;
2826}
2827static inline u32 gr_gpcs_swdx_dss_zbc_c_01_to_04_format_r(void)
2828{
2829 return 0x00500100U;
2830}
2831static inline u32 gr_gpcs_swdx_dss_zbc_z_r(u32 i)
2832{
2833 return 0x00418110U + i*4U;
2834}
2835static inline u32 gr_gpcs_swdx_dss_zbc_z_val_f(u32 v)
2836{
2837 return (v & 0xffffffffU) << 0U;
2838}
2839static inline u32 gr_gpcs_swdx_dss_zbc_z_01_to_04_format_r(void)
2840{
2841 return 0x0050014cU;
2842}
2843static inline u32 gr_gpcs_setup_attrib_cb_base_r(void)
2844{
2845 return 0x00418810U;
2846}
2847static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_f(u32 v)
2848{
2849 return (v & 0xfffffffU) << 0U;
2850}
2851static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_align_bits_v(void)
2852{
2853 return 0x0000000cU;
2854}
2855static inline u32 gr_gpcs_setup_attrib_cb_base_valid_true_f(void)
2856{
2857 return 0x80000000U;
2858}
2859static inline u32 gr_crstr_gpc_map0_r(void)
2860{
2861 return 0x00418b08U;
2862}
2863static inline u32 gr_crstr_gpc_map0_tile0_f(u32 v)
2864{
2865 return (v & 0x7U) << 0U;
2866}
2867static inline u32 gr_crstr_gpc_map0_tile1_f(u32 v)
2868{
2869 return (v & 0x7U) << 5U;
2870}
2871static inline u32 gr_crstr_gpc_map0_tile2_f(u32 v)
2872{
2873 return (v & 0x7U) << 10U;
2874}
2875static inline u32 gr_crstr_gpc_map0_tile3_f(u32 v)
2876{
2877 return (v & 0x7U) << 15U;
2878}
2879static inline u32 gr_crstr_gpc_map0_tile4_f(u32 v)
2880{
2881 return (v & 0x7U) << 20U;
2882}
2883static inline u32 gr_crstr_gpc_map0_tile5_f(u32 v)
2884{
2885 return (v & 0x7U) << 25U;
2886}
2887static inline u32 gr_crstr_gpc_map1_r(void)
2888{
2889 return 0x00418b0cU;
2890}
2891static inline u32 gr_crstr_gpc_map1_tile6_f(u32 v)
2892{
2893 return (v & 0x7U) << 0U;
2894}
2895static inline u32 gr_crstr_gpc_map1_tile7_f(u32 v)
2896{
2897 return (v & 0x7U) << 5U;
2898}
2899static inline u32 gr_crstr_gpc_map1_tile8_f(u32 v)
2900{
2901 return (v & 0x7U) << 10U;
2902}
2903static inline u32 gr_crstr_gpc_map1_tile9_f(u32 v)
2904{
2905 return (v & 0x7U) << 15U;
2906}
2907static inline u32 gr_crstr_gpc_map1_tile10_f(u32 v)
2908{
2909 return (v & 0x7U) << 20U;
2910}
2911static inline u32 gr_crstr_gpc_map1_tile11_f(u32 v)
2912{
2913 return (v & 0x7U) << 25U;
2914}
2915static inline u32 gr_crstr_gpc_map2_r(void)
2916{
2917 return 0x00418b10U;
2918}
2919static inline u32 gr_crstr_gpc_map2_tile12_f(u32 v)
2920{
2921 return (v & 0x7U) << 0U;
2922}
2923static inline u32 gr_crstr_gpc_map2_tile13_f(u32 v)
2924{
2925 return (v & 0x7U) << 5U;
2926}
2927static inline u32 gr_crstr_gpc_map2_tile14_f(u32 v)
2928{
2929 return (v & 0x7U) << 10U;
2930}
2931static inline u32 gr_crstr_gpc_map2_tile15_f(u32 v)
2932{
2933 return (v & 0x7U) << 15U;
2934}
2935static inline u32 gr_crstr_gpc_map2_tile16_f(u32 v)
2936{
2937 return (v & 0x7U) << 20U;
2938}
2939static inline u32 gr_crstr_gpc_map2_tile17_f(u32 v)
2940{
2941 return (v & 0x7U) << 25U;
2942}
2943static inline u32 gr_crstr_gpc_map3_r(void)
2944{
2945 return 0x00418b14U;
2946}
2947static inline u32 gr_crstr_gpc_map3_tile18_f(u32 v)
2948{
2949 return (v & 0x7U) << 0U;
2950}
2951static inline u32 gr_crstr_gpc_map3_tile19_f(u32 v)
2952{
2953 return (v & 0x7U) << 5U;
2954}
2955static inline u32 gr_crstr_gpc_map3_tile20_f(u32 v)
2956{
2957 return (v & 0x7U) << 10U;
2958}
2959static inline u32 gr_crstr_gpc_map3_tile21_f(u32 v)
2960{
2961 return (v & 0x7U) << 15U;
2962}
2963static inline u32 gr_crstr_gpc_map3_tile22_f(u32 v)
2964{
2965 return (v & 0x7U) << 20U;
2966}
2967static inline u32 gr_crstr_gpc_map3_tile23_f(u32 v)
2968{
2969 return (v & 0x7U) << 25U;
2970}
2971static inline u32 gr_crstr_gpc_map4_r(void)
2972{
2973 return 0x00418b18U;
2974}
2975static inline u32 gr_crstr_gpc_map4_tile24_f(u32 v)
2976{
2977 return (v & 0x7U) << 0U;
2978}
2979static inline u32 gr_crstr_gpc_map4_tile25_f(u32 v)
2980{
2981 return (v & 0x7U) << 5U;
2982}
2983static inline u32 gr_crstr_gpc_map4_tile26_f(u32 v)
2984{
2985 return (v & 0x7U) << 10U;
2986}
2987static inline u32 gr_crstr_gpc_map4_tile27_f(u32 v)
2988{
2989 return (v & 0x7U) << 15U;
2990}
2991static inline u32 gr_crstr_gpc_map4_tile28_f(u32 v)
2992{
2993 return (v & 0x7U) << 20U;
2994}
2995static inline u32 gr_crstr_gpc_map4_tile29_f(u32 v)
2996{
2997 return (v & 0x7U) << 25U;
2998}
2999static inline u32 gr_crstr_gpc_map5_r(void)
3000{
3001 return 0x00418b1cU;
3002}
3003static inline u32 gr_crstr_gpc_map5_tile30_f(u32 v)
3004{
3005 return (v & 0x7U) << 0U;
3006}
3007static inline u32 gr_crstr_gpc_map5_tile31_f(u32 v)
3008{
3009 return (v & 0x7U) << 5U;
3010}
3011static inline u32 gr_crstr_gpc_map5_tile32_f(u32 v)
3012{
3013 return (v & 0x7U) << 10U;
3014}
3015static inline u32 gr_crstr_gpc_map5_tile33_f(u32 v)
3016{
3017 return (v & 0x7U) << 15U;
3018}
3019static inline u32 gr_crstr_gpc_map5_tile34_f(u32 v)
3020{
3021 return (v & 0x7U) << 20U;
3022}
3023static inline u32 gr_crstr_gpc_map5_tile35_f(u32 v)
3024{
3025 return (v & 0x7U) << 25U;
3026}
3027static inline u32 gr_crstr_map_table_cfg_r(void)
3028{
3029 return 0x00418bb8U;
3030}
3031static inline u32 gr_crstr_map_table_cfg_row_offset_f(u32 v)
3032{
3033 return (v & 0xffU) << 0U;
3034}
3035static inline u32 gr_crstr_map_table_cfg_num_entries_f(u32 v)
3036{
3037 return (v & 0xffU) << 8U;
3038}
3039static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_r(void)
3040{
3041 return 0x00418980U;
3042}
3043static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_0_f(u32 v)
3044{
3045 return (v & 0x7U) << 0U;
3046}
3047static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_1_f(u32 v)
3048{
3049 return (v & 0x7U) << 4U;
3050}
3051static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_2_f(u32 v)
3052{
3053 return (v & 0x7U) << 8U;
3054}
3055static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_3_f(u32 v)
3056{
3057 return (v & 0x7U) << 12U;
3058}
3059static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_4_f(u32 v)
3060{
3061 return (v & 0x7U) << 16U;
3062}
3063static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_5_f(u32 v)
3064{
3065 return (v & 0x7U) << 20U;
3066}
3067static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_6_f(u32 v)
3068{
3069 return (v & 0x7U) << 24U;
3070}
3071static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_7_f(u32 v)
3072{
3073 return (v & 0x7U) << 28U;
3074}
3075static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_r(void)
3076{
3077 return 0x00418984U;
3078}
3079static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_8_f(u32 v)
3080{
3081 return (v & 0x7U) << 0U;
3082}
3083static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_9_f(u32 v)
3084{
3085 return (v & 0x7U) << 4U;
3086}
3087static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_10_f(u32 v)
3088{
3089 return (v & 0x7U) << 8U;
3090}
3091static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_11_f(u32 v)
3092{
3093 return (v & 0x7U) << 12U;
3094}
3095static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_12_f(u32 v)
3096{
3097 return (v & 0x7U) << 16U;
3098}
3099static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_13_f(u32 v)
3100{
3101 return (v & 0x7U) << 20U;
3102}
3103static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_14_f(u32 v)
3104{
3105 return (v & 0x7U) << 24U;
3106}
3107static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_15_f(u32 v)
3108{
3109 return (v & 0x7U) << 28U;
3110}
3111static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_r(void)
3112{
3113 return 0x00418988U;
3114}
3115static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_16_f(u32 v)
3116{
3117 return (v & 0x7U) << 0U;
3118}
3119static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_17_f(u32 v)
3120{
3121 return (v & 0x7U) << 4U;
3122}
3123static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_18_f(u32 v)
3124{
3125 return (v & 0x7U) << 8U;
3126}
3127static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_19_f(u32 v)
3128{
3129 return (v & 0x7U) << 12U;
3130}
3131static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_20_f(u32 v)
3132{
3133 return (v & 0x7U) << 16U;
3134}
3135static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_21_f(u32 v)
3136{
3137 return (v & 0x7U) << 20U;
3138}
3139static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_22_f(u32 v)
3140{
3141 return (v & 0x7U) << 24U;
3142}
3143static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_s(void)
3144{
3145 return 3U;
3146}
3147static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_f(u32 v)
3148{
3149 return (v & 0x7U) << 28U;
3150}
3151static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_m(void)
3152{
3153 return 0x7U << 28U;
3154}
3155static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_v(u32 r)
3156{
3157 return (r >> 28U) & 0x7U;
3158}
3159static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_r(void)
3160{
3161 return 0x0041898cU;
3162}
3163static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_24_f(u32 v)
3164{
3165 return (v & 0x7U) << 0U;
3166}
3167static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_25_f(u32 v)
3168{
3169 return (v & 0x7U) << 4U;
3170}
3171static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_26_f(u32 v)
3172{
3173 return (v & 0x7U) << 8U;
3174}
3175static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_27_f(u32 v)
3176{
3177 return (v & 0x7U) << 12U;
3178}
3179static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_28_f(u32 v)
3180{
3181 return (v & 0x7U) << 16U;
3182}
3183static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_29_f(u32 v)
3184{
3185 return (v & 0x7U) << 20U;
3186}
3187static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_30_f(u32 v)
3188{
3189 return (v & 0x7U) << 24U;
3190}
3191static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_31_f(u32 v)
3192{
3193 return (v & 0x7U) << 28U;
3194}
3195static inline u32 gr_gpcs_gpm_pd_cfg_r(void)
3196{
3197 return 0x00418c6cU;
3198}
3199static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_disable_f(void)
3200{
3201 return 0x0U;
3202}
3203static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_enable_f(void)
3204{
3205 return 0x1U;
3206}
3207static inline u32 gr_gpcs_gcc_pagepool_base_r(void)
3208{
3209 return 0x00419004U;
3210}
3211static inline u32 gr_gpcs_gcc_pagepool_base_addr_39_8_f(u32 v)
3212{
3213 return (v & 0xffffffffU) << 0U;
3214}
3215static inline u32 gr_gpcs_gcc_pagepool_r(void)
3216{
3217 return 0x00419008U;
3218}
3219static inline u32 gr_gpcs_gcc_pagepool_total_pages_f(u32 v)
3220{
3221 return (v & 0x3ffU) << 0U;
3222}
3223static inline u32 gr_gpcs_tpcs_pe_vaf_r(void)
3224{
3225 return 0x0041980cU;
3226}
3227static inline u32 gr_gpcs_tpcs_pe_vaf_fast_mode_switch_true_f(void)
3228{
3229 return 0x10U;
3230}
3231static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_r(void)
3232{
3233 return 0x00419848U;
3234}
3235static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_v_f(u32 v)
3236{
3237 return (v & 0xfffffffU) << 0U;
3238}
3239static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_f(u32 v)
3240{
3241 return (v & 0x1U) << 28U;
3242}
3243static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_true_f(void)
3244{
3245 return 0x10000000U;
3246}
3247static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_r(void)
3248{
3249 return 0x00419c00U;
3250}
3251static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_disabled_f(void)
3252{
3253 return 0x0U;
3254}
3255static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_enabled_f(void)
3256{
3257 return 0x8U;
3258}
3259static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_r(void)
3260{
3261 return 0x00419c2cU;
3262}
3263static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_v_f(u32 v)
3264{
3265 return (v & 0xfffffffU) << 0U;
3266}
3267static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_f(u32 v)
3268{
3269 return (v & 0x1U) << 28U;
3270}
3271static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_true_f(void)
3272{
3273 return 0x10000000U;
3274}
3275static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_r(void)
3276{
3277 return 0x00419e44U;
3278}
3279static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_stack_error_report_f(void)
3280{
3281 return 0x2U;
3282}
3283static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_api_stack_error_report_f(void)
3284{
3285 return 0x4U;
3286}
3287static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_ret_empty_stack_error_report_f(void)
3288{
3289 return 0x8U;
3290}
3291static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_wrap_report_f(void)
3292{
3293 return 0x10U;
3294}
3295static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_pc_report_f(void)
3296{
3297 return 0x20U;
3298}
3299static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_overflow_report_f(void)
3300{
3301 return 0x40U;
3302}
3303static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_immc_addr_report_f(void)
3304{
3305 return 0x80U;
3306}
3307static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_reg_report_f(void)
3308{
3309 return 0x100U;
3310}
3311static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_encoding_report_f(void)
3312{
3313 return 0x200U;
3314}
3315static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_sph_instr_combo_report_f(void)
3316{
3317 return 0x400U;
3318}
3319static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param_report_f(void)
3320{
3321 return 0x800U;
3322}
3323static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_report_f(void)
3324{
3325 return 0x1000U;
3326}
3327static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_reg_report_f(void)
3328{
3329 return 0x2000U;
3330}
3331static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_addr_report_f(void)
3332{
3333 return 0x4000U;
3334}
3335static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_addr_report_f(void)
3336{
3337 return 0x8000U;
3338}
3339static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_addr_space_report_f(void)
3340{
3341 return 0x10000U;
3342}
3343static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param2_report_f(void)
3344{
3345 return 0x20000U;
3346}
3347static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_ldc_report_f(void)
3348{
3349 return 0x40000U;
3350}
3351static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_mmu_fault_report_f(void)
3352{
3353 return 0x800000U;
3354}
3355static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_stack_overflow_report_f(void)
3356{
3357 return 0x400000U;
3358}
3359static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_geometry_sm_error_report_f(void)
3360{
3361 return 0x80000U;
3362}
3363static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_divergent_report_f(void)
3364{
3365 return 0x100000U;
3366}
3367static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_report_mask_r(void)
3368{
3369 return 0x00504644U;
3370}
3371static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_r(void)
3372{
3373 return 0x00419e4cU;
3374}
3375static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_sm_to_sm_fault_report_f(void)
3376{
3377 return 0x1U;
3378}
3379static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_l1_error_report_f(void)
3380{
3381 return 0x2U;
3382}
3383static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_multiple_warp_errors_report_f(void)
3384{
3385 return 0x4U;
3386}
3387static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_physical_stack_overflow_error_report_f(void)
3388{
3389 return 0x8U;
3390}
3391static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_int_report_f(void)
3392{
3393 return 0x10U;
3394}
3395static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_ecc_sec_error_report_f(void)
3396{
3397 return 0x20000000U;
3398}
3399static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_ecc_ded_error_report_f(void)
3400{
3401 return 0x40000000U;
3402}
3403static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_pause_report_f(void)
3404{
3405 return 0x20U;
3406}
3407static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_single_step_complete_report_f(void)
3408{
3409 return 0x40U;
3410}
3411static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_report_mask_r(void)
3412{
3413 return 0x0050464cU;
3414}
3415static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_r(void)
3416{
3417 return 0x00419d0cU;
3418}
3419static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_sm_enabled_f(void)
3420{
3421 return 0x2U;
3422}
3423static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_tex_enabled_f(void)
3424{
3425 return 0x1U;
3426}
3427static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
3428{
3429 return 0x0050450cU;
3430}
3431static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_v(u32 r)
3432{
3433 return (r >> 1U) & 0x1U;
3434}
3435static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_enabled_f(void)
3436{
3437 return 0x2U;
3438}
3439static inline u32 gr_gpcs_gpccs_gpc_exception_en_r(void)
3440{
3441 return 0x0041ac94U;
3442}
3443static inline u32 gr_gpcs_gpccs_gpc_exception_en_tpc_f(u32 v)
3444{
3445 return (v & 0xffU) << 16U;
3446}
3447static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
3448{
3449 return 0x00502c90U;
3450}
3451static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r)
3452{
3453 return (r >> 2U) & 0x1U;
3454}
3455static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
3456{
3457 return (r >> 16U) & 0xffU;
3458}
3459static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_0_pending_v(void)
3460{
3461 return 0x00000001U;
3462}
3463static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_r(void)
3464{
3465 return 0x00504508U;
3466}
3467static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_v(u32 r)
3468{
3469 return (r >> 0U) & 0x1U;
3470}
3471static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_pending_v(void)
3472{
3473 return 0x00000001U;
3474}
3475static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_v(u32 r)
3476{
3477 return (r >> 1U) & 0x1U;
3478}
3479static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_pending_v(void)
3480{
3481 return 0x00000001U;
3482}
3483static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_r(void)
3484{
3485 return 0x00504610U;
3486}
3487static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_m(void)
3488{
3489 return 0x1U << 0U;
3490}
3491static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_v(u32 r)
3492{
3493 return (r >> 0U) & 0x1U;
3494}
3495static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_on_v(void)
3496{
3497 return 0x00000001U;
3498}
3499static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_on_f(void)
3500{
3501 return 0x1U;
3502}
3503static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_off_v(void)
3504{
3505 return 0x00000000U;
3506}
3507static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_off_f(void)
3508{
3509 return 0x0U;
3510}
3511static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_enable_f(void)
3512{
3513 return 0x80000000U;
3514}
3515static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_disable_f(void)
3516{
3517 return 0x0U;
3518}
3519static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_run_trigger_task_f(void)
3520{
3521 return 0x40000000U;
3522}
3523static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_m(void)
3524{
3525 return 0x1U << 1U;
3526}
3527static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_v(u32 r)
3528{
3529 return (r >> 1U) & 0x1U;
3530}
3531static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_disable_f(void)
3532{
3533 return 0x0U;
3534}
3535static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_m(void)
3536{
3537 return 0x1U << 2U;
3538}
3539static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_v(u32 r)
3540{
3541 return (r >> 2U) & 0x1U;
3542}
3543static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_disable_f(void)
3544{
3545 return 0x0U;
3546}
3547static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_r(void)
3548{
3549 return 0x00504614U;
3550}
3551static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_1_r(void)
3552{
3553 return 0x00504618U;
3554}
3555static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_r(void)
3556{
3557 return 0x00504624U;
3558}
3559static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_1_r(void)
3560{
3561 return 0x00504628U;
3562}
3563static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_r(void)
3564{
3565 return 0x00504634U;
3566}
3567static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_1_r(void)
3568{
3569 return 0x00504638U;
3570}
3571static inline u32 gr_gpcs_tpcs_sm_dbgr_bpt_pause_mask_r(void)
3572{
3573 return 0x00419e24U;
3574}
3575static inline u32 gr_gpcs_tpcs_sm_dbgr_bpt_pause_mask_stop_on_any_warp_disable_v(void)
3576{
3577 return 0x00000000U;
3578}
3579static inline u32 gr_gpcs_tpcs_sm_dbgr_bpt_pause_mask_stop_on_any_sm_disable_v(void)
3580{
3581 return 0x00000000U;
3582}
3583static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_r(void)
3584{
3585 return 0x0050460cU;
3586}
3587static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_sm_in_trap_mode_v(u32 r)
3588{
3589 return (r >> 0U) & 0x1U;
3590}
3591static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_v(u32 r)
3592{
3593 return (r >> 4U) & 0x1U;
3594}
3595static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_true_v(void)
3596{
3597 return 0x00000001U;
3598}
3599static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_r(void)
3600{
3601 return 0x00419e50U;
3602}
3603static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_int_pending_f(void)
3604{
3605 return 0x10U;
3606}
3607static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_pause_pending_f(void)
3608{
3609 return 0x20U;
3610}
3611static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_single_step_complete_pending_f(void)
3612{
3613 return 0x40U;
3614}
3615static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_r(void)
3616{
3617 return 0x00504650U;
3618}
3619static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_int_pending_f(void)
3620{
3621 return 0x10U;
3622}
3623static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_ecc_sec_error_pending_f(void)
3624{
3625 return 0x20000000U;
3626}
3627static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_ecc_ded_error_pending_f(void)
3628{
3629 return 0x40000000U;
3630}
3631static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_pause_pending_f(void)
3632{
3633 return 0x20U;
3634}
3635static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_single_step_complete_pending_f(void)
3636{
3637 return 0x40U;
3638}
3639static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_r(void)
3640{
3641 return 0x00504224U;
3642}
3643static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_intr_pending_f(void)
3644{
3645 return 0x1U;
3646}
3647static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_r(void)
3648{
3649 return 0x00504648U;
3650}
3651static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_v(u32 r)
3652{
3653 return (r >> 0U) & 0xffffU;
3654}
3655static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_v(void)
3656{
3657 return 0x00000000U;
3658}
3659static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_f(void)
3660{
3661 return 0x0U;
3662}
3663static inline u32 gr_gpc0_tpc0_sm_halfctl_ctrl_r(void)
3664{
3665 return 0x00504770U;
3666}
3667static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_r(void)
3668{
3669 return 0x00419f70U;
3670}
3671static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_m(void)
3672{
3673 return 0x1U << 4U;
3674}
3675static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_f(u32 v)
3676{
3677 return (v & 0x1U) << 4U;
3678}
3679static inline u32 gr_gpc0_tpc0_sm_debug_sfe_control_r(void)
3680{
3681 return 0x0050477cU;
3682}
3683static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_r(void)
3684{
3685 return 0x00419f7cU;
3686}
3687static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_m(void)
3688{
3689 return 0x1U << 0U;
3690}
3691static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_f(u32 v)
3692{
3693 return (v & 0x1U) << 0U;
3694}
3695static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_r(void)
3696{
3697 return 0x0041be08U;
3698}
3699static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_fast_mode_switch_true_f(void)
3700{
3701 return 0x4U;
3702}
3703static inline u32 gr_ppcs_wwdx_map_gpc_map0_r(void)
3704{
3705 return 0x0041bf00U;
3706}
3707static inline u32 gr_ppcs_wwdx_map_gpc_map1_r(void)
3708{
3709 return 0x0041bf04U;
3710}
3711static inline u32 gr_ppcs_wwdx_map_gpc_map2_r(void)
3712{
3713 return 0x0041bf08U;
3714}
3715static inline u32 gr_ppcs_wwdx_map_gpc_map3_r(void)
3716{
3717 return 0x0041bf0cU;
3718}
3719static inline u32 gr_ppcs_wwdx_map_gpc_map4_r(void)
3720{
3721 return 0x0041bf10U;
3722}
3723static inline u32 gr_ppcs_wwdx_map_gpc_map5_r(void)
3724{
3725 return 0x0041bf14U;
3726}
3727static inline u32 gr_ppcs_wwdx_map_table_cfg_r(void)
3728{
3729 return 0x0041bfd0U;
3730}
3731static inline u32 gr_ppcs_wwdx_map_table_cfg_row_offset_f(u32 v)
3732{
3733 return (v & 0xffU) << 0U;
3734}
3735static inline u32 gr_ppcs_wwdx_map_table_cfg_num_entries_f(u32 v)
3736{
3737 return (v & 0xffU) << 8U;
3738}
3739static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_num_entries_f(u32 v)
3740{
3741 return (v & 0x1fU) << 16U;
3742}
3743static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_shift_value_f(u32 v)
3744{
3745 return (v & 0x7U) << 21U;
3746}
3747static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff5_mod_value_f(u32 v)
3748{
3749 return (v & 0x1fU) << 24U;
3750}
3751static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_r(void)
3752{
3753 return 0x0041bfd4U;
3754}
3755static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_conservative_f(u32 v)
3756{
3757 return (v & 0xffffffU) << 0U;
3758}
3759static inline u32 gr_ppcs_wwdx_map_table_cfg2_r(void)
3760{
3761 return 0x0041bfe4U;
3762}
3763static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff6_mod_value_f(u32 v)
3764{
3765 return (v & 0x1fU) << 0U;
3766}
3767static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff7_mod_value_f(u32 v)
3768{
3769 return (v & 0x1fU) << 5U;
3770}
3771static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff8_mod_value_f(u32 v)
3772{
3773 return (v & 0x1fU) << 10U;
3774}
3775static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff9_mod_value_f(u32 v)
3776{
3777 return (v & 0x1fU) << 15U;
3778}
3779static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff10_mod_value_f(u32 v)
3780{
3781 return (v & 0x1fU) << 20U;
3782}
3783static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff11_mod_value_f(u32 v)
3784{
3785 return (v & 0x1fU) << 25U;
3786}
3787static inline u32 gr_bes_zrop_settings_r(void)
3788{
3789 return 0x00408850U;
3790}
3791static inline u32 gr_bes_zrop_settings_num_active_ltcs_f(u32 v)
3792{
3793 return (v & 0xfU) << 0U;
3794}
3795static inline u32 gr_be0_crop_debug3_r(void)
3796{
3797 return 0x00410108U;
3798}
3799static inline u32 gr_bes_crop_debug3_r(void)
3800{
3801 return 0x00408908U;
3802}
3803static inline u32 gr_bes_crop_debug3_comp_vdc_4to2_disable_m(void)
3804{
3805 return 0x1U << 31U;
3806}
3807static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_m(void)
3808{
3809 return 0x1U << 1U;
3810}
3811static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_disabled_f(void)
3812{
3813 return 0x0U;
3814}
3815static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_enabled_f(void)
3816{
3817 return 0x2U;
3818}
3819static inline u32 gr_bes_crop_debug3_blendopt_fill_override_m(void)
3820{
3821 return 0x1U << 2U;
3822}
3823static inline u32 gr_bes_crop_debug3_blendopt_fill_override_disabled_f(void)
3824{
3825 return 0x0U;
3826}
3827static inline u32 gr_bes_crop_debug3_blendopt_fill_override_enabled_f(void)
3828{
3829 return 0x4U;
3830}
3831static inline u32 gr_bes_crop_debug4_r(void)
3832{
3833 return 0x0040894cU;
3834}
3835static inline u32 gr_bes_crop_debug4_clamp_fp_blend_m(void)
3836{
3837 return 0x1U << 18U;
3838}
3839static inline u32 gr_bes_crop_debug4_clamp_fp_blend_to_inf_f(void)
3840{
3841 return 0x0U;
3842}
3843static inline u32 gr_bes_crop_debug4_clamp_fp_blend_to_maxval_f(void)
3844{
3845 return 0x40000U;
3846}
3847static inline u32 gr_bes_crop_settings_r(void)
3848{
3849 return 0x00408958U;
3850}
3851static inline u32 gr_bes_crop_settings_num_active_ltcs_f(u32 v)
3852{
3853 return (v & 0xfU) << 0U;
3854}
3855static inline u32 gr_zcull_bytes_per_aliquot_per_gpu_v(void)
3856{
3857 return 0x00000020U;
3858}
3859static inline u32 gr_zcull_save_restore_header_bytes_per_gpc_v(void)
3860{
3861 return 0x00000020U;
3862}
3863static inline u32 gr_zcull_save_restore_subregion_header_bytes_per_gpc_v(void)
3864{
3865 return 0x000000c0U;
3866}
3867static inline u32 gr_zcull_subregion_qty_v(void)
3868{
3869 return 0x00000010U;
3870}
3871static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel0_r(void)
3872{
3873 return 0x00504604U;
3874}
3875static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel1_r(void)
3876{
3877 return 0x00504608U;
3878}
3879static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control0_r(void)
3880{
3881 return 0x0050465cU;
3882}
3883static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control1_r(void)
3884{
3885 return 0x00504660U;
3886}
3887static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control2_r(void)
3888{
3889 return 0x00504664U;
3890}
3891static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control3_r(void)
3892{
3893 return 0x00504668U;
3894}
3895static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control4_r(void)
3896{
3897 return 0x0050466cU;
3898}
3899static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control5_r(void)
3900{
3901 return 0x00504658U;
3902}
3903static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_control_r(void)
3904{
3905 return 0x00504730U;
3906}
3907static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_control_r(void)
3908{
3909 return 0x00504734U;
3910}
3911static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_control_r(void)
3912{
3913 return 0x00504738U;
3914}
3915static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_control_r(void)
3916{
3917 return 0x0050473cU;
3918}
3919static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter4_control_r(void)
3920{
3921 return 0x00504740U;
3922}
3923static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter5_control_r(void)
3924{
3925 return 0x00504744U;
3926}
3927static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter6_control_r(void)
3928{
3929 return 0x00504748U;
3930}
3931static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter7_control_r(void)
3932{
3933 return 0x0050474cU;
3934}
3935static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status_s1_r(void)
3936{
3937 return 0x00504678U;
3938}
3939static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status1_r(void)
3940{
3941 return 0x00504694U;
3942}
3943static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_s0_r(void)
3944{
3945 return 0x005046f0U;
3946}
3947static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_s1_r(void)
3948{
3949 return 0x00504700U;
3950}
3951static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_s0_r(void)
3952{
3953 return 0x005046f4U;
3954}
3955static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_s1_r(void)
3956{
3957 return 0x00504704U;
3958}
3959static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_s0_r(void)
3960{
3961 return 0x005046f8U;
3962}
3963static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_s1_r(void)
3964{
3965 return 0x00504708U;
3966}
3967static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_s0_r(void)
3968{
3969 return 0x005046fcU;
3970}
3971static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_s1_r(void)
3972{
3973 return 0x0050470cU;
3974}
3975static inline u32 gr_fe_pwr_mode_r(void)
3976{
3977 return 0x00404170U;
3978}
3979static inline u32 gr_fe_pwr_mode_mode_auto_f(void)
3980{
3981 return 0x0U;
3982}
3983static inline u32 gr_fe_pwr_mode_mode_force_on_f(void)
3984{
3985 return 0x2U;
3986}
3987static inline u32 gr_fe_pwr_mode_req_v(u32 r)
3988{
3989 return (r >> 4U) & 0x1U;
3990}
3991static inline u32 gr_fe_pwr_mode_req_send_f(void)
3992{
3993 return 0x10U;
3994}
3995static inline u32 gr_fe_pwr_mode_req_done_v(void)
3996{
3997 return 0x00000000U;
3998}
3999static inline u32 gr_gpcs_pri_mmu_ctrl_r(void)
4000{
4001 return 0x00418880U;
4002}
4003static inline u32 gr_gpcs_pri_mmu_ctrl_vm_pg_size_m(void)
4004{
4005 return 0x1U << 0U;
4006}
4007static inline u32 gr_gpcs_pri_mmu_ctrl_use_pdb_big_page_size_m(void)
4008{
4009 return 0x1U << 11U;
4010}
4011static inline u32 gr_gpcs_pri_mmu_ctrl_vol_fault_m(void)
4012{
4013 return 0x1U << 1U;
4014}
4015static inline u32 gr_gpcs_pri_mmu_ctrl_comp_fault_m(void)
4016{
4017 return 0x1U << 2U;
4018}
4019static inline u32 gr_gpcs_pri_mmu_ctrl_miss_gran_m(void)
4020{
4021 return 0x3U << 3U;
4022}
4023static inline u32 gr_gpcs_pri_mmu_ctrl_cache_mode_m(void)
4024{
4025 return 0x3U << 5U;
4026}
4027static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_aperture_m(void)
4028{
4029 return 0x3U << 28U;
4030}
4031static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_vol_m(void)
4032{
4033 return 0x1U << 30U;
4034}
4035static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_disable_m(void)
4036{
4037 return 0x1U << 31U;
4038}
4039static inline u32 gr_gpcs_pri_mmu_pm_unit_mask_r(void)
4040{
4041 return 0x00418890U;
4042}
4043static inline u32 gr_gpcs_pri_mmu_pm_req_mask_r(void)
4044{
4045 return 0x00418894U;
4046}
4047static inline u32 gr_gpcs_pri_mmu_debug_ctrl_r(void)
4048{
4049 return 0x004188b0U;
4050}
4051static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_v(u32 r)
4052{
4053 return (r >> 16U) & 0x1U;
4054}
4055static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v(void)
4056{
4057 return 0x00000001U;
4058}
4059static inline u32 gr_gpcs_pri_mmu_debug_wr_r(void)
4060{
4061 return 0x004188b4U;
4062}
4063static inline u32 gr_gpcs_pri_mmu_debug_rd_r(void)
4064{
4065 return 0x004188b8U;
4066}
4067static inline u32 gr_gpcs_mmu_num_active_ltcs_r(void)
4068{
4069 return 0x004188acU;
4070}
4071static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_r(void)
4072{
4073 return 0x00419e10U;
4074}
4075static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_f(u32 v)
4076{
4077 return (v & 0x1U) << 0U;
4078}
4079static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_on_v(void)
4080{
4081 return 0x00000001U;
4082}
4083static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_m(void)
4084{
4085 return 0x1U << 31U;
4086}
4087static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_v(u32 r)
4088{
4089 return (r >> 31U) & 0x1U;
4090}
4091static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_enable_f(void)
4092{
4093 return 0x80000000U;
4094}
4095static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_disable_f(void)
4096{
4097 return 0x0U;
4098}
4099static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_m(void)
4100{
4101 return 0x1U << 30U;
4102}
4103static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_v(u32 r)
4104{
4105 return (r >> 30U) & 0x1U;
4106}
4107static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_task_f(void)
4108{
4109 return 0x40000000U;
4110}
4111static inline u32 gr_fe_gfxp_wfi_timeout_r(void)
4112{
4113 return 0x004041c0U;
4114}
4115static inline u32 gr_fe_gfxp_wfi_timeout_count_f(u32 v)
4116{
4117 return (v & 0xffffffffU) << 0U;
4118}
4119static inline u32 gr_fe_gfxp_wfi_timeout_count_disabled_f(void)
4120{
4121 return 0x0U;
4122}
4123static inline u32 gr_gpcs_tpcs_sm_texio_control_r(void)
4124{
4125 return 0x00419c84U;
4126}
4127static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_f(u32 v)
4128{
4129 return (v & 0x7U) << 8U;
4130}
4131static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_m(void)
4132{
4133 return 0x7U << 8U;
4134}
4135static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_arm_63_48_match_f(void)
4136{
4137 return 0x100U;
4138}
4139static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_r(void)
4140{
4141 return 0x00419f78U;
4142}
4143static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_m(void)
4144{
4145 return 0x3U << 11U;
4146}
4147static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_disable_f(void)
4148{
4149 return 0x1000U;
4150}
4151static inline u32 gr_gpcs_tc_debug0_r(void)
4152{
4153 return 0x00418708U;
4154}
4155static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_f(u32 v)
4156{
4157 return (v & 0x1ffU) << 0U;
4158}
4159static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_m(void)
4160{
4161 return 0x1ffU << 0U;
4162}
4163#endif
diff --git a/include/nvgpu/hw/gp106/hw_ltc_gp106.h b/include/nvgpu/hw/gp106/hw_ltc_gp106.h
new file mode 100644
index 0000000..e4e87aa
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_ltc_gp106.h
@@ -0,0 +1,559 @@
1/*
2 * Copyright (c) 2016-2017, 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_ltc_gp106_h_
57#define _hw_ltc_gp106_h_
58
59static inline u32 ltc_ltcs_lts0_cbc_ctrl1_r(void)
60{
61 return 0x0014046cU;
62}
63static inline u32 ltc_ltc0_lts0_dstg_cfg0_r(void)
64{
65 return 0x00140518U;
66}
67static inline u32 ltc_ltcs_ltss_dstg_cfg0_r(void)
68{
69 return 0x0017e318U;
70}
71static inline u32 ltc_ltcs_ltss_dstg_cfg0_vdc_4to2_disable_m(void)
72{
73 return 0x1U << 15U;
74}
75static inline u32 ltc_ltc0_lts0_tstg_cfg1_r(void)
76{
77 return 0x00140494U;
78}
79static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_ways_v(u32 r)
80{
81 return (r >> 0U) & 0xffffU;
82}
83static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_v(u32 r)
84{
85 return (r >> 16U) & 0x3U;
86}
87static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_all_v(void)
88{
89 return 0x00000000U;
90}
91static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_half_v(void)
92{
93 return 0x00000001U;
94}
95static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_quarter_v(void)
96{
97 return 0x00000002U;
98}
99static inline u32 ltc_ltcs_ltss_cbc_ctrl1_r(void)
100{
101 return 0x0017e26cU;
102}
103static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clean_active_f(void)
104{
105 return 0x1U;
106}
107static inline u32 ltc_ltcs_ltss_cbc_ctrl1_invalidate_active_f(void)
108{
109 return 0x2U;
110}
111static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_v(u32 r)
112{
113 return (r >> 2U) & 0x1U;
114}
115static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_v(void)
116{
117 return 0x00000001U;
118}
119static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_f(void)
120{
121 return 0x4U;
122}
123static inline u32 ltc_ltc0_lts0_cbc_ctrl1_r(void)
124{
125 return 0x0014046cU;
126}
127static inline u32 ltc_ltcs_ltss_cbc_ctrl2_r(void)
128{
129 return 0x0017e270U;
130}
131static inline u32 ltc_ltcs_ltss_cbc_ctrl2_clear_lower_bound_f(u32 v)
132{
133 return (v & 0x3ffffU) << 0U;
134}
135static inline u32 ltc_ltcs_ltss_cbc_ctrl3_r(void)
136{
137 return 0x0017e274U;
138}
139static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_f(u32 v)
140{
141 return (v & 0x3ffffU) << 0U;
142}
143static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_init_v(void)
144{
145 return 0x0003ffffU;
146}
147static inline u32 ltc_ltcs_ltss_cbc_base_r(void)
148{
149 return 0x0017e278U;
150}
151static inline u32 ltc_ltcs_ltss_cbc_base_alignment_shift_v(void)
152{
153 return 0x0000000bU;
154}
155static inline u32 ltc_ltcs_ltss_cbc_base_address_v(u32 r)
156{
157 return (r >> 0U) & 0x3ffffffU;
158}
159static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_r(void)
160{
161 return 0x0017e27cU;
162}
163static inline u32 ltc_ltcs_misc_ltc_num_active_ltcs_r(void)
164{
165 return 0x0017e000U;
166}
167static inline u32 ltc_ltcs_ltss_cbc_param_r(void)
168{
169 return 0x0017e280U;
170}
171static inline u32 ltc_ltcs_ltss_cbc_param_comptags_per_cache_line_v(u32 r)
172{
173 return (r >> 0U) & 0xffffU;
174}
175static inline u32 ltc_ltcs_ltss_cbc_param_cache_line_size_v(u32 r)
176{
177 return (r >> 24U) & 0xfU;
178}
179static inline u32 ltc_ltcs_ltss_cbc_param_slices_per_ltc_v(u32 r)
180{
181 return (r >> 28U) & 0xfU;
182}
183static inline u32 ltc_ltcs_ltss_cbc_param2_r(void)
184{
185 return 0x0017e3f4U;
186}
187static inline u32 ltc_ltcs_ltss_cbc_param2_gobs_per_comptagline_per_slice_v(u32 r)
188{
189 return (r >> 0U) & 0xffffU;
190}
191static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_r(void)
192{
193 return 0x0017e2acU;
194}
195static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_max_ways_evict_last_f(u32 v)
196{
197 return (v & 0x1fU) << 16U;
198}
199static inline u32 ltc_ltcs_ltss_dstg_zbc_index_r(void)
200{
201 return 0x0017e338U;
202}
203static inline u32 ltc_ltcs_ltss_dstg_zbc_index_address_f(u32 v)
204{
205 return (v & 0xfU) << 0U;
206}
207static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value_r(u32 i)
208{
209 return 0x0017e33cU + i*4U;
210}
211static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value__size_1_v(void)
212{
213 return 0x00000004U;
214}
215static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_r(void)
216{
217 return 0x0017e34cU;
218}
219static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_s(void)
220{
221 return 32U;
222}
223static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_f(u32 v)
224{
225 return (v & 0xffffffffU) << 0U;
226}
227static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_m(void)
228{
229 return 0xffffffffU << 0U;
230}
231static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_v(u32 r)
232{
233 return (r >> 0U) & 0xffffffffU;
234}
235static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_r(void)
236{
237 return 0x0017e2b0U;
238}
239static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_l2_bypass_mode_enabled_f(void)
240{
241 return 0x10000000U;
242}
243static inline u32 ltc_ltcs_ltss_g_elpg_r(void)
244{
245 return 0x0017e214U;
246}
247static inline u32 ltc_ltcs_ltss_g_elpg_flush_v(u32 r)
248{
249 return (r >> 0U) & 0x1U;
250}
251static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_v(void)
252{
253 return 0x00000001U;
254}
255static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_f(void)
256{
257 return 0x1U;
258}
259static inline u32 ltc_ltc0_ltss_g_elpg_r(void)
260{
261 return 0x00140214U;
262}
263static inline u32 ltc_ltc0_ltss_g_elpg_flush_v(u32 r)
264{
265 return (r >> 0U) & 0x1U;
266}
267static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_v(void)
268{
269 return 0x00000001U;
270}
271static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_f(void)
272{
273 return 0x1U;
274}
275static inline u32 ltc_ltc1_ltss_g_elpg_r(void)
276{
277 return 0x00142214U;
278}
279static inline u32 ltc_ltc1_ltss_g_elpg_flush_v(u32 r)
280{
281 return (r >> 0U) & 0x1U;
282}
283static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_v(void)
284{
285 return 0x00000001U;
286}
287static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_f(void)
288{
289 return 0x1U;
290}
291static inline u32 ltc_ltcs_ltss_intr_r(void)
292{
293 return 0x0017e20cU;
294}
295static inline u32 ltc_ltcs_ltss_intr_ecc_sec_error_pending_f(void)
296{
297 return 0x100U;
298}
299static inline u32 ltc_ltcs_ltss_intr_ecc_ded_error_pending_f(void)
300{
301 return 0x200U;
302}
303static inline u32 ltc_ltcs_ltss_intr_en_evicted_cb_m(void)
304{
305 return 0x1U << 20U;
306}
307static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(void)
308{
309 return 0x1U << 30U;
310}
311static inline u32 ltc_ltcs_ltss_intr_en_ecc_sec_error_enabled_f(void)
312{
313 return 0x1000000U;
314}
315static inline u32 ltc_ltcs_ltss_intr_en_ecc_ded_error_enabled_f(void)
316{
317 return 0x2000000U;
318}
319static inline u32 ltc_ltc0_lts0_intr_r(void)
320{
321 return 0x0014040cU;
322}
323static inline u32 ltc_ltc0_lts0_dstg_ecc_report_r(void)
324{
325 return 0x0014051cU;
326}
327static inline u32 ltc_ltc0_lts0_dstg_ecc_report_sec_count_m(void)
328{
329 return 0xffU << 0U;
330}
331static inline u32 ltc_ltc0_lts0_dstg_ecc_report_sec_count_v(u32 r)
332{
333 return (r >> 0U) & 0xffU;
334}
335static inline u32 ltc_ltc0_lts0_dstg_ecc_report_ded_count_m(void)
336{
337 return 0xffU << 16U;
338}
339static inline u32 ltc_ltc0_lts0_dstg_ecc_report_ded_count_v(u32 r)
340{
341 return (r >> 16U) & 0xffU;
342}
343static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_r(void)
344{
345 return 0x0017e2a0U;
346}
347static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_v(u32 r)
348{
349 return (r >> 0U) & 0x1U;
350}
351static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_v(void)
352{
353 return 0x00000001U;
354}
355static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_f(void)
356{
357 return 0x1U;
358}
359static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_v(u32 r)
360{
361 return (r >> 8U) & 0xfU;
362}
363static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_v(void)
364{
365 return 0x00000003U;
366}
367static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_f(void)
368{
369 return 0x300U;
370}
371static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_v(u32 r)
372{
373 return (r >> 28U) & 0x1U;
374}
375static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_v(void)
376{
377 return 0x00000001U;
378}
379static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_f(void)
380{
381 return 0x10000000U;
382}
383static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_v(u32 r)
384{
385 return (r >> 29U) & 0x1U;
386}
387static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_v(void)
388{
389 return 0x00000001U;
390}
391static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_f(void)
392{
393 return 0x20000000U;
394}
395static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_v(u32 r)
396{
397 return (r >> 30U) & 0x1U;
398}
399static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_v(void)
400{
401 return 0x00000001U;
402}
403static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_f(void)
404{
405 return 0x40000000U;
406}
407static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_r(void)
408{
409 return 0x0017e2a4U;
410}
411static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_v(u32 r)
412{
413 return (r >> 0U) & 0x1U;
414}
415static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_v(void)
416{
417 return 0x00000001U;
418}
419static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_f(void)
420{
421 return 0x1U;
422}
423static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_v(u32 r)
424{
425 return (r >> 8U) & 0xfU;
426}
427static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_v(void)
428{
429 return 0x00000003U;
430}
431static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_f(void)
432{
433 return 0x300U;
434}
435static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_v(u32 r)
436{
437 return (r >> 16U) & 0x1U;
438}
439static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_v(void)
440{
441 return 0x00000001U;
442}
443static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_f(void)
444{
445 return 0x10000U;
446}
447static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_v(u32 r)
448{
449 return (r >> 28U) & 0x1U;
450}
451static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_v(void)
452{
453 return 0x00000001U;
454}
455static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_f(void)
456{
457 return 0x10000000U;
458}
459static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_v(u32 r)
460{
461 return (r >> 29U) & 0x1U;
462}
463static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_v(void)
464{
465 return 0x00000001U;
466}
467static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_f(void)
468{
469 return 0x20000000U;
470}
471static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_v(u32 r)
472{
473 return (r >> 30U) & 0x1U;
474}
475static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_v(void)
476{
477 return 0x00000001U;
478}
479static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_f(void)
480{
481 return 0x40000000U;
482}
483static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_r(void)
484{
485 return 0x001402a0U;
486}
487static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_v(u32 r)
488{
489 return (r >> 0U) & 0x1U;
490}
491static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_v(void)
492{
493 return 0x00000001U;
494}
495static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_f(void)
496{
497 return 0x1U;
498}
499static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_r(void)
500{
501 return 0x001402a4U;
502}
503static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_v(u32 r)
504{
505 return (r >> 0U) & 0x1U;
506}
507static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_v(void)
508{
509 return 0x00000001U;
510}
511static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_f(void)
512{
513 return 0x1U;
514}
515static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_r(void)
516{
517 return 0x001422a0U;
518}
519static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_v(u32 r)
520{
521 return (r >> 0U) & 0x1U;
522}
523static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_v(void)
524{
525 return 0x00000001U;
526}
527static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_f(void)
528{
529 return 0x1U;
530}
531static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_r(void)
532{
533 return 0x001422a4U;
534}
535static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_v(u32 r)
536{
537 return (r >> 0U) & 0x1U;
538}
539static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_v(void)
540{
541 return 0x00000001U;
542}
543static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_f(void)
544{
545 return 0x1U;
546}
547static inline u32 ltc_ltc0_lts0_tstg_info_1_r(void)
548{
549 return 0x0014058cU;
550}
551static inline u32 ltc_ltc0_lts0_tstg_info_1_slice_size_in_kb_v(u32 r)
552{
553 return (r >> 0U) & 0xffffU;
554}
555static inline u32 ltc_ltc0_lts0_tstg_info_1_slices_per_l2_v(u32 r)
556{
557 return (r >> 16U) & 0x1fU;
558}
559#endif
diff --git a/include/nvgpu/hw/gp106/hw_mc_gp106.h b/include/nvgpu/hw/gp106/hw_mc_gp106.h
new file mode 100644
index 0000000..349e2d7
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_mc_gp106.h
@@ -0,0 +1,251 @@
1/*
2 * Copyright (c) 2016-2017, 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_mc_gp106_h_
57#define _hw_mc_gp106_h_
58
59static inline u32 mc_boot_0_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 mc_boot_0_architecture_v(u32 r)
64{
65 return (r >> 24U) & 0x1fU;
66}
67static inline u32 mc_boot_0_implementation_v(u32 r)
68{
69 return (r >> 20U) & 0xfU;
70}
71static inline u32 mc_boot_0_major_revision_v(u32 r)
72{
73 return (r >> 4U) & 0xfU;
74}
75static inline u32 mc_boot_0_minor_revision_v(u32 r)
76{
77 return (r >> 0U) & 0xfU;
78}
79static inline u32 mc_intr_r(u32 i)
80{
81 return 0x00000100U + i*4U;
82}
83static inline u32 mc_intr_pfifo_pending_f(void)
84{
85 return 0x100U;
86}
87static inline u32 mc_intr_replayable_fault_pending_f(void)
88{
89 return 0x200U;
90}
91static inline u32 mc_intr_pgraph_pending_f(void)
92{
93 return 0x1000U;
94}
95static inline u32 mc_intr_pmu_pending_f(void)
96{
97 return 0x1000000U;
98}
99static inline u32 mc_intr_ltc_pending_f(void)
100{
101 return 0x2000000U;
102}
103static inline u32 mc_intr_priv_ring_pending_f(void)
104{
105 return 0x40000000U;
106}
107static inline u32 mc_intr_pbus_pending_f(void)
108{
109 return 0x10000000U;
110}
111static inline u32 mc_intr_en_r(u32 i)
112{
113 return 0x00000140U + i*4U;
114}
115static inline u32 mc_intr_en_set_r(u32 i)
116{
117 return 0x00000160U + i*4U;
118}
119static inline u32 mc_intr_en_clear_r(u32 i)
120{
121 return 0x00000180U + i*4U;
122}
123static inline u32 mc_enable_r(void)
124{
125 return 0x00000200U;
126}
127static inline u32 mc_enable_xbar_enabled_f(void)
128{
129 return 0x4U;
130}
131static inline u32 mc_enable_l2_enabled_f(void)
132{
133 return 0x8U;
134}
135static inline u32 mc_enable_pmedia_s(void)
136{
137 return 1U;
138}
139static inline u32 mc_enable_pmedia_f(u32 v)
140{
141 return (v & 0x1U) << 4U;
142}
143static inline u32 mc_enable_pmedia_m(void)
144{
145 return 0x1U << 4U;
146}
147static inline u32 mc_enable_pmedia_v(u32 r)
148{
149 return (r >> 4U) & 0x1U;
150}
151static inline u32 mc_enable_priv_ring_enabled_f(void)
152{
153 return 0x20U;
154}
155static inline u32 mc_enable_ce0_m(void)
156{
157 return 0x1U << 6U;
158}
159static inline u32 mc_enable_pfifo_enabled_f(void)
160{
161 return 0x100U;
162}
163static inline u32 mc_enable_pgraph_enabled_f(void)
164{
165 return 0x1000U;
166}
167static inline u32 mc_enable_pwr_v(u32 r)
168{
169 return (r >> 13U) & 0x1U;
170}
171static inline u32 mc_enable_pwr_disabled_v(void)
172{
173 return 0x00000000U;
174}
175static inline u32 mc_enable_pwr_enabled_f(void)
176{
177 return 0x2000U;
178}
179static inline u32 mc_enable_pfb_enabled_f(void)
180{
181 return 0x100000U;
182}
183static inline u32 mc_enable_ce2_m(void)
184{
185 return 0x1U << 21U;
186}
187static inline u32 mc_enable_ce2_enabled_f(void)
188{
189 return 0x200000U;
190}
191static inline u32 mc_enable_blg_enabled_f(void)
192{
193 return 0x8000000U;
194}
195static inline u32 mc_enable_perfmon_enabled_f(void)
196{
197 return 0x10000000U;
198}
199static inline u32 mc_enable_hub_enabled_f(void)
200{
201 return 0x20000000U;
202}
203static inline u32 mc_intr_ltc_r(void)
204{
205 return 0x000001c0U;
206}
207static inline u32 mc_enable_pb_r(void)
208{
209 return 0x00000204U;
210}
211static inline u32 mc_enable_pb_0_s(void)
212{
213 return 1U;
214}
215static inline u32 mc_enable_pb_0_f(u32 v)
216{
217 return (v & 0x1U) << 0U;
218}
219static inline u32 mc_enable_pb_0_m(void)
220{
221 return 0x1U << 0U;
222}
223static inline u32 mc_enable_pb_0_v(u32 r)
224{
225 return (r >> 0U) & 0x1U;
226}
227static inline u32 mc_enable_pb_0_enabled_v(void)
228{
229 return 0x00000001U;
230}
231static inline u32 mc_enable_pb_sel_f(u32 v, u32 i)
232{
233 return (v & 0x1U) << (0U + i*1U);
234}
235static inline u32 mc_elpg_enable_r(void)
236{
237 return 0x0000020cU;
238}
239static inline u32 mc_elpg_enable_xbar_enabled_f(void)
240{
241 return 0x4U;
242}
243static inline u32 mc_elpg_enable_pfb_enabled_f(void)
244{
245 return 0x100000U;
246}
247static inline u32 mc_elpg_enable_hub_enabled_f(void)
248{
249 return 0x20000000U;
250}
251#endif
diff --git a/include/nvgpu/hw/gp106/hw_pbdma_gp106.h b/include/nvgpu/hw/gp106/hw_pbdma_gp106.h
new file mode 100644
index 0000000..1005c5a
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_pbdma_gp106.h
@@ -0,0 +1,535 @@
1/*
2 * Copyright (c) 2016-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_pbdma_gp106_h_
57#define _hw_pbdma_gp106_h_
58
59static inline u32 pbdma_gp_entry1_r(void)
60{
61 return 0x10000004U;
62}
63static inline u32 pbdma_gp_entry1_get_hi_v(u32 r)
64{
65 return (r >> 0U) & 0xffU;
66}
67static inline u32 pbdma_gp_entry1_length_f(u32 v)
68{
69 return (v & 0x1fffffU) << 10U;
70}
71static inline u32 pbdma_gp_entry1_length_v(u32 r)
72{
73 return (r >> 10U) & 0x1fffffU;
74}
75static inline u32 pbdma_gp_base_r(u32 i)
76{
77 return 0x00040048U + i*8192U;
78}
79static inline u32 pbdma_gp_base__size_1_v(void)
80{
81 return 0x00000004U;
82}
83static inline u32 pbdma_gp_base_offset_f(u32 v)
84{
85 return (v & 0x1fffffffU) << 3U;
86}
87static inline u32 pbdma_gp_base_rsvd_s(void)
88{
89 return 3U;
90}
91static inline u32 pbdma_gp_base_hi_r(u32 i)
92{
93 return 0x0004004cU + i*8192U;
94}
95static inline u32 pbdma_gp_base_hi_offset_f(u32 v)
96{
97 return (v & 0xffU) << 0U;
98}
99static inline u32 pbdma_gp_base_hi_limit2_f(u32 v)
100{
101 return (v & 0x1fU) << 16U;
102}
103static inline u32 pbdma_gp_fetch_r(u32 i)
104{
105 return 0x00040050U + i*8192U;
106}
107static inline u32 pbdma_gp_get_r(u32 i)
108{
109 return 0x00040014U + i*8192U;
110}
111static inline u32 pbdma_gp_put_r(u32 i)
112{
113 return 0x00040000U + i*8192U;
114}
115static inline u32 pbdma_pb_fetch_r(u32 i)
116{
117 return 0x00040054U + i*8192U;
118}
119static inline u32 pbdma_pb_fetch_hi_r(u32 i)
120{
121 return 0x00040058U + i*8192U;
122}
123static inline u32 pbdma_get_r(u32 i)
124{
125 return 0x00040018U + i*8192U;
126}
127static inline u32 pbdma_get_hi_r(u32 i)
128{
129 return 0x0004001cU + i*8192U;
130}
131static inline u32 pbdma_put_r(u32 i)
132{
133 return 0x0004005cU + i*8192U;
134}
135static inline u32 pbdma_put_hi_r(u32 i)
136{
137 return 0x00040060U + i*8192U;
138}
139static inline u32 pbdma_formats_r(u32 i)
140{
141 return 0x0004009cU + i*8192U;
142}
143static inline u32 pbdma_formats_gp_fermi0_f(void)
144{
145 return 0x0U;
146}
147static inline u32 pbdma_formats_pb_fermi1_f(void)
148{
149 return 0x100U;
150}
151static inline u32 pbdma_formats_mp_fermi0_f(void)
152{
153 return 0x0U;
154}
155static inline u32 pbdma_pb_header_r(u32 i)
156{
157 return 0x00040084U + i*8192U;
158}
159static inline u32 pbdma_pb_header_priv_user_f(void)
160{
161 return 0x0U;
162}
163static inline u32 pbdma_pb_header_method_zero_f(void)
164{
165 return 0x0U;
166}
167static inline u32 pbdma_pb_header_subchannel_zero_f(void)
168{
169 return 0x0U;
170}
171static inline u32 pbdma_pb_header_level_main_f(void)
172{
173 return 0x0U;
174}
175static inline u32 pbdma_pb_header_first_true_f(void)
176{
177 return 0x400000U;
178}
179static inline u32 pbdma_pb_header_type_inc_f(void)
180{
181 return 0x20000000U;
182}
183static inline u32 pbdma_pb_header_type_non_inc_f(void)
184{
185 return 0x60000000U;
186}
187static inline u32 pbdma_hdr_shadow_r(u32 i)
188{
189 return 0x00040118U + i*8192U;
190}
191static inline u32 pbdma_gp_shadow_0_r(u32 i)
192{
193 return 0x00040110U + i*8192U;
194}
195static inline u32 pbdma_gp_shadow_1_r(u32 i)
196{
197 return 0x00040114U + i*8192U;
198}
199static inline u32 pbdma_subdevice_r(u32 i)
200{
201 return 0x00040094U + i*8192U;
202}
203static inline u32 pbdma_subdevice_id_f(u32 v)
204{
205 return (v & 0xfffU) << 0U;
206}
207static inline u32 pbdma_subdevice_status_active_f(void)
208{
209 return 0x10000000U;
210}
211static inline u32 pbdma_subdevice_channel_dma_enable_f(void)
212{
213 return 0x20000000U;
214}
215static inline u32 pbdma_method0_r(u32 i)
216{
217 return 0x000400c0U + i*8192U;
218}
219static inline u32 pbdma_method0_fifo_size_v(void)
220{
221 return 0x00000004U;
222}
223static inline u32 pbdma_method0_addr_f(u32 v)
224{
225 return (v & 0xfffU) << 2U;
226}
227static inline u32 pbdma_method0_addr_v(u32 r)
228{
229 return (r >> 2U) & 0xfffU;
230}
231static inline u32 pbdma_method0_subch_v(u32 r)
232{
233 return (r >> 16U) & 0x7U;
234}
235static inline u32 pbdma_method0_first_true_f(void)
236{
237 return 0x400000U;
238}
239static inline u32 pbdma_method0_valid_true_f(void)
240{
241 return 0x80000000U;
242}
243static inline u32 pbdma_method1_r(u32 i)
244{
245 return 0x000400c8U + i*8192U;
246}
247static inline u32 pbdma_method2_r(u32 i)
248{
249 return 0x000400d0U + i*8192U;
250}
251static inline u32 pbdma_method3_r(u32 i)
252{
253 return 0x000400d8U + i*8192U;
254}
255static inline u32 pbdma_data0_r(u32 i)
256{
257 return 0x000400c4U + i*8192U;
258}
259static inline u32 pbdma_target_r(u32 i)
260{
261 return 0x000400acU + i*8192U;
262}
263static inline u32 pbdma_target_engine_sw_f(void)
264{
265 return 0x1fU;
266}
267static inline u32 pbdma_acquire_r(u32 i)
268{
269 return 0x00040030U + i*8192U;
270}
271static inline u32 pbdma_acquire_retry_man_2_f(void)
272{
273 return 0x2U;
274}
275static inline u32 pbdma_acquire_retry_exp_2_f(void)
276{
277 return 0x100U;
278}
279static inline u32 pbdma_acquire_timeout_exp_max_f(void)
280{
281 return 0x7800U;
282}
283static inline u32 pbdma_acquire_timeout_man_max_f(void)
284{
285 return 0x7fff8000U;
286}
287static inline u32 pbdma_acquire_timeout_en_disable_f(void)
288{
289 return 0x0U;
290}
291static inline u32 pbdma_status_r(u32 i)
292{
293 return 0x00040100U + i*8192U;
294}
295static inline u32 pbdma_channel_r(u32 i)
296{
297 return 0x00040120U + i*8192U;
298}
299static inline u32 pbdma_signature_r(u32 i)
300{
301 return 0x00040010U + i*8192U;
302}
303static inline u32 pbdma_signature_hw_valid_f(void)
304{
305 return 0xfaceU;
306}
307static inline u32 pbdma_signature_sw_zero_f(void)
308{
309 return 0x0U;
310}
311static inline u32 pbdma_userd_r(u32 i)
312{
313 return 0x00040008U + i*8192U;
314}
315static inline u32 pbdma_userd_target_vid_mem_f(void)
316{
317 return 0x0U;
318}
319static inline u32 pbdma_userd_target_sys_mem_coh_f(void)
320{
321 return 0x2U;
322}
323static inline u32 pbdma_userd_target_sys_mem_ncoh_f(void)
324{
325 return 0x3U;
326}
327static inline u32 pbdma_userd_addr_f(u32 v)
328{
329 return (v & 0x7fffffU) << 9U;
330}
331static inline u32 pbdma_userd_hi_r(u32 i)
332{
333 return 0x0004000cU + i*8192U;
334}
335static inline u32 pbdma_userd_hi_addr_f(u32 v)
336{
337 return (v & 0xffU) << 0U;
338}
339static inline u32 pbdma_config_r(u32 i)
340{
341 return 0x000400f4U + i*8192U;
342}
343static inline u32 pbdma_config_auth_level_privileged_f(void)
344{
345 return 0x100U;
346}
347static inline u32 pbdma_hce_ctrl_r(u32 i)
348{
349 return 0x000400e4U + i*8192U;
350}
351static inline u32 pbdma_hce_ctrl_hce_priv_mode_yes_f(void)
352{
353 return 0x20U;
354}
355static inline u32 pbdma_intr_0_r(u32 i)
356{
357 return 0x00040108U + i*8192U;
358}
359static inline u32 pbdma_intr_0_memreq_v(u32 r)
360{
361 return (r >> 0U) & 0x1U;
362}
363static inline u32 pbdma_intr_0_memreq_pending_f(void)
364{
365 return 0x1U;
366}
367static inline u32 pbdma_intr_0_memack_timeout_pending_f(void)
368{
369 return 0x2U;
370}
371static inline u32 pbdma_intr_0_memack_extra_pending_f(void)
372{
373 return 0x4U;
374}
375static inline u32 pbdma_intr_0_memdat_timeout_pending_f(void)
376{
377 return 0x8U;
378}
379static inline u32 pbdma_intr_0_memdat_extra_pending_f(void)
380{
381 return 0x10U;
382}
383static inline u32 pbdma_intr_0_memflush_pending_f(void)
384{
385 return 0x20U;
386}
387static inline u32 pbdma_intr_0_memop_pending_f(void)
388{
389 return 0x40U;
390}
391static inline u32 pbdma_intr_0_lbconnect_pending_f(void)
392{
393 return 0x80U;
394}
395static inline u32 pbdma_intr_0_lbreq_pending_f(void)
396{
397 return 0x100U;
398}
399static inline u32 pbdma_intr_0_lback_timeout_pending_f(void)
400{
401 return 0x200U;
402}
403static inline u32 pbdma_intr_0_lback_extra_pending_f(void)
404{
405 return 0x400U;
406}
407static inline u32 pbdma_intr_0_lbdat_timeout_pending_f(void)
408{
409 return 0x800U;
410}
411static inline u32 pbdma_intr_0_lbdat_extra_pending_f(void)
412{
413 return 0x1000U;
414}
415static inline u32 pbdma_intr_0_gpfifo_pending_f(void)
416{
417 return 0x2000U;
418}
419static inline u32 pbdma_intr_0_gpptr_pending_f(void)
420{
421 return 0x4000U;
422}
423static inline u32 pbdma_intr_0_gpentry_pending_f(void)
424{
425 return 0x8000U;
426}
427static inline u32 pbdma_intr_0_gpcrc_pending_f(void)
428{
429 return 0x10000U;
430}
431static inline u32 pbdma_intr_0_pbptr_pending_f(void)
432{
433 return 0x20000U;
434}
435static inline u32 pbdma_intr_0_pbentry_pending_f(void)
436{
437 return 0x40000U;
438}
439static inline u32 pbdma_intr_0_pbcrc_pending_f(void)
440{
441 return 0x80000U;
442}
443static inline u32 pbdma_intr_0_xbarconnect_pending_f(void)
444{
445 return 0x100000U;
446}
447static inline u32 pbdma_intr_0_method_pending_f(void)
448{
449 return 0x200000U;
450}
451static inline u32 pbdma_intr_0_methodcrc_pending_f(void)
452{
453 return 0x400000U;
454}
455static inline u32 pbdma_intr_0_device_pending_f(void)
456{
457 return 0x800000U;
458}
459static inline u32 pbdma_intr_0_semaphore_pending_f(void)
460{
461 return 0x2000000U;
462}
463static inline u32 pbdma_intr_0_acquire_pending_f(void)
464{
465 return 0x4000000U;
466}
467static inline u32 pbdma_intr_0_pri_pending_f(void)
468{
469 return 0x8000000U;
470}
471static inline u32 pbdma_intr_0_no_ctxsw_seg_pending_f(void)
472{
473 return 0x20000000U;
474}
475static inline u32 pbdma_intr_0_pbseg_pending_f(void)
476{
477 return 0x40000000U;
478}
479static inline u32 pbdma_intr_0_signature_pending_f(void)
480{
481 return 0x80000000U;
482}
483static inline u32 pbdma_intr_1_r(u32 i)
484{
485 return 0x00040148U + i*8192U;
486}
487static inline u32 pbdma_intr_en_0_r(u32 i)
488{
489 return 0x0004010cU + i*8192U;
490}
491static inline u32 pbdma_intr_en_0_lbreq_enabled_f(void)
492{
493 return 0x100U;
494}
495static inline u32 pbdma_intr_en_1_r(u32 i)
496{
497 return 0x0004014cU + i*8192U;
498}
499static inline u32 pbdma_intr_stall_r(u32 i)
500{
501 return 0x0004013cU + i*8192U;
502}
503static inline u32 pbdma_intr_stall_lbreq_enabled_f(void)
504{
505 return 0x100U;
506}
507static inline u32 pbdma_intr_stall_1_r(u32 i)
508{
509 return 0x00040140U + i*8192U;
510}
511static inline u32 pbdma_intr_stall_1_hce_illegal_op_enabled_f(void)
512{
513 return 0x1U;
514}
515static inline u32 pbdma_udma_nop_r(void)
516{
517 return 0x00000008U;
518}
519static inline u32 pbdma_runlist_timeslice_r(u32 i)
520{
521 return 0x000400f8U + i*8192U;
522}
523static inline u32 pbdma_runlist_timeslice_timeout_128_f(void)
524{
525 return 0x80U;
526}
527static inline u32 pbdma_runlist_timeslice_timescale_3_f(void)
528{
529 return 0x3000U;
530}
531static inline u32 pbdma_runlist_timeslice_enable_true_f(void)
532{
533 return 0x10000000U;
534}
535#endif
diff --git a/include/nvgpu/hw/gp106/hw_perf_gp106.h b/include/nvgpu/hw/gp106/hw_perf_gp106.h
new file mode 100644
index 0000000..334cd20
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_perf_gp106.h
@@ -0,0 +1,219 @@
1/*
2 * Copyright (c) 2016-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_perf_gp106_h_
57#define _hw_perf_gp106_h_
58
59static inline u32 perf_pmmsys_base_v(void)
60{
61 return 0x001b0000U;
62}
63static inline u32 perf_pmmsys_extent_v(void)
64{
65 return 0x001b0fffU;
66}
67static inline u32 perf_pmasys_control_r(void)
68{
69 return 0x001b4000U;
70}
71static inline u32 perf_pmasys_control_membuf_status_v(u32 r)
72{
73 return (r >> 4U) & 0x1U;
74}
75static inline u32 perf_pmasys_control_membuf_status_overflowed_v(void)
76{
77 return 0x00000001U;
78}
79static inline u32 perf_pmasys_control_membuf_status_overflowed_f(void)
80{
81 return 0x10U;
82}
83static inline u32 perf_pmasys_control_membuf_clear_status_f(u32 v)
84{
85 return (v & 0x1U) << 5U;
86}
87static inline u32 perf_pmasys_control_membuf_clear_status_v(u32 r)
88{
89 return (r >> 5U) & 0x1U;
90}
91static inline u32 perf_pmasys_control_membuf_clear_status_doit_v(void)
92{
93 return 0x00000001U;
94}
95static inline u32 perf_pmasys_control_membuf_clear_status_doit_f(void)
96{
97 return 0x20U;
98}
99static inline u32 perf_pmasys_mem_block_r(void)
100{
101 return 0x001b4070U;
102}
103static inline u32 perf_pmasys_mem_block_base_f(u32 v)
104{
105 return (v & 0xfffffffU) << 0U;
106}
107static inline u32 perf_pmasys_mem_block_target_f(u32 v)
108{
109 return (v & 0x3U) << 28U;
110}
111static inline u32 perf_pmasys_mem_block_target_v(u32 r)
112{
113 return (r >> 28U) & 0x3U;
114}
115static inline u32 perf_pmasys_mem_block_target_lfb_v(void)
116{
117 return 0x00000000U;
118}
119static inline u32 perf_pmasys_mem_block_target_lfb_f(void)
120{
121 return 0x0U;
122}
123static inline u32 perf_pmasys_mem_block_target_sys_coh_v(void)
124{
125 return 0x00000002U;
126}
127static inline u32 perf_pmasys_mem_block_target_sys_coh_f(void)
128{
129 return 0x20000000U;
130}
131static inline u32 perf_pmasys_mem_block_target_sys_ncoh_v(void)
132{
133 return 0x00000003U;
134}
135static inline u32 perf_pmasys_mem_block_target_sys_ncoh_f(void)
136{
137 return 0x30000000U;
138}
139static inline u32 perf_pmasys_mem_block_valid_f(u32 v)
140{
141 return (v & 0x1U) << 31U;
142}
143static inline u32 perf_pmasys_mem_block_valid_v(u32 r)
144{
145 return (r >> 31U) & 0x1U;
146}
147static inline u32 perf_pmasys_mem_block_valid_true_v(void)
148{
149 return 0x00000001U;
150}
151static inline u32 perf_pmasys_mem_block_valid_true_f(void)
152{
153 return 0x80000000U;
154}
155static inline u32 perf_pmasys_mem_block_valid_false_v(void)
156{
157 return 0x00000000U;
158}
159static inline u32 perf_pmasys_mem_block_valid_false_f(void)
160{
161 return 0x0U;
162}
163static inline u32 perf_pmasys_outbase_r(void)
164{
165 return 0x001b4074U;
166}
167static inline u32 perf_pmasys_outbase_ptr_f(u32 v)
168{
169 return (v & 0x7ffffffU) << 5U;
170}
171static inline u32 perf_pmasys_outbaseupper_r(void)
172{
173 return 0x001b4078U;
174}
175static inline u32 perf_pmasys_outbaseupper_ptr_f(u32 v)
176{
177 return (v & 0xffU) << 0U;
178}
179static inline u32 perf_pmasys_outsize_r(void)
180{
181 return 0x001b407cU;
182}
183static inline u32 perf_pmasys_outsize_numbytes_f(u32 v)
184{
185 return (v & 0x7ffffffU) << 5U;
186}
187static inline u32 perf_pmasys_mem_bytes_r(void)
188{
189 return 0x001b4084U;
190}
191static inline u32 perf_pmasys_mem_bytes_numbytes_f(u32 v)
192{
193 return (v & 0xfffffffU) << 4U;
194}
195static inline u32 perf_pmasys_mem_bump_r(void)
196{
197 return 0x001b4088U;
198}
199static inline u32 perf_pmasys_mem_bump_numbytes_f(u32 v)
200{
201 return (v & 0xfffffffU) << 4U;
202}
203static inline u32 perf_pmasys_enginestatus_r(void)
204{
205 return 0x001b40a4U;
206}
207static inline u32 perf_pmasys_enginestatus_rbufempty_f(u32 v)
208{
209 return (v & 0x1U) << 4U;
210}
211static inline u32 perf_pmasys_enginestatus_rbufempty_empty_v(void)
212{
213 return 0x00000001U;
214}
215static inline u32 perf_pmasys_enginestatus_rbufempty_empty_f(void)
216{
217 return 0x10U;
218}
219#endif
diff --git a/include/nvgpu/hw/gp106/hw_pram_gp106.h b/include/nvgpu/hw/gp106/hw_pram_gp106.h
new file mode 100644
index 0000000..7e33e71
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_pram_gp106.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (c) 2017, 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_pram_gp106_h_
57#define _hw_pram_gp106_h_
58
59static inline u32 pram_data032_r(u32 i)
60{
61 return 0x00700000U + i*4U;
62}
63#endif
diff --git a/include/nvgpu/hw/gp106/hw_pri_ringmaster_gp106.h b/include/nvgpu/hw/gp106/hw_pri_ringmaster_gp106.h
new file mode 100644
index 0000000..efdedc3
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_pri_ringmaster_gp106.h
@@ -0,0 +1,151 @@
1/*
2 * Copyright (c) 2016-2017, 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_pri_ringmaster_gp106_h_
57#define _hw_pri_ringmaster_gp106_h_
58
59static inline u32 pri_ringmaster_command_r(void)
60{
61 return 0x0012004cU;
62}
63static inline u32 pri_ringmaster_command_cmd_m(void)
64{
65 return 0x3fU << 0U;
66}
67static inline u32 pri_ringmaster_command_cmd_v(u32 r)
68{
69 return (r >> 0U) & 0x3fU;
70}
71static inline u32 pri_ringmaster_command_cmd_no_cmd_v(void)
72{
73 return 0x00000000U;
74}
75static inline u32 pri_ringmaster_command_cmd_start_ring_f(void)
76{
77 return 0x1U;
78}
79static inline u32 pri_ringmaster_command_cmd_ack_interrupt_f(void)
80{
81 return 0x2U;
82}
83static inline u32 pri_ringmaster_command_cmd_enumerate_stations_f(void)
84{
85 return 0x3U;
86}
87static inline u32 pri_ringmaster_command_cmd_enumerate_stations_bc_grp_all_f(void)
88{
89 return 0x0U;
90}
91static inline u32 pri_ringmaster_command_data_r(void)
92{
93 return 0x00120048U;
94}
95static inline u32 pri_ringmaster_start_results_r(void)
96{
97 return 0x00120050U;
98}
99static inline u32 pri_ringmaster_start_results_connectivity_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 pri_ringmaster_start_results_connectivity_pass_v(void)
104{
105 return 0x00000001U;
106}
107static inline u32 pri_ringmaster_intr_status0_r(void)
108{
109 return 0x00120058U;
110}
111static inline u32 pri_ringmaster_intr_status1_r(void)
112{
113 return 0x0012005cU;
114}
115static inline u32 pri_ringmaster_global_ctl_r(void)
116{
117 return 0x00120060U;
118}
119static inline u32 pri_ringmaster_global_ctl_ring_reset_asserted_f(void)
120{
121 return 0x1U;
122}
123static inline u32 pri_ringmaster_global_ctl_ring_reset_deasserted_f(void)
124{
125 return 0x0U;
126}
127static inline u32 pri_ringmaster_enum_fbp_r(void)
128{
129 return 0x00120074U;
130}
131static inline u32 pri_ringmaster_enum_fbp_count_v(u32 r)
132{
133 return (r >> 0U) & 0x1fU;
134}
135static inline u32 pri_ringmaster_enum_gpc_r(void)
136{
137 return 0x00120078U;
138}
139static inline u32 pri_ringmaster_enum_gpc_count_v(u32 r)
140{
141 return (r >> 0U) & 0x1fU;
142}
143static inline u32 pri_ringmaster_enum_ltc_r(void)
144{
145 return 0x0012006cU;
146}
147static inline u32 pri_ringmaster_enum_ltc_count_v(u32 r)
148{
149 return (r >> 0U) & 0x1fU;
150}
151#endif
diff --git a/include/nvgpu/hw/gp106/hw_pri_ringstation_gpc_gp106.h b/include/nvgpu/hw/gp106/hw_pri_ringstation_gpc_gp106.h
new file mode 100644
index 0000000..711938d
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_pri_ringstation_gpc_gp106.h
@@ -0,0 +1,79 @@
1/*
2 * Copyright (c) 2017, 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_pri_ringstation_gpc_gp106_h_
57#define _hw_pri_ringstation_gpc_gp106_h_
58
59static inline u32 pri_ringstation_gpc_master_config_r(u32 i)
60{
61 return 0x00128300U + i*4U;
62}
63static inline u32 pri_ringstation_gpc_gpc0_priv_error_adr_r(void)
64{
65 return 0x00128120U;
66}
67static inline u32 pri_ringstation_gpc_gpc0_priv_error_wrdat_r(void)
68{
69 return 0x00128124U;
70}
71static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_r(void)
72{
73 return 0x00128128U;
74}
75static inline u32 pri_ringstation_gpc_gpc0_priv_error_code_r(void)
76{
77 return 0x0012812cU;
78}
79#endif
diff --git a/include/nvgpu/hw/gp106/hw_pri_ringstation_sys_gp106.h b/include/nvgpu/hw/gp106/hw_pri_ringstation_sys_gp106.h
new file mode 100644
index 0000000..a3a1447
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_pri_ringstation_sys_gp106.h
@@ -0,0 +1,91 @@
1/*
2 * Copyright (c) 2016-2017, 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_pri_ringstation_sys_gp106_h_
57#define _hw_pri_ringstation_sys_gp106_h_
58
59static inline u32 pri_ringstation_sys_master_config_r(u32 i)
60{
61 return 0x00122300U + i*4U;
62}
63static inline u32 pri_ringstation_sys_decode_config_r(void)
64{
65 return 0x00122204U;
66}
67static inline u32 pri_ringstation_sys_decode_config_ring_m(void)
68{
69 return 0x7U << 0U;
70}
71static inline u32 pri_ringstation_sys_decode_config_ring_drop_on_ring_not_started_f(void)
72{
73 return 0x1U;
74}
75static inline u32 pri_ringstation_sys_priv_error_adr_r(void)
76{
77 return 0x00122120U;
78}
79static inline u32 pri_ringstation_sys_priv_error_wrdat_r(void)
80{
81 return 0x00122124U;
82}
83static inline u32 pri_ringstation_sys_priv_error_info_r(void)
84{
85 return 0x00122128U;
86}
87static inline u32 pri_ringstation_sys_priv_error_code_r(void)
88{
89 return 0x0012212cU;
90}
91#endif
diff --git a/include/nvgpu/hw/gp106/hw_proj_gp106.h b/include/nvgpu/hw/gp106/hw_proj_gp106.h
new file mode 100644
index 0000000..866bc7b
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_proj_gp106.h
@@ -0,0 +1,179 @@
1/*
2 * Copyright (c) 2016-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_proj_gp106_h_
57#define _hw_proj_gp106_h_
58
59static inline u32 proj_gpc_base_v(void)
60{
61 return 0x00500000U;
62}
63static inline u32 proj_gpc_shared_base_v(void)
64{
65 return 0x00418000U;
66}
67static inline u32 proj_gpc_stride_v(void)
68{
69 return 0x00008000U;
70}
71static inline u32 proj_gpc_priv_stride_v(void)
72{
73 return 0x00000800U;
74}
75static inline u32 proj_ltc_stride_v(void)
76{
77 return 0x00002000U;
78}
79static inline u32 proj_lts_stride_v(void)
80{
81 return 0x00000200U;
82}
83static inline u32 proj_fbpa_base_v(void)
84{
85 return 0x00900000U;
86}
87static inline u32 proj_fbpa_shared_base_v(void)
88{
89 return 0x009a0000U;
90}
91static inline u32 proj_fbpa_stride_v(void)
92{
93 return 0x00004000U;
94}
95static inline u32 proj_ppc_in_gpc_base_v(void)
96{
97 return 0x00003000U;
98}
99static inline u32 proj_ppc_in_gpc_shared_base_v(void)
100{
101 return 0x00003e00U;
102}
103static inline u32 proj_ppc_in_gpc_stride_v(void)
104{
105 return 0x00000200U;
106}
107static inline u32 proj_rop_base_v(void)
108{
109 return 0x00410000U;
110}
111static inline u32 proj_rop_shared_base_v(void)
112{
113 return 0x00408800U;
114}
115static inline u32 proj_rop_stride_v(void)
116{
117 return 0x00000400U;
118}
119static inline u32 proj_tpc_in_gpc_base_v(void)
120{
121 return 0x00004000U;
122}
123static inline u32 proj_tpc_in_gpc_stride_v(void)
124{
125 return 0x00000800U;
126}
127static inline u32 proj_tpc_in_gpc_shared_base_v(void)
128{
129 return 0x00001800U;
130}
131static inline u32 proj_host_num_engines_v(void)
132{
133 return 0x00000009U;
134}
135static inline u32 proj_host_num_pbdma_v(void)
136{
137 return 0x00000004U;
138}
139static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void)
140{
141 return 0x00000005U;
142}
143static inline u32 proj_scal_litter_num_sm_per_tpc_v(void)
144{
145 return 0x00000001U;
146}
147static inline u32 proj_scal_litter_num_fbps_v(void)
148{
149 return 0x00000006U;
150}
151static inline u32 proj_scal_litter_num_fbpas_v(void)
152{
153 return 0x00000006U;
154}
155static inline u32 proj_scal_litter_num_gpcs_v(void)
156{
157 return 0x00000006U;
158}
159static inline u32 proj_scal_litter_num_pes_per_gpc_v(void)
160{
161 return 0x00000003U;
162}
163static inline u32 proj_scal_litter_num_tpcs_per_pes_v(void)
164{
165 return 0x00000002U;
166}
167static inline u32 proj_scal_litter_num_zcull_banks_v(void)
168{
169 return 0x00000004U;
170}
171static inline u32 proj_scal_max_gpcs_v(void)
172{
173 return 0x00000020U;
174}
175static inline u32 proj_scal_max_tpc_per_gpc_v(void)
176{
177 return 0x00000008U;
178}
179#endif
diff --git a/include/nvgpu/hw/gp106/hw_psec_gp106.h b/include/nvgpu/hw/gp106/hw_psec_gp106.h
new file mode 100644
index 0000000..b91c09b
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_psec_gp106.h
@@ -0,0 +1,615 @@
1/*
2 * Copyright (c) 2016-2017, 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_psec_gp106_h_
57#define _hw_psec_gp106_h_
58
59static inline u32 psec_falcon_irqsset_r(void)
60{
61 return 0x00087000U;
62}
63static inline u32 psec_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 psec_falcon_irqsclr_r(void)
68{
69 return 0x00087004U;
70}
71static inline u32 psec_falcon_irqstat_r(void)
72{
73 return 0x00087008U;
74}
75static inline u32 psec_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 psec_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 psec_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 psec_falcon_irqmode_r(void)
88{
89 return 0x0008700cU;
90}
91static inline u32 psec_falcon_irqmset_r(void)
92{
93 return 0x00087010U;
94}
95static inline u32 psec_falcon_irqmset_gptmr_f(u32 v)
96{
97 return (v & 0x1U) << 0U;
98}
99static inline u32 psec_falcon_irqmset_wdtmr_f(u32 v)
100{
101 return (v & 0x1U) << 1U;
102}
103static inline u32 psec_falcon_irqmset_mthd_f(u32 v)
104{
105 return (v & 0x1U) << 2U;
106}
107static inline u32 psec_falcon_irqmset_ctxsw_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 psec_falcon_irqmset_halt_f(u32 v)
112{
113 return (v & 0x1U) << 4U;
114}
115static inline u32 psec_falcon_irqmset_exterr_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 psec_falcon_irqmset_swgen0_f(u32 v)
120{
121 return (v & 0x1U) << 6U;
122}
123static inline u32 psec_falcon_irqmset_swgen1_f(u32 v)
124{
125 return (v & 0x1U) << 7U;
126}
127static inline u32 psec_falcon_irqmclr_r(void)
128{
129 return 0x00087014U;
130}
131static inline u32 psec_falcon_irqmclr_gptmr_f(u32 v)
132{
133 return (v & 0x1U) << 0U;
134}
135static inline u32 psec_falcon_irqmclr_wdtmr_f(u32 v)
136{
137 return (v & 0x1U) << 1U;
138}
139static inline u32 psec_falcon_irqmclr_mthd_f(u32 v)
140{
141 return (v & 0x1U) << 2U;
142}
143static inline u32 psec_falcon_irqmclr_ctxsw_f(u32 v)
144{
145 return (v & 0x1U) << 3U;
146}
147static inline u32 psec_falcon_irqmclr_halt_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 psec_falcon_irqmclr_exterr_f(u32 v)
152{
153 return (v & 0x1U) << 5U;
154}
155static inline u32 psec_falcon_irqmclr_swgen0_f(u32 v)
156{
157 return (v & 0x1U) << 6U;
158}
159static inline u32 psec_falcon_irqmclr_swgen1_f(u32 v)
160{
161 return (v & 0x1U) << 7U;
162}
163static inline u32 psec_falcon_irqmclr_ext_f(u32 v)
164{
165 return (v & 0xffU) << 8U;
166}
167static inline u32 psec_falcon_irqmask_r(void)
168{
169 return 0x00087018U;
170}
171static inline u32 psec_falcon_irqdest_r(void)
172{
173 return 0x0008701cU;
174}
175static inline u32 psec_falcon_irqdest_host_gptmr_f(u32 v)
176{
177 return (v & 0x1U) << 0U;
178}
179static inline u32 psec_falcon_irqdest_host_wdtmr_f(u32 v)
180{
181 return (v & 0x1U) << 1U;
182}
183static inline u32 psec_falcon_irqdest_host_mthd_f(u32 v)
184{
185 return (v & 0x1U) << 2U;
186}
187static inline u32 psec_falcon_irqdest_host_ctxsw_f(u32 v)
188{
189 return (v & 0x1U) << 3U;
190}
191static inline u32 psec_falcon_irqdest_host_halt_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 psec_falcon_irqdest_host_exterr_f(u32 v)
196{
197 return (v & 0x1U) << 5U;
198}
199static inline u32 psec_falcon_irqdest_host_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 psec_falcon_irqdest_host_swgen1_f(u32 v)
204{
205 return (v & 0x1U) << 7U;
206}
207static inline u32 psec_falcon_irqdest_host_ext_f(u32 v)
208{
209 return (v & 0xffU) << 8U;
210}
211static inline u32 psec_falcon_irqdest_target_gptmr_f(u32 v)
212{
213 return (v & 0x1U) << 16U;
214}
215static inline u32 psec_falcon_irqdest_target_wdtmr_f(u32 v)
216{
217 return (v & 0x1U) << 17U;
218}
219static inline u32 psec_falcon_irqdest_target_mthd_f(u32 v)
220{
221 return (v & 0x1U) << 18U;
222}
223static inline u32 psec_falcon_irqdest_target_ctxsw_f(u32 v)
224{
225 return (v & 0x1U) << 19U;
226}
227static inline u32 psec_falcon_irqdest_target_halt_f(u32 v)
228{
229 return (v & 0x1U) << 20U;
230}
231static inline u32 psec_falcon_irqdest_target_exterr_f(u32 v)
232{
233 return (v & 0x1U) << 21U;
234}
235static inline u32 psec_falcon_irqdest_target_swgen0_f(u32 v)
236{
237 return (v & 0x1U) << 22U;
238}
239static inline u32 psec_falcon_irqdest_target_swgen1_f(u32 v)
240{
241 return (v & 0x1U) << 23U;
242}
243static inline u32 psec_falcon_irqdest_target_ext_f(u32 v)
244{
245 return (v & 0xffU) << 24U;
246}
247static inline u32 psec_falcon_curctx_r(void)
248{
249 return 0x00087050U;
250}
251static inline u32 psec_falcon_nxtctx_r(void)
252{
253 return 0x00087054U;
254}
255static inline u32 psec_falcon_mailbox0_r(void)
256{
257 return 0x00087040U;
258}
259static inline u32 psec_falcon_mailbox1_r(void)
260{
261 return 0x00087044U;
262}
263static inline u32 psec_falcon_itfen_r(void)
264{
265 return 0x00087048U;
266}
267static inline u32 psec_falcon_itfen_ctxen_enable_f(void)
268{
269 return 0x1U;
270}
271static inline u32 psec_falcon_idlestate_r(void)
272{
273 return 0x0008704cU;
274}
275static inline u32 psec_falcon_idlestate_falcon_busy_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 psec_falcon_idlestate_ext_busy_v(u32 r)
280{
281 return (r >> 1U) & 0x7fffU;
282}
283static inline u32 psec_falcon_os_r(void)
284{
285 return 0x00087080U;
286}
287static inline u32 psec_falcon_engctl_r(void)
288{
289 return 0x000870a4U;
290}
291static inline u32 psec_falcon_cpuctl_r(void)
292{
293 return 0x00087100U;
294}
295static inline u32 psec_falcon_cpuctl_startcpu_f(u32 v)
296{
297 return (v & 0x1U) << 1U;
298}
299static inline u32 psec_falcon_cpuctl_halt_intr_f(u32 v)
300{
301 return (v & 0x1U) << 4U;
302}
303static inline u32 psec_falcon_cpuctl_halt_intr_m(void)
304{
305 return 0x1U << 4U;
306}
307static inline u32 psec_falcon_cpuctl_halt_intr_v(u32 r)
308{
309 return (r >> 4U) & 0x1U;
310}
311static inline u32 psec_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
312{
313 return (v & 0x1U) << 6U;
314}
315static inline u32 psec_falcon_cpuctl_cpuctl_alias_en_m(void)
316{
317 return 0x1U << 6U;
318}
319static inline u32 psec_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
320{
321 return (r >> 6U) & 0x1U;
322}
323static inline u32 psec_falcon_cpuctl_alias_r(void)
324{
325 return 0x00087130U;
326}
327static inline u32 psec_falcon_cpuctl_alias_startcpu_f(u32 v)
328{
329 return (v & 0x1U) << 1U;
330}
331static inline u32 psec_falcon_imemc_r(u32 i)
332{
333 return 0x00087180U + i*16U;
334}
335static inline u32 psec_falcon_imemc_offs_f(u32 v)
336{
337 return (v & 0x3fU) << 2U;
338}
339static inline u32 psec_falcon_imemc_blk_f(u32 v)
340{
341 return (v & 0xffU) << 8U;
342}
343static inline u32 psec_falcon_imemc_aincw_f(u32 v)
344{
345 return (v & 0x1U) << 24U;
346}
347static inline u32 psec_falcon_imemd_r(u32 i)
348{
349 return 0x00087184U + i*16U;
350}
351static inline u32 psec_falcon_imemt_r(u32 i)
352{
353 return 0x00087188U + i*16U;
354}
355static inline u32 psec_falcon_sctl_r(void)
356{
357 return 0x00087240U;
358}
359static inline u32 psec_falcon_mmu_phys_sec_r(void)
360{
361 return 0x00100ce4U;
362}
363static inline u32 psec_falcon_bootvec_r(void)
364{
365 return 0x00087104U;
366}
367static inline u32 psec_falcon_bootvec_vec_f(u32 v)
368{
369 return (v & 0xffffffffU) << 0U;
370}
371static inline u32 psec_falcon_dmactl_r(void)
372{
373 return 0x0008710cU;
374}
375static inline u32 psec_falcon_dmactl_dmem_scrubbing_m(void)
376{
377 return 0x1U << 1U;
378}
379static inline u32 psec_falcon_dmactl_imem_scrubbing_m(void)
380{
381 return 0x1U << 2U;
382}
383static inline u32 psec_falcon_dmactl_require_ctx_f(u32 v)
384{
385 return (v & 0x1U) << 0U;
386}
387static inline u32 psec_falcon_hwcfg_r(void)
388{
389 return 0x00087108U;
390}
391static inline u32 psec_falcon_hwcfg_imem_size_v(u32 r)
392{
393 return (r >> 0U) & 0x1ffU;
394}
395static inline u32 psec_falcon_hwcfg_dmem_size_v(u32 r)
396{
397 return (r >> 9U) & 0x1ffU;
398}
399static inline u32 psec_falcon_dmatrfbase_r(void)
400{
401 return 0x00087110U;
402}
403static inline u32 psec_falcon_dmatrfbase1_r(void)
404{
405 return 0x00087128U;
406}
407static inline u32 psec_falcon_dmatrfmoffs_r(void)
408{
409 return 0x00087114U;
410}
411static inline u32 psec_falcon_dmatrfcmd_r(void)
412{
413 return 0x00087118U;
414}
415static inline u32 psec_falcon_dmatrfcmd_imem_f(u32 v)
416{
417 return (v & 0x1U) << 4U;
418}
419static inline u32 psec_falcon_dmatrfcmd_write_f(u32 v)
420{
421 return (v & 0x1U) << 5U;
422}
423static inline u32 psec_falcon_dmatrfcmd_size_f(u32 v)
424{
425 return (v & 0x7U) << 8U;
426}
427static inline u32 psec_falcon_dmatrfcmd_ctxdma_f(u32 v)
428{
429 return (v & 0x7U) << 12U;
430}
431static inline u32 psec_falcon_dmatrffboffs_r(void)
432{
433 return 0x0008711cU;
434}
435static inline u32 psec_falcon_exterraddr_r(void)
436{
437 return 0x00087168U;
438}
439static inline u32 psec_falcon_exterrstat_r(void)
440{
441 return 0x0008716cU;
442}
443static inline u32 psec_falcon_exterrstat_valid_m(void)
444{
445 return 0x1U << 31U;
446}
447static inline u32 psec_falcon_exterrstat_valid_v(u32 r)
448{
449 return (r >> 31U) & 0x1U;
450}
451static inline u32 psec_falcon_exterrstat_valid_true_v(void)
452{
453 return 0x00000001U;
454}
455static inline u32 psec_sec2_falcon_icd_cmd_r(void)
456{
457 return 0x00087200U;
458}
459static inline u32 psec_sec2_falcon_icd_cmd_opc_s(void)
460{
461 return 4U;
462}
463static inline u32 psec_sec2_falcon_icd_cmd_opc_f(u32 v)
464{
465 return (v & 0xfU) << 0U;
466}
467static inline u32 psec_sec2_falcon_icd_cmd_opc_m(void)
468{
469 return 0xfU << 0U;
470}
471static inline u32 psec_sec2_falcon_icd_cmd_opc_v(u32 r)
472{
473 return (r >> 0U) & 0xfU;
474}
475static inline u32 psec_sec2_falcon_icd_cmd_opc_rreg_f(void)
476{
477 return 0x8U;
478}
479static inline u32 psec_sec2_falcon_icd_cmd_opc_rstat_f(void)
480{
481 return 0xeU;
482}
483static inline u32 psec_sec2_falcon_icd_cmd_idx_f(u32 v)
484{
485 return (v & 0x1fU) << 8U;
486}
487static inline u32 psec_sec2_falcon_icd_rdata_r(void)
488{
489 return 0x0008720cU;
490}
491static inline u32 psec_falcon_dmemc_r(u32 i)
492{
493 return 0x000871c0U + i*8U;
494}
495static inline u32 psec_falcon_dmemc_offs_f(u32 v)
496{
497 return (v & 0x3fU) << 2U;
498}
499static inline u32 psec_falcon_dmemc_offs_m(void)
500{
501 return 0x3fU << 2U;
502}
503static inline u32 psec_falcon_dmemc_blk_f(u32 v)
504{
505 return (v & 0xffU) << 8U;
506}
507static inline u32 psec_falcon_dmemc_blk_m(void)
508{
509 return 0xffU << 8U;
510}
511static inline u32 psec_falcon_dmemc_aincw_f(u32 v)
512{
513 return (v & 0x1U) << 24U;
514}
515static inline u32 psec_falcon_dmemc_aincr_f(u32 v)
516{
517 return (v & 0x1U) << 25U;
518}
519static inline u32 psec_falcon_dmemd_r(u32 i)
520{
521 return 0x000871c4U + i*8U;
522}
523static inline u32 psec_falcon_debug1_r(void)
524{
525 return 0x00087090U;
526}
527static inline u32 psec_falcon_debug1_ctxsw_mode_s(void)
528{
529 return 1U;
530}
531static inline u32 psec_falcon_debug1_ctxsw_mode_f(u32 v)
532{
533 return (v & 0x1U) << 16U;
534}
535static inline u32 psec_falcon_debug1_ctxsw_mode_m(void)
536{
537 return 0x1U << 16U;
538}
539static inline u32 psec_falcon_debug1_ctxsw_mode_v(u32 r)
540{
541 return (r >> 16U) & 0x1U;
542}
543static inline u32 psec_falcon_debug1_ctxsw_mode_init_f(void)
544{
545 return 0x0U;
546}
547static inline u32 psec_fbif_transcfg_r(u32 i)
548{
549 return 0x00087600U + i*4U;
550}
551static inline u32 psec_fbif_transcfg_target_local_fb_f(void)
552{
553 return 0x0U;
554}
555static inline u32 psec_fbif_transcfg_target_coherent_sysmem_f(void)
556{
557 return 0x1U;
558}
559static inline u32 psec_fbif_transcfg_target_noncoherent_sysmem_f(void)
560{
561 return 0x2U;
562}
563static inline u32 psec_fbif_transcfg_mem_type_s(void)
564{
565 return 1U;
566}
567static inline u32 psec_fbif_transcfg_mem_type_f(u32 v)
568{
569 return (v & 0x1U) << 2U;
570}
571static inline u32 psec_fbif_transcfg_mem_type_m(void)
572{
573 return 0x1U << 2U;
574}
575static inline u32 psec_fbif_transcfg_mem_type_v(u32 r)
576{
577 return (r >> 2U) & 0x1U;
578}
579static inline u32 psec_fbif_transcfg_mem_type_virtual_f(void)
580{
581 return 0x0U;
582}
583static inline u32 psec_fbif_transcfg_mem_type_physical_f(void)
584{
585 return 0x4U;
586}
587static inline u32 psec_falcon_engine_r(void)
588{
589 return 0x000873c0U;
590}
591static inline u32 psec_falcon_engine_reset_true_f(void)
592{
593 return 0x1U;
594}
595static inline u32 psec_falcon_engine_reset_false_f(void)
596{
597 return 0x0U;
598}
599static inline u32 psec_fbif_ctl_r(void)
600{
601 return 0x00087624U;
602}
603static inline u32 psec_fbif_ctl_allow_phys_no_ctx_init_f(void)
604{
605 return 0x0U;
606}
607static inline u32 psec_fbif_ctl_allow_phys_no_ctx_disallow_f(void)
608{
609 return 0x0U;
610}
611static inline u32 psec_fbif_ctl_allow_phys_no_ctx_allow_f(void)
612{
613 return 0x80U;
614}
615#endif
diff --git a/include/nvgpu/hw/gp106/hw_pwr_gp106.h b/include/nvgpu/hw/gp106/hw_pwr_gp106.h
new file mode 100644
index 0000000..2e75fa6
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_pwr_gp106.h
@@ -0,0 +1,895 @@
1/*
2 * Copyright (c) 2016-2017, 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_pwr_gp106_h_
57#define _hw_pwr_gp106_h_
58
59static inline u32 pwr_falcon_irqsset_r(void)
60{
61 return 0x0010a000U;
62}
63static inline u32 pwr_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 pwr_falcon_irqsclr_r(void)
68{
69 return 0x0010a004U;
70}
71static inline u32 pwr_falcon_irqstat_r(void)
72{
73 return 0x0010a008U;
74}
75static inline u32 pwr_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 pwr_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 pwr_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 pwr_falcon_irqmode_r(void)
88{
89 return 0x0010a00cU;
90}
91static inline u32 pwr_falcon_irqmset_r(void)
92{
93 return 0x0010a010U;
94}
95static inline u32 pwr_falcon_irqmset_gptmr_f(u32 v)
96{
97 return (v & 0x1U) << 0U;
98}
99static inline u32 pwr_falcon_irqmset_wdtmr_f(u32 v)
100{
101 return (v & 0x1U) << 1U;
102}
103static inline u32 pwr_falcon_irqmset_mthd_f(u32 v)
104{
105 return (v & 0x1U) << 2U;
106}
107static inline u32 pwr_falcon_irqmset_ctxsw_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 pwr_falcon_irqmset_halt_f(u32 v)
112{
113 return (v & 0x1U) << 4U;
114}
115static inline u32 pwr_falcon_irqmset_exterr_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 pwr_falcon_irqmset_swgen0_f(u32 v)
120{
121 return (v & 0x1U) << 6U;
122}
123static inline u32 pwr_falcon_irqmset_swgen1_f(u32 v)
124{
125 return (v & 0x1U) << 7U;
126}
127static inline u32 pwr_falcon_irqmclr_r(void)
128{
129 return 0x0010a014U;
130}
131static inline u32 pwr_falcon_irqmclr_gptmr_f(u32 v)
132{
133 return (v & 0x1U) << 0U;
134}
135static inline u32 pwr_falcon_irqmclr_wdtmr_f(u32 v)
136{
137 return (v & 0x1U) << 1U;
138}
139static inline u32 pwr_falcon_irqmclr_mthd_f(u32 v)
140{
141 return (v & 0x1U) << 2U;
142}
143static inline u32 pwr_falcon_irqmclr_ctxsw_f(u32 v)
144{
145 return (v & 0x1U) << 3U;
146}
147static inline u32 pwr_falcon_irqmclr_halt_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 pwr_falcon_irqmclr_exterr_f(u32 v)
152{
153 return (v & 0x1U) << 5U;
154}
155static inline u32 pwr_falcon_irqmclr_swgen0_f(u32 v)
156{
157 return (v & 0x1U) << 6U;
158}
159static inline u32 pwr_falcon_irqmclr_swgen1_f(u32 v)
160{
161 return (v & 0x1U) << 7U;
162}
163static inline u32 pwr_falcon_irqmclr_ext_f(u32 v)
164{
165 return (v & 0xffU) << 8U;
166}
167static inline u32 pwr_falcon_irqmask_r(void)
168{
169 return 0x0010a018U;
170}
171static inline u32 pwr_falcon_irqdest_r(void)
172{
173 return 0x0010a01cU;
174}
175static inline u32 pwr_falcon_irqdest_host_gptmr_f(u32 v)
176{
177 return (v & 0x1U) << 0U;
178}
179static inline u32 pwr_falcon_irqdest_host_wdtmr_f(u32 v)
180{
181 return (v & 0x1U) << 1U;
182}
183static inline u32 pwr_falcon_irqdest_host_mthd_f(u32 v)
184{
185 return (v & 0x1U) << 2U;
186}
187static inline u32 pwr_falcon_irqdest_host_ctxsw_f(u32 v)
188{
189 return (v & 0x1U) << 3U;
190}
191static inline u32 pwr_falcon_irqdest_host_halt_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 pwr_falcon_irqdest_host_exterr_f(u32 v)
196{
197 return (v & 0x1U) << 5U;
198}
199static inline u32 pwr_falcon_irqdest_host_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 pwr_falcon_irqdest_host_swgen1_f(u32 v)
204{
205 return (v & 0x1U) << 7U;
206}
207static inline u32 pwr_falcon_irqdest_host_ext_f(u32 v)
208{
209 return (v & 0xffU) << 8U;
210}
211static inline u32 pwr_falcon_irqdest_target_gptmr_f(u32 v)
212{
213 return (v & 0x1U) << 16U;
214}
215static inline u32 pwr_falcon_irqdest_target_wdtmr_f(u32 v)
216{
217 return (v & 0x1U) << 17U;
218}
219static inline u32 pwr_falcon_irqdest_target_mthd_f(u32 v)
220{
221 return (v & 0x1U) << 18U;
222}
223static inline u32 pwr_falcon_irqdest_target_ctxsw_f(u32 v)
224{
225 return (v & 0x1U) << 19U;
226}
227static inline u32 pwr_falcon_irqdest_target_halt_f(u32 v)
228{
229 return (v & 0x1U) << 20U;
230}
231static inline u32 pwr_falcon_irqdest_target_exterr_f(u32 v)
232{
233 return (v & 0x1U) << 21U;
234}
235static inline u32 pwr_falcon_irqdest_target_swgen0_f(u32 v)
236{
237 return (v & 0x1U) << 22U;
238}
239static inline u32 pwr_falcon_irqdest_target_swgen1_f(u32 v)
240{
241 return (v & 0x1U) << 23U;
242}
243static inline u32 pwr_falcon_irqdest_target_ext_f(u32 v)
244{
245 return (v & 0xffU) << 24U;
246}
247static inline u32 pwr_falcon_curctx_r(void)
248{
249 return 0x0010a050U;
250}
251static inline u32 pwr_falcon_nxtctx_r(void)
252{
253 return 0x0010a054U;
254}
255static inline u32 pwr_falcon_mailbox0_r(void)
256{
257 return 0x0010a040U;
258}
259static inline u32 pwr_falcon_mailbox1_r(void)
260{
261 return 0x0010a044U;
262}
263static inline u32 pwr_falcon_itfen_r(void)
264{
265 return 0x0010a048U;
266}
267static inline u32 pwr_falcon_itfen_ctxen_enable_f(void)
268{
269 return 0x1U;
270}
271static inline u32 pwr_falcon_idlestate_r(void)
272{
273 return 0x0010a04cU;
274}
275static inline u32 pwr_falcon_idlestate_falcon_busy_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 pwr_falcon_idlestate_ext_busy_v(u32 r)
280{
281 return (r >> 1U) & 0x7fffU;
282}
283static inline u32 pwr_falcon_os_r(void)
284{
285 return 0x0010a080U;
286}
287static inline u32 pwr_falcon_engctl_r(void)
288{
289 return 0x0010a0a4U;
290}
291static inline u32 pwr_falcon_cpuctl_r(void)
292{
293 return 0x0010a100U;
294}
295static inline u32 pwr_falcon_cpuctl_startcpu_f(u32 v)
296{
297 return (v & 0x1U) << 1U;
298}
299static inline u32 pwr_falcon_cpuctl_halt_intr_f(u32 v)
300{
301 return (v & 0x1U) << 4U;
302}
303static inline u32 pwr_falcon_cpuctl_halt_intr_m(void)
304{
305 return 0x1U << 4U;
306}
307static inline u32 pwr_falcon_cpuctl_halt_intr_v(u32 r)
308{
309 return (r >> 4U) & 0x1U;
310}
311static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
312{
313 return (v & 0x1U) << 6U;
314}
315static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_m(void)
316{
317 return 0x1U << 6U;
318}
319static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
320{
321 return (r >> 6U) & 0x1U;
322}
323static inline u32 pwr_falcon_cpuctl_alias_r(void)
324{
325 return 0x0010a130U;
326}
327static inline u32 pwr_falcon_cpuctl_alias_startcpu_f(u32 v)
328{
329 return (v & 0x1U) << 1U;
330}
331static inline u32 pwr_pmu_scpctl_stat_r(void)
332{
333 return 0x0010ac08U;
334}
335static inline u32 pwr_pmu_scpctl_stat_debug_mode_f(u32 v)
336{
337 return (v & 0x1U) << 20U;
338}
339static inline u32 pwr_pmu_scpctl_stat_debug_mode_m(void)
340{
341 return 0x1U << 20U;
342}
343static inline u32 pwr_pmu_scpctl_stat_debug_mode_v(u32 r)
344{
345 return (r >> 20U) & 0x1U;
346}
347static inline u32 pwr_falcon_imemc_r(u32 i)
348{
349 return 0x0010a180U + i*16U;
350}
351static inline u32 pwr_falcon_imemc_offs_f(u32 v)
352{
353 return (v & 0x3fU) << 2U;
354}
355static inline u32 pwr_falcon_imemc_blk_f(u32 v)
356{
357 return (v & 0xffU) << 8U;
358}
359static inline u32 pwr_falcon_imemc_aincw_f(u32 v)
360{
361 return (v & 0x1U) << 24U;
362}
363static inline u32 pwr_falcon_imemd_r(u32 i)
364{
365 return 0x0010a184U + i*16U;
366}
367static inline u32 pwr_falcon_imemt_r(u32 i)
368{
369 return 0x0010a188U + i*16U;
370}
371static inline u32 pwr_falcon_sctl_r(void)
372{
373 return 0x0010a240U;
374}
375static inline u32 pwr_falcon_mmu_phys_sec_r(void)
376{
377 return 0x00100ce4U;
378}
379static inline u32 pwr_falcon_bootvec_r(void)
380{
381 return 0x0010a104U;
382}
383static inline u32 pwr_falcon_bootvec_vec_f(u32 v)
384{
385 return (v & 0xffffffffU) << 0U;
386}
387static inline u32 pwr_falcon_dmactl_r(void)
388{
389 return 0x0010a10cU;
390}
391static inline u32 pwr_falcon_dmactl_dmem_scrubbing_m(void)
392{
393 return 0x1U << 1U;
394}
395static inline u32 pwr_falcon_dmactl_imem_scrubbing_m(void)
396{
397 return 0x1U << 2U;
398}
399static inline u32 pwr_falcon_dmactl_require_ctx_f(u32 v)
400{
401 return (v & 0x1U) << 0U;
402}
403static inline u32 pwr_falcon_hwcfg_r(void)
404{
405 return 0x0010a108U;
406}
407static inline u32 pwr_falcon_hwcfg_imem_size_v(u32 r)
408{
409 return (r >> 0U) & 0x1ffU;
410}
411static inline u32 pwr_falcon_hwcfg_dmem_size_v(u32 r)
412{
413 return (r >> 9U) & 0x1ffU;
414}
415static inline u32 pwr_falcon_dmatrfbase_r(void)
416{
417 return 0x0010a110U;
418}
419static inline u32 pwr_falcon_dmatrfbase1_r(void)
420{
421 return 0x0010a128U;
422}
423static inline u32 pwr_falcon_dmatrfmoffs_r(void)
424{
425 return 0x0010a114U;
426}
427static inline u32 pwr_falcon_dmatrfcmd_r(void)
428{
429 return 0x0010a118U;
430}
431static inline u32 pwr_falcon_dmatrfcmd_imem_f(u32 v)
432{
433 return (v & 0x1U) << 4U;
434}
435static inline u32 pwr_falcon_dmatrfcmd_write_f(u32 v)
436{
437 return (v & 0x1U) << 5U;
438}
439static inline u32 pwr_falcon_dmatrfcmd_size_f(u32 v)
440{
441 return (v & 0x7U) << 8U;
442}
443static inline u32 pwr_falcon_dmatrfcmd_ctxdma_f(u32 v)
444{
445 return (v & 0x7U) << 12U;
446}
447static inline u32 pwr_falcon_dmatrffboffs_r(void)
448{
449 return 0x0010a11cU;
450}
451static inline u32 pwr_falcon_exterraddr_r(void)
452{
453 return 0x0010a168U;
454}
455static inline u32 pwr_falcon_exterrstat_r(void)
456{
457 return 0x0010a16cU;
458}
459static inline u32 pwr_falcon_exterrstat_valid_m(void)
460{
461 return 0x1U << 31U;
462}
463static inline u32 pwr_falcon_exterrstat_valid_v(u32 r)
464{
465 return (r >> 31U) & 0x1U;
466}
467static inline u32 pwr_falcon_exterrstat_valid_true_v(void)
468{
469 return 0x00000001U;
470}
471static inline u32 pwr_pmu_falcon_icd_cmd_r(void)
472{
473 return 0x0010a200U;
474}
475static inline u32 pwr_pmu_falcon_icd_cmd_opc_s(void)
476{
477 return 4U;
478}
479static inline u32 pwr_pmu_falcon_icd_cmd_opc_f(u32 v)
480{
481 return (v & 0xfU) << 0U;
482}
483static inline u32 pwr_pmu_falcon_icd_cmd_opc_m(void)
484{
485 return 0xfU << 0U;
486}
487static inline u32 pwr_pmu_falcon_icd_cmd_opc_v(u32 r)
488{
489 return (r >> 0U) & 0xfU;
490}
491static inline u32 pwr_pmu_falcon_icd_cmd_opc_rreg_f(void)
492{
493 return 0x8U;
494}
495static inline u32 pwr_pmu_falcon_icd_cmd_opc_rstat_f(void)
496{
497 return 0xeU;
498}
499static inline u32 pwr_pmu_falcon_icd_cmd_idx_f(u32 v)
500{
501 return (v & 0x1fU) << 8U;
502}
503static inline u32 pwr_pmu_falcon_icd_rdata_r(void)
504{
505 return 0x0010a20cU;
506}
507static inline u32 pwr_falcon_dmemc_r(u32 i)
508{
509 return 0x0010a1c0U + i*8U;
510}
511static inline u32 pwr_falcon_dmemc_offs_f(u32 v)
512{
513 return (v & 0x3fU) << 2U;
514}
515static inline u32 pwr_falcon_dmemc_offs_m(void)
516{
517 return 0x3fU << 2U;
518}
519static inline u32 pwr_falcon_dmemc_blk_f(u32 v)
520{
521 return (v & 0xffU) << 8U;
522}
523static inline u32 pwr_falcon_dmemc_blk_m(void)
524{
525 return 0xffU << 8U;
526}
527static inline u32 pwr_falcon_dmemc_aincw_f(u32 v)
528{
529 return (v & 0x1U) << 24U;
530}
531static inline u32 pwr_falcon_dmemc_aincr_f(u32 v)
532{
533 return (v & 0x1U) << 25U;
534}
535static inline u32 pwr_falcon_dmemd_r(u32 i)
536{
537 return 0x0010a1c4U + i*8U;
538}
539static inline u32 pwr_pmu_new_instblk_r(void)
540{
541 return 0x0010a480U;
542}
543static inline u32 pwr_pmu_new_instblk_ptr_f(u32 v)
544{
545 return (v & 0xfffffffU) << 0U;
546}
547static inline u32 pwr_pmu_new_instblk_target_fb_f(void)
548{
549 return 0x0U;
550}
551static inline u32 pwr_pmu_new_instblk_target_sys_coh_f(void)
552{
553 return 0x20000000U;
554}
555static inline u32 pwr_pmu_new_instblk_target_sys_ncoh_f(void)
556{
557 return 0x30000000U;
558}
559static inline u32 pwr_pmu_new_instblk_valid_f(u32 v)
560{
561 return (v & 0x1U) << 30U;
562}
563static inline u32 pwr_pmu_mutex_id_r(void)
564{
565 return 0x0010a488U;
566}
567static inline u32 pwr_pmu_mutex_id_value_v(u32 r)
568{
569 return (r >> 0U) & 0xffU;
570}
571static inline u32 pwr_pmu_mutex_id_value_init_v(void)
572{
573 return 0x00000000U;
574}
575static inline u32 pwr_pmu_mutex_id_value_not_avail_v(void)
576{
577 return 0x000000ffU;
578}
579static inline u32 pwr_pmu_mutex_id_release_r(void)
580{
581 return 0x0010a48cU;
582}
583static inline u32 pwr_pmu_mutex_id_release_value_f(u32 v)
584{
585 return (v & 0xffU) << 0U;
586}
587static inline u32 pwr_pmu_mutex_id_release_value_m(void)
588{
589 return 0xffU << 0U;
590}
591static inline u32 pwr_pmu_mutex_id_release_value_init_v(void)
592{
593 return 0x00000000U;
594}
595static inline u32 pwr_pmu_mutex_id_release_value_init_f(void)
596{
597 return 0x0U;
598}
599static inline u32 pwr_pmu_mutex_r(u32 i)
600{
601 return 0x0010a580U + i*4U;
602}
603static inline u32 pwr_pmu_mutex__size_1_v(void)
604{
605 return 0x00000010U;
606}
607static inline u32 pwr_pmu_mutex_value_f(u32 v)
608{
609 return (v & 0xffU) << 0U;
610}
611static inline u32 pwr_pmu_mutex_value_v(u32 r)
612{
613 return (r >> 0U) & 0xffU;
614}
615static inline u32 pwr_pmu_mutex_value_initial_lock_f(void)
616{
617 return 0x0U;
618}
619static inline u32 pwr_pmu_queue_head_r(u32 i)
620{
621 return 0x0010a4a0U + i*4U;
622}
623static inline u32 pwr_pmu_queue_head__size_1_v(void)
624{
625 return 0x00000004U;
626}
627static inline u32 pwr_pmu_queue_head_address_f(u32 v)
628{
629 return (v & 0xffffffffU) << 0U;
630}
631static inline u32 pwr_pmu_queue_head_address_v(u32 r)
632{
633 return (r >> 0U) & 0xffffffffU;
634}
635static inline u32 pwr_pmu_queue_tail_r(u32 i)
636{
637 return 0x0010a4b0U + i*4U;
638}
639static inline u32 pwr_pmu_queue_tail__size_1_v(void)
640{
641 return 0x00000004U;
642}
643static inline u32 pwr_pmu_queue_tail_address_f(u32 v)
644{
645 return (v & 0xffffffffU) << 0U;
646}
647static inline u32 pwr_pmu_queue_tail_address_v(u32 r)
648{
649 return (r >> 0U) & 0xffffffffU;
650}
651static inline u32 pwr_pmu_msgq_head_r(void)
652{
653 return 0x0010a4c8U;
654}
655static inline u32 pwr_pmu_msgq_head_val_f(u32 v)
656{
657 return (v & 0xffffffffU) << 0U;
658}
659static inline u32 pwr_pmu_msgq_head_val_v(u32 r)
660{
661 return (r >> 0U) & 0xffffffffU;
662}
663static inline u32 pwr_pmu_msgq_tail_r(void)
664{
665 return 0x0010a4ccU;
666}
667static inline u32 pwr_pmu_msgq_tail_val_f(u32 v)
668{
669 return (v & 0xffffffffU) << 0U;
670}
671static inline u32 pwr_pmu_msgq_tail_val_v(u32 r)
672{
673 return (r >> 0U) & 0xffffffffU;
674}
675static inline u32 pwr_pmu_idle_mask_r(u32 i)
676{
677 return 0x0010a504U + i*16U;
678}
679static inline u32 pwr_pmu_idle_mask_gr_enabled_f(void)
680{
681 return 0x1U;
682}
683static inline u32 pwr_pmu_idle_mask_ce_2_enabled_f(void)
684{
685 return 0x200000U;
686}
687static inline u32 pwr_pmu_idle_count_r(u32 i)
688{
689 return 0x0010a508U + i*16U;
690}
691static inline u32 pwr_pmu_idle_count_value_f(u32 v)
692{
693 return (v & 0x7fffffffU) << 0U;
694}
695static inline u32 pwr_pmu_idle_count_value_v(u32 r)
696{
697 return (r >> 0U) & 0x7fffffffU;
698}
699static inline u32 pwr_pmu_idle_count_reset_f(u32 v)
700{
701 return (v & 0x1U) << 31U;
702}
703static inline u32 pwr_pmu_idle_ctrl_r(u32 i)
704{
705 return 0x0010a50cU + i*16U;
706}
707static inline u32 pwr_pmu_idle_ctrl_value_m(void)
708{
709 return 0x3U << 0U;
710}
711static inline u32 pwr_pmu_idle_ctrl_value_busy_f(void)
712{
713 return 0x2U;
714}
715static inline u32 pwr_pmu_idle_ctrl_value_always_f(void)
716{
717 return 0x3U;
718}
719static inline u32 pwr_pmu_idle_ctrl_filter_m(void)
720{
721 return 0x1U << 2U;
722}
723static inline u32 pwr_pmu_idle_ctrl_filter_disabled_f(void)
724{
725 return 0x0U;
726}
727static inline u32 pwr_pmu_idle_threshold_r(u32 i)
728{
729 return 0x0010a8a0U + i*4U;
730}
731static inline u32 pwr_pmu_idle_threshold_value_f(u32 v)
732{
733 return (v & 0x7fffffffU) << 0U;
734}
735static inline u32 pwr_pmu_idle_intr_r(void)
736{
737 return 0x0010a9e8U;
738}
739static inline u32 pwr_pmu_idle_intr_en_f(u32 v)
740{
741 return (v & 0x1U) << 0U;
742}
743static inline u32 pwr_pmu_idle_intr_en_disabled_v(void)
744{
745 return 0x00000000U;
746}
747static inline u32 pwr_pmu_idle_intr_en_enabled_v(void)
748{
749 return 0x00000001U;
750}
751static inline u32 pwr_pmu_idle_intr_status_r(void)
752{
753 return 0x0010a9ecU;
754}
755static inline u32 pwr_pmu_idle_intr_status_intr_f(u32 v)
756{
757 return (v & 0x1U) << 0U;
758}
759static inline u32 pwr_pmu_idle_intr_status_intr_m(void)
760{
761 return U32(0x1U) << 0U;
762}
763static inline u32 pwr_pmu_idle_intr_status_intr_v(u32 r)
764{
765 return (r >> 0U) & 0x1U;
766}
767static inline u32 pwr_pmu_idle_intr_status_intr_pending_v(void)
768{
769 return 0x00000001U;
770}
771static inline u32 pwr_pmu_idle_intr_status_intr_clear_v(void)
772{
773 return 0x00000001U;
774}
775static inline u32 pwr_pmu_idle_mask_supp_r(u32 i)
776{
777 return 0x0010a9f0U + i*8U;
778}
779static inline u32 pwr_pmu_idle_mask_1_supp_r(u32 i)
780{
781 return 0x0010a9f4U + i*8U;
782}
783static inline u32 pwr_pmu_idle_ctrl_supp_r(u32 i)
784{
785 return 0x0010aa30U + i*8U;
786}
787static inline u32 pwr_pmu_debug_r(u32 i)
788{
789 return 0x0010a5c0U + i*4U;
790}
791static inline u32 pwr_pmu_debug__size_1_v(void)
792{
793 return 0x00000004U;
794}
795static inline u32 pwr_pmu_mailbox_r(u32 i)
796{
797 return 0x0010a450U + i*4U;
798}
799static inline u32 pwr_pmu_mailbox__size_1_v(void)
800{
801 return 0x0000000cU;
802}
803static inline u32 pwr_pmu_bar0_addr_r(void)
804{
805 return 0x0010a7a0U;
806}
807static inline u32 pwr_pmu_bar0_data_r(void)
808{
809 return 0x0010a7a4U;
810}
811static inline u32 pwr_pmu_bar0_ctl_r(void)
812{
813 return 0x0010a7acU;
814}
815static inline u32 pwr_pmu_bar0_timeout_r(void)
816{
817 return 0x0010a7a8U;
818}
819static inline u32 pwr_pmu_bar0_fecs_error_r(void)
820{
821 return 0x0010a988U;
822}
823static inline u32 pwr_pmu_bar0_error_status_r(void)
824{
825 return 0x0010a7b0U;
826}
827static inline u32 pwr_pmu_pg_idlefilth_r(u32 i)
828{
829 return 0x0010a6c0U + i*4U;
830}
831static inline u32 pwr_pmu_pg_ppuidlefilth_r(u32 i)
832{
833 return 0x0010a6e8U + i*4U;
834}
835static inline u32 pwr_pmu_pg_idle_cnt_r(u32 i)
836{
837 return 0x0010a710U + i*4U;
838}
839static inline u32 pwr_pmu_pg_intren_r(u32 i)
840{
841 return 0x0010a760U + i*4U;
842}
843static inline u32 pwr_fbif_transcfg_r(u32 i)
844{
845 return 0x0010ae00U + i*4U;
846}
847static inline u32 pwr_fbif_transcfg_target_local_fb_f(void)
848{
849 return 0x0U;
850}
851static inline u32 pwr_fbif_transcfg_target_coherent_sysmem_f(void)
852{
853 return 0x1U;
854}
855static inline u32 pwr_fbif_transcfg_target_noncoherent_sysmem_f(void)
856{
857 return 0x2U;
858}
859static inline u32 pwr_fbif_transcfg_mem_type_s(void)
860{
861 return 1U;
862}
863static inline u32 pwr_fbif_transcfg_mem_type_f(u32 v)
864{
865 return (v & 0x1U) << 2U;
866}
867static inline u32 pwr_fbif_transcfg_mem_type_m(void)
868{
869 return 0x1U << 2U;
870}
871static inline u32 pwr_fbif_transcfg_mem_type_v(u32 r)
872{
873 return (r >> 2U) & 0x1U;
874}
875static inline u32 pwr_fbif_transcfg_mem_type_virtual_f(void)
876{
877 return 0x0U;
878}
879static inline u32 pwr_fbif_transcfg_mem_type_physical_f(void)
880{
881 return 0x4U;
882}
883static inline u32 pwr_falcon_engine_r(void)
884{
885 return 0x0010a3c0U;
886}
887static inline u32 pwr_falcon_engine_reset_true_f(void)
888{
889 return 0x1U;
890}
891static inline u32 pwr_falcon_engine_reset_false_f(void)
892{
893 return 0x0U;
894}
895#endif
diff --git a/include/nvgpu/hw/gp106/hw_ram_gp106.h b/include/nvgpu/hw/gp106/hw_ram_gp106.h
new file mode 100644
index 0000000..1de8aa2
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_ram_gp106.h
@@ -0,0 +1,507 @@
1/*
2 * Copyright (c) 2016-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_ram_gp106_h_
57#define _hw_ram_gp106_h_
58
59static inline u32 ram_in_ramfc_s(void)
60{
61 return 4096U;
62}
63static inline u32 ram_in_ramfc_w(void)
64{
65 return 0U;
66}
67static inline u32 ram_in_page_dir_base_target_f(u32 v)
68{
69 return (v & 0x3U) << 0U;
70}
71static inline u32 ram_in_page_dir_base_target_w(void)
72{
73 return 128U;
74}
75static inline u32 ram_in_page_dir_base_target_vid_mem_f(void)
76{
77 return 0x0U;
78}
79static inline u32 ram_in_page_dir_base_target_sys_mem_coh_f(void)
80{
81 return 0x2U;
82}
83static inline u32 ram_in_page_dir_base_target_sys_mem_ncoh_f(void)
84{
85 return 0x3U;
86}
87static inline u32 ram_in_page_dir_base_vol_w(void)
88{
89 return 128U;
90}
91static inline u32 ram_in_page_dir_base_vol_true_f(void)
92{
93 return 0x4U;
94}
95static inline u32 ram_in_page_dir_base_fault_replay_tex_f(u32 v)
96{
97 return (v & 0x1U) << 4U;
98}
99static inline u32 ram_in_page_dir_base_fault_replay_tex_m(void)
100{
101 return 0x1U << 4U;
102}
103static inline u32 ram_in_page_dir_base_fault_replay_tex_w(void)
104{
105 return 128U;
106}
107static inline u32 ram_in_page_dir_base_fault_replay_tex_true_f(void)
108{
109 return 0x10U;
110}
111static inline u32 ram_in_page_dir_base_fault_replay_gcc_f(u32 v)
112{
113 return (v & 0x1U) << 5U;
114}
115static inline u32 ram_in_page_dir_base_fault_replay_gcc_m(void)
116{
117 return 0x1U << 5U;
118}
119static inline u32 ram_in_page_dir_base_fault_replay_gcc_w(void)
120{
121 return 128U;
122}
123static inline u32 ram_in_page_dir_base_fault_replay_gcc_true_f(void)
124{
125 return 0x20U;
126}
127static inline u32 ram_in_use_ver2_pt_format_f(u32 v)
128{
129 return (v & 0x1U) << 10U;
130}
131static inline u32 ram_in_use_ver2_pt_format_m(void)
132{
133 return 0x1U << 10U;
134}
135static inline u32 ram_in_use_ver2_pt_format_w(void)
136{
137 return 128U;
138}
139static inline u32 ram_in_use_ver2_pt_format_true_f(void)
140{
141 return 0x400U;
142}
143static inline u32 ram_in_use_ver2_pt_format_false_f(void)
144{
145 return 0x0U;
146}
147static inline u32 ram_in_big_page_size_f(u32 v)
148{
149 return (v & 0x1U) << 11U;
150}
151static inline u32 ram_in_big_page_size_m(void)
152{
153 return 0x1U << 11U;
154}
155static inline u32 ram_in_big_page_size_w(void)
156{
157 return 128U;
158}
159static inline u32 ram_in_big_page_size_128kb_f(void)
160{
161 return 0x0U;
162}
163static inline u32 ram_in_big_page_size_64kb_f(void)
164{
165 return 0x800U;
166}
167static inline u32 ram_in_page_dir_base_lo_f(u32 v)
168{
169 return (v & 0xfffffU) << 12U;
170}
171static inline u32 ram_in_page_dir_base_lo_w(void)
172{
173 return 128U;
174}
175static inline u32 ram_in_page_dir_base_hi_f(u32 v)
176{
177 return (v & 0xffffffffU) << 0U;
178}
179static inline u32 ram_in_page_dir_base_hi_w(void)
180{
181 return 129U;
182}
183static inline u32 ram_in_adr_limit_lo_f(u32 v)
184{
185 return (v & 0xfffffU) << 12U;
186}
187static inline u32 ram_in_adr_limit_lo_w(void)
188{
189 return 130U;
190}
191static inline u32 ram_in_adr_limit_hi_f(u32 v)
192{
193 return (v & 0xffffffffU) << 0U;
194}
195static inline u32 ram_in_adr_limit_hi_w(void)
196{
197 return 131U;
198}
199static inline u32 ram_in_engine_cs_w(void)
200{
201 return 132U;
202}
203static inline u32 ram_in_engine_cs_wfi_v(void)
204{
205 return 0x00000000U;
206}
207static inline u32 ram_in_engine_cs_wfi_f(void)
208{
209 return 0x0U;
210}
211static inline u32 ram_in_engine_cs_fg_v(void)
212{
213 return 0x00000001U;
214}
215static inline u32 ram_in_engine_cs_fg_f(void)
216{
217 return 0x8U;
218}
219static inline u32 ram_in_gr_cs_w(void)
220{
221 return 132U;
222}
223static inline u32 ram_in_gr_cs_wfi_f(void)
224{
225 return 0x0U;
226}
227static inline u32 ram_in_gr_wfi_target_w(void)
228{
229 return 132U;
230}
231static inline u32 ram_in_gr_wfi_mode_w(void)
232{
233 return 132U;
234}
235static inline u32 ram_in_gr_wfi_mode_physical_v(void)
236{
237 return 0x00000000U;
238}
239static inline u32 ram_in_gr_wfi_mode_physical_f(void)
240{
241 return 0x0U;
242}
243static inline u32 ram_in_gr_wfi_mode_virtual_v(void)
244{
245 return 0x00000001U;
246}
247static inline u32 ram_in_gr_wfi_mode_virtual_f(void)
248{
249 return 0x4U;
250}
251static inline u32 ram_in_gr_wfi_ptr_lo_f(u32 v)
252{
253 return (v & 0xfffffU) << 12U;
254}
255static inline u32 ram_in_gr_wfi_ptr_lo_w(void)
256{
257 return 132U;
258}
259static inline u32 ram_in_gr_wfi_ptr_hi_f(u32 v)
260{
261 return (v & 0xffU) << 0U;
262}
263static inline u32 ram_in_gr_wfi_ptr_hi_w(void)
264{
265 return 133U;
266}
267static inline u32 ram_in_base_shift_v(void)
268{
269 return 0x0000000cU;
270}
271static inline u32 ram_in_alloc_size_v(void)
272{
273 return 0x00001000U;
274}
275static inline u32 ram_fc_size_val_v(void)
276{
277 return 0x00000200U;
278}
279static inline u32 ram_fc_gp_put_w(void)
280{
281 return 0U;
282}
283static inline u32 ram_fc_userd_w(void)
284{
285 return 2U;
286}
287static inline u32 ram_fc_userd_hi_w(void)
288{
289 return 3U;
290}
291static inline u32 ram_fc_signature_w(void)
292{
293 return 4U;
294}
295static inline u32 ram_fc_gp_get_w(void)
296{
297 return 5U;
298}
299static inline u32 ram_fc_pb_get_w(void)
300{
301 return 6U;
302}
303static inline u32 ram_fc_pb_get_hi_w(void)
304{
305 return 7U;
306}
307static inline u32 ram_fc_pb_top_level_get_w(void)
308{
309 return 8U;
310}
311static inline u32 ram_fc_pb_top_level_get_hi_w(void)
312{
313 return 9U;
314}
315static inline u32 ram_fc_acquire_w(void)
316{
317 return 12U;
318}
319static inline u32 ram_fc_semaphorea_w(void)
320{
321 return 14U;
322}
323static inline u32 ram_fc_semaphoreb_w(void)
324{
325 return 15U;
326}
327static inline u32 ram_fc_semaphorec_w(void)
328{
329 return 16U;
330}
331static inline u32 ram_fc_semaphored_w(void)
332{
333 return 17U;
334}
335static inline u32 ram_fc_gp_base_w(void)
336{
337 return 18U;
338}
339static inline u32 ram_fc_gp_base_hi_w(void)
340{
341 return 19U;
342}
343static inline u32 ram_fc_gp_fetch_w(void)
344{
345 return 20U;
346}
347static inline u32 ram_fc_pb_fetch_w(void)
348{
349 return 21U;
350}
351static inline u32 ram_fc_pb_fetch_hi_w(void)
352{
353 return 22U;
354}
355static inline u32 ram_fc_pb_put_w(void)
356{
357 return 23U;
358}
359static inline u32 ram_fc_pb_put_hi_w(void)
360{
361 return 24U;
362}
363static inline u32 ram_fc_pb_header_w(void)
364{
365 return 33U;
366}
367static inline u32 ram_fc_pb_count_w(void)
368{
369 return 34U;
370}
371static inline u32 ram_fc_subdevice_w(void)
372{
373 return 37U;
374}
375static inline u32 ram_fc_formats_w(void)
376{
377 return 39U;
378}
379static inline u32 ram_fc_target_w(void)
380{
381 return 43U;
382}
383static inline u32 ram_fc_hce_ctrl_w(void)
384{
385 return 57U;
386}
387static inline u32 ram_fc_chid_w(void)
388{
389 return 58U;
390}
391static inline u32 ram_fc_chid_id_f(u32 v)
392{
393 return (v & 0xfffU) << 0U;
394}
395static inline u32 ram_fc_chid_id_w(void)
396{
397 return 0U;
398}
399static inline u32 ram_fc_config_w(void)
400{
401 return 61U;
402}
403static inline u32 ram_fc_runlist_timeslice_w(void)
404{
405 return 62U;
406}
407static inline u32 ram_userd_base_shift_v(void)
408{
409 return 0x00000009U;
410}
411static inline u32 ram_userd_chan_size_v(void)
412{
413 return 0x00000200U;
414}
415static inline u32 ram_userd_put_w(void)
416{
417 return 16U;
418}
419static inline u32 ram_userd_get_w(void)
420{
421 return 17U;
422}
423static inline u32 ram_userd_ref_w(void)
424{
425 return 18U;
426}
427static inline u32 ram_userd_put_hi_w(void)
428{
429 return 19U;
430}
431static inline u32 ram_userd_ref_threshold_w(void)
432{
433 return 20U;
434}
435static inline u32 ram_userd_top_level_get_w(void)
436{
437 return 22U;
438}
439static inline u32 ram_userd_top_level_get_hi_w(void)
440{
441 return 23U;
442}
443static inline u32 ram_userd_get_hi_w(void)
444{
445 return 24U;
446}
447static inline u32 ram_userd_gp_get_w(void)
448{
449 return 34U;
450}
451static inline u32 ram_userd_gp_put_w(void)
452{
453 return 35U;
454}
455static inline u32 ram_userd_gp_top_level_get_w(void)
456{
457 return 22U;
458}
459static inline u32 ram_userd_gp_top_level_get_hi_w(void)
460{
461 return 23U;
462}
463static inline u32 ram_rl_entry_size_v(void)
464{
465 return 0x00000008U;
466}
467static inline u32 ram_rl_entry_chid_f(u32 v)
468{
469 return (v & 0xfffU) << 0U;
470}
471static inline u32 ram_rl_entry_id_f(u32 v)
472{
473 return (v & 0xfffU) << 0U;
474}
475static inline u32 ram_rl_entry_type_f(u32 v)
476{
477 return (v & 0x1U) << 13U;
478}
479static inline u32 ram_rl_entry_type_chid_f(void)
480{
481 return 0x0U;
482}
483static inline u32 ram_rl_entry_type_tsg_f(void)
484{
485 return 0x2000U;
486}
487static inline u32 ram_rl_entry_timeslice_scale_f(u32 v)
488{
489 return (v & 0xfU) << 14U;
490}
491static inline u32 ram_rl_entry_timeslice_scale_3_f(void)
492{
493 return 0xc000U;
494}
495static inline u32 ram_rl_entry_timeslice_timeout_f(u32 v)
496{
497 return (v & 0xffU) << 18U;
498}
499static inline u32 ram_rl_entry_timeslice_timeout_128_f(void)
500{
501 return 0x2000000U;
502}
503static inline u32 ram_rl_entry_tsg_length_f(u32 v)
504{
505 return (v & 0x3fU) << 26U;
506}
507#endif
diff --git a/include/nvgpu/hw/gp106/hw_therm_gp106.h b/include/nvgpu/hw/gp106/hw_therm_gp106.h
new file mode 100644
index 0000000..ee58032
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_therm_gp106.h
@@ -0,0 +1,183 @@
1/*
2 * Copyright (c) 2016-2017, 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_therm_gp106_h_
57#define _hw_therm_gp106_h_
58
59static inline u32 therm_temp_sensor_tsense_r(void)
60{
61 return 0x00020460U;
62}
63static inline u32 therm_temp_sensor_tsense_fixed_point_f(u32 v)
64{
65 return (v & 0x3fffU) << 3U;
66}
67static inline u32 therm_temp_sensor_tsense_fixed_point_m(void)
68{
69 return 0x3fffU << 3U;
70}
71static inline u32 therm_temp_sensor_tsense_fixed_point_v(u32 r)
72{
73 return (r >> 3U) & 0x3fffU;
74}
75static inline u32 therm_temp_sensor_tsense_fixed_point_min_v(void)
76{
77 return 0x00003b00U;
78}
79static inline u32 therm_temp_sensor_tsense_fixed_point_max_v(void)
80{
81 return 0x000010e0U;
82}
83static inline u32 therm_temp_sensor_tsense_state_f(u32 v)
84{
85 return (v & 0x3U) << 29U;
86}
87static inline u32 therm_temp_sensor_tsense_state_m(void)
88{
89 return 0x3U << 29U;
90}
91static inline u32 therm_temp_sensor_tsense_state_v(u32 r)
92{
93 return (r >> 29U) & 0x3U;
94}
95static inline u32 therm_temp_sensor_tsense_state_valid_v(void)
96{
97 return 0x00000001U;
98}
99static inline u32 therm_temp_sensor_tsense_state_shadow_v(void)
100{
101 return 0x00000002U;
102}
103static inline u32 therm_gate_ctrl_r(u32 i)
104{
105 return 0x00020200U + i*4U;
106}
107static inline u32 therm_gate_ctrl_eng_clk_m(void)
108{
109 return 0x3U << 0U;
110}
111static inline u32 therm_gate_ctrl_eng_clk_run_f(void)
112{
113 return 0x0U;
114}
115static inline u32 therm_gate_ctrl_eng_clk_auto_f(void)
116{
117 return 0x1U;
118}
119static inline u32 therm_gate_ctrl_eng_clk_stop_f(void)
120{
121 return 0x2U;
122}
123static inline u32 therm_gate_ctrl_blk_clk_m(void)
124{
125 return 0x3U << 2U;
126}
127static inline u32 therm_gate_ctrl_blk_clk_run_f(void)
128{
129 return 0x0U;
130}
131static inline u32 therm_gate_ctrl_blk_clk_auto_f(void)
132{
133 return 0x4U;
134}
135static inline u32 therm_gate_ctrl_eng_idle_filt_exp_f(u32 v)
136{
137 return (v & 0x1fU) << 8U;
138}
139static inline u32 therm_gate_ctrl_eng_idle_filt_exp_m(void)
140{
141 return 0x1fU << 8U;
142}
143static inline u32 therm_gate_ctrl_eng_idle_filt_mant_f(u32 v)
144{
145 return (v & 0x7U) << 13U;
146}
147static inline u32 therm_gate_ctrl_eng_idle_filt_mant_m(void)
148{
149 return 0x7U << 13U;
150}
151static inline u32 therm_gate_ctrl_eng_delay_before_f(u32 v)
152{
153 return (v & 0xfU) << 16U;
154}
155static inline u32 therm_gate_ctrl_eng_delay_before_m(void)
156{
157 return 0xfU << 16U;
158}
159static inline u32 therm_gate_ctrl_eng_delay_after_f(u32 v)
160{
161 return (v & 0xfU) << 20U;
162}
163static inline u32 therm_gate_ctrl_eng_delay_after_m(void)
164{
165 return 0xfU << 20U;
166}
167static inline u32 therm_fecs_idle_filter_r(void)
168{
169 return 0x00020288U;
170}
171static inline u32 therm_fecs_idle_filter_value_m(void)
172{
173 return 0xffffffffU << 0U;
174}
175static inline u32 therm_hubmmu_idle_filter_r(void)
176{
177 return 0x0002028cU;
178}
179static inline u32 therm_hubmmu_idle_filter_value_m(void)
180{
181 return 0xffffffffU << 0U;
182}
183#endif
diff --git a/include/nvgpu/hw/gp106/hw_timer_gp106.h b/include/nvgpu/hw/gp106/hw_timer_gp106.h
new file mode 100644
index 0000000..7fd722f
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_timer_gp106.h
@@ -0,0 +1,115 @@
1/*
2 * Copyright (c) 2016-2017, 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_timer_gp106_h_
57#define _hw_timer_gp106_h_
58
59static inline u32 timer_pri_timeout_r(void)
60{
61 return 0x00009080U;
62}
63static inline u32 timer_pri_timeout_period_f(u32 v)
64{
65 return (v & 0xffffffU) << 0U;
66}
67static inline u32 timer_pri_timeout_period_m(void)
68{
69 return 0xffffffU << 0U;
70}
71static inline u32 timer_pri_timeout_period_v(u32 r)
72{
73 return (r >> 0U) & 0xffffffU;
74}
75static inline u32 timer_pri_timeout_en_f(u32 v)
76{
77 return (v & 0x1U) << 31U;
78}
79static inline u32 timer_pri_timeout_en_m(void)
80{
81 return 0x1U << 31U;
82}
83static inline u32 timer_pri_timeout_en_v(u32 r)
84{
85 return (r >> 31U) & 0x1U;
86}
87static inline u32 timer_pri_timeout_en_en_enabled_f(void)
88{
89 return 0x80000000U;
90}
91static inline u32 timer_pri_timeout_en_en_disabled_f(void)
92{
93 return 0x0U;
94}
95static inline u32 timer_pri_timeout_save_0_r(void)
96{
97 return 0x00009084U;
98}
99static inline u32 timer_pri_timeout_save_1_r(void)
100{
101 return 0x00009088U;
102}
103static inline u32 timer_pri_timeout_fecs_errcode_r(void)
104{
105 return 0x0000908cU;
106}
107static inline u32 timer_time_0_r(void)
108{
109 return 0x00009400U;
110}
111static inline u32 timer_time_1_r(void)
112{
113 return 0x00009410U;
114}
115#endif
diff --git a/include/nvgpu/hw/gp106/hw_top_gp106.h b/include/nvgpu/hw/gp106/hw_top_gp106.h
new file mode 100644
index 0000000..749f66e
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_top_gp106.h
@@ -0,0 +1,255 @@
1/*
2 * Copyright (c) 2016-2017, 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_top_gp106_h_
57#define _hw_top_gp106_h_
58
59static inline u32 top_num_gpcs_r(void)
60{
61 return 0x00022430U;
62}
63static inline u32 top_num_gpcs_value_v(u32 r)
64{
65 return (r >> 0U) & 0x1fU;
66}
67static inline u32 top_tpc_per_gpc_r(void)
68{
69 return 0x00022434U;
70}
71static inline u32 top_tpc_per_gpc_value_v(u32 r)
72{
73 return (r >> 0U) & 0x1fU;
74}
75static inline u32 top_num_fbps_r(void)
76{
77 return 0x00022438U;
78}
79static inline u32 top_num_fbps_value_v(u32 r)
80{
81 return (r >> 0U) & 0x1fU;
82}
83static inline u32 top_num_fbpas_r(void)
84{
85 return 0x0002243cU;
86}
87static inline u32 top_num_fbpas_value_v(u32 r)
88{
89 return (r >> 0U) & 0x1fU;
90}
91static inline u32 top_ltc_per_fbp_r(void)
92{
93 return 0x00022450U;
94}
95static inline u32 top_ltc_per_fbp_value_v(u32 r)
96{
97 return (r >> 0U) & 0x1fU;
98}
99static inline u32 top_slices_per_ltc_r(void)
100{
101 return 0x0002245cU;
102}
103static inline u32 top_slices_per_ltc_value_v(u32 r)
104{
105 return (r >> 0U) & 0x1fU;
106}
107static inline u32 top_num_ltcs_r(void)
108{
109 return 0x00022454U;
110}
111static inline u32 top_device_info_r(u32 i)
112{
113 return 0x00022700U + i*4U;
114}
115static inline u32 top_device_info__size_1_v(void)
116{
117 return 0x00000040U;
118}
119static inline u32 top_device_info_chain_v(u32 r)
120{
121 return (r >> 31U) & 0x1U;
122}
123static inline u32 top_device_info_chain_enable_v(void)
124{
125 return 0x00000001U;
126}
127static inline u32 top_device_info_engine_enum_v(u32 r)
128{
129 return (r >> 26U) & 0xfU;
130}
131static inline u32 top_device_info_runlist_enum_v(u32 r)
132{
133 return (r >> 21U) & 0xfU;
134}
135static inline u32 top_device_info_intr_enum_v(u32 r)
136{
137 return (r >> 15U) & 0x1fU;
138}
139static inline u32 top_device_info_reset_enum_v(u32 r)
140{
141 return (r >> 9U) & 0x1fU;
142}
143static inline u32 top_device_info_type_enum_v(u32 r)
144{
145 return (r >> 2U) & 0x1fffffffU;
146}
147static inline u32 top_device_info_type_enum_graphics_v(void)
148{
149 return 0x00000000U;
150}
151static inline u32 top_device_info_type_enum_graphics_f(void)
152{
153 return 0x0U;
154}
155static inline u32 top_device_info_type_enum_copy0_v(void)
156{
157 return 0x00000001U;
158}
159static inline u32 top_device_info_type_enum_copy0_f(void)
160{
161 return 0x4U;
162}
163static inline u32 top_device_info_type_enum_copy2_v(void)
164{
165 return 0x00000003U;
166}
167static inline u32 top_device_info_type_enum_copy2_f(void)
168{
169 return 0xcU;
170}
171static inline u32 top_device_info_type_enum_lce_v(void)
172{
173 return 0x00000013U;
174}
175static inline u32 top_device_info_type_enum_lce_f(void)
176{
177 return 0x4cU;
178}
179static inline u32 top_device_info_engine_v(u32 r)
180{
181 return (r >> 5U) & 0x1U;
182}
183static inline u32 top_device_info_runlist_v(u32 r)
184{
185 return (r >> 4U) & 0x1U;
186}
187static inline u32 top_device_info_intr_v(u32 r)
188{
189 return (r >> 3U) & 0x1U;
190}
191static inline u32 top_device_info_reset_v(u32 r)
192{
193 return (r >> 2U) & 0x1U;
194}
195static inline u32 top_device_info_entry_v(u32 r)
196{
197 return (r >> 0U) & 0x3U;
198}
199static inline u32 top_device_info_entry_not_valid_v(void)
200{
201 return 0x00000000U;
202}
203static inline u32 top_device_info_entry_enum_v(void)
204{
205 return 0x00000002U;
206}
207static inline u32 top_device_info_entry_engine_type_v(void)
208{
209 return 0x00000003U;
210}
211static inline u32 top_device_info_entry_data_v(void)
212{
213 return 0x00000001U;
214}
215static inline u32 top_device_info_data_type_v(u32 r)
216{
217 return (r >> 30U) & 0x1U;
218}
219static inline u32 top_device_info_data_type_enum2_v(void)
220{
221 return 0x00000000U;
222}
223static inline u32 top_device_info_data_inst_id_v(u32 r)
224{
225 return (r >> 26U) & 0xfU;
226}
227static inline u32 top_device_info_data_pri_base_v(u32 r)
228{
229 return (r >> 12U) & 0xfffU;
230}
231static inline u32 top_device_info_data_pri_base_align_v(void)
232{
233 return 0x0000000cU;
234}
235static inline u32 top_device_info_data_fault_id_enum_v(u32 r)
236{
237 return (r >> 3U) & 0x1fU;
238}
239static inline u32 top_device_info_data_fault_id_v(u32 r)
240{
241 return (r >> 2U) & 0x1U;
242}
243static inline u32 top_device_info_data_fault_id_valid_v(void)
244{
245 return 0x00000001U;
246}
247static inline u32 top_scratch1_r(void)
248{
249 return 0x0002240cU;
250}
251static inline u32 top_scratch1_devinit_completed_v(u32 r)
252{
253 return (r >> 1U) & 0x1U;
254}
255#endif
diff --git a/include/nvgpu/hw/gp106/hw_trim_gp106.h b/include/nvgpu/hw/gp106/hw_trim_gp106.h
new file mode 100644
index 0000000..cebb6d4
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_trim_gp106.h
@@ -0,0 +1,195 @@
1/*
2 * Copyright (c) 2016-2017, 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_trim_gp106_h_
57#define _hw_trim_gp106_h_
58
59static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_r(void)
60{
61 return 0x00132924U;
62}
63static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_noofipclks_s(void)
64{
65 return 16U;
66}
67static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_noofipclks_f(u32 v)
68{
69 return (v & 0xffffU) << 0U;
70}
71static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_noofipclks_m(void)
72{
73 return 0xffffU << 0U;
74}
75static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_noofipclks_v(u32 r)
76{
77 return (r >> 0U) & 0xffffU;
78}
79static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_write_en_s(void)
80{
81 return 1U;
82}
83static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_write_en_f(u32 v)
84{
85 return (v & 0x1U) << 16U;
86}
87static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_write_en_m(void)
88{
89 return 0x1U << 16U;
90}
91static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_write_en_v(u32 r)
92{
93 return (r >> 16U) & 0x1U;
94}
95static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_write_en_deasserted_f(void)
96{
97 return 0x0U;
98}
99static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_write_en_asserted_f(void)
100{
101 return 0x10000U;
102}
103static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_enable_s(void)
104{
105 return 1U;
106}
107static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_enable_f(u32 v)
108{
109 return (v & 0x1U) << 20U;
110}
111static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_enable_m(void)
112{
113 return 0x1U << 20U;
114}
115static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_enable_v(u32 r)
116{
117 return (r >> 20U) & 0x1U;
118}
119static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_enable_deasserted_f(void)
120{
121 return 0x0U;
122}
123static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_enable_asserted_f(void)
124{
125 return 0x100000U;
126}
127static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_reset_s(void)
128{
129 return 1U;
130}
131static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_reset_f(u32 v)
132{
133 return (v & 0x1U) << 24U;
134}
135static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_reset_m(void)
136{
137 return 0x1U << 24U;
138}
139static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_reset_v(u32 r)
140{
141 return (r >> 24U) & 0x1U;
142}
143static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_reset_deasserted_f(void)
144{
145 return 0x0U;
146}
147static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_reset_asserted_f(void)
148{
149 return 0x1000000U;
150}
151static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cfg_source_gpc2clk_f(void)
152{
153 return 0x70000000U;
154}
155static inline u32 trim_gpc_bcast_clk_cntr_ncgpcclk_cnt_r(void)
156{
157 return 0x00132928U;
158}
159static inline u32 trim_fbpa_bcast_clk_cntr_ncltcclk_cfg_r(void)
160{
161 return 0x00132128U;
162}
163static inline u32 trim_fbpa_bcast_clk_cntr_ncltcclk_cfg_source_dramdiv4_rec_clk1_f(void)
164{
165 return 0x30000000U;
166}
167static inline u32 trim_fbpa_bcast_clk_cntr_ncltcclk_cnt_r(void)
168{
169 return 0x0013212cU;
170}
171static inline u32 trim_sys_clk_cntr_ncltcpll_cfg_r(void)
172{
173 return 0x001373c0U;
174}
175static inline u32 trim_sys_clk_cntr_ncltcpll_cfg_source_xbar2clk_f(void)
176{
177 return 0x20000000U;
178}
179static inline u32 trim_sys_clk_cntr_ncltcpll_cnt_r(void)
180{
181 return 0x001373c4U;
182}
183static inline u32 trim_sys_clk_cntr_ncsyspll_cfg_r(void)
184{
185 return 0x001373b0U;
186}
187static inline u32 trim_sys_clk_cntr_ncsyspll_cfg_source_sys2clk_f(void)
188{
189 return 0x0U;
190}
191static inline u32 trim_sys_clk_cntr_ncsyspll_cnt_r(void)
192{
193 return 0x001373b4U;
194}
195#endif
diff --git a/include/nvgpu/hw/gp106/hw_xp_gp106.h b/include/nvgpu/hw/gp106/hw_xp_gp106.h
new file mode 100644
index 0000000..f6c843c
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_xp_gp106.h
@@ -0,0 +1,143 @@
1/*
2 * Copyright (c) 2016-2017, 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_xp_gp106_h_
57#define _hw_xp_gp106_h_
58
59static inline u32 xp_dl_mgr_r(u32 i)
60{
61 return 0x0008b8c0U + i*4U;
62}
63static inline u32 xp_dl_mgr_safe_timing_f(u32 v)
64{
65 return (v & 0x1U) << 2U;
66}
67static inline u32 xp_pl_link_config_r(u32 i)
68{
69 return 0x0008c040U + i*4U;
70}
71static inline u32 xp_pl_link_config_ltssm_status_f(u32 v)
72{
73 return (v & 0x1U) << 4U;
74}
75static inline u32 xp_pl_link_config_ltssm_status_idle_v(void)
76{
77 return 0x00000000U;
78}
79static inline u32 xp_pl_link_config_ltssm_directive_f(u32 v)
80{
81 return (v & 0xfU) << 0U;
82}
83static inline u32 xp_pl_link_config_ltssm_directive_m(void)
84{
85 return 0xfU << 0U;
86}
87static inline u32 xp_pl_link_config_ltssm_directive_normal_operations_v(void)
88{
89 return 0x00000000U;
90}
91static inline u32 xp_pl_link_config_ltssm_directive_change_speed_v(void)
92{
93 return 0x00000001U;
94}
95static inline u32 xp_pl_link_config_max_link_rate_f(u32 v)
96{
97 return (v & 0x3U) << 18U;
98}
99static inline u32 xp_pl_link_config_max_link_rate_m(void)
100{
101 return 0x3U << 18U;
102}
103static inline u32 xp_pl_link_config_max_link_rate_2500_mtps_v(void)
104{
105 return 0x00000002U;
106}
107static inline u32 xp_pl_link_config_max_link_rate_5000_mtps_v(void)
108{
109 return 0x00000001U;
110}
111static inline u32 xp_pl_link_config_max_link_rate_8000_mtps_v(void)
112{
113 return 0x00000000U;
114}
115static inline u32 xp_pl_link_config_target_tx_width_f(u32 v)
116{
117 return (v & 0x7U) << 20U;
118}
119static inline u32 xp_pl_link_config_target_tx_width_m(void)
120{
121 return 0x7U << 20U;
122}
123static inline u32 xp_pl_link_config_target_tx_width_x1_v(void)
124{
125 return 0x00000007U;
126}
127static inline u32 xp_pl_link_config_target_tx_width_x2_v(void)
128{
129 return 0x00000006U;
130}
131static inline u32 xp_pl_link_config_target_tx_width_x4_v(void)
132{
133 return 0x00000005U;
134}
135static inline u32 xp_pl_link_config_target_tx_width_x8_v(void)
136{
137 return 0x00000004U;
138}
139static inline u32 xp_pl_link_config_target_tx_width_x16_v(void)
140{
141 return 0x00000000U;
142}
143#endif
diff --git a/include/nvgpu/hw/gp106/hw_xve_gp106.h b/include/nvgpu/hw/gp106/hw_xve_gp106.h
new file mode 100644
index 0000000..e61d13f
--- /dev/null
+++ b/include/nvgpu/hw/gp106/hw_xve_gp106.h
@@ -0,0 +1,207 @@
1/*
2 * Copyright (c) 2016-2017, 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_xve_gp106_h_
57#define _hw_xve_gp106_h_
58
59static inline u32 xve_rom_ctrl_r(void)
60{
61 return 0x00000050U;
62}
63static inline u32 xve_rom_ctrl_rom_shadow_f(u32 v)
64{
65 return (v & 0x1U) << 0U;
66}
67static inline u32 xve_rom_ctrl_rom_shadow_disabled_f(void)
68{
69 return 0x0U;
70}
71static inline u32 xve_rom_ctrl_rom_shadow_enabled_f(void)
72{
73 return 0x1U;
74}
75static inline u32 xve_link_control_status_r(void)
76{
77 return 0x00000088U;
78}
79static inline u32 xve_link_control_status_link_speed_m(void)
80{
81 return 0xfU << 16U;
82}
83static inline u32 xve_link_control_status_link_speed_v(u32 r)
84{
85 return (r >> 16U) & 0xfU;
86}
87static inline u32 xve_link_control_status_link_speed_link_speed_2p5_v(void)
88{
89 return 0x00000001U;
90}
91static inline u32 xve_link_control_status_link_speed_link_speed_5p0_v(void)
92{
93 return 0x00000002U;
94}
95static inline u32 xve_link_control_status_link_speed_link_speed_8p0_v(void)
96{
97 return 0x00000003U;
98}
99static inline u32 xve_link_control_status_link_width_m(void)
100{
101 return 0x3fU << 20U;
102}
103static inline u32 xve_link_control_status_link_width_v(u32 r)
104{
105 return (r >> 20U) & 0x3fU;
106}
107static inline u32 xve_link_control_status_link_width_x1_v(void)
108{
109 return 0x00000001U;
110}
111static inline u32 xve_link_control_status_link_width_x2_v(void)
112{
113 return 0x00000002U;
114}
115static inline u32 xve_link_control_status_link_width_x4_v(void)
116{
117 return 0x00000004U;
118}
119static inline u32 xve_link_control_status_link_width_x8_v(void)
120{
121 return 0x00000008U;
122}
123static inline u32 xve_link_control_status_link_width_x16_v(void)
124{
125 return 0x00000010U;
126}
127static inline u32 xve_priv_xv_r(void)
128{
129 return 0x00000150U;
130}
131static inline u32 xve_priv_xv_cya_l0s_enable_f(u32 v)
132{
133 return (v & 0x1U) << 7U;
134}
135static inline u32 xve_priv_xv_cya_l0s_enable_m(void)
136{
137 return 0x1U << 7U;
138}
139static inline u32 xve_priv_xv_cya_l0s_enable_v(u32 r)
140{
141 return (r >> 7U) & 0x1U;
142}
143static inline u32 xve_priv_xv_cya_l1_enable_f(u32 v)
144{
145 return (v & 0x1U) << 8U;
146}
147static inline u32 xve_priv_xv_cya_l1_enable_m(void)
148{
149 return 0x1U << 8U;
150}
151static inline u32 xve_priv_xv_cya_l1_enable_v(u32 r)
152{
153 return (r >> 8U) & 0x1U;
154}
155static inline u32 xve_cya_2_r(void)
156{
157 return 0x00000704U;
158}
159static inline u32 xve_reset_r(void)
160{
161 return 0x00000718U;
162}
163static inline u32 xve_reset_reset_m(void)
164{
165 return 0x1U << 0U;
166}
167static inline u32 xve_reset_gpu_on_sw_reset_m(void)
168{
169 return 0x1U << 1U;
170}
171static inline u32 xve_reset_counter_en_m(void)
172{
173 return 0x1U << 2U;
174}
175static inline u32 xve_reset_counter_val_f(u32 v)
176{
177 return (v & 0x7ffU) << 4U;
178}
179static inline u32 xve_reset_counter_val_m(void)
180{
181 return 0x7ffU << 4U;
182}
183static inline u32 xve_reset_counter_val_v(u32 r)
184{
185 return (r >> 4U) & 0x7ffU;
186}
187static inline u32 xve_reset_clock_on_sw_reset_m(void)
188{
189 return 0x1U << 15U;
190}
191static inline u32 xve_reset_clock_counter_en_m(void)
192{
193 return 0x1U << 16U;
194}
195static inline u32 xve_reset_clock_counter_val_f(u32 v)
196{
197 return (v & 0x7ffU) << 17U;
198}
199static inline u32 xve_reset_clock_counter_val_m(void)
200{
201 return 0x7ffU << 17U;
202}
203static inline u32 xve_reset_clock_counter_val_v(u32 r)
204{
205 return (r >> 17U) & 0x7ffU;
206}
207#endif
diff --git a/include/nvgpu/hw/gp10b/hw_bus_gp10b.h b/include/nvgpu/hw/gp10b/hw_bus_gp10b.h
new file mode 100644
index 0000000..b06ea66
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_bus_gp10b.h
@@ -0,0 +1,223 @@
1/*
2 * Copyright (c) 2014-2017, 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_bus_gp10b_h_
57#define _hw_bus_gp10b_h_
58
59static inline u32 bus_bar0_window_r(void)
60{
61 return 0x00001700U;
62}
63static inline u32 bus_bar0_window_base_f(u32 v)
64{
65 return (v & 0xffffffU) << 0U;
66}
67static inline u32 bus_bar0_window_target_vid_mem_f(void)
68{
69 return 0x0U;
70}
71static inline u32 bus_bar0_window_target_sys_mem_coherent_f(void)
72{
73 return 0x2000000U;
74}
75static inline u32 bus_bar0_window_target_sys_mem_noncoherent_f(void)
76{
77 return 0x3000000U;
78}
79static inline u32 bus_bar0_window_target_bar0_window_base_shift_v(void)
80{
81 return 0x00000010U;
82}
83static inline u32 bus_bar1_block_r(void)
84{
85 return 0x00001704U;
86}
87static inline u32 bus_bar1_block_ptr_f(u32 v)
88{
89 return (v & 0xfffffffU) << 0U;
90}
91static inline u32 bus_bar1_block_target_vid_mem_f(void)
92{
93 return 0x0U;
94}
95static inline u32 bus_bar1_block_target_sys_mem_coh_f(void)
96{
97 return 0x20000000U;
98}
99static inline u32 bus_bar1_block_target_sys_mem_ncoh_f(void)
100{
101 return 0x30000000U;
102}
103static inline u32 bus_bar1_block_mode_virtual_f(void)
104{
105 return 0x80000000U;
106}
107static inline u32 bus_bar2_block_r(void)
108{
109 return 0x00001714U;
110}
111static inline u32 bus_bar2_block_ptr_f(u32 v)
112{
113 return (v & 0xfffffffU) << 0U;
114}
115static inline u32 bus_bar2_block_target_vid_mem_f(void)
116{
117 return 0x0U;
118}
119static inline u32 bus_bar2_block_target_sys_mem_coh_f(void)
120{
121 return 0x20000000U;
122}
123static inline u32 bus_bar2_block_target_sys_mem_ncoh_f(void)
124{
125 return 0x30000000U;
126}
127static inline u32 bus_bar2_block_mode_virtual_f(void)
128{
129 return 0x80000000U;
130}
131static inline u32 bus_bar1_block_ptr_shift_v(void)
132{
133 return 0x0000000cU;
134}
135static inline u32 bus_bar2_block_ptr_shift_v(void)
136{
137 return 0x0000000cU;
138}
139static inline u32 bus_bind_status_r(void)
140{
141 return 0x00001710U;
142}
143static inline u32 bus_bind_status_bar1_pending_v(u32 r)
144{
145 return (r >> 0U) & 0x1U;
146}
147static inline u32 bus_bind_status_bar1_pending_empty_f(void)
148{
149 return 0x0U;
150}
151static inline u32 bus_bind_status_bar1_pending_busy_f(void)
152{
153 return 0x1U;
154}
155static inline u32 bus_bind_status_bar1_outstanding_v(u32 r)
156{
157 return (r >> 1U) & 0x1U;
158}
159static inline u32 bus_bind_status_bar1_outstanding_false_f(void)
160{
161 return 0x0U;
162}
163static inline u32 bus_bind_status_bar1_outstanding_true_f(void)
164{
165 return 0x2U;
166}
167static inline u32 bus_bind_status_bar2_pending_v(u32 r)
168{
169 return (r >> 2U) & 0x1U;
170}
171static inline u32 bus_bind_status_bar2_pending_empty_f(void)
172{
173 return 0x0U;
174}
175static inline u32 bus_bind_status_bar2_pending_busy_f(void)
176{
177 return 0x4U;
178}
179static inline u32 bus_bind_status_bar2_outstanding_v(u32 r)
180{
181 return (r >> 3U) & 0x1U;
182}
183static inline u32 bus_bind_status_bar2_outstanding_false_f(void)
184{
185 return 0x0U;
186}
187static inline u32 bus_bind_status_bar2_outstanding_true_f(void)
188{
189 return 0x8U;
190}
191static inline u32 bus_intr_0_r(void)
192{
193 return 0x00001100U;
194}
195static inline u32 bus_intr_0_pri_squash_m(void)
196{
197 return 0x1U << 1U;
198}
199static inline u32 bus_intr_0_pri_fecserr_m(void)
200{
201 return 0x1U << 2U;
202}
203static inline u32 bus_intr_0_pri_timeout_m(void)
204{
205 return 0x1U << 3U;
206}
207static inline u32 bus_intr_en_0_r(void)
208{
209 return 0x00001140U;
210}
211static inline u32 bus_intr_en_0_pri_squash_m(void)
212{
213 return 0x1U << 1U;
214}
215static inline u32 bus_intr_en_0_pri_fecserr_m(void)
216{
217 return 0x1U << 2U;
218}
219static inline u32 bus_intr_en_0_pri_timeout_m(void)
220{
221 return 0x1U << 3U;
222}
223#endif
diff --git a/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h b/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h
new file mode 100644
index 0000000..00879c1
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h
@@ -0,0 +1,163 @@
1/*
2 * Copyright (c) 2014-2017, 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_ccsr_gp10b_h_
57#define _hw_ccsr_gp10b_h_
58
59static inline u32 ccsr_channel_inst_r(u32 i)
60{
61 return 0x00800000U + i*8U;
62}
63static inline u32 ccsr_channel_inst__size_1_v(void)
64{
65 return 0x00000200U;
66}
67static inline u32 ccsr_channel_inst_ptr_f(u32 v)
68{
69 return (v & 0xfffffffU) << 0U;
70}
71static inline u32 ccsr_channel_inst_target_vid_mem_f(void)
72{
73 return 0x0U;
74}
75static inline u32 ccsr_channel_inst_target_sys_mem_coh_f(void)
76{
77 return 0x20000000U;
78}
79static inline u32 ccsr_channel_inst_target_sys_mem_ncoh_f(void)
80{
81 return 0x30000000U;
82}
83static inline u32 ccsr_channel_inst_bind_false_f(void)
84{
85 return 0x0U;
86}
87static inline u32 ccsr_channel_inst_bind_true_f(void)
88{
89 return 0x80000000U;
90}
91static inline u32 ccsr_channel_r(u32 i)
92{
93 return 0x00800004U + i*8U;
94}
95static inline u32 ccsr_channel__size_1_v(void)
96{
97 return 0x00000200U;
98}
99static inline u32 ccsr_channel_enable_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 ccsr_channel_enable_set_f(u32 v)
104{
105 return (v & 0x1U) << 10U;
106}
107static inline u32 ccsr_channel_enable_set_true_f(void)
108{
109 return 0x400U;
110}
111static inline u32 ccsr_channel_enable_clr_true_f(void)
112{
113 return 0x800U;
114}
115static inline u32 ccsr_channel_status_v(u32 r)
116{
117 return (r >> 24U) & 0xfU;
118}
119static inline u32 ccsr_channel_status_pending_ctx_reload_v(void)
120{
121 return 0x00000002U;
122}
123static inline u32 ccsr_channel_status_pending_acq_ctx_reload_v(void)
124{
125 return 0x00000004U;
126}
127static inline u32 ccsr_channel_status_on_pbdma_ctx_reload_v(void)
128{
129 return 0x0000000aU;
130}
131static inline u32 ccsr_channel_status_on_pbdma_and_eng_ctx_reload_v(void)
132{
133 return 0x0000000bU;
134}
135static inline u32 ccsr_channel_status_on_eng_ctx_reload_v(void)
136{
137 return 0x0000000cU;
138}
139static inline u32 ccsr_channel_status_on_eng_pending_ctx_reload_v(void)
140{
141 return 0x0000000dU;
142}
143static inline u32 ccsr_channel_status_on_eng_pending_acq_ctx_reload_v(void)
144{
145 return 0x0000000eU;
146}
147static inline u32 ccsr_channel_next_v(u32 r)
148{
149 return (r >> 1U) & 0x1U;
150}
151static inline u32 ccsr_channel_next_true_v(void)
152{
153 return 0x00000001U;
154}
155static inline u32 ccsr_channel_force_ctx_reload_true_f(void)
156{
157 return 0x100U;
158}
159static inline u32 ccsr_channel_busy_v(u32 r)
160{
161 return (r >> 28U) & 0x1U;
162}
163#endif
diff --git a/include/nvgpu/hw/gp10b/hw_ce_gp10b.h b/include/nvgpu/hw/gp10b/hw_ce_gp10b.h
new file mode 100644
index 0000000..c293771
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_ce_gp10b.h
@@ -0,0 +1,87 @@
1/*
2 * Copyright (c) 2016-2017, 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_ce_gp10b_h_
57#define _hw_ce_gp10b_h_
58
59static inline u32 ce_intr_status_r(u32 i)
60{
61 return 0x00104410U + i*128U;
62}
63static inline u32 ce_intr_status_blockpipe_pending_f(void)
64{
65 return 0x1U;
66}
67static inline u32 ce_intr_status_blockpipe_reset_f(void)
68{
69 return 0x1U;
70}
71static inline u32 ce_intr_status_nonblockpipe_pending_f(void)
72{
73 return 0x2U;
74}
75static inline u32 ce_intr_status_nonblockpipe_reset_f(void)
76{
77 return 0x2U;
78}
79static inline u32 ce_intr_status_launcherr_pending_f(void)
80{
81 return 0x4U;
82}
83static inline u32 ce_intr_status_launcherr_reset_f(void)
84{
85 return 0x4U;
86}
87#endif
diff --git a/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h b/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h
new file mode 100644
index 0000000..d83320f
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h
@@ -0,0 +1,491 @@
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
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_patch_count_o(void)
68{
69 return 0x00000010U;
70}
71static inline u32 ctxsw_prog_main_image_context_id_o(void)
72{
73 return 0x000000f0U;
74}
75static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void)
76{
77 return 0x00000014U;
78}
79static inline u32 ctxsw_prog_main_image_patch_adr_hi_o(void)
80{
81 return 0x00000018U;
82}
83static inline u32 ctxsw_prog_main_image_zcull_o(void)
84{
85 return 0x0000001cU;
86}
87static inline u32 ctxsw_prog_main_image_zcull_mode_no_ctxsw_v(void)
88{
89 return 0x00000001U;
90}
91static inline u32 ctxsw_prog_main_image_zcull_mode_separate_buffer_v(void)
92{
93 return 0x00000002U;
94}
95static inline u32 ctxsw_prog_main_image_zcull_ptr_o(void)
96{
97 return 0x00000020U;
98}
99static inline u32 ctxsw_prog_main_image_pm_o(void)
100{
101 return 0x00000028U;
102}
103static inline u32 ctxsw_prog_main_image_pm_mode_m(void)
104{
105 return 0x7U << 0U;
106}
107static inline u32 ctxsw_prog_main_image_pm_mode_ctxsw_f(void)
108{
109 return 0x1U;
110}
111static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void)
112{
113 return 0x0U;
114}
115static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void)
116{
117 return 0x7U << 3U;
118}
119static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void)
120{
121 return 0x8U;
122}
123static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void)
124{
125 return 0x0U;
126}
127static inline u32 ctxsw_prog_main_image_pm_ptr_o(void)
128{
129 return 0x0000002cU;
130}
131static inline u32 ctxsw_prog_main_image_num_save_ops_o(void)
132{
133 return 0x000000f4U;
134}
135static inline u32 ctxsw_prog_main_image_num_wfi_save_ops_o(void)
136{
137 return 0x000000d0U;
138}
139static inline u32 ctxsw_prog_main_image_num_cta_save_ops_o(void)
140{
141 return 0x000000d4U;
142}
143static inline u32 ctxsw_prog_main_image_num_gfxp_save_ops_o(void)
144{
145 return 0x000000d8U;
146}
147static inline u32 ctxsw_prog_main_image_num_cilp_save_ops_o(void)
148{
149 return 0x000000dcU;
150}
151static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void)
152{
153 return 0x000000f8U;
154}
155static inline u32 ctxsw_prog_main_image_magic_value_o(void)
156{
157 return 0x000000fcU;
158}
159static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void)
160{
161 return 0x600dc0deU;
162}
163static inline u32 ctxsw_prog_local_priv_register_ctl_o(void)
164{
165 return 0x0000000cU;
166}
167static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r)
168{
169 return (r >> 0U) & 0xffffU;
170}
171static inline u32 ctxsw_prog_local_image_ppc_info_o(void)
172{
173 return 0x000000f4U;
174}
175static inline u32 ctxsw_prog_local_image_ppc_info_num_ppcs_v(u32 r)
176{
177 return (r >> 0U) & 0xffffU;
178}
179static inline u32 ctxsw_prog_local_image_ppc_info_ppc_mask_v(u32 r)
180{
181 return (r >> 16U) & 0xffffU;
182}
183static inline u32 ctxsw_prog_local_image_num_tpcs_o(void)
184{
185 return 0x000000f8U;
186}
187static inline u32 ctxsw_prog_local_magic_value_o(void)
188{
189 return 0x000000fcU;
190}
191static inline u32 ctxsw_prog_local_magic_value_v_value_v(void)
192{
193 return 0xad0becabU;
194}
195static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void)
196{
197 return 0x000000ecU;
198}
199static inline u32 ctxsw_prog_main_extended_buffer_ctl_offset_v(u32 r)
200{
201 return (r >> 0U) & 0xffffU;
202}
203static inline u32 ctxsw_prog_main_extended_buffer_ctl_size_v(u32 r)
204{
205 return (r >> 16U) & 0xffU;
206}
207static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void)
208{
209 return 0x00000100U;
210}
211static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void)
212{
213 return 0x00000004U;
214}
215static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void)
216{
217 return 0x00000000U;
218}
219static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void)
220{
221 return 0x00000002U;
222}
223static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void)
224{
225 return 0x000000a0U;
226}
227static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void)
228{
229 return 2U;
230}
231static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v)
232{
233 return (v & 0x3U) << 0U;
234}
235static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void)
236{
237 return 0x3U << 0U;
238}
239static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r)
240{
241 return (r >> 0U) & 0x3U;
242}
243static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void)
244{
245 return 0x0U;
246}
247static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void)
248{
249 return 0x2U;
250}
251static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void)
252{
253 return 0x000000a4U;
254}
255static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void)
256{
257 return 0x000000a8U;
258}
259static inline u32 ctxsw_prog_main_image_misc_options_o(void)
260{
261 return 0x0000003cU;
262}
263static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void)
264{
265 return 0x1U << 3U;
266}
267static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void)
268{
269 return 0x0U;
270}
271static inline u32 ctxsw_prog_main_image_pmu_options_o(void)
272{
273 return 0x00000070U;
274}
275static inline u32 ctxsw_prog_main_image_pmu_options_boost_clock_frequencies_f(u32 v)
276{
277 return (v & 0x1U) << 0U;
278}
279static inline u32 ctxsw_prog_main_image_graphics_preemption_options_o(void)
280{
281 return 0x00000080U;
282}
283static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_f(u32 v)
284{
285 return (v & 0x3U) << 0U;
286}
287static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_gfxp_f(void)
288{
289 return 0x1U;
290}
291static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void)
292{
293 return 0x00000068U;
294}
295static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void)
296{
297 return 0x00000084U;
298}
299static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_f(u32 v)
300{
301 return (v & 0x3U) << 0U;
302}
303static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cta_f(void)
304{
305 return 0x1U;
306}
307static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cilp_f(void)
308{
309 return 0x2U;
310}
311static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_o(void)
312{
313 return 0x000000acU;
314}
315static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_num_records_f(u32 v)
316{
317 return (v & 0xffffU) << 0U;
318}
319static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(void)
320{
321 return 0x000000b0U;
322}
323static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_v_m(void)
324{
325 return 0xfffffffU << 0U;
326}
327static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_m(void)
328{
329 return 0x3U << 28U;
330}
331static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_vid_mem_f(void)
332{
333 return 0x0U;
334}
335static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_coherent_f(void)
336{
337 return 0x20000000U;
338}
339static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_noncoherent_f(void)
340{
341 return 0x30000000U;
342}
343static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(void)
344{
345 return 0x000000b4U;
346}
347static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_v_f(u32 v)
348{
349 return (v & 0xffffffffU) << 0U;
350}
351static inline u32 ctxsw_prog_record_timestamp_record_size_in_bytes_v(void)
352{
353 return 0x00000080U;
354}
355static inline u32 ctxsw_prog_record_timestamp_record_size_in_words_v(void)
356{
357 return 0x00000020U;
358}
359static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_o(void)
360{
361 return 0x00000000U;
362}
363static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_v_value_v(void)
364{
365 return 0x00000000U;
366}
367static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_o(void)
368{
369 return 0x00000004U;
370}
371static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_v_value_v(void)
372{
373 return 0x600dbeefU;
374}
375static inline u32 ctxsw_prog_record_timestamp_context_id_o(void)
376{
377 return 0x00000008U;
378}
379static inline u32 ctxsw_prog_record_timestamp_context_ptr_o(void)
380{
381 return 0x0000000cU;
382}
383static inline u32 ctxsw_prog_record_timestamp_timestamp_lo_o(void)
384{
385 return 0x00000018U;
386}
387static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_o(void)
388{
389 return 0x0000001cU;
390}
391static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_f(u32 v)
392{
393 return (v & 0xffffffU) << 0U;
394}
395static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_v(u32 r)
396{
397 return (r >> 0U) & 0xffffffU;
398}
399static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_f(u32 v)
400{
401 return (v & 0xffU) << 24U;
402}
403static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_m(void)
404{
405 return 0xffU << 24U;
406}
407static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_v(u32 r)
408{
409 return (r >> 24U) & 0xffU;
410}
411static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_v(void)
412{
413 return 0x00000001U;
414}
415static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_f(void)
416{
417 return 0x1000000U;
418}
419static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_v(void)
420{
421 return 0x00000002U;
422}
423static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_f(void)
424{
425 return 0x2000000U;
426}
427static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_v(void)
428{
429 return 0x0000000aU;
430}
431static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_f(void)
432{
433 return 0xa000000U;
434}
435static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_v(void)
436{
437 return 0x0000000bU;
438}
439static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_f(void)
440{
441 return 0xb000000U;
442}
443static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_v(void)
444{
445 return 0x0000000cU;
446}
447static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_f(void)
448{
449 return 0xc000000U;
450}
451static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_v(void)
452{
453 return 0x0000000dU;
454}
455static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_f(void)
456{
457 return 0xd000000U;
458}
459static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_v(void)
460{
461 return 0x00000003U;
462}
463static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_f(void)
464{
465 return 0x3000000U;
466}
467static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_v(void)
468{
469 return 0x00000004U;
470}
471static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_f(void)
472{
473 return 0x4000000U;
474}
475static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_v(void)
476{
477 return 0x00000005U;
478}
479static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_f(void)
480{
481 return 0x5000000U;
482}
483static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_v(void)
484{
485 return 0x000000ffU;
486}
487static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_f(void)
488{
489 return 0xff000000U;
490}
491#endif
diff --git a/include/nvgpu/hw/gp10b/hw_falcon_gp10b.h b/include/nvgpu/hw/gp10b/hw_falcon_gp10b.h
new file mode 100644
index 0000000..6dc401d
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_falcon_gp10b.h
@@ -0,0 +1,603 @@
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_falcon_gp10b_h_
57#define _hw_falcon_gp10b_h_
58
59static inline u32 falcon_falcon_irqsset_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 falcon_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 falcon_falcon_irqsclr_r(void)
68{
69 return 0x00000004U;
70}
71static inline u32 falcon_falcon_irqstat_r(void)
72{
73 return 0x00000008U;
74}
75static inline u32 falcon_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 falcon_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 falcon_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 falcon_falcon_irqmode_r(void)
88{
89 return 0x0000000cU;
90}
91static inline u32 falcon_falcon_irqmset_r(void)
92{
93 return 0x00000010U;
94}
95static inline u32 falcon_falcon_irqmset_gptmr_f(u32 v)
96{
97 return (v & 0x1U) << 0U;
98}
99static inline u32 falcon_falcon_irqmset_wdtmr_f(u32 v)
100{
101 return (v & 0x1U) << 1U;
102}
103static inline u32 falcon_falcon_irqmset_mthd_f(u32 v)
104{
105 return (v & 0x1U) << 2U;
106}
107static inline u32 falcon_falcon_irqmset_ctxsw_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 falcon_falcon_irqmset_halt_f(u32 v)
112{
113 return (v & 0x1U) << 4U;
114}
115static inline u32 falcon_falcon_irqmset_exterr_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 falcon_falcon_irqmset_swgen0_f(u32 v)
120{
121 return (v & 0x1U) << 6U;
122}
123static inline u32 falcon_falcon_irqmset_swgen1_f(u32 v)
124{
125 return (v & 0x1U) << 7U;
126}
127static inline u32 falcon_falcon_irqmclr_r(void)
128{
129 return 0x00000014U;
130}
131static inline u32 falcon_falcon_irqmclr_gptmr_f(u32 v)
132{
133 return (v & 0x1U) << 0U;
134}
135static inline u32 falcon_falcon_irqmclr_wdtmr_f(u32 v)
136{
137 return (v & 0x1U) << 1U;
138}
139static inline u32 falcon_falcon_irqmclr_mthd_f(u32 v)
140{
141 return (v & 0x1U) << 2U;
142}
143static inline u32 falcon_falcon_irqmclr_ctxsw_f(u32 v)
144{
145 return (v & 0x1U) << 3U;
146}
147static inline u32 falcon_falcon_irqmclr_halt_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 falcon_falcon_irqmclr_exterr_f(u32 v)
152{
153 return (v & 0x1U) << 5U;
154}
155static inline u32 falcon_falcon_irqmclr_swgen0_f(u32 v)
156{
157 return (v & 0x1U) << 6U;
158}
159static inline u32 falcon_falcon_irqmclr_swgen1_f(u32 v)
160{
161 return (v & 0x1U) << 7U;
162}
163static inline u32 falcon_falcon_irqmclr_ext_f(u32 v)
164{
165 return (v & 0xffU) << 8U;
166}
167static inline u32 falcon_falcon_irqmask_r(void)
168{
169 return 0x00000018U;
170}
171static inline u32 falcon_falcon_irqdest_r(void)
172{
173 return 0x0000001cU;
174}
175static inline u32 falcon_falcon_irqdest_host_gptmr_f(u32 v)
176{
177 return (v & 0x1U) << 0U;
178}
179static inline u32 falcon_falcon_irqdest_host_wdtmr_f(u32 v)
180{
181 return (v & 0x1U) << 1U;
182}
183static inline u32 falcon_falcon_irqdest_host_mthd_f(u32 v)
184{
185 return (v & 0x1U) << 2U;
186}
187static inline u32 falcon_falcon_irqdest_host_ctxsw_f(u32 v)
188{
189 return (v & 0x1U) << 3U;
190}
191static inline u32 falcon_falcon_irqdest_host_halt_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 falcon_falcon_irqdest_host_exterr_f(u32 v)
196{
197 return (v & 0x1U) << 5U;
198}
199static inline u32 falcon_falcon_irqdest_host_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 falcon_falcon_irqdest_host_swgen1_f(u32 v)
204{
205 return (v & 0x1U) << 7U;
206}
207static inline u32 falcon_falcon_irqdest_host_ext_f(u32 v)
208{
209 return (v & 0xffU) << 8U;
210}
211static inline u32 falcon_falcon_irqdest_target_gptmr_f(u32 v)
212{
213 return (v & 0x1U) << 16U;
214}
215static inline u32 falcon_falcon_irqdest_target_wdtmr_f(u32 v)
216{
217 return (v & 0x1U) << 17U;
218}
219static inline u32 falcon_falcon_irqdest_target_mthd_f(u32 v)
220{
221 return (v & 0x1U) << 18U;
222}
223static inline u32 falcon_falcon_irqdest_target_ctxsw_f(u32 v)
224{
225 return (v & 0x1U) << 19U;
226}
227static inline u32 falcon_falcon_irqdest_target_halt_f(u32 v)
228{
229 return (v & 0x1U) << 20U;
230}
231static inline u32 falcon_falcon_irqdest_target_exterr_f(u32 v)
232{
233 return (v & 0x1U) << 21U;
234}
235static inline u32 falcon_falcon_irqdest_target_swgen0_f(u32 v)
236{
237 return (v & 0x1U) << 22U;
238}
239static inline u32 falcon_falcon_irqdest_target_swgen1_f(u32 v)
240{
241 return (v & 0x1U) << 23U;
242}
243static inline u32 falcon_falcon_irqdest_target_ext_f(u32 v)
244{
245 return (v & 0xffU) << 24U;
246}
247static inline u32 falcon_falcon_curctx_r(void)
248{
249 return 0x00000050U;
250}
251static inline u32 falcon_falcon_nxtctx_r(void)
252{
253 return 0x00000054U;
254}
255static inline u32 falcon_falcon_mailbox0_r(void)
256{
257 return 0x00000040U;
258}
259static inline u32 falcon_falcon_mailbox1_r(void)
260{
261 return 0x00000044U;
262}
263static inline u32 falcon_falcon_itfen_r(void)
264{
265 return 0x00000048U;
266}
267static inline u32 falcon_falcon_itfen_ctxen_enable_f(void)
268{
269 return 0x1U;
270}
271static inline u32 falcon_falcon_idlestate_r(void)
272{
273 return 0x0000004cU;
274}
275static inline u32 falcon_falcon_idlestate_falcon_busy_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 falcon_falcon_idlestate_ext_busy_v(u32 r)
280{
281 return (r >> 1U) & 0x7fffU;
282}
283static inline u32 falcon_falcon_os_r(void)
284{
285 return 0x00000080U;
286}
287static inline u32 falcon_falcon_engctl_r(void)
288{
289 return 0x000000a4U;
290}
291static inline u32 falcon_falcon_cpuctl_r(void)
292{
293 return 0x00000100U;
294}
295static inline u32 falcon_falcon_cpuctl_startcpu_f(u32 v)
296{
297 return (v & 0x1U) << 1U;
298}
299static inline u32 falcon_falcon_cpuctl_sreset_f(u32 v)
300{
301 return (v & 0x1U) << 2U;
302}
303static inline u32 falcon_falcon_cpuctl_hreset_f(u32 v)
304{
305 return (v & 0x1U) << 3U;
306}
307static inline u32 falcon_falcon_cpuctl_halt_intr_f(u32 v)
308{
309 return (v & 0x1U) << 4U;
310}
311static inline u32 falcon_falcon_cpuctl_halt_intr_m(void)
312{
313 return 0x1U << 4U;
314}
315static inline u32 falcon_falcon_cpuctl_halt_intr_v(u32 r)
316{
317 return (r >> 4U) & 0x1U;
318}
319static inline u32 falcon_falcon_cpuctl_stopped_m(void)
320{
321 return 0x1U << 5U;
322}
323static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
324{
325 return (v & 0x1U) << 6U;
326}
327static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_m(void)
328{
329 return 0x1U << 6U;
330}
331static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
332{
333 return (r >> 6U) & 0x1U;
334}
335static inline u32 falcon_falcon_cpuctl_alias_r(void)
336{
337 return 0x00000130U;
338}
339static inline u32 falcon_falcon_cpuctl_alias_startcpu_f(u32 v)
340{
341 return (v & 0x1U) << 1U;
342}
343static inline u32 falcon_falcon_imemc_r(u32 i)
344{
345 return 0x00000180U + i*16U;
346}
347static inline u32 falcon_falcon_imemc_offs_f(u32 v)
348{
349 return (v & 0x3fU) << 2U;
350}
351static inline u32 falcon_falcon_imemc_blk_f(u32 v)
352{
353 return (v & 0xffU) << 8U;
354}
355static inline u32 falcon_falcon_imemc_aincw_f(u32 v)
356{
357 return (v & 0x1U) << 24U;
358}
359static inline u32 falcon_falcon_imemc_secure_f(u32 v)
360{
361 return (v & 0x1U) << 28U;
362}
363static inline u32 falcon_falcon_imemd_r(u32 i)
364{
365 return 0x00000184U + i*16U;
366}
367static inline u32 falcon_falcon_imemt_r(u32 i)
368{
369 return 0x00000188U + i*16U;
370}
371static inline u32 falcon_falcon_sctl_r(void)
372{
373 return 0x00000240U;
374}
375static inline u32 falcon_falcon_mmu_phys_sec_r(void)
376{
377 return 0x00100ce4U;
378}
379static inline u32 falcon_falcon_bootvec_r(void)
380{
381 return 0x00000104U;
382}
383static inline u32 falcon_falcon_bootvec_vec_f(u32 v)
384{
385 return (v & 0xffffffffU) << 0U;
386}
387static inline u32 falcon_falcon_dmactl_r(void)
388{
389 return 0x0000010cU;
390}
391static inline u32 falcon_falcon_dmactl_dmem_scrubbing_m(void)
392{
393 return 0x1U << 1U;
394}
395static inline u32 falcon_falcon_dmactl_imem_scrubbing_m(void)
396{
397 return 0x1U << 2U;
398}
399static inline u32 falcon_falcon_dmactl_require_ctx_f(u32 v)
400{
401 return (v & 0x1U) << 0U;
402}
403static inline u32 falcon_falcon_hwcfg_r(void)
404{
405 return 0x00000108U;
406}
407static inline u32 falcon_falcon_hwcfg_imem_size_v(u32 r)
408{
409 return (r >> 0U) & 0x1ffU;
410}
411static inline u32 falcon_falcon_hwcfg_dmem_size_v(u32 r)
412{
413 return (r >> 9U) & 0x1ffU;
414}
415static inline u32 falcon_falcon_dmatrfbase_r(void)
416{
417 return 0x00000110U;
418}
419static inline u32 falcon_falcon_dmatrfbase1_r(void)
420{
421 return 0x00000128U;
422}
423static inline u32 falcon_falcon_dmatrfmoffs_r(void)
424{
425 return 0x00000114U;
426}
427static inline u32 falcon_falcon_imctl_debug_r(void)
428{
429 return 0x0000015cU;
430}
431static inline u32 falcon_falcon_imctl_debug_addr_blk_f(u32 v)
432{
433 return (v & 0xffffffU) << 0U;
434}
435static inline u32 falcon_falcon_imctl_debug_cmd_f(u32 v)
436{
437 return (v & 0x7U) << 24U;
438}
439static inline u32 falcon_falcon_imstat_r(void)
440{
441 return 0x00000144U;
442}
443static inline u32 falcon_falcon_traceidx_r(void)
444{
445 return 0x00000148U;
446}
447static inline u32 falcon_falcon_traceidx_maxidx_v(u32 r)
448{
449 return (r >> 16U) & 0xffU;
450}
451static inline u32 falcon_falcon_traceidx_idx_f(u32 v)
452{
453 return (v & 0xffU) << 0U;
454}
455static inline u32 falcon_falcon_tracepc_r(void)
456{
457 return 0x0000014cU;
458}
459static inline u32 falcon_falcon_tracepc_pc_v(u32 r)
460{
461 return (r >> 0U) & 0xffffffU;
462}
463static inline u32 falcon_falcon_dmatrfcmd_r(void)
464{
465 return 0x00000118U;
466}
467static inline u32 falcon_falcon_dmatrfcmd_imem_f(u32 v)
468{
469 return (v & 0x1U) << 4U;
470}
471static inline u32 falcon_falcon_dmatrfcmd_write_f(u32 v)
472{
473 return (v & 0x1U) << 5U;
474}
475static inline u32 falcon_falcon_dmatrfcmd_size_f(u32 v)
476{
477 return (v & 0x7U) << 8U;
478}
479static inline u32 falcon_falcon_dmatrfcmd_ctxdma_f(u32 v)
480{
481 return (v & 0x7U) << 12U;
482}
483static inline u32 falcon_falcon_dmatrffboffs_r(void)
484{
485 return 0x0000011cU;
486}
487static inline u32 falcon_falcon_exterraddr_r(void)
488{
489 return 0x00000168U;
490}
491static inline u32 falcon_falcon_exterrstat_r(void)
492{
493 return 0x0000016cU;
494}
495static inline u32 falcon_falcon_exterrstat_valid_m(void)
496{
497 return 0x1U << 31U;
498}
499static inline u32 falcon_falcon_exterrstat_valid_v(u32 r)
500{
501 return (r >> 31U) & 0x1U;
502}
503static inline u32 falcon_falcon_exterrstat_valid_true_v(void)
504{
505 return 0x00000001U;
506}
507static inline u32 falcon_falcon_icd_cmd_r(void)
508{
509 return 0x00000200U;
510}
511static inline u32 falcon_falcon_icd_cmd_opc_s(void)
512{
513 return 4U;
514}
515static inline u32 falcon_falcon_icd_cmd_opc_f(u32 v)
516{
517 return (v & 0xfU) << 0U;
518}
519static inline u32 falcon_falcon_icd_cmd_opc_m(void)
520{
521 return 0xfU << 0U;
522}
523static inline u32 falcon_falcon_icd_cmd_opc_v(u32 r)
524{
525 return (r >> 0U) & 0xfU;
526}
527static inline u32 falcon_falcon_icd_cmd_opc_rreg_f(void)
528{
529 return 0x8U;
530}
531static inline u32 falcon_falcon_icd_cmd_opc_rstat_f(void)
532{
533 return 0xeU;
534}
535static inline u32 falcon_falcon_icd_cmd_idx_f(u32 v)
536{
537 return (v & 0x1fU) << 8U;
538}
539static inline u32 falcon_falcon_icd_rdata_r(void)
540{
541 return 0x0000020cU;
542}
543static inline u32 falcon_falcon_dmemc_r(u32 i)
544{
545 return 0x000001c0U + i*8U;
546}
547static inline u32 falcon_falcon_dmemc_offs_f(u32 v)
548{
549 return (v & 0x3fU) << 2U;
550}
551static inline u32 falcon_falcon_dmemc_offs_m(void)
552{
553 return 0x3fU << 2U;
554}
555static inline u32 falcon_falcon_dmemc_blk_f(u32 v)
556{
557 return (v & 0xffU) << 8U;
558}
559static inline u32 falcon_falcon_dmemc_blk_m(void)
560{
561 return 0xffU << 8U;
562}
563static inline u32 falcon_falcon_dmemc_aincw_f(u32 v)
564{
565 return (v & 0x1U) << 24U;
566}
567static inline u32 falcon_falcon_dmemc_aincr_f(u32 v)
568{
569 return (v & 0x1U) << 25U;
570}
571static inline u32 falcon_falcon_dmemd_r(u32 i)
572{
573 return 0x000001c4U + i*8U;
574}
575static inline u32 falcon_falcon_debug1_r(void)
576{
577 return 0x00000090U;
578}
579static inline u32 falcon_falcon_debug1_ctxsw_mode_s(void)
580{
581 return 1U;
582}
583static inline u32 falcon_falcon_debug1_ctxsw_mode_f(u32 v)
584{
585 return (v & 0x1U) << 16U;
586}
587static inline u32 falcon_falcon_debug1_ctxsw_mode_m(void)
588{
589 return 0x1U << 16U;
590}
591static inline u32 falcon_falcon_debug1_ctxsw_mode_v(u32 r)
592{
593 return (r >> 16U) & 0x1U;
594}
595static inline u32 falcon_falcon_debug1_ctxsw_mode_init_f(void)
596{
597 return 0x0U;
598}
599static inline u32 falcon_falcon_debuginfo_r(void)
600{
601 return 0x00000094U;
602}
603#endif
diff --git a/include/nvgpu/hw/gp10b/hw_fb_gp10b.h b/include/nvgpu/hw/gp10b/hw_fb_gp10b.h
new file mode 100644
index 0000000..c1ef471
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_fb_gp10b.h
@@ -0,0 +1,463 @@
1/*
2 * Copyright (c) 2014-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_fb_gp10b_h_
57#define _hw_fb_gp10b_h_
58
59static inline u32 fb_fbhub_num_active_ltcs_r(void)
60{
61 return 0x00100800U;
62}
63static inline u32 fb_mmu_ctrl_r(void)
64{
65 return 0x00100c80U;
66}
67static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r)
68{
69 return (r >> 15U) & 0x1U;
70}
71static inline u32 fb_mmu_ctrl_pri_fifo_empty_false_f(void)
72{
73 return 0x0U;
74}
75static inline u32 fb_mmu_ctrl_pri_fifo_space_v(u32 r)
76{
77 return (r >> 16U) & 0xffU;
78}
79static inline u32 fb_priv_mmu_phy_secure_r(void)
80{
81 return 0x00100ce4U;
82}
83static inline u32 fb_mmu_invalidate_pdb_r(void)
84{
85 return 0x00100cb8U;
86}
87static inline u32 fb_mmu_invalidate_pdb_aperture_vid_mem_f(void)
88{
89 return 0x0U;
90}
91static inline u32 fb_mmu_invalidate_pdb_aperture_sys_mem_f(void)
92{
93 return 0x2U;
94}
95static inline u32 fb_mmu_invalidate_pdb_addr_f(u32 v)
96{
97 return (v & 0xfffffffU) << 4U;
98}
99static inline u32 fb_mmu_invalidate_r(void)
100{
101 return 0x00100cbcU;
102}
103static inline u32 fb_mmu_invalidate_all_va_true_f(void)
104{
105 return 0x1U;
106}
107static inline u32 fb_mmu_invalidate_all_pdb_true_f(void)
108{
109 return 0x2U;
110}
111static inline u32 fb_mmu_invalidate_hubtlb_only_s(void)
112{
113 return 1U;
114}
115static inline u32 fb_mmu_invalidate_hubtlb_only_f(u32 v)
116{
117 return (v & 0x1U) << 2U;
118}
119static inline u32 fb_mmu_invalidate_hubtlb_only_m(void)
120{
121 return 0x1U << 2U;
122}
123static inline u32 fb_mmu_invalidate_hubtlb_only_v(u32 r)
124{
125 return (r >> 2U) & 0x1U;
126}
127static inline u32 fb_mmu_invalidate_hubtlb_only_true_f(void)
128{
129 return 0x4U;
130}
131static inline u32 fb_mmu_invalidate_replay_s(void)
132{
133 return 3U;
134}
135static inline u32 fb_mmu_invalidate_replay_f(u32 v)
136{
137 return (v & 0x7U) << 3U;
138}
139static inline u32 fb_mmu_invalidate_replay_m(void)
140{
141 return 0x7U << 3U;
142}
143static inline u32 fb_mmu_invalidate_replay_v(u32 r)
144{
145 return (r >> 3U) & 0x7U;
146}
147static inline u32 fb_mmu_invalidate_replay_none_f(void)
148{
149 return 0x0U;
150}
151static inline u32 fb_mmu_invalidate_replay_start_f(void)
152{
153 return 0x8U;
154}
155static inline u32 fb_mmu_invalidate_replay_start_ack_all_f(void)
156{
157 return 0x10U;
158}
159static inline u32 fb_mmu_invalidate_replay_cancel_targeted_f(void)
160{
161 return 0x18U;
162}
163static inline u32 fb_mmu_invalidate_replay_cancel_global_f(void)
164{
165 return 0x20U;
166}
167static inline u32 fb_mmu_invalidate_replay_cancel_f(void)
168{
169 return 0x20U;
170}
171static inline u32 fb_mmu_invalidate_sys_membar_s(void)
172{
173 return 1U;
174}
175static inline u32 fb_mmu_invalidate_sys_membar_f(u32 v)
176{
177 return (v & 0x1U) << 6U;
178}
179static inline u32 fb_mmu_invalidate_sys_membar_m(void)
180{
181 return 0x1U << 6U;
182}
183static inline u32 fb_mmu_invalidate_sys_membar_v(u32 r)
184{
185 return (r >> 6U) & 0x1U;
186}
187static inline u32 fb_mmu_invalidate_sys_membar_true_f(void)
188{
189 return 0x40U;
190}
191static inline u32 fb_mmu_invalidate_ack_s(void)
192{
193 return 2U;
194}
195static inline u32 fb_mmu_invalidate_ack_f(u32 v)
196{
197 return (v & 0x3U) << 7U;
198}
199static inline u32 fb_mmu_invalidate_ack_m(void)
200{
201 return 0x3U << 7U;
202}
203static inline u32 fb_mmu_invalidate_ack_v(u32 r)
204{
205 return (r >> 7U) & 0x3U;
206}
207static inline u32 fb_mmu_invalidate_ack_ack_none_required_f(void)
208{
209 return 0x0U;
210}
211static inline u32 fb_mmu_invalidate_ack_ack_intranode_f(void)
212{
213 return 0x100U;
214}
215static inline u32 fb_mmu_invalidate_ack_ack_globally_f(void)
216{
217 return 0x80U;
218}
219static inline u32 fb_mmu_invalidate_cancel_client_id_s(void)
220{
221 return 6U;
222}
223static inline u32 fb_mmu_invalidate_cancel_client_id_f(u32 v)
224{
225 return (v & 0x3fU) << 9U;
226}
227static inline u32 fb_mmu_invalidate_cancel_client_id_m(void)
228{
229 return 0x3fU << 9U;
230}
231static inline u32 fb_mmu_invalidate_cancel_client_id_v(u32 r)
232{
233 return (r >> 9U) & 0x3fU;
234}
235static inline u32 fb_mmu_invalidate_cancel_gpc_id_s(void)
236{
237 return 5U;
238}
239static inline u32 fb_mmu_invalidate_cancel_gpc_id_f(u32 v)
240{
241 return (v & 0x1fU) << 15U;
242}
243static inline u32 fb_mmu_invalidate_cancel_gpc_id_m(void)
244{
245 return 0x1fU << 15U;
246}
247static inline u32 fb_mmu_invalidate_cancel_gpc_id_v(u32 r)
248{
249 return (r >> 15U) & 0x1fU;
250}
251static inline u32 fb_mmu_invalidate_cancel_client_type_s(void)
252{
253 return 1U;
254}
255static inline u32 fb_mmu_invalidate_cancel_client_type_f(u32 v)
256{
257 return (v & 0x1U) << 20U;
258}
259static inline u32 fb_mmu_invalidate_cancel_client_type_m(void)
260{
261 return 0x1U << 20U;
262}
263static inline u32 fb_mmu_invalidate_cancel_client_type_v(u32 r)
264{
265 return (r >> 20U) & 0x1U;
266}
267static inline u32 fb_mmu_invalidate_cancel_client_type_gpc_f(void)
268{
269 return 0x0U;
270}
271static inline u32 fb_mmu_invalidate_cancel_client_type_hub_f(void)
272{
273 return 0x100000U;
274}
275static inline u32 fb_mmu_invalidate_cancel_cache_level_s(void)
276{
277 return 3U;
278}
279static inline u32 fb_mmu_invalidate_cancel_cache_level_f(u32 v)
280{
281 return (v & 0x7U) << 24U;
282}
283static inline u32 fb_mmu_invalidate_cancel_cache_level_m(void)
284{
285 return 0x7U << 24U;
286}
287static inline u32 fb_mmu_invalidate_cancel_cache_level_v(u32 r)
288{
289 return (r >> 24U) & 0x7U;
290}
291static inline u32 fb_mmu_invalidate_cancel_cache_level_all_f(void)
292{
293 return 0x0U;
294}
295static inline u32 fb_mmu_invalidate_cancel_cache_level_pte_only_f(void)
296{
297 return 0x1000000U;
298}
299static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde0_f(void)
300{
301 return 0x2000000U;
302}
303static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde1_f(void)
304{
305 return 0x3000000U;
306}
307static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde2_f(void)
308{
309 return 0x4000000U;
310}
311static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde3_f(void)
312{
313 return 0x5000000U;
314}
315static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde4_f(void)
316{
317 return 0x6000000U;
318}
319static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde5_f(void)
320{
321 return 0x7000000U;
322}
323static inline u32 fb_mmu_invalidate_trigger_s(void)
324{
325 return 1U;
326}
327static inline u32 fb_mmu_invalidate_trigger_f(u32 v)
328{
329 return (v & 0x1U) << 31U;
330}
331static inline u32 fb_mmu_invalidate_trigger_m(void)
332{
333 return 0x1U << 31U;
334}
335static inline u32 fb_mmu_invalidate_trigger_v(u32 r)
336{
337 return (r >> 31U) & 0x1U;
338}
339static inline u32 fb_mmu_invalidate_trigger_true_f(void)
340{
341 return 0x80000000U;
342}
343static inline u32 fb_mmu_debug_wr_r(void)
344{
345 return 0x00100cc8U;
346}
347static inline u32 fb_mmu_debug_wr_aperture_s(void)
348{
349 return 2U;
350}
351static inline u32 fb_mmu_debug_wr_aperture_f(u32 v)
352{
353 return (v & 0x3U) << 0U;
354}
355static inline u32 fb_mmu_debug_wr_aperture_m(void)
356{
357 return 0x3U << 0U;
358}
359static inline u32 fb_mmu_debug_wr_aperture_v(u32 r)
360{
361 return (r >> 0U) & 0x3U;
362}
363static inline u32 fb_mmu_debug_wr_aperture_vid_mem_f(void)
364{
365 return 0x0U;
366}
367static inline u32 fb_mmu_debug_wr_aperture_sys_mem_coh_f(void)
368{
369 return 0x2U;
370}
371static inline u32 fb_mmu_debug_wr_aperture_sys_mem_ncoh_f(void)
372{
373 return 0x3U;
374}
375static inline u32 fb_mmu_debug_wr_vol_false_f(void)
376{
377 return 0x0U;
378}
379static inline u32 fb_mmu_debug_wr_vol_true_v(void)
380{
381 return 0x00000001U;
382}
383static inline u32 fb_mmu_debug_wr_vol_true_f(void)
384{
385 return 0x4U;
386}
387static inline u32 fb_mmu_debug_wr_addr_f(u32 v)
388{
389 return (v & 0xfffffffU) << 4U;
390}
391static inline u32 fb_mmu_debug_wr_addr_alignment_v(void)
392{
393 return 0x0000000cU;
394}
395static inline u32 fb_mmu_debug_rd_r(void)
396{
397 return 0x00100cccU;
398}
399static inline u32 fb_mmu_debug_rd_aperture_vid_mem_f(void)
400{
401 return 0x0U;
402}
403static inline u32 fb_mmu_debug_rd_aperture_sys_mem_coh_f(void)
404{
405 return 0x2U;
406}
407static inline u32 fb_mmu_debug_rd_aperture_sys_mem_ncoh_f(void)
408{
409 return 0x3U;
410}
411static inline u32 fb_mmu_debug_rd_vol_false_f(void)
412{
413 return 0x0U;
414}
415static inline u32 fb_mmu_debug_rd_addr_f(u32 v)
416{
417 return (v & 0xfffffffU) << 4U;
418}
419static inline u32 fb_mmu_debug_rd_addr_alignment_v(void)
420{
421 return 0x0000000cU;
422}
423static inline u32 fb_mmu_debug_ctrl_r(void)
424{
425 return 0x00100cc4U;
426}
427static inline u32 fb_mmu_debug_ctrl_debug_v(u32 r)
428{
429 return (r >> 16U) & 0x1U;
430}
431static inline u32 fb_mmu_debug_ctrl_debug_m(void)
432{
433 return 0x1U << 16U;
434}
435static inline u32 fb_mmu_debug_ctrl_debug_enabled_v(void)
436{
437 return 0x00000001U;
438}
439static inline u32 fb_mmu_debug_ctrl_debug_disabled_v(void)
440{
441 return 0x00000000U;
442}
443static inline u32 fb_mmu_vpr_info_r(void)
444{
445 return 0x00100cd0U;
446}
447static inline u32 fb_mmu_vpr_info_fetch_v(u32 r)
448{
449 return (r >> 2U) & 0x1U;
450}
451static inline u32 fb_mmu_vpr_info_fetch_false_v(void)
452{
453 return 0x00000000U;
454}
455static inline u32 fb_mmu_vpr_info_fetch_true_v(void)
456{
457 return 0x00000001U;
458}
459static inline u32 fb_niso_flush_sysmem_addr_r(void)
460{
461 return 0x00100c10U;
462}
463#endif
diff --git a/include/nvgpu/hw/gp10b/hw_fifo_gp10b.h b/include/nvgpu/hw/gp10b/hw_fifo_gp10b.h
new file mode 100644
index 0000000..7170162
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_fifo_gp10b.h
@@ -0,0 +1,699 @@
1/*
2 * Copyright (c) 2014-2017, 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_fifo_gp10b_h_
57#define _hw_fifo_gp10b_h_
58
59static inline u32 fifo_bar1_base_r(void)
60{
61 return 0x00002254U;
62}
63static inline u32 fifo_bar1_base_ptr_f(u32 v)
64{
65 return (v & 0xfffffffU) << 0U;
66}
67static inline u32 fifo_bar1_base_ptr_align_shift_v(void)
68{
69 return 0x0000000cU;
70}
71static inline u32 fifo_bar1_base_valid_false_f(void)
72{
73 return 0x0U;
74}
75static inline u32 fifo_bar1_base_valid_true_f(void)
76{
77 return 0x10000000U;
78}
79static inline u32 fifo_runlist_base_r(void)
80{
81 return 0x00002270U;
82}
83static inline u32 fifo_runlist_base_ptr_f(u32 v)
84{
85 return (v & 0xfffffffU) << 0U;
86}
87static inline u32 fifo_runlist_base_target_vid_mem_f(void)
88{
89 return 0x0U;
90}
91static inline u32 fifo_runlist_base_target_sys_mem_coh_f(void)
92{
93 return 0x20000000U;
94}
95static inline u32 fifo_runlist_base_target_sys_mem_ncoh_f(void)
96{
97 return 0x30000000U;
98}
99static inline u32 fifo_runlist_r(void)
100{
101 return 0x00002274U;
102}
103static inline u32 fifo_runlist_engine_f(u32 v)
104{
105 return (v & 0xfU) << 20U;
106}
107static inline u32 fifo_eng_runlist_base_r(u32 i)
108{
109 return 0x00002280U + i*8U;
110}
111static inline u32 fifo_eng_runlist_base__size_1_v(void)
112{
113 return 0x00000001U;
114}
115static inline u32 fifo_eng_runlist_r(u32 i)
116{
117 return 0x00002284U + i*8U;
118}
119static inline u32 fifo_eng_runlist__size_1_v(void)
120{
121 return 0x00000001U;
122}
123static inline u32 fifo_eng_runlist_length_f(u32 v)
124{
125 return (v & 0xffffU) << 0U;
126}
127static inline u32 fifo_eng_runlist_length_max_v(void)
128{
129 return 0x0000ffffU;
130}
131static inline u32 fifo_eng_runlist_pending_true_f(void)
132{
133 return 0x100000U;
134}
135static inline u32 fifo_pb_timeslice_r(u32 i)
136{
137 return 0x00002350U + i*4U;
138}
139static inline u32 fifo_pb_timeslice_timeout_16_f(void)
140{
141 return 0x10U;
142}
143static inline u32 fifo_pb_timeslice_timescale_0_f(void)
144{
145 return 0x0U;
146}
147static inline u32 fifo_pb_timeslice_enable_true_f(void)
148{
149 return 0x10000000U;
150}
151static inline u32 fifo_pbdma_map_r(u32 i)
152{
153 return 0x00002390U + i*4U;
154}
155static inline u32 fifo_intr_0_r(void)
156{
157 return 0x00002100U;
158}
159static inline u32 fifo_intr_0_bind_error_pending_f(void)
160{
161 return 0x1U;
162}
163static inline u32 fifo_intr_0_bind_error_reset_f(void)
164{
165 return 0x1U;
166}
167static inline u32 fifo_intr_0_sched_error_pending_f(void)
168{
169 return 0x100U;
170}
171static inline u32 fifo_intr_0_sched_error_reset_f(void)
172{
173 return 0x100U;
174}
175static inline u32 fifo_intr_0_chsw_error_pending_f(void)
176{
177 return 0x10000U;
178}
179static inline u32 fifo_intr_0_chsw_error_reset_f(void)
180{
181 return 0x10000U;
182}
183static inline u32 fifo_intr_0_fb_flush_timeout_pending_f(void)
184{
185 return 0x800000U;
186}
187static inline u32 fifo_intr_0_fb_flush_timeout_reset_f(void)
188{
189 return 0x800000U;
190}
191static inline u32 fifo_intr_0_lb_error_pending_f(void)
192{
193 return 0x1000000U;
194}
195static inline u32 fifo_intr_0_lb_error_reset_f(void)
196{
197 return 0x1000000U;
198}
199static inline u32 fifo_intr_0_replayable_fault_error_pending_f(void)
200{
201 return 0x2000000U;
202}
203static inline u32 fifo_intr_0_dropped_mmu_fault_pending_f(void)
204{
205 return 0x8000000U;
206}
207static inline u32 fifo_intr_0_dropped_mmu_fault_reset_f(void)
208{
209 return 0x8000000U;
210}
211static inline u32 fifo_intr_0_mmu_fault_pending_f(void)
212{
213 return 0x10000000U;
214}
215static inline u32 fifo_intr_0_pbdma_intr_pending_f(void)
216{
217 return 0x20000000U;
218}
219static inline u32 fifo_intr_0_runlist_event_pending_f(void)
220{
221 return 0x40000000U;
222}
223static inline u32 fifo_intr_0_channel_intr_pending_f(void)
224{
225 return 0x80000000U;
226}
227static inline u32 fifo_intr_en_0_r(void)
228{
229 return 0x00002140U;
230}
231static inline u32 fifo_intr_en_0_sched_error_f(u32 v)
232{
233 return (v & 0x1U) << 8U;
234}
235static inline u32 fifo_intr_en_0_sched_error_m(void)
236{
237 return 0x1U << 8U;
238}
239static inline u32 fifo_intr_en_0_mmu_fault_f(u32 v)
240{
241 return (v & 0x1U) << 28U;
242}
243static inline u32 fifo_intr_en_0_mmu_fault_m(void)
244{
245 return 0x1U << 28U;
246}
247static inline u32 fifo_intr_en_1_r(void)
248{
249 return 0x00002528U;
250}
251static inline u32 fifo_intr_bind_error_r(void)
252{
253 return 0x0000252cU;
254}
255static inline u32 fifo_intr_sched_error_r(void)
256{
257 return 0x0000254cU;
258}
259static inline u32 fifo_intr_sched_error_code_f(u32 v)
260{
261 return (v & 0xffU) << 0U;
262}
263static inline u32 fifo_intr_sched_error_code_ctxsw_timeout_v(void)
264{
265 return 0x0000000aU;
266}
267static inline u32 fifo_intr_chsw_error_r(void)
268{
269 return 0x0000256cU;
270}
271static inline u32 fifo_intr_mmu_fault_id_r(void)
272{
273 return 0x0000259cU;
274}
275static inline u32 fifo_intr_mmu_fault_eng_id_graphics_v(void)
276{
277 return 0x00000000U;
278}
279static inline u32 fifo_intr_mmu_fault_eng_id_graphics_f(void)
280{
281 return 0x0U;
282}
283static inline u32 fifo_intr_mmu_fault_inst_r(u32 i)
284{
285 return 0x00002800U + i*16U;
286}
287static inline u32 fifo_intr_mmu_fault_inst_ptr_v(u32 r)
288{
289 return (r >> 0U) & 0xfffffffU;
290}
291static inline u32 fifo_intr_mmu_fault_inst_ptr_align_shift_v(void)
292{
293 return 0x0000000cU;
294}
295static inline u32 fifo_intr_mmu_fault_lo_r(u32 i)
296{
297 return 0x00002804U + i*16U;
298}
299static inline u32 fifo_intr_mmu_fault_hi_r(u32 i)
300{
301 return 0x00002808U + i*16U;
302}
303static inline u32 fifo_intr_mmu_fault_info_r(u32 i)
304{
305 return 0x0000280cU + i*16U;
306}
307static inline u32 fifo_intr_mmu_fault_info_type_v(u32 r)
308{
309 return (r >> 0U) & 0x1fU;
310}
311static inline u32 fifo_intr_mmu_fault_info_access_type_v(u32 r)
312{
313 return (r >> 16U) & 0x7U;
314}
315static inline u32 fifo_intr_mmu_fault_info_client_type_v(u32 r)
316{
317 return (r >> 20U) & 0x1U;
318}
319static inline u32 fifo_intr_mmu_fault_info_client_type_gpc_v(void)
320{
321 return 0x00000000U;
322}
323static inline u32 fifo_intr_mmu_fault_info_client_type_hub_v(void)
324{
325 return 0x00000001U;
326}
327static inline u32 fifo_intr_mmu_fault_info_client_v(u32 r)
328{
329 return (r >> 8U) & 0x7fU;
330}
331static inline u32 fifo_intr_pbdma_id_r(void)
332{
333 return 0x000025a0U;
334}
335static inline u32 fifo_intr_pbdma_id_status_f(u32 v, u32 i)
336{
337 return (v & 0x1U) << (0U + i*1U);
338}
339static inline u32 fifo_intr_pbdma_id_status_v(u32 r, u32 i)
340{
341 return (r >> (0U + i*1U)) & 0x1U;
342}
343static inline u32 fifo_intr_pbdma_id_status__size_1_v(void)
344{
345 return 0x00000001U;
346}
347static inline u32 fifo_intr_runlist_r(void)
348{
349 return 0x00002a00U;
350}
351static inline u32 fifo_fb_timeout_r(void)
352{
353 return 0x00002a04U;
354}
355static inline u32 fifo_fb_timeout_period_m(void)
356{
357 return 0x3fffffffU << 0U;
358}
359static inline u32 fifo_fb_timeout_period_max_f(void)
360{
361 return 0x3fffffffU;
362}
363static inline u32 fifo_error_sched_disable_r(void)
364{
365 return 0x0000262cU;
366}
367static inline u32 fifo_sched_disable_r(void)
368{
369 return 0x00002630U;
370}
371static inline u32 fifo_sched_disable_runlist_f(u32 v, u32 i)
372{
373 return (v & 0x1U) << (0U + i*1U);
374}
375static inline u32 fifo_sched_disable_runlist_m(u32 i)
376{
377 return 0x1U << (0U + i*1U);
378}
379static inline u32 fifo_sched_disable_true_v(void)
380{
381 return 0x00000001U;
382}
383static inline u32 fifo_preempt_r(void)
384{
385 return 0x00002634U;
386}
387static inline u32 fifo_preempt_pending_true_f(void)
388{
389 return 0x100000U;
390}
391static inline u32 fifo_preempt_type_channel_f(void)
392{
393 return 0x0U;
394}
395static inline u32 fifo_preempt_type_tsg_f(void)
396{
397 return 0x1000000U;
398}
399static inline u32 fifo_preempt_chid_f(u32 v)
400{
401 return (v & 0xfffU) << 0U;
402}
403static inline u32 fifo_preempt_id_f(u32 v)
404{
405 return (v & 0xfffU) << 0U;
406}
407static inline u32 fifo_trigger_mmu_fault_r(u32 i)
408{
409 return 0x00002a30U + i*4U;
410}
411static inline u32 fifo_trigger_mmu_fault_id_f(u32 v)
412{
413 return (v & 0x1fU) << 0U;
414}
415static inline u32 fifo_trigger_mmu_fault_enable_f(u32 v)
416{
417 return (v & 0x1U) << 8U;
418}
419static inline u32 fifo_engine_status_r(u32 i)
420{
421 return 0x00002640U + i*8U;
422}
423static inline u32 fifo_engine_status__size_1_v(void)
424{
425 return 0x00000002U;
426}
427static inline u32 fifo_engine_status_id_v(u32 r)
428{
429 return (r >> 0U) & 0xfffU;
430}
431static inline u32 fifo_engine_status_id_type_v(u32 r)
432{
433 return (r >> 12U) & 0x1U;
434}
435static inline u32 fifo_engine_status_id_type_chid_v(void)
436{
437 return 0x00000000U;
438}
439static inline u32 fifo_engine_status_id_type_tsgid_v(void)
440{
441 return 0x00000001U;
442}
443static inline u32 fifo_engine_status_ctx_status_v(u32 r)
444{
445 return (r >> 13U) & 0x7U;
446}
447static inline u32 fifo_engine_status_ctx_status_invalid_v(void)
448{
449 return 0x00000000U;
450}
451static inline u32 fifo_engine_status_ctx_status_valid_v(void)
452{
453 return 0x00000001U;
454}
455static inline u32 fifo_engine_status_ctx_status_ctxsw_load_v(void)
456{
457 return 0x00000005U;
458}
459static inline u32 fifo_engine_status_ctx_status_ctxsw_save_v(void)
460{
461 return 0x00000006U;
462}
463static inline u32 fifo_engine_status_ctx_status_ctxsw_switch_v(void)
464{
465 return 0x00000007U;
466}
467static inline u32 fifo_engine_status_next_id_v(u32 r)
468{
469 return (r >> 16U) & 0xfffU;
470}
471static inline u32 fifo_engine_status_next_id_type_v(u32 r)
472{
473 return (r >> 28U) & 0x1U;
474}
475static inline u32 fifo_engine_status_next_id_type_chid_v(void)
476{
477 return 0x00000000U;
478}
479static inline u32 fifo_engine_status_faulted_v(u32 r)
480{
481 return (r >> 30U) & 0x1U;
482}
483static inline u32 fifo_engine_status_faulted_true_v(void)
484{
485 return 0x00000001U;
486}
487static inline u32 fifo_engine_status_engine_v(u32 r)
488{
489 return (r >> 31U) & 0x1U;
490}
491static inline u32 fifo_engine_status_engine_idle_v(void)
492{
493 return 0x00000000U;
494}
495static inline u32 fifo_engine_status_engine_busy_v(void)
496{
497 return 0x00000001U;
498}
499static inline u32 fifo_engine_status_ctxsw_v(u32 r)
500{
501 return (r >> 15U) & 0x1U;
502}
503static inline u32 fifo_engine_status_ctxsw_in_progress_v(void)
504{
505 return 0x00000001U;
506}
507static inline u32 fifo_engine_status_ctxsw_in_progress_f(void)
508{
509 return 0x8000U;
510}
511static inline u32 fifo_pbdma_status_r(u32 i)
512{
513 return 0x00003080U + i*4U;
514}
515static inline u32 fifo_pbdma_status__size_1_v(void)
516{
517 return 0x00000001U;
518}
519static inline u32 fifo_pbdma_status_id_v(u32 r)
520{
521 return (r >> 0U) & 0xfffU;
522}
523static inline u32 fifo_pbdma_status_id_type_v(u32 r)
524{
525 return (r >> 12U) & 0x1U;
526}
527static inline u32 fifo_pbdma_status_id_type_chid_v(void)
528{
529 return 0x00000000U;
530}
531static inline u32 fifo_pbdma_status_id_type_tsgid_v(void)
532{
533 return 0x00000001U;
534}
535static inline u32 fifo_pbdma_status_chan_status_v(u32 r)
536{
537 return (r >> 13U) & 0x7U;
538}
539static inline u32 fifo_pbdma_status_chan_status_valid_v(void)
540{
541 return 0x00000001U;
542}
543static inline u32 fifo_pbdma_status_chan_status_chsw_load_v(void)
544{
545 return 0x00000005U;
546}
547static inline u32 fifo_pbdma_status_chan_status_chsw_save_v(void)
548{
549 return 0x00000006U;
550}
551static inline u32 fifo_pbdma_status_chan_status_chsw_switch_v(void)
552{
553 return 0x00000007U;
554}
555static inline u32 fifo_pbdma_status_next_id_v(u32 r)
556{
557 return (r >> 16U) & 0xfffU;
558}
559static inline u32 fifo_pbdma_status_next_id_type_v(u32 r)
560{
561 return (r >> 28U) & 0x1U;
562}
563static inline u32 fifo_pbdma_status_next_id_type_chid_v(void)
564{
565 return 0x00000000U;
566}
567static inline u32 fifo_pbdma_status_chsw_v(u32 r)
568{
569 return (r >> 15U) & 0x1U;
570}
571static inline u32 fifo_pbdma_status_chsw_in_progress_v(void)
572{
573 return 0x00000001U;
574}
575static inline u32 fifo_replay_fault_buffer_lo_r(void)
576{
577 return 0x00002a70U;
578}
579static inline u32 fifo_replay_fault_buffer_lo_enable_v(u32 r)
580{
581 return (r >> 0U) & 0x1U;
582}
583static inline u32 fifo_replay_fault_buffer_lo_enable_true_v(void)
584{
585 return 0x00000001U;
586}
587static inline u32 fifo_replay_fault_buffer_lo_enable_false_v(void)
588{
589 return 0x00000000U;
590}
591static inline u32 fifo_replay_fault_buffer_lo_base_f(u32 v)
592{
593 return (v & 0xfffffU) << 12U;
594}
595static inline u32 fifo_replay_fault_buffer_lo_base_reset_v(void)
596{
597 return 0x00000000U;
598}
599static inline u32 fifo_replay_fault_buffer_hi_r(void)
600{
601 return 0x00002a74U;
602}
603static inline u32 fifo_replay_fault_buffer_hi_base_f(u32 v)
604{
605 return (v & 0xffU) << 0U;
606}
607static inline u32 fifo_replay_fault_buffer_hi_base_reset_v(void)
608{
609 return 0x00000000U;
610}
611static inline u32 fifo_replay_fault_buffer_size_r(void)
612{
613 return 0x00002a78U;
614}
615static inline u32 fifo_replay_fault_buffer_size_hw_f(u32 v)
616{
617 return (v & 0x1ffU) << 0U;
618}
619static inline u32 fifo_replay_fault_buffer_size_hw_entries_v(void)
620{
621 return 0x000000c0U;
622}
623static inline u32 fifo_replay_fault_buffer_get_r(void)
624{
625 return 0x00002a7cU;
626}
627static inline u32 fifo_replay_fault_buffer_get_offset_hw_f(u32 v)
628{
629 return (v & 0x1ffU) << 0U;
630}
631static inline u32 fifo_replay_fault_buffer_get_offset_hw_init_v(void)
632{
633 return 0x00000000U;
634}
635static inline u32 fifo_replay_fault_buffer_put_r(void)
636{
637 return 0x00002a80U;
638}
639static inline u32 fifo_replay_fault_buffer_put_offset_hw_f(u32 v)
640{
641 return (v & 0x1ffU) << 0U;
642}
643static inline u32 fifo_replay_fault_buffer_put_offset_hw_init_v(void)
644{
645 return 0x00000000U;
646}
647static inline u32 fifo_replay_fault_buffer_info_r(void)
648{
649 return 0x00002a84U;
650}
651static inline u32 fifo_replay_fault_buffer_info_overflow_f(u32 v)
652{
653 return (v & 0x1U) << 0U;
654}
655static inline u32 fifo_replay_fault_buffer_info_overflow_false_v(void)
656{
657 return 0x00000000U;
658}
659static inline u32 fifo_replay_fault_buffer_info_overflow_true_v(void)
660{
661 return 0x00000001U;
662}
663static inline u32 fifo_replay_fault_buffer_info_overflow_clear_v(void)
664{
665 return 0x00000001U;
666}
667static inline u32 fifo_replay_fault_buffer_info_write_nack_f(u32 v)
668{
669 return (v & 0x1U) << 24U;
670}
671static inline u32 fifo_replay_fault_buffer_info_write_nack_false_v(void)
672{
673 return 0x00000000U;
674}
675static inline u32 fifo_replay_fault_buffer_info_write_nack_true_v(void)
676{
677 return 0x00000001U;
678}
679static inline u32 fifo_replay_fault_buffer_info_write_nack_clear_v(void)
680{
681 return 0x00000001U;
682}
683static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_f(u32 v)
684{
685 return (v & 0x1U) << 28U;
686}
687static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_false_v(void)
688{
689 return 0x00000000U;
690}
691static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_true_v(void)
692{
693 return 0x00000001U;
694}
695static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_clear_v(void)
696{
697 return 0x00000001U;
698}
699#endif
diff --git a/include/nvgpu/hw/gp10b/hw_flush_gp10b.h b/include/nvgpu/hw/gp10b/hw_flush_gp10b.h
new file mode 100644
index 0000000..ae6eabf
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_flush_gp10b.h
@@ -0,0 +1,187 @@
1/*
2 * Copyright (c) 2014-2017, 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_flush_gp10b_h_
57#define _hw_flush_gp10b_h_
58
59static inline u32 flush_l2_system_invalidate_r(void)
60{
61 return 0x00070004U;
62}
63static inline u32 flush_l2_system_invalidate_pending_v(u32 r)
64{
65 return (r >> 0U) & 0x1U;
66}
67static inline u32 flush_l2_system_invalidate_pending_busy_v(void)
68{
69 return 0x00000001U;
70}
71static inline u32 flush_l2_system_invalidate_pending_busy_f(void)
72{
73 return 0x1U;
74}
75static inline u32 flush_l2_system_invalidate_outstanding_v(u32 r)
76{
77 return (r >> 1U) & 0x1U;
78}
79static inline u32 flush_l2_system_invalidate_outstanding_true_v(void)
80{
81 return 0x00000001U;
82}
83static inline u32 flush_l2_flush_dirty_r(void)
84{
85 return 0x00070010U;
86}
87static inline u32 flush_l2_flush_dirty_pending_v(u32 r)
88{
89 return (r >> 0U) & 0x1U;
90}
91static inline u32 flush_l2_flush_dirty_pending_empty_v(void)
92{
93 return 0x00000000U;
94}
95static inline u32 flush_l2_flush_dirty_pending_empty_f(void)
96{
97 return 0x0U;
98}
99static inline u32 flush_l2_flush_dirty_pending_busy_v(void)
100{
101 return 0x00000001U;
102}
103static inline u32 flush_l2_flush_dirty_pending_busy_f(void)
104{
105 return 0x1U;
106}
107static inline u32 flush_l2_flush_dirty_outstanding_v(u32 r)
108{
109 return (r >> 1U) & 0x1U;
110}
111static inline u32 flush_l2_flush_dirty_outstanding_false_v(void)
112{
113 return 0x00000000U;
114}
115static inline u32 flush_l2_flush_dirty_outstanding_false_f(void)
116{
117 return 0x0U;
118}
119static inline u32 flush_l2_flush_dirty_outstanding_true_v(void)
120{
121 return 0x00000001U;
122}
123static inline u32 flush_l2_clean_comptags_r(void)
124{
125 return 0x0007000cU;
126}
127static inline u32 flush_l2_clean_comptags_pending_v(u32 r)
128{
129 return (r >> 0U) & 0x1U;
130}
131static inline u32 flush_l2_clean_comptags_pending_empty_v(void)
132{
133 return 0x00000000U;
134}
135static inline u32 flush_l2_clean_comptags_pending_empty_f(void)
136{
137 return 0x0U;
138}
139static inline u32 flush_l2_clean_comptags_pending_busy_v(void)
140{
141 return 0x00000001U;
142}
143static inline u32 flush_l2_clean_comptags_pending_busy_f(void)
144{
145 return 0x1U;
146}
147static inline u32 flush_l2_clean_comptags_outstanding_v(u32 r)
148{
149 return (r >> 1U) & 0x1U;
150}
151static inline u32 flush_l2_clean_comptags_outstanding_false_v(void)
152{
153 return 0x00000000U;
154}
155static inline u32 flush_l2_clean_comptags_outstanding_false_f(void)
156{
157 return 0x0U;
158}
159static inline u32 flush_l2_clean_comptags_outstanding_true_v(void)
160{
161 return 0x00000001U;
162}
163static inline u32 flush_fb_flush_r(void)
164{
165 return 0x00070000U;
166}
167static inline u32 flush_fb_flush_pending_v(u32 r)
168{
169 return (r >> 0U) & 0x1U;
170}
171static inline u32 flush_fb_flush_pending_busy_v(void)
172{
173 return 0x00000001U;
174}
175static inline u32 flush_fb_flush_pending_busy_f(void)
176{
177 return 0x1U;
178}
179static inline u32 flush_fb_flush_outstanding_v(u32 r)
180{
181 return (r >> 1U) & 0x1U;
182}
183static inline u32 flush_fb_flush_outstanding_true_v(void)
184{
185 return 0x00000001U;
186}
187#endif
diff --git a/include/nvgpu/hw/gp10b/hw_fuse_gp10b.h b/include/nvgpu/hw/gp10b/hw_fuse_gp10b.h
new file mode 100644
index 0000000..521dcfe
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_fuse_gp10b.h
@@ -0,0 +1,155 @@
1/*
2 * Copyright (c) 2014-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_fuse_gp10b_h_
57#define _hw_fuse_gp10b_h_
58
59static inline u32 fuse_status_opt_gpc_r(void)
60{
61 return 0x00021c1cU;
62}
63static inline u32 fuse_status_opt_tpc_gpc_r(u32 i)
64{
65 return 0x00021c38U + i*4U;
66}
67static inline u32 fuse_ctrl_opt_tpc_gpc_r(u32 i)
68{
69 return 0x00021838U + i*4U;
70}
71static inline u32 fuse_ctrl_opt_ram_svop_pdp_r(void)
72{
73 return 0x00021944U;
74}
75static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_f(u32 v)
76{
77 return (v & 0xffU) << 0U;
78}
79static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_m(void)
80{
81 return 0xffU << 0U;
82}
83static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_v(u32 r)
84{
85 return (r >> 0U) & 0xffU;
86}
87static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_r(void)
88{
89 return 0x00021948U;
90}
91static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_f(u32 v)
92{
93 return (v & 0x1U) << 0U;
94}
95static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_m(void)
96{
97 return 0x1U << 0U;
98}
99static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_yes_f(void)
104{
105 return 0x1U;
106}
107static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_no_f(void)
108{
109 return 0x0U;
110}
111static inline u32 fuse_status_opt_fbio_r(void)
112{
113 return 0x00021c14U;
114}
115static inline u32 fuse_status_opt_fbio_data_f(u32 v)
116{
117 return (v & 0xffffU) << 0U;
118}
119static inline u32 fuse_status_opt_fbio_data_m(void)
120{
121 return 0xffffU << 0U;
122}
123static inline u32 fuse_status_opt_fbio_data_v(u32 r)
124{
125 return (r >> 0U) & 0xffffU;
126}
127static inline u32 fuse_status_opt_rop_l2_fbp_r(u32 i)
128{
129 return 0x00021d70U + i*4U;
130}
131static inline u32 fuse_status_opt_fbp_r(void)
132{
133 return 0x00021d38U;
134}
135static inline u32 fuse_status_opt_fbp_idx_v(u32 r, u32 i)
136{
137 return (r >> (0U + i*1U)) & 0x1U;
138}
139static inline u32 fuse_opt_ecc_en_r(void)
140{
141 return 0x00021228U;
142}
143static inline u32 fuse_opt_feature_fuses_override_disable_r(void)
144{
145 return 0x000213f0U;
146}
147static inline u32 fuse_opt_sec_debug_en_r(void)
148{
149 return 0x00021218U;
150}
151static inline u32 fuse_opt_priv_sec_en_r(void)
152{
153 return 0x00021434U;
154}
155#endif
diff --git a/include/nvgpu/hw/gp10b/hw_gmmu_gp10b.h b/include/nvgpu/hw/gp10b/hw_gmmu_gp10b.h
new file mode 100644
index 0000000..6aeb435
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_gmmu_gp10b.h
@@ -0,0 +1,331 @@
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_gmmu_gp10b_h_
57#define _hw_gmmu_gp10b_h_
58
59static inline u32 gmmu_new_pde_is_pte_w(void)
60{
61 return 0U;
62}
63static inline u32 gmmu_new_pde_is_pte_false_f(void)
64{
65 return 0x0U;
66}
67static inline u32 gmmu_new_pde_aperture_w(void)
68{
69 return 0U;
70}
71static inline u32 gmmu_new_pde_aperture_invalid_f(void)
72{
73 return 0x0U;
74}
75static inline u32 gmmu_new_pde_aperture_video_memory_f(void)
76{
77 return 0x2U;
78}
79static inline u32 gmmu_new_pde_aperture_sys_mem_coh_f(void)
80{
81 return 0x4U;
82}
83static inline u32 gmmu_new_pde_aperture_sys_mem_ncoh_f(void)
84{
85 return 0x6U;
86}
87static inline u32 gmmu_new_pde_address_sys_f(u32 v)
88{
89 return (v & 0xffffffU) << 8U;
90}
91static inline u32 gmmu_new_pde_address_sys_w(void)
92{
93 return 0U;
94}
95static inline u32 gmmu_new_pde_vol_w(void)
96{
97 return 0U;
98}
99static inline u32 gmmu_new_pde_vol_true_f(void)
100{
101 return 0x8U;
102}
103static inline u32 gmmu_new_pde_vol_false_f(void)
104{
105 return 0x0U;
106}
107static inline u32 gmmu_new_pde_address_shift_v(void)
108{
109 return 0x0000000cU;
110}
111static inline u32 gmmu_new_pde__size_v(void)
112{
113 return 0x00000008U;
114}
115static inline u32 gmmu_new_dual_pde_is_pte_w(void)
116{
117 return 0U;
118}
119static inline u32 gmmu_new_dual_pde_is_pte_false_f(void)
120{
121 return 0x0U;
122}
123static inline u32 gmmu_new_dual_pde_aperture_big_w(void)
124{
125 return 0U;
126}
127static inline u32 gmmu_new_dual_pde_aperture_big_invalid_f(void)
128{
129 return 0x0U;
130}
131static inline u32 gmmu_new_dual_pde_aperture_big_video_memory_f(void)
132{
133 return 0x2U;
134}
135static inline u32 gmmu_new_dual_pde_aperture_big_sys_mem_coh_f(void)
136{
137 return 0x4U;
138}
139static inline u32 gmmu_new_dual_pde_aperture_big_sys_mem_ncoh_f(void)
140{
141 return 0x6U;
142}
143static inline u32 gmmu_new_dual_pde_address_big_sys_f(u32 v)
144{
145 return (v & 0xfffffffU) << 4U;
146}
147static inline u32 gmmu_new_dual_pde_address_big_sys_w(void)
148{
149 return 0U;
150}
151static inline u32 gmmu_new_dual_pde_aperture_small_w(void)
152{
153 return 2U;
154}
155static inline u32 gmmu_new_dual_pde_aperture_small_invalid_f(void)
156{
157 return 0x0U;
158}
159static inline u32 gmmu_new_dual_pde_aperture_small_video_memory_f(void)
160{
161 return 0x2U;
162}
163static inline u32 gmmu_new_dual_pde_aperture_small_sys_mem_coh_f(void)
164{
165 return 0x4U;
166}
167static inline u32 gmmu_new_dual_pde_aperture_small_sys_mem_ncoh_f(void)
168{
169 return 0x6U;
170}
171static inline u32 gmmu_new_dual_pde_vol_small_w(void)
172{
173 return 2U;
174}
175static inline u32 gmmu_new_dual_pde_vol_small_true_f(void)
176{
177 return 0x8U;
178}
179static inline u32 gmmu_new_dual_pde_vol_small_false_f(void)
180{
181 return 0x0U;
182}
183static inline u32 gmmu_new_dual_pde_vol_big_w(void)
184{
185 return 0U;
186}
187static inline u32 gmmu_new_dual_pde_vol_big_true_f(void)
188{
189 return 0x8U;
190}
191static inline u32 gmmu_new_dual_pde_vol_big_false_f(void)
192{
193 return 0x0U;
194}
195static inline u32 gmmu_new_dual_pde_address_small_sys_f(u32 v)
196{
197 return (v & 0xffffffU) << 8U;
198}
199static inline u32 gmmu_new_dual_pde_address_small_sys_w(void)
200{
201 return 2U;
202}
203static inline u32 gmmu_new_dual_pde_address_shift_v(void)
204{
205 return 0x0000000cU;
206}
207static inline u32 gmmu_new_dual_pde_address_big_shift_v(void)
208{
209 return 0x00000008U;
210}
211static inline u32 gmmu_new_dual_pde__size_v(void)
212{
213 return 0x00000010U;
214}
215static inline u32 gmmu_new_pte__size_v(void)
216{
217 return 0x00000008U;
218}
219static inline u32 gmmu_new_pte_valid_w(void)
220{
221 return 0U;
222}
223static inline u32 gmmu_new_pte_valid_true_f(void)
224{
225 return 0x1U;
226}
227static inline u32 gmmu_new_pte_valid_false_f(void)
228{
229 return 0x0U;
230}
231static inline u32 gmmu_new_pte_privilege_w(void)
232{
233 return 0U;
234}
235static inline u32 gmmu_new_pte_privilege_true_f(void)
236{
237 return 0x20U;
238}
239static inline u32 gmmu_new_pte_privilege_false_f(void)
240{
241 return 0x0U;
242}
243static inline u32 gmmu_new_pte_address_sys_f(u32 v)
244{
245 return (v & 0xffffffU) << 8U;
246}
247static inline u32 gmmu_new_pte_address_sys_w(void)
248{
249 return 0U;
250}
251static inline u32 gmmu_new_pte_address_vid_f(u32 v)
252{
253 return (v & 0xffffffU) << 8U;
254}
255static inline u32 gmmu_new_pte_address_vid_w(void)
256{
257 return 0U;
258}
259static inline u32 gmmu_new_pte_vol_w(void)
260{
261 return 0U;
262}
263static inline u32 gmmu_new_pte_vol_true_f(void)
264{
265 return 0x8U;
266}
267static inline u32 gmmu_new_pte_vol_false_f(void)
268{
269 return 0x0U;
270}
271static inline u32 gmmu_new_pte_aperture_w(void)
272{
273 return 0U;
274}
275static inline u32 gmmu_new_pte_aperture_video_memory_f(void)
276{
277 return 0x0U;
278}
279static inline u32 gmmu_new_pte_aperture_sys_mem_coh_f(void)
280{
281 return 0x4U;
282}
283static inline u32 gmmu_new_pte_aperture_sys_mem_ncoh_f(void)
284{
285 return 0x6U;
286}
287static inline u32 gmmu_new_pte_read_only_w(void)
288{
289 return 0U;
290}
291static inline u32 gmmu_new_pte_read_only_true_f(void)
292{
293 return 0x40U;
294}
295static inline u32 gmmu_new_pte_comptagline_f(u32 v)
296{
297 return (v & 0x3ffffU) << 4U;
298}
299static inline u32 gmmu_new_pte_comptagline_w(void)
300{
301 return 1U;
302}
303static inline u32 gmmu_new_pte_kind_f(u32 v)
304{
305 return (v & 0xffU) << 24U;
306}
307static inline u32 gmmu_new_pte_kind_w(void)
308{
309 return 1U;
310}
311static inline u32 gmmu_new_pte_address_shift_v(void)
312{
313 return 0x0000000cU;
314}
315static inline u32 gmmu_pte_kind_f(u32 v)
316{
317 return (v & 0xffU) << 4U;
318}
319static inline u32 gmmu_pte_kind_w(void)
320{
321 return 1U;
322}
323static inline u32 gmmu_pte_kind_invalid_v(void)
324{
325 return 0x000000ffU;
326}
327static inline u32 gmmu_pte_kind_pitch_v(void)
328{
329 return 0x00000000U;
330}
331#endif
diff --git a/include/nvgpu/hw/gp10b/hw_gr_gp10b.h b/include/nvgpu/hw/gp10b/hw_gr_gp10b.h
new file mode 100644
index 0000000..f7bc4c2
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_gr_gp10b.h
@@ -0,0 +1,4415 @@
1/*
2 * Copyright (c) 2014-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_gr_gp10b_h_
57#define _hw_gr_gp10b_h_
58
59static inline u32 gr_intr_r(void)
60{
61 return 0x00400100U;
62}
63static inline u32 gr_intr_notify_pending_f(void)
64{
65 return 0x1U;
66}
67static inline u32 gr_intr_notify_reset_f(void)
68{
69 return 0x1U;
70}
71static inline u32 gr_intr_semaphore_pending_f(void)
72{
73 return 0x2U;
74}
75static inline u32 gr_intr_semaphore_reset_f(void)
76{
77 return 0x2U;
78}
79static inline u32 gr_intr_illegal_method_pending_f(void)
80{
81 return 0x10U;
82}
83static inline u32 gr_intr_illegal_method_reset_f(void)
84{
85 return 0x10U;
86}
87static inline u32 gr_intr_illegal_notify_pending_f(void)
88{
89 return 0x40U;
90}
91static inline u32 gr_intr_illegal_notify_reset_f(void)
92{
93 return 0x40U;
94}
95static inline u32 gr_intr_firmware_method_f(u32 v)
96{
97 return (v & 0x1U) << 8U;
98}
99static inline u32 gr_intr_firmware_method_pending_f(void)
100{
101 return 0x100U;
102}
103static inline u32 gr_intr_firmware_method_reset_f(void)
104{
105 return 0x100U;
106}
107static inline u32 gr_intr_illegal_class_pending_f(void)
108{
109 return 0x20U;
110}
111static inline u32 gr_intr_illegal_class_reset_f(void)
112{
113 return 0x20U;
114}
115static inline u32 gr_intr_fecs_error_pending_f(void)
116{
117 return 0x80000U;
118}
119static inline u32 gr_intr_fecs_error_reset_f(void)
120{
121 return 0x80000U;
122}
123static inline u32 gr_intr_class_error_pending_f(void)
124{
125 return 0x100000U;
126}
127static inline u32 gr_intr_class_error_reset_f(void)
128{
129 return 0x100000U;
130}
131static inline u32 gr_intr_exception_pending_f(void)
132{
133 return 0x200000U;
134}
135static inline u32 gr_intr_exception_reset_f(void)
136{
137 return 0x200000U;
138}
139static inline u32 gr_fecs_intr_r(void)
140{
141 return 0x00400144U;
142}
143static inline u32 gr_class_error_r(void)
144{
145 return 0x00400110U;
146}
147static inline u32 gr_class_error_code_v(u32 r)
148{
149 return (r >> 0U) & 0xffffU;
150}
151static inline u32 gr_intr_nonstall_r(void)
152{
153 return 0x00400120U;
154}
155static inline u32 gr_intr_nonstall_trap_pending_f(void)
156{
157 return 0x2U;
158}
159static inline u32 gr_intr_en_r(void)
160{
161 return 0x0040013cU;
162}
163static inline u32 gr_exception_r(void)
164{
165 return 0x00400108U;
166}
167static inline u32 gr_exception_fe_m(void)
168{
169 return 0x1U << 0U;
170}
171static inline u32 gr_exception_gpc_m(void)
172{
173 return 0x1U << 24U;
174}
175static inline u32 gr_exception_memfmt_m(void)
176{
177 return 0x1U << 1U;
178}
179static inline u32 gr_exception_ds_m(void)
180{
181 return 0x1U << 4U;
182}
183static inline u32 gr_exception_sked_m(void)
184{
185 return 0x1U << 8U;
186}
187static inline u32 gr_exception_pd_m(void)
188{
189 return 0x1U << 2U;
190}
191static inline u32 gr_exception_scc_m(void)
192{
193 return 0x1U << 3U;
194}
195static inline u32 gr_exception_ssync_m(void)
196{
197 return 0x1U << 5U;
198}
199static inline u32 gr_exception_mme_m(void)
200{
201 return 0x1U << 7U;
202}
203static inline u32 gr_exception1_r(void)
204{
205 return 0x00400118U;
206}
207static inline u32 gr_exception1_gpc_0_pending_f(void)
208{
209 return 0x1U;
210}
211static inline u32 gr_exception2_r(void)
212{
213 return 0x0040011cU;
214}
215static inline u32 gr_exception_en_r(void)
216{
217 return 0x00400138U;
218}
219static inline u32 gr_exception_en_fe_m(void)
220{
221 return 0x1U << 0U;
222}
223static inline u32 gr_exception1_en_r(void)
224{
225 return 0x00400130U;
226}
227static inline u32 gr_exception2_en_r(void)
228{
229 return 0x00400134U;
230}
231static inline u32 gr_gpfifo_ctl_r(void)
232{
233 return 0x00400500U;
234}
235static inline u32 gr_gpfifo_ctl_access_f(u32 v)
236{
237 return (v & 0x1U) << 0U;
238}
239static inline u32 gr_gpfifo_ctl_access_disabled_f(void)
240{
241 return 0x0U;
242}
243static inline u32 gr_gpfifo_ctl_access_enabled_f(void)
244{
245 return 0x1U;
246}
247static inline u32 gr_gpfifo_ctl_semaphore_access_f(u32 v)
248{
249 return (v & 0x1U) << 16U;
250}
251static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_v(void)
252{
253 return 0x00000001U;
254}
255static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_f(void)
256{
257 return 0x10000U;
258}
259static inline u32 gr_gpfifo_status_r(void)
260{
261 return 0x00400504U;
262}
263static inline u32 gr_trapped_addr_r(void)
264{
265 return 0x00400704U;
266}
267static inline u32 gr_trapped_addr_mthd_v(u32 r)
268{
269 return (r >> 2U) & 0xfffU;
270}
271static inline u32 gr_trapped_addr_subch_v(u32 r)
272{
273 return (r >> 16U) & 0x7U;
274}
275static inline u32 gr_trapped_addr_mme_generated_v(u32 r)
276{
277 return (r >> 20U) & 0x1U;
278}
279static inline u32 gr_trapped_addr_datahigh_v(u32 r)
280{
281 return (r >> 24U) & 0x1U;
282}
283static inline u32 gr_trapped_addr_priv_v(u32 r)
284{
285 return (r >> 28U) & 0x1U;
286}
287static inline u32 gr_trapped_addr_status_v(u32 r)
288{
289 return (r >> 31U) & 0x1U;
290}
291static inline u32 gr_trapped_data_lo_r(void)
292{
293 return 0x00400708U;
294}
295static inline u32 gr_trapped_data_hi_r(void)
296{
297 return 0x0040070cU;
298}
299static inline u32 gr_trapped_data_mme_r(void)
300{
301 return 0x00400710U;
302}
303static inline u32 gr_trapped_data_mme_pc_v(u32 r)
304{
305 return (r >> 0U) & 0xfffU;
306}
307static inline u32 gr_status_r(void)
308{
309 return 0x00400700U;
310}
311static inline u32 gr_status_fe_method_upper_v(u32 r)
312{
313 return (r >> 1U) & 0x1U;
314}
315static inline u32 gr_status_fe_method_lower_v(u32 r)
316{
317 return (r >> 2U) & 0x1U;
318}
319static inline u32 gr_status_fe_method_lower_idle_v(void)
320{
321 return 0x00000000U;
322}
323static inline u32 gr_status_fe_gi_v(u32 r)
324{
325 return (r >> 21U) & 0x1U;
326}
327static inline u32 gr_status_mask_r(void)
328{
329 return 0x00400610U;
330}
331static inline u32 gr_status_1_r(void)
332{
333 return 0x00400604U;
334}
335static inline u32 gr_status_2_r(void)
336{
337 return 0x00400608U;
338}
339static inline u32 gr_engine_status_r(void)
340{
341 return 0x0040060cU;
342}
343static inline u32 gr_engine_status_value_busy_f(void)
344{
345 return 0x1U;
346}
347static inline u32 gr_pri_be0_becs_be_exception_r(void)
348{
349 return 0x00410204U;
350}
351static inline u32 gr_pri_be0_becs_be_exception_en_r(void)
352{
353 return 0x00410208U;
354}
355static inline u32 gr_pri_gpc0_gpccs_gpc_exception_r(void)
356{
357 return 0x00502c90U;
358}
359static inline u32 gr_pri_gpc0_gpccs_gpc_exception_en_r(void)
360{
361 return 0x00502c94U;
362}
363static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_r(void)
364{
365 return 0x00504508U;
366}
367static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
368{
369 return 0x0050450cU;
370}
371static inline u32 gr_activity_0_r(void)
372{
373 return 0x00400380U;
374}
375static inline u32 gr_activity_1_r(void)
376{
377 return 0x00400384U;
378}
379static inline u32 gr_activity_2_r(void)
380{
381 return 0x00400388U;
382}
383static inline u32 gr_activity_4_r(void)
384{
385 return 0x00400390U;
386}
387static inline u32 gr_activity_4_gpc0_s(void)
388{
389 return 3U;
390}
391static inline u32 gr_activity_4_gpc0_f(u32 v)
392{
393 return (v & 0x7U) << 0U;
394}
395static inline u32 gr_activity_4_gpc0_m(void)
396{
397 return 0x7U << 0U;
398}
399static inline u32 gr_activity_4_gpc0_v(u32 r)
400{
401 return (r >> 0U) & 0x7U;
402}
403static inline u32 gr_activity_4_gpc0_empty_v(void)
404{
405 return 0x00000000U;
406}
407static inline u32 gr_activity_4_gpc0_preempted_v(void)
408{
409 return 0x00000004U;
410}
411static inline u32 gr_pri_gpc0_gcc_dbg_r(void)
412{
413 return 0x00501000U;
414}
415static inline u32 gr_pri_gpcs_gcc_dbg_r(void)
416{
417 return 0x00419000U;
418}
419static inline u32 gr_pri_gpcs_gcc_dbg_invalidate_m(void)
420{
421 return 0x1U << 1U;
422}
423static inline u32 gr_pri_gpc0_tpc0_sm_cache_control_r(void)
424{
425 return 0x005046a4U;
426}
427static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_r(void)
428{
429 return 0x00419ea4U;
430}
431static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_invalidate_cache_m(void)
432{
433 return 0x1U << 0U;
434}
435static inline u32 gr_pri_sked_activity_r(void)
436{
437 return 0x00407054U;
438}
439static inline u32 gr_pri_gpc0_gpccs_gpc_activity0_r(void)
440{
441 return 0x00502c80U;
442}
443static inline u32 gr_pri_gpc0_gpccs_gpc_activity1_r(void)
444{
445 return 0x00502c84U;
446}
447static inline u32 gr_pri_gpc0_gpccs_gpc_activity2_r(void)
448{
449 return 0x00502c88U;
450}
451static inline u32 gr_pri_gpc0_gpccs_gpc_activity3_r(void)
452{
453 return 0x00502c8cU;
454}
455static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_activity_0_r(void)
456{
457 return 0x00504500U;
458}
459static inline u32 gr_pri_gpc0_tpc1_tpccs_tpc_activity_0_r(void)
460{
461 return 0x00504d00U;
462}
463static inline u32 gr_pri_gpc0_tpcs_tpccs_tpc_activity_0_r(void)
464{
465 return 0x00501d00U;
466}
467static inline u32 gr_pri_gpcs_gpccs_gpc_activity_0_r(void)
468{
469 return 0x0041ac80U;
470}
471static inline u32 gr_pri_gpcs_gpccs_gpc_activity_1_r(void)
472{
473 return 0x0041ac84U;
474}
475static inline u32 gr_pri_gpcs_gpccs_gpc_activity_2_r(void)
476{
477 return 0x0041ac88U;
478}
479static inline u32 gr_pri_gpcs_gpccs_gpc_activity_3_r(void)
480{
481 return 0x0041ac8cU;
482}
483static inline u32 gr_pri_gpcs_tpc0_tpccs_tpc_activity_0_r(void)
484{
485 return 0x0041c500U;
486}
487static inline u32 gr_pri_gpcs_tpc1_tpccs_tpc_activity_0_r(void)
488{
489 return 0x0041cd00U;
490}
491static inline u32 gr_pri_gpcs_tpcs_tpccs_tpc_activity_0_r(void)
492{
493 return 0x00419d00U;
494}
495static inline u32 gr_pri_be0_becs_be_activity0_r(void)
496{
497 return 0x00410200U;
498}
499static inline u32 gr_pri_be1_becs_be_activity0_r(void)
500{
501 return 0x00410600U;
502}
503static inline u32 gr_pri_bes_becs_be_activity0_r(void)
504{
505 return 0x00408a00U;
506}
507static inline u32 gr_pri_ds_mpipe_status_r(void)
508{
509 return 0x00405858U;
510}
511static inline u32 gr_pri_fe_go_idle_info_r(void)
512{
513 return 0x00404194U;
514}
515static inline u32 gr_pri_gpc0_tpc0_tex_m_tex_subunits_status_r(void)
516{
517 return 0x00504238U;
518}
519static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_r(void)
520{
521 return 0x005046b8U;
522}
523static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp0_b(void)
524{
525 return 4U;
526}
527static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp0_pending_f(void)
528{
529 return 0x10U;
530}
531static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp1_pending_f(void)
532{
533 return 0x20U;
534}
535static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp2_pending_f(void)
536{
537 return 0x40U;
538}
539static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp3_pending_f(void)
540{
541 return 0x80U;
542}
543static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp0_b(void)
544{
545 return 8U;
546}
547static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp0_pending_f(void)
548{
549 return 0x100U;
550}
551static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp1_pending_f(void)
552{
553 return 0x200U;
554}
555static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp2_pending_f(void)
556{
557 return 0x400U;
558}
559static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp3_pending_f(void)
560{
561 return 0x800U;
562}
563static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_r(void)
564{
565 return 0x005044a0U;
566}
567static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_corrected_shm0_pending_f(void)
568{
569 return 0x1U;
570}
571static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_corrected_shm1_pending_f(void)
572{
573 return 0x2U;
574}
575static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_detected_shm0_pending_f(void)
576{
577 return 0x10U;
578}
579static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_detected_shm1_pending_f(void)
580{
581 return 0x20U;
582}
583static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_double_err_detected_shm0_pending_f(void)
584{
585 return 0x100U;
586}
587static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_double_err_detected_shm1_pending_f(void)
588{
589 return 0x200U;
590}
591static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_single_err_count_r(void)
592{
593 return 0x005046bcU;
594}
595static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_double_err_count_r(void)
596{
597 return 0x005046c0U;
598}
599static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_r(void)
600{
601 return 0x005044a4U;
602}
603static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_corrected_m(void)
604{
605 return 0xffU << 0U;
606}
607static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_corrected_v(u32 r)
608{
609 return (r >> 0U) & 0xffU;
610}
611static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_detected_m(void)
612{
613 return 0xffU << 8U;
614}
615static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_detected_v(u32 r)
616{
617 return (r >> 8U) & 0xffU;
618}
619static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_double_detected_m(void)
620{
621 return 0xffU << 16U;
622}
623static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_double_detected_v(u32 r)
624{
625 return (r >> 16U) & 0xffU;
626}
627static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_r(void)
628{
629 return 0x005042c4U;
630}
631static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_default_f(void)
632{
633 return 0x0U;
634}
635static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe0_f(void)
636{
637 return 0x1U;
638}
639static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe1_f(void)
640{
641 return 0x2U;
642}
643static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_r(void)
644{
645 return 0x00504218U;
646}
647static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_sec_m(void)
648{
649 return 0xffffU << 0U;
650}
651static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_sec_v(u32 r)
652{
653 return (r >> 0U) & 0xffffU;
654}
655static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_ded_m(void)
656{
657 return 0xffffU << 16U;
658}
659static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_ded_v(u32 r)
660{
661 return (r >> 16U) & 0xffffU;
662}
663static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_r(void)
664{
665 return 0x005042ecU;
666}
667static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_sec_m(void)
668{
669 return 0xffffU << 0U;
670}
671static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_sec_v(u32 r)
672{
673 return (r >> 0U) & 0xffffU;
674}
675static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_ded_m(void)
676{
677 return 0xffffU << 16U;
678}
679static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_ded_v(u32 r)
680{
681 return (r >> 16U) & 0xffffU;
682}
683static inline u32 gr_pri_be0_crop_status1_r(void)
684{
685 return 0x00410134U;
686}
687static inline u32 gr_pri_bes_crop_status1_r(void)
688{
689 return 0x00408934U;
690}
691static inline u32 gr_pri_be0_zrop_status_r(void)
692{
693 return 0x00410048U;
694}
695static inline u32 gr_pri_be0_zrop_status2_r(void)
696{
697 return 0x0041004cU;
698}
699static inline u32 gr_pri_bes_zrop_status_r(void)
700{
701 return 0x00408848U;
702}
703static inline u32 gr_pri_bes_zrop_status2_r(void)
704{
705 return 0x0040884cU;
706}
707static inline u32 gr_pipe_bundle_address_r(void)
708{
709 return 0x00400200U;
710}
711static inline u32 gr_pipe_bundle_address_value_v(u32 r)
712{
713 return (r >> 0U) & 0xffffU;
714}
715static inline u32 gr_pipe_bundle_data_r(void)
716{
717 return 0x00400204U;
718}
719static inline u32 gr_pipe_bundle_config_r(void)
720{
721 return 0x00400208U;
722}
723static inline u32 gr_pipe_bundle_config_override_pipe_mode_disabled_f(void)
724{
725 return 0x0U;
726}
727static inline u32 gr_pipe_bundle_config_override_pipe_mode_enabled_f(void)
728{
729 return 0x80000000U;
730}
731static inline u32 gr_fe_hww_esr_r(void)
732{
733 return 0x00404000U;
734}
735static inline u32 gr_fe_hww_esr_reset_active_f(void)
736{
737 return 0x40000000U;
738}
739static inline u32 gr_fe_hww_esr_en_enable_f(void)
740{
741 return 0x80000000U;
742}
743static inline u32 gr_fe_hww_esr_info_r(void)
744{
745 return 0x004041b0U;
746}
747static inline u32 gr_fe_go_idle_timeout_r(void)
748{
749 return 0x00404154U;
750}
751static inline u32 gr_fe_go_idle_timeout_count_f(u32 v)
752{
753 return (v & 0xffffffffU) << 0U;
754}
755static inline u32 gr_fe_go_idle_timeout_count_disabled_f(void)
756{
757 return 0x0U;
758}
759static inline u32 gr_fe_go_idle_timeout_count_prod_f(void)
760{
761 return 0x7fffffffU;
762}
763static inline u32 gr_fe_object_table_r(u32 i)
764{
765 return 0x00404200U + i*4U;
766}
767static inline u32 gr_fe_object_table_nvclass_v(u32 r)
768{
769 return (r >> 0U) & 0xffffU;
770}
771static inline u32 gr_fe_tpc_fs_r(void)
772{
773 return 0x004041c4U;
774}
775static inline u32 gr_pri_mme_shadow_raw_index_r(void)
776{
777 return 0x00404488U;
778}
779static inline u32 gr_pri_mme_shadow_raw_index_write_trigger_f(void)
780{
781 return 0x80000000U;
782}
783static inline u32 gr_pri_mme_shadow_raw_data_r(void)
784{
785 return 0x0040448cU;
786}
787static inline u32 gr_mme_hww_esr_r(void)
788{
789 return 0x00404490U;
790}
791static inline u32 gr_mme_hww_esr_reset_active_f(void)
792{
793 return 0x40000000U;
794}
795static inline u32 gr_mme_hww_esr_en_enable_f(void)
796{
797 return 0x80000000U;
798}
799static inline u32 gr_mme_hww_esr_info_r(void)
800{
801 return 0x00404494U;
802}
803static inline u32 gr_memfmt_hww_esr_r(void)
804{
805 return 0x00404600U;
806}
807static inline u32 gr_memfmt_hww_esr_reset_active_f(void)
808{
809 return 0x40000000U;
810}
811static inline u32 gr_memfmt_hww_esr_en_enable_f(void)
812{
813 return 0x80000000U;
814}
815static inline u32 gr_fecs_cpuctl_r(void)
816{
817 return 0x00409100U;
818}
819static inline u32 gr_fecs_cpuctl_startcpu_f(u32 v)
820{
821 return (v & 0x1U) << 1U;
822}
823static inline u32 gr_fecs_cpuctl_alias_r(void)
824{
825 return 0x00409130U;
826}
827static inline u32 gr_fecs_cpuctl_alias_startcpu_f(u32 v)
828{
829 return (v & 0x1U) << 1U;
830}
831static inline u32 gr_fecs_dmactl_r(void)
832{
833 return 0x0040910cU;
834}
835static inline u32 gr_fecs_dmactl_require_ctx_f(u32 v)
836{
837 return (v & 0x1U) << 0U;
838}
839static inline u32 gr_fecs_dmactl_dmem_scrubbing_m(void)
840{
841 return 0x1U << 1U;
842}
843static inline u32 gr_fecs_dmactl_imem_scrubbing_m(void)
844{
845 return 0x1U << 2U;
846}
847static inline u32 gr_fecs_os_r(void)
848{
849 return 0x00409080U;
850}
851static inline u32 gr_fecs_idlestate_r(void)
852{
853 return 0x0040904cU;
854}
855static inline u32 gr_fecs_mailbox0_r(void)
856{
857 return 0x00409040U;
858}
859static inline u32 gr_fecs_mailbox1_r(void)
860{
861 return 0x00409044U;
862}
863static inline u32 gr_fecs_irqstat_r(void)
864{
865 return 0x00409008U;
866}
867static inline u32 gr_fecs_irqmode_r(void)
868{
869 return 0x0040900cU;
870}
871static inline u32 gr_fecs_irqmask_r(void)
872{
873 return 0x00409018U;
874}
875static inline u32 gr_fecs_irqdest_r(void)
876{
877 return 0x0040901cU;
878}
879static inline u32 gr_fecs_curctx_r(void)
880{
881 return 0x00409050U;
882}
883static inline u32 gr_fecs_nxtctx_r(void)
884{
885 return 0x00409054U;
886}
887static inline u32 gr_fecs_engctl_r(void)
888{
889 return 0x004090a4U;
890}
891static inline u32 gr_fecs_debug1_r(void)
892{
893 return 0x00409090U;
894}
895static inline u32 gr_fecs_debuginfo_r(void)
896{
897 return 0x00409094U;
898}
899static inline u32 gr_fecs_icd_cmd_r(void)
900{
901 return 0x00409200U;
902}
903static inline u32 gr_fecs_icd_cmd_opc_s(void)
904{
905 return 4U;
906}
907static inline u32 gr_fecs_icd_cmd_opc_f(u32 v)
908{
909 return (v & 0xfU) << 0U;
910}
911static inline u32 gr_fecs_icd_cmd_opc_m(void)
912{
913 return 0xfU << 0U;
914}
915static inline u32 gr_fecs_icd_cmd_opc_v(u32 r)
916{
917 return (r >> 0U) & 0xfU;
918}
919static inline u32 gr_fecs_icd_cmd_opc_rreg_f(void)
920{
921 return 0x8U;
922}
923static inline u32 gr_fecs_icd_cmd_opc_rstat_f(void)
924{
925 return 0xeU;
926}
927static inline u32 gr_fecs_icd_cmd_idx_f(u32 v)
928{
929 return (v & 0x1fU) << 8U;
930}
931static inline u32 gr_fecs_icd_rdata_r(void)
932{
933 return 0x0040920cU;
934}
935static inline u32 gr_fecs_imemc_r(u32 i)
936{
937 return 0x00409180U + i*16U;
938}
939static inline u32 gr_fecs_imemc_offs_f(u32 v)
940{
941 return (v & 0x3fU) << 2U;
942}
943static inline u32 gr_fecs_imemc_blk_f(u32 v)
944{
945 return (v & 0xffU) << 8U;
946}
947static inline u32 gr_fecs_imemc_aincw_f(u32 v)
948{
949 return (v & 0x1U) << 24U;
950}
951static inline u32 gr_fecs_imemd_r(u32 i)
952{
953 return 0x00409184U + i*16U;
954}
955static inline u32 gr_fecs_imemt_r(u32 i)
956{
957 return 0x00409188U + i*16U;
958}
959static inline u32 gr_fecs_imemt_tag_f(u32 v)
960{
961 return (v & 0xffffU) << 0U;
962}
963static inline u32 gr_fecs_dmemc_r(u32 i)
964{
965 return 0x004091c0U + i*8U;
966}
967static inline u32 gr_fecs_dmemc_offs_s(void)
968{
969 return 6U;
970}
971static inline u32 gr_fecs_dmemc_offs_f(u32 v)
972{
973 return (v & 0x3fU) << 2U;
974}
975static inline u32 gr_fecs_dmemc_offs_m(void)
976{
977 return 0x3fU << 2U;
978}
979static inline u32 gr_fecs_dmemc_offs_v(u32 r)
980{
981 return (r >> 2U) & 0x3fU;
982}
983static inline u32 gr_fecs_dmemc_blk_f(u32 v)
984{
985 return (v & 0xffU) << 8U;
986}
987static inline u32 gr_fecs_dmemc_aincw_f(u32 v)
988{
989 return (v & 0x1U) << 24U;
990}
991static inline u32 gr_fecs_dmemd_r(u32 i)
992{
993 return 0x004091c4U + i*8U;
994}
995static inline u32 gr_fecs_dmatrfbase_r(void)
996{
997 return 0x00409110U;
998}
999static inline u32 gr_fecs_dmatrfmoffs_r(void)
1000{
1001 return 0x00409114U;
1002}
1003static inline u32 gr_fecs_dmatrffboffs_r(void)
1004{
1005 return 0x0040911cU;
1006}
1007static inline u32 gr_fecs_dmatrfcmd_r(void)
1008{
1009 return 0x00409118U;
1010}
1011static inline u32 gr_fecs_dmatrfcmd_imem_f(u32 v)
1012{
1013 return (v & 0x1U) << 4U;
1014}
1015static inline u32 gr_fecs_dmatrfcmd_write_f(u32 v)
1016{
1017 return (v & 0x1U) << 5U;
1018}
1019static inline u32 gr_fecs_dmatrfcmd_size_f(u32 v)
1020{
1021 return (v & 0x7U) << 8U;
1022}
1023static inline u32 gr_fecs_dmatrfcmd_ctxdma_f(u32 v)
1024{
1025 return (v & 0x7U) << 12U;
1026}
1027static inline u32 gr_fecs_bootvec_r(void)
1028{
1029 return 0x00409104U;
1030}
1031static inline u32 gr_fecs_bootvec_vec_f(u32 v)
1032{
1033 return (v & 0xffffffffU) << 0U;
1034}
1035static inline u32 gr_fecs_falcon_hwcfg_r(void)
1036{
1037 return 0x00409108U;
1038}
1039static inline u32 gr_gpcs_gpccs_falcon_hwcfg_r(void)
1040{
1041 return 0x0041a108U;
1042}
1043static inline u32 gr_fecs_falcon_rm_r(void)
1044{
1045 return 0x00409084U;
1046}
1047static inline u32 gr_fecs_current_ctx_r(void)
1048{
1049 return 0x00409b00U;
1050}
1051static inline u32 gr_fecs_current_ctx_ptr_f(u32 v)
1052{
1053 return (v & 0xfffffffU) << 0U;
1054}
1055static inline u32 gr_fecs_current_ctx_ptr_v(u32 r)
1056{
1057 return (r >> 0U) & 0xfffffffU;
1058}
1059static inline u32 gr_fecs_current_ctx_target_s(void)
1060{
1061 return 2U;
1062}
1063static inline u32 gr_fecs_current_ctx_target_f(u32 v)
1064{
1065 return (v & 0x3U) << 28U;
1066}
1067static inline u32 gr_fecs_current_ctx_target_m(void)
1068{
1069 return 0x3U << 28U;
1070}
1071static inline u32 gr_fecs_current_ctx_target_v(u32 r)
1072{
1073 return (r >> 28U) & 0x3U;
1074}
1075static inline u32 gr_fecs_current_ctx_target_vid_mem_f(void)
1076{
1077 return 0x0U;
1078}
1079static inline u32 gr_fecs_current_ctx_target_sys_mem_coh_f(void)
1080{
1081 return 0x20000000U;
1082}
1083static inline u32 gr_fecs_current_ctx_target_sys_mem_ncoh_f(void)
1084{
1085 return 0x30000000U;
1086}
1087static inline u32 gr_fecs_current_ctx_valid_s(void)
1088{
1089 return 1U;
1090}
1091static inline u32 gr_fecs_current_ctx_valid_f(u32 v)
1092{
1093 return (v & 0x1U) << 31U;
1094}
1095static inline u32 gr_fecs_current_ctx_valid_m(void)
1096{
1097 return 0x1U << 31U;
1098}
1099static inline u32 gr_fecs_current_ctx_valid_v(u32 r)
1100{
1101 return (r >> 31U) & 0x1U;
1102}
1103static inline u32 gr_fecs_current_ctx_valid_false_f(void)
1104{
1105 return 0x0U;
1106}
1107static inline u32 gr_fecs_method_data_r(void)
1108{
1109 return 0x00409500U;
1110}
1111static inline u32 gr_fecs_method_push_r(void)
1112{
1113 return 0x00409504U;
1114}
1115static inline u32 gr_fecs_method_push_adr_f(u32 v)
1116{
1117 return (v & 0xfffU) << 0U;
1118}
1119static inline u32 gr_fecs_method_push_adr_bind_pointer_v(void)
1120{
1121 return 0x00000003U;
1122}
1123static inline u32 gr_fecs_method_push_adr_bind_pointer_f(void)
1124{
1125 return 0x3U;
1126}
1127static inline u32 gr_fecs_method_push_adr_discover_image_size_v(void)
1128{
1129 return 0x00000010U;
1130}
1131static inline u32 gr_fecs_method_push_adr_wfi_golden_save_v(void)
1132{
1133 return 0x00000009U;
1134}
1135static inline u32 gr_fecs_method_push_adr_restore_golden_v(void)
1136{
1137 return 0x00000015U;
1138}
1139static inline u32 gr_fecs_method_push_adr_discover_zcull_image_size_v(void)
1140{
1141 return 0x00000016U;
1142}
1143static inline u32 gr_fecs_method_push_adr_discover_pm_image_size_v(void)
1144{
1145 return 0x00000025U;
1146}
1147static inline u32 gr_fecs_method_push_adr_discover_reglist_image_size_v(void)
1148{
1149 return 0x00000030U;
1150}
1151static inline u32 gr_fecs_method_push_adr_set_reglist_bind_instance_v(void)
1152{
1153 return 0x00000031U;
1154}
1155static inline u32 gr_fecs_method_push_adr_set_reglist_virtual_address_v(void)
1156{
1157 return 0x00000032U;
1158}
1159static inline u32 gr_fecs_method_push_adr_stop_ctxsw_v(void)
1160{
1161 return 0x00000038U;
1162}
1163static inline u32 gr_fecs_method_push_adr_start_ctxsw_v(void)
1164{
1165 return 0x00000039U;
1166}
1167static inline u32 gr_fecs_method_push_adr_set_watchdog_timeout_f(void)
1168{
1169 return 0x21U;
1170}
1171static inline u32 gr_fecs_method_push_adr_write_timestamp_record_v(void)
1172{
1173 return 0x0000003dU;
1174}
1175static inline u32 gr_fecs_method_push_adr_discover_preemption_image_size_v(void)
1176{
1177 return 0x0000001aU;
1178}
1179static inline u32 gr_fecs_method_push_adr_halt_pipeline_v(void)
1180{
1181 return 0x00000004U;
1182}
1183static inline u32 gr_fecs_method_push_adr_configure_interrupt_completion_option_v(void)
1184{
1185 return 0x0000003aU;
1186}
1187static inline u32 gr_fecs_host_int_status_r(void)
1188{
1189 return 0x00409c18U;
1190}
1191static inline u32 gr_fecs_host_int_status_fault_during_ctxsw_f(u32 v)
1192{
1193 return (v & 0x1U) << 16U;
1194}
1195static inline u32 gr_fecs_host_int_status_umimp_firmware_method_f(u32 v)
1196{
1197 return (v & 0x1U) << 17U;
1198}
1199static inline u32 gr_fecs_host_int_status_umimp_illegal_method_f(u32 v)
1200{
1201 return (v & 0x1U) << 18U;
1202}
1203static inline u32 gr_fecs_host_int_status_watchdog_active_f(void)
1204{
1205 return 0x80000U;
1206}
1207static inline u32 gr_fecs_host_int_status_ctxsw_intr_f(u32 v)
1208{
1209 return (v & 0xffffU) << 0U;
1210}
1211static inline u32 gr_fecs_host_int_clear_r(void)
1212{
1213 return 0x00409c20U;
1214}
1215static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_f(u32 v)
1216{
1217 return (v & 0x1U) << 1U;
1218}
1219static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_clear_f(void)
1220{
1221 return 0x2U;
1222}
1223static inline u32 gr_fecs_host_int_enable_r(void)
1224{
1225 return 0x00409c24U;
1226}
1227static inline u32 gr_fecs_host_int_enable_ctxsw_intr1_enable_f(void)
1228{
1229 return 0x2U;
1230}
1231static inline u32 gr_fecs_host_int_enable_fault_during_ctxsw_enable_f(void)
1232{
1233 return 0x10000U;
1234}
1235static inline u32 gr_fecs_host_int_enable_umimp_firmware_method_enable_f(void)
1236{
1237 return 0x20000U;
1238}
1239static inline u32 gr_fecs_host_int_enable_umimp_illegal_method_enable_f(void)
1240{
1241 return 0x40000U;
1242}
1243static inline u32 gr_fecs_host_int_enable_watchdog_enable_f(void)
1244{
1245 return 0x80000U;
1246}
1247static inline u32 gr_fecs_ctxsw_reset_ctl_r(void)
1248{
1249 return 0x00409614U;
1250}
1251static inline u32 gr_fecs_ctxsw_reset_ctl_sys_halt_disabled_f(void)
1252{
1253 return 0x0U;
1254}
1255static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_halt_disabled_f(void)
1256{
1257 return 0x0U;
1258}
1259static inline u32 gr_fecs_ctxsw_reset_ctl_be_halt_disabled_f(void)
1260{
1261 return 0x0U;
1262}
1263static inline u32 gr_fecs_ctxsw_reset_ctl_sys_engine_reset_disabled_f(void)
1264{
1265 return 0x10U;
1266}
1267static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_engine_reset_disabled_f(void)
1268{
1269 return 0x20U;
1270}
1271static inline u32 gr_fecs_ctxsw_reset_ctl_be_engine_reset_disabled_f(void)
1272{
1273 return 0x40U;
1274}
1275static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_enabled_f(void)
1276{
1277 return 0x0U;
1278}
1279static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_disabled_f(void)
1280{
1281 return 0x100U;
1282}
1283static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_enabled_f(void)
1284{
1285 return 0x0U;
1286}
1287static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_disabled_f(void)
1288{
1289 return 0x200U;
1290}
1291static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_s(void)
1292{
1293 return 1U;
1294}
1295static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_f(u32 v)
1296{
1297 return (v & 0x1U) << 10U;
1298}
1299static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_m(void)
1300{
1301 return 0x1U << 10U;
1302}
1303static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_v(u32 r)
1304{
1305 return (r >> 10U) & 0x1U;
1306}
1307static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_enabled_f(void)
1308{
1309 return 0x0U;
1310}
1311static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_disabled_f(void)
1312{
1313 return 0x400U;
1314}
1315static inline u32 gr_fecs_ctx_state_store_major_rev_id_r(void)
1316{
1317 return 0x0040960cU;
1318}
1319static inline u32 gr_fecs_ctxsw_mailbox_r(u32 i)
1320{
1321 return 0x00409800U + i*4U;
1322}
1323static inline u32 gr_fecs_ctxsw_mailbox__size_1_v(void)
1324{
1325 return 0x00000010U;
1326}
1327static inline u32 gr_fecs_ctxsw_mailbox_value_f(u32 v)
1328{
1329 return (v & 0xffffffffU) << 0U;
1330}
1331static inline u32 gr_fecs_ctxsw_mailbox_value_pass_v(void)
1332{
1333 return 0x00000001U;
1334}
1335static inline u32 gr_fecs_ctxsw_mailbox_value_fail_v(void)
1336{
1337 return 0x00000002U;
1338}
1339static inline u32 gr_fecs_ctxsw_mailbox_set_r(u32 i)
1340{
1341 return 0x004098c0U + i*4U;
1342}
1343static inline u32 gr_fecs_ctxsw_mailbox_set_value_f(u32 v)
1344{
1345 return (v & 0xffffffffU) << 0U;
1346}
1347static inline u32 gr_fecs_ctxsw_mailbox_clear_r(u32 i)
1348{
1349 return 0x00409840U + i*4U;
1350}
1351static inline u32 gr_fecs_ctxsw_mailbox_clear_value_f(u32 v)
1352{
1353 return (v & 0xffffffffU) << 0U;
1354}
1355static inline u32 gr_fecs_fs_r(void)
1356{
1357 return 0x00409604U;
1358}
1359static inline u32 gr_fecs_fs_num_available_gpcs_s(void)
1360{
1361 return 5U;
1362}
1363static inline u32 gr_fecs_fs_num_available_gpcs_f(u32 v)
1364{
1365 return (v & 0x1fU) << 0U;
1366}
1367static inline u32 gr_fecs_fs_num_available_gpcs_m(void)
1368{
1369 return 0x1fU << 0U;
1370}
1371static inline u32 gr_fecs_fs_num_available_gpcs_v(u32 r)
1372{
1373 return (r >> 0U) & 0x1fU;
1374}
1375static inline u32 gr_fecs_fs_num_available_fbps_s(void)
1376{
1377 return 5U;
1378}
1379static inline u32 gr_fecs_fs_num_available_fbps_f(u32 v)
1380{
1381 return (v & 0x1fU) << 16U;
1382}
1383static inline u32 gr_fecs_fs_num_available_fbps_m(void)
1384{
1385 return 0x1fU << 16U;
1386}
1387static inline u32 gr_fecs_fs_num_available_fbps_v(u32 r)
1388{
1389 return (r >> 16U) & 0x1fU;
1390}
1391static inline u32 gr_fecs_cfg_r(void)
1392{
1393 return 0x00409620U;
1394}
1395static inline u32 gr_fecs_cfg_imem_sz_v(u32 r)
1396{
1397 return (r >> 0U) & 0xffU;
1398}
1399static inline u32 gr_fecs_rc_lanes_r(void)
1400{
1401 return 0x00409880U;
1402}
1403static inline u32 gr_fecs_rc_lanes_num_chains_s(void)
1404{
1405 return 6U;
1406}
1407static inline u32 gr_fecs_rc_lanes_num_chains_f(u32 v)
1408{
1409 return (v & 0x3fU) << 0U;
1410}
1411static inline u32 gr_fecs_rc_lanes_num_chains_m(void)
1412{
1413 return 0x3fU << 0U;
1414}
1415static inline u32 gr_fecs_rc_lanes_num_chains_v(u32 r)
1416{
1417 return (r >> 0U) & 0x3fU;
1418}
1419static inline u32 gr_fecs_ctxsw_status_1_r(void)
1420{
1421 return 0x00409400U;
1422}
1423static inline u32 gr_fecs_ctxsw_status_1_arb_busy_s(void)
1424{
1425 return 1U;
1426}
1427static inline u32 gr_fecs_ctxsw_status_1_arb_busy_f(u32 v)
1428{
1429 return (v & 0x1U) << 12U;
1430}
1431static inline u32 gr_fecs_ctxsw_status_1_arb_busy_m(void)
1432{
1433 return 0x1U << 12U;
1434}
1435static inline u32 gr_fecs_ctxsw_status_1_arb_busy_v(u32 r)
1436{
1437 return (r >> 12U) & 0x1U;
1438}
1439static inline u32 gr_fecs_arb_ctx_adr_r(void)
1440{
1441 return 0x00409a24U;
1442}
1443static inline u32 gr_fecs_new_ctx_r(void)
1444{
1445 return 0x00409b04U;
1446}
1447static inline u32 gr_fecs_new_ctx_ptr_s(void)
1448{
1449 return 28U;
1450}
1451static inline u32 gr_fecs_new_ctx_ptr_f(u32 v)
1452{
1453 return (v & 0xfffffffU) << 0U;
1454}
1455static inline u32 gr_fecs_new_ctx_ptr_m(void)
1456{
1457 return 0xfffffffU << 0U;
1458}
1459static inline u32 gr_fecs_new_ctx_ptr_v(u32 r)
1460{
1461 return (r >> 0U) & 0xfffffffU;
1462}
1463static inline u32 gr_fecs_new_ctx_target_s(void)
1464{
1465 return 2U;
1466}
1467static inline u32 gr_fecs_new_ctx_target_f(u32 v)
1468{
1469 return (v & 0x3U) << 28U;
1470}
1471static inline u32 gr_fecs_new_ctx_target_m(void)
1472{
1473 return 0x3U << 28U;
1474}
1475static inline u32 gr_fecs_new_ctx_target_v(u32 r)
1476{
1477 return (r >> 28U) & 0x3U;
1478}
1479static inline u32 gr_fecs_new_ctx_target_vid_mem_f(void)
1480{
1481 return 0x0U;
1482}
1483static inline u32 gr_fecs_new_ctx_target_sys_mem_ncoh_f(void)
1484{
1485 return 0x30000000U;
1486}
1487static inline u32 gr_fecs_new_ctx_target_sys_mem_coh_f(void)
1488{
1489 return 0x20000000U;
1490}
1491static inline u32 gr_fecs_new_ctx_valid_s(void)
1492{
1493 return 1U;
1494}
1495static inline u32 gr_fecs_new_ctx_valid_f(u32 v)
1496{
1497 return (v & 0x1U) << 31U;
1498}
1499static inline u32 gr_fecs_new_ctx_valid_m(void)
1500{
1501 return 0x1U << 31U;
1502}
1503static inline u32 gr_fecs_new_ctx_valid_v(u32 r)
1504{
1505 return (r >> 31U) & 0x1U;
1506}
1507static inline u32 gr_fecs_arb_ctx_ptr_r(void)
1508{
1509 return 0x00409a0cU;
1510}
1511static inline u32 gr_fecs_arb_ctx_ptr_ptr_s(void)
1512{
1513 return 28U;
1514}
1515static inline u32 gr_fecs_arb_ctx_ptr_ptr_f(u32 v)
1516{
1517 return (v & 0xfffffffU) << 0U;
1518}
1519static inline u32 gr_fecs_arb_ctx_ptr_ptr_m(void)
1520{
1521 return 0xfffffffU << 0U;
1522}
1523static inline u32 gr_fecs_arb_ctx_ptr_ptr_v(u32 r)
1524{
1525 return (r >> 0U) & 0xfffffffU;
1526}
1527static inline u32 gr_fecs_arb_ctx_ptr_target_s(void)
1528{
1529 return 2U;
1530}
1531static inline u32 gr_fecs_arb_ctx_ptr_target_f(u32 v)
1532{
1533 return (v & 0x3U) << 28U;
1534}
1535static inline u32 gr_fecs_arb_ctx_ptr_target_m(void)
1536{
1537 return 0x3U << 28U;
1538}
1539static inline u32 gr_fecs_arb_ctx_ptr_target_v(u32 r)
1540{
1541 return (r >> 28U) & 0x3U;
1542}
1543static inline u32 gr_fecs_arb_ctx_ptr_target_vid_mem_f(void)
1544{
1545 return 0x0U;
1546}
1547static inline u32 gr_fecs_arb_ctx_ptr_target_sys_mem_ncoh_f(void)
1548{
1549 return 0x30000000U;
1550}
1551static inline u32 gr_fecs_arb_ctx_ptr_target_sys_mem_coh_f(void)
1552{
1553 return 0x20000000U;
1554}
1555static inline u32 gr_fecs_arb_ctx_cmd_r(void)
1556{
1557 return 0x00409a10U;
1558}
1559static inline u32 gr_fecs_arb_ctx_cmd_cmd_s(void)
1560{
1561 return 5U;
1562}
1563static inline u32 gr_fecs_arb_ctx_cmd_cmd_f(u32 v)
1564{
1565 return (v & 0x1fU) << 0U;
1566}
1567static inline u32 gr_fecs_arb_ctx_cmd_cmd_m(void)
1568{
1569 return 0x1fU << 0U;
1570}
1571static inline u32 gr_fecs_arb_ctx_cmd_cmd_v(u32 r)
1572{
1573 return (r >> 0U) & 0x1fU;
1574}
1575static inline u32 gr_fecs_ctxsw_status_fe_0_r(void)
1576{
1577 return 0x00409c00U;
1578}
1579static inline u32 gr_gpc0_gpccs_ctxsw_status_gpc_0_r(void)
1580{
1581 return 0x00502c04U;
1582}
1583static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void)
1584{
1585 return 0x00502400U;
1586}
1587static inline u32 gr_fecs_ctxsw_idlestate_r(void)
1588{
1589 return 0x00409420U;
1590}
1591static inline u32 gr_fecs_feature_override_ecc_r(void)
1592{
1593 return 0x00409658U;
1594}
1595static inline u32 gr_fecs_feature_override_ecc_sm_lrf_override_v(u32 r)
1596{
1597 return (r >> 3U) & 0x1U;
1598}
1599static inline u32 gr_fecs_feature_override_ecc_sm_shm_override_v(u32 r)
1600{
1601 return (r >> 7U) & 0x1U;
1602}
1603static inline u32 gr_fecs_feature_override_ecc_tex_override_v(u32 r)
1604{
1605 return (r >> 11U) & 0x1U;
1606}
1607static inline u32 gr_fecs_feature_override_ecc_ltc_override_v(u32 r)
1608{
1609 return (r >> 15U) & 0x1U;
1610}
1611static inline u32 gr_fecs_feature_override_ecc_sm_lrf_v(u32 r)
1612{
1613 return (r >> 0U) & 0x1U;
1614}
1615static inline u32 gr_fecs_feature_override_ecc_sm_shm_v(u32 r)
1616{
1617 return (r >> 4U) & 0x1U;
1618}
1619static inline u32 gr_fecs_feature_override_ecc_tex_v(u32 r)
1620{
1621 return (r >> 8U) & 0x1U;
1622}
1623static inline u32 gr_fecs_feature_override_ecc_ltc_v(u32 r)
1624{
1625 return (r >> 12U) & 0x1U;
1626}
1627static inline u32 gr_gpc0_gpccs_ctxsw_idlestate_r(void)
1628{
1629 return 0x00502420U;
1630}
1631static inline u32 gr_rstr2d_gpc_map0_r(void)
1632{
1633 return 0x0040780cU;
1634}
1635static inline u32 gr_rstr2d_gpc_map1_r(void)
1636{
1637 return 0x00407810U;
1638}
1639static inline u32 gr_rstr2d_gpc_map2_r(void)
1640{
1641 return 0x00407814U;
1642}
1643static inline u32 gr_rstr2d_gpc_map3_r(void)
1644{
1645 return 0x00407818U;
1646}
1647static inline u32 gr_rstr2d_gpc_map4_r(void)
1648{
1649 return 0x0040781cU;
1650}
1651static inline u32 gr_rstr2d_gpc_map5_r(void)
1652{
1653 return 0x00407820U;
1654}
1655static inline u32 gr_rstr2d_map_table_cfg_r(void)
1656{
1657 return 0x004078bcU;
1658}
1659static inline u32 gr_rstr2d_map_table_cfg_row_offset_f(u32 v)
1660{
1661 return (v & 0xffU) << 0U;
1662}
1663static inline u32 gr_rstr2d_map_table_cfg_num_entries_f(u32 v)
1664{
1665 return (v & 0xffU) << 8U;
1666}
1667static inline u32 gr_pd_hww_esr_r(void)
1668{
1669 return 0x00406018U;
1670}
1671static inline u32 gr_pd_hww_esr_reset_active_f(void)
1672{
1673 return 0x40000000U;
1674}
1675static inline u32 gr_pd_hww_esr_en_enable_f(void)
1676{
1677 return 0x80000000U;
1678}
1679static inline u32 gr_pd_num_tpc_per_gpc_r(u32 i)
1680{
1681 return 0x00406028U + i*4U;
1682}
1683static inline u32 gr_pd_num_tpc_per_gpc__size_1_v(void)
1684{
1685 return 0x00000004U;
1686}
1687static inline u32 gr_pd_num_tpc_per_gpc_count0_f(u32 v)
1688{
1689 return (v & 0xfU) << 0U;
1690}
1691static inline u32 gr_pd_num_tpc_per_gpc_count1_f(u32 v)
1692{
1693 return (v & 0xfU) << 4U;
1694}
1695static inline u32 gr_pd_num_tpc_per_gpc_count2_f(u32 v)
1696{
1697 return (v & 0xfU) << 8U;
1698}
1699static inline u32 gr_pd_num_tpc_per_gpc_count3_f(u32 v)
1700{
1701 return (v & 0xfU) << 12U;
1702}
1703static inline u32 gr_pd_num_tpc_per_gpc_count4_f(u32 v)
1704{
1705 return (v & 0xfU) << 16U;
1706}
1707static inline u32 gr_pd_num_tpc_per_gpc_count5_f(u32 v)
1708{
1709 return (v & 0xfU) << 20U;
1710}
1711static inline u32 gr_pd_num_tpc_per_gpc_count6_f(u32 v)
1712{
1713 return (v & 0xfU) << 24U;
1714}
1715static inline u32 gr_pd_num_tpc_per_gpc_count7_f(u32 v)
1716{
1717 return (v & 0xfU) << 28U;
1718}
1719static inline u32 gr_pd_ab_dist_cfg0_r(void)
1720{
1721 return 0x004064c0U;
1722}
1723static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_en_f(void)
1724{
1725 return 0x80000000U;
1726}
1727static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_dis_f(void)
1728{
1729 return 0x0U;
1730}
1731static inline u32 gr_pd_ab_dist_cfg1_r(void)
1732{
1733 return 0x004064c4U;
1734}
1735static inline u32 gr_pd_ab_dist_cfg1_max_batches_f(u32 v)
1736{
1737 return (v & 0xffffU) << 0U;
1738}
1739static inline u32 gr_pd_ab_dist_cfg1_max_batches_init_f(void)
1740{
1741 return 0xffffU;
1742}
1743static inline u32 gr_pd_ab_dist_cfg1_max_output_f(u32 v)
1744{
1745 return (v & 0xffffU) << 16U;
1746}
1747static inline u32 gr_pd_ab_dist_cfg1_max_output_granularity_v(void)
1748{
1749 return 0x00000080U;
1750}
1751static inline u32 gr_pd_ab_dist_cfg2_r(void)
1752{
1753 return 0x004064c8U;
1754}
1755static inline u32 gr_pd_ab_dist_cfg2_token_limit_f(u32 v)
1756{
1757 return (v & 0x1fffU) << 0U;
1758}
1759static inline u32 gr_pd_ab_dist_cfg2_token_limit_init_v(void)
1760{
1761 return 0x000001c0U;
1762}
1763static inline u32 gr_pd_ab_dist_cfg2_state_limit_f(u32 v)
1764{
1765 return (v & 0x1fffU) << 16U;
1766}
1767static inline u32 gr_pd_ab_dist_cfg2_state_limit_scc_bundle_granularity_v(void)
1768{
1769 return 0x00000020U;
1770}
1771static inline u32 gr_pd_ab_dist_cfg2_state_limit_min_gpm_fifo_depths_v(void)
1772{
1773 return 0x00000182U;
1774}
1775static inline u32 gr_pd_dist_skip_table_r(u32 i)
1776{
1777 return 0x004064d0U + i*4U;
1778}
1779static inline u32 gr_pd_dist_skip_table__size_1_v(void)
1780{
1781 return 0x00000008U;
1782}
1783static inline u32 gr_pd_dist_skip_table_gpc_4n0_mask_f(u32 v)
1784{
1785 return (v & 0xffU) << 0U;
1786}
1787static inline u32 gr_pd_dist_skip_table_gpc_4n1_mask_f(u32 v)
1788{
1789 return (v & 0xffU) << 8U;
1790}
1791static inline u32 gr_pd_dist_skip_table_gpc_4n2_mask_f(u32 v)
1792{
1793 return (v & 0xffU) << 16U;
1794}
1795static inline u32 gr_pd_dist_skip_table_gpc_4n3_mask_f(u32 v)
1796{
1797 return (v & 0xffU) << 24U;
1798}
1799static inline u32 gr_ds_debug_r(void)
1800{
1801 return 0x00405800U;
1802}
1803static inline u32 gr_ds_debug_timeslice_mode_disable_f(void)
1804{
1805 return 0x0U;
1806}
1807static inline u32 gr_ds_debug_timeslice_mode_enable_f(void)
1808{
1809 return 0x8000000U;
1810}
1811static inline u32 gr_ds_zbc_color_r_r(void)
1812{
1813 return 0x00405804U;
1814}
1815static inline u32 gr_ds_zbc_color_r_val_f(u32 v)
1816{
1817 return (v & 0xffffffffU) << 0U;
1818}
1819static inline u32 gr_ds_zbc_color_g_r(void)
1820{
1821 return 0x00405808U;
1822}
1823static inline u32 gr_ds_zbc_color_g_val_f(u32 v)
1824{
1825 return (v & 0xffffffffU) << 0U;
1826}
1827static inline u32 gr_ds_zbc_color_b_r(void)
1828{
1829 return 0x0040580cU;
1830}
1831static inline u32 gr_ds_zbc_color_b_val_f(u32 v)
1832{
1833 return (v & 0xffffffffU) << 0U;
1834}
1835static inline u32 gr_ds_zbc_color_a_r(void)
1836{
1837 return 0x00405810U;
1838}
1839static inline u32 gr_ds_zbc_color_a_val_f(u32 v)
1840{
1841 return (v & 0xffffffffU) << 0U;
1842}
1843static inline u32 gr_ds_zbc_color_fmt_r(void)
1844{
1845 return 0x00405814U;
1846}
1847static inline u32 gr_ds_zbc_color_fmt_val_f(u32 v)
1848{
1849 return (v & 0x7fU) << 0U;
1850}
1851static inline u32 gr_ds_zbc_color_fmt_val_invalid_f(void)
1852{
1853 return 0x0U;
1854}
1855static inline u32 gr_ds_zbc_color_fmt_val_zero_v(void)
1856{
1857 return 0x00000001U;
1858}
1859static inline u32 gr_ds_zbc_color_fmt_val_unorm_one_v(void)
1860{
1861 return 0x00000002U;
1862}
1863static inline u32 gr_ds_zbc_color_fmt_val_rf32_gf32_bf32_af32_v(void)
1864{
1865 return 0x00000004U;
1866}
1867static inline u32 gr_ds_zbc_color_fmt_val_a8_b8_g8_r8_v(void)
1868{
1869 return 0x00000028U;
1870}
1871static inline u32 gr_ds_zbc_z_r(void)
1872{
1873 return 0x00405818U;
1874}
1875static inline u32 gr_ds_zbc_z_val_s(void)
1876{
1877 return 32U;
1878}
1879static inline u32 gr_ds_zbc_z_val_f(u32 v)
1880{
1881 return (v & 0xffffffffU) << 0U;
1882}
1883static inline u32 gr_ds_zbc_z_val_m(void)
1884{
1885 return 0xffffffffU << 0U;
1886}
1887static inline u32 gr_ds_zbc_z_val_v(u32 r)
1888{
1889 return (r >> 0U) & 0xffffffffU;
1890}
1891static inline u32 gr_ds_zbc_z_val__init_v(void)
1892{
1893 return 0x00000000U;
1894}
1895static inline u32 gr_ds_zbc_z_val__init_f(void)
1896{
1897 return 0x0U;
1898}
1899static inline u32 gr_ds_zbc_z_fmt_r(void)
1900{
1901 return 0x0040581cU;
1902}
1903static inline u32 gr_ds_zbc_z_fmt_val_f(u32 v)
1904{
1905 return (v & 0x1U) << 0U;
1906}
1907static inline u32 gr_ds_zbc_z_fmt_val_invalid_f(void)
1908{
1909 return 0x0U;
1910}
1911static inline u32 gr_ds_zbc_z_fmt_val_fp32_v(void)
1912{
1913 return 0x00000001U;
1914}
1915static inline u32 gr_ds_zbc_tbl_index_r(void)
1916{
1917 return 0x00405820U;
1918}
1919static inline u32 gr_ds_zbc_tbl_index_val_f(u32 v)
1920{
1921 return (v & 0xfU) << 0U;
1922}
1923static inline u32 gr_ds_zbc_tbl_ld_r(void)
1924{
1925 return 0x00405824U;
1926}
1927static inline u32 gr_ds_zbc_tbl_ld_select_c_f(void)
1928{
1929 return 0x0U;
1930}
1931static inline u32 gr_ds_zbc_tbl_ld_select_z_f(void)
1932{
1933 return 0x1U;
1934}
1935static inline u32 gr_ds_zbc_tbl_ld_action_write_f(void)
1936{
1937 return 0x0U;
1938}
1939static inline u32 gr_ds_zbc_tbl_ld_trigger_active_f(void)
1940{
1941 return 0x4U;
1942}
1943static inline u32 gr_ds_tga_constraintlogic_beta_r(void)
1944{
1945 return 0x00405830U;
1946}
1947static inline u32 gr_ds_tga_constraintlogic_beta_cbsize_f(u32 v)
1948{
1949 return (v & 0x3fffffU) << 0U;
1950}
1951static inline u32 gr_ds_tga_constraintlogic_alpha_r(void)
1952{
1953 return 0x0040585cU;
1954}
1955static inline u32 gr_ds_tga_constraintlogic_alpha_cbsize_f(u32 v)
1956{
1957 return (v & 0xffffU) << 0U;
1958}
1959static inline u32 gr_ds_hww_esr_r(void)
1960{
1961 return 0x00405840U;
1962}
1963static inline u32 gr_ds_hww_esr_reset_s(void)
1964{
1965 return 1U;
1966}
1967static inline u32 gr_ds_hww_esr_reset_f(u32 v)
1968{
1969 return (v & 0x1U) << 30U;
1970}
1971static inline u32 gr_ds_hww_esr_reset_m(void)
1972{
1973 return 0x1U << 30U;
1974}
1975static inline u32 gr_ds_hww_esr_reset_v(u32 r)
1976{
1977 return (r >> 30U) & 0x1U;
1978}
1979static inline u32 gr_ds_hww_esr_reset_task_v(void)
1980{
1981 return 0x00000001U;
1982}
1983static inline u32 gr_ds_hww_esr_reset_task_f(void)
1984{
1985 return 0x40000000U;
1986}
1987static inline u32 gr_ds_hww_esr_en_enabled_f(void)
1988{
1989 return 0x80000000U;
1990}
1991static inline u32 gr_ds_hww_esr_2_r(void)
1992{
1993 return 0x00405848U;
1994}
1995static inline u32 gr_ds_hww_esr_2_reset_s(void)
1996{
1997 return 1U;
1998}
1999static inline u32 gr_ds_hww_esr_2_reset_f(u32 v)
2000{
2001 return (v & 0x1U) << 30U;
2002}
2003static inline u32 gr_ds_hww_esr_2_reset_m(void)
2004{
2005 return 0x1U << 30U;
2006}
2007static inline u32 gr_ds_hww_esr_2_reset_v(u32 r)
2008{
2009 return (r >> 30U) & 0x1U;
2010}
2011static inline u32 gr_ds_hww_esr_2_reset_task_v(void)
2012{
2013 return 0x00000001U;
2014}
2015static inline u32 gr_ds_hww_esr_2_reset_task_f(void)
2016{
2017 return 0x40000000U;
2018}
2019static inline u32 gr_ds_hww_esr_2_en_enabled_f(void)
2020{
2021 return 0x80000000U;
2022}
2023static inline u32 gr_ds_hww_report_mask_r(void)
2024{
2025 return 0x00405844U;
2026}
2027static inline u32 gr_ds_hww_report_mask_sph0_err_report_f(void)
2028{
2029 return 0x1U;
2030}
2031static inline u32 gr_ds_hww_report_mask_sph1_err_report_f(void)
2032{
2033 return 0x2U;
2034}
2035static inline u32 gr_ds_hww_report_mask_sph2_err_report_f(void)
2036{
2037 return 0x4U;
2038}
2039static inline u32 gr_ds_hww_report_mask_sph3_err_report_f(void)
2040{
2041 return 0x8U;
2042}
2043static inline u32 gr_ds_hww_report_mask_sph4_err_report_f(void)
2044{
2045 return 0x10U;
2046}
2047static inline u32 gr_ds_hww_report_mask_sph5_err_report_f(void)
2048{
2049 return 0x20U;
2050}
2051static inline u32 gr_ds_hww_report_mask_sph6_err_report_f(void)
2052{
2053 return 0x40U;
2054}
2055static inline u32 gr_ds_hww_report_mask_sph7_err_report_f(void)
2056{
2057 return 0x80U;
2058}
2059static inline u32 gr_ds_hww_report_mask_sph8_err_report_f(void)
2060{
2061 return 0x100U;
2062}
2063static inline u32 gr_ds_hww_report_mask_sph9_err_report_f(void)
2064{
2065 return 0x200U;
2066}
2067static inline u32 gr_ds_hww_report_mask_sph10_err_report_f(void)
2068{
2069 return 0x400U;
2070}
2071static inline u32 gr_ds_hww_report_mask_sph11_err_report_f(void)
2072{
2073 return 0x800U;
2074}
2075static inline u32 gr_ds_hww_report_mask_sph12_err_report_f(void)
2076{
2077 return 0x1000U;
2078}
2079static inline u32 gr_ds_hww_report_mask_sph13_err_report_f(void)
2080{
2081 return 0x2000U;
2082}
2083static inline u32 gr_ds_hww_report_mask_sph14_err_report_f(void)
2084{
2085 return 0x4000U;
2086}
2087static inline u32 gr_ds_hww_report_mask_sph15_err_report_f(void)
2088{
2089 return 0x8000U;
2090}
2091static inline u32 gr_ds_hww_report_mask_sph16_err_report_f(void)
2092{
2093 return 0x10000U;
2094}
2095static inline u32 gr_ds_hww_report_mask_sph17_err_report_f(void)
2096{
2097 return 0x20000U;
2098}
2099static inline u32 gr_ds_hww_report_mask_sph18_err_report_f(void)
2100{
2101 return 0x40000U;
2102}
2103static inline u32 gr_ds_hww_report_mask_sph19_err_report_f(void)
2104{
2105 return 0x80000U;
2106}
2107static inline u32 gr_ds_hww_report_mask_sph20_err_report_f(void)
2108{
2109 return 0x100000U;
2110}
2111static inline u32 gr_ds_hww_report_mask_sph21_err_report_f(void)
2112{
2113 return 0x200000U;
2114}
2115static inline u32 gr_ds_hww_report_mask_sph22_err_report_f(void)
2116{
2117 return 0x400000U;
2118}
2119static inline u32 gr_ds_hww_report_mask_sph23_err_report_f(void)
2120{
2121 return 0x800000U;
2122}
2123static inline u32 gr_ds_hww_report_mask_2_r(void)
2124{
2125 return 0x0040584cU;
2126}
2127static inline u32 gr_ds_hww_report_mask_2_sph24_err_report_f(void)
2128{
2129 return 0x1U;
2130}
2131static inline u32 gr_ds_num_tpc_per_gpc_r(u32 i)
2132{
2133 return 0x00405870U + i*4U;
2134}
2135static inline u32 gr_scc_bundle_cb_base_r(void)
2136{
2137 return 0x00408004U;
2138}
2139static inline u32 gr_scc_bundle_cb_base_addr_39_8_f(u32 v)
2140{
2141 return (v & 0xffffffffU) << 0U;
2142}
2143static inline u32 gr_scc_bundle_cb_base_addr_39_8_align_bits_v(void)
2144{
2145 return 0x00000008U;
2146}
2147static inline u32 gr_scc_bundle_cb_size_r(void)
2148{
2149 return 0x00408008U;
2150}
2151static inline u32 gr_scc_bundle_cb_size_div_256b_f(u32 v)
2152{
2153 return (v & 0x7ffU) << 0U;
2154}
2155static inline u32 gr_scc_bundle_cb_size_div_256b__prod_v(void)
2156{
2157 return 0x00000018U;
2158}
2159static inline u32 gr_scc_bundle_cb_size_div_256b_byte_granularity_v(void)
2160{
2161 return 0x00000100U;
2162}
2163static inline u32 gr_scc_bundle_cb_size_valid_false_v(void)
2164{
2165 return 0x00000000U;
2166}
2167static inline u32 gr_scc_bundle_cb_size_valid_false_f(void)
2168{
2169 return 0x0U;
2170}
2171static inline u32 gr_scc_bundle_cb_size_valid_true_f(void)
2172{
2173 return 0x80000000U;
2174}
2175static inline u32 gr_scc_pagepool_base_r(void)
2176{
2177 return 0x0040800cU;
2178}
2179static inline u32 gr_scc_pagepool_base_addr_39_8_f(u32 v)
2180{
2181 return (v & 0xffffffffU) << 0U;
2182}
2183static inline u32 gr_scc_pagepool_base_addr_39_8_align_bits_v(void)
2184{
2185 return 0x00000008U;
2186}
2187static inline u32 gr_scc_pagepool_r(void)
2188{
2189 return 0x00408010U;
2190}
2191static inline u32 gr_scc_pagepool_total_pages_f(u32 v)
2192{
2193 return (v & 0x3ffU) << 0U;
2194}
2195static inline u32 gr_scc_pagepool_total_pages_hwmax_v(void)
2196{
2197 return 0x00000000U;
2198}
2199static inline u32 gr_scc_pagepool_total_pages_hwmax_value_v(void)
2200{
2201 return 0x00000200U;
2202}
2203static inline u32 gr_scc_pagepool_total_pages_byte_granularity_v(void)
2204{
2205 return 0x00000100U;
2206}
2207static inline u32 gr_scc_pagepool_max_valid_pages_s(void)
2208{
2209 return 10U;
2210}
2211static inline u32 gr_scc_pagepool_max_valid_pages_f(u32 v)
2212{
2213 return (v & 0x3ffU) << 10U;
2214}
2215static inline u32 gr_scc_pagepool_max_valid_pages_m(void)
2216{
2217 return 0x3ffU << 10U;
2218}
2219static inline u32 gr_scc_pagepool_max_valid_pages_v(u32 r)
2220{
2221 return (r >> 10U) & 0x3ffU;
2222}
2223static inline u32 gr_scc_pagepool_valid_true_f(void)
2224{
2225 return 0x80000000U;
2226}
2227static inline u32 gr_scc_init_r(void)
2228{
2229 return 0x0040802cU;
2230}
2231static inline u32 gr_scc_init_ram_trigger_f(void)
2232{
2233 return 0x1U;
2234}
2235static inline u32 gr_scc_hww_esr_r(void)
2236{
2237 return 0x00408030U;
2238}
2239static inline u32 gr_scc_hww_esr_reset_active_f(void)
2240{
2241 return 0x40000000U;
2242}
2243static inline u32 gr_scc_hww_esr_en_enable_f(void)
2244{
2245 return 0x80000000U;
2246}
2247static inline u32 gr_sked_hww_esr_r(void)
2248{
2249 return 0x00407020U;
2250}
2251static inline u32 gr_sked_hww_esr_reset_active_f(void)
2252{
2253 return 0x40000000U;
2254}
2255static inline u32 gr_cwd_fs_r(void)
2256{
2257 return 0x00405b00U;
2258}
2259static inline u32 gr_cwd_fs_num_gpcs_f(u32 v)
2260{
2261 return (v & 0xffU) << 0U;
2262}
2263static inline u32 gr_cwd_fs_num_tpcs_f(u32 v)
2264{
2265 return (v & 0xffU) << 8U;
2266}
2267static inline u32 gr_cwd_gpc_tpc_id_r(u32 i)
2268{
2269 return 0x00405b60U + i*4U;
2270}
2271static inline u32 gr_cwd_gpc_tpc_id_tpc0_s(void)
2272{
2273 return 4U;
2274}
2275static inline u32 gr_cwd_gpc_tpc_id_tpc0_f(u32 v)
2276{
2277 return (v & 0xfU) << 0U;
2278}
2279static inline u32 gr_cwd_gpc_tpc_id_gpc0_s(void)
2280{
2281 return 4U;
2282}
2283static inline u32 gr_cwd_gpc_tpc_id_gpc0_f(u32 v)
2284{
2285 return (v & 0xfU) << 4U;
2286}
2287static inline u32 gr_cwd_gpc_tpc_id_tpc1_f(u32 v)
2288{
2289 return (v & 0xfU) << 8U;
2290}
2291static inline u32 gr_cwd_sm_id_r(u32 i)
2292{
2293 return 0x00405ba0U + i*4U;
2294}
2295static inline u32 gr_cwd_sm_id__size_1_v(void)
2296{
2297 return 0x00000010U;
2298}
2299static inline u32 gr_cwd_sm_id_tpc0_f(u32 v)
2300{
2301 return (v & 0xffU) << 0U;
2302}
2303static inline u32 gr_cwd_sm_id_tpc1_f(u32 v)
2304{
2305 return (v & 0xffU) << 8U;
2306}
2307static inline u32 gr_gpc0_fs_gpc_r(void)
2308{
2309 return 0x00502608U;
2310}
2311static inline u32 gr_gpc0_fs_gpc_num_available_tpcs_v(u32 r)
2312{
2313 return (r >> 0U) & 0x1fU;
2314}
2315static inline u32 gr_gpc0_fs_gpc_num_available_zculls_v(u32 r)
2316{
2317 return (r >> 16U) & 0x1fU;
2318}
2319static inline u32 gr_gpc0_cfg_r(void)
2320{
2321 return 0x00502620U;
2322}
2323static inline u32 gr_gpc0_cfg_imem_sz_v(u32 r)
2324{
2325 return (r >> 0U) & 0xffU;
2326}
2327static inline u32 gr_gpccs_rc_lanes_r(void)
2328{
2329 return 0x00502880U;
2330}
2331static inline u32 gr_gpccs_rc_lanes_num_chains_s(void)
2332{
2333 return 6U;
2334}
2335static inline u32 gr_gpccs_rc_lanes_num_chains_f(u32 v)
2336{
2337 return (v & 0x3fU) << 0U;
2338}
2339static inline u32 gr_gpccs_rc_lanes_num_chains_m(void)
2340{
2341 return 0x3fU << 0U;
2342}
2343static inline u32 gr_gpccs_rc_lanes_num_chains_v(u32 r)
2344{
2345 return (r >> 0U) & 0x3fU;
2346}
2347static inline u32 gr_gpccs_rc_lane_size_r(void)
2348{
2349 return 0x00502910U;
2350}
2351static inline u32 gr_gpccs_rc_lane_size_v_s(void)
2352{
2353 return 24U;
2354}
2355static inline u32 gr_gpccs_rc_lane_size_v_f(u32 v)
2356{
2357 return (v & 0xffffffU) << 0U;
2358}
2359static inline u32 gr_gpccs_rc_lane_size_v_m(void)
2360{
2361 return 0xffffffU << 0U;
2362}
2363static inline u32 gr_gpccs_rc_lane_size_v_v(u32 r)
2364{
2365 return (r >> 0U) & 0xffffffU;
2366}
2367static inline u32 gr_gpccs_rc_lane_size_v_0_v(void)
2368{
2369 return 0x00000000U;
2370}
2371static inline u32 gr_gpccs_rc_lane_size_v_0_f(void)
2372{
2373 return 0x0U;
2374}
2375static inline u32 gr_gpc0_zcull_fs_r(void)
2376{
2377 return 0x00500910U;
2378}
2379static inline u32 gr_gpc0_zcull_fs_num_sms_f(u32 v)
2380{
2381 return (v & 0x1ffU) << 0U;
2382}
2383static inline u32 gr_gpc0_zcull_fs_num_active_banks_f(u32 v)
2384{
2385 return (v & 0xfU) << 16U;
2386}
2387static inline u32 gr_gpc0_zcull_ram_addr_r(void)
2388{
2389 return 0x00500914U;
2390}
2391static inline u32 gr_gpc0_zcull_ram_addr_tiles_per_hypertile_row_per_gpc_f(u32 v)
2392{
2393 return (v & 0xfU) << 0U;
2394}
2395static inline u32 gr_gpc0_zcull_ram_addr_row_offset_f(u32 v)
2396{
2397 return (v & 0xfU) << 8U;
2398}
2399static inline u32 gr_gpc0_zcull_sm_num_rcp_r(void)
2400{
2401 return 0x00500918U;
2402}
2403static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative_f(u32 v)
2404{
2405 return (v & 0xffffffU) << 0U;
2406}
2407static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative__max_v(void)
2408{
2409 return 0x00800000U;
2410}
2411static inline u32 gr_gpc0_zcull_total_ram_size_r(void)
2412{
2413 return 0x00500920U;
2414}
2415static inline u32 gr_gpc0_zcull_total_ram_size_num_aliquots_f(u32 v)
2416{
2417 return (v & 0xffffU) << 0U;
2418}
2419static inline u32 gr_gpc0_zcull_zcsize_r(u32 i)
2420{
2421 return 0x00500a04U + i*32U;
2422}
2423static inline u32 gr_gpc0_zcull_zcsize_height_subregion__multiple_v(void)
2424{
2425 return 0x00000040U;
2426}
2427static inline u32 gr_gpc0_zcull_zcsize_width_subregion__multiple_v(void)
2428{
2429 return 0x00000010U;
2430}
2431static inline u32 gr_gpc0_gpm_pd_sm_id_r(u32 i)
2432{
2433 return 0x00500c10U + i*4U;
2434}
2435static inline u32 gr_gpc0_gpm_pd_sm_id_id_f(u32 v)
2436{
2437 return (v & 0xffU) << 0U;
2438}
2439static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_r(u32 i)
2440{
2441 return 0x00500c30U + i*4U;
2442}
2443static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_mask_v(u32 r)
2444{
2445 return (r >> 0U) & 0xffU;
2446}
2447static inline u32 gr_gpc0_tpc0_pe_cfg_smid_r(void)
2448{
2449 return 0x00504088U;
2450}
2451static inline u32 gr_gpc0_tpc0_pe_cfg_smid_value_f(u32 v)
2452{
2453 return (v & 0xffffU) << 0U;
2454}
2455static inline u32 gr_gpc0_tpc0_sm_cfg_r(void)
2456{
2457 return 0x00504698U;
2458}
2459static inline u32 gr_gpc0_tpc0_sm_cfg_sm_id_f(u32 v)
2460{
2461 return (v & 0xffffU) << 0U;
2462}
2463static inline u32 gr_gpc0_tpc0_sm_cfg_sm_id_v(u32 r)
2464{
2465 return (r >> 0U) & 0xffffU;
2466}
2467static inline u32 gr_gpc0_tpc0_sm_arch_r(void)
2468{
2469 return 0x0050469cU;
2470}
2471static inline u32 gr_gpc0_tpc0_sm_arch_warp_count_v(u32 r)
2472{
2473 return (r >> 0U) & 0xffU;
2474}
2475static inline u32 gr_gpc0_tpc0_sm_arch_spa_version_v(u32 r)
2476{
2477 return (r >> 8U) & 0xfffU;
2478}
2479static inline u32 gr_gpc0_tpc0_sm_arch_sm_version_v(u32 r)
2480{
2481 return (r >> 20U) & 0xfffU;
2482}
2483static inline u32 gr_gpc0_ppc0_pes_vsc_strem_r(void)
2484{
2485 return 0x00503018U;
2486}
2487static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_m(void)
2488{
2489 return 0x1U << 0U;
2490}
2491static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_true_f(void)
2492{
2493 return 0x1U;
2494}
2495static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_r(void)
2496{
2497 return 0x005030c0U;
2498}
2499static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_f(u32 v)
2500{
2501 return (v & 0x3fffffU) << 0U;
2502}
2503static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_m(void)
2504{
2505 return 0x3fffffU << 0U;
2506}
2507static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_default_v(void)
2508{
2509 return 0x00030000U;
2510}
2511static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_gfxp_v(void)
2512{
2513 return 0x00030a00U;
2514}
2515static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_granularity_v(void)
2516{
2517 return 0x00000020U;
2518}
2519static inline u32 gr_gpc0_ppc0_cbm_beta_cb_offset_r(void)
2520{
2521 return 0x005030f4U;
2522}
2523static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_r(void)
2524{
2525 return 0x005030e4U;
2526}
2527static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_f(u32 v)
2528{
2529 return (v & 0xffffU) << 0U;
2530}
2531static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_m(void)
2532{
2533 return 0xffffU << 0U;
2534}
2535static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_default_v(void)
2536{
2537 return 0x00000800U;
2538}
2539static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_granularity_v(void)
2540{
2541 return 0x00000020U;
2542}
2543static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_offset_r(void)
2544{
2545 return 0x005030f8U;
2546}
2547static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_r(void)
2548{
2549 return 0x005030f0U;
2550}
2551static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_f(u32 v)
2552{
2553 return (v & 0x3fffffU) << 0U;
2554}
2555static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_default_v(void)
2556{
2557 return 0x00030000U;
2558}
2559static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_r(void)
2560{
2561 return 0x00419b00U;
2562}
2563static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_base_addr_43_12_f(u32 v)
2564{
2565 return (v & 0xffffffffU) << 0U;
2566}
2567static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_r(void)
2568{
2569 return 0x00419b04U;
2570}
2571static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_s(void)
2572{
2573 return 21U;
2574}
2575static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_f(u32 v)
2576{
2577 return (v & 0x1fffffU) << 0U;
2578}
2579static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_m(void)
2580{
2581 return 0x1fffffU << 0U;
2582}
2583static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_v(u32 r)
2584{
2585 return (r >> 0U) & 0x1fffffU;
2586}
2587static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_granularity_f(void)
2588{
2589 return 0x80U;
2590}
2591static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_s(void)
2592{
2593 return 1U;
2594}
2595static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_f(u32 v)
2596{
2597 return (v & 0x1U) << 31U;
2598}
2599static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_m(void)
2600{
2601 return 0x1U << 31U;
2602}
2603static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_v(u32 r)
2604{
2605 return (r >> 31U) & 0x1U;
2606}
2607static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_true_f(void)
2608{
2609 return 0x80000000U;
2610}
2611static inline u32 gr_gpcs_tpcs_tex_m_dbg2_r(void)
2612{
2613 return 0x00419a3cU;
2614}
2615static inline u32 gr_gpcs_tpcs_tex_m_dbg2_lg_rd_coalesce_en_f(u32 v)
2616{
2617 return (v & 0x1U) << 2U;
2618}
2619static inline u32 gr_gpcs_tpcs_tex_m_dbg2_lg_rd_coalesce_en_m(void)
2620{
2621 return 0x1U << 2U;
2622}
2623static inline u32 gr_gpcs_tpcs_tex_m_dbg2_su_rd_coalesce_en_f(u32 v)
2624{
2625 return (v & 0x1U) << 4U;
2626}
2627static inline u32 gr_gpcs_tpcs_tex_m_dbg2_su_rd_coalesce_en_m(void)
2628{
2629 return 0x1U << 4U;
2630}
2631static inline u32 gr_gpccs_falcon_addr_r(void)
2632{
2633 return 0x0041a0acU;
2634}
2635static inline u32 gr_gpccs_falcon_addr_lsb_s(void)
2636{
2637 return 6U;
2638}
2639static inline u32 gr_gpccs_falcon_addr_lsb_f(u32 v)
2640{
2641 return (v & 0x3fU) << 0U;
2642}
2643static inline u32 gr_gpccs_falcon_addr_lsb_m(void)
2644{
2645 return 0x3fU << 0U;
2646}
2647static inline u32 gr_gpccs_falcon_addr_lsb_v(u32 r)
2648{
2649 return (r >> 0U) & 0x3fU;
2650}
2651static inline u32 gr_gpccs_falcon_addr_lsb_init_v(void)
2652{
2653 return 0x00000000U;
2654}
2655static inline u32 gr_gpccs_falcon_addr_lsb_init_f(void)
2656{
2657 return 0x0U;
2658}
2659static inline u32 gr_gpccs_falcon_addr_msb_s(void)
2660{
2661 return 6U;
2662}
2663static inline u32 gr_gpccs_falcon_addr_msb_f(u32 v)
2664{
2665 return (v & 0x3fU) << 6U;
2666}
2667static inline u32 gr_gpccs_falcon_addr_msb_m(void)
2668{
2669 return 0x3fU << 6U;
2670}
2671static inline u32 gr_gpccs_falcon_addr_msb_v(u32 r)
2672{
2673 return (r >> 6U) & 0x3fU;
2674}
2675static inline u32 gr_gpccs_falcon_addr_msb_init_v(void)
2676{
2677 return 0x00000000U;
2678}
2679static inline u32 gr_gpccs_falcon_addr_msb_init_f(void)
2680{
2681 return 0x0U;
2682}
2683static inline u32 gr_gpccs_falcon_addr_ext_s(void)
2684{
2685 return 12U;
2686}
2687static inline u32 gr_gpccs_falcon_addr_ext_f(u32 v)
2688{
2689 return (v & 0xfffU) << 0U;
2690}
2691static inline u32 gr_gpccs_falcon_addr_ext_m(void)
2692{
2693 return 0xfffU << 0U;
2694}
2695static inline u32 gr_gpccs_falcon_addr_ext_v(u32 r)
2696{
2697 return (r >> 0U) & 0xfffU;
2698}
2699static inline u32 gr_gpccs_cpuctl_r(void)
2700{
2701 return 0x0041a100U;
2702}
2703static inline u32 gr_gpccs_cpuctl_startcpu_f(u32 v)
2704{
2705 return (v & 0x1U) << 1U;
2706}
2707static inline u32 gr_gpccs_dmactl_r(void)
2708{
2709 return 0x0041a10cU;
2710}
2711static inline u32 gr_gpccs_dmactl_require_ctx_f(u32 v)
2712{
2713 return (v & 0x1U) << 0U;
2714}
2715static inline u32 gr_gpccs_dmactl_dmem_scrubbing_m(void)
2716{
2717 return 0x1U << 1U;
2718}
2719static inline u32 gr_gpccs_dmactl_imem_scrubbing_m(void)
2720{
2721 return 0x1U << 2U;
2722}
2723static inline u32 gr_gpccs_imemc_r(u32 i)
2724{
2725 return 0x0041a180U + i*16U;
2726}
2727static inline u32 gr_gpccs_imemc_offs_f(u32 v)
2728{
2729 return (v & 0x3fU) << 2U;
2730}
2731static inline u32 gr_gpccs_imemc_blk_f(u32 v)
2732{
2733 return (v & 0xffU) << 8U;
2734}
2735static inline u32 gr_gpccs_imemc_aincw_f(u32 v)
2736{
2737 return (v & 0x1U) << 24U;
2738}
2739static inline u32 gr_gpccs_imemd_r(u32 i)
2740{
2741 return 0x0041a184U + i*16U;
2742}
2743static inline u32 gr_gpccs_imemt_r(u32 i)
2744{
2745 return 0x0041a188U + i*16U;
2746}
2747static inline u32 gr_gpccs_imemt__size_1_v(void)
2748{
2749 return 0x00000004U;
2750}
2751static inline u32 gr_gpccs_imemt_tag_f(u32 v)
2752{
2753 return (v & 0xffffU) << 0U;
2754}
2755static inline u32 gr_gpccs_dmemc_r(u32 i)
2756{
2757 return 0x0041a1c0U + i*8U;
2758}
2759static inline u32 gr_gpccs_dmemc_offs_f(u32 v)
2760{
2761 return (v & 0x3fU) << 2U;
2762}
2763static inline u32 gr_gpccs_dmemc_blk_f(u32 v)
2764{
2765 return (v & 0xffU) << 8U;
2766}
2767static inline u32 gr_gpccs_dmemc_aincw_f(u32 v)
2768{
2769 return (v & 0x1U) << 24U;
2770}
2771static inline u32 gr_gpccs_dmemd_r(u32 i)
2772{
2773 return 0x0041a1c4U + i*8U;
2774}
2775static inline u32 gr_gpccs_ctxsw_mailbox_r(u32 i)
2776{
2777 return 0x0041a800U + i*4U;
2778}
2779static inline u32 gr_gpccs_ctxsw_mailbox_value_f(u32 v)
2780{
2781 return (v & 0xffffffffU) << 0U;
2782}
2783static inline u32 gr_gpcs_swdx_bundle_cb_base_r(void)
2784{
2785 return 0x00418e24U;
2786}
2787static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_s(void)
2788{
2789 return 32U;
2790}
2791static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_f(u32 v)
2792{
2793 return (v & 0xffffffffU) << 0U;
2794}
2795static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_m(void)
2796{
2797 return 0xffffffffU << 0U;
2798}
2799static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_v(u32 r)
2800{
2801 return (r >> 0U) & 0xffffffffU;
2802}
2803static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_v(void)
2804{
2805 return 0x00000000U;
2806}
2807static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_f(void)
2808{
2809 return 0x0U;
2810}
2811static inline u32 gr_gpcs_swdx_bundle_cb_size_r(void)
2812{
2813 return 0x00418e28U;
2814}
2815static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_s(void)
2816{
2817 return 11U;
2818}
2819static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_f(u32 v)
2820{
2821 return (v & 0x7ffU) << 0U;
2822}
2823static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_m(void)
2824{
2825 return 0x7ffU << 0U;
2826}
2827static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_v(u32 r)
2828{
2829 return (r >> 0U) & 0x7ffU;
2830}
2831static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_v(void)
2832{
2833 return 0x00000018U;
2834}
2835static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_f(void)
2836{
2837 return 0x18U;
2838}
2839static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_s(void)
2840{
2841 return 1U;
2842}
2843static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_f(u32 v)
2844{
2845 return (v & 0x1U) << 31U;
2846}
2847static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_m(void)
2848{
2849 return 0x1U << 31U;
2850}
2851static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_v(u32 r)
2852{
2853 return (r >> 31U) & 0x1U;
2854}
2855static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_v(void)
2856{
2857 return 0x00000000U;
2858}
2859static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_f(void)
2860{
2861 return 0x0U;
2862}
2863static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_v(void)
2864{
2865 return 0x00000001U;
2866}
2867static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_f(void)
2868{
2869 return 0x80000000U;
2870}
2871static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_r(void)
2872{
2873 return 0x00500ee4U;
2874}
2875static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_f(u32 v)
2876{
2877 return (v & 0xffffU) << 0U;
2878}
2879static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_default_v(void)
2880{
2881 return 0x00000250U;
2882}
2883static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_byte_granularity_v(void)
2884{
2885 return 0x00000100U;
2886}
2887static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_r(void)
2888{
2889 return 0x00500ee0U;
2890}
2891static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_f(u32 v)
2892{
2893 return (v & 0xffffffffU) << 0U;
2894}
2895static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_align_bits_v(void)
2896{
2897 return 0x00000008U;
2898}
2899static inline u32 gr_gpcs_swdx_beta_cb_ctrl_r(void)
2900{
2901 return 0x00418eecU;
2902}
2903static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_f(u32 v)
2904{
2905 return (v & 0xfffU) << 0U;
2906}
2907static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_gfxp_v(void)
2908{
2909 return 0x00000100U;
2910}
2911static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_r(void)
2912{
2913 return 0x0041befcU;
2914}
2915static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_cbes_reserve_f(u32 v)
2916{
2917 return (v & 0xfffU) << 0U;
2918}
2919static inline u32 gr_gpcs_swdx_tc_beta_cb_size_r(u32 i)
2920{
2921 return 0x00418ea0U + i*4U;
2922}
2923static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_f(u32 v)
2924{
2925 return (v & 0x3fffffU) << 0U;
2926}
2927static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_m(void)
2928{
2929 return 0x3fffffU << 0U;
2930}
2931static inline u32 gr_gpcs_swdx_dss_zbc_color_r_r(u32 i)
2932{
2933 return 0x00418010U + i*4U;
2934}
2935static inline u32 gr_gpcs_swdx_dss_zbc_color_r_val_f(u32 v)
2936{
2937 return (v & 0xffffffffU) << 0U;
2938}
2939static inline u32 gr_gpcs_swdx_dss_zbc_color_g_r(u32 i)
2940{
2941 return 0x0041804cU + i*4U;
2942}
2943static inline u32 gr_gpcs_swdx_dss_zbc_color_g_val_f(u32 v)
2944{
2945 return (v & 0xffffffffU) << 0U;
2946}
2947static inline u32 gr_gpcs_swdx_dss_zbc_color_b_r(u32 i)
2948{
2949 return 0x00418088U + i*4U;
2950}
2951static inline u32 gr_gpcs_swdx_dss_zbc_color_b_val_f(u32 v)
2952{
2953 return (v & 0xffffffffU) << 0U;
2954}
2955static inline u32 gr_gpcs_swdx_dss_zbc_color_a_r(u32 i)
2956{
2957 return 0x004180c4U + i*4U;
2958}
2959static inline u32 gr_gpcs_swdx_dss_zbc_color_a_val_f(u32 v)
2960{
2961 return (v & 0xffffffffU) << 0U;
2962}
2963static inline u32 gr_gpcs_swdx_dss_zbc_c_01_to_04_format_r(void)
2964{
2965 return 0x00500100U;
2966}
2967static inline u32 gr_gpcs_swdx_dss_zbc_z_r(u32 i)
2968{
2969 return 0x00418110U + i*4U;
2970}
2971static inline u32 gr_gpcs_swdx_dss_zbc_z_val_f(u32 v)
2972{
2973 return (v & 0xffffffffU) << 0U;
2974}
2975static inline u32 gr_gpcs_swdx_dss_zbc_z_01_to_04_format_r(void)
2976{
2977 return 0x0050014cU;
2978}
2979static inline u32 gr_gpcs_setup_attrib_cb_base_r(void)
2980{
2981 return 0x00418810U;
2982}
2983static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_f(u32 v)
2984{
2985 return (v & 0xfffffffU) << 0U;
2986}
2987static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_align_bits_v(void)
2988{
2989 return 0x0000000cU;
2990}
2991static inline u32 gr_gpcs_setup_attrib_cb_base_valid_true_f(void)
2992{
2993 return 0x80000000U;
2994}
2995static inline u32 gr_crstr_gpc_map0_r(void)
2996{
2997 return 0x00418b08U;
2998}
2999static inline u32 gr_crstr_gpc_map0_tile0_f(u32 v)
3000{
3001 return (v & 0x7U) << 0U;
3002}
3003static inline u32 gr_crstr_gpc_map0_tile1_f(u32 v)
3004{
3005 return (v & 0x7U) << 5U;
3006}
3007static inline u32 gr_crstr_gpc_map0_tile2_f(u32 v)
3008{
3009 return (v & 0x7U) << 10U;
3010}
3011static inline u32 gr_crstr_gpc_map0_tile3_f(u32 v)
3012{
3013 return (v & 0x7U) << 15U;
3014}
3015static inline u32 gr_crstr_gpc_map0_tile4_f(u32 v)
3016{
3017 return (v & 0x7U) << 20U;
3018}
3019static inline u32 gr_crstr_gpc_map0_tile5_f(u32 v)
3020{
3021 return (v & 0x7U) << 25U;
3022}
3023static inline u32 gr_crstr_gpc_map1_r(void)
3024{
3025 return 0x00418b0cU;
3026}
3027static inline u32 gr_crstr_gpc_map1_tile6_f(u32 v)
3028{
3029 return (v & 0x7U) << 0U;
3030}
3031static inline u32 gr_crstr_gpc_map1_tile7_f(u32 v)
3032{
3033 return (v & 0x7U) << 5U;
3034}
3035static inline u32 gr_crstr_gpc_map1_tile8_f(u32 v)
3036{
3037 return (v & 0x7U) << 10U;
3038}
3039static inline u32 gr_crstr_gpc_map1_tile9_f(u32 v)
3040{
3041 return (v & 0x7U) << 15U;
3042}
3043static inline u32 gr_crstr_gpc_map1_tile10_f(u32 v)
3044{
3045 return (v & 0x7U) << 20U;
3046}
3047static inline u32 gr_crstr_gpc_map1_tile11_f(u32 v)
3048{
3049 return (v & 0x7U) << 25U;
3050}
3051static inline u32 gr_crstr_gpc_map2_r(void)
3052{
3053 return 0x00418b10U;
3054}
3055static inline u32 gr_crstr_gpc_map2_tile12_f(u32 v)
3056{
3057 return (v & 0x7U) << 0U;
3058}
3059static inline u32 gr_crstr_gpc_map2_tile13_f(u32 v)
3060{
3061 return (v & 0x7U) << 5U;
3062}
3063static inline u32 gr_crstr_gpc_map2_tile14_f(u32 v)
3064{
3065 return (v & 0x7U) << 10U;
3066}
3067static inline u32 gr_crstr_gpc_map2_tile15_f(u32 v)
3068{
3069 return (v & 0x7U) << 15U;
3070}
3071static inline u32 gr_crstr_gpc_map2_tile16_f(u32 v)
3072{
3073 return (v & 0x7U) << 20U;
3074}
3075static inline u32 gr_crstr_gpc_map2_tile17_f(u32 v)
3076{
3077 return (v & 0x7U) << 25U;
3078}
3079static inline u32 gr_crstr_gpc_map3_r(void)
3080{
3081 return 0x00418b14U;
3082}
3083static inline u32 gr_crstr_gpc_map3_tile18_f(u32 v)
3084{
3085 return (v & 0x7U) << 0U;
3086}
3087static inline u32 gr_crstr_gpc_map3_tile19_f(u32 v)
3088{
3089 return (v & 0x7U) << 5U;
3090}
3091static inline u32 gr_crstr_gpc_map3_tile20_f(u32 v)
3092{
3093 return (v & 0x7U) << 10U;
3094}
3095static inline u32 gr_crstr_gpc_map3_tile21_f(u32 v)
3096{
3097 return (v & 0x7U) << 15U;
3098}
3099static inline u32 gr_crstr_gpc_map3_tile22_f(u32 v)
3100{
3101 return (v & 0x7U) << 20U;
3102}
3103static inline u32 gr_crstr_gpc_map3_tile23_f(u32 v)
3104{
3105 return (v & 0x7U) << 25U;
3106}
3107static inline u32 gr_crstr_gpc_map4_r(void)
3108{
3109 return 0x00418b18U;
3110}
3111static inline u32 gr_crstr_gpc_map4_tile24_f(u32 v)
3112{
3113 return (v & 0x7U) << 0U;
3114}
3115static inline u32 gr_crstr_gpc_map4_tile25_f(u32 v)
3116{
3117 return (v & 0x7U) << 5U;
3118}
3119static inline u32 gr_crstr_gpc_map4_tile26_f(u32 v)
3120{
3121 return (v & 0x7U) << 10U;
3122}
3123static inline u32 gr_crstr_gpc_map4_tile27_f(u32 v)
3124{
3125 return (v & 0x7U) << 15U;
3126}
3127static inline u32 gr_crstr_gpc_map4_tile28_f(u32 v)
3128{
3129 return (v & 0x7U) << 20U;
3130}
3131static inline u32 gr_crstr_gpc_map4_tile29_f(u32 v)
3132{
3133 return (v & 0x7U) << 25U;
3134}
3135static inline u32 gr_crstr_gpc_map5_r(void)
3136{
3137 return 0x00418b1cU;
3138}
3139static inline u32 gr_crstr_gpc_map5_tile30_f(u32 v)
3140{
3141 return (v & 0x7U) << 0U;
3142}
3143static inline u32 gr_crstr_gpc_map5_tile31_f(u32 v)
3144{
3145 return (v & 0x7U) << 5U;
3146}
3147static inline u32 gr_crstr_gpc_map5_tile32_f(u32 v)
3148{
3149 return (v & 0x7U) << 10U;
3150}
3151static inline u32 gr_crstr_gpc_map5_tile33_f(u32 v)
3152{
3153 return (v & 0x7U) << 15U;
3154}
3155static inline u32 gr_crstr_gpc_map5_tile34_f(u32 v)
3156{
3157 return (v & 0x7U) << 20U;
3158}
3159static inline u32 gr_crstr_gpc_map5_tile35_f(u32 v)
3160{
3161 return (v & 0x7U) << 25U;
3162}
3163static inline u32 gr_crstr_map_table_cfg_r(void)
3164{
3165 return 0x00418bb8U;
3166}
3167static inline u32 gr_crstr_map_table_cfg_row_offset_f(u32 v)
3168{
3169 return (v & 0xffU) << 0U;
3170}
3171static inline u32 gr_crstr_map_table_cfg_num_entries_f(u32 v)
3172{
3173 return (v & 0xffU) << 8U;
3174}
3175static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_r(void)
3176{
3177 return 0x00418980U;
3178}
3179static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_0_f(u32 v)
3180{
3181 return (v & 0x7U) << 0U;
3182}
3183static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_1_f(u32 v)
3184{
3185 return (v & 0x7U) << 4U;
3186}
3187static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_2_f(u32 v)
3188{
3189 return (v & 0x7U) << 8U;
3190}
3191static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_3_f(u32 v)
3192{
3193 return (v & 0x7U) << 12U;
3194}
3195static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_4_f(u32 v)
3196{
3197 return (v & 0x7U) << 16U;
3198}
3199static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_5_f(u32 v)
3200{
3201 return (v & 0x7U) << 20U;
3202}
3203static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_6_f(u32 v)
3204{
3205 return (v & 0x7U) << 24U;
3206}
3207static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_7_f(u32 v)
3208{
3209 return (v & 0x7U) << 28U;
3210}
3211static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_r(void)
3212{
3213 return 0x00418984U;
3214}
3215static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_8_f(u32 v)
3216{
3217 return (v & 0x7U) << 0U;
3218}
3219static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_9_f(u32 v)
3220{
3221 return (v & 0x7U) << 4U;
3222}
3223static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_10_f(u32 v)
3224{
3225 return (v & 0x7U) << 8U;
3226}
3227static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_11_f(u32 v)
3228{
3229 return (v & 0x7U) << 12U;
3230}
3231static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_12_f(u32 v)
3232{
3233 return (v & 0x7U) << 16U;
3234}
3235static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_13_f(u32 v)
3236{
3237 return (v & 0x7U) << 20U;
3238}
3239static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_14_f(u32 v)
3240{
3241 return (v & 0x7U) << 24U;
3242}
3243static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_15_f(u32 v)
3244{
3245 return (v & 0x7U) << 28U;
3246}
3247static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_r(void)
3248{
3249 return 0x00418988U;
3250}
3251static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_16_f(u32 v)
3252{
3253 return (v & 0x7U) << 0U;
3254}
3255static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_17_f(u32 v)
3256{
3257 return (v & 0x7U) << 4U;
3258}
3259static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_18_f(u32 v)
3260{
3261 return (v & 0x7U) << 8U;
3262}
3263static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_19_f(u32 v)
3264{
3265 return (v & 0x7U) << 12U;
3266}
3267static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_20_f(u32 v)
3268{
3269 return (v & 0x7U) << 16U;
3270}
3271static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_21_f(u32 v)
3272{
3273 return (v & 0x7U) << 20U;
3274}
3275static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_22_f(u32 v)
3276{
3277 return (v & 0x7U) << 24U;
3278}
3279static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_s(void)
3280{
3281 return 3U;
3282}
3283static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_f(u32 v)
3284{
3285 return (v & 0x7U) << 28U;
3286}
3287static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_m(void)
3288{
3289 return 0x7U << 28U;
3290}
3291static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_v(u32 r)
3292{
3293 return (r >> 28U) & 0x7U;
3294}
3295static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_r(void)
3296{
3297 return 0x0041898cU;
3298}
3299static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_24_f(u32 v)
3300{
3301 return (v & 0x7U) << 0U;
3302}
3303static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_25_f(u32 v)
3304{
3305 return (v & 0x7U) << 4U;
3306}
3307static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_26_f(u32 v)
3308{
3309 return (v & 0x7U) << 8U;
3310}
3311static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_27_f(u32 v)
3312{
3313 return (v & 0x7U) << 12U;
3314}
3315static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_28_f(u32 v)
3316{
3317 return (v & 0x7U) << 16U;
3318}
3319static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_29_f(u32 v)
3320{
3321 return (v & 0x7U) << 20U;
3322}
3323static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_30_f(u32 v)
3324{
3325 return (v & 0x7U) << 24U;
3326}
3327static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_31_f(u32 v)
3328{
3329 return (v & 0x7U) << 28U;
3330}
3331static inline u32 gr_gpcs_gpm_pd_cfg_r(void)
3332{
3333 return 0x00418c6cU;
3334}
3335static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_disable_f(void)
3336{
3337 return 0x0U;
3338}
3339static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_enable_f(void)
3340{
3341 return 0x1U;
3342}
3343static inline u32 gr_gpcs_gcc_pagepool_base_r(void)
3344{
3345 return 0x00419004U;
3346}
3347static inline u32 gr_gpcs_gcc_pagepool_base_addr_39_8_f(u32 v)
3348{
3349 return (v & 0xffffffffU) << 0U;
3350}
3351static inline u32 gr_gpcs_gcc_pagepool_r(void)
3352{
3353 return 0x00419008U;
3354}
3355static inline u32 gr_gpcs_gcc_pagepool_total_pages_f(u32 v)
3356{
3357 return (v & 0x3ffU) << 0U;
3358}
3359static inline u32 gr_gpcs_tpcs_pe_vaf_r(void)
3360{
3361 return 0x0041980cU;
3362}
3363static inline u32 gr_gpcs_tpcs_pe_vaf_fast_mode_switch_true_f(void)
3364{
3365 return 0x10U;
3366}
3367static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_r(void)
3368{
3369 return 0x00419848U;
3370}
3371static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_v_f(u32 v)
3372{
3373 return (v & 0xfffffffU) << 0U;
3374}
3375static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_f(u32 v)
3376{
3377 return (v & 0x1U) << 28U;
3378}
3379static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_true_f(void)
3380{
3381 return 0x10000000U;
3382}
3383static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_r(void)
3384{
3385 return 0x00419c00U;
3386}
3387static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_disabled_f(void)
3388{
3389 return 0x0U;
3390}
3391static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_enabled_f(void)
3392{
3393 return 0x8U;
3394}
3395static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_r(void)
3396{
3397 return 0x00419c2cU;
3398}
3399static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_v_f(u32 v)
3400{
3401 return (v & 0xfffffffU) << 0U;
3402}
3403static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_f(u32 v)
3404{
3405 return (v & 0x1U) << 28U;
3406}
3407static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_true_f(void)
3408{
3409 return 0x10000000U;
3410}
3411static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_r(void)
3412{
3413 return 0x00419e44U;
3414}
3415static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_stack_error_report_f(void)
3416{
3417 return 0x2U;
3418}
3419static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_api_stack_error_report_f(void)
3420{
3421 return 0x4U;
3422}
3423static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_ret_empty_stack_error_report_f(void)
3424{
3425 return 0x8U;
3426}
3427static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_wrap_report_f(void)
3428{
3429 return 0x10U;
3430}
3431static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_pc_report_f(void)
3432{
3433 return 0x20U;
3434}
3435static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_overflow_report_f(void)
3436{
3437 return 0x40U;
3438}
3439static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_immc_addr_report_f(void)
3440{
3441 return 0x80U;
3442}
3443static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_reg_report_f(void)
3444{
3445 return 0x100U;
3446}
3447static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_encoding_report_f(void)
3448{
3449 return 0x200U;
3450}
3451static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_sph_instr_combo_report_f(void)
3452{
3453 return 0x400U;
3454}
3455static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param_report_f(void)
3456{
3457 return 0x800U;
3458}
3459static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_report_f(void)
3460{
3461 return 0x1000U;
3462}
3463static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_reg_report_f(void)
3464{
3465 return 0x2000U;
3466}
3467static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_addr_report_f(void)
3468{
3469 return 0x4000U;
3470}
3471static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_addr_report_f(void)
3472{
3473 return 0x8000U;
3474}
3475static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_addr_space_report_f(void)
3476{
3477 return 0x10000U;
3478}
3479static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param2_report_f(void)
3480{
3481 return 0x20000U;
3482}
3483static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_ldc_report_f(void)
3484{
3485 return 0x40000U;
3486}
3487static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_mmu_fault_report_f(void)
3488{
3489 return 0x800000U;
3490}
3491static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_stack_overflow_report_f(void)
3492{
3493 return 0x400000U;
3494}
3495static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_geometry_sm_error_report_f(void)
3496{
3497 return 0x80000U;
3498}
3499static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_divergent_report_f(void)
3500{
3501 return 0x100000U;
3502}
3503static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_report_mask_r(void)
3504{
3505 return 0x00504644U;
3506}
3507static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_r(void)
3508{
3509 return 0x00419e4cU;
3510}
3511static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_sm_to_sm_fault_report_f(void)
3512{
3513 return 0x1U;
3514}
3515static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_l1_error_report_f(void)
3516{
3517 return 0x2U;
3518}
3519static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_multiple_warp_errors_report_f(void)
3520{
3521 return 0x4U;
3522}
3523static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_physical_stack_overflow_error_report_f(void)
3524{
3525 return 0x8U;
3526}
3527static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_int_report_f(void)
3528{
3529 return 0x10U;
3530}
3531static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_ecc_sec_error_report_f(void)
3532{
3533 return 0x20000000U;
3534}
3535static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_ecc_ded_error_report_f(void)
3536{
3537 return 0x40000000U;
3538}
3539static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_pause_report_f(void)
3540{
3541 return 0x20U;
3542}
3543static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_single_step_complete_report_f(void)
3544{
3545 return 0x40U;
3546}
3547static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_report_mask_r(void)
3548{
3549 return 0x0050464cU;
3550}
3551static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_r(void)
3552{
3553 return 0x00419d0cU;
3554}
3555static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_sm_enabled_f(void)
3556{
3557 return 0x2U;
3558}
3559static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_tex_enabled_f(void)
3560{
3561 return 0x1U;
3562}
3563static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
3564{
3565 return 0x0050450cU;
3566}
3567static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_v(u32 r)
3568{
3569 return (r >> 1U) & 0x1U;
3570}
3571static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_enabled_f(void)
3572{
3573 return 0x2U;
3574}
3575static inline u32 gr_gpcs_gpccs_gpc_exception_en_r(void)
3576{
3577 return 0x0041ac94U;
3578}
3579static inline u32 gr_gpcs_gpccs_gpc_exception_en_tpc_f(u32 v)
3580{
3581 return (v & 0xffU) << 16U;
3582}
3583static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
3584{
3585 return 0x00502c90U;
3586}
3587static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r)
3588{
3589 return (r >> 2U) & 0x1U;
3590}
3591static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
3592{
3593 return (r >> 16U) & 0xffU;
3594}
3595static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_0_pending_v(void)
3596{
3597 return 0x00000001U;
3598}
3599static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_r(void)
3600{
3601 return 0x00504508U;
3602}
3603static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_v(u32 r)
3604{
3605 return (r >> 0U) & 0x1U;
3606}
3607static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_pending_v(void)
3608{
3609 return 0x00000001U;
3610}
3611static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_v(u32 r)
3612{
3613 return (r >> 1U) & 0x1U;
3614}
3615static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_pending_v(void)
3616{
3617 return 0x00000001U;
3618}
3619static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_r(void)
3620{
3621 return 0x00504610U;
3622}
3623static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_m(void)
3624{
3625 return 0x1U << 0U;
3626}
3627static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_v(u32 r)
3628{
3629 return (r >> 0U) & 0x1U;
3630}
3631static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_on_v(void)
3632{
3633 return 0x00000001U;
3634}
3635static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_off_v(void)
3636{
3637 return 0x00000000U;
3638}
3639static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_enable_f(void)
3640{
3641 return 0x80000000U;
3642}
3643static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_disable_f(void)
3644{
3645 return 0x0U;
3646}
3647static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_single_step_mode_enable_f(void)
3648{
3649 return 0x8U;
3650}
3651static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_single_step_mode_disable_f(void)
3652{
3653 return 0x0U;
3654}
3655static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_run_trigger_task_f(void)
3656{
3657 return 0x40000000U;
3658}
3659static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_m(void)
3660{
3661 return 0x1U << 1U;
3662}
3663static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_v(u32 r)
3664{
3665 return (r >> 1U) & 0x1U;
3666}
3667static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_disable_f(void)
3668{
3669 return 0x0U;
3670}
3671static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_m(void)
3672{
3673 return 0x1U << 2U;
3674}
3675static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_v(u32 r)
3676{
3677 return (r >> 2U) & 0x1U;
3678}
3679static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_disable_f(void)
3680{
3681 return 0x0U;
3682}
3683static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_stop_on_any_warp_disable_v(void)
3684{
3685 return 0x00000000U;
3686}
3687static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_stop_on_any_sm_disable_v(void)
3688{
3689 return 0x00000000U;
3690}
3691static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_r(void)
3692{
3693 return 0x00504614U;
3694}
3695static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_1_r(void)
3696{
3697 return 0x00504618U;
3698}
3699static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_r(void)
3700{
3701 return 0x00504624U;
3702}
3703static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_1_r(void)
3704{
3705 return 0x00504628U;
3706}
3707static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_r(void)
3708{
3709 return 0x00504634U;
3710}
3711static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_1_r(void)
3712{
3713 return 0x00504638U;
3714}
3715static inline u32 gr_gpcs_tpcs_sm_dbgr_bpt_pause_mask_r(void)
3716{
3717 return 0x00419e24U;
3718}
3719static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_r(void)
3720{
3721 return 0x0050460cU;
3722}
3723static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_sm_in_trap_mode_v(u32 r)
3724{
3725 return (r >> 0U) & 0x1U;
3726}
3727static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_v(u32 r)
3728{
3729 return (r >> 4U) & 0x1U;
3730}
3731static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_true_v(void)
3732{
3733 return 0x00000001U;
3734}
3735static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_r(void)
3736{
3737 return 0x00419e50U;
3738}
3739static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_int_pending_f(void)
3740{
3741 return 0x10U;
3742}
3743static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_pause_pending_f(void)
3744{
3745 return 0x20U;
3746}
3747static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_single_step_complete_pending_f(void)
3748{
3749 return 0x40U;
3750}
3751static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_sm_to_sm_fault_pending_f(void)
3752{
3753 return 0x1U;
3754}
3755static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_l1_error_pending_f(void)
3756{
3757 return 0x2U;
3758}
3759static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_multiple_warp_errors_pending_f(void)
3760{
3761 return 0x4U;
3762}
3763static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_physical_stack_overflow_error_pending_f(void)
3764{
3765 return 0x8U;
3766}
3767static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_timeout_error_pending_f(void)
3768{
3769 return 0x80000000U;
3770}
3771static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_r(void)
3772{
3773 return 0x00504650U;
3774}
3775static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_int_pending_f(void)
3776{
3777 return 0x10U;
3778}
3779static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_ecc_sec_error_pending_f(void)
3780{
3781 return 0x20000000U;
3782}
3783static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_ecc_ded_error_pending_f(void)
3784{
3785 return 0x40000000U;
3786}
3787static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_pause_pending_f(void)
3788{
3789 return 0x20U;
3790}
3791static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_single_step_complete_pending_f(void)
3792{
3793 return 0x40U;
3794}
3795static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_sm_to_sm_fault_pending_f(void)
3796{
3797 return 0x1U;
3798}
3799static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_l1_error_pending_f(void)
3800{
3801 return 0x2U;
3802}
3803static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_multiple_warp_errors_pending_f(void)
3804{
3805 return 0x4U;
3806}
3807static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_physical_stack_overflow_error_pending_f(void)
3808{
3809 return 0x8U;
3810}
3811static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_timeout_error_pending_f(void)
3812{
3813 return 0x80000000U;
3814}
3815static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_r(void)
3816{
3817 return 0x00504224U;
3818}
3819static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_intr_pending_f(void)
3820{
3821 return 0x1U;
3822}
3823static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_ecc_sec_pending_f(void)
3824{
3825 return 0x80U;
3826}
3827static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_ecc_ded_pending_f(void)
3828{
3829 return 0x100U;
3830}
3831static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_reset_active_f(void)
3832{
3833 return 0x40000000U;
3834}
3835static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_r(void)
3836{
3837 return 0x00504648U;
3838}
3839static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_v(u32 r)
3840{
3841 return (r >> 0U) & 0xffffU;
3842}
3843static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_v(void)
3844{
3845 return 0x00000000U;
3846}
3847static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_f(void)
3848{
3849 return 0x0U;
3850}
3851static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_addr_valid_m(void)
3852{
3853 return 0x1U << 24U;
3854}
3855static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_addr_error_type_m(void)
3856{
3857 return 0x7U << 25U;
3858}
3859static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_addr_error_type_none_f(void)
3860{
3861 return 0x0U;
3862}
3863static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_pc_r(void)
3864{
3865 return 0x00504654U;
3866}
3867static inline u32 gr_gpc0_tpc0_sm_halfctl_ctrl_r(void)
3868{
3869 return 0x00504770U;
3870}
3871static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_r(void)
3872{
3873 return 0x00419f70U;
3874}
3875static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_m(void)
3876{
3877 return 0x1U << 4U;
3878}
3879static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_f(u32 v)
3880{
3881 return (v & 0x1U) << 4U;
3882}
3883static inline u32 gr_gpc0_tpc0_sm_debug_sfe_control_r(void)
3884{
3885 return 0x0050477cU;
3886}
3887static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_r(void)
3888{
3889 return 0x00419f7cU;
3890}
3891static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_m(void)
3892{
3893 return 0x1U << 0U;
3894}
3895static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_f(u32 v)
3896{
3897 return (v & 0x1U) << 0U;
3898}
3899static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_r(void)
3900{
3901 return 0x0041be08U;
3902}
3903static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_fast_mode_switch_true_f(void)
3904{
3905 return 0x4U;
3906}
3907static inline u32 gr_ppcs_wwdx_map_gpc_map0_r(void)
3908{
3909 return 0x0041bf00U;
3910}
3911static inline u32 gr_ppcs_wwdx_map_gpc_map1_r(void)
3912{
3913 return 0x0041bf04U;
3914}
3915static inline u32 gr_ppcs_wwdx_map_gpc_map2_r(void)
3916{
3917 return 0x0041bf08U;
3918}
3919static inline u32 gr_ppcs_wwdx_map_gpc_map3_r(void)
3920{
3921 return 0x0041bf0cU;
3922}
3923static inline u32 gr_ppcs_wwdx_map_gpc_map4_r(void)
3924{
3925 return 0x0041bf10U;
3926}
3927static inline u32 gr_ppcs_wwdx_map_gpc_map5_r(void)
3928{
3929 return 0x0041bf14U;
3930}
3931static inline u32 gr_ppcs_wwdx_map_table_cfg_r(void)
3932{
3933 return 0x0041bfd0U;
3934}
3935static inline u32 gr_ppcs_wwdx_map_table_cfg_row_offset_f(u32 v)
3936{
3937 return (v & 0xffU) << 0U;
3938}
3939static inline u32 gr_ppcs_wwdx_map_table_cfg_num_entries_f(u32 v)
3940{
3941 return (v & 0xffU) << 8U;
3942}
3943static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_num_entries_f(u32 v)
3944{
3945 return (v & 0x1fU) << 16U;
3946}
3947static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_shift_value_f(u32 v)
3948{
3949 return (v & 0x7U) << 21U;
3950}
3951static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff5_mod_value_f(u32 v)
3952{
3953 return (v & 0x1fU) << 24U;
3954}
3955static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_r(void)
3956{
3957 return 0x0041bfd4U;
3958}
3959static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_conservative_f(u32 v)
3960{
3961 return (v & 0xffffffU) << 0U;
3962}
3963static inline u32 gr_ppcs_wwdx_map_table_cfg2_r(void)
3964{
3965 return 0x0041bfe4U;
3966}
3967static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff6_mod_value_f(u32 v)
3968{
3969 return (v & 0x1fU) << 0U;
3970}
3971static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff7_mod_value_f(u32 v)
3972{
3973 return (v & 0x1fU) << 5U;
3974}
3975static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff8_mod_value_f(u32 v)
3976{
3977 return (v & 0x1fU) << 10U;
3978}
3979static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff9_mod_value_f(u32 v)
3980{
3981 return (v & 0x1fU) << 15U;
3982}
3983static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff10_mod_value_f(u32 v)
3984{
3985 return (v & 0x1fU) << 20U;
3986}
3987static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff11_mod_value_f(u32 v)
3988{
3989 return (v & 0x1fU) << 25U;
3990}
3991static inline u32 gr_bes_zrop_settings_r(void)
3992{
3993 return 0x00408850U;
3994}
3995static inline u32 gr_bes_zrop_settings_num_active_ltcs_f(u32 v)
3996{
3997 return (v & 0xfU) << 0U;
3998}
3999static inline u32 gr_be0_crop_debug3_r(void)
4000{
4001 return 0x00410108U;
4002}
4003static inline u32 gr_bes_crop_debug3_r(void)
4004{
4005 return 0x00408908U;
4006}
4007static inline u32 gr_bes_crop_debug3_comp_vdc_4to2_disable_m(void)
4008{
4009 return 0x1U << 31U;
4010}
4011static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_m(void)
4012{
4013 return 0x1U << 1U;
4014}
4015static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_disabled_f(void)
4016{
4017 return 0x0U;
4018}
4019static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_enabled_f(void)
4020{
4021 return 0x2U;
4022}
4023static inline u32 gr_bes_crop_debug3_blendopt_fill_override_m(void)
4024{
4025 return 0x1U << 2U;
4026}
4027static inline u32 gr_bes_crop_debug3_blendopt_fill_override_disabled_f(void)
4028{
4029 return 0x0U;
4030}
4031static inline u32 gr_bes_crop_debug3_blendopt_fill_override_enabled_f(void)
4032{
4033 return 0x4U;
4034}
4035static inline u32 gr_bes_crop_debug4_r(void)
4036{
4037 return 0x0040894cU;
4038}
4039static inline u32 gr_bes_crop_debug4_clamp_fp_blend_m(void)
4040{
4041 return 0x1U << 18U;
4042}
4043static inline u32 gr_bes_crop_debug4_clamp_fp_blend_to_inf_f(void)
4044{
4045 return 0x0U;
4046}
4047static inline u32 gr_bes_crop_debug4_clamp_fp_blend_to_maxval_f(void)
4048{
4049 return 0x40000U;
4050}
4051static inline u32 gr_bes_crop_settings_r(void)
4052{
4053 return 0x00408958U;
4054}
4055static inline u32 gr_bes_crop_settings_num_active_ltcs_f(u32 v)
4056{
4057 return (v & 0xfU) << 0U;
4058}
4059static inline u32 gr_zcull_bytes_per_aliquot_per_gpu_v(void)
4060{
4061 return 0x00000020U;
4062}
4063static inline u32 gr_zcull_save_restore_header_bytes_per_gpc_v(void)
4064{
4065 return 0x00000020U;
4066}
4067static inline u32 gr_zcull_save_restore_subregion_header_bytes_per_gpc_v(void)
4068{
4069 return 0x000000c0U;
4070}
4071static inline u32 gr_zcull_subregion_qty_v(void)
4072{
4073 return 0x00000010U;
4074}
4075static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel0_r(void)
4076{
4077 return 0x00504604U;
4078}
4079static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel1_r(void)
4080{
4081 return 0x00504608U;
4082}
4083static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control0_r(void)
4084{
4085 return 0x0050465cU;
4086}
4087static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control1_r(void)
4088{
4089 return 0x00504660U;
4090}
4091static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control2_r(void)
4092{
4093 return 0x00504664U;
4094}
4095static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control3_r(void)
4096{
4097 return 0x00504668U;
4098}
4099static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control4_r(void)
4100{
4101 return 0x0050466cU;
4102}
4103static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control5_r(void)
4104{
4105 return 0x00504658U;
4106}
4107static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_control_r(void)
4108{
4109 return 0x00504730U;
4110}
4111static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_control_r(void)
4112{
4113 return 0x00504734U;
4114}
4115static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_control_r(void)
4116{
4117 return 0x00504738U;
4118}
4119static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_control_r(void)
4120{
4121 return 0x0050473cU;
4122}
4123static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter4_control_r(void)
4124{
4125 return 0x00504740U;
4126}
4127static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter5_control_r(void)
4128{
4129 return 0x00504744U;
4130}
4131static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter6_control_r(void)
4132{
4133 return 0x00504748U;
4134}
4135static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter7_control_r(void)
4136{
4137 return 0x0050474cU;
4138}
4139static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status_s1_r(void)
4140{
4141 return 0x00504678U;
4142}
4143static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status1_r(void)
4144{
4145 return 0x00504694U;
4146}
4147static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_s0_r(void)
4148{
4149 return 0x005046f0U;
4150}
4151static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_s1_r(void)
4152{
4153 return 0x00504700U;
4154}
4155static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_s0_r(void)
4156{
4157 return 0x005046f4U;
4158}
4159static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_s1_r(void)
4160{
4161 return 0x00504704U;
4162}
4163static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_s0_r(void)
4164{
4165 return 0x005046f8U;
4166}
4167static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_s1_r(void)
4168{
4169 return 0x00504708U;
4170}
4171static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_s0_r(void)
4172{
4173 return 0x005046fcU;
4174}
4175static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_s1_r(void)
4176{
4177 return 0x0050470cU;
4178}
4179static inline u32 gr_fe_pwr_mode_r(void)
4180{
4181 return 0x00404170U;
4182}
4183static inline u32 gr_fe_pwr_mode_mode_auto_f(void)
4184{
4185 return 0x0U;
4186}
4187static inline u32 gr_fe_pwr_mode_mode_force_on_f(void)
4188{
4189 return 0x2U;
4190}
4191static inline u32 gr_fe_pwr_mode_req_v(u32 r)
4192{
4193 return (r >> 4U) & 0x1U;
4194}
4195static inline u32 gr_fe_pwr_mode_req_send_f(void)
4196{
4197 return 0x10U;
4198}
4199static inline u32 gr_fe_pwr_mode_req_done_v(void)
4200{
4201 return 0x00000000U;
4202}
4203static inline u32 gr_gpcs_pri_mmu_ctrl_r(void)
4204{
4205 return 0x00418880U;
4206}
4207static inline u32 gr_gpcs_pri_mmu_ctrl_vm_pg_size_m(void)
4208{
4209 return 0x1U << 0U;
4210}
4211static inline u32 gr_gpcs_pri_mmu_ctrl_use_pdb_big_page_size_m(void)
4212{
4213 return 0x1U << 11U;
4214}
4215static inline u32 gr_gpcs_pri_mmu_ctrl_vol_fault_m(void)
4216{
4217 return 0x1U << 1U;
4218}
4219static inline u32 gr_gpcs_pri_mmu_ctrl_comp_fault_m(void)
4220{
4221 return 0x1U << 2U;
4222}
4223static inline u32 gr_gpcs_pri_mmu_ctrl_miss_gran_m(void)
4224{
4225 return 0x3U << 3U;
4226}
4227static inline u32 gr_gpcs_pri_mmu_ctrl_cache_mode_m(void)
4228{
4229 return 0x3U << 5U;
4230}
4231static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_aperture_m(void)
4232{
4233 return 0x3U << 28U;
4234}
4235static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_vol_m(void)
4236{
4237 return 0x1U << 30U;
4238}
4239static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_disable_m(void)
4240{
4241 return 0x1U << 31U;
4242}
4243static inline u32 gr_gpcs_pri_mmu_pm_unit_mask_r(void)
4244{
4245 return 0x00418890U;
4246}
4247static inline u32 gr_gpcs_pri_mmu_pm_req_mask_r(void)
4248{
4249 return 0x00418894U;
4250}
4251static inline u32 gr_gpcs_pri_mmu_debug_ctrl_r(void)
4252{
4253 return 0x004188b0U;
4254}
4255static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_v(u32 r)
4256{
4257 return (r >> 16U) & 0x1U;
4258}
4259static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v(void)
4260{
4261 return 0x00000001U;
4262}
4263static inline u32 gr_gpcs_pri_mmu_debug_wr_r(void)
4264{
4265 return 0x004188b4U;
4266}
4267static inline u32 gr_gpcs_pri_mmu_debug_rd_r(void)
4268{
4269 return 0x004188b8U;
4270}
4271static inline u32 gr_gpcs_mmu_num_active_ltcs_r(void)
4272{
4273 return 0x004188acU;
4274}
4275static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_r(void)
4276{
4277 return 0x00419e10U;
4278}
4279static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_f(u32 v)
4280{
4281 return (v & 0x1U) << 0U;
4282}
4283static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_on_v(void)
4284{
4285 return 0x00000001U;
4286}
4287static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_m(void)
4288{
4289 return 0x1U << 31U;
4290}
4291static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_v(u32 r)
4292{
4293 return (r >> 31U) & 0x1U;
4294}
4295static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_enable_f(void)
4296{
4297 return 0x80000000U;
4298}
4299static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_disable_f(void)
4300{
4301 return 0x0U;
4302}
4303static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_m(void)
4304{
4305 return 0x1U << 3U;
4306}
4307static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_enable_f(void)
4308{
4309 return 0x8U;
4310}
4311static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_disable_f(void)
4312{
4313 return 0x0U;
4314}
4315static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_m(void)
4316{
4317 return 0x1U << 30U;
4318}
4319static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_v(u32 r)
4320{
4321 return (r >> 30U) & 0x1U;
4322}
4323static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_task_f(void)
4324{
4325 return 0x40000000U;
4326}
4327static inline u32 gr_fe_gfxp_wfi_timeout_r(void)
4328{
4329 return 0x004041c0U;
4330}
4331static inline u32 gr_fe_gfxp_wfi_timeout_count_f(u32 v)
4332{
4333 return (v & 0xffffffffU) << 0U;
4334}
4335static inline u32 gr_fe_gfxp_wfi_timeout_count_disabled_f(void)
4336{
4337 return 0x0U;
4338}
4339static inline u32 gr_debug_2_r(void)
4340{
4341 return 0x00400088U;
4342}
4343static inline u32 gr_debug_2_gfxp_wfi_always_injects_wfi_m(void)
4344{
4345 return 0x1U << 23U;
4346}
4347static inline u32 gr_debug_2_gfxp_wfi_always_injects_wfi_v(u32 r)
4348{
4349 return (r >> 23U) & 0x1U;
4350}
4351static inline u32 gr_debug_2_gfxp_wfi_always_injects_wfi_enabled_f(void)
4352{
4353 return 0x800000U;
4354}
4355static inline u32 gr_debug_2_gfxp_wfi_always_injects_wfi_disabled_f(void)
4356{
4357 return 0x0U;
4358}
4359static inline u32 gr_gpcs_tpcs_sm_texio_control_r(void)
4360{
4361 return 0x00419c84U;
4362}
4363static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_f(u32 v)
4364{
4365 return (v & 0x7U) << 8U;
4366}
4367static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_m(void)
4368{
4369 return 0x7U << 8U;
4370}
4371static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_arm_63_48_match_f(void)
4372{
4373 return 0x100U;
4374}
4375static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_r(void)
4376{
4377 return 0x00419f78U;
4378}
4379static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_m(void)
4380{
4381 return 0x3U << 11U;
4382}
4383static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_disable_f(void)
4384{
4385 return 0x1000U;
4386}
4387static inline u32 gr_gpcs_tc_debug0_r(void)
4388{
4389 return 0x00418708U;
4390}
4391static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_f(u32 v)
4392{
4393 return (v & 0xffU) << 0U;
4394}
4395static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_m(void)
4396{
4397 return 0xffU << 0U;
4398}
4399static inline u32 gr_gpc0_prop_debug1_r(void)
4400{
4401 return 0x00500400U;
4402}
4403static inline u32 gr_gpc0_prop_debug1_czf_bypass_f(u32 v)
4404{
4405 return (v & 0x3U) << 14U;
4406}
4407static inline u32 gr_gpc0_prop_debug1_czf_bypass_m(void)
4408{
4409 return 0x3U << 14U;
4410}
4411static inline u32 gr_gpc0_prop_debug1_czf_bypass_init_v(void)
4412{
4413 return 0x00000001U;
4414}
4415#endif
diff --git a/include/nvgpu/hw/gp10b/hw_ltc_gp10b.h b/include/nvgpu/hw/gp10b/hw_ltc_gp10b.h
new file mode 100644
index 0000000..721a48a
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_ltc_gp10b.h
@@ -0,0 +1,587 @@
1/*
2 * Copyright (c) 2014-2017, 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_ltc_gp10b_h_
57#define _hw_ltc_gp10b_h_
58
59static inline u32 ltc_pltcg_base_v(void)
60{
61 return 0x00140000U;
62}
63static inline u32 ltc_pltcg_extent_v(void)
64{
65 return 0x0017ffffU;
66}
67static inline u32 ltc_ltc0_ltss_v(void)
68{
69 return 0x00140200U;
70}
71static inline u32 ltc_ltc0_lts0_v(void)
72{
73 return 0x00140400U;
74}
75static inline u32 ltc_ltcs_ltss_v(void)
76{
77 return 0x0017e200U;
78}
79static inline u32 ltc_ltcs_lts0_cbc_ctrl1_r(void)
80{
81 return 0x0014046cU;
82}
83static inline u32 ltc_ltc0_lts0_dstg_cfg0_r(void)
84{
85 return 0x00140518U;
86}
87static inline u32 ltc_ltcs_ltss_dstg_cfg0_r(void)
88{
89 return 0x0017e318U;
90}
91static inline u32 ltc_ltcs_ltss_dstg_cfg0_vdc_4to2_disable_m(void)
92{
93 return 0x1U << 15U;
94}
95static inline u32 ltc_ltc0_lts0_tstg_cfg1_r(void)
96{
97 return 0x00140494U;
98}
99static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_ways_v(u32 r)
100{
101 return (r >> 0U) & 0xffffU;
102}
103static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_v(u32 r)
104{
105 return (r >> 16U) & 0x3U;
106}
107static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_all_v(void)
108{
109 return 0x00000000U;
110}
111static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_half_v(void)
112{
113 return 0x00000001U;
114}
115static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_quarter_v(void)
116{
117 return 0x00000002U;
118}
119static inline u32 ltc_ltcs_ltss_cbc_ctrl1_r(void)
120{
121 return 0x0017e26cU;
122}
123static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clean_active_f(void)
124{
125 return 0x1U;
126}
127static inline u32 ltc_ltcs_ltss_cbc_ctrl1_invalidate_active_f(void)
128{
129 return 0x2U;
130}
131static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_v(u32 r)
132{
133 return (r >> 2U) & 0x1U;
134}
135static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_v(void)
136{
137 return 0x00000001U;
138}
139static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_f(void)
140{
141 return 0x4U;
142}
143static inline u32 ltc_ltc0_lts0_cbc_ctrl1_r(void)
144{
145 return 0x0014046cU;
146}
147static inline u32 ltc_ltcs_ltss_cbc_ctrl2_r(void)
148{
149 return 0x0017e270U;
150}
151static inline u32 ltc_ltcs_ltss_cbc_ctrl2_clear_lower_bound_f(u32 v)
152{
153 return (v & 0x3ffffU) << 0U;
154}
155static inline u32 ltc_ltcs_ltss_cbc_ctrl3_r(void)
156{
157 return 0x0017e274U;
158}
159static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_f(u32 v)
160{
161 return (v & 0x3ffffU) << 0U;
162}
163static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_init_v(void)
164{
165 return 0x0003ffffU;
166}
167static inline u32 ltc_ltcs_ltss_cbc_base_r(void)
168{
169 return 0x0017e278U;
170}
171static inline u32 ltc_ltcs_ltss_cbc_base_alignment_shift_v(void)
172{
173 return 0x0000000bU;
174}
175static inline u32 ltc_ltcs_ltss_cbc_base_address_v(u32 r)
176{
177 return (r >> 0U) & 0x3ffffffU;
178}
179static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_r(void)
180{
181 return 0x0017e27cU;
182}
183static inline u32 ltc_ltcs_misc_ltc_num_active_ltcs_r(void)
184{
185 return 0x0017e000U;
186}
187static inline u32 ltc_ltcs_ltss_cbc_param_r(void)
188{
189 return 0x0017e280U;
190}
191static inline u32 ltc_ltcs_ltss_cbc_param_comptags_per_cache_line_v(u32 r)
192{
193 return (r >> 0U) & 0xffffU;
194}
195static inline u32 ltc_ltcs_ltss_cbc_param_cache_line_size_v(u32 r)
196{
197 return (r >> 24U) & 0xfU;
198}
199static inline u32 ltc_ltcs_ltss_cbc_param_slices_per_ltc_v(u32 r)
200{
201 return (r >> 28U) & 0xfU;
202}
203static inline u32 ltc_ltcs_ltss_cbc_param2_r(void)
204{
205 return 0x0017e3f4U;
206}
207static inline u32 ltc_ltcs_ltss_cbc_param2_gobs_per_comptagline_per_slice_v(u32 r)
208{
209 return (r >> 0U) & 0xffffU;
210}
211static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_r(void)
212{
213 return 0x0017e2acU;
214}
215static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_max_ways_evict_last_f(u32 v)
216{
217 return (v & 0x1fU) << 16U;
218}
219static inline u32 ltc_ltcs_ltss_dstg_zbc_index_r(void)
220{
221 return 0x0017e338U;
222}
223static inline u32 ltc_ltcs_ltss_dstg_zbc_index_address_f(u32 v)
224{
225 return (v & 0xfU) << 0U;
226}
227static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value_r(u32 i)
228{
229 return 0x0017e33cU + i*4U;
230}
231static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value__size_1_v(void)
232{
233 return 0x00000004U;
234}
235static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_r(void)
236{
237 return 0x0017e34cU;
238}
239static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_s(void)
240{
241 return 32U;
242}
243static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_f(u32 v)
244{
245 return (v & 0xffffffffU) << 0U;
246}
247static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_m(void)
248{
249 return 0xffffffffU << 0U;
250}
251static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_v(u32 r)
252{
253 return (r >> 0U) & 0xffffffffU;
254}
255static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_r(void)
256{
257 return 0x0017e2b0U;
258}
259static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_l2_bypass_mode_enabled_f(void)
260{
261 return 0x10000000U;
262}
263static inline u32 ltc_ltcs_ltss_g_elpg_r(void)
264{
265 return 0x0017e214U;
266}
267static inline u32 ltc_ltcs_ltss_g_elpg_flush_v(u32 r)
268{
269 return (r >> 0U) & 0x1U;
270}
271static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_v(void)
272{
273 return 0x00000001U;
274}
275static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_f(void)
276{
277 return 0x1U;
278}
279static inline u32 ltc_ltc0_ltss_g_elpg_r(void)
280{
281 return 0x00140214U;
282}
283static inline u32 ltc_ltc0_ltss_g_elpg_flush_v(u32 r)
284{
285 return (r >> 0U) & 0x1U;
286}
287static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_v(void)
288{
289 return 0x00000001U;
290}
291static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_f(void)
292{
293 return 0x1U;
294}
295static inline u32 ltc_ltc1_ltss_g_elpg_r(void)
296{
297 return 0x00142214U;
298}
299static inline u32 ltc_ltc1_ltss_g_elpg_flush_v(u32 r)
300{
301 return (r >> 0U) & 0x1U;
302}
303static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_v(void)
304{
305 return 0x00000001U;
306}
307static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_f(void)
308{
309 return 0x1U;
310}
311static inline u32 ltc_ltcs_ltss_intr_r(void)
312{
313 return 0x0017e20cU;
314}
315static inline u32 ltc_ltcs_ltss_intr_ecc_sec_error_pending_f(void)
316{
317 return 0x100U;
318}
319static inline u32 ltc_ltcs_ltss_intr_ecc_ded_error_pending_f(void)
320{
321 return 0x200U;
322}
323static inline u32 ltc_ltcs_ltss_intr_en_evicted_cb_m(void)
324{
325 return 0x1U << 20U;
326}
327static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(void)
328{
329 return 0x1U << 30U;
330}
331static inline u32 ltc_ltcs_ltss_intr_en_ecc_sec_error_enabled_f(void)
332{
333 return 0x1000000U;
334}
335static inline u32 ltc_ltcs_ltss_intr_en_ecc_ded_error_enabled_f(void)
336{
337 return 0x2000000U;
338}
339static inline u32 ltc_ltc0_lts0_intr_r(void)
340{
341 return 0x0014040cU;
342}
343static inline u32 ltc_ltc0_lts0_dstg_ecc_report_r(void)
344{
345 return 0x0014051cU;
346}
347static inline u32 ltc_ltc0_lts0_dstg_ecc_report_sec_count_m(void)
348{
349 return 0xffU << 0U;
350}
351static inline u32 ltc_ltc0_lts0_dstg_ecc_report_sec_count_v(u32 r)
352{
353 return (r >> 0U) & 0xffU;
354}
355static inline u32 ltc_ltc0_lts0_dstg_ecc_report_ded_count_m(void)
356{
357 return 0xffU << 16U;
358}
359static inline u32 ltc_ltc0_lts0_dstg_ecc_report_ded_count_v(u32 r)
360{
361 return (r >> 16U) & 0xffU;
362}
363static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_r(void)
364{
365 return 0x0017e2a0U;
366}
367static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_v(u32 r)
368{
369 return (r >> 0U) & 0x1U;
370}
371static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_v(void)
372{
373 return 0x00000001U;
374}
375static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_f(void)
376{
377 return 0x1U;
378}
379static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_v(u32 r)
380{
381 return (r >> 8U) & 0xfU;
382}
383static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_v(void)
384{
385 return 0x00000003U;
386}
387static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_f(void)
388{
389 return 0x300U;
390}
391static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_v(u32 r)
392{
393 return (r >> 28U) & 0x1U;
394}
395static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_v(void)
396{
397 return 0x00000001U;
398}
399static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_f(void)
400{
401 return 0x10000000U;
402}
403static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_v(u32 r)
404{
405 return (r >> 29U) & 0x1U;
406}
407static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_v(void)
408{
409 return 0x00000001U;
410}
411static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_f(void)
412{
413 return 0x20000000U;
414}
415static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_v(u32 r)
416{
417 return (r >> 30U) & 0x1U;
418}
419static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_v(void)
420{
421 return 0x00000001U;
422}
423static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_f(void)
424{
425 return 0x40000000U;
426}
427static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_r(void)
428{
429 return 0x0017e2a4U;
430}
431static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_v(u32 r)
432{
433 return (r >> 0U) & 0x1U;
434}
435static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_v(void)
436{
437 return 0x00000001U;
438}
439static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_f(void)
440{
441 return 0x1U;
442}
443static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_v(u32 r)
444{
445 return (r >> 8U) & 0xfU;
446}
447static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_v(void)
448{
449 return 0x00000003U;
450}
451static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_f(void)
452{
453 return 0x300U;
454}
455static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_v(u32 r)
456{
457 return (r >> 16U) & 0x1U;
458}
459static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_v(void)
460{
461 return 0x00000001U;
462}
463static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_f(void)
464{
465 return 0x10000U;
466}
467static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_v(u32 r)
468{
469 return (r >> 28U) & 0x1U;
470}
471static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_v(void)
472{
473 return 0x00000001U;
474}
475static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_f(void)
476{
477 return 0x10000000U;
478}
479static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_v(u32 r)
480{
481 return (r >> 29U) & 0x1U;
482}
483static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_v(void)
484{
485 return 0x00000001U;
486}
487static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_f(void)
488{
489 return 0x20000000U;
490}
491static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_v(u32 r)
492{
493 return (r >> 30U) & 0x1U;
494}
495static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_v(void)
496{
497 return 0x00000001U;
498}
499static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_f(void)
500{
501 return 0x40000000U;
502}
503static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_r(void)
504{
505 return 0x001402a0U;
506}
507static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_v(u32 r)
508{
509 return (r >> 0U) & 0x1U;
510}
511static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_v(void)
512{
513 return 0x00000001U;
514}
515static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_f(void)
516{
517 return 0x1U;
518}
519static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_r(void)
520{
521 return 0x001402a4U;
522}
523static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_v(u32 r)
524{
525 return (r >> 0U) & 0x1U;
526}
527static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_v(void)
528{
529 return 0x00000001U;
530}
531static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_f(void)
532{
533 return 0x1U;
534}
535static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_r(void)
536{
537 return 0x001422a0U;
538}
539static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_v(u32 r)
540{
541 return (r >> 0U) & 0x1U;
542}
543static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_v(void)
544{
545 return 0x00000001U;
546}
547static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_f(void)
548{
549 return 0x1U;
550}
551static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_r(void)
552{
553 return 0x001422a4U;
554}
555static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_v(u32 r)
556{
557 return (r >> 0U) & 0x1U;
558}
559static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_v(void)
560{
561 return 0x00000001U;
562}
563static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_f(void)
564{
565 return 0x1U;
566}
567static inline u32 ltc_ltc0_lts0_tstg_info_1_r(void)
568{
569 return 0x0014058cU;
570}
571static inline u32 ltc_ltc0_lts0_tstg_info_1_slice_size_in_kb_v(u32 r)
572{
573 return (r >> 0U) & 0xffffU;
574}
575static inline u32 ltc_ltc0_lts0_tstg_info_1_slices_per_l2_v(u32 r)
576{
577 return (r >> 16U) & 0x1fU;
578}
579static inline u32 ltc_ltca_g_axi_pctrl_r(void)
580{
581 return 0x00160000U;
582}
583static inline u32 ltc_ltca_g_axi_pctrl_user_sid_f(u32 v)
584{
585 return (v & 0xffU) << 2U;
586}
587#endif
diff --git a/include/nvgpu/hw/gp10b/hw_mc_gp10b.h b/include/nvgpu/hw/gp10b/hw_mc_gp10b.h
new file mode 100644
index 0000000..39c132a
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_mc_gp10b.h
@@ -0,0 +1,255 @@
1/*
2 * Copyright (c) 2014-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_mc_gp10b_h_
57#define _hw_mc_gp10b_h_
58
59static inline u32 mc_boot_0_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 mc_boot_0_architecture_v(u32 r)
64{
65 return (r >> 24U) & 0x1fU;
66}
67static inline u32 mc_boot_0_implementation_v(u32 r)
68{
69 return (r >> 20U) & 0xfU;
70}
71static inline u32 mc_boot_0_major_revision_v(u32 r)
72{
73 return (r >> 4U) & 0xfU;
74}
75static inline u32 mc_boot_0_minor_revision_v(u32 r)
76{
77 return (r >> 0U) & 0xfU;
78}
79static inline u32 mc_intr_r(u32 i)
80{
81 return 0x00000100U + i*4U;
82}
83static inline u32 mc_intr_pfifo_pending_f(void)
84{
85 return 0x100U;
86}
87static inline u32 mc_intr_replayable_fault_pending_f(void)
88{
89 return 0x200U;
90}
91static inline u32 mc_intr_pfb_pending_f(void)
92{
93 return 0x2000U;
94}
95static inline u32 mc_intr_pgraph_pending_f(void)
96{
97 return 0x1000U;
98}
99static inline u32 mc_intr_pmu_pending_f(void)
100{
101 return 0x1000000U;
102}
103static inline u32 mc_intr_ltc_pending_f(void)
104{
105 return 0x2000000U;
106}
107static inline u32 mc_intr_priv_ring_pending_f(void)
108{
109 return 0x40000000U;
110}
111static inline u32 mc_intr_pbus_pending_f(void)
112{
113 return 0x10000000U;
114}
115static inline u32 mc_intr_en_r(u32 i)
116{
117 return 0x00000140U + i*4U;
118}
119static inline u32 mc_intr_en_set_r(u32 i)
120{
121 return 0x00000160U + i*4U;
122}
123static inline u32 mc_intr_en_clear_r(u32 i)
124{
125 return 0x00000180U + i*4U;
126}
127static inline u32 mc_enable_r(void)
128{
129 return 0x00000200U;
130}
131static inline u32 mc_enable_xbar_enabled_f(void)
132{
133 return 0x4U;
134}
135static inline u32 mc_enable_l2_enabled_f(void)
136{
137 return 0x8U;
138}
139static inline u32 mc_enable_pmedia_s(void)
140{
141 return 1U;
142}
143static inline u32 mc_enable_pmedia_f(u32 v)
144{
145 return (v & 0x1U) << 4U;
146}
147static inline u32 mc_enable_pmedia_m(void)
148{
149 return 0x1U << 4U;
150}
151static inline u32 mc_enable_pmedia_v(u32 r)
152{
153 return (r >> 4U) & 0x1U;
154}
155static inline u32 mc_enable_priv_ring_enabled_f(void)
156{
157 return 0x20U;
158}
159static inline u32 mc_enable_ce0_m(void)
160{
161 return 0x1U << 6U;
162}
163static inline u32 mc_enable_pfifo_enabled_f(void)
164{
165 return 0x100U;
166}
167static inline u32 mc_enable_pgraph_enabled_f(void)
168{
169 return 0x1000U;
170}
171static inline u32 mc_enable_pwr_v(u32 r)
172{
173 return (r >> 13U) & 0x1U;
174}
175static inline u32 mc_enable_pwr_disabled_v(void)
176{
177 return 0x00000000U;
178}
179static inline u32 mc_enable_pwr_enabled_f(void)
180{
181 return 0x2000U;
182}
183static inline u32 mc_enable_pfb_enabled_f(void)
184{
185 return 0x100000U;
186}
187static inline u32 mc_enable_ce2_m(void)
188{
189 return 0x1U << 21U;
190}
191static inline u32 mc_enable_ce2_enabled_f(void)
192{
193 return 0x200000U;
194}
195static inline u32 mc_enable_blg_enabled_f(void)
196{
197 return 0x8000000U;
198}
199static inline u32 mc_enable_perfmon_enabled_f(void)
200{
201 return 0x10000000U;
202}
203static inline u32 mc_enable_hub_enabled_f(void)
204{
205 return 0x20000000U;
206}
207static inline u32 mc_intr_ltc_r(void)
208{
209 return 0x000001c0U;
210}
211static inline u32 mc_enable_pb_r(void)
212{
213 return 0x00000204U;
214}
215static inline u32 mc_enable_pb_0_s(void)
216{
217 return 1U;
218}
219static inline u32 mc_enable_pb_0_f(u32 v)
220{
221 return (v & 0x1U) << 0U;
222}
223static inline u32 mc_enable_pb_0_m(void)
224{
225 return 0x1U << 0U;
226}
227static inline u32 mc_enable_pb_0_v(u32 r)
228{
229 return (r >> 0U) & 0x1U;
230}
231static inline u32 mc_enable_pb_0_enabled_v(void)
232{
233 return 0x00000001U;
234}
235static inline u32 mc_enable_pb_sel_f(u32 v, u32 i)
236{
237 return (v & 0x1U) << (0U + i*1U);
238}
239static inline u32 mc_elpg_enable_r(void)
240{
241 return 0x0000020cU;
242}
243static inline u32 mc_elpg_enable_xbar_enabled_f(void)
244{
245 return 0x4U;
246}
247static inline u32 mc_elpg_enable_pfb_enabled_f(void)
248{
249 return 0x100000U;
250}
251static inline u32 mc_elpg_enable_hub_enabled_f(void)
252{
253 return 0x20000000U;
254}
255#endif
diff --git a/include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h b/include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h
new file mode 100644
index 0000000..66e8ddb
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h
@@ -0,0 +1,615 @@
1/*
2 * Copyright (c) 2014-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_pbdma_gp10b_h_
57#define _hw_pbdma_gp10b_h_
58
59static inline u32 pbdma_gp_entry1_r(void)
60{
61 return 0x10000004U;
62}
63static inline u32 pbdma_gp_entry1_get_hi_v(u32 r)
64{
65 return (r >> 0U) & 0xffU;
66}
67static inline u32 pbdma_gp_entry1_length_f(u32 v)
68{
69 return (v & 0x1fffffU) << 10U;
70}
71static inline u32 pbdma_gp_entry1_length_v(u32 r)
72{
73 return (r >> 10U) & 0x1fffffU;
74}
75static inline u32 pbdma_gp_base_r(u32 i)
76{
77 return 0x00040048U + i*8192U;
78}
79static inline u32 pbdma_gp_base__size_1_v(void)
80{
81 return 0x00000001U;
82}
83static inline u32 pbdma_gp_base_offset_f(u32 v)
84{
85 return (v & 0x1fffffffU) << 3U;
86}
87static inline u32 pbdma_gp_base_rsvd_s(void)
88{
89 return 3U;
90}
91static inline u32 pbdma_gp_base_hi_r(u32 i)
92{
93 return 0x0004004cU + i*8192U;
94}
95static inline u32 pbdma_gp_base_hi_offset_f(u32 v)
96{
97 return (v & 0xffU) << 0U;
98}
99static inline u32 pbdma_gp_base_hi_limit2_f(u32 v)
100{
101 return (v & 0x1fU) << 16U;
102}
103static inline u32 pbdma_gp_fetch_r(u32 i)
104{
105 return 0x00040050U + i*8192U;
106}
107static inline u32 pbdma_gp_get_r(u32 i)
108{
109 return 0x00040014U + i*8192U;
110}
111static inline u32 pbdma_gp_put_r(u32 i)
112{
113 return 0x00040000U + i*8192U;
114}
115static inline u32 pbdma_pb_fetch_r(u32 i)
116{
117 return 0x00040054U + i*8192U;
118}
119static inline u32 pbdma_pb_fetch_hi_r(u32 i)
120{
121 return 0x00040058U + i*8192U;
122}
123static inline u32 pbdma_get_r(u32 i)
124{
125 return 0x00040018U + i*8192U;
126}
127static inline u32 pbdma_get_hi_r(u32 i)
128{
129 return 0x0004001cU + i*8192U;
130}
131static inline u32 pbdma_put_r(u32 i)
132{
133 return 0x0004005cU + i*8192U;
134}
135static inline u32 pbdma_put_hi_r(u32 i)
136{
137 return 0x00040060U + i*8192U;
138}
139static inline u32 pbdma_formats_r(u32 i)
140{
141 return 0x0004009cU + i*8192U;
142}
143static inline u32 pbdma_formats_gp_fermi0_f(void)
144{
145 return 0x0U;
146}
147static inline u32 pbdma_formats_pb_fermi1_f(void)
148{
149 return 0x100U;
150}
151static inline u32 pbdma_formats_mp_fermi0_f(void)
152{
153 return 0x0U;
154}
155static inline u32 pbdma_pb_header_r(u32 i)
156{
157 return 0x00040084U + i*8192U;
158}
159static inline u32 pbdma_pb_header_priv_user_f(void)
160{
161 return 0x0U;
162}
163static inline u32 pbdma_pb_header_method_zero_f(void)
164{
165 return 0x0U;
166}
167static inline u32 pbdma_pb_header_subchannel_zero_f(void)
168{
169 return 0x0U;
170}
171static inline u32 pbdma_pb_header_level_main_f(void)
172{
173 return 0x0U;
174}
175static inline u32 pbdma_pb_header_first_true_f(void)
176{
177 return 0x400000U;
178}
179static inline u32 pbdma_pb_header_type_inc_f(void)
180{
181 return 0x20000000U;
182}
183static inline u32 pbdma_pb_header_type_non_inc_f(void)
184{
185 return 0x60000000U;
186}
187static inline u32 pbdma_hdr_shadow_r(u32 i)
188{
189 return 0x00040118U + i*8192U;
190}
191static inline u32 pbdma_gp_shadow_0_r(u32 i)
192{
193 return 0x00040110U + i*8192U;
194}
195static inline u32 pbdma_gp_shadow_1_r(u32 i)
196{
197 return 0x00040114U + i*8192U;
198}
199static inline u32 pbdma_subdevice_r(u32 i)
200{
201 return 0x00040094U + i*8192U;
202}
203static inline u32 pbdma_subdevice_id_f(u32 v)
204{
205 return (v & 0xfffU) << 0U;
206}
207static inline u32 pbdma_subdevice_status_active_f(void)
208{
209 return 0x10000000U;
210}
211static inline u32 pbdma_subdevice_channel_dma_enable_f(void)
212{
213 return 0x20000000U;
214}
215static inline u32 pbdma_method0_r(u32 i)
216{
217 return 0x000400c0U + i*8192U;
218}
219static inline u32 pbdma_method0_fifo_size_v(void)
220{
221 return 0x00000004U;
222}
223static inline u32 pbdma_method0_addr_f(u32 v)
224{
225 return (v & 0xfffU) << 2U;
226}
227static inline u32 pbdma_method0_addr_v(u32 r)
228{
229 return (r >> 2U) & 0xfffU;
230}
231static inline u32 pbdma_method0_subch_v(u32 r)
232{
233 return (r >> 16U) & 0x7U;
234}
235static inline u32 pbdma_method0_first_true_f(void)
236{
237 return 0x400000U;
238}
239static inline u32 pbdma_method0_valid_true_f(void)
240{
241 return 0x80000000U;
242}
243static inline u32 pbdma_method1_r(u32 i)
244{
245 return 0x000400c8U + i*8192U;
246}
247static inline u32 pbdma_method2_r(u32 i)
248{
249 return 0x000400d0U + i*8192U;
250}
251static inline u32 pbdma_method3_r(u32 i)
252{
253 return 0x000400d8U + i*8192U;
254}
255static inline u32 pbdma_data0_r(u32 i)
256{
257 return 0x000400c4U + i*8192U;
258}
259static inline u32 pbdma_target_r(u32 i)
260{
261 return 0x000400acU + i*8192U;
262}
263static inline u32 pbdma_target_engine_sw_f(void)
264{
265 return 0x1fU;
266}
267static inline u32 pbdma_acquire_r(u32 i)
268{
269 return 0x00040030U + i*8192U;
270}
271static inline u32 pbdma_acquire_retry_man_2_f(void)
272{
273 return 0x2U;
274}
275static inline u32 pbdma_acquire_retry_exp_2_f(void)
276{
277 return 0x100U;
278}
279static inline u32 pbdma_acquire_timeout_exp_f(u32 v)
280{
281 return (v & 0xfU) << 11U;
282}
283static inline u32 pbdma_acquire_timeout_exp_max_v(void)
284{
285 return 0x0000000fU;
286}
287static inline u32 pbdma_acquire_timeout_exp_max_f(void)
288{
289 return 0x7800U;
290}
291static inline u32 pbdma_acquire_timeout_man_f(u32 v)
292{
293 return (v & 0xffffU) << 15U;
294}
295static inline u32 pbdma_acquire_timeout_man_max_v(void)
296{
297 return 0x0000ffffU;
298}
299static inline u32 pbdma_acquire_timeout_man_max_f(void)
300{
301 return 0x7fff8000U;
302}
303static inline u32 pbdma_acquire_timeout_en_enable_f(void)
304{
305 return 0x80000000U;
306}
307static inline u32 pbdma_acquire_timeout_en_disable_f(void)
308{
309 return 0x0U;
310}
311static inline u32 pbdma_status_r(u32 i)
312{
313 return 0x00040100U + i*8192U;
314}
315static inline u32 pbdma_channel_r(u32 i)
316{
317 return 0x00040120U + i*8192U;
318}
319static inline u32 pbdma_signature_r(u32 i)
320{
321 return 0x00040010U + i*8192U;
322}
323static inline u32 pbdma_signature_hw_valid_f(void)
324{
325 return 0xfaceU;
326}
327static inline u32 pbdma_signature_sw_zero_f(void)
328{
329 return 0x0U;
330}
331static inline u32 pbdma_userd_r(u32 i)
332{
333 return 0x00040008U + i*8192U;
334}
335static inline u32 pbdma_userd_target_vid_mem_f(void)
336{
337 return 0x0U;
338}
339static inline u32 pbdma_userd_target_sys_mem_coh_f(void)
340{
341 return 0x2U;
342}
343static inline u32 pbdma_userd_target_sys_mem_ncoh_f(void)
344{
345 return 0x3U;
346}
347static inline u32 pbdma_userd_addr_f(u32 v)
348{
349 return (v & 0x7fffffU) << 9U;
350}
351static inline u32 pbdma_userd_hi_r(u32 i)
352{
353 return 0x0004000cU + i*8192U;
354}
355static inline u32 pbdma_userd_hi_addr_f(u32 v)
356{
357 return (v & 0xffU) << 0U;
358}
359static inline u32 pbdma_config_r(u32 i)
360{
361 return 0x000400f4U + i*8192U;
362}
363static inline u32 pbdma_config_auth_level_privileged_f(void)
364{
365 return 0x100U;
366}
367static inline u32 pbdma_hce_ctrl_r(u32 i)
368{
369 return 0x000400e4U + i*8192U;
370}
371static inline u32 pbdma_hce_ctrl_hce_priv_mode_yes_f(void)
372{
373 return 0x20U;
374}
375static inline u32 pbdma_intr_0_r(u32 i)
376{
377 return 0x00040108U + i*8192U;
378}
379static inline u32 pbdma_intr_0_memreq_v(u32 r)
380{
381 return (r >> 0U) & 0x1U;
382}
383static inline u32 pbdma_intr_0_memreq_pending_f(void)
384{
385 return 0x1U;
386}
387static inline u32 pbdma_intr_0_memack_timeout_pending_f(void)
388{
389 return 0x2U;
390}
391static inline u32 pbdma_intr_0_memack_extra_pending_f(void)
392{
393 return 0x4U;
394}
395static inline u32 pbdma_intr_0_memdat_timeout_pending_f(void)
396{
397 return 0x8U;
398}
399static inline u32 pbdma_intr_0_memdat_extra_pending_f(void)
400{
401 return 0x10U;
402}
403static inline u32 pbdma_intr_0_memflush_pending_f(void)
404{
405 return 0x20U;
406}
407static inline u32 pbdma_intr_0_memop_pending_f(void)
408{
409 return 0x40U;
410}
411static inline u32 pbdma_intr_0_lbconnect_pending_f(void)
412{
413 return 0x80U;
414}
415static inline u32 pbdma_intr_0_lbreq_pending_f(void)
416{
417 return 0x100U;
418}
419static inline u32 pbdma_intr_0_lback_timeout_pending_f(void)
420{
421 return 0x200U;
422}
423static inline u32 pbdma_intr_0_lback_extra_pending_f(void)
424{
425 return 0x400U;
426}
427static inline u32 pbdma_intr_0_lbdat_timeout_pending_f(void)
428{
429 return 0x800U;
430}
431static inline u32 pbdma_intr_0_lbdat_extra_pending_f(void)
432{
433 return 0x1000U;
434}
435static inline u32 pbdma_intr_0_gpfifo_pending_f(void)
436{
437 return 0x2000U;
438}
439static inline u32 pbdma_intr_0_gpptr_pending_f(void)
440{
441 return 0x4000U;
442}
443static inline u32 pbdma_intr_0_gpentry_pending_f(void)
444{
445 return 0x8000U;
446}
447static inline u32 pbdma_intr_0_gpcrc_pending_f(void)
448{
449 return 0x10000U;
450}
451static inline u32 pbdma_intr_0_pbptr_pending_f(void)
452{
453 return 0x20000U;
454}
455static inline u32 pbdma_intr_0_pbentry_pending_f(void)
456{
457 return 0x40000U;
458}
459static inline u32 pbdma_intr_0_pbcrc_pending_f(void)
460{
461 return 0x80000U;
462}
463static inline u32 pbdma_intr_0_xbarconnect_pending_f(void)
464{
465 return 0x100000U;
466}
467static inline u32 pbdma_intr_0_method_pending_f(void)
468{
469 return 0x200000U;
470}
471static inline u32 pbdma_intr_0_methodcrc_pending_f(void)
472{
473 return 0x400000U;
474}
475static inline u32 pbdma_intr_0_device_pending_f(void)
476{
477 return 0x800000U;
478}
479static inline u32 pbdma_intr_0_semaphore_pending_f(void)
480{
481 return 0x2000000U;
482}
483static inline u32 pbdma_intr_0_acquire_pending_f(void)
484{
485 return 0x4000000U;
486}
487static inline u32 pbdma_intr_0_pri_pending_f(void)
488{
489 return 0x8000000U;
490}
491static inline u32 pbdma_intr_0_no_ctxsw_seg_pending_f(void)
492{
493 return 0x20000000U;
494}
495static inline u32 pbdma_intr_0_pbseg_pending_f(void)
496{
497 return 0x40000000U;
498}
499static inline u32 pbdma_intr_0_signature_pending_f(void)
500{
501 return 0x80000000U;
502}
503static inline u32 pbdma_intr_0_syncpoint_illegal_pending_f(void)
504{
505 return 0x10000000U;
506}
507static inline u32 pbdma_intr_1_r(u32 i)
508{
509 return 0x00040148U + i*8192U;
510}
511static inline u32 pbdma_intr_en_0_r(u32 i)
512{
513 return 0x0004010cU + i*8192U;
514}
515static inline u32 pbdma_intr_en_0_lbreq_enabled_f(void)
516{
517 return 0x100U;
518}
519static inline u32 pbdma_intr_en_1_r(u32 i)
520{
521 return 0x0004014cU + i*8192U;
522}
523static inline u32 pbdma_intr_stall_r(u32 i)
524{
525 return 0x0004013cU + i*8192U;
526}
527static inline u32 pbdma_intr_stall_lbreq_enabled_f(void)
528{
529 return 0x100U;
530}
531static inline u32 pbdma_intr_stall_1_r(u32 i)
532{
533 return 0x00040140U + i*8192U;
534}
535static inline u32 pbdma_intr_stall_1_hce_illegal_op_enabled_f(void)
536{
537 return 0x1U;
538}
539static inline u32 pbdma_udma_nop_r(void)
540{
541 return 0x00000008U;
542}
543static inline u32 pbdma_allowed_syncpoints_r(u32 i)
544{
545 return 0x000400e8U + i*8192U;
546}
547static inline u32 pbdma_allowed_syncpoints_0_valid_f(u32 v)
548{
549 return (v & 0x1U) << 31U;
550}
551static inline u32 pbdma_allowed_syncpoints_0_index_f(u32 v)
552{
553 return (v & 0x7fffU) << 16U;
554}
555static inline u32 pbdma_allowed_syncpoints_0_index_v(u32 r)
556{
557 return (r >> 16U) & 0x7fffU;
558}
559static inline u32 pbdma_allowed_syncpoints_1_valid_f(u32 v)
560{
561 return (v & 0x1U) << 15U;
562}
563static inline u32 pbdma_allowed_syncpoints_1_index_f(u32 v)
564{
565 return (v & 0x7fffU) << 0U;
566}
567static inline u32 pbdma_syncpointa_r(u32 i)
568{
569 return 0x000400a4U + i*8192U;
570}
571static inline u32 pbdma_syncpointa_payload_v(u32 r)
572{
573 return (r >> 0U) & 0xffffffffU;
574}
575static inline u32 pbdma_syncpointb_r(u32 i)
576{
577 return 0x000400a8U + i*8192U;
578}
579static inline u32 pbdma_syncpointb_op_v(u32 r)
580{
581 return (r >> 0U) & 0x1U;
582}
583static inline u32 pbdma_syncpointb_op_wait_v(void)
584{
585 return 0x00000000U;
586}
587static inline u32 pbdma_syncpointb_wait_switch_v(u32 r)
588{
589 return (r >> 4U) & 0x1U;
590}
591static inline u32 pbdma_syncpointb_wait_switch_en_v(void)
592{
593 return 0x00000001U;
594}
595static inline u32 pbdma_syncpointb_syncpt_index_v(u32 r)
596{
597 return (r >> 8U) & 0xfffU;
598}
599static inline u32 pbdma_runlist_timeslice_r(u32 i)
600{
601 return 0x000400f8U + i*8192U;
602}
603static inline u32 pbdma_runlist_timeslice_timeout_128_f(void)
604{
605 return 0x80U;
606}
607static inline u32 pbdma_runlist_timeslice_timescale_3_f(void)
608{
609 return 0x3000U;
610}
611static inline u32 pbdma_runlist_timeslice_enable_true_f(void)
612{
613 return 0x10000000U;
614}
615#endif
diff --git a/include/nvgpu/hw/gp10b/hw_perf_gp10b.h b/include/nvgpu/hw/gp10b/hw_perf_gp10b.h
new file mode 100644
index 0000000..43424e1
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_perf_gp10b.h
@@ -0,0 +1,219 @@
1/*
2 * Copyright (c) 2015-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_perf_gp10b_h_
57#define _hw_perf_gp10b_h_
58
59static inline u32 perf_pmmsys_base_v(void)
60{
61 return 0x001b0000U;
62}
63static inline u32 perf_pmmsys_extent_v(void)
64{
65 return 0x001b0fffU;
66}
67static inline u32 perf_pmasys_control_r(void)
68{
69 return 0x001b4000U;
70}
71static inline u32 perf_pmasys_control_membuf_status_v(u32 r)
72{
73 return (r >> 4U) & 0x1U;
74}
75static inline u32 perf_pmasys_control_membuf_status_overflowed_v(void)
76{
77 return 0x00000001U;
78}
79static inline u32 perf_pmasys_control_membuf_status_overflowed_f(void)
80{
81 return 0x10U;
82}
83static inline u32 perf_pmasys_control_membuf_clear_status_f(u32 v)
84{
85 return (v & 0x1U) << 5U;
86}
87static inline u32 perf_pmasys_control_membuf_clear_status_v(u32 r)
88{
89 return (r >> 5U) & 0x1U;
90}
91static inline u32 perf_pmasys_control_membuf_clear_status_doit_v(void)
92{
93 return 0x00000001U;
94}
95static inline u32 perf_pmasys_control_membuf_clear_status_doit_f(void)
96{
97 return 0x20U;
98}
99static inline u32 perf_pmasys_mem_block_r(void)
100{
101 return 0x001b4070U;
102}
103static inline u32 perf_pmasys_mem_block_base_f(u32 v)
104{
105 return (v & 0xfffffffU) << 0U;
106}
107static inline u32 perf_pmasys_mem_block_target_f(u32 v)
108{
109 return (v & 0x3U) << 28U;
110}
111static inline u32 perf_pmasys_mem_block_target_v(u32 r)
112{
113 return (r >> 28U) & 0x3U;
114}
115static inline u32 perf_pmasys_mem_block_target_lfb_v(void)
116{
117 return 0x00000000U;
118}
119static inline u32 perf_pmasys_mem_block_target_lfb_f(void)
120{
121 return 0x0U;
122}
123static inline u32 perf_pmasys_mem_block_target_sys_coh_v(void)
124{
125 return 0x00000002U;
126}
127static inline u32 perf_pmasys_mem_block_target_sys_coh_f(void)
128{
129 return 0x20000000U;
130}
131static inline u32 perf_pmasys_mem_block_target_sys_ncoh_v(void)
132{
133 return 0x00000003U;
134}
135static inline u32 perf_pmasys_mem_block_target_sys_ncoh_f(void)
136{
137 return 0x30000000U;
138}
139static inline u32 perf_pmasys_mem_block_valid_f(u32 v)
140{
141 return (v & 0x1U) << 31U;
142}
143static inline u32 perf_pmasys_mem_block_valid_v(u32 r)
144{
145 return (r >> 31U) & 0x1U;
146}
147static inline u32 perf_pmasys_mem_block_valid_true_v(void)
148{
149 return 0x00000001U;
150}
151static inline u32 perf_pmasys_mem_block_valid_true_f(void)
152{
153 return 0x80000000U;
154}
155static inline u32 perf_pmasys_mem_block_valid_false_v(void)
156{
157 return 0x00000000U;
158}
159static inline u32 perf_pmasys_mem_block_valid_false_f(void)
160{
161 return 0x0U;
162}
163static inline u32 perf_pmasys_outbase_r(void)
164{
165 return 0x001b4074U;
166}
167static inline u32 perf_pmasys_outbase_ptr_f(u32 v)
168{
169 return (v & 0x7ffffffU) << 5U;
170}
171static inline u32 perf_pmasys_outbaseupper_r(void)
172{
173 return 0x001b4078U;
174}
175static inline u32 perf_pmasys_outbaseupper_ptr_f(u32 v)
176{
177 return (v & 0xffU) << 0U;
178}
179static inline u32 perf_pmasys_outsize_r(void)
180{
181 return 0x001b407cU;
182}
183static inline u32 perf_pmasys_outsize_numbytes_f(u32 v)
184{
185 return (v & 0x7ffffffU) << 5U;
186}
187static inline u32 perf_pmasys_mem_bytes_r(void)
188{
189 return 0x001b4084U;
190}
191static inline u32 perf_pmasys_mem_bytes_numbytes_f(u32 v)
192{
193 return (v & 0xfffffffU) << 4U;
194}
195static inline u32 perf_pmasys_mem_bump_r(void)
196{
197 return 0x001b4088U;
198}
199static inline u32 perf_pmasys_mem_bump_numbytes_f(u32 v)
200{
201 return (v & 0xfffffffU) << 4U;
202}
203static inline u32 perf_pmasys_enginestatus_r(void)
204{
205 return 0x001b40a4U;
206}
207static inline u32 perf_pmasys_enginestatus_rbufempty_f(u32 v)
208{
209 return (v & 0x1U) << 4U;
210}
211static inline u32 perf_pmasys_enginestatus_rbufempty_empty_v(void)
212{
213 return 0x00000001U;
214}
215static inline u32 perf_pmasys_enginestatus_rbufempty_empty_f(void)
216{
217 return 0x10U;
218}
219#endif
diff --git a/include/nvgpu/hw/gp10b/hw_pram_gp10b.h b/include/nvgpu/hw/gp10b/hw_pram_gp10b.h
new file mode 100644
index 0000000..aef0e69
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_pram_gp10b.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (c) 2016-2017, 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_pram_gp10b_h_
57#define _hw_pram_gp10b_h_
58
59static inline u32 pram_data032_r(u32 i)
60{
61 return 0x00700000U + i*4U;
62}
63#endif
diff --git a/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h b/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h
new file mode 100644
index 0000000..03a3854
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h
@@ -0,0 +1,167 @@
1/*
2 * Copyright (c) 2014-2017, 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_pri_ringmaster_gp10b_h_
57#define _hw_pri_ringmaster_gp10b_h_
58
59static inline u32 pri_ringmaster_command_r(void)
60{
61 return 0x0012004cU;
62}
63static inline u32 pri_ringmaster_command_cmd_m(void)
64{
65 return 0x3fU << 0U;
66}
67static inline u32 pri_ringmaster_command_cmd_v(u32 r)
68{
69 return (r >> 0U) & 0x3fU;
70}
71static inline u32 pri_ringmaster_command_cmd_no_cmd_v(void)
72{
73 return 0x00000000U;
74}
75static inline u32 pri_ringmaster_command_cmd_start_ring_f(void)
76{
77 return 0x1U;
78}
79static inline u32 pri_ringmaster_command_cmd_ack_interrupt_f(void)
80{
81 return 0x2U;
82}
83static inline u32 pri_ringmaster_command_cmd_enumerate_stations_f(void)
84{
85 return 0x3U;
86}
87static inline u32 pri_ringmaster_command_cmd_enumerate_stations_bc_grp_all_f(void)
88{
89 return 0x0U;
90}
91static inline u32 pri_ringmaster_command_data_r(void)
92{
93 return 0x00120048U;
94}
95static inline u32 pri_ringmaster_start_results_r(void)
96{
97 return 0x00120050U;
98}
99static inline u32 pri_ringmaster_start_results_connectivity_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 pri_ringmaster_start_results_connectivity_pass_v(void)
104{
105 return 0x00000001U;
106}
107static inline u32 pri_ringmaster_intr_status0_r(void)
108{
109 return 0x00120058U;
110}
111static inline u32 pri_ringmaster_intr_status0_ring_start_conn_fault_v(u32 r)
112{
113 return (r >> 0U) & 0x1U;
114}
115static inline u32 pri_ringmaster_intr_status0_disconnect_fault_v(u32 r)
116{
117 return (r >> 1U) & 0x1U;
118}
119static inline u32 pri_ringmaster_intr_status0_overflow_fault_v(u32 r)
120{
121 return (r >> 2U) & 0x1U;
122}
123static inline u32 pri_ringmaster_intr_status0_gbl_write_error_sys_v(u32 r)
124{
125 return (r >> 8U) & 0x1U;
126}
127static inline u32 pri_ringmaster_intr_status1_r(void)
128{
129 return 0x0012005cU;
130}
131static inline u32 pri_ringmaster_global_ctl_r(void)
132{
133 return 0x00120060U;
134}
135static inline u32 pri_ringmaster_global_ctl_ring_reset_asserted_f(void)
136{
137 return 0x1U;
138}
139static inline u32 pri_ringmaster_global_ctl_ring_reset_deasserted_f(void)
140{
141 return 0x0U;
142}
143static inline u32 pri_ringmaster_enum_fbp_r(void)
144{
145 return 0x00120074U;
146}
147static inline u32 pri_ringmaster_enum_fbp_count_v(u32 r)
148{
149 return (r >> 0U) & 0x1fU;
150}
151static inline u32 pri_ringmaster_enum_gpc_r(void)
152{
153 return 0x00120078U;
154}
155static inline u32 pri_ringmaster_enum_gpc_count_v(u32 r)
156{
157 return (r >> 0U) & 0x1fU;
158}
159static inline u32 pri_ringmaster_enum_ltc_r(void)
160{
161 return 0x0012006cU;
162}
163static inline u32 pri_ringmaster_enum_ltc_count_v(u32 r)
164{
165 return (r >> 0U) & 0x1fU;
166}
167#endif
diff --git a/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h b/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h
new file mode 100644
index 0000000..ba55658
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h
@@ -0,0 +1,87 @@
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_pri_ringstation_gpc_gp10b_h_
57#define _hw_pri_ringstation_gpc_gp10b_h_
58
59static inline u32 pri_ringstation_gpc_master_config_r(u32 i)
60{
61 return 0x00128300U + i*4U;
62}
63static inline u32 pri_ringstation_gpc_gpc0_priv_error_adr_r(void)
64{
65 return 0x00128120U;
66}
67static inline u32 pri_ringstation_gpc_gpc0_priv_error_wrdat_r(void)
68{
69 return 0x00128124U;
70}
71static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_r(void)
72{
73 return 0x00128128U;
74}
75static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_subid_v(u32 r)
76{
77 return (r >> 24U) & 0x3fU;
78}
79static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_priv_level_v(u32 r)
80{
81 return (r >> 20U) & 0x3U;
82}
83static inline u32 pri_ringstation_gpc_gpc0_priv_error_code_r(void)
84{
85 return 0x0012812cU;
86}
87#endif
diff --git a/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h b/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h
new file mode 100644
index 0000000..1dcb1a3
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h
@@ -0,0 +1,99 @@
1/*
2 * Copyright (c) 2014-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_pri_ringstation_sys_gp10b_h_
57#define _hw_pri_ringstation_sys_gp10b_h_
58
59static inline u32 pri_ringstation_sys_master_config_r(u32 i)
60{
61 return 0x00122300U + i*4U;
62}
63static inline u32 pri_ringstation_sys_decode_config_r(void)
64{
65 return 0x00122204U;
66}
67static inline u32 pri_ringstation_sys_decode_config_ring_m(void)
68{
69 return 0x7U << 0U;
70}
71static inline u32 pri_ringstation_sys_decode_config_ring_drop_on_ring_not_started_f(void)
72{
73 return 0x1U;
74}
75static inline u32 pri_ringstation_sys_priv_error_adr_r(void)
76{
77 return 0x00122120U;
78}
79static inline u32 pri_ringstation_sys_priv_error_wrdat_r(void)
80{
81 return 0x00122124U;
82}
83static inline u32 pri_ringstation_sys_priv_error_info_r(void)
84{
85 return 0x00122128U;
86}
87static inline u32 pri_ringstation_sys_priv_error_info_subid_v(u32 r)
88{
89 return (r >> 24U) & 0x3fU;
90}
91static inline u32 pri_ringstation_sys_priv_error_info_priv_level_v(u32 r)
92{
93 return (r >> 20U) & 0x3U;
94}
95static inline u32 pri_ringstation_sys_priv_error_code_r(void)
96{
97 return 0x0012212cU;
98}
99#endif
diff --git a/include/nvgpu/hw/gp10b/hw_proj_gp10b.h b/include/nvgpu/hw/gp10b/hw_proj_gp10b.h
new file mode 100644
index 0000000..a885e93
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_proj_gp10b.h
@@ -0,0 +1,179 @@
1/*
2 * Copyright (c) 2016-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_proj_gp10b_h_
57#define _hw_proj_gp10b_h_
58
59static inline u32 proj_gpc_base_v(void)
60{
61 return 0x00500000U;
62}
63static inline u32 proj_gpc_shared_base_v(void)
64{
65 return 0x00418000U;
66}
67static inline u32 proj_gpc_stride_v(void)
68{
69 return 0x00008000U;
70}
71static inline u32 proj_gpc_priv_stride_v(void)
72{
73 return 0x00000800U;
74}
75static inline u32 proj_ltc_stride_v(void)
76{
77 return 0x00002000U;
78}
79static inline u32 proj_lts_stride_v(void)
80{
81 return 0x00000200U;
82}
83static inline u32 proj_fbpa_base_v(void)
84{
85 return 0x00900000U;
86}
87static inline u32 proj_fbpa_shared_base_v(void)
88{
89 return 0x009a0000U;
90}
91static inline u32 proj_fbpa_stride_v(void)
92{
93 return 0x00004000U;
94}
95static inline u32 proj_ppc_in_gpc_base_v(void)
96{
97 return 0x00003000U;
98}
99static inline u32 proj_ppc_in_gpc_shared_base_v(void)
100{
101 return 0x00003e00U;
102}
103static inline u32 proj_ppc_in_gpc_stride_v(void)
104{
105 return 0x00000200U;
106}
107static inline u32 proj_rop_base_v(void)
108{
109 return 0x00410000U;
110}
111static inline u32 proj_rop_shared_base_v(void)
112{
113 return 0x00408800U;
114}
115static inline u32 proj_rop_stride_v(void)
116{
117 return 0x00000400U;
118}
119static inline u32 proj_tpc_in_gpc_base_v(void)
120{
121 return 0x00004000U;
122}
123static inline u32 proj_tpc_in_gpc_stride_v(void)
124{
125 return 0x00000800U;
126}
127static inline u32 proj_tpc_in_gpc_shared_base_v(void)
128{
129 return 0x00001800U;
130}
131static inline u32 proj_host_num_engines_v(void)
132{
133 return 0x00000002U;
134}
135static inline u32 proj_host_num_pbdma_v(void)
136{
137 return 0x00000001U;
138}
139static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void)
140{
141 return 0x00000002U;
142}
143static inline u32 proj_scal_litter_num_sm_per_tpc_v(void)
144{
145 return 0x00000001U;
146}
147static inline u32 proj_scal_litter_num_fbps_v(void)
148{
149 return 0x00000001U;
150}
151static inline u32 proj_scal_litter_num_fbpas_v(void)
152{
153 return 0x00000001U;
154}
155static inline u32 proj_scal_litter_num_gpcs_v(void)
156{
157 return 0x00000001U;
158}
159static inline u32 proj_scal_litter_num_pes_per_gpc_v(void)
160{
161 return 0x00000001U;
162}
163static inline u32 proj_scal_litter_num_tpcs_per_pes_v(void)
164{
165 return 0x00000002U;
166}
167static inline u32 proj_scal_litter_num_zcull_banks_v(void)
168{
169 return 0x00000004U;
170}
171static inline u32 proj_scal_max_gpcs_v(void)
172{
173 return 0x00000020U;
174}
175static inline u32 proj_scal_max_tpc_per_gpc_v(void)
176{
177 return 0x00000008U;
178}
179#endif
diff --git a/include/nvgpu/hw/gp10b/hw_pwr_gp10b.h b/include/nvgpu/hw/gp10b/hw_pwr_gp10b.h
new file mode 100644
index 0000000..f067be7
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_pwr_gp10b.h
@@ -0,0 +1,883 @@
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_pwr_gp10b_h_
57#define _hw_pwr_gp10b_h_
58
59static inline u32 pwr_falcon_irqsset_r(void)
60{
61 return 0x0010a000U;
62}
63static inline u32 pwr_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 pwr_falcon_irqsclr_r(void)
68{
69 return 0x0010a004U;
70}
71static inline u32 pwr_falcon_irqstat_r(void)
72{
73 return 0x0010a008U;
74}
75static inline u32 pwr_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 pwr_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 pwr_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 pwr_falcon_irqmode_r(void)
88{
89 return 0x0010a00cU;
90}
91static inline u32 pwr_falcon_irqmset_r(void)
92{
93 return 0x0010a010U;
94}
95static inline u32 pwr_falcon_irqmset_gptmr_f(u32 v)
96{
97 return (v & 0x1U) << 0U;
98}
99static inline u32 pwr_falcon_irqmset_wdtmr_f(u32 v)
100{
101 return (v & 0x1U) << 1U;
102}
103static inline u32 pwr_falcon_irqmset_mthd_f(u32 v)
104{
105 return (v & 0x1U) << 2U;
106}
107static inline u32 pwr_falcon_irqmset_ctxsw_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 pwr_falcon_irqmset_halt_f(u32 v)
112{
113 return (v & 0x1U) << 4U;
114}
115static inline u32 pwr_falcon_irqmset_exterr_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 pwr_falcon_irqmset_swgen0_f(u32 v)
120{
121 return (v & 0x1U) << 6U;
122}
123static inline u32 pwr_falcon_irqmset_swgen1_f(u32 v)
124{
125 return (v & 0x1U) << 7U;
126}
127static inline u32 pwr_falcon_irqmclr_r(void)
128{
129 return 0x0010a014U;
130}
131static inline u32 pwr_falcon_irqmclr_gptmr_f(u32 v)
132{
133 return (v & 0x1U) << 0U;
134}
135static inline u32 pwr_falcon_irqmclr_wdtmr_f(u32 v)
136{
137 return (v & 0x1U) << 1U;
138}
139static inline u32 pwr_falcon_irqmclr_mthd_f(u32 v)
140{
141 return (v & 0x1U) << 2U;
142}
143static inline u32 pwr_falcon_irqmclr_ctxsw_f(u32 v)
144{
145 return (v & 0x1U) << 3U;
146}
147static inline u32 pwr_falcon_irqmclr_halt_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 pwr_falcon_irqmclr_exterr_f(u32 v)
152{
153 return (v & 0x1U) << 5U;
154}
155static inline u32 pwr_falcon_irqmclr_swgen0_f(u32 v)
156{
157 return (v & 0x1U) << 6U;
158}
159static inline u32 pwr_falcon_irqmclr_swgen1_f(u32 v)
160{
161 return (v & 0x1U) << 7U;
162}
163static inline u32 pwr_falcon_irqmclr_ext_f(u32 v)
164{
165 return (v & 0xffU) << 8U;
166}
167static inline u32 pwr_falcon_irqmask_r(void)
168{
169 return 0x0010a018U;
170}
171static inline u32 pwr_falcon_irqdest_r(void)
172{
173 return 0x0010a01cU;
174}
175static inline u32 pwr_falcon_irqdest_host_gptmr_f(u32 v)
176{
177 return (v & 0x1U) << 0U;
178}
179static inline u32 pwr_falcon_irqdest_host_wdtmr_f(u32 v)
180{
181 return (v & 0x1U) << 1U;
182}
183static inline u32 pwr_falcon_irqdest_host_mthd_f(u32 v)
184{
185 return (v & 0x1U) << 2U;
186}
187static inline u32 pwr_falcon_irqdest_host_ctxsw_f(u32 v)
188{
189 return (v & 0x1U) << 3U;
190}
191static inline u32 pwr_falcon_irqdest_host_halt_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 pwr_falcon_irqdest_host_exterr_f(u32 v)
196{
197 return (v & 0x1U) << 5U;
198}
199static inline u32 pwr_falcon_irqdest_host_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 pwr_falcon_irqdest_host_swgen1_f(u32 v)
204{
205 return (v & 0x1U) << 7U;
206}
207static inline u32 pwr_falcon_irqdest_host_ext_f(u32 v)
208{
209 return (v & 0xffU) << 8U;
210}
211static inline u32 pwr_falcon_irqdest_target_gptmr_f(u32 v)
212{
213 return (v & 0x1U) << 16U;
214}
215static inline u32 pwr_falcon_irqdest_target_wdtmr_f(u32 v)
216{
217 return (v & 0x1U) << 17U;
218}
219static inline u32 pwr_falcon_irqdest_target_mthd_f(u32 v)
220{
221 return (v & 0x1U) << 18U;
222}
223static inline u32 pwr_falcon_irqdest_target_ctxsw_f(u32 v)
224{
225 return (v & 0x1U) << 19U;
226}
227static inline u32 pwr_falcon_irqdest_target_halt_f(u32 v)
228{
229 return (v & 0x1U) << 20U;
230}
231static inline u32 pwr_falcon_irqdest_target_exterr_f(u32 v)
232{
233 return (v & 0x1U) << 21U;
234}
235static inline u32 pwr_falcon_irqdest_target_swgen0_f(u32 v)
236{
237 return (v & 0x1U) << 22U;
238}
239static inline u32 pwr_falcon_irqdest_target_swgen1_f(u32 v)
240{
241 return (v & 0x1U) << 23U;
242}
243static inline u32 pwr_falcon_irqdest_target_ext_f(u32 v)
244{
245 return (v & 0xffU) << 24U;
246}
247static inline u32 pwr_falcon_curctx_r(void)
248{
249 return 0x0010a050U;
250}
251static inline u32 pwr_falcon_nxtctx_r(void)
252{
253 return 0x0010a054U;
254}
255static inline u32 pwr_falcon_mailbox0_r(void)
256{
257 return 0x0010a040U;
258}
259static inline u32 pwr_falcon_mailbox1_r(void)
260{
261 return 0x0010a044U;
262}
263static inline u32 pwr_falcon_itfen_r(void)
264{
265 return 0x0010a048U;
266}
267static inline u32 pwr_falcon_itfen_ctxen_enable_f(void)
268{
269 return 0x1U;
270}
271static inline u32 pwr_falcon_idlestate_r(void)
272{
273 return 0x0010a04cU;
274}
275static inline u32 pwr_falcon_idlestate_falcon_busy_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 pwr_falcon_idlestate_ext_busy_v(u32 r)
280{
281 return (r >> 1U) & 0x7fffU;
282}
283static inline u32 pwr_falcon_os_r(void)
284{
285 return 0x0010a080U;
286}
287static inline u32 pwr_falcon_engctl_r(void)
288{
289 return 0x0010a0a4U;
290}
291static inline u32 pwr_falcon_cpuctl_r(void)
292{
293 return 0x0010a100U;
294}
295static inline u32 pwr_falcon_cpuctl_startcpu_f(u32 v)
296{
297 return (v & 0x1U) << 1U;
298}
299static inline u32 pwr_falcon_cpuctl_halt_intr_f(u32 v)
300{
301 return (v & 0x1U) << 4U;
302}
303static inline u32 pwr_falcon_cpuctl_halt_intr_m(void)
304{
305 return 0x1U << 4U;
306}
307static inline u32 pwr_falcon_cpuctl_halt_intr_v(u32 r)
308{
309 return (r >> 4U) & 0x1U;
310}
311static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
312{
313 return (v & 0x1U) << 6U;
314}
315static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_m(void)
316{
317 return 0x1U << 6U;
318}
319static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
320{
321 return (r >> 6U) & 0x1U;
322}
323static inline u32 pwr_falcon_cpuctl_alias_r(void)
324{
325 return 0x0010a130U;
326}
327static inline u32 pwr_falcon_cpuctl_alias_startcpu_f(u32 v)
328{
329 return (v & 0x1U) << 1U;
330}
331static inline u32 pwr_pmu_scpctl_stat_r(void)
332{
333 return 0x0010ac08U;
334}
335static inline u32 pwr_pmu_scpctl_stat_debug_mode_f(u32 v)
336{
337 return (v & 0x1U) << 20U;
338}
339static inline u32 pwr_pmu_scpctl_stat_debug_mode_m(void)
340{
341 return 0x1U << 20U;
342}
343static inline u32 pwr_pmu_scpctl_stat_debug_mode_v(u32 r)
344{
345 return (r >> 20U) & 0x1U;
346}
347static inline u32 pwr_falcon_imemc_r(u32 i)
348{
349 return 0x0010a180U + i*16U;
350}
351static inline u32 pwr_falcon_imemc_offs_f(u32 v)
352{
353 return (v & 0x3fU) << 2U;
354}
355static inline u32 pwr_falcon_imemc_blk_f(u32 v)
356{
357 return (v & 0xffU) << 8U;
358}
359static inline u32 pwr_falcon_imemc_aincw_f(u32 v)
360{
361 return (v & 0x1U) << 24U;
362}
363static inline u32 pwr_falcon_imemd_r(u32 i)
364{
365 return 0x0010a184U + i*16U;
366}
367static inline u32 pwr_falcon_imemt_r(u32 i)
368{
369 return 0x0010a188U + i*16U;
370}
371static inline u32 pwr_falcon_sctl_r(void)
372{
373 return 0x0010a240U;
374}
375static inline u32 pwr_falcon_mmu_phys_sec_r(void)
376{
377 return 0x00100ce4U;
378}
379static inline u32 pwr_falcon_bootvec_r(void)
380{
381 return 0x0010a104U;
382}
383static inline u32 pwr_falcon_bootvec_vec_f(u32 v)
384{
385 return (v & 0xffffffffU) << 0U;
386}
387static inline u32 pwr_falcon_dmactl_r(void)
388{
389 return 0x0010a10cU;
390}
391static inline u32 pwr_falcon_dmactl_dmem_scrubbing_m(void)
392{
393 return 0x1U << 1U;
394}
395static inline u32 pwr_falcon_dmactl_imem_scrubbing_m(void)
396{
397 return 0x1U << 2U;
398}
399static inline u32 pwr_falcon_hwcfg_r(void)
400{
401 return 0x0010a108U;
402}
403static inline u32 pwr_falcon_hwcfg_imem_size_v(u32 r)
404{
405 return (r >> 0U) & 0x1ffU;
406}
407static inline u32 pwr_falcon_hwcfg_dmem_size_v(u32 r)
408{
409 return (r >> 9U) & 0x1ffU;
410}
411static inline u32 pwr_falcon_dmatrfbase_r(void)
412{
413 return 0x0010a110U;
414}
415static inline u32 pwr_falcon_dmatrfbase1_r(void)
416{
417 return 0x0010a128U;
418}
419static inline u32 pwr_falcon_dmatrfmoffs_r(void)
420{
421 return 0x0010a114U;
422}
423static inline u32 pwr_falcon_dmatrfcmd_r(void)
424{
425 return 0x0010a118U;
426}
427static inline u32 pwr_falcon_dmatrfcmd_imem_f(u32 v)
428{
429 return (v & 0x1U) << 4U;
430}
431static inline u32 pwr_falcon_dmatrfcmd_write_f(u32 v)
432{
433 return (v & 0x1U) << 5U;
434}
435static inline u32 pwr_falcon_dmatrfcmd_size_f(u32 v)
436{
437 return (v & 0x7U) << 8U;
438}
439static inline u32 pwr_falcon_dmatrfcmd_ctxdma_f(u32 v)
440{
441 return (v & 0x7U) << 12U;
442}
443static inline u32 pwr_falcon_dmatrffboffs_r(void)
444{
445 return 0x0010a11cU;
446}
447static inline u32 pwr_falcon_exterraddr_r(void)
448{
449 return 0x0010a168U;
450}
451static inline u32 pwr_falcon_exterrstat_r(void)
452{
453 return 0x0010a16cU;
454}
455static inline u32 pwr_falcon_exterrstat_valid_m(void)
456{
457 return 0x1U << 31U;
458}
459static inline u32 pwr_falcon_exterrstat_valid_v(u32 r)
460{
461 return (r >> 31U) & 0x1U;
462}
463static inline u32 pwr_falcon_exterrstat_valid_true_v(void)
464{
465 return 0x00000001U;
466}
467static inline u32 pwr_pmu_falcon_icd_cmd_r(void)
468{
469 return 0x0010a200U;
470}
471static inline u32 pwr_pmu_falcon_icd_cmd_opc_s(void)
472{
473 return 4U;
474}
475static inline u32 pwr_pmu_falcon_icd_cmd_opc_f(u32 v)
476{
477 return (v & 0xfU) << 0U;
478}
479static inline u32 pwr_pmu_falcon_icd_cmd_opc_m(void)
480{
481 return 0xfU << 0U;
482}
483static inline u32 pwr_pmu_falcon_icd_cmd_opc_v(u32 r)
484{
485 return (r >> 0U) & 0xfU;
486}
487static inline u32 pwr_pmu_falcon_icd_cmd_opc_rreg_f(void)
488{
489 return 0x8U;
490}
491static inline u32 pwr_pmu_falcon_icd_cmd_opc_rstat_f(void)
492{
493 return 0xeU;
494}
495static inline u32 pwr_pmu_falcon_icd_cmd_idx_f(u32 v)
496{
497 return (v & 0x1fU) << 8U;
498}
499static inline u32 pwr_pmu_falcon_icd_rdata_r(void)
500{
501 return 0x0010a20cU;
502}
503static inline u32 pwr_falcon_dmemc_r(u32 i)
504{
505 return 0x0010a1c0U + i*8U;
506}
507static inline u32 pwr_falcon_dmemc_offs_f(u32 v)
508{
509 return (v & 0x3fU) << 2U;
510}
511static inline u32 pwr_falcon_dmemc_offs_m(void)
512{
513 return 0x3fU << 2U;
514}
515static inline u32 pwr_falcon_dmemc_blk_f(u32 v)
516{
517 return (v & 0xffU) << 8U;
518}
519static inline u32 pwr_falcon_dmemc_blk_m(void)
520{
521 return 0xffU << 8U;
522}
523static inline u32 pwr_falcon_dmemc_aincw_f(u32 v)
524{
525 return (v & 0x1U) << 24U;
526}
527static inline u32 pwr_falcon_dmemc_aincr_f(u32 v)
528{
529 return (v & 0x1U) << 25U;
530}
531static inline u32 pwr_falcon_dmemd_r(u32 i)
532{
533 return 0x0010a1c4U + i*8U;
534}
535static inline u32 pwr_pmu_new_instblk_r(void)
536{
537 return 0x0010a480U;
538}
539static inline u32 pwr_pmu_new_instblk_ptr_f(u32 v)
540{
541 return (v & 0xfffffffU) << 0U;
542}
543static inline u32 pwr_pmu_new_instblk_target_fb_f(void)
544{
545 return 0x0U;
546}
547static inline u32 pwr_pmu_new_instblk_target_sys_coh_f(void)
548{
549 return 0x20000000U;
550}
551static inline u32 pwr_pmu_new_instblk_target_sys_ncoh_f(void)
552{
553 return 0x30000000U;
554}
555static inline u32 pwr_pmu_new_instblk_valid_f(u32 v)
556{
557 return (v & 0x1U) << 30U;
558}
559static inline u32 pwr_pmu_mutex_id_r(void)
560{
561 return 0x0010a488U;
562}
563static inline u32 pwr_pmu_mutex_id_value_v(u32 r)
564{
565 return (r >> 0U) & 0xffU;
566}
567static inline u32 pwr_pmu_mutex_id_value_init_v(void)
568{
569 return 0x00000000U;
570}
571static inline u32 pwr_pmu_mutex_id_value_not_avail_v(void)
572{
573 return 0x000000ffU;
574}
575static inline u32 pwr_pmu_mutex_id_release_r(void)
576{
577 return 0x0010a48cU;
578}
579static inline u32 pwr_pmu_mutex_id_release_value_f(u32 v)
580{
581 return (v & 0xffU) << 0U;
582}
583static inline u32 pwr_pmu_mutex_id_release_value_m(void)
584{
585 return 0xffU << 0U;
586}
587static inline u32 pwr_pmu_mutex_id_release_value_init_v(void)
588{
589 return 0x00000000U;
590}
591static inline u32 pwr_pmu_mutex_id_release_value_init_f(void)
592{
593 return 0x0U;
594}
595static inline u32 pwr_pmu_mutex_r(u32 i)
596{
597 return 0x0010a580U + i*4U;
598}
599static inline u32 pwr_pmu_mutex__size_1_v(void)
600{
601 return 0x00000010U;
602}
603static inline u32 pwr_pmu_mutex_value_f(u32 v)
604{
605 return (v & 0xffU) << 0U;
606}
607static inline u32 pwr_pmu_mutex_value_v(u32 r)
608{
609 return (r >> 0U) & 0xffU;
610}
611static inline u32 pwr_pmu_mutex_value_initial_lock_f(void)
612{
613 return 0x0U;
614}
615static inline u32 pwr_pmu_queue_head_r(u32 i)
616{
617 return 0x0010a4a0U + i*4U;
618}
619static inline u32 pwr_pmu_queue_head__size_1_v(void)
620{
621 return 0x00000004U;
622}
623static inline u32 pwr_pmu_queue_head_address_f(u32 v)
624{
625 return (v & 0xffffffffU) << 0U;
626}
627static inline u32 pwr_pmu_queue_head_address_v(u32 r)
628{
629 return (r >> 0U) & 0xffffffffU;
630}
631static inline u32 pwr_pmu_queue_tail_r(u32 i)
632{
633 return 0x0010a4b0U + i*4U;
634}
635static inline u32 pwr_pmu_queue_tail__size_1_v(void)
636{
637 return 0x00000004U;
638}
639static inline u32 pwr_pmu_queue_tail_address_f(u32 v)
640{
641 return (v & 0xffffffffU) << 0U;
642}
643static inline u32 pwr_pmu_queue_tail_address_v(u32 r)
644{
645 return (r >> 0U) & 0xffffffffU;
646}
647static inline u32 pwr_pmu_msgq_head_r(void)
648{
649 return 0x0010a4c8U;
650}
651static inline u32 pwr_pmu_msgq_head_val_f(u32 v)
652{
653 return (v & 0xffffffffU) << 0U;
654}
655static inline u32 pwr_pmu_msgq_head_val_v(u32 r)
656{
657 return (r >> 0U) & 0xffffffffU;
658}
659static inline u32 pwr_pmu_msgq_tail_r(void)
660{
661 return 0x0010a4ccU;
662}
663static inline u32 pwr_pmu_msgq_tail_val_f(u32 v)
664{
665 return (v & 0xffffffffU) << 0U;
666}
667static inline u32 pwr_pmu_msgq_tail_val_v(u32 r)
668{
669 return (r >> 0U) & 0xffffffffU;
670}
671static inline u32 pwr_pmu_idle_mask_r(u32 i)
672{
673 return 0x0010a504U + i*16U;
674}
675static inline u32 pwr_pmu_idle_mask_gr_enabled_f(void)
676{
677 return 0x1U;
678}
679static inline u32 pwr_pmu_idle_mask_ce_2_enabled_f(void)
680{
681 return 0x200000U;
682}
683static inline u32 pwr_pmu_idle_mask_1_r(u32 i)
684{
685 return 0x0010aa34U + i*8U;
686}
687static inline u32 pwr_pmu_idle_count_r(u32 i)
688{
689 return 0x0010a508U + i*16U;
690}
691static inline u32 pwr_pmu_idle_count_value_f(u32 v)
692{
693 return (v & 0x7fffffffU) << 0U;
694}
695static inline u32 pwr_pmu_idle_count_value_v(u32 r)
696{
697 return (r >> 0U) & 0x7fffffffU;
698}
699static inline u32 pwr_pmu_idle_count_reset_f(u32 v)
700{
701 return (v & 0x1U) << 31U;
702}
703static inline u32 pwr_pmu_idle_ctrl_r(u32 i)
704{
705 return 0x0010a50cU + i*16U;
706}
707static inline u32 pwr_pmu_idle_ctrl_value_m(void)
708{
709 return 0x3U << 0U;
710}
711static inline u32 pwr_pmu_idle_ctrl_value_busy_f(void)
712{
713 return 0x2U;
714}
715static inline u32 pwr_pmu_idle_ctrl_value_always_f(void)
716{
717 return 0x3U;
718}
719static inline u32 pwr_pmu_idle_ctrl_filter_m(void)
720{
721 return 0x1U << 2U;
722}
723static inline u32 pwr_pmu_idle_ctrl_filter_disabled_f(void)
724{
725 return 0x0U;
726}
727static inline u32 pwr_pmu_idle_threshold_r(u32 i)
728{
729 return 0x0010a8a0U + i*4U;
730}
731static inline u32 pwr_pmu_idle_threshold_value_f(u32 v)
732{
733 return (v & 0x7fffffffU) << 0U;
734}
735static inline u32 pwr_pmu_idle_intr_r(void)
736{
737 return 0x0010a9e8U;
738}
739static inline u32 pwr_pmu_idle_intr_en_f(u32 v)
740{
741 return (v & 0x1U) << 0U;
742}
743static inline u32 pwr_pmu_idle_intr_en_disabled_v(void)
744{
745 return 0x00000000U;
746}
747static inline u32 pwr_pmu_idle_intr_en_enabled_v(void)
748{
749 return 0x00000001U;
750}
751static inline u32 pwr_pmu_idle_intr_status_r(void)
752{
753 return 0x0010a9ecU;
754}
755static inline u32 pwr_pmu_idle_intr_status_intr_f(u32 v)
756{
757 return (v & 0x1U) << 0U;
758}
759static inline u32 pwr_pmu_idle_intr_status_intr_m(void)
760{
761 return 0x1U << 0U;
762}
763static inline u32 pwr_pmu_idle_intr_status_intr_v(u32 r)
764{
765 return (r >> 0U) & 0x1U;
766}
767static inline u32 pwr_pmu_idle_intr_status_intr_pending_v(void)
768{
769 return 0x00000001U;
770}
771static inline u32 pwr_pmu_idle_intr_status_intr_clear_v(void)
772{
773 return 0x00000001U;
774}
775static inline u32 pwr_pmu_idle_mask_supp_r(u32 i)
776{
777 return 0x0010a9f0U + i*8U;
778}
779static inline u32 pwr_pmu_idle_mask_1_supp_r(u32 i)
780{
781 return 0x0010a9f4U + i*8U;
782}
783static inline u32 pwr_pmu_idle_ctrl_supp_r(u32 i)
784{
785 return 0x0010aa30U + i*8U;
786}
787static inline u32 pwr_pmu_debug_r(u32 i)
788{
789 return 0x0010a5c0U + i*4U;
790}
791static inline u32 pwr_pmu_debug__size_1_v(void)
792{
793 return 0x00000004U;
794}
795static inline u32 pwr_pmu_mailbox_r(u32 i)
796{
797 return 0x0010a450U + i*4U;
798}
799static inline u32 pwr_pmu_mailbox__size_1_v(void)
800{
801 return 0x0000000cU;
802}
803static inline u32 pwr_pmu_bar0_addr_r(void)
804{
805 return 0x0010a7a0U;
806}
807static inline u32 pwr_pmu_bar0_data_r(void)
808{
809 return 0x0010a7a4U;
810}
811static inline u32 pwr_pmu_bar0_ctl_r(void)
812{
813 return 0x0010a7acU;
814}
815static inline u32 pwr_pmu_bar0_timeout_r(void)
816{
817 return 0x0010a7a8U;
818}
819static inline u32 pwr_pmu_bar0_fecs_error_r(void)
820{
821 return 0x0010a988U;
822}
823static inline u32 pwr_pmu_bar0_error_status_r(void)
824{
825 return 0x0010a7b0U;
826}
827static inline u32 pwr_pmu_pg_idlefilth_r(u32 i)
828{
829 return 0x0010a6c0U + i*4U;
830}
831static inline u32 pwr_pmu_pg_ppuidlefilth_r(u32 i)
832{
833 return 0x0010a6e8U + i*4U;
834}
835static inline u32 pwr_pmu_pg_idle_cnt_r(u32 i)
836{
837 return 0x0010a710U + i*4U;
838}
839static inline u32 pwr_pmu_pg_intren_r(u32 i)
840{
841 return 0x0010a760U + i*4U;
842}
843static inline u32 pwr_fbif_transcfg_r(u32 i)
844{
845 return 0x0010ae00U + i*4U;
846}
847static inline u32 pwr_fbif_transcfg_target_local_fb_f(void)
848{
849 return 0x0U;
850}
851static inline u32 pwr_fbif_transcfg_target_coherent_sysmem_f(void)
852{
853 return 0x1U;
854}
855static inline u32 pwr_fbif_transcfg_target_noncoherent_sysmem_f(void)
856{
857 return 0x2U;
858}
859static inline u32 pwr_fbif_transcfg_mem_type_s(void)
860{
861 return 1U;
862}
863static inline u32 pwr_fbif_transcfg_mem_type_f(u32 v)
864{
865 return (v & 0x1U) << 2U;
866}
867static inline u32 pwr_fbif_transcfg_mem_type_m(void)
868{
869 return 0x1U << 2U;
870}
871static inline u32 pwr_fbif_transcfg_mem_type_v(u32 r)
872{
873 return (r >> 2U) & 0x1U;
874}
875static inline u32 pwr_fbif_transcfg_mem_type_virtual_f(void)
876{
877 return 0x0U;
878}
879static inline u32 pwr_fbif_transcfg_mem_type_physical_f(void)
880{
881 return 0x4U;
882}
883#endif
diff --git a/include/nvgpu/hw/gp10b/hw_ram_gp10b.h b/include/nvgpu/hw/gp10b/hw_ram_gp10b.h
new file mode 100644
index 0000000..cc83f52
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_ram_gp10b.h
@@ -0,0 +1,519 @@
1/*
2 * Copyright (c) 2014-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_ram_gp10b_h_
57#define _hw_ram_gp10b_h_
58
59static inline u32 ram_in_ramfc_s(void)
60{
61 return 4096U;
62}
63static inline u32 ram_in_ramfc_w(void)
64{
65 return 0U;
66}
67static inline u32 ram_in_page_dir_base_target_f(u32 v)
68{
69 return (v & 0x3U) << 0U;
70}
71static inline u32 ram_in_page_dir_base_target_w(void)
72{
73 return 128U;
74}
75static inline u32 ram_in_page_dir_base_target_vid_mem_f(void)
76{
77 return 0x0U;
78}
79static inline u32 ram_in_page_dir_base_target_sys_mem_coh_f(void)
80{
81 return 0x2U;
82}
83static inline u32 ram_in_page_dir_base_target_sys_mem_ncoh_f(void)
84{
85 return 0x3U;
86}
87static inline u32 ram_in_page_dir_base_vol_w(void)
88{
89 return 128U;
90}
91static inline u32 ram_in_page_dir_base_vol_true_f(void)
92{
93 return 0x4U;
94}
95static inline u32 ram_in_page_dir_base_fault_replay_tex_f(u32 v)
96{
97 return (v & 0x1U) << 4U;
98}
99static inline u32 ram_in_page_dir_base_fault_replay_tex_m(void)
100{
101 return 0x1U << 4U;
102}
103static inline u32 ram_in_page_dir_base_fault_replay_tex_w(void)
104{
105 return 128U;
106}
107static inline u32 ram_in_page_dir_base_fault_replay_tex_true_f(void)
108{
109 return 0x10U;
110}
111static inline u32 ram_in_page_dir_base_fault_replay_gcc_f(u32 v)
112{
113 return (v & 0x1U) << 5U;
114}
115static inline u32 ram_in_page_dir_base_fault_replay_gcc_m(void)
116{
117 return 0x1U << 5U;
118}
119static inline u32 ram_in_page_dir_base_fault_replay_gcc_w(void)
120{
121 return 128U;
122}
123static inline u32 ram_in_page_dir_base_fault_replay_gcc_true_f(void)
124{
125 return 0x20U;
126}
127static inline u32 ram_in_use_ver2_pt_format_f(u32 v)
128{
129 return (v & 0x1U) << 10U;
130}
131static inline u32 ram_in_use_ver2_pt_format_m(void)
132{
133 return 0x1U << 10U;
134}
135static inline u32 ram_in_use_ver2_pt_format_w(void)
136{
137 return 128U;
138}
139static inline u32 ram_in_use_ver2_pt_format_true_f(void)
140{
141 return 0x400U;
142}
143static inline u32 ram_in_use_ver2_pt_format_false_f(void)
144{
145 return 0x0U;
146}
147static inline u32 ram_in_big_page_size_f(u32 v)
148{
149 return (v & 0x1U) << 11U;
150}
151static inline u32 ram_in_big_page_size_m(void)
152{
153 return 0x1U << 11U;
154}
155static inline u32 ram_in_big_page_size_w(void)
156{
157 return 128U;
158}
159static inline u32 ram_in_big_page_size_128kb_f(void)
160{
161 return 0x0U;
162}
163static inline u32 ram_in_big_page_size_64kb_f(void)
164{
165 return 0x800U;
166}
167static inline u32 ram_in_page_dir_base_lo_f(u32 v)
168{
169 return (v & 0xfffffU) << 12U;
170}
171static inline u32 ram_in_page_dir_base_lo_w(void)
172{
173 return 128U;
174}
175static inline u32 ram_in_page_dir_base_hi_f(u32 v)
176{
177 return (v & 0xffU) << 0U;
178}
179static inline u32 ram_in_page_dir_base_hi_w(void)
180{
181 return 129U;
182}
183static inline u32 ram_in_adr_limit_lo_f(u32 v)
184{
185 return (v & 0xfffffU) << 12U;
186}
187static inline u32 ram_in_adr_limit_lo_w(void)
188{
189 return 130U;
190}
191static inline u32 ram_in_adr_limit_hi_f(u32 v)
192{
193 return (v & 0xffffffffU) << 0U;
194}
195static inline u32 ram_in_adr_limit_hi_w(void)
196{
197 return 131U;
198}
199static inline u32 ram_in_engine_cs_w(void)
200{
201 return 132U;
202}
203static inline u32 ram_in_engine_cs_wfi_v(void)
204{
205 return 0x00000000U;
206}
207static inline u32 ram_in_engine_cs_wfi_f(void)
208{
209 return 0x0U;
210}
211static inline u32 ram_in_engine_cs_fg_v(void)
212{
213 return 0x00000001U;
214}
215static inline u32 ram_in_engine_cs_fg_f(void)
216{
217 return 0x8U;
218}
219static inline u32 ram_in_gr_cs_w(void)
220{
221 return 132U;
222}
223static inline u32 ram_in_gr_cs_wfi_f(void)
224{
225 return 0x0U;
226}
227static inline u32 ram_in_gr_wfi_target_w(void)
228{
229 return 132U;
230}
231static inline u32 ram_in_gr_wfi_mode_w(void)
232{
233 return 132U;
234}
235static inline u32 ram_in_gr_wfi_mode_physical_v(void)
236{
237 return 0x00000000U;
238}
239static inline u32 ram_in_gr_wfi_mode_physical_f(void)
240{
241 return 0x0U;
242}
243static inline u32 ram_in_gr_wfi_mode_virtual_v(void)
244{
245 return 0x00000001U;
246}
247static inline u32 ram_in_gr_wfi_mode_virtual_f(void)
248{
249 return 0x4U;
250}
251static inline u32 ram_in_gr_wfi_ptr_lo_f(u32 v)
252{
253 return (v & 0xfffffU) << 12U;
254}
255static inline u32 ram_in_gr_wfi_ptr_lo_w(void)
256{
257 return 132U;
258}
259static inline u32 ram_in_gr_wfi_ptr_hi_f(u32 v)
260{
261 return (v & 0xffU) << 0U;
262}
263static inline u32 ram_in_gr_wfi_ptr_hi_w(void)
264{
265 return 133U;
266}
267static inline u32 ram_in_base_shift_v(void)
268{
269 return 0x0000000cU;
270}
271static inline u32 ram_in_alloc_size_v(void)
272{
273 return 0x00001000U;
274}
275static inline u32 ram_fc_size_val_v(void)
276{
277 return 0x00000200U;
278}
279static inline u32 ram_fc_gp_put_w(void)
280{
281 return 0U;
282}
283static inline u32 ram_fc_userd_w(void)
284{
285 return 2U;
286}
287static inline u32 ram_fc_userd_hi_w(void)
288{
289 return 3U;
290}
291static inline u32 ram_fc_signature_w(void)
292{
293 return 4U;
294}
295static inline u32 ram_fc_gp_get_w(void)
296{
297 return 5U;
298}
299static inline u32 ram_fc_pb_get_w(void)
300{
301 return 6U;
302}
303static inline u32 ram_fc_pb_get_hi_w(void)
304{
305 return 7U;
306}
307static inline u32 ram_fc_pb_top_level_get_w(void)
308{
309 return 8U;
310}
311static inline u32 ram_fc_pb_top_level_get_hi_w(void)
312{
313 return 9U;
314}
315static inline u32 ram_fc_acquire_w(void)
316{
317 return 12U;
318}
319static inline u32 ram_fc_semaphorea_w(void)
320{
321 return 14U;
322}
323static inline u32 ram_fc_semaphoreb_w(void)
324{
325 return 15U;
326}
327static inline u32 ram_fc_semaphorec_w(void)
328{
329 return 16U;
330}
331static inline u32 ram_fc_semaphored_w(void)
332{
333 return 17U;
334}
335static inline u32 ram_fc_gp_base_w(void)
336{
337 return 18U;
338}
339static inline u32 ram_fc_gp_base_hi_w(void)
340{
341 return 19U;
342}
343static inline u32 ram_fc_gp_fetch_w(void)
344{
345 return 20U;
346}
347static inline u32 ram_fc_pb_fetch_w(void)
348{
349 return 21U;
350}
351static inline u32 ram_fc_pb_fetch_hi_w(void)
352{
353 return 22U;
354}
355static inline u32 ram_fc_pb_put_w(void)
356{
357 return 23U;
358}
359static inline u32 ram_fc_pb_put_hi_w(void)
360{
361 return 24U;
362}
363static inline u32 ram_fc_pb_header_w(void)
364{
365 return 33U;
366}
367static inline u32 ram_fc_pb_count_w(void)
368{
369 return 34U;
370}
371static inline u32 ram_fc_subdevice_w(void)
372{
373 return 37U;
374}
375static inline u32 ram_fc_formats_w(void)
376{
377 return 39U;
378}
379static inline u32 ram_fc_allowed_syncpoints_w(void)
380{
381 return 58U;
382}
383static inline u32 ram_fc_syncpointa_w(void)
384{
385 return 41U;
386}
387static inline u32 ram_fc_syncpointb_w(void)
388{
389 return 42U;
390}
391static inline u32 ram_fc_target_w(void)
392{
393 return 43U;
394}
395static inline u32 ram_fc_hce_ctrl_w(void)
396{
397 return 57U;
398}
399static inline u32 ram_fc_chid_w(void)
400{
401 return 58U;
402}
403static inline u32 ram_fc_chid_id_f(u32 v)
404{
405 return (v & 0xfffU) << 0U;
406}
407static inline u32 ram_fc_chid_id_w(void)
408{
409 return 0U;
410}
411static inline u32 ram_fc_config_w(void)
412{
413 return 61U;
414}
415static inline u32 ram_fc_runlist_timeslice_w(void)
416{
417 return 62U;
418}
419static inline u32 ram_userd_base_shift_v(void)
420{
421 return 0x00000009U;
422}
423static inline u32 ram_userd_chan_size_v(void)
424{
425 return 0x00000200U;
426}
427static inline u32 ram_userd_put_w(void)
428{
429 return 16U;
430}
431static inline u32 ram_userd_get_w(void)
432{
433 return 17U;
434}
435static inline u32 ram_userd_ref_w(void)
436{
437 return 18U;
438}
439static inline u32 ram_userd_put_hi_w(void)
440{
441 return 19U;
442}
443static inline u32 ram_userd_ref_threshold_w(void)
444{
445 return 20U;
446}
447static inline u32 ram_userd_top_level_get_w(void)
448{
449 return 22U;
450}
451static inline u32 ram_userd_top_level_get_hi_w(void)
452{
453 return 23U;
454}
455static inline u32 ram_userd_get_hi_w(void)
456{
457 return 24U;
458}
459static inline u32 ram_userd_gp_get_w(void)
460{
461 return 34U;
462}
463static inline u32 ram_userd_gp_put_w(void)
464{
465 return 35U;
466}
467static inline u32 ram_userd_gp_top_level_get_w(void)
468{
469 return 22U;
470}
471static inline u32 ram_userd_gp_top_level_get_hi_w(void)
472{
473 return 23U;
474}
475static inline u32 ram_rl_entry_size_v(void)
476{
477 return 0x00000008U;
478}
479static inline u32 ram_rl_entry_chid_f(u32 v)
480{
481 return (v & 0xfffU) << 0U;
482}
483static inline u32 ram_rl_entry_id_f(u32 v)
484{
485 return (v & 0xfffU) << 0U;
486}
487static inline u32 ram_rl_entry_type_f(u32 v)
488{
489 return (v & 0x1U) << 13U;
490}
491static inline u32 ram_rl_entry_type_chid_f(void)
492{
493 return 0x0U;
494}
495static inline u32 ram_rl_entry_type_tsg_f(void)
496{
497 return 0x2000U;
498}
499static inline u32 ram_rl_entry_timeslice_scale_f(u32 v)
500{
501 return (v & 0xfU) << 14U;
502}
503static inline u32 ram_rl_entry_timeslice_scale_3_f(void)
504{
505 return 0xc000U;
506}
507static inline u32 ram_rl_entry_timeslice_timeout_f(u32 v)
508{
509 return (v & 0xffU) << 18U;
510}
511static inline u32 ram_rl_entry_timeslice_timeout_128_f(void)
512{
513 return 0x2000000U;
514}
515static inline u32 ram_rl_entry_tsg_length_f(u32 v)
516{
517 return (v & 0x3fU) << 26U;
518}
519#endif
diff --git a/include/nvgpu/hw/gp10b/hw_therm_gp10b.h b/include/nvgpu/hw/gp10b/hw_therm_gp10b.h
new file mode 100644
index 0000000..49fb718
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_therm_gp10b.h
@@ -0,0 +1,415 @@
1/*
2 * Copyright (c) 2014-2017, 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_therm_gp10b_h_
57#define _hw_therm_gp10b_h_
58
59static inline u32 therm_use_a_r(void)
60{
61 return 0x00020798U;
62}
63static inline u32 therm_use_a_ext_therm_0_enable_f(void)
64{
65 return 0x1U;
66}
67static inline u32 therm_use_a_ext_therm_1_enable_f(void)
68{
69 return 0x2U;
70}
71static inline u32 therm_use_a_ext_therm_2_enable_f(void)
72{
73 return 0x4U;
74}
75static inline u32 therm_evt_ext_therm_0_r(void)
76{
77 return 0x00020700U;
78}
79static inline u32 therm_evt_ext_therm_0_slow_factor_f(u32 v)
80{
81 return (v & 0x3fU) << 24U;
82}
83static inline u32 therm_evt_ext_therm_0_slow_factor_init_v(void)
84{
85 return 0x00000001U;
86}
87static inline u32 therm_evt_ext_therm_0_mode_f(u32 v)
88{
89 return (v & 0x3U) << 30U;
90}
91static inline u32 therm_evt_ext_therm_0_mode_normal_v(void)
92{
93 return 0x00000000U;
94}
95static inline u32 therm_evt_ext_therm_0_mode_inverted_v(void)
96{
97 return 0x00000001U;
98}
99static inline u32 therm_evt_ext_therm_0_mode_forced_v(void)
100{
101 return 0x00000002U;
102}
103static inline u32 therm_evt_ext_therm_0_mode_cleared_v(void)
104{
105 return 0x00000003U;
106}
107static inline u32 therm_evt_ext_therm_1_r(void)
108{
109 return 0x00020704U;
110}
111static inline u32 therm_evt_ext_therm_1_slow_factor_f(u32 v)
112{
113 return (v & 0x3fU) << 24U;
114}
115static inline u32 therm_evt_ext_therm_1_slow_factor_init_v(void)
116{
117 return 0x00000002U;
118}
119static inline u32 therm_evt_ext_therm_1_mode_f(u32 v)
120{
121 return (v & 0x3U) << 30U;
122}
123static inline u32 therm_evt_ext_therm_1_mode_normal_v(void)
124{
125 return 0x00000000U;
126}
127static inline u32 therm_evt_ext_therm_1_mode_inverted_v(void)
128{
129 return 0x00000001U;
130}
131static inline u32 therm_evt_ext_therm_1_mode_forced_v(void)
132{
133 return 0x00000002U;
134}
135static inline u32 therm_evt_ext_therm_1_mode_cleared_v(void)
136{
137 return 0x00000003U;
138}
139static inline u32 therm_evt_ext_therm_2_r(void)
140{
141 return 0x00020708U;
142}
143static inline u32 therm_evt_ext_therm_2_slow_factor_f(u32 v)
144{
145 return (v & 0x3fU) << 24U;
146}
147static inline u32 therm_evt_ext_therm_2_slow_factor_init_v(void)
148{
149 return 0x00000003U;
150}
151static inline u32 therm_evt_ext_therm_2_mode_f(u32 v)
152{
153 return (v & 0x3U) << 30U;
154}
155static inline u32 therm_evt_ext_therm_2_mode_normal_v(void)
156{
157 return 0x00000000U;
158}
159static inline u32 therm_evt_ext_therm_2_mode_inverted_v(void)
160{
161 return 0x00000001U;
162}
163static inline u32 therm_evt_ext_therm_2_mode_forced_v(void)
164{
165 return 0x00000002U;
166}
167static inline u32 therm_evt_ext_therm_2_mode_cleared_v(void)
168{
169 return 0x00000003U;
170}
171static inline u32 therm_weight_1_r(void)
172{
173 return 0x00020024U;
174}
175static inline u32 therm_config1_r(void)
176{
177 return 0x00020050U;
178}
179static inline u32 therm_config2_r(void)
180{
181 return 0x00020130U;
182}
183static inline u32 therm_config2_slowdown_factor_extended_f(u32 v)
184{
185 return (v & 0x1U) << 24U;
186}
187static inline u32 therm_config2_grad_enable_f(u32 v)
188{
189 return (v & 0x1U) << 31U;
190}
191static inline u32 therm_gate_ctrl_r(u32 i)
192{
193 return 0x00020200U + i*4U;
194}
195static inline u32 therm_gate_ctrl_eng_clk_m(void)
196{
197 return 0x3U << 0U;
198}
199static inline u32 therm_gate_ctrl_eng_clk_run_f(void)
200{
201 return 0x0U;
202}
203static inline u32 therm_gate_ctrl_eng_clk_auto_f(void)
204{
205 return 0x1U;
206}
207static inline u32 therm_gate_ctrl_eng_clk_stop_f(void)
208{
209 return 0x2U;
210}
211static inline u32 therm_gate_ctrl_blk_clk_m(void)
212{
213 return 0x3U << 2U;
214}
215static inline u32 therm_gate_ctrl_blk_clk_run_f(void)
216{
217 return 0x0U;
218}
219static inline u32 therm_gate_ctrl_blk_clk_auto_f(void)
220{
221 return 0x4U;
222}
223static inline u32 therm_gate_ctrl_eng_pwr_m(void)
224{
225 return 0x3U << 4U;
226}
227static inline u32 therm_gate_ctrl_eng_pwr_auto_f(void)
228{
229 return 0x10U;
230}
231static inline u32 therm_gate_ctrl_eng_pwr_off_v(void)
232{
233 return 0x00000002U;
234}
235static inline u32 therm_gate_ctrl_eng_pwr_off_f(void)
236{
237 return 0x20U;
238}
239static inline u32 therm_gate_ctrl_eng_idle_filt_exp_f(u32 v)
240{
241 return (v & 0x1fU) << 8U;
242}
243static inline u32 therm_gate_ctrl_eng_idle_filt_exp_m(void)
244{
245 return 0x1fU << 8U;
246}
247static inline u32 therm_gate_ctrl_eng_idle_filt_mant_f(u32 v)
248{
249 return (v & 0x7U) << 13U;
250}
251static inline u32 therm_gate_ctrl_eng_idle_filt_mant_m(void)
252{
253 return 0x7U << 13U;
254}
255static inline u32 therm_gate_ctrl_eng_delay_before_f(u32 v)
256{
257 return (v & 0xfU) << 16U;
258}
259static inline u32 therm_gate_ctrl_eng_delay_before_m(void)
260{
261 return 0xfU << 16U;
262}
263static inline u32 therm_gate_ctrl_eng_delay_after_f(u32 v)
264{
265 return (v & 0xfU) << 20U;
266}
267static inline u32 therm_gate_ctrl_eng_delay_after_m(void)
268{
269 return 0xfU << 20U;
270}
271static inline u32 therm_fecs_idle_filter_r(void)
272{
273 return 0x00020288U;
274}
275static inline u32 therm_fecs_idle_filter_value_m(void)
276{
277 return 0xffffffffU << 0U;
278}
279static inline u32 therm_hubmmu_idle_filter_r(void)
280{
281 return 0x0002028cU;
282}
283static inline u32 therm_hubmmu_idle_filter_value_m(void)
284{
285 return 0xffffffffU << 0U;
286}
287static inline u32 therm_clk_slowdown_r(u32 i)
288{
289 return 0x00020160U + i*4U;
290}
291static inline u32 therm_clk_slowdown_idle_factor_f(u32 v)
292{
293 return (v & 0x3fU) << 16U;
294}
295static inline u32 therm_clk_slowdown_idle_factor_m(void)
296{
297 return 0x3fU << 16U;
298}
299static inline u32 therm_clk_slowdown_idle_factor_v(u32 r)
300{
301 return (r >> 16U) & 0x3fU;
302}
303static inline u32 therm_clk_slowdown_idle_factor_disabled_f(void)
304{
305 return 0x0U;
306}
307static inline u32 therm_grad_stepping_table_r(u32 i)
308{
309 return 0x000202c8U + i*4U;
310}
311static inline u32 therm_grad_stepping_table_slowdown_factor0_f(u32 v)
312{
313 return (v & 0x3fU) << 0U;
314}
315static inline u32 therm_grad_stepping_table_slowdown_factor0_m(void)
316{
317 return 0x3fU << 0U;
318}
319static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by1p5_f(void)
320{
321 return 0x1U;
322}
323static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by2_f(void)
324{
325 return 0x2U;
326}
327static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by4_f(void)
328{
329 return 0x6U;
330}
331static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by8_f(void)
332{
333 return 0xeU;
334}
335static inline u32 therm_grad_stepping_table_slowdown_factor1_f(u32 v)
336{
337 return (v & 0x3fU) << 6U;
338}
339static inline u32 therm_grad_stepping_table_slowdown_factor1_m(void)
340{
341 return 0x3fU << 6U;
342}
343static inline u32 therm_grad_stepping_table_slowdown_factor2_f(u32 v)
344{
345 return (v & 0x3fU) << 12U;
346}
347static inline u32 therm_grad_stepping_table_slowdown_factor2_m(void)
348{
349 return 0x3fU << 12U;
350}
351static inline u32 therm_grad_stepping_table_slowdown_factor3_f(u32 v)
352{
353 return (v & 0x3fU) << 18U;
354}
355static inline u32 therm_grad_stepping_table_slowdown_factor3_m(void)
356{
357 return 0x3fU << 18U;
358}
359static inline u32 therm_grad_stepping_table_slowdown_factor4_f(u32 v)
360{
361 return (v & 0x3fU) << 24U;
362}
363static inline u32 therm_grad_stepping_table_slowdown_factor4_m(void)
364{
365 return 0x3fU << 24U;
366}
367static inline u32 therm_grad_stepping0_r(void)
368{
369 return 0x000202c0U;
370}
371static inline u32 therm_grad_stepping0_feature_s(void)
372{
373 return 1U;
374}
375static inline u32 therm_grad_stepping0_feature_f(u32 v)
376{
377 return (v & 0x1U) << 0U;
378}
379static inline u32 therm_grad_stepping0_feature_m(void)
380{
381 return 0x1U << 0U;
382}
383static inline u32 therm_grad_stepping0_feature_v(u32 r)
384{
385 return (r >> 0U) & 0x1U;
386}
387static inline u32 therm_grad_stepping0_feature_enable_f(void)
388{
389 return 0x1U;
390}
391static inline u32 therm_grad_stepping1_r(void)
392{
393 return 0x000202c4U;
394}
395static inline u32 therm_grad_stepping1_pdiv_duration_f(u32 v)
396{
397 return (v & 0x1ffffU) << 0U;
398}
399static inline u32 therm_clk_timing_r(u32 i)
400{
401 return 0x000203c0U + i*4U;
402}
403static inline u32 therm_clk_timing_grad_slowdown_f(u32 v)
404{
405 return (v & 0x1U) << 16U;
406}
407static inline u32 therm_clk_timing_grad_slowdown_m(void)
408{
409 return 0x1U << 16U;
410}
411static inline u32 therm_clk_timing_grad_slowdown_enabled_f(void)
412{
413 return 0x10000U;
414}
415#endif
diff --git a/include/nvgpu/hw/gp10b/hw_timer_gp10b.h b/include/nvgpu/hw/gp10b/hw_timer_gp10b.h
new file mode 100644
index 0000000..54facfc
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_timer_gp10b.h
@@ -0,0 +1,127 @@
1/*
2 * Copyright (c) 2014-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_timer_gp10b_h_
57#define _hw_timer_gp10b_h_
58
59static inline u32 timer_pri_timeout_r(void)
60{
61 return 0x00009080U;
62}
63static inline u32 timer_pri_timeout_period_f(u32 v)
64{
65 return (v & 0xffffffU) << 0U;
66}
67static inline u32 timer_pri_timeout_period_m(void)
68{
69 return 0xffffffU << 0U;
70}
71static inline u32 timer_pri_timeout_period_v(u32 r)
72{
73 return (r >> 0U) & 0xffffffU;
74}
75static inline u32 timer_pri_timeout_en_f(u32 v)
76{
77 return (v & 0x1U) << 31U;
78}
79static inline u32 timer_pri_timeout_en_m(void)
80{
81 return 0x1U << 31U;
82}
83static inline u32 timer_pri_timeout_en_v(u32 r)
84{
85 return (r >> 31U) & 0x1U;
86}
87static inline u32 timer_pri_timeout_en_en_enabled_f(void)
88{
89 return 0x80000000U;
90}
91static inline u32 timer_pri_timeout_en_en_disabled_f(void)
92{
93 return 0x0U;
94}
95static inline u32 timer_pri_timeout_save_0_r(void)
96{
97 return 0x00009084U;
98}
99static inline u32 timer_pri_timeout_save_0_fecs_tgt_v(u32 r)
100{
101 return (r >> 31U) & 0x1U;
102}
103static inline u32 timer_pri_timeout_save_0_addr_v(u32 r)
104{
105 return (r >> 2U) & 0x3fffffU;
106}
107static inline u32 timer_pri_timeout_save_0_write_v(u32 r)
108{
109 return (r >> 1U) & 0x1U;
110}
111static inline u32 timer_pri_timeout_save_1_r(void)
112{
113 return 0x00009088U;
114}
115static inline u32 timer_pri_timeout_fecs_errcode_r(void)
116{
117 return 0x0000908cU;
118}
119static inline u32 timer_time_0_r(void)
120{
121 return 0x00009400U;
122}
123static inline u32 timer_time_1_r(void)
124{
125 return 0x00009410U;
126}
127#endif
diff --git a/include/nvgpu/hw/gp10b/hw_top_gp10b.h b/include/nvgpu/hw/gp10b/hw_top_gp10b.h
new file mode 100644
index 0000000..a7b7c2b
--- /dev/null
+++ b/include/nvgpu/hw/gp10b/hw_top_gp10b.h
@@ -0,0 +1,231 @@
1/*
2 * Copyright (c) 2014-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_top_gp10b_h_
57#define _hw_top_gp10b_h_
58
59static inline u32 top_num_gpcs_r(void)
60{
61 return 0x00022430U;
62}
63static inline u32 top_num_gpcs_value_v(u32 r)
64{
65 return (r >> 0U) & 0x1fU;
66}
67static inline u32 top_tpc_per_gpc_r(void)
68{
69 return 0x00022434U;
70}
71static inline u32 top_tpc_per_gpc_value_v(u32 r)
72{
73 return (r >> 0U) & 0x1fU;
74}
75static inline u32 top_num_fbps_r(void)
76{
77 return 0x00022438U;
78}
79static inline u32 top_num_fbps_value_v(u32 r)
80{
81 return (r >> 0U) & 0x1fU;
82}
83static inline u32 top_ltc_per_fbp_r(void)
84{
85 return 0x00022450U;
86}
87static inline u32 top_ltc_per_fbp_value_v(u32 r)
88{
89 return (r >> 0U) & 0x1fU;
90}
91static inline u32 top_slices_per_ltc_r(void)
92{
93 return 0x0002245cU;
94}
95static inline u32 top_slices_per_ltc_value_v(u32 r)
96{
97 return (r >> 0U) & 0x1fU;
98}
99static inline u32 top_num_ltcs_r(void)
100{
101 return 0x00022454U;
102}
103static inline u32 top_device_info_r(u32 i)
104{
105 return 0x00022700U + i*4U;
106}
107static inline u32 top_device_info__size_1_v(void)
108{
109 return 0x00000040U;
110}
111static inline u32 top_device_info_chain_v(u32 r)
112{
113 return (r >> 31U) & 0x1U;
114}
115static inline u32 top_device_info_chain_enable_v(void)
116{
117 return 0x00000001U;
118}
119static inline u32 top_device_info_engine_enum_v(u32 r)
120{
121 return (r >> 26U) & 0xfU;
122}
123static inline u32 top_device_info_runlist_enum_v(u32 r)
124{
125 return (r >> 21U) & 0xfU;
126}
127static inline u32 top_device_info_intr_enum_v(u32 r)
128{
129 return (r >> 15U) & 0x1fU;
130}
131static inline u32 top_device_info_reset_enum_v(u32 r)
132{
133 return (r >> 9U) & 0x1fU;
134}
135static inline u32 top_device_info_type_enum_v(u32 r)
136{
137 return (r >> 2U) & 0x1fffffffU;
138}
139static inline u32 top_device_info_type_enum_graphics_v(void)
140{
141 return 0x00000000U;
142}
143static inline u32 top_device_info_type_enum_graphics_f(void)
144{
145 return 0x0U;
146}
147static inline u32 top_device_info_type_enum_copy2_v(void)
148{
149 return 0x00000003U;
150}
151static inline u32 top_device_info_type_enum_copy2_f(void)
152{
153 return 0xcU;
154}
155static inline u32 top_device_info_type_enum_lce_v(void)
156{
157 return 0x00000013U;
158}
159static inline u32 top_device_info_type_enum_lce_f(void)
160{
161 return 0x4cU;
162}
163static inline u32 top_device_info_engine_v(u32 r)
164{
165 return (r >> 5U) & 0x1U;
166}
167static inline u32 top_device_info_runlist_v(u32 r)
168{
169 return (r >> 4U) & 0x1U;
170}
171static inline u32 top_device_info_intr_v(u32 r)
172{
173 return (r >> 3U) & 0x1U;
174}
175static inline u32 top_device_info_reset_v(u32 r)
176{
177 return (r >> 2U) & 0x1U;
178}
179static inline u32 top_device_info_entry_v(u32 r)
180{
181 return (r >> 0U) & 0x3U;
182}
183static inline u32 top_device_info_entry_not_valid_v(void)
184{
185 return 0x00000000U;
186}
187static inline u32 top_device_info_entry_enum_v(void)
188{
189 return 0x00000002U;
190}
191static inline u32 top_device_info_entry_engine_type_v(void)
192{
193 return 0x00000003U;
194}
195static inline u32 top_device_info_entry_data_v(void)
196{
197 return 0x00000001U;
198}
199static inline u32 top_device_info_data_type_v(u32 r)
200{
201 return (r >> 30U) & 0x1U;
202}
203static inline u32 top_device_info_data_type_enum2_v(void)
204{
205 return 0x00000000U;
206}
207static inline u32 top_device_info_data_inst_id_v(u32 r)
208{
209 return (r >> 26U) & 0xfU;
210}
211static inline u32 top_device_info_data_pri_base_v(u32 r)
212{
213 return (r >> 12U) & 0xfffU;
214}
215static inline u32 top_device_info_data_pri_base_align_v(void)
216{
217 return 0x0000000cU;
218}
219static inline u32 top_device_info_data_fault_id_enum_v(u32 r)
220{
221 return (r >> 3U) & 0x1fU;
222}
223static inline u32 top_device_info_data_fault_id_v(u32 r)
224{
225 return (r >> 2U) & 0x1U;
226}
227static inline u32 top_device_info_data_fault_id_valid_v(void)
228{
229 return 0x00000001U;
230}
231#endif
diff --git a/include/nvgpu/hw/gv100/hw_bus_gv100.h b/include/nvgpu/hw/gv100/hw_bus_gv100.h
new file mode 100644
index 0000000..7771f1e
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_bus_gv100.h
@@ -0,0 +1,227 @@
1/*
2 * Copyright (c) 2017, 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_bus_gv100_h_
57#define _hw_bus_gv100_h_
58
59static inline u32 bus_sw_scratch_r(u32 i)
60{
61 return 0x00001580U + i*4U;
62}
63static inline u32 bus_bar0_window_r(void)
64{
65 return 0x00001700U;
66}
67static inline u32 bus_bar0_window_base_f(u32 v)
68{
69 return (v & 0xffffffU) << 0U;
70}
71static inline u32 bus_bar0_window_target_vid_mem_f(void)
72{
73 return 0x0U;
74}
75static inline u32 bus_bar0_window_target_sys_mem_coherent_f(void)
76{
77 return 0x2000000U;
78}
79static inline u32 bus_bar0_window_target_sys_mem_noncoherent_f(void)
80{
81 return 0x3000000U;
82}
83static inline u32 bus_bar0_window_target_bar0_window_base_shift_v(void)
84{
85 return 0x00000010U;
86}
87static inline u32 bus_bar1_block_r(void)
88{
89 return 0x00001704U;
90}
91static inline u32 bus_bar1_block_ptr_f(u32 v)
92{
93 return (v & 0xfffffffU) << 0U;
94}
95static inline u32 bus_bar1_block_target_vid_mem_f(void)
96{
97 return 0x0U;
98}
99static inline u32 bus_bar1_block_target_sys_mem_coh_f(void)
100{
101 return 0x20000000U;
102}
103static inline u32 bus_bar1_block_target_sys_mem_ncoh_f(void)
104{
105 return 0x30000000U;
106}
107static inline u32 bus_bar1_block_mode_virtual_f(void)
108{
109 return 0x80000000U;
110}
111static inline u32 bus_bar2_block_r(void)
112{
113 return 0x00001714U;
114}
115static inline u32 bus_bar2_block_ptr_f(u32 v)
116{
117 return (v & 0xfffffffU) << 0U;
118}
119static inline u32 bus_bar2_block_target_vid_mem_f(void)
120{
121 return 0x0U;
122}
123static inline u32 bus_bar2_block_target_sys_mem_coh_f(void)
124{
125 return 0x20000000U;
126}
127static inline u32 bus_bar2_block_target_sys_mem_ncoh_f(void)
128{
129 return 0x30000000U;
130}
131static inline u32 bus_bar2_block_mode_virtual_f(void)
132{
133 return 0x80000000U;
134}
135static inline u32 bus_bar1_block_ptr_shift_v(void)
136{
137 return 0x0000000cU;
138}
139static inline u32 bus_bar2_block_ptr_shift_v(void)
140{
141 return 0x0000000cU;
142}
143static inline u32 bus_bind_status_r(void)
144{
145 return 0x00001710U;
146}
147static inline u32 bus_bind_status_bar1_pending_v(u32 r)
148{
149 return (r >> 0U) & 0x1U;
150}
151static inline u32 bus_bind_status_bar1_pending_empty_f(void)
152{
153 return 0x0U;
154}
155static inline u32 bus_bind_status_bar1_pending_busy_f(void)
156{
157 return 0x1U;
158}
159static inline u32 bus_bind_status_bar1_outstanding_v(u32 r)
160{
161 return (r >> 1U) & 0x1U;
162}
163static inline u32 bus_bind_status_bar1_outstanding_false_f(void)
164{
165 return 0x0U;
166}
167static inline u32 bus_bind_status_bar1_outstanding_true_f(void)
168{
169 return 0x2U;
170}
171static inline u32 bus_bind_status_bar2_pending_v(u32 r)
172{
173 return (r >> 2U) & 0x1U;
174}
175static inline u32 bus_bind_status_bar2_pending_empty_f(void)
176{
177 return 0x0U;
178}
179static inline u32 bus_bind_status_bar2_pending_busy_f(void)
180{
181 return 0x4U;
182}
183static inline u32 bus_bind_status_bar2_outstanding_v(u32 r)
184{
185 return (r >> 3U) & 0x1U;
186}
187static inline u32 bus_bind_status_bar2_outstanding_false_f(void)
188{
189 return 0x0U;
190}
191static inline u32 bus_bind_status_bar2_outstanding_true_f(void)
192{
193 return 0x8U;
194}
195static inline u32 bus_intr_0_r(void)
196{
197 return 0x00001100U;
198}
199static inline u32 bus_intr_0_pri_squash_m(void)
200{
201 return 0x1U << 1U;
202}
203static inline u32 bus_intr_0_pri_fecserr_m(void)
204{
205 return 0x1U << 2U;
206}
207static inline u32 bus_intr_0_pri_timeout_m(void)
208{
209 return 0x1U << 3U;
210}
211static inline u32 bus_intr_en_0_r(void)
212{
213 return 0x00001140U;
214}
215static inline u32 bus_intr_en_0_pri_squash_m(void)
216{
217 return 0x1U << 1U;
218}
219static inline u32 bus_intr_en_0_pri_fecserr_m(void)
220{
221 return 0x1U << 2U;
222}
223static inline u32 bus_intr_en_0_pri_timeout_m(void)
224{
225 return 0x1U << 3U;
226}
227#endif
diff --git a/include/nvgpu/hw/gv100/hw_ccsr_gv100.h b/include/nvgpu/hw/gv100/hw_ccsr_gv100.h
new file mode 100644
index 0000000..b147803
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_ccsr_gv100.h
@@ -0,0 +1,187 @@
1/*
2 * Copyright (c) 2017, 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_ccsr_gv100_h_
57#define _hw_ccsr_gv100_h_
58
59static inline u32 ccsr_channel_inst_r(u32 i)
60{
61 return 0x00800000U + i*8U;
62}
63static inline u32 ccsr_channel_inst__size_1_v(void)
64{
65 return 0x00001000U;
66}
67static inline u32 ccsr_channel_inst_ptr_f(u32 v)
68{
69 return (v & 0xfffffffU) << 0U;
70}
71static inline u32 ccsr_channel_inst_target_vid_mem_f(void)
72{
73 return 0x0U;
74}
75static inline u32 ccsr_channel_inst_target_sys_mem_coh_f(void)
76{
77 return 0x20000000U;
78}
79static inline u32 ccsr_channel_inst_target_sys_mem_ncoh_f(void)
80{
81 return 0x30000000U;
82}
83static inline u32 ccsr_channel_inst_bind_false_f(void)
84{
85 return 0x0U;
86}
87static inline u32 ccsr_channel_inst_bind_true_f(void)
88{
89 return 0x80000000U;
90}
91static inline u32 ccsr_channel_r(u32 i)
92{
93 return 0x00800004U + i*8U;
94}
95static inline u32 ccsr_channel__size_1_v(void)
96{
97 return 0x00001000U;
98}
99static inline u32 ccsr_channel_enable_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 ccsr_channel_enable_set_f(u32 v)
104{
105 return (v & 0x1U) << 10U;
106}
107static inline u32 ccsr_channel_enable_set_true_f(void)
108{
109 return 0x400U;
110}
111static inline u32 ccsr_channel_enable_clr_true_f(void)
112{
113 return 0x800U;
114}
115static inline u32 ccsr_channel_status_v(u32 r)
116{
117 return (r >> 24U) & 0xfU;
118}
119static inline u32 ccsr_channel_status_pending_ctx_reload_v(void)
120{
121 return 0x00000002U;
122}
123static inline u32 ccsr_channel_status_pending_acq_ctx_reload_v(void)
124{
125 return 0x00000004U;
126}
127static inline u32 ccsr_channel_status_on_pbdma_ctx_reload_v(void)
128{
129 return 0x0000000aU;
130}
131static inline u32 ccsr_channel_status_on_pbdma_and_eng_ctx_reload_v(void)
132{
133 return 0x0000000bU;
134}
135static inline u32 ccsr_channel_status_on_eng_ctx_reload_v(void)
136{
137 return 0x0000000cU;
138}
139static inline u32 ccsr_channel_status_on_eng_pending_ctx_reload_v(void)
140{
141 return 0x0000000dU;
142}
143static inline u32 ccsr_channel_status_on_eng_pending_acq_ctx_reload_v(void)
144{
145 return 0x0000000eU;
146}
147static inline u32 ccsr_channel_next_v(u32 r)
148{
149 return (r >> 1U) & 0x1U;
150}
151static inline u32 ccsr_channel_next_true_v(void)
152{
153 return 0x00000001U;
154}
155static inline u32 ccsr_channel_force_ctx_reload_true_f(void)
156{
157 return 0x100U;
158}
159static inline u32 ccsr_channel_pbdma_faulted_f(u32 v)
160{
161 return (v & 0x1U) << 22U;
162}
163static inline u32 ccsr_channel_pbdma_faulted_reset_f(void)
164{
165 return 0x400000U;
166}
167static inline u32 ccsr_channel_eng_faulted_f(u32 v)
168{
169 return (v & 0x1U) << 23U;
170}
171static inline u32 ccsr_channel_eng_faulted_v(u32 r)
172{
173 return (r >> 23U) & 0x1U;
174}
175static inline u32 ccsr_channel_eng_faulted_reset_f(void)
176{
177 return 0x800000U;
178}
179static inline u32 ccsr_channel_eng_faulted_true_v(void)
180{
181 return 0x00000001U;
182}
183static inline u32 ccsr_channel_busy_v(u32 r)
184{
185 return (r >> 28U) & 0x1U;
186}
187#endif
diff --git a/include/nvgpu/hw/gv100/hw_ce_gv100.h b/include/nvgpu/hw/gv100/hw_ce_gv100.h
new file mode 100644
index 0000000..18b5fc6
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_ce_gv100.h
@@ -0,0 +1,107 @@
1/*
2 * Copyright (c) 2017, 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_ce_gv100_h_
57#define _hw_ce_gv100_h_
58
59static inline u32 ce_intr_status_r(u32 i)
60{
61 return 0x00104410U + i*128U;
62}
63static inline u32 ce_intr_status_blockpipe_pending_f(void)
64{
65 return 0x1U;
66}
67static inline u32 ce_intr_status_blockpipe_reset_f(void)
68{
69 return 0x1U;
70}
71static inline u32 ce_intr_status_nonblockpipe_pending_f(void)
72{
73 return 0x2U;
74}
75static inline u32 ce_intr_status_nonblockpipe_reset_f(void)
76{
77 return 0x2U;
78}
79static inline u32 ce_intr_status_launcherr_pending_f(void)
80{
81 return 0x4U;
82}
83static inline u32 ce_intr_status_launcherr_reset_f(void)
84{
85 return 0x4U;
86}
87static inline u32 ce_intr_status_invalid_config_pending_f(void)
88{
89 return 0x8U;
90}
91static inline u32 ce_intr_status_invalid_config_reset_f(void)
92{
93 return 0x8U;
94}
95static inline u32 ce_intr_status_mthd_buffer_fault_pending_f(void)
96{
97 return 0x10U;
98}
99static inline u32 ce_intr_status_mthd_buffer_fault_reset_f(void)
100{
101 return 0x10U;
102}
103static inline u32 ce_pce_map_r(void)
104{
105 return 0x00104028U;
106}
107#endif
diff --git a/include/nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h b/include/nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h
new file mode 100644
index 0000000..b7f3df2
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_ctxsw_prog_gv100.h
@@ -0,0 +1,459 @@
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
diff --git a/include/nvgpu/hw/gv100/hw_falcon_gv100.h b/include/nvgpu/hw/gv100/hw_falcon_gv100.h
new file mode 100644
index 0000000..3492d68
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_falcon_gv100.h
@@ -0,0 +1,603 @@
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_falcon_gv100_h_
57#define _hw_falcon_gv100_h_
58
59static inline u32 falcon_falcon_irqsset_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 falcon_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 falcon_falcon_irqsclr_r(void)
68{
69 return 0x00000004U;
70}
71static inline u32 falcon_falcon_irqstat_r(void)
72{
73 return 0x00000008U;
74}
75static inline u32 falcon_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 falcon_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 falcon_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 falcon_falcon_irqmode_r(void)
88{
89 return 0x0000000cU;
90}
91static inline u32 falcon_falcon_irqmset_r(void)
92{
93 return 0x00000010U;
94}
95static inline u32 falcon_falcon_irqmset_gptmr_f(u32 v)
96{
97 return (v & 0x1U) << 0U;
98}
99static inline u32 falcon_falcon_irqmset_wdtmr_f(u32 v)
100{
101 return (v & 0x1U) << 1U;
102}
103static inline u32 falcon_falcon_irqmset_mthd_f(u32 v)
104{
105 return (v & 0x1U) << 2U;
106}
107static inline u32 falcon_falcon_irqmset_ctxsw_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 falcon_falcon_irqmset_halt_f(u32 v)
112{
113 return (v & 0x1U) << 4U;
114}
115static inline u32 falcon_falcon_irqmset_exterr_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 falcon_falcon_irqmset_swgen0_f(u32 v)
120{
121 return (v & 0x1U) << 6U;
122}
123static inline u32 falcon_falcon_irqmset_swgen1_f(u32 v)
124{
125 return (v & 0x1U) << 7U;
126}
127static inline u32 falcon_falcon_irqmclr_r(void)
128{
129 return 0x00000014U;
130}
131static inline u32 falcon_falcon_irqmclr_gptmr_f(u32 v)
132{
133 return (v & 0x1U) << 0U;
134}
135static inline u32 falcon_falcon_irqmclr_wdtmr_f(u32 v)
136{
137 return (v & 0x1U) << 1U;
138}
139static inline u32 falcon_falcon_irqmclr_mthd_f(u32 v)
140{
141 return (v & 0x1U) << 2U;
142}
143static inline u32 falcon_falcon_irqmclr_ctxsw_f(u32 v)
144{
145 return (v & 0x1U) << 3U;
146}
147static inline u32 falcon_falcon_irqmclr_halt_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 falcon_falcon_irqmclr_exterr_f(u32 v)
152{
153 return (v & 0x1U) << 5U;
154}
155static inline u32 falcon_falcon_irqmclr_swgen0_f(u32 v)
156{
157 return (v & 0x1U) << 6U;
158}
159static inline u32 falcon_falcon_irqmclr_swgen1_f(u32 v)
160{
161 return (v & 0x1U) << 7U;
162}
163static inline u32 falcon_falcon_irqmclr_ext_f(u32 v)
164{
165 return (v & 0xffU) << 8U;
166}
167static inline u32 falcon_falcon_irqmask_r(void)
168{
169 return 0x00000018U;
170}
171static inline u32 falcon_falcon_irqdest_r(void)
172{
173 return 0x0000001cU;
174}
175static inline u32 falcon_falcon_irqdest_host_gptmr_f(u32 v)
176{
177 return (v & 0x1U) << 0U;
178}
179static inline u32 falcon_falcon_irqdest_host_wdtmr_f(u32 v)
180{
181 return (v & 0x1U) << 1U;
182}
183static inline u32 falcon_falcon_irqdest_host_mthd_f(u32 v)
184{
185 return (v & 0x1U) << 2U;
186}
187static inline u32 falcon_falcon_irqdest_host_ctxsw_f(u32 v)
188{
189 return (v & 0x1U) << 3U;
190}
191static inline u32 falcon_falcon_irqdest_host_halt_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 falcon_falcon_irqdest_host_exterr_f(u32 v)
196{
197 return (v & 0x1U) << 5U;
198}
199static inline u32 falcon_falcon_irqdest_host_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 falcon_falcon_irqdest_host_swgen1_f(u32 v)
204{
205 return (v & 0x1U) << 7U;
206}
207static inline u32 falcon_falcon_irqdest_host_ext_f(u32 v)
208{
209 return (v & 0xffU) << 8U;
210}
211static inline u32 falcon_falcon_irqdest_target_gptmr_f(u32 v)
212{
213 return (v & 0x1U) << 16U;
214}
215static inline u32 falcon_falcon_irqdest_target_wdtmr_f(u32 v)
216{
217 return (v & 0x1U) << 17U;
218}
219static inline u32 falcon_falcon_irqdest_target_mthd_f(u32 v)
220{
221 return (v & 0x1U) << 18U;
222}
223static inline u32 falcon_falcon_irqdest_target_ctxsw_f(u32 v)
224{
225 return (v & 0x1U) << 19U;
226}
227static inline u32 falcon_falcon_irqdest_target_halt_f(u32 v)
228{
229 return (v & 0x1U) << 20U;
230}
231static inline u32 falcon_falcon_irqdest_target_exterr_f(u32 v)
232{
233 return (v & 0x1U) << 21U;
234}
235static inline u32 falcon_falcon_irqdest_target_swgen0_f(u32 v)
236{
237 return (v & 0x1U) << 22U;
238}
239static inline u32 falcon_falcon_irqdest_target_swgen1_f(u32 v)
240{
241 return (v & 0x1U) << 23U;
242}
243static inline u32 falcon_falcon_irqdest_target_ext_f(u32 v)
244{
245 return (v & 0xffU) << 24U;
246}
247static inline u32 falcon_falcon_curctx_r(void)
248{
249 return 0x00000050U;
250}
251static inline u32 falcon_falcon_nxtctx_r(void)
252{
253 return 0x00000054U;
254}
255static inline u32 falcon_falcon_mailbox0_r(void)
256{
257 return 0x00000040U;
258}
259static inline u32 falcon_falcon_mailbox1_r(void)
260{
261 return 0x00000044U;
262}
263static inline u32 falcon_falcon_itfen_r(void)
264{
265 return 0x00000048U;
266}
267static inline u32 falcon_falcon_itfen_ctxen_enable_f(void)
268{
269 return 0x1U;
270}
271static inline u32 falcon_falcon_idlestate_r(void)
272{
273 return 0x0000004cU;
274}
275static inline u32 falcon_falcon_idlestate_falcon_busy_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 falcon_falcon_idlestate_ext_busy_v(u32 r)
280{
281 return (r >> 1U) & 0x7fffU;
282}
283static inline u32 falcon_falcon_os_r(void)
284{
285 return 0x00000080U;
286}
287static inline u32 falcon_falcon_engctl_r(void)
288{
289 return 0x000000a4U;
290}
291static inline u32 falcon_falcon_cpuctl_r(void)
292{
293 return 0x00000100U;
294}
295static inline u32 falcon_falcon_cpuctl_startcpu_f(u32 v)
296{
297 return (v & 0x1U) << 1U;
298}
299static inline u32 falcon_falcon_cpuctl_sreset_f(u32 v)
300{
301 return (v & 0x1U) << 2U;
302}
303static inline u32 falcon_falcon_cpuctl_hreset_f(u32 v)
304{
305 return (v & 0x1U) << 3U;
306}
307static inline u32 falcon_falcon_cpuctl_halt_intr_f(u32 v)
308{
309 return (v & 0x1U) << 4U;
310}
311static inline u32 falcon_falcon_cpuctl_halt_intr_m(void)
312{
313 return 0x1U << 4U;
314}
315static inline u32 falcon_falcon_cpuctl_halt_intr_v(u32 r)
316{
317 return (r >> 4U) & 0x1U;
318}
319static inline u32 falcon_falcon_cpuctl_stopped_m(void)
320{
321 return 0x1U << 5U;
322}
323static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
324{
325 return (v & 0x1U) << 6U;
326}
327static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_m(void)
328{
329 return 0x1U << 6U;
330}
331static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
332{
333 return (r >> 6U) & 0x1U;
334}
335static inline u32 falcon_falcon_cpuctl_alias_r(void)
336{
337 return 0x00000130U;
338}
339static inline u32 falcon_falcon_cpuctl_alias_startcpu_f(u32 v)
340{
341 return (v & 0x1U) << 1U;
342}
343static inline u32 falcon_falcon_imemc_r(u32 i)
344{
345 return 0x00000180U + i*16U;
346}
347static inline u32 falcon_falcon_imemc_offs_f(u32 v)
348{
349 return (v & 0x3fU) << 2U;
350}
351static inline u32 falcon_falcon_imemc_blk_f(u32 v)
352{
353 return (v & 0xffU) << 8U;
354}
355static inline u32 falcon_falcon_imemc_aincw_f(u32 v)
356{
357 return (v & 0x1U) << 24U;
358}
359static inline u32 falcon_falcon_imemc_secure_f(u32 v)
360{
361 return (v & 0x1U) << 28U;
362}
363static inline u32 falcon_falcon_imemd_r(u32 i)
364{
365 return 0x00000184U + i*16U;
366}
367static inline u32 falcon_falcon_imemt_r(u32 i)
368{
369 return 0x00000188U + i*16U;
370}
371static inline u32 falcon_falcon_sctl_r(void)
372{
373 return 0x00000240U;
374}
375static inline u32 falcon_falcon_mmu_phys_sec_r(void)
376{
377 return 0x00100ce4U;
378}
379static inline u32 falcon_falcon_bootvec_r(void)
380{
381 return 0x00000104U;
382}
383static inline u32 falcon_falcon_bootvec_vec_f(u32 v)
384{
385 return (v & 0xffffffffU) << 0U;
386}
387static inline u32 falcon_falcon_dmactl_r(void)
388{
389 return 0x0000010cU;
390}
391static inline u32 falcon_falcon_dmactl_dmem_scrubbing_m(void)
392{
393 return 0x1U << 1U;
394}
395static inline u32 falcon_falcon_dmactl_imem_scrubbing_m(void)
396{
397 return 0x1U << 2U;
398}
399static inline u32 falcon_falcon_dmactl_require_ctx_f(u32 v)
400{
401 return (v & 0x1U) << 0U;
402}
403static inline u32 falcon_falcon_hwcfg_r(void)
404{
405 return 0x00000108U;
406}
407static inline u32 falcon_falcon_hwcfg_imem_size_v(u32 r)
408{
409 return (r >> 0U) & 0x1ffU;
410}
411static inline u32 falcon_falcon_hwcfg_dmem_size_v(u32 r)
412{
413 return (r >> 9U) & 0x1ffU;
414}
415static inline u32 falcon_falcon_dmatrfbase_r(void)
416{
417 return 0x00000110U;
418}
419static inline u32 falcon_falcon_dmatrfbase1_r(void)
420{
421 return 0x00000128U;
422}
423static inline u32 falcon_falcon_dmatrfmoffs_r(void)
424{
425 return 0x00000114U;
426}
427static inline u32 falcon_falcon_dmatrfcmd_r(void)
428{
429 return 0x00000118U;
430}
431static inline u32 falcon_falcon_dmatrfcmd_imem_f(u32 v)
432{
433 return (v & 0x1U) << 4U;
434}
435static inline u32 falcon_falcon_dmatrfcmd_write_f(u32 v)
436{
437 return (v & 0x1U) << 5U;
438}
439static inline u32 falcon_falcon_dmatrfcmd_size_f(u32 v)
440{
441 return (v & 0x7U) << 8U;
442}
443static inline u32 falcon_falcon_dmatrfcmd_ctxdma_f(u32 v)
444{
445 return (v & 0x7U) << 12U;
446}
447static inline u32 falcon_falcon_dmatrffboffs_r(void)
448{
449 return 0x0000011cU;
450}
451static inline u32 falcon_falcon_imctl_debug_r(void)
452{
453 return 0x0000015cU;
454}
455static inline u32 falcon_falcon_imctl_debug_addr_blk_f(u32 v)
456{
457 return (v & 0xffffffU) << 0U;
458}
459static inline u32 falcon_falcon_imctl_debug_cmd_f(u32 v)
460{
461 return (v & 0x7U) << 24U;
462}
463static inline u32 falcon_falcon_imstat_r(void)
464{
465 return 0x00000144U;
466}
467static inline u32 falcon_falcon_traceidx_r(void)
468{
469 return 0x00000148U;
470}
471static inline u32 falcon_falcon_traceidx_maxidx_v(u32 r)
472{
473 return (r >> 16U) & 0xffU;
474}
475static inline u32 falcon_falcon_traceidx_idx_f(u32 v)
476{
477 return (v & 0xffU) << 0U;
478}
479static inline u32 falcon_falcon_tracepc_r(void)
480{
481 return 0x0000014cU;
482}
483static inline u32 falcon_falcon_tracepc_pc_v(u32 r)
484{
485 return (r >> 0U) & 0xffffffU;
486}
487static inline u32 falcon_falcon_exterraddr_r(void)
488{
489 return 0x00000168U;
490}
491static inline u32 falcon_falcon_exterrstat_r(void)
492{
493 return 0x0000016cU;
494}
495static inline u32 falcon_falcon_exterrstat_valid_m(void)
496{
497 return 0x1U << 31U;
498}
499static inline u32 falcon_falcon_exterrstat_valid_v(u32 r)
500{
501 return (r >> 31U) & 0x1U;
502}
503static inline u32 falcon_falcon_exterrstat_valid_true_v(void)
504{
505 return 0x00000001U;
506}
507static inline u32 falcon_falcon_icd_cmd_r(void)
508{
509 return 0x00000200U;
510}
511static inline u32 falcon_falcon_icd_cmd_opc_s(void)
512{
513 return 4U;
514}
515static inline u32 falcon_falcon_icd_cmd_opc_f(u32 v)
516{
517 return (v & 0xfU) << 0U;
518}
519static inline u32 falcon_falcon_icd_cmd_opc_m(void)
520{
521 return 0xfU << 0U;
522}
523static inline u32 falcon_falcon_icd_cmd_opc_v(u32 r)
524{
525 return (r >> 0U) & 0xfU;
526}
527static inline u32 falcon_falcon_icd_cmd_opc_rreg_f(void)
528{
529 return 0x8U;
530}
531static inline u32 falcon_falcon_icd_cmd_opc_rstat_f(void)
532{
533 return 0xeU;
534}
535static inline u32 falcon_falcon_icd_cmd_idx_f(u32 v)
536{
537 return (v & 0x1fU) << 8U;
538}
539static inline u32 falcon_falcon_icd_rdata_r(void)
540{
541 return 0x0000020cU;
542}
543static inline u32 falcon_falcon_dmemc_r(u32 i)
544{
545 return 0x000001c0U + i*8U;
546}
547static inline u32 falcon_falcon_dmemc_offs_f(u32 v)
548{
549 return (v & 0x3fU) << 2U;
550}
551static inline u32 falcon_falcon_dmemc_offs_m(void)
552{
553 return 0x3fU << 2U;
554}
555static inline u32 falcon_falcon_dmemc_blk_f(u32 v)
556{
557 return (v & 0xffU) << 8U;
558}
559static inline u32 falcon_falcon_dmemc_blk_m(void)
560{
561 return 0xffU << 8U;
562}
563static inline u32 falcon_falcon_dmemc_aincw_f(u32 v)
564{
565 return (v & 0x1U) << 24U;
566}
567static inline u32 falcon_falcon_dmemc_aincr_f(u32 v)
568{
569 return (v & 0x1U) << 25U;
570}
571static inline u32 falcon_falcon_dmemd_r(u32 i)
572{
573 return 0x000001c4U + i*8U;
574}
575static inline u32 falcon_falcon_debug1_r(void)
576{
577 return 0x00000090U;
578}
579static inline u32 falcon_falcon_debug1_ctxsw_mode_s(void)
580{
581 return 1U;
582}
583static inline u32 falcon_falcon_debug1_ctxsw_mode_f(u32 v)
584{
585 return (v & 0x1U) << 16U;
586}
587static inline u32 falcon_falcon_debug1_ctxsw_mode_m(void)
588{
589 return 0x1U << 16U;
590}
591static inline u32 falcon_falcon_debug1_ctxsw_mode_v(u32 r)
592{
593 return (r >> 16U) & 0x1U;
594}
595static inline u32 falcon_falcon_debug1_ctxsw_mode_init_f(void)
596{
597 return 0x0U;
598}
599static inline u32 falcon_falcon_debuginfo_r(void)
600{
601 return 0x00000094U;
602}
603#endif
diff --git a/include/nvgpu/hw/gv100/hw_fb_gv100.h b/include/nvgpu/hw/gv100/hw_fb_gv100.h
new file mode 100644
index 0000000..ac248b5
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_fb_gv100.h
@@ -0,0 +1,1923 @@
1/*
2 * Copyright (c) 2017-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_fb_gv100_h_
57#define _hw_fb_gv100_h_
58
59static inline u32 fb_fbhub_num_active_ltcs_r(void)
60{
61 return 0x00100800U;
62}
63static inline u32 fb_fbhub_num_active_ltcs_use_nvlink_f(u32 v)
64{
65 return (v & 0xffU) << 16U;
66}
67static inline u32 fb_fbhub_num_active_ltcs_use_nvlink_m(void)
68{
69 return 0xffU << 16U;
70}
71static inline u32 fb_fbhub_num_active_ltcs_use_nvlink_v(u32 r)
72{
73 return (r >> 16U) & 0xffU;
74}
75static inline u32 fb_fbhub_num_active_ltcs_use_nvlink_peer_f(u32 v, u32 i)
76{
77 return (v & 0x1U) << (16U + i*1U);
78}
79static inline u32 fb_fbhub_num_active_ltcs_use_nvlink_peer_m(u32 i)
80{
81 return 0x1U << (16U + i*1U);
82}
83static inline u32 fb_fbhub_num_active_ltcs_use_nvlink_peer_v(u32 r, u32 i)
84{
85 return (r >> (16U + i*1U)) & 0x1U;
86}
87static inline u32 fb_fbhub_num_active_ltcs_use_nvlink_peer___size_1_v(void)
88{
89 return 0x00000008U;
90}
91static inline u32 fb_fbhub_num_active_ltcs_use_nvlink_peer___size_1_f(u32 i)
92{
93 return 0x0U << (32U + i*1U);
94}
95static inline u32 fb_fbhub_num_active_ltcs_use_nvlink_peer_enabled_v(void)
96{
97 return 0x00000001U;
98}
99static inline u32 fb_fbhub_num_active_ltcs_use_nvlink_peer_enabled_f(u32 i)
100{
101 return 0x1U << (32U + i*1U);
102}
103static inline u32 fb_fbhub_num_active_ltcs_use_nvlink_peer_disabled_v(void)
104{
105 return 0x00000000U;
106}
107static inline u32 fb_fbhub_num_active_ltcs_use_nvlink_peer_disabled_f(u32 i)
108{
109 return 0x0U << (32U + i*1U);
110}
111static inline u32 fb_fbhub_num_active_ltcs_hub_sys_atomic_mode_f(u32 v)
112{
113 return (v & 0x1U) << 25U;
114}
115static inline u32 fb_fbhub_num_active_ltcs_hub_sys_atomic_mode_m(void)
116{
117 return 0x1U << 25U;
118}
119static inline u32 fb_fbhub_num_active_ltcs_hub_sys_atomic_mode_v(u32 r)
120{
121 return (r >> 25U) & 0x1U;
122}
123static inline u32 fb_fbhub_num_active_ltcs_hub_sys_atomic_mode_use_read_v(void)
124{
125 return 0x00000000U;
126}
127static inline u32 fb_fbhub_num_active_ltcs_hub_sys_atomic_mode_use_read_f(void)
128{
129 return 0x0U;
130}
131static inline u32 fb_fbhub_num_active_ltcs_hub_sys_atomic_mode_use_rmw_v(void)
132{
133 return 0x00000001U;
134}
135static inline u32 fb_fbhub_num_active_ltcs_hub_sys_atomic_mode_use_rmw_f(void)
136{
137 return 0x2000000U;
138}
139static inline u32 fb_mmu_ctrl_r(void)
140{
141 return 0x00100c80U;
142}
143static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r)
144{
145 return (r >> 15U) & 0x1U;
146}
147static inline u32 fb_mmu_ctrl_pri_fifo_empty_false_f(void)
148{
149 return 0x0U;
150}
151static inline u32 fb_mmu_ctrl_pri_fifo_space_v(u32 r)
152{
153 return (r >> 16U) & 0xffU;
154}
155static inline u32 fb_mmu_ctrl_atomic_capability_mode_f(u32 v)
156{
157 return (v & 0x3U) << 24U;
158}
159static inline u32 fb_mmu_ctrl_atomic_capability_mode_m(void)
160{
161 return 0x3U << 24U;
162}
163static inline u32 fb_mmu_ctrl_atomic_capability_mode_v(u32 r)
164{
165 return (r >> 24U) & 0x3U;
166}
167static inline u32 fb_mmu_ctrl_atomic_capability_mode_l2_v(void)
168{
169 return 0x00000000U;
170}
171static inline u32 fb_mmu_ctrl_atomic_capability_mode_l2_f(void)
172{
173 return 0x0U;
174}
175static inline u32 fb_mmu_ctrl_atomic_capability_mode_atomic_v(void)
176{
177 return 0x00000001U;
178}
179static inline u32 fb_mmu_ctrl_atomic_capability_mode_atomic_f(void)
180{
181 return 0x1000000U;
182}
183static inline u32 fb_mmu_ctrl_atomic_capability_mode_rmw_v(void)
184{
185 return 0x00000002U;
186}
187static inline u32 fb_mmu_ctrl_atomic_capability_mode_rmw_f(void)
188{
189 return 0x2000000U;
190}
191static inline u32 fb_mmu_ctrl_atomic_capability_mode_power_v(void)
192{
193 return 0x00000003U;
194}
195static inline u32 fb_mmu_ctrl_atomic_capability_mode_power_f(void)
196{
197 return 0x3000000U;
198}
199static inline u32 fb_hsmmu_pri_mmu_ctrl_r(void)
200{
201 return 0x001fac80U;
202}
203static inline u32 fb_hsmmu_pri_mmu_ctrl_atomic_capability_mode_f(u32 v)
204{
205 return (v & 0x3U) << 24U;
206}
207static inline u32 fb_hsmmu_pri_mmu_ctrl_atomic_capability_mode_m(void)
208{
209 return 0x3U << 24U;
210}
211static inline u32 fb_hsmmu_pri_mmu_ctrl_atomic_capability_mode_v(u32 r)
212{
213 return (r >> 24U) & 0x3U;
214}
215static inline u32 fb_hsmmu_pri_mmu_ctrl_atomic_capability_mode_l2_v(void)
216{
217 return 0x00000000U;
218}
219static inline u32 fb_hsmmu_pri_mmu_ctrl_atomic_capability_mode_l2_f(void)
220{
221 return 0x0U;
222}
223static inline u32 fb_hsmmu_pri_mmu_ctrl_atomic_capability_mode_atomic_v(void)
224{
225 return 0x00000001U;
226}
227static inline u32 fb_hsmmu_pri_mmu_ctrl_atomic_capability_mode_atomic_f(void)
228{
229 return 0x1000000U;
230}
231static inline u32 fb_hsmmu_pri_mmu_ctrl_atomic_capability_mode_rmw_v(void)
232{
233 return 0x00000002U;
234}
235static inline u32 fb_hsmmu_pri_mmu_ctrl_atomic_capability_mode_rmw_f(void)
236{
237 return 0x2000000U;
238}
239static inline u32 fb_hsmmu_pri_mmu_ctrl_atomic_capability_mode_power_v(void)
240{
241 return 0x00000003U;
242}
243static inline u32 fb_hsmmu_pri_mmu_ctrl_atomic_capability_mode_power_f(void)
244{
245 return 0x3000000U;
246}
247static inline u32 fb_hsmmu_pri_mmu_debug_ctrl_r(void)
248{
249 return 0x001facc4U;
250}
251static inline u32 fb_hsmmu_pri_mmu_debug_ctrl_debug_v(u32 r)
252{
253 return (r >> 16U) & 0x1U;
254}
255static inline u32 fb_hsmmu_pri_mmu_debug_ctrl_debug_m(void)
256{
257 return 0x1U << 16U;
258}
259static inline u32 fb_hsmmu_pri_mmu_debug_ctrl_debug_enabled_f(void)
260{
261 return 0x10000U;
262}
263static inline u32 fb_hsmmu_pri_mmu_debug_ctrl_debug_disabled_f(void)
264{
265 return 0x0U;
266}
267static inline u32 fb_hshub_num_active_ltcs_r(void)
268{
269 return 0x001fbc20U;
270}
271static inline u32 fb_hshub_num_active_ltcs_use_nvlink_f(u32 v)
272{
273 return (v & 0xffU) << 16U;
274}
275static inline u32 fb_hshub_num_active_ltcs_use_nvlink_m(void)
276{
277 return 0xffU << 16U;
278}
279static inline u32 fb_hshub_num_active_ltcs_use_nvlink_v(u32 r)
280{
281 return (r >> 16U) & 0xffU;
282}
283static inline u32 fb_hshub_num_active_ltcs_use_nvlink_peer_f(u32 v, u32 i)
284{
285 return (v & 0x1U) << (16U + i*1U);
286}
287static inline u32 fb_hshub_num_active_ltcs_use_nvlink_peer_m(u32 i)
288{
289 return 0x1U << (16U + i*1U);
290}
291static inline u32 fb_hshub_num_active_ltcs_use_nvlink_peer_v(u32 r, u32 i)
292{
293 return (r >> (16U + i*1U)) & 0x1U;
294}
295static inline u32 fb_hshub_num_active_ltcs_use_nvlink_peer___size_1_v(void)
296{
297 return 0x00000008U;
298}
299static inline u32 fb_hshub_num_active_ltcs_use_nvlink_peer___size_1_f(u32 i)
300{
301 return 0x0U << (32U + i*1U);
302}
303static inline u32 fb_hshub_num_active_ltcs_use_nvlink_peer_enabled_v(void)
304{
305 return 0x00000001U;
306}
307static inline u32 fb_hshub_num_active_ltcs_use_nvlink_peer_enabled_f(u32 i)
308{
309 return 0x1U << (32U + i*1U);
310}
311static inline u32 fb_hshub_num_active_ltcs_use_nvlink_peer_disabled_v(void)
312{
313 return 0x00000000U;
314}
315static inline u32 fb_hshub_num_active_ltcs_use_nvlink_peer_disabled_f(u32 i)
316{
317 return 0x0U << (32U + i*1U);
318}
319static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_f(u32 v)
320{
321 return (v & 0x1U) << 25U;
322}
323static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_m(void)
324{
325 return 0x1U << 25U;
326}
327static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_v(u32 r)
328{
329 return (r >> 25U) & 0x1U;
330}
331static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_use_read_v(void)
332{
333 return 0x00000000U;
334}
335static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_use_read_f(void)
336{
337 return 0x0U;
338}
339static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_use_rmw_v(void)
340{
341 return 0x00000001U;
342}
343static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_use_rmw_f(void)
344{
345 return 0x2000000U;
346}
347static inline u32 fb_priv_mmu_phy_secure_r(void)
348{
349 return 0x00100ce4U;
350}
351static inline u32 fb_mmu_invalidate_pdb_r(void)
352{
353 return 0x00100cb8U;
354}
355static inline u32 fb_mmu_invalidate_pdb_aperture_vid_mem_f(void)
356{
357 return 0x0U;
358}
359static inline u32 fb_mmu_invalidate_pdb_aperture_sys_mem_f(void)
360{
361 return 0x2U;
362}
363static inline u32 fb_mmu_invalidate_pdb_addr_f(u32 v)
364{
365 return (v & 0xfffffffU) << 4U;
366}
367static inline u32 fb_mmu_invalidate_r(void)
368{
369 return 0x00100cbcU;
370}
371static inline u32 fb_mmu_invalidate_all_va_true_f(void)
372{
373 return 0x1U;
374}
375static inline u32 fb_mmu_invalidate_all_pdb_true_f(void)
376{
377 return 0x2U;
378}
379static inline u32 fb_mmu_invalidate_hubtlb_only_s(void)
380{
381 return 1U;
382}
383static inline u32 fb_mmu_invalidate_hubtlb_only_f(u32 v)
384{
385 return (v & 0x1U) << 2U;
386}
387static inline u32 fb_mmu_invalidate_hubtlb_only_m(void)
388{
389 return 0x1U << 2U;
390}
391static inline u32 fb_mmu_invalidate_hubtlb_only_v(u32 r)
392{
393 return (r >> 2U) & 0x1U;
394}
395static inline u32 fb_mmu_invalidate_hubtlb_only_true_f(void)
396{
397 return 0x4U;
398}
399static inline u32 fb_mmu_invalidate_replay_s(void)
400{
401 return 3U;
402}
403static inline u32 fb_mmu_invalidate_replay_f(u32 v)
404{
405 return (v & 0x7U) << 3U;
406}
407static inline u32 fb_mmu_invalidate_replay_m(void)
408{
409 return 0x7U << 3U;
410}
411static inline u32 fb_mmu_invalidate_replay_v(u32 r)
412{
413 return (r >> 3U) & 0x7U;
414}
415static inline u32 fb_mmu_invalidate_replay_none_f(void)
416{
417 return 0x0U;
418}
419static inline u32 fb_mmu_invalidate_replay_start_f(void)
420{
421 return 0x8U;
422}
423static inline u32 fb_mmu_invalidate_replay_start_ack_all_f(void)
424{
425 return 0x10U;
426}
427static inline u32 fb_mmu_invalidate_replay_cancel_global_f(void)
428{
429 return 0x20U;
430}
431static inline u32 fb_mmu_invalidate_sys_membar_s(void)
432{
433 return 1U;
434}
435static inline u32 fb_mmu_invalidate_sys_membar_f(u32 v)
436{
437 return (v & 0x1U) << 6U;
438}
439static inline u32 fb_mmu_invalidate_sys_membar_m(void)
440{
441 return 0x1U << 6U;
442}
443static inline u32 fb_mmu_invalidate_sys_membar_v(u32 r)
444{
445 return (r >> 6U) & 0x1U;
446}
447static inline u32 fb_mmu_invalidate_sys_membar_true_f(void)
448{
449 return 0x40U;
450}
451static inline u32 fb_mmu_invalidate_ack_s(void)
452{
453 return 2U;
454}
455static inline u32 fb_mmu_invalidate_ack_f(u32 v)
456{
457 return (v & 0x3U) << 7U;
458}
459static inline u32 fb_mmu_invalidate_ack_m(void)
460{
461 return 0x3U << 7U;
462}
463static inline u32 fb_mmu_invalidate_ack_v(u32 r)
464{
465 return (r >> 7U) & 0x3U;
466}
467static inline u32 fb_mmu_invalidate_ack_ack_none_required_f(void)
468{
469 return 0x0U;
470}
471static inline u32 fb_mmu_invalidate_ack_ack_intranode_f(void)
472{
473 return 0x100U;
474}
475static inline u32 fb_mmu_invalidate_ack_ack_globally_f(void)
476{
477 return 0x80U;
478}
479static inline u32 fb_mmu_invalidate_cancel_client_id_s(void)
480{
481 return 6U;
482}
483static inline u32 fb_mmu_invalidate_cancel_client_id_f(u32 v)
484{
485 return (v & 0x3fU) << 9U;
486}
487static inline u32 fb_mmu_invalidate_cancel_client_id_m(void)
488{
489 return 0x3fU << 9U;
490}
491static inline u32 fb_mmu_invalidate_cancel_client_id_v(u32 r)
492{
493 return (r >> 9U) & 0x3fU;
494}
495static inline u32 fb_mmu_invalidate_cancel_gpc_id_s(void)
496{
497 return 5U;
498}
499static inline u32 fb_mmu_invalidate_cancel_gpc_id_f(u32 v)
500{
501 return (v & 0x1fU) << 15U;
502}
503static inline u32 fb_mmu_invalidate_cancel_gpc_id_m(void)
504{
505 return 0x1fU << 15U;
506}
507static inline u32 fb_mmu_invalidate_cancel_gpc_id_v(u32 r)
508{
509 return (r >> 15U) & 0x1fU;
510}
511static inline u32 fb_mmu_invalidate_cancel_client_type_s(void)
512{
513 return 1U;
514}
515static inline u32 fb_mmu_invalidate_cancel_client_type_f(u32 v)
516{
517 return (v & 0x1U) << 20U;
518}
519static inline u32 fb_mmu_invalidate_cancel_client_type_m(void)
520{
521 return 0x1U << 20U;
522}
523static inline u32 fb_mmu_invalidate_cancel_client_type_v(u32 r)
524{
525 return (r >> 20U) & 0x1U;
526}
527static inline u32 fb_mmu_invalidate_cancel_client_type_gpc_f(void)
528{
529 return 0x0U;
530}
531static inline u32 fb_mmu_invalidate_cancel_client_type_hub_f(void)
532{
533 return 0x100000U;
534}
535static inline u32 fb_mmu_invalidate_cancel_cache_level_s(void)
536{
537 return 3U;
538}
539static inline u32 fb_mmu_invalidate_cancel_cache_level_f(u32 v)
540{
541 return (v & 0x7U) << 24U;
542}
543static inline u32 fb_mmu_invalidate_cancel_cache_level_m(void)
544{
545 return 0x7U << 24U;
546}
547static inline u32 fb_mmu_invalidate_cancel_cache_level_v(u32 r)
548{
549 return (r >> 24U) & 0x7U;
550}
551static inline u32 fb_mmu_invalidate_cancel_cache_level_all_f(void)
552{
553 return 0x0U;
554}
555static inline u32 fb_mmu_invalidate_cancel_cache_level_pte_only_f(void)
556{
557 return 0x1000000U;
558}
559static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde0_f(void)
560{
561 return 0x2000000U;
562}
563static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde1_f(void)
564{
565 return 0x3000000U;
566}
567static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde2_f(void)
568{
569 return 0x4000000U;
570}
571static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde3_f(void)
572{
573 return 0x5000000U;
574}
575static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde4_f(void)
576{
577 return 0x6000000U;
578}
579static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde5_f(void)
580{
581 return 0x7000000U;
582}
583static inline u32 fb_mmu_invalidate_trigger_s(void)
584{
585 return 1U;
586}
587static inline u32 fb_mmu_invalidate_trigger_f(u32 v)
588{
589 return (v & 0x1U) << 31U;
590}
591static inline u32 fb_mmu_invalidate_trigger_m(void)
592{
593 return 0x1U << 31U;
594}
595static inline u32 fb_mmu_invalidate_trigger_v(u32 r)
596{
597 return (r >> 31U) & 0x1U;
598}
599static inline u32 fb_mmu_invalidate_trigger_true_f(void)
600{
601 return 0x80000000U;
602}
603static inline u32 fb_mmu_debug_wr_r(void)
604{
605 return 0x00100cc8U;
606}
607static inline u32 fb_mmu_debug_wr_aperture_s(void)
608{
609 return 2U;
610}
611static inline u32 fb_mmu_debug_wr_aperture_f(u32 v)
612{
613 return (v & 0x3U) << 0U;
614}
615static inline u32 fb_mmu_debug_wr_aperture_m(void)
616{
617 return 0x3U << 0U;
618}
619static inline u32 fb_mmu_debug_wr_aperture_v(u32 r)
620{
621 return (r >> 0U) & 0x3U;
622}
623static inline u32 fb_mmu_debug_wr_aperture_vid_mem_f(void)
624{
625 return 0x0U;
626}
627static inline u32 fb_mmu_debug_wr_aperture_sys_mem_coh_f(void)
628{
629 return 0x2U;
630}
631static inline u32 fb_mmu_debug_wr_aperture_sys_mem_ncoh_f(void)
632{
633 return 0x3U;
634}
635static inline u32 fb_mmu_debug_wr_vol_false_f(void)
636{
637 return 0x0U;
638}
639static inline u32 fb_mmu_debug_wr_vol_true_v(void)
640{
641 return 0x00000001U;
642}
643static inline u32 fb_mmu_debug_wr_vol_true_f(void)
644{
645 return 0x4U;
646}
647static inline u32 fb_mmu_debug_wr_addr_f(u32 v)
648{
649 return (v & 0xfffffffU) << 4U;
650}
651static inline u32 fb_mmu_debug_wr_addr_alignment_v(void)
652{
653 return 0x0000000cU;
654}
655static inline u32 fb_mmu_debug_rd_r(void)
656{
657 return 0x00100cccU;
658}
659static inline u32 fb_mmu_debug_rd_aperture_vid_mem_f(void)
660{
661 return 0x0U;
662}
663static inline u32 fb_mmu_debug_rd_aperture_sys_mem_coh_f(void)
664{
665 return 0x2U;
666}
667static inline u32 fb_mmu_debug_rd_aperture_sys_mem_ncoh_f(void)
668{
669 return 0x3U;
670}
671static inline u32 fb_mmu_debug_rd_vol_false_f(void)
672{
673 return 0x0U;
674}
675static inline u32 fb_mmu_debug_rd_addr_f(u32 v)
676{
677 return (v & 0xfffffffU) << 4U;
678}
679static inline u32 fb_mmu_debug_rd_addr_alignment_v(void)
680{
681 return 0x0000000cU;
682}
683static inline u32 fb_mmu_debug_ctrl_r(void)
684{
685 return 0x00100cc4U;
686}
687static inline u32 fb_mmu_debug_ctrl_debug_v(u32 r)
688{
689 return (r >> 16U) & 0x1U;
690}
691static inline u32 fb_mmu_debug_ctrl_debug_m(void)
692{
693 return 0x1U << 16U;
694}
695static inline u32 fb_mmu_debug_ctrl_debug_enabled_v(void)
696{
697 return 0x00000001U;
698}
699static inline u32 fb_mmu_debug_ctrl_debug_enabled_f(void)
700{
701 return 0x10000U;
702}
703static inline u32 fb_mmu_debug_ctrl_debug_disabled_v(void)
704{
705 return 0x00000000U;
706}
707static inline u32 fb_mmu_debug_ctrl_debug_disabled_f(void)
708{
709 return 0x0U;
710}
711static inline u32 fb_niso_cfg1_r(void)
712{
713 return 0x00100c14U;
714}
715static inline u32 fb_niso_cfg1_sysmem_nvlink_f(u32 v)
716{
717 return (v & 0x1U) << 17U;
718}
719static inline u32 fb_niso_cfg1_sysmem_nvlink_m(void)
720{
721 return 0x1U << 17U;
722}
723static inline u32 fb_niso_cfg1_sysmem_nvlink_v(u32 r)
724{
725 return (r >> 17U) & 0x1U;
726}
727static inline u32 fb_niso_cfg1_sysmem_nvlink_enabled_v(void)
728{
729 return 0x00000001U;
730}
731static inline u32 fb_niso_cfg1_sysmem_nvlink_enabled_f(void)
732{
733 return 0x20000U;
734}
735static inline u32 fb_niso_flush_sysmem_addr_r(void)
736{
737 return 0x00100c10U;
738}
739static inline u32 fb_niso_intr_r(void)
740{
741 return 0x00100a20U;
742}
743static inline u32 fb_niso_intr_hub_access_counter_notify_m(void)
744{
745 return 0x1U << 0U;
746}
747static inline u32 fb_niso_intr_hub_access_counter_notify_pending_f(void)
748{
749 return 0x1U;
750}
751static inline u32 fb_niso_intr_hub_access_counter_error_m(void)
752{
753 return 0x1U << 1U;
754}
755static inline u32 fb_niso_intr_hub_access_counter_error_pending_f(void)
756{
757 return 0x2U;
758}
759static inline u32 fb_niso_intr_mmu_replayable_fault_notify_m(void)
760{
761 return 0x1U << 27U;
762}
763static inline u32 fb_niso_intr_mmu_replayable_fault_notify_pending_f(void)
764{
765 return 0x8000000U;
766}
767static inline u32 fb_niso_intr_mmu_replayable_fault_overflow_m(void)
768{
769 return 0x1U << 28U;
770}
771static inline u32 fb_niso_intr_mmu_replayable_fault_overflow_pending_f(void)
772{
773 return 0x10000000U;
774}
775static inline u32 fb_niso_intr_mmu_nonreplayable_fault_notify_m(void)
776{
777 return 0x1U << 29U;
778}
779static inline u32 fb_niso_intr_mmu_nonreplayable_fault_notify_pending_f(void)
780{
781 return 0x20000000U;
782}
783static inline u32 fb_niso_intr_mmu_nonreplayable_fault_overflow_m(void)
784{
785 return 0x1U << 30U;
786}
787static inline u32 fb_niso_intr_mmu_nonreplayable_fault_overflow_pending_f(void)
788{
789 return 0x40000000U;
790}
791static inline u32 fb_niso_intr_mmu_other_fault_notify_m(void)
792{
793 return 0x1U << 31U;
794}
795static inline u32 fb_niso_intr_mmu_other_fault_notify_pending_f(void)
796{
797 return 0x80000000U;
798}
799static inline u32 fb_niso_intr_en_r(u32 i)
800{
801 return 0x00100a24U + i*4U;
802}
803static inline u32 fb_niso_intr_en__size_1_v(void)
804{
805 return 0x00000002U;
806}
807static inline u32 fb_niso_intr_en_hub_access_counter_notify_f(u32 v)
808{
809 return (v & 0x1U) << 0U;
810}
811static inline u32 fb_niso_intr_en_hub_access_counter_notify_enabled_f(void)
812{
813 return 0x1U;
814}
815static inline u32 fb_niso_intr_en_hub_access_counter_error_f(u32 v)
816{
817 return (v & 0x1U) << 1U;
818}
819static inline u32 fb_niso_intr_en_hub_access_counter_error_enabled_f(void)
820{
821 return 0x2U;
822}
823static inline u32 fb_niso_intr_en_mmu_replayable_fault_notify_f(u32 v)
824{
825 return (v & 0x1U) << 27U;
826}
827static inline u32 fb_niso_intr_en_mmu_replayable_fault_notify_enabled_f(void)
828{
829 return 0x8000000U;
830}
831static inline u32 fb_niso_intr_en_mmu_replayable_fault_overflow_f(u32 v)
832{
833 return (v & 0x1U) << 28U;
834}
835static inline u32 fb_niso_intr_en_mmu_replayable_fault_overflow_enabled_f(void)
836{
837 return 0x10000000U;
838}
839static inline u32 fb_niso_intr_en_mmu_nonreplayable_fault_notify_f(u32 v)
840{
841 return (v & 0x1U) << 29U;
842}
843static inline u32 fb_niso_intr_en_mmu_nonreplayable_fault_notify_enabled_f(void)
844{
845 return 0x20000000U;
846}
847static inline u32 fb_niso_intr_en_mmu_nonreplayable_fault_overflow_f(u32 v)
848{
849 return (v & 0x1U) << 30U;
850}
851static inline u32 fb_niso_intr_en_mmu_nonreplayable_fault_overflow_enabled_f(void)
852{
853 return 0x40000000U;
854}
855static inline u32 fb_niso_intr_en_mmu_other_fault_notify_f(u32 v)
856{
857 return (v & 0x1U) << 31U;
858}
859static inline u32 fb_niso_intr_en_mmu_other_fault_notify_enabled_f(void)
860{
861 return 0x80000000U;
862}
863static inline u32 fb_niso_intr_en_set_r(u32 i)
864{
865 return 0x00100a2cU + i*4U;
866}
867static inline u32 fb_niso_intr_en_set__size_1_v(void)
868{
869 return 0x00000002U;
870}
871static inline u32 fb_niso_intr_en_set_hub_access_counter_notify_m(void)
872{
873 return 0x1U << 0U;
874}
875static inline u32 fb_niso_intr_en_set_hub_access_counter_notify_set_f(void)
876{
877 return 0x1U;
878}
879static inline u32 fb_niso_intr_en_set_hub_access_counter_error_m(void)
880{
881 return 0x1U << 1U;
882}
883static inline u32 fb_niso_intr_en_set_hub_access_counter_error_set_f(void)
884{
885 return 0x2U;
886}
887static inline u32 fb_niso_intr_en_set_mmu_replayable_fault_notify_m(void)
888{
889 return 0x1U << 27U;
890}
891static inline u32 fb_niso_intr_en_set_mmu_replayable_fault_notify_set_f(void)
892{
893 return 0x8000000U;
894}
895static inline u32 fb_niso_intr_en_set_mmu_replayable_fault_overflow_m(void)
896{
897 return 0x1U << 28U;
898}
899static inline u32 fb_niso_intr_en_set_mmu_replayable_fault_overflow_set_f(void)
900{
901 return 0x10000000U;
902}
903static inline u32 fb_niso_intr_en_set_mmu_nonreplayable_fault_notify_m(void)
904{
905 return 0x1U << 29U;
906}
907static inline u32 fb_niso_intr_en_set_mmu_nonreplayable_fault_notify_set_f(void)
908{
909 return 0x20000000U;
910}
911static inline u32 fb_niso_intr_en_set_mmu_nonreplayable_fault_overflow_m(void)
912{
913 return 0x1U << 30U;
914}
915static inline u32 fb_niso_intr_en_set_mmu_nonreplayable_fault_overflow_set_f(void)
916{
917 return 0x40000000U;
918}
919static inline u32 fb_niso_intr_en_set_mmu_other_fault_notify_m(void)
920{
921 return 0x1U << 31U;
922}
923static inline u32 fb_niso_intr_en_set_mmu_other_fault_notify_set_f(void)
924{
925 return 0x80000000U;
926}
927static inline u32 fb_niso_intr_en_clr_r(u32 i)
928{
929 return 0x00100a34U + i*4U;
930}
931static inline u32 fb_niso_intr_en_clr__size_1_v(void)
932{
933 return 0x00000002U;
934}
935static inline u32 fb_niso_intr_en_clr_hub_access_counter_notify_m(void)
936{
937 return 0x1U << 0U;
938}
939static inline u32 fb_niso_intr_en_clr_hub_access_counter_notify_set_f(void)
940{
941 return 0x1U;
942}
943static inline u32 fb_niso_intr_en_clr_hub_access_counter_error_m(void)
944{
945 return 0x1U << 1U;
946}
947static inline u32 fb_niso_intr_en_clr_hub_access_counter_error_set_f(void)
948{
949 return 0x2U;
950}
951static inline u32 fb_niso_intr_en_clr_mmu_replayable_fault_notify_m(void)
952{
953 return 0x1U << 27U;
954}
955static inline u32 fb_niso_intr_en_clr_mmu_replayable_fault_notify_set_f(void)
956{
957 return 0x8000000U;
958}
959static inline u32 fb_niso_intr_en_clr_mmu_replayable_fault_overflow_m(void)
960{
961 return 0x1U << 28U;
962}
963static inline u32 fb_niso_intr_en_clr_mmu_replayable_fault_overflow_set_f(void)
964{
965 return 0x10000000U;
966}
967static inline u32 fb_niso_intr_en_clr_mmu_nonreplayable_fault_notify_m(void)
968{
969 return 0x1U << 29U;
970}
971static inline u32 fb_niso_intr_en_clr_mmu_nonreplayable_fault_notify_set_f(void)
972{
973 return 0x20000000U;
974}
975static inline u32 fb_niso_intr_en_clr_mmu_nonreplayable_fault_overflow_m(void)
976{
977 return 0x1U << 30U;
978}
979static inline u32 fb_niso_intr_en_clr_mmu_nonreplayable_fault_overflow_set_f(void)
980{
981 return 0x40000000U;
982}
983static inline u32 fb_niso_intr_en_clr_mmu_other_fault_notify_m(void)
984{
985 return 0x1U << 31U;
986}
987static inline u32 fb_niso_intr_en_clr_mmu_other_fault_notify_set_f(void)
988{
989 return 0x80000000U;
990}
991static inline u32 fb_niso_intr_en_clr_mmu_non_replay_fault_buffer_v(void)
992{
993 return 0x00000000U;
994}
995static inline u32 fb_niso_intr_en_clr_mmu_replay_fault_buffer_v(void)
996{
997 return 0x00000001U;
998}
999static inline u32 fb_mmu_fault_buffer_lo_r(u32 i)
1000{
1001 return 0x00100e24U + i*20U;
1002}
1003static inline u32 fb_mmu_fault_buffer_lo__size_1_v(void)
1004{
1005 return 0x00000002U;
1006}
1007static inline u32 fb_mmu_fault_buffer_lo_addr_mode_f(u32 v)
1008{
1009 return (v & 0x1U) << 0U;
1010}
1011static inline u32 fb_mmu_fault_buffer_lo_addr_mode_v(u32 r)
1012{
1013 return (r >> 0U) & 0x1U;
1014}
1015static inline u32 fb_mmu_fault_buffer_lo_addr_mode_virtual_v(void)
1016{
1017 return 0x00000000U;
1018}
1019static inline u32 fb_mmu_fault_buffer_lo_addr_mode_virtual_f(void)
1020{
1021 return 0x0U;
1022}
1023static inline u32 fb_mmu_fault_buffer_lo_addr_mode_physical_v(void)
1024{
1025 return 0x00000001U;
1026}
1027static inline u32 fb_mmu_fault_buffer_lo_addr_mode_physical_f(void)
1028{
1029 return 0x1U;
1030}
1031static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_f(u32 v)
1032{
1033 return (v & 0x3U) << 1U;
1034}
1035static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_v(u32 r)
1036{
1037 return (r >> 1U) & 0x3U;
1038}
1039static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_sys_coh_v(void)
1040{
1041 return 0x00000002U;
1042}
1043static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_sys_coh_f(void)
1044{
1045 return 0x4U;
1046}
1047static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_sys_nocoh_v(void)
1048{
1049 return 0x00000003U;
1050}
1051static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_sys_nocoh_f(void)
1052{
1053 return 0x6U;
1054}
1055static inline u32 fb_mmu_fault_buffer_lo_phys_vol_f(u32 v)
1056{
1057 return (v & 0x1U) << 3U;
1058}
1059static inline u32 fb_mmu_fault_buffer_lo_phys_vol_v(u32 r)
1060{
1061 return (r >> 3U) & 0x1U;
1062}
1063static inline u32 fb_mmu_fault_buffer_lo_addr_f(u32 v)
1064{
1065 return (v & 0xfffffU) << 12U;
1066}
1067static inline u32 fb_mmu_fault_buffer_lo_addr_v(u32 r)
1068{
1069 return (r >> 12U) & 0xfffffU;
1070}
1071static inline u32 fb_mmu_fault_buffer_hi_r(u32 i)
1072{
1073 return 0x00100e28U + i*20U;
1074}
1075static inline u32 fb_mmu_fault_buffer_hi__size_1_v(void)
1076{
1077 return 0x00000002U;
1078}
1079static inline u32 fb_mmu_fault_buffer_hi_addr_f(u32 v)
1080{
1081 return (v & 0xffffffffU) << 0U;
1082}
1083static inline u32 fb_mmu_fault_buffer_hi_addr_v(u32 r)
1084{
1085 return (r >> 0U) & 0xffffffffU;
1086}
1087static inline u32 fb_mmu_fault_buffer_get_r(u32 i)
1088{
1089 return 0x00100e2cU + i*20U;
1090}
1091static inline u32 fb_mmu_fault_buffer_get__size_1_v(void)
1092{
1093 return 0x00000002U;
1094}
1095static inline u32 fb_mmu_fault_buffer_get_ptr_f(u32 v)
1096{
1097 return (v & 0xfffffU) << 0U;
1098}
1099static inline u32 fb_mmu_fault_buffer_get_ptr_m(void)
1100{
1101 return 0xfffffU << 0U;
1102}
1103static inline u32 fb_mmu_fault_buffer_get_ptr_v(u32 r)
1104{
1105 return (r >> 0U) & 0xfffffU;
1106}
1107static inline u32 fb_mmu_fault_buffer_get_getptr_corrupted_f(u32 v)
1108{
1109 return (v & 0x1U) << 30U;
1110}
1111static inline u32 fb_mmu_fault_buffer_get_getptr_corrupted_m(void)
1112{
1113 return 0x1U << 30U;
1114}
1115static inline u32 fb_mmu_fault_buffer_get_getptr_corrupted_clear_v(void)
1116{
1117 return 0x00000001U;
1118}
1119static inline u32 fb_mmu_fault_buffer_get_getptr_corrupted_clear_f(void)
1120{
1121 return 0x40000000U;
1122}
1123static inline u32 fb_mmu_fault_buffer_get_overflow_f(u32 v)
1124{
1125 return (v & 0x1U) << 31U;
1126}
1127static inline u32 fb_mmu_fault_buffer_get_overflow_m(void)
1128{
1129 return 0x1U << 31U;
1130}
1131static inline u32 fb_mmu_fault_buffer_get_overflow_clear_v(void)
1132{
1133 return 0x00000001U;
1134}
1135static inline u32 fb_mmu_fault_buffer_get_overflow_clear_f(void)
1136{
1137 return 0x80000000U;
1138}
1139static inline u32 fb_mmu_fault_buffer_put_r(u32 i)
1140{
1141 return 0x00100e30U + i*20U;
1142}
1143static inline u32 fb_mmu_fault_buffer_put__size_1_v(void)
1144{
1145 return 0x00000002U;
1146}
1147static inline u32 fb_mmu_fault_buffer_put_ptr_f(u32 v)
1148{
1149 return (v & 0xfffffU) << 0U;
1150}
1151static inline u32 fb_mmu_fault_buffer_put_ptr_v(u32 r)
1152{
1153 return (r >> 0U) & 0xfffffU;
1154}
1155static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_f(u32 v)
1156{
1157 return (v & 0x1U) << 30U;
1158}
1159static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_v(u32 r)
1160{
1161 return (r >> 30U) & 0x1U;
1162}
1163static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_yes_v(void)
1164{
1165 return 0x00000001U;
1166}
1167static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_yes_f(void)
1168{
1169 return 0x40000000U;
1170}
1171static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_no_v(void)
1172{
1173 return 0x00000000U;
1174}
1175static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_no_f(void)
1176{
1177 return 0x0U;
1178}
1179static inline u32 fb_mmu_fault_buffer_put_overflow_f(u32 v)
1180{
1181 return (v & 0x1U) << 31U;
1182}
1183static inline u32 fb_mmu_fault_buffer_put_overflow_v(u32 r)
1184{
1185 return (r >> 31U) & 0x1U;
1186}
1187static inline u32 fb_mmu_fault_buffer_put_overflow_yes_v(void)
1188{
1189 return 0x00000001U;
1190}
1191static inline u32 fb_mmu_fault_buffer_put_overflow_yes_f(void)
1192{
1193 return 0x80000000U;
1194}
1195static inline u32 fb_mmu_fault_buffer_size_r(u32 i)
1196{
1197 return 0x00100e34U + i*20U;
1198}
1199static inline u32 fb_mmu_fault_buffer_size__size_1_v(void)
1200{
1201 return 0x00000002U;
1202}
1203static inline u32 fb_mmu_fault_buffer_size_val_f(u32 v)
1204{
1205 return (v & 0xfffffU) << 0U;
1206}
1207static inline u32 fb_mmu_fault_buffer_size_val_v(u32 r)
1208{
1209 return (r >> 0U) & 0xfffffU;
1210}
1211static inline u32 fb_mmu_fault_buffer_size_overflow_intr_f(u32 v)
1212{
1213 return (v & 0x1U) << 29U;
1214}
1215static inline u32 fb_mmu_fault_buffer_size_overflow_intr_v(u32 r)
1216{
1217 return (r >> 29U) & 0x1U;
1218}
1219static inline u32 fb_mmu_fault_buffer_size_overflow_intr_enable_v(void)
1220{
1221 return 0x00000001U;
1222}
1223static inline u32 fb_mmu_fault_buffer_size_overflow_intr_enable_f(void)
1224{
1225 return 0x20000000U;
1226}
1227static inline u32 fb_mmu_fault_buffer_size_set_default_f(u32 v)
1228{
1229 return (v & 0x1U) << 30U;
1230}
1231static inline u32 fb_mmu_fault_buffer_size_set_default_v(u32 r)
1232{
1233 return (r >> 30U) & 0x1U;
1234}
1235static inline u32 fb_mmu_fault_buffer_size_set_default_yes_v(void)
1236{
1237 return 0x00000001U;
1238}
1239static inline u32 fb_mmu_fault_buffer_size_set_default_yes_f(void)
1240{
1241 return 0x40000000U;
1242}
1243static inline u32 fb_mmu_fault_buffer_size_enable_f(u32 v)
1244{
1245 return (v & 0x1U) << 31U;
1246}
1247static inline u32 fb_mmu_fault_buffer_size_enable_m(void)
1248{
1249 return 0x1U << 31U;
1250}
1251static inline u32 fb_mmu_fault_buffer_size_enable_v(u32 r)
1252{
1253 return (r >> 31U) & 0x1U;
1254}
1255static inline u32 fb_mmu_fault_buffer_size_enable_true_v(void)
1256{
1257 return 0x00000001U;
1258}
1259static inline u32 fb_mmu_fault_buffer_size_enable_true_f(void)
1260{
1261 return 0x80000000U;
1262}
1263static inline u32 fb_mmu_fault_addr_lo_r(void)
1264{
1265 return 0x00100e4cU;
1266}
1267static inline u32 fb_mmu_fault_addr_lo_phys_aperture_f(u32 v)
1268{
1269 return (v & 0x3U) << 0U;
1270}
1271static inline u32 fb_mmu_fault_addr_lo_phys_aperture_v(u32 r)
1272{
1273 return (r >> 0U) & 0x3U;
1274}
1275static inline u32 fb_mmu_fault_addr_lo_phys_aperture_sys_coh_v(void)
1276{
1277 return 0x00000002U;
1278}
1279static inline u32 fb_mmu_fault_addr_lo_phys_aperture_sys_coh_f(void)
1280{
1281 return 0x2U;
1282}
1283static inline u32 fb_mmu_fault_addr_lo_phys_aperture_sys_nocoh_v(void)
1284{
1285 return 0x00000003U;
1286}
1287static inline u32 fb_mmu_fault_addr_lo_phys_aperture_sys_nocoh_f(void)
1288{
1289 return 0x3U;
1290}
1291static inline u32 fb_mmu_fault_addr_lo_addr_f(u32 v)
1292{
1293 return (v & 0xfffffU) << 12U;
1294}
1295static inline u32 fb_mmu_fault_addr_lo_addr_v(u32 r)
1296{
1297 return (r >> 12U) & 0xfffffU;
1298}
1299static inline u32 fb_mmu_fault_addr_hi_r(void)
1300{
1301 return 0x00100e50U;
1302}
1303static inline u32 fb_mmu_fault_addr_hi_addr_f(u32 v)
1304{
1305 return (v & 0xffffffffU) << 0U;
1306}
1307static inline u32 fb_mmu_fault_addr_hi_addr_v(u32 r)
1308{
1309 return (r >> 0U) & 0xffffffffU;
1310}
1311static inline u32 fb_mmu_fault_inst_lo_r(void)
1312{
1313 return 0x00100e54U;
1314}
1315static inline u32 fb_mmu_fault_inst_lo_engine_id_v(u32 r)
1316{
1317 return (r >> 0U) & 0x1ffU;
1318}
1319static inline u32 fb_mmu_fault_inst_lo_aperture_v(u32 r)
1320{
1321 return (r >> 10U) & 0x3U;
1322}
1323static inline u32 fb_mmu_fault_inst_lo_aperture_sys_coh_v(void)
1324{
1325 return 0x00000002U;
1326}
1327static inline u32 fb_mmu_fault_inst_lo_aperture_sys_nocoh_v(void)
1328{
1329 return 0x00000003U;
1330}
1331static inline u32 fb_mmu_fault_inst_lo_addr_f(u32 v)
1332{
1333 return (v & 0xfffffU) << 12U;
1334}
1335static inline u32 fb_mmu_fault_inst_lo_addr_v(u32 r)
1336{
1337 return (r >> 12U) & 0xfffffU;
1338}
1339static inline u32 fb_mmu_fault_inst_hi_r(void)
1340{
1341 return 0x00100e58U;
1342}
1343static inline u32 fb_mmu_fault_inst_hi_addr_v(u32 r)
1344{
1345 return (r >> 0U) & 0xffffffffU;
1346}
1347static inline u32 fb_mmu_fault_info_r(void)
1348{
1349 return 0x00100e5cU;
1350}
1351static inline u32 fb_mmu_fault_info_fault_type_v(u32 r)
1352{
1353 return (r >> 0U) & 0x1fU;
1354}
1355static inline u32 fb_mmu_fault_info_replayable_fault_v(u32 r)
1356{
1357 return (r >> 7U) & 0x1U;
1358}
1359static inline u32 fb_mmu_fault_info_client_v(u32 r)
1360{
1361 return (r >> 8U) & 0x7fU;
1362}
1363static inline u32 fb_mmu_fault_info_access_type_v(u32 r)
1364{
1365 return (r >> 16U) & 0xfU;
1366}
1367static inline u32 fb_mmu_fault_info_client_type_v(u32 r)
1368{
1369 return (r >> 20U) & 0x1U;
1370}
1371static inline u32 fb_mmu_fault_info_gpc_id_v(u32 r)
1372{
1373 return (r >> 24U) & 0x1fU;
1374}
1375static inline u32 fb_mmu_fault_info_protected_mode_v(u32 r)
1376{
1377 return (r >> 29U) & 0x1U;
1378}
1379static inline u32 fb_mmu_fault_info_replayable_fault_en_v(u32 r)
1380{
1381 return (r >> 30U) & 0x1U;
1382}
1383static inline u32 fb_mmu_fault_info_valid_v(u32 r)
1384{
1385 return (r >> 31U) & 0x1U;
1386}
1387static inline u32 fb_mmu_fault_status_r(void)
1388{
1389 return 0x00100e60U;
1390}
1391static inline u32 fb_mmu_fault_status_dropped_bar1_phys_m(void)
1392{
1393 return 0x1U << 0U;
1394}
1395static inline u32 fb_mmu_fault_status_dropped_bar1_phys_set_v(void)
1396{
1397 return 0x00000001U;
1398}
1399static inline u32 fb_mmu_fault_status_dropped_bar1_phys_set_f(void)
1400{
1401 return 0x1U;
1402}
1403static inline u32 fb_mmu_fault_status_dropped_bar1_phys_clear_v(void)
1404{
1405 return 0x00000001U;
1406}
1407static inline u32 fb_mmu_fault_status_dropped_bar1_phys_clear_f(void)
1408{
1409 return 0x1U;
1410}
1411static inline u32 fb_mmu_fault_status_dropped_bar1_virt_m(void)
1412{
1413 return 0x1U << 1U;
1414}
1415static inline u32 fb_mmu_fault_status_dropped_bar1_virt_set_v(void)
1416{
1417 return 0x00000001U;
1418}
1419static inline u32 fb_mmu_fault_status_dropped_bar1_virt_set_f(void)
1420{
1421 return 0x2U;
1422}
1423static inline u32 fb_mmu_fault_status_dropped_bar1_virt_clear_v(void)
1424{
1425 return 0x00000001U;
1426}
1427static inline u32 fb_mmu_fault_status_dropped_bar1_virt_clear_f(void)
1428{
1429 return 0x2U;
1430}
1431static inline u32 fb_mmu_fault_status_dropped_bar2_phys_m(void)
1432{
1433 return 0x1U << 2U;
1434}
1435static inline u32 fb_mmu_fault_status_dropped_bar2_phys_set_v(void)
1436{
1437 return 0x00000001U;
1438}
1439static inline u32 fb_mmu_fault_status_dropped_bar2_phys_set_f(void)
1440{
1441 return 0x4U;
1442}
1443static inline u32 fb_mmu_fault_status_dropped_bar2_phys_clear_v(void)
1444{
1445 return 0x00000001U;
1446}
1447static inline u32 fb_mmu_fault_status_dropped_bar2_phys_clear_f(void)
1448{
1449 return 0x4U;
1450}
1451static inline u32 fb_mmu_fault_status_dropped_bar2_virt_m(void)
1452{
1453 return 0x1U << 3U;
1454}
1455static inline u32 fb_mmu_fault_status_dropped_bar2_virt_set_v(void)
1456{
1457 return 0x00000001U;
1458}
1459static inline u32 fb_mmu_fault_status_dropped_bar2_virt_set_f(void)
1460{
1461 return 0x8U;
1462}
1463static inline u32 fb_mmu_fault_status_dropped_bar2_virt_clear_v(void)
1464{
1465 return 0x00000001U;
1466}
1467static inline u32 fb_mmu_fault_status_dropped_bar2_virt_clear_f(void)
1468{
1469 return 0x8U;
1470}
1471static inline u32 fb_mmu_fault_status_dropped_ifb_phys_m(void)
1472{
1473 return 0x1U << 4U;
1474}
1475static inline u32 fb_mmu_fault_status_dropped_ifb_phys_set_v(void)
1476{
1477 return 0x00000001U;
1478}
1479static inline u32 fb_mmu_fault_status_dropped_ifb_phys_set_f(void)
1480{
1481 return 0x10U;
1482}
1483static inline u32 fb_mmu_fault_status_dropped_ifb_phys_clear_v(void)
1484{
1485 return 0x00000001U;
1486}
1487static inline u32 fb_mmu_fault_status_dropped_ifb_phys_clear_f(void)
1488{
1489 return 0x10U;
1490}
1491static inline u32 fb_mmu_fault_status_dropped_ifb_virt_m(void)
1492{
1493 return 0x1U << 5U;
1494}
1495static inline u32 fb_mmu_fault_status_dropped_ifb_virt_set_v(void)
1496{
1497 return 0x00000001U;
1498}
1499static inline u32 fb_mmu_fault_status_dropped_ifb_virt_set_f(void)
1500{
1501 return 0x20U;
1502}
1503static inline u32 fb_mmu_fault_status_dropped_ifb_virt_clear_v(void)
1504{
1505 return 0x00000001U;
1506}
1507static inline u32 fb_mmu_fault_status_dropped_ifb_virt_clear_f(void)
1508{
1509 return 0x20U;
1510}
1511static inline u32 fb_mmu_fault_status_dropped_other_phys_m(void)
1512{
1513 return 0x1U << 6U;
1514}
1515static inline u32 fb_mmu_fault_status_dropped_other_phys_set_v(void)
1516{
1517 return 0x00000001U;
1518}
1519static inline u32 fb_mmu_fault_status_dropped_other_phys_set_f(void)
1520{
1521 return 0x40U;
1522}
1523static inline u32 fb_mmu_fault_status_dropped_other_phys_clear_v(void)
1524{
1525 return 0x00000001U;
1526}
1527static inline u32 fb_mmu_fault_status_dropped_other_phys_clear_f(void)
1528{
1529 return 0x40U;
1530}
1531static inline u32 fb_mmu_fault_status_dropped_other_virt_m(void)
1532{
1533 return 0x1U << 7U;
1534}
1535static inline u32 fb_mmu_fault_status_dropped_other_virt_set_v(void)
1536{
1537 return 0x00000001U;
1538}
1539static inline u32 fb_mmu_fault_status_dropped_other_virt_set_f(void)
1540{
1541 return 0x80U;
1542}
1543static inline u32 fb_mmu_fault_status_dropped_other_virt_clear_v(void)
1544{
1545 return 0x00000001U;
1546}
1547static inline u32 fb_mmu_fault_status_dropped_other_virt_clear_f(void)
1548{
1549 return 0x80U;
1550}
1551static inline u32 fb_mmu_fault_status_replayable_m(void)
1552{
1553 return 0x1U << 8U;
1554}
1555static inline u32 fb_mmu_fault_status_replayable_set_v(void)
1556{
1557 return 0x00000001U;
1558}
1559static inline u32 fb_mmu_fault_status_replayable_set_f(void)
1560{
1561 return 0x100U;
1562}
1563static inline u32 fb_mmu_fault_status_replayable_reset_f(void)
1564{
1565 return 0x0U;
1566}
1567static inline u32 fb_mmu_fault_status_non_replayable_m(void)
1568{
1569 return 0x1U << 9U;
1570}
1571static inline u32 fb_mmu_fault_status_non_replayable_set_v(void)
1572{
1573 return 0x00000001U;
1574}
1575static inline u32 fb_mmu_fault_status_non_replayable_set_f(void)
1576{
1577 return 0x200U;
1578}
1579static inline u32 fb_mmu_fault_status_non_replayable_reset_f(void)
1580{
1581 return 0x0U;
1582}
1583static inline u32 fb_mmu_fault_status_replayable_error_m(void)
1584{
1585 return 0x1U << 10U;
1586}
1587static inline u32 fb_mmu_fault_status_replayable_error_set_v(void)
1588{
1589 return 0x00000001U;
1590}
1591static inline u32 fb_mmu_fault_status_replayable_error_set_f(void)
1592{
1593 return 0x400U;
1594}
1595static inline u32 fb_mmu_fault_status_replayable_error_reset_f(void)
1596{
1597 return 0x0U;
1598}
1599static inline u32 fb_mmu_fault_status_non_replayable_error_m(void)
1600{
1601 return 0x1U << 11U;
1602}
1603static inline u32 fb_mmu_fault_status_non_replayable_error_set_v(void)
1604{
1605 return 0x00000001U;
1606}
1607static inline u32 fb_mmu_fault_status_non_replayable_error_set_f(void)
1608{
1609 return 0x800U;
1610}
1611static inline u32 fb_mmu_fault_status_non_replayable_error_reset_f(void)
1612{
1613 return 0x0U;
1614}
1615static inline u32 fb_mmu_fault_status_replayable_overflow_m(void)
1616{
1617 return 0x1U << 12U;
1618}
1619static inline u32 fb_mmu_fault_status_replayable_overflow_set_v(void)
1620{
1621 return 0x00000001U;
1622}
1623static inline u32 fb_mmu_fault_status_replayable_overflow_set_f(void)
1624{
1625 return 0x1000U;
1626}
1627static inline u32 fb_mmu_fault_status_replayable_overflow_reset_f(void)
1628{
1629 return 0x0U;
1630}
1631static inline u32 fb_mmu_fault_status_non_replayable_overflow_m(void)
1632{
1633 return 0x1U << 13U;
1634}
1635static inline u32 fb_mmu_fault_status_non_replayable_overflow_set_v(void)
1636{
1637 return 0x00000001U;
1638}
1639static inline u32 fb_mmu_fault_status_non_replayable_overflow_set_f(void)
1640{
1641 return 0x2000U;
1642}
1643static inline u32 fb_mmu_fault_status_non_replayable_overflow_reset_f(void)
1644{
1645 return 0x0U;
1646}
1647static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_m(void)
1648{
1649 return 0x1U << 14U;
1650}
1651static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_set_v(void)
1652{
1653 return 0x00000001U;
1654}
1655static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_set_f(void)
1656{
1657 return 0x4000U;
1658}
1659static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_m(void)
1660{
1661 return 0x1U << 15U;
1662}
1663static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_set_v(void)
1664{
1665 return 0x00000001U;
1666}
1667static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_set_f(void)
1668{
1669 return 0x8000U;
1670}
1671static inline u32 fb_mmu_fault_status_busy_m(void)
1672{
1673 return 0x1U << 30U;
1674}
1675static inline u32 fb_mmu_fault_status_busy_true_v(void)
1676{
1677 return 0x00000001U;
1678}
1679static inline u32 fb_mmu_fault_status_busy_true_f(void)
1680{
1681 return 0x40000000U;
1682}
1683static inline u32 fb_mmu_fault_status_valid_m(void)
1684{
1685 return 0x1U << 31U;
1686}
1687static inline u32 fb_mmu_fault_status_valid_set_v(void)
1688{
1689 return 0x00000001U;
1690}
1691static inline u32 fb_mmu_fault_status_valid_set_f(void)
1692{
1693 return 0x80000000U;
1694}
1695static inline u32 fb_mmu_fault_status_valid_clear_v(void)
1696{
1697 return 0x00000001U;
1698}
1699static inline u32 fb_mmu_fault_status_valid_clear_f(void)
1700{
1701 return 0x80000000U;
1702}
1703static inline u32 fb_mmu_local_memory_range_r(void)
1704{
1705 return 0x00100ce0U;
1706}
1707static inline u32 fb_mmu_local_memory_range_lower_scale_v(u32 r)
1708{
1709 return (r >> 0U) & 0xfU;
1710}
1711static inline u32 fb_mmu_local_memory_range_lower_mag_v(u32 r)
1712{
1713 return (r >> 4U) & 0x3fU;
1714}
1715static inline u32 fb_mmu_local_memory_range_ecc_mode_v(u32 r)
1716{
1717 return (r >> 30U) & 0x1U;
1718}
1719static inline u32 fb_niso_scrub_status_r(void)
1720{
1721 return 0x00100b20U;
1722}
1723static inline u32 fb_niso_scrub_status_flag_v(u32 r)
1724{
1725 return (r >> 0U) & 0x1U;
1726}
1727static inline u32 fb_mmu_priv_level_mask_r(void)
1728{
1729 return 0x00100cdcU;
1730}
1731static inline u32 fb_mmu_priv_level_mask_write_violation_f(u32 v)
1732{
1733 return (v & 0x1U) << 7U;
1734}
1735static inline u32 fb_mmu_priv_level_mask_write_violation_m(void)
1736{
1737 return 0x1U << 7U;
1738}
1739static inline u32 fb_mmu_priv_level_mask_write_violation_v(u32 r)
1740{
1741 return (r >> 7U) & 0x1U;
1742}
1743static inline u32 fb_hshub_config0_r(void)
1744{
1745 return 0x001fbc00U;
1746}
1747static inline u32 fb_hshub_config0_sysmem_nvlink_mask_f(u32 v)
1748{
1749 return (v & 0xffffU) << 0U;
1750}
1751static inline u32 fb_hshub_config0_sysmem_nvlink_mask_m(void)
1752{
1753 return 0xffffU << 0U;
1754}
1755static inline u32 fb_hshub_config0_sysmem_nvlink_mask_v(u32 r)
1756{
1757 return (r >> 0U) & 0xffffU;
1758}
1759static inline u32 fb_hshub_config0_peer_pcie_mask_f(u32 v)
1760{
1761 return (v & 0xffffU) << 16U;
1762}
1763static inline u32 fb_hshub_config0_peer_pcie_mask_v(u32 r)
1764{
1765 return (r >> 16U) & 0xffffU;
1766}
1767static inline u32 fb_hshub_config1_r(void)
1768{
1769 return 0x001fbc04U;
1770}
1771static inline u32 fb_hshub_config1_peer_0_nvlink_mask_f(u32 v)
1772{
1773 return (v & 0xffU) << 0U;
1774}
1775static inline u32 fb_hshub_config1_peer_0_nvlink_mask_v(u32 r)
1776{
1777 return (r >> 0U) & 0xffU;
1778}
1779static inline u32 fb_hshub_config1_peer_1_nvlink_mask_f(u32 v)
1780{
1781 return (v & 0xffU) << 8U;
1782}
1783static inline u32 fb_hshub_config1_peer_1_nvlink_mask_v(u32 r)
1784{
1785 return (r >> 8U) & 0xffU;
1786}
1787static inline u32 fb_hshub_config1_peer_2_nvlink_mask_f(u32 v)
1788{
1789 return (v & 0xffU) << 16U;
1790}
1791static inline u32 fb_hshub_config1_peer_2_nvlink_mask_v(u32 r)
1792{
1793 return (r >> 16U) & 0xffU;
1794}
1795static inline u32 fb_hshub_config1_peer_3_nvlink_mask_f(u32 v)
1796{
1797 return (v & 0xffU) << 24U;
1798}
1799static inline u32 fb_hshub_config1_peer_3_nvlink_mask_v(u32 r)
1800{
1801 return (r >> 24U) & 0xffU;
1802}
1803static inline u32 fb_hshub_config2_r(void)
1804{
1805 return 0x001fbc08U;
1806}
1807static inline u32 fb_hshub_config2_peer_4_nvlink_mask_f(u32 v)
1808{
1809 return (v & 0xffU) << 0U;
1810}
1811static inline u32 fb_hshub_config2_peer_4_nvlink_mask_v(u32 r)
1812{
1813 return (r >> 0U) & 0xffU;
1814}
1815static inline u32 fb_hshub_config2_peer_5_nvlink_mask_f(u32 v)
1816{
1817 return (v & 0xffU) << 8U;
1818}
1819static inline u32 fb_hshub_config2_peer_5_nvlink_mask_v(u32 r)
1820{
1821 return (r >> 8U) & 0xffU;
1822}
1823static inline u32 fb_hshub_config2_peer_6_nvlink_mask_f(u32 v)
1824{
1825 return (v & 0xffU) << 16U;
1826}
1827static inline u32 fb_hshub_config2_peer_6_nvlink_mask_v(u32 r)
1828{
1829 return (r >> 16U) & 0xffU;
1830}
1831static inline u32 fb_hshub_config2_peer_7_nvlink_mask_f(u32 v)
1832{
1833 return (v & 0xffU) << 24U;
1834}
1835static inline u32 fb_hshub_config2_peer_7_nvlink_mask_v(u32 r)
1836{
1837 return (r >> 24U) & 0xffU;
1838}
1839static inline u32 fb_hshub_config6_r(void)
1840{
1841 return 0x001fbc18U;
1842}
1843static inline u32 fb_hshub_config7_r(void)
1844{
1845 return 0x001fbc1cU;
1846}
1847static inline u32 fb_hshub_config7_nvlink_logical_0_physical_portmap_f(u32 v)
1848{
1849 return (v & 0xfU) << 0U;
1850}
1851static inline u32 fb_hshub_config7_nvlink_logical_0_physical_portmap_v(u32 r)
1852{
1853 return (r >> 0U) & 0xfU;
1854}
1855static inline u32 fb_hshub_config7_nvlink_logical_1_physical_portmap_f(u32 v)
1856{
1857 return (v & 0xfU) << 4U;
1858}
1859static inline u32 fb_hshub_config7_nvlink_logical_1_physical_portmap_v(u32 r)
1860{
1861 return (r >> 4U) & 0xfU;
1862}
1863static inline u32 fb_hshub_config7_nvlink_logical_2_physical_portmap_f(u32 v)
1864{
1865 return (v & 0xfU) << 8U;
1866}
1867static inline u32 fb_hshub_config7_nvlink_logical_2_physical_portmap_v(u32 r)
1868{
1869 return (r >> 8U) & 0xfU;
1870}
1871static inline u32 fb_hshub_config7_nvlink_logical_3_physical_portmap_f(u32 v)
1872{
1873 return (v & 0xfU) << 12U;
1874}
1875static inline u32 fb_hshub_config7_nvlink_logical_3_physical_portmap_v(u32 r)
1876{
1877 return (r >> 12U) & 0xfU;
1878}
1879static inline u32 fb_hshub_config7_nvlink_logical_4_physical_portmap_f(u32 v)
1880{
1881 return (v & 0xfU) << 16U;
1882}
1883static inline u32 fb_hshub_config7_nvlink_logical_4_physical_portmap_v(u32 r)
1884{
1885 return (r >> 16U) & 0xfU;
1886}
1887static inline u32 fb_hshub_config7_nvlink_logical_5_physical_portmap_f(u32 v)
1888{
1889 return (v & 0xfU) << 20U;
1890}
1891static inline u32 fb_hshub_config7_nvlink_logical_5_physical_portmap_v(u32 r)
1892{
1893 return (r >> 20U) & 0xfU;
1894}
1895static inline u32 fb_hshub_config7_nvlink_logical_6_physical_portmap_f(u32 v)
1896{
1897 return (v & 0xfU) << 24U;
1898}
1899static inline u32 fb_hshub_config7_nvlink_logical_6_physical_portmap_v(u32 r)
1900{
1901 return (r >> 24U) & 0xfU;
1902}
1903static inline u32 fb_hshub_config7_nvlink_logical_7_physical_portmap_f(u32 v)
1904{
1905 return (v & 0xfU) << 28U;
1906}
1907static inline u32 fb_hshub_config7_nvlink_logical_7_physical_portmap_v(u32 r)
1908{
1909 return (r >> 28U) & 0xfU;
1910}
1911static inline u32 fb_hshub_nvl_cfg_priv_level_mask_r(void)
1912{
1913 return 0x001fbc50U;
1914}
1915static inline u32 fb_hshub_nvl_cfg_priv_level_mask_write_protection_f(u32 v)
1916{
1917 return (v & 0x7U) << 4U;
1918}
1919static inline u32 fb_hshub_nvl_cfg_priv_level_mask_write_protection_v(u32 r)
1920{
1921 return (r >> 4U) & 0x7U;
1922}
1923#endif
diff --git a/include/nvgpu/hw/gv100/hw_fifo_gv100.h b/include/nvgpu/hw/gv100/hw_fifo_gv100.h
new file mode 100644
index 0000000..4e9b590
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_fifo_gv100.h
@@ -0,0 +1,531 @@
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_fifo_gv100_h_
57#define _hw_fifo_gv100_h_
58
59static inline u32 fifo_bar1_base_r(void)
60{
61 return 0x00002254U;
62}
63static inline u32 fifo_bar1_base_ptr_f(u32 v)
64{
65 return (v & 0xfffffffU) << 0U;
66}
67static inline u32 fifo_bar1_base_ptr_align_shift_v(void)
68{
69 return 0x0000000cU;
70}
71static inline u32 fifo_bar1_base_valid_false_f(void)
72{
73 return 0x0U;
74}
75static inline u32 fifo_bar1_base_valid_true_f(void)
76{
77 return 0x10000000U;
78}
79static inline u32 fifo_userd_writeback_r(void)
80{
81 return 0x0000225cU;
82}
83static inline u32 fifo_userd_writeback_timer_f(u32 v)
84{
85 return (v & 0xffU) << 0U;
86}
87static inline u32 fifo_userd_writeback_timer_disabled_v(void)
88{
89 return 0x00000000U;
90}
91static inline u32 fifo_userd_writeback_timer_shorter_v(void)
92{
93 return 0x00000003U;
94}
95static inline u32 fifo_userd_writeback_timer_100us_v(void)
96{
97 return 0x00000064U;
98}
99static inline u32 fifo_userd_writeback_timescale_f(u32 v)
100{
101 return (v & 0xfU) << 12U;
102}
103static inline u32 fifo_userd_writeback_timescale_0_v(void)
104{
105 return 0x00000000U;
106}
107static inline u32 fifo_runlist_base_r(void)
108{
109 return 0x00002270U;
110}
111static inline u32 fifo_runlist_base_ptr_f(u32 v)
112{
113 return (v & 0xfffffffU) << 0U;
114}
115static inline u32 fifo_runlist_base_target_vid_mem_f(void)
116{
117 return 0x0U;
118}
119static inline u32 fifo_runlist_base_target_sys_mem_coh_f(void)
120{
121 return 0x20000000U;
122}
123static inline u32 fifo_runlist_base_target_sys_mem_ncoh_f(void)
124{
125 return 0x30000000U;
126}
127static inline u32 fifo_runlist_r(void)
128{
129 return 0x00002274U;
130}
131static inline u32 fifo_runlist_engine_f(u32 v)
132{
133 return (v & 0xfU) << 20U;
134}
135static inline u32 fifo_eng_runlist_base_r(u32 i)
136{
137 return 0x00002280U + i*8U;
138}
139static inline u32 fifo_eng_runlist_base__size_1_v(void)
140{
141 return 0x0000000dU;
142}
143static inline u32 fifo_eng_runlist_r(u32 i)
144{
145 return 0x00002284U + i*8U;
146}
147static inline u32 fifo_eng_runlist__size_1_v(void)
148{
149 return 0x0000000dU;
150}
151static inline u32 fifo_eng_runlist_length_f(u32 v)
152{
153 return (v & 0xffffU) << 0U;
154}
155static inline u32 fifo_eng_runlist_length_max_v(void)
156{
157 return 0x0000ffffU;
158}
159static inline u32 fifo_eng_runlist_pending_true_f(void)
160{
161 return 0x100000U;
162}
163static inline u32 fifo_pb_timeslice_r(u32 i)
164{
165 return 0x00002350U + i*4U;
166}
167static inline u32 fifo_pb_timeslice_timeout_16_f(void)
168{
169 return 0x10U;
170}
171static inline u32 fifo_pb_timeslice_timescale_0_f(void)
172{
173 return 0x0U;
174}
175static inline u32 fifo_pb_timeslice_enable_true_f(void)
176{
177 return 0x10000000U;
178}
179static inline u32 fifo_pbdma_map_r(u32 i)
180{
181 return 0x00002390U + i*4U;
182}
183static inline u32 fifo_intr_0_r(void)
184{
185 return 0x00002100U;
186}
187static inline u32 fifo_intr_0_bind_error_pending_f(void)
188{
189 return 0x1U;
190}
191static inline u32 fifo_intr_0_bind_error_reset_f(void)
192{
193 return 0x1U;
194}
195static inline u32 fifo_intr_0_sched_error_pending_f(void)
196{
197 return 0x100U;
198}
199static inline u32 fifo_intr_0_sched_error_reset_f(void)
200{
201 return 0x100U;
202}
203static inline u32 fifo_intr_0_chsw_error_pending_f(void)
204{
205 return 0x10000U;
206}
207static inline u32 fifo_intr_0_chsw_error_reset_f(void)
208{
209 return 0x10000U;
210}
211static inline u32 fifo_intr_0_memop_timeout_pending_f(void)
212{
213 return 0x800000U;
214}
215static inline u32 fifo_intr_0_memop_timeout_reset_f(void)
216{
217 return 0x800000U;
218}
219static inline u32 fifo_intr_0_lb_error_pending_f(void)
220{
221 return 0x1000000U;
222}
223static inline u32 fifo_intr_0_lb_error_reset_f(void)
224{
225 return 0x1000000U;
226}
227static inline u32 fifo_intr_0_pbdma_intr_pending_f(void)
228{
229 return 0x20000000U;
230}
231static inline u32 fifo_intr_0_runlist_event_pending_f(void)
232{
233 return 0x40000000U;
234}
235static inline u32 fifo_intr_0_channel_intr_pending_f(void)
236{
237 return 0x80000000U;
238}
239static inline u32 fifo_intr_en_0_r(void)
240{
241 return 0x00002140U;
242}
243static inline u32 fifo_intr_en_0_sched_error_f(u32 v)
244{
245 return (v & 0x1U) << 8U;
246}
247static inline u32 fifo_intr_en_0_sched_error_m(void)
248{
249 return 0x1U << 8U;
250}
251static inline u32 fifo_intr_en_1_r(void)
252{
253 return 0x00002528U;
254}
255static inline u32 fifo_intr_bind_error_r(void)
256{
257 return 0x0000252cU;
258}
259static inline u32 fifo_intr_sched_error_r(void)
260{
261 return 0x0000254cU;
262}
263static inline u32 fifo_intr_sched_error_code_f(u32 v)
264{
265 return (v & 0xffU) << 0U;
266}
267static inline u32 fifo_intr_chsw_error_r(void)
268{
269 return 0x0000256cU;
270}
271static inline u32 fifo_intr_pbdma_id_r(void)
272{
273 return 0x000025a0U;
274}
275static inline u32 fifo_intr_pbdma_id_status_f(u32 v, u32 i)
276{
277 return (v & 0x1U) << (0U + i*1U);
278}
279static inline u32 fifo_intr_pbdma_id_status_v(u32 r, u32 i)
280{
281 return (r >> (0U + i*1U)) & 0x1U;
282}
283static inline u32 fifo_intr_pbdma_id_status__size_1_v(void)
284{
285 return 0x0000000eU;
286}
287static inline u32 fifo_intr_runlist_r(void)
288{
289 return 0x00002a00U;
290}
291static inline u32 fifo_fb_timeout_r(void)
292{
293 return 0x00002a04U;
294}
295static inline u32 fifo_fb_timeout_period_m(void)
296{
297 return 0x3fffffffU << 0U;
298}
299static inline u32 fifo_fb_timeout_period_max_f(void)
300{
301 return 0x3fffffffU;
302}
303static inline u32 fifo_fb_timeout_period_init_f(void)
304{
305 return 0x3c00U;
306}
307static inline u32 fifo_sched_disable_r(void)
308{
309 return 0x00002630U;
310}
311static inline u32 fifo_sched_disable_runlist_f(u32 v, u32 i)
312{
313 return (v & 0x1U) << (0U + i*1U);
314}
315static inline u32 fifo_sched_disable_runlist_m(u32 i)
316{
317 return 0x1U << (0U + i*1U);
318}
319static inline u32 fifo_sched_disable_true_v(void)
320{
321 return 0x00000001U;
322}
323static inline u32 fifo_runlist_preempt_r(void)
324{
325 return 0x00002638U;
326}
327static inline u32 fifo_runlist_preempt_runlist_f(u32 v, u32 i)
328{
329 return (v & 0x1U) << (0U + i*1U);
330}
331static inline u32 fifo_runlist_preempt_runlist_m(u32 i)
332{
333 return 0x1U << (0U + i*1U);
334}
335static inline u32 fifo_runlist_preempt_runlist_pending_v(void)
336{
337 return 0x00000001U;
338}
339static inline u32 fifo_preempt_r(void)
340{
341 return 0x00002634U;
342}
343static inline u32 fifo_preempt_pending_true_f(void)
344{
345 return 0x100000U;
346}
347static inline u32 fifo_preempt_type_channel_f(void)
348{
349 return 0x0U;
350}
351static inline u32 fifo_preempt_type_tsg_f(void)
352{
353 return 0x1000000U;
354}
355static inline u32 fifo_preempt_chid_f(u32 v)
356{
357 return (v & 0xfffU) << 0U;
358}
359static inline u32 fifo_preempt_id_f(u32 v)
360{
361 return (v & 0xfffU) << 0U;
362}
363static inline u32 fifo_engine_status_r(u32 i)
364{
365 return 0x00002640U + i*8U;
366}
367static inline u32 fifo_engine_status__size_1_v(void)
368{
369 return 0x0000000fU;
370}
371static inline u32 fifo_engine_status_id_v(u32 r)
372{
373 return (r >> 0U) & 0xfffU;
374}
375static inline u32 fifo_engine_status_id_type_v(u32 r)
376{
377 return (r >> 12U) & 0x1U;
378}
379static inline u32 fifo_engine_status_id_type_chid_v(void)
380{
381 return 0x00000000U;
382}
383static inline u32 fifo_engine_status_id_type_tsgid_v(void)
384{
385 return 0x00000001U;
386}
387static inline u32 fifo_engine_status_ctx_status_v(u32 r)
388{
389 return (r >> 13U) & 0x7U;
390}
391static inline u32 fifo_engine_status_ctx_status_valid_v(void)
392{
393 return 0x00000001U;
394}
395static inline u32 fifo_engine_status_ctx_status_ctxsw_load_v(void)
396{
397 return 0x00000005U;
398}
399static inline u32 fifo_engine_status_ctx_status_ctxsw_save_v(void)
400{
401 return 0x00000006U;
402}
403static inline u32 fifo_engine_status_ctx_status_ctxsw_switch_v(void)
404{
405 return 0x00000007U;
406}
407static inline u32 fifo_engine_status_next_id_v(u32 r)
408{
409 return (r >> 16U) & 0xfffU;
410}
411static inline u32 fifo_engine_status_next_id_type_v(u32 r)
412{
413 return (r >> 28U) & 0x1U;
414}
415static inline u32 fifo_engine_status_next_id_type_chid_v(void)
416{
417 return 0x00000000U;
418}
419static inline u32 fifo_engine_status_eng_reload_v(u32 r)
420{
421 return (r >> 29U) & 0x1U;
422}
423static inline u32 fifo_engine_status_faulted_v(u32 r)
424{
425 return (r >> 30U) & 0x1U;
426}
427static inline u32 fifo_engine_status_faulted_true_v(void)
428{
429 return 0x00000001U;
430}
431static inline u32 fifo_engine_status_engine_v(u32 r)
432{
433 return (r >> 31U) & 0x1U;
434}
435static inline u32 fifo_engine_status_engine_idle_v(void)
436{
437 return 0x00000000U;
438}
439static inline u32 fifo_engine_status_engine_busy_v(void)
440{
441 return 0x00000001U;
442}
443static inline u32 fifo_engine_status_ctxsw_v(u32 r)
444{
445 return (r >> 15U) & 0x1U;
446}
447static inline u32 fifo_engine_status_ctxsw_in_progress_v(void)
448{
449 return 0x00000001U;
450}
451static inline u32 fifo_engine_status_ctxsw_in_progress_f(void)
452{
453 return 0x8000U;
454}
455static inline u32 fifo_pbdma_status_r(u32 i)
456{
457 return 0x00003080U + i*4U;
458}
459static inline u32 fifo_pbdma_status__size_1_v(void)
460{
461 return 0x0000000eU;
462}
463static inline u32 fifo_pbdma_status_id_v(u32 r)
464{
465 return (r >> 0U) & 0xfffU;
466}
467static inline u32 fifo_pbdma_status_id_type_v(u32 r)
468{
469 return (r >> 12U) & 0x1U;
470}
471static inline u32 fifo_pbdma_status_id_type_chid_v(void)
472{
473 return 0x00000000U;
474}
475static inline u32 fifo_pbdma_status_id_type_tsgid_v(void)
476{
477 return 0x00000001U;
478}
479static inline u32 fifo_pbdma_status_chan_status_v(u32 r)
480{
481 return (r >> 13U) & 0x7U;
482}
483static inline u32 fifo_pbdma_status_chan_status_valid_v(void)
484{
485 return 0x00000001U;
486}
487static inline u32 fifo_pbdma_status_chan_status_chsw_load_v(void)
488{
489 return 0x00000005U;
490}
491static inline u32 fifo_pbdma_status_chan_status_chsw_save_v(void)
492{
493 return 0x00000006U;
494}
495static inline u32 fifo_pbdma_status_chan_status_chsw_switch_v(void)
496{
497 return 0x00000007U;
498}
499static inline u32 fifo_pbdma_status_next_id_v(u32 r)
500{
501 return (r >> 16U) & 0xfffU;
502}
503static inline u32 fifo_pbdma_status_next_id_type_v(u32 r)
504{
505 return (r >> 28U) & 0x1U;
506}
507static inline u32 fifo_pbdma_status_next_id_type_chid_v(void)
508{
509 return 0x00000000U;
510}
511static inline u32 fifo_pbdma_status_chsw_v(u32 r)
512{
513 return (r >> 15U) & 0x1U;
514}
515static inline u32 fifo_pbdma_status_chsw_in_progress_v(void)
516{
517 return 0x00000001U;
518}
519static inline u32 fifo_cfg0_r(void)
520{
521 return 0x00002004U;
522}
523static inline u32 fifo_cfg0_num_pbdma_v(u32 r)
524{
525 return (r >> 0U) & 0xffU;
526}
527static inline u32 fifo_cfg0_pbdma_fault_id_v(u32 r)
528{
529 return (r >> 16U) & 0xffU;
530}
531#endif
diff --git a/include/nvgpu/hw/gv100/hw_flush_gv100.h b/include/nvgpu/hw/gv100/hw_flush_gv100.h
new file mode 100644
index 0000000..b604562
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_flush_gv100.h
@@ -0,0 +1,187 @@
1/*
2 * Copyright (c) 2017, 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_flush_gv100_h_
57#define _hw_flush_gv100_h_
58
59static inline u32 flush_l2_system_invalidate_r(void)
60{
61 return 0x00070004U;
62}
63static inline u32 flush_l2_system_invalidate_pending_v(u32 r)
64{
65 return (r >> 0U) & 0x1U;
66}
67static inline u32 flush_l2_system_invalidate_pending_busy_v(void)
68{
69 return 0x00000001U;
70}
71static inline u32 flush_l2_system_invalidate_pending_busy_f(void)
72{
73 return 0x1U;
74}
75static inline u32 flush_l2_system_invalidate_outstanding_v(u32 r)
76{
77 return (r >> 1U) & 0x1U;
78}
79static inline u32 flush_l2_system_invalidate_outstanding_true_v(void)
80{
81 return 0x00000001U;
82}
83static inline u32 flush_l2_flush_dirty_r(void)
84{
85 return 0x00070010U;
86}
87static inline u32 flush_l2_flush_dirty_pending_v(u32 r)
88{
89 return (r >> 0U) & 0x1U;
90}
91static inline u32 flush_l2_flush_dirty_pending_empty_v(void)
92{
93 return 0x00000000U;
94}
95static inline u32 flush_l2_flush_dirty_pending_empty_f(void)
96{
97 return 0x0U;
98}
99static inline u32 flush_l2_flush_dirty_pending_busy_v(void)
100{
101 return 0x00000001U;
102}
103static inline u32 flush_l2_flush_dirty_pending_busy_f(void)
104{
105 return 0x1U;
106}
107static inline u32 flush_l2_flush_dirty_outstanding_v(u32 r)
108{
109 return (r >> 1U) & 0x1U;
110}
111static inline u32 flush_l2_flush_dirty_outstanding_false_v(void)
112{
113 return 0x00000000U;
114}
115static inline u32 flush_l2_flush_dirty_outstanding_false_f(void)
116{
117 return 0x0U;
118}
119static inline u32 flush_l2_flush_dirty_outstanding_true_v(void)
120{
121 return 0x00000001U;
122}
123static inline u32 flush_l2_clean_comptags_r(void)
124{
125 return 0x0007000cU;
126}
127static inline u32 flush_l2_clean_comptags_pending_v(u32 r)
128{
129 return (r >> 0U) & 0x1U;
130}
131static inline u32 flush_l2_clean_comptags_pending_empty_v(void)
132{
133 return 0x00000000U;
134}
135static inline u32 flush_l2_clean_comptags_pending_empty_f(void)
136{
137 return 0x0U;
138}
139static inline u32 flush_l2_clean_comptags_pending_busy_v(void)
140{
141 return 0x00000001U;
142}
143static inline u32 flush_l2_clean_comptags_pending_busy_f(void)
144{
145 return 0x1U;
146}
147static inline u32 flush_l2_clean_comptags_outstanding_v(u32 r)
148{
149 return (r >> 1U) & 0x1U;
150}
151static inline u32 flush_l2_clean_comptags_outstanding_false_v(void)
152{
153 return 0x00000000U;
154}
155static inline u32 flush_l2_clean_comptags_outstanding_false_f(void)
156{
157 return 0x0U;
158}
159static inline u32 flush_l2_clean_comptags_outstanding_true_v(void)
160{
161 return 0x00000001U;
162}
163static inline u32 flush_fb_flush_r(void)
164{
165 return 0x00070000U;
166}
167static inline u32 flush_fb_flush_pending_v(u32 r)
168{
169 return (r >> 0U) & 0x1U;
170}
171static inline u32 flush_fb_flush_pending_busy_v(void)
172{
173 return 0x00000001U;
174}
175static inline u32 flush_fb_flush_pending_busy_f(void)
176{
177 return 0x1U;
178}
179static inline u32 flush_fb_flush_outstanding_v(u32 r)
180{
181 return (r >> 1U) & 0x1U;
182}
183static inline u32 flush_fb_flush_outstanding_true_v(void)
184{
185 return 0x00000001U;
186}
187#endif
diff --git a/include/nvgpu/hw/gv100/hw_fuse_gv100.h b/include/nvgpu/hw/gv100/hw_fuse_gv100.h
new file mode 100644
index 0000000..48194ea
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_fuse_gv100.h
@@ -0,0 +1,147 @@
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_fuse_gv100_h_
57#define _hw_fuse_gv100_h_
58
59static inline u32 fuse_status_opt_gpc_r(void)
60{
61 return 0x00021c1cU;
62}
63static inline u32 fuse_status_opt_tpc_gpc_r(u32 i)
64{
65 return 0x00021c38U + i*4U;
66}
67static inline u32 fuse_ctrl_opt_tpc_gpc_r(u32 i)
68{
69 return 0x00021838U + i*4U;
70}
71static inline u32 fuse_ctrl_opt_ram_svop_pdp_r(void)
72{
73 return 0x00021944U;
74}
75static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_f(u32 v)
76{
77 return (v & 0xffU) << 0U;
78}
79static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_m(void)
80{
81 return 0xffU << 0U;
82}
83static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_v(u32 r)
84{
85 return (r >> 0U) & 0xffU;
86}
87static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_r(void)
88{
89 return 0x00021948U;
90}
91static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_f(u32 v)
92{
93 return (v & 0x1U) << 0U;
94}
95static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_m(void)
96{
97 return 0x1U << 0U;
98}
99static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_yes_f(void)
104{
105 return 0x1U;
106}
107static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_no_f(void)
108{
109 return 0x0U;
110}
111static inline u32 fuse_status_opt_fbio_r(void)
112{
113 return 0x00021c14U;
114}
115static inline u32 fuse_status_opt_fbio_data_f(u32 v)
116{
117 return (v & 0xffffU) << 0U;
118}
119static inline u32 fuse_status_opt_fbio_data_m(void)
120{
121 return 0xffffU << 0U;
122}
123static inline u32 fuse_status_opt_fbio_data_v(u32 r)
124{
125 return (r >> 0U) & 0xffffU;
126}
127static inline u32 fuse_status_opt_rop_l2_fbp_r(u32 i)
128{
129 return 0x00021d70U + i*4U;
130}
131static inline u32 fuse_status_opt_fbp_r(void)
132{
133 return 0x00021d38U;
134}
135static inline u32 fuse_status_opt_fbp_idx_v(u32 r, u32 i)
136{
137 return (r >> (0U + i*1U)) & 0x1U;
138}
139static inline u32 fuse_opt_ecc_en_r(void)
140{
141 return 0x00021228U;
142}
143static inline u32 fuse_opt_feature_fuses_override_disable_r(void)
144{
145 return 0x000213f0U;
146}
147#endif
diff --git a/include/nvgpu/hw/gv100/hw_gmmu_gv100.h b/include/nvgpu/hw/gv100/hw_gmmu_gv100.h
new file mode 100644
index 0000000..8cccfa9
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_gmmu_gv100.h
@@ -0,0 +1,355 @@
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_gmmu_gv100_h_
57#define _hw_gmmu_gv100_h_
58
59static inline u32 gmmu_new_pde_is_pte_w(void)
60{
61 return 0U;
62}
63static inline u32 gmmu_new_pde_is_pte_false_f(void)
64{
65 return 0x0U;
66}
67static inline u32 gmmu_new_pde_aperture_w(void)
68{
69 return 0U;
70}
71static inline u32 gmmu_new_pde_aperture_invalid_f(void)
72{
73 return 0x0U;
74}
75static inline u32 gmmu_new_pde_aperture_video_memory_f(void)
76{
77 return 0x2U;
78}
79static inline u32 gmmu_new_pde_aperture_sys_mem_coh_f(void)
80{
81 return 0x4U;
82}
83static inline u32 gmmu_new_pde_aperture_sys_mem_ncoh_f(void)
84{
85 return 0x6U;
86}
87static inline u32 gmmu_new_pde_address_sys_f(u32 v)
88{
89 return (v & 0xffffffU) << 8U;
90}
91static inline u32 gmmu_new_pde_address_sys_w(void)
92{
93 return 0U;
94}
95static inline u32 gmmu_new_pde_vol_w(void)
96{
97 return 0U;
98}
99static inline u32 gmmu_new_pde_vol_true_f(void)
100{
101 return 0x8U;
102}
103static inline u32 gmmu_new_pde_vol_false_f(void)
104{
105 return 0x0U;
106}
107static inline u32 gmmu_new_pde_address_shift_v(void)
108{
109 return 0x0000000cU;
110}
111static inline u32 gmmu_new_pde__size_v(void)
112{
113 return 0x00000008U;
114}
115static inline u32 gmmu_new_dual_pde_is_pte_w(void)
116{
117 return 0U;
118}
119static inline u32 gmmu_new_dual_pde_is_pte_false_f(void)
120{
121 return 0x0U;
122}
123static inline u32 gmmu_new_dual_pde_aperture_big_w(void)
124{
125 return 0U;
126}
127static inline u32 gmmu_new_dual_pde_aperture_big_invalid_f(void)
128{
129 return 0x0U;
130}
131static inline u32 gmmu_new_dual_pde_aperture_big_video_memory_f(void)
132{
133 return 0x2U;
134}
135static inline u32 gmmu_new_dual_pde_aperture_big_sys_mem_coh_f(void)
136{
137 return 0x4U;
138}
139static inline u32 gmmu_new_dual_pde_aperture_big_sys_mem_ncoh_f(void)
140{
141 return 0x6U;
142}
143static inline u32 gmmu_new_dual_pde_address_big_sys_f(u32 v)
144{
145 return (v & 0xfffffffU) << 4U;
146}
147static inline u32 gmmu_new_dual_pde_address_big_sys_w(void)
148{
149 return 0U;
150}
151static inline u32 gmmu_new_dual_pde_aperture_small_w(void)
152{
153 return 2U;
154}
155static inline u32 gmmu_new_dual_pde_aperture_small_invalid_f(void)
156{
157 return 0x0U;
158}
159static inline u32 gmmu_new_dual_pde_aperture_small_video_memory_f(void)
160{
161 return 0x2U;
162}
163static inline u32 gmmu_new_dual_pde_aperture_small_sys_mem_coh_f(void)
164{
165 return 0x4U;
166}
167static inline u32 gmmu_new_dual_pde_aperture_small_sys_mem_ncoh_f(void)
168{
169 return 0x6U;
170}
171static inline u32 gmmu_new_dual_pde_vol_small_w(void)
172{
173 return 2U;
174}
175static inline u32 gmmu_new_dual_pde_vol_small_true_f(void)
176{
177 return 0x8U;
178}
179static inline u32 gmmu_new_dual_pde_vol_small_false_f(void)
180{
181 return 0x0U;
182}
183static inline u32 gmmu_new_dual_pde_vol_big_w(void)
184{
185 return 0U;
186}
187static inline u32 gmmu_new_dual_pde_vol_big_true_f(void)
188{
189 return 0x8U;
190}
191static inline u32 gmmu_new_dual_pde_vol_big_false_f(void)
192{
193 return 0x0U;
194}
195static inline u32 gmmu_new_dual_pde_address_small_sys_f(u32 v)
196{
197 return (v & 0xffffffU) << 8U;
198}
199static inline u32 gmmu_new_dual_pde_address_small_sys_w(void)
200{
201 return 2U;
202}
203static inline u32 gmmu_new_dual_pde_address_shift_v(void)
204{
205 return 0x0000000cU;
206}
207static inline u32 gmmu_new_dual_pde_address_big_shift_v(void)
208{
209 return 0x00000008U;
210}
211static inline u32 gmmu_new_dual_pde__size_v(void)
212{
213 return 0x00000010U;
214}
215static inline u32 gmmu_new_pte__size_v(void)
216{
217 return 0x00000008U;
218}
219static inline u32 gmmu_new_pte_valid_w(void)
220{
221 return 0U;
222}
223static inline u32 gmmu_new_pte_valid_true_f(void)
224{
225 return 0x1U;
226}
227static inline u32 gmmu_new_pte_valid_false_f(void)
228{
229 return 0x0U;
230}
231static inline u32 gmmu_new_pte_privilege_w(void)
232{
233 return 0U;
234}
235static inline u32 gmmu_new_pte_privilege_true_f(void)
236{
237 return 0x20U;
238}
239static inline u32 gmmu_new_pte_privilege_false_f(void)
240{
241 return 0x0U;
242}
243static inline u32 gmmu_new_pte_address_sys_f(u32 v)
244{
245 return (v & 0xffffffU) << 8U;
246}
247static inline u32 gmmu_new_pte_address_sys_w(void)
248{
249 return 0U;
250}
251static inline u32 gmmu_new_pte_address_vid_f(u32 v)
252{
253 return (v & 0xffffffU) << 8U;
254}
255static inline u32 gmmu_new_pte_address_vid_w(void)
256{
257 return 0U;
258}
259static inline u32 gmmu_new_pte_vol_w(void)
260{
261 return 0U;
262}
263static inline u32 gmmu_new_pte_vol_true_f(void)
264{
265 return 0x8U;
266}
267static inline u32 gmmu_new_pte_vol_false_f(void)
268{
269 return 0x0U;
270}
271static inline u32 gmmu_new_pte_aperture_w(void)
272{
273 return 0U;
274}
275static inline u32 gmmu_new_pte_aperture_video_memory_f(void)
276{
277 return 0x0U;
278}
279static inline u32 gmmu_new_pte_aperture_sys_mem_coh_f(void)
280{
281 return 0x4U;
282}
283static inline u32 gmmu_new_pte_aperture_sys_mem_ncoh_f(void)
284{
285 return 0x6U;
286}
287static inline u32 gmmu_new_pte_read_only_w(void)
288{
289 return 0U;
290}
291static inline u32 gmmu_new_pte_read_only_true_f(void)
292{
293 return 0x40U;
294}
295static inline u32 gmmu_new_pte_comptagline_f(u32 v)
296{
297 return (v & 0x3ffffU) << 4U;
298}
299static inline u32 gmmu_new_pte_comptagline_w(void)
300{
301 return 1U;
302}
303static inline u32 gmmu_new_pte_kind_f(u32 v)
304{
305 return (v & 0xffU) << 24U;
306}
307static inline u32 gmmu_new_pte_kind_w(void)
308{
309 return 1U;
310}
311static inline u32 gmmu_new_pte_address_shift_v(void)
312{
313 return 0x0000000cU;
314}
315static inline u32 gmmu_pte_kind_f(u32 v)
316{
317 return (v & 0xffU) << 4U;
318}
319static inline u32 gmmu_pte_kind_w(void)
320{
321 return 1U;
322}
323static inline u32 gmmu_pte_kind_invalid_v(void)
324{
325 return 0x000000ffU;
326}
327static inline u32 gmmu_pte_kind_pitch_v(void)
328{
329 return 0x00000000U;
330}
331static inline u32 gmmu_fault_client_type_gpc_v(void)
332{
333 return 0x00000000U;
334}
335static inline u32 gmmu_fault_client_type_hub_v(void)
336{
337 return 0x00000001U;
338}
339static inline u32 gmmu_fault_type_unbound_inst_block_v(void)
340{
341 return 0x00000004U;
342}
343static inline u32 gmmu_fault_mmu_eng_id_bar2_v(void)
344{
345 return 0x00000005U;
346}
347static inline u32 gmmu_fault_mmu_eng_id_physical_v(void)
348{
349 return 0x0000001fU;
350}
351static inline u32 gmmu_fault_mmu_eng_id_ce0_v(void)
352{
353 return 0x0000000fU;
354}
355#endif
diff --git a/include/nvgpu/hw/gv100/hw_gr_gv100.h b/include/nvgpu/hw/gv100/hw_gr_gv100.h
new file mode 100644
index 0000000..0f83d6b
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_gr_gv100.h
@@ -0,0 +1,4119 @@
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_gr_gv100_h_
57#define _hw_gr_gv100_h_
58
59static inline u32 gr_intr_r(void)
60{
61 return 0x00400100U;
62}
63static inline u32 gr_intr_notify_pending_f(void)
64{
65 return 0x1U;
66}
67static inline u32 gr_intr_notify_reset_f(void)
68{
69 return 0x1U;
70}
71static inline u32 gr_intr_semaphore_pending_f(void)
72{
73 return 0x2U;
74}
75static inline u32 gr_intr_semaphore_reset_f(void)
76{
77 return 0x2U;
78}
79static inline u32 gr_intr_illegal_method_pending_f(void)
80{
81 return 0x10U;
82}
83static inline u32 gr_intr_illegal_method_reset_f(void)
84{
85 return 0x10U;
86}
87static inline u32 gr_intr_illegal_notify_pending_f(void)
88{
89 return 0x40U;
90}
91static inline u32 gr_intr_illegal_notify_reset_f(void)
92{
93 return 0x40U;
94}
95static inline u32 gr_intr_firmware_method_f(u32 v)
96{
97 return (v & 0x1U) << 8U;
98}
99static inline u32 gr_intr_firmware_method_pending_f(void)
100{
101 return 0x100U;
102}
103static inline u32 gr_intr_firmware_method_reset_f(void)
104{
105 return 0x100U;
106}
107static inline u32 gr_intr_illegal_class_pending_f(void)
108{
109 return 0x20U;
110}
111static inline u32 gr_intr_illegal_class_reset_f(void)
112{
113 return 0x20U;
114}
115static inline u32 gr_intr_fecs_error_pending_f(void)
116{
117 return 0x80000U;
118}
119static inline u32 gr_intr_fecs_error_reset_f(void)
120{
121 return 0x80000U;
122}
123static inline u32 gr_intr_class_error_pending_f(void)
124{
125 return 0x100000U;
126}
127static inline u32 gr_intr_class_error_reset_f(void)
128{
129 return 0x100000U;
130}
131static inline u32 gr_intr_exception_pending_f(void)
132{
133 return 0x200000U;
134}
135static inline u32 gr_intr_exception_reset_f(void)
136{
137 return 0x200000U;
138}
139static inline u32 gr_fecs_intr_r(void)
140{
141 return 0x00400144U;
142}
143static inline u32 gr_class_error_r(void)
144{
145 return 0x00400110U;
146}
147static inline u32 gr_class_error_code_v(u32 r)
148{
149 return (r >> 0U) & 0xffffU;
150}
151static inline u32 gr_intr_nonstall_r(void)
152{
153 return 0x00400120U;
154}
155static inline u32 gr_intr_nonstall_trap_pending_f(void)
156{
157 return 0x2U;
158}
159static inline u32 gr_intr_en_r(void)
160{
161 return 0x0040013cU;
162}
163static inline u32 gr_exception_r(void)
164{
165 return 0x00400108U;
166}
167static inline u32 gr_exception_fe_m(void)
168{
169 return 0x1U << 0U;
170}
171static inline u32 gr_exception_gpc_m(void)
172{
173 return 0x1U << 24U;
174}
175static inline u32 gr_exception_memfmt_m(void)
176{
177 return 0x1U << 1U;
178}
179static inline u32 gr_exception_ds_m(void)
180{
181 return 0x1U << 4U;
182}
183static inline u32 gr_exception_sked_m(void)
184{
185 return 0x1U << 8U;
186}
187static inline u32 gr_exception_pd_m(void)
188{
189 return 0x1U << 2U;
190}
191static inline u32 gr_exception_scc_m(void)
192{
193 return 0x1U << 3U;
194}
195static inline u32 gr_exception_ssync_m(void)
196{
197 return 0x1U << 5U;
198}
199static inline u32 gr_exception_mme_m(void)
200{
201 return 0x1U << 7U;
202}
203static inline u32 gr_exception1_r(void)
204{
205 return 0x00400118U;
206}
207static inline u32 gr_exception1_gpc_0_pending_f(void)
208{
209 return 0x1U;
210}
211static inline u32 gr_exception2_r(void)
212{
213 return 0x0040011cU;
214}
215static inline u32 gr_exception_en_r(void)
216{
217 return 0x00400138U;
218}
219static inline u32 gr_exception_en_fe_m(void)
220{
221 return 0x1U << 0U;
222}
223static inline u32 gr_exception_en_fe_enabled_f(void)
224{
225 return 0x1U;
226}
227static inline u32 gr_exception_en_gpc_m(void)
228{
229 return 0x1U << 24U;
230}
231static inline u32 gr_exception_en_gpc_enabled_f(void)
232{
233 return 0x1000000U;
234}
235static inline u32 gr_exception_en_memfmt_m(void)
236{
237 return 0x1U << 1U;
238}
239static inline u32 gr_exception_en_memfmt_enabled_f(void)
240{
241 return 0x2U;
242}
243static inline u32 gr_exception_en_ds_m(void)
244{
245 return 0x1U << 4U;
246}
247static inline u32 gr_exception_en_ds_enabled_f(void)
248{
249 return 0x10U;
250}
251static inline u32 gr_exception_en_pd_m(void)
252{
253 return 0x1U << 2U;
254}
255static inline u32 gr_exception_en_pd_enabled_f(void)
256{
257 return 0x4U;
258}
259static inline u32 gr_exception_en_scc_m(void)
260{
261 return 0x1U << 3U;
262}
263static inline u32 gr_exception_en_scc_enabled_f(void)
264{
265 return 0x8U;
266}
267static inline u32 gr_exception_en_ssync_m(void)
268{
269 return 0x1U << 5U;
270}
271static inline u32 gr_exception_en_ssync_enabled_f(void)
272{
273 return 0x20U;
274}
275static inline u32 gr_exception_en_mme_m(void)
276{
277 return 0x1U << 7U;
278}
279static inline u32 gr_exception_en_mme_enabled_f(void)
280{
281 return 0x80U;
282}
283static inline u32 gr_exception_en_sked_m(void)
284{
285 return 0x1U << 8U;
286}
287static inline u32 gr_exception_en_sked_enabled_f(void)
288{
289 return 0x100U;
290}
291static inline u32 gr_exception1_en_r(void)
292{
293 return 0x00400130U;
294}
295static inline u32 gr_exception2_en_r(void)
296{
297 return 0x00400134U;
298}
299static inline u32 gr_gpfifo_ctl_r(void)
300{
301 return 0x00400500U;
302}
303static inline u32 gr_gpfifo_ctl_access_f(u32 v)
304{
305 return (v & 0x1U) << 0U;
306}
307static inline u32 gr_gpfifo_ctl_access_disabled_f(void)
308{
309 return 0x0U;
310}
311static inline u32 gr_gpfifo_ctl_access_enabled_f(void)
312{
313 return 0x1U;
314}
315static inline u32 gr_gpfifo_ctl_semaphore_access_f(u32 v)
316{
317 return (v & 0x1U) << 16U;
318}
319static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_v(void)
320{
321 return 0x00000001U;
322}
323static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_f(void)
324{
325 return 0x10000U;
326}
327static inline u32 gr_gpfifo_status_r(void)
328{
329 return 0x00400504U;
330}
331static inline u32 gr_trapped_addr_r(void)
332{
333 return 0x00400704U;
334}
335static inline u32 gr_trapped_addr_mthd_v(u32 r)
336{
337 return (r >> 2U) & 0xfffU;
338}
339static inline u32 gr_trapped_addr_subch_v(u32 r)
340{
341 return (r >> 16U) & 0x7U;
342}
343static inline u32 gr_trapped_addr_mme_generated_v(u32 r)
344{
345 return (r >> 20U) & 0x1U;
346}
347static inline u32 gr_trapped_addr_datahigh_v(u32 r)
348{
349 return (r >> 24U) & 0x1U;
350}
351static inline u32 gr_trapped_addr_priv_v(u32 r)
352{
353 return (r >> 28U) & 0x1U;
354}
355static inline u32 gr_trapped_addr_status_v(u32 r)
356{
357 return (r >> 31U) & 0x1U;
358}
359static inline u32 gr_trapped_data_lo_r(void)
360{
361 return 0x00400708U;
362}
363static inline u32 gr_trapped_data_hi_r(void)
364{
365 return 0x0040070cU;
366}
367static inline u32 gr_trapped_data_mme_r(void)
368{
369 return 0x00400710U;
370}
371static inline u32 gr_trapped_data_mme_pc_v(u32 r)
372{
373 return (r >> 0U) & 0xfffU;
374}
375static inline u32 gr_status_r(void)
376{
377 return 0x00400700U;
378}
379static inline u32 gr_status_fe_method_upper_v(u32 r)
380{
381 return (r >> 1U) & 0x1U;
382}
383static inline u32 gr_status_fe_method_lower_v(u32 r)
384{
385 return (r >> 2U) & 0x1U;
386}
387static inline u32 gr_status_fe_method_lower_idle_v(void)
388{
389 return 0x00000000U;
390}
391static inline u32 gr_status_fe_gi_v(u32 r)
392{
393 return (r >> 21U) & 0x1U;
394}
395static inline u32 gr_status_mask_r(void)
396{
397 return 0x00400610U;
398}
399static inline u32 gr_status_1_r(void)
400{
401 return 0x00400604U;
402}
403static inline u32 gr_status_2_r(void)
404{
405 return 0x00400608U;
406}
407static inline u32 gr_engine_status_r(void)
408{
409 return 0x0040060cU;
410}
411static inline u32 gr_engine_status_value_busy_f(void)
412{
413 return 0x1U;
414}
415static inline u32 gr_pri_be0_becs_be_exception_r(void)
416{
417 return 0x00410204U;
418}
419static inline u32 gr_pri_be0_becs_be_exception_en_r(void)
420{
421 return 0x00410208U;
422}
423static inline u32 gr_pri_gpc0_gpccs_gpc_exception_r(void)
424{
425 return 0x00502c90U;
426}
427static inline u32 gr_pri_gpc0_gpccs_gpc_exception_en_r(void)
428{
429 return 0x00502c94U;
430}
431static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_r(void)
432{
433 return 0x00504508U;
434}
435static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
436{
437 return 0x0050450cU;
438}
439static inline u32 gr_activity_0_r(void)
440{
441 return 0x00400380U;
442}
443static inline u32 gr_activity_1_r(void)
444{
445 return 0x00400384U;
446}
447static inline u32 gr_activity_2_r(void)
448{
449 return 0x00400388U;
450}
451static inline u32 gr_activity_4_r(void)
452{
453 return 0x00400390U;
454}
455static inline u32 gr_activity_4_gpc0_s(void)
456{
457 return 3U;
458}
459static inline u32 gr_activity_4_gpc0_f(u32 v)
460{
461 return (v & 0x7U) << 0U;
462}
463static inline u32 gr_activity_4_gpc0_m(void)
464{
465 return 0x7U << 0U;
466}
467static inline u32 gr_activity_4_gpc0_v(u32 r)
468{
469 return (r >> 0U) & 0x7U;
470}
471static inline u32 gr_activity_4_gpc0_empty_v(void)
472{
473 return 0x00000000U;
474}
475static inline u32 gr_activity_4_gpc0_preempted_v(void)
476{
477 return 0x00000004U;
478}
479static inline u32 gr_pri_gpc0_gcc_dbg_r(void)
480{
481 return 0x00501000U;
482}
483static inline u32 gr_pri_gpcs_gcc_dbg_r(void)
484{
485 return 0x00419000U;
486}
487static inline u32 gr_pri_gpcs_gcc_dbg_invalidate_m(void)
488{
489 return 0x1U << 1U;
490}
491static inline u32 gr_pri_gpc0_tpc0_sm_cache_control_r(void)
492{
493 return 0x0050433cU;
494}
495static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_r(void)
496{
497 return 0x00419b3cU;
498}
499static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_invalidate_cache_m(void)
500{
501 return 0x1U << 0U;
502}
503static inline u32 gr_pri_sked_activity_r(void)
504{
505 return 0x00407054U;
506}
507static inline u32 gr_pri_gpc0_gpccs_gpc_activity0_r(void)
508{
509 return 0x00502c80U;
510}
511static inline u32 gr_pri_gpc0_gpccs_gpc_activity1_r(void)
512{
513 return 0x00502c84U;
514}
515static inline u32 gr_pri_gpc0_gpccs_gpc_activity2_r(void)
516{
517 return 0x00502c88U;
518}
519static inline u32 gr_pri_gpc0_gpccs_gpc_activity3_r(void)
520{
521 return 0x00502c8cU;
522}
523static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_activity_0_r(void)
524{
525 return 0x00504500U;
526}
527static inline u32 gr_pri_gpc0_tpc1_tpccs_tpc_activity_0_r(void)
528{
529 return 0x00504d00U;
530}
531static inline u32 gr_pri_gpc0_tpcs_tpccs_tpc_activity_0_r(void)
532{
533 return 0x00501d00U;
534}
535static inline u32 gr_pri_gpcs_gpccs_gpc_activity_0_r(void)
536{
537 return 0x0041ac80U;
538}
539static inline u32 gr_pri_gpcs_gpccs_gpc_activity_1_r(void)
540{
541 return 0x0041ac84U;
542}
543static inline u32 gr_pri_gpcs_gpccs_gpc_activity_2_r(void)
544{
545 return 0x0041ac88U;
546}
547static inline u32 gr_pri_gpcs_gpccs_gpc_activity_3_r(void)
548{
549 return 0x0041ac8cU;
550}
551static inline u32 gr_pri_gpcs_tpc0_tpccs_tpc_activity_0_r(void)
552{
553 return 0x0041c500U;
554}
555static inline u32 gr_pri_gpcs_tpc1_tpccs_tpc_activity_0_r(void)
556{
557 return 0x0041cd00U;
558}
559static inline u32 gr_pri_gpcs_tpcs_tpccs_tpc_activity_0_r(void)
560{
561 return 0x00419d00U;
562}
563static inline u32 gr_pri_be0_becs_be_activity0_r(void)
564{
565 return 0x00410200U;
566}
567static inline u32 gr_pri_be1_becs_be_activity0_r(void)
568{
569 return 0x00410600U;
570}
571static inline u32 gr_pri_bes_becs_be_activity0_r(void)
572{
573 return 0x00408a00U;
574}
575static inline u32 gr_pri_ds_mpipe_status_r(void)
576{
577 return 0x00405858U;
578}
579static inline u32 gr_pri_fe_go_idle_info_r(void)
580{
581 return 0x00404194U;
582}
583static inline u32 gr_pri_fe_chip_def_info_r(void)
584{
585 return 0x00404030U;
586}
587static inline u32 gr_pri_fe_chip_def_info_max_veid_count_v(u32 r)
588{
589 return (r >> 0U) & 0xfffU;
590}
591static inline u32 gr_pri_fe_chip_def_info_max_veid_count_init_v(void)
592{
593 return 0x00000040U;
594}
595static inline u32 gr_pri_gpc0_tpc0_tex_m_tex_subunits_status_r(void)
596{
597 return 0x00504238U;
598}
599static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_r(void)
600{
601 return 0x00504358U;
602}
603static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp0_m(void)
604{
605 return 0x1U << 0U;
606}
607static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp1_m(void)
608{
609 return 0x1U << 1U;
610}
611static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp2_m(void)
612{
613 return 0x1U << 2U;
614}
615static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp3_m(void)
616{
617 return 0x1U << 3U;
618}
619static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp4_m(void)
620{
621 return 0x1U << 4U;
622}
623static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp5_m(void)
624{
625 return 0x1U << 5U;
626}
627static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp6_m(void)
628{
629 return 0x1U << 6U;
630}
631static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp7_m(void)
632{
633 return 0x1U << 7U;
634}
635static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp0_m(void)
636{
637 return 0x1U << 8U;
638}
639static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp1_m(void)
640{
641 return 0x1U << 9U;
642}
643static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp2_m(void)
644{
645 return 0x1U << 10U;
646}
647static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp3_m(void)
648{
649 return 0x1U << 11U;
650}
651static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp4_m(void)
652{
653 return 0x1U << 12U;
654}
655static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp5_m(void)
656{
657 return 0x1U << 13U;
658}
659static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp6_m(void)
660{
661 return 0x1U << 14U;
662}
663static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp7_m(void)
664{
665 return 0x1U << 15U;
666}
667static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_total_counter_overflow_v(u32 r)
668{
669 return (r >> 24U) & 0x1U;
670}
671static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r)
672{
673 return (r >> 26U) & 0x1U;
674}
675static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_reset_task_f(void)
676{
677 return 0x40000000U;
678}
679static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_corrected_err_count_r(void)
680{
681 return 0x0050435cU;
682}
683static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_corrected_err_count_total_s(void)
684{
685 return 16U;
686}
687static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_corrected_err_count_total_v(u32 r)
688{
689 return (r >> 0U) & 0xffffU;
690}
691static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_uncorrected_err_count_r(void)
692{
693 return 0x00504360U;
694}
695static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_uncorrected_err_count_total_s(void)
696{
697 return 16U;
698}
699static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_uncorrected_err_count_total_v(u32 r)
700{
701 return (r >> 0U) & 0xffffU;
702}
703static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_r(void)
704{
705 return 0x0050436cU;
706}
707static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_corrected_err_el1_0_m(void)
708{
709 return 0x1U << 0U;
710}
711static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_corrected_err_el1_1_m(void)
712{
713 return 0x1U << 1U;
714}
715static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_uncorrected_err_el1_0_m(void)
716{
717 return 0x1U << 2U;
718}
719static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_uncorrected_err_el1_1_m(void)
720{
721 return 0x1U << 3U;
722}
723static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_corrected_err_total_counter_overflow_v(u32 r)
724{
725 return (r >> 8U) & 0x1U;
726}
727static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r)
728{
729 return (r >> 10U) & 0x1U;
730}
731static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_reset_task_f(void)
732{
733 return 0x40000000U;
734}
735static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_corrected_err_count_r(void)
736{
737 return 0x00504370U;
738}
739static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_corrected_err_count_total_s(void)
740{
741 return 16U;
742}
743static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_corrected_err_count_total_v(u32 r)
744{
745 return (r >> 0U) & 0xffffU;
746}
747static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_uncorrected_err_count_r(void)
748{
749 return 0x00504374U;
750}
751static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_uncorrected_err_count_total_s(void)
752{
753 return 16U;
754}
755static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_uncorrected_err_count_total_v(u32 r)
756{
757 return (r >> 0U) & 0xffffU;
758}
759static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_r(void)
760{
761 return 0x00504638U;
762}
763static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_warp_sm0_m(void)
764{
765 return 0x1U << 0U;
766}
767static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_warp_sm1_m(void)
768{
769 return 0x1U << 1U;
770}
771static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_barrier_sm0_m(void)
772{
773 return 0x1U << 2U;
774}
775static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_barrier_sm1_m(void)
776{
777 return 0x1U << 3U;
778}
779static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_warp_sm0_m(void)
780{
781 return 0x1U << 4U;
782}
783static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_warp_sm1_m(void)
784{
785 return 0x1U << 5U;
786}
787static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_barrier_sm0_m(void)
788{
789 return 0x1U << 6U;
790}
791static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_barrier_sm1_m(void)
792{
793 return 0x1U << 7U;
794}
795static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_total_counter_overflow_v(u32 r)
796{
797 return (r >> 16U) & 0x1U;
798}
799static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r)
800{
801 return (r >> 18U) & 0x1U;
802}
803static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_reset_task_f(void)
804{
805 return 0x40000000U;
806}
807static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_corrected_err_count_r(void)
808{
809 return 0x0050463cU;
810}
811static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_corrected_err_count_total_s(void)
812{
813 return 16U;
814}
815static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_corrected_err_count_total_v(u32 r)
816{
817 return (r >> 0U) & 0xffffU;
818}
819static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_uncorrected_err_count_r(void)
820{
821 return 0x00504640U;
822}
823static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_uncorrected_err_count_total_s(void)
824{
825 return 16U;
826}
827static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_uncorrected_err_count_total_v(u32 r)
828{
829 return (r >> 0U) & 0xffffU;
830}
831static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_r(void)
832{
833 return 0x005042c4U;
834}
835static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_default_f(void)
836{
837 return 0x0U;
838}
839static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe0_f(void)
840{
841 return 0x1U;
842}
843static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe1_f(void)
844{
845 return 0x2U;
846}
847static inline u32 gr_gpc0_tpc0_mpc_hww_esr_r(void)
848{
849 return 0x00504430U;
850}
851static inline u32 gr_gpc0_tpc0_mpc_hww_esr_reset_trigger_f(void)
852{
853 return 0x40000000U;
854}
855static inline u32 gr_gpc0_tpc0_mpc_hww_esr_info_r(void)
856{
857 return 0x00504434U;
858}
859static inline u32 gr_gpc0_tpc0_mpc_hww_esr_info_veid_v(u32 r)
860{
861 return (r >> 0U) & 0x3fU;
862}
863static inline u32 gr_pri_be0_crop_status1_r(void)
864{
865 return 0x00410134U;
866}
867static inline u32 gr_pri_bes_crop_status1_r(void)
868{
869 return 0x00408934U;
870}
871static inline u32 gr_pri_be0_zrop_status_r(void)
872{
873 return 0x00410048U;
874}
875static inline u32 gr_pri_be0_zrop_status2_r(void)
876{
877 return 0x0041004cU;
878}
879static inline u32 gr_pri_bes_zrop_status_r(void)
880{
881 return 0x00408848U;
882}
883static inline u32 gr_pri_bes_zrop_status2_r(void)
884{
885 return 0x0040884cU;
886}
887static inline u32 gr_pipe_bundle_address_r(void)
888{
889 return 0x00400200U;
890}
891static inline u32 gr_pipe_bundle_address_value_v(u32 r)
892{
893 return (r >> 0U) & 0xffffU;
894}
895static inline u32 gr_pipe_bundle_address_veid_f(u32 v)
896{
897 return (v & 0x3fU) << 20U;
898}
899static inline u32 gr_pipe_bundle_address_veid_w(void)
900{
901 return 0U;
902}
903static inline u32 gr_pipe_bundle_data_r(void)
904{
905 return 0x00400204U;
906}
907static inline u32 gr_pipe_bundle_config_r(void)
908{
909 return 0x00400208U;
910}
911static inline u32 gr_pipe_bundle_config_override_pipe_mode_disabled_f(void)
912{
913 return 0x0U;
914}
915static inline u32 gr_pipe_bundle_config_override_pipe_mode_enabled_f(void)
916{
917 return 0x80000000U;
918}
919static inline u32 gr_fe_hww_esr_r(void)
920{
921 return 0x00404000U;
922}
923static inline u32 gr_fe_hww_esr_reset_active_f(void)
924{
925 return 0x40000000U;
926}
927static inline u32 gr_fe_hww_esr_en_enable_f(void)
928{
929 return 0x80000000U;
930}
931static inline u32 gr_fe_hww_esr_info_r(void)
932{
933 return 0x004041b0U;
934}
935static inline u32 gr_gpcs_tpcs_sms_hww_global_esr_report_mask_r(void)
936{
937 return 0x00419eacU;
938}
939static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_r(void)
940{
941 return 0x0050472cU;
942}
943static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_multiple_warp_errors_report_f(void)
944{
945 return 0x4U;
946}
947static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_bpt_int_report_f(void)
948{
949 return 0x10U;
950}
951static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_bpt_pause_report_f(void)
952{
953 return 0x20U;
954}
955static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_single_step_complete_report_f(void)
956{
957 return 0x40U;
958}
959static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_error_in_trap_report_f(void)
960{
961 return 0x100U;
962}
963static inline u32 gr_gpcs_tpcs_sms_hww_global_esr_r(void)
964{
965 return 0x00419eb4U;
966}
967static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_r(void)
968{
969 return 0x00504734U;
970}
971static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_bpt_int_m(void)
972{
973 return 0x1U << 4U;
974}
975static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_bpt_int_pending_f(void)
976{
977 return 0x10U;
978}
979static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_bpt_pause_m(void)
980{
981 return 0x1U << 5U;
982}
983static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_bpt_pause_pending_f(void)
984{
985 return 0x20U;
986}
987static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_single_step_complete_m(void)
988{
989 return 0x1U << 6U;
990}
991static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_single_step_complete_pending_f(void)
992{
993 return 0x40U;
994}
995static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_multiple_warp_errors_m(void)
996{
997 return 0x1U << 2U;
998}
999static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_multiple_warp_errors_pending_f(void)
1000{
1001 return 0x4U;
1002}
1003static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_error_in_trap_m(void)
1004{
1005 return 0x1U << 8U;
1006}
1007static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_error_in_trap_pending_f(void)
1008{
1009 return 0x100U;
1010}
1011static inline u32 gr_fe_go_idle_timeout_r(void)
1012{
1013 return 0x00404154U;
1014}
1015static inline u32 gr_fe_go_idle_timeout_count_f(u32 v)
1016{
1017 return (v & 0xffffffffU) << 0U;
1018}
1019static inline u32 gr_fe_go_idle_timeout_count_disabled_f(void)
1020{
1021 return 0x0U;
1022}
1023static inline u32 gr_fe_go_idle_timeout_count_prod_f(void)
1024{
1025 return 0x1800U;
1026}
1027static inline u32 gr_fe_object_table_r(u32 i)
1028{
1029 return 0x00404200U + i*4U;
1030}
1031static inline u32 gr_fe_object_table_nvclass_v(u32 r)
1032{
1033 return (r >> 0U) & 0xffffU;
1034}
1035static inline u32 gr_fe_tpc_fs_r(u32 i)
1036{
1037 return 0x0040a200U + i*4U;
1038}
1039static inline u32 gr_pri_mme_shadow_raw_index_r(void)
1040{
1041 return 0x00404488U;
1042}
1043static inline u32 gr_pri_mme_shadow_raw_index_write_trigger_f(void)
1044{
1045 return 0x80000000U;
1046}
1047static inline u32 gr_pri_mme_shadow_raw_data_r(void)
1048{
1049 return 0x0040448cU;
1050}
1051static inline u32 gr_mme_hww_esr_r(void)
1052{
1053 return 0x00404490U;
1054}
1055static inline u32 gr_mme_hww_esr_reset_active_f(void)
1056{
1057 return 0x40000000U;
1058}
1059static inline u32 gr_mme_hww_esr_en_enable_f(void)
1060{
1061 return 0x80000000U;
1062}
1063static inline u32 gr_mme_hww_esr_info_r(void)
1064{
1065 return 0x00404494U;
1066}
1067static inline u32 gr_memfmt_hww_esr_r(void)
1068{
1069 return 0x00404600U;
1070}
1071static inline u32 gr_memfmt_hww_esr_reset_active_f(void)
1072{
1073 return 0x40000000U;
1074}
1075static inline u32 gr_memfmt_hww_esr_en_enable_f(void)
1076{
1077 return 0x80000000U;
1078}
1079static inline u32 gr_fecs_cpuctl_r(void)
1080{
1081 return 0x00409100U;
1082}
1083static inline u32 gr_fecs_cpuctl_startcpu_f(u32 v)
1084{
1085 return (v & 0x1U) << 1U;
1086}
1087static inline u32 gr_fecs_cpuctl_alias_r(void)
1088{
1089 return 0x00409130U;
1090}
1091static inline u32 gr_fecs_cpuctl_alias_startcpu_f(u32 v)
1092{
1093 return (v & 0x1U) << 1U;
1094}
1095static inline u32 gr_fecs_dmactl_r(void)
1096{
1097 return 0x0040910cU;
1098}
1099static inline u32 gr_fecs_dmactl_require_ctx_f(u32 v)
1100{
1101 return (v & 0x1U) << 0U;
1102}
1103static inline u32 gr_fecs_dmactl_dmem_scrubbing_m(void)
1104{
1105 return 0x1U << 1U;
1106}
1107static inline u32 gr_fecs_dmactl_imem_scrubbing_m(void)
1108{
1109 return 0x1U << 2U;
1110}
1111static inline u32 gr_fecs_os_r(void)
1112{
1113 return 0x00409080U;
1114}
1115static inline u32 gr_fecs_idlestate_r(void)
1116{
1117 return 0x0040904cU;
1118}
1119static inline u32 gr_fecs_mailbox0_r(void)
1120{
1121 return 0x00409040U;
1122}
1123static inline u32 gr_fecs_mailbox1_r(void)
1124{
1125 return 0x00409044U;
1126}
1127static inline u32 gr_fecs_irqstat_r(void)
1128{
1129 return 0x00409008U;
1130}
1131static inline u32 gr_fecs_irqmode_r(void)
1132{
1133 return 0x0040900cU;
1134}
1135static inline u32 gr_fecs_irqmask_r(void)
1136{
1137 return 0x00409018U;
1138}
1139static inline u32 gr_fecs_irqdest_r(void)
1140{
1141 return 0x0040901cU;
1142}
1143static inline u32 gr_fecs_curctx_r(void)
1144{
1145 return 0x00409050U;
1146}
1147static inline u32 gr_fecs_nxtctx_r(void)
1148{
1149 return 0x00409054U;
1150}
1151static inline u32 gr_fecs_engctl_r(void)
1152{
1153 return 0x004090a4U;
1154}
1155static inline u32 gr_fecs_debug1_r(void)
1156{
1157 return 0x00409090U;
1158}
1159static inline u32 gr_fecs_debuginfo_r(void)
1160{
1161 return 0x00409094U;
1162}
1163static inline u32 gr_fecs_icd_cmd_r(void)
1164{
1165 return 0x00409200U;
1166}
1167static inline u32 gr_fecs_icd_cmd_opc_s(void)
1168{
1169 return 4U;
1170}
1171static inline u32 gr_fecs_icd_cmd_opc_f(u32 v)
1172{
1173 return (v & 0xfU) << 0U;
1174}
1175static inline u32 gr_fecs_icd_cmd_opc_m(void)
1176{
1177 return 0xfU << 0U;
1178}
1179static inline u32 gr_fecs_icd_cmd_opc_v(u32 r)
1180{
1181 return (r >> 0U) & 0xfU;
1182}
1183static inline u32 gr_fecs_icd_cmd_opc_rreg_f(void)
1184{
1185 return 0x8U;
1186}
1187static inline u32 gr_fecs_icd_cmd_opc_rstat_f(void)
1188{
1189 return 0xeU;
1190}
1191static inline u32 gr_fecs_icd_cmd_idx_f(u32 v)
1192{
1193 return (v & 0x1fU) << 8U;
1194}
1195static inline u32 gr_fecs_icd_rdata_r(void)
1196{
1197 return 0x0040920cU;
1198}
1199static inline u32 gr_fecs_imemc_r(u32 i)
1200{
1201 return 0x00409180U + i*16U;
1202}
1203static inline u32 gr_fecs_imemc_offs_f(u32 v)
1204{
1205 return (v & 0x3fU) << 2U;
1206}
1207static inline u32 gr_fecs_imemc_blk_f(u32 v)
1208{
1209 return (v & 0xffU) << 8U;
1210}
1211static inline u32 gr_fecs_imemc_aincw_f(u32 v)
1212{
1213 return (v & 0x1U) << 24U;
1214}
1215static inline u32 gr_fecs_imemd_r(u32 i)
1216{
1217 return 0x00409184U + i*16U;
1218}
1219static inline u32 gr_fecs_imemt_r(u32 i)
1220{
1221 return 0x00409188U + i*16U;
1222}
1223static inline u32 gr_fecs_imemt_tag_f(u32 v)
1224{
1225 return (v & 0xffffU) << 0U;
1226}
1227static inline u32 gr_fecs_dmemc_r(u32 i)
1228{
1229 return 0x004091c0U + i*8U;
1230}
1231static inline u32 gr_fecs_dmemc_offs_s(void)
1232{
1233 return 6U;
1234}
1235static inline u32 gr_fecs_dmemc_offs_f(u32 v)
1236{
1237 return (v & 0x3fU) << 2U;
1238}
1239static inline u32 gr_fecs_dmemc_offs_m(void)
1240{
1241 return 0x3fU << 2U;
1242}
1243static inline u32 gr_fecs_dmemc_offs_v(u32 r)
1244{
1245 return (r >> 2U) & 0x3fU;
1246}
1247static inline u32 gr_fecs_dmemc_blk_f(u32 v)
1248{
1249 return (v & 0xffU) << 8U;
1250}
1251static inline u32 gr_fecs_dmemc_aincw_f(u32 v)
1252{
1253 return (v & 0x1U) << 24U;
1254}
1255static inline u32 gr_fecs_dmemd_r(u32 i)
1256{
1257 return 0x004091c4U + i*8U;
1258}
1259static inline u32 gr_fecs_dmatrfbase_r(void)
1260{
1261 return 0x00409110U;
1262}
1263static inline u32 gr_fecs_dmatrfmoffs_r(void)
1264{
1265 return 0x00409114U;
1266}
1267static inline u32 gr_fecs_dmatrffboffs_r(void)
1268{
1269 return 0x0040911cU;
1270}
1271static inline u32 gr_fecs_dmatrfcmd_r(void)
1272{
1273 return 0x00409118U;
1274}
1275static inline u32 gr_fecs_dmatrfcmd_imem_f(u32 v)
1276{
1277 return (v & 0x1U) << 4U;
1278}
1279static inline u32 gr_fecs_dmatrfcmd_write_f(u32 v)
1280{
1281 return (v & 0x1U) << 5U;
1282}
1283static inline u32 gr_fecs_dmatrfcmd_size_f(u32 v)
1284{
1285 return (v & 0x7U) << 8U;
1286}
1287static inline u32 gr_fecs_dmatrfcmd_ctxdma_f(u32 v)
1288{
1289 return (v & 0x7U) << 12U;
1290}
1291static inline u32 gr_fecs_bootvec_r(void)
1292{
1293 return 0x00409104U;
1294}
1295static inline u32 gr_fecs_bootvec_vec_f(u32 v)
1296{
1297 return (v & 0xffffffffU) << 0U;
1298}
1299static inline u32 gr_fecs_falcon_hwcfg_r(void)
1300{
1301 return 0x00409108U;
1302}
1303static inline u32 gr_gpcs_gpccs_falcon_hwcfg_r(void)
1304{
1305 return 0x0041a108U;
1306}
1307static inline u32 gr_fecs_falcon_rm_r(void)
1308{
1309 return 0x00409084U;
1310}
1311static inline u32 gr_fecs_current_ctx_r(void)
1312{
1313 return 0x00409b00U;
1314}
1315static inline u32 gr_fecs_current_ctx_ptr_f(u32 v)
1316{
1317 return (v & 0xfffffffU) << 0U;
1318}
1319static inline u32 gr_fecs_current_ctx_ptr_v(u32 r)
1320{
1321 return (r >> 0U) & 0xfffffffU;
1322}
1323static inline u32 gr_fecs_current_ctx_target_s(void)
1324{
1325 return 2U;
1326}
1327static inline u32 gr_fecs_current_ctx_target_f(u32 v)
1328{
1329 return (v & 0x3U) << 28U;
1330}
1331static inline u32 gr_fecs_current_ctx_target_m(void)
1332{
1333 return 0x3U << 28U;
1334}
1335static inline u32 gr_fecs_current_ctx_target_v(u32 r)
1336{
1337 return (r >> 28U) & 0x3U;
1338}
1339static inline u32 gr_fecs_current_ctx_target_vid_mem_f(void)
1340{
1341 return 0x0U;
1342}
1343static inline u32 gr_fecs_current_ctx_target_sys_mem_coh_f(void)
1344{
1345 return 0x20000000U;
1346}
1347static inline u32 gr_fecs_current_ctx_target_sys_mem_ncoh_f(void)
1348{
1349 return 0x30000000U;
1350}
1351static inline u32 gr_fecs_current_ctx_valid_s(void)
1352{
1353 return 1U;
1354}
1355static inline u32 gr_fecs_current_ctx_valid_f(u32 v)
1356{
1357 return (v & 0x1U) << 31U;
1358}
1359static inline u32 gr_fecs_current_ctx_valid_m(void)
1360{
1361 return 0x1U << 31U;
1362}
1363static inline u32 gr_fecs_current_ctx_valid_v(u32 r)
1364{
1365 return (r >> 31U) & 0x1U;
1366}
1367static inline u32 gr_fecs_current_ctx_valid_false_f(void)
1368{
1369 return 0x0U;
1370}
1371static inline u32 gr_fecs_method_data_r(void)
1372{
1373 return 0x00409500U;
1374}
1375static inline u32 gr_fecs_method_push_r(void)
1376{
1377 return 0x00409504U;
1378}
1379static inline u32 gr_fecs_method_push_adr_f(u32 v)
1380{
1381 return (v & 0xfffU) << 0U;
1382}
1383static inline u32 gr_fecs_method_push_adr_bind_pointer_v(void)
1384{
1385 return 0x00000003U;
1386}
1387static inline u32 gr_fecs_method_push_adr_bind_pointer_f(void)
1388{
1389 return 0x3U;
1390}
1391static inline u32 gr_fecs_method_push_adr_discover_image_size_v(void)
1392{
1393 return 0x00000010U;
1394}
1395static inline u32 gr_fecs_method_push_adr_wfi_golden_save_v(void)
1396{
1397 return 0x00000009U;
1398}
1399static inline u32 gr_fecs_method_push_adr_restore_golden_v(void)
1400{
1401 return 0x00000015U;
1402}
1403static inline u32 gr_fecs_method_push_adr_discover_zcull_image_size_v(void)
1404{
1405 return 0x00000016U;
1406}
1407static inline u32 gr_fecs_method_push_adr_discover_pm_image_size_v(void)
1408{
1409 return 0x00000025U;
1410}
1411static inline u32 gr_fecs_method_push_adr_discover_reglist_image_size_v(void)
1412{
1413 return 0x00000030U;
1414}
1415static inline u32 gr_fecs_method_push_adr_set_reglist_bind_instance_v(void)
1416{
1417 return 0x00000031U;
1418}
1419static inline u32 gr_fecs_method_push_adr_set_reglist_virtual_address_v(void)
1420{
1421 return 0x00000032U;
1422}
1423static inline u32 gr_fecs_method_push_adr_stop_ctxsw_v(void)
1424{
1425 return 0x00000038U;
1426}
1427static inline u32 gr_fecs_method_push_adr_start_ctxsw_v(void)
1428{
1429 return 0x00000039U;
1430}
1431static inline u32 gr_fecs_method_push_adr_set_watchdog_timeout_f(void)
1432{
1433 return 0x21U;
1434}
1435static inline u32 gr_fecs_method_push_adr_discover_preemption_image_size_v(void)
1436{
1437 return 0x0000001aU;
1438}
1439static inline u32 gr_fecs_method_push_adr_halt_pipeline_v(void)
1440{
1441 return 0x00000004U;
1442}
1443static inline u32 gr_fecs_method_push_adr_configure_interrupt_completion_option_v(void)
1444{
1445 return 0x0000003aU;
1446}
1447static inline u32 gr_fecs_host_int_status_r(void)
1448{
1449 return 0x00409c18U;
1450}
1451static inline u32 gr_fecs_host_int_status_fault_during_ctxsw_f(u32 v)
1452{
1453 return (v & 0x1U) << 16U;
1454}
1455static inline u32 gr_fecs_host_int_status_umimp_firmware_method_f(u32 v)
1456{
1457 return (v & 0x1U) << 17U;
1458}
1459static inline u32 gr_fecs_host_int_status_umimp_illegal_method_f(u32 v)
1460{
1461 return (v & 0x1U) << 18U;
1462}
1463static inline u32 gr_fecs_host_int_status_ctxsw_intr_f(u32 v)
1464{
1465 return (v & 0xffffU) << 0U;
1466}
1467static inline u32 gr_fecs_host_int_clear_r(void)
1468{
1469 return 0x00409c20U;
1470}
1471static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_f(u32 v)
1472{
1473 return (v & 0x1U) << 1U;
1474}
1475static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_clear_f(void)
1476{
1477 return 0x2U;
1478}
1479static inline u32 gr_fecs_host_int_enable_r(void)
1480{
1481 return 0x00409c24U;
1482}
1483static inline u32 gr_fecs_host_int_enable_ctxsw_intr1_enable_f(void)
1484{
1485 return 0x2U;
1486}
1487static inline u32 gr_fecs_host_int_enable_fault_during_ctxsw_enable_f(void)
1488{
1489 return 0x10000U;
1490}
1491static inline u32 gr_fecs_host_int_enable_umimp_firmware_method_enable_f(void)
1492{
1493 return 0x20000U;
1494}
1495static inline u32 gr_fecs_host_int_enable_umimp_illegal_method_enable_f(void)
1496{
1497 return 0x40000U;
1498}
1499static inline u32 gr_fecs_host_int_enable_watchdog_enable_f(void)
1500{
1501 return 0x80000U;
1502}
1503static inline u32 gr_fecs_ctxsw_reset_ctl_r(void)
1504{
1505 return 0x00409614U;
1506}
1507static inline u32 gr_fecs_ctxsw_reset_ctl_sys_halt_disabled_f(void)
1508{
1509 return 0x0U;
1510}
1511static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_halt_disabled_f(void)
1512{
1513 return 0x0U;
1514}
1515static inline u32 gr_fecs_ctxsw_reset_ctl_be_halt_disabled_f(void)
1516{
1517 return 0x0U;
1518}
1519static inline u32 gr_fecs_ctxsw_reset_ctl_sys_engine_reset_disabled_f(void)
1520{
1521 return 0x10U;
1522}
1523static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_engine_reset_disabled_f(void)
1524{
1525 return 0x20U;
1526}
1527static inline u32 gr_fecs_ctxsw_reset_ctl_be_engine_reset_disabled_f(void)
1528{
1529 return 0x40U;
1530}
1531static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_enabled_f(void)
1532{
1533 return 0x0U;
1534}
1535static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_disabled_f(void)
1536{
1537 return 0x100U;
1538}
1539static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_enabled_f(void)
1540{
1541 return 0x0U;
1542}
1543static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_disabled_f(void)
1544{
1545 return 0x200U;
1546}
1547static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_s(void)
1548{
1549 return 1U;
1550}
1551static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_f(u32 v)
1552{
1553 return (v & 0x1U) << 10U;
1554}
1555static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_m(void)
1556{
1557 return 0x1U << 10U;
1558}
1559static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_v(u32 r)
1560{
1561 return (r >> 10U) & 0x1U;
1562}
1563static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_enabled_f(void)
1564{
1565 return 0x0U;
1566}
1567static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_disabled_f(void)
1568{
1569 return 0x400U;
1570}
1571static inline u32 gr_fecs_ctx_state_store_major_rev_id_r(void)
1572{
1573 return 0x0040960cU;
1574}
1575static inline u32 gr_fecs_ctxsw_mailbox_r(u32 i)
1576{
1577 return 0x00409800U + i*4U;
1578}
1579static inline u32 gr_fecs_ctxsw_mailbox__size_1_v(void)
1580{
1581 return 0x00000010U;
1582}
1583static inline u32 gr_fecs_ctxsw_mailbox_value_f(u32 v)
1584{
1585 return (v & 0xffffffffU) << 0U;
1586}
1587static inline u32 gr_fecs_ctxsw_mailbox_value_pass_v(void)
1588{
1589 return 0x00000001U;
1590}
1591static inline u32 gr_fecs_ctxsw_mailbox_value_fail_v(void)
1592{
1593 return 0x00000002U;
1594}
1595static inline u32 gr_fecs_ctxsw_mailbox_set_r(u32 i)
1596{
1597 return 0x004098c0U + i*4U;
1598}
1599static inline u32 gr_fecs_ctxsw_mailbox_set_value_f(u32 v)
1600{
1601 return (v & 0xffffffffU) << 0U;
1602}
1603static inline u32 gr_fecs_ctxsw_mailbox_clear_r(u32 i)
1604{
1605 return 0x00409840U + i*4U;
1606}
1607static inline u32 gr_fecs_ctxsw_mailbox_clear_value_f(u32 v)
1608{
1609 return (v & 0xffffffffU) << 0U;
1610}
1611static inline u32 gr_fecs_fs_r(void)
1612{
1613 return 0x00409604U;
1614}
1615static inline u32 gr_fecs_fs_num_available_gpcs_s(void)
1616{
1617 return 5U;
1618}
1619static inline u32 gr_fecs_fs_num_available_gpcs_f(u32 v)
1620{
1621 return (v & 0x1fU) << 0U;
1622}
1623static inline u32 gr_fecs_fs_num_available_gpcs_m(void)
1624{
1625 return 0x1fU << 0U;
1626}
1627static inline u32 gr_fecs_fs_num_available_gpcs_v(u32 r)
1628{
1629 return (r >> 0U) & 0x1fU;
1630}
1631static inline u32 gr_fecs_fs_num_available_fbps_s(void)
1632{
1633 return 5U;
1634}
1635static inline u32 gr_fecs_fs_num_available_fbps_f(u32 v)
1636{
1637 return (v & 0x1fU) << 16U;
1638}
1639static inline u32 gr_fecs_fs_num_available_fbps_m(void)
1640{
1641 return 0x1fU << 16U;
1642}
1643static inline u32 gr_fecs_fs_num_available_fbps_v(u32 r)
1644{
1645 return (r >> 16U) & 0x1fU;
1646}
1647static inline u32 gr_fecs_cfg_r(void)
1648{
1649 return 0x00409620U;
1650}
1651static inline u32 gr_fecs_cfg_imem_sz_v(u32 r)
1652{
1653 return (r >> 0U) & 0xffU;
1654}
1655static inline u32 gr_fecs_rc_lanes_r(void)
1656{
1657 return 0x00409880U;
1658}
1659static inline u32 gr_fecs_rc_lanes_num_chains_s(void)
1660{
1661 return 6U;
1662}
1663static inline u32 gr_fecs_rc_lanes_num_chains_f(u32 v)
1664{
1665 return (v & 0x3fU) << 0U;
1666}
1667static inline u32 gr_fecs_rc_lanes_num_chains_m(void)
1668{
1669 return 0x3fU << 0U;
1670}
1671static inline u32 gr_fecs_rc_lanes_num_chains_v(u32 r)
1672{
1673 return (r >> 0U) & 0x3fU;
1674}
1675static inline u32 gr_fecs_ctxsw_status_1_r(void)
1676{
1677 return 0x00409400U;
1678}
1679static inline u32 gr_fecs_ctxsw_status_1_arb_busy_s(void)
1680{
1681 return 1U;
1682}
1683static inline u32 gr_fecs_ctxsw_status_1_arb_busy_f(u32 v)
1684{
1685 return (v & 0x1U) << 12U;
1686}
1687static inline u32 gr_fecs_ctxsw_status_1_arb_busy_m(void)
1688{
1689 return 0x1U << 12U;
1690}
1691static inline u32 gr_fecs_ctxsw_status_1_arb_busy_v(u32 r)
1692{
1693 return (r >> 12U) & 0x1U;
1694}
1695static inline u32 gr_fecs_arb_ctx_adr_r(void)
1696{
1697 return 0x00409a24U;
1698}
1699static inline u32 gr_fecs_new_ctx_r(void)
1700{
1701 return 0x00409b04U;
1702}
1703static inline u32 gr_fecs_new_ctx_ptr_s(void)
1704{
1705 return 28U;
1706}
1707static inline u32 gr_fecs_new_ctx_ptr_f(u32 v)
1708{
1709 return (v & 0xfffffffU) << 0U;
1710}
1711static inline u32 gr_fecs_new_ctx_ptr_m(void)
1712{
1713 return 0xfffffffU << 0U;
1714}
1715static inline u32 gr_fecs_new_ctx_ptr_v(u32 r)
1716{
1717 return (r >> 0U) & 0xfffffffU;
1718}
1719static inline u32 gr_fecs_new_ctx_target_s(void)
1720{
1721 return 2U;
1722}
1723static inline u32 gr_fecs_new_ctx_target_f(u32 v)
1724{
1725 return (v & 0x3U) << 28U;
1726}
1727static inline u32 gr_fecs_new_ctx_target_m(void)
1728{
1729 return 0x3U << 28U;
1730}
1731static inline u32 gr_fecs_new_ctx_target_v(u32 r)
1732{
1733 return (r >> 28U) & 0x3U;
1734}
1735static inline u32 gr_fecs_new_ctx_valid_s(void)
1736{
1737 return 1U;
1738}
1739static inline u32 gr_fecs_new_ctx_valid_f(u32 v)
1740{
1741 return (v & 0x1U) << 31U;
1742}
1743static inline u32 gr_fecs_new_ctx_valid_m(void)
1744{
1745 return 0x1U << 31U;
1746}
1747static inline u32 gr_fecs_new_ctx_valid_v(u32 r)
1748{
1749 return (r >> 31U) & 0x1U;
1750}
1751static inline u32 gr_fecs_arb_ctx_ptr_r(void)
1752{
1753 return 0x00409a0cU;
1754}
1755static inline u32 gr_fecs_arb_ctx_ptr_ptr_s(void)
1756{
1757 return 28U;
1758}
1759static inline u32 gr_fecs_arb_ctx_ptr_ptr_f(u32 v)
1760{
1761 return (v & 0xfffffffU) << 0U;
1762}
1763static inline u32 gr_fecs_arb_ctx_ptr_ptr_m(void)
1764{
1765 return 0xfffffffU << 0U;
1766}
1767static inline u32 gr_fecs_arb_ctx_ptr_ptr_v(u32 r)
1768{
1769 return (r >> 0U) & 0xfffffffU;
1770}
1771static inline u32 gr_fecs_arb_ctx_ptr_target_s(void)
1772{
1773 return 2U;
1774}
1775static inline u32 gr_fecs_arb_ctx_ptr_target_f(u32 v)
1776{
1777 return (v & 0x3U) << 28U;
1778}
1779static inline u32 gr_fecs_arb_ctx_ptr_target_m(void)
1780{
1781 return 0x3U << 28U;
1782}
1783static inline u32 gr_fecs_arb_ctx_ptr_target_v(u32 r)
1784{
1785 return (r >> 28U) & 0x3U;
1786}
1787static inline u32 gr_fecs_arb_ctx_cmd_r(void)
1788{
1789 return 0x00409a10U;
1790}
1791static inline u32 gr_fecs_arb_ctx_cmd_cmd_s(void)
1792{
1793 return 5U;
1794}
1795static inline u32 gr_fecs_arb_ctx_cmd_cmd_f(u32 v)
1796{
1797 return (v & 0x1fU) << 0U;
1798}
1799static inline u32 gr_fecs_arb_ctx_cmd_cmd_m(void)
1800{
1801 return 0x1fU << 0U;
1802}
1803static inline u32 gr_fecs_arb_ctx_cmd_cmd_v(u32 r)
1804{
1805 return (r >> 0U) & 0x1fU;
1806}
1807static inline u32 gr_fecs_ctxsw_status_fe_0_r(void)
1808{
1809 return 0x00409c00U;
1810}
1811static inline u32 gr_gpc0_gpccs_ctxsw_status_gpc_0_r(void)
1812{
1813 return 0x00502c04U;
1814}
1815static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void)
1816{
1817 return 0x00502400U;
1818}
1819static inline u32 gr_fecs_ctxsw_idlestate_r(void)
1820{
1821 return 0x00409420U;
1822}
1823static inline u32 gr_fecs_feature_override_ecc_r(void)
1824{
1825 return 0x00409658U;
1826}
1827static inline u32 gr_fecs_feature_override_ecc_sm_lrf_override_v(u32 r)
1828{
1829 return (r >> 3U) & 0x1U;
1830}
1831static inline u32 gr_fecs_feature_override_ecc_ltc_override_v(u32 r)
1832{
1833 return (r >> 15U) & 0x1U;
1834}
1835static inline u32 gr_fecs_feature_override_ecc_sm_lrf_v(u32 r)
1836{
1837 return (r >> 0U) & 0x1U;
1838}
1839static inline u32 gr_fecs_feature_override_ecc_ltc_v(u32 r)
1840{
1841 return (r >> 12U) & 0x1U;
1842}
1843static inline u32 gr_gpc0_gpccs_ctxsw_idlestate_r(void)
1844{
1845 return 0x00502420U;
1846}
1847static inline u32 gr_rstr2d_gpc_map_r(u32 i)
1848{
1849 return 0x0040780cU + i*4U;
1850}
1851static inline u32 gr_rstr2d_map_table_cfg_r(void)
1852{
1853 return 0x004078bcU;
1854}
1855static inline u32 gr_rstr2d_map_table_cfg_row_offset_f(u32 v)
1856{
1857 return (v & 0xffU) << 0U;
1858}
1859static inline u32 gr_rstr2d_map_table_cfg_num_entries_f(u32 v)
1860{
1861 return (v & 0xffU) << 8U;
1862}
1863static inline u32 gr_pd_hww_esr_r(void)
1864{
1865 return 0x00406018U;
1866}
1867static inline u32 gr_pd_hww_esr_reset_active_f(void)
1868{
1869 return 0x40000000U;
1870}
1871static inline u32 gr_pd_hww_esr_en_enable_f(void)
1872{
1873 return 0x80000000U;
1874}
1875static inline u32 gr_pd_num_tpc_per_gpc_r(u32 i)
1876{
1877 return 0x00406028U + i*4U;
1878}
1879static inline u32 gr_pd_num_tpc_per_gpc__size_1_v(void)
1880{
1881 return 0x00000004U;
1882}
1883static inline u32 gr_pd_num_tpc_per_gpc_count0_f(u32 v)
1884{
1885 return (v & 0xfU) << 0U;
1886}
1887static inline u32 gr_pd_num_tpc_per_gpc_count1_f(u32 v)
1888{
1889 return (v & 0xfU) << 4U;
1890}
1891static inline u32 gr_pd_num_tpc_per_gpc_count2_f(u32 v)
1892{
1893 return (v & 0xfU) << 8U;
1894}
1895static inline u32 gr_pd_num_tpc_per_gpc_count3_f(u32 v)
1896{
1897 return (v & 0xfU) << 12U;
1898}
1899static inline u32 gr_pd_num_tpc_per_gpc_count4_f(u32 v)
1900{
1901 return (v & 0xfU) << 16U;
1902}
1903static inline u32 gr_pd_num_tpc_per_gpc_count5_f(u32 v)
1904{
1905 return (v & 0xfU) << 20U;
1906}
1907static inline u32 gr_pd_num_tpc_per_gpc_count6_f(u32 v)
1908{
1909 return (v & 0xfU) << 24U;
1910}
1911static inline u32 gr_pd_num_tpc_per_gpc_count7_f(u32 v)
1912{
1913 return (v & 0xfU) << 28U;
1914}
1915static inline u32 gr_pd_ab_dist_cfg0_r(void)
1916{
1917 return 0x004064c0U;
1918}
1919static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_en_f(void)
1920{
1921 return 0x80000000U;
1922}
1923static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_dis_f(void)
1924{
1925 return 0x0U;
1926}
1927static inline u32 gr_pd_ab_dist_cfg1_r(void)
1928{
1929 return 0x004064c4U;
1930}
1931static inline u32 gr_pd_ab_dist_cfg1_max_batches_init_f(void)
1932{
1933 return 0xffffU;
1934}
1935static inline u32 gr_pd_ab_dist_cfg1_max_output_f(u32 v)
1936{
1937 return (v & 0xffffU) << 16U;
1938}
1939static inline u32 gr_pd_ab_dist_cfg1_max_output_granularity_v(void)
1940{
1941 return 0x00000080U;
1942}
1943static inline u32 gr_pd_ab_dist_cfg2_r(void)
1944{
1945 return 0x004064c8U;
1946}
1947static inline u32 gr_pd_ab_dist_cfg2_token_limit_f(u32 v)
1948{
1949 return (v & 0x1fffU) << 0U;
1950}
1951static inline u32 gr_pd_ab_dist_cfg2_token_limit_init_v(void)
1952{
1953 return 0x00001680U;
1954}
1955static inline u32 gr_pd_ab_dist_cfg2_state_limit_f(u32 v)
1956{
1957 return (v & 0x1fffU) << 16U;
1958}
1959static inline u32 gr_pd_ab_dist_cfg2_state_limit_scc_bundle_granularity_v(void)
1960{
1961 return 0x00000020U;
1962}
1963static inline u32 gr_pd_ab_dist_cfg2_state_limit_min_gpm_fifo_depths_v(void)
1964{
1965 return 0x00001680U;
1966}
1967static inline u32 gr_pd_dist_skip_table_r(u32 i)
1968{
1969 return 0x004064d0U + i*4U;
1970}
1971static inline u32 gr_pd_dist_skip_table__size_1_v(void)
1972{
1973 return 0x00000008U;
1974}
1975static inline u32 gr_pd_dist_skip_table_gpc_4n0_mask_f(u32 v)
1976{
1977 return (v & 0xffU) << 0U;
1978}
1979static inline u32 gr_pd_dist_skip_table_gpc_4n1_mask_f(u32 v)
1980{
1981 return (v & 0xffU) << 8U;
1982}
1983static inline u32 gr_pd_dist_skip_table_gpc_4n2_mask_f(u32 v)
1984{
1985 return (v & 0xffU) << 16U;
1986}
1987static inline u32 gr_pd_dist_skip_table_gpc_4n3_mask_f(u32 v)
1988{
1989 return (v & 0xffU) << 24U;
1990}
1991static inline u32 gr_ds_debug_r(void)
1992{
1993 return 0x00405800U;
1994}
1995static inline u32 gr_ds_debug_timeslice_mode_disable_f(void)
1996{
1997 return 0x0U;
1998}
1999static inline u32 gr_ds_debug_timeslice_mode_enable_f(void)
2000{
2001 return 0x8000000U;
2002}
2003static inline u32 gr_ds_zbc_color_r_r(void)
2004{
2005 return 0x00405804U;
2006}
2007static inline u32 gr_ds_zbc_color_r_val_f(u32 v)
2008{
2009 return (v & 0xffffffffU) << 0U;
2010}
2011static inline u32 gr_ds_zbc_color_g_r(void)
2012{
2013 return 0x00405808U;
2014}
2015static inline u32 gr_ds_zbc_color_g_val_f(u32 v)
2016{
2017 return (v & 0xffffffffU) << 0U;
2018}
2019static inline u32 gr_ds_zbc_color_b_r(void)
2020{
2021 return 0x0040580cU;
2022}
2023static inline u32 gr_ds_zbc_color_b_val_f(u32 v)
2024{
2025 return (v & 0xffffffffU) << 0U;
2026}
2027static inline u32 gr_ds_zbc_color_a_r(void)
2028{
2029 return 0x00405810U;
2030}
2031static inline u32 gr_ds_zbc_color_a_val_f(u32 v)
2032{
2033 return (v & 0xffffffffU) << 0U;
2034}
2035static inline u32 gr_ds_zbc_color_fmt_r(void)
2036{
2037 return 0x00405814U;
2038}
2039static inline u32 gr_ds_zbc_color_fmt_val_f(u32 v)
2040{
2041 return (v & 0x7fU) << 0U;
2042}
2043static inline u32 gr_ds_zbc_color_fmt_val_invalid_f(void)
2044{
2045 return 0x0U;
2046}
2047static inline u32 gr_ds_zbc_color_fmt_val_zero_v(void)
2048{
2049 return 0x00000001U;
2050}
2051static inline u32 gr_ds_zbc_color_fmt_val_unorm_one_v(void)
2052{
2053 return 0x00000002U;
2054}
2055static inline u32 gr_ds_zbc_color_fmt_val_rf32_gf32_bf32_af32_v(void)
2056{
2057 return 0x00000004U;
2058}
2059static inline u32 gr_ds_zbc_color_fmt_val_a8_b8_g8_r8_v(void)
2060{
2061 return 0x00000028U;
2062}
2063static inline u32 gr_ds_zbc_z_r(void)
2064{
2065 return 0x00405818U;
2066}
2067static inline u32 gr_ds_zbc_z_val_s(void)
2068{
2069 return 32U;
2070}
2071static inline u32 gr_ds_zbc_z_val_f(u32 v)
2072{
2073 return (v & 0xffffffffU) << 0U;
2074}
2075static inline u32 gr_ds_zbc_z_val_m(void)
2076{
2077 return 0xffffffffU << 0U;
2078}
2079static inline u32 gr_ds_zbc_z_val_v(u32 r)
2080{
2081 return (r >> 0U) & 0xffffffffU;
2082}
2083static inline u32 gr_ds_zbc_z_val__init_v(void)
2084{
2085 return 0x00000000U;
2086}
2087static inline u32 gr_ds_zbc_z_val__init_f(void)
2088{
2089 return 0x0U;
2090}
2091static inline u32 gr_ds_zbc_z_fmt_r(void)
2092{
2093 return 0x0040581cU;
2094}
2095static inline u32 gr_ds_zbc_z_fmt_val_f(u32 v)
2096{
2097 return (v & 0x1U) << 0U;
2098}
2099static inline u32 gr_ds_zbc_z_fmt_val_invalid_f(void)
2100{
2101 return 0x0U;
2102}
2103static inline u32 gr_ds_zbc_z_fmt_val_fp32_v(void)
2104{
2105 return 0x00000001U;
2106}
2107static inline u32 gr_ds_zbc_tbl_index_r(void)
2108{
2109 return 0x00405820U;
2110}
2111static inline u32 gr_ds_zbc_tbl_index_val_f(u32 v)
2112{
2113 return (v & 0xfU) << 0U;
2114}
2115static inline u32 gr_ds_zbc_tbl_ld_r(void)
2116{
2117 return 0x00405824U;
2118}
2119static inline u32 gr_ds_zbc_tbl_ld_select_c_f(void)
2120{
2121 return 0x0U;
2122}
2123static inline u32 gr_ds_zbc_tbl_ld_select_z_f(void)
2124{
2125 return 0x1U;
2126}
2127static inline u32 gr_ds_zbc_tbl_ld_action_write_f(void)
2128{
2129 return 0x0U;
2130}
2131static inline u32 gr_ds_zbc_tbl_ld_trigger_active_f(void)
2132{
2133 return 0x4U;
2134}
2135static inline u32 gr_ds_tga_constraintlogic_beta_r(void)
2136{
2137 return 0x00405830U;
2138}
2139static inline u32 gr_ds_tga_constraintlogic_beta_cbsize_f(u32 v)
2140{
2141 return (v & 0x3fffffU) << 0U;
2142}
2143static inline u32 gr_ds_tga_constraintlogic_alpha_r(void)
2144{
2145 return 0x0040585cU;
2146}
2147static inline u32 gr_ds_tga_constraintlogic_alpha_cbsize_f(u32 v)
2148{
2149 return (v & 0xffffU) << 0U;
2150}
2151static inline u32 gr_ds_hww_esr_r(void)
2152{
2153 return 0x00405840U;
2154}
2155static inline u32 gr_ds_hww_esr_reset_s(void)
2156{
2157 return 1U;
2158}
2159static inline u32 gr_ds_hww_esr_reset_f(u32 v)
2160{
2161 return (v & 0x1U) << 30U;
2162}
2163static inline u32 gr_ds_hww_esr_reset_m(void)
2164{
2165 return 0x1U << 30U;
2166}
2167static inline u32 gr_ds_hww_esr_reset_v(u32 r)
2168{
2169 return (r >> 30U) & 0x1U;
2170}
2171static inline u32 gr_ds_hww_esr_reset_task_v(void)
2172{
2173 return 0x00000001U;
2174}
2175static inline u32 gr_ds_hww_esr_reset_task_f(void)
2176{
2177 return 0x40000000U;
2178}
2179static inline u32 gr_ds_hww_esr_en_enabled_f(void)
2180{
2181 return 0x80000000U;
2182}
2183static inline u32 gr_ds_hww_esr_2_r(void)
2184{
2185 return 0x00405848U;
2186}
2187static inline u32 gr_ds_hww_esr_2_reset_s(void)
2188{
2189 return 1U;
2190}
2191static inline u32 gr_ds_hww_esr_2_reset_f(u32 v)
2192{
2193 return (v & 0x1U) << 30U;
2194}
2195static inline u32 gr_ds_hww_esr_2_reset_m(void)
2196{
2197 return 0x1U << 30U;
2198}
2199static inline u32 gr_ds_hww_esr_2_reset_v(u32 r)
2200{
2201 return (r >> 30U) & 0x1U;
2202}
2203static inline u32 gr_ds_hww_esr_2_reset_task_v(void)
2204{
2205 return 0x00000001U;
2206}
2207static inline u32 gr_ds_hww_esr_2_reset_task_f(void)
2208{
2209 return 0x40000000U;
2210}
2211static inline u32 gr_ds_hww_esr_2_en_enabled_f(void)
2212{
2213 return 0x80000000U;
2214}
2215static inline u32 gr_ds_hww_report_mask_r(void)
2216{
2217 return 0x00405844U;
2218}
2219static inline u32 gr_ds_hww_report_mask_sph0_err_report_f(void)
2220{
2221 return 0x1U;
2222}
2223static inline u32 gr_ds_hww_report_mask_sph1_err_report_f(void)
2224{
2225 return 0x2U;
2226}
2227static inline u32 gr_ds_hww_report_mask_sph2_err_report_f(void)
2228{
2229 return 0x4U;
2230}
2231static inline u32 gr_ds_hww_report_mask_sph3_err_report_f(void)
2232{
2233 return 0x8U;
2234}
2235static inline u32 gr_ds_hww_report_mask_sph4_err_report_f(void)
2236{
2237 return 0x10U;
2238}
2239static inline u32 gr_ds_hww_report_mask_sph5_err_report_f(void)
2240{
2241 return 0x20U;
2242}
2243static inline u32 gr_ds_hww_report_mask_sph6_err_report_f(void)
2244{
2245 return 0x40U;
2246}
2247static inline u32 gr_ds_hww_report_mask_sph7_err_report_f(void)
2248{
2249 return 0x80U;
2250}
2251static inline u32 gr_ds_hww_report_mask_sph8_err_report_f(void)
2252{
2253 return 0x100U;
2254}
2255static inline u32 gr_ds_hww_report_mask_sph9_err_report_f(void)
2256{
2257 return 0x200U;
2258}
2259static inline u32 gr_ds_hww_report_mask_sph10_err_report_f(void)
2260{
2261 return 0x400U;
2262}
2263static inline u32 gr_ds_hww_report_mask_sph11_err_report_f(void)
2264{
2265 return 0x800U;
2266}
2267static inline u32 gr_ds_hww_report_mask_sph12_err_report_f(void)
2268{
2269 return 0x1000U;
2270}
2271static inline u32 gr_ds_hww_report_mask_sph13_err_report_f(void)
2272{
2273 return 0x2000U;
2274}
2275static inline u32 gr_ds_hww_report_mask_sph14_err_report_f(void)
2276{
2277 return 0x4000U;
2278}
2279static inline u32 gr_ds_hww_report_mask_sph15_err_report_f(void)
2280{
2281 return 0x8000U;
2282}
2283static inline u32 gr_ds_hww_report_mask_sph16_err_report_f(void)
2284{
2285 return 0x10000U;
2286}
2287static inline u32 gr_ds_hww_report_mask_sph17_err_report_f(void)
2288{
2289 return 0x20000U;
2290}
2291static inline u32 gr_ds_hww_report_mask_sph18_err_report_f(void)
2292{
2293 return 0x40000U;
2294}
2295static inline u32 gr_ds_hww_report_mask_sph19_err_report_f(void)
2296{
2297 return 0x80000U;
2298}
2299static inline u32 gr_ds_hww_report_mask_sph20_err_report_f(void)
2300{
2301 return 0x100000U;
2302}
2303static inline u32 gr_ds_hww_report_mask_sph21_err_report_f(void)
2304{
2305 return 0x200000U;
2306}
2307static inline u32 gr_ds_hww_report_mask_sph22_err_report_f(void)
2308{
2309 return 0x400000U;
2310}
2311static inline u32 gr_ds_hww_report_mask_sph23_err_report_f(void)
2312{
2313 return 0x800000U;
2314}
2315static inline u32 gr_ds_hww_report_mask_2_r(void)
2316{
2317 return 0x0040584cU;
2318}
2319static inline u32 gr_ds_hww_report_mask_2_sph24_err_report_f(void)
2320{
2321 return 0x1U;
2322}
2323static inline u32 gr_ds_num_tpc_per_gpc_r(u32 i)
2324{
2325 return 0x00405870U + i*4U;
2326}
2327static inline u32 gr_scc_bundle_cb_base_r(void)
2328{
2329 return 0x00408004U;
2330}
2331static inline u32 gr_scc_bundle_cb_base_addr_39_8_f(u32 v)
2332{
2333 return (v & 0xffffffffU) << 0U;
2334}
2335static inline u32 gr_scc_bundle_cb_base_addr_39_8_align_bits_v(void)
2336{
2337 return 0x00000008U;
2338}
2339static inline u32 gr_scc_bundle_cb_size_r(void)
2340{
2341 return 0x00408008U;
2342}
2343static inline u32 gr_scc_bundle_cb_size_div_256b_f(u32 v)
2344{
2345 return (v & 0x7ffU) << 0U;
2346}
2347static inline u32 gr_scc_bundle_cb_size_div_256b__prod_v(void)
2348{
2349 return 0x00000030U;
2350}
2351static inline u32 gr_scc_bundle_cb_size_div_256b_byte_granularity_v(void)
2352{
2353 return 0x00000100U;
2354}
2355static inline u32 gr_scc_bundle_cb_size_valid_false_v(void)
2356{
2357 return 0x00000000U;
2358}
2359static inline u32 gr_scc_bundle_cb_size_valid_false_f(void)
2360{
2361 return 0x0U;
2362}
2363static inline u32 gr_scc_bundle_cb_size_valid_true_f(void)
2364{
2365 return 0x80000000U;
2366}
2367static inline u32 gr_scc_pagepool_base_r(void)
2368{
2369 return 0x0040800cU;
2370}
2371static inline u32 gr_scc_pagepool_base_addr_39_8_f(u32 v)
2372{
2373 return (v & 0xffffffffU) << 0U;
2374}
2375static inline u32 gr_scc_pagepool_base_addr_39_8_align_bits_v(void)
2376{
2377 return 0x00000008U;
2378}
2379static inline u32 gr_scc_pagepool_r(void)
2380{
2381 return 0x00408010U;
2382}
2383static inline u32 gr_scc_pagepool_total_pages_f(u32 v)
2384{
2385 return (v & 0x3ffU) << 0U;
2386}
2387static inline u32 gr_scc_pagepool_total_pages_hwmax_v(void)
2388{
2389 return 0x00000000U;
2390}
2391static inline u32 gr_scc_pagepool_total_pages_hwmax_value_v(void)
2392{
2393 return 0x00000200U;
2394}
2395static inline u32 gr_scc_pagepool_total_pages_byte_granularity_v(void)
2396{
2397 return 0x00000100U;
2398}
2399static inline u32 gr_scc_pagepool_max_valid_pages_s(void)
2400{
2401 return 10U;
2402}
2403static inline u32 gr_scc_pagepool_max_valid_pages_f(u32 v)
2404{
2405 return (v & 0x3ffU) << 10U;
2406}
2407static inline u32 gr_scc_pagepool_max_valid_pages_m(void)
2408{
2409 return 0x3ffU << 10U;
2410}
2411static inline u32 gr_scc_pagepool_max_valid_pages_v(u32 r)
2412{
2413 return (r >> 10U) & 0x3ffU;
2414}
2415static inline u32 gr_scc_pagepool_valid_true_f(void)
2416{
2417 return 0x80000000U;
2418}
2419static inline u32 gr_scc_init_r(void)
2420{
2421 return 0x0040802cU;
2422}
2423static inline u32 gr_scc_init_ram_trigger_f(void)
2424{
2425 return 0x1U;
2426}
2427static inline u32 gr_scc_hww_esr_r(void)
2428{
2429 return 0x00408030U;
2430}
2431static inline u32 gr_scc_hww_esr_reset_active_f(void)
2432{
2433 return 0x40000000U;
2434}
2435static inline u32 gr_scc_hww_esr_en_enable_f(void)
2436{
2437 return 0x80000000U;
2438}
2439static inline u32 gr_ssync_hww_esr_r(void)
2440{
2441 return 0x00405a14U;
2442}
2443static inline u32 gr_ssync_hww_esr_reset_active_f(void)
2444{
2445 return 0x40000000U;
2446}
2447static inline u32 gr_ssync_hww_esr_en_enable_f(void)
2448{
2449 return 0x80000000U;
2450}
2451static inline u32 gr_sked_hww_esr_r(void)
2452{
2453 return 0x00407020U;
2454}
2455static inline u32 gr_sked_hww_esr_reset_active_f(void)
2456{
2457 return 0x40000000U;
2458}
2459static inline u32 gr_sked_hww_esr_en_r(void)
2460{
2461 return 0x00407024U;
2462}
2463static inline u32 gr_sked_hww_esr_en_skedcheck18_l1_config_too_small_m(void)
2464{
2465 return 0x1U << 25U;
2466}
2467static inline u32 gr_sked_hww_esr_en_skedcheck18_l1_config_too_small_disabled_f(void)
2468{
2469 return 0x0U;
2470}
2471static inline u32 gr_sked_hww_esr_en_skedcheck18_l1_config_too_small_enabled_f(void)
2472{
2473 return 0x2000000U;
2474}
2475static inline u32 gr_cwd_fs_r(void)
2476{
2477 return 0x00405b00U;
2478}
2479static inline u32 gr_cwd_fs_num_gpcs_f(u32 v)
2480{
2481 return (v & 0xffU) << 0U;
2482}
2483static inline u32 gr_cwd_fs_num_tpcs_f(u32 v)
2484{
2485 return (v & 0xffU) << 8U;
2486}
2487static inline u32 gr_cwd_gpc_tpc_id_r(u32 i)
2488{
2489 return 0x00405b60U + i*4U;
2490}
2491static inline u32 gr_cwd_gpc_tpc_id_tpc0_s(void)
2492{
2493 return 4U;
2494}
2495static inline u32 gr_cwd_gpc_tpc_id_tpc0_f(u32 v)
2496{
2497 return (v & 0xfU) << 0U;
2498}
2499static inline u32 gr_cwd_gpc_tpc_id_gpc0_s(void)
2500{
2501 return 4U;
2502}
2503static inline u32 gr_cwd_gpc_tpc_id_gpc0_f(u32 v)
2504{
2505 return (v & 0xfU) << 4U;
2506}
2507static inline u32 gr_cwd_gpc_tpc_id_tpc1_f(u32 v)
2508{
2509 return (v & 0xfU) << 8U;
2510}
2511static inline u32 gr_cwd_sm_id_r(u32 i)
2512{
2513 return 0x00405ba0U + i*4U;
2514}
2515static inline u32 gr_cwd_sm_id__size_1_v(void)
2516{
2517 return 0x00000010U;
2518}
2519static inline u32 gr_cwd_sm_id_tpc0_f(u32 v)
2520{
2521 return (v & 0xffU) << 0U;
2522}
2523static inline u32 gr_cwd_sm_id_tpc1_f(u32 v)
2524{
2525 return (v & 0xffU) << 8U;
2526}
2527static inline u32 gr_gpc0_fs_gpc_r(void)
2528{
2529 return 0x00502608U;
2530}
2531static inline u32 gr_gpc0_fs_gpc_num_available_tpcs_v(u32 r)
2532{
2533 return (r >> 0U) & 0x1fU;
2534}
2535static inline u32 gr_gpc0_fs_gpc_num_available_zculls_v(u32 r)
2536{
2537 return (r >> 16U) & 0x1fU;
2538}
2539static inline u32 gr_gpc0_cfg_r(void)
2540{
2541 return 0x00502620U;
2542}
2543static inline u32 gr_gpc0_cfg_imem_sz_v(u32 r)
2544{
2545 return (r >> 0U) & 0xffU;
2546}
2547static inline u32 gr_gpccs_rc_lanes_r(void)
2548{
2549 return 0x00502880U;
2550}
2551static inline u32 gr_gpccs_rc_lanes_num_chains_s(void)
2552{
2553 return 6U;
2554}
2555static inline u32 gr_gpccs_rc_lanes_num_chains_f(u32 v)
2556{
2557 return (v & 0x3fU) << 0U;
2558}
2559static inline u32 gr_gpccs_rc_lanes_num_chains_m(void)
2560{
2561 return 0x3fU << 0U;
2562}
2563static inline u32 gr_gpccs_rc_lanes_num_chains_v(u32 r)
2564{
2565 return (r >> 0U) & 0x3fU;
2566}
2567static inline u32 gr_gpccs_rc_lane_size_r(void)
2568{
2569 return 0x00502910U;
2570}
2571static inline u32 gr_gpccs_rc_lane_size_v_s(void)
2572{
2573 return 24U;
2574}
2575static inline u32 gr_gpccs_rc_lane_size_v_f(u32 v)
2576{
2577 return (v & 0xffffffU) << 0U;
2578}
2579static inline u32 gr_gpccs_rc_lane_size_v_m(void)
2580{
2581 return 0xffffffU << 0U;
2582}
2583static inline u32 gr_gpccs_rc_lane_size_v_v(u32 r)
2584{
2585 return (r >> 0U) & 0xffffffU;
2586}
2587static inline u32 gr_gpccs_rc_lane_size_v_0_v(void)
2588{
2589 return 0x00000000U;
2590}
2591static inline u32 gr_gpccs_rc_lane_size_v_0_f(void)
2592{
2593 return 0x0U;
2594}
2595static inline u32 gr_gpc0_zcull_fs_r(void)
2596{
2597 return 0x00500910U;
2598}
2599static inline u32 gr_gpc0_zcull_fs_num_sms_f(u32 v)
2600{
2601 return (v & 0x1ffU) << 0U;
2602}
2603static inline u32 gr_gpc0_zcull_fs_num_active_banks_f(u32 v)
2604{
2605 return (v & 0xfU) << 16U;
2606}
2607static inline u32 gr_gpc0_zcull_ram_addr_r(void)
2608{
2609 return 0x00500914U;
2610}
2611static inline u32 gr_gpc0_zcull_ram_addr_tiles_per_hypertile_row_per_gpc_f(u32 v)
2612{
2613 return (v & 0xfU) << 0U;
2614}
2615static inline u32 gr_gpc0_zcull_ram_addr_row_offset_f(u32 v)
2616{
2617 return (v & 0xfU) << 8U;
2618}
2619static inline u32 gr_gpc0_zcull_sm_num_rcp_r(void)
2620{
2621 return 0x00500918U;
2622}
2623static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative_f(u32 v)
2624{
2625 return (v & 0xffffffU) << 0U;
2626}
2627static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative__max_v(void)
2628{
2629 return 0x00800000U;
2630}
2631static inline u32 gr_gpc0_zcull_total_ram_size_r(void)
2632{
2633 return 0x00500920U;
2634}
2635static inline u32 gr_gpc0_zcull_total_ram_size_num_aliquots_f(u32 v)
2636{
2637 return (v & 0xffffU) << 0U;
2638}
2639static inline u32 gr_gpc0_zcull_zcsize_r(u32 i)
2640{
2641 return 0x00500a04U + i*32U;
2642}
2643static inline u32 gr_gpc0_zcull_zcsize_height_subregion__multiple_v(void)
2644{
2645 return 0x00000040U;
2646}
2647static inline u32 gr_gpc0_zcull_zcsize_width_subregion__multiple_v(void)
2648{
2649 return 0x00000010U;
2650}
2651static inline u32 gr_gpc0_gpm_pd_sm_id_r(u32 i)
2652{
2653 return 0x00500c10U + i*4U;
2654}
2655static inline u32 gr_gpc0_gpm_pd_sm_id_id_f(u32 v)
2656{
2657 return (v & 0xffU) << 0U;
2658}
2659static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_r(u32 i)
2660{
2661 return 0x00500c30U + i*4U;
2662}
2663static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_mask_v(u32 r)
2664{
2665 return (r >> 0U) & 0xffU;
2666}
2667static inline u32 gr_gpc0_tpc0_pe_cfg_smid_r(void)
2668{
2669 return 0x00504088U;
2670}
2671static inline u32 gr_gpc0_tpc0_pe_cfg_smid_value_f(u32 v)
2672{
2673 return (v & 0xffffU) << 0U;
2674}
2675static inline u32 gr_gpc0_tpc0_sm_cfg_r(void)
2676{
2677 return 0x00504608U;
2678}
2679static inline u32 gr_gpc0_tpc0_sm_cfg_tpc_id_f(u32 v)
2680{
2681 return (v & 0xffffU) << 0U;
2682}
2683static inline u32 gr_gpc0_tpc0_sm_cfg_tpc_id_v(u32 r)
2684{
2685 return (r >> 0U) & 0xffffU;
2686}
2687static inline u32 gr_gpc0_tpc0_sm_arch_r(void)
2688{
2689 return 0x00504330U;
2690}
2691static inline u32 gr_gpc0_tpc0_sm_arch_warp_count_v(u32 r)
2692{
2693 return (r >> 0U) & 0xffU;
2694}
2695static inline u32 gr_gpc0_tpc0_sm_arch_spa_version_v(u32 r)
2696{
2697 return (r >> 8U) & 0xfffU;
2698}
2699static inline u32 gr_gpc0_tpc0_sm_arch_sm_version_v(u32 r)
2700{
2701 return (r >> 20U) & 0xfffU;
2702}
2703static inline u32 gr_gpc0_ppc0_pes_vsc_strem_r(void)
2704{
2705 return 0x00503018U;
2706}
2707static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_m(void)
2708{
2709 return 0x1U << 0U;
2710}
2711static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_true_f(void)
2712{
2713 return 0x1U;
2714}
2715static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_r(void)
2716{
2717 return 0x005030c0U;
2718}
2719static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_f(u32 v)
2720{
2721 return (v & 0x3fffffU) << 0U;
2722}
2723static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_m(void)
2724{
2725 return 0x3fffffU << 0U;
2726}
2727static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_default_v(void)
2728{
2729 return 0x00000480U;
2730}
2731static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_gfxp_v(void)
2732{
2733 return 0x00000d10U;
2734}
2735static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_granularity_v(void)
2736{
2737 return 0x00000020U;
2738}
2739static inline u32 gr_gpc0_ppc0_cbm_beta_cb_offset_r(void)
2740{
2741 return 0x005030f4U;
2742}
2743static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_r(void)
2744{
2745 return 0x005030e4U;
2746}
2747static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_f(u32 v)
2748{
2749 return (v & 0xffffU) << 0U;
2750}
2751static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_m(void)
2752{
2753 return 0xffffU << 0U;
2754}
2755static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_default_v(void)
2756{
2757 return 0x00000800U;
2758}
2759static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_granularity_v(void)
2760{
2761 return 0x00000020U;
2762}
2763static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_offset_r(void)
2764{
2765 return 0x005030f8U;
2766}
2767static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_r(void)
2768{
2769 return 0x005030f0U;
2770}
2771static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_f(u32 v)
2772{
2773 return (v & 0x3fffffU) << 0U;
2774}
2775static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_default_v(void)
2776{
2777 return 0x00000480U;
2778}
2779static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_r(void)
2780{
2781 return 0x00419e00U;
2782}
2783static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_base_addr_43_12_f(u32 v)
2784{
2785 return (v & 0xffffffffU) << 0U;
2786}
2787static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_r(void)
2788{
2789 return 0x00419e04U;
2790}
2791static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_s(void)
2792{
2793 return 21U;
2794}
2795static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_f(u32 v)
2796{
2797 return (v & 0x1fffffU) << 0U;
2798}
2799static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_m(void)
2800{
2801 return 0x1fffffU << 0U;
2802}
2803static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_v(u32 r)
2804{
2805 return (r >> 0U) & 0x1fffffU;
2806}
2807static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_granularity_f(void)
2808{
2809 return 0x80U;
2810}
2811static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_s(void)
2812{
2813 return 1U;
2814}
2815static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_f(u32 v)
2816{
2817 return (v & 0x1U) << 31U;
2818}
2819static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_m(void)
2820{
2821 return 0x1U << 31U;
2822}
2823static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_v(u32 r)
2824{
2825 return (r >> 31U) & 0x1U;
2826}
2827static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_true_f(void)
2828{
2829 return 0x80000000U;
2830}
2831static inline u32 gr_gpccs_falcon_addr_r(void)
2832{
2833 return 0x0041a0acU;
2834}
2835static inline u32 gr_gpccs_falcon_addr_lsb_s(void)
2836{
2837 return 6U;
2838}
2839static inline u32 gr_gpccs_falcon_addr_lsb_f(u32 v)
2840{
2841 return (v & 0x3fU) << 0U;
2842}
2843static inline u32 gr_gpccs_falcon_addr_lsb_m(void)
2844{
2845 return 0x3fU << 0U;
2846}
2847static inline u32 gr_gpccs_falcon_addr_lsb_v(u32 r)
2848{
2849 return (r >> 0U) & 0x3fU;
2850}
2851static inline u32 gr_gpccs_falcon_addr_lsb_init_v(void)
2852{
2853 return 0x00000000U;
2854}
2855static inline u32 gr_gpccs_falcon_addr_lsb_init_f(void)
2856{
2857 return 0x0U;
2858}
2859static inline u32 gr_gpccs_falcon_addr_msb_s(void)
2860{
2861 return 6U;
2862}
2863static inline u32 gr_gpccs_falcon_addr_msb_f(u32 v)
2864{
2865 return (v & 0x3fU) << 6U;
2866}
2867static inline u32 gr_gpccs_falcon_addr_msb_m(void)
2868{
2869 return 0x3fU << 6U;
2870}
2871static inline u32 gr_gpccs_falcon_addr_msb_v(u32 r)
2872{
2873 return (r >> 6U) & 0x3fU;
2874}
2875static inline u32 gr_gpccs_falcon_addr_msb_init_v(void)
2876{
2877 return 0x00000000U;
2878}
2879static inline u32 gr_gpccs_falcon_addr_msb_init_f(void)
2880{
2881 return 0x0U;
2882}
2883static inline u32 gr_gpccs_falcon_addr_ext_s(void)
2884{
2885 return 12U;
2886}
2887static inline u32 gr_gpccs_falcon_addr_ext_f(u32 v)
2888{
2889 return (v & 0xfffU) << 0U;
2890}
2891static inline u32 gr_gpccs_falcon_addr_ext_m(void)
2892{
2893 return 0xfffU << 0U;
2894}
2895static inline u32 gr_gpccs_falcon_addr_ext_v(u32 r)
2896{
2897 return (r >> 0U) & 0xfffU;
2898}
2899static inline u32 gr_gpccs_cpuctl_r(void)
2900{
2901 return 0x0041a100U;
2902}
2903static inline u32 gr_gpccs_cpuctl_startcpu_f(u32 v)
2904{
2905 return (v & 0x1U) << 1U;
2906}
2907static inline u32 gr_gpccs_dmactl_r(void)
2908{
2909 return 0x0041a10cU;
2910}
2911static inline u32 gr_gpccs_dmactl_require_ctx_f(u32 v)
2912{
2913 return (v & 0x1U) << 0U;
2914}
2915static inline u32 gr_gpccs_dmactl_dmem_scrubbing_m(void)
2916{
2917 return 0x1U << 1U;
2918}
2919static inline u32 gr_gpccs_dmactl_imem_scrubbing_m(void)
2920{
2921 return 0x1U << 2U;
2922}
2923static inline u32 gr_gpccs_imemc_r(u32 i)
2924{
2925 return 0x0041a180U + i*16U;
2926}
2927static inline u32 gr_gpccs_imemc_offs_f(u32 v)
2928{
2929 return (v & 0x3fU) << 2U;
2930}
2931static inline u32 gr_gpccs_imemc_blk_f(u32 v)
2932{
2933 return (v & 0xffU) << 8U;
2934}
2935static inline u32 gr_gpccs_imemc_aincw_f(u32 v)
2936{
2937 return (v & 0x1U) << 24U;
2938}
2939static inline u32 gr_gpccs_imemd_r(u32 i)
2940{
2941 return 0x0041a184U + i*16U;
2942}
2943static inline u32 gr_gpccs_imemt_r(u32 i)
2944{
2945 return 0x0041a188U + i*16U;
2946}
2947static inline u32 gr_gpccs_imemt__size_1_v(void)
2948{
2949 return 0x00000004U;
2950}
2951static inline u32 gr_gpccs_imemt_tag_f(u32 v)
2952{
2953 return (v & 0xffffU) << 0U;
2954}
2955static inline u32 gr_gpccs_dmemc_r(u32 i)
2956{
2957 return 0x0041a1c0U + i*8U;
2958}
2959static inline u32 gr_gpccs_dmemc_offs_f(u32 v)
2960{
2961 return (v & 0x3fU) << 2U;
2962}
2963static inline u32 gr_gpccs_dmemc_blk_f(u32 v)
2964{
2965 return (v & 0xffU) << 8U;
2966}
2967static inline u32 gr_gpccs_dmemc_aincw_f(u32 v)
2968{
2969 return (v & 0x1U) << 24U;
2970}
2971static inline u32 gr_gpccs_dmemd_r(u32 i)
2972{
2973 return 0x0041a1c4U + i*8U;
2974}
2975static inline u32 gr_gpccs_ctxsw_mailbox_r(u32 i)
2976{
2977 return 0x0041a800U + i*4U;
2978}
2979static inline u32 gr_gpccs_ctxsw_mailbox_value_f(u32 v)
2980{
2981 return (v & 0xffffffffU) << 0U;
2982}
2983static inline u32 gr_gpcs_swdx_bundle_cb_base_r(void)
2984{
2985 return 0x00418e24U;
2986}
2987static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_s(void)
2988{
2989 return 32U;
2990}
2991static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_f(u32 v)
2992{
2993 return (v & 0xffffffffU) << 0U;
2994}
2995static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_m(void)
2996{
2997 return 0xffffffffU << 0U;
2998}
2999static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_v(u32 r)
3000{
3001 return (r >> 0U) & 0xffffffffU;
3002}
3003static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_v(void)
3004{
3005 return 0x00000000U;
3006}
3007static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_f(void)
3008{
3009 return 0x0U;
3010}
3011static inline u32 gr_gpcs_swdx_bundle_cb_size_r(void)
3012{
3013 return 0x00418e28U;
3014}
3015static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_s(void)
3016{
3017 return 11U;
3018}
3019static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_f(u32 v)
3020{
3021 return (v & 0x7ffU) << 0U;
3022}
3023static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_m(void)
3024{
3025 return 0x7ffU << 0U;
3026}
3027static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_v(u32 r)
3028{
3029 return (r >> 0U) & 0x7ffU;
3030}
3031static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_v(void)
3032{
3033 return 0x00000030U;
3034}
3035static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_f(void)
3036{
3037 return 0x30U;
3038}
3039static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_s(void)
3040{
3041 return 1U;
3042}
3043static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_f(u32 v)
3044{
3045 return (v & 0x1U) << 31U;
3046}
3047static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_m(void)
3048{
3049 return 0x1U << 31U;
3050}
3051static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_v(u32 r)
3052{
3053 return (r >> 31U) & 0x1U;
3054}
3055static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_v(void)
3056{
3057 return 0x00000000U;
3058}
3059static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_f(void)
3060{
3061 return 0x0U;
3062}
3063static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_v(void)
3064{
3065 return 0x00000001U;
3066}
3067static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_f(void)
3068{
3069 return 0x80000000U;
3070}
3071static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_r(void)
3072{
3073 return 0x005001dcU;
3074}
3075static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_f(u32 v)
3076{
3077 return (v & 0xffffU) << 0U;
3078}
3079static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_default_v(void)
3080{
3081 return 0x000004b0U;
3082}
3083static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_byte_granularity_v(void)
3084{
3085 return 0x00000100U;
3086}
3087static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_r(void)
3088{
3089 return 0x005001d8U;
3090}
3091static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_f(u32 v)
3092{
3093 return (v & 0xffffffffU) << 0U;
3094}
3095static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_align_bits_v(void)
3096{
3097 return 0x00000008U;
3098}
3099static inline u32 gr_gpcs_swdx_beta_cb_ctrl_r(void)
3100{
3101 return 0x004181e4U;
3102}
3103static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_f(u32 v)
3104{
3105 return (v & 0xfffU) << 0U;
3106}
3107static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_gfxp_v(void)
3108{
3109 return 0x00000100U;
3110}
3111static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_r(void)
3112{
3113 return 0x0041befcU;
3114}
3115static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_cbes_reserve_f(u32 v)
3116{
3117 return (v & 0xfffU) << 0U;
3118}
3119static inline u32 gr_gpcs_swdx_tc_beta_cb_size_r(u32 i)
3120{
3121 return 0x00418ea0U + i*4U;
3122}
3123static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_f(u32 v)
3124{
3125 return (v & 0x3fffffU) << 0U;
3126}
3127static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_m(void)
3128{
3129 return 0x3fffffU << 0U;
3130}
3131static inline u32 gr_gpcs_swdx_dss_zbc_color_r_r(u32 i)
3132{
3133 return 0x00418010U + i*4U;
3134}
3135static inline u32 gr_gpcs_swdx_dss_zbc_color_r_val_f(u32 v)
3136{
3137 return (v & 0xffffffffU) << 0U;
3138}
3139static inline u32 gr_gpcs_swdx_dss_zbc_color_g_r(u32 i)
3140{
3141 return 0x0041804cU + i*4U;
3142}
3143static inline u32 gr_gpcs_swdx_dss_zbc_color_g_val_f(u32 v)
3144{
3145 return (v & 0xffffffffU) << 0U;
3146}
3147static inline u32 gr_gpcs_swdx_dss_zbc_color_b_r(u32 i)
3148{
3149 return 0x00418088U + i*4U;
3150}
3151static inline u32 gr_gpcs_swdx_dss_zbc_color_b_val_f(u32 v)
3152{
3153 return (v & 0xffffffffU) << 0U;
3154}
3155static inline u32 gr_gpcs_swdx_dss_zbc_color_a_r(u32 i)
3156{
3157 return 0x004180c4U + i*4U;
3158}
3159static inline u32 gr_gpcs_swdx_dss_zbc_color_a_val_f(u32 v)
3160{
3161 return (v & 0xffffffffU) << 0U;
3162}
3163static inline u32 gr_gpcs_swdx_dss_zbc_c_01_to_04_format_r(void)
3164{
3165 return 0x00418100U;
3166}
3167static inline u32 gr_gpcs_swdx_dss_zbc_z_r(u32 i)
3168{
3169 return 0x00418110U + i*4U;
3170}
3171static inline u32 gr_gpcs_swdx_dss_zbc_z_val_f(u32 v)
3172{
3173 return (v & 0xffffffffU) << 0U;
3174}
3175static inline u32 gr_gpcs_swdx_dss_zbc_z_01_to_04_format_r(void)
3176{
3177 return 0x0041814cU;
3178}
3179static inline u32 gr_gpcs_swdx_dss_zbc_s_r(u32 i)
3180{
3181 return 0x0041815cU + i*4U;
3182}
3183static inline u32 gr_gpcs_swdx_dss_zbc_s_val_f(u32 v)
3184{
3185 return (v & 0xffU) << 0U;
3186}
3187static inline u32 gr_gpcs_swdx_dss_zbc_s_01_to_04_format_r(void)
3188{
3189 return 0x00418198U;
3190}
3191static inline u32 gr_gpcs_setup_attrib_cb_base_r(void)
3192{
3193 return 0x00418810U;
3194}
3195static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_f(u32 v)
3196{
3197 return (v & 0xfffffffU) << 0U;
3198}
3199static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_align_bits_v(void)
3200{
3201 return 0x0000000cU;
3202}
3203static inline u32 gr_gpcs_setup_attrib_cb_base_valid_true_f(void)
3204{
3205 return 0x80000000U;
3206}
3207static inline u32 gr_crstr_gpc_map_r(u32 i)
3208{
3209 return 0x00418b08U + i*4U;
3210}
3211static inline u32 gr_crstr_gpc_map_tile0_f(u32 v)
3212{
3213 return (v & 0x1fU) << 0U;
3214}
3215static inline u32 gr_crstr_gpc_map_tile1_f(u32 v)
3216{
3217 return (v & 0x1fU) << 5U;
3218}
3219static inline u32 gr_crstr_gpc_map_tile2_f(u32 v)
3220{
3221 return (v & 0x1fU) << 10U;
3222}
3223static inline u32 gr_crstr_gpc_map_tile3_f(u32 v)
3224{
3225 return (v & 0x1fU) << 15U;
3226}
3227static inline u32 gr_crstr_gpc_map_tile4_f(u32 v)
3228{
3229 return (v & 0x1fU) << 20U;
3230}
3231static inline u32 gr_crstr_gpc_map_tile5_f(u32 v)
3232{
3233 return (v & 0x1fU) << 25U;
3234}
3235static inline u32 gr_crstr_map_table_cfg_r(void)
3236{
3237 return 0x00418bb8U;
3238}
3239static inline u32 gr_crstr_map_table_cfg_row_offset_f(u32 v)
3240{
3241 return (v & 0xffU) << 0U;
3242}
3243static inline u32 gr_crstr_map_table_cfg_num_entries_f(u32 v)
3244{
3245 return (v & 0xffU) << 8U;
3246}
3247static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_r(u32 i)
3248{
3249 return 0x00418980U + i*4U;
3250}
3251static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_0_f(u32 v)
3252{
3253 return (v & 0x7U) << 0U;
3254}
3255static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_1_f(u32 v)
3256{
3257 return (v & 0x7U) << 4U;
3258}
3259static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_2_f(u32 v)
3260{
3261 return (v & 0x7U) << 8U;
3262}
3263static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_3_f(u32 v)
3264{
3265 return (v & 0x7U) << 12U;
3266}
3267static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_4_f(u32 v)
3268{
3269 return (v & 0x7U) << 16U;
3270}
3271static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_5_f(u32 v)
3272{
3273 return (v & 0x7U) << 20U;
3274}
3275static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_6_f(u32 v)
3276{
3277 return (v & 0x7U) << 24U;
3278}
3279static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_7_f(u32 v)
3280{
3281 return (v & 0x7U) << 28U;
3282}
3283static inline u32 gr_gpcs_gpm_pd_cfg_r(void)
3284{
3285 return 0x00418c6cU;
3286}
3287static inline u32 gr_gpcs_gcc_pagepool_base_r(void)
3288{
3289 return 0x00419004U;
3290}
3291static inline u32 gr_gpcs_gcc_pagepool_base_addr_39_8_f(u32 v)
3292{
3293 return (v & 0xffffffffU) << 0U;
3294}
3295static inline u32 gr_gpcs_gcc_pagepool_r(void)
3296{
3297 return 0x00419008U;
3298}
3299static inline u32 gr_gpcs_gcc_pagepool_total_pages_f(u32 v)
3300{
3301 return (v & 0x3ffU) << 0U;
3302}
3303static inline u32 gr_gpcs_tpcs_pe_vaf_r(void)
3304{
3305 return 0x0041980cU;
3306}
3307static inline u32 gr_gpcs_tpcs_pe_vaf_fast_mode_switch_true_f(void)
3308{
3309 return 0x10U;
3310}
3311static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_r(void)
3312{
3313 return 0x00419848U;
3314}
3315static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_v_f(u32 v)
3316{
3317 return (v & 0xfffffffU) << 0U;
3318}
3319static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_f(u32 v)
3320{
3321 return (v & 0x1U) << 28U;
3322}
3323static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_true_f(void)
3324{
3325 return 0x10000000U;
3326}
3327static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_r(void)
3328{
3329 return 0x00419c00U;
3330}
3331static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_disabled_f(void)
3332{
3333 return 0x0U;
3334}
3335static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_enabled_f(void)
3336{
3337 return 0x8U;
3338}
3339static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_r(void)
3340{
3341 return 0x00419c2cU;
3342}
3343static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_v_f(u32 v)
3344{
3345 return (v & 0xfffffffU) << 0U;
3346}
3347static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_f(u32 v)
3348{
3349 return (v & 0x1U) << 28U;
3350}
3351static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_true_f(void)
3352{
3353 return 0x10000000U;
3354}
3355static inline u32 gr_gpcs_tpcs_sms_hww_warp_esr_report_mask_r(void)
3356{
3357 return 0x00419ea8U;
3358}
3359static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_r(void)
3360{
3361 return 0x00504728U;
3362}
3363static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_stack_error_report_f(void)
3364{
3365 return 0x2U;
3366}
3367static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_api_stack_error_report_f(void)
3368{
3369 return 0x4U;
3370}
3371static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_pc_wrap_report_f(void)
3372{
3373 return 0x10U;
3374}
3375static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_misaligned_pc_report_f(void)
3376{
3377 return 0x20U;
3378}
3379static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_pc_overflow_report_f(void)
3380{
3381 return 0x40U;
3382}
3383static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_misaligned_reg_report_f(void)
3384{
3385 return 0x100U;
3386}
3387static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_illegal_instr_encoding_report_f(void)
3388{
3389 return 0x200U;
3390}
3391static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_illegal_instr_param_report_f(void)
3392{
3393 return 0x800U;
3394}
3395static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_oor_reg_report_f(void)
3396{
3397 return 0x2000U;
3398}
3399static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_oor_addr_report_f(void)
3400{
3401 return 0x4000U;
3402}
3403static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_misaligned_addr_report_f(void)
3404{
3405 return 0x8000U;
3406}
3407static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_invalid_addr_space_report_f(void)
3408{
3409 return 0x10000U;
3410}
3411static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_invalid_const_addr_ldc_report_f(void)
3412{
3413 return 0x40000U;
3414}
3415static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_mmu_fault_report_f(void)
3416{
3417 return 0x800000U;
3418}
3419static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_stack_overflow_report_f(void)
3420{
3421 return 0x400000U;
3422}
3423static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_mmu_nack_report_f(void)
3424{
3425 return 0x4000000U;
3426}
3427static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_r(void)
3428{
3429 return 0x00419d0cU;
3430}
3431static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_sm_enabled_f(void)
3432{
3433 return 0x2U;
3434}
3435static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_tex_enabled_f(void)
3436{
3437 return 0x1U;
3438}
3439static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_mpc_enabled_f(void)
3440{
3441 return 0x10U;
3442}
3443static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
3444{
3445 return 0x0050450cU;
3446}
3447static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_v(u32 r)
3448{
3449 return (r >> 1U) & 0x1U;
3450}
3451static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_enabled_f(void)
3452{
3453 return 0x2U;
3454}
3455static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_mpc_enabled_f(void)
3456{
3457 return 0x10U;
3458}
3459static inline u32 gr_gpcs_gpccs_gpc_exception_en_r(void)
3460{
3461 return 0x0041ac94U;
3462}
3463static inline u32 gr_gpcs_gpccs_gpc_exception_en_gcc_f(u32 v)
3464{
3465 return (v & 0x1U) << 2U;
3466}
3467static inline u32 gr_gpcs_gpccs_gpc_exception_en_tpc_f(u32 v)
3468{
3469 return (v & 0xffU) << 16U;
3470}
3471static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
3472{
3473 return 0x00502c90U;
3474}
3475static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r)
3476{
3477 return (r >> 2U) & 0x1U;
3478}
3479static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
3480{
3481 return (r >> 16U) & 0xffU;
3482}
3483static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_0_pending_v(void)
3484{
3485 return 0x00000001U;
3486}
3487static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_r(void)
3488{
3489 return 0x00504508U;
3490}
3491static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_v(u32 r)
3492{
3493 return (r >> 0U) & 0x1U;
3494}
3495static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_pending_v(void)
3496{
3497 return 0x00000001U;
3498}
3499static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_v(u32 r)
3500{
3501 return (r >> 1U) & 0x1U;
3502}
3503static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_pending_v(void)
3504{
3505 return 0x00000001U;
3506}
3507static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_mpc_m(void)
3508{
3509 return 0x1U << 4U;
3510}
3511static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_mpc_pending_f(void)
3512{
3513 return 0x10U;
3514}
3515static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_r(void)
3516{
3517 return 0x00504704U;
3518}
3519static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_m(void)
3520{
3521 return 0x1U << 0U;
3522}
3523static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_v(u32 r)
3524{
3525 return (r >> 0U) & 0x1U;
3526}
3527static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_on_v(void)
3528{
3529 return 0x00000001U;
3530}
3531static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_on_f(void)
3532{
3533 return 0x1U;
3534}
3535static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_off_v(void)
3536{
3537 return 0x00000000U;
3538}
3539static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_off_f(void)
3540{
3541 return 0x0U;
3542}
3543static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_stop_trigger_m(void)
3544{
3545 return 0x1U << 31U;
3546}
3547static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_stop_trigger_enable_f(void)
3548{
3549 return 0x80000000U;
3550}
3551static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_stop_trigger_disable_f(void)
3552{
3553 return 0x0U;
3554}
3555static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_single_step_mode_m(void)
3556{
3557 return 0x1U << 3U;
3558}
3559static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_single_step_mode_enable_f(void)
3560{
3561 return 0x8U;
3562}
3563static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_single_step_mode_disable_f(void)
3564{
3565 return 0x0U;
3566}
3567static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_run_trigger_task_f(void)
3568{
3569 return 0x40000000U;
3570}
3571static inline u32 gr_gpc0_tpc0_sm0_warp_valid_mask_0_r(void)
3572{
3573 return 0x00504708U;
3574}
3575static inline u32 gr_gpc0_tpc0_sm0_warp_valid_mask_1_r(void)
3576{
3577 return 0x0050470cU;
3578}
3579static inline u32 gr_gpc0_tpc0_sm0_dbgr_bpt_pause_mask_0_r(void)
3580{
3581 return 0x00504710U;
3582}
3583static inline u32 gr_gpc0_tpc0_sm0_dbgr_bpt_pause_mask_1_r(void)
3584{
3585 return 0x00504714U;
3586}
3587static inline u32 gr_gpc0_tpc0_sm0_dbgr_bpt_trap_mask_0_r(void)
3588{
3589 return 0x00504718U;
3590}
3591static inline u32 gr_gpc0_tpc0_sm0_dbgr_bpt_trap_mask_1_r(void)
3592{
3593 return 0x0050471cU;
3594}
3595static inline u32 gr_gpcs_tpcs_sms_dbgr_bpt_pause_mask_0_r(void)
3596{
3597 return 0x00419e90U;
3598}
3599static inline u32 gr_gpcs_tpcs_sms_dbgr_bpt_pause_mask_1_r(void)
3600{
3601 return 0x00419e94U;
3602}
3603static inline u32 gr_gpcs_tpcs_sms_dbgr_status0_r(void)
3604{
3605 return 0x00419e80U;
3606}
3607static inline u32 gr_gpc0_tpc0_sm0_dbgr_status0_r(void)
3608{
3609 return 0x00504700U;
3610}
3611static inline u32 gr_gpc0_tpc0_sm0_dbgr_status0_sm_in_trap_mode_v(u32 r)
3612{
3613 return (r >> 0U) & 0x1U;
3614}
3615static inline u32 gr_gpc0_tpc0_sm0_dbgr_status0_locked_down_v(u32 r)
3616{
3617 return (r >> 4U) & 0x1U;
3618}
3619static inline u32 gr_gpc0_tpc0_sm0_dbgr_status0_locked_down_true_v(void)
3620{
3621 return 0x00000001U;
3622}
3623static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_r(void)
3624{
3625 return 0x00504730U;
3626}
3627static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_v(u32 r)
3628{
3629 return (r >> 0U) & 0xffffU;
3630}
3631static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_none_v(void)
3632{
3633 return 0x00000000U;
3634}
3635static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_none_f(void)
3636{
3637 return 0x0U;
3638}
3639static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_stack_error_f(void)
3640{
3641 return 0x1U;
3642}
3643static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_api_stack_error_f(void)
3644{
3645 return 0x2U;
3646}
3647static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_pc_wrap_f(void)
3648{
3649 return 0x4U;
3650}
3651static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_misaligned_pc_f(void)
3652{
3653 return 0x5U;
3654}
3655static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_pc_overflow_f(void)
3656{
3657 return 0x6U;
3658}
3659static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_misaligned_reg_f(void)
3660{
3661 return 0x8U;
3662}
3663static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_illegal_instr_encoding_f(void)
3664{
3665 return 0x9U;
3666}
3667static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_illegal_instr_param_f(void)
3668{
3669 return 0xbU;
3670}
3671static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_oor_reg_f(void)
3672{
3673 return 0xdU;
3674}
3675static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_oor_addr_f(void)
3676{
3677 return 0xeU;
3678}
3679static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_misaligned_addr_f(void)
3680{
3681 return 0xfU;
3682}
3683static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_invalid_addr_space_f(void)
3684{
3685 return 0x10U;
3686}
3687static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_invalid_const_addr_ldc_f(void)
3688{
3689 return 0x12U;
3690}
3691static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_stack_overflow_f(void)
3692{
3693 return 0x16U;
3694}
3695static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_mmu_fault_f(void)
3696{
3697 return 0x17U;
3698}
3699static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_tex_format_f(void)
3700{
3701 return 0x18U;
3702}
3703static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_tex_layout_f(void)
3704{
3705 return 0x19U;
3706}
3707static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_mmu_nack_f(void)
3708{
3709 return 0x20U;
3710}
3711static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_wrap_id_m(void)
3712{
3713 return 0xffU << 16U;
3714}
3715static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_addr_error_type_m(void)
3716{
3717 return 0xfU << 24U;
3718}
3719static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_addr_error_type_none_f(void)
3720{
3721 return 0x0U;
3722}
3723static inline u32 gr_gpc0_tpc0_sm_tpc_esr_sm_sel_r(void)
3724{
3725 return 0x0050460cU;
3726}
3727static inline u32 gr_gpc0_tpc0_sm_tpc_esr_sm_sel_sm0_error_v(u32 r)
3728{
3729 return (r >> 0U) & 0x1U;
3730}
3731static inline u32 gr_gpc0_tpc0_sm_tpc_esr_sm_sel_sm1_error_v(u32 r)
3732{
3733 return (r >> 1U) & 0x1U;
3734}
3735static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_pc_r(void)
3736{
3737 return 0x00504738U;
3738}
3739static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_pc_hi_r(void)
3740{
3741 return 0x0050473cU;
3742}
3743static inline u32 gr_gpc0_tpc0_sm_halfctl_ctrl_r(void)
3744{
3745 return 0x005043a0U;
3746}
3747static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_r(void)
3748{
3749 return 0x00419ba0U;
3750}
3751static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_m(void)
3752{
3753 return 0x1U << 4U;
3754}
3755static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_f(u32 v)
3756{
3757 return (v & 0x1U) << 4U;
3758}
3759static inline u32 gr_gpc0_tpc0_sm_debug_sfe_control_r(void)
3760{
3761 return 0x005043b0U;
3762}
3763static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_r(void)
3764{
3765 return 0x00419bb0U;
3766}
3767static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_m(void)
3768{
3769 return 0x1U << 0U;
3770}
3771static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_f(u32 v)
3772{
3773 return (v & 0x1U) << 0U;
3774}
3775static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_r(void)
3776{
3777 return 0x0041be08U;
3778}
3779static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_fast_mode_switch_true_f(void)
3780{
3781 return 0x4U;
3782}
3783static inline u32 gr_ppcs_wwdx_map_gpc_map_r(u32 i)
3784{
3785 return 0x0041bf00U + i*4U;
3786}
3787static inline u32 gr_ppcs_wwdx_map_table_cfg_r(void)
3788{
3789 return 0x0041bfd0U;
3790}
3791static inline u32 gr_ppcs_wwdx_map_table_cfg_row_offset_f(u32 v)
3792{
3793 return (v & 0xffU) << 0U;
3794}
3795static inline u32 gr_ppcs_wwdx_map_table_cfg_num_entries_f(u32 v)
3796{
3797 return (v & 0xffU) << 8U;
3798}
3799static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_num_entries_f(u32 v)
3800{
3801 return (v & 0x1fU) << 16U;
3802}
3803static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_shift_value_f(u32 v)
3804{
3805 return (v & 0x7U) << 21U;
3806}
3807static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_r(void)
3808{
3809 return 0x0041bfd4U;
3810}
3811static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_conservative_f(u32 v)
3812{
3813 return (v & 0xffffffU) << 0U;
3814}
3815static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_r(u32 i)
3816{
3817 return 0x0041bfb0U + i*4U;
3818}
3819static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff__size_1_v(void)
3820{
3821 return 0x00000005U;
3822}
3823static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_0_mod_value_f(u32 v)
3824{
3825 return (v & 0xffU) << 0U;
3826}
3827static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_1_mod_value_f(u32 v)
3828{
3829 return (v & 0xffU) << 8U;
3830}
3831static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_2_mod_value_f(u32 v)
3832{
3833 return (v & 0xffU) << 16U;
3834}
3835static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_3_mod_value_f(u32 v)
3836{
3837 return (v & 0xffU) << 24U;
3838}
3839static inline u32 gr_bes_zrop_settings_r(void)
3840{
3841 return 0x00408850U;
3842}
3843static inline u32 gr_bes_zrop_settings_num_active_ltcs_f(u32 v)
3844{
3845 return (v & 0xfU) << 0U;
3846}
3847static inline u32 gr_be0_crop_debug3_r(void)
3848{
3849 return 0x00410108U;
3850}
3851static inline u32 gr_bes_crop_debug3_r(void)
3852{
3853 return 0x00408908U;
3854}
3855static inline u32 gr_bes_crop_debug3_comp_vdc_4to2_disable_m(void)
3856{
3857 return 0x1U << 31U;
3858}
3859static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_m(void)
3860{
3861 return 0x1U << 1U;
3862}
3863static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_disabled_f(void)
3864{
3865 return 0x0U;
3866}
3867static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_enabled_f(void)
3868{
3869 return 0x2U;
3870}
3871static inline u32 gr_bes_crop_debug3_blendopt_fill_override_m(void)
3872{
3873 return 0x1U << 2U;
3874}
3875static inline u32 gr_bes_crop_debug3_blendopt_fill_override_disabled_f(void)
3876{
3877 return 0x0U;
3878}
3879static inline u32 gr_bes_crop_debug3_blendopt_fill_override_enabled_f(void)
3880{
3881 return 0x4U;
3882}
3883static inline u32 gr_bes_crop_debug4_r(void)
3884{
3885 return 0x0040894cU;
3886}
3887static inline u32 gr_bes_crop_debug4_clamp_fp_blend_m(void)
3888{
3889 return 0x1U << 18U;
3890}
3891static inline u32 gr_bes_crop_debug4_clamp_fp_blend_to_inf_f(void)
3892{
3893 return 0x0U;
3894}
3895static inline u32 gr_bes_crop_debug4_clamp_fp_blend_to_maxval_f(void)
3896{
3897 return 0x40000U;
3898}
3899static inline u32 gr_bes_crop_settings_r(void)
3900{
3901 return 0x00408958U;
3902}
3903static inline u32 gr_bes_crop_settings_num_active_ltcs_f(u32 v)
3904{
3905 return (v & 0xfU) << 0U;
3906}
3907static inline u32 gr_zcull_bytes_per_aliquot_per_gpu_v(void)
3908{
3909 return 0x00000020U;
3910}
3911static inline u32 gr_zcull_save_restore_header_bytes_per_gpc_v(void)
3912{
3913 return 0x00000020U;
3914}
3915static inline u32 gr_zcull_save_restore_subregion_header_bytes_per_gpc_v(void)
3916{
3917 return 0x000000c0U;
3918}
3919static inline u32 gr_zcull_subregion_qty_v(void)
3920{
3921 return 0x00000010U;
3922}
3923static inline u32 gr_gpcs_tpcs_tex_in_dbg_r(void)
3924{
3925 return 0x00419a00U;
3926}
3927static inline u32 gr_gpcs_tpcs_tex_in_dbg_tsl1_rvch_invalidate_f(u32 v)
3928{
3929 return (v & 0x1U) << 19U;
3930}
3931static inline u32 gr_gpcs_tpcs_tex_in_dbg_tsl1_rvch_invalidate_m(void)
3932{
3933 return 0x1U << 19U;
3934}
3935static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_r(void)
3936{
3937 return 0x00419bf0U;
3938}
3939static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_ld_f(u32 v)
3940{
3941 return (v & 0x1U) << 5U;
3942}
3943static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_ld_m(void)
3944{
3945 return 0x1U << 5U;
3946}
3947static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_st_f(u32 v)
3948{
3949 return (v & 0x1U) << 10U;
3950}
3951static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_st_m(void)
3952{
3953 return 0x1U << 10U;
3954}
3955static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_always_cut_collector_m(void)
3956{
3957 return 0x1U << 28U;
3958}
3959static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_always_cut_collector_disable_f(void)
3960{
3961 return 0x0U;
3962}
3963static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_always_cut_collector_enable_f(void)
3964{
3965 return 0x10000000U;
3966}
3967static inline u32 gr_fe_pwr_mode_r(void)
3968{
3969 return 0x00404170U;
3970}
3971static inline u32 gr_fe_pwr_mode_mode_auto_f(void)
3972{
3973 return 0x0U;
3974}
3975static inline u32 gr_fe_pwr_mode_mode_force_on_f(void)
3976{
3977 return 0x2U;
3978}
3979static inline u32 gr_fe_pwr_mode_req_v(u32 r)
3980{
3981 return (r >> 4U) & 0x1U;
3982}
3983static inline u32 gr_fe_pwr_mode_req_send_f(void)
3984{
3985 return 0x10U;
3986}
3987static inline u32 gr_fe_pwr_mode_req_done_v(void)
3988{
3989 return 0x00000000U;
3990}
3991static inline u32 gr_gpcs_pri_mmu_ctrl_r(void)
3992{
3993 return 0x00418880U;
3994}
3995static inline u32 gr_gpcs_pri_mmu_ctrl_vm_pg_size_m(void)
3996{
3997 return 0x1U << 0U;
3998}
3999static inline u32 gr_gpcs_pri_mmu_ctrl_use_pdb_big_page_size_m(void)
4000{
4001 return 0x1U << 11U;
4002}
4003static inline u32 gr_gpcs_pri_mmu_ctrl_vol_fault_m(void)
4004{
4005 return 0x1U << 1U;
4006}
4007static inline u32 gr_gpcs_pri_mmu_ctrl_comp_fault_m(void)
4008{
4009 return 0x1U << 2U;
4010}
4011static inline u32 gr_gpcs_pri_mmu_ctrl_miss_gran_m(void)
4012{
4013 return 0x3U << 3U;
4014}
4015static inline u32 gr_gpcs_pri_mmu_ctrl_cache_mode_m(void)
4016{
4017 return 0x3U << 5U;
4018}
4019static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_aperture_m(void)
4020{
4021 return 0x3U << 28U;
4022}
4023static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_vol_m(void)
4024{
4025 return 0x1U << 30U;
4026}
4027static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_disable_m(void)
4028{
4029 return 0x1U << 31U;
4030}
4031static inline u32 gr_gpcs_pri_mmu_pm_unit_mask_r(void)
4032{
4033 return 0x00418890U;
4034}
4035static inline u32 gr_gpcs_pri_mmu_pm_req_mask_r(void)
4036{
4037 return 0x00418894U;
4038}
4039static inline u32 gr_gpcs_pri_mmu_debug_ctrl_r(void)
4040{
4041 return 0x004188b0U;
4042}
4043static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_v(u32 r)
4044{
4045 return (r >> 16U) & 0x1U;
4046}
4047static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v(void)
4048{
4049 return 0x00000001U;
4050}
4051static inline u32 gr_gpcs_pri_mmu_debug_wr_r(void)
4052{
4053 return 0x004188b4U;
4054}
4055static inline u32 gr_gpcs_pri_mmu_debug_rd_r(void)
4056{
4057 return 0x004188b8U;
4058}
4059static inline u32 gr_gpcs_mmu_num_active_ltcs_r(void)
4060{
4061 return 0x004188acU;
4062}
4063static inline u32 gr_gpcs_tpcs_sms_dbgr_control0_r(void)
4064{
4065 return 0x00419e84U;
4066}
4067static inline u32 gr_fe_gfxp_wfi_timeout_r(void)
4068{
4069 return 0x004041c0U;
4070}
4071static inline u32 gr_fe_gfxp_wfi_timeout_count_f(u32 v)
4072{
4073 return (v & 0xffffffffU) << 0U;
4074}
4075static inline u32 gr_fe_gfxp_wfi_timeout_count_disabled_f(void)
4076{
4077 return 0x0U;
4078}
4079static inline u32 gr_gpcs_tpcs_sm_texio_control_r(void)
4080{
4081 return 0x00419bd8U;
4082}
4083static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_f(u32 v)
4084{
4085 return (v & 0x7U) << 8U;
4086}
4087static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_m(void)
4088{
4089 return 0x7U << 8U;
4090}
4091static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_arm_63_48_match_f(void)
4092{
4093 return 0x100U;
4094}
4095static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_r(void)
4096{
4097 return 0x00419ba4U;
4098}
4099static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_m(void)
4100{
4101 return 0x3U << 11U;
4102}
4103static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_disable_f(void)
4104{
4105 return 0x1000U;
4106}
4107static inline u32 gr_gpcs_tc_debug0_r(void)
4108{
4109 return 0x00418708U;
4110}
4111static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_f(u32 v)
4112{
4113 return (v & 0x1ffU) << 0U;
4114}
4115static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_m(void)
4116{
4117 return 0x1ffU << 0U;
4118}
4119#endif
diff --git a/include/nvgpu/hw/gv100/hw_ioctrl_gv100.h b/include/nvgpu/hw/gv100/hw_ioctrl_gv100.h
new file mode 100644
index 0000000..c27e607
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_ioctrl_gv100.h
@@ -0,0 +1,331 @@
1/*
2 * Copyright (c) 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_ioctrl_gv100_h_
57#define _hw_ioctrl_gv100_h_
58
59static inline u32 ioctrl_reset_r(void)
60{
61 return 0x00000140U;
62}
63static inline u32 ioctrl_reset_sw_post_reset_delay_microseconds_v(void)
64{
65 return 0x00000008U;
66}
67static inline u32 ioctrl_reset_linkreset_f(u32 v)
68{
69 return (v & 0x3fU) << 8U;
70}
71static inline u32 ioctrl_reset_linkreset_m(void)
72{
73 return 0x3fU << 8U;
74}
75static inline u32 ioctrl_reset_linkreset_v(u32 r)
76{
77 return (r >> 8U) & 0x3fU;
78}
79static inline u32 ioctrl_debug_reset_r(void)
80{
81 return 0x00000144U;
82}
83static inline u32 ioctrl_debug_reset_link_f(u32 v)
84{
85 return (v & 0x3fU) << 0U;
86}
87static inline u32 ioctrl_debug_reset_link_m(void)
88{
89 return 0x3fU << 0U;
90}
91static inline u32 ioctrl_debug_reset_link_v(u32 r)
92{
93 return (r >> 0U) & 0x3fU;
94}
95static inline u32 ioctrl_debug_reset_common_f(u32 v)
96{
97 return (v & 0x1U) << 31U;
98}
99static inline u32 ioctrl_debug_reset_common_m(void)
100{
101 return 0x1U << 31U;
102}
103static inline u32 ioctrl_debug_reset_common_v(u32 r)
104{
105 return (r >> 31U) & 0x1U;
106}
107static inline u32 ioctrl_clock_control_r(u32 i)
108{
109 return 0x00000180U + i*4U;
110}
111static inline u32 ioctrl_clock_control__size_1_v(void)
112{
113 return 0x00000006U;
114}
115static inline u32 ioctrl_clock_control_clkdis_f(u32 v)
116{
117 return (v & 0x1U) << 0U;
118}
119static inline u32 ioctrl_clock_control_clkdis_m(void)
120{
121 return 0x1U << 0U;
122}
123static inline u32 ioctrl_clock_control_clkdis_v(u32 r)
124{
125 return (r >> 0U) & 0x1U;
126}
127static inline u32 ioctrl_top_intr_0_status_r(void)
128{
129 return 0x00000200U;
130}
131static inline u32 ioctrl_top_intr_0_status_link_f(u32 v)
132{
133 return (v & 0x3fU) << 0U;
134}
135static inline u32 ioctrl_top_intr_0_status_link_m(void)
136{
137 return 0x3fU << 0U;
138}
139static inline u32 ioctrl_top_intr_0_status_link_v(u32 r)
140{
141 return (r >> 0U) & 0x3fU;
142}
143static inline u32 ioctrl_top_intr_0_status_common_f(u32 v)
144{
145 return (v & 0x1U) << 31U;
146}
147static inline u32 ioctrl_top_intr_0_status_common_m(void)
148{
149 return 0x1U << 31U;
150}
151static inline u32 ioctrl_top_intr_0_status_common_v(u32 r)
152{
153 return (r >> 31U) & 0x1U;
154}
155static inline u32 ioctrl_common_intr_0_mask_r(void)
156{
157 return 0x00000220U;
158}
159static inline u32 ioctrl_common_intr_0_mask_fatal_f(u32 v)
160{
161 return (v & 0x1U) << 0U;
162}
163static inline u32 ioctrl_common_intr_0_mask_fatal_v(u32 r)
164{
165 return (r >> 0U) & 0x1U;
166}
167static inline u32 ioctrl_common_intr_0_mask_nonfatal_f(u32 v)
168{
169 return (v & 0x1U) << 1U;
170}
171static inline u32 ioctrl_common_intr_0_mask_nonfatal_v(u32 r)
172{
173 return (r >> 1U) & 0x1U;
174}
175static inline u32 ioctrl_common_intr_0_mask_correctable_f(u32 v)
176{
177 return (v & 0x1U) << 2U;
178}
179static inline u32 ioctrl_common_intr_0_mask_correctable_v(u32 r)
180{
181 return (r >> 2U) & 0x1U;
182}
183static inline u32 ioctrl_common_intr_0_mask_intra_f(u32 v)
184{
185 return (v & 0x1U) << 3U;
186}
187static inline u32 ioctrl_common_intr_0_mask_intra_v(u32 r)
188{
189 return (r >> 3U) & 0x1U;
190}
191static inline u32 ioctrl_common_intr_0_mask_intrb_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 ioctrl_common_intr_0_mask_intrb_v(u32 r)
196{
197 return (r >> 4U) & 0x1U;
198}
199static inline u32 ioctrl_common_intr_0_status_r(void)
200{
201 return 0x00000224U;
202}
203static inline u32 ioctrl_common_intr_0_status_fatal_f(u32 v)
204{
205 return (v & 0x1U) << 0U;
206}
207static inline u32 ioctrl_common_intr_0_status_fatal_v(u32 r)
208{
209 return (r >> 0U) & 0x1U;
210}
211static inline u32 ioctrl_common_intr_0_status_nonfatal_f(u32 v)
212{
213 return (v & 0x1U) << 1U;
214}
215static inline u32 ioctrl_common_intr_0_status_nonfatal_v(u32 r)
216{
217 return (r >> 1U) & 0x1U;
218}
219static inline u32 ioctrl_common_intr_0_status_correctable_f(u32 v)
220{
221 return (v & 0x1U) << 2U;
222}
223static inline u32 ioctrl_common_intr_0_status_correctable_v(u32 r)
224{
225 return (r >> 2U) & 0x1U;
226}
227static inline u32 ioctrl_common_intr_0_status_intra_f(u32 v)
228{
229 return (v & 0x1U) << 3U;
230}
231static inline u32 ioctrl_common_intr_0_status_intra_v(u32 r)
232{
233 return (r >> 3U) & 0x1U;
234}
235static inline u32 ioctrl_common_intr_0_status_intrb_f(u32 v)
236{
237 return (v & 0x1U) << 4U;
238}
239static inline u32 ioctrl_common_intr_0_status_intrb_v(u32 r)
240{
241 return (r >> 4U) & 0x1U;
242}
243static inline u32 ioctrl_link_intr_0_mask_r(u32 i)
244{
245 return 0x00000240U + i*20U;
246}
247static inline u32 ioctrl_link_intr_0_mask_fatal_f(u32 v)
248{
249 return (v & 0x1U) << 0U;
250}
251static inline u32 ioctrl_link_intr_0_mask_fatal_v(u32 r)
252{
253 return (r >> 0U) & 0x1U;
254}
255static inline u32 ioctrl_link_intr_0_mask_nonfatal_f(u32 v)
256{
257 return (v & 0x1U) << 1U;
258}
259static inline u32 ioctrl_link_intr_0_mask_nonfatal_v(u32 r)
260{
261 return (r >> 1U) & 0x1U;
262}
263static inline u32 ioctrl_link_intr_0_mask_correctable_f(u32 v)
264{
265 return (v & 0x1U) << 2U;
266}
267static inline u32 ioctrl_link_intr_0_mask_correctable_v(u32 r)
268{
269 return (r >> 2U) & 0x1U;
270}
271static inline u32 ioctrl_link_intr_0_mask_intra_f(u32 v)
272{
273 return (v & 0x1U) << 3U;
274}
275static inline u32 ioctrl_link_intr_0_mask_intra_v(u32 r)
276{
277 return (r >> 3U) & 0x1U;
278}
279static inline u32 ioctrl_link_intr_0_mask_intrb_f(u32 v)
280{
281 return (v & 0x1U) << 4U;
282}
283static inline u32 ioctrl_link_intr_0_mask_intrb_v(u32 r)
284{
285 return (r >> 4U) & 0x1U;
286}
287static inline u32 ioctrl_link_intr_0_status_r(u32 i)
288{
289 return 0x00000244U + i*20U;
290}
291static inline u32 ioctrl_link_intr_0_status_fatal_f(u32 v)
292{
293 return (v & 0x1U) << 0U;
294}
295static inline u32 ioctrl_link_intr_0_status_fatal_v(u32 r)
296{
297 return (r >> 0U) & 0x1U;
298}
299static inline u32 ioctrl_link_intr_0_status_nonfatal_f(u32 v)
300{
301 return (v & 0x1U) << 1U;
302}
303static inline u32 ioctrl_link_intr_0_status_nonfatal_v(u32 r)
304{
305 return (r >> 1U) & 0x1U;
306}
307static inline u32 ioctrl_link_intr_0_status_correctable_f(u32 v)
308{
309 return (v & 0x1U) << 2U;
310}
311static inline u32 ioctrl_link_intr_0_status_correctable_v(u32 r)
312{
313 return (r >> 2U) & 0x1U;
314}
315static inline u32 ioctrl_link_intr_0_status_intra_f(u32 v)
316{
317 return (v & 0x1U) << 3U;
318}
319static inline u32 ioctrl_link_intr_0_status_intra_v(u32 r)
320{
321 return (r >> 3U) & 0x1U;
322}
323static inline u32 ioctrl_link_intr_0_status_intrb_f(u32 v)
324{
325 return (v & 0x1U) << 4U;
326}
327static inline u32 ioctrl_link_intr_0_status_intrb_v(u32 r)
328{
329 return (r >> 4U) & 0x1U;
330}
331#endif
diff --git a/include/nvgpu/hw/gv100/hw_ioctrlmif_gv100.h b/include/nvgpu/hw/gv100/hw_ioctrlmif_gv100.h
new file mode 100644
index 0000000..5747a9b
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_ioctrlmif_gv100.h
@@ -0,0 +1,331 @@
1/*
2 * Copyright (c) 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_ioctrlmif_gv100_h_
57#define _hw_ioctrlmif_gv100_h_
58
59static inline u32 ioctrlmif_rx_err_contain_en_0_r(void)
60{
61 return 0x00000e0cU;
62}
63static inline u32 ioctrlmif_rx_err_contain_en_0_rxramdataparityerr_f(u32 v)
64{
65 return (v & 0x1U) << 3U;
66}
67static inline u32 ioctrlmif_rx_err_contain_en_0_rxramdataparityerr_m(void)
68{
69 return 0x1U << 3U;
70}
71static inline u32 ioctrlmif_rx_err_contain_en_0_rxramdataparityerr_v(u32 r)
72{
73 return (r >> 3U) & 0x1U;
74}
75static inline u32 ioctrlmif_rx_err_contain_en_0_rxramdataparityerr__prod_v(void)
76{
77 return 0x00000001U;
78}
79static inline u32 ioctrlmif_rx_err_contain_en_0_rxramdataparityerr__prod_f(void)
80{
81 return 0x8U;
82}
83static inline u32 ioctrlmif_rx_err_contain_en_0_rxramhdrparityerr_f(u32 v)
84{
85 return (v & 0x1U) << 4U;
86}
87static inline u32 ioctrlmif_rx_err_contain_en_0_rxramhdrparityerr_m(void)
88{
89 return 0x1U << 4U;
90}
91static inline u32 ioctrlmif_rx_err_contain_en_0_rxramhdrparityerr_v(u32 r)
92{
93 return (r >> 4U) & 0x1U;
94}
95static inline u32 ioctrlmif_rx_err_contain_en_0_rxramhdrparityerr__prod_v(void)
96{
97 return 0x00000001U;
98}
99static inline u32 ioctrlmif_rx_err_contain_en_0_rxramhdrparityerr__prod_f(void)
100{
101 return 0x10U;
102}
103static inline u32 ioctrlmif_rx_err_log_en_0_r(void)
104{
105 return 0x00000e04U;
106}
107static inline u32 ioctrlmif_rx_err_log_en_0_rxramdataparityerr_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 ioctrlmif_rx_err_log_en_0_rxramdataparityerr_m(void)
112{
113 return 0x1U << 3U;
114}
115static inline u32 ioctrlmif_rx_err_log_en_0_rxramdataparityerr_v(u32 r)
116{
117 return (r >> 3U) & 0x1U;
118}
119static inline u32 ioctrlmif_rx_err_log_en_0_rxramhdrparityerr_f(u32 v)
120{
121 return (v & 0x1U) << 4U;
122}
123static inline u32 ioctrlmif_rx_err_log_en_0_rxramhdrparityerr_m(void)
124{
125 return 0x1U << 4U;
126}
127static inline u32 ioctrlmif_rx_err_log_en_0_rxramhdrparityerr_v(u32 r)
128{
129 return (r >> 4U) & 0x1U;
130}
131static inline u32 ioctrlmif_rx_err_report_en_0_r(void)
132{
133 return 0x00000e08U;
134}
135static inline u32 ioctrlmif_rx_err_report_en_0_rxramdataparityerr_f(u32 v)
136{
137 return (v & 0x1U) << 3U;
138}
139static inline u32 ioctrlmif_rx_err_report_en_0_rxramdataparityerr_m(void)
140{
141 return 0x1U << 3U;
142}
143static inline u32 ioctrlmif_rx_err_report_en_0_rxramdataparityerr_v(u32 r)
144{
145 return (r >> 3U) & 0x1U;
146}
147static inline u32 ioctrlmif_rx_err_report_en_0_rxramhdrparityerr_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 ioctrlmif_rx_err_report_en_0_rxramhdrparityerr_m(void)
152{
153 return 0x1U << 4U;
154}
155static inline u32 ioctrlmif_rx_err_report_en_0_rxramhdrparityerr_v(u32 r)
156{
157 return (r >> 4U) & 0x1U;
158}
159static inline u32 ioctrlmif_rx_err_status_0_r(void)
160{
161 return 0x00000e00U;
162}
163static inline u32 ioctrlmif_rx_err_status_0_rxramdataparityerr_f(u32 v)
164{
165 return (v & 0x1U) << 3U;
166}
167static inline u32 ioctrlmif_rx_err_status_0_rxramdataparityerr_m(void)
168{
169 return 0x1U << 3U;
170}
171static inline u32 ioctrlmif_rx_err_status_0_rxramdataparityerr_v(u32 r)
172{
173 return (r >> 3U) & 0x1U;
174}
175static inline u32 ioctrlmif_rx_err_status_0_rxramhdrparityerr_f(u32 v)
176{
177 return (v & 0x1U) << 4U;
178}
179static inline u32 ioctrlmif_rx_err_status_0_rxramhdrparityerr_m(void)
180{
181 return 0x1U << 4U;
182}
183static inline u32 ioctrlmif_rx_err_status_0_rxramhdrparityerr_v(u32 r)
184{
185 return (r >> 4U) & 0x1U;
186}
187static inline u32 ioctrlmif_rx_err_first_0_r(void)
188{
189 return 0x00000e14U;
190}
191static inline u32 ioctrlmif_tx_err_contain_en_0_r(void)
192{
193 return 0x00000a90U;
194}
195static inline u32 ioctrlmif_tx_err_contain_en_0_txramdataparityerr_f(u32 v)
196{
197 return (v & 0x1U) << 0U;
198}
199static inline u32 ioctrlmif_tx_err_contain_en_0_txramdataparityerr_m(void)
200{
201 return 0x1U << 0U;
202}
203static inline u32 ioctrlmif_tx_err_contain_en_0_txramdataparityerr_v(u32 r)
204{
205 return (r >> 0U) & 0x1U;
206}
207static inline u32 ioctrlmif_tx_err_contain_en_0_txramdataparityerr__prod_v(void)
208{
209 return 0x00000001U;
210}
211static inline u32 ioctrlmif_tx_err_contain_en_0_txramdataparityerr__prod_f(void)
212{
213 return 0x1U;
214}
215static inline u32 ioctrlmif_tx_err_contain_en_0_txramhdrparityerr_f(u32 v)
216{
217 return (v & 0x1U) << 1U;
218}
219static inline u32 ioctrlmif_tx_err_contain_en_0_txramhdrparityerr_m(void)
220{
221 return 0x1U << 1U;
222}
223static inline u32 ioctrlmif_tx_err_contain_en_0_txramhdrparityerr_v(u32 r)
224{
225 return (r >> 1U) & 0x1U;
226}
227static inline u32 ioctrlmif_tx_err_contain_en_0_txramhdrparityerr__prod_v(void)
228{
229 return 0x00000001U;
230}
231static inline u32 ioctrlmif_tx_err_contain_en_0_txramhdrparityerr__prod_f(void)
232{
233 return 0x2U;
234}
235static inline u32 ioctrlmif_tx_err_log_en_0_r(void)
236{
237 return 0x00000a88U;
238}
239static inline u32 ioctrlmif_tx_err_log_en_0_txramdataparityerr_f(u32 v)
240{
241 return (v & 0x1U) << 0U;
242}
243static inline u32 ioctrlmif_tx_err_log_en_0_txramdataparityerr_m(void)
244{
245 return 0x1U << 0U;
246}
247static inline u32 ioctrlmif_tx_err_log_en_0_txramdataparityerr_v(u32 r)
248{
249 return (r >> 0U) & 0x1U;
250}
251static inline u32 ioctrlmif_tx_err_log_en_0_txramhdrparityerr_f(u32 v)
252{
253 return (v & 0x1U) << 1U;
254}
255static inline u32 ioctrlmif_tx_err_log_en_0_txramhdrparityerr_m(void)
256{
257 return 0x1U << 1U;
258}
259static inline u32 ioctrlmif_tx_err_log_en_0_txramhdrparityerr_v(u32 r)
260{
261 return (r >> 1U) & 0x1U;
262}
263static inline u32 ioctrlmif_tx_err_report_en_0_r(void)
264{
265 return 0x00000e08U;
266}
267static inline u32 ioctrlmif_tx_err_report_en_0_txramdataparityerr_f(u32 v)
268{
269 return (v & 0x1U) << 0U;
270}
271static inline u32 ioctrlmif_tx_err_report_en_0_txramdataparityerr_m(void)
272{
273 return 0x1U << 0U;
274}
275static inline u32 ioctrlmif_tx_err_report_en_0_txramdataparityerr_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 ioctrlmif_tx_err_report_en_0_txramhdrparityerr_f(u32 v)
280{
281 return (v & 0x1U) << 1U;
282}
283static inline u32 ioctrlmif_tx_err_report_en_0_txramhdrparityerr_m(void)
284{
285 return 0x1U << 1U;
286}
287static inline u32 ioctrlmif_tx_err_report_en_0_txramhdrparityerr_v(u32 r)
288{
289 return (r >> 1U) & 0x1U;
290}
291static inline u32 ioctrlmif_tx_err_status_0_r(void)
292{
293 return 0x00000a84U;
294}
295static inline u32 ioctrlmif_tx_err_status_0_txramdataparityerr_f(u32 v)
296{
297 return (v & 0x1U) << 0U;
298}
299static inline u32 ioctrlmif_tx_err_status_0_txramdataparityerr_m(void)
300{
301 return 0x1U << 0U;
302}
303static inline u32 ioctrlmif_tx_err_status_0_txramdataparityerr_v(u32 r)
304{
305 return (r >> 0U) & 0x1U;
306}
307static inline u32 ioctrlmif_tx_err_status_0_txramhdrparityerr_f(u32 v)
308{
309 return (v & 0x1U) << 1U;
310}
311static inline u32 ioctrlmif_tx_err_status_0_txramhdrparityerr_m(void)
312{
313 return 0x1U << 1U;
314}
315static inline u32 ioctrlmif_tx_err_status_0_txramhdrparityerr_v(u32 r)
316{
317 return (r >> 1U) & 0x1U;
318}
319static inline u32 ioctrlmif_tx_err_first_0_r(void)
320{
321 return 0x00000a98U;
322}
323static inline u32 ioctrlmif_tx_ctrl_buffer_ready_r(void)
324{
325 return 0x00000a7cU;
326}
327static inline u32 ioctrlmif_rx_ctrl_buffer_ready_r(void)
328{
329 return 0x00000dfcU;
330}
331#endif
diff --git a/include/nvgpu/hw/gv100/hw_ltc_gv100.h b/include/nvgpu/hw/gv100/hw_ltc_gv100.h
new file mode 100644
index 0000000..042cb7d
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_ltc_gv100.h
@@ -0,0 +1,631 @@
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_ltc_gv100_h_
57#define _hw_ltc_gv100_h_
58
59static inline u32 ltc_pltcg_base_v(void)
60{
61 return 0x00140000U;
62}
63static inline u32 ltc_pltcg_extent_v(void)
64{
65 return 0x0017ffffU;
66}
67static inline u32 ltc_ltc0_ltss_v(void)
68{
69 return 0x00140200U;
70}
71static inline u32 ltc_ltc0_lts0_v(void)
72{
73 return 0x00140400U;
74}
75static inline u32 ltc_ltcs_ltss_v(void)
76{
77 return 0x0017e200U;
78}
79static inline u32 ltc_ltcs_lts0_cbc_ctrl1_r(void)
80{
81 return 0x0014046cU;
82}
83static inline u32 ltc_ltc0_lts0_dstg_cfg0_r(void)
84{
85 return 0x00140518U;
86}
87static inline u32 ltc_ltcs_ltss_dstg_cfg0_r(void)
88{
89 return 0x0017e318U;
90}
91static inline u32 ltc_ltcs_ltss_dstg_cfg0_vdc_4to2_disable_m(void)
92{
93 return 0x1U << 15U;
94}
95static inline u32 ltc_ltc0_lts0_tstg_cfg1_r(void)
96{
97 return 0x00140494U;
98}
99static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_ways_v(u32 r)
100{
101 return (r >> 0U) & 0xffffU;
102}
103static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_v(u32 r)
104{
105 return (r >> 16U) & 0x3U;
106}
107static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_all_v(void)
108{
109 return 0x00000000U;
110}
111static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_half_v(void)
112{
113 return 0x00000001U;
114}
115static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_quarter_v(void)
116{
117 return 0x00000002U;
118}
119static inline u32 ltc_ltcs_ltss_cbc_ctrl1_r(void)
120{
121 return 0x0017e26cU;
122}
123static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clean_active_f(void)
124{
125 return 0x1U;
126}
127static inline u32 ltc_ltcs_ltss_cbc_ctrl1_invalidate_active_f(void)
128{
129 return 0x2U;
130}
131static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_v(u32 r)
132{
133 return (r >> 2U) & 0x1U;
134}
135static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_v(void)
136{
137 return 0x00000001U;
138}
139static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_f(void)
140{
141 return 0x4U;
142}
143static inline u32 ltc_ltc0_lts0_cbc_ctrl1_r(void)
144{
145 return 0x0014046cU;
146}
147static inline u32 ltc_ltcs_ltss_cbc_ctrl2_r(void)
148{
149 return 0x0017e270U;
150}
151static inline u32 ltc_ltcs_ltss_cbc_ctrl2_clear_lower_bound_f(u32 v)
152{
153 return (v & 0x3ffffU) << 0U;
154}
155static inline u32 ltc_ltcs_ltss_cbc_ctrl3_r(void)
156{
157 return 0x0017e274U;
158}
159static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_f(u32 v)
160{
161 return (v & 0x3ffffU) << 0U;
162}
163static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_init_v(void)
164{
165 return 0x0003ffffU;
166}
167static inline u32 ltc_ltcs_ltss_cbc_base_r(void)
168{
169 return 0x0017e278U;
170}
171static inline u32 ltc_ltcs_ltss_cbc_base_alignment_shift_v(void)
172{
173 return 0x0000000bU;
174}
175static inline u32 ltc_ltcs_ltss_cbc_base_address_v(u32 r)
176{
177 return (r >> 0U) & 0x3ffffffU;
178}
179static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_r(void)
180{
181 return 0x0017e27cU;
182}
183static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs__v(u32 r)
184{
185 return (r >> 0U) & 0x1fU;
186}
187static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_nvlink_peer_through_l2_f(u32 v)
188{
189 return (v & 0x1U) << 24U;
190}
191static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_nvlink_peer_through_l2_v(u32 r)
192{
193 return (r >> 24U) & 0x1U;
194}
195static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_serialize_f(u32 v)
196{
197 return (v & 0x1U) << 25U;
198}
199static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_serialize_v(u32 r)
200{
201 return (r >> 25U) & 0x1U;
202}
203static inline u32 ltc_ltcs_misc_ltc_num_active_ltcs_r(void)
204{
205 return 0x0017e000U;
206}
207static inline u32 ltc_ltcs_ltss_cbc_param_r(void)
208{
209 return 0x0017e280U;
210}
211static inline u32 ltc_ltcs_ltss_cbc_param_comptags_per_cache_line_v(u32 r)
212{
213 return (r >> 0U) & 0xffffU;
214}
215static inline u32 ltc_ltcs_ltss_cbc_param_cache_line_size_v(u32 r)
216{
217 return (r >> 24U) & 0xfU;
218}
219static inline u32 ltc_ltcs_ltss_cbc_param_slices_per_ltc_v(u32 r)
220{
221 return (r >> 28U) & 0xfU;
222}
223static inline u32 ltc_ltcs_ltss_cbc_param2_r(void)
224{
225 return 0x0017e3f4U;
226}
227static inline u32 ltc_ltcs_ltss_cbc_param2_gobs_per_comptagline_per_slice_v(u32 r)
228{
229 return (r >> 0U) & 0xffffU;
230}
231static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_r(void)
232{
233 return 0x0017e2acU;
234}
235static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_max_ways_evict_last_f(u32 v)
236{
237 return (v & 0x1fU) << 16U;
238}
239static inline u32 ltc_ltcs_ltss_dstg_zbc_index_r(void)
240{
241 return 0x0017e338U;
242}
243static inline u32 ltc_ltcs_ltss_dstg_zbc_index_address_f(u32 v)
244{
245 return (v & 0xfU) << 0U;
246}
247static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value_r(u32 i)
248{
249 return 0x0017e33cU + i*4U;
250}
251static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value__size_1_v(void)
252{
253 return 0x00000004U;
254}
255static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_r(void)
256{
257 return 0x0017e34cU;
258}
259static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_s(void)
260{
261 return 32U;
262}
263static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_f(u32 v)
264{
265 return (v & 0xffffffffU) << 0U;
266}
267static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_m(void)
268{
269 return 0xffffffffU << 0U;
270}
271static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_v(u32 r)
272{
273 return (r >> 0U) & 0xffffffffU;
274}
275static inline u32 ltc_ltcs_ltss_dstg_zbc_stencil_clear_value_r(void)
276{
277 return 0x0017e204U;
278}
279static inline u32 ltc_ltcs_ltss_dstg_zbc_stencil_clear_value_field_s(void)
280{
281 return 8U;
282}
283static inline u32 ltc_ltcs_ltss_dstg_zbc_stencil_clear_value_field_f(u32 v)
284{
285 return (v & 0xffU) << 0U;
286}
287static inline u32 ltc_ltcs_ltss_dstg_zbc_stencil_clear_value_field_m(void)
288{
289 return 0xffU << 0U;
290}
291static inline u32 ltc_ltcs_ltss_dstg_zbc_stencil_clear_value_field_v(u32 r)
292{
293 return (r >> 0U) & 0xffU;
294}
295static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_r(void)
296{
297 return 0x0017e2b0U;
298}
299static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_l2_bypass_mode_enabled_f(void)
300{
301 return 0x10000000U;
302}
303static inline u32 ltc_ltcs_ltss_g_elpg_r(void)
304{
305 return 0x0017e214U;
306}
307static inline u32 ltc_ltcs_ltss_g_elpg_flush_v(u32 r)
308{
309 return (r >> 0U) & 0x1U;
310}
311static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_v(void)
312{
313 return 0x00000001U;
314}
315static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_f(void)
316{
317 return 0x1U;
318}
319static inline u32 ltc_ltc0_ltss_g_elpg_r(void)
320{
321 return 0x00140214U;
322}
323static inline u32 ltc_ltc0_ltss_g_elpg_flush_v(u32 r)
324{
325 return (r >> 0U) & 0x1U;
326}
327static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_v(void)
328{
329 return 0x00000001U;
330}
331static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_f(void)
332{
333 return 0x1U;
334}
335static inline u32 ltc_ltc1_ltss_g_elpg_r(void)
336{
337 return 0x00142214U;
338}
339static inline u32 ltc_ltc1_ltss_g_elpg_flush_v(u32 r)
340{
341 return (r >> 0U) & 0x1U;
342}
343static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_v(void)
344{
345 return 0x00000001U;
346}
347static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_f(void)
348{
349 return 0x1U;
350}
351static inline u32 ltc_ltcs_ltss_intr_r(void)
352{
353 return 0x0017e20cU;
354}
355static inline u32 ltc_ltcs_ltss_intr_ecc_sec_error_pending_f(void)
356{
357 return 0x100U;
358}
359static inline u32 ltc_ltcs_ltss_intr_ecc_ded_error_pending_f(void)
360{
361 return 0x200U;
362}
363static inline u32 ltc_ltcs_ltss_intr_en_evicted_cb_m(void)
364{
365 return 0x1U << 20U;
366}
367static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_m(void)
368{
369 return 0x1U << 21U;
370}
371static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_enabled_f(void)
372{
373 return 0x200000U;
374}
375static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_disabled_f(void)
376{
377 return 0x0U;
378}
379static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(void)
380{
381 return 0x1U << 30U;
382}
383static inline u32 ltc_ltcs_ltss_intr_en_ecc_sec_error_enabled_f(void)
384{
385 return 0x1000000U;
386}
387static inline u32 ltc_ltcs_ltss_intr_en_ecc_ded_error_enabled_f(void)
388{
389 return 0x2000000U;
390}
391static inline u32 ltc_ltc0_lts0_intr_r(void)
392{
393 return 0x0014040cU;
394}
395static inline u32 ltc_ltc0_lts0_dstg_ecc_report_r(void)
396{
397 return 0x0014051cU;
398}
399static inline u32 ltc_ltc0_lts0_dstg_ecc_report_sec_count_m(void)
400{
401 return 0xffU << 0U;
402}
403static inline u32 ltc_ltc0_lts0_dstg_ecc_report_sec_count_v(u32 r)
404{
405 return (r >> 0U) & 0xffU;
406}
407static inline u32 ltc_ltc0_lts0_dstg_ecc_report_ded_count_m(void)
408{
409 return 0xffU << 16U;
410}
411static inline u32 ltc_ltc0_lts0_dstg_ecc_report_ded_count_v(u32 r)
412{
413 return (r >> 16U) & 0xffU;
414}
415static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_r(void)
416{
417 return 0x0017e2a0U;
418}
419static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_v(u32 r)
420{
421 return (r >> 0U) & 0x1U;
422}
423static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_v(void)
424{
425 return 0x00000001U;
426}
427static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_f(void)
428{
429 return 0x1U;
430}
431static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_v(u32 r)
432{
433 return (r >> 8U) & 0xfU;
434}
435static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_v(void)
436{
437 return 0x00000003U;
438}
439static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_f(void)
440{
441 return 0x300U;
442}
443static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_v(u32 r)
444{
445 return (r >> 28U) & 0x1U;
446}
447static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_v(void)
448{
449 return 0x00000001U;
450}
451static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_f(void)
452{
453 return 0x10000000U;
454}
455static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_v(u32 r)
456{
457 return (r >> 29U) & 0x1U;
458}
459static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_v(void)
460{
461 return 0x00000001U;
462}
463static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_f(void)
464{
465 return 0x20000000U;
466}
467static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_v(u32 r)
468{
469 return (r >> 30U) & 0x1U;
470}
471static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_v(void)
472{
473 return 0x00000001U;
474}
475static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_f(void)
476{
477 return 0x40000000U;
478}
479static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_r(void)
480{
481 return 0x0017e2a4U;
482}
483static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_v(u32 r)
484{
485 return (r >> 0U) & 0x1U;
486}
487static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_v(void)
488{
489 return 0x00000001U;
490}
491static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_f(void)
492{
493 return 0x1U;
494}
495static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_v(u32 r)
496{
497 return (r >> 8U) & 0xfU;
498}
499static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_v(void)
500{
501 return 0x00000003U;
502}
503static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_f(void)
504{
505 return 0x300U;
506}
507static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_v(u32 r)
508{
509 return (r >> 16U) & 0x1U;
510}
511static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_v(void)
512{
513 return 0x00000001U;
514}
515static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_f(void)
516{
517 return 0x10000U;
518}
519static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_v(u32 r)
520{
521 return (r >> 28U) & 0x1U;
522}
523static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_v(void)
524{
525 return 0x00000001U;
526}
527static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_f(void)
528{
529 return 0x10000000U;
530}
531static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_v(u32 r)
532{
533 return (r >> 29U) & 0x1U;
534}
535static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_v(void)
536{
537 return 0x00000001U;
538}
539static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_f(void)
540{
541 return 0x20000000U;
542}
543static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_v(u32 r)
544{
545 return (r >> 30U) & 0x1U;
546}
547static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_v(void)
548{
549 return 0x00000001U;
550}
551static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_f(void)
552{
553 return 0x40000000U;
554}
555static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_r(void)
556{
557 return 0x001402a0U;
558}
559static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_v(u32 r)
560{
561 return (r >> 0U) & 0x1U;
562}
563static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_v(void)
564{
565 return 0x00000001U;
566}
567static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_f(void)
568{
569 return 0x1U;
570}
571static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_r(void)
572{
573 return 0x001402a4U;
574}
575static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_v(u32 r)
576{
577 return (r >> 0U) & 0x1U;
578}
579static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_v(void)
580{
581 return 0x00000001U;
582}
583static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_f(void)
584{
585 return 0x1U;
586}
587static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_r(void)
588{
589 return 0x001422a0U;
590}
591static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_v(u32 r)
592{
593 return (r >> 0U) & 0x1U;
594}
595static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_v(void)
596{
597 return 0x00000001U;
598}
599static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_f(void)
600{
601 return 0x1U;
602}
603static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_r(void)
604{
605 return 0x001422a4U;
606}
607static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_v(u32 r)
608{
609 return (r >> 0U) & 0x1U;
610}
611static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_v(void)
612{
613 return 0x00000001U;
614}
615static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_f(void)
616{
617 return 0x1U;
618}
619static inline u32 ltc_ltc0_lts0_tstg_info_1_r(void)
620{
621 return 0x0014058cU;
622}
623static inline u32 ltc_ltc0_lts0_tstg_info_1_slice_size_in_kb_v(u32 r)
624{
625 return (r >> 0U) & 0xffffU;
626}
627static inline u32 ltc_ltc0_lts0_tstg_info_1_slices_per_l2_v(u32 r)
628{
629 return (r >> 16U) & 0x1fU;
630}
631#endif
diff --git a/include/nvgpu/hw/gv100/hw_mc_gv100.h b/include/nvgpu/hw/gv100/hw_mc_gv100.h
new file mode 100644
index 0000000..cf406c3
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_mc_gv100.h
@@ -0,0 +1,259 @@
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_mc_gv100_h_
57#define _hw_mc_gv100_h_
58
59static inline u32 mc_boot_0_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 mc_boot_0_architecture_v(u32 r)
64{
65 return (r >> 24U) & 0x1fU;
66}
67static inline u32 mc_boot_0_implementation_v(u32 r)
68{
69 return (r >> 20U) & 0xfU;
70}
71static inline u32 mc_boot_0_major_revision_v(u32 r)
72{
73 return (r >> 4U) & 0xfU;
74}
75static inline u32 mc_boot_0_minor_revision_v(u32 r)
76{
77 return (r >> 0U) & 0xfU;
78}
79static inline u32 mc_intr_r(u32 i)
80{
81 return 0x00000100U + i*4U;
82}
83static inline u32 mc_intr_pfifo_pending_f(void)
84{
85 return 0x100U;
86}
87static inline u32 mc_intr_hub_pending_f(void)
88{
89 return 0x200U;
90}
91static inline u32 mc_intr_pgraph_pending_f(void)
92{
93 return 0x1000U;
94}
95static inline u32 mc_intr_pmu_pending_f(void)
96{
97 return 0x1000000U;
98}
99static inline u32 mc_intr_ltc_pending_f(void)
100{
101 return 0x2000000U;
102}
103static inline u32 mc_intr_priv_ring_pending_f(void)
104{
105 return 0x40000000U;
106}
107static inline u32 mc_intr_pbus_pending_f(void)
108{
109 return 0x10000000U;
110}
111static inline u32 mc_intr_nvlink_pending_f(void)
112{
113 return 0x400000U;
114}
115static inline u32 mc_intr_en_r(u32 i)
116{
117 return 0x00000140U + i*4U;
118}
119static inline u32 mc_intr_en_set_r(u32 i)
120{
121 return 0x00000160U + i*4U;
122}
123static inline u32 mc_intr_en_clear_r(u32 i)
124{
125 return 0x00000180U + i*4U;
126}
127static inline u32 mc_enable_r(void)
128{
129 return 0x00000200U;
130}
131static inline u32 mc_enable_xbar_enabled_f(void)
132{
133 return 0x4U;
134}
135static inline u32 mc_enable_l2_enabled_f(void)
136{
137 return 0x8U;
138}
139static inline u32 mc_enable_pmedia_s(void)
140{
141 return 1U;
142}
143static inline u32 mc_enable_pmedia_f(u32 v)
144{
145 return (v & 0x1U) << 4U;
146}
147static inline u32 mc_enable_pmedia_m(void)
148{
149 return 0x1U << 4U;
150}
151static inline u32 mc_enable_pmedia_v(u32 r)
152{
153 return (r >> 4U) & 0x1U;
154}
155static inline u32 mc_enable_ce0_m(void)
156{
157 return 0x1U << 6U;
158}
159static inline u32 mc_enable_pfifo_enabled_f(void)
160{
161 return 0x100U;
162}
163static inline u32 mc_enable_pgraph_enabled_f(void)
164{
165 return 0x1000U;
166}
167static inline u32 mc_enable_pwr_v(u32 r)
168{
169 return (r >> 13U) & 0x1U;
170}
171static inline u32 mc_enable_pwr_disabled_v(void)
172{
173 return 0x00000000U;
174}
175static inline u32 mc_enable_pwr_enabled_f(void)
176{
177 return 0x2000U;
178}
179static inline u32 mc_enable_pfb_enabled_f(void)
180{
181 return 0x100000U;
182}
183static inline u32 mc_enable_ce2_m(void)
184{
185 return 0x1U << 21U;
186}
187static inline u32 mc_enable_ce2_enabled_f(void)
188{
189 return 0x200000U;
190}
191static inline u32 mc_enable_blg_enabled_f(void)
192{
193 return 0x8000000U;
194}
195static inline u32 mc_enable_perfmon_enabled_f(void)
196{
197 return 0x10000000U;
198}
199static inline u32 mc_enable_hub_enabled_f(void)
200{
201 return 0x20000000U;
202}
203static inline u32 mc_enable_nvdec_disabled_v(void)
204{
205 return 0x00000000U;
206}
207static inline u32 mc_enable_nvdec_enabled_f(void)
208{
209 return 0x8000U;
210}
211static inline u32 mc_enable_nvlink_disabled_v(void)
212{
213 return 0x00000000U;
214}
215static inline u32 mc_enable_nvlink_disabled_f(void)
216{
217 return 0x0U;
218}
219static inline u32 mc_enable_nvlink_enabled_v(void)
220{
221 return 0x00000001U;
222}
223static inline u32 mc_enable_nvlink_enabled_f(void)
224{
225 return 0x2000000U;
226}
227static inline u32 mc_intr_ltc_r(void)
228{
229 return 0x000001c0U;
230}
231static inline u32 mc_enable_pb_r(void)
232{
233 return 0x00000204U;
234}
235static inline u32 mc_enable_pb_0_s(void)
236{
237 return 1U;
238}
239static inline u32 mc_enable_pb_0_f(u32 v)
240{
241 return (v & 0x1U) << 0U;
242}
243static inline u32 mc_enable_pb_0_m(void)
244{
245 return 0x1U << 0U;
246}
247static inline u32 mc_enable_pb_0_v(u32 r)
248{
249 return (r >> 0U) & 0x1U;
250}
251static inline u32 mc_enable_pb_0_enabled_v(void)
252{
253 return 0x00000001U;
254}
255static inline u32 mc_enable_pb_sel_f(u32 v, u32 i)
256{
257 return (v & 0x1U) << (0U + i*1U);
258}
259#endif
diff --git a/include/nvgpu/hw/gv100/hw_minion_gv100.h b/include/nvgpu/hw/gv100/hw_minion_gv100.h
new file mode 100644
index 0000000..e4bbf23
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_minion_gv100.h
@@ -0,0 +1,943 @@
1/*
2 * Copyright (c) 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_minion_gv100_h_
57#define _hw_minion_gv100_h_
58
59static inline u32 minion_minion_status_r(void)
60{
61 return 0x00000830U;
62}
63static inline u32 minion_minion_status_status_f(u32 v)
64{
65 return (v & 0xffU) << 0U;
66}
67static inline u32 minion_minion_status_status_m(void)
68{
69 return 0xffU << 0U;
70}
71static inline u32 minion_minion_status_status_v(u32 r)
72{
73 return (r >> 0U) & 0xffU;
74}
75static inline u32 minion_minion_status_status_boot_v(void)
76{
77 return 0x00000001U;
78}
79static inline u32 minion_minion_status_status_boot_f(void)
80{
81 return 0x1U;
82}
83static inline u32 minion_minion_status_intr_code_f(u32 v)
84{
85 return (v & 0xffffffU) << 8U;
86}
87static inline u32 minion_minion_status_intr_code_m(void)
88{
89 return 0xffffffU << 8U;
90}
91static inline u32 minion_minion_status_intr_code_v(u32 r)
92{
93 return (r >> 8U) & 0xffffffU;
94}
95static inline u32 minion_falcon_irqstat_r(void)
96{
97 return 0x00000008U;
98}
99static inline u32 minion_falcon_irqstat_halt_f(u32 v)
100{
101 return (v & 0x1U) << 4U;
102}
103static inline u32 minion_falcon_irqstat_halt_v(u32 r)
104{
105 return (r >> 4U) & 0x1U;
106}
107static inline u32 minion_falcon_irqstat_exterr_f(u32 v)
108{
109 return (v & 0x1U) << 5U;
110}
111static inline u32 minion_falcon_irqstat_exterr_v(u32 r)
112{
113 return (r >> 5U) & 0x1U;
114}
115static inline u32 minion_falcon_irqstat_exterr_true_v(void)
116{
117 return 0x00000001U;
118}
119static inline u32 minion_falcon_irqstat_exterr_true_f(void)
120{
121 return 0x20U;
122}
123static inline u32 minion_falcon_irqmask_r(void)
124{
125 return 0x00000018U;
126}
127static inline u32 minion_falcon_irqsclr_r(void)
128{
129 return 0x00000004U;
130}
131static inline u32 minion_falcon_irqsset_r(void)
132{
133 return 0x00000000U;
134}
135static inline u32 minion_falcon_irqmset_r(void)
136{
137 return 0x00000010U;
138}
139static inline u32 minion_falcon_irqmset_wdtmr_f(u32 v)
140{
141 return (v & 0x1U) << 1U;
142}
143static inline u32 minion_falcon_irqmset_wdtmr_m(void)
144{
145 return 0x1U << 1U;
146}
147static inline u32 minion_falcon_irqmset_wdtmr_v(u32 r)
148{
149 return (r >> 1U) & 0x1U;
150}
151static inline u32 minion_falcon_irqmset_wdtmr_set_v(void)
152{
153 return 0x00000001U;
154}
155static inline u32 minion_falcon_irqmset_wdtmr_set_f(void)
156{
157 return 0x2U;
158}
159static inline u32 minion_falcon_irqmset_halt_f(u32 v)
160{
161 return (v & 0x1U) << 4U;
162}
163static inline u32 minion_falcon_irqmset_halt_m(void)
164{
165 return 0x1U << 4U;
166}
167static inline u32 minion_falcon_irqmset_halt_v(u32 r)
168{
169 return (r >> 4U) & 0x1U;
170}
171static inline u32 minion_falcon_irqmset_halt_set_v(void)
172{
173 return 0x00000001U;
174}
175static inline u32 minion_falcon_irqmset_halt_set_f(void)
176{
177 return 0x10U;
178}
179static inline u32 minion_falcon_irqmset_exterr_f(u32 v)
180{
181 return (v & 0x1U) << 5U;
182}
183static inline u32 minion_falcon_irqmset_exterr_m(void)
184{
185 return 0x1U << 5U;
186}
187static inline u32 minion_falcon_irqmset_exterr_v(u32 r)
188{
189 return (r >> 5U) & 0x1U;
190}
191static inline u32 minion_falcon_irqmset_exterr_set_v(void)
192{
193 return 0x00000001U;
194}
195static inline u32 minion_falcon_irqmset_exterr_set_f(void)
196{
197 return 0x20U;
198}
199static inline u32 minion_falcon_irqmset_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 minion_falcon_irqmset_swgen0_m(void)
204{
205 return 0x1U << 6U;
206}
207static inline u32 minion_falcon_irqmset_swgen0_v(u32 r)
208{
209 return (r >> 6U) & 0x1U;
210}
211static inline u32 minion_falcon_irqmset_swgen0_set_v(void)
212{
213 return 0x00000001U;
214}
215static inline u32 minion_falcon_irqmset_swgen0_set_f(void)
216{
217 return 0x40U;
218}
219static inline u32 minion_falcon_irqmset_swgen1_f(u32 v)
220{
221 return (v & 0x1U) << 7U;
222}
223static inline u32 minion_falcon_irqmset_swgen1_m(void)
224{
225 return 0x1U << 7U;
226}
227static inline u32 minion_falcon_irqmset_swgen1_v(u32 r)
228{
229 return (r >> 7U) & 0x1U;
230}
231static inline u32 minion_falcon_irqmset_swgen1_set_v(void)
232{
233 return 0x00000001U;
234}
235static inline u32 minion_falcon_irqmset_swgen1_set_f(void)
236{
237 return 0x80U;
238}
239static inline u32 minion_falcon_irqdest_r(void)
240{
241 return 0x0000001cU;
242}
243static inline u32 minion_falcon_irqdest_host_wdtmr_f(u32 v)
244{
245 return (v & 0x1U) << 1U;
246}
247static inline u32 minion_falcon_irqdest_host_wdtmr_m(void)
248{
249 return 0x1U << 1U;
250}
251static inline u32 minion_falcon_irqdest_host_wdtmr_v(u32 r)
252{
253 return (r >> 1U) & 0x1U;
254}
255static inline u32 minion_falcon_irqdest_host_wdtmr_host_v(void)
256{
257 return 0x00000001U;
258}
259static inline u32 minion_falcon_irqdest_host_wdtmr_host_f(void)
260{
261 return 0x2U;
262}
263static inline u32 minion_falcon_irqdest_host_halt_f(u32 v)
264{
265 return (v & 0x1U) << 4U;
266}
267static inline u32 minion_falcon_irqdest_host_halt_m(void)
268{
269 return 0x1U << 4U;
270}
271static inline u32 minion_falcon_irqdest_host_halt_v(u32 r)
272{
273 return (r >> 4U) & 0x1U;
274}
275static inline u32 minion_falcon_irqdest_host_halt_host_v(void)
276{
277 return 0x00000001U;
278}
279static inline u32 minion_falcon_irqdest_host_halt_host_f(void)
280{
281 return 0x10U;
282}
283static inline u32 minion_falcon_irqdest_host_exterr_f(u32 v)
284{
285 return (v & 0x1U) << 5U;
286}
287static inline u32 minion_falcon_irqdest_host_exterr_m(void)
288{
289 return 0x1U << 5U;
290}
291static inline u32 minion_falcon_irqdest_host_exterr_v(u32 r)
292{
293 return (r >> 5U) & 0x1U;
294}
295static inline u32 minion_falcon_irqdest_host_exterr_host_v(void)
296{
297 return 0x00000001U;
298}
299static inline u32 minion_falcon_irqdest_host_exterr_host_f(void)
300{
301 return 0x20U;
302}
303static inline u32 minion_falcon_irqdest_host_swgen0_f(u32 v)
304{
305 return (v & 0x1U) << 6U;
306}
307static inline u32 minion_falcon_irqdest_host_swgen0_m(void)
308{
309 return 0x1U << 6U;
310}
311static inline u32 minion_falcon_irqdest_host_swgen0_v(u32 r)
312{
313 return (r >> 6U) & 0x1U;
314}
315static inline u32 minion_falcon_irqdest_host_swgen0_host_v(void)
316{
317 return 0x00000001U;
318}
319static inline u32 minion_falcon_irqdest_host_swgen0_host_f(void)
320{
321 return 0x40U;
322}
323static inline u32 minion_falcon_irqdest_host_swgen1_f(u32 v)
324{
325 return (v & 0x1U) << 7U;
326}
327static inline u32 minion_falcon_irqdest_host_swgen1_m(void)
328{
329 return 0x1U << 7U;
330}
331static inline u32 minion_falcon_irqdest_host_swgen1_v(u32 r)
332{
333 return (r >> 7U) & 0x1U;
334}
335static inline u32 minion_falcon_irqdest_host_swgen1_host_v(void)
336{
337 return 0x00000001U;
338}
339static inline u32 minion_falcon_irqdest_host_swgen1_host_f(void)
340{
341 return 0x80U;
342}
343static inline u32 minion_falcon_irqdest_target_wdtmr_f(u32 v)
344{
345 return (v & 0x1U) << 17U;
346}
347static inline u32 minion_falcon_irqdest_target_wdtmr_m(void)
348{
349 return 0x1U << 17U;
350}
351static inline u32 minion_falcon_irqdest_target_wdtmr_v(u32 r)
352{
353 return (r >> 17U) & 0x1U;
354}
355static inline u32 minion_falcon_irqdest_target_wdtmr_host_normal_v(void)
356{
357 return 0x00000000U;
358}
359static inline u32 minion_falcon_irqdest_target_wdtmr_host_normal_f(void)
360{
361 return 0x0U;
362}
363static inline u32 minion_falcon_irqdest_target_halt_f(u32 v)
364{
365 return (v & 0x1U) << 20U;
366}
367static inline u32 minion_falcon_irqdest_target_halt_m(void)
368{
369 return 0x1U << 20U;
370}
371static inline u32 minion_falcon_irqdest_target_halt_v(u32 r)
372{
373 return (r >> 20U) & 0x1U;
374}
375static inline u32 minion_falcon_irqdest_target_halt_host_normal_v(void)
376{
377 return 0x00000000U;
378}
379static inline u32 minion_falcon_irqdest_target_halt_host_normal_f(void)
380{
381 return 0x0U;
382}
383static inline u32 minion_falcon_irqdest_target_exterr_f(u32 v)
384{
385 return (v & 0x1U) << 21U;
386}
387static inline u32 minion_falcon_irqdest_target_exterr_m(void)
388{
389 return 0x1U << 21U;
390}
391static inline u32 minion_falcon_irqdest_target_exterr_v(u32 r)
392{
393 return (r >> 21U) & 0x1U;
394}
395static inline u32 minion_falcon_irqdest_target_exterr_host_normal_v(void)
396{
397 return 0x00000000U;
398}
399static inline u32 minion_falcon_irqdest_target_exterr_host_normal_f(void)
400{
401 return 0x0U;
402}
403static inline u32 minion_falcon_irqdest_target_swgen0_f(u32 v)
404{
405 return (v & 0x1U) << 22U;
406}
407static inline u32 minion_falcon_irqdest_target_swgen0_m(void)
408{
409 return 0x1U << 22U;
410}
411static inline u32 minion_falcon_irqdest_target_swgen0_v(u32 r)
412{
413 return (r >> 22U) & 0x1U;
414}
415static inline u32 minion_falcon_irqdest_target_swgen0_host_normal_v(void)
416{
417 return 0x00000000U;
418}
419static inline u32 minion_falcon_irqdest_target_swgen0_host_normal_f(void)
420{
421 return 0x0U;
422}
423static inline u32 minion_falcon_irqdest_target_swgen1_f(u32 v)
424{
425 return (v & 0x1U) << 23U;
426}
427static inline u32 minion_falcon_irqdest_target_swgen1_m(void)
428{
429 return 0x1U << 23U;
430}
431static inline u32 minion_falcon_irqdest_target_swgen1_v(u32 r)
432{
433 return (r >> 23U) & 0x1U;
434}
435static inline u32 minion_falcon_irqdest_target_swgen1_host_normal_v(void)
436{
437 return 0x00000000U;
438}
439static inline u32 minion_falcon_irqdest_target_swgen1_host_normal_f(void)
440{
441 return 0x0U;
442}
443static inline u32 minion_falcon_os_r(void)
444{
445 return 0x00000080U;
446}
447static inline u32 minion_falcon_mailbox1_r(void)
448{
449 return 0x00000044U;
450}
451static inline u32 minion_minion_intr_r(void)
452{
453 return 0x00000810U;
454}
455static inline u32 minion_minion_intr_fatal_f(u32 v)
456{
457 return (v & 0x1U) << 0U;
458}
459static inline u32 minion_minion_intr_fatal_m(void)
460{
461 return 0x1U << 0U;
462}
463static inline u32 minion_minion_intr_fatal_v(u32 r)
464{
465 return (r >> 0U) & 0x1U;
466}
467static inline u32 minion_minion_intr_nonfatal_f(u32 v)
468{
469 return (v & 0x1U) << 1U;
470}
471static inline u32 minion_minion_intr_nonfatal_m(void)
472{
473 return 0x1U << 1U;
474}
475static inline u32 minion_minion_intr_nonfatal_v(u32 r)
476{
477 return (r >> 1U) & 0x1U;
478}
479static inline u32 minion_minion_intr_falcon_stall_f(u32 v)
480{
481 return (v & 0x1U) << 2U;
482}
483static inline u32 minion_minion_intr_falcon_stall_m(void)
484{
485 return 0x1U << 2U;
486}
487static inline u32 minion_minion_intr_falcon_stall_v(u32 r)
488{
489 return (r >> 2U) & 0x1U;
490}
491static inline u32 minion_minion_intr_falcon_nostall_f(u32 v)
492{
493 return (v & 0x1U) << 3U;
494}
495static inline u32 minion_minion_intr_falcon_nostall_m(void)
496{
497 return 0x1U << 3U;
498}
499static inline u32 minion_minion_intr_falcon_nostall_v(u32 r)
500{
501 return (r >> 3U) & 0x1U;
502}
503static inline u32 minion_minion_intr_link_f(u32 v)
504{
505 return (v & 0xffffU) << 16U;
506}
507static inline u32 minion_minion_intr_link_m(void)
508{
509 return 0xffffU << 16U;
510}
511static inline u32 minion_minion_intr_link_v(u32 r)
512{
513 return (r >> 16U) & 0xffffU;
514}
515static inline u32 minion_minion_intr_nonstall_en_r(void)
516{
517 return 0x0000081cU;
518}
519static inline u32 minion_minion_intr_stall_en_r(void)
520{
521 return 0x00000818U;
522}
523static inline u32 minion_minion_intr_stall_en_fatal_f(u32 v)
524{
525 return (v & 0x1U) << 0U;
526}
527static inline u32 minion_minion_intr_stall_en_fatal_m(void)
528{
529 return 0x1U << 0U;
530}
531static inline u32 minion_minion_intr_stall_en_fatal_v(u32 r)
532{
533 return (r >> 0U) & 0x1U;
534}
535static inline u32 minion_minion_intr_stall_en_fatal_enable_v(void)
536{
537 return 0x00000001U;
538}
539static inline u32 minion_minion_intr_stall_en_fatal_enable_f(void)
540{
541 return 0x1U;
542}
543static inline u32 minion_minion_intr_stall_en_fatal_disable_v(void)
544{
545 return 0x00000000U;
546}
547static inline u32 minion_minion_intr_stall_en_fatal_disable_f(void)
548{
549 return 0x0U;
550}
551static inline u32 minion_minion_intr_stall_en_nonfatal_f(u32 v)
552{
553 return (v & 0x1U) << 1U;
554}
555static inline u32 minion_minion_intr_stall_en_nonfatal_m(void)
556{
557 return 0x1U << 1U;
558}
559static inline u32 minion_minion_intr_stall_en_nonfatal_v(u32 r)
560{
561 return (r >> 1U) & 0x1U;
562}
563static inline u32 minion_minion_intr_stall_en_nonfatal_enable_v(void)
564{
565 return 0x00000001U;
566}
567static inline u32 minion_minion_intr_stall_en_nonfatal_enable_f(void)
568{
569 return 0x2U;
570}
571static inline u32 minion_minion_intr_stall_en_nonfatal_disable_v(void)
572{
573 return 0x00000000U;
574}
575static inline u32 minion_minion_intr_stall_en_nonfatal_disable_f(void)
576{
577 return 0x0U;
578}
579static inline u32 minion_minion_intr_stall_en_falcon_stall_f(u32 v)
580{
581 return (v & 0x1U) << 2U;
582}
583static inline u32 minion_minion_intr_stall_en_falcon_stall_m(void)
584{
585 return 0x1U << 2U;
586}
587static inline u32 minion_minion_intr_stall_en_falcon_stall_v(u32 r)
588{
589 return (r >> 2U) & 0x1U;
590}
591static inline u32 minion_minion_intr_stall_en_falcon_stall_enable_v(void)
592{
593 return 0x00000001U;
594}
595static inline u32 minion_minion_intr_stall_en_falcon_stall_enable_f(void)
596{
597 return 0x4U;
598}
599static inline u32 minion_minion_intr_stall_en_falcon_stall_disable_v(void)
600{
601 return 0x00000000U;
602}
603static inline u32 minion_minion_intr_stall_en_falcon_stall_disable_f(void)
604{
605 return 0x0U;
606}
607static inline u32 minion_minion_intr_stall_en_falcon_nostall_f(u32 v)
608{
609 return (v & 0x1U) << 3U;
610}
611static inline u32 minion_minion_intr_stall_en_falcon_nostall_m(void)
612{
613 return 0x1U << 3U;
614}
615static inline u32 minion_minion_intr_stall_en_falcon_nostall_v(u32 r)
616{
617 return (r >> 3U) & 0x1U;
618}
619static inline u32 minion_minion_intr_stall_en_falcon_nostall_enable_v(void)
620{
621 return 0x00000001U;
622}
623static inline u32 minion_minion_intr_stall_en_falcon_nostall_enable_f(void)
624{
625 return 0x8U;
626}
627static inline u32 minion_minion_intr_stall_en_falcon_nostall_disable_v(void)
628{
629 return 0x00000000U;
630}
631static inline u32 minion_minion_intr_stall_en_falcon_nostall_disable_f(void)
632{
633 return 0x0U;
634}
635static inline u32 minion_minion_intr_stall_en_link_f(u32 v)
636{
637 return (v & 0xffffU) << 16U;
638}
639static inline u32 minion_minion_intr_stall_en_link_m(void)
640{
641 return 0xffffU << 16U;
642}
643static inline u32 minion_minion_intr_stall_en_link_v(u32 r)
644{
645 return (r >> 16U) & 0xffffU;
646}
647static inline u32 minion_nvlink_dl_cmd_r(u32 i)
648{
649 return 0x00000900U + i*4U;
650}
651static inline u32 minion_nvlink_dl_cmd___size_1_v(void)
652{
653 return 0x00000006U;
654}
655static inline u32 minion_nvlink_dl_cmd_command_f(u32 v)
656{
657 return (v & 0xffU) << 0U;
658}
659static inline u32 minion_nvlink_dl_cmd_command_v(u32 r)
660{
661 return (r >> 0U) & 0xffU;
662}
663static inline u32 minion_nvlink_dl_cmd_command_configeom_v(void)
664{
665 return 0x00000040U;
666}
667static inline u32 minion_nvlink_dl_cmd_command_configeom_f(void)
668{
669 return 0x40U;
670}
671static inline u32 minion_nvlink_dl_cmd_command_nop_v(void)
672{
673 return 0x00000000U;
674}
675static inline u32 minion_nvlink_dl_cmd_command_nop_f(void)
676{
677 return 0x0U;
678}
679static inline u32 minion_nvlink_dl_cmd_command_initphy_v(void)
680{
681 return 0x00000001U;
682}
683static inline u32 minion_nvlink_dl_cmd_command_initphy_f(void)
684{
685 return 0x1U;
686}
687static inline u32 minion_nvlink_dl_cmd_command_initlaneenable_v(void)
688{
689 return 0x00000003U;
690}
691static inline u32 minion_nvlink_dl_cmd_command_initlaneenable_f(void)
692{
693 return 0x3U;
694}
695static inline u32 minion_nvlink_dl_cmd_command_initdlpl_v(void)
696{
697 return 0x00000004U;
698}
699static inline u32 minion_nvlink_dl_cmd_command_initdlpl_f(void)
700{
701 return 0x4U;
702}
703static inline u32 minion_nvlink_dl_cmd_command_lanedisable_v(void)
704{
705 return 0x00000008U;
706}
707static inline u32 minion_nvlink_dl_cmd_command_lanedisable_f(void)
708{
709 return 0x8U;
710}
711static inline u32 minion_nvlink_dl_cmd_command_fastlanedisable_v(void)
712{
713 return 0x00000009U;
714}
715static inline u32 minion_nvlink_dl_cmd_command_fastlanedisable_f(void)
716{
717 return 0x9U;
718}
719static inline u32 minion_nvlink_dl_cmd_command_laneshutdown_v(void)
720{
721 return 0x0000000cU;
722}
723static inline u32 minion_nvlink_dl_cmd_command_laneshutdown_f(void)
724{
725 return 0xcU;
726}
727static inline u32 minion_nvlink_dl_cmd_command_setacmode_v(void)
728{
729 return 0x0000000aU;
730}
731static inline u32 minion_nvlink_dl_cmd_command_setacmode_f(void)
732{
733 return 0xaU;
734}
735static inline u32 minion_nvlink_dl_cmd_command_clracmode_v(void)
736{
737 return 0x0000000bU;
738}
739static inline u32 minion_nvlink_dl_cmd_command_clracmode_f(void)
740{
741 return 0xbU;
742}
743static inline u32 minion_nvlink_dl_cmd_command_enablepm_v(void)
744{
745 return 0x00000010U;
746}
747static inline u32 minion_nvlink_dl_cmd_command_enablepm_f(void)
748{
749 return 0x10U;
750}
751static inline u32 minion_nvlink_dl_cmd_command_disablepm_v(void)
752{
753 return 0x00000011U;
754}
755static inline u32 minion_nvlink_dl_cmd_command_disablepm_f(void)
756{
757 return 0x11U;
758}
759static inline u32 minion_nvlink_dl_cmd_command_savestate_v(void)
760{
761 return 0x00000018U;
762}
763static inline u32 minion_nvlink_dl_cmd_command_savestate_f(void)
764{
765 return 0x18U;
766}
767static inline u32 minion_nvlink_dl_cmd_command_restorestate_v(void)
768{
769 return 0x00000019U;
770}
771static inline u32 minion_nvlink_dl_cmd_command_restorestate_f(void)
772{
773 return 0x19U;
774}
775static inline u32 minion_nvlink_dl_cmd_command_initpll_0_v(void)
776{
777 return 0x00000020U;
778}
779static inline u32 minion_nvlink_dl_cmd_command_initpll_0_f(void)
780{
781 return 0x20U;
782}
783static inline u32 minion_nvlink_dl_cmd_command_initpll_1_v(void)
784{
785 return 0x00000021U;
786}
787static inline u32 minion_nvlink_dl_cmd_command_initpll_1_f(void)
788{
789 return 0x21U;
790}
791static inline u32 minion_nvlink_dl_cmd_command_initpll_2_v(void)
792{
793 return 0x00000022U;
794}
795static inline u32 minion_nvlink_dl_cmd_command_initpll_2_f(void)
796{
797 return 0x22U;
798}
799static inline u32 minion_nvlink_dl_cmd_command_initpll_3_v(void)
800{
801 return 0x00000023U;
802}
803static inline u32 minion_nvlink_dl_cmd_command_initpll_3_f(void)
804{
805 return 0x23U;
806}
807static inline u32 minion_nvlink_dl_cmd_command_initpll_4_v(void)
808{
809 return 0x00000024U;
810}
811static inline u32 minion_nvlink_dl_cmd_command_initpll_4_f(void)
812{
813 return 0x24U;
814}
815static inline u32 minion_nvlink_dl_cmd_command_initpll_5_v(void)
816{
817 return 0x00000025U;
818}
819static inline u32 minion_nvlink_dl_cmd_command_initpll_5_f(void)
820{
821 return 0x25U;
822}
823static inline u32 minion_nvlink_dl_cmd_command_initpll_6_v(void)
824{
825 return 0x00000026U;
826}
827static inline u32 minion_nvlink_dl_cmd_command_initpll_6_f(void)
828{
829 return 0x26U;
830}
831static inline u32 minion_nvlink_dl_cmd_command_initpll_7_v(void)
832{
833 return 0x00000027U;
834}
835static inline u32 minion_nvlink_dl_cmd_command_initpll_7_f(void)
836{
837 return 0x27U;
838}
839static inline u32 minion_nvlink_dl_cmd_fault_f(u32 v)
840{
841 return (v & 0x1U) << 30U;
842}
843static inline u32 minion_nvlink_dl_cmd_fault_v(u32 r)
844{
845 return (r >> 30U) & 0x1U;
846}
847static inline u32 minion_nvlink_dl_cmd_ready_f(u32 v)
848{
849 return (v & 0x1U) << 31U;
850}
851static inline u32 minion_nvlink_dl_cmd_ready_v(u32 r)
852{
853 return (r >> 31U) & 0x1U;
854}
855static inline u32 minion_misc_0_r(void)
856{
857 return 0x000008b0U;
858}
859static inline u32 minion_misc_0_scratch_swrw_0_f(u32 v)
860{
861 return (v & 0xffffffffU) << 0U;
862}
863static inline u32 minion_misc_0_scratch_swrw_0_v(u32 r)
864{
865 return (r >> 0U) & 0xffffffffU;
866}
867static inline u32 minion_nvlink_link_intr_r(u32 i)
868{
869 return 0x00000a00U + i*4U;
870}
871static inline u32 minion_nvlink_link_intr___size_1_v(void)
872{
873 return 0x00000006U;
874}
875static inline u32 minion_nvlink_link_intr_code_f(u32 v)
876{
877 return (v & 0xffU) << 0U;
878}
879static inline u32 minion_nvlink_link_intr_code_m(void)
880{
881 return 0xffU << 0U;
882}
883static inline u32 minion_nvlink_link_intr_code_v(u32 r)
884{
885 return (r >> 0U) & 0xffU;
886}
887static inline u32 minion_nvlink_link_intr_code_na_v(void)
888{
889 return 0x00000000U;
890}
891static inline u32 minion_nvlink_link_intr_code_na_f(void)
892{
893 return 0x0U;
894}
895static inline u32 minion_nvlink_link_intr_code_swreq_v(void)
896{
897 return 0x00000001U;
898}
899static inline u32 minion_nvlink_link_intr_code_swreq_f(void)
900{
901 return 0x1U;
902}
903static inline u32 minion_nvlink_link_intr_code_dlreq_v(void)
904{
905 return 0x00000002U;
906}
907static inline u32 minion_nvlink_link_intr_code_dlreq_f(void)
908{
909 return 0x2U;
910}
911static inline u32 minion_nvlink_link_intr_code_pmdisabled_v(void)
912{
913 return 0x00000003U;
914}
915static inline u32 minion_nvlink_link_intr_code_pmdisabled_f(void)
916{
917 return 0x3U;
918}
919static inline u32 minion_nvlink_link_intr_subcode_f(u32 v)
920{
921 return (v & 0xffU) << 8U;
922}
923static inline u32 minion_nvlink_link_intr_subcode_m(void)
924{
925 return 0xffU << 8U;
926}
927static inline u32 minion_nvlink_link_intr_subcode_v(u32 r)
928{
929 return (r >> 8U) & 0xffU;
930}
931static inline u32 minion_nvlink_link_intr_state_f(u32 v)
932{
933 return (v & 0x1U) << 31U;
934}
935static inline u32 minion_nvlink_link_intr_state_m(void)
936{
937 return 0x1U << 31U;
938}
939static inline u32 minion_nvlink_link_intr_state_v(u32 r)
940{
941 return (r >> 31U) & 0x1U;
942}
943#endif
diff --git a/include/nvgpu/hw/gv100/hw_nvl_gv100.h b/include/nvgpu/hw/gv100/hw_nvl_gv100.h
new file mode 100644
index 0000000..2e4ec16
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_nvl_gv100.h
@@ -0,0 +1,1571 @@
1/*
2 * Copyright (c) 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_nvl_gv100_h_
57#define _hw_nvl_gv100_h_
58
59static inline u32 nvl_link_state_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 nvl_link_state_state_f(u32 v)
64{
65 return (v & 0xffU) << 0U;
66}
67static inline u32 nvl_link_state_state_m(void)
68{
69 return 0xffU << 0U;
70}
71static inline u32 nvl_link_state_state_v(u32 r)
72{
73 return (r >> 0U) & 0xffU;
74}
75static inline u32 nvl_link_state_state_init_v(void)
76{
77 return 0x00000000U;
78}
79static inline u32 nvl_link_state_state_init_f(void)
80{
81 return 0x0U;
82}
83static inline u32 nvl_link_state_state_hwcfg_v(void)
84{
85 return 0x00000001U;
86}
87static inline u32 nvl_link_state_state_hwcfg_f(void)
88{
89 return 0x1U;
90}
91static inline u32 nvl_link_state_state_swcfg_v(void)
92{
93 return 0x00000002U;
94}
95static inline u32 nvl_link_state_state_swcfg_f(void)
96{
97 return 0x2U;
98}
99static inline u32 nvl_link_state_state_active_v(void)
100{
101 return 0x00000003U;
102}
103static inline u32 nvl_link_state_state_active_f(void)
104{
105 return 0x3U;
106}
107static inline u32 nvl_link_state_state_fault_v(void)
108{
109 return 0x00000004U;
110}
111static inline u32 nvl_link_state_state_fault_f(void)
112{
113 return 0x4U;
114}
115static inline u32 nvl_link_state_state_rcvy_ac_v(void)
116{
117 return 0x00000008U;
118}
119static inline u32 nvl_link_state_state_rcvy_ac_f(void)
120{
121 return 0x8U;
122}
123static inline u32 nvl_link_state_state_rcvy_sw_v(void)
124{
125 return 0x00000009U;
126}
127static inline u32 nvl_link_state_state_rcvy_sw_f(void)
128{
129 return 0x9U;
130}
131static inline u32 nvl_link_state_state_rcvy_rx_v(void)
132{
133 return 0x0000000aU;
134}
135static inline u32 nvl_link_state_state_rcvy_rx_f(void)
136{
137 return 0xaU;
138}
139static inline u32 nvl_link_state_an0_busy_f(u32 v)
140{
141 return (v & 0x1U) << 12U;
142}
143static inline u32 nvl_link_state_an0_busy_m(void)
144{
145 return 0x1U << 12U;
146}
147static inline u32 nvl_link_state_an0_busy_v(u32 r)
148{
149 return (r >> 12U) & 0x1U;
150}
151static inline u32 nvl_link_state_tl_busy_f(u32 v)
152{
153 return (v & 0x1U) << 13U;
154}
155static inline u32 nvl_link_state_tl_busy_m(void)
156{
157 return 0x1U << 13U;
158}
159static inline u32 nvl_link_state_tl_busy_v(u32 r)
160{
161 return (r >> 13U) & 0x1U;
162}
163static inline u32 nvl_link_state_dbg_substate_f(u32 v)
164{
165 return (v & 0xffffU) << 16U;
166}
167static inline u32 nvl_link_state_dbg_substate_m(void)
168{
169 return 0xffffU << 16U;
170}
171static inline u32 nvl_link_state_dbg_substate_v(u32 r)
172{
173 return (r >> 16U) & 0xffffU;
174}
175static inline u32 nvl_link_activity_r(void)
176{
177 return 0x0000000cU;
178}
179static inline u32 nvl_link_activity_blkact_f(u32 v)
180{
181 return (v & 0x7U) << 0U;
182}
183static inline u32 nvl_link_activity_blkact_m(void)
184{
185 return 0x7U << 0U;
186}
187static inline u32 nvl_link_activity_blkact_v(u32 r)
188{
189 return (r >> 0U) & 0x7U;
190}
191static inline u32 nvl_sublink_activity_r(u32 i)
192{
193 return 0x00000010U + i*4U;
194}
195static inline u32 nvl_sublink_activity_blkact0_f(u32 v)
196{
197 return (v & 0x7U) << 0U;
198}
199static inline u32 nvl_sublink_activity_blkact0_m(void)
200{
201 return 0x7U << 0U;
202}
203static inline u32 nvl_sublink_activity_blkact0_v(u32 r)
204{
205 return (r >> 0U) & 0x7U;
206}
207static inline u32 nvl_sublink_activity_blkact1_f(u32 v)
208{
209 return (v & 0x7U) << 8U;
210}
211static inline u32 nvl_sublink_activity_blkact1_m(void)
212{
213 return 0x7U << 8U;
214}
215static inline u32 nvl_sublink_activity_blkact1_v(u32 r)
216{
217 return (r >> 8U) & 0x7U;
218}
219static inline u32 nvl_link_config_r(void)
220{
221 return 0x00000018U;
222}
223static inline u32 nvl_link_config_ac_safe_en_f(u32 v)
224{
225 return (v & 0x1U) << 30U;
226}
227static inline u32 nvl_link_config_ac_safe_en_m(void)
228{
229 return 0x1U << 30U;
230}
231static inline u32 nvl_link_config_ac_safe_en_v(u32 r)
232{
233 return (r >> 30U) & 0x1U;
234}
235static inline u32 nvl_link_config_ac_safe_en_on_v(void)
236{
237 return 0x00000001U;
238}
239static inline u32 nvl_link_config_ac_safe_en_on_f(void)
240{
241 return 0x40000000U;
242}
243static inline u32 nvl_link_config_link_en_f(u32 v)
244{
245 return (v & 0x1U) << 31U;
246}
247static inline u32 nvl_link_config_link_en_m(void)
248{
249 return 0x1U << 31U;
250}
251static inline u32 nvl_link_config_link_en_v(u32 r)
252{
253 return (r >> 31U) & 0x1U;
254}
255static inline u32 nvl_link_config_link_en_on_v(void)
256{
257 return 0x00000001U;
258}
259static inline u32 nvl_link_config_link_en_on_f(void)
260{
261 return 0x80000000U;
262}
263static inline u32 nvl_link_change_r(void)
264{
265 return 0x00000040U;
266}
267static inline u32 nvl_link_change_oldstate_mask_f(u32 v)
268{
269 return (v & 0xfU) << 16U;
270}
271static inline u32 nvl_link_change_oldstate_mask_m(void)
272{
273 return 0xfU << 16U;
274}
275static inline u32 nvl_link_change_oldstate_mask_v(u32 r)
276{
277 return (r >> 16U) & 0xfU;
278}
279static inline u32 nvl_link_change_oldstate_mask_dontcare_v(void)
280{
281 return 0x0000000fU;
282}
283static inline u32 nvl_link_change_oldstate_mask_dontcare_f(void)
284{
285 return 0xf0000U;
286}
287static inline u32 nvl_link_change_newstate_f(u32 v)
288{
289 return (v & 0xfU) << 4U;
290}
291static inline u32 nvl_link_change_newstate_m(void)
292{
293 return 0xfU << 4U;
294}
295static inline u32 nvl_link_change_newstate_v(u32 r)
296{
297 return (r >> 4U) & 0xfU;
298}
299static inline u32 nvl_link_change_newstate_hwcfg_v(void)
300{
301 return 0x00000001U;
302}
303static inline u32 nvl_link_change_newstate_hwcfg_f(void)
304{
305 return 0x10U;
306}
307static inline u32 nvl_link_change_newstate_swcfg_v(void)
308{
309 return 0x00000002U;
310}
311static inline u32 nvl_link_change_newstate_swcfg_f(void)
312{
313 return 0x20U;
314}
315static inline u32 nvl_link_change_newstate_active_v(void)
316{
317 return 0x00000003U;
318}
319static inline u32 nvl_link_change_newstate_active_f(void)
320{
321 return 0x30U;
322}
323static inline u32 nvl_link_change_action_f(u32 v)
324{
325 return (v & 0x3U) << 2U;
326}
327static inline u32 nvl_link_change_action_m(void)
328{
329 return 0x3U << 2U;
330}
331static inline u32 nvl_link_change_action_v(u32 r)
332{
333 return (r >> 2U) & 0x3U;
334}
335static inline u32 nvl_link_change_action_ltssm_change_v(void)
336{
337 return 0x00000001U;
338}
339static inline u32 nvl_link_change_action_ltssm_change_f(void)
340{
341 return 0x4U;
342}
343static inline u32 nvl_link_change_status_f(u32 v)
344{
345 return (v & 0x3U) << 0U;
346}
347static inline u32 nvl_link_change_status_m(void)
348{
349 return 0x3U << 0U;
350}
351static inline u32 nvl_link_change_status_v(u32 r)
352{
353 return (r >> 0U) & 0x3U;
354}
355static inline u32 nvl_link_change_status_done_v(void)
356{
357 return 0x00000000U;
358}
359static inline u32 nvl_link_change_status_done_f(void)
360{
361 return 0x0U;
362}
363static inline u32 nvl_link_change_status_busy_v(void)
364{
365 return 0x00000001U;
366}
367static inline u32 nvl_link_change_status_busy_f(void)
368{
369 return 0x1U;
370}
371static inline u32 nvl_link_change_status_fault_v(void)
372{
373 return 0x00000002U;
374}
375static inline u32 nvl_link_change_status_fault_f(void)
376{
377 return 0x2U;
378}
379static inline u32 nvl_sublink_change_r(void)
380{
381 return 0x00000044U;
382}
383static inline u32 nvl_sublink_change_countdown_f(u32 v)
384{
385 return (v & 0xfffU) << 20U;
386}
387static inline u32 nvl_sublink_change_countdown_m(void)
388{
389 return 0xfffU << 20U;
390}
391static inline u32 nvl_sublink_change_countdown_v(u32 r)
392{
393 return (r >> 20U) & 0xfffU;
394}
395static inline u32 nvl_sublink_change_oldstate_mask_f(u32 v)
396{
397 return (v & 0xfU) << 16U;
398}
399static inline u32 nvl_sublink_change_oldstate_mask_m(void)
400{
401 return 0xfU << 16U;
402}
403static inline u32 nvl_sublink_change_oldstate_mask_v(u32 r)
404{
405 return (r >> 16U) & 0xfU;
406}
407static inline u32 nvl_sublink_change_oldstate_mask_dontcare_v(void)
408{
409 return 0x0000000fU;
410}
411static inline u32 nvl_sublink_change_oldstate_mask_dontcare_f(void)
412{
413 return 0xf0000U;
414}
415static inline u32 nvl_sublink_change_sublink_f(u32 v)
416{
417 return (v & 0xfU) << 12U;
418}
419static inline u32 nvl_sublink_change_sublink_m(void)
420{
421 return 0xfU << 12U;
422}
423static inline u32 nvl_sublink_change_sublink_v(u32 r)
424{
425 return (r >> 12U) & 0xfU;
426}
427static inline u32 nvl_sublink_change_sublink_tx_v(void)
428{
429 return 0x00000000U;
430}
431static inline u32 nvl_sublink_change_sublink_tx_f(void)
432{
433 return 0x0U;
434}
435static inline u32 nvl_sublink_change_sublink_rx_v(void)
436{
437 return 0x00000001U;
438}
439static inline u32 nvl_sublink_change_sublink_rx_f(void)
440{
441 return 0x1000U;
442}
443static inline u32 nvl_sublink_change_newstate_f(u32 v)
444{
445 return (v & 0xfU) << 4U;
446}
447static inline u32 nvl_sublink_change_newstate_m(void)
448{
449 return 0xfU << 4U;
450}
451static inline u32 nvl_sublink_change_newstate_v(u32 r)
452{
453 return (r >> 4U) & 0xfU;
454}
455static inline u32 nvl_sublink_change_newstate_hs_v(void)
456{
457 return 0x00000000U;
458}
459static inline u32 nvl_sublink_change_newstate_hs_f(void)
460{
461 return 0x0U;
462}
463static inline u32 nvl_sublink_change_newstate_eighth_v(void)
464{
465 return 0x00000004U;
466}
467static inline u32 nvl_sublink_change_newstate_eighth_f(void)
468{
469 return 0x40U;
470}
471static inline u32 nvl_sublink_change_newstate_train_v(void)
472{
473 return 0x00000005U;
474}
475static inline u32 nvl_sublink_change_newstate_train_f(void)
476{
477 return 0x50U;
478}
479static inline u32 nvl_sublink_change_newstate_safe_v(void)
480{
481 return 0x00000006U;
482}
483static inline u32 nvl_sublink_change_newstate_safe_f(void)
484{
485 return 0x60U;
486}
487static inline u32 nvl_sublink_change_newstate_off_v(void)
488{
489 return 0x00000007U;
490}
491static inline u32 nvl_sublink_change_newstate_off_f(void)
492{
493 return 0x70U;
494}
495static inline u32 nvl_sublink_change_action_f(u32 v)
496{
497 return (v & 0x3U) << 2U;
498}
499static inline u32 nvl_sublink_change_action_m(void)
500{
501 return 0x3U << 2U;
502}
503static inline u32 nvl_sublink_change_action_v(u32 r)
504{
505 return (r >> 2U) & 0x3U;
506}
507static inline u32 nvl_sublink_change_action_slsm_change_v(void)
508{
509 return 0x00000001U;
510}
511static inline u32 nvl_sublink_change_action_slsm_change_f(void)
512{
513 return 0x4U;
514}
515static inline u32 nvl_sublink_change_status_f(u32 v)
516{
517 return (v & 0x3U) << 0U;
518}
519static inline u32 nvl_sublink_change_status_m(void)
520{
521 return 0x3U << 0U;
522}
523static inline u32 nvl_sublink_change_status_v(u32 r)
524{
525 return (r >> 0U) & 0x3U;
526}
527static inline u32 nvl_sublink_change_status_done_v(void)
528{
529 return 0x00000000U;
530}
531static inline u32 nvl_sublink_change_status_done_f(void)
532{
533 return 0x0U;
534}
535static inline u32 nvl_sublink_change_status_busy_v(void)
536{
537 return 0x00000001U;
538}
539static inline u32 nvl_sublink_change_status_busy_f(void)
540{
541 return 0x1U;
542}
543static inline u32 nvl_sublink_change_status_fault_v(void)
544{
545 return 0x00000002U;
546}
547static inline u32 nvl_sublink_change_status_fault_f(void)
548{
549 return 0x2U;
550}
551static inline u32 nvl_link_test_r(void)
552{
553 return 0x00000048U;
554}
555static inline u32 nvl_link_test_mode_f(u32 v)
556{
557 return (v & 0x1U) << 0U;
558}
559static inline u32 nvl_link_test_mode_m(void)
560{
561 return 0x1U << 0U;
562}
563static inline u32 nvl_link_test_mode_v(u32 r)
564{
565 return (r >> 0U) & 0x1U;
566}
567static inline u32 nvl_link_test_mode_enable_v(void)
568{
569 return 0x00000001U;
570}
571static inline u32 nvl_link_test_mode_enable_f(void)
572{
573 return 0x1U;
574}
575static inline u32 nvl_link_test_auto_hwcfg_f(u32 v)
576{
577 return (v & 0x1U) << 30U;
578}
579static inline u32 nvl_link_test_auto_hwcfg_m(void)
580{
581 return 0x1U << 30U;
582}
583static inline u32 nvl_link_test_auto_hwcfg_v(u32 r)
584{
585 return (r >> 30U) & 0x1U;
586}
587static inline u32 nvl_link_test_auto_hwcfg_enable_v(void)
588{
589 return 0x00000001U;
590}
591static inline u32 nvl_link_test_auto_hwcfg_enable_f(void)
592{
593 return 0x40000000U;
594}
595static inline u32 nvl_link_test_auto_nvhs_f(u32 v)
596{
597 return (v & 0x1U) << 31U;
598}
599static inline u32 nvl_link_test_auto_nvhs_m(void)
600{
601 return 0x1U << 31U;
602}
603static inline u32 nvl_link_test_auto_nvhs_v(u32 r)
604{
605 return (r >> 31U) & 0x1U;
606}
607static inline u32 nvl_link_test_auto_nvhs_enable_v(void)
608{
609 return 0x00000001U;
610}
611static inline u32 nvl_link_test_auto_nvhs_enable_f(void)
612{
613 return 0x80000000U;
614}
615static inline u32 nvl_sl0_slsm_status_tx_r(void)
616{
617 return 0x00002024U;
618}
619static inline u32 nvl_sl0_slsm_status_tx_substate_f(u32 v)
620{
621 return (v & 0xfU) << 0U;
622}
623static inline u32 nvl_sl0_slsm_status_tx_substate_m(void)
624{
625 return 0xfU << 0U;
626}
627static inline u32 nvl_sl0_slsm_status_tx_substate_v(u32 r)
628{
629 return (r >> 0U) & 0xfU;
630}
631static inline u32 nvl_sl0_slsm_status_tx_primary_state_f(u32 v)
632{
633 return (v & 0xfU) << 4U;
634}
635static inline u32 nvl_sl0_slsm_status_tx_primary_state_m(void)
636{
637 return 0xfU << 4U;
638}
639static inline u32 nvl_sl0_slsm_status_tx_primary_state_v(u32 r)
640{
641 return (r >> 4U) & 0xfU;
642}
643static inline u32 nvl_sl0_slsm_status_tx_primary_state_hs_v(void)
644{
645 return 0x00000000U;
646}
647static inline u32 nvl_sl0_slsm_status_tx_primary_state_hs_f(void)
648{
649 return 0x0U;
650}
651static inline u32 nvl_sl0_slsm_status_tx_primary_state_eighth_v(void)
652{
653 return 0x00000004U;
654}
655static inline u32 nvl_sl0_slsm_status_tx_primary_state_eighth_f(void)
656{
657 return 0x40U;
658}
659static inline u32 nvl_sl0_slsm_status_tx_primary_state_train_v(void)
660{
661 return 0x00000005U;
662}
663static inline u32 nvl_sl0_slsm_status_tx_primary_state_train_f(void)
664{
665 return 0x50U;
666}
667static inline u32 nvl_sl0_slsm_status_tx_primary_state_off_v(void)
668{
669 return 0x00000007U;
670}
671static inline u32 nvl_sl0_slsm_status_tx_primary_state_off_f(void)
672{
673 return 0x70U;
674}
675static inline u32 nvl_sl0_slsm_status_tx_primary_state_safe_v(void)
676{
677 return 0x00000006U;
678}
679static inline u32 nvl_sl0_slsm_status_tx_primary_state_safe_f(void)
680{
681 return 0x60U;
682}
683static inline u32 nvl_sl1_slsm_status_rx_r(void)
684{
685 return 0x00003014U;
686}
687static inline u32 nvl_sl1_slsm_status_rx_substate_f(u32 v)
688{
689 return (v & 0xfU) << 0U;
690}
691static inline u32 nvl_sl1_slsm_status_rx_substate_m(void)
692{
693 return 0xfU << 0U;
694}
695static inline u32 nvl_sl1_slsm_status_rx_substate_v(u32 r)
696{
697 return (r >> 0U) & 0xfU;
698}
699static inline u32 nvl_sl1_slsm_status_rx_primary_state_f(u32 v)
700{
701 return (v & 0xfU) << 4U;
702}
703static inline u32 nvl_sl1_slsm_status_rx_primary_state_m(void)
704{
705 return 0xfU << 4U;
706}
707static inline u32 nvl_sl1_slsm_status_rx_primary_state_v(u32 r)
708{
709 return (r >> 4U) & 0xfU;
710}
711static inline u32 nvl_sl1_slsm_status_rx_primary_state_hs_v(void)
712{
713 return 0x00000000U;
714}
715static inline u32 nvl_sl1_slsm_status_rx_primary_state_hs_f(void)
716{
717 return 0x0U;
718}
719static inline u32 nvl_sl1_slsm_status_rx_primary_state_eighth_v(void)
720{
721 return 0x00000004U;
722}
723static inline u32 nvl_sl1_slsm_status_rx_primary_state_eighth_f(void)
724{
725 return 0x40U;
726}
727static inline u32 nvl_sl1_slsm_status_rx_primary_state_train_v(void)
728{
729 return 0x00000005U;
730}
731static inline u32 nvl_sl1_slsm_status_rx_primary_state_train_f(void)
732{
733 return 0x50U;
734}
735static inline u32 nvl_sl1_slsm_status_rx_primary_state_off_v(void)
736{
737 return 0x00000007U;
738}
739static inline u32 nvl_sl1_slsm_status_rx_primary_state_off_f(void)
740{
741 return 0x70U;
742}
743static inline u32 nvl_sl1_slsm_status_rx_primary_state_safe_v(void)
744{
745 return 0x00000006U;
746}
747static inline u32 nvl_sl1_slsm_status_rx_primary_state_safe_f(void)
748{
749 return 0x60U;
750}
751static inline u32 nvl_sl0_safe_ctrl2_tx_r(void)
752{
753 return 0x00002008U;
754}
755static inline u32 nvl_sl0_safe_ctrl2_tx_ctr_init_f(u32 v)
756{
757 return (v & 0x7ffU) << 0U;
758}
759static inline u32 nvl_sl0_safe_ctrl2_tx_ctr_init_m(void)
760{
761 return 0x7ffU << 0U;
762}
763static inline u32 nvl_sl0_safe_ctrl2_tx_ctr_init_v(u32 r)
764{
765 return (r >> 0U) & 0x7ffU;
766}
767static inline u32 nvl_sl0_safe_ctrl2_tx_ctr_init_init_v(void)
768{
769 return 0x00000728U;
770}
771static inline u32 nvl_sl0_safe_ctrl2_tx_ctr_init_init_f(void)
772{
773 return 0x728U;
774}
775static inline u32 nvl_sl0_safe_ctrl2_tx_ctr_initscl_f(u32 v)
776{
777 return (v & 0x1fU) << 11U;
778}
779static inline u32 nvl_sl0_safe_ctrl2_tx_ctr_initscl_m(void)
780{
781 return 0x1fU << 11U;
782}
783static inline u32 nvl_sl0_safe_ctrl2_tx_ctr_initscl_v(u32 r)
784{
785 return (r >> 11U) & 0x1fU;
786}
787static inline u32 nvl_sl0_safe_ctrl2_tx_ctr_initscl_init_v(void)
788{
789 return 0x0000000fU;
790}
791static inline u32 nvl_sl0_safe_ctrl2_tx_ctr_initscl_init_f(void)
792{
793 return 0x7800U;
794}
795static inline u32 nvl_sl1_error_rate_ctrl_r(void)
796{
797 return 0x00003284U;
798}
799static inline u32 nvl_sl1_error_rate_ctrl_short_threshold_man_f(u32 v)
800{
801 return (v & 0x7U) << 0U;
802}
803static inline u32 nvl_sl1_error_rate_ctrl_short_threshold_man_m(void)
804{
805 return 0x7U << 0U;
806}
807static inline u32 nvl_sl1_error_rate_ctrl_short_threshold_man_v(u32 r)
808{
809 return (r >> 0U) & 0x7U;
810}
811static inline u32 nvl_sl1_error_rate_ctrl_long_threshold_man_f(u32 v)
812{
813 return (v & 0x7U) << 16U;
814}
815static inline u32 nvl_sl1_error_rate_ctrl_long_threshold_man_m(void)
816{
817 return 0x7U << 16U;
818}
819static inline u32 nvl_sl1_error_rate_ctrl_long_threshold_man_v(u32 r)
820{
821 return (r >> 16U) & 0x7U;
822}
823static inline u32 nvl_sl1_rxslsm_timeout_2_r(void)
824{
825 return 0x00003034U;
826}
827static inline u32 nvl_txiobist_configreg_r(void)
828{
829 return 0x00002e14U;
830}
831static inline u32 nvl_txiobist_configreg_io_bist_mode_in_f(u32 v)
832{
833 return (v & 0x1U) << 17U;
834}
835static inline u32 nvl_txiobist_configreg_io_bist_mode_in_m(void)
836{
837 return 0x1U << 17U;
838}
839static inline u32 nvl_txiobist_configreg_io_bist_mode_in_v(u32 r)
840{
841 return (r >> 17U) & 0x1U;
842}
843static inline u32 nvl_txiobist_config_r(void)
844{
845 return 0x00002e10U;
846}
847static inline u32 nvl_txiobist_config_dpg_prbsseedld_f(u32 v)
848{
849 return (v & 0x1U) << 2U;
850}
851static inline u32 nvl_txiobist_config_dpg_prbsseedld_m(void)
852{
853 return 0x1U << 2U;
854}
855static inline u32 nvl_txiobist_config_dpg_prbsseedld_v(u32 r)
856{
857 return (r >> 2U) & 0x1U;
858}
859static inline u32 nvl_intr_r(void)
860{
861 return 0x00000050U;
862}
863static inline u32 nvl_intr_tx_replay_f(u32 v)
864{
865 return (v & 0x1U) << 0U;
866}
867static inline u32 nvl_intr_tx_replay_m(void)
868{
869 return 0x1U << 0U;
870}
871static inline u32 nvl_intr_tx_replay_v(u32 r)
872{
873 return (r >> 0U) & 0x1U;
874}
875static inline u32 nvl_intr_tx_recovery_short_f(u32 v)
876{
877 return (v & 0x1U) << 1U;
878}
879static inline u32 nvl_intr_tx_recovery_short_m(void)
880{
881 return 0x1U << 1U;
882}
883static inline u32 nvl_intr_tx_recovery_short_v(u32 r)
884{
885 return (r >> 1U) & 0x1U;
886}
887static inline u32 nvl_intr_tx_recovery_long_f(u32 v)
888{
889 return (v & 0x1U) << 2U;
890}
891static inline u32 nvl_intr_tx_recovery_long_m(void)
892{
893 return 0x1U << 2U;
894}
895static inline u32 nvl_intr_tx_recovery_long_v(u32 r)
896{
897 return (r >> 2U) & 0x1U;
898}
899static inline u32 nvl_intr_tx_fault_ram_f(u32 v)
900{
901 return (v & 0x1U) << 4U;
902}
903static inline u32 nvl_intr_tx_fault_ram_m(void)
904{
905 return 0x1U << 4U;
906}
907static inline u32 nvl_intr_tx_fault_ram_v(u32 r)
908{
909 return (r >> 4U) & 0x1U;
910}
911static inline u32 nvl_intr_tx_fault_interface_f(u32 v)
912{
913 return (v & 0x1U) << 5U;
914}
915static inline u32 nvl_intr_tx_fault_interface_m(void)
916{
917 return 0x1U << 5U;
918}
919static inline u32 nvl_intr_tx_fault_interface_v(u32 r)
920{
921 return (r >> 5U) & 0x1U;
922}
923static inline u32 nvl_intr_tx_fault_sublink_change_f(u32 v)
924{
925 return (v & 0x1U) << 8U;
926}
927static inline u32 nvl_intr_tx_fault_sublink_change_m(void)
928{
929 return 0x1U << 8U;
930}
931static inline u32 nvl_intr_tx_fault_sublink_change_v(u32 r)
932{
933 return (r >> 8U) & 0x1U;
934}
935static inline u32 nvl_intr_rx_fault_sublink_change_f(u32 v)
936{
937 return (v & 0x1U) << 16U;
938}
939static inline u32 nvl_intr_rx_fault_sublink_change_m(void)
940{
941 return 0x1U << 16U;
942}
943static inline u32 nvl_intr_rx_fault_sublink_change_v(u32 r)
944{
945 return (r >> 16U) & 0x1U;
946}
947static inline u32 nvl_intr_rx_fault_dl_protocol_f(u32 v)
948{
949 return (v & 0x1U) << 20U;
950}
951static inline u32 nvl_intr_rx_fault_dl_protocol_m(void)
952{
953 return 0x1U << 20U;
954}
955static inline u32 nvl_intr_rx_fault_dl_protocol_v(u32 r)
956{
957 return (r >> 20U) & 0x1U;
958}
959static inline u32 nvl_intr_rx_short_error_rate_f(u32 v)
960{
961 return (v & 0x1U) << 21U;
962}
963static inline u32 nvl_intr_rx_short_error_rate_m(void)
964{
965 return 0x1U << 21U;
966}
967static inline u32 nvl_intr_rx_short_error_rate_v(u32 r)
968{
969 return (r >> 21U) & 0x1U;
970}
971static inline u32 nvl_intr_rx_long_error_rate_f(u32 v)
972{
973 return (v & 0x1U) << 22U;
974}
975static inline u32 nvl_intr_rx_long_error_rate_m(void)
976{
977 return 0x1U << 22U;
978}
979static inline u32 nvl_intr_rx_long_error_rate_v(u32 r)
980{
981 return (r >> 22U) & 0x1U;
982}
983static inline u32 nvl_intr_rx_ila_trigger_f(u32 v)
984{
985 return (v & 0x1U) << 23U;
986}
987static inline u32 nvl_intr_rx_ila_trigger_m(void)
988{
989 return 0x1U << 23U;
990}
991static inline u32 nvl_intr_rx_ila_trigger_v(u32 r)
992{
993 return (r >> 23U) & 0x1U;
994}
995static inline u32 nvl_intr_rx_crc_counter_f(u32 v)
996{
997 return (v & 0x1U) << 24U;
998}
999static inline u32 nvl_intr_rx_crc_counter_m(void)
1000{
1001 return 0x1U << 24U;
1002}
1003static inline u32 nvl_intr_rx_crc_counter_v(u32 r)
1004{
1005 return (r >> 24U) & 0x1U;
1006}
1007static inline u32 nvl_intr_ltssm_fault_f(u32 v)
1008{
1009 return (v & 0x1U) << 28U;
1010}
1011static inline u32 nvl_intr_ltssm_fault_m(void)
1012{
1013 return 0x1U << 28U;
1014}
1015static inline u32 nvl_intr_ltssm_fault_v(u32 r)
1016{
1017 return (r >> 28U) & 0x1U;
1018}
1019static inline u32 nvl_intr_ltssm_protocol_f(u32 v)
1020{
1021 return (v & 0x1U) << 29U;
1022}
1023static inline u32 nvl_intr_ltssm_protocol_m(void)
1024{
1025 return 0x1U << 29U;
1026}
1027static inline u32 nvl_intr_ltssm_protocol_v(u32 r)
1028{
1029 return (r >> 29U) & 0x1U;
1030}
1031static inline u32 nvl_intr_minion_request_f(u32 v)
1032{
1033 return (v & 0x1U) << 30U;
1034}
1035static inline u32 nvl_intr_minion_request_m(void)
1036{
1037 return 0x1U << 30U;
1038}
1039static inline u32 nvl_intr_minion_request_v(u32 r)
1040{
1041 return (r >> 30U) & 0x1U;
1042}
1043static inline u32 nvl_intr_sw2_r(void)
1044{
1045 return 0x00000054U;
1046}
1047static inline u32 nvl_intr_minion_r(void)
1048{
1049 return 0x00000060U;
1050}
1051static inline u32 nvl_intr_minion_tx_replay_f(u32 v)
1052{
1053 return (v & 0x1U) << 0U;
1054}
1055static inline u32 nvl_intr_minion_tx_replay_m(void)
1056{
1057 return 0x1U << 0U;
1058}
1059static inline u32 nvl_intr_minion_tx_replay_v(u32 r)
1060{
1061 return (r >> 0U) & 0x1U;
1062}
1063static inline u32 nvl_intr_minion_tx_recovery_short_f(u32 v)
1064{
1065 return (v & 0x1U) << 1U;
1066}
1067static inline u32 nvl_intr_minion_tx_recovery_short_m(void)
1068{
1069 return 0x1U << 1U;
1070}
1071static inline u32 nvl_intr_minion_tx_recovery_short_v(u32 r)
1072{
1073 return (r >> 1U) & 0x1U;
1074}
1075static inline u32 nvl_intr_minion_tx_recovery_long_f(u32 v)
1076{
1077 return (v & 0x1U) << 2U;
1078}
1079static inline u32 nvl_intr_minion_tx_recovery_long_m(void)
1080{
1081 return 0x1U << 2U;
1082}
1083static inline u32 nvl_intr_minion_tx_recovery_long_v(u32 r)
1084{
1085 return (r >> 2U) & 0x1U;
1086}
1087static inline u32 nvl_intr_minion_tx_fault_ram_f(u32 v)
1088{
1089 return (v & 0x1U) << 4U;
1090}
1091static inline u32 nvl_intr_minion_tx_fault_ram_m(void)
1092{
1093 return 0x1U << 4U;
1094}
1095static inline u32 nvl_intr_minion_tx_fault_ram_v(u32 r)
1096{
1097 return (r >> 4U) & 0x1U;
1098}
1099static inline u32 nvl_intr_minion_tx_fault_interface_f(u32 v)
1100{
1101 return (v & 0x1U) << 5U;
1102}
1103static inline u32 nvl_intr_minion_tx_fault_interface_m(void)
1104{
1105 return 0x1U << 5U;
1106}
1107static inline u32 nvl_intr_minion_tx_fault_interface_v(u32 r)
1108{
1109 return (r >> 5U) & 0x1U;
1110}
1111static inline u32 nvl_intr_minion_tx_fault_sublink_change_f(u32 v)
1112{
1113 return (v & 0x1U) << 8U;
1114}
1115static inline u32 nvl_intr_minion_tx_fault_sublink_change_m(void)
1116{
1117 return 0x1U << 8U;
1118}
1119static inline u32 nvl_intr_minion_tx_fault_sublink_change_v(u32 r)
1120{
1121 return (r >> 8U) & 0x1U;
1122}
1123static inline u32 nvl_intr_minion_rx_fault_sublink_change_f(u32 v)
1124{
1125 return (v & 0x1U) << 16U;
1126}
1127static inline u32 nvl_intr_minion_rx_fault_sublink_change_m(void)
1128{
1129 return 0x1U << 16U;
1130}
1131static inline u32 nvl_intr_minion_rx_fault_sublink_change_v(u32 r)
1132{
1133 return (r >> 16U) & 0x1U;
1134}
1135static inline u32 nvl_intr_minion_rx_fault_dl_protocol_f(u32 v)
1136{
1137 return (v & 0x1U) << 20U;
1138}
1139static inline u32 nvl_intr_minion_rx_fault_dl_protocol_m(void)
1140{
1141 return 0x1U << 20U;
1142}
1143static inline u32 nvl_intr_minion_rx_fault_dl_protocol_v(u32 r)
1144{
1145 return (r >> 20U) & 0x1U;
1146}
1147static inline u32 nvl_intr_minion_rx_short_error_rate_f(u32 v)
1148{
1149 return (v & 0x1U) << 21U;
1150}
1151static inline u32 nvl_intr_minion_rx_short_error_rate_m(void)
1152{
1153 return 0x1U << 21U;
1154}
1155static inline u32 nvl_intr_minion_rx_short_error_rate_v(u32 r)
1156{
1157 return (r >> 21U) & 0x1U;
1158}
1159static inline u32 nvl_intr_minion_rx_long_error_rate_f(u32 v)
1160{
1161 return (v & 0x1U) << 22U;
1162}
1163static inline u32 nvl_intr_minion_rx_long_error_rate_m(void)
1164{
1165 return 0x1U << 22U;
1166}
1167static inline u32 nvl_intr_minion_rx_long_error_rate_v(u32 r)
1168{
1169 return (r >> 22U) & 0x1U;
1170}
1171static inline u32 nvl_intr_minion_rx_ila_trigger_f(u32 v)
1172{
1173 return (v & 0x1U) << 23U;
1174}
1175static inline u32 nvl_intr_minion_rx_ila_trigger_m(void)
1176{
1177 return 0x1U << 23U;
1178}
1179static inline u32 nvl_intr_minion_rx_ila_trigger_v(u32 r)
1180{
1181 return (r >> 23U) & 0x1U;
1182}
1183static inline u32 nvl_intr_minion_rx_crc_counter_f(u32 v)
1184{
1185 return (v & 0x1U) << 24U;
1186}
1187static inline u32 nvl_intr_minion_rx_crc_counter_m(void)
1188{
1189 return 0x1U << 24U;
1190}
1191static inline u32 nvl_intr_minion_rx_crc_counter_v(u32 r)
1192{
1193 return (r >> 24U) & 0x1U;
1194}
1195static inline u32 nvl_intr_minion_ltssm_fault_f(u32 v)
1196{
1197 return (v & 0x1U) << 28U;
1198}
1199static inline u32 nvl_intr_minion_ltssm_fault_m(void)
1200{
1201 return 0x1U << 28U;
1202}
1203static inline u32 nvl_intr_minion_ltssm_fault_v(u32 r)
1204{
1205 return (r >> 28U) & 0x1U;
1206}
1207static inline u32 nvl_intr_minion_ltssm_protocol_f(u32 v)
1208{
1209 return (v & 0x1U) << 29U;
1210}
1211static inline u32 nvl_intr_minion_ltssm_protocol_m(void)
1212{
1213 return 0x1U << 29U;
1214}
1215static inline u32 nvl_intr_minion_ltssm_protocol_v(u32 r)
1216{
1217 return (r >> 29U) & 0x1U;
1218}
1219static inline u32 nvl_intr_minion_minion_request_f(u32 v)
1220{
1221 return (v & 0x1U) << 30U;
1222}
1223static inline u32 nvl_intr_minion_minion_request_m(void)
1224{
1225 return 0x1U << 30U;
1226}
1227static inline u32 nvl_intr_minion_minion_request_v(u32 r)
1228{
1229 return (r >> 30U) & 0x1U;
1230}
1231static inline u32 nvl_intr_nonstall_en_r(void)
1232{
1233 return 0x0000005cU;
1234}
1235static inline u32 nvl_intr_stall_en_r(void)
1236{
1237 return 0x00000058U;
1238}
1239static inline u32 nvl_intr_stall_en_tx_replay_f(u32 v)
1240{
1241 return (v & 0x1U) << 0U;
1242}
1243static inline u32 nvl_intr_stall_en_tx_replay_m(void)
1244{
1245 return 0x1U << 0U;
1246}
1247static inline u32 nvl_intr_stall_en_tx_replay_v(u32 r)
1248{
1249 return (r >> 0U) & 0x1U;
1250}
1251static inline u32 nvl_intr_stall_en_tx_recovery_short_f(u32 v)
1252{
1253 return (v & 0x1U) << 1U;
1254}
1255static inline u32 nvl_intr_stall_en_tx_recovery_short_m(void)
1256{
1257 return 0x1U << 1U;
1258}
1259static inline u32 nvl_intr_stall_en_tx_recovery_short_v(u32 r)
1260{
1261 return (r >> 1U) & 0x1U;
1262}
1263static inline u32 nvl_intr_stall_en_tx_recovery_short_enable_v(void)
1264{
1265 return 0x00000001U;
1266}
1267static inline u32 nvl_intr_stall_en_tx_recovery_short_enable_f(void)
1268{
1269 return 0x2U;
1270}
1271static inline u32 nvl_intr_stall_en_tx_recovery_long_f(u32 v)
1272{
1273 return (v & 0x1U) << 2U;
1274}
1275static inline u32 nvl_intr_stall_en_tx_recovery_long_m(void)
1276{
1277 return 0x1U << 2U;
1278}
1279static inline u32 nvl_intr_stall_en_tx_recovery_long_v(u32 r)
1280{
1281 return (r >> 2U) & 0x1U;
1282}
1283static inline u32 nvl_intr_stall_en_tx_recovery_long_enable_v(void)
1284{
1285 return 0x00000001U;
1286}
1287static inline u32 nvl_intr_stall_en_tx_recovery_long_enable_f(void)
1288{
1289 return 0x4U;
1290}
1291static inline u32 nvl_intr_stall_en_tx_fault_ram_f(u32 v)
1292{
1293 return (v & 0x1U) << 4U;
1294}
1295static inline u32 nvl_intr_stall_en_tx_fault_ram_m(void)
1296{
1297 return 0x1U << 4U;
1298}
1299static inline u32 nvl_intr_stall_en_tx_fault_ram_v(u32 r)
1300{
1301 return (r >> 4U) & 0x1U;
1302}
1303static inline u32 nvl_intr_stall_en_tx_fault_ram_enable_v(void)
1304{
1305 return 0x00000001U;
1306}
1307static inline u32 nvl_intr_stall_en_tx_fault_ram_enable_f(void)
1308{
1309 return 0x10U;
1310}
1311static inline u32 nvl_intr_stall_en_tx_fault_interface_f(u32 v)
1312{
1313 return (v & 0x1U) << 5U;
1314}
1315static inline u32 nvl_intr_stall_en_tx_fault_interface_m(void)
1316{
1317 return 0x1U << 5U;
1318}
1319static inline u32 nvl_intr_stall_en_tx_fault_interface_v(u32 r)
1320{
1321 return (r >> 5U) & 0x1U;
1322}
1323static inline u32 nvl_intr_stall_en_tx_fault_interface_enable_v(void)
1324{
1325 return 0x00000001U;
1326}
1327static inline u32 nvl_intr_stall_en_tx_fault_interface_enable_f(void)
1328{
1329 return 0x20U;
1330}
1331static inline u32 nvl_intr_stall_en_tx_fault_sublink_change_f(u32 v)
1332{
1333 return (v & 0x1U) << 8U;
1334}
1335static inline u32 nvl_intr_stall_en_tx_fault_sublink_change_m(void)
1336{
1337 return 0x1U << 8U;
1338}
1339static inline u32 nvl_intr_stall_en_tx_fault_sublink_change_v(u32 r)
1340{
1341 return (r >> 8U) & 0x1U;
1342}
1343static inline u32 nvl_intr_stall_en_tx_fault_sublink_change_enable_v(void)
1344{
1345 return 0x00000001U;
1346}
1347static inline u32 nvl_intr_stall_en_tx_fault_sublink_change_enable_f(void)
1348{
1349 return 0x100U;
1350}
1351static inline u32 nvl_intr_stall_en_rx_fault_sublink_change_f(u32 v)
1352{
1353 return (v & 0x1U) << 16U;
1354}
1355static inline u32 nvl_intr_stall_en_rx_fault_sublink_change_m(void)
1356{
1357 return 0x1U << 16U;
1358}
1359static inline u32 nvl_intr_stall_en_rx_fault_sublink_change_v(u32 r)
1360{
1361 return (r >> 16U) & 0x1U;
1362}
1363static inline u32 nvl_intr_stall_en_rx_fault_sublink_change_enable_v(void)
1364{
1365 return 0x00000001U;
1366}
1367static inline u32 nvl_intr_stall_en_rx_fault_sublink_change_enable_f(void)
1368{
1369 return 0x10000U;
1370}
1371static inline u32 nvl_intr_stall_en_rx_fault_dl_protocol_f(u32 v)
1372{
1373 return (v & 0x1U) << 20U;
1374}
1375static inline u32 nvl_intr_stall_en_rx_fault_dl_protocol_m(void)
1376{
1377 return 0x1U << 20U;
1378}
1379static inline u32 nvl_intr_stall_en_rx_fault_dl_protocol_v(u32 r)
1380{
1381 return (r >> 20U) & 0x1U;
1382}
1383static inline u32 nvl_intr_stall_en_rx_fault_dl_protocol_enable_v(void)
1384{
1385 return 0x00000001U;
1386}
1387static inline u32 nvl_intr_stall_en_rx_fault_dl_protocol_enable_f(void)
1388{
1389 return 0x100000U;
1390}
1391static inline u32 nvl_intr_stall_en_rx_short_error_rate_f(u32 v)
1392{
1393 return (v & 0x1U) << 21U;
1394}
1395static inline u32 nvl_intr_stall_en_rx_short_error_rate_m(void)
1396{
1397 return 0x1U << 21U;
1398}
1399static inline u32 nvl_intr_stall_en_rx_short_error_rate_v(u32 r)
1400{
1401 return (r >> 21U) & 0x1U;
1402}
1403static inline u32 nvl_intr_stall_en_rx_short_error_rate_enable_v(void)
1404{
1405 return 0x00000001U;
1406}
1407static inline u32 nvl_intr_stall_en_rx_short_error_rate_enable_f(void)
1408{
1409 return 0x200000U;
1410}
1411static inline u32 nvl_intr_stall_en_rx_long_error_rate_f(u32 v)
1412{
1413 return (v & 0x1U) << 22U;
1414}
1415static inline u32 nvl_intr_stall_en_rx_long_error_rate_m(void)
1416{
1417 return 0x1U << 22U;
1418}
1419static inline u32 nvl_intr_stall_en_rx_long_error_rate_v(u32 r)
1420{
1421 return (r >> 22U) & 0x1U;
1422}
1423static inline u32 nvl_intr_stall_en_rx_long_error_rate_enable_v(void)
1424{
1425 return 0x00000001U;
1426}
1427static inline u32 nvl_intr_stall_en_rx_long_error_rate_enable_f(void)
1428{
1429 return 0x400000U;
1430}
1431static inline u32 nvl_intr_stall_en_rx_ila_trigger_f(u32 v)
1432{
1433 return (v & 0x1U) << 23U;
1434}
1435static inline u32 nvl_intr_stall_en_rx_ila_trigger_m(void)
1436{
1437 return 0x1U << 23U;
1438}
1439static inline u32 nvl_intr_stall_en_rx_ila_trigger_v(u32 r)
1440{
1441 return (r >> 23U) & 0x1U;
1442}
1443static inline u32 nvl_intr_stall_en_rx_ila_trigger_enable_v(void)
1444{
1445 return 0x00000001U;
1446}
1447static inline u32 nvl_intr_stall_en_rx_ila_trigger_enable_f(void)
1448{
1449 return 0x800000U;
1450}
1451static inline u32 nvl_intr_stall_en_rx_crc_counter_f(u32 v)
1452{
1453 return (v & 0x1U) << 24U;
1454}
1455static inline u32 nvl_intr_stall_en_rx_crc_counter_m(void)
1456{
1457 return 0x1U << 24U;
1458}
1459static inline u32 nvl_intr_stall_en_rx_crc_counter_v(u32 r)
1460{
1461 return (r >> 24U) & 0x1U;
1462}
1463static inline u32 nvl_intr_stall_en_rx_crc_counter_enable_v(void)
1464{
1465 return 0x00000001U;
1466}
1467static inline u32 nvl_intr_stall_en_rx_crc_counter_enable_f(void)
1468{
1469 return 0x1000000U;
1470}
1471static inline u32 nvl_intr_stall_en_ltssm_fault_f(u32 v)
1472{
1473 return (v & 0x1U) << 28U;
1474}
1475static inline u32 nvl_intr_stall_en_ltssm_fault_m(void)
1476{
1477 return 0x1U << 28U;
1478}
1479static inline u32 nvl_intr_stall_en_ltssm_fault_v(u32 r)
1480{
1481 return (r >> 28U) & 0x1U;
1482}
1483static inline u32 nvl_intr_stall_en_ltssm_fault_enable_v(void)
1484{
1485 return 0x00000001U;
1486}
1487static inline u32 nvl_intr_stall_en_ltssm_fault_enable_f(void)
1488{
1489 return 0x10000000U;
1490}
1491static inline u32 nvl_intr_stall_en_ltssm_protocol_f(u32 v)
1492{
1493 return (v & 0x1U) << 29U;
1494}
1495static inline u32 nvl_intr_stall_en_ltssm_protocol_m(void)
1496{
1497 return 0x1U << 29U;
1498}
1499static inline u32 nvl_intr_stall_en_ltssm_protocol_v(u32 r)
1500{
1501 return (r >> 29U) & 0x1U;
1502}
1503static inline u32 nvl_intr_stall_en_ltssm_protocol_enable_v(void)
1504{
1505 return 0x00000001U;
1506}
1507static inline u32 nvl_intr_stall_en_ltssm_protocol_enable_f(void)
1508{
1509 return 0x20000000U;
1510}
1511static inline u32 nvl_intr_stall_en_minion_request_f(u32 v)
1512{
1513 return (v & 0x1U) << 30U;
1514}
1515static inline u32 nvl_intr_stall_en_minion_request_m(void)
1516{
1517 return 0x1U << 30U;
1518}
1519static inline u32 nvl_intr_stall_en_minion_request_v(u32 r)
1520{
1521 return (r >> 30U) & 0x1U;
1522}
1523static inline u32 nvl_intr_stall_en_minion_request_enable_v(void)
1524{
1525 return 0x00000001U;
1526}
1527static inline u32 nvl_intr_stall_en_minion_request_enable_f(void)
1528{
1529 return 0x40000000U;
1530}
1531static inline u32 nvl_br0_cfg_cal_r(void)
1532{
1533 return 0x0000281cU;
1534}
1535static inline u32 nvl_br0_cfg_cal_rxcal_f(u32 v)
1536{
1537 return (v & 0x1U) << 0U;
1538}
1539static inline u32 nvl_br0_cfg_cal_rxcal_m(void)
1540{
1541 return 0x1U << 0U;
1542}
1543static inline u32 nvl_br0_cfg_cal_rxcal_v(u32 r)
1544{
1545 return (r >> 0U) & 0x1U;
1546}
1547static inline u32 nvl_br0_cfg_cal_rxcal_on_v(void)
1548{
1549 return 0x00000001U;
1550}
1551static inline u32 nvl_br0_cfg_cal_rxcal_on_f(void)
1552{
1553 return 0x1U;
1554}
1555static inline u32 nvl_br0_cfg_status_cal_r(void)
1556{
1557 return 0x00002838U;
1558}
1559static inline u32 nvl_br0_cfg_status_cal_rxcal_done_f(u32 v)
1560{
1561 return (v & 0x1U) << 2U;
1562}
1563static inline u32 nvl_br0_cfg_status_cal_rxcal_done_m(void)
1564{
1565 return 0x1U << 2U;
1566}
1567static inline u32 nvl_br0_cfg_status_cal_rxcal_done_v(u32 r)
1568{
1569 return (r >> 2U) & 0x1U;
1570}
1571#endif
diff --git a/include/nvgpu/hw/gv100/hw_nvlinkip_discovery_gv100.h b/include/nvgpu/hw/gv100/hw_nvlinkip_discovery_gv100.h
new file mode 100644
index 0000000..9d33a9f
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_nvlinkip_discovery_gv100.h
@@ -0,0 +1,311 @@
1/*
2 * Copyright (c) 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_nvlinkip_discovery_gv100_h_
57#define _hw_nvlinkip_discovery_gv100_h_
58
59static inline u32 nvlinkip_discovery_common_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 nvlinkip_discovery_common_entry_f(u32 v)
64{
65 return (v & 0x3U) << 0U;
66}
67static inline u32 nvlinkip_discovery_common_entry_v(u32 r)
68{
69 return (r >> 0U) & 0x3U;
70}
71static inline u32 nvlinkip_discovery_common_entry_invalid_v(void)
72{
73 return 0x00000000U;
74}
75static inline u32 nvlinkip_discovery_common_entry_enum_v(void)
76{
77 return 0x00000001U;
78}
79static inline u32 nvlinkip_discovery_common_entry_data1_v(void)
80{
81 return 0x00000002U;
82}
83static inline u32 nvlinkip_discovery_common_entry_data2_v(void)
84{
85 return 0x00000003U;
86}
87static inline u32 nvlinkip_discovery_common_contents_f(u32 v)
88{
89 return (v & 0x1fffffffU) << 2U;
90}
91static inline u32 nvlinkip_discovery_common_contents_v(u32 r)
92{
93 return (r >> 2U) & 0x1fffffffU;
94}
95static inline u32 nvlinkip_discovery_common_chain_f(u32 v)
96{
97 return (v & 0x1U) << 31U;
98}
99static inline u32 nvlinkip_discovery_common_chain_v(u32 r)
100{
101 return (r >> 31U) & 0x1U;
102}
103static inline u32 nvlinkip_discovery_common_chain_enable_v(void)
104{
105 return 0x00000001U;
106}
107static inline u32 nvlinkip_discovery_common_device_f(u32 v)
108{
109 return (v & 0x3fU) << 2U;
110}
111static inline u32 nvlinkip_discovery_common_device_v(u32 r)
112{
113 return (r >> 2U) & 0x3fU;
114}
115static inline u32 nvlinkip_discovery_common_device_invalid_v(void)
116{
117 return 0x00000000U;
118}
119static inline u32 nvlinkip_discovery_common_device_ioctrl_v(void)
120{
121 return 0x00000001U;
122}
123static inline u32 nvlinkip_discovery_common_device_nvltl_v(void)
124{
125 return 0x00000002U;
126}
127static inline u32 nvlinkip_discovery_common_device_nvlink_v(void)
128{
129 return 0x00000003U;
130}
131static inline u32 nvlinkip_discovery_common_device_minion_v(void)
132{
133 return 0x00000004U;
134}
135static inline u32 nvlinkip_discovery_common_device_nvlipt_v(void)
136{
137 return 0x00000005U;
138}
139static inline u32 nvlinkip_discovery_common_device_nvltlc_v(void)
140{
141 return 0x00000006U;
142}
143static inline u32 nvlinkip_discovery_common_device_dlpl_v(void)
144{
145 return 0x0000000bU;
146}
147static inline u32 nvlinkip_discovery_common_device_ioctrlmif_v(void)
148{
149 return 0x00000007U;
150}
151static inline u32 nvlinkip_discovery_common_device_dlpl_multicast_v(void)
152{
153 return 0x00000008U;
154}
155static inline u32 nvlinkip_discovery_common_device_nvltlc_multicast_v(void)
156{
157 return 0x00000009U;
158}
159static inline u32 nvlinkip_discovery_common_device_ioctrlmif_multicast_v(void)
160{
161 return 0x0000000aU;
162}
163static inline u32 nvlinkip_discovery_common_device_sioctrl_v(void)
164{
165 return 0x0000000cU;
166}
167static inline u32 nvlinkip_discovery_common_device_tioctrl_v(void)
168{
169 return 0x0000000dU;
170}
171static inline u32 nvlinkip_discovery_common_id_f(u32 v)
172{
173 return (v & 0xffU) << 8U;
174}
175static inline u32 nvlinkip_discovery_common_id_v(u32 r)
176{
177 return (r >> 8U) & 0xffU;
178}
179static inline u32 nvlinkip_discovery_common_version_f(u32 v)
180{
181 return (v & 0x7ffU) << 20U;
182}
183static inline u32 nvlinkip_discovery_common_version_v(u32 r)
184{
185 return (r >> 20U) & 0x7ffU;
186}
187static inline u32 nvlinkip_discovery_common_pri_base_f(u32 v)
188{
189 return (v & 0xfffU) << 12U;
190}
191static inline u32 nvlinkip_discovery_common_pri_base_v(u32 r)
192{
193 return (r >> 12U) & 0xfffU;
194}
195static inline u32 nvlinkip_discovery_common_intr_f(u32 v)
196{
197 return (v & 0x1fU) << 7U;
198}
199static inline u32 nvlinkip_discovery_common_intr_v(u32 r)
200{
201 return (r >> 7U) & 0x1fU;
202}
203static inline u32 nvlinkip_discovery_common_reset_f(u32 v)
204{
205 return (v & 0x1fU) << 2U;
206}
207static inline u32 nvlinkip_discovery_common_reset_v(u32 r)
208{
209 return (r >> 2U) & 0x1fU;
210}
211static inline u32 nvlinkip_discovery_common_ioctrl_length_f(u32 v)
212{
213 return (v & 0x3fU) << 24U;
214}
215static inline u32 nvlinkip_discovery_common_ioctrl_length_v(u32 r)
216{
217 return (r >> 24U) & 0x3fU;
218}
219static inline u32 nvlinkip_discovery_common_dlpl_num_tx_f(u32 v)
220{
221 return (v & 0x7U) << 24U;
222}
223static inline u32 nvlinkip_discovery_common_dlpl_num_tx_v(u32 r)
224{
225 return (r >> 24U) & 0x7U;
226}
227static inline u32 nvlinkip_discovery_common_dlpl_num_rx_f(u32 v)
228{
229 return (v & 0x7U) << 27U;
230}
231static inline u32 nvlinkip_discovery_common_dlpl_num_rx_v(u32 r)
232{
233 return (r >> 27U) & 0x7U;
234}
235static inline u32 nvlinkip_discovery_common_data1_ioctrl_length_f(u32 v)
236{
237 return (v & 0x7ffffU) << 12U;
238}
239static inline u32 nvlinkip_discovery_common_data1_ioctrl_length_v(u32 r)
240{
241 return (r >> 12U) & 0x7ffffU;
242}
243static inline u32 nvlinkip_discovery_common_data2_type_f(u32 v)
244{
245 return (v & 0x1fU) << 26U;
246}
247static inline u32 nvlinkip_discovery_common_data2_type_v(u32 r)
248{
249 return (r >> 26U) & 0x1fU;
250}
251static inline u32 nvlinkip_discovery_common_data2_type_invalid_v(void)
252{
253 return 0x00000000U;
254}
255static inline u32 nvlinkip_discovery_common_data2_type_pllcontrol_v(void)
256{
257 return 0x00000001U;
258}
259static inline u32 nvlinkip_discovery_common_data2_type_resetreg_v(void)
260{
261 return 0x00000002U;
262}
263static inline u32 nvlinkip_discovery_common_data2_type_intrreg_v(void)
264{
265 return 0x00000003U;
266}
267static inline u32 nvlinkip_discovery_common_data2_type_discovery_v(void)
268{
269 return 0x00000004U;
270}
271static inline u32 nvlinkip_discovery_common_data2_type_unicast_v(void)
272{
273 return 0x00000005U;
274}
275static inline u32 nvlinkip_discovery_common_data2_type_broadcast_v(void)
276{
277 return 0x00000006U;
278}
279static inline u32 nvlinkip_discovery_common_data2_addr_f(u32 v)
280{
281 return (v & 0xffffffU) << 2U;
282}
283static inline u32 nvlinkip_discovery_common_data2_addr_v(u32 r)
284{
285 return (r >> 2U) & 0xffffffU;
286}
287static inline u32 nvlinkip_discovery_common_dlpl_data2_type_f(u32 v)
288{
289 return (v & 0x1fU) << 26U;
290}
291static inline u32 nvlinkip_discovery_common_dlpl_data2_type_v(u32 r)
292{
293 return (r >> 26U) & 0x1fU;
294}
295static inline u32 nvlinkip_discovery_common_dlpl_data2_master_f(u32 v)
296{
297 return (v & 0x1U) << 15U;
298}
299static inline u32 nvlinkip_discovery_common_dlpl_data2_master_v(u32 r)
300{
301 return (r >> 15U) & 0x1U;
302}
303static inline u32 nvlinkip_discovery_common_dlpl_data2_masterid_f(u32 v)
304{
305 return (v & 0x7fU) << 8U;
306}
307static inline u32 nvlinkip_discovery_common_dlpl_data2_masterid_v(u32 r)
308{
309 return (r >> 8U) & 0x7fU;
310}
311#endif
diff --git a/include/nvgpu/hw/gv100/hw_nvlipt_gv100.h b/include/nvgpu/hw/gv100/hw_nvlipt_gv100.h
new file mode 100644
index 0000000..5f73fab
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_nvlipt_gv100.h
@@ -0,0 +1,279 @@
1/*
2 * Copyright (c) 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_nvlipt_gv100_h_
57#define _hw_nvlipt_gv100_h_
58
59static inline u32 nvlipt_intr_control_link0_r(void)
60{
61 return 0x000004b4U;
62}
63static inline u32 nvlipt_intr_control_link0_stallenable_f(u32 v)
64{
65 return (v & 0x1U) << 0U;
66}
67static inline u32 nvlipt_intr_control_link0_stallenable_m(void)
68{
69 return 0x1U << 0U;
70}
71static inline u32 nvlipt_intr_control_link0_stallenable_v(u32 r)
72{
73 return (r >> 0U) & 0x1U;
74}
75static inline u32 nvlipt_intr_control_link0_nostallenable_f(u32 v)
76{
77 return (v & 0x1U) << 1U;
78}
79static inline u32 nvlipt_intr_control_link0_nostallenable_m(void)
80{
81 return 0x1U << 1U;
82}
83static inline u32 nvlipt_intr_control_link0_nostallenable_v(u32 r)
84{
85 return (r >> 1U) & 0x1U;
86}
87static inline u32 nvlipt_err_uc_status_link0_r(void)
88{
89 return 0x00000524U;
90}
91static inline u32 nvlipt_err_uc_status_link0_dlprotocol_f(u32 v)
92{
93 return (v & 0x1U) << 4U;
94}
95static inline u32 nvlipt_err_uc_status_link0_dlprotocol_v(u32 r)
96{
97 return (r >> 4U) & 0x1U;
98}
99static inline u32 nvlipt_err_uc_status_link0_datapoisoned_f(u32 v)
100{
101 return (v & 0x1U) << 12U;
102}
103static inline u32 nvlipt_err_uc_status_link0_datapoisoned_v(u32 r)
104{
105 return (r >> 12U) & 0x1U;
106}
107static inline u32 nvlipt_err_uc_status_link0_flowcontrol_f(u32 v)
108{
109 return (v & 0x1U) << 13U;
110}
111static inline u32 nvlipt_err_uc_status_link0_flowcontrol_v(u32 r)
112{
113 return (r >> 13U) & 0x1U;
114}
115static inline u32 nvlipt_err_uc_status_link0_responsetimeout_f(u32 v)
116{
117 return (v & 0x1U) << 14U;
118}
119static inline u32 nvlipt_err_uc_status_link0_responsetimeout_v(u32 r)
120{
121 return (r >> 14U) & 0x1U;
122}
123static inline u32 nvlipt_err_uc_status_link0_targeterror_f(u32 v)
124{
125 return (v & 0x1U) << 15U;
126}
127static inline u32 nvlipt_err_uc_status_link0_targeterror_v(u32 r)
128{
129 return (r >> 15U) & 0x1U;
130}
131static inline u32 nvlipt_err_uc_status_link0_unexpectedresponse_f(u32 v)
132{
133 return (v & 0x1U) << 16U;
134}
135static inline u32 nvlipt_err_uc_status_link0_unexpectedresponse_v(u32 r)
136{
137 return (r >> 16U) & 0x1U;
138}
139static inline u32 nvlipt_err_uc_status_link0_receiveroverflow_f(u32 v)
140{
141 return (v & 0x1U) << 17U;
142}
143static inline u32 nvlipt_err_uc_status_link0_receiveroverflow_v(u32 r)
144{
145 return (r >> 17U) & 0x1U;
146}
147static inline u32 nvlipt_err_uc_status_link0_malformedpacket_f(u32 v)
148{
149 return (v & 0x1U) << 18U;
150}
151static inline u32 nvlipt_err_uc_status_link0_malformedpacket_v(u32 r)
152{
153 return (r >> 18U) & 0x1U;
154}
155static inline u32 nvlipt_err_uc_status_link0_stompedpacketreceived_f(u32 v)
156{
157 return (v & 0x1U) << 19U;
158}
159static inline u32 nvlipt_err_uc_status_link0_stompedpacketreceived_v(u32 r)
160{
161 return (r >> 19U) & 0x1U;
162}
163static inline u32 nvlipt_err_uc_status_link0_unsupportedrequest_f(u32 v)
164{
165 return (v & 0x1U) << 20U;
166}
167static inline u32 nvlipt_err_uc_status_link0_unsupportedrequest_v(u32 r)
168{
169 return (r >> 20U) & 0x1U;
170}
171static inline u32 nvlipt_err_uc_status_link0_ucinternal_f(u32 v)
172{
173 return (v & 0x1U) << 22U;
174}
175static inline u32 nvlipt_err_uc_status_link0_ucinternal_v(u32 r)
176{
177 return (r >> 22U) & 0x1U;
178}
179static inline u32 nvlipt_err_uc_mask_link0_r(void)
180{
181 return 0x00000528U;
182}
183static inline u32 nvlipt_err_uc_severity_link0_r(void)
184{
185 return 0x0000052cU;
186}
187static inline u32 nvlipt_err_uc_first_link0_r(void)
188{
189 return 0x00000530U;
190}
191static inline u32 nvlipt_err_uc_advisory_link0_r(void)
192{
193 return 0x00000534U;
194}
195static inline u32 nvlipt_err_c_status_link0_r(void)
196{
197 return 0x00000538U;
198}
199static inline u32 nvlipt_err_c_mask_link0_r(void)
200{
201 return 0x0000053cU;
202}
203static inline u32 nvlipt_err_c_first_link0_r(void)
204{
205 return 0x00000540U;
206}
207static inline u32 nvlipt_err_control_link0_r(void)
208{
209 return 0x00000544U;
210}
211static inline u32 nvlipt_err_control_link0_fatalenable_f(u32 v)
212{
213 return (v & 0x1U) << 1U;
214}
215static inline u32 nvlipt_err_control_link0_fatalenable_m(void)
216{
217 return 0x1U << 1U;
218}
219static inline u32 nvlipt_err_control_link0_fatalenable_v(u32 r)
220{
221 return (r >> 1U) & 0x1U;
222}
223static inline u32 nvlipt_err_control_link0_nonfatalenable_f(u32 v)
224{
225 return (v & 0x1U) << 2U;
226}
227static inline u32 nvlipt_err_control_link0_nonfatalenable_m(void)
228{
229 return 0x1U << 2U;
230}
231static inline u32 nvlipt_err_control_link0_nonfatalenable_v(u32 r)
232{
233 return (r >> 2U) & 0x1U;
234}
235static inline u32 nvlipt_intr_control_common_r(void)
236{
237 return 0x000004b0U;
238}
239static inline u32 nvlipt_intr_control_common_stallenable_f(u32 v)
240{
241 return (v & 0x1U) << 0U;
242}
243static inline u32 nvlipt_intr_control_common_stallenable_m(void)
244{
245 return 0x1U << 0U;
246}
247static inline u32 nvlipt_intr_control_common_stallenable_v(u32 r)
248{
249 return (r >> 0U) & 0x1U;
250}
251static inline u32 nvlipt_intr_control_common_nonstallenable_f(u32 v)
252{
253 return (v & 0x1U) << 1U;
254}
255static inline u32 nvlipt_intr_control_common_nonstallenable_m(void)
256{
257 return 0x1U << 1U;
258}
259static inline u32 nvlipt_intr_control_common_nonstallenable_v(u32 r)
260{
261 return (r >> 1U) & 0x1U;
262}
263static inline u32 nvlipt_scratch_cold_r(void)
264{
265 return 0x000007d4U;
266}
267static inline u32 nvlipt_scratch_cold_data_f(u32 v)
268{
269 return (v & 0xffffffffU) << 0U;
270}
271static inline u32 nvlipt_scratch_cold_data_v(u32 r)
272{
273 return (r >> 0U) & 0xffffffffU;
274}
275static inline u32 nvlipt_scratch_cold_data_init_v(void)
276{
277 return 0xdeadbaadU;
278}
279#endif
diff --git a/include/nvgpu/hw/gv100/hw_nvtlc_gv100.h b/include/nvgpu/hw/gv100/hw_nvtlc_gv100.h
new file mode 100644
index 0000000..cc31b12
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_nvtlc_gv100.h
@@ -0,0 +1,95 @@
1/*
2 * Copyright (c) 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_nvtlc_gv100_h_
57#define _hw_nvtlc_gv100_h_
58
59static inline u32 nvtlc_tx_err_report_en_0_r(void)
60{
61 return 0x00000708U;
62}
63static inline u32 nvtlc_rx_err_report_en_0_r(void)
64{
65 return 0x00000f08U;
66}
67static inline u32 nvtlc_rx_err_report_en_1_r(void)
68{
69 return 0x00000f20U;
70}
71static inline u32 nvtlc_tx_err_status_0_r(void)
72{
73 return 0x00000700U;
74}
75static inline u32 nvtlc_rx_err_status_0_r(void)
76{
77 return 0x00000f00U;
78}
79static inline u32 nvtlc_rx_err_status_1_r(void)
80{
81 return 0x00000f18U;
82}
83static inline u32 nvtlc_tx_err_first_0_r(void)
84{
85 return 0x00000714U;
86}
87static inline u32 nvtlc_rx_err_first_0_r(void)
88{
89 return 0x00000f14U;
90}
91static inline u32 nvtlc_rx_err_first_1_r(void)
92{
93 return 0x00000f2cU;
94}
95#endif
diff --git a/include/nvgpu/hw/gv100/hw_pbdma_gv100.h b/include/nvgpu/hw/gv100/hw_pbdma_gv100.h
new file mode 100644
index 0000000..41d7d1b
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_pbdma_gv100.h
@@ -0,0 +1,651 @@
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_pbdma_gv100_h_
57#define _hw_pbdma_gv100_h_
58
59static inline u32 pbdma_gp_entry1_r(void)
60{
61 return 0x10000004U;
62}
63static inline u32 pbdma_gp_entry1_get_hi_v(u32 r)
64{
65 return (r >> 0U) & 0xffU;
66}
67static inline u32 pbdma_gp_entry1_length_f(u32 v)
68{
69 return (v & 0x1fffffU) << 10U;
70}
71static inline u32 pbdma_gp_entry1_length_v(u32 r)
72{
73 return (r >> 10U) & 0x1fffffU;
74}
75static inline u32 pbdma_gp_base_r(u32 i)
76{
77 return 0x00040048U + i*8192U;
78}
79static inline u32 pbdma_gp_base__size_1_v(void)
80{
81 return 0x0000000eU;
82}
83static inline u32 pbdma_gp_base_offset_f(u32 v)
84{
85 return (v & 0x1fffffffU) << 3U;
86}
87static inline u32 pbdma_gp_base_rsvd_s(void)
88{
89 return 3U;
90}
91static inline u32 pbdma_gp_base_hi_r(u32 i)
92{
93 return 0x0004004cU + i*8192U;
94}
95static inline u32 pbdma_gp_base_hi_offset_f(u32 v)
96{
97 return (v & 0xffU) << 0U;
98}
99static inline u32 pbdma_gp_base_hi_limit2_f(u32 v)
100{
101 return (v & 0x1fU) << 16U;
102}
103static inline u32 pbdma_gp_fetch_r(u32 i)
104{
105 return 0x00040050U + i*8192U;
106}
107static inline u32 pbdma_gp_get_r(u32 i)
108{
109 return 0x00040014U + i*8192U;
110}
111static inline u32 pbdma_gp_put_r(u32 i)
112{
113 return 0x00040000U + i*8192U;
114}
115static inline u32 pbdma_pb_fetch_r(u32 i)
116{
117 return 0x00040054U + i*8192U;
118}
119static inline u32 pbdma_pb_fetch_hi_r(u32 i)
120{
121 return 0x00040058U + i*8192U;
122}
123static inline u32 pbdma_get_r(u32 i)
124{
125 return 0x00040018U + i*8192U;
126}
127static inline u32 pbdma_get_hi_r(u32 i)
128{
129 return 0x0004001cU + i*8192U;
130}
131static inline u32 pbdma_put_r(u32 i)
132{
133 return 0x0004005cU + i*8192U;
134}
135static inline u32 pbdma_put_hi_r(u32 i)
136{
137 return 0x00040060U + i*8192U;
138}
139static inline u32 pbdma_pb_header_r(u32 i)
140{
141 return 0x00040084U + i*8192U;
142}
143static inline u32 pbdma_pb_header_priv_user_f(void)
144{
145 return 0x0U;
146}
147static inline u32 pbdma_pb_header_method_zero_f(void)
148{
149 return 0x0U;
150}
151static inline u32 pbdma_pb_header_subchannel_zero_f(void)
152{
153 return 0x0U;
154}
155static inline u32 pbdma_pb_header_level_main_f(void)
156{
157 return 0x0U;
158}
159static inline u32 pbdma_pb_header_first_true_f(void)
160{
161 return 0x400000U;
162}
163static inline u32 pbdma_pb_header_type_inc_f(void)
164{
165 return 0x20000000U;
166}
167static inline u32 pbdma_pb_header_type_non_inc_f(void)
168{
169 return 0x60000000U;
170}
171static inline u32 pbdma_hdr_shadow_r(u32 i)
172{
173 return 0x00040118U + i*8192U;
174}
175static inline u32 pbdma_gp_shadow_0_r(u32 i)
176{
177 return 0x00040110U + i*8192U;
178}
179static inline u32 pbdma_gp_shadow_1_r(u32 i)
180{
181 return 0x00040114U + i*8192U;
182}
183static inline u32 pbdma_subdevice_r(u32 i)
184{
185 return 0x00040094U + i*8192U;
186}
187static inline u32 pbdma_subdevice_id_f(u32 v)
188{
189 return (v & 0xfffU) << 0U;
190}
191static inline u32 pbdma_subdevice_status_active_f(void)
192{
193 return 0x10000000U;
194}
195static inline u32 pbdma_subdevice_channel_dma_enable_f(void)
196{
197 return 0x20000000U;
198}
199static inline u32 pbdma_method0_r(u32 i)
200{
201 return 0x000400c0U + i*8192U;
202}
203static inline u32 pbdma_method0_fifo_size_v(void)
204{
205 return 0x00000004U;
206}
207static inline u32 pbdma_method0_addr_f(u32 v)
208{
209 return (v & 0xfffU) << 2U;
210}
211static inline u32 pbdma_method0_addr_v(u32 r)
212{
213 return (r >> 2U) & 0xfffU;
214}
215static inline u32 pbdma_method0_subch_v(u32 r)
216{
217 return (r >> 16U) & 0x7U;
218}
219static inline u32 pbdma_method0_first_true_f(void)
220{
221 return 0x400000U;
222}
223static inline u32 pbdma_method0_valid_true_f(void)
224{
225 return 0x80000000U;
226}
227static inline u32 pbdma_method1_r(u32 i)
228{
229 return 0x000400c8U + i*8192U;
230}
231static inline u32 pbdma_method2_r(u32 i)
232{
233 return 0x000400d0U + i*8192U;
234}
235static inline u32 pbdma_method3_r(u32 i)
236{
237 return 0x000400d8U + i*8192U;
238}
239static inline u32 pbdma_data0_r(u32 i)
240{
241 return 0x000400c4U + i*8192U;
242}
243static inline u32 pbdma_acquire_r(u32 i)
244{
245 return 0x00040030U + i*8192U;
246}
247static inline u32 pbdma_acquire_retry_man_2_f(void)
248{
249 return 0x2U;
250}
251static inline u32 pbdma_acquire_retry_exp_2_f(void)
252{
253 return 0x100U;
254}
255static inline u32 pbdma_acquire_timeout_exp_f(u32 v)
256{
257 return (v & 0xfU) << 11U;
258}
259static inline u32 pbdma_acquire_timeout_exp_max_v(void)
260{
261 return 0x0000000fU;
262}
263static inline u32 pbdma_acquire_timeout_exp_max_f(void)
264{
265 return 0x7800U;
266}
267static inline u32 pbdma_acquire_timeout_man_f(u32 v)
268{
269 return (v & 0xffffU) << 15U;
270}
271static inline u32 pbdma_acquire_timeout_man_max_v(void)
272{
273 return 0x0000ffffU;
274}
275static inline u32 pbdma_acquire_timeout_man_max_f(void)
276{
277 return 0x7fff8000U;
278}
279static inline u32 pbdma_acquire_timeout_en_enable_f(void)
280{
281 return 0x80000000U;
282}
283static inline u32 pbdma_acquire_timeout_en_disable_f(void)
284{
285 return 0x0U;
286}
287static inline u32 pbdma_status_r(u32 i)
288{
289 return 0x00040100U + i*8192U;
290}
291static inline u32 pbdma_channel_r(u32 i)
292{
293 return 0x00040120U + i*8192U;
294}
295static inline u32 pbdma_signature_r(u32 i)
296{
297 return 0x00040010U + i*8192U;
298}
299static inline u32 pbdma_signature_hw_valid_f(void)
300{
301 return 0xfaceU;
302}
303static inline u32 pbdma_signature_sw_zero_f(void)
304{
305 return 0x0U;
306}
307static inline u32 pbdma_userd_r(u32 i)
308{
309 return 0x00040008U + i*8192U;
310}
311static inline u32 pbdma_userd_target_vid_mem_f(void)
312{
313 return 0x0U;
314}
315static inline u32 pbdma_userd_target_sys_mem_coh_f(void)
316{
317 return 0x2U;
318}
319static inline u32 pbdma_userd_target_sys_mem_ncoh_f(void)
320{
321 return 0x3U;
322}
323static inline u32 pbdma_userd_addr_f(u32 v)
324{
325 return (v & 0x7fffffU) << 9U;
326}
327static inline u32 pbdma_config_r(u32 i)
328{
329 return 0x000400f4U + i*8192U;
330}
331static inline u32 pbdma_config_l2_evict_first_f(void)
332{
333 return 0x0U;
334}
335static inline u32 pbdma_config_l2_evict_normal_f(void)
336{
337 return 0x1U;
338}
339static inline u32 pbdma_config_ce_split_enable_f(void)
340{
341 return 0x0U;
342}
343static inline u32 pbdma_config_ce_split_disable_f(void)
344{
345 return 0x10U;
346}
347static inline u32 pbdma_config_auth_level_non_privileged_f(void)
348{
349 return 0x0U;
350}
351static inline u32 pbdma_config_auth_level_privileged_f(void)
352{
353 return 0x100U;
354}
355static inline u32 pbdma_config_userd_writeback_disable_f(void)
356{
357 return 0x0U;
358}
359static inline u32 pbdma_config_userd_writeback_enable_f(void)
360{
361 return 0x1000U;
362}
363static inline u32 pbdma_userd_hi_r(u32 i)
364{
365 return 0x0004000cU + i*8192U;
366}
367static inline u32 pbdma_userd_hi_addr_f(u32 v)
368{
369 return (v & 0xffU) << 0U;
370}
371static inline u32 pbdma_hce_ctrl_r(u32 i)
372{
373 return 0x000400e4U + i*8192U;
374}
375static inline u32 pbdma_hce_ctrl_hce_priv_mode_yes_f(void)
376{
377 return 0x20U;
378}
379static inline u32 pbdma_intr_0_r(u32 i)
380{
381 return 0x00040108U + i*8192U;
382}
383static inline u32 pbdma_intr_0_memreq_v(u32 r)
384{
385 return (r >> 0U) & 0x1U;
386}
387static inline u32 pbdma_intr_0_memreq_pending_f(void)
388{
389 return 0x1U;
390}
391static inline u32 pbdma_intr_0_memack_timeout_pending_f(void)
392{
393 return 0x2U;
394}
395static inline u32 pbdma_intr_0_memack_extra_pending_f(void)
396{
397 return 0x4U;
398}
399static inline u32 pbdma_intr_0_memdat_timeout_pending_f(void)
400{
401 return 0x8U;
402}
403static inline u32 pbdma_intr_0_memdat_extra_pending_f(void)
404{
405 return 0x10U;
406}
407static inline u32 pbdma_intr_0_memflush_pending_f(void)
408{
409 return 0x20U;
410}
411static inline u32 pbdma_intr_0_memop_pending_f(void)
412{
413 return 0x40U;
414}
415static inline u32 pbdma_intr_0_lbconnect_pending_f(void)
416{
417 return 0x80U;
418}
419static inline u32 pbdma_intr_0_lbreq_pending_f(void)
420{
421 return 0x100U;
422}
423static inline u32 pbdma_intr_0_lback_timeout_pending_f(void)
424{
425 return 0x200U;
426}
427static inline u32 pbdma_intr_0_lback_extra_pending_f(void)
428{
429 return 0x400U;
430}
431static inline u32 pbdma_intr_0_lbdat_timeout_pending_f(void)
432{
433 return 0x800U;
434}
435static inline u32 pbdma_intr_0_lbdat_extra_pending_f(void)
436{
437 return 0x1000U;
438}
439static inline u32 pbdma_intr_0_gpfifo_pending_f(void)
440{
441 return 0x2000U;
442}
443static inline u32 pbdma_intr_0_gpptr_pending_f(void)
444{
445 return 0x4000U;
446}
447static inline u32 pbdma_intr_0_gpentry_pending_f(void)
448{
449 return 0x8000U;
450}
451static inline u32 pbdma_intr_0_gpcrc_pending_f(void)
452{
453 return 0x10000U;
454}
455static inline u32 pbdma_intr_0_pbptr_pending_f(void)
456{
457 return 0x20000U;
458}
459static inline u32 pbdma_intr_0_pbentry_pending_f(void)
460{
461 return 0x40000U;
462}
463static inline u32 pbdma_intr_0_pbcrc_pending_f(void)
464{
465 return 0x80000U;
466}
467static inline u32 pbdma_intr_0_clear_faulted_error_pending_f(void)
468{
469 return 0x100000U;
470}
471static inline u32 pbdma_intr_0_method_pending_f(void)
472{
473 return 0x200000U;
474}
475static inline u32 pbdma_intr_0_methodcrc_pending_f(void)
476{
477 return 0x400000U;
478}
479static inline u32 pbdma_intr_0_device_pending_f(void)
480{
481 return 0x800000U;
482}
483static inline u32 pbdma_intr_0_eng_reset_pending_f(void)
484{
485 return 0x1000000U;
486}
487static inline u32 pbdma_intr_0_semaphore_pending_f(void)
488{
489 return 0x2000000U;
490}
491static inline u32 pbdma_intr_0_acquire_pending_f(void)
492{
493 return 0x4000000U;
494}
495static inline u32 pbdma_intr_0_pri_pending_f(void)
496{
497 return 0x8000000U;
498}
499static inline u32 pbdma_intr_0_no_ctxsw_seg_pending_f(void)
500{
501 return 0x20000000U;
502}
503static inline u32 pbdma_intr_0_pbseg_pending_f(void)
504{
505 return 0x40000000U;
506}
507static inline u32 pbdma_intr_0_signature_pending_f(void)
508{
509 return 0x80000000U;
510}
511static inline u32 pbdma_intr_1_r(u32 i)
512{
513 return 0x00040148U + i*8192U;
514}
515static inline u32 pbdma_intr_1_ctxnotvalid_m(void)
516{
517 return 0x1U << 31U;
518}
519static inline u32 pbdma_intr_1_ctxnotvalid_pending_f(void)
520{
521 return 0x80000000U;
522}
523static inline u32 pbdma_intr_en_0_r(u32 i)
524{
525 return 0x0004010cU + i*8192U;
526}
527static inline u32 pbdma_intr_en_0_lbreq_enabled_f(void)
528{
529 return 0x100U;
530}
531static inline u32 pbdma_intr_en_1_r(u32 i)
532{
533 return 0x0004014cU + i*8192U;
534}
535static inline u32 pbdma_intr_stall_r(u32 i)
536{
537 return 0x0004013cU + i*8192U;
538}
539static inline u32 pbdma_intr_stall_lbreq_enabled_f(void)
540{
541 return 0x100U;
542}
543static inline u32 pbdma_intr_stall_1_r(u32 i)
544{
545 return 0x00040140U + i*8192U;
546}
547static inline u32 pbdma_intr_stall_1_hce_illegal_op_enabled_f(void)
548{
549 return 0x1U;
550}
551static inline u32 pbdma_udma_nop_r(void)
552{
553 return 0x00000008U;
554}
555static inline u32 pbdma_runlist_timeslice_r(u32 i)
556{
557 return 0x000400f8U + i*8192U;
558}
559static inline u32 pbdma_runlist_timeslice_timeout_128_f(void)
560{
561 return 0x80U;
562}
563static inline u32 pbdma_runlist_timeslice_timescale_3_f(void)
564{
565 return 0x3000U;
566}
567static inline u32 pbdma_runlist_timeslice_enable_true_f(void)
568{
569 return 0x10000000U;
570}
571static inline u32 pbdma_target_r(u32 i)
572{
573 return 0x000400acU + i*8192U;
574}
575static inline u32 pbdma_target_engine_sw_f(void)
576{
577 return 0x1fU;
578}
579static inline u32 pbdma_target_eng_ctx_valid_true_f(void)
580{
581 return 0x10000U;
582}
583static inline u32 pbdma_target_eng_ctx_valid_false_f(void)
584{
585 return 0x0U;
586}
587static inline u32 pbdma_target_ce_ctx_valid_true_f(void)
588{
589 return 0x20000U;
590}
591static inline u32 pbdma_target_ce_ctx_valid_false_f(void)
592{
593 return 0x0U;
594}
595static inline u32 pbdma_target_host_tsg_event_reason_pbdma_idle_f(void)
596{
597 return 0x0U;
598}
599static inline u32 pbdma_target_host_tsg_event_reason_semaphore_acquire_failure_f(void)
600{
601 return 0x1000000U;
602}
603static inline u32 pbdma_target_host_tsg_event_reason_tsg_yield_f(void)
604{
605 return 0x2000000U;
606}
607static inline u32 pbdma_target_host_tsg_event_reason_host_subchannel_switch_f(void)
608{
609 return 0x3000000U;
610}
611static inline u32 pbdma_target_should_send_tsg_event_true_f(void)
612{
613 return 0x20000000U;
614}
615static inline u32 pbdma_target_should_send_tsg_event_false_f(void)
616{
617 return 0x0U;
618}
619static inline u32 pbdma_target_needs_host_tsg_event_true_f(void)
620{
621 return 0x80000000U;
622}
623static inline u32 pbdma_target_needs_host_tsg_event_false_f(void)
624{
625 return 0x0U;
626}
627static inline u32 pbdma_set_channel_info_r(u32 i)
628{
629 return 0x000400fcU + i*8192U;
630}
631static inline u32 pbdma_set_channel_info_veid_f(u32 v)
632{
633 return (v & 0x3fU) << 8U;
634}
635static inline u32 pbdma_timeout_r(u32 i)
636{
637 return 0x0004012cU + i*8192U;
638}
639static inline u32 pbdma_timeout_period_m(void)
640{
641 return 0xffffffffU << 0U;
642}
643static inline u32 pbdma_timeout_period_max_f(void)
644{
645 return 0xffffffffU;
646}
647static inline u32 pbdma_timeout_period_init_f(void)
648{
649 return 0x10000U;
650}
651#endif
diff --git a/include/nvgpu/hw/gv100/hw_perf_gv100.h b/include/nvgpu/hw/gv100/hw_perf_gv100.h
new file mode 100644
index 0000000..40107ee
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_perf_gv100.h
@@ -0,0 +1,263 @@
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_perf_gv100_h_
57#define _hw_perf_gv100_h_
58
59static inline u32 perf_pmmgpc_perdomain_offset_v(void)
60{
61 return 0x00000200U;
62}
63static inline u32 perf_pmmsys_perdomain_offset_v(void)
64{
65 return 0x00000200U;
66}
67static inline u32 perf_pmmgpc_base_v(void)
68{
69 return 0x00180000U;
70}
71static inline u32 perf_pmmgpc_extent_v(void)
72{
73 return 0x00183fffU;
74}
75static inline u32 perf_pmmsys_base_v(void)
76{
77 return 0x00240000U;
78}
79static inline u32 perf_pmmsys_extent_v(void)
80{
81 return 0x00243fffU;
82}
83static inline u32 perf_pmmfbp_base_v(void)
84{
85 return 0x00200000U;
86}
87static inline u32 perf_pmasys_control_r(void)
88{
89 return 0x0024a000U;
90}
91static inline u32 perf_pmasys_control_membuf_status_v(u32 r)
92{
93 return (r >> 4U) & 0x1U;
94}
95static inline u32 perf_pmasys_control_membuf_status_overflowed_v(void)
96{
97 return 0x00000001U;
98}
99static inline u32 perf_pmasys_control_membuf_status_overflowed_f(void)
100{
101 return 0x10U;
102}
103static inline u32 perf_pmasys_control_membuf_clear_status_f(u32 v)
104{
105 return (v & 0x1U) << 5U;
106}
107static inline u32 perf_pmasys_control_membuf_clear_status_v(u32 r)
108{
109 return (r >> 5U) & 0x1U;
110}
111static inline u32 perf_pmasys_control_membuf_clear_status_doit_v(void)
112{
113 return 0x00000001U;
114}
115static inline u32 perf_pmasys_control_membuf_clear_status_doit_f(void)
116{
117 return 0x20U;
118}
119static inline u32 perf_pmasys_mem_block_r(void)
120{
121 return 0x0024a070U;
122}
123static inline u32 perf_pmasys_mem_block_base_f(u32 v)
124{
125 return (v & 0xfffffffU) << 0U;
126}
127static inline u32 perf_pmasys_mem_block_target_f(u32 v)
128{
129 return (v & 0x3U) << 28U;
130}
131static inline u32 perf_pmasys_mem_block_target_v(u32 r)
132{
133 return (r >> 28U) & 0x3U;
134}
135static inline u32 perf_pmasys_mem_block_target_lfb_v(void)
136{
137 return 0x00000000U;
138}
139static inline u32 perf_pmasys_mem_block_target_lfb_f(void)
140{
141 return 0x0U;
142}
143static inline u32 perf_pmasys_mem_block_target_sys_coh_v(void)
144{
145 return 0x00000002U;
146}
147static inline u32 perf_pmasys_mem_block_target_sys_coh_f(void)
148{
149 return 0x20000000U;
150}
151static inline u32 perf_pmasys_mem_block_target_sys_ncoh_v(void)
152{
153 return 0x00000003U;
154}
155static inline u32 perf_pmasys_mem_block_target_sys_ncoh_f(void)
156{
157 return 0x30000000U;
158}
159static inline u32 perf_pmasys_mem_block_valid_f(u32 v)
160{
161 return (v & 0x1U) << 31U;
162}
163static inline u32 perf_pmasys_mem_block_valid_v(u32 r)
164{
165 return (r >> 31U) & 0x1U;
166}
167static inline u32 perf_pmasys_mem_block_valid_true_v(void)
168{
169 return 0x00000001U;
170}
171static inline u32 perf_pmasys_mem_block_valid_true_f(void)
172{
173 return 0x80000000U;
174}
175static inline u32 perf_pmasys_mem_block_valid_false_v(void)
176{
177 return 0x00000000U;
178}
179static inline u32 perf_pmasys_mem_block_valid_false_f(void)
180{
181 return 0x0U;
182}
183static inline u32 perf_pmasys_outbase_r(void)
184{
185 return 0x0024a074U;
186}
187static inline u32 perf_pmasys_outbase_ptr_f(u32 v)
188{
189 return (v & 0x7ffffffU) << 5U;
190}
191static inline u32 perf_pmasys_outbaseupper_r(void)
192{
193 return 0x0024a078U;
194}
195static inline u32 perf_pmasys_outbaseupper_ptr_f(u32 v)
196{
197 return (v & 0xffU) << 0U;
198}
199static inline u32 perf_pmasys_outsize_r(void)
200{
201 return 0x0024a07cU;
202}
203static inline u32 perf_pmasys_outsize_numbytes_f(u32 v)
204{
205 return (v & 0x7ffffffU) << 5U;
206}
207static inline u32 perf_pmasys_mem_bytes_r(void)
208{
209 return 0x0024a084U;
210}
211static inline u32 perf_pmasys_mem_bytes_numbytes_f(u32 v)
212{
213 return (v & 0xfffffffU) << 4U;
214}
215static inline u32 perf_pmasys_mem_bump_r(void)
216{
217 return 0x0024a088U;
218}
219static inline u32 perf_pmasys_mem_bump_numbytes_f(u32 v)
220{
221 return (v & 0xfffffffU) << 4U;
222}
223static inline u32 perf_pmasys_enginestatus_r(void)
224{
225 return 0x0024a0a4U;
226}
227static inline u32 perf_pmasys_enginestatus_rbufempty_f(u32 v)
228{
229 return (v & 0x1U) << 4U;
230}
231static inline u32 perf_pmasys_enginestatus_rbufempty_empty_v(void)
232{
233 return 0x00000001U;
234}
235static inline u32 perf_pmasys_enginestatus_rbufempty_empty_f(void)
236{
237 return 0x10U;
238}
239static inline u32 perf_pmmsys_engine_sel_r(u32 i)
240{
241 return 0x0024006cU + i*512U;
242}
243static inline u32 perf_pmmsys_engine_sel__size_1_v(void)
244{
245 return 0x00000020U;
246}
247static inline u32 perf_pmmfbp_engine_sel_r(u32 i)
248{
249 return 0x0020006cU + i*512U;
250}
251static inline u32 perf_pmmfbp_engine_sel__size_1_v(void)
252{
253 return 0x00000020U;
254}
255static inline u32 perf_pmmgpc_engine_sel_r(u32 i)
256{
257 return 0x0018006cU + i*512U;
258}
259static inline u32 perf_pmmgpc_engine_sel__size_1_v(void)
260{
261 return 0x00000020U;
262}
263#endif
diff --git a/include/nvgpu/hw/gv100/hw_pgsp_gv100.h b/include/nvgpu/hw/gv100/hw_pgsp_gv100.h
new file mode 100644
index 0000000..34d0eae
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_pgsp_gv100.h
@@ -0,0 +1,643 @@
1/*
2 * Copyright (c) 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_pgsp_gv100_h_
57#define _hw_pgsp_gv100_h_
58
59static inline u32 pgsp_falcon_irqsset_r(void)
60{
61 return 0x00110000U;
62}
63static inline u32 pgsp_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 pgsp_falcon_irqsclr_r(void)
68{
69 return 0x00110004U;
70}
71static inline u32 pgsp_falcon_irqstat_r(void)
72{
73 return 0x00110008U;
74}
75static inline u32 pgsp_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 pgsp_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 pgsp_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 pgsp_falcon_irqmode_r(void)
88{
89 return 0x0011000cU;
90}
91static inline u32 pgsp_falcon_irqmset_r(void)
92{
93 return 0x00110010U;
94}
95static inline u32 pgsp_falcon_irqmset_gptmr_f(u32 v)
96{
97 return (v & 0x1U) << 0U;
98}
99static inline u32 pgsp_falcon_irqmset_wdtmr_f(u32 v)
100{
101 return (v & 0x1U) << 1U;
102}
103static inline u32 pgsp_falcon_irqmset_mthd_f(u32 v)
104{
105 return (v & 0x1U) << 2U;
106}
107static inline u32 pgsp_falcon_irqmset_ctxsw_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 pgsp_falcon_irqmset_halt_f(u32 v)
112{
113 return (v & 0x1U) << 4U;
114}
115static inline u32 pgsp_falcon_irqmset_exterr_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 pgsp_falcon_irqmset_swgen0_f(u32 v)
120{
121 return (v & 0x1U) << 6U;
122}
123static inline u32 pgsp_falcon_irqmset_swgen1_f(u32 v)
124{
125 return (v & 0x1U) << 7U;
126}
127static inline u32 pgsp_falcon_irqmclr_r(void)
128{
129 return 0x00110014U;
130}
131static inline u32 pgsp_falcon_irqmclr_gptmr_f(u32 v)
132{
133 return (v & 0x1U) << 0U;
134}
135static inline u32 pgsp_falcon_irqmclr_wdtmr_f(u32 v)
136{
137 return (v & 0x1U) << 1U;
138}
139static inline u32 pgsp_falcon_irqmclr_mthd_f(u32 v)
140{
141 return (v & 0x1U) << 2U;
142}
143static inline u32 pgsp_falcon_irqmclr_ctxsw_f(u32 v)
144{
145 return (v & 0x1U) << 3U;
146}
147static inline u32 pgsp_falcon_irqmclr_halt_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 pgsp_falcon_irqmclr_exterr_f(u32 v)
152{
153 return (v & 0x1U) << 5U;
154}
155static inline u32 pgsp_falcon_irqmclr_swgen0_f(u32 v)
156{
157 return (v & 0x1U) << 6U;
158}
159static inline u32 pgsp_falcon_irqmclr_swgen1_f(u32 v)
160{
161 return (v & 0x1U) << 7U;
162}
163static inline u32 pgsp_falcon_irqmclr_ext_f(u32 v)
164{
165 return (v & 0xffU) << 8U;
166}
167static inline u32 pgsp_falcon_irqmask_r(void)
168{
169 return 0x00110018U;
170}
171static inline u32 pgsp_falcon_irqdest_r(void)
172{
173 return 0x0011001cU;
174}
175static inline u32 pgsp_falcon_irqdest_host_gptmr_f(u32 v)
176{
177 return (v & 0x1U) << 0U;
178}
179static inline u32 pgsp_falcon_irqdest_host_wdtmr_f(u32 v)
180{
181 return (v & 0x1U) << 1U;
182}
183static inline u32 pgsp_falcon_irqdest_host_mthd_f(u32 v)
184{
185 return (v & 0x1U) << 2U;
186}
187static inline u32 pgsp_falcon_irqdest_host_ctxsw_f(u32 v)
188{
189 return (v & 0x1U) << 3U;
190}
191static inline u32 pgsp_falcon_irqdest_host_halt_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 pgsp_falcon_irqdest_host_exterr_f(u32 v)
196{
197 return (v & 0x1U) << 5U;
198}
199static inline u32 pgsp_falcon_irqdest_host_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 pgsp_falcon_irqdest_host_swgen1_f(u32 v)
204{
205 return (v & 0x1U) << 7U;
206}
207static inline u32 pgsp_falcon_irqdest_host_ext_f(u32 v)
208{
209 return (v & 0xffU) << 8U;
210}
211static inline u32 pgsp_falcon_irqdest_target_gptmr_f(u32 v)
212{
213 return (v & 0x1U) << 16U;
214}
215static inline u32 pgsp_falcon_irqdest_target_wdtmr_f(u32 v)
216{
217 return (v & 0x1U) << 17U;
218}
219static inline u32 pgsp_falcon_irqdest_target_mthd_f(u32 v)
220{
221 return (v & 0x1U) << 18U;
222}
223static inline u32 pgsp_falcon_irqdest_target_ctxsw_f(u32 v)
224{
225 return (v & 0x1U) << 19U;
226}
227static inline u32 pgsp_falcon_irqdest_target_halt_f(u32 v)
228{
229 return (v & 0x1U) << 20U;
230}
231static inline u32 pgsp_falcon_irqdest_target_exterr_f(u32 v)
232{
233 return (v & 0x1U) << 21U;
234}
235static inline u32 pgsp_falcon_irqdest_target_swgen0_f(u32 v)
236{
237 return (v & 0x1U) << 22U;
238}
239static inline u32 pgsp_falcon_irqdest_target_swgen1_f(u32 v)
240{
241 return (v & 0x1U) << 23U;
242}
243static inline u32 pgsp_falcon_irqdest_target_ext_f(u32 v)
244{
245 return (v & 0xffU) << 24U;
246}
247static inline u32 pgsp_falcon_curctx_r(void)
248{
249 return 0x00110050U;
250}
251static inline u32 pgsp_falcon_nxtctx_r(void)
252{
253 return 0x00110054U;
254}
255static inline u32 pgsp_falcon_nxtctx_ctxptr_f(u32 v)
256{
257 return (v & 0xfffffffU) << 0U;
258}
259static inline u32 pgsp_falcon_nxtctx_ctxtgt_fb_f(void)
260{
261 return 0x0U;
262}
263static inline u32 pgsp_falcon_nxtctx_ctxtgt_sys_coh_f(void)
264{
265 return 0x20000000U;
266}
267static inline u32 pgsp_falcon_nxtctx_ctxtgt_sys_ncoh_f(void)
268{
269 return 0x30000000U;
270}
271static inline u32 pgsp_falcon_nxtctx_ctxvalid_f(u32 v)
272{
273 return (v & 0x1U) << 30U;
274}
275static inline u32 pgsp_falcon_mailbox0_r(void)
276{
277 return 0x00110040U;
278}
279static inline u32 pgsp_falcon_mailbox1_r(void)
280{
281 return 0x00110044U;
282}
283static inline u32 pgsp_falcon_itfen_r(void)
284{
285 return 0x00110048U;
286}
287static inline u32 pgsp_falcon_itfen_ctxen_enable_f(void)
288{
289 return 0x1U;
290}
291static inline u32 pgsp_falcon_idlestate_r(void)
292{
293 return 0x0011004cU;
294}
295static inline u32 pgsp_falcon_idlestate_falcon_busy_v(u32 r)
296{
297 return (r >> 0U) & 0x1U;
298}
299static inline u32 pgsp_falcon_idlestate_ext_busy_v(u32 r)
300{
301 return (r >> 1U) & 0x7fffU;
302}
303static inline u32 pgsp_falcon_os_r(void)
304{
305 return 0x00110080U;
306}
307static inline u32 pgsp_falcon_engctl_r(void)
308{
309 return 0x001100a4U;
310}
311static inline u32 pgsp_falcon_engctl_switch_context_true_f(void)
312{
313 return 0x8U;
314}
315static inline u32 pgsp_falcon_engctl_switch_context_false_f(void)
316{
317 return 0x0U;
318}
319static inline u32 pgsp_falcon_cpuctl_r(void)
320{
321 return 0x00110100U;
322}
323static inline u32 pgsp_falcon_cpuctl_startcpu_f(u32 v)
324{
325 return (v & 0x1U) << 1U;
326}
327static inline u32 pgsp_falcon_cpuctl_halt_intr_f(u32 v)
328{
329 return (v & 0x1U) << 4U;
330}
331static inline u32 pgsp_falcon_cpuctl_halt_intr_m(void)
332{
333 return 0x1U << 4U;
334}
335static inline u32 pgsp_falcon_cpuctl_halt_intr_v(u32 r)
336{
337 return (r >> 4U) & 0x1U;
338}
339static inline u32 pgsp_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
340{
341 return (v & 0x1U) << 6U;
342}
343static inline u32 pgsp_falcon_cpuctl_cpuctl_alias_en_m(void)
344{
345 return 0x1U << 6U;
346}
347static inline u32 pgsp_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
348{
349 return (r >> 6U) & 0x1U;
350}
351static inline u32 pgsp_falcon_cpuctl_alias_r(void)
352{
353 return 0x00110130U;
354}
355static inline u32 pgsp_falcon_cpuctl_alias_startcpu_f(u32 v)
356{
357 return (v & 0x1U) << 1U;
358}
359static inline u32 pgsp_falcon_imemc_r(u32 i)
360{
361 return 0x00110180U + i*16U;
362}
363static inline u32 pgsp_falcon_imemc_offs_f(u32 v)
364{
365 return (v & 0x3fU) << 2U;
366}
367static inline u32 pgsp_falcon_imemc_blk_f(u32 v)
368{
369 return (v & 0xffU) << 8U;
370}
371static inline u32 pgsp_falcon_imemc_aincw_f(u32 v)
372{
373 return (v & 0x1U) << 24U;
374}
375static inline u32 pgsp_falcon_imemd_r(u32 i)
376{
377 return 0x00110184U + i*16U;
378}
379static inline u32 pgsp_falcon_imemt_r(u32 i)
380{
381 return 0x00110188U + i*16U;
382}
383static inline u32 pgsp_falcon_sctl_r(void)
384{
385 return 0x00110240U;
386}
387static inline u32 pgsp_falcon_mmu_phys_sec_r(void)
388{
389 return 0x00100ce4U;
390}
391static inline u32 pgsp_falcon_bootvec_r(void)
392{
393 return 0x00110104U;
394}
395static inline u32 pgsp_falcon_bootvec_vec_f(u32 v)
396{
397 return (v & 0xffffffffU) << 0U;
398}
399static inline u32 pgsp_falcon_dmactl_r(void)
400{
401 return 0x0011010cU;
402}
403static inline u32 pgsp_falcon_dmactl_dmem_scrubbing_m(void)
404{
405 return 0x1U << 1U;
406}
407static inline u32 pgsp_falcon_dmactl_imem_scrubbing_m(void)
408{
409 return 0x1U << 2U;
410}
411static inline u32 pgsp_falcon_dmactl_require_ctx_f(u32 v)
412{
413 return (v & 0x1U) << 0U;
414}
415static inline u32 pgsp_falcon_hwcfg_r(void)
416{
417 return 0x00110108U;
418}
419static inline u32 pgsp_falcon_hwcfg_imem_size_v(u32 r)
420{
421 return (r >> 0U) & 0x1ffU;
422}
423static inline u32 pgsp_falcon_hwcfg_dmem_size_v(u32 r)
424{
425 return (r >> 9U) & 0x1ffU;
426}
427static inline u32 pgsp_falcon_dmatrfbase_r(void)
428{
429 return 0x00110110U;
430}
431static inline u32 pgsp_falcon_dmatrfbase1_r(void)
432{
433 return 0x00110128U;
434}
435static inline u32 pgsp_falcon_dmatrfmoffs_r(void)
436{
437 return 0x00110114U;
438}
439static inline u32 pgsp_falcon_dmatrfcmd_r(void)
440{
441 return 0x00110118U;
442}
443static inline u32 pgsp_falcon_dmatrfcmd_imem_f(u32 v)
444{
445 return (v & 0x1U) << 4U;
446}
447static inline u32 pgsp_falcon_dmatrfcmd_write_f(u32 v)
448{
449 return (v & 0x1U) << 5U;
450}
451static inline u32 pgsp_falcon_dmatrfcmd_size_f(u32 v)
452{
453 return (v & 0x7U) << 8U;
454}
455static inline u32 pgsp_falcon_dmatrfcmd_ctxdma_f(u32 v)
456{
457 return (v & 0x7U) << 12U;
458}
459static inline u32 pgsp_falcon_dmatrffboffs_r(void)
460{
461 return 0x0011011cU;
462}
463static inline u32 pgsp_falcon_exterraddr_r(void)
464{
465 return 0x00110168U;
466}
467static inline u32 pgsp_falcon_exterrstat_r(void)
468{
469 return 0x0011016cU;
470}
471static inline u32 pgsp_falcon_exterrstat_valid_m(void)
472{
473 return 0x1U << 31U;
474}
475static inline u32 pgsp_falcon_exterrstat_valid_v(u32 r)
476{
477 return (r >> 31U) & 0x1U;
478}
479static inline u32 pgsp_falcon_exterrstat_valid_true_v(void)
480{
481 return 0x00000001U;
482}
483static inline u32 pgsp_sec2_falcon_icd_cmd_r(void)
484{
485 return 0x00110200U;
486}
487static inline u32 pgsp_sec2_falcon_icd_cmd_opc_s(void)
488{
489 return 4U;
490}
491static inline u32 pgsp_sec2_falcon_icd_cmd_opc_f(u32 v)
492{
493 return (v & 0xfU) << 0U;
494}
495static inline u32 pgsp_sec2_falcon_icd_cmd_opc_m(void)
496{
497 return 0xfU << 0U;
498}
499static inline u32 pgsp_sec2_falcon_icd_cmd_opc_v(u32 r)
500{
501 return (r >> 0U) & 0xfU;
502}
503static inline u32 pgsp_sec2_falcon_icd_cmd_opc_rreg_f(void)
504{
505 return 0x8U;
506}
507static inline u32 pgsp_sec2_falcon_icd_cmd_opc_rstat_f(void)
508{
509 return 0xeU;
510}
511static inline u32 pgsp_sec2_falcon_icd_cmd_idx_f(u32 v)
512{
513 return (v & 0x1fU) << 8U;
514}
515static inline u32 pgsp_sec2_falcon_icd_rdata_r(void)
516{
517 return 0x0011020cU;
518}
519static inline u32 pgsp_falcon_dmemc_r(u32 i)
520{
521 return 0x001101c0U + i*8U;
522}
523static inline u32 pgsp_falcon_dmemc_offs_f(u32 v)
524{
525 return (v & 0x3fU) << 2U;
526}
527static inline u32 pgsp_falcon_dmemc_offs_m(void)
528{
529 return 0x3fU << 2U;
530}
531static inline u32 pgsp_falcon_dmemc_blk_f(u32 v)
532{
533 return (v & 0xffU) << 8U;
534}
535static inline u32 pgsp_falcon_dmemc_blk_m(void)
536{
537 return 0xffU << 8U;
538}
539static inline u32 pgsp_falcon_dmemc_aincw_f(u32 v)
540{
541 return (v & 0x1U) << 24U;
542}
543static inline u32 pgsp_falcon_dmemc_aincr_f(u32 v)
544{
545 return (v & 0x1U) << 25U;
546}
547static inline u32 pgsp_falcon_dmemd_r(u32 i)
548{
549 return 0x001101c4U + i*8U;
550}
551static inline u32 pgsp_falcon_debug1_r(void)
552{
553 return 0x00110090U;
554}
555static inline u32 pgsp_falcon_debug1_ctxsw_mode_s(void)
556{
557 return 1U;
558}
559static inline u32 pgsp_falcon_debug1_ctxsw_mode_f(u32 v)
560{
561 return (v & 0x1U) << 16U;
562}
563static inline u32 pgsp_falcon_debug1_ctxsw_mode_m(void)
564{
565 return 0x1U << 16U;
566}
567static inline u32 pgsp_falcon_debug1_ctxsw_mode_v(u32 r)
568{
569 return (r >> 16U) & 0x1U;
570}
571static inline u32 pgsp_falcon_debug1_ctxsw_mode_init_f(void)
572{
573 return 0x0U;
574}
575static inline u32 pgsp_fbif_transcfg_r(u32 i)
576{
577 return 0x00110600U + i*4U;
578}
579static inline u32 pgsp_fbif_transcfg_target_local_fb_f(void)
580{
581 return 0x0U;
582}
583static inline u32 pgsp_fbif_transcfg_target_coherent_sysmem_f(void)
584{
585 return 0x1U;
586}
587static inline u32 pgsp_fbif_transcfg_target_noncoherent_sysmem_f(void)
588{
589 return 0x2U;
590}
591static inline u32 pgsp_fbif_transcfg_mem_type_s(void)
592{
593 return 1U;
594}
595static inline u32 pgsp_fbif_transcfg_mem_type_f(u32 v)
596{
597 return (v & 0x1U) << 2U;
598}
599static inline u32 pgsp_fbif_transcfg_mem_type_m(void)
600{
601 return 0x1U << 2U;
602}
603static inline u32 pgsp_fbif_transcfg_mem_type_v(u32 r)
604{
605 return (r >> 2U) & 0x1U;
606}
607static inline u32 pgsp_fbif_transcfg_mem_type_virtual_f(void)
608{
609 return 0x0U;
610}
611static inline u32 pgsp_fbif_transcfg_mem_type_physical_f(void)
612{
613 return 0x4U;
614}
615static inline u32 pgsp_falcon_engine_r(void)
616{
617 return 0x001103c0U;
618}
619static inline u32 pgsp_falcon_engine_reset_true_f(void)
620{
621 return 0x1U;
622}
623static inline u32 pgsp_falcon_engine_reset_false_f(void)
624{
625 return 0x0U;
626}
627static inline u32 pgsp_fbif_ctl_r(void)
628{
629 return 0x00110624U;
630}
631static inline u32 pgsp_fbif_ctl_allow_phys_no_ctx_init_f(void)
632{
633 return 0x0U;
634}
635static inline u32 pgsp_fbif_ctl_allow_phys_no_ctx_disallow_f(void)
636{
637 return 0x0U;
638}
639static inline u32 pgsp_fbif_ctl_allow_phys_no_ctx_allow_f(void)
640{
641 return 0x80U;
642}
643#endif
diff --git a/include/nvgpu/hw/gv100/hw_pram_gv100.h b/include/nvgpu/hw/gv100/hw_pram_gv100.h
new file mode 100644
index 0000000..8f005a2
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_pram_gv100.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (c) 2017, 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_pram_gv100_h_
57#define _hw_pram_gv100_h_
58
59static inline u32 pram_data032_r(u32 i)
60{
61 return 0x00700000U + i*4U;
62}
63#endif
diff --git a/include/nvgpu/hw/gv100/hw_pri_ringmaster_gv100.h b/include/nvgpu/hw/gv100/hw_pri_ringmaster_gv100.h
new file mode 100644
index 0000000..5eca93c
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_pri_ringmaster_gv100.h
@@ -0,0 +1,167 @@
1/*
2 * Copyright (c) 2017, 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_pri_ringmaster_gv100_h_
57#define _hw_pri_ringmaster_gv100_h_
58
59static inline u32 pri_ringmaster_command_r(void)
60{
61 return 0x0012004cU;
62}
63static inline u32 pri_ringmaster_command_cmd_m(void)
64{
65 return 0x3fU << 0U;
66}
67static inline u32 pri_ringmaster_command_cmd_v(u32 r)
68{
69 return (r >> 0U) & 0x3fU;
70}
71static inline u32 pri_ringmaster_command_cmd_no_cmd_v(void)
72{
73 return 0x00000000U;
74}
75static inline u32 pri_ringmaster_command_cmd_start_ring_f(void)
76{
77 return 0x1U;
78}
79static inline u32 pri_ringmaster_command_cmd_ack_interrupt_f(void)
80{
81 return 0x2U;
82}
83static inline u32 pri_ringmaster_command_cmd_enumerate_stations_f(void)
84{
85 return 0x3U;
86}
87static inline u32 pri_ringmaster_command_cmd_enumerate_stations_bc_grp_all_f(void)
88{
89 return 0x0U;
90}
91static inline u32 pri_ringmaster_command_data_r(void)
92{
93 return 0x00120048U;
94}
95static inline u32 pri_ringmaster_start_results_r(void)
96{
97 return 0x00120050U;
98}
99static inline u32 pri_ringmaster_start_results_connectivity_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 pri_ringmaster_start_results_connectivity_pass_v(void)
104{
105 return 0x00000001U;
106}
107static inline u32 pri_ringmaster_intr_status0_r(void)
108{
109 return 0x00120058U;
110}
111static inline u32 pri_ringmaster_intr_status0_ring_start_conn_fault_v(u32 r)
112{
113 return (r >> 0U) & 0x1U;
114}
115static inline u32 pri_ringmaster_intr_status0_disconnect_fault_v(u32 r)
116{
117 return (r >> 1U) & 0x1U;
118}
119static inline u32 pri_ringmaster_intr_status0_overflow_fault_v(u32 r)
120{
121 return (r >> 2U) & 0x1U;
122}
123static inline u32 pri_ringmaster_intr_status0_gbl_write_error_sys_v(u32 r)
124{
125 return (r >> 8U) & 0x1U;
126}
127static inline u32 pri_ringmaster_intr_status1_r(void)
128{
129 return 0x0012005cU;
130}
131static inline u32 pri_ringmaster_global_ctl_r(void)
132{
133 return 0x00120060U;
134}
135static inline u32 pri_ringmaster_global_ctl_ring_reset_asserted_f(void)
136{
137 return 0x1U;
138}
139static inline u32 pri_ringmaster_global_ctl_ring_reset_deasserted_f(void)
140{
141 return 0x0U;
142}
143static inline u32 pri_ringmaster_enum_fbp_r(void)
144{
145 return 0x00120074U;
146}
147static inline u32 pri_ringmaster_enum_fbp_count_v(u32 r)
148{
149 return (r >> 0U) & 0x1fU;
150}
151static inline u32 pri_ringmaster_enum_gpc_r(void)
152{
153 return 0x00120078U;
154}
155static inline u32 pri_ringmaster_enum_gpc_count_v(u32 r)
156{
157 return (r >> 0U) & 0x1fU;
158}
159static inline u32 pri_ringmaster_enum_ltc_r(void)
160{
161 return 0x0012006cU;
162}
163static inline u32 pri_ringmaster_enum_ltc_count_v(u32 r)
164{
165 return (r >> 0U) & 0x1fU;
166}
167#endif
diff --git a/include/nvgpu/hw/gv100/hw_pri_ringstation_gpc_gv100.h b/include/nvgpu/hw/gv100/hw_pri_ringstation_gpc_gv100.h
new file mode 100644
index 0000000..fc522d5
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_pri_ringstation_gpc_gv100.h
@@ -0,0 +1,79 @@
1/*
2 * Copyright (c) 2017, 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_pri_ringstation_gpc_gv100_h_
57#define _hw_pri_ringstation_gpc_gv100_h_
58
59static inline u32 pri_ringstation_gpc_master_config_r(u32 i)
60{
61 return 0x00128300U + i*4U;
62}
63static inline u32 pri_ringstation_gpc_gpc0_priv_error_adr_r(void)
64{
65 return 0x00128120U;
66}
67static inline u32 pri_ringstation_gpc_gpc0_priv_error_wrdat_r(void)
68{
69 return 0x00128124U;
70}
71static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_r(void)
72{
73 return 0x00128128U;
74}
75static inline u32 pri_ringstation_gpc_gpc0_priv_error_code_r(void)
76{
77 return 0x0012812cU;
78}
79#endif
diff --git a/include/nvgpu/hw/gv100/hw_pri_ringstation_sys_gv100.h b/include/nvgpu/hw/gv100/hw_pri_ringstation_sys_gv100.h
new file mode 100644
index 0000000..885ea30
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_pri_ringstation_sys_gv100.h
@@ -0,0 +1,91 @@
1/*
2 * Copyright (c) 2017, 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_pri_ringstation_sys_gv100_h_
57#define _hw_pri_ringstation_sys_gv100_h_
58
59static inline u32 pri_ringstation_sys_master_config_r(u32 i)
60{
61 return 0x00122300U + i*4U;
62}
63static inline u32 pri_ringstation_sys_decode_config_r(void)
64{
65 return 0x00122204U;
66}
67static inline u32 pri_ringstation_sys_decode_config_ring_m(void)
68{
69 return 0x7U << 0U;
70}
71static inline u32 pri_ringstation_sys_decode_config_ring_drop_on_ring_not_started_f(void)
72{
73 return 0x1U;
74}
75static inline u32 pri_ringstation_sys_priv_error_adr_r(void)
76{
77 return 0x00122120U;
78}
79static inline u32 pri_ringstation_sys_priv_error_wrdat_r(void)
80{
81 return 0x00122124U;
82}
83static inline u32 pri_ringstation_sys_priv_error_info_r(void)
84{
85 return 0x00122128U;
86}
87static inline u32 pri_ringstation_sys_priv_error_code_r(void)
88{
89 return 0x0012212cU;
90}
91#endif
diff --git a/include/nvgpu/hw/gv100/hw_proj_gv100.h b/include/nvgpu/hw/gv100/hw_proj_gv100.h
new file mode 100644
index 0000000..f46eaa0
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_proj_gv100.h
@@ -0,0 +1,199 @@
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_proj_gv100_h_
57#define _hw_proj_gv100_h_
58
59static inline u32 proj_gpc_base_v(void)
60{
61 return 0x00500000U;
62}
63static inline u32 proj_gpc_shared_base_v(void)
64{
65 return 0x00418000U;
66}
67static inline u32 proj_gpc_stride_v(void)
68{
69 return 0x00008000U;
70}
71static inline u32 proj_gpc_priv_stride_v(void)
72{
73 return 0x00000800U;
74}
75static inline u32 proj_ltc_stride_v(void)
76{
77 return 0x00002000U;
78}
79static inline u32 proj_lts_stride_v(void)
80{
81 return 0x00000200U;
82}
83static inline u32 proj_fbpa_base_v(void)
84{
85 return 0x00900000U;
86}
87static inline u32 proj_fbpa_shared_base_v(void)
88{
89 return 0x009a0000U;
90}
91static inline u32 proj_fbpa_stride_v(void)
92{
93 return 0x00004000U;
94}
95static inline u32 proj_ppc_in_gpc_base_v(void)
96{
97 return 0x00003000U;
98}
99static inline u32 proj_ppc_in_gpc_shared_base_v(void)
100{
101 return 0x00003e00U;
102}
103static inline u32 proj_ppc_in_gpc_stride_v(void)
104{
105 return 0x00000200U;
106}
107static inline u32 proj_rop_base_v(void)
108{
109 return 0x00410000U;
110}
111static inline u32 proj_rop_shared_base_v(void)
112{
113 return 0x00408800U;
114}
115static inline u32 proj_rop_stride_v(void)
116{
117 return 0x00000400U;
118}
119static inline u32 proj_tpc_in_gpc_base_v(void)
120{
121 return 0x00004000U;
122}
123static inline u32 proj_tpc_in_gpc_stride_v(void)
124{
125 return 0x00000800U;
126}
127static inline u32 proj_tpc_in_gpc_shared_base_v(void)
128{
129 return 0x00001800U;
130}
131static inline u32 proj_smpc_base_v(void)
132{
133 return 0x00000200U;
134}
135static inline u32 proj_smpc_shared_base_v(void)
136{
137 return 0x00000300U;
138}
139static inline u32 proj_smpc_unique_base_v(void)
140{
141 return 0x00000600U;
142}
143static inline u32 proj_smpc_stride_v(void)
144{
145 return 0x00000100U;
146}
147static inline u32 proj_host_num_engines_v(void)
148{
149 return 0x0000000fU;
150}
151static inline u32 proj_host_num_pbdma_v(void)
152{
153 return 0x0000000eU;
154}
155static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void)
156{
157 return 0x00000007U;
158}
159static inline u32 proj_scal_litter_num_fbps_v(void)
160{
161 return 0x00000008U;
162}
163static inline u32 proj_scal_litter_num_fbpas_v(void)
164{
165 return 0x00000010U;
166}
167static inline u32 proj_scal_litter_num_gpcs_v(void)
168{
169 return 0x00000006U;
170}
171static inline u32 proj_scal_litter_num_pes_per_gpc_v(void)
172{
173 return 0x00000003U;
174}
175static inline u32 proj_scal_litter_num_tpcs_per_pes_v(void)
176{
177 return 0x00000003U;
178}
179static inline u32 proj_scal_litter_num_zcull_banks_v(void)
180{
181 return 0x00000004U;
182}
183static inline u32 proj_scal_litter_num_sm_per_tpc_v(void)
184{
185 return 0x00000002U;
186}
187static inline u32 proj_scal_max_gpcs_v(void)
188{
189 return 0x00000020U;
190}
191static inline u32 proj_scal_max_tpc_per_gpc_v(void)
192{
193 return 0x00000008U;
194}
195static inline u32 proj_sm_stride_v(void)
196{
197 return 0x00000080U;
198}
199#endif
diff --git a/include/nvgpu/hw/gv100/hw_pwr_gv100.h b/include/nvgpu/hw/gv100/hw_pwr_gv100.h
new file mode 100644
index 0000000..c719226
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_pwr_gv100.h
@@ -0,0 +1,983 @@
1/*
2 * Copyright (c) 2017, 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_pwr_gv100_h_
57#define _hw_pwr_gv100_h_
58
59static inline u32 pwr_falcon_irqsset_r(void)
60{
61 return 0x0010a000U;
62}
63static inline u32 pwr_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 pwr_falcon_irqsclr_r(void)
68{
69 return 0x0010a004U;
70}
71static inline u32 pwr_falcon_irqstat_r(void)
72{
73 return 0x0010a008U;
74}
75static inline u32 pwr_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 pwr_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 pwr_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 pwr_falcon_irqstat_ext_second_true_f(void)
88{
89 return 0x800U;
90}
91static inline u32 pwr_falcon_irqmode_r(void)
92{
93 return 0x0010a00cU;
94}
95static inline u32 pwr_falcon_irqmset_r(void)
96{
97 return 0x0010a010U;
98}
99static inline u32 pwr_falcon_irqmset_gptmr_f(u32 v)
100{
101 return (v & 0x1U) << 0U;
102}
103static inline u32 pwr_falcon_irqmset_wdtmr_f(u32 v)
104{
105 return (v & 0x1U) << 1U;
106}
107static inline u32 pwr_falcon_irqmset_mthd_f(u32 v)
108{
109 return (v & 0x1U) << 2U;
110}
111static inline u32 pwr_falcon_irqmset_ctxsw_f(u32 v)
112{
113 return (v & 0x1U) << 3U;
114}
115static inline u32 pwr_falcon_irqmset_halt_f(u32 v)
116{
117 return (v & 0x1U) << 4U;
118}
119static inline u32 pwr_falcon_irqmset_exterr_f(u32 v)
120{
121 return (v & 0x1U) << 5U;
122}
123static inline u32 pwr_falcon_irqmset_swgen0_f(u32 v)
124{
125 return (v & 0x1U) << 6U;
126}
127static inline u32 pwr_falcon_irqmset_swgen1_f(u32 v)
128{
129 return (v & 0x1U) << 7U;
130}
131static inline u32 pwr_falcon_irqmset_ext_f(u32 v)
132{
133 return (v & 0xffU) << 8U;
134}
135static inline u32 pwr_falcon_irqmset_ext_ctxe_f(u32 v)
136{
137 return (v & 0x1U) << 8U;
138}
139static inline u32 pwr_falcon_irqmset_ext_limitv_f(u32 v)
140{
141 return (v & 0x1U) << 9U;
142}
143static inline u32 pwr_falcon_irqmset_ext_second_f(u32 v)
144{
145 return (v & 0x1U) << 11U;
146}
147static inline u32 pwr_falcon_irqmset_ext_therm_f(u32 v)
148{
149 return (v & 0x1U) << 12U;
150}
151static inline u32 pwr_falcon_irqmset_ext_miscio_f(u32 v)
152{
153 return (v & 0x1U) << 13U;
154}
155static inline u32 pwr_falcon_irqmset_ext_rttimer_f(u32 v)
156{
157 return (v & 0x1U) << 14U;
158}
159static inline u32 pwr_falcon_irqmclr_r(void)
160{
161 return 0x0010a014U;
162}
163static inline u32 pwr_falcon_irqmclr_gptmr_f(u32 v)
164{
165 return (v & 0x1U) << 0U;
166}
167static inline u32 pwr_falcon_irqmclr_wdtmr_f(u32 v)
168{
169 return (v & 0x1U) << 1U;
170}
171static inline u32 pwr_falcon_irqmclr_mthd_f(u32 v)
172{
173 return (v & 0x1U) << 2U;
174}
175static inline u32 pwr_falcon_irqmclr_ctxsw_f(u32 v)
176{
177 return (v & 0x1U) << 3U;
178}
179static inline u32 pwr_falcon_irqmclr_halt_f(u32 v)
180{
181 return (v & 0x1U) << 4U;
182}
183static inline u32 pwr_falcon_irqmclr_exterr_f(u32 v)
184{
185 return (v & 0x1U) << 5U;
186}
187static inline u32 pwr_falcon_irqmclr_swgen0_f(u32 v)
188{
189 return (v & 0x1U) << 6U;
190}
191static inline u32 pwr_falcon_irqmclr_swgen1_f(u32 v)
192{
193 return (v & 0x1U) << 7U;
194}
195static inline u32 pwr_falcon_irqmclr_ext_f(u32 v)
196{
197 return (v & 0xffU) << 8U;
198}
199static inline u32 pwr_falcon_irqmclr_ext_ctxe_f(u32 v)
200{
201 return (v & 0x1U) << 8U;
202}
203static inline u32 pwr_falcon_irqmclr_ext_limitv_f(u32 v)
204{
205 return (v & 0x1U) << 9U;
206}
207static inline u32 pwr_falcon_irqmclr_ext_second_f(u32 v)
208{
209 return (v & 0x1U) << 11U;
210}
211static inline u32 pwr_falcon_irqmclr_ext_therm_f(u32 v)
212{
213 return (v & 0x1U) << 12U;
214}
215static inline u32 pwr_falcon_irqmclr_ext_miscio_f(u32 v)
216{
217 return (v & 0x1U) << 13U;
218}
219static inline u32 pwr_falcon_irqmclr_ext_rttimer_f(u32 v)
220{
221 return (v & 0x1U) << 14U;
222}
223static inline u32 pwr_falcon_irqmask_r(void)
224{
225 return 0x0010a018U;
226}
227static inline u32 pwr_falcon_irqdest_r(void)
228{
229 return 0x0010a01cU;
230}
231static inline u32 pwr_falcon_irqdest_host_gptmr_f(u32 v)
232{
233 return (v & 0x1U) << 0U;
234}
235static inline u32 pwr_falcon_irqdest_host_wdtmr_f(u32 v)
236{
237 return (v & 0x1U) << 1U;
238}
239static inline u32 pwr_falcon_irqdest_host_mthd_f(u32 v)
240{
241 return (v & 0x1U) << 2U;
242}
243static inline u32 pwr_falcon_irqdest_host_ctxsw_f(u32 v)
244{
245 return (v & 0x1U) << 3U;
246}
247static inline u32 pwr_falcon_irqdest_host_halt_f(u32 v)
248{
249 return (v & 0x1U) << 4U;
250}
251static inline u32 pwr_falcon_irqdest_host_exterr_f(u32 v)
252{
253 return (v & 0x1U) << 5U;
254}
255static inline u32 pwr_falcon_irqdest_host_swgen0_f(u32 v)
256{
257 return (v & 0x1U) << 6U;
258}
259static inline u32 pwr_falcon_irqdest_host_swgen1_f(u32 v)
260{
261 return (v & 0x1U) << 7U;
262}
263static inline u32 pwr_falcon_irqdest_host_ext_f(u32 v)
264{
265 return (v & 0xffU) << 8U;
266}
267static inline u32 pwr_falcon_irqdest_host_ext_ctxe_f(u32 v)
268{
269 return (v & 0x1U) << 8U;
270}
271static inline u32 pwr_falcon_irqdest_host_ext_limitv_f(u32 v)
272{
273 return (v & 0x1U) << 9U;
274}
275static inline u32 pwr_falcon_irqdest_host_ext_second_f(u32 v)
276{
277 return (v & 0x1U) << 11U;
278}
279static inline u32 pwr_falcon_irqdest_host_ext_therm_f(u32 v)
280{
281 return (v & 0x1U) << 12U;
282}
283static inline u32 pwr_falcon_irqdest_host_ext_miscio_f(u32 v)
284{
285 return (v & 0x1U) << 13U;
286}
287static inline u32 pwr_falcon_irqdest_host_ext_rttimer_f(u32 v)
288{
289 return (v & 0x1U) << 14U;
290}
291static inline u32 pwr_falcon_irqdest_target_gptmr_f(u32 v)
292{
293 return (v & 0x1U) << 16U;
294}
295static inline u32 pwr_falcon_irqdest_target_wdtmr_f(u32 v)
296{
297 return (v & 0x1U) << 17U;
298}
299static inline u32 pwr_falcon_irqdest_target_mthd_f(u32 v)
300{
301 return (v & 0x1U) << 18U;
302}
303static inline u32 pwr_falcon_irqdest_target_ctxsw_f(u32 v)
304{
305 return (v & 0x1U) << 19U;
306}
307static inline u32 pwr_falcon_irqdest_target_halt_f(u32 v)
308{
309 return (v & 0x1U) << 20U;
310}
311static inline u32 pwr_falcon_irqdest_target_exterr_f(u32 v)
312{
313 return (v & 0x1U) << 21U;
314}
315static inline u32 pwr_falcon_irqdest_target_swgen0_f(u32 v)
316{
317 return (v & 0x1U) << 22U;
318}
319static inline u32 pwr_falcon_irqdest_target_swgen1_f(u32 v)
320{
321 return (v & 0x1U) << 23U;
322}
323static inline u32 pwr_falcon_irqdest_target_ext_f(u32 v)
324{
325 return (v & 0xffU) << 24U;
326}
327static inline u32 pwr_falcon_irqdest_target_ext_ctxe_f(u32 v)
328{
329 return (v & 0x1U) << 24U;
330}
331static inline u32 pwr_falcon_irqdest_target_ext_limitv_f(u32 v)
332{
333 return (v & 0x1U) << 25U;
334}
335static inline u32 pwr_falcon_irqdest_target_ext_second_f(u32 v)
336{
337 return (v & 0x1U) << 27U;
338}
339static inline u32 pwr_falcon_irqdest_target_ext_therm_f(u32 v)
340{
341 return (v & 0x1U) << 28U;
342}
343static inline u32 pwr_falcon_irqdest_target_ext_miscio_f(u32 v)
344{
345 return (v & 0x1U) << 29U;
346}
347static inline u32 pwr_falcon_irqdest_target_ext_rttimer_f(u32 v)
348{
349 return (v & 0x1U) << 30U;
350}
351static inline u32 pwr_falcon_curctx_r(void)
352{
353 return 0x0010a050U;
354}
355static inline u32 pwr_falcon_nxtctx_r(void)
356{
357 return 0x0010a054U;
358}
359static inline u32 pwr_falcon_mailbox0_r(void)
360{
361 return 0x0010a040U;
362}
363static inline u32 pwr_falcon_mailbox1_r(void)
364{
365 return 0x0010a044U;
366}
367static inline u32 pwr_falcon_itfen_r(void)
368{
369 return 0x0010a048U;
370}
371static inline u32 pwr_falcon_itfen_ctxen_enable_f(void)
372{
373 return 0x1U;
374}
375static inline u32 pwr_falcon_idlestate_r(void)
376{
377 return 0x0010a04cU;
378}
379static inline u32 pwr_falcon_idlestate_falcon_busy_v(u32 r)
380{
381 return (r >> 0U) & 0x1U;
382}
383static inline u32 pwr_falcon_idlestate_ext_busy_v(u32 r)
384{
385 return (r >> 1U) & 0x7fffU;
386}
387static inline u32 pwr_falcon_os_r(void)
388{
389 return 0x0010a080U;
390}
391static inline u32 pwr_falcon_engctl_r(void)
392{
393 return 0x0010a0a4U;
394}
395static inline u32 pwr_falcon_cpuctl_r(void)
396{
397 return 0x0010a100U;
398}
399static inline u32 pwr_falcon_cpuctl_startcpu_f(u32 v)
400{
401 return (v & 0x1U) << 1U;
402}
403static inline u32 pwr_falcon_cpuctl_halt_intr_f(u32 v)
404{
405 return (v & 0x1U) << 4U;
406}
407static inline u32 pwr_falcon_cpuctl_halt_intr_m(void)
408{
409 return 0x1U << 4U;
410}
411static inline u32 pwr_falcon_cpuctl_halt_intr_v(u32 r)
412{
413 return (r >> 4U) & 0x1U;
414}
415static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
416{
417 return (v & 0x1U) << 6U;
418}
419static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_m(void)
420{
421 return 0x1U << 6U;
422}
423static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
424{
425 return (r >> 6U) & 0x1U;
426}
427static inline u32 pwr_falcon_cpuctl_alias_r(void)
428{
429 return 0x0010a130U;
430}
431static inline u32 pwr_falcon_cpuctl_alias_startcpu_f(u32 v)
432{
433 return (v & 0x1U) << 1U;
434}
435static inline u32 pwr_pmu_scpctl_stat_r(void)
436{
437 return 0x0010ac08U;
438}
439static inline u32 pwr_pmu_scpctl_stat_debug_mode_f(u32 v)
440{
441 return (v & 0x1U) << 20U;
442}
443static inline u32 pwr_pmu_scpctl_stat_debug_mode_m(void)
444{
445 return 0x1U << 20U;
446}
447static inline u32 pwr_pmu_scpctl_stat_debug_mode_v(u32 r)
448{
449 return (r >> 20U) & 0x1U;
450}
451static inline u32 pwr_falcon_imemc_r(u32 i)
452{
453 return 0x0010a180U + i*16U;
454}
455static inline u32 pwr_falcon_imemc_offs_f(u32 v)
456{
457 return (v & 0x3fU) << 2U;
458}
459static inline u32 pwr_falcon_imemc_blk_f(u32 v)
460{
461 return (v & 0xffU) << 8U;
462}
463static inline u32 pwr_falcon_imemc_aincw_f(u32 v)
464{
465 return (v & 0x1U) << 24U;
466}
467static inline u32 pwr_falcon_imemd_r(u32 i)
468{
469 return 0x0010a184U + i*16U;
470}
471static inline u32 pwr_falcon_imemt_r(u32 i)
472{
473 return 0x0010a188U + i*16U;
474}
475static inline u32 pwr_falcon_sctl_r(void)
476{
477 return 0x0010a240U;
478}
479static inline u32 pwr_falcon_mmu_phys_sec_r(void)
480{
481 return 0x00100ce4U;
482}
483static inline u32 pwr_falcon_bootvec_r(void)
484{
485 return 0x0010a104U;
486}
487static inline u32 pwr_falcon_bootvec_vec_f(u32 v)
488{
489 return (v & 0xffffffffU) << 0U;
490}
491static inline u32 pwr_falcon_dmactl_r(void)
492{
493 return 0x0010a10cU;
494}
495static inline u32 pwr_falcon_dmactl_dmem_scrubbing_m(void)
496{
497 return 0x1U << 1U;
498}
499static inline u32 pwr_falcon_dmactl_imem_scrubbing_m(void)
500{
501 return 0x1U << 2U;
502}
503static inline u32 pwr_falcon_hwcfg_r(void)
504{
505 return 0x0010a108U;
506}
507static inline u32 pwr_falcon_hwcfg_imem_size_v(u32 r)
508{
509 return (r >> 0U) & 0x1ffU;
510}
511static inline u32 pwr_falcon_hwcfg_dmem_size_v(u32 r)
512{
513 return (r >> 9U) & 0x1ffU;
514}
515static inline u32 pwr_falcon_dmatrfbase_r(void)
516{
517 return 0x0010a110U;
518}
519static inline u32 pwr_falcon_dmatrfbase1_r(void)
520{
521 return 0x0010a128U;
522}
523static inline u32 pwr_falcon_dmatrfmoffs_r(void)
524{
525 return 0x0010a114U;
526}
527static inline u32 pwr_falcon_dmatrfcmd_r(void)
528{
529 return 0x0010a118U;
530}
531static inline u32 pwr_falcon_dmatrfcmd_imem_f(u32 v)
532{
533 return (v & 0x1U) << 4U;
534}
535static inline u32 pwr_falcon_dmatrfcmd_write_f(u32 v)
536{
537 return (v & 0x1U) << 5U;
538}
539static inline u32 pwr_falcon_dmatrfcmd_size_f(u32 v)
540{
541 return (v & 0x7U) << 8U;
542}
543static inline u32 pwr_falcon_dmatrfcmd_ctxdma_f(u32 v)
544{
545 return (v & 0x7U) << 12U;
546}
547static inline u32 pwr_falcon_dmatrffboffs_r(void)
548{
549 return 0x0010a11cU;
550}
551static inline u32 pwr_falcon_exterraddr_r(void)
552{
553 return 0x0010a168U;
554}
555static inline u32 pwr_falcon_exterrstat_r(void)
556{
557 return 0x0010a16cU;
558}
559static inline u32 pwr_falcon_exterrstat_valid_m(void)
560{
561 return 0x1U << 31U;
562}
563static inline u32 pwr_falcon_exterrstat_valid_v(u32 r)
564{
565 return (r >> 31U) & 0x1U;
566}
567static inline u32 pwr_falcon_exterrstat_valid_true_v(void)
568{
569 return 0x00000001U;
570}
571static inline u32 pwr_pmu_falcon_icd_cmd_r(void)
572{
573 return 0x0010a200U;
574}
575static inline u32 pwr_pmu_falcon_icd_cmd_opc_s(void)
576{
577 return 4U;
578}
579static inline u32 pwr_pmu_falcon_icd_cmd_opc_f(u32 v)
580{
581 return (v & 0xfU) << 0U;
582}
583static inline u32 pwr_pmu_falcon_icd_cmd_opc_m(void)
584{
585 return 0xfU << 0U;
586}
587static inline u32 pwr_pmu_falcon_icd_cmd_opc_v(u32 r)
588{
589 return (r >> 0U) & 0xfU;
590}
591static inline u32 pwr_pmu_falcon_icd_cmd_opc_rreg_f(void)
592{
593 return 0x8U;
594}
595static inline u32 pwr_pmu_falcon_icd_cmd_opc_rstat_f(void)
596{
597 return 0xeU;
598}
599static inline u32 pwr_pmu_falcon_icd_cmd_idx_f(u32 v)
600{
601 return (v & 0x1fU) << 8U;
602}
603static inline u32 pwr_pmu_falcon_icd_rdata_r(void)
604{
605 return 0x0010a20cU;
606}
607static inline u32 pwr_falcon_dmemc_r(u32 i)
608{
609 return 0x0010a1c0U + i*8U;
610}
611static inline u32 pwr_falcon_dmemc_offs_f(u32 v)
612{
613 return (v & 0x3fU) << 2U;
614}
615static inline u32 pwr_falcon_dmemc_offs_m(void)
616{
617 return 0x3fU << 2U;
618}
619static inline u32 pwr_falcon_dmemc_blk_f(u32 v)
620{
621 return (v & 0xffU) << 8U;
622}
623static inline u32 pwr_falcon_dmemc_blk_m(void)
624{
625 return 0xffU << 8U;
626}
627static inline u32 pwr_falcon_dmemc_aincw_f(u32 v)
628{
629 return (v & 0x1U) << 24U;
630}
631static inline u32 pwr_falcon_dmemc_aincr_f(u32 v)
632{
633 return (v & 0x1U) << 25U;
634}
635static inline u32 pwr_falcon_dmemd_r(u32 i)
636{
637 return 0x0010a1c4U + i*8U;
638}
639static inline u32 pwr_pmu_new_instblk_r(void)
640{
641 return 0x0010a480U;
642}
643static inline u32 pwr_pmu_new_instblk_ptr_f(u32 v)
644{
645 return (v & 0xfffffffU) << 0U;
646}
647static inline u32 pwr_pmu_new_instblk_target_fb_f(void)
648{
649 return 0x0U;
650}
651static inline u32 pwr_pmu_new_instblk_target_sys_coh_f(void)
652{
653 return 0x20000000U;
654}
655static inline u32 pwr_pmu_new_instblk_target_sys_ncoh_f(void)
656{
657 return 0x30000000U;
658}
659static inline u32 pwr_pmu_new_instblk_valid_f(u32 v)
660{
661 return (v & 0x1U) << 30U;
662}
663static inline u32 pwr_pmu_mutex_id_r(void)
664{
665 return 0x0010a488U;
666}
667static inline u32 pwr_pmu_mutex_id_value_v(u32 r)
668{
669 return (r >> 0U) & 0xffU;
670}
671static inline u32 pwr_pmu_mutex_id_value_init_v(void)
672{
673 return 0x00000000U;
674}
675static inline u32 pwr_pmu_mutex_id_value_not_avail_v(void)
676{
677 return 0x000000ffU;
678}
679static inline u32 pwr_pmu_mutex_id_release_r(void)
680{
681 return 0x0010a48cU;
682}
683static inline u32 pwr_pmu_mutex_id_release_value_f(u32 v)
684{
685 return (v & 0xffU) << 0U;
686}
687static inline u32 pwr_pmu_mutex_id_release_value_m(void)
688{
689 return 0xffU << 0U;
690}
691static inline u32 pwr_pmu_mutex_id_release_value_init_v(void)
692{
693 return 0x00000000U;
694}
695static inline u32 pwr_pmu_mutex_id_release_value_init_f(void)
696{
697 return 0x0U;
698}
699static inline u32 pwr_pmu_mutex_r(u32 i)
700{
701 return 0x0010a580U + i*4U;
702}
703static inline u32 pwr_pmu_mutex__size_1_v(void)
704{
705 return 0x00000010U;
706}
707static inline u32 pwr_pmu_mutex_value_f(u32 v)
708{
709 return (v & 0xffU) << 0U;
710}
711static inline u32 pwr_pmu_mutex_value_v(u32 r)
712{
713 return (r >> 0U) & 0xffU;
714}
715static inline u32 pwr_pmu_mutex_value_initial_lock_f(void)
716{
717 return 0x0U;
718}
719static inline u32 pwr_pmu_queue_head_r(u32 i)
720{
721 return 0x0010a800U + i*4U;
722}
723static inline u32 pwr_pmu_queue_head__size_1_v(void)
724{
725 return 0x00000008U;
726}
727static inline u32 pwr_pmu_queue_head_address_f(u32 v)
728{
729 return (v & 0xffffffffU) << 0U;
730}
731static inline u32 pwr_pmu_queue_head_address_v(u32 r)
732{
733 return (r >> 0U) & 0xffffffffU;
734}
735static inline u32 pwr_pmu_queue_tail_r(u32 i)
736{
737 return 0x0010a820U + i*4U;
738}
739static inline u32 pwr_pmu_queue_tail__size_1_v(void)
740{
741 return 0x00000008U;
742}
743static inline u32 pwr_pmu_queue_tail_address_f(u32 v)
744{
745 return (v & 0xffffffffU) << 0U;
746}
747static inline u32 pwr_pmu_queue_tail_address_v(u32 r)
748{
749 return (r >> 0U) & 0xffffffffU;
750}
751static inline u32 pwr_pmu_msgq_head_r(void)
752{
753 return 0x0010a4c8U;
754}
755static inline u32 pwr_pmu_msgq_head_val_f(u32 v)
756{
757 return (v & 0xffffffffU) << 0U;
758}
759static inline u32 pwr_pmu_msgq_head_val_v(u32 r)
760{
761 return (r >> 0U) & 0xffffffffU;
762}
763static inline u32 pwr_pmu_msgq_tail_r(void)
764{
765 return 0x0010a4ccU;
766}
767static inline u32 pwr_pmu_msgq_tail_val_f(u32 v)
768{
769 return (v & 0xffffffffU) << 0U;
770}
771static inline u32 pwr_pmu_msgq_tail_val_v(u32 r)
772{
773 return (r >> 0U) & 0xffffffffU;
774}
775static inline u32 pwr_pmu_idle_mask_r(u32 i)
776{
777 return 0x0010a504U + i*16U;
778}
779static inline u32 pwr_pmu_idle_mask_gr_enabled_f(void)
780{
781 return 0x1U;
782}
783static inline u32 pwr_pmu_idle_mask_ce_2_enabled_f(void)
784{
785 return 0x200000U;
786}
787static inline u32 pwr_pmu_idle_count_r(u32 i)
788{
789 return 0x0010a508U + i*16U;
790}
791static inline u32 pwr_pmu_idle_count_value_f(u32 v)
792{
793 return (v & 0x7fffffffU) << 0U;
794}
795static inline u32 pwr_pmu_idle_count_value_v(u32 r)
796{
797 return (r >> 0U) & 0x7fffffffU;
798}
799static inline u32 pwr_pmu_idle_count_reset_f(u32 v)
800{
801 return (v & 0x1U) << 31U;
802}
803static inline u32 pwr_pmu_idle_ctrl_r(u32 i)
804{
805 return 0x0010a50cU + i*16U;
806}
807static inline u32 pwr_pmu_idle_ctrl_value_m(void)
808{
809 return 0x3U << 0U;
810}
811static inline u32 pwr_pmu_idle_ctrl_value_busy_f(void)
812{
813 return 0x2U;
814}
815static inline u32 pwr_pmu_idle_ctrl_value_always_f(void)
816{
817 return 0x3U;
818}
819static inline u32 pwr_pmu_idle_ctrl_filter_m(void)
820{
821 return 0x1U << 2U;
822}
823static inline u32 pwr_pmu_idle_ctrl_filter_disabled_f(void)
824{
825 return 0x0U;
826}
827static inline u32 pwr_pmu_idle_threshold_r(u32 i)
828{
829 return 0x0010a8a0U + i*4U;
830}
831static inline u32 pwr_pmu_idle_threshold_value_f(u32 v)
832{
833 return (v & 0x7fffffffU) << 0U;
834}
835static inline u32 pwr_pmu_idle_intr_r(void)
836{
837 return 0x0010a9e8U;
838}
839static inline u32 pwr_pmu_idle_intr_en_f(u32 v)
840{
841 return (v & 0x1U) << 0U;
842}
843static inline u32 pwr_pmu_idle_intr_en_disabled_v(void)
844{
845 return 0x00000000U;
846}
847static inline u32 pwr_pmu_idle_intr_en_enabled_v(void)
848{
849 return 0x00000001U;
850}
851static inline u32 pwr_pmu_idle_intr_status_r(void)
852{
853 return 0x0010a9ecU;
854}
855static inline u32 pwr_pmu_idle_intr_status_intr_f(u32 v)
856{
857 return (v & 0x1U) << 0U;
858}
859static inline u32 pwr_pmu_idle_intr_status_intr_m(void)
860{
861 return U32(0x1U) << 0U;
862}
863static inline u32 pwr_pmu_idle_intr_status_intr_v(u32 r)
864{
865 return (r >> 0U) & 0x1U;
866}
867static inline u32 pwr_pmu_idle_intr_status_intr_pending_v(void)
868{
869 return 0x00000001U;
870}
871static inline u32 pwr_pmu_idle_intr_status_intr_clear_v(void)
872{
873 return 0x00000001U;
874}
875static inline u32 pwr_pmu_idle_mask_supp_r(u32 i)
876{
877 return 0x0010a9f0U + i*8U;
878}
879static inline u32 pwr_pmu_idle_mask_1_supp_r(u32 i)
880{
881 return 0x0010a9f4U + i*8U;
882}
883static inline u32 pwr_pmu_idle_ctrl_supp_r(u32 i)
884{
885 return 0x0010aa30U + i*8U;
886}
887static inline u32 pwr_pmu_debug_r(u32 i)
888{
889 return 0x0010a5c0U + i*4U;
890}
891static inline u32 pwr_pmu_debug__size_1_v(void)
892{
893 return 0x00000004U;
894}
895static inline u32 pwr_pmu_mailbox_r(u32 i)
896{
897 return 0x0010a450U + i*4U;
898}
899static inline u32 pwr_pmu_mailbox__size_1_v(void)
900{
901 return 0x0000000cU;
902}
903static inline u32 pwr_pmu_bar0_addr_r(void)
904{
905 return 0x0010a7a0U;
906}
907static inline u32 pwr_pmu_bar0_data_r(void)
908{
909 return 0x0010a7a4U;
910}
911static inline u32 pwr_pmu_bar0_ctl_r(void)
912{
913 return 0x0010a7acU;
914}
915static inline u32 pwr_pmu_bar0_timeout_r(void)
916{
917 return 0x0010a7a8U;
918}
919static inline u32 pwr_pmu_bar0_fecs_error_r(void)
920{
921 return 0x0010a988U;
922}
923static inline u32 pwr_pmu_bar0_error_status_r(void)
924{
925 return 0x0010a7b0U;
926}
927static inline u32 pwr_pmu_pg_idlefilth_r(u32 i)
928{
929 return 0x0010a6c0U + i*4U;
930}
931static inline u32 pwr_pmu_pg_ppuidlefilth_r(u32 i)
932{
933 return 0x0010a6e8U + i*4U;
934}
935static inline u32 pwr_pmu_pg_idle_cnt_r(u32 i)
936{
937 return 0x0010a710U + i*4U;
938}
939static inline u32 pwr_pmu_pg_intren_r(u32 i)
940{
941 return 0x0010a760U + i*4U;
942}
943static inline u32 pwr_fbif_transcfg_r(u32 i)
944{
945 return 0x0010ae00U + i*4U;
946}
947static inline u32 pwr_fbif_transcfg_target_local_fb_f(void)
948{
949 return 0x0U;
950}
951static inline u32 pwr_fbif_transcfg_target_coherent_sysmem_f(void)
952{
953 return 0x1U;
954}
955static inline u32 pwr_fbif_transcfg_target_noncoherent_sysmem_f(void)
956{
957 return 0x2U;
958}
959static inline u32 pwr_fbif_transcfg_mem_type_s(void)
960{
961 return 1U;
962}
963static inline u32 pwr_fbif_transcfg_mem_type_f(u32 v)
964{
965 return (v & 0x1U) << 2U;
966}
967static inline u32 pwr_fbif_transcfg_mem_type_m(void)
968{
969 return 0x1U << 2U;
970}
971static inline u32 pwr_fbif_transcfg_mem_type_v(u32 r)
972{
973 return (r >> 2U) & 0x1U;
974}
975static inline u32 pwr_fbif_transcfg_mem_type_virtual_f(void)
976{
977 return 0x0U;
978}
979static inline u32 pwr_fbif_transcfg_mem_type_physical_f(void)
980{
981 return 0x4U;
982}
983#endif
diff --git a/include/nvgpu/hw/gv100/hw_ram_gv100.h b/include/nvgpu/hw/gv100/hw_ram_gv100.h
new file mode 100644
index 0000000..55aa25f
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_ram_gv100.h
@@ -0,0 +1,791 @@
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_ram_gv100_h_
57#define _hw_ram_gv100_h_
58
59static inline u32 ram_in_ramfc_s(void)
60{
61 return 4096U;
62}
63static inline u32 ram_in_ramfc_w(void)
64{
65 return 0U;
66}
67static inline u32 ram_in_page_dir_base_target_f(u32 v)
68{
69 return (v & 0x3U) << 0U;
70}
71static inline u32 ram_in_page_dir_base_target_w(void)
72{
73 return 128U;
74}
75static inline u32 ram_in_page_dir_base_target_vid_mem_f(void)
76{
77 return 0x0U;
78}
79static inline u32 ram_in_page_dir_base_target_sys_mem_coh_f(void)
80{
81 return 0x2U;
82}
83static inline u32 ram_in_page_dir_base_target_sys_mem_ncoh_f(void)
84{
85 return 0x3U;
86}
87static inline u32 ram_in_page_dir_base_vol_w(void)
88{
89 return 128U;
90}
91static inline u32 ram_in_page_dir_base_vol_true_f(void)
92{
93 return 0x4U;
94}
95static inline u32 ram_in_page_dir_base_vol_false_f(void)
96{
97 return 0x0U;
98}
99static inline u32 ram_in_page_dir_base_fault_replay_tex_f(u32 v)
100{
101 return (v & 0x1U) << 4U;
102}
103static inline u32 ram_in_page_dir_base_fault_replay_tex_m(void)
104{
105 return 0x1U << 4U;
106}
107static inline u32 ram_in_page_dir_base_fault_replay_tex_w(void)
108{
109 return 128U;
110}
111static inline u32 ram_in_page_dir_base_fault_replay_tex_true_f(void)
112{
113 return 0x10U;
114}
115static inline u32 ram_in_page_dir_base_fault_replay_gcc_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 ram_in_page_dir_base_fault_replay_gcc_m(void)
120{
121 return 0x1U << 5U;
122}
123static inline u32 ram_in_page_dir_base_fault_replay_gcc_w(void)
124{
125 return 128U;
126}
127static inline u32 ram_in_page_dir_base_fault_replay_gcc_true_f(void)
128{
129 return 0x20U;
130}
131static inline u32 ram_in_use_ver2_pt_format_f(u32 v)
132{
133 return (v & 0x1U) << 10U;
134}
135static inline u32 ram_in_use_ver2_pt_format_m(void)
136{
137 return 0x1U << 10U;
138}
139static inline u32 ram_in_use_ver2_pt_format_w(void)
140{
141 return 128U;
142}
143static inline u32 ram_in_use_ver2_pt_format_true_f(void)
144{
145 return 0x400U;
146}
147static inline u32 ram_in_use_ver2_pt_format_false_f(void)
148{
149 return 0x0U;
150}
151static inline u32 ram_in_big_page_size_f(u32 v)
152{
153 return (v & 0x1U) << 11U;
154}
155static inline u32 ram_in_big_page_size_m(void)
156{
157 return 0x1U << 11U;
158}
159static inline u32 ram_in_big_page_size_w(void)
160{
161 return 128U;
162}
163static inline u32 ram_in_big_page_size_128kb_f(void)
164{
165 return 0x0U;
166}
167static inline u32 ram_in_big_page_size_64kb_f(void)
168{
169 return 0x800U;
170}
171static inline u32 ram_in_page_dir_base_lo_f(u32 v)
172{
173 return (v & 0xfffffU) << 12U;
174}
175static inline u32 ram_in_page_dir_base_lo_w(void)
176{
177 return 128U;
178}
179static inline u32 ram_in_page_dir_base_hi_f(u32 v)
180{
181 return (v & 0xffffffffU) << 0U;
182}
183static inline u32 ram_in_page_dir_base_hi_w(void)
184{
185 return 129U;
186}
187static inline u32 ram_in_engine_cs_w(void)
188{
189 return 132U;
190}
191static inline u32 ram_in_engine_cs_wfi_v(void)
192{
193 return 0x00000000U;
194}
195static inline u32 ram_in_engine_cs_wfi_f(void)
196{
197 return 0x0U;
198}
199static inline u32 ram_in_engine_cs_fg_v(void)
200{
201 return 0x00000001U;
202}
203static inline u32 ram_in_engine_cs_fg_f(void)
204{
205 return 0x8U;
206}
207static inline u32 ram_in_engine_wfi_mode_f(u32 v)
208{
209 return (v & 0x1U) << 2U;
210}
211static inline u32 ram_in_engine_wfi_mode_w(void)
212{
213 return 132U;
214}
215static inline u32 ram_in_engine_wfi_mode_physical_v(void)
216{
217 return 0x00000000U;
218}
219static inline u32 ram_in_engine_wfi_mode_virtual_v(void)
220{
221 return 0x00000001U;
222}
223static inline u32 ram_in_engine_wfi_target_f(u32 v)
224{
225 return (v & 0x3U) << 0U;
226}
227static inline u32 ram_in_engine_wfi_target_w(void)
228{
229 return 132U;
230}
231static inline u32 ram_in_engine_wfi_target_sys_mem_coh_v(void)
232{
233 return 0x00000002U;
234}
235static inline u32 ram_in_engine_wfi_target_sys_mem_ncoh_v(void)
236{
237 return 0x00000003U;
238}
239static inline u32 ram_in_engine_wfi_target_local_mem_v(void)
240{
241 return 0x00000000U;
242}
243static inline u32 ram_in_engine_wfi_ptr_lo_f(u32 v)
244{
245 return (v & 0xfffffU) << 12U;
246}
247static inline u32 ram_in_engine_wfi_ptr_lo_w(void)
248{
249 return 132U;
250}
251static inline u32 ram_in_engine_wfi_ptr_hi_f(u32 v)
252{
253 return (v & 0xffU) << 0U;
254}
255static inline u32 ram_in_engine_wfi_ptr_hi_w(void)
256{
257 return 133U;
258}
259static inline u32 ram_in_engine_wfi_veid_f(u32 v)
260{
261 return (v & 0x3fU) << 0U;
262}
263static inline u32 ram_in_engine_wfi_veid_w(void)
264{
265 return 134U;
266}
267static inline u32 ram_in_eng_method_buffer_addr_lo_f(u32 v)
268{
269 return (v & 0xffffffffU) << 0U;
270}
271static inline u32 ram_in_eng_method_buffer_addr_lo_w(void)
272{
273 return 136U;
274}
275static inline u32 ram_in_eng_method_buffer_addr_hi_f(u32 v)
276{
277 return (v & 0x1ffffU) << 0U;
278}
279static inline u32 ram_in_eng_method_buffer_addr_hi_w(void)
280{
281 return 137U;
282}
283static inline u32 ram_in_sc_page_dir_base_target_f(u32 v, u32 i)
284{
285 return (v & 0x3U) << (0U + i*0U);
286}
287static inline u32 ram_in_sc_page_dir_base_target__size_1_v(void)
288{
289 return 0x00000040U;
290}
291static inline u32 ram_in_sc_page_dir_base_target_vid_mem_v(void)
292{
293 return 0x00000000U;
294}
295static inline u32 ram_in_sc_page_dir_base_target_invalid_v(void)
296{
297 return 0x00000001U;
298}
299static inline u32 ram_in_sc_page_dir_base_target_sys_mem_coh_v(void)
300{
301 return 0x00000002U;
302}
303static inline u32 ram_in_sc_page_dir_base_target_sys_mem_ncoh_v(void)
304{
305 return 0x00000003U;
306}
307static inline u32 ram_in_sc_page_dir_base_vol_f(u32 v, u32 i)
308{
309 return (v & 0x1U) << (2U + i*0U);
310}
311static inline u32 ram_in_sc_page_dir_base_vol__size_1_v(void)
312{
313 return 0x00000040U;
314}
315static inline u32 ram_in_sc_page_dir_base_vol_true_v(void)
316{
317 return 0x00000001U;
318}
319static inline u32 ram_in_sc_page_dir_base_vol_false_v(void)
320{
321 return 0x00000000U;
322}
323static inline u32 ram_in_sc_page_dir_base_fault_replay_tex_f(u32 v, u32 i)
324{
325 return (v & 0x1U) << (4U + i*0U);
326}
327static inline u32 ram_in_sc_page_dir_base_fault_replay_tex__size_1_v(void)
328{
329 return 0x00000040U;
330}
331static inline u32 ram_in_sc_page_dir_base_fault_replay_tex_enabled_v(void)
332{
333 return 0x00000001U;
334}
335static inline u32 ram_in_sc_page_dir_base_fault_replay_tex_disabled_v(void)
336{
337 return 0x00000000U;
338}
339static inline u32 ram_in_sc_page_dir_base_fault_replay_gcc_f(u32 v, u32 i)
340{
341 return (v & 0x1U) << (5U + i*0U);
342}
343static inline u32 ram_in_sc_page_dir_base_fault_replay_gcc__size_1_v(void)
344{
345 return 0x00000040U;
346}
347static inline u32 ram_in_sc_page_dir_base_fault_replay_gcc_enabled_v(void)
348{
349 return 0x00000001U;
350}
351static inline u32 ram_in_sc_page_dir_base_fault_replay_gcc_disabled_v(void)
352{
353 return 0x00000000U;
354}
355static inline u32 ram_in_sc_use_ver2_pt_format_f(u32 v, u32 i)
356{
357 return (v & 0x1U) << (10U + i*0U);
358}
359static inline u32 ram_in_sc_use_ver2_pt_format__size_1_v(void)
360{
361 return 0x00000040U;
362}
363static inline u32 ram_in_sc_use_ver2_pt_format_false_v(void)
364{
365 return 0x00000000U;
366}
367static inline u32 ram_in_sc_use_ver2_pt_format_true_v(void)
368{
369 return 0x00000001U;
370}
371static inline u32 ram_in_sc_big_page_size_f(u32 v, u32 i)
372{
373 return (v & 0x1U) << (11U + i*0U);
374}
375static inline u32 ram_in_sc_big_page_size__size_1_v(void)
376{
377 return 0x00000040U;
378}
379static inline u32 ram_in_sc_big_page_size_64kb_v(void)
380{
381 return 0x00000001U;
382}
383static inline u32 ram_in_sc_page_dir_base_lo_f(u32 v, u32 i)
384{
385 return (v & 0xfffffU) << (12U + i*0U);
386}
387static inline u32 ram_in_sc_page_dir_base_lo__size_1_v(void)
388{
389 return 0x00000040U;
390}
391static inline u32 ram_in_sc_page_dir_base_hi_f(u32 v, u32 i)
392{
393 return (v & 0xffffffffU) << (0U + i*0U);
394}
395static inline u32 ram_in_sc_page_dir_base_hi__size_1_v(void)
396{
397 return 0x00000040U;
398}
399static inline u32 ram_in_sc_page_dir_base_target_0_f(u32 v)
400{
401 return (v & 0x3U) << 0U;
402}
403static inline u32 ram_in_sc_page_dir_base_target_0_w(void)
404{
405 return 168U;
406}
407static inline u32 ram_in_sc_page_dir_base_vol_0_f(u32 v)
408{
409 return (v & 0x1U) << 2U;
410}
411static inline u32 ram_in_sc_page_dir_base_vol_0_w(void)
412{
413 return 168U;
414}
415static inline u32 ram_in_sc_page_dir_base_fault_replay_tex_0_f(u32 v)
416{
417 return (v & 0x1U) << 4U;
418}
419static inline u32 ram_in_sc_page_dir_base_fault_replay_tex_0_w(void)
420{
421 return 168U;
422}
423static inline u32 ram_in_sc_page_dir_base_fault_replay_gcc_0_f(u32 v)
424{
425 return (v & 0x1U) << 5U;
426}
427static inline u32 ram_in_sc_page_dir_base_fault_replay_gcc_0_w(void)
428{
429 return 168U;
430}
431static inline u32 ram_in_sc_use_ver2_pt_format_0_f(u32 v)
432{
433 return (v & 0x1U) << 10U;
434}
435static inline u32 ram_in_sc_use_ver2_pt_format_0_w(void)
436{
437 return 168U;
438}
439static inline u32 ram_in_sc_big_page_size_0_f(u32 v)
440{
441 return (v & 0x1U) << 11U;
442}
443static inline u32 ram_in_sc_big_page_size_0_w(void)
444{
445 return 168U;
446}
447static inline u32 ram_in_sc_page_dir_base_lo_0_f(u32 v)
448{
449 return (v & 0xfffffU) << 12U;
450}
451static inline u32 ram_in_sc_page_dir_base_lo_0_w(void)
452{
453 return 168U;
454}
455static inline u32 ram_in_sc_page_dir_base_hi_0_f(u32 v)
456{
457 return (v & 0xffffffffU) << 0U;
458}
459static inline u32 ram_in_sc_page_dir_base_hi_0_w(void)
460{
461 return 169U;
462}
463static inline u32 ram_in_base_shift_v(void)
464{
465 return 0x0000000cU;
466}
467static inline u32 ram_in_alloc_size_v(void)
468{
469 return 0x00001000U;
470}
471static inline u32 ram_fc_size_val_v(void)
472{
473 return 0x00000200U;
474}
475static inline u32 ram_fc_gp_put_w(void)
476{
477 return 0U;
478}
479static inline u32 ram_fc_userd_w(void)
480{
481 return 2U;
482}
483static inline u32 ram_fc_userd_hi_w(void)
484{
485 return 3U;
486}
487static inline u32 ram_fc_signature_w(void)
488{
489 return 4U;
490}
491static inline u32 ram_fc_gp_get_w(void)
492{
493 return 5U;
494}
495static inline u32 ram_fc_pb_get_w(void)
496{
497 return 6U;
498}
499static inline u32 ram_fc_pb_get_hi_w(void)
500{
501 return 7U;
502}
503static inline u32 ram_fc_pb_top_level_get_w(void)
504{
505 return 8U;
506}
507static inline u32 ram_fc_pb_top_level_get_hi_w(void)
508{
509 return 9U;
510}
511static inline u32 ram_fc_acquire_w(void)
512{
513 return 12U;
514}
515static inline u32 ram_fc_sem_addr_hi_w(void)
516{
517 return 14U;
518}
519static inline u32 ram_fc_sem_addr_lo_w(void)
520{
521 return 15U;
522}
523static inline u32 ram_fc_sem_payload_lo_w(void)
524{
525 return 16U;
526}
527static inline u32 ram_fc_sem_payload_hi_w(void)
528{
529 return 39U;
530}
531static inline u32 ram_fc_sem_execute_w(void)
532{
533 return 17U;
534}
535static inline u32 ram_fc_gp_base_w(void)
536{
537 return 18U;
538}
539static inline u32 ram_fc_gp_base_hi_w(void)
540{
541 return 19U;
542}
543static inline u32 ram_fc_gp_fetch_w(void)
544{
545 return 20U;
546}
547static inline u32 ram_fc_pb_fetch_w(void)
548{
549 return 21U;
550}
551static inline u32 ram_fc_pb_fetch_hi_w(void)
552{
553 return 22U;
554}
555static inline u32 ram_fc_pb_put_w(void)
556{
557 return 23U;
558}
559static inline u32 ram_fc_pb_put_hi_w(void)
560{
561 return 24U;
562}
563static inline u32 ram_fc_pb_header_w(void)
564{
565 return 33U;
566}
567static inline u32 ram_fc_pb_count_w(void)
568{
569 return 34U;
570}
571static inline u32 ram_fc_subdevice_w(void)
572{
573 return 37U;
574}
575static inline u32 ram_fc_target_w(void)
576{
577 return 43U;
578}
579static inline u32 ram_fc_hce_ctrl_w(void)
580{
581 return 57U;
582}
583static inline u32 ram_fc_chid_w(void)
584{
585 return 58U;
586}
587static inline u32 ram_fc_chid_id_f(u32 v)
588{
589 return (v & 0xfffU) << 0U;
590}
591static inline u32 ram_fc_chid_id_w(void)
592{
593 return 0U;
594}
595static inline u32 ram_fc_config_w(void)
596{
597 return 61U;
598}
599static inline u32 ram_fc_runlist_timeslice_w(void)
600{
601 return 62U;
602}
603static inline u32 ram_fc_set_channel_info_w(void)
604{
605 return 63U;
606}
607static inline u32 ram_userd_base_shift_v(void)
608{
609 return 0x00000009U;
610}
611static inline u32 ram_userd_chan_size_v(void)
612{
613 return 0x00000200U;
614}
615static inline u32 ram_userd_put_w(void)
616{
617 return 16U;
618}
619static inline u32 ram_userd_get_w(void)
620{
621 return 17U;
622}
623static inline u32 ram_userd_ref_w(void)
624{
625 return 18U;
626}
627static inline u32 ram_userd_put_hi_w(void)
628{
629 return 19U;
630}
631static inline u32 ram_userd_ref_threshold_w(void)
632{
633 return 20U;
634}
635static inline u32 ram_userd_top_level_get_w(void)
636{
637 return 22U;
638}
639static inline u32 ram_userd_top_level_get_hi_w(void)
640{
641 return 23U;
642}
643static inline u32 ram_userd_get_hi_w(void)
644{
645 return 24U;
646}
647static inline u32 ram_userd_gp_get_w(void)
648{
649 return 34U;
650}
651static inline u32 ram_userd_gp_put_w(void)
652{
653 return 35U;
654}
655static inline u32 ram_userd_gp_top_level_get_w(void)
656{
657 return 22U;
658}
659static inline u32 ram_userd_gp_top_level_get_hi_w(void)
660{
661 return 23U;
662}
663static inline u32 ram_rl_entry_size_v(void)
664{
665 return 0x00000010U;
666}
667static inline u32 ram_rl_entry_type_f(u32 v)
668{
669 return (v & 0x1U) << 0U;
670}
671static inline u32 ram_rl_entry_type_channel_v(void)
672{
673 return 0x00000000U;
674}
675static inline u32 ram_rl_entry_type_tsg_v(void)
676{
677 return 0x00000001U;
678}
679static inline u32 ram_rl_entry_id_f(u32 v)
680{
681 return (v & 0xfffU) << 0U;
682}
683static inline u32 ram_rl_entry_chan_runqueue_selector_f(u32 v)
684{
685 return (v & 0x1U) << 1U;
686}
687static inline u32 ram_rl_entry_chan_inst_target_f(u32 v)
688{
689 return (v & 0x3U) << 4U;
690}
691static inline u32 ram_rl_entry_chan_inst_target_sys_mem_ncoh_v(void)
692{
693 return 0x00000003U;
694}
695static inline u32 ram_rl_entry_chan_inst_target_sys_mem_coh_v(void)
696{
697 return 0x00000002U;
698}
699static inline u32 ram_rl_entry_chan_inst_target_vid_mem_v(void)
700{
701 return 0x00000000U;
702}
703static inline u32 ram_rl_entry_chan_userd_target_f(u32 v)
704{
705 return (v & 0x3U) << 6U;
706}
707static inline u32 ram_rl_entry_chan_userd_target_vid_mem_v(void)
708{
709 return 0x00000000U;
710}
711static inline u32 ram_rl_entry_chan_userd_target_vid_mem_nvlink_coh_v(void)
712{
713 return 0x00000001U;
714}
715static inline u32 ram_rl_entry_chan_userd_target_sys_mem_coh_v(void)
716{
717 return 0x00000002U;
718}
719static inline u32 ram_rl_entry_chan_userd_target_sys_mem_ncoh_v(void)
720{
721 return 0x00000003U;
722}
723static inline u32 ram_rl_entry_chan_userd_ptr_lo_f(u32 v)
724{
725 return (v & 0xffffffU) << 8U;
726}
727static inline u32 ram_rl_entry_chan_userd_ptr_hi_f(u32 v)
728{
729 return (v & 0xffffffffU) << 0U;
730}
731static inline u32 ram_rl_entry_chid_f(u32 v)
732{
733 return (v & 0xfffU) << 0U;
734}
735static inline u32 ram_rl_entry_chan_inst_ptr_lo_f(u32 v)
736{
737 return (v & 0xfffffU) << 12U;
738}
739static inline u32 ram_rl_entry_chan_inst_ptr_hi_f(u32 v)
740{
741 return (v & 0xffffffffU) << 0U;
742}
743static inline u32 ram_rl_entry_tsg_timeslice_scale_f(u32 v)
744{
745 return (v & 0xfU) << 16U;
746}
747static inline u32 ram_rl_entry_tsg_timeslice_scale_3_v(void)
748{
749 return 0x00000003U;
750}
751static inline u32 ram_rl_entry_tsg_timeslice_timeout_f(u32 v)
752{
753 return (v & 0xffU) << 24U;
754}
755static inline u32 ram_rl_entry_tsg_timeslice_timeout_128_v(void)
756{
757 return 0x00000080U;
758}
759static inline u32 ram_rl_entry_tsg_length_f(u32 v)
760{
761 return (v & 0xffU) << 0U;
762}
763static inline u32 ram_rl_entry_tsg_length_init_v(void)
764{
765 return 0x00000000U;
766}
767static inline u32 ram_rl_entry_tsg_length_min_v(void)
768{
769 return 0x00000001U;
770}
771static inline u32 ram_rl_entry_tsg_length_max_v(void)
772{
773 return 0x00000080U;
774}
775static inline u32 ram_rl_entry_tsg_tsgid_f(u32 v)
776{
777 return (v & 0xfffU) << 0U;
778}
779static inline u32 ram_rl_entry_chan_userd_ptr_align_shift_v(void)
780{
781 return 0x00000008U;
782}
783static inline u32 ram_rl_entry_chan_userd_align_shift_v(void)
784{
785 return 0x00000008U;
786}
787static inline u32 ram_rl_entry_chan_inst_ptr_align_shift_v(void)
788{
789 return 0x0000000cU;
790}
791#endif
diff --git a/include/nvgpu/hw/gv100/hw_therm_gv100.h b/include/nvgpu/hw/gv100/hw_therm_gv100.h
new file mode 100644
index 0000000..2ea71ef
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_therm_gv100.h
@@ -0,0 +1,299 @@
1/*
2 * Copyright (c) 2017, 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_therm_gv100_h_
57#define _hw_therm_gv100_h_
58
59static inline u32 therm_weight_1_r(void)
60{
61 return 0x00020024U;
62}
63static inline u32 therm_config1_r(void)
64{
65 return 0x00020050U;
66}
67static inline u32 therm_config2_r(void)
68{
69 return 0x00020130U;
70}
71static inline u32 therm_config2_slowdown_factor_extended_f(u32 v)
72{
73 return (v & 0x1U) << 24U;
74}
75static inline u32 therm_config2_grad_enable_f(u32 v)
76{
77 return (v & 0x1U) << 31U;
78}
79static inline u32 therm_gate_ctrl_r(u32 i)
80{
81 return 0x00020200U + i*4U;
82}
83static inline u32 therm_gate_ctrl_eng_clk_m(void)
84{
85 return 0x3U << 0U;
86}
87static inline u32 therm_gate_ctrl_eng_clk_run_f(void)
88{
89 return 0x0U;
90}
91static inline u32 therm_gate_ctrl_eng_clk_auto_f(void)
92{
93 return 0x1U;
94}
95static inline u32 therm_gate_ctrl_eng_clk_stop_f(void)
96{
97 return 0x2U;
98}
99static inline u32 therm_gate_ctrl_blk_clk_m(void)
100{
101 return 0x3U << 2U;
102}
103static inline u32 therm_gate_ctrl_blk_clk_run_f(void)
104{
105 return 0x0U;
106}
107static inline u32 therm_gate_ctrl_blk_clk_auto_f(void)
108{
109 return 0x4U;
110}
111static inline u32 therm_gate_ctrl_idle_holdoff_m(void)
112{
113 return 0x1U << 4U;
114}
115static inline u32 therm_gate_ctrl_idle_holdoff_off_f(void)
116{
117 return 0x0U;
118}
119static inline u32 therm_gate_ctrl_idle_holdoff_on_f(void)
120{
121 return 0x10U;
122}
123static inline u32 therm_gate_ctrl_eng_idle_filt_exp_f(u32 v)
124{
125 return (v & 0x1fU) << 8U;
126}
127static inline u32 therm_gate_ctrl_eng_idle_filt_exp_m(void)
128{
129 return 0x1fU << 8U;
130}
131static inline u32 therm_gate_ctrl_eng_idle_filt_mant_f(u32 v)
132{
133 return (v & 0x7U) << 13U;
134}
135static inline u32 therm_gate_ctrl_eng_idle_filt_mant_m(void)
136{
137 return 0x7U << 13U;
138}
139static inline u32 therm_gate_ctrl_eng_delay_before_f(u32 v)
140{
141 return (v & 0xfU) << 16U;
142}
143static inline u32 therm_gate_ctrl_eng_delay_before_m(void)
144{
145 return 0xfU << 16U;
146}
147static inline u32 therm_gate_ctrl_eng_delay_after_f(u32 v)
148{
149 return (v & 0xfU) << 20U;
150}
151static inline u32 therm_gate_ctrl_eng_delay_after_m(void)
152{
153 return 0xfU << 20U;
154}
155static inline u32 therm_fecs_idle_filter_r(void)
156{
157 return 0x00020288U;
158}
159static inline u32 therm_fecs_idle_filter_value_m(void)
160{
161 return 0xffffffffU << 0U;
162}
163static inline u32 therm_hubmmu_idle_filter_r(void)
164{
165 return 0x0002028cU;
166}
167static inline u32 therm_hubmmu_idle_filter_value_m(void)
168{
169 return 0xffffffffU << 0U;
170}
171static inline u32 therm_clk_slowdown_r(u32 i)
172{
173 return 0x00020160U + i*4U;
174}
175static inline u32 therm_clk_slowdown_idle_factor_f(u32 v)
176{
177 return (v & 0x3fU) << 16U;
178}
179static inline u32 therm_clk_slowdown_idle_factor_m(void)
180{
181 return 0x3fU << 16U;
182}
183static inline u32 therm_clk_slowdown_idle_factor_v(u32 r)
184{
185 return (r >> 16U) & 0x3fU;
186}
187static inline u32 therm_clk_slowdown_idle_factor_disabled_f(void)
188{
189 return 0x0U;
190}
191static inline u32 therm_grad_stepping_table_r(u32 i)
192{
193 return 0x000202c8U + i*4U;
194}
195static inline u32 therm_grad_stepping_table_slowdown_factor0_f(u32 v)
196{
197 return (v & 0x3fU) << 0U;
198}
199static inline u32 therm_grad_stepping_table_slowdown_factor0_m(void)
200{
201 return 0x3fU << 0U;
202}
203static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by1p5_f(void)
204{
205 return 0x1U;
206}
207static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by2_f(void)
208{
209 return 0x2U;
210}
211static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by4_f(void)
212{
213 return 0x6U;
214}
215static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by8_f(void)
216{
217 return 0xeU;
218}
219static inline u32 therm_grad_stepping_table_slowdown_factor1_f(u32 v)
220{
221 return (v & 0x3fU) << 6U;
222}
223static inline u32 therm_grad_stepping_table_slowdown_factor1_m(void)
224{
225 return 0x3fU << 6U;
226}
227static inline u32 therm_grad_stepping_table_slowdown_factor2_f(u32 v)
228{
229 return (v & 0x3fU) << 12U;
230}
231static inline u32 therm_grad_stepping_table_slowdown_factor2_m(void)
232{
233 return 0x3fU << 12U;
234}
235static inline u32 therm_grad_stepping_table_slowdown_factor3_f(u32 v)
236{
237 return (v & 0x3fU) << 18U;
238}
239static inline u32 therm_grad_stepping_table_slowdown_factor3_m(void)
240{
241 return 0x3fU << 18U;
242}
243static inline u32 therm_grad_stepping_table_slowdown_factor4_f(u32 v)
244{
245 return (v & 0x3fU) << 24U;
246}
247static inline u32 therm_grad_stepping_table_slowdown_factor4_m(void)
248{
249 return 0x3fU << 24U;
250}
251static inline u32 therm_grad_stepping0_r(void)
252{
253 return 0x000202c0U;
254}
255static inline u32 therm_grad_stepping0_feature_s(void)
256{
257 return 1U;
258}
259static inline u32 therm_grad_stepping0_feature_f(u32 v)
260{
261 return (v & 0x1U) << 0U;
262}
263static inline u32 therm_grad_stepping0_feature_m(void)
264{
265 return 0x1U << 0U;
266}
267static inline u32 therm_grad_stepping0_feature_v(u32 r)
268{
269 return (r >> 0U) & 0x1U;
270}
271static inline u32 therm_grad_stepping0_feature_enable_f(void)
272{
273 return 0x1U;
274}
275static inline u32 therm_grad_stepping1_r(void)
276{
277 return 0x000202c4U;
278}
279static inline u32 therm_grad_stepping1_pdiv_duration_f(u32 v)
280{
281 return (v & 0x1ffffU) << 0U;
282}
283static inline u32 therm_clk_timing_r(u32 i)
284{
285 return 0x000203c0U + i*4U;
286}
287static inline u32 therm_clk_timing_grad_slowdown_f(u32 v)
288{
289 return (v & 0x1U) << 16U;
290}
291static inline u32 therm_clk_timing_grad_slowdown_m(void)
292{
293 return 0x1U << 16U;
294}
295static inline u32 therm_clk_timing_grad_slowdown_enabled_f(void)
296{
297 return 0x10000U;
298}
299#endif
diff --git a/include/nvgpu/hw/gv100/hw_timer_gv100.h b/include/nvgpu/hw/gv100/hw_timer_gv100.h
new file mode 100644
index 0000000..9d76e24
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_timer_gv100.h
@@ -0,0 +1,115 @@
1/*
2 * Copyright (c) 2017, 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_timer_gv100_h_
57#define _hw_timer_gv100_h_
58
59static inline u32 timer_pri_timeout_r(void)
60{
61 return 0x00009080U;
62}
63static inline u32 timer_pri_timeout_period_f(u32 v)
64{
65 return (v & 0xffffffU) << 0U;
66}
67static inline u32 timer_pri_timeout_period_m(void)
68{
69 return 0xffffffU << 0U;
70}
71static inline u32 timer_pri_timeout_period_v(u32 r)
72{
73 return (r >> 0U) & 0xffffffU;
74}
75static inline u32 timer_pri_timeout_en_f(u32 v)
76{
77 return (v & 0x1U) << 31U;
78}
79static inline u32 timer_pri_timeout_en_m(void)
80{
81 return 0x1U << 31U;
82}
83static inline u32 timer_pri_timeout_en_v(u32 r)
84{
85 return (r >> 31U) & 0x1U;
86}
87static inline u32 timer_pri_timeout_en_en_enabled_f(void)
88{
89 return 0x80000000U;
90}
91static inline u32 timer_pri_timeout_en_en_disabled_f(void)
92{
93 return 0x0U;
94}
95static inline u32 timer_pri_timeout_save_0_r(void)
96{
97 return 0x00009084U;
98}
99static inline u32 timer_pri_timeout_save_1_r(void)
100{
101 return 0x00009088U;
102}
103static inline u32 timer_pri_timeout_fecs_errcode_r(void)
104{
105 return 0x0000908cU;
106}
107static inline u32 timer_time_0_r(void)
108{
109 return 0x00009400U;
110}
111static inline u32 timer_time_1_r(void)
112{
113 return 0x00009410U;
114}
115#endif
diff --git a/include/nvgpu/hw/gv100/hw_top_gv100.h b/include/nvgpu/hw/gv100/hw_top_gv100.h
new file mode 100644
index 0000000..506a818
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_top_gv100.h
@@ -0,0 +1,343 @@
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_top_gv100_h_
57#define _hw_top_gv100_h_
58
59static inline u32 top_num_gpcs_r(void)
60{
61 return 0x00022430U;
62}
63static inline u32 top_num_gpcs_value_v(u32 r)
64{
65 return (r >> 0U) & 0x1fU;
66}
67static inline u32 top_tpc_per_gpc_r(void)
68{
69 return 0x00022434U;
70}
71static inline u32 top_tpc_per_gpc_value_v(u32 r)
72{
73 return (r >> 0U) & 0x1fU;
74}
75static inline u32 top_num_fbps_r(void)
76{
77 return 0x00022438U;
78}
79static inline u32 top_num_fbps_value_v(u32 r)
80{
81 return (r >> 0U) & 0x1fU;
82}
83static inline u32 top_num_fbpas_r(void)
84{
85 return 0x0002243cU;
86}
87static inline u32 top_num_fbpas_value_v(u32 r)
88{
89 return (r >> 0U) & 0x1fU;
90}
91static inline u32 top_ltc_per_fbp_r(void)
92{
93 return 0x00022450U;
94}
95static inline u32 top_ltc_per_fbp_value_v(u32 r)
96{
97 return (r >> 0U) & 0x1fU;
98}
99static inline u32 top_slices_per_ltc_r(void)
100{
101 return 0x0002245cU;
102}
103static inline u32 top_slices_per_ltc_value_v(u32 r)
104{
105 return (r >> 0U) & 0x1fU;
106}
107static inline u32 top_num_ltcs_r(void)
108{
109 return 0x00022454U;
110}
111static inline u32 top_num_ces_r(void)
112{
113 return 0x00022444U;
114}
115static inline u32 top_num_ces_value_v(u32 r)
116{
117 return (r >> 0U) & 0x1fU;
118}
119static inline u32 top_device_info_r(u32 i)
120{
121 return 0x00022700U + i*4U;
122}
123static inline u32 top_device_info__size_1_v(void)
124{
125 return 0x00000040U;
126}
127static inline u32 top_device_info_chain_v(u32 r)
128{
129 return (r >> 31U) & 0x1U;
130}
131static inline u32 top_device_info_chain_enable_v(void)
132{
133 return 0x00000001U;
134}
135static inline u32 top_device_info_engine_enum_v(u32 r)
136{
137 return (r >> 26U) & 0xfU;
138}
139static inline u32 top_device_info_runlist_enum_v(u32 r)
140{
141 return (r >> 21U) & 0xfU;
142}
143static inline u32 top_device_info_intr_enum_v(u32 r)
144{
145 return (r >> 15U) & 0x1fU;
146}
147static inline u32 top_device_info_reset_enum_v(u32 r)
148{
149 return (r >> 9U) & 0x1fU;
150}
151static inline u32 top_device_info_type_enum_v(u32 r)
152{
153 return (r >> 2U) & 0x1fffffffU;
154}
155static inline u32 top_device_info_type_enum_graphics_v(void)
156{
157 return 0x00000000U;
158}
159static inline u32 top_device_info_type_enum_graphics_f(void)
160{
161 return 0x0U;
162}
163static inline u32 top_device_info_type_enum_copy2_v(void)
164{
165 return 0x00000003U;
166}
167static inline u32 top_device_info_type_enum_copy2_f(void)
168{
169 return 0xcU;
170}
171static inline u32 top_device_info_type_enum_lce_v(void)
172{
173 return 0x00000013U;
174}
175static inline u32 top_device_info_type_enum_lce_f(void)
176{
177 return 0x4cU;
178}
179static inline u32 top_device_info_type_enum_ioctrl_v(void)
180{
181 return 0x00000012U;
182}
183static inline u32 top_device_info_type_enum_ioctrl_f(void)
184{
185 return 0x48U;
186}
187static inline u32 top_device_info_engine_v(u32 r)
188{
189 return (r >> 5U) & 0x1U;
190}
191static inline u32 top_device_info_runlist_v(u32 r)
192{
193 return (r >> 4U) & 0x1U;
194}
195static inline u32 top_device_info_intr_v(u32 r)
196{
197 return (r >> 3U) & 0x1U;
198}
199static inline u32 top_device_info_reset_v(u32 r)
200{
201 return (r >> 2U) & 0x1U;
202}
203static inline u32 top_device_info_entry_v(u32 r)
204{
205 return (r >> 0U) & 0x3U;
206}
207static inline u32 top_device_info_entry_not_valid_v(void)
208{
209 return 0x00000000U;
210}
211static inline u32 top_device_info_entry_enum_v(void)
212{
213 return 0x00000002U;
214}
215static inline u32 top_device_info_entry_data_v(void)
216{
217 return 0x00000001U;
218}
219static inline u32 top_device_info_entry_engine_type_v(void)
220{
221 return 0x00000003U;
222}
223static inline u32 top_device_info_data_type_v(u32 r)
224{
225 return (r >> 30U) & 0x1U;
226}
227static inline u32 top_device_info_data_type_enum2_v(void)
228{
229 return 0x00000000U;
230}
231static inline u32 top_device_info_data_inst_id_v(u32 r)
232{
233 return (r >> 26U) & 0xfU;
234}
235static inline u32 top_device_info_data_pri_base_v(u32 r)
236{
237 return (r >> 12U) & 0xfffU;
238}
239static inline u32 top_device_info_data_pri_base_align_v(void)
240{
241 return 0x0000000cU;
242}
243static inline u32 top_device_info_data_fault_id_enum_v(u32 r)
244{
245 return (r >> 3U) & 0x7fU;
246}
247static inline u32 top_device_info_data_fault_id_v(u32 r)
248{
249 return (r >> 2U) & 0x1U;
250}
251static inline u32 top_device_info_data_fault_id_valid_v(void)
252{
253 return 0x00000001U;
254}
255static inline u32 top_nvhsclk_ctrl_r(void)
256{
257 return 0x00022424U;
258}
259static inline u32 top_nvhsclk_ctrl_e_clk_nvl_f(u32 v)
260{
261 return (v & 0x7U) << 0U;
262}
263static inline u32 top_nvhsclk_ctrl_e_clk_nvl_m(void)
264{
265 return 0x7U << 0U;
266}
267static inline u32 top_nvhsclk_ctrl_e_clk_nvl_v(u32 r)
268{
269 return (r >> 0U) & 0x7U;
270}
271static inline u32 top_nvhsclk_ctrl_e_clk_pcie_f(u32 v)
272{
273 return (v & 0x1U) << 3U;
274}
275static inline u32 top_nvhsclk_ctrl_e_clk_pcie_m(void)
276{
277 return 0x1U << 3U;
278}
279static inline u32 top_nvhsclk_ctrl_e_clk_pcie_v(u32 r)
280{
281 return (r >> 3U) & 0x1U;
282}
283static inline u32 top_nvhsclk_ctrl_e_clk_core_f(u32 v)
284{
285 return (v & 0x1U) << 4U;
286}
287static inline u32 top_nvhsclk_ctrl_e_clk_core_m(void)
288{
289 return 0x1U << 4U;
290}
291static inline u32 top_nvhsclk_ctrl_e_clk_core_v(u32 r)
292{
293 return (r >> 4U) & 0x1U;
294}
295static inline u32 top_nvhsclk_ctrl_rfu_f(u32 v)
296{
297 return (v & 0xfU) << 5U;
298}
299static inline u32 top_nvhsclk_ctrl_rfu_m(void)
300{
301 return 0xfU << 5U;
302}
303static inline u32 top_nvhsclk_ctrl_rfu_v(u32 r)
304{
305 return (r >> 5U) & 0xfU;
306}
307static inline u32 top_nvhsclk_ctrl_swap_clk_nvl_f(u32 v)
308{
309 return (v & 0x7U) << 10U;
310}
311static inline u32 top_nvhsclk_ctrl_swap_clk_nvl_m(void)
312{
313 return 0x7U << 10U;
314}
315static inline u32 top_nvhsclk_ctrl_swap_clk_nvl_v(u32 r)
316{
317 return (r >> 10U) & 0x7U;
318}
319static inline u32 top_nvhsclk_ctrl_swap_clk_pcie_f(u32 v)
320{
321 return (v & 0x1U) << 9U;
322}
323static inline u32 top_nvhsclk_ctrl_swap_clk_pcie_m(void)
324{
325 return 0x1U << 9U;
326}
327static inline u32 top_nvhsclk_ctrl_swap_clk_pcie_v(u32 r)
328{
329 return (r >> 9U) & 0x1U;
330}
331static inline u32 top_nvhsclk_ctrl_swap_clk_core_f(u32 v)
332{
333 return (v & 0x1U) << 13U;
334}
335static inline u32 top_nvhsclk_ctrl_swap_clk_core_m(void)
336{
337 return 0x1U << 13U;
338}
339static inline u32 top_nvhsclk_ctrl_swap_clk_core_v(u32 r)
340{
341 return (r >> 13U) & 0x1U;
342}
343#endif
diff --git a/include/nvgpu/hw/gv100/hw_trim_gv100.h b/include/nvgpu/hw/gv100/hw_trim_gv100.h
new file mode 100644
index 0000000..f1b6da2
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_trim_gv100.h
@@ -0,0 +1,247 @@
1/*
2 * Copyright (c) 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_trim_gv100_h_
57#define _hw_trim_gv100_h_
58
59static inline u32 trim_sys_nvlink_uphy_cfg_r(void)
60{
61 return 0x00132410U;
62}
63static inline u32 trim_sys_nvlink_uphy_cfg_lockdect_wait_dly_length_f(u32 v)
64{
65 return (v & 0x3ffU) << 0U;
66}
67static inline u32 trim_sys_nvlink_uphy_cfg_lockdect_wait_dly_length_m(void)
68{
69 return 0x3ffU << 0U;
70}
71static inline u32 trim_sys_nvlink_uphy_cfg_lockdect_wait_dly_length_v(u32 r)
72{
73 return (r >> 0U) & 0x3ffU;
74}
75static inline u32 trim_sys_nvlink_uphy_cfg_phy2clks_use_lockdet_f(u32 v)
76{
77 return (v & 0x1U) << 12U;
78}
79static inline u32 trim_sys_nvlink_uphy_cfg_phy2clks_use_lockdet_m(void)
80{
81 return 0x1U << 12U;
82}
83static inline u32 trim_sys_nvlink_uphy_cfg_phy2clks_use_lockdet_v(u32 r)
84{
85 return (r >> 12U) & 0x1U;
86}
87static inline u32 trim_sys_nvlink_uphy_cfg_nvlink_wait_dly_f(u32 v)
88{
89 return (v & 0xffU) << 16U;
90}
91static inline u32 trim_sys_nvlink_uphy_cfg_nvlink_wait_dly_m(void)
92{
93 return 0xffU << 16U;
94}
95static inline u32 trim_sys_nvlink_uphy_cfg_nvlink_wait_dly_v(u32 r)
96{
97 return (r >> 16U) & 0xffU;
98}
99static inline u32 trim_sys_nvlink0_ctrl_r(void)
100{
101 return 0x00132420U;
102}
103static inline u32 trim_sys_nvlink0_ctrl_unit2clks_pll_turn_off_f(u32 v)
104{
105 return (v & 0x1U) << 0U;
106}
107static inline u32 trim_sys_nvlink0_ctrl_unit2clks_pll_turn_off_m(void)
108{
109 return 0x1U << 0U;
110}
111static inline u32 trim_sys_nvlink0_ctrl_unit2clks_pll_turn_off_v(u32 r)
112{
113 return (r >> 0U) & 0x1U;
114}
115static inline u32 trim_sys_nvlink0_status_r(void)
116{
117 return 0x00132424U;
118}
119static inline u32 trim_sys_nvlink0_status_pll_off_f(u32 v)
120{
121 return (v & 0x1U) << 5U;
122}
123static inline u32 trim_sys_nvlink0_status_pll_off_m(void)
124{
125 return 0x1U << 5U;
126}
127static inline u32 trim_sys_nvlink0_status_pll_off_v(u32 r)
128{
129 return (r >> 5U) & 0x1U;
130}
131static inline u32 trim_sys_nvl_common_clk_alt_switch_r(void)
132{
133 return 0x001371c4U;
134}
135static inline u32 trim_sys_nvl_common_clk_alt_switch_slowclk_f(u32 v)
136{
137 return (v & 0x3U) << 16U;
138}
139static inline u32 trim_sys_nvl_common_clk_alt_switch_slowclk_m(void)
140{
141 return 0x3U << 16U;
142}
143static inline u32 trim_sys_nvl_common_clk_alt_switch_slowclk_v(u32 r)
144{
145 return (r >> 16U) & 0x3U;
146}
147static inline u32 trim_sys_nvl_common_clk_alt_switch_slowclk_xtal4x_v(void)
148{
149 return 0x00000003U;
150}
151static inline u32 trim_sys_nvl_common_clk_alt_switch_slowclk_xtal4x_f(void)
152{
153 return 0x30000U;
154}
155static inline u32 trim_sys_nvl_common_clk_alt_switch_slowclk_xtal_in_v(void)
156{
157 return 0x00000000U;
158}
159static inline u32 trim_sys_nvl_common_clk_alt_switch_slowclk_xtal_in_f(void)
160{
161 return 0x0U;
162}
163static inline u32 trim_sys_nvl_common_clk_alt_switch_finalsel_f(u32 v)
164{
165 return (v & 0x3U) << 0U;
166}
167static inline u32 trim_sys_nvl_common_clk_alt_switch_finalsel_m(void)
168{
169 return 0x3U << 0U;
170}
171static inline u32 trim_sys_nvl_common_clk_alt_switch_finalsel_v(u32 r)
172{
173 return (r >> 0U) & 0x3U;
174}
175static inline u32 trim_sys_nvl_common_clk_alt_switch_finalsel_slowclk_v(void)
176{
177 return 0x00000000U;
178}
179static inline u32 trim_sys_nvl_common_clk_alt_switch_finalsel_slowclk_f(void)
180{
181 return 0x0U;
182}
183static inline u32 trim_sys_nvl_common_clk_alt_switch_finalsel_miscclk_v(void)
184{
185 return 0x00000002U;
186}
187static inline u32 trim_sys_nvl_common_clk_alt_switch_finalsel_miscclk_f(void)
188{
189 return 0x2U;
190}
191static inline u32 trim_sys_nvl_common_clk_alt_switch_finalsel_onesrcclk_v(void)
192{
193 return 0x00000003U;
194}
195static inline u32 trim_sys_nvl_common_clk_alt_switch_finalsel_onesrcclk_f(void)
196{
197 return 0x3U;
198}
199static inline u32 trim_gpc_bcast_fr_clk_cntr_ncgpcclk_cfg_r(void)
200{
201 return 0x00132a70U;
202}
203static inline u32 trim_gpc_bcast_fr_clk_cntr_ncgpcclk_cfg_source_gpcclk_f(void)
204{
205 return 0x10000000U;
206}
207static inline u32 trim_gpc_bcast_fr_clk_cntr_ncgpcclk_cnt0_r(void)
208{
209 return 0x00132a74U;
210}
211static inline u32 trim_gpc_bcast_fr_clk_cntr_ncgpcclk_cnt1_r(void)
212{
213 return 0x00132a78U;
214}
215static inline u32 trim_sys_nafll_fr_clk_cntr_xbarclk_cfg_r(void)
216{
217 return 0x00136470U;
218}
219static inline u32 trim_sys_nafll_fr_clk_cntr_xbarclk_cfg_source_xbarclk_f(void)
220{
221 return 0x10000000U;
222}
223static inline u32 trim_sys_nafll_fr_clk_cntr_xbarclk_cntr0_r(void)
224{
225 return 0x00136474U;
226}
227static inline u32 trim_sys_nafll_fr_clk_cntr_xbarclk_cntr1_r(void)
228{
229 return 0x00136478U;
230}
231static inline u32 trim_sys_fr_clk_cntr_sysclk_cfg_r(void)
232{
233 return 0x0013762cU;
234}
235static inline u32 trim_sys_fr_clk_cntr_sysclk_cfg_source_sysclk_f(void)
236{
237 return 0x20000000U;
238}
239static inline u32 trim_sys_fr_clk_cntr_sysclk_cntr0_r(void)
240{
241 return 0x00137630U;
242}
243static inline u32 trim_sys_fr_clk_cntr_sysclk_cntr1_r(void)
244{
245 return 0x00137634U;
246}
247#endif
diff --git a/include/nvgpu/hw/gv100/hw_usermode_gv100.h b/include/nvgpu/hw/gv100/hw_usermode_gv100.h
new file mode 100644
index 0000000..7b1d861
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_usermode_gv100.h
@@ -0,0 +1,95 @@
1/*
2 * Copyright (c) 2017, 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_usermode_gv100_h_
57#define _hw_usermode_gv100_h_
58
59static inline u32 usermode_cfg0_r(void)
60{
61 return 0x00810000U;
62}
63static inline u32 usermode_cfg0_class_id_f(u32 v)
64{
65 return (v & 0xffffU) << 0U;
66}
67static inline u32 usermode_cfg0_class_id_value_v(void)
68{
69 return 0x0000c361U;
70}
71static inline u32 usermode_time_0_r(void)
72{
73 return 0x00810080U;
74}
75static inline u32 usermode_time_0_nsec_f(u32 v)
76{
77 return (v & 0x7ffffffU) << 5U;
78}
79static inline u32 usermode_time_1_r(void)
80{
81 return 0x00810084U;
82}
83static inline u32 usermode_time_1_nsec_f(u32 v)
84{
85 return (v & 0x1fffffffU) << 0U;
86}
87static inline u32 usermode_notify_channel_pending_r(void)
88{
89 return 0x00810090U;
90}
91static inline u32 usermode_notify_channel_pending_id_f(u32 v)
92{
93 return (v & 0xffffffffU) << 0U;
94}
95#endif
diff --git a/include/nvgpu/hw/gv100/hw_xp_gv100.h b/include/nvgpu/hw/gv100/hw_xp_gv100.h
new file mode 100644
index 0000000..4296e04
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_xp_gv100.h
@@ -0,0 +1,143 @@
1/*
2 * Copyright (c) 2017, 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_xp_gv100_h_
57#define _hw_xp_gv100_h_
58
59static inline u32 xp_dl_mgr_r(u32 i)
60{
61 return 0x0008b8c0U + i*4U;
62}
63static inline u32 xp_dl_mgr_safe_timing_f(u32 v)
64{
65 return (v & 0x1U) << 2U;
66}
67static inline u32 xp_pl_link_config_r(u32 i)
68{
69 return 0x0008c040U + i*4U;
70}
71static inline u32 xp_pl_link_config_ltssm_status_f(u32 v)
72{
73 return (v & 0x1U) << 4U;
74}
75static inline u32 xp_pl_link_config_ltssm_status_idle_v(void)
76{
77 return 0x00000000U;
78}
79static inline u32 xp_pl_link_config_ltssm_directive_f(u32 v)
80{
81 return (v & 0xfU) << 0U;
82}
83static inline u32 xp_pl_link_config_ltssm_directive_m(void)
84{
85 return 0xfU << 0U;
86}
87static inline u32 xp_pl_link_config_ltssm_directive_normal_operations_v(void)
88{
89 return 0x00000000U;
90}
91static inline u32 xp_pl_link_config_ltssm_directive_change_speed_v(void)
92{
93 return 0x00000001U;
94}
95static inline u32 xp_pl_link_config_max_link_rate_f(u32 v)
96{
97 return (v & 0x3U) << 18U;
98}
99static inline u32 xp_pl_link_config_max_link_rate_m(void)
100{
101 return 0x3U << 18U;
102}
103static inline u32 xp_pl_link_config_max_link_rate_2500_mtps_v(void)
104{
105 return 0x00000002U;
106}
107static inline u32 xp_pl_link_config_max_link_rate_5000_mtps_v(void)
108{
109 return 0x00000001U;
110}
111static inline u32 xp_pl_link_config_max_link_rate_8000_mtps_v(void)
112{
113 return 0x00000000U;
114}
115static inline u32 xp_pl_link_config_target_tx_width_f(u32 v)
116{
117 return (v & 0x7U) << 20U;
118}
119static inline u32 xp_pl_link_config_target_tx_width_m(void)
120{
121 return 0x7U << 20U;
122}
123static inline u32 xp_pl_link_config_target_tx_width_x1_v(void)
124{
125 return 0x00000007U;
126}
127static inline u32 xp_pl_link_config_target_tx_width_x2_v(void)
128{
129 return 0x00000006U;
130}
131static inline u32 xp_pl_link_config_target_tx_width_x4_v(void)
132{
133 return 0x00000005U;
134}
135static inline u32 xp_pl_link_config_target_tx_width_x8_v(void)
136{
137 return 0x00000004U;
138}
139static inline u32 xp_pl_link_config_target_tx_width_x16_v(void)
140{
141 return 0x00000000U;
142}
143#endif
diff --git a/include/nvgpu/hw/gv100/hw_xve_gv100.h b/include/nvgpu/hw/gv100/hw_xve_gv100.h
new file mode 100644
index 0000000..fc7aa72
--- /dev/null
+++ b/include/nvgpu/hw/gv100/hw_xve_gv100.h
@@ -0,0 +1,207 @@
1/*
2 * Copyright (c) 2017, 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_xve_gv100_h_
57#define _hw_xve_gv100_h_
58
59static inline u32 xve_rom_ctrl_r(void)
60{
61 return 0x00000050U;
62}
63static inline u32 xve_rom_ctrl_rom_shadow_f(u32 v)
64{
65 return (v & 0x1U) << 0U;
66}
67static inline u32 xve_rom_ctrl_rom_shadow_disabled_f(void)
68{
69 return 0x0U;
70}
71static inline u32 xve_rom_ctrl_rom_shadow_enabled_f(void)
72{
73 return 0x1U;
74}
75static inline u32 xve_link_control_status_r(void)
76{
77 return 0x00000088U;
78}
79static inline u32 xve_link_control_status_link_speed_m(void)
80{
81 return 0xfU << 16U;
82}
83static inline u32 xve_link_control_status_link_speed_v(u32 r)
84{
85 return (r >> 16U) & 0xfU;
86}
87static inline u32 xve_link_control_status_link_speed_link_speed_2p5_v(void)
88{
89 return 0x00000001U;
90}
91static inline u32 xve_link_control_status_link_speed_link_speed_5p0_v(void)
92{
93 return 0x00000002U;
94}
95static inline u32 xve_link_control_status_link_speed_link_speed_8p0_v(void)
96{
97 return 0x00000003U;
98}
99static inline u32 xve_link_control_status_link_width_m(void)
100{
101 return 0x3fU << 20U;
102}
103static inline u32 xve_link_control_status_link_width_v(u32 r)
104{
105 return (r >> 20U) & 0x3fU;
106}
107static inline u32 xve_link_control_status_link_width_x1_v(void)
108{
109 return 0x00000001U;
110}
111static inline u32 xve_link_control_status_link_width_x2_v(void)
112{
113 return 0x00000002U;
114}
115static inline u32 xve_link_control_status_link_width_x4_v(void)
116{
117 return 0x00000004U;
118}
119static inline u32 xve_link_control_status_link_width_x8_v(void)
120{
121 return 0x00000008U;
122}
123static inline u32 xve_link_control_status_link_width_x16_v(void)
124{
125 return 0x00000010U;
126}
127static inline u32 xve_priv_xv_r(void)
128{
129 return 0x00000150U;
130}
131static inline u32 xve_priv_xv_cya_l0s_enable_f(u32 v)
132{
133 return (v & 0x1U) << 7U;
134}
135static inline u32 xve_priv_xv_cya_l0s_enable_m(void)
136{
137 return 0x1U << 7U;
138}
139static inline u32 xve_priv_xv_cya_l0s_enable_v(u32 r)
140{
141 return (r >> 7U) & 0x1U;
142}
143static inline u32 xve_priv_xv_cya_l1_enable_f(u32 v)
144{
145 return (v & 0x1U) << 8U;
146}
147static inline u32 xve_priv_xv_cya_l1_enable_m(void)
148{
149 return 0x1U << 8U;
150}
151static inline u32 xve_priv_xv_cya_l1_enable_v(u32 r)
152{
153 return (r >> 8U) & 0x1U;
154}
155static inline u32 xve_cya_2_r(void)
156{
157 return 0x00000704U;
158}
159static inline u32 xve_reset_r(void)
160{
161 return 0x00000718U;
162}
163static inline u32 xve_reset_reset_m(void)
164{
165 return 0x1U << 0U;
166}
167static inline u32 xve_reset_gpu_on_sw_reset_m(void)
168{
169 return 0x1U << 1U;
170}
171static inline u32 xve_reset_counter_en_m(void)
172{
173 return 0x1U << 2U;
174}
175static inline u32 xve_reset_counter_val_f(u32 v)
176{
177 return (v & 0x7ffU) << 4U;
178}
179static inline u32 xve_reset_counter_val_m(void)
180{
181 return 0x7ffU << 4U;
182}
183static inline u32 xve_reset_counter_val_v(u32 r)
184{
185 return (r >> 4U) & 0x7ffU;
186}
187static inline u32 xve_reset_clock_on_sw_reset_m(void)
188{
189 return 0x1U << 15U;
190}
191static inline u32 xve_reset_clock_counter_en_m(void)
192{
193 return 0x1U << 16U;
194}
195static inline u32 xve_reset_clock_counter_val_f(u32 v)
196{
197 return (v & 0x7ffU) << 17U;
198}
199static inline u32 xve_reset_clock_counter_val_m(void)
200{
201 return 0x7ffU << 17U;
202}
203static inline u32 xve_reset_clock_counter_val_v(u32 r)
204{
205 return (r >> 17U) & 0x7ffU;
206}
207#endif
diff --git a/include/nvgpu/hw/gv11b/hw_bus_gv11b.h b/include/nvgpu/hw/gv11b/hw_bus_gv11b.h
new file mode 100644
index 0000000..d1d9b34
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_bus_gv11b.h
@@ -0,0 +1,223 @@
1/*
2 * Copyright (c) 2016-2017, 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_bus_gv11b_h_
57#define _hw_bus_gv11b_h_
58
59static inline u32 bus_bar0_window_r(void)
60{
61 return 0x00001700U;
62}
63static inline u32 bus_bar0_window_base_f(u32 v)
64{
65 return (v & 0xffffffU) << 0U;
66}
67static inline u32 bus_bar0_window_target_vid_mem_f(void)
68{
69 return 0x0U;
70}
71static inline u32 bus_bar0_window_target_sys_mem_coherent_f(void)
72{
73 return 0x2000000U;
74}
75static inline u32 bus_bar0_window_target_sys_mem_noncoherent_f(void)
76{
77 return 0x3000000U;
78}
79static inline u32 bus_bar0_window_target_bar0_window_base_shift_v(void)
80{
81 return 0x00000010U;
82}
83static inline u32 bus_bar1_block_r(void)
84{
85 return 0x00001704U;
86}
87static inline u32 bus_bar1_block_ptr_f(u32 v)
88{
89 return (v & 0xfffffffU) << 0U;
90}
91static inline u32 bus_bar1_block_target_vid_mem_f(void)
92{
93 return 0x0U;
94}
95static inline u32 bus_bar1_block_target_sys_mem_coh_f(void)
96{
97 return 0x20000000U;
98}
99static inline u32 bus_bar1_block_target_sys_mem_ncoh_f(void)
100{
101 return 0x30000000U;
102}
103static inline u32 bus_bar1_block_mode_virtual_f(void)
104{
105 return 0x80000000U;
106}
107static inline u32 bus_bar2_block_r(void)
108{
109 return 0x00001714U;
110}
111static inline u32 bus_bar2_block_ptr_f(u32 v)
112{
113 return (v & 0xfffffffU) << 0U;
114}
115static inline u32 bus_bar2_block_target_vid_mem_f(void)
116{
117 return 0x0U;
118}
119static inline u32 bus_bar2_block_target_sys_mem_coh_f(void)
120{
121 return 0x20000000U;
122}
123static inline u32 bus_bar2_block_target_sys_mem_ncoh_f(void)
124{
125 return 0x30000000U;
126}
127static inline u32 bus_bar2_block_mode_virtual_f(void)
128{
129 return 0x80000000U;
130}
131static inline u32 bus_bar1_block_ptr_shift_v(void)
132{
133 return 0x0000000cU;
134}
135static inline u32 bus_bar2_block_ptr_shift_v(void)
136{
137 return 0x0000000cU;
138}
139static inline u32 bus_bind_status_r(void)
140{
141 return 0x00001710U;
142}
143static inline u32 bus_bind_status_bar1_pending_v(u32 r)
144{
145 return (r >> 0U) & 0x1U;
146}
147static inline u32 bus_bind_status_bar1_pending_empty_f(void)
148{
149 return 0x0U;
150}
151static inline u32 bus_bind_status_bar1_pending_busy_f(void)
152{
153 return 0x1U;
154}
155static inline u32 bus_bind_status_bar1_outstanding_v(u32 r)
156{
157 return (r >> 1U) & 0x1U;
158}
159static inline u32 bus_bind_status_bar1_outstanding_false_f(void)
160{
161 return 0x0U;
162}
163static inline u32 bus_bind_status_bar1_outstanding_true_f(void)
164{
165 return 0x2U;
166}
167static inline u32 bus_bind_status_bar2_pending_v(u32 r)
168{
169 return (r >> 2U) & 0x1U;
170}
171static inline u32 bus_bind_status_bar2_pending_empty_f(void)
172{
173 return 0x0U;
174}
175static inline u32 bus_bind_status_bar2_pending_busy_f(void)
176{
177 return 0x4U;
178}
179static inline u32 bus_bind_status_bar2_outstanding_v(u32 r)
180{
181 return (r >> 3U) & 0x1U;
182}
183static inline u32 bus_bind_status_bar2_outstanding_false_f(void)
184{
185 return 0x0U;
186}
187static inline u32 bus_bind_status_bar2_outstanding_true_f(void)
188{
189 return 0x8U;
190}
191static inline u32 bus_intr_0_r(void)
192{
193 return 0x00001100U;
194}
195static inline u32 bus_intr_0_pri_squash_m(void)
196{
197 return 0x1U << 1U;
198}
199static inline u32 bus_intr_0_pri_fecserr_m(void)
200{
201 return 0x1U << 2U;
202}
203static inline u32 bus_intr_0_pri_timeout_m(void)
204{
205 return 0x1U << 3U;
206}
207static inline u32 bus_intr_en_0_r(void)
208{
209 return 0x00001140U;
210}
211static inline u32 bus_intr_en_0_pri_squash_m(void)
212{
213 return 0x1U << 1U;
214}
215static inline u32 bus_intr_en_0_pri_fecserr_m(void)
216{
217 return 0x1U << 2U;
218}
219static inline u32 bus_intr_en_0_pri_timeout_m(void)
220{
221 return 0x1U << 3U;
222}
223#endif
diff --git a/include/nvgpu/hw/gv11b/hw_ccsr_gv11b.h b/include/nvgpu/hw/gv11b/hw_ccsr_gv11b.h
new file mode 100644
index 0000000..e21a473
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_ccsr_gv11b.h
@@ -0,0 +1,187 @@
1/*
2 * Copyright (c) 2016-2017, 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_ccsr_gv11b_h_
57#define _hw_ccsr_gv11b_h_
58
59static inline u32 ccsr_channel_inst_r(u32 i)
60{
61 return 0x00800000U + i*8U;
62}
63static inline u32 ccsr_channel_inst__size_1_v(void)
64{
65 return 0x00000200U;
66}
67static inline u32 ccsr_channel_inst_ptr_f(u32 v)
68{
69 return (v & 0xfffffffU) << 0U;
70}
71static inline u32 ccsr_channel_inst_target_vid_mem_f(void)
72{
73 return 0x0U;
74}
75static inline u32 ccsr_channel_inst_target_sys_mem_coh_f(void)
76{
77 return 0x20000000U;
78}
79static inline u32 ccsr_channel_inst_target_sys_mem_ncoh_f(void)
80{
81 return 0x30000000U;
82}
83static inline u32 ccsr_channel_inst_bind_false_f(void)
84{
85 return 0x0U;
86}
87static inline u32 ccsr_channel_inst_bind_true_f(void)
88{
89 return 0x80000000U;
90}
91static inline u32 ccsr_channel_r(u32 i)
92{
93 return 0x00800004U + i*8U;
94}
95static inline u32 ccsr_channel__size_1_v(void)
96{
97 return 0x00000200U;
98}
99static inline u32 ccsr_channel_enable_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 ccsr_channel_enable_set_f(u32 v)
104{
105 return (v & 0x1U) << 10U;
106}
107static inline u32 ccsr_channel_enable_set_true_f(void)
108{
109 return 0x400U;
110}
111static inline u32 ccsr_channel_enable_clr_true_f(void)
112{
113 return 0x800U;
114}
115static inline u32 ccsr_channel_status_v(u32 r)
116{
117 return (r >> 24U) & 0xfU;
118}
119static inline u32 ccsr_channel_status_pending_ctx_reload_v(void)
120{
121 return 0x00000002U;
122}
123static inline u32 ccsr_channel_status_pending_acq_ctx_reload_v(void)
124{
125 return 0x00000004U;
126}
127static inline u32 ccsr_channel_status_on_pbdma_ctx_reload_v(void)
128{
129 return 0x0000000aU;
130}
131static inline u32 ccsr_channel_status_on_pbdma_and_eng_ctx_reload_v(void)
132{
133 return 0x0000000bU;
134}
135static inline u32 ccsr_channel_status_on_eng_ctx_reload_v(void)
136{
137 return 0x0000000cU;
138}
139static inline u32 ccsr_channel_status_on_eng_pending_ctx_reload_v(void)
140{
141 return 0x0000000dU;
142}
143static inline u32 ccsr_channel_status_on_eng_pending_acq_ctx_reload_v(void)
144{
145 return 0x0000000eU;
146}
147static inline u32 ccsr_channel_next_v(u32 r)
148{
149 return (r >> 1U) & 0x1U;
150}
151static inline u32 ccsr_channel_next_true_v(void)
152{
153 return 0x00000001U;
154}
155static inline u32 ccsr_channel_force_ctx_reload_true_f(void)
156{
157 return 0x100U;
158}
159static inline u32 ccsr_channel_pbdma_faulted_f(u32 v)
160{
161 return (v & 0x1U) << 22U;
162}
163static inline u32 ccsr_channel_pbdma_faulted_reset_f(void)
164{
165 return 0x400000U;
166}
167static inline u32 ccsr_channel_eng_faulted_f(u32 v)
168{
169 return (v & 0x1U) << 23U;
170}
171static inline u32 ccsr_channel_eng_faulted_v(u32 r)
172{
173 return (r >> 23U) & 0x1U;
174}
175static inline u32 ccsr_channel_eng_faulted_reset_f(void)
176{
177 return 0x800000U;
178}
179static inline u32 ccsr_channel_eng_faulted_true_v(void)
180{
181 return 0x00000001U;
182}
183static inline u32 ccsr_channel_busy_v(u32 r)
184{
185 return (r >> 28U) & 0x1U;
186}
187#endif
diff --git a/include/nvgpu/hw/gv11b/hw_ce_gv11b.h b/include/nvgpu/hw/gv11b/hw_ce_gv11b.h
new file mode 100644
index 0000000..57a76e6
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_ce_gv11b.h
@@ -0,0 +1,115 @@
1/*
2 * Copyright (c) 2016-2019, 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_ce_gv11b_h_
57#define _hw_ce_gv11b_h_
58
59static inline u32 ce_intr_status_r(u32 i)
60{
61 return 0x00104410U + i*128U;
62}
63static inline u32 ce_intr_status_blockpipe_pending_f(void)
64{
65 return 0x1U;
66}
67static inline u32 ce_intr_status_blockpipe_reset_f(void)
68{
69 return 0x1U;
70}
71static inline u32 ce_intr_status_nonblockpipe_pending_f(void)
72{
73 return 0x2U;
74}
75static inline u32 ce_intr_status_nonblockpipe_reset_f(void)
76{
77 return 0x2U;
78}
79static inline u32 ce_intr_status_launcherr_pending_f(void)
80{
81 return 0x4U;
82}
83static inline u32 ce_intr_status_launcherr_reset_f(void)
84{
85 return 0x4U;
86}
87static inline u32 ce_intr_status_invalid_config_pending_f(void)
88{
89 return 0x8U;
90}
91static inline u32 ce_intr_status_invalid_config_reset_f(void)
92{
93 return 0x8U;
94}
95static inline u32 ce_intr_status_mthd_buffer_fault_pending_f(void)
96{
97 return 0x10U;
98}
99static inline u32 ce_intr_status_mthd_buffer_fault_reset_f(void)
100{
101 return 0x10U;
102}
103static inline u32 ce_pce_map_r(void)
104{
105 return 0x00104028U;
106}
107static inline u32 ce_lce_opt_r(u32 i)
108{
109 return 0x00104414U + i*128U;
110}
111static inline u32 ce_lce_opt_force_barriers_npl__prod_f(void)
112{
113 return 0x8U;
114}
115#endif
diff --git a/include/nvgpu/hw/gv11b/hw_ctxsw_prog_gv11b.h b/include/nvgpu/hw/gv11b/hw_ctxsw_prog_gv11b.h
new file mode 100644
index 0000000..8b095b1
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_ctxsw_prog_gv11b.h
@@ -0,0 +1,463 @@
1/*
2 * Copyright (c) 2016-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_gv11b_h_
57#define _hw_ctxsw_prog_gv11b_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_ctxsw_f(void)
144{
145 return 0x1U;
146}
147static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void)
148{
149 return 0x0U;
150}
151static inline u32 ctxsw_prog_main_image_pm_mode_stream_out_ctxsw_f(void)
152{
153 return 0x2U;
154}
155static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void)
156{
157 return 0x7U << 3U;
158}
159static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void)
160{
161 return 0x8U;
162}
163static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void)
164{
165 return 0x0U;
166}
167static inline u32 ctxsw_prog_main_image_pm_ptr_o(void)
168{
169 return 0x0000002cU;
170}
171static inline u32 ctxsw_prog_main_image_num_save_ops_o(void)
172{
173 return 0x000000f4U;
174}
175static inline u32 ctxsw_prog_main_image_num_wfi_save_ops_o(void)
176{
177 return 0x000000d0U;
178}
179static inline u32 ctxsw_prog_main_image_num_cta_save_ops_o(void)
180{
181 return 0x000000d4U;
182}
183static inline u32 ctxsw_prog_main_image_num_gfxp_save_ops_o(void)
184{
185 return 0x000000d8U;
186}
187static inline u32 ctxsw_prog_main_image_num_cilp_save_ops_o(void)
188{
189 return 0x000000dcU;
190}
191static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void)
192{
193 return 0x000000f8U;
194}
195static inline u32 ctxsw_prog_main_image_zcull_ptr_hi_o(void)
196{
197 return 0x00000060U;
198}
199static inline u32 ctxsw_prog_main_image_zcull_ptr_hi_v_f(u32 v)
200{
201 return (v & 0x1ffffU) << 0U;
202}
203static inline u32 ctxsw_prog_main_image_pm_ptr_hi_o(void)
204{
205 return 0x00000094U;
206}
207static inline u32 ctxsw_prog_main_image_full_preemption_ptr_hi_o(void)
208{
209 return 0x00000064U;
210}
211static inline u32 ctxsw_prog_main_image_full_preemption_ptr_hi_v_f(u32 v)
212{
213 return (v & 0x1ffffU) << 0U;
214}
215static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void)
216{
217 return 0x00000068U;
218}
219static inline u32 ctxsw_prog_main_image_full_preemption_ptr_v_f(u32 v)
220{
221 return (v & 0xffffffffU) << 0U;
222}
223static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_hi_o(void)
224{
225 return 0x00000070U;
226}
227static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_hi_v_f(u32 v)
228{
229 return (v & 0x1ffffU) << 0U;
230}
231static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_o(void)
232{
233 return 0x00000074U;
234}
235static inline u32 ctxsw_prog_main_image_full_preemption_ptr_veid0_v_f(u32 v)
236{
237 return (v & 0xffffffffU) << 0U;
238}
239static inline u32 ctxsw_prog_main_image_context_buffer_ptr_hi_o(void)
240{
241 return 0x00000078U;
242}
243static inline u32 ctxsw_prog_main_image_context_buffer_ptr_hi_v_f(u32 v)
244{
245 return (v & 0x1ffffU) << 0U;
246}
247static inline u32 ctxsw_prog_main_image_context_buffer_ptr_o(void)
248{
249 return 0x0000007cU;
250}
251static inline u32 ctxsw_prog_main_image_context_buffer_ptr_v_f(u32 v)
252{
253 return (v & 0xffffffffU) << 0U;
254}
255static inline u32 ctxsw_prog_main_image_magic_value_o(void)
256{
257 return 0x000000fcU;
258}
259static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void)
260{
261 return 0x600dc0deU;
262}
263static inline u32 ctxsw_prog_local_priv_register_ctl_o(void)
264{
265 return 0x0000000cU;
266}
267static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r)
268{
269 return (r >> 0U) & 0xffffU;
270}
271static inline u32 ctxsw_prog_main_image_global_cb_ptr_o(void)
272{
273 return 0x000000b8U;
274}
275static inline u32 ctxsw_prog_main_image_global_cb_ptr_v_f(u32 v)
276{
277 return (v & 0xffffffffU) << 0U;
278}
279static inline u32 ctxsw_prog_main_image_global_cb_ptr_hi_o(void)
280{
281 return 0x000000bcU;
282}
283static inline u32 ctxsw_prog_main_image_global_cb_ptr_hi_v_f(u32 v)
284{
285 return (v & 0x1ffffU) << 0U;
286}
287static inline u32 ctxsw_prog_main_image_global_pagepool_ptr_o(void)
288{
289 return 0x000000c0U;
290}
291static inline u32 ctxsw_prog_main_image_global_pagepool_ptr_v_f(u32 v)
292{
293 return (v & 0xffffffffU) << 0U;
294}
295static inline u32 ctxsw_prog_main_image_global_pagepool_ptr_hi_o(void)
296{
297 return 0x000000c4U;
298}
299static inline u32 ctxsw_prog_main_image_global_pagepool_ptr_hi_v_f(u32 v)
300{
301 return (v & 0x1ffffU) << 0U;
302}
303static inline u32 ctxsw_prog_main_image_control_block_ptr_o(void)
304{
305 return 0x000000c8U;
306}
307static inline u32 ctxsw_prog_main_image_control_block_ptr_v_f(u32 v)
308{
309 return (v & 0xffffffffU) << 0U;
310}
311static inline u32 ctxsw_prog_main_image_control_block_ptr_hi_o(void)
312{
313 return 0x000000ccU;
314}
315static inline u32 ctxsw_prog_main_image_control_block_ptr_hi_v_f(u32 v)
316{
317 return (v & 0x1ffffU) << 0U;
318}
319static inline u32 ctxsw_prog_main_image_context_ramchain_buffer_addr_lo_o(void)
320{
321 return 0x000000e0U;
322}
323static inline u32 ctxsw_prog_main_image_context_ramchain_buffer_addr_lo_v_f(u32 v)
324{
325 return (v & 0xffffffffU) << 0U;
326}
327static inline u32 ctxsw_prog_main_image_context_ramchain_buffer_addr_hi_o(void)
328{
329 return 0x000000e4U;
330}
331static inline u32 ctxsw_prog_main_image_context_ramchain_buffer_addr_hi_v_f(u32 v)
332{
333 return (v & 0x1ffffU) << 0U;
334}
335static inline u32 ctxsw_prog_local_image_ppc_info_o(void)
336{
337 return 0x000000f4U;
338}
339static inline u32 ctxsw_prog_local_image_ppc_info_num_ppcs_v(u32 r)
340{
341 return (r >> 0U) & 0xffffU;
342}
343static inline u32 ctxsw_prog_local_image_ppc_info_ppc_mask_v(u32 r)
344{
345 return (r >> 16U) & 0xffffU;
346}
347static inline u32 ctxsw_prog_local_image_num_tpcs_o(void)
348{
349 return 0x000000f8U;
350}
351static inline u32 ctxsw_prog_local_magic_value_o(void)
352{
353 return 0x000000fcU;
354}
355static inline u32 ctxsw_prog_local_magic_value_v_value_v(void)
356{
357 return 0xad0becabU;
358}
359static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void)
360{
361 return 0x000000ecU;
362}
363static inline u32 ctxsw_prog_main_extended_buffer_ctl_offset_v(u32 r)
364{
365 return (r >> 0U) & 0xffffU;
366}
367static inline u32 ctxsw_prog_main_extended_buffer_ctl_size_v(u32 r)
368{
369 return (r >> 16U) & 0xffU;
370}
371static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void)
372{
373 return 0x00000100U;
374}
375static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void)
376{
377 return 0x00000004U;
378}
379static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void)
380{
381 return 0x00000000U;
382}
383static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void)
384{
385 return 0x00000002U;
386}
387static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void)
388{
389 return 0x000000a0U;
390}
391static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void)
392{
393 return 2U;
394}
395static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v)
396{
397 return (v & 0x3U) << 0U;
398}
399static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void)
400{
401 return 0x3U << 0U;
402}
403static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r)
404{
405 return (r >> 0U) & 0x3U;
406}
407static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void)
408{
409 return 0x0U;
410}
411static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void)
412{
413 return 0x2U;
414}
415static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void)
416{
417 return 0x000000a4U;
418}
419static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void)
420{
421 return 0x000000a8U;
422}
423static inline u32 ctxsw_prog_main_image_misc_options_o(void)
424{
425 return 0x0000003cU;
426}
427static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void)
428{
429 return 0x1U << 3U;
430}
431static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void)
432{
433 return 0x0U;
434}
435static inline u32 ctxsw_prog_main_image_graphics_preemption_options_o(void)
436{
437 return 0x00000080U;
438}
439static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_f(u32 v)
440{
441 return (v & 0x3U) << 0U;
442}
443static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_gfxp_f(void)
444{
445 return 0x1U;
446}
447static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void)
448{
449 return 0x00000084U;
450}
451static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_f(u32 v)
452{
453 return (v & 0x3U) << 0U;
454}
455static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cta_f(void)
456{
457 return 0x1U;
458}
459static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cilp_f(void)
460{
461 return 0x2U;
462}
463#endif
diff --git a/include/nvgpu/hw/gv11b/hw_falcon_gv11b.h b/include/nvgpu/hw/gv11b/hw_falcon_gv11b.h
new file mode 100644
index 0000000..31e883e
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_falcon_gv11b.h
@@ -0,0 +1,603 @@
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_falcon_gv11b_h_
57#define _hw_falcon_gv11b_h_
58
59static inline u32 falcon_falcon_irqsset_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 falcon_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 falcon_falcon_irqsclr_r(void)
68{
69 return 0x00000004U;
70}
71static inline u32 falcon_falcon_irqstat_r(void)
72{
73 return 0x00000008U;
74}
75static inline u32 falcon_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 falcon_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 falcon_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 falcon_falcon_irqmode_r(void)
88{
89 return 0x0000000cU;
90}
91static inline u32 falcon_falcon_irqmset_r(void)
92{
93 return 0x00000010U;
94}
95static inline u32 falcon_falcon_irqmset_gptmr_f(u32 v)
96{
97 return (v & 0x1U) << 0U;
98}
99static inline u32 falcon_falcon_irqmset_wdtmr_f(u32 v)
100{
101 return (v & 0x1U) << 1U;
102}
103static inline u32 falcon_falcon_irqmset_mthd_f(u32 v)
104{
105 return (v & 0x1U) << 2U;
106}
107static inline u32 falcon_falcon_irqmset_ctxsw_f(u32 v)
108{
109 return (v & 0x1U) << 3U;
110}
111static inline u32 falcon_falcon_irqmset_halt_f(u32 v)
112{
113 return (v & 0x1U) << 4U;
114}
115static inline u32 falcon_falcon_irqmset_exterr_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 falcon_falcon_irqmset_swgen0_f(u32 v)
120{
121 return (v & 0x1U) << 6U;
122}
123static inline u32 falcon_falcon_irqmset_swgen1_f(u32 v)
124{
125 return (v & 0x1U) << 7U;
126}
127static inline u32 falcon_falcon_irqmclr_r(void)
128{
129 return 0x00000014U;
130}
131static inline u32 falcon_falcon_irqmclr_gptmr_f(u32 v)
132{
133 return (v & 0x1U) << 0U;
134}
135static inline u32 falcon_falcon_irqmclr_wdtmr_f(u32 v)
136{
137 return (v & 0x1U) << 1U;
138}
139static inline u32 falcon_falcon_irqmclr_mthd_f(u32 v)
140{
141 return (v & 0x1U) << 2U;
142}
143static inline u32 falcon_falcon_irqmclr_ctxsw_f(u32 v)
144{
145 return (v & 0x1U) << 3U;
146}
147static inline u32 falcon_falcon_irqmclr_halt_f(u32 v)
148{
149 return (v & 0x1U) << 4U;
150}
151static inline u32 falcon_falcon_irqmclr_exterr_f(u32 v)
152{
153 return (v & 0x1U) << 5U;
154}
155static inline u32 falcon_falcon_irqmclr_swgen0_f(u32 v)
156{
157 return (v & 0x1U) << 6U;
158}
159static inline u32 falcon_falcon_irqmclr_swgen1_f(u32 v)
160{
161 return (v & 0x1U) << 7U;
162}
163static inline u32 falcon_falcon_irqmclr_ext_f(u32 v)
164{
165 return (v & 0xffU) << 8U;
166}
167static inline u32 falcon_falcon_irqmask_r(void)
168{
169 return 0x00000018U;
170}
171static inline u32 falcon_falcon_irqdest_r(void)
172{
173 return 0x0000001cU;
174}
175static inline u32 falcon_falcon_irqdest_host_gptmr_f(u32 v)
176{
177 return (v & 0x1U) << 0U;
178}
179static inline u32 falcon_falcon_irqdest_host_wdtmr_f(u32 v)
180{
181 return (v & 0x1U) << 1U;
182}
183static inline u32 falcon_falcon_irqdest_host_mthd_f(u32 v)
184{
185 return (v & 0x1U) << 2U;
186}
187static inline u32 falcon_falcon_irqdest_host_ctxsw_f(u32 v)
188{
189 return (v & 0x1U) << 3U;
190}
191static inline u32 falcon_falcon_irqdest_host_halt_f(u32 v)
192{
193 return (v & 0x1U) << 4U;
194}
195static inline u32 falcon_falcon_irqdest_host_exterr_f(u32 v)
196{
197 return (v & 0x1U) << 5U;
198}
199static inline u32 falcon_falcon_irqdest_host_swgen0_f(u32 v)
200{
201 return (v & 0x1U) << 6U;
202}
203static inline u32 falcon_falcon_irqdest_host_swgen1_f(u32 v)
204{
205 return (v & 0x1U) << 7U;
206}
207static inline u32 falcon_falcon_irqdest_host_ext_f(u32 v)
208{
209 return (v & 0xffU) << 8U;
210}
211static inline u32 falcon_falcon_irqdest_target_gptmr_f(u32 v)
212{
213 return (v & 0x1U) << 16U;
214}
215static inline u32 falcon_falcon_irqdest_target_wdtmr_f(u32 v)
216{
217 return (v & 0x1U) << 17U;
218}
219static inline u32 falcon_falcon_irqdest_target_mthd_f(u32 v)
220{
221 return (v & 0x1U) << 18U;
222}
223static inline u32 falcon_falcon_irqdest_target_ctxsw_f(u32 v)
224{
225 return (v & 0x1U) << 19U;
226}
227static inline u32 falcon_falcon_irqdest_target_halt_f(u32 v)
228{
229 return (v & 0x1U) << 20U;
230}
231static inline u32 falcon_falcon_irqdest_target_exterr_f(u32 v)
232{
233 return (v & 0x1U) << 21U;
234}
235static inline u32 falcon_falcon_irqdest_target_swgen0_f(u32 v)
236{
237 return (v & 0x1U) << 22U;
238}
239static inline u32 falcon_falcon_irqdest_target_swgen1_f(u32 v)
240{
241 return (v & 0x1U) << 23U;
242}
243static inline u32 falcon_falcon_irqdest_target_ext_f(u32 v)
244{
245 return (v & 0xffU) << 24U;
246}
247static inline u32 falcon_falcon_curctx_r(void)
248{
249 return 0x00000050U;
250}
251static inline u32 falcon_falcon_nxtctx_r(void)
252{
253 return 0x00000054U;
254}
255static inline u32 falcon_falcon_mailbox0_r(void)
256{
257 return 0x00000040U;
258}
259static inline u32 falcon_falcon_mailbox1_r(void)
260{
261 return 0x00000044U;
262}
263static inline u32 falcon_falcon_itfen_r(void)
264{
265 return 0x00000048U;
266}
267static inline u32 falcon_falcon_itfen_ctxen_enable_f(void)
268{
269 return 0x1U;
270}
271static inline u32 falcon_falcon_idlestate_r(void)
272{
273 return 0x0000004cU;
274}
275static inline u32 falcon_falcon_idlestate_falcon_busy_v(u32 r)
276{
277 return (r >> 0U) & 0x1U;
278}
279static inline u32 falcon_falcon_idlestate_ext_busy_v(u32 r)
280{
281 return (r >> 1U) & 0x7fffU;
282}
283static inline u32 falcon_falcon_os_r(void)
284{
285 return 0x00000080U;
286}
287static inline u32 falcon_falcon_engctl_r(void)
288{
289 return 0x000000a4U;
290}
291static inline u32 falcon_falcon_cpuctl_r(void)
292{
293 return 0x00000100U;
294}
295static inline u32 falcon_falcon_cpuctl_startcpu_f(u32 v)
296{
297 return (v & 0x1U) << 1U;
298}
299static inline u32 falcon_falcon_cpuctl_sreset_f(u32 v)
300{
301 return (v & 0x1U) << 2U;
302}
303static inline u32 falcon_falcon_cpuctl_hreset_f(u32 v)
304{
305 return (v & 0x1U) << 3U;
306}
307static inline u32 falcon_falcon_cpuctl_halt_intr_f(u32 v)
308{
309 return (v & 0x1U) << 4U;
310}
311static inline u32 falcon_falcon_cpuctl_halt_intr_m(void)
312{
313 return 0x1U << 4U;
314}
315static inline u32 falcon_falcon_cpuctl_halt_intr_v(u32 r)
316{
317 return (r >> 4U) & 0x1U;
318}
319static inline u32 falcon_falcon_cpuctl_stopped_m(void)
320{
321 return 0x1U << 5U;
322}
323static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
324{
325 return (v & 0x1U) << 6U;
326}
327static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_m(void)
328{
329 return 0x1U << 6U;
330}
331static inline u32 falcon_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
332{
333 return (r >> 6U) & 0x1U;
334}
335static inline u32 falcon_falcon_cpuctl_alias_r(void)
336{
337 return 0x00000130U;
338}
339static inline u32 falcon_falcon_cpuctl_alias_startcpu_f(u32 v)
340{
341 return (v & 0x1U) << 1U;
342}
343static inline u32 falcon_falcon_imemc_r(u32 i)
344{
345 return 0x00000180U + i*16U;
346}
347static inline u32 falcon_falcon_imemc_offs_f(u32 v)
348{
349 return (v & 0x3fU) << 2U;
350}
351static inline u32 falcon_falcon_imemc_blk_f(u32 v)
352{
353 return (v & 0xffU) << 8U;
354}
355static inline u32 falcon_falcon_imemc_aincw_f(u32 v)
356{
357 return (v & 0x1U) << 24U;
358}
359static inline u32 falcon_falcon_imemc_secure_f(u32 v)
360{
361 return (v & 0x1U) << 28U;
362}
363static inline u32 falcon_falcon_imemd_r(u32 i)
364{
365 return 0x00000184U + i*16U;
366}
367static inline u32 falcon_falcon_imemt_r(u32 i)
368{
369 return 0x00000188U + i*16U;
370}
371static inline u32 falcon_falcon_sctl_r(void)
372{
373 return 0x00000240U;
374}
375static inline u32 falcon_falcon_mmu_phys_sec_r(void)
376{
377 return 0x00100ce4U;
378}
379static inline u32 falcon_falcon_bootvec_r(void)
380{
381 return 0x00000104U;
382}
383static inline u32 falcon_falcon_bootvec_vec_f(u32 v)
384{
385 return (v & 0xffffffffU) << 0U;
386}
387static inline u32 falcon_falcon_dmactl_r(void)
388{
389 return 0x0000010cU;
390}
391static inline u32 falcon_falcon_dmactl_dmem_scrubbing_m(void)
392{
393 return 0x1U << 1U;
394}
395static inline u32 falcon_falcon_dmactl_imem_scrubbing_m(void)
396{
397 return 0x1U << 2U;
398}
399static inline u32 falcon_falcon_dmactl_require_ctx_f(u32 v)
400{
401 return (v & 0x1U) << 0U;
402}
403static inline u32 falcon_falcon_hwcfg_r(void)
404{
405 return 0x00000108U;
406}
407static inline u32 falcon_falcon_hwcfg_imem_size_v(u32 r)
408{
409 return (r >> 0U) & 0x1ffU;
410}
411static inline u32 falcon_falcon_hwcfg_dmem_size_v(u32 r)
412{
413 return (r >> 9U) & 0x1ffU;
414}
415static inline u32 falcon_falcon_dmatrfbase_r(void)
416{
417 return 0x00000110U;
418}
419static inline u32 falcon_falcon_dmatrfbase1_r(void)
420{
421 return 0x00000128U;
422}
423static inline u32 falcon_falcon_dmatrfmoffs_r(void)
424{
425 return 0x00000114U;
426}
427static inline u32 falcon_falcon_dmatrfcmd_r(void)
428{
429 return 0x00000118U;
430}
431static inline u32 falcon_falcon_dmatrfcmd_imem_f(u32 v)
432{
433 return (v & 0x1U) << 4U;
434}
435static inline u32 falcon_falcon_dmatrfcmd_write_f(u32 v)
436{
437 return (v & 0x1U) << 5U;
438}
439static inline u32 falcon_falcon_dmatrfcmd_size_f(u32 v)
440{
441 return (v & 0x7U) << 8U;
442}
443static inline u32 falcon_falcon_dmatrfcmd_ctxdma_f(u32 v)
444{
445 return (v & 0x7U) << 12U;
446}
447static inline u32 falcon_falcon_dmatrffboffs_r(void)
448{
449 return 0x0000011cU;
450}
451static inline u32 falcon_falcon_imctl_debug_r(void)
452{
453 return 0x0000015cU;
454}
455static inline u32 falcon_falcon_imctl_debug_addr_blk_f(u32 v)
456{
457 return (v & 0xffffffU) << 0U;
458}
459static inline u32 falcon_falcon_imctl_debug_cmd_f(u32 v)
460{
461 return (v & 0x7U) << 24U;
462}
463static inline u32 falcon_falcon_imstat_r(void)
464{
465 return 0x00000144U;
466}
467static inline u32 falcon_falcon_traceidx_r(void)
468{
469 return 0x00000148U;
470}
471static inline u32 falcon_falcon_traceidx_maxidx_v(u32 r)
472{
473 return (r >> 16U) & 0xffU;
474}
475static inline u32 falcon_falcon_traceidx_idx_f(u32 v)
476{
477 return (v & 0xffU) << 0U;
478}
479static inline u32 falcon_falcon_tracepc_r(void)
480{
481 return 0x0000014cU;
482}
483static inline u32 falcon_falcon_tracepc_pc_v(u32 r)
484{
485 return (r >> 0U) & 0xffffffU;
486}
487static inline u32 falcon_falcon_exterraddr_r(void)
488{
489 return 0x00000168U;
490}
491static inline u32 falcon_falcon_exterrstat_r(void)
492{
493 return 0x0000016cU;
494}
495static inline u32 falcon_falcon_exterrstat_valid_m(void)
496{
497 return 0x1U << 31U;
498}
499static inline u32 falcon_falcon_exterrstat_valid_v(u32 r)
500{
501 return (r >> 31U) & 0x1U;
502}
503static inline u32 falcon_falcon_exterrstat_valid_true_v(void)
504{
505 return 0x00000001U;
506}
507static inline u32 falcon_falcon_icd_cmd_r(void)
508{
509 return 0x00000200U;
510}
511static inline u32 falcon_falcon_icd_cmd_opc_s(void)
512{
513 return 4U;
514}
515static inline u32 falcon_falcon_icd_cmd_opc_f(u32 v)
516{
517 return (v & 0xfU) << 0U;
518}
519static inline u32 falcon_falcon_icd_cmd_opc_m(void)
520{
521 return 0xfU << 0U;
522}
523static inline u32 falcon_falcon_icd_cmd_opc_v(u32 r)
524{
525 return (r >> 0U) & 0xfU;
526}
527static inline u32 falcon_falcon_icd_cmd_opc_rreg_f(void)
528{
529 return 0x8U;
530}
531static inline u32 falcon_falcon_icd_cmd_opc_rstat_f(void)
532{
533 return 0xeU;
534}
535static inline u32 falcon_falcon_icd_cmd_idx_f(u32 v)
536{
537 return (v & 0x1fU) << 8U;
538}
539static inline u32 falcon_falcon_icd_rdata_r(void)
540{
541 return 0x0000020cU;
542}
543static inline u32 falcon_falcon_dmemc_r(u32 i)
544{
545 return 0x000001c0U + i*8U;
546}
547static inline u32 falcon_falcon_dmemc_offs_f(u32 v)
548{
549 return (v & 0x3fU) << 2U;
550}
551static inline u32 falcon_falcon_dmemc_offs_m(void)
552{
553 return 0x3fU << 2U;
554}
555static inline u32 falcon_falcon_dmemc_blk_f(u32 v)
556{
557 return (v & 0xffU) << 8U;
558}
559static inline u32 falcon_falcon_dmemc_blk_m(void)
560{
561 return 0xffU << 8U;
562}
563static inline u32 falcon_falcon_dmemc_aincw_f(u32 v)
564{
565 return (v & 0x1U) << 24U;
566}
567static inline u32 falcon_falcon_dmemc_aincr_f(u32 v)
568{
569 return (v & 0x1U) << 25U;
570}
571static inline u32 falcon_falcon_dmemd_r(u32 i)
572{
573 return 0x000001c4U + i*8U;
574}
575static inline u32 falcon_falcon_debug1_r(void)
576{
577 return 0x00000090U;
578}
579static inline u32 falcon_falcon_debug1_ctxsw_mode_s(void)
580{
581 return 1U;
582}
583static inline u32 falcon_falcon_debug1_ctxsw_mode_f(u32 v)
584{
585 return (v & 0x1U) << 16U;
586}
587static inline u32 falcon_falcon_debug1_ctxsw_mode_m(void)
588{
589 return 0x1U << 16U;
590}
591static inline u32 falcon_falcon_debug1_ctxsw_mode_v(u32 r)
592{
593 return (r >> 16U) & 0x1U;
594}
595static inline u32 falcon_falcon_debug1_ctxsw_mode_init_f(void)
596{
597 return 0x0U;
598}
599static inline u32 falcon_falcon_debuginfo_r(void)
600{
601 return 0x00000094U;
602}
603#endif
diff --git a/include/nvgpu/hw/gv11b/hw_fb_gv11b.h b/include/nvgpu/hw/gv11b/hw_fb_gv11b.h
new file mode 100644
index 0000000..767fc5a
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_fb_gv11b.h
@@ -0,0 +1,1867 @@
1/*
2 * Copyright (c) 2016-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_fb_gv11b_h_
57#define _hw_fb_gv11b_h_
58
59static inline u32 fb_fbhub_num_active_ltcs_r(void)
60{
61 return 0x00100800U;
62}
63static inline u32 fb_fbhub_num_active_ltcs_hub_sys_atomic_mode_m(void)
64{
65 return 0x1U << 25U;
66}
67static inline u32 fb_fbhub_num_active_ltcs_hub_sys_atomic_mode_use_rmw_f(void)
68{
69 return 0x2000000U;
70}
71static inline u32 fb_fbhub_num_active_ltcs_hub_sys_ncoh_atomic_mode_m(void)
72{
73 return 0x1U << 26U;
74}
75static inline u32 fb_fbhub_num_active_ltcs_hub_sys_ncoh_atomic_mode_use_read_f(void)
76{
77 return 0x0U;
78}
79static inline u32 fb_mmu_ctrl_r(void)
80{
81 return 0x00100c80U;
82}
83static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r)
84{
85 return (r >> 15U) & 0x1U;
86}
87static inline u32 fb_mmu_ctrl_pri_fifo_empty_false_f(void)
88{
89 return 0x0U;
90}
91static inline u32 fb_mmu_ctrl_pri_fifo_space_v(u32 r)
92{
93 return (r >> 16U) & 0xffU;
94}
95static inline u32 fb_mmu_ctrl_atomic_capability_mode_m(void)
96{
97 return 0x3U << 24U;
98}
99static inline u32 fb_mmu_ctrl_atomic_capability_mode_l2_f(void)
100{
101 return 0x0U;
102}
103static inline u32 fb_mmu_ctrl_atomic_capability_mode_rmw_f(void)
104{
105 return 0x2000000U;
106}
107static inline u32 fb_mmu_ctrl_atomic_capability_sys_ncoh_mode_m(void)
108{
109 return 0x1U << 27U;
110}
111static inline u32 fb_mmu_ctrl_atomic_capability_sys_ncoh_mode_l2_f(void)
112{
113 return 0x0U;
114}
115static inline u32 fb_hshub_num_active_ltcs_r(void)
116{
117 return 0x001fbc20U;
118}
119static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_m(void)
120{
121 return 0x1U << 25U;
122}
123static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_use_read_f(void)
124{
125 return 0x0U;
126}
127static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_use_rmw_f(void)
128{
129 return 0x2000000U;
130}
131static inline u32 fb_priv_mmu_phy_secure_r(void)
132{
133 return 0x00100ce4U;
134}
135static inline u32 fb_mmu_invalidate_pdb_r(void)
136{
137 return 0x00100cb8U;
138}
139static inline u32 fb_mmu_invalidate_pdb_aperture_vid_mem_f(void)
140{
141 return 0x0U;
142}
143static inline u32 fb_mmu_invalidate_pdb_aperture_sys_mem_f(void)
144{
145 return 0x2U;
146}
147static inline u32 fb_mmu_invalidate_pdb_addr_f(u32 v)
148{
149 return (v & 0xfffffffU) << 4U;
150}
151static inline u32 fb_mmu_invalidate_r(void)
152{
153 return 0x00100cbcU;
154}
155static inline u32 fb_mmu_invalidate_all_va_true_f(void)
156{
157 return 0x1U;
158}
159static inline u32 fb_mmu_invalidate_all_pdb_true_f(void)
160{
161 return 0x2U;
162}
163static inline u32 fb_mmu_invalidate_hubtlb_only_s(void)
164{
165 return 1U;
166}
167static inline u32 fb_mmu_invalidate_hubtlb_only_f(u32 v)
168{
169 return (v & 0x1U) << 2U;
170}
171static inline u32 fb_mmu_invalidate_hubtlb_only_m(void)
172{
173 return 0x1U << 2U;
174}
175static inline u32 fb_mmu_invalidate_hubtlb_only_v(u32 r)
176{
177 return (r >> 2U) & 0x1U;
178}
179static inline u32 fb_mmu_invalidate_hubtlb_only_true_f(void)
180{
181 return 0x4U;
182}
183static inline u32 fb_mmu_invalidate_replay_s(void)
184{
185 return 3U;
186}
187static inline u32 fb_mmu_invalidate_replay_f(u32 v)
188{
189 return (v & 0x7U) << 3U;
190}
191static inline u32 fb_mmu_invalidate_replay_m(void)
192{
193 return 0x7U << 3U;
194}
195static inline u32 fb_mmu_invalidate_replay_v(u32 r)
196{
197 return (r >> 3U) & 0x7U;
198}
199static inline u32 fb_mmu_invalidate_replay_none_f(void)
200{
201 return 0x0U;
202}
203static inline u32 fb_mmu_invalidate_replay_start_f(void)
204{
205 return 0x8U;
206}
207static inline u32 fb_mmu_invalidate_replay_start_ack_all_f(void)
208{
209 return 0x10U;
210}
211static inline u32 fb_mmu_invalidate_replay_cancel_global_f(void)
212{
213 return 0x20U;
214}
215static inline u32 fb_mmu_invalidate_sys_membar_s(void)
216{
217 return 1U;
218}
219static inline u32 fb_mmu_invalidate_sys_membar_f(u32 v)
220{
221 return (v & 0x1U) << 6U;
222}
223static inline u32 fb_mmu_invalidate_sys_membar_m(void)
224{
225 return 0x1U << 6U;
226}
227static inline u32 fb_mmu_invalidate_sys_membar_v(u32 r)
228{
229 return (r >> 6U) & 0x1U;
230}
231static inline u32 fb_mmu_invalidate_sys_membar_true_f(void)
232{
233 return 0x40U;
234}
235static inline u32 fb_mmu_invalidate_ack_s(void)
236{
237 return 2U;
238}
239static inline u32 fb_mmu_invalidate_ack_f(u32 v)
240{
241 return (v & 0x3U) << 7U;
242}
243static inline u32 fb_mmu_invalidate_ack_m(void)
244{
245 return 0x3U << 7U;
246}
247static inline u32 fb_mmu_invalidate_ack_v(u32 r)
248{
249 return (r >> 7U) & 0x3U;
250}
251static inline u32 fb_mmu_invalidate_ack_ack_none_required_f(void)
252{
253 return 0x0U;
254}
255static inline u32 fb_mmu_invalidate_ack_ack_intranode_f(void)
256{
257 return 0x100U;
258}
259static inline u32 fb_mmu_invalidate_ack_ack_globally_f(void)
260{
261 return 0x80U;
262}
263static inline u32 fb_mmu_invalidate_cancel_client_id_s(void)
264{
265 return 6U;
266}
267static inline u32 fb_mmu_invalidate_cancel_client_id_f(u32 v)
268{
269 return (v & 0x3fU) << 9U;
270}
271static inline u32 fb_mmu_invalidate_cancel_client_id_m(void)
272{
273 return 0x3fU << 9U;
274}
275static inline u32 fb_mmu_invalidate_cancel_client_id_v(u32 r)
276{
277 return (r >> 9U) & 0x3fU;
278}
279static inline u32 fb_mmu_invalidate_cancel_gpc_id_s(void)
280{
281 return 5U;
282}
283static inline u32 fb_mmu_invalidate_cancel_gpc_id_f(u32 v)
284{
285 return (v & 0x1fU) << 15U;
286}
287static inline u32 fb_mmu_invalidate_cancel_gpc_id_m(void)
288{
289 return 0x1fU << 15U;
290}
291static inline u32 fb_mmu_invalidate_cancel_gpc_id_v(u32 r)
292{
293 return (r >> 15U) & 0x1fU;
294}
295static inline u32 fb_mmu_invalidate_cancel_client_type_s(void)
296{
297 return 1U;
298}
299static inline u32 fb_mmu_invalidate_cancel_client_type_f(u32 v)
300{
301 return (v & 0x1U) << 20U;
302}
303static inline u32 fb_mmu_invalidate_cancel_client_type_m(void)
304{
305 return 0x1U << 20U;
306}
307static inline u32 fb_mmu_invalidate_cancel_client_type_v(u32 r)
308{
309 return (r >> 20U) & 0x1U;
310}
311static inline u32 fb_mmu_invalidate_cancel_client_type_gpc_f(void)
312{
313 return 0x0U;
314}
315static inline u32 fb_mmu_invalidate_cancel_client_type_hub_f(void)
316{
317 return 0x100000U;
318}
319static inline u32 fb_mmu_invalidate_cancel_cache_level_s(void)
320{
321 return 3U;
322}
323static inline u32 fb_mmu_invalidate_cancel_cache_level_f(u32 v)
324{
325 return (v & 0x7U) << 24U;
326}
327static inline u32 fb_mmu_invalidate_cancel_cache_level_m(void)
328{
329 return 0x7U << 24U;
330}
331static inline u32 fb_mmu_invalidate_cancel_cache_level_v(u32 r)
332{
333 return (r >> 24U) & 0x7U;
334}
335static inline u32 fb_mmu_invalidate_cancel_cache_level_all_f(void)
336{
337 return 0x0U;
338}
339static inline u32 fb_mmu_invalidate_cancel_cache_level_pte_only_f(void)
340{
341 return 0x1000000U;
342}
343static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde0_f(void)
344{
345 return 0x2000000U;
346}
347static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde1_f(void)
348{
349 return 0x3000000U;
350}
351static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde2_f(void)
352{
353 return 0x4000000U;
354}
355static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde3_f(void)
356{
357 return 0x5000000U;
358}
359static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde4_f(void)
360{
361 return 0x6000000U;
362}
363static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde5_f(void)
364{
365 return 0x7000000U;
366}
367static inline u32 fb_mmu_invalidate_trigger_s(void)
368{
369 return 1U;
370}
371static inline u32 fb_mmu_invalidate_trigger_f(u32 v)
372{
373 return (v & 0x1U) << 31U;
374}
375static inline u32 fb_mmu_invalidate_trigger_m(void)
376{
377 return 0x1U << 31U;
378}
379static inline u32 fb_mmu_invalidate_trigger_v(u32 r)
380{
381 return (r >> 31U) & 0x1U;
382}
383static inline u32 fb_mmu_invalidate_trigger_true_f(void)
384{
385 return 0x80000000U;
386}
387static inline u32 fb_mmu_debug_wr_r(void)
388{
389 return 0x00100cc8U;
390}
391static inline u32 fb_mmu_debug_wr_aperture_s(void)
392{
393 return 2U;
394}
395static inline u32 fb_mmu_debug_wr_aperture_f(u32 v)
396{
397 return (v & 0x3U) << 0U;
398}
399static inline u32 fb_mmu_debug_wr_aperture_m(void)
400{
401 return 0x3U << 0U;
402}
403static inline u32 fb_mmu_debug_wr_aperture_v(u32 r)
404{
405 return (r >> 0U) & 0x3U;
406}
407static inline u32 fb_mmu_debug_wr_aperture_vid_mem_f(void)
408{
409 return 0x0U;
410}
411static inline u32 fb_mmu_debug_wr_aperture_sys_mem_coh_f(void)
412{
413 return 0x2U;
414}
415static inline u32 fb_mmu_debug_wr_aperture_sys_mem_ncoh_f(void)
416{
417 return 0x3U;
418}
419static inline u32 fb_mmu_debug_wr_vol_false_f(void)
420{
421 return 0x0U;
422}
423static inline u32 fb_mmu_debug_wr_vol_true_v(void)
424{
425 return 0x00000001U;
426}
427static inline u32 fb_mmu_debug_wr_vol_true_f(void)
428{
429 return 0x4U;
430}
431static inline u32 fb_mmu_debug_wr_addr_f(u32 v)
432{
433 return (v & 0xfffffffU) << 4U;
434}
435static inline u32 fb_mmu_debug_wr_addr_alignment_v(void)
436{
437 return 0x0000000cU;
438}
439static inline u32 fb_mmu_debug_rd_r(void)
440{
441 return 0x00100cccU;
442}
443static inline u32 fb_mmu_debug_rd_aperture_vid_mem_f(void)
444{
445 return 0x0U;
446}
447static inline u32 fb_mmu_debug_rd_aperture_sys_mem_coh_f(void)
448{
449 return 0x2U;
450}
451static inline u32 fb_mmu_debug_rd_aperture_sys_mem_ncoh_f(void)
452{
453 return 0x3U;
454}
455static inline u32 fb_mmu_debug_rd_vol_false_f(void)
456{
457 return 0x0U;
458}
459static inline u32 fb_mmu_debug_rd_addr_f(u32 v)
460{
461 return (v & 0xfffffffU) << 4U;
462}
463static inline u32 fb_mmu_debug_rd_addr_alignment_v(void)
464{
465 return 0x0000000cU;
466}
467static inline u32 fb_mmu_debug_ctrl_r(void)
468{
469 return 0x00100cc4U;
470}
471static inline u32 fb_mmu_debug_ctrl_debug_v(u32 r)
472{
473 return (r >> 16U) & 0x1U;
474}
475static inline u32 fb_mmu_debug_ctrl_debug_m(void)
476{
477 return 0x1U << 16U;
478}
479static inline u32 fb_mmu_debug_ctrl_debug_enabled_v(void)
480{
481 return 0x00000001U;
482}
483static inline u32 fb_mmu_debug_ctrl_debug_disabled_v(void)
484{
485 return 0x00000000U;
486}
487static inline u32 fb_mmu_vpr_info_r(void)
488{
489 return 0x00100cd0U;
490}
491static inline u32 fb_mmu_vpr_info_fetch_v(u32 r)
492{
493 return (r >> 2U) & 0x1U;
494}
495static inline u32 fb_mmu_vpr_info_fetch_false_v(void)
496{
497 return 0x00000000U;
498}
499static inline u32 fb_mmu_vpr_info_fetch_true_v(void)
500{
501 return 0x00000001U;
502}
503static inline u32 fb_mmu_l2tlb_ecc_status_r(void)
504{
505 return 0x00100e70U;
506}
507static inline u32 fb_mmu_l2tlb_ecc_status_corrected_err_l2tlb_sa_data_m(void)
508{
509 return 0x1U << 0U;
510}
511static inline u32 fb_mmu_l2tlb_ecc_status_uncorrected_err_l2tlb_sa_data_m(void)
512{
513 return 0x1U << 1U;
514}
515static inline u32 fb_mmu_l2tlb_ecc_status_corrected_err_total_counter_overflow_m(void)
516{
517 return 0x1U << 16U;
518}
519static inline u32 fb_mmu_l2tlb_ecc_status_uncorrected_err_total_counter_overflow_m(void)
520{
521 return 0x1U << 18U;
522}
523static inline u32 fb_mmu_l2tlb_ecc_status_reset_f(u32 v)
524{
525 return (v & 0x1U) << 30U;
526}
527static inline u32 fb_mmu_l2tlb_ecc_status_reset_clear_f(void)
528{
529 return 0x40000000U;
530}
531static inline u32 fb_mmu_l2tlb_ecc_corrected_err_count_r(void)
532{
533 return 0x00100e74U;
534}
535static inline u32 fb_mmu_l2tlb_ecc_corrected_err_count_total_s(void)
536{
537 return 16U;
538}
539static inline u32 fb_mmu_l2tlb_ecc_corrected_err_count_total_f(u32 v)
540{
541 return (v & 0xffffU) << 0U;
542}
543static inline u32 fb_mmu_l2tlb_ecc_corrected_err_count_total_m(void)
544{
545 return 0xffffU << 0U;
546}
547static inline u32 fb_mmu_l2tlb_ecc_corrected_err_count_total_v(u32 r)
548{
549 return (r >> 0U) & 0xffffU;
550}
551static inline u32 fb_mmu_l2tlb_ecc_uncorrected_err_count_r(void)
552{
553 return 0x00100e78U;
554}
555static inline u32 fb_mmu_l2tlb_ecc_uncorrected_err_count_total_s(void)
556{
557 return 16U;
558}
559static inline u32 fb_mmu_l2tlb_ecc_uncorrected_err_count_total_f(u32 v)
560{
561 return (v & 0xffffU) << 0U;
562}
563static inline u32 fb_mmu_l2tlb_ecc_uncorrected_err_count_total_m(void)
564{
565 return 0xffffU << 0U;
566}
567static inline u32 fb_mmu_l2tlb_ecc_uncorrected_err_count_total_v(u32 r)
568{
569 return (r >> 0U) & 0xffffU;
570}
571static inline u32 fb_mmu_l2tlb_ecc_address_r(void)
572{
573 return 0x00100e7cU;
574}
575static inline u32 fb_mmu_l2tlb_ecc_address_index_s(void)
576{
577 return 32U;
578}
579static inline u32 fb_mmu_l2tlb_ecc_address_index_f(u32 v)
580{
581 return (v & 0xffffffffU) << 0U;
582}
583static inline u32 fb_mmu_l2tlb_ecc_address_index_m(void)
584{
585 return 0xffffffffU << 0U;
586}
587static inline u32 fb_mmu_l2tlb_ecc_address_index_v(u32 r)
588{
589 return (r >> 0U) & 0xffffffffU;
590}
591static inline u32 fb_mmu_hubtlb_ecc_status_r(void)
592{
593 return 0x00100e84U;
594}
595static inline u32 fb_mmu_hubtlb_ecc_status_corrected_err_sa_data_m(void)
596{
597 return 0x1U << 0U;
598}
599static inline u32 fb_mmu_hubtlb_ecc_status_uncorrected_err_sa_data_m(void)
600{
601 return 0x1U << 1U;
602}
603static inline u32 fb_mmu_hubtlb_ecc_status_corrected_err_total_counter_overflow_m(void)
604{
605 return 0x1U << 16U;
606}
607static inline u32 fb_mmu_hubtlb_ecc_status_uncorrected_err_total_counter_overflow_m(void)
608{
609 return 0x1U << 18U;
610}
611static inline u32 fb_mmu_hubtlb_ecc_status_reset_f(u32 v)
612{
613 return (v & 0x1U) << 30U;
614}
615static inline u32 fb_mmu_hubtlb_ecc_status_reset_clear_f(void)
616{
617 return 0x40000000U;
618}
619static inline u32 fb_mmu_hubtlb_ecc_corrected_err_count_r(void)
620{
621 return 0x00100e88U;
622}
623static inline u32 fb_mmu_hubtlb_ecc_corrected_err_count_total_s(void)
624{
625 return 16U;
626}
627static inline u32 fb_mmu_hubtlb_ecc_corrected_err_count_total_f(u32 v)
628{
629 return (v & 0xffffU) << 0U;
630}
631static inline u32 fb_mmu_hubtlb_ecc_corrected_err_count_total_m(void)
632{
633 return 0xffffU << 0U;
634}
635static inline u32 fb_mmu_hubtlb_ecc_corrected_err_count_total_v(u32 r)
636{
637 return (r >> 0U) & 0xffffU;
638}
639static inline u32 fb_mmu_hubtlb_ecc_uncorrected_err_count_r(void)
640{
641 return 0x00100e8cU;
642}
643static inline u32 fb_mmu_hubtlb_ecc_uncorrected_err_count_total_s(void)
644{
645 return 16U;
646}
647static inline u32 fb_mmu_hubtlb_ecc_uncorrected_err_count_total_f(u32 v)
648{
649 return (v & 0xffffU) << 0U;
650}
651static inline u32 fb_mmu_hubtlb_ecc_uncorrected_err_count_total_m(void)
652{
653 return 0xffffU << 0U;
654}
655static inline u32 fb_mmu_hubtlb_ecc_uncorrected_err_count_total_v(u32 r)
656{
657 return (r >> 0U) & 0xffffU;
658}
659static inline u32 fb_mmu_hubtlb_ecc_address_r(void)
660{
661 return 0x00100e90U;
662}
663static inline u32 fb_mmu_hubtlb_ecc_address_index_s(void)
664{
665 return 32U;
666}
667static inline u32 fb_mmu_hubtlb_ecc_address_index_f(u32 v)
668{
669 return (v & 0xffffffffU) << 0U;
670}
671static inline u32 fb_mmu_hubtlb_ecc_address_index_m(void)
672{
673 return 0xffffffffU << 0U;
674}
675static inline u32 fb_mmu_hubtlb_ecc_address_index_v(u32 r)
676{
677 return (r >> 0U) & 0xffffffffU;
678}
679static inline u32 fb_mmu_fillunit_ecc_status_r(void)
680{
681 return 0x00100e98U;
682}
683static inline u32 fb_mmu_fillunit_ecc_status_corrected_err_pte_data_m(void)
684{
685 return 0x1U << 0U;
686}
687static inline u32 fb_mmu_fillunit_ecc_status_uncorrected_err_pte_data_m(void)
688{
689 return 0x1U << 1U;
690}
691static inline u32 fb_mmu_fillunit_ecc_status_corrected_err_pde0_data_m(void)
692{
693 return 0x1U << 2U;
694}
695static inline u32 fb_mmu_fillunit_ecc_status_uncorrected_err_pde0_data_m(void)
696{
697 return 0x1U << 3U;
698}
699static inline u32 fb_mmu_fillunit_ecc_status_corrected_err_total_counter_overflow_m(void)
700{
701 return 0x1U << 16U;
702}
703static inline u32 fb_mmu_fillunit_ecc_status_uncorrected_err_total_counter_overflow_m(void)
704{
705 return 0x1U << 18U;
706}
707static inline u32 fb_mmu_fillunit_ecc_status_reset_f(u32 v)
708{
709 return (v & 0x1U) << 30U;
710}
711static inline u32 fb_mmu_fillunit_ecc_status_reset_clear_f(void)
712{
713 return 0x40000000U;
714}
715static inline u32 fb_mmu_fillunit_ecc_corrected_err_count_r(void)
716{
717 return 0x00100e9cU;
718}
719static inline u32 fb_mmu_fillunit_ecc_corrected_err_count_total_s(void)
720{
721 return 16U;
722}
723static inline u32 fb_mmu_fillunit_ecc_corrected_err_count_total_f(u32 v)
724{
725 return (v & 0xffffU) << 0U;
726}
727static inline u32 fb_mmu_fillunit_ecc_corrected_err_count_total_m(void)
728{
729 return 0xffffU << 0U;
730}
731static inline u32 fb_mmu_fillunit_ecc_corrected_err_count_total_v(u32 r)
732{
733 return (r >> 0U) & 0xffffU;
734}
735static inline u32 fb_mmu_fillunit_ecc_uncorrected_err_count_r(void)
736{
737 return 0x00100ea0U;
738}
739static inline u32 fb_mmu_fillunit_ecc_uncorrected_err_count_total_s(void)
740{
741 return 16U;
742}
743static inline u32 fb_mmu_fillunit_ecc_uncorrected_err_count_total_f(u32 v)
744{
745 return (v & 0xffffU) << 0U;
746}
747static inline u32 fb_mmu_fillunit_ecc_uncorrected_err_count_total_m(void)
748{
749 return 0xffffU << 0U;
750}
751static inline u32 fb_mmu_fillunit_ecc_uncorrected_err_count_total_v(u32 r)
752{
753 return (r >> 0U) & 0xffffU;
754}
755static inline u32 fb_mmu_fillunit_ecc_address_r(void)
756{
757 return 0x00100ea4U;
758}
759static inline u32 fb_mmu_fillunit_ecc_address_index_s(void)
760{
761 return 32U;
762}
763static inline u32 fb_mmu_fillunit_ecc_address_index_f(u32 v)
764{
765 return (v & 0xffffffffU) << 0U;
766}
767static inline u32 fb_mmu_fillunit_ecc_address_index_m(void)
768{
769 return 0xffffffffU << 0U;
770}
771static inline u32 fb_mmu_fillunit_ecc_address_index_v(u32 r)
772{
773 return (r >> 0U) & 0xffffffffU;
774}
775static inline u32 fb_niso_flush_sysmem_addr_r(void)
776{
777 return 0x00100c10U;
778}
779static inline u32 fb_niso_intr_r(void)
780{
781 return 0x00100a20U;
782}
783static inline u32 fb_niso_intr_hub_access_counter_notify_m(void)
784{
785 return 0x1U << 0U;
786}
787static inline u32 fb_niso_intr_hub_access_counter_notify_pending_f(void)
788{
789 return 0x1U;
790}
791static inline u32 fb_niso_intr_hub_access_counter_error_m(void)
792{
793 return 0x1U << 1U;
794}
795static inline u32 fb_niso_intr_hub_access_counter_error_pending_f(void)
796{
797 return 0x2U;
798}
799static inline u32 fb_niso_intr_mmu_replayable_fault_notify_m(void)
800{
801 return 0x1U << 27U;
802}
803static inline u32 fb_niso_intr_mmu_replayable_fault_notify_pending_f(void)
804{
805 return 0x8000000U;
806}
807static inline u32 fb_niso_intr_mmu_replayable_fault_overflow_m(void)
808{
809 return 0x1U << 28U;
810}
811static inline u32 fb_niso_intr_mmu_replayable_fault_overflow_pending_f(void)
812{
813 return 0x10000000U;
814}
815static inline u32 fb_niso_intr_mmu_nonreplayable_fault_notify_m(void)
816{
817 return 0x1U << 29U;
818}
819static inline u32 fb_niso_intr_mmu_nonreplayable_fault_notify_pending_f(void)
820{
821 return 0x20000000U;
822}
823static inline u32 fb_niso_intr_mmu_nonreplayable_fault_overflow_m(void)
824{
825 return 0x1U << 30U;
826}
827static inline u32 fb_niso_intr_mmu_nonreplayable_fault_overflow_pending_f(void)
828{
829 return 0x40000000U;
830}
831static inline u32 fb_niso_intr_mmu_other_fault_notify_m(void)
832{
833 return 0x1U << 31U;
834}
835static inline u32 fb_niso_intr_mmu_other_fault_notify_pending_f(void)
836{
837 return 0x80000000U;
838}
839static inline u32 fb_niso_intr_mmu_ecc_uncorrected_error_notify_m(void)
840{
841 return 0x1U << 26U;
842}
843static inline u32 fb_niso_intr_mmu_ecc_uncorrected_error_notify_pending_f(void)
844{
845 return 0x4000000U;
846}
847static inline u32 fb_niso_intr_en_r(u32 i)
848{
849 return 0x00100a24U + i*4U;
850}
851static inline u32 fb_niso_intr_en__size_1_v(void)
852{
853 return 0x00000002U;
854}
855static inline u32 fb_niso_intr_en_hub_access_counter_notify_f(u32 v)
856{
857 return (v & 0x1U) << 0U;
858}
859static inline u32 fb_niso_intr_en_hub_access_counter_notify_enabled_f(void)
860{
861 return 0x1U;
862}
863static inline u32 fb_niso_intr_en_hub_access_counter_error_f(u32 v)
864{
865 return (v & 0x1U) << 1U;
866}
867static inline u32 fb_niso_intr_en_hub_access_counter_error_enabled_f(void)
868{
869 return 0x2U;
870}
871static inline u32 fb_niso_intr_en_mmu_replayable_fault_notify_f(u32 v)
872{
873 return (v & 0x1U) << 27U;
874}
875static inline u32 fb_niso_intr_en_mmu_replayable_fault_notify_enabled_f(void)
876{
877 return 0x8000000U;
878}
879static inline u32 fb_niso_intr_en_mmu_replayable_fault_overflow_f(u32 v)
880{
881 return (v & 0x1U) << 28U;
882}
883static inline u32 fb_niso_intr_en_mmu_replayable_fault_overflow_enabled_f(void)
884{
885 return 0x10000000U;
886}
887static inline u32 fb_niso_intr_en_mmu_nonreplayable_fault_notify_f(u32 v)
888{
889 return (v & 0x1U) << 29U;
890}
891static inline u32 fb_niso_intr_en_mmu_nonreplayable_fault_notify_enabled_f(void)
892{
893 return 0x20000000U;
894}
895static inline u32 fb_niso_intr_en_mmu_nonreplayable_fault_overflow_f(u32 v)
896{
897 return (v & 0x1U) << 30U;
898}
899static inline u32 fb_niso_intr_en_mmu_nonreplayable_fault_overflow_enabled_f(void)
900{
901 return 0x40000000U;
902}
903static inline u32 fb_niso_intr_en_mmu_other_fault_notify_f(u32 v)
904{
905 return (v & 0x1U) << 31U;
906}
907static inline u32 fb_niso_intr_en_mmu_other_fault_notify_enabled_f(void)
908{
909 return 0x80000000U;
910}
911static inline u32 fb_niso_intr_en_mmu_ecc_uncorrected_error_notify_f(u32 v)
912{
913 return (v & 0x1U) << 26U;
914}
915static inline u32 fb_niso_intr_en_mmu_ecc_uncorrected_error_notify_enabled_f(void)
916{
917 return 0x4000000U;
918}
919static inline u32 fb_niso_intr_en_set_r(u32 i)
920{
921 return 0x00100a2cU + i*4U;
922}
923static inline u32 fb_niso_intr_en_set__size_1_v(void)
924{
925 return 0x00000002U;
926}
927static inline u32 fb_niso_intr_en_set_hub_access_counter_notify_m(void)
928{
929 return 0x1U << 0U;
930}
931static inline u32 fb_niso_intr_en_set_hub_access_counter_notify_set_f(void)
932{
933 return 0x1U;
934}
935static inline u32 fb_niso_intr_en_set_hub_access_counter_error_m(void)
936{
937 return 0x1U << 1U;
938}
939static inline u32 fb_niso_intr_en_set_hub_access_counter_error_set_f(void)
940{
941 return 0x2U;
942}
943static inline u32 fb_niso_intr_en_set_mmu_replayable_fault_notify_m(void)
944{
945 return 0x1U << 27U;
946}
947static inline u32 fb_niso_intr_en_set_mmu_replayable_fault_notify_set_f(void)
948{
949 return 0x8000000U;
950}
951static inline u32 fb_niso_intr_en_set_mmu_replayable_fault_overflow_m(void)
952{
953 return 0x1U << 28U;
954}
955static inline u32 fb_niso_intr_en_set_mmu_replayable_fault_overflow_set_f(void)
956{
957 return 0x10000000U;
958}
959static inline u32 fb_niso_intr_en_set_mmu_nonreplayable_fault_notify_m(void)
960{
961 return 0x1U << 29U;
962}
963static inline u32 fb_niso_intr_en_set_mmu_nonreplayable_fault_notify_set_f(void)
964{
965 return 0x20000000U;
966}
967static inline u32 fb_niso_intr_en_set_mmu_nonreplayable_fault_overflow_m(void)
968{
969 return 0x1U << 30U;
970}
971static inline u32 fb_niso_intr_en_set_mmu_nonreplayable_fault_overflow_set_f(void)
972{
973 return 0x40000000U;
974}
975static inline u32 fb_niso_intr_en_set_mmu_other_fault_notify_m(void)
976{
977 return 0x1U << 31U;
978}
979static inline u32 fb_niso_intr_en_set_mmu_other_fault_notify_set_f(void)
980{
981 return 0x80000000U;
982}
983static inline u32 fb_niso_intr_en_set_mmu_ecc_uncorrected_error_notify_m(void)
984{
985 return 0x1U << 26U;
986}
987static inline u32 fb_niso_intr_en_set_mmu_ecc_uncorrected_error_notify_set_f(void)
988{
989 return 0x4000000U;
990}
991static inline u32 fb_niso_intr_en_clr_r(u32 i)
992{
993 return 0x00100a34U + i*4U;
994}
995static inline u32 fb_niso_intr_en_clr__size_1_v(void)
996{
997 return 0x00000002U;
998}
999static inline u32 fb_niso_intr_en_clr_hub_access_counter_notify_m(void)
1000{
1001 return 0x1U << 0U;
1002}
1003static inline u32 fb_niso_intr_en_clr_hub_access_counter_notify_set_f(void)
1004{
1005 return 0x1U;
1006}
1007static inline u32 fb_niso_intr_en_clr_hub_access_counter_error_m(void)
1008{
1009 return 0x1U << 1U;
1010}
1011static inline u32 fb_niso_intr_en_clr_hub_access_counter_error_set_f(void)
1012{
1013 return 0x2U;
1014}
1015static inline u32 fb_niso_intr_en_clr_mmu_replayable_fault_notify_m(void)
1016{
1017 return 0x1U << 27U;
1018}
1019static inline u32 fb_niso_intr_en_clr_mmu_replayable_fault_notify_set_f(void)
1020{
1021 return 0x8000000U;
1022}
1023static inline u32 fb_niso_intr_en_clr_mmu_replayable_fault_overflow_m(void)
1024{
1025 return 0x1U << 28U;
1026}
1027static inline u32 fb_niso_intr_en_clr_mmu_replayable_fault_overflow_set_f(void)
1028{
1029 return 0x10000000U;
1030}
1031static inline u32 fb_niso_intr_en_clr_mmu_nonreplayable_fault_notify_m(void)
1032{
1033 return 0x1U << 29U;
1034}
1035static inline u32 fb_niso_intr_en_clr_mmu_nonreplayable_fault_notify_set_f(void)
1036{
1037 return 0x20000000U;
1038}
1039static inline u32 fb_niso_intr_en_clr_mmu_nonreplayable_fault_overflow_m(void)
1040{
1041 return 0x1U << 30U;
1042}
1043static inline u32 fb_niso_intr_en_clr_mmu_nonreplayable_fault_overflow_set_f(void)
1044{
1045 return 0x40000000U;
1046}
1047static inline u32 fb_niso_intr_en_clr_mmu_other_fault_notify_m(void)
1048{
1049 return 0x1U << 31U;
1050}
1051static inline u32 fb_niso_intr_en_clr_mmu_other_fault_notify_set_f(void)
1052{
1053 return 0x80000000U;
1054}
1055static inline u32 fb_niso_intr_en_clr_mmu_ecc_uncorrected_error_notify_m(void)
1056{
1057 return 0x1U << 26U;
1058}
1059static inline u32 fb_niso_intr_en_clr_mmu_ecc_uncorrected_error_notify_set_f(void)
1060{
1061 return 0x4000000U;
1062}
1063static inline u32 fb_niso_intr_en_clr_mmu_non_replay_fault_buffer_v(void)
1064{
1065 return 0x00000000U;
1066}
1067static inline u32 fb_niso_intr_en_clr_mmu_replay_fault_buffer_v(void)
1068{
1069 return 0x00000001U;
1070}
1071static inline u32 fb_mmu_fault_buffer_lo_r(u32 i)
1072{
1073 return 0x00100e24U + i*20U;
1074}
1075static inline u32 fb_mmu_fault_buffer_lo__size_1_v(void)
1076{
1077 return 0x00000002U;
1078}
1079static inline u32 fb_mmu_fault_buffer_lo_addr_mode_f(u32 v)
1080{
1081 return (v & 0x1U) << 0U;
1082}
1083static inline u32 fb_mmu_fault_buffer_lo_addr_mode_v(u32 r)
1084{
1085 return (r >> 0U) & 0x1U;
1086}
1087static inline u32 fb_mmu_fault_buffer_lo_addr_mode_virtual_v(void)
1088{
1089 return 0x00000000U;
1090}
1091static inline u32 fb_mmu_fault_buffer_lo_addr_mode_virtual_f(void)
1092{
1093 return 0x0U;
1094}
1095static inline u32 fb_mmu_fault_buffer_lo_addr_mode_physical_v(void)
1096{
1097 return 0x00000001U;
1098}
1099static inline u32 fb_mmu_fault_buffer_lo_addr_mode_physical_f(void)
1100{
1101 return 0x1U;
1102}
1103static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_f(u32 v)
1104{
1105 return (v & 0x3U) << 1U;
1106}
1107static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_v(u32 r)
1108{
1109 return (r >> 1U) & 0x3U;
1110}
1111static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_sys_coh_v(void)
1112{
1113 return 0x00000002U;
1114}
1115static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_sys_coh_f(void)
1116{
1117 return 0x4U;
1118}
1119static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_sys_nocoh_v(void)
1120{
1121 return 0x00000003U;
1122}
1123static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_sys_nocoh_f(void)
1124{
1125 return 0x6U;
1126}
1127static inline u32 fb_mmu_fault_buffer_lo_phys_vol_f(u32 v)
1128{
1129 return (v & 0x1U) << 3U;
1130}
1131static inline u32 fb_mmu_fault_buffer_lo_phys_vol_v(u32 r)
1132{
1133 return (r >> 3U) & 0x1U;
1134}
1135static inline u32 fb_mmu_fault_buffer_lo_addr_f(u32 v)
1136{
1137 return (v & 0xfffffU) << 12U;
1138}
1139static inline u32 fb_mmu_fault_buffer_lo_addr_v(u32 r)
1140{
1141 return (r >> 12U) & 0xfffffU;
1142}
1143static inline u32 fb_mmu_fault_buffer_lo_addr_b(void)
1144{
1145 return 12U;
1146}
1147static inline u32 fb_mmu_fault_buffer_hi_r(u32 i)
1148{
1149 return 0x00100e28U + i*20U;
1150}
1151static inline u32 fb_mmu_fault_buffer_hi__size_1_v(void)
1152{
1153 return 0x00000002U;
1154}
1155static inline u32 fb_mmu_fault_buffer_hi_addr_f(u32 v)
1156{
1157 return (v & 0xffffffffU) << 0U;
1158}
1159static inline u32 fb_mmu_fault_buffer_hi_addr_v(u32 r)
1160{
1161 return (r >> 0U) & 0xffffffffU;
1162}
1163static inline u32 fb_mmu_fault_buffer_get_r(u32 i)
1164{
1165 return 0x00100e2cU + i*20U;
1166}
1167static inline u32 fb_mmu_fault_buffer_get__size_1_v(void)
1168{
1169 return 0x00000002U;
1170}
1171static inline u32 fb_mmu_fault_buffer_get_ptr_f(u32 v)
1172{
1173 return (v & 0xfffffU) << 0U;
1174}
1175static inline u32 fb_mmu_fault_buffer_get_ptr_m(void)
1176{
1177 return 0xfffffU << 0U;
1178}
1179static inline u32 fb_mmu_fault_buffer_get_ptr_v(u32 r)
1180{
1181 return (r >> 0U) & 0xfffffU;
1182}
1183static inline u32 fb_mmu_fault_buffer_get_getptr_corrupted_f(u32 v)
1184{
1185 return (v & 0x1U) << 30U;
1186}
1187static inline u32 fb_mmu_fault_buffer_get_getptr_corrupted_m(void)
1188{
1189 return 0x1U << 30U;
1190}
1191static inline u32 fb_mmu_fault_buffer_get_getptr_corrupted_clear_v(void)
1192{
1193 return 0x00000001U;
1194}
1195static inline u32 fb_mmu_fault_buffer_get_getptr_corrupted_clear_f(void)
1196{
1197 return 0x40000000U;
1198}
1199static inline u32 fb_mmu_fault_buffer_get_overflow_f(u32 v)
1200{
1201 return (v & 0x1U) << 31U;
1202}
1203static inline u32 fb_mmu_fault_buffer_get_overflow_m(void)
1204{
1205 return 0x1U << 31U;
1206}
1207static inline u32 fb_mmu_fault_buffer_get_overflow_clear_v(void)
1208{
1209 return 0x00000001U;
1210}
1211static inline u32 fb_mmu_fault_buffer_get_overflow_clear_f(void)
1212{
1213 return 0x80000000U;
1214}
1215static inline u32 fb_mmu_fault_buffer_put_r(u32 i)
1216{
1217 return 0x00100e30U + i*20U;
1218}
1219static inline u32 fb_mmu_fault_buffer_put__size_1_v(void)
1220{
1221 return 0x00000002U;
1222}
1223static inline u32 fb_mmu_fault_buffer_put_ptr_f(u32 v)
1224{
1225 return (v & 0xfffffU) << 0U;
1226}
1227static inline u32 fb_mmu_fault_buffer_put_ptr_v(u32 r)
1228{
1229 return (r >> 0U) & 0xfffffU;
1230}
1231static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_f(u32 v)
1232{
1233 return (v & 0x1U) << 30U;
1234}
1235static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_v(u32 r)
1236{
1237 return (r >> 30U) & 0x1U;
1238}
1239static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_yes_v(void)
1240{
1241 return 0x00000001U;
1242}
1243static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_yes_f(void)
1244{
1245 return 0x40000000U;
1246}
1247static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_no_v(void)
1248{
1249 return 0x00000000U;
1250}
1251static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_no_f(void)
1252{
1253 return 0x0U;
1254}
1255static inline u32 fb_mmu_fault_buffer_put_overflow_f(u32 v)
1256{
1257 return (v & 0x1U) << 31U;
1258}
1259static inline u32 fb_mmu_fault_buffer_put_overflow_v(u32 r)
1260{
1261 return (r >> 31U) & 0x1U;
1262}
1263static inline u32 fb_mmu_fault_buffer_put_overflow_yes_v(void)
1264{
1265 return 0x00000001U;
1266}
1267static inline u32 fb_mmu_fault_buffer_put_overflow_yes_f(void)
1268{
1269 return 0x80000000U;
1270}
1271static inline u32 fb_mmu_fault_buffer_size_r(u32 i)
1272{
1273 return 0x00100e34U + i*20U;
1274}
1275static inline u32 fb_mmu_fault_buffer_size__size_1_v(void)
1276{
1277 return 0x00000002U;
1278}
1279static inline u32 fb_mmu_fault_buffer_size_val_f(u32 v)
1280{
1281 return (v & 0xfffffU) << 0U;
1282}
1283static inline u32 fb_mmu_fault_buffer_size_val_v(u32 r)
1284{
1285 return (r >> 0U) & 0xfffffU;
1286}
1287static inline u32 fb_mmu_fault_buffer_size_overflow_intr_f(u32 v)
1288{
1289 return (v & 0x1U) << 29U;
1290}
1291static inline u32 fb_mmu_fault_buffer_size_overflow_intr_v(u32 r)
1292{
1293 return (r >> 29U) & 0x1U;
1294}
1295static inline u32 fb_mmu_fault_buffer_size_overflow_intr_enable_v(void)
1296{
1297 return 0x00000001U;
1298}
1299static inline u32 fb_mmu_fault_buffer_size_overflow_intr_enable_f(void)
1300{
1301 return 0x20000000U;
1302}
1303static inline u32 fb_mmu_fault_buffer_size_set_default_f(u32 v)
1304{
1305 return (v & 0x1U) << 30U;
1306}
1307static inline u32 fb_mmu_fault_buffer_size_set_default_v(u32 r)
1308{
1309 return (r >> 30U) & 0x1U;
1310}
1311static inline u32 fb_mmu_fault_buffer_size_set_default_yes_v(void)
1312{
1313 return 0x00000001U;
1314}
1315static inline u32 fb_mmu_fault_buffer_size_set_default_yes_f(void)
1316{
1317 return 0x40000000U;
1318}
1319static inline u32 fb_mmu_fault_buffer_size_enable_f(u32 v)
1320{
1321 return (v & 0x1U) << 31U;
1322}
1323static inline u32 fb_mmu_fault_buffer_size_enable_m(void)
1324{
1325 return 0x1U << 31U;
1326}
1327static inline u32 fb_mmu_fault_buffer_size_enable_v(u32 r)
1328{
1329 return (r >> 31U) & 0x1U;
1330}
1331static inline u32 fb_mmu_fault_buffer_size_enable_true_v(void)
1332{
1333 return 0x00000001U;
1334}
1335static inline u32 fb_mmu_fault_buffer_size_enable_true_f(void)
1336{
1337 return 0x80000000U;
1338}
1339static inline u32 fb_mmu_fault_addr_lo_r(void)
1340{
1341 return 0x00100e4cU;
1342}
1343static inline u32 fb_mmu_fault_addr_lo_phys_aperture_f(u32 v)
1344{
1345 return (v & 0x3U) << 0U;
1346}
1347static inline u32 fb_mmu_fault_addr_lo_phys_aperture_v(u32 r)
1348{
1349 return (r >> 0U) & 0x3U;
1350}
1351static inline u32 fb_mmu_fault_addr_lo_phys_aperture_sys_coh_v(void)
1352{
1353 return 0x00000002U;
1354}
1355static inline u32 fb_mmu_fault_addr_lo_phys_aperture_sys_coh_f(void)
1356{
1357 return 0x2U;
1358}
1359static inline u32 fb_mmu_fault_addr_lo_phys_aperture_sys_nocoh_v(void)
1360{
1361 return 0x00000003U;
1362}
1363static inline u32 fb_mmu_fault_addr_lo_phys_aperture_sys_nocoh_f(void)
1364{
1365 return 0x3U;
1366}
1367static inline u32 fb_mmu_fault_addr_lo_addr_f(u32 v)
1368{
1369 return (v & 0xfffffU) << 12U;
1370}
1371static inline u32 fb_mmu_fault_addr_lo_addr_v(u32 r)
1372{
1373 return (r >> 12U) & 0xfffffU;
1374}
1375static inline u32 fb_mmu_fault_addr_lo_addr_b(void)
1376{
1377 return 12U;
1378}
1379static inline u32 fb_mmu_fault_addr_hi_r(void)
1380{
1381 return 0x00100e50U;
1382}
1383static inline u32 fb_mmu_fault_addr_hi_addr_f(u32 v)
1384{
1385 return (v & 0xffffffffU) << 0U;
1386}
1387static inline u32 fb_mmu_fault_addr_hi_addr_v(u32 r)
1388{
1389 return (r >> 0U) & 0xffffffffU;
1390}
1391static inline u32 fb_mmu_fault_inst_lo_r(void)
1392{
1393 return 0x00100e54U;
1394}
1395static inline u32 fb_mmu_fault_inst_lo_engine_id_v(u32 r)
1396{
1397 return (r >> 0U) & 0x1ffU;
1398}
1399static inline u32 fb_mmu_fault_inst_lo_aperture_v(u32 r)
1400{
1401 return (r >> 10U) & 0x3U;
1402}
1403static inline u32 fb_mmu_fault_inst_lo_aperture_sys_coh_v(void)
1404{
1405 return 0x00000002U;
1406}
1407static inline u32 fb_mmu_fault_inst_lo_aperture_sys_nocoh_v(void)
1408{
1409 return 0x00000003U;
1410}
1411static inline u32 fb_mmu_fault_inst_lo_addr_f(u32 v)
1412{
1413 return (v & 0xfffffU) << 12U;
1414}
1415static inline u32 fb_mmu_fault_inst_lo_addr_v(u32 r)
1416{
1417 return (r >> 12U) & 0xfffffU;
1418}
1419static inline u32 fb_mmu_fault_inst_lo_addr_b(void)
1420{
1421 return 12U;
1422}
1423static inline u32 fb_mmu_fault_inst_hi_r(void)
1424{
1425 return 0x00100e58U;
1426}
1427static inline u32 fb_mmu_fault_inst_hi_addr_v(u32 r)
1428{
1429 return (r >> 0U) & 0xffffffffU;
1430}
1431static inline u32 fb_mmu_fault_info_r(void)
1432{
1433 return 0x00100e5cU;
1434}
1435static inline u32 fb_mmu_fault_info_fault_type_v(u32 r)
1436{
1437 return (r >> 0U) & 0x1fU;
1438}
1439static inline u32 fb_mmu_fault_info_replayable_fault_v(u32 r)
1440{
1441 return (r >> 7U) & 0x1U;
1442}
1443static inline u32 fb_mmu_fault_info_client_v(u32 r)
1444{
1445 return (r >> 8U) & 0x7fU;
1446}
1447static inline u32 fb_mmu_fault_info_access_type_v(u32 r)
1448{
1449 return (r >> 16U) & 0xfU;
1450}
1451static inline u32 fb_mmu_fault_info_client_type_v(u32 r)
1452{
1453 return (r >> 20U) & 0x1U;
1454}
1455static inline u32 fb_mmu_fault_info_gpc_id_v(u32 r)
1456{
1457 return (r >> 24U) & 0x1fU;
1458}
1459static inline u32 fb_mmu_fault_info_protected_mode_v(u32 r)
1460{
1461 return (r >> 29U) & 0x1U;
1462}
1463static inline u32 fb_mmu_fault_info_replayable_fault_en_v(u32 r)
1464{
1465 return (r >> 30U) & 0x1U;
1466}
1467static inline u32 fb_mmu_fault_info_valid_v(u32 r)
1468{
1469 return (r >> 31U) & 0x1U;
1470}
1471static inline u32 fb_mmu_fault_status_r(void)
1472{
1473 return 0x00100e60U;
1474}
1475static inline u32 fb_mmu_fault_status_dropped_bar1_phys_m(void)
1476{
1477 return 0x1U << 0U;
1478}
1479static inline u32 fb_mmu_fault_status_dropped_bar1_phys_set_v(void)
1480{
1481 return 0x00000001U;
1482}
1483static inline u32 fb_mmu_fault_status_dropped_bar1_phys_set_f(void)
1484{
1485 return 0x1U;
1486}
1487static inline u32 fb_mmu_fault_status_dropped_bar1_phys_clear_v(void)
1488{
1489 return 0x00000001U;
1490}
1491static inline u32 fb_mmu_fault_status_dropped_bar1_phys_clear_f(void)
1492{
1493 return 0x1U;
1494}
1495static inline u32 fb_mmu_fault_status_dropped_bar1_virt_m(void)
1496{
1497 return 0x1U << 1U;
1498}
1499static inline u32 fb_mmu_fault_status_dropped_bar1_virt_set_v(void)
1500{
1501 return 0x00000001U;
1502}
1503static inline u32 fb_mmu_fault_status_dropped_bar1_virt_set_f(void)
1504{
1505 return 0x2U;
1506}
1507static inline u32 fb_mmu_fault_status_dropped_bar1_virt_clear_v(void)
1508{
1509 return 0x00000001U;
1510}
1511static inline u32 fb_mmu_fault_status_dropped_bar1_virt_clear_f(void)
1512{
1513 return 0x2U;
1514}
1515static inline u32 fb_mmu_fault_status_dropped_bar2_phys_m(void)
1516{
1517 return 0x1U << 2U;
1518}
1519static inline u32 fb_mmu_fault_status_dropped_bar2_phys_set_v(void)
1520{
1521 return 0x00000001U;
1522}
1523static inline u32 fb_mmu_fault_status_dropped_bar2_phys_set_f(void)
1524{
1525 return 0x4U;
1526}
1527static inline u32 fb_mmu_fault_status_dropped_bar2_phys_clear_v(void)
1528{
1529 return 0x00000001U;
1530}
1531static inline u32 fb_mmu_fault_status_dropped_bar2_phys_clear_f(void)
1532{
1533 return 0x4U;
1534}
1535static inline u32 fb_mmu_fault_status_dropped_bar2_virt_m(void)
1536{
1537 return 0x1U << 3U;
1538}
1539static inline u32 fb_mmu_fault_status_dropped_bar2_virt_set_v(void)
1540{
1541 return 0x00000001U;
1542}
1543static inline u32 fb_mmu_fault_status_dropped_bar2_virt_set_f(void)
1544{
1545 return 0x8U;
1546}
1547static inline u32 fb_mmu_fault_status_dropped_bar2_virt_clear_v(void)
1548{
1549 return 0x00000001U;
1550}
1551static inline u32 fb_mmu_fault_status_dropped_bar2_virt_clear_f(void)
1552{
1553 return 0x8U;
1554}
1555static inline u32 fb_mmu_fault_status_dropped_ifb_phys_m(void)
1556{
1557 return 0x1U << 4U;
1558}
1559static inline u32 fb_mmu_fault_status_dropped_ifb_phys_set_v(void)
1560{
1561 return 0x00000001U;
1562}
1563static inline u32 fb_mmu_fault_status_dropped_ifb_phys_set_f(void)
1564{
1565 return 0x10U;
1566}
1567static inline u32 fb_mmu_fault_status_dropped_ifb_phys_clear_v(void)
1568{
1569 return 0x00000001U;
1570}
1571static inline u32 fb_mmu_fault_status_dropped_ifb_phys_clear_f(void)
1572{
1573 return 0x10U;
1574}
1575static inline u32 fb_mmu_fault_status_dropped_ifb_virt_m(void)
1576{
1577 return 0x1U << 5U;
1578}
1579static inline u32 fb_mmu_fault_status_dropped_ifb_virt_set_v(void)
1580{
1581 return 0x00000001U;
1582}
1583static inline u32 fb_mmu_fault_status_dropped_ifb_virt_set_f(void)
1584{
1585 return 0x20U;
1586}
1587static inline u32 fb_mmu_fault_status_dropped_ifb_virt_clear_v(void)
1588{
1589 return 0x00000001U;
1590}
1591static inline u32 fb_mmu_fault_status_dropped_ifb_virt_clear_f(void)
1592{
1593 return 0x20U;
1594}
1595static inline u32 fb_mmu_fault_status_dropped_other_phys_m(void)
1596{
1597 return 0x1U << 6U;
1598}
1599static inline u32 fb_mmu_fault_status_dropped_other_phys_set_v(void)
1600{
1601 return 0x00000001U;
1602}
1603static inline u32 fb_mmu_fault_status_dropped_other_phys_set_f(void)
1604{
1605 return 0x40U;
1606}
1607static inline u32 fb_mmu_fault_status_dropped_other_phys_clear_v(void)
1608{
1609 return 0x00000001U;
1610}
1611static inline u32 fb_mmu_fault_status_dropped_other_phys_clear_f(void)
1612{
1613 return 0x40U;
1614}
1615static inline u32 fb_mmu_fault_status_dropped_other_virt_m(void)
1616{
1617 return 0x1U << 7U;
1618}
1619static inline u32 fb_mmu_fault_status_dropped_other_virt_set_v(void)
1620{
1621 return 0x00000001U;
1622}
1623static inline u32 fb_mmu_fault_status_dropped_other_virt_set_f(void)
1624{
1625 return 0x80U;
1626}
1627static inline u32 fb_mmu_fault_status_dropped_other_virt_clear_v(void)
1628{
1629 return 0x00000001U;
1630}
1631static inline u32 fb_mmu_fault_status_dropped_other_virt_clear_f(void)
1632{
1633 return 0x80U;
1634}
1635static inline u32 fb_mmu_fault_status_replayable_m(void)
1636{
1637 return 0x1U << 8U;
1638}
1639static inline u32 fb_mmu_fault_status_replayable_set_v(void)
1640{
1641 return 0x00000001U;
1642}
1643static inline u32 fb_mmu_fault_status_replayable_set_f(void)
1644{
1645 return 0x100U;
1646}
1647static inline u32 fb_mmu_fault_status_replayable_reset_f(void)
1648{
1649 return 0x0U;
1650}
1651static inline u32 fb_mmu_fault_status_non_replayable_m(void)
1652{
1653 return 0x1U << 9U;
1654}
1655static inline u32 fb_mmu_fault_status_non_replayable_set_v(void)
1656{
1657 return 0x00000001U;
1658}
1659static inline u32 fb_mmu_fault_status_non_replayable_set_f(void)
1660{
1661 return 0x200U;
1662}
1663static inline u32 fb_mmu_fault_status_non_replayable_reset_f(void)
1664{
1665 return 0x0U;
1666}
1667static inline u32 fb_mmu_fault_status_replayable_error_m(void)
1668{
1669 return 0x1U << 10U;
1670}
1671static inline u32 fb_mmu_fault_status_replayable_error_set_v(void)
1672{
1673 return 0x00000001U;
1674}
1675static inline u32 fb_mmu_fault_status_replayable_error_set_f(void)
1676{
1677 return 0x400U;
1678}
1679static inline u32 fb_mmu_fault_status_replayable_error_reset_f(void)
1680{
1681 return 0x0U;
1682}
1683static inline u32 fb_mmu_fault_status_non_replayable_error_m(void)
1684{
1685 return 0x1U << 11U;
1686}
1687static inline u32 fb_mmu_fault_status_non_replayable_error_set_v(void)
1688{
1689 return 0x00000001U;
1690}
1691static inline u32 fb_mmu_fault_status_non_replayable_error_set_f(void)
1692{
1693 return 0x800U;
1694}
1695static inline u32 fb_mmu_fault_status_non_replayable_error_reset_f(void)
1696{
1697 return 0x0U;
1698}
1699static inline u32 fb_mmu_fault_status_replayable_overflow_m(void)
1700{
1701 return 0x1U << 12U;
1702}
1703static inline u32 fb_mmu_fault_status_replayable_overflow_set_v(void)
1704{
1705 return 0x00000001U;
1706}
1707static inline u32 fb_mmu_fault_status_replayable_overflow_set_f(void)
1708{
1709 return 0x1000U;
1710}
1711static inline u32 fb_mmu_fault_status_replayable_overflow_reset_f(void)
1712{
1713 return 0x0U;
1714}
1715static inline u32 fb_mmu_fault_status_non_replayable_overflow_m(void)
1716{
1717 return 0x1U << 13U;
1718}
1719static inline u32 fb_mmu_fault_status_non_replayable_overflow_set_v(void)
1720{
1721 return 0x00000001U;
1722}
1723static inline u32 fb_mmu_fault_status_non_replayable_overflow_set_f(void)
1724{
1725 return 0x2000U;
1726}
1727static inline u32 fb_mmu_fault_status_non_replayable_overflow_reset_f(void)
1728{
1729 return 0x0U;
1730}
1731static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_m(void)
1732{
1733 return 0x1U << 14U;
1734}
1735static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_set_v(void)
1736{
1737 return 0x00000001U;
1738}
1739static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_set_f(void)
1740{
1741 return 0x4000U;
1742}
1743static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_m(void)
1744{
1745 return 0x1U << 15U;
1746}
1747static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_set_v(void)
1748{
1749 return 0x00000001U;
1750}
1751static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_set_f(void)
1752{
1753 return 0x8000U;
1754}
1755static inline u32 fb_mmu_fault_status_busy_m(void)
1756{
1757 return 0x1U << 30U;
1758}
1759static inline u32 fb_mmu_fault_status_busy_true_v(void)
1760{
1761 return 0x00000001U;
1762}
1763static inline u32 fb_mmu_fault_status_busy_true_f(void)
1764{
1765 return 0x40000000U;
1766}
1767static inline u32 fb_mmu_fault_status_valid_m(void)
1768{
1769 return 0x1U << 31U;
1770}
1771static inline u32 fb_mmu_fault_status_valid_set_v(void)
1772{
1773 return 0x00000001U;
1774}
1775static inline u32 fb_mmu_fault_status_valid_set_f(void)
1776{
1777 return 0x80000000U;
1778}
1779static inline u32 fb_mmu_fault_status_valid_clear_v(void)
1780{
1781 return 0x00000001U;
1782}
1783static inline u32 fb_mmu_fault_status_valid_clear_f(void)
1784{
1785 return 0x80000000U;
1786}
1787static inline u32 fb_mmu_num_active_ltcs_r(void)
1788{
1789 return 0x00100ec0U;
1790}
1791static inline u32 fb_mmu_num_active_ltcs_count_f(u32 v)
1792{
1793 return (v & 0x1fU) << 0U;
1794}
1795static inline u32 fb_mmu_num_active_ltcs_count_v(u32 r)
1796{
1797 return (r >> 0U) & 0x1fU;
1798}
1799static inline u32 fb_mmu_cbc_base_r(void)
1800{
1801 return 0x00100ec4U;
1802}
1803static inline u32 fb_mmu_cbc_base_address_f(u32 v)
1804{
1805 return (v & 0x3ffffffU) << 0U;
1806}
1807static inline u32 fb_mmu_cbc_base_address_v(u32 r)
1808{
1809 return (r >> 0U) & 0x3ffffffU;
1810}
1811static inline u32 fb_mmu_cbc_base_address_alignment_shift_v(void)
1812{
1813 return 0x0000000bU;
1814}
1815static inline u32 fb_mmu_cbc_top_r(void)
1816{
1817 return 0x00100ec8U;
1818}
1819static inline u32 fb_mmu_cbc_top_size_f(u32 v)
1820{
1821 return (v & 0x7fffU) << 0U;
1822}
1823static inline u32 fb_mmu_cbc_top_size_v(u32 r)
1824{
1825 return (r >> 0U) & 0x7fffU;
1826}
1827static inline u32 fb_mmu_cbc_top_size_alignment_shift_v(void)
1828{
1829 return 0x0000000bU;
1830}
1831static inline u32 fb_mmu_cbc_max_r(void)
1832{
1833 return 0x00100eccU;
1834}
1835static inline u32 fb_mmu_cbc_max_comptagline_f(u32 v)
1836{
1837 return (v & 0xffffffU) << 0U;
1838}
1839static inline u32 fb_mmu_cbc_max_comptagline_v(u32 r)
1840{
1841 return (r >> 0U) & 0xffffffU;
1842}
1843static inline u32 fb_mmu_cbc_max_safe_f(u32 v)
1844{
1845 return (v & 0x1U) << 30U;
1846}
1847static inline u32 fb_mmu_cbc_max_safe_true_v(void)
1848{
1849 return 0x00000001U;
1850}
1851static inline u32 fb_mmu_cbc_max_safe_false_v(void)
1852{
1853 return 0x00000000U;
1854}
1855static inline u32 fb_mmu_cbc_max_unsafe_fault_f(u32 v)
1856{
1857 return (v & 0x1U) << 31U;
1858}
1859static inline u32 fb_mmu_cbc_max_unsafe_fault_enabled_v(void)
1860{
1861 return 0x00000000U;
1862}
1863static inline u32 fb_mmu_cbc_max_unsafe_fault_disabled_v(void)
1864{
1865 return 0x00000001U;
1866}
1867#endif
diff --git a/include/nvgpu/hw/gv11b/hw_fifo_gv11b.h b/include/nvgpu/hw/gv11b/hw_fifo_gv11b.h
new file mode 100644
index 0000000..9ec30bf
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_fifo_gv11b.h
@@ -0,0 +1,667 @@
1/*
2 * Copyright (c) 2016-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_fifo_gv11b_h_
57#define _hw_fifo_gv11b_h_
58
59static inline u32 fifo_bar1_base_r(void)
60{
61 return 0x00002254U;
62}
63static inline u32 fifo_bar1_base_ptr_f(u32 v)
64{
65 return (v & 0xfffffffU) << 0U;
66}
67static inline u32 fifo_bar1_base_ptr_align_shift_v(void)
68{
69 return 0x0000000cU;
70}
71static inline u32 fifo_bar1_base_valid_false_f(void)
72{
73 return 0x0U;
74}
75static inline u32 fifo_bar1_base_valid_true_f(void)
76{
77 return 0x10000000U;
78}
79static inline u32 fifo_userd_writeback_r(void)
80{
81 return 0x0000225cU;
82}
83static inline u32 fifo_userd_writeback_timer_f(u32 v)
84{
85 return (v & 0xffU) << 0U;
86}
87static inline u32 fifo_userd_writeback_timer_disabled_v(void)
88{
89 return 0x00000000U;
90}
91static inline u32 fifo_userd_writeback_timer_shorter_v(void)
92{
93 return 0x00000003U;
94}
95static inline u32 fifo_userd_writeback_timer_100us_v(void)
96{
97 return 0x00000064U;
98}
99static inline u32 fifo_userd_writeback_timescale_f(u32 v)
100{
101 return (v & 0xfU) << 12U;
102}
103static inline u32 fifo_userd_writeback_timescale_0_v(void)
104{
105 return 0x00000000U;
106}
107static inline u32 fifo_runlist_base_r(void)
108{
109 return 0x00002270U;
110}
111static inline u32 fifo_runlist_base_ptr_f(u32 v)
112{
113 return (v & 0xfffffffU) << 0U;
114}
115static inline u32 fifo_runlist_base_target_vid_mem_f(void)
116{
117 return 0x0U;
118}
119static inline u32 fifo_runlist_base_target_sys_mem_coh_f(void)
120{
121 return 0x20000000U;
122}
123static inline u32 fifo_runlist_base_target_sys_mem_ncoh_f(void)
124{
125 return 0x30000000U;
126}
127static inline u32 fifo_runlist_r(void)
128{
129 return 0x00002274U;
130}
131static inline u32 fifo_runlist_engine_f(u32 v)
132{
133 return (v & 0xfU) << 20U;
134}
135static inline u32 fifo_eng_runlist_base_r(u32 i)
136{
137 return 0x00002280U + i*8U;
138}
139static inline u32 fifo_eng_runlist_base__size_1_v(void)
140{
141 return 0x00000002U;
142}
143static inline u32 fifo_eng_runlist_r(u32 i)
144{
145 return 0x00002284U + i*8U;
146}
147static inline u32 fifo_eng_runlist__size_1_v(void)
148{
149 return 0x00000002U;
150}
151static inline u32 fifo_eng_runlist_length_f(u32 v)
152{
153 return (v & 0xffffU) << 0U;
154}
155static inline u32 fifo_eng_runlist_length_max_v(void)
156{
157 return 0x0000ffffU;
158}
159static inline u32 fifo_eng_runlist_pending_true_f(void)
160{
161 return 0x100000U;
162}
163static inline u32 fifo_pb_timeslice_r(u32 i)
164{
165 return 0x00002350U + i*4U;
166}
167static inline u32 fifo_pb_timeslice_timeout_16_f(void)
168{
169 return 0x10U;
170}
171static inline u32 fifo_pb_timeslice_timescale_0_f(void)
172{
173 return 0x0U;
174}
175static inline u32 fifo_pb_timeslice_enable_true_f(void)
176{
177 return 0x10000000U;
178}
179static inline u32 fifo_pbdma_map_r(u32 i)
180{
181 return 0x00002390U + i*4U;
182}
183static inline u32 fifo_intr_0_r(void)
184{
185 return 0x00002100U;
186}
187static inline u32 fifo_intr_0_bind_error_pending_f(void)
188{
189 return 0x1U;
190}
191static inline u32 fifo_intr_0_bind_error_reset_f(void)
192{
193 return 0x1U;
194}
195static inline u32 fifo_intr_0_sched_error_pending_f(void)
196{
197 return 0x100U;
198}
199static inline u32 fifo_intr_0_sched_error_reset_f(void)
200{
201 return 0x100U;
202}
203static inline u32 fifo_intr_0_chsw_error_pending_f(void)
204{
205 return 0x10000U;
206}
207static inline u32 fifo_intr_0_chsw_error_reset_f(void)
208{
209 return 0x10000U;
210}
211static inline u32 fifo_intr_0_memop_timeout_pending_f(void)
212{
213 return 0x800000U;
214}
215static inline u32 fifo_intr_0_memop_timeout_reset_f(void)
216{
217 return 0x800000U;
218}
219static inline u32 fifo_intr_0_lb_error_pending_f(void)
220{
221 return 0x1000000U;
222}
223static inline u32 fifo_intr_0_lb_error_reset_f(void)
224{
225 return 0x1000000U;
226}
227static inline u32 fifo_intr_0_pbdma_intr_pending_f(void)
228{
229 return 0x20000000U;
230}
231static inline u32 fifo_intr_0_runlist_event_pending_f(void)
232{
233 return 0x40000000U;
234}
235static inline u32 fifo_intr_0_channel_intr_pending_f(void)
236{
237 return 0x80000000U;
238}
239static inline u32 fifo_intr_0_ctxsw_timeout_pending_f(void)
240{
241 return 0x2U;
242}
243static inline u32 fifo_intr_en_0_r(void)
244{
245 return 0x00002140U;
246}
247static inline u32 fifo_intr_en_0_sched_error_f(u32 v)
248{
249 return (v & 0x1U) << 8U;
250}
251static inline u32 fifo_intr_en_0_sched_error_m(void)
252{
253 return 0x1U << 8U;
254}
255static inline u32 fifo_intr_en_0_ctxsw_timeout_pending_f(void)
256{
257 return 0x2U;
258}
259static inline u32 fifo_intr_en_1_r(void)
260{
261 return 0x00002528U;
262}
263static inline u32 fifo_intr_bind_error_r(void)
264{
265 return 0x0000252cU;
266}
267static inline u32 fifo_intr_sched_error_r(void)
268{
269 return 0x0000254cU;
270}
271static inline u32 fifo_intr_sched_error_code_f(u32 v)
272{
273 return (v & 0xffU) << 0U;
274}
275static inline u32 fifo_intr_chsw_error_r(void)
276{
277 return 0x0000256cU;
278}
279static inline u32 fifo_intr_ctxsw_timeout_r(void)
280{
281 return 0x00002a30U;
282}
283static inline u32 fifo_intr_ctxsw_timeout_engine_f(u32 v, u32 i)
284{
285 return (v & 0x1U) << (0U + i*1U);
286}
287static inline u32 fifo_intr_ctxsw_timeout_engine_v(u32 r, u32 i)
288{
289 return (r >> (0U + i*1U)) & 0x1U;
290}
291static inline u32 fifo_intr_ctxsw_timeout_engine__size_1_v(void)
292{
293 return 0x00000020U;
294}
295static inline u32 fifo_intr_ctxsw_timeout_engine_pending_v(void)
296{
297 return 0x00000001U;
298}
299static inline u32 fifo_intr_ctxsw_timeout_engine_pending_f(u32 i)
300{
301 return 0x1U << (0U + i*1U);
302}
303static inline u32 fifo_intr_ctxsw_timeout_info_r(u32 i)
304{
305 return 0x00003200U + i*4U;
306}
307static inline u32 fifo_intr_ctxsw_timeout_info__size_1_v(void)
308{
309 return 0x00000004U;
310}
311static inline u32 fifo_intr_ctxsw_timeout_info_ctxsw_state_v(u32 r)
312{
313 return (r >> 14U) & 0x3U;
314}
315static inline u32 fifo_intr_ctxsw_timeout_info_ctxsw_state_load_v(void)
316{
317 return 0x00000001U;
318}
319static inline u32 fifo_intr_ctxsw_timeout_info_ctxsw_state_save_v(void)
320{
321 return 0x00000002U;
322}
323static inline u32 fifo_intr_ctxsw_timeout_info_ctxsw_state_switch_v(void)
324{
325 return 0x00000003U;
326}
327static inline u32 fifo_intr_ctxsw_timeout_info_prev_tsgid_v(u32 r)
328{
329 return (r >> 0U) & 0x3fffU;
330}
331static inline u32 fifo_intr_ctxsw_timeout_info_next_tsgid_v(u32 r)
332{
333 return (r >> 16U) & 0x3fffU;
334}
335static inline u32 fifo_intr_ctxsw_timeout_info_status_v(u32 r)
336{
337 return (r >> 30U) & 0x3U;
338}
339static inline u32 fifo_intr_ctxsw_timeout_info_status_awaiting_ack_v(void)
340{
341 return 0x00000000U;
342}
343static inline u32 fifo_intr_ctxsw_timeout_info_status_eng_was_reset_v(void)
344{
345 return 0x00000001U;
346}
347static inline u32 fifo_intr_ctxsw_timeout_info_status_ack_received_v(void)
348{
349 return 0x00000002U;
350}
351static inline u32 fifo_intr_ctxsw_timeout_info_status_dropped_timeout_v(void)
352{
353 return 0x00000003U;
354}
355static inline u32 fifo_intr_pbdma_id_r(void)
356{
357 return 0x000025a0U;
358}
359static inline u32 fifo_intr_pbdma_id_status_f(u32 v, u32 i)
360{
361 return (v & 0x1U) << (0U + i*1U);
362}
363static inline u32 fifo_intr_pbdma_id_status_v(u32 r, u32 i)
364{
365 return (r >> (0U + i*1U)) & 0x1U;
366}
367static inline u32 fifo_intr_pbdma_id_status__size_1_v(void)
368{
369 return 0x00000003U;
370}
371static inline u32 fifo_intr_runlist_r(void)
372{
373 return 0x00002a00U;
374}
375static inline u32 fifo_fb_timeout_r(void)
376{
377 return 0x00002a04U;
378}
379static inline u32 fifo_fb_timeout_period_m(void)
380{
381 return 0x3fffffffU << 0U;
382}
383static inline u32 fifo_fb_timeout_period_max_f(void)
384{
385 return 0x3fffffffU;
386}
387static inline u32 fifo_fb_timeout_period_init_f(void)
388{
389 return 0x3c00U;
390}
391static inline u32 fifo_fb_timeout_detection_m(void)
392{
393 return 0x1U << 31U;
394}
395static inline u32 fifo_fb_timeout_detection_enabled_f(void)
396{
397 return 0x80000000U;
398}
399static inline u32 fifo_fb_timeout_detection_disabled_f(void)
400{
401 return 0x0U;
402}
403static inline u32 fifo_sched_disable_r(void)
404{
405 return 0x00002630U;
406}
407static inline u32 fifo_sched_disable_runlist_f(u32 v, u32 i)
408{
409 return (v & 0x1U) << (0U + i*1U);
410}
411static inline u32 fifo_sched_disable_runlist_m(u32 i)
412{
413 return 0x1U << (0U + i*1U);
414}
415static inline u32 fifo_sched_disable_true_v(void)
416{
417 return 0x00000001U;
418}
419static inline u32 fifo_runlist_preempt_r(void)
420{
421 return 0x00002638U;
422}
423static inline u32 fifo_runlist_preempt_runlist_f(u32 v, u32 i)
424{
425 return (v & 0x1U) << (0U + i*1U);
426}
427static inline u32 fifo_runlist_preempt_runlist_m(u32 i)
428{
429 return 0x1U << (0U + i*1U);
430}
431static inline u32 fifo_runlist_preempt_runlist_pending_v(void)
432{
433 return 0x00000001U;
434}
435static inline u32 fifo_preempt_r(void)
436{
437 return 0x00002634U;
438}
439static inline u32 fifo_preempt_pending_true_f(void)
440{
441 return 0x100000U;
442}
443static inline u32 fifo_preempt_type_channel_f(void)
444{
445 return 0x0U;
446}
447static inline u32 fifo_preempt_type_tsg_f(void)
448{
449 return 0x1000000U;
450}
451static inline u32 fifo_preempt_chid_f(u32 v)
452{
453 return (v & 0xfffU) << 0U;
454}
455static inline u32 fifo_preempt_id_f(u32 v)
456{
457 return (v & 0xfffU) << 0U;
458}
459static inline u32 fifo_engine_status_r(u32 i)
460{
461 return 0x00002640U + i*8U;
462}
463static inline u32 fifo_engine_status__size_1_v(void)
464{
465 return 0x00000004U;
466}
467static inline u32 fifo_engine_status_id_v(u32 r)
468{
469 return (r >> 0U) & 0xfffU;
470}
471static inline u32 fifo_engine_status_id_type_v(u32 r)
472{
473 return (r >> 12U) & 0x1U;
474}
475static inline u32 fifo_engine_status_id_type_chid_v(void)
476{
477 return 0x00000000U;
478}
479static inline u32 fifo_engine_status_id_type_tsgid_v(void)
480{
481 return 0x00000001U;
482}
483static inline u32 fifo_engine_status_ctx_status_v(u32 r)
484{
485 return (r >> 13U) & 0x7U;
486}
487static inline u32 fifo_engine_status_ctx_status_valid_v(void)
488{
489 return 0x00000001U;
490}
491static inline u32 fifo_engine_status_ctx_status_ctxsw_load_v(void)
492{
493 return 0x00000005U;
494}
495static inline u32 fifo_engine_status_ctx_status_ctxsw_save_v(void)
496{
497 return 0x00000006U;
498}
499static inline u32 fifo_engine_status_ctx_status_ctxsw_switch_v(void)
500{
501 return 0x00000007U;
502}
503static inline u32 fifo_engine_status_next_id_v(u32 r)
504{
505 return (r >> 16U) & 0xfffU;
506}
507static inline u32 fifo_engine_status_next_id_type_v(u32 r)
508{
509 return (r >> 28U) & 0x1U;
510}
511static inline u32 fifo_engine_status_next_id_type_chid_v(void)
512{
513 return 0x00000000U;
514}
515static inline u32 fifo_engine_status_eng_reload_v(u32 r)
516{
517 return (r >> 29U) & 0x1U;
518}
519static inline u32 fifo_engine_status_faulted_v(u32 r)
520{
521 return (r >> 30U) & 0x1U;
522}
523static inline u32 fifo_engine_status_faulted_true_v(void)
524{
525 return 0x00000001U;
526}
527static inline u32 fifo_engine_status_engine_v(u32 r)
528{
529 return (r >> 31U) & 0x1U;
530}
531static inline u32 fifo_engine_status_engine_idle_v(void)
532{
533 return 0x00000000U;
534}
535static inline u32 fifo_engine_status_engine_busy_v(void)
536{
537 return 0x00000001U;
538}
539static inline u32 fifo_engine_status_ctxsw_v(u32 r)
540{
541 return (r >> 15U) & 0x1U;
542}
543static inline u32 fifo_engine_status_ctxsw_in_progress_v(void)
544{
545 return 0x00000001U;
546}
547static inline u32 fifo_engine_status_ctxsw_in_progress_f(void)
548{
549 return 0x8000U;
550}
551static inline u32 fifo_eng_ctxsw_timeout_r(void)
552{
553 return 0x00002a0cU;
554}
555static inline u32 fifo_eng_ctxsw_timeout_period_f(u32 v)
556{
557 return (v & 0x7fffffffU) << 0U;
558}
559static inline u32 fifo_eng_ctxsw_timeout_period_m(void)
560{
561 return 0x7fffffffU << 0U;
562}
563static inline u32 fifo_eng_ctxsw_timeout_period_v(u32 r)
564{
565 return (r >> 0U) & 0x7fffffffU;
566}
567static inline u32 fifo_eng_ctxsw_timeout_period_init_f(void)
568{
569 return 0x3fffffU;
570}
571static inline u32 fifo_eng_ctxsw_timeout_period_max_f(void)
572{
573 return 0x7fffffffU;
574}
575static inline u32 fifo_eng_ctxsw_timeout_detection_f(u32 v)
576{
577 return (v & 0x1U) << 31U;
578}
579static inline u32 fifo_eng_ctxsw_timeout_detection_m(void)
580{
581 return 0x1U << 31U;
582}
583static inline u32 fifo_eng_ctxsw_timeout_detection_enabled_f(void)
584{
585 return 0x80000000U;
586}
587static inline u32 fifo_eng_ctxsw_timeout_detection_disabled_f(void)
588{
589 return 0x0U;
590}
591static inline u32 fifo_pbdma_status_r(u32 i)
592{
593 return 0x00003080U + i*4U;
594}
595static inline u32 fifo_pbdma_status__size_1_v(void)
596{
597 return 0x00000003U;
598}
599static inline u32 fifo_pbdma_status_id_v(u32 r)
600{
601 return (r >> 0U) & 0xfffU;
602}
603static inline u32 fifo_pbdma_status_id_type_v(u32 r)
604{
605 return (r >> 12U) & 0x1U;
606}
607static inline u32 fifo_pbdma_status_id_type_chid_v(void)
608{
609 return 0x00000000U;
610}
611static inline u32 fifo_pbdma_status_id_type_tsgid_v(void)
612{
613 return 0x00000001U;
614}
615static inline u32 fifo_pbdma_status_chan_status_v(u32 r)
616{
617 return (r >> 13U) & 0x7U;
618}
619static inline u32 fifo_pbdma_status_chan_status_valid_v(void)
620{
621 return 0x00000001U;
622}
623static inline u32 fifo_pbdma_status_chan_status_chsw_load_v(void)
624{
625 return 0x00000005U;
626}
627static inline u32 fifo_pbdma_status_chan_status_chsw_save_v(void)
628{
629 return 0x00000006U;
630}
631static inline u32 fifo_pbdma_status_chan_status_chsw_switch_v(void)
632{
633 return 0x00000007U;
634}
635static inline u32 fifo_pbdma_status_next_id_v(u32 r)
636{
637 return (r >> 16U) & 0xfffU;
638}
639static inline u32 fifo_pbdma_status_next_id_type_v(u32 r)
640{
641 return (r >> 28U) & 0x1U;
642}
643static inline u32 fifo_pbdma_status_next_id_type_chid_v(void)
644{
645 return 0x00000000U;
646}
647static inline u32 fifo_pbdma_status_chsw_v(u32 r)
648{
649 return (r >> 15U) & 0x1U;
650}
651static inline u32 fifo_pbdma_status_chsw_in_progress_v(void)
652{
653 return 0x00000001U;
654}
655static inline u32 fifo_cfg0_r(void)
656{
657 return 0x00002004U;
658}
659static inline u32 fifo_cfg0_num_pbdma_v(u32 r)
660{
661 return (r >> 0U) & 0xffU;
662}
663static inline u32 fifo_cfg0_pbdma_fault_id_v(u32 r)
664{
665 return (r >> 16U) & 0xffU;
666}
667#endif
diff --git a/include/nvgpu/hw/gv11b/hw_flush_gv11b.h b/include/nvgpu/hw/gv11b/hw_flush_gv11b.h
new file mode 100644
index 0000000..45c01de
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_flush_gv11b.h
@@ -0,0 +1,187 @@
1/*
2 * Copyright (c) 2016-2017, 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_flush_gv11b_h_
57#define _hw_flush_gv11b_h_
58
59static inline u32 flush_l2_system_invalidate_r(void)
60{
61 return 0x00070004U;
62}
63static inline u32 flush_l2_system_invalidate_pending_v(u32 r)
64{
65 return (r >> 0U) & 0x1U;
66}
67static inline u32 flush_l2_system_invalidate_pending_busy_v(void)
68{
69 return 0x00000001U;
70}
71static inline u32 flush_l2_system_invalidate_pending_busy_f(void)
72{
73 return 0x1U;
74}
75static inline u32 flush_l2_system_invalidate_outstanding_v(u32 r)
76{
77 return (r >> 1U) & 0x1U;
78}
79static inline u32 flush_l2_system_invalidate_outstanding_true_v(void)
80{
81 return 0x00000001U;
82}
83static inline u32 flush_l2_flush_dirty_r(void)
84{
85 return 0x00070010U;
86}
87static inline u32 flush_l2_flush_dirty_pending_v(u32 r)
88{
89 return (r >> 0U) & 0x1U;
90}
91static inline u32 flush_l2_flush_dirty_pending_empty_v(void)
92{
93 return 0x00000000U;
94}
95static inline u32 flush_l2_flush_dirty_pending_empty_f(void)
96{
97 return 0x0U;
98}
99static inline u32 flush_l2_flush_dirty_pending_busy_v(void)
100{
101 return 0x00000001U;
102}
103static inline u32 flush_l2_flush_dirty_pending_busy_f(void)
104{
105 return 0x1U;
106}
107static inline u32 flush_l2_flush_dirty_outstanding_v(u32 r)
108{
109 return (r >> 1U) & 0x1U;
110}
111static inline u32 flush_l2_flush_dirty_outstanding_false_v(void)
112{
113 return 0x00000000U;
114}
115static inline u32 flush_l2_flush_dirty_outstanding_false_f(void)
116{
117 return 0x0U;
118}
119static inline u32 flush_l2_flush_dirty_outstanding_true_v(void)
120{
121 return 0x00000001U;
122}
123static inline u32 flush_l2_clean_comptags_r(void)
124{
125 return 0x0007000cU;
126}
127static inline u32 flush_l2_clean_comptags_pending_v(u32 r)
128{
129 return (r >> 0U) & 0x1U;
130}
131static inline u32 flush_l2_clean_comptags_pending_empty_v(void)
132{
133 return 0x00000000U;
134}
135static inline u32 flush_l2_clean_comptags_pending_empty_f(void)
136{
137 return 0x0U;
138}
139static inline u32 flush_l2_clean_comptags_pending_busy_v(void)
140{
141 return 0x00000001U;
142}
143static inline u32 flush_l2_clean_comptags_pending_busy_f(void)
144{
145 return 0x1U;
146}
147static inline u32 flush_l2_clean_comptags_outstanding_v(u32 r)
148{
149 return (r >> 1U) & 0x1U;
150}
151static inline u32 flush_l2_clean_comptags_outstanding_false_v(void)
152{
153 return 0x00000000U;
154}
155static inline u32 flush_l2_clean_comptags_outstanding_false_f(void)
156{
157 return 0x0U;
158}
159static inline u32 flush_l2_clean_comptags_outstanding_true_v(void)
160{
161 return 0x00000001U;
162}
163static inline u32 flush_fb_flush_r(void)
164{
165 return 0x00070000U;
166}
167static inline u32 flush_fb_flush_pending_v(u32 r)
168{
169 return (r >> 0U) & 0x1U;
170}
171static inline u32 flush_fb_flush_pending_busy_v(void)
172{
173 return 0x00000001U;
174}
175static inline u32 flush_fb_flush_pending_busy_f(void)
176{
177 return 0x1U;
178}
179static inline u32 flush_fb_flush_outstanding_v(u32 r)
180{
181 return (r >> 1U) & 0x1U;
182}
183static inline u32 flush_fb_flush_outstanding_true_v(void)
184{
185 return 0x00000001U;
186}
187#endif
diff --git a/include/nvgpu/hw/gv11b/hw_fuse_gv11b.h b/include/nvgpu/hw/gv11b/hw_fuse_gv11b.h
new file mode 100644
index 0000000..9395da3
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_fuse_gv11b.h
@@ -0,0 +1,155 @@
1/*
2 * Copyright (c) 2016-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_fuse_gv11b_h_
57#define _hw_fuse_gv11b_h_
58
59static inline u32 fuse_status_opt_gpc_r(void)
60{
61 return 0x00021c1cU;
62}
63static inline u32 fuse_status_opt_tpc_gpc_r(u32 i)
64{
65 return 0x00021c38U + i*4U;
66}
67static inline u32 fuse_ctrl_opt_tpc_gpc_r(u32 i)
68{
69 return 0x00021838U + i*4U;
70}
71static inline u32 fuse_ctrl_opt_ram_svop_pdp_r(void)
72{
73 return 0x00021944U;
74}
75static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_f(u32 v)
76{
77 return (v & 0xffU) << 0U;
78}
79static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_m(void)
80{
81 return 0xffU << 0U;
82}
83static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_v(u32 r)
84{
85 return (r >> 0U) & 0xffU;
86}
87static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_r(void)
88{
89 return 0x00021948U;
90}
91static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_f(u32 v)
92{
93 return (v & 0x1U) << 0U;
94}
95static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_m(void)
96{
97 return 0x1U << 0U;
98}
99static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_yes_f(void)
104{
105 return 0x1U;
106}
107static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_no_f(void)
108{
109 return 0x0U;
110}
111static inline u32 fuse_status_opt_fbio_r(void)
112{
113 return 0x00021c14U;
114}
115static inline u32 fuse_status_opt_fbio_data_f(u32 v)
116{
117 return (v & 0xffffU) << 0U;
118}
119static inline u32 fuse_status_opt_fbio_data_m(void)
120{
121 return 0xffffU << 0U;
122}
123static inline u32 fuse_status_opt_fbio_data_v(u32 r)
124{
125 return (r >> 0U) & 0xffffU;
126}
127static inline u32 fuse_status_opt_rop_l2_fbp_r(u32 i)
128{
129 return 0x00021d70U + i*4U;
130}
131static inline u32 fuse_status_opt_fbp_r(void)
132{
133 return 0x00021d38U;
134}
135static inline u32 fuse_status_opt_fbp_idx_v(u32 r, u32 i)
136{
137 return (r >> (0U + i*1U)) & 0x1U;
138}
139static inline u32 fuse_opt_ecc_en_r(void)
140{
141 return 0x00021228U;
142}
143static inline u32 fuse_opt_feature_fuses_override_disable_r(void)
144{
145 return 0x000213f0U;
146}
147static inline u32 fuse_opt_sec_debug_en_r(void)
148{
149 return 0x00021218U;
150}
151static inline u32 fuse_opt_priv_sec_en_r(void)
152{
153 return 0x00021434U;
154}
155#endif
diff --git a/include/nvgpu/hw/gv11b/hw_gmmu_gv11b.h b/include/nvgpu/hw/gv11b/hw_gmmu_gv11b.h
new file mode 100644
index 0000000..922dd68
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_gmmu_gv11b.h
@@ -0,0 +1,571 @@
1/*
2 * Copyright (c) 2016-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_gmmu_gv11b_h_
57#define _hw_gmmu_gv11b_h_
58
59static inline u32 gmmu_new_pde_is_pte_w(void)
60{
61 return 0U;
62}
63static inline u32 gmmu_new_pde_is_pte_false_f(void)
64{
65 return 0x0U;
66}
67static inline u32 gmmu_new_pde_aperture_w(void)
68{
69 return 0U;
70}
71static inline u32 gmmu_new_pde_aperture_invalid_f(void)
72{
73 return 0x0U;
74}
75static inline u32 gmmu_new_pde_aperture_video_memory_f(void)
76{
77 return 0x2U;
78}
79static inline u32 gmmu_new_pde_aperture_sys_mem_coh_f(void)
80{
81 return 0x4U;
82}
83static inline u32 gmmu_new_pde_aperture_sys_mem_ncoh_f(void)
84{
85 return 0x6U;
86}
87static inline u32 gmmu_new_pde_address_sys_f(u32 v)
88{
89 return (v & 0xffffffU) << 8U;
90}
91static inline u32 gmmu_new_pde_address_sys_w(void)
92{
93 return 0U;
94}
95static inline u32 gmmu_new_pde_vol_w(void)
96{
97 return 0U;
98}
99static inline u32 gmmu_new_pde_vol_true_f(void)
100{
101 return 0x8U;
102}
103static inline u32 gmmu_new_pde_vol_false_f(void)
104{
105 return 0x0U;
106}
107static inline u32 gmmu_new_pde_address_shift_v(void)
108{
109 return 0x0000000cU;
110}
111static inline u32 gmmu_new_pde__size_v(void)
112{
113 return 0x00000008U;
114}
115static inline u32 gmmu_new_dual_pde_is_pte_w(void)
116{
117 return 0U;
118}
119static inline u32 gmmu_new_dual_pde_is_pte_false_f(void)
120{
121 return 0x0U;
122}
123static inline u32 gmmu_new_dual_pde_aperture_big_w(void)
124{
125 return 0U;
126}
127static inline u32 gmmu_new_dual_pde_aperture_big_invalid_f(void)
128{
129 return 0x0U;
130}
131static inline u32 gmmu_new_dual_pde_aperture_big_video_memory_f(void)
132{
133 return 0x2U;
134}
135static inline u32 gmmu_new_dual_pde_aperture_big_sys_mem_coh_f(void)
136{
137 return 0x4U;
138}
139static inline u32 gmmu_new_dual_pde_aperture_big_sys_mem_ncoh_f(void)
140{
141 return 0x6U;
142}
143static inline u32 gmmu_new_dual_pde_address_big_sys_f(u32 v)
144{
145 return (v & 0xfffffffU) << 4U;
146}
147static inline u32 gmmu_new_dual_pde_address_big_sys_w(void)
148{
149 return 0U;
150}
151static inline u32 gmmu_new_dual_pde_aperture_small_w(void)
152{
153 return 2U;
154}
155static inline u32 gmmu_new_dual_pde_aperture_small_invalid_f(void)
156{
157 return 0x0U;
158}
159static inline u32 gmmu_new_dual_pde_aperture_small_video_memory_f(void)
160{
161 return 0x2U;
162}
163static inline u32 gmmu_new_dual_pde_aperture_small_sys_mem_coh_f(void)
164{
165 return 0x4U;
166}
167static inline u32 gmmu_new_dual_pde_aperture_small_sys_mem_ncoh_f(void)
168{
169 return 0x6U;
170}
171static inline u32 gmmu_new_dual_pde_vol_small_w(void)
172{
173 return 2U;
174}
175static inline u32 gmmu_new_dual_pde_vol_small_true_f(void)
176{
177 return 0x8U;
178}
179static inline u32 gmmu_new_dual_pde_vol_small_false_f(void)
180{
181 return 0x0U;
182}
183static inline u32 gmmu_new_dual_pde_vol_big_w(void)
184{
185 return 0U;
186}
187static inline u32 gmmu_new_dual_pde_vol_big_true_f(void)
188{
189 return 0x8U;
190}
191static inline u32 gmmu_new_dual_pde_vol_big_false_f(void)
192{
193 return 0x0U;
194}
195static inline u32 gmmu_new_dual_pde_address_small_sys_f(u32 v)
196{
197 return (v & 0xffffffU) << 8U;
198}
199static inline u32 gmmu_new_dual_pde_address_small_sys_w(void)
200{
201 return 2U;
202}
203static inline u32 gmmu_new_dual_pde_address_shift_v(void)
204{
205 return 0x0000000cU;
206}
207static inline u32 gmmu_new_dual_pde_address_big_shift_v(void)
208{
209 return 0x00000008U;
210}
211static inline u32 gmmu_new_dual_pde__size_v(void)
212{
213 return 0x00000010U;
214}
215static inline u32 gmmu_new_pte__size_v(void)
216{
217 return 0x00000008U;
218}
219static inline u32 gmmu_new_pte_valid_w(void)
220{
221 return 0U;
222}
223static inline u32 gmmu_new_pte_valid_true_f(void)
224{
225 return 0x1U;
226}
227static inline u32 gmmu_new_pte_valid_false_f(void)
228{
229 return 0x0U;
230}
231static inline u32 gmmu_new_pte_privilege_w(void)
232{
233 return 0U;
234}
235static inline u32 gmmu_new_pte_privilege_true_f(void)
236{
237 return 0x20U;
238}
239static inline u32 gmmu_new_pte_privilege_false_f(void)
240{
241 return 0x0U;
242}
243static inline u32 gmmu_new_pte_address_sys_f(u32 v)
244{
245 return (v & 0xffffffU) << 8U;
246}
247static inline u32 gmmu_new_pte_address_sys_w(void)
248{
249 return 0U;
250}
251static inline u32 gmmu_new_pte_address_vid_f(u32 v)
252{
253 return (v & 0xffffffU) << 8U;
254}
255static inline u32 gmmu_new_pte_address_vid_w(void)
256{
257 return 0U;
258}
259static inline u32 gmmu_new_pte_vol_w(void)
260{
261 return 0U;
262}
263static inline u32 gmmu_new_pte_vol_true_f(void)
264{
265 return 0x8U;
266}
267static inline u32 gmmu_new_pte_vol_false_f(void)
268{
269 return 0x0U;
270}
271static inline u32 gmmu_new_pte_aperture_w(void)
272{
273 return 0U;
274}
275static inline u32 gmmu_new_pte_aperture_video_memory_f(void)
276{
277 return 0x0U;
278}
279static inline u32 gmmu_new_pte_aperture_sys_mem_coh_f(void)
280{
281 return 0x4U;
282}
283static inline u32 gmmu_new_pte_aperture_sys_mem_ncoh_f(void)
284{
285 return 0x6U;
286}
287static inline u32 gmmu_new_pte_read_only_w(void)
288{
289 return 0U;
290}
291static inline u32 gmmu_new_pte_read_only_true_f(void)
292{
293 return 0x40U;
294}
295static inline u32 gmmu_new_pte_comptagline_f(u32 v)
296{
297 return (v & 0x3ffffU) << 4U;
298}
299static inline u32 gmmu_new_pte_comptagline_w(void)
300{
301 return 1U;
302}
303static inline u32 gmmu_new_pte_kind_f(u32 v)
304{
305 return (v & 0xffU) << 24U;
306}
307static inline u32 gmmu_new_pte_kind_w(void)
308{
309 return 1U;
310}
311static inline u32 gmmu_new_pte_address_shift_v(void)
312{
313 return 0x0000000cU;
314}
315static inline u32 gmmu_pte_kind_f(u32 v)
316{
317 return (v & 0xffU) << 4U;
318}
319static inline u32 gmmu_pte_kind_w(void)
320{
321 return 1U;
322}
323static inline u32 gmmu_pte_kind_invalid_v(void)
324{
325 return 0x000000ffU;
326}
327static inline u32 gmmu_pte_kind_pitch_v(void)
328{
329 return 0x00000000U;
330}
331static inline u32 gmmu_fault_client_type_gpc_v(void)
332{
333 return 0x00000000U;
334}
335static inline u32 gmmu_fault_client_type_hub_v(void)
336{
337 return 0x00000001U;
338}
339static inline u32 gmmu_fault_type_unbound_inst_block_v(void)
340{
341 return 0x00000004U;
342}
343static inline u32 gmmu_fault_type_pte_v(void)
344{
345 return 0x00000002U;
346}
347static inline u32 gmmu_fault_mmu_eng_id_bar2_v(void)
348{
349 return 0x00000005U;
350}
351static inline u32 gmmu_fault_mmu_eng_id_physical_v(void)
352{
353 return 0x0000001fU;
354}
355static inline u32 gmmu_fault_mmu_eng_id_ce0_v(void)
356{
357 return 0x0000000fU;
358}
359static inline u32 gmmu_fault_buf_size_v(void)
360{
361 return 0x00000020U;
362}
363static inline u32 gmmu_fault_buf_entry_inst_aperture_v(u32 r)
364{
365 return (r >> 8U) & 0x3U;
366}
367static inline u32 gmmu_fault_buf_entry_inst_aperture_w(void)
368{
369 return 0U;
370}
371static inline u32 gmmu_fault_buf_entry_inst_aperture_vid_mem_v(void)
372{
373 return 0x00000000U;
374}
375static inline u32 gmmu_fault_buf_entry_inst_aperture_sys_coh_v(void)
376{
377 return 0x00000002U;
378}
379static inline u32 gmmu_fault_buf_entry_inst_aperture_sys_nocoh_v(void)
380{
381 return 0x00000003U;
382}
383static inline u32 gmmu_fault_buf_entry_inst_lo_f(u32 v)
384{
385 return (v & 0xfffffU) << 12U;
386}
387static inline u32 gmmu_fault_buf_entry_inst_lo_v(u32 r)
388{
389 return (r >> 12U) & 0xfffffU;
390}
391static inline u32 gmmu_fault_buf_entry_inst_lo_b(void)
392{
393 return 12U;
394}
395static inline u32 gmmu_fault_buf_entry_inst_lo_w(void)
396{
397 return 0U;
398}
399static inline u32 gmmu_fault_buf_entry_inst_hi_v(u32 r)
400{
401 return (r >> 0U) & 0xffffffffU;
402}
403static inline u32 gmmu_fault_buf_entry_inst_hi_w(void)
404{
405 return 1U;
406}
407static inline u32 gmmu_fault_buf_entry_addr_phys_aperture_v(u32 r)
408{
409 return (r >> 0U) & 0x3U;
410}
411static inline u32 gmmu_fault_buf_entry_addr_phys_aperture_w(void)
412{
413 return 2U;
414}
415static inline u32 gmmu_fault_buf_entry_addr_lo_f(u32 v)
416{
417 return (v & 0xfffffU) << 12U;
418}
419static inline u32 gmmu_fault_buf_entry_addr_lo_v(u32 r)
420{
421 return (r >> 12U) & 0xfffffU;
422}
423static inline u32 gmmu_fault_buf_entry_addr_lo_b(void)
424{
425 return 12U;
426}
427static inline u32 gmmu_fault_buf_entry_addr_lo_w(void)
428{
429 return 2U;
430}
431static inline u32 gmmu_fault_buf_entry_addr_hi_v(u32 r)
432{
433 return (r >> 0U) & 0xffffffffU;
434}
435static inline u32 gmmu_fault_buf_entry_addr_hi_w(void)
436{
437 return 3U;
438}
439static inline u32 gmmu_fault_buf_entry_timestamp_lo_v(u32 r)
440{
441 return (r >> 0U) & 0xffffffffU;
442}
443static inline u32 gmmu_fault_buf_entry_timestamp_lo_w(void)
444{
445 return 4U;
446}
447static inline u32 gmmu_fault_buf_entry_timestamp_hi_v(u32 r)
448{
449 return (r >> 0U) & 0xffffffffU;
450}
451static inline u32 gmmu_fault_buf_entry_timestamp_hi_w(void)
452{
453 return 5U;
454}
455static inline u32 gmmu_fault_buf_entry_engine_id_v(u32 r)
456{
457 return (r >> 0U) & 0x1ffU;
458}
459static inline u32 gmmu_fault_buf_entry_engine_id_w(void)
460{
461 return 6U;
462}
463static inline u32 gmmu_fault_buf_entry_fault_type_v(u32 r)
464{
465 return (r >> 0U) & 0x1fU;
466}
467static inline u32 gmmu_fault_buf_entry_fault_type_w(void)
468{
469 return 7U;
470}
471static inline u32 gmmu_fault_buf_entry_replayable_fault_v(u32 r)
472{
473 return (r >> 7U) & 0x1U;
474}
475static inline u32 gmmu_fault_buf_entry_replayable_fault_w(void)
476{
477 return 7U;
478}
479static inline u32 gmmu_fault_buf_entry_replayable_fault_true_v(void)
480{
481 return 0x00000001U;
482}
483static inline u32 gmmu_fault_buf_entry_replayable_fault_true_f(void)
484{
485 return 0x80U;
486}
487static inline u32 gmmu_fault_buf_entry_client_v(u32 r)
488{
489 return (r >> 8U) & 0x7fU;
490}
491static inline u32 gmmu_fault_buf_entry_client_w(void)
492{
493 return 7U;
494}
495static inline u32 gmmu_fault_buf_entry_access_type_v(u32 r)
496{
497 return (r >> 16U) & 0xfU;
498}
499static inline u32 gmmu_fault_buf_entry_access_type_w(void)
500{
501 return 7U;
502}
503static inline u32 gmmu_fault_buf_entry_mmu_client_type_v(u32 r)
504{
505 return (r >> 20U) & 0x1U;
506}
507static inline u32 gmmu_fault_buf_entry_mmu_client_type_w(void)
508{
509 return 7U;
510}
511static inline u32 gmmu_fault_buf_entry_gpc_id_v(u32 r)
512{
513 return (r >> 24U) & 0x1fU;
514}
515static inline u32 gmmu_fault_buf_entry_gpc_id_w(void)
516{
517 return 7U;
518}
519static inline u32 gmmu_fault_buf_entry_protected_mode_v(u32 r)
520{
521 return (r >> 29U) & 0x1U;
522}
523static inline u32 gmmu_fault_buf_entry_protected_mode_w(void)
524{
525 return 7U;
526}
527static inline u32 gmmu_fault_buf_entry_protected_mode_true_v(void)
528{
529 return 0x00000001U;
530}
531static inline u32 gmmu_fault_buf_entry_protected_mode_true_f(void)
532{
533 return 0x20000000U;
534}
535static inline u32 gmmu_fault_buf_entry_replayable_fault_en_v(u32 r)
536{
537 return (r >> 30U) & 0x1U;
538}
539static inline u32 gmmu_fault_buf_entry_replayable_fault_en_w(void)
540{
541 return 7U;
542}
543static inline u32 gmmu_fault_buf_entry_replayable_fault_en_true_v(void)
544{
545 return 0x00000001U;
546}
547static inline u32 gmmu_fault_buf_entry_replayable_fault_en_true_f(void)
548{
549 return 0x40000000U;
550}
551static inline u32 gmmu_fault_buf_entry_valid_m(void)
552{
553 return 0x1U << 31U;
554}
555static inline u32 gmmu_fault_buf_entry_valid_v(u32 r)
556{
557 return (r >> 31U) & 0x1U;
558}
559static inline u32 gmmu_fault_buf_entry_valid_w(void)
560{
561 return 7U;
562}
563static inline u32 gmmu_fault_buf_entry_valid_true_v(void)
564{
565 return 0x00000001U;
566}
567static inline u32 gmmu_fault_buf_entry_valid_true_f(void)
568{
569 return 0x80000000U;
570}
571#endif
diff --git a/include/nvgpu/hw/gv11b/hw_gr_gv11b.h b/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
new file mode 100644
index 0000000..f7d8089
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
@@ -0,0 +1,5699 @@
1/*
2 * Copyright (c) 2016-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_gr_gv11b_h_
57#define _hw_gr_gv11b_h_
58
59static inline u32 gr_intr_r(void)
60{
61 return 0x00400100U;
62}
63static inline u32 gr_intr_notify_pending_f(void)
64{
65 return 0x1U;
66}
67static inline u32 gr_intr_notify_reset_f(void)
68{
69 return 0x1U;
70}
71static inline u32 gr_intr_semaphore_pending_f(void)
72{
73 return 0x2U;
74}
75static inline u32 gr_intr_semaphore_reset_f(void)
76{
77 return 0x2U;
78}
79static inline u32 gr_intr_illegal_method_pending_f(void)
80{
81 return 0x10U;
82}
83static inline u32 gr_intr_illegal_method_reset_f(void)
84{
85 return 0x10U;
86}
87static inline u32 gr_intr_illegal_notify_pending_f(void)
88{
89 return 0x40U;
90}
91static inline u32 gr_intr_illegal_notify_reset_f(void)
92{
93 return 0x40U;
94}
95static inline u32 gr_intr_firmware_method_f(u32 v)
96{
97 return (v & 0x1U) << 8U;
98}
99static inline u32 gr_intr_firmware_method_pending_f(void)
100{
101 return 0x100U;
102}
103static inline u32 gr_intr_firmware_method_reset_f(void)
104{
105 return 0x100U;
106}
107static inline u32 gr_intr_illegal_class_pending_f(void)
108{
109 return 0x20U;
110}
111static inline u32 gr_intr_illegal_class_reset_f(void)
112{
113 return 0x20U;
114}
115static inline u32 gr_intr_fecs_error_pending_f(void)
116{
117 return 0x80000U;
118}
119static inline u32 gr_intr_fecs_error_reset_f(void)
120{
121 return 0x80000U;
122}
123static inline u32 gr_intr_class_error_pending_f(void)
124{
125 return 0x100000U;
126}
127static inline u32 gr_intr_class_error_reset_f(void)
128{
129 return 0x100000U;
130}
131static inline u32 gr_intr_exception_pending_f(void)
132{
133 return 0x200000U;
134}
135static inline u32 gr_intr_exception_reset_f(void)
136{
137 return 0x200000U;
138}
139static inline u32 gr_fecs_intr_r(void)
140{
141 return 0x00400144U;
142}
143static inline u32 gr_class_error_r(void)
144{
145 return 0x00400110U;
146}
147static inline u32 gr_class_error_code_v(u32 r)
148{
149 return (r >> 0U) & 0xffffU;
150}
151static inline u32 gr_intr_nonstall_r(void)
152{
153 return 0x00400120U;
154}
155static inline u32 gr_intr_nonstall_trap_pending_f(void)
156{
157 return 0x2U;
158}
159static inline u32 gr_intr_en_r(void)
160{
161 return 0x0040013cU;
162}
163static inline u32 gr_exception_r(void)
164{
165 return 0x00400108U;
166}
167static inline u32 gr_exception_fe_m(void)
168{
169 return 0x1U << 0U;
170}
171static inline u32 gr_exception_gpc_m(void)
172{
173 return 0x1U << 24U;
174}
175static inline u32 gr_exception_memfmt_m(void)
176{
177 return 0x1U << 1U;
178}
179static inline u32 gr_exception_ds_m(void)
180{
181 return 0x1U << 4U;
182}
183static inline u32 gr_exception_sked_m(void)
184{
185 return 0x1U << 8U;
186}
187static inline u32 gr_exception_pd_m(void)
188{
189 return 0x1U << 2U;
190}
191static inline u32 gr_exception_scc_m(void)
192{
193 return 0x1U << 3U;
194}
195static inline u32 gr_exception_ssync_m(void)
196{
197 return 0x1U << 5U;
198}
199static inline u32 gr_exception_mme_m(void)
200{
201 return 0x1U << 7U;
202}
203static inline u32 gr_exception1_r(void)
204{
205 return 0x00400118U;
206}
207static inline u32 gr_exception1_gpc_0_pending_f(void)
208{
209 return 0x1U;
210}
211static inline u32 gr_exception2_r(void)
212{
213 return 0x0040011cU;
214}
215static inline u32 gr_exception_en_r(void)
216{
217 return 0x00400138U;
218}
219static inline u32 gr_exception_en_fe_m(void)
220{
221 return 0x1U << 0U;
222}
223static inline u32 gr_exception_en_fe_enabled_f(void)
224{
225 return 0x1U;
226}
227static inline u32 gr_exception_en_gpc_m(void)
228{
229 return 0x1U << 24U;
230}
231static inline u32 gr_exception_en_gpc_enabled_f(void)
232{
233 return 0x1000000U;
234}
235static inline u32 gr_exception_en_memfmt_m(void)
236{
237 return 0x1U << 1U;
238}
239static inline u32 gr_exception_en_memfmt_enabled_f(void)
240{
241 return 0x2U;
242}
243static inline u32 gr_exception_en_ds_m(void)
244{
245 return 0x1U << 4U;
246}
247static inline u32 gr_exception_en_ds_enabled_f(void)
248{
249 return 0x10U;
250}
251static inline u32 gr_exception_en_pd_m(void)
252{
253 return 0x1U << 2U;
254}
255static inline u32 gr_exception_en_pd_enabled_f(void)
256{
257 return 0x4U;
258}
259static inline u32 gr_exception_en_scc_m(void)
260{
261 return 0x1U << 3U;
262}
263static inline u32 gr_exception_en_scc_enabled_f(void)
264{
265 return 0x8U;
266}
267static inline u32 gr_exception_en_ssync_m(void)
268{
269 return 0x1U << 5U;
270}
271static inline u32 gr_exception_en_ssync_enabled_f(void)
272{
273 return 0x20U;
274}
275static inline u32 gr_exception_en_mme_m(void)
276{
277 return 0x1U << 7U;
278}
279static inline u32 gr_exception_en_mme_enabled_f(void)
280{
281 return 0x80U;
282}
283static inline u32 gr_exception_en_sked_m(void)
284{
285 return 0x1U << 8U;
286}
287static inline u32 gr_exception_en_sked_enabled_f(void)
288{
289 return 0x100U;
290}
291static inline u32 gr_exception1_en_r(void)
292{
293 return 0x00400130U;
294}
295static inline u32 gr_exception2_en_r(void)
296{
297 return 0x00400134U;
298}
299static inline u32 gr_gpfifo_ctl_r(void)
300{
301 return 0x00400500U;
302}
303static inline u32 gr_gpfifo_ctl_access_f(u32 v)
304{
305 return (v & 0x1U) << 0U;
306}
307static inline u32 gr_gpfifo_ctl_access_disabled_f(void)
308{
309 return 0x0U;
310}
311static inline u32 gr_gpfifo_ctl_access_enabled_f(void)
312{
313 return 0x1U;
314}
315static inline u32 gr_gpfifo_ctl_semaphore_access_f(u32 v)
316{
317 return (v & 0x1U) << 16U;
318}
319static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_v(void)
320{
321 return 0x00000001U;
322}
323static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_f(void)
324{
325 return 0x10000U;
326}
327static inline u32 gr_gpfifo_status_r(void)
328{
329 return 0x00400504U;
330}
331static inline u32 gr_trapped_addr_r(void)
332{
333 return 0x00400704U;
334}
335static inline u32 gr_trapped_addr_mthd_v(u32 r)
336{
337 return (r >> 2U) & 0xfffU;
338}
339static inline u32 gr_trapped_addr_subch_v(u32 r)
340{
341 return (r >> 16U) & 0x7U;
342}
343static inline u32 gr_trapped_addr_mme_generated_v(u32 r)
344{
345 return (r >> 20U) & 0x1U;
346}
347static inline u32 gr_trapped_addr_datahigh_v(u32 r)
348{
349 return (r >> 24U) & 0x1U;
350}
351static inline u32 gr_trapped_addr_priv_v(u32 r)
352{
353 return (r >> 28U) & 0x1U;
354}
355static inline u32 gr_trapped_addr_status_v(u32 r)
356{
357 return (r >> 31U) & 0x1U;
358}
359static inline u32 gr_trapped_data_lo_r(void)
360{
361 return 0x00400708U;
362}
363static inline u32 gr_trapped_data_hi_r(void)
364{
365 return 0x0040070cU;
366}
367static inline u32 gr_trapped_data_mme_r(void)
368{
369 return 0x00400710U;
370}
371static inline u32 gr_trapped_data_mme_pc_v(u32 r)
372{
373 return (r >> 0U) & 0xfffU;
374}
375static inline u32 gr_status_r(void)
376{
377 return 0x00400700U;
378}
379static inline u32 gr_status_fe_method_upper_v(u32 r)
380{
381 return (r >> 1U) & 0x1U;
382}
383static inline u32 gr_status_fe_method_lower_v(u32 r)
384{
385 return (r >> 2U) & 0x1U;
386}
387static inline u32 gr_status_fe_method_lower_idle_v(void)
388{
389 return 0x00000000U;
390}
391static inline u32 gr_status_fe_gi_v(u32 r)
392{
393 return (r >> 21U) & 0x1U;
394}
395static inline u32 gr_status_mask_r(void)
396{
397 return 0x00400610U;
398}
399static inline u32 gr_status_1_r(void)
400{
401 return 0x00400604U;
402}
403static inline u32 gr_status_2_r(void)
404{
405 return 0x00400608U;
406}
407static inline u32 gr_engine_status_r(void)
408{
409 return 0x0040060cU;
410}
411static inline u32 gr_engine_status_value_busy_f(void)
412{
413 return 0x1U;
414}
415static inline u32 gr_pri_be0_becs_be_exception_r(void)
416{
417 return 0x00410204U;
418}
419static inline u32 gr_pri_be0_becs_be_exception_en_r(void)
420{
421 return 0x00410208U;
422}
423static inline u32 gr_pri_gpc0_gpccs_gpc_exception_r(void)
424{
425 return 0x00502c90U;
426}
427static inline u32 gr_pri_gpc0_gpccs_gpc_exception_en_r(void)
428{
429 return 0x00502c94U;
430}
431static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_r(void)
432{
433 return 0x00504508U;
434}
435static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
436{
437 return 0x0050450cU;
438}
439static inline u32 gr_activity_0_r(void)
440{
441 return 0x00400380U;
442}
443static inline u32 gr_activity_1_r(void)
444{
445 return 0x00400384U;
446}
447static inline u32 gr_activity_2_r(void)
448{
449 return 0x00400388U;
450}
451static inline u32 gr_activity_4_r(void)
452{
453 return 0x00400390U;
454}
455static inline u32 gr_activity_4_gpc0_s(void)
456{
457 return 3U;
458}
459static inline u32 gr_activity_4_gpc0_f(u32 v)
460{
461 return (v & 0x7U) << 0U;
462}
463static inline u32 gr_activity_4_gpc0_m(void)
464{
465 return 0x7U << 0U;
466}
467static inline u32 gr_activity_4_gpc0_v(u32 r)
468{
469 return (r >> 0U) & 0x7U;
470}
471static inline u32 gr_activity_4_gpc0_empty_v(void)
472{
473 return 0x00000000U;
474}
475static inline u32 gr_activity_4_gpc0_preempted_v(void)
476{
477 return 0x00000004U;
478}
479static inline u32 gr_pri_gpc0_gcc_dbg_r(void)
480{
481 return 0x00501000U;
482}
483static inline u32 gr_pri_gpcs_gcc_dbg_r(void)
484{
485 return 0x00419000U;
486}
487static inline u32 gr_pri_gpcs_gcc_dbg_invalidate_m(void)
488{
489 return 0x1U << 1U;
490}
491static inline u32 gr_pri_gpc0_tpc0_sm_cache_control_r(void)
492{
493 return 0x0050433cU;
494}
495static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_r(void)
496{
497 return 0x00419b3cU;
498}
499static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_invalidate_cache_m(void)
500{
501 return 0x1U << 0U;
502}
503static inline u32 gr_pri_sked_activity_r(void)
504{
505 return 0x00407054U;
506}
507static inline u32 gr_pri_gpc0_gpccs_gpc_activity0_r(void)
508{
509 return 0x00502c80U;
510}
511static inline u32 gr_pri_gpc0_gpccs_gpc_activity1_r(void)
512{
513 return 0x00502c84U;
514}
515static inline u32 gr_pri_gpc0_gpccs_gpc_activity2_r(void)
516{
517 return 0x00502c88U;
518}
519static inline u32 gr_pri_gpc0_gpccs_gpc_activity3_r(void)
520{
521 return 0x00502c8cU;
522}
523static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_activity_0_r(void)
524{
525 return 0x00504500U;
526}
527static inline u32 gr_pri_gpc0_tpc1_tpccs_tpc_activity_0_r(void)
528{
529 return 0x00504d00U;
530}
531static inline u32 gr_pri_gpc0_tpcs_tpccs_tpc_activity_0_r(void)
532{
533 return 0x00501d00U;
534}
535static inline u32 gr_pri_gpcs_gpccs_gpc_activity_0_r(void)
536{
537 return 0x0041ac80U;
538}
539static inline u32 gr_pri_gpcs_gpccs_gpc_activity_1_r(void)
540{
541 return 0x0041ac84U;
542}
543static inline u32 gr_pri_gpcs_gpccs_gpc_activity_2_r(void)
544{
545 return 0x0041ac88U;
546}
547static inline u32 gr_pri_gpcs_gpccs_gpc_activity_3_r(void)
548{
549 return 0x0041ac8cU;
550}
551static inline u32 gr_pri_gpcs_tpc0_tpccs_tpc_activity_0_r(void)
552{
553 return 0x0041c500U;
554}
555static inline u32 gr_pri_gpcs_tpc1_tpccs_tpc_activity_0_r(void)
556{
557 return 0x0041cd00U;
558}
559static inline u32 gr_pri_gpcs_tpcs_tpccs_tpc_activity_0_r(void)
560{
561 return 0x00419d00U;
562}
563static inline u32 gr_pri_be0_becs_be_activity0_r(void)
564{
565 return 0x00410200U;
566}
567static inline u32 gr_pri_be1_becs_be_activity0_r(void)
568{
569 return 0x00410600U;
570}
571static inline u32 gr_pri_bes_becs_be_activity0_r(void)
572{
573 return 0x00408a00U;
574}
575static inline u32 gr_pri_ds_mpipe_status_r(void)
576{
577 return 0x00405858U;
578}
579static inline u32 gr_pri_fe_go_idle_info_r(void)
580{
581 return 0x00404194U;
582}
583static inline u32 gr_pri_fe_chip_def_info_r(void)
584{
585 return 0x00404030U;
586}
587static inline u32 gr_pri_fe_chip_def_info_max_veid_count_v(u32 r)
588{
589 return (r >> 0U) & 0xfffU;
590}
591static inline u32 gr_pri_fe_chip_def_info_max_veid_count_init_v(void)
592{
593 return 0x00000040U;
594}
595static inline u32 gr_pri_gpc0_tpc0_tex_m_tex_subunits_status_r(void)
596{
597 return 0x00504238U;
598}
599static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_r(void)
600{
601 return 0x00504358U;
602}
603static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp0_m(void)
604{
605 return 0x1U << 0U;
606}
607static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp1_m(void)
608{
609 return 0x1U << 1U;
610}
611static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp2_m(void)
612{
613 return 0x1U << 2U;
614}
615static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp3_m(void)
616{
617 return 0x1U << 3U;
618}
619static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp4_m(void)
620{
621 return 0x1U << 4U;
622}
623static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp5_m(void)
624{
625 return 0x1U << 5U;
626}
627static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp6_m(void)
628{
629 return 0x1U << 6U;
630}
631static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp7_m(void)
632{
633 return 0x1U << 7U;
634}
635static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp0_m(void)
636{
637 return 0x1U << 8U;
638}
639static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp1_m(void)
640{
641 return 0x1U << 9U;
642}
643static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp2_m(void)
644{
645 return 0x1U << 10U;
646}
647static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp3_m(void)
648{
649 return 0x1U << 11U;
650}
651static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp4_m(void)
652{
653 return 0x1U << 12U;
654}
655static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp5_m(void)
656{
657 return 0x1U << 13U;
658}
659static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp6_m(void)
660{
661 return 0x1U << 14U;
662}
663static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp7_m(void)
664{
665 return 0x1U << 15U;
666}
667static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_total_counter_overflow_v(u32 r)
668{
669 return (r >> 24U) & 0x1U;
670}
671static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r)
672{
673 return (r >> 26U) & 0x1U;
674}
675static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_reset_task_f(void)
676{
677 return 0x40000000U;
678}
679static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_corrected_err_count_r(void)
680{
681 return 0x0050435cU;
682}
683static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_corrected_err_count_total_s(void)
684{
685 return 16U;
686}
687static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_corrected_err_count_total_v(u32 r)
688{
689 return (r >> 0U) & 0xffffU;
690}
691static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_uncorrected_err_count_r(void)
692{
693 return 0x00504360U;
694}
695static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_uncorrected_err_count_total_s(void)
696{
697 return 16U;
698}
699static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_uncorrected_err_count_total_v(u32 r)
700{
701 return (r >> 0U) & 0xffffU;
702}
703static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_r(void)
704{
705 return 0x0050436cU;
706}
707static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_corrected_err_el1_0_m(void)
708{
709 return 0x1U << 0U;
710}
711static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_corrected_err_el1_1_m(void)
712{
713 return 0x1U << 1U;
714}
715static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_uncorrected_err_el1_0_m(void)
716{
717 return 0x1U << 2U;
718}
719static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_uncorrected_err_el1_1_m(void)
720{
721 return 0x1U << 3U;
722}
723static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_corrected_err_total_counter_overflow_v(u32 r)
724{
725 return (r >> 8U) & 0x1U;
726}
727static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r)
728{
729 return (r >> 10U) & 0x1U;
730}
731static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_reset_task_f(void)
732{
733 return 0x40000000U;
734}
735static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_corrected_err_count_r(void)
736{
737 return 0x00504370U;
738}
739static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_corrected_err_count_total_s(void)
740{
741 return 16U;
742}
743static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_corrected_err_count_total_v(u32 r)
744{
745 return (r >> 0U) & 0xffffU;
746}
747static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_uncorrected_err_count_r(void)
748{
749 return 0x00504374U;
750}
751static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_uncorrected_err_count_total_s(void)
752{
753 return 16U;
754}
755static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_uncorrected_err_count_total_v(u32 r)
756{
757 return (r >> 0U) & 0xffffU;
758}
759static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_r(void)
760{
761 return 0x0050464cU;
762}
763static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_corrected_err_l0_data_m(void)
764{
765 return 0x1U << 0U;
766}
767static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_corrected_err_l0_predecode_m(void)
768{
769 return 0x1U << 1U;
770}
771static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_corrected_err_l1_data_m(void)
772{
773 return 0x1U << 2U;
774}
775static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_corrected_err_l1_predecode_m(void)
776{
777 return 0x1U << 3U;
778}
779static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_uncorrected_err_l0_data_m(void)
780{
781 return 0x1U << 4U;
782}
783static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_uncorrected_err_l0_predecode_m(void)
784{
785 return 0x1U << 5U;
786}
787static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_uncorrected_err_l1_data_m(void)
788{
789 return 0x1U << 6U;
790}
791static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_uncorrected_err_l1_predecode_m(void)
792{
793 return 0x1U << 7U;
794}
795static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_corrected_err_total_counter_overflow_v(u32 r)
796{
797 return (r >> 16U) & 0x1U;
798}
799static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r)
800{
801 return (r >> 18U) & 0x1U;
802}
803static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_reset_task_f(void)
804{
805 return 0x40000000U;
806}
807static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_corrected_err_count_r(void)
808{
809 return 0x00504650U;
810}
811static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_corrected_err_count_total_s(void)
812{
813 return 16U;
814}
815static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_corrected_err_count_total_v(u32 r)
816{
817 return (r >> 0U) & 0xffffU;
818}
819static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_uncorrected_err_count_r(void)
820{
821 return 0x00504654U;
822}
823static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_uncorrected_err_count_total_s(void)
824{
825 return 16U;
826}
827static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_uncorrected_err_count_total_v(u32 r)
828{
829 return (r >> 0U) & 0xffffU;
830}
831static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_r(void)
832{
833 return 0x00504624U;
834}
835static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_corrected_err_el1_0_m(void)
836{
837 return 0x1U << 0U;
838}
839static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_corrected_err_el1_1_m(void)
840{
841 return 0x1U << 1U;
842}
843static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_uncorrected_err_el1_0_m(void)
844{
845 return 0x1U << 2U;
846}
847static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_uncorrected_err_el1_1_m(void)
848{
849 return 0x1U << 3U;
850}
851static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_corrected_err_pixrpf_m(void)
852{
853 return 0x1U << 4U;
854}
855static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_corrected_err_miss_fifo_m(void)
856{
857 return 0x1U << 5U;
858}
859static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_uncorrected_err_pixrpf_m(void)
860{
861 return 0x1U << 6U;
862}
863static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_uncorrected_err_miss_fifo_m(void)
864{
865 return 0x1U << 7U;
866}
867static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_corrected_err_total_counter_overflow_v(u32 r)
868{
869 return (r >> 8U) & 0x1U;
870}
871static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r)
872{
873 return (r >> 10U) & 0x1U;
874}
875static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_reset_task_f(void)
876{
877 return 0x40000000U;
878}
879static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_corrected_err_count_r(void)
880{
881 return 0x00504628U;
882}
883static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_corrected_err_count_total_s(void)
884{
885 return 16U;
886}
887static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_corrected_err_count_total_v(u32 r)
888{
889 return (r >> 0U) & 0xffffU;
890}
891static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_uncorrected_err_count_r(void)
892{
893 return 0x0050462cU;
894}
895static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_uncorrected_err_count_total_s(void)
896{
897 return 16U;
898}
899static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_uncorrected_err_count_total_v(u32 r)
900{
901 return (r >> 0U) & 0xffffU;
902}
903static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_r(void)
904{
905 return 0x00504638U;
906}
907static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_warp_sm0_m(void)
908{
909 return 0x1U << 0U;
910}
911static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_warp_sm1_m(void)
912{
913 return 0x1U << 1U;
914}
915static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_barrier_sm0_m(void)
916{
917 return 0x1U << 2U;
918}
919static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_barrier_sm1_m(void)
920{
921 return 0x1U << 3U;
922}
923static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_warp_sm0_m(void)
924{
925 return 0x1U << 4U;
926}
927static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_warp_sm1_m(void)
928{
929 return 0x1U << 5U;
930}
931static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_barrier_sm0_m(void)
932{
933 return 0x1U << 6U;
934}
935static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_barrier_sm1_m(void)
936{
937 return 0x1U << 7U;
938}
939static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_total_counter_overflow_v(u32 r)
940{
941 return (r >> 16U) & 0x1U;
942}
943static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r)
944{
945 return (r >> 18U) & 0x1U;
946}
947static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_reset_task_f(void)
948{
949 return 0x40000000U;
950}
951static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_corrected_err_count_r(void)
952{
953 return 0x0050463cU;
954}
955static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_corrected_err_count_total_s(void)
956{
957 return 16U;
958}
959static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_corrected_err_count_total_v(u32 r)
960{
961 return (r >> 0U) & 0xffffU;
962}
963static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_uncorrected_err_count_r(void)
964{
965 return 0x00504640U;
966}
967static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_uncorrected_err_count_total_s(void)
968{
969 return 16U;
970}
971static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_uncorrected_err_count_total_v(u32 r)
972{
973 return (r >> 0U) & 0xffffU;
974}
975static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_r(void)
976{
977 return 0x00419b54U;
978}
979static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp0_f(u32 v)
980{
981 return (v & 0x1U) << 0U;
982}
983static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp0_task_f(void)
984{
985 return 0x1U;
986}
987static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp1_f(u32 v)
988{
989 return (v & 0x1U) << 1U;
990}
991static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp1_task_f(void)
992{
993 return 0x2U;
994}
995static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp2_f(u32 v)
996{
997 return (v & 0x1U) << 2U;
998}
999static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp2_task_f(void)
1000{
1001 return 0x4U;
1002}
1003static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp3_f(u32 v)
1004{
1005 return (v & 0x1U) << 3U;
1006}
1007static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp3_task_f(void)
1008{
1009 return 0x8U;
1010}
1011static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp4_f(u32 v)
1012{
1013 return (v & 0x1U) << 4U;
1014}
1015static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp4_task_f(void)
1016{
1017 return 0x10U;
1018}
1019static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp5_f(u32 v)
1020{
1021 return (v & 0x1U) << 5U;
1022}
1023static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp5_task_f(void)
1024{
1025 return 0x20U;
1026}
1027static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp6_f(u32 v)
1028{
1029 return (v & 0x1U) << 6U;
1030}
1031static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp6_task_f(void)
1032{
1033 return 0x40U;
1034}
1035static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp7_f(u32 v)
1036{
1037 return (v & 0x1U) << 7U;
1038}
1039static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp7_task_f(void)
1040{
1041 return 0x80U;
1042}
1043static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_r(void)
1044{
1045 return 0x00504354U;
1046}
1047static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp0_f(u32 v)
1048{
1049 return (v & 0x1U) << 0U;
1050}
1051static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp0_init_f(void)
1052{
1053 return 0x0U;
1054}
1055static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp1_f(u32 v)
1056{
1057 return (v & 0x1U) << 1U;
1058}
1059static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp1_init_f(void)
1060{
1061 return 0x0U;
1062}
1063static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp2_f(u32 v)
1064{
1065 return (v & 0x1U) << 2U;
1066}
1067static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp2_init_f(void)
1068{
1069 return 0x0U;
1070}
1071static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp3_f(u32 v)
1072{
1073 return (v & 0x1U) << 3U;
1074}
1075static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp3_init_f(void)
1076{
1077 return 0x0U;
1078}
1079static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp4_f(u32 v)
1080{
1081 return (v & 0x1U) << 4U;
1082}
1083static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp4_init_f(void)
1084{
1085 return 0x0U;
1086}
1087static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp5_f(u32 v)
1088{
1089 return (v & 0x1U) << 5U;
1090}
1091static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp5_init_f(void)
1092{
1093 return 0x0U;
1094}
1095static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp6_f(u32 v)
1096{
1097 return (v & 0x1U) << 6U;
1098}
1099static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp6_init_f(void)
1100{
1101 return 0x0U;
1102}
1103static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp7_f(u32 v)
1104{
1105 return (v & 0x1U) << 7U;
1106}
1107static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp7_init_f(void)
1108{
1109 return 0x0U;
1110}
1111static inline u32 gr_pri_gpcs_tpcs_sm_l1_data_ecc_control_r(void)
1112{
1113 return 0x00419b68U;
1114}
1115static inline u32 gr_pri_gpcs_tpcs_sm_l1_data_ecc_control_scrub_el1_0_f(u32 v)
1116{
1117 return (v & 0x1U) << 0U;
1118}
1119static inline u32 gr_pri_gpcs_tpcs_sm_l1_data_ecc_control_scrub_el1_0_task_f(void)
1120{
1121 return 0x1U;
1122}
1123static inline u32 gr_pri_gpcs_tpcs_sm_l1_data_ecc_control_scrub_el1_1_f(u32 v)
1124{
1125 return (v & 0x1U) << 1U;
1126}
1127static inline u32 gr_pri_gpcs_tpcs_sm_l1_data_ecc_control_scrub_el1_1_task_f(void)
1128{
1129 return 0x2U;
1130}
1131static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_control_r(void)
1132{
1133 return 0x00504368U;
1134}
1135static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_control_scrub_el1_0_f(u32 v)
1136{
1137 return (v & 0x1U) << 0U;
1138}
1139static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_control_scrub_el1_0_init_f(void)
1140{
1141 return 0x0U;
1142}
1143static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_control_scrub_el1_1_f(u32 v)
1144{
1145 return (v & 0x1U) << 1U;
1146}
1147static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_control_scrub_el1_1_init_f(void)
1148{
1149 return 0x0U;
1150}
1151static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_r(void)
1152{
1153 return 0x00419e20U;
1154}
1155static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_el1_0_f(u32 v)
1156{
1157 return (v & 0x1U) << 0U;
1158}
1159static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_el1_0_task_f(void)
1160{
1161 return 0x1U;
1162}
1163static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_el1_1_f(u32 v)
1164{
1165 return (v & 0x1U) << 1U;
1166}
1167static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_el1_1_task_f(void)
1168{
1169 return 0x2U;
1170}
1171static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_pixprf_f(u32 v)
1172{
1173 return (v & 0x1U) << 4U;
1174}
1175static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_pixprf_task_f(void)
1176{
1177 return 0x10U;
1178}
1179static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_miss_fifo_f(u32 v)
1180{
1181 return (v & 0x1U) << 5U;
1182}
1183static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_miss_fifo_task_f(void)
1184{
1185 return 0x20U;
1186}
1187static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_r(void)
1188{
1189 return 0x00504620U;
1190}
1191static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_el1_0_f(u32 v)
1192{
1193 return (v & 0x1U) << 0U;
1194}
1195static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_el1_0_init_f(void)
1196{
1197 return 0x0U;
1198}
1199static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_el1_1_f(u32 v)
1200{
1201 return (v & 0x1U) << 1U;
1202}
1203static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_el1_1_init_f(void)
1204{
1205 return 0x0U;
1206}
1207static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_pixprf_f(u32 v)
1208{
1209 return (v & 0x1U) << 4U;
1210}
1211static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_pixprf_init_f(void)
1212{
1213 return 0x0U;
1214}
1215static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_miss_fifo_f(u32 v)
1216{
1217 return (v & 0x1U) << 5U;
1218}
1219static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_miss_fifo_init_f(void)
1220{
1221 return 0x0U;
1222}
1223static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_r(void)
1224{
1225 return 0x00419e34U;
1226}
1227static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_warp_sm0_f(u32 v)
1228{
1229 return (v & 0x1U) << 0U;
1230}
1231static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_warp_sm0_task_f(void)
1232{
1233 return 0x1U;
1234}
1235static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_warp_sm1_f(u32 v)
1236{
1237 return (v & 0x1U) << 1U;
1238}
1239static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_warp_sm1_task_f(void)
1240{
1241 return 0x2U;
1242}
1243static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_barrier_sm0_f(u32 v)
1244{
1245 return (v & 0x1U) << 2U;
1246}
1247static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_barrier_sm0_task_f(void)
1248{
1249 return 0x4U;
1250}
1251static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_barrier_sm1_f(u32 v)
1252{
1253 return (v & 0x1U) << 3U;
1254}
1255static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_barrier_sm1_task_f(void)
1256{
1257 return 0x8U;
1258}
1259static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_r(void)
1260{
1261 return 0x00504634U;
1262}
1263static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_warp_sm0_f(u32 v)
1264{
1265 return (v & 0x1U) << 0U;
1266}
1267static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_warp_sm0_init_f(void)
1268{
1269 return 0x0U;
1270}
1271static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_warp_sm1_f(u32 v)
1272{
1273 return (v & 0x1U) << 1U;
1274}
1275static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_warp_sm1_init_f(void)
1276{
1277 return 0x0U;
1278}
1279static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_barrier_sm0_f(u32 v)
1280{
1281 return (v & 0x1U) << 2U;
1282}
1283static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_barrier_sm0_init_f(void)
1284{
1285 return 0x0U;
1286}
1287static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_barrier_sm1_f(u32 v)
1288{
1289 return (v & 0x1U) << 3U;
1290}
1291static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_barrier_sm1_init_f(void)
1292{
1293 return 0x0U;
1294}
1295static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_r(void)
1296{
1297 return 0x00419e48U;
1298}
1299static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l0_data_f(u32 v)
1300{
1301 return (v & 0x1U) << 0U;
1302}
1303static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l0_data_task_f(void)
1304{
1305 return 0x1U;
1306}
1307static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l0_predecode_f(u32 v)
1308{
1309 return (v & 0x1U) << 1U;
1310}
1311static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l0_predecode_task_f(void)
1312{
1313 return 0x2U;
1314}
1315static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l1_data_f(u32 v)
1316{
1317 return (v & 0x1U) << 2U;
1318}
1319static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l1_data_task_f(void)
1320{
1321 return 0x4U;
1322}
1323static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l1_predecode_f(u32 v)
1324{
1325 return (v & 0x1U) << 3U;
1326}
1327static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l1_predecode_task_f(void)
1328{
1329 return 0x8U;
1330}
1331static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_r(void)
1332{
1333 return 0x00504648U;
1334}
1335static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l0_data_f(u32 v)
1336{
1337 return (v & 0x1U) << 0U;
1338}
1339static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l0_data_init_f(void)
1340{
1341 return 0x0U;
1342}
1343static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l0_predecode_f(u32 v)
1344{
1345 return (v & 0x1U) << 1U;
1346}
1347static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l0_predecode_init_f(void)
1348{
1349 return 0x0U;
1350}
1351static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l1_data_f(u32 v)
1352{
1353 return (v & 0x1U) << 2U;
1354}
1355static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l1_data_init_f(void)
1356{
1357 return 0x0U;
1358}
1359static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l1_predecode_f(u32 v)
1360{
1361 return (v & 0x1U) << 3U;
1362}
1363static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l1_predecode_init_f(void)
1364{
1365 return 0x0U;
1366}
1367static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_r(void)
1368{
1369 return 0x005042c4U;
1370}
1371static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_default_f(void)
1372{
1373 return 0x0U;
1374}
1375static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe0_f(void)
1376{
1377 return 0x1U;
1378}
1379static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe1_f(void)
1380{
1381 return 0x2U;
1382}
1383static inline u32 gr_gpc0_tpc0_mpc_hww_esr_r(void)
1384{
1385 return 0x00504430U;
1386}
1387static inline u32 gr_gpc0_tpc0_mpc_hww_esr_reset_trigger_f(void)
1388{
1389 return 0x40000000U;
1390}
1391static inline u32 gr_gpc0_tpc0_mpc_hww_esr_info_r(void)
1392{
1393 return 0x00504434U;
1394}
1395static inline u32 gr_gpc0_tpc0_mpc_hww_esr_info_veid_v(u32 r)
1396{
1397 return (r >> 0U) & 0x3fU;
1398}
1399static inline u32 gr_pri_be0_crop_status1_r(void)
1400{
1401 return 0x00410134U;
1402}
1403static inline u32 gr_pri_bes_crop_status1_r(void)
1404{
1405 return 0x00408934U;
1406}
1407static inline u32 gr_pri_be0_zrop_status_r(void)
1408{
1409 return 0x00410048U;
1410}
1411static inline u32 gr_pri_be0_zrop_status2_r(void)
1412{
1413 return 0x0041004cU;
1414}
1415static inline u32 gr_pri_bes_zrop_status_r(void)
1416{
1417 return 0x00408848U;
1418}
1419static inline u32 gr_pri_bes_zrop_status2_r(void)
1420{
1421 return 0x0040884cU;
1422}
1423static inline u32 gr_pipe_bundle_address_r(void)
1424{
1425 return 0x00400200U;
1426}
1427static inline u32 gr_pipe_bundle_address_value_v(u32 r)
1428{
1429 return (r >> 0U) & 0xffffU;
1430}
1431static inline u32 gr_pipe_bundle_address_veid_f(u32 v)
1432{
1433 return (v & 0x3fU) << 20U;
1434}
1435static inline u32 gr_pipe_bundle_address_veid_w(void)
1436{
1437 return 0U;
1438}
1439static inline u32 gr_pipe_bundle_data_r(void)
1440{
1441 return 0x00400204U;
1442}
1443static inline u32 gr_pipe_bundle_config_r(void)
1444{
1445 return 0x00400208U;
1446}
1447static inline u32 gr_pipe_bundle_config_override_pipe_mode_disabled_f(void)
1448{
1449 return 0x0U;
1450}
1451static inline u32 gr_pipe_bundle_config_override_pipe_mode_enabled_f(void)
1452{
1453 return 0x80000000U;
1454}
1455static inline u32 gr_fe_hww_esr_r(void)
1456{
1457 return 0x00404000U;
1458}
1459static inline u32 gr_fe_hww_esr_reset_active_f(void)
1460{
1461 return 0x40000000U;
1462}
1463static inline u32 gr_fe_hww_esr_en_enable_f(void)
1464{
1465 return 0x80000000U;
1466}
1467static inline u32 gr_fe_hww_esr_info_r(void)
1468{
1469 return 0x004041b0U;
1470}
1471static inline u32 gr_gpcs_tpcs_sms_hww_global_esr_report_mask_r(void)
1472{
1473 return 0x00419eacU;
1474}
1475static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_r(void)
1476{
1477 return 0x0050472cU;
1478}
1479static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_multiple_warp_errors_report_f(void)
1480{
1481 return 0x4U;
1482}
1483static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_bpt_int_report_f(void)
1484{
1485 return 0x10U;
1486}
1487static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_bpt_pause_report_f(void)
1488{
1489 return 0x20U;
1490}
1491static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_single_step_complete_report_f(void)
1492{
1493 return 0x40U;
1494}
1495static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_error_in_trap_report_f(void)
1496{
1497 return 0x100U;
1498}
1499static inline u32 gr_gpcs_tpcs_sms_hww_global_esr_r(void)
1500{
1501 return 0x00419eb4U;
1502}
1503static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_r(void)
1504{
1505 return 0x00504734U;
1506}
1507static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_bpt_int_m(void)
1508{
1509 return 0x1U << 4U;
1510}
1511static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_bpt_int_pending_f(void)
1512{
1513 return 0x10U;
1514}
1515static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_bpt_pause_m(void)
1516{
1517 return 0x1U << 5U;
1518}
1519static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_bpt_pause_pending_f(void)
1520{
1521 return 0x20U;
1522}
1523static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_single_step_complete_m(void)
1524{
1525 return 0x1U << 6U;
1526}
1527static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_single_step_complete_pending_f(void)
1528{
1529 return 0x40U;
1530}
1531static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_multiple_warp_errors_m(void)
1532{
1533 return 0x1U << 2U;
1534}
1535static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_multiple_warp_errors_pending_f(void)
1536{
1537 return 0x4U;
1538}
1539static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_error_in_trap_m(void)
1540{
1541 return 0x1U << 8U;
1542}
1543static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_error_in_trap_pending_f(void)
1544{
1545 return 0x100U;
1546}
1547static inline u32 gr_fe_go_idle_timeout_r(void)
1548{
1549 return 0x00404154U;
1550}
1551static inline u32 gr_fe_go_idle_timeout_count_f(u32 v)
1552{
1553 return (v & 0xffffffffU) << 0U;
1554}
1555static inline u32 gr_fe_go_idle_timeout_count_disabled_f(void)
1556{
1557 return 0x0U;
1558}
1559static inline u32 gr_fe_go_idle_timeout_count_prod_f(void)
1560{
1561 return 0x1800U;
1562}
1563static inline u32 gr_fe_object_table_r(u32 i)
1564{
1565 return 0x00404200U + i*4U;
1566}
1567static inline u32 gr_fe_object_table_nvclass_v(u32 r)
1568{
1569 return (r >> 0U) & 0xffffU;
1570}
1571static inline u32 gr_fe_tpc_fs_r(u32 i)
1572{
1573 return 0x0040a200U + i*4U;
1574}
1575static inline u32 gr_fe_tpc_pesmask_r(void)
1576{
1577 return 0x0040a260U;
1578}
1579static inline u32 gr_fe_tpc_pesmask_pesid_f(u32 v)
1580{
1581 return (v & 0x3fU) << 24U;
1582}
1583static inline u32 gr_fe_tpc_pesmask_gpcid_f(u32 v)
1584{
1585 return (v & 0xffU) << 16U;
1586}
1587static inline u32 gr_fe_tpc_pesmask_action_m(void)
1588{
1589 return 0x1U << 30U;
1590}
1591static inline u32 gr_fe_tpc_pesmask_action_write_f(void)
1592{
1593 return 0x40000000U;
1594}
1595static inline u32 gr_fe_tpc_pesmask_action_read_f(void)
1596{
1597 return 0x0U;
1598}
1599static inline u32 gr_fe_tpc_pesmask_req_m(void)
1600{
1601 return 0x1U << 31U;
1602}
1603static inline u32 gr_fe_tpc_pesmask_req_send_f(void)
1604{
1605 return 0x80000000U;
1606}
1607static inline u32 gr_fe_tpc_pesmask_mask_m(void)
1608{
1609 return 0xffffU << 0U;
1610}
1611static inline u32 gr_pri_mme_shadow_raw_index_r(void)
1612{
1613 return 0x00404488U;
1614}
1615static inline u32 gr_pri_mme_shadow_raw_index_write_trigger_f(void)
1616{
1617 return 0x80000000U;
1618}
1619static inline u32 gr_pri_mme_shadow_raw_data_r(void)
1620{
1621 return 0x0040448cU;
1622}
1623static inline u32 gr_mme_hww_esr_r(void)
1624{
1625 return 0x00404490U;
1626}
1627static inline u32 gr_mme_hww_esr_reset_active_f(void)
1628{
1629 return 0x40000000U;
1630}
1631static inline u32 gr_mme_hww_esr_en_enable_f(void)
1632{
1633 return 0x80000000U;
1634}
1635static inline u32 gr_mme_hww_esr_info_r(void)
1636{
1637 return 0x00404494U;
1638}
1639static inline u32 gr_memfmt_hww_esr_r(void)
1640{
1641 return 0x00404600U;
1642}
1643static inline u32 gr_memfmt_hww_esr_reset_active_f(void)
1644{
1645 return 0x40000000U;
1646}
1647static inline u32 gr_memfmt_hww_esr_en_enable_f(void)
1648{
1649 return 0x80000000U;
1650}
1651static inline u32 gr_fecs_cpuctl_r(void)
1652{
1653 return 0x00409100U;
1654}
1655static inline u32 gr_fecs_cpuctl_startcpu_f(u32 v)
1656{
1657 return (v & 0x1U) << 1U;
1658}
1659static inline u32 gr_fecs_cpuctl_alias_r(void)
1660{
1661 return 0x00409130U;
1662}
1663static inline u32 gr_fecs_cpuctl_alias_startcpu_f(u32 v)
1664{
1665 return (v & 0x1U) << 1U;
1666}
1667static inline u32 gr_fecs_dmactl_r(void)
1668{
1669 return 0x0040910cU;
1670}
1671static inline u32 gr_fecs_dmactl_require_ctx_f(u32 v)
1672{
1673 return (v & 0x1U) << 0U;
1674}
1675static inline u32 gr_fecs_dmactl_dmem_scrubbing_m(void)
1676{
1677 return 0x1U << 1U;
1678}
1679static inline u32 gr_fecs_dmactl_imem_scrubbing_m(void)
1680{
1681 return 0x1U << 2U;
1682}
1683static inline u32 gr_fecs_os_r(void)
1684{
1685 return 0x00409080U;
1686}
1687static inline u32 gr_fecs_idlestate_r(void)
1688{
1689 return 0x0040904cU;
1690}
1691static inline u32 gr_fecs_mailbox0_r(void)
1692{
1693 return 0x00409040U;
1694}
1695static inline u32 gr_fecs_mailbox1_r(void)
1696{
1697 return 0x00409044U;
1698}
1699static inline u32 gr_fecs_irqstat_r(void)
1700{
1701 return 0x00409008U;
1702}
1703static inline u32 gr_fecs_irqmode_r(void)
1704{
1705 return 0x0040900cU;
1706}
1707static inline u32 gr_fecs_irqmask_r(void)
1708{
1709 return 0x00409018U;
1710}
1711static inline u32 gr_fecs_irqdest_r(void)
1712{
1713 return 0x0040901cU;
1714}
1715static inline u32 gr_fecs_curctx_r(void)
1716{
1717 return 0x00409050U;
1718}
1719static inline u32 gr_fecs_nxtctx_r(void)
1720{
1721 return 0x00409054U;
1722}
1723static inline u32 gr_fecs_engctl_r(void)
1724{
1725 return 0x004090a4U;
1726}
1727static inline u32 gr_fecs_debug1_r(void)
1728{
1729 return 0x00409090U;
1730}
1731static inline u32 gr_fecs_debuginfo_r(void)
1732{
1733 return 0x00409094U;
1734}
1735static inline u32 gr_fecs_icd_cmd_r(void)
1736{
1737 return 0x00409200U;
1738}
1739static inline u32 gr_fecs_icd_cmd_opc_s(void)
1740{
1741 return 4U;
1742}
1743static inline u32 gr_fecs_icd_cmd_opc_f(u32 v)
1744{
1745 return (v & 0xfU) << 0U;
1746}
1747static inline u32 gr_fecs_icd_cmd_opc_m(void)
1748{
1749 return 0xfU << 0U;
1750}
1751static inline u32 gr_fecs_icd_cmd_opc_v(u32 r)
1752{
1753 return (r >> 0U) & 0xfU;
1754}
1755static inline u32 gr_fecs_icd_cmd_opc_rreg_f(void)
1756{
1757 return 0x8U;
1758}
1759static inline u32 gr_fecs_icd_cmd_opc_rstat_f(void)
1760{
1761 return 0xeU;
1762}
1763static inline u32 gr_fecs_icd_cmd_idx_f(u32 v)
1764{
1765 return (v & 0x1fU) << 8U;
1766}
1767static inline u32 gr_fecs_icd_rdata_r(void)
1768{
1769 return 0x0040920cU;
1770}
1771static inline u32 gr_fecs_imemc_r(u32 i)
1772{
1773 return 0x00409180U + i*16U;
1774}
1775static inline u32 gr_fecs_imemc_offs_f(u32 v)
1776{
1777 return (v & 0x3fU) << 2U;
1778}
1779static inline u32 gr_fecs_imemc_blk_f(u32 v)
1780{
1781 return (v & 0xffU) << 8U;
1782}
1783static inline u32 gr_fecs_imemc_aincw_f(u32 v)
1784{
1785 return (v & 0x1U) << 24U;
1786}
1787static inline u32 gr_fecs_imemd_r(u32 i)
1788{
1789 return 0x00409184U + i*16U;
1790}
1791static inline u32 gr_fecs_imemt_r(u32 i)
1792{
1793 return 0x00409188U + i*16U;
1794}
1795static inline u32 gr_fecs_imemt_tag_f(u32 v)
1796{
1797 return (v & 0xffffU) << 0U;
1798}
1799static inline u32 gr_fecs_dmemc_r(u32 i)
1800{
1801 return 0x004091c0U + i*8U;
1802}
1803static inline u32 gr_fecs_dmemc_offs_s(void)
1804{
1805 return 6U;
1806}
1807static inline u32 gr_fecs_dmemc_offs_f(u32 v)
1808{
1809 return (v & 0x3fU) << 2U;
1810}
1811static inline u32 gr_fecs_dmemc_offs_m(void)
1812{
1813 return 0x3fU << 2U;
1814}
1815static inline u32 gr_fecs_dmemc_offs_v(u32 r)
1816{
1817 return (r >> 2U) & 0x3fU;
1818}
1819static inline u32 gr_fecs_dmemc_blk_f(u32 v)
1820{
1821 return (v & 0xffU) << 8U;
1822}
1823static inline u32 gr_fecs_dmemc_aincw_f(u32 v)
1824{
1825 return (v & 0x1U) << 24U;
1826}
1827static inline u32 gr_fecs_dmemd_r(u32 i)
1828{
1829 return 0x004091c4U + i*8U;
1830}
1831static inline u32 gr_fecs_dmatrfbase_r(void)
1832{
1833 return 0x00409110U;
1834}
1835static inline u32 gr_fecs_dmatrfmoffs_r(void)
1836{
1837 return 0x00409114U;
1838}
1839static inline u32 gr_fecs_dmatrffboffs_r(void)
1840{
1841 return 0x0040911cU;
1842}
1843static inline u32 gr_fecs_dmatrfcmd_r(void)
1844{
1845 return 0x00409118U;
1846}
1847static inline u32 gr_fecs_dmatrfcmd_imem_f(u32 v)
1848{
1849 return (v & 0x1U) << 4U;
1850}
1851static inline u32 gr_fecs_dmatrfcmd_write_f(u32 v)
1852{
1853 return (v & 0x1U) << 5U;
1854}
1855static inline u32 gr_fecs_dmatrfcmd_size_f(u32 v)
1856{
1857 return (v & 0x7U) << 8U;
1858}
1859static inline u32 gr_fecs_dmatrfcmd_ctxdma_f(u32 v)
1860{
1861 return (v & 0x7U) << 12U;
1862}
1863static inline u32 gr_fecs_bootvec_r(void)
1864{
1865 return 0x00409104U;
1866}
1867static inline u32 gr_fecs_bootvec_vec_f(u32 v)
1868{
1869 return (v & 0xffffffffU) << 0U;
1870}
1871static inline u32 gr_fecs_falcon_hwcfg_r(void)
1872{
1873 return 0x00409108U;
1874}
1875static inline u32 gr_gpcs_gpccs_falcon_hwcfg_r(void)
1876{
1877 return 0x0041a108U;
1878}
1879static inline u32 gr_fecs_falcon_rm_r(void)
1880{
1881 return 0x00409084U;
1882}
1883static inline u32 gr_fecs_current_ctx_r(void)
1884{
1885 return 0x00409b00U;
1886}
1887static inline u32 gr_fecs_current_ctx_ptr_f(u32 v)
1888{
1889 return (v & 0xfffffffU) << 0U;
1890}
1891static inline u32 gr_fecs_current_ctx_ptr_v(u32 r)
1892{
1893 return (r >> 0U) & 0xfffffffU;
1894}
1895static inline u32 gr_fecs_current_ctx_target_s(void)
1896{
1897 return 2U;
1898}
1899static inline u32 gr_fecs_current_ctx_target_f(u32 v)
1900{
1901 return (v & 0x3U) << 28U;
1902}
1903static inline u32 gr_fecs_current_ctx_target_m(void)
1904{
1905 return 0x3U << 28U;
1906}
1907static inline u32 gr_fecs_current_ctx_target_v(u32 r)
1908{
1909 return (r >> 28U) & 0x3U;
1910}
1911static inline u32 gr_fecs_current_ctx_target_vid_mem_f(void)
1912{
1913 return 0x0U;
1914}
1915static inline u32 gr_fecs_current_ctx_target_sys_mem_coh_f(void)
1916{
1917 return 0x20000000U;
1918}
1919static inline u32 gr_fecs_current_ctx_target_sys_mem_ncoh_f(void)
1920{
1921 return 0x30000000U;
1922}
1923static inline u32 gr_fecs_current_ctx_valid_s(void)
1924{
1925 return 1U;
1926}
1927static inline u32 gr_fecs_current_ctx_valid_f(u32 v)
1928{
1929 return (v & 0x1U) << 31U;
1930}
1931static inline u32 gr_fecs_current_ctx_valid_m(void)
1932{
1933 return 0x1U << 31U;
1934}
1935static inline u32 gr_fecs_current_ctx_valid_v(u32 r)
1936{
1937 return (r >> 31U) & 0x1U;
1938}
1939static inline u32 gr_fecs_current_ctx_valid_false_f(void)
1940{
1941 return 0x0U;
1942}
1943static inline u32 gr_fecs_method_data_r(void)
1944{
1945 return 0x00409500U;
1946}
1947static inline u32 gr_fecs_method_push_r(void)
1948{
1949 return 0x00409504U;
1950}
1951static inline u32 gr_fecs_method_push_adr_f(u32 v)
1952{
1953 return (v & 0xfffU) << 0U;
1954}
1955static inline u32 gr_fecs_method_push_adr_bind_pointer_v(void)
1956{
1957 return 0x00000003U;
1958}
1959static inline u32 gr_fecs_method_push_adr_bind_pointer_f(void)
1960{
1961 return 0x3U;
1962}
1963static inline u32 gr_fecs_method_push_adr_discover_image_size_v(void)
1964{
1965 return 0x00000010U;
1966}
1967static inline u32 gr_fecs_method_push_adr_wfi_golden_save_v(void)
1968{
1969 return 0x00000009U;
1970}
1971static inline u32 gr_fecs_method_push_adr_restore_golden_v(void)
1972{
1973 return 0x00000015U;
1974}
1975static inline u32 gr_fecs_method_push_adr_discover_zcull_image_size_v(void)
1976{
1977 return 0x00000016U;
1978}
1979static inline u32 gr_fecs_method_push_adr_discover_pm_image_size_v(void)
1980{
1981 return 0x00000025U;
1982}
1983static inline u32 gr_fecs_method_push_adr_discover_reglist_image_size_v(void)
1984{
1985 return 0x00000030U;
1986}
1987static inline u32 gr_fecs_method_push_adr_set_reglist_bind_instance_v(void)
1988{
1989 return 0x00000031U;
1990}
1991static inline u32 gr_fecs_method_push_adr_set_reglist_virtual_address_v(void)
1992{
1993 return 0x00000032U;
1994}
1995static inline u32 gr_fecs_method_push_adr_stop_ctxsw_v(void)
1996{
1997 return 0x00000038U;
1998}
1999static inline u32 gr_fecs_method_push_adr_start_ctxsw_v(void)
2000{
2001 return 0x00000039U;
2002}
2003static inline u32 gr_fecs_method_push_adr_set_watchdog_timeout_f(void)
2004{
2005 return 0x21U;
2006}
2007static inline u32 gr_fecs_method_push_adr_discover_preemption_image_size_v(void)
2008{
2009 return 0x0000001aU;
2010}
2011static inline u32 gr_fecs_method_push_adr_halt_pipeline_v(void)
2012{
2013 return 0x00000004U;
2014}
2015static inline u32 gr_fecs_method_push_adr_configure_interrupt_completion_option_v(void)
2016{
2017 return 0x0000003aU;
2018}
2019static inline u32 gr_fecs_host_int_status_r(void)
2020{
2021 return 0x00409c18U;
2022}
2023static inline u32 gr_fecs_host_int_status_fault_during_ctxsw_f(u32 v)
2024{
2025 return (v & 0x1U) << 16U;
2026}
2027static inline u32 gr_fecs_host_int_status_umimp_firmware_method_f(u32 v)
2028{
2029 return (v & 0x1U) << 17U;
2030}
2031static inline u32 gr_fecs_host_int_status_umimp_illegal_method_f(u32 v)
2032{
2033 return (v & 0x1U) << 18U;
2034}
2035static inline u32 gr_fecs_host_int_status_watchdog_active_f(void)
2036{
2037 return 0x80000U;
2038}
2039static inline u32 gr_fecs_host_int_status_ctxsw_intr_f(u32 v)
2040{
2041 return (v & 0xffffU) << 0U;
2042}
2043static inline u32 gr_fecs_host_int_status_ecc_corrected_f(u32 v)
2044{
2045 return (v & 0x1U) << 21U;
2046}
2047static inline u32 gr_fecs_host_int_status_ecc_corrected_m(void)
2048{
2049 return 0x1U << 21U;
2050}
2051static inline u32 gr_fecs_host_int_status_ecc_uncorrected_f(u32 v)
2052{
2053 return (v & 0x1U) << 22U;
2054}
2055static inline u32 gr_fecs_host_int_status_ecc_uncorrected_m(void)
2056{
2057 return 0x1U << 22U;
2058}
2059static inline u32 gr_fecs_host_int_clear_r(void)
2060{
2061 return 0x00409c20U;
2062}
2063static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_f(u32 v)
2064{
2065 return (v & 0x1U) << 1U;
2066}
2067static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_clear_f(void)
2068{
2069 return 0x2U;
2070}
2071static inline u32 gr_fecs_host_int_enable_r(void)
2072{
2073 return 0x00409c24U;
2074}
2075static inline u32 gr_fecs_host_int_enable_ctxsw_intr1_enable_f(void)
2076{
2077 return 0x2U;
2078}
2079static inline u32 gr_fecs_host_int_enable_fault_during_ctxsw_enable_f(void)
2080{
2081 return 0x10000U;
2082}
2083static inline u32 gr_fecs_host_int_enable_umimp_firmware_method_enable_f(void)
2084{
2085 return 0x20000U;
2086}
2087static inline u32 gr_fecs_host_int_enable_umimp_illegal_method_enable_f(void)
2088{
2089 return 0x40000U;
2090}
2091static inline u32 gr_fecs_host_int_enable_watchdog_enable_f(void)
2092{
2093 return 0x80000U;
2094}
2095static inline u32 gr_fecs_host_int_enable_flush_when_busy_enable_f(void)
2096{
2097 return 0x100000U;
2098}
2099static inline u32 gr_fecs_host_int_enable_ecc_corrected_enable_f(void)
2100{
2101 return 0x200000U;
2102}
2103static inline u32 gr_fecs_host_int_enable_ecc_uncorrected_enable_f(void)
2104{
2105 return 0x400000U;
2106}
2107static inline u32 gr_fecs_ctxsw_reset_ctl_r(void)
2108{
2109 return 0x00409614U;
2110}
2111static inline u32 gr_fecs_ctxsw_reset_ctl_sys_halt_disabled_f(void)
2112{
2113 return 0x0U;
2114}
2115static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_halt_disabled_f(void)
2116{
2117 return 0x0U;
2118}
2119static inline u32 gr_fecs_ctxsw_reset_ctl_be_halt_disabled_f(void)
2120{
2121 return 0x0U;
2122}
2123static inline u32 gr_fecs_ctxsw_reset_ctl_sys_engine_reset_disabled_f(void)
2124{
2125 return 0x10U;
2126}
2127static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_engine_reset_disabled_f(void)
2128{
2129 return 0x20U;
2130}
2131static inline u32 gr_fecs_ctxsw_reset_ctl_be_engine_reset_disabled_f(void)
2132{
2133 return 0x40U;
2134}
2135static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_enabled_f(void)
2136{
2137 return 0x0U;
2138}
2139static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_disabled_f(void)
2140{
2141 return 0x100U;
2142}
2143static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_enabled_f(void)
2144{
2145 return 0x0U;
2146}
2147static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_disabled_f(void)
2148{
2149 return 0x200U;
2150}
2151static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_s(void)
2152{
2153 return 1U;
2154}
2155static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_f(u32 v)
2156{
2157 return (v & 0x1U) << 10U;
2158}
2159static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_m(void)
2160{
2161 return 0x1U << 10U;
2162}
2163static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_v(u32 r)
2164{
2165 return (r >> 10U) & 0x1U;
2166}
2167static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_enabled_f(void)
2168{
2169 return 0x0U;
2170}
2171static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_disabled_f(void)
2172{
2173 return 0x400U;
2174}
2175static inline u32 gr_fecs_ctx_state_store_major_rev_id_r(void)
2176{
2177 return 0x0040960cU;
2178}
2179static inline u32 gr_fecs_ctxsw_mailbox_r(u32 i)
2180{
2181 return 0x00409800U + i*4U;
2182}
2183static inline u32 gr_fecs_ctxsw_mailbox__size_1_v(void)
2184{
2185 return 0x00000010U;
2186}
2187static inline u32 gr_fecs_ctxsw_mailbox_value_f(u32 v)
2188{
2189 return (v & 0xffffffffU) << 0U;
2190}
2191static inline u32 gr_fecs_ctxsw_mailbox_value_pass_v(void)
2192{
2193 return 0x00000001U;
2194}
2195static inline u32 gr_fecs_ctxsw_mailbox_value_fail_v(void)
2196{
2197 return 0x00000002U;
2198}
2199static inline u32 gr_fecs_ctxsw_mailbox_set_r(u32 i)
2200{
2201 return 0x004098c0U + i*4U;
2202}
2203static inline u32 gr_fecs_ctxsw_mailbox_set_value_f(u32 v)
2204{
2205 return (v & 0xffffffffU) << 0U;
2206}
2207static inline u32 gr_fecs_ctxsw_mailbox_clear_r(u32 i)
2208{
2209 return 0x00409840U + i*4U;
2210}
2211static inline u32 gr_fecs_ctxsw_mailbox_clear_value_f(u32 v)
2212{
2213 return (v & 0xffffffffU) << 0U;
2214}
2215static inline u32 gr_fecs_fs_r(void)
2216{
2217 return 0x00409604U;
2218}
2219static inline u32 gr_fecs_fs_num_available_gpcs_s(void)
2220{
2221 return 5U;
2222}
2223static inline u32 gr_fecs_fs_num_available_gpcs_f(u32 v)
2224{
2225 return (v & 0x1fU) << 0U;
2226}
2227static inline u32 gr_fecs_fs_num_available_gpcs_m(void)
2228{
2229 return 0x1fU << 0U;
2230}
2231static inline u32 gr_fecs_fs_num_available_gpcs_v(u32 r)
2232{
2233 return (r >> 0U) & 0x1fU;
2234}
2235static inline u32 gr_fecs_fs_num_available_fbps_s(void)
2236{
2237 return 5U;
2238}
2239static inline u32 gr_fecs_fs_num_available_fbps_f(u32 v)
2240{
2241 return (v & 0x1fU) << 16U;
2242}
2243static inline u32 gr_fecs_fs_num_available_fbps_m(void)
2244{
2245 return 0x1fU << 16U;
2246}
2247static inline u32 gr_fecs_fs_num_available_fbps_v(u32 r)
2248{
2249 return (r >> 16U) & 0x1fU;
2250}
2251static inline u32 gr_fecs_cfg_r(void)
2252{
2253 return 0x00409620U;
2254}
2255static inline u32 gr_fecs_cfg_imem_sz_v(u32 r)
2256{
2257 return (r >> 0U) & 0xffU;
2258}
2259static inline u32 gr_fecs_rc_lanes_r(void)
2260{
2261 return 0x00409880U;
2262}
2263static inline u32 gr_fecs_rc_lanes_num_chains_s(void)
2264{
2265 return 6U;
2266}
2267static inline u32 gr_fecs_rc_lanes_num_chains_f(u32 v)
2268{
2269 return (v & 0x3fU) << 0U;
2270}
2271static inline u32 gr_fecs_rc_lanes_num_chains_m(void)
2272{
2273 return 0x3fU << 0U;
2274}
2275static inline u32 gr_fecs_rc_lanes_num_chains_v(u32 r)
2276{
2277 return (r >> 0U) & 0x3fU;
2278}
2279static inline u32 gr_fecs_ctxsw_status_1_r(void)
2280{
2281 return 0x00409400U;
2282}
2283static inline u32 gr_fecs_ctxsw_status_1_arb_busy_s(void)
2284{
2285 return 1U;
2286}
2287static inline u32 gr_fecs_ctxsw_status_1_arb_busy_f(u32 v)
2288{
2289 return (v & 0x1U) << 12U;
2290}
2291static inline u32 gr_fecs_ctxsw_status_1_arb_busy_m(void)
2292{
2293 return 0x1U << 12U;
2294}
2295static inline u32 gr_fecs_ctxsw_status_1_arb_busy_v(u32 r)
2296{
2297 return (r >> 12U) & 0x1U;
2298}
2299static inline u32 gr_fecs_arb_ctx_adr_r(void)
2300{
2301 return 0x00409a24U;
2302}
2303static inline u32 gr_fecs_new_ctx_r(void)
2304{
2305 return 0x00409b04U;
2306}
2307static inline u32 gr_fecs_new_ctx_ptr_s(void)
2308{
2309 return 28U;
2310}
2311static inline u32 gr_fecs_new_ctx_ptr_f(u32 v)
2312{
2313 return (v & 0xfffffffU) << 0U;
2314}
2315static inline u32 gr_fecs_new_ctx_ptr_m(void)
2316{
2317 return 0xfffffffU << 0U;
2318}
2319static inline u32 gr_fecs_new_ctx_ptr_v(u32 r)
2320{
2321 return (r >> 0U) & 0xfffffffU;
2322}
2323static inline u32 gr_fecs_new_ctx_target_s(void)
2324{
2325 return 2U;
2326}
2327static inline u32 gr_fecs_new_ctx_target_f(u32 v)
2328{
2329 return (v & 0x3U) << 28U;
2330}
2331static inline u32 gr_fecs_new_ctx_target_m(void)
2332{
2333 return 0x3U << 28U;
2334}
2335static inline u32 gr_fecs_new_ctx_target_v(u32 r)
2336{
2337 return (r >> 28U) & 0x3U;
2338}
2339static inline u32 gr_fecs_new_ctx_valid_s(void)
2340{
2341 return 1U;
2342}
2343static inline u32 gr_fecs_new_ctx_valid_f(u32 v)
2344{
2345 return (v & 0x1U) << 31U;
2346}
2347static inline u32 gr_fecs_new_ctx_valid_m(void)
2348{
2349 return 0x1U << 31U;
2350}
2351static inline u32 gr_fecs_new_ctx_valid_v(u32 r)
2352{
2353 return (r >> 31U) & 0x1U;
2354}
2355static inline u32 gr_fecs_arb_ctx_ptr_r(void)
2356{
2357 return 0x00409a0cU;
2358}
2359static inline u32 gr_fecs_arb_ctx_ptr_ptr_s(void)
2360{
2361 return 28U;
2362}
2363static inline u32 gr_fecs_arb_ctx_ptr_ptr_f(u32 v)
2364{
2365 return (v & 0xfffffffU) << 0U;
2366}
2367static inline u32 gr_fecs_arb_ctx_ptr_ptr_m(void)
2368{
2369 return 0xfffffffU << 0U;
2370}
2371static inline u32 gr_fecs_arb_ctx_ptr_ptr_v(u32 r)
2372{
2373 return (r >> 0U) & 0xfffffffU;
2374}
2375static inline u32 gr_fecs_arb_ctx_ptr_target_s(void)
2376{
2377 return 2U;
2378}
2379static inline u32 gr_fecs_arb_ctx_ptr_target_f(u32 v)
2380{
2381 return (v & 0x3U) << 28U;
2382}
2383static inline u32 gr_fecs_arb_ctx_ptr_target_m(void)
2384{
2385 return 0x3U << 28U;
2386}
2387static inline u32 gr_fecs_arb_ctx_ptr_target_v(u32 r)
2388{
2389 return (r >> 28U) & 0x3U;
2390}
2391static inline u32 gr_fecs_arb_ctx_cmd_r(void)
2392{
2393 return 0x00409a10U;
2394}
2395static inline u32 gr_fecs_arb_ctx_cmd_cmd_s(void)
2396{
2397 return 5U;
2398}
2399static inline u32 gr_fecs_arb_ctx_cmd_cmd_f(u32 v)
2400{
2401 return (v & 0x1fU) << 0U;
2402}
2403static inline u32 gr_fecs_arb_ctx_cmd_cmd_m(void)
2404{
2405 return 0x1fU << 0U;
2406}
2407static inline u32 gr_fecs_arb_ctx_cmd_cmd_v(u32 r)
2408{
2409 return (r >> 0U) & 0x1fU;
2410}
2411static inline u32 gr_fecs_ctxsw_status_fe_0_r(void)
2412{
2413 return 0x00409c00U;
2414}
2415static inline u32 gr_gpc0_gpccs_ctxsw_status_gpc_0_r(void)
2416{
2417 return 0x00502c04U;
2418}
2419static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void)
2420{
2421 return 0x00502400U;
2422}
2423static inline u32 gr_fecs_ctxsw_idlestate_r(void)
2424{
2425 return 0x00409420U;
2426}
2427static inline u32 gr_fecs_feature_override_ecc_r(void)
2428{
2429 return 0x00409658U;
2430}
2431static inline u32 gr_fecs_feature_override_ecc_sm_lrf_v(u32 r)
2432{
2433 return (r >> 0U) & 0x1U;
2434}
2435static inline u32 gr_fecs_feature_override_ecc_sm_lrf_override_v(u32 r)
2436{
2437 return (r >> 3U) & 0x1U;
2438}
2439static inline u32 gr_fecs_feature_override_ecc_sm_l1_data_v(u32 r)
2440{
2441 return (r >> 4U) & 0x1U;
2442}
2443static inline u32 gr_fecs_feature_override_ecc_sm_l1_data_override_v(u32 r)
2444{
2445 return (r >> 7U) & 0x1U;
2446}
2447static inline u32 gr_fecs_feature_override_ecc_sm_l1_tag_v(u32 r)
2448{
2449 return (r >> 8U) & 0x1U;
2450}
2451static inline u32 gr_fecs_feature_override_ecc_sm_l1_tag_override_v(u32 r)
2452{
2453 return (r >> 11U) & 0x1U;
2454}
2455static inline u32 gr_fecs_feature_override_ecc_ltc_v(u32 r)
2456{
2457 return (r >> 12U) & 0x1U;
2458}
2459static inline u32 gr_fecs_feature_override_ecc_ltc_override_v(u32 r)
2460{
2461 return (r >> 15U) & 0x1U;
2462}
2463static inline u32 gr_fecs_feature_override_ecc_sm_cbu_v(u32 r)
2464{
2465 return (r >> 20U) & 0x1U;
2466}
2467static inline u32 gr_fecs_feature_override_ecc_sm_cbu_override_v(u32 r)
2468{
2469 return (r >> 23U) & 0x1U;
2470}
2471static inline u32 gr_fecs_feature_override_ecc_1_r(void)
2472{
2473 return 0x0040965cU;
2474}
2475static inline u32 gr_fecs_feature_override_ecc_1_sm_l0_icache_v(u32 r)
2476{
2477 return (r >> 0U) & 0x1U;
2478}
2479static inline u32 gr_fecs_feature_override_ecc_1_sm_l0_icache_override_v(u32 r)
2480{
2481 return (r >> 1U) & 0x1U;
2482}
2483static inline u32 gr_fecs_feature_override_ecc_1_sm_l1_icache_v(u32 r)
2484{
2485 return (r >> 2U) & 0x1U;
2486}
2487static inline u32 gr_fecs_feature_override_ecc_1_sm_l1_icache_override_v(u32 r)
2488{
2489 return (r >> 3U) & 0x1U;
2490}
2491static inline u32 gr_gpc0_gpccs_ctxsw_idlestate_r(void)
2492{
2493 return 0x00502420U;
2494}
2495static inline u32 gr_rstr2d_gpc_map_r(u32 i)
2496{
2497 return 0x0040780cU + i*4U;
2498}
2499static inline u32 gr_rstr2d_map_table_cfg_r(void)
2500{
2501 return 0x004078bcU;
2502}
2503static inline u32 gr_rstr2d_map_table_cfg_row_offset_f(u32 v)
2504{
2505 return (v & 0xffU) << 0U;
2506}
2507static inline u32 gr_rstr2d_map_table_cfg_num_entries_f(u32 v)
2508{
2509 return (v & 0xffU) << 8U;
2510}
2511static inline u32 gr_pd_hww_esr_r(void)
2512{
2513 return 0x00406018U;
2514}
2515static inline u32 gr_pd_hww_esr_reset_active_f(void)
2516{
2517 return 0x40000000U;
2518}
2519static inline u32 gr_pd_hww_esr_en_enable_f(void)
2520{
2521 return 0x80000000U;
2522}
2523static inline u32 gr_pd_num_tpc_per_gpc_r(u32 i)
2524{
2525 return 0x00406028U + i*4U;
2526}
2527static inline u32 gr_pd_num_tpc_per_gpc__size_1_v(void)
2528{
2529 return 0x00000004U;
2530}
2531static inline u32 gr_pd_num_tpc_per_gpc_count0_f(u32 v)
2532{
2533 return (v & 0xfU) << 0U;
2534}
2535static inline u32 gr_pd_num_tpc_per_gpc_count1_f(u32 v)
2536{
2537 return (v & 0xfU) << 4U;
2538}
2539static inline u32 gr_pd_num_tpc_per_gpc_count2_f(u32 v)
2540{
2541 return (v & 0xfU) << 8U;
2542}
2543static inline u32 gr_pd_num_tpc_per_gpc_count3_f(u32 v)
2544{
2545 return (v & 0xfU) << 12U;
2546}
2547static inline u32 gr_pd_num_tpc_per_gpc_count4_f(u32 v)
2548{
2549 return (v & 0xfU) << 16U;
2550}
2551static inline u32 gr_pd_num_tpc_per_gpc_count5_f(u32 v)
2552{
2553 return (v & 0xfU) << 20U;
2554}
2555static inline u32 gr_pd_num_tpc_per_gpc_count6_f(u32 v)
2556{
2557 return (v & 0xfU) << 24U;
2558}
2559static inline u32 gr_pd_num_tpc_per_gpc_count7_f(u32 v)
2560{
2561 return (v & 0xfU) << 28U;
2562}
2563static inline u32 gr_pd_ab_dist_cfg0_r(void)
2564{
2565 return 0x004064c0U;
2566}
2567static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_en_f(void)
2568{
2569 return 0x80000000U;
2570}
2571static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_dis_f(void)
2572{
2573 return 0x0U;
2574}
2575static inline u32 gr_pd_ab_dist_cfg1_r(void)
2576{
2577 return 0x004064c4U;
2578}
2579static inline u32 gr_pd_ab_dist_cfg1_max_batches_init_f(void)
2580{
2581 return 0xffffU;
2582}
2583static inline u32 gr_pd_ab_dist_cfg1_max_output_f(u32 v)
2584{
2585 return (v & 0xffffU) << 16U;
2586}
2587static inline u32 gr_pd_ab_dist_cfg1_max_output_granularity_v(void)
2588{
2589 return 0x00000080U;
2590}
2591static inline u32 gr_pd_ab_dist_cfg2_r(void)
2592{
2593 return 0x004064c8U;
2594}
2595static inline u32 gr_pd_ab_dist_cfg2_token_limit_f(u32 v)
2596{
2597 return (v & 0x1fffU) << 0U;
2598}
2599static inline u32 gr_pd_ab_dist_cfg2_token_limit_init_v(void)
2600{
2601 return 0x00000380U;
2602}
2603static inline u32 gr_pd_ab_dist_cfg2_state_limit_f(u32 v)
2604{
2605 return (v & 0x1fffU) << 16U;
2606}
2607static inline u32 gr_pd_ab_dist_cfg2_state_limit_scc_bundle_granularity_v(void)
2608{
2609 return 0x00000020U;
2610}
2611static inline u32 gr_pd_ab_dist_cfg2_state_limit_min_gpm_fifo_depths_v(void)
2612{
2613 return 0x00000302U;
2614}
2615static inline u32 gr_pd_dist_skip_table_r(u32 i)
2616{
2617 return 0x004064d0U + i*4U;
2618}
2619static inline u32 gr_pd_dist_skip_table__size_1_v(void)
2620{
2621 return 0x00000008U;
2622}
2623static inline u32 gr_pd_dist_skip_table_gpc_4n0_mask_f(u32 v)
2624{
2625 return (v & 0xffU) << 0U;
2626}
2627static inline u32 gr_pd_dist_skip_table_gpc_4n1_mask_f(u32 v)
2628{
2629 return (v & 0xffU) << 8U;
2630}
2631static inline u32 gr_pd_dist_skip_table_gpc_4n2_mask_f(u32 v)
2632{
2633 return (v & 0xffU) << 16U;
2634}
2635static inline u32 gr_pd_dist_skip_table_gpc_4n3_mask_f(u32 v)
2636{
2637 return (v & 0xffU) << 24U;
2638}
2639static inline u32 gr_ds_debug_r(void)
2640{
2641 return 0x00405800U;
2642}
2643static inline u32 gr_ds_debug_timeslice_mode_disable_f(void)
2644{
2645 return 0x0U;
2646}
2647static inline u32 gr_ds_debug_timeslice_mode_enable_f(void)
2648{
2649 return 0x8000000U;
2650}
2651static inline u32 gr_ds_zbc_color_r_r(void)
2652{
2653 return 0x00405804U;
2654}
2655static inline u32 gr_ds_zbc_color_r_val_f(u32 v)
2656{
2657 return (v & 0xffffffffU) << 0U;
2658}
2659static inline u32 gr_ds_zbc_color_g_r(void)
2660{
2661 return 0x00405808U;
2662}
2663static inline u32 gr_ds_zbc_color_g_val_f(u32 v)
2664{
2665 return (v & 0xffffffffU) << 0U;
2666}
2667static inline u32 gr_ds_zbc_color_b_r(void)
2668{
2669 return 0x0040580cU;
2670}
2671static inline u32 gr_ds_zbc_color_b_val_f(u32 v)
2672{
2673 return (v & 0xffffffffU) << 0U;
2674}
2675static inline u32 gr_ds_zbc_color_a_r(void)
2676{
2677 return 0x00405810U;
2678}
2679static inline u32 gr_ds_zbc_color_a_val_f(u32 v)
2680{
2681 return (v & 0xffffffffU) << 0U;
2682}
2683static inline u32 gr_ds_zbc_color_fmt_r(void)
2684{
2685 return 0x00405814U;
2686}
2687static inline u32 gr_ds_zbc_color_fmt_val_f(u32 v)
2688{
2689 return (v & 0x7fU) << 0U;
2690}
2691static inline u32 gr_ds_zbc_color_fmt_val_invalid_f(void)
2692{
2693 return 0x0U;
2694}
2695static inline u32 gr_ds_zbc_color_fmt_val_zero_v(void)
2696{
2697 return 0x00000001U;
2698}
2699static inline u32 gr_ds_zbc_color_fmt_val_unorm_one_v(void)
2700{
2701 return 0x00000002U;
2702}
2703static inline u32 gr_ds_zbc_color_fmt_val_rf32_gf32_bf32_af32_v(void)
2704{
2705 return 0x00000004U;
2706}
2707static inline u32 gr_ds_zbc_color_fmt_val_a8_b8_g8_r8_v(void)
2708{
2709 return 0x00000028U;
2710}
2711static inline u32 gr_ds_zbc_z_r(void)
2712{
2713 return 0x00405818U;
2714}
2715static inline u32 gr_ds_zbc_z_val_s(void)
2716{
2717 return 32U;
2718}
2719static inline u32 gr_ds_zbc_z_val_f(u32 v)
2720{
2721 return (v & 0xffffffffU) << 0U;
2722}
2723static inline u32 gr_ds_zbc_z_val_m(void)
2724{
2725 return 0xffffffffU << 0U;
2726}
2727static inline u32 gr_ds_zbc_z_val_v(u32 r)
2728{
2729 return (r >> 0U) & 0xffffffffU;
2730}
2731static inline u32 gr_ds_zbc_z_val__init_v(void)
2732{
2733 return 0x00000000U;
2734}
2735static inline u32 gr_ds_zbc_z_val__init_f(void)
2736{
2737 return 0x0U;
2738}
2739static inline u32 gr_ds_zbc_z_fmt_r(void)
2740{
2741 return 0x0040581cU;
2742}
2743static inline u32 gr_ds_zbc_z_fmt_val_f(u32 v)
2744{
2745 return (v & 0x1U) << 0U;
2746}
2747static inline u32 gr_ds_zbc_z_fmt_val_invalid_f(void)
2748{
2749 return 0x0U;
2750}
2751static inline u32 gr_ds_zbc_z_fmt_val_fp32_v(void)
2752{
2753 return 0x00000001U;
2754}
2755static inline u32 gr_ds_zbc_tbl_index_r(void)
2756{
2757 return 0x00405820U;
2758}
2759static inline u32 gr_ds_zbc_tbl_index_val_f(u32 v)
2760{
2761 return (v & 0xfU) << 0U;
2762}
2763static inline u32 gr_ds_zbc_tbl_ld_r(void)
2764{
2765 return 0x00405824U;
2766}
2767static inline u32 gr_ds_zbc_tbl_ld_select_c_f(void)
2768{
2769 return 0x0U;
2770}
2771static inline u32 gr_ds_zbc_tbl_ld_select_z_f(void)
2772{
2773 return 0x1U;
2774}
2775static inline u32 gr_ds_zbc_tbl_ld_action_write_f(void)
2776{
2777 return 0x0U;
2778}
2779static inline u32 gr_ds_zbc_tbl_ld_trigger_active_f(void)
2780{
2781 return 0x4U;
2782}
2783static inline u32 gr_ds_tga_constraintlogic_beta_r(void)
2784{
2785 return 0x00405830U;
2786}
2787static inline u32 gr_ds_tga_constraintlogic_beta_cbsize_f(u32 v)
2788{
2789 return (v & 0x3fffffU) << 0U;
2790}
2791static inline u32 gr_ds_tga_constraintlogic_alpha_r(void)
2792{
2793 return 0x0040585cU;
2794}
2795static inline u32 gr_ds_tga_constraintlogic_alpha_cbsize_f(u32 v)
2796{
2797 return (v & 0xffffU) << 0U;
2798}
2799static inline u32 gr_ds_hww_esr_r(void)
2800{
2801 return 0x00405840U;
2802}
2803static inline u32 gr_ds_hww_esr_reset_s(void)
2804{
2805 return 1U;
2806}
2807static inline u32 gr_ds_hww_esr_reset_f(u32 v)
2808{
2809 return (v & 0x1U) << 30U;
2810}
2811static inline u32 gr_ds_hww_esr_reset_m(void)
2812{
2813 return 0x1U << 30U;
2814}
2815static inline u32 gr_ds_hww_esr_reset_v(u32 r)
2816{
2817 return (r >> 30U) & 0x1U;
2818}
2819static inline u32 gr_ds_hww_esr_reset_task_v(void)
2820{
2821 return 0x00000001U;
2822}
2823static inline u32 gr_ds_hww_esr_reset_task_f(void)
2824{
2825 return 0x40000000U;
2826}
2827static inline u32 gr_ds_hww_esr_en_enabled_f(void)
2828{
2829 return 0x80000000U;
2830}
2831static inline u32 gr_ds_hww_esr_2_r(void)
2832{
2833 return 0x00405848U;
2834}
2835static inline u32 gr_ds_hww_esr_2_reset_s(void)
2836{
2837 return 1U;
2838}
2839static inline u32 gr_ds_hww_esr_2_reset_f(u32 v)
2840{
2841 return (v & 0x1U) << 30U;
2842}
2843static inline u32 gr_ds_hww_esr_2_reset_m(void)
2844{
2845 return 0x1U << 30U;
2846}
2847static inline u32 gr_ds_hww_esr_2_reset_v(u32 r)
2848{
2849 return (r >> 30U) & 0x1U;
2850}
2851static inline u32 gr_ds_hww_esr_2_reset_task_v(void)
2852{
2853 return 0x00000001U;
2854}
2855static inline u32 gr_ds_hww_esr_2_reset_task_f(void)
2856{
2857 return 0x40000000U;
2858}
2859static inline u32 gr_ds_hww_esr_2_en_enabled_f(void)
2860{
2861 return 0x80000000U;
2862}
2863static inline u32 gr_ds_hww_report_mask_r(void)
2864{
2865 return 0x00405844U;
2866}
2867static inline u32 gr_ds_hww_report_mask_sph0_err_report_f(void)
2868{
2869 return 0x1U;
2870}
2871static inline u32 gr_ds_hww_report_mask_sph1_err_report_f(void)
2872{
2873 return 0x2U;
2874}
2875static inline u32 gr_ds_hww_report_mask_sph2_err_report_f(void)
2876{
2877 return 0x4U;
2878}
2879static inline u32 gr_ds_hww_report_mask_sph3_err_report_f(void)
2880{
2881 return 0x8U;
2882}
2883static inline u32 gr_ds_hww_report_mask_sph4_err_report_f(void)
2884{
2885 return 0x10U;
2886}
2887static inline u32 gr_ds_hww_report_mask_sph5_err_report_f(void)
2888{
2889 return 0x20U;
2890}
2891static inline u32 gr_ds_hww_report_mask_sph6_err_report_f(void)
2892{
2893 return 0x40U;
2894}
2895static inline u32 gr_ds_hww_report_mask_sph7_err_report_f(void)
2896{
2897 return 0x80U;
2898}
2899static inline u32 gr_ds_hww_report_mask_sph8_err_report_f(void)
2900{
2901 return 0x100U;
2902}
2903static inline u32 gr_ds_hww_report_mask_sph9_err_report_f(void)
2904{
2905 return 0x200U;
2906}
2907static inline u32 gr_ds_hww_report_mask_sph10_err_report_f(void)
2908{
2909 return 0x400U;
2910}
2911static inline u32 gr_ds_hww_report_mask_sph11_err_report_f(void)
2912{
2913 return 0x800U;
2914}
2915static inline u32 gr_ds_hww_report_mask_sph12_err_report_f(void)
2916{
2917 return 0x1000U;
2918}
2919static inline u32 gr_ds_hww_report_mask_sph13_err_report_f(void)
2920{
2921 return 0x2000U;
2922}
2923static inline u32 gr_ds_hww_report_mask_sph14_err_report_f(void)
2924{
2925 return 0x4000U;
2926}
2927static inline u32 gr_ds_hww_report_mask_sph15_err_report_f(void)
2928{
2929 return 0x8000U;
2930}
2931static inline u32 gr_ds_hww_report_mask_sph16_err_report_f(void)
2932{
2933 return 0x10000U;
2934}
2935static inline u32 gr_ds_hww_report_mask_sph17_err_report_f(void)
2936{
2937 return 0x20000U;
2938}
2939static inline u32 gr_ds_hww_report_mask_sph18_err_report_f(void)
2940{
2941 return 0x40000U;
2942}
2943static inline u32 gr_ds_hww_report_mask_sph19_err_report_f(void)
2944{
2945 return 0x80000U;
2946}
2947static inline u32 gr_ds_hww_report_mask_sph20_err_report_f(void)
2948{
2949 return 0x100000U;
2950}
2951static inline u32 gr_ds_hww_report_mask_sph21_err_report_f(void)
2952{
2953 return 0x200000U;
2954}
2955static inline u32 gr_ds_hww_report_mask_sph22_err_report_f(void)
2956{
2957 return 0x400000U;
2958}
2959static inline u32 gr_ds_hww_report_mask_sph23_err_report_f(void)
2960{
2961 return 0x800000U;
2962}
2963static inline u32 gr_ds_hww_report_mask_2_r(void)
2964{
2965 return 0x0040584cU;
2966}
2967static inline u32 gr_ds_hww_report_mask_2_sph24_err_report_f(void)
2968{
2969 return 0x1U;
2970}
2971static inline u32 gr_ds_num_tpc_per_gpc_r(u32 i)
2972{
2973 return 0x00405870U + i*4U;
2974}
2975static inline u32 gr_scc_debug_r(void)
2976{
2977 return 0x00408000U;
2978}
2979static inline u32 gr_scc_debug_pagepool_invalidates_m(void)
2980{
2981 return 0x1U << 9U;
2982}
2983static inline u32 gr_scc_debug_pagepool_invalidates_disable_f(void)
2984{
2985 return 0x200U;
2986}
2987static inline u32 gr_scc_debug_pagepool_invalidates_enable_f(void)
2988{
2989 return 0x0U;
2990}
2991static inline u32 gr_scc_bundle_cb_base_r(void)
2992{
2993 return 0x00408004U;
2994}
2995static inline u32 gr_scc_bundle_cb_base_addr_39_8_f(u32 v)
2996{
2997 return (v & 0xffffffffU) << 0U;
2998}
2999static inline u32 gr_scc_bundle_cb_base_addr_39_8_align_bits_v(void)
3000{
3001 return 0x00000008U;
3002}
3003static inline u32 gr_scc_bundle_cb_size_r(void)
3004{
3005 return 0x00408008U;
3006}
3007static inline u32 gr_scc_bundle_cb_size_div_256b_f(u32 v)
3008{
3009 return (v & 0x7ffU) << 0U;
3010}
3011static inline u32 gr_scc_bundle_cb_size_div_256b__prod_v(void)
3012{
3013 return 0x00000030U;
3014}
3015static inline u32 gr_scc_bundle_cb_size_div_256b_byte_granularity_v(void)
3016{
3017 return 0x00000100U;
3018}
3019static inline u32 gr_scc_bundle_cb_size_valid_false_v(void)
3020{
3021 return 0x00000000U;
3022}
3023static inline u32 gr_scc_bundle_cb_size_valid_false_f(void)
3024{
3025 return 0x0U;
3026}
3027static inline u32 gr_scc_bundle_cb_size_valid_true_f(void)
3028{
3029 return 0x80000000U;
3030}
3031static inline u32 gr_scc_pagepool_base_r(void)
3032{
3033 return 0x0040800cU;
3034}
3035static inline u32 gr_scc_pagepool_base_addr_39_8_f(u32 v)
3036{
3037 return (v & 0xffffffffU) << 0U;
3038}
3039static inline u32 gr_scc_pagepool_base_addr_39_8_align_bits_v(void)
3040{
3041 return 0x00000008U;
3042}
3043static inline u32 gr_scc_pagepool_r(void)
3044{
3045 return 0x00408010U;
3046}
3047static inline u32 gr_scc_pagepool_total_pages_f(u32 v)
3048{
3049 return (v & 0x3ffU) << 0U;
3050}
3051static inline u32 gr_scc_pagepool_total_pages_hwmax_v(void)
3052{
3053 return 0x00000000U;
3054}
3055static inline u32 gr_scc_pagepool_total_pages_hwmax_value_v(void)
3056{
3057 return 0x00000200U;
3058}
3059static inline u32 gr_scc_pagepool_total_pages_byte_granularity_v(void)
3060{
3061 return 0x00000100U;
3062}
3063static inline u32 gr_scc_pagepool_max_valid_pages_s(void)
3064{
3065 return 10U;
3066}
3067static inline u32 gr_scc_pagepool_max_valid_pages_f(u32 v)
3068{
3069 return (v & 0x3ffU) << 10U;
3070}
3071static inline u32 gr_scc_pagepool_max_valid_pages_m(void)
3072{
3073 return 0x3ffU << 10U;
3074}
3075static inline u32 gr_scc_pagepool_max_valid_pages_v(u32 r)
3076{
3077 return (r >> 10U) & 0x3ffU;
3078}
3079static inline u32 gr_scc_pagepool_valid_true_f(void)
3080{
3081 return 0x80000000U;
3082}
3083static inline u32 gr_scc_init_r(void)
3084{
3085 return 0x0040802cU;
3086}
3087static inline u32 gr_scc_init_ram_trigger_f(void)
3088{
3089 return 0x1U;
3090}
3091static inline u32 gr_scc_hww_esr_r(void)
3092{
3093 return 0x00408030U;
3094}
3095static inline u32 gr_scc_hww_esr_reset_active_f(void)
3096{
3097 return 0x40000000U;
3098}
3099static inline u32 gr_scc_hww_esr_en_enable_f(void)
3100{
3101 return 0x80000000U;
3102}
3103static inline u32 gr_ssync_hww_esr_r(void)
3104{
3105 return 0x00405a14U;
3106}
3107static inline u32 gr_ssync_hww_esr_reset_active_f(void)
3108{
3109 return 0x40000000U;
3110}
3111static inline u32 gr_ssync_hww_esr_en_enable_f(void)
3112{
3113 return 0x80000000U;
3114}
3115static inline u32 gr_sked_hww_esr_r(void)
3116{
3117 return 0x00407020U;
3118}
3119static inline u32 gr_sked_hww_esr_reset_active_f(void)
3120{
3121 return 0x40000000U;
3122}
3123static inline u32 gr_sked_hww_esr_en_r(void)
3124{
3125 return 0x00407024U;
3126}
3127static inline u32 gr_sked_hww_esr_en_skedcheck18_l1_config_too_small_m(void)
3128{
3129 return 0x1U << 25U;
3130}
3131static inline u32 gr_sked_hww_esr_en_skedcheck18_l1_config_too_small_disabled_f(void)
3132{
3133 return 0x0U;
3134}
3135static inline u32 gr_sked_hww_esr_en_skedcheck18_l1_config_too_small_enabled_f(void)
3136{
3137 return 0x2000000U;
3138}
3139static inline u32 gr_cwd_fs_r(void)
3140{
3141 return 0x00405b00U;
3142}
3143static inline u32 gr_cwd_fs_num_gpcs_f(u32 v)
3144{
3145 return (v & 0xffU) << 0U;
3146}
3147static inline u32 gr_cwd_fs_num_tpcs_f(u32 v)
3148{
3149 return (v & 0xffU) << 8U;
3150}
3151static inline u32 gr_cwd_gpc_tpc_id_r(u32 i)
3152{
3153 return 0x00405b60U + i*4U;
3154}
3155static inline u32 gr_cwd_gpc_tpc_id_tpc0_s(void)
3156{
3157 return 4U;
3158}
3159static inline u32 gr_cwd_gpc_tpc_id_tpc0_f(u32 v)
3160{
3161 return (v & 0xfU) << 0U;
3162}
3163static inline u32 gr_cwd_gpc_tpc_id_gpc0_s(void)
3164{
3165 return 4U;
3166}
3167static inline u32 gr_cwd_gpc_tpc_id_gpc0_f(u32 v)
3168{
3169 return (v & 0xfU) << 4U;
3170}
3171static inline u32 gr_cwd_gpc_tpc_id_tpc1_f(u32 v)
3172{
3173 return (v & 0xfU) << 8U;
3174}
3175static inline u32 gr_cwd_sm_id_r(u32 i)
3176{
3177 return 0x00405ba0U + i*4U;
3178}
3179static inline u32 gr_cwd_sm_id__size_1_v(void)
3180{
3181 return 0x00000010U;
3182}
3183static inline u32 gr_cwd_sm_id_tpc0_f(u32 v)
3184{
3185 return (v & 0xffU) << 0U;
3186}
3187static inline u32 gr_cwd_sm_id_tpc1_f(u32 v)
3188{
3189 return (v & 0xffU) << 8U;
3190}
3191static inline u32 gr_gpc0_fs_gpc_r(void)
3192{
3193 return 0x00502608U;
3194}
3195static inline u32 gr_gpc0_fs_gpc_num_available_tpcs_v(u32 r)
3196{
3197 return (r >> 0U) & 0x1fU;
3198}
3199static inline u32 gr_gpc0_fs_gpc_num_available_zculls_v(u32 r)
3200{
3201 return (r >> 16U) & 0x1fU;
3202}
3203static inline u32 gr_gpc0_cfg_r(void)
3204{
3205 return 0x00502620U;
3206}
3207static inline u32 gr_gpc0_cfg_imem_sz_v(u32 r)
3208{
3209 return (r >> 0U) & 0xffU;
3210}
3211static inline u32 gr_gpccs_rc_lanes_r(void)
3212{
3213 return 0x00502880U;
3214}
3215static inline u32 gr_gpccs_rc_lanes_num_chains_s(void)
3216{
3217 return 6U;
3218}
3219static inline u32 gr_gpccs_rc_lanes_num_chains_f(u32 v)
3220{
3221 return (v & 0x3fU) << 0U;
3222}
3223static inline u32 gr_gpccs_rc_lanes_num_chains_m(void)
3224{
3225 return 0x3fU << 0U;
3226}
3227static inline u32 gr_gpccs_rc_lanes_num_chains_v(u32 r)
3228{
3229 return (r >> 0U) & 0x3fU;
3230}
3231static inline u32 gr_gpccs_rc_lane_size_r(void)
3232{
3233 return 0x00502910U;
3234}
3235static inline u32 gr_gpccs_rc_lane_size_v_s(void)
3236{
3237 return 24U;
3238}
3239static inline u32 gr_gpccs_rc_lane_size_v_f(u32 v)
3240{
3241 return (v & 0xffffffU) << 0U;
3242}
3243static inline u32 gr_gpccs_rc_lane_size_v_m(void)
3244{
3245 return 0xffffffU << 0U;
3246}
3247static inline u32 gr_gpccs_rc_lane_size_v_v(u32 r)
3248{
3249 return (r >> 0U) & 0xffffffU;
3250}
3251static inline u32 gr_gpccs_rc_lane_size_v_0_v(void)
3252{
3253 return 0x00000000U;
3254}
3255static inline u32 gr_gpccs_rc_lane_size_v_0_f(void)
3256{
3257 return 0x0U;
3258}
3259static inline u32 gr_gpc0_zcull_fs_r(void)
3260{
3261 return 0x00500910U;
3262}
3263static inline u32 gr_gpc0_zcull_fs_num_sms_f(u32 v)
3264{
3265 return (v & 0x1ffU) << 0U;
3266}
3267static inline u32 gr_gpc0_zcull_fs_num_active_banks_f(u32 v)
3268{
3269 return (v & 0xfU) << 16U;
3270}
3271static inline u32 gr_gpc0_zcull_ram_addr_r(void)
3272{
3273 return 0x00500914U;
3274}
3275static inline u32 gr_gpc0_zcull_ram_addr_tiles_per_hypertile_row_per_gpc_f(u32 v)
3276{
3277 return (v & 0xfU) << 0U;
3278}
3279static inline u32 gr_gpc0_zcull_ram_addr_row_offset_f(u32 v)
3280{
3281 return (v & 0xfU) << 8U;
3282}
3283static inline u32 gr_gpc0_zcull_sm_num_rcp_r(void)
3284{
3285 return 0x00500918U;
3286}
3287static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative_f(u32 v)
3288{
3289 return (v & 0xffffffU) << 0U;
3290}
3291static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative__max_v(void)
3292{
3293 return 0x00800000U;
3294}
3295static inline u32 gr_gpc0_zcull_total_ram_size_r(void)
3296{
3297 return 0x00500920U;
3298}
3299static inline u32 gr_gpc0_zcull_total_ram_size_num_aliquots_f(u32 v)
3300{
3301 return (v & 0xffffU) << 0U;
3302}
3303static inline u32 gr_gpc0_zcull_zcsize_r(u32 i)
3304{
3305 return 0x00500a04U + i*32U;
3306}
3307static inline u32 gr_gpc0_zcull_zcsize_height_subregion__multiple_v(void)
3308{
3309 return 0x00000040U;
3310}
3311static inline u32 gr_gpc0_zcull_zcsize_width_subregion__multiple_v(void)
3312{
3313 return 0x00000010U;
3314}
3315static inline u32 gr_gpc0_gpm_pd_sm_id_r(u32 i)
3316{
3317 return 0x00500c10U + i*4U;
3318}
3319static inline u32 gr_gpc0_gpm_pd_sm_id_id_f(u32 v)
3320{
3321 return (v & 0xffU) << 0U;
3322}
3323static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_r(u32 i)
3324{
3325 return 0x00500c30U + i*4U;
3326}
3327static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_mask_v(u32 r)
3328{
3329 return (r >> 0U) & 0xffU;
3330}
3331static inline u32 gr_gpc0_tpc0_pe_cfg_smid_r(void)
3332{
3333 return 0x00504088U;
3334}
3335static inline u32 gr_gpc0_tpc0_pe_cfg_smid_value_f(u32 v)
3336{
3337 return (v & 0xffffU) << 0U;
3338}
3339static inline u32 gr_gpc0_tpc0_sm_cfg_r(void)
3340{
3341 return 0x00504608U;
3342}
3343static inline u32 gr_gpc0_tpc0_sm_cfg_tpc_id_f(u32 v)
3344{
3345 return (v & 0xffffU) << 0U;
3346}
3347static inline u32 gr_gpc0_tpc0_sm_cfg_tpc_id_v(u32 r)
3348{
3349 return (r >> 0U) & 0xffffU;
3350}
3351static inline u32 gr_gpc0_tpc0_sm_arch_r(void)
3352{
3353 return 0x00504330U;
3354}
3355static inline u32 gr_gpc0_tpc0_sm_arch_warp_count_v(u32 r)
3356{
3357 return (r >> 0U) & 0xffU;
3358}
3359static inline u32 gr_gpc0_tpc0_sm_arch_spa_version_v(u32 r)
3360{
3361 return (r >> 8U) & 0xfffU;
3362}
3363static inline u32 gr_gpc0_tpc0_sm_arch_sm_version_v(u32 r)
3364{
3365 return (r >> 20U) & 0xfffU;
3366}
3367static inline u32 gr_gpc0_ppc0_pes_vsc_strem_r(void)
3368{
3369 return 0x00503018U;
3370}
3371static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_m(void)
3372{
3373 return 0x1U << 0U;
3374}
3375static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_true_f(void)
3376{
3377 return 0x1U;
3378}
3379static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_r(void)
3380{
3381 return 0x005030c0U;
3382}
3383static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_f(u32 v)
3384{
3385 return (v & 0x3fffffU) << 0U;
3386}
3387static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_m(void)
3388{
3389 return 0x3fffffU << 0U;
3390}
3391static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_default_v(void)
3392{
3393 return 0x00000800U;
3394}
3395static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_gfxp_v(void)
3396{
3397 return 0x00001100U;
3398}
3399static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_granularity_v(void)
3400{
3401 return 0x00000020U;
3402}
3403static inline u32 gr_gpc0_ppc0_cbm_beta_cb_offset_r(void)
3404{
3405 return 0x005030f4U;
3406}
3407static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_r(void)
3408{
3409 return 0x005030e4U;
3410}
3411static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_f(u32 v)
3412{
3413 return (v & 0xffffU) << 0U;
3414}
3415static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_m(void)
3416{
3417 return 0xffffU << 0U;
3418}
3419static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_default_v(void)
3420{
3421 return 0x00000800U;
3422}
3423static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_granularity_v(void)
3424{
3425 return 0x00000020U;
3426}
3427static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_offset_r(void)
3428{
3429 return 0x005030f8U;
3430}
3431static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_r(void)
3432{
3433 return 0x005030f0U;
3434}
3435static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_f(u32 v)
3436{
3437 return (v & 0x3fffffU) << 0U;
3438}
3439static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_default_v(void)
3440{
3441 return 0x00000800U;
3442}
3443static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_r(void)
3444{
3445 return 0x00419e00U;
3446}
3447static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_base_addr_43_12_f(u32 v)
3448{
3449 return (v & 0xffffffffU) << 0U;
3450}
3451static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_r(void)
3452{
3453 return 0x00419e04U;
3454}
3455static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_s(void)
3456{
3457 return 21U;
3458}
3459static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_f(u32 v)
3460{
3461 return (v & 0x1fffffU) << 0U;
3462}
3463static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_m(void)
3464{
3465 return 0x1fffffU << 0U;
3466}
3467static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_v(u32 r)
3468{
3469 return (r >> 0U) & 0x1fffffU;
3470}
3471static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_granularity_f(void)
3472{
3473 return 0x80U;
3474}
3475static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_s(void)
3476{
3477 return 1U;
3478}
3479static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_f(u32 v)
3480{
3481 return (v & 0x1U) << 31U;
3482}
3483static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_m(void)
3484{
3485 return 0x1U << 31U;
3486}
3487static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_v(u32 r)
3488{
3489 return (r >> 31U) & 0x1U;
3490}
3491static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_true_f(void)
3492{
3493 return 0x80000000U;
3494}
3495static inline u32 gr_gpccs_falcon_addr_r(void)
3496{
3497 return 0x0041a0acU;
3498}
3499static inline u32 gr_gpccs_falcon_addr_lsb_s(void)
3500{
3501 return 6U;
3502}
3503static inline u32 gr_gpccs_falcon_addr_lsb_f(u32 v)
3504{
3505 return (v & 0x3fU) << 0U;
3506}
3507static inline u32 gr_gpccs_falcon_addr_lsb_m(void)
3508{
3509 return 0x3fU << 0U;
3510}
3511static inline u32 gr_gpccs_falcon_addr_lsb_v(u32 r)
3512{
3513 return (r >> 0U) & 0x3fU;
3514}
3515static inline u32 gr_gpccs_falcon_addr_lsb_init_v(void)
3516{
3517 return 0x00000000U;
3518}
3519static inline u32 gr_gpccs_falcon_addr_lsb_init_f(void)
3520{
3521 return 0x0U;
3522}
3523static inline u32 gr_gpccs_falcon_addr_msb_s(void)
3524{
3525 return 6U;
3526}
3527static inline u32 gr_gpccs_falcon_addr_msb_f(u32 v)
3528{
3529 return (v & 0x3fU) << 6U;
3530}
3531static inline u32 gr_gpccs_falcon_addr_msb_m(void)
3532{
3533 return 0x3fU << 6U;
3534}
3535static inline u32 gr_gpccs_falcon_addr_msb_v(u32 r)
3536{
3537 return (r >> 6U) & 0x3fU;
3538}
3539static inline u32 gr_gpccs_falcon_addr_msb_init_v(void)
3540{
3541 return 0x00000000U;
3542}
3543static inline u32 gr_gpccs_falcon_addr_msb_init_f(void)
3544{
3545 return 0x0U;
3546}
3547static inline u32 gr_gpccs_falcon_addr_ext_s(void)
3548{
3549 return 12U;
3550}
3551static inline u32 gr_gpccs_falcon_addr_ext_f(u32 v)
3552{
3553 return (v & 0xfffU) << 0U;
3554}
3555static inline u32 gr_gpccs_falcon_addr_ext_m(void)
3556{
3557 return 0xfffU << 0U;
3558}
3559static inline u32 gr_gpccs_falcon_addr_ext_v(u32 r)
3560{
3561 return (r >> 0U) & 0xfffU;
3562}
3563static inline u32 gr_gpccs_cpuctl_r(void)
3564{
3565 return 0x0041a100U;
3566}
3567static inline u32 gr_gpccs_cpuctl_startcpu_f(u32 v)
3568{
3569 return (v & 0x1U) << 1U;
3570}
3571static inline u32 gr_gpccs_dmactl_r(void)
3572{
3573 return 0x0041a10cU;
3574}
3575static inline u32 gr_gpccs_dmactl_require_ctx_f(u32 v)
3576{
3577 return (v & 0x1U) << 0U;
3578}
3579static inline u32 gr_gpccs_dmactl_dmem_scrubbing_m(void)
3580{
3581 return 0x1U << 1U;
3582}
3583static inline u32 gr_gpccs_dmactl_imem_scrubbing_m(void)
3584{
3585 return 0x1U << 2U;
3586}
3587static inline u32 gr_gpccs_imemc_r(u32 i)
3588{
3589 return 0x0041a180U + i*16U;
3590}
3591static inline u32 gr_gpccs_imemc_offs_f(u32 v)
3592{
3593 return (v & 0x3fU) << 2U;
3594}
3595static inline u32 gr_gpccs_imemc_blk_f(u32 v)
3596{
3597 return (v & 0xffU) << 8U;
3598}
3599static inline u32 gr_gpccs_imemc_aincw_f(u32 v)
3600{
3601 return (v & 0x1U) << 24U;
3602}
3603static inline u32 gr_gpccs_imemd_r(u32 i)
3604{
3605 return 0x0041a184U + i*16U;
3606}
3607static inline u32 gr_gpccs_imemt_r(u32 i)
3608{
3609 return 0x0041a188U + i*16U;
3610}
3611static inline u32 gr_gpccs_imemt__size_1_v(void)
3612{
3613 return 0x00000004U;
3614}
3615static inline u32 gr_gpccs_imemt_tag_f(u32 v)
3616{
3617 return (v & 0xffffU) << 0U;
3618}
3619static inline u32 gr_gpccs_dmemc_r(u32 i)
3620{
3621 return 0x0041a1c0U + i*8U;
3622}
3623static inline u32 gr_gpccs_dmemc_offs_f(u32 v)
3624{
3625 return (v & 0x3fU) << 2U;
3626}
3627static inline u32 gr_gpccs_dmemc_blk_f(u32 v)
3628{
3629 return (v & 0xffU) << 8U;
3630}
3631static inline u32 gr_gpccs_dmemc_aincw_f(u32 v)
3632{
3633 return (v & 0x1U) << 24U;
3634}
3635static inline u32 gr_gpccs_dmemd_r(u32 i)
3636{
3637 return 0x0041a1c4U + i*8U;
3638}
3639static inline u32 gr_gpccs_ctxsw_mailbox_r(u32 i)
3640{
3641 return 0x0041a800U + i*4U;
3642}
3643static inline u32 gr_gpccs_ctxsw_mailbox_value_f(u32 v)
3644{
3645 return (v & 0xffffffffU) << 0U;
3646}
3647static inline u32 gr_gpcs_swdx_bundle_cb_base_r(void)
3648{
3649 return 0x00418e24U;
3650}
3651static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_s(void)
3652{
3653 return 32U;
3654}
3655static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_f(u32 v)
3656{
3657 return (v & 0xffffffffU) << 0U;
3658}
3659static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_m(void)
3660{
3661 return 0xffffffffU << 0U;
3662}
3663static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_v(u32 r)
3664{
3665 return (r >> 0U) & 0xffffffffU;
3666}
3667static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_v(void)
3668{
3669 return 0x00000000U;
3670}
3671static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_f(void)
3672{
3673 return 0x0U;
3674}
3675static inline u32 gr_gpcs_swdx_bundle_cb_size_r(void)
3676{
3677 return 0x00418e28U;
3678}
3679static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_s(void)
3680{
3681 return 11U;
3682}
3683static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_f(u32 v)
3684{
3685 return (v & 0x7ffU) << 0U;
3686}
3687static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_m(void)
3688{
3689 return 0x7ffU << 0U;
3690}
3691static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_v(u32 r)
3692{
3693 return (r >> 0U) & 0x7ffU;
3694}
3695static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_v(void)
3696{
3697 return 0x00000030U;
3698}
3699static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_f(void)
3700{
3701 return 0x30U;
3702}
3703static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_s(void)
3704{
3705 return 1U;
3706}
3707static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_f(u32 v)
3708{
3709 return (v & 0x1U) << 31U;
3710}
3711static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_m(void)
3712{
3713 return 0x1U << 31U;
3714}
3715static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_v(u32 r)
3716{
3717 return (r >> 31U) & 0x1U;
3718}
3719static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_v(void)
3720{
3721 return 0x00000000U;
3722}
3723static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_f(void)
3724{
3725 return 0x0U;
3726}
3727static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_v(void)
3728{
3729 return 0x00000001U;
3730}
3731static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_f(void)
3732{
3733 return 0x80000000U;
3734}
3735static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_r(void)
3736{
3737 return 0x005001dcU;
3738}
3739static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_f(u32 v)
3740{
3741 return (v & 0xffffU) << 0U;
3742}
3743static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_default_v(void)
3744{
3745 return 0x00000170U;
3746}
3747static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_byte_granularity_v(void)
3748{
3749 return 0x00000100U;
3750}
3751static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_r(void)
3752{
3753 return 0x005001d8U;
3754}
3755static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_f(u32 v)
3756{
3757 return (v & 0xffffffffU) << 0U;
3758}
3759static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_align_bits_v(void)
3760{
3761 return 0x00000008U;
3762}
3763static inline u32 gr_gpcs_swdx_beta_cb_ctrl_r(void)
3764{
3765 return 0x004181e4U;
3766}
3767static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_f(u32 v)
3768{
3769 return (v & 0xfffU) << 0U;
3770}
3771static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_gfxp_v(void)
3772{
3773 return 0x00000100U;
3774}
3775static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_r(void)
3776{
3777 return 0x0041befcU;
3778}
3779static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_cbes_reserve_f(u32 v)
3780{
3781 return (v & 0xfffU) << 0U;
3782}
3783static inline u32 gr_gpcs_ppcs_cbm_debug_r(void)
3784{
3785 return 0x0041bec4U;
3786}
3787static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_alpha_m(void)
3788{
3789 return 0x1U << 0U;
3790}
3791static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_alpha_disable_f(void)
3792{
3793 return 0x0U;
3794}
3795static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_alpha_enable_f(void)
3796{
3797 return 0x1U;
3798}
3799static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_beta_m(void)
3800{
3801 return 0x1U << 1U;
3802}
3803static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_beta_disable_f(void)
3804{
3805 return 0x0U;
3806}
3807static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_beta_enable_f(void)
3808{
3809 return 0x2U;
3810}
3811static inline u32 gr_gpcs_swdx_tc_beta_cb_size_r(u32 i)
3812{
3813 return 0x00418ea0U + i*4U;
3814}
3815static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_f(u32 v)
3816{
3817 return (v & 0x3fffffU) << 0U;
3818}
3819static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_m(void)
3820{
3821 return 0x3fffffU << 0U;
3822}
3823static inline u32 gr_gpcs_swdx_dss_zbc_color_r_r(u32 i)
3824{
3825 return 0x00418010U + i*4U;
3826}
3827static inline u32 gr_gpcs_swdx_dss_zbc_color_r_val_f(u32 v)
3828{
3829 return (v & 0xffffffffU) << 0U;
3830}
3831static inline u32 gr_gpcs_swdx_dss_zbc_color_g_r(u32 i)
3832{
3833 return 0x0041804cU + i*4U;
3834}
3835static inline u32 gr_gpcs_swdx_dss_zbc_color_g_val_f(u32 v)
3836{
3837 return (v & 0xffffffffU) << 0U;
3838}
3839static inline u32 gr_gpcs_swdx_dss_zbc_color_b_r(u32 i)
3840{
3841 return 0x00418088U + i*4U;
3842}
3843static inline u32 gr_gpcs_swdx_dss_zbc_color_b_val_f(u32 v)
3844{
3845 return (v & 0xffffffffU) << 0U;
3846}
3847static inline u32 gr_gpcs_swdx_dss_zbc_color_a_r(u32 i)
3848{
3849 return 0x004180c4U + i*4U;
3850}
3851static inline u32 gr_gpcs_swdx_dss_zbc_color_a_val_f(u32 v)
3852{
3853 return (v & 0xffffffffU) << 0U;
3854}
3855static inline u32 gr_gpcs_swdx_dss_zbc_c_01_to_04_format_r(void)
3856{
3857 return 0x00418100U;
3858}
3859static inline u32 gr_gpcs_swdx_dss_zbc_z_r(u32 i)
3860{
3861 return 0x00418110U + i*4U;
3862}
3863static inline u32 gr_gpcs_swdx_dss_zbc_z_val_f(u32 v)
3864{
3865 return (v & 0xffffffffU) << 0U;
3866}
3867static inline u32 gr_gpcs_swdx_dss_zbc_z_01_to_04_format_r(void)
3868{
3869 return 0x0041814cU;
3870}
3871static inline u32 gr_gpcs_swdx_dss_zbc_s_r(u32 i)
3872{
3873 return 0x0041815cU + i*4U;
3874}
3875static inline u32 gr_gpcs_swdx_dss_zbc_s_val_f(u32 v)
3876{
3877 return (v & 0xffU) << 0U;
3878}
3879static inline u32 gr_gpcs_swdx_dss_zbc_s_01_to_04_format_r(void)
3880{
3881 return 0x00418198U;
3882}
3883static inline u32 gr_gpcs_swdx_spill_unit_r(void)
3884{
3885 return 0x00418e9cU;
3886}
3887static inline u32 gr_gpcs_swdx_spill_unit_spill_buffer_cache_mgmt_mode_m(void)
3888{
3889 return 0x1U << 16U;
3890}
3891static inline u32 gr_gpcs_swdx_spill_unit_spill_buffer_cache_mgmt_mode_disabled_f(void)
3892{
3893 return 0x0U;
3894}
3895static inline u32 gr_gpcs_swdx_spill_unit_spill_buffer_cache_mgmt_mode_enabled_f(void)
3896{
3897 return 0x10000U;
3898}
3899static inline u32 gr_gpcs_setup_attrib_cb_base_r(void)
3900{
3901 return 0x00418810U;
3902}
3903static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_f(u32 v)
3904{
3905 return (v & 0xfffffffU) << 0U;
3906}
3907static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_align_bits_v(void)
3908{
3909 return 0x0000000cU;
3910}
3911static inline u32 gr_gpcs_setup_attrib_cb_base_valid_true_f(void)
3912{
3913 return 0x80000000U;
3914}
3915static inline u32 gr_crstr_gpc_map_r(u32 i)
3916{
3917 return 0x00418b08U + i*4U;
3918}
3919static inline u32 gr_crstr_gpc_map_tile0_f(u32 v)
3920{
3921 return (v & 0x1fU) << 0U;
3922}
3923static inline u32 gr_crstr_gpc_map_tile1_f(u32 v)
3924{
3925 return (v & 0x1fU) << 5U;
3926}
3927static inline u32 gr_crstr_gpc_map_tile2_f(u32 v)
3928{
3929 return (v & 0x1fU) << 10U;
3930}
3931static inline u32 gr_crstr_gpc_map_tile3_f(u32 v)
3932{
3933 return (v & 0x1fU) << 15U;
3934}
3935static inline u32 gr_crstr_gpc_map_tile4_f(u32 v)
3936{
3937 return (v & 0x1fU) << 20U;
3938}
3939static inline u32 gr_crstr_gpc_map_tile5_f(u32 v)
3940{
3941 return (v & 0x1fU) << 25U;
3942}
3943static inline u32 gr_crstr_map_table_cfg_r(void)
3944{
3945 return 0x00418bb8U;
3946}
3947static inline u32 gr_crstr_map_table_cfg_row_offset_f(u32 v)
3948{
3949 return (v & 0xffU) << 0U;
3950}
3951static inline u32 gr_crstr_map_table_cfg_num_entries_f(u32 v)
3952{
3953 return (v & 0xffU) << 8U;
3954}
3955static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_r(u32 i)
3956{
3957 return 0x00418980U + i*4U;
3958}
3959static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_0_f(u32 v)
3960{
3961 return (v & 0x7U) << 0U;
3962}
3963static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_1_f(u32 v)
3964{
3965 return (v & 0x7U) << 4U;
3966}
3967static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_2_f(u32 v)
3968{
3969 return (v & 0x7U) << 8U;
3970}
3971static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_3_f(u32 v)
3972{
3973 return (v & 0x7U) << 12U;
3974}
3975static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_4_f(u32 v)
3976{
3977 return (v & 0x7U) << 16U;
3978}
3979static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_5_f(u32 v)
3980{
3981 return (v & 0x7U) << 20U;
3982}
3983static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_6_f(u32 v)
3984{
3985 return (v & 0x7U) << 24U;
3986}
3987static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_7_f(u32 v)
3988{
3989 return (v & 0x7U) << 28U;
3990}
3991static inline u32 gr_gpcs_gpm_pd_cfg_r(void)
3992{
3993 return 0x00418c6cU;
3994}
3995static inline u32 gr_gpcs_gcc_pagepool_base_r(void)
3996{
3997 return 0x00419004U;
3998}
3999static inline u32 gr_gpcs_gcc_pagepool_base_addr_39_8_f(u32 v)
4000{
4001 return (v & 0xffffffffU) << 0U;
4002}
4003static inline u32 gr_gpcs_gcc_pagepool_r(void)
4004{
4005 return 0x00419008U;
4006}
4007static inline u32 gr_gpcs_gcc_pagepool_total_pages_f(u32 v)
4008{
4009 return (v & 0x3ffU) << 0U;
4010}
4011static inline u32 gr_gpcs_tpcs_pe_vaf_r(void)
4012{
4013 return 0x0041980cU;
4014}
4015static inline u32 gr_gpcs_tpcs_pe_vaf_fast_mode_switch_true_f(void)
4016{
4017 return 0x10U;
4018}
4019static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_r(void)
4020{
4021 return 0x00419848U;
4022}
4023static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_v_f(u32 v)
4024{
4025 return (v & 0xfffffffU) << 0U;
4026}
4027static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_f(u32 v)
4028{
4029 return (v & 0x1U) << 28U;
4030}
4031static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_true_f(void)
4032{
4033 return 0x10000000U;
4034}
4035static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_r(void)
4036{
4037 return 0x00419c00U;
4038}
4039static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_disabled_f(void)
4040{
4041 return 0x0U;
4042}
4043static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_enabled_f(void)
4044{
4045 return 0x8U;
4046}
4047static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_r(void)
4048{
4049 return 0x00419c2cU;
4050}
4051static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_v_f(u32 v)
4052{
4053 return (v & 0xfffffffU) << 0U;
4054}
4055static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_f(u32 v)
4056{
4057 return (v & 0x1U) << 28U;
4058}
4059static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_true_f(void)
4060{
4061 return 0x10000000U;
4062}
4063static inline u32 gr_gpcs_tpcs_sms_hww_warp_esr_report_mask_r(void)
4064{
4065 return 0x00419ea8U;
4066}
4067static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_r(void)
4068{
4069 return 0x00504728U;
4070}
4071static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_stack_error_report_f(void)
4072{
4073 return 0x2U;
4074}
4075static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_api_stack_error_report_f(void)
4076{
4077 return 0x4U;
4078}
4079static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_pc_wrap_report_f(void)
4080{
4081 return 0x10U;
4082}
4083static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_misaligned_pc_report_f(void)
4084{
4085 return 0x20U;
4086}
4087static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_pc_overflow_report_f(void)
4088{
4089 return 0x40U;
4090}
4091static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_misaligned_reg_report_f(void)
4092{
4093 return 0x100U;
4094}
4095static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_illegal_instr_encoding_report_f(void)
4096{
4097 return 0x200U;
4098}
4099static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_illegal_instr_param_report_f(void)
4100{
4101 return 0x800U;
4102}
4103static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_oor_reg_report_f(void)
4104{
4105 return 0x2000U;
4106}
4107static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_oor_addr_report_f(void)
4108{
4109 return 0x4000U;
4110}
4111static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_misaligned_addr_report_f(void)
4112{
4113 return 0x8000U;
4114}
4115static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_invalid_addr_space_report_f(void)
4116{
4117 return 0x10000U;
4118}
4119static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_invalid_const_addr_ldc_report_f(void)
4120{
4121 return 0x40000U;
4122}
4123static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_mmu_fault_report_f(void)
4124{
4125 return 0x800000U;
4126}
4127static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_stack_overflow_report_f(void)
4128{
4129 return 0x400000U;
4130}
4131static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_mmu_nack_report_f(void)
4132{
4133 return 0x4000000U;
4134}
4135static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_r(void)
4136{
4137 return 0x00419d0cU;
4138}
4139static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_sm_enabled_f(void)
4140{
4141 return 0x2U;
4142}
4143static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_tex_enabled_f(void)
4144{
4145 return 0x1U;
4146}
4147static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_mpc_enabled_f(void)
4148{
4149 return 0x10U;
4150}
4151static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
4152{
4153 return 0x0050450cU;
4154}
4155static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_v(u32 r)
4156{
4157 return (r >> 1U) & 0x1U;
4158}
4159static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_enabled_f(void)
4160{
4161 return 0x2U;
4162}
4163static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_mpc_enabled_f(void)
4164{
4165 return 0x10U;
4166}
4167static inline u32 gr_gpcs_gpccs_gpc_exception_en_r(void)
4168{
4169 return 0x0041ac94U;
4170}
4171static inline u32 gr_gpcs_gpccs_gpc_exception_en_gcc_f(u32 v)
4172{
4173 return (v & 0x1U) << 2U;
4174}
4175static inline u32 gr_gpcs_gpccs_gpc_exception_en_tpc_f(u32 v)
4176{
4177 return (v & 0xffU) << 16U;
4178}
4179static inline u32 gr_gpcs_gpccs_gpc_exception_en_gpccs_f(u32 v)
4180{
4181 return (v & 0x1U) << 14U;
4182}
4183static inline u32 gr_gpcs_gpccs_gpc_exception_en_gpcmmu_f(u32 v)
4184{
4185 return (v & 0x1U) << 15U;
4186}
4187static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
4188{
4189 return 0x00502c90U;
4190}
4191static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r)
4192{
4193 return (r >> 2U) & 0x1U;
4194}
4195static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
4196{
4197 return (r >> 16U) & 0xffU;
4198}
4199static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_0_pending_v(void)
4200{
4201 return 0x00000001U;
4202}
4203static inline u32 gr_gpc0_gpccs_gpc_exception_gpccs_f(u32 v)
4204{
4205 return (v & 0x1U) << 14U;
4206}
4207static inline u32 gr_gpc0_gpccs_gpc_exception_gpccs_m(void)
4208{
4209 return 0x1U << 14U;
4210}
4211static inline u32 gr_gpc0_gpccs_gpc_exception_gpccs_pending_f(void)
4212{
4213 return 0x4000U;
4214}
4215static inline u32 gr_gpc0_gpccs_gpc_exception_gpcmmu_f(u32 v)
4216{
4217 return (v & 0x1U) << 15U;
4218}
4219static inline u32 gr_gpc0_gpccs_gpc_exception_gpcmmu_m(void)
4220{
4221 return 0x1U << 15U;
4222}
4223static inline u32 gr_gpc0_gpccs_gpc_exception_gpcmmu_pending_f(void)
4224{
4225 return 0x8000U;
4226}
4227static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_r(void)
4228{
4229 return 0x00501048U;
4230}
4231static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_corrected_err_bank0_m(void)
4232{
4233 return 0x1U << 0U;
4234}
4235static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_corrected_err_bank1_m(void)
4236{
4237 return 0x1U << 1U;
4238}
4239static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_uncorrected_err_bank0_m(void)
4240{
4241 return 0x1U << 4U;
4242}
4243static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_uncorrected_err_bank1_m(void)
4244{
4245 return 0x1U << 5U;
4246}
4247static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_corrected_err_total_counter_overflow_v(u32 r)
4248{
4249 return (r >> 8U) & 0x1U;
4250}
4251static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r)
4252{
4253 return (r >> 10U) & 0x1U;
4254}
4255static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_reset_task_f(void)
4256{
4257 return 0x40000000U;
4258}
4259static inline u32 gr_pri_gpc0_gcc_l15_ecc_corrected_err_count_r(void)
4260{
4261 return 0x0050104cU;
4262}
4263static inline u32 gr_pri_gpc0_gcc_l15_ecc_corrected_err_count_total_s(void)
4264{
4265 return 16U;
4266}
4267static inline u32 gr_pri_gpc0_gcc_l15_ecc_corrected_err_count_total_v(u32 r)
4268{
4269 return (r >> 0U) & 0xffffU;
4270}
4271static inline u32 gr_pri_gpc0_gcc_l15_ecc_uncorrected_err_count_r(void)
4272{
4273 return 0x00501054U;
4274}
4275static inline u32 gr_pri_gpc0_gcc_l15_ecc_uncorrected_err_count_total_s(void)
4276{
4277 return 16U;
4278}
4279static inline u32 gr_pri_gpc0_gcc_l15_ecc_uncorrected_err_count_total_v(u32 r)
4280{
4281 return (r >> 0U) & 0xffffU;
4282}
4283static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_r(void)
4284{
4285 return 0x00504508U;
4286}
4287static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_v(u32 r)
4288{
4289 return (r >> 0U) & 0x1U;
4290}
4291static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_pending_v(void)
4292{
4293 return 0x00000001U;
4294}
4295static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_v(u32 r)
4296{
4297 return (r >> 1U) & 0x1U;
4298}
4299static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_pending_v(void)
4300{
4301 return 0x00000001U;
4302}
4303static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_mpc_m(void)
4304{
4305 return 0x1U << 4U;
4306}
4307static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_mpc_pending_f(void)
4308{
4309 return 0x10U;
4310}
4311static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_r(void)
4312{
4313 return 0x00504704U;
4314}
4315static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_m(void)
4316{
4317 return 0x1U << 0U;
4318}
4319static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_v(u32 r)
4320{
4321 return (r >> 0U) & 0x1U;
4322}
4323static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_on_v(void)
4324{
4325 return 0x00000001U;
4326}
4327static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_on_f(void)
4328{
4329 return 0x1U;
4330}
4331static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_off_v(void)
4332{
4333 return 0x00000000U;
4334}
4335static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_off_f(void)
4336{
4337 return 0x0U;
4338}
4339static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_stop_trigger_m(void)
4340{
4341 return 0x1U << 31U;
4342}
4343static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_stop_trigger_enable_f(void)
4344{
4345 return 0x80000000U;
4346}
4347static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_stop_trigger_disable_f(void)
4348{
4349 return 0x0U;
4350}
4351static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_single_step_mode_m(void)
4352{
4353 return 0x1U << 3U;
4354}
4355static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_single_step_mode_enable_f(void)
4356{
4357 return 0x8U;
4358}
4359static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_single_step_mode_disable_f(void)
4360{
4361 return 0x0U;
4362}
4363static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_run_trigger_task_f(void)
4364{
4365 return 0x40000000U;
4366}
4367static inline u32 gr_gpc0_tpc0_sm0_warp_valid_mask_0_r(void)
4368{
4369 return 0x00504708U;
4370}
4371static inline u32 gr_gpc0_tpc0_sm0_warp_valid_mask_1_r(void)
4372{
4373 return 0x0050470cU;
4374}
4375static inline u32 gr_gpc0_tpc0_sm0_dbgr_bpt_pause_mask_0_r(void)
4376{
4377 return 0x00504710U;
4378}
4379static inline u32 gr_gpc0_tpc0_sm0_dbgr_bpt_pause_mask_1_r(void)
4380{
4381 return 0x00504714U;
4382}
4383static inline u32 gr_gpc0_tpc0_sm0_dbgr_bpt_trap_mask_0_r(void)
4384{
4385 return 0x00504718U;
4386}
4387static inline u32 gr_gpc0_tpc0_sm0_dbgr_bpt_trap_mask_1_r(void)
4388{
4389 return 0x0050471cU;
4390}
4391static inline u32 gr_gpcs_tpcs_sms_dbgr_bpt_pause_mask_0_r(void)
4392{
4393 return 0x00419e90U;
4394}
4395static inline u32 gr_gpcs_tpcs_sms_dbgr_bpt_pause_mask_1_r(void)
4396{
4397 return 0x00419e94U;
4398}
4399static inline u32 gr_gpcs_tpcs_sms_dbgr_status0_r(void)
4400{
4401 return 0x00419e80U;
4402}
4403static inline u32 gr_gpc0_tpc0_sm0_dbgr_status0_r(void)
4404{
4405 return 0x00504700U;
4406}
4407static inline u32 gr_gpc0_tpc0_sm0_dbgr_status0_sm_in_trap_mode_v(u32 r)
4408{
4409 return (r >> 0U) & 0x1U;
4410}
4411static inline u32 gr_gpc0_tpc0_sm0_dbgr_status0_locked_down_v(u32 r)
4412{
4413 return (r >> 4U) & 0x1U;
4414}
4415static inline u32 gr_gpc0_tpc0_sm0_dbgr_status0_locked_down_true_v(void)
4416{
4417 return 0x00000001U;
4418}
4419static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_r(void)
4420{
4421 return 0x00504730U;
4422}
4423static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_v(u32 r)
4424{
4425 return (r >> 0U) & 0xffffU;
4426}
4427static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_none_v(void)
4428{
4429 return 0x00000000U;
4430}
4431static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_none_f(void)
4432{
4433 return 0x0U;
4434}
4435static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_stack_error_f(void)
4436{
4437 return 0x1U;
4438}
4439static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_api_stack_error_f(void)
4440{
4441 return 0x2U;
4442}
4443static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_pc_wrap_f(void)
4444{
4445 return 0x4U;
4446}
4447static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_misaligned_pc_f(void)
4448{
4449 return 0x5U;
4450}
4451static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_pc_overflow_f(void)
4452{
4453 return 0x6U;
4454}
4455static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_misaligned_reg_f(void)
4456{
4457 return 0x8U;
4458}
4459static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_illegal_instr_encoding_f(void)
4460{
4461 return 0x9U;
4462}
4463static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_illegal_instr_param_f(void)
4464{
4465 return 0xbU;
4466}
4467static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_oor_reg_f(void)
4468{
4469 return 0xdU;
4470}
4471static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_oor_addr_f(void)
4472{
4473 return 0xeU;
4474}
4475static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_misaligned_addr_f(void)
4476{
4477 return 0xfU;
4478}
4479static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_invalid_addr_space_f(void)
4480{
4481 return 0x10U;
4482}
4483static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_invalid_const_addr_ldc_f(void)
4484{
4485 return 0x12U;
4486}
4487static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_stack_overflow_f(void)
4488{
4489 return 0x16U;
4490}
4491static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_mmu_fault_f(void)
4492{
4493 return 0x17U;
4494}
4495static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_tex_format_f(void)
4496{
4497 return 0x18U;
4498}
4499static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_tex_layout_f(void)
4500{
4501 return 0x19U;
4502}
4503static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_mmu_nack_f(void)
4504{
4505 return 0x20U;
4506}
4507static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_wrap_id_m(void)
4508{
4509 return 0xffU << 16U;
4510}
4511static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_addr_error_type_m(void)
4512{
4513 return 0xfU << 24U;
4514}
4515static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_addr_error_type_none_f(void)
4516{
4517 return 0x0U;
4518}
4519static inline u32 gr_gpc0_tpc0_sm_tpc_esr_sm_sel_r(void)
4520{
4521 return 0x0050460cU;
4522}
4523static inline u32 gr_gpc0_tpc0_sm_tpc_esr_sm_sel_sm0_error_v(u32 r)
4524{
4525 return (r >> 0U) & 0x1U;
4526}
4527static inline u32 gr_gpc0_tpc0_sm_tpc_esr_sm_sel_sm1_error_v(u32 r)
4528{
4529 return (r >> 1U) & 0x1U;
4530}
4531static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_pc_r(void)
4532{
4533 return 0x00504738U;
4534}
4535static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_pc_hi_r(void)
4536{
4537 return 0x0050473cU;
4538}
4539static inline u32 gr_gpc0_tpc0_sm_halfctl_ctrl_r(void)
4540{
4541 return 0x005043a0U;
4542}
4543static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_r(void)
4544{
4545 return 0x00419ba0U;
4546}
4547static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_m(void)
4548{
4549 return 0x1U << 4U;
4550}
4551static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_f(u32 v)
4552{
4553 return (v & 0x1U) << 4U;
4554}
4555static inline u32 gr_gpc0_tpc0_sm_debug_sfe_control_r(void)
4556{
4557 return 0x005043b0U;
4558}
4559static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_r(void)
4560{
4561 return 0x00419bb0U;
4562}
4563static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_m(void)
4564{
4565 return 0x1U << 0U;
4566}
4567static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_f(u32 v)
4568{
4569 return (v & 0x1U) << 0U;
4570}
4571static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_r(void)
4572{
4573 return 0x0041be08U;
4574}
4575static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_fast_mode_switch_true_f(void)
4576{
4577 return 0x4U;
4578}
4579static inline u32 gr_ppcs_wwdx_map_gpc_map_r(u32 i)
4580{
4581 return 0x0041bf00U + i*4U;
4582}
4583static inline u32 gr_ppcs_wwdx_map_table_cfg_r(void)
4584{
4585 return 0x0041bfd0U;
4586}
4587static inline u32 gr_ppcs_wwdx_map_table_cfg_row_offset_f(u32 v)
4588{
4589 return (v & 0xffU) << 0U;
4590}
4591static inline u32 gr_ppcs_wwdx_map_table_cfg_num_entries_f(u32 v)
4592{
4593 return (v & 0xffU) << 8U;
4594}
4595static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_num_entries_f(u32 v)
4596{
4597 return (v & 0x1fU) << 16U;
4598}
4599static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_shift_value_f(u32 v)
4600{
4601 return (v & 0x7U) << 21U;
4602}
4603static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_r(void)
4604{
4605 return 0x0041bfd4U;
4606}
4607static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_conservative_f(u32 v)
4608{
4609 return (v & 0xffffffU) << 0U;
4610}
4611static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_r(u32 i)
4612{
4613 return 0x0041bfb0U + i*4U;
4614}
4615static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff__size_1_v(void)
4616{
4617 return 0x00000005U;
4618}
4619static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_0_mod_value_f(u32 v)
4620{
4621 return (v & 0xffU) << 0U;
4622}
4623static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_1_mod_value_f(u32 v)
4624{
4625 return (v & 0xffU) << 8U;
4626}
4627static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_2_mod_value_f(u32 v)
4628{
4629 return (v & 0xffU) << 16U;
4630}
4631static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_3_mod_value_f(u32 v)
4632{
4633 return (v & 0xffU) << 24U;
4634}
4635static inline u32 gr_bes_zrop_settings_r(void)
4636{
4637 return 0x00408850U;
4638}
4639static inline u32 gr_bes_zrop_settings_num_active_ltcs_f(u32 v)
4640{
4641 return (v & 0xfU) << 0U;
4642}
4643static inline u32 gr_be0_crop_debug3_r(void)
4644{
4645 return 0x00410108U;
4646}
4647static inline u32 gr_bes_crop_debug3_r(void)
4648{
4649 return 0x00408908U;
4650}
4651static inline u32 gr_bes_crop_debug3_comp_vdc_4to2_disable_m(void)
4652{
4653 return 0x1U << 31U;
4654}
4655static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_m(void)
4656{
4657 return 0x1U << 1U;
4658}
4659static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_disabled_f(void)
4660{
4661 return 0x0U;
4662}
4663static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_enabled_f(void)
4664{
4665 return 0x2U;
4666}
4667static inline u32 gr_bes_crop_debug3_blendopt_fill_override_m(void)
4668{
4669 return 0x1U << 2U;
4670}
4671static inline u32 gr_bes_crop_debug3_blendopt_fill_override_disabled_f(void)
4672{
4673 return 0x0U;
4674}
4675static inline u32 gr_bes_crop_debug3_blendopt_fill_override_enabled_f(void)
4676{
4677 return 0x4U;
4678}
4679static inline u32 gr_bes_crop_debug4_r(void)
4680{
4681 return 0x0040894cU;
4682}
4683static inline u32 gr_bes_crop_debug4_clamp_fp_blend_m(void)
4684{
4685 return 0x1U << 18U;
4686}
4687static inline u32 gr_bes_crop_debug4_clamp_fp_blend_to_inf_f(void)
4688{
4689 return 0x0U;
4690}
4691static inline u32 gr_bes_crop_debug4_clamp_fp_blend_to_maxval_f(void)
4692{
4693 return 0x40000U;
4694}
4695static inline u32 gr_bes_crop_settings_r(void)
4696{
4697 return 0x00408958U;
4698}
4699static inline u32 gr_bes_crop_settings_num_active_ltcs_f(u32 v)
4700{
4701 return (v & 0xfU) << 0U;
4702}
4703static inline u32 gr_zcull_bytes_per_aliquot_per_gpu_v(void)
4704{
4705 return 0x00000020U;
4706}
4707static inline u32 gr_zcull_save_restore_header_bytes_per_gpc_v(void)
4708{
4709 return 0x00000020U;
4710}
4711static inline u32 gr_zcull_save_restore_subregion_header_bytes_per_gpc_v(void)
4712{
4713 return 0x000000c0U;
4714}
4715static inline u32 gr_zcull_subregion_qty_v(void)
4716{
4717 return 0x00000010U;
4718}
4719static inline u32 gr_gpcs_tpcs_tex_in_dbg_r(void)
4720{
4721 return 0x00419a00U;
4722}
4723static inline u32 gr_gpcs_tpcs_tex_in_dbg_tsl1_rvch_invalidate_f(u32 v)
4724{
4725 return (v & 0x1U) << 19U;
4726}
4727static inline u32 gr_gpcs_tpcs_tex_in_dbg_tsl1_rvch_invalidate_m(void)
4728{
4729 return 0x1U << 19U;
4730}
4731static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_r(void)
4732{
4733 return 0x00419bf0U;
4734}
4735static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_ld_f(u32 v)
4736{
4737 return (v & 0x1U) << 5U;
4738}
4739static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_ld_m(void)
4740{
4741 return 0x1U << 5U;
4742}
4743static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_st_f(u32 v)
4744{
4745 return (v & 0x1U) << 10U;
4746}
4747static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_st_m(void)
4748{
4749 return 0x1U << 10U;
4750}
4751static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_always_cut_collector_m(void)
4752{
4753 return 0x1U << 28U;
4754}
4755static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_always_cut_collector_disable_f(void)
4756{
4757 return 0x0U;
4758}
4759static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_always_cut_collector_enable_f(void)
4760{
4761 return 0x10000000U;
4762}
4763static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control_sel0_r(void)
4764{
4765 return 0x00584200U;
4766}
4767static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control_sel1_r(void)
4768{
4769 return 0x00584204U;
4770}
4771static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control0_r(void)
4772{
4773 return 0x00584208U;
4774}
4775static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control1_r(void)
4776{
4777 return 0x00584210U;
4778}
4779static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control2_r(void)
4780{
4781 return 0x00584214U;
4782}
4783static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control3_r(void)
4784{
4785 return 0x00584218U;
4786}
4787static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control4_r(void)
4788{
4789 return 0x0058421cU;
4790}
4791static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control5_r(void)
4792{
4793 return 0x0058420cU;
4794}
4795static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter0_control_r(void)
4796{
4797 return 0x00584220U;
4798}
4799static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter1_control_r(void)
4800{
4801 return 0x00584224U;
4802}
4803static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter2_control_r(void)
4804{
4805 return 0x00584228U;
4806}
4807static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter3_control_r(void)
4808{
4809 return 0x0058422cU;
4810}
4811static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter4_control_r(void)
4812{
4813 return 0x00584230U;
4814}
4815static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter5_control_r(void)
4816{
4817 return 0x00584234U;
4818}
4819static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter6_control_r(void)
4820{
4821 return 0x00584238U;
4822}
4823static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter7_control_r(void)
4824{
4825 return 0x0058423cU;
4826}
4827static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter_status_s0_r(void)
4828{
4829 return 0x00584600U;
4830}
4831static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter_status_s1_r(void)
4832{
4833 return 0x00584604U;
4834}
4835static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter0_s0_r(void)
4836{
4837 return 0x00584624U;
4838}
4839static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter1_s0_r(void)
4840{
4841 return 0x00584628U;
4842}
4843static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter2_s0_r(void)
4844{
4845 return 0x0058462cU;
4846}
4847static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter3_s0_r(void)
4848{
4849 return 0x00584630U;
4850}
4851static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter0_s1_r(void)
4852{
4853 return 0x00584634U;
4854}
4855static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter1_s1_r(void)
4856{
4857 return 0x00584638U;
4858}
4859static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter2_s1_r(void)
4860{
4861 return 0x0058463cU;
4862}
4863static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter3_s1_r(void)
4864{
4865 return 0x00584640U;
4866}
4867static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter0_s2_r(void)
4868{
4869 return 0x00584644U;
4870}
4871static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter1_s2_r(void)
4872{
4873 return 0x00584648U;
4874}
4875static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter2_s2_r(void)
4876{
4877 return 0x0058464cU;
4878}
4879static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter3_s2_r(void)
4880{
4881 return 0x00584650U;
4882}
4883static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter0_s3_r(void)
4884{
4885 return 0x00584654U;
4886}
4887static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter1_s3_r(void)
4888{
4889 return 0x00584658U;
4890}
4891static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter2_s3_r(void)
4892{
4893 return 0x0058465cU;
4894}
4895static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter3_s3_r(void)
4896{
4897 return 0x00584660U;
4898}
4899static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter4_r(void)
4900{
4901 return 0x00584614U;
4902}
4903static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter5_r(void)
4904{
4905 return 0x00584618U;
4906}
4907static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter6_r(void)
4908{
4909 return 0x0058461cU;
4910}
4911static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter7_r(void)
4912{
4913 return 0x00584620U;
4914}
4915static inline u32 gr_fe_pwr_mode_r(void)
4916{
4917 return 0x00404170U;
4918}
4919static inline u32 gr_fe_pwr_mode_mode_auto_f(void)
4920{
4921 return 0x0U;
4922}
4923static inline u32 gr_fe_pwr_mode_mode_force_on_f(void)
4924{
4925 return 0x2U;
4926}
4927static inline u32 gr_fe_pwr_mode_req_v(u32 r)
4928{
4929 return (r >> 4U) & 0x1U;
4930}
4931static inline u32 gr_fe_pwr_mode_req_send_f(void)
4932{
4933 return 0x10U;
4934}
4935static inline u32 gr_fe_pwr_mode_req_done_v(void)
4936{
4937 return 0x00000000U;
4938}
4939static inline u32 gr_gpcs_pri_mmu_ctrl_r(void)
4940{
4941 return 0x00418880U;
4942}
4943static inline u32 gr_gpcs_pri_mmu_ctrl_vm_pg_size_m(void)
4944{
4945 return 0x1U << 0U;
4946}
4947static inline u32 gr_gpcs_pri_mmu_ctrl_use_pdb_big_page_size_m(void)
4948{
4949 return 0x1U << 11U;
4950}
4951static inline u32 gr_gpcs_pri_mmu_ctrl_vol_fault_m(void)
4952{
4953 return 0x1U << 1U;
4954}
4955static inline u32 gr_gpcs_pri_mmu_ctrl_comp_fault_m(void)
4956{
4957 return 0x1U << 2U;
4958}
4959static inline u32 gr_gpcs_pri_mmu_ctrl_miss_gran_m(void)
4960{
4961 return 0x3U << 3U;
4962}
4963static inline u32 gr_gpcs_pri_mmu_ctrl_cache_mode_m(void)
4964{
4965 return 0x3U << 5U;
4966}
4967static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_aperture_m(void)
4968{
4969 return 0x3U << 28U;
4970}
4971static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_vol_m(void)
4972{
4973 return 0x1U << 30U;
4974}
4975static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_disable_m(void)
4976{
4977 return 0x1U << 31U;
4978}
4979static inline u32 gr_gpcs_pri_mmu_ctrl_atomic_capability_mode_m(void)
4980{
4981 return 0x3U << 24U;
4982}
4983static inline u32 gr_gpcs_pri_mmu_ctrl_atomic_capability_sys_ncoh_mode_m(void)
4984{
4985 return 0x1U << 27U;
4986}
4987static inline u32 gr_gpcs_pri_mmu_pm_unit_mask_r(void)
4988{
4989 return 0x00418890U;
4990}
4991static inline u32 gr_gpcs_pri_mmu_pm_req_mask_r(void)
4992{
4993 return 0x00418894U;
4994}
4995static inline u32 gr_gpcs_pri_mmu_debug_ctrl_r(void)
4996{
4997 return 0x004188b0U;
4998}
4999static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_v(u32 r)
5000{
5001 return (r >> 16U) & 0x1U;
5002}
5003static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v(void)
5004{
5005 return 0x00000001U;
5006}
5007static inline u32 gr_gpcs_pri_mmu_debug_wr_r(void)
5008{
5009 return 0x004188b4U;
5010}
5011static inline u32 gr_gpcs_pri_mmu_debug_rd_r(void)
5012{
5013 return 0x004188b8U;
5014}
5015static inline u32 gr_gpcs_mmu_num_active_ltcs_r(void)
5016{
5017 return 0x004188acU;
5018}
5019static inline u32 gr_gpcs_tpcs_sms_dbgr_control0_r(void)
5020{
5021 return 0x00419e84U;
5022}
5023static inline u32 gr_fe_gfxp_wfi_timeout_r(void)
5024{
5025 return 0x004041c0U;
5026}
5027static inline u32 gr_fe_gfxp_wfi_timeout_count_f(u32 v)
5028{
5029 return (v & 0xffffffffU) << 0U;
5030}
5031static inline u32 gr_fe_gfxp_wfi_timeout_count_disabled_f(void)
5032{
5033 return 0x0U;
5034}
5035static inline u32 gr_fe_gfxp_wfi_timeout_count_init_f(void)
5036{
5037 return 0x800U;
5038}
5039static inline u32 gr_gpcs_tpcs_sm_texio_control_r(void)
5040{
5041 return 0x00419bd8U;
5042}
5043static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_f(u32 v)
5044{
5045 return (v & 0x7U) << 8U;
5046}
5047static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_m(void)
5048{
5049 return 0x7U << 8U;
5050}
5051static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_arm_63_48_match_f(void)
5052{
5053 return 0x100U;
5054}
5055static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_r(void)
5056{
5057 return 0x00419ba4U;
5058}
5059static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_m(void)
5060{
5061 return 0x3U << 11U;
5062}
5063static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_disable_f(void)
5064{
5065 return 0x1000U;
5066}
5067static inline u32 gr_gpcs_tc_debug0_r(void)
5068{
5069 return 0x00418708U;
5070}
5071static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_f(u32 v)
5072{
5073 return (v & 0x1ffU) << 0U;
5074}
5075static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_m(void)
5076{
5077 return 0x1ffU << 0U;
5078}
5079static inline u32 gr_gpc0_mmu_gpcmmu_global_esr_r(void)
5080{
5081 return 0x00500324U;
5082}
5083static inline u32 gr_gpc0_mmu_gpcmmu_global_esr_ecc_corrected_f(u32 v)
5084{
5085 return (v & 0x1U) << 0U;
5086}
5087static inline u32 gr_gpc0_mmu_gpcmmu_global_esr_ecc_corrected_m(void)
5088{
5089 return 0x1U << 0U;
5090}
5091static inline u32 gr_gpc0_mmu_gpcmmu_global_esr_ecc_uncorrected_f(u32 v)
5092{
5093 return (v & 0x1U) << 1U;
5094}
5095static inline u32 gr_gpc0_mmu_gpcmmu_global_esr_ecc_uncorrected_m(void)
5096{
5097 return 0x1U << 1U;
5098}
5099static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_r(void)
5100{
5101 return 0x00500314U;
5102}
5103static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_l1tlb_sa_data_f(u32 v)
5104{
5105 return (v & 0x1U) << 0U;
5106}
5107static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_l1tlb_sa_data_m(void)
5108{
5109 return 0x1U << 0U;
5110}
5111static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_l1tlb_fa_data_f(u32 v)
5112{
5113 return (v & 0x1U) << 2U;
5114}
5115static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_l1tlb_fa_data_m(void)
5116{
5117 return 0x1U << 2U;
5118}
5119static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_l1tlb_sa_data_f(u32 v)
5120{
5121 return (v & 0x1U) << 1U;
5122}
5123static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_l1tlb_sa_data_m(void)
5124{
5125 return 0x1U << 1U;
5126}
5127static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_l1tlb_fa_data_f(u32 v)
5128{
5129 return (v & 0x1U) << 3U;
5130}
5131static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_l1tlb_fa_data_m(void)
5132{
5133 return 0x1U << 3U;
5134}
5135static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_total_counter_overflow_f(u32 v)
5136{
5137 return (v & 0x1U) << 18U;
5138}
5139static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_total_counter_overflow_m(void)
5140{
5141 return 0x1U << 18U;
5142}
5143static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_total_counter_overflow_f(u32 v)
5144{
5145 return (v & 0x1U) << 16U;
5146}
5147static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_total_counter_overflow_m(void)
5148{
5149 return 0x1U << 16U;
5150}
5151static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_unique_counter_overflow_f(u32 v)
5152{
5153 return (v & 0x1U) << 19U;
5154}
5155static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_unique_counter_overflow_m(void)
5156{
5157 return 0x1U << 19U;
5158}
5159static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_unique_counter_overflow_f(u32 v)
5160{
5161 return (v & 0x1U) << 17U;
5162}
5163static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_unique_counter_overflow_m(void)
5164{
5165 return 0x1U << 17U;
5166}
5167static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_reset_f(u32 v)
5168{
5169 return (v & 0x1U) << 30U;
5170}
5171static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_reset_task_f(void)
5172{
5173 return 0x40000000U;
5174}
5175static inline u32 gr_gpc0_mmu_l1tlb_ecc_address_r(void)
5176{
5177 return 0x00500320U;
5178}
5179static inline u32 gr_gpc0_mmu_l1tlb_ecc_address_index_f(u32 v)
5180{
5181 return (v & 0xffffffffU) << 0U;
5182}
5183static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_r(void)
5184{
5185 return 0x00500318U;
5186}
5187static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_total_s(void)
5188{
5189 return 16U;
5190}
5191static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_total_f(u32 v)
5192{
5193 return (v & 0xffffU) << 0U;
5194}
5195static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_total_m(void)
5196{
5197 return 0xffffU << 0U;
5198}
5199static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_total_v(u32 r)
5200{
5201 return (r >> 0U) & 0xffffU;
5202}
5203static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_unique_total_s(void)
5204{
5205 return 16U;
5206}
5207static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_unique_total_f(u32 v)
5208{
5209 return (v & 0xffffU) << 16U;
5210}
5211static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_unique_total_m(void)
5212{
5213 return 0xffffU << 16U;
5214}
5215static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_unique_total_v(u32 r)
5216{
5217 return (r >> 16U) & 0xffffU;
5218}
5219static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_r(void)
5220{
5221 return 0x0050031cU;
5222}
5223static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_total_s(void)
5224{
5225 return 16U;
5226}
5227static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_total_f(u32 v)
5228{
5229 return (v & 0xffffU) << 0U;
5230}
5231static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_total_m(void)
5232{
5233 return 0xffffU << 0U;
5234}
5235static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_total_v(u32 r)
5236{
5237 return (r >> 0U) & 0xffffU;
5238}
5239static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_unique_total_s(void)
5240{
5241 return 16U;
5242}
5243static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_unique_total_f(u32 v)
5244{
5245 return (v & 0xffffU) << 16U;
5246}
5247static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_unique_total_m(void)
5248{
5249 return 0xffffU << 16U;
5250}
5251static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_unique_total_v(u32 r)
5252{
5253 return (r >> 16U) & 0xffffU;
5254}
5255static inline u32 gr_gpc0_gpccs_hww_esr_r(void)
5256{
5257 return 0x00502c98U;
5258}
5259static inline u32 gr_gpc0_gpccs_hww_esr_ecc_corrected_f(u32 v)
5260{
5261 return (v & 0x1U) << 0U;
5262}
5263static inline u32 gr_gpc0_gpccs_hww_esr_ecc_corrected_m(void)
5264{
5265 return 0x1U << 0U;
5266}
5267static inline u32 gr_gpc0_gpccs_hww_esr_ecc_corrected_pending_f(void)
5268{
5269 return 0x1U;
5270}
5271static inline u32 gr_gpc0_gpccs_hww_esr_ecc_uncorrected_f(u32 v)
5272{
5273 return (v & 0x1U) << 1U;
5274}
5275static inline u32 gr_gpc0_gpccs_hww_esr_ecc_uncorrected_m(void)
5276{
5277 return 0x1U << 1U;
5278}
5279static inline u32 gr_gpc0_gpccs_hww_esr_ecc_uncorrected_pending_f(void)
5280{
5281 return 0x2U;
5282}
5283static inline u32 gr_gpc0_gpccs_falcon_ecc_status_r(void)
5284{
5285 return 0x00502678U;
5286}
5287static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_imem_f(u32 v)
5288{
5289 return (v & 0x1U) << 0U;
5290}
5291static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_imem_m(void)
5292{
5293 return 0x1U << 0U;
5294}
5295static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_imem_pending_f(void)
5296{
5297 return 0x1U;
5298}
5299static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_dmem_f(u32 v)
5300{
5301 return (v & 0x1U) << 1U;
5302}
5303static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_dmem_m(void)
5304{
5305 return 0x1U << 1U;
5306}
5307static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_dmem_pending_f(void)
5308{
5309 return 0x2U;
5310}
5311static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_imem_f(u32 v)
5312{
5313 return (v & 0x1U) << 4U;
5314}
5315static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_imem_m(void)
5316{
5317 return 0x1U << 4U;
5318}
5319static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_imem_pending_f(void)
5320{
5321 return 0x10U;
5322}
5323static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_dmem_f(u32 v)
5324{
5325 return (v & 0x1U) << 5U;
5326}
5327static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_dmem_m(void)
5328{
5329 return 0x1U << 5U;
5330}
5331static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_dmem_pending_f(void)
5332{
5333 return 0x20U;
5334}
5335static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_total_counter_overflow_f(u32 v)
5336{
5337 return (v & 0x1U) << 10U;
5338}
5339static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_total_counter_overflow_m(void)
5340{
5341 return 0x1U << 10U;
5342}
5343static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_total_counter_overflow_pending_f(void)
5344{
5345 return 0x400U;
5346}
5347static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_total_counter_overflow_f(u32 v)
5348{
5349 return (v & 0x1U) << 8U;
5350}
5351static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_total_counter_overflow_m(void)
5352{
5353 return 0x1U << 8U;
5354}
5355static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_total_counter_overflow_pending_f(void)
5356{
5357 return 0x100U;
5358}
5359static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_unique_counter_overflow_f(u32 v)
5360{
5361 return (v & 0x1U) << 11U;
5362}
5363static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_unique_counter_overflow_m(void)
5364{
5365 return 0x1U << 11U;
5366}
5367static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_unique_counter_overflow_pending_f(void)
5368{
5369 return 0x800U;
5370}
5371static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_unique_counter_overflow_f(u32 v)
5372{
5373 return (v & 0x1U) << 9U;
5374}
5375static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_unique_counter_overflow_m(void)
5376{
5377 return 0x1U << 9U;
5378}
5379static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_unique_counter_overflow_pending_f(void)
5380{
5381 return 0x200U;
5382}
5383static inline u32 gr_gpc0_gpccs_falcon_ecc_status_reset_f(u32 v)
5384{
5385 return (v & 0x1U) << 31U;
5386}
5387static inline u32 gr_gpc0_gpccs_falcon_ecc_status_reset_task_f(void)
5388{
5389 return 0x80000000U;
5390}
5391static inline u32 gr_gpc0_gpccs_falcon_ecc_address_r(void)
5392{
5393 return 0x00502684U;
5394}
5395static inline u32 gr_gpc0_gpccs_falcon_ecc_address_index_f(u32 v)
5396{
5397 return (v & 0x7fffffU) << 0U;
5398}
5399static inline u32 gr_gpc0_gpccs_falcon_ecc_address_row_address_s(void)
5400{
5401 return 20U;
5402}
5403static inline u32 gr_gpc0_gpccs_falcon_ecc_address_row_address_f(u32 v)
5404{
5405 return (v & 0xfffffU) << 0U;
5406}
5407static inline u32 gr_gpc0_gpccs_falcon_ecc_address_row_address_m(void)
5408{
5409 return 0xfffffU << 0U;
5410}
5411static inline u32 gr_gpc0_gpccs_falcon_ecc_address_row_address_v(u32 r)
5412{
5413 return (r >> 0U) & 0xfffffU;
5414}
5415static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_r(void)
5416{
5417 return 0x0050267cU;
5418}
5419static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_total_s(void)
5420{
5421 return 16U;
5422}
5423static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_total_f(u32 v)
5424{
5425 return (v & 0xffffU) << 0U;
5426}
5427static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_total_m(void)
5428{
5429 return 0xffffU << 0U;
5430}
5431static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_total_v(u32 r)
5432{
5433 return (r >> 0U) & 0xffffU;
5434}
5435static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_unique_total_s(void)
5436{
5437 return 16U;
5438}
5439static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_unique_total_f(u32 v)
5440{
5441 return (v & 0xffffU) << 16U;
5442}
5443static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_unique_total_m(void)
5444{
5445 return 0xffffU << 16U;
5446}
5447static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_unique_total_v(u32 r)
5448{
5449 return (r >> 16U) & 0xffffU;
5450}
5451static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_r(void)
5452{
5453 return 0x00502680U;
5454}
5455static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_total_f(u32 v)
5456{
5457 return (v & 0xffffU) << 0U;
5458}
5459static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_total_m(void)
5460{
5461 return 0xffffU << 0U;
5462}
5463static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_total_v(u32 r)
5464{
5465 return (r >> 0U) & 0xffffU;
5466}
5467static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_unique_total_s(void)
5468{
5469 return 16U;
5470}
5471static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_unique_total_f(u32 v)
5472{
5473 return (v & 0xffffU) << 16U;
5474}
5475static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_unique_total_m(void)
5476{
5477 return 0xffffU << 16U;
5478}
5479static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_unique_total_v(u32 r)
5480{
5481 return (r >> 16U) & 0xffffU;
5482}
5483static inline u32 gr_fecs_falcon_ecc_status_r(void)
5484{
5485 return 0x00409678U;
5486}
5487static inline u32 gr_fecs_falcon_ecc_status_corrected_err_imem_f(u32 v)
5488{
5489 return (v & 0x1U) << 0U;
5490}
5491static inline u32 gr_fecs_falcon_ecc_status_corrected_err_imem_m(void)
5492{
5493 return 0x1U << 0U;
5494}
5495static inline u32 gr_fecs_falcon_ecc_status_corrected_err_imem_pending_f(void)
5496{
5497 return 0x1U;
5498}
5499static inline u32 gr_fecs_falcon_ecc_status_corrected_err_dmem_f(u32 v)
5500{
5501 return (v & 0x1U) << 1U;
5502}
5503static inline u32 gr_fecs_falcon_ecc_status_corrected_err_dmem_m(void)
5504{
5505 return 0x1U << 1U;
5506}
5507static inline u32 gr_fecs_falcon_ecc_status_corrected_err_dmem_pending_f(void)
5508{
5509 return 0x2U;
5510}
5511static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_imem_f(u32 v)
5512{
5513 return (v & 0x1U) << 4U;
5514}
5515static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_imem_m(void)
5516{
5517 return 0x1U << 4U;
5518}
5519static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_imem_pending_f(void)
5520{
5521 return 0x10U;
5522}
5523static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_dmem_f(u32 v)
5524{
5525 return (v & 0x1U) << 5U;
5526}
5527static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_dmem_m(void)
5528{
5529 return 0x1U << 5U;
5530}
5531static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_dmem_pending_f(void)
5532{
5533 return 0x20U;
5534}
5535static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_total_counter_overflow_f(u32 v)
5536{
5537 return (v & 0x1U) << 10U;
5538}
5539static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_total_counter_overflow_m(void)
5540{
5541 return 0x1U << 10U;
5542}
5543static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_total_counter_overflow_pending_f(void)
5544{
5545 return 0x400U;
5546}
5547static inline u32 gr_fecs_falcon_ecc_status_corrected_err_total_counter_overflow_f(u32 v)
5548{
5549 return (v & 0x1U) << 8U;
5550}
5551static inline u32 gr_fecs_falcon_ecc_status_corrected_err_total_counter_overflow_m(void)
5552{
5553 return 0x1U << 8U;
5554}
5555static inline u32 gr_fecs_falcon_ecc_status_corrected_err_total_counter_overflow_pending_f(void)
5556{
5557 return 0x100U;
5558}
5559static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_unique_counter_overflow_f(u32 v)
5560{
5561 return (v & 0x1U) << 11U;
5562}
5563static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_unique_counter_overflow_m(void)
5564{
5565 return 0x1U << 11U;
5566}
5567static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_unique_counter_overflow_pending_f(void)
5568{
5569 return 0x800U;
5570}
5571static inline u32 gr_fecs_falcon_ecc_status_corrected_err_unique_counter_overflow_f(u32 v)
5572{
5573 return (v & 0x1U) << 9U;
5574}
5575static inline u32 gr_fecs_falcon_ecc_status_corrected_err_unique_counter_overflow_m(void)
5576{
5577 return 0x1U << 9U;
5578}
5579static inline u32 gr_fecs_falcon_ecc_status_corrected_err_unique_counter_overflow_pending_f(void)
5580{
5581 return 0x200U;
5582}
5583static inline u32 gr_fecs_falcon_ecc_status_reset_f(u32 v)
5584{
5585 return (v & 0x1U) << 31U;
5586}
5587static inline u32 gr_fecs_falcon_ecc_status_reset_task_f(void)
5588{
5589 return 0x80000000U;
5590}
5591static inline u32 gr_fecs_falcon_ecc_address_r(void)
5592{
5593 return 0x00409684U;
5594}
5595static inline u32 gr_fecs_falcon_ecc_address_index_f(u32 v)
5596{
5597 return (v & 0x7fffffU) << 0U;
5598}
5599static inline u32 gr_fecs_falcon_ecc_address_row_address_s(void)
5600{
5601 return 20U;
5602}
5603static inline u32 gr_fecs_falcon_ecc_address_row_address_f(u32 v)
5604{
5605 return (v & 0xfffffU) << 0U;
5606}
5607static inline u32 gr_fecs_falcon_ecc_address_row_address_m(void)
5608{
5609 return 0xfffffU << 0U;
5610}
5611static inline u32 gr_fecs_falcon_ecc_address_row_address_v(u32 r)
5612{
5613 return (r >> 0U) & 0xfffffU;
5614}
5615static inline u32 gr_fecs_falcon_ecc_corrected_err_count_r(void)
5616{
5617 return 0x0040967cU;
5618}
5619static inline u32 gr_fecs_falcon_ecc_corrected_err_count_total_s(void)
5620{
5621 return 16U;
5622}
5623static inline u32 gr_fecs_falcon_ecc_corrected_err_count_total_f(u32 v)
5624{
5625 return (v & 0xffffU) << 0U;
5626}
5627static inline u32 gr_fecs_falcon_ecc_corrected_err_count_total_m(void)
5628{
5629 return 0xffffU << 0U;
5630}
5631static inline u32 gr_fecs_falcon_ecc_corrected_err_count_total_v(u32 r)
5632{
5633 return (r >> 0U) & 0xffffU;
5634}
5635static inline u32 gr_fecs_falcon_ecc_corrected_err_count_unique_total_s(void)
5636{
5637 return 16U;
5638}
5639static inline u32 gr_fecs_falcon_ecc_corrected_err_count_unique_total_f(u32 v)
5640{
5641 return (v & 0xffffU) << 16U;
5642}
5643static inline u32 gr_fecs_falcon_ecc_corrected_err_count_unique_total_m(void)
5644{
5645 return 0xffffU << 16U;
5646}
5647static inline u32 gr_fecs_falcon_ecc_corrected_err_count_unique_total_v(u32 r)
5648{
5649 return (r >> 16U) & 0xffffU;
5650}
5651static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_r(void)
5652{
5653 return 0x00409680U;
5654}
5655static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_total_f(u32 v)
5656{
5657 return (v & 0xffffU) << 0U;
5658}
5659static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_total_m(void)
5660{
5661 return 0xffffU << 0U;
5662}
5663static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_total_v(u32 r)
5664{
5665 return (r >> 0U) & 0xffffU;
5666}
5667static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_unique_total_s(void)
5668{
5669 return 16U;
5670}
5671static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_unique_total_f(u32 v)
5672{
5673 return (v & 0xffffU) << 16U;
5674}
5675static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_unique_total_m(void)
5676{
5677 return 0xffffU << 16U;
5678}
5679static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_unique_total_v(u32 r)
5680{
5681 return (r >> 16U) & 0xffffU;
5682}
5683static inline u32 gr_debug_2_r(void)
5684{
5685 return 0x00400088U;
5686}
5687static inline u32 gr_debug_2_gfxp_wfi_timeout_unit_m(void)
5688{
5689 return 0x1U << 27U;
5690}
5691static inline u32 gr_debug_2_gfxp_wfi_timeout_unit_usec_f(void)
5692{
5693 return 0x0U;
5694}
5695static inline u32 gr_debug_2_gfxp_wfi_timeout_unit_sysclk_f(void)
5696{
5697 return 0x8000000U;
5698}
5699#endif
diff --git a/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h b/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h
new file mode 100644
index 0000000..342f90d
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_ltc_gv11b.h
@@ -0,0 +1,815 @@
1/*
2 * Copyright (c) 2016-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_ltc_gv11b_h_
57#define _hw_ltc_gv11b_h_
58
59static inline u32 ltc_pltcg_base_v(void)
60{
61 return 0x00140000U;
62}
63static inline u32 ltc_pltcg_extent_v(void)
64{
65 return 0x0017ffffU;
66}
67static inline u32 ltc_ltc0_ltss_v(void)
68{
69 return 0x00140200U;
70}
71static inline u32 ltc_ltc0_lts0_v(void)
72{
73 return 0x00140400U;
74}
75static inline u32 ltc_ltcs_ltss_v(void)
76{
77 return 0x0017e200U;
78}
79static inline u32 ltc_ltcs_lts0_cbc_ctrl1_r(void)
80{
81 return 0x0014046cU;
82}
83static inline u32 ltc_ltc0_lts0_dstg_cfg0_r(void)
84{
85 return 0x00140518U;
86}
87static inline u32 ltc_ltcs_ltss_dstg_cfg0_r(void)
88{
89 return 0x0017e318U;
90}
91static inline u32 ltc_ltcs_ltss_dstg_cfg0_vdc_4to2_disable_m(void)
92{
93 return 0x1U << 15U;
94}
95static inline u32 ltc_ltc0_lts0_tstg_cfg1_r(void)
96{
97 return 0x00140494U;
98}
99static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_ways_v(u32 r)
100{
101 return (r >> 0U) & 0xffffU;
102}
103static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_v(u32 r)
104{
105 return (r >> 16U) & 0x3U;
106}
107static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_all_v(void)
108{
109 return 0x00000000U;
110}
111static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_half_v(void)
112{
113 return 0x00000001U;
114}
115static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_quarter_v(void)
116{
117 return 0x00000002U;
118}
119static inline u32 ltc_ltcs_ltss_cbc_ctrl1_r(void)
120{
121 return 0x0017e26cU;
122}
123static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clean_active_f(void)
124{
125 return 0x1U;
126}
127static inline u32 ltc_ltcs_ltss_cbc_ctrl1_invalidate_active_f(void)
128{
129 return 0x2U;
130}
131static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_v(u32 r)
132{
133 return (r >> 2U) & 0x1U;
134}
135static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_v(void)
136{
137 return 0x00000001U;
138}
139static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_f(void)
140{
141 return 0x4U;
142}
143static inline u32 ltc_ltc0_lts0_cbc_ctrl1_r(void)
144{
145 return 0x0014046cU;
146}
147static inline u32 ltc_ltcs_ltss_cbc_ctrl2_r(void)
148{
149 return 0x0017e270U;
150}
151static inline u32 ltc_ltcs_ltss_cbc_ctrl2_clear_lower_bound_f(u32 v)
152{
153 return (v & 0x3ffffU) << 0U;
154}
155static inline u32 ltc_ltcs_ltss_cbc_ctrl3_r(void)
156{
157 return 0x0017e274U;
158}
159static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_f(u32 v)
160{
161 return (v & 0x3ffffU) << 0U;
162}
163static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_init_v(void)
164{
165 return 0x0003ffffU;
166}
167static inline u32 ltc_ltcs_ltss_cbc_base_r(void)
168{
169 return 0x0017e278U;
170}
171static inline u32 ltc_ltcs_ltss_cbc_base_alignment_shift_v(void)
172{
173 return 0x0000000bU;
174}
175static inline u32 ltc_ltcs_ltss_cbc_base_address_v(u32 r)
176{
177 return (r >> 0U) & 0x3ffffffU;
178}
179static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_r(void)
180{
181 return 0x0017e27cU;
182}
183static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs__v(u32 r)
184{
185 return (r >> 0U) & 0x1fU;
186}
187static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_nvlink_peer_through_l2_f(u32 v)
188{
189 return (v & 0x1U) << 24U;
190}
191static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_nvlink_peer_through_l2_v(u32 r)
192{
193 return (r >> 24U) & 0x1U;
194}
195static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_serialize_f(u32 v)
196{
197 return (v & 0x1U) << 25U;
198}
199static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_serialize_v(u32 r)
200{
201 return (r >> 25U) & 0x1U;
202}
203static inline u32 ltc_ltcs_misc_ltc_num_active_ltcs_r(void)
204{
205 return 0x0017e000U;
206}
207static inline u32 ltc_ltcs_ltss_cbc_param_r(void)
208{
209 return 0x0017e280U;
210}
211static inline u32 ltc_ltcs_ltss_cbc_param_comptags_per_cache_line_v(u32 r)
212{
213 return (r >> 0U) & 0xffffU;
214}
215static inline u32 ltc_ltcs_ltss_cbc_param_cache_line_size_v(u32 r)
216{
217 return (r >> 24U) & 0xfU;
218}
219static inline u32 ltc_ltcs_ltss_cbc_param_slices_per_ltc_v(u32 r)
220{
221 return (r >> 28U) & 0xfU;
222}
223static inline u32 ltc_ltcs_ltss_cbc_param2_r(void)
224{
225 return 0x0017e3f4U;
226}
227static inline u32 ltc_ltcs_ltss_cbc_param2_gobs_per_comptagline_per_slice_v(u32 r)
228{
229 return (r >> 0U) & 0xffffU;
230}
231static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_r(void)
232{
233 return 0x0017e2acU;
234}
235static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_max_ways_evict_last_f(u32 v)
236{
237 return (v & 0x1fU) << 16U;
238}
239static inline u32 ltc_ltcs_ltss_dstg_zbc_index_r(void)
240{
241 return 0x0017e338U;
242}
243static inline u32 ltc_ltcs_ltss_dstg_zbc_index_address_f(u32 v)
244{
245 return (v & 0xfU) << 0U;
246}
247static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value_r(u32 i)
248{
249 return 0x0017e33cU + i*4U;
250}
251static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value__size_1_v(void)
252{
253 return 0x00000004U;
254}
255static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_r(void)
256{
257 return 0x0017e34cU;
258}
259static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_s(void)
260{
261 return 32U;
262}
263static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_f(u32 v)
264{
265 return (v & 0xffffffffU) << 0U;
266}
267static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_m(void)
268{
269 return 0xffffffffU << 0U;
270}
271static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_v(u32 r)
272{
273 return (r >> 0U) & 0xffffffffU;
274}
275static inline u32 ltc_ltcs_ltss_dstg_zbc_stencil_clear_value_r(void)
276{
277 return 0x0017e204U;
278}
279static inline u32 ltc_ltcs_ltss_dstg_zbc_stencil_clear_value_field_s(void)
280{
281 return 8U;
282}
283static inline u32 ltc_ltcs_ltss_dstg_zbc_stencil_clear_value_field_f(u32 v)
284{
285 return (v & 0xffU) << 0U;
286}
287static inline u32 ltc_ltcs_ltss_dstg_zbc_stencil_clear_value_field_m(void)
288{
289 return 0xffU << 0U;
290}
291static inline u32 ltc_ltcs_ltss_dstg_zbc_stencil_clear_value_field_v(u32 r)
292{
293 return (r >> 0U) & 0xffU;
294}
295static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_r(void)
296{
297 return 0x0017e2b0U;
298}
299static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_l2_bypass_mode_enabled_f(void)
300{
301 return 0x10000000U;
302}
303static inline u32 ltc_ltcs_ltss_g_elpg_r(void)
304{
305 return 0x0017e214U;
306}
307static inline u32 ltc_ltcs_ltss_g_elpg_flush_v(u32 r)
308{
309 return (r >> 0U) & 0x1U;
310}
311static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_v(void)
312{
313 return 0x00000001U;
314}
315static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_f(void)
316{
317 return 0x1U;
318}
319static inline u32 ltc_ltc0_ltss_g_elpg_r(void)
320{
321 return 0x00140214U;
322}
323static inline u32 ltc_ltc0_ltss_g_elpg_flush_v(u32 r)
324{
325 return (r >> 0U) & 0x1U;
326}
327static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_v(void)
328{
329 return 0x00000001U;
330}
331static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_f(void)
332{
333 return 0x1U;
334}
335static inline u32 ltc_ltc1_ltss_g_elpg_r(void)
336{
337 return 0x00142214U;
338}
339static inline u32 ltc_ltc1_ltss_g_elpg_flush_v(u32 r)
340{
341 return (r >> 0U) & 0x1U;
342}
343static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_v(void)
344{
345 return 0x00000001U;
346}
347static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_f(void)
348{
349 return 0x1U;
350}
351static inline u32 ltc_ltcs_ltss_intr_r(void)
352{
353 return 0x0017e20cU;
354}
355static inline u32 ltc_ltcs_ltss_intr_ecc_sec_error_pending_f(void)
356{
357 return 0x100U;
358}
359static inline u32 ltc_ltcs_ltss_intr_ecc_ded_error_pending_f(void)
360{
361 return 0x200U;
362}
363static inline u32 ltc_ltcs_ltss_intr_en_evicted_cb_m(void)
364{
365 return 0x1U << 20U;
366}
367static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_m(void)
368{
369 return 0x1U << 21U;
370}
371static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_enabled_f(void)
372{
373 return 0x200000U;
374}
375static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_disabled_f(void)
376{
377 return 0x0U;
378}
379static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(void)
380{
381 return 0x1U << 30U;
382}
383static inline u32 ltc_ltcs_ltss_intr_en_ecc_sec_error_enabled_f(void)
384{
385 return 0x1000000U;
386}
387static inline u32 ltc_ltcs_ltss_intr_en_ecc_ded_error_enabled_f(void)
388{
389 return 0x2000000U;
390}
391static inline u32 ltc_ltc0_lts0_intr_r(void)
392{
393 return 0x0014040cU;
394}
395static inline u32 ltc_ltcs_ltss_intr3_r(void)
396{
397 return 0x0017e388U;
398}
399static inline u32 ltc_ltcs_ltss_intr3_ecc_corrected_m(void)
400{
401 return 0x1U << 7U;
402}
403static inline u32 ltc_ltcs_ltss_intr3_ecc_uncorrected_m(void)
404{
405 return 0x1U << 8U;
406}
407static inline u32 ltc_ltc0_lts0_intr3_r(void)
408{
409 return 0x00140588U;
410}
411static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_r(void)
412{
413 return 0x001404f0U;
414}
415static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_corrected_err_rstg_f(u32 v)
416{
417 return (v & 0x1U) << 1U;
418}
419static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_corrected_err_rstg_m(void)
420{
421 return 0x1U << 1U;
422}
423static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_corrected_err_tstg_f(u32 v)
424{
425 return (v & 0x1U) << 3U;
426}
427static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_corrected_err_tstg_m(void)
428{
429 return 0x1U << 3U;
430}
431static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_corrected_err_dstg_f(u32 v)
432{
433 return (v & 0x1U) << 5U;
434}
435static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_corrected_err_dstg_m(void)
436{
437 return 0x1U << 5U;
438}
439static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_uncorrected_err_rstg_f(u32 v)
440{
441 return (v & 0x1U) << 0U;
442}
443static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_uncorrected_err_rstg_m(void)
444{
445 return 0x1U << 0U;
446}
447static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_uncorrected_err_tstg_f(u32 v)
448{
449 return (v & 0x1U) << 2U;
450}
451static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_uncorrected_err_tstg_m(void)
452{
453 return 0x1U << 2U;
454}
455static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_uncorrected_err_dstg_f(u32 v)
456{
457 return (v & 0x1U) << 4U;
458}
459static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_uncorrected_err_dstg_m(void)
460{
461 return 0x1U << 4U;
462}
463static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_uncorrected_err_total_counter_overflow_f(u32 v)
464{
465 return (v & 0x1U) << 18U;
466}
467static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_uncorrected_err_total_counter_overflow_m(void)
468{
469 return 0x1U << 18U;
470}
471static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_corrected_err_total_counter_overflow_f(u32 v)
472{
473 return (v & 0x1U) << 16U;
474}
475static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_corrected_err_total_counter_overflow_m(void)
476{
477 return 0x1U << 16U;
478}
479static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_uncorrected_err_unique_counter_overflow_f(u32 v)
480{
481 return (v & 0x1U) << 19U;
482}
483static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_uncorrected_err_unique_counter_overflow_m(void)
484{
485 return 0x1U << 19U;
486}
487static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_corrected_err_unique_counter_overflow_f(u32 v)
488{
489 return (v & 0x1U) << 17U;
490}
491static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_corrected_err_unique_counter_overflow_m(void)
492{
493 return 0x1U << 17U;
494}
495static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_reset_f(u32 v)
496{
497 return (v & 0x1U) << 30U;
498}
499static inline u32 ltc_ltc0_lts0_l2_cache_ecc_status_reset_task_f(void)
500{
501 return 0x40000000U;
502}
503static inline u32 ltc_ltc0_lts0_l2_cache_ecc_address_r(void)
504{
505 return 0x001404fcU;
506}
507static inline u32 ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_r(void)
508{
509 return 0x001404f4U;
510}
511static inline u32 ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_total_s(void)
512{
513 return 16U;
514}
515static inline u32 ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_total_f(u32 v)
516{
517 return (v & 0xffffU) << 0U;
518}
519static inline u32 ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_total_m(void)
520{
521 return 0xffffU << 0U;
522}
523static inline u32 ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_total_v(u32 r)
524{
525 return (r >> 0U) & 0xffffU;
526}
527static inline u32 ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_unique_total_s(void)
528{
529 return 16U;
530}
531static inline u32 ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_unique_total_f(u32 v)
532{
533 return (v & 0xffffU) << 16U;
534}
535static inline u32 ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_unique_total_m(void)
536{
537 return 0xffffU << 16U;
538}
539static inline u32 ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_unique_total_v(u32 r)
540{
541 return (r >> 16U) & 0xffffU;
542}
543static inline u32 ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_r(void)
544{
545 return 0x001404f8U;
546}
547static inline u32 ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_total_s(void)
548{
549 return 16U;
550}
551static inline u32 ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_total_f(u32 v)
552{
553 return (v & 0xffffU) << 0U;
554}
555static inline u32 ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_total_m(void)
556{
557 return 0xffffU << 0U;
558}
559static inline u32 ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_total_v(u32 r)
560{
561 return (r >> 0U) & 0xffffU;
562}
563static inline u32 ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_unique_total_s(void)
564{
565 return 16U;
566}
567static inline u32 ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_unique_total_f(u32 v)
568{
569 return (v & 0xffffU) << 16U;
570}
571static inline u32 ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_unique_total_m(void)
572{
573 return 0xffffU << 16U;
574}
575static inline u32 ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_unique_total_v(u32 r)
576{
577 return (r >> 16U) & 0xffffU;
578}
579static inline u32 ltc_ltc0_lts0_dstg_ecc_report_r(void)
580{
581 return 0x0014051cU;
582}
583static inline u32 ltc_ltc0_lts0_dstg_ecc_report_sec_count_m(void)
584{
585 return 0xffU << 0U;
586}
587static inline u32 ltc_ltc0_lts0_dstg_ecc_report_sec_count_v(u32 r)
588{
589 return (r >> 0U) & 0xffU;
590}
591static inline u32 ltc_ltc0_lts0_dstg_ecc_report_ded_count_m(void)
592{
593 return 0xffU << 16U;
594}
595static inline u32 ltc_ltc0_lts0_dstg_ecc_report_ded_count_v(u32 r)
596{
597 return (r >> 16U) & 0xffU;
598}
599static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_r(void)
600{
601 return 0x0017e2a0U;
602}
603static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_v(u32 r)
604{
605 return (r >> 0U) & 0x1U;
606}
607static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_v(void)
608{
609 return 0x00000001U;
610}
611static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_f(void)
612{
613 return 0x1U;
614}
615static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_v(u32 r)
616{
617 return (r >> 8U) & 0xfU;
618}
619static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_v(void)
620{
621 return 0x00000003U;
622}
623static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_f(void)
624{
625 return 0x300U;
626}
627static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_v(u32 r)
628{
629 return (r >> 28U) & 0x1U;
630}
631static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_v(void)
632{
633 return 0x00000001U;
634}
635static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_f(void)
636{
637 return 0x10000000U;
638}
639static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_v(u32 r)
640{
641 return (r >> 29U) & 0x1U;
642}
643static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_v(void)
644{
645 return 0x00000001U;
646}
647static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_f(void)
648{
649 return 0x20000000U;
650}
651static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_v(u32 r)
652{
653 return (r >> 30U) & 0x1U;
654}
655static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_v(void)
656{
657 return 0x00000001U;
658}
659static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_f(void)
660{
661 return 0x40000000U;
662}
663static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_r(void)
664{
665 return 0x0017e2a4U;
666}
667static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_v(u32 r)
668{
669 return (r >> 0U) & 0x1U;
670}
671static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_v(void)
672{
673 return 0x00000001U;
674}
675static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_f(void)
676{
677 return 0x1U;
678}
679static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_v(u32 r)
680{
681 return (r >> 8U) & 0xfU;
682}
683static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_v(void)
684{
685 return 0x00000003U;
686}
687static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_f(void)
688{
689 return 0x300U;
690}
691static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_v(u32 r)
692{
693 return (r >> 16U) & 0x1U;
694}
695static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_v(void)
696{
697 return 0x00000001U;
698}
699static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_f(void)
700{
701 return 0x10000U;
702}
703static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_v(u32 r)
704{
705 return (r >> 28U) & 0x1U;
706}
707static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_v(void)
708{
709 return 0x00000001U;
710}
711static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_f(void)
712{
713 return 0x10000000U;
714}
715static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_v(u32 r)
716{
717 return (r >> 29U) & 0x1U;
718}
719static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_v(void)
720{
721 return 0x00000001U;
722}
723static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_f(void)
724{
725 return 0x20000000U;
726}
727static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_v(u32 r)
728{
729 return (r >> 30U) & 0x1U;
730}
731static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_v(void)
732{
733 return 0x00000001U;
734}
735static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_f(void)
736{
737 return 0x40000000U;
738}
739static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_r(void)
740{
741 return 0x001402a0U;
742}
743static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_v(u32 r)
744{
745 return (r >> 0U) & 0x1U;
746}
747static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_v(void)
748{
749 return 0x00000001U;
750}
751static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_f(void)
752{
753 return 0x1U;
754}
755static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_r(void)
756{
757 return 0x001402a4U;
758}
759static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_v(u32 r)
760{
761 return (r >> 0U) & 0x1U;
762}
763static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_v(void)
764{
765 return 0x00000001U;
766}
767static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_f(void)
768{
769 return 0x1U;
770}
771static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_r(void)
772{
773 return 0x001422a0U;
774}
775static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_v(u32 r)
776{
777 return (r >> 0U) & 0x1U;
778}
779static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_v(void)
780{
781 return 0x00000001U;
782}
783static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_f(void)
784{
785 return 0x1U;
786}
787static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_r(void)
788{
789 return 0x001422a4U;
790}
791static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_v(u32 r)
792{
793 return (r >> 0U) & 0x1U;
794}
795static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_v(void)
796{
797 return 0x00000001U;
798}
799static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_f(void)
800{
801 return 0x1U;
802}
803static inline u32 ltc_ltc0_lts0_tstg_info_1_r(void)
804{
805 return 0x0014058cU;
806}
807static inline u32 ltc_ltc0_lts0_tstg_info_1_slice_size_in_kb_v(u32 r)
808{
809 return (r >> 0U) & 0xffffU;
810}
811static inline u32 ltc_ltc0_lts0_tstg_info_1_slices_per_l2_v(u32 r)
812{
813 return (r >> 16U) & 0x1fU;
814}
815#endif
diff --git a/include/nvgpu/hw/gv11b/hw_mc_gv11b.h b/include/nvgpu/hw/gv11b/hw_mc_gv11b.h
new file mode 100644
index 0000000..a1bf15b
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_mc_gv11b.h
@@ -0,0 +1,231 @@
1/*
2 * Copyright (c) 2016-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_mc_gv11b_h_
57#define _hw_mc_gv11b_h_
58
59static inline u32 mc_boot_0_r(void)
60{
61 return 0x00000000U;
62}
63static inline u32 mc_boot_0_architecture_v(u32 r)
64{
65 return (r >> 24U) & 0x1fU;
66}
67static inline u32 mc_boot_0_implementation_v(u32 r)
68{
69 return (r >> 20U) & 0xfU;
70}
71static inline u32 mc_boot_0_major_revision_v(u32 r)
72{
73 return (r >> 4U) & 0xfU;
74}
75static inline u32 mc_boot_0_minor_revision_v(u32 r)
76{
77 return (r >> 0U) & 0xfU;
78}
79static inline u32 mc_intr_r(u32 i)
80{
81 return 0x00000100U + i*4U;
82}
83static inline u32 mc_intr_pfifo_pending_f(void)
84{
85 return 0x100U;
86}
87static inline u32 mc_intr_hub_pending_f(void)
88{
89 return 0x200U;
90}
91static inline u32 mc_intr_pgraph_pending_f(void)
92{
93 return 0x1000U;
94}
95static inline u32 mc_intr_pmu_pending_f(void)
96{
97 return 0x1000000U;
98}
99static inline u32 mc_intr_ltc_pending_f(void)
100{
101 return 0x2000000U;
102}
103static inline u32 mc_intr_priv_ring_pending_f(void)
104{
105 return 0x40000000U;
106}
107static inline u32 mc_intr_pbus_pending_f(void)
108{
109 return 0x10000000U;
110}
111static inline u32 mc_intr_en_r(u32 i)
112{
113 return 0x00000140U + i*4U;
114}
115static inline u32 mc_intr_en_set_r(u32 i)
116{
117 return 0x00000160U + i*4U;
118}
119static inline u32 mc_intr_en_clear_r(u32 i)
120{
121 return 0x00000180U + i*4U;
122}
123static inline u32 mc_enable_r(void)
124{
125 return 0x00000200U;
126}
127static inline u32 mc_enable_xbar_enabled_f(void)
128{
129 return 0x4U;
130}
131static inline u32 mc_enable_l2_enabled_f(void)
132{
133 return 0x8U;
134}
135static inline u32 mc_enable_pmedia_s(void)
136{
137 return 1U;
138}
139static inline u32 mc_enable_pmedia_f(u32 v)
140{
141 return (v & 0x1U) << 4U;
142}
143static inline u32 mc_enable_pmedia_m(void)
144{
145 return 0x1U << 4U;
146}
147static inline u32 mc_enable_pmedia_v(u32 r)
148{
149 return (r >> 4U) & 0x1U;
150}
151static inline u32 mc_enable_ce0_m(void)
152{
153 return 0x1U << 6U;
154}
155static inline u32 mc_enable_pfifo_enabled_f(void)
156{
157 return 0x100U;
158}
159static inline u32 mc_enable_pgraph_enabled_f(void)
160{
161 return 0x1000U;
162}
163static inline u32 mc_enable_pwr_v(u32 r)
164{
165 return (r >> 13U) & 0x1U;
166}
167static inline u32 mc_enable_pwr_disabled_v(void)
168{
169 return 0x00000000U;
170}
171static inline u32 mc_enable_pwr_enabled_f(void)
172{
173 return 0x2000U;
174}
175static inline u32 mc_enable_pfb_enabled_f(void)
176{
177 return 0x100000U;
178}
179static inline u32 mc_enable_ce2_m(void)
180{
181 return 0x1U << 21U;
182}
183static inline u32 mc_enable_ce2_enabled_f(void)
184{
185 return 0x200000U;
186}
187static inline u32 mc_enable_blg_enabled_f(void)
188{
189 return 0x8000000U;
190}
191static inline u32 mc_enable_perfmon_enabled_f(void)
192{
193 return 0x10000000U;
194}
195static inline u32 mc_enable_hub_enabled_f(void)
196{
197 return 0x20000000U;
198}
199static inline u32 mc_intr_ltc_r(void)
200{
201 return 0x000001c0U;
202}
203static inline u32 mc_enable_pb_r(void)
204{
205 return 0x00000204U;
206}
207static inline u32 mc_enable_pb_0_s(void)
208{
209 return 1U;
210}
211static inline u32 mc_enable_pb_0_f(u32 v)
212{
213 return (v & 0x1U) << 0U;
214}
215static inline u32 mc_enable_pb_0_m(void)
216{
217 return 0x1U << 0U;
218}
219static inline u32 mc_enable_pb_0_v(u32 r)
220{
221 return (r >> 0U) & 0x1U;
222}
223static inline u32 mc_enable_pb_0_enabled_v(void)
224{
225 return 0x00000001U;
226}
227static inline u32 mc_enable_pb_sel_f(u32 v, u32 i)
228{
229 return (v & 0x1U) << (0U + i*1U);
230}
231#endif
diff --git a/include/nvgpu/hw/gv11b/hw_pbdma_gv11b.h b/include/nvgpu/hw/gv11b/hw_pbdma_gv11b.h
new file mode 100644
index 0000000..c04d30a
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_pbdma_gv11b.h
@@ -0,0 +1,651 @@
1/*
2 * Copyright (c) 2016-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_pbdma_gv11b_h_
57#define _hw_pbdma_gv11b_h_
58
59static inline u32 pbdma_gp_entry1_r(void)
60{
61 return 0x10000004U;
62}
63static inline u32 pbdma_gp_entry1_get_hi_v(u32 r)
64{
65 return (r >> 0U) & 0xffU;
66}
67static inline u32 pbdma_gp_entry1_length_f(u32 v)
68{
69 return (v & 0x1fffffU) << 10U;
70}
71static inline u32 pbdma_gp_entry1_length_v(u32 r)
72{
73 return (r >> 10U) & 0x1fffffU;
74}
75static inline u32 pbdma_gp_base_r(u32 i)
76{
77 return 0x00040048U + i*8192U;
78}
79static inline u32 pbdma_gp_base__size_1_v(void)
80{
81 return 0x00000003U;
82}
83static inline u32 pbdma_gp_base_offset_f(u32 v)
84{
85 return (v & 0x1fffffffU) << 3U;
86}
87static inline u32 pbdma_gp_base_rsvd_s(void)
88{
89 return 3U;
90}
91static inline u32 pbdma_gp_base_hi_r(u32 i)
92{
93 return 0x0004004cU + i*8192U;
94}
95static inline u32 pbdma_gp_base_hi_offset_f(u32 v)
96{
97 return (v & 0xffU) << 0U;
98}
99static inline u32 pbdma_gp_base_hi_limit2_f(u32 v)
100{
101 return (v & 0x1fU) << 16U;
102}
103static inline u32 pbdma_gp_fetch_r(u32 i)
104{
105 return 0x00040050U + i*8192U;
106}
107static inline u32 pbdma_gp_get_r(u32 i)
108{
109 return 0x00040014U + i*8192U;
110}
111static inline u32 pbdma_gp_put_r(u32 i)
112{
113 return 0x00040000U + i*8192U;
114}
115static inline u32 pbdma_pb_fetch_r(u32 i)
116{
117 return 0x00040054U + i*8192U;
118}
119static inline u32 pbdma_pb_fetch_hi_r(u32 i)
120{
121 return 0x00040058U + i*8192U;
122}
123static inline u32 pbdma_get_r(u32 i)
124{
125 return 0x00040018U + i*8192U;
126}
127static inline u32 pbdma_get_hi_r(u32 i)
128{
129 return 0x0004001cU + i*8192U;
130}
131static inline u32 pbdma_put_r(u32 i)
132{
133 return 0x0004005cU + i*8192U;
134}
135static inline u32 pbdma_put_hi_r(u32 i)
136{
137 return 0x00040060U + i*8192U;
138}
139static inline u32 pbdma_pb_header_r(u32 i)
140{
141 return 0x00040084U + i*8192U;
142}
143static inline u32 pbdma_pb_header_priv_user_f(void)
144{
145 return 0x0U;
146}
147static inline u32 pbdma_pb_header_method_zero_f(void)
148{
149 return 0x0U;
150}
151static inline u32 pbdma_pb_header_subchannel_zero_f(void)
152{
153 return 0x0U;
154}
155static inline u32 pbdma_pb_header_level_main_f(void)
156{
157 return 0x0U;
158}
159static inline u32 pbdma_pb_header_first_true_f(void)
160{
161 return 0x400000U;
162}
163static inline u32 pbdma_pb_header_type_inc_f(void)
164{
165 return 0x20000000U;
166}
167static inline u32 pbdma_pb_header_type_non_inc_f(void)
168{
169 return 0x60000000U;
170}
171static inline u32 pbdma_hdr_shadow_r(u32 i)
172{
173 return 0x00040118U + i*8192U;
174}
175static inline u32 pbdma_gp_shadow_0_r(u32 i)
176{
177 return 0x00040110U + i*8192U;
178}
179static inline u32 pbdma_gp_shadow_1_r(u32 i)
180{
181 return 0x00040114U + i*8192U;
182}
183static inline u32 pbdma_subdevice_r(u32 i)
184{
185 return 0x00040094U + i*8192U;
186}
187static inline u32 pbdma_subdevice_id_f(u32 v)
188{
189 return (v & 0xfffU) << 0U;
190}
191static inline u32 pbdma_subdevice_status_active_f(void)
192{
193 return 0x10000000U;
194}
195static inline u32 pbdma_subdevice_channel_dma_enable_f(void)
196{
197 return 0x20000000U;
198}
199static inline u32 pbdma_method0_r(u32 i)
200{
201 return 0x000400c0U + i*8192U;
202}
203static inline u32 pbdma_method0_fifo_size_v(void)
204{
205 return 0x00000004U;
206}
207static inline u32 pbdma_method0_addr_f(u32 v)
208{
209 return (v & 0xfffU) << 2U;
210}
211static inline u32 pbdma_method0_addr_v(u32 r)
212{
213 return (r >> 2U) & 0xfffU;
214}
215static inline u32 pbdma_method0_subch_v(u32 r)
216{
217 return (r >> 16U) & 0x7U;
218}
219static inline u32 pbdma_method0_first_true_f(void)
220{
221 return 0x400000U;
222}
223static inline u32 pbdma_method0_valid_true_f(void)
224{
225 return 0x80000000U;
226}
227static inline u32 pbdma_method1_r(u32 i)
228{
229 return 0x000400c8U + i*8192U;
230}
231static inline u32 pbdma_method2_r(u32 i)
232{
233 return 0x000400d0U + i*8192U;
234}
235static inline u32 pbdma_method3_r(u32 i)
236{
237 return 0x000400d8U + i*8192U;
238}
239static inline u32 pbdma_data0_r(u32 i)
240{
241 return 0x000400c4U + i*8192U;
242}
243static inline u32 pbdma_acquire_r(u32 i)
244{
245 return 0x00040030U + i*8192U;
246}
247static inline u32 pbdma_acquire_retry_man_2_f(void)
248{
249 return 0x2U;
250}
251static inline u32 pbdma_acquire_retry_exp_2_f(void)
252{
253 return 0x100U;
254}
255static inline u32 pbdma_acquire_timeout_exp_f(u32 v)
256{
257 return (v & 0xfU) << 11U;
258}
259static inline u32 pbdma_acquire_timeout_exp_max_v(void)
260{
261 return 0x0000000fU;
262}
263static inline u32 pbdma_acquire_timeout_exp_max_f(void)
264{
265 return 0x7800U;
266}
267static inline u32 pbdma_acquire_timeout_man_f(u32 v)
268{
269 return (v & 0xffffU) << 15U;
270}
271static inline u32 pbdma_acquire_timeout_man_max_v(void)
272{
273 return 0x0000ffffU;
274}
275static inline u32 pbdma_acquire_timeout_man_max_f(void)
276{
277 return 0x7fff8000U;
278}
279static inline u32 pbdma_acquire_timeout_en_enable_f(void)
280{
281 return 0x80000000U;
282}
283static inline u32 pbdma_acquire_timeout_en_disable_f(void)
284{
285 return 0x0U;
286}
287static inline u32 pbdma_status_r(u32 i)
288{
289 return 0x00040100U + i*8192U;
290}
291static inline u32 pbdma_channel_r(u32 i)
292{
293 return 0x00040120U + i*8192U;
294}
295static inline u32 pbdma_signature_r(u32 i)
296{
297 return 0x00040010U + i*8192U;
298}
299static inline u32 pbdma_signature_hw_valid_f(void)
300{
301 return 0xfaceU;
302}
303static inline u32 pbdma_signature_sw_zero_f(void)
304{
305 return 0x0U;
306}
307static inline u32 pbdma_userd_r(u32 i)
308{
309 return 0x00040008U + i*8192U;
310}
311static inline u32 pbdma_userd_target_vid_mem_f(void)
312{
313 return 0x0U;
314}
315static inline u32 pbdma_userd_target_sys_mem_coh_f(void)
316{
317 return 0x2U;
318}
319static inline u32 pbdma_userd_target_sys_mem_ncoh_f(void)
320{
321 return 0x3U;
322}
323static inline u32 pbdma_userd_addr_f(u32 v)
324{
325 return (v & 0x7fffffU) << 9U;
326}
327static inline u32 pbdma_config_r(u32 i)
328{
329 return 0x000400f4U + i*8192U;
330}
331static inline u32 pbdma_config_l2_evict_first_f(void)
332{
333 return 0x0U;
334}
335static inline u32 pbdma_config_l2_evict_normal_f(void)
336{
337 return 0x1U;
338}
339static inline u32 pbdma_config_ce_split_enable_f(void)
340{
341 return 0x0U;
342}
343static inline u32 pbdma_config_ce_split_disable_f(void)
344{
345 return 0x10U;
346}
347static inline u32 pbdma_config_auth_level_non_privileged_f(void)
348{
349 return 0x0U;
350}
351static inline u32 pbdma_config_auth_level_privileged_f(void)
352{
353 return 0x100U;
354}
355static inline u32 pbdma_config_userd_writeback_disable_f(void)
356{
357 return 0x0U;
358}
359static inline u32 pbdma_config_userd_writeback_enable_f(void)
360{
361 return 0x1000U;
362}
363static inline u32 pbdma_userd_hi_r(u32 i)
364{
365 return 0x0004000cU + i*8192U;
366}
367static inline u32 pbdma_userd_hi_addr_f(u32 v)
368{
369 return (v & 0xffU) << 0U;
370}
371static inline u32 pbdma_hce_ctrl_r(u32 i)
372{
373 return 0x000400e4U + i*8192U;
374}
375static inline u32 pbdma_hce_ctrl_hce_priv_mode_yes_f(void)
376{
377 return 0x20U;
378}
379static inline u32 pbdma_intr_0_r(u32 i)
380{
381 return 0x00040108U + i*8192U;
382}
383static inline u32 pbdma_intr_0_memreq_v(u32 r)
384{
385 return (r >> 0U) & 0x1U;
386}
387static inline u32 pbdma_intr_0_memreq_pending_f(void)
388{
389 return 0x1U;
390}
391static inline u32 pbdma_intr_0_memack_timeout_pending_f(void)
392{
393 return 0x2U;
394}
395static inline u32 pbdma_intr_0_memack_extra_pending_f(void)
396{
397 return 0x4U;
398}
399static inline u32 pbdma_intr_0_memdat_timeout_pending_f(void)
400{
401 return 0x8U;
402}
403static inline u32 pbdma_intr_0_memdat_extra_pending_f(void)
404{
405 return 0x10U;
406}
407static inline u32 pbdma_intr_0_memflush_pending_f(void)
408{
409 return 0x20U;
410}
411static inline u32 pbdma_intr_0_memop_pending_f(void)
412{
413 return 0x40U;
414}
415static inline u32 pbdma_intr_0_lbconnect_pending_f(void)
416{
417 return 0x80U;
418}
419static inline u32 pbdma_intr_0_lbreq_pending_f(void)
420{
421 return 0x100U;
422}
423static inline u32 pbdma_intr_0_lback_timeout_pending_f(void)
424{
425 return 0x200U;
426}
427static inline u32 pbdma_intr_0_lback_extra_pending_f(void)
428{
429 return 0x400U;
430}
431static inline u32 pbdma_intr_0_lbdat_timeout_pending_f(void)
432{
433 return 0x800U;
434}
435static inline u32 pbdma_intr_0_lbdat_extra_pending_f(void)
436{
437 return 0x1000U;
438}
439static inline u32 pbdma_intr_0_gpfifo_pending_f(void)
440{
441 return 0x2000U;
442}
443static inline u32 pbdma_intr_0_gpptr_pending_f(void)
444{
445 return 0x4000U;
446}
447static inline u32 pbdma_intr_0_gpentry_pending_f(void)
448{
449 return 0x8000U;
450}
451static inline u32 pbdma_intr_0_gpcrc_pending_f(void)
452{
453 return 0x10000U;
454}
455static inline u32 pbdma_intr_0_pbptr_pending_f(void)
456{
457 return 0x20000U;
458}
459static inline u32 pbdma_intr_0_pbentry_pending_f(void)
460{
461 return 0x40000U;
462}
463static inline u32 pbdma_intr_0_pbcrc_pending_f(void)
464{
465 return 0x80000U;
466}
467static inline u32 pbdma_intr_0_clear_faulted_error_pending_f(void)
468{
469 return 0x100000U;
470}
471static inline u32 pbdma_intr_0_method_pending_f(void)
472{
473 return 0x200000U;
474}
475static inline u32 pbdma_intr_0_methodcrc_pending_f(void)
476{
477 return 0x400000U;
478}
479static inline u32 pbdma_intr_0_device_pending_f(void)
480{
481 return 0x800000U;
482}
483static inline u32 pbdma_intr_0_eng_reset_pending_f(void)
484{
485 return 0x1000000U;
486}
487static inline u32 pbdma_intr_0_semaphore_pending_f(void)
488{
489 return 0x2000000U;
490}
491static inline u32 pbdma_intr_0_acquire_pending_f(void)
492{
493 return 0x4000000U;
494}
495static inline u32 pbdma_intr_0_pri_pending_f(void)
496{
497 return 0x8000000U;
498}
499static inline u32 pbdma_intr_0_no_ctxsw_seg_pending_f(void)
500{
501 return 0x20000000U;
502}
503static inline u32 pbdma_intr_0_pbseg_pending_f(void)
504{
505 return 0x40000000U;
506}
507static inline u32 pbdma_intr_0_signature_pending_f(void)
508{
509 return 0x80000000U;
510}
511static inline u32 pbdma_intr_1_r(u32 i)
512{
513 return 0x00040148U + i*8192U;
514}
515static inline u32 pbdma_intr_1_ctxnotvalid_m(void)
516{
517 return 0x1U << 31U;
518}
519static inline u32 pbdma_intr_1_ctxnotvalid_pending_f(void)
520{
521 return 0x80000000U;
522}
523static inline u32 pbdma_intr_en_0_r(u32 i)
524{
525 return 0x0004010cU + i*8192U;
526}
527static inline u32 pbdma_intr_en_0_lbreq_enabled_f(void)
528{
529 return 0x100U;
530}
531static inline u32 pbdma_intr_en_1_r(u32 i)
532{
533 return 0x0004014cU + i*8192U;
534}
535static inline u32 pbdma_intr_stall_r(u32 i)
536{
537 return 0x0004013cU + i*8192U;
538}
539static inline u32 pbdma_intr_stall_lbreq_enabled_f(void)
540{
541 return 0x100U;
542}
543static inline u32 pbdma_intr_stall_1_r(u32 i)
544{
545 return 0x00040140U + i*8192U;
546}
547static inline u32 pbdma_intr_stall_1_hce_illegal_op_enabled_f(void)
548{
549 return 0x1U;
550}
551static inline u32 pbdma_udma_nop_r(void)
552{
553 return 0x00000008U;
554}
555static inline u32 pbdma_runlist_timeslice_r(u32 i)
556{
557 return 0x000400f8U + i*8192U;
558}
559static inline u32 pbdma_runlist_timeslice_timeout_128_f(void)
560{
561 return 0x80U;
562}
563static inline u32 pbdma_runlist_timeslice_timescale_3_f(void)
564{
565 return 0x3000U;
566}
567static inline u32 pbdma_runlist_timeslice_enable_true_f(void)
568{
569 return 0x10000000U;
570}
571static inline u32 pbdma_target_r(u32 i)
572{
573 return 0x000400acU + i*8192U;
574}
575static inline u32 pbdma_target_engine_sw_f(void)
576{
577 return 0x1fU;
578}
579static inline u32 pbdma_target_eng_ctx_valid_true_f(void)
580{
581 return 0x10000U;
582}
583static inline u32 pbdma_target_eng_ctx_valid_false_f(void)
584{
585 return 0x0U;
586}
587static inline u32 pbdma_target_ce_ctx_valid_true_f(void)
588{
589 return 0x20000U;
590}
591static inline u32 pbdma_target_ce_ctx_valid_false_f(void)
592{
593 return 0x0U;
594}
595static inline u32 pbdma_target_host_tsg_event_reason_pbdma_idle_f(void)
596{
597 return 0x0U;
598}
599static inline u32 pbdma_target_host_tsg_event_reason_semaphore_acquire_failure_f(void)
600{
601 return 0x1000000U;
602}
603static inline u32 pbdma_target_host_tsg_event_reason_tsg_yield_f(void)
604{
605 return 0x2000000U;
606}
607static inline u32 pbdma_target_host_tsg_event_reason_host_subchannel_switch_f(void)
608{
609 return 0x3000000U;
610}
611static inline u32 pbdma_target_should_send_tsg_event_true_f(void)
612{
613 return 0x20000000U;
614}
615static inline u32 pbdma_target_should_send_tsg_event_false_f(void)
616{
617 return 0x0U;
618}
619static inline u32 pbdma_target_needs_host_tsg_event_true_f(void)
620{
621 return 0x80000000U;
622}
623static inline u32 pbdma_target_needs_host_tsg_event_false_f(void)
624{
625 return 0x0U;
626}
627static inline u32 pbdma_set_channel_info_r(u32 i)
628{
629 return 0x000400fcU + i*8192U;
630}
631static inline u32 pbdma_set_channel_info_veid_f(u32 v)
632{
633 return (v & 0x3fU) << 8U;
634}
635static inline u32 pbdma_timeout_r(u32 i)
636{
637 return 0x0004012cU + i*8192U;
638}
639static inline u32 pbdma_timeout_period_m(void)
640{
641 return 0xffffffffU << 0U;
642}
643static inline u32 pbdma_timeout_period_max_f(void)
644{
645 return 0xffffffffU;
646}
647static inline u32 pbdma_timeout_period_init_f(void)
648{
649 return 0x10000U;
650}
651#endif
diff --git a/include/nvgpu/hw/gv11b/hw_perf_gv11b.h b/include/nvgpu/hw/gv11b/hw_perf_gv11b.h
new file mode 100644
index 0000000..a3341df
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_perf_gv11b.h
@@ -0,0 +1,263 @@
1/*
2 * Copyright (c) 2016-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_perf_gv11b_h_
57#define _hw_perf_gv11b_h_
58
59static inline u32 perf_pmmgpc_perdomain_offset_v(void)
60{
61 return 0x00000200U;
62}
63static inline u32 perf_pmmsys_perdomain_offset_v(void)
64{
65 return 0x00000200U;
66}
67static inline u32 perf_pmmgpc_base_v(void)
68{
69 return 0x00180000U;
70}
71static inline u32 perf_pmmgpc_extent_v(void)
72{
73 return 0x00183fffU;
74}
75static inline u32 perf_pmmsys_base_v(void)
76{
77 return 0x00240000U;
78}
79static inline u32 perf_pmmsys_extent_v(void)
80{
81 return 0x00243fffU;
82}
83static inline u32 perf_pmmfbp_base_v(void)
84{
85 return 0x00200000U;
86}
87static inline u32 perf_pmasys_control_r(void)
88{
89 return 0x0024a000U;
90}
91static inline u32 perf_pmasys_control_membuf_status_v(u32 r)
92{
93 return (r >> 4U) & 0x1U;
94}
95static inline u32 perf_pmasys_control_membuf_status_overflowed_v(void)
96{
97 return 0x00000001U;
98}
99static inline u32 perf_pmasys_control_membuf_status_overflowed_f(void)
100{
101 return 0x10U;
102}
103static inline u32 perf_pmasys_control_membuf_clear_status_f(u32 v)
104{
105 return (v & 0x1U) << 5U;
106}
107static inline u32 perf_pmasys_control_membuf_clear_status_v(u32 r)
108{
109 return (r >> 5U) & 0x1U;
110}
111static inline u32 perf_pmasys_control_membuf_clear_status_doit_v(void)
112{
113 return 0x00000001U;
114}
115static inline u32 perf_pmasys_control_membuf_clear_status_doit_f(void)
116{
117 return 0x20U;
118}
119static inline u32 perf_pmasys_mem_block_r(void)
120{
121 return 0x0024a070U;
122}
123static inline u32 perf_pmasys_mem_block_base_f(u32 v)
124{
125 return (v & 0xfffffffU) << 0U;
126}
127static inline u32 perf_pmasys_mem_block_target_f(u32 v)
128{
129 return (v & 0x3U) << 28U;
130}
131static inline u32 perf_pmasys_mem_block_target_v(u32 r)
132{
133 return (r >> 28U) & 0x3U;
134}
135static inline u32 perf_pmasys_mem_block_target_lfb_v(void)
136{
137 return 0x00000000U;
138}
139static inline u32 perf_pmasys_mem_block_target_lfb_f(void)
140{
141 return 0x0U;
142}
143static inline u32 perf_pmasys_mem_block_target_sys_coh_v(void)
144{
145 return 0x00000002U;
146}
147static inline u32 perf_pmasys_mem_block_target_sys_coh_f(void)
148{
149 return 0x20000000U;
150}
151static inline u32 perf_pmasys_mem_block_target_sys_ncoh_v(void)
152{
153 return 0x00000003U;
154}
155static inline u32 perf_pmasys_mem_block_target_sys_ncoh_f(void)
156{
157 return 0x30000000U;
158}
159static inline u32 perf_pmasys_mem_block_valid_f(u32 v)
160{
161 return (v & 0x1U) << 31U;
162}
163static inline u32 perf_pmasys_mem_block_valid_v(u32 r)
164{
165 return (r >> 31U) & 0x1U;
166}
167static inline u32 perf_pmasys_mem_block_valid_true_v(void)
168{
169 return 0x00000001U;
170}
171static inline u32 perf_pmasys_mem_block_valid_true_f(void)
172{
173 return 0x80000000U;
174}
175static inline u32 perf_pmasys_mem_block_valid_false_v(void)
176{
177 return 0x00000000U;
178}
179static inline u32 perf_pmasys_mem_block_valid_false_f(void)
180{
181 return 0x0U;
182}
183static inline u32 perf_pmasys_outbase_r(void)
184{
185 return 0x0024a074U;
186}
187static inline u32 perf_pmasys_outbase_ptr_f(u32 v)
188{
189 return (v & 0x7ffffffU) << 5U;
190}
191static inline u32 perf_pmasys_outbaseupper_r(void)
192{
193 return 0x0024a078U;
194}
195static inline u32 perf_pmasys_outbaseupper_ptr_f(u32 v)
196{
197 return (v & 0xffU) << 0U;
198}
199static inline u32 perf_pmasys_outsize_r(void)
200{
201 return 0x0024a07cU;
202}
203static inline u32 perf_pmasys_outsize_numbytes_f(u32 v)
204{
205 return (v & 0x7ffffffU) << 5U;
206}
207static inline u32 perf_pmasys_mem_bytes_r(void)
208{
209 return 0x0024a084U;
210}
211static inline u32 perf_pmasys_mem_bytes_numbytes_f(u32 v)
212{
213 return (v & 0xfffffffU) << 4U;
214}
215static inline u32 perf_pmasys_mem_bump_r(void)
216{
217 return 0x0024a088U;
218}
219static inline u32 perf_pmasys_mem_bump_numbytes_f(u32 v)
220{
221 return (v & 0xfffffffU) << 4U;
222}
223static inline u32 perf_pmasys_enginestatus_r(void)
224{
225 return 0x0024a0a4U;
226}
227static inline u32 perf_pmasys_enginestatus_rbufempty_f(u32 v)
228{
229 return (v & 0x1U) << 4U;
230}
231static inline u32 perf_pmasys_enginestatus_rbufempty_empty_v(void)
232{
233 return 0x00000001U;
234}
235static inline u32 perf_pmasys_enginestatus_rbufempty_empty_f(void)
236{
237 return 0x10U;
238}
239static inline u32 perf_pmmsys_engine_sel_r(u32 i)
240{
241 return 0x0024006cU + i*512U;
242}
243static inline u32 perf_pmmsys_engine_sel__size_1_v(void)
244{
245 return 0x00000020U;
246}
247static inline u32 perf_pmmfbp_engine_sel_r(u32 i)
248{
249 return 0x0020006cU + i*512U;
250}
251static inline u32 perf_pmmfbp_engine_sel__size_1_v(void)
252{
253 return 0x00000020U;
254}
255static inline u32 perf_pmmgpc_engine_sel_r(u32 i)
256{
257 return 0x0018006cU + i*512U;
258}
259static inline u32 perf_pmmgpc_engine_sel__size_1_v(void)
260{
261 return 0x00000020U;
262}
263#endif
diff --git a/include/nvgpu/hw/gv11b/hw_pram_gv11b.h b/include/nvgpu/hw/gv11b/hw_pram_gv11b.h
new file mode 100644
index 0000000..456d631
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_pram_gv11b.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (c) 2016-2017, 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_pram_gv11b_h_
57#define _hw_pram_gv11b_h_
58
59static inline u32 pram_data032_r(u32 i)
60{
61 return 0x00700000U + i*4U;
62}
63#endif
diff --git a/include/nvgpu/hw/gv11b/hw_pri_ringmaster_gv11b.h b/include/nvgpu/hw/gv11b/hw_pri_ringmaster_gv11b.h
new file mode 100644
index 0000000..a653681
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_pri_ringmaster_gv11b.h
@@ -0,0 +1,167 @@
1/*
2 * Copyright (c) 2016-2017, 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_pri_ringmaster_gv11b_h_
57#define _hw_pri_ringmaster_gv11b_h_
58
59static inline u32 pri_ringmaster_command_r(void)
60{
61 return 0x0012004cU;
62}
63static inline u32 pri_ringmaster_command_cmd_m(void)
64{
65 return 0x3fU << 0U;
66}
67static inline u32 pri_ringmaster_command_cmd_v(u32 r)
68{
69 return (r >> 0U) & 0x3fU;
70}
71static inline u32 pri_ringmaster_command_cmd_no_cmd_v(void)
72{
73 return 0x00000000U;
74}
75static inline u32 pri_ringmaster_command_cmd_start_ring_f(void)
76{
77 return 0x1U;
78}
79static inline u32 pri_ringmaster_command_cmd_ack_interrupt_f(void)
80{
81 return 0x2U;
82}
83static inline u32 pri_ringmaster_command_cmd_enumerate_stations_f(void)
84{
85 return 0x3U;
86}
87static inline u32 pri_ringmaster_command_cmd_enumerate_stations_bc_grp_all_f(void)
88{
89 return 0x0U;
90}
91static inline u32 pri_ringmaster_command_data_r(void)
92{
93 return 0x00120048U;
94}
95static inline u32 pri_ringmaster_start_results_r(void)
96{
97 return 0x00120050U;
98}
99static inline u32 pri_ringmaster_start_results_connectivity_v(u32 r)
100{
101 return (r >> 0U) & 0x1U;
102}
103static inline u32 pri_ringmaster_start_results_connectivity_pass_v(void)
104{
105 return 0x00000001U;
106}
107static inline u32 pri_ringmaster_intr_status0_r(void)
108{
109 return 0x00120058U;
110}
111static inline u32 pri_ringmaster_intr_status0_ring_start_conn_fault_v(u32 r)
112{
113 return (r >> 0U) & 0x1U;
114}
115static inline u32 pri_ringmaster_intr_status0_disconnect_fault_v(u32 r)
116{
117 return (r >> 1U) & 0x1U;
118}
119static inline u32 pri_ringmaster_intr_status0_overflow_fault_v(u32 r)
120{
121 return (r >> 2U) & 0x1U;
122}
123static inline u32 pri_ringmaster_intr_status0_gbl_write_error_sys_v(u32 r)
124{
125 return (r >> 8U) & 0x1U;
126}
127static inline u32 pri_ringmaster_intr_status1_r(void)
128{
129 return 0x0012005cU;
130}
131static inline u32 pri_ringmaster_global_ctl_r(void)
132{
133 return 0x00120060U;
134}
135static inline u32 pri_ringmaster_global_ctl_ring_reset_asserted_f(void)
136{
137 return 0x1U;
138}
139static inline u32 pri_ringmaster_global_ctl_ring_reset_deasserted_f(void)
140{
141 return 0x0U;
142}
143static inline u32 pri_ringmaster_enum_fbp_r(void)
144{
145 return 0x00120074U;
146}
147static inline u32 pri_ringmaster_enum_fbp_count_v(u32 r)
148{
149 return (r >> 0U) & 0x1fU;
150}
151static inline u32 pri_ringmaster_enum_gpc_r(void)
152{
153 return 0x00120078U;
154}
155static inline u32 pri_ringmaster_enum_gpc_count_v(u32 r)
156{
157 return (r >> 0U) & 0x1fU;
158}
159static inline u32 pri_ringmaster_enum_ltc_r(void)
160{
161 return 0x0012006cU;
162}
163static inline u32 pri_ringmaster_enum_ltc_count_v(u32 r)
164{
165 return (r >> 0U) & 0x1fU;
166}
167#endif
diff --git a/include/nvgpu/hw/gv11b/hw_pri_ringstation_gpc_gv11b.h b/include/nvgpu/hw/gv11b/hw_pri_ringstation_gpc_gv11b.h
new file mode 100644
index 0000000..47da22c
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_pri_ringstation_gpc_gv11b.h
@@ -0,0 +1,79 @@
1/*
2 * Copyright (c) 2017, 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_pri_ringstation_gpc_gv11b_h_
57#define _hw_pri_ringstation_gpc_gv11b_h_
58
59static inline u32 pri_ringstation_gpc_master_config_r(u32 i)
60{
61 return 0x00128300U + i*4U;
62}
63static inline u32 pri_ringstation_gpc_gpc0_priv_error_adr_r(void)
64{
65 return 0x00128120U;
66}
67static inline u32 pri_ringstation_gpc_gpc0_priv_error_wrdat_r(void)
68{
69 return 0x00128124U;
70}
71static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_r(void)
72{
73 return 0x00128128U;
74}
75static inline u32 pri_ringstation_gpc_gpc0_priv_error_code_r(void)
76{
77 return 0x0012812cU;
78}
79#endif
diff --git a/include/nvgpu/hw/gv11b/hw_pri_ringstation_sys_gv11b.h b/include/nvgpu/hw/gv11b/hw_pri_ringstation_sys_gv11b.h
new file mode 100644
index 0000000..622b6d7
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_pri_ringstation_sys_gv11b.h
@@ -0,0 +1,91 @@
1/*
2 * Copyright (c) 2016-2017, 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_pri_ringstation_sys_gv11b_h_
57#define _hw_pri_ringstation_sys_gv11b_h_
58
59static inline u32 pri_ringstation_sys_master_config_r(u32 i)
60{
61 return 0x00122300U + i*4U;
62}
63static inline u32 pri_ringstation_sys_decode_config_r(void)
64{
65 return 0x00122204U;
66}
67static inline u32 pri_ringstation_sys_decode_config_ring_m(void)
68{
69 return 0x7U << 0U;
70}
71static inline u32 pri_ringstation_sys_decode_config_ring_drop_on_ring_not_started_f(void)
72{
73 return 0x1U;
74}
75static inline u32 pri_ringstation_sys_priv_error_adr_r(void)
76{
77 return 0x00122120U;
78}
79static inline u32 pri_ringstation_sys_priv_error_wrdat_r(void)
80{
81 return 0x00122124U;
82}
83static inline u32 pri_ringstation_sys_priv_error_info_r(void)
84{
85 return 0x00122128U;
86}
87static inline u32 pri_ringstation_sys_priv_error_code_r(void)
88{
89 return 0x0012212cU;
90}
91#endif
diff --git a/include/nvgpu/hw/gv11b/hw_proj_gv11b.h b/include/nvgpu/hw/gv11b/hw_proj_gv11b.h
new file mode 100644
index 0000000..7283237
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_proj_gv11b.h
@@ -0,0 +1,191 @@
1/*
2 * Copyright (c) 2016-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_proj_gv11b_h_
57#define _hw_proj_gv11b_h_
58
59static inline u32 proj_gpc_base_v(void)
60{
61 return 0x00500000U;
62}
63static inline u32 proj_gpc_shared_base_v(void)
64{
65 return 0x00418000U;
66}
67static inline u32 proj_gpc_stride_v(void)
68{
69 return 0x00008000U;
70}
71static inline u32 proj_gpc_priv_stride_v(void)
72{
73 return 0x00000800U;
74}
75static inline u32 proj_ltc_stride_v(void)
76{
77 return 0x00002000U;
78}
79static inline u32 proj_lts_stride_v(void)
80{
81 return 0x00000200U;
82}
83static inline u32 proj_fbpa_stride_v(void)
84{
85 return 0x00004000U;
86}
87static inline u32 proj_ppc_in_gpc_base_v(void)
88{
89 return 0x00003000U;
90}
91static inline u32 proj_ppc_in_gpc_shared_base_v(void)
92{
93 return 0x00003e00U;
94}
95static inline u32 proj_ppc_in_gpc_stride_v(void)
96{
97 return 0x00000200U;
98}
99static inline u32 proj_rop_base_v(void)
100{
101 return 0x00410000U;
102}
103static inline u32 proj_rop_shared_base_v(void)
104{
105 return 0x00408800U;
106}
107static inline u32 proj_rop_stride_v(void)
108{
109 return 0x00000400U;
110}
111static inline u32 proj_tpc_in_gpc_base_v(void)
112{
113 return 0x00004000U;
114}
115static inline u32 proj_tpc_in_gpc_stride_v(void)
116{
117 return 0x00000800U;
118}
119static inline u32 proj_tpc_in_gpc_shared_base_v(void)
120{
121 return 0x00001800U;
122}
123static inline u32 proj_smpc_base_v(void)
124{
125 return 0x00000200U;
126}
127static inline u32 proj_smpc_shared_base_v(void)
128{
129 return 0x00000300U;
130}
131static inline u32 proj_smpc_unique_base_v(void)
132{
133 return 0x00000600U;
134}
135static inline u32 proj_smpc_stride_v(void)
136{
137 return 0x00000100U;
138}
139static inline u32 proj_host_num_engines_v(void)
140{
141 return 0x00000004U;
142}
143static inline u32 proj_host_num_pbdma_v(void)
144{
145 return 0x00000003U;
146}
147static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void)
148{
149 return 0x00000004U;
150}
151static inline u32 proj_scal_litter_num_fbps_v(void)
152{
153 return 0x00000001U;
154}
155static inline u32 proj_scal_litter_num_fbpas_v(void)
156{
157 return 0x00000001U;
158}
159static inline u32 proj_scal_litter_num_gpcs_v(void)
160{
161 return 0x00000001U;
162}
163static inline u32 proj_scal_litter_num_pes_per_gpc_v(void)
164{
165 return 0x00000002U;
166}
167static inline u32 proj_scal_litter_num_tpcs_per_pes_v(void)
168{
169 return 0x00000002U;
170}
171static inline u32 proj_scal_litter_num_zcull_banks_v(void)
172{
173 return 0x00000004U;
174}
175static inline u32 proj_scal_litter_num_sm_per_tpc_v(void)
176{
177 return 0x00000002U;
178}
179static inline u32 proj_scal_max_gpcs_v(void)
180{
181 return 0x00000020U;
182}
183static inline u32 proj_scal_max_tpc_per_gpc_v(void)
184{
185 return 0x00000008U;
186}
187static inline u32 proj_sm_stride_v(void)
188{
189 return 0x00000080U;
190}
191#endif
diff --git a/include/nvgpu/hw/gv11b/hw_pwr_gv11b.h b/include/nvgpu/hw/gv11b/hw_pwr_gv11b.h
new file mode 100644
index 0000000..1cda12d
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_pwr_gv11b.h
@@ -0,0 +1,1219 @@
1/*
2 * Copyright (c) 2016-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_pwr_gv11b_h_
57#define _hw_pwr_gv11b_h_
58
59static inline u32 pwr_falcon_irqsset_r(void)
60{
61 return 0x0010a000U;
62}
63static inline u32 pwr_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 pwr_falcon_irqsclr_r(void)
68{
69 return 0x0010a004U;
70}
71static inline u32 pwr_falcon_irqstat_r(void)
72{
73 return 0x0010a008U;
74}
75static inline u32 pwr_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 pwr_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 pwr_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 pwr_falcon_irqstat_ext_second_true_f(void)
88{
89 return 0x800U;
90}
91static inline u32 pwr_falcon_irqstat_ext_ecc_parity_true_f(void)
92{
93 return 0x400U;
94}
95static inline u32 pwr_pmu_ecc_intr_status_r(void)
96{
97 return 0x0010abfcU;
98}
99static inline u32 pwr_pmu_ecc_intr_status_corrected_f(u32 v)
100{
101 return (v & 0x1U) << 0U;
102}
103static inline u32 pwr_pmu_ecc_intr_status_corrected_m(void)
104{
105 return 0x1U << 0U;
106}
107static inline u32 pwr_pmu_ecc_intr_status_uncorrected_f(u32 v)
108{
109 return (v & 0x1U) << 1U;
110}
111static inline u32 pwr_pmu_ecc_intr_status_uncorrected_m(void)
112{
113 return 0x1U << 1U;
114}
115static inline u32 pwr_falcon_irqmode_r(void)
116{
117 return 0x0010a00cU;
118}
119static inline u32 pwr_falcon_irqmset_r(void)
120{
121 return 0x0010a010U;
122}
123static inline u32 pwr_falcon_irqmset_gptmr_f(u32 v)
124{
125 return (v & 0x1U) << 0U;
126}
127static inline u32 pwr_falcon_irqmset_wdtmr_f(u32 v)
128{
129 return (v & 0x1U) << 1U;
130}
131static inline u32 pwr_falcon_irqmset_mthd_f(u32 v)
132{
133 return (v & 0x1U) << 2U;
134}
135static inline u32 pwr_falcon_irqmset_ctxsw_f(u32 v)
136{
137 return (v & 0x1U) << 3U;
138}
139static inline u32 pwr_falcon_irqmset_halt_f(u32 v)
140{
141 return (v & 0x1U) << 4U;
142}
143static inline u32 pwr_falcon_irqmset_exterr_f(u32 v)
144{
145 return (v & 0x1U) << 5U;
146}
147static inline u32 pwr_falcon_irqmset_swgen0_f(u32 v)
148{
149 return (v & 0x1U) << 6U;
150}
151static inline u32 pwr_falcon_irqmset_swgen1_f(u32 v)
152{
153 return (v & 0x1U) << 7U;
154}
155static inline u32 pwr_falcon_irqmset_ext_f(u32 v)
156{
157 return (v & 0xffU) << 8U;
158}
159static inline u32 pwr_falcon_irqmset_ext_ctxe_f(u32 v)
160{
161 return (v & 0x1U) << 8U;
162}
163static inline u32 pwr_falcon_irqmset_ext_limitv_f(u32 v)
164{
165 return (v & 0x1U) << 9U;
166}
167static inline u32 pwr_falcon_irqmset_ext_second_f(u32 v)
168{
169 return (v & 0x1U) << 11U;
170}
171static inline u32 pwr_falcon_irqmset_ext_therm_f(u32 v)
172{
173 return (v & 0x1U) << 12U;
174}
175static inline u32 pwr_falcon_irqmset_ext_miscio_f(u32 v)
176{
177 return (v & 0x1U) << 13U;
178}
179static inline u32 pwr_falcon_irqmset_ext_rttimer_f(u32 v)
180{
181 return (v & 0x1U) << 14U;
182}
183static inline u32 pwr_falcon_irqmset_ext_rsvd8_f(u32 v)
184{
185 return (v & 0x1U) << 15U;
186}
187static inline u32 pwr_falcon_irqmset_ext_ecc_parity_f(u32 v)
188{
189 return (v & 0x1U) << 10U;
190}
191static inline u32 pwr_falcon_irqmclr_r(void)
192{
193 return 0x0010a014U;
194}
195static inline u32 pwr_falcon_irqmclr_gptmr_f(u32 v)
196{
197 return (v & 0x1U) << 0U;
198}
199static inline u32 pwr_falcon_irqmclr_wdtmr_f(u32 v)
200{
201 return (v & 0x1U) << 1U;
202}
203static inline u32 pwr_falcon_irqmclr_mthd_f(u32 v)
204{
205 return (v & 0x1U) << 2U;
206}
207static inline u32 pwr_falcon_irqmclr_ctxsw_f(u32 v)
208{
209 return (v & 0x1U) << 3U;
210}
211static inline u32 pwr_falcon_irqmclr_halt_f(u32 v)
212{
213 return (v & 0x1U) << 4U;
214}
215static inline u32 pwr_falcon_irqmclr_exterr_f(u32 v)
216{
217 return (v & 0x1U) << 5U;
218}
219static inline u32 pwr_falcon_irqmclr_swgen0_f(u32 v)
220{
221 return (v & 0x1U) << 6U;
222}
223static inline u32 pwr_falcon_irqmclr_swgen1_f(u32 v)
224{
225 return (v & 0x1U) << 7U;
226}
227static inline u32 pwr_falcon_irqmclr_ext_f(u32 v)
228{
229 return (v & 0xffU) << 8U;
230}
231static inline u32 pwr_falcon_irqmclr_ext_ctxe_f(u32 v)
232{
233 return (v & 0x1U) << 8U;
234}
235static inline u32 pwr_falcon_irqmclr_ext_limitv_f(u32 v)
236{
237 return (v & 0x1U) << 9U;
238}
239static inline u32 pwr_falcon_irqmclr_ext_second_f(u32 v)
240{
241 return (v & 0x1U) << 11U;
242}
243static inline u32 pwr_falcon_irqmclr_ext_therm_f(u32 v)
244{
245 return (v & 0x1U) << 12U;
246}
247static inline u32 pwr_falcon_irqmclr_ext_miscio_f(u32 v)
248{
249 return (v & 0x1U) << 13U;
250}
251static inline u32 pwr_falcon_irqmclr_ext_rttimer_f(u32 v)
252{
253 return (v & 0x1U) << 14U;
254}
255static inline u32 pwr_falcon_irqmclr_ext_rsvd8_f(u32 v)
256{
257 return (v & 0x1U) << 15U;
258}
259static inline u32 pwr_falcon_irqmclr_ext_ecc_parity_f(u32 v)
260{
261 return (v & 0x1U) << 10U;
262}
263static inline u32 pwr_falcon_irqmask_r(void)
264{
265 return 0x0010a018U;
266}
267static inline u32 pwr_falcon_irqdest_r(void)
268{
269 return 0x0010a01cU;
270}
271static inline u32 pwr_falcon_irqdest_host_gptmr_f(u32 v)
272{
273 return (v & 0x1U) << 0U;
274}
275static inline u32 pwr_falcon_irqdest_host_wdtmr_f(u32 v)
276{
277 return (v & 0x1U) << 1U;
278}
279static inline u32 pwr_falcon_irqdest_host_mthd_f(u32 v)
280{
281 return (v & 0x1U) << 2U;
282}
283static inline u32 pwr_falcon_irqdest_host_ctxsw_f(u32 v)
284{
285 return (v & 0x1U) << 3U;
286}
287static inline u32 pwr_falcon_irqdest_host_halt_f(u32 v)
288{
289 return (v & 0x1U) << 4U;
290}
291static inline u32 pwr_falcon_irqdest_host_exterr_f(u32 v)
292{
293 return (v & 0x1U) << 5U;
294}
295static inline u32 pwr_falcon_irqdest_host_swgen0_f(u32 v)
296{
297 return (v & 0x1U) << 6U;
298}
299static inline u32 pwr_falcon_irqdest_host_swgen1_f(u32 v)
300{
301 return (v & 0x1U) << 7U;
302}
303static inline u32 pwr_falcon_irqdest_host_ext_f(u32 v)
304{
305 return (v & 0xffU) << 8U;
306}
307static inline u32 pwr_falcon_irqdest_host_ext_ctxe_f(u32 v)
308{
309 return (v & 0x1U) << 8U;
310}
311static inline u32 pwr_falcon_irqdest_host_ext_limitv_f(u32 v)
312{
313 return (v & 0x1U) << 9U;
314}
315static inline u32 pwr_falcon_irqdest_host_ext_second_f(u32 v)
316{
317 return (v & 0x1U) << 11U;
318}
319static inline u32 pwr_falcon_irqdest_host_ext_therm_f(u32 v)
320{
321 return (v & 0x1U) << 12U;
322}
323static inline u32 pwr_falcon_irqdest_host_ext_miscio_f(u32 v)
324{
325 return (v & 0x1U) << 13U;
326}
327static inline u32 pwr_falcon_irqdest_host_ext_rttimer_f(u32 v)
328{
329 return (v & 0x1U) << 14U;
330}
331static inline u32 pwr_falcon_irqdest_host_ext_rsvd8_f(u32 v)
332{
333 return (v & 0x1U) << 15U;
334}
335static inline u32 pwr_falcon_irqdest_host_ext_ecc_parity_f(u32 v)
336{
337 return (v & 0x1U) << 10U;
338}
339static inline u32 pwr_falcon_irqdest_target_gptmr_f(u32 v)
340{
341 return (v & 0x1U) << 16U;
342}
343static inline u32 pwr_falcon_irqdest_target_wdtmr_f(u32 v)
344{
345 return (v & 0x1U) << 17U;
346}
347static inline u32 pwr_falcon_irqdest_target_mthd_f(u32 v)
348{
349 return (v & 0x1U) << 18U;
350}
351static inline u32 pwr_falcon_irqdest_target_ctxsw_f(u32 v)
352{
353 return (v & 0x1U) << 19U;
354}
355static inline u32 pwr_falcon_irqdest_target_halt_f(u32 v)
356{
357 return (v & 0x1U) << 20U;
358}
359static inline u32 pwr_falcon_irqdest_target_exterr_f(u32 v)
360{
361 return (v & 0x1U) << 21U;
362}
363static inline u32 pwr_falcon_irqdest_target_swgen0_f(u32 v)
364{
365 return (v & 0x1U) << 22U;
366}
367static inline u32 pwr_falcon_irqdest_target_swgen1_f(u32 v)
368{
369 return (v & 0x1U) << 23U;
370}
371static inline u32 pwr_falcon_irqdest_target_ext_f(u32 v)
372{
373 return (v & 0xffU) << 24U;
374}
375static inline u32 pwr_falcon_irqdest_target_ext_ctxe_f(u32 v)
376{
377 return (v & 0x1U) << 24U;
378}
379static inline u32 pwr_falcon_irqdest_target_ext_limitv_f(u32 v)
380{
381 return (v & 0x1U) << 25U;
382}
383static inline u32 pwr_falcon_irqdest_target_ext_second_f(u32 v)
384{
385 return (v & 0x1U) << 27U;
386}
387static inline u32 pwr_falcon_irqdest_target_ext_therm_f(u32 v)
388{
389 return (v & 0x1U) << 28U;
390}
391static inline u32 pwr_falcon_irqdest_target_ext_miscio_f(u32 v)
392{
393 return (v & 0x1U) << 29U;
394}
395static inline u32 pwr_falcon_irqdest_target_ext_rttimer_f(u32 v)
396{
397 return (v & 0x1U) << 30U;
398}
399static inline u32 pwr_falcon_irqdest_target_ext_rsvd8_f(u32 v)
400{
401 return (v & 0x1U) << 31U;
402}
403static inline u32 pwr_falcon_irqdest_target_ext_ecc_parity_f(u32 v)
404{
405 return (v & 0x1U) << 26U;
406}
407static inline u32 pwr_falcon_curctx_r(void)
408{
409 return 0x0010a050U;
410}
411static inline u32 pwr_falcon_nxtctx_r(void)
412{
413 return 0x0010a054U;
414}
415static inline u32 pwr_falcon_mailbox0_r(void)
416{
417 return 0x0010a040U;
418}
419static inline u32 pwr_falcon_mailbox1_r(void)
420{
421 return 0x0010a044U;
422}
423static inline u32 pwr_falcon_itfen_r(void)
424{
425 return 0x0010a048U;
426}
427static inline u32 pwr_falcon_itfen_ctxen_enable_f(void)
428{
429 return 0x1U;
430}
431static inline u32 pwr_falcon_idlestate_r(void)
432{
433 return 0x0010a04cU;
434}
435static inline u32 pwr_falcon_idlestate_falcon_busy_v(u32 r)
436{
437 return (r >> 0U) & 0x1U;
438}
439static inline u32 pwr_falcon_idlestate_ext_busy_v(u32 r)
440{
441 return (r >> 1U) & 0x7fffU;
442}
443static inline u32 pwr_falcon_os_r(void)
444{
445 return 0x0010a080U;
446}
447static inline u32 pwr_falcon_engctl_r(void)
448{
449 return 0x0010a0a4U;
450}
451static inline u32 pwr_falcon_cpuctl_r(void)
452{
453 return 0x0010a100U;
454}
455static inline u32 pwr_falcon_cpuctl_startcpu_f(u32 v)
456{
457 return (v & 0x1U) << 1U;
458}
459static inline u32 pwr_falcon_cpuctl_halt_intr_f(u32 v)
460{
461 return (v & 0x1U) << 4U;
462}
463static inline u32 pwr_falcon_cpuctl_halt_intr_m(void)
464{
465 return 0x1U << 4U;
466}
467static inline u32 pwr_falcon_cpuctl_halt_intr_v(u32 r)
468{
469 return (r >> 4U) & 0x1U;
470}
471static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
472{
473 return (v & 0x1U) << 6U;
474}
475static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_m(void)
476{
477 return 0x1U << 6U;
478}
479static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
480{
481 return (r >> 6U) & 0x1U;
482}
483static inline u32 pwr_falcon_cpuctl_alias_r(void)
484{
485 return 0x0010a130U;
486}
487static inline u32 pwr_falcon_cpuctl_alias_startcpu_f(u32 v)
488{
489 return (v & 0x1U) << 1U;
490}
491static inline u32 pwr_pmu_scpctl_stat_r(void)
492{
493 return 0x0010ac08U;
494}
495static inline u32 pwr_pmu_scpctl_stat_debug_mode_f(u32 v)
496{
497 return (v & 0x1U) << 20U;
498}
499static inline u32 pwr_pmu_scpctl_stat_debug_mode_m(void)
500{
501 return 0x1U << 20U;
502}
503static inline u32 pwr_pmu_scpctl_stat_debug_mode_v(u32 r)
504{
505 return (r >> 20U) & 0x1U;
506}
507static inline u32 pwr_falcon_imemc_r(u32 i)
508{
509 return 0x0010a180U + i*16U;
510}
511static inline u32 pwr_falcon_imemc_offs_f(u32 v)
512{
513 return (v & 0x3fU) << 2U;
514}
515static inline u32 pwr_falcon_imemc_blk_f(u32 v)
516{
517 return (v & 0xffU) << 8U;
518}
519static inline u32 pwr_falcon_imemc_aincw_f(u32 v)
520{
521 return (v & 0x1U) << 24U;
522}
523static inline u32 pwr_falcon_imemd_r(u32 i)
524{
525 return 0x0010a184U + i*16U;
526}
527static inline u32 pwr_falcon_imemt_r(u32 i)
528{
529 return 0x0010a188U + i*16U;
530}
531static inline u32 pwr_falcon_sctl_r(void)
532{
533 return 0x0010a240U;
534}
535static inline u32 pwr_falcon_mmu_phys_sec_r(void)
536{
537 return 0x00100ce4U;
538}
539static inline u32 pwr_falcon_bootvec_r(void)
540{
541 return 0x0010a104U;
542}
543static inline u32 pwr_falcon_bootvec_vec_f(u32 v)
544{
545 return (v & 0xffffffffU) << 0U;
546}
547static inline u32 pwr_falcon_dmactl_r(void)
548{
549 return 0x0010a10cU;
550}
551static inline u32 pwr_falcon_dmactl_dmem_scrubbing_m(void)
552{
553 return 0x1U << 1U;
554}
555static inline u32 pwr_falcon_dmactl_imem_scrubbing_m(void)
556{
557 return 0x1U << 2U;
558}
559static inline u32 pwr_falcon_hwcfg_r(void)
560{
561 return 0x0010a108U;
562}
563static inline u32 pwr_falcon_hwcfg_imem_size_v(u32 r)
564{
565 return (r >> 0U) & 0x1ffU;
566}
567static inline u32 pwr_falcon_hwcfg_dmem_size_v(u32 r)
568{
569 return (r >> 9U) & 0x1ffU;
570}
571static inline u32 pwr_falcon_dmatrfbase_r(void)
572{
573 return 0x0010a110U;
574}
575static inline u32 pwr_falcon_dmatrfbase1_r(void)
576{
577 return 0x0010a128U;
578}
579static inline u32 pwr_falcon_dmatrfmoffs_r(void)
580{
581 return 0x0010a114U;
582}
583static inline u32 pwr_falcon_dmatrfcmd_r(void)
584{
585 return 0x0010a118U;
586}
587static inline u32 pwr_falcon_dmatrfcmd_imem_f(u32 v)
588{
589 return (v & 0x1U) << 4U;
590}
591static inline u32 pwr_falcon_dmatrfcmd_write_f(u32 v)
592{
593 return (v & 0x1U) << 5U;
594}
595static inline u32 pwr_falcon_dmatrfcmd_size_f(u32 v)
596{
597 return (v & 0x7U) << 8U;
598}
599static inline u32 pwr_falcon_dmatrfcmd_ctxdma_f(u32 v)
600{
601 return (v & 0x7U) << 12U;
602}
603static inline u32 pwr_falcon_dmatrffboffs_r(void)
604{
605 return 0x0010a11cU;
606}
607static inline u32 pwr_falcon_exterraddr_r(void)
608{
609 return 0x0010a168U;
610}
611static inline u32 pwr_falcon_exterrstat_r(void)
612{
613 return 0x0010a16cU;
614}
615static inline u32 pwr_falcon_exterrstat_valid_m(void)
616{
617 return 0x1U << 31U;
618}
619static inline u32 pwr_falcon_exterrstat_valid_v(u32 r)
620{
621 return (r >> 31U) & 0x1U;
622}
623static inline u32 pwr_falcon_exterrstat_valid_true_v(void)
624{
625 return 0x00000001U;
626}
627static inline u32 pwr_pmu_falcon_icd_cmd_r(void)
628{
629 return 0x0010a200U;
630}
631static inline u32 pwr_pmu_falcon_icd_cmd_opc_s(void)
632{
633 return 4U;
634}
635static inline u32 pwr_pmu_falcon_icd_cmd_opc_f(u32 v)
636{
637 return (v & 0xfU) << 0U;
638}
639static inline u32 pwr_pmu_falcon_icd_cmd_opc_m(void)
640{
641 return 0xfU << 0U;
642}
643static inline u32 pwr_pmu_falcon_icd_cmd_opc_v(u32 r)
644{
645 return (r >> 0U) & 0xfU;
646}
647static inline u32 pwr_pmu_falcon_icd_cmd_opc_rreg_f(void)
648{
649 return 0x8U;
650}
651static inline u32 pwr_pmu_falcon_icd_cmd_opc_rstat_f(void)
652{
653 return 0xeU;
654}
655static inline u32 pwr_pmu_falcon_icd_cmd_idx_f(u32 v)
656{
657 return (v & 0x1fU) << 8U;
658}
659static inline u32 pwr_pmu_falcon_icd_rdata_r(void)
660{
661 return 0x0010a20cU;
662}
663static inline u32 pwr_falcon_dmemc_r(u32 i)
664{
665 return 0x0010a1c0U + i*8U;
666}
667static inline u32 pwr_falcon_dmemc_offs_f(u32 v)
668{
669 return (v & 0x3fU) << 2U;
670}
671static inline u32 pwr_falcon_dmemc_offs_m(void)
672{
673 return 0x3fU << 2U;
674}
675static inline u32 pwr_falcon_dmemc_blk_f(u32 v)
676{
677 return (v & 0xffU) << 8U;
678}
679static inline u32 pwr_falcon_dmemc_blk_m(void)
680{
681 return 0xffU << 8U;
682}
683static inline u32 pwr_falcon_dmemc_aincw_f(u32 v)
684{
685 return (v & 0x1U) << 24U;
686}
687static inline u32 pwr_falcon_dmemc_aincr_f(u32 v)
688{
689 return (v & 0x1U) << 25U;
690}
691static inline u32 pwr_falcon_dmemd_r(u32 i)
692{
693 return 0x0010a1c4U + i*8U;
694}
695static inline u32 pwr_pmu_new_instblk_r(void)
696{
697 return 0x0010a480U;
698}
699static inline u32 pwr_pmu_new_instblk_ptr_f(u32 v)
700{
701 return (v & 0xfffffffU) << 0U;
702}
703static inline u32 pwr_pmu_new_instblk_target_fb_f(void)
704{
705 return 0x0U;
706}
707static inline u32 pwr_pmu_new_instblk_target_sys_coh_f(void)
708{
709 return 0x20000000U;
710}
711static inline u32 pwr_pmu_new_instblk_target_sys_ncoh_f(void)
712{
713 return 0x30000000U;
714}
715static inline u32 pwr_pmu_new_instblk_valid_f(u32 v)
716{
717 return (v & 0x1U) << 30U;
718}
719static inline u32 pwr_pmu_mutex_id_r(void)
720{
721 return 0x0010a488U;
722}
723static inline u32 pwr_pmu_mutex_id_value_v(u32 r)
724{
725 return (r >> 0U) & 0xffU;
726}
727static inline u32 pwr_pmu_mutex_id_value_init_v(void)
728{
729 return 0x00000000U;
730}
731static inline u32 pwr_pmu_mutex_id_value_not_avail_v(void)
732{
733 return 0x000000ffU;
734}
735static inline u32 pwr_pmu_mutex_id_release_r(void)
736{
737 return 0x0010a48cU;
738}
739static inline u32 pwr_pmu_mutex_id_release_value_f(u32 v)
740{
741 return (v & 0xffU) << 0U;
742}
743static inline u32 pwr_pmu_mutex_id_release_value_m(void)
744{
745 return 0xffU << 0U;
746}
747static inline u32 pwr_pmu_mutex_id_release_value_init_v(void)
748{
749 return 0x00000000U;
750}
751static inline u32 pwr_pmu_mutex_id_release_value_init_f(void)
752{
753 return 0x0U;
754}
755static inline u32 pwr_pmu_mutex_r(u32 i)
756{
757 return 0x0010a580U + i*4U;
758}
759static inline u32 pwr_pmu_mutex__size_1_v(void)
760{
761 return 0x00000010U;
762}
763static inline u32 pwr_pmu_mutex_value_f(u32 v)
764{
765 return (v & 0xffU) << 0U;
766}
767static inline u32 pwr_pmu_mutex_value_v(u32 r)
768{
769 return (r >> 0U) & 0xffU;
770}
771static inline u32 pwr_pmu_mutex_value_initial_lock_f(void)
772{
773 return 0x0U;
774}
775static inline u32 pwr_pmu_queue_head_r(u32 i)
776{
777 return 0x0010a800U + i*4U;
778}
779static inline u32 pwr_pmu_queue_head__size_1_v(void)
780{
781 return 0x00000008U;
782}
783static inline u32 pwr_pmu_queue_head_address_f(u32 v)
784{
785 return (v & 0xffffffffU) << 0U;
786}
787static inline u32 pwr_pmu_queue_head_address_v(u32 r)
788{
789 return (r >> 0U) & 0xffffffffU;
790}
791static inline u32 pwr_pmu_queue_tail_r(u32 i)
792{
793 return 0x0010a820U + i*4U;
794}
795static inline u32 pwr_pmu_queue_tail__size_1_v(void)
796{
797 return 0x00000008U;
798}
799static inline u32 pwr_pmu_queue_tail_address_f(u32 v)
800{
801 return (v & 0xffffffffU) << 0U;
802}
803static inline u32 pwr_pmu_queue_tail_address_v(u32 r)
804{
805 return (r >> 0U) & 0xffffffffU;
806}
807static inline u32 pwr_pmu_msgq_head_r(void)
808{
809 return 0x0010a4c8U;
810}
811static inline u32 pwr_pmu_msgq_head_val_f(u32 v)
812{
813 return (v & 0xffffffffU) << 0U;
814}
815static inline u32 pwr_pmu_msgq_head_val_v(u32 r)
816{
817 return (r >> 0U) & 0xffffffffU;
818}
819static inline u32 pwr_pmu_msgq_tail_r(void)
820{
821 return 0x0010a4ccU;
822}
823static inline u32 pwr_pmu_msgq_tail_val_f(u32 v)
824{
825 return (v & 0xffffffffU) << 0U;
826}
827static inline u32 pwr_pmu_msgq_tail_val_v(u32 r)
828{
829 return (r >> 0U) & 0xffffffffU;
830}
831static inline u32 pwr_pmu_idle_mask_r(u32 i)
832{
833 return 0x0010a504U + i*16U;
834}
835static inline u32 pwr_pmu_idle_mask_gr_enabled_f(void)
836{
837 return 0x1U;
838}
839static inline u32 pwr_pmu_idle_mask_ce_2_enabled_f(void)
840{
841 return 0x200000U;
842}
843static inline u32 pwr_pmu_idle_mask_1_r(u32 i)
844{
845 return 0x0010aa34U + i*8U;
846}
847static inline u32 pwr_pmu_idle_mask_2_r(u32 i)
848{
849 return 0x0010a840U + i*4U;
850}
851static inline u32 pwr_pmu_idle_count_r(u32 i)
852{
853 return 0x0010a508U + i*16U;
854}
855static inline u32 pwr_pmu_idle_count_value_f(u32 v)
856{
857 return (v & 0x7fffffffU) << 0U;
858}
859static inline u32 pwr_pmu_idle_count_value_v(u32 r)
860{
861 return (r >> 0U) & 0x7fffffffU;
862}
863static inline u32 pwr_pmu_idle_count_reset_f(u32 v)
864{
865 return (v & 0x1U) << 31U;
866}
867static inline u32 pwr_pmu_idle_ctrl_r(u32 i)
868{
869 return 0x0010a50cU + i*16U;
870}
871static inline u32 pwr_pmu_idle_ctrl_value_m(void)
872{
873 return 0x3U << 0U;
874}
875static inline u32 pwr_pmu_idle_ctrl_value_busy_f(void)
876{
877 return 0x2U;
878}
879static inline u32 pwr_pmu_idle_ctrl_value_always_f(void)
880{
881 return 0x3U;
882}
883static inline u32 pwr_pmu_idle_ctrl_filter_m(void)
884{
885 return 0x1U << 2U;
886}
887static inline u32 pwr_pmu_idle_ctrl_filter_disabled_f(void)
888{
889 return 0x0U;
890}
891static inline u32 pwr_pmu_idle_threshold_r(u32 i)
892{
893 return 0x0010a8a0U + i*4U;
894}
895static inline u32 pwr_pmu_idle_threshold_value_f(u32 v)
896{
897 return (v & 0x7fffffffU) << 0U;
898}
899static inline u32 pwr_pmu_idle_intr_r(void)
900{
901 return 0x0010a9e8U;
902}
903static inline u32 pwr_pmu_idle_intr_en_f(u32 v)
904{
905 return (v & 0x1U) << 0U;
906}
907static inline u32 pwr_pmu_idle_intr_en_disabled_v(void)
908{
909 return 0x00000000U;
910}
911static inline u32 pwr_pmu_idle_intr_en_enabled_v(void)
912{
913 return 0x00000001U;
914}
915static inline u32 pwr_pmu_idle_intr_status_r(void)
916{
917 return 0x0010a9ecU;
918}
919static inline u32 pwr_pmu_idle_intr_status_intr_f(u32 v)
920{
921 return (v & 0x1U) << 0U;
922}
923static inline u32 pwr_pmu_idle_intr_status_intr_m(void)
924{
925 return 0x1U << 0U;
926}
927static inline u32 pwr_pmu_idle_intr_status_intr_v(u32 r)
928{
929 return (r >> 0U) & 0x1U;
930}
931static inline u32 pwr_pmu_idle_intr_status_intr_pending_v(void)
932{
933 return 0x00000001U;
934}
935static inline u32 pwr_pmu_idle_intr_status_intr_clear_v(void)
936{
937 return 0x00000001U;
938}
939static inline u32 pwr_pmu_idle_mask_supp_r(u32 i)
940{
941 return 0x0010a9f0U + i*8U;
942}
943static inline u32 pwr_pmu_idle_mask_1_supp_r(u32 i)
944{
945 return 0x0010a9f4U + i*8U;
946}
947static inline u32 pwr_pmu_idle_mask_2_supp_r(u32 i)
948{
949 return 0x0010a690U + i*4U;
950}
951static inline u32 pwr_pmu_idle_ctrl_supp_r(u32 i)
952{
953 return 0x0010aa30U + i*8U;
954}
955static inline u32 pwr_pmu_debug_r(u32 i)
956{
957 return 0x0010a5c0U + i*4U;
958}
959static inline u32 pwr_pmu_debug__size_1_v(void)
960{
961 return 0x00000004U;
962}
963static inline u32 pwr_pmu_mailbox_r(u32 i)
964{
965 return 0x0010a450U + i*4U;
966}
967static inline u32 pwr_pmu_mailbox__size_1_v(void)
968{
969 return 0x0000000cU;
970}
971static inline u32 pwr_pmu_bar0_addr_r(void)
972{
973 return 0x0010a7a0U;
974}
975static inline u32 pwr_pmu_bar0_data_r(void)
976{
977 return 0x0010a7a4U;
978}
979static inline u32 pwr_pmu_bar0_ctl_r(void)
980{
981 return 0x0010a7acU;
982}
983static inline u32 pwr_pmu_bar0_timeout_r(void)
984{
985 return 0x0010a7a8U;
986}
987static inline u32 pwr_pmu_bar0_fecs_error_r(void)
988{
989 return 0x0010a988U;
990}
991static inline u32 pwr_pmu_bar0_error_status_r(void)
992{
993 return 0x0010a7b0U;
994}
995static inline u32 pwr_pmu_pg_idlefilth_r(u32 i)
996{
997 return 0x0010a6c0U + i*4U;
998}
999static inline u32 pwr_pmu_pg_ppuidlefilth_r(u32 i)
1000{
1001 return 0x0010a6e8U + i*4U;
1002}
1003static inline u32 pwr_pmu_pg_idle_cnt_r(u32 i)
1004{
1005 return 0x0010a710U + i*4U;
1006}
1007static inline u32 pwr_pmu_pg_intren_r(u32 i)
1008{
1009 return 0x0010a760U + i*4U;
1010}
1011static inline u32 pwr_pmu_falcon_ecc_status_r(void)
1012{
1013 return 0x0010a6b0U;
1014}
1015static inline u32 pwr_pmu_falcon_ecc_status_corrected_err_imem_f(u32 v)
1016{
1017 return (v & 0x1U) << 0U;
1018}
1019static inline u32 pwr_pmu_falcon_ecc_status_corrected_err_imem_m(void)
1020{
1021 return 0x1U << 0U;
1022}
1023static inline u32 pwr_pmu_falcon_ecc_status_corrected_err_dmem_f(u32 v)
1024{
1025 return (v & 0x1U) << 1U;
1026}
1027static inline u32 pwr_pmu_falcon_ecc_status_corrected_err_dmem_m(void)
1028{
1029 return 0x1U << 1U;
1030}
1031static inline u32 pwr_pmu_falcon_ecc_status_uncorrected_err_imem_f(u32 v)
1032{
1033 return (v & 0x1U) << 8U;
1034}
1035static inline u32 pwr_pmu_falcon_ecc_status_uncorrected_err_imem_m(void)
1036{
1037 return 0x1U << 8U;
1038}
1039static inline u32 pwr_pmu_falcon_ecc_status_uncorrected_err_dmem_f(u32 v)
1040{
1041 return (v & 0x1U) << 9U;
1042}
1043static inline u32 pwr_pmu_falcon_ecc_status_uncorrected_err_dmem_m(void)
1044{
1045 return 0x1U << 9U;
1046}
1047static inline u32 pwr_pmu_falcon_ecc_status_corrected_err_total_counter_overflow_f(u32 v)
1048{
1049 return (v & 0x1U) << 16U;
1050}
1051static inline u32 pwr_pmu_falcon_ecc_status_corrected_err_total_counter_overflow_m(void)
1052{
1053 return 0x1U << 16U;
1054}
1055static inline u32 pwr_pmu_falcon_ecc_status_uncorrected_err_total_counter_overflow_f(u32 v)
1056{
1057 return (v & 0x1U) << 18U;
1058}
1059static inline u32 pwr_pmu_falcon_ecc_status_uncorrected_err_total_counter_overflow_m(void)
1060{
1061 return 0x1U << 18U;
1062}
1063static inline u32 pwr_pmu_falcon_ecc_status_reset_f(u32 v)
1064{
1065 return (v & 0x1U) << 31U;
1066}
1067static inline u32 pwr_pmu_falcon_ecc_status_reset_task_f(void)
1068{
1069 return 0x80000000U;
1070}
1071static inline u32 pwr_pmu_falcon_ecc_address_r(void)
1072{
1073 return 0x0010a6b4U;
1074}
1075static inline u32 pwr_pmu_falcon_ecc_address_index_f(u32 v)
1076{
1077 return (v & 0xffffffU) << 0U;
1078}
1079static inline u32 pwr_pmu_falcon_ecc_address_type_f(u32 v)
1080{
1081 return (v & 0xfU) << 20U;
1082}
1083static inline u32 pwr_pmu_falcon_ecc_address_type_imem_f(void)
1084{
1085 return 0x0U;
1086}
1087static inline u32 pwr_pmu_falcon_ecc_address_type_dmem_f(void)
1088{
1089 return 0x100000U;
1090}
1091static inline u32 pwr_pmu_falcon_ecc_address_row_address_s(void)
1092{
1093 return 16U;
1094}
1095static inline u32 pwr_pmu_falcon_ecc_address_row_address_f(u32 v)
1096{
1097 return (v & 0xffffU) << 0U;
1098}
1099static inline u32 pwr_pmu_falcon_ecc_address_row_address_m(void)
1100{
1101 return 0xffffU << 0U;
1102}
1103static inline u32 pwr_pmu_falcon_ecc_address_row_address_v(u32 r)
1104{
1105 return (r >> 0U) & 0xffffU;
1106}
1107static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_r(void)
1108{
1109 return 0x0010a6b8U;
1110}
1111static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_total_s(void)
1112{
1113 return 16U;
1114}
1115static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_total_f(u32 v)
1116{
1117 return (v & 0xffffU) << 0U;
1118}
1119static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_total_m(void)
1120{
1121 return 0xffffU << 0U;
1122}
1123static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_total_v(u32 r)
1124{
1125 return (r >> 0U) & 0xffffU;
1126}
1127static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_unique_total_s(void)
1128{
1129 return 16U;
1130}
1131static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_unique_total_f(u32 v)
1132{
1133 return (v & 0xffffU) << 16U;
1134}
1135static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_unique_total_m(void)
1136{
1137 return 0xffffU << 16U;
1138}
1139static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_unique_total_v(u32 r)
1140{
1141 return (r >> 16U) & 0xffffU;
1142}
1143static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_r(void)
1144{
1145 return 0x0010a6bcU;
1146}
1147static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_total_s(void)
1148{
1149 return 16U;
1150}
1151static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_total_f(u32 v)
1152{
1153 return (v & 0xffffU) << 0U;
1154}
1155static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_total_m(void)
1156{
1157 return 0xffffU << 0U;
1158}
1159static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_total_v(u32 r)
1160{
1161 return (r >> 0U) & 0xffffU;
1162}
1163static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_unique_total_s(void)
1164{
1165 return 16U;
1166}
1167static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_unique_total_f(u32 v)
1168{
1169 return (v & 0xffffU) << 16U;
1170}
1171static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_unique_total_m(void)
1172{
1173 return 0xffffU << 16U;
1174}
1175static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_unique_total_v(u32 r)
1176{
1177 return (r >> 16U) & 0xffffU;
1178}
1179static inline u32 pwr_fbif_transcfg_r(u32 i)
1180{
1181 return 0x0010ae00U + i*4U;
1182}
1183static inline u32 pwr_fbif_transcfg_target_local_fb_f(void)
1184{
1185 return 0x0U;
1186}
1187static inline u32 pwr_fbif_transcfg_target_coherent_sysmem_f(void)
1188{
1189 return 0x1U;
1190}
1191static inline u32 pwr_fbif_transcfg_target_noncoherent_sysmem_f(void)
1192{
1193 return 0x2U;
1194}
1195static inline u32 pwr_fbif_transcfg_mem_type_s(void)
1196{
1197 return 1U;
1198}
1199static inline u32 pwr_fbif_transcfg_mem_type_f(u32 v)
1200{
1201 return (v & 0x1U) << 2U;
1202}
1203static inline u32 pwr_fbif_transcfg_mem_type_m(void)
1204{
1205 return 0x1U << 2U;
1206}
1207static inline u32 pwr_fbif_transcfg_mem_type_v(u32 r)
1208{
1209 return (r >> 2U) & 0x1U;
1210}
1211static inline u32 pwr_fbif_transcfg_mem_type_virtual_f(void)
1212{
1213 return 0x0U;
1214}
1215static inline u32 pwr_fbif_transcfg_mem_type_physical_f(void)
1216{
1217 return 0x4U;
1218}
1219#endif
diff --git a/include/nvgpu/hw/gv11b/hw_ram_gv11b.h b/include/nvgpu/hw/gv11b/hw_ram_gv11b.h
new file mode 100644
index 0000000..59c6d88
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_ram_gv11b.h
@@ -0,0 +1,791 @@
1/*
2 * Copyright (c) 2016-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_ram_gv11b_h_
57#define _hw_ram_gv11b_h_
58
59static inline u32 ram_in_ramfc_s(void)
60{
61 return 4096U;
62}
63static inline u32 ram_in_ramfc_w(void)
64{
65 return 0U;
66}
67static inline u32 ram_in_page_dir_base_target_f(u32 v)
68{
69 return (v & 0x3U) << 0U;
70}
71static inline u32 ram_in_page_dir_base_target_w(void)
72{
73 return 128U;
74}
75static inline u32 ram_in_page_dir_base_target_vid_mem_f(void)
76{
77 return 0x0U;
78}
79static inline u32 ram_in_page_dir_base_target_sys_mem_coh_f(void)
80{
81 return 0x2U;
82}
83static inline u32 ram_in_page_dir_base_target_sys_mem_ncoh_f(void)
84{
85 return 0x3U;
86}
87static inline u32 ram_in_page_dir_base_vol_w(void)
88{
89 return 128U;
90}
91static inline u32 ram_in_page_dir_base_vol_true_f(void)
92{
93 return 0x4U;
94}
95static inline u32 ram_in_page_dir_base_vol_false_f(void)
96{
97 return 0x0U;
98}
99static inline u32 ram_in_page_dir_base_fault_replay_tex_f(u32 v)
100{
101 return (v & 0x1U) << 4U;
102}
103static inline u32 ram_in_page_dir_base_fault_replay_tex_m(void)
104{
105 return 0x1U << 4U;
106}
107static inline u32 ram_in_page_dir_base_fault_replay_tex_w(void)
108{
109 return 128U;
110}
111static inline u32 ram_in_page_dir_base_fault_replay_tex_true_f(void)
112{
113 return 0x10U;
114}
115static inline u32 ram_in_page_dir_base_fault_replay_gcc_f(u32 v)
116{
117 return (v & 0x1U) << 5U;
118}
119static inline u32 ram_in_page_dir_base_fault_replay_gcc_m(void)
120{
121 return 0x1U << 5U;
122}
123static inline u32 ram_in_page_dir_base_fault_replay_gcc_w(void)
124{
125 return 128U;
126}
127static inline u32 ram_in_page_dir_base_fault_replay_gcc_true_f(void)
128{
129 return 0x20U;
130}
131static inline u32 ram_in_use_ver2_pt_format_f(u32 v)
132{
133 return (v & 0x1U) << 10U;
134}
135static inline u32 ram_in_use_ver2_pt_format_m(void)
136{
137 return 0x1U << 10U;
138}
139static inline u32 ram_in_use_ver2_pt_format_w(void)
140{
141 return 128U;
142}
143static inline u32 ram_in_use_ver2_pt_format_true_f(void)
144{
145 return 0x400U;
146}
147static inline u32 ram_in_use_ver2_pt_format_false_f(void)
148{
149 return 0x0U;
150}
151static inline u32 ram_in_big_page_size_f(u32 v)
152{
153 return (v & 0x1U) << 11U;
154}
155static inline u32 ram_in_big_page_size_m(void)
156{
157 return 0x1U << 11U;
158}
159static inline u32 ram_in_big_page_size_w(void)
160{
161 return 128U;
162}
163static inline u32 ram_in_big_page_size_128kb_f(void)
164{
165 return 0x0U;
166}
167static inline u32 ram_in_big_page_size_64kb_f(void)
168{
169 return 0x800U;
170}
171static inline u32 ram_in_page_dir_base_lo_f(u32 v)
172{
173 return (v & 0xfffffU) << 12U;
174}
175static inline u32 ram_in_page_dir_base_lo_w(void)
176{
177 return 128U;
178}
179static inline u32 ram_in_page_dir_base_hi_f(u32 v)
180{
181 return (v & 0xffffffffU) << 0U;
182}
183static inline u32 ram_in_page_dir_base_hi_w(void)
184{
185 return 129U;
186}
187static inline u32 ram_in_engine_cs_w(void)
188{
189 return 132U;
190}
191static inline u32 ram_in_engine_cs_wfi_v(void)
192{
193 return 0x00000000U;
194}
195static inline u32 ram_in_engine_cs_wfi_f(void)
196{
197 return 0x0U;
198}
199static inline u32 ram_in_engine_cs_fg_v(void)
200{
201 return 0x00000001U;
202}
203static inline u32 ram_in_engine_cs_fg_f(void)
204{
205 return 0x8U;
206}
207static inline u32 ram_in_engine_wfi_mode_f(u32 v)
208{
209 return (v & 0x1U) << 2U;
210}
211static inline u32 ram_in_engine_wfi_mode_w(void)
212{
213 return 132U;
214}
215static inline u32 ram_in_engine_wfi_mode_physical_v(void)
216{
217 return 0x00000000U;
218}
219static inline u32 ram_in_engine_wfi_mode_virtual_v(void)
220{
221 return 0x00000001U;
222}
223static inline u32 ram_in_engine_wfi_target_f(u32 v)
224{
225 return (v & 0x3U) << 0U;
226}
227static inline u32 ram_in_engine_wfi_target_w(void)
228{
229 return 132U;
230}
231static inline u32 ram_in_engine_wfi_target_sys_mem_coh_v(void)
232{
233 return 0x00000002U;
234}
235static inline u32 ram_in_engine_wfi_target_sys_mem_ncoh_v(void)
236{
237 return 0x00000003U;
238}
239static inline u32 ram_in_engine_wfi_target_local_mem_v(void)
240{
241 return 0x00000000U;
242}
243static inline u32 ram_in_engine_wfi_ptr_lo_f(u32 v)
244{
245 return (v & 0xfffffU) << 12U;
246}
247static inline u32 ram_in_engine_wfi_ptr_lo_w(void)
248{
249 return 132U;
250}
251static inline u32 ram_in_engine_wfi_ptr_hi_f(u32 v)
252{
253 return (v & 0xffU) << 0U;
254}
255static inline u32 ram_in_engine_wfi_ptr_hi_w(void)
256{
257 return 133U;
258}
259static inline u32 ram_in_engine_wfi_veid_f(u32 v)
260{
261 return (v & 0x3fU) << 0U;
262}
263static inline u32 ram_in_engine_wfi_veid_w(void)
264{
265 return 134U;
266}
267static inline u32 ram_in_eng_method_buffer_addr_lo_f(u32 v)
268{
269 return (v & 0xffffffffU) << 0U;
270}
271static inline u32 ram_in_eng_method_buffer_addr_lo_w(void)
272{
273 return 136U;
274}
275static inline u32 ram_in_eng_method_buffer_addr_hi_f(u32 v)
276{
277 return (v & 0x1ffffU) << 0U;
278}
279static inline u32 ram_in_eng_method_buffer_addr_hi_w(void)
280{
281 return 137U;
282}
283static inline u32 ram_in_sc_page_dir_base_target_f(u32 v, u32 i)
284{
285 return (v & 0x3U) << (0U + i*0U);
286}
287static inline u32 ram_in_sc_page_dir_base_target__size_1_v(void)
288{
289 return 0x00000040U;
290}
291static inline u32 ram_in_sc_page_dir_base_target_vid_mem_v(void)
292{
293 return 0x00000000U;
294}
295static inline u32 ram_in_sc_page_dir_base_target_invalid_v(void)
296{
297 return 0x00000001U;
298}
299static inline u32 ram_in_sc_page_dir_base_target_sys_mem_coh_v(void)
300{
301 return 0x00000002U;
302}
303static inline u32 ram_in_sc_page_dir_base_target_sys_mem_ncoh_v(void)
304{
305 return 0x00000003U;
306}
307static inline u32 ram_in_sc_page_dir_base_vol_f(u32 v, u32 i)
308{
309 return (v & 0x1U) << (2U + i*0U);
310}
311static inline u32 ram_in_sc_page_dir_base_vol__size_1_v(void)
312{
313 return 0x00000040U;
314}
315static inline u32 ram_in_sc_page_dir_base_vol_true_v(void)
316{
317 return 0x00000001U;
318}
319static inline u32 ram_in_sc_page_dir_base_vol_false_v(void)
320{
321 return 0x00000000U;
322}
323static inline u32 ram_in_sc_page_dir_base_fault_replay_tex_f(u32 v, u32 i)
324{
325 return (v & 0x1U) << (4U + i*0U);
326}
327static inline u32 ram_in_sc_page_dir_base_fault_replay_tex__size_1_v(void)
328{
329 return 0x00000040U;
330}
331static inline u32 ram_in_sc_page_dir_base_fault_replay_tex_enabled_v(void)
332{
333 return 0x00000001U;
334}
335static inline u32 ram_in_sc_page_dir_base_fault_replay_tex_disabled_v(void)
336{
337 return 0x00000000U;
338}
339static inline u32 ram_in_sc_page_dir_base_fault_replay_gcc_f(u32 v, u32 i)
340{
341 return (v & 0x1U) << (5U + i*0U);
342}
343static inline u32 ram_in_sc_page_dir_base_fault_replay_gcc__size_1_v(void)
344{
345 return 0x00000040U;
346}
347static inline u32 ram_in_sc_page_dir_base_fault_replay_gcc_enabled_v(void)
348{
349 return 0x00000001U;
350}
351static inline u32 ram_in_sc_page_dir_base_fault_replay_gcc_disabled_v(void)
352{
353 return 0x00000000U;
354}
355static inline u32 ram_in_sc_use_ver2_pt_format_f(u32 v, u32 i)
356{
357 return (v & 0x1U) << (10U + i*0U);
358}
359static inline u32 ram_in_sc_use_ver2_pt_format__size_1_v(void)
360{
361 return 0x00000040U;
362}
363static inline u32 ram_in_sc_use_ver2_pt_format_false_v(void)
364{
365 return 0x00000000U;
366}
367static inline u32 ram_in_sc_use_ver2_pt_format_true_v(void)
368{
369 return 0x00000001U;
370}
371static inline u32 ram_in_sc_big_page_size_f(u32 v, u32 i)
372{
373 return (v & 0x1U) << (11U + i*0U);
374}
375static inline u32 ram_in_sc_big_page_size__size_1_v(void)
376{
377 return 0x00000040U;
378}
379static inline u32 ram_in_sc_big_page_size_64kb_v(void)
380{
381 return 0x00000001U;
382}
383static inline u32 ram_in_sc_page_dir_base_lo_f(u32 v, u32 i)
384{
385 return (v & 0xfffffU) << (12U + i*0U);
386}
387static inline u32 ram_in_sc_page_dir_base_lo__size_1_v(void)
388{
389 return 0x00000040U;
390}
391static inline u32 ram_in_sc_page_dir_base_hi_f(u32 v, u32 i)
392{
393 return (v & 0xffffffffU) << (0U + i*0U);
394}
395static inline u32 ram_in_sc_page_dir_base_hi__size_1_v(void)
396{
397 return 0x00000040U;
398}
399static inline u32 ram_in_sc_page_dir_base_target_0_f(u32 v)
400{
401 return (v & 0x3U) << 0U;
402}
403static inline u32 ram_in_sc_page_dir_base_target_0_w(void)
404{
405 return 168U;
406}
407static inline u32 ram_in_sc_page_dir_base_vol_0_f(u32 v)
408{
409 return (v & 0x1U) << 2U;
410}
411static inline u32 ram_in_sc_page_dir_base_vol_0_w(void)
412{
413 return 168U;
414}
415static inline u32 ram_in_sc_page_dir_base_fault_replay_tex_0_f(u32 v)
416{
417 return (v & 0x1U) << 4U;
418}
419static inline u32 ram_in_sc_page_dir_base_fault_replay_tex_0_w(void)
420{
421 return 168U;
422}
423static inline u32 ram_in_sc_page_dir_base_fault_replay_gcc_0_f(u32 v)
424{
425 return (v & 0x1U) << 5U;
426}
427static inline u32 ram_in_sc_page_dir_base_fault_replay_gcc_0_w(void)
428{
429 return 168U;
430}
431static inline u32 ram_in_sc_use_ver2_pt_format_0_f(u32 v)
432{
433 return (v & 0x1U) << 10U;
434}
435static inline u32 ram_in_sc_use_ver2_pt_format_0_w(void)
436{
437 return 168U;
438}
439static inline u32 ram_in_sc_big_page_size_0_f(u32 v)
440{
441 return (v & 0x1U) << 11U;
442}
443static inline u32 ram_in_sc_big_page_size_0_w(void)
444{
445 return 168U;
446}
447static inline u32 ram_in_sc_page_dir_base_lo_0_f(u32 v)
448{
449 return (v & 0xfffffU) << 12U;
450}
451static inline u32 ram_in_sc_page_dir_base_lo_0_w(void)
452{
453 return 168U;
454}
455static inline u32 ram_in_sc_page_dir_base_hi_0_f(u32 v)
456{
457 return (v & 0xffffffffU) << 0U;
458}
459static inline u32 ram_in_sc_page_dir_base_hi_0_w(void)
460{
461 return 169U;
462}
463static inline u32 ram_in_base_shift_v(void)
464{
465 return 0x0000000cU;
466}
467static inline u32 ram_in_alloc_size_v(void)
468{
469 return 0x00001000U;
470}
471static inline u32 ram_fc_size_val_v(void)
472{
473 return 0x00000200U;
474}
475static inline u32 ram_fc_gp_put_w(void)
476{
477 return 0U;
478}
479static inline u32 ram_fc_userd_w(void)
480{
481 return 2U;
482}
483static inline u32 ram_fc_userd_hi_w(void)
484{
485 return 3U;
486}
487static inline u32 ram_fc_signature_w(void)
488{
489 return 4U;
490}
491static inline u32 ram_fc_gp_get_w(void)
492{
493 return 5U;
494}
495static inline u32 ram_fc_pb_get_w(void)
496{
497 return 6U;
498}
499static inline u32 ram_fc_pb_get_hi_w(void)
500{
501 return 7U;
502}
503static inline u32 ram_fc_pb_top_level_get_w(void)
504{
505 return 8U;
506}
507static inline u32 ram_fc_pb_top_level_get_hi_w(void)
508{
509 return 9U;
510}
511static inline u32 ram_fc_acquire_w(void)
512{
513 return 12U;
514}
515static inline u32 ram_fc_sem_addr_hi_w(void)
516{
517 return 14U;
518}
519static inline u32 ram_fc_sem_addr_lo_w(void)
520{
521 return 15U;
522}
523static inline u32 ram_fc_sem_payload_lo_w(void)
524{
525 return 16U;
526}
527static inline u32 ram_fc_sem_payload_hi_w(void)
528{
529 return 39U;
530}
531static inline u32 ram_fc_sem_execute_w(void)
532{
533 return 17U;
534}
535static inline u32 ram_fc_gp_base_w(void)
536{
537 return 18U;
538}
539static inline u32 ram_fc_gp_base_hi_w(void)
540{
541 return 19U;
542}
543static inline u32 ram_fc_gp_fetch_w(void)
544{
545 return 20U;
546}
547static inline u32 ram_fc_pb_fetch_w(void)
548{
549 return 21U;
550}
551static inline u32 ram_fc_pb_fetch_hi_w(void)
552{
553 return 22U;
554}
555static inline u32 ram_fc_pb_put_w(void)
556{
557 return 23U;
558}
559static inline u32 ram_fc_pb_put_hi_w(void)
560{
561 return 24U;
562}
563static inline u32 ram_fc_pb_header_w(void)
564{
565 return 33U;
566}
567static inline u32 ram_fc_pb_count_w(void)
568{
569 return 34U;
570}
571static inline u32 ram_fc_subdevice_w(void)
572{
573 return 37U;
574}
575static inline u32 ram_fc_target_w(void)
576{
577 return 43U;
578}
579static inline u32 ram_fc_hce_ctrl_w(void)
580{
581 return 57U;
582}
583static inline u32 ram_fc_chid_w(void)
584{
585 return 58U;
586}
587static inline u32 ram_fc_chid_id_f(u32 v)
588{
589 return (v & 0xfffU) << 0U;
590}
591static inline u32 ram_fc_chid_id_w(void)
592{
593 return 0U;
594}
595static inline u32 ram_fc_config_w(void)
596{
597 return 61U;
598}
599static inline u32 ram_fc_runlist_timeslice_w(void)
600{
601 return 62U;
602}
603static inline u32 ram_fc_set_channel_info_w(void)
604{
605 return 63U;
606}
607static inline u32 ram_userd_base_shift_v(void)
608{
609 return 0x00000009U;
610}
611static inline u32 ram_userd_chan_size_v(void)
612{
613 return 0x00000200U;
614}
615static inline u32 ram_userd_put_w(void)
616{
617 return 16U;
618}
619static inline u32 ram_userd_get_w(void)
620{
621 return 17U;
622}
623static inline u32 ram_userd_ref_w(void)
624{
625 return 18U;
626}
627static inline u32 ram_userd_put_hi_w(void)
628{
629 return 19U;
630}
631static inline u32 ram_userd_ref_threshold_w(void)
632{
633 return 20U;
634}
635static inline u32 ram_userd_top_level_get_w(void)
636{
637 return 22U;
638}
639static inline u32 ram_userd_top_level_get_hi_w(void)
640{
641 return 23U;
642}
643static inline u32 ram_userd_get_hi_w(void)
644{
645 return 24U;
646}
647static inline u32 ram_userd_gp_get_w(void)
648{
649 return 34U;
650}
651static inline u32 ram_userd_gp_put_w(void)
652{
653 return 35U;
654}
655static inline u32 ram_userd_gp_top_level_get_w(void)
656{
657 return 22U;
658}
659static inline u32 ram_userd_gp_top_level_get_hi_w(void)
660{
661 return 23U;
662}
663static inline u32 ram_rl_entry_size_v(void)
664{
665 return 0x00000010U;
666}
667static inline u32 ram_rl_entry_type_f(u32 v)
668{
669 return (v & 0x1U) << 0U;
670}
671static inline u32 ram_rl_entry_type_channel_v(void)
672{
673 return 0x00000000U;
674}
675static inline u32 ram_rl_entry_type_tsg_v(void)
676{
677 return 0x00000001U;
678}
679static inline u32 ram_rl_entry_id_f(u32 v)
680{
681 return (v & 0xfffU) << 0U;
682}
683static inline u32 ram_rl_entry_chan_runqueue_selector_f(u32 v)
684{
685 return (v & 0x1U) << 1U;
686}
687static inline u32 ram_rl_entry_chan_inst_target_f(u32 v)
688{
689 return (v & 0x3U) << 4U;
690}
691static inline u32 ram_rl_entry_chan_inst_target_sys_mem_ncoh_v(void)
692{
693 return 0x00000003U;
694}
695static inline u32 ram_rl_entry_chan_inst_target_sys_mem_coh_v(void)
696{
697 return 0x00000002U;
698}
699static inline u32 ram_rl_entry_chan_inst_target_vid_mem_v(void)
700{
701 return 0x00000000U;
702}
703static inline u32 ram_rl_entry_chan_userd_target_f(u32 v)
704{
705 return (v & 0x3U) << 6U;
706}
707static inline u32 ram_rl_entry_chan_userd_target_vid_mem_v(void)
708{
709 return 0x00000000U;
710}
711static inline u32 ram_rl_entry_chan_userd_target_vid_mem_nvlink_coh_v(void)
712{
713 return 0x00000001U;
714}
715static inline u32 ram_rl_entry_chan_userd_target_sys_mem_coh_v(void)
716{
717 return 0x00000002U;
718}
719static inline u32 ram_rl_entry_chan_userd_target_sys_mem_ncoh_v(void)
720{
721 return 0x00000003U;
722}
723static inline u32 ram_rl_entry_chan_userd_ptr_lo_f(u32 v)
724{
725 return (v & 0xffffffU) << 8U;
726}
727static inline u32 ram_rl_entry_chan_userd_ptr_hi_f(u32 v)
728{
729 return (v & 0xffffffffU) << 0U;
730}
731static inline u32 ram_rl_entry_chid_f(u32 v)
732{
733 return (v & 0xfffU) << 0U;
734}
735static inline u32 ram_rl_entry_chan_inst_ptr_lo_f(u32 v)
736{
737 return (v & 0xfffffU) << 12U;
738}
739static inline u32 ram_rl_entry_chan_inst_ptr_hi_f(u32 v)
740{
741 return (v & 0xffffffffU) << 0U;
742}
743static inline u32 ram_rl_entry_tsg_timeslice_scale_f(u32 v)
744{
745 return (v & 0xfU) << 16U;
746}
747static inline u32 ram_rl_entry_tsg_timeslice_scale_3_v(void)
748{
749 return 0x00000003U;
750}
751static inline u32 ram_rl_entry_tsg_timeslice_timeout_f(u32 v)
752{
753 return (v & 0xffU) << 24U;
754}
755static inline u32 ram_rl_entry_tsg_timeslice_timeout_128_v(void)
756{
757 return 0x00000080U;
758}
759static inline u32 ram_rl_entry_tsg_length_f(u32 v)
760{
761 return (v & 0xffU) << 0U;
762}
763static inline u32 ram_rl_entry_tsg_length_init_v(void)
764{
765 return 0x00000000U;
766}
767static inline u32 ram_rl_entry_tsg_length_min_v(void)
768{
769 return 0x00000001U;
770}
771static inline u32 ram_rl_entry_tsg_length_max_v(void)
772{
773 return 0x00000080U;
774}
775static inline u32 ram_rl_entry_tsg_tsgid_f(u32 v)
776{
777 return (v & 0xfffU) << 0U;
778}
779static inline u32 ram_rl_entry_chan_userd_ptr_align_shift_v(void)
780{
781 return 0x00000008U;
782}
783static inline u32 ram_rl_entry_chan_userd_align_shift_v(void)
784{
785 return 0x00000008U;
786}
787static inline u32 ram_rl_entry_chan_inst_ptr_align_shift_v(void)
788{
789 return 0x0000000cU;
790}
791#endif
diff --git a/include/nvgpu/hw/gv11b/hw_therm_gv11b.h b/include/nvgpu/hw/gv11b/hw_therm_gv11b.h
new file mode 100644
index 0000000..0050083
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_therm_gv11b.h
@@ -0,0 +1,487 @@
1/*
2 * Copyright (c) 2016-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_therm_gv11b_h_
57#define _hw_therm_gv11b_h_
58
59static inline u32 therm_use_a_r(void)
60{
61 return 0x00020798U;
62}
63static inline u32 therm_use_a_ext_therm_0_enable_f(void)
64{
65 return 0x1U;
66}
67static inline u32 therm_use_a_ext_therm_1_enable_f(void)
68{
69 return 0x2U;
70}
71static inline u32 therm_use_a_ext_therm_2_enable_f(void)
72{
73 return 0x4U;
74}
75static inline u32 therm_evt_ext_therm_0_r(void)
76{
77 return 0x00020700U;
78}
79static inline u32 therm_evt_ext_therm_0_slow_factor_f(u32 v)
80{
81 return (v & 0x3fU) << 24U;
82}
83static inline u32 therm_evt_ext_therm_0_slow_factor_init_v(void)
84{
85 return 0x00000001U;
86}
87static inline u32 therm_evt_ext_therm_0_mode_f(u32 v)
88{
89 return (v & 0x3U) << 30U;
90}
91static inline u32 therm_evt_ext_therm_0_mode_normal_v(void)
92{
93 return 0x00000000U;
94}
95static inline u32 therm_evt_ext_therm_0_mode_inverted_v(void)
96{
97 return 0x00000001U;
98}
99static inline u32 therm_evt_ext_therm_0_mode_forced_v(void)
100{
101 return 0x00000002U;
102}
103static inline u32 therm_evt_ext_therm_0_mode_cleared_v(void)
104{
105 return 0x00000003U;
106}
107static inline u32 therm_evt_ext_therm_1_r(void)
108{
109 return 0x00020704U;
110}
111static inline u32 therm_evt_ext_therm_1_slow_factor_f(u32 v)
112{
113 return (v & 0x3fU) << 24U;
114}
115static inline u32 therm_evt_ext_therm_1_slow_factor_init_v(void)
116{
117 return 0x00000002U;
118}
119static inline u32 therm_evt_ext_therm_1_mode_f(u32 v)
120{
121 return (v & 0x3U) << 30U;
122}
123static inline u32 therm_evt_ext_therm_1_mode_normal_v(void)
124{
125 return 0x00000000U;
126}
127static inline u32 therm_evt_ext_therm_1_mode_inverted_v(void)
128{
129 return 0x00000001U;
130}
131static inline u32 therm_evt_ext_therm_1_mode_forced_v(void)
132{
133 return 0x00000002U;
134}
135static inline u32 therm_evt_ext_therm_1_mode_cleared_v(void)
136{
137 return 0x00000003U;
138}
139static inline u32 therm_evt_ext_therm_2_r(void)
140{
141 return 0x00020708U;
142}
143static inline u32 therm_evt_ext_therm_2_slow_factor_f(u32 v)
144{
145 return (v & 0x3fU) << 24U;
146}
147static inline u32 therm_evt_ext_therm_2_slow_factor_init_v(void)
148{
149 return 0x00000003U;
150}
151static inline u32 therm_evt_ext_therm_2_mode_f(u32 v)
152{
153 return (v & 0x3U) << 30U;
154}
155static inline u32 therm_evt_ext_therm_2_mode_normal_v(void)
156{
157 return 0x00000000U;
158}
159static inline u32 therm_evt_ext_therm_2_mode_inverted_v(void)
160{
161 return 0x00000001U;
162}
163static inline u32 therm_evt_ext_therm_2_mode_forced_v(void)
164{
165 return 0x00000002U;
166}
167static inline u32 therm_evt_ext_therm_2_mode_cleared_v(void)
168{
169 return 0x00000003U;
170}
171static inline u32 therm_weight_1_r(void)
172{
173 return 0x00020024U;
174}
175static inline u32 therm_config1_r(void)
176{
177 return 0x00020050U;
178}
179static inline u32 therm_config2_r(void)
180{
181 return 0x00020130U;
182}
183static inline u32 therm_config2_grad_step_duration_f(u32 v)
184{
185 return (v & 0xfU) << 8U;
186}
187static inline u32 therm_config2_grad_step_duration_m(void)
188{
189 return 0xfU << 8U;
190}
191static inline u32 therm_config2_slowdown_factor_extended_f(u32 v)
192{
193 return (v & 0x1U) << 24U;
194}
195static inline u32 therm_config2_grad_enable_f(u32 v)
196{
197 return (v & 0x1U) << 31U;
198}
199static inline u32 therm_gate_ctrl_r(u32 i)
200{
201 return 0x00020200U + i*4U;
202}
203static inline u32 therm_gate_ctrl_eng_clk_m(void)
204{
205 return 0x3U << 0U;
206}
207static inline u32 therm_gate_ctrl_eng_clk_run_f(void)
208{
209 return 0x0U;
210}
211static inline u32 therm_gate_ctrl_eng_clk_auto_f(void)
212{
213 return 0x1U;
214}
215static inline u32 therm_gate_ctrl_eng_clk_stop_f(void)
216{
217 return 0x2U;
218}
219static inline u32 therm_gate_ctrl_blk_clk_m(void)
220{
221 return 0x3U << 2U;
222}
223static inline u32 therm_gate_ctrl_blk_clk_run_f(void)
224{
225 return 0x0U;
226}
227static inline u32 therm_gate_ctrl_blk_clk_auto_f(void)
228{
229 return 0x4U;
230}
231static inline u32 therm_gate_ctrl_idle_holdoff_m(void)
232{
233 return 0x1U << 4U;
234}
235static inline u32 therm_gate_ctrl_idle_holdoff_off_f(void)
236{
237 return 0x0U;
238}
239static inline u32 therm_gate_ctrl_idle_holdoff_on_f(void)
240{
241 return 0x10U;
242}
243static inline u32 therm_gate_ctrl_eng_idle_filt_exp_f(u32 v)
244{
245 return (v & 0x1fU) << 8U;
246}
247static inline u32 therm_gate_ctrl_eng_idle_filt_exp_m(void)
248{
249 return 0x1fU << 8U;
250}
251static inline u32 therm_gate_ctrl_eng_idle_filt_exp__prod_f(void)
252{
253 return 0x200U;
254}
255static inline u32 therm_gate_ctrl_eng_idle_filt_mant_f(u32 v)
256{
257 return (v & 0x7U) << 13U;
258}
259static inline u32 therm_gate_ctrl_eng_idle_filt_mant_m(void)
260{
261 return 0x7U << 13U;
262}
263static inline u32 therm_gate_ctrl_eng_idle_filt_mant__prod_f(void)
264{
265 return 0x2000U;
266}
267static inline u32 therm_gate_ctrl_eng_delay_before_f(u32 v)
268{
269 return (v & 0xfU) << 16U;
270}
271static inline u32 therm_gate_ctrl_eng_delay_before_m(void)
272{
273 return 0xfU << 16U;
274}
275static inline u32 therm_gate_ctrl_eng_delay_before__prod_f(void)
276{
277 return 0x40000U;
278}
279static inline u32 therm_gate_ctrl_eng_delay_after_f(u32 v)
280{
281 return (v & 0xfU) << 20U;
282}
283static inline u32 therm_gate_ctrl_eng_delay_after_m(void)
284{
285 return 0xfU << 20U;
286}
287static inline u32 therm_gate_ctrl_eng_delay_after__prod_f(void)
288{
289 return 0x0U;
290}
291static inline u32 therm_fecs_idle_filter_r(void)
292{
293 return 0x00020288U;
294}
295static inline u32 therm_fecs_idle_filter_value_m(void)
296{
297 return 0xffffffffU << 0U;
298}
299static inline u32 therm_fecs_idle_filter_value__prod_f(void)
300{
301 return 0x0U;
302}
303static inline u32 therm_hubmmu_idle_filter_r(void)
304{
305 return 0x0002028cU;
306}
307static inline u32 therm_hubmmu_idle_filter_value_m(void)
308{
309 return 0xffffffffU << 0U;
310}
311static inline u32 therm_hubmmu_idle_filter_value__prod_f(void)
312{
313 return 0x0U;
314}
315static inline u32 therm_clk_slowdown_r(u32 i)
316{
317 return 0x00020160U + i*4U;
318}
319static inline u32 therm_clk_slowdown_idle_factor_f(u32 v)
320{
321 return (v & 0x3fU) << 16U;
322}
323static inline u32 therm_clk_slowdown_idle_factor_m(void)
324{
325 return 0x3fU << 16U;
326}
327static inline u32 therm_clk_slowdown_idle_factor_v(u32 r)
328{
329 return (r >> 16U) & 0x3fU;
330}
331static inline u32 therm_clk_slowdown_idle_factor_disabled_f(void)
332{
333 return 0x0U;
334}
335static inline u32 therm_clk_slowdown_2_r(u32 i)
336{
337 return 0x000201a0U + i*4U;
338}
339static inline u32 therm_clk_slowdown_2_idle_condition_a_select_f(u32 v)
340{
341 return (v & 0xfU) << 0U;
342}
343static inline u32 therm_clk_slowdown_2_idle_condition_a_type_f(u32 v)
344{
345 return (v & 0x7U) << 4U;
346}
347static inline u32 therm_clk_slowdown_2_idle_condition_a_type_v(u32 r)
348{
349 return (r >> 4U) & 0x7U;
350}
351static inline u32 therm_clk_slowdown_2_idle_condition_a_type_never_f(void)
352{
353 return 0x40U;
354}
355static inline u32 therm_clk_slowdown_2_idle_condition_b_type_f(u32 v)
356{
357 return (v & 0x7U) << 12U;
358}
359static inline u32 therm_clk_slowdown_2_idle_condition_b_type_v(u32 r)
360{
361 return (r >> 12U) & 0x7U;
362}
363static inline u32 therm_clk_slowdown_2_idle_condition_b_type_never_f(void)
364{
365 return 0x4000U;
366}
367static inline u32 therm_grad_stepping_table_r(u32 i)
368{
369 return 0x000202c8U + i*4U;
370}
371static inline u32 therm_grad_stepping_table_slowdown_factor0_f(u32 v)
372{
373 return (v & 0x3fU) << 0U;
374}
375static inline u32 therm_grad_stepping_table_slowdown_factor0_m(void)
376{
377 return 0x3fU << 0U;
378}
379static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by1_f(void)
380{
381 return 0x0U;
382}
383static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by1p5_f(void)
384{
385 return 0x1U;
386}
387static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by2_f(void)
388{
389 return 0x2U;
390}
391static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by4_f(void)
392{
393 return 0x6U;
394}
395static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by8_f(void)
396{
397 return 0xeU;
398}
399static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by16_f(void)
400{
401 return 0x1eU;
402}
403static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by32_f(void)
404{
405 return 0x3eU;
406}
407static inline u32 therm_grad_stepping_table_slowdown_factor1_f(u32 v)
408{
409 return (v & 0x3fU) << 6U;
410}
411static inline u32 therm_grad_stepping_table_slowdown_factor1_m(void)
412{
413 return 0x3fU << 6U;
414}
415static inline u32 therm_grad_stepping_table_slowdown_factor2_f(u32 v)
416{
417 return (v & 0x3fU) << 12U;
418}
419static inline u32 therm_grad_stepping_table_slowdown_factor2_m(void)
420{
421 return 0x3fU << 12U;
422}
423static inline u32 therm_grad_stepping_table_slowdown_factor3_f(u32 v)
424{
425 return (v & 0x3fU) << 18U;
426}
427static inline u32 therm_grad_stepping_table_slowdown_factor3_m(void)
428{
429 return 0x3fU << 18U;
430}
431static inline u32 therm_grad_stepping_table_slowdown_factor4_f(u32 v)
432{
433 return (v & 0x3fU) << 24U;
434}
435static inline u32 therm_grad_stepping_table_slowdown_factor4_m(void)
436{
437 return 0x3fU << 24U;
438}
439static inline u32 therm_grad_stepping0_r(void)
440{
441 return 0x000202c0U;
442}
443static inline u32 therm_grad_stepping0_feature_s(void)
444{
445 return 1U;
446}
447static inline u32 therm_grad_stepping0_feature_f(u32 v)
448{
449 return (v & 0x1U) << 0U;
450}
451static inline u32 therm_grad_stepping0_feature_m(void)
452{
453 return 0x1U << 0U;
454}
455static inline u32 therm_grad_stepping0_feature_v(u32 r)
456{
457 return (r >> 0U) & 0x1U;
458}
459static inline u32 therm_grad_stepping0_feature_enable_f(void)
460{
461 return 0x1U;
462}
463static inline u32 therm_grad_stepping1_r(void)
464{
465 return 0x000202c4U;
466}
467static inline u32 therm_grad_stepping1_pdiv_duration_f(u32 v)
468{
469 return (v & 0x1ffffU) << 0U;
470}
471static inline u32 therm_clk_timing_r(u32 i)
472{
473 return 0x000203c0U + i*4U;
474}
475static inline u32 therm_clk_timing_grad_slowdown_f(u32 v)
476{
477 return (v & 0x1U) << 16U;
478}
479static inline u32 therm_clk_timing_grad_slowdown_m(void)
480{
481 return 0x1U << 16U;
482}
483static inline u32 therm_clk_timing_grad_slowdown_enabled_f(void)
484{
485 return 0x10000U;
486}
487#endif
diff --git a/include/nvgpu/hw/gv11b/hw_timer_gv11b.h b/include/nvgpu/hw/gv11b/hw_timer_gv11b.h
new file mode 100644
index 0000000..34285b3
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_timer_gv11b.h
@@ -0,0 +1,127 @@
1/*
2 * Copyright (c) 2016-2017, 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_timer_gv11b_h_
57#define _hw_timer_gv11b_h_
58
59static inline u32 timer_pri_timeout_r(void)
60{
61 return 0x00009080U;
62}
63static inline u32 timer_pri_timeout_period_f(u32 v)
64{
65 return (v & 0xffffffU) << 0U;
66}
67static inline u32 timer_pri_timeout_period_m(void)
68{
69 return 0xffffffU << 0U;
70}
71static inline u32 timer_pri_timeout_period_v(u32 r)
72{
73 return (r >> 0U) & 0xffffffU;
74}
75static inline u32 timer_pri_timeout_en_f(u32 v)
76{
77 return (v & 0x1U) << 31U;
78}
79static inline u32 timer_pri_timeout_en_m(void)
80{
81 return 0x1U << 31U;
82}
83static inline u32 timer_pri_timeout_en_v(u32 r)
84{
85 return (r >> 31U) & 0x1U;
86}
87static inline u32 timer_pri_timeout_en_en_enabled_f(void)
88{
89 return 0x80000000U;
90}
91static inline u32 timer_pri_timeout_en_en_disabled_f(void)
92{
93 return 0x0U;
94}
95static inline u32 timer_pri_timeout_save_0_r(void)
96{
97 return 0x00009084U;
98}
99static inline u32 timer_pri_timeout_save_0_fecs_tgt_v(u32 r)
100{
101 return (r >> 31U) & 0x1U;
102}
103static inline u32 timer_pri_timeout_save_0_addr_v(u32 r)
104{
105 return (r >> 2U) & 0x3fffffU;
106}
107static inline u32 timer_pri_timeout_save_0_write_v(u32 r)
108{
109 return (r >> 1U) & 0x1U;
110}
111static inline u32 timer_pri_timeout_save_1_r(void)
112{
113 return 0x00009088U;
114}
115static inline u32 timer_pri_timeout_fecs_errcode_r(void)
116{
117 return 0x0000908cU;
118}
119static inline u32 timer_time_0_r(void)
120{
121 return 0x00009400U;
122}
123static inline u32 timer_time_1_r(void)
124{
125 return 0x00009410U;
126}
127#endif
diff --git a/include/nvgpu/hw/gv11b/hw_top_gv11b.h b/include/nvgpu/hw/gv11b/hw_top_gv11b.h
new file mode 100644
index 0000000..89e4aeb
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_top_gv11b.h
@@ -0,0 +1,235 @@
1/*
2 * Copyright (c) 2016-2017, 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_top_gv11b_h_
57#define _hw_top_gv11b_h_
58
59static inline u32 top_num_gpcs_r(void)
60{
61 return 0x00022430U;
62}
63static inline u32 top_num_gpcs_value_v(u32 r)
64{
65 return (r >> 0U) & 0x1fU;
66}
67static inline u32 top_tpc_per_gpc_r(void)
68{
69 return 0x00022434U;
70}
71static inline u32 top_tpc_per_gpc_value_v(u32 r)
72{
73 return (r >> 0U) & 0x1fU;
74}
75static inline u32 top_num_fbps_r(void)
76{
77 return 0x00022438U;
78}
79static inline u32 top_num_fbps_value_v(u32 r)
80{
81 return (r >> 0U) & 0x1fU;
82}
83static inline u32 top_ltc_per_fbp_r(void)
84{
85 return 0x00022450U;
86}
87static inline u32 top_ltc_per_fbp_value_v(u32 r)
88{
89 return (r >> 0U) & 0x1fU;
90}
91static inline u32 top_slices_per_ltc_r(void)
92{
93 return 0x0002245cU;
94}
95static inline u32 top_slices_per_ltc_value_v(u32 r)
96{
97 return (r >> 0U) & 0x1fU;
98}
99static inline u32 top_num_ltcs_r(void)
100{
101 return 0x00022454U;
102}
103static inline u32 top_num_ces_r(void)
104{
105 return 0x00022444U;
106}
107static inline u32 top_num_ces_value_v(u32 r)
108{
109 return (r >> 0U) & 0x1fU;
110}
111static inline u32 top_device_info_r(u32 i)
112{
113 return 0x00022700U + i*4U;
114}
115static inline u32 top_device_info__size_1_v(void)
116{
117 return 0x00000040U;
118}
119static inline u32 top_device_info_chain_v(u32 r)
120{
121 return (r >> 31U) & 0x1U;
122}
123static inline u32 top_device_info_chain_enable_v(void)
124{
125 return 0x00000001U;
126}
127static inline u32 top_device_info_engine_enum_v(u32 r)
128{
129 return (r >> 26U) & 0xfU;
130}
131static inline u32 top_device_info_runlist_enum_v(u32 r)
132{
133 return (r >> 21U) & 0xfU;
134}
135static inline u32 top_device_info_intr_enum_v(u32 r)
136{
137 return (r >> 15U) & 0x1fU;
138}
139static inline u32 top_device_info_reset_enum_v(u32 r)
140{
141 return (r >> 9U) & 0x1fU;
142}
143static inline u32 top_device_info_type_enum_v(u32 r)
144{
145 return (r >> 2U) & 0x1fffffffU;
146}
147static inline u32 top_device_info_type_enum_graphics_v(void)
148{
149 return 0x00000000U;
150}
151static inline u32 top_device_info_type_enum_graphics_f(void)
152{
153 return 0x0U;
154}
155static inline u32 top_device_info_type_enum_copy2_v(void)
156{
157 return 0x00000003U;
158}
159static inline u32 top_device_info_type_enum_copy2_f(void)
160{
161 return 0xcU;
162}
163static inline u32 top_device_info_type_enum_lce_v(void)
164{
165 return 0x00000013U;
166}
167static inline u32 top_device_info_type_enum_lce_f(void)
168{
169 return 0x4cU;
170}
171static inline u32 top_device_info_engine_v(u32 r)
172{
173 return (r >> 5U) & 0x1U;
174}
175static inline u32 top_device_info_runlist_v(u32 r)
176{
177 return (r >> 4U) & 0x1U;
178}
179static inline u32 top_device_info_intr_v(u32 r)
180{
181 return (r >> 3U) & 0x1U;
182}
183static inline u32 top_device_info_reset_v(u32 r)
184{
185 return (r >> 2U) & 0x1U;
186}
187static inline u32 top_device_info_entry_v(u32 r)
188{
189 return (r >> 0U) & 0x3U;
190}
191static inline u32 top_device_info_entry_not_valid_v(void)
192{
193 return 0x00000000U;
194}
195static inline u32 top_device_info_entry_enum_v(void)
196{
197 return 0x00000002U;
198}
199static inline u32 top_device_info_entry_data_v(void)
200{
201 return 0x00000001U;
202}
203static inline u32 top_device_info_data_type_v(u32 r)
204{
205 return (r >> 30U) & 0x1U;
206}
207static inline u32 top_device_info_data_type_enum2_v(void)
208{
209 return 0x00000000U;
210}
211static inline u32 top_device_info_data_inst_id_v(u32 r)
212{
213 return (r >> 26U) & 0xfU;
214}
215static inline u32 top_device_info_data_pri_base_v(u32 r)
216{
217 return (r >> 12U) & 0xfffU;
218}
219static inline u32 top_device_info_data_pri_base_align_v(void)
220{
221 return 0x0000000cU;
222}
223static inline u32 top_device_info_data_fault_id_enum_v(u32 r)
224{
225 return (r >> 3U) & 0x7fU;
226}
227static inline u32 top_device_info_data_fault_id_v(u32 r)
228{
229 return (r >> 2U) & 0x1U;
230}
231static inline u32 top_device_info_data_fault_id_valid_v(void)
232{
233 return 0x00000001U;
234}
235#endif
diff --git a/include/nvgpu/hw/gv11b/hw_usermode_gv11b.h b/include/nvgpu/hw/gv11b/hw_usermode_gv11b.h
new file mode 100644
index 0000000..e374969
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_usermode_gv11b.h
@@ -0,0 +1,95 @@
1/*
2 * Copyright (c) 2016, 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_usermode_gv11b_h_
57#define _hw_usermode_gv11b_h_
58
59static inline u32 usermode_cfg0_r(void)
60{
61 return 0x00810000;
62}
63static inline u32 usermode_cfg0_usermode_class_id_f(u32 v)
64{
65 return (v & 0xffff) << 0;
66}
67static inline u32 usermode_cfg0_usermode_class_id_value_v(void)
68{
69 return 0x0000c361;
70}
71static inline u32 usermode_time_0_r(void)
72{
73 return 0x00810080;
74}
75static inline u32 usermode_time_0_nsec_f(u32 v)
76{
77 return (v & 0x7ffffff) << 5;
78}
79static inline u32 usermode_time_1_r(void)
80{
81 return 0x00810084;
82}
83static inline u32 usermode_time_1_nsec_f(u32 v)
84{
85 return (v & 0x1fffffff) << 0;
86}
87static inline u32 usermode_notify_channel_pending_r(void)
88{
89 return 0x00810090;
90}
91static inline u32 usermode_notify_channel_pending_id_f(u32 v)
92{
93 return (v & 0xffffffff) << 0;
94}
95#endif