summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-09-25 16:25:32 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-09-27 17:17:51 -0400
commite7c9109f60e2d5f5570f5e3c71dcc824bb415688 (patch)
treeb58bcb9391f89f23803fb87fb0b4640d1b762167 /drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h
parent32ed45a4635ddff52bf77e9218f3d401f7f41cee (diff)
gpu: nvgpu: gm20b: Qualify unsigned HW constants
Re-generate hardware headers so that all unsigned constants are qualified with postfix U. This removes the need for compiler to do implicit signed->unsigned conversions. Change-Id: Ic50345252c6d7ccb7e9059120b6cc751cdc28362 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1567984 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h206
1 files changed, 103 insertions, 103 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h
index 92e81915..b60dfc36 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h
@@ -58,414 +58,414 @@
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_ctl_o(void) 67static inline u32 ctxsw_prog_main_image_ctl_o(void)
68{ 68{
69 return 0x0000000c; 69 return 0x0000000cU;
70} 70}
71static inline u32 ctxsw_prog_main_image_ctl_cde_enabled_f(void) 71static inline u32 ctxsw_prog_main_image_ctl_cde_enabled_f(void)
72{ 72{
73 return 0x400; 73 return 0x400U;
74} 74}
75static inline u32 ctxsw_prog_main_image_ctl_cde_disabled_f(void) 75static inline u32 ctxsw_prog_main_image_ctl_cde_disabled_f(void)
76{ 76{
77 return 0x0; 77 return 0x0U;
78} 78}
79static inline u32 ctxsw_prog_main_image_patch_count_o(void) 79static inline u32 ctxsw_prog_main_image_patch_count_o(void)
80{ 80{
81 return 0x00000010; 81 return 0x00000010U;
82} 82}
83static inline u32 ctxsw_prog_main_image_context_id_o(void) 83static inline u32 ctxsw_prog_main_image_context_id_o(void)
84{ 84{
85 return 0x000000f0; 85 return 0x000000f0U;
86} 86}
87static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void) 87static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void)
88{ 88{
89 return 0x00000014; 89 return 0x00000014U;
90} 90}
91static inline u32 ctxsw_prog_main_image_patch_adr_hi_o(void) 91static inline u32 ctxsw_prog_main_image_patch_adr_hi_o(void)
92{ 92{
93 return 0x00000018; 93 return 0x00000018U;
94} 94}
95static inline u32 ctxsw_prog_main_image_zcull_o(void) 95static inline u32 ctxsw_prog_main_image_zcull_o(void)
96{ 96{
97 return 0x0000001c; 97 return 0x0000001cU;
98} 98}
99static inline u32 ctxsw_prog_main_image_zcull_mode_no_ctxsw_v(void) 99static inline u32 ctxsw_prog_main_image_zcull_mode_no_ctxsw_v(void)
100{ 100{
101 return 0x00000001; 101 return 0x00000001U;
102} 102}
103static inline u32 ctxsw_prog_main_image_zcull_mode_separate_buffer_v(void) 103static inline u32 ctxsw_prog_main_image_zcull_mode_separate_buffer_v(void)
104{ 104{
105 return 0x00000002; 105 return 0x00000002U;
106} 106}
107static inline u32 ctxsw_prog_main_image_zcull_ptr_o(void) 107static inline u32 ctxsw_prog_main_image_zcull_ptr_o(void)
108{ 108{
109 return 0x00000020; 109 return 0x00000020U;
110} 110}
111static inline u32 ctxsw_prog_main_image_pm_o(void) 111static inline u32 ctxsw_prog_main_image_pm_o(void)
112{ 112{
113 return 0x00000028; 113 return 0x00000028U;
114} 114}
115static inline u32 ctxsw_prog_main_image_pm_mode_m(void) 115static inline u32 ctxsw_prog_main_image_pm_mode_m(void)
116{ 116{
117 return 0x7 << 0; 117 return 0x7U << 0U;
118} 118}
119static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void) 119static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void)
120{ 120{
121 return 0x0; 121 return 0x0U;
122} 122}
123static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void) 123static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void)
124{ 124{
125 return 0x7 << 3; 125 return 0x7U << 3U;
126} 126}
127static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void) 127static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void)
128{ 128{
129 return 0x8; 129 return 0x8U;
130} 130}
131static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void) 131static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void)
132{ 132{
133 return 0x0; 133 return 0x0U;
134} 134}
135static inline u32 ctxsw_prog_main_image_pm_pc_sampling_f(u32 v) 135static inline u32 ctxsw_prog_main_image_pm_pc_sampling_f(u32 v)
136{ 136{
137 return (v & 0x1) << 6; 137 return (v & 0x1U) << 6U;
138} 138}
139static inline u32 ctxsw_prog_main_image_pm_pc_sampling_m(void) 139static inline u32 ctxsw_prog_main_image_pm_pc_sampling_m(void)
140{ 140{
141 return 0x1 << 6; 141 return 0x1U << 6U;
142} 142}
143static inline u32 ctxsw_prog_main_image_pm_ptr_o(void) 143static inline u32 ctxsw_prog_main_image_pm_ptr_o(void)
144{ 144{
145 return 0x0000002c; 145 return 0x0000002cU;
146} 146}
147static inline u32 ctxsw_prog_main_image_num_save_ops_o(void) 147static inline u32 ctxsw_prog_main_image_num_save_ops_o(void)
148{ 148{
149 return 0x000000f4; 149 return 0x000000f4U;
150} 150}
151static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void) 151static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void)
152{ 152{
153 return 0x000000f8; 153 return 0x000000f8U;
154} 154}
155static inline u32 ctxsw_prog_main_image_magic_value_o(void) 155static inline u32 ctxsw_prog_main_image_magic_value_o(void)
156{ 156{
157 return 0x000000fc; 157 return 0x000000fcU;
158} 158}
159static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void) 159static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void)
160{ 160{
161 return 0x600dc0de; 161 return 0x600dc0deU;
162} 162}
163static inline u32 ctxsw_prog_local_priv_register_ctl_o(void) 163static inline u32 ctxsw_prog_local_priv_register_ctl_o(void)
164{ 164{
165 return 0x0000000c; 165 return 0x0000000cU;
166} 166}
167static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r) 167static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r)
168{ 168{
169 return (r >> 0) & 0xffff; 169 return (r >> 0U) & 0xffffU;
170} 170}
171static inline u32 ctxsw_prog_local_image_ppc_info_o(void) 171static inline u32 ctxsw_prog_local_image_ppc_info_o(void)
172{ 172{
173 return 0x000000f4; 173 return 0x000000f4U;
174} 174}
175static inline u32 ctxsw_prog_local_image_ppc_info_num_ppcs_v(u32 r) 175static inline u32 ctxsw_prog_local_image_ppc_info_num_ppcs_v(u32 r)
176{ 176{
177 return (r >> 0) & 0xffff; 177 return (r >> 0U) & 0xffffU;
178} 178}
179static inline u32 ctxsw_prog_local_image_ppc_info_ppc_mask_v(u32 r) 179static inline u32 ctxsw_prog_local_image_ppc_info_ppc_mask_v(u32 r)
180{ 180{
181 return (r >> 16) & 0xffff; 181 return (r >> 16U) & 0xffffU;
182} 182}
183static inline u32 ctxsw_prog_local_image_num_tpcs_o(void) 183static inline u32 ctxsw_prog_local_image_num_tpcs_o(void)
184{ 184{
185 return 0x000000f8; 185 return 0x000000f8U;
186} 186}
187static inline u32 ctxsw_prog_local_magic_value_o(void) 187static inline u32 ctxsw_prog_local_magic_value_o(void)
188{ 188{
189 return 0x000000fc; 189 return 0x000000fcU;
190} 190}
191static inline u32 ctxsw_prog_local_magic_value_v_value_v(void) 191static inline u32 ctxsw_prog_local_magic_value_v_value_v(void)
192{ 192{
193 return 0xad0becab; 193 return 0xad0becabU;
194} 194}
195static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void) 195static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void)
196{ 196{
197 return 0x000000ec; 197 return 0x000000ecU;
198} 198}
199static inline u32 ctxsw_prog_main_extended_buffer_ctl_offset_v(u32 r) 199static inline u32 ctxsw_prog_main_extended_buffer_ctl_offset_v(u32 r)
200{ 200{
201 return (r >> 0) & 0xffff; 201 return (r >> 0U) & 0xffffU;
202} 202}
203static inline u32 ctxsw_prog_main_extended_buffer_ctl_size_v(u32 r) 203static inline u32 ctxsw_prog_main_extended_buffer_ctl_size_v(u32 r)
204{ 204{
205 return (r >> 16) & 0xff; 205 return (r >> 16U) & 0xffU;
206} 206}
207static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void) 207static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void)
208{ 208{
209 return 0x00000100; 209 return 0x00000100U;
210} 210}
211static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void) 211static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void)
212{ 212{
213 return 0x00000004; 213 return 0x00000004U;
214} 214}
215static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void) 215static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void)
216{ 216{
217 return 0x00000000; 217 return 0x00000000U;
218} 218}
219static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void) 219static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void)
220{ 220{
221 return 0x00000002; 221 return 0x00000002U;
222} 222}
223static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void) 223static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void)
224{ 224{
225 return 0x000000a0; 225 return 0x000000a0U;
226} 226}
227static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void) 227static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void)
228{ 228{
229 return 2; 229 return 2U;
230} 230}
231static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v) 231static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v)
232{ 232{
233 return (v & 0x3) << 0; 233 return (v & 0x3U) << 0U;
234} 234}
235static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void) 235static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void)
236{ 236{
237 return 0x3 << 0; 237 return 0x3U << 0U;
238} 238}
239static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r) 239static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r)
240{ 240{
241 return (r >> 0) & 0x3; 241 return (r >> 0U) & 0x3U;
242} 242}
243static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void) 243static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void)
244{ 244{
245 return 0x0; 245 return 0x0U;
246} 246}
247static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void) 247static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void)
248{ 248{
249 return 0x2; 249 return 0x2U;
250} 250}
251static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void) 251static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void)
252{ 252{
253 return 0x000000a4; 253 return 0x000000a4U;
254} 254}
255static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void) 255static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void)
256{ 256{
257 return 0x000000a8; 257 return 0x000000a8U;
258} 258}
259static inline u32 ctxsw_prog_main_image_misc_options_o(void) 259static inline u32 ctxsw_prog_main_image_misc_options_o(void)
260{ 260{
261 return 0x0000003c; 261 return 0x0000003cU;
262} 262}
263static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void) 263static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void)
264{ 264{
265 return 0x1 << 3; 265 return 0x1U << 3U;
266} 266}
267static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void) 267static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void)
268{ 268{
269 return 0x0; 269 return 0x0U;
270} 270}
271static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_o(void) 271static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_o(void)
272{ 272{
273 return 0x000000ac; 273 return 0x000000acU;
274} 274}
275static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_num_records_f(u32 v) 275static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_num_records_f(u32 v)
276{ 276{
277 return (v & 0xffff) << 0; 277 return (v & 0xffffU) << 0U;
278} 278}
279static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(void) 279static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(void)
280{ 280{
281 return 0x000000b0; 281 return 0x000000b0U;
282} 282}
283static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_v_m(void) 283static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_v_m(void)
284{ 284{
285 return 0xfffffff << 0; 285 return 0xfffffffU << 0U;
286} 286}
287static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_m(void) 287static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_m(void)
288{ 288{
289 return 0x3 << 28; 289 return 0x3U << 28U;
290} 290}
291static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_vid_mem_f(void) 291static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_vid_mem_f(void)
292{ 292{
293 return 0x0; 293 return 0x0U;
294} 294}
295static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_coherent_f(void) 295static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_coherent_f(void)
296{ 296{
297 return 0x20000000; 297 return 0x20000000U;
298} 298}
299static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_noncoherent_f(void) 299static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_noncoherent_f(void)
300{ 300{
301 return 0x30000000; 301 return 0x30000000U;
302} 302}
303static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(void) 303static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(void)
304{ 304{
305 return 0x000000b4; 305 return 0x000000b4U;
306} 306}
307static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_v_f(u32 v) 307static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_v_f(u32 v)
308{ 308{
309 return (v & 0xffffffff) << 0; 309 return (v & 0xffffffffU) << 0U;
310} 310}
311static inline u32 ctxsw_prog_record_timestamp_record_size_in_bytes_v(void) 311static inline u32 ctxsw_prog_record_timestamp_record_size_in_bytes_v(void)
312{ 312{
313 return 0x00000080; 313 return 0x00000080U;
314} 314}
315static inline u32 ctxsw_prog_record_timestamp_record_size_in_words_v(void) 315static inline u32 ctxsw_prog_record_timestamp_record_size_in_words_v(void)
316{ 316{
317 return 0x00000020; 317 return 0x00000020U;
318} 318}
319static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_o(void) 319static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_o(void)
320{ 320{
321 return 0x00000000; 321 return 0x00000000U;
322} 322}
323static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_v_value_v(void) 323static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_v_value_v(void)
324{ 324{
325 return 0x00000000; 325 return 0x00000000U;
326} 326}
327static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_o(void) 327static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_o(void)
328{ 328{
329 return 0x00000004; 329 return 0x00000004U;
330} 330}
331static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_v_value_v(void) 331static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_v_value_v(void)
332{ 332{
333 return 0x600dbeef; 333 return 0x600dbeefU;
334} 334}
335static inline u32 ctxsw_prog_record_timestamp_context_id_o(void) 335static inline u32 ctxsw_prog_record_timestamp_context_id_o(void)
336{ 336{
337 return 0x00000008; 337 return 0x00000008U;
338} 338}
339static inline u32 ctxsw_prog_record_timestamp_context_ptr_o(void) 339static inline u32 ctxsw_prog_record_timestamp_context_ptr_o(void)
340{ 340{
341 return 0x0000000c; 341 return 0x0000000cU;
342} 342}
343static inline u32 ctxsw_prog_record_timestamp_new_context_id_o(void) 343static inline u32 ctxsw_prog_record_timestamp_new_context_id_o(void)
344{ 344{
345 return 0x00000010; 345 return 0x00000010U;
346} 346}
347static inline u32 ctxsw_prog_record_timestamp_new_context_ptr_o(void) 347static inline u32 ctxsw_prog_record_timestamp_new_context_ptr_o(void)
348{ 348{
349 return 0x00000014; 349 return 0x00000014U;
350} 350}
351static inline u32 ctxsw_prog_record_timestamp_timestamp_lo_o(void) 351static inline u32 ctxsw_prog_record_timestamp_timestamp_lo_o(void)
352{ 352{
353 return 0x00000018; 353 return 0x00000018U;
354} 354}
355static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_o(void) 355static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_o(void)
356{ 356{
357 return 0x0000001c; 357 return 0x0000001cU;
358} 358}
359static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_f(u32 v) 359static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_f(u32 v)
360{ 360{
361 return (v & 0xffffff) << 0; 361 return (v & 0xffffffU) << 0U;
362} 362}
363static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_v(u32 r) 363static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_v(u32 r)
364{ 364{
365 return (r >> 0) & 0xffffff; 365 return (r >> 0U) & 0xffffffU;
366} 366}
367static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_f(u32 v) 367static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_f(u32 v)
368{ 368{
369 return (v & 0xff) << 24; 369 return (v & 0xffU) << 24U;
370} 370}
371static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_m(void) 371static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_m(void)
372{ 372{
373 return 0xff << 24; 373 return 0xffU << 24U;
374} 374}
375static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_v(u32 r) 375static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_v(u32 r)
376{ 376{
377 return (r >> 24) & 0xff; 377 return (r >> 24U) & 0xffU;
378} 378}
379static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_v(void) 379static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_v(void)
380{ 380{
381 return 0x00000001; 381 return 0x00000001U;
382} 382}
383static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_f(void) 383static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_f(void)
384{ 384{
385 return 0x1000000; 385 return 0x1000000U;
386} 386}
387static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_v(void) 387static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_v(void)
388{ 388{
389 return 0x00000002; 389 return 0x00000002U;
390} 390}
391static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_f(void) 391static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_f(void)
392{ 392{
393 return 0x2000000; 393 return 0x2000000U;
394} 394}
395static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_v(void) 395static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_v(void)
396{ 396{
397 return 0x0000000a; 397 return 0x0000000aU;
398} 398}
399static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_f(void) 399static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_f(void)
400{ 400{
401 return 0xa000000; 401 return 0xa000000U;
402} 402}
403static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_v(void) 403static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_v(void)
404{ 404{
405 return 0x0000000b; 405 return 0x0000000bU;
406} 406}
407static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_f(void) 407static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_f(void)
408{ 408{
409 return 0xb000000; 409 return 0xb000000U;
410} 410}
411static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_v(void) 411static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_v(void)
412{ 412{
413 return 0x0000000c; 413 return 0x0000000cU;
414} 414}
415static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_f(void) 415static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_f(void)
416{ 416{
417 return 0xc000000; 417 return 0xc000000U;
418} 418}
419static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_v(void) 419static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_v(void)
420{ 420{
421 return 0x0000000d; 421 return 0x0000000dU;
422} 422}
423static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_f(void) 423static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_f(void)
424{ 424{
425 return 0xd000000; 425 return 0xd000000U;
426} 426}
427static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_v(void) 427static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_v(void)
428{ 428{
429 return 0x00000003; 429 return 0x00000003U;
430} 430}
431static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_f(void) 431static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_f(void)
432{ 432{
433 return 0x3000000; 433 return 0x3000000U;
434} 434}
435static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_v(void) 435static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_v(void)
436{ 436{
437 return 0x00000004; 437 return 0x00000004U;
438} 438}
439static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_f(void) 439static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_f(void)
440{ 440{
441 return 0x4000000; 441 return 0x4000000U;
442} 442}
443static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_v(void) 443static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_v(void)
444{ 444{
445 return 0x00000005; 445 return 0x00000005U;
446} 446}
447static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_f(void) 447static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_f(void)
448{ 448{
449 return 0x5000000; 449 return 0x5000000U;
450} 450}
451static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_v(void) 451static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_v(void)
452{ 452{
453 return 0x000000ff; 453 return 0x000000ffU;
454} 454}
455static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_f(void) 455static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_f(void)
456{ 456{
457 return 0xff000000; 457 return 0xff000000U;
458} 458}
459static inline u32 ctxsw_prog_main_image_preemption_options_o(void) 459static inline u32 ctxsw_prog_main_image_preemption_options_o(void)
460{ 460{
461 return 0x00000060; 461 return 0x00000060U;
462} 462}
463static inline u32 ctxsw_prog_main_image_preemption_options_control_f(u32 v) 463static inline u32 ctxsw_prog_main_image_preemption_options_control_f(u32 v)
464{ 464{
465 return (v & 0x3) << 0; 465 return (v & 0x3U) << 0U;
466} 466}
467static inline u32 ctxsw_prog_main_image_preemption_options_control_cta_enabled_f(void) 467static inline u32 ctxsw_prog_main_image_preemption_options_control_cta_enabled_f(void)
468{ 468{
469 return 0x1; 469 return 0x1U;
470} 470}
471#endif 471#endif