diff options
Diffstat (limited to 'include/nvgpu/hw/gv11b/hw_fb_gv11b.h')
-rw-r--r-- | include/nvgpu/hw/gv11b/hw_fb_gv11b.h | 1867 |
1 files changed, 0 insertions, 1867 deletions
diff --git a/include/nvgpu/hw/gv11b/hw_fb_gv11b.h b/include/nvgpu/hw/gv11b/hw_fb_gv11b.h deleted file mode 100644 index 767fc5a..0000000 --- a/include/nvgpu/hw/gv11b/hw_fb_gv11b.h +++ /dev/null | |||
@@ -1,1867 +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_fb_gv11b_h_ | ||
57 | #define _hw_fb_gv11b_h_ | ||
58 | |||
59 | static inline u32 fb_fbhub_num_active_ltcs_r(void) | ||
60 | { | ||
61 | return 0x00100800U; | ||
62 | } | ||
63 | static inline u32 fb_fbhub_num_active_ltcs_hub_sys_atomic_mode_m(void) | ||
64 | { | ||
65 | return 0x1U << 25U; | ||
66 | } | ||
67 | static inline u32 fb_fbhub_num_active_ltcs_hub_sys_atomic_mode_use_rmw_f(void) | ||
68 | { | ||
69 | return 0x2000000U; | ||
70 | } | ||
71 | static inline u32 fb_fbhub_num_active_ltcs_hub_sys_ncoh_atomic_mode_m(void) | ||
72 | { | ||
73 | return 0x1U << 26U; | ||
74 | } | ||
75 | static inline u32 fb_fbhub_num_active_ltcs_hub_sys_ncoh_atomic_mode_use_read_f(void) | ||
76 | { | ||
77 | return 0x0U; | ||
78 | } | ||
79 | static inline u32 fb_mmu_ctrl_r(void) | ||
80 | { | ||
81 | return 0x00100c80U; | ||
82 | } | ||
83 | static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r) | ||
84 | { | ||
85 | return (r >> 15U) & 0x1U; | ||
86 | } | ||
87 | static inline u32 fb_mmu_ctrl_pri_fifo_empty_false_f(void) | ||
88 | { | ||
89 | return 0x0U; | ||
90 | } | ||
91 | static inline u32 fb_mmu_ctrl_pri_fifo_space_v(u32 r) | ||
92 | { | ||
93 | return (r >> 16U) & 0xffU; | ||
94 | } | ||
95 | static inline u32 fb_mmu_ctrl_atomic_capability_mode_m(void) | ||
96 | { | ||
97 | return 0x3U << 24U; | ||
98 | } | ||
99 | static inline u32 fb_mmu_ctrl_atomic_capability_mode_l2_f(void) | ||
100 | { | ||
101 | return 0x0U; | ||
102 | } | ||
103 | static inline u32 fb_mmu_ctrl_atomic_capability_mode_rmw_f(void) | ||
104 | { | ||
105 | return 0x2000000U; | ||
106 | } | ||
107 | static inline u32 fb_mmu_ctrl_atomic_capability_sys_ncoh_mode_m(void) | ||
108 | { | ||
109 | return 0x1U << 27U; | ||
110 | } | ||
111 | static inline u32 fb_mmu_ctrl_atomic_capability_sys_ncoh_mode_l2_f(void) | ||
112 | { | ||
113 | return 0x0U; | ||
114 | } | ||
115 | static inline u32 fb_hshub_num_active_ltcs_r(void) | ||
116 | { | ||
117 | return 0x001fbc20U; | ||
118 | } | ||
119 | static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_m(void) | ||
120 | { | ||
121 | return 0x1U << 25U; | ||
122 | } | ||
123 | static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_use_read_f(void) | ||
124 | { | ||
125 | return 0x0U; | ||
126 | } | ||
127 | static inline u32 fb_hshub_num_active_ltcs_hub_sys_atomic_mode_use_rmw_f(void) | ||
128 | { | ||
129 | return 0x2000000U; | ||
130 | } | ||
131 | static inline u32 fb_priv_mmu_phy_secure_r(void) | ||
132 | { | ||
133 | return 0x00100ce4U; | ||
134 | } | ||
135 | static inline u32 fb_mmu_invalidate_pdb_r(void) | ||
136 | { | ||
137 | return 0x00100cb8U; | ||
138 | } | ||
139 | static inline u32 fb_mmu_invalidate_pdb_aperture_vid_mem_f(void) | ||
140 | { | ||
141 | return 0x0U; | ||
142 | } | ||
143 | static inline u32 fb_mmu_invalidate_pdb_aperture_sys_mem_f(void) | ||
144 | { | ||
145 | return 0x2U; | ||
146 | } | ||
147 | static inline u32 fb_mmu_invalidate_pdb_addr_f(u32 v) | ||
148 | { | ||
149 | return (v & 0xfffffffU) << 4U; | ||
150 | } | ||
151 | static inline u32 fb_mmu_invalidate_r(void) | ||
152 | { | ||
153 | return 0x00100cbcU; | ||
154 | } | ||
155 | static inline u32 fb_mmu_invalidate_all_va_true_f(void) | ||
156 | { | ||
157 | return 0x1U; | ||
158 | } | ||
159 | static inline u32 fb_mmu_invalidate_all_pdb_true_f(void) | ||
160 | { | ||
161 | return 0x2U; | ||
162 | } | ||
163 | static inline u32 fb_mmu_invalidate_hubtlb_only_s(void) | ||
164 | { | ||
165 | return 1U; | ||
166 | } | ||
167 | static inline u32 fb_mmu_invalidate_hubtlb_only_f(u32 v) | ||
168 | { | ||
169 | return (v & 0x1U) << 2U; | ||
170 | } | ||
171 | static inline u32 fb_mmu_invalidate_hubtlb_only_m(void) | ||
172 | { | ||
173 | return 0x1U << 2U; | ||
174 | } | ||
175 | static inline u32 fb_mmu_invalidate_hubtlb_only_v(u32 r) | ||
176 | { | ||
177 | return (r >> 2U) & 0x1U; | ||
178 | } | ||
179 | static inline u32 fb_mmu_invalidate_hubtlb_only_true_f(void) | ||
180 | { | ||
181 | return 0x4U; | ||
182 | } | ||
183 | static inline u32 fb_mmu_invalidate_replay_s(void) | ||
184 | { | ||
185 | return 3U; | ||
186 | } | ||
187 | static inline u32 fb_mmu_invalidate_replay_f(u32 v) | ||
188 | { | ||
189 | return (v & 0x7U) << 3U; | ||
190 | } | ||
191 | static inline u32 fb_mmu_invalidate_replay_m(void) | ||
192 | { | ||
193 | return 0x7U << 3U; | ||
194 | } | ||
195 | static inline u32 fb_mmu_invalidate_replay_v(u32 r) | ||
196 | { | ||
197 | return (r >> 3U) & 0x7U; | ||
198 | } | ||
199 | static inline u32 fb_mmu_invalidate_replay_none_f(void) | ||
200 | { | ||
201 | return 0x0U; | ||
202 | } | ||
203 | static inline u32 fb_mmu_invalidate_replay_start_f(void) | ||
204 | { | ||
205 | return 0x8U; | ||
206 | } | ||
207 | static inline u32 fb_mmu_invalidate_replay_start_ack_all_f(void) | ||
208 | { | ||
209 | return 0x10U; | ||
210 | } | ||
211 | static inline u32 fb_mmu_invalidate_replay_cancel_global_f(void) | ||
212 | { | ||
213 | return 0x20U; | ||
214 | } | ||
215 | static inline u32 fb_mmu_invalidate_sys_membar_s(void) | ||
216 | { | ||
217 | return 1U; | ||
218 | } | ||
219 | static inline u32 fb_mmu_invalidate_sys_membar_f(u32 v) | ||
220 | { | ||
221 | return (v & 0x1U) << 6U; | ||
222 | } | ||
223 | static inline u32 fb_mmu_invalidate_sys_membar_m(void) | ||
224 | { | ||
225 | return 0x1U << 6U; | ||
226 | } | ||
227 | static inline u32 fb_mmu_invalidate_sys_membar_v(u32 r) | ||
228 | { | ||
229 | return (r >> 6U) & 0x1U; | ||
230 | } | ||
231 | static inline u32 fb_mmu_invalidate_sys_membar_true_f(void) | ||
232 | { | ||
233 | return 0x40U; | ||
234 | } | ||
235 | static inline u32 fb_mmu_invalidate_ack_s(void) | ||
236 | { | ||
237 | return 2U; | ||
238 | } | ||
239 | static inline u32 fb_mmu_invalidate_ack_f(u32 v) | ||
240 | { | ||
241 | return (v & 0x3U) << 7U; | ||
242 | } | ||
243 | static inline u32 fb_mmu_invalidate_ack_m(void) | ||
244 | { | ||
245 | return 0x3U << 7U; | ||
246 | } | ||
247 | static inline u32 fb_mmu_invalidate_ack_v(u32 r) | ||
248 | { | ||
249 | return (r >> 7U) & 0x3U; | ||
250 | } | ||
251 | static inline u32 fb_mmu_invalidate_ack_ack_none_required_f(void) | ||
252 | { | ||
253 | return 0x0U; | ||
254 | } | ||
255 | static inline u32 fb_mmu_invalidate_ack_ack_intranode_f(void) | ||
256 | { | ||
257 | return 0x100U; | ||
258 | } | ||
259 | static inline u32 fb_mmu_invalidate_ack_ack_globally_f(void) | ||
260 | { | ||
261 | return 0x80U; | ||
262 | } | ||
263 | static inline u32 fb_mmu_invalidate_cancel_client_id_s(void) | ||
264 | { | ||
265 | return 6U; | ||
266 | } | ||
267 | static inline u32 fb_mmu_invalidate_cancel_client_id_f(u32 v) | ||
268 | { | ||
269 | return (v & 0x3fU) << 9U; | ||
270 | } | ||
271 | static inline u32 fb_mmu_invalidate_cancel_client_id_m(void) | ||
272 | { | ||
273 | return 0x3fU << 9U; | ||
274 | } | ||
275 | static inline u32 fb_mmu_invalidate_cancel_client_id_v(u32 r) | ||
276 | { | ||
277 | return (r >> 9U) & 0x3fU; | ||
278 | } | ||
279 | static inline u32 fb_mmu_invalidate_cancel_gpc_id_s(void) | ||
280 | { | ||
281 | return 5U; | ||
282 | } | ||
283 | static inline u32 fb_mmu_invalidate_cancel_gpc_id_f(u32 v) | ||
284 | { | ||
285 | return (v & 0x1fU) << 15U; | ||
286 | } | ||
287 | static inline u32 fb_mmu_invalidate_cancel_gpc_id_m(void) | ||
288 | { | ||
289 | return 0x1fU << 15U; | ||
290 | } | ||
291 | static inline u32 fb_mmu_invalidate_cancel_gpc_id_v(u32 r) | ||
292 | { | ||
293 | return (r >> 15U) & 0x1fU; | ||
294 | } | ||
295 | static inline u32 fb_mmu_invalidate_cancel_client_type_s(void) | ||
296 | { | ||
297 | return 1U; | ||
298 | } | ||
299 | static inline u32 fb_mmu_invalidate_cancel_client_type_f(u32 v) | ||
300 | { | ||
301 | return (v & 0x1U) << 20U; | ||
302 | } | ||
303 | static inline u32 fb_mmu_invalidate_cancel_client_type_m(void) | ||
304 | { | ||
305 | return 0x1U << 20U; | ||
306 | } | ||
307 | static inline u32 fb_mmu_invalidate_cancel_client_type_v(u32 r) | ||
308 | { | ||
309 | return (r >> 20U) & 0x1U; | ||
310 | } | ||
311 | static inline u32 fb_mmu_invalidate_cancel_client_type_gpc_f(void) | ||
312 | { | ||
313 | return 0x0U; | ||
314 | } | ||
315 | static inline u32 fb_mmu_invalidate_cancel_client_type_hub_f(void) | ||
316 | { | ||
317 | return 0x100000U; | ||
318 | } | ||
319 | static inline u32 fb_mmu_invalidate_cancel_cache_level_s(void) | ||
320 | { | ||
321 | return 3U; | ||
322 | } | ||
323 | static inline u32 fb_mmu_invalidate_cancel_cache_level_f(u32 v) | ||
324 | { | ||
325 | return (v & 0x7U) << 24U; | ||
326 | } | ||
327 | static inline u32 fb_mmu_invalidate_cancel_cache_level_m(void) | ||
328 | { | ||
329 | return 0x7U << 24U; | ||
330 | } | ||
331 | static inline u32 fb_mmu_invalidate_cancel_cache_level_v(u32 r) | ||
332 | { | ||
333 | return (r >> 24U) & 0x7U; | ||
334 | } | ||
335 | static inline u32 fb_mmu_invalidate_cancel_cache_level_all_f(void) | ||
336 | { | ||
337 | return 0x0U; | ||
338 | } | ||
339 | static inline u32 fb_mmu_invalidate_cancel_cache_level_pte_only_f(void) | ||
340 | { | ||
341 | return 0x1000000U; | ||
342 | } | ||
343 | static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde0_f(void) | ||
344 | { | ||
345 | return 0x2000000U; | ||
346 | } | ||
347 | static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde1_f(void) | ||
348 | { | ||
349 | return 0x3000000U; | ||
350 | } | ||
351 | static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde2_f(void) | ||
352 | { | ||
353 | return 0x4000000U; | ||
354 | } | ||
355 | static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde3_f(void) | ||
356 | { | ||
357 | return 0x5000000U; | ||
358 | } | ||
359 | static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde4_f(void) | ||
360 | { | ||
361 | return 0x6000000U; | ||
362 | } | ||
363 | static inline u32 fb_mmu_invalidate_cancel_cache_level_up_to_pde5_f(void) | ||
364 | { | ||
365 | return 0x7000000U; | ||
366 | } | ||
367 | static inline u32 fb_mmu_invalidate_trigger_s(void) | ||
368 | { | ||
369 | return 1U; | ||
370 | } | ||
371 | static inline u32 fb_mmu_invalidate_trigger_f(u32 v) | ||
372 | { | ||
373 | return (v & 0x1U) << 31U; | ||
374 | } | ||
375 | static inline u32 fb_mmu_invalidate_trigger_m(void) | ||
376 | { | ||
377 | return 0x1U << 31U; | ||
378 | } | ||
379 | static inline u32 fb_mmu_invalidate_trigger_v(u32 r) | ||
380 | { | ||
381 | return (r >> 31U) & 0x1U; | ||
382 | } | ||
383 | static inline u32 fb_mmu_invalidate_trigger_true_f(void) | ||
384 | { | ||
385 | return 0x80000000U; | ||
386 | } | ||
387 | static inline u32 fb_mmu_debug_wr_r(void) | ||
388 | { | ||
389 | return 0x00100cc8U; | ||
390 | } | ||
391 | static inline u32 fb_mmu_debug_wr_aperture_s(void) | ||
392 | { | ||
393 | return 2U; | ||
394 | } | ||
395 | static inline u32 fb_mmu_debug_wr_aperture_f(u32 v) | ||
396 | { | ||
397 | return (v & 0x3U) << 0U; | ||
398 | } | ||
399 | static inline u32 fb_mmu_debug_wr_aperture_m(void) | ||
400 | { | ||
401 | return 0x3U << 0U; | ||
402 | } | ||
403 | static inline u32 fb_mmu_debug_wr_aperture_v(u32 r) | ||
404 | { | ||
405 | return (r >> 0U) & 0x3U; | ||
406 | } | ||
407 | static inline u32 fb_mmu_debug_wr_aperture_vid_mem_f(void) | ||
408 | { | ||
409 | return 0x0U; | ||
410 | } | ||
411 | static inline u32 fb_mmu_debug_wr_aperture_sys_mem_coh_f(void) | ||
412 | { | ||
413 | return 0x2U; | ||
414 | } | ||
415 | static inline u32 fb_mmu_debug_wr_aperture_sys_mem_ncoh_f(void) | ||
416 | { | ||
417 | return 0x3U; | ||
418 | } | ||
419 | static inline u32 fb_mmu_debug_wr_vol_false_f(void) | ||
420 | { | ||
421 | return 0x0U; | ||
422 | } | ||
423 | static inline u32 fb_mmu_debug_wr_vol_true_v(void) | ||
424 | { | ||
425 | return 0x00000001U; | ||
426 | } | ||
427 | static inline u32 fb_mmu_debug_wr_vol_true_f(void) | ||
428 | { | ||
429 | return 0x4U; | ||
430 | } | ||
431 | static inline u32 fb_mmu_debug_wr_addr_f(u32 v) | ||
432 | { | ||
433 | return (v & 0xfffffffU) << 4U; | ||
434 | } | ||
435 | static inline u32 fb_mmu_debug_wr_addr_alignment_v(void) | ||
436 | { | ||
437 | return 0x0000000cU; | ||
438 | } | ||
439 | static inline u32 fb_mmu_debug_rd_r(void) | ||
440 | { | ||
441 | return 0x00100cccU; | ||
442 | } | ||
443 | static inline u32 fb_mmu_debug_rd_aperture_vid_mem_f(void) | ||
444 | { | ||
445 | return 0x0U; | ||
446 | } | ||
447 | static inline u32 fb_mmu_debug_rd_aperture_sys_mem_coh_f(void) | ||
448 | { | ||
449 | return 0x2U; | ||
450 | } | ||
451 | static inline u32 fb_mmu_debug_rd_aperture_sys_mem_ncoh_f(void) | ||
452 | { | ||
453 | return 0x3U; | ||
454 | } | ||
455 | static inline u32 fb_mmu_debug_rd_vol_false_f(void) | ||
456 | { | ||
457 | return 0x0U; | ||
458 | } | ||
459 | static inline u32 fb_mmu_debug_rd_addr_f(u32 v) | ||
460 | { | ||
461 | return (v & 0xfffffffU) << 4U; | ||
462 | } | ||
463 | static inline u32 fb_mmu_debug_rd_addr_alignment_v(void) | ||
464 | { | ||
465 | return 0x0000000cU; | ||
466 | } | ||
467 | static inline u32 fb_mmu_debug_ctrl_r(void) | ||
468 | { | ||
469 | return 0x00100cc4U; | ||
470 | } | ||
471 | static inline u32 fb_mmu_debug_ctrl_debug_v(u32 r) | ||
472 | { | ||
473 | return (r >> 16U) & 0x1U; | ||
474 | } | ||
475 | static inline u32 fb_mmu_debug_ctrl_debug_m(void) | ||
476 | { | ||
477 | return 0x1U << 16U; | ||
478 | } | ||
479 | static inline u32 fb_mmu_debug_ctrl_debug_enabled_v(void) | ||
480 | { | ||
481 | return 0x00000001U; | ||
482 | } | ||
483 | static inline u32 fb_mmu_debug_ctrl_debug_disabled_v(void) | ||
484 | { | ||
485 | return 0x00000000U; | ||
486 | } | ||
487 | static inline u32 fb_mmu_vpr_info_r(void) | ||
488 | { | ||
489 | return 0x00100cd0U; | ||
490 | } | ||
491 | static inline u32 fb_mmu_vpr_info_fetch_v(u32 r) | ||
492 | { | ||
493 | return (r >> 2U) & 0x1U; | ||
494 | } | ||
495 | static inline u32 fb_mmu_vpr_info_fetch_false_v(void) | ||
496 | { | ||
497 | return 0x00000000U; | ||
498 | } | ||
499 | static inline u32 fb_mmu_vpr_info_fetch_true_v(void) | ||
500 | { | ||
501 | return 0x00000001U; | ||
502 | } | ||
503 | static inline u32 fb_mmu_l2tlb_ecc_status_r(void) | ||
504 | { | ||
505 | return 0x00100e70U; | ||
506 | } | ||
507 | static inline u32 fb_mmu_l2tlb_ecc_status_corrected_err_l2tlb_sa_data_m(void) | ||
508 | { | ||
509 | return 0x1U << 0U; | ||
510 | } | ||
511 | static inline u32 fb_mmu_l2tlb_ecc_status_uncorrected_err_l2tlb_sa_data_m(void) | ||
512 | { | ||
513 | return 0x1U << 1U; | ||
514 | } | ||
515 | static inline u32 fb_mmu_l2tlb_ecc_status_corrected_err_total_counter_overflow_m(void) | ||
516 | { | ||
517 | return 0x1U << 16U; | ||
518 | } | ||
519 | static inline u32 fb_mmu_l2tlb_ecc_status_uncorrected_err_total_counter_overflow_m(void) | ||
520 | { | ||
521 | return 0x1U << 18U; | ||
522 | } | ||
523 | static inline u32 fb_mmu_l2tlb_ecc_status_reset_f(u32 v) | ||
524 | { | ||
525 | return (v & 0x1U) << 30U; | ||
526 | } | ||
527 | static inline u32 fb_mmu_l2tlb_ecc_status_reset_clear_f(void) | ||
528 | { | ||
529 | return 0x40000000U; | ||
530 | } | ||
531 | static inline u32 fb_mmu_l2tlb_ecc_corrected_err_count_r(void) | ||
532 | { | ||
533 | return 0x00100e74U; | ||
534 | } | ||
535 | static inline u32 fb_mmu_l2tlb_ecc_corrected_err_count_total_s(void) | ||
536 | { | ||
537 | return 16U; | ||
538 | } | ||
539 | static inline u32 fb_mmu_l2tlb_ecc_corrected_err_count_total_f(u32 v) | ||
540 | { | ||
541 | return (v & 0xffffU) << 0U; | ||
542 | } | ||
543 | static inline u32 fb_mmu_l2tlb_ecc_corrected_err_count_total_m(void) | ||
544 | { | ||
545 | return 0xffffU << 0U; | ||
546 | } | ||
547 | static inline u32 fb_mmu_l2tlb_ecc_corrected_err_count_total_v(u32 r) | ||
548 | { | ||
549 | return (r >> 0U) & 0xffffU; | ||
550 | } | ||
551 | static inline u32 fb_mmu_l2tlb_ecc_uncorrected_err_count_r(void) | ||
552 | { | ||
553 | return 0x00100e78U; | ||
554 | } | ||
555 | static inline u32 fb_mmu_l2tlb_ecc_uncorrected_err_count_total_s(void) | ||
556 | { | ||
557 | return 16U; | ||
558 | } | ||
559 | static inline u32 fb_mmu_l2tlb_ecc_uncorrected_err_count_total_f(u32 v) | ||
560 | { | ||
561 | return (v & 0xffffU) << 0U; | ||
562 | } | ||
563 | static inline u32 fb_mmu_l2tlb_ecc_uncorrected_err_count_total_m(void) | ||
564 | { | ||
565 | return 0xffffU << 0U; | ||
566 | } | ||
567 | static inline u32 fb_mmu_l2tlb_ecc_uncorrected_err_count_total_v(u32 r) | ||
568 | { | ||
569 | return (r >> 0U) & 0xffffU; | ||
570 | } | ||
571 | static inline u32 fb_mmu_l2tlb_ecc_address_r(void) | ||
572 | { | ||
573 | return 0x00100e7cU; | ||
574 | } | ||
575 | static inline u32 fb_mmu_l2tlb_ecc_address_index_s(void) | ||
576 | { | ||
577 | return 32U; | ||
578 | } | ||
579 | static inline u32 fb_mmu_l2tlb_ecc_address_index_f(u32 v) | ||
580 | { | ||
581 | return (v & 0xffffffffU) << 0U; | ||
582 | } | ||
583 | static inline u32 fb_mmu_l2tlb_ecc_address_index_m(void) | ||
584 | { | ||
585 | return 0xffffffffU << 0U; | ||
586 | } | ||
587 | static inline u32 fb_mmu_l2tlb_ecc_address_index_v(u32 r) | ||
588 | { | ||
589 | return (r >> 0U) & 0xffffffffU; | ||
590 | } | ||
591 | static inline u32 fb_mmu_hubtlb_ecc_status_r(void) | ||
592 | { | ||
593 | return 0x00100e84U; | ||
594 | } | ||
595 | static inline u32 fb_mmu_hubtlb_ecc_status_corrected_err_sa_data_m(void) | ||
596 | { | ||
597 | return 0x1U << 0U; | ||
598 | } | ||
599 | static inline u32 fb_mmu_hubtlb_ecc_status_uncorrected_err_sa_data_m(void) | ||
600 | { | ||
601 | return 0x1U << 1U; | ||
602 | } | ||
603 | static inline u32 fb_mmu_hubtlb_ecc_status_corrected_err_total_counter_overflow_m(void) | ||
604 | { | ||
605 | return 0x1U << 16U; | ||
606 | } | ||
607 | static inline u32 fb_mmu_hubtlb_ecc_status_uncorrected_err_total_counter_overflow_m(void) | ||
608 | { | ||
609 | return 0x1U << 18U; | ||
610 | } | ||
611 | static inline u32 fb_mmu_hubtlb_ecc_status_reset_f(u32 v) | ||
612 | { | ||
613 | return (v & 0x1U) << 30U; | ||
614 | } | ||
615 | static inline u32 fb_mmu_hubtlb_ecc_status_reset_clear_f(void) | ||
616 | { | ||
617 | return 0x40000000U; | ||
618 | } | ||
619 | static inline u32 fb_mmu_hubtlb_ecc_corrected_err_count_r(void) | ||
620 | { | ||
621 | return 0x00100e88U; | ||
622 | } | ||
623 | static inline u32 fb_mmu_hubtlb_ecc_corrected_err_count_total_s(void) | ||
624 | { | ||
625 | return 16U; | ||
626 | } | ||
627 | static inline u32 fb_mmu_hubtlb_ecc_corrected_err_count_total_f(u32 v) | ||
628 | { | ||
629 | return (v & 0xffffU) << 0U; | ||
630 | } | ||
631 | static inline u32 fb_mmu_hubtlb_ecc_corrected_err_count_total_m(void) | ||
632 | { | ||
633 | return 0xffffU << 0U; | ||
634 | } | ||
635 | static inline u32 fb_mmu_hubtlb_ecc_corrected_err_count_total_v(u32 r) | ||
636 | { | ||
637 | return (r >> 0U) & 0xffffU; | ||
638 | } | ||
639 | static inline u32 fb_mmu_hubtlb_ecc_uncorrected_err_count_r(void) | ||
640 | { | ||
641 | return 0x00100e8cU; | ||
642 | } | ||
643 | static inline u32 fb_mmu_hubtlb_ecc_uncorrected_err_count_total_s(void) | ||
644 | { | ||
645 | return 16U; | ||
646 | } | ||
647 | static inline u32 fb_mmu_hubtlb_ecc_uncorrected_err_count_total_f(u32 v) | ||
648 | { | ||
649 | return (v & 0xffffU) << 0U; | ||
650 | } | ||
651 | static inline u32 fb_mmu_hubtlb_ecc_uncorrected_err_count_total_m(void) | ||
652 | { | ||
653 | return 0xffffU << 0U; | ||
654 | } | ||
655 | static inline u32 fb_mmu_hubtlb_ecc_uncorrected_err_count_total_v(u32 r) | ||
656 | { | ||
657 | return (r >> 0U) & 0xffffU; | ||
658 | } | ||
659 | static inline u32 fb_mmu_hubtlb_ecc_address_r(void) | ||
660 | { | ||
661 | return 0x00100e90U; | ||
662 | } | ||
663 | static inline u32 fb_mmu_hubtlb_ecc_address_index_s(void) | ||
664 | { | ||
665 | return 32U; | ||
666 | } | ||
667 | static inline u32 fb_mmu_hubtlb_ecc_address_index_f(u32 v) | ||
668 | { | ||
669 | return (v & 0xffffffffU) << 0U; | ||
670 | } | ||
671 | static inline u32 fb_mmu_hubtlb_ecc_address_index_m(void) | ||
672 | { | ||
673 | return 0xffffffffU << 0U; | ||
674 | } | ||
675 | static inline u32 fb_mmu_hubtlb_ecc_address_index_v(u32 r) | ||
676 | { | ||
677 | return (r >> 0U) & 0xffffffffU; | ||
678 | } | ||
679 | static inline u32 fb_mmu_fillunit_ecc_status_r(void) | ||
680 | { | ||
681 | return 0x00100e98U; | ||
682 | } | ||
683 | static inline u32 fb_mmu_fillunit_ecc_status_corrected_err_pte_data_m(void) | ||
684 | { | ||
685 | return 0x1U << 0U; | ||
686 | } | ||
687 | static inline u32 fb_mmu_fillunit_ecc_status_uncorrected_err_pte_data_m(void) | ||
688 | { | ||
689 | return 0x1U << 1U; | ||
690 | } | ||
691 | static inline u32 fb_mmu_fillunit_ecc_status_corrected_err_pde0_data_m(void) | ||
692 | { | ||
693 | return 0x1U << 2U; | ||
694 | } | ||
695 | static inline u32 fb_mmu_fillunit_ecc_status_uncorrected_err_pde0_data_m(void) | ||
696 | { | ||
697 | return 0x1U << 3U; | ||
698 | } | ||
699 | static inline u32 fb_mmu_fillunit_ecc_status_corrected_err_total_counter_overflow_m(void) | ||
700 | { | ||
701 | return 0x1U << 16U; | ||
702 | } | ||
703 | static inline u32 fb_mmu_fillunit_ecc_status_uncorrected_err_total_counter_overflow_m(void) | ||
704 | { | ||
705 | return 0x1U << 18U; | ||
706 | } | ||
707 | static inline u32 fb_mmu_fillunit_ecc_status_reset_f(u32 v) | ||
708 | { | ||
709 | return (v & 0x1U) << 30U; | ||
710 | } | ||
711 | static inline u32 fb_mmu_fillunit_ecc_status_reset_clear_f(void) | ||
712 | { | ||
713 | return 0x40000000U; | ||
714 | } | ||
715 | static inline u32 fb_mmu_fillunit_ecc_corrected_err_count_r(void) | ||
716 | { | ||
717 | return 0x00100e9cU; | ||
718 | } | ||
719 | static inline u32 fb_mmu_fillunit_ecc_corrected_err_count_total_s(void) | ||
720 | { | ||
721 | return 16U; | ||
722 | } | ||
723 | static inline u32 fb_mmu_fillunit_ecc_corrected_err_count_total_f(u32 v) | ||
724 | { | ||
725 | return (v & 0xffffU) << 0U; | ||
726 | } | ||
727 | static inline u32 fb_mmu_fillunit_ecc_corrected_err_count_total_m(void) | ||
728 | { | ||
729 | return 0xffffU << 0U; | ||
730 | } | ||
731 | static inline u32 fb_mmu_fillunit_ecc_corrected_err_count_total_v(u32 r) | ||
732 | { | ||
733 | return (r >> 0U) & 0xffffU; | ||
734 | } | ||
735 | static inline u32 fb_mmu_fillunit_ecc_uncorrected_err_count_r(void) | ||
736 | { | ||
737 | return 0x00100ea0U; | ||
738 | } | ||
739 | static inline u32 fb_mmu_fillunit_ecc_uncorrected_err_count_total_s(void) | ||
740 | { | ||
741 | return 16U; | ||
742 | } | ||
743 | static inline u32 fb_mmu_fillunit_ecc_uncorrected_err_count_total_f(u32 v) | ||
744 | { | ||
745 | return (v & 0xffffU) << 0U; | ||
746 | } | ||
747 | static inline u32 fb_mmu_fillunit_ecc_uncorrected_err_count_total_m(void) | ||
748 | { | ||
749 | return 0xffffU << 0U; | ||
750 | } | ||
751 | static inline u32 fb_mmu_fillunit_ecc_uncorrected_err_count_total_v(u32 r) | ||
752 | { | ||
753 | return (r >> 0U) & 0xffffU; | ||
754 | } | ||
755 | static inline u32 fb_mmu_fillunit_ecc_address_r(void) | ||
756 | { | ||
757 | return 0x00100ea4U; | ||
758 | } | ||
759 | static inline u32 fb_mmu_fillunit_ecc_address_index_s(void) | ||
760 | { | ||
761 | return 32U; | ||
762 | } | ||
763 | static inline u32 fb_mmu_fillunit_ecc_address_index_f(u32 v) | ||
764 | { | ||
765 | return (v & 0xffffffffU) << 0U; | ||
766 | } | ||
767 | static inline u32 fb_mmu_fillunit_ecc_address_index_m(void) | ||
768 | { | ||
769 | return 0xffffffffU << 0U; | ||
770 | } | ||
771 | static inline u32 fb_mmu_fillunit_ecc_address_index_v(u32 r) | ||
772 | { | ||
773 | return (r >> 0U) & 0xffffffffU; | ||
774 | } | ||
775 | static inline u32 fb_niso_flush_sysmem_addr_r(void) | ||
776 | { | ||
777 | return 0x00100c10U; | ||
778 | } | ||
779 | static inline u32 fb_niso_intr_r(void) | ||
780 | { | ||
781 | return 0x00100a20U; | ||
782 | } | ||
783 | static inline u32 fb_niso_intr_hub_access_counter_notify_m(void) | ||
784 | { | ||
785 | return 0x1U << 0U; | ||
786 | } | ||
787 | static inline u32 fb_niso_intr_hub_access_counter_notify_pending_f(void) | ||
788 | { | ||
789 | return 0x1U; | ||
790 | } | ||
791 | static inline u32 fb_niso_intr_hub_access_counter_error_m(void) | ||
792 | { | ||
793 | return 0x1U << 1U; | ||
794 | } | ||
795 | static inline u32 fb_niso_intr_hub_access_counter_error_pending_f(void) | ||
796 | { | ||
797 | return 0x2U; | ||
798 | } | ||
799 | static inline u32 fb_niso_intr_mmu_replayable_fault_notify_m(void) | ||
800 | { | ||
801 | return 0x1U << 27U; | ||
802 | } | ||
803 | static inline u32 fb_niso_intr_mmu_replayable_fault_notify_pending_f(void) | ||
804 | { | ||
805 | return 0x8000000U; | ||
806 | } | ||
807 | static inline u32 fb_niso_intr_mmu_replayable_fault_overflow_m(void) | ||
808 | { | ||
809 | return 0x1U << 28U; | ||
810 | } | ||
811 | static inline u32 fb_niso_intr_mmu_replayable_fault_overflow_pending_f(void) | ||
812 | { | ||
813 | return 0x10000000U; | ||
814 | } | ||
815 | static inline u32 fb_niso_intr_mmu_nonreplayable_fault_notify_m(void) | ||
816 | { | ||
817 | return 0x1U << 29U; | ||
818 | } | ||
819 | static inline u32 fb_niso_intr_mmu_nonreplayable_fault_notify_pending_f(void) | ||
820 | { | ||
821 | return 0x20000000U; | ||
822 | } | ||
823 | static inline u32 fb_niso_intr_mmu_nonreplayable_fault_overflow_m(void) | ||
824 | { | ||
825 | return 0x1U << 30U; | ||
826 | } | ||
827 | static inline u32 fb_niso_intr_mmu_nonreplayable_fault_overflow_pending_f(void) | ||
828 | { | ||
829 | return 0x40000000U; | ||
830 | } | ||
831 | static inline u32 fb_niso_intr_mmu_other_fault_notify_m(void) | ||
832 | { | ||
833 | return 0x1U << 31U; | ||
834 | } | ||
835 | static inline u32 fb_niso_intr_mmu_other_fault_notify_pending_f(void) | ||
836 | { | ||
837 | return 0x80000000U; | ||
838 | } | ||
839 | static inline u32 fb_niso_intr_mmu_ecc_uncorrected_error_notify_m(void) | ||
840 | { | ||
841 | return 0x1U << 26U; | ||
842 | } | ||
843 | static inline u32 fb_niso_intr_mmu_ecc_uncorrected_error_notify_pending_f(void) | ||
844 | { | ||
845 | return 0x4000000U; | ||
846 | } | ||
847 | static inline u32 fb_niso_intr_en_r(u32 i) | ||
848 | { | ||
849 | return 0x00100a24U + i*4U; | ||
850 | } | ||
851 | static inline u32 fb_niso_intr_en__size_1_v(void) | ||
852 | { | ||
853 | return 0x00000002U; | ||
854 | } | ||
855 | static inline u32 fb_niso_intr_en_hub_access_counter_notify_f(u32 v) | ||
856 | { | ||
857 | return (v & 0x1U) << 0U; | ||
858 | } | ||
859 | static inline u32 fb_niso_intr_en_hub_access_counter_notify_enabled_f(void) | ||
860 | { | ||
861 | return 0x1U; | ||
862 | } | ||
863 | static inline u32 fb_niso_intr_en_hub_access_counter_error_f(u32 v) | ||
864 | { | ||
865 | return (v & 0x1U) << 1U; | ||
866 | } | ||
867 | static inline u32 fb_niso_intr_en_hub_access_counter_error_enabled_f(void) | ||
868 | { | ||
869 | return 0x2U; | ||
870 | } | ||
871 | static inline u32 fb_niso_intr_en_mmu_replayable_fault_notify_f(u32 v) | ||
872 | { | ||
873 | return (v & 0x1U) << 27U; | ||
874 | } | ||
875 | static inline u32 fb_niso_intr_en_mmu_replayable_fault_notify_enabled_f(void) | ||
876 | { | ||
877 | return 0x8000000U; | ||
878 | } | ||
879 | static inline u32 fb_niso_intr_en_mmu_replayable_fault_overflow_f(u32 v) | ||
880 | { | ||
881 | return (v & 0x1U) << 28U; | ||
882 | } | ||
883 | static inline u32 fb_niso_intr_en_mmu_replayable_fault_overflow_enabled_f(void) | ||
884 | { | ||
885 | return 0x10000000U; | ||
886 | } | ||
887 | static inline u32 fb_niso_intr_en_mmu_nonreplayable_fault_notify_f(u32 v) | ||
888 | { | ||
889 | return (v & 0x1U) << 29U; | ||
890 | } | ||
891 | static inline u32 fb_niso_intr_en_mmu_nonreplayable_fault_notify_enabled_f(void) | ||
892 | { | ||
893 | return 0x20000000U; | ||
894 | } | ||
895 | static inline u32 fb_niso_intr_en_mmu_nonreplayable_fault_overflow_f(u32 v) | ||
896 | { | ||
897 | return (v & 0x1U) << 30U; | ||
898 | } | ||
899 | static inline u32 fb_niso_intr_en_mmu_nonreplayable_fault_overflow_enabled_f(void) | ||
900 | { | ||
901 | return 0x40000000U; | ||
902 | } | ||
903 | static inline u32 fb_niso_intr_en_mmu_other_fault_notify_f(u32 v) | ||
904 | { | ||
905 | return (v & 0x1U) << 31U; | ||
906 | } | ||
907 | static inline u32 fb_niso_intr_en_mmu_other_fault_notify_enabled_f(void) | ||
908 | { | ||
909 | return 0x80000000U; | ||
910 | } | ||
911 | static inline u32 fb_niso_intr_en_mmu_ecc_uncorrected_error_notify_f(u32 v) | ||
912 | { | ||
913 | return (v & 0x1U) << 26U; | ||
914 | } | ||
915 | static inline u32 fb_niso_intr_en_mmu_ecc_uncorrected_error_notify_enabled_f(void) | ||
916 | { | ||
917 | return 0x4000000U; | ||
918 | } | ||
919 | static inline u32 fb_niso_intr_en_set_r(u32 i) | ||
920 | { | ||
921 | return 0x00100a2cU + i*4U; | ||
922 | } | ||
923 | static inline u32 fb_niso_intr_en_set__size_1_v(void) | ||
924 | { | ||
925 | return 0x00000002U; | ||
926 | } | ||
927 | static inline u32 fb_niso_intr_en_set_hub_access_counter_notify_m(void) | ||
928 | { | ||
929 | return 0x1U << 0U; | ||
930 | } | ||
931 | static inline u32 fb_niso_intr_en_set_hub_access_counter_notify_set_f(void) | ||
932 | { | ||
933 | return 0x1U; | ||
934 | } | ||
935 | static inline u32 fb_niso_intr_en_set_hub_access_counter_error_m(void) | ||
936 | { | ||
937 | return 0x1U << 1U; | ||
938 | } | ||
939 | static inline u32 fb_niso_intr_en_set_hub_access_counter_error_set_f(void) | ||
940 | { | ||
941 | return 0x2U; | ||
942 | } | ||
943 | static inline u32 fb_niso_intr_en_set_mmu_replayable_fault_notify_m(void) | ||
944 | { | ||
945 | return 0x1U << 27U; | ||
946 | } | ||
947 | static inline u32 fb_niso_intr_en_set_mmu_replayable_fault_notify_set_f(void) | ||
948 | { | ||
949 | return 0x8000000U; | ||
950 | } | ||
951 | static inline u32 fb_niso_intr_en_set_mmu_replayable_fault_overflow_m(void) | ||
952 | { | ||
953 | return 0x1U << 28U; | ||
954 | } | ||
955 | static inline u32 fb_niso_intr_en_set_mmu_replayable_fault_overflow_set_f(void) | ||
956 | { | ||
957 | return 0x10000000U; | ||
958 | } | ||
959 | static inline u32 fb_niso_intr_en_set_mmu_nonreplayable_fault_notify_m(void) | ||
960 | { | ||
961 | return 0x1U << 29U; | ||
962 | } | ||
963 | static inline u32 fb_niso_intr_en_set_mmu_nonreplayable_fault_notify_set_f(void) | ||
964 | { | ||
965 | return 0x20000000U; | ||
966 | } | ||
967 | static inline u32 fb_niso_intr_en_set_mmu_nonreplayable_fault_overflow_m(void) | ||
968 | { | ||
969 | return 0x1U << 30U; | ||
970 | } | ||
971 | static inline u32 fb_niso_intr_en_set_mmu_nonreplayable_fault_overflow_set_f(void) | ||
972 | { | ||
973 | return 0x40000000U; | ||
974 | } | ||
975 | static inline u32 fb_niso_intr_en_set_mmu_other_fault_notify_m(void) | ||
976 | { | ||
977 | return 0x1U << 31U; | ||
978 | } | ||
979 | static inline u32 fb_niso_intr_en_set_mmu_other_fault_notify_set_f(void) | ||
980 | { | ||
981 | return 0x80000000U; | ||
982 | } | ||
983 | static inline u32 fb_niso_intr_en_set_mmu_ecc_uncorrected_error_notify_m(void) | ||
984 | { | ||
985 | return 0x1U << 26U; | ||
986 | } | ||
987 | static inline u32 fb_niso_intr_en_set_mmu_ecc_uncorrected_error_notify_set_f(void) | ||
988 | { | ||
989 | return 0x4000000U; | ||
990 | } | ||
991 | static inline u32 fb_niso_intr_en_clr_r(u32 i) | ||
992 | { | ||
993 | return 0x00100a34U + i*4U; | ||
994 | } | ||
995 | static inline u32 fb_niso_intr_en_clr__size_1_v(void) | ||
996 | { | ||
997 | return 0x00000002U; | ||
998 | } | ||
999 | static inline u32 fb_niso_intr_en_clr_hub_access_counter_notify_m(void) | ||
1000 | { | ||
1001 | return 0x1U << 0U; | ||
1002 | } | ||
1003 | static inline u32 fb_niso_intr_en_clr_hub_access_counter_notify_set_f(void) | ||
1004 | { | ||
1005 | return 0x1U; | ||
1006 | } | ||
1007 | static inline u32 fb_niso_intr_en_clr_hub_access_counter_error_m(void) | ||
1008 | { | ||
1009 | return 0x1U << 1U; | ||
1010 | } | ||
1011 | static inline u32 fb_niso_intr_en_clr_hub_access_counter_error_set_f(void) | ||
1012 | { | ||
1013 | return 0x2U; | ||
1014 | } | ||
1015 | static inline u32 fb_niso_intr_en_clr_mmu_replayable_fault_notify_m(void) | ||
1016 | { | ||
1017 | return 0x1U << 27U; | ||
1018 | } | ||
1019 | static inline u32 fb_niso_intr_en_clr_mmu_replayable_fault_notify_set_f(void) | ||
1020 | { | ||
1021 | return 0x8000000U; | ||
1022 | } | ||
1023 | static inline u32 fb_niso_intr_en_clr_mmu_replayable_fault_overflow_m(void) | ||
1024 | { | ||
1025 | return 0x1U << 28U; | ||
1026 | } | ||
1027 | static inline u32 fb_niso_intr_en_clr_mmu_replayable_fault_overflow_set_f(void) | ||
1028 | { | ||
1029 | return 0x10000000U; | ||
1030 | } | ||
1031 | static inline u32 fb_niso_intr_en_clr_mmu_nonreplayable_fault_notify_m(void) | ||
1032 | { | ||
1033 | return 0x1U << 29U; | ||
1034 | } | ||
1035 | static inline u32 fb_niso_intr_en_clr_mmu_nonreplayable_fault_notify_set_f(void) | ||
1036 | { | ||
1037 | return 0x20000000U; | ||
1038 | } | ||
1039 | static inline u32 fb_niso_intr_en_clr_mmu_nonreplayable_fault_overflow_m(void) | ||
1040 | { | ||
1041 | return 0x1U << 30U; | ||
1042 | } | ||
1043 | static inline u32 fb_niso_intr_en_clr_mmu_nonreplayable_fault_overflow_set_f(void) | ||
1044 | { | ||
1045 | return 0x40000000U; | ||
1046 | } | ||
1047 | static inline u32 fb_niso_intr_en_clr_mmu_other_fault_notify_m(void) | ||
1048 | { | ||
1049 | return 0x1U << 31U; | ||
1050 | } | ||
1051 | static inline u32 fb_niso_intr_en_clr_mmu_other_fault_notify_set_f(void) | ||
1052 | { | ||
1053 | return 0x80000000U; | ||
1054 | } | ||
1055 | static inline u32 fb_niso_intr_en_clr_mmu_ecc_uncorrected_error_notify_m(void) | ||
1056 | { | ||
1057 | return 0x1U << 26U; | ||
1058 | } | ||
1059 | static inline u32 fb_niso_intr_en_clr_mmu_ecc_uncorrected_error_notify_set_f(void) | ||
1060 | { | ||
1061 | return 0x4000000U; | ||
1062 | } | ||
1063 | static inline u32 fb_niso_intr_en_clr_mmu_non_replay_fault_buffer_v(void) | ||
1064 | { | ||
1065 | return 0x00000000U; | ||
1066 | } | ||
1067 | static inline u32 fb_niso_intr_en_clr_mmu_replay_fault_buffer_v(void) | ||
1068 | { | ||
1069 | return 0x00000001U; | ||
1070 | } | ||
1071 | static inline u32 fb_mmu_fault_buffer_lo_r(u32 i) | ||
1072 | { | ||
1073 | return 0x00100e24U + i*20U; | ||
1074 | } | ||
1075 | static inline u32 fb_mmu_fault_buffer_lo__size_1_v(void) | ||
1076 | { | ||
1077 | return 0x00000002U; | ||
1078 | } | ||
1079 | static inline u32 fb_mmu_fault_buffer_lo_addr_mode_f(u32 v) | ||
1080 | { | ||
1081 | return (v & 0x1U) << 0U; | ||
1082 | } | ||
1083 | static inline u32 fb_mmu_fault_buffer_lo_addr_mode_v(u32 r) | ||
1084 | { | ||
1085 | return (r >> 0U) & 0x1U; | ||
1086 | } | ||
1087 | static inline u32 fb_mmu_fault_buffer_lo_addr_mode_virtual_v(void) | ||
1088 | { | ||
1089 | return 0x00000000U; | ||
1090 | } | ||
1091 | static inline u32 fb_mmu_fault_buffer_lo_addr_mode_virtual_f(void) | ||
1092 | { | ||
1093 | return 0x0U; | ||
1094 | } | ||
1095 | static inline u32 fb_mmu_fault_buffer_lo_addr_mode_physical_v(void) | ||
1096 | { | ||
1097 | return 0x00000001U; | ||
1098 | } | ||
1099 | static inline u32 fb_mmu_fault_buffer_lo_addr_mode_physical_f(void) | ||
1100 | { | ||
1101 | return 0x1U; | ||
1102 | } | ||
1103 | static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_f(u32 v) | ||
1104 | { | ||
1105 | return (v & 0x3U) << 1U; | ||
1106 | } | ||
1107 | static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_v(u32 r) | ||
1108 | { | ||
1109 | return (r >> 1U) & 0x3U; | ||
1110 | } | ||
1111 | static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_sys_coh_v(void) | ||
1112 | { | ||
1113 | return 0x00000002U; | ||
1114 | } | ||
1115 | static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_sys_coh_f(void) | ||
1116 | { | ||
1117 | return 0x4U; | ||
1118 | } | ||
1119 | static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_sys_nocoh_v(void) | ||
1120 | { | ||
1121 | return 0x00000003U; | ||
1122 | } | ||
1123 | static inline u32 fb_mmu_fault_buffer_lo_phys_aperture_sys_nocoh_f(void) | ||
1124 | { | ||
1125 | return 0x6U; | ||
1126 | } | ||
1127 | static inline u32 fb_mmu_fault_buffer_lo_phys_vol_f(u32 v) | ||
1128 | { | ||
1129 | return (v & 0x1U) << 3U; | ||
1130 | } | ||
1131 | static inline u32 fb_mmu_fault_buffer_lo_phys_vol_v(u32 r) | ||
1132 | { | ||
1133 | return (r >> 3U) & 0x1U; | ||
1134 | } | ||
1135 | static inline u32 fb_mmu_fault_buffer_lo_addr_f(u32 v) | ||
1136 | { | ||
1137 | return (v & 0xfffffU) << 12U; | ||
1138 | } | ||
1139 | static inline u32 fb_mmu_fault_buffer_lo_addr_v(u32 r) | ||
1140 | { | ||
1141 | return (r >> 12U) & 0xfffffU; | ||
1142 | } | ||
1143 | static inline u32 fb_mmu_fault_buffer_lo_addr_b(void) | ||
1144 | { | ||
1145 | return 12U; | ||
1146 | } | ||
1147 | static inline u32 fb_mmu_fault_buffer_hi_r(u32 i) | ||
1148 | { | ||
1149 | return 0x00100e28U + i*20U; | ||
1150 | } | ||
1151 | static inline u32 fb_mmu_fault_buffer_hi__size_1_v(void) | ||
1152 | { | ||
1153 | return 0x00000002U; | ||
1154 | } | ||
1155 | static inline u32 fb_mmu_fault_buffer_hi_addr_f(u32 v) | ||
1156 | { | ||
1157 | return (v & 0xffffffffU) << 0U; | ||
1158 | } | ||
1159 | static inline u32 fb_mmu_fault_buffer_hi_addr_v(u32 r) | ||
1160 | { | ||
1161 | return (r >> 0U) & 0xffffffffU; | ||
1162 | } | ||
1163 | static inline u32 fb_mmu_fault_buffer_get_r(u32 i) | ||
1164 | { | ||
1165 | return 0x00100e2cU + i*20U; | ||
1166 | } | ||
1167 | static inline u32 fb_mmu_fault_buffer_get__size_1_v(void) | ||
1168 | { | ||
1169 | return 0x00000002U; | ||
1170 | } | ||
1171 | static inline u32 fb_mmu_fault_buffer_get_ptr_f(u32 v) | ||
1172 | { | ||
1173 | return (v & 0xfffffU) << 0U; | ||
1174 | } | ||
1175 | static inline u32 fb_mmu_fault_buffer_get_ptr_m(void) | ||
1176 | { | ||
1177 | return 0xfffffU << 0U; | ||
1178 | } | ||
1179 | static inline u32 fb_mmu_fault_buffer_get_ptr_v(u32 r) | ||
1180 | { | ||
1181 | return (r >> 0U) & 0xfffffU; | ||
1182 | } | ||
1183 | static inline u32 fb_mmu_fault_buffer_get_getptr_corrupted_f(u32 v) | ||
1184 | { | ||
1185 | return (v & 0x1U) << 30U; | ||
1186 | } | ||
1187 | static inline u32 fb_mmu_fault_buffer_get_getptr_corrupted_m(void) | ||
1188 | { | ||
1189 | return 0x1U << 30U; | ||
1190 | } | ||
1191 | static inline u32 fb_mmu_fault_buffer_get_getptr_corrupted_clear_v(void) | ||
1192 | { | ||
1193 | return 0x00000001U; | ||
1194 | } | ||
1195 | static inline u32 fb_mmu_fault_buffer_get_getptr_corrupted_clear_f(void) | ||
1196 | { | ||
1197 | return 0x40000000U; | ||
1198 | } | ||
1199 | static inline u32 fb_mmu_fault_buffer_get_overflow_f(u32 v) | ||
1200 | { | ||
1201 | return (v & 0x1U) << 31U; | ||
1202 | } | ||
1203 | static inline u32 fb_mmu_fault_buffer_get_overflow_m(void) | ||
1204 | { | ||
1205 | return 0x1U << 31U; | ||
1206 | } | ||
1207 | static inline u32 fb_mmu_fault_buffer_get_overflow_clear_v(void) | ||
1208 | { | ||
1209 | return 0x00000001U; | ||
1210 | } | ||
1211 | static inline u32 fb_mmu_fault_buffer_get_overflow_clear_f(void) | ||
1212 | { | ||
1213 | return 0x80000000U; | ||
1214 | } | ||
1215 | static inline u32 fb_mmu_fault_buffer_put_r(u32 i) | ||
1216 | { | ||
1217 | return 0x00100e30U + i*20U; | ||
1218 | } | ||
1219 | static inline u32 fb_mmu_fault_buffer_put__size_1_v(void) | ||
1220 | { | ||
1221 | return 0x00000002U; | ||
1222 | } | ||
1223 | static inline u32 fb_mmu_fault_buffer_put_ptr_f(u32 v) | ||
1224 | { | ||
1225 | return (v & 0xfffffU) << 0U; | ||
1226 | } | ||
1227 | static inline u32 fb_mmu_fault_buffer_put_ptr_v(u32 r) | ||
1228 | { | ||
1229 | return (r >> 0U) & 0xfffffU; | ||
1230 | } | ||
1231 | static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_f(u32 v) | ||
1232 | { | ||
1233 | return (v & 0x1U) << 30U; | ||
1234 | } | ||
1235 | static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_v(u32 r) | ||
1236 | { | ||
1237 | return (r >> 30U) & 0x1U; | ||
1238 | } | ||
1239 | static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_yes_v(void) | ||
1240 | { | ||
1241 | return 0x00000001U; | ||
1242 | } | ||
1243 | static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_yes_f(void) | ||
1244 | { | ||
1245 | return 0x40000000U; | ||
1246 | } | ||
1247 | static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_no_v(void) | ||
1248 | { | ||
1249 | return 0x00000000U; | ||
1250 | } | ||
1251 | static inline u32 fb_mmu_fault_buffer_put_getptr_corrupted_no_f(void) | ||
1252 | { | ||
1253 | return 0x0U; | ||
1254 | } | ||
1255 | static inline u32 fb_mmu_fault_buffer_put_overflow_f(u32 v) | ||
1256 | { | ||
1257 | return (v & 0x1U) << 31U; | ||
1258 | } | ||
1259 | static inline u32 fb_mmu_fault_buffer_put_overflow_v(u32 r) | ||
1260 | { | ||
1261 | return (r >> 31U) & 0x1U; | ||
1262 | } | ||
1263 | static inline u32 fb_mmu_fault_buffer_put_overflow_yes_v(void) | ||
1264 | { | ||
1265 | return 0x00000001U; | ||
1266 | } | ||
1267 | static inline u32 fb_mmu_fault_buffer_put_overflow_yes_f(void) | ||
1268 | { | ||
1269 | return 0x80000000U; | ||
1270 | } | ||
1271 | static inline u32 fb_mmu_fault_buffer_size_r(u32 i) | ||
1272 | { | ||
1273 | return 0x00100e34U + i*20U; | ||
1274 | } | ||
1275 | static inline u32 fb_mmu_fault_buffer_size__size_1_v(void) | ||
1276 | { | ||
1277 | return 0x00000002U; | ||
1278 | } | ||
1279 | static inline u32 fb_mmu_fault_buffer_size_val_f(u32 v) | ||
1280 | { | ||
1281 | return (v & 0xfffffU) << 0U; | ||
1282 | } | ||
1283 | static inline u32 fb_mmu_fault_buffer_size_val_v(u32 r) | ||
1284 | { | ||
1285 | return (r >> 0U) & 0xfffffU; | ||
1286 | } | ||
1287 | static inline u32 fb_mmu_fault_buffer_size_overflow_intr_f(u32 v) | ||
1288 | { | ||
1289 | return (v & 0x1U) << 29U; | ||
1290 | } | ||
1291 | static inline u32 fb_mmu_fault_buffer_size_overflow_intr_v(u32 r) | ||
1292 | { | ||
1293 | return (r >> 29U) & 0x1U; | ||
1294 | } | ||
1295 | static inline u32 fb_mmu_fault_buffer_size_overflow_intr_enable_v(void) | ||
1296 | { | ||
1297 | return 0x00000001U; | ||
1298 | } | ||
1299 | static inline u32 fb_mmu_fault_buffer_size_overflow_intr_enable_f(void) | ||
1300 | { | ||
1301 | return 0x20000000U; | ||
1302 | } | ||
1303 | static inline u32 fb_mmu_fault_buffer_size_set_default_f(u32 v) | ||
1304 | { | ||
1305 | return (v & 0x1U) << 30U; | ||
1306 | } | ||
1307 | static inline u32 fb_mmu_fault_buffer_size_set_default_v(u32 r) | ||
1308 | { | ||
1309 | return (r >> 30U) & 0x1U; | ||
1310 | } | ||
1311 | static inline u32 fb_mmu_fault_buffer_size_set_default_yes_v(void) | ||
1312 | { | ||
1313 | return 0x00000001U; | ||
1314 | } | ||
1315 | static inline u32 fb_mmu_fault_buffer_size_set_default_yes_f(void) | ||
1316 | { | ||
1317 | return 0x40000000U; | ||
1318 | } | ||
1319 | static inline u32 fb_mmu_fault_buffer_size_enable_f(u32 v) | ||
1320 | { | ||
1321 | return (v & 0x1U) << 31U; | ||
1322 | } | ||
1323 | static inline u32 fb_mmu_fault_buffer_size_enable_m(void) | ||
1324 | { | ||
1325 | return 0x1U << 31U; | ||
1326 | } | ||
1327 | static inline u32 fb_mmu_fault_buffer_size_enable_v(u32 r) | ||
1328 | { | ||
1329 | return (r >> 31U) & 0x1U; | ||
1330 | } | ||
1331 | static inline u32 fb_mmu_fault_buffer_size_enable_true_v(void) | ||
1332 | { | ||
1333 | return 0x00000001U; | ||
1334 | } | ||
1335 | static inline u32 fb_mmu_fault_buffer_size_enable_true_f(void) | ||
1336 | { | ||
1337 | return 0x80000000U; | ||
1338 | } | ||
1339 | static inline u32 fb_mmu_fault_addr_lo_r(void) | ||
1340 | { | ||
1341 | return 0x00100e4cU; | ||
1342 | } | ||
1343 | static inline u32 fb_mmu_fault_addr_lo_phys_aperture_f(u32 v) | ||
1344 | { | ||
1345 | return (v & 0x3U) << 0U; | ||
1346 | } | ||
1347 | static inline u32 fb_mmu_fault_addr_lo_phys_aperture_v(u32 r) | ||
1348 | { | ||
1349 | return (r >> 0U) & 0x3U; | ||
1350 | } | ||
1351 | static inline u32 fb_mmu_fault_addr_lo_phys_aperture_sys_coh_v(void) | ||
1352 | { | ||
1353 | return 0x00000002U; | ||
1354 | } | ||
1355 | static inline u32 fb_mmu_fault_addr_lo_phys_aperture_sys_coh_f(void) | ||
1356 | { | ||
1357 | return 0x2U; | ||
1358 | } | ||
1359 | static inline u32 fb_mmu_fault_addr_lo_phys_aperture_sys_nocoh_v(void) | ||
1360 | { | ||
1361 | return 0x00000003U; | ||
1362 | } | ||
1363 | static inline u32 fb_mmu_fault_addr_lo_phys_aperture_sys_nocoh_f(void) | ||
1364 | { | ||
1365 | return 0x3U; | ||
1366 | } | ||
1367 | static inline u32 fb_mmu_fault_addr_lo_addr_f(u32 v) | ||
1368 | { | ||
1369 | return (v & 0xfffffU) << 12U; | ||
1370 | } | ||
1371 | static inline u32 fb_mmu_fault_addr_lo_addr_v(u32 r) | ||
1372 | { | ||
1373 | return (r >> 12U) & 0xfffffU; | ||
1374 | } | ||
1375 | static inline u32 fb_mmu_fault_addr_lo_addr_b(void) | ||
1376 | { | ||
1377 | return 12U; | ||
1378 | } | ||
1379 | static inline u32 fb_mmu_fault_addr_hi_r(void) | ||
1380 | { | ||
1381 | return 0x00100e50U; | ||
1382 | } | ||
1383 | static inline u32 fb_mmu_fault_addr_hi_addr_f(u32 v) | ||
1384 | { | ||
1385 | return (v & 0xffffffffU) << 0U; | ||
1386 | } | ||
1387 | static inline u32 fb_mmu_fault_addr_hi_addr_v(u32 r) | ||
1388 | { | ||
1389 | return (r >> 0U) & 0xffffffffU; | ||
1390 | } | ||
1391 | static inline u32 fb_mmu_fault_inst_lo_r(void) | ||
1392 | { | ||
1393 | return 0x00100e54U; | ||
1394 | } | ||
1395 | static inline u32 fb_mmu_fault_inst_lo_engine_id_v(u32 r) | ||
1396 | { | ||
1397 | return (r >> 0U) & 0x1ffU; | ||
1398 | } | ||
1399 | static inline u32 fb_mmu_fault_inst_lo_aperture_v(u32 r) | ||
1400 | { | ||
1401 | return (r >> 10U) & 0x3U; | ||
1402 | } | ||
1403 | static inline u32 fb_mmu_fault_inst_lo_aperture_sys_coh_v(void) | ||
1404 | { | ||
1405 | return 0x00000002U; | ||
1406 | } | ||
1407 | static inline u32 fb_mmu_fault_inst_lo_aperture_sys_nocoh_v(void) | ||
1408 | { | ||
1409 | return 0x00000003U; | ||
1410 | } | ||
1411 | static inline u32 fb_mmu_fault_inst_lo_addr_f(u32 v) | ||
1412 | { | ||
1413 | return (v & 0xfffffU) << 12U; | ||
1414 | } | ||
1415 | static inline u32 fb_mmu_fault_inst_lo_addr_v(u32 r) | ||
1416 | { | ||
1417 | return (r >> 12U) & 0xfffffU; | ||
1418 | } | ||
1419 | static inline u32 fb_mmu_fault_inst_lo_addr_b(void) | ||
1420 | { | ||
1421 | return 12U; | ||
1422 | } | ||
1423 | static inline u32 fb_mmu_fault_inst_hi_r(void) | ||
1424 | { | ||
1425 | return 0x00100e58U; | ||
1426 | } | ||
1427 | static inline u32 fb_mmu_fault_inst_hi_addr_v(u32 r) | ||
1428 | { | ||
1429 | return (r >> 0U) & 0xffffffffU; | ||
1430 | } | ||
1431 | static inline u32 fb_mmu_fault_info_r(void) | ||
1432 | { | ||
1433 | return 0x00100e5cU; | ||
1434 | } | ||
1435 | static inline u32 fb_mmu_fault_info_fault_type_v(u32 r) | ||
1436 | { | ||
1437 | return (r >> 0U) & 0x1fU; | ||
1438 | } | ||
1439 | static inline u32 fb_mmu_fault_info_replayable_fault_v(u32 r) | ||
1440 | { | ||
1441 | return (r >> 7U) & 0x1U; | ||
1442 | } | ||
1443 | static inline u32 fb_mmu_fault_info_client_v(u32 r) | ||
1444 | { | ||
1445 | return (r >> 8U) & 0x7fU; | ||
1446 | } | ||
1447 | static inline u32 fb_mmu_fault_info_access_type_v(u32 r) | ||
1448 | { | ||
1449 | return (r >> 16U) & 0xfU; | ||
1450 | } | ||
1451 | static inline u32 fb_mmu_fault_info_client_type_v(u32 r) | ||
1452 | { | ||
1453 | return (r >> 20U) & 0x1U; | ||
1454 | } | ||
1455 | static inline u32 fb_mmu_fault_info_gpc_id_v(u32 r) | ||
1456 | { | ||
1457 | return (r >> 24U) & 0x1fU; | ||
1458 | } | ||
1459 | static inline u32 fb_mmu_fault_info_protected_mode_v(u32 r) | ||
1460 | { | ||
1461 | return (r >> 29U) & 0x1U; | ||
1462 | } | ||
1463 | static inline u32 fb_mmu_fault_info_replayable_fault_en_v(u32 r) | ||
1464 | { | ||
1465 | return (r >> 30U) & 0x1U; | ||
1466 | } | ||
1467 | static inline u32 fb_mmu_fault_info_valid_v(u32 r) | ||
1468 | { | ||
1469 | return (r >> 31U) & 0x1U; | ||
1470 | } | ||
1471 | static inline u32 fb_mmu_fault_status_r(void) | ||
1472 | { | ||
1473 | return 0x00100e60U; | ||
1474 | } | ||
1475 | static inline u32 fb_mmu_fault_status_dropped_bar1_phys_m(void) | ||
1476 | { | ||
1477 | return 0x1U << 0U; | ||
1478 | } | ||
1479 | static inline u32 fb_mmu_fault_status_dropped_bar1_phys_set_v(void) | ||
1480 | { | ||
1481 | return 0x00000001U; | ||
1482 | } | ||
1483 | static inline u32 fb_mmu_fault_status_dropped_bar1_phys_set_f(void) | ||
1484 | { | ||
1485 | return 0x1U; | ||
1486 | } | ||
1487 | static inline u32 fb_mmu_fault_status_dropped_bar1_phys_clear_v(void) | ||
1488 | { | ||
1489 | return 0x00000001U; | ||
1490 | } | ||
1491 | static inline u32 fb_mmu_fault_status_dropped_bar1_phys_clear_f(void) | ||
1492 | { | ||
1493 | return 0x1U; | ||
1494 | } | ||
1495 | static inline u32 fb_mmu_fault_status_dropped_bar1_virt_m(void) | ||
1496 | { | ||
1497 | return 0x1U << 1U; | ||
1498 | } | ||
1499 | static inline u32 fb_mmu_fault_status_dropped_bar1_virt_set_v(void) | ||
1500 | { | ||
1501 | return 0x00000001U; | ||
1502 | } | ||
1503 | static inline u32 fb_mmu_fault_status_dropped_bar1_virt_set_f(void) | ||
1504 | { | ||
1505 | return 0x2U; | ||
1506 | } | ||
1507 | static inline u32 fb_mmu_fault_status_dropped_bar1_virt_clear_v(void) | ||
1508 | { | ||
1509 | return 0x00000001U; | ||
1510 | } | ||
1511 | static inline u32 fb_mmu_fault_status_dropped_bar1_virt_clear_f(void) | ||
1512 | { | ||
1513 | return 0x2U; | ||
1514 | } | ||
1515 | static inline u32 fb_mmu_fault_status_dropped_bar2_phys_m(void) | ||
1516 | { | ||
1517 | return 0x1U << 2U; | ||
1518 | } | ||
1519 | static inline u32 fb_mmu_fault_status_dropped_bar2_phys_set_v(void) | ||
1520 | { | ||
1521 | return 0x00000001U; | ||
1522 | } | ||
1523 | static inline u32 fb_mmu_fault_status_dropped_bar2_phys_set_f(void) | ||
1524 | { | ||
1525 | return 0x4U; | ||
1526 | } | ||
1527 | static inline u32 fb_mmu_fault_status_dropped_bar2_phys_clear_v(void) | ||
1528 | { | ||
1529 | return 0x00000001U; | ||
1530 | } | ||
1531 | static inline u32 fb_mmu_fault_status_dropped_bar2_phys_clear_f(void) | ||
1532 | { | ||
1533 | return 0x4U; | ||
1534 | } | ||
1535 | static inline u32 fb_mmu_fault_status_dropped_bar2_virt_m(void) | ||
1536 | { | ||
1537 | return 0x1U << 3U; | ||
1538 | } | ||
1539 | static inline u32 fb_mmu_fault_status_dropped_bar2_virt_set_v(void) | ||
1540 | { | ||
1541 | return 0x00000001U; | ||
1542 | } | ||
1543 | static inline u32 fb_mmu_fault_status_dropped_bar2_virt_set_f(void) | ||
1544 | { | ||
1545 | return 0x8U; | ||
1546 | } | ||
1547 | static inline u32 fb_mmu_fault_status_dropped_bar2_virt_clear_v(void) | ||
1548 | { | ||
1549 | return 0x00000001U; | ||
1550 | } | ||
1551 | static inline u32 fb_mmu_fault_status_dropped_bar2_virt_clear_f(void) | ||
1552 | { | ||
1553 | return 0x8U; | ||
1554 | } | ||
1555 | static inline u32 fb_mmu_fault_status_dropped_ifb_phys_m(void) | ||
1556 | { | ||
1557 | return 0x1U << 4U; | ||
1558 | } | ||
1559 | static inline u32 fb_mmu_fault_status_dropped_ifb_phys_set_v(void) | ||
1560 | { | ||
1561 | return 0x00000001U; | ||
1562 | } | ||
1563 | static inline u32 fb_mmu_fault_status_dropped_ifb_phys_set_f(void) | ||
1564 | { | ||
1565 | return 0x10U; | ||
1566 | } | ||
1567 | static inline u32 fb_mmu_fault_status_dropped_ifb_phys_clear_v(void) | ||
1568 | { | ||
1569 | return 0x00000001U; | ||
1570 | } | ||
1571 | static inline u32 fb_mmu_fault_status_dropped_ifb_phys_clear_f(void) | ||
1572 | { | ||
1573 | return 0x10U; | ||
1574 | } | ||
1575 | static inline u32 fb_mmu_fault_status_dropped_ifb_virt_m(void) | ||
1576 | { | ||
1577 | return 0x1U << 5U; | ||
1578 | } | ||
1579 | static inline u32 fb_mmu_fault_status_dropped_ifb_virt_set_v(void) | ||
1580 | { | ||
1581 | return 0x00000001U; | ||
1582 | } | ||
1583 | static inline u32 fb_mmu_fault_status_dropped_ifb_virt_set_f(void) | ||
1584 | { | ||
1585 | return 0x20U; | ||
1586 | } | ||
1587 | static inline u32 fb_mmu_fault_status_dropped_ifb_virt_clear_v(void) | ||
1588 | { | ||
1589 | return 0x00000001U; | ||
1590 | } | ||
1591 | static inline u32 fb_mmu_fault_status_dropped_ifb_virt_clear_f(void) | ||
1592 | { | ||
1593 | return 0x20U; | ||
1594 | } | ||
1595 | static inline u32 fb_mmu_fault_status_dropped_other_phys_m(void) | ||
1596 | { | ||
1597 | return 0x1U << 6U; | ||
1598 | } | ||
1599 | static inline u32 fb_mmu_fault_status_dropped_other_phys_set_v(void) | ||
1600 | { | ||
1601 | return 0x00000001U; | ||
1602 | } | ||
1603 | static inline u32 fb_mmu_fault_status_dropped_other_phys_set_f(void) | ||
1604 | { | ||
1605 | return 0x40U; | ||
1606 | } | ||
1607 | static inline u32 fb_mmu_fault_status_dropped_other_phys_clear_v(void) | ||
1608 | { | ||
1609 | return 0x00000001U; | ||
1610 | } | ||
1611 | static inline u32 fb_mmu_fault_status_dropped_other_phys_clear_f(void) | ||
1612 | { | ||
1613 | return 0x40U; | ||
1614 | } | ||
1615 | static inline u32 fb_mmu_fault_status_dropped_other_virt_m(void) | ||
1616 | { | ||
1617 | return 0x1U << 7U; | ||
1618 | } | ||
1619 | static inline u32 fb_mmu_fault_status_dropped_other_virt_set_v(void) | ||
1620 | { | ||
1621 | return 0x00000001U; | ||
1622 | } | ||
1623 | static inline u32 fb_mmu_fault_status_dropped_other_virt_set_f(void) | ||
1624 | { | ||
1625 | return 0x80U; | ||
1626 | } | ||
1627 | static inline u32 fb_mmu_fault_status_dropped_other_virt_clear_v(void) | ||
1628 | { | ||
1629 | return 0x00000001U; | ||
1630 | } | ||
1631 | static inline u32 fb_mmu_fault_status_dropped_other_virt_clear_f(void) | ||
1632 | { | ||
1633 | return 0x80U; | ||
1634 | } | ||
1635 | static inline u32 fb_mmu_fault_status_replayable_m(void) | ||
1636 | { | ||
1637 | return 0x1U << 8U; | ||
1638 | } | ||
1639 | static inline u32 fb_mmu_fault_status_replayable_set_v(void) | ||
1640 | { | ||
1641 | return 0x00000001U; | ||
1642 | } | ||
1643 | static inline u32 fb_mmu_fault_status_replayable_set_f(void) | ||
1644 | { | ||
1645 | return 0x100U; | ||
1646 | } | ||
1647 | static inline u32 fb_mmu_fault_status_replayable_reset_f(void) | ||
1648 | { | ||
1649 | return 0x0U; | ||
1650 | } | ||
1651 | static inline u32 fb_mmu_fault_status_non_replayable_m(void) | ||
1652 | { | ||
1653 | return 0x1U << 9U; | ||
1654 | } | ||
1655 | static inline u32 fb_mmu_fault_status_non_replayable_set_v(void) | ||
1656 | { | ||
1657 | return 0x00000001U; | ||
1658 | } | ||
1659 | static inline u32 fb_mmu_fault_status_non_replayable_set_f(void) | ||
1660 | { | ||
1661 | return 0x200U; | ||
1662 | } | ||
1663 | static inline u32 fb_mmu_fault_status_non_replayable_reset_f(void) | ||
1664 | { | ||
1665 | return 0x0U; | ||
1666 | } | ||
1667 | static inline u32 fb_mmu_fault_status_replayable_error_m(void) | ||
1668 | { | ||
1669 | return 0x1U << 10U; | ||
1670 | } | ||
1671 | static inline u32 fb_mmu_fault_status_replayable_error_set_v(void) | ||
1672 | { | ||
1673 | return 0x00000001U; | ||
1674 | } | ||
1675 | static inline u32 fb_mmu_fault_status_replayable_error_set_f(void) | ||
1676 | { | ||
1677 | return 0x400U; | ||
1678 | } | ||
1679 | static inline u32 fb_mmu_fault_status_replayable_error_reset_f(void) | ||
1680 | { | ||
1681 | return 0x0U; | ||
1682 | } | ||
1683 | static inline u32 fb_mmu_fault_status_non_replayable_error_m(void) | ||
1684 | { | ||
1685 | return 0x1U << 11U; | ||
1686 | } | ||
1687 | static inline u32 fb_mmu_fault_status_non_replayable_error_set_v(void) | ||
1688 | { | ||
1689 | return 0x00000001U; | ||
1690 | } | ||
1691 | static inline u32 fb_mmu_fault_status_non_replayable_error_set_f(void) | ||
1692 | { | ||
1693 | return 0x800U; | ||
1694 | } | ||
1695 | static inline u32 fb_mmu_fault_status_non_replayable_error_reset_f(void) | ||
1696 | { | ||
1697 | return 0x0U; | ||
1698 | } | ||
1699 | static inline u32 fb_mmu_fault_status_replayable_overflow_m(void) | ||
1700 | { | ||
1701 | return 0x1U << 12U; | ||
1702 | } | ||
1703 | static inline u32 fb_mmu_fault_status_replayable_overflow_set_v(void) | ||
1704 | { | ||
1705 | return 0x00000001U; | ||
1706 | } | ||
1707 | static inline u32 fb_mmu_fault_status_replayable_overflow_set_f(void) | ||
1708 | { | ||
1709 | return 0x1000U; | ||
1710 | } | ||
1711 | static inline u32 fb_mmu_fault_status_replayable_overflow_reset_f(void) | ||
1712 | { | ||
1713 | return 0x0U; | ||
1714 | } | ||
1715 | static inline u32 fb_mmu_fault_status_non_replayable_overflow_m(void) | ||
1716 | { | ||
1717 | return 0x1U << 13U; | ||
1718 | } | ||
1719 | static inline u32 fb_mmu_fault_status_non_replayable_overflow_set_v(void) | ||
1720 | { | ||
1721 | return 0x00000001U; | ||
1722 | } | ||
1723 | static inline u32 fb_mmu_fault_status_non_replayable_overflow_set_f(void) | ||
1724 | { | ||
1725 | return 0x2000U; | ||
1726 | } | ||
1727 | static inline u32 fb_mmu_fault_status_non_replayable_overflow_reset_f(void) | ||
1728 | { | ||
1729 | return 0x0U; | ||
1730 | } | ||
1731 | static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_m(void) | ||
1732 | { | ||
1733 | return 0x1U << 14U; | ||
1734 | } | ||
1735 | static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_set_v(void) | ||
1736 | { | ||
1737 | return 0x00000001U; | ||
1738 | } | ||
1739 | static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_set_f(void) | ||
1740 | { | ||
1741 | return 0x4000U; | ||
1742 | } | ||
1743 | static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_m(void) | ||
1744 | { | ||
1745 | return 0x1U << 15U; | ||
1746 | } | ||
1747 | static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_set_v(void) | ||
1748 | { | ||
1749 | return 0x00000001U; | ||
1750 | } | ||
1751 | static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_set_f(void) | ||
1752 | { | ||
1753 | return 0x8000U; | ||
1754 | } | ||
1755 | static inline u32 fb_mmu_fault_status_busy_m(void) | ||
1756 | { | ||
1757 | return 0x1U << 30U; | ||
1758 | } | ||
1759 | static inline u32 fb_mmu_fault_status_busy_true_v(void) | ||
1760 | { | ||
1761 | return 0x00000001U; | ||
1762 | } | ||
1763 | static inline u32 fb_mmu_fault_status_busy_true_f(void) | ||
1764 | { | ||
1765 | return 0x40000000U; | ||
1766 | } | ||
1767 | static inline u32 fb_mmu_fault_status_valid_m(void) | ||
1768 | { | ||
1769 | return 0x1U << 31U; | ||
1770 | } | ||
1771 | static inline u32 fb_mmu_fault_status_valid_set_v(void) | ||
1772 | { | ||
1773 | return 0x00000001U; | ||
1774 | } | ||
1775 | static inline u32 fb_mmu_fault_status_valid_set_f(void) | ||
1776 | { | ||
1777 | return 0x80000000U; | ||
1778 | } | ||
1779 | static inline u32 fb_mmu_fault_status_valid_clear_v(void) | ||
1780 | { | ||
1781 | return 0x00000001U; | ||
1782 | } | ||
1783 | static inline u32 fb_mmu_fault_status_valid_clear_f(void) | ||
1784 | { | ||
1785 | return 0x80000000U; | ||
1786 | } | ||
1787 | static inline u32 fb_mmu_num_active_ltcs_r(void) | ||
1788 | { | ||
1789 | return 0x00100ec0U; | ||
1790 | } | ||
1791 | static inline u32 fb_mmu_num_active_ltcs_count_f(u32 v) | ||
1792 | { | ||
1793 | return (v & 0x1fU) << 0U; | ||
1794 | } | ||
1795 | static inline u32 fb_mmu_num_active_ltcs_count_v(u32 r) | ||
1796 | { | ||
1797 | return (r >> 0U) & 0x1fU; | ||
1798 | } | ||
1799 | static inline u32 fb_mmu_cbc_base_r(void) | ||
1800 | { | ||
1801 | return 0x00100ec4U; | ||
1802 | } | ||
1803 | static inline u32 fb_mmu_cbc_base_address_f(u32 v) | ||
1804 | { | ||
1805 | return (v & 0x3ffffffU) << 0U; | ||
1806 | } | ||
1807 | static inline u32 fb_mmu_cbc_base_address_v(u32 r) | ||
1808 | { | ||
1809 | return (r >> 0U) & 0x3ffffffU; | ||
1810 | } | ||
1811 | static inline u32 fb_mmu_cbc_base_address_alignment_shift_v(void) | ||
1812 | { | ||
1813 | return 0x0000000bU; | ||
1814 | } | ||
1815 | static inline u32 fb_mmu_cbc_top_r(void) | ||
1816 | { | ||
1817 | return 0x00100ec8U; | ||
1818 | } | ||
1819 | static inline u32 fb_mmu_cbc_top_size_f(u32 v) | ||
1820 | { | ||
1821 | return (v & 0x7fffU) << 0U; | ||
1822 | } | ||
1823 | static inline u32 fb_mmu_cbc_top_size_v(u32 r) | ||
1824 | { | ||
1825 | return (r >> 0U) & 0x7fffU; | ||
1826 | } | ||
1827 | static inline u32 fb_mmu_cbc_top_size_alignment_shift_v(void) | ||
1828 | { | ||
1829 | return 0x0000000bU; | ||
1830 | } | ||
1831 | static inline u32 fb_mmu_cbc_max_r(void) | ||
1832 | { | ||
1833 | return 0x00100eccU; | ||
1834 | } | ||
1835 | static inline u32 fb_mmu_cbc_max_comptagline_f(u32 v) | ||
1836 | { | ||
1837 | return (v & 0xffffffU) << 0U; | ||
1838 | } | ||
1839 | static inline u32 fb_mmu_cbc_max_comptagline_v(u32 r) | ||
1840 | { | ||
1841 | return (r >> 0U) & 0xffffffU; | ||
1842 | } | ||
1843 | static inline u32 fb_mmu_cbc_max_safe_f(u32 v) | ||
1844 | { | ||
1845 | return (v & 0x1U) << 30U; | ||
1846 | } | ||
1847 | static inline u32 fb_mmu_cbc_max_safe_true_v(void) | ||
1848 | { | ||
1849 | return 0x00000001U; | ||
1850 | } | ||
1851 | static inline u32 fb_mmu_cbc_max_safe_false_v(void) | ||
1852 | { | ||
1853 | return 0x00000000U; | ||
1854 | } | ||
1855 | static inline u32 fb_mmu_cbc_max_unsafe_fault_f(u32 v) | ||
1856 | { | ||
1857 | return (v & 0x1U) << 31U; | ||
1858 | } | ||
1859 | static inline u32 fb_mmu_cbc_max_unsafe_fault_enabled_v(void) | ||
1860 | { | ||
1861 | return 0x00000000U; | ||
1862 | } | ||
1863 | static inline u32 fb_mmu_cbc_max_unsafe_fault_disabled_v(void) | ||
1864 | { | ||
1865 | return 0x00000001U; | ||
1866 | } | ||
1867 | #endif | ||