aboutsummaryrefslogtreecommitdiffstats
path: root/include/nvgpu/hw/gv11b/hw_pwr_gv11b.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/nvgpu/hw/gv11b/hw_pwr_gv11b.h')
-rw-r--r--include/nvgpu/hw/gv11b/hw_pwr_gv11b.h1219
1 files changed, 1219 insertions, 0 deletions
diff --git a/include/nvgpu/hw/gv11b/hw_pwr_gv11b.h b/include/nvgpu/hw/gv11b/hw_pwr_gv11b.h
new file mode 100644
index 0000000..1cda12d
--- /dev/null
+++ b/include/nvgpu/hw/gv11b/hw_pwr_gv11b.h
@@ -0,0 +1,1219 @@
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_pwr_gv11b_h_
57#define _hw_pwr_gv11b_h_
58
59static inline u32 pwr_falcon_irqsset_r(void)
60{
61 return 0x0010a000U;
62}
63static inline u32 pwr_falcon_irqsset_swgen0_set_f(void)
64{
65 return 0x40U;
66}
67static inline u32 pwr_falcon_irqsclr_r(void)
68{
69 return 0x0010a004U;
70}
71static inline u32 pwr_falcon_irqstat_r(void)
72{
73 return 0x0010a008U;
74}
75static inline u32 pwr_falcon_irqstat_halt_true_f(void)
76{
77 return 0x10U;
78}
79static inline u32 pwr_falcon_irqstat_exterr_true_f(void)
80{
81 return 0x20U;
82}
83static inline u32 pwr_falcon_irqstat_swgen0_true_f(void)
84{
85 return 0x40U;
86}
87static inline u32 pwr_falcon_irqstat_ext_second_true_f(void)
88{
89 return 0x800U;
90}
91static inline u32 pwr_falcon_irqstat_ext_ecc_parity_true_f(void)
92{
93 return 0x400U;
94}
95static inline u32 pwr_pmu_ecc_intr_status_r(void)
96{
97 return 0x0010abfcU;
98}
99static inline u32 pwr_pmu_ecc_intr_status_corrected_f(u32 v)
100{
101 return (v & 0x1U) << 0U;
102}
103static inline u32 pwr_pmu_ecc_intr_status_corrected_m(void)
104{
105 return 0x1U << 0U;
106}
107static inline u32 pwr_pmu_ecc_intr_status_uncorrected_f(u32 v)
108{
109 return (v & 0x1U) << 1U;
110}
111static inline u32 pwr_pmu_ecc_intr_status_uncorrected_m(void)
112{
113 return 0x1U << 1U;
114}
115static inline u32 pwr_falcon_irqmode_r(void)
116{
117 return 0x0010a00cU;
118}
119static inline u32 pwr_falcon_irqmset_r(void)
120{
121 return 0x0010a010U;
122}
123static inline u32 pwr_falcon_irqmset_gptmr_f(u32 v)
124{
125 return (v & 0x1U) << 0U;
126}
127static inline u32 pwr_falcon_irqmset_wdtmr_f(u32 v)
128{
129 return (v & 0x1U) << 1U;
130}
131static inline u32 pwr_falcon_irqmset_mthd_f(u32 v)
132{
133 return (v & 0x1U) << 2U;
134}
135static inline u32 pwr_falcon_irqmset_ctxsw_f(u32 v)
136{
137 return (v & 0x1U) << 3U;
138}
139static inline u32 pwr_falcon_irqmset_halt_f(u32 v)
140{
141 return (v & 0x1U) << 4U;
142}
143static inline u32 pwr_falcon_irqmset_exterr_f(u32 v)
144{
145 return (v & 0x1U) << 5U;
146}
147static inline u32 pwr_falcon_irqmset_swgen0_f(u32 v)
148{
149 return (v & 0x1U) << 6U;
150}
151static inline u32 pwr_falcon_irqmset_swgen1_f(u32 v)
152{
153 return (v & 0x1U) << 7U;
154}
155static inline u32 pwr_falcon_irqmset_ext_f(u32 v)
156{
157 return (v & 0xffU) << 8U;
158}
159static inline u32 pwr_falcon_irqmset_ext_ctxe_f(u32 v)
160{
161 return (v & 0x1U) << 8U;
162}
163static inline u32 pwr_falcon_irqmset_ext_limitv_f(u32 v)
164{
165 return (v & 0x1U) << 9U;
166}
167static inline u32 pwr_falcon_irqmset_ext_second_f(u32 v)
168{
169 return (v & 0x1U) << 11U;
170}
171static inline u32 pwr_falcon_irqmset_ext_therm_f(u32 v)
172{
173 return (v & 0x1U) << 12U;
174}
175static inline u32 pwr_falcon_irqmset_ext_miscio_f(u32 v)
176{
177 return (v & 0x1U) << 13U;
178}
179static inline u32 pwr_falcon_irqmset_ext_rttimer_f(u32 v)
180{
181 return (v & 0x1U) << 14U;
182}
183static inline u32 pwr_falcon_irqmset_ext_rsvd8_f(u32 v)
184{
185 return (v & 0x1U) << 15U;
186}
187static inline u32 pwr_falcon_irqmset_ext_ecc_parity_f(u32 v)
188{
189 return (v & 0x1U) << 10U;
190}
191static inline u32 pwr_falcon_irqmclr_r(void)
192{
193 return 0x0010a014U;
194}
195static inline u32 pwr_falcon_irqmclr_gptmr_f(u32 v)
196{
197 return (v & 0x1U) << 0U;
198}
199static inline u32 pwr_falcon_irqmclr_wdtmr_f(u32 v)
200{
201 return (v & 0x1U) << 1U;
202}
203static inline u32 pwr_falcon_irqmclr_mthd_f(u32 v)
204{
205 return (v & 0x1U) << 2U;
206}
207static inline u32 pwr_falcon_irqmclr_ctxsw_f(u32 v)
208{
209 return (v & 0x1U) << 3U;
210}
211static inline u32 pwr_falcon_irqmclr_halt_f(u32 v)
212{
213 return (v & 0x1U) << 4U;
214}
215static inline u32 pwr_falcon_irqmclr_exterr_f(u32 v)
216{
217 return (v & 0x1U) << 5U;
218}
219static inline u32 pwr_falcon_irqmclr_swgen0_f(u32 v)
220{
221 return (v & 0x1U) << 6U;
222}
223static inline u32 pwr_falcon_irqmclr_swgen1_f(u32 v)
224{
225 return (v & 0x1U) << 7U;
226}
227static inline u32 pwr_falcon_irqmclr_ext_f(u32 v)
228{
229 return (v & 0xffU) << 8U;
230}
231static inline u32 pwr_falcon_irqmclr_ext_ctxe_f(u32 v)
232{
233 return (v & 0x1U) << 8U;
234}
235static inline u32 pwr_falcon_irqmclr_ext_limitv_f(u32 v)
236{
237 return (v & 0x1U) << 9U;
238}
239static inline u32 pwr_falcon_irqmclr_ext_second_f(u32 v)
240{
241 return (v & 0x1U) << 11U;
242}
243static inline u32 pwr_falcon_irqmclr_ext_therm_f(u32 v)
244{
245 return (v & 0x1U) << 12U;
246}
247static inline u32 pwr_falcon_irqmclr_ext_miscio_f(u32 v)
248{
249 return (v & 0x1U) << 13U;
250}
251static inline u32 pwr_falcon_irqmclr_ext_rttimer_f(u32 v)
252{
253 return (v & 0x1U) << 14U;
254}
255static inline u32 pwr_falcon_irqmclr_ext_rsvd8_f(u32 v)
256{
257 return (v & 0x1U) << 15U;
258}
259static inline u32 pwr_falcon_irqmclr_ext_ecc_parity_f(u32 v)
260{
261 return (v & 0x1U) << 10U;
262}
263static inline u32 pwr_falcon_irqmask_r(void)
264{
265 return 0x0010a018U;
266}
267static inline u32 pwr_falcon_irqdest_r(void)
268{
269 return 0x0010a01cU;
270}
271static inline u32 pwr_falcon_irqdest_host_gptmr_f(u32 v)
272{
273 return (v & 0x1U) << 0U;
274}
275static inline u32 pwr_falcon_irqdest_host_wdtmr_f(u32 v)
276{
277 return (v & 0x1U) << 1U;
278}
279static inline u32 pwr_falcon_irqdest_host_mthd_f(u32 v)
280{
281 return (v & 0x1U) << 2U;
282}
283static inline u32 pwr_falcon_irqdest_host_ctxsw_f(u32 v)
284{
285 return (v & 0x1U) << 3U;
286}
287static inline u32 pwr_falcon_irqdest_host_halt_f(u32 v)
288{
289 return (v & 0x1U) << 4U;
290}
291static inline u32 pwr_falcon_irqdest_host_exterr_f(u32 v)
292{
293 return (v & 0x1U) << 5U;
294}
295static inline u32 pwr_falcon_irqdest_host_swgen0_f(u32 v)
296{
297 return (v & 0x1U) << 6U;
298}
299static inline u32 pwr_falcon_irqdest_host_swgen1_f(u32 v)
300{
301 return (v & 0x1U) << 7U;
302}
303static inline u32 pwr_falcon_irqdest_host_ext_f(u32 v)
304{
305 return (v & 0xffU) << 8U;
306}
307static inline u32 pwr_falcon_irqdest_host_ext_ctxe_f(u32 v)
308{
309 return (v & 0x1U) << 8U;
310}
311static inline u32 pwr_falcon_irqdest_host_ext_limitv_f(u32 v)
312{
313 return (v & 0x1U) << 9U;
314}
315static inline u32 pwr_falcon_irqdest_host_ext_second_f(u32 v)
316{
317 return (v & 0x1U) << 11U;
318}
319static inline u32 pwr_falcon_irqdest_host_ext_therm_f(u32 v)
320{
321 return (v & 0x1U) << 12U;
322}
323static inline u32 pwr_falcon_irqdest_host_ext_miscio_f(u32 v)
324{
325 return (v & 0x1U) << 13U;
326}
327static inline u32 pwr_falcon_irqdest_host_ext_rttimer_f(u32 v)
328{
329 return (v & 0x1U) << 14U;
330}
331static inline u32 pwr_falcon_irqdest_host_ext_rsvd8_f(u32 v)
332{
333 return (v & 0x1U) << 15U;
334}
335static inline u32 pwr_falcon_irqdest_host_ext_ecc_parity_f(u32 v)
336{
337 return (v & 0x1U) << 10U;
338}
339static inline u32 pwr_falcon_irqdest_target_gptmr_f(u32 v)
340{
341 return (v & 0x1U) << 16U;
342}
343static inline u32 pwr_falcon_irqdest_target_wdtmr_f(u32 v)
344{
345 return (v & 0x1U) << 17U;
346}
347static inline u32 pwr_falcon_irqdest_target_mthd_f(u32 v)
348{
349 return (v & 0x1U) << 18U;
350}
351static inline u32 pwr_falcon_irqdest_target_ctxsw_f(u32 v)
352{
353 return (v & 0x1U) << 19U;
354}
355static inline u32 pwr_falcon_irqdest_target_halt_f(u32 v)
356{
357 return (v & 0x1U) << 20U;
358}
359static inline u32 pwr_falcon_irqdest_target_exterr_f(u32 v)
360{
361 return (v & 0x1U) << 21U;
362}
363static inline u32 pwr_falcon_irqdest_target_swgen0_f(u32 v)
364{
365 return (v & 0x1U) << 22U;
366}
367static inline u32 pwr_falcon_irqdest_target_swgen1_f(u32 v)
368{
369 return (v & 0x1U) << 23U;
370}
371static inline u32 pwr_falcon_irqdest_target_ext_f(u32 v)
372{
373 return (v & 0xffU) << 24U;
374}
375static inline u32 pwr_falcon_irqdest_target_ext_ctxe_f(u32 v)
376{
377 return (v & 0x1U) << 24U;
378}
379static inline u32 pwr_falcon_irqdest_target_ext_limitv_f(u32 v)
380{
381 return (v & 0x1U) << 25U;
382}
383static inline u32 pwr_falcon_irqdest_target_ext_second_f(u32 v)
384{
385 return (v & 0x1U) << 27U;
386}
387static inline u32 pwr_falcon_irqdest_target_ext_therm_f(u32 v)
388{
389 return (v & 0x1U) << 28U;
390}
391static inline u32 pwr_falcon_irqdest_target_ext_miscio_f(u32 v)
392{
393 return (v & 0x1U) << 29U;
394}
395static inline u32 pwr_falcon_irqdest_target_ext_rttimer_f(u32 v)
396{
397 return (v & 0x1U) << 30U;
398}
399static inline u32 pwr_falcon_irqdest_target_ext_rsvd8_f(u32 v)
400{
401 return (v & 0x1U) << 31U;
402}
403static inline u32 pwr_falcon_irqdest_target_ext_ecc_parity_f(u32 v)
404{
405 return (v & 0x1U) << 26U;
406}
407static inline u32 pwr_falcon_curctx_r(void)
408{
409 return 0x0010a050U;
410}
411static inline u32 pwr_falcon_nxtctx_r(void)
412{
413 return 0x0010a054U;
414}
415static inline u32 pwr_falcon_mailbox0_r(void)
416{
417 return 0x0010a040U;
418}
419static inline u32 pwr_falcon_mailbox1_r(void)
420{
421 return 0x0010a044U;
422}
423static inline u32 pwr_falcon_itfen_r(void)
424{
425 return 0x0010a048U;
426}
427static inline u32 pwr_falcon_itfen_ctxen_enable_f(void)
428{
429 return 0x1U;
430}
431static inline u32 pwr_falcon_idlestate_r(void)
432{
433 return 0x0010a04cU;
434}
435static inline u32 pwr_falcon_idlestate_falcon_busy_v(u32 r)
436{
437 return (r >> 0U) & 0x1U;
438}
439static inline u32 pwr_falcon_idlestate_ext_busy_v(u32 r)
440{
441 return (r >> 1U) & 0x7fffU;
442}
443static inline u32 pwr_falcon_os_r(void)
444{
445 return 0x0010a080U;
446}
447static inline u32 pwr_falcon_engctl_r(void)
448{
449 return 0x0010a0a4U;
450}
451static inline u32 pwr_falcon_cpuctl_r(void)
452{
453 return 0x0010a100U;
454}
455static inline u32 pwr_falcon_cpuctl_startcpu_f(u32 v)
456{
457 return (v & 0x1U) << 1U;
458}
459static inline u32 pwr_falcon_cpuctl_halt_intr_f(u32 v)
460{
461 return (v & 0x1U) << 4U;
462}
463static inline u32 pwr_falcon_cpuctl_halt_intr_m(void)
464{
465 return 0x1U << 4U;
466}
467static inline u32 pwr_falcon_cpuctl_halt_intr_v(u32 r)
468{
469 return (r >> 4U) & 0x1U;
470}
471static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_f(u32 v)
472{
473 return (v & 0x1U) << 6U;
474}
475static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_m(void)
476{
477 return 0x1U << 6U;
478}
479static inline u32 pwr_falcon_cpuctl_cpuctl_alias_en_v(u32 r)
480{
481 return (r >> 6U) & 0x1U;
482}
483static inline u32 pwr_falcon_cpuctl_alias_r(void)
484{
485 return 0x0010a130U;
486}
487static inline u32 pwr_falcon_cpuctl_alias_startcpu_f(u32 v)
488{
489 return (v & 0x1U) << 1U;
490}
491static inline u32 pwr_pmu_scpctl_stat_r(void)
492{
493 return 0x0010ac08U;
494}
495static inline u32 pwr_pmu_scpctl_stat_debug_mode_f(u32 v)
496{
497 return (v & 0x1U) << 20U;
498}
499static inline u32 pwr_pmu_scpctl_stat_debug_mode_m(void)
500{
501 return 0x1U << 20U;
502}
503static inline u32 pwr_pmu_scpctl_stat_debug_mode_v(u32 r)
504{
505 return (r >> 20U) & 0x1U;
506}
507static inline u32 pwr_falcon_imemc_r(u32 i)
508{
509 return 0x0010a180U + i*16U;
510}
511static inline u32 pwr_falcon_imemc_offs_f(u32 v)
512{
513 return (v & 0x3fU) << 2U;
514}
515static inline u32 pwr_falcon_imemc_blk_f(u32 v)
516{
517 return (v & 0xffU) << 8U;
518}
519static inline u32 pwr_falcon_imemc_aincw_f(u32 v)
520{
521 return (v & 0x1U) << 24U;
522}
523static inline u32 pwr_falcon_imemd_r(u32 i)
524{
525 return 0x0010a184U + i*16U;
526}
527static inline u32 pwr_falcon_imemt_r(u32 i)
528{
529 return 0x0010a188U + i*16U;
530}
531static inline u32 pwr_falcon_sctl_r(void)
532{
533 return 0x0010a240U;
534}
535static inline u32 pwr_falcon_mmu_phys_sec_r(void)
536{
537 return 0x00100ce4U;
538}
539static inline u32 pwr_falcon_bootvec_r(void)
540{
541 return 0x0010a104U;
542}
543static inline u32 pwr_falcon_bootvec_vec_f(u32 v)
544{
545 return (v & 0xffffffffU) << 0U;
546}
547static inline u32 pwr_falcon_dmactl_r(void)
548{
549 return 0x0010a10cU;
550}
551static inline u32 pwr_falcon_dmactl_dmem_scrubbing_m(void)
552{
553 return 0x1U << 1U;
554}
555static inline u32 pwr_falcon_dmactl_imem_scrubbing_m(void)
556{
557 return 0x1U << 2U;
558}
559static inline u32 pwr_falcon_hwcfg_r(void)
560{
561 return 0x0010a108U;
562}
563static inline u32 pwr_falcon_hwcfg_imem_size_v(u32 r)
564{
565 return (r >> 0U) & 0x1ffU;
566}
567static inline u32 pwr_falcon_hwcfg_dmem_size_v(u32 r)
568{
569 return (r >> 9U) & 0x1ffU;
570}
571static inline u32 pwr_falcon_dmatrfbase_r(void)
572{
573 return 0x0010a110U;
574}
575static inline u32 pwr_falcon_dmatrfbase1_r(void)
576{
577 return 0x0010a128U;
578}
579static inline u32 pwr_falcon_dmatrfmoffs_r(void)
580{
581 return 0x0010a114U;
582}
583static inline u32 pwr_falcon_dmatrfcmd_r(void)
584{
585 return 0x0010a118U;
586}
587static inline u32 pwr_falcon_dmatrfcmd_imem_f(u32 v)
588{
589 return (v & 0x1U) << 4U;
590}
591static inline u32 pwr_falcon_dmatrfcmd_write_f(u32 v)
592{
593 return (v & 0x1U) << 5U;
594}
595static inline u32 pwr_falcon_dmatrfcmd_size_f(u32 v)
596{
597 return (v & 0x7U) << 8U;
598}
599static inline u32 pwr_falcon_dmatrfcmd_ctxdma_f(u32 v)
600{
601 return (v & 0x7U) << 12U;
602}
603static inline u32 pwr_falcon_dmatrffboffs_r(void)
604{
605 return 0x0010a11cU;
606}
607static inline u32 pwr_falcon_exterraddr_r(void)
608{
609 return 0x0010a168U;
610}
611static inline u32 pwr_falcon_exterrstat_r(void)
612{
613 return 0x0010a16cU;
614}
615static inline u32 pwr_falcon_exterrstat_valid_m(void)
616{
617 return 0x1U << 31U;
618}
619static inline u32 pwr_falcon_exterrstat_valid_v(u32 r)
620{
621 return (r >> 31U) & 0x1U;
622}
623static inline u32 pwr_falcon_exterrstat_valid_true_v(void)
624{
625 return 0x00000001U;
626}
627static inline u32 pwr_pmu_falcon_icd_cmd_r(void)
628{
629 return 0x0010a200U;
630}
631static inline u32 pwr_pmu_falcon_icd_cmd_opc_s(void)
632{
633 return 4U;
634}
635static inline u32 pwr_pmu_falcon_icd_cmd_opc_f(u32 v)
636{
637 return (v & 0xfU) << 0U;
638}
639static inline u32 pwr_pmu_falcon_icd_cmd_opc_m(void)
640{
641 return 0xfU << 0U;
642}
643static inline u32 pwr_pmu_falcon_icd_cmd_opc_v(u32 r)
644{
645 return (r >> 0U) & 0xfU;
646}
647static inline u32 pwr_pmu_falcon_icd_cmd_opc_rreg_f(void)
648{
649 return 0x8U;
650}
651static inline u32 pwr_pmu_falcon_icd_cmd_opc_rstat_f(void)
652{
653 return 0xeU;
654}
655static inline u32 pwr_pmu_falcon_icd_cmd_idx_f(u32 v)
656{
657 return (v & 0x1fU) << 8U;
658}
659static inline u32 pwr_pmu_falcon_icd_rdata_r(void)
660{
661 return 0x0010a20cU;
662}
663static inline u32 pwr_falcon_dmemc_r(u32 i)
664{
665 return 0x0010a1c0U + i*8U;
666}
667static inline u32 pwr_falcon_dmemc_offs_f(u32 v)
668{
669 return (v & 0x3fU) << 2U;
670}
671static inline u32 pwr_falcon_dmemc_offs_m(void)
672{
673 return 0x3fU << 2U;
674}
675static inline u32 pwr_falcon_dmemc_blk_f(u32 v)
676{
677 return (v & 0xffU) << 8U;
678}
679static inline u32 pwr_falcon_dmemc_blk_m(void)
680{
681 return 0xffU << 8U;
682}
683static inline u32 pwr_falcon_dmemc_aincw_f(u32 v)
684{
685 return (v & 0x1U) << 24U;
686}
687static inline u32 pwr_falcon_dmemc_aincr_f(u32 v)
688{
689 return (v & 0x1U) << 25U;
690}
691static inline u32 pwr_falcon_dmemd_r(u32 i)
692{
693 return 0x0010a1c4U + i*8U;
694}
695static inline u32 pwr_pmu_new_instblk_r(void)
696{
697 return 0x0010a480U;
698}
699static inline u32 pwr_pmu_new_instblk_ptr_f(u32 v)
700{
701 return (v & 0xfffffffU) << 0U;
702}
703static inline u32 pwr_pmu_new_instblk_target_fb_f(void)
704{
705 return 0x0U;
706}
707static inline u32 pwr_pmu_new_instblk_target_sys_coh_f(void)
708{
709 return 0x20000000U;
710}
711static inline u32 pwr_pmu_new_instblk_target_sys_ncoh_f(void)
712{
713 return 0x30000000U;
714}
715static inline u32 pwr_pmu_new_instblk_valid_f(u32 v)
716{
717 return (v & 0x1U) << 30U;
718}
719static inline u32 pwr_pmu_mutex_id_r(void)
720{
721 return 0x0010a488U;
722}
723static inline u32 pwr_pmu_mutex_id_value_v(u32 r)
724{
725 return (r >> 0U) & 0xffU;
726}
727static inline u32 pwr_pmu_mutex_id_value_init_v(void)
728{
729 return 0x00000000U;
730}
731static inline u32 pwr_pmu_mutex_id_value_not_avail_v(void)
732{
733 return 0x000000ffU;
734}
735static inline u32 pwr_pmu_mutex_id_release_r(void)
736{
737 return 0x0010a48cU;
738}
739static inline u32 pwr_pmu_mutex_id_release_value_f(u32 v)
740{
741 return (v & 0xffU) << 0U;
742}
743static inline u32 pwr_pmu_mutex_id_release_value_m(void)
744{
745 return 0xffU << 0U;
746}
747static inline u32 pwr_pmu_mutex_id_release_value_init_v(void)
748{
749 return 0x00000000U;
750}
751static inline u32 pwr_pmu_mutex_id_release_value_init_f(void)
752{
753 return 0x0U;
754}
755static inline u32 pwr_pmu_mutex_r(u32 i)
756{
757 return 0x0010a580U + i*4U;
758}
759static inline u32 pwr_pmu_mutex__size_1_v(void)
760{
761 return 0x00000010U;
762}
763static inline u32 pwr_pmu_mutex_value_f(u32 v)
764{
765 return (v & 0xffU) << 0U;
766}
767static inline u32 pwr_pmu_mutex_value_v(u32 r)
768{
769 return (r >> 0U) & 0xffU;
770}
771static inline u32 pwr_pmu_mutex_value_initial_lock_f(void)
772{
773 return 0x0U;
774}
775static inline u32 pwr_pmu_queue_head_r(u32 i)
776{
777 return 0x0010a800U + i*4U;
778}
779static inline u32 pwr_pmu_queue_head__size_1_v(void)
780{
781 return 0x00000008U;
782}
783static inline u32 pwr_pmu_queue_head_address_f(u32 v)
784{
785 return (v & 0xffffffffU) << 0U;
786}
787static inline u32 pwr_pmu_queue_head_address_v(u32 r)
788{
789 return (r >> 0U) & 0xffffffffU;
790}
791static inline u32 pwr_pmu_queue_tail_r(u32 i)
792{
793 return 0x0010a820U + i*4U;
794}
795static inline u32 pwr_pmu_queue_tail__size_1_v(void)
796{
797 return 0x00000008U;
798}
799static inline u32 pwr_pmu_queue_tail_address_f(u32 v)
800{
801 return (v & 0xffffffffU) << 0U;
802}
803static inline u32 pwr_pmu_queue_tail_address_v(u32 r)
804{
805 return (r >> 0U) & 0xffffffffU;
806}
807static inline u32 pwr_pmu_msgq_head_r(void)
808{
809 return 0x0010a4c8U;
810}
811static inline u32 pwr_pmu_msgq_head_val_f(u32 v)
812{
813 return (v & 0xffffffffU) << 0U;
814}
815static inline u32 pwr_pmu_msgq_head_val_v(u32 r)
816{
817 return (r >> 0U) & 0xffffffffU;
818}
819static inline u32 pwr_pmu_msgq_tail_r(void)
820{
821 return 0x0010a4ccU;
822}
823static inline u32 pwr_pmu_msgq_tail_val_f(u32 v)
824{
825 return (v & 0xffffffffU) << 0U;
826}
827static inline u32 pwr_pmu_msgq_tail_val_v(u32 r)
828{
829 return (r >> 0U) & 0xffffffffU;
830}
831static inline u32 pwr_pmu_idle_mask_r(u32 i)
832{
833 return 0x0010a504U + i*16U;
834}
835static inline u32 pwr_pmu_idle_mask_gr_enabled_f(void)
836{
837 return 0x1U;
838}
839static inline u32 pwr_pmu_idle_mask_ce_2_enabled_f(void)
840{
841 return 0x200000U;
842}
843static inline u32 pwr_pmu_idle_mask_1_r(u32 i)
844{
845 return 0x0010aa34U + i*8U;
846}
847static inline u32 pwr_pmu_idle_mask_2_r(u32 i)
848{
849 return 0x0010a840U + i*4U;
850}
851static inline u32 pwr_pmu_idle_count_r(u32 i)
852{
853 return 0x0010a508U + i*16U;
854}
855static inline u32 pwr_pmu_idle_count_value_f(u32 v)
856{
857 return (v & 0x7fffffffU) << 0U;
858}
859static inline u32 pwr_pmu_idle_count_value_v(u32 r)
860{
861 return (r >> 0U) & 0x7fffffffU;
862}
863static inline u32 pwr_pmu_idle_count_reset_f(u32 v)
864{
865 return (v & 0x1U) << 31U;
866}
867static inline u32 pwr_pmu_idle_ctrl_r(u32 i)
868{
869 return 0x0010a50cU + i*16U;
870}
871static inline u32 pwr_pmu_idle_ctrl_value_m(void)
872{
873 return 0x3U << 0U;
874}
875static inline u32 pwr_pmu_idle_ctrl_value_busy_f(void)
876{
877 return 0x2U;
878}
879static inline u32 pwr_pmu_idle_ctrl_value_always_f(void)
880{
881 return 0x3U;
882}
883static inline u32 pwr_pmu_idle_ctrl_filter_m(void)
884{
885 return 0x1U << 2U;
886}
887static inline u32 pwr_pmu_idle_ctrl_filter_disabled_f(void)
888{
889 return 0x0U;
890}
891static inline u32 pwr_pmu_idle_threshold_r(u32 i)
892{
893 return 0x0010a8a0U + i*4U;
894}
895static inline u32 pwr_pmu_idle_threshold_value_f(u32 v)
896{
897 return (v & 0x7fffffffU) << 0U;
898}
899static inline u32 pwr_pmu_idle_intr_r(void)
900{
901 return 0x0010a9e8U;
902}
903static inline u32 pwr_pmu_idle_intr_en_f(u32 v)
904{
905 return (v & 0x1U) << 0U;
906}
907static inline u32 pwr_pmu_idle_intr_en_disabled_v(void)
908{
909 return 0x00000000U;
910}
911static inline u32 pwr_pmu_idle_intr_en_enabled_v(void)
912{
913 return 0x00000001U;
914}
915static inline u32 pwr_pmu_idle_intr_status_r(void)
916{
917 return 0x0010a9ecU;
918}
919static inline u32 pwr_pmu_idle_intr_status_intr_f(u32 v)
920{
921 return (v & 0x1U) << 0U;
922}
923static inline u32 pwr_pmu_idle_intr_status_intr_m(void)
924{
925 return 0x1U << 0U;
926}
927static inline u32 pwr_pmu_idle_intr_status_intr_v(u32 r)
928{
929 return (r >> 0U) & 0x1U;
930}
931static inline u32 pwr_pmu_idle_intr_status_intr_pending_v(void)
932{
933 return 0x00000001U;
934}
935static inline u32 pwr_pmu_idle_intr_status_intr_clear_v(void)
936{
937 return 0x00000001U;
938}
939static inline u32 pwr_pmu_idle_mask_supp_r(u32 i)
940{
941 return 0x0010a9f0U + i*8U;
942}
943static inline u32 pwr_pmu_idle_mask_1_supp_r(u32 i)
944{
945 return 0x0010a9f4U + i*8U;
946}
947static inline u32 pwr_pmu_idle_mask_2_supp_r(u32 i)
948{
949 return 0x0010a690U + i*4U;
950}
951static inline u32 pwr_pmu_idle_ctrl_supp_r(u32 i)
952{
953 return 0x0010aa30U + i*8U;
954}
955static inline u32 pwr_pmu_debug_r(u32 i)
956{
957 return 0x0010a5c0U + i*4U;
958}
959static inline u32 pwr_pmu_debug__size_1_v(void)
960{
961 return 0x00000004U;
962}
963static inline u32 pwr_pmu_mailbox_r(u32 i)
964{
965 return 0x0010a450U + i*4U;
966}
967static inline u32 pwr_pmu_mailbox__size_1_v(void)
968{
969 return 0x0000000cU;
970}
971static inline u32 pwr_pmu_bar0_addr_r(void)
972{
973 return 0x0010a7a0U;
974}
975static inline u32 pwr_pmu_bar0_data_r(void)
976{
977 return 0x0010a7a4U;
978}
979static inline u32 pwr_pmu_bar0_ctl_r(void)
980{
981 return 0x0010a7acU;
982}
983static inline u32 pwr_pmu_bar0_timeout_r(void)
984{
985 return 0x0010a7a8U;
986}
987static inline u32 pwr_pmu_bar0_fecs_error_r(void)
988{
989 return 0x0010a988U;
990}
991static inline u32 pwr_pmu_bar0_error_status_r(void)
992{
993 return 0x0010a7b0U;
994}
995static inline u32 pwr_pmu_pg_idlefilth_r(u32 i)
996{
997 return 0x0010a6c0U + i*4U;
998}
999static inline u32 pwr_pmu_pg_ppuidlefilth_r(u32 i)
1000{
1001 return 0x0010a6e8U + i*4U;
1002}
1003static inline u32 pwr_pmu_pg_idle_cnt_r(u32 i)
1004{
1005 return 0x0010a710U + i*4U;
1006}
1007static inline u32 pwr_pmu_pg_intren_r(u32 i)
1008{
1009 return 0x0010a760U + i*4U;
1010}
1011static inline u32 pwr_pmu_falcon_ecc_status_r(void)
1012{
1013 return 0x0010a6b0U;
1014}
1015static inline u32 pwr_pmu_falcon_ecc_status_corrected_err_imem_f(u32 v)
1016{
1017 return (v & 0x1U) << 0U;
1018}
1019static inline u32 pwr_pmu_falcon_ecc_status_corrected_err_imem_m(void)
1020{
1021 return 0x1U << 0U;
1022}
1023static inline u32 pwr_pmu_falcon_ecc_status_corrected_err_dmem_f(u32 v)
1024{
1025 return (v & 0x1U) << 1U;
1026}
1027static inline u32 pwr_pmu_falcon_ecc_status_corrected_err_dmem_m(void)
1028{
1029 return 0x1U << 1U;
1030}
1031static inline u32 pwr_pmu_falcon_ecc_status_uncorrected_err_imem_f(u32 v)
1032{
1033 return (v & 0x1U) << 8U;
1034}
1035static inline u32 pwr_pmu_falcon_ecc_status_uncorrected_err_imem_m(void)
1036{
1037 return 0x1U << 8U;
1038}
1039static inline u32 pwr_pmu_falcon_ecc_status_uncorrected_err_dmem_f(u32 v)
1040{
1041 return (v & 0x1U) << 9U;
1042}
1043static inline u32 pwr_pmu_falcon_ecc_status_uncorrected_err_dmem_m(void)
1044{
1045 return 0x1U << 9U;
1046}
1047static inline u32 pwr_pmu_falcon_ecc_status_corrected_err_total_counter_overflow_f(u32 v)
1048{
1049 return (v & 0x1U) << 16U;
1050}
1051static inline u32 pwr_pmu_falcon_ecc_status_corrected_err_total_counter_overflow_m(void)
1052{
1053 return 0x1U << 16U;
1054}
1055static inline u32 pwr_pmu_falcon_ecc_status_uncorrected_err_total_counter_overflow_f(u32 v)
1056{
1057 return (v & 0x1U) << 18U;
1058}
1059static inline u32 pwr_pmu_falcon_ecc_status_uncorrected_err_total_counter_overflow_m(void)
1060{
1061 return 0x1U << 18U;
1062}
1063static inline u32 pwr_pmu_falcon_ecc_status_reset_f(u32 v)
1064{
1065 return (v & 0x1U) << 31U;
1066}
1067static inline u32 pwr_pmu_falcon_ecc_status_reset_task_f(void)
1068{
1069 return 0x80000000U;
1070}
1071static inline u32 pwr_pmu_falcon_ecc_address_r(void)
1072{
1073 return 0x0010a6b4U;
1074}
1075static inline u32 pwr_pmu_falcon_ecc_address_index_f(u32 v)
1076{
1077 return (v & 0xffffffU) << 0U;
1078}
1079static inline u32 pwr_pmu_falcon_ecc_address_type_f(u32 v)
1080{
1081 return (v & 0xfU) << 20U;
1082}
1083static inline u32 pwr_pmu_falcon_ecc_address_type_imem_f(void)
1084{
1085 return 0x0U;
1086}
1087static inline u32 pwr_pmu_falcon_ecc_address_type_dmem_f(void)
1088{
1089 return 0x100000U;
1090}
1091static inline u32 pwr_pmu_falcon_ecc_address_row_address_s(void)
1092{
1093 return 16U;
1094}
1095static inline u32 pwr_pmu_falcon_ecc_address_row_address_f(u32 v)
1096{
1097 return (v & 0xffffU) << 0U;
1098}
1099static inline u32 pwr_pmu_falcon_ecc_address_row_address_m(void)
1100{
1101 return 0xffffU << 0U;
1102}
1103static inline u32 pwr_pmu_falcon_ecc_address_row_address_v(u32 r)
1104{
1105 return (r >> 0U) & 0xffffU;
1106}
1107static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_r(void)
1108{
1109 return 0x0010a6b8U;
1110}
1111static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_total_s(void)
1112{
1113 return 16U;
1114}
1115static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_total_f(u32 v)
1116{
1117 return (v & 0xffffU) << 0U;
1118}
1119static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_total_m(void)
1120{
1121 return 0xffffU << 0U;
1122}
1123static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_total_v(u32 r)
1124{
1125 return (r >> 0U) & 0xffffU;
1126}
1127static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_unique_total_s(void)
1128{
1129 return 16U;
1130}
1131static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_unique_total_f(u32 v)
1132{
1133 return (v & 0xffffU) << 16U;
1134}
1135static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_unique_total_m(void)
1136{
1137 return 0xffffU << 16U;
1138}
1139static inline u32 pwr_pmu_falcon_ecc_corrected_err_count_unique_total_v(u32 r)
1140{
1141 return (r >> 16U) & 0xffffU;
1142}
1143static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_r(void)
1144{
1145 return 0x0010a6bcU;
1146}
1147static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_total_s(void)
1148{
1149 return 16U;
1150}
1151static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_total_f(u32 v)
1152{
1153 return (v & 0xffffU) << 0U;
1154}
1155static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_total_m(void)
1156{
1157 return 0xffffU << 0U;
1158}
1159static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_total_v(u32 r)
1160{
1161 return (r >> 0U) & 0xffffU;
1162}
1163static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_unique_total_s(void)
1164{
1165 return 16U;
1166}
1167static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_unique_total_f(u32 v)
1168{
1169 return (v & 0xffffU) << 16U;
1170}
1171static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_unique_total_m(void)
1172{
1173 return 0xffffU << 16U;
1174}
1175static inline u32 pwr_pmu_falcon_ecc_uncorrected_err_count_unique_total_v(u32 r)
1176{
1177 return (r >> 16U) & 0xffffU;
1178}
1179static inline u32 pwr_fbif_transcfg_r(u32 i)
1180{
1181 return 0x0010ae00U + i*4U;
1182}
1183static inline u32 pwr_fbif_transcfg_target_local_fb_f(void)
1184{
1185 return 0x0U;
1186}
1187static inline u32 pwr_fbif_transcfg_target_coherent_sysmem_f(void)
1188{
1189 return 0x1U;
1190}
1191static inline u32 pwr_fbif_transcfg_target_noncoherent_sysmem_f(void)
1192{
1193 return 0x2U;
1194}
1195static inline u32 pwr_fbif_transcfg_mem_type_s(void)
1196{
1197 return 1U;
1198}
1199static inline u32 pwr_fbif_transcfg_mem_type_f(u32 v)
1200{
1201 return (v & 0x1U) << 2U;
1202}
1203static inline u32 pwr_fbif_transcfg_mem_type_m(void)
1204{
1205 return 0x1U << 2U;
1206}
1207static inline u32 pwr_fbif_transcfg_mem_type_v(u32 r)
1208{
1209 return (r >> 2U) & 0x1U;
1210}
1211static inline u32 pwr_fbif_transcfg_mem_type_virtual_f(void)
1212{
1213 return 0x0U;
1214}
1215static inline u32 pwr_fbif_transcfg_mem_type_physical_f(void)
1216{
1217 return 0x4U;
1218}
1219#endif