diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-09-25 16:25:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-09-27 17:17:51 -0400 |
commit | e7c9109f60e2d5f5570f5e3c71dcc824bb415688 (patch) | |
tree | b58bcb9391f89f23803fb87fb0b4640d1b762167 /drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ctxsw_prog_gm20b.h | |
parent | 32ed45a4635ddff52bf77e9218f3d401f7f41cee (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.h | 206 |
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 | ||
59 | static inline u32 ctxsw_prog_fecs_header_v(void) | 59 | static inline u32 ctxsw_prog_fecs_header_v(void) |
60 | { | 60 | { |
61 | return 0x00000100; | 61 | return 0x00000100U; |
62 | } | 62 | } |
63 | static inline u32 ctxsw_prog_main_image_num_gpcs_o(void) | 63 | static inline u32 ctxsw_prog_main_image_num_gpcs_o(void) |
64 | { | 64 | { |
65 | return 0x00000008; | 65 | return 0x00000008U; |
66 | } | 66 | } |
67 | static inline u32 ctxsw_prog_main_image_ctl_o(void) | 67 | static inline u32 ctxsw_prog_main_image_ctl_o(void) |
68 | { | 68 | { |
69 | return 0x0000000c; | 69 | return 0x0000000cU; |
70 | } | 70 | } |
71 | static inline u32 ctxsw_prog_main_image_ctl_cde_enabled_f(void) | 71 | static inline u32 ctxsw_prog_main_image_ctl_cde_enabled_f(void) |
72 | { | 72 | { |
73 | return 0x400; | 73 | return 0x400U; |
74 | } | 74 | } |
75 | static inline u32 ctxsw_prog_main_image_ctl_cde_disabled_f(void) | 75 | static inline u32 ctxsw_prog_main_image_ctl_cde_disabled_f(void) |
76 | { | 76 | { |
77 | return 0x0; | 77 | return 0x0U; |
78 | } | 78 | } |
79 | static inline u32 ctxsw_prog_main_image_patch_count_o(void) | 79 | static inline u32 ctxsw_prog_main_image_patch_count_o(void) |
80 | { | 80 | { |
81 | return 0x00000010; | 81 | return 0x00000010U; |
82 | } | 82 | } |
83 | static inline u32 ctxsw_prog_main_image_context_id_o(void) | 83 | static inline u32 ctxsw_prog_main_image_context_id_o(void) |
84 | { | 84 | { |
85 | return 0x000000f0; | 85 | return 0x000000f0U; |
86 | } | 86 | } |
87 | static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void) | 87 | static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void) |
88 | { | 88 | { |
89 | return 0x00000014; | 89 | return 0x00000014U; |
90 | } | 90 | } |
91 | static inline u32 ctxsw_prog_main_image_patch_adr_hi_o(void) | 91 | static inline u32 ctxsw_prog_main_image_patch_adr_hi_o(void) |
92 | { | 92 | { |
93 | return 0x00000018; | 93 | return 0x00000018U; |
94 | } | 94 | } |
95 | static inline u32 ctxsw_prog_main_image_zcull_o(void) | 95 | static inline u32 ctxsw_prog_main_image_zcull_o(void) |
96 | { | 96 | { |
97 | return 0x0000001c; | 97 | return 0x0000001cU; |
98 | } | 98 | } |
99 | static inline u32 ctxsw_prog_main_image_zcull_mode_no_ctxsw_v(void) | 99 | static inline u32 ctxsw_prog_main_image_zcull_mode_no_ctxsw_v(void) |
100 | { | 100 | { |
101 | return 0x00000001; | 101 | return 0x00000001U; |
102 | } | 102 | } |
103 | static inline u32 ctxsw_prog_main_image_zcull_mode_separate_buffer_v(void) | 103 | static inline u32 ctxsw_prog_main_image_zcull_mode_separate_buffer_v(void) |
104 | { | 104 | { |
105 | return 0x00000002; | 105 | return 0x00000002U; |
106 | } | 106 | } |
107 | static inline u32 ctxsw_prog_main_image_zcull_ptr_o(void) | 107 | static inline u32 ctxsw_prog_main_image_zcull_ptr_o(void) |
108 | { | 108 | { |
109 | return 0x00000020; | 109 | return 0x00000020U; |
110 | } | 110 | } |
111 | static inline u32 ctxsw_prog_main_image_pm_o(void) | 111 | static inline u32 ctxsw_prog_main_image_pm_o(void) |
112 | { | 112 | { |
113 | return 0x00000028; | 113 | return 0x00000028U; |
114 | } | 114 | } |
115 | static inline u32 ctxsw_prog_main_image_pm_mode_m(void) | 115 | static inline u32 ctxsw_prog_main_image_pm_mode_m(void) |
116 | { | 116 | { |
117 | return 0x7 << 0; | 117 | return 0x7U << 0U; |
118 | } | 118 | } |
119 | static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void) | 119 | static inline u32 ctxsw_prog_main_image_pm_mode_no_ctxsw_f(void) |
120 | { | 120 | { |
121 | return 0x0; | 121 | return 0x0U; |
122 | } | 122 | } |
123 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void) | 123 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_m(void) |
124 | { | 124 | { |
125 | return 0x7 << 3; | 125 | return 0x7U << 3U; |
126 | } | 126 | } |
127 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void) | 127 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_ctxsw_f(void) |
128 | { | 128 | { |
129 | return 0x8; | 129 | return 0x8U; |
130 | } | 130 | } |
131 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void) | 131 | static inline u32 ctxsw_prog_main_image_pm_smpc_mode_no_ctxsw_f(void) |
132 | { | 132 | { |
133 | return 0x0; | 133 | return 0x0U; |
134 | } | 134 | } |
135 | static inline u32 ctxsw_prog_main_image_pm_pc_sampling_f(u32 v) | 135 | static 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 | } |
139 | static inline u32 ctxsw_prog_main_image_pm_pc_sampling_m(void) | 139 | static inline u32 ctxsw_prog_main_image_pm_pc_sampling_m(void) |
140 | { | 140 | { |
141 | return 0x1 << 6; | 141 | return 0x1U << 6U; |
142 | } | 142 | } |
143 | static inline u32 ctxsw_prog_main_image_pm_ptr_o(void) | 143 | static inline u32 ctxsw_prog_main_image_pm_ptr_o(void) |
144 | { | 144 | { |
145 | return 0x0000002c; | 145 | return 0x0000002cU; |
146 | } | 146 | } |
147 | static inline u32 ctxsw_prog_main_image_num_save_ops_o(void) | 147 | static inline u32 ctxsw_prog_main_image_num_save_ops_o(void) |
148 | { | 148 | { |
149 | return 0x000000f4; | 149 | return 0x000000f4U; |
150 | } | 150 | } |
151 | static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void) | 151 | static inline u32 ctxsw_prog_main_image_num_restore_ops_o(void) |
152 | { | 152 | { |
153 | return 0x000000f8; | 153 | return 0x000000f8U; |
154 | } | 154 | } |
155 | static inline u32 ctxsw_prog_main_image_magic_value_o(void) | 155 | static inline u32 ctxsw_prog_main_image_magic_value_o(void) |
156 | { | 156 | { |
157 | return 0x000000fc; | 157 | return 0x000000fcU; |
158 | } | 158 | } |
159 | static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void) | 159 | static inline u32 ctxsw_prog_main_image_magic_value_v_value_v(void) |
160 | { | 160 | { |
161 | return 0x600dc0de; | 161 | return 0x600dc0deU; |
162 | } | 162 | } |
163 | static inline u32 ctxsw_prog_local_priv_register_ctl_o(void) | 163 | static inline u32 ctxsw_prog_local_priv_register_ctl_o(void) |
164 | { | 164 | { |
165 | return 0x0000000c; | 165 | return 0x0000000cU; |
166 | } | 166 | } |
167 | static inline u32 ctxsw_prog_local_priv_register_ctl_offset_v(u32 r) | 167 | static 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 | } |
171 | static inline u32 ctxsw_prog_local_image_ppc_info_o(void) | 171 | static inline u32 ctxsw_prog_local_image_ppc_info_o(void) |
172 | { | 172 | { |
173 | return 0x000000f4; | 173 | return 0x000000f4U; |
174 | } | 174 | } |
175 | static inline u32 ctxsw_prog_local_image_ppc_info_num_ppcs_v(u32 r) | 175 | static 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 | } |
179 | static inline u32 ctxsw_prog_local_image_ppc_info_ppc_mask_v(u32 r) | 179 | static 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 | } |
183 | static inline u32 ctxsw_prog_local_image_num_tpcs_o(void) | 183 | static inline u32 ctxsw_prog_local_image_num_tpcs_o(void) |
184 | { | 184 | { |
185 | return 0x000000f8; | 185 | return 0x000000f8U; |
186 | } | 186 | } |
187 | static inline u32 ctxsw_prog_local_magic_value_o(void) | 187 | static inline u32 ctxsw_prog_local_magic_value_o(void) |
188 | { | 188 | { |
189 | return 0x000000fc; | 189 | return 0x000000fcU; |
190 | } | 190 | } |
191 | static inline u32 ctxsw_prog_local_magic_value_v_value_v(void) | 191 | static inline u32 ctxsw_prog_local_magic_value_v_value_v(void) |
192 | { | 192 | { |
193 | return 0xad0becab; | 193 | return 0xad0becabU; |
194 | } | 194 | } |
195 | static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void) | 195 | static inline u32 ctxsw_prog_main_extended_buffer_ctl_o(void) |
196 | { | 196 | { |
197 | return 0x000000ec; | 197 | return 0x000000ecU; |
198 | } | 198 | } |
199 | static inline u32 ctxsw_prog_main_extended_buffer_ctl_offset_v(u32 r) | 199 | static 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 | } |
203 | static inline u32 ctxsw_prog_main_extended_buffer_ctl_size_v(u32 r) | 203 | static 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 | } |
207 | static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void) | 207 | static inline u32 ctxsw_prog_extended_buffer_segments_size_in_bytes_v(void) |
208 | { | 208 | { |
209 | return 0x00000100; | 209 | return 0x00000100U; |
210 | } | 210 | } |
211 | static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void) | 211 | static inline u32 ctxsw_prog_extended_marker_size_in_bytes_v(void) |
212 | { | 212 | { |
213 | return 0x00000004; | 213 | return 0x00000004U; |
214 | } | 214 | } |
215 | static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void) | 215 | static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_register_stride_v(void) |
216 | { | 216 | { |
217 | return 0x00000000; | 217 | return 0x00000000U; |
218 | } | 218 | } |
219 | static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void) | 219 | static inline u32 ctxsw_prog_extended_sm_dsm_perf_counter_control_register_stride_v(void) |
220 | { | 220 | { |
221 | return 0x00000002; | 221 | return 0x00000002U; |
222 | } | 222 | } |
223 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void) | 223 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_o(void) |
224 | { | 224 | { |
225 | return 0x000000a0; | 225 | return 0x000000a0U; |
226 | } | 226 | } |
227 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void) | 227 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_s(void) |
228 | { | 228 | { |
229 | return 2; | 229 | return 2U; |
230 | } | 230 | } |
231 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_f(u32 v) | 231 | static 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 | } |
235 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_m(void) | 235 | static 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 | } |
239 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_v(u32 r) | 239 | static 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 | } |
243 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_allow_all_f(void) | 243 | static 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 | } |
247 | static inline u32 ctxsw_prog_main_image_priv_access_map_config_mode_use_map_f(void) | 247 | static 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 | } |
251 | static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void) | 251 | static inline u32 ctxsw_prog_main_image_priv_access_map_addr_lo_o(void) |
252 | { | 252 | { |
253 | return 0x000000a4; | 253 | return 0x000000a4U; |
254 | } | 254 | } |
255 | static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void) | 255 | static inline u32 ctxsw_prog_main_image_priv_access_map_addr_hi_o(void) |
256 | { | 256 | { |
257 | return 0x000000a8; | 257 | return 0x000000a8U; |
258 | } | 258 | } |
259 | static inline u32 ctxsw_prog_main_image_misc_options_o(void) | 259 | static inline u32 ctxsw_prog_main_image_misc_options_o(void) |
260 | { | 260 | { |
261 | return 0x0000003c; | 261 | return 0x0000003cU; |
262 | } | 262 | } |
263 | static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void) | 263 | static inline u32 ctxsw_prog_main_image_misc_options_verif_features_m(void) |
264 | { | 264 | { |
265 | return 0x1 << 3; | 265 | return 0x1U << 3U; |
266 | } | 266 | } |
267 | static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void) | 267 | static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(void) |
268 | { | 268 | { |
269 | return 0x0; | 269 | return 0x0U; |
270 | } | 270 | } |
271 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_o(void) | 271 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_o(void) |
272 | { | 272 | { |
273 | return 0x000000ac; | 273 | return 0x000000acU; |
274 | } | 274 | } |
275 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_control_num_records_f(u32 v) | 275 | static 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 | } |
279 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(void) | 279 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(void) |
280 | { | 280 | { |
281 | return 0x000000b0; | 281 | return 0x000000b0U; |
282 | } | 282 | } |
283 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_v_m(void) | 283 | static 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 | } |
287 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_m(void) | 287 | static 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 | } |
291 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_vid_mem_f(void) | 291 | static 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 | } |
295 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_coherent_f(void) | 295 | static 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 | } |
299 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_noncoherent_f(void) | 299 | static 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 | } |
303 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(void) | 303 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(void) |
304 | { | 304 | { |
305 | return 0x000000b4; | 305 | return 0x000000b4U; |
306 | } | 306 | } |
307 | static inline u32 ctxsw_prog_main_image_context_timestamp_buffer_ptr_v_f(u32 v) | 307 | static 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 | } |
311 | static inline u32 ctxsw_prog_record_timestamp_record_size_in_bytes_v(void) | 311 | static inline u32 ctxsw_prog_record_timestamp_record_size_in_bytes_v(void) |
312 | { | 312 | { |
313 | return 0x00000080; | 313 | return 0x00000080U; |
314 | } | 314 | } |
315 | static inline u32 ctxsw_prog_record_timestamp_record_size_in_words_v(void) | 315 | static inline u32 ctxsw_prog_record_timestamp_record_size_in_words_v(void) |
316 | { | 316 | { |
317 | return 0x00000020; | 317 | return 0x00000020U; |
318 | } | 318 | } |
319 | static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_o(void) | 319 | static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_o(void) |
320 | { | 320 | { |
321 | return 0x00000000; | 321 | return 0x00000000U; |
322 | } | 322 | } |
323 | static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_v_value_v(void) | 323 | static inline u32 ctxsw_prog_record_timestamp_magic_value_lo_v_value_v(void) |
324 | { | 324 | { |
325 | return 0x00000000; | 325 | return 0x00000000U; |
326 | } | 326 | } |
327 | static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_o(void) | 327 | static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_o(void) |
328 | { | 328 | { |
329 | return 0x00000004; | 329 | return 0x00000004U; |
330 | } | 330 | } |
331 | static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_v_value_v(void) | 331 | static inline u32 ctxsw_prog_record_timestamp_magic_value_hi_v_value_v(void) |
332 | { | 332 | { |
333 | return 0x600dbeef; | 333 | return 0x600dbeefU; |
334 | } | 334 | } |
335 | static inline u32 ctxsw_prog_record_timestamp_context_id_o(void) | 335 | static inline u32 ctxsw_prog_record_timestamp_context_id_o(void) |
336 | { | 336 | { |
337 | return 0x00000008; | 337 | return 0x00000008U; |
338 | } | 338 | } |
339 | static inline u32 ctxsw_prog_record_timestamp_context_ptr_o(void) | 339 | static inline u32 ctxsw_prog_record_timestamp_context_ptr_o(void) |
340 | { | 340 | { |
341 | return 0x0000000c; | 341 | return 0x0000000cU; |
342 | } | 342 | } |
343 | static inline u32 ctxsw_prog_record_timestamp_new_context_id_o(void) | 343 | static inline u32 ctxsw_prog_record_timestamp_new_context_id_o(void) |
344 | { | 344 | { |
345 | return 0x00000010; | 345 | return 0x00000010U; |
346 | } | 346 | } |
347 | static inline u32 ctxsw_prog_record_timestamp_new_context_ptr_o(void) | 347 | static inline u32 ctxsw_prog_record_timestamp_new_context_ptr_o(void) |
348 | { | 348 | { |
349 | return 0x00000014; | 349 | return 0x00000014U; |
350 | } | 350 | } |
351 | static inline u32 ctxsw_prog_record_timestamp_timestamp_lo_o(void) | 351 | static inline u32 ctxsw_prog_record_timestamp_timestamp_lo_o(void) |
352 | { | 352 | { |
353 | return 0x00000018; | 353 | return 0x00000018U; |
354 | } | 354 | } |
355 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_o(void) | 355 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_o(void) |
356 | { | 356 | { |
357 | return 0x0000001c; | 357 | return 0x0000001cU; |
358 | } | 358 | } |
359 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_f(u32 v) | 359 | static 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 | } |
363 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_v_v(u32 r) | 363 | static 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 | } |
367 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_f(u32 v) | 367 | static 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 | } |
371 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_m(void) | 371 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_m(void) |
372 | { | 372 | { |
373 | return 0xff << 24; | 373 | return 0xffU << 24U; |
374 | } | 374 | } |
375 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_v(u32 r) | 375 | static 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 | } |
379 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_v(void) | 379 | static 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 | } |
383 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_ctxsw_req_by_host_f(void) | 383 | static 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 | } |
387 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_v(void) | 387 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_v(void) |
388 | { | 388 | { |
389 | return 0x00000002; | 389 | return 0x00000002U; |
390 | } | 390 | } |
391 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_f(void) | 391 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_f(void) |
392 | { | 392 | { |
393 | return 0x2000000; | 393 | return 0x2000000U; |
394 | } | 394 | } |
395 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_v(void) | 395 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_v(void) |
396 | { | 396 | { |
397 | return 0x0000000a; | 397 | return 0x0000000aU; |
398 | } | 398 | } |
399 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_f(void) | 399 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_wfi_f(void) |
400 | { | 400 | { |
401 | return 0xa000000; | 401 | return 0xa000000U; |
402 | } | 402 | } |
403 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_v(void) | 403 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_v(void) |
404 | { | 404 | { |
405 | return 0x0000000b; | 405 | return 0x0000000bU; |
406 | } | 406 | } |
407 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_f(void) | 407 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_gfxp_f(void) |
408 | { | 408 | { |
409 | return 0xb000000; | 409 | return 0xb000000U; |
410 | } | 410 | } |
411 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_v(void) | 411 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_v(void) |
412 | { | 412 | { |
413 | return 0x0000000c; | 413 | return 0x0000000cU; |
414 | } | 414 | } |
415 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_f(void) | 415 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_ctap_f(void) |
416 | { | 416 | { |
417 | return 0xc000000; | 417 | return 0xc000000U; |
418 | } | 418 | } |
419 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_v(void) | 419 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_v(void) |
420 | { | 420 | { |
421 | return 0x0000000d; | 421 | return 0x0000000dU; |
422 | } | 422 | } |
423 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_f(void) | 423 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_fe_ack_cilp_f(void) |
424 | { | 424 | { |
425 | return 0xd000000; | 425 | return 0xd000000U; |
426 | } | 426 | } |
427 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_v(void) | 427 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_v(void) |
428 | { | 428 | { |
429 | return 0x00000003; | 429 | return 0x00000003U; |
430 | } | 430 | } |
431 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_f(void) | 431 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_save_end_f(void) |
432 | { | 432 | { |
433 | return 0x3000000; | 433 | return 0x3000000U; |
434 | } | 434 | } |
435 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_v(void) | 435 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_v(void) |
436 | { | 436 | { |
437 | return 0x00000004; | 437 | return 0x00000004U; |
438 | } | 438 | } |
439 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_f(void) | 439 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_restore_start_f(void) |
440 | { | 440 | { |
441 | return 0x4000000; | 441 | return 0x4000000U; |
442 | } | 442 | } |
443 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_v(void) | 443 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_v(void) |
444 | { | 444 | { |
445 | return 0x00000005; | 445 | return 0x00000005U; |
446 | } | 446 | } |
447 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_f(void) | 447 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_context_start_f(void) |
448 | { | 448 | { |
449 | return 0x5000000; | 449 | return 0x5000000U; |
450 | } | 450 | } |
451 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_v(void) | 451 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_v(void) |
452 | { | 452 | { |
453 | return 0x000000ff; | 453 | return 0x000000ffU; |
454 | } | 454 | } |
455 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_f(void) | 455 | static inline u32 ctxsw_prog_record_timestamp_timestamp_hi_tag_invalid_timestamp_f(void) |
456 | { | 456 | { |
457 | return 0xff000000; | 457 | return 0xff000000U; |
458 | } | 458 | } |
459 | static inline u32 ctxsw_prog_main_image_preemption_options_o(void) | 459 | static inline u32 ctxsw_prog_main_image_preemption_options_o(void) |
460 | { | 460 | { |
461 | return 0x00000060; | 461 | return 0x00000060U; |
462 | } | 462 | } |
463 | static inline u32 ctxsw_prog_main_image_preemption_options_control_f(u32 v) | 463 | static 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 | } |
467 | static inline u32 ctxsw_prog_main_image_preemption_options_control_cta_enabled_f(void) | 467 | static 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 |