diff options
Diffstat (limited to 'include/nvgpu/hw/gv11b/hw_gr_gv11b.h')
-rw-r--r-- | include/nvgpu/hw/gv11b/hw_gr_gv11b.h | 5703 |
1 files changed, 0 insertions, 5703 deletions
diff --git a/include/nvgpu/hw/gv11b/hw_gr_gv11b.h b/include/nvgpu/hw/gv11b/hw_gr_gv11b.h deleted file mode 100644 index 4a3da79..0000000 --- a/include/nvgpu/hw/gv11b/hw_gr_gv11b.h +++ /dev/null | |||
@@ -1,5703 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * Permission is hereby granted, free of charge, to any person obtaining a | ||
5 | * copy of this software and associated documentation files (the "Software"), | ||
6 | * to deal in the Software without restriction, including without limitation | ||
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
8 | * and/or sell copies of the Software, and to permit persons to whom the | ||
9 | * Software is furnished to do so, subject to the following conditions: | ||
10 | * | ||
11 | * The above copyright notice and this permission notice shall be included in | ||
12 | * all copies or substantial portions of the Software. | ||
13 | * | ||
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
17 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
19 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
20 | * DEALINGS IN THE SOFTWARE. | ||
21 | */ | ||
22 | /* | ||
23 | * Function naming determines intended use: | ||
24 | * | ||
25 | * <x>_r(void) : Returns the offset for register <x>. | ||
26 | * | ||
27 | * <x>_o(void) : Returns the offset for element <x>. | ||
28 | * | ||
29 | * <x>_w(void) : Returns the word offset for word (4 byte) element <x>. | ||
30 | * | ||
31 | * <x>_<y>_s(void) : Returns size of field <y> of register <x> in bits. | ||
32 | * | ||
33 | * <x>_<y>_f(u32 v) : Returns a value based on 'v' which has been shifted | ||
34 | * and masked to place it at field <y> of register <x>. This value | ||
35 | * can be |'d with others to produce a full register value for | ||
36 | * register <x>. | ||
37 | * | ||
38 | * <x>_<y>_m(void) : Returns a mask for field <y> of register <x>. This | ||
39 | * value can be ~'d and then &'d to clear the value of field <y> for | ||
40 | * register <x>. | ||
41 | * | ||
42 | * <x>_<y>_<z>_f(void) : Returns the constant value <z> after being shifted | ||
43 | * to place it at field <y> of register <x>. This value can be |'d | ||
44 | * with others to produce a full register value for <x>. | ||
45 | * | ||
46 | * <x>_<y>_v(u32 r) : Returns the value of field <y> from a full register | ||
47 | * <x> value 'r' after being shifted to place its LSB at bit 0. | ||
48 | * This value is suitable for direct comparison with other unshifted | ||
49 | * values appropriate for use in field <y> of register <x>. | ||
50 | * | ||
51 | * <x>_<y>_<z>_v(void) : Returns the constant value for <z> defined for | ||
52 | * field <y> of register <x>. This value is suitable for direct | ||
53 | * comparison with unshifted values appropriate for use in field <y> | ||
54 | * of register <x>. | ||
55 | */ | ||
56 | #ifndef _hw_gr_gv11b_h_ | ||
57 | #define _hw_gr_gv11b_h_ | ||
58 | |||
59 | static inline u32 gr_intr_r(void) | ||
60 | { | ||
61 | return 0x00400100U; | ||
62 | } | ||
63 | static inline u32 gr_intr_notify_pending_f(void) | ||
64 | { | ||
65 | return 0x1U; | ||
66 | } | ||
67 | static inline u32 gr_intr_notify_reset_f(void) | ||
68 | { | ||
69 | return 0x1U; | ||
70 | } | ||
71 | static inline u32 gr_intr_semaphore_pending_f(void) | ||
72 | { | ||
73 | return 0x2U; | ||
74 | } | ||
75 | static inline u32 gr_intr_semaphore_reset_f(void) | ||
76 | { | ||
77 | return 0x2U; | ||
78 | } | ||
79 | static inline u32 gr_intr_illegal_method_pending_f(void) | ||
80 | { | ||
81 | return 0x10U; | ||
82 | } | ||
83 | static inline u32 gr_intr_illegal_method_reset_f(void) | ||
84 | { | ||
85 | return 0x10U; | ||
86 | } | ||
87 | static inline u32 gr_intr_illegal_notify_pending_f(void) | ||
88 | { | ||
89 | return 0x40U; | ||
90 | } | ||
91 | static inline u32 gr_intr_illegal_notify_reset_f(void) | ||
92 | { | ||
93 | return 0x40U; | ||
94 | } | ||
95 | static inline u32 gr_intr_firmware_method_f(u32 v) | ||
96 | { | ||
97 | return (v & 0x1U) << 8U; | ||
98 | } | ||
99 | static inline u32 gr_intr_firmware_method_pending_f(void) | ||
100 | { | ||
101 | return 0x100U; | ||
102 | } | ||
103 | static inline u32 gr_intr_firmware_method_reset_f(void) | ||
104 | { | ||
105 | return 0x100U; | ||
106 | } | ||
107 | static inline u32 gr_intr_illegal_class_pending_f(void) | ||
108 | { | ||
109 | return 0x20U; | ||
110 | } | ||
111 | static inline u32 gr_intr_illegal_class_reset_f(void) | ||
112 | { | ||
113 | return 0x20U; | ||
114 | } | ||
115 | static inline u32 gr_intr_fecs_error_pending_f(void) | ||
116 | { | ||
117 | return 0x80000U; | ||
118 | } | ||
119 | static inline u32 gr_intr_fecs_error_reset_f(void) | ||
120 | { | ||
121 | return 0x80000U; | ||
122 | } | ||
123 | static inline u32 gr_intr_class_error_pending_f(void) | ||
124 | { | ||
125 | return 0x100000U; | ||
126 | } | ||
127 | static inline u32 gr_intr_class_error_reset_f(void) | ||
128 | { | ||
129 | return 0x100000U; | ||
130 | } | ||
131 | static inline u32 gr_intr_exception_pending_f(void) | ||
132 | { | ||
133 | return 0x200000U; | ||
134 | } | ||
135 | static inline u32 gr_intr_exception_reset_f(void) | ||
136 | { | ||
137 | return 0x200000U; | ||
138 | } | ||
139 | static inline u32 gr_fecs_intr_r(void) | ||
140 | { | ||
141 | return 0x00400144U; | ||
142 | } | ||
143 | static inline u32 gr_class_error_r(void) | ||
144 | { | ||
145 | return 0x00400110U; | ||
146 | } | ||
147 | static inline u32 gr_class_error_code_v(u32 r) | ||
148 | { | ||
149 | return (r >> 0U) & 0xffffU; | ||
150 | } | ||
151 | static inline u32 gr_intr_nonstall_r(void) | ||
152 | { | ||
153 | return 0x00400120U; | ||
154 | } | ||
155 | static inline u32 gr_intr_nonstall_trap_pending_f(void) | ||
156 | { | ||
157 | return 0x2U; | ||
158 | } | ||
159 | static inline u32 gr_intr_en_r(void) | ||
160 | { | ||
161 | return 0x0040013cU; | ||
162 | } | ||
163 | static inline u32 gr_exception_r(void) | ||
164 | { | ||
165 | return 0x00400108U; | ||
166 | } | ||
167 | static inline u32 gr_exception_fe_m(void) | ||
168 | { | ||
169 | return 0x1U << 0U; | ||
170 | } | ||
171 | static inline u32 gr_exception_gpc_m(void) | ||
172 | { | ||
173 | return 0x1U << 24U; | ||
174 | } | ||
175 | static inline u32 gr_exception_memfmt_m(void) | ||
176 | { | ||
177 | return 0x1U << 1U; | ||
178 | } | ||
179 | static inline u32 gr_exception_ds_m(void) | ||
180 | { | ||
181 | return 0x1U << 4U; | ||
182 | } | ||
183 | static inline u32 gr_exception_sked_m(void) | ||
184 | { | ||
185 | return 0x1U << 8U; | ||
186 | } | ||
187 | static inline u32 gr_exception_pd_m(void) | ||
188 | { | ||
189 | return 0x1U << 2U; | ||
190 | } | ||
191 | static inline u32 gr_exception_scc_m(void) | ||
192 | { | ||
193 | return 0x1U << 3U; | ||
194 | } | ||
195 | static inline u32 gr_exception_ssync_m(void) | ||
196 | { | ||
197 | return 0x1U << 5U; | ||
198 | } | ||
199 | static inline u32 gr_exception_mme_m(void) | ||
200 | { | ||
201 | return 0x1U << 7U; | ||
202 | } | ||
203 | static inline u32 gr_exception1_r(void) | ||
204 | { | ||
205 | return 0x00400118U; | ||
206 | } | ||
207 | static inline u32 gr_exception1_gpc_0_pending_f(void) | ||
208 | { | ||
209 | return 0x1U; | ||
210 | } | ||
211 | static inline u32 gr_exception2_r(void) | ||
212 | { | ||
213 | return 0x0040011cU; | ||
214 | } | ||
215 | static inline u32 gr_exception_en_r(void) | ||
216 | { | ||
217 | return 0x00400138U; | ||
218 | } | ||
219 | static inline u32 gr_exception_en_fe_m(void) | ||
220 | { | ||
221 | return 0x1U << 0U; | ||
222 | } | ||
223 | static inline u32 gr_exception_en_fe_enabled_f(void) | ||
224 | { | ||
225 | return 0x1U; | ||
226 | } | ||
227 | static inline u32 gr_exception_en_gpc_m(void) | ||
228 | { | ||
229 | return 0x1U << 24U; | ||
230 | } | ||
231 | static inline u32 gr_exception_en_gpc_enabled_f(void) | ||
232 | { | ||
233 | return 0x1000000U; | ||
234 | } | ||
235 | static inline u32 gr_exception_en_memfmt_m(void) | ||
236 | { | ||
237 | return 0x1U << 1U; | ||
238 | } | ||
239 | static inline u32 gr_exception_en_memfmt_enabled_f(void) | ||
240 | { | ||
241 | return 0x2U; | ||
242 | } | ||
243 | static inline u32 gr_exception_en_ds_m(void) | ||
244 | { | ||
245 | return 0x1U << 4U; | ||
246 | } | ||
247 | static inline u32 gr_exception_en_ds_enabled_f(void) | ||
248 | { | ||
249 | return 0x10U; | ||
250 | } | ||
251 | static inline u32 gr_exception_en_pd_m(void) | ||
252 | { | ||
253 | return 0x1U << 2U; | ||
254 | } | ||
255 | static inline u32 gr_exception_en_pd_enabled_f(void) | ||
256 | { | ||
257 | return 0x4U; | ||
258 | } | ||
259 | static inline u32 gr_exception_en_scc_m(void) | ||
260 | { | ||
261 | return 0x1U << 3U; | ||
262 | } | ||
263 | static inline u32 gr_exception_en_scc_enabled_f(void) | ||
264 | { | ||
265 | return 0x8U; | ||
266 | } | ||
267 | static inline u32 gr_exception_en_ssync_m(void) | ||
268 | { | ||
269 | return 0x1U << 5U; | ||
270 | } | ||
271 | static inline u32 gr_exception_en_ssync_enabled_f(void) | ||
272 | { | ||
273 | return 0x20U; | ||
274 | } | ||
275 | static inline u32 gr_exception_en_mme_m(void) | ||
276 | { | ||
277 | return 0x1U << 7U; | ||
278 | } | ||
279 | static inline u32 gr_exception_en_mme_enabled_f(void) | ||
280 | { | ||
281 | return 0x80U; | ||
282 | } | ||
283 | static inline u32 gr_exception_en_sked_m(void) | ||
284 | { | ||
285 | return 0x1U << 8U; | ||
286 | } | ||
287 | static inline u32 gr_exception_en_sked_enabled_f(void) | ||
288 | { | ||
289 | return 0x100U; | ||
290 | } | ||
291 | static inline u32 gr_exception1_en_r(void) | ||
292 | { | ||
293 | return 0x00400130U; | ||
294 | } | ||
295 | static inline u32 gr_exception2_en_r(void) | ||
296 | { | ||
297 | return 0x00400134U; | ||
298 | } | ||
299 | static inline u32 gr_gpfifo_ctl_r(void) | ||
300 | { | ||
301 | return 0x00400500U; | ||
302 | } | ||
303 | static inline u32 gr_gpfifo_ctl_access_f(u32 v) | ||
304 | { | ||
305 | return (v & 0x1U) << 0U; | ||
306 | } | ||
307 | static inline u32 gr_gpfifo_ctl_access_disabled_f(void) | ||
308 | { | ||
309 | return 0x0U; | ||
310 | } | ||
311 | static inline u32 gr_gpfifo_ctl_access_enabled_f(void) | ||
312 | { | ||
313 | return 0x1U; | ||
314 | } | ||
315 | static inline u32 gr_gpfifo_ctl_semaphore_access_f(u32 v) | ||
316 | { | ||
317 | return (v & 0x1U) << 16U; | ||
318 | } | ||
319 | static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_v(void) | ||
320 | { | ||
321 | return 0x00000001U; | ||
322 | } | ||
323 | static inline u32 gr_gpfifo_ctl_semaphore_access_enabled_f(void) | ||
324 | { | ||
325 | return 0x10000U; | ||
326 | } | ||
327 | static inline u32 gr_gpfifo_status_r(void) | ||
328 | { | ||
329 | return 0x00400504U; | ||
330 | } | ||
331 | static inline u32 gr_trapped_addr_r(void) | ||
332 | { | ||
333 | return 0x00400704U; | ||
334 | } | ||
335 | static inline u32 gr_trapped_addr_mthd_v(u32 r) | ||
336 | { | ||
337 | return (r >> 2U) & 0xfffU; | ||
338 | } | ||
339 | static inline u32 gr_trapped_addr_subch_v(u32 r) | ||
340 | { | ||
341 | return (r >> 16U) & 0x7U; | ||
342 | } | ||
343 | static inline u32 gr_trapped_addr_mme_generated_v(u32 r) | ||
344 | { | ||
345 | return (r >> 20U) & 0x1U; | ||
346 | } | ||
347 | static inline u32 gr_trapped_addr_datahigh_v(u32 r) | ||
348 | { | ||
349 | return (r >> 24U) & 0x1U; | ||
350 | } | ||
351 | static inline u32 gr_trapped_addr_priv_v(u32 r) | ||
352 | { | ||
353 | return (r >> 28U) & 0x1U; | ||
354 | } | ||
355 | static inline u32 gr_trapped_addr_status_v(u32 r) | ||
356 | { | ||
357 | return (r >> 31U) & 0x1U; | ||
358 | } | ||
359 | static inline u32 gr_trapped_data_lo_r(void) | ||
360 | { | ||
361 | return 0x00400708U; | ||
362 | } | ||
363 | static inline u32 gr_trapped_data_hi_r(void) | ||
364 | { | ||
365 | return 0x0040070cU; | ||
366 | } | ||
367 | static inline u32 gr_trapped_data_mme_r(void) | ||
368 | { | ||
369 | return 0x00400710U; | ||
370 | } | ||
371 | static inline u32 gr_trapped_data_mme_pc_v(u32 r) | ||
372 | { | ||
373 | return (r >> 0U) & 0xfffU; | ||
374 | } | ||
375 | static inline u32 gr_status_r(void) | ||
376 | { | ||
377 | return 0x00400700U; | ||
378 | } | ||
379 | static inline u32 gr_status_fe_method_upper_v(u32 r) | ||
380 | { | ||
381 | return (r >> 1U) & 0x1U; | ||
382 | } | ||
383 | static inline u32 gr_status_fe_method_lower_v(u32 r) | ||
384 | { | ||
385 | return (r >> 2U) & 0x1U; | ||
386 | } | ||
387 | static inline u32 gr_status_fe_method_lower_idle_v(void) | ||
388 | { | ||
389 | return 0x00000000U; | ||
390 | } | ||
391 | static inline u32 gr_status_fe_gi_v(u32 r) | ||
392 | { | ||
393 | return (r >> 21U) & 0x1U; | ||
394 | } | ||
395 | static inline u32 gr_status_mask_r(void) | ||
396 | { | ||
397 | return 0x00400610U; | ||
398 | } | ||
399 | static inline u32 gr_status_1_r(void) | ||
400 | { | ||
401 | return 0x00400604U; | ||
402 | } | ||
403 | static inline u32 gr_status_2_r(void) | ||
404 | { | ||
405 | return 0x00400608U; | ||
406 | } | ||
407 | static inline u32 gr_engine_status_r(void) | ||
408 | { | ||
409 | return 0x0040060cU; | ||
410 | } | ||
411 | static inline u32 gr_engine_status_value_busy_f(void) | ||
412 | { | ||
413 | return 0x1U; | ||
414 | } | ||
415 | static inline u32 gr_pri_be0_becs_be_exception_r(void) | ||
416 | { | ||
417 | return 0x00410204U; | ||
418 | } | ||
419 | static inline u32 gr_pri_be0_becs_be_exception_en_r(void) | ||
420 | { | ||
421 | return 0x00410208U; | ||
422 | } | ||
423 | static inline u32 gr_pri_gpc0_gpccs_gpc_exception_r(void) | ||
424 | { | ||
425 | return 0x00502c90U; | ||
426 | } | ||
427 | static inline u32 gr_pri_gpc0_gpccs_gpc_exception_en_r(void) | ||
428 | { | ||
429 | return 0x00502c94U; | ||
430 | } | ||
431 | static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_r(void) | ||
432 | { | ||
433 | return 0x00504508U; | ||
434 | } | ||
435 | static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_exception_en_r(void) | ||
436 | { | ||
437 | return 0x0050450cU; | ||
438 | } | ||
439 | static inline u32 gr_activity_0_r(void) | ||
440 | { | ||
441 | return 0x00400380U; | ||
442 | } | ||
443 | static inline u32 gr_activity_1_r(void) | ||
444 | { | ||
445 | return 0x00400384U; | ||
446 | } | ||
447 | static inline u32 gr_activity_2_r(void) | ||
448 | { | ||
449 | return 0x00400388U; | ||
450 | } | ||
451 | static inline u32 gr_activity_4_r(void) | ||
452 | { | ||
453 | return 0x00400390U; | ||
454 | } | ||
455 | static inline u32 gr_activity_4_gpc0_s(void) | ||
456 | { | ||
457 | return 3U; | ||
458 | } | ||
459 | static inline u32 gr_activity_4_gpc0_f(u32 v) | ||
460 | { | ||
461 | return (v & 0x7U) << 0U; | ||
462 | } | ||
463 | static inline u32 gr_activity_4_gpc0_m(void) | ||
464 | { | ||
465 | return 0x7U << 0U; | ||
466 | } | ||
467 | static inline u32 gr_activity_4_gpc0_v(u32 r) | ||
468 | { | ||
469 | return (r >> 0U) & 0x7U; | ||
470 | } | ||
471 | static inline u32 gr_activity_4_gpc0_empty_v(void) | ||
472 | { | ||
473 | return 0x00000000U; | ||
474 | } | ||
475 | static inline u32 gr_activity_4_gpc0_preempted_v(void) | ||
476 | { | ||
477 | return 0x00000004U; | ||
478 | } | ||
479 | static inline u32 gr_pri_gpc0_gcc_dbg_r(void) | ||
480 | { | ||
481 | return 0x00501000U; | ||
482 | } | ||
483 | static inline u32 gr_pri_gpcs_gcc_dbg_r(void) | ||
484 | { | ||
485 | return 0x00419000U; | ||
486 | } | ||
487 | static inline u32 gr_pri_gpcs_gcc_dbg_invalidate_m(void) | ||
488 | { | ||
489 | return 0x1U << 1U; | ||
490 | } | ||
491 | static inline u32 gr_pri_gpc0_tpc0_sm_cache_control_r(void) | ||
492 | { | ||
493 | return 0x0050433cU; | ||
494 | } | ||
495 | static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_r(void) | ||
496 | { | ||
497 | return 0x00419b3cU; | ||
498 | } | ||
499 | static inline u32 gr_pri_gpcs_tpcs_sm_cache_control_invalidate_cache_m(void) | ||
500 | { | ||
501 | return 0x1U << 0U; | ||
502 | } | ||
503 | static inline u32 gr_pri_sked_activity_r(void) | ||
504 | { | ||
505 | return 0x00407054U; | ||
506 | } | ||
507 | static inline u32 gr_pri_gpc0_gpccs_gpc_activity0_r(void) | ||
508 | { | ||
509 | return 0x00502c80U; | ||
510 | } | ||
511 | static inline u32 gr_pri_gpc0_gpccs_gpc_activity1_r(void) | ||
512 | { | ||
513 | return 0x00502c84U; | ||
514 | } | ||
515 | static inline u32 gr_pri_gpc0_gpccs_gpc_activity2_r(void) | ||
516 | { | ||
517 | return 0x00502c88U; | ||
518 | } | ||
519 | static inline u32 gr_pri_gpc0_gpccs_gpc_activity3_r(void) | ||
520 | { | ||
521 | return 0x00502c8cU; | ||
522 | } | ||
523 | static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_activity_0_r(void) | ||
524 | { | ||
525 | return 0x00504500U; | ||
526 | } | ||
527 | static inline u32 gr_pri_gpc0_tpc1_tpccs_tpc_activity_0_r(void) | ||
528 | { | ||
529 | return 0x00504d00U; | ||
530 | } | ||
531 | static inline u32 gr_pri_gpc0_tpcs_tpccs_tpc_activity_0_r(void) | ||
532 | { | ||
533 | return 0x00501d00U; | ||
534 | } | ||
535 | static inline u32 gr_pri_gpcs_gpccs_gpc_activity_0_r(void) | ||
536 | { | ||
537 | return 0x0041ac80U; | ||
538 | } | ||
539 | static inline u32 gr_pri_gpcs_gpccs_gpc_activity_1_r(void) | ||
540 | { | ||
541 | return 0x0041ac84U; | ||
542 | } | ||
543 | static inline u32 gr_pri_gpcs_gpccs_gpc_activity_2_r(void) | ||
544 | { | ||
545 | return 0x0041ac88U; | ||
546 | } | ||
547 | static inline u32 gr_pri_gpcs_gpccs_gpc_activity_3_r(void) | ||
548 | { | ||
549 | return 0x0041ac8cU; | ||
550 | } | ||
551 | static inline u32 gr_pri_gpcs_tpc0_tpccs_tpc_activity_0_r(void) | ||
552 | { | ||
553 | return 0x0041c500U; | ||
554 | } | ||
555 | static inline u32 gr_pri_gpcs_tpc1_tpccs_tpc_activity_0_r(void) | ||
556 | { | ||
557 | return 0x0041cd00U; | ||
558 | } | ||
559 | static inline u32 gr_pri_gpcs_tpcs_tpccs_tpc_activity_0_r(void) | ||
560 | { | ||
561 | return 0x00419d00U; | ||
562 | } | ||
563 | static inline u32 gr_pri_be0_becs_be_activity0_r(void) | ||
564 | { | ||
565 | return 0x00410200U; | ||
566 | } | ||
567 | static inline u32 gr_pri_be1_becs_be_activity0_r(void) | ||
568 | { | ||
569 | return 0x00410600U; | ||
570 | } | ||
571 | static inline u32 gr_pri_bes_becs_be_activity0_r(void) | ||
572 | { | ||
573 | return 0x00408a00U; | ||
574 | } | ||
575 | static inline u32 gr_pri_ds_mpipe_status_r(void) | ||
576 | { | ||
577 | return 0x00405858U; | ||
578 | } | ||
579 | static inline u32 gr_pri_fe_go_idle_info_r(void) | ||
580 | { | ||
581 | return 0x00404194U; | ||
582 | } | ||
583 | static inline u32 gr_pri_fe_chip_def_info_r(void) | ||
584 | { | ||
585 | return 0x00404030U; | ||
586 | } | ||
587 | static inline u32 gr_pri_fe_chip_def_info_max_veid_count_v(u32 r) | ||
588 | { | ||
589 | return (r >> 0U) & 0xfffU; | ||
590 | } | ||
591 | static inline u32 gr_pri_fe_chip_def_info_max_veid_count_init_v(void) | ||
592 | { | ||
593 | return 0x00000040U; | ||
594 | } | ||
595 | static inline u32 gr_pri_gpc0_tpc0_tex_m_tex_subunits_status_r(void) | ||
596 | { | ||
597 | return 0x00504238U; | ||
598 | } | ||
599 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_r(void) | ||
600 | { | ||
601 | return 0x00504358U; | ||
602 | } | ||
603 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp0_m(void) | ||
604 | { | ||
605 | return 0x1U << 0U; | ||
606 | } | ||
607 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp1_m(void) | ||
608 | { | ||
609 | return 0x1U << 1U; | ||
610 | } | ||
611 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp2_m(void) | ||
612 | { | ||
613 | return 0x1U << 2U; | ||
614 | } | ||
615 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp3_m(void) | ||
616 | { | ||
617 | return 0x1U << 3U; | ||
618 | } | ||
619 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp4_m(void) | ||
620 | { | ||
621 | return 0x1U << 4U; | ||
622 | } | ||
623 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp5_m(void) | ||
624 | { | ||
625 | return 0x1U << 5U; | ||
626 | } | ||
627 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp6_m(void) | ||
628 | { | ||
629 | return 0x1U << 6U; | ||
630 | } | ||
631 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_qrfdp7_m(void) | ||
632 | { | ||
633 | return 0x1U << 7U; | ||
634 | } | ||
635 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp0_m(void) | ||
636 | { | ||
637 | return 0x1U << 8U; | ||
638 | } | ||
639 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp1_m(void) | ||
640 | { | ||
641 | return 0x1U << 9U; | ||
642 | } | ||
643 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp2_m(void) | ||
644 | { | ||
645 | return 0x1U << 10U; | ||
646 | } | ||
647 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp3_m(void) | ||
648 | { | ||
649 | return 0x1U << 11U; | ||
650 | } | ||
651 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp4_m(void) | ||
652 | { | ||
653 | return 0x1U << 12U; | ||
654 | } | ||
655 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp5_m(void) | ||
656 | { | ||
657 | return 0x1U << 13U; | ||
658 | } | ||
659 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp6_m(void) | ||
660 | { | ||
661 | return 0x1U << 14U; | ||
662 | } | ||
663 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_qrfdp7_m(void) | ||
664 | { | ||
665 | return 0x1U << 15U; | ||
666 | } | ||
667 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_corrected_err_total_counter_overflow_v(u32 r) | ||
668 | { | ||
669 | return (r >> 24U) & 0x1U; | ||
670 | } | ||
671 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r) | ||
672 | { | ||
673 | return (r >> 26U) & 0x1U; | ||
674 | } | ||
675 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_status_reset_task_f(void) | ||
676 | { | ||
677 | return 0x40000000U; | ||
678 | } | ||
679 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_corrected_err_count_r(void) | ||
680 | { | ||
681 | return 0x0050435cU; | ||
682 | } | ||
683 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_corrected_err_count_total_s(void) | ||
684 | { | ||
685 | return 16U; | ||
686 | } | ||
687 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_corrected_err_count_total_v(u32 r) | ||
688 | { | ||
689 | return (r >> 0U) & 0xffffU; | ||
690 | } | ||
691 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_uncorrected_err_count_r(void) | ||
692 | { | ||
693 | return 0x00504360U; | ||
694 | } | ||
695 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_uncorrected_err_count_total_s(void) | ||
696 | { | ||
697 | return 16U; | ||
698 | } | ||
699 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_uncorrected_err_count_total_v(u32 r) | ||
700 | { | ||
701 | return (r >> 0U) & 0xffffU; | ||
702 | } | ||
703 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_r(void) | ||
704 | { | ||
705 | return 0x0050436cU; | ||
706 | } | ||
707 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_corrected_err_el1_0_m(void) | ||
708 | { | ||
709 | return 0x1U << 0U; | ||
710 | } | ||
711 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_corrected_err_el1_1_m(void) | ||
712 | { | ||
713 | return 0x1U << 1U; | ||
714 | } | ||
715 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_uncorrected_err_el1_0_m(void) | ||
716 | { | ||
717 | return 0x1U << 2U; | ||
718 | } | ||
719 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_uncorrected_err_el1_1_m(void) | ||
720 | { | ||
721 | return 0x1U << 3U; | ||
722 | } | ||
723 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_corrected_err_total_counter_overflow_v(u32 r) | ||
724 | { | ||
725 | return (r >> 8U) & 0x1U; | ||
726 | } | ||
727 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r) | ||
728 | { | ||
729 | return (r >> 10U) & 0x1U; | ||
730 | } | ||
731 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_status_reset_task_f(void) | ||
732 | { | ||
733 | return 0x40000000U; | ||
734 | } | ||
735 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_corrected_err_count_r(void) | ||
736 | { | ||
737 | return 0x00504370U; | ||
738 | } | ||
739 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_corrected_err_count_total_s(void) | ||
740 | { | ||
741 | return 16U; | ||
742 | } | ||
743 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_corrected_err_count_total_v(u32 r) | ||
744 | { | ||
745 | return (r >> 0U) & 0xffffU; | ||
746 | } | ||
747 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_uncorrected_err_count_r(void) | ||
748 | { | ||
749 | return 0x00504374U; | ||
750 | } | ||
751 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_uncorrected_err_count_total_s(void) | ||
752 | { | ||
753 | return 16U; | ||
754 | } | ||
755 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_uncorrected_err_count_total_v(u32 r) | ||
756 | { | ||
757 | return (r >> 0U) & 0xffffU; | ||
758 | } | ||
759 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_r(void) | ||
760 | { | ||
761 | return 0x0050464cU; | ||
762 | } | ||
763 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_corrected_err_l0_data_m(void) | ||
764 | { | ||
765 | return 0x1U << 0U; | ||
766 | } | ||
767 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_corrected_err_l0_predecode_m(void) | ||
768 | { | ||
769 | return 0x1U << 1U; | ||
770 | } | ||
771 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_corrected_err_l1_data_m(void) | ||
772 | { | ||
773 | return 0x1U << 2U; | ||
774 | } | ||
775 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_corrected_err_l1_predecode_m(void) | ||
776 | { | ||
777 | return 0x1U << 3U; | ||
778 | } | ||
779 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_uncorrected_err_l0_data_m(void) | ||
780 | { | ||
781 | return 0x1U << 4U; | ||
782 | } | ||
783 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_uncorrected_err_l0_predecode_m(void) | ||
784 | { | ||
785 | return 0x1U << 5U; | ||
786 | } | ||
787 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_uncorrected_err_l1_data_m(void) | ||
788 | { | ||
789 | return 0x1U << 6U; | ||
790 | } | ||
791 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_uncorrected_err_l1_predecode_m(void) | ||
792 | { | ||
793 | return 0x1U << 7U; | ||
794 | } | ||
795 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_corrected_err_total_counter_overflow_v(u32 r) | ||
796 | { | ||
797 | return (r >> 16U) & 0x1U; | ||
798 | } | ||
799 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r) | ||
800 | { | ||
801 | return (r >> 18U) & 0x1U; | ||
802 | } | ||
803 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_status_reset_task_f(void) | ||
804 | { | ||
805 | return 0x40000000U; | ||
806 | } | ||
807 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_corrected_err_count_r(void) | ||
808 | { | ||
809 | return 0x00504650U; | ||
810 | } | ||
811 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_corrected_err_count_total_s(void) | ||
812 | { | ||
813 | return 16U; | ||
814 | } | ||
815 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_corrected_err_count_total_v(u32 r) | ||
816 | { | ||
817 | return (r >> 0U) & 0xffffU; | ||
818 | } | ||
819 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_uncorrected_err_count_r(void) | ||
820 | { | ||
821 | return 0x00504654U; | ||
822 | } | ||
823 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_uncorrected_err_count_total_s(void) | ||
824 | { | ||
825 | return 16U; | ||
826 | } | ||
827 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_uncorrected_err_count_total_v(u32 r) | ||
828 | { | ||
829 | return (r >> 0U) & 0xffffU; | ||
830 | } | ||
831 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_r(void) | ||
832 | { | ||
833 | return 0x00504624U; | ||
834 | } | ||
835 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_corrected_err_el1_0_m(void) | ||
836 | { | ||
837 | return 0x1U << 0U; | ||
838 | } | ||
839 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_corrected_err_el1_1_m(void) | ||
840 | { | ||
841 | return 0x1U << 1U; | ||
842 | } | ||
843 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_uncorrected_err_el1_0_m(void) | ||
844 | { | ||
845 | return 0x1U << 2U; | ||
846 | } | ||
847 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_uncorrected_err_el1_1_m(void) | ||
848 | { | ||
849 | return 0x1U << 3U; | ||
850 | } | ||
851 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_corrected_err_pixrpf_m(void) | ||
852 | { | ||
853 | return 0x1U << 4U; | ||
854 | } | ||
855 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_corrected_err_miss_fifo_m(void) | ||
856 | { | ||
857 | return 0x1U << 5U; | ||
858 | } | ||
859 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_uncorrected_err_pixrpf_m(void) | ||
860 | { | ||
861 | return 0x1U << 6U; | ||
862 | } | ||
863 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_uncorrected_err_miss_fifo_m(void) | ||
864 | { | ||
865 | return 0x1U << 7U; | ||
866 | } | ||
867 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_corrected_err_total_counter_overflow_v(u32 r) | ||
868 | { | ||
869 | return (r >> 8U) & 0x1U; | ||
870 | } | ||
871 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r) | ||
872 | { | ||
873 | return (r >> 10U) & 0x1U; | ||
874 | } | ||
875 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_status_reset_task_f(void) | ||
876 | { | ||
877 | return 0x40000000U; | ||
878 | } | ||
879 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_corrected_err_count_r(void) | ||
880 | { | ||
881 | return 0x00504628U; | ||
882 | } | ||
883 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_corrected_err_count_total_s(void) | ||
884 | { | ||
885 | return 16U; | ||
886 | } | ||
887 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_corrected_err_count_total_v(u32 r) | ||
888 | { | ||
889 | return (r >> 0U) & 0xffffU; | ||
890 | } | ||
891 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_uncorrected_err_count_r(void) | ||
892 | { | ||
893 | return 0x0050462cU; | ||
894 | } | ||
895 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_uncorrected_err_count_total_s(void) | ||
896 | { | ||
897 | return 16U; | ||
898 | } | ||
899 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_uncorrected_err_count_total_v(u32 r) | ||
900 | { | ||
901 | return (r >> 0U) & 0xffffU; | ||
902 | } | ||
903 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_r(void) | ||
904 | { | ||
905 | return 0x00504638U; | ||
906 | } | ||
907 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_warp_sm0_m(void) | ||
908 | { | ||
909 | return 0x1U << 0U; | ||
910 | } | ||
911 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_warp_sm1_m(void) | ||
912 | { | ||
913 | return 0x1U << 1U; | ||
914 | } | ||
915 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_barrier_sm0_m(void) | ||
916 | { | ||
917 | return 0x1U << 2U; | ||
918 | } | ||
919 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_barrier_sm1_m(void) | ||
920 | { | ||
921 | return 0x1U << 3U; | ||
922 | } | ||
923 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_warp_sm0_m(void) | ||
924 | { | ||
925 | return 0x1U << 4U; | ||
926 | } | ||
927 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_warp_sm1_m(void) | ||
928 | { | ||
929 | return 0x1U << 5U; | ||
930 | } | ||
931 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_barrier_sm0_m(void) | ||
932 | { | ||
933 | return 0x1U << 6U; | ||
934 | } | ||
935 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_barrier_sm1_m(void) | ||
936 | { | ||
937 | return 0x1U << 7U; | ||
938 | } | ||
939 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_corrected_err_total_counter_overflow_v(u32 r) | ||
940 | { | ||
941 | return (r >> 16U) & 0x1U; | ||
942 | } | ||
943 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r) | ||
944 | { | ||
945 | return (r >> 18U) & 0x1U; | ||
946 | } | ||
947 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_status_reset_task_f(void) | ||
948 | { | ||
949 | return 0x40000000U; | ||
950 | } | ||
951 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_corrected_err_count_r(void) | ||
952 | { | ||
953 | return 0x0050463cU; | ||
954 | } | ||
955 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_corrected_err_count_total_s(void) | ||
956 | { | ||
957 | return 16U; | ||
958 | } | ||
959 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_corrected_err_count_total_v(u32 r) | ||
960 | { | ||
961 | return (r >> 0U) & 0xffffU; | ||
962 | } | ||
963 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_uncorrected_err_count_r(void) | ||
964 | { | ||
965 | return 0x00504640U; | ||
966 | } | ||
967 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_uncorrected_err_count_total_s(void) | ||
968 | { | ||
969 | return 16U; | ||
970 | } | ||
971 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_uncorrected_err_count_total_v(u32 r) | ||
972 | { | ||
973 | return (r >> 0U) & 0xffffU; | ||
974 | } | ||
975 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_r(void) | ||
976 | { | ||
977 | return 0x00419b54U; | ||
978 | } | ||
979 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp0_f(u32 v) | ||
980 | { | ||
981 | return (v & 0x1U) << 0U; | ||
982 | } | ||
983 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp0_task_f(void) | ||
984 | { | ||
985 | return 0x1U; | ||
986 | } | ||
987 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp1_f(u32 v) | ||
988 | { | ||
989 | return (v & 0x1U) << 1U; | ||
990 | } | ||
991 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp1_task_f(void) | ||
992 | { | ||
993 | return 0x2U; | ||
994 | } | ||
995 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp2_f(u32 v) | ||
996 | { | ||
997 | return (v & 0x1U) << 2U; | ||
998 | } | ||
999 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp2_task_f(void) | ||
1000 | { | ||
1001 | return 0x4U; | ||
1002 | } | ||
1003 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp3_f(u32 v) | ||
1004 | { | ||
1005 | return (v & 0x1U) << 3U; | ||
1006 | } | ||
1007 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp3_task_f(void) | ||
1008 | { | ||
1009 | return 0x8U; | ||
1010 | } | ||
1011 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp4_f(u32 v) | ||
1012 | { | ||
1013 | return (v & 0x1U) << 4U; | ||
1014 | } | ||
1015 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp4_task_f(void) | ||
1016 | { | ||
1017 | return 0x10U; | ||
1018 | } | ||
1019 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp5_f(u32 v) | ||
1020 | { | ||
1021 | return (v & 0x1U) << 5U; | ||
1022 | } | ||
1023 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp5_task_f(void) | ||
1024 | { | ||
1025 | return 0x20U; | ||
1026 | } | ||
1027 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp6_f(u32 v) | ||
1028 | { | ||
1029 | return (v & 0x1U) << 6U; | ||
1030 | } | ||
1031 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp6_task_f(void) | ||
1032 | { | ||
1033 | return 0x40U; | ||
1034 | } | ||
1035 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp7_f(u32 v) | ||
1036 | { | ||
1037 | return (v & 0x1U) << 7U; | ||
1038 | } | ||
1039 | static inline u32 gr_pri_gpcs_tpcs_sm_lrf_ecc_control_scrub_qrfdp7_task_f(void) | ||
1040 | { | ||
1041 | return 0x80U; | ||
1042 | } | ||
1043 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_r(void) | ||
1044 | { | ||
1045 | return 0x00504354U; | ||
1046 | } | ||
1047 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp0_f(u32 v) | ||
1048 | { | ||
1049 | return (v & 0x1U) << 0U; | ||
1050 | } | ||
1051 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp0_init_f(void) | ||
1052 | { | ||
1053 | return 0x0U; | ||
1054 | } | ||
1055 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp1_f(u32 v) | ||
1056 | { | ||
1057 | return (v & 0x1U) << 1U; | ||
1058 | } | ||
1059 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp1_init_f(void) | ||
1060 | { | ||
1061 | return 0x0U; | ||
1062 | } | ||
1063 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp2_f(u32 v) | ||
1064 | { | ||
1065 | return (v & 0x1U) << 2U; | ||
1066 | } | ||
1067 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp2_init_f(void) | ||
1068 | { | ||
1069 | return 0x0U; | ||
1070 | } | ||
1071 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp3_f(u32 v) | ||
1072 | { | ||
1073 | return (v & 0x1U) << 3U; | ||
1074 | } | ||
1075 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp3_init_f(void) | ||
1076 | { | ||
1077 | return 0x0U; | ||
1078 | } | ||
1079 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp4_f(u32 v) | ||
1080 | { | ||
1081 | return (v & 0x1U) << 4U; | ||
1082 | } | ||
1083 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp4_init_f(void) | ||
1084 | { | ||
1085 | return 0x0U; | ||
1086 | } | ||
1087 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp5_f(u32 v) | ||
1088 | { | ||
1089 | return (v & 0x1U) << 5U; | ||
1090 | } | ||
1091 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp5_init_f(void) | ||
1092 | { | ||
1093 | return 0x0U; | ||
1094 | } | ||
1095 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp6_f(u32 v) | ||
1096 | { | ||
1097 | return (v & 0x1U) << 6U; | ||
1098 | } | ||
1099 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp6_init_f(void) | ||
1100 | { | ||
1101 | return 0x0U; | ||
1102 | } | ||
1103 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp7_f(u32 v) | ||
1104 | { | ||
1105 | return (v & 0x1U) << 7U; | ||
1106 | } | ||
1107 | static inline u32 gr_pri_gpc0_tpc0_sm_lrf_ecc_control_scrub_qrfdp7_init_f(void) | ||
1108 | { | ||
1109 | return 0x0U; | ||
1110 | } | ||
1111 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_data_ecc_control_r(void) | ||
1112 | { | ||
1113 | return 0x00419b68U; | ||
1114 | } | ||
1115 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_data_ecc_control_scrub_el1_0_f(u32 v) | ||
1116 | { | ||
1117 | return (v & 0x1U) << 0U; | ||
1118 | } | ||
1119 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_data_ecc_control_scrub_el1_0_task_f(void) | ||
1120 | { | ||
1121 | return 0x1U; | ||
1122 | } | ||
1123 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_data_ecc_control_scrub_el1_1_f(u32 v) | ||
1124 | { | ||
1125 | return (v & 0x1U) << 1U; | ||
1126 | } | ||
1127 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_data_ecc_control_scrub_el1_1_task_f(void) | ||
1128 | { | ||
1129 | return 0x2U; | ||
1130 | } | ||
1131 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_control_r(void) | ||
1132 | { | ||
1133 | return 0x00504368U; | ||
1134 | } | ||
1135 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_control_scrub_el1_0_f(u32 v) | ||
1136 | { | ||
1137 | return (v & 0x1U) << 0U; | ||
1138 | } | ||
1139 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_control_scrub_el1_0_init_f(void) | ||
1140 | { | ||
1141 | return 0x0U; | ||
1142 | } | ||
1143 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_control_scrub_el1_1_f(u32 v) | ||
1144 | { | ||
1145 | return (v & 0x1U) << 1U; | ||
1146 | } | ||
1147 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_data_ecc_control_scrub_el1_1_init_f(void) | ||
1148 | { | ||
1149 | return 0x0U; | ||
1150 | } | ||
1151 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_r(void) | ||
1152 | { | ||
1153 | return 0x00419e20U; | ||
1154 | } | ||
1155 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_el1_0_f(u32 v) | ||
1156 | { | ||
1157 | return (v & 0x1U) << 0U; | ||
1158 | } | ||
1159 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_el1_0_task_f(void) | ||
1160 | { | ||
1161 | return 0x1U; | ||
1162 | } | ||
1163 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_el1_1_f(u32 v) | ||
1164 | { | ||
1165 | return (v & 0x1U) << 1U; | ||
1166 | } | ||
1167 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_el1_1_task_f(void) | ||
1168 | { | ||
1169 | return 0x2U; | ||
1170 | } | ||
1171 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_pixprf_f(u32 v) | ||
1172 | { | ||
1173 | return (v & 0x1U) << 4U; | ||
1174 | } | ||
1175 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_pixprf_task_f(void) | ||
1176 | { | ||
1177 | return 0x10U; | ||
1178 | } | ||
1179 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_miss_fifo_f(u32 v) | ||
1180 | { | ||
1181 | return (v & 0x1U) << 5U; | ||
1182 | } | ||
1183 | static inline u32 gr_pri_gpcs_tpcs_sm_l1_tag_ecc_control_scrub_miss_fifo_task_f(void) | ||
1184 | { | ||
1185 | return 0x20U; | ||
1186 | } | ||
1187 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_r(void) | ||
1188 | { | ||
1189 | return 0x00504620U; | ||
1190 | } | ||
1191 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_el1_0_f(u32 v) | ||
1192 | { | ||
1193 | return (v & 0x1U) << 0U; | ||
1194 | } | ||
1195 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_el1_0_init_f(void) | ||
1196 | { | ||
1197 | return 0x0U; | ||
1198 | } | ||
1199 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_el1_1_f(u32 v) | ||
1200 | { | ||
1201 | return (v & 0x1U) << 1U; | ||
1202 | } | ||
1203 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_el1_1_init_f(void) | ||
1204 | { | ||
1205 | return 0x0U; | ||
1206 | } | ||
1207 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_pixprf_f(u32 v) | ||
1208 | { | ||
1209 | return (v & 0x1U) << 4U; | ||
1210 | } | ||
1211 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_pixprf_init_f(void) | ||
1212 | { | ||
1213 | return 0x0U; | ||
1214 | } | ||
1215 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_miss_fifo_f(u32 v) | ||
1216 | { | ||
1217 | return (v & 0x1U) << 5U; | ||
1218 | } | ||
1219 | static inline u32 gr_pri_gpc0_tpc0_sm_l1_tag_ecc_control_scrub_miss_fifo_init_f(void) | ||
1220 | { | ||
1221 | return 0x0U; | ||
1222 | } | ||
1223 | static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_r(void) | ||
1224 | { | ||
1225 | return 0x00419e34U; | ||
1226 | } | ||
1227 | static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_warp_sm0_f(u32 v) | ||
1228 | { | ||
1229 | return (v & 0x1U) << 0U; | ||
1230 | } | ||
1231 | static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_warp_sm0_task_f(void) | ||
1232 | { | ||
1233 | return 0x1U; | ||
1234 | } | ||
1235 | static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_warp_sm1_f(u32 v) | ||
1236 | { | ||
1237 | return (v & 0x1U) << 1U; | ||
1238 | } | ||
1239 | static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_warp_sm1_task_f(void) | ||
1240 | { | ||
1241 | return 0x2U; | ||
1242 | } | ||
1243 | static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_barrier_sm0_f(u32 v) | ||
1244 | { | ||
1245 | return (v & 0x1U) << 2U; | ||
1246 | } | ||
1247 | static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_barrier_sm0_task_f(void) | ||
1248 | { | ||
1249 | return 0x4U; | ||
1250 | } | ||
1251 | static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_barrier_sm1_f(u32 v) | ||
1252 | { | ||
1253 | return (v & 0x1U) << 3U; | ||
1254 | } | ||
1255 | static inline u32 gr_pri_gpcs_tpcs_sm_cbu_ecc_control_scrub_barrier_sm1_task_f(void) | ||
1256 | { | ||
1257 | return 0x8U; | ||
1258 | } | ||
1259 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_r(void) | ||
1260 | { | ||
1261 | return 0x00504634U; | ||
1262 | } | ||
1263 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_warp_sm0_f(u32 v) | ||
1264 | { | ||
1265 | return (v & 0x1U) << 0U; | ||
1266 | } | ||
1267 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_warp_sm0_init_f(void) | ||
1268 | { | ||
1269 | return 0x0U; | ||
1270 | } | ||
1271 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_warp_sm1_f(u32 v) | ||
1272 | { | ||
1273 | return (v & 0x1U) << 1U; | ||
1274 | } | ||
1275 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_warp_sm1_init_f(void) | ||
1276 | { | ||
1277 | return 0x0U; | ||
1278 | } | ||
1279 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_barrier_sm0_f(u32 v) | ||
1280 | { | ||
1281 | return (v & 0x1U) << 2U; | ||
1282 | } | ||
1283 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_barrier_sm0_init_f(void) | ||
1284 | { | ||
1285 | return 0x0U; | ||
1286 | } | ||
1287 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_barrier_sm1_f(u32 v) | ||
1288 | { | ||
1289 | return (v & 0x1U) << 3U; | ||
1290 | } | ||
1291 | static inline u32 gr_pri_gpc0_tpc0_sm_cbu_ecc_control_scrub_barrier_sm1_init_f(void) | ||
1292 | { | ||
1293 | return 0x0U; | ||
1294 | } | ||
1295 | static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_r(void) | ||
1296 | { | ||
1297 | return 0x00419e48U; | ||
1298 | } | ||
1299 | static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l0_data_f(u32 v) | ||
1300 | { | ||
1301 | return (v & 0x1U) << 0U; | ||
1302 | } | ||
1303 | static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l0_data_task_f(void) | ||
1304 | { | ||
1305 | return 0x1U; | ||
1306 | } | ||
1307 | static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l0_predecode_f(u32 v) | ||
1308 | { | ||
1309 | return (v & 0x1U) << 1U; | ||
1310 | } | ||
1311 | static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l0_predecode_task_f(void) | ||
1312 | { | ||
1313 | return 0x2U; | ||
1314 | } | ||
1315 | static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l1_data_f(u32 v) | ||
1316 | { | ||
1317 | return (v & 0x1U) << 2U; | ||
1318 | } | ||
1319 | static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l1_data_task_f(void) | ||
1320 | { | ||
1321 | return 0x4U; | ||
1322 | } | ||
1323 | static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l1_predecode_f(u32 v) | ||
1324 | { | ||
1325 | return (v & 0x1U) << 3U; | ||
1326 | } | ||
1327 | static inline u32 gr_pri_gpcs_tpcs_sm_icache_ecc_control_scrub_l1_predecode_task_f(void) | ||
1328 | { | ||
1329 | return 0x8U; | ||
1330 | } | ||
1331 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_r(void) | ||
1332 | { | ||
1333 | return 0x00504648U; | ||
1334 | } | ||
1335 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l0_data_f(u32 v) | ||
1336 | { | ||
1337 | return (v & 0x1U) << 0U; | ||
1338 | } | ||
1339 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l0_data_init_f(void) | ||
1340 | { | ||
1341 | return 0x0U; | ||
1342 | } | ||
1343 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l0_predecode_f(u32 v) | ||
1344 | { | ||
1345 | return (v & 0x1U) << 1U; | ||
1346 | } | ||
1347 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l0_predecode_init_f(void) | ||
1348 | { | ||
1349 | return 0x0U; | ||
1350 | } | ||
1351 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l1_data_f(u32 v) | ||
1352 | { | ||
1353 | return (v & 0x1U) << 2U; | ||
1354 | } | ||
1355 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l1_data_init_f(void) | ||
1356 | { | ||
1357 | return 0x0U; | ||
1358 | } | ||
1359 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l1_predecode_f(u32 v) | ||
1360 | { | ||
1361 | return (v & 0x1U) << 3U; | ||
1362 | } | ||
1363 | static inline u32 gr_pri_gpc0_tpc0_sm_icache_ecc_control_scrub_l1_predecode_init_f(void) | ||
1364 | { | ||
1365 | return 0x0U; | ||
1366 | } | ||
1367 | static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_r(void) | ||
1368 | { | ||
1369 | return 0x005042c4U; | ||
1370 | } | ||
1371 | static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_default_f(void) | ||
1372 | { | ||
1373 | return 0x0U; | ||
1374 | } | ||
1375 | static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe0_f(void) | ||
1376 | { | ||
1377 | return 0x1U; | ||
1378 | } | ||
1379 | static inline u32 gr_pri_gpc0_tpc0_tex_m_routing_sel_pipe1_f(void) | ||
1380 | { | ||
1381 | return 0x2U; | ||
1382 | } | ||
1383 | static inline u32 gr_gpc0_tpc0_mpc_hww_esr_r(void) | ||
1384 | { | ||
1385 | return 0x00504430U; | ||
1386 | } | ||
1387 | static inline u32 gr_gpc0_tpc0_mpc_hww_esr_reset_trigger_f(void) | ||
1388 | { | ||
1389 | return 0x40000000U; | ||
1390 | } | ||
1391 | static inline u32 gr_gpc0_tpc0_mpc_hww_esr_info_r(void) | ||
1392 | { | ||
1393 | return 0x00504434U; | ||
1394 | } | ||
1395 | static inline u32 gr_gpc0_tpc0_mpc_hww_esr_info_veid_v(u32 r) | ||
1396 | { | ||
1397 | return (r >> 0U) & 0x3fU; | ||
1398 | } | ||
1399 | static inline u32 gr_pri_be0_crop_status1_r(void) | ||
1400 | { | ||
1401 | return 0x00410134U; | ||
1402 | } | ||
1403 | static inline u32 gr_pri_bes_crop_status1_r(void) | ||
1404 | { | ||
1405 | return 0x00408934U; | ||
1406 | } | ||
1407 | static inline u32 gr_pri_be0_zrop_status_r(void) | ||
1408 | { | ||
1409 | return 0x00410048U; | ||
1410 | } | ||
1411 | static inline u32 gr_pri_be0_zrop_status2_r(void) | ||
1412 | { | ||
1413 | return 0x0041004cU; | ||
1414 | } | ||
1415 | static inline u32 gr_pri_bes_zrop_status_r(void) | ||
1416 | { | ||
1417 | return 0x00408848U; | ||
1418 | } | ||
1419 | static inline u32 gr_pri_bes_zrop_status2_r(void) | ||
1420 | { | ||
1421 | return 0x0040884cU; | ||
1422 | } | ||
1423 | static inline u32 gr_pipe_bundle_address_r(void) | ||
1424 | { | ||
1425 | return 0x00400200U; | ||
1426 | } | ||
1427 | static inline u32 gr_pipe_bundle_address_value_v(u32 r) | ||
1428 | { | ||
1429 | return (r >> 0U) & 0xffffU; | ||
1430 | } | ||
1431 | static inline u32 gr_pipe_bundle_address_veid_f(u32 v) | ||
1432 | { | ||
1433 | return (v & 0x3fU) << 20U; | ||
1434 | } | ||
1435 | static inline u32 gr_pipe_bundle_address_veid_w(void) | ||
1436 | { | ||
1437 | return 0U; | ||
1438 | } | ||
1439 | static inline u32 gr_pipe_bundle_data_r(void) | ||
1440 | { | ||
1441 | return 0x00400204U; | ||
1442 | } | ||
1443 | static inline u32 gr_pipe_bundle_config_r(void) | ||
1444 | { | ||
1445 | return 0x00400208U; | ||
1446 | } | ||
1447 | static inline u32 gr_pipe_bundle_config_override_pipe_mode_disabled_f(void) | ||
1448 | { | ||
1449 | return 0x0U; | ||
1450 | } | ||
1451 | static inline u32 gr_pipe_bundle_config_override_pipe_mode_enabled_f(void) | ||
1452 | { | ||
1453 | return 0x80000000U; | ||
1454 | } | ||
1455 | static inline u32 gr_fe_hww_esr_r(void) | ||
1456 | { | ||
1457 | return 0x00404000U; | ||
1458 | } | ||
1459 | static inline u32 gr_fe_hww_esr_reset_active_f(void) | ||
1460 | { | ||
1461 | return 0x40000000U; | ||
1462 | } | ||
1463 | static inline u32 gr_fe_hww_esr_en_enable_f(void) | ||
1464 | { | ||
1465 | return 0x80000000U; | ||
1466 | } | ||
1467 | static inline u32 gr_fe_hww_esr_info_r(void) | ||
1468 | { | ||
1469 | return 0x004041b0U; | ||
1470 | } | ||
1471 | static inline u32 gr_gpcs_tpcs_sms_hww_global_esr_report_mask_r(void) | ||
1472 | { | ||
1473 | return 0x00419eacU; | ||
1474 | } | ||
1475 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_r(void) | ||
1476 | { | ||
1477 | return 0x0050472cU; | ||
1478 | } | ||
1479 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_multiple_warp_errors_report_f(void) | ||
1480 | { | ||
1481 | return 0x4U; | ||
1482 | } | ||
1483 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_bpt_int_report_f(void) | ||
1484 | { | ||
1485 | return 0x10U; | ||
1486 | } | ||
1487 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_bpt_pause_report_f(void) | ||
1488 | { | ||
1489 | return 0x20U; | ||
1490 | } | ||
1491 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_single_step_complete_report_f(void) | ||
1492 | { | ||
1493 | return 0x40U; | ||
1494 | } | ||
1495 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_report_mask_error_in_trap_report_f(void) | ||
1496 | { | ||
1497 | return 0x100U; | ||
1498 | } | ||
1499 | static inline u32 gr_gpcs_tpcs_sms_hww_global_esr_r(void) | ||
1500 | { | ||
1501 | return 0x00419eb4U; | ||
1502 | } | ||
1503 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_r(void) | ||
1504 | { | ||
1505 | return 0x00504734U; | ||
1506 | } | ||
1507 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_bpt_int_m(void) | ||
1508 | { | ||
1509 | return 0x1U << 4U; | ||
1510 | } | ||
1511 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_bpt_int_pending_f(void) | ||
1512 | { | ||
1513 | return 0x10U; | ||
1514 | } | ||
1515 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_bpt_pause_m(void) | ||
1516 | { | ||
1517 | return 0x1U << 5U; | ||
1518 | } | ||
1519 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_bpt_pause_pending_f(void) | ||
1520 | { | ||
1521 | return 0x20U; | ||
1522 | } | ||
1523 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_single_step_complete_m(void) | ||
1524 | { | ||
1525 | return 0x1U << 6U; | ||
1526 | } | ||
1527 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_single_step_complete_pending_f(void) | ||
1528 | { | ||
1529 | return 0x40U; | ||
1530 | } | ||
1531 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_multiple_warp_errors_m(void) | ||
1532 | { | ||
1533 | return 0x1U << 2U; | ||
1534 | } | ||
1535 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_multiple_warp_errors_pending_f(void) | ||
1536 | { | ||
1537 | return 0x4U; | ||
1538 | } | ||
1539 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_error_in_trap_m(void) | ||
1540 | { | ||
1541 | return 0x1U << 8U; | ||
1542 | } | ||
1543 | static inline u32 gr_gpc0_tpc0_sm0_hww_global_esr_error_in_trap_pending_f(void) | ||
1544 | { | ||
1545 | return 0x100U; | ||
1546 | } | ||
1547 | static inline u32 gr_fe_go_idle_timeout_r(void) | ||
1548 | { | ||
1549 | return 0x00404154U; | ||
1550 | } | ||
1551 | static inline u32 gr_fe_go_idle_timeout_count_f(u32 v) | ||
1552 | { | ||
1553 | return (v & 0xffffffffU) << 0U; | ||
1554 | } | ||
1555 | static inline u32 gr_fe_go_idle_timeout_count_disabled_f(void) | ||
1556 | { | ||
1557 | return 0x0U; | ||
1558 | } | ||
1559 | static inline u32 gr_fe_go_idle_timeout_count_prod_f(void) | ||
1560 | { | ||
1561 | return 0x1800U; | ||
1562 | } | ||
1563 | static inline u32 gr_fe_object_table_r(u32 i) | ||
1564 | { | ||
1565 | return 0x00404200U + i*4U; | ||
1566 | } | ||
1567 | static inline u32 gr_fe_object_table_nvclass_v(u32 r) | ||
1568 | { | ||
1569 | return (r >> 0U) & 0xffffU; | ||
1570 | } | ||
1571 | static inline u32 gr_fe_tpc_fs_r(u32 i) | ||
1572 | { | ||
1573 | return 0x0040a200U + i*4U; | ||
1574 | } | ||
1575 | static inline u32 gr_fe_tpc_pesmask_r(void) | ||
1576 | { | ||
1577 | return 0x0040a260U; | ||
1578 | } | ||
1579 | static inline u32 gr_fe_tpc_pesmask_pesid_f(u32 v) | ||
1580 | { | ||
1581 | return (v & 0x3fU) << 24U; | ||
1582 | } | ||
1583 | static inline u32 gr_fe_tpc_pesmask_gpcid_f(u32 v) | ||
1584 | { | ||
1585 | return (v & 0xffU) << 16U; | ||
1586 | } | ||
1587 | static inline u32 gr_fe_tpc_pesmask_action_m(void) | ||
1588 | { | ||
1589 | return 0x1U << 30U; | ||
1590 | } | ||
1591 | static inline u32 gr_fe_tpc_pesmask_action_write_f(void) | ||
1592 | { | ||
1593 | return 0x40000000U; | ||
1594 | } | ||
1595 | static inline u32 gr_fe_tpc_pesmask_action_read_f(void) | ||
1596 | { | ||
1597 | return 0x0U; | ||
1598 | } | ||
1599 | static inline u32 gr_fe_tpc_pesmask_req_m(void) | ||
1600 | { | ||
1601 | return 0x1U << 31U; | ||
1602 | } | ||
1603 | static inline u32 gr_fe_tpc_pesmask_req_send_f(void) | ||
1604 | { | ||
1605 | return 0x80000000U; | ||
1606 | } | ||
1607 | static inline u32 gr_fe_tpc_pesmask_mask_m(void) | ||
1608 | { | ||
1609 | return 0xffffU << 0U; | ||
1610 | } | ||
1611 | static inline u32 gr_pri_mme_shadow_raw_index_r(void) | ||
1612 | { | ||
1613 | return 0x00404488U; | ||
1614 | } | ||
1615 | static inline u32 gr_pri_mme_shadow_raw_index_write_trigger_f(void) | ||
1616 | { | ||
1617 | return 0x80000000U; | ||
1618 | } | ||
1619 | static inline u32 gr_pri_mme_shadow_raw_data_r(void) | ||
1620 | { | ||
1621 | return 0x0040448cU; | ||
1622 | } | ||
1623 | static inline u32 gr_mme_hww_esr_r(void) | ||
1624 | { | ||
1625 | return 0x00404490U; | ||
1626 | } | ||
1627 | static inline u32 gr_mme_hww_esr_reset_active_f(void) | ||
1628 | { | ||
1629 | return 0x40000000U; | ||
1630 | } | ||
1631 | static inline u32 gr_mme_hww_esr_en_enable_f(void) | ||
1632 | { | ||
1633 | return 0x80000000U; | ||
1634 | } | ||
1635 | static inline u32 gr_mme_hww_esr_info_r(void) | ||
1636 | { | ||
1637 | return 0x00404494U; | ||
1638 | } | ||
1639 | static inline u32 gr_memfmt_hww_esr_r(void) | ||
1640 | { | ||
1641 | return 0x00404600U; | ||
1642 | } | ||
1643 | static inline u32 gr_memfmt_hww_esr_reset_active_f(void) | ||
1644 | { | ||
1645 | return 0x40000000U; | ||
1646 | } | ||
1647 | static inline u32 gr_memfmt_hww_esr_en_enable_f(void) | ||
1648 | { | ||
1649 | return 0x80000000U; | ||
1650 | } | ||
1651 | static inline u32 gr_fecs_cpuctl_r(void) | ||
1652 | { | ||
1653 | return 0x00409100U; | ||
1654 | } | ||
1655 | static inline u32 gr_fecs_cpuctl_startcpu_f(u32 v) | ||
1656 | { | ||
1657 | return (v & 0x1U) << 1U; | ||
1658 | } | ||
1659 | static inline u32 gr_fecs_cpuctl_alias_r(void) | ||
1660 | { | ||
1661 | return 0x00409130U; | ||
1662 | } | ||
1663 | static inline u32 gr_fecs_cpuctl_alias_startcpu_f(u32 v) | ||
1664 | { | ||
1665 | return (v & 0x1U) << 1U; | ||
1666 | } | ||
1667 | static inline u32 gr_fecs_dmactl_r(void) | ||
1668 | { | ||
1669 | return 0x0040910cU; | ||
1670 | } | ||
1671 | static inline u32 gr_fecs_dmactl_require_ctx_f(u32 v) | ||
1672 | { | ||
1673 | return (v & 0x1U) << 0U; | ||
1674 | } | ||
1675 | static inline u32 gr_fecs_dmactl_dmem_scrubbing_m(void) | ||
1676 | { | ||
1677 | return 0x1U << 1U; | ||
1678 | } | ||
1679 | static inline u32 gr_fecs_dmactl_imem_scrubbing_m(void) | ||
1680 | { | ||
1681 | return 0x1U << 2U; | ||
1682 | } | ||
1683 | static inline u32 gr_fecs_os_r(void) | ||
1684 | { | ||
1685 | return 0x00409080U; | ||
1686 | } | ||
1687 | static inline u32 gr_fecs_idlestate_r(void) | ||
1688 | { | ||
1689 | return 0x0040904cU; | ||
1690 | } | ||
1691 | static inline u32 gr_fecs_mailbox0_r(void) | ||
1692 | { | ||
1693 | return 0x00409040U; | ||
1694 | } | ||
1695 | static inline u32 gr_fecs_mailbox1_r(void) | ||
1696 | { | ||
1697 | return 0x00409044U; | ||
1698 | } | ||
1699 | static inline u32 gr_fecs_irqstat_r(void) | ||
1700 | { | ||
1701 | return 0x00409008U; | ||
1702 | } | ||
1703 | static inline u32 gr_fecs_irqmode_r(void) | ||
1704 | { | ||
1705 | return 0x0040900cU; | ||
1706 | } | ||
1707 | static inline u32 gr_fecs_irqmask_r(void) | ||
1708 | { | ||
1709 | return 0x00409018U; | ||
1710 | } | ||
1711 | static inline u32 gr_fecs_irqdest_r(void) | ||
1712 | { | ||
1713 | return 0x0040901cU; | ||
1714 | } | ||
1715 | static inline u32 gr_fecs_curctx_r(void) | ||
1716 | { | ||
1717 | return 0x00409050U; | ||
1718 | } | ||
1719 | static inline u32 gr_fecs_nxtctx_r(void) | ||
1720 | { | ||
1721 | return 0x00409054U; | ||
1722 | } | ||
1723 | static inline u32 gr_fecs_engctl_r(void) | ||
1724 | { | ||
1725 | return 0x004090a4U; | ||
1726 | } | ||
1727 | static inline u32 gr_fecs_debug1_r(void) | ||
1728 | { | ||
1729 | return 0x00409090U; | ||
1730 | } | ||
1731 | static inline u32 gr_fecs_debuginfo_r(void) | ||
1732 | { | ||
1733 | return 0x00409094U; | ||
1734 | } | ||
1735 | static inline u32 gr_fecs_icd_cmd_r(void) | ||
1736 | { | ||
1737 | return 0x00409200U; | ||
1738 | } | ||
1739 | static inline u32 gr_fecs_icd_cmd_opc_s(void) | ||
1740 | { | ||
1741 | return 4U; | ||
1742 | } | ||
1743 | static inline u32 gr_fecs_icd_cmd_opc_f(u32 v) | ||
1744 | { | ||
1745 | return (v & 0xfU) << 0U; | ||
1746 | } | ||
1747 | static inline u32 gr_fecs_icd_cmd_opc_m(void) | ||
1748 | { | ||
1749 | return 0xfU << 0U; | ||
1750 | } | ||
1751 | static inline u32 gr_fecs_icd_cmd_opc_v(u32 r) | ||
1752 | { | ||
1753 | return (r >> 0U) & 0xfU; | ||
1754 | } | ||
1755 | static inline u32 gr_fecs_icd_cmd_opc_rreg_f(void) | ||
1756 | { | ||
1757 | return 0x8U; | ||
1758 | } | ||
1759 | static inline u32 gr_fecs_icd_cmd_opc_rstat_f(void) | ||
1760 | { | ||
1761 | return 0xeU; | ||
1762 | } | ||
1763 | static inline u32 gr_fecs_icd_cmd_idx_f(u32 v) | ||
1764 | { | ||
1765 | return (v & 0x1fU) << 8U; | ||
1766 | } | ||
1767 | static inline u32 gr_fecs_icd_rdata_r(void) | ||
1768 | { | ||
1769 | return 0x0040920cU; | ||
1770 | } | ||
1771 | static inline u32 gr_fecs_imemc_r(u32 i) | ||
1772 | { | ||
1773 | return 0x00409180U + i*16U; | ||
1774 | } | ||
1775 | static inline u32 gr_fecs_imemc_offs_f(u32 v) | ||
1776 | { | ||
1777 | return (v & 0x3fU) << 2U; | ||
1778 | } | ||
1779 | static inline u32 gr_fecs_imemc_blk_f(u32 v) | ||
1780 | { | ||
1781 | return (v & 0xffU) << 8U; | ||
1782 | } | ||
1783 | static inline u32 gr_fecs_imemc_aincw_f(u32 v) | ||
1784 | { | ||
1785 | return (v & 0x1U) << 24U; | ||
1786 | } | ||
1787 | static inline u32 gr_fecs_imemd_r(u32 i) | ||
1788 | { | ||
1789 | return 0x00409184U + i*16U; | ||
1790 | } | ||
1791 | static inline u32 gr_fecs_imemt_r(u32 i) | ||
1792 | { | ||
1793 | return 0x00409188U + i*16U; | ||
1794 | } | ||
1795 | static inline u32 gr_fecs_imemt_tag_f(u32 v) | ||
1796 | { | ||
1797 | return (v & 0xffffU) << 0U; | ||
1798 | } | ||
1799 | static inline u32 gr_fecs_dmemc_r(u32 i) | ||
1800 | { | ||
1801 | return 0x004091c0U + i*8U; | ||
1802 | } | ||
1803 | static inline u32 gr_fecs_dmemc_offs_s(void) | ||
1804 | { | ||
1805 | return 6U; | ||
1806 | } | ||
1807 | static inline u32 gr_fecs_dmemc_offs_f(u32 v) | ||
1808 | { | ||
1809 | return (v & 0x3fU) << 2U; | ||
1810 | } | ||
1811 | static inline u32 gr_fecs_dmemc_offs_m(void) | ||
1812 | { | ||
1813 | return 0x3fU << 2U; | ||
1814 | } | ||
1815 | static inline u32 gr_fecs_dmemc_offs_v(u32 r) | ||
1816 | { | ||
1817 | return (r >> 2U) & 0x3fU; | ||
1818 | } | ||
1819 | static inline u32 gr_fecs_dmemc_blk_f(u32 v) | ||
1820 | { | ||
1821 | return (v & 0xffU) << 8U; | ||
1822 | } | ||
1823 | static inline u32 gr_fecs_dmemc_aincw_f(u32 v) | ||
1824 | { | ||
1825 | return (v & 0x1U) << 24U; | ||
1826 | } | ||
1827 | static inline u32 gr_fecs_dmemd_r(u32 i) | ||
1828 | { | ||
1829 | return 0x004091c4U + i*8U; | ||
1830 | } | ||
1831 | static inline u32 gr_fecs_dmatrfbase_r(void) | ||
1832 | { | ||
1833 | return 0x00409110U; | ||
1834 | } | ||
1835 | static inline u32 gr_fecs_dmatrfmoffs_r(void) | ||
1836 | { | ||
1837 | return 0x00409114U; | ||
1838 | } | ||
1839 | static inline u32 gr_fecs_dmatrffboffs_r(void) | ||
1840 | { | ||
1841 | return 0x0040911cU; | ||
1842 | } | ||
1843 | static inline u32 gr_fecs_dmatrfcmd_r(void) | ||
1844 | { | ||
1845 | return 0x00409118U; | ||
1846 | } | ||
1847 | static inline u32 gr_fecs_dmatrfcmd_imem_f(u32 v) | ||
1848 | { | ||
1849 | return (v & 0x1U) << 4U; | ||
1850 | } | ||
1851 | static inline u32 gr_fecs_dmatrfcmd_write_f(u32 v) | ||
1852 | { | ||
1853 | return (v & 0x1U) << 5U; | ||
1854 | } | ||
1855 | static inline u32 gr_fecs_dmatrfcmd_size_f(u32 v) | ||
1856 | { | ||
1857 | return (v & 0x7U) << 8U; | ||
1858 | } | ||
1859 | static inline u32 gr_fecs_dmatrfcmd_ctxdma_f(u32 v) | ||
1860 | { | ||
1861 | return (v & 0x7U) << 12U; | ||
1862 | } | ||
1863 | static inline u32 gr_fecs_bootvec_r(void) | ||
1864 | { | ||
1865 | return 0x00409104U; | ||
1866 | } | ||
1867 | static inline u32 gr_fecs_bootvec_vec_f(u32 v) | ||
1868 | { | ||
1869 | return (v & 0xffffffffU) << 0U; | ||
1870 | } | ||
1871 | static inline u32 gr_fecs_falcon_hwcfg_r(void) | ||
1872 | { | ||
1873 | return 0x00409108U; | ||
1874 | } | ||
1875 | static inline u32 gr_gpcs_gpccs_falcon_hwcfg_r(void) | ||
1876 | { | ||
1877 | return 0x0041a108U; | ||
1878 | } | ||
1879 | static inline u32 gr_fecs_falcon_rm_r(void) | ||
1880 | { | ||
1881 | return 0x00409084U; | ||
1882 | } | ||
1883 | static inline u32 gr_fecs_current_ctx_r(void) | ||
1884 | { | ||
1885 | return 0x00409b00U; | ||
1886 | } | ||
1887 | static inline u32 gr_fecs_current_ctx_ptr_f(u32 v) | ||
1888 | { | ||
1889 | return (v & 0xfffffffU) << 0U; | ||
1890 | } | ||
1891 | static inline u32 gr_fecs_current_ctx_ptr_v(u32 r) | ||
1892 | { | ||
1893 | return (r >> 0U) & 0xfffffffU; | ||
1894 | } | ||
1895 | static inline u32 gr_fecs_current_ctx_target_s(void) | ||
1896 | { | ||
1897 | return 2U; | ||
1898 | } | ||
1899 | static inline u32 gr_fecs_current_ctx_target_f(u32 v) | ||
1900 | { | ||
1901 | return (v & 0x3U) << 28U; | ||
1902 | } | ||
1903 | static inline u32 gr_fecs_current_ctx_target_m(void) | ||
1904 | { | ||
1905 | return 0x3U << 28U; | ||
1906 | } | ||
1907 | static inline u32 gr_fecs_current_ctx_target_v(u32 r) | ||
1908 | { | ||
1909 | return (r >> 28U) & 0x3U; | ||
1910 | } | ||
1911 | static inline u32 gr_fecs_current_ctx_target_vid_mem_f(void) | ||
1912 | { | ||
1913 | return 0x0U; | ||
1914 | } | ||
1915 | static inline u32 gr_fecs_current_ctx_target_sys_mem_coh_f(void) | ||
1916 | { | ||
1917 | return 0x20000000U; | ||
1918 | } | ||
1919 | static inline u32 gr_fecs_current_ctx_target_sys_mem_ncoh_f(void) | ||
1920 | { | ||
1921 | return 0x30000000U; | ||
1922 | } | ||
1923 | static inline u32 gr_fecs_current_ctx_valid_s(void) | ||
1924 | { | ||
1925 | return 1U; | ||
1926 | } | ||
1927 | static inline u32 gr_fecs_current_ctx_valid_f(u32 v) | ||
1928 | { | ||
1929 | return (v & 0x1U) << 31U; | ||
1930 | } | ||
1931 | static inline u32 gr_fecs_current_ctx_valid_m(void) | ||
1932 | { | ||
1933 | return 0x1U << 31U; | ||
1934 | } | ||
1935 | static inline u32 gr_fecs_current_ctx_valid_v(u32 r) | ||
1936 | { | ||
1937 | return (r >> 31U) & 0x1U; | ||
1938 | } | ||
1939 | static inline u32 gr_fecs_current_ctx_valid_false_f(void) | ||
1940 | { | ||
1941 | return 0x0U; | ||
1942 | } | ||
1943 | static inline u32 gr_fecs_method_data_r(void) | ||
1944 | { | ||
1945 | return 0x00409500U; | ||
1946 | } | ||
1947 | static inline u32 gr_fecs_method_push_r(void) | ||
1948 | { | ||
1949 | return 0x00409504U; | ||
1950 | } | ||
1951 | static inline u32 gr_fecs_method_push_adr_f(u32 v) | ||
1952 | { | ||
1953 | return (v & 0xfffU) << 0U; | ||
1954 | } | ||
1955 | static inline u32 gr_fecs_method_push_adr_bind_pointer_v(void) | ||
1956 | { | ||
1957 | return 0x00000003U; | ||
1958 | } | ||
1959 | static inline u32 gr_fecs_method_push_adr_bind_pointer_f(void) | ||
1960 | { | ||
1961 | return 0x3U; | ||
1962 | } | ||
1963 | static inline u32 gr_fecs_method_push_adr_discover_image_size_v(void) | ||
1964 | { | ||
1965 | return 0x00000010U; | ||
1966 | } | ||
1967 | static inline u32 gr_fecs_method_push_adr_wfi_golden_save_v(void) | ||
1968 | { | ||
1969 | return 0x00000009U; | ||
1970 | } | ||
1971 | static inline u32 gr_fecs_method_push_adr_restore_golden_v(void) | ||
1972 | { | ||
1973 | return 0x00000015U; | ||
1974 | } | ||
1975 | static inline u32 gr_fecs_method_push_adr_discover_zcull_image_size_v(void) | ||
1976 | { | ||
1977 | return 0x00000016U; | ||
1978 | } | ||
1979 | static inline u32 gr_fecs_method_push_adr_discover_pm_image_size_v(void) | ||
1980 | { | ||
1981 | return 0x00000025U; | ||
1982 | } | ||
1983 | static inline u32 gr_fecs_method_push_adr_discover_reglist_image_size_v(void) | ||
1984 | { | ||
1985 | return 0x00000030U; | ||
1986 | } | ||
1987 | static inline u32 gr_fecs_method_push_adr_set_reglist_bind_instance_v(void) | ||
1988 | { | ||
1989 | return 0x00000031U; | ||
1990 | } | ||
1991 | static inline u32 gr_fecs_method_push_adr_set_reglist_virtual_address_v(void) | ||
1992 | { | ||
1993 | return 0x00000032U; | ||
1994 | } | ||
1995 | static inline u32 gr_fecs_method_push_adr_stop_ctxsw_v(void) | ||
1996 | { | ||
1997 | return 0x00000038U; | ||
1998 | } | ||
1999 | static inline u32 gr_fecs_method_push_adr_start_ctxsw_v(void) | ||
2000 | { | ||
2001 | return 0x00000039U; | ||
2002 | } | ||
2003 | static inline u32 gr_fecs_method_push_adr_set_watchdog_timeout_f(void) | ||
2004 | { | ||
2005 | return 0x21U; | ||
2006 | } | ||
2007 | static inline u32 gr_fecs_method_push_adr_discover_preemption_image_size_v(void) | ||
2008 | { | ||
2009 | return 0x0000001aU; | ||
2010 | } | ||
2011 | static inline u32 gr_fecs_method_push_adr_halt_pipeline_v(void) | ||
2012 | { | ||
2013 | return 0x00000004U; | ||
2014 | } | ||
2015 | static inline u32 gr_fecs_method_push_adr_configure_interrupt_completion_option_v(void) | ||
2016 | { | ||
2017 | return 0x0000003aU; | ||
2018 | } | ||
2019 | static inline u32 gr_fecs_host_int_status_r(void) | ||
2020 | { | ||
2021 | return 0x00409c18U; | ||
2022 | } | ||
2023 | static inline u32 gr_fecs_host_int_status_fault_during_ctxsw_f(u32 v) | ||
2024 | { | ||
2025 | return (v & 0x1U) << 16U; | ||
2026 | } | ||
2027 | static inline u32 gr_fecs_host_int_status_umimp_firmware_method_f(u32 v) | ||
2028 | { | ||
2029 | return (v & 0x1U) << 17U; | ||
2030 | } | ||
2031 | static inline u32 gr_fecs_host_int_status_umimp_illegal_method_f(u32 v) | ||
2032 | { | ||
2033 | return (v & 0x1U) << 18U; | ||
2034 | } | ||
2035 | static inline u32 gr_fecs_host_int_status_watchdog_active_f(void) | ||
2036 | { | ||
2037 | return 0x80000U; | ||
2038 | } | ||
2039 | static inline u32 gr_fecs_host_int_status_ctxsw_intr_f(u32 v) | ||
2040 | { | ||
2041 | return (v & 0xffffU) << 0U; | ||
2042 | } | ||
2043 | static inline u32 gr_fecs_host_int_status_ecc_corrected_f(u32 v) | ||
2044 | { | ||
2045 | return (v & 0x1U) << 21U; | ||
2046 | } | ||
2047 | static inline u32 gr_fecs_host_int_status_ecc_corrected_m(void) | ||
2048 | { | ||
2049 | return 0x1U << 21U; | ||
2050 | } | ||
2051 | static inline u32 gr_fecs_host_int_status_ecc_uncorrected_f(u32 v) | ||
2052 | { | ||
2053 | return (v & 0x1U) << 22U; | ||
2054 | } | ||
2055 | static inline u32 gr_fecs_host_int_status_ecc_uncorrected_m(void) | ||
2056 | { | ||
2057 | return 0x1U << 22U; | ||
2058 | } | ||
2059 | static inline u32 gr_fecs_host_int_clear_r(void) | ||
2060 | { | ||
2061 | return 0x00409c20U; | ||
2062 | } | ||
2063 | static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_f(u32 v) | ||
2064 | { | ||
2065 | return (v & 0x1U) << 1U; | ||
2066 | } | ||
2067 | static inline u32 gr_fecs_host_int_clear_ctxsw_intr1_clear_f(void) | ||
2068 | { | ||
2069 | return 0x2U; | ||
2070 | } | ||
2071 | static inline u32 gr_fecs_host_int_enable_r(void) | ||
2072 | { | ||
2073 | return 0x00409c24U; | ||
2074 | } | ||
2075 | static inline u32 gr_fecs_host_int_enable_ctxsw_intr1_enable_f(void) | ||
2076 | { | ||
2077 | return 0x2U; | ||
2078 | } | ||
2079 | static inline u32 gr_fecs_host_int_enable_fault_during_ctxsw_enable_f(void) | ||
2080 | { | ||
2081 | return 0x10000U; | ||
2082 | } | ||
2083 | static inline u32 gr_fecs_host_int_enable_umimp_firmware_method_enable_f(void) | ||
2084 | { | ||
2085 | return 0x20000U; | ||
2086 | } | ||
2087 | static inline u32 gr_fecs_host_int_enable_umimp_illegal_method_enable_f(void) | ||
2088 | { | ||
2089 | return 0x40000U; | ||
2090 | } | ||
2091 | static inline u32 gr_fecs_host_int_enable_watchdog_enable_f(void) | ||
2092 | { | ||
2093 | return 0x80000U; | ||
2094 | } | ||
2095 | static inline u32 gr_fecs_host_int_enable_flush_when_busy_enable_f(void) | ||
2096 | { | ||
2097 | return 0x100000U; | ||
2098 | } | ||
2099 | static inline u32 gr_fecs_host_int_enable_ecc_corrected_enable_f(void) | ||
2100 | { | ||
2101 | return 0x200000U; | ||
2102 | } | ||
2103 | static inline u32 gr_fecs_host_int_enable_ecc_uncorrected_enable_f(void) | ||
2104 | { | ||
2105 | return 0x400000U; | ||
2106 | } | ||
2107 | static inline u32 gr_fecs_ctxsw_reset_ctl_r(void) | ||
2108 | { | ||
2109 | return 0x00409614U; | ||
2110 | } | ||
2111 | static inline u32 gr_fecs_ctxsw_reset_ctl_sys_halt_disabled_f(void) | ||
2112 | { | ||
2113 | return 0x0U; | ||
2114 | } | ||
2115 | static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_halt_disabled_f(void) | ||
2116 | { | ||
2117 | return 0x0U; | ||
2118 | } | ||
2119 | static inline u32 gr_fecs_ctxsw_reset_ctl_be_halt_disabled_f(void) | ||
2120 | { | ||
2121 | return 0x0U; | ||
2122 | } | ||
2123 | static inline u32 gr_fecs_ctxsw_reset_ctl_sys_engine_reset_disabled_f(void) | ||
2124 | { | ||
2125 | return 0x10U; | ||
2126 | } | ||
2127 | static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_engine_reset_disabled_f(void) | ||
2128 | { | ||
2129 | return 0x20U; | ||
2130 | } | ||
2131 | static inline u32 gr_fecs_ctxsw_reset_ctl_be_engine_reset_disabled_f(void) | ||
2132 | { | ||
2133 | return 0x40U; | ||
2134 | } | ||
2135 | static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_enabled_f(void) | ||
2136 | { | ||
2137 | return 0x0U; | ||
2138 | } | ||
2139 | static inline u32 gr_fecs_ctxsw_reset_ctl_sys_context_reset_disabled_f(void) | ||
2140 | { | ||
2141 | return 0x100U; | ||
2142 | } | ||
2143 | static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_enabled_f(void) | ||
2144 | { | ||
2145 | return 0x0U; | ||
2146 | } | ||
2147 | static inline u32 gr_fecs_ctxsw_reset_ctl_gpc_context_reset_disabled_f(void) | ||
2148 | { | ||
2149 | return 0x200U; | ||
2150 | } | ||
2151 | static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_s(void) | ||
2152 | { | ||
2153 | return 1U; | ||
2154 | } | ||
2155 | static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_f(u32 v) | ||
2156 | { | ||
2157 | return (v & 0x1U) << 10U; | ||
2158 | } | ||
2159 | static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_m(void) | ||
2160 | { | ||
2161 | return 0x1U << 10U; | ||
2162 | } | ||
2163 | static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_v(u32 r) | ||
2164 | { | ||
2165 | return (r >> 10U) & 0x1U; | ||
2166 | } | ||
2167 | static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_enabled_f(void) | ||
2168 | { | ||
2169 | return 0x0U; | ||
2170 | } | ||
2171 | static inline u32 gr_fecs_ctxsw_reset_ctl_be_context_reset_disabled_f(void) | ||
2172 | { | ||
2173 | return 0x400U; | ||
2174 | } | ||
2175 | static inline u32 gr_fecs_ctx_state_store_major_rev_id_r(void) | ||
2176 | { | ||
2177 | return 0x0040960cU; | ||
2178 | } | ||
2179 | static inline u32 gr_fecs_ctxsw_mailbox_r(u32 i) | ||
2180 | { | ||
2181 | return 0x00409800U + i*4U; | ||
2182 | } | ||
2183 | static inline u32 gr_fecs_ctxsw_mailbox__size_1_v(void) | ||
2184 | { | ||
2185 | return 0x00000010U; | ||
2186 | } | ||
2187 | static inline u32 gr_fecs_ctxsw_mailbox_value_f(u32 v) | ||
2188 | { | ||
2189 | return (v & 0xffffffffU) << 0U; | ||
2190 | } | ||
2191 | static inline u32 gr_fecs_ctxsw_mailbox_value_pass_v(void) | ||
2192 | { | ||
2193 | return 0x00000001U; | ||
2194 | } | ||
2195 | static inline u32 gr_fecs_ctxsw_mailbox_value_fail_v(void) | ||
2196 | { | ||
2197 | return 0x00000002U; | ||
2198 | } | ||
2199 | static inline u32 gr_fecs_ctxsw_mailbox_set_r(u32 i) | ||
2200 | { | ||
2201 | return 0x004098c0U + i*4U; | ||
2202 | } | ||
2203 | static inline u32 gr_fecs_ctxsw_mailbox_set_value_f(u32 v) | ||
2204 | { | ||
2205 | return (v & 0xffffffffU) << 0U; | ||
2206 | } | ||
2207 | static inline u32 gr_fecs_ctxsw_mailbox_clear_r(u32 i) | ||
2208 | { | ||
2209 | return 0x00409840U + i*4U; | ||
2210 | } | ||
2211 | static inline u32 gr_fecs_ctxsw_mailbox_clear_value_f(u32 v) | ||
2212 | { | ||
2213 | return (v & 0xffffffffU) << 0U; | ||
2214 | } | ||
2215 | static inline u32 gr_fecs_fs_r(void) | ||
2216 | { | ||
2217 | return 0x00409604U; | ||
2218 | } | ||
2219 | static inline u32 gr_fecs_fs_num_available_gpcs_s(void) | ||
2220 | { | ||
2221 | return 5U; | ||
2222 | } | ||
2223 | static inline u32 gr_fecs_fs_num_available_gpcs_f(u32 v) | ||
2224 | { | ||
2225 | return (v & 0x1fU) << 0U; | ||
2226 | } | ||
2227 | static inline u32 gr_fecs_fs_num_available_gpcs_m(void) | ||
2228 | { | ||
2229 | return 0x1fU << 0U; | ||
2230 | } | ||
2231 | static inline u32 gr_fecs_fs_num_available_gpcs_v(u32 r) | ||
2232 | { | ||
2233 | return (r >> 0U) & 0x1fU; | ||
2234 | } | ||
2235 | static inline u32 gr_fecs_fs_num_available_fbps_s(void) | ||
2236 | { | ||
2237 | return 5U; | ||
2238 | } | ||
2239 | static inline u32 gr_fecs_fs_num_available_fbps_f(u32 v) | ||
2240 | { | ||
2241 | return (v & 0x1fU) << 16U; | ||
2242 | } | ||
2243 | static inline u32 gr_fecs_fs_num_available_fbps_m(void) | ||
2244 | { | ||
2245 | return 0x1fU << 16U; | ||
2246 | } | ||
2247 | static inline u32 gr_fecs_fs_num_available_fbps_v(u32 r) | ||
2248 | { | ||
2249 | return (r >> 16U) & 0x1fU; | ||
2250 | } | ||
2251 | static inline u32 gr_fecs_cfg_r(void) | ||
2252 | { | ||
2253 | return 0x00409620U; | ||
2254 | } | ||
2255 | static inline u32 gr_fecs_cfg_imem_sz_v(u32 r) | ||
2256 | { | ||
2257 | return (r >> 0U) & 0xffU; | ||
2258 | } | ||
2259 | static inline u32 gr_fecs_rc_lanes_r(void) | ||
2260 | { | ||
2261 | return 0x00409880U; | ||
2262 | } | ||
2263 | static inline u32 gr_fecs_rc_lanes_num_chains_s(void) | ||
2264 | { | ||
2265 | return 6U; | ||
2266 | } | ||
2267 | static inline u32 gr_fecs_rc_lanes_num_chains_f(u32 v) | ||
2268 | { | ||
2269 | return (v & 0x3fU) << 0U; | ||
2270 | } | ||
2271 | static inline u32 gr_fecs_rc_lanes_num_chains_m(void) | ||
2272 | { | ||
2273 | return 0x3fU << 0U; | ||
2274 | } | ||
2275 | static inline u32 gr_fecs_rc_lanes_num_chains_v(u32 r) | ||
2276 | { | ||
2277 | return (r >> 0U) & 0x3fU; | ||
2278 | } | ||
2279 | static inline u32 gr_fecs_ctxsw_status_1_r(void) | ||
2280 | { | ||
2281 | return 0x00409400U; | ||
2282 | } | ||
2283 | static inline u32 gr_fecs_ctxsw_status_1_arb_busy_s(void) | ||
2284 | { | ||
2285 | return 1U; | ||
2286 | } | ||
2287 | static inline u32 gr_fecs_ctxsw_status_1_arb_busy_f(u32 v) | ||
2288 | { | ||
2289 | return (v & 0x1U) << 12U; | ||
2290 | } | ||
2291 | static inline u32 gr_fecs_ctxsw_status_1_arb_busy_m(void) | ||
2292 | { | ||
2293 | return 0x1U << 12U; | ||
2294 | } | ||
2295 | static inline u32 gr_fecs_ctxsw_status_1_arb_busy_v(u32 r) | ||
2296 | { | ||
2297 | return (r >> 12U) & 0x1U; | ||
2298 | } | ||
2299 | static inline u32 gr_fecs_arb_ctx_adr_r(void) | ||
2300 | { | ||
2301 | return 0x00409a24U; | ||
2302 | } | ||
2303 | static inline u32 gr_fecs_new_ctx_r(void) | ||
2304 | { | ||
2305 | return 0x00409b04U; | ||
2306 | } | ||
2307 | static inline u32 gr_fecs_new_ctx_ptr_s(void) | ||
2308 | { | ||
2309 | return 28U; | ||
2310 | } | ||
2311 | static inline u32 gr_fecs_new_ctx_ptr_f(u32 v) | ||
2312 | { | ||
2313 | return (v & 0xfffffffU) << 0U; | ||
2314 | } | ||
2315 | static inline u32 gr_fecs_new_ctx_ptr_m(void) | ||
2316 | { | ||
2317 | return 0xfffffffU << 0U; | ||
2318 | } | ||
2319 | static inline u32 gr_fecs_new_ctx_ptr_v(u32 r) | ||
2320 | { | ||
2321 | return (r >> 0U) & 0xfffffffU; | ||
2322 | } | ||
2323 | static inline u32 gr_fecs_new_ctx_target_s(void) | ||
2324 | { | ||
2325 | return 2U; | ||
2326 | } | ||
2327 | static inline u32 gr_fecs_new_ctx_target_f(u32 v) | ||
2328 | { | ||
2329 | return (v & 0x3U) << 28U; | ||
2330 | } | ||
2331 | static inline u32 gr_fecs_new_ctx_target_m(void) | ||
2332 | { | ||
2333 | return 0x3U << 28U; | ||
2334 | } | ||
2335 | static inline u32 gr_fecs_new_ctx_target_v(u32 r) | ||
2336 | { | ||
2337 | return (r >> 28U) & 0x3U; | ||
2338 | } | ||
2339 | static inline u32 gr_fecs_new_ctx_valid_s(void) | ||
2340 | { | ||
2341 | return 1U; | ||
2342 | } | ||
2343 | static inline u32 gr_fecs_new_ctx_valid_f(u32 v) | ||
2344 | { | ||
2345 | return (v & 0x1U) << 31U; | ||
2346 | } | ||
2347 | static inline u32 gr_fecs_new_ctx_valid_m(void) | ||
2348 | { | ||
2349 | return 0x1U << 31U; | ||
2350 | } | ||
2351 | static inline u32 gr_fecs_new_ctx_valid_v(u32 r) | ||
2352 | { | ||
2353 | return (r >> 31U) & 0x1U; | ||
2354 | } | ||
2355 | static inline u32 gr_fecs_arb_ctx_ptr_r(void) | ||
2356 | { | ||
2357 | return 0x00409a0cU; | ||
2358 | } | ||
2359 | static inline u32 gr_fecs_arb_ctx_ptr_ptr_s(void) | ||
2360 | { | ||
2361 | return 28U; | ||
2362 | } | ||
2363 | static inline u32 gr_fecs_arb_ctx_ptr_ptr_f(u32 v) | ||
2364 | { | ||
2365 | return (v & 0xfffffffU) << 0U; | ||
2366 | } | ||
2367 | static inline u32 gr_fecs_arb_ctx_ptr_ptr_m(void) | ||
2368 | { | ||
2369 | return 0xfffffffU << 0U; | ||
2370 | } | ||
2371 | static inline u32 gr_fecs_arb_ctx_ptr_ptr_v(u32 r) | ||
2372 | { | ||
2373 | return (r >> 0U) & 0xfffffffU; | ||
2374 | } | ||
2375 | static inline u32 gr_fecs_arb_ctx_ptr_target_s(void) | ||
2376 | { | ||
2377 | return 2U; | ||
2378 | } | ||
2379 | static inline u32 gr_fecs_arb_ctx_ptr_target_f(u32 v) | ||
2380 | { | ||
2381 | return (v & 0x3U) << 28U; | ||
2382 | } | ||
2383 | static inline u32 gr_fecs_arb_ctx_ptr_target_m(void) | ||
2384 | { | ||
2385 | return 0x3U << 28U; | ||
2386 | } | ||
2387 | static inline u32 gr_fecs_arb_ctx_ptr_target_v(u32 r) | ||
2388 | { | ||
2389 | return (r >> 28U) & 0x3U; | ||
2390 | } | ||
2391 | static inline u32 gr_fecs_arb_ctx_cmd_r(void) | ||
2392 | { | ||
2393 | return 0x00409a10U; | ||
2394 | } | ||
2395 | static inline u32 gr_fecs_arb_ctx_cmd_cmd_s(void) | ||
2396 | { | ||
2397 | return 5U; | ||
2398 | } | ||
2399 | static inline u32 gr_fecs_arb_ctx_cmd_cmd_f(u32 v) | ||
2400 | { | ||
2401 | return (v & 0x1fU) << 0U; | ||
2402 | } | ||
2403 | static inline u32 gr_fecs_arb_ctx_cmd_cmd_m(void) | ||
2404 | { | ||
2405 | return 0x1fU << 0U; | ||
2406 | } | ||
2407 | static inline u32 gr_fecs_arb_ctx_cmd_cmd_v(u32 r) | ||
2408 | { | ||
2409 | return (r >> 0U) & 0x1fU; | ||
2410 | } | ||
2411 | static inline u32 gr_fecs_ctxsw_status_fe_0_r(void) | ||
2412 | { | ||
2413 | return 0x00409c00U; | ||
2414 | } | ||
2415 | static inline u32 gr_gpc0_gpccs_ctxsw_status_gpc_0_r(void) | ||
2416 | { | ||
2417 | return 0x00502c04U; | ||
2418 | } | ||
2419 | static inline u32 gr_gpc0_gpccs_ctxsw_status_1_r(void) | ||
2420 | { | ||
2421 | return 0x00502400U; | ||
2422 | } | ||
2423 | static inline u32 gr_gpc0_gpccs_ctxsw_mailbox__size_1_v(void) | ||
2424 | { | ||
2425 | return 0x00000010U; | ||
2426 | } | ||
2427 | static inline u32 gr_fecs_ctxsw_idlestate_r(void) | ||
2428 | { | ||
2429 | return 0x00409420U; | ||
2430 | } | ||
2431 | static inline u32 gr_fecs_feature_override_ecc_r(void) | ||
2432 | { | ||
2433 | return 0x00409658U; | ||
2434 | } | ||
2435 | static inline u32 gr_fecs_feature_override_ecc_sm_lrf_v(u32 r) | ||
2436 | { | ||
2437 | return (r >> 0U) & 0x1U; | ||
2438 | } | ||
2439 | static inline u32 gr_fecs_feature_override_ecc_sm_lrf_override_v(u32 r) | ||
2440 | { | ||
2441 | return (r >> 3U) & 0x1U; | ||
2442 | } | ||
2443 | static inline u32 gr_fecs_feature_override_ecc_sm_l1_data_v(u32 r) | ||
2444 | { | ||
2445 | return (r >> 4U) & 0x1U; | ||
2446 | } | ||
2447 | static inline u32 gr_fecs_feature_override_ecc_sm_l1_data_override_v(u32 r) | ||
2448 | { | ||
2449 | return (r >> 7U) & 0x1U; | ||
2450 | } | ||
2451 | static inline u32 gr_fecs_feature_override_ecc_sm_l1_tag_v(u32 r) | ||
2452 | { | ||
2453 | return (r >> 8U) & 0x1U; | ||
2454 | } | ||
2455 | static inline u32 gr_fecs_feature_override_ecc_sm_l1_tag_override_v(u32 r) | ||
2456 | { | ||
2457 | return (r >> 11U) & 0x1U; | ||
2458 | } | ||
2459 | static inline u32 gr_fecs_feature_override_ecc_ltc_v(u32 r) | ||
2460 | { | ||
2461 | return (r >> 12U) & 0x1U; | ||
2462 | } | ||
2463 | static inline u32 gr_fecs_feature_override_ecc_ltc_override_v(u32 r) | ||
2464 | { | ||
2465 | return (r >> 15U) & 0x1U; | ||
2466 | } | ||
2467 | static inline u32 gr_fecs_feature_override_ecc_sm_cbu_v(u32 r) | ||
2468 | { | ||
2469 | return (r >> 20U) & 0x1U; | ||
2470 | } | ||
2471 | static inline u32 gr_fecs_feature_override_ecc_sm_cbu_override_v(u32 r) | ||
2472 | { | ||
2473 | return (r >> 23U) & 0x1U; | ||
2474 | } | ||
2475 | static inline u32 gr_fecs_feature_override_ecc_1_r(void) | ||
2476 | { | ||
2477 | return 0x0040965cU; | ||
2478 | } | ||
2479 | static inline u32 gr_fecs_feature_override_ecc_1_sm_l0_icache_v(u32 r) | ||
2480 | { | ||
2481 | return (r >> 0U) & 0x1U; | ||
2482 | } | ||
2483 | static inline u32 gr_fecs_feature_override_ecc_1_sm_l0_icache_override_v(u32 r) | ||
2484 | { | ||
2485 | return (r >> 1U) & 0x1U; | ||
2486 | } | ||
2487 | static inline u32 gr_fecs_feature_override_ecc_1_sm_l1_icache_v(u32 r) | ||
2488 | { | ||
2489 | return (r >> 2U) & 0x1U; | ||
2490 | } | ||
2491 | static inline u32 gr_fecs_feature_override_ecc_1_sm_l1_icache_override_v(u32 r) | ||
2492 | { | ||
2493 | return (r >> 3U) & 0x1U; | ||
2494 | } | ||
2495 | static inline u32 gr_gpc0_gpccs_ctxsw_idlestate_r(void) | ||
2496 | { | ||
2497 | return 0x00502420U; | ||
2498 | } | ||
2499 | static inline u32 gr_rstr2d_gpc_map_r(u32 i) | ||
2500 | { | ||
2501 | return 0x0040780cU + i*4U; | ||
2502 | } | ||
2503 | static inline u32 gr_rstr2d_map_table_cfg_r(void) | ||
2504 | { | ||
2505 | return 0x004078bcU; | ||
2506 | } | ||
2507 | static inline u32 gr_rstr2d_map_table_cfg_row_offset_f(u32 v) | ||
2508 | { | ||
2509 | return (v & 0xffU) << 0U; | ||
2510 | } | ||
2511 | static inline u32 gr_rstr2d_map_table_cfg_num_entries_f(u32 v) | ||
2512 | { | ||
2513 | return (v & 0xffU) << 8U; | ||
2514 | } | ||
2515 | static inline u32 gr_pd_hww_esr_r(void) | ||
2516 | { | ||
2517 | return 0x00406018U; | ||
2518 | } | ||
2519 | static inline u32 gr_pd_hww_esr_reset_active_f(void) | ||
2520 | { | ||
2521 | return 0x40000000U; | ||
2522 | } | ||
2523 | static inline u32 gr_pd_hww_esr_en_enable_f(void) | ||
2524 | { | ||
2525 | return 0x80000000U; | ||
2526 | } | ||
2527 | static inline u32 gr_pd_num_tpc_per_gpc_r(u32 i) | ||
2528 | { | ||
2529 | return 0x00406028U + i*4U; | ||
2530 | } | ||
2531 | static inline u32 gr_pd_num_tpc_per_gpc__size_1_v(void) | ||
2532 | { | ||
2533 | return 0x00000004U; | ||
2534 | } | ||
2535 | static inline u32 gr_pd_num_tpc_per_gpc_count0_f(u32 v) | ||
2536 | { | ||
2537 | return (v & 0xfU) << 0U; | ||
2538 | } | ||
2539 | static inline u32 gr_pd_num_tpc_per_gpc_count1_f(u32 v) | ||
2540 | { | ||
2541 | return (v & 0xfU) << 4U; | ||
2542 | } | ||
2543 | static inline u32 gr_pd_num_tpc_per_gpc_count2_f(u32 v) | ||
2544 | { | ||
2545 | return (v & 0xfU) << 8U; | ||
2546 | } | ||
2547 | static inline u32 gr_pd_num_tpc_per_gpc_count3_f(u32 v) | ||
2548 | { | ||
2549 | return (v & 0xfU) << 12U; | ||
2550 | } | ||
2551 | static inline u32 gr_pd_num_tpc_per_gpc_count4_f(u32 v) | ||
2552 | { | ||
2553 | return (v & 0xfU) << 16U; | ||
2554 | } | ||
2555 | static inline u32 gr_pd_num_tpc_per_gpc_count5_f(u32 v) | ||
2556 | { | ||
2557 | return (v & 0xfU) << 20U; | ||
2558 | } | ||
2559 | static inline u32 gr_pd_num_tpc_per_gpc_count6_f(u32 v) | ||
2560 | { | ||
2561 | return (v & 0xfU) << 24U; | ||
2562 | } | ||
2563 | static inline u32 gr_pd_num_tpc_per_gpc_count7_f(u32 v) | ||
2564 | { | ||
2565 | return (v & 0xfU) << 28U; | ||
2566 | } | ||
2567 | static inline u32 gr_pd_ab_dist_cfg0_r(void) | ||
2568 | { | ||
2569 | return 0x004064c0U; | ||
2570 | } | ||
2571 | static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_en_f(void) | ||
2572 | { | ||
2573 | return 0x80000000U; | ||
2574 | } | ||
2575 | static inline u32 gr_pd_ab_dist_cfg0_timeslice_enable_dis_f(void) | ||
2576 | { | ||
2577 | return 0x0U; | ||
2578 | } | ||
2579 | static inline u32 gr_pd_ab_dist_cfg1_r(void) | ||
2580 | { | ||
2581 | return 0x004064c4U; | ||
2582 | } | ||
2583 | static inline u32 gr_pd_ab_dist_cfg1_max_batches_init_f(void) | ||
2584 | { | ||
2585 | return 0xffffU; | ||
2586 | } | ||
2587 | static inline u32 gr_pd_ab_dist_cfg1_max_output_f(u32 v) | ||
2588 | { | ||
2589 | return (v & 0xffffU) << 16U; | ||
2590 | } | ||
2591 | static inline u32 gr_pd_ab_dist_cfg1_max_output_granularity_v(void) | ||
2592 | { | ||
2593 | return 0x00000080U; | ||
2594 | } | ||
2595 | static inline u32 gr_pd_ab_dist_cfg2_r(void) | ||
2596 | { | ||
2597 | return 0x004064c8U; | ||
2598 | } | ||
2599 | static inline u32 gr_pd_ab_dist_cfg2_token_limit_f(u32 v) | ||
2600 | { | ||
2601 | return (v & 0x1fffU) << 0U; | ||
2602 | } | ||
2603 | static inline u32 gr_pd_ab_dist_cfg2_token_limit_init_v(void) | ||
2604 | { | ||
2605 | return 0x00000380U; | ||
2606 | } | ||
2607 | static inline u32 gr_pd_ab_dist_cfg2_state_limit_f(u32 v) | ||
2608 | { | ||
2609 | return (v & 0x1fffU) << 16U; | ||
2610 | } | ||
2611 | static inline u32 gr_pd_ab_dist_cfg2_state_limit_scc_bundle_granularity_v(void) | ||
2612 | { | ||
2613 | return 0x00000020U; | ||
2614 | } | ||
2615 | static inline u32 gr_pd_ab_dist_cfg2_state_limit_min_gpm_fifo_depths_v(void) | ||
2616 | { | ||
2617 | return 0x00000302U; | ||
2618 | } | ||
2619 | static inline u32 gr_pd_dist_skip_table_r(u32 i) | ||
2620 | { | ||
2621 | return 0x004064d0U + i*4U; | ||
2622 | } | ||
2623 | static inline u32 gr_pd_dist_skip_table__size_1_v(void) | ||
2624 | { | ||
2625 | return 0x00000008U; | ||
2626 | } | ||
2627 | static inline u32 gr_pd_dist_skip_table_gpc_4n0_mask_f(u32 v) | ||
2628 | { | ||
2629 | return (v & 0xffU) << 0U; | ||
2630 | } | ||
2631 | static inline u32 gr_pd_dist_skip_table_gpc_4n1_mask_f(u32 v) | ||
2632 | { | ||
2633 | return (v & 0xffU) << 8U; | ||
2634 | } | ||
2635 | static inline u32 gr_pd_dist_skip_table_gpc_4n2_mask_f(u32 v) | ||
2636 | { | ||
2637 | return (v & 0xffU) << 16U; | ||
2638 | } | ||
2639 | static inline u32 gr_pd_dist_skip_table_gpc_4n3_mask_f(u32 v) | ||
2640 | { | ||
2641 | return (v & 0xffU) << 24U; | ||
2642 | } | ||
2643 | static inline u32 gr_ds_debug_r(void) | ||
2644 | { | ||
2645 | return 0x00405800U; | ||
2646 | } | ||
2647 | static inline u32 gr_ds_debug_timeslice_mode_disable_f(void) | ||
2648 | { | ||
2649 | return 0x0U; | ||
2650 | } | ||
2651 | static inline u32 gr_ds_debug_timeslice_mode_enable_f(void) | ||
2652 | { | ||
2653 | return 0x8000000U; | ||
2654 | } | ||
2655 | static inline u32 gr_ds_zbc_color_r_r(void) | ||
2656 | { | ||
2657 | return 0x00405804U; | ||
2658 | } | ||
2659 | static inline u32 gr_ds_zbc_color_r_val_f(u32 v) | ||
2660 | { | ||
2661 | return (v & 0xffffffffU) << 0U; | ||
2662 | } | ||
2663 | static inline u32 gr_ds_zbc_color_g_r(void) | ||
2664 | { | ||
2665 | return 0x00405808U; | ||
2666 | } | ||
2667 | static inline u32 gr_ds_zbc_color_g_val_f(u32 v) | ||
2668 | { | ||
2669 | return (v & 0xffffffffU) << 0U; | ||
2670 | } | ||
2671 | static inline u32 gr_ds_zbc_color_b_r(void) | ||
2672 | { | ||
2673 | return 0x0040580cU; | ||
2674 | } | ||
2675 | static inline u32 gr_ds_zbc_color_b_val_f(u32 v) | ||
2676 | { | ||
2677 | return (v & 0xffffffffU) << 0U; | ||
2678 | } | ||
2679 | static inline u32 gr_ds_zbc_color_a_r(void) | ||
2680 | { | ||
2681 | return 0x00405810U; | ||
2682 | } | ||
2683 | static inline u32 gr_ds_zbc_color_a_val_f(u32 v) | ||
2684 | { | ||
2685 | return (v & 0xffffffffU) << 0U; | ||
2686 | } | ||
2687 | static inline u32 gr_ds_zbc_color_fmt_r(void) | ||
2688 | { | ||
2689 | return 0x00405814U; | ||
2690 | } | ||
2691 | static inline u32 gr_ds_zbc_color_fmt_val_f(u32 v) | ||
2692 | { | ||
2693 | return (v & 0x7fU) << 0U; | ||
2694 | } | ||
2695 | static inline u32 gr_ds_zbc_color_fmt_val_invalid_f(void) | ||
2696 | { | ||
2697 | return 0x0U; | ||
2698 | } | ||
2699 | static inline u32 gr_ds_zbc_color_fmt_val_zero_v(void) | ||
2700 | { | ||
2701 | return 0x00000001U; | ||
2702 | } | ||
2703 | static inline u32 gr_ds_zbc_color_fmt_val_unorm_one_v(void) | ||
2704 | { | ||
2705 | return 0x00000002U; | ||
2706 | } | ||
2707 | static inline u32 gr_ds_zbc_color_fmt_val_rf32_gf32_bf32_af32_v(void) | ||
2708 | { | ||
2709 | return 0x00000004U; | ||
2710 | } | ||
2711 | static inline u32 gr_ds_zbc_color_fmt_val_a8_b8_g8_r8_v(void) | ||
2712 | { | ||
2713 | return 0x00000028U; | ||
2714 | } | ||
2715 | static inline u32 gr_ds_zbc_z_r(void) | ||
2716 | { | ||
2717 | return 0x00405818U; | ||
2718 | } | ||
2719 | static inline u32 gr_ds_zbc_z_val_s(void) | ||
2720 | { | ||
2721 | return 32U; | ||
2722 | } | ||
2723 | static inline u32 gr_ds_zbc_z_val_f(u32 v) | ||
2724 | { | ||
2725 | return (v & 0xffffffffU) << 0U; | ||
2726 | } | ||
2727 | static inline u32 gr_ds_zbc_z_val_m(void) | ||
2728 | { | ||
2729 | return 0xffffffffU << 0U; | ||
2730 | } | ||
2731 | static inline u32 gr_ds_zbc_z_val_v(u32 r) | ||
2732 | { | ||
2733 | return (r >> 0U) & 0xffffffffU; | ||
2734 | } | ||
2735 | static inline u32 gr_ds_zbc_z_val__init_v(void) | ||
2736 | { | ||
2737 | return 0x00000000U; | ||
2738 | } | ||
2739 | static inline u32 gr_ds_zbc_z_val__init_f(void) | ||
2740 | { | ||
2741 | return 0x0U; | ||
2742 | } | ||
2743 | static inline u32 gr_ds_zbc_z_fmt_r(void) | ||
2744 | { | ||
2745 | return 0x0040581cU; | ||
2746 | } | ||
2747 | static inline u32 gr_ds_zbc_z_fmt_val_f(u32 v) | ||
2748 | { | ||
2749 | return (v & 0x1U) << 0U; | ||
2750 | } | ||
2751 | static inline u32 gr_ds_zbc_z_fmt_val_invalid_f(void) | ||
2752 | { | ||
2753 | return 0x0U; | ||
2754 | } | ||
2755 | static inline u32 gr_ds_zbc_z_fmt_val_fp32_v(void) | ||
2756 | { | ||
2757 | return 0x00000001U; | ||
2758 | } | ||
2759 | static inline u32 gr_ds_zbc_tbl_index_r(void) | ||
2760 | { | ||
2761 | return 0x00405820U; | ||
2762 | } | ||
2763 | static inline u32 gr_ds_zbc_tbl_index_val_f(u32 v) | ||
2764 | { | ||
2765 | return (v & 0xfU) << 0U; | ||
2766 | } | ||
2767 | static inline u32 gr_ds_zbc_tbl_ld_r(void) | ||
2768 | { | ||
2769 | return 0x00405824U; | ||
2770 | } | ||
2771 | static inline u32 gr_ds_zbc_tbl_ld_select_c_f(void) | ||
2772 | { | ||
2773 | return 0x0U; | ||
2774 | } | ||
2775 | static inline u32 gr_ds_zbc_tbl_ld_select_z_f(void) | ||
2776 | { | ||
2777 | return 0x1U; | ||
2778 | } | ||
2779 | static inline u32 gr_ds_zbc_tbl_ld_action_write_f(void) | ||
2780 | { | ||
2781 | return 0x0U; | ||
2782 | } | ||
2783 | static inline u32 gr_ds_zbc_tbl_ld_trigger_active_f(void) | ||
2784 | { | ||
2785 | return 0x4U; | ||
2786 | } | ||
2787 | static inline u32 gr_ds_tga_constraintlogic_beta_r(void) | ||
2788 | { | ||
2789 | return 0x00405830U; | ||
2790 | } | ||
2791 | static inline u32 gr_ds_tga_constraintlogic_beta_cbsize_f(u32 v) | ||
2792 | { | ||
2793 | return (v & 0x3fffffU) << 0U; | ||
2794 | } | ||
2795 | static inline u32 gr_ds_tga_constraintlogic_alpha_r(void) | ||
2796 | { | ||
2797 | return 0x0040585cU; | ||
2798 | } | ||
2799 | static inline u32 gr_ds_tga_constraintlogic_alpha_cbsize_f(u32 v) | ||
2800 | { | ||
2801 | return (v & 0xffffU) << 0U; | ||
2802 | } | ||
2803 | static inline u32 gr_ds_hww_esr_r(void) | ||
2804 | { | ||
2805 | return 0x00405840U; | ||
2806 | } | ||
2807 | static inline u32 gr_ds_hww_esr_reset_s(void) | ||
2808 | { | ||
2809 | return 1U; | ||
2810 | } | ||
2811 | static inline u32 gr_ds_hww_esr_reset_f(u32 v) | ||
2812 | { | ||
2813 | return (v & 0x1U) << 30U; | ||
2814 | } | ||
2815 | static inline u32 gr_ds_hww_esr_reset_m(void) | ||
2816 | { | ||
2817 | return 0x1U << 30U; | ||
2818 | } | ||
2819 | static inline u32 gr_ds_hww_esr_reset_v(u32 r) | ||
2820 | { | ||
2821 | return (r >> 30U) & 0x1U; | ||
2822 | } | ||
2823 | static inline u32 gr_ds_hww_esr_reset_task_v(void) | ||
2824 | { | ||
2825 | return 0x00000001U; | ||
2826 | } | ||
2827 | static inline u32 gr_ds_hww_esr_reset_task_f(void) | ||
2828 | { | ||
2829 | return 0x40000000U; | ||
2830 | } | ||
2831 | static inline u32 gr_ds_hww_esr_en_enabled_f(void) | ||
2832 | { | ||
2833 | return 0x80000000U; | ||
2834 | } | ||
2835 | static inline u32 gr_ds_hww_esr_2_r(void) | ||
2836 | { | ||
2837 | return 0x00405848U; | ||
2838 | } | ||
2839 | static inline u32 gr_ds_hww_esr_2_reset_s(void) | ||
2840 | { | ||
2841 | return 1U; | ||
2842 | } | ||
2843 | static inline u32 gr_ds_hww_esr_2_reset_f(u32 v) | ||
2844 | { | ||
2845 | return (v & 0x1U) << 30U; | ||
2846 | } | ||
2847 | static inline u32 gr_ds_hww_esr_2_reset_m(void) | ||
2848 | { | ||
2849 | return 0x1U << 30U; | ||
2850 | } | ||
2851 | static inline u32 gr_ds_hww_esr_2_reset_v(u32 r) | ||
2852 | { | ||
2853 | return (r >> 30U) & 0x1U; | ||
2854 | } | ||
2855 | static inline u32 gr_ds_hww_esr_2_reset_task_v(void) | ||
2856 | { | ||
2857 | return 0x00000001U; | ||
2858 | } | ||
2859 | static inline u32 gr_ds_hww_esr_2_reset_task_f(void) | ||
2860 | { | ||
2861 | return 0x40000000U; | ||
2862 | } | ||
2863 | static inline u32 gr_ds_hww_esr_2_en_enabled_f(void) | ||
2864 | { | ||
2865 | return 0x80000000U; | ||
2866 | } | ||
2867 | static inline u32 gr_ds_hww_report_mask_r(void) | ||
2868 | { | ||
2869 | return 0x00405844U; | ||
2870 | } | ||
2871 | static inline u32 gr_ds_hww_report_mask_sph0_err_report_f(void) | ||
2872 | { | ||
2873 | return 0x1U; | ||
2874 | } | ||
2875 | static inline u32 gr_ds_hww_report_mask_sph1_err_report_f(void) | ||
2876 | { | ||
2877 | return 0x2U; | ||
2878 | } | ||
2879 | static inline u32 gr_ds_hww_report_mask_sph2_err_report_f(void) | ||
2880 | { | ||
2881 | return 0x4U; | ||
2882 | } | ||
2883 | static inline u32 gr_ds_hww_report_mask_sph3_err_report_f(void) | ||
2884 | { | ||
2885 | return 0x8U; | ||
2886 | } | ||
2887 | static inline u32 gr_ds_hww_report_mask_sph4_err_report_f(void) | ||
2888 | { | ||
2889 | return 0x10U; | ||
2890 | } | ||
2891 | static inline u32 gr_ds_hww_report_mask_sph5_err_report_f(void) | ||
2892 | { | ||
2893 | return 0x20U; | ||
2894 | } | ||
2895 | static inline u32 gr_ds_hww_report_mask_sph6_err_report_f(void) | ||
2896 | { | ||
2897 | return 0x40U; | ||
2898 | } | ||
2899 | static inline u32 gr_ds_hww_report_mask_sph7_err_report_f(void) | ||
2900 | { | ||
2901 | return 0x80U; | ||
2902 | } | ||
2903 | static inline u32 gr_ds_hww_report_mask_sph8_err_report_f(void) | ||
2904 | { | ||
2905 | return 0x100U; | ||
2906 | } | ||
2907 | static inline u32 gr_ds_hww_report_mask_sph9_err_report_f(void) | ||
2908 | { | ||
2909 | return 0x200U; | ||
2910 | } | ||
2911 | static inline u32 gr_ds_hww_report_mask_sph10_err_report_f(void) | ||
2912 | { | ||
2913 | return 0x400U; | ||
2914 | } | ||
2915 | static inline u32 gr_ds_hww_report_mask_sph11_err_report_f(void) | ||
2916 | { | ||
2917 | return 0x800U; | ||
2918 | } | ||
2919 | static inline u32 gr_ds_hww_report_mask_sph12_err_report_f(void) | ||
2920 | { | ||
2921 | return 0x1000U; | ||
2922 | } | ||
2923 | static inline u32 gr_ds_hww_report_mask_sph13_err_report_f(void) | ||
2924 | { | ||
2925 | return 0x2000U; | ||
2926 | } | ||
2927 | static inline u32 gr_ds_hww_report_mask_sph14_err_report_f(void) | ||
2928 | { | ||
2929 | return 0x4000U; | ||
2930 | } | ||
2931 | static inline u32 gr_ds_hww_report_mask_sph15_err_report_f(void) | ||
2932 | { | ||
2933 | return 0x8000U; | ||
2934 | } | ||
2935 | static inline u32 gr_ds_hww_report_mask_sph16_err_report_f(void) | ||
2936 | { | ||
2937 | return 0x10000U; | ||
2938 | } | ||
2939 | static inline u32 gr_ds_hww_report_mask_sph17_err_report_f(void) | ||
2940 | { | ||
2941 | return 0x20000U; | ||
2942 | } | ||
2943 | static inline u32 gr_ds_hww_report_mask_sph18_err_report_f(void) | ||
2944 | { | ||
2945 | return 0x40000U; | ||
2946 | } | ||
2947 | static inline u32 gr_ds_hww_report_mask_sph19_err_report_f(void) | ||
2948 | { | ||
2949 | return 0x80000U; | ||
2950 | } | ||
2951 | static inline u32 gr_ds_hww_report_mask_sph20_err_report_f(void) | ||
2952 | { | ||
2953 | return 0x100000U; | ||
2954 | } | ||
2955 | static inline u32 gr_ds_hww_report_mask_sph21_err_report_f(void) | ||
2956 | { | ||
2957 | return 0x200000U; | ||
2958 | } | ||
2959 | static inline u32 gr_ds_hww_report_mask_sph22_err_report_f(void) | ||
2960 | { | ||
2961 | return 0x400000U; | ||
2962 | } | ||
2963 | static inline u32 gr_ds_hww_report_mask_sph23_err_report_f(void) | ||
2964 | { | ||
2965 | return 0x800000U; | ||
2966 | } | ||
2967 | static inline u32 gr_ds_hww_report_mask_2_r(void) | ||
2968 | { | ||
2969 | return 0x0040584cU; | ||
2970 | } | ||
2971 | static inline u32 gr_ds_hww_report_mask_2_sph24_err_report_f(void) | ||
2972 | { | ||
2973 | return 0x1U; | ||
2974 | } | ||
2975 | static inline u32 gr_ds_num_tpc_per_gpc_r(u32 i) | ||
2976 | { | ||
2977 | return 0x00405870U + i*4U; | ||
2978 | } | ||
2979 | static inline u32 gr_scc_debug_r(void) | ||
2980 | { | ||
2981 | return 0x00408000U; | ||
2982 | } | ||
2983 | static inline u32 gr_scc_debug_pagepool_invalidates_m(void) | ||
2984 | { | ||
2985 | return 0x1U << 9U; | ||
2986 | } | ||
2987 | static inline u32 gr_scc_debug_pagepool_invalidates_disable_f(void) | ||
2988 | { | ||
2989 | return 0x200U; | ||
2990 | } | ||
2991 | static inline u32 gr_scc_debug_pagepool_invalidates_enable_f(void) | ||
2992 | { | ||
2993 | return 0x0U; | ||
2994 | } | ||
2995 | static inline u32 gr_scc_bundle_cb_base_r(void) | ||
2996 | { | ||
2997 | return 0x00408004U; | ||
2998 | } | ||
2999 | static inline u32 gr_scc_bundle_cb_base_addr_39_8_f(u32 v) | ||
3000 | { | ||
3001 | return (v & 0xffffffffU) << 0U; | ||
3002 | } | ||
3003 | static inline u32 gr_scc_bundle_cb_base_addr_39_8_align_bits_v(void) | ||
3004 | { | ||
3005 | return 0x00000008U; | ||
3006 | } | ||
3007 | static inline u32 gr_scc_bundle_cb_size_r(void) | ||
3008 | { | ||
3009 | return 0x00408008U; | ||
3010 | } | ||
3011 | static inline u32 gr_scc_bundle_cb_size_div_256b_f(u32 v) | ||
3012 | { | ||
3013 | return (v & 0x7ffU) << 0U; | ||
3014 | } | ||
3015 | static inline u32 gr_scc_bundle_cb_size_div_256b__prod_v(void) | ||
3016 | { | ||
3017 | return 0x00000030U; | ||
3018 | } | ||
3019 | static inline u32 gr_scc_bundle_cb_size_div_256b_byte_granularity_v(void) | ||
3020 | { | ||
3021 | return 0x00000100U; | ||
3022 | } | ||
3023 | static inline u32 gr_scc_bundle_cb_size_valid_false_v(void) | ||
3024 | { | ||
3025 | return 0x00000000U; | ||
3026 | } | ||
3027 | static inline u32 gr_scc_bundle_cb_size_valid_false_f(void) | ||
3028 | { | ||
3029 | return 0x0U; | ||
3030 | } | ||
3031 | static inline u32 gr_scc_bundle_cb_size_valid_true_f(void) | ||
3032 | { | ||
3033 | return 0x80000000U; | ||
3034 | } | ||
3035 | static inline u32 gr_scc_pagepool_base_r(void) | ||
3036 | { | ||
3037 | return 0x0040800cU; | ||
3038 | } | ||
3039 | static inline u32 gr_scc_pagepool_base_addr_39_8_f(u32 v) | ||
3040 | { | ||
3041 | return (v & 0xffffffffU) << 0U; | ||
3042 | } | ||
3043 | static inline u32 gr_scc_pagepool_base_addr_39_8_align_bits_v(void) | ||
3044 | { | ||
3045 | return 0x00000008U; | ||
3046 | } | ||
3047 | static inline u32 gr_scc_pagepool_r(void) | ||
3048 | { | ||
3049 | return 0x00408010U; | ||
3050 | } | ||
3051 | static inline u32 gr_scc_pagepool_total_pages_f(u32 v) | ||
3052 | { | ||
3053 | return (v & 0x3ffU) << 0U; | ||
3054 | } | ||
3055 | static inline u32 gr_scc_pagepool_total_pages_hwmax_v(void) | ||
3056 | { | ||
3057 | return 0x00000000U; | ||
3058 | } | ||
3059 | static inline u32 gr_scc_pagepool_total_pages_hwmax_value_v(void) | ||
3060 | { | ||
3061 | return 0x00000200U; | ||
3062 | } | ||
3063 | static inline u32 gr_scc_pagepool_total_pages_byte_granularity_v(void) | ||
3064 | { | ||
3065 | return 0x00000100U; | ||
3066 | } | ||
3067 | static inline u32 gr_scc_pagepool_max_valid_pages_s(void) | ||
3068 | { | ||
3069 | return 10U; | ||
3070 | } | ||
3071 | static inline u32 gr_scc_pagepool_max_valid_pages_f(u32 v) | ||
3072 | { | ||
3073 | return (v & 0x3ffU) << 10U; | ||
3074 | } | ||
3075 | static inline u32 gr_scc_pagepool_max_valid_pages_m(void) | ||
3076 | { | ||
3077 | return 0x3ffU << 10U; | ||
3078 | } | ||
3079 | static inline u32 gr_scc_pagepool_max_valid_pages_v(u32 r) | ||
3080 | { | ||
3081 | return (r >> 10U) & 0x3ffU; | ||
3082 | } | ||
3083 | static inline u32 gr_scc_pagepool_valid_true_f(void) | ||
3084 | { | ||
3085 | return 0x80000000U; | ||
3086 | } | ||
3087 | static inline u32 gr_scc_init_r(void) | ||
3088 | { | ||
3089 | return 0x0040802cU; | ||
3090 | } | ||
3091 | static inline u32 gr_scc_init_ram_trigger_f(void) | ||
3092 | { | ||
3093 | return 0x1U; | ||
3094 | } | ||
3095 | static inline u32 gr_scc_hww_esr_r(void) | ||
3096 | { | ||
3097 | return 0x00408030U; | ||
3098 | } | ||
3099 | static inline u32 gr_scc_hww_esr_reset_active_f(void) | ||
3100 | { | ||
3101 | return 0x40000000U; | ||
3102 | } | ||
3103 | static inline u32 gr_scc_hww_esr_en_enable_f(void) | ||
3104 | { | ||
3105 | return 0x80000000U; | ||
3106 | } | ||
3107 | static inline u32 gr_ssync_hww_esr_r(void) | ||
3108 | { | ||
3109 | return 0x00405a14U; | ||
3110 | } | ||
3111 | static inline u32 gr_ssync_hww_esr_reset_active_f(void) | ||
3112 | { | ||
3113 | return 0x40000000U; | ||
3114 | } | ||
3115 | static inline u32 gr_ssync_hww_esr_en_enable_f(void) | ||
3116 | { | ||
3117 | return 0x80000000U; | ||
3118 | } | ||
3119 | static inline u32 gr_sked_hww_esr_r(void) | ||
3120 | { | ||
3121 | return 0x00407020U; | ||
3122 | } | ||
3123 | static inline u32 gr_sked_hww_esr_reset_active_f(void) | ||
3124 | { | ||
3125 | return 0x40000000U; | ||
3126 | } | ||
3127 | static inline u32 gr_sked_hww_esr_en_r(void) | ||
3128 | { | ||
3129 | return 0x00407024U; | ||
3130 | } | ||
3131 | static inline u32 gr_sked_hww_esr_en_skedcheck18_l1_config_too_small_m(void) | ||
3132 | { | ||
3133 | return 0x1U << 25U; | ||
3134 | } | ||
3135 | static inline u32 gr_sked_hww_esr_en_skedcheck18_l1_config_too_small_disabled_f(void) | ||
3136 | { | ||
3137 | return 0x0U; | ||
3138 | } | ||
3139 | static inline u32 gr_sked_hww_esr_en_skedcheck18_l1_config_too_small_enabled_f(void) | ||
3140 | { | ||
3141 | return 0x2000000U; | ||
3142 | } | ||
3143 | static inline u32 gr_cwd_fs_r(void) | ||
3144 | { | ||
3145 | return 0x00405b00U; | ||
3146 | } | ||
3147 | static inline u32 gr_cwd_fs_num_gpcs_f(u32 v) | ||
3148 | { | ||
3149 | return (v & 0xffU) << 0U; | ||
3150 | } | ||
3151 | static inline u32 gr_cwd_fs_num_tpcs_f(u32 v) | ||
3152 | { | ||
3153 | return (v & 0xffU) << 8U; | ||
3154 | } | ||
3155 | static inline u32 gr_cwd_gpc_tpc_id_r(u32 i) | ||
3156 | { | ||
3157 | return 0x00405b60U + i*4U; | ||
3158 | } | ||
3159 | static inline u32 gr_cwd_gpc_tpc_id_tpc0_s(void) | ||
3160 | { | ||
3161 | return 4U; | ||
3162 | } | ||
3163 | static inline u32 gr_cwd_gpc_tpc_id_tpc0_f(u32 v) | ||
3164 | { | ||
3165 | return (v & 0xfU) << 0U; | ||
3166 | } | ||
3167 | static inline u32 gr_cwd_gpc_tpc_id_gpc0_s(void) | ||
3168 | { | ||
3169 | return 4U; | ||
3170 | } | ||
3171 | static inline u32 gr_cwd_gpc_tpc_id_gpc0_f(u32 v) | ||
3172 | { | ||
3173 | return (v & 0xfU) << 4U; | ||
3174 | } | ||
3175 | static inline u32 gr_cwd_gpc_tpc_id_tpc1_f(u32 v) | ||
3176 | { | ||
3177 | return (v & 0xfU) << 8U; | ||
3178 | } | ||
3179 | static inline u32 gr_cwd_sm_id_r(u32 i) | ||
3180 | { | ||
3181 | return 0x00405ba0U + i*4U; | ||
3182 | } | ||
3183 | static inline u32 gr_cwd_sm_id__size_1_v(void) | ||
3184 | { | ||
3185 | return 0x00000010U; | ||
3186 | } | ||
3187 | static inline u32 gr_cwd_sm_id_tpc0_f(u32 v) | ||
3188 | { | ||
3189 | return (v & 0xffU) << 0U; | ||
3190 | } | ||
3191 | static inline u32 gr_cwd_sm_id_tpc1_f(u32 v) | ||
3192 | { | ||
3193 | return (v & 0xffU) << 8U; | ||
3194 | } | ||
3195 | static inline u32 gr_gpc0_fs_gpc_r(void) | ||
3196 | { | ||
3197 | return 0x00502608U; | ||
3198 | } | ||
3199 | static inline u32 gr_gpc0_fs_gpc_num_available_tpcs_v(u32 r) | ||
3200 | { | ||
3201 | return (r >> 0U) & 0x1fU; | ||
3202 | } | ||
3203 | static inline u32 gr_gpc0_fs_gpc_num_available_zculls_v(u32 r) | ||
3204 | { | ||
3205 | return (r >> 16U) & 0x1fU; | ||
3206 | } | ||
3207 | static inline u32 gr_gpc0_cfg_r(void) | ||
3208 | { | ||
3209 | return 0x00502620U; | ||
3210 | } | ||
3211 | static inline u32 gr_gpc0_cfg_imem_sz_v(u32 r) | ||
3212 | { | ||
3213 | return (r >> 0U) & 0xffU; | ||
3214 | } | ||
3215 | static inline u32 gr_gpccs_rc_lanes_r(void) | ||
3216 | { | ||
3217 | return 0x00502880U; | ||
3218 | } | ||
3219 | static inline u32 gr_gpccs_rc_lanes_num_chains_s(void) | ||
3220 | { | ||
3221 | return 6U; | ||
3222 | } | ||
3223 | static inline u32 gr_gpccs_rc_lanes_num_chains_f(u32 v) | ||
3224 | { | ||
3225 | return (v & 0x3fU) << 0U; | ||
3226 | } | ||
3227 | static inline u32 gr_gpccs_rc_lanes_num_chains_m(void) | ||
3228 | { | ||
3229 | return 0x3fU << 0U; | ||
3230 | } | ||
3231 | static inline u32 gr_gpccs_rc_lanes_num_chains_v(u32 r) | ||
3232 | { | ||
3233 | return (r >> 0U) & 0x3fU; | ||
3234 | } | ||
3235 | static inline u32 gr_gpccs_rc_lane_size_r(void) | ||
3236 | { | ||
3237 | return 0x00502910U; | ||
3238 | } | ||
3239 | static inline u32 gr_gpccs_rc_lane_size_v_s(void) | ||
3240 | { | ||
3241 | return 24U; | ||
3242 | } | ||
3243 | static inline u32 gr_gpccs_rc_lane_size_v_f(u32 v) | ||
3244 | { | ||
3245 | return (v & 0xffffffU) << 0U; | ||
3246 | } | ||
3247 | static inline u32 gr_gpccs_rc_lane_size_v_m(void) | ||
3248 | { | ||
3249 | return 0xffffffU << 0U; | ||
3250 | } | ||
3251 | static inline u32 gr_gpccs_rc_lane_size_v_v(u32 r) | ||
3252 | { | ||
3253 | return (r >> 0U) & 0xffffffU; | ||
3254 | } | ||
3255 | static inline u32 gr_gpccs_rc_lane_size_v_0_v(void) | ||
3256 | { | ||
3257 | return 0x00000000U; | ||
3258 | } | ||
3259 | static inline u32 gr_gpccs_rc_lane_size_v_0_f(void) | ||
3260 | { | ||
3261 | return 0x0U; | ||
3262 | } | ||
3263 | static inline u32 gr_gpc0_zcull_fs_r(void) | ||
3264 | { | ||
3265 | return 0x00500910U; | ||
3266 | } | ||
3267 | static inline u32 gr_gpc0_zcull_fs_num_sms_f(u32 v) | ||
3268 | { | ||
3269 | return (v & 0x1ffU) << 0U; | ||
3270 | } | ||
3271 | static inline u32 gr_gpc0_zcull_fs_num_active_banks_f(u32 v) | ||
3272 | { | ||
3273 | return (v & 0xfU) << 16U; | ||
3274 | } | ||
3275 | static inline u32 gr_gpc0_zcull_ram_addr_r(void) | ||
3276 | { | ||
3277 | return 0x00500914U; | ||
3278 | } | ||
3279 | static inline u32 gr_gpc0_zcull_ram_addr_tiles_per_hypertile_row_per_gpc_f(u32 v) | ||
3280 | { | ||
3281 | return (v & 0xfU) << 0U; | ||
3282 | } | ||
3283 | static inline u32 gr_gpc0_zcull_ram_addr_row_offset_f(u32 v) | ||
3284 | { | ||
3285 | return (v & 0xfU) << 8U; | ||
3286 | } | ||
3287 | static inline u32 gr_gpc0_zcull_sm_num_rcp_r(void) | ||
3288 | { | ||
3289 | return 0x00500918U; | ||
3290 | } | ||
3291 | static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative_f(u32 v) | ||
3292 | { | ||
3293 | return (v & 0xffffffU) << 0U; | ||
3294 | } | ||
3295 | static inline u32 gr_gpc0_zcull_sm_num_rcp_conservative__max_v(void) | ||
3296 | { | ||
3297 | return 0x00800000U; | ||
3298 | } | ||
3299 | static inline u32 gr_gpc0_zcull_total_ram_size_r(void) | ||
3300 | { | ||
3301 | return 0x00500920U; | ||
3302 | } | ||
3303 | static inline u32 gr_gpc0_zcull_total_ram_size_num_aliquots_f(u32 v) | ||
3304 | { | ||
3305 | return (v & 0xffffU) << 0U; | ||
3306 | } | ||
3307 | static inline u32 gr_gpc0_zcull_zcsize_r(u32 i) | ||
3308 | { | ||
3309 | return 0x00500a04U + i*32U; | ||
3310 | } | ||
3311 | static inline u32 gr_gpc0_zcull_zcsize_height_subregion__multiple_v(void) | ||
3312 | { | ||
3313 | return 0x00000040U; | ||
3314 | } | ||
3315 | static inline u32 gr_gpc0_zcull_zcsize_width_subregion__multiple_v(void) | ||
3316 | { | ||
3317 | return 0x00000010U; | ||
3318 | } | ||
3319 | static inline u32 gr_gpc0_gpm_pd_sm_id_r(u32 i) | ||
3320 | { | ||
3321 | return 0x00500c10U + i*4U; | ||
3322 | } | ||
3323 | static inline u32 gr_gpc0_gpm_pd_sm_id_id_f(u32 v) | ||
3324 | { | ||
3325 | return (v & 0xffU) << 0U; | ||
3326 | } | ||
3327 | static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_r(u32 i) | ||
3328 | { | ||
3329 | return 0x00500c30U + i*4U; | ||
3330 | } | ||
3331 | static inline u32 gr_gpc0_gpm_pd_pes_tpc_id_mask_mask_v(u32 r) | ||
3332 | { | ||
3333 | return (r >> 0U) & 0xffU; | ||
3334 | } | ||
3335 | static inline u32 gr_gpc0_tpc0_pe_cfg_smid_r(void) | ||
3336 | { | ||
3337 | return 0x00504088U; | ||
3338 | } | ||
3339 | static inline u32 gr_gpc0_tpc0_pe_cfg_smid_value_f(u32 v) | ||
3340 | { | ||
3341 | return (v & 0xffffU) << 0U; | ||
3342 | } | ||
3343 | static inline u32 gr_gpc0_tpc0_sm_cfg_r(void) | ||
3344 | { | ||
3345 | return 0x00504608U; | ||
3346 | } | ||
3347 | static inline u32 gr_gpc0_tpc0_sm_cfg_tpc_id_f(u32 v) | ||
3348 | { | ||
3349 | return (v & 0xffffU) << 0U; | ||
3350 | } | ||
3351 | static inline u32 gr_gpc0_tpc0_sm_cfg_tpc_id_v(u32 r) | ||
3352 | { | ||
3353 | return (r >> 0U) & 0xffffU; | ||
3354 | } | ||
3355 | static inline u32 gr_gpc0_tpc0_sm_arch_r(void) | ||
3356 | { | ||
3357 | return 0x00504330U; | ||
3358 | } | ||
3359 | static inline u32 gr_gpc0_tpc0_sm_arch_warp_count_v(u32 r) | ||
3360 | { | ||
3361 | return (r >> 0U) & 0xffU; | ||
3362 | } | ||
3363 | static inline u32 gr_gpc0_tpc0_sm_arch_spa_version_v(u32 r) | ||
3364 | { | ||
3365 | return (r >> 8U) & 0xfffU; | ||
3366 | } | ||
3367 | static inline u32 gr_gpc0_tpc0_sm_arch_sm_version_v(u32 r) | ||
3368 | { | ||
3369 | return (r >> 20U) & 0xfffU; | ||
3370 | } | ||
3371 | static inline u32 gr_gpc0_ppc0_pes_vsc_strem_r(void) | ||
3372 | { | ||
3373 | return 0x00503018U; | ||
3374 | } | ||
3375 | static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_m(void) | ||
3376 | { | ||
3377 | return 0x1U << 0U; | ||
3378 | } | ||
3379 | static inline u32 gr_gpc0_ppc0_pes_vsc_strem_master_pe_true_f(void) | ||
3380 | { | ||
3381 | return 0x1U; | ||
3382 | } | ||
3383 | static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_r(void) | ||
3384 | { | ||
3385 | return 0x005030c0U; | ||
3386 | } | ||
3387 | static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_f(u32 v) | ||
3388 | { | ||
3389 | return (v & 0x3fffffU) << 0U; | ||
3390 | } | ||
3391 | static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_m(void) | ||
3392 | { | ||
3393 | return 0x3fffffU << 0U; | ||
3394 | } | ||
3395 | static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_default_v(void) | ||
3396 | { | ||
3397 | return 0x00000800U; | ||
3398 | } | ||
3399 | static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_gfxp_v(void) | ||
3400 | { | ||
3401 | return 0x00001100U; | ||
3402 | } | ||
3403 | static inline u32 gr_gpc0_ppc0_cbm_beta_cb_size_v_granularity_v(void) | ||
3404 | { | ||
3405 | return 0x00000020U; | ||
3406 | } | ||
3407 | static inline u32 gr_gpc0_ppc0_cbm_beta_cb_offset_r(void) | ||
3408 | { | ||
3409 | return 0x005030f4U; | ||
3410 | } | ||
3411 | static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_r(void) | ||
3412 | { | ||
3413 | return 0x005030e4U; | ||
3414 | } | ||
3415 | static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_f(u32 v) | ||
3416 | { | ||
3417 | return (v & 0xffffU) << 0U; | ||
3418 | } | ||
3419 | static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_m(void) | ||
3420 | { | ||
3421 | return 0xffffU << 0U; | ||
3422 | } | ||
3423 | static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_default_v(void) | ||
3424 | { | ||
3425 | return 0x00000800U; | ||
3426 | } | ||
3427 | static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_size_v_granularity_v(void) | ||
3428 | { | ||
3429 | return 0x00000020U; | ||
3430 | } | ||
3431 | static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_offset_r(void) | ||
3432 | { | ||
3433 | return 0x005030f8U; | ||
3434 | } | ||
3435 | static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_r(void) | ||
3436 | { | ||
3437 | return 0x005030f0U; | ||
3438 | } | ||
3439 | static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_f(u32 v) | ||
3440 | { | ||
3441 | return (v & 0x3fffffU) << 0U; | ||
3442 | } | ||
3443 | static inline u32 gr_gpc0_ppc0_cbm_beta_steady_state_cb_size_v_default_v(void) | ||
3444 | { | ||
3445 | return 0x00000800U; | ||
3446 | } | ||
3447 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_r(void) | ||
3448 | { | ||
3449 | return 0x00419e00U; | ||
3450 | } | ||
3451 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_0_base_addr_43_12_f(u32 v) | ||
3452 | { | ||
3453 | return (v & 0xffffffffU) << 0U; | ||
3454 | } | ||
3455 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_r(void) | ||
3456 | { | ||
3457 | return 0x00419e04U; | ||
3458 | } | ||
3459 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_s(void) | ||
3460 | { | ||
3461 | return 21U; | ||
3462 | } | ||
3463 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_f(u32 v) | ||
3464 | { | ||
3465 | return (v & 0x1fffffU) << 0U; | ||
3466 | } | ||
3467 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_m(void) | ||
3468 | { | ||
3469 | return 0x1fffffU << 0U; | ||
3470 | } | ||
3471 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_v(u32 r) | ||
3472 | { | ||
3473 | return (r >> 0U) & 0x1fffffU; | ||
3474 | } | ||
3475 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_size_div_128b_granularity_f(void) | ||
3476 | { | ||
3477 | return 0x80U; | ||
3478 | } | ||
3479 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_s(void) | ||
3480 | { | ||
3481 | return 1U; | ||
3482 | } | ||
3483 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_f(u32 v) | ||
3484 | { | ||
3485 | return (v & 0x1U) << 31U; | ||
3486 | } | ||
3487 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_m(void) | ||
3488 | { | ||
3489 | return 0x1U << 31U; | ||
3490 | } | ||
3491 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_v(u32 r) | ||
3492 | { | ||
3493 | return (r >> 31U) & 0x1U; | ||
3494 | } | ||
3495 | static inline u32 gr_gpcs_tpcs_tex_rm_cb_1_valid_true_f(void) | ||
3496 | { | ||
3497 | return 0x80000000U; | ||
3498 | } | ||
3499 | static inline u32 gr_gpccs_falcon_addr_r(void) | ||
3500 | { | ||
3501 | return 0x0041a0acU; | ||
3502 | } | ||
3503 | static inline u32 gr_gpccs_falcon_addr_lsb_s(void) | ||
3504 | { | ||
3505 | return 6U; | ||
3506 | } | ||
3507 | static inline u32 gr_gpccs_falcon_addr_lsb_f(u32 v) | ||
3508 | { | ||
3509 | return (v & 0x3fU) << 0U; | ||
3510 | } | ||
3511 | static inline u32 gr_gpccs_falcon_addr_lsb_m(void) | ||
3512 | { | ||
3513 | return 0x3fU << 0U; | ||
3514 | } | ||
3515 | static inline u32 gr_gpccs_falcon_addr_lsb_v(u32 r) | ||
3516 | { | ||
3517 | return (r >> 0U) & 0x3fU; | ||
3518 | } | ||
3519 | static inline u32 gr_gpccs_falcon_addr_lsb_init_v(void) | ||
3520 | { | ||
3521 | return 0x00000000U; | ||
3522 | } | ||
3523 | static inline u32 gr_gpccs_falcon_addr_lsb_init_f(void) | ||
3524 | { | ||
3525 | return 0x0U; | ||
3526 | } | ||
3527 | static inline u32 gr_gpccs_falcon_addr_msb_s(void) | ||
3528 | { | ||
3529 | return 6U; | ||
3530 | } | ||
3531 | static inline u32 gr_gpccs_falcon_addr_msb_f(u32 v) | ||
3532 | { | ||
3533 | return (v & 0x3fU) << 6U; | ||
3534 | } | ||
3535 | static inline u32 gr_gpccs_falcon_addr_msb_m(void) | ||
3536 | { | ||
3537 | return 0x3fU << 6U; | ||
3538 | } | ||
3539 | static inline u32 gr_gpccs_falcon_addr_msb_v(u32 r) | ||
3540 | { | ||
3541 | return (r >> 6U) & 0x3fU; | ||
3542 | } | ||
3543 | static inline u32 gr_gpccs_falcon_addr_msb_init_v(void) | ||
3544 | { | ||
3545 | return 0x00000000U; | ||
3546 | } | ||
3547 | static inline u32 gr_gpccs_falcon_addr_msb_init_f(void) | ||
3548 | { | ||
3549 | return 0x0U; | ||
3550 | } | ||
3551 | static inline u32 gr_gpccs_falcon_addr_ext_s(void) | ||
3552 | { | ||
3553 | return 12U; | ||
3554 | } | ||
3555 | static inline u32 gr_gpccs_falcon_addr_ext_f(u32 v) | ||
3556 | { | ||
3557 | return (v & 0xfffU) << 0U; | ||
3558 | } | ||
3559 | static inline u32 gr_gpccs_falcon_addr_ext_m(void) | ||
3560 | { | ||
3561 | return 0xfffU << 0U; | ||
3562 | } | ||
3563 | static inline u32 gr_gpccs_falcon_addr_ext_v(u32 r) | ||
3564 | { | ||
3565 | return (r >> 0U) & 0xfffU; | ||
3566 | } | ||
3567 | static inline u32 gr_gpccs_cpuctl_r(void) | ||
3568 | { | ||
3569 | return 0x0041a100U; | ||
3570 | } | ||
3571 | static inline u32 gr_gpccs_cpuctl_startcpu_f(u32 v) | ||
3572 | { | ||
3573 | return (v & 0x1U) << 1U; | ||
3574 | } | ||
3575 | static inline u32 gr_gpccs_dmactl_r(void) | ||
3576 | { | ||
3577 | return 0x0041a10cU; | ||
3578 | } | ||
3579 | static inline u32 gr_gpccs_dmactl_require_ctx_f(u32 v) | ||
3580 | { | ||
3581 | return (v & 0x1U) << 0U; | ||
3582 | } | ||
3583 | static inline u32 gr_gpccs_dmactl_dmem_scrubbing_m(void) | ||
3584 | { | ||
3585 | return 0x1U << 1U; | ||
3586 | } | ||
3587 | static inline u32 gr_gpccs_dmactl_imem_scrubbing_m(void) | ||
3588 | { | ||
3589 | return 0x1U << 2U; | ||
3590 | } | ||
3591 | static inline u32 gr_gpccs_imemc_r(u32 i) | ||
3592 | { | ||
3593 | return 0x0041a180U + i*16U; | ||
3594 | } | ||
3595 | static inline u32 gr_gpccs_imemc_offs_f(u32 v) | ||
3596 | { | ||
3597 | return (v & 0x3fU) << 2U; | ||
3598 | } | ||
3599 | static inline u32 gr_gpccs_imemc_blk_f(u32 v) | ||
3600 | { | ||
3601 | return (v & 0xffU) << 8U; | ||
3602 | } | ||
3603 | static inline u32 gr_gpccs_imemc_aincw_f(u32 v) | ||
3604 | { | ||
3605 | return (v & 0x1U) << 24U; | ||
3606 | } | ||
3607 | static inline u32 gr_gpccs_imemd_r(u32 i) | ||
3608 | { | ||
3609 | return 0x0041a184U + i*16U; | ||
3610 | } | ||
3611 | static inline u32 gr_gpccs_imemt_r(u32 i) | ||
3612 | { | ||
3613 | return 0x0041a188U + i*16U; | ||
3614 | } | ||
3615 | static inline u32 gr_gpccs_imemt__size_1_v(void) | ||
3616 | { | ||
3617 | return 0x00000004U; | ||
3618 | } | ||
3619 | static inline u32 gr_gpccs_imemt_tag_f(u32 v) | ||
3620 | { | ||
3621 | return (v & 0xffffU) << 0U; | ||
3622 | } | ||
3623 | static inline u32 gr_gpccs_dmemc_r(u32 i) | ||
3624 | { | ||
3625 | return 0x0041a1c0U + i*8U; | ||
3626 | } | ||
3627 | static inline u32 gr_gpccs_dmemc_offs_f(u32 v) | ||
3628 | { | ||
3629 | return (v & 0x3fU) << 2U; | ||
3630 | } | ||
3631 | static inline u32 gr_gpccs_dmemc_blk_f(u32 v) | ||
3632 | { | ||
3633 | return (v & 0xffU) << 8U; | ||
3634 | } | ||
3635 | static inline u32 gr_gpccs_dmemc_aincw_f(u32 v) | ||
3636 | { | ||
3637 | return (v & 0x1U) << 24U; | ||
3638 | } | ||
3639 | static inline u32 gr_gpccs_dmemd_r(u32 i) | ||
3640 | { | ||
3641 | return 0x0041a1c4U + i*8U; | ||
3642 | } | ||
3643 | static inline u32 gr_gpccs_ctxsw_mailbox_r(u32 i) | ||
3644 | { | ||
3645 | return 0x0041a800U + i*4U; | ||
3646 | } | ||
3647 | static inline u32 gr_gpccs_ctxsw_mailbox_value_f(u32 v) | ||
3648 | { | ||
3649 | return (v & 0xffffffffU) << 0U; | ||
3650 | } | ||
3651 | static inline u32 gr_gpcs_swdx_bundle_cb_base_r(void) | ||
3652 | { | ||
3653 | return 0x00418e24U; | ||
3654 | } | ||
3655 | static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_s(void) | ||
3656 | { | ||
3657 | return 32U; | ||
3658 | } | ||
3659 | static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_f(u32 v) | ||
3660 | { | ||
3661 | return (v & 0xffffffffU) << 0U; | ||
3662 | } | ||
3663 | static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_m(void) | ||
3664 | { | ||
3665 | return 0xffffffffU << 0U; | ||
3666 | } | ||
3667 | static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_v(u32 r) | ||
3668 | { | ||
3669 | return (r >> 0U) & 0xffffffffU; | ||
3670 | } | ||
3671 | static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_v(void) | ||
3672 | { | ||
3673 | return 0x00000000U; | ||
3674 | } | ||
3675 | static inline u32 gr_gpcs_swdx_bundle_cb_base_addr_39_8_init_f(void) | ||
3676 | { | ||
3677 | return 0x0U; | ||
3678 | } | ||
3679 | static inline u32 gr_gpcs_swdx_bundle_cb_size_r(void) | ||
3680 | { | ||
3681 | return 0x00418e28U; | ||
3682 | } | ||
3683 | static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_s(void) | ||
3684 | { | ||
3685 | return 11U; | ||
3686 | } | ||
3687 | static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_f(u32 v) | ||
3688 | { | ||
3689 | return (v & 0x7ffU) << 0U; | ||
3690 | } | ||
3691 | static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_m(void) | ||
3692 | { | ||
3693 | return 0x7ffU << 0U; | ||
3694 | } | ||
3695 | static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_v(u32 r) | ||
3696 | { | ||
3697 | return (r >> 0U) & 0x7ffU; | ||
3698 | } | ||
3699 | static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_v(void) | ||
3700 | { | ||
3701 | return 0x00000030U; | ||
3702 | } | ||
3703 | static inline u32 gr_gpcs_swdx_bundle_cb_size_div_256b_init_f(void) | ||
3704 | { | ||
3705 | return 0x30U; | ||
3706 | } | ||
3707 | static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_s(void) | ||
3708 | { | ||
3709 | return 1U; | ||
3710 | } | ||
3711 | static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_f(u32 v) | ||
3712 | { | ||
3713 | return (v & 0x1U) << 31U; | ||
3714 | } | ||
3715 | static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_m(void) | ||
3716 | { | ||
3717 | return 0x1U << 31U; | ||
3718 | } | ||
3719 | static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_v(u32 r) | ||
3720 | { | ||
3721 | return (r >> 31U) & 0x1U; | ||
3722 | } | ||
3723 | static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_v(void) | ||
3724 | { | ||
3725 | return 0x00000000U; | ||
3726 | } | ||
3727 | static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_false_f(void) | ||
3728 | { | ||
3729 | return 0x0U; | ||
3730 | } | ||
3731 | static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_v(void) | ||
3732 | { | ||
3733 | return 0x00000001U; | ||
3734 | } | ||
3735 | static inline u32 gr_gpcs_swdx_bundle_cb_size_valid_true_f(void) | ||
3736 | { | ||
3737 | return 0x80000000U; | ||
3738 | } | ||
3739 | static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_r(void) | ||
3740 | { | ||
3741 | return 0x005001dcU; | ||
3742 | } | ||
3743 | static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_f(u32 v) | ||
3744 | { | ||
3745 | return (v & 0xffffU) << 0U; | ||
3746 | } | ||
3747 | static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_default_v(void) | ||
3748 | { | ||
3749 | return 0x00000170U; | ||
3750 | } | ||
3751 | static inline u32 gr_gpc0_swdx_rm_spill_buffer_size_256b_byte_granularity_v(void) | ||
3752 | { | ||
3753 | return 0x00000100U; | ||
3754 | } | ||
3755 | static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_r(void) | ||
3756 | { | ||
3757 | return 0x005001d8U; | ||
3758 | } | ||
3759 | static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_f(u32 v) | ||
3760 | { | ||
3761 | return (v & 0xffffffffU) << 0U; | ||
3762 | } | ||
3763 | static inline u32 gr_gpc0_swdx_rm_spill_buffer_addr_39_8_align_bits_v(void) | ||
3764 | { | ||
3765 | return 0x00000008U; | ||
3766 | } | ||
3767 | static inline u32 gr_gpcs_swdx_beta_cb_ctrl_r(void) | ||
3768 | { | ||
3769 | return 0x004181e4U; | ||
3770 | } | ||
3771 | static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_f(u32 v) | ||
3772 | { | ||
3773 | return (v & 0xfffU) << 0U; | ||
3774 | } | ||
3775 | static inline u32 gr_gpcs_swdx_beta_cb_ctrl_cbes_reserve_gfxp_v(void) | ||
3776 | { | ||
3777 | return 0x00000100U; | ||
3778 | } | ||
3779 | static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_r(void) | ||
3780 | { | ||
3781 | return 0x0041befcU; | ||
3782 | } | ||
3783 | static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_cbes_reserve_f(u32 v) | ||
3784 | { | ||
3785 | return (v & 0xfffU) << 0U; | ||
3786 | } | ||
3787 | static inline u32 gr_gpcs_ppcs_cbm_debug_r(void) | ||
3788 | { | ||
3789 | return 0x0041bec4U; | ||
3790 | } | ||
3791 | static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_alpha_m(void) | ||
3792 | { | ||
3793 | return 0x1U << 0U; | ||
3794 | } | ||
3795 | static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_alpha_disable_f(void) | ||
3796 | { | ||
3797 | return 0x0U; | ||
3798 | } | ||
3799 | static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_alpha_enable_f(void) | ||
3800 | { | ||
3801 | return 0x1U; | ||
3802 | } | ||
3803 | static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_beta_m(void) | ||
3804 | { | ||
3805 | return 0x1U << 1U; | ||
3806 | } | ||
3807 | static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_beta_disable_f(void) | ||
3808 | { | ||
3809 | return 0x0U; | ||
3810 | } | ||
3811 | static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_beta_enable_f(void) | ||
3812 | { | ||
3813 | return 0x2U; | ||
3814 | } | ||
3815 | static inline u32 gr_gpcs_swdx_tc_beta_cb_size_r(u32 i) | ||
3816 | { | ||
3817 | return 0x00418ea0U + i*4U; | ||
3818 | } | ||
3819 | static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_f(u32 v) | ||
3820 | { | ||
3821 | return (v & 0x3fffffU) << 0U; | ||
3822 | } | ||
3823 | static inline u32 gr_gpcs_swdx_tc_beta_cb_size_v_m(void) | ||
3824 | { | ||
3825 | return 0x3fffffU << 0U; | ||
3826 | } | ||
3827 | static inline u32 gr_gpcs_swdx_dss_zbc_color_r_r(u32 i) | ||
3828 | { | ||
3829 | return 0x00418010U + i*4U; | ||
3830 | } | ||
3831 | static inline u32 gr_gpcs_swdx_dss_zbc_color_r_val_f(u32 v) | ||
3832 | { | ||
3833 | return (v & 0xffffffffU) << 0U; | ||
3834 | } | ||
3835 | static inline u32 gr_gpcs_swdx_dss_zbc_color_g_r(u32 i) | ||
3836 | { | ||
3837 | return 0x0041804cU + i*4U; | ||
3838 | } | ||
3839 | static inline u32 gr_gpcs_swdx_dss_zbc_color_g_val_f(u32 v) | ||
3840 | { | ||
3841 | return (v & 0xffffffffU) << 0U; | ||
3842 | } | ||
3843 | static inline u32 gr_gpcs_swdx_dss_zbc_color_b_r(u32 i) | ||
3844 | { | ||
3845 | return 0x00418088U + i*4U; | ||
3846 | } | ||
3847 | static inline u32 gr_gpcs_swdx_dss_zbc_color_b_val_f(u32 v) | ||
3848 | { | ||
3849 | return (v & 0xffffffffU) << 0U; | ||
3850 | } | ||
3851 | static inline u32 gr_gpcs_swdx_dss_zbc_color_a_r(u32 i) | ||
3852 | { | ||
3853 | return 0x004180c4U + i*4U; | ||
3854 | } | ||
3855 | static inline u32 gr_gpcs_swdx_dss_zbc_color_a_val_f(u32 v) | ||
3856 | { | ||
3857 | return (v & 0xffffffffU) << 0U; | ||
3858 | } | ||
3859 | static inline u32 gr_gpcs_swdx_dss_zbc_c_01_to_04_format_r(void) | ||
3860 | { | ||
3861 | return 0x00418100U; | ||
3862 | } | ||
3863 | static inline u32 gr_gpcs_swdx_dss_zbc_z_r(u32 i) | ||
3864 | { | ||
3865 | return 0x00418110U + i*4U; | ||
3866 | } | ||
3867 | static inline u32 gr_gpcs_swdx_dss_zbc_z_val_f(u32 v) | ||
3868 | { | ||
3869 | return (v & 0xffffffffU) << 0U; | ||
3870 | } | ||
3871 | static inline u32 gr_gpcs_swdx_dss_zbc_z_01_to_04_format_r(void) | ||
3872 | { | ||
3873 | return 0x0041814cU; | ||
3874 | } | ||
3875 | static inline u32 gr_gpcs_swdx_dss_zbc_s_r(u32 i) | ||
3876 | { | ||
3877 | return 0x0041815cU + i*4U; | ||
3878 | } | ||
3879 | static inline u32 gr_gpcs_swdx_dss_zbc_s_val_f(u32 v) | ||
3880 | { | ||
3881 | return (v & 0xffU) << 0U; | ||
3882 | } | ||
3883 | static inline u32 gr_gpcs_swdx_dss_zbc_s_01_to_04_format_r(void) | ||
3884 | { | ||
3885 | return 0x00418198U; | ||
3886 | } | ||
3887 | static inline u32 gr_gpcs_swdx_spill_unit_r(void) | ||
3888 | { | ||
3889 | return 0x00418e9cU; | ||
3890 | } | ||
3891 | static inline u32 gr_gpcs_swdx_spill_unit_spill_buffer_cache_mgmt_mode_m(void) | ||
3892 | { | ||
3893 | return 0x1U << 16U; | ||
3894 | } | ||
3895 | static inline u32 gr_gpcs_swdx_spill_unit_spill_buffer_cache_mgmt_mode_disabled_f(void) | ||
3896 | { | ||
3897 | return 0x0U; | ||
3898 | } | ||
3899 | static inline u32 gr_gpcs_swdx_spill_unit_spill_buffer_cache_mgmt_mode_enabled_f(void) | ||
3900 | { | ||
3901 | return 0x10000U; | ||
3902 | } | ||
3903 | static inline u32 gr_gpcs_setup_attrib_cb_base_r(void) | ||
3904 | { | ||
3905 | return 0x00418810U; | ||
3906 | } | ||
3907 | static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_f(u32 v) | ||
3908 | { | ||
3909 | return (v & 0xfffffffU) << 0U; | ||
3910 | } | ||
3911 | static inline u32 gr_gpcs_setup_attrib_cb_base_addr_39_12_align_bits_v(void) | ||
3912 | { | ||
3913 | return 0x0000000cU; | ||
3914 | } | ||
3915 | static inline u32 gr_gpcs_setup_attrib_cb_base_valid_true_f(void) | ||
3916 | { | ||
3917 | return 0x80000000U; | ||
3918 | } | ||
3919 | static inline u32 gr_crstr_gpc_map_r(u32 i) | ||
3920 | { | ||
3921 | return 0x00418b08U + i*4U; | ||
3922 | } | ||
3923 | static inline u32 gr_crstr_gpc_map_tile0_f(u32 v) | ||
3924 | { | ||
3925 | return (v & 0x1fU) << 0U; | ||
3926 | } | ||
3927 | static inline u32 gr_crstr_gpc_map_tile1_f(u32 v) | ||
3928 | { | ||
3929 | return (v & 0x1fU) << 5U; | ||
3930 | } | ||
3931 | static inline u32 gr_crstr_gpc_map_tile2_f(u32 v) | ||
3932 | { | ||
3933 | return (v & 0x1fU) << 10U; | ||
3934 | } | ||
3935 | static inline u32 gr_crstr_gpc_map_tile3_f(u32 v) | ||
3936 | { | ||
3937 | return (v & 0x1fU) << 15U; | ||
3938 | } | ||
3939 | static inline u32 gr_crstr_gpc_map_tile4_f(u32 v) | ||
3940 | { | ||
3941 | return (v & 0x1fU) << 20U; | ||
3942 | } | ||
3943 | static inline u32 gr_crstr_gpc_map_tile5_f(u32 v) | ||
3944 | { | ||
3945 | return (v & 0x1fU) << 25U; | ||
3946 | } | ||
3947 | static inline u32 gr_crstr_map_table_cfg_r(void) | ||
3948 | { | ||
3949 | return 0x00418bb8U; | ||
3950 | } | ||
3951 | static inline u32 gr_crstr_map_table_cfg_row_offset_f(u32 v) | ||
3952 | { | ||
3953 | return (v & 0xffU) << 0U; | ||
3954 | } | ||
3955 | static inline u32 gr_crstr_map_table_cfg_num_entries_f(u32 v) | ||
3956 | { | ||
3957 | return (v & 0xffU) << 8U; | ||
3958 | } | ||
3959 | static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_r(u32 i) | ||
3960 | { | ||
3961 | return 0x00418980U + i*4U; | ||
3962 | } | ||
3963 | static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_0_f(u32 v) | ||
3964 | { | ||
3965 | return (v & 0x7U) << 0U; | ||
3966 | } | ||
3967 | static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_1_f(u32 v) | ||
3968 | { | ||
3969 | return (v & 0x7U) << 4U; | ||
3970 | } | ||
3971 | static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_2_f(u32 v) | ||
3972 | { | ||
3973 | return (v & 0x7U) << 8U; | ||
3974 | } | ||
3975 | static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_3_f(u32 v) | ||
3976 | { | ||
3977 | return (v & 0x7U) << 12U; | ||
3978 | } | ||
3979 | static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_4_f(u32 v) | ||
3980 | { | ||
3981 | return (v & 0x7U) << 16U; | ||
3982 | } | ||
3983 | static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_5_f(u32 v) | ||
3984 | { | ||
3985 | return (v & 0x7U) << 20U; | ||
3986 | } | ||
3987 | static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_6_f(u32 v) | ||
3988 | { | ||
3989 | return (v & 0x7U) << 24U; | ||
3990 | } | ||
3991 | static inline u32 gr_gpcs_zcull_sm_in_gpc_number_map_tile_7_f(u32 v) | ||
3992 | { | ||
3993 | return (v & 0x7U) << 28U; | ||
3994 | } | ||
3995 | static inline u32 gr_gpcs_gpm_pd_cfg_r(void) | ||
3996 | { | ||
3997 | return 0x00418c6cU; | ||
3998 | } | ||
3999 | static inline u32 gr_gpcs_gcc_pagepool_base_r(void) | ||
4000 | { | ||
4001 | return 0x00419004U; | ||
4002 | } | ||
4003 | static inline u32 gr_gpcs_gcc_pagepool_base_addr_39_8_f(u32 v) | ||
4004 | { | ||
4005 | return (v & 0xffffffffU) << 0U; | ||
4006 | } | ||
4007 | static inline u32 gr_gpcs_gcc_pagepool_r(void) | ||
4008 | { | ||
4009 | return 0x00419008U; | ||
4010 | } | ||
4011 | static inline u32 gr_gpcs_gcc_pagepool_total_pages_f(u32 v) | ||
4012 | { | ||
4013 | return (v & 0x3ffU) << 0U; | ||
4014 | } | ||
4015 | static inline u32 gr_gpcs_tpcs_pe_vaf_r(void) | ||
4016 | { | ||
4017 | return 0x0041980cU; | ||
4018 | } | ||
4019 | static inline u32 gr_gpcs_tpcs_pe_vaf_fast_mode_switch_true_f(void) | ||
4020 | { | ||
4021 | return 0x10U; | ||
4022 | } | ||
4023 | static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_r(void) | ||
4024 | { | ||
4025 | return 0x00419848U; | ||
4026 | } | ||
4027 | static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_v_f(u32 v) | ||
4028 | { | ||
4029 | return (v & 0xfffffffU) << 0U; | ||
4030 | } | ||
4031 | static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_f(u32 v) | ||
4032 | { | ||
4033 | return (v & 0x1U) << 28U; | ||
4034 | } | ||
4035 | static inline u32 gr_gpcs_tpcs_pe_pin_cb_global_base_addr_valid_true_f(void) | ||
4036 | { | ||
4037 | return 0x10000000U; | ||
4038 | } | ||
4039 | static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_r(void) | ||
4040 | { | ||
4041 | return 0x00419c00U; | ||
4042 | } | ||
4043 | static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_disabled_f(void) | ||
4044 | { | ||
4045 | return 0x0U; | ||
4046 | } | ||
4047 | static inline u32 gr_gpcs_tpcs_mpc_vtg_debug_timeslice_mode_enabled_f(void) | ||
4048 | { | ||
4049 | return 0x8U; | ||
4050 | } | ||
4051 | static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_r(void) | ||
4052 | { | ||
4053 | return 0x00419c2cU; | ||
4054 | } | ||
4055 | static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_v_f(u32 v) | ||
4056 | { | ||
4057 | return (v & 0xfffffffU) << 0U; | ||
4058 | } | ||
4059 | static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_f(u32 v) | ||
4060 | { | ||
4061 | return (v & 0x1U) << 28U; | ||
4062 | } | ||
4063 | static inline u32 gr_gpcs_tpcs_mpc_vtg_cb_global_base_addr_valid_true_f(void) | ||
4064 | { | ||
4065 | return 0x10000000U; | ||
4066 | } | ||
4067 | static inline u32 gr_gpcs_tpcs_sms_hww_warp_esr_report_mask_r(void) | ||
4068 | { | ||
4069 | return 0x00419ea8U; | ||
4070 | } | ||
4071 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_r(void) | ||
4072 | { | ||
4073 | return 0x00504728U; | ||
4074 | } | ||
4075 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_stack_error_report_f(void) | ||
4076 | { | ||
4077 | return 0x2U; | ||
4078 | } | ||
4079 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_api_stack_error_report_f(void) | ||
4080 | { | ||
4081 | return 0x4U; | ||
4082 | } | ||
4083 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_pc_wrap_report_f(void) | ||
4084 | { | ||
4085 | return 0x10U; | ||
4086 | } | ||
4087 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_misaligned_pc_report_f(void) | ||
4088 | { | ||
4089 | return 0x20U; | ||
4090 | } | ||
4091 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_pc_overflow_report_f(void) | ||
4092 | { | ||
4093 | return 0x40U; | ||
4094 | } | ||
4095 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_misaligned_reg_report_f(void) | ||
4096 | { | ||
4097 | return 0x100U; | ||
4098 | } | ||
4099 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_illegal_instr_encoding_report_f(void) | ||
4100 | { | ||
4101 | return 0x200U; | ||
4102 | } | ||
4103 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_illegal_instr_param_report_f(void) | ||
4104 | { | ||
4105 | return 0x800U; | ||
4106 | } | ||
4107 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_oor_reg_report_f(void) | ||
4108 | { | ||
4109 | return 0x2000U; | ||
4110 | } | ||
4111 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_oor_addr_report_f(void) | ||
4112 | { | ||
4113 | return 0x4000U; | ||
4114 | } | ||
4115 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_misaligned_addr_report_f(void) | ||
4116 | { | ||
4117 | return 0x8000U; | ||
4118 | } | ||
4119 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_invalid_addr_space_report_f(void) | ||
4120 | { | ||
4121 | return 0x10000U; | ||
4122 | } | ||
4123 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_invalid_const_addr_ldc_report_f(void) | ||
4124 | { | ||
4125 | return 0x40000U; | ||
4126 | } | ||
4127 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_mmu_fault_report_f(void) | ||
4128 | { | ||
4129 | return 0x800000U; | ||
4130 | } | ||
4131 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_stack_overflow_report_f(void) | ||
4132 | { | ||
4133 | return 0x400000U; | ||
4134 | } | ||
4135 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_report_mask_mmu_nack_report_f(void) | ||
4136 | { | ||
4137 | return 0x4000000U; | ||
4138 | } | ||
4139 | static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_r(void) | ||
4140 | { | ||
4141 | return 0x00419d0cU; | ||
4142 | } | ||
4143 | static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_sm_enabled_f(void) | ||
4144 | { | ||
4145 | return 0x2U; | ||
4146 | } | ||
4147 | static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_tex_enabled_f(void) | ||
4148 | { | ||
4149 | return 0x1U; | ||
4150 | } | ||
4151 | static inline u32 gr_gpcs_tpcs_tpccs_tpc_exception_en_mpc_enabled_f(void) | ||
4152 | { | ||
4153 | return 0x10U; | ||
4154 | } | ||
4155 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_r(void) | ||
4156 | { | ||
4157 | return 0x0050450cU; | ||
4158 | } | ||
4159 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_v(u32 r) | ||
4160 | { | ||
4161 | return (r >> 1U) & 0x1U; | ||
4162 | } | ||
4163 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_sm_enabled_f(void) | ||
4164 | { | ||
4165 | return 0x2U; | ||
4166 | } | ||
4167 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_en_mpc_enabled_f(void) | ||
4168 | { | ||
4169 | return 0x10U; | ||
4170 | } | ||
4171 | static inline u32 gr_gpcs_gpccs_gpc_exception_en_r(void) | ||
4172 | { | ||
4173 | return 0x0041ac94U; | ||
4174 | } | ||
4175 | static inline u32 gr_gpcs_gpccs_gpc_exception_en_gcc_f(u32 v) | ||
4176 | { | ||
4177 | return (v & 0x1U) << 2U; | ||
4178 | } | ||
4179 | static inline u32 gr_gpcs_gpccs_gpc_exception_en_tpc_f(u32 v) | ||
4180 | { | ||
4181 | return (v & 0xffU) << 16U; | ||
4182 | } | ||
4183 | static inline u32 gr_gpcs_gpccs_gpc_exception_en_gpccs_f(u32 v) | ||
4184 | { | ||
4185 | return (v & 0x1U) << 14U; | ||
4186 | } | ||
4187 | static inline u32 gr_gpcs_gpccs_gpc_exception_en_gpcmmu_f(u32 v) | ||
4188 | { | ||
4189 | return (v & 0x1U) << 15U; | ||
4190 | } | ||
4191 | static inline u32 gr_gpc0_gpccs_gpc_exception_r(void) | ||
4192 | { | ||
4193 | return 0x00502c90U; | ||
4194 | } | ||
4195 | static inline u32 gr_gpc0_gpccs_gpc_exception_gcc_v(u32 r) | ||
4196 | { | ||
4197 | return (r >> 2U) & 0x1U; | ||
4198 | } | ||
4199 | static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_v(u32 r) | ||
4200 | { | ||
4201 | return (r >> 16U) & 0xffU; | ||
4202 | } | ||
4203 | static inline u32 gr_gpc0_gpccs_gpc_exception_tpc_0_pending_v(void) | ||
4204 | { | ||
4205 | return 0x00000001U; | ||
4206 | } | ||
4207 | static inline u32 gr_gpc0_gpccs_gpc_exception_gpccs_f(u32 v) | ||
4208 | { | ||
4209 | return (v & 0x1U) << 14U; | ||
4210 | } | ||
4211 | static inline u32 gr_gpc0_gpccs_gpc_exception_gpccs_m(void) | ||
4212 | { | ||
4213 | return 0x1U << 14U; | ||
4214 | } | ||
4215 | static inline u32 gr_gpc0_gpccs_gpc_exception_gpccs_pending_f(void) | ||
4216 | { | ||
4217 | return 0x4000U; | ||
4218 | } | ||
4219 | static inline u32 gr_gpc0_gpccs_gpc_exception_gpcmmu_f(u32 v) | ||
4220 | { | ||
4221 | return (v & 0x1U) << 15U; | ||
4222 | } | ||
4223 | static inline u32 gr_gpc0_gpccs_gpc_exception_gpcmmu_m(void) | ||
4224 | { | ||
4225 | return 0x1U << 15U; | ||
4226 | } | ||
4227 | static inline u32 gr_gpc0_gpccs_gpc_exception_gpcmmu_pending_f(void) | ||
4228 | { | ||
4229 | return 0x8000U; | ||
4230 | } | ||
4231 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_r(void) | ||
4232 | { | ||
4233 | return 0x00501048U; | ||
4234 | } | ||
4235 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_corrected_err_bank0_m(void) | ||
4236 | { | ||
4237 | return 0x1U << 0U; | ||
4238 | } | ||
4239 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_corrected_err_bank1_m(void) | ||
4240 | { | ||
4241 | return 0x1U << 1U; | ||
4242 | } | ||
4243 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_uncorrected_err_bank0_m(void) | ||
4244 | { | ||
4245 | return 0x1U << 4U; | ||
4246 | } | ||
4247 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_uncorrected_err_bank1_m(void) | ||
4248 | { | ||
4249 | return 0x1U << 5U; | ||
4250 | } | ||
4251 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_corrected_err_total_counter_overflow_v(u32 r) | ||
4252 | { | ||
4253 | return (r >> 8U) & 0x1U; | ||
4254 | } | ||
4255 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_uncorrected_err_total_counter_overflow_v(u32 r) | ||
4256 | { | ||
4257 | return (r >> 10U) & 0x1U; | ||
4258 | } | ||
4259 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_status_reset_task_f(void) | ||
4260 | { | ||
4261 | return 0x40000000U; | ||
4262 | } | ||
4263 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_corrected_err_count_r(void) | ||
4264 | { | ||
4265 | return 0x0050104cU; | ||
4266 | } | ||
4267 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_corrected_err_count_total_s(void) | ||
4268 | { | ||
4269 | return 16U; | ||
4270 | } | ||
4271 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_corrected_err_count_total_v(u32 r) | ||
4272 | { | ||
4273 | return (r >> 0U) & 0xffffU; | ||
4274 | } | ||
4275 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_uncorrected_err_count_r(void) | ||
4276 | { | ||
4277 | return 0x00501054U; | ||
4278 | } | ||
4279 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_uncorrected_err_count_total_s(void) | ||
4280 | { | ||
4281 | return 16U; | ||
4282 | } | ||
4283 | static inline u32 gr_pri_gpc0_gcc_l15_ecc_uncorrected_err_count_total_v(u32 r) | ||
4284 | { | ||
4285 | return (r >> 0U) & 0xffffU; | ||
4286 | } | ||
4287 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_r(void) | ||
4288 | { | ||
4289 | return 0x00504508U; | ||
4290 | } | ||
4291 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_v(u32 r) | ||
4292 | { | ||
4293 | return (r >> 0U) & 0x1U; | ||
4294 | } | ||
4295 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_tex_pending_v(void) | ||
4296 | { | ||
4297 | return 0x00000001U; | ||
4298 | } | ||
4299 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_v(u32 r) | ||
4300 | { | ||
4301 | return (r >> 1U) & 0x1U; | ||
4302 | } | ||
4303 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_sm_pending_v(void) | ||
4304 | { | ||
4305 | return 0x00000001U; | ||
4306 | } | ||
4307 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_mpc_m(void) | ||
4308 | { | ||
4309 | return 0x1U << 4U; | ||
4310 | } | ||
4311 | static inline u32 gr_gpc0_tpc0_tpccs_tpc_exception_mpc_pending_f(void) | ||
4312 | { | ||
4313 | return 0x10U; | ||
4314 | } | ||
4315 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_r(void) | ||
4316 | { | ||
4317 | return 0x00504704U; | ||
4318 | } | ||
4319 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_m(void) | ||
4320 | { | ||
4321 | return 0x1U << 0U; | ||
4322 | } | ||
4323 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_v(u32 r) | ||
4324 | { | ||
4325 | return (r >> 0U) & 0x1U; | ||
4326 | } | ||
4327 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_on_v(void) | ||
4328 | { | ||
4329 | return 0x00000001U; | ||
4330 | } | ||
4331 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_on_f(void) | ||
4332 | { | ||
4333 | return 0x1U; | ||
4334 | } | ||
4335 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_off_v(void) | ||
4336 | { | ||
4337 | return 0x00000000U; | ||
4338 | } | ||
4339 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_debugger_mode_off_f(void) | ||
4340 | { | ||
4341 | return 0x0U; | ||
4342 | } | ||
4343 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_stop_trigger_m(void) | ||
4344 | { | ||
4345 | return 0x1U << 31U; | ||
4346 | } | ||
4347 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_stop_trigger_enable_f(void) | ||
4348 | { | ||
4349 | return 0x80000000U; | ||
4350 | } | ||
4351 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_stop_trigger_disable_f(void) | ||
4352 | { | ||
4353 | return 0x0U; | ||
4354 | } | ||
4355 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_single_step_mode_m(void) | ||
4356 | { | ||
4357 | return 0x1U << 3U; | ||
4358 | } | ||
4359 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_single_step_mode_enable_f(void) | ||
4360 | { | ||
4361 | return 0x8U; | ||
4362 | } | ||
4363 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_single_step_mode_disable_f(void) | ||
4364 | { | ||
4365 | return 0x0U; | ||
4366 | } | ||
4367 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_control0_run_trigger_task_f(void) | ||
4368 | { | ||
4369 | return 0x40000000U; | ||
4370 | } | ||
4371 | static inline u32 gr_gpc0_tpc0_sm0_warp_valid_mask_0_r(void) | ||
4372 | { | ||
4373 | return 0x00504708U; | ||
4374 | } | ||
4375 | static inline u32 gr_gpc0_tpc0_sm0_warp_valid_mask_1_r(void) | ||
4376 | { | ||
4377 | return 0x0050470cU; | ||
4378 | } | ||
4379 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_bpt_pause_mask_0_r(void) | ||
4380 | { | ||
4381 | return 0x00504710U; | ||
4382 | } | ||
4383 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_bpt_pause_mask_1_r(void) | ||
4384 | { | ||
4385 | return 0x00504714U; | ||
4386 | } | ||
4387 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_bpt_trap_mask_0_r(void) | ||
4388 | { | ||
4389 | return 0x00504718U; | ||
4390 | } | ||
4391 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_bpt_trap_mask_1_r(void) | ||
4392 | { | ||
4393 | return 0x0050471cU; | ||
4394 | } | ||
4395 | static inline u32 gr_gpcs_tpcs_sms_dbgr_bpt_pause_mask_0_r(void) | ||
4396 | { | ||
4397 | return 0x00419e90U; | ||
4398 | } | ||
4399 | static inline u32 gr_gpcs_tpcs_sms_dbgr_bpt_pause_mask_1_r(void) | ||
4400 | { | ||
4401 | return 0x00419e94U; | ||
4402 | } | ||
4403 | static inline u32 gr_gpcs_tpcs_sms_dbgr_status0_r(void) | ||
4404 | { | ||
4405 | return 0x00419e80U; | ||
4406 | } | ||
4407 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_status0_r(void) | ||
4408 | { | ||
4409 | return 0x00504700U; | ||
4410 | } | ||
4411 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_status0_sm_in_trap_mode_v(u32 r) | ||
4412 | { | ||
4413 | return (r >> 0U) & 0x1U; | ||
4414 | } | ||
4415 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_status0_locked_down_v(u32 r) | ||
4416 | { | ||
4417 | return (r >> 4U) & 0x1U; | ||
4418 | } | ||
4419 | static inline u32 gr_gpc0_tpc0_sm0_dbgr_status0_locked_down_true_v(void) | ||
4420 | { | ||
4421 | return 0x00000001U; | ||
4422 | } | ||
4423 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_r(void) | ||
4424 | { | ||
4425 | return 0x00504730U; | ||
4426 | } | ||
4427 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_v(u32 r) | ||
4428 | { | ||
4429 | return (r >> 0U) & 0xffffU; | ||
4430 | } | ||
4431 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_none_v(void) | ||
4432 | { | ||
4433 | return 0x00000000U; | ||
4434 | } | ||
4435 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_none_f(void) | ||
4436 | { | ||
4437 | return 0x0U; | ||
4438 | } | ||
4439 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_stack_error_f(void) | ||
4440 | { | ||
4441 | return 0x1U; | ||
4442 | } | ||
4443 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_api_stack_error_f(void) | ||
4444 | { | ||
4445 | return 0x2U; | ||
4446 | } | ||
4447 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_pc_wrap_f(void) | ||
4448 | { | ||
4449 | return 0x4U; | ||
4450 | } | ||
4451 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_misaligned_pc_f(void) | ||
4452 | { | ||
4453 | return 0x5U; | ||
4454 | } | ||
4455 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_pc_overflow_f(void) | ||
4456 | { | ||
4457 | return 0x6U; | ||
4458 | } | ||
4459 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_misaligned_reg_f(void) | ||
4460 | { | ||
4461 | return 0x8U; | ||
4462 | } | ||
4463 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_illegal_instr_encoding_f(void) | ||
4464 | { | ||
4465 | return 0x9U; | ||
4466 | } | ||
4467 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_illegal_instr_param_f(void) | ||
4468 | { | ||
4469 | return 0xbU; | ||
4470 | } | ||
4471 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_oor_reg_f(void) | ||
4472 | { | ||
4473 | return 0xdU; | ||
4474 | } | ||
4475 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_oor_addr_f(void) | ||
4476 | { | ||
4477 | return 0xeU; | ||
4478 | } | ||
4479 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_misaligned_addr_f(void) | ||
4480 | { | ||
4481 | return 0xfU; | ||
4482 | } | ||
4483 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_invalid_addr_space_f(void) | ||
4484 | { | ||
4485 | return 0x10U; | ||
4486 | } | ||
4487 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_invalid_const_addr_ldc_f(void) | ||
4488 | { | ||
4489 | return 0x12U; | ||
4490 | } | ||
4491 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_stack_overflow_f(void) | ||
4492 | { | ||
4493 | return 0x16U; | ||
4494 | } | ||
4495 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_mmu_fault_f(void) | ||
4496 | { | ||
4497 | return 0x17U; | ||
4498 | } | ||
4499 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_tex_format_f(void) | ||
4500 | { | ||
4501 | return 0x18U; | ||
4502 | } | ||
4503 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_tex_layout_f(void) | ||
4504 | { | ||
4505 | return 0x19U; | ||
4506 | } | ||
4507 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_error_mmu_nack_f(void) | ||
4508 | { | ||
4509 | return 0x20U; | ||
4510 | } | ||
4511 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_wrap_id_m(void) | ||
4512 | { | ||
4513 | return 0xffU << 16U; | ||
4514 | } | ||
4515 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_addr_error_type_m(void) | ||
4516 | { | ||
4517 | return 0xfU << 24U; | ||
4518 | } | ||
4519 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_addr_error_type_none_f(void) | ||
4520 | { | ||
4521 | return 0x0U; | ||
4522 | } | ||
4523 | static inline u32 gr_gpc0_tpc0_sm_tpc_esr_sm_sel_r(void) | ||
4524 | { | ||
4525 | return 0x0050460cU; | ||
4526 | } | ||
4527 | static inline u32 gr_gpc0_tpc0_sm_tpc_esr_sm_sel_sm0_error_v(u32 r) | ||
4528 | { | ||
4529 | return (r >> 0U) & 0x1U; | ||
4530 | } | ||
4531 | static inline u32 gr_gpc0_tpc0_sm_tpc_esr_sm_sel_sm1_error_v(u32 r) | ||
4532 | { | ||
4533 | return (r >> 1U) & 0x1U; | ||
4534 | } | ||
4535 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_pc_r(void) | ||
4536 | { | ||
4537 | return 0x00504738U; | ||
4538 | } | ||
4539 | static inline u32 gr_gpc0_tpc0_sm0_hww_warp_esr_pc_hi_r(void) | ||
4540 | { | ||
4541 | return 0x0050473cU; | ||
4542 | } | ||
4543 | static inline u32 gr_gpc0_tpc0_sm_halfctl_ctrl_r(void) | ||
4544 | { | ||
4545 | return 0x005043a0U; | ||
4546 | } | ||
4547 | static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_r(void) | ||
4548 | { | ||
4549 | return 0x00419ba0U; | ||
4550 | } | ||
4551 | static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_m(void) | ||
4552 | { | ||
4553 | return 0x1U << 4U; | ||
4554 | } | ||
4555 | static inline u32 gr_gpcs_tpcs_sm_halfctl_ctrl_sctl_read_quad_ctl_f(u32 v) | ||
4556 | { | ||
4557 | return (v & 0x1U) << 4U; | ||
4558 | } | ||
4559 | static inline u32 gr_gpc0_tpc0_sm_debug_sfe_control_r(void) | ||
4560 | { | ||
4561 | return 0x005043b0U; | ||
4562 | } | ||
4563 | static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_r(void) | ||
4564 | { | ||
4565 | return 0x00419bb0U; | ||
4566 | } | ||
4567 | static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_m(void) | ||
4568 | { | ||
4569 | return 0x1U << 0U; | ||
4570 | } | ||
4571 | static inline u32 gr_gpcs_tpcs_sm_debug_sfe_control_read_half_ctl_f(u32 v) | ||
4572 | { | ||
4573 | return (v & 0x1U) << 0U; | ||
4574 | } | ||
4575 | static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_r(void) | ||
4576 | { | ||
4577 | return 0x0041be08U; | ||
4578 | } | ||
4579 | static inline u32 gr_gpcs_tpcs_pes_vsc_vpc_fast_mode_switch_true_f(void) | ||
4580 | { | ||
4581 | return 0x4U; | ||
4582 | } | ||
4583 | static inline u32 gr_ppcs_wwdx_map_gpc_map_r(u32 i) | ||
4584 | { | ||
4585 | return 0x0041bf00U + i*4U; | ||
4586 | } | ||
4587 | static inline u32 gr_ppcs_wwdx_map_table_cfg_r(void) | ||
4588 | { | ||
4589 | return 0x0041bfd0U; | ||
4590 | } | ||
4591 | static inline u32 gr_ppcs_wwdx_map_table_cfg_row_offset_f(u32 v) | ||
4592 | { | ||
4593 | return (v & 0xffU) << 0U; | ||
4594 | } | ||
4595 | static inline u32 gr_ppcs_wwdx_map_table_cfg_num_entries_f(u32 v) | ||
4596 | { | ||
4597 | return (v & 0xffU) << 8U; | ||
4598 | } | ||
4599 | static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_num_entries_f(u32 v) | ||
4600 | { | ||
4601 | return (v & 0x1fU) << 16U; | ||
4602 | } | ||
4603 | static inline u32 gr_ppcs_wwdx_map_table_cfg_normalized_shift_value_f(u32 v) | ||
4604 | { | ||
4605 | return (v & 0x7U) << 21U; | ||
4606 | } | ||
4607 | static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_r(void) | ||
4608 | { | ||
4609 | return 0x0041bfd4U; | ||
4610 | } | ||
4611 | static inline u32 gr_gpcs_ppcs_wwdx_sm_num_rcp_conservative_f(u32 v) | ||
4612 | { | ||
4613 | return (v & 0xffffffU) << 0U; | ||
4614 | } | ||
4615 | static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_r(u32 i) | ||
4616 | { | ||
4617 | return 0x0041bfb0U + i*4U; | ||
4618 | } | ||
4619 | static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff__size_1_v(void) | ||
4620 | { | ||
4621 | return 0x00000005U; | ||
4622 | } | ||
4623 | static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_0_mod_value_f(u32 v) | ||
4624 | { | ||
4625 | return (v & 0xffU) << 0U; | ||
4626 | } | ||
4627 | static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_1_mod_value_f(u32 v) | ||
4628 | { | ||
4629 | return (v & 0xffU) << 8U; | ||
4630 | } | ||
4631 | static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_2_mod_value_f(u32 v) | ||
4632 | { | ||
4633 | return (v & 0xffU) << 16U; | ||
4634 | } | ||
4635 | static inline u32 gr_ppcs_wwdx_map_table_cfg_coeff_3_mod_value_f(u32 v) | ||
4636 | { | ||
4637 | return (v & 0xffU) << 24U; | ||
4638 | } | ||
4639 | static inline u32 gr_bes_zrop_settings_r(void) | ||
4640 | { | ||
4641 | return 0x00408850U; | ||
4642 | } | ||
4643 | static inline u32 gr_bes_zrop_settings_num_active_ltcs_f(u32 v) | ||
4644 | { | ||
4645 | return (v & 0xfU) << 0U; | ||
4646 | } | ||
4647 | static inline u32 gr_be0_crop_debug3_r(void) | ||
4648 | { | ||
4649 | return 0x00410108U; | ||
4650 | } | ||
4651 | static inline u32 gr_bes_crop_debug3_r(void) | ||
4652 | { | ||
4653 | return 0x00408908U; | ||
4654 | } | ||
4655 | static inline u32 gr_bes_crop_debug3_comp_vdc_4to2_disable_m(void) | ||
4656 | { | ||
4657 | return 0x1U << 31U; | ||
4658 | } | ||
4659 | static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_m(void) | ||
4660 | { | ||
4661 | return 0x1U << 1U; | ||
4662 | } | ||
4663 | static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_disabled_f(void) | ||
4664 | { | ||
4665 | return 0x0U; | ||
4666 | } | ||
4667 | static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_enabled_f(void) | ||
4668 | { | ||
4669 | return 0x2U; | ||
4670 | } | ||
4671 | static inline u32 gr_bes_crop_debug3_blendopt_fill_override_m(void) | ||
4672 | { | ||
4673 | return 0x1U << 2U; | ||
4674 | } | ||
4675 | static inline u32 gr_bes_crop_debug3_blendopt_fill_override_disabled_f(void) | ||
4676 | { | ||
4677 | return 0x0U; | ||
4678 | } | ||
4679 | static inline u32 gr_bes_crop_debug3_blendopt_fill_override_enabled_f(void) | ||
4680 | { | ||
4681 | return 0x4U; | ||
4682 | } | ||
4683 | static inline u32 gr_bes_crop_debug4_r(void) | ||
4684 | { | ||
4685 | return 0x0040894cU; | ||
4686 | } | ||
4687 | static inline u32 gr_bes_crop_debug4_clamp_fp_blend_m(void) | ||
4688 | { | ||
4689 | return 0x1U << 18U; | ||
4690 | } | ||
4691 | static inline u32 gr_bes_crop_debug4_clamp_fp_blend_to_inf_f(void) | ||
4692 | { | ||
4693 | return 0x0U; | ||
4694 | } | ||
4695 | static inline u32 gr_bes_crop_debug4_clamp_fp_blend_to_maxval_f(void) | ||
4696 | { | ||
4697 | return 0x40000U; | ||
4698 | } | ||
4699 | static inline u32 gr_bes_crop_settings_r(void) | ||
4700 | { | ||
4701 | return 0x00408958U; | ||
4702 | } | ||
4703 | static inline u32 gr_bes_crop_settings_num_active_ltcs_f(u32 v) | ||
4704 | { | ||
4705 | return (v & 0xfU) << 0U; | ||
4706 | } | ||
4707 | static inline u32 gr_zcull_bytes_per_aliquot_per_gpu_v(void) | ||
4708 | { | ||
4709 | return 0x00000020U; | ||
4710 | } | ||
4711 | static inline u32 gr_zcull_save_restore_header_bytes_per_gpc_v(void) | ||
4712 | { | ||
4713 | return 0x00000020U; | ||
4714 | } | ||
4715 | static inline u32 gr_zcull_save_restore_subregion_header_bytes_per_gpc_v(void) | ||
4716 | { | ||
4717 | return 0x000000c0U; | ||
4718 | } | ||
4719 | static inline u32 gr_zcull_subregion_qty_v(void) | ||
4720 | { | ||
4721 | return 0x00000010U; | ||
4722 | } | ||
4723 | static inline u32 gr_gpcs_tpcs_tex_in_dbg_r(void) | ||
4724 | { | ||
4725 | return 0x00419a00U; | ||
4726 | } | ||
4727 | static inline u32 gr_gpcs_tpcs_tex_in_dbg_tsl1_rvch_invalidate_f(u32 v) | ||
4728 | { | ||
4729 | return (v & 0x1U) << 19U; | ||
4730 | } | ||
4731 | static inline u32 gr_gpcs_tpcs_tex_in_dbg_tsl1_rvch_invalidate_m(void) | ||
4732 | { | ||
4733 | return 0x1U << 19U; | ||
4734 | } | ||
4735 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_r(void) | ||
4736 | { | ||
4737 | return 0x00419bf0U; | ||
4738 | } | ||
4739 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_ld_f(u32 v) | ||
4740 | { | ||
4741 | return (v & 0x1U) << 5U; | ||
4742 | } | ||
4743 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_ld_m(void) | ||
4744 | { | ||
4745 | return 0x1U << 5U; | ||
4746 | } | ||
4747 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_st_f(u32 v) | ||
4748 | { | ||
4749 | return (v & 0x1U) << 10U; | ||
4750 | } | ||
4751 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_st_m(void) | ||
4752 | { | ||
4753 | return 0x1U << 10U; | ||
4754 | } | ||
4755 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_always_cut_collector_m(void) | ||
4756 | { | ||
4757 | return 0x1U << 28U; | ||
4758 | } | ||
4759 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_always_cut_collector_disable_f(void) | ||
4760 | { | ||
4761 | return 0x0U; | ||
4762 | } | ||
4763 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_always_cut_collector_enable_f(void) | ||
4764 | { | ||
4765 | return 0x10000000U; | ||
4766 | } | ||
4767 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control_sel0_r(void) | ||
4768 | { | ||
4769 | return 0x00584200U; | ||
4770 | } | ||
4771 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control_sel1_r(void) | ||
4772 | { | ||
4773 | return 0x00584204U; | ||
4774 | } | ||
4775 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control0_r(void) | ||
4776 | { | ||
4777 | return 0x00584208U; | ||
4778 | } | ||
4779 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control1_r(void) | ||
4780 | { | ||
4781 | return 0x00584210U; | ||
4782 | } | ||
4783 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control2_r(void) | ||
4784 | { | ||
4785 | return 0x00584214U; | ||
4786 | } | ||
4787 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control3_r(void) | ||
4788 | { | ||
4789 | return 0x00584218U; | ||
4790 | } | ||
4791 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control4_r(void) | ||
4792 | { | ||
4793 | return 0x0058421cU; | ||
4794 | } | ||
4795 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control5_r(void) | ||
4796 | { | ||
4797 | return 0x0058420cU; | ||
4798 | } | ||
4799 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter0_control_r(void) | ||
4800 | { | ||
4801 | return 0x00584220U; | ||
4802 | } | ||
4803 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter1_control_r(void) | ||
4804 | { | ||
4805 | return 0x00584224U; | ||
4806 | } | ||
4807 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter2_control_r(void) | ||
4808 | { | ||
4809 | return 0x00584228U; | ||
4810 | } | ||
4811 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter3_control_r(void) | ||
4812 | { | ||
4813 | return 0x0058422cU; | ||
4814 | } | ||
4815 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter4_control_r(void) | ||
4816 | { | ||
4817 | return 0x00584230U; | ||
4818 | } | ||
4819 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter5_control_r(void) | ||
4820 | { | ||
4821 | return 0x00584234U; | ||
4822 | } | ||
4823 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter6_control_r(void) | ||
4824 | { | ||
4825 | return 0x00584238U; | ||
4826 | } | ||
4827 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter7_control_r(void) | ||
4828 | { | ||
4829 | return 0x0058423cU; | ||
4830 | } | ||
4831 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter_status_s0_r(void) | ||
4832 | { | ||
4833 | return 0x00584600U; | ||
4834 | } | ||
4835 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter_status_s1_r(void) | ||
4836 | { | ||
4837 | return 0x00584604U; | ||
4838 | } | ||
4839 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter0_s0_r(void) | ||
4840 | { | ||
4841 | return 0x00584624U; | ||
4842 | } | ||
4843 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter1_s0_r(void) | ||
4844 | { | ||
4845 | return 0x00584628U; | ||
4846 | } | ||
4847 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter2_s0_r(void) | ||
4848 | { | ||
4849 | return 0x0058462cU; | ||
4850 | } | ||
4851 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter3_s0_r(void) | ||
4852 | { | ||
4853 | return 0x00584630U; | ||
4854 | } | ||
4855 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter0_s1_r(void) | ||
4856 | { | ||
4857 | return 0x00584634U; | ||
4858 | } | ||
4859 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter1_s1_r(void) | ||
4860 | { | ||
4861 | return 0x00584638U; | ||
4862 | } | ||
4863 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter2_s1_r(void) | ||
4864 | { | ||
4865 | return 0x0058463cU; | ||
4866 | } | ||
4867 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter3_s1_r(void) | ||
4868 | { | ||
4869 | return 0x00584640U; | ||
4870 | } | ||
4871 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter0_s2_r(void) | ||
4872 | { | ||
4873 | return 0x00584644U; | ||
4874 | } | ||
4875 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter1_s2_r(void) | ||
4876 | { | ||
4877 | return 0x00584648U; | ||
4878 | } | ||
4879 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter2_s2_r(void) | ||
4880 | { | ||
4881 | return 0x0058464cU; | ||
4882 | } | ||
4883 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter3_s2_r(void) | ||
4884 | { | ||
4885 | return 0x00584650U; | ||
4886 | } | ||
4887 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter0_s3_r(void) | ||
4888 | { | ||
4889 | return 0x00584654U; | ||
4890 | } | ||
4891 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter1_s3_r(void) | ||
4892 | { | ||
4893 | return 0x00584658U; | ||
4894 | } | ||
4895 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter2_s3_r(void) | ||
4896 | { | ||
4897 | return 0x0058465cU; | ||
4898 | } | ||
4899 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter3_s3_r(void) | ||
4900 | { | ||
4901 | return 0x00584660U; | ||
4902 | } | ||
4903 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter4_r(void) | ||
4904 | { | ||
4905 | return 0x00584614U; | ||
4906 | } | ||
4907 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter5_r(void) | ||
4908 | { | ||
4909 | return 0x00584618U; | ||
4910 | } | ||
4911 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter6_r(void) | ||
4912 | { | ||
4913 | return 0x0058461cU; | ||
4914 | } | ||
4915 | static inline u32 gr_egpc0_etpc0_sm0_dsm_perf_counter7_r(void) | ||
4916 | { | ||
4917 | return 0x00584620U; | ||
4918 | } | ||
4919 | static inline u32 gr_fe_pwr_mode_r(void) | ||
4920 | { | ||
4921 | return 0x00404170U; | ||
4922 | } | ||
4923 | static inline u32 gr_fe_pwr_mode_mode_auto_f(void) | ||
4924 | { | ||
4925 | return 0x0U; | ||
4926 | } | ||
4927 | static inline u32 gr_fe_pwr_mode_mode_force_on_f(void) | ||
4928 | { | ||
4929 | return 0x2U; | ||
4930 | } | ||
4931 | static inline u32 gr_fe_pwr_mode_req_v(u32 r) | ||
4932 | { | ||
4933 | return (r >> 4U) & 0x1U; | ||
4934 | } | ||
4935 | static inline u32 gr_fe_pwr_mode_req_send_f(void) | ||
4936 | { | ||
4937 | return 0x10U; | ||
4938 | } | ||
4939 | static inline u32 gr_fe_pwr_mode_req_done_v(void) | ||
4940 | { | ||
4941 | return 0x00000000U; | ||
4942 | } | ||
4943 | static inline u32 gr_gpcs_pri_mmu_ctrl_r(void) | ||
4944 | { | ||
4945 | return 0x00418880U; | ||
4946 | } | ||
4947 | static inline u32 gr_gpcs_pri_mmu_ctrl_vm_pg_size_m(void) | ||
4948 | { | ||
4949 | return 0x1U << 0U; | ||
4950 | } | ||
4951 | static inline u32 gr_gpcs_pri_mmu_ctrl_use_pdb_big_page_size_m(void) | ||
4952 | { | ||
4953 | return 0x1U << 11U; | ||
4954 | } | ||
4955 | static inline u32 gr_gpcs_pri_mmu_ctrl_vol_fault_m(void) | ||
4956 | { | ||
4957 | return 0x1U << 1U; | ||
4958 | } | ||
4959 | static inline u32 gr_gpcs_pri_mmu_ctrl_comp_fault_m(void) | ||
4960 | { | ||
4961 | return 0x1U << 2U; | ||
4962 | } | ||
4963 | static inline u32 gr_gpcs_pri_mmu_ctrl_miss_gran_m(void) | ||
4964 | { | ||
4965 | return 0x3U << 3U; | ||
4966 | } | ||
4967 | static inline u32 gr_gpcs_pri_mmu_ctrl_cache_mode_m(void) | ||
4968 | { | ||
4969 | return 0x3U << 5U; | ||
4970 | } | ||
4971 | static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_aperture_m(void) | ||
4972 | { | ||
4973 | return 0x3U << 28U; | ||
4974 | } | ||
4975 | static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_vol_m(void) | ||
4976 | { | ||
4977 | return 0x1U << 30U; | ||
4978 | } | ||
4979 | static inline u32 gr_gpcs_pri_mmu_ctrl_mmu_disable_m(void) | ||
4980 | { | ||
4981 | return 0x1U << 31U; | ||
4982 | } | ||
4983 | static inline u32 gr_gpcs_pri_mmu_ctrl_atomic_capability_mode_m(void) | ||
4984 | { | ||
4985 | return 0x3U << 24U; | ||
4986 | } | ||
4987 | static inline u32 gr_gpcs_pri_mmu_ctrl_atomic_capability_sys_ncoh_mode_m(void) | ||
4988 | { | ||
4989 | return 0x1U << 27U; | ||
4990 | } | ||
4991 | static inline u32 gr_gpcs_pri_mmu_pm_unit_mask_r(void) | ||
4992 | { | ||
4993 | return 0x00418890U; | ||
4994 | } | ||
4995 | static inline u32 gr_gpcs_pri_mmu_pm_req_mask_r(void) | ||
4996 | { | ||
4997 | return 0x00418894U; | ||
4998 | } | ||
4999 | static inline u32 gr_gpcs_pri_mmu_debug_ctrl_r(void) | ||
5000 | { | ||
5001 | return 0x004188b0U; | ||
5002 | } | ||
5003 | static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_v(u32 r) | ||
5004 | { | ||
5005 | return (r >> 16U) & 0x1U; | ||
5006 | } | ||
5007 | static inline u32 gr_gpcs_pri_mmu_debug_ctrl_debug_enabled_v(void) | ||
5008 | { | ||
5009 | return 0x00000001U; | ||
5010 | } | ||
5011 | static inline u32 gr_gpcs_pri_mmu_debug_wr_r(void) | ||
5012 | { | ||
5013 | return 0x004188b4U; | ||
5014 | } | ||
5015 | static inline u32 gr_gpcs_pri_mmu_debug_rd_r(void) | ||
5016 | { | ||
5017 | return 0x004188b8U; | ||
5018 | } | ||
5019 | static inline u32 gr_gpcs_mmu_num_active_ltcs_r(void) | ||
5020 | { | ||
5021 | return 0x004188acU; | ||
5022 | } | ||
5023 | static inline u32 gr_gpcs_tpcs_sms_dbgr_control0_r(void) | ||
5024 | { | ||
5025 | return 0x00419e84U; | ||
5026 | } | ||
5027 | static inline u32 gr_fe_gfxp_wfi_timeout_r(void) | ||
5028 | { | ||
5029 | return 0x004041c0U; | ||
5030 | } | ||
5031 | static inline u32 gr_fe_gfxp_wfi_timeout_count_f(u32 v) | ||
5032 | { | ||
5033 | return (v & 0xffffffffU) << 0U; | ||
5034 | } | ||
5035 | static inline u32 gr_fe_gfxp_wfi_timeout_count_disabled_f(void) | ||
5036 | { | ||
5037 | return 0x0U; | ||
5038 | } | ||
5039 | static inline u32 gr_fe_gfxp_wfi_timeout_count_init_f(void) | ||
5040 | { | ||
5041 | return 0x800U; | ||
5042 | } | ||
5043 | static inline u32 gr_gpcs_tpcs_sm_texio_control_r(void) | ||
5044 | { | ||
5045 | return 0x00419bd8U; | ||
5046 | } | ||
5047 | static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_f(u32 v) | ||
5048 | { | ||
5049 | return (v & 0x7U) << 8U; | ||
5050 | } | ||
5051 | static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_m(void) | ||
5052 | { | ||
5053 | return 0x7U << 8U; | ||
5054 | } | ||
5055 | static inline u32 gr_gpcs_tpcs_sm_texio_control_oor_addr_check_mode_arm_63_48_match_f(void) | ||
5056 | { | ||
5057 | return 0x100U; | ||
5058 | } | ||
5059 | static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_r(void) | ||
5060 | { | ||
5061 | return 0x00419ba4U; | ||
5062 | } | ||
5063 | static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_m(void) | ||
5064 | { | ||
5065 | return 0x3U << 11U; | ||
5066 | } | ||
5067 | static inline u32 gr_gpcs_tpcs_sm_disp_ctrl_re_suppress_disable_f(void) | ||
5068 | { | ||
5069 | return 0x1000U; | ||
5070 | } | ||
5071 | static inline u32 gr_gpcs_tc_debug0_r(void) | ||
5072 | { | ||
5073 | return 0x00418708U; | ||
5074 | } | ||
5075 | static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_f(u32 v) | ||
5076 | { | ||
5077 | return (v & 0x1ffU) << 0U; | ||
5078 | } | ||
5079 | static inline u32 gr_gpcs_tc_debug0_limit_coalesce_buffer_size_m(void) | ||
5080 | { | ||
5081 | return 0x1ffU << 0U; | ||
5082 | } | ||
5083 | static inline u32 gr_gpc0_mmu_gpcmmu_global_esr_r(void) | ||
5084 | { | ||
5085 | return 0x00500324U; | ||
5086 | } | ||
5087 | static inline u32 gr_gpc0_mmu_gpcmmu_global_esr_ecc_corrected_f(u32 v) | ||
5088 | { | ||
5089 | return (v & 0x1U) << 0U; | ||
5090 | } | ||
5091 | static inline u32 gr_gpc0_mmu_gpcmmu_global_esr_ecc_corrected_m(void) | ||
5092 | { | ||
5093 | return 0x1U << 0U; | ||
5094 | } | ||
5095 | static inline u32 gr_gpc0_mmu_gpcmmu_global_esr_ecc_uncorrected_f(u32 v) | ||
5096 | { | ||
5097 | return (v & 0x1U) << 1U; | ||
5098 | } | ||
5099 | static inline u32 gr_gpc0_mmu_gpcmmu_global_esr_ecc_uncorrected_m(void) | ||
5100 | { | ||
5101 | return 0x1U << 1U; | ||
5102 | } | ||
5103 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_r(void) | ||
5104 | { | ||
5105 | return 0x00500314U; | ||
5106 | } | ||
5107 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_l1tlb_sa_data_f(u32 v) | ||
5108 | { | ||
5109 | return (v & 0x1U) << 0U; | ||
5110 | } | ||
5111 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_l1tlb_sa_data_m(void) | ||
5112 | { | ||
5113 | return 0x1U << 0U; | ||
5114 | } | ||
5115 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_l1tlb_fa_data_f(u32 v) | ||
5116 | { | ||
5117 | return (v & 0x1U) << 2U; | ||
5118 | } | ||
5119 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_l1tlb_fa_data_m(void) | ||
5120 | { | ||
5121 | return 0x1U << 2U; | ||
5122 | } | ||
5123 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_l1tlb_sa_data_f(u32 v) | ||
5124 | { | ||
5125 | return (v & 0x1U) << 1U; | ||
5126 | } | ||
5127 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_l1tlb_sa_data_m(void) | ||
5128 | { | ||
5129 | return 0x1U << 1U; | ||
5130 | } | ||
5131 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_l1tlb_fa_data_f(u32 v) | ||
5132 | { | ||
5133 | return (v & 0x1U) << 3U; | ||
5134 | } | ||
5135 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_l1tlb_fa_data_m(void) | ||
5136 | { | ||
5137 | return 0x1U << 3U; | ||
5138 | } | ||
5139 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_total_counter_overflow_f(u32 v) | ||
5140 | { | ||
5141 | return (v & 0x1U) << 18U; | ||
5142 | } | ||
5143 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_total_counter_overflow_m(void) | ||
5144 | { | ||
5145 | return 0x1U << 18U; | ||
5146 | } | ||
5147 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_total_counter_overflow_f(u32 v) | ||
5148 | { | ||
5149 | return (v & 0x1U) << 16U; | ||
5150 | } | ||
5151 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_total_counter_overflow_m(void) | ||
5152 | { | ||
5153 | return 0x1U << 16U; | ||
5154 | } | ||
5155 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_unique_counter_overflow_f(u32 v) | ||
5156 | { | ||
5157 | return (v & 0x1U) << 19U; | ||
5158 | } | ||
5159 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_uncorrected_err_unique_counter_overflow_m(void) | ||
5160 | { | ||
5161 | return 0x1U << 19U; | ||
5162 | } | ||
5163 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_unique_counter_overflow_f(u32 v) | ||
5164 | { | ||
5165 | return (v & 0x1U) << 17U; | ||
5166 | } | ||
5167 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_corrected_err_unique_counter_overflow_m(void) | ||
5168 | { | ||
5169 | return 0x1U << 17U; | ||
5170 | } | ||
5171 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_reset_f(u32 v) | ||
5172 | { | ||
5173 | return (v & 0x1U) << 30U; | ||
5174 | } | ||
5175 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_status_reset_task_f(void) | ||
5176 | { | ||
5177 | return 0x40000000U; | ||
5178 | } | ||
5179 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_address_r(void) | ||
5180 | { | ||
5181 | return 0x00500320U; | ||
5182 | } | ||
5183 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_address_index_f(u32 v) | ||
5184 | { | ||
5185 | return (v & 0xffffffffU) << 0U; | ||
5186 | } | ||
5187 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_r(void) | ||
5188 | { | ||
5189 | return 0x00500318U; | ||
5190 | } | ||
5191 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_total_s(void) | ||
5192 | { | ||
5193 | return 16U; | ||
5194 | } | ||
5195 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_total_f(u32 v) | ||
5196 | { | ||
5197 | return (v & 0xffffU) << 0U; | ||
5198 | } | ||
5199 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_total_m(void) | ||
5200 | { | ||
5201 | return 0xffffU << 0U; | ||
5202 | } | ||
5203 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_total_v(u32 r) | ||
5204 | { | ||
5205 | return (r >> 0U) & 0xffffU; | ||
5206 | } | ||
5207 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_unique_total_s(void) | ||
5208 | { | ||
5209 | return 16U; | ||
5210 | } | ||
5211 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_unique_total_f(u32 v) | ||
5212 | { | ||
5213 | return (v & 0xffffU) << 16U; | ||
5214 | } | ||
5215 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_unique_total_m(void) | ||
5216 | { | ||
5217 | return 0xffffU << 16U; | ||
5218 | } | ||
5219 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_corrected_err_count_unique_total_v(u32 r) | ||
5220 | { | ||
5221 | return (r >> 16U) & 0xffffU; | ||
5222 | } | ||
5223 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_r(void) | ||
5224 | { | ||
5225 | return 0x0050031cU; | ||
5226 | } | ||
5227 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_total_s(void) | ||
5228 | { | ||
5229 | return 16U; | ||
5230 | } | ||
5231 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_total_f(u32 v) | ||
5232 | { | ||
5233 | return (v & 0xffffU) << 0U; | ||
5234 | } | ||
5235 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_total_m(void) | ||
5236 | { | ||
5237 | return 0xffffU << 0U; | ||
5238 | } | ||
5239 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_total_v(u32 r) | ||
5240 | { | ||
5241 | return (r >> 0U) & 0xffffU; | ||
5242 | } | ||
5243 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_unique_total_s(void) | ||
5244 | { | ||
5245 | return 16U; | ||
5246 | } | ||
5247 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_unique_total_f(u32 v) | ||
5248 | { | ||
5249 | return (v & 0xffffU) << 16U; | ||
5250 | } | ||
5251 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_unique_total_m(void) | ||
5252 | { | ||
5253 | return 0xffffU << 16U; | ||
5254 | } | ||
5255 | static inline u32 gr_gpc0_mmu_l1tlb_ecc_uncorrected_err_count_unique_total_v(u32 r) | ||
5256 | { | ||
5257 | return (r >> 16U) & 0xffffU; | ||
5258 | } | ||
5259 | static inline u32 gr_gpc0_gpccs_hww_esr_r(void) | ||
5260 | { | ||
5261 | return 0x00502c98U; | ||
5262 | } | ||
5263 | static inline u32 gr_gpc0_gpccs_hww_esr_ecc_corrected_f(u32 v) | ||
5264 | { | ||
5265 | return (v & 0x1U) << 0U; | ||
5266 | } | ||
5267 | static inline u32 gr_gpc0_gpccs_hww_esr_ecc_corrected_m(void) | ||
5268 | { | ||
5269 | return 0x1U << 0U; | ||
5270 | } | ||
5271 | static inline u32 gr_gpc0_gpccs_hww_esr_ecc_corrected_pending_f(void) | ||
5272 | { | ||
5273 | return 0x1U; | ||
5274 | } | ||
5275 | static inline u32 gr_gpc0_gpccs_hww_esr_ecc_uncorrected_f(u32 v) | ||
5276 | { | ||
5277 | return (v & 0x1U) << 1U; | ||
5278 | } | ||
5279 | static inline u32 gr_gpc0_gpccs_hww_esr_ecc_uncorrected_m(void) | ||
5280 | { | ||
5281 | return 0x1U << 1U; | ||
5282 | } | ||
5283 | static inline u32 gr_gpc0_gpccs_hww_esr_ecc_uncorrected_pending_f(void) | ||
5284 | { | ||
5285 | return 0x2U; | ||
5286 | } | ||
5287 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_r(void) | ||
5288 | { | ||
5289 | return 0x00502678U; | ||
5290 | } | ||
5291 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_imem_f(u32 v) | ||
5292 | { | ||
5293 | return (v & 0x1U) << 0U; | ||
5294 | } | ||
5295 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_imem_m(void) | ||
5296 | { | ||
5297 | return 0x1U << 0U; | ||
5298 | } | ||
5299 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_imem_pending_f(void) | ||
5300 | { | ||
5301 | return 0x1U; | ||
5302 | } | ||
5303 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_dmem_f(u32 v) | ||
5304 | { | ||
5305 | return (v & 0x1U) << 1U; | ||
5306 | } | ||
5307 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_dmem_m(void) | ||
5308 | { | ||
5309 | return 0x1U << 1U; | ||
5310 | } | ||
5311 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_dmem_pending_f(void) | ||
5312 | { | ||
5313 | return 0x2U; | ||
5314 | } | ||
5315 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_imem_f(u32 v) | ||
5316 | { | ||
5317 | return (v & 0x1U) << 4U; | ||
5318 | } | ||
5319 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_imem_m(void) | ||
5320 | { | ||
5321 | return 0x1U << 4U; | ||
5322 | } | ||
5323 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_imem_pending_f(void) | ||
5324 | { | ||
5325 | return 0x10U; | ||
5326 | } | ||
5327 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_dmem_f(u32 v) | ||
5328 | { | ||
5329 | return (v & 0x1U) << 5U; | ||
5330 | } | ||
5331 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_dmem_m(void) | ||
5332 | { | ||
5333 | return 0x1U << 5U; | ||
5334 | } | ||
5335 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_dmem_pending_f(void) | ||
5336 | { | ||
5337 | return 0x20U; | ||
5338 | } | ||
5339 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_total_counter_overflow_f(u32 v) | ||
5340 | { | ||
5341 | return (v & 0x1U) << 10U; | ||
5342 | } | ||
5343 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_total_counter_overflow_m(void) | ||
5344 | { | ||
5345 | return 0x1U << 10U; | ||
5346 | } | ||
5347 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_total_counter_overflow_pending_f(void) | ||
5348 | { | ||
5349 | return 0x400U; | ||
5350 | } | ||
5351 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_total_counter_overflow_f(u32 v) | ||
5352 | { | ||
5353 | return (v & 0x1U) << 8U; | ||
5354 | } | ||
5355 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_total_counter_overflow_m(void) | ||
5356 | { | ||
5357 | return 0x1U << 8U; | ||
5358 | } | ||
5359 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_total_counter_overflow_pending_f(void) | ||
5360 | { | ||
5361 | return 0x100U; | ||
5362 | } | ||
5363 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_unique_counter_overflow_f(u32 v) | ||
5364 | { | ||
5365 | return (v & 0x1U) << 11U; | ||
5366 | } | ||
5367 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_unique_counter_overflow_m(void) | ||
5368 | { | ||
5369 | return 0x1U << 11U; | ||
5370 | } | ||
5371 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_uncorrected_err_unique_counter_overflow_pending_f(void) | ||
5372 | { | ||
5373 | return 0x800U; | ||
5374 | } | ||
5375 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_unique_counter_overflow_f(u32 v) | ||
5376 | { | ||
5377 | return (v & 0x1U) << 9U; | ||
5378 | } | ||
5379 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_unique_counter_overflow_m(void) | ||
5380 | { | ||
5381 | return 0x1U << 9U; | ||
5382 | } | ||
5383 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_corrected_err_unique_counter_overflow_pending_f(void) | ||
5384 | { | ||
5385 | return 0x200U; | ||
5386 | } | ||
5387 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_reset_f(u32 v) | ||
5388 | { | ||
5389 | return (v & 0x1U) << 31U; | ||
5390 | } | ||
5391 | static inline u32 gr_gpc0_gpccs_falcon_ecc_status_reset_task_f(void) | ||
5392 | { | ||
5393 | return 0x80000000U; | ||
5394 | } | ||
5395 | static inline u32 gr_gpc0_gpccs_falcon_ecc_address_r(void) | ||
5396 | { | ||
5397 | return 0x00502684U; | ||
5398 | } | ||
5399 | static inline u32 gr_gpc0_gpccs_falcon_ecc_address_index_f(u32 v) | ||
5400 | { | ||
5401 | return (v & 0x7fffffU) << 0U; | ||
5402 | } | ||
5403 | static inline u32 gr_gpc0_gpccs_falcon_ecc_address_row_address_s(void) | ||
5404 | { | ||
5405 | return 20U; | ||
5406 | } | ||
5407 | static inline u32 gr_gpc0_gpccs_falcon_ecc_address_row_address_f(u32 v) | ||
5408 | { | ||
5409 | return (v & 0xfffffU) << 0U; | ||
5410 | } | ||
5411 | static inline u32 gr_gpc0_gpccs_falcon_ecc_address_row_address_m(void) | ||
5412 | { | ||
5413 | return 0xfffffU << 0U; | ||
5414 | } | ||
5415 | static inline u32 gr_gpc0_gpccs_falcon_ecc_address_row_address_v(u32 r) | ||
5416 | { | ||
5417 | return (r >> 0U) & 0xfffffU; | ||
5418 | } | ||
5419 | static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_r(void) | ||
5420 | { | ||
5421 | return 0x0050267cU; | ||
5422 | } | ||
5423 | static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_total_s(void) | ||
5424 | { | ||
5425 | return 16U; | ||
5426 | } | ||
5427 | static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_total_f(u32 v) | ||
5428 | { | ||
5429 | return (v & 0xffffU) << 0U; | ||
5430 | } | ||
5431 | static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_total_m(void) | ||
5432 | { | ||
5433 | return 0xffffU << 0U; | ||
5434 | } | ||
5435 | static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_total_v(u32 r) | ||
5436 | { | ||
5437 | return (r >> 0U) & 0xffffU; | ||
5438 | } | ||
5439 | static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_unique_total_s(void) | ||
5440 | { | ||
5441 | return 16U; | ||
5442 | } | ||
5443 | static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_unique_total_f(u32 v) | ||
5444 | { | ||
5445 | return (v & 0xffffU) << 16U; | ||
5446 | } | ||
5447 | static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_unique_total_m(void) | ||
5448 | { | ||
5449 | return 0xffffU << 16U; | ||
5450 | } | ||
5451 | static inline u32 gr_gpc0_gpccs_falcon_ecc_corrected_err_count_unique_total_v(u32 r) | ||
5452 | { | ||
5453 | return (r >> 16U) & 0xffffU; | ||
5454 | } | ||
5455 | static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_r(void) | ||
5456 | { | ||
5457 | return 0x00502680U; | ||
5458 | } | ||
5459 | static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_total_f(u32 v) | ||
5460 | { | ||
5461 | return (v & 0xffffU) << 0U; | ||
5462 | } | ||
5463 | static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_total_m(void) | ||
5464 | { | ||
5465 | return 0xffffU << 0U; | ||
5466 | } | ||
5467 | static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_total_v(u32 r) | ||
5468 | { | ||
5469 | return (r >> 0U) & 0xffffU; | ||
5470 | } | ||
5471 | static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_unique_total_s(void) | ||
5472 | { | ||
5473 | return 16U; | ||
5474 | } | ||
5475 | static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_unique_total_f(u32 v) | ||
5476 | { | ||
5477 | return (v & 0xffffU) << 16U; | ||
5478 | } | ||
5479 | static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_unique_total_m(void) | ||
5480 | { | ||
5481 | return 0xffffU << 16U; | ||
5482 | } | ||
5483 | static inline u32 gr_gpc0_gpccs_falcon_ecc_uncorrected_err_count_unique_total_v(u32 r) | ||
5484 | { | ||
5485 | return (r >> 16U) & 0xffffU; | ||
5486 | } | ||
5487 | static inline u32 gr_fecs_falcon_ecc_status_r(void) | ||
5488 | { | ||
5489 | return 0x00409678U; | ||
5490 | } | ||
5491 | static inline u32 gr_fecs_falcon_ecc_status_corrected_err_imem_f(u32 v) | ||
5492 | { | ||
5493 | return (v & 0x1U) << 0U; | ||
5494 | } | ||
5495 | static inline u32 gr_fecs_falcon_ecc_status_corrected_err_imem_m(void) | ||
5496 | { | ||
5497 | return 0x1U << 0U; | ||
5498 | } | ||
5499 | static inline u32 gr_fecs_falcon_ecc_status_corrected_err_imem_pending_f(void) | ||
5500 | { | ||
5501 | return 0x1U; | ||
5502 | } | ||
5503 | static inline u32 gr_fecs_falcon_ecc_status_corrected_err_dmem_f(u32 v) | ||
5504 | { | ||
5505 | return (v & 0x1U) << 1U; | ||
5506 | } | ||
5507 | static inline u32 gr_fecs_falcon_ecc_status_corrected_err_dmem_m(void) | ||
5508 | { | ||
5509 | return 0x1U << 1U; | ||
5510 | } | ||
5511 | static inline u32 gr_fecs_falcon_ecc_status_corrected_err_dmem_pending_f(void) | ||
5512 | { | ||
5513 | return 0x2U; | ||
5514 | } | ||
5515 | static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_imem_f(u32 v) | ||
5516 | { | ||
5517 | return (v & 0x1U) << 4U; | ||
5518 | } | ||
5519 | static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_imem_m(void) | ||
5520 | { | ||
5521 | return 0x1U << 4U; | ||
5522 | } | ||
5523 | static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_imem_pending_f(void) | ||
5524 | { | ||
5525 | return 0x10U; | ||
5526 | } | ||
5527 | static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_dmem_f(u32 v) | ||
5528 | { | ||
5529 | return (v & 0x1U) << 5U; | ||
5530 | } | ||
5531 | static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_dmem_m(void) | ||
5532 | { | ||
5533 | return 0x1U << 5U; | ||
5534 | } | ||
5535 | static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_dmem_pending_f(void) | ||
5536 | { | ||
5537 | return 0x20U; | ||
5538 | } | ||
5539 | static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_total_counter_overflow_f(u32 v) | ||
5540 | { | ||
5541 | return (v & 0x1U) << 10U; | ||
5542 | } | ||
5543 | static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_total_counter_overflow_m(void) | ||
5544 | { | ||
5545 | return 0x1U << 10U; | ||
5546 | } | ||
5547 | static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_total_counter_overflow_pending_f(void) | ||
5548 | { | ||
5549 | return 0x400U; | ||
5550 | } | ||
5551 | static inline u32 gr_fecs_falcon_ecc_status_corrected_err_total_counter_overflow_f(u32 v) | ||
5552 | { | ||
5553 | return (v & 0x1U) << 8U; | ||
5554 | } | ||
5555 | static inline u32 gr_fecs_falcon_ecc_status_corrected_err_total_counter_overflow_m(void) | ||
5556 | { | ||
5557 | return 0x1U << 8U; | ||
5558 | } | ||
5559 | static inline u32 gr_fecs_falcon_ecc_status_corrected_err_total_counter_overflow_pending_f(void) | ||
5560 | { | ||
5561 | return 0x100U; | ||
5562 | } | ||
5563 | static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_unique_counter_overflow_f(u32 v) | ||
5564 | { | ||
5565 | return (v & 0x1U) << 11U; | ||
5566 | } | ||
5567 | static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_unique_counter_overflow_m(void) | ||
5568 | { | ||
5569 | return 0x1U << 11U; | ||
5570 | } | ||
5571 | static inline u32 gr_fecs_falcon_ecc_status_uncorrected_err_unique_counter_overflow_pending_f(void) | ||
5572 | { | ||
5573 | return 0x800U; | ||
5574 | } | ||
5575 | static inline u32 gr_fecs_falcon_ecc_status_corrected_err_unique_counter_overflow_f(u32 v) | ||
5576 | { | ||
5577 | return (v & 0x1U) << 9U; | ||
5578 | } | ||
5579 | static inline u32 gr_fecs_falcon_ecc_status_corrected_err_unique_counter_overflow_m(void) | ||
5580 | { | ||
5581 | return 0x1U << 9U; | ||
5582 | } | ||
5583 | static inline u32 gr_fecs_falcon_ecc_status_corrected_err_unique_counter_overflow_pending_f(void) | ||
5584 | { | ||
5585 | return 0x200U; | ||
5586 | } | ||
5587 | static inline u32 gr_fecs_falcon_ecc_status_reset_f(u32 v) | ||
5588 | { | ||
5589 | return (v & 0x1U) << 31U; | ||
5590 | } | ||
5591 | static inline u32 gr_fecs_falcon_ecc_status_reset_task_f(void) | ||
5592 | { | ||
5593 | return 0x80000000U; | ||
5594 | } | ||
5595 | static inline u32 gr_fecs_falcon_ecc_address_r(void) | ||
5596 | { | ||
5597 | return 0x00409684U; | ||
5598 | } | ||
5599 | static inline u32 gr_fecs_falcon_ecc_address_index_f(u32 v) | ||
5600 | { | ||
5601 | return (v & 0x7fffffU) << 0U; | ||
5602 | } | ||
5603 | static inline u32 gr_fecs_falcon_ecc_address_row_address_s(void) | ||
5604 | { | ||
5605 | return 20U; | ||
5606 | } | ||
5607 | static inline u32 gr_fecs_falcon_ecc_address_row_address_f(u32 v) | ||
5608 | { | ||
5609 | return (v & 0xfffffU) << 0U; | ||
5610 | } | ||
5611 | static inline u32 gr_fecs_falcon_ecc_address_row_address_m(void) | ||
5612 | { | ||
5613 | return 0xfffffU << 0U; | ||
5614 | } | ||
5615 | static inline u32 gr_fecs_falcon_ecc_address_row_address_v(u32 r) | ||
5616 | { | ||
5617 | return (r >> 0U) & 0xfffffU; | ||
5618 | } | ||
5619 | static inline u32 gr_fecs_falcon_ecc_corrected_err_count_r(void) | ||
5620 | { | ||
5621 | return 0x0040967cU; | ||
5622 | } | ||
5623 | static inline u32 gr_fecs_falcon_ecc_corrected_err_count_total_s(void) | ||
5624 | { | ||
5625 | return 16U; | ||
5626 | } | ||
5627 | static inline u32 gr_fecs_falcon_ecc_corrected_err_count_total_f(u32 v) | ||
5628 | { | ||
5629 | return (v & 0xffffU) << 0U; | ||
5630 | } | ||
5631 | static inline u32 gr_fecs_falcon_ecc_corrected_err_count_total_m(void) | ||
5632 | { | ||
5633 | return 0xffffU << 0U; | ||
5634 | } | ||
5635 | static inline u32 gr_fecs_falcon_ecc_corrected_err_count_total_v(u32 r) | ||
5636 | { | ||
5637 | return (r >> 0U) & 0xffffU; | ||
5638 | } | ||
5639 | static inline u32 gr_fecs_falcon_ecc_corrected_err_count_unique_total_s(void) | ||
5640 | { | ||
5641 | return 16U; | ||
5642 | } | ||
5643 | static inline u32 gr_fecs_falcon_ecc_corrected_err_count_unique_total_f(u32 v) | ||
5644 | { | ||
5645 | return (v & 0xffffU) << 16U; | ||
5646 | } | ||
5647 | static inline u32 gr_fecs_falcon_ecc_corrected_err_count_unique_total_m(void) | ||
5648 | { | ||
5649 | return 0xffffU << 16U; | ||
5650 | } | ||
5651 | static inline u32 gr_fecs_falcon_ecc_corrected_err_count_unique_total_v(u32 r) | ||
5652 | { | ||
5653 | return (r >> 16U) & 0xffffU; | ||
5654 | } | ||
5655 | static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_r(void) | ||
5656 | { | ||
5657 | return 0x00409680U; | ||
5658 | } | ||
5659 | static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_total_f(u32 v) | ||
5660 | { | ||
5661 | return (v & 0xffffU) << 0U; | ||
5662 | } | ||
5663 | static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_total_m(void) | ||
5664 | { | ||
5665 | return 0xffffU << 0U; | ||
5666 | } | ||
5667 | static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_total_v(u32 r) | ||
5668 | { | ||
5669 | return (r >> 0U) & 0xffffU; | ||
5670 | } | ||
5671 | static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_unique_total_s(void) | ||
5672 | { | ||
5673 | return 16U; | ||
5674 | } | ||
5675 | static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_unique_total_f(u32 v) | ||
5676 | { | ||
5677 | return (v & 0xffffU) << 16U; | ||
5678 | } | ||
5679 | static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_unique_total_m(void) | ||
5680 | { | ||
5681 | return 0xffffU << 16U; | ||
5682 | } | ||
5683 | static inline u32 gr_fecs_falcon_ecc_uncorrected_err_count_unique_total_v(u32 r) | ||
5684 | { | ||
5685 | return (r >> 16U) & 0xffffU; | ||
5686 | } | ||
5687 | static inline u32 gr_debug_2_r(void) | ||
5688 | { | ||
5689 | return 0x00400088U; | ||
5690 | } | ||
5691 | static inline u32 gr_debug_2_gfxp_wfi_timeout_unit_m(void) | ||
5692 | { | ||
5693 | return 0x1U << 27U; | ||
5694 | } | ||
5695 | static inline u32 gr_debug_2_gfxp_wfi_timeout_unit_usec_f(void) | ||
5696 | { | ||
5697 | return 0x0U; | ||
5698 | } | ||
5699 | static inline u32 gr_debug_2_gfxp_wfi_timeout_unit_sysclk_f(void) | ||
5700 | { | ||
5701 | return 0x8000000U; | ||
5702 | } | ||
5703 | #endif | ||