summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_bus_gp10b.h82
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h52
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ce_gp10b.h14
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h214
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fb_gp10b.h214
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fifo_gp10b.h320
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_flush_gp10b.h64
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fuse_gp10b.h46
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gmmu_gp10b.h612
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h2142
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ltc_gp10b.h264
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_mc_gp10b.h96
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h270
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_perf_gp10b.h76
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pram_gp10b.h2
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h54
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h10
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h16
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_proj_gp10b.h58
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pwr_gp10b.h386
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ram_gp10b.h220
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_therm_gp10b.h178
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_timer_gp10b.h28
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_top_gp10b.h86
24 files changed, 2754 insertions, 2750 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_bus_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_bus_gp10b.h
index 06a3261d..b06ea66d 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_bus_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_bus_gp10b.h
@@ -58,166 +58,166 @@
58 58
59static inline u32 bus_bar0_window_r(void) 59static inline u32 bus_bar0_window_r(void)
60{ 60{
61 return 0x00001700; 61 return 0x00001700U;
62} 62}
63static inline u32 bus_bar0_window_base_f(u32 v) 63static inline u32 bus_bar0_window_base_f(u32 v)
64{ 64{
65 return (v & 0xffffff) << 0; 65 return (v & 0xffffffU) << 0U;
66} 66}
67static inline u32 bus_bar0_window_target_vid_mem_f(void) 67static inline u32 bus_bar0_window_target_vid_mem_f(void)
68{ 68{
69 return 0x0; 69 return 0x0U;
70} 70}
71static inline u32 bus_bar0_window_target_sys_mem_coherent_f(void) 71static inline u32 bus_bar0_window_target_sys_mem_coherent_f(void)
72{ 72{
73 return 0x2000000; 73 return 0x2000000U;
74} 74}
75static inline u32 bus_bar0_window_target_sys_mem_noncoherent_f(void) 75static inline u32 bus_bar0_window_target_sys_mem_noncoherent_f(void)
76{ 76{
77 return 0x3000000; 77 return 0x3000000U;
78} 78}
79static inline u32 bus_bar0_window_target_bar0_window_base_shift_v(void) 79static inline u32 bus_bar0_window_target_bar0_window_base_shift_v(void)
80{ 80{
81 return 0x00000010; 81 return 0x00000010U;
82} 82}
83static inline u32 bus_bar1_block_r(void) 83static inline u32 bus_bar1_block_r(void)
84{ 84{
85 return 0x00001704; 85 return 0x00001704U;
86} 86}
87static inline u32 bus_bar1_block_ptr_f(u32 v) 87static inline u32 bus_bar1_block_ptr_f(u32 v)
88{ 88{
89 return (v & 0xfffffff) << 0; 89 return (v & 0xfffffffU) << 0U;
90} 90}
91static inline u32 bus_bar1_block_target_vid_mem_f(void) 91static inline u32 bus_bar1_block_target_vid_mem_f(void)
92{ 92{
93 return 0x0; 93 return 0x0U;
94} 94}
95static inline u32 bus_bar1_block_target_sys_mem_coh_f(void) 95static inline u32 bus_bar1_block_target_sys_mem_coh_f(void)
96{ 96{
97 return 0x20000000; 97 return 0x20000000U;
98} 98}
99static inline u32 bus_bar1_block_target_sys_mem_ncoh_f(void) 99static inline u32 bus_bar1_block_target_sys_mem_ncoh_f(void)
100{ 100{
101 return 0x30000000; 101 return 0x30000000U;
102} 102}
103static inline u32 bus_bar1_block_mode_virtual_f(void) 103static inline u32 bus_bar1_block_mode_virtual_f(void)
104{ 104{
105 return 0x80000000; 105 return 0x80000000U;
106} 106}
107static inline u32 bus_bar2_block_r(void) 107static inline u32 bus_bar2_block_r(void)
108{ 108{
109 return 0x00001714; 109 return 0x00001714U;
110} 110}
111static inline u32 bus_bar2_block_ptr_f(u32 v) 111static inline u32 bus_bar2_block_ptr_f(u32 v)
112{ 112{
113 return (v & 0xfffffff) << 0; 113 return (v & 0xfffffffU) << 0U;
114} 114}
115static inline u32 bus_bar2_block_target_vid_mem_f(void) 115static inline u32 bus_bar2_block_target_vid_mem_f(void)
116{ 116{
117 return 0x0; 117 return 0x0U;
118} 118}
119static inline u32 bus_bar2_block_target_sys_mem_coh_f(void) 119static inline u32 bus_bar2_block_target_sys_mem_coh_f(void)
120{ 120{
121 return 0x20000000; 121 return 0x20000000U;
122} 122}
123static inline u32 bus_bar2_block_target_sys_mem_ncoh_f(void) 123static inline u32 bus_bar2_block_target_sys_mem_ncoh_f(void)
124{ 124{
125 return 0x30000000; 125 return 0x30000000U;
126} 126}
127static inline u32 bus_bar2_block_mode_virtual_f(void) 127static inline u32 bus_bar2_block_mode_virtual_f(void)
128{ 128{
129 return 0x80000000; 129 return 0x80000000U;
130} 130}
131static inline u32 bus_bar1_block_ptr_shift_v(void) 131static inline u32 bus_bar1_block_ptr_shift_v(void)
132{ 132{
133 return 0x0000000c; 133 return 0x0000000cU;
134} 134}
135static inline u32 bus_bar2_block_ptr_shift_v(void) 135static inline u32 bus_bar2_block_ptr_shift_v(void)
136{ 136{
137 return 0x0000000c; 137 return 0x0000000cU;
138} 138}
139static inline u32 bus_bind_status_r(void) 139static inline u32 bus_bind_status_r(void)
140{ 140{
141 return 0x00001710; 141 return 0x00001710U;
142} 142}
143static inline u32 bus_bind_status_bar1_pending_v(u32 r) 143static inline u32 bus_bind_status_bar1_pending_v(u32 r)
144{ 144{
145 return (r >> 0) & 0x1; 145 return (r >> 0U) & 0x1U;
146} 146}
147static inline u32 bus_bind_status_bar1_pending_empty_f(void) 147static inline u32 bus_bind_status_bar1_pending_empty_f(void)
148{ 148{
149 return 0x0; 149 return 0x0U;
150} 150}
151static inline u32 bus_bind_status_bar1_pending_busy_f(void) 151static inline u32 bus_bind_status_bar1_pending_busy_f(void)
152{ 152{
153 return 0x1; 153 return 0x1U;
154} 154}
155static inline u32 bus_bind_status_bar1_outstanding_v(u32 r) 155static inline u32 bus_bind_status_bar1_outstanding_v(u32 r)
156{ 156{
157 return (r >> 1) & 0x1; 157 return (r >> 1U) & 0x1U;
158} 158}
159static inline u32 bus_bind_status_bar1_outstanding_false_f(void) 159static inline u32 bus_bind_status_bar1_outstanding_false_f(void)
160{ 160{
161 return 0x0; 161 return 0x0U;
162} 162}
163static inline u32 bus_bind_status_bar1_outstanding_true_f(void) 163static inline u32 bus_bind_status_bar1_outstanding_true_f(void)
164{ 164{
165 return 0x2; 165 return 0x2U;
166} 166}
167static inline u32 bus_bind_status_bar2_pending_v(u32 r) 167static inline u32 bus_bind_status_bar2_pending_v(u32 r)
168{ 168{
169 return (r >> 2) & 0x1; 169 return (r >> 2U) & 0x1U;
170} 170}
171static inline u32 bus_bind_status_bar2_pending_empty_f(void) 171static inline u32 bus_bind_status_bar2_pending_empty_f(void)
172{ 172{
173 return 0x0; 173 return 0x0U;
174} 174}
175static inline u32 bus_bind_status_bar2_pending_busy_f(void) 175static inline u32 bus_bind_status_bar2_pending_busy_f(void)
176{ 176{
177 return 0x4; 177 return 0x4U;
178} 178}
179static inline u32 bus_bind_status_bar2_outstanding_v(u32 r) 179static inline u32 bus_bind_status_bar2_outstanding_v(u32 r)
180{ 180{
181 return (r >> 3) & 0x1; 181 return (r >> 3U) & 0x1U;
182} 182}
183static inline u32 bus_bind_status_bar2_outstanding_false_f(void) 183static inline u32 bus_bind_status_bar2_outstanding_false_f(void)
184{ 184{
185 return 0x0; 185 return 0x0U;
186} 186}
187static inline u32 bus_bind_status_bar2_outstanding_true_f(void) 187static inline u32 bus_bind_status_bar2_outstanding_true_f(void)
188{ 188{
189 return 0x8; 189 return 0x8U;
190} 190}
191static inline u32 bus_intr_0_r(void) 191static inline u32 bus_intr_0_r(void)
192{ 192{
193 return 0x00001100; 193 return 0x00001100U;
194} 194}
195static inline u32 bus_intr_0_pri_squash_m(void) 195static inline u32 bus_intr_0_pri_squash_m(void)
196{ 196{
197 return 0x1 << 1; 197 return 0x1U << 1U;
198} 198}
199static inline u32 bus_intr_0_pri_fecserr_m(void) 199static inline u32 bus_intr_0_pri_fecserr_m(void)
200{ 200{
201 return 0x1 << 2; 201 return 0x1U << 2U;
202} 202}
203static inline u32 bus_intr_0_pri_timeout_m(void) 203static inline u32 bus_intr_0_pri_timeout_m(void)
204{ 204{
205 return 0x1 << 3; 205 return 0x1U << 3U;
206} 206}
207static inline u32 bus_intr_en_0_r(void) 207static inline u32 bus_intr_en_0_r(void)
208{ 208{
209 return 0x00001140; 209 return 0x00001140U;
210} 210}
211static inline u32 bus_intr_en_0_pri_squash_m(void) 211static inline u32 bus_intr_en_0_pri_squash_m(void)
212{ 212{
213 return 0x1 << 1; 213 return 0x1U << 1U;
214} 214}
215static inline u32 bus_intr_en_0_pri_fecserr_m(void) 215static inline u32 bus_intr_en_0_pri_fecserr_m(void)
216{ 216{
217 return 0x1 << 2; 217 return 0x1U << 2U;
218} 218}
219static inline u32 bus_intr_en_0_pri_timeout_m(void) 219static inline u32 bus_intr_en_0_pri_timeout_m(void)
220{ 220{
221 return 0x1 << 3; 221 return 0x1U << 3U;
222} 222}
223#endif 223#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h
index e700f81b..00879c11 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h
@@ -58,106 +58,106 @@
58 58
59static inline u32 ccsr_channel_inst_r(u32 i) 59static inline u32 ccsr_channel_inst_r(u32 i)
60{ 60{
61 return 0x00800000 + i*8; 61 return 0x00800000U + i*8U;
62} 62}
63static inline u32 ccsr_channel_inst__size_1_v(void) 63static inline u32 ccsr_channel_inst__size_1_v(void)
64{ 64{
65 return 0x00000200; 65 return 0x00000200U;
66} 66}
67static inline u32 ccsr_channel_inst_ptr_f(u32 v) 67static inline u32 ccsr_channel_inst_ptr_f(u32 v)
68{ 68{
69 return (v & 0xfffffff) << 0; 69 return (v & 0xfffffffU) << 0U;
70} 70}
71static inline u32 ccsr_channel_inst_target_vid_mem_f(void) 71static inline u32 ccsr_channel_inst_target_vid_mem_f(void)
72{ 72{
73 return 0x0; 73 return 0x0U;
74} 74}
75static inline u32 ccsr_channel_inst_target_sys_mem_coh_f(void) 75static inline u32 ccsr_channel_inst_target_sys_mem_coh_f(void)
76{ 76{
77 return 0x20000000; 77 return 0x20000000U;
78} 78}
79static inline u32 ccsr_channel_inst_target_sys_mem_ncoh_f(void) 79static inline u32 ccsr_channel_inst_target_sys_mem_ncoh_f(void)
80{ 80{
81 return 0x30000000; 81 return 0x30000000U;
82} 82}
83static inline u32 ccsr_channel_inst_bind_false_f(void) 83static inline u32 ccsr_channel_inst_bind_false_f(void)
84{ 84{
85 return 0x0; 85 return 0x0U;
86} 86}
87static inline u32 ccsr_channel_inst_bind_true_f(void) 87static inline u32 ccsr_channel_inst_bind_true_f(void)
88{ 88{
89 return 0x80000000; 89 return 0x80000000U;
90} 90}
91static inline u32 ccsr_channel_r(u32 i) 91static inline u32 ccsr_channel_r(u32 i)
92{ 92{
93 return 0x00800004 + i*8; 93 return 0x00800004U + i*8U;
94} 94}
95static inline u32 ccsr_channel__size_1_v(void) 95static inline u32 ccsr_channel__size_1_v(void)
96{ 96{
97 return 0x00000200; 97 return 0x00000200U;
98} 98}
99static inline u32 ccsr_channel_enable_v(u32 r) 99static inline u32 ccsr_channel_enable_v(u32 r)
100{ 100{
101 return (r >> 0) & 0x1; 101 return (r >> 0U) & 0x1U;
102} 102}
103static inline u32 ccsr_channel_enable_set_f(u32 v) 103static inline u32 ccsr_channel_enable_set_f(u32 v)
104{ 104{
105 return (v & 0x1) << 10; 105 return (v & 0x1U) << 10U;
106} 106}
107static inline u32 ccsr_channel_enable_set_true_f(void) 107static inline u32 ccsr_channel_enable_set_true_f(void)
108{ 108{
109 return 0x400; 109 return 0x400U;
110} 110}
111static inline u32 ccsr_channel_enable_clr_true_f(void) 111static inline u32 ccsr_channel_enable_clr_true_f(void)
112{ 112{
113 return 0x800; 113 return 0x800U;
114} 114}
115static inline u32 ccsr_channel_status_v(u32 r) 115static inline u32 ccsr_channel_status_v(u32 r)
116{ 116{
117 return (r >> 24) & 0xf; 117 return (r >> 24U) & 0xfU;
118} 118}
119static inline u32 ccsr_channel_status_pending_ctx_reload_v(void) 119static inline u32 ccsr_channel_status_pending_ctx_reload_v(void)
120{ 120{
121 return 0x00000002; 121 return 0x00000002U;
122} 122}
123static inline u32 ccsr_channel_status_pending_acq_ctx_reload_v(void) 123static inline u32 ccsr_channel_status_pending_acq_ctx_reload_v(void)
124{ 124{
125 return 0x00000004; 125 return 0x00000004U;
126} 126}
127static inline u32 ccsr_channel_status_on_pbdma_ctx_reload_v(void) 127static inline u32 ccsr_channel_status_on_pbdma_ctx_reload_v(void)
128{ 128{
129 return 0x0000000a; 129 return 0x0000000aU;
130} 130}
131static inline u32 ccsr_channel_status_on_pbdma_and_eng_ctx_reload_v(void) 131static inline u32 ccsr_channel_status_on_pbdma_and_eng_ctx_reload_v(void)
132{ 132{
133 return 0x0000000b; 133 return 0x0000000bU;
134} 134}
135static inline u32 ccsr_channel_status_on_eng_ctx_reload_v(void) 135static inline u32 ccsr_channel_status_on_eng_ctx_reload_v(void)
136{ 136{
137 return 0x0000000c; 137 return 0x0000000cU;
138} 138}
139static inline u32 ccsr_channel_status_on_eng_pending_ctx_reload_v(void) 139static inline u32 ccsr_channel_status_on_eng_pending_ctx_reload_v(void)
140{ 140{
141 return 0x0000000d; 141 return 0x0000000dU;
142} 142}
143static inline u32 ccsr_channel_status_on_eng_pending_acq_ctx_reload_v(void) 143static inline u32 ccsr_channel_status_on_eng_pending_acq_ctx_reload_v(void)
144{ 144{
145 return 0x0000000e; 145 return 0x0000000eU;
146} 146}
147static inline u32 ccsr_channel_next_v(u32 r) 147static inline u32 ccsr_channel_next_v(u32 r)
148{ 148{
149 return (r >> 1) & 0x1; 149 return (r >> 1U) & 0x1U;
150} 150}
151static inline u32 ccsr_channel_next_true_v(void) 151static inline u32 ccsr_channel_next_true_v(void)
152{ 152{
153 return 0x00000001; 153 return 0x00000001U;
154} 154}
155static inline u32 ccsr_channel_force_ctx_reload_true_f(void) 155static inline u32 ccsr_channel_force_ctx_reload_true_f(void)
156{ 156{
157 return 0x100; 157 return 0x100U;
158} 158}
159static inline u32 ccsr_channel_busy_v(u32 r) 159static inline u32 ccsr_channel_busy_v(u32 r)
160{ 160{
161 return (r >> 28) & 0x1; 161 return (r >> 28U) & 0x1U;
162} 162}
163#endif 163#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ce_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ce_gp10b.h
index bb3e8b12..c2937710 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ce_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ce_gp10b.h
@@ -58,30 +58,30 @@
58 58
59static inline u32 ce_intr_status_r(u32 i) 59static inline u32 ce_intr_status_r(u32 i)
60{ 60{
61 return 0x00104410 + i*128; 61 return 0x00104410U + i*128U;
62} 62}
63static inline u32 ce_intr_status_blockpipe_pending_f(void) 63static inline u32 ce_intr_status_blockpipe_pending_f(void)
64{ 64{
65 return 0x1; 65 return 0x1U;
66} 66}
67static inline u32 ce_intr_status_blockpipe_reset_f(void) 67static inline u32 ce_intr_status_blockpipe_reset_f(void)
68{ 68{
69 return 0x1; 69 return 0x1U;
70} 70}
71static inline u32 ce_intr_status_nonblockpipe_pending_f(void) 71static inline u32 ce_intr_status_nonblockpipe_pending_f(void)
72{ 72{
73 return 0x2; 73 return 0x2U;
74} 74}
75static inline u32 ce_intr_status_nonblockpipe_reset_f(void) 75static inline u32 ce_intr_status_nonblockpipe_reset_f(void)
76{ 76{
77 return 0x2; 77 return 0x2U;
78} 78}
79static inline u32 ce_intr_status_launcherr_pending_f(void) 79static inline u32 ce_intr_status_launcherr_pending_f(void)
80{ 80{
81 return 0x4; 81 return 0x4U;
82} 82}
83static inline u32 ce_intr_status_launcherr_reset_f(void) 83static inline u32 ce_intr_status_launcherr_reset_f(void)
84{ 84{
85 return 0x4; 85 return 0x4U;
86} 86}
87#endif 87#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h
index 0f1fe0ed..b214bdb3 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ctxsw_prog_gp10b.h
@@ -58,430 +58,430 @@
58 58
59static inline u32 ctxsw_prog_fecs_header_v(void) 59static inline u32 ctxsw_prog_fecs_header_v(void)
60{ 60{
61 return 0x00000100; 61 return 0x00000100U;
62} 62}
63static inline u32 ctxsw_prog_main_image_num_gpcs_o(void) 63static inline u32 ctxsw_prog_main_image_num_gpcs_o(void)
64{ 64{
65 return 0x00000008; 65 return 0x00000008U;
66} 66}
67static inline u32 ctxsw_prog_main_image_patch_count_o(void) 67static inline u32 ctxsw_prog_main_image_patch_count_o(void)
68{ 68{
69 return 0x00000010; 69 return 0x00000010U;
70} 70}
71static inline u32 ctxsw_prog_main_image_context_id_o(void) 71static inline u32 ctxsw_prog_main_image_context_id_o(void)
72{ 72{
73 return 0x000000f0; 73 return 0x000000f0U;
74} 74}
75static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void) 75static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void)
76{ 76{
77 return 0x00000014; 77 return 0x00000014U;
78} 78}
79static inline u32 ctxsw_prog_main_image_patch_adr_hi_o(void) 79static inline u32 ctxsw_prog_main_image_patch_adr_hi_o(void)
80{ 80{
81 return 0x00000018; 81 return 0x00000018U;
82} 82}
83static inline u32 ctxsw_prog_main_image_zcull_o(void) 83static inline u32 ctxsw_prog_main_image_zcull_o(void)
84{ 84{
85 return 0x0000001c; 85 return 0x0000001cU;
86} 86}
87static inline u32 ctxsw_prog_main_image_zcull_mode_no_ctxsw_v(void) 87static inline u32 ctxsw_prog_main_image_zcull_mode_no_ctxsw_v(void)
88{ 88{
89 return 0x00000001; 89 return 0x00000001U;
90} 90}
91static inline u32 ctxsw_prog_main_image_zcull_mode_separate_buffer_v(void) 91static inline u32 ctxsw_prog_main_image_zcull_mode_separate_buffer_v(void)
92{ 92{
93 return 0x00000002; 93 return 0x00000002U;
94} 94}
95static inline u32 ctxsw_prog_main_image_zcull_ptr_o(void) 95static inline u32 ctxsw_prog_main_image_zcull_ptr_o(void)
96{ 96{
97 return 0x00000020; 97 return 0x00000020U;
98} 98}
99static inline u32 ctxsw_prog_main_image_pm_o(void) 99static inline u32 ctxsw_prog_main_image_pm_o(void)
100{ 100{
101 return 0x00000028; 101 return 0x00000028U;
102} 102}
103static inline u32 ctxsw_prog_main_image_pm_mode_m(void) 103static inline u32 ctxsw_prog_main_image_pm_mode_m(void)
104{ 104{
105 return 0x7 << 0; 105 return 0x7U << 0U;
106} 106}
107static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void) 107static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void)
108{ 108{
109 return 0x0; 109 return 0x0U;
110} 110}
111static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void) 111static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void)
112{ 112{
113 return 0x7 << 3; 113 return 0x7U << 3U;
114} 114}
115static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void) 115static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void)
116{ 116{
117 return 0x8; 117 return 0x8U;
118} 118}
119static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void) 119static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void)
120{ 120{
121 return 0x0; 121 return 0x0U;
122} 122}
123static inline u32 ctxsw_prog_main_image_pm_ptr_o(void) 123static inline u32 ctxsw_prog_main_image_pm_ptr_o(void)
124{ 124{
125 return 0x0000002c; 125 return 0x0000002cU;
126} 126}
127static inline u32 ctxsw_prog_main_image_num_save_ops_o(void) 127static inline u32 ctxsw_prog_main_image_num_save_ops_o(void)
128{ 128{
129 return 0x000000f4; 129 return 0x000000f4U;
130} 130}
131static inline u32 ctxsw_prog_main_image_num_wfi_save_ops_o(void) 131static inline u32 ctxsw_prog_main_image_num_wfi_save_ops_o(void)
132{ 132{
133 return 0x000000d0; 133 return 0x000000d0U;
134} 134}
135static inline u32 ctxsw_prog_main_image_num_cta_save_ops_o(void) 135static inline u32 ctxsw_prog_main_image_num_cta_save_ops_o(void)
136{ 136{
137 return 0x000000d4; 137 return 0x000000d4U;
138} 138}
139static inline u32 ctxsw_prog_main_image_num_gfxp_save_ops_o(void) 139static inline u32 ctxsw_prog_main_image_num_gfxp_save_ops_o(void)
140{ 140{
141 return 0x000000d8; 141 return 0x000000d8U;
142} 142}
143static inline u32 ctxsw_prog_main_image_num_cilp_save_ops_o(void) 143static inline u32 ctxsw_prog_main_image_num_cilp_save_ops_o(void)
144{ 144{
145 return 0x000000dc; 145 return 0x000000dcU;
146} 146}
147static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void) 147static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void)
148{ 148{
149 return 0x000000f8; 149 return 0x000000f8U;
150} 150}
151static inline u32 ctxsw_prog_main_image_magic_value_o(void) 151static inline u32 ctxsw_prog_main_image_magic_value_o(void)
152{ 152{
153 return 0x000000fc; 153 return 0x000000fcU;
154} 154}
155static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void) 155static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void)
156{ 156{
157 return 0x600dc0de; 157 return 0x600dc0deU;
158} 158}
159static inline u32 ctxsw_prog_local_priv_register_ctl_o(void) 159static inline u32 ctxsw_prog_local_priv_register_ctl_o(void)
160{ 160{
161 return 0x0000000c; 161 return 0x0000000cU;
162} 162}
163static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r) 163static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r)
164{ 164{
165 return (r >> 0) & 0xffff; 165 return (r >> 0U) & 0xffffU;
166} 166}
167static inline u32 ctxsw_prog_local_image_ppc_info_o(void) 167static inline u32 ctxsw_prog_local_image_ppc_info_o(void)
168{ 168{
169 return 0x000000f4; 169 return 0x000000f4U;
170} 170}
171static inline u32 ctxsw_prog_local_image_ppc_info_num_ppcs_v(u32 r) 171static inline u32 ctxsw_prog_local_image_ppc_info_num_ppcs_v(u32 r)
172{ 172{
173 return (r >> 0) & 0xffff; 173 return (r >> 0U) & 0xffffU;
174} 174}
175static inline u32 ctxsw_prog_local_image_ppc_info_ppc_mask_v(u32 r) 175static inline u32 ctxsw_prog_local_image_ppc_info_ppc_mask_v(u32 r)
176{ 176{
177 return (r >> 16) & 0xffff; 177 return (r >> 16U) & 0xffffU;
178} 178}
179static inline u32 ctxsw_prog_local_image_num_tpcs_o(void) 179static inline u32 ctxsw_prog_local_image_num_tpcs_o(void)
180{ 180{
181 return 0x000000f8; 181 return 0x000000f8U;
182} 182}
183static inline u32 ctxsw_prog_local_magic_value_o(void) 183static inline u32 ctxsw_prog_local_magic_value_o(void)
184{ 184{
185 return 0x000000fc; 185 return 0x000000fcU;
186} 186}
187static inline u32 ctxsw_prog_local_magic_value_v_value_v(void) 187static inline u32 ctxsw_prog_local_magic_value_v_value_v(void)
188{ 188{
189 return 0xad0becab; 189 return 0xad0becabU;
190} 190}
191static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void) 191static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void)
192{ 192{
193 return 0x000000ec; 193 return 0x000000ecU;
194} 194}
195static inline u32 ctxsw_prog_main_extended_buffer_ctl_offset_v(u32 r) 195static inline u32 ctxsw_prog_main_extended_buffer_ctl_offset_v(u32 r)
196{ 196{
197 return (r >> 0) & 0xffff; 197 return (r >> 0U) & 0xffffU;
198} 198}
199static inline u32 ctxsw_prog_main_extended_buffer_ctl_size_v(u32 r) 199static inline u32 ctxsw_prog_main_extended_buffer_ctl_size_v(u32 r)
200{ 200{
201 return (r >> 16) & 0xff; 201 return (r >> 16U) & 0xffU;
202} 202}
203static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void) 203static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void)
204{ 204{
205 return 0x00000100; 205 return 0x00000100U;
206} 206}
207static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void) 207static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void)
208{ 208{
209 return 0x00000004; 209 return 0x00000004U;
210} 210}
211static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void) 211static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void)
212{ 212{
213 return 0x00000000; 213 return 0x00000000U;
214} 214}
215static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void) 215static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void)
216{ 216{
217 return 0x00000002; 217 return 0x00000002U;
218} 218}
219static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void) 219static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void)
220{ 220{
221 return 0x000000a0; 221 return 0x000000a0U;
222} 222}
223static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void) 223static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void)
224{ 224{
225 return 2; 225 return 2U;
226} 226}
227static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v) 227static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v)
228{ 228{
229 return (v & 0x3) << 0; 229 return (v & 0x3U) << 0U;
230} 230}
231static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void) 231static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void)
232{ 232{
233 return 0x3 << 0; 233 return 0x3U << 0U;
234} 234}
235static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r) 235static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r)
236{ 236{
237 return (r >> 0) & 0x3; 237 return (r >> 0U) & 0x3U;
238} 238}
239static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void) 239static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void)
240{ 240{
241 return 0x0; 241 return 0x0U;
242} 242}
243static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void) 243static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void)
244{ 244{
245 return 0x2; 245 return 0x2U;
246} 246}
247static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void) 247static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void)
248{ 248{
249 return 0x000000a4; 249 return 0x000000a4U;
250} 250}
251static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void) 251static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void)
252{ 252{
253 return 0x000000a8; 253 return 0x000000a8U;
254} 254}
255static inline u32 ctxsw_prog_main_image_misc_options_o(void) 255static inline u32 ctxsw_prog_main_image_misc_options_o(void)
256{ 256{
257 return 0x0000003c; 257 return 0x0000003cU;
258} 258}
259static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void) 259static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void)
260{ 260{
261 return 0x1 << 3; 261 return 0x1U << 3U;
262} 262}
263static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void) 263static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void)
264{ 264{
265 return 0x0; 265 return 0x0U;
266} 266}
267static inline u32 ctxsw_prog_main_image_pmu_options_o(void) 267static inline u32 ctxsw_prog_main_image_pmu_options_o(void)
268{ 268{
269 return 0x00000070; 269 return 0x00000070U;
270} 270}
271static inline u32 ctxsw_prog_main_image_pmu_options_boost_clock_frequencies_f(u32 v) 271static inline u32 ctxsw_prog_main_image_pmu_options_boost_clock_frequencies_f(u32 v)
272{ 272{
273 return (v & 0x1) << 0; 273 return (v & 0x1U) << 0U;
274} 274}
275static inline u32 ctxsw_prog_main_image_graphics_preemption_options_o(void) 275static inline u32 ctxsw_prog_main_image_graphics_preemption_options_o(void)
276{ 276{
277 return 0x00000080; 277 return 0x00000080U;
278} 278}
279static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_f(u32 v) 279static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_f(u32 v)
280{ 280{
281 return (v & 0x3) << 0; 281 return (v & 0x3U) << 0U;
282} 282}
283static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_gfxp_f(void) 283static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_gfxp_f(void)
284{ 284{
285 return 0x1; 285 return 0x1U;
286} 286}
287static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void) 287static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void)
288{ 288{
289 return 0x00000068; 289 return 0x00000068U;
290} 290}
291static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void) 291static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void)
292{ 292{
293 return 0x00000084; 293 return 0x00000084U;
294} 294}
295static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_f(u32 v) 295static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_f(u32 v)
296{ 296{
297 return (v & 0x3) << 0; 297 return (v & 0x3U) << 0U;
298} 298}
299static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cta_f(void) 299static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cta_f(void)
300{ 300{
301 return 0x1; 301 return 0x1U;
302} 302}
303static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cilp_f(void) 303static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cilp_f(void)
304{ 304{
305 return 0x2; 305 return 0x2U;
306} 306}
307static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_o(void) 307static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_o(void)
308{ 308{
309 return 0x000000ac; 309 return 0x000000acU;
310} 310}
311static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_num_records_f(u32 v) 311static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_num_records_f(u32 v)
312{ 312{
313 return (v & 0xffff) << 0; 313 return (v & 0xffffU) << 0U;
314} 314}
315static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(void) 315static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(void)
316{ 316{
317 return 0x000000b0; 317 return 0x000000b0U;
318} 318}
319static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_v_m(void) 319static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_v_m(void)
320{ 320{
321 return 0xfffffff << 0; 321 return 0xfffffffU << 0U;
322} 322}
323static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_m(void) 323static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_m(void)
324{ 324{
325 return 0x3 << 28; 325 return 0x3U << 28U;
326} 326}
327static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_vid_mem_f(void) 327static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_vid_mem_f(void)
328{ 328{
329 return 0x0; 329 return 0x0U;
330} 330}
331static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_coherent_f(void) 331static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_coherent_f(void)
332{ 332{
333 return 0x20000000; 333 return 0x20000000U;
334} 334}
335static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_noncoherent_f(void) 335static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_noncoherent_f(void)
336{ 336{
337 return 0x30000000; 337 return 0x30000000U;
338} 338}
339static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(void) 339static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(void)
340{ 340{
341 return 0x000000b4; 341 return 0x000000b4U;
342} 342}
343static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_v_f(u32 v) 343static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_v_f(u32 v)
344{ 344{
345 return (v & 0xffffffff) << 0; 345 return (v & 0xffffffffU) << 0U;
346} 346}
347static inline u32 ctxsw_prog_record_timestamp_record_size_in_bytes_v(void) 347static inline u32 ctxsw_prog_record_timestamp_record_size_in_bytes_v(void)
348{ 348{
349 return 0x00000080; 349 return 0x00000080U;
350} 350}
351static inline u32 ctxsw_prog_record_timestamp_record_size_in_words_v(void) 351static inline u32 ctxsw_prog_record_timestamp_record_size_in_words_v(void)
352{ 352{
353 return 0x00000020; 353 return 0x00000020U;
354} 354}
355static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_o(void) 355static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_o(void)
356{ 356{
357 return 0x00000000; 357 return 0x00000000U;
358} 358}
359static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_v_value_v(void) 359static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_v_value_v(void)
360{ 360{
361 return 0x00000000; 361 return 0x00000000U;
362} 362}
363static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_o(void) 363static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_o(void)
364{ 364{
365 return 0x00000004; 365 return 0x00000004U;
366} 366}
367static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_v_value_v(void) 367static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_v_value_v(void)
368{ 368{
369 return 0x600dbeef; 369 return 0x600dbeefU;
370} 370}
371static inline u32 ctxsw_prog_record_timestamp_context_id_o(void) 371static inline u32 ctxsw_prog_record_timestamp_context_id_o(void)
372{ 372{
373 return 0x00000008; 373 return 0x00000008U;
374} 374}
375static inline u32 ctxsw_prog_record_timestamp_context_ptr_o(void) 375static inline u32 ctxsw_prog_record_timestamp_context_ptr_o(void)
376{ 376{
377 return 0x0000000c; 377 return 0x0000000cU;
378} 378}
379static inline u32 ctxsw_prog_record_timestamp_timestamp_lo_o(void) 379static inline u32 ctxsw_prog_record_timestamp_timestamp_lo_o(void)
380{ 380{
381 return 0x00000018; 381 return 0x00000018U;
382} 382}
383static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_o(void) 383static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_o(void)
384{ 384{
385 return 0x0000001c; 385 return 0x0000001cU;
386} 386}
387static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_f(u32 v) 387static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_f(u32 v)
388{ 388{
389 return (v & 0xffffff) << 0; 389 return (v & 0xffffffU) << 0U;
390} 390}
391static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_v(u32 r) 391static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_v(u32 r)
392{ 392{
393 return (r >> 0) & 0xffffff; 393 return (r >> 0U) & 0xffffffU;
394} 394}
395static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_f(u32 v) 395static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_f(u32 v)
396{ 396{
397 return (v & 0xff) << 24; 397 return (v & 0xffU) << 24U;
398} 398}
399static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_m(void) 399static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_m(void)
400{ 400{
401 return 0xff << 24; 401 return 0xffU << 24U;
402} 402}
403static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_v(u32 r) 403static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_v(u32 r)
404{ 404{
405 return (r >> 24) & 0xff; 405 return (r >> 24U) & 0xffU;
406} 406}
407static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_v(void) 407static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_v(void)
408{ 408{
409 return 0x00000001; 409 return 0x00000001U;
410} 410}
411static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_f(void) 411static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_f(void)
412{ 412{
413 return 0x1000000; 413 return 0x1000000U;
414} 414}
415static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_v(void) 415static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_v(void)
416{ 416{
417 return 0x00000002; 417 return 0x00000002U;
418} 418}
419static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_f(void) 419static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_f(void)
420{ 420{
421 return 0x2000000; 421 return 0x2000000U;
422} 422}
423static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_v(void) 423static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_v(void)
424{ 424{
425 return 0x0000000a; 425 return 0x0000000aU;
426} 426}
427static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_f(void) 427static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_f(void)
428{ 428{
429 return 0xa000000; 429 return 0xa000000U;
430} 430}
431static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_v(void) 431static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_v(void)
432{ 432{
433 return 0x0000000b; 433 return 0x0000000bU;
434} 434}
435static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_f(void) 435static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_f(void)
436{ 436{
437 return 0xb000000; 437 return 0xb000000U;
438} 438}
439static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_v(void) 439static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_v(void)
440{ 440{
441 return 0x0000000c; 441 return 0x0000000cU;
442} 442}
443static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_f(void) 443static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_f(void)
444{ 444{
445 return 0xc000000; 445 return 0xc000000U;
446} 446}
447static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_v(void) 447static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_v(void)
448{ 448{
449 return 0x0000000d; 449 return 0x0000000dU;
450} 450}
451static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_f(void) 451static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_f(void)
452{ 452{
453 return 0xd000000; 453 return 0xd000000U;
454} 454}
455static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_v(void) 455static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_v(void)
456{ 456{
457 return 0x00000003; 457 return 0x00000003U;
458} 458}
459static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_f(void) 459static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_f(void)
460{ 460{
461 return 0x3000000; 461 return 0x3000000U;
462} 462}
463static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_v(void) 463static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_v(void)
464{ 464{
465 return 0x00000004; 465 return 0x00000004U;
466} 466}
467static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_f(void) 467static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_f(void)
468{ 468{
469 return 0x4000000; 469 return 0x4000000U;
470} 470}
471static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_v(void) 471static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_v(void)
472{ 472{
473 return 0x00000005; 473 return 0x00000005U;
474} 474}
475static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_f(void) 475static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_f(void)
476{ 476{
477 return 0x5000000; 477 return 0x5000000U;
478} 478}
479static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_v(void) 479static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_v(void)
480{ 480{
481 return 0x000000ff; 481 return 0x000000ffU;
482} 482}
483static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_f(void) 483static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_f(void)
484{ 484{
485 return 0xff000000; 485 return 0xff000000U;
486} 486}
487#endif 487#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fb_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fb_gp10b.h
index 4cc54b45..81a6f79c 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fb_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fb_gp10b.h
@@ -58,430 +58,430 @@
58 58
59static inline u32 fb_fbhub_num_active_ltcs_r(void) 59static inline u32 fb_fbhub_num_active_ltcs_r(void)
60{ 60{
61 return 0x00100800; 61 return 0x00100800U;
62} 62}
63static inline u32 fb_mmu_ctrl_r(void) 63static inline u32 fb_mmu_ctrl_r(void)
64{ 64{
65 return 0x00100c80; 65 return 0x00100c80U;
66} 66}
67static inline u32 fb_mmu_ctrl_vm_pg_size_f(u32 v) 67static inline u32 fb_mmu_ctrl_vm_pg_size_f(u32 v)
68{ 68{
69 return (v & 0x1) << 0; 69 return (v & 0x1U) << 0U;
70} 70}
71static inline u32 fb_mmu_ctrl_vm_pg_size_128kb_f(void) 71static inline u32 fb_mmu_ctrl_vm_pg_size_128kb_f(void)
72{ 72{
73 return 0x0; 73 return 0x0U;
74} 74}
75static inline u32 fb_mmu_ctrl_vm_pg_size_64kb_f(void) 75static inline u32 fb_mmu_ctrl_vm_pg_size_64kb_f(void)
76{ 76{
77 return 0x1; 77 return 0x1U;
78} 78}
79static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r) 79static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r)
80{ 80{
81 return (r >> 15) & 0x1; 81 return (r >> 15U) & 0x1U;
82} 82}
83static inline u32 fb_mmu_ctrl_pri_fifo_empty_false_f(void) 83static inline u32 fb_mmu_ctrl_pri_fifo_empty_false_f(void)
84{ 84{
85 return 0x0; 85 return 0x0U;
86} 86}
87static inline u32 fb_mmu_ctrl_pri_fifo_space_v(u32 r) 87static inline u32 fb_mmu_ctrl_pri_fifo_space_v(u32 r)
88{ 88{
89 return (r >> 16) & 0xff; 89 return (r >> 16U) & 0xffU;
90} 90}
91static inline u32 fb_mmu_ctrl_use_pdb_big_page_size_v(u32 r) 91static inline u32 fb_mmu_ctrl_use_pdb_big_page_size_v(u32 r)
92{ 92{
93 return (r >> 11) & 0x1; 93 return (r >> 11U) & 0x1U;
94} 94}
95static inline u32 fb_mmu_ctrl_use_pdb_big_page_size_true_f(void) 95static inline u32 fb_mmu_ctrl_use_pdb_big_page_size_true_f(void)
96{ 96{
97 return 0x800; 97 return 0x800U;
98} 98}
99static inline u32 fb_mmu_ctrl_use_pdb_big_page_size_false_f(void) 99static inline u32 fb_mmu_ctrl_use_pdb_big_page_size_false_f(void)
100{ 100{
101 return 0x0; 101 return 0x0U;
102} 102}
103static inline u32 fb_priv_mmu_phy_secure_r(void) 103static inline u32 fb_priv_mmu_phy_secure_r(void)
104{ 104{
105 return 0x00100ce4; 105 return 0x00100ce4U;
106} 106}
107static inline u32 fb_mmu_invalidate_pdb_r(void) 107static inline u32 fb_mmu_invalidate_pdb_r(void)
108{ 108{
109 return 0x00100cb8; 109 return 0x00100cb8U;
110} 110}
111static inline u32 fb_mmu_invalidate_pdb_aperture_vid_mem_f(void) 111static inline u32 fb_mmu_invalidate_pdb_aperture_vid_mem_f(void)
112{ 112{
113 return 0x0; 113 return 0x0U;
114} 114}
115static inline u32 fb_mmu_invalidate_pdb_aperture_sys_mem_f(void) 115static inline u32 fb_mmu_invalidate_pdb_aperture_sys_mem_f(void)
116{ 116{
117 return 0x2; 117 return 0x2U;
118} 118}
119static inline u32 fb_mmu_invalidate_pdb_addr_f(u32 v) 119static inline u32 fb_mmu_invalidate_pdb_addr_f(u32 v)
120{ 120{
121 return (v & 0xfffffff) << 4; 121 return (v & 0xfffffffU) << 4U;
122} 122}
123static inline u32 fb_mmu_invalidate_r(void) 123static inline u32 fb_mmu_invalidate_r(void)
124{ 124{
125 return 0x00100cbc; 125 return 0x00100cbcU;
126} 126}
127static inline u32 fb_mmu_invalidate_all_va_true_f(void) 127static inline u32 fb_mmu_invalidate_all_va_true_f(void)
128{ 128{
129 return 0x1; 129 return 0x1U;
130} 130}
131static inline u32 fb_mmu_invalidate_all_pdb_true_f(void) 131static inline u32 fb_mmu_invalidate_all_pdb_true_f(void)
132{ 132{
133 return 0x2; 133 return 0x2U;
134} 134}
135static inline u32 fb_mmu_invalidate_hubtlb_only_s(void) 135static inline u32 fb_mmu_invalidate_hubtlb_only_s(void)
136{ 136{
137 return 1; 137 return 1U;
138} 138}
139static inline u32 fb_mmu_invalidate_hubtlb_only_f(u32 v) 139static inline u32 fb_mmu_invalidate_hubtlb_only_f(u32 v)
140{ 140{
141 return (v & 0x1) << 2; 141 return (v & 0x1U) << 2U;
142} 142}
143static inline u32 fb_mmu_invalidate_hubtlb_only_m(void) 143static inline u32 fb_mmu_invalidate_hubtlb_only_m(void)
144{ 144{
145 return 0x1 << 2; 145 return 0x1U << 2U;
146} 146}
147static inline u32 fb_mmu_invalidate_hubtlb_only_v(u32 r) 147static inline u32 fb_mmu_invalidate_hubtlb_only_v(u32 r)
148{ 148{
149 return (r >> 2) & 0x1; 149 return (r >> 2U) & 0x1U;
150} 150}
151static inline u32 fb_mmu_invalidate_hubtlb_only_true_f(void) 151static inline u32 fb_mmu_invalidate_hubtlb_only_true_f(void)
152{ 152{
153 return 0x4; 153 return 0x4U;
154} 154}
155static inline u32 fb_mmu_invalidate_replay_s(void) 155static inline u32 fb_mmu_invalidate_replay_s(void)
156{ 156{
157 return 3; 157 return 3U;
158} 158}
159static inline u32 fb_mmu_invalidate_replay_f(u32 v) 159static inline u32 fb_mmu_invalidate_replay_f(u32 v)
160{ 160{
161 return (v & 0x7) << 3; 161 return (v & 0x7U) << 3U;
162} 162}
163static inline u32 fb_mmu_invalidate_replay_m(void) 163static inline u32 fb_mmu_invalidate_replay_m(void)
164{ 164{
165 return 0x7 << 3; 165 return 0x7U << 3U;
166} 166}
167static inline u32 fb_mmu_invalidate_replay_v(u32 r) 167static inline u32 fb_mmu_invalidate_replay_v(u32 r)
168{ 168{
169 return (r >> 3) & 0x7; 169 return (r >> 3U) & 0x7U;
170} 170}
171static inline u32 fb_mmu_invalidate_replay_none_f(void) 171static inline u32 fb_mmu_invalidate_replay_none_f(void)
172{ 172{
173 return 0x0; 173 return 0x0U;
174} 174}
175static inline u32 fb_mmu_invalidate_replay_start_f(void) 175static inline u32 fb_mmu_invalidate_replay_start_f(void)
176{ 176{
177 return 0x8; 177 return 0x8U;
178} 178}
179static inline u32 fb_mmu_invalidate_replay_start_ack_all_f(void) 179static inline u32 fb_mmu_invalidate_replay_start_ack_all_f(void)
180{ 180{
181 return 0x10; 181 return 0x10U;
182} 182}
183static inline u32 fb_mmu_invalidate_replay_cancel_targeted_f(void) 183static inline u32 fb_mmu_invalidate_replay_cancel_targeted_f(void)
184{ 184{
185 return 0x18; 185 return 0x18U;
186} 186}
187static inline u32 fb_mmu_invalidate_replay_cancel_global_f(void) 187static inline u32 fb_mmu_invalidate_replay_cancel_global_f(void)
188{ 188{
189 return 0x20; 189 return 0x20U;
190} 190}
191static inline u32 fb_mmu_invalidate_replay_cancel_f(void) 191static inline u32 fb_mmu_invalidate_replay_cancel_f(void)
192{ 192{
193 return 0x20; 193 return 0x20U;
194} 194}
195static inline u32 fb_mmu_invalidate_sys_membar_s(void) 195static inline u32 fb_mmu_invalidate_sys_membar_s(void)
196{ 196{
197 return 1; 197 return 1U;
198} 198}
199static inline u32 fb_mmu_invalidate_sys_membar_f(u32 v) 199static inline u32 fb_mmu_invalidate_sys_membar_f(u32 v)
200{ 200{
201 return (v & 0x1) << 6; 201 return (v & 0x1U) << 6U;
202} 202}
203static inline u32 fb_mmu_invalidate_sys_membar_m(void) 203static inline u32 fb_mmu_invalidate_sys_membar_m(void)
204{ 204{
205 return 0x1 << 6; 205 return 0x1U << 6U;
206} 206}
207static inline u32 fb_mmu_invalidate_sys_membar_v(u32 r) 207static inline u32 fb_mmu_invalidate_sys_membar_v(u32 r)
208{ 208{
209 return (r >> 6) & 0x1; 209 return (r >> 6U) & 0x1U;
210} 210}
211static inline u32 fb_mmu_invalidate_sys_membar_true_f(void) 211static inline u32 fb_mmu_invalidate_sys_membar_true_f(void)
212{ 212{
213 return 0x40; 213 return 0x40U;
214} 214}
215static inline u32 fb_mmu_invalidate_ack_s(void) 215static inline u32 fb_mmu_invalidate_ack_s(void)
216{ 216{
217 return 2; 217 return 2U;
218} 218}
219static inline u32 fb_mmu_invalidate_ack_f(u32 v) 219static inline u32 fb_mmu_invalidate_ack_f(u32 v)
220{ 220{
221 return (v & 0x3) << 7; 221 return (v & 0x3U) << 7U;
222} 222}
223static inline u32 fb_mmu_invalidate_ack_m(void) 223static inline u32 fb_mmu_invalidate_ack_m(void)
224{ 224{
225 return 0x3 << 7; 225 return 0x3U << 7U;
226} 226}
227static inline u32 fb_mmu_invalidate_ack_v(u32 r) 227static inline u32 fb_mmu_invalidate_ack_v(u32 r)
228{ 228{
229 return (r >> 7) & 0x3; 229 return (r >> 7U) & 0x3U;
230} 230}
231static inline u32 fb_mmu_invalidate_ack_ack_none_required_f(void) 231static inline u32 fb_mmu_invalidate_ack_ack_none_required_f(void)
232{ 232{
233 return 0x0; 233 return 0x0U;
234} 234}
235static inline u32 fb_mmu_invalidate_ack_ack_intranode_f(void) 235static inline u32 fb_mmu_invalidate_ack_ack_intranode_f(void)
236{ 236{
237 return 0x100; 237 return 0x100U;
238} 238}
239static inline u32 fb_mmu_invalidate_ack_ack_globally_f(void) 239static inline u32 fb_mmu_invalidate_ack_ack_globally_f(void)
240{ 240{
241 return 0x80; 241 return 0x80U;
242} 242}
243static inline u32 fb_mmu_invalidate_cancel_client_id_s(void) 243static inline u32 fb_mmu_invalidate_cancel_client_id_s(void)
244{ 244{
245 return 6; 245 return 6U;
246} 246}
247static inline u32 fb_mmu_invalidate_cancel_client_id_f(u32 v) 247static inline u32 fb_mmu_invalidate_cancel_client_id_f(u32 v)
248{ 248{
249 return (v & 0x3f) << 9; 249 return (v & 0x3fU) << 9U;
250} 250}
251static inline u32 fb_mmu_invalidate_cancel_client_id_m(void) 251static inline u32 fb_mmu_invalidate_cancel_client_id_m(void)
252{ 252{
253 return 0x3f << 9; 253 return 0x3fU << 9U;
254} 254}
255static inline u32 fb_mmu_invalidate_cancel_client_id_v(u32 r) 255static inline u32 fb_mmu_invalidate_cancel_client_id_v(u32 r)
256{ 256{
257 return (r >> 9) & 0x3f; 257 return (r >> 9U) & 0x3fU;
258} 258}
259static inline u32 fb_mmu_invalidate_cancel_gpc_id_s(void) 259static inline u32 fb_mmu_invalidate_cancel_gpc_id_s(void)
260{ 260{
261 return 5; 261 return 5U;
262} 262}
263static inline u32 fb_mmu_invalidate_cancel_gpc_id_f(u32 v) 263static inline u32 fb_mmu_invalidate_cancel_gpc_id_f(u32 v)
264{ 264{
265 return (v & 0x1f) << 15; 265 return (v & 0x1fU) << 15U;
266} 266}
267static inline u32 fb_mmu_invalidate_cancel_gpc_id_m(void) 267static inline u32 fb_mmu_invalidate_cancel_gpc_id_m(void)
268{ 268{
269 return 0x1f << 15; 269 return 0x1fU << 15U;
270} 270}
271static inline u32 fb_mmu_invalidate_cancel_gpc_id_v(u32 r) 271static inline u32 fb_mmu_invalidate_cancel_gpc_id_v(u32 r)
272{ 272{
273 return (r >> 15) & 0x1f; 273 return (r >> 15U) & 0x1fU;
274} 274}
275static inline u32 fb_mmu_invalidate_cancel_client_type_s(void) 275static inline u32 fb_mmu_invalidate_cancel_client_type_s(void)
276{ 276{
277 return 1; 277 return 1U;
278} 278}
279static inline u32 fb_mmu_invalidate_cancel_client_type_f(u32 v) 279static inline u32 fb_mmu_invalidate_cancel_client_type_f(u32 v)
280{ 280{
281 return (v & 0x1) << 20; 281 return (v & 0x1U) << 20U;
282} 282}
283static inline u32 fb_mmu_invalidate_cancel_client_type_m(void) 283static inline u32 fb_mmu_invalidate_cancel_client_type_m(void)
284{ 284{
285 return 0x1 << 20; 285 return 0x1U << 20U;
286} 286}
287static inline u32 fb_mmu_invalidate_cancel_client_type_v(u32 r) 287static inline u32 fb_mmu_invalidate_cancel_client_type_v(u32 r)
288{ 288{
289 return (r >> 20) & 0x1; 289 return (r >> 20U) & 0x1U;
290} 290}
291static inline u32 fb_mmu_invalidate_cancel_client_type_gpc_f(void) 291static inline u32 fb_mmu_invalidate_cancel_client_type_gpc_f(void)
292{ 292{
293 return 0x0; 293 return 0x0U;
294} 294}
295static inline u32 fb_mmu_invalidate_cancel_client_type_hub_f(void) 295static inline u32 fb_mmu_invalidate_cancel_client_type_hub_f(void)
296{ 296{
297 return 0x100000; 297 return 0x100000U;
298} 298}
299static inline u32 fb_mmu_invalidate_cancel_cache_level_s(void) 299static inline u32 fb_mmu_invalidate_cancel_cache_level_s(void)
300{ 300{
301 return 3; 301 return 3U;
302} 302}
303static inline u32 fb_mmu_invalidate_cancel_cache_level_f(u32 v) 303static inline u32 fb_mmu_invalidate_cancel_cache_level_f(u32 v)
304{ 304{
305 return (v & 0x7) << 24; 305 return (v & 0x7U) << 24U;
306} 306}
307static inline u32 fb_mmu_invalidate_cancel_cache_level_m(void) 307static inline u32 fb_mmu_invalidate_cancel_cache_level_m(void)
308{ 308{
309 return 0x7 << 24; 309 return 0x7U << 24U;
310} 310}
311static inline u32 fb_mmu_invalidate_cancel_cache_level_v(u32 r) 311static inline u32 fb_mmu_invalidate_cancel_cache_level_v(u32 r)
312{ 312{
313 return (r >> 24) & 0x7; 313 return (r >> 24U) & 0x7U;
314} 314}
315static inline u32 fb_mmu_invalidate_cancel_cache_level_all_f(void) 315static inline u32 fb_mmu_invalidate_cancel_cache_level_all_f(void)
316{ 316{
317 return 0x0; 317 return 0x0U;
318} 318}
319static inline u32 fb_mmu_invalidate_cancel_cache_level_pte_only_f(void) 319static inline u32 fb_mmu_invalidate_cancel_cache_level_pte_only_f(void)
320{ 320{
321 return 0x1000000; 321 return 0x1000000U;
322} 322}
323static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde0_f(void) 323static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde0_f(void)
324{ 324{
325 return 0x2000000; 325 return 0x2000000U;
326} 326}
327static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde1_f(void) 327static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde1_f(void)
328{ 328{
329 return 0x3000000; 329 return 0x3000000U;
330} 330}
331static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde2_f(void) 331static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde2_f(void)
332{ 332{
333 return 0x4000000; 333 return 0x4000000U;
334} 334}
335static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde3_f(void) 335static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde3_f(void)
336{ 336{
337 return 0x5000000; 337 return 0x5000000U;
338} 338}
339static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde4_f(void) 339static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde4_f(void)
340{ 340{
341 return 0x6000000; 341 return 0x6000000U;
342} 342}
343static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde5_f(void) 343static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde5_f(void)
344{ 344{
345 return 0x7000000; 345 return 0x7000000U;
346} 346}
347static inline u32 fb_mmu_invalidate_trigger_s(void) 347static inline u32 fb_mmu_invalidate_trigger_s(void)
348{ 348{
349 return 1; 349 return 1U;
350} 350}
351static inline u32 fb_mmu_invalidate_trigger_f(u32 v) 351static inline u32 fb_mmu_invalidate_trigger_f(u32 v)
352{ 352{
353 return (v & 0x1) << 31; 353 return (v & 0x1U) << 31U;
354} 354}
355static inline u32 fb_mmu_invalidate_trigger_m(void) 355static inline u32 fb_mmu_invalidate_trigger_m(void)
356{ 356{
357 return 0x1 << 31; 357 return 0x1U << 31U;
358} 358}
359static inline u32 fb_mmu_invalidate_trigger_v(u32 r) 359static inline u32 fb_mmu_invalidate_trigger_v(u32 r)
360{ 360{
361 return (r >> 31) & 0x1; 361 return (r >> 31U) & 0x1U;
362} 362}
363static inline u32 fb_mmu_invalidate_trigger_true_f(void) 363static inline u32 fb_mmu_invalidate_trigger_true_f(void)
364{ 364{
365 return 0x80000000; 365 return 0x80000000U;
366} 366}
367static inline u32 fb_mmu_debug_wr_r(void) 367static inline u32 fb_mmu_debug_wr_r(void)
368{ 368{
369 return 0x00100cc8; 369 return 0x00100cc8U;
370} 370}
371static inline u32 fb_mmu_debug_wr_aperture_s(void) 371static inline u32 fb_mmu_debug_wr_aperture_s(void)
372{ 372{
373 return 2; 373 return 2U;
374} 374}
375static inline u32 fb_mmu_debug_wr_aperture_f(u32 v) 375static inline u32 fb_mmu_debug_wr_aperture_f(u32 v)
376{ 376{
377 return (v & 0x3) << 0; 377 return (v & 0x3U) << 0U;
378} 378}
379static inline u32 fb_mmu_debug_wr_aperture_m(void) 379static inline u32 fb_mmu_debug_wr_aperture_m(void)
380{ 380{
381 return 0x3 << 0; 381 return 0x3U << 0U;
382} 382}
383static inline u32 fb_mmu_debug_wr_aperture_v(u32 r) 383static inline u32 fb_mmu_debug_wr_aperture_v(u32 r)
384{ 384{
385 return (r >> 0) & 0x3; 385 return (r >> 0U) & 0x3U;
386} 386}
387static inline u32 fb_mmu_debug_wr_aperture_vid_mem_f(void) 387static inline u32 fb_mmu_debug_wr_aperture_vid_mem_f(void)
388{ 388{
389 return 0x0; 389 return 0x0U;
390} 390}
391static inline u32 fb_mmu_debug_wr_aperture_sys_mem_coh_f(void) 391static inline u32 fb_mmu_debug_wr_aperture_sys_mem_coh_f(void)
392{ 392{
393 return 0x2; 393 return 0x2U;
394} 394}
395static inline u32 fb_mmu_debug_wr_aperture_sys_mem_ncoh_f(void) 395static inline u32 fb_mmu_debug_wr_aperture_sys_mem_ncoh_f(void)
396{ 396{
397 return 0x3; 397 return 0x3U;
398} 398}
399static inline u32 fb_mmu_debug_wr_vol_false_f(void) 399static inline u32 fb_mmu_debug_wr_vol_false_f(void)
400{ 400{
401 return 0x0; 401 return 0x0U;
402} 402}
403static inline u32 fb_mmu_debug_wr_vol_true_v(void) 403static inline u32 fb_mmu_debug_wr_vol_true_v(void)
404{ 404{
405 return 0x00000001; 405 return 0x00000001U;
406} 406}
407static inline u32 fb_mmu_debug_wr_vol_true_f(void) 407static inline u32 fb_mmu_debug_wr_vol_true_f(void)
408{ 408{
409 return 0x4; 409 return 0x4U;
410} 410}
411static inline u32 fb_mmu_debug_wr_addr_f(u32 v) 411static inline u32 fb_mmu_debug_wr_addr_f(u32 v)
412{ 412{
413 return (v & 0xfffffff) << 4; 413 return (v & 0xfffffffU) << 4U;
414} 414}
415static inline u32 fb_mmu_debug_wr_addr_alignment_v(void) 415static inline u32 fb_mmu_debug_wr_addr_alignment_v(void)
416{ 416{
417 return 0x0000000c; 417 return 0x0000000cU;
418} 418}
419static inline u32 fb_mmu_debug_rd_r(void) 419static inline u32 fb_mmu_debug_rd_r(void)
420{ 420{
421 return 0x00100ccc; 421 return 0x00100cccU;
422} 422}
423static inline u32 fb_mmu_debug_rd_aperture_vid_mem_f(void) 423static inline u32 fb_mmu_debug_rd_aperture_vid_mem_f(void)
424{ 424{
425 return 0x0; 425 return 0x0U;
426} 426}
427static inline u32 fb_mmu_debug_rd_aperture_sys_mem_coh_f(void) 427static inline u32 fb_mmu_debug_rd_aperture_sys_mem_coh_f(void)
428{ 428{
429 return 0x2; 429 return 0x2U;
430} 430}
431static inline u32 fb_mmu_debug_rd_aperture_sys_mem_ncoh_f(void) 431static inline u32 fb_mmu_debug_rd_aperture_sys_mem_ncoh_f(void)
432{ 432{
433 return 0x3; 433 return 0x3U;
434} 434}
435static inline u32 fb_mmu_debug_rd_vol_false_f(void) 435static inline u32 fb_mmu_debug_rd_vol_false_f(void)
436{ 436{
437 return 0x0; 437 return 0x0U;
438} 438}
439static inline u32 fb_mmu_debug_rd_addr_f(u32 v) 439static inline u32 fb_mmu_debug_rd_addr_f(u32 v)
440{ 440{
441 return (v & 0xfffffff) << 4; 441 return (v & 0xfffffffU) << 4U;
442} 442}
443static inline u32 fb_mmu_debug_rd_addr_alignment_v(void) 443static inline u32 fb_mmu_debug_rd_addr_alignment_v(void)
444{ 444{
445 return 0x0000000c; 445 return 0x0000000cU;
446} 446}
447static inline u32 fb_mmu_debug_ctrl_r(void) 447static inline u32 fb_mmu_debug_ctrl_r(void)
448{ 448{
449 return 0x00100cc4; 449 return 0x00100cc4U;
450} 450}
451static inline u32 fb_mmu_debug_ctrl_debug_v(u32 r) 451static inline u32 fb_mmu_debug_ctrl_debug_v(u32 r)
452{ 452{
453 return (r >> 16) & 0x1; 453 return (r >> 16U) & 0x1U;
454} 454}
455static inline u32 fb_mmu_debug_ctrl_debug_m(void) 455static inline u32 fb_mmu_debug_ctrl_debug_m(void)
456{ 456{
457 return 0x1 << 16; 457 return 0x1U << 16U;
458} 458}
459static inline u32 fb_mmu_debug_ctrl_debug_enabled_v(void) 459static inline u32 fb_mmu_debug_ctrl_debug_enabled_v(void)
460{ 460{
461 return 0x00000001; 461 return 0x00000001U;
462} 462}
463static inline u32 fb_mmu_debug_ctrl_debug_disabled_v(void) 463static inline u32 fb_mmu_debug_ctrl_debug_disabled_v(void)
464{ 464{
465 return 0x00000000; 465 return 0x00000000U;
466} 466}
467static inline u32 fb_mmu_vpr_info_r(void) 467static inline u32 fb_mmu_vpr_info_r(void)
468{ 468{
469 return 0x00100cd0; 469 return 0x00100cd0U;
470} 470}
471static inline u32 fb_mmu_vpr_info_fetch_v(u32 r) 471static inline u32 fb_mmu_vpr_info_fetch_v(u32 r)
472{ 472{
473 return (r >> 2) & 0x1; 473 return (r >> 2U) & 0x1U;
474} 474}
475static inline u32 fb_mmu_vpr_info_fetch_false_v(void) 475static inline u32 fb_mmu_vpr_info_fetch_false_v(void)
476{ 476{
477 return 0x00000000; 477 return 0x00000000U;
478} 478}
479static inline u32 fb_mmu_vpr_info_fetch_true_v(void) 479static inline u32 fb_mmu_vpr_info_fetch_true_v(void)
480{ 480{
481 return 0x00000001; 481 return 0x00000001U;
482} 482}
483static inline u32 fb_niso_flush_sysmem_addr_r(void) 483static inline u32 fb_niso_flush_sysmem_addr_r(void)
484{ 484{
485 return 0x00100c10; 485 return 0x00100c10U;
486} 486}
487#endif 487#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fifo_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fifo_gp10b.h
index c2335235..71701626 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fifo_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fifo_gp10b.h
@@ -58,642 +58,642 @@
58 58
59static inline u32 fifo_bar1_base_r(void) 59static inline u32 fifo_bar1_base_r(void)
60{ 60{
61 return 0x00002254; 61 return 0x00002254U;
62} 62}
63static inline u32 fifo_bar1_base_ptr_f(u32 v) 63static inline u32 fifo_bar1_base_ptr_f(u32 v)
64{ 64{
65 return (v & 0xfffffff) << 0; 65 return (v & 0xfffffffU) << 0U;
66} 66}
67static inline u32 fifo_bar1_base_ptr_align_shift_v(void) 67static inline u32 fifo_bar1_base_ptr_align_shift_v(void)
68{ 68{
69 return 0x0000000c; 69 return 0x0000000cU;
70} 70}
71static inline u32 fifo_bar1_base_valid_false_f(void) 71static inline u32 fifo_bar1_base_valid_false_f(void)
72{ 72{
73 return 0x0; 73 return 0x0U;
74} 74}
75static inline u32 fifo_bar1_base_valid_true_f(void) 75static inline u32 fifo_bar1_base_valid_true_f(void)
76{ 76{
77 return 0x10000000; 77 return 0x10000000U;
78} 78}
79static inline u32 fifo_runlist_base_r(void) 79static inline u32 fifo_runlist_base_r(void)
80{ 80{
81 return 0x00002270; 81 return 0x00002270U;
82} 82}
83static inline u32 fifo_runlist_base_ptr_f(u32 v) 83static inline u32 fifo_runlist_base_ptr_f(u32 v)
84{ 84{
85 return (v & 0xfffffff) << 0; 85 return (v & 0xfffffffU) << 0U;
86} 86}
87static inline u32 fifo_runlist_base_target_vid_mem_f(void) 87static inline u32 fifo_runlist_base_target_vid_mem_f(void)
88{ 88{
89 return 0x0; 89 return 0x0U;
90} 90}
91static inline u32 fifo_runlist_base_target_sys_mem_coh_f(void) 91static inline u32 fifo_runlist_base_target_sys_mem_coh_f(void)
92{ 92{
93 return 0x20000000; 93 return 0x20000000U;
94} 94}
95static inline u32 fifo_runlist_base_target_sys_mem_ncoh_f(void) 95static inline u32 fifo_runlist_base_target_sys_mem_ncoh_f(void)
96{ 96{
97 return 0x30000000; 97 return 0x30000000U;
98} 98}
99static inline u32 fifo_runlist_r(void) 99static inline u32 fifo_runlist_r(void)
100{ 100{
101 return 0x00002274; 101 return 0x00002274U;
102} 102}
103static inline u32 fifo_runlist_engine_f(u32 v) 103static inline u32 fifo_runlist_engine_f(u32 v)
104{ 104{
105 return (v & 0xf) << 20; 105 return (v & 0xfU) << 20U;
106} 106}
107static inline u32 fifo_eng_runlist_base_r(u32 i) 107static inline u32 fifo_eng_runlist_base_r(u32 i)
108{ 108{
109 return 0x00002280 + i*8; 109 return 0x00002280U + i*8U;
110} 110}
111static inline u32 fifo_eng_runlist_base__size_1_v(void) 111static inline u32 fifo_eng_runlist_base__size_1_v(void)
112{ 112{
113 return 0x00000001; 113 return 0x00000001U;
114} 114}
115static inline u32 fifo_eng_runlist_r(u32 i) 115static inline u32 fifo_eng_runlist_r(u32 i)
116{ 116{
117 return 0x00002284 + i*8; 117 return 0x00002284U + i*8U;
118} 118}
119static inline u32 fifo_eng_runlist__size_1_v(void) 119static inline u32 fifo_eng_runlist__size_1_v(void)
120{ 120{
121 return 0x00000001; 121 return 0x00000001U;
122} 122}
123static inline u32 fifo_eng_runlist_length_f(u32 v) 123static inline u32 fifo_eng_runlist_length_f(u32 v)
124{ 124{
125 return (v & 0xffff) << 0; 125 return (v & 0xffffU) << 0U;
126} 126}
127static inline u32 fifo_eng_runlist_length_max_v(void) 127static inline u32 fifo_eng_runlist_length_max_v(void)
128{ 128{
129 return 0x0000ffff; 129 return 0x0000ffffU;
130} 130}
131static inline u32 fifo_eng_runlist_pending_true_f(void) 131static inline u32 fifo_eng_runlist_pending_true_f(void)
132{ 132{
133 return 0x100000; 133 return 0x100000U;
134} 134}
135static inline u32 fifo_pb_timeslice_r(u32 i) 135static inline u32 fifo_pb_timeslice_r(u32 i)
136{ 136{
137 return 0x00002350 + i*4; 137 return 0x00002350U + i*4U;
138} 138}
139static inline u32 fifo_pb_timeslice_timeout_16_f(void) 139static inline u32 fifo_pb_timeslice_timeout_16_f(void)
140{ 140{
141 return 0x10; 141 return 0x10U;
142} 142}
143static inline u32 fifo_pb_timeslice_timescale_0_f(void) 143static inline u32 fifo_pb_timeslice_timescale_0_f(void)
144{ 144{
145 return 0x0; 145 return 0x0U;
146} 146}
147static inline u32 fifo_pb_timeslice_enable_true_f(void) 147static inline u32 fifo_pb_timeslice_enable_true_f(void)
148{ 148{
149 return 0x10000000; 149 return 0x10000000U;
150} 150}
151static inline u32 fifo_pbdma_map_r(u32 i) 151static inline u32 fifo_pbdma_map_r(u32 i)
152{ 152{
153 return 0x00002390 + i*4; 153 return 0x00002390U + i*4U;
154} 154}
155static inline u32 fifo_intr_0_r(void) 155static inline u32 fifo_intr_0_r(void)
156{ 156{
157 return 0x00002100; 157 return 0x00002100U;
158} 158}
159static inline u32 fifo_intr_0_bind_error_pending_f(void) 159static inline u32 fifo_intr_0_bind_error_pending_f(void)
160{ 160{
161 return 0x1; 161 return 0x1U;
162} 162}
163static inline u32 fifo_intr_0_bind_error_reset_f(void) 163static inline u32 fifo_intr_0_bind_error_reset_f(void)
164{ 164{
165 return 0x1; 165 return 0x1U;
166} 166}
167static inline u32 fifo_intr_0_sched_error_pending_f(void) 167static inline u32 fifo_intr_0_sched_error_pending_f(void)
168{ 168{
169 return 0x100; 169 return 0x100U;
170} 170}
171static inline u32 fifo_intr_0_sched_error_reset_f(void) 171static inline u32 fifo_intr_0_sched_error_reset_f(void)
172{ 172{
173 return 0x100; 173 return 0x100U;
174} 174}
175static inline u32 fifo_intr_0_chsw_error_pending_f(void) 175static inline u32 fifo_intr_0_chsw_error_pending_f(void)
176{ 176{
177 return 0x10000; 177 return 0x10000U;
178} 178}
179static inline u32 fifo_intr_0_chsw_error_reset_f(void) 179static inline u32 fifo_intr_0_chsw_error_reset_f(void)
180{ 180{
181 return 0x10000; 181 return 0x10000U;
182} 182}
183static inline u32 fifo_intr_0_fb_flush_timeout_pending_f(void) 183static inline u32 fifo_intr_0_fb_flush_timeout_pending_f(void)
184{ 184{
185 return 0x800000; 185 return 0x800000U;
186} 186}
187static inline u32 fifo_intr_0_fb_flush_timeout_reset_f(void) 187static inline u32 fifo_intr_0_fb_flush_timeout_reset_f(void)
188{ 188{
189 return 0x800000; 189 return 0x800000U;
190} 190}
191static inline u32 fifo_intr_0_lb_error_pending_f(void) 191static inline u32 fifo_intr_0_lb_error_pending_f(void)
192{ 192{
193 return 0x1000000; 193 return 0x1000000U;
194} 194}
195static inline u32 fifo_intr_0_lb_error_reset_f(void) 195static inline u32 fifo_intr_0_lb_error_reset_f(void)
196{ 196{
197 return 0x1000000; 197 return 0x1000000U;
198} 198}
199static inline u32 fifo_intr_0_replayable_fault_error_pending_f(void) 199static inline u32 fifo_intr_0_replayable_fault_error_pending_f(void)
200{ 200{
201 return 0x2000000; 201 return 0x2000000U;
202} 202}
203static inline u32 fifo_intr_0_dropped_mmu_fault_pending_f(void) 203static inline u32 fifo_intr_0_dropped_mmu_fault_pending_f(void)
204{ 204{
205 return 0x8000000; 205 return 0x8000000U;
206} 206}
207static inline u32 fifo_intr_0_dropped_mmu_fault_reset_f(void) 207static inline u32 fifo_intr_0_dropped_mmu_fault_reset_f(void)
208{ 208{
209 return 0x8000000; 209 return 0x8000000U;
210} 210}
211static inline u32 fifo_intr_0_mmu_fault_pending_f(void) 211static inline u32 fifo_intr_0_mmu_fault_pending_f(void)
212{ 212{
213 return 0x10000000; 213 return 0x10000000U;
214} 214}
215static inline u32 fifo_intr_0_pbdma_intr_pending_f(void) 215static inline u32 fifo_intr_0_pbdma_intr_pending_f(void)
216{ 216{
217 return 0x20000000; 217 return 0x20000000U;
218} 218}
219static inline u32 fifo_intr_0_runlist_event_pending_f(void) 219static inline u32 fifo_intr_0_runlist_event_pending_f(void)
220{ 220{
221 return 0x40000000; 221 return 0x40000000U;
222} 222}
223static inline u32 fifo_intr_0_channel_intr_pending_f(void) 223static inline u32 fifo_intr_0_channel_intr_pending_f(void)
224{ 224{
225 return 0x80000000; 225 return 0x80000000U;
226} 226}
227static inline u32 fifo_intr_en_0_r(void) 227static inline u32 fifo_intr_en_0_r(void)
228{ 228{
229 return 0x00002140; 229 return 0x00002140U;
230} 230}
231static inline u32 fifo_intr_en_0_sched_error_f(u32 v) 231static inline u32 fifo_intr_en_0_sched_error_f(u32 v)
232{ 232{
233 return (v & 0x1) << 8; 233 return (v & 0x1U) << 8U;
234} 234}
235static inline u32 fifo_intr_en_0_sched_error_m(void) 235static inline u32 fifo_intr_en_0_sched_error_m(void)
236{ 236{
237 return 0x1 << 8; 237 return 0x1U << 8U;
238} 238}
239static inline u32 fifo_intr_en_0_mmu_fault_f(u32 v) 239static inline u32 fifo_intr_en_0_mmu_fault_f(u32 v)
240{ 240{
241 return (v & 0x1) << 28; 241 return (v & 0x1U) << 28U;
242} 242}
243static inline u32 fifo_intr_en_0_mmu_fault_m(void) 243static inline u32 fifo_intr_en_0_mmu_fault_m(void)
244{ 244{
245 return 0x1 << 28; 245 return 0x1U << 28U;
246} 246}
247static inline u32 fifo_intr_en_1_r(void) 247static inline u32 fifo_intr_en_1_r(void)
248{ 248{
249 return 0x00002528; 249 return 0x00002528U;
250} 250}
251static inline u32 fifo_intr_bind_error_r(void) 251static inline u32 fifo_intr_bind_error_r(void)
252{ 252{
253 return 0x0000252c; 253 return 0x0000252cU;
254} 254}
255static inline u32 fifo_intr_sched_error_r(void) 255static inline u32 fifo_intr_sched_error_r(void)
256{ 256{
257 return 0x0000254c; 257 return 0x0000254cU;
258} 258}
259static inline u32 fifo_intr_sched_error_code_f(u32 v) 259static inline u32 fifo_intr_sched_error_code_f(u32 v)
260{ 260{
261 return (v & 0xff) << 0; 261 return (v & 0xffU) << 0U;
262} 262}
263static inline u32 fifo_intr_sched_error_code_ctxsw_timeout_v(void) 263static inline u32 fifo_intr_sched_error_code_ctxsw_timeout_v(void)
264{ 264{
265 return 0x0000000a; 265 return 0x0000000aU;
266} 266}
267static inline u32 fifo_intr_chsw_error_r(void) 267static inline u32 fifo_intr_chsw_error_r(void)
268{ 268{
269 return 0x0000256c; 269 return 0x0000256cU;
270} 270}
271static inline u32 fifo_intr_mmu_fault_id_r(void) 271static inline u32 fifo_intr_mmu_fault_id_r(void)
272{ 272{
273 return 0x0000259c; 273 return 0x0000259cU;
274} 274}
275static inline u32 fifo_intr_mmu_fault_eng_id_graphics_v(void) 275static inline u32 fifo_intr_mmu_fault_eng_id_graphics_v(void)
276{ 276{
277 return 0x00000000; 277 return 0x00000000U;
278} 278}
279static inline u32 fifo_intr_mmu_fault_eng_id_graphics_f(void) 279static inline u32 fifo_intr_mmu_fault_eng_id_graphics_f(void)
280{ 280{
281 return 0x0; 281 return 0x0U;
282} 282}
283static inline u32 fifo_intr_mmu_fault_inst_r(u32 i) 283static inline u32 fifo_intr_mmu_fault_inst_r(u32 i)
284{ 284{
285 return 0x00002800 + i*16; 285 return 0x00002800U + i*16U;
286} 286}
287static inline u32 fifo_intr_mmu_fault_inst_ptr_v(u32 r) 287static inline u32 fifo_intr_mmu_fault_inst_ptr_v(u32 r)
288{ 288{
289 return (r >> 0) & 0xfffffff; 289 return (r >> 0U) & 0xfffffffU;
290} 290}
291static inline u32 fifo_intr_mmu_fault_inst_ptr_align_shift_v(void) 291static inline u32 fifo_intr_mmu_fault_inst_ptr_align_shift_v(void)
292{ 292{
293 return 0x0000000c; 293 return 0x0000000cU;
294} 294}
295static inline u32 fifo_intr_mmu_fault_lo_r(u32 i) 295static inline u32 fifo_intr_mmu_fault_lo_r(u32 i)
296{ 296{
297 return 0x00002804 + i*16; 297 return 0x00002804U + i*16U;
298} 298}
299static inline u32 fifo_intr_mmu_fault_hi_r(u32 i) 299static inline u32 fifo_intr_mmu_fault_hi_r(u32 i)
300{ 300{
301 return 0x00002808 + i*16; 301 return 0x00002808U + i*16U;
302} 302}
303static inline u32 fifo_intr_mmu_fault_info_r(u32 i) 303static inline u32 fifo_intr_mmu_fault_info_r(u32 i)
304{ 304{
305 return 0x0000280c + i*16; 305 return 0x0000280cU + i*16U;
306} 306}
307static inline u32 fifo_intr_mmu_fault_info_type_v(u32 r) 307static inline u32 fifo_intr_mmu_fault_info_type_v(u32 r)
308{ 308{
309 return (r >> 0) & 0x1f; 309 return (r >> 0U) & 0x1fU;
310} 310}
311static inline u32 fifo_intr_mmu_fault_info_access_type_v(u32 r) 311static inline u32 fifo_intr_mmu_fault_info_access_type_v(u32 r)
312{ 312{
313 return (r >> 16) & 0x7; 313 return (r >> 16U) & 0x7U;
314} 314}
315static inline u32 fifo_intr_mmu_fault_info_client_type_v(u32 r) 315static inline u32 fifo_intr_mmu_fault_info_client_type_v(u32 r)
316{ 316{
317 return (r >> 20) & 0x1; 317 return (r >> 20U) & 0x1U;
318} 318}
319static inline u32 fifo_intr_mmu_fault_info_client_type_gpc_v(void) 319static inline u32 fifo_intr_mmu_fault_info_client_type_gpc_v(void)
320{ 320{
321 return 0x00000000; 321 return 0x00000000U;
322} 322}
323static inline u32 fifo_intr_mmu_fault_info_client_type_hub_v(void) 323static inline u32 fifo_intr_mmu_fault_info_client_type_hub_v(void)
324{ 324{
325 return 0x00000001; 325 return 0x00000001U;
326} 326}
327static inline u32 fifo_intr_mmu_fault_info_client_v(u32 r) 327static inline u32 fifo_intr_mmu_fault_info_client_v(u32 r)
328{ 328{
329 return (r >> 8) & 0x7f; 329 return (r >> 8U) & 0x7fU;
330} 330}
331static inline u32 fifo_intr_pbdma_id_r(void) 331static inline u32 fifo_intr_pbdma_id_r(void)
332{ 332{
333 return 0x000025a0; 333 return 0x000025a0U;
334} 334}
335static inline u32 fifo_intr_pbdma_id_status_f(u32 v, u32 i) 335static inline u32 fifo_intr_pbdma_id_status_f(u32 v, u32 i)
336{ 336{
337 return (v & 0x1) << (0 + i*1); 337 return (v & 0x1U) << (0U + i*1U);
338} 338}
339static inline u32 fifo_intr_pbdma_id_status_v(u32 r, u32 i) 339static inline u32 fifo_intr_pbdma_id_status_v(u32 r, u32 i)
340{ 340{
341 return (r >> (0 + i*1)) & 0x1; 341 return (r >> (0U + i*1U)) & 0x1U;
342} 342}
343static inline u32 fifo_intr_pbdma_id_status__size_1_v(void) 343static inline u32 fifo_intr_pbdma_id_status__size_1_v(void)
344{ 344{
345 return 0x00000001; 345 return 0x00000001U;
346} 346}
347static inline u32 fifo_intr_runlist_r(void) 347static inline u32 fifo_intr_runlist_r(void)
348{ 348{
349 return 0x00002a00; 349 return 0x00002a00U;
350} 350}
351static inline u32 fifo_fb_timeout_r(void) 351static inline u32 fifo_fb_timeout_r(void)
352{ 352{
353 return 0x00002a04; 353 return 0x00002a04U;
354} 354}
355static inline u32 fifo_fb_timeout_period_m(void) 355static inline u32 fifo_fb_timeout_period_m(void)
356{ 356{
357 return 0x3fffffff << 0; 357 return 0x3fffffffU << 0U;
358} 358}
359static inline u32 fifo_fb_timeout_period_max_f(void) 359static inline u32 fifo_fb_timeout_period_max_f(void)
360{ 360{
361 return 0x3fffffff; 361 return 0x3fffffffU;
362} 362}
363static inline u32 fifo_error_sched_disable_r(void) 363static inline u32 fifo_error_sched_disable_r(void)
364{ 364{
365 return 0x0000262c; 365 return 0x0000262cU;
366} 366}
367static inline u32 fifo_sched_disable_r(void) 367static inline u32 fifo_sched_disable_r(void)
368{ 368{
369 return 0x00002630; 369 return 0x00002630U;
370} 370}
371static inline u32 fifo_sched_disable_runlist_f(u32 v, u32 i) 371static inline u32 fifo_sched_disable_runlist_f(u32 v, u32 i)
372{ 372{
373 return (v & 0x1) << (0 + i*1); 373 return (v & 0x1U) << (0U + i*1U);
374} 374}
375static inline u32 fifo_sched_disable_runlist_m(u32 i) 375static inline u32 fifo_sched_disable_runlist_m(u32 i)
376{ 376{
377 return 0x1 << (0 + i*1); 377 return 0x1U << (0U + i*1U);
378} 378}
379static inline u32 fifo_sched_disable_true_v(void) 379static inline u32 fifo_sched_disable_true_v(void)
380{ 380{
381 return 0x00000001; 381 return 0x00000001U;
382} 382}
383static inline u32 fifo_preempt_r(void) 383static inline u32 fifo_preempt_r(void)
384{ 384{
385 return 0x00002634; 385 return 0x00002634U;
386} 386}
387static inline u32 fifo_preempt_pending_true_f(void) 387static inline u32 fifo_preempt_pending_true_f(void)
388{ 388{
389 return 0x100000; 389 return 0x100000U;
390} 390}
391static inline u32 fifo_preempt_type_channel_f(void) 391static inline u32 fifo_preempt_type_channel_f(void)
392{ 392{
393 return 0x0; 393 return 0x0U;
394} 394}
395static inline u32 fifo_preempt_type_tsg_f(void) 395static inline u32 fifo_preempt_type_tsg_f(void)
396{ 396{
397 return 0x1000000; 397 return 0x1000000U;
398} 398}
399static inline u32 fifo_preempt_chid_f(u32 v) 399static inline u32 fifo_preempt_chid_f(u32 v)
400{ 400{
401 return (v & 0xfff) << 0; 401 return (v & 0xfffU) << 0U;
402} 402}
403static inline u32 fifo_preempt_id_f(u32 v) 403static inline u32 fifo_preempt_id_f(u32 v)
404{ 404{
405 return (v & 0xfff) << 0; 405 return (v & 0xfffU) << 0U;
406} 406}
407static inline u32 fifo_trigger_mmu_fault_r(u32 i) 407static inline u32 fifo_trigger_mmu_fault_r(u32 i)
408{ 408{
409 return 0x00002a30 + i*4; 409 return 0x00002a30U + i*4U;
410} 410}
411static inline u32 fifo_trigger_mmu_fault_id_f(u32 v) 411static inline u32 fifo_trigger_mmu_fault_id_f(u32 v)
412{ 412{
413 return (v & 0x1f) << 0; 413 return (v & 0x1fU) << 0U;
414} 414}
415static inline u32 fifo_trigger_mmu_fault_enable_f(u32 v) 415static inline u32 fifo_trigger_mmu_fault_enable_f(u32 v)
416{ 416{
417 return (v & 0x1) << 8; 417 return (v & 0x1U) << 8U;
418} 418}
419static inline u32 fifo_engine_status_r(u32 i) 419static inline u32 fifo_engine_status_r(u32 i)
420{ 420{
421 return 0x00002640 + i*8; 421 return 0x00002640U + i*8U;
422} 422}
423static inline u32 fifo_engine_status__size_1_v(void) 423static inline u32 fifo_engine_status__size_1_v(void)
424{ 424{
425 return 0x00000002; 425 return 0x00000002U;
426} 426}
427static inline u32 fifo_engine_status_id_v(u32 r) 427static inline u32 fifo_engine_status_id_v(u32 r)
428{ 428{
429 return (r >> 0) & 0xfff; 429 return (r >> 0U) & 0xfffU;
430} 430}
431static inline u32 fifo_engine_status_id_type_v(u32 r) 431static inline u32 fifo_engine_status_id_type_v(u32 r)
432{ 432{
433 return (r >> 12) & 0x1; 433 return (r >> 12U) & 0x1U;
434} 434}
435static inline u32 fifo_engine_status_id_type_chid_v(void) 435static inline u32 fifo_engine_status_id_type_chid_v(void)
436{ 436{
437 return 0x00000000; 437 return 0x00000000U;
438} 438}
439static inline u32 fifo_engine_status_id_type_tsgid_v(void) 439static inline u32 fifo_engine_status_id_type_tsgid_v(void)
440{ 440{
441 return 0x00000001; 441 return 0x00000001U;
442} 442}
443static inline u32 fifo_engine_status_ctx_status_v(u32 r) 443static inline u32 fifo_engine_status_ctx_status_v(u32 r)
444{ 444{
445 return (r >> 13) & 0x7; 445 return (r >> 13U) & 0x7U;
446} 446}
447static inline u32 fifo_engine_status_ctx_status_invalid_v(void) 447static inline u32 fifo_engine_status_ctx_status_invalid_v(void)
448{ 448{
449 return 0x00000000; 449 return 0x00000000U;
450} 450}
451static inline u32 fifo_engine_status_ctx_status_valid_v(void) 451static inline u32 fifo_engine_status_ctx_status_valid_v(void)
452{ 452{
453 return 0x00000001; 453 return 0x00000001U;
454} 454}
455static inline u32 fifo_engine_status_ctx_status_ctxsw_load_v(void) 455static inline u32 fifo_engine_status_ctx_status_ctxsw_load_v(void)
456{ 456{
457 return 0x00000005; 457 return 0x00000005U;
458} 458}
459static inline u32 fifo_engine_status_ctx_status_ctxsw_save_v(void) 459static inline u32 fifo_engine_status_ctx_status_ctxsw_save_v(void)
460{ 460{
461 return 0x00000006; 461 return 0x00000006U;
462} 462}
463static inline u32 fifo_engine_status_ctx_status_ctxsw_switch_v(void) 463static inline u32 fifo_engine_status_ctx_status_ctxsw_switch_v(void)
464{ 464{
465 return 0x00000007; 465 return 0x00000007U;
466} 466}
467static inline u32 fifo_engine_status_next_id_v(u32 r) 467static inline u32 fifo_engine_status_next_id_v(u32 r)
468{ 468{
469 return (r >> 16) & 0xfff; 469 return (r >> 16U) & 0xfffU;
470} 470}
471static inline u32 fifo_engine_status_next_id_type_v(u32 r) 471static inline u32 fifo_engine_status_next_id_type_v(u32 r)
472{ 472{
473 return (r >> 28) & 0x1; 473 return (r >> 28U) & 0x1U;
474} 474}
475static inline u32 fifo_engine_status_next_id_type_chid_v(void) 475static inline u32 fifo_engine_status_next_id_type_chid_v(void)
476{ 476{
477 return 0x00000000; 477 return 0x00000000U;
478} 478}
479static inline u32 fifo_engine_status_faulted_v(u32 r) 479static inline u32 fifo_engine_status_faulted_v(u32 r)
480{ 480{
481 return (r >> 30) & 0x1; 481 return (r >> 30U) & 0x1U;
482} 482}
483static inline u32 fifo_engine_status_faulted_true_v(void) 483static inline u32 fifo_engine_status_faulted_true_v(void)
484{ 484{
485 return 0x00000001; 485 return 0x00000001U;
486} 486}
487static inline u32 fifo_engine_status_engine_v(u32 r) 487static inline u32 fifo_engine_status_engine_v(u32 r)
488{ 488{
489 return (r >> 31) & 0x1; 489 return (r >> 31U) & 0x1U;
490} 490}
491static inline u32 fifo_engine_status_engine_idle_v(void) 491static inline u32 fifo_engine_status_engine_idle_v(void)
492{ 492{
493 return 0x00000000; 493 return 0x00000000U;
494} 494}
495static inline u32 fifo_engine_status_engine_busy_v(void) 495static inline u32 fifo_engine_status_engine_busy_v(void)
496{ 496{
497 return 0x00000001; 497 return 0x00000001U;
498} 498}
499static inline u32 fifo_engine_status_ctxsw_v(u32 r) 499static inline u32 fifo_engine_status_ctxsw_v(u32 r)
500{ 500{
501 return (r >> 15) & 0x1; 501 return (r >> 15U) & 0x1U;
502} 502}
503static inline u32 fifo_engine_status_ctxsw_in_progress_v(void) 503static inline u32 fifo_engine_status_ctxsw_in_progress_v(void)
504{ 504{
505 return 0x00000001; 505 return 0x00000001U;
506} 506}
507static inline u32 fifo_engine_status_ctxsw_in_progress_f(void) 507static inline u32 fifo_engine_status_ctxsw_in_progress_f(void)
508{ 508{
509 return 0x8000; 509 return 0x8000U;
510} 510}
511static inline u32 fifo_pbdma_status_r(u32 i) 511static inline u32 fifo_pbdma_status_r(u32 i)
512{ 512{
513 return 0x00003080 + i*4; 513 return 0x00003080U + i*4U;
514} 514}
515static inline u32 fifo_pbdma_status__size_1_v(void) 515static inline u32 fifo_pbdma_status__size_1_v(void)
516{ 516{
517 return 0x00000001; 517 return 0x00000001U;
518} 518}
519static inline u32 fifo_pbdma_status_id_v(u32 r) 519static inline u32 fifo_pbdma_status_id_v(u32 r)
520{ 520{
521 return (r >> 0) & 0xfff; 521 return (r >> 0U) & 0xfffU;
522} 522}
523static inline u32 fifo_pbdma_status_id_type_v(u32 r) 523static inline u32 fifo_pbdma_status_id_type_v(u32 r)
524{ 524{
525 return (r >> 12) & 0x1; 525 return (r >> 12U) & 0x1U;
526} 526}
527static inline u32 fifo_pbdma_status_id_type_chid_v(void) 527static inline u32 fifo_pbdma_status_id_type_chid_v(void)
528{ 528{
529 return 0x00000000; 529 return 0x00000000U;
530} 530}
531static inline u32 fifo_pbdma_status_id_type_tsgid_v(void) 531static inline u32 fifo_pbdma_status_id_type_tsgid_v(void)
532{ 532{
533 return 0x00000001; 533 return 0x00000001U;
534} 534}
535static inline u32 fifo_pbdma_status_chan_status_v(u32 r) 535static inline u32 fifo_pbdma_status_chan_status_v(u32 r)
536{ 536{
537 return (r >> 13) & 0x7; 537 return (r >> 13U) & 0x7U;
538} 538}
539static inline u32 fifo_pbdma_status_chan_status_valid_v(void) 539static inline u32 fifo_pbdma_status_chan_status_valid_v(void)
540{ 540{
541 return 0x00000001; 541 return 0x00000001U;
542} 542}
543static inline u32 fifo_pbdma_status_chan_status_chsw_load_v(void) 543static inline u32 fifo_pbdma_status_chan_status_chsw_load_v(void)
544{ 544{
545 return 0x00000005; 545 return 0x00000005U;
546} 546}
547static inline u32 fifo_pbdma_status_chan_status_chsw_save_v(void) 547static inline u32 fifo_pbdma_status_chan_status_chsw_save_v(void)
548{ 548{
549 return 0x00000006; 549 return 0x00000006U;
550} 550}
551static inline u32 fifo_pbdma_status_chan_status_chsw_switch_v(void) 551static inline u32 fifo_pbdma_status_chan_status_chsw_switch_v(void)
552{ 552{
553 return 0x00000007; 553 return 0x00000007U;
554} 554}
555static inline u32 fifo_pbdma_status_next_id_v(u32 r) 555static inline u32 fifo_pbdma_status_next_id_v(u32 r)
556{ 556{
557 return (r >> 16) & 0xfff; 557 return (r >> 16U) & 0xfffU;
558} 558}
559static inline u32 fifo_pbdma_status_next_id_type_v(u32 r) 559static inline u32 fifo_pbdma_status_next_id_type_v(u32 r)
560{ 560{
561 return (r >> 28) & 0x1; 561 return (r >> 28U) & 0x1U;
562} 562}
563static inline u32 fifo_pbdma_status_next_id_type_chid_v(void) 563static inline u32 fifo_pbdma_status_next_id_type_chid_v(void)
564{ 564{
565 return 0x00000000; 565 return 0x00000000U;
566} 566}
567static inline u32 fifo_pbdma_status_chsw_v(u32 r) 567static inline u32 fifo_pbdma_status_chsw_v(u32 r)
568{ 568{
569 return (r >> 15) & 0x1; 569 return (r >> 15U) & 0x1U;
570} 570}
571static inline u32 fifo_pbdma_status_chsw_in_progress_v(void) 571static inline u32 fifo_pbdma_status_chsw_in_progress_v(void)
572{ 572{
573 return 0x00000001; 573 return 0x00000001U;
574} 574}
575static inline u32 fifo_replay_fault_buffer_lo_r(void) 575static inline u32 fifo_replay_fault_buffer_lo_r(void)
576{ 576{
577 return 0x00002a70; 577 return 0x00002a70U;
578} 578}
579static inline u32 fifo_replay_fault_buffer_lo_enable_v(u32 r) 579static inline u32 fifo_replay_fault_buffer_lo_enable_v(u32 r)
580{ 580{
581 return (r >> 0) & 0x1; 581 return (r >> 0U) & 0x1U;
582} 582}
583static inline u32 fifo_replay_fault_buffer_lo_enable_true_v(void) 583static inline u32 fifo_replay_fault_buffer_lo_enable_true_v(void)
584{ 584{
585 return 0x00000001; 585 return 0x00000001U;
586} 586}
587static inline u32 fifo_replay_fault_buffer_lo_enable_false_v(void) 587static inline u32 fifo_replay_fault_buffer_lo_enable_false_v(void)
588{ 588{
589 return 0x00000000; 589 return 0x00000000U;
590} 590}
591static inline u32 fifo_replay_fault_buffer_lo_base_f(u32 v) 591static inline u32 fifo_replay_fault_buffer_lo_base_f(u32 v)
592{ 592{
593 return (v & 0xfffff) << 12; 593 return (v & 0xfffffU) << 12U;
594} 594}
595static inline u32 fifo_replay_fault_buffer_lo_base_reset_v(void) 595static inline u32 fifo_replay_fault_buffer_lo_base_reset_v(void)
596{ 596{
597 return 0x00000000; 597 return 0x00000000U;
598} 598}
599static inline u32 fifo_replay_fault_buffer_hi_r(void) 599static inline u32 fifo_replay_fault_buffer_hi_r(void)
600{ 600{
601 return 0x00002a74; 601 return 0x00002a74U;
602} 602}
603static inline u32 fifo_replay_fault_buffer_hi_base_f(u32 v) 603static inline u32 fifo_replay_fault_buffer_hi_base_f(u32 v)
604{ 604{
605 return (v & 0xff) << 0; 605 return (v & 0xffU) << 0U;
606} 606}
607static inline u32 fifo_replay_fault_buffer_hi_base_reset_v(void) 607static inline u32 fifo_replay_fault_buffer_hi_base_reset_v(void)
608{ 608{
609 return 0x00000000; 609 return 0x00000000U;
610} 610}
611static inline u32 fifo_replay_fault_buffer_size_r(void) 611static inline u32 fifo_replay_fault_buffer_size_r(void)
612{ 612{
613 return 0x00002a78; 613 return 0x00002a78U;
614} 614}
615static inline u32 fifo_replay_fault_buffer_size_hw_f(u32 v) 615static inline u32 fifo_replay_fault_buffer_size_hw_f(u32 v)
616{ 616{
617 return (v & 0x1ff) << 0; 617 return (v & 0x1ffU) << 0U;
618} 618}
619static inline u32 fifo_replay_fault_buffer_size_hw_entries_v(void) 619static inline u32 fifo_replay_fault_buffer_size_hw_entries_v(void)
620{ 620{
621 return 0x000000c0; 621 return 0x000000c0U;
622} 622}
623static inline u32 fifo_replay_fault_buffer_get_r(void) 623static inline u32 fifo_replay_fault_buffer_get_r(void)
624{ 624{
625 return 0x00002a7c; 625 return 0x00002a7cU;
626} 626}
627static inline u32 fifo_replay_fault_buffer_get_offset_hw_f(u32 v) 627static inline u32 fifo_replay_fault_buffer_get_offset_hw_f(u32 v)
628{ 628{
629 return (v & 0x1ff) << 0; 629 return (v & 0x1ffU) << 0U;
630} 630}
631static inline u32 fifo_replay_fault_buffer_get_offset_hw_init_v(void) 631static inline u32 fifo_replay_fault_buffer_get_offset_hw_init_v(void)
632{ 632{
633 return 0x00000000; 633 return 0x00000000U;
634} 634}
635static inline u32 fifo_replay_fault_buffer_put_r(void) 635static inline u32 fifo_replay_fault_buffer_put_r(void)
636{ 636{
637 return 0x00002a80; 637 return 0x00002a80U;
638} 638}
639static inline u32 fifo_replay_fault_buffer_put_offset_hw_f(u32 v) 639static inline u32 fifo_replay_fault_buffer_put_offset_hw_f(u32 v)
640{ 640{
641 return (v & 0x1ff) << 0; 641 return (v & 0x1ffU) << 0U;
642} 642}
643static inline u32 fifo_replay_fault_buffer_put_offset_hw_init_v(void) 643static inline u32 fifo_replay_fault_buffer_put_offset_hw_init_v(void)
644{ 644{
645 return 0x00000000; 645 return 0x00000000U;
646} 646}
647static inline u32 fifo_replay_fault_buffer_info_r(void) 647static inline u32 fifo_replay_fault_buffer_info_r(void)
648{ 648{
649 return 0x00002a84; 649 return 0x00002a84U;
650} 650}
651static inline u32 fifo_replay_fault_buffer_info_overflow_f(u32 v) 651static inline u32 fifo_replay_fault_buffer_info_overflow_f(u32 v)
652{ 652{
653 return (v & 0x1) << 0; 653 return (v & 0x1U) << 0U;
654} 654}
655static inline u32 fifo_replay_fault_buffer_info_overflow_false_v(void) 655static inline u32 fifo_replay_fault_buffer_info_overflow_false_v(void)
656{ 656{
657 return 0x00000000; 657 return 0x00000000U;
658} 658}
659static inline u32 fifo_replay_fault_buffer_info_overflow_true_v(void) 659static inline u32 fifo_replay_fault_buffer_info_overflow_true_v(void)
660{ 660{
661 return 0x00000001; 661 return 0x00000001U;
662} 662}
663static inline u32 fifo_replay_fault_buffer_info_overflow_clear_v(void) 663static inline u32 fifo_replay_fault_buffer_info_overflow_clear_v(void)
664{ 664{
665 return 0x00000001; 665 return 0x00000001U;
666} 666}
667static inline u32 fifo_replay_fault_buffer_info_write_nack_f(u32 v) 667static inline u32 fifo_replay_fault_buffer_info_write_nack_f(u32 v)
668{ 668{
669 return (v & 0x1) << 24; 669 return (v & 0x1U) << 24U;
670} 670}
671static inline u32 fifo_replay_fault_buffer_info_write_nack_false_v(void) 671static inline u32 fifo_replay_fault_buffer_info_write_nack_false_v(void)
672{ 672{
673 return 0x00000000; 673 return 0x00000000U;
674} 674}
675static inline u32 fifo_replay_fault_buffer_info_write_nack_true_v(void) 675static inline u32 fifo_replay_fault_buffer_info_write_nack_true_v(void)
676{ 676{
677 return 0x00000001; 677 return 0x00000001U;
678} 678}
679static inline u32 fifo_replay_fault_buffer_info_write_nack_clear_v(void) 679static inline u32 fifo_replay_fault_buffer_info_write_nack_clear_v(void)
680{ 680{
681 return 0x00000001; 681 return 0x00000001U;
682} 682}
683static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_f(u32 v) 683static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_f(u32 v)
684{ 684{
685 return (v & 0x1) << 28; 685 return (v & 0x1U) << 28U;
686} 686}
687static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_false_v(void) 687static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_false_v(void)
688{ 688{
689 return 0x00000000; 689 return 0x00000000U;
690} 690}
691static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_true_v(void) 691static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_true_v(void)
692{ 692{
693 return 0x00000001; 693 return 0x00000001U;
694} 694}
695static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_clear_v(void) 695static inline u32 fifo_replay_fault_buffer_info_fault_while_buffer_disabled_clear_v(void)
696{ 696{
697 return 0x00000001; 697 return 0x00000001U;
698} 698}
699#endif 699#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_flush_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_flush_gp10b.h
index 69e8437f..ae6eabf1 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_flush_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_flush_gp10b.h
@@ -58,130 +58,130 @@
58 58
59static inline u32 flush_l2_system_invalidate_r(void) 59static inline u32 flush_l2_system_invalidate_r(void)
60{ 60{
61 return 0x00070004; 61 return 0x00070004U;
62} 62}
63static inline u32 flush_l2_system_invalidate_pending_v(u32 r) 63static inline u32 flush_l2_system_invalidate_pending_v(u32 r)
64{ 64{
65 return (r >> 0) & 0x1; 65 return (r >> 0U) & 0x1U;
66} 66}
67static inline u32 flush_l2_system_invalidate_pending_busy_v(void) 67static inline u32 flush_l2_system_invalidate_pending_busy_v(void)
68{ 68{
69 return 0x00000001; 69 return 0x00000001U;
70} 70}
71static inline u32 flush_l2_system_invalidate_pending_busy_f(void) 71static inline u32 flush_l2_system_invalidate_pending_busy_f(void)
72{ 72{
73 return 0x1; 73 return 0x1U;
74} 74}
75static inline u32 flush_l2_system_invalidate_outstanding_v(u32 r) 75static inline u32 flush_l2_system_invalidate_outstanding_v(u32 r)
76{ 76{
77 return (r >> 1) & 0x1; 77 return (r >> 1U) & 0x1U;
78} 78}
79static inline u32 flush_l2_system_invalidate_outstanding_true_v(void) 79static inline u32 flush_l2_system_invalidate_outstanding_true_v(void)
80{ 80{
81 return 0x00000001; 81 return 0x00000001U;
82} 82}
83static inline u32 flush_l2_flush_dirty_r(void) 83static inline u32 flush_l2_flush_dirty_r(void)
84{ 84{
85 return 0x00070010; 85 return 0x00070010U;
86} 86}
87static inline u32 flush_l2_flush_dirty_pending_v(u32 r) 87static inline u32 flush_l2_flush_dirty_pending_v(u32 r)
88{ 88{
89 return (r >> 0) & 0x1; 89 return (r >> 0U) & 0x1U;
90} 90}
91static inline u32 flush_l2_flush_dirty_pending_empty_v(void) 91static inline u32 flush_l2_flush_dirty_pending_empty_v(void)
92{ 92{
93 return 0x00000000; 93 return 0x00000000U;
94} 94}
95static inline u32 flush_l2_flush_dirty_pending_empty_f(void) 95static inline u32 flush_l2_flush_dirty_pending_empty_f(void)
96{ 96{
97 return 0x0; 97 return 0x0U;
98} 98}
99static inline u32 flush_l2_flush_dirty_pending_busy_v(void) 99static inline u32 flush_l2_flush_dirty_pending_busy_v(void)
100{ 100{
101 return 0x00000001; 101 return 0x00000001U;
102} 102}
103static inline u32 flush_l2_flush_dirty_pending_busy_f(void) 103static inline u32 flush_l2_flush_dirty_pending_busy_f(void)
104{ 104{
105 return 0x1; 105 return 0x1U;
106} 106}
107static inline u32 flush_l2_flush_dirty_outstanding_v(u32 r) 107static inline u32 flush_l2_flush_dirty_outstanding_v(u32 r)
108{ 108{
109 return (r >> 1) & 0x1; 109 return (r >> 1U) & 0x1U;
110} 110}
111static inline u32 flush_l2_flush_dirty_outstanding_false_v(void) 111static inline u32 flush_l2_flush_dirty_outstanding_false_v(void)
112{ 112{
113 return 0x00000000; 113 return 0x00000000U;
114} 114}
115static inline u32 flush_l2_flush_dirty_outstanding_false_f(void) 115static inline u32 flush_l2_flush_dirty_outstanding_false_f(void)
116{ 116{
117 return 0x0; 117 return 0x0U;
118} 118}
119static inline u32 flush_l2_flush_dirty_outstanding_true_v(void) 119static inline u32 flush_l2_flush_dirty_outstanding_true_v(void)
120{ 120{
121 return 0x00000001; 121 return 0x00000001U;
122} 122}
123static inline u32 flush_l2_clean_comptags_r(void) 123static inline u32 flush_l2_clean_comptags_r(void)
124{ 124{
125 return 0x0007000c; 125 return 0x0007000cU;
126} 126}
127static inline u32 flush_l2_clean_comptags_pending_v(u32 r) 127static inline u32 flush_l2_clean_comptags_pending_v(u32 r)
128{ 128{
129 return (r >> 0) & 0x1; 129 return (r >> 0U) & 0x1U;
130} 130}
131static inline u32 flush_l2_clean_comptags_pending_empty_v(void) 131static inline u32 flush_l2_clean_comptags_pending_empty_v(void)
132{ 132{
133 return 0x00000000; 133 return 0x00000000U;
134} 134}
135static inline u32 flush_l2_clean_comptags_pending_empty_f(void) 135static inline u32 flush_l2_clean_comptags_pending_empty_f(void)
136{ 136{
137 return 0x0; 137 return 0x0U;
138} 138}
139static inline u32 flush_l2_clean_comptags_pending_busy_v(void) 139static inline u32 flush_l2_clean_comptags_pending_busy_v(void)
140{ 140{
141 return 0x00000001; 141 return 0x00000001U;
142} 142}
143static inline u32 flush_l2_clean_comptags_pending_busy_f(void) 143static inline u32 flush_l2_clean_comptags_pending_busy_f(void)
144{ 144{
145 return 0x1; 145 return 0x1U;
146} 146}
147static inline u32 flush_l2_clean_comptags_outstanding_v(u32 r) 147static inline u32 flush_l2_clean_comptags_outstanding_v(u32 r)
148{ 148{
149 return (r >> 1) & 0x1; 149 return (r >> 1U) & 0x1U;
150} 150}
151static inline u32 flush_l2_clean_comptags_outstanding_false_v(void) 151static inline u32 flush_l2_clean_comptags_outstanding_false_v(void)
152{ 152{
153 return 0x00000000; 153 return 0x00000000U;
154} 154}
155static inline u32 flush_l2_clean_comptags_outstanding_false_f(void) 155static inline u32 flush_l2_clean_comptags_outstanding_false_f(void)
156{ 156{
157 return 0x0; 157 return 0x0U;
158} 158}
159static inline u32 flush_l2_clean_comptags_outstanding_true_v(void) 159static inline u32 flush_l2_clean_comptags_outstanding_true_v(void)
160{ 160{
161 return 0x00000001; 161 return 0x00000001U;
162} 162}
163static inline u32 flush_fb_flush_r(void) 163static inline u32 flush_fb_flush_r(void)
164{ 164{
165 return 0x00070000; 165 return 0x00070000U;
166} 166}
167static inline u32 flush_fb_flush_pending_v(u32 r) 167static inline u32 flush_fb_flush_pending_v(u32 r)
168{ 168{
169 return (r >> 0) & 0x1; 169 return (r >> 0U) & 0x1U;
170} 170}
171static inline u32 flush_fb_flush_pending_busy_v(void) 171static inline u32 flush_fb_flush_pending_busy_v(void)
172{ 172{
173 return 0x00000001; 173 return 0x00000001U;
174} 174}
175static inline u32 flush_fb_flush_pending_busy_f(void) 175static inline u32 flush_fb_flush_pending_busy_f(void)
176{ 176{
177 return 0x1; 177 return 0x1U;
178} 178}
179static inline u32 flush_fb_flush_outstanding_v(u32 r) 179static inline u32 flush_fb_flush_outstanding_v(u32 r)
180{ 180{
181 return (r >> 1) & 0x1; 181 return (r >> 1U) & 0x1U;
182} 182}
183static inline u32 flush_fb_flush_outstanding_true_v(void) 183static inline u32 flush_fb_flush_outstanding_true_v(void)
184{ 184{
185 return 0x00000001; 185 return 0x00000001U;
186} 186}
187#endif 187#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fuse_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fuse_gp10b.h
index dc5128c4..29107fb8 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fuse_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fuse_gp10b.h
@@ -58,94 +58,94 @@
58 58
59static inline u32 fuse_status_opt_tpc_gpc_r(u32 i) 59static inline u32 fuse_status_opt_tpc_gpc_r(u32 i)
60{ 60{
61 return 0x00021c38 + i*4; 61 return 0x00021c38U + i*4U;
62} 62}
63static inline u32 fuse_ctrl_opt_tpc_gpc_r(u32 i) 63static inline u32 fuse_ctrl_opt_tpc_gpc_r(u32 i)
64{ 64{
65 return 0x00021838 + i*4; 65 return 0x00021838U + i*4U;
66} 66}
67static inline u32 fuse_ctrl_opt_ram_svop_pdp_r(void) 67static inline u32 fuse_ctrl_opt_ram_svop_pdp_r(void)
68{ 68{
69 return 0x00021944; 69 return 0x00021944U;
70} 70}
71static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_f(u32 v) 71static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_f(u32 v)
72{ 72{
73 return (v & 0xff) << 0; 73 return (v & 0xffU) << 0U;
74} 74}
75static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_m(void) 75static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_m(void)
76{ 76{
77 return 0xff << 0; 77 return 0xffU << 0U;
78} 78}
79static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_v(u32 r) 79static inline u32 fuse_ctrl_opt_ram_svop_pdp_data_v(u32 r)
80{ 80{
81 return (r >> 0) & 0xff; 81 return (r >> 0U) & 0xffU;
82} 82}
83static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_r(void) 83static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_r(void)
84{ 84{
85 return 0x00021948; 85 return 0x00021948U;
86} 86}
87static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_f(u32 v) 87static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_f(u32 v)
88{ 88{
89 return (v & 0x1) << 0; 89 return (v & 0x1U) << 0U;
90} 90}
91static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_m(void) 91static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_m(void)
92{ 92{
93 return 0x1 << 0; 93 return 0x1U << 0U;
94} 94}
95static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_v(u32 r) 95static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_v(u32 r)
96{ 96{
97 return (r >> 0) & 0x1; 97 return (r >> 0U) & 0x1U;
98} 98}
99static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_yes_f(void) 99static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_yes_f(void)
100{ 100{
101 return 0x1; 101 return 0x1U;
102} 102}
103static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_no_f(void) 103static inline u32 fuse_ctrl_opt_ram_svop_pdp_override_data_no_f(void)
104{ 104{
105 return 0x0; 105 return 0x0U;
106} 106}
107static inline u32 fuse_status_opt_fbio_r(void) 107static inline u32 fuse_status_opt_fbio_r(void)
108{ 108{
109 return 0x00021c14; 109 return 0x00021c14U;
110} 110}
111static inline u32 fuse_status_opt_fbio_data_f(u32 v) 111static inline u32 fuse_status_opt_fbio_data_f(u32 v)
112{ 112{
113 return (v & 0xffff) << 0; 113 return (v & 0xffffU) << 0U;
114} 114}
115static inline u32 fuse_status_opt_fbio_data_m(void) 115static inline u32 fuse_status_opt_fbio_data_m(void)
116{ 116{
117 return 0xffff << 0; 117 return 0xffffU << 0U;
118} 118}
119static inline u32 fuse_status_opt_fbio_data_v(u32 r) 119static inline u32 fuse_status_opt_fbio_data_v(u32 r)
120{ 120{
121 return (r >> 0) & 0xffff; 121 return (r >> 0U) & 0xffffU;
122} 122}
123static inline u32 fuse_status_opt_rop_l2_fbp_r(u32 i) 123static inline u32 fuse_status_opt_rop_l2_fbp_r(u32 i)
124{ 124{
125 return 0x00021d70 + i*4; 125 return 0x00021d70U + i*4U;
126} 126}
127static inline u32 fuse_status_opt_fbp_r(void) 127static inline u32 fuse_status_opt_fbp_r(void)
128{ 128{
129 return 0x00021d38; 129 return 0x00021d38U;
130} 130}
131static inline u32 fuse_status_opt_fbp_idx_v(u32 r, u32 i) 131static inline u32 fuse_status_opt_fbp_idx_v(u32 r, u32 i)
132{ 132{
133 return (r >> (0 + i*1)) & 0x1; 133 return (r >> (0U + i*1U)) & 0x1U;
134} 134}
135static inline u32 fuse_opt_ecc_en_r(void) 135static inline u32 fuse_opt_ecc_en_r(void)
136{ 136{
137 return 0x00021228; 137 return 0x00021228U;
138} 138}
139static inline u32 fuse_opt_feature_fuses_override_disable_r(void) 139static inline u32 fuse_opt_feature_fuses_override_disable_r(void)
140{ 140{
141 return 0x000213f0; 141 return 0x000213f0U;
142} 142}
143static inline u32 fuse_opt_sec_debug_en_r(void) 143static inline u32 fuse_opt_sec_debug_en_r(void)
144{ 144{
145 return 0x00021218; 145 return 0x00021218U;
146} 146}
147static inline u32 fuse_opt_priv_sec_en_r(void) 147static inline u32 fuse_opt_priv_sec_en_r(void)
148{ 148{
149 return 0x00021434; 149 return 0x00021434U;
150} 150}
151#endif 151#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gmmu_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gmmu_gp10b.h
index a6dce722..4702f575 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gmmu_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gmmu_gp10b.h
@@ -58,1226 +58,1226 @@
58 58
59static inline u32 gmmu_new_pde_is_pte_w(void) 59static inline u32 gmmu_new_pde_is_pte_w(void)
60{ 60{
61 return 0; 61 return 0U;
62} 62}
63static inline u32 gmmu_new_pde_is_pte_false_f(void) 63static inline u32 gmmu_new_pde_is_pte_false_f(void)
64{ 64{
65 return 0x0; 65 return 0x0U;
66} 66}
67static inline u32 gmmu_new_pde_aperture_w(void) 67static inline u32 gmmu_new_pde_aperture_w(void)
68{ 68{
69 return 0; 69 return 0U;
70} 70}
71static inline u32 gmmu_new_pde_aperture_invalid_f(void) 71static inline u32 gmmu_new_pde_aperture_invalid_f(void)
72{ 72{
73 return 0x0; 73 return 0x0U;
74} 74}
75static inline u32 gmmu_new_pde_aperture_video_memory_f(void) 75static inline u32 gmmu_new_pde_aperture_video_memory_f(void)
76{ 76{
77 return 0x2; 77 return 0x2U;
78} 78}
79static inline u32 gmmu_new_pde_aperture_sys_mem_coh_f(void) 79static inline u32 gmmu_new_pde_aperture_sys_mem_coh_f(void)
80{ 80{
81 return 0x4; 81 return 0x4U;
82} 82}
83static inline u32 gmmu_new_pde_aperture_sys_mem_ncoh_f(void) 83static inline u32 gmmu_new_pde_aperture_sys_mem_ncoh_f(void)
84{ 84{
85 return 0x6; 85 return 0x6U;
86} 86}
87static inline u32 gmmu_new_pde_address_sys_f(u32 v) 87static inline u32 gmmu_new_pde_address_sys_f(u32 v)
88{ 88{
89 return (v & 0xfffffff) << 8; 89 return (v & 0xfffffffU) << 8U;
90} 90}
91static inline u32 gmmu_new_pde_address_sys_w(void) 91static inline u32 gmmu_new_pde_address_sys_w(void)
92{ 92{
93 return 0; 93 return 0U;
94} 94}
95static inline u32 gmmu_new_pde_vol_w(void) 95static inline u32 gmmu_new_pde_vol_w(void)
96{ 96{
97 return 0; 97 return 0U;
98} 98}
99static inline u32 gmmu_new_pde_vol_true_f(void) 99static inline u32 gmmu_new_pde_vol_true_f(void)
100{ 100{
101 return 0x8; 101 return 0x8U;
102} 102}
103static inline u32 gmmu_new_pde_vol_false_f(void) 103static inline u32 gmmu_new_pde_vol_false_f(void)
104{ 104{
105 return 0x0; 105 return 0x0U;
106} 106}
107static inline u32 gmmu_new_pde_address_shift_v(void) 107static inline u32 gmmu_new_pde_address_shift_v(void)
108{ 108{
109 return 0x0000000c; 109 return 0x0000000cU;
110} 110}
111static inline u32 gmmu_new_pde__size_v(void) 111static inline u32 gmmu_new_pde__size_v(void)
112{ 112{
113 return 0x00000008; 113 return 0x00000008U;
114} 114}
115static inline u32 gmmu_new_dual_pde_is_pte_w(void) 115static inline u32 gmmu_new_dual_pde_is_pte_w(void)
116{ 116{
117 return 0; 117 return 0U;
118} 118}
119static inline u32 gmmu_new_dual_pde_is_pte_false_f(void) 119static inline u32 gmmu_new_dual_pde_is_pte_false_f(void)
120{ 120{
121 return 0x0; 121 return 0x0U;
122} 122}
123static inline u32 gmmu_new_dual_pde_aperture_big_w(void) 123static inline u32 gmmu_new_dual_pde_aperture_big_w(void)
124{ 124{
125 return 0; 125 return 0U;
126} 126}
127static inline u32 gmmu_new_dual_pde_aperture_big_invalid_f(void) 127static inline u32 gmmu_new_dual_pde_aperture_big_invalid_f(void)
128{ 128{
129 return 0x0; 129 return 0x0U;
130} 130}
131static inline u32 gmmu_new_dual_pde_aperture_big_video_memory_f(void) 131static inline u32 gmmu_new_dual_pde_aperture_big_video_memory_f(void)
132{ 132{
133 return 0x2; 133 return 0x2U;
134} 134}
135static inline u32 gmmu_new_dual_pde_aperture_big_sys_mem_coh_f(void) 135static inline u32 gmmu_new_dual_pde_aperture_big_sys_mem_coh_f(void)
136{ 136{
137 return 0x4; 137 return 0x4U;
138} 138}
139static inline u32 gmmu_new_dual_pde_aperture_big_sys_mem_ncoh_f(void) 139static inline u32 gmmu_new_dual_pde_aperture_big_sys_mem_ncoh_f(void)
140{ 140{
141 return 0x6; 141 return 0x6U;
142} 142}
143static inline u32 gmmu_new_dual_pde_address_big_sys_f(u32 v) 143static inline u32 gmmu_new_dual_pde_address_big_sys_f(u32 v)
144{ 144{
145 return (v & 0xfffffff) << 4; 145 return (v & 0xfffffffU) << 4U;
146} 146}
147static inline u32 gmmu_new_dual_pde_address_big_sys_w(void) 147static inline u32 gmmu_new_dual_pde_address_big_sys_w(void)
148{ 148{
149 return 0; 149 return 0U;
150} 150}
151static inline u32 gmmu_new_dual_pde_aperture_small_w(void) 151static inline u32 gmmu_new_dual_pde_aperture_small_w(void)
152{ 152{
153 return 2; 153 return 2U;
154} 154}
155static inline u32 gmmu_new_dual_pde_aperture_small_invalid_f(void) 155static inline u32 gmmu_new_dual_pde_aperture_small_invalid_f(void)
156{ 156{
157 return 0x0; 157 return 0x0U;
158} 158}
159static inline u32 gmmu_new_dual_pde_aperture_small_video_memory_f(void) 159static inline u32 gmmu_new_dual_pde_aperture_small_video_memory_f(void)
160{ 160{
161 return 0x2; 161 return 0x2U;
162} 162}
163static inline u32 gmmu_new_dual_pde_aperture_small_sys_mem_coh_f(void) 163static inline u32 gmmu_new_dual_pde_aperture_small_sys_mem_coh_f(void)
164{ 164{
165 return 0x4; 165 return 0x4U;
166} 166}
167static inline u32 gmmu_new_dual_pde_aperture_small_sys_mem_ncoh_f(void) 167static inline u32 gmmu_new_dual_pde_aperture_small_sys_mem_ncoh_f(void)
168{ 168{
169 return 0x6; 169 return 0x6U;
170} 170}
171static inline u32 gmmu_new_dual_pde_vol_small_w(void) 171static inline u32 gmmu_new_dual_pde_vol_small_w(void)
172{ 172{
173 return 2; 173 return 2U;
174} 174}
175static inline u32 gmmu_new_dual_pde_vol_small_true_f(void) 175static inline u32 gmmu_new_dual_pde_vol_small_true_f(void)
176{ 176{
177 return 0x8; 177 return 0x8U;
178} 178}
179static inline u32 gmmu_new_dual_pde_vol_small_false_f(void) 179static inline u32 gmmu_new_dual_pde_vol_small_false_f(void)
180{ 180{
181 return 0x0; 181 return 0x0U;
182} 182}
183static inline u32 gmmu_new_dual_pde_vol_big_w(void) 183static inline u32 gmmu_new_dual_pde_vol_big_w(void)
184{ 184{
185 return 0; 185 return 0U;
186} 186}
187static inline u32 gmmu_new_dual_pde_vol_big_true_f(void) 187static inline u32 gmmu_new_dual_pde_vol_big_true_f(void)
188{ 188{
189 return 0x8; 189 return 0x8U;
190} 190}
191static inline u32 gmmu_new_dual_pde_vol_big_false_f(void) 191static inline u32 gmmu_new_dual_pde_vol_big_false_f(void)
192{ 192{
193 return 0x0; 193 return 0x0U;
194} 194}
195static inline u32 gmmu_new_dual_pde_address_small_sys_f(u32 v) 195static inline u32 gmmu_new_dual_pde_address_small_sys_f(u32 v)
196{ 196{
197 return (v & 0xfffffff) << 8; 197 return (v & 0xfffffffU) << 8U;
198} 198}
199static inline u32 gmmu_new_dual_pde_address_small_sys_w(void) 199static inline u32 gmmu_new_dual_pde_address_small_sys_w(void)
200{ 200{
201 return 2; 201 return 2U;
202} 202}
203static inline u32 gmmu_new_dual_pde_address_shift_v(void) 203static inline u32 gmmu_new_dual_pde_address_shift_v(void)
204{ 204{
205 return 0x0000000c; 205 return 0x0000000cU;
206} 206}
207static inline u32 gmmu_new_dual_pde_address_big_shift_v(void) 207static inline u32 gmmu_new_dual_pde_address_big_shift_v(void)
208{ 208{
209 return 0x00000008; 209 return 0x00000008U;
210} 210}
211static inline u32 gmmu_new_dual_pde__size_v(void) 211static inline u32 gmmu_new_dual_pde__size_v(void)
212{ 212{
213 return 0x00000010; 213 return 0x00000010U;
214} 214}
215static inline u32 gmmu_new_pte__size_v(void) 215static inline u32 gmmu_new_pte__size_v(void)
216{ 216{
217 return 0x00000008; 217 return 0x00000008U;
218} 218}
219static inline u32 gmmu_new_pte_valid_w(void) 219static inline u32 gmmu_new_pte_valid_w(void)
220{ 220{
221 return 0; 221 return 0U;
222} 222}
223static inline u32 gmmu_new_pte_valid_true_f(void) 223static inline u32 gmmu_new_pte_valid_true_f(void)
224{ 224{
225 return 0x1; 225 return 0x1U;
226} 226}
227static inline u32 gmmu_new_pte_valid_false_f(void) 227static inline u32 gmmu_new_pte_valid_false_f(void)
228{ 228{
229 return 0x0; 229 return 0x0U;
230} 230}
231static inline u32 gmmu_new_pte_privilege_w(void) 231static inline u32 gmmu_new_pte_privilege_w(void)
232{ 232{
233 return 0; 233 return 0U;
234} 234}
235static inline u32 gmmu_new_pte_privilege_true_f(void) 235static inline u32 gmmu_new_pte_privilege_true_f(void)
236{ 236{
237 return 0x20; 237 return 0x20U;
238} 238}
239static inline u32 gmmu_new_pte_privilege_false_f(void) 239static inline u32 gmmu_new_pte_privilege_false_f(void)
240{ 240{
241 return 0x0; 241 return 0x0U;
242} 242}
243static inline u32 gmmu_new_pte_address_sys_f(u32 v) 243static inline u32 gmmu_new_pte_address_sys_f(u32 v)
244{ 244{
245 return (v & 0xfffffff) << 8; 245 return (v & 0xfffffffU) << 8U;
246} 246}
247static inline u32 gmmu_new_pte_address_sys_w(void) 247static inline u32 gmmu_new_pte_address_sys_w(void)
248{ 248{
249 return 0; 249 return 0U;
250} 250}
251static inline u32 gmmu_new_pte_address_vid_f(u32 v) 251static inline u32 gmmu_new_pte_address_vid_f(u32 v)
252{ 252{
253 return (v & 0xffffff) << 8; 253 return (v & 0xffffffU) << 8U;
254} 254}
255static inline u32 gmmu_new_pte_address_vid_w(void) 255static inline u32 gmmu_new_pte_address_vid_w(void)
256{ 256{
257 return 0; 257 return 0U;
258} 258}
259static inline u32 gmmu_new_pte_vol_w(void) 259static inline u32 gmmu_new_pte_vol_w(void)
260{ 260{
261 return 0; 261 return 0U;
262} 262}
263static inline u32 gmmu_new_pte_vol_true_f(void) 263static inline u32 gmmu_new_pte_vol_true_f(void)
264{ 264{
265 return 0x8; 265 return 0x8U;
266} 266}
267static inline u32 gmmu_new_pte_vol_false_f(void) 267static inline u32 gmmu_new_pte_vol_false_f(void)
268{ 268{
269 return 0x0; 269 return 0x0U;
270} 270}
271static inline u32 gmmu_new_pte_aperture_w(void) 271static inline u32 gmmu_new_pte_aperture_w(void)
272{ 272{
273 return 0; 273 return 0U;
274} 274}
275static inline u32 gmmu_new_pte_aperture_video_memory_f(void) 275static inline u32 gmmu_new_pte_aperture_video_memory_f(void)
276{ 276{
277 return 0x0; 277 return 0x0U;
278} 278}
279static inline u32 gmmu_new_pte_aperture_sys_mem_coh_f(void) 279static inline u32 gmmu_new_pte_aperture_sys_mem_coh_f(void)
280{ 280{
281 return 0x4; 281 return 0x4U;
282} 282}
283static inline u32 gmmu_new_pte_aperture_sys_mem_ncoh_f(void) 283static inline u32 gmmu_new_pte_aperture_sys_mem_ncoh_f(void)
284{ 284{
285 return 0x6; 285 return 0x6U;
286} 286}
287static inline u32 gmmu_new_pte_read_only_w(void) 287static inline u32 gmmu_new_pte_read_only_w(void)
288{ 288{
289 return 0; 289 return 0U;
290} 290}
291static inline u32 gmmu_new_pte_read_only_true_f(void) 291static inline u32 gmmu_new_pte_read_only_true_f(void)
292{ 292{
293 return 0x40; 293 return 0x40U;
294} 294}
295static inline u32 gmmu_new_pte_comptagline_f(u32 v) 295static inline u32 gmmu_new_pte_comptagline_f(u32 v)
296{ 296{
297 return (v & 0x3ffff) << 4; 297 return (v & 0x3ffffU) << 4U;
298} 298}
299static inline u32 gmmu_new_pte_comptagline_w(void) 299static inline u32 gmmu_new_pte_comptagline_w(void)
300{ 300{
301 return 1; 301 return 1U;
302} 302}
303static inline u32 gmmu_new_pte_kind_f(u32 v) 303static inline u32 gmmu_new_pte_kind_f(u32 v)
304{ 304{
305 return (v & 0xff) << 24; 305 return (v & 0xffU) << 24U;
306} 306}
307static inline u32 gmmu_new_pte_kind_w(void) 307static inline u32 gmmu_new_pte_kind_w(void)
308{ 308{
309 return 1; 309 return 1U;
310} 310}
311static inline u32 gmmu_new_pte_address_shift_v(void) 311static inline u32 gmmu_new_pte_address_shift_v(void)
312{ 312{
313 return 0x0000000c; 313 return 0x0000000cU;
314} 314}
315static inline u32 gmmu_pte_kind_f(u32 v) 315static inline u32 gmmu_pte_kind_f(u32 v)
316{ 316{
317 return (v & 0xff) << 4; 317 return (v & 0xffU) << 4U;
318} 318}
319static inline u32 gmmu_pte_kind_w(void) 319static inline u32 gmmu_pte_kind_w(void)
320{ 320{
321 return 1; 321 return 1U;
322} 322}
323static inline u32 gmmu_pte_kind_invalid_v(void) 323static inline u32 gmmu_pte_kind_invalid_v(void)
324{ 324{
325 return 0x000000ff; 325 return 0x000000ffU;
326} 326}
327static inline u32 gmmu_pte_kind_pitch_v(void) 327static inline u32 gmmu_pte_kind_pitch_v(void)
328{ 328{
329 return 0x00000000; 329 return 0x00000000U;
330} 330}
331static inline u32 gmmu_pte_kind_z16_v(void) 331static inline u32 gmmu_pte_kind_z16_v(void)
332{ 332{
333 return 0x00000001; 333 return 0x00000001U;
334} 334}
335static inline u32 gmmu_pte_kind_z16_2c_v(void) 335static inline u32 gmmu_pte_kind_z16_2c_v(void)
336{ 336{
337 return 0x00000002; 337 return 0x00000002U;
338} 338}
339static inline u32 gmmu_pte_kind_z16_ms2_2c_v(void) 339static inline u32 gmmu_pte_kind_z16_ms2_2c_v(void)
340{ 340{
341 return 0x00000003; 341 return 0x00000003U;
342} 342}
343static inline u32 gmmu_pte_kind_z16_ms4_2c_v(void) 343static inline u32 gmmu_pte_kind_z16_ms4_2c_v(void)
344{ 344{
345 return 0x00000004; 345 return 0x00000004U;
346} 346}
347static inline u32 gmmu_pte_kind_z16_ms8_2c_v(void) 347static inline u32 gmmu_pte_kind_z16_ms8_2c_v(void)
348{ 348{
349 return 0x00000005; 349 return 0x00000005U;
350} 350}
351static inline u32 gmmu_pte_kind_z16_ms16_2c_v(void) 351static inline u32 gmmu_pte_kind_z16_ms16_2c_v(void)
352{ 352{
353 return 0x00000006; 353 return 0x00000006U;
354} 354}
355static inline u32 gmmu_pte_kind_z16_2z_v(void) 355static inline u32 gmmu_pte_kind_z16_2z_v(void)
356{ 356{
357 return 0x00000007; 357 return 0x00000007U;
358} 358}
359static inline u32 gmmu_pte_kind_z16_ms2_2z_v(void) 359static inline u32 gmmu_pte_kind_z16_ms2_2z_v(void)
360{ 360{
361 return 0x00000008; 361 return 0x00000008U;
362} 362}
363static inline u32 gmmu_pte_kind_z16_ms4_2z_v(void) 363static inline u32 gmmu_pte_kind_z16_ms4_2z_v(void)
364{ 364{
365 return 0x00000009; 365 return 0x00000009U;
366} 366}
367static inline u32 gmmu_pte_kind_z16_ms8_2z_v(void) 367static inline u32 gmmu_pte_kind_z16_ms8_2z_v(void)
368{ 368{
369 return 0x0000000a; 369 return 0x0000000aU;
370} 370}
371static inline u32 gmmu_pte_kind_z16_ms16_2z_v(void) 371static inline u32 gmmu_pte_kind_z16_ms16_2z_v(void)
372{ 372{
373 return 0x0000000b; 373 return 0x0000000bU;
374} 374}
375static inline u32 gmmu_pte_kind_z16_2cz_v(void) 375static inline u32 gmmu_pte_kind_z16_2cz_v(void)
376{ 376{
377 return 0x00000036; 377 return 0x00000036U;
378} 378}
379static inline u32 gmmu_pte_kind_z16_ms2_2cz_v(void) 379static inline u32 gmmu_pte_kind_z16_ms2_2cz_v(void)
380{ 380{
381 return 0x00000037; 381 return 0x00000037U;
382} 382}
383static inline u32 gmmu_pte_kind_z16_ms4_2cz_v(void) 383static inline u32 gmmu_pte_kind_z16_ms4_2cz_v(void)
384{ 384{
385 return 0x00000038; 385 return 0x00000038U;
386} 386}
387static inline u32 gmmu_pte_kind_z16_ms8_2cz_v(void) 387static inline u32 gmmu_pte_kind_z16_ms8_2cz_v(void)
388{ 388{
389 return 0x00000039; 389 return 0x00000039U;
390} 390}
391static inline u32 gmmu_pte_kind_z16_ms16_2cz_v(void) 391static inline u32 gmmu_pte_kind_z16_ms16_2cz_v(void)
392{ 392{
393 return 0x0000005f; 393 return 0x0000005fU;
394} 394}
395static inline u32 gmmu_pte_kind_z16_4cz_v(void) 395static inline u32 gmmu_pte_kind_z16_4cz_v(void)
396{ 396{
397 return 0x0000000c; 397 return 0x0000000cU;
398} 398}
399static inline u32 gmmu_pte_kind_z16_ms2_4cz_v(void) 399static inline u32 gmmu_pte_kind_z16_ms2_4cz_v(void)
400{ 400{
401 return 0x0000000d; 401 return 0x0000000dU;
402} 402}
403static inline u32 gmmu_pte_kind_z16_ms4_4cz_v(void) 403static inline u32 gmmu_pte_kind_z16_ms4_4cz_v(void)
404{ 404{
405 return 0x0000000e; 405 return 0x0000000eU;
406} 406}
407static inline u32 gmmu_pte_kind_z16_ms8_4cz_v(void) 407static inline u32 gmmu_pte_kind_z16_ms8_4cz_v(void)
408{ 408{
409 return 0x0000000f; 409 return 0x0000000fU;
410} 410}
411static inline u32 gmmu_pte_kind_z16_ms16_4cz_v(void) 411static inline u32 gmmu_pte_kind_z16_ms16_4cz_v(void)
412{ 412{
413 return 0x00000010; 413 return 0x00000010U;
414} 414}
415static inline u32 gmmu_pte_kind_s8z24_v(void) 415static inline u32 gmmu_pte_kind_s8z24_v(void)
416{ 416{
417 return 0x00000011; 417 return 0x00000011U;
418} 418}
419static inline u32 gmmu_pte_kind_s8z24_1z_v(void) 419static inline u32 gmmu_pte_kind_s8z24_1z_v(void)
420{ 420{
421 return 0x00000012; 421 return 0x00000012U;
422} 422}
423static inline u32 gmmu_pte_kind_s8z24_ms2_1z_v(void) 423static inline u32 gmmu_pte_kind_s8z24_ms2_1z_v(void)
424{ 424{
425 return 0x00000013; 425 return 0x00000013U;
426} 426}
427static inline u32 gmmu_pte_kind_s8z24_ms4_1z_v(void) 427static inline u32 gmmu_pte_kind_s8z24_ms4_1z_v(void)
428{ 428{
429 return 0x00000014; 429 return 0x00000014U;
430} 430}
431static inline u32 gmmu_pte_kind_s8z24_ms8_1z_v(void) 431static inline u32 gmmu_pte_kind_s8z24_ms8_1z_v(void)
432{ 432{
433 return 0x00000015; 433 return 0x00000015U;
434} 434}
435static inline u32 gmmu_pte_kind_s8z24_ms16_1z_v(void) 435static inline u32 gmmu_pte_kind_s8z24_ms16_1z_v(void)
436{ 436{
437 return 0x00000016; 437 return 0x00000016U;
438} 438}
439static inline u32 gmmu_pte_kind_s8z24_2cz_v(void) 439static inline u32 gmmu_pte_kind_s8z24_2cz_v(void)
440{ 440{
441 return 0x00000017; 441 return 0x00000017U;
442} 442}
443static inline u32 gmmu_pte_kind_s8z24_ms2_2cz_v(void) 443static inline u32 gmmu_pte_kind_s8z24_ms2_2cz_v(void)
444{ 444{
445 return 0x00000018; 445 return 0x00000018U;
446} 446}
447static inline u32 gmmu_pte_kind_s8z24_ms4_2cz_v(void) 447static inline u32 gmmu_pte_kind_s8z24_ms4_2cz_v(void)
448{ 448{
449 return 0x00000019; 449 return 0x00000019U;
450} 450}
451static inline u32 gmmu_pte_kind_s8z24_ms8_2cz_v(void) 451static inline u32 gmmu_pte_kind_s8z24_ms8_2cz_v(void)
452{ 452{
453 return 0x0000001a; 453 return 0x0000001aU;
454} 454}
455static inline u32 gmmu_pte_kind_s8z24_ms16_2cz_v(void) 455static inline u32 gmmu_pte_kind_s8z24_ms16_2cz_v(void)
456{ 456{
457 return 0x0000001b; 457 return 0x0000001bU;
458} 458}
459static inline u32 gmmu_pte_kind_s8z24_2cs_v(void) 459static inline u32 gmmu_pte_kind_s8z24_2cs_v(void)
460{ 460{
461 return 0x0000001c; 461 return 0x0000001cU;
462} 462}
463static inline u32 gmmu_pte_kind_s8z24_ms2_2cs_v(void) 463static inline u32 gmmu_pte_kind_s8z24_ms2_2cs_v(void)
464{ 464{
465 return 0x0000001d; 465 return 0x0000001dU;
466} 466}
467static inline u32 gmmu_pte_kind_s8z24_ms4_2cs_v(void) 467static inline u32 gmmu_pte_kind_s8z24_ms4_2cs_v(void)
468{ 468{
469 return 0x0000001e; 469 return 0x0000001eU;
470} 470}
471static inline u32 gmmu_pte_kind_s8z24_ms8_2cs_v(void) 471static inline u32 gmmu_pte_kind_s8z24_ms8_2cs_v(void)
472{ 472{
473 return 0x0000001f; 473 return 0x0000001fU;
474} 474}
475static inline u32 gmmu_pte_kind_s8z24_ms16_2cs_v(void) 475static inline u32 gmmu_pte_kind_s8z24_ms16_2cs_v(void)
476{ 476{
477 return 0x00000020; 477 return 0x00000020U;
478} 478}
479static inline u32 gmmu_pte_kind_s8z24_4cszv_v(void) 479static inline u32 gmmu_pte_kind_s8z24_4cszv_v(void)
480{ 480{
481 return 0x00000021; 481 return 0x00000021U;
482} 482}
483static inline u32 gmmu_pte_kind_s8z24_ms2_4cszv_v(void) 483static inline u32 gmmu_pte_kind_s8z24_ms2_4cszv_v(void)
484{ 484{
485 return 0x00000022; 485 return 0x00000022U;
486} 486}
487static inline u32 gmmu_pte_kind_s8z24_ms4_4cszv_v(void) 487static inline u32 gmmu_pte_kind_s8z24_ms4_4cszv_v(void)
488{ 488{
489 return 0x00000023; 489 return 0x00000023U;
490} 490}
491static inline u32 gmmu_pte_kind_s8z24_ms8_4cszv_v(void) 491static inline u32 gmmu_pte_kind_s8z24_ms8_4cszv_v(void)
492{ 492{
493 return 0x00000024; 493 return 0x00000024U;
494} 494}
495static inline u32 gmmu_pte_kind_s8z24_ms16_4cszv_v(void) 495static inline u32 gmmu_pte_kind_s8z24_ms16_4cszv_v(void)
496{ 496{
497 return 0x00000025; 497 return 0x00000025U;
498} 498}
499static inline u32 gmmu_pte_kind_v8z24_ms4_vc12_v(void) 499static inline u32 gmmu_pte_kind_v8z24_ms4_vc12_v(void)
500{ 500{
501 return 0x00000026; 501 return 0x00000026U;
502} 502}
503static inline u32 gmmu_pte_kind_v8z24_ms4_vc4_v(void) 503static inline u32 gmmu_pte_kind_v8z24_ms4_vc4_v(void)
504{ 504{
505 return 0x00000027; 505 return 0x00000027U;
506} 506}
507static inline u32 gmmu_pte_kind_v8z24_ms8_vc8_v(void) 507static inline u32 gmmu_pte_kind_v8z24_ms8_vc8_v(void)
508{ 508{
509 return 0x00000028; 509 return 0x00000028U;
510} 510}
511static inline u32 gmmu_pte_kind_v8z24_ms8_vc24_v(void) 511static inline u32 gmmu_pte_kind_v8z24_ms8_vc24_v(void)
512{ 512{
513 return 0x00000029; 513 return 0x00000029U;
514} 514}
515static inline u32 gmmu_pte_kind_v8z24_ms4_vc12_1zv_v(void) 515static inline u32 gmmu_pte_kind_v8z24_ms4_vc12_1zv_v(void)
516{ 516{
517 return 0x0000002e; 517 return 0x0000002eU;
518} 518}
519static inline u32 gmmu_pte_kind_v8z24_ms4_vc4_1zv_v(void) 519static inline u32 gmmu_pte_kind_v8z24_ms4_vc4_1zv_v(void)
520{ 520{
521 return 0x0000002f; 521 return 0x0000002fU;
522} 522}
523static inline u32 gmmu_pte_kind_v8z24_ms8_vc8_1zv_v(void) 523static inline u32 gmmu_pte_kind_v8z24_ms8_vc8_1zv_v(void)
524{ 524{
525 return 0x00000030; 525 return 0x00000030U;
526} 526}
527static inline u32 gmmu_pte_kind_v8z24_ms8_vc24_1zv_v(void) 527static inline u32 gmmu_pte_kind_v8z24_ms8_vc24_1zv_v(void)
528{ 528{
529 return 0x00000031; 529 return 0x00000031U;
530} 530}
531static inline u32 gmmu_pte_kind_v8z24_ms4_vc12_2cs_v(void) 531static inline u32 gmmu_pte_kind_v8z24_ms4_vc12_2cs_v(void)
532{ 532{
533 return 0x00000032; 533 return 0x00000032U;
534} 534}
535static inline u32 gmmu_pte_kind_v8z24_ms4_vc4_2cs_v(void) 535static inline u32 gmmu_pte_kind_v8z24_ms4_vc4_2cs_v(void)
536{ 536{
537 return 0x00000033; 537 return 0x00000033U;
538} 538}
539static inline u32 gmmu_pte_kind_v8z24_ms8_vc8_2cs_v(void) 539static inline u32 gmmu_pte_kind_v8z24_ms8_vc8_2cs_v(void)
540{ 540{
541 return 0x00000034; 541 return 0x00000034U;
542} 542}
543static inline u32 gmmu_pte_kind_v8z24_ms8_vc24_2cs_v(void) 543static inline u32 gmmu_pte_kind_v8z24_ms8_vc24_2cs_v(void)
544{ 544{
545 return 0x00000035; 545 return 0x00000035U;
546} 546}
547static inline u32 gmmu_pte_kind_v8z24_ms4_vc12_2czv_v(void) 547static inline u32 gmmu_pte_kind_v8z24_ms4_vc12_2czv_v(void)
548{ 548{
549 return 0x0000003a; 549 return 0x0000003aU;
550} 550}
551static inline u32 gmmu_pte_kind_v8z24_ms4_vc4_2czv_v(void) 551static inline u32 gmmu_pte_kind_v8z24_ms4_vc4_2czv_v(void)
552{ 552{
553 return 0x0000003b; 553 return 0x0000003bU;
554} 554}
555static inline u32 gmmu_pte_kind_v8z24_ms8_vc8_2czv_v(void) 555static inline u32 gmmu_pte_kind_v8z24_ms8_vc8_2czv_v(void)
556{ 556{
557 return 0x0000003c; 557 return 0x0000003cU;
558} 558}
559static inline u32 gmmu_pte_kind_v8z24_ms8_vc24_2czv_v(void) 559static inline u32 gmmu_pte_kind_v8z24_ms8_vc24_2czv_v(void)
560{ 560{
561 return 0x0000003d; 561 return 0x0000003dU;
562} 562}
563static inline u32 gmmu_pte_kind_v8z24_ms4_vc12_2zv_v(void) 563static inline u32 gmmu_pte_kind_v8z24_ms4_vc12_2zv_v(void)
564{ 564{
565 return 0x0000003e; 565 return 0x0000003eU;
566} 566}
567static inline u32 gmmu_pte_kind_v8z24_ms4_vc4_2zv_v(void) 567static inline u32 gmmu_pte_kind_v8z24_ms4_vc4_2zv_v(void)
568{ 568{
569 return 0x0000003f; 569 return 0x0000003fU;
570} 570}
571static inline u32 gmmu_pte_kind_v8z24_ms8_vc8_2zv_v(void) 571static inline u32 gmmu_pte_kind_v8z24_ms8_vc8_2zv_v(void)
572{ 572{
573 return 0x00000040; 573 return 0x00000040U;
574} 574}
575static inline u32 gmmu_pte_kind_v8z24_ms8_vc24_2zv_v(void) 575static inline u32 gmmu_pte_kind_v8z24_ms8_vc24_2zv_v(void)
576{ 576{
577 return 0x00000041; 577 return 0x00000041U;
578} 578}
579static inline u32 gmmu_pte_kind_v8z24_ms4_vc12_4cszv_v(void) 579static inline u32 gmmu_pte_kind_v8z24_ms4_vc12_4cszv_v(void)
580{ 580{
581 return 0x00000042; 581 return 0x00000042U;
582} 582}
583static inline u32 gmmu_pte_kind_v8z24_ms4_vc4_4cszv_v(void) 583static inline u32 gmmu_pte_kind_v8z24_ms4_vc4_4cszv_v(void)
584{ 584{
585 return 0x00000043; 585 return 0x00000043U;
586} 586}
587static inline u32 gmmu_pte_kind_v8z24_ms8_vc8_4cszv_v(void) 587static inline u32 gmmu_pte_kind_v8z24_ms8_vc8_4cszv_v(void)
588{ 588{
589 return 0x00000044; 589 return 0x00000044U;
590} 590}
591static inline u32 gmmu_pte_kind_v8z24_ms8_vc24_4cszv_v(void) 591static inline u32 gmmu_pte_kind_v8z24_ms8_vc24_4cszv_v(void)
592{ 592{
593 return 0x00000045; 593 return 0x00000045U;
594} 594}
595static inline u32 gmmu_pte_kind_z24s8_v(void) 595static inline u32 gmmu_pte_kind_z24s8_v(void)
596{ 596{
597 return 0x00000046; 597 return 0x00000046U;
598} 598}
599static inline u32 gmmu_pte_kind_z24s8_1z_v(void) 599static inline u32 gmmu_pte_kind_z24s8_1z_v(void)
600{ 600{
601 return 0x00000047; 601 return 0x00000047U;
602} 602}
603static inline u32 gmmu_pte_kind_z24s8_ms2_1z_v(void) 603static inline u32 gmmu_pte_kind_z24s8_ms2_1z_v(void)
604{ 604{
605 return 0x00000048; 605 return 0x00000048U;
606} 606}
607static inline u32 gmmu_pte_kind_z24s8_ms4_1z_v(void) 607static inline u32 gmmu_pte_kind_z24s8_ms4_1z_v(void)
608{ 608{
609 return 0x00000049; 609 return 0x00000049U;
610} 610}
611static inline u32 gmmu_pte_kind_z24s8_ms8_1z_v(void) 611static inline u32 gmmu_pte_kind_z24s8_ms8_1z_v(void)
612{ 612{
613 return 0x0000004a; 613 return 0x0000004aU;
614} 614}
615static inline u32 gmmu_pte_kind_z24s8_ms16_1z_v(void) 615static inline u32 gmmu_pte_kind_z24s8_ms16_1z_v(void)
616{ 616{
617 return 0x0000004b; 617 return 0x0000004bU;
618} 618}
619static inline u32 gmmu_pte_kind_z24s8_2cs_v(void) 619static inline u32 gmmu_pte_kind_z24s8_2cs_v(void)
620{ 620{
621 return 0x0000004c; 621 return 0x0000004cU;
622} 622}
623static inline u32 gmmu_pte_kind_z24s8_ms2_2cs_v(void) 623static inline u32 gmmu_pte_kind_z24s8_ms2_2cs_v(void)
624{ 624{
625 return 0x0000004d; 625 return 0x0000004dU;
626} 626}
627static inline u32 gmmu_pte_kind_z24s8_ms4_2cs_v(void) 627static inline u32 gmmu_pte_kind_z24s8_ms4_2cs_v(void)
628{ 628{
629 return 0x0000004e; 629 return 0x0000004eU;
630} 630}
631static inline u32 gmmu_pte_kind_z24s8_ms8_2cs_v(void) 631static inline u32 gmmu_pte_kind_z24s8_ms8_2cs_v(void)
632{ 632{
633 return 0x0000004f; 633 return 0x0000004fU;
634} 634}
635static inline u32 gmmu_pte_kind_z24s8_ms16_2cs_v(void) 635static inline u32 gmmu_pte_kind_z24s8_ms16_2cs_v(void)
636{ 636{
637 return 0x00000050; 637 return 0x00000050U;
638} 638}
639static inline u32 gmmu_pte_kind_z24s8_2cz_v(void) 639static inline u32 gmmu_pte_kind_z24s8_2cz_v(void)
640{ 640{
641 return 0x00000051; 641 return 0x00000051U;
642} 642}
643static inline u32 gmmu_pte_kind_z24s8_ms2_2cz_v(void) 643static inline u32 gmmu_pte_kind_z24s8_ms2_2cz_v(void)
644{ 644{
645 return 0x00000052; 645 return 0x00000052U;
646} 646}
647static inline u32 gmmu_pte_kind_z24s8_ms4_2cz_v(void) 647static inline u32 gmmu_pte_kind_z24s8_ms4_2cz_v(void)
648{ 648{
649 return 0x00000053; 649 return 0x00000053U;
650} 650}
651static inline u32 gmmu_pte_kind_z24s8_ms8_2cz_v(void) 651static inline u32 gmmu_pte_kind_z24s8_ms8_2cz_v(void)
652{ 652{
653 return 0x00000054; 653 return 0x00000054U;
654} 654}
655static inline u32 gmmu_pte_kind_z24s8_ms16_2cz_v(void) 655static inline u32 gmmu_pte_kind_z24s8_ms16_2cz_v(void)
656{ 656{
657 return 0x00000055; 657 return 0x00000055U;
658} 658}
659static inline u32 gmmu_pte_kind_z24s8_4cszv_v(void) 659static inline u32 gmmu_pte_kind_z24s8_4cszv_v(void)
660{ 660{
661 return 0x00000056; 661 return 0x00000056U;
662} 662}
663static inline u32 gmmu_pte_kind_z24s8_ms2_4cszv_v(void) 663static inline u32 gmmu_pte_kind_z24s8_ms2_4cszv_v(void)
664{ 664{
665 return 0x00000057; 665 return 0x00000057U;
666} 666}
667static inline u32 gmmu_pte_kind_z24s8_ms4_4cszv_v(void) 667static inline u32 gmmu_pte_kind_z24s8_ms4_4cszv_v(void)
668{ 668{
669 return 0x00000058; 669 return 0x00000058U;
670} 670}
671static inline u32 gmmu_pte_kind_z24s8_ms8_4cszv_v(void) 671static inline u32 gmmu_pte_kind_z24s8_ms8_4cszv_v(void)
672{ 672{
673 return 0x00000059; 673 return 0x00000059U;
674} 674}
675static inline u32 gmmu_pte_kind_z24s8_ms16_4cszv_v(void) 675static inline u32 gmmu_pte_kind_z24s8_ms16_4cszv_v(void)
676{ 676{
677 return 0x0000005a; 677 return 0x0000005aU;
678} 678}
679static inline u32 gmmu_pte_kind_z24v8_ms4_vc12_v(void) 679static inline u32 gmmu_pte_kind_z24v8_ms4_vc12_v(void)
680{ 680{
681 return 0x0000005b; 681 return 0x0000005bU;
682} 682}
683static inline u32 gmmu_pte_kind_z24v8_ms4_vc4_v(void) 683static inline u32 gmmu_pte_kind_z24v8_ms4_vc4_v(void)
684{ 684{
685 return 0x0000005c; 685 return 0x0000005cU;
686} 686}
687static inline u32 gmmu_pte_kind_z24v8_ms8_vc8_v(void) 687static inline u32 gmmu_pte_kind_z24v8_ms8_vc8_v(void)
688{ 688{
689 return 0x0000005d; 689 return 0x0000005dU;
690} 690}
691static inline u32 gmmu_pte_kind_z24v8_ms8_vc24_v(void) 691static inline u32 gmmu_pte_kind_z24v8_ms8_vc24_v(void)
692{ 692{
693 return 0x0000005e; 693 return 0x0000005eU;
694} 694}
695static inline u32 gmmu_pte_kind_z24v8_ms4_vc12_1zv_v(void) 695static inline u32 gmmu_pte_kind_z24v8_ms4_vc12_1zv_v(void)
696{ 696{
697 return 0x00000063; 697 return 0x00000063U;
698} 698}
699static inline u32 gmmu_pte_kind_z24v8_ms4_vc4_1zv_v(void) 699static inline u32 gmmu_pte_kind_z24v8_ms4_vc4_1zv_v(void)
700{ 700{
701 return 0x00000064; 701 return 0x00000064U;
702} 702}
703static inline u32 gmmu_pte_kind_z24v8_ms8_vc8_1zv_v(void) 703static inline u32 gmmu_pte_kind_z24v8_ms8_vc8_1zv_v(void)
704{ 704{
705 return 0x00000065; 705 return 0x00000065U;
706} 706}
707static inline u32 gmmu_pte_kind_z24v8_ms8_vc24_1zv_v(void) 707static inline u32 gmmu_pte_kind_z24v8_ms8_vc24_1zv_v(void)
708{ 708{
709 return 0x00000066; 709 return 0x00000066U;
710} 710}
711static inline u32 gmmu_pte_kind_z24v8_ms4_vc12_2cs_v(void) 711static inline u32 gmmu_pte_kind_z24v8_ms4_vc12_2cs_v(void)
712{ 712{
713 return 0x00000067; 713 return 0x00000067U;
714} 714}
715static inline u32 gmmu_pte_kind_z24v8_ms4_vc4_2cs_v(void) 715static inline u32 gmmu_pte_kind_z24v8_ms4_vc4_2cs_v(void)
716{ 716{
717 return 0x00000068; 717 return 0x00000068U;
718} 718}
719static inline u32 gmmu_pte_kind_z24v8_ms8_vc8_2cs_v(void) 719static inline u32 gmmu_pte_kind_z24v8_ms8_vc8_2cs_v(void)
720{ 720{
721 return 0x00000069; 721 return 0x00000069U;
722} 722}
723static inline u32 gmmu_pte_kind_z24v8_ms8_vc24_2cs_v(void) 723static inline u32 gmmu_pte_kind_z24v8_ms8_vc24_2cs_v(void)
724{ 724{
725 return 0x0000006a; 725 return 0x0000006aU;
726} 726}
727static inline u32 gmmu_pte_kind_z24v8_ms4_vc12_2czv_v(void) 727static inline u32 gmmu_pte_kind_z24v8_ms4_vc12_2czv_v(void)
728{ 728{
729 return 0x0000006f; 729 return 0x0000006fU;
730} 730}
731static inline u32 gmmu_pte_kind_z24v8_ms4_vc4_2czv_v(void) 731static inline u32 gmmu_pte_kind_z24v8_ms4_vc4_2czv_v(void)
732{ 732{
733 return 0x00000070; 733 return 0x00000070U;
734} 734}
735static inline u32 gmmu_pte_kind_z24v8_ms8_vc8_2czv_v(void) 735static inline u32 gmmu_pte_kind_z24v8_ms8_vc8_2czv_v(void)
736{ 736{
737 return 0x00000071; 737 return 0x00000071U;
738} 738}
739static inline u32 gmmu_pte_kind_z24v8_ms8_vc24_2czv_v(void) 739static inline u32 gmmu_pte_kind_z24v8_ms8_vc24_2czv_v(void)
740{ 740{
741 return 0x00000072; 741 return 0x00000072U;
742} 742}
743static inline u32 gmmu_pte_kind_z24v8_ms4_vc12_2zv_v(void) 743static inline u32 gmmu_pte_kind_z24v8_ms4_vc12_2zv_v(void)
744{ 744{
745 return 0x00000073; 745 return 0x00000073U;
746} 746}
747static inline u32 gmmu_pte_kind_z24v8_ms4_vc4_2zv_v(void) 747static inline u32 gmmu_pte_kind_z24v8_ms4_vc4_2zv_v(void)
748{ 748{
749 return 0x00000074; 749 return 0x00000074U;
750} 750}
751static inline u32 gmmu_pte_kind_z24v8_ms8_vc8_2zv_v(void) 751static inline u32 gmmu_pte_kind_z24v8_ms8_vc8_2zv_v(void)
752{ 752{
753 return 0x00000075; 753 return 0x00000075U;
754} 754}
755static inline u32 gmmu_pte_kind_z24v8_ms8_vc24_2zv_v(void) 755static inline u32 gmmu_pte_kind_z24v8_ms8_vc24_2zv_v(void)
756{ 756{
757 return 0x00000076; 757 return 0x00000076U;
758} 758}
759static inline u32 gmmu_pte_kind_z24v8_ms4_vc12_4cszv_v(void) 759static inline u32 gmmu_pte_kind_z24v8_ms4_vc12_4cszv_v(void)
760{ 760{
761 return 0x00000077; 761 return 0x00000077U;
762} 762}
763static inline u32 gmmu_pte_kind_z24v8_ms4_vc4_4cszv_v(void) 763static inline u32 gmmu_pte_kind_z24v8_ms4_vc4_4cszv_v(void)
764{ 764{
765 return 0x00000078; 765 return 0x00000078U;
766} 766}
767static inline u32 gmmu_pte_kind_z24v8_ms8_vc8_4cszv_v(void) 767static inline u32 gmmu_pte_kind_z24v8_ms8_vc8_4cszv_v(void)
768{ 768{
769 return 0x00000079; 769 return 0x00000079U;
770} 770}
771static inline u32 gmmu_pte_kind_z24v8_ms8_vc24_4cszv_v(void) 771static inline u32 gmmu_pte_kind_z24v8_ms8_vc24_4cszv_v(void)
772{ 772{
773 return 0x0000007a; 773 return 0x0000007aU;
774} 774}
775static inline u32 gmmu_pte_kind_zf32_v(void) 775static inline u32 gmmu_pte_kind_zf32_v(void)
776{ 776{
777 return 0x0000007b; 777 return 0x0000007bU;
778} 778}
779static inline u32 gmmu_pte_kind_zf32_1z_v(void) 779static inline u32 gmmu_pte_kind_zf32_1z_v(void)
780{ 780{
781 return 0x0000007c; 781 return 0x0000007cU;
782} 782}
783static inline u32 gmmu_pte_kind_zf32_ms2_1z_v(void) 783static inline u32 gmmu_pte_kind_zf32_ms2_1z_v(void)
784{ 784{
785 return 0x0000007d; 785 return 0x0000007dU;
786} 786}
787static inline u32 gmmu_pte_kind_zf32_ms4_1z_v(void) 787static inline u32 gmmu_pte_kind_zf32_ms4_1z_v(void)
788{ 788{
789 return 0x0000007e; 789 return 0x0000007eU;
790} 790}
791static inline u32 gmmu_pte_kind_zf32_ms8_1z_v(void) 791static inline u32 gmmu_pte_kind_zf32_ms8_1z_v(void)
792{ 792{
793 return 0x0000007f; 793 return 0x0000007fU;
794} 794}
795static inline u32 gmmu_pte_kind_zf32_ms16_1z_v(void) 795static inline u32 gmmu_pte_kind_zf32_ms16_1z_v(void)
796{ 796{
797 return 0x00000080; 797 return 0x00000080U;
798} 798}
799static inline u32 gmmu_pte_kind_zf32_2cs_v(void) 799static inline u32 gmmu_pte_kind_zf32_2cs_v(void)
800{ 800{
801 return 0x00000081; 801 return 0x00000081U;
802} 802}
803static inline u32 gmmu_pte_kind_zf32_ms2_2cs_v(void) 803static inline u32 gmmu_pte_kind_zf32_ms2_2cs_v(void)
804{ 804{
805 return 0x00000082; 805 return 0x00000082U;
806} 806}
807static inline u32 gmmu_pte_kind_zf32_ms4_2cs_v(void) 807static inline u32 gmmu_pte_kind_zf32_ms4_2cs_v(void)
808{ 808{
809 return 0x00000083; 809 return 0x00000083U;
810} 810}
811static inline u32 gmmu_pte_kind_zf32_ms8_2cs_v(void) 811static inline u32 gmmu_pte_kind_zf32_ms8_2cs_v(void)
812{ 812{
813 return 0x00000084; 813 return 0x00000084U;
814} 814}
815static inline u32 gmmu_pte_kind_zf32_ms16_2cs_v(void) 815static inline u32 gmmu_pte_kind_zf32_ms16_2cs_v(void)
816{ 816{
817 return 0x00000085; 817 return 0x00000085U;
818} 818}
819static inline u32 gmmu_pte_kind_zf32_2cz_v(void) 819static inline u32 gmmu_pte_kind_zf32_2cz_v(void)
820{ 820{
821 return 0x00000086; 821 return 0x00000086U;
822} 822}
823static inline u32 gmmu_pte_kind_zf32_ms2_2cz_v(void) 823static inline u32 gmmu_pte_kind_zf32_ms2_2cz_v(void)
824{ 824{
825 return 0x00000087; 825 return 0x00000087U;
826} 826}
827static inline u32 gmmu_pte_kind_zf32_ms4_2cz_v(void) 827static inline u32 gmmu_pte_kind_zf32_ms4_2cz_v(void)
828{ 828{
829 return 0x00000088; 829 return 0x00000088U;
830} 830}
831static inline u32 gmmu_pte_kind_zf32_ms8_2cz_v(void) 831static inline u32 gmmu_pte_kind_zf32_ms8_2cz_v(void)
832{ 832{
833 return 0x00000089; 833 return 0x00000089U;
834} 834}
835static inline u32 gmmu_pte_kind_zf32_ms16_2cz_v(void) 835static inline u32 gmmu_pte_kind_zf32_ms16_2cz_v(void)
836{ 836{
837 return 0x0000008a; 837 return 0x0000008aU;
838} 838}
839static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc12_v(void) 839static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc12_v(void)
840{ 840{
841 return 0x0000008b; 841 return 0x0000008bU;
842} 842}
843static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc4_v(void) 843static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc4_v(void)
844{ 844{
845 return 0x0000008c; 845 return 0x0000008cU;
846} 846}
847static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc8_v(void) 847static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc8_v(void)
848{ 848{
849 return 0x0000008d; 849 return 0x0000008dU;
850} 850}
851static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc24_v(void) 851static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc24_v(void)
852{ 852{
853 return 0x0000008e; 853 return 0x0000008eU;
854} 854}
855static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc12_1cs_v(void) 855static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc12_1cs_v(void)
856{ 856{
857 return 0x0000008f; 857 return 0x0000008fU;
858} 858}
859static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc4_1cs_v(void) 859static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc4_1cs_v(void)
860{ 860{
861 return 0x00000090; 861 return 0x00000090U;
862} 862}
863static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc8_1cs_v(void) 863static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc8_1cs_v(void)
864{ 864{
865 return 0x00000091; 865 return 0x00000091U;
866} 866}
867static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc24_1cs_v(void) 867static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc24_1cs_v(void)
868{ 868{
869 return 0x00000092; 869 return 0x00000092U;
870} 870}
871static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc12_1zv_v(void) 871static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc12_1zv_v(void)
872{ 872{
873 return 0x00000097; 873 return 0x00000097U;
874} 874}
875static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc4_1zv_v(void) 875static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc4_1zv_v(void)
876{ 876{
877 return 0x00000098; 877 return 0x00000098U;
878} 878}
879static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc8_1zv_v(void) 879static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc8_1zv_v(void)
880{ 880{
881 return 0x00000099; 881 return 0x00000099U;
882} 882}
883static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc24_1zv_v(void) 883static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc24_1zv_v(void)
884{ 884{
885 return 0x0000009a; 885 return 0x0000009aU;
886} 886}
887static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc12_1czv_v(void) 887static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc12_1czv_v(void)
888{ 888{
889 return 0x0000009b; 889 return 0x0000009bU;
890} 890}
891static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc4_1czv_v(void) 891static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc4_1czv_v(void)
892{ 892{
893 return 0x0000009c; 893 return 0x0000009cU;
894} 894}
895static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc8_1czv_v(void) 895static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc8_1czv_v(void)
896{ 896{
897 return 0x0000009d; 897 return 0x0000009dU;
898} 898}
899static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc24_1czv_v(void) 899static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc24_1czv_v(void)
900{ 900{
901 return 0x0000009e; 901 return 0x0000009eU;
902} 902}
903static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc12_2cs_v(void) 903static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc12_2cs_v(void)
904{ 904{
905 return 0x0000009f; 905 return 0x0000009fU;
906} 906}
907static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc4_2cs_v(void) 907static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc4_2cs_v(void)
908{ 908{
909 return 0x000000a0; 909 return 0x000000a0U;
910} 910}
911static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc8_2cs_v(void) 911static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc8_2cs_v(void)
912{ 912{
913 return 0x000000a1; 913 return 0x000000a1U;
914} 914}
915static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc24_2cs_v(void) 915static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc24_2cs_v(void)
916{ 916{
917 return 0x000000a2; 917 return 0x000000a2U;
918} 918}
919static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc12_2cszv_v(void) 919static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc12_2cszv_v(void)
920{ 920{
921 return 0x000000a3; 921 return 0x000000a3U;
922} 922}
923static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc4_2cszv_v(void) 923static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms4_vc4_2cszv_v(void)
924{ 924{
925 return 0x000000a4; 925 return 0x000000a4U;
926} 926}
927static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc8_2cszv_v(void) 927static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc8_2cszv_v(void)
928{ 928{
929 return 0x000000a5; 929 return 0x000000a5U;
930} 930}
931static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc24_2cszv_v(void) 931static inline u32 gmmu_pte_kind_x8z24_x16v8s8_ms8_vc24_2cszv_v(void)
932{ 932{
933 return 0x000000a6; 933 return 0x000000a6U;
934} 934}
935static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc12_v(void) 935static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc12_v(void)
936{ 936{
937 return 0x000000a7; 937 return 0x000000a7U;
938} 938}
939static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc4_v(void) 939static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc4_v(void)
940{ 940{
941 return 0x000000a8; 941 return 0x000000a8U;
942} 942}
943static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc8_v(void) 943static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc8_v(void)
944{ 944{
945 return 0x000000a9; 945 return 0x000000a9U;
946} 946}
947static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc24_v(void) 947static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc24_v(void)
948{ 948{
949 return 0x000000aa; 949 return 0x000000aaU;
950} 950}
951static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc12_1cs_v(void) 951static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc12_1cs_v(void)
952{ 952{
953 return 0x000000ab; 953 return 0x000000abU;
954} 954}
955static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc4_1cs_v(void) 955static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc4_1cs_v(void)
956{ 956{
957 return 0x000000ac; 957 return 0x000000acU;
958} 958}
959static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc8_1cs_v(void) 959static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc8_1cs_v(void)
960{ 960{
961 return 0x000000ad; 961 return 0x000000adU;
962} 962}
963static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc24_1cs_v(void) 963static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc24_1cs_v(void)
964{ 964{
965 return 0x000000ae; 965 return 0x000000aeU;
966} 966}
967static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc12_1zv_v(void) 967static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc12_1zv_v(void)
968{ 968{
969 return 0x000000b3; 969 return 0x000000b3U;
970} 970}
971static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc4_1zv_v(void) 971static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc4_1zv_v(void)
972{ 972{
973 return 0x000000b4; 973 return 0x000000b4U;
974} 974}
975static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc8_1zv_v(void) 975static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc8_1zv_v(void)
976{ 976{
977 return 0x000000b5; 977 return 0x000000b5U;
978} 978}
979static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc24_1zv_v(void) 979static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc24_1zv_v(void)
980{ 980{
981 return 0x000000b6; 981 return 0x000000b6U;
982} 982}
983static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc12_1czv_v(void) 983static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc12_1czv_v(void)
984{ 984{
985 return 0x000000b7; 985 return 0x000000b7U;
986} 986}
987static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc4_1czv_v(void) 987static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc4_1czv_v(void)
988{ 988{
989 return 0x000000b8; 989 return 0x000000b8U;
990} 990}
991static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc8_1czv_v(void) 991static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc8_1czv_v(void)
992{ 992{
993 return 0x000000b9; 993 return 0x000000b9U;
994} 994}
995static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc24_1czv_v(void) 995static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc24_1czv_v(void)
996{ 996{
997 return 0x000000ba; 997 return 0x000000baU;
998} 998}
999static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc12_2cs_v(void) 999static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc12_2cs_v(void)
1000{ 1000{
1001 return 0x000000bb; 1001 return 0x000000bbU;
1002} 1002}
1003static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc4_2cs_v(void) 1003static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc4_2cs_v(void)
1004{ 1004{
1005 return 0x000000bc; 1005 return 0x000000bcU;
1006} 1006}
1007static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc8_2cs_v(void) 1007static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc8_2cs_v(void)
1008{ 1008{
1009 return 0x000000bd; 1009 return 0x000000bdU;
1010} 1010}
1011static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc24_2cs_v(void) 1011static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc24_2cs_v(void)
1012{ 1012{
1013 return 0x000000be; 1013 return 0x000000beU;
1014} 1014}
1015static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc12_2cszv_v(void) 1015static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc12_2cszv_v(void)
1016{ 1016{
1017 return 0x000000bf; 1017 return 0x000000bfU;
1018} 1018}
1019static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc4_2cszv_v(void) 1019static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms4_vc4_2cszv_v(void)
1020{ 1020{
1021 return 0x000000c0; 1021 return 0x000000c0U;
1022} 1022}
1023static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc8_2cszv_v(void) 1023static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc8_2cszv_v(void)
1024{ 1024{
1025 return 0x000000c1; 1025 return 0x000000c1U;
1026} 1026}
1027static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc24_2cszv_v(void) 1027static inline u32 gmmu_pte_kind_zf32_x16v8s8_ms8_vc24_2cszv_v(void)
1028{ 1028{
1029 return 0x000000c2; 1029 return 0x000000c2U;
1030} 1030}
1031static inline u32 gmmu_pte_kind_zf32_x24s8_v(void) 1031static inline u32 gmmu_pte_kind_zf32_x24s8_v(void)
1032{ 1032{
1033 return 0x000000c3; 1033 return 0x000000c3U;
1034} 1034}
1035static inline u32 gmmu_pte_kind_zf32_x24s8_1cs_v(void) 1035static inline u32 gmmu_pte_kind_zf32_x24s8_1cs_v(void)
1036{ 1036{
1037 return 0x000000c4; 1037 return 0x000000c4U;
1038} 1038}
1039static inline u32 gmmu_pte_kind_zf32_x24s8_ms2_1cs_v(void) 1039static inline u32 gmmu_pte_kind_zf32_x24s8_ms2_1cs_v(void)
1040{ 1040{
1041 return 0x000000c5; 1041 return 0x000000c5U;
1042} 1042}
1043static inline u32 gmmu_pte_kind_zf32_x24s8_ms4_1cs_v(void) 1043static inline u32 gmmu_pte_kind_zf32_x24s8_ms4_1cs_v(void)
1044{ 1044{
1045 return 0x000000c6; 1045 return 0x000000c6U;
1046} 1046}
1047static inline u32 gmmu_pte_kind_zf32_x24s8_ms8_1cs_v(void) 1047static inline u32 gmmu_pte_kind_zf32_x24s8_ms8_1cs_v(void)
1048{ 1048{
1049 return 0x000000c7; 1049 return 0x000000c7U;
1050} 1050}
1051static inline u32 gmmu_pte_kind_zf32_x24s8_ms16_1cs_v(void) 1051static inline u32 gmmu_pte_kind_zf32_x24s8_ms16_1cs_v(void)
1052{ 1052{
1053 return 0x000000c8; 1053 return 0x000000c8U;
1054} 1054}
1055static inline u32 gmmu_pte_kind_zf32_x24s8_2cszv_v(void) 1055static inline u32 gmmu_pte_kind_zf32_x24s8_2cszv_v(void)
1056{ 1056{
1057 return 0x000000ce; 1057 return 0x000000ceU;
1058} 1058}
1059static inline u32 gmmu_pte_kind_zf32_x24s8_ms2_2cszv_v(void) 1059static inline u32 gmmu_pte_kind_zf32_x24s8_ms2_2cszv_v(void)
1060{ 1060{
1061 return 0x000000cf; 1061 return 0x000000cfU;
1062} 1062}
1063static inline u32 gmmu_pte_kind_zf32_x24s8_ms4_2cszv_v(void) 1063static inline u32 gmmu_pte_kind_zf32_x24s8_ms4_2cszv_v(void)
1064{ 1064{
1065 return 0x000000d0; 1065 return 0x000000d0U;
1066} 1066}
1067static inline u32 gmmu_pte_kind_zf32_x24s8_ms8_2cszv_v(void) 1067static inline u32 gmmu_pte_kind_zf32_x24s8_ms8_2cszv_v(void)
1068{ 1068{
1069 return 0x000000d1; 1069 return 0x000000d1U;
1070} 1070}
1071static inline u32 gmmu_pte_kind_zf32_x24s8_ms16_2cszv_v(void) 1071static inline u32 gmmu_pte_kind_zf32_x24s8_ms16_2cszv_v(void)
1072{ 1072{
1073 return 0x000000d2; 1073 return 0x000000d2U;
1074} 1074}
1075static inline u32 gmmu_pte_kind_zf32_x24s8_2cs_v(void) 1075static inline u32 gmmu_pte_kind_zf32_x24s8_2cs_v(void)
1076{ 1076{
1077 return 0x000000d3; 1077 return 0x000000d3U;
1078} 1078}
1079static inline u32 gmmu_pte_kind_zf32_x24s8_ms2_2cs_v(void) 1079static inline u32 gmmu_pte_kind_zf32_x24s8_ms2_2cs_v(void)
1080{ 1080{
1081 return 0x000000d4; 1081 return 0x000000d4U;
1082} 1082}
1083static inline u32 gmmu_pte_kind_zf32_x24s8_ms4_2cs_v(void) 1083static inline u32 gmmu_pte_kind_zf32_x24s8_ms4_2cs_v(void)
1084{ 1084{
1085 return 0x000000d5; 1085 return 0x000000d5U;
1086} 1086}
1087static inline u32 gmmu_pte_kind_zf32_x24s8_ms8_2cs_v(void) 1087static inline u32 gmmu_pte_kind_zf32_x24s8_ms8_2cs_v(void)
1088{ 1088{
1089 return 0x000000d6; 1089 return 0x000000d6U;
1090} 1090}
1091static inline u32 gmmu_pte_kind_zf32_x24s8_ms16_2cs_v(void) 1091static inline u32 gmmu_pte_kind_zf32_x24s8_ms16_2cs_v(void)
1092{ 1092{
1093 return 0x000000d7; 1093 return 0x000000d7U;
1094} 1094}
1095static inline u32 gmmu_pte_kind_generic_16bx2_v(void) 1095static inline u32 gmmu_pte_kind_generic_16bx2_v(void)
1096{ 1096{
1097 return 0x000000fe; 1097 return 0x000000feU;
1098} 1098}
1099static inline u32 gmmu_pte_kind_c32_2c_v(void) 1099static inline u32 gmmu_pte_kind_c32_2c_v(void)
1100{ 1100{
1101 return 0x000000d8; 1101 return 0x000000d8U;
1102} 1102}
1103static inline u32 gmmu_pte_kind_c32_2cbr_v(void) 1103static inline u32 gmmu_pte_kind_c32_2cbr_v(void)
1104{ 1104{
1105 return 0x000000d9; 1105 return 0x000000d9U;
1106} 1106}
1107static inline u32 gmmu_pte_kind_c32_2cba_v(void) 1107static inline u32 gmmu_pte_kind_c32_2cba_v(void)
1108{ 1108{
1109 return 0x000000da; 1109 return 0x000000daU;
1110} 1110}
1111static inline u32 gmmu_pte_kind_c32_2cra_v(void) 1111static inline u32 gmmu_pte_kind_c32_2cra_v(void)
1112{ 1112{
1113 return 0x000000db; 1113 return 0x000000dbU;
1114} 1114}
1115static inline u32 gmmu_pte_kind_c32_2bra_v(void) 1115static inline u32 gmmu_pte_kind_c32_2bra_v(void)
1116{ 1116{
1117 return 0x000000dc; 1117 return 0x000000dcU;
1118} 1118}
1119static inline u32 gmmu_pte_kind_c32_ms2_2c_v(void) 1119static inline u32 gmmu_pte_kind_c32_ms2_2c_v(void)
1120{ 1120{
1121 return 0x000000dd; 1121 return 0x000000ddU;
1122} 1122}
1123static inline u32 gmmu_pte_kind_c32_ms2_2cbr_v(void) 1123static inline u32 gmmu_pte_kind_c32_ms2_2cbr_v(void)
1124{ 1124{
1125 return 0x000000de; 1125 return 0x000000deU;
1126} 1126}
1127static inline u32 gmmu_pte_kind_c32_ms2_2cra_v(void) 1127static inline u32 gmmu_pte_kind_c32_ms2_2cra_v(void)
1128{ 1128{
1129 return 0x000000cc; 1129 return 0x000000ccU;
1130} 1130}
1131static inline u32 gmmu_pte_kind_c32_ms4_2c_v(void) 1131static inline u32 gmmu_pte_kind_c32_ms4_2c_v(void)
1132{ 1132{
1133 return 0x000000df; 1133 return 0x000000dfU;
1134} 1134}
1135static inline u32 gmmu_pte_kind_c32_ms4_2cbr_v(void) 1135static inline u32 gmmu_pte_kind_c32_ms4_2cbr_v(void)
1136{ 1136{
1137 return 0x000000e0; 1137 return 0x000000e0U;
1138} 1138}
1139static inline u32 gmmu_pte_kind_c32_ms4_2cba_v(void) 1139static inline u32 gmmu_pte_kind_c32_ms4_2cba_v(void)
1140{ 1140{
1141 return 0x000000e1; 1141 return 0x000000e1U;
1142} 1142}
1143static inline u32 gmmu_pte_kind_c32_ms4_2cra_v(void) 1143static inline u32 gmmu_pte_kind_c32_ms4_2cra_v(void)
1144{ 1144{
1145 return 0x000000e2; 1145 return 0x000000e2U;
1146} 1146}
1147static inline u32 gmmu_pte_kind_c32_ms4_2bra_v(void) 1147static inline u32 gmmu_pte_kind_c32_ms4_2bra_v(void)
1148{ 1148{
1149 return 0x000000e3; 1149 return 0x000000e3U;
1150} 1150}
1151static inline u32 gmmu_pte_kind_c32_ms4_4cbra_v(void) 1151static inline u32 gmmu_pte_kind_c32_ms4_4cbra_v(void)
1152{ 1152{
1153 return 0x0000002c; 1153 return 0x0000002cU;
1154} 1154}
1155static inline u32 gmmu_pte_kind_c32_ms8_ms16_2c_v(void) 1155static inline u32 gmmu_pte_kind_c32_ms8_ms16_2c_v(void)
1156{ 1156{
1157 return 0x000000e4; 1157 return 0x000000e4U;
1158} 1158}
1159static inline u32 gmmu_pte_kind_c32_ms8_ms16_2cra_v(void) 1159static inline u32 gmmu_pte_kind_c32_ms8_ms16_2cra_v(void)
1160{ 1160{
1161 return 0x000000e5; 1161 return 0x000000e5U;
1162} 1162}
1163static inline u32 gmmu_pte_kind_c64_2c_v(void) 1163static inline u32 gmmu_pte_kind_c64_2c_v(void)
1164{ 1164{
1165 return 0x000000e6; 1165 return 0x000000e6U;
1166} 1166}
1167static inline u32 gmmu_pte_kind_c64_2cbr_v(void) 1167static inline u32 gmmu_pte_kind_c64_2cbr_v(void)
1168{ 1168{
1169 return 0x000000e7; 1169 return 0x000000e7U;
1170} 1170}
1171static inline u32 gmmu_pte_kind_c64_2cba_v(void) 1171static inline u32 gmmu_pte_kind_c64_2cba_v(void)
1172{ 1172{
1173 return 0x000000e8; 1173 return 0x000000e8U;
1174} 1174}
1175static inline u32 gmmu_pte_kind_c64_2cra_v(void) 1175static inline u32 gmmu_pte_kind_c64_2cra_v(void)
1176{ 1176{
1177 return 0x000000e9; 1177 return 0x000000e9U;
1178} 1178}
1179static inline u32 gmmu_pte_kind_c64_2bra_v(void) 1179static inline u32 gmmu_pte_kind_c64_2bra_v(void)
1180{ 1180{
1181 return 0x000000ea; 1181 return 0x000000eaU;
1182} 1182}
1183static inline u32 gmmu_pte_kind_c64_ms2_2c_v(void) 1183static inline u32 gmmu_pte_kind_c64_ms2_2c_v(void)
1184{ 1184{
1185 return 0x000000eb; 1185 return 0x000000ebU;
1186} 1186}
1187static inline u32 gmmu_pte_kind_c64_ms2_2cbr_v(void) 1187static inline u32 gmmu_pte_kind_c64_ms2_2cbr_v(void)
1188{ 1188{
1189 return 0x000000ec; 1189 return 0x000000ecU;
1190} 1190}
1191static inline u32 gmmu_pte_kind_c64_ms2_2cra_v(void) 1191static inline u32 gmmu_pte_kind_c64_ms2_2cra_v(void)
1192{ 1192{
1193 return 0x000000cd; 1193 return 0x000000cdU;
1194} 1194}
1195static inline u32 gmmu_pte_kind_c64_ms4_2c_v(void) 1195static inline u32 gmmu_pte_kind_c64_ms4_2c_v(void)
1196{ 1196{
1197 return 0x000000ed; 1197 return 0x000000edU;
1198} 1198}
1199static inline u32 gmmu_pte_kind_c64_ms4_2cbr_v(void) 1199static inline u32 gmmu_pte_kind_c64_ms4_2cbr_v(void)
1200{ 1200{
1201 return 0x000000ee; 1201 return 0x000000eeU;
1202} 1202}
1203static inline u32 gmmu_pte_kind_c64_ms4_2cba_v(void) 1203static inline u32 gmmu_pte_kind_c64_ms4_2cba_v(void)
1204{ 1204{
1205 return 0x000000ef; 1205 return 0x000000efU;
1206} 1206}
1207static inline u32 gmmu_pte_kind_c64_ms4_2cra_v(void) 1207static inline u32 gmmu_pte_kind_c64_ms4_2cra_v(void)
1208{ 1208{
1209 return 0x000000f0; 1209 return 0x000000f0U;
1210} 1210}
1211static inline u32 gmmu_pte_kind_c64_ms4_2bra_v(void) 1211static inline u32 gmmu_pte_kind_c64_ms4_2bra_v(void)
1212{ 1212{
1213 return 0x000000f1; 1213 return 0x000000f1U;
1214} 1214}
1215static inline u32 gmmu_pte_kind_c64_ms4_4cbra_v(void) 1215static inline u32 gmmu_pte_kind_c64_ms4_4cbra_v(void)
1216{ 1216{
1217 return 0x0000002d; 1217 return 0x0000002dU;
1218} 1218}
1219static inline u32 gmmu_pte_kind_c64_ms8_ms16_2c_v(void) 1219static inline u32 gmmu_pte_kind_c64_ms8_ms16_2c_v(void)
1220{ 1220{
1221 return 0x000000f2; 1221 return 0x000000f2U;
1222} 1222}
1223static inline u32 gmmu_pte_kind_c64_ms8_ms16_2cra_v(void) 1223static inline u32 gmmu_pte_kind_c64_ms8_ms16_2cra_v(void)
1224{ 1224{
1225 return 0x000000f3; 1225 return 0x000000f3U;
1226} 1226}
1227static inline u32 gmmu_pte_kind_c128_2c_v(void) 1227static inline u32 gmmu_pte_kind_c128_2c_v(void)
1228{ 1228{
1229 return 0x000000f4; 1229 return 0x000000f4U;
1230} 1230}
1231static inline u32 gmmu_pte_kind_c128_2cr_v(void) 1231static inline u32 gmmu_pte_kind_c128_2cr_v(void)
1232{ 1232{
1233 return 0x000000f5; 1233 return 0x000000f5U;
1234} 1234}
1235static inline u32 gmmu_pte_kind_c128_ms2_2c_v(void) 1235static inline u32 gmmu_pte_kind_c128_ms2_2c_v(void)
1236{ 1236{
1237 return 0x000000f6; 1237 return 0x000000f6U;
1238} 1238}
1239static inline u32 gmmu_pte_kind_c128_ms2_2cr_v(void) 1239static inline u32 gmmu_pte_kind_c128_ms2_2cr_v(void)
1240{ 1240{
1241 return 0x000000f7; 1241 return 0x000000f7U;
1242} 1242}
1243static inline u32 gmmu_pte_kind_c128_ms4_2c_v(void) 1243static inline u32 gmmu_pte_kind_c128_ms4_2c_v(void)
1244{ 1244{
1245 return 0x000000f8; 1245 return 0x000000f8U;
1246} 1246}
1247static inline u32 gmmu_pte_kind_c128_ms4_2cr_v(void) 1247static inline u32 gmmu_pte_kind_c128_ms4_2cr_v(void)
1248{ 1248{
1249 return 0x000000f9; 1249 return 0x000000f9U;
1250} 1250}
1251static inline u32 gmmu_pte_kind_c128_ms8_ms16_2c_v(void) 1251static inline u32 gmmu_pte_kind_c128_ms8_ms16_2c_v(void)
1252{ 1252{
1253 return 0x000000fa; 1253 return 0x000000faU;
1254} 1254}
1255static inline u32 gmmu_pte_kind_c128_ms8_ms16_2cr_v(void) 1255static inline u32 gmmu_pte_kind_c128_ms8_ms16_2cr_v(void)
1256{ 1256{
1257 return 0x000000fb; 1257 return 0x000000fbU;
1258} 1258}
1259static inline u32 gmmu_pte_kind_x8c24_v(void) 1259static inline u32 gmmu_pte_kind_x8c24_v(void)
1260{ 1260{
1261 return 0x000000fc; 1261 return 0x000000fcU;
1262} 1262}
1263static inline u32 gmmu_pte_kind_pitch_no_swizzle_v(void) 1263static inline u32 gmmu_pte_kind_pitch_no_swizzle_v(void)
1264{ 1264{
1265 return 0x000000fd; 1265 return 0x000000fdU;
1266} 1266}
1267static inline u32 gmmu_pte_kind_smsked_message_v(void) 1267static inline u32 gmmu_pte_kind_smsked_message_v(void)
1268{ 1268{
1269 return 0x000000ca; 1269 return 0x000000caU;
1270} 1270}
1271static inline u32 gmmu_pte_kind_smhost_message_v(void) 1271static inline u32 gmmu_pte_kind_smhost_message_v(void)
1272{ 1272{
1273 return 0x000000cb; 1273 return 0x000000cbU;
1274} 1274}
1275static inline u32 gmmu_pte_kind_s8_v(void) 1275static inline u32 gmmu_pte_kind_s8_v(void)
1276{ 1276{
1277 return 0x0000002a; 1277 return 0x0000002aU;
1278} 1278}
1279static inline u32 gmmu_pte_kind_s8_2s_v(void) 1279static inline u32 gmmu_pte_kind_s8_2s_v(void)
1280{ 1280{
1281 return 0x0000002b; 1281 return 0x0000002bU;
1282} 1282}
1283#endif 1283#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h
index 5fc01634..27760a73 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h
@@ -58,4278 +58,4282 @@
58 58
59static inline u32 gr_intr_r(void) 59static inline u32 gr_intr_r(void)
60{ 60{
61 return 0x00400100; 61 return 0x00400100U;
62} 62}
63static inline u32 gr_intr_notify_pending_f(void) 63static inline u32 gr_intr_notify_pending_f(void)
64{ 64{
65 return 0x1; 65 return 0x1U;
66} 66}
67static inline u32 gr_intr_notify_reset_f(void) 67static inline u32 gr_intr_notify_reset_f(void)
68{ 68{
69 return 0x1; 69 return 0x1U;
70} 70}
71static inline u32 gr_intr_semaphore_pending_f(void) 71static inline u32 gr_intr_semaphore_pending_f(void)
72{ 72{
73 return 0x2; 73 return 0x2U;
74} 74}
75static inline u32 gr_intr_semaphore_reset_f(void) 75static inline u32 gr_intr_semaphore_reset_f(void)
76{ 76{
77 return 0x2; 77 return 0x2U;
78} 78}
79static inline u32 gr_intr_illegal_method_pending_f(void) 79static inline u32 gr_intr_illegal_method_pending_f(void)
80{ 80{
81 return 0x10; 81 return 0x10U;
82} 82}
83static inline u32 gr_intr_illegal_method_reset_f(void) 83static inline u32 gr_intr_illegal_method_reset_f(void)
84{ 84{
85 return 0x10; 85 return 0x10U;
86} 86}
87static inline u32 gr_intr_illegal_notify_pending_f(void) 87static inline u32 gr_intr_illegal_notify_pending_f(void)
88{ 88{
89 return 0x40; 89 return 0x40U;
90} 90}
91static inline u32 gr_intr_illegal_notify_reset_f(void) 91static inline u32 gr_intr_illegal_notify_reset_f(void)
92{ 92{
93 return 0x40; 93 return 0x40U;
94} 94}
95static inline u32 gr_intr_firmware_method_f(u32 v) 95static inline u32 gr_intr_firmware_method_f(u32 v)
96{ 96{
97 return (v & 0x1) << 8; 97 return (v & 0x1U) << 8U;
98} 98}
99static inline u32 gr_intr_firmware_method_pending_f(void) 99static inline u32 gr_intr_firmware_method_pending_f(void)
100{ 100{
101 return 0x100; 101 return 0x100U;
102} 102}
103static inline u32 gr_intr_firmware_method_reset_f(void) 103static inline u32 gr_intr_firmware_method_reset_f(void)
104{ 104{
105 return 0x100; 105 return 0x100U;
106} 106}
107static inline u32 gr_intr_illegal_class_pending_f(void) 107static inline u32 gr_intr_illegal_class_pending_f(void)
108{ 108{
109 return 0x20; 109 return 0x20U;
110} 110}
111static inline u32 gr_intr_illegal_class_reset_f(void) 111static inline u32 gr_intr_illegal_class_reset_f(void)
112{ 112{
113 return 0x20; 113 return 0x20U;
114} 114}
115static inline u32 gr_intr_fecs_error_pending_f(void) 115static inline u32 gr_intr_fecs_error_pending_f(void)
116{ 116{
117 return 0x80000; 117 return 0x80000U;
118} 118}
119static inline u32 gr_intr_fecs_error_reset_f(void) 119static inline u32 gr_intr_fecs_error_reset_f(void)
120{ 120{
121 return 0x80000; 121 return 0x80000U;
122} 122}
123static inline u32 gr_intr_class_error_pending_f(void) 123static inline u32 gr_intr_class_error_pending_f(void)
124{ 124{
125 return 0x100000; 125 return 0x100000U;
126} 126}
127static inline u32 gr_intr_class_error_reset_f(void) 127static inline u32 gr_intr_class_error_reset_f(void)
128{ 128{
129 return 0x100000; 129 return 0x100000U;
130} 130}
131static inline u32 gr_intr_exception_pending_f(void) 131static inline u32 gr_intr_exception_pending_f(void)
132{ 132{
133 return 0x200000; 133 return 0x200000U;
134} 134}
135static inline u32 gr_intr_exception_reset_f(void) 135static inline u32 gr_intr_exception_reset_f(void)
136{ 136{
137 return 0x200000; 137 return 0x200000U;
138} 138}
139static inline u32 gr_fecs_intr_r(void) 139static inline u32 gr_fecs_intr_r(void)
140{ 140{
141 return 0x00400144; 141 return 0x00400144U;
142} 142}
143static inline u32 gr_class_error_r(void) 143static inline u32 gr_class_error_r(void)
144{ 144{
145 return 0x00400110; 145 return 0x00400110U;
146} 146}
147static inline u32 gr_class_error_code_v(u32 r) 147static inline u32 gr_class_error_code_v(u32 r)
148{ 148{
149 return (r >> 0) & 0xffff; 149 return (r >> 0U) & 0xffffU;
150} 150}
151static inline u32 gr_intr_nonstall_r(void) 151static inline u32 gr_intr_nonstall_r(void)
152{ 152{
153 return 0x00400120; 153 return 0x00400120U;
154} 154}
155static inline u32 gr_intr_nonstall_trap_pending_f(void) 155static inline u32 gr_intr_nonstall_trap_pending_f(void)
156{ 156{
157 return 0x2; 157 return 0x2U;
158} 158}
159static inline u32 gr_intr_en_r(void) 159static inline u32 gr_intr_en_r(void)
160{ 160{
161 return 0x0040013c; 161 return 0x0040013cU;
162} 162}
163static inline u32 gr_exception_r(void) 163static inline u32 gr_exception_r(void)
164{ 164{
165 return 0x00400108; 165 return 0x00400108U;
166} 166}
167static inline u32 gr_exception_fe_m(void) 167static inline u32 gr_exception_fe_m(void)
168{ 168{
169 return 0x1 << 0; 169 return 0x1U << 0U;
170} 170}
171static inline u32 gr_exception_gpc_m(void) 171static inline u32 gr_exception_gpc_m(void)
172{ 172{
173 return 0x1 << 24; 173 return 0x1U << 24U;
174} 174}
175static inline u32 gr_exception_memfmt_m(void) 175static inline u32 gr_exception_memfmt_m(void)
176{ 176{
177 return 0x1 << 1; 177 return 0x1U << 1U;
178} 178}
179static inline u32 gr_exception_ds_m(void) 179static inline u32 gr_exception_ds_m(void)
180{ 180{
181 return 0x1 << 4; 181 return 0x1U << 4U;
182}
183static inline u32 gr_exception_sked_m(void)
184{
185 return 0x1U << 8U;
182} 186}
183static inline u32 gr_exception1_r(void) 187static inline u32 gr_exception1_r(void)
184{ 188{
185 return 0x00400118; 189 return 0x00400118U;
186} 190}
187static inline u32 gr_exception1_gpc_0_pending_f(void) 191static inline u32 gr_exception1_gpc_0_pending_f(void)
188{ 192{
189 return 0x1; 193 return 0x1U;
190} 194}
191static inline u32 gr_exception2_r(void) 195static inline u32 gr_exception2_r(void)
192{ 196{
193 return 0x0040011c; 197 return 0x0040011cU;
194} 198}
195static inline u32 gr_exception_en_r(void) 199static inline u32 gr_exception_en_r(void)
196{ 200{
197 return 0x00400138; 201 return 0x00400138U;
198} 202}
199static inline u32 gr_exception_en_fe_m(void) 203static inline u32 gr_exception_en_fe_m(void)
200{ 204{
201 return 0x1 << 0; 205 return 0x1U << 0U;
202} 206}
203static inline u32 gr_exception1_en_r(void) 207static inline u32 gr_exception1_en_r(void)
204{ 208{
205 return 0x00400130; 209 return 0x00400130U;
206} 210}
207static inline u32 gr_exception2_en_r(void) 211static inline u32 gr_exception2_en_r(void)
208{ 212{
209 return 0x00400134; 213 return 0x00400134U;
210} 214}
211static inline u32 gr_gpfifo_ctl_r(void) 215static inline u32 gr_gpfifo_ctl_r(void)
212{ 216{
213 return 0x00400500; 217 return 0x00400500U;
214} 218}
215static inline u32 gr_gpfifo_ctl_access_f(u32 v) 219static inline u32 gr_gpfifo_ctl_access_f(u32 v)
216{ 220{
217 return (v & 0x1) << 0; 221 return (v & 0x1U) << 0U;
218} 222}
219static inline u32 gr_gpfifo_ctl_access_disabled_f(void) 223static inline u32 gr_gpfifo_ctl_access_disabled_f(void)
220{ 224{
221 return 0x0; 225 return 0x0U;
222} 226}
223static inline u32 gr_gpfifo_ctl_access_enabled_f(void) 227static inline u32 gr_gpfifo_ctl_access_enabled_f(void)
224{ 228{
225 return 0x1; 229 return 0x1U;
226} 230}
227static inline u32 gr_gpfifo_ctl_semaphore_access_f(u32 v) 231static inline u32 gr_gpfifo_ctl_semaphore_access_f(u32 v)
228{ 232{
229 return (v & 0x1) << 16; 233 return (v & 0x1U) << 16U;
230} 234}
231static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_v(void) 235static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_v(void)
232{ 236{
233 return 0x00000001; 237 return 0x00000001U;
234} 238}
235static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_f(void) 239static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_f(void)
236{ 240{
237 return 0x10000; 241 return 0x10000U;
238} 242}
239static inline u32 gr_gpfifo_status_r(void) 243static inline u32 gr_gpfifo_status_r(void)
240{ 244{
241 return 0x00400504; 245 return 0x00400504U;
242} 246}
243static inline u32 gr_trapped_addr_r(void) 247static inline u32 gr_trapped_addr_r(void)
244{ 248{
245 return 0x00400704; 249 return 0x00400704U;
246} 250}
247static inline u32 gr_trapped_addr_mthd_v(u32 r) 251static inline u32 gr_trapped_addr_mthd_v(u32 r)
248{ 252{
249 return (r >> 2) & 0xfff; 253 return (r >> 2U) & 0xfffU;
250} 254}
251static inline u32 gr_trapped_addr_subch_v(u32 r) 255static inline u32 gr_trapped_addr_subch_v(u32 r)
252{ 256{
253 return (r >> 16) & 0x7; 257 return (r >> 16U) & 0x7U;
254} 258}
255static inline u32 gr_trapped_data_lo_r(void) 259static inline u32 gr_trapped_data_lo_r(void)
256{ 260{
257 return 0x00400708; 261 return 0x00400708U;
258} 262}
259static inline u32 gr_trapped_data_hi_r(void) 263static inline u32 gr_trapped_data_hi_r(void)
260{ 264{
261 return 0x0040070c; 265 return 0x0040070cU;
262} 266}
263static inline u32 gr_status_r(void) 267static inline u32 gr_status_r(void)
264{ 268{
265 return 0x00400700; 269 return 0x00400700U;
266} 270}
267static inline u32 gr_status_fe_method_upper_v(u32 r) 271static inline u32 gr_status_fe_method_upper_v(u32 r)
268{ 272{
269 return (r >> 1) & 0x1; 273 return (r >> 1U) & 0x1U;
270} 274}
271static inline u32 gr_status_fe_method_lower_v(u32 r) 275static inline u32 gr_status_fe_method_lower_v(u32 r)
272{ 276{
273 return (r >> 2) & 0x1; 277 return (r >> 2U) & 0x1U;
274} 278}
275static inline u32 gr_status_fe_method_lower_idle_v(void) 279static inline u32 gr_status_fe_method_lower_idle_v(void)
276{ 280{
277 return 0x00000000; 281 return 0x00000000U;
278} 282}
279static inline u32 gr_status_fe_gi_v(u32 r) 283static inline u32 gr_status_fe_gi_v(u32 r)
280{ 284{
281 return (r >> 21) & 0x1; 285 return (r >> 21U) & 0x1U;
282} 286}
283static inline u32 gr_status_mask_r(void) 287static inline u32 gr_status_mask_r(void)
284{ 288{
285 return 0x00400610; 289 return 0x00400610U;
286} 290}
287static inline u32 gr_status_1_r(void) 291static inline u32 gr_status_1_r(void)
288{ 292{
289 return 0x00400604; 293 return 0x00400604U;
290} 294}
291static inline u32 gr_status_2_r(void) 295static inline u32 gr_status_2_r(void)
292{ 296{
293 return 0x00400608; 297 return 0x00400608U;
294} 298}
295static inline u32 gr_engine_status_r(void) 299static inline u32 gr_engine_status_r(void)
296{ 300{
297 return 0x0040060c; 301 return 0x0040060cU;
298} 302}
299static inline u32 gr_engine_status_value_busy_f(void) 303static inline u32 gr_engine_status_value_busy_f(void)
300{ 304{
301 return 0x1; 305 return 0x1U;
302} 306}
303static inline u32 gr_pri_be0_becs_be_exception_r(void) 307static inline u32 gr_pri_be0_becs_be_exception_r(void)
304{ 308{
305 return 0x00410204; 309 return 0x00410204U;
306} 310}
307static inline u32 gr_pri_be0_becs_be_exception_en_r(void) 311static inline u32 gr_pri_be0_becs_be_exception_en_r(void)
308{ 312{
309 return 0x00410208; 313 return 0x00410208U;
310} 314}
311static inline u32 gr_pri_gpc0_gpccs_gpc_exception_r(void) 315static inline u32 gr_pri_gpc0_gpccs_gpc_exception_r(void)
312{ 316{
313 return 0x00502c90; 317 return 0x00502c90U;
314} 318}
315static inline u32 gr_pri_gpc0_gpccs_gpc_exception_en_r(void) 319static inline u32 gr_pri_gpc0_gpccs_gpc_exception_en_r(void)
316{ 320{
317 return 0x00502c94; 321 return 0x00502c94U;
318} 322}
319static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_r(void) 323static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_r(void)
320{ 324{
321 return 0x00504508; 325 return 0x00504508U;
322} 326}
323static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_en_r(void) 327static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
324{ 328{
325 return 0x0050450c; 329 return 0x0050450cU;
326} 330}
327static inline u32 gr_activity_0_r(void) 331static inline u32 gr_activity_0_r(void)
328{ 332{
329 return 0x00400380; 333 return 0x00400380U;
330} 334}
331static inline u32 gr_activity_1_r(void) 335static inline u32 gr_activity_1_r(void)
332{ 336{
333 return 0x00400384; 337 return 0x00400384U;
334} 338}
335static inline u32 gr_activity_2_r(void) 339static inline u32 gr_activity_2_r(void)
336{ 340{
337 return 0x00400388; 341 return 0x00400388U;
338} 342}
339static inline u32 gr_activity_4_r(void) 343static inline u32 gr_activity_4_r(void)
340{ 344{
341 return 0x00400390; 345 return 0x00400390U;
342} 346}
343static inline u32 gr_activity_4_gpc0_s(void) 347static inline u32 gr_activity_4_gpc0_s(void)
344{ 348{
345 return 3; 349 return 3U;
346} 350}
347static inline u32 gr_activity_4_gpc0_f(u32 v) 351static inline u32 gr_activity_4_gpc0_f(u32 v)
348{ 352{
349 return (v & 0x7) << 0; 353 return (v & 0x7U) << 0U;
350} 354}
351static inline u32 gr_activity_4_gpc0_m(void) 355static inline u32 gr_activity_4_gpc0_m(void)
352{ 356{
353 return 0x7 << 0; 357 return 0x7U << 0U;
354} 358}
355static inline u32 gr_activity_4_gpc0_v(u32 r) 359static inline u32 gr_activity_4_gpc0_v(u32 r)
356{ 360{
357 return (r >> 0) & 0x7; 361 return (r >> 0U) & 0x7U;
358} 362}
359static inline u32 gr_activity_4_gpc0_empty_v(void) 363static inline u32 gr_activity_4_gpc0_empty_v(void)
360{ 364{
361 return 0x00000000; 365 return 0x00000000U;
362} 366}
363static inline u32 gr_activity_4_gpc0_preempted_v(void) 367static inline u32 gr_activity_4_gpc0_preempted_v(void)
364{ 368{
365 return 0x00000004; 369 return 0x00000004U;
366} 370}
367static inline u32 gr_pri_gpc0_gcc_dbg_r(void) 371static inline u32 gr_pri_gpc0_gcc_dbg_r(void)
368{ 372{
369 return 0x00501000; 373 return 0x00501000U;
370} 374}
371static inline u32 gr_pri_gpcs_gcc_dbg_r(void) 375static inline u32 gr_pri_gpcs_gcc_dbg_r(void)
372{ 376{
373 return 0x00419000; 377 return 0x00419000U;
374} 378}
375static inline u32 gr_pri_gpcs_gcc_dbg_invalidate_m(void) 379static inline u32 gr_pri_gpcs_gcc_dbg_invalidate_m(void)
376{ 380{
377 return 0x1 << 1; 381 return 0x1U << 1U;
378} 382}
379static inline u32 gr_pri_gpc0_tpc0_sm_cache_control_r(void) 383static inline u32 gr_pri_gpc0_tpc0_sm_cache_control_r(void)
380{ 384{
381 return 0x005046a4; 385 return 0x005046a4U;
382} 386}
383static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_r(void) 387static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_r(void)
384{ 388{
385 return 0x00419ea4; 389 return 0x00419ea4U;
386} 390}
387static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_invalidate_cache_m(void) 391static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_invalidate_cache_m(void)
388{ 392{
389 return 0x1 << 0; 393 return 0x1U << 0U;
390} 394}
391static inline u32 gr_pri_sked_activity_r(void) 395static inline u32 gr_pri_sked_activity_r(void)
392{ 396{
393 return 0x00407054; 397 return 0x00407054U;
394} 398}
395static inline u32 gr_pri_gpc0_gpccs_gpc_activity0_r(void) 399static inline u32 gr_pri_gpc0_gpccs_gpc_activity0_r(void)
396{ 400{
397 return 0x00502c80; 401 return 0x00502c80U;
398} 402}
399static inline u32 gr_pri_gpc0_gpccs_gpc_activity1_r(void) 403static inline u32 gr_pri_gpc0_gpccs_gpc_activity1_r(void)
400{ 404{
401 return 0x00502c84; 405 return 0x00502c84U;
402} 406}
403static inline u32 gr_pri_gpc0_gpccs_gpc_activity2_r(void) 407static inline u32 gr_pri_gpc0_gpccs_gpc_activity2_r(void)
404{ 408{
405 return 0x00502c88; 409 return 0x00502c88U;
406} 410}
407static inline u32 gr_pri_gpc0_gpccs_gpc_activity3_r(void) 411static inline u32 gr_pri_gpc0_gpccs_gpc_activity3_r(void)
408{ 412{
409 return 0x00502c8c; 413 return 0x00502c8cU;
410} 414}
411static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_activity_0_r(void) 415static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_activity_0_r(void)
412{ 416{
413 return 0x00504500; 417 return 0x00504500U;
414} 418}
415static inline u32 gr_pri_gpc0_tpc1_tpccs_tpc_activity_0_r(void) 419static inline u32 gr_pri_gpc0_tpc1_tpccs_tpc_activity_0_r(void)
416{ 420{
417 return 0x00504d00; 421 return 0x00504d00U;
418} 422}
419static inline u32 gr_pri_gpc0_tpcs_tpccs_tpc_activity_0_r(void) 423static inline u32 gr_pri_gpc0_tpcs_tpccs_tpc_activity_0_r(void)
420{ 424{
421 return 0x00501d00; 425 return 0x00501d00U;
422} 426}
423static inline u32 gr_pri_gpcs_gpccs_gpc_activity_0_r(void) 427static inline u32 gr_pri_gpcs_gpccs_gpc_activity_0_r(void)
424{ 428{
425 return 0x0041ac80; 429 return 0x0041ac80U;
426} 430}
427static inline u32 gr_pri_gpcs_gpccs_gpc_activity_1_r(void) 431static inline u32 gr_pri_gpcs_gpccs_gpc_activity_1_r(void)
428{ 432{
429 return 0x0041ac84; 433 return 0x0041ac84U;
430} 434}
431static inline u32 gr_pri_gpcs_gpccs_gpc_activity_2_r(void) 435static inline u32 gr_pri_gpcs_gpccs_gpc_activity_2_r(void)
432{ 436{
433 return 0x0041ac88; 437 return 0x0041ac88U;
434} 438}
435static inline u32 gr_pri_gpcs_gpccs_gpc_activity_3_r(void) 439static inline u32 gr_pri_gpcs_gpccs_gpc_activity_3_r(void)
436{ 440{
437 return 0x0041ac8c; 441 return 0x0041ac8cU;
438} 442}
439static inline u32 gr_pri_gpcs_tpc0_tpccs_tpc_activity_0_r(void) 443static inline u32 gr_pri_gpcs_tpc0_tpccs_tpc_activity_0_r(void)
440{ 444{
441 return 0x0041c500; 445 return 0x0041c500U;
442} 446}
443static inline u32 gr_pri_gpcs_tpc1_tpccs_tpc_activity_0_r(void) 447static inline u32 gr_pri_gpcs_tpc1_tpccs_tpc_activity_0_r(void)
444{ 448{
445 return 0x0041cd00; 449 return 0x0041cd00U;
446} 450}
447static inline u32 gr_pri_gpcs_tpcs_tpccs_tpc_activity_0_r(void) 451static inline u32 gr_pri_gpcs_tpcs_tpccs_tpc_activity_0_r(void)
448{ 452{
449 return 0x00419d00; 453 return 0x00419d00U;
450} 454}
451static inline u32 gr_pri_be0_becs_be_activity0_r(void) 455static inline u32 gr_pri_be0_becs_be_activity0_r(void)
452{ 456{
453 return 0x00410200; 457 return 0x00410200U;
454} 458}
455static inline u32 gr_pri_be1_becs_be_activity0_r(void) 459static inline u32 gr_pri_be1_becs_be_activity0_r(void)
456{ 460{
457 return 0x00410600; 461 return 0x00410600U;
458} 462}
459static inline u32 gr_pri_bes_becs_be_activity0_r(void) 463static inline u32 gr_pri_bes_becs_be_activity0_r(void)
460{ 464{
461 return 0x00408a00; 465 return 0x00408a00U;
462} 466}
463static inline u32 gr_pri_ds_mpipe_status_r(void) 467static inline u32 gr_pri_ds_mpipe_status_r(void)
464{ 468{
465 return 0x00405858; 469 return 0x00405858U;
466} 470}
467static inline u32 gr_pri_fe_go_idle_info_r(void) 471static inline u32 gr_pri_fe_go_idle_info_r(void)
468{ 472{
469 return 0x00404194; 473 return 0x00404194U;
470} 474}
471static inline u32 gr_pri_gpc0_tpc0_tex_m_tex_subunits_status_r(void) 475static inline u32 gr_pri_gpc0_tpc0_tex_m_tex_subunits_status_r(void)
472{ 476{
473 return 0x00504238; 477 return 0x00504238U;
474} 478}
475static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_r(void) 479static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_r(void)
476{ 480{
477 return 0x005046b8; 481 return 0x005046b8U;
478} 482}
479static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp0_b(void) 483static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp0_b(void)
480{ 484{
481 return 4; 485 return 4U;
482} 486}
483static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp0_pending_f(void) 487static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp0_pending_f(void)
484{ 488{
485 return 0x10; 489 return 0x10U;
486} 490}
487static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp1_pending_f(void) 491static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp1_pending_f(void)
488{ 492{
489 return 0x20; 493 return 0x20U;
490} 494}
491static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp2_pending_f(void) 495static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp2_pending_f(void)
492{ 496{
493 return 0x40; 497 return 0x40U;
494} 498}
495static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp3_pending_f(void) 499static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_single_err_detected_qrfdp3_pending_f(void)
496{ 500{
497 return 0x80; 501 return 0x80U;
498} 502}
499static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp0_b(void) 503static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp0_b(void)
500{ 504{
501 return 8; 505 return 8U;
502} 506}
503static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp0_pending_f(void) 507static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp0_pending_f(void)
504{ 508{
505 return 0x100; 509 return 0x100U;
506} 510}
507static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp1_pending_f(void) 511static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp1_pending_f(void)
508{ 512{
509 return 0x200; 513 return 0x200U;
510} 514}
511static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp2_pending_f(void) 515static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp2_pending_f(void)
512{ 516{
513 return 0x400; 517 return 0x400U;
514} 518}
515static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp3_pending_f(void) 519static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_double_err_detected_qrfdp3_pending_f(void)
516{ 520{
517 return 0x800; 521 return 0x800U;
518} 522}
519static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_r(void) 523static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_r(void)
520{ 524{
521 return 0x005044a0; 525 return 0x005044a0U;
522} 526}
523static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_corrected_shm0_pending_f(void) 527static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_corrected_shm0_pending_f(void)
524{ 528{
525 return 0x1; 529 return 0x1U;
526} 530}
527static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_corrected_shm1_pending_f(void) 531static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_corrected_shm1_pending_f(void)
528{ 532{
529 return 0x2; 533 return 0x2U;
530} 534}
531static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_detected_shm0_pending_f(void) 535static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_detected_shm0_pending_f(void)
532{ 536{
533 return 0x10; 537 return 0x10U;
534} 538}
535static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_detected_shm1_pending_f(void) 539static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_single_err_detected_shm1_pending_f(void)
536{ 540{
537 return 0x20; 541 return 0x20U;
538} 542}
539static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_double_err_detected_shm0_pending_f(void) 543static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_double_err_detected_shm0_pending_f(void)
540{ 544{
541 return 0x100; 545 return 0x100U;
542} 546}
543static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_double_err_detected_shm1_pending_f(void) 547static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_status_double_err_detected_shm1_pending_f(void)
544{ 548{
545 return 0x200; 549 return 0x200U;
546} 550}
547static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_single_err_count_r(void) 551static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_single_err_count_r(void)
548{ 552{
549 return 0x005046bc; 553 return 0x005046bcU;
550} 554}
551static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_double_err_count_r(void) 555static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_double_err_count_r(void)
552{ 556{
553 return 0x005046c0; 557 return 0x005046c0U;
554} 558}
555static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_r(void) 559static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_r(void)
556{ 560{
557 return 0x005044a4; 561 return 0x005044a4U;
558} 562}
559static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_corrected_m(void) 563static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_corrected_m(void)
560{ 564{
561 return 0xff << 0; 565 return 0xffU << 0U;
562} 566}
563static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_corrected_v(u32 r) 567static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_corrected_v(u32 r)
564{ 568{
565 return (r >> 0) & 0xff; 569 return (r >> 0U) & 0xffU;
566} 570}
567static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_detected_m(void) 571static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_detected_m(void)
568{ 572{
569 return 0xff << 8; 573 return 0xffU << 8U;
570} 574}
571static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_detected_v(u32 r) 575static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_single_detected_v(u32 r)
572{ 576{
573 return (r >> 8) & 0xff; 577 return (r >> 8U) & 0xffU;
574} 578}
575static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_double_detected_m(void) 579static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_double_detected_m(void)
576{ 580{
577 return 0xff << 16; 581 return 0xffU << 16U;
578} 582}
579static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_double_detected_v(u32 r) 583static inline u32 gr_pri_gpc0_tpc0_sm_shm_ecc_err_count_double_detected_v(u32 r)
580{ 584{
581 return (r >> 16) & 0xff; 585 return (r >> 16U) & 0xffU;
582} 586}
583static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_r(void) 587static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_r(void)
584{ 588{
585 return 0x005042c4; 589 return 0x005042c4U;
586} 590}
587static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_default_f(void) 591static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_default_f(void)
588{ 592{
589 return 0x0; 593 return 0x0U;
590} 594}
591static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe0_f(void) 595static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe0_f(void)
592{ 596{
593 return 0x1; 597 return 0x1U;
594} 598}
595static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe1_f(void) 599static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe1_f(void)
596{ 600{
597 return 0x2; 601 return 0x2U;
598} 602}
599static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_r(void) 603static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_r(void)
600{ 604{
601 return 0x00504218; 605 return 0x00504218U;
602} 606}
603static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_sec_m(void) 607static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_sec_m(void)
604{ 608{
605 return 0xffff << 0; 609 return 0xffffU << 0U;
606} 610}
607static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_sec_v(u32 r) 611static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_sec_v(u32 r)
608{ 612{
609 return (r >> 0) & 0xffff; 613 return (r >> 0U) & 0xffffU;
610} 614}
611static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_ded_m(void) 615static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_ded_m(void)
612{ 616{
613 return 0xffff << 16; 617 return 0xffffU << 16U;
614} 618}
615static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_ded_v(u32 r) 619static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_total_ded_v(u32 r)
616{ 620{
617 return (r >> 16) & 0xffff; 621 return (r >> 16U) & 0xffffU;
618} 622}
619static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_r(void) 623static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_r(void)
620{ 624{
621 return 0x005042ec; 625 return 0x005042ecU;
622} 626}
623static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_sec_m(void) 627static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_sec_m(void)
624{ 628{
625 return 0xffff << 0; 629 return 0xffffU << 0U;
626} 630}
627static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_sec_v(u32 r) 631static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_sec_v(u32 r)
628{ 632{
629 return (r >> 0) & 0xffff; 633 return (r >> 0U) & 0xffffU;
630} 634}
631static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_ded_m(void) 635static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_ded_m(void)
632{ 636{
633 return 0xffff << 16; 637 return 0xffffU << 16U;
634} 638}
635static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_ded_v(u32 r) 639static inline u32 gr_pri_gpc0_tpc0_tex_m_ecc_cnt_unique_ded_v(u32 r)
636{ 640{
637 return (r >> 16) & 0xffff; 641 return (r >> 16U) & 0xffffU;
638} 642}
639static inline u32 gr_pri_be0_crop_status1_r(void) 643static inline u32 gr_pri_be0_crop_status1_r(void)
640{ 644{
641 return 0x00410134; 645 return 0x00410134U;
642} 646}
643static inline u32 gr_pri_bes_crop_status1_r(void) 647static inline u32 gr_pri_bes_crop_status1_r(void)
644{ 648{
645 return 0x00408934; 649 return 0x00408934U;
646} 650}
647static inline u32 gr_pri_be0_zrop_status_r(void) 651static inline u32 gr_pri_be0_zrop_status_r(void)
648{ 652{
649 return 0x00410048; 653 return 0x00410048U;
650} 654}
651static inline u32 gr_pri_be0_zrop_status2_r(void) 655static inline u32 gr_pri_be0_zrop_status2_r(void)
652{ 656{
653 return 0x0041004c; 657 return 0x0041004cU;
654} 658}
655static inline u32 gr_pri_bes_zrop_status_r(void) 659static inline u32 gr_pri_bes_zrop_status_r(void)
656{ 660{
657 return 0x00408848; 661 return 0x00408848U;
658} 662}
659static inline u32 gr_pri_bes_zrop_status2_r(void) 663static inline u32 gr_pri_bes_zrop_status2_r(void)
660{ 664{
661 return 0x0040884c; 665 return 0x0040884cU;
662} 666}
663static inline u32 gr_pipe_bundle_address_r(void) 667static inline u32 gr_pipe_bundle_address_r(void)
664{ 668{
665 return 0x00400200; 669 return 0x00400200U;
666} 670}
667static inline u32 gr_pipe_bundle_address_value_v(u32 r) 671static inline u32 gr_pipe_bundle_address_value_v(u32 r)
668{ 672{
669 return (r >> 0) & 0xffff; 673 return (r >> 0U) & 0xffffU;
670} 674}
671static inline u32 gr_pipe_bundle_data_r(void) 675static inline u32 gr_pipe_bundle_data_r(void)
672{ 676{
673 return 0x00400204; 677 return 0x00400204U;
674} 678}
675static inline u32 gr_pipe_bundle_config_r(void) 679static inline u32 gr_pipe_bundle_config_r(void)
676{ 680{
677 return 0x00400208; 681 return 0x00400208U;
678} 682}
679static inline u32 gr_pipe_bundle_config_override_pipe_mode_disabled_f(void) 683static inline u32 gr_pipe_bundle_config_override_pipe_mode_disabled_f(void)
680{ 684{
681 return 0x0; 685 return 0x0U;
682} 686}
683static inline u32 gr_pipe_bundle_config_override_pipe_mode_enabled_f(void) 687static inline u32 gr_pipe_bundle_config_override_pipe_mode_enabled_f(void)
684{ 688{
685 return 0x80000000; 689 return 0x80000000U;
686} 690}
687static inline u32 gr_fe_hww_esr_r(void) 691static inline u32 gr_fe_hww_esr_r(void)
688{ 692{
689 return 0x00404000; 693 return 0x00404000U;
690} 694}
691static inline u32 gr_fe_hww_esr_reset_active_f(void) 695static inline u32 gr_fe_hww_esr_reset_active_f(void)
692{ 696{
693 return 0x40000000; 697 return 0x40000000U;
694} 698}
695static inline u32 gr_fe_hww_esr_en_enable_f(void) 699static inline u32 gr_fe_hww_esr_en_enable_f(void)
696{ 700{
697 return 0x80000000; 701 return 0x80000000U;
698} 702}
699static inline u32 gr_fe_go_idle_timeout_r(void) 703static inline u32 gr_fe_go_idle_timeout_r(void)
700{ 704{
701 return 0x00404154; 705 return 0x00404154U;
702} 706}
703static inline u32 gr_fe_go_idle_timeout_count_f(u32 v) 707static inline u32 gr_fe_go_idle_timeout_count_f(u32 v)
704{ 708{
705 return (v & 0xffffffff) << 0; 709 return (v & 0xffffffffU) << 0U;
706} 710}
707static inline u32 gr_fe_go_idle_timeout_count_disabled_f(void) 711static inline u32 gr_fe_go_idle_timeout_count_disabled_f(void)
708{ 712{
709 return 0x0; 713 return 0x0U;
710} 714}
711static inline u32 gr_fe_go_idle_timeout_count_prod_f(void) 715static inline u32 gr_fe_go_idle_timeout_count_prod_f(void)
712{ 716{
713 return 0x7fffffff; 717 return 0x7fffffffU;
714} 718}
715static inline u32 gr_fe_object_table_r(u32 i) 719static inline u32 gr_fe_object_table_r(u32 i)
716{ 720{
717 return 0x00404200 + i*4; 721 return 0x00404200U + i*4U;
718} 722}
719static inline u32 gr_fe_object_table_nvclass_v(u32 r) 723static inline u32 gr_fe_object_table_nvclass_v(u32 r)
720{ 724{
721 return (r >> 0) & 0xffff; 725 return (r >> 0U) & 0xffffU;
722} 726}
723static inline u32 gr_fe_tpc_fs_r(void) 727static inline u32 gr_fe_tpc_fs_r(void)
724{ 728{
725 return 0x004041c4; 729 return 0x004041c4U;
726} 730}
727static inline u32 gr_pri_mme_shadow_raw_index_r(void) 731static inline u32 gr_pri_mme_shadow_raw_index_r(void)
728{ 732{
729 return 0x00404488; 733 return 0x00404488U;
730} 734}
731static inline u32 gr_pri_mme_shadow_raw_index_write_trigger_f(void) 735static inline u32 gr_pri_mme_shadow_raw_index_write_trigger_f(void)
732{ 736{
733 return 0x80000000; 737 return 0x80000000U;
734} 738}
735static inline u32 gr_pri_mme_shadow_raw_data_r(void) 739static inline u32 gr_pri_mme_shadow_raw_data_r(void)
736{ 740{
737 return 0x0040448c; 741 return 0x0040448cU;
738} 742}
739static inline u32 gr_mme_hww_esr_r(void) 743static inline u32 gr_mme_hww_esr_r(void)
740{ 744{
741 return 0x00404490; 745 return 0x00404490U;
742} 746}
743static inline u32 gr_mme_hww_esr_reset_active_f(void) 747static inline u32 gr_mme_hww_esr_reset_active_f(void)
744{ 748{
745 return 0x40000000; 749 return 0x40000000U;
746} 750}
747static inline u32 gr_mme_hww_esr_en_enable_f(void) 751static inline u32 gr_mme_hww_esr_en_enable_f(void)
748{ 752{
749 return 0x80000000; 753 return 0x80000000U;
750} 754}
751static inline u32 gr_memfmt_hww_esr_r(void) 755static inline u32 gr_memfmt_hww_esr_r(void)
752{ 756{
753 return 0x00404600; 757 return 0x00404600U;
754} 758}
755static inline u32 gr_memfmt_hww_esr_reset_active_f(void) 759static inline u32 gr_memfmt_hww_esr_reset_active_f(void)
756{ 760{
757 return 0x40000000; 761 return 0x40000000U;
758} 762}
759static inline u32 gr_memfmt_hww_esr_en_enable_f(void) 763static inline u32 gr_memfmt_hww_esr_en_enable_f(void)
760{ 764{
761 return 0x80000000; 765 return 0x80000000U;
762} 766}
763static inline u32 gr_fecs_cpuctl_r(void) 767static inline u32 gr_fecs_cpuctl_r(void)
764{ 768{
765 return 0x00409100; 769 return 0x00409100U;
766} 770}
767static inline u32 gr_fecs_cpuctl_startcpu_f(u32 v) 771static inline u32 gr_fecs_cpuctl_startcpu_f(u32 v)
768{ 772{
769 return (v & 0x1) << 1; 773 return (v & 0x1U) << 1U;
770} 774}
771static inline u32 gr_fecs_cpuctl_alias_r(void) 775static inline u32 gr_fecs_cpuctl_alias_r(void)
772{ 776{
773 return 0x00409130; 777 return 0x00409130U;
774} 778}
775static inline u32 gr_fecs_cpuctl_alias_startcpu_f(u32 v) 779static inline u32 gr_fecs_cpuctl_alias_startcpu_f(u32 v)
776{ 780{
777 return (v & 0x1) << 1; 781 return (v & 0x1U) << 1U;
778} 782}
779static inline u32 gr_fecs_dmactl_r(void) 783static inline u32 gr_fecs_dmactl_r(void)
780{ 784{
781 return 0x0040910c; 785 return 0x0040910cU;
782} 786}
783static inline u32 gr_fecs_dmactl_require_ctx_f(u32 v) 787static inline u32 gr_fecs_dmactl_require_ctx_f(u32 v)
784{ 788{
785 return (v & 0x1) << 0; 789 return (v & 0x1U) << 0U;
786} 790}
787static inline u32 gr_fecs_dmactl_dmem_scrubbing_m(void) 791static inline u32 gr_fecs_dmactl_dmem_scrubbing_m(void)
788{ 792{
789 return 0x1 << 1; 793 return 0x1U << 1U;
790} 794}
791static inline u32 gr_fecs_dmactl_imem_scrubbing_m(void) 795static inline u32 gr_fecs_dmactl_imem_scrubbing_m(void)
792{ 796{
793 return 0x1 << 2; 797 return 0x1U << 2U;
794} 798}
795static inline u32 gr_fecs_os_r(void) 799static inline u32 gr_fecs_os_r(void)
796{ 800{
797 return 0x00409080; 801 return 0x00409080U;
798} 802}
799static inline u32 gr_fecs_idlestate_r(void) 803static inline u32 gr_fecs_idlestate_r(void)
800{ 804{
801 return 0x0040904c; 805 return 0x0040904cU;
802} 806}
803static inline u32 gr_fecs_mailbox0_r(void) 807static inline u32 gr_fecs_mailbox0_r(void)
804{ 808{
805 return 0x00409040; 809 return 0x00409040U;
806} 810}
807static inline u32 gr_fecs_mailbox1_r(void) 811static inline u32 gr_fecs_mailbox1_r(void)
808{ 812{
809 return 0x00409044; 813 return 0x00409044U;
810} 814}
811static inline u32 gr_fecs_irqstat_r(void) 815static inline u32 gr_fecs_irqstat_r(void)
812{ 816{
813 return 0x00409008; 817 return 0x00409008U;
814} 818}
815static inline u32 gr_fecs_irqmode_r(void) 819static inline u32 gr_fecs_irqmode_r(void)
816{ 820{
817 return 0x0040900c; 821 return 0x0040900cU;
818} 822}
819static inline u32 gr_fecs_irqmask_r(void) 823static inline u32 gr_fecs_irqmask_r(void)
820{ 824{
821 return 0x00409018; 825 return 0x00409018U;
822} 826}
823static inline u32 gr_fecs_irqdest_r(void) 827static inline u32 gr_fecs_irqdest_r(void)
824{ 828{
825 return 0x0040901c; 829 return 0x0040901cU;
826} 830}
827static inline u32 gr_fecs_curctx_r(void) 831static inline u32 gr_fecs_curctx_r(void)
828{ 832{
829 return 0x00409050; 833 return 0x00409050U;
830} 834}
831static inline u32 gr_fecs_nxtctx_r(void) 835static inline u32 gr_fecs_nxtctx_r(void)
832{ 836{
833 return 0x00409054; 837 return 0x00409054U;
834} 838}
835static inline u32 gr_fecs_engctl_r(void) 839static inline u32 gr_fecs_engctl_r(void)
836{ 840{
837 return 0x004090a4; 841 return 0x004090a4U;
838} 842}
839static inline u32 gr_fecs_debug1_r(void) 843static inline u32 gr_fecs_debug1_r(void)
840{ 844{
841 return 0x00409090; 845 return 0x00409090U;
842} 846}
843static inline u32 gr_fecs_debuginfo_r(void) 847static inline u32 gr_fecs_debuginfo_r(void)
844{ 848{
845 return 0x00409094; 849 return 0x00409094U;
846} 850}
847static inline u32 gr_fecs_icd_cmd_r(void) 851static inline u32 gr_fecs_icd_cmd_r(void)
848{ 852{
849 return 0x00409200; 853 return 0x00409200U;
850} 854}
851static inline u32 gr_fecs_icd_cmd_opc_s(void) 855static inline u32 gr_fecs_icd_cmd_opc_s(void)
852{ 856{
853 return 4; 857 return 4U;
854} 858}
855static inline u32 gr_fecs_icd_cmd_opc_f(u32 v) 859static inline u32 gr_fecs_icd_cmd_opc_f(u32 v)
856{ 860{
857 return (v & 0xf) << 0; 861 return (v & 0xfU) << 0U;
858} 862}
859static inline u32 gr_fecs_icd_cmd_opc_m(void) 863static inline u32 gr_fecs_icd_cmd_opc_m(void)
860{ 864{
861 return 0xf << 0; 865 return 0xfU << 0U;
862} 866}
863static inline u32 gr_fecs_icd_cmd_opc_v(u32 r) 867static inline u32 gr_fecs_icd_cmd_opc_v(u32 r)
864{ 868{
865 return (r >> 0) & 0xf; 869 return (r >> 0U) & 0xfU;
866} 870}
867static inline u32 gr_fecs_icd_cmd_opc_rreg_f(void) 871static inline u32 gr_fecs_icd_cmd_opc_rreg_f(void)
868{ 872{
869 return 0x8; 873 return 0x8U;
870} 874}
871static inline u32 gr_fecs_icd_cmd_opc_rstat_f(void) 875static inline u32 gr_fecs_icd_cmd_opc_rstat_f(void)
872{ 876{
873 return 0xe; 877 return 0xeU;
874} 878}
875static inline u32 gr_fecs_icd_cmd_idx_f(u32 v) 879static inline u32 gr_fecs_icd_cmd_idx_f(u32 v)
876{ 880{
877 return (v & 0x1f) << 8; 881 return (v & 0x1fU) << 8U;
878} 882}
879static inline u32 gr_fecs_icd_rdata_r(void) 883static inline u32 gr_fecs_icd_rdata_r(void)
880{ 884{
881 return 0x0040920c; 885 return 0x0040920cU;
882} 886}
883static inline u32 gr_fecs_imemc_r(u32 i) 887static inline u32 gr_fecs_imemc_r(u32 i)
884{ 888{
885 return 0x00409180 + i*16; 889 return 0x00409180U + i*16U;
886} 890}
887static inline u32 gr_fecs_imemc_offs_f(u32 v) 891static inline u32 gr_fecs_imemc_offs_f(u32 v)
888{ 892{
889 return (v & 0x3f) << 2; 893 return (v & 0x3fU) << 2U;
890} 894}
891static inline u32 gr_fecs_imemc_blk_f(u32 v) 895static inline u32 gr_fecs_imemc_blk_f(u32 v)
892{ 896{
893 return (v & 0xff) << 8; 897 return (v & 0xffU) << 8U;
894} 898}
895static inline u32 gr_fecs_imemc_aincw_f(u32 v) 899static inline u32 gr_fecs_imemc_aincw_f(u32 v)
896{ 900{
897 return (v & 0x1) << 24; 901 return (v & 0x1U) << 24U;
898} 902}
899static inline u32 gr_fecs_imemd_r(u32 i) 903static inline u32 gr_fecs_imemd_r(u32 i)
900{ 904{
901 return 0x00409184 + i*16; 905 return 0x00409184U + i*16U;
902} 906}
903static inline u32 gr_fecs_imemt_r(u32 i) 907static inline u32 gr_fecs_imemt_r(u32 i)
904{ 908{
905 return 0x00409188 + i*16; 909 return 0x00409188U + i*16U;
906} 910}
907static inline u32 gr_fecs_imemt_tag_f(u32 v) 911static inline u32 gr_fecs_imemt_tag_f(u32 v)
908{ 912{
909 return (v & 0xffff) << 0; 913 return (v & 0xffffU) << 0U;
910} 914}
911static inline u32 gr_fecs_dmemc_r(u32 i) 915static inline u32 gr_fecs_dmemc_r(u32 i)
912{ 916{
913 return 0x004091c0 + i*8; 917 return 0x004091c0U + i*8U;
914} 918}
915static inline u32 gr_fecs_dmemc_offs_s(void) 919static inline u32 gr_fecs_dmemc_offs_s(void)
916{ 920{
917 return 6; 921 return 6U;
918} 922}
919static inline u32 gr_fecs_dmemc_offs_f(u32 v) 923static inline u32 gr_fecs_dmemc_offs_f(u32 v)
920{ 924{
921 return (v & 0x3f) << 2; 925 return (v & 0x3fU) << 2U;
922} 926}
923static inline u32 gr_fecs_dmemc_offs_m(void) 927static inline u32 gr_fecs_dmemc_offs_m(void)
924{ 928{
925 return 0x3f << 2; 929 return 0x3fU << 2U;
926} 930}
927static inline u32 gr_fecs_dmemc_offs_v(u32 r) 931static inline u32 gr_fecs_dmemc_offs_v(u32 r)
928{ 932{
929 return (r >> 2) & 0x3f; 933 return (r >> 2U) & 0x3fU;
930} 934}
931static inline u32 gr_fecs_dmemc_blk_f(u32 v) 935static inline u32 gr_fecs_dmemc_blk_f(u32 v)
932{ 936{
933 return (v & 0xff) << 8; 937 return (v & 0xffU) << 8U;
934} 938}
935static inline u32 gr_fecs_dmemc_aincw_f(u32 v) 939static inline u32 gr_fecs_dmemc_aincw_f(u32 v)
936{ 940{
937 return (v & 0x1) << 24; 941 return (v & 0x1U) << 24U;
938} 942}
939static inline u32 gr_fecs_dmemd_r(u32 i) 943static inline u32 gr_fecs_dmemd_r(u32 i)
940{ 944{
941 return 0x004091c4 + i*8; 945 return 0x004091c4U + i*8U;
942} 946}
943static inline u32 gr_fecs_dmatrfbase_r(void) 947static inline u32 gr_fecs_dmatrfbase_r(void)
944{ 948{
945 return 0x00409110; 949 return 0x00409110U;
946} 950}
947static inline u32 gr_fecs_dmatrfmoffs_r(void) 951static inline u32 gr_fecs_dmatrfmoffs_r(void)
948{ 952{
949 return 0x00409114; 953 return 0x00409114U;
950} 954}
951static inline u32 gr_fecs_dmatrffboffs_r(void) 955static inline u32 gr_fecs_dmatrffboffs_r(void)
952{ 956{
953 return 0x0040911c; 957 return 0x0040911cU;
954} 958}
955static inline u32 gr_fecs_dmatrfcmd_r(void) 959static inline u32 gr_fecs_dmatrfcmd_r(void)
956{ 960{
957 return 0x00409118; 961 return 0x00409118U;
958} 962}
959static inline u32 gr_fecs_dmatrfcmd_imem_f(u32 v) 963static inline u32 gr_fecs_dmatrfcmd_imem_f(u32 v)
960{ 964{
961 return (v & 0x1) << 4; 965 return (v & 0x1U) << 4U;
962} 966}
963static inline u32 gr_fecs_dmatrfcmd_write_f(u32 v) 967static inline u32 gr_fecs_dmatrfcmd_write_f(u32 v)
964{ 968{
965 return (v & 0x1) << 5; 969 return (v & 0x1U) << 5U;
966} 970}
967static inline u32 gr_fecs_dmatrfcmd_size_f(u32 v) 971static inline u32 gr_fecs_dmatrfcmd_size_f(u32 v)
968{ 972{
969 return (v & 0x7) << 8; 973 return (v & 0x7U) << 8U;
970} 974}
971static inline u32 gr_fecs_dmatrfcmd_ctxdma_f(u32 v) 975static inline u32 gr_fecs_dmatrfcmd_ctxdma_f(u32 v)
972{ 976{
973 return (v & 0x7) << 12; 977 return (v & 0x7U) << 12U;
974} 978}
975static inline u32 gr_fecs_bootvec_r(void) 979static inline u32 gr_fecs_bootvec_r(void)
976{ 980{
977 return 0x00409104; 981 return 0x00409104U;
978} 982}
979static inline u32 gr_fecs_bootvec_vec_f(u32 v) 983static inline u32 gr_fecs_bootvec_vec_f(u32 v)
980{ 984{
981 return (v & 0xffffffff) << 0; 985 return (v & 0xffffffffU) << 0U;
982} 986}
983static inline u32 gr_fecs_falcon_hwcfg_r(void) 987static inline u32 gr_fecs_falcon_hwcfg_r(void)
984{ 988{
985 return 0x00409108; 989 return 0x00409108U;
986} 990}
987static inline u32 gr_gpcs_gpccs_falcon_hwcfg_r(void) 991static inline u32 gr_gpcs_gpccs_falcon_hwcfg_r(void)
988{ 992{
989 return 0x0041a108; 993 return 0x0041a108U;
990} 994}
991static inline u32 gr_fecs_falcon_rm_r(void) 995static inline u32 gr_fecs_falcon_rm_r(void)
992{ 996{
993 return 0x00409084; 997 return 0x00409084U;
994} 998}
995static inline u32 gr_fecs_current_ctx_r(void) 999static inline u32 gr_fecs_current_ctx_r(void)
996{ 1000{
997 return 0x00409b00; 1001 return 0x00409b00U;
998} 1002}
999static inline u32 gr_fecs_current_ctx_ptr_f(u32 v) 1003static inline u32 gr_fecs_current_ctx_ptr_f(u32 v)
1000{ 1004{
1001 return (v & 0xfffffff) << 0; 1005 return (v & 0xfffffffU) << 0U;
1002} 1006}
1003static inline u32 gr_fecs_current_ctx_ptr_v(u32 r) 1007static inline u32 gr_fecs_current_ctx_ptr_v(u32 r)
1004{ 1008{
1005 return (r >> 0) & 0xfffffff; 1009 return (r >> 0U) & 0xfffffffU;
1006} 1010}
1007static inline u32 gr_fecs_current_ctx_target_s(void) 1011static inline u32 gr_fecs_current_ctx_target_s(void)
1008{ 1012{
1009 return 2; 1013 return 2U;
1010} 1014}
1011static inline u32 gr_fecs_current_ctx_target_f(u32 v) 1015static inline u32 gr_fecs_current_ctx_target_f(u32 v)
1012{ 1016{
1013 return (v & 0x3) << 28; 1017 return (v & 0x3U) << 28U;
1014} 1018}
1015static inline u32 gr_fecs_current_ctx_target_m(void) 1019static inline u32 gr_fecs_current_ctx_target_m(void)
1016{ 1020{
1017 return 0x3 << 28; 1021 return 0x3U << 28U;
1018} 1022}
1019static inline u32 gr_fecs_current_ctx_target_v(u32 r) 1023static inline u32 gr_fecs_current_ctx_target_v(u32 r)
1020{ 1024{
1021 return (r >> 28) & 0x3; 1025 return (r >> 28U) & 0x3U;
1022} 1026}
1023static inline u32 gr_fecs_current_ctx_target_vid_mem_f(void) 1027static inline u32 gr_fecs_current_ctx_target_vid_mem_f(void)
1024{ 1028{
1025 return 0x0; 1029 return 0x0U;
1026} 1030}
1027static inline u32 gr_fecs_current_ctx_target_sys_mem_coh_f(void) 1031static inline u32 gr_fecs_current_ctx_target_sys_mem_coh_f(void)
1028{ 1032{
1029 return 0x20000000; 1033 return 0x20000000U;
1030} 1034}
1031static inline u32 gr_fecs_current_ctx_target_sys_mem_ncoh_f(void) 1035static inline u32 gr_fecs_current_ctx_target_sys_mem_ncoh_f(void)
1032{ 1036{
1033 return 0x30000000; 1037 return 0x30000000U;
1034} 1038}
1035static inline u32 gr_fecs_current_ctx_valid_s(void) 1039static inline u32 gr_fecs_current_ctx_valid_s(void)
1036{ 1040{
1037 return 1; 1041 return 1U;
1038} 1042}
1039static inline u32 gr_fecs_current_ctx_valid_f(u32 v) 1043static inline u32 gr_fecs_current_ctx_valid_f(u32 v)
1040{ 1044{
1041 return (v & 0x1) << 31; 1045 return (v & 0x1U) << 31U;
1042} 1046}
1043static inline u32 gr_fecs_current_ctx_valid_m(void) 1047static inline u32 gr_fecs_current_ctx_valid_m(void)
1044{ 1048{
1045 return 0x1 << 31; 1049 return 0x1U << 31U;
1046} 1050}
1047static inline u32 gr_fecs_current_ctx_valid_v(u32 r) 1051static inline u32 gr_fecs_current_ctx_valid_v(u32 r)
1048{ 1052{
1049 return (r >> 31) & 0x1; 1053 return (r >> 31U) & 0x1U;
1050} 1054}
1051static inline u32 gr_fecs_current_ctx_valid_false_f(void) 1055static inline u32 gr_fecs_current_ctx_valid_false_f(void)
1052{ 1056{
1053 return 0x0; 1057 return 0x0U;
1054} 1058}
1055static inline u32 gr_fecs_method_data_r(void) 1059static inline u32 gr_fecs_method_data_r(void)
1056{ 1060{
1057 return 0x00409500; 1061 return 0x00409500U;
1058} 1062}
1059static inline u32 gr_fecs_method_push_r(void) 1063static inline u32 gr_fecs_method_push_r(void)
1060{ 1064{
1061 return 0x00409504; 1065 return 0x00409504U;
1062} 1066}
1063static inline u32 gr_fecs_method_push_adr_f(u32 v) 1067static inline u32 gr_fecs_method_push_adr_f(u32 v)
1064{ 1068{
1065 return (v & 0xfff) << 0; 1069 return (v & 0xfffU) << 0U;
1066} 1070}
1067static inline u32 gr_fecs_method_push_adr_bind_pointer_v(void) 1071static inline u32 gr_fecs_method_push_adr_bind_pointer_v(void)
1068{ 1072{
1069 return 0x00000003; 1073 return 0x00000003U;
1070} 1074}
1071static inline u32 gr_fecs_method_push_adr_bind_pointer_f(void) 1075static inline u32 gr_fecs_method_push_adr_bind_pointer_f(void)
1072{ 1076{
1073 return 0x3; 1077 return 0x3U;
1074} 1078}
1075static inline u32 gr_fecs_method_push_adr_discover_image_size_v(void) 1079static inline u32 gr_fecs_method_push_adr_discover_image_size_v(void)
1076{ 1080{
1077 return 0x00000010; 1081 return 0x00000010U;
1078} 1082}
1079static inline u32 gr_fecs_method_push_adr_wfi_golden_save_v(void) 1083static inline u32 gr_fecs_method_push_adr_wfi_golden_save_v(void)
1080{ 1084{
1081 return 0x00000009; 1085 return 0x00000009U;
1082} 1086}
1083static inline u32 gr_fecs_method_push_adr_restore_golden_v(void) 1087static inline u32 gr_fecs_method_push_adr_restore_golden_v(void)
1084{ 1088{
1085 return 0x00000015; 1089 return 0x00000015U;
1086} 1090}
1087static inline u32 gr_fecs_method_push_adr_discover_zcull_image_size_v(void) 1091static inline u32 gr_fecs_method_push_adr_discover_zcull_image_size_v(void)
1088{ 1092{
1089 return 0x00000016; 1093 return 0x00000016U;
1090} 1094}
1091static inline u32 gr_fecs_method_push_adr_discover_pm_image_size_v(void) 1095static inline u32 gr_fecs_method_push_adr_discover_pm_image_size_v(void)
1092{ 1096{
1093 return 0x00000025; 1097 return 0x00000025U;
1094} 1098}
1095static inline u32 gr_fecs_method_push_adr_discover_reglist_image_size_v(void) 1099static inline u32 gr_fecs_method_push_adr_discover_reglist_image_size_v(void)
1096{ 1100{
1097 return 0x00000030; 1101 return 0x00000030U;
1098} 1102}
1099static inline u32 gr_fecs_method_push_adr_set_reglist_bind_instance_v(void) 1103static inline u32 gr_fecs_method_push_adr_set_reglist_bind_instance_v(void)
1100{ 1104{
1101 return 0x00000031; 1105 return 0x00000031U;
1102} 1106}
1103static inline u32 gr_fecs_method_push_adr_set_reglist_virtual_address_v(void) 1107static inline u32 gr_fecs_method_push_adr_set_reglist_virtual_address_v(void)
1104{ 1108{
1105 return 0x00000032; 1109 return 0x00000032U;
1106} 1110}
1107static inline u32 gr_fecs_method_push_adr_stop_ctxsw_v(void) 1111static inline u32 gr_fecs_method_push_adr_stop_ctxsw_v(void)
1108{ 1112{
1109 return 0x00000038; 1113 return 0x00000038U;
1110} 1114}
1111static inline u32 gr_fecs_method_push_adr_start_ctxsw_v(void) 1115static inline u32 gr_fecs_method_push_adr_start_ctxsw_v(void)
1112{ 1116{
1113 return 0x00000039; 1117 return 0x00000039U;
1114} 1118}
1115static inline u32 gr_fecs_method_push_adr_set_watchdog_timeout_f(void) 1119static inline u32 gr_fecs_method_push_adr_set_watchdog_timeout_f(void)
1116{ 1120{
1117 return 0x21; 1121 return 0x21U;
1118} 1122}
1119static inline u32 gr_fecs_method_push_adr_write_timestamp_record_v(void) 1123static inline u32 gr_fecs_method_push_adr_write_timestamp_record_v(void)
1120{ 1124{
1121 return 0x0000003d; 1125 return 0x0000003dU;
1122} 1126}
1123static inline u32 gr_fecs_method_push_adr_discover_preemption_image_size_v(void) 1127static inline u32 gr_fecs_method_push_adr_discover_preemption_image_size_v(void)
1124{ 1128{
1125 return 0x0000001a; 1129 return 0x0000001aU;
1126} 1130}
1127static inline u32 gr_fecs_method_push_adr_halt_pipeline_v(void) 1131static inline u32 gr_fecs_method_push_adr_halt_pipeline_v(void)
1128{ 1132{
1129 return 0x00000004; 1133 return 0x00000004U;
1130} 1134}
1131static inline u32 gr_fecs_method_push_adr_configure_interrupt_completion_option_v(void) 1135static inline u32 gr_fecs_method_push_adr_configure_interrupt_completion_option_v(void)
1132{ 1136{
1133 return 0x0000003a; 1137 return 0x0000003aU;
1134} 1138}
1135static inline u32 gr_fecs_host_int_status_r(void) 1139static inline u32 gr_fecs_host_int_status_r(void)
1136{ 1140{
1137 return 0x00409c18; 1141 return 0x00409c18U;
1138} 1142}
1139static inline u32 gr_fecs_host_int_status_fault_during_ctxsw_f(u32 v) 1143static inline u32 gr_fecs_host_int_status_fault_during_ctxsw_f(u32 v)
1140{ 1144{
1141 return (v & 0x1) << 16; 1145 return (v & 0x1U) << 16U;
1142} 1146}
1143static inline u32 gr_fecs_host_int_status_umimp_firmware_method_f(u32 v) 1147static inline u32 gr_fecs_host_int_status_umimp_firmware_method_f(u32 v)
1144{ 1148{
1145 return (v & 0x1) << 17; 1149 return (v & 0x1U) << 17U;
1146} 1150}
1147static inline u32 gr_fecs_host_int_status_umimp_illegal_method_f(u32 v) 1151static inline u32 gr_fecs_host_int_status_umimp_illegal_method_f(u32 v)
1148{ 1152{
1149 return (v & 0x1) << 18; 1153 return (v & 0x1U) << 18U;
1150} 1154}
1151static inline u32 gr_fecs_host_int_status_ctxsw_intr_f(u32 v) 1155static inline u32 gr_fecs_host_int_status_ctxsw_intr_f(u32 v)
1152{ 1156{
1153 return (v & 0xffff) << 0; 1157 return (v & 0xffffU) << 0U;
1154} 1158}
1155static inline u32 gr_fecs_host_int_clear_r(void) 1159static inline u32 gr_fecs_host_int_clear_r(void)
1156{ 1160{
1157 return 0x00409c20; 1161 return 0x00409c20U;
1158} 1162}
1159static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_f(u32 v) 1163static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_f(u32 v)
1160{ 1164{
1161 return (v & 0x1) << 1; 1165 return (v & 0x1U) << 1U;
1162} 1166}
1163static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_clear_f(void) 1167static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_clear_f(void)
1164{ 1168{
1165 return 0x2; 1169 return 0x2U;
1166} 1170}
1167static inline u32 gr_fecs_host_int_enable_r(void) 1171static inline u32 gr_fecs_host_int_enable_r(void)
1168{ 1172{
1169 return 0x00409c24; 1173 return 0x00409c24U;
1170} 1174}
1171static inline u32 gr_fecs_host_int_enable_ctxsw_intr1_enable_f(void) 1175static inline u32 gr_fecs_host_int_enable_ctxsw_intr1_enable_f(void)
1172{ 1176{
1173 return 0x2; 1177 return 0x2U;
1174} 1178}
1175static inline u32 gr_fecs_host_int_enable_fault_during_ctxsw_enable_f(void) 1179static inline u32 gr_fecs_host_int_enable_fault_during_ctxsw_enable_f(void)
1176{ 1180{
1177 return 0x10000; 1181 return 0x10000U;
1178} 1182}
1179static inline u32 gr_fecs_host_int_enable_umimp_firmware_method_enable_f(void) 1183static inline u32 gr_fecs_host_int_enable_umimp_firmware_method_enable_f(void)
1180{ 1184{
1181 return 0x20000; 1185 return 0x20000U;
1182} 1186}
1183static inline u32 gr_fecs_host_int_enable_umimp_illegal_method_enable_f(void) 1187static inline u32 gr_fecs_host_int_enable_umimp_illegal_method_enable_f(void)
1184{ 1188{
1185 return 0x40000; 1189 return 0x40000U;
1186} 1190}
1187static inline u32 gr_fecs_host_int_enable_watchdog_enable_f(void) 1191static inline u32 gr_fecs_host_int_enable_watchdog_enable_f(void)
1188{ 1192{
1189 return 0x80000; 1193 return 0x80000U;
1190} 1194}
1191static inline u32 gr_fecs_ctxsw_reset_ctl_r(void) 1195static inline u32 gr_fecs_ctxsw_reset_ctl_r(void)
1192{ 1196{
1193 return 0x00409614; 1197 return 0x00409614U;
1194} 1198}
1195static inline u32 gr_fecs_ctxsw_reset_ctl_sys_halt_disabled_f(void) 1199static inline u32 gr_fecs_ctxsw_reset_ctl_sys_halt_disabled_f(void)
1196{ 1200{
1197 return 0x0; 1201 return 0x0U;
1198} 1202}
1199static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_halt_disabled_f(void) 1203static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_halt_disabled_f(void)
1200{ 1204{
1201 return 0x0; 1205 return 0x0U;
1202} 1206}
1203static inline u32 gr_fecs_ctxsw_reset_ctl_be_halt_disabled_f(void) 1207static inline u32 gr_fecs_ctxsw_reset_ctl_be_halt_disabled_f(void)
1204{ 1208{
1205 return 0x0; 1209 return 0x0U;
1206} 1210}
1207static inline u32 gr_fecs_ctxsw_reset_ctl_sys_engine_reset_disabled_f(void) 1211static inline u32 gr_fecs_ctxsw_reset_ctl_sys_engine_reset_disabled_f(void)
1208{ 1212{
1209 return 0x10; 1213 return 0x10U;
1210} 1214}
1211static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_engine_reset_disabled_f(void) 1215static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_engine_reset_disabled_f(void)
1212{ 1216{
1213 return 0x20; 1217 return 0x20U;
1214} 1218}
1215static inline u32 gr_fecs_ctxsw_reset_ctl_be_engine_reset_disabled_f(void) 1219static inline u32 gr_fecs_ctxsw_reset_ctl_be_engine_reset_disabled_f(void)
1216{ 1220{
1217 return 0x40; 1221 return 0x40U;
1218} 1222}
1219static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_enabled_f(void) 1223static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_enabled_f(void)
1220{ 1224{
1221 return 0x0; 1225 return 0x0U;
1222} 1226}
1223static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_disabled_f(void) 1227static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_disabled_f(void)
1224{ 1228{
1225 return 0x100; 1229 return 0x100U;
1226} 1230}
1227static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_enabled_f(void) 1231static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_enabled_f(void)
1228{ 1232{
1229 return 0x0; 1233 return 0x0U;
1230} 1234}
1231static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_disabled_f(void) 1235static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_disabled_f(void)
1232{ 1236{
1233 return 0x200; 1237 return 0x200U;
1234} 1238}
1235static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_s(void) 1239static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_s(void)
1236{ 1240{
1237 return 1; 1241 return 1U;
1238} 1242}
1239static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_f(u32 v) 1243static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_f(u32 v)
1240{ 1244{
1241 return (v & 0x1) << 10; 1245 return (v & 0x1U) << 10U;
1242} 1246}
1243static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_m(void) 1247static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_m(void)
1244{ 1248{
1245 return 0x1 << 10; 1249 return 0x1U << 10U;
1246} 1250}
1247static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_v(u32 r) 1251static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_v(u32 r)
1248{ 1252{
1249 return (r >> 10) & 0x1; 1253 return (r >> 10U) & 0x1U;
1250} 1254}
1251static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_enabled_f(void) 1255static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_enabled_f(void)
1252{ 1256{
1253 return 0x0; 1257 return 0x0U;
1254} 1258}
1255static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_disabled_f(void) 1259static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_disabled_f(void)
1256{ 1260{
1257 return 0x400; 1261 return 0x400U;
1258} 1262}
1259static inline u32 gr_fecs_ctx_state_store_major_rev_id_r(void) 1263static inline u32 gr_fecs_ctx_state_store_major_rev_id_r(void)
1260{ 1264{
1261 return 0x0040960c; 1265 return 0x0040960cU;
1262} 1266}
1263static inline u32 gr_fecs_ctxsw_mailbox_r(u32 i) 1267static inline u32 gr_fecs_ctxsw_mailbox_r(u32 i)
1264{ 1268{
1265 return 0x00409800 + i*4; 1269 return 0x00409800U + i*4U;
1266} 1270}
1267static inline u32 gr_fecs_ctxsw_mailbox__size_1_v(void) 1271static inline u32 gr_fecs_ctxsw_mailbox__size_1_v(void)
1268{ 1272{
1269 return 0x00000010; 1273 return 0x00000010U;
1270} 1274}
1271static inline u32 gr_fecs_ctxsw_mailbox_value_f(u32 v) 1275static inline u32 gr_fecs_ctxsw_mailbox_value_f(u32 v)
1272{ 1276{
1273 return (v & 0xffffffff) << 0; 1277 return (v & 0xffffffffU) << 0U;
1274} 1278}
1275static inline u32 gr_fecs_ctxsw_mailbox_value_pass_v(void) 1279static inline u32 gr_fecs_ctxsw_mailbox_value_pass_v(void)
1276{ 1280{
1277 return 0x00000001; 1281 return 0x00000001U;
1278} 1282}
1279static inline u32 gr_fecs_ctxsw_mailbox_value_fail_v(void) 1283static inline u32 gr_fecs_ctxsw_mailbox_value_fail_v(void)
1280{ 1284{
1281 return 0x00000002; 1285 return 0x00000002U;
1282} 1286}
1283static inline u32 gr_fecs_ctxsw_mailbox_set_r(u32 i) 1287static inline u32 gr_fecs_ctxsw_mailbox_set_r(u32 i)
1284{ 1288{
1285 return 0x004098c0 + i*4; 1289 return 0x004098c0U + i*4U;
1286} 1290}
1287static inline u32 gr_fecs_ctxsw_mailbox_set_value_f(u32 v) 1291static inline u32 gr_fecs_ctxsw_mailbox_set_value_f(u32 v)
1288{ 1292{
1289 return (v & 0xffffffff) << 0; 1293 return (v & 0xffffffffU) << 0U;
1290} 1294}
1291static inline u32 gr_fecs_ctxsw_mailbox_clear_r(u32 i) 1295static inline u32 gr_fecs_ctxsw_mailbox_clear_r(u32 i)
1292{ 1296{
1293 return 0x00409840 + i*4; 1297 return 0x00409840U + i*4U;
1294} 1298}
1295static inline u32 gr_fecs_ctxsw_mailbox_clear_value_f(u32 v) 1299static inline u32 gr_fecs_ctxsw_mailbox_clear_value_f(u32 v)
1296{ 1300{
1297 return (v & 0xffffffff) << 0; 1301 return (v & 0xffffffffU) << 0U;
1298} 1302}
1299static inline u32 gr_fecs_fs_r(void) 1303static inline u32 gr_fecs_fs_r(void)
1300{ 1304{
1301 return 0x00409604; 1305 return 0x00409604U;
1302} 1306}
1303static inline u32 gr_fecs_fs_num_available_gpcs_s(void) 1307static inline u32 gr_fecs_fs_num_available_gpcs_s(void)
1304{ 1308{
1305 return 5; 1309 return 5U;
1306} 1310}
1307static inline u32 gr_fecs_fs_num_available_gpcs_f(u32 v) 1311static inline u32 gr_fecs_fs_num_available_gpcs_f(u32 v)
1308{ 1312{
1309 return (v & 0x1f) << 0; 1313 return (v & 0x1fU) << 0U;
1310} 1314}
1311static inline u32 gr_fecs_fs_num_available_gpcs_m(void) 1315static inline u32 gr_fecs_fs_num_available_gpcs_m(void)
1312{ 1316{
1313 return 0x1f << 0; 1317 return 0x1fU << 0U;
1314} 1318}
1315static inline u32 gr_fecs_fs_num_available_gpcs_v(u32 r) 1319static inline u32 gr_fecs_fs_num_available_gpcs_v(u32 r)
1316{ 1320{
1317 return (r >> 0) & 0x1f; 1321 return (r >> 0U) & 0x1fU;
1318} 1322}
1319static inline u32 gr_fecs_fs_num_available_fbps_s(void) 1323static inline u32 gr_fecs_fs_num_available_fbps_s(void)
1320{ 1324{
1321 return 5; 1325 return 5U;
1322} 1326}
1323static inline u32 gr_fecs_fs_num_available_fbps_f(u32 v) 1327static inline u32 gr_fecs_fs_num_available_fbps_f(u32 v)
1324{ 1328{
1325 return (v & 0x1f) << 16; 1329 return (v & 0x1fU) << 16U;
1326} 1330}
1327static inline u32 gr_fecs_fs_num_available_fbps_m(void) 1331static inline u32 gr_fecs_fs_num_available_fbps_m(void)
1328{ 1332{
1329 return 0x1f << 16; 1333 return 0x1fU << 16U;
1330} 1334}
1331static inline u32 gr_fecs_fs_num_available_fbps_v(u32 r) 1335static inline u32 gr_fecs_fs_num_available_fbps_v(u32 r)
1332{ 1336{
1333 return (r >> 16) & 0x1f; 1337 return (r >> 16U) & 0x1fU;
1334} 1338}
1335static inline u32 gr_fecs_cfg_r(void) 1339static inline u32 gr_fecs_cfg_r(void)
1336{ 1340{
1337 return 0x00409620; 1341 return 0x00409620U;
1338} 1342}
1339static inline u32 gr_fecs_cfg_imem_sz_v(u32 r) 1343static inline u32 gr_fecs_cfg_imem_sz_v(u32 r)
1340{ 1344{
1341 return (r >> 0) & 0xff; 1345 return (r >> 0U) & 0xffU;
1342} 1346}
1343static inline u32 gr_fecs_rc_lanes_r(void) 1347static inline u32 gr_fecs_rc_lanes_r(void)
1344{ 1348{
1345 return 0x00409880; 1349 return 0x00409880U;
1346} 1350}
1347static inline u32 gr_fecs_rc_lanes_num_chains_s(void) 1351static inline u32 gr_fecs_rc_lanes_num_chains_s(void)
1348{ 1352{
1349 return 6; 1353 return 6U;
1350} 1354}
1351static inline u32 gr_fecs_rc_lanes_num_chains_f(u32 v) 1355static inline u32 gr_fecs_rc_lanes_num_chains_f(u32 v)
1352{ 1356{
1353 return (v & 0x3f) << 0; 1357 return (v & 0x3fU) << 0U;
1354} 1358}
1355static inline u32 gr_fecs_rc_lanes_num_chains_m(void) 1359static inline u32 gr_fecs_rc_lanes_num_chains_m(void)
1356{ 1360{
1357 return 0x3f << 0; 1361 return 0x3fU << 0U;
1358} 1362}
1359static inline u32 gr_fecs_rc_lanes_num_chains_v(u32 r) 1363static inline u32 gr_fecs_rc_lanes_num_chains_v(u32 r)
1360{ 1364{
1361 return (r >> 0) & 0x3f; 1365 return (r >> 0U) & 0x3fU;
1362} 1366}
1363static inline u32 gr_fecs_ctxsw_status_1_r(void) 1367static inline u32 gr_fecs_ctxsw_status_1_r(void)
1364{ 1368{
1365 return 0x00409400; 1369 return 0x00409400U;
1366} 1370}
1367static inline u32 gr_fecs_ctxsw_status_1_arb_busy_s(void) 1371static inline u32 gr_fecs_ctxsw_status_1_arb_busy_s(void)
1368{ 1372{
1369 return 1; 1373 return 1U;
1370} 1374}
1371static inline u32 gr_fecs_ctxsw_status_1_arb_busy_f(u32 v) 1375static inline u32 gr_fecs_ctxsw_status_1_arb_busy_f(u32 v)
1372{ 1376{
1373 return (v & 0x1) << 12; 1377 return (v & 0x1U) << 12U;
1374} 1378}
1375static inline u32 gr_fecs_ctxsw_status_1_arb_busy_m(void) 1379static inline u32 gr_fecs_ctxsw_status_1_arb_busy_m(void)
1376{ 1380{
1377 return 0x1 << 12; 1381 return 0x1U << 12U;
1378} 1382}
1379static inline u32 gr_fecs_ctxsw_status_1_arb_busy_v(u32 r) 1383static inline u32 gr_fecs_ctxsw_status_1_arb_busy_v(u32 r)
1380{ 1384{
1381 return (r >> 12) & 0x1; 1385 return (r >> 12U) & 0x1U;
1382} 1386}
1383static inline u32 gr_fecs_arb_ctx_adr_r(void) 1387static inline u32 gr_fecs_arb_ctx_adr_r(void)
1384{ 1388{
1385 return 0x00409a24; 1389 return 0x00409a24U;
1386} 1390}
1387static inline u32 gr_fecs_new_ctx_r(void) 1391static inline u32 gr_fecs_new_ctx_r(void)
1388{ 1392{
1389 return 0x00409b04; 1393 return 0x00409b04U;
1390} 1394}
1391static inline u32 gr_fecs_new_ctx_ptr_s(void) 1395static inline u32 gr_fecs_new_ctx_ptr_s(void)
1392{ 1396{
1393 return 28; 1397 return 28U;
1394} 1398}
1395static inline u32 gr_fecs_new_ctx_ptr_f(u32 v) 1399static inline u32 gr_fecs_new_ctx_ptr_f(u32 v)
1396{ 1400{
1397 return (v & 0xfffffff) << 0; 1401 return (v & 0xfffffffU) << 0U;
1398} 1402}
1399static inline u32 gr_fecs_new_ctx_ptr_m(void) 1403static inline u32 gr_fecs_new_ctx_ptr_m(void)
1400{ 1404{
1401 return 0xfffffff << 0; 1405 return 0xfffffffU << 0U;
1402} 1406}
1403static inline u32 gr_fecs_new_ctx_ptr_v(u32 r) 1407static inline u32 gr_fecs_new_ctx_ptr_v(u32 r)
1404{ 1408{
1405 return (r >> 0) & 0xfffffff; 1409 return (r >> 0U) & 0xfffffffU;
1406} 1410}
1407static inline u32 gr_fecs_new_ctx_target_s(void) 1411static inline u32 gr_fecs_new_ctx_target_s(void)
1408{ 1412{
1409 return 2; 1413 return 2U;
1410} 1414}
1411static inline u32 gr_fecs_new_ctx_target_f(u32 v) 1415static inline u32 gr_fecs_new_ctx_target_f(u32 v)
1412{ 1416{
1413 return (v & 0x3) << 28; 1417 return (v & 0x3U) << 28U;
1414} 1418}
1415static inline u32 gr_fecs_new_ctx_target_m(void) 1419static inline u32 gr_fecs_new_ctx_target_m(void)
1416{ 1420{
1417 return 0x3 << 28; 1421 return 0x3U << 28U;
1418} 1422}
1419static inline u32 gr_fecs_new_ctx_target_v(u32 r) 1423static inline u32 gr_fecs_new_ctx_target_v(u32 r)
1420{ 1424{
1421 return (r >> 28) & 0x3; 1425 return (r >> 28U) & 0x3U;
1422} 1426}
1423static inline u32 gr_fecs_new_ctx_target_vid_mem_f(void) 1427static inline u32 gr_fecs_new_ctx_target_vid_mem_f(void)
1424{ 1428{
1425 return 0x0; 1429 return 0x0U;
1426} 1430}
1427static inline u32 gr_fecs_new_ctx_target_sys_mem_ncoh_f(void) 1431static inline u32 gr_fecs_new_ctx_target_sys_mem_ncoh_f(void)
1428{ 1432{
1429 return 0x30000000; 1433 return 0x30000000U;
1430} 1434}
1431static inline u32 gr_fecs_new_ctx_valid_s(void) 1435static inline u32 gr_fecs_new_ctx_valid_s(void)
1432{ 1436{
1433 return 1; 1437 return 1U;
1434} 1438}
1435static inline u32 gr_fecs_new_ctx_valid_f(u32 v) 1439static inline u32 gr_fecs_new_ctx_valid_f(u32 v)
1436{ 1440{
1437 return (v & 0x1) << 31; 1441 return (v & 0x1U) << 31U;
1438} 1442}
1439static inline u32 gr_fecs_new_ctx_valid_m(void) 1443static inline u32 gr_fecs_new_ctx_valid_m(void)
1440{ 1444{
1441 return 0x1 << 31; 1445 return 0x1U << 31U;
1442} 1446}
1443static inline u32 gr_fecs_new_ctx_valid_v(u32 r) 1447static inline u32 gr_fecs_new_ctx_valid_v(u32 r)
1444{ 1448{
1445 return (r >> 31) & 0x1; 1449 return (r >> 31U) & 0x1U;
1446} 1450}
1447static inline u32 gr_fecs_arb_ctx_ptr_r(void) 1451static inline u32 gr_fecs_arb_ctx_ptr_r(void)
1448{ 1452{
1449 return 0x00409a0c; 1453 return 0x00409a0cU;
1450} 1454}
1451static inline u32 gr_fecs_arb_ctx_ptr_ptr_s(void) 1455static inline u32 gr_fecs_arb_ctx_ptr_ptr_s(void)
1452{ 1456{
1453 return 28; 1457 return 28U;
1454} 1458}
1455static inline u32 gr_fecs_arb_ctx_ptr_ptr_f(u32 v) 1459static inline u32 gr_fecs_arb_ctx_ptr_ptr_f(u32 v)
1456{ 1460{
1457 return (v & 0xfffffff) << 0; 1461 return (v & 0xfffffffU) << 0U;
1458} 1462}
1459static inline u32 gr_fecs_arb_ctx_ptr_ptr_m(void) 1463static inline u32 gr_fecs_arb_ctx_ptr_ptr_m(void)
1460{ 1464{
1461 return 0xfffffff << 0; 1465 return 0xfffffffU << 0U;
1462} 1466}
1463static inline u32 gr_fecs_arb_ctx_ptr_ptr_v(u32 r) 1467static inline u32 gr_fecs_arb_ctx_ptr_ptr_v(u32 r)
1464{ 1468{
1465 return (r >> 0) & 0xfffffff; 1469 return (r >> 0U) & 0xfffffffU;
1466} 1470}
1467static inline u32 gr_fecs_arb_ctx_ptr_target_s(void) 1471static inline u32 gr_fecs_arb_ctx_ptr_target_s(void)
1468{ 1472{
1469 return 2; 1473 return 2U;
1470} 1474}
1471static inline u32 gr_fecs_arb_ctx_ptr_target_f(u32 v) 1475static inline u32 gr_fecs_arb_ctx_ptr_target_f(u32 v)
1472{ 1476{
1473 return (v & 0x3) << 28; 1477 return (v & 0x3U) << 28U;
1474} 1478}
1475static inline u32 gr_fecs_arb_ctx_ptr_target_m(void) 1479static inline u32 gr_fecs_arb_ctx_ptr_target_m(void)
1476{ 1480{
1477 return 0x3 << 28; 1481 return 0x3U << 28U;
1478} 1482}
1479static inline u32 gr_fecs_arb_ctx_ptr_target_v(u32 r) 1483static inline u32 gr_fecs_arb_ctx_ptr_target_v(u32 r)
1480{ 1484{
1481 return (r >> 28) & 0x3; 1485 return (r >> 28U) & 0x3U;
1482} 1486}
1483static inline u32 gr_fecs_arb_ctx_ptr_target_vid_mem_f(void) 1487static inline u32 gr_fecs_arb_ctx_ptr_target_vid_mem_f(void)
1484{ 1488{
1485 return 0x0; 1489 return 0x0U;
1486} 1490}
1487static inline u32 gr_fecs_arb_ctx_ptr_target_sys_mem_ncoh_f(void) 1491static inline u32 gr_fecs_arb_ctx_ptr_target_sys_mem_ncoh_f(void)
1488{ 1492{
1489 return 0x30000000; 1493 return 0x30000000U;
1490} 1494}
1491static inline u32 gr_fecs_arb_ctx_cmd_r(void) 1495static inline u32 gr_fecs_arb_ctx_cmd_r(void)
1492{ 1496{
1493 return 0x00409a10; 1497 return 0x00409a10U;
1494} 1498}
1495static inline u32 gr_fecs_arb_ctx_cmd_cmd_s(void) 1499static inline u32 gr_fecs_arb_ctx_cmd_cmd_s(void)
1496{ 1500{
1497 return 5; 1501 return 5U;
1498} 1502}
1499static inline u32 gr_fecs_arb_ctx_cmd_cmd_f(u32 v) 1503static inline u32 gr_fecs_arb_ctx_cmd_cmd_f(u32 v)
1500{ 1504{
1501 return (v & 0x1f) << 0; 1505 return (v & 0x1fU) << 0U;
1502} 1506}
1503static inline u32 gr_fecs_arb_ctx_cmd_cmd_m(void) 1507static inline u32 gr_fecs_arb_ctx_cmd_cmd_m(void)
1504{ 1508{
1505 return 0x1f << 0; 1509 return 0x1fU << 0U;
1506} 1510}
1507static inline u32 gr_fecs_arb_ctx_cmd_cmd_v(u32 r) 1511static inline u32 gr_fecs_arb_ctx_cmd_cmd_v(u32 r)
1508{ 1512{
1509 return (r >> 0) & 0x1f; 1513 return (r >> 0U) & 0x1fU;
1510} 1514}
1511static inline u32 gr_fecs_ctxsw_status_fe_0_r(void) 1515static inline u32 gr_fecs_ctxsw_status_fe_0_r(void)
1512{ 1516{
1513 return 0x00409c00; 1517 return 0x00409c00U;
1514} 1518}
1515static inline u32 gr_gpc0_gpccs_ctxsw_status_gpc_0_r(void) 1519static inline u32 gr_gpc0_gpccs_ctxsw_status_gpc_0_r(void)
1516{ 1520{
1517 return 0x00502c04; 1521 return 0x00502c04U;
1518} 1522}
1519static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void) 1523static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void)
1520{ 1524{
1521 return 0x00502400; 1525 return 0x00502400U;
1522} 1526}
1523static inline u32 gr_fecs_ctxsw_idlestate_r(void) 1527static inline u32 gr_fecs_ctxsw_idlestate_r(void)
1524{ 1528{
1525 return 0x00409420; 1529 return 0x00409420U;
1526} 1530}
1527static inline u32 gr_fecs_feature_override_ecc_r(void) 1531static inline u32 gr_fecs_feature_override_ecc_r(void)
1528{ 1532{
1529 return 0x00409658; 1533 return 0x00409658U;
1530} 1534}
1531static inline u32 gr_fecs_feature_override_ecc_sm_lrf_override_v(u32 r) 1535static inline u32 gr_fecs_feature_override_ecc_sm_lrf_override_v(u32 r)
1532{ 1536{
1533 return (r >> 3) & 0x1; 1537 return (r >> 3U) & 0x1U;
1534} 1538}
1535static inline u32 gr_fecs_feature_override_ecc_sm_shm_override_v(u32 r) 1539static inline u32 gr_fecs_feature_override_ecc_sm_shm_override_v(u32 r)
1536{ 1540{
1537 return (r >> 7) & 0x1; 1541 return (r >> 7U) & 0x1U;
1538} 1542}
1539static inline u32 gr_fecs_feature_override_ecc_tex_override_v(u32 r) 1543static inline u32 gr_fecs_feature_override_ecc_tex_override_v(u32 r)
1540{ 1544{
1541 return (r >> 11) & 0x1; 1545 return (r >> 11U) & 0x1U;
1542} 1546}
1543static inline u32 gr_fecs_feature_override_ecc_ltc_override_v(u32 r) 1547static inline u32 gr_fecs_feature_override_ecc_ltc_override_v(u32 r)
1544{ 1548{
1545 return (r >> 15) & 0x1; 1549 return (r >> 15U) & 0x1U;
1546} 1550}
1547static inline u32 gr_fecs_feature_override_ecc_sm_lrf_v(u32 r) 1551static inline u32 gr_fecs_feature_override_ecc_sm_lrf_v(u32 r)
1548{ 1552{
1549 return (r >> 0) & 0x1; 1553 return (r >> 0U) & 0x1U;
1550} 1554}
1551static inline u32 gr_fecs_feature_override_ecc_sm_shm_v(u32 r) 1555static inline u32 gr_fecs_feature_override_ecc_sm_shm_v(u32 r)
1552{ 1556{
1553 return (r >> 4) & 0x1; 1557 return (r >> 4U) & 0x1U;
1554} 1558}
1555static inline u32 gr_fecs_feature_override_ecc_tex_v(u32 r) 1559static inline u32 gr_fecs_feature_override_ecc_tex_v(u32 r)
1556{ 1560{
1557 return (r >> 8) & 0x1; 1561 return (r >> 8U) & 0x1U;
1558} 1562}
1559static inline u32 gr_fecs_feature_override_ecc_ltc_v(u32 r) 1563static inline u32 gr_fecs_feature_override_ecc_ltc_v(u32 r)
1560{ 1564{
1561 return (r >> 12) & 0x1; 1565 return (r >> 12U) & 0x1U;
1562} 1566}
1563static inline u32 gr_gpc0_gpccs_ctxsw_idlestate_r(void) 1567static inline u32 gr_gpc0_gpccs_ctxsw_idlestate_r(void)
1564{ 1568{
1565 return 0x00502420; 1569 return 0x00502420U;
1566} 1570}
1567static inline u32 gr_rstr2d_gpc_map0_r(void) 1571static inline u32 gr_rstr2d_gpc_map0_r(void)
1568{ 1572{
1569 return 0x0040780c; 1573 return 0x0040780cU;
1570} 1574}
1571static inline u32 gr_rstr2d_gpc_map1_r(void) 1575static inline u32 gr_rstr2d_gpc_map1_r(void)
1572{ 1576{
1573 return 0x00407810; 1577 return 0x00407810U;
1574} 1578}
1575static inline u32 gr_rstr2d_gpc_map2_r(void) 1579static inline u32 gr_rstr2d_gpc_map2_r(void)
1576{ 1580{
1577 return 0x00407814; 1581 return 0x00407814U;
1578} 1582}
1579static inline u32 gr_rstr2d_gpc_map3_r(void) 1583static inline u32 gr_rstr2d_gpc_map3_r(void)
1580{ 1584{
1581 return 0x00407818; 1585 return 0x00407818U;
1582} 1586}
1583static inline u32 gr_rstr2d_gpc_map4_r(void) 1587static inline u32 gr_rstr2d_gpc_map4_r(void)
1584{ 1588{
1585 return 0x0040781c; 1589 return 0x0040781cU;
1586} 1590}
1587static inline u32 gr_rstr2d_gpc_map5_r(void) 1591static inline u32 gr_rstr2d_gpc_map5_r(void)
1588{ 1592{
1589 return 0x00407820; 1593 return 0x00407820U;
1590} 1594}
1591static inline u32 gr_rstr2d_map_table_cfg_r(void) 1595static inline u32 gr_rstr2d_map_table_cfg_r(void)
1592{ 1596{
1593 return 0x004078bc; 1597 return 0x004078bcU;
1594} 1598}
1595static inline u32 gr_rstr2d_map_table_cfg_row_offset_f(u32 v) 1599static inline u32 gr_rstr2d_map_table_cfg_row_offset_f(u32 v)
1596{ 1600{
1597 return (v & 0xff) << 0; 1601 return (v & 0xffU) << 0U;
1598} 1602}
1599static inline u32 gr_rstr2d_map_table_cfg_num_entries_f(u32 v) 1603static inline u32 gr_rstr2d_map_table_cfg_num_entries_f(u32 v)
1600{ 1604{
1601 return (v & 0xff) << 8; 1605 return (v & 0xffU) << 8U;
1602} 1606}
1603static inline u32 gr_pd_hww_esr_r(void) 1607static inline u32 gr_pd_hww_esr_r(void)
1604{ 1608{
1605 return 0x00406018; 1609 return 0x00406018U;
1606} 1610}
1607static inline u32 gr_pd_hww_esr_reset_active_f(void) 1611static inline u32 gr_pd_hww_esr_reset_active_f(void)
1608{ 1612{
1609 return 0x40000000; 1613 return 0x40000000U;
1610} 1614}
1611static inline u32 gr_pd_hww_esr_en_enable_f(void) 1615static inline u32 gr_pd_hww_esr_en_enable_f(void)
1612{ 1616{
1613 return 0x80000000; 1617 return 0x80000000U;
1614} 1618}
1615static inline u32 gr_pd_num_tpc_per_gpc_r(u32 i) 1619static inline u32 gr_pd_num_tpc_per_gpc_r(u32 i)
1616{ 1620{
1617 return 0x00406028 + i*4; 1621 return 0x00406028U + i*4U;
1618} 1622}
1619static inline u32 gr_pd_num_tpc_per_gpc__size_1_v(void) 1623static inline u32 gr_pd_num_tpc_per_gpc__size_1_v(void)
1620{ 1624{
1621 return 0x00000004; 1625 return 0x00000004U;
1622} 1626}
1623static inline u32 gr_pd_num_tpc_per_gpc_count0_f(u32 v) 1627static inline u32 gr_pd_num_tpc_per_gpc_count0_f(u32 v)
1624{ 1628{
1625 return (v & 0xf) << 0; 1629 return (v & 0xfU) << 0U;
1626} 1630}
1627static inline u32 gr_pd_num_tpc_per_gpc_count1_f(u32 v) 1631static inline u32 gr_pd_num_tpc_per_gpc_count1_f(u32 v)
1628{ 1632{
1629 return (v & 0xf) << 4; 1633 return (v & 0xfU) << 4U;
1630} 1634}
1631static inline u32 gr_pd_num_tpc_per_gpc_count2_f(u32 v) 1635static inline u32 gr_pd_num_tpc_per_gpc_count2_f(u32 v)
1632{ 1636{
1633 return (v & 0xf) << 8; 1637 return (v & 0xfU) << 8U;
1634} 1638}
1635static inline u32 gr_pd_num_tpc_per_gpc_count3_f(u32 v) 1639static inline u32 gr_pd_num_tpc_per_gpc_count3_f(u32 v)
1636{ 1640{
1637 return (v & 0xf) << 12; 1641 return (v & 0xfU) << 12U;
1638} 1642}
1639static inline u32 gr_pd_num_tpc_per_gpc_count4_f(u32 v) 1643static inline u32 gr_pd_num_tpc_per_gpc_count4_f(u32 v)
1640{ 1644{
1641 return (v & 0xf) << 16; 1645 return (v & 0xfU) << 16U;
1642} 1646}
1643static inline u32 gr_pd_num_tpc_per_gpc_count5_f(u32 v) 1647static inline u32 gr_pd_num_tpc_per_gpc_count5_f(u32 v)
1644{ 1648{
1645 return (v & 0xf) << 20; 1649 return (v & 0xfU) << 20U;
1646} 1650}
1647static inline u32 gr_pd_num_tpc_per_gpc_count6_f(u32 v) 1651static inline u32 gr_pd_num_tpc_per_gpc_count6_f(u32 v)
1648{ 1652{
1649 return (v & 0xf) << 24; 1653 return (v & 0xfU) << 24U;
1650} 1654}
1651static inline u32 gr_pd_num_tpc_per_gpc_count7_f(u32 v) 1655static inline u32 gr_pd_num_tpc_per_gpc_count7_f(u32 v)
1652{ 1656{
1653 return (v & 0xf) << 28; 1657 return (v & 0xfU) << 28U;
1654} 1658}
1655static inline u32 gr_pd_ab_dist_cfg0_r(void) 1659static inline u32 gr_pd_ab_dist_cfg0_r(void)
1656{ 1660{
1657 return 0x004064c0; 1661 return 0x004064c0U;
1658} 1662}
1659static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_en_f(void) 1663static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_en_f(void)
1660{ 1664{
1661 return 0x80000000; 1665 return 0x80000000U;
1662} 1666}
1663static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_dis_f(void) 1667static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_dis_f(void)
1664{ 1668{
1665 return 0x0; 1669 return 0x0U;
1666} 1670}
1667static inline u32 gr_pd_ab_dist_cfg1_r(void) 1671static inline u32 gr_pd_ab_dist_cfg1_r(void)
1668{ 1672{
1669 return 0x004064c4; 1673 return 0x004064c4U;
1670} 1674}
1671static inline u32 gr_pd_ab_dist_cfg1_max_batches_f(u32 v) 1675static inline u32 gr_pd_ab_dist_cfg1_max_batches_f(u32 v)
1672{ 1676{
1673 return (v & 0xffff) << 0; 1677 return (v & 0xffffU) << 0U;
1674} 1678}
1675static inline u32 gr_pd_ab_dist_cfg1_max_batches_init_f(void) 1679static inline u32 gr_pd_ab_dist_cfg1_max_batches_init_f(void)
1676{ 1680{
1677 return 0xffff; 1681 return 0xffffU;
1678} 1682}
1679static inline u32 gr_pd_ab_dist_cfg1_max_output_f(u32 v) 1683static inline u32 gr_pd_ab_dist_cfg1_max_output_f(u32 v)
1680{ 1684{
1681 return (v & 0xffff) << 16; 1685 return (v & 0xffffU) << 16U;
1682} 1686}
1683static inline u32 gr_pd_ab_dist_cfg1_max_output_granularity_v(void) 1687static inline u32 gr_pd_ab_dist_cfg1_max_output_granularity_v(void)
1684{ 1688{
1685 return 0x00000080; 1689 return 0x00000080U;
1686} 1690}
1687static inline u32 gr_pd_ab_dist_cfg2_r(void) 1691static inline u32 gr_pd_ab_dist_cfg2_r(void)
1688{ 1692{
1689 return 0x004064c8; 1693 return 0x004064c8U;
1690} 1694}
1691static inline u32 gr_pd_ab_dist_cfg2_token_limit_f(u32 v) 1695static inline u32 gr_pd_ab_dist_cfg2_token_limit_f(u32 v)
1692{ 1696{
1693 return (v & 0x1fff) << 0; 1697 return (v & 0x1fffU) << 0U;
1694} 1698}
1695static inline u32 gr_pd_ab_dist_cfg2_token_limit_init_v(void) 1699static inline u32 gr_pd_ab_dist_cfg2_token_limit_init_v(void)
1696{ 1700{
1697 return 0x000001c0; 1701 return 0x000001c0U;
1698} 1702}
1699static inline u32 gr_pd_ab_dist_cfg2_state_limit_f(u32 v) 1703static inline u32 gr_pd_ab_dist_cfg2_state_limit_f(u32 v)
1700{ 1704{
1701 return (v & 0x1fff) << 16; 1705 return (v & 0x1fffU) << 16U;
1702} 1706}
1703static inline u32 gr_pd_ab_dist_cfg2_state_limit_scc_bundle_granularity_v(void) 1707static inline u32 gr_pd_ab_dist_cfg2_state_limit_scc_bundle_granularity_v(void)
1704{ 1708{
1705 return 0x00000020; 1709 return 0x00000020U;
1706} 1710}
1707static inline u32 gr_pd_ab_dist_cfg2_state_limit_min_gpm_fifo_depths_v(void) 1711static inline u32 gr_pd_ab_dist_cfg2_state_limit_min_gpm_fifo_depths_v(void)
1708{ 1712{
1709 return 0x00000182; 1713 return 0x00000182U;
1710} 1714}
1711static inline u32 gr_pd_dist_skip_table_r(u32 i) 1715static inline u32 gr_pd_dist_skip_table_r(u32 i)
1712{ 1716{
1713 return 0x004064d0 + i*4; 1717 return 0x004064d0U + i*4U;
1714} 1718}
1715static inline u32 gr_pd_dist_skip_table__size_1_v(void) 1719static inline u32 gr_pd_dist_skip_table__size_1_v(void)
1716{ 1720{
1717 return 0x00000008; 1721 return 0x00000008U;
1718} 1722}
1719static inline u32 gr_pd_dist_skip_table_gpc_4n0_mask_f(u32 v) 1723static inline u32 gr_pd_dist_skip_table_gpc_4n0_mask_f(u32 v)
1720{ 1724{
1721 return (v & 0xff) << 0; 1725 return (v & 0xffU) << 0U;
1722} 1726}
1723static inline u32 gr_pd_dist_skip_table_gpc_4n1_mask_f(u32 v) 1727static inline u32 gr_pd_dist_skip_table_gpc_4n1_mask_f(u32 v)
1724{ 1728{
1725 return (v & 0xff) << 8; 1729 return (v & 0xffU) << 8U;
1726} 1730}
1727static inline u32 gr_pd_dist_skip_table_gpc_4n2_mask_f(u32 v) 1731static inline u32 gr_pd_dist_skip_table_gpc_4n2_mask_f(u32 v)
1728{ 1732{
1729 return (v & 0xff) << 16; 1733 return (v & 0xffU) << 16U;
1730} 1734}
1731static inline u32 gr_pd_dist_skip_table_gpc_4n3_mask_f(u32 v) 1735static inline u32 gr_pd_dist_skip_table_gpc_4n3_mask_f(u32 v)
1732{ 1736{
1733 return (v & 0xff) << 24; 1737 return (v & 0xffU) << 24U;
1734} 1738}
1735static inline u32 gr_ds_debug_r(void) 1739static inline u32 gr_ds_debug_r(void)
1736{ 1740{
1737 return 0x00405800; 1741 return 0x00405800U;
1738} 1742}
1739static inline u32 gr_ds_debug_timeslice_mode_disable_f(void) 1743static inline u32 gr_ds_debug_timeslice_mode_disable_f(void)
1740{ 1744{
1741 return 0x0; 1745 return 0x0U;
1742} 1746}
1743static inline u32 gr_ds_debug_timeslice_mode_enable_f(void) 1747static inline u32 gr_ds_debug_timeslice_mode_enable_f(void)
1744{ 1748{
1745 return 0x8000000; 1749 return 0x8000000U;
1746} 1750}
1747static inline u32 gr_ds_zbc_color_r_r(void) 1751static inline u32 gr_ds_zbc_color_r_r(void)
1748{ 1752{
1749 return 0x00405804; 1753 return 0x00405804U;
1750} 1754}
1751static inline u32 gr_ds_zbc_color_r_val_f(u32 v) 1755static inline u32 gr_ds_zbc_color_r_val_f(u32 v)
1752{ 1756{
1753 return (v & 0xffffffff) << 0; 1757 return (v & 0xffffffffU) << 0U;
1754} 1758}
1755static inline u32 gr_ds_zbc_color_g_r(void) 1759static inline u32 gr_ds_zbc_color_g_r(void)
1756{ 1760{
1757 return 0x00405808; 1761 return 0x00405808U;
1758} 1762}
1759static inline u32 gr_ds_zbc_color_g_val_f(u32 v) 1763static inline u32 gr_ds_zbc_color_g_val_f(u32 v)
1760{ 1764{
1761 return (v & 0xffffffff) << 0; 1765 return (v & 0xffffffffU) << 0U;
1762} 1766}
1763static inline u32 gr_ds_zbc_color_b_r(void) 1767static inline u32 gr_ds_zbc_color_b_r(void)
1764{ 1768{
1765 return 0x0040580c; 1769 return 0x0040580cU;
1766} 1770}
1767static inline u32 gr_ds_zbc_color_b_val_f(u32 v) 1771static inline u32 gr_ds_zbc_color_b_val_f(u32 v)
1768{ 1772{
1769 return (v & 0xffffffff) << 0; 1773 return (v & 0xffffffffU) << 0U;
1770} 1774}
1771static inline u32 gr_ds_zbc_color_a_r(void) 1775static inline u32 gr_ds_zbc_color_a_r(void)
1772{ 1776{
1773 return 0x00405810; 1777 return 0x00405810U;
1774} 1778}
1775static inline u32 gr_ds_zbc_color_a_val_f(u32 v) 1779static inline u32 gr_ds_zbc_color_a_val_f(u32 v)
1776{ 1780{
1777 return (v & 0xffffffff) << 0; 1781 return (v & 0xffffffffU) << 0U;
1778} 1782}
1779static inline u32 gr_ds_zbc_color_fmt_r(void) 1783static inline u32 gr_ds_zbc_color_fmt_r(void)
1780{ 1784{
1781 return 0x00405814; 1785 return 0x00405814U;
1782} 1786}
1783static inline u32 gr_ds_zbc_color_fmt_val_f(u32 v) 1787static inline u32 gr_ds_zbc_color_fmt_val_f(u32 v)
1784{ 1788{
1785 return (v & 0x7f) << 0; 1789 return (v & 0x7fU) << 0U;
1786} 1790}
1787static inline u32 gr_ds_zbc_color_fmt_val_invalid_f(void) 1791static inline u32 gr_ds_zbc_color_fmt_val_invalid_f(void)
1788{ 1792{
1789 return 0x0; 1793 return 0x0U;
1790} 1794}
1791static inline u32 gr_ds_zbc_color_fmt_val_zero_v(void) 1795static inline u32 gr_ds_zbc_color_fmt_val_zero_v(void)
1792{ 1796{
1793 return 0x00000001; 1797 return 0x00000001U;
1794} 1798}
1795static inline u32 gr_ds_zbc_color_fmt_val_unorm_one_v(void) 1799static inline u32 gr_ds_zbc_color_fmt_val_unorm_one_v(void)
1796{ 1800{
1797 return 0x00000002; 1801 return 0x00000002U;
1798} 1802}
1799static inline u32 gr_ds_zbc_color_fmt_val_rf32_gf32_bf32_af32_v(void) 1803static inline u32 gr_ds_zbc_color_fmt_val_rf32_gf32_bf32_af32_v(void)
1800{ 1804{
1801 return 0x00000004; 1805 return 0x00000004U;
1802} 1806}
1803static inline u32 gr_ds_zbc_color_fmt_val_a8_b8_g8_r8_v(void) 1807static inline u32 gr_ds_zbc_color_fmt_val_a8_b8_g8_r8_v(void)
1804{ 1808{
1805 return 0x00000028; 1809 return 0x00000028U;
1806} 1810}
1807static inline u32 gr_ds_zbc_z_r(void) 1811static inline u32 gr_ds_zbc_z_r(void)
1808{ 1812{
1809 return 0x00405818; 1813 return 0x00405818U;
1810} 1814}
1811static inline u32 gr_ds_zbc_z_val_s(void) 1815static inline u32 gr_ds_zbc_z_val_s(void)
1812{ 1816{
1813 return 32; 1817 return 32U;
1814} 1818}
1815static inline u32 gr_ds_zbc_z_val_f(u32 v) 1819static inline u32 gr_ds_zbc_z_val_f(u32 v)
1816{ 1820{
1817 return (v & 0xffffffff) << 0; 1821 return (v & 0xffffffffU) << 0U;
1818} 1822}
1819static inline u32 gr_ds_zbc_z_val_m(void) 1823static inline u32 gr_ds_zbc_z_val_m(void)
1820{ 1824{
1821 return 0xffffffff << 0; 1825 return 0xffffffffU << 0U;
1822} 1826}
1823static inline u32 gr_ds_zbc_z_val_v(u32 r) 1827static inline u32 gr_ds_zbc_z_val_v(u32 r)
1824{ 1828{
1825 return (r >> 0) & 0xffffffff; 1829 return (r >> 0U) & 0xffffffffU;
1826} 1830}
1827static inline u32 gr_ds_zbc_z_val__init_v(void) 1831static inline u32 gr_ds_zbc_z_val__init_v(void)
1828{ 1832{
1829 return 0x00000000; 1833 return 0x00000000U;
1830} 1834}
1831static inline u32 gr_ds_zbc_z_val__init_f(void) 1835static inline u32 gr_ds_zbc_z_val__init_f(void)
1832{ 1836{
1833 return 0x0; 1837 return 0x0U;
1834} 1838}
1835static inline u32 gr_ds_zbc_z_fmt_r(void) 1839static inline u32 gr_ds_zbc_z_fmt_r(void)
1836{ 1840{
1837 return 0x0040581c; 1841 return 0x0040581cU;
1838} 1842}
1839static inline u32 gr_ds_zbc_z_fmt_val_f(u32 v) 1843static inline u32 gr_ds_zbc_z_fmt_val_f(u32 v)
1840{ 1844{
1841 return (v & 0x1) << 0; 1845 return (v & 0x1U) << 0U;
1842} 1846}
1843static inline u32 gr_ds_zbc_z_fmt_val_invalid_f(void) 1847static inline u32 gr_ds_zbc_z_fmt_val_invalid_f(void)
1844{ 1848{
1845 return 0x0; 1849 return 0x0U;
1846} 1850}
1847static inline u32 gr_ds_zbc_z_fmt_val_fp32_v(void) 1851static inline u32 gr_ds_zbc_z_fmt_val_fp32_v(void)
1848{ 1852{
1849 return 0x00000001; 1853 return 0x00000001U;
1850} 1854}
1851static inline u32 gr_ds_zbc_tbl_index_r(void) 1855static inline u32 gr_ds_zbc_tbl_index_r(void)
1852{ 1856{
1853 return 0x00405820; 1857 return 0x00405820U;
1854} 1858}
1855static inline u32 gr_ds_zbc_tbl_index_val_f(u32 v) 1859static inline u32 gr_ds_zbc_tbl_index_val_f(u32 v)
1856{ 1860{
1857 return (v & 0xf) << 0; 1861 return (v & 0xfU) << 0U;
1858} 1862}
1859static inline u32 gr_ds_zbc_tbl_ld_r(void) 1863static inline u32 gr_ds_zbc_tbl_ld_r(void)
1860{ 1864{
1861 return 0x00405824; 1865 return 0x00405824U;
1862} 1866}
1863static inline u32 gr_ds_zbc_tbl_ld_select_c_f(void) 1867static inline u32 gr_ds_zbc_tbl_ld_select_c_f(void)
1864{ 1868{
1865 return 0x0; 1869 return 0x0U;
1866} 1870}
1867static inline u32 gr_ds_zbc_tbl_ld_select_z_f(void) 1871static inline u32 gr_ds_zbc_tbl_ld_select_z_f(void)
1868{ 1872{
1869 return 0x1; 1873 return 0x1U;
1870} 1874}
1871static inline u32 gr_ds_zbc_tbl_ld_action_write_f(void) 1875static inline u32 gr_ds_zbc_tbl_ld_action_write_f(void)
1872{ 1876{
1873 return 0x0; 1877 return 0x0U;
1874} 1878}
1875static inline u32 gr_ds_zbc_tbl_ld_trigger_active_f(void) 1879static inline u32 gr_ds_zbc_tbl_ld_trigger_active_f(void)
1876{ 1880{
1877 return 0x4; 1881 return 0x4U;
1878} 1882}
1879static inline u32 gr_ds_tga_constraintlogic_beta_r(void) 1883static inline u32 gr_ds_tga_constraintlogic_beta_r(void)
1880{ 1884{
1881 return 0x00405830; 1885 return 0x00405830U;
1882} 1886}
1883static inline u32 gr_ds_tga_constraintlogic_beta_cbsize_f(u32 v) 1887static inline u32 gr_ds_tga_constraintlogic_beta_cbsize_f(u32 v)
1884{ 1888{
1885 return (v & 0x3fffff) << 0; 1889 return (v & 0x3fffffU) << 0U;
1886} 1890}
1887static inline u32 gr_ds_tga_constraintlogic_alpha_r(void) 1891static inline u32 gr_ds_tga_constraintlogic_alpha_r(void)
1888{ 1892{
1889 return 0x0040585c; 1893 return 0x0040585cU;
1890} 1894}
1891static inline u32 gr_ds_tga_constraintlogic_alpha_cbsize_f(u32 v) 1895static inline u32 gr_ds_tga_constraintlogic_alpha_cbsize_f(u32 v)
1892{ 1896{
1893 return (v & 0xffff) << 0; 1897 return (v & 0xffffU) << 0U;
1894} 1898}
1895static inline u32 gr_ds_hww_esr_r(void) 1899static inline u32 gr_ds_hww_esr_r(void)
1896{ 1900{
1897 return 0x00405840; 1901 return 0x00405840U;
1898} 1902}
1899static inline u32 gr_ds_hww_esr_reset_s(void) 1903static inline u32 gr_ds_hww_esr_reset_s(void)
1900{ 1904{
1901 return 1; 1905 return 1U;
1902} 1906}
1903static inline u32 gr_ds_hww_esr_reset_f(u32 v) 1907static inline u32 gr_ds_hww_esr_reset_f(u32 v)
1904{ 1908{
1905 return (v & 0x1) << 30; 1909 return (v & 0x1U) << 30U;
1906} 1910}
1907static inline u32 gr_ds_hww_esr_reset_m(void) 1911static inline u32 gr_ds_hww_esr_reset_m(void)
1908{ 1912{
1909 return 0x1 << 30; 1913 return 0x1U << 30U;
1910} 1914}
1911static inline u32 gr_ds_hww_esr_reset_v(u32 r) 1915static inline u32 gr_ds_hww_esr_reset_v(u32 r)
1912{ 1916{
1913 return (r >> 30) & 0x1; 1917 return (r >> 30U) & 0x1U;
1914} 1918}
1915static inline u32 gr_ds_hww_esr_reset_task_v(void) 1919static inline u32 gr_ds_hww_esr_reset_task_v(void)
1916{ 1920{
1917 return 0x00000001; 1921 return 0x00000001U;
1918} 1922}
1919static inline u32 gr_ds_hww_esr_reset_task_f(void) 1923static inline u32 gr_ds_hww_esr_reset_task_f(void)
1920{ 1924{
1921 return 0x40000000; 1925 return 0x40000000U;
1922} 1926}
1923static inline u32 gr_ds_hww_esr_en_enabled_f(void) 1927static inline u32 gr_ds_hww_esr_en_enabled_f(void)
1924{ 1928{
1925 return 0x80000000; 1929 return 0x80000000U;
1926} 1930}
1927static inline u32 gr_ds_hww_esr_2_r(void) 1931static inline u32 gr_ds_hww_esr_2_r(void)
1928{ 1932{
1929 return 0x00405848; 1933 return 0x00405848U;
1930} 1934}
1931static inline u32 gr_ds_hww_esr_2_reset_s(void) 1935static inline u32 gr_ds_hww_esr_2_reset_s(void)
1932{ 1936{
1933 return 1; 1937 return 1U;
1934} 1938}
1935static inline u32 gr_ds_hww_esr_2_reset_f(u32 v) 1939static inline u32 gr_ds_hww_esr_2_reset_f(u32 v)
1936{ 1940{
1937 return (v & 0x1) << 30; 1941 return (v & 0x1U) << 30U;
1938} 1942}
1939static inline u32 gr_ds_hww_esr_2_reset_m(void) 1943static inline u32 gr_ds_hww_esr_2_reset_m(void)
1940{ 1944{
1941 return 0x1 << 30; 1945 return 0x1U << 30U;
1942} 1946}
1943static inline u32 gr_ds_hww_esr_2_reset_v(u32 r) 1947static inline u32 gr_ds_hww_esr_2_reset_v(u32 r)
1944{ 1948{
1945 return (r >> 30) & 0x1; 1949 return (r >> 30U) & 0x1U;
1946} 1950}
1947static inline u32 gr_ds_hww_esr_2_reset_task_v(void) 1951static inline u32 gr_ds_hww_esr_2_reset_task_v(void)
1948{ 1952{
1949 return 0x00000001; 1953 return 0x00000001U;
1950} 1954}
1951static inline u32 gr_ds_hww_esr_2_reset_task_f(void) 1955static inline u32 gr_ds_hww_esr_2_reset_task_f(void)
1952{ 1956{
1953 return 0x40000000; 1957 return 0x40000000U;
1954} 1958}
1955static inline u32 gr_ds_hww_esr_2_en_enabled_f(void) 1959static inline u32 gr_ds_hww_esr_2_en_enabled_f(void)
1956{ 1960{
1957 return 0x80000000; 1961 return 0x80000000U;
1958} 1962}
1959static inline u32 gr_ds_hww_report_mask_r(void) 1963static inline u32 gr_ds_hww_report_mask_r(void)
1960{ 1964{
1961 return 0x00405844; 1965 return 0x00405844U;
1962} 1966}
1963static inline u32 gr_ds_hww_report_mask_sph0_err_report_f(void) 1967static inline u32 gr_ds_hww_report_mask_sph0_err_report_f(void)
1964{ 1968{
1965 return 0x1; 1969 return 0x1U;
1966} 1970}
1967static inline u32 gr_ds_hww_report_mask_sph1_err_report_f(void) 1971static inline u32 gr_ds_hww_report_mask_sph1_err_report_f(void)
1968{ 1972{
1969 return 0x2; 1973 return 0x2U;
1970} 1974}
1971static inline u32 gr_ds_hww_report_mask_sph2_err_report_f(void) 1975static inline u32 gr_ds_hww_report_mask_sph2_err_report_f(void)
1972{ 1976{
1973 return 0x4; 1977 return 0x4U;
1974} 1978}
1975static inline u32 gr_ds_hww_report_mask_sph3_err_report_f(void) 1979static inline u32 gr_ds_hww_report_mask_sph3_err_report_f(void)
1976{ 1980{
1977 return 0x8; 1981 return 0x8U;
1978} 1982}
1979static inline u32 gr_ds_hww_report_mask_sph4_err_report_f(void) 1983static inline u32 gr_ds_hww_report_mask_sph4_err_report_f(void)
1980{ 1984{
1981 return 0x10; 1985 return 0x10U;
1982} 1986}
1983static inline u32 gr_ds_hww_report_mask_sph5_err_report_f(void) 1987static inline u32 gr_ds_hww_report_mask_sph5_err_report_f(void)
1984{ 1988{
1985 return 0x20; 1989 return 0x20U;
1986} 1990}
1987static inline u32 gr_ds_hww_report_mask_sph6_err_report_f(void) 1991static inline u32 gr_ds_hww_report_mask_sph6_err_report_f(void)
1988{ 1992{
1989 return 0x40; 1993 return 0x40U;
1990} 1994}
1991static inline u32 gr_ds_hww_report_mask_sph7_err_report_f(void) 1995static inline u32 gr_ds_hww_report_mask_sph7_err_report_f(void)
1992{ 1996{
1993 return 0x80; 1997 return 0x80U;
1994} 1998}
1995static inline u32 gr_ds_hww_report_mask_sph8_err_report_f(void) 1999static inline u32 gr_ds_hww_report_mask_sph8_err_report_f(void)
1996{ 2000{
1997 return 0x100; 2001 return 0x100U;
1998} 2002}
1999static inline u32 gr_ds_hww_report_mask_sph9_err_report_f(void) 2003static inline u32 gr_ds_hww_report_mask_sph9_err_report_f(void)
2000{ 2004{
2001 return 0x200; 2005 return 0x200U;
2002} 2006}
2003static inline u32 gr_ds_hww_report_mask_sph10_err_report_f(void) 2007static inline u32 gr_ds_hww_report_mask_sph10_err_report_f(void)
2004{ 2008{
2005 return 0x400; 2009 return 0x400U;
2006} 2010}
2007static inline u32 gr_ds_hww_report_mask_sph11_err_report_f(void) 2011static inline u32 gr_ds_hww_report_mask_sph11_err_report_f(void)
2008{ 2012{
2009 return 0x800; 2013 return 0x800U;
2010} 2014}
2011static inline u32 gr_ds_hww_report_mask_sph12_err_report_f(void) 2015static inline u32 gr_ds_hww_report_mask_sph12_err_report_f(void)
2012{ 2016{
2013 return 0x1000; 2017 return 0x1000U;
2014} 2018}
2015static inline u32 gr_ds_hww_report_mask_sph13_err_report_f(void) 2019static inline u32 gr_ds_hww_report_mask_sph13_err_report_f(void)
2016{ 2020{
2017 return 0x2000; 2021 return 0x2000U;
2018} 2022}
2019static inline u32 gr_ds_hww_report_mask_sph14_err_report_f(void) 2023static inline u32 gr_ds_hww_report_mask_sph14_err_report_f(void)
2020{ 2024{
2021 return 0x4000; 2025 return 0x4000U;
2022} 2026}
2023static inline u32 gr_ds_hww_report_mask_sph15_err_report_f(void) 2027static inline u32 gr_ds_hww_report_mask_sph15_err_report_f(void)
2024{ 2028{
2025 return 0x8000; 2029 return 0x8000U;
2026} 2030}
2027static inline u32 gr_ds_hww_report_mask_sph16_err_report_f(void) 2031static inline u32 gr_ds_hww_report_mask_sph16_err_report_f(void)
2028{ 2032{
2029 return 0x10000; 2033 return 0x10000U;
2030} 2034}
2031static inline u32 gr_ds_hww_report_mask_sph17_err_report_f(void) 2035static inline u32 gr_ds_hww_report_mask_sph17_err_report_f(void)
2032{ 2036{
2033 return 0x20000; 2037 return 0x20000U;
2034} 2038}
2035static inline u32 gr_ds_hww_report_mask_sph18_err_report_f(void) 2039static inline u32 gr_ds_hww_report_mask_sph18_err_report_f(void)
2036{ 2040{
2037 return 0x40000; 2041 return 0x40000U;
2038} 2042}
2039static inline u32 gr_ds_hww_report_mask_sph19_err_report_f(void) 2043static inline u32 gr_ds_hww_report_mask_sph19_err_report_f(void)
2040{ 2044{
2041 return 0x80000; 2045 return 0x80000U;
2042} 2046}
2043static inline u32 gr_ds_hww_report_mask_sph20_err_report_f(void) 2047static inline u32 gr_ds_hww_report_mask_sph20_err_report_f(void)
2044{ 2048{
2045 return 0x100000; 2049 return 0x100000U;
2046} 2050}
2047static inline u32 gr_ds_hww_report_mask_sph21_err_report_f(void) 2051static inline u32 gr_ds_hww_report_mask_sph21_err_report_f(void)
2048{ 2052{
2049 return 0x200000; 2053 return 0x200000U;
2050} 2054}
2051static inline u32 gr_ds_hww_report_mask_sph22_err_report_f(void) 2055static inline u32 gr_ds_hww_report_mask_sph22_err_report_f(void)
2052{ 2056{
2053 return 0x400000; 2057 return 0x400000U;
2054} 2058}
2055static inline u32 gr_ds_hww_report_mask_sph23_err_report_f(void) 2059static inline u32 gr_ds_hww_report_mask_sph23_err_report_f(void)
2056{ 2060{
2057 return 0x800000; 2061 return 0x800000U;
2058} 2062}
2059static inline u32 gr_ds_hww_report_mask_2_r(void) 2063static inline u32 gr_ds_hww_report_mask_2_r(void)
2060{ 2064{
2061 return 0x0040584c; 2065 return 0x0040584cU;
2062} 2066}
2063static inline u32 gr_ds_hww_report_mask_2_sph24_err_report_f(void) 2067static inline u32 gr_ds_hww_report_mask_2_sph24_err_report_f(void)
2064{ 2068{
2065 return 0x1; 2069 return 0x1U;
2066} 2070}
2067static inline u32 gr_ds_num_tpc_per_gpc_r(u32 i) 2071static inline u32 gr_ds_num_tpc_per_gpc_r(u32 i)
2068{ 2072{
2069 return 0x00405870 + i*4; 2073 return 0x00405870U + i*4U;
2070} 2074}
2071static inline u32 gr_scc_bundle_cb_base_r(void) 2075static inline u32 gr_scc_bundle_cb_base_r(void)
2072{ 2076{
2073 return 0x00408004; 2077 return 0x00408004U;
2074} 2078}
2075static inline u32 gr_scc_bundle_cb_base_addr_39_8_f(u32 v) 2079static inline u32 gr_scc_bundle_cb_base_addr_39_8_f(u32 v)
2076{ 2080{
2077 return (v & 0xffffffff) << 0; 2081 return (v & 0xffffffffU) << 0U;
2078} 2082}
2079static inline u32 gr_scc_bundle_cb_base_addr_39_8_align_bits_v(void) 2083static inline u32 gr_scc_bundle_cb_base_addr_39_8_align_bits_v(void)
2080{ 2084{
2081 return 0x00000008; 2085 return 0x00000008U;
2082} 2086}
2083static inline u32 gr_scc_bundle_cb_size_r(void) 2087static inline u32 gr_scc_bundle_cb_size_r(void)
2084{ 2088{
2085 return 0x00408008; 2089 return 0x00408008U;
2086} 2090}
2087static inline u32 gr_scc_bundle_cb_size_div_256b_f(u32 v) 2091static inline u32 gr_scc_bundle_cb_size_div_256b_f(u32 v)
2088{ 2092{
2089 return (v & 0x7ff) << 0; 2093 return (v & 0x7ffU) << 0U;
2090} 2094}
2091static inline u32 gr_scc_bundle_cb_size_div_256b__prod_v(void) 2095static inline u32 gr_scc_bundle_cb_size_div_256b__prod_v(void)
2092{ 2096{
2093 return 0x00000018; 2097 return 0x00000018U;
2094} 2098}
2095static inline u32 gr_scc_bundle_cb_size_div_256b_byte_granularity_v(void) 2099static inline u32 gr_scc_bundle_cb_size_div_256b_byte_granularity_v(void)
2096{ 2100{
2097 return 0x00000100; 2101 return 0x00000100U;
2098} 2102}
2099static inline u32 gr_scc_bundle_cb_size_valid_false_v(void) 2103static inline u32 gr_scc_bundle_cb_size_valid_false_v(void)
2100{ 2104{
2101 return 0x00000000; 2105 return 0x00000000U;
2102} 2106}
2103static inline u32 gr_scc_bundle_cb_size_valid_false_f(void) 2107static inline u32 gr_scc_bundle_cb_size_valid_false_f(void)
2104{ 2108{
2105 return 0x0; 2109 return 0x0U;
2106} 2110}
2107static inline u32 gr_scc_bundle_cb_size_valid_true_f(void) 2111static inline u32 gr_scc_bundle_cb_size_valid_true_f(void)
2108{ 2112{
2109 return 0x80000000; 2113 return 0x80000000U;
2110} 2114}
2111static inline u32 gr_scc_pagepool_base_r(void) 2115static inline u32 gr_scc_pagepool_base_r(void)
2112{ 2116{
2113 return 0x0040800c; 2117 return 0x0040800cU;
2114} 2118}
2115static inline u32 gr_scc_pagepool_base_addr_39_8_f(u32 v) 2119static inline u32 gr_scc_pagepool_base_addr_39_8_f(u32 v)
2116{ 2120{
2117 return (v & 0xffffffff) << 0; 2121 return (v & 0xffffffffU) << 0U;
2118} 2122}
2119static inline u32 gr_scc_pagepool_base_addr_39_8_align_bits_v(void) 2123static inline u32 gr_scc_pagepool_base_addr_39_8_align_bits_v(void)
2120{ 2124{
2121 return 0x00000008; 2125 return 0x00000008U;
2122} 2126}
2123static inline u32 gr_scc_pagepool_r(void) 2127static inline u32 gr_scc_pagepool_r(void)
2124{ 2128{
2125 return 0x00408010; 2129 return 0x00408010U;
2126} 2130}
2127static inline u32 gr_scc_pagepool_total_pages_f(u32 v) 2131static inline u32 gr_scc_pagepool_total_pages_f(u32 v)
2128{ 2132{
2129 return (v & 0x3ff) << 0; 2133 return (v & 0x3ffU) << 0U;
2130} 2134}
2131static inline u32 gr_scc_pagepool_total_pages_hwmax_v(void) 2135static inline u32 gr_scc_pagepool_total_pages_hwmax_v(void)
2132{ 2136{
2133 return 0x00000000; 2137 return 0x00000000U;
2134} 2138}
2135static inline u32 gr_scc_pagepool_total_pages_hwmax_value_v(void) 2139static inline u32 gr_scc_pagepool_total_pages_hwmax_value_v(void)
2136{ 2140{
2137 return 0x00000200; 2141 return 0x00000200U;
2138} 2142}
2139static inline u32 gr_scc_pagepool_total_pages_byte_granularity_v(void) 2143static inline u32 gr_scc_pagepool_total_pages_byte_granularity_v(void)
2140{ 2144{
2141 return 0x00000100; 2145 return 0x00000100U;
2142} 2146}
2143static inline u32 gr_scc_pagepool_max_valid_pages_s(void) 2147static inline u32 gr_scc_pagepool_max_valid_pages_s(void)
2144{ 2148{
2145 return 10; 2149 return 10U;
2146} 2150}
2147static inline u32 gr_scc_pagepool_max_valid_pages_f(u32 v) 2151static inline u32 gr_scc_pagepool_max_valid_pages_f(u32 v)
2148{ 2152{
2149 return (v & 0x3ff) << 10; 2153 return (v & 0x3ffU) << 10U;
2150} 2154}
2151static inline u32 gr_scc_pagepool_max_valid_pages_m(void) 2155static inline u32 gr_scc_pagepool_max_valid_pages_m(void)
2152{ 2156{
2153 return 0x3ff << 10; 2157 return 0x3ffU << 10U;
2154} 2158}
2155static inline u32 gr_scc_pagepool_max_valid_pages_v(u32 r) 2159static inline u32 gr_scc_pagepool_max_valid_pages_v(u32 r)
2156{ 2160{
2157 return (r >> 10) & 0x3ff; 2161 return (r >> 10U) & 0x3ffU;
2158} 2162}
2159static inline u32 gr_scc_pagepool_valid_true_f(void) 2163static inline u32 gr_scc_pagepool_valid_true_f(void)
2160{ 2164{
2161 return 0x80000000; 2165 return 0x80000000U;
2162} 2166}
2163static inline u32 gr_scc_init_r(void) 2167static inline u32 gr_scc_init_r(void)
2164{ 2168{
2165 return 0x0040802c; 2169 return 0x0040802cU;
2166} 2170}
2167static inline u32 gr_scc_init_ram_trigger_f(void) 2171static inline u32 gr_scc_init_ram_trigger_f(void)
2168{ 2172{
2169 return 0x1; 2173 return 0x1U;
2170} 2174}
2171static inline u32 gr_scc_hww_esr_r(void) 2175static inline u32 gr_scc_hww_esr_r(void)
2172{ 2176{
2173 return 0x00408030; 2177 return 0x00408030U;
2174} 2178}
2175static inline u32 gr_scc_hww_esr_reset_active_f(void) 2179static inline u32 gr_scc_hww_esr_reset_active_f(void)
2176{ 2180{
2177 return 0x40000000; 2181 return 0x40000000U;
2178} 2182}
2179static inline u32 gr_scc_hww_esr_en_enable_f(void) 2183static inline u32 gr_scc_hww_esr_en_enable_f(void)
2180{ 2184{
2181 return 0x80000000; 2185 return 0x80000000U;
2182} 2186}
2183static inline u32 gr_sked_hww_esr_r(void) 2187static inline u32 gr_sked_hww_esr_r(void)
2184{ 2188{
2185 return 0x00407020; 2189 return 0x00407020U;
2186} 2190}
2187static inline u32 gr_sked_hww_esr_reset_active_f(void) 2191static inline u32 gr_sked_hww_esr_reset_active_f(void)
2188{ 2192{
2189 return 0x40000000; 2193 return 0x40000000U;
2190} 2194}
2191static inline u32 gr_cwd_fs_r(void) 2195static inline u32 gr_cwd_fs_r(void)
2192{ 2196{
2193 return 0x00405b00; 2197 return 0x00405b00U;
2194} 2198}
2195static inline u32 gr_cwd_fs_num_gpcs_f(u32 v) 2199static inline u32 gr_cwd_fs_num_gpcs_f(u32 v)
2196{ 2200{
2197 return (v & 0xff) << 0; 2201 return (v & 0xffU) << 0U;
2198} 2202}
2199static inline u32 gr_cwd_fs_num_tpcs_f(u32 v) 2203static inline u32 gr_cwd_fs_num_tpcs_f(u32 v)
2200{ 2204{
2201 return (v & 0xff) << 8; 2205 return (v & 0xffU) << 8U;
2202} 2206}
2203static inline u32 gr_cwd_gpc_tpc_id_r(u32 i) 2207static inline u32 gr_cwd_gpc_tpc_id_r(u32 i)
2204{ 2208{
2205 return 0x00405b60 + i*4; 2209 return 0x00405b60U + i*4U;
2206} 2210}
2207static inline u32 gr_cwd_gpc_tpc_id_tpc0_s(void) 2211static inline u32 gr_cwd_gpc_tpc_id_tpc0_s(void)
2208{ 2212{
2209 return 4; 2213 return 4U;
2210} 2214}
2211static inline u32 gr_cwd_gpc_tpc_id_tpc0_f(u32 v) 2215static inline u32 gr_cwd_gpc_tpc_id_tpc0_f(u32 v)
2212{ 2216{
2213 return (v & 0xf) << 0; 2217 return (v & 0xfU) << 0U;
2214} 2218}
2215static inline u32 gr_cwd_gpc_tpc_id_gpc0_s(void) 2219static inline u32 gr_cwd_gpc_tpc_id_gpc0_s(void)
2216{ 2220{
2217 return 4; 2221 return 4U;
2218} 2222}
2219static inline u32 gr_cwd_gpc_tpc_id_gpc0_f(u32 v) 2223static inline u32 gr_cwd_gpc_tpc_id_gpc0_f(u32 v)
2220{ 2224{
2221 return (v & 0xf) << 4; 2225 return (v & 0xfU) << 4U;
2222} 2226}
2223static inline u32 gr_cwd_gpc_tpc_id_tpc1_f(u32 v) 2227static inline u32 gr_cwd_gpc_tpc_id_tpc1_f(u32 v)
2224{ 2228{
2225 return (v & 0xf) << 8; 2229 return (v & 0xfU) << 8U;
2226} 2230}
2227static inline u32 gr_cwd_sm_id_r(u32 i) 2231static inline u32 gr_cwd_sm_id_r(u32 i)
2228{ 2232{
2229 return 0x00405ba0 + i*4; 2233 return 0x00405ba0U + i*4U;
2230} 2234}
2231static inline u32 gr_cwd_sm_id__size_1_v(void) 2235static inline u32 gr_cwd_sm_id__size_1_v(void)
2232{ 2236{
2233 return 0x00000010; 2237 return 0x00000010U;
2234} 2238}
2235static inline u32 gr_cwd_sm_id_tpc0_f(u32 v) 2239static inline u32 gr_cwd_sm_id_tpc0_f(u32 v)
2236{ 2240{
2237 return (v & 0xff) << 0; 2241 return (v & 0xffU) << 0U;
2238} 2242}
2239static inline u32 gr_cwd_sm_id_tpc1_f(u32 v) 2243static inline u32 gr_cwd_sm_id_tpc1_f(u32 v)
2240{ 2244{
2241 return (v & 0xff) << 8; 2245 return (v & 0xffU) << 8U;
2242} 2246}
2243static inline u32 gr_gpc0_fs_gpc_r(void) 2247static inline u32 gr_gpc0_fs_gpc_r(void)
2244{ 2248{
2245 return 0x00502608; 2249 return 0x00502608U;
2246} 2250}
2247static inline u32 gr_gpc0_fs_gpc_num_available_tpcs_v(u32 r) 2251static inline u32 gr_gpc0_fs_gpc_num_available_tpcs_v(u32 r)
2248{ 2252{
2249 return (r >> 0) & 0x1f; 2253 return (r >> 0U) & 0x1fU;
2250} 2254}
2251static inline u32 gr_gpc0_fs_gpc_num_available_zculls_v(u32 r) 2255static inline u32 gr_gpc0_fs_gpc_num_available_zculls_v(u32 r)
2252{ 2256{
2253 return (r >> 16) & 0x1f; 2257 return (r >> 16U) & 0x1fU;
2254} 2258}
2255static inline u32 gr_gpc0_cfg_r(void) 2259static inline u32 gr_gpc0_cfg_r(void)
2256{ 2260{
2257 return 0x00502620; 2261 return 0x00502620U;
2258} 2262}
2259static inline u32 gr_gpc0_cfg_imem_sz_v(u32 r) 2263static inline u32 gr_gpc0_cfg_imem_sz_v(u32 r)
2260{ 2264{
2261 return (r >> 0) & 0xff; 2265 return (r >> 0U) & 0xffU;
2262} 2266}
2263static inline u32 gr_gpccs_rc_lanes_r(void) 2267static inline u32 gr_gpccs_rc_lanes_r(void)
2264{ 2268{
2265 return 0x00502880; 2269 return 0x00502880U;
2266} 2270}
2267static inline u32 gr_gpccs_rc_lanes_num_chains_s(void) 2271static inline u32 gr_gpccs_rc_lanes_num_chains_s(void)
2268{ 2272{
2269 return 6; 2273 return 6U;
2270} 2274}
2271static inline u32 gr_gpccs_rc_lanes_num_chains_f(u32 v) 2275static inline u32 gr_gpccs_rc_lanes_num_chains_f(u32 v)
2272{ 2276{
2273 return (v & 0x3f) << 0; 2277 return (v & 0x3fU) << 0U;
2274} 2278}
2275static inline u32 gr_gpccs_rc_lanes_num_chains_m(void) 2279static inline u32 gr_gpccs_rc_lanes_num_chains_m(void)
2276{ 2280{
2277 return 0x3f << 0; 2281 return 0x3fU << 0U;
2278} 2282}
2279static inline u32 gr_gpccs_rc_lanes_num_chains_v(u32 r) 2283static inline u32 gr_gpccs_rc_lanes_num_chains_v(u32 r)
2280{ 2284{
2281 return (r >> 0) & 0x3f; 2285 return (r >> 0U) & 0x3fU;
2282} 2286}
2283static inline u32 gr_gpccs_rc_lane_size_r(void) 2287static inline u32 gr_gpccs_rc_lane_size_r(void)
2284{ 2288{
2285 return 0x00502910; 2289 return 0x00502910U;
2286} 2290}
2287static inline u32 gr_gpccs_rc_lane_size_v_s(void) 2291static inline u32 gr_gpccs_rc_lane_size_v_s(void)
2288{ 2292{
2289 return 24; 2293 return 24U;
2290} 2294}
2291static inline u32 gr_gpccs_rc_lane_size_v_f(u32 v) 2295static inline u32 gr_gpccs_rc_lane_size_v_f(u32 v)
2292{ 2296{
2293 return (v & 0xffffff) << 0; 2297 return (v & 0xffffffU) << 0U;
2294} 2298}
2295static inline u32 gr_gpccs_rc_lane_size_v_m(void) 2299static inline u32 gr_gpccs_rc_lane_size_v_m(void)
2296{ 2300{
2297 return 0xffffff << 0; 2301 return 0xffffffU << 0U;
2298} 2302}
2299static inline u32 gr_gpccs_rc_lane_size_v_v(u32 r) 2303static inline u32 gr_gpccs_rc_lane_size_v_v(u32 r)
2300{ 2304{
2301 return (r >> 0) & 0xffffff; 2305 return (r >> 0U) & 0xffffffU;
2302} 2306}
2303static inline u32 gr_gpccs_rc_lane_size_v_0_v(void) 2307static inline u32 gr_gpccs_rc_lane_size_v_0_v(void)
2304{ 2308{
2305 return 0x00000000; 2309 return 0x00000000U;
2306} 2310}
2307static inline u32 gr_gpccs_rc_lane_size_v_0_f(void) 2311static inline u32 gr_gpccs_rc_lane_size_v_0_f(void)
2308{ 2312{
2309 return 0x0; 2313 return 0x0U;
2310} 2314}
2311static inline u32 gr_gpc0_zcull_fs_r(void) 2315static inline u32 gr_gpc0_zcull_fs_r(void)
2312{ 2316{
2313 return 0x00500910; 2317 return 0x00500910U;
2314} 2318}
2315static inline u32 gr_gpc0_zcull_fs_num_sms_f(u32 v) 2319static inline u32 gr_gpc0_zcull_fs_num_sms_f(u32 v)
2316{ 2320{
2317 return (v & 0x1ff) << 0; 2321 return (v & 0x1ffU) << 0U;
2318} 2322}
2319static inline u32 gr_gpc0_zcull_fs_num_active_banks_f(u32 v) 2323static inline u32 gr_gpc0_zcull_fs_num_active_banks_f(u32 v)
2320{ 2324{
2321 return (v & 0xf) << 16; 2325 return (v & 0xfU) << 16U;
2322} 2326}
2323static inline u32 gr_gpc0_zcull_ram_addr_r(void) 2327static inline u32 gr_gpc0_zcull_ram_addr_r(void)
2324{ 2328{
2325 return 0x00500914; 2329 return 0x00500914U;
2326} 2330}
2327static inline u32 gr_gpc0_zcull_ram_addr_tiles_per_hypertile_row_per_gpc_f(u32 v) 2331static inline u32 gr_gpc0_zcull_ram_addr_tiles_per_hypertile_row_per_gpc_f(u32 v)
2328{ 2332{
2329 return (v & 0xf) << 0; 2333 return (v & 0xfU) << 0U;
2330} 2334}
2331static inline u32 gr_gpc0_zcull_ram_addr_row_offset_f(u32 v) 2335static inline u32 gr_gpc0_zcull_ram_addr_row_offset_f(u32 v)
2332{ 2336{
2333 return (v & 0xf) << 8; 2337 return (v & 0xfU) << 8U;
2334} 2338}
2335static inline u32 gr_gpc0_zcull_sm_num_rcp_r(void) 2339static inline u32 gr_gpc0_zcull_sm_num_rcp_r(void)
2336{ 2340{
2337 return 0x00500918; 2341 return 0x00500918U;
2338} 2342}
2339static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative_f(u32 v) 2343static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative_f(u32 v)
2340{ 2344{
2341 return (v & 0xffffff) << 0; 2345 return (v & 0xffffffU) << 0U;
2342} 2346}
2343static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative__max_v(void) 2347static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative__max_v(void)
2344{ 2348{
2345 return 0x00800000; 2349 return 0x00800000U;
2346} 2350}
2347static inline u32 gr_gpc0_zcull_total_ram_size_r(void) 2351static inline u32 gr_gpc0_zcull_total_ram_size_r(void)
2348{ 2352{
2349 return 0x00500920; 2353 return 0x00500920U;
2350} 2354}
2351static inline u32 gr_gpc0_zcull_total_ram_size_num_aliquots_f(u32 v) 2355static inline u32 gr_gpc0_zcull_total_ram_size_num_aliquots_f(u32 v)
2352{ 2356{
2353 return (v & 0xffff) << 0; 2357 return (v & 0xffffU) << 0U;
2354} 2358}
2355static inline u32 gr_gpc0_zcull_zcsize_r(u32 i) 2359static inline u32 gr_gpc0_zcull_zcsize_r(u32 i)
2356{ 2360{
2357 return 0x00500a04 + i*32; 2361 return 0x00500a04U + i*32U;
2358} 2362}
2359static inline u32 gr_gpc0_zcull_zcsize_height_subregion__multiple_v(void) 2363static inline u32 gr_gpc0_zcull_zcsize_height_subregion__multiple_v(void)
2360{ 2364{
2361 return 0x00000040; 2365 return 0x00000040U;
2362} 2366}
2363static inline u32 gr_gpc0_zcull_zcsize_width_subregion__multiple_v(void) 2367static inline u32 gr_gpc0_zcull_zcsize_width_subregion__multiple_v(void)
2364{ 2368{
2365 return 0x00000010; 2369 return 0x00000010U;
2366} 2370}
2367static inline u32 gr_gpc0_gpm_pd_sm_id_r(u32 i) 2371static inline u32 gr_gpc0_gpm_pd_sm_id_r(u32 i)
2368{ 2372{
2369 return 0x00500c10 + i*4; 2373 return 0x00500c10U + i*4U;
2370} 2374}
2371static inline u32 gr_gpc0_gpm_pd_sm_id_id_f(u32 v) 2375static inline u32 gr_gpc0_gpm_pd_sm_id_id_f(u32 v)
2372{ 2376{
2373 return (v & 0xff) << 0; 2377 return (v & 0xffU) << 0U;
2374} 2378}
2375static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_r(u32 i) 2379static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_r(u32 i)
2376{ 2380{
2377 return 0x00500c30 + i*4; 2381 return 0x00500c30U + i*4U;
2378} 2382}
2379static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_mask_v(u32 r) 2383static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_mask_v(u32 r)
2380{ 2384{
2381 return (r >> 0) & 0xff; 2385 return (r >> 0U) & 0xffU;
2382} 2386}
2383static inline u32 gr_gpc0_tpc0_pe_cfg_smid_r(void) 2387static inline u32 gr_gpc0_tpc0_pe_cfg_smid_r(void)
2384{ 2388{
2385 return 0x00504088; 2389 return 0x00504088U;
2386} 2390}
2387static inline u32 gr_gpc0_tpc0_pe_cfg_smid_value_f(u32 v) 2391static inline u32 gr_gpc0_tpc0_pe_cfg_smid_value_f(u32 v)
2388{ 2392{
2389 return (v & 0xffff) << 0; 2393 return (v & 0xffffU) << 0U;
2390} 2394}
2391static inline u32 gr_gpc0_tpc0_sm_cfg_r(void) 2395static inline u32 gr_gpc0_tpc0_sm_cfg_r(void)
2392{ 2396{
2393 return 0x00504698; 2397 return 0x00504698U;
2394} 2398}
2395static inline u32 gr_gpc0_tpc0_sm_cfg_sm_id_f(u32 v) 2399static inline u32 gr_gpc0_tpc0_sm_cfg_sm_id_f(u32 v)
2396{ 2400{
2397 return (v & 0xffff) << 0; 2401 return (v & 0xffffU) << 0U;
2398} 2402}
2399static inline u32 gr_gpc0_tpc0_sm_cfg_sm_id_v(u32 r) 2403static inline u32 gr_gpc0_tpc0_sm_cfg_sm_id_v(u32 r)
2400{ 2404{
2401 return (r >> 0) & 0xffff; 2405 return (r >> 0U) & 0xffffU;
2402} 2406}
2403static inline u32 gr_gpc0_tpc0_sm_arch_r(void) 2407static inline u32 gr_gpc0_tpc0_sm_arch_r(void)
2404{ 2408{
2405 return 0x0050469c; 2409 return 0x0050469cU;
2406} 2410}
2407static inline u32 gr_gpc0_tpc0_sm_arch_warp_count_v(u32 r) 2411static inline u32 gr_gpc0_tpc0_sm_arch_warp_count_v(u32 r)
2408{ 2412{
2409 return (r >> 0) & 0xff; 2413 return (r >> 0U) & 0xffU;
2410} 2414}
2411static inline u32 gr_gpc0_tpc0_sm_arch_spa_version_v(u32 r) 2415static inline u32 gr_gpc0_tpc0_sm_arch_spa_version_v(u32 r)
2412{ 2416{
2413 return (r >> 8) & 0xfff; 2417 return (r >> 8U) & 0xfffU;
2414} 2418}
2415static inline u32 gr_gpc0_tpc0_sm_arch_sm_version_v(u32 r) 2419static inline u32 gr_gpc0_tpc0_sm_arch_sm_version_v(u32 r)
2416{ 2420{
2417 return (r >> 20) & 0xfff; 2421 return (r >> 20U) & 0xfffU;
2418} 2422}
2419static inline u32 gr_gpc0_ppc0_pes_vsc_strem_r(void) 2423static inline u32 gr_gpc0_ppc0_pes_vsc_strem_r(void)
2420{ 2424{
2421 return 0x00503018; 2425 return 0x00503018U;
2422} 2426}
2423static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_m(void) 2427static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_m(void)
2424{ 2428{
2425 return 0x1 << 0; 2429 return 0x1U << 0U;
2426} 2430}
2427static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_true_f(void) 2431static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_true_f(void)
2428{ 2432{
2429 return 0x1; 2433 return 0x1U;
2430} 2434}
2431static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_r(void) 2435static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_r(void)
2432{ 2436{
2433 return 0x005030c0; 2437 return 0x005030c0U;
2434} 2438}
2435static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_f(u32 v) 2439static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_f(u32 v)
2436{ 2440{
2437 return (v & 0x3fffff) << 0; 2441 return (v & 0x3fffffU) << 0U;
2438} 2442}
2439static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_m(void) 2443static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_m(void)
2440{ 2444{
2441 return 0x3fffff << 0; 2445 return 0x3fffffU << 0U;
2442} 2446}
2443static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_default_v(void) 2447static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_default_v(void)
2444{ 2448{
2445 return 0x00030000; 2449 return 0x00030000U;
2446} 2450}
2447static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_gfxp_v(void) 2451static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_gfxp_v(void)
2448{ 2452{
2449 return 0x00030a00; 2453 return 0x00030a00U;
2450} 2454}
2451static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_granularity_v(void) 2455static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_granularity_v(void)
2452{ 2456{
2453 return 0x00000020; 2457 return 0x00000020U;
2454} 2458}
2455static inline u32 gr_gpc0_ppc0_cbm_beta_cb_offset_r(void) 2459static inline u32 gr_gpc0_ppc0_cbm_beta_cb_offset_r(void)
2456{ 2460{
2457 return 0x005030f4; 2461 return 0x005030f4U;
2458} 2462}
2459static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_r(void) 2463static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_r(void)
2460{ 2464{
2461 return 0x005030e4; 2465 return 0x005030e4U;
2462} 2466}
2463static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_f(u32 v) 2467static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_f(u32 v)
2464{ 2468{
2465 return (v & 0xffff) << 0; 2469 return (v & 0xffffU) << 0U;
2466} 2470}
2467static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_m(void) 2471static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_m(void)
2468{ 2472{
2469 return 0xffff << 0; 2473 return 0xffffU << 0U;
2470} 2474}
2471static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_default_v(void) 2475static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_default_v(void)
2472{ 2476{
2473 return 0x00000800; 2477 return 0x00000800U;
2474} 2478}
2475static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_granularity_v(void) 2479static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_granularity_v(void)
2476{ 2480{
2477 return 0x00000020; 2481 return 0x00000020U;
2478} 2482}
2479static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_offset_r(void) 2483static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_offset_r(void)
2480{ 2484{
2481 return 0x005030f8; 2485 return 0x005030f8U;
2482} 2486}
2483static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_r(void) 2487static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_r(void)
2484{ 2488{
2485 return 0x005030f0; 2489 return 0x005030f0U;
2486} 2490}
2487static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_f(u32 v) 2491static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_f(u32 v)
2488{ 2492{
2489 return (v & 0x3fffff) << 0; 2493 return (v & 0x3fffffU) << 0U;
2490} 2494}
2491static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_default_v(void) 2495static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_default_v(void)
2492{ 2496{
2493 return 0x00030000; 2497 return 0x00030000U;
2494} 2498}
2495static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_r(void) 2499static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_r(void)
2496{ 2500{
2497 return 0x00419b00; 2501 return 0x00419b00U;
2498} 2502}
2499static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_base_addr_43_12_f(u32 v) 2503static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_base_addr_43_12_f(u32 v)
2500{ 2504{
2501 return (v & 0xffffffff) << 0; 2505 return (v & 0xffffffffU) << 0U;
2502} 2506}
2503static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_r(void) 2507static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_r(void)
2504{ 2508{
2505 return 0x00419b04; 2509 return 0x00419b04U;
2506} 2510}
2507static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_s(void) 2511static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_s(void)
2508{ 2512{
2509 return 21; 2513 return 21U;
2510} 2514}
2511static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_f(u32 v) 2515static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_f(u32 v)
2512{ 2516{
2513 return (v & 0x1fffff) << 0; 2517 return (v & 0x1fffffU) << 0U;
2514} 2518}
2515static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_m(void) 2519static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_m(void)
2516{ 2520{
2517 return 0x1fffff << 0; 2521 return 0x1fffffU << 0U;
2518} 2522}
2519static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_v(u32 r) 2523static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_v(u32 r)
2520{ 2524{
2521 return (r >> 0) & 0x1fffff; 2525 return (r >> 0U) & 0x1fffffU;
2522} 2526}
2523static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_granularity_f(void) 2527static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_granularity_f(void)
2524{ 2528{
2525 return 0x80; 2529 return 0x80U;
2526} 2530}
2527static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_s(void) 2531static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_s(void)
2528{ 2532{
2529 return 1; 2533 return 1U;
2530} 2534}
2531static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_f(u32 v) 2535static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_f(u32 v)
2532{ 2536{
2533 return (v & 0x1) << 31; 2537 return (v & 0x1U) << 31U;
2534} 2538}
2535static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_m(void) 2539static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_m(void)
2536{ 2540{
2537 return 0x1 << 31; 2541 return 0x1U << 31U;
2538} 2542}
2539static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_v(u32 r) 2543static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_v(u32 r)
2540{ 2544{
2541 return (r >> 31) & 0x1; 2545 return (r >> 31U) & 0x1U;
2542} 2546}
2543static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_true_f(void) 2547static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_true_f(void)
2544{ 2548{
2545 return 0x80000000; 2549 return 0x80000000U;
2546} 2550}
2547static inline u32 gr_gpcs_tpcs_tex_m_dbg2_r(void) 2551static inline u32 gr_gpcs_tpcs_tex_m_dbg2_r(void)
2548{ 2552{
2549 return 0x00419a3c; 2553 return 0x00419a3cU;
2550} 2554}
2551static inline u32 gr_gpcs_tpcs_tex_m_dbg2_lg_rd_coalesce_en_f(u32 v) 2555static inline u32 gr_gpcs_tpcs_tex_m_dbg2_lg_rd_coalesce_en_f(u32 v)
2552{ 2556{
2553 return (v & 0x1) << 2; 2557 return (v & 0x1U) << 2U;
2554} 2558}
2555static inline u32 gr_gpcs_tpcs_tex_m_dbg2_lg_rd_coalesce_en_m(void) 2559static inline u32 gr_gpcs_tpcs_tex_m_dbg2_lg_rd_coalesce_en_m(void)
2556{ 2560{
2557 return 0x1 << 2; 2561 return 0x1U << 2U;
2558} 2562}
2559static inline u32 gr_gpcs_tpcs_tex_m_dbg2_su_rd_coalesce_en_f(u32 v) 2563static inline u32 gr_gpcs_tpcs_tex_m_dbg2_su_rd_coalesce_en_f(u32 v)
2560{ 2564{
2561 return (v & 0x1) << 4; 2565 return (v & 0x1U) << 4U;
2562} 2566}
2563static inline u32 gr_gpcs_tpcs_tex_m_dbg2_su_rd_coalesce_en_m(void) 2567static inline u32 gr_gpcs_tpcs_tex_m_dbg2_su_rd_coalesce_en_m(void)
2564{ 2568{
2565 return 0x1 << 4; 2569 return 0x1U << 4U;
2566} 2570}
2567static inline u32 gr_gpccs_falcon_addr_r(void) 2571static inline u32 gr_gpccs_falcon_addr_r(void)
2568{ 2572{
2569 return 0x0041a0ac; 2573 return 0x0041a0acU;
2570} 2574}
2571static inline u32 gr_gpccs_falcon_addr_lsb_s(void) 2575static inline u32 gr_gpccs_falcon_addr_lsb_s(void)
2572{ 2576{
2573 return 6; 2577 return 6U;
2574} 2578}
2575static inline u32 gr_gpccs_falcon_addr_lsb_f(u32 v) 2579static inline u32 gr_gpccs_falcon_addr_lsb_f(u32 v)
2576{ 2580{
2577 return (v & 0x3f) << 0; 2581 return (v & 0x3fU) << 0U;
2578} 2582}
2579static inline u32 gr_gpccs_falcon_addr_lsb_m(void) 2583static inline u32 gr_gpccs_falcon_addr_lsb_m(void)
2580{ 2584{
2581 return 0x3f << 0; 2585 return 0x3fU << 0U;
2582} 2586}
2583static inline u32 gr_gpccs_falcon_addr_lsb_v(u32 r) 2587static inline u32 gr_gpccs_falcon_addr_lsb_v(u32 r)
2584{ 2588{
2585 return (r >> 0) & 0x3f; 2589 return (r >> 0U) & 0x3fU;
2586} 2590}
2587static inline u32 gr_gpccs_falcon_addr_lsb_init_v(void) 2591static inline u32 gr_gpccs_falcon_addr_lsb_init_v(void)
2588{ 2592{
2589 return 0x00000000; 2593 return 0x00000000U;
2590} 2594}
2591static inline u32 gr_gpccs_falcon_addr_lsb_init_f(void) 2595static inline u32 gr_gpccs_falcon_addr_lsb_init_f(void)
2592{ 2596{
2593 return 0x0; 2597 return 0x0U;
2594} 2598}
2595static inline u32 gr_gpccs_falcon_addr_msb_s(void) 2599static inline u32 gr_gpccs_falcon_addr_msb_s(void)
2596{ 2600{
2597 return 6; 2601 return 6U;
2598} 2602}
2599static inline u32 gr_gpccs_falcon_addr_msb_f(u32 v) 2603static inline u32 gr_gpccs_falcon_addr_msb_f(u32 v)
2600{ 2604{
2601 return (v & 0x3f) << 6; 2605 return (v & 0x3fU) << 6U;
2602} 2606}
2603static inline u32 gr_gpccs_falcon_addr_msb_m(void) 2607static inline u32 gr_gpccs_falcon_addr_msb_m(void)
2604{ 2608{
2605 return 0x3f << 6; 2609 return 0x3fU << 6U;
2606} 2610}
2607static inline u32 gr_gpccs_falcon_addr_msb_v(u32 r) 2611static inline u32 gr_gpccs_falcon_addr_msb_v(u32 r)
2608{ 2612{
2609 return (r >> 6) & 0x3f; 2613 return (r >> 6U) & 0x3fU;
2610} 2614}
2611static inline u32 gr_gpccs_falcon_addr_msb_init_v(void) 2615static inline u32 gr_gpccs_falcon_addr_msb_init_v(void)
2612{ 2616{
2613 return 0x00000000; 2617 return 0x00000000U;
2614} 2618}
2615static inline u32 gr_gpccs_falcon_addr_msb_init_f(void) 2619static inline u32 gr_gpccs_falcon_addr_msb_init_f(void)
2616{ 2620{
2617 return 0x0; 2621 return 0x0U;
2618} 2622}
2619static inline u32 gr_gpccs_falcon_addr_ext_s(void) 2623static inline u32 gr_gpccs_falcon_addr_ext_s(void)
2620{ 2624{
2621 return 12; 2625 return 12U;
2622} 2626}
2623static inline u32 gr_gpccs_falcon_addr_ext_f(u32 v) 2627static inline u32 gr_gpccs_falcon_addr_ext_f(u32 v)
2624{ 2628{
2625 return (v & 0xfff) << 0; 2629 return (v & 0xfffU) << 0U;
2626} 2630}
2627static inline u32 gr_gpccs_falcon_addr_ext_m(void) 2631static inline u32 gr_gpccs_falcon_addr_ext_m(void)
2628{ 2632{
2629 return 0xfff << 0; 2633 return 0xfffU << 0U;
2630} 2634}
2631static inline u32 gr_gpccs_falcon_addr_ext_v(u32 r) 2635static inline u32 gr_gpccs_falcon_addr_ext_v(u32 r)
2632{ 2636{
2633 return (r >> 0) & 0xfff; 2637 return (r >> 0U) & 0xfffU;
2634} 2638}
2635static inline u32 gr_gpccs_cpuctl_r(void) 2639static inline u32 gr_gpccs_cpuctl_r(void)
2636{ 2640{
2637 return 0x0041a100; 2641 return 0x0041a100U;
2638} 2642}
2639static inline u32 gr_gpccs_cpuctl_startcpu_f(u32 v) 2643static inline u32 gr_gpccs_cpuctl_startcpu_f(u32 v)
2640{ 2644{
2641 return (v & 0x1) << 1; 2645 return (v & 0x1U) << 1U;
2642} 2646}
2643static inline u32 gr_gpccs_dmactl_r(void) 2647static inline u32 gr_gpccs_dmactl_r(void)
2644{ 2648{
2645 return 0x0041a10c; 2649 return 0x0041a10cU;
2646} 2650}
2647static inline u32 gr_gpccs_dmactl_require_ctx_f(u32 v) 2651static inline u32 gr_gpccs_dmactl_require_ctx_f(u32 v)
2648{ 2652{
2649 return (v & 0x1) << 0; 2653 return (v & 0x1U) << 0U;
2650} 2654}
2651static inline u32 gr_gpccs_dmactl_dmem_scrubbing_m(void) 2655static inline u32 gr_gpccs_dmactl_dmem_scrubbing_m(void)
2652{ 2656{
2653 return 0x1 << 1; 2657 return 0x1U << 1U;
2654} 2658}
2655static inline u32 gr_gpccs_dmactl_imem_scrubbing_m(void) 2659static inline u32 gr_gpccs_dmactl_imem_scrubbing_m(void)
2656{ 2660{
2657 return 0x1 << 2; 2661 return 0x1U << 2U;
2658} 2662}
2659static inline u32 gr_gpccs_imemc_r(u32 i) 2663static inline u32 gr_gpccs_imemc_r(u32 i)
2660{ 2664{
2661 return 0x0041a180 + i*16; 2665 return 0x0041a180U + i*16U;
2662} 2666}
2663static inline u32 gr_gpccs_imemc_offs_f(u32 v) 2667static inline u32 gr_gpccs_imemc_offs_f(u32 v)
2664{ 2668{
2665 return (v & 0x3f) << 2; 2669 return (v & 0x3fU) << 2U;
2666} 2670}
2667static inline u32 gr_gpccs_imemc_blk_f(u32 v) 2671static inline u32 gr_gpccs_imemc_blk_f(u32 v)
2668{ 2672{
2669 return (v & 0xff) << 8; 2673 return (v & 0xffU) << 8U;
2670} 2674}
2671static inline u32 gr_gpccs_imemc_aincw_f(u32 v) 2675static inline u32 gr_gpccs_imemc_aincw_f(u32 v)
2672{ 2676{
2673 return (v & 0x1) << 24; 2677 return (v & 0x1U) << 24U;
2674} 2678}
2675static inline u32 gr_gpccs_imemd_r(u32 i) 2679static inline u32 gr_gpccs_imemd_r(u32 i)
2676{ 2680{
2677 return 0x0041a184 + i*16; 2681 return 0x0041a184U + i*16U;
2678} 2682}
2679static inline u32 gr_gpccs_imemt_r(u32 i) 2683static inline u32 gr_gpccs_imemt_r(u32 i)
2680{ 2684{
2681 return 0x0041a188 + i*16; 2685 return 0x0041a188U + i*16U;
2682} 2686}
2683static inline u32 gr_gpccs_imemt__size_1_v(void) 2687static inline u32 gr_gpccs_imemt__size_1_v(void)
2684{ 2688{
2685 return 0x00000004; 2689 return 0x00000004U;
2686} 2690}
2687static inline u32 gr_gpccs_imemt_tag_f(u32 v) 2691static inline u32 gr_gpccs_imemt_tag_f(u32 v)
2688{ 2692{
2689 return (v & 0xffff) << 0; 2693 return (v & 0xffffU) << 0U;
2690} 2694}
2691static inline u32 gr_gpccs_dmemc_r(u32 i) 2695static inline u32 gr_gpccs_dmemc_r(u32 i)
2692{ 2696{
2693 return 0x0041a1c0 + i*8; 2697 return 0x0041a1c0U + i*8U;
2694} 2698}
2695static inline u32 gr_gpccs_dmemc_offs_f(u32 v) 2699static inline u32 gr_gpccs_dmemc_offs_f(u32 v)
2696{ 2700{
2697 return (v & 0x3f) << 2; 2701 return (v & 0x3fU) << 2U;
2698} 2702}
2699static inline u32 gr_gpccs_dmemc_blk_f(u32 v) 2703static inline u32 gr_gpccs_dmemc_blk_f(u32 v)
2700{ 2704{
2701 return (v & 0xff) << 8; 2705 return (v & 0xffU) << 8U;
2702} 2706}
2703static inline u32 gr_gpccs_dmemc_aincw_f(u32 v) 2707static inline u32 gr_gpccs_dmemc_aincw_f(u32 v)
2704{ 2708{
2705 return (v & 0x1) << 24; 2709 return (v & 0x1U) << 24U;
2706} 2710}
2707static inline u32 gr_gpccs_dmemd_r(u32 i) 2711static inline u32 gr_gpccs_dmemd_r(u32 i)
2708{ 2712{
2709 return 0x0041a1c4 + i*8; 2713 return 0x0041a1c4U + i*8U;
2710} 2714}
2711static inline u32 gr_gpccs_ctxsw_mailbox_r(u32 i) 2715static inline u32 gr_gpccs_ctxsw_mailbox_r(u32 i)
2712{ 2716{
2713 return 0x0041a800 + i*4; 2717 return 0x0041a800U + i*4U;
2714} 2718}
2715static inline u32 gr_gpccs_ctxsw_mailbox_value_f(u32 v) 2719static inline u32 gr_gpccs_ctxsw_mailbox_value_f(u32 v)
2716{ 2720{
2717 return (v & 0xffffffff) << 0; 2721 return (v & 0xffffffffU) << 0U;
2718} 2722}
2719static inline u32 gr_gpcs_swdx_bundle_cb_base_r(void) 2723static inline u32 gr_gpcs_swdx_bundle_cb_base_r(void)
2720{ 2724{
2721 return 0x00418e24; 2725 return 0x00418e24U;
2722} 2726}
2723static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_s(void) 2727static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_s(void)
2724{ 2728{
2725 return 32; 2729 return 32U;
2726} 2730}
2727static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_f(u32 v) 2731static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_f(u32 v)
2728{ 2732{
2729 return (v & 0xffffffff) << 0; 2733 return (v & 0xffffffffU) << 0U;
2730} 2734}
2731static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_m(void) 2735static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_m(void)
2732{ 2736{
2733 return 0xffffffff << 0; 2737 return 0xffffffffU << 0U;
2734} 2738}
2735static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_v(u32 r) 2739static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_v(u32 r)
2736{ 2740{
2737 return (r >> 0) & 0xffffffff; 2741 return (r >> 0U) & 0xffffffffU;
2738} 2742}
2739static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_v(void) 2743static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_v(void)
2740{ 2744{
2741 return 0x00000000; 2745 return 0x00000000U;
2742} 2746}
2743static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_f(void) 2747static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_f(void)
2744{ 2748{
2745 return 0x0; 2749 return 0x0U;
2746} 2750}
2747static inline u32 gr_gpcs_swdx_bundle_cb_size_r(void) 2751static inline u32 gr_gpcs_swdx_bundle_cb_size_r(void)
2748{ 2752{
2749 return 0x00418e28; 2753 return 0x00418e28U;
2750} 2754}
2751static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_s(void) 2755static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_s(void)
2752{ 2756{
2753 return 11; 2757 return 11U;
2754} 2758}
2755static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_f(u32 v) 2759static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_f(u32 v)
2756{ 2760{
2757 return (v & 0x7ff) << 0; 2761 return (v & 0x7ffU) << 0U;
2758} 2762}
2759static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_m(void) 2763static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_m(void)
2760{ 2764{
2761 return 0x7ff << 0; 2765 return 0x7ffU << 0U;
2762} 2766}
2763static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_v(u32 r) 2767static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_v(u32 r)
2764{ 2768{
2765 return (r >> 0) & 0x7ff; 2769 return (r >> 0U) & 0x7ffU;
2766} 2770}
2767static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_v(void) 2771static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_v(void)
2768{ 2772{
2769 return 0x00000018; 2773 return 0x00000018U;
2770} 2774}
2771static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_f(void) 2775static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_f(void)
2772{ 2776{
2773 return 0x18; 2777 return 0x18U;
2774} 2778}
2775static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_s(void) 2779static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_s(void)
2776{ 2780{
2777 return 1; 2781 return 1U;
2778} 2782}
2779static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_f(u32 v) 2783static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_f(u32 v)
2780{ 2784{
2781 return (v & 0x1) << 31; 2785 return (v & 0x1U) << 31U;
2782} 2786}
2783static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_m(void) 2787static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_m(void)
2784{ 2788{
2785 return 0x1 << 31; 2789 return 0x1U << 31U;
2786} 2790}
2787static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_v(u32 r) 2791static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_v(u32 r)
2788{ 2792{
2789 return (r >> 31) & 0x1; 2793 return (r >> 31U) & 0x1U;
2790} 2794}
2791static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_v(void) 2795static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_v(void)
2792{ 2796{
2793 return 0x00000000; 2797 return 0x00000000U;
2794} 2798}
2795static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_f(void) 2799static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_f(void)
2796{ 2800{
2797 return 0x0; 2801 return 0x0U;
2798} 2802}
2799static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_v(void) 2803static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_v(void)
2800{ 2804{
2801 return 0x00000001; 2805 return 0x00000001U;
2802} 2806}
2803static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_f(void) 2807static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_f(void)
2804{ 2808{
2805 return 0x80000000; 2809 return 0x80000000U;
2806} 2810}
2807static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_r(void) 2811static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_r(void)
2808{ 2812{
2809 return 0x00500ee4; 2813 return 0x00500ee4U;
2810} 2814}
2811static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_f(u32 v) 2815static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_f(u32 v)
2812{ 2816{
2813 return (v & 0xffff) << 0; 2817 return (v & 0xffffU) << 0U;
2814} 2818}
2815static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_default_v(void) 2819static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_default_v(void)
2816{ 2820{
2817 return 0x00000250; 2821 return 0x00000250U;
2818} 2822}
2819static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_byte_granularity_v(void) 2823static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_byte_granularity_v(void)
2820{ 2824{
2821 return 0x00000100; 2825 return 0x00000100U;
2822} 2826}
2823static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_r(void) 2827static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_r(void)
2824{ 2828{
2825 return 0x00500ee0; 2829 return 0x00500ee0U;
2826} 2830}
2827static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_f(u32 v) 2831static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_f(u32 v)
2828{ 2832{
2829 return (v & 0xffffffff) << 0; 2833 return (v & 0xffffffffU) << 0U;
2830} 2834}
2831static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_align_bits_v(void) 2835static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_align_bits_v(void)
2832{ 2836{
2833 return 0x00000008; 2837 return 0x00000008U;
2834} 2838}
2835static inline u32 gr_gpcs_swdx_beta_cb_ctrl_r(void) 2839static inline u32 gr_gpcs_swdx_beta_cb_ctrl_r(void)
2836{ 2840{
2837 return 0x00418eec; 2841 return 0x00418eecU;
2838} 2842}
2839static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_f(u32 v) 2843static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_f(u32 v)
2840{ 2844{
2841 return (v & 0xfff) << 0; 2845 return (v & 0xfffU) << 0U;
2842} 2846}
2843static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_gfxp_v(void) 2847static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_gfxp_v(void)
2844{ 2848{
2845 return 0x00000100; 2849 return 0x00000100U;
2846} 2850}
2847static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_r(void) 2851static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_r(void)
2848{ 2852{
2849 return 0x0041befc; 2853 return 0x0041befcU;
2850} 2854}
2851static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_cbes_reserve_f(u32 v) 2855static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_cbes_reserve_f(u32 v)
2852{ 2856{
2853 return (v & 0xfff) << 0; 2857 return (v & 0xfffU) << 0U;
2854} 2858}
2855static inline u32 gr_gpcs_swdx_tc_beta_cb_size_r(u32 i) 2859static inline u32 gr_gpcs_swdx_tc_beta_cb_size_r(u32 i)
2856{ 2860{
2857 return 0x00418ea0 + i*4; 2861 return 0x00418ea0U + i*4U;
2858} 2862}
2859static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_f(u32 v) 2863static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_f(u32 v)
2860{ 2864{
2861 return (v & 0x3fffff) << 0; 2865 return (v & 0x3fffffU) << 0U;
2862} 2866}
2863static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_m(void) 2867static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_m(void)
2864{ 2868{
2865 return 0x3fffff << 0; 2869 return 0x3fffffU << 0U;
2866} 2870}
2867static inline u32 gr_gpcs_swdx_dss_zbc_color_r_r(u32 i) 2871static inline u32 gr_gpcs_swdx_dss_zbc_color_r_r(u32 i)
2868{ 2872{
2869 return 0x00418010 + i*4; 2873 return 0x00418010U + i*4U;
2870} 2874}
2871static inline u32 gr_gpcs_swdx_dss_zbc_color_r_val_f(u32 v) 2875static inline u32 gr_gpcs_swdx_dss_zbc_color_r_val_f(u32 v)
2872{ 2876{
2873 return (v & 0xffffffff) << 0; 2877 return (v & 0xffffffffU) << 0U;
2874} 2878}
2875static inline u32 gr_gpcs_swdx_dss_zbc_color_g_r(u32 i) 2879static inline u32 gr_gpcs_swdx_dss_zbc_color_g_r(u32 i)
2876{ 2880{
2877 return 0x0041804c + i*4; 2881 return 0x0041804cU + i*4U;
2878} 2882}
2879static inline u32 gr_gpcs_swdx_dss_zbc_color_g_val_f(u32 v) 2883static inline u32 gr_gpcs_swdx_dss_zbc_color_g_val_f(u32 v)
2880{ 2884{
2881 return (v & 0xffffffff) << 0; 2885 return (v & 0xffffffffU) << 0U;
2882} 2886}
2883static inline u32 gr_gpcs_swdx_dss_zbc_color_b_r(u32 i) 2887static inline u32 gr_gpcs_swdx_dss_zbc_color_b_r(u32 i)
2884{ 2888{
2885 return 0x00418088 + i*4; 2889 return 0x00418088U + i*4U;
2886} 2890}
2887static inline u32 gr_gpcs_swdx_dss_zbc_color_b_val_f(u32 v) 2891static inline u32 gr_gpcs_swdx_dss_zbc_color_b_val_f(u32 v)
2888{ 2892{
2889 return (v & 0xffffffff) << 0; 2893 return (v & 0xffffffffU) << 0U;
2890} 2894}
2891static inline u32 gr_gpcs_swdx_dss_zbc_color_a_r(u32 i) 2895static inline u32 gr_gpcs_swdx_dss_zbc_color_a_r(u32 i)
2892{ 2896{
2893 return 0x004180c4 + i*4; 2897 return 0x004180c4U + i*4U;
2894} 2898}
2895static inline u32 gr_gpcs_swdx_dss_zbc_color_a_val_f(u32 v) 2899static inline u32 gr_gpcs_swdx_dss_zbc_color_a_val_f(u32 v)
2896{ 2900{
2897 return (v & 0xffffffff) << 0; 2901 return (v & 0xffffffffU) << 0U;
2898} 2902}
2899static inline u32 gr_gpcs_swdx_dss_zbc_c_01_to_04_format_r(void) 2903static inline u32 gr_gpcs_swdx_dss_zbc_c_01_to_04_format_r(void)
2900{ 2904{
2901 return 0x00500100; 2905 return 0x00500100U;
2902} 2906}
2903static inline u32 gr_gpcs_swdx_dss_zbc_z_r(u32 i) 2907static inline u32 gr_gpcs_swdx_dss_zbc_z_r(u32 i)
2904{ 2908{
2905 return 0x00418110 + i*4; 2909 return 0x00418110U + i*4U;
2906} 2910}
2907static inline u32 gr_gpcs_swdx_dss_zbc_z_val_f(u32 v) 2911static inline u32 gr_gpcs_swdx_dss_zbc_z_val_f(u32 v)
2908{ 2912{
2909 return (v & 0xffffffff) << 0; 2913 return (v & 0xffffffffU) << 0U;
2910} 2914}
2911static inline u32 gr_gpcs_swdx_dss_zbc_z_01_to_04_format_r(void) 2915static inline u32 gr_gpcs_swdx_dss_zbc_z_01_to_04_format_r(void)
2912{ 2916{
2913 return 0x0050014c; 2917 return 0x0050014cU;
2914} 2918}
2915static inline u32 gr_gpcs_setup_attrib_cb_base_r(void) 2919static inline u32 gr_gpcs_setup_attrib_cb_base_r(void)
2916{ 2920{
2917 return 0x00418810; 2921 return 0x00418810U;
2918} 2922}
2919static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_f(u32 v) 2923static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_f(u32 v)
2920{ 2924{
2921 return (v & 0xfffffff) << 0; 2925 return (v & 0xfffffffU) << 0U;
2922} 2926}
2923static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_align_bits_v(void) 2927static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_align_bits_v(void)
2924{ 2928{
2925 return 0x0000000c; 2929 return 0x0000000cU;
2926} 2930}
2927static inline u32 gr_gpcs_setup_attrib_cb_base_valid_true_f(void) 2931static inline u32 gr_gpcs_setup_attrib_cb_base_valid_true_f(void)
2928{ 2932{
2929 return 0x80000000; 2933 return 0x80000000U;
2930} 2934}
2931static inline u32 gr_crstr_gpc_map0_r(void) 2935static inline u32 gr_crstr_gpc_map0_r(void)
2932{ 2936{
2933 return 0x00418b08; 2937 return 0x00418b08U;
2934} 2938}
2935static inline u32 gr_crstr_gpc_map0_tile0_f(u32 v) 2939static inline u32 gr_crstr_gpc_map0_tile0_f(u32 v)
2936{ 2940{
2937 return (v & 0x7) << 0; 2941 return (v & 0x7U) << 0U;
2938} 2942}
2939static inline u32 gr_crstr_gpc_map0_tile1_f(u32 v) 2943static inline u32 gr_crstr_gpc_map0_tile1_f(u32 v)
2940{ 2944{
2941 return (v & 0x7) << 5; 2945 return (v & 0x7U) << 5U;
2942} 2946}
2943static inline u32 gr_crstr_gpc_map0_tile2_f(u32 v) 2947static inline u32 gr_crstr_gpc_map0_tile2_f(u32 v)
2944{ 2948{
2945 return (v & 0x7) << 10; 2949 return (v & 0x7U) << 10U;
2946} 2950}
2947static inline u32 gr_crstr_gpc_map0_tile3_f(u32 v) 2951static inline u32 gr_crstr_gpc_map0_tile3_f(u32 v)
2948{ 2952{
2949 return (v & 0x7) << 15; 2953 return (v & 0x7U) << 15U;
2950} 2954}
2951static inline u32 gr_crstr_gpc_map0_tile4_f(u32 v) 2955static inline u32 gr_crstr_gpc_map0_tile4_f(u32 v)
2952{ 2956{
2953 return (v & 0x7) << 20; 2957 return (v & 0x7U) << 20U;
2954} 2958}
2955static inline u32 gr_crstr_gpc_map0_tile5_f(u32 v) 2959static inline u32 gr_crstr_gpc_map0_tile5_f(u32 v)
2956{ 2960{
2957 return (v & 0x7) << 25; 2961 return (v & 0x7U) << 25U;
2958} 2962}
2959static inline u32 gr_crstr_gpc_map1_r(void) 2963static inline u32 gr_crstr_gpc_map1_r(void)
2960{ 2964{
2961 return 0x00418b0c; 2965 return 0x00418b0cU;
2962} 2966}
2963static inline u32 gr_crstr_gpc_map1_tile6_f(u32 v) 2967static inline u32 gr_crstr_gpc_map1_tile6_f(u32 v)
2964{ 2968{
2965 return (v & 0x7) << 0; 2969 return (v & 0x7U) << 0U;
2966} 2970}
2967static inline u32 gr_crstr_gpc_map1_tile7_f(u32 v) 2971static inline u32 gr_crstr_gpc_map1_tile7_f(u32 v)
2968{ 2972{
2969 return (v & 0x7) << 5; 2973 return (v & 0x7U) << 5U;
2970} 2974}
2971static inline u32 gr_crstr_gpc_map1_tile8_f(u32 v) 2975static inline u32 gr_crstr_gpc_map1_tile8_f(u32 v)
2972{ 2976{
2973 return (v & 0x7) << 10; 2977 return (v & 0x7U) << 10U;
2974} 2978}
2975static inline u32 gr_crstr_gpc_map1_tile9_f(u32 v) 2979static inline u32 gr_crstr_gpc_map1_tile9_f(u32 v)
2976{ 2980{
2977 return (v & 0x7) << 15; 2981 return (v & 0x7U) << 15U;
2978} 2982}
2979static inline u32 gr_crstr_gpc_map1_tile10_f(u32 v) 2983static inline u32 gr_crstr_gpc_map1_tile10_f(u32 v)
2980{ 2984{
2981 return (v & 0x7) << 20; 2985 return (v & 0x7U) << 20U;
2982} 2986}
2983static inline u32 gr_crstr_gpc_map1_tile11_f(u32 v) 2987static inline u32 gr_crstr_gpc_map1_tile11_f(u32 v)
2984{ 2988{
2985 return (v & 0x7) << 25; 2989 return (v & 0x7U) << 25U;
2986} 2990}
2987static inline u32 gr_crstr_gpc_map2_r(void) 2991static inline u32 gr_crstr_gpc_map2_r(void)
2988{ 2992{
2989 return 0x00418b10; 2993 return 0x00418b10U;
2990} 2994}
2991static inline u32 gr_crstr_gpc_map2_tile12_f(u32 v) 2995static inline u32 gr_crstr_gpc_map2_tile12_f(u32 v)
2992{ 2996{
2993 return (v & 0x7) << 0; 2997 return (v & 0x7U) << 0U;
2994} 2998}
2995static inline u32 gr_crstr_gpc_map2_tile13_f(u32 v) 2999static inline u32 gr_crstr_gpc_map2_tile13_f(u32 v)
2996{ 3000{
2997 return (v & 0x7) << 5; 3001 return (v & 0x7U) << 5U;
2998} 3002}
2999static inline u32 gr_crstr_gpc_map2_tile14_f(u32 v) 3003static inline u32 gr_crstr_gpc_map2_tile14_f(u32 v)
3000{ 3004{
3001 return (v & 0x7) << 10; 3005 return (v & 0x7U) << 10U;
3002} 3006}
3003static inline u32 gr_crstr_gpc_map2_tile15_f(u32 v) 3007static inline u32 gr_crstr_gpc_map2_tile15_f(u32 v)
3004{ 3008{
3005 return (v & 0x7) << 15; 3009 return (v & 0x7U) << 15U;
3006} 3010}
3007static inline u32 gr_crstr_gpc_map2_tile16_f(u32 v) 3011static inline u32 gr_crstr_gpc_map2_tile16_f(u32 v)
3008{ 3012{
3009 return (v & 0x7) << 20; 3013 return (v & 0x7U) << 20U;
3010} 3014}
3011static inline u32 gr_crstr_gpc_map2_tile17_f(u32 v) 3015static inline u32 gr_crstr_gpc_map2_tile17_f(u32 v)
3012{ 3016{
3013 return (v & 0x7) << 25; 3017 return (v & 0x7U) << 25U;
3014} 3018}
3015static inline u32 gr_crstr_gpc_map3_r(void) 3019static inline u32 gr_crstr_gpc_map3_r(void)
3016{ 3020{
3017 return 0x00418b14; 3021 return 0x00418b14U;
3018} 3022}
3019static inline u32 gr_crstr_gpc_map3_tile18_f(u32 v) 3023static inline u32 gr_crstr_gpc_map3_tile18_f(u32 v)
3020{ 3024{
3021 return (v & 0x7) << 0; 3025 return (v & 0x7U) << 0U;
3022} 3026}
3023static inline u32 gr_crstr_gpc_map3_tile19_f(u32 v) 3027static inline u32 gr_crstr_gpc_map3_tile19_f(u32 v)
3024{ 3028{
3025 return (v & 0x7) << 5; 3029 return (v & 0x7U) << 5U;
3026} 3030}
3027static inline u32 gr_crstr_gpc_map3_tile20_f(u32 v) 3031static inline u32 gr_crstr_gpc_map3_tile20_f(u32 v)
3028{ 3032{
3029 return (v & 0x7) << 10; 3033 return (v & 0x7U) << 10U;
3030} 3034}
3031static inline u32 gr_crstr_gpc_map3_tile21_f(u32 v) 3035static inline u32 gr_crstr_gpc_map3_tile21_f(u32 v)
3032{ 3036{
3033 return (v & 0x7) << 15; 3037 return (v & 0x7U) << 15U;
3034} 3038}
3035static inline u32 gr_crstr_gpc_map3_tile22_f(u32 v) 3039static inline u32 gr_crstr_gpc_map3_tile22_f(u32 v)
3036{ 3040{
3037 return (v & 0x7) << 20; 3041 return (v & 0x7U) << 20U;
3038} 3042}
3039static inline u32 gr_crstr_gpc_map3_tile23_f(u32 v) 3043static inline u32 gr_crstr_gpc_map3_tile23_f(u32 v)
3040{ 3044{
3041 return (v & 0x7) << 25; 3045 return (v & 0x7U) << 25U;
3042} 3046}
3043static inline u32 gr_crstr_gpc_map4_r(void) 3047static inline u32 gr_crstr_gpc_map4_r(void)
3044{ 3048{
3045 return 0x00418b18; 3049 return 0x00418b18U;
3046} 3050}
3047static inline u32 gr_crstr_gpc_map4_tile24_f(u32 v) 3051static inline u32 gr_crstr_gpc_map4_tile24_f(u32 v)
3048{ 3052{
3049 return (v & 0x7) << 0; 3053 return (v & 0x7U) << 0U;
3050} 3054}
3051static inline u32 gr_crstr_gpc_map4_tile25_f(u32 v) 3055static inline u32 gr_crstr_gpc_map4_tile25_f(u32 v)
3052{ 3056{
3053 return (v & 0x7) << 5; 3057 return (v & 0x7U) << 5U;
3054} 3058}
3055static inline u32 gr_crstr_gpc_map4_tile26_f(u32 v) 3059static inline u32 gr_crstr_gpc_map4_tile26_f(u32 v)
3056{ 3060{
3057 return (v & 0x7) << 10; 3061 return (v & 0x7U) << 10U;
3058} 3062}
3059static inline u32 gr_crstr_gpc_map4_tile27_f(u32 v) 3063static inline u32 gr_crstr_gpc_map4_tile27_f(u32 v)
3060{ 3064{
3061 return (v & 0x7) << 15; 3065 return (v & 0x7U) << 15U;
3062} 3066}
3063static inline u32 gr_crstr_gpc_map4_tile28_f(u32 v) 3067static inline u32 gr_crstr_gpc_map4_tile28_f(u32 v)
3064{ 3068{
3065 return (v & 0x7) << 20; 3069 return (v & 0x7U) << 20U;
3066} 3070}
3067static inline u32 gr_crstr_gpc_map4_tile29_f(u32 v) 3071static inline u32 gr_crstr_gpc_map4_tile29_f(u32 v)
3068{ 3072{
3069 return (v & 0x7) << 25; 3073 return (v & 0x7U) << 25U;
3070} 3074}
3071static inline u32 gr_crstr_gpc_map5_r(void) 3075static inline u32 gr_crstr_gpc_map5_r(void)
3072{ 3076{
3073 return 0x00418b1c; 3077 return 0x00418b1cU;
3074} 3078}
3075static inline u32 gr_crstr_gpc_map5_tile30_f(u32 v) 3079static inline u32 gr_crstr_gpc_map5_tile30_f(u32 v)
3076{ 3080{
3077 return (v & 0x7) << 0; 3081 return (v & 0x7U) << 0U;
3078} 3082}
3079static inline u32 gr_crstr_gpc_map5_tile31_f(u32 v) 3083static inline u32 gr_crstr_gpc_map5_tile31_f(u32 v)
3080{ 3084{
3081 return (v & 0x7) << 5; 3085 return (v & 0x7U) << 5U;
3082} 3086}
3083static inline u32 gr_crstr_gpc_map5_tile32_f(u32 v) 3087static inline u32 gr_crstr_gpc_map5_tile32_f(u32 v)
3084{ 3088{
3085 return (v & 0x7) << 10; 3089 return (v & 0x7U) << 10U;
3086} 3090}
3087static inline u32 gr_crstr_gpc_map5_tile33_f(u32 v) 3091static inline u32 gr_crstr_gpc_map5_tile33_f(u32 v)
3088{ 3092{
3089 return (v & 0x7) << 15; 3093 return (v & 0x7U) << 15U;
3090} 3094}
3091static inline u32 gr_crstr_gpc_map5_tile34_f(u32 v) 3095static inline u32 gr_crstr_gpc_map5_tile34_f(u32 v)
3092{ 3096{
3093 return (v & 0x7) << 20; 3097 return (v & 0x7U) << 20U;
3094} 3098}
3095static inline u32 gr_crstr_gpc_map5_tile35_f(u32 v) 3099static inline u32 gr_crstr_gpc_map5_tile35_f(u32 v)
3096{ 3100{
3097 return (v & 0x7) << 25; 3101 return (v & 0x7U) << 25U;
3098} 3102}
3099static inline u32 gr_crstr_map_table_cfg_r(void) 3103static inline u32 gr_crstr_map_table_cfg_r(void)
3100{ 3104{
3101 return 0x00418bb8; 3105 return 0x00418bb8U;
3102} 3106}
3103static inline u32 gr_crstr_map_table_cfg_row_offset_f(u32 v) 3107static inline u32 gr_crstr_map_table_cfg_row_offset_f(u32 v)
3104{ 3108{
3105 return (v & 0xff) << 0; 3109 return (v & 0xffU) << 0U;
3106} 3110}
3107static inline u32 gr_crstr_map_table_cfg_num_entries_f(u32 v) 3111static inline u32 gr_crstr_map_table_cfg_num_entries_f(u32 v)
3108{ 3112{
3109 return (v & 0xff) << 8; 3113 return (v & 0xffU) << 8U;
3110} 3114}
3111static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_r(void) 3115static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_r(void)
3112{ 3116{
3113 return 0x00418980; 3117 return 0x00418980U;
3114} 3118}
3115static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_0_f(u32 v) 3119static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_0_f(u32 v)
3116{ 3120{
3117 return (v & 0x7) << 0; 3121 return (v & 0x7U) << 0U;
3118} 3122}
3119static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_1_f(u32 v) 3123static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_1_f(u32 v)
3120{ 3124{
3121 return (v & 0x7) << 4; 3125 return (v & 0x7U) << 4U;
3122} 3126}
3123static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_2_f(u32 v) 3127static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_2_f(u32 v)
3124{ 3128{
3125 return (v & 0x7) << 8; 3129 return (v & 0x7U) << 8U;
3126} 3130}
3127static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_3_f(u32 v) 3131static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_3_f(u32 v)
3128{ 3132{
3129 return (v & 0x7) << 12; 3133 return (v & 0x7U) << 12U;
3130} 3134}
3131static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_4_f(u32 v) 3135static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_4_f(u32 v)
3132{ 3136{
3133 return (v & 0x7) << 16; 3137 return (v & 0x7U) << 16U;
3134} 3138}
3135static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_5_f(u32 v) 3139static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_5_f(u32 v)
3136{ 3140{
3137 return (v & 0x7) << 20; 3141 return (v & 0x7U) << 20U;
3138} 3142}
3139static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_6_f(u32 v) 3143static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_6_f(u32 v)
3140{ 3144{
3141 return (v & 0x7) << 24; 3145 return (v & 0x7U) << 24U;
3142} 3146}
3143static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_7_f(u32 v) 3147static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map0_tile_7_f(u32 v)
3144{ 3148{
3145 return (v & 0x7) << 28; 3149 return (v & 0x7U) << 28U;
3146} 3150}
3147static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_r(void) 3151static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_r(void)
3148{ 3152{
3149 return 0x00418984; 3153 return 0x00418984U;
3150} 3154}
3151static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_8_f(u32 v) 3155static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_8_f(u32 v)
3152{ 3156{
3153 return (v & 0x7) << 0; 3157 return (v & 0x7U) << 0U;
3154} 3158}
3155static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_9_f(u32 v) 3159static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_9_f(u32 v)
3156{ 3160{
3157 return (v & 0x7) << 4; 3161 return (v & 0x7U) << 4U;
3158} 3162}
3159static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_10_f(u32 v) 3163static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_10_f(u32 v)
3160{ 3164{
3161 return (v & 0x7) << 8; 3165 return (v & 0x7U) << 8U;
3162} 3166}
3163static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_11_f(u32 v) 3167static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_11_f(u32 v)
3164{ 3168{
3165 return (v & 0x7) << 12; 3169 return (v & 0x7U) << 12U;
3166} 3170}
3167static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_12_f(u32 v) 3171static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_12_f(u32 v)
3168{ 3172{
3169 return (v & 0x7) << 16; 3173 return (v & 0x7U) << 16U;
3170} 3174}
3171static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_13_f(u32 v) 3175static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_13_f(u32 v)
3172{ 3176{
3173 return (v & 0x7) << 20; 3177 return (v & 0x7U) << 20U;
3174} 3178}
3175static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_14_f(u32 v) 3179static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_14_f(u32 v)
3176{ 3180{
3177 return (v & 0x7) << 24; 3181 return (v & 0x7U) << 24U;
3178} 3182}
3179static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_15_f(u32 v) 3183static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map1_tile_15_f(u32 v)
3180{ 3184{
3181 return (v & 0x7) << 28; 3185 return (v & 0x7U) << 28U;
3182} 3186}
3183static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_r(void) 3187static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_r(void)
3184{ 3188{
3185 return 0x00418988; 3189 return 0x00418988U;
3186} 3190}
3187static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_16_f(u32 v) 3191static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_16_f(u32 v)
3188{ 3192{
3189 return (v & 0x7) << 0; 3193 return (v & 0x7U) << 0U;
3190} 3194}
3191static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_17_f(u32 v) 3195static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_17_f(u32 v)
3192{ 3196{
3193 return (v & 0x7) << 4; 3197 return (v & 0x7U) << 4U;
3194} 3198}
3195static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_18_f(u32 v) 3199static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_18_f(u32 v)
3196{ 3200{
3197 return (v & 0x7) << 8; 3201 return (v & 0x7U) << 8U;
3198} 3202}
3199static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_19_f(u32 v) 3203static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_19_f(u32 v)
3200{ 3204{
3201 return (v & 0x7) << 12; 3205 return (v & 0x7U) << 12U;
3202} 3206}
3203static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_20_f(u32 v) 3207static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_20_f(u32 v)
3204{ 3208{
3205 return (v & 0x7) << 16; 3209 return (v & 0x7U) << 16U;
3206} 3210}
3207static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_21_f(u32 v) 3211static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_21_f(u32 v)
3208{ 3212{
3209 return (v & 0x7) << 20; 3213 return (v & 0x7U) << 20U;
3210} 3214}
3211static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_22_f(u32 v) 3215static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_22_f(u32 v)
3212{ 3216{
3213 return (v & 0x7) << 24; 3217 return (v & 0x7U) << 24U;
3214} 3218}
3215static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_s(void) 3219static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_s(void)
3216{ 3220{
3217 return 3; 3221 return 3U;
3218} 3222}
3219static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_f(u32 v) 3223static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_f(u32 v)
3220{ 3224{
3221 return (v & 0x7) << 28; 3225 return (v & 0x7U) << 28U;
3222} 3226}
3223static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_m(void) 3227static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_m(void)
3224{ 3228{
3225 return 0x7 << 28; 3229 return 0x7U << 28U;
3226} 3230}
3227static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_v(u32 r) 3231static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map2_tile_23_v(u32 r)
3228{ 3232{
3229 return (r >> 28) & 0x7; 3233 return (r >> 28U) & 0x7U;
3230} 3234}
3231static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_r(void) 3235static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_r(void)
3232{ 3236{
3233 return 0x0041898c; 3237 return 0x0041898cU;
3234} 3238}
3235static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_24_f(u32 v) 3239static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_24_f(u32 v)
3236{ 3240{
3237 return (v & 0x7) << 0; 3241 return (v & 0x7U) << 0U;
3238} 3242}
3239static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_25_f(u32 v) 3243static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_25_f(u32 v)
3240{ 3244{
3241 return (v & 0x7) << 4; 3245 return (v & 0x7U) << 4U;
3242} 3246}
3243static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_26_f(u32 v) 3247static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_26_f(u32 v)
3244{ 3248{
3245 return (v & 0x7) << 8; 3249 return (v & 0x7U) << 8U;
3246} 3250}
3247static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_27_f(u32 v) 3251static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_27_f(u32 v)
3248{ 3252{
3249 return (v & 0x7) << 12; 3253 return (v & 0x7U) << 12U;
3250} 3254}
3251static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_28_f(u32 v) 3255static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_28_f(u32 v)
3252{ 3256{
3253 return (v & 0x7) << 16; 3257 return (v & 0x7U) << 16U;
3254} 3258}
3255static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_29_f(u32 v) 3259static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_29_f(u32 v)
3256{ 3260{
3257 return (v & 0x7) << 20; 3261 return (v & 0x7U) << 20U;
3258} 3262}
3259static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_30_f(u32 v) 3263static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_30_f(u32 v)
3260{ 3264{
3261 return (v & 0x7) << 24; 3265 return (v & 0x7U) << 24U;
3262} 3266}
3263static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_31_f(u32 v) 3267static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map3_tile_31_f(u32 v)
3264{ 3268{
3265 return (v & 0x7) << 28; 3269 return (v & 0x7U) << 28U;
3266} 3270}
3267static inline u32 gr_gpcs_gpm_pd_cfg_r(void) 3271static inline u32 gr_gpcs_gpm_pd_cfg_r(void)
3268{ 3272{
3269 return 0x00418c6c; 3273 return 0x00418c6cU;
3270} 3274}
3271static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_disable_f(void) 3275static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_disable_f(void)
3272{ 3276{
3273 return 0x0; 3277 return 0x0U;
3274} 3278}
3275static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_enable_f(void) 3279static inline u32 gr_gpcs_gpm_pd_cfg_timeslice_mode_enable_f(void)
3276{ 3280{
3277 return 0x1; 3281 return 0x1U;
3278} 3282}
3279static inline u32 gr_gpcs_gcc_pagepool_base_r(void) 3283static inline u32 gr_gpcs_gcc_pagepool_base_r(void)
3280{ 3284{
3281 return 0x00419004; 3285 return 0x00419004U;
3282} 3286}
3283static inline u32 gr_gpcs_gcc_pagepool_base_addr_39_8_f(u32 v) 3287static inline u32 gr_gpcs_gcc_pagepool_base_addr_39_8_f(u32 v)
3284{ 3288{
3285 return (v & 0xffffffff) << 0; 3289 return (v & 0xffffffffU) << 0U;
3286} 3290}
3287static inline u32 gr_gpcs_gcc_pagepool_r(void) 3291static inline u32 gr_gpcs_gcc_pagepool_r(void)
3288{ 3292{
3289 return 0x00419008; 3293 return 0x00419008U;
3290} 3294}
3291static inline u32 gr_gpcs_gcc_pagepool_total_pages_f(u32 v) 3295static inline u32 gr_gpcs_gcc_pagepool_total_pages_f(u32 v)
3292{ 3296{
3293 return (v & 0x3ff) << 0; 3297 return (v & 0x3ffU) << 0U;
3294} 3298}
3295static inline u32 gr_gpcs_tpcs_pe_vaf_r(void) 3299static inline u32 gr_gpcs_tpcs_pe_vaf_r(void)
3296{ 3300{
3297 return 0x0041980c; 3301 return 0x0041980cU;
3298} 3302}
3299static inline u32 gr_gpcs_tpcs_pe_vaf_fast_mode_switch_true_f(void) 3303static inline u32 gr_gpcs_tpcs_pe_vaf_fast_mode_switch_true_f(void)
3300{ 3304{
3301 return 0x10; 3305 return 0x10U;
3302} 3306}
3303static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_r(void) 3307static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_r(void)
3304{ 3308{
3305 return 0x00419848; 3309 return 0x00419848U;
3306} 3310}
3307static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_v_f(u32 v) 3311static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_v_f(u32 v)
3308{ 3312{
3309 return (v & 0xfffffff) << 0; 3313 return (v & 0xfffffffU) << 0U;
3310} 3314}
3311static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_f(u32 v) 3315static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_f(u32 v)
3312{ 3316{
3313 return (v & 0x1) << 28; 3317 return (v & 0x1U) << 28U;
3314} 3318}
3315static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_true_f(void) 3319static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_true_f(void)
3316{ 3320{
3317 return 0x10000000; 3321 return 0x10000000U;
3318} 3322}
3319static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_r(void) 3323static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_r(void)
3320{ 3324{
3321 return 0x00419c00; 3325 return 0x00419c00U;
3322} 3326}
3323static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_disabled_f(void) 3327static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_disabled_f(void)
3324{ 3328{
3325 return 0x0; 3329 return 0x0U;
3326} 3330}
3327static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_enabled_f(void) 3331static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_enabled_f(void)
3328{ 3332{
3329 return 0x8; 3333 return 0x8U;
3330} 3334}
3331static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_r(void) 3335static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_r(void)
3332{ 3336{
3333 return 0x00419c2c; 3337 return 0x00419c2cU;
3334} 3338}
3335static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_v_f(u32 v) 3339static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_v_f(u32 v)
3336{ 3340{
3337 return (v & 0xfffffff) << 0; 3341 return (v & 0xfffffffU) << 0U;
3338} 3342}
3339static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_f(u32 v) 3343static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_f(u32 v)
3340{ 3344{
3341 return (v & 0x1) << 28; 3345 return (v & 0x1U) << 28U;
3342} 3346}
3343static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_true_f(void) 3347static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_true_f(void)
3344{ 3348{
3345 return 0x10000000; 3349 return 0x10000000U;
3346} 3350}
3347static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_r(void) 3351static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_r(void)
3348{ 3352{
3349 return 0x00419e44; 3353 return 0x00419e44U;
3350} 3354}
3351static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_stack_error_report_f(void) 3355static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_stack_error_report_f(void)
3352{ 3356{
3353 return 0x2; 3357 return 0x2U;
3354} 3358}
3355static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_api_stack_error_report_f(void) 3359static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_api_stack_error_report_f(void)
3356{ 3360{
3357 return 0x4; 3361 return 0x4U;
3358} 3362}
3359static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_ret_empty_stack_error_report_f(void) 3363static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_ret_empty_stack_error_report_f(void)
3360{ 3364{
3361 return 0x8; 3365 return 0x8U;
3362} 3366}
3363static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_wrap_report_f(void) 3367static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_wrap_report_f(void)
3364{ 3368{
3365 return 0x10; 3369 return 0x10U;
3366} 3370}
3367static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_pc_report_f(void) 3371static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_pc_report_f(void)
3368{ 3372{
3369 return 0x20; 3373 return 0x20U;
3370} 3374}
3371static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_overflow_report_f(void) 3375static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_pc_overflow_report_f(void)
3372{ 3376{
3373 return 0x40; 3377 return 0x40U;
3374} 3378}
3375static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_immc_addr_report_f(void) 3379static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_immc_addr_report_f(void)
3376{ 3380{
3377 return 0x80; 3381 return 0x80U;
3378} 3382}
3379static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_reg_report_f(void) 3383static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_reg_report_f(void)
3380{ 3384{
3381 return 0x100; 3385 return 0x100U;
3382} 3386}
3383static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_encoding_report_f(void) 3387static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_encoding_report_f(void)
3384{ 3388{
3385 return 0x200; 3389 return 0x200U;
3386} 3390}
3387static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_sph_instr_combo_report_f(void) 3391static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_sph_instr_combo_report_f(void)
3388{ 3392{
3389 return 0x400; 3393 return 0x400U;
3390} 3394}
3391static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param_report_f(void) 3395static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param_report_f(void)
3392{ 3396{
3393 return 0x800; 3397 return 0x800U;
3394} 3398}
3395static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_report_f(void) 3399static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_report_f(void)
3396{ 3400{
3397 return 0x1000; 3401 return 0x1000U;
3398} 3402}
3399static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_reg_report_f(void) 3403static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_reg_report_f(void)
3400{ 3404{
3401 return 0x2000; 3405 return 0x2000U;
3402} 3406}
3403static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_addr_report_f(void) 3407static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_oor_addr_report_f(void)
3404{ 3408{
3405 return 0x4000; 3409 return 0x4000U;
3406} 3410}
3407static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_addr_report_f(void) 3411static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_misaligned_addr_report_f(void)
3408{ 3412{
3409 return 0x8000; 3413 return 0x8000U;
3410} 3414}
3411static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_addr_space_report_f(void) 3415static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_addr_space_report_f(void)
3412{ 3416{
3413 return 0x10000; 3417 return 0x10000U;
3414} 3418}
3415static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param2_report_f(void) 3419static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_illegal_instr_param2_report_f(void)
3416{ 3420{
3417 return 0x20000; 3421 return 0x20000U;
3418} 3422}
3419static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_ldc_report_f(void) 3423static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_invalid_const_addr_ldc_report_f(void)
3420{ 3424{
3421 return 0x40000; 3425 return 0x40000U;
3422} 3426}
3423static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_mmu_fault_report_f(void) 3427static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_mmu_fault_report_f(void)
3424{ 3428{
3425 return 0x800000; 3429 return 0x800000U;
3426} 3430}
3427static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_stack_overflow_report_f(void) 3431static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_stack_overflow_report_f(void)
3428{ 3432{
3429 return 0x400000; 3433 return 0x400000U;
3430} 3434}
3431static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_geometry_sm_error_report_f(void) 3435static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_geometry_sm_error_report_f(void)
3432{ 3436{
3433 return 0x80000; 3437 return 0x80000U;
3434} 3438}
3435static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_divergent_report_f(void) 3439static inline u32 gr_gpcs_tpcs_sm_hww_warp_esr_report_mask_divergent_report_f(void)
3436{ 3440{
3437 return 0x100000; 3441 return 0x100000U;
3438} 3442}
3439static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_report_mask_r(void) 3443static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_report_mask_r(void)
3440{ 3444{
3441 return 0x00504644; 3445 return 0x00504644U;
3442} 3446}
3443static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_r(void) 3447static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_r(void)
3444{ 3448{
3445 return 0x00419e4c; 3449 return 0x00419e4cU;
3446} 3450}
3447static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_sm_to_sm_fault_report_f(void) 3451static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_sm_to_sm_fault_report_f(void)
3448{ 3452{
3449 return 0x1; 3453 return 0x1U;
3450} 3454}
3451static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_l1_error_report_f(void) 3455static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_l1_error_report_f(void)
3452{ 3456{
3453 return 0x2; 3457 return 0x2U;
3454} 3458}
3455static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_multiple_warp_errors_report_f(void) 3459static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_multiple_warp_errors_report_f(void)
3456{ 3460{
3457 return 0x4; 3461 return 0x4U;
3458} 3462}
3459static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_physical_stack_overflow_error_report_f(void) 3463static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_physical_stack_overflow_error_report_f(void)
3460{ 3464{
3461 return 0x8; 3465 return 0x8U;
3462} 3466}
3463static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_int_report_f(void) 3467static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_int_report_f(void)
3464{ 3468{
3465 return 0x10; 3469 return 0x10U;
3466} 3470}
3467static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_ecc_sec_error_report_f(void) 3471static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_ecc_sec_error_report_f(void)
3468{ 3472{
3469 return 0x20000000; 3473 return 0x20000000U;
3470} 3474}
3471static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_ecc_ded_error_report_f(void) 3475static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_ecc_ded_error_report_f(void)
3472{ 3476{
3473 return 0x40000000; 3477 return 0x40000000U;
3474} 3478}
3475static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_pause_report_f(void) 3479static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_bpt_pause_report_f(void)
3476{ 3480{
3477 return 0x20; 3481 return 0x20U;
3478} 3482}
3479static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_single_step_complete_report_f(void) 3483static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_report_mask_single_step_complete_report_f(void)
3480{ 3484{
3481 return 0x40; 3485 return 0x40U;
3482} 3486}
3483static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_report_mask_r(void) 3487static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_report_mask_r(void)
3484{ 3488{
3485 return 0x0050464c; 3489 return 0x0050464cU;
3486} 3490}
3487static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_r(void) 3491static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_r(void)
3488{ 3492{
3489 return 0x00419d0c; 3493 return 0x00419d0cU;
3490} 3494}
3491static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_sm_enabled_f(void) 3495static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_sm_enabled_f(void)
3492{ 3496{
3493 return 0x2; 3497 return 0x2U;
3494} 3498}
3495static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_tex_enabled_f(void) 3499static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_tex_enabled_f(void)
3496{ 3500{
3497 return 0x1; 3501 return 0x1U;
3498} 3502}
3499static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void) 3503static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void)
3500{ 3504{
3501 return 0x0050450c; 3505 return 0x0050450cU;
3502} 3506}
3503static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_v(u32 r) 3507static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_v(u32 r)
3504{ 3508{
3505 return (r >> 1) & 0x1; 3509 return (r >> 1U) & 0x1U;
3506} 3510}
3507static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_enabled_f(void) 3511static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_enabled_f(void)
3508{ 3512{
3509 return 0x2; 3513 return 0x2U;
3510} 3514}
3511static inline u32 gr_gpcs_gpccs_gpc_exception_en_r(void) 3515static inline u32 gr_gpcs_gpccs_gpc_exception_en_r(void)
3512{ 3516{
3513 return 0x0041ac94; 3517 return 0x0041ac94U;
3514} 3518}
3515static inline u32 gr_gpcs_gpccs_gpc_exception_en_tpc_f(u32 v) 3519static inline u32 gr_gpcs_gpccs_gpc_exception_en_tpc_f(u32 v)
3516{ 3520{
3517 return (v & 0xff) << 16; 3521 return (v & 0xffU) << 16U;
3518} 3522}
3519static inline u32 gr_gpc0_gpccs_gpc_exception_r(void) 3523static inline u32 gr_gpc0_gpccs_gpc_exception_r(void)
3520{ 3524{
3521 return 0x00502c90; 3525 return 0x00502c90U;
3522} 3526}
3523static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r) 3527static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r)
3524{ 3528{
3525 return (r >> 2) & 0x1; 3529 return (r >> 2U) & 0x1U;
3526} 3530}
3527static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r) 3531static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r)
3528{ 3532{
3529 return (r >> 16) & 0xff; 3533 return (r >> 16U) & 0xffU;
3530} 3534}
3531static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_0_pending_v(void) 3535static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_0_pending_v(void)
3532{ 3536{
3533 return 0x00000001; 3537 return 0x00000001U;
3534} 3538}
3535static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_r(void) 3539static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_r(void)
3536{ 3540{
3537 return 0x00504508; 3541 return 0x00504508U;
3538} 3542}
3539static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_v(u32 r) 3543static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_v(u32 r)
3540{ 3544{
3541 return (r >> 0) & 0x1; 3545 return (r >> 0U) & 0x1U;
3542} 3546}
3543static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_pending_v(void) 3547static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_pending_v(void)
3544{ 3548{
3545 return 0x00000001; 3549 return 0x00000001U;
3546} 3550}
3547static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_v(u32 r) 3551static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_v(u32 r)
3548{ 3552{
3549 return (r >> 1) & 0x1; 3553 return (r >> 1U) & 0x1U;
3550} 3554}
3551static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_pending_v(void) 3555static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_pending_v(void)
3552{ 3556{
3553 return 0x00000001; 3557 return 0x00000001U;
3554} 3558}
3555static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_r(void) 3559static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_r(void)
3556{ 3560{
3557 return 0x00504610; 3561 return 0x00504610U;
3558} 3562}
3559static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_m(void) 3563static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_m(void)
3560{ 3564{
3561 return 0x1 << 0; 3565 return 0x1U << 0U;
3562} 3566}
3563static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_v(u32 r) 3567static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_v(u32 r)
3564{ 3568{
3565 return (r >> 0) & 0x1; 3569 return (r >> 0U) & 0x1U;
3566} 3570}
3567static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_on_v(void) 3571static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_on_v(void)
3568{ 3572{
3569 return 0x00000001; 3573 return 0x00000001U;
3570} 3574}
3571static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_off_v(void) 3575static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_debugger_mode_off_v(void)
3572{ 3576{
3573 return 0x00000000; 3577 return 0x00000000U;
3574} 3578}
3575static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_enable_f(void) 3579static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_enable_f(void)
3576{ 3580{
3577 return 0x80000000; 3581 return 0x80000000U;
3578} 3582}
3579static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_disable_f(void) 3583static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_disable_f(void)
3580{ 3584{
3581 return 0x0; 3585 return 0x0U;
3582} 3586}
3583static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_single_step_mode_enable_f(void) 3587static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_single_step_mode_enable_f(void)
3584{ 3588{
3585 return 0x8; 3589 return 0x8U;
3586} 3590}
3587static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_single_step_mode_disable_f(void) 3591static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_single_step_mode_disable_f(void)
3588{ 3592{
3589 return 0x0; 3593 return 0x0U;
3590} 3594}
3591static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_run_trigger_task_f(void) 3595static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_run_trigger_task_f(void)
3592{ 3596{
3593 return 0x40000000; 3597 return 0x40000000U;
3594} 3598}
3595static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_m(void) 3599static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_m(void)
3596{ 3600{
3597 return 0x1 << 1; 3601 return 0x1U << 1U;
3598} 3602}
3599static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_v(u32 r) 3603static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_v(u32 r)
3600{ 3604{
3601 return (r >> 1) & 0x1; 3605 return (r >> 1U) & 0x1U;
3602} 3606}
3603static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_disable_f(void) 3607static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_warp_disable_f(void)
3604{ 3608{
3605 return 0x0; 3609 return 0x0U;
3606} 3610}
3607static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_m(void) 3611static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_m(void)
3608{ 3612{
3609 return 0x1 << 2; 3613 return 0x1U << 2U;
3610} 3614}
3611static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_v(u32 r) 3615static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_v(u32 r)
3612{ 3616{
3613 return (r >> 2) & 0x1; 3617 return (r >> 2U) & 0x1U;
3614} 3618}
3615static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_disable_f(void) 3619static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_disable_f(void)
3616{ 3620{
3617 return 0x0; 3621 return 0x0U;
3618} 3622}
3619static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_stop_on_any_warp_disable_v(void) 3623static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_stop_on_any_warp_disable_v(void)
3620{ 3624{
3621 return 0x00000000; 3625 return 0x00000000U;
3622} 3626}
3623static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_stop_on_any_sm_disable_v(void) 3627static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_on_any_sm_stop_on_any_sm_disable_v(void)
3624{ 3628{
3625 return 0x00000000; 3629 return 0x00000000U;
3626} 3630}
3627static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_r(void) 3631static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_r(void)
3628{ 3632{
3629 return 0x00504614; 3633 return 0x00504614U;
3630} 3634}
3631static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_1_r(void) 3635static inline u32 gr_gpc0_tpc0_sm_warp_valid_mask_1_r(void)
3632{ 3636{
3633 return 0x00504618; 3637 return 0x00504618U;
3634} 3638}
3635static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_r(void) 3639static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_r(void)
3636{ 3640{
3637 return 0x00504624; 3641 return 0x00504624U;
3638} 3642}
3639static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_1_r(void) 3643static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_pause_mask_1_r(void)
3640{ 3644{
3641 return 0x00504628; 3645 return 0x00504628U;
3642} 3646}
3643static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_r(void) 3647static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_r(void)
3644{ 3648{
3645 return 0x00504634; 3649 return 0x00504634U;
3646} 3650}
3647static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_1_r(void) 3651static inline u32 gr_gpc0_tpc0_sm_dbgr_bpt_trap_mask_1_r(void)
3648{ 3652{
3649 return 0x00504638; 3653 return 0x00504638U;
3650} 3654}
3651static inline u32 gr_gpcs_tpcs_sm_dbgr_bpt_pause_mask_r(void) 3655static inline u32 gr_gpcs_tpcs_sm_dbgr_bpt_pause_mask_r(void)
3652{ 3656{
3653 return 0x00419e24; 3657 return 0x00419e24U;
3654} 3658}
3655static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_r(void) 3659static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_r(void)
3656{ 3660{
3657 return 0x0050460c; 3661 return 0x0050460cU;
3658} 3662}
3659static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_sm_in_trap_mode_v(u32 r) 3663static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_sm_in_trap_mode_v(u32 r)
3660{ 3664{
3661 return (r >> 0) & 0x1; 3665 return (r >> 0U) & 0x1U;
3662} 3666}
3663static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_v(u32 r) 3667static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_v(u32 r)
3664{ 3668{
3665 return (r >> 4) & 0x1; 3669 return (r >> 4U) & 0x1U;
3666} 3670}
3667static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_true_v(void) 3671static inline u32 gr_gpc0_tpc0_sm_dbgr_status0_locked_down_true_v(void)
3668{ 3672{
3669 return 0x00000001; 3673 return 0x00000001U;
3670} 3674}
3671static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_r(void) 3675static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_r(void)
3672{ 3676{
3673 return 0x00419e50; 3677 return 0x00419e50U;
3674} 3678}
3675static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_int_pending_f(void) 3679static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_int_pending_f(void)
3676{ 3680{
3677 return 0x10; 3681 return 0x10U;
3678} 3682}
3679static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_pause_pending_f(void) 3683static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_bpt_pause_pending_f(void)
3680{ 3684{
3681 return 0x20; 3685 return 0x20U;
3682} 3686}
3683static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_single_step_complete_pending_f(void) 3687static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_single_step_complete_pending_f(void)
3684{ 3688{
3685 return 0x40; 3689 return 0x40U;
3686} 3690}
3687static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_sm_to_sm_fault_pending_f(void) 3691static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_sm_to_sm_fault_pending_f(void)
3688{ 3692{
3689 return 0x1; 3693 return 0x1U;
3690} 3694}
3691static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_l1_error_pending_f(void) 3695static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_l1_error_pending_f(void)
3692{ 3696{
3693 return 0x2; 3697 return 0x2U;
3694} 3698}
3695static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_multiple_warp_errors_pending_f(void) 3699static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_multiple_warp_errors_pending_f(void)
3696{ 3700{
3697 return 0x4; 3701 return 0x4U;
3698} 3702}
3699static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_physical_stack_overflow_error_pending_f(void) 3703static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_physical_stack_overflow_error_pending_f(void)
3700{ 3704{
3701 return 0x8; 3705 return 0x8U;
3702} 3706}
3703static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_timeout_error_pending_f(void) 3707static inline u32 gr_gpcs_tpcs_sm_hww_global_esr_timeout_error_pending_f(void)
3704{ 3708{
3705 return 0x80000000; 3709 return 0x80000000U;
3706} 3710}
3707static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_r(void) 3711static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_r(void)
3708{ 3712{
3709 return 0x00504650; 3713 return 0x00504650U;
3710} 3714}
3711static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_int_pending_f(void) 3715static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_int_pending_f(void)
3712{ 3716{
3713 return 0x10; 3717 return 0x10U;
3714} 3718}
3715static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_ecc_sec_error_pending_f(void) 3719static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_ecc_sec_error_pending_f(void)
3716{ 3720{
3717 return 0x20000000; 3721 return 0x20000000U;
3718} 3722}
3719static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_ecc_ded_error_pending_f(void) 3723static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_ecc_ded_error_pending_f(void)
3720{ 3724{
3721 return 0x40000000; 3725 return 0x40000000U;
3722} 3726}
3723static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_pause_pending_f(void) 3727static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_bpt_pause_pending_f(void)
3724{ 3728{
3725 return 0x20; 3729 return 0x20U;
3726} 3730}
3727static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_single_step_complete_pending_f(void) 3731static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_single_step_complete_pending_f(void)
3728{ 3732{
3729 return 0x40; 3733 return 0x40U;
3730} 3734}
3731static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_sm_to_sm_fault_pending_f(void) 3735static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_sm_to_sm_fault_pending_f(void)
3732{ 3736{
3733 return 0x1; 3737 return 0x1U;
3734} 3738}
3735static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_l1_error_pending_f(void) 3739static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_l1_error_pending_f(void)
3736{ 3740{
3737 return 0x2; 3741 return 0x2U;
3738} 3742}
3739static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_multiple_warp_errors_pending_f(void) 3743static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_multiple_warp_errors_pending_f(void)
3740{ 3744{
3741 return 0x4; 3745 return 0x4U;
3742} 3746}
3743static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_physical_stack_overflow_error_pending_f(void) 3747static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_physical_stack_overflow_error_pending_f(void)
3744{ 3748{
3745 return 0x8; 3749 return 0x8U;
3746} 3750}
3747static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_timeout_error_pending_f(void) 3751static inline u32 gr_gpc0_tpc0_sm_hww_global_esr_timeout_error_pending_f(void)
3748{ 3752{
3749 return 0x80000000; 3753 return 0x80000000U;
3750} 3754}
3751static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_r(void) 3755static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_r(void)
3752{ 3756{
3753 return 0x00504224; 3757 return 0x00504224U;
3754} 3758}
3755static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_intr_pending_f(void) 3759static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_intr_pending_f(void)
3756{ 3760{
3757 return 0x1; 3761 return 0x1U;
3758} 3762}
3759static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_ecc_sec_pending_f(void) 3763static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_ecc_sec_pending_f(void)
3760{ 3764{
3761 return 0x80; 3765 return 0x80U;
3762} 3766}
3763static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_ecc_ded_pending_f(void) 3767static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_ecc_ded_pending_f(void)
3764{ 3768{
3765 return 0x100; 3769 return 0x100U;
3766} 3770}
3767static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_reset_active_f(void) 3771static inline u32 gr_gpc0_tpc0_tex_m_hww_esr_reset_active_f(void)
3768{ 3772{
3769 return 0x40000000; 3773 return 0x40000000U;
3770} 3774}
3771static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_r(void) 3775static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_r(void)
3772{ 3776{
3773 return 0x00504648; 3777 return 0x00504648U;
3774} 3778}
3775static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_v(u32 r) 3779static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_v(u32 r)
3776{ 3780{
3777 return (r >> 0) & 0xffff; 3781 return (r >> 0U) & 0xffffU;
3778} 3782}
3779static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_v(void) 3783static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_v(void)
3780{ 3784{
3781 return 0x00000000; 3785 return 0x00000000U;
3782} 3786}
3783static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_f(void) 3787static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_error_none_f(void)
3784{ 3788{
3785 return 0x0; 3789 return 0x0U;
3786} 3790}
3787static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_addr_valid_m(void) 3791static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_addr_valid_m(void)
3788{ 3792{
3789 return 0x1 << 24; 3793 return 0x1U << 24U;
3790} 3794}
3791static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_addr_error_type_m(void) 3795static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_addr_error_type_m(void)
3792{ 3796{
3793 return 0x7 << 25; 3797 return 0x7U << 25U;
3794} 3798}
3795static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_addr_error_type_none_f(void) 3799static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_addr_error_type_none_f(void)
3796{ 3800{
3797 return 0x0; 3801 return 0x0U;
3798} 3802}
3799static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_pc_r(void) 3803static inline u32 gr_gpc0_tpc0_sm_hww_warp_esr_pc_r(void)
3800{ 3804{
3801 return 0x00504654; 3805 return 0x00504654U;
3802} 3806}
3803static inline u32 gr_gpc0_tpc0_sm_halfctl_ctrl_r(void) 3807static inline u32 gr_gpc0_tpc0_sm_halfctl_ctrl_r(void)
3804{ 3808{
3805 return 0x00504770; 3809 return 0x00504770U;
3806} 3810}
3807static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_r(void) 3811static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_r(void)
3808{ 3812{
3809 return 0x00419f70; 3813 return 0x00419f70U;
3810} 3814}
3811static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_m(void) 3815static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_m(void)
3812{ 3816{
3813 return 0x1 << 4; 3817 return 0x1U << 4U;
3814} 3818}
3815static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_f(u32 v) 3819static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_f(u32 v)
3816{ 3820{
3817 return (v & 0x1) << 4; 3821 return (v & 0x1U) << 4U;
3818} 3822}
3819static inline u32 gr_gpc0_tpc0_sm_debug_sfe_control_r(void) 3823static inline u32 gr_gpc0_tpc0_sm_debug_sfe_control_r(void)
3820{ 3824{
3821 return 0x0050477c; 3825 return 0x0050477cU;
3822} 3826}
3823static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_r(void) 3827static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_r(void)
3824{ 3828{
3825 return 0x00419f7c; 3829 return 0x00419f7cU;
3826} 3830}
3827static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_m(void) 3831static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_m(void)
3828{ 3832{
3829 return 0x1 << 0; 3833 return 0x1U << 0U;
3830} 3834}
3831static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_f(u32 v) 3835static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_f(u32 v)
3832{ 3836{
3833 return (v & 0x1) << 0; 3837 return (v & 0x1U) << 0U;
3834} 3838}
3835static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_r(void) 3839static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_r(void)
3836{ 3840{
3837 return 0x0041be08; 3841 return 0x0041be08U;
3838} 3842}
3839static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_fast_mode_switch_true_f(void) 3843static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_fast_mode_switch_true_f(void)
3840{ 3844{
3841 return 0x4; 3845 return 0x4U;
3842} 3846}
3843static inline u32 gr_ppcs_wwdx_map_gpc_map0_r(void) 3847static inline u32 gr_ppcs_wwdx_map_gpc_map0_r(void)
3844{ 3848{
3845 return 0x0041bf00; 3849 return 0x0041bf00U;
3846} 3850}
3847static inline u32 gr_ppcs_wwdx_map_gpc_map1_r(void) 3851static inline u32 gr_ppcs_wwdx_map_gpc_map1_r(void)
3848{ 3852{
3849 return 0x0041bf04; 3853 return 0x0041bf04U;
3850} 3854}
3851static inline u32 gr_ppcs_wwdx_map_gpc_map2_r(void) 3855static inline u32 gr_ppcs_wwdx_map_gpc_map2_r(void)
3852{ 3856{
3853 return 0x0041bf08; 3857 return 0x0041bf08U;
3854} 3858}
3855static inline u32 gr_ppcs_wwdx_map_gpc_map3_r(void) 3859static inline u32 gr_ppcs_wwdx_map_gpc_map3_r(void)
3856{ 3860{
3857 return 0x0041bf0c; 3861 return 0x0041bf0cU;
3858} 3862}
3859static inline u32 gr_ppcs_wwdx_map_gpc_map4_r(void) 3863static inline u32 gr_ppcs_wwdx_map_gpc_map4_r(void)
3860{ 3864{
3861 return 0x0041bf10; 3865 return 0x0041bf10U;
3862} 3866}
3863static inline u32 gr_ppcs_wwdx_map_gpc_map5_r(void) 3867static inline u32 gr_ppcs_wwdx_map_gpc_map5_r(void)
3864{ 3868{
3865 return 0x0041bf14; 3869 return 0x0041bf14U;
3866} 3870}
3867static inline u32 gr_ppcs_wwdx_map_table_cfg_r(void) 3871static inline u32 gr_ppcs_wwdx_map_table_cfg_r(void)
3868{ 3872{
3869 return 0x0041bfd0; 3873 return 0x0041bfd0U;
3870} 3874}
3871static inline u32 gr_ppcs_wwdx_map_table_cfg_row_offset_f(u32 v) 3875static inline u32 gr_ppcs_wwdx_map_table_cfg_row_offset_f(u32 v)
3872{ 3876{
3873 return (v & 0xff) << 0; 3877 return (v & 0xffU) << 0U;
3874} 3878}
3875static inline u32 gr_ppcs_wwdx_map_table_cfg_num_entries_f(u32 v) 3879static inline u32 gr_ppcs_wwdx_map_table_cfg_num_entries_f(u32 v)
3876{ 3880{
3877 return (v & 0xff) << 8; 3881 return (v & 0xffU) << 8U;
3878} 3882}
3879static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_num_entries_f(u32 v) 3883static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_num_entries_f(u32 v)
3880{ 3884{
3881 return (v & 0x1f) << 16; 3885 return (v & 0x1fU) << 16U;
3882} 3886}
3883static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_shift_value_f(u32 v) 3887static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_shift_value_f(u32 v)
3884{ 3888{
3885 return (v & 0x7) << 21; 3889 return (v & 0x7U) << 21U;
3886} 3890}
3887static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff5_mod_value_f(u32 v) 3891static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff5_mod_value_f(u32 v)
3888{ 3892{
3889 return (v & 0x1f) << 24; 3893 return (v & 0x1fU) << 24U;
3890} 3894}
3891static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_r(void) 3895static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_r(void)
3892{ 3896{
3893 return 0x0041bfd4; 3897 return 0x0041bfd4U;
3894} 3898}
3895static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_conservative_f(u32 v) 3899static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_conservative_f(u32 v)
3896{ 3900{
3897 return (v & 0xffffff) << 0; 3901 return (v & 0xffffffU) << 0U;
3898} 3902}
3899static inline u32 gr_ppcs_wwdx_map_table_cfg2_r(void) 3903static inline u32 gr_ppcs_wwdx_map_table_cfg2_r(void)
3900{ 3904{
3901 return 0x0041bfe4; 3905 return 0x0041bfe4U;
3902} 3906}
3903static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff6_mod_value_f(u32 v) 3907static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff6_mod_value_f(u32 v)
3904{ 3908{
3905 return (v & 0x1f) << 0; 3909 return (v & 0x1fU) << 0U;
3906} 3910}
3907static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff7_mod_value_f(u32 v) 3911static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff7_mod_value_f(u32 v)
3908{ 3912{
3909 return (v & 0x1f) << 5; 3913 return (v & 0x1fU) << 5U;
3910} 3914}
3911static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff8_mod_value_f(u32 v) 3915static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff8_mod_value_f(u32 v)
3912{ 3916{
3913 return (v & 0x1f) << 10; 3917 return (v & 0x1fU) << 10U;
3914} 3918}
3915static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff9_mod_value_f(u32 v) 3919static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff9_mod_value_f(u32 v)
3916{ 3920{
3917 return (v & 0x1f) << 15; 3921 return (v & 0x1fU) << 15U;
3918} 3922}
3919static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff10_mod_value_f(u32 v) 3923static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff10_mod_value_f(u32 v)
3920{ 3924{
3921 return (v & 0x1f) << 20; 3925 return (v & 0x1fU) << 20U;
3922} 3926}
3923static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff11_mod_value_f(u32 v) 3927static inline u32 gr_ppcs_wwdx_map_table_cfg2_coeff11_mod_value_f(u32 v)
3924{ 3928{
3925 return (v & 0x1f) << 25; 3929 return (v & 0x1fU) << 25U;
3926} 3930}
3927static inline u32 gr_bes_zrop_settings_r(void) 3931static inline u32 gr_bes_zrop_settings_r(void)
3928{ 3932{
3929 return 0x00408850; 3933 return 0x00408850U;
3930} 3934}
3931static inline u32 gr_bes_zrop_settings_num_active_ltcs_f(u32 v) 3935static inline u32 gr_bes_zrop_settings_num_active_ltcs_f(u32 v)
3932{ 3936{
3933 return (v & 0xf) << 0; 3937 return (v & 0xfU) << 0U;
3934} 3938}
3935static inline u32 gr_be0_crop_debug3_r(void) 3939static inline u32 gr_be0_crop_debug3_r(void)
3936{ 3940{
3937 return 0x00410108; 3941 return 0x00410108U;
3938} 3942}
3939static inline u32 gr_bes_crop_debug3_r(void) 3943static inline u32 gr_bes_crop_debug3_r(void)
3940{ 3944{
3941 return 0x00408908; 3945 return 0x00408908U;
3942} 3946}
3943static inline u32 gr_bes_crop_debug3_comp_vdc_4to2_disable_m(void) 3947static inline u32 gr_bes_crop_debug3_comp_vdc_4to2_disable_m(void)
3944{ 3948{
3945 return 0x1 << 31; 3949 return 0x1U << 31U;
3946} 3950}
3947static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_m(void) 3951static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_m(void)
3948{ 3952{
3949 return 0x1 << 1; 3953 return 0x1U << 1U;
3950} 3954}
3951static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_disabled_f(void) 3955static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_disabled_f(void)
3952{ 3956{
3953 return 0x0; 3957 return 0x0U;
3954} 3958}
3955static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_enabled_f(void) 3959static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_enabled_f(void)
3956{ 3960{
3957 return 0x2; 3961 return 0x2U;
3958} 3962}
3959static inline u32 gr_bes_crop_debug3_blendopt_fill_override_m(void) 3963static inline u32 gr_bes_crop_debug3_blendopt_fill_override_m(void)
3960{ 3964{
3961 return 0x1 << 2; 3965 return 0x1U << 2U;
3962} 3966}
3963static inline u32 gr_bes_crop_debug3_blendopt_fill_override_disabled_f(void) 3967static inline u32 gr_bes_crop_debug3_blendopt_fill_override_disabled_f(void)
3964{ 3968{
3965 return 0x0; 3969 return 0x0U;
3966} 3970}
3967static inline u32 gr_bes_crop_debug3_blendopt_fill_override_enabled_f(void) 3971static inline u32 gr_bes_crop_debug3_blendopt_fill_override_enabled_f(void)
3968{ 3972{
3969 return 0x4; 3973 return 0x4U;
3970} 3974}
3971static inline u32 gr_bes_crop_settings_r(void) 3975static inline u32 gr_bes_crop_settings_r(void)
3972{ 3976{
3973 return 0x00408958; 3977 return 0x00408958U;
3974} 3978}
3975static inline u32 gr_bes_crop_settings_num_active_ltcs_f(u32 v) 3979static inline u32 gr_bes_crop_settings_num_active_ltcs_f(u32 v)
3976{ 3980{
3977 return (v & 0xf) << 0; 3981 return (v & 0xfU) << 0U;
3978} 3982}
3979static inline u32 gr_zcull_bytes_per_aliquot_per_gpu_v(void) 3983static inline u32 gr_zcull_bytes_per_aliquot_per_gpu_v(void)
3980{ 3984{
3981 return 0x00000020; 3985 return 0x00000020U;
3982} 3986}
3983static inline u32 gr_zcull_save_restore_header_bytes_per_gpc_v(void) 3987static inline u32 gr_zcull_save_restore_header_bytes_per_gpc_v(void)
3984{ 3988{
3985 return 0x00000020; 3989 return 0x00000020U;
3986} 3990}
3987static inline u32 gr_zcull_save_restore_subregion_header_bytes_per_gpc_v(void) 3991static inline u32 gr_zcull_save_restore_subregion_header_bytes_per_gpc_v(void)
3988{ 3992{
3989 return 0x000000c0; 3993 return 0x000000c0U;
3990} 3994}
3991static inline u32 gr_zcull_subregion_qty_v(void) 3995static inline u32 gr_zcull_subregion_qty_v(void)
3992{ 3996{
3993 return 0x00000010; 3997 return 0x00000010U;
3994} 3998}
3995static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel0_r(void) 3999static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel0_r(void)
3996{ 4000{
3997 return 0x00504604; 4001 return 0x00504604U;
3998} 4002}
3999static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel1_r(void) 4003static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control_sel1_r(void)
4000{ 4004{
4001 return 0x00504608; 4005 return 0x00504608U;
4002} 4006}
4003static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control0_r(void) 4007static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control0_r(void)
4004{ 4008{
4005 return 0x0050465c; 4009 return 0x0050465cU;
4006} 4010}
4007static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control1_r(void) 4011static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control1_r(void)
4008{ 4012{
4009 return 0x00504660; 4013 return 0x00504660U;
4010} 4014}
4011static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control2_r(void) 4015static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control2_r(void)
4012{ 4016{
4013 return 0x00504664; 4017 return 0x00504664U;
4014} 4018}
4015static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control3_r(void) 4019static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control3_r(void)
4016{ 4020{
4017 return 0x00504668; 4021 return 0x00504668U;
4018} 4022}
4019static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control4_r(void) 4023static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control4_r(void)
4020{ 4024{
4021 return 0x0050466c; 4025 return 0x0050466cU;
4022} 4026}
4023static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control5_r(void) 4027static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_control5_r(void)
4024{ 4028{
4025 return 0x00504658; 4029 return 0x00504658U;
4026} 4030}
4027static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_control_r(void) 4031static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_control_r(void)
4028{ 4032{
4029 return 0x00504730; 4033 return 0x00504730U;
4030} 4034}
4031static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_control_r(void) 4035static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_control_r(void)
4032{ 4036{
4033 return 0x00504734; 4037 return 0x00504734U;
4034} 4038}
4035static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_control_r(void) 4039static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_control_r(void)
4036{ 4040{
4037 return 0x00504738; 4041 return 0x00504738U;
4038} 4042}
4039static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_control_r(void) 4043static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_control_r(void)
4040{ 4044{
4041 return 0x0050473c; 4045 return 0x0050473cU;
4042} 4046}
4043static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter4_control_r(void) 4047static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter4_control_r(void)
4044{ 4048{
4045 return 0x00504740; 4049 return 0x00504740U;
4046} 4050}
4047static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter5_control_r(void) 4051static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter5_control_r(void)
4048{ 4052{
4049 return 0x00504744; 4053 return 0x00504744U;
4050} 4054}
4051static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter6_control_r(void) 4055static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter6_control_r(void)
4052{ 4056{
4053 return 0x00504748; 4057 return 0x00504748U;
4054} 4058}
4055static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter7_control_r(void) 4059static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter7_control_r(void)
4056{ 4060{
4057 return 0x0050474c; 4061 return 0x0050474cU;
4058} 4062}
4059static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status_s1_r(void) 4063static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status_s1_r(void)
4060{ 4064{
4061 return 0x00504678; 4065 return 0x00504678U;
4062} 4066}
4063static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status1_r(void) 4067static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter_status1_r(void)
4064{ 4068{
4065 return 0x00504694; 4069 return 0x00504694U;
4066} 4070}
4067static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_s0_r(void) 4071static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_s0_r(void)
4068{ 4072{
4069 return 0x005046f0; 4073 return 0x005046f0U;
4070} 4074}
4071static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_s1_r(void) 4075static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter0_s1_r(void)
4072{ 4076{
4073 return 0x00504700; 4077 return 0x00504700U;
4074} 4078}
4075static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_s0_r(void) 4079static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_s0_r(void)
4076{ 4080{
4077 return 0x005046f4; 4081 return 0x005046f4U;
4078} 4082}
4079static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_s1_r(void) 4083static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter1_s1_r(void)
4080{ 4084{
4081 return 0x00504704; 4085 return 0x00504704U;
4082} 4086}
4083static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_s0_r(void) 4087static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_s0_r(void)
4084{ 4088{
4085 return 0x005046f8; 4089 return 0x005046f8U;
4086} 4090}
4087static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_s1_r(void) 4091static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter2_s1_r(void)
4088{ 4092{
4089 return 0x00504708; 4093 return 0x00504708U;
4090} 4094}
4091static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_s0_r(void) 4095static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_s0_r(void)
4092{ 4096{
4093 return 0x005046fc; 4097 return 0x005046fcU;
4094} 4098}
4095static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_s1_r(void) 4099static inline u32 gr_pri_gpc0_tpc0_sm_dsm_perf_counter3_s1_r(void)
4096{ 4100{
4097 return 0x0050470c; 4101 return 0x0050470cU;
4098} 4102}
4099static inline u32 gr_fe_pwr_mode_r(void) 4103static inline u32 gr_fe_pwr_mode_r(void)
4100{ 4104{
4101 return 0x00404170; 4105 return 0x00404170U;
4102} 4106}
4103static inline u32 gr_fe_pwr_mode_mode_auto_f(void) 4107static inline u32 gr_fe_pwr_mode_mode_auto_f(void)
4104{ 4108{
4105 return 0x0; 4109 return 0x0U;
4106} 4110}
4107static inline u32 gr_fe_pwr_mode_mode_force_on_f(void) 4111static inline u32 gr_fe_pwr_mode_mode_force_on_f(void)
4108{ 4112{
4109 return 0x2; 4113 return 0x2U;
4110} 4114}
4111static inline u32 gr_fe_pwr_mode_req_v(u32 r) 4115static inline u32 gr_fe_pwr_mode_req_v(u32 r)
4112{ 4116{
4113 return (r >> 4) & 0x1; 4117 return (r >> 4U) & 0x1U;
4114} 4118}
4115static inline u32 gr_fe_pwr_mode_req_send_f(void) 4119static inline u32 gr_fe_pwr_mode_req_send_f(void)
4116{ 4120{
4117 return 0x10; 4121 return 0x10U;
4118} 4122}
4119static inline u32 gr_fe_pwr_mode_req_done_v(void) 4123static inline u32 gr_fe_pwr_mode_req_done_v(void)
4120{ 4124{
4121 return 0x00000000; 4125 return 0x00000000U;
4122} 4126}
4123static inline u32 gr_gpcs_pri_mmu_ctrl_r(void) 4127static inline u32 gr_gpcs_pri_mmu_ctrl_r(void)
4124{ 4128{
4125 return 0x00418880; 4129 return 0x00418880U;
4126} 4130}
4127static inline u32 gr_gpcs_pri_mmu_ctrl_vm_pg_size_m(void) 4131static inline u32 gr_gpcs_pri_mmu_ctrl_vm_pg_size_m(void)
4128{ 4132{
4129 return 0x1 << 0; 4133 return 0x1U << 0U;
4130} 4134}
4131static inline u32 gr_gpcs_pri_mmu_ctrl_use_pdb_big_page_size_m(void) 4135static inline u32 gr_gpcs_pri_mmu_ctrl_use_pdb_big_page_size_m(void)
4132{ 4136{
4133 return 0x1 << 11; 4137 return 0x1U << 11U;
4134} 4138}
4135static inline u32 gr_gpcs_pri_mmu_ctrl_vol_fault_m(void) 4139static inline u32 gr_gpcs_pri_mmu_ctrl_vol_fault_m(void)
4136{ 4140{
4137 return 0x1 << 1; 4141 return 0x1U << 1U;
4138} 4142}
4139static inline u32 gr_gpcs_pri_mmu_ctrl_comp_fault_m(void) 4143static inline u32 gr_gpcs_pri_mmu_ctrl_comp_fault_m(void)
4140{ 4144{
4141 return 0x1 << 2; 4145 return 0x1U << 2U;
4142} 4146}
4143static inline u32 gr_gpcs_pri_mmu_ctrl_miss_gran_m(void) 4147static inline u32 gr_gpcs_pri_mmu_ctrl_miss_gran_m(void)
4144{ 4148{
4145 return 0x3 << 3; 4149 return 0x3U << 3U;
4146} 4150}
4147static inline u32 gr_gpcs_pri_mmu_ctrl_cache_mode_m(void) 4151static inline u32 gr_gpcs_pri_mmu_ctrl_cache_mode_m(void)
4148{ 4152{
4149 return 0x3 << 5; 4153 return 0x3U << 5U;
4150} 4154}
4151static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_aperture_m(void) 4155static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_aperture_m(void)
4152{ 4156{
4153 return 0x3 << 28; 4157 return 0x3U << 28U;
4154} 4158}
4155static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_vol_m(void) 4159static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_vol_m(void)
4156{ 4160{
4157 return 0x1 << 30; 4161 return 0x1U << 30U;
4158} 4162}
4159static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_disable_m(void) 4163static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_disable_m(void)
4160{ 4164{
4161 return 0x1 << 31; 4165 return 0x1U << 31U;
4162} 4166}
4163static inline u32 gr_gpcs_pri_mmu_pm_unit_mask_r(void) 4167static inline u32 gr_gpcs_pri_mmu_pm_unit_mask_r(void)
4164{ 4168{
4165 return 0x00418890; 4169 return 0x00418890U;
4166} 4170}
4167static inline u32 gr_gpcs_pri_mmu_pm_req_mask_r(void) 4171static inline u32 gr_gpcs_pri_mmu_pm_req_mask_r(void)
4168{ 4172{
4169 return 0x00418894; 4173 return 0x00418894U;
4170} 4174}
4171static inline u32 gr_gpcs_pri_mmu_debug_ctrl_r(void) 4175static inline u32 gr_gpcs_pri_mmu_debug_ctrl_r(void)
4172{ 4176{
4173 return 0x004188b0; 4177 return 0x004188b0U;
4174} 4178}
4175static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_v(u32 r) 4179static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_v(u32 r)
4176{ 4180{
4177 return (r >> 16) & 0x1; 4181 return (r >> 16U) & 0x1U;
4178} 4182}
4179static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v(void) 4183static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v(void)
4180{ 4184{
4181 return 0x00000001; 4185 return 0x00000001U;
4182} 4186}
4183static inline u32 gr_gpcs_pri_mmu_debug_wr_r(void) 4187static inline u32 gr_gpcs_pri_mmu_debug_wr_r(void)
4184{ 4188{
4185 return 0x004188b4; 4189 return 0x004188b4U;
4186} 4190}
4187static inline u32 gr_gpcs_pri_mmu_debug_rd_r(void) 4191static inline u32 gr_gpcs_pri_mmu_debug_rd_r(void)
4188{ 4192{
4189 return 0x004188b8; 4193 return 0x004188b8U;
4190} 4194}
4191static inline u32 gr_gpcs_mmu_num_active_ltcs_r(void) 4195static inline u32 gr_gpcs_mmu_num_active_ltcs_r(void)
4192{ 4196{
4193 return 0x004188ac; 4197 return 0x004188acU;
4194} 4198}
4195static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_r(void) 4199static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_r(void)
4196{ 4200{
4197 return 0x00419e10; 4201 return 0x00419e10U;
4198} 4202}
4199static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_f(u32 v) 4203static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_f(u32 v)
4200{ 4204{
4201 return (v & 0x1) << 0; 4205 return (v & 0x1U) << 0U;
4202} 4206}
4203static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_on_v(void) 4207static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_on_v(void)
4204{ 4208{
4205 return 0x00000001; 4209 return 0x00000001U;
4206} 4210}
4207static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_m(void) 4211static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_m(void)
4208{ 4212{
4209 return 0x1 << 31; 4213 return 0x1U << 31U;
4210} 4214}
4211static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_v(u32 r) 4215static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_v(u32 r)
4212{ 4216{
4213 return (r >> 31) & 0x1; 4217 return (r >> 31U) & 0x1U;
4214} 4218}
4215static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_enable_f(void) 4219static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_enable_f(void)
4216{ 4220{
4217 return 0x80000000; 4221 return 0x80000000U;
4218} 4222}
4219static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_disable_f(void) 4223static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_disable_f(void)
4220{ 4224{
4221 return 0x0; 4225 return 0x0U;
4222} 4226}
4223static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_m(void) 4227static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_m(void)
4224{ 4228{
4225 return 0x1 << 3; 4229 return 0x1U << 3U;
4226} 4230}
4227static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_enable_f(void) 4231static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_enable_f(void)
4228{ 4232{
4229 return 0x8; 4233 return 0x8U;
4230} 4234}
4231static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_disable_f(void) 4235static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_single_step_mode_disable_f(void)
4232{ 4236{
4233 return 0x0; 4237 return 0x0U;
4234} 4238}
4235static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_m(void) 4239static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_m(void)
4236{ 4240{
4237 return 0x1 << 30; 4241 return 0x1U << 30U;
4238} 4242}
4239static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_v(u32 r) 4243static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_v(u32 r)
4240{ 4244{
4241 return (r >> 30) & 0x1; 4245 return (r >> 30U) & 0x1U;
4242} 4246}
4243static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_task_f(void) 4247static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_task_f(void)
4244{ 4248{
4245 return 0x40000000; 4249 return 0x40000000U;
4246} 4250}
4247static inline u32 gr_fe_gfxp_wfi_timeout_r(void) 4251static inline u32 gr_fe_gfxp_wfi_timeout_r(void)
4248{ 4252{
4249 return 0x004041c0; 4253 return 0x004041c0U;
4250} 4254}
4251static inline u32 gr_fe_gfxp_wfi_timeout_count_f(u32 v) 4255static inline u32 gr_fe_gfxp_wfi_timeout_count_f(u32 v)
4252{ 4256{
4253 return (v & 0xffffffff) << 0; 4257 return (v & 0xffffffffU) << 0U;
4254} 4258}
4255static inline u32 gr_fe_gfxp_wfi_timeout_count_disabled_f(void) 4259static inline u32 gr_fe_gfxp_wfi_timeout_count_disabled_f(void)
4256{ 4260{
4257 return 0x0; 4261 return 0x0U;
4258} 4262}
4259static inline u32 gr_debug_2_r(void) 4263static inline u32 gr_debug_2_r(void)
4260{ 4264{
4261 return 0x00400088; 4265 return 0x00400088U;
4262} 4266}
4263static inline u32 gr_debug_2_gfxp_wfi_always_injects_wfi_m(void) 4267static inline u32 gr_debug_2_gfxp_wfi_always_injects_wfi_m(void)
4264{ 4268{
4265 return 0x1 << 23; 4269 return 0x1U << 23U;
4266} 4270}
4267static inline u32 gr_debug_2_gfxp_wfi_always_injects_wfi_v(u32 r) 4271static inline u32 gr_debug_2_gfxp_wfi_always_injects_wfi_v(u32 r)
4268{ 4272{
4269 return (r >> 23) & 0x1; 4273 return (r >> 23U) & 0x1U;
4270} 4274}
4271static inline u32 gr_debug_2_gfxp_wfi_always_injects_wfi_enabled_f(void) 4275static inline u32 gr_debug_2_gfxp_wfi_always_injects_wfi_enabled_f(void)
4272{ 4276{
4273 return 0x800000; 4277 return 0x800000U;
4274} 4278}
4275static inline u32 gr_debug_2_gfxp_wfi_always_injects_wfi_disabled_f(void) 4279static inline u32 gr_debug_2_gfxp_wfi_always_injects_wfi_disabled_f(void)
4276{ 4280{
4277 return 0x0; 4281 return 0x0U;
4278} 4282}
4279static inline u32 gr_gpcs_tpcs_sm_texio_control_r(void) 4283static inline u32 gr_gpcs_tpcs_sm_texio_control_r(void)
4280{ 4284{
4281 return 0x00419c84; 4285 return 0x00419c84U;
4282} 4286}
4283static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_f(u32 v) 4287static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_f(u32 v)
4284{ 4288{
4285 return (v & 0x7) << 8; 4289 return (v & 0x7U) << 8U;
4286} 4290}
4287static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_m(void) 4291static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_m(void)
4288{ 4292{
4289 return 0x7 << 8; 4293 return 0x7U << 8U;
4290} 4294}
4291static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_arm_63_48_match_f(void) 4295static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_arm_63_48_match_f(void)
4292{ 4296{
4293 return 0x100; 4297 return 0x100U;
4294} 4298}
4295static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_r(void) 4299static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_r(void)
4296{ 4300{
4297 return 0x00419f78; 4301 return 0x00419f78U;
4298} 4302}
4299static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_m(void) 4303static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_m(void)
4300{ 4304{
4301 return 0x3 << 11; 4305 return 0x3U << 11U;
4302} 4306}
4303static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_disable_f(void) 4307static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_disable_f(void)
4304{ 4308{
4305 return 0x1000; 4309 return 0x1000U;
4306} 4310}
4307static inline u32 gr_gpcs_tc_debug0_r(void) 4311static inline u32 gr_gpcs_tc_debug0_r(void)
4308{ 4312{
4309 return 0x00418708; 4313 return 0x00418708U;
4310} 4314}
4311static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_f(u32 v) 4315static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_f(u32 v)
4312{ 4316{
4313 return (v & 0xff) << 0; 4317 return (v & 0xffU) << 0U;
4314} 4318}
4315static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_m(void) 4319static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_m(void)
4316{ 4320{
4317 return 0xff << 0; 4321 return 0xffU << 0U;
4318} 4322}
4319static inline u32 gr_gpc0_prop_debug1_r(void) 4323static inline u32 gr_gpc0_prop_debug1_r(void)
4320{ 4324{
4321 return 0x00500400; 4325 return 0x00500400U;
4322} 4326}
4323static inline u32 gr_gpc0_prop_debug1_czf_bypass_f(u32 v) 4327static inline u32 gr_gpc0_prop_debug1_czf_bypass_f(u32 v)
4324{ 4328{
4325 return (v & 0x3) << 14; 4329 return (v & 0x3U) << 14U;
4326} 4330}
4327static inline u32 gr_gpc0_prop_debug1_czf_bypass_m(void) 4331static inline u32 gr_gpc0_prop_debug1_czf_bypass_m(void)
4328{ 4332{
4329 return 0x3 << 14; 4333 return 0x3U << 14U;
4330} 4334}
4331static inline u32 gr_gpc0_prop_debug1_czf_bypass_init_v(void) 4335static inline u32 gr_gpc0_prop_debug1_czf_bypass_init_v(void)
4332{ 4336{
4333 return 0x00000001; 4337 return 0x00000001U;
4334} 4338}
4335#endif 4339#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ltc_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ltc_gp10b.h
index 4e922e64..721a48ae 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ltc_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ltc_gp10b.h
@@ -58,530 +58,530 @@
58 58
59static inline u32 ltc_pltcg_base_v(void) 59static inline u32 ltc_pltcg_base_v(void)
60{ 60{
61 return 0x00140000; 61 return 0x00140000U;
62} 62}
63static inline u32 ltc_pltcg_extent_v(void) 63static inline u32 ltc_pltcg_extent_v(void)
64{ 64{
65 return 0x0017ffff; 65 return 0x0017ffffU;
66} 66}
67static inline u32 ltc_ltc0_ltss_v(void) 67static inline u32 ltc_ltc0_ltss_v(void)
68{ 68{
69 return 0x00140200; 69 return 0x00140200U;
70} 70}
71static inline u32 ltc_ltc0_lts0_v(void) 71static inline u32 ltc_ltc0_lts0_v(void)
72{ 72{
73 return 0x00140400; 73 return 0x00140400U;
74} 74}
75static inline u32 ltc_ltcs_ltss_v(void) 75static inline u32 ltc_ltcs_ltss_v(void)
76{ 76{
77 return 0x0017e200; 77 return 0x0017e200U;
78} 78}
79static inline u32 ltc_ltcs_lts0_cbc_ctrl1_r(void) 79static inline u32 ltc_ltcs_lts0_cbc_ctrl1_r(void)
80{ 80{
81 return 0x0014046c; 81 return 0x0014046cU;
82} 82}
83static inline u32 ltc_ltc0_lts0_dstg_cfg0_r(void) 83static inline u32 ltc_ltc0_lts0_dstg_cfg0_r(void)
84{ 84{
85 return 0x00140518; 85 return 0x00140518U;
86} 86}
87static inline u32 ltc_ltcs_ltss_dstg_cfg0_r(void) 87static inline u32 ltc_ltcs_ltss_dstg_cfg0_r(void)
88{ 88{
89 return 0x0017e318; 89 return 0x0017e318U;
90} 90}
91static inline u32 ltc_ltcs_ltss_dstg_cfg0_vdc_4to2_disable_m(void) 91static inline u32 ltc_ltcs_ltss_dstg_cfg0_vdc_4to2_disable_m(void)
92{ 92{
93 return 0x1 << 15; 93 return 0x1U << 15U;
94} 94}
95static inline u32 ltc_ltc0_lts0_tstg_cfg1_r(void) 95static inline u32 ltc_ltc0_lts0_tstg_cfg1_r(void)
96{ 96{
97 return 0x00140494; 97 return 0x00140494U;
98} 98}
99static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_ways_v(u32 r) 99static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_ways_v(u32 r)
100{ 100{
101 return (r >> 0) & 0xffff; 101 return (r >> 0U) & 0xffffU;
102} 102}
103static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_v(u32 r) 103static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_v(u32 r)
104{ 104{
105 return (r >> 16) & 0x3; 105 return (r >> 16U) & 0x3U;
106} 106}
107static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_all_v(void) 107static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_all_v(void)
108{ 108{
109 return 0x00000000; 109 return 0x00000000U;
110} 110}
111static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_half_v(void) 111static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_half_v(void)
112{ 112{
113 return 0x00000001; 113 return 0x00000001U;
114} 114}
115static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_quarter_v(void) 115static inline u32 ltc_ltc0_lts0_tstg_cfg1_active_sets_quarter_v(void)
116{ 116{
117 return 0x00000002; 117 return 0x00000002U;
118} 118}
119static inline u32 ltc_ltcs_ltss_cbc_ctrl1_r(void) 119static inline u32 ltc_ltcs_ltss_cbc_ctrl1_r(void)
120{ 120{
121 return 0x0017e26c; 121 return 0x0017e26cU;
122} 122}
123static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clean_active_f(void) 123static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clean_active_f(void)
124{ 124{
125 return 0x1; 125 return 0x1U;
126} 126}
127static inline u32 ltc_ltcs_ltss_cbc_ctrl1_invalidate_active_f(void) 127static inline u32 ltc_ltcs_ltss_cbc_ctrl1_invalidate_active_f(void)
128{ 128{
129 return 0x2; 129 return 0x2U;
130} 130}
131static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_v(u32 r) 131static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_v(u32 r)
132{ 132{
133 return (r >> 2) & 0x1; 133 return (r >> 2U) & 0x1U;
134} 134}
135static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_v(void) 135static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_v(void)
136{ 136{
137 return 0x00000001; 137 return 0x00000001U;
138} 138}
139static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_f(void) 139static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_f(void)
140{ 140{
141 return 0x4; 141 return 0x4U;
142} 142}
143static inline u32 ltc_ltc0_lts0_cbc_ctrl1_r(void) 143static inline u32 ltc_ltc0_lts0_cbc_ctrl1_r(void)
144{ 144{
145 return 0x0014046c; 145 return 0x0014046cU;
146} 146}
147static inline u32 ltc_ltcs_ltss_cbc_ctrl2_r(void) 147static inline u32 ltc_ltcs_ltss_cbc_ctrl2_r(void)
148{ 148{
149 return 0x0017e270; 149 return 0x0017e270U;
150} 150}
151static inline u32 ltc_ltcs_ltss_cbc_ctrl2_clear_lower_bound_f(u32 v) 151static inline u32 ltc_ltcs_ltss_cbc_ctrl2_clear_lower_bound_f(u32 v)
152{ 152{
153 return (v & 0x3ffff) << 0; 153 return (v & 0x3ffffU) << 0U;
154} 154}
155static inline u32 ltc_ltcs_ltss_cbc_ctrl3_r(void) 155static inline u32 ltc_ltcs_ltss_cbc_ctrl3_r(void)
156{ 156{
157 return 0x0017e274; 157 return 0x0017e274U;
158} 158}
159static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_f(u32 v) 159static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_f(u32 v)
160{ 160{
161 return (v & 0x3ffff) << 0; 161 return (v & 0x3ffffU) << 0U;
162} 162}
163static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_init_v(void) 163static inline u32 ltc_ltcs_ltss_cbc_ctrl3_clear_upper_bound_init_v(void)
164{ 164{
165 return 0x0003ffff; 165 return 0x0003ffffU;
166} 166}
167static inline u32 ltc_ltcs_ltss_cbc_base_r(void) 167static inline u32 ltc_ltcs_ltss_cbc_base_r(void)
168{ 168{
169 return 0x0017e278; 169 return 0x0017e278U;
170} 170}
171static inline u32 ltc_ltcs_ltss_cbc_base_alignment_shift_v(void) 171static inline u32 ltc_ltcs_ltss_cbc_base_alignment_shift_v(void)
172{ 172{
173 return 0x0000000b; 173 return 0x0000000bU;
174} 174}
175static inline u32 ltc_ltcs_ltss_cbc_base_address_v(u32 r) 175static inline u32 ltc_ltcs_ltss_cbc_base_address_v(u32 r)
176{ 176{
177 return (r >> 0) & 0x3ffffff; 177 return (r >> 0U) & 0x3ffffffU;
178} 178}
179static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_r(void) 179static inline u32 ltc_ltcs_ltss_cbc_num_active_ltcs_r(void)
180{ 180{
181 return 0x0017e27c; 181 return 0x0017e27cU;
182} 182}
183static inline u32 ltc_ltcs_misc_ltc_num_active_ltcs_r(void) 183static inline u32 ltc_ltcs_misc_ltc_num_active_ltcs_r(void)
184{ 184{
185 return 0x0017e000; 185 return 0x0017e000U;
186} 186}
187static inline u32 ltc_ltcs_ltss_cbc_param_r(void) 187static inline u32 ltc_ltcs_ltss_cbc_param_r(void)
188{ 188{
189 return 0x0017e280; 189 return 0x0017e280U;
190} 190}
191static inline u32 ltc_ltcs_ltss_cbc_param_comptags_per_cache_line_v(u32 r) 191static inline u32 ltc_ltcs_ltss_cbc_param_comptags_per_cache_line_v(u32 r)
192{ 192{
193 return (r >> 0) & 0xffff; 193 return (r >> 0U) & 0xffffU;
194} 194}
195static inline u32 ltc_ltcs_ltss_cbc_param_cache_line_size_v(u32 r) 195static inline u32 ltc_ltcs_ltss_cbc_param_cache_line_size_v(u32 r)
196{ 196{
197 return (r >> 24) & 0xf; 197 return (r >> 24U) & 0xfU;
198} 198}
199static inline u32 ltc_ltcs_ltss_cbc_param_slices_per_ltc_v(u32 r) 199static inline u32 ltc_ltcs_ltss_cbc_param_slices_per_ltc_v(u32 r)
200{ 200{
201 return (r >> 28) & 0xf; 201 return (r >> 28U) & 0xfU;
202} 202}
203static inline u32 ltc_ltcs_ltss_cbc_param2_r(void) 203static inline u32 ltc_ltcs_ltss_cbc_param2_r(void)
204{ 204{
205 return 0x0017e3f4; 205 return 0x0017e3f4U;
206} 206}
207static inline u32 ltc_ltcs_ltss_cbc_param2_gobs_per_comptagline_per_slice_v(u32 r) 207static inline u32 ltc_ltcs_ltss_cbc_param2_gobs_per_comptagline_per_slice_v(u32 r)
208{ 208{
209 return (r >> 0) & 0xffff; 209 return (r >> 0U) & 0xffffU;
210} 210}
211static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_r(void) 211static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_r(void)
212{ 212{
213 return 0x0017e2ac; 213 return 0x0017e2acU;
214} 214}
215static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_max_ways_evict_last_f(u32 v) 215static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_max_ways_evict_last_f(u32 v)
216{ 216{
217 return (v & 0x1f) << 16; 217 return (v & 0x1fU) << 16U;
218} 218}
219static inline u32 ltc_ltcs_ltss_dstg_zbc_index_r(void) 219static inline u32 ltc_ltcs_ltss_dstg_zbc_index_r(void)
220{ 220{
221 return 0x0017e338; 221 return 0x0017e338U;
222} 222}
223static inline u32 ltc_ltcs_ltss_dstg_zbc_index_address_f(u32 v) 223static inline u32 ltc_ltcs_ltss_dstg_zbc_index_address_f(u32 v)
224{ 224{
225 return (v & 0xf) << 0; 225 return (v & 0xfU) << 0U;
226} 226}
227static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value_r(u32 i) 227static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value_r(u32 i)
228{ 228{
229 return 0x0017e33c + i*4; 229 return 0x0017e33cU + i*4U;
230} 230}
231static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value__size_1_v(void) 231static inline u32 ltc_ltcs_ltss_dstg_zbc_color_clear_value__size_1_v(void)
232{ 232{
233 return 0x00000004; 233 return 0x00000004U;
234} 234}
235static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_r(void) 235static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_r(void)
236{ 236{
237 return 0x0017e34c; 237 return 0x0017e34cU;
238} 238}
239static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_s(void) 239static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_s(void)
240{ 240{
241 return 32; 241 return 32U;
242} 242}
243static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_f(u32 v) 243static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_f(u32 v)
244{ 244{
245 return (v & 0xffffffff) << 0; 245 return (v & 0xffffffffU) << 0U;
246} 246}
247static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_m(void) 247static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_m(void)
248{ 248{
249 return 0xffffffff << 0; 249 return 0xffffffffU << 0U;
250} 250}
251static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_v(u32 r) 251static inline u32 ltc_ltcs_ltss_dstg_zbc_depth_clear_value_field_v(u32 r)
252{ 252{
253 return (r >> 0) & 0xffffffff; 253 return (r >> 0U) & 0xffffffffU;
254} 254}
255static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_r(void) 255static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_r(void)
256{ 256{
257 return 0x0017e2b0; 257 return 0x0017e2b0U;
258} 258}
259static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_l2_bypass_mode_enabled_f(void) 259static inline u32 ltc_ltcs_ltss_tstg_set_mgmt_2_l2_bypass_mode_enabled_f(void)
260{ 260{
261 return 0x10000000; 261 return 0x10000000U;
262} 262}
263static inline u32 ltc_ltcs_ltss_g_elpg_r(void) 263static inline u32 ltc_ltcs_ltss_g_elpg_r(void)
264{ 264{
265 return 0x0017e214; 265 return 0x0017e214U;
266} 266}
267static inline u32 ltc_ltcs_ltss_g_elpg_flush_v(u32 r) 267static inline u32 ltc_ltcs_ltss_g_elpg_flush_v(u32 r)
268{ 268{
269 return (r >> 0) & 0x1; 269 return (r >> 0U) & 0x1U;
270} 270}
271static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_v(void) 271static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_v(void)
272{ 272{
273 return 0x00000001; 273 return 0x00000001U;
274} 274}
275static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_f(void) 275static inline u32 ltc_ltcs_ltss_g_elpg_flush_pending_f(void)
276{ 276{
277 return 0x1; 277 return 0x1U;
278} 278}
279static inline u32 ltc_ltc0_ltss_g_elpg_r(void) 279static inline u32 ltc_ltc0_ltss_g_elpg_r(void)
280{ 280{
281 return 0x00140214; 281 return 0x00140214U;
282} 282}
283static inline u32 ltc_ltc0_ltss_g_elpg_flush_v(u32 r) 283static inline u32 ltc_ltc0_ltss_g_elpg_flush_v(u32 r)
284{ 284{
285 return (r >> 0) & 0x1; 285 return (r >> 0U) & 0x1U;
286} 286}
287static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_v(void) 287static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_v(void)
288{ 288{
289 return 0x00000001; 289 return 0x00000001U;
290} 290}
291static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_f(void) 291static inline u32 ltc_ltc0_ltss_g_elpg_flush_pending_f(void)
292{ 292{
293 return 0x1; 293 return 0x1U;
294} 294}
295static inline u32 ltc_ltc1_ltss_g_elpg_r(void) 295static inline u32 ltc_ltc1_ltss_g_elpg_r(void)
296{ 296{
297 return 0x00142214; 297 return 0x00142214U;
298} 298}
299static inline u32 ltc_ltc1_ltss_g_elpg_flush_v(u32 r) 299static inline u32 ltc_ltc1_ltss_g_elpg_flush_v(u32 r)
300{ 300{
301 return (r >> 0) & 0x1; 301 return (r >> 0U) & 0x1U;
302} 302}
303static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_v(void) 303static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_v(void)
304{ 304{
305 return 0x00000001; 305 return 0x00000001U;
306} 306}
307static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_f(void) 307static inline u32 ltc_ltc1_ltss_g_elpg_flush_pending_f(void)
308{ 308{
309 return 0x1; 309 return 0x1U;
310} 310}
311static inline u32 ltc_ltcs_ltss_intr_r(void) 311static inline u32 ltc_ltcs_ltss_intr_r(void)
312{ 312{
313 return 0x0017e20c; 313 return 0x0017e20cU;
314} 314}
315static inline u32 ltc_ltcs_ltss_intr_ecc_sec_error_pending_f(void) 315static inline u32 ltc_ltcs_ltss_intr_ecc_sec_error_pending_f(void)
316{ 316{
317 return 0x100; 317 return 0x100U;
318} 318}
319static inline u32 ltc_ltcs_ltss_intr_ecc_ded_error_pending_f(void) 319static inline u32 ltc_ltcs_ltss_intr_ecc_ded_error_pending_f(void)
320{ 320{
321 return 0x200; 321 return 0x200U;
322} 322}
323static inline u32 ltc_ltcs_ltss_intr_en_evicted_cb_m(void) 323static inline u32 ltc_ltcs_ltss_intr_en_evicted_cb_m(void)
324{ 324{
325 return 0x1 << 20; 325 return 0x1U << 20U;
326} 326}
327static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(void) 327static inline u32 ltc_ltcs_ltss_intr_en_illegal_compstat_access_m(void)
328{ 328{
329 return 0x1 << 30; 329 return 0x1U << 30U;
330} 330}
331static inline u32 ltc_ltcs_ltss_intr_en_ecc_sec_error_enabled_f(void) 331static inline u32 ltc_ltcs_ltss_intr_en_ecc_sec_error_enabled_f(void)
332{ 332{
333 return 0x1000000; 333 return 0x1000000U;
334} 334}
335static inline u32 ltc_ltcs_ltss_intr_en_ecc_ded_error_enabled_f(void) 335static inline u32 ltc_ltcs_ltss_intr_en_ecc_ded_error_enabled_f(void)
336{ 336{
337 return 0x2000000; 337 return 0x2000000U;
338} 338}
339static inline u32 ltc_ltc0_lts0_intr_r(void) 339static inline u32 ltc_ltc0_lts0_intr_r(void)
340{ 340{
341 return 0x0014040c; 341 return 0x0014040cU;
342} 342}
343static inline u32 ltc_ltc0_lts0_dstg_ecc_report_r(void) 343static inline u32 ltc_ltc0_lts0_dstg_ecc_report_r(void)
344{ 344{
345 return 0x0014051c; 345 return 0x0014051cU;
346} 346}
347static inline u32 ltc_ltc0_lts0_dstg_ecc_report_sec_count_m(void) 347static inline u32 ltc_ltc0_lts0_dstg_ecc_report_sec_count_m(void)
348{ 348{
349 return 0xff << 0; 349 return 0xffU << 0U;
350} 350}
351static inline u32 ltc_ltc0_lts0_dstg_ecc_report_sec_count_v(u32 r) 351static inline u32 ltc_ltc0_lts0_dstg_ecc_report_sec_count_v(u32 r)
352{ 352{
353 return (r >> 0) & 0xff; 353 return (r >> 0U) & 0xffU;
354} 354}
355static inline u32 ltc_ltc0_lts0_dstg_ecc_report_ded_count_m(void) 355static inline u32 ltc_ltc0_lts0_dstg_ecc_report_ded_count_m(void)
356{ 356{
357 return 0xff << 16; 357 return 0xffU << 16U;
358} 358}
359static inline u32 ltc_ltc0_lts0_dstg_ecc_report_ded_count_v(u32 r) 359static inline u32 ltc_ltc0_lts0_dstg_ecc_report_ded_count_v(u32 r)
360{ 360{
361 return (r >> 16) & 0xff; 361 return (r >> 16U) & 0xffU;
362} 362}
363static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_r(void) 363static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_r(void)
364{ 364{
365 return 0x0017e2a0; 365 return 0x0017e2a0U;
366} 366}
367static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_v(u32 r) 367static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_v(u32 r)
368{ 368{
369 return (r >> 0) & 0x1; 369 return (r >> 0U) & 0x1U;
370} 370}
371static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_v(void) 371static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_v(void)
372{ 372{
373 return 0x00000001; 373 return 0x00000001U;
374} 374}
375static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_f(void) 375static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_f(void)
376{ 376{
377 return 0x1; 377 return 0x1U;
378} 378}
379static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_v(u32 r) 379static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_v(u32 r)
380{ 380{
381 return (r >> 8) & 0xf; 381 return (r >> 8U) & 0xfU;
382} 382}
383static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_v(void) 383static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_v(void)
384{ 384{
385 return 0x00000003; 385 return 0x00000003U;
386} 386}
387static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_f(void) 387static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_f(void)
388{ 388{
389 return 0x300; 389 return 0x300U;
390} 390}
391static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_v(u32 r) 391static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_v(u32 r)
392{ 392{
393 return (r >> 28) & 0x1; 393 return (r >> 28U) & 0x1U;
394} 394}
395static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_v(void) 395static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_v(void)
396{ 396{
397 return 0x00000001; 397 return 0x00000001U;
398} 398}
399static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_f(void) 399static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_f(void)
400{ 400{
401 return 0x10000000; 401 return 0x10000000U;
402} 402}
403static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_v(u32 r) 403static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_v(u32 r)
404{ 404{
405 return (r >> 29) & 0x1; 405 return (r >> 29U) & 0x1U;
406} 406}
407static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_v(void) 407static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_v(void)
408{ 408{
409 return 0x00000001; 409 return 0x00000001U;
410} 410}
411static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_f(void) 411static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_f(void)
412{ 412{
413 return 0x20000000; 413 return 0x20000000U;
414} 414}
415static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_v(u32 r) 415static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_v(u32 r)
416{ 416{
417 return (r >> 30) & 0x1; 417 return (r >> 30U) & 0x1U;
418} 418}
419static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_v(void) 419static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_v(void)
420{ 420{
421 return 0x00000001; 421 return 0x00000001U;
422} 422}
423static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_f(void) 423static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_f(void)
424{ 424{
425 return 0x40000000; 425 return 0x40000000U;
426} 426}
427static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_r(void) 427static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_r(void)
428{ 428{
429 return 0x0017e2a4; 429 return 0x0017e2a4U;
430} 430}
431static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_v(u32 r) 431static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_v(u32 r)
432{ 432{
433 return (r >> 0) & 0x1; 433 return (r >> 0U) & 0x1U;
434} 434}
435static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_v(void) 435static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_v(void)
436{ 436{
437 return 0x00000001; 437 return 0x00000001U;
438} 438}
439static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_f(void) 439static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_f(void)
440{ 440{
441 return 0x1; 441 return 0x1U;
442} 442}
443static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_v(u32 r) 443static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_v(u32 r)
444{ 444{
445 return (r >> 8) & 0xf; 445 return (r >> 8U) & 0xfU;
446} 446}
447static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_v(void) 447static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_v(void)
448{ 448{
449 return 0x00000003; 449 return 0x00000003U;
450} 450}
451static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_f(void) 451static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_f(void)
452{ 452{
453 return 0x300; 453 return 0x300U;
454} 454}
455static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_v(u32 r) 455static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_v(u32 r)
456{ 456{
457 return (r >> 16) & 0x1; 457 return (r >> 16U) & 0x1U;
458} 458}
459static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_v(void) 459static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_v(void)
460{ 460{
461 return 0x00000001; 461 return 0x00000001U;
462} 462}
463static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_f(void) 463static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_f(void)
464{ 464{
465 return 0x10000; 465 return 0x10000U;
466} 466}
467static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_v(u32 r) 467static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_v(u32 r)
468{ 468{
469 return (r >> 28) & 0x1; 469 return (r >> 28U) & 0x1U;
470} 470}
471static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_v(void) 471static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_v(void)
472{ 472{
473 return 0x00000001; 473 return 0x00000001U;
474} 474}
475static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_f(void) 475static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_f(void)
476{ 476{
477 return 0x10000000; 477 return 0x10000000U;
478} 478}
479static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_v(u32 r) 479static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_v(u32 r)
480{ 480{
481 return (r >> 29) & 0x1; 481 return (r >> 29U) & 0x1U;
482} 482}
483static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_v(void) 483static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_v(void)
484{ 484{
485 return 0x00000001; 485 return 0x00000001U;
486} 486}
487static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_f(void) 487static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_f(void)
488{ 488{
489 return 0x20000000; 489 return 0x20000000U;
490} 490}
491static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_v(u32 r) 491static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_v(u32 r)
492{ 492{
493 return (r >> 30) & 0x1; 493 return (r >> 30U) & 0x1U;
494} 494}
495static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_v(void) 495static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_v(void)
496{ 496{
497 return 0x00000001; 497 return 0x00000001U;
498} 498}
499static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_f(void) 499static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_f(void)
500{ 500{
501 return 0x40000000; 501 return 0x40000000U;
502} 502}
503static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_r(void) 503static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_r(void)
504{ 504{
505 return 0x001402a0; 505 return 0x001402a0U;
506} 506}
507static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_v(u32 r) 507static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_v(u32 r)
508{ 508{
509 return (r >> 0) & 0x1; 509 return (r >> 0U) & 0x1U;
510} 510}
511static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_v(void) 511static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_v(void)
512{ 512{
513 return 0x00000001; 513 return 0x00000001U;
514} 514}
515static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_f(void) 515static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_f(void)
516{ 516{
517 return 0x1; 517 return 0x1U;
518} 518}
519static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_r(void) 519static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_r(void)
520{ 520{
521 return 0x001402a4; 521 return 0x001402a4U;
522} 522}
523static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_v(u32 r) 523static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_v(u32 r)
524{ 524{
525 return (r >> 0) & 0x1; 525 return (r >> 0U) & 0x1U;
526} 526}
527static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_v(void) 527static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_v(void)
528{ 528{
529 return 0x00000001; 529 return 0x00000001U;
530} 530}
531static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_f(void) 531static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_f(void)
532{ 532{
533 return 0x1; 533 return 0x1U;
534} 534}
535static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_r(void) 535static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_r(void)
536{ 536{
537 return 0x001422a0; 537 return 0x001422a0U;
538} 538}
539static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_v(u32 r) 539static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_v(u32 r)
540{ 540{
541 return (r >> 0) & 0x1; 541 return (r >> 0U) & 0x1U;
542} 542}
543static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_v(void) 543static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_v(void)
544{ 544{
545 return 0x00000001; 545 return 0x00000001U;
546} 546}
547static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_f(void) 547static inline u32 ltc_ltc1_ltss_tstg_cmgmt0_invalidate_pending_f(void)
548{ 548{
549 return 0x1; 549 return 0x1U;
550} 550}
551static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_r(void) 551static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_r(void)
552{ 552{
553 return 0x001422a4; 553 return 0x001422a4U;
554} 554}
555static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_v(u32 r) 555static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_v(u32 r)
556{ 556{
557 return (r >> 0) & 0x1; 557 return (r >> 0U) & 0x1U;
558} 558}
559static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_v(void) 559static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_v(void)
560{ 560{
561 return 0x00000001; 561 return 0x00000001U;
562} 562}
563static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_f(void) 563static inline u32 ltc_ltc1_ltss_tstg_cmgmt1_clean_pending_f(void)
564{ 564{
565 return 0x1; 565 return 0x1U;
566} 566}
567static inline u32 ltc_ltc0_lts0_tstg_info_1_r(void) 567static inline u32 ltc_ltc0_lts0_tstg_info_1_r(void)
568{ 568{
569 return 0x0014058c; 569 return 0x0014058cU;
570} 570}
571static inline u32 ltc_ltc0_lts0_tstg_info_1_slice_size_in_kb_v(u32 r) 571static inline u32 ltc_ltc0_lts0_tstg_info_1_slice_size_in_kb_v(u32 r)
572{ 572{
573 return (r >> 0) & 0xffff; 573 return (r >> 0U) & 0xffffU;
574} 574}
575static inline u32 ltc_ltc0_lts0_tstg_info_1_slices_per_l2_v(u32 r) 575static inline u32 ltc_ltc0_lts0_tstg_info_1_slices_per_l2_v(u32 r)
576{ 576{
577 return (r >> 16) & 0x1f; 577 return (r >> 16U) & 0x1fU;
578} 578}
579static inline u32 ltc_ltca_g_axi_pctrl_r(void) 579static inline u32 ltc_ltca_g_axi_pctrl_r(void)
580{ 580{
581 return 0x00160000; 581 return 0x00160000U;
582} 582}
583static inline u32 ltc_ltca_g_axi_pctrl_user_sid_f(u32 v) 583static inline u32 ltc_ltca_g_axi_pctrl_user_sid_f(u32 v)
584{ 584{
585 return (v & 0xff) << 2; 585 return (v & 0xffU) << 2U;
586} 586}
587#endif 587#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_mc_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_mc_gp10b.h
index 9d1d6189..dbf0ce35 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_mc_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_mc_gp10b.h
@@ -58,194 +58,194 @@
58 58
59static inline u32 mc_boot_0_r(void) 59static inline u32 mc_boot_0_r(void)
60{ 60{
61 return 0x00000000; 61 return 0x00000000U;
62} 62}
63static inline u32 mc_boot_0_architecture_v(u32 r) 63static inline u32 mc_boot_0_architecture_v(u32 r)
64{ 64{
65 return (r >> 24) & 0x1f; 65 return (r >> 24U) & 0x1fU;
66} 66}
67static inline u32 mc_boot_0_implementation_v(u32 r) 67static inline u32 mc_boot_0_implementation_v(u32 r)
68{ 68{
69 return (r >> 20) & 0xf; 69 return (r >> 20U) & 0xfU;
70} 70}
71static inline u32 mc_boot_0_major_revision_v(u32 r) 71static inline u32 mc_boot_0_major_revision_v(u32 r)
72{ 72{
73 return (r >> 4) & 0xf; 73 return (r >> 4U) & 0xfU;
74} 74}
75static inline u32 mc_boot_0_minor_revision_v(u32 r) 75static inline u32 mc_boot_0_minor_revision_v(u32 r)
76{ 76{
77 return (r >> 0) & 0xf; 77 return (r >> 0U) & 0xfU;
78} 78}
79static inline u32 mc_intr_r(u32 i) 79static inline u32 mc_intr_r(u32 i)
80{ 80{
81 return 0x00000100 + i*4; 81 return 0x00000100U + i*4U;
82} 82}
83static inline u32 mc_intr_pfifo_pending_f(void) 83static inline u32 mc_intr_pfifo_pending_f(void)
84{ 84{
85 return 0x100; 85 return 0x100U;
86} 86}
87static inline u32 mc_intr_replayable_fault_pending_f(void) 87static inline u32 mc_intr_replayable_fault_pending_f(void)
88{ 88{
89 return 0x200; 89 return 0x200U;
90} 90}
91static inline u32 mc_intr_pgraph_pending_f(void) 91static inline u32 mc_intr_pgraph_pending_f(void)
92{ 92{
93 return 0x1000; 93 return 0x1000U;
94} 94}
95static inline u32 mc_intr_pmu_pending_f(void) 95static inline u32 mc_intr_pmu_pending_f(void)
96{ 96{
97 return 0x1000000; 97 return 0x1000000U;
98} 98}
99static inline u32 mc_intr_ltc_pending_f(void) 99static inline u32 mc_intr_ltc_pending_f(void)
100{ 100{
101 return 0x2000000; 101 return 0x2000000U;
102} 102}
103static inline u32 mc_intr_priv_ring_pending_f(void) 103static inline u32 mc_intr_priv_ring_pending_f(void)
104{ 104{
105 return 0x40000000; 105 return 0x40000000U;
106} 106}
107static inline u32 mc_intr_pbus_pending_f(void) 107static inline u32 mc_intr_pbus_pending_f(void)
108{ 108{
109 return 0x10000000; 109 return 0x10000000U;
110} 110}
111static inline u32 mc_intr_en_r(u32 i) 111static inline u32 mc_intr_en_r(u32 i)
112{ 112{
113 return 0x00000140 + i*4; 113 return 0x00000140U + i*4U;
114} 114}
115static inline u32 mc_intr_en_set_r(u32 i) 115static inline u32 mc_intr_en_set_r(u32 i)
116{ 116{
117 return 0x00000160 + i*4; 117 return 0x00000160U + i*4U;
118} 118}
119static inline u32 mc_intr_en_clear_r(u32 i) 119static inline u32 mc_intr_en_clear_r(u32 i)
120{ 120{
121 return 0x00000180 + i*4; 121 return 0x00000180U + i*4U;
122} 122}
123static inline u32 mc_enable_r(void) 123static inline u32 mc_enable_r(void)
124{ 124{
125 return 0x00000200; 125 return 0x00000200U;
126} 126}
127static inline u32 mc_enable_xbar_enabled_f(void) 127static inline u32 mc_enable_xbar_enabled_f(void)
128{ 128{
129 return 0x4; 129 return 0x4U;
130} 130}
131static inline u32 mc_enable_l2_enabled_f(void) 131static inline u32 mc_enable_l2_enabled_f(void)
132{ 132{
133 return 0x8; 133 return 0x8U;
134} 134}
135static inline u32 mc_enable_pmedia_s(void) 135static inline u32 mc_enable_pmedia_s(void)
136{ 136{
137 return 1; 137 return 1U;
138} 138}
139static inline u32 mc_enable_pmedia_f(u32 v) 139static inline u32 mc_enable_pmedia_f(u32 v)
140{ 140{
141 return (v & 0x1) << 4; 141 return (v & 0x1U) << 4U;
142} 142}
143static inline u32 mc_enable_pmedia_m(void) 143static inline u32 mc_enable_pmedia_m(void)
144{ 144{
145 return 0x1 << 4; 145 return 0x1U << 4U;
146} 146}
147static inline u32 mc_enable_pmedia_v(u32 r) 147static inline u32 mc_enable_pmedia_v(u32 r)
148{ 148{
149 return (r >> 4) & 0x1; 149 return (r >> 4U) & 0x1U;
150} 150}
151static inline u32 mc_enable_priv_ring_enabled_f(void) 151static inline u32 mc_enable_priv_ring_enabled_f(void)
152{ 152{
153 return 0x20; 153 return 0x20U;
154} 154}
155static inline u32 mc_enable_ce0_m(void) 155static inline u32 mc_enable_ce0_m(void)
156{ 156{
157 return 0x1 << 6; 157 return 0x1U << 6U;
158} 158}
159static inline u32 mc_enable_pfifo_enabled_f(void) 159static inline u32 mc_enable_pfifo_enabled_f(void)
160{ 160{
161 return 0x100; 161 return 0x100U;
162} 162}
163static inline u32 mc_enable_pgraph_enabled_f(void) 163static inline u32 mc_enable_pgraph_enabled_f(void)
164{ 164{
165 return 0x1000; 165 return 0x1000U;
166} 166}
167static inline u32 mc_enable_pwr_v(u32 r) 167static inline u32 mc_enable_pwr_v(u32 r)
168{ 168{
169 return (r >> 13) & 0x1; 169 return (r >> 13U) & 0x1U;
170} 170}
171static inline u32 mc_enable_pwr_disabled_v(void) 171static inline u32 mc_enable_pwr_disabled_v(void)
172{ 172{
173 return 0x00000000; 173 return 0x00000000U;
174} 174}
175static inline u32 mc_enable_pwr_enabled_f(void) 175static inline u32 mc_enable_pwr_enabled_f(void)
176{ 176{
177 return 0x2000; 177 return 0x2000U;
178} 178}
179static inline u32 mc_enable_pfb_enabled_f(void) 179static inline u32 mc_enable_pfb_enabled_f(void)
180{ 180{
181 return 0x100000; 181 return 0x100000U;
182} 182}
183static inline u32 mc_enable_ce2_m(void) 183static inline u32 mc_enable_ce2_m(void)
184{ 184{
185 return 0x1 << 21; 185 return 0x1U << 21U;
186} 186}
187static inline u32 mc_enable_ce2_enabled_f(void) 187static inline u32 mc_enable_ce2_enabled_f(void)
188{ 188{
189 return 0x200000; 189 return 0x200000U;
190} 190}
191static inline u32 mc_enable_blg_enabled_f(void) 191static inline u32 mc_enable_blg_enabled_f(void)
192{ 192{
193 return 0x8000000; 193 return 0x8000000U;
194} 194}
195static inline u32 mc_enable_perfmon_enabled_f(void) 195static inline u32 mc_enable_perfmon_enabled_f(void)
196{ 196{
197 return 0x10000000; 197 return 0x10000000U;
198} 198}
199static inline u32 mc_enable_hub_enabled_f(void) 199static inline u32 mc_enable_hub_enabled_f(void)
200{ 200{
201 return 0x20000000; 201 return 0x20000000U;
202} 202}
203static inline u32 mc_intr_ltc_r(void) 203static inline u32 mc_intr_ltc_r(void)
204{ 204{
205 return 0x000001c0; 205 return 0x000001c0U;
206} 206}
207static inline u32 mc_enable_pb_r(void) 207static inline u32 mc_enable_pb_r(void)
208{ 208{
209 return 0x00000204; 209 return 0x00000204U;
210} 210}
211static inline u32 mc_enable_pb_0_s(void) 211static inline u32 mc_enable_pb_0_s(void)
212{ 212{
213 return 1; 213 return 1U;
214} 214}
215static inline u32 mc_enable_pb_0_f(u32 v) 215static inline u32 mc_enable_pb_0_f(u32 v)
216{ 216{
217 return (v & 0x1) << 0; 217 return (v & 0x1U) << 0U;
218} 218}
219static inline u32 mc_enable_pb_0_m(void) 219static inline u32 mc_enable_pb_0_m(void)
220{ 220{
221 return 0x1 << 0; 221 return 0x1U << 0U;
222} 222}
223static inline u32 mc_enable_pb_0_v(u32 r) 223static inline u32 mc_enable_pb_0_v(u32 r)
224{ 224{
225 return (r >> 0) & 0x1; 225 return (r >> 0U) & 0x1U;
226} 226}
227static inline u32 mc_enable_pb_0_enabled_v(void) 227static inline u32 mc_enable_pb_0_enabled_v(void)
228{ 228{
229 return 0x00000001; 229 return 0x00000001U;
230} 230}
231static inline u32 mc_enable_pb_sel_f(u32 v, u32 i) 231static inline u32 mc_enable_pb_sel_f(u32 v, u32 i)
232{ 232{
233 return (v & 0x1) << (0 + i*1); 233 return (v & 0x1U) << (0U + i*1U);
234} 234}
235static inline u32 mc_elpg_enable_r(void) 235static inline u32 mc_elpg_enable_r(void)
236{ 236{
237 return 0x0000020c; 237 return 0x0000020cU;
238} 238}
239static inline u32 mc_elpg_enable_xbar_enabled_f(void) 239static inline u32 mc_elpg_enable_xbar_enabled_f(void)
240{ 240{
241 return 0x4; 241 return 0x4U;
242} 242}
243static inline u32 mc_elpg_enable_pfb_enabled_f(void) 243static inline u32 mc_elpg_enable_pfb_enabled_f(void)
244{ 244{
245 return 0x100000; 245 return 0x100000U;
246} 246}
247static inline u32 mc_elpg_enable_hub_enabled_f(void) 247static inline u32 mc_elpg_enable_hub_enabled_f(void)
248{ 248{
249 return 0x20000000; 249 return 0x20000000U;
250} 250}
251#endif 251#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h
index f9d413de..d49cc95f 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pbdma_gp10b.h
@@ -58,542 +58,542 @@
58 58
59static inline u32 pbdma_gp_entry1_r(void) 59static inline u32 pbdma_gp_entry1_r(void)
60{ 60{
61 return 0x10000004; 61 return 0x10000004U;
62} 62}
63static inline u32 pbdma_gp_entry1_get_hi_v(u32 r) 63static inline u32 pbdma_gp_entry1_get_hi_v(u32 r)
64{ 64{
65 return (r >> 0) & 0xff; 65 return (r >> 0U) & 0xffU;
66} 66}
67static inline u32 pbdma_gp_entry1_length_f(u32 v) 67static inline u32 pbdma_gp_entry1_length_f(u32 v)
68{ 68{
69 return (v & 0x1fffff) << 10; 69 return (v & 0x1fffffU) << 10U;
70} 70}
71static inline u32 pbdma_gp_entry1_length_v(u32 r) 71static inline u32 pbdma_gp_entry1_length_v(u32 r)
72{ 72{
73 return (r >> 10) & 0x1fffff; 73 return (r >> 10U) & 0x1fffffU;
74} 74}
75static inline u32 pbdma_gp_base_r(u32 i) 75static inline u32 pbdma_gp_base_r(u32 i)
76{ 76{
77 return 0x00040048 + i*8192; 77 return 0x00040048U + i*8192U;
78} 78}
79static inline u32 pbdma_gp_base__size_1_v(void) 79static inline u32 pbdma_gp_base__size_1_v(void)
80{ 80{
81 return 0x00000001; 81 return 0x00000001U;
82} 82}
83static inline u32 pbdma_gp_base_offset_f(u32 v) 83static inline u32 pbdma_gp_base_offset_f(u32 v)
84{ 84{
85 return (v & 0x1fffffff) << 3; 85 return (v & 0x1fffffffU) << 3U;
86} 86}
87static inline u32 pbdma_gp_base_rsvd_s(void) 87static inline u32 pbdma_gp_base_rsvd_s(void)
88{ 88{
89 return 3; 89 return 3U;
90} 90}
91static inline u32 pbdma_gp_base_hi_r(u32 i) 91static inline u32 pbdma_gp_base_hi_r(u32 i)
92{ 92{
93 return 0x0004004c + i*8192; 93 return 0x0004004cU + i*8192U;
94} 94}
95static inline u32 pbdma_gp_base_hi_offset_f(u32 v) 95static inline u32 pbdma_gp_base_hi_offset_f(u32 v)
96{ 96{
97 return (v & 0xff) << 0; 97 return (v & 0xffU) << 0U;
98} 98}
99static inline u32 pbdma_gp_base_hi_limit2_f(u32 v) 99static inline u32 pbdma_gp_base_hi_limit2_f(u32 v)
100{ 100{
101 return (v & 0x1f) << 16; 101 return (v & 0x1fU) << 16U;
102} 102}
103static inline u32 pbdma_gp_fetch_r(u32 i) 103static inline u32 pbdma_gp_fetch_r(u32 i)
104{ 104{
105 return 0x00040050 + i*8192; 105 return 0x00040050U + i*8192U;
106} 106}
107static inline u32 pbdma_gp_get_r(u32 i) 107static inline u32 pbdma_gp_get_r(u32 i)
108{ 108{
109 return 0x00040014 + i*8192; 109 return 0x00040014U + i*8192U;
110} 110}
111static inline u32 pbdma_gp_put_r(u32 i) 111static inline u32 pbdma_gp_put_r(u32 i)
112{ 112{
113 return 0x00040000 + i*8192; 113 return 0x00040000U + i*8192U;
114} 114}
115static inline u32 pbdma_pb_fetch_r(u32 i) 115static inline u32 pbdma_pb_fetch_r(u32 i)
116{ 116{
117 return 0x00040054 + i*8192; 117 return 0x00040054U + i*8192U;
118} 118}
119static inline u32 pbdma_pb_fetch_hi_r(u32 i) 119static inline u32 pbdma_pb_fetch_hi_r(u32 i)
120{ 120{
121 return 0x00040058 + i*8192; 121 return 0x00040058U + i*8192U;
122} 122}
123static inline u32 pbdma_get_r(u32 i) 123static inline u32 pbdma_get_r(u32 i)
124{ 124{
125 return 0x00040018 + i*8192; 125 return 0x00040018U + i*8192U;
126} 126}
127static inline u32 pbdma_get_hi_r(u32 i) 127static inline u32 pbdma_get_hi_r(u32 i)
128{ 128{
129 return 0x0004001c + i*8192; 129 return 0x0004001cU + i*8192U;
130} 130}
131static inline u32 pbdma_put_r(u32 i) 131static inline u32 pbdma_put_r(u32 i)
132{ 132{
133 return 0x0004005c + i*8192; 133 return 0x0004005cU + i*8192U;
134} 134}
135static inline u32 pbdma_put_hi_r(u32 i) 135static inline u32 pbdma_put_hi_r(u32 i)
136{ 136{
137 return 0x00040060 + i*8192; 137 return 0x00040060U + i*8192U;
138} 138}
139static inline u32 pbdma_formats_r(u32 i) 139static inline u32 pbdma_formats_r(u32 i)
140{ 140{
141 return 0x0004009c + i*8192; 141 return 0x0004009cU + i*8192U;
142} 142}
143static inline u32 pbdma_formats_gp_fermi0_f(void) 143static inline u32 pbdma_formats_gp_fermi0_f(void)
144{ 144{
145 return 0x0; 145 return 0x0U;
146} 146}
147static inline u32 pbdma_formats_pb_fermi1_f(void) 147static inline u32 pbdma_formats_pb_fermi1_f(void)
148{ 148{
149 return 0x100; 149 return 0x100U;
150} 150}
151static inline u32 pbdma_formats_mp_fermi0_f(void) 151static inline u32 pbdma_formats_mp_fermi0_f(void)
152{ 152{
153 return 0x0; 153 return 0x0U;
154} 154}
155static inline u32 pbdma_pb_header_r(u32 i) 155static inline u32 pbdma_pb_header_r(u32 i)
156{ 156{
157 return 0x00040084 + i*8192; 157 return 0x00040084U + i*8192U;
158} 158}
159static inline u32 pbdma_pb_header_priv_user_f(void) 159static inline u32 pbdma_pb_header_priv_user_f(void)
160{ 160{
161 return 0x0; 161 return 0x0U;
162} 162}
163static inline u32 pbdma_pb_header_method_zero_f(void) 163static inline u32 pbdma_pb_header_method_zero_f(void)
164{ 164{
165 return 0x0; 165 return 0x0U;
166} 166}
167static inline u32 pbdma_pb_header_subchannel_zero_f(void) 167static inline u32 pbdma_pb_header_subchannel_zero_f(void)
168{ 168{
169 return 0x0; 169 return 0x0U;
170} 170}
171static inline u32 pbdma_pb_header_level_main_f(void) 171static inline u32 pbdma_pb_header_level_main_f(void)
172{ 172{
173 return 0x0; 173 return 0x0U;
174} 174}
175static inline u32 pbdma_pb_header_first_true_f(void) 175static inline u32 pbdma_pb_header_first_true_f(void)
176{ 176{
177 return 0x400000; 177 return 0x400000U;
178} 178}
179static inline u32 pbdma_pb_header_type_inc_f(void) 179static inline u32 pbdma_pb_header_type_inc_f(void)
180{ 180{
181 return 0x20000000; 181 return 0x20000000U;
182} 182}
183static inline u32 pbdma_pb_header_type_non_inc_f(void) 183static inline u32 pbdma_pb_header_type_non_inc_f(void)
184{ 184{
185 return 0x60000000; 185 return 0x60000000U;
186} 186}
187static inline u32 pbdma_hdr_shadow_r(u32 i) 187static inline u32 pbdma_hdr_shadow_r(u32 i)
188{ 188{
189 return 0x00040118 + i*8192; 189 return 0x00040118U + i*8192U;
190} 190}
191static inline u32 pbdma_subdevice_r(u32 i) 191static inline u32 pbdma_subdevice_r(u32 i)
192{ 192{
193 return 0x00040094 + i*8192; 193 return 0x00040094U + i*8192U;
194} 194}
195static inline u32 pbdma_subdevice_id_f(u32 v) 195static inline u32 pbdma_subdevice_id_f(u32 v)
196{ 196{
197 return (v & 0xfff) << 0; 197 return (v & 0xfffU) << 0U;
198} 198}
199static inline u32 pbdma_subdevice_status_active_f(void) 199static inline u32 pbdma_subdevice_status_active_f(void)
200{ 200{
201 return 0x10000000; 201 return 0x10000000U;
202} 202}
203static inline u32 pbdma_subdevice_channel_dma_enable_f(void) 203static inline u32 pbdma_subdevice_channel_dma_enable_f(void)
204{ 204{
205 return 0x20000000; 205 return 0x20000000U;
206} 206}
207static inline u32 pbdma_method0_r(u32 i) 207static inline u32 pbdma_method0_r(u32 i)
208{ 208{
209 return 0x000400c0 + i*8192; 209 return 0x000400c0U + i*8192U;
210} 210}
211static inline u32 pbdma_method0_fifo_size_v(void) 211static inline u32 pbdma_method0_fifo_size_v(void)
212{ 212{
213 return 0x00000004; 213 return 0x00000004U;
214} 214}
215static inline u32 pbdma_method0_addr_f(u32 v) 215static inline u32 pbdma_method0_addr_f(u32 v)
216{ 216{
217 return (v & 0xfff) << 2; 217 return (v & 0xfffU) << 2U;
218} 218}
219static inline u32 pbdma_method0_addr_v(u32 r) 219static inline u32 pbdma_method0_addr_v(u32 r)
220{ 220{
221 return (r >> 2) & 0xfff; 221 return (r >> 2U) & 0xfffU;
222} 222}
223static inline u32 pbdma_method0_subch_v(u32 r) 223static inline u32 pbdma_method0_subch_v(u32 r)
224{ 224{
225 return (r >> 16) & 0x7; 225 return (r >> 16U) & 0x7U;
226} 226}
227static inline u32 pbdma_method0_first_true_f(void) 227static inline u32 pbdma_method0_first_true_f(void)
228{ 228{
229 return 0x400000; 229 return 0x400000U;
230} 230}
231static inline u32 pbdma_method0_valid_true_f(void) 231static inline u32 pbdma_method0_valid_true_f(void)
232{ 232{
233 return 0x80000000; 233 return 0x80000000U;
234} 234}
235static inline u32 pbdma_method1_r(u32 i) 235static inline u32 pbdma_method1_r(u32 i)
236{ 236{
237 return 0x000400c8 + i*8192; 237 return 0x000400c8U + i*8192U;
238} 238}
239static inline u32 pbdma_method2_r(u32 i) 239static inline u32 pbdma_method2_r(u32 i)
240{ 240{
241 return 0x000400d0 + i*8192; 241 return 0x000400d0U + i*8192U;
242} 242}
243static inline u32 pbdma_method3_r(u32 i) 243static inline u32 pbdma_method3_r(u32 i)
244{ 244{
245 return 0x000400d8 + i*8192; 245 return 0x000400d8U + i*8192U;
246} 246}
247static inline u32 pbdma_data0_r(u32 i) 247static inline u32 pbdma_data0_r(u32 i)
248{ 248{
249 return 0x000400c4 + i*8192; 249 return 0x000400c4U + i*8192U;
250} 250}
251static inline u32 pbdma_target_r(u32 i) 251static inline u32 pbdma_target_r(u32 i)
252{ 252{
253 return 0x000400ac + i*8192; 253 return 0x000400acU + i*8192U;
254} 254}
255static inline u32 pbdma_target_engine_sw_f(void) 255static inline u32 pbdma_target_engine_sw_f(void)
256{ 256{
257 return 0x1f; 257 return 0x1fU;
258} 258}
259static inline u32 pbdma_acquire_r(u32 i) 259static inline u32 pbdma_acquire_r(u32 i)
260{ 260{
261 return 0x00040030 + i*8192; 261 return 0x00040030U + i*8192U;
262} 262}
263static inline u32 pbdma_acquire_retry_man_2_f(void) 263static inline u32 pbdma_acquire_retry_man_2_f(void)
264{ 264{
265 return 0x2; 265 return 0x2U;
266} 266}
267static inline u32 pbdma_acquire_retry_exp_2_f(void) 267static inline u32 pbdma_acquire_retry_exp_2_f(void)
268{ 268{
269 return 0x100; 269 return 0x100U;
270} 270}
271static inline u32 pbdma_acquire_timeout_exp_f(u32 v) 271static inline u32 pbdma_acquire_timeout_exp_f(u32 v)
272{ 272{
273 return (v & 0xf) << 11; 273 return (v & 0xfU) << 11U;
274} 274}
275static inline u32 pbdma_acquire_timeout_exp_max_v(void) 275static inline u32 pbdma_acquire_timeout_exp_max_v(void)
276{ 276{
277 return 0x0000000f; 277 return 0x0000000fU;
278} 278}
279static inline u32 pbdma_acquire_timeout_exp_max_f(void) 279static inline u32 pbdma_acquire_timeout_exp_max_f(void)
280{ 280{
281 return 0x7800; 281 return 0x7800U;
282} 282}
283static inline u32 pbdma_acquire_timeout_man_f(u32 v) 283static inline u32 pbdma_acquire_timeout_man_f(u32 v)
284{ 284{
285 return (v & 0xffff) << 15; 285 return (v & 0xffffU) << 15U;
286} 286}
287static inline u32 pbdma_acquire_timeout_man_max_v(void) 287static inline u32 pbdma_acquire_timeout_man_max_v(void)
288{ 288{
289 return 0x0000ffff; 289 return 0x0000ffffU;
290} 290}
291static inline u32 pbdma_acquire_timeout_man_max_f(void) 291static inline u32 pbdma_acquire_timeout_man_max_f(void)
292{ 292{
293 return 0x7fff8000; 293 return 0x7fff8000U;
294} 294}
295static inline u32 pbdma_acquire_timeout_en_enable_f(void) 295static inline u32 pbdma_acquire_timeout_en_enable_f(void)
296{ 296{
297 return 0x80000000; 297 return 0x80000000U;
298} 298}
299static inline u32 pbdma_acquire_timeout_en_disable_f(void) 299static inline u32 pbdma_acquire_timeout_en_disable_f(void)
300{ 300{
301 return 0x0; 301 return 0x0U;
302} 302}
303static inline u32 pbdma_status_r(u32 i) 303static inline u32 pbdma_status_r(u32 i)
304{ 304{
305 return 0x00040100 + i*8192; 305 return 0x00040100U + i*8192U;
306} 306}
307static inline u32 pbdma_channel_r(u32 i) 307static inline u32 pbdma_channel_r(u32 i)
308{ 308{
309 return 0x00040120 + i*8192; 309 return 0x00040120U + i*8192U;
310} 310}
311static inline u32 pbdma_signature_r(u32 i) 311static inline u32 pbdma_signature_r(u32 i)
312{ 312{
313 return 0x00040010 + i*8192; 313 return 0x00040010U + i*8192U;
314} 314}
315static inline u32 pbdma_signature_hw_valid_f(void) 315static inline u32 pbdma_signature_hw_valid_f(void)
316{ 316{
317 return 0xface; 317 return 0xfaceU;
318} 318}
319static inline u32 pbdma_signature_sw_zero_f(void) 319static inline u32 pbdma_signature_sw_zero_f(void)
320{ 320{
321 return 0x0; 321 return 0x0U;
322} 322}
323static inline u32 pbdma_userd_r(u32 i) 323static inline u32 pbdma_userd_r(u32 i)
324{ 324{
325 return 0x00040008 + i*8192; 325 return 0x00040008U + i*8192U;
326} 326}
327static inline u32 pbdma_userd_target_vid_mem_f(void) 327static inline u32 pbdma_userd_target_vid_mem_f(void)
328{ 328{
329 return 0x0; 329 return 0x0U;
330} 330}
331static inline u32 pbdma_userd_target_sys_mem_coh_f(void) 331static inline u32 pbdma_userd_target_sys_mem_coh_f(void)
332{ 332{
333 return 0x2; 333 return 0x2U;
334} 334}
335static inline u32 pbdma_userd_target_sys_mem_ncoh_f(void) 335static inline u32 pbdma_userd_target_sys_mem_ncoh_f(void)
336{ 336{
337 return 0x3; 337 return 0x3U;
338} 338}
339static inline u32 pbdma_userd_addr_f(u32 v) 339static inline u32 pbdma_userd_addr_f(u32 v)
340{ 340{
341 return (v & 0x7fffff) << 9; 341 return (v & 0x7fffffU) << 9U;
342} 342}
343static inline u32 pbdma_userd_hi_r(u32 i) 343static inline u32 pbdma_userd_hi_r(u32 i)
344{ 344{
345 return 0x0004000c + i*8192; 345 return 0x0004000cU + i*8192U;
346} 346}
347static inline u32 pbdma_userd_hi_addr_f(u32 v) 347static inline u32 pbdma_userd_hi_addr_f(u32 v)
348{ 348{
349 return (v & 0xff) << 0; 349 return (v & 0xffU) << 0U;
350} 350}
351static inline u32 pbdma_config_r(u32 i) 351static inline u32 pbdma_config_r(u32 i)
352{ 352{
353 return 0x000400f4 + i*8192; 353 return 0x000400f4U + i*8192U;
354} 354}
355static inline u32 pbdma_config_auth_level_privileged_f(void) 355static inline u32 pbdma_config_auth_level_privileged_f(void)
356{ 356{
357 return 0x100; 357 return 0x100U;
358} 358}
359static inline u32 pbdma_hce_ctrl_r(u32 i) 359static inline u32 pbdma_hce_ctrl_r(u32 i)
360{ 360{
361 return 0x000400e4 + i*8192; 361 return 0x000400e4U + i*8192U;
362} 362}
363static inline u32 pbdma_hce_ctrl_hce_priv_mode_yes_f(void) 363static inline u32 pbdma_hce_ctrl_hce_priv_mode_yes_f(void)
364{ 364{
365 return 0x20; 365 return 0x20U;
366} 366}
367static inline u32 pbdma_intr_0_r(u32 i) 367static inline u32 pbdma_intr_0_r(u32 i)
368{ 368{
369 return 0x00040108 + i*8192; 369 return 0x00040108U + i*8192U;
370} 370}
371static inline u32 pbdma_intr_0_memreq_v(u32 r) 371static inline u32 pbdma_intr_0_memreq_v(u32 r)
372{ 372{
373 return (r >> 0) & 0x1; 373 return (r >> 0U) & 0x1U;
374} 374}
375static inline u32 pbdma_intr_0_memreq_pending_f(void) 375static inline u32 pbdma_intr_0_memreq_pending_f(void)
376{ 376{
377 return 0x1; 377 return 0x1U;
378} 378}
379static inline u32 pbdma_intr_0_memack_timeout_pending_f(void) 379static inline u32 pbdma_intr_0_memack_timeout_pending_f(void)
380{ 380{
381 return 0x2; 381 return 0x2U;
382} 382}
383static inline u32 pbdma_intr_0_memack_extra_pending_f(void) 383static inline u32 pbdma_intr_0_memack_extra_pending_f(void)
384{ 384{
385 return 0x4; 385 return 0x4U;
386} 386}
387static inline u32 pbdma_intr_0_memdat_timeout_pending_f(void) 387static inline u32 pbdma_intr_0_memdat_timeout_pending_f(void)
388{ 388{
389 return 0x8; 389 return 0x8U;
390} 390}
391static inline u32 pbdma_intr_0_memdat_extra_pending_f(void) 391static inline u32 pbdma_intr_0_memdat_extra_pending_f(void)
392{ 392{
393 return 0x10; 393 return 0x10U;
394} 394}
395static inline u32 pbdma_intr_0_memflush_pending_f(void) 395static inline u32 pbdma_intr_0_memflush_pending_f(void)
396{ 396{
397 return 0x20; 397 return 0x20U;
398} 398}
399static inline u32 pbdma_intr_0_memop_pending_f(void) 399static inline u32 pbdma_intr_0_memop_pending_f(void)
400{ 400{
401 return 0x40; 401 return 0x40U;
402} 402}
403static inline u32 pbdma_intr_0_lbconnect_pending_f(void) 403static inline u32 pbdma_intr_0_lbconnect_pending_f(void)
404{ 404{
405 return 0x80; 405 return 0x80U;
406} 406}
407static inline u32 pbdma_intr_0_lbreq_pending_f(void) 407static inline u32 pbdma_intr_0_lbreq_pending_f(void)
408{ 408{
409 return 0x100; 409 return 0x100U;
410} 410}
411static inline u32 pbdma_intr_0_lback_timeout_pending_f(void) 411static inline u32 pbdma_intr_0_lback_timeout_pending_f(void)
412{ 412{
413 return 0x200; 413 return 0x200U;
414} 414}
415static inline u32 pbdma_intr_0_lback_extra_pending_f(void) 415static inline u32 pbdma_intr_0_lback_extra_pending_f(void)
416{ 416{
417 return 0x400; 417 return 0x400U;
418} 418}
419static inline u32 pbdma_intr_0_lbdat_timeout_pending_f(void) 419static inline u32 pbdma_intr_0_lbdat_timeout_pending_f(void)
420{ 420{
421 return 0x800; 421 return 0x800U;
422} 422}
423static inline u32 pbdma_intr_0_lbdat_extra_pending_f(void) 423static inline u32 pbdma_intr_0_lbdat_extra_pending_f(void)
424{ 424{
425 return 0x1000; 425 return 0x1000U;
426} 426}
427static inline u32 pbdma_intr_0_gpfifo_pending_f(void) 427static inline u32 pbdma_intr_0_gpfifo_pending_f(void)
428{ 428{
429 return 0x2000; 429 return 0x2000U;
430} 430}
431static inline u32 pbdma_intr_0_gpptr_pending_f(void) 431static inline u32 pbdma_intr_0_gpptr_pending_f(void)
432{ 432{
433 return 0x4000; 433 return 0x4000U;
434} 434}
435static inline u32 pbdma_intr_0_gpentry_pending_f(void) 435static inline u32 pbdma_intr_0_gpentry_pending_f(void)
436{ 436{
437 return 0x8000; 437 return 0x8000U;
438} 438}
439static inline u32 pbdma_intr_0_gpcrc_pending_f(void) 439static inline u32 pbdma_intr_0_gpcrc_pending_f(void)
440{ 440{
441 return 0x10000; 441 return 0x10000U;
442} 442}
443static inline u32 pbdma_intr_0_pbptr_pending_f(void) 443static inline u32 pbdma_intr_0_pbptr_pending_f(void)
444{ 444{
445 return 0x20000; 445 return 0x20000U;
446} 446}
447static inline u32 pbdma_intr_0_pbentry_pending_f(void) 447static inline u32 pbdma_intr_0_pbentry_pending_f(void)
448{ 448{
449 return 0x40000; 449 return 0x40000U;
450} 450}
451static inline u32 pbdma_intr_0_pbcrc_pending_f(void) 451static inline u32 pbdma_intr_0_pbcrc_pending_f(void)
452{ 452{
453 return 0x80000; 453 return 0x80000U;
454} 454}
455static inline u32 pbdma_intr_0_xbarconnect_pending_f(void) 455static inline u32 pbdma_intr_0_xbarconnect_pending_f(void)
456{ 456{
457 return 0x100000; 457 return 0x100000U;
458} 458}
459static inline u32 pbdma_intr_0_method_pending_f(void) 459static inline u32 pbdma_intr_0_method_pending_f(void)
460{ 460{
461 return 0x200000; 461 return 0x200000U;
462} 462}
463static inline u32 pbdma_intr_0_methodcrc_pending_f(void) 463static inline u32 pbdma_intr_0_methodcrc_pending_f(void)
464{ 464{
465 return 0x400000; 465 return 0x400000U;
466} 466}
467static inline u32 pbdma_intr_0_device_pending_f(void) 467static inline u32 pbdma_intr_0_device_pending_f(void)
468{ 468{
469 return 0x800000; 469 return 0x800000U;
470} 470}
471static inline u32 pbdma_intr_0_semaphore_pending_f(void) 471static inline u32 pbdma_intr_0_semaphore_pending_f(void)
472{ 472{
473 return 0x2000000; 473 return 0x2000000U;
474} 474}
475static inline u32 pbdma_intr_0_acquire_pending_f(void) 475static inline u32 pbdma_intr_0_acquire_pending_f(void)
476{ 476{
477 return 0x4000000; 477 return 0x4000000U;
478} 478}
479static inline u32 pbdma_intr_0_pri_pending_f(void) 479static inline u32 pbdma_intr_0_pri_pending_f(void)
480{ 480{
481 return 0x8000000; 481 return 0x8000000U;
482} 482}
483static inline u32 pbdma_intr_0_no_ctxsw_seg_pending_f(void) 483static inline u32 pbdma_intr_0_no_ctxsw_seg_pending_f(void)
484{ 484{
485 return 0x20000000; 485 return 0x20000000U;
486} 486}
487static inline u32 pbdma_intr_0_pbseg_pending_f(void) 487static inline u32 pbdma_intr_0_pbseg_pending_f(void)
488{ 488{
489 return 0x40000000; 489 return 0x40000000U;
490} 490}
491static inline u32 pbdma_intr_0_signature_pending_f(void) 491static inline u32 pbdma_intr_0_signature_pending_f(void)
492{ 492{
493 return 0x80000000; 493 return 0x80000000U;
494} 494}
495static inline u32 pbdma_intr_0_syncpoint_illegal_pending_f(void) 495static inline u32 pbdma_intr_0_syncpoint_illegal_pending_f(void)
496{ 496{
497 return 0x10000000; 497 return 0x10000000U;
498} 498}
499static inline u32 pbdma_intr_1_r(u32 i) 499static inline u32 pbdma_intr_1_r(u32 i)
500{ 500{
501 return 0x00040148 + i*8192; 501 return 0x00040148U + i*8192U;
502} 502}
503static inline u32 pbdma_intr_en_0_r(u32 i) 503static inline u32 pbdma_intr_en_0_r(u32 i)
504{ 504{
505 return 0x0004010c + i*8192; 505 return 0x0004010cU + i*8192U;
506} 506}
507static inline u32 pbdma_intr_en_0_lbreq_enabled_f(void) 507static inline u32 pbdma_intr_en_0_lbreq_enabled_f(void)
508{ 508{
509 return 0x100; 509 return 0x100U;
510} 510}
511static inline u32 pbdma_intr_en_1_r(u32 i) 511static inline u32 pbdma_intr_en_1_r(u32 i)
512{ 512{
513 return 0x0004014c + i*8192; 513 return 0x0004014cU + i*8192U;
514} 514}
515static inline u32 pbdma_intr_stall_r(u32 i) 515static inline u32 pbdma_intr_stall_r(u32 i)
516{ 516{
517 return 0x0004013c + i*8192; 517 return 0x0004013cU + i*8192U;
518} 518}
519static inline u32 pbdma_intr_stall_lbreq_enabled_f(void) 519static inline u32 pbdma_intr_stall_lbreq_enabled_f(void)
520{ 520{
521 return 0x100; 521 return 0x100U;
522} 522}
523static inline u32 pbdma_udma_nop_r(void) 523static inline u32 pbdma_udma_nop_r(void)
524{ 524{
525 return 0x00000008; 525 return 0x00000008U;
526} 526}
527static inline u32 pbdma_allowed_syncpoints_r(u32 i) 527static inline u32 pbdma_allowed_syncpoints_r(u32 i)
528{ 528{
529 return 0x000400e8 + i*8192; 529 return 0x000400e8U + i*8192U;
530} 530}
531static inline u32 pbdma_allowed_syncpoints_0_valid_f(u32 v) 531static inline u32 pbdma_allowed_syncpoints_0_valid_f(u32 v)
532{ 532{
533 return (v & 0x1) << 31; 533 return (v & 0x1U) << 31U;
534} 534}
535static inline u32 pbdma_allowed_syncpoints_0_index_f(u32 v) 535static inline u32 pbdma_allowed_syncpoints_0_index_f(u32 v)
536{ 536{
537 return (v & 0x7fff) << 16; 537 return (v & 0x7fffU) << 16U;
538} 538}
539static inline u32 pbdma_allowed_syncpoints_0_index_v(u32 r) 539static inline u32 pbdma_allowed_syncpoints_0_index_v(u32 r)
540{ 540{
541 return (r >> 16) & 0x7fff; 541 return (r >> 16U) & 0x7fffU;
542} 542}
543static inline u32 pbdma_allowed_syncpoints_1_valid_f(u32 v) 543static inline u32 pbdma_allowed_syncpoints_1_valid_f(u32 v)
544{ 544{
545 return (v & 0x1) << 15; 545 return (v & 0x1U) << 15U;
546} 546}
547static inline u32 pbdma_allowed_syncpoints_1_index_f(u32 v) 547static inline u32 pbdma_allowed_syncpoints_1_index_f(u32 v)
548{ 548{
549 return (v & 0x7fff) << 0; 549 return (v & 0x7fffU) << 0U;
550} 550}
551static inline u32 pbdma_syncpointa_r(u32 i) 551static inline u32 pbdma_syncpointa_r(u32 i)
552{ 552{
553 return 0x000400a4 + i*8192; 553 return 0x000400a4U + i*8192U;
554} 554}
555static inline u32 pbdma_syncpointa_payload_v(u32 r) 555static inline u32 pbdma_syncpointa_payload_v(u32 r)
556{ 556{
557 return (r >> 0) & 0xffffffff; 557 return (r >> 0U) & 0xffffffffU;
558} 558}
559static inline u32 pbdma_syncpointb_r(u32 i) 559static inline u32 pbdma_syncpointb_r(u32 i)
560{ 560{
561 return 0x000400a8 + i*8192; 561 return 0x000400a8U + i*8192U;
562} 562}
563static inline u32 pbdma_syncpointb_op_v(u32 r) 563static inline u32 pbdma_syncpointb_op_v(u32 r)
564{ 564{
565 return (r >> 0) & 0x1; 565 return (r >> 0U) & 0x1U;
566} 566}
567static inline u32 pbdma_syncpointb_op_wait_v(void) 567static inline u32 pbdma_syncpointb_op_wait_v(void)
568{ 568{
569 return 0x00000000; 569 return 0x00000000U;
570} 570}
571static inline u32 pbdma_syncpointb_wait_switch_v(u32 r) 571static inline u32 pbdma_syncpointb_wait_switch_v(u32 r)
572{ 572{
573 return (r >> 4) & 0x1; 573 return (r >> 4U) & 0x1U;
574} 574}
575static inline u32 pbdma_syncpointb_wait_switch_en_v(void) 575static inline u32 pbdma_syncpointb_wait_switch_en_v(void)
576{ 576{
577 return 0x00000001; 577 return 0x00000001U;
578} 578}
579static inline u32 pbdma_syncpointb_syncpt_index_v(u32 r) 579static inline u32 pbdma_syncpointb_syncpt_index_v(u32 r)
580{ 580{
581 return (r >> 8) & 0xfff; 581 return (r >> 8U) & 0xfffU;
582} 582}
583static inline u32 pbdma_runlist_timeslice_r(u32 i) 583static inline u32 pbdma_runlist_timeslice_r(u32 i)
584{ 584{
585 return 0x000400f8 + i*8192; 585 return 0x000400f8U + i*8192U;
586} 586}
587static inline u32 pbdma_runlist_timeslice_timeout_128_f(void) 587static inline u32 pbdma_runlist_timeslice_timeout_128_f(void)
588{ 588{
589 return 0x80; 589 return 0x80U;
590} 590}
591static inline u32 pbdma_runlist_timeslice_timescale_3_f(void) 591static inline u32 pbdma_runlist_timeslice_timescale_3_f(void)
592{ 592{
593 return 0x3000; 593 return 0x3000U;
594} 594}
595static inline u32 pbdma_runlist_timeslice_enable_true_f(void) 595static inline u32 pbdma_runlist_timeslice_enable_true_f(void)
596{ 596{
597 return 0x10000000; 597 return 0x10000000U;
598} 598}
599#endif 599#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_perf_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_perf_gp10b.h
index 3848ef7a..aa0fafe7 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_perf_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_perf_gp10b.h
@@ -58,154 +58,154 @@
58 58
59static inline u32 perf_pmasys_control_r(void) 59static inline u32 perf_pmasys_control_r(void)
60{ 60{
61 return 0x001b4000; 61 return 0x001b4000U;
62} 62}
63static inline u32 perf_pmasys_control_membuf_status_v(u32 r) 63static inline u32 perf_pmasys_control_membuf_status_v(u32 r)
64{ 64{
65 return (r >> 4) & 0x1; 65 return (r >> 4U) & 0x1U;
66} 66}
67static inline u32 perf_pmasys_control_membuf_status_overflowed_v(void) 67static inline u32 perf_pmasys_control_membuf_status_overflowed_v(void)
68{ 68{
69 return 0x00000001; 69 return 0x00000001U;
70} 70}
71static inline u32 perf_pmasys_control_membuf_status_overflowed_f(void) 71static inline u32 perf_pmasys_control_membuf_status_overflowed_f(void)
72{ 72{
73 return 0x10; 73 return 0x10U;
74} 74}
75static inline u32 perf_pmasys_control_membuf_clear_status_f(u32 v) 75static inline u32 perf_pmasys_control_membuf_clear_status_f(u32 v)
76{ 76{
77 return (v & 0x1) << 5; 77 return (v & 0x1U) << 5U;
78} 78}
79static inline u32 perf_pmasys_control_membuf_clear_status_v(u32 r) 79static inline u32 perf_pmasys_control_membuf_clear_status_v(u32 r)
80{ 80{
81 return (r >> 5) & 0x1; 81 return (r >> 5U) & 0x1U;
82} 82}
83static inline u32 perf_pmasys_control_membuf_clear_status_doit_v(void) 83static inline u32 perf_pmasys_control_membuf_clear_status_doit_v(void)
84{ 84{
85 return 0x00000001; 85 return 0x00000001U;
86} 86}
87static inline u32 perf_pmasys_control_membuf_clear_status_doit_f(void) 87static inline u32 perf_pmasys_control_membuf_clear_status_doit_f(void)
88{ 88{
89 return 0x20; 89 return 0x20U;
90} 90}
91static inline u32 perf_pmasys_mem_block_r(void) 91static inline u32 perf_pmasys_mem_block_r(void)
92{ 92{
93 return 0x001b4070; 93 return 0x001b4070U;
94} 94}
95static inline u32 perf_pmasys_mem_block_base_f(u32 v) 95static inline u32 perf_pmasys_mem_block_base_f(u32 v)
96{ 96{
97 return (v & 0xfffffff) << 0; 97 return (v & 0xfffffffU) << 0U;
98} 98}
99static inline u32 perf_pmasys_mem_block_target_f(u32 v) 99static inline u32 perf_pmasys_mem_block_target_f(u32 v)
100{ 100{
101 return (v & 0x3) << 28; 101 return (v & 0x3U) << 28U;
102} 102}
103static inline u32 perf_pmasys_mem_block_target_v(u32 r) 103static inline u32 perf_pmasys_mem_block_target_v(u32 r)
104{ 104{
105 return (r >> 28) & 0x3; 105 return (r >> 28U) & 0x3U;
106} 106}
107static inline u32 perf_pmasys_mem_block_target_lfb_v(void) 107static inline u32 perf_pmasys_mem_block_target_lfb_v(void)
108{ 108{
109 return 0x00000000; 109 return 0x00000000U;
110} 110}
111static inline u32 perf_pmasys_mem_block_target_lfb_f(void) 111static inline u32 perf_pmasys_mem_block_target_lfb_f(void)
112{ 112{
113 return 0x0; 113 return 0x0U;
114} 114}
115static inline u32 perf_pmasys_mem_block_target_sys_coh_v(void) 115static inline u32 perf_pmasys_mem_block_target_sys_coh_v(void)
116{ 116{
117 return 0x00000002; 117 return 0x00000002U;
118} 118}
119static inline u32 perf_pmasys_mem_block_target_sys_coh_f(void) 119static inline u32 perf_pmasys_mem_block_target_sys_coh_f(void)
120{ 120{
121 return 0x20000000; 121 return 0x20000000U;
122} 122}
123static inline u32 perf_pmasys_mem_block_target_sys_ncoh_v(void) 123static inline u32 perf_pmasys_mem_block_target_sys_ncoh_v(void)
124{ 124{
125 return 0x00000003; 125 return 0x00000003U;
126} 126}
127static inline u32 perf_pmasys_mem_block_target_sys_ncoh_f(void) 127static inline u32 perf_pmasys_mem_block_target_sys_ncoh_f(void)
128{ 128{
129 return 0x30000000; 129 return 0x30000000U;
130} 130}
131static inline u32 perf_pmasys_mem_block_valid_f(u32 v) 131static inline u32 perf_pmasys_mem_block_valid_f(u32 v)
132{ 132{
133 return (v & 0x1) << 31; 133 return (v & 0x1U) << 31U;
134} 134}
135static inline u32 perf_pmasys_mem_block_valid_v(u32 r) 135static inline u32 perf_pmasys_mem_block_valid_v(u32 r)
136{ 136{
137 return (r >> 31) & 0x1; 137 return (r >> 31U) & 0x1U;
138} 138}
139static inline u32 perf_pmasys_mem_block_valid_true_v(void) 139static inline u32 perf_pmasys_mem_block_valid_true_v(void)
140{ 140{
141 return 0x00000001; 141 return 0x00000001U;
142} 142}
143static inline u32 perf_pmasys_mem_block_valid_true_f(void) 143static inline u32 perf_pmasys_mem_block_valid_true_f(void)
144{ 144{
145 return 0x80000000; 145 return 0x80000000U;
146} 146}
147static inline u32 perf_pmasys_mem_block_valid_false_v(void) 147static inline u32 perf_pmasys_mem_block_valid_false_v(void)
148{ 148{
149 return 0x00000000; 149 return 0x00000000U;
150} 150}
151static inline u32 perf_pmasys_mem_block_valid_false_f(void) 151static inline u32 perf_pmasys_mem_block_valid_false_f(void)
152{ 152{
153 return 0x0; 153 return 0x0U;
154} 154}
155static inline u32 perf_pmasys_outbase_r(void) 155static inline u32 perf_pmasys_outbase_r(void)
156{ 156{
157 return 0x001b4074; 157 return 0x001b4074U;
158} 158}
159static inline u32 perf_pmasys_outbase_ptr_f(u32 v) 159static inline u32 perf_pmasys_outbase_ptr_f(u32 v)
160{ 160{
161 return (v & 0x7ffffff) << 5; 161 return (v & 0x7ffffffU) << 5U;
162} 162}
163static inline u32 perf_pmasys_outbaseupper_r(void) 163static inline u32 perf_pmasys_outbaseupper_r(void)
164{ 164{
165 return 0x001b4078; 165 return 0x001b4078U;
166} 166}
167static inline u32 perf_pmasys_outbaseupper_ptr_f(u32 v) 167static inline u32 perf_pmasys_outbaseupper_ptr_f(u32 v)
168{ 168{
169 return (v & 0xff) << 0; 169 return (v & 0xffU) << 0U;
170} 170}
171static inline u32 perf_pmasys_outsize_r(void) 171static inline u32 perf_pmasys_outsize_r(void)
172{ 172{
173 return 0x001b407c; 173 return 0x001b407cU;
174} 174}
175static inline u32 perf_pmasys_outsize_numbytes_f(u32 v) 175static inline u32 perf_pmasys_outsize_numbytes_f(u32 v)
176{ 176{
177 return (v & 0x7ffffff) << 5; 177 return (v & 0x7ffffffU) << 5U;
178} 178}
179static inline u32 perf_pmasys_mem_bytes_r(void) 179static inline u32 perf_pmasys_mem_bytes_r(void)
180{ 180{
181 return 0x001b4084; 181 return 0x001b4084U;
182} 182}
183static inline u32 perf_pmasys_mem_bytes_numbytes_f(u32 v) 183static inline u32 perf_pmasys_mem_bytes_numbytes_f(u32 v)
184{ 184{
185 return (v & 0xfffffff) << 4; 185 return (v & 0xfffffffU) << 4U;
186} 186}
187static inline u32 perf_pmasys_mem_bump_r(void) 187static inline u32 perf_pmasys_mem_bump_r(void)
188{ 188{
189 return 0x001b4088; 189 return 0x001b4088U;
190} 190}
191static inline u32 perf_pmasys_mem_bump_numbytes_f(u32 v) 191static inline u32 perf_pmasys_mem_bump_numbytes_f(u32 v)
192{ 192{
193 return (v & 0xfffffff) << 4; 193 return (v & 0xfffffffU) << 4U;
194} 194}
195static inline u32 perf_pmasys_enginestatus_r(void) 195static inline u32 perf_pmasys_enginestatus_r(void)
196{ 196{
197 return 0x001b40a4; 197 return 0x001b40a4U;
198} 198}
199static inline u32 perf_pmasys_enginestatus_rbufempty_f(u32 v) 199static inline u32 perf_pmasys_enginestatus_rbufempty_f(u32 v)
200{ 200{
201 return (v & 0x1) << 4; 201 return (v & 0x1U) << 4U;
202} 202}
203static inline u32 perf_pmasys_enginestatus_rbufempty_empty_v(void) 203static inline u32 perf_pmasys_enginestatus_rbufempty_empty_v(void)
204{ 204{
205 return 0x00000001; 205 return 0x00000001U;
206} 206}
207static inline u32 perf_pmasys_enginestatus_rbufempty_empty_f(void) 207static inline u32 perf_pmasys_enginestatus_rbufempty_empty_f(void)
208{ 208{
209 return 0x10; 209 return 0x10U;
210} 210}
211#endif 211#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pram_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pram_gp10b.h
index 02c9b67f..aef0e693 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pram_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pram_gp10b.h
@@ -58,6 +58,6 @@
58 58
59static inline u32 pram_data032_r(u32 i) 59static inline u32 pram_data032_r(u32 i)
60{ 60{
61 return 0x00700000 + i*4; 61 return 0x00700000U + i*4U;
62} 62}
63#endif 63#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h
index 13e875cc..03a3854e 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringmaster_gp10b.h
@@ -58,110 +58,110 @@
58 58
59static inline u32 pri_ringmaster_command_r(void) 59static inline u32 pri_ringmaster_command_r(void)
60{ 60{
61 return 0x0012004c; 61 return 0x0012004cU;
62} 62}
63static inline u32 pri_ringmaster_command_cmd_m(void) 63static inline u32 pri_ringmaster_command_cmd_m(void)
64{ 64{
65 return 0x3f << 0; 65 return 0x3fU << 0U;
66} 66}
67static inline u32 pri_ringmaster_command_cmd_v(u32 r) 67static inline u32 pri_ringmaster_command_cmd_v(u32 r)
68{ 68{
69 return (r >> 0) & 0x3f; 69 return (r >> 0U) & 0x3fU;
70} 70}
71static inline u32 pri_ringmaster_command_cmd_no_cmd_v(void) 71static inline u32 pri_ringmaster_command_cmd_no_cmd_v(void)
72{ 72{
73 return 0x00000000; 73 return 0x00000000U;
74} 74}
75static inline u32 pri_ringmaster_command_cmd_start_ring_f(void) 75static inline u32 pri_ringmaster_command_cmd_start_ring_f(void)
76{ 76{
77 return 0x1; 77 return 0x1U;
78} 78}
79static inline u32 pri_ringmaster_command_cmd_ack_interrupt_f(void) 79static inline u32 pri_ringmaster_command_cmd_ack_interrupt_f(void)
80{ 80{
81 return 0x2; 81 return 0x2U;
82} 82}
83static inline u32 pri_ringmaster_command_cmd_enumerate_stations_f(void) 83static inline u32 pri_ringmaster_command_cmd_enumerate_stations_f(void)
84{ 84{
85 return 0x3; 85 return 0x3U;
86} 86}
87static inline u32 pri_ringmaster_command_cmd_enumerate_stations_bc_grp_all_f(void) 87static inline u32 pri_ringmaster_command_cmd_enumerate_stations_bc_grp_all_f(void)
88{ 88{
89 return 0x0; 89 return 0x0U;
90} 90}
91static inline u32 pri_ringmaster_command_data_r(void) 91static inline u32 pri_ringmaster_command_data_r(void)
92{ 92{
93 return 0x00120048; 93 return 0x00120048U;
94} 94}
95static inline u32 pri_ringmaster_start_results_r(void) 95static inline u32 pri_ringmaster_start_results_r(void)
96{ 96{
97 return 0x00120050; 97 return 0x00120050U;
98} 98}
99static inline u32 pri_ringmaster_start_results_connectivity_v(u32 r) 99static inline u32 pri_ringmaster_start_results_connectivity_v(u32 r)
100{ 100{
101 return (r >> 0) & 0x1; 101 return (r >> 0U) & 0x1U;
102} 102}
103static inline u32 pri_ringmaster_start_results_connectivity_pass_v(void) 103static inline u32 pri_ringmaster_start_results_connectivity_pass_v(void)
104{ 104{
105 return 0x00000001; 105 return 0x00000001U;
106} 106}
107static inline u32 pri_ringmaster_intr_status0_r(void) 107static inline u32 pri_ringmaster_intr_status0_r(void)
108{ 108{
109 return 0x00120058; 109 return 0x00120058U;
110} 110}
111static inline u32 pri_ringmaster_intr_status0_ring_start_conn_fault_v(u32 r) 111static inline u32 pri_ringmaster_intr_status0_ring_start_conn_fault_v(u32 r)
112{ 112{
113 return (r >> 0) & 0x1; 113 return (r >> 0U) & 0x1U;
114} 114}
115static inline u32 pri_ringmaster_intr_status0_disconnect_fault_v(u32 r) 115static inline u32 pri_ringmaster_intr_status0_disconnect_fault_v(u32 r)
116{ 116{
117 return (r >> 1) & 0x1; 117 return (r >> 1U) & 0x1U;
118} 118}
119static inline u32 pri_ringmaster_intr_status0_overflow_fault_v(u32 r) 119static inline u32 pri_ringmaster_intr_status0_overflow_fault_v(u32 r)
120{ 120{
121 return (r >> 2) & 0x1; 121 return (r >> 2U) & 0x1U;
122} 122}
123static inline u32 pri_ringmaster_intr_status0_gbl_write_error_sys_v(u32 r) 123static inline u32 pri_ringmaster_intr_status0_gbl_write_error_sys_v(u32 r)
124{ 124{
125 return (r >> 8) & 0x1; 125 return (r >> 8U) & 0x1U;
126} 126}
127static inline u32 pri_ringmaster_intr_status1_r(void) 127static inline u32 pri_ringmaster_intr_status1_r(void)
128{ 128{
129 return 0x0012005c; 129 return 0x0012005cU;
130} 130}
131static inline u32 pri_ringmaster_global_ctl_r(void) 131static inline u32 pri_ringmaster_global_ctl_r(void)
132{ 132{
133 return 0x00120060; 133 return 0x00120060U;
134} 134}
135static inline u32 pri_ringmaster_global_ctl_ring_reset_asserted_f(void) 135static inline u32 pri_ringmaster_global_ctl_ring_reset_asserted_f(void)
136{ 136{
137 return 0x1; 137 return 0x1U;
138} 138}
139static inline u32 pri_ringmaster_global_ctl_ring_reset_deasserted_f(void) 139static inline u32 pri_ringmaster_global_ctl_ring_reset_deasserted_f(void)
140{ 140{
141 return 0x0; 141 return 0x0U;
142} 142}
143static inline u32 pri_ringmaster_enum_fbp_r(void) 143static inline u32 pri_ringmaster_enum_fbp_r(void)
144{ 144{
145 return 0x00120074; 145 return 0x00120074U;
146} 146}
147static inline u32 pri_ringmaster_enum_fbp_count_v(u32 r) 147static inline u32 pri_ringmaster_enum_fbp_count_v(u32 r)
148{ 148{
149 return (r >> 0) & 0x1f; 149 return (r >> 0U) & 0x1fU;
150} 150}
151static inline u32 pri_ringmaster_enum_gpc_r(void) 151static inline u32 pri_ringmaster_enum_gpc_r(void)
152{ 152{
153 return 0x00120078; 153 return 0x00120078U;
154} 154}
155static inline u32 pri_ringmaster_enum_gpc_count_v(u32 r) 155static inline u32 pri_ringmaster_enum_gpc_count_v(u32 r)
156{ 156{
157 return (r >> 0) & 0x1f; 157 return (r >> 0U) & 0x1fU;
158} 158}
159static inline u32 pri_ringmaster_enum_ltc_r(void) 159static inline u32 pri_ringmaster_enum_ltc_r(void)
160{ 160{
161 return 0x0012006c; 161 return 0x0012006cU;
162} 162}
163static inline u32 pri_ringmaster_enum_ltc_count_v(u32 r) 163static inline u32 pri_ringmaster_enum_ltc_count_v(u32 r)
164{ 164{
165 return (r >> 0) & 0x1f; 165 return (r >> 0U) & 0x1fU;
166} 166}
167#endif 167#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h
index 47f31f81..1bd5a0f7 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_gpc_gp10b.h
@@ -58,22 +58,22 @@
58 58
59static inline u32 pri_ringstation_gpc_master_config_r(u32 i) 59static inline u32 pri_ringstation_gpc_master_config_r(u32 i)
60{ 60{
61 return 0x00128300 + i*4; 61 return 0x00128300U + i*4U;
62} 62}
63static inline u32 pri_ringstation_gpc_gpc0_priv_error_adr_r(void) 63static inline u32 pri_ringstation_gpc_gpc0_priv_error_adr_r(void)
64{ 64{
65 return 0x00128120; 65 return 0x00128120U;
66} 66}
67static inline u32 pri_ringstation_gpc_gpc0_priv_error_wrdat_r(void) 67static inline u32 pri_ringstation_gpc_gpc0_priv_error_wrdat_r(void)
68{ 68{
69 return 0x00128124; 69 return 0x00128124U;
70} 70}
71static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_r(void) 71static inline u32 pri_ringstation_gpc_gpc0_priv_error_info_r(void)
72{ 72{
73 return 0x00128128; 73 return 0x00128128U;
74} 74}
75static inline u32 pri_ringstation_gpc_gpc0_priv_error_code_r(void) 75static inline u32 pri_ringstation_gpc_gpc0_priv_error_code_r(void)
76{ 76{
77 return 0x0012812c; 77 return 0x0012812cU;
78} 78}
79#endif 79#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h
index 90b9d010..c4d9ef1b 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pri_ringstation_sys_gp10b.h
@@ -58,34 +58,34 @@
58 58
59static inline u32 pri_ringstation_sys_master_config_r(u32 i) 59static inline u32 pri_ringstation_sys_master_config_r(u32 i)
60{ 60{
61 return 0x00122300 + i*4; 61 return 0x00122300U + i*4U;
62} 62}
63static inline u32 pri_ringstation_sys_decode_config_r(void) 63static inline u32 pri_ringstation_sys_decode_config_r(void)
64{ 64{
65 return 0x00122204; 65 return 0x00122204U;
66} 66}
67static inline u32 pri_ringstation_sys_decode_config_ring_m(void) 67static inline u32 pri_ringstation_sys_decode_config_ring_m(void)
68{ 68{
69 return 0x7 << 0; 69 return 0x7U << 0U;
70} 70}
71static inline u32 pri_ringstation_sys_decode_config_ring_drop_on_ring_not_started_f(void) 71static inline u32 pri_ringstation_sys_decode_config_ring_drop_on_ring_not_started_f(void)
72{ 72{
73 return 0x1; 73 return 0x1U;
74} 74}
75static inline u32 pri_ringstation_sys_priv_error_adr_r(void) 75static inline u32 pri_ringstation_sys_priv_error_adr_r(void)
76{ 76{
77 return 0x00122120; 77 return 0x00122120U;
78} 78}
79static inline u32 pri_ringstation_sys_priv_error_wrdat_r(void) 79static inline u32 pri_ringstation_sys_priv_error_wrdat_r(void)
80{ 80{
81 return 0x00122124; 81 return 0x00122124U;
82} 82}
83static inline u32 pri_ringstation_sys_priv_error_info_r(void) 83static inline u32 pri_ringstation_sys_priv_error_info_r(void)
84{ 84{
85 return 0x00122128; 85 return 0x00122128U;
86} 86}
87static inline u32 pri_ringstation_sys_priv_error_code_r(void) 87static inline u32 pri_ringstation_sys_priv_error_code_r(void)
88{ 88{
89 return 0x0012212c; 89 return 0x0012212cU;
90} 90}
91#endif 91#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_proj_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_proj_gp10b.h
index 5ba3c25e..f5d60beb 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_proj_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_proj_gp10b.h
@@ -58,118 +58,118 @@
58 58
59static inline u32 proj_gpc_base_v(void) 59static inline u32 proj_gpc_base_v(void)
60{ 60{
61 return 0x00500000; 61 return 0x00500000U;
62} 62}
63static inline u32 proj_gpc_shared_base_v(void) 63static inline u32 proj_gpc_shared_base_v(void)
64{ 64{
65 return 0x00418000; 65 return 0x00418000U;
66} 66}
67static inline u32 proj_gpc_stride_v(void) 67static inline u32 proj_gpc_stride_v(void)
68{ 68{
69 return 0x00008000; 69 return 0x00008000U;
70} 70}
71static inline u32 proj_ltc_stride_v(void) 71static inline u32 proj_ltc_stride_v(void)
72{ 72{
73 return 0x00002000; 73 return 0x00002000U;
74} 74}
75static inline u32 proj_lts_stride_v(void) 75static inline u32 proj_lts_stride_v(void)
76{ 76{
77 return 0x00000200; 77 return 0x00000200U;
78} 78}
79static inline u32 proj_fbpa_base_v(void) 79static inline u32 proj_fbpa_base_v(void)
80{ 80{
81 return 0x00900000; 81 return 0x00900000U;
82} 82}
83static inline u32 proj_fbpa_shared_base_v(void) 83static inline u32 proj_fbpa_shared_base_v(void)
84{ 84{
85 return 0x009a0000; 85 return 0x009a0000U;
86} 86}
87static inline u32 proj_fbpa_stride_v(void) 87static inline u32 proj_fbpa_stride_v(void)
88{ 88{
89 return 0x00004000; 89 return 0x00004000U;
90} 90}
91static inline u32 proj_ppc_in_gpc_base_v(void) 91static inline u32 proj_ppc_in_gpc_base_v(void)
92{ 92{
93 return 0x00003000; 93 return 0x00003000U;
94} 94}
95static inline u32 proj_ppc_in_gpc_shared_base_v(void) 95static inline u32 proj_ppc_in_gpc_shared_base_v(void)
96{ 96{
97 return 0x00003e00; 97 return 0x00003e00U;
98} 98}
99static inline u32 proj_ppc_in_gpc_stride_v(void) 99static inline u32 proj_ppc_in_gpc_stride_v(void)
100{ 100{
101 return 0x00000200; 101 return 0x00000200U;
102} 102}
103static inline u32 proj_rop_base_v(void) 103static inline u32 proj_rop_base_v(void)
104{ 104{
105 return 0x00410000; 105 return 0x00410000U;
106} 106}
107static inline u32 proj_rop_shared_base_v(void) 107static inline u32 proj_rop_shared_base_v(void)
108{ 108{
109 return 0x00408800; 109 return 0x00408800U;
110} 110}
111static inline u32 proj_rop_stride_v(void) 111static inline u32 proj_rop_stride_v(void)
112{ 112{
113 return 0x00000400; 113 return 0x00000400U;
114} 114}
115static inline u32 proj_tpc_in_gpc_base_v(void) 115static inline u32 proj_tpc_in_gpc_base_v(void)
116{ 116{
117 return 0x00004000; 117 return 0x00004000U;
118} 118}
119static inline u32 proj_tpc_in_gpc_stride_v(void) 119static inline u32 proj_tpc_in_gpc_stride_v(void)
120{ 120{
121 return 0x00000800; 121 return 0x00000800U;
122} 122}
123static inline u32 proj_tpc_in_gpc_shared_base_v(void) 123static inline u32 proj_tpc_in_gpc_shared_base_v(void)
124{ 124{
125 return 0x00001800; 125 return 0x00001800U;
126} 126}
127static inline u32 proj_host_num_engines_v(void) 127static inline u32 proj_host_num_engines_v(void)
128{ 128{
129 return 0x00000002; 129 return 0x00000002U;
130} 130}
131static inline u32 proj_host_num_pbdma_v(void) 131static inline u32 proj_host_num_pbdma_v(void)
132{ 132{
133 return 0x00000001; 133 return 0x00000001U;
134} 134}
135static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void) 135static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void)
136{ 136{
137 return 0x00000002; 137 return 0x00000002U;
138} 138}
139static inline u32 proj_scal_litter_num_sm_per_tpc_v(void) 139static inline u32 proj_scal_litter_num_sm_per_tpc_v(void)
140{ 140{
141 return 0x00000001; 141 return 0x00000001U;
142} 142}
143static inline u32 proj_scal_litter_num_fbps_v(void) 143static inline u32 proj_scal_litter_num_fbps_v(void)
144{ 144{
145 return 0x00000001; 145 return 0x00000001U;
146} 146}
147static inline u32 proj_scal_litter_num_fbpas_v(void) 147static inline u32 proj_scal_litter_num_fbpas_v(void)
148{ 148{
149 return 0x00000001; 149 return 0x00000001U;
150} 150}
151static inline u32 proj_scal_litter_num_gpcs_v(void) 151static inline u32 proj_scal_litter_num_gpcs_v(void)
152{ 152{
153 return 0x00000001; 153 return 0x00000001U;
154} 154}
155static inline u32 proj_scal_litter_num_pes_per_gpc_v(void) 155static inline u32 proj_scal_litter_num_pes_per_gpc_v(void)
156{ 156{
157 return 0x00000001; 157 return 0x00000001U;
158} 158}
159static inline u32 proj_scal_litter_num_tpcs_per_pes_v(void) 159static inline u32 proj_scal_litter_num_tpcs_per_pes_v(void)
160{ 160{
161 return 0x00000002; 161 return 0x00000002U;
162} 162}
163static inline u32 proj_scal_litter_num_zcull_banks_v(void) 163static inline u32 proj_scal_litter_num_zcull_banks_v(void)
164{ 164{
165 return 0x00000004; 165 return 0x00000004U;
166} 166}
167static inline u32 proj_scal_max_gpcs_v(void) 167static inline u32 proj_scal_max_gpcs_v(void)
168{ 168{
169 return 0x00000020; 169 return 0x00000020U;
170} 170}
171static inline u32 proj_scal_max_tpc_per_gpc_v(void) 171static inline u32 proj_scal_max_tpc_per_gpc_v(void)
172{ 172{
173 return 0x00000008; 173 return 0x00000008U;
174} 174}
175#endif 175#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pwr_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pwr_gp10b.h
index c47a5de6..73a5c45c 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pwr_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_pwr_gp10b.h
@@ -58,774 +58,774 @@
58 58
59static inline u32 pwr_falcon_irqsset_r(void) 59static inline u32 pwr_falcon_irqsset_r(void)
60{ 60{
61 return 0x0010a000; 61 return 0x0010a000U;
62} 62}
63static inline u32 pwr_falcon_irqsset_swgen0_set_f(void) 63static inline u32 pwr_falcon_irqsset_swgen0_set_f(void)
64{ 64{
65 return 0x40; 65 return 0x40U;
66} 66}
67static inline u32 pwr_falcon_irqsclr_r(void) 67static inline u32 pwr_falcon_irqsclr_r(void)
68{ 68{
69 return 0x0010a004; 69 return 0x0010a004U;
70} 70}
71static inline u32 pwr_falcon_irqstat_r(void) 71static inline u32 pwr_falcon_irqstat_r(void)
72{ 72{
73 return 0x0010a008; 73 return 0x0010a008U;
74} 74}
75static inline u32 pwr_falcon_irqstat_halt_true_f(void) 75static inline u32 pwr_falcon_irqstat_halt_true_f(void)
76{ 76{
77 return 0x10; 77 return 0x10U;
78} 78}
79static inline u32 pwr_falcon_irqstat_exterr_true_f(void) 79static inline u32 pwr_falcon_irqstat_exterr_true_f(void)
80{ 80{
81 return 0x20; 81 return 0x20U;
82} 82}
83static inline u32 pwr_falcon_irqstat_swgen0_true_f(void) 83static inline u32 pwr_falcon_irqstat_swgen0_true_f(void)
84{ 84{
85 return 0x40; 85 return 0x40U;
86} 86}
87static inline u32 pwr_falcon_irqmode_r(void) 87static inline u32 pwr_falcon_irqmode_r(void)
88{ 88{
89 return 0x0010a00c; 89 return 0x0010a00cU;
90} 90}
91static inline u32 pwr_falcon_irqmset_r(void) 91static inline u32 pwr_falcon_irqmset_r(void)
92{ 92{
93 return 0x0010a010; 93 return 0x0010a010U;
94} 94}
95static inline u32 pwr_falcon_irqmset_gptmr_f(u32 v) 95static inline u32 pwr_falcon_irqmset_gptmr_f(u32 v)
96{ 96{
97 return (v & 0x1) << 0; 97 return (v & 0x1U) << 0U;
98} 98}
99static inline u32 pwr_falcon_irqmset_wdtmr_f(u32 v) 99static inline u32 pwr_falcon_irqmset_wdtmr_f(u32 v)
100{ 100{
101 return (v & 0x1) << 1; 101 return (v & 0x1U) << 1U;
102} 102}
103static inline u32 pwr_falcon_irqmset_mthd_f(u32 v) 103static inline u32 pwr_falcon_irqmset_mthd_f(u32 v)
104{ 104{
105 return (v & 0x1) << 2; 105 return (v & 0x1U) << 2U;
106} 106}
107static inline u32 pwr_falcon_irqmset_ctxsw_f(u32 v) 107static inline u32 pwr_falcon_irqmset_ctxsw_f(u32 v)
108{ 108{
109 return (v & 0x1) << 3; 109 return (v & 0x1U) << 3U;
110} 110}
111static inline u32 pwr_falcon_irqmset_halt_f(u32 v) 111static inline u32 pwr_falcon_irqmset_halt_f(u32 v)
112{ 112{
113 return (v & 0x1) << 4; 113 return (v & 0x1U) << 4U;
114} 114}
115static inline u32 pwr_falcon_irqmset_exterr_f(u32 v) 115static inline u32 pwr_falcon_irqmset_exterr_f(u32 v)
116{ 116{
117 return (v & 0x1) << 5; 117 return (v & 0x1U) << 5U;
118} 118}
119static inline u32 pwr_falcon_irqmset_swgen0_f(u32 v) 119static inline u32 pwr_falcon_irqmset_swgen0_f(u32 v)
120{ 120{
121 return (v & 0x1) << 6; 121 return (v & 0x1U) << 6U;
122} 122}
123static inline u32 pwr_falcon_irqmset_swgen1_f(u32 v) 123static inline u32 pwr_falcon_irqmset_swgen1_f(u32 v)
124{ 124{
125 return (v & 0x1) << 7; 125 return (v & 0x1U) << 7U;
126} 126}
127static inline u32 pwr_falcon_irqmclr_r(void) 127static inline u32 pwr_falcon_irqmclr_r(void)
128{ 128{
129 return 0x0010a014; 129 return 0x0010a014U;
130} 130}
131static inline u32 pwr_falcon_irqmclr_gptmr_f(u32 v) 131static inline u32 pwr_falcon_irqmclr_gptmr_f(u32 v)
132{ 132{
133 return (v & 0x1) << 0; 133 return (v & 0x1U) << 0U;
134} 134}
135static inline u32 pwr_falcon_irqmclr_wdtmr_f(u32 v) 135static inline u32 pwr_falcon_irqmclr_wdtmr_f(u32 v)
136{ 136{
137 return (v & 0x1) << 1; 137 return (v & 0x1U) << 1U;
138} 138}
139static inline u32 pwr_falcon_irqmclr_mthd_f(u32 v) 139static inline u32 pwr_falcon_irqmclr_mthd_f(u32 v)
140{ 140{
141 return (v & 0x1) << 2; 141 return (v & 0x1U) << 2U;
142} 142}
143static inline u32 pwr_falcon_irqmclr_ctxsw_f(u32 v) 143static inline u32 pwr_falcon_irqmclr_ctxsw_f(u32 v)
144{ 144{
145 return (v & 0x1) << 3; 145 return (v & 0x1U) << 3U;
146} 146}
147static inline u32 pwr_falcon_irqmclr_halt_f(u32 v) 147static inline u32 pwr_falcon_irqmclr_halt_f(u32 v)
148{ 148{
149 return (v & 0x1) << 4; 149 return (v & 0x1U) << 4U;
150} 150}
151static inline u32 pwr_falcon_irqmclr_exterr_f(u32 v) 151static inline u32 pwr_falcon_irqmclr_exterr_f(u32 v)
152{ 152{
153 return (v & 0x1) << 5; 153 return (v & 0x1U) << 5U;
154} 154}
155static inline u32 pwr_falcon_irqmclr_swgen0_f(u32 v) 155static inline u32 pwr_falcon_irqmclr_swgen0_f(u32 v)
156{ 156{
157 return (v & 0x1) << 6; 157 return (v & 0x1U) << 6U;
158} 158}
159static inline u32 pwr_falcon_irqmclr_swgen1_f(u32 v) 159static inline u32 pwr_falcon_irqmclr_swgen1_f(u32 v)
160{ 160{
161 return (v & 0x1) << 7; 161 return (v & 0x1U) << 7U;
162} 162}
163static inline u32 pwr_falcon_irqmclr_ext_f(u32 v) 163static inline u32 pwr_falcon_irqmclr_ext_f(u32 v)
164{ 164{
165 return (v & 0xff) << 8; 165 return (v & 0xffU) << 8U;
166} 166}
167static inline u32 pwr_falcon_irqmask_r(void) 167static inline u32 pwr_falcon_irqmask_r(void)
168{ 168{
169 return 0x0010a018; 169 return 0x0010a018U;
170} 170}
171static inline u32 pwr_falcon_irqdest_r(void) 171static inline u32 pwr_falcon_irqdest_r(void)
172{ 172{
173 return 0x0010a01c; 173 return 0x0010a01cU;
174} 174}
175static inline u32 pwr_falcon_irqdest_host_gptmr_f(u32 v) 175static inline u32 pwr_falcon_irqdest_host_gptmr_f(u32 v)
176{ 176{
177 return (v & 0x1) << 0; 177 return (v & 0x1U) << 0U;
178} 178}
179static inline u32 pwr_falcon_irqdest_host_wdtmr_f(u32 v) 179static inline u32 pwr_falcon_irqdest_host_wdtmr_f(u32 v)
180{ 180{
181 return (v & 0x1) << 1; 181 return (v & 0x1U) << 1U;
182} 182}
183static inline u32 pwr_falcon_irqdest_host_mthd_f(u32 v) 183static inline u32 pwr_falcon_irqdest_host_mthd_f(u32 v)
184{ 184{
185 return (v & 0x1) << 2; 185 return (v & 0x1U) << 2U;
186} 186}
187static inline u32 pwr_falcon_irqdest_host_ctxsw_f(u32 v) 187static inline u32 pwr_falcon_irqdest_host_ctxsw_f(u32 v)
188{ 188{
189 return (v & 0x1) << 3; 189 return (v & 0x1U) << 3U;
190} 190}
191static inline u32 pwr_falcon_irqdest_host_halt_f(u32 v) 191static inline u32 pwr_falcon_irqdest_host_halt_f(u32 v)
192{ 192{
193 return (v & 0x1) << 4; 193 return (v & 0x1U) << 4U;
194} 194}
195static inline u32 pwr_falcon_irqdest_host_exterr_f(u32 v) 195static inline u32 pwr_falcon_irqdest_host_exterr_f(u32 v)
196{ 196{
197 return (v & 0x1) << 5; 197 return (v & 0x1U) << 5U;
198} 198}
199static inline u32 pwr_falcon_irqdest_host_swgen0_f(u32 v) 199static inline u32 pwr_falcon_irqdest_host_swgen0_f(u32 v)
200{ 200{
201 return (v & 0x1) << 6; 201 return (v & 0x1U) << 6U;
202} 202}
203static inline u32 pwr_falcon_irqdest_host_swgen1_f(u32 v) 203static inline u32 pwr_falcon_irqdest_host_swgen1_f(u32 v)
204{ 204{
205 return (v & 0x1) << 7; 205 return (v & 0x1U) << 7U;
206} 206}
207static inline u32 pwr_falcon_irqdest_host_ext_f(u32 v) 207static inline u32 pwr_falcon_irqdest_host_ext_f(u32 v)
208{ 208{
209 return (v & 0xff) << 8; 209 return (v & 0xffU) << 8U;
210} 210}
211static inline u32 pwr_falcon_irqdest_target_gptmr_f(u32 v) 211static inline u32 pwr_falcon_irqdest_target_gptmr_f(u32 v)
212{ 212{
213 return (v & 0x1) << 16; 213 return (v & 0x1U) << 16U;
214} 214}
215static inline u32 pwr_falcon_irqdest_target_wdtmr_f(u32 v) 215static inline u32 pwr_falcon_irqdest_target_wdtmr_f(u32 v)
216{ 216{
217 return (v & 0x1) << 17; 217 return (v & 0x1U) << 17U;
218} 218}
219static inline u32 pwr_falcon_irqdest_target_mthd_f(u32 v) 219static inline u32 pwr_falcon_irqdest_target_mthd_f(u32 v)
220{ 220{
221 return (v & 0x1) << 18; 221 return (v & 0x1U) << 18U;
222} 222}
223static inline u32 pwr_falcon_irqdest_target_ctxsw_f(u32 v) 223static inline u32 pwr_falcon_irqdest_target_ctxsw_f(u32 v)
224{ 224{
225 return (v & 0x1) << 19; 225 return (v & 0x1U) << 19U;
226} 226}
227static inline u32 pwr_falcon_irqdest_target_halt_f(u32 v) 227static inline u32 pwr_falcon_irqdest_target_halt_f(u32 v)
228{ 228{
229 return (v & 0x1) << 20; 229 return (v & 0x1U) << 20U;
230} 230}
231static inline u32 pwr_falcon_irqdest_target_exterr_f(u32 v) 231static inline u32 pwr_falcon_irqdest_target_exterr_f(u32 v)
232{ 232{
233 return (v & 0x1) << 21; 233 return (v & 0x1U) << 21U;
234} 234}
235static inline u32 pwr_falcon_irqdest_target_swgen0_f(u32 v) 235static inline u32 pwr_falcon_irqdest_target_swgen0_f(u32 v)
236{ 236{
237 return (v & 0x1) << 22; 237 return (v & 0x1U) << 22U;
238} 238}
239static inline u32 pwr_falcon_irqdest_target_swgen1_f(u32 v) 239static inline u32 pwr_falcon_irqdest_target_swgen1_f(u32 v)
240{ 240{
241 return (v & 0x1) << 23; 241 return (v & 0x1U) << 23U;
242} 242}
243static inline u32 pwr_falcon_irqdest_target_ext_f(u32 v) 243static inline u32 pwr_falcon_irqdest_target_ext_f(u32 v)
244{ 244{
245 return (v & 0xff) << 24; 245 return (v & 0xffU) << 24U;
246} 246}
247static inline u32 pwr_falcon_curctx_r(void) 247static inline u32 pwr_falcon_curctx_r(void)
248{ 248{
249 return 0x0010a050; 249 return 0x0010a050U;
250} 250}
251static inline u32 pwr_falcon_nxtctx_r(void) 251static inline u32 pwr_falcon_nxtctx_r(void)
252{ 252{
253 return 0x0010a054; 253 return 0x0010a054U;
254} 254}
255static inline u32 pwr_falcon_mailbox0_r(void) 255static inline u32 pwr_falcon_mailbox0_r(void)
256{ 256{
257 return 0x0010a040; 257 return 0x0010a040U;
258} 258}
259static inline u32 pwr_falcon_mailbox1_r(void) 259static inline u32 pwr_falcon_mailbox1_r(void)
260{ 260{
261 return 0x0010a044; 261 return 0x0010a044U;
262} 262}
263static inline u32 pwr_falcon_itfen_r(void) 263static inline u32 pwr_falcon_itfen_r(void)
264{ 264{
265 return 0x0010a048; 265 return 0x0010a048U;
266} 266}
267static inline u32 pwr_falcon_itfen_ctxen_enable_f(void) 267static inline u32 pwr_falcon_itfen_ctxen_enable_f(void)
268{ 268{
269 return 0x1; 269 return 0x1U;
270} 270}
271static inline u32 pwr_falcon_idlestate_r(void) 271static inline u32 pwr_falcon_idlestate_r(void)
272{ 272{
273 return 0x0010a04c; 273 return 0x0010a04cU;
274} 274}
275static inline u32 pwr_falcon_idlestate_falcon_busy_v(u32 r) 275static inline u32 pwr_falcon_idlestate_falcon_busy_v(u32 r)
276{ 276{
277 return (r >> 0) & 0x1; 277 return (r >> 0U) & 0x1U;
278} 278}
279static inline u32 pwr_falcon_idlestate_ext_busy_v(u32 r) 279static inline u32 pwr_falcon_idlestate_ext_busy_v(u32 r)
280{ 280{
281 return (r >> 1) & 0x7fff; 281 return (r >> 1U) & 0x7fffU;
282} 282}
283static inline u32 pwr_falcon_os_r(void) 283static inline u32 pwr_falcon_os_r(void)
284{ 284{
285 return 0x0010a080; 285 return 0x0010a080U;
286} 286}
287static inline u32 pwr_falcon_engctl_r(void) 287static inline u32 pwr_falcon_engctl_r(void)
288{ 288{
289 return 0x0010a0a4; 289 return 0x0010a0a4U;
290} 290}
291static inline u32 pwr_falcon_cpuctl_r(void) 291static inline u32 pwr_falcon_cpuctl_r(void)
292{ 292{
293 return 0x0010a100; 293 return 0x0010a100U;
294} 294}
295static inline u32 pwr_falcon_cpuctl_startcpu_f(u32 v) 295static inline u32 pwr_falcon_cpuctl_startcpu_f(u32 v)
296{ 296{
297 return (v & 0x1) << 1; 297 return (v & 0x1U) << 1U;
298} 298}
299static inline u32 pwr_falcon_cpuctl_halt_intr_f(u32 v) 299static inline u32 pwr_falcon_cpuctl_halt_intr_f(u32 v)
300{ 300{
301 return (v & 0x1) << 4; 301 return (v & 0x1U) << 4U;
302} 302}
303static inline u32 pwr_falcon_cpuctl_halt_intr_m(void) 303static inline u32 pwr_falcon_cpuctl_halt_intr_m(void)
304{ 304{
305 return 0x1 << 4; 305 return 0x1U << 4U;
306} 306}
307static inline u32 pwr_falcon_cpuctl_halt_intr_v(u32 r) 307static inline u32 pwr_falcon_cpuctl_halt_intr_v(u32 r)
308{ 308{
309 return (r >> 4) & 0x1; 309 return (r >> 4U) & 0x1U;
310} 310}
311static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_f(u32 v) 311static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
312{ 312{
313 return (v & 0x1) << 6; 313 return (v & 0x1U) << 6U;
314} 314}
315static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_m(void) 315static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_m(void)
316{ 316{
317 return 0x1 << 6; 317 return 0x1U << 6U;
318} 318}
319static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_v(u32 r) 319static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
320{ 320{
321 return (r >> 6) & 0x1; 321 return (r >> 6U) & 0x1U;
322} 322}
323static inline u32 pwr_falcon_cpuctl_alias_r(void) 323static inline u32 pwr_falcon_cpuctl_alias_r(void)
324{ 324{
325 return 0x0010a130; 325 return 0x0010a130U;
326} 326}
327static inline u32 pwr_falcon_cpuctl_alias_startcpu_f(u32 v) 327static inline u32 pwr_falcon_cpuctl_alias_startcpu_f(u32 v)
328{ 328{
329 return (v & 0x1) << 1; 329 return (v & 0x1U) << 1U;
330} 330}
331static inline u32 pwr_pmu_scpctl_stat_r(void) 331static inline u32 pwr_pmu_scpctl_stat_r(void)
332{ 332{
333 return 0x0010ac08; 333 return 0x0010ac08U;
334} 334}
335static inline u32 pwr_pmu_scpctl_stat_debug_mode_f(u32 v) 335static inline u32 pwr_pmu_scpctl_stat_debug_mode_f(u32 v)
336{ 336{
337 return (v & 0x1) << 20; 337 return (v & 0x1U) << 20U;
338} 338}
339static inline u32 pwr_pmu_scpctl_stat_debug_mode_m(void) 339static inline u32 pwr_pmu_scpctl_stat_debug_mode_m(void)
340{ 340{
341 return 0x1 << 20; 341 return 0x1U << 20U;
342} 342}
343static inline u32 pwr_pmu_scpctl_stat_debug_mode_v(u32 r) 343static inline u32 pwr_pmu_scpctl_stat_debug_mode_v(u32 r)
344{ 344{
345 return (r >> 20) & 0x1; 345 return (r >> 20U) & 0x1U;
346} 346}
347static inline u32 pwr_falcon_imemc_r(u32 i) 347static inline u32 pwr_falcon_imemc_r(u32 i)
348{ 348{
349 return 0x0010a180 + i*16; 349 return 0x0010a180U + i*16U;
350} 350}
351static inline u32 pwr_falcon_imemc_offs_f(u32 v) 351static inline u32 pwr_falcon_imemc_offs_f(u32 v)
352{ 352{
353 return (v & 0x3f) << 2; 353 return (v & 0x3fU) << 2U;
354} 354}
355static inline u32 pwr_falcon_imemc_blk_f(u32 v) 355static inline u32 pwr_falcon_imemc_blk_f(u32 v)
356{ 356{
357 return (v & 0xff) << 8; 357 return (v & 0xffU) << 8U;
358} 358}
359static inline u32 pwr_falcon_imemc_aincw_f(u32 v) 359static inline u32 pwr_falcon_imemc_aincw_f(u32 v)
360{ 360{
361 return (v & 0x1) << 24; 361 return (v & 0x1U) << 24U;
362} 362}
363static inline u32 pwr_falcon_imemd_r(u32 i) 363static inline u32 pwr_falcon_imemd_r(u32 i)
364{ 364{
365 return 0x0010a184 + i*16; 365 return 0x0010a184U + i*16U;
366} 366}
367static inline u32 pwr_falcon_imemt_r(u32 i) 367static inline u32 pwr_falcon_imemt_r(u32 i)
368{ 368{
369 return 0x0010a188 + i*16; 369 return 0x0010a188U + i*16U;
370} 370}
371static inline u32 pwr_falcon_sctl_r(void) 371static inline u32 pwr_falcon_sctl_r(void)
372{ 372{
373 return 0x0010a240; 373 return 0x0010a240U;
374} 374}
375static inline u32 pwr_falcon_mmu_phys_sec_r(void) 375static inline u32 pwr_falcon_mmu_phys_sec_r(void)
376{ 376{
377 return 0x00100ce4; 377 return 0x00100ce4U;
378} 378}
379static inline u32 pwr_falcon_bootvec_r(void) 379static inline u32 pwr_falcon_bootvec_r(void)
380{ 380{
381 return 0x0010a104; 381 return 0x0010a104U;
382} 382}
383static inline u32 pwr_falcon_bootvec_vec_f(u32 v) 383static inline u32 pwr_falcon_bootvec_vec_f(u32 v)
384{ 384{
385 return (v & 0xffffffff) << 0; 385 return (v & 0xffffffffU) << 0U;
386} 386}
387static inline u32 pwr_falcon_dmactl_r(void) 387static inline u32 pwr_falcon_dmactl_r(void)
388{ 388{
389 return 0x0010a10c; 389 return 0x0010a10cU;
390} 390}
391static inline u32 pwr_falcon_dmactl_dmem_scrubbing_m(void) 391static inline u32 pwr_falcon_dmactl_dmem_scrubbing_m(void)
392{ 392{
393 return 0x1 << 1; 393 return 0x1U << 1U;
394} 394}
395static inline u32 pwr_falcon_dmactl_imem_scrubbing_m(void) 395static inline u32 pwr_falcon_dmactl_imem_scrubbing_m(void)
396{ 396{
397 return 0x1 << 2; 397 return 0x1U << 2U;
398} 398}
399static inline u32 pwr_falcon_hwcfg_r(void) 399static inline u32 pwr_falcon_hwcfg_r(void)
400{ 400{
401 return 0x0010a108; 401 return 0x0010a108U;
402} 402}
403static inline u32 pwr_falcon_hwcfg_imem_size_v(u32 r) 403static inline u32 pwr_falcon_hwcfg_imem_size_v(u32 r)
404{ 404{
405 return (r >> 0) & 0x1ff; 405 return (r >> 0U) & 0x1ffU;
406} 406}
407static inline u32 pwr_falcon_hwcfg_dmem_size_v(u32 r) 407static inline u32 pwr_falcon_hwcfg_dmem_size_v(u32 r)
408{ 408{
409 return (r >> 9) & 0x1ff; 409 return (r >> 9U) & 0x1ffU;
410} 410}
411static inline u32 pwr_falcon_dmatrfbase_r(void) 411static inline u32 pwr_falcon_dmatrfbase_r(void)
412{ 412{
413 return 0x0010a110; 413 return 0x0010a110U;
414} 414}
415static inline u32 pwr_falcon_dmatrfbase1_r(void) 415static inline u32 pwr_falcon_dmatrfbase1_r(void)
416{ 416{
417 return 0x0010a128; 417 return 0x0010a128U;
418} 418}
419static inline u32 pwr_falcon_dmatrfmoffs_r(void) 419static inline u32 pwr_falcon_dmatrfmoffs_r(void)
420{ 420{
421 return 0x0010a114; 421 return 0x0010a114U;
422} 422}
423static inline u32 pwr_falcon_dmatrfcmd_r(void) 423static inline u32 pwr_falcon_dmatrfcmd_r(void)
424{ 424{
425 return 0x0010a118; 425 return 0x0010a118U;
426} 426}
427static inline u32 pwr_falcon_dmatrfcmd_imem_f(u32 v) 427static inline u32 pwr_falcon_dmatrfcmd_imem_f(u32 v)
428{ 428{
429 return (v & 0x1) << 4; 429 return (v & 0x1U) << 4U;
430} 430}
431static inline u32 pwr_falcon_dmatrfcmd_write_f(u32 v) 431static inline u32 pwr_falcon_dmatrfcmd_write_f(u32 v)
432{ 432{
433 return (v & 0x1) << 5; 433 return (v & 0x1U) << 5U;
434} 434}
435static inline u32 pwr_falcon_dmatrfcmd_size_f(u32 v) 435static inline u32 pwr_falcon_dmatrfcmd_size_f(u32 v)
436{ 436{
437 return (v & 0x7) << 8; 437 return (v & 0x7U) << 8U;
438} 438}
439static inline u32 pwr_falcon_dmatrfcmd_ctxdma_f(u32 v) 439static inline u32 pwr_falcon_dmatrfcmd_ctxdma_f(u32 v)
440{ 440{
441 return (v & 0x7) << 12; 441 return (v & 0x7U) << 12U;
442} 442}
443static inline u32 pwr_falcon_dmatrffboffs_r(void) 443static inline u32 pwr_falcon_dmatrffboffs_r(void)
444{ 444{
445 return 0x0010a11c; 445 return 0x0010a11cU;
446} 446}
447static inline u32 pwr_falcon_exterraddr_r(void) 447static inline u32 pwr_falcon_exterraddr_r(void)
448{ 448{
449 return 0x0010a168; 449 return 0x0010a168U;
450} 450}
451static inline u32 pwr_falcon_exterrstat_r(void) 451static inline u32 pwr_falcon_exterrstat_r(void)
452{ 452{
453 return 0x0010a16c; 453 return 0x0010a16cU;
454} 454}
455static inline u32 pwr_falcon_exterrstat_valid_m(void) 455static inline u32 pwr_falcon_exterrstat_valid_m(void)
456{ 456{
457 return 0x1 << 31; 457 return 0x1U << 31U;
458} 458}
459static inline u32 pwr_falcon_exterrstat_valid_v(u32 r) 459static inline u32 pwr_falcon_exterrstat_valid_v(u32 r)
460{ 460{
461 return (r >> 31) & 0x1; 461 return (r >> 31U) & 0x1U;
462} 462}
463static inline u32 pwr_falcon_exterrstat_valid_true_v(void) 463static inline u32 pwr_falcon_exterrstat_valid_true_v(void)
464{ 464{
465 return 0x00000001; 465 return 0x00000001U;
466} 466}
467static inline u32 pwr_pmu_falcon_icd_cmd_r(void) 467static inline u32 pwr_pmu_falcon_icd_cmd_r(void)
468{ 468{
469 return 0x0010a200; 469 return 0x0010a200U;
470} 470}
471static inline u32 pwr_pmu_falcon_icd_cmd_opc_s(void) 471static inline u32 pwr_pmu_falcon_icd_cmd_opc_s(void)
472{ 472{
473 return 4; 473 return 4U;
474} 474}
475static inline u32 pwr_pmu_falcon_icd_cmd_opc_f(u32 v) 475static inline u32 pwr_pmu_falcon_icd_cmd_opc_f(u32 v)
476{ 476{
477 return (v & 0xf) << 0; 477 return (v & 0xfU) << 0U;
478} 478}
479static inline u32 pwr_pmu_falcon_icd_cmd_opc_m(void) 479static inline u32 pwr_pmu_falcon_icd_cmd_opc_m(void)
480{ 480{
481 return 0xf << 0; 481 return 0xfU << 0U;
482} 482}
483static inline u32 pwr_pmu_falcon_icd_cmd_opc_v(u32 r) 483static inline u32 pwr_pmu_falcon_icd_cmd_opc_v(u32 r)
484{ 484{
485 return (r >> 0) & 0xf; 485 return (r >> 0U) & 0xfU;
486} 486}
487static inline u32 pwr_pmu_falcon_icd_cmd_opc_rreg_f(void) 487static inline u32 pwr_pmu_falcon_icd_cmd_opc_rreg_f(void)
488{ 488{
489 return 0x8; 489 return 0x8U;
490} 490}
491static inline u32 pwr_pmu_falcon_icd_cmd_opc_rstat_f(void) 491static inline u32 pwr_pmu_falcon_icd_cmd_opc_rstat_f(void)
492{ 492{
493 return 0xe; 493 return 0xeU;
494} 494}
495static inline u32 pwr_pmu_falcon_icd_cmd_idx_f(u32 v) 495static inline u32 pwr_pmu_falcon_icd_cmd_idx_f(u32 v)
496{ 496{
497 return (v & 0x1f) << 8; 497 return (v & 0x1fU) << 8U;
498} 498}
499static inline u32 pwr_pmu_falcon_icd_rdata_r(void) 499static inline u32 pwr_pmu_falcon_icd_rdata_r(void)
500{ 500{
501 return 0x0010a20c; 501 return 0x0010a20cU;
502} 502}
503static inline u32 pwr_falcon_dmemc_r(u32 i) 503static inline u32 pwr_falcon_dmemc_r(u32 i)
504{ 504{
505 return 0x0010a1c0 + i*8; 505 return 0x0010a1c0U + i*8U;
506} 506}
507static inline u32 pwr_falcon_dmemc_offs_f(u32 v) 507static inline u32 pwr_falcon_dmemc_offs_f(u32 v)
508{ 508{
509 return (v & 0x3f) << 2; 509 return (v & 0x3fU) << 2U;
510} 510}
511static inline u32 pwr_falcon_dmemc_offs_m(void) 511static inline u32 pwr_falcon_dmemc_offs_m(void)
512{ 512{
513 return 0x3f << 2; 513 return 0x3fU << 2U;
514} 514}
515static inline u32 pwr_falcon_dmemc_blk_f(u32 v) 515static inline u32 pwr_falcon_dmemc_blk_f(u32 v)
516{ 516{
517 return (v & 0xff) << 8; 517 return (v & 0xffU) << 8U;
518} 518}
519static inline u32 pwr_falcon_dmemc_blk_m(void) 519static inline u32 pwr_falcon_dmemc_blk_m(void)
520{ 520{
521 return 0xff << 8; 521 return 0xffU << 8U;
522} 522}
523static inline u32 pwr_falcon_dmemc_aincw_f(u32 v) 523static inline u32 pwr_falcon_dmemc_aincw_f(u32 v)
524{ 524{
525 return (v & 0x1) << 24; 525 return (v & 0x1U) << 24U;
526} 526}
527static inline u32 pwr_falcon_dmemc_aincr_f(u32 v) 527static inline u32 pwr_falcon_dmemc_aincr_f(u32 v)
528{ 528{
529 return (v & 0x1) << 25; 529 return (v & 0x1U) << 25U;
530} 530}
531static inline u32 pwr_falcon_dmemd_r(u32 i) 531static inline u32 pwr_falcon_dmemd_r(u32 i)
532{ 532{
533 return 0x0010a1c4 + i*8; 533 return 0x0010a1c4U + i*8U;
534} 534}
535static inline u32 pwr_pmu_new_instblk_r(void) 535static inline u32 pwr_pmu_new_instblk_r(void)
536{ 536{
537 return 0x0010a480; 537 return 0x0010a480U;
538} 538}
539static inline u32 pwr_pmu_new_instblk_ptr_f(u32 v) 539static inline u32 pwr_pmu_new_instblk_ptr_f(u32 v)
540{ 540{
541 return (v & 0xfffffff) << 0; 541 return (v & 0xfffffffU) << 0U;
542} 542}
543static inline u32 pwr_pmu_new_instblk_target_fb_f(void) 543static inline u32 pwr_pmu_new_instblk_target_fb_f(void)
544{ 544{
545 return 0x0; 545 return 0x0U;
546} 546}
547static inline u32 pwr_pmu_new_instblk_target_sys_coh_f(void) 547static inline u32 pwr_pmu_new_instblk_target_sys_coh_f(void)
548{ 548{
549 return 0x20000000; 549 return 0x20000000U;
550} 550}
551static inline u32 pwr_pmu_new_instblk_target_sys_ncoh_f(void) 551static inline u32 pwr_pmu_new_instblk_target_sys_ncoh_f(void)
552{ 552{
553 return 0x30000000; 553 return 0x30000000U;
554} 554}
555static inline u32 pwr_pmu_new_instblk_valid_f(u32 v) 555static inline u32 pwr_pmu_new_instblk_valid_f(u32 v)
556{ 556{
557 return (v & 0x1) << 30; 557 return (v & 0x1U) << 30U;
558} 558}
559static inline u32 pwr_pmu_mutex_id_r(void) 559static inline u32 pwr_pmu_mutex_id_r(void)
560{ 560{
561 return 0x0010a488; 561 return 0x0010a488U;
562} 562}
563static inline u32 pwr_pmu_mutex_id_value_v(u32 r) 563static inline u32 pwr_pmu_mutex_id_value_v(u32 r)
564{ 564{
565 return (r >> 0) & 0xff; 565 return (r >> 0U) & 0xffU;
566} 566}
567static inline u32 pwr_pmu_mutex_id_value_init_v(void) 567static inline u32 pwr_pmu_mutex_id_value_init_v(void)
568{ 568{
569 return 0x00000000; 569 return 0x00000000U;
570} 570}
571static inline u32 pwr_pmu_mutex_id_value_not_avail_v(void) 571static inline u32 pwr_pmu_mutex_id_value_not_avail_v(void)
572{ 572{
573 return 0x000000ff; 573 return 0x000000ffU;
574} 574}
575static inline u32 pwr_pmu_mutex_id_release_r(void) 575static inline u32 pwr_pmu_mutex_id_release_r(void)
576{ 576{
577 return 0x0010a48c; 577 return 0x0010a48cU;
578} 578}
579static inline u32 pwr_pmu_mutex_id_release_value_f(u32 v) 579static inline u32 pwr_pmu_mutex_id_release_value_f(u32 v)
580{ 580{
581 return (v & 0xff) << 0; 581 return (v & 0xffU) << 0U;
582} 582}
583static inline u32 pwr_pmu_mutex_id_release_value_m(void) 583static inline u32 pwr_pmu_mutex_id_release_value_m(void)
584{ 584{
585 return 0xff << 0; 585 return 0xffU << 0U;
586} 586}
587static inline u32 pwr_pmu_mutex_id_release_value_init_v(void) 587static inline u32 pwr_pmu_mutex_id_release_value_init_v(void)
588{ 588{
589 return 0x00000000; 589 return 0x00000000U;
590} 590}
591static inline u32 pwr_pmu_mutex_id_release_value_init_f(void) 591static inline u32 pwr_pmu_mutex_id_release_value_init_f(void)
592{ 592{
593 return 0x0; 593 return 0x0U;
594} 594}
595static inline u32 pwr_pmu_mutex_r(u32 i) 595static inline u32 pwr_pmu_mutex_r(u32 i)
596{ 596{
597 return 0x0010a580 + i*4; 597 return 0x0010a580U + i*4U;
598} 598}
599static inline u32 pwr_pmu_mutex__size_1_v(void) 599static inline u32 pwr_pmu_mutex__size_1_v(void)
600{ 600{
601 return 0x00000010; 601 return 0x00000010U;
602} 602}
603static inline u32 pwr_pmu_mutex_value_f(u32 v) 603static inline u32 pwr_pmu_mutex_value_f(u32 v)
604{ 604{
605 return (v & 0xff) << 0; 605 return (v & 0xffU) << 0U;
606} 606}
607static inline u32 pwr_pmu_mutex_value_v(u32 r) 607static inline u32 pwr_pmu_mutex_value_v(u32 r)
608{ 608{
609 return (r >> 0) & 0xff; 609 return (r >> 0U) & 0xffU;
610} 610}
611static inline u32 pwr_pmu_mutex_value_initial_lock_f(void) 611static inline u32 pwr_pmu_mutex_value_initial_lock_f(void)
612{ 612{
613 return 0x0; 613 return 0x0U;
614} 614}
615static inline u32 pwr_pmu_queue_head_r(u32 i) 615static inline u32 pwr_pmu_queue_head_r(u32 i)
616{ 616{
617 return 0x0010a4a0 + i*4; 617 return 0x0010a4a0U + i*4U;
618} 618}
619static inline u32 pwr_pmu_queue_head__size_1_v(void) 619static inline u32 pwr_pmu_queue_head__size_1_v(void)
620{ 620{
621 return 0x00000004; 621 return 0x00000004U;
622} 622}
623static inline u32 pwr_pmu_queue_head_address_f(u32 v) 623static inline u32 pwr_pmu_queue_head_address_f(u32 v)
624{ 624{
625 return (v & 0xffffffff) << 0; 625 return (v & 0xffffffffU) << 0U;
626} 626}
627static inline u32 pwr_pmu_queue_head_address_v(u32 r) 627static inline u32 pwr_pmu_queue_head_address_v(u32 r)
628{ 628{
629 return (r >> 0) & 0xffffffff; 629 return (r >> 0U) & 0xffffffffU;
630} 630}
631static inline u32 pwr_pmu_queue_tail_r(u32 i) 631static inline u32 pwr_pmu_queue_tail_r(u32 i)
632{ 632{
633 return 0x0010a4b0 + i*4; 633 return 0x0010a4b0U + i*4U;
634} 634}
635static inline u32 pwr_pmu_queue_tail__size_1_v(void) 635static inline u32 pwr_pmu_queue_tail__size_1_v(void)
636{ 636{
637 return 0x00000004; 637 return 0x00000004U;
638} 638}
639static inline u32 pwr_pmu_queue_tail_address_f(u32 v) 639static inline u32 pwr_pmu_queue_tail_address_f(u32 v)
640{ 640{
641 return (v & 0xffffffff) << 0; 641 return (v & 0xffffffffU) << 0U;
642} 642}
643static inline u32 pwr_pmu_queue_tail_address_v(u32 r) 643static inline u32 pwr_pmu_queue_tail_address_v(u32 r)
644{ 644{
645 return (r >> 0) & 0xffffffff; 645 return (r >> 0U) & 0xffffffffU;
646} 646}
647static inline u32 pwr_pmu_msgq_head_r(void) 647static inline u32 pwr_pmu_msgq_head_r(void)
648{ 648{
649 return 0x0010a4c8; 649 return 0x0010a4c8U;
650} 650}
651static inline u32 pwr_pmu_msgq_head_val_f(u32 v) 651static inline u32 pwr_pmu_msgq_head_val_f(u32 v)
652{ 652{
653 return (v & 0xffffffff) << 0; 653 return (v & 0xffffffffU) << 0U;
654} 654}
655static inline u32 pwr_pmu_msgq_head_val_v(u32 r) 655static inline u32 pwr_pmu_msgq_head_val_v(u32 r)
656{ 656{
657 return (r >> 0) & 0xffffffff; 657 return (r >> 0U) & 0xffffffffU;
658} 658}
659static inline u32 pwr_pmu_msgq_tail_r(void) 659static inline u32 pwr_pmu_msgq_tail_r(void)
660{ 660{
661 return 0x0010a4cc; 661 return 0x0010a4ccU;
662} 662}
663static inline u32 pwr_pmu_msgq_tail_val_f(u32 v) 663static inline u32 pwr_pmu_msgq_tail_val_f(u32 v)
664{ 664{
665 return (v & 0xffffffff) << 0; 665 return (v & 0xffffffffU) << 0U;
666} 666}
667static inline u32 pwr_pmu_msgq_tail_val_v(u32 r) 667static inline u32 pwr_pmu_msgq_tail_val_v(u32 r)
668{ 668{
669 return (r >> 0) & 0xffffffff; 669 return (r >> 0U) & 0xffffffffU;
670} 670}
671static inline u32 pwr_pmu_idle_mask_r(u32 i) 671static inline u32 pwr_pmu_idle_mask_r(u32 i)
672{ 672{
673 return 0x0010a504 + i*16; 673 return 0x0010a504U + i*16U;
674} 674}
675static inline u32 pwr_pmu_idle_mask_gr_enabled_f(void) 675static inline u32 pwr_pmu_idle_mask_gr_enabled_f(void)
676{ 676{
677 return 0x1; 677 return 0x1U;
678} 678}
679static inline u32 pwr_pmu_idle_mask_ce_2_enabled_f(void) 679static inline u32 pwr_pmu_idle_mask_ce_2_enabled_f(void)
680{ 680{
681 return 0x200000; 681 return 0x200000U;
682} 682}
683static inline u32 pwr_pmu_idle_count_r(u32 i) 683static inline u32 pwr_pmu_idle_count_r(u32 i)
684{ 684{
685 return 0x0010a508 + i*16; 685 return 0x0010a508U + i*16U;
686} 686}
687static inline u32 pwr_pmu_idle_count_value_f(u32 v) 687static inline u32 pwr_pmu_idle_count_value_f(u32 v)
688{ 688{
689 return (v & 0x7fffffff) << 0; 689 return (v & 0x7fffffffU) << 0U;
690} 690}
691static inline u32 pwr_pmu_idle_count_value_v(u32 r) 691static inline u32 pwr_pmu_idle_count_value_v(u32 r)
692{ 692{
693 return (r >> 0) & 0x7fffffff; 693 return (r >> 0U) & 0x7fffffffU;
694} 694}
695static inline u32 pwr_pmu_idle_count_reset_f(u32 v) 695static inline u32 pwr_pmu_idle_count_reset_f(u32 v)
696{ 696{
697 return (v & 0x1) << 31; 697 return (v & 0x1U) << 31U;
698} 698}
699static inline u32 pwr_pmu_idle_ctrl_r(u32 i) 699static inline u32 pwr_pmu_idle_ctrl_r(u32 i)
700{ 700{
701 return 0x0010a50c + i*16; 701 return 0x0010a50cU + i*16U;
702} 702}
703static inline u32 pwr_pmu_idle_ctrl_value_m(void) 703static inline u32 pwr_pmu_idle_ctrl_value_m(void)
704{ 704{
705 return 0x3 << 0; 705 return 0x3U << 0U;
706} 706}
707static inline u32 pwr_pmu_idle_ctrl_value_busy_f(void) 707static inline u32 pwr_pmu_idle_ctrl_value_busy_f(void)
708{ 708{
709 return 0x2; 709 return 0x2U;
710} 710}
711static inline u32 pwr_pmu_idle_ctrl_value_always_f(void) 711static inline u32 pwr_pmu_idle_ctrl_value_always_f(void)
712{ 712{
713 return 0x3; 713 return 0x3U;
714} 714}
715static inline u32 pwr_pmu_idle_ctrl_filter_m(void) 715static inline u32 pwr_pmu_idle_ctrl_filter_m(void)
716{ 716{
717 return 0x1 << 2; 717 return 0x1U << 2U;
718} 718}
719static inline u32 pwr_pmu_idle_ctrl_filter_disabled_f(void) 719static inline u32 pwr_pmu_idle_ctrl_filter_disabled_f(void)
720{ 720{
721 return 0x0; 721 return 0x0U;
722} 722}
723static inline u32 pwr_pmu_idle_mask_supp_r(u32 i) 723static inline u32 pwr_pmu_idle_mask_supp_r(u32 i)
724{ 724{
725 return 0x0010a9f0 + i*8; 725 return 0x0010a9f0U + i*8U;
726} 726}
727static inline u32 pwr_pmu_idle_mask_1_supp_r(u32 i) 727static inline u32 pwr_pmu_idle_mask_1_supp_r(u32 i)
728{ 728{
729 return 0x0010a9f4 + i*8; 729 return 0x0010a9f4U + i*8U;
730} 730}
731static inline u32 pwr_pmu_idle_ctrl_supp_r(u32 i) 731static inline u32 pwr_pmu_idle_ctrl_supp_r(u32 i)
732{ 732{
733 return 0x0010aa30 + i*8; 733 return 0x0010aa30U + i*8U;
734} 734}
735static inline u32 pwr_pmu_debug_r(u32 i) 735static inline u32 pwr_pmu_debug_r(u32 i)
736{ 736{
737 return 0x0010a5c0 + i*4; 737 return 0x0010a5c0U + i*4U;
738} 738}
739static inline u32 pwr_pmu_debug__size_1_v(void) 739static inline u32 pwr_pmu_debug__size_1_v(void)
740{ 740{
741 return 0x00000004; 741 return 0x00000004U;
742} 742}
743static inline u32 pwr_pmu_mailbox_r(u32 i) 743static inline u32 pwr_pmu_mailbox_r(u32 i)
744{ 744{
745 return 0x0010a450 + i*4; 745 return 0x0010a450U + i*4U;
746} 746}
747static inline u32 pwr_pmu_mailbox__size_1_v(void) 747static inline u32 pwr_pmu_mailbox__size_1_v(void)
748{ 748{
749 return 0x0000000c; 749 return 0x0000000cU;
750} 750}
751static inline u32 pwr_pmu_bar0_addr_r(void) 751static inline u32 pwr_pmu_bar0_addr_r(void)
752{ 752{
753 return 0x0010a7a0; 753 return 0x0010a7a0U;
754} 754}
755static inline u32 pwr_pmu_bar0_data_r(void) 755static inline u32 pwr_pmu_bar0_data_r(void)
756{ 756{
757 return 0x0010a7a4; 757 return 0x0010a7a4U;
758} 758}
759static inline u32 pwr_pmu_bar0_ctl_r(void) 759static inline u32 pwr_pmu_bar0_ctl_r(void)
760{ 760{
761 return 0x0010a7ac; 761 return 0x0010a7acU;
762} 762}
763static inline u32 pwr_pmu_bar0_timeout_r(void) 763static inline u32 pwr_pmu_bar0_timeout_r(void)
764{ 764{
765 return 0x0010a7a8; 765 return 0x0010a7a8U;
766} 766}
767static inline u32 pwr_pmu_bar0_fecs_error_r(void) 767static inline u32 pwr_pmu_bar0_fecs_error_r(void)
768{ 768{
769 return 0x0010a988; 769 return 0x0010a988U;
770} 770}
771static inline u32 pwr_pmu_bar0_error_status_r(void) 771static inline u32 pwr_pmu_bar0_error_status_r(void)
772{ 772{
773 return 0x0010a7b0; 773 return 0x0010a7b0U;
774} 774}
775static inline u32 pwr_pmu_pg_idlefilth_r(u32 i) 775static inline u32 pwr_pmu_pg_idlefilth_r(u32 i)
776{ 776{
777 return 0x0010a6c0 + i*4; 777 return 0x0010a6c0U + i*4U;
778} 778}
779static inline u32 pwr_pmu_pg_ppuidlefilth_r(u32 i) 779static inline u32 pwr_pmu_pg_ppuidlefilth_r(u32 i)
780{ 780{
781 return 0x0010a6e8 + i*4; 781 return 0x0010a6e8U + i*4U;
782} 782}
783static inline u32 pwr_pmu_pg_idle_cnt_r(u32 i) 783static inline u32 pwr_pmu_pg_idle_cnt_r(u32 i)
784{ 784{
785 return 0x0010a710 + i*4; 785 return 0x0010a710U + i*4U;
786} 786}
787static inline u32 pwr_pmu_pg_intren_r(u32 i) 787static inline u32 pwr_pmu_pg_intren_r(u32 i)
788{ 788{
789 return 0x0010a760 + i*4; 789 return 0x0010a760U + i*4U;
790} 790}
791static inline u32 pwr_fbif_transcfg_r(u32 i) 791static inline u32 pwr_fbif_transcfg_r(u32 i)
792{ 792{
793 return 0x0010ae00 + i*4; 793 return 0x0010ae00U + i*4U;
794} 794}
795static inline u32 pwr_fbif_transcfg_target_local_fb_f(void) 795static inline u32 pwr_fbif_transcfg_target_local_fb_f(void)
796{ 796{
797 return 0x0; 797 return 0x0U;
798} 798}
799static inline u32 pwr_fbif_transcfg_target_coherent_sysmem_f(void) 799static inline u32 pwr_fbif_transcfg_target_coherent_sysmem_f(void)
800{ 800{
801 return 0x1; 801 return 0x1U;
802} 802}
803static inline u32 pwr_fbif_transcfg_target_noncoherent_sysmem_f(void) 803static inline u32 pwr_fbif_transcfg_target_noncoherent_sysmem_f(void)
804{ 804{
805 return 0x2; 805 return 0x2U;
806} 806}
807static inline u32 pwr_fbif_transcfg_mem_type_s(void) 807static inline u32 pwr_fbif_transcfg_mem_type_s(void)
808{ 808{
809 return 1; 809 return 1U;
810} 810}
811static inline u32 pwr_fbif_transcfg_mem_type_f(u32 v) 811static inline u32 pwr_fbif_transcfg_mem_type_f(u32 v)
812{ 812{
813 return (v & 0x1) << 2; 813 return (v & 0x1U) << 2U;
814} 814}
815static inline u32 pwr_fbif_transcfg_mem_type_m(void) 815static inline u32 pwr_fbif_transcfg_mem_type_m(void)
816{ 816{
817 return 0x1 << 2; 817 return 0x1U << 2U;
818} 818}
819static inline u32 pwr_fbif_transcfg_mem_type_v(u32 r) 819static inline u32 pwr_fbif_transcfg_mem_type_v(u32 r)
820{ 820{
821 return (r >> 2) & 0x1; 821 return (r >> 2U) & 0x1U;
822} 822}
823static inline u32 pwr_fbif_transcfg_mem_type_virtual_f(void) 823static inline u32 pwr_fbif_transcfg_mem_type_virtual_f(void)
824{ 824{
825 return 0x0; 825 return 0x0U;
826} 826}
827static inline u32 pwr_fbif_transcfg_mem_type_physical_f(void) 827static inline u32 pwr_fbif_transcfg_mem_type_physical_f(void)
828{ 828{
829 return 0x4; 829 return 0x4U;
830} 830}
831#endif 831#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ram_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ram_gp10b.h
index a2644cf4..a94fc0a2 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ram_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ram_gp10b.h
@@ -58,442 +58,442 @@
58 58
59static inline u32 ram_in_ramfc_s(void) 59static inline u32 ram_in_ramfc_s(void)
60{ 60{
61 return 4096; 61 return 4096U;
62} 62}
63static inline u32 ram_in_ramfc_w(void) 63static inline u32 ram_in_ramfc_w(void)
64{ 64{
65 return 0; 65 return 0U;
66} 66}
67static inline u32 ram_in_page_dir_base_target_f(u32 v) 67static inline u32 ram_in_page_dir_base_target_f(u32 v)
68{ 68{
69 return (v & 0x3) << 0; 69 return (v & 0x3U) << 0U;
70} 70}
71static inline u32 ram_in_page_dir_base_target_w(void) 71static inline u32 ram_in_page_dir_base_target_w(void)
72{ 72{
73 return 128; 73 return 128U;
74} 74}
75static inline u32 ram_in_page_dir_base_target_vid_mem_f(void) 75static inline u32 ram_in_page_dir_base_target_vid_mem_f(void)
76{ 76{
77 return 0x0; 77 return 0x0U;
78} 78}
79static inline u32 ram_in_page_dir_base_target_sys_mem_coh_f(void) 79static inline u32 ram_in_page_dir_base_target_sys_mem_coh_f(void)
80{ 80{
81 return 0x2; 81 return 0x2U;
82} 82}
83static inline u32 ram_in_page_dir_base_target_sys_mem_ncoh_f(void) 83static inline u32 ram_in_page_dir_base_target_sys_mem_ncoh_f(void)
84{ 84{
85 return 0x3; 85 return 0x3U;
86} 86}
87static inline u32 ram_in_page_dir_base_vol_w(void) 87static inline u32 ram_in_page_dir_base_vol_w(void)
88{ 88{
89 return 128; 89 return 128U;
90} 90}
91static inline u32 ram_in_page_dir_base_vol_true_f(void) 91static inline u32 ram_in_page_dir_base_vol_true_f(void)
92{ 92{
93 return 0x4; 93 return 0x4U;
94} 94}
95static inline u32 ram_in_page_dir_base_fault_replay_tex_f(u32 v) 95static inline u32 ram_in_page_dir_base_fault_replay_tex_f(u32 v)
96{ 96{
97 return (v & 0x1) << 4; 97 return (v & 0x1U) << 4U;
98} 98}
99static inline u32 ram_in_page_dir_base_fault_replay_tex_m(void) 99static inline u32 ram_in_page_dir_base_fault_replay_tex_m(void)
100{ 100{
101 return 0x1 << 4; 101 return 0x1U << 4U;
102} 102}
103static inline u32 ram_in_page_dir_base_fault_replay_tex_w(void) 103static inline u32 ram_in_page_dir_base_fault_replay_tex_w(void)
104{ 104{
105 return 128; 105 return 128U;
106} 106}
107static inline u32 ram_in_page_dir_base_fault_replay_tex_true_f(void) 107static inline u32 ram_in_page_dir_base_fault_replay_tex_true_f(void)
108{ 108{
109 return 0x10; 109 return 0x10U;
110} 110}
111static inline u32 ram_in_page_dir_base_fault_replay_gcc_f(u32 v) 111static inline u32 ram_in_page_dir_base_fault_replay_gcc_f(u32 v)
112{ 112{
113 return (v & 0x1) << 5; 113 return (v & 0x1U) << 5U;
114} 114}
115static inline u32 ram_in_page_dir_base_fault_replay_gcc_m(void) 115static inline u32 ram_in_page_dir_base_fault_replay_gcc_m(void)
116{ 116{
117 return 0x1 << 5; 117 return 0x1U << 5U;
118} 118}
119static inline u32 ram_in_page_dir_base_fault_replay_gcc_w(void) 119static inline u32 ram_in_page_dir_base_fault_replay_gcc_w(void)
120{ 120{
121 return 128; 121 return 128U;
122} 122}
123static inline u32 ram_in_page_dir_base_fault_replay_gcc_true_f(void) 123static inline u32 ram_in_page_dir_base_fault_replay_gcc_true_f(void)
124{ 124{
125 return 0x20; 125 return 0x20U;
126} 126}
127static inline u32 ram_in_big_page_size_f(u32 v) 127static inline u32 ram_in_big_page_size_f(u32 v)
128{ 128{
129 return (v & 0x1) << 11; 129 return (v & 0x1U) << 11U;
130} 130}
131static inline u32 ram_in_big_page_size_m(void) 131static inline u32 ram_in_big_page_size_m(void)
132{ 132{
133 return 0x1 << 11; 133 return 0x1U << 11U;
134} 134}
135static inline u32 ram_in_big_page_size_w(void) 135static inline u32 ram_in_big_page_size_w(void)
136{ 136{
137 return 128; 137 return 128U;
138} 138}
139static inline u32 ram_in_big_page_size_128kb_f(void) 139static inline u32 ram_in_big_page_size_128kb_f(void)
140{ 140{
141 return 0x0; 141 return 0x0U;
142} 142}
143static inline u32 ram_in_big_page_size_64kb_f(void) 143static inline u32 ram_in_big_page_size_64kb_f(void)
144{ 144{
145 return 0x800; 145 return 0x800U;
146} 146}
147static inline u32 ram_in_page_dir_base_lo_f(u32 v) 147static inline u32 ram_in_page_dir_base_lo_f(u32 v)
148{ 148{
149 return (v & 0xfffff) << 12; 149 return (v & 0xfffffU) << 12U;
150} 150}
151static inline u32 ram_in_page_dir_base_lo_w(void) 151static inline u32 ram_in_page_dir_base_lo_w(void)
152{ 152{
153 return 128; 153 return 128U;
154} 154}
155static inline u32 ram_in_page_dir_base_hi_f(u32 v) 155static inline u32 ram_in_page_dir_base_hi_f(u32 v)
156{ 156{
157 return (v & 0xff) << 0; 157 return (v & 0xffU) << 0U;
158} 158}
159static inline u32 ram_in_page_dir_base_hi_w(void) 159static inline u32 ram_in_page_dir_base_hi_w(void)
160{ 160{
161 return 129; 161 return 129U;
162} 162}
163static inline u32 ram_in_adr_limit_lo_f(u32 v) 163static inline u32 ram_in_adr_limit_lo_f(u32 v)
164{ 164{
165 return (v & 0xfffff) << 12; 165 return (v & 0xfffffU) << 12U;
166} 166}
167static inline u32 ram_in_adr_limit_lo_w(void) 167static inline u32 ram_in_adr_limit_lo_w(void)
168{ 168{
169 return 130; 169 return 130U;
170} 170}
171static inline u32 ram_in_adr_limit_hi_f(u32 v) 171static inline u32 ram_in_adr_limit_hi_f(u32 v)
172{ 172{
173 return (v & 0xffffffff) << 0; 173 return (v & 0xffffffffU) << 0U;
174} 174}
175static inline u32 ram_in_adr_limit_hi_w(void) 175static inline u32 ram_in_adr_limit_hi_w(void)
176{ 176{
177 return 131; 177 return 131U;
178} 178}
179static inline u32 ram_in_engine_cs_w(void) 179static inline u32 ram_in_engine_cs_w(void)
180{ 180{
181 return 132; 181 return 132U;
182} 182}
183static inline u32 ram_in_engine_cs_wfi_v(void) 183static inline u32 ram_in_engine_cs_wfi_v(void)
184{ 184{
185 return 0x00000000; 185 return 0x00000000U;
186} 186}
187static inline u32 ram_in_engine_cs_wfi_f(void) 187static inline u32 ram_in_engine_cs_wfi_f(void)
188{ 188{
189 return 0x0; 189 return 0x0U;
190} 190}
191static inline u32 ram_in_engine_cs_fg_v(void) 191static inline u32 ram_in_engine_cs_fg_v(void)
192{ 192{
193 return 0x00000001; 193 return 0x00000001U;
194} 194}
195static inline u32 ram_in_engine_cs_fg_f(void) 195static inline u32 ram_in_engine_cs_fg_f(void)
196{ 196{
197 return 0x8; 197 return 0x8U;
198} 198}
199static inline u32 ram_in_gr_cs_w(void) 199static inline u32 ram_in_gr_cs_w(void)
200{ 200{
201 return 132; 201 return 132U;
202} 202}
203static inline u32 ram_in_gr_cs_wfi_f(void) 203static inline u32 ram_in_gr_cs_wfi_f(void)
204{ 204{
205 return 0x0; 205 return 0x0U;
206} 206}
207static inline u32 ram_in_gr_wfi_target_w(void) 207static inline u32 ram_in_gr_wfi_target_w(void)
208{ 208{
209 return 132; 209 return 132U;
210} 210}
211static inline u32 ram_in_gr_wfi_mode_w(void) 211static inline u32 ram_in_gr_wfi_mode_w(void)
212{ 212{
213 return 132; 213 return 132U;
214} 214}
215static inline u32 ram_in_gr_wfi_mode_physical_v(void) 215static inline u32 ram_in_gr_wfi_mode_physical_v(void)
216{ 216{
217 return 0x00000000; 217 return 0x00000000U;
218} 218}
219static inline u32 ram_in_gr_wfi_mode_physical_f(void) 219static inline u32 ram_in_gr_wfi_mode_physical_f(void)
220{ 220{
221 return 0x0; 221 return 0x0U;
222} 222}
223static inline u32 ram_in_gr_wfi_mode_virtual_v(void) 223static inline u32 ram_in_gr_wfi_mode_virtual_v(void)
224{ 224{
225 return 0x00000001; 225 return 0x00000001U;
226} 226}
227static inline u32 ram_in_gr_wfi_mode_virtual_f(void) 227static inline u32 ram_in_gr_wfi_mode_virtual_f(void)
228{ 228{
229 return 0x4; 229 return 0x4U;
230} 230}
231static inline u32 ram_in_gr_wfi_ptr_lo_f(u32 v) 231static inline u32 ram_in_gr_wfi_ptr_lo_f(u32 v)
232{ 232{
233 return (v & 0xfffff) << 12; 233 return (v & 0xfffffU) << 12U;
234} 234}
235static inline u32 ram_in_gr_wfi_ptr_lo_w(void) 235static inline u32 ram_in_gr_wfi_ptr_lo_w(void)
236{ 236{
237 return 132; 237 return 132U;
238} 238}
239static inline u32 ram_in_gr_wfi_ptr_hi_f(u32 v) 239static inline u32 ram_in_gr_wfi_ptr_hi_f(u32 v)
240{ 240{
241 return (v & 0xff) << 0; 241 return (v & 0xffU) << 0U;
242} 242}
243static inline u32 ram_in_gr_wfi_ptr_hi_w(void) 243static inline u32 ram_in_gr_wfi_ptr_hi_w(void)
244{ 244{
245 return 133; 245 return 133U;
246} 246}
247static inline u32 ram_in_base_shift_v(void) 247static inline u32 ram_in_base_shift_v(void)
248{ 248{
249 return 0x0000000c; 249 return 0x0000000cU;
250} 250}
251static inline u32 ram_in_alloc_size_v(void) 251static inline u32 ram_in_alloc_size_v(void)
252{ 252{
253 return 0x00001000; 253 return 0x00001000U;
254} 254}
255static inline u32 ram_fc_size_val_v(void) 255static inline u32 ram_fc_size_val_v(void)
256{ 256{
257 return 0x00000200; 257 return 0x00000200U;
258} 258}
259static inline u32 ram_fc_gp_put_w(void) 259static inline u32 ram_fc_gp_put_w(void)
260{ 260{
261 return 0; 261 return 0U;
262} 262}
263static inline u32 ram_fc_userd_w(void) 263static inline u32 ram_fc_userd_w(void)
264{ 264{
265 return 2; 265 return 2U;
266} 266}
267static inline u32 ram_fc_userd_hi_w(void) 267static inline u32 ram_fc_userd_hi_w(void)
268{ 268{
269 return 3; 269 return 3U;
270} 270}
271static inline u32 ram_fc_signature_w(void) 271static inline u32 ram_fc_signature_w(void)
272{ 272{
273 return 4; 273 return 4U;
274} 274}
275static inline u32 ram_fc_gp_get_w(void) 275static inline u32 ram_fc_gp_get_w(void)
276{ 276{
277 return 5; 277 return 5U;
278} 278}
279static inline u32 ram_fc_pb_get_w(void) 279static inline u32 ram_fc_pb_get_w(void)
280{ 280{
281 return 6; 281 return 6U;
282} 282}
283static inline u32 ram_fc_pb_get_hi_w(void) 283static inline u32 ram_fc_pb_get_hi_w(void)
284{ 284{
285 return 7; 285 return 7U;
286} 286}
287static inline u32 ram_fc_pb_top_level_get_w(void) 287static inline u32 ram_fc_pb_top_level_get_w(void)
288{ 288{
289 return 8; 289 return 8U;
290} 290}
291static inline u32 ram_fc_pb_top_level_get_hi_w(void) 291static inline u32 ram_fc_pb_top_level_get_hi_w(void)
292{ 292{
293 return 9; 293 return 9U;
294} 294}
295static inline u32 ram_fc_acquire_w(void) 295static inline u32 ram_fc_acquire_w(void)
296{ 296{
297 return 12; 297 return 12U;
298} 298}
299static inline u32 ram_fc_semaphorea_w(void) 299static inline u32 ram_fc_semaphorea_w(void)
300{ 300{
301 return 14; 301 return 14U;
302} 302}
303static inline u32 ram_fc_semaphoreb_w(void) 303static inline u32 ram_fc_semaphoreb_w(void)
304{ 304{
305 return 15; 305 return 15U;
306} 306}
307static inline u32 ram_fc_semaphorec_w(void) 307static inline u32 ram_fc_semaphorec_w(void)
308{ 308{
309 return 16; 309 return 16U;
310} 310}
311static inline u32 ram_fc_semaphored_w(void) 311static inline u32 ram_fc_semaphored_w(void)
312{ 312{
313 return 17; 313 return 17U;
314} 314}
315static inline u32 ram_fc_gp_base_w(void) 315static inline u32 ram_fc_gp_base_w(void)
316{ 316{
317 return 18; 317 return 18U;
318} 318}
319static inline u32 ram_fc_gp_base_hi_w(void) 319static inline u32 ram_fc_gp_base_hi_w(void)
320{ 320{
321 return 19; 321 return 19U;
322} 322}
323static inline u32 ram_fc_gp_fetch_w(void) 323static inline u32 ram_fc_gp_fetch_w(void)
324{ 324{
325 return 20; 325 return 20U;
326} 326}
327static inline u32 ram_fc_pb_fetch_w(void) 327static inline u32 ram_fc_pb_fetch_w(void)
328{ 328{
329 return 21; 329 return 21U;
330} 330}
331static inline u32 ram_fc_pb_fetch_hi_w(void) 331static inline u32 ram_fc_pb_fetch_hi_w(void)
332{ 332{
333 return 22; 333 return 22U;
334} 334}
335static inline u32 ram_fc_pb_put_w(void) 335static inline u32 ram_fc_pb_put_w(void)
336{ 336{
337 return 23; 337 return 23U;
338} 338}
339static inline u32 ram_fc_pb_put_hi_w(void) 339static inline u32 ram_fc_pb_put_hi_w(void)
340{ 340{
341 return 24; 341 return 24U;
342} 342}
343static inline u32 ram_fc_pb_header_w(void) 343static inline u32 ram_fc_pb_header_w(void)
344{ 344{
345 return 33; 345 return 33U;
346} 346}
347static inline u32 ram_fc_pb_count_w(void) 347static inline u32 ram_fc_pb_count_w(void)
348{ 348{
349 return 34; 349 return 34U;
350} 350}
351static inline u32 ram_fc_subdevice_w(void) 351static inline u32 ram_fc_subdevice_w(void)
352{ 352{
353 return 37; 353 return 37U;
354} 354}
355static inline u32 ram_fc_formats_w(void) 355static inline u32 ram_fc_formats_w(void)
356{ 356{
357 return 39; 357 return 39U;
358} 358}
359static inline u32 ram_fc_allowed_syncpoints_w(void) 359static inline u32 ram_fc_allowed_syncpoints_w(void)
360{ 360{
361 return 58; 361 return 58U;
362} 362}
363static inline u32 ram_fc_syncpointa_w(void) 363static inline u32 ram_fc_syncpointa_w(void)
364{ 364{
365 return 41; 365 return 41U;
366} 366}
367static inline u32 ram_fc_syncpointb_w(void) 367static inline u32 ram_fc_syncpointb_w(void)
368{ 368{
369 return 42; 369 return 42U;
370} 370}
371static inline u32 ram_fc_target_w(void) 371static inline u32 ram_fc_target_w(void)
372{ 372{
373 return 43; 373 return 43U;
374} 374}
375static inline u32 ram_fc_hce_ctrl_w(void) 375static inline u32 ram_fc_hce_ctrl_w(void)
376{ 376{
377 return 57; 377 return 57U;
378} 378}
379static inline u32 ram_fc_chid_w(void) 379static inline u32 ram_fc_chid_w(void)
380{ 380{
381 return 58; 381 return 58U;
382} 382}
383static inline u32 ram_fc_chid_id_f(u32 v) 383static inline u32 ram_fc_chid_id_f(u32 v)
384{ 384{
385 return (v & 0xfff) << 0; 385 return (v & 0xfffU) << 0U;
386} 386}
387static inline u32 ram_fc_chid_id_w(void) 387static inline u32 ram_fc_chid_id_w(void)
388{ 388{
389 return 0; 389 return 0U;
390} 390}
391static inline u32 ram_fc_config_w(void) 391static inline u32 ram_fc_config_w(void)
392{ 392{
393 return 61; 393 return 61U;
394} 394}
395static inline u32 ram_fc_runlist_timeslice_w(void) 395static inline u32 ram_fc_runlist_timeslice_w(void)
396{ 396{
397 return 62; 397 return 62U;
398} 398}
399static inline u32 ram_userd_base_shift_v(void) 399static inline u32 ram_userd_base_shift_v(void)
400{ 400{
401 return 0x00000009; 401 return 0x00000009U;
402} 402}
403static inline u32 ram_userd_chan_size_v(void) 403static inline u32 ram_userd_chan_size_v(void)
404{ 404{
405 return 0x00000200; 405 return 0x00000200U;
406} 406}
407static inline u32 ram_userd_put_w(void) 407static inline u32 ram_userd_put_w(void)
408{ 408{
409 return 16; 409 return 16U;
410} 410}
411static inline u32 ram_userd_get_w(void) 411static inline u32 ram_userd_get_w(void)
412{ 412{
413 return 17; 413 return 17U;
414} 414}
415static inline u32 ram_userd_ref_w(void) 415static inline u32 ram_userd_ref_w(void)
416{ 416{
417 return 18; 417 return 18U;
418} 418}
419static inline u32 ram_userd_put_hi_w(void) 419static inline u32 ram_userd_put_hi_w(void)
420{ 420{
421 return 19; 421 return 19U;
422} 422}
423static inline u32 ram_userd_ref_threshold_w(void) 423static inline u32 ram_userd_ref_threshold_w(void)
424{ 424{
425 return 20; 425 return 20U;
426} 426}
427static inline u32 ram_userd_top_level_get_w(void) 427static inline u32 ram_userd_top_level_get_w(void)
428{ 428{
429 return 22; 429 return 22U;
430} 430}
431static inline u32 ram_userd_top_level_get_hi_w(void) 431static inline u32 ram_userd_top_level_get_hi_w(void)
432{ 432{
433 return 23; 433 return 23U;
434} 434}
435static inline u32 ram_userd_get_hi_w(void) 435static inline u32 ram_userd_get_hi_w(void)
436{ 436{
437 return 24; 437 return 24U;
438} 438}
439static inline u32 ram_userd_gp_get_w(void) 439static inline u32 ram_userd_gp_get_w(void)
440{ 440{
441 return 34; 441 return 34U;
442} 442}
443static inline u32 ram_userd_gp_put_w(void) 443static inline u32 ram_userd_gp_put_w(void)
444{ 444{
445 return 35; 445 return 35U;
446} 446}
447static inline u32 ram_userd_gp_top_level_get_w(void) 447static inline u32 ram_userd_gp_top_level_get_w(void)
448{ 448{
449 return 22; 449 return 22U;
450} 450}
451static inline u32 ram_userd_gp_top_level_get_hi_w(void) 451static inline u32 ram_userd_gp_top_level_get_hi_w(void)
452{ 452{
453 return 23; 453 return 23U;
454} 454}
455static inline u32 ram_rl_entry_size_v(void) 455static inline u32 ram_rl_entry_size_v(void)
456{ 456{
457 return 0x00000008; 457 return 0x00000008U;
458} 458}
459static inline u32 ram_rl_entry_chid_f(u32 v) 459static inline u32 ram_rl_entry_chid_f(u32 v)
460{ 460{
461 return (v & 0xfff) << 0; 461 return (v & 0xfffU) << 0U;
462} 462}
463static inline u32 ram_rl_entry_id_f(u32 v) 463static inline u32 ram_rl_entry_id_f(u32 v)
464{ 464{
465 return (v & 0xfff) << 0; 465 return (v & 0xfffU) << 0U;
466} 466}
467static inline u32 ram_rl_entry_type_f(u32 v) 467static inline u32 ram_rl_entry_type_f(u32 v)
468{ 468{
469 return (v & 0x1) << 13; 469 return (v & 0x1U) << 13U;
470} 470}
471static inline u32 ram_rl_entry_type_chid_f(void) 471static inline u32 ram_rl_entry_type_chid_f(void)
472{ 472{
473 return 0x0; 473 return 0x0U;
474} 474}
475static inline u32 ram_rl_entry_type_tsg_f(void) 475static inline u32 ram_rl_entry_type_tsg_f(void)
476{ 476{
477 return 0x2000; 477 return 0x2000U;
478} 478}
479static inline u32 ram_rl_entry_timeslice_scale_f(u32 v) 479static inline u32 ram_rl_entry_timeslice_scale_f(u32 v)
480{ 480{
481 return (v & 0xf) << 14; 481 return (v & 0xfU) << 14U;
482} 482}
483static inline u32 ram_rl_entry_timeslice_scale_3_f(void) 483static inline u32 ram_rl_entry_timeslice_scale_3_f(void)
484{ 484{
485 return 0xc000; 485 return 0xc000U;
486} 486}
487static inline u32 ram_rl_entry_timeslice_timeout_f(u32 v) 487static inline u32 ram_rl_entry_timeslice_timeout_f(u32 v)
488{ 488{
489 return (v & 0xff) << 18; 489 return (v & 0xffU) << 18U;
490} 490}
491static inline u32 ram_rl_entry_timeslice_timeout_128_f(void) 491static inline u32 ram_rl_entry_timeslice_timeout_128_f(void)
492{ 492{
493 return 0x2000000; 493 return 0x2000000U;
494} 494}
495static inline u32 ram_rl_entry_tsg_length_f(u32 v) 495static inline u32 ram_rl_entry_tsg_length_f(u32 v)
496{ 496{
497 return (v & 0x3f) << 26; 497 return (v & 0x3fU) << 26U;
498} 498}
499#endif 499#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_therm_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_therm_gp10b.h
index 51c926b5..49fb7180 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_therm_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_therm_gp10b.h
@@ -58,358 +58,358 @@
58 58
59static inline u32 therm_use_a_r(void) 59static inline u32 therm_use_a_r(void)
60{ 60{
61 return 0x00020798; 61 return 0x00020798U;
62} 62}
63static inline u32 therm_use_a_ext_therm_0_enable_f(void) 63static inline u32 therm_use_a_ext_therm_0_enable_f(void)
64{ 64{
65 return 0x1; 65 return 0x1U;
66} 66}
67static inline u32 therm_use_a_ext_therm_1_enable_f(void) 67static inline u32 therm_use_a_ext_therm_1_enable_f(void)
68{ 68{
69 return 0x2; 69 return 0x2U;
70} 70}
71static inline u32 therm_use_a_ext_therm_2_enable_f(void) 71static inline u32 therm_use_a_ext_therm_2_enable_f(void)
72{ 72{
73 return 0x4; 73 return 0x4U;
74} 74}
75static inline u32 therm_evt_ext_therm_0_r(void) 75static inline u32 therm_evt_ext_therm_0_r(void)
76{ 76{
77 return 0x00020700; 77 return 0x00020700U;
78} 78}
79static inline u32 therm_evt_ext_therm_0_slow_factor_f(u32 v) 79static inline u32 therm_evt_ext_therm_0_slow_factor_f(u32 v)
80{ 80{
81 return (v & 0x3f) << 24; 81 return (v & 0x3fU) << 24U;
82} 82}
83static inline u32 therm_evt_ext_therm_0_slow_factor_init_v(void) 83static inline u32 therm_evt_ext_therm_0_slow_factor_init_v(void)
84{ 84{
85 return 0x00000001; 85 return 0x00000001U;
86} 86}
87static inline u32 therm_evt_ext_therm_0_mode_f(u32 v) 87static inline u32 therm_evt_ext_therm_0_mode_f(u32 v)
88{ 88{
89 return (v & 0x3) << 30; 89 return (v & 0x3U) << 30U;
90} 90}
91static inline u32 therm_evt_ext_therm_0_mode_normal_v(void) 91static inline u32 therm_evt_ext_therm_0_mode_normal_v(void)
92{ 92{
93 return 0x00000000; 93 return 0x00000000U;
94} 94}
95static inline u32 therm_evt_ext_therm_0_mode_inverted_v(void) 95static inline u32 therm_evt_ext_therm_0_mode_inverted_v(void)
96{ 96{
97 return 0x00000001; 97 return 0x00000001U;
98} 98}
99static inline u32 therm_evt_ext_therm_0_mode_forced_v(void) 99static inline u32 therm_evt_ext_therm_0_mode_forced_v(void)
100{ 100{
101 return 0x00000002; 101 return 0x00000002U;
102} 102}
103static inline u32 therm_evt_ext_therm_0_mode_cleared_v(void) 103static inline u32 therm_evt_ext_therm_0_mode_cleared_v(void)
104{ 104{
105 return 0x00000003; 105 return 0x00000003U;
106} 106}
107static inline u32 therm_evt_ext_therm_1_r(void) 107static inline u32 therm_evt_ext_therm_1_r(void)
108{ 108{
109 return 0x00020704; 109 return 0x00020704U;
110} 110}
111static inline u32 therm_evt_ext_therm_1_slow_factor_f(u32 v) 111static inline u32 therm_evt_ext_therm_1_slow_factor_f(u32 v)
112{ 112{
113 return (v & 0x3f) << 24; 113 return (v & 0x3fU) << 24U;
114} 114}
115static inline u32 therm_evt_ext_therm_1_slow_factor_init_v(void) 115static inline u32 therm_evt_ext_therm_1_slow_factor_init_v(void)
116{ 116{
117 return 0x00000002; 117 return 0x00000002U;
118} 118}
119static inline u32 therm_evt_ext_therm_1_mode_f(u32 v) 119static inline u32 therm_evt_ext_therm_1_mode_f(u32 v)
120{ 120{
121 return (v & 0x3) << 30; 121 return (v & 0x3U) << 30U;
122} 122}
123static inline u32 therm_evt_ext_therm_1_mode_normal_v(void) 123static inline u32 therm_evt_ext_therm_1_mode_normal_v(void)
124{ 124{
125 return 0x00000000; 125 return 0x00000000U;
126} 126}
127static inline u32 therm_evt_ext_therm_1_mode_inverted_v(void) 127static inline u32 therm_evt_ext_therm_1_mode_inverted_v(void)
128{ 128{
129 return 0x00000001; 129 return 0x00000001U;
130} 130}
131static inline u32 therm_evt_ext_therm_1_mode_forced_v(void) 131static inline u32 therm_evt_ext_therm_1_mode_forced_v(void)
132{ 132{
133 return 0x00000002; 133 return 0x00000002U;
134} 134}
135static inline u32 therm_evt_ext_therm_1_mode_cleared_v(void) 135static inline u32 therm_evt_ext_therm_1_mode_cleared_v(void)
136{ 136{
137 return 0x00000003; 137 return 0x00000003U;
138} 138}
139static inline u32 therm_evt_ext_therm_2_r(void) 139static inline u32 therm_evt_ext_therm_2_r(void)
140{ 140{
141 return 0x00020708; 141 return 0x00020708U;
142} 142}
143static inline u32 therm_evt_ext_therm_2_slow_factor_f(u32 v) 143static inline u32 therm_evt_ext_therm_2_slow_factor_f(u32 v)
144{ 144{
145 return (v & 0x3f) << 24; 145 return (v & 0x3fU) << 24U;
146} 146}
147static inline u32 therm_evt_ext_therm_2_slow_factor_init_v(void) 147static inline u32 therm_evt_ext_therm_2_slow_factor_init_v(void)
148{ 148{
149 return 0x00000003; 149 return 0x00000003U;
150} 150}
151static inline u32 therm_evt_ext_therm_2_mode_f(u32 v) 151static inline u32 therm_evt_ext_therm_2_mode_f(u32 v)
152{ 152{
153 return (v & 0x3) << 30; 153 return (v & 0x3U) << 30U;
154} 154}
155static inline u32 therm_evt_ext_therm_2_mode_normal_v(void) 155static inline u32 therm_evt_ext_therm_2_mode_normal_v(void)
156{ 156{
157 return 0x00000000; 157 return 0x00000000U;
158} 158}
159static inline u32 therm_evt_ext_therm_2_mode_inverted_v(void) 159static inline u32 therm_evt_ext_therm_2_mode_inverted_v(void)
160{ 160{
161 return 0x00000001; 161 return 0x00000001U;
162} 162}
163static inline u32 therm_evt_ext_therm_2_mode_forced_v(void) 163static inline u32 therm_evt_ext_therm_2_mode_forced_v(void)
164{ 164{
165 return 0x00000002; 165 return 0x00000002U;
166} 166}
167static inline u32 therm_evt_ext_therm_2_mode_cleared_v(void) 167static inline u32 therm_evt_ext_therm_2_mode_cleared_v(void)
168{ 168{
169 return 0x00000003; 169 return 0x00000003U;
170} 170}
171static inline u32 therm_weight_1_r(void) 171static inline u32 therm_weight_1_r(void)
172{ 172{
173 return 0x00020024; 173 return 0x00020024U;
174} 174}
175static inline u32 therm_config1_r(void) 175static inline u32 therm_config1_r(void)
176{ 176{
177 return 0x00020050; 177 return 0x00020050U;
178} 178}
179static inline u32 therm_config2_r(void) 179static inline u32 therm_config2_r(void)
180{ 180{
181 return 0x00020130; 181 return 0x00020130U;
182} 182}
183static inline u32 therm_config2_slowdown_factor_extended_f(u32 v) 183static inline u32 therm_config2_slowdown_factor_extended_f(u32 v)
184{ 184{
185 return (v & 0x1) << 24; 185 return (v & 0x1U) << 24U;
186} 186}
187static inline u32 therm_config2_grad_enable_f(u32 v) 187static inline u32 therm_config2_grad_enable_f(u32 v)
188{ 188{
189 return (v & 0x1) << 31; 189 return (v & 0x1U) << 31U;
190} 190}
191static inline u32 therm_gate_ctrl_r(u32 i) 191static inline u32 therm_gate_ctrl_r(u32 i)
192{ 192{
193 return 0x00020200 + i*4; 193 return 0x00020200U + i*4U;
194} 194}
195static inline u32 therm_gate_ctrl_eng_clk_m(void) 195static inline u32 therm_gate_ctrl_eng_clk_m(void)
196{ 196{
197 return 0x3 << 0; 197 return 0x3U << 0U;
198} 198}
199static inline u32 therm_gate_ctrl_eng_clk_run_f(void) 199static inline u32 therm_gate_ctrl_eng_clk_run_f(void)
200{ 200{
201 return 0x0; 201 return 0x0U;
202} 202}
203static inline u32 therm_gate_ctrl_eng_clk_auto_f(void) 203static inline u32 therm_gate_ctrl_eng_clk_auto_f(void)
204{ 204{
205 return 0x1; 205 return 0x1U;
206} 206}
207static inline u32 therm_gate_ctrl_eng_clk_stop_f(void) 207static inline u32 therm_gate_ctrl_eng_clk_stop_f(void)
208{ 208{
209 return 0x2; 209 return 0x2U;
210} 210}
211static inline u32 therm_gate_ctrl_blk_clk_m(void) 211static inline u32 therm_gate_ctrl_blk_clk_m(void)
212{ 212{
213 return 0x3 << 2; 213 return 0x3U << 2U;
214} 214}
215static inline u32 therm_gate_ctrl_blk_clk_run_f(void) 215static inline u32 therm_gate_ctrl_blk_clk_run_f(void)
216{ 216{
217 return 0x0; 217 return 0x0U;
218} 218}
219static inline u32 therm_gate_ctrl_blk_clk_auto_f(void) 219static inline u32 therm_gate_ctrl_blk_clk_auto_f(void)
220{ 220{
221 return 0x4; 221 return 0x4U;
222} 222}
223static inline u32 therm_gate_ctrl_eng_pwr_m(void) 223static inline u32 therm_gate_ctrl_eng_pwr_m(void)
224{ 224{
225 return 0x3 << 4; 225 return 0x3U << 4U;
226} 226}
227static inline u32 therm_gate_ctrl_eng_pwr_auto_f(void) 227static inline u32 therm_gate_ctrl_eng_pwr_auto_f(void)
228{ 228{
229 return 0x10; 229 return 0x10U;
230} 230}
231static inline u32 therm_gate_ctrl_eng_pwr_off_v(void) 231static inline u32 therm_gate_ctrl_eng_pwr_off_v(void)
232{ 232{
233 return 0x00000002; 233 return 0x00000002U;
234} 234}
235static inline u32 therm_gate_ctrl_eng_pwr_off_f(void) 235static inline u32 therm_gate_ctrl_eng_pwr_off_f(void)
236{ 236{
237 return 0x20; 237 return 0x20U;
238} 238}
239static inline u32 therm_gate_ctrl_eng_idle_filt_exp_f(u32 v) 239static inline u32 therm_gate_ctrl_eng_idle_filt_exp_f(u32 v)
240{ 240{
241 return (v & 0x1f) << 8; 241 return (v & 0x1fU) << 8U;
242} 242}
243static inline u32 therm_gate_ctrl_eng_idle_filt_exp_m(void) 243static inline u32 therm_gate_ctrl_eng_idle_filt_exp_m(void)
244{ 244{
245 return 0x1f << 8; 245 return 0x1fU << 8U;
246} 246}
247static inline u32 therm_gate_ctrl_eng_idle_filt_mant_f(u32 v) 247static inline u32 therm_gate_ctrl_eng_idle_filt_mant_f(u32 v)
248{ 248{
249 return (v & 0x7) << 13; 249 return (v & 0x7U) << 13U;
250} 250}
251static inline u32 therm_gate_ctrl_eng_idle_filt_mant_m(void) 251static inline u32 therm_gate_ctrl_eng_idle_filt_mant_m(void)
252{ 252{
253 return 0x7 << 13; 253 return 0x7U << 13U;
254} 254}
255static inline u32 therm_gate_ctrl_eng_delay_before_f(u32 v) 255static inline u32 therm_gate_ctrl_eng_delay_before_f(u32 v)
256{ 256{
257 return (v & 0xf) << 16; 257 return (v & 0xfU) << 16U;
258} 258}
259static inline u32 therm_gate_ctrl_eng_delay_before_m(void) 259static inline u32 therm_gate_ctrl_eng_delay_before_m(void)
260{ 260{
261 return 0xf << 16; 261 return 0xfU << 16U;
262} 262}
263static inline u32 therm_gate_ctrl_eng_delay_after_f(u32 v) 263static inline u32 therm_gate_ctrl_eng_delay_after_f(u32 v)
264{ 264{
265 return (v & 0xf) << 20; 265 return (v & 0xfU) << 20U;
266} 266}
267static inline u32 therm_gate_ctrl_eng_delay_after_m(void) 267static inline u32 therm_gate_ctrl_eng_delay_after_m(void)
268{ 268{
269 return 0xf << 20; 269 return 0xfU << 20U;
270} 270}
271static inline u32 therm_fecs_idle_filter_r(void) 271static inline u32 therm_fecs_idle_filter_r(void)
272{ 272{
273 return 0x00020288; 273 return 0x00020288U;
274} 274}
275static inline u32 therm_fecs_idle_filter_value_m(void) 275static inline u32 therm_fecs_idle_filter_value_m(void)
276{ 276{
277 return 0xffffffff << 0; 277 return 0xffffffffU << 0U;
278} 278}
279static inline u32 therm_hubmmu_idle_filter_r(void) 279static inline u32 therm_hubmmu_idle_filter_r(void)
280{ 280{
281 return 0x0002028c; 281 return 0x0002028cU;
282} 282}
283static inline u32 therm_hubmmu_idle_filter_value_m(void) 283static inline u32 therm_hubmmu_idle_filter_value_m(void)
284{ 284{
285 return 0xffffffff << 0; 285 return 0xffffffffU << 0U;
286} 286}
287static inline u32 therm_clk_slowdown_r(u32 i) 287static inline u32 therm_clk_slowdown_r(u32 i)
288{ 288{
289 return 0x00020160 + i*4; 289 return 0x00020160U + i*4U;
290} 290}
291static inline u32 therm_clk_slowdown_idle_factor_f(u32 v) 291static inline u32 therm_clk_slowdown_idle_factor_f(u32 v)
292{ 292{
293 return (v & 0x3f) << 16; 293 return (v & 0x3fU) << 16U;
294} 294}
295static inline u32 therm_clk_slowdown_idle_factor_m(void) 295static inline u32 therm_clk_slowdown_idle_factor_m(void)
296{ 296{
297 return 0x3f << 16; 297 return 0x3fU << 16U;
298} 298}
299static inline u32 therm_clk_slowdown_idle_factor_v(u32 r) 299static inline u32 therm_clk_slowdown_idle_factor_v(u32 r)
300{ 300{
301 return (r >> 16) & 0x3f; 301 return (r >> 16U) & 0x3fU;
302} 302}
303static inline u32 therm_clk_slowdown_idle_factor_disabled_f(void) 303static inline u32 therm_clk_slowdown_idle_factor_disabled_f(void)
304{ 304{
305 return 0x0; 305 return 0x0U;
306} 306}
307static inline u32 therm_grad_stepping_table_r(u32 i) 307static inline u32 therm_grad_stepping_table_r(u32 i)
308{ 308{
309 return 0x000202c8 + i*4; 309 return 0x000202c8U + i*4U;
310} 310}
311static inline u32 therm_grad_stepping_table_slowdown_factor0_f(u32 v) 311static inline u32 therm_grad_stepping_table_slowdown_factor0_f(u32 v)
312{ 312{
313 return (v & 0x3f) << 0; 313 return (v & 0x3fU) << 0U;
314} 314}
315static inline u32 therm_grad_stepping_table_slowdown_factor0_m(void) 315static inline u32 therm_grad_stepping_table_slowdown_factor0_m(void)
316{ 316{
317 return 0x3f << 0; 317 return 0x3fU << 0U;
318} 318}
319static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by1p5_f(void) 319static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by1p5_f(void)
320{ 320{
321 return 0x1; 321 return 0x1U;
322} 322}
323static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by2_f(void) 323static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by2_f(void)
324{ 324{
325 return 0x2; 325 return 0x2U;
326} 326}
327static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by4_f(void) 327static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by4_f(void)
328{ 328{
329 return 0x6; 329 return 0x6U;
330} 330}
331static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by8_f(void) 331static inline u32 therm_grad_stepping_table_slowdown_factor0_fpdiv_by8_f(void)
332{ 332{
333 return 0xe; 333 return 0xeU;
334} 334}
335static inline u32 therm_grad_stepping_table_slowdown_factor1_f(u32 v) 335static inline u32 therm_grad_stepping_table_slowdown_factor1_f(u32 v)
336{ 336{
337 return (v & 0x3f) << 6; 337 return (v & 0x3fU) << 6U;
338} 338}
339static inline u32 therm_grad_stepping_table_slowdown_factor1_m(void) 339static inline u32 therm_grad_stepping_table_slowdown_factor1_m(void)
340{ 340{
341 return 0x3f << 6; 341 return 0x3fU << 6U;
342} 342}
343static inline u32 therm_grad_stepping_table_slowdown_factor2_f(u32 v) 343static inline u32 therm_grad_stepping_table_slowdown_factor2_f(u32 v)
344{ 344{
345 return (v & 0x3f) << 12; 345 return (v & 0x3fU) << 12U;
346} 346}
347static inline u32 therm_grad_stepping_table_slowdown_factor2_m(void) 347static inline u32 therm_grad_stepping_table_slowdown_factor2_m(void)
348{ 348{
349 return 0x3f << 12; 349 return 0x3fU << 12U;
350} 350}
351static inline u32 therm_grad_stepping_table_slowdown_factor3_f(u32 v) 351static inline u32 therm_grad_stepping_table_slowdown_factor3_f(u32 v)
352{ 352{
353 return (v & 0x3f) << 18; 353 return (v & 0x3fU) << 18U;
354} 354}
355static inline u32 therm_grad_stepping_table_slowdown_factor3_m(void) 355static inline u32 therm_grad_stepping_table_slowdown_factor3_m(void)
356{ 356{
357 return 0x3f << 18; 357 return 0x3fU << 18U;
358} 358}
359static inline u32 therm_grad_stepping_table_slowdown_factor4_f(u32 v) 359static inline u32 therm_grad_stepping_table_slowdown_factor4_f(u32 v)
360{ 360{
361 return (v & 0x3f) << 24; 361 return (v & 0x3fU) << 24U;
362} 362}
363static inline u32 therm_grad_stepping_table_slowdown_factor4_m(void) 363static inline u32 therm_grad_stepping_table_slowdown_factor4_m(void)
364{ 364{
365 return 0x3f << 24; 365 return 0x3fU << 24U;
366} 366}
367static inline u32 therm_grad_stepping0_r(void) 367static inline u32 therm_grad_stepping0_r(void)
368{ 368{
369 return 0x000202c0; 369 return 0x000202c0U;
370} 370}
371static inline u32 therm_grad_stepping0_feature_s(void) 371static inline u32 therm_grad_stepping0_feature_s(void)
372{ 372{
373 return 1; 373 return 1U;
374} 374}
375static inline u32 therm_grad_stepping0_feature_f(u32 v) 375static inline u32 therm_grad_stepping0_feature_f(u32 v)
376{ 376{
377 return (v & 0x1) << 0; 377 return (v & 0x1U) << 0U;
378} 378}
379static inline u32 therm_grad_stepping0_feature_m(void) 379static inline u32 therm_grad_stepping0_feature_m(void)
380{ 380{
381 return 0x1 << 0; 381 return 0x1U << 0U;
382} 382}
383static inline u32 therm_grad_stepping0_feature_v(u32 r) 383static inline u32 therm_grad_stepping0_feature_v(u32 r)
384{ 384{
385 return (r >> 0) & 0x1; 385 return (r >> 0U) & 0x1U;
386} 386}
387static inline u32 therm_grad_stepping0_feature_enable_f(void) 387static inline u32 therm_grad_stepping0_feature_enable_f(void)
388{ 388{
389 return 0x1; 389 return 0x1U;
390} 390}
391static inline u32 therm_grad_stepping1_r(void) 391static inline u32 therm_grad_stepping1_r(void)
392{ 392{
393 return 0x000202c4; 393 return 0x000202c4U;
394} 394}
395static inline u32 therm_grad_stepping1_pdiv_duration_f(u32 v) 395static inline u32 therm_grad_stepping1_pdiv_duration_f(u32 v)
396{ 396{
397 return (v & 0x1ffff) << 0; 397 return (v & 0x1ffffU) << 0U;
398} 398}
399static inline u32 therm_clk_timing_r(u32 i) 399static inline u32 therm_clk_timing_r(u32 i)
400{ 400{
401 return 0x000203c0 + i*4; 401 return 0x000203c0U + i*4U;
402} 402}
403static inline u32 therm_clk_timing_grad_slowdown_f(u32 v) 403static inline u32 therm_clk_timing_grad_slowdown_f(u32 v)
404{ 404{
405 return (v & 0x1) << 16; 405 return (v & 0x1U) << 16U;
406} 406}
407static inline u32 therm_clk_timing_grad_slowdown_m(void) 407static inline u32 therm_clk_timing_grad_slowdown_m(void)
408{ 408{
409 return 0x1 << 16; 409 return 0x1U << 16U;
410} 410}
411static inline u32 therm_clk_timing_grad_slowdown_enabled_f(void) 411static inline u32 therm_clk_timing_grad_slowdown_enabled_f(void)
412{ 412{
413 return 0x10000; 413 return 0x10000U;
414} 414}
415#endif 415#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_timer_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_timer_gp10b.h
index dd73eba1..db752648 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_timer_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_timer_gp10b.h
@@ -58,58 +58,58 @@
58 58
59static inline u32 timer_pri_timeout_r(void) 59static inline u32 timer_pri_timeout_r(void)
60{ 60{
61 return 0x00009080; 61 return 0x00009080U;
62} 62}
63static inline u32 timer_pri_timeout_period_f(u32 v) 63static inline u32 timer_pri_timeout_period_f(u32 v)
64{ 64{
65 return (v & 0xffffff) << 0; 65 return (v & 0xffffffU) << 0U;
66} 66}
67static inline u32 timer_pri_timeout_period_m(void) 67static inline u32 timer_pri_timeout_period_m(void)
68{ 68{
69 return 0xffffff << 0; 69 return 0xffffffU << 0U;
70} 70}
71static inline u32 timer_pri_timeout_period_v(u32 r) 71static inline u32 timer_pri_timeout_period_v(u32 r)
72{ 72{
73 return (r >> 0) & 0xffffff; 73 return (r >> 0U) & 0xffffffU;
74} 74}
75static inline u32 timer_pri_timeout_en_f(u32 v) 75static inline u32 timer_pri_timeout_en_f(u32 v)
76{ 76{
77 return (v & 0x1) << 31; 77 return (v & 0x1U) << 31U;
78} 78}
79static inline u32 timer_pri_timeout_en_m(void) 79static inline u32 timer_pri_timeout_en_m(void)
80{ 80{
81 return 0x1 << 31; 81 return 0x1U << 31U;
82} 82}
83static inline u32 timer_pri_timeout_en_v(u32 r) 83static inline u32 timer_pri_timeout_en_v(u32 r)
84{ 84{
85 return (r >> 31) & 0x1; 85 return (r >> 31U) & 0x1U;
86} 86}
87static inline u32 timer_pri_timeout_en_en_enabled_f(void) 87static inline u32 timer_pri_timeout_en_en_enabled_f(void)
88{ 88{
89 return 0x80000000; 89 return 0x80000000U;
90} 90}
91static inline u32 timer_pri_timeout_en_en_disabled_f(void) 91static inline u32 timer_pri_timeout_en_en_disabled_f(void)
92{ 92{
93 return 0x0; 93 return 0x0U;
94} 94}
95static inline u32 timer_pri_timeout_save_0_r(void) 95static inline u32 timer_pri_timeout_save_0_r(void)
96{ 96{
97 return 0x00009084; 97 return 0x00009084U;
98} 98}
99static inline u32 timer_pri_timeout_save_1_r(void) 99static inline u32 timer_pri_timeout_save_1_r(void)
100{ 100{
101 return 0x00009088; 101 return 0x00009088U;
102} 102}
103static inline u32 timer_pri_timeout_fecs_errcode_r(void) 103static inline u32 timer_pri_timeout_fecs_errcode_r(void)
104{ 104{
105 return 0x0000908c; 105 return 0x0000908cU;
106} 106}
107static inline u32 timer_time_0_r(void) 107static inline u32 timer_time_0_r(void)
108{ 108{
109 return 0x00009400; 109 return 0x00009400U;
110} 110}
111static inline u32 timer_time_1_r(void) 111static inline u32 timer_time_1_r(void)
112{ 112{
113 return 0x00009410; 113 return 0x00009410U;
114} 114}
115#endif 115#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_top_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_top_gp10b.h
index 0bd55037..8d336077 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_top_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_top_gp10b.h
@@ -58,174 +58,174 @@
58 58
59static inline u32 top_num_gpcs_r(void) 59static inline u32 top_num_gpcs_r(void)
60{ 60{
61 return 0x00022430; 61 return 0x00022430U;
62} 62}
63static inline u32 top_num_gpcs_value_v(u32 r) 63static inline u32 top_num_gpcs_value_v(u32 r)
64{ 64{
65 return (r >> 0) & 0x1f; 65 return (r >> 0U) & 0x1fU;
66} 66}
67static inline u32 top_tpc_per_gpc_r(void) 67static inline u32 top_tpc_per_gpc_r(void)
68{ 68{
69 return 0x00022434; 69 return 0x00022434U;
70} 70}
71static inline u32 top_tpc_per_gpc_value_v(u32 r) 71static inline u32 top_tpc_per_gpc_value_v(u32 r)
72{ 72{
73 return (r >> 0) & 0x1f; 73 return (r >> 0U) & 0x1fU;
74} 74}
75static inline u32 top_num_fbps_r(void) 75static inline u32 top_num_fbps_r(void)
76{ 76{
77 return 0x00022438; 77 return 0x00022438U;
78} 78}
79static inline u32 top_num_fbps_value_v(u32 r) 79static inline u32 top_num_fbps_value_v(u32 r)
80{ 80{
81 return (r >> 0) & 0x1f; 81 return (r >> 0U) & 0x1fU;
82} 82}
83static inline u32 top_ltc_per_fbp_r(void) 83static inline u32 top_ltc_per_fbp_r(void)
84{ 84{
85 return 0x00022450; 85 return 0x00022450U;
86} 86}
87static inline u32 top_ltc_per_fbp_value_v(u32 r) 87static inline u32 top_ltc_per_fbp_value_v(u32 r)
88{ 88{
89 return (r >> 0) & 0x1f; 89 return (r >> 0U) & 0x1fU;
90} 90}
91static inline u32 top_slices_per_ltc_r(void) 91static inline u32 top_slices_per_ltc_r(void)
92{ 92{
93 return 0x0002245c; 93 return 0x0002245cU;
94} 94}
95static inline u32 top_slices_per_ltc_value_v(u32 r) 95static inline u32 top_slices_per_ltc_value_v(u32 r)
96{ 96{
97 return (r >> 0) & 0x1f; 97 return (r >> 0U) & 0x1fU;
98} 98}
99static inline u32 top_num_ltcs_r(void) 99static inline u32 top_num_ltcs_r(void)
100{ 100{
101 return 0x00022454; 101 return 0x00022454U;
102} 102}
103static inline u32 top_device_info_r(u32 i) 103static inline u32 top_device_info_r(u32 i)
104{ 104{
105 return 0x00022700 + i*4; 105 return 0x00022700U + i*4U;
106} 106}
107static inline u32 top_device_info__size_1_v(void) 107static inline u32 top_device_info__size_1_v(void)
108{ 108{
109 return 0x00000040; 109 return 0x00000040U;
110} 110}
111static inline u32 top_device_info_chain_v(u32 r) 111static inline u32 top_device_info_chain_v(u32 r)
112{ 112{
113 return (r >> 31) & 0x1; 113 return (r >> 31U) & 0x1U;
114} 114}
115static inline u32 top_device_info_chain_enable_v(void) 115static inline u32 top_device_info_chain_enable_v(void)
116{ 116{
117 return 0x00000001; 117 return 0x00000001U;
118} 118}
119static inline u32 top_device_info_engine_enum_v(u32 r) 119static inline u32 top_device_info_engine_enum_v(u32 r)
120{ 120{
121 return (r >> 26) & 0xf; 121 return (r >> 26U) & 0xfU;
122} 122}
123static inline u32 top_device_info_runlist_enum_v(u32 r) 123static inline u32 top_device_info_runlist_enum_v(u32 r)
124{ 124{
125 return (r >> 21) & 0xf; 125 return (r >> 21U) & 0xfU;
126} 126}
127static inline u32 top_device_info_intr_enum_v(u32 r) 127static inline u32 top_device_info_intr_enum_v(u32 r)
128{ 128{
129 return (r >> 15) & 0x1f; 129 return (r >> 15U) & 0x1fU;
130} 130}
131static inline u32 top_device_info_reset_enum_v(u32 r) 131static inline u32 top_device_info_reset_enum_v(u32 r)
132{ 132{
133 return (r >> 9) & 0x1f; 133 return (r >> 9U) & 0x1fU;
134} 134}
135static inline u32 top_device_info_type_enum_v(u32 r) 135static inline u32 top_device_info_type_enum_v(u32 r)
136{ 136{
137 return (r >> 2) & 0x1fffffff; 137 return (r >> 2U) & 0x1fffffffU;
138} 138}
139static inline u32 top_device_info_type_enum_graphics_v(void) 139static inline u32 top_device_info_type_enum_graphics_v(void)
140{ 140{
141 return 0x00000000; 141 return 0x00000000U;
142} 142}
143static inline u32 top_device_info_type_enum_graphics_f(void) 143static inline u32 top_device_info_type_enum_graphics_f(void)
144{ 144{
145 return 0x0; 145 return 0x0U;
146} 146}
147static inline u32 top_device_info_type_enum_copy2_v(void) 147static inline u32 top_device_info_type_enum_copy2_v(void)
148{ 148{
149 return 0x00000003; 149 return 0x00000003U;
150} 150}
151static inline u32 top_device_info_type_enum_copy2_f(void) 151static inline u32 top_device_info_type_enum_copy2_f(void)
152{ 152{
153 return 0xc; 153 return 0xcU;
154} 154}
155static inline u32 top_device_info_type_enum_lce_v(void) 155static inline u32 top_device_info_type_enum_lce_v(void)
156{ 156{
157 return 0x00000013; 157 return 0x00000013U;
158} 158}
159static inline u32 top_device_info_type_enum_lce_f(void) 159static inline u32 top_device_info_type_enum_lce_f(void)
160{ 160{
161 return 0x4c; 161 return 0x4cU;
162} 162}
163static inline u32 top_device_info_engine_v(u32 r) 163static inline u32 top_device_info_engine_v(u32 r)
164{ 164{
165 return (r >> 5) & 0x1; 165 return (r >> 5U) & 0x1U;
166} 166}
167static inline u32 top_device_info_runlist_v(u32 r) 167static inline u32 top_device_info_runlist_v(u32 r)
168{ 168{
169 return (r >> 4) & 0x1; 169 return (r >> 4U) & 0x1U;
170} 170}
171static inline u32 top_device_info_intr_v(u32 r) 171static inline u32 top_device_info_intr_v(u32 r)
172{ 172{
173 return (r >> 3) & 0x1; 173 return (r >> 3U) & 0x1U;
174} 174}
175static inline u32 top_device_info_reset_v(u32 r) 175static inline u32 top_device_info_reset_v(u32 r)
176{ 176{
177 return (r >> 2) & 0x1; 177 return (r >> 2U) & 0x1U;
178} 178}
179static inline u32 top_device_info_entry_v(u32 r) 179static inline u32 top_device_info_entry_v(u32 r)
180{ 180{
181 return (r >> 0) & 0x3; 181 return (r >> 0U) & 0x3U;
182} 182}
183static inline u32 top_device_info_entry_not_valid_v(void) 183static inline u32 top_device_info_entry_not_valid_v(void)
184{ 184{
185 return 0x00000000; 185 return 0x00000000U;
186} 186}
187static inline u32 top_device_info_entry_enum_v(void) 187static inline u32 top_device_info_entry_enum_v(void)
188{ 188{
189 return 0x00000002; 189 return 0x00000002U;
190} 190}
191static inline u32 top_device_info_entry_engine_type_v(void) 191static inline u32 top_device_info_entry_engine_type_v(void)
192{ 192{
193 return 0x00000002; 193 return 0x00000002U;
194} 194}
195static inline u32 top_device_info_entry_data_v(void) 195static inline u32 top_device_info_entry_data_v(void)
196{ 196{
197 return 0x00000001; 197 return 0x00000001U;
198} 198}
199static inline u32 top_device_info_data_type_v(u32 r) 199static inline u32 top_device_info_data_type_v(u32 r)
200{ 200{
201 return (r >> 30) & 0x1; 201 return (r >> 30U) & 0x1U;
202} 202}
203static inline u32 top_device_info_data_type_enum2_v(void) 203static inline u32 top_device_info_data_type_enum2_v(void)
204{ 204{
205 return 0x00000000; 205 return 0x00000000U;
206} 206}
207static inline u32 top_device_info_data_inst_id_v(u32 r) 207static inline u32 top_device_info_data_inst_id_v(u32 r)
208{ 208{
209 return (r >> 26) & 0xf; 209 return (r >> 26U) & 0xfU;
210} 210}
211static inline u32 top_device_info_data_pri_base_v(u32 r) 211static inline u32 top_device_info_data_pri_base_v(u32 r)
212{ 212{
213 return (r >> 12) & 0xfff; 213 return (r >> 12U) & 0xfffU;
214} 214}
215static inline u32 top_device_info_data_pri_base_align_v(void) 215static inline u32 top_device_info_data_pri_base_align_v(void)
216{ 216{
217 return 0x0000000c; 217 return 0x0000000cU;
218} 218}
219static inline u32 top_device_info_data_fault_id_enum_v(u32 r) 219static inline u32 top_device_info_data_fault_id_enum_v(u32 r)
220{ 220{
221 return (r >> 3) & 0x1f; 221 return (r >> 3U) & 0x1fU;
222} 222}
223static inline u32 top_device_info_data_fault_id_v(u32 r) 223static inline u32 top_device_info_data_fault_id_v(u32 r)
224{ 224{
225 return (r >> 2) & 0x1; 225 return (r >> 2U) & 0x1U;
226} 226}
227static inline u32 top_device_info_data_fault_id_valid_v(void) 227static inline u32 top_device_info_data_fault_id_valid_v(void)
228{ 228{
229 return 0x00000001; 229 return 0x00000001U;
230} 230}
231#endif 231#endif