aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/cavium/include/bdk/libbdk-arch/bdk-csrs-dap.h
blob: 99e0574021563f4411570bf58a32cebd1bdcacd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
#ifndef __BDK_CSRS_DAP_H__
#define __BDK_CSRS_DAP_H__
/* This file is auto-generated. Do not edit */

/***********************license start***************
 * Copyright (c) 2003-2017  Cavium Inc. (support@cavium.com). All rights
 * reserved.
 *
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 *
 *   * Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   * Redistributions in binary form must reproduce the above
 *     copyright notice, this list of conditions and the following
 *     disclaimer in the documentation and/or other materials provided
 *     with the distribution.

 *   * Neither the name of Cavium Inc. nor the names of
 *     its contributors may be used to endorse or promote products
 *     derived from this software without specific prior written
 *     permission.

 * This Software, including technical data, may be subject to U.S. export  control
 * laws, including the U.S. Export Administration Act and its  associated
 * regulations, and may be subject to export or import  regulations in other
 * countries.

 * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
 * AND WITH ALL FAULTS AND CAVIUM  NETWORKS MAKES NO PROMISES, REPRESENTATIONS OR
 * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
 * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR
 * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM
 * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE,
 * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF
 * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR
 * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE  RISK ARISING OUT OF USE OR
 * PERFORMANCE OF THE SOFTWARE LIES WITH YOU.
 ***********************license end**************************************/


/**
 * @file
 *
 * Configuration and status register (CSR) address and type definitions for
 * Cavium DAP.
 *
 * This file is auto generated. Do not edit.
 *
 */

/**
 * Enumeration dap_bar_e
 *
 * DAP Base Address Register Enumeration
 * Enumerates the base address registers.
 */
#define BDK_DAP_BAR_E_DAP_PF_BAR0 (0x87e002000000ll)
#define BDK_DAP_BAR_E_DAP_PF_BAR0_SIZE 0x100000ull
#define BDK_DAP_BAR_E_DAP_PF_BAR2_CN8 (0x87a080000000ll)
#define BDK_DAP_BAR_E_DAP_PF_BAR2_CN8_SIZE 0x2000000ull
#define BDK_DAP_BAR_E_DAP_PF_BAR2_CN9 (0x87a000000000ll)
#define BDK_DAP_BAR_E_DAP_PF_BAR2_CN9_SIZE 0x100000000ull

/**
 * Register (RSL) dap_const
 *
 * DAP Constant Register
 * This register contains constant for software discovery.
 */
union bdk_dap_const
{
    uint64_t u;
    struct bdk_dap_const_s
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint64_t reserved_0_63         : 64;
#else /* Word 0 - Little Endian */
        uint64_t reserved_0_63         : 64;
#endif /* Word 0 - End */
    } s;
    /* struct bdk_dap_const_s cn; */
};
typedef union bdk_dap_const bdk_dap_const_t;

#define BDK_DAP_CONST BDK_DAP_CONST_FUNC()
static inline uint64_t BDK_DAP_CONST_FUNC(void) __attribute__ ((pure, always_inline));
static inline uint64_t BDK_DAP_CONST_FUNC(void)
{
    if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
        return 0x87e002000130ll;
    __bdk_csr_fatal("DAP_CONST", 0, 0, 0, 0, 0);
}

#define typedef_BDK_DAP_CONST bdk_dap_const_t
#define bustype_BDK_DAP_CONST BDK_CSR_TYPE_RSL
#define basename_BDK_DAP_CONST "DAP_CONST"
#define device_bar_BDK_DAP_CONST 0x0 /* PF_BAR0 */
#define busnum_BDK_DAP_CONST 0
#define arguments_BDK_DAP_CONST -1,-1,-1,-1

/**
 * Register (RSL) dap_eco
 *
 * INTERNAL: DAP ECO Register
 */
union bdk_dap_eco
{
    uint64_t u;
    struct bdk_dap_eco_s
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint64_t reserved_32_63        : 32;
        uint64_t eco_ro                : 16; /**< [ 31: 16](RO) Reserved for ECO usage. */
        uint64_t eco_rw                : 16; /**< [ 15:  0](R/W) Reserved for ECO usage. */
#else /* Word 0 - Little Endian */
        uint64_t eco_rw                : 16; /**< [ 15:  0](R/W) Reserved for ECO usage. */
        uint64_t eco_ro                : 16; /**< [ 31: 16](RO) Reserved for ECO usage. */
        uint64_t reserved_32_63        : 32;
#endif /* Word 0 - End */
    } s;
    /* struct bdk_dap_eco_s cn; */
};
typedef union bdk_dap_eco bdk_dap_eco_t;

#define BDK_DAP_ECO BDK_DAP_ECO_FUNC()
static inline uint64_t BDK_DAP_ECO_FUNC(void) __attribute__ ((pure, always_inline));
static inline uint64_t BDK_DAP_ECO_FUNC(void)
{
    if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
        return 0x87e002000120ll;
    if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
        return 0x87e002000120ll;
    if (CAVIUM_IS_MODEL(CAVIUM_CN88XX_PASS2_X))
        return 0x87e002000120ll;
    if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
        return 0x87e002000120ll;
    __bdk_csr_fatal("DAP_ECO", 0, 0, 0, 0, 0);
}

#define typedef_BDK_DAP_ECO bdk_dap_eco_t
#define bustype_BDK_DAP_ECO BDK_CSR_TYPE_RSL
#define basename_BDK_DAP_ECO "DAP_ECO"
#define device_bar_BDK_DAP_ECO 0x0 /* PF_BAR0 */
#define busnum_BDK_DAP_ECO 0
#define arguments_BDK_DAP_ECO -1,-1,-1,-1

/**
 * Register (RSL32b) dap_hwpoll_cnt
 *
 * DAP Hardware Poll Counter Register
 */
union bdk_dap_hwpoll_cnt
{
    uint32_t u;
    struct bdk_dap_hwpoll_cnt_s
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint32_t poll_dis              : 1;  /**< [ 31: 31](R/W) Disable hardware polling. For diagnostic use only. */
        uint32_t reserved_16_30        : 15;
        uint32_t count                 : 16; /**< [ 15:  0](R/W) Number of coprocessor-clocks between DAP bus poll intervals.
                                                                 With the approximate transaction delay of 256 cycles, the default
                                                                 results in a poll approximately every 2048 cycles.
                                                                 Must not be zero. For diagnostic use only. */
#else /* Word 0 - Little Endian */
        uint32_t count                 : 16; /**< [ 15:  0](R/W) Number of coprocessor-clocks between DAP bus poll intervals.
                                                                 With the approximate transaction delay of 256 cycles, the default
                                                                 results in a poll approximately every 2048 cycles.
                                                                 Must not be zero. For diagnostic use only. */
        uint32_t reserved_16_30        : 15;
        uint32_t poll_dis              : 1;  /**< [ 31: 31](R/W) Disable hardware polling. For diagnostic use only. */
#endif /* Word 0 - End */
    } s;
    struct bdk_dap_hwpoll_cnt_cn88xxp1
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint32_t reserved_31           : 1;
        uint32_t reserved_16_30        : 15;
        uint32_t count                 : 16; /**< [ 15:  0](R/W) Number of coprocessor-clocks between DAP bus poll intervals.
                                                                 With the approximate transaction delay of 256 cycles, the default
                                                                 results in a poll approximately every 2048 cycles.
                                                                 Must not be zero. For diagnostic use only. */
#else /* Word 0 - Little Endian */
        uint32_t count                 : 16; /**< [ 15:  0](R/W) Number of coprocessor-clocks between DAP bus poll intervals.
                                                                 With the approximate transaction delay of 256 cycles, the default
                                                                 results in a poll approximately every 2048 cycles.
                                                                 Must not be zero. For diagnostic use only. */
        uint32_t reserved_16_30        : 15;
        uint32_t reserved_31           : 1;
#endif /* Word 0 - End */
    } cn88xxp1;
    /* struct bdk_dap_hwpoll_cnt_s cn9; */
    /* struct bdk_dap_hwpoll_cnt_s cn81xx; */
    /* struct bdk_dap_hwpoll_cnt_s cn83xx; */
    /* struct bdk_dap_hwpoll_cnt_s cn88xxp2; */
};
typedef union bdk_dap_hwpoll_cnt bdk_dap_hwpoll_cnt_t;

#define BDK_DAP_HWPOLL_CNT BDK_DAP_HWPOLL_CNT_FUNC()
static inline uint64_t BDK_DAP_HWPOLL_CNT_FUNC(void) __attribute__ ((pure, always_inline));
static inline uint64_t BDK_DAP_HWPOLL_CNT_FUNC(void)
{
    return 0x87e002000114ll;
}

#define typedef_BDK_DAP_HWPOLL_CNT bdk_dap_hwpoll_cnt_t
#define bustype_BDK_DAP_HWPOLL_CNT BDK_CSR_TYPE_RSL32b
#define basename_BDK_DAP_HWPOLL_CNT "DAP_HWPOLL_CNT"
#define device_bar_BDK_DAP_HWPOLL_CNT 0x0 /* PF_BAR0 */
#define busnum_BDK_DAP_HWPOLL_CNT 0
#define arguments_BDK_DAP_HWPOLL_CNT -1,-1,-1,-1

/**
 * Register (RSL32b) dap_imp_dar
 *
 * DAP Debug Authentication Register
 * This register controls the device enables and secure/nonsecure access permissions.
 */
union bdk_dap_imp_dar
{
    uint32_t u;
    struct bdk_dap_imp_dar_s
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint32_t reserved_30_31        : 2;
        uint32_t distracefeature       : 1;  /**< [ 29: 29](R/W) Reserved.
                                                                 Internal:
                                                                 Passed to trace unit, but not presently used.
                                                                 0 = Future trace feature enabled.
                                                                 1 = Future trace feature disabled. */
        uint32_t distrace              : 1;  /**< [ 28: 28](R/W) Disable trace unit discovery.
                                                                 0 = Trace unit is discoverable by software.
                                                                 1 = Trace unit is hidden. */
        uint32_t reserved_11_27        : 17;
        uint32_t cabnsen               : 1;  /**< [ 10: 10](R/W) Enable nonsecure CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault on nonsecure CAB accesses.
                                                                 1 = Enable nonsecure CAB accesses. */
        uint32_t caben                 : 1;  /**< [  9:  9](R/W) Enable CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault for all CAB accesses.
                                                                 1 = Enable all CAB accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t reserved_6_8          : 3;
        uint32_t deviceen              : 1;  /**< [  5:  5](R/W) Set this bit to use CVM-AP inside DAP for CNXXXX addressing accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t dabdeviceen           : 1;  /**< [  4:  4](R/W) Set this bit to use ARM-AP inside DAP for DAB serial bus accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spniden               : 1;  /**< [  3:  3](R/W) Set this bit to enable secure non invasive debug enable.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t spiden                : 1;  /**< [  2:  2](R/W) Set this bit to enable secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t niden                 : 1;  /**< [  1:  1](R/W) Set this bit to enable non secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t dbgen                 : 1;  /**< [  0:  0](R/W) Set this bit to enable debug enable.

                                                                 When in trusted-mode resets to 0, else 1. */
#else /* Word 0 - Little Endian */
        uint32_t dbgen                 : 1;  /**< [  0:  0](R/W) Set this bit to enable debug enable.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t niden                 : 1;  /**< [  1:  1](R/W) Set this bit to enable non secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spiden                : 1;  /**< [  2:  2](R/W) Set this bit to enable secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spniden               : 1;  /**< [  3:  3](R/W) Set this bit to enable secure non invasive debug enable.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t dabdeviceen           : 1;  /**< [  4:  4](R/W) Set this bit to use ARM-AP inside DAP for DAB serial bus accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t deviceen              : 1;  /**< [  5:  5](R/W) Set this bit to use CVM-AP inside DAP for CNXXXX addressing accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t reserved_6_8          : 3;
        uint32_t caben                 : 1;  /**< [  9:  9](R/W) Enable CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault for all CAB accesses.
                                                                 1 = Enable all CAB accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t cabnsen               : 1;  /**< [ 10: 10](R/W) Enable nonsecure CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault on nonsecure CAB accesses.
                                                                 1 = Enable nonsecure CAB accesses. */
        uint32_t reserved_11_27        : 17;
        uint32_t distrace              : 1;  /**< [ 28: 28](R/W) Disable trace unit discovery.
                                                                 0 = Trace unit is discoverable by software.
                                                                 1 = Trace unit is hidden. */
        uint32_t distracefeature       : 1;  /**< [ 29: 29](R/W) Reserved.
                                                                 Internal:
                                                                 Passed to trace unit, but not presently used.
                                                                 0 = Future trace feature enabled.
                                                                 1 = Future trace feature disabled. */
        uint32_t reserved_30_31        : 2;
#endif /* Word 0 - End */
    } s;
    struct bdk_dap_imp_dar_cn88xxp1
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint32_t reserved_11_31        : 21;
        uint32_t cabnsen               : 1;  /**< [ 10: 10](R/W) Enable nonsecure CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault on nonsecure CAB accesses.
                                                                 1 = Enable nonsecure CAB accesses. */
        uint32_t caben                 : 1;  /**< [  9:  9](R/W) Enable CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault for all CAB accesses.
                                                                 1 = Enable all CAB accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t reserved_6_8          : 3;
        uint32_t deviceen              : 1;  /**< [  5:  5](R/W) Set this bit to use CVM-AP inside DAP for CNXXXX addressing accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t dabdeviceen           : 1;  /**< [  4:  4](R/W) Set this bit to use ARM-AP inside DAP for DAB serial bus accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spniden               : 1;  /**< [  3:  3](R/W) Set this bit to enable secure non invasive debug enable.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t spiden                : 1;  /**< [  2:  2](R/W) Set this bit to enable secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t niden                 : 1;  /**< [  1:  1](R/W) Set this bit to enable non secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t dbgen                 : 1;  /**< [  0:  0](R/W) Set this bit to enable debug enable.

                                                                 When in trusted-mode resets to 0, else 1. */
#else /* Word 0 - Little Endian */
        uint32_t dbgen                 : 1;  /**< [  0:  0](R/W) Set this bit to enable debug enable.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t niden                 : 1;  /**< [  1:  1](R/W) Set this bit to enable non secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spiden                : 1;  /**< [  2:  2](R/W) Set this bit to enable secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spniden               : 1;  /**< [  3:  3](R/W) Set this bit to enable secure non invasive debug enable.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t dabdeviceen           : 1;  /**< [  4:  4](R/W) Set this bit to use ARM-AP inside DAP for DAB serial bus accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t deviceen              : 1;  /**< [  5:  5](R/W) Set this bit to use CVM-AP inside DAP for CNXXXX addressing accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t reserved_6_8          : 3;
        uint32_t caben                 : 1;  /**< [  9:  9](R/W) Enable CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault for all CAB accesses.
                                                                 1 = Enable all CAB accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t cabnsen               : 1;  /**< [ 10: 10](R/W) Enable nonsecure CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault on nonsecure CAB accesses.
                                                                 1 = Enable nonsecure CAB accesses. */
        uint32_t reserved_11_31        : 21;
#endif /* Word 0 - End */
    } cn88xxp1;
    struct bdk_dap_imp_dar_cn9
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint32_t reserved_30_31        : 2;
        uint32_t distracefeature       : 1;  /**< [ 29: 29](R/W) Reserved.
                                                                 Internal:
                                                                 Passed to trace unit, but not presently used.
                                                                 0 = Future trace feature enabled.
                                                                 1 = Future trace feature disabled. */
        uint32_t distrace              : 1;  /**< [ 28: 28](RO) Trace unit is always discoverable in CNXXXX.
                                                                 0 = Trace unit is discoverable by software.
                                                                 1 = Trace unit is hidden.

                                                                 In CNXXXX, always discoverable. */
        uint32_t reserved_11_27        : 17;
        uint32_t cabnsen               : 1;  /**< [ 10: 10](R/W) Enable nonsecure CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault on nonsecure CAB accesses.
                                                                 1 = Enable nonsecure CAB accesses. */
        uint32_t caben                 : 1;  /**< [  9:  9](R/W) Enable CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault for all CAB accesses.
                                                                 1 = Enable all CAB accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t reserved_6_8          : 3;
        uint32_t deviceen              : 1;  /**< [  5:  5](R/W) Set this bit to use CVM-AP inside DAP for CNXXXX addressing accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t dabdeviceen           : 1;  /**< [  4:  4](R/W) Set this bit to use ARM-AP inside DAP for DAB serial bus accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spniden               : 1;  /**< [  3:  3](R/W) Set this bit to enable secure noninvasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spiden                : 1;  /**< [  2:  2](R/W) Set this bit to enable secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t niden                 : 1;  /**< [  1:  1](R/W) Set this bit to enable nonsecure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t dbgen                 : 1;  /**< [  0:  0](R/W) Set this bit to enable debug enable.

                                                                 When in trusted mode resets to zero, else one. */
#else /* Word 0 - Little Endian */
        uint32_t dbgen                 : 1;  /**< [  0:  0](R/W) Set this bit to enable debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t niden                 : 1;  /**< [  1:  1](R/W) Set this bit to enable nonsecure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spiden                : 1;  /**< [  2:  2](R/W) Set this bit to enable secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spniden               : 1;  /**< [  3:  3](R/W) Set this bit to enable secure noninvasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t dabdeviceen           : 1;  /**< [  4:  4](R/W) Set this bit to use ARM-AP inside DAP for DAB serial bus accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t deviceen              : 1;  /**< [  5:  5](R/W) Set this bit to use CVM-AP inside DAP for CNXXXX addressing accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t reserved_6_8          : 3;
        uint32_t caben                 : 1;  /**< [  9:  9](R/W) Enable CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault for all CAB accesses.
                                                                 1 = Enable all CAB accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t cabnsen               : 1;  /**< [ 10: 10](R/W) Enable nonsecure CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault on nonsecure CAB accesses.
                                                                 1 = Enable nonsecure CAB accesses. */
        uint32_t reserved_11_27        : 17;
        uint32_t distrace              : 1;  /**< [ 28: 28](RO) Trace unit is always discoverable in CNXXXX.
                                                                 0 = Trace unit is discoverable by software.
                                                                 1 = Trace unit is hidden.

                                                                 In CNXXXX, always discoverable. */
        uint32_t distracefeature       : 1;  /**< [ 29: 29](R/W) Reserved.
                                                                 Internal:
                                                                 Passed to trace unit, but not presently used.
                                                                 0 = Future trace feature enabled.
                                                                 1 = Future trace feature disabled. */
        uint32_t reserved_30_31        : 2;
#endif /* Word 0 - End */
    } cn9;
    struct bdk_dap_imp_dar_cn81xx
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint32_t reserved_30_31        : 2;
        uint32_t distracefeature       : 1;  /**< [ 29: 29](R/W) Reserved.
                                                                 Internal:
                                                                 Passed to trace unit, but not presently used.
                                                                 0 = Future trace feature enabled.
                                                                 1 = Future trace feature disabled. */
        uint32_t distrace              : 1;  /**< [ 28: 28](R/W) Disable trace unit discovery.
                                                                 0 = Trace unit is discoverable by software.
                                                                 1 = Trace unit is hidden. */
        uint32_t reserved_11_27        : 17;
        uint32_t cabnsen               : 1;  /**< [ 10: 10](R/W) Enable nonsecure CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault on nonsecure CAB accesses.
                                                                 1 = Enable nonsecure CAB accesses. */
        uint32_t caben                 : 1;  /**< [  9:  9](R/W) Enable CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault for all CAB accesses.
                                                                 1 = Enable all CAB accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t reserved_6_8          : 3;
        uint32_t deviceen              : 1;  /**< [  5:  5](R/W) Set this bit to use CVM-AP inside DAP for CNXXXX addressing accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t dabdeviceen           : 1;  /**< [  4:  4](R/W) Set this bit to use ARM-AP inside DAP for DAB serial bus accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spniden               : 1;  /**< [  3:  3](R/W) Set this bit to enable secure noninvasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spiden                : 1;  /**< [  2:  2](R/W) Set this bit to enable secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t niden                 : 1;  /**< [  1:  1](R/W) Set this bit to enable nonsecure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t dbgen                 : 1;  /**< [  0:  0](R/W) Set this bit to enable debug enable.

                                                                 When in trusted mode resets to zero, else one. */
#else /* Word 0 - Little Endian */
        uint32_t dbgen                 : 1;  /**< [  0:  0](R/W) Set this bit to enable debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t niden                 : 1;  /**< [  1:  1](R/W) Set this bit to enable nonsecure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spiden                : 1;  /**< [  2:  2](R/W) Set this bit to enable secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spniden               : 1;  /**< [  3:  3](R/W) Set this bit to enable secure noninvasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t dabdeviceen           : 1;  /**< [  4:  4](R/W) Set this bit to use ARM-AP inside DAP for DAB serial bus accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t deviceen              : 1;  /**< [  5:  5](R/W) Set this bit to use CVM-AP inside DAP for CNXXXX addressing accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t reserved_6_8          : 3;
        uint32_t caben                 : 1;  /**< [  9:  9](R/W) Enable CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault for all CAB accesses.
                                                                 1 = Enable all CAB accesses.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t cabnsen               : 1;  /**< [ 10: 10](R/W) Enable nonsecure CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault on nonsecure CAB accesses.
                                                                 1 = Enable nonsecure CAB accesses. */
        uint32_t reserved_11_27        : 17;
        uint32_t distrace              : 1;  /**< [ 28: 28](R/W) Disable trace unit discovery.
                                                                 0 = Trace unit is discoverable by software.
                                                                 1 = Trace unit is hidden. */
        uint32_t distracefeature       : 1;  /**< [ 29: 29](R/W) Reserved.
                                                                 Internal:
                                                                 Passed to trace unit, but not presently used.
                                                                 0 = Future trace feature enabled.
                                                                 1 = Future trace feature disabled. */
        uint32_t reserved_30_31        : 2;
#endif /* Word 0 - End */
    } cn81xx;
    /* struct bdk_dap_imp_dar_cn81xx cn83xx; */
    struct bdk_dap_imp_dar_cn88xxp2
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint32_t reserved_30_31        : 2;
        uint32_t distracefeature       : 1;  /**< [ 29: 29](R/W) Reserved.
                                                                 Internal:
                                                                 Passed to trace unit, but not presently used.
                                                                 0 = Future trace feature enabled.
                                                                 1 = Future trace feature disabled. */
        uint32_t distrace              : 1;  /**< [ 28: 28](R/W) Disable trace unit discovery.
                                                                 0 = Trace unit is discoverable by software.
                                                                 1 = Trace unit is hidden. */
        uint32_t reserved_11_27        : 17;
        uint32_t cabnsen               : 1;  /**< [ 10: 10](R/W) Enable nonsecure CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault on nonsecure CAB accesses.
                                                                 1 = Enable nonsecure CAB accesses. */
        uint32_t caben                 : 1;  /**< [  9:  9](R/W) Enable CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault for all CAB accesses.
                                                                 1 = Enable all CAB accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t reserved_6_8          : 3;
        uint32_t deviceen              : 1;  /**< [  5:  5](R/W) Set this bit to use CVM-AP inside DAP for CNXXXX addressing accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t dabdeviceen           : 1;  /**< [  4:  4](R/W) Set this bit to use ARM-AP inside DAP for DAB serial bus accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t spniden               : 1;  /**< [  3:  3](R/W) Set this bit to enable secure noninvasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spiden                : 1;  /**< [  2:  2](R/W) Set this bit to enable secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t niden                 : 1;  /**< [  1:  1](R/W) Set this bit to enable nonsecure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t dbgen                 : 1;  /**< [  0:  0](R/W) Set this bit to enable debug enable.

                                                                 When in trusted mode resets to zero, else one. */
#else /* Word 0 - Little Endian */
        uint32_t dbgen                 : 1;  /**< [  0:  0](R/W) Set this bit to enable debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t niden                 : 1;  /**< [  1:  1](R/W) Set this bit to enable nonsecure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spiden                : 1;  /**< [  2:  2](R/W) Set this bit to enable secure invasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t spniden               : 1;  /**< [  3:  3](R/W) Set this bit to enable secure noninvasive debug enable.

                                                                 When in trusted mode resets to zero, else one. */
        uint32_t dabdeviceen           : 1;  /**< [  4:  4](R/W) Set this bit to use ARM-AP inside DAP for DAB serial bus accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t deviceen              : 1;  /**< [  5:  5](R/W) Set this bit to use CVM-AP inside DAP for CNXXXX addressing accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t reserved_6_8          : 3;
        uint32_t caben                 : 1;  /**< [  9:  9](R/W) Enable CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault for all CAB accesses.
                                                                 1 = Enable all CAB accesses.

                                                                 When in trusted-mode resets to 0, else 1. */
        uint32_t cabnsen               : 1;  /**< [ 10: 10](R/W) Enable nonsecure CAB accesses from NCB and RSL devices.
                                                                 0 = Return fault on nonsecure CAB accesses.
                                                                 1 = Enable nonsecure CAB accesses. */
        uint32_t reserved_11_27        : 17;
        uint32_t distrace              : 1;  /**< [ 28: 28](R/W) Disable trace unit discovery.
                                                                 0 = Trace unit is discoverable by software.
                                                                 1 = Trace unit is hidden. */
        uint32_t distracefeature       : 1;  /**< [ 29: 29](R/W) Reserved.
                                                                 Internal:
                                                                 Passed to trace unit, but not presently used.
                                                                 0 = Future trace feature enabled.
                                                                 1 = Future trace feature disabled. */
        uint32_t reserved_30_31        : 2;
#endif /* Word 0 - End */
    } cn88xxp2;
};
typedef union bdk_dap_imp_dar bdk_dap_imp_dar_t;

#define BDK_DAP_IMP_DAR BDK_DAP_IMP_DAR_FUNC()
static inline uint64_t BDK_DAP_IMP_DAR_FUNC(void) __attribute__ ((pure, always_inline));
static inline uint64_t BDK_DAP_IMP_DAR_FUNC(void)
{
    return 0x87e002000100ll;
}

#define typedef_BDK_DAP_IMP_DAR bdk_dap_imp_dar_t
#define bustype_BDK_DAP_IMP_DAR BDK_CSR_TYPE_RSL32b
#define basename_BDK_DAP_IMP_DAR "DAP_IMP_DAR"
#define device_bar_BDK_DAP_IMP_DAR 0x0 /* PF_BAR0 */
#define busnum_BDK_DAP_IMP_DAR 0
#define arguments_BDK_DAP_IMP_DAR -1,-1,-1,-1

/**
 * Register (RSL32b) dap_owb_to
 *
 * DAP One-Wire-Bus Timeout Register
 * This register configures the one-wire bus.
 */
union bdk_dap_owb_to
{
    uint32_t u;
    struct bdk_dap_owb_to_s
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint32_t to_dis                : 1;  /**< [ 31: 31](R/W) Disable timeout mechanism. */
        uint32_t reserved_16_30        : 15;
        uint32_t tovalue               : 16; /**< [ 15:  0](R/W) Timeout value. If an OWB transaction is longer than this number
                                                                 of coprocessor-clock cycles, it will timeout. */
#else /* Word 0 - Little Endian */
        uint32_t tovalue               : 16; /**< [ 15:  0](R/W) Timeout value. If an OWB transaction is longer than this number
                                                                 of coprocessor-clock cycles, it will timeout. */
        uint32_t reserved_16_30        : 15;
        uint32_t to_dis                : 1;  /**< [ 31: 31](R/W) Disable timeout mechanism. */
#endif /* Word 0 - End */
    } s;
    struct bdk_dap_owb_to_cn88xxp1
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint32_t reserved_31           : 1;
        uint32_t reserved_16_30        : 15;
        uint32_t tovalue               : 16; /**< [ 15:  0](R/W) Timeout value. If an OWB transaction is longer than this number
                                                                 of coprocessor-clock cycles, it will timeout. */
#else /* Word 0 - Little Endian */
        uint32_t tovalue               : 16; /**< [ 15:  0](R/W) Timeout value. If an OWB transaction is longer than this number
                                                                 of coprocessor-clock cycles, it will timeout. */
        uint32_t reserved_16_30        : 15;
        uint32_t reserved_31           : 1;
#endif /* Word 0 - End */
    } cn88xxp1;
    /* struct bdk_dap_owb_to_s cn9; */
    /* struct bdk_dap_owb_to_s cn81xx; */
    /* struct bdk_dap_owb_to_s cn83xx; */
    /* struct bdk_dap_owb_to_s cn88xxp2; */
};
typedef union bdk_dap_owb_to bdk_dap_owb_to_t;

#define BDK_DAP_OWB_TO BDK_DAP_OWB_TO_FUNC()
static inline uint64_t BDK_DAP_OWB_TO_FUNC(void) __attribute__ ((pure, always_inline));
static inline uint64_t BDK_DAP_OWB_TO_FUNC(void)
{
    return 0x87e002000110ll;
}

#define typedef_BDK_DAP_OWB_TO bdk_dap_owb_to_t
#define bustype_BDK_DAP_OWB_TO BDK_CSR_TYPE_RSL32b
#define basename_BDK_DAP_OWB_TO "DAP_OWB_TO"
#define device_bar_BDK_DAP_OWB_TO 0x0 /* PF_BAR0 */
#define busnum_BDK_DAP_OWB_TO 0
#define arguments_BDK_DAP_OWB_TO -1,-1,-1,-1

/**
 * Register (RSL) dap_owb_to_status
 *
 * DAP One Wire Bus Timeout Status Register
 * This register reports error status.
 */
union bdk_dap_owb_to_status
{
    uint64_t u;
    struct bdk_dap_owb_to_status_s
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint64_t reserved_1_63         : 63;
        uint64_t time_out              : 1;  /**< [  0:  0](R/W1C/H) This bit will be set if there is timeout in one wire bus activity. */
#else /* Word 0 - Little Endian */
        uint64_t time_out              : 1;  /**< [  0:  0](R/W1C/H) This bit will be set if there is timeout in one wire bus activity. */
        uint64_t reserved_1_63         : 63;
#endif /* Word 0 - End */
    } s;
    /* struct bdk_dap_owb_to_status_s cn; */
};
typedef union bdk_dap_owb_to_status bdk_dap_owb_to_status_t;

#define BDK_DAP_OWB_TO_STATUS BDK_DAP_OWB_TO_STATUS_FUNC()
static inline uint64_t BDK_DAP_OWB_TO_STATUS_FUNC(void) __attribute__ ((pure, always_inline));
static inline uint64_t BDK_DAP_OWB_TO_STATUS_FUNC(void)
{
    if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
        return 0x87e002000138ll;
    __bdk_csr_fatal("DAP_OWB_TO_STATUS", 0, 0, 0, 0, 0);
}

#define typedef_BDK_DAP_OWB_TO_STATUS bdk_dap_owb_to_status_t
#define bustype_BDK_DAP_OWB_TO_STATUS BDK_CSR_TYPE_RSL
#define basename_BDK_DAP_OWB_TO_STATUS "DAP_OWB_TO_STATUS"
#define device_bar_BDK_DAP_OWB_TO_STATUS 0x0 /* PF_BAR0 */
#define busnum_BDK_DAP_OWB_TO_STATUS 0
#define arguments_BDK_DAP_OWB_TO_STATUS -1,-1,-1,-1

/**
 * Register (RSL) dap_rst_on_warm
 *
 * DAP Reset On Warm Reset Register
 */
union bdk_dap_rst_on_warm
{
    uint64_t u;
    struct bdk_dap_rst_on_warm_s
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint64_t reserved_1_63         : 63;
        uint64_t rst_on_warm           : 1;  /**< [  0:  0](R/W1S) Always reset DAR register.
                                                                 Once set this bit cannot be cleared until the next cold reset.
                                                                 [RST_ON_WARM] is set to one when trusted-mode changes from zero to one (i.e. a
                                                                 non-trusted boot is followed by a trusted boot). */
#else /* Word 0 - Little Endian */
        uint64_t rst_on_warm           : 1;  /**< [  0:  0](R/W1S) Always reset DAR register.
                                                                 Once set this bit cannot be cleared until the next cold reset.
                                                                 [RST_ON_WARM] is set to one when trusted-mode changes from zero to one (i.e. a
                                                                 non-trusted boot is followed by a trusted boot). */
        uint64_t reserved_1_63         : 63;
#endif /* Word 0 - End */
    } s;
    /* struct bdk_dap_rst_on_warm_s cn; */
};
typedef union bdk_dap_rst_on_warm bdk_dap_rst_on_warm_t;

#define BDK_DAP_RST_ON_WARM BDK_DAP_RST_ON_WARM_FUNC()
static inline uint64_t BDK_DAP_RST_ON_WARM_FUNC(void) __attribute__ ((pure, always_inline));
static inline uint64_t BDK_DAP_RST_ON_WARM_FUNC(void)
{
    if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
        return 0x87e002000128ll;
    if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
        return 0x87e002000128ll;
    if (CAVIUM_IS_MODEL(CAVIUM_CN88XX_PASS2_X))
        return 0x87e002000128ll;
    if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
        return 0x87e002000128ll;
    __bdk_csr_fatal("DAP_RST_ON_WARM", 0, 0, 0, 0, 0);
}

#define typedef_BDK_DAP_RST_ON_WARM bdk_dap_rst_on_warm_t
#define bustype_BDK_DAP_RST_ON_WARM BDK_CSR_TYPE_RSL
#define basename_BDK_DAP_RST_ON_WARM "DAP_RST_ON_WARM"
#define device_bar_BDK_DAP_RST_ON_WARM 0x0 /* PF_BAR0 */
#define busnum_BDK_DAP_RST_ON_WARM 0
#define arguments_BDK_DAP_RST_ON_WARM -1,-1,-1,-1

/**
 * Register (RSL) dap_scratch
 *
 * INTERNAL: DAP Scratch Register
 *
 * This register is a scratch register for software use.
 */
union bdk_dap_scratch
{
    uint64_t u;
    struct bdk_dap_scratch_s
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint64_t data                  : 64; /**< [ 63:  0](R/W) Scratch data, not used by hardware. */
#else /* Word 0 - Little Endian */
        uint64_t data                  : 64; /**< [ 63:  0](R/W) Scratch data, not used by hardware. */
#endif /* Word 0 - End */
    } s;
    /* struct bdk_dap_scratch_s cn; */
};
typedef union bdk_dap_scratch bdk_dap_scratch_t;

#define BDK_DAP_SCRATCH BDK_DAP_SCRATCH_FUNC()
static inline uint64_t BDK_DAP_SCRATCH_FUNC(void) __attribute__ ((pure, always_inline));
static inline uint64_t BDK_DAP_SCRATCH_FUNC(void)
{
    if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
        return 0x87e002000118ll;
    if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
        return 0x87e002000118ll;
    if (CAVIUM_IS_MODEL(CAVIUM_CN88XX_PASS2_X))
        return 0x87e002000118ll;
    if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
        return 0x87e002000118ll;
    __bdk_csr_fatal("DAP_SCRATCH", 0, 0, 0, 0, 0);
}

#define typedef_BDK_DAP_SCRATCH bdk_dap_scratch_t
#define bustype_BDK_DAP_SCRATCH BDK_CSR_TYPE_RSL
#define basename_BDK_DAP_SCRATCH "DAP_SCRATCH"
#define device_bar_BDK_DAP_SCRATCH 0x0 /* PF_BAR0 */
#define busnum_BDK_DAP_SCRATCH 0
#define arguments_BDK_DAP_SCRATCH -1,-1,-1,-1

/**
 * Register (RSL32b) dap_sraaddr
 *
 * DAP RSL Devices Broadcast Write Polling Register
 * This register controls broadcast write or polling to the cores.
 */
union bdk_dap_sraaddr
{
    uint32_t u;
    struct bdk_dap_sraaddr_s
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint32_t reserved_29_31        : 3;
        uint32_t cabdabsel             : 1;  /**< [ 28: 28](R/W) CAB or DAB bus access selection for polling/broadcast write.
                                                                 0 = Polling/broadcast write is for DAB bus, bits \<20:5\> is the address offset.
                                                                 1 = Polling/broadcast write is for CAB bus, bits \<19:5\> is the register number. */
        uint32_t reserved_21_27        : 7;
        uint32_t regnum                : 16; /**< [ 20:  5](R/W) If [CABDABSEL]=1, then \<19:5\> is the register number with these bit definitions:
                                                                 \<19\>: Op0[0].
                                                                 \<18:16\>: Op1.
                                                                 \<15:12\>: CRn.
                                                                 \<11:8\>: CRm.
                                                                 \<7:5\>: Op.

                                                                 If [CABDABSEL]=0, then [REGNUM] is the register offset. */
        uint32_t reserved_2_4          : 3;
        uint32_t errstatus             : 1;  /**< [  1:  1](RAZ) Currently reserved. */
        uint32_t busy                  : 1;  /**< [  0:  0](RO/H) Busy indicator if the broadcast write or polling still in progress.
                                                                 0 = Idle.
                                                                 1 = Broadcast write or polling still in progress. */
#else /* Word 0 - Little Endian */
        uint32_t busy                  : 1;  /**< [  0:  0](RO/H) Busy indicator if the broadcast write or polling still in progress.
                                                                 0 = Idle.
                                                                 1 = Broadcast write or polling still in progress. */
        uint32_t errstatus             : 1;  /**< [  1:  1](RAZ) Currently reserved. */
        uint32_t reserved_2_4          : 3;
        uint32_t regnum                : 16; /**< [ 20:  5](R/W) If [CABDABSEL]=1, then \<19:5\> is the register number with these bit definitions:
                                                                 \<19\>: Op0[0].
                                                                 \<18:16\>: Op1.
                                                                 \<15:12\>: CRn.
                                                                 \<11:8\>: CRm.
                                                                 \<7:5\>: Op.

                                                                 If [CABDABSEL]=0, then [REGNUM] is the register offset. */
        uint32_t reserved_21_27        : 7;
        uint32_t cabdabsel             : 1;  /**< [ 28: 28](R/W) CAB or DAB bus access selection for polling/broadcast write.
                                                                 0 = Polling/broadcast write is for DAB bus, bits \<20:5\> is the address offset.
                                                                 1 = Polling/broadcast write is for CAB bus, bits \<19:5\> is the register number. */
        uint32_t reserved_29_31        : 3;
#endif /* Word 0 - End */
    } s;
    /* struct bdk_dap_sraaddr_s cn88xxp1; */
    struct bdk_dap_sraaddr_cn9
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint32_t reserved_29_31        : 3;
        uint32_t cabdabsel             : 1;  /**< [ 28: 28](R/W) CAB or DAB bus access selection for polling/broadcast write.
                                                                 0 = Polling/broadcast write is for DAB bus, bits \<20:5\> is the address offset.
                                                                 1 = Polling/broadcast write is for CAB bus, bits \<19:5\> is the register number. */
        uint32_t reserved_21_27        : 7;
        uint32_t regnum                : 16; /**< [ 20:  5](R/W) If [CABDABSEL]=1, then \<19:5\> is the register number with these bit definitions:
                                                                 \<19\>: Op0[0].
                                                                 \<18:16\>: Op1.
                                                                 \<15:12\>: CRn.
                                                                 \<11:8\>: CRm.
                                                                 \<7:5\>: Op.

                                                                 If [CABDABSEL]=0, then [REGNUM] is the register offset. */
        uint32_t reserved_2_4          : 3;
        uint32_t errstatus             : 1;  /**< [  1:  1](RAZ) Reserved. */
        uint32_t busy                  : 1;  /**< [  0:  0](RO/H) Busy indicator if the broadcast write or polling still in progress.
                                                                 0 = Idle.
                                                                 1 = Broadcast write or polling still in progress. */
#else /* Word 0 - Little Endian */
        uint32_t busy                  : 1;  /**< [  0:  0](RO/H) Busy indicator if the broadcast write or polling still in progress.
                                                                 0 = Idle.
                                                                 1 = Broadcast write or polling still in progress. */
        uint32_t errstatus             : 1;  /**< [  1:  1](RAZ) Reserved. */
        uint32_t reserved_2_4          : 3;
        uint32_t regnum                : 16; /**< [ 20:  5](R/W) If [CABDABSEL]=1, then \<19:5\> is the register number with these bit definitions:
                                                                 \<19\>: Op0[0].
                                                                 \<18:16\>: Op1.
                                                                 \<15:12\>: CRn.
                                                                 \<11:8\>: CRm.
                                                                 \<7:5\>: Op.

                                                                 If [CABDABSEL]=0, then [REGNUM] is the register offset. */
        uint32_t reserved_21_27        : 7;
        uint32_t cabdabsel             : 1;  /**< [ 28: 28](R/W) CAB or DAB bus access selection for polling/broadcast write.
                                                                 0 = Polling/broadcast write is for DAB bus, bits \<20:5\> is the address offset.
                                                                 1 = Polling/broadcast write is for CAB bus, bits \<19:5\> is the register number. */
        uint32_t reserved_29_31        : 3;
#endif /* Word 0 - End */
    } cn9;
    /* struct bdk_dap_sraaddr_cn9 cn81xx; */
    /* struct bdk_dap_sraaddr_cn9 cn83xx; */
    struct bdk_dap_sraaddr_cn88xxp2
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint32_t reserved_29_31        : 3;
        uint32_t cabdabsel             : 1;  /**< [ 28: 28](R/W) CAB or DAB bus access selection for polling/broadcast write.
                                                                 0 = Polling/broadcast write is for DAB bus, bits \<20:5\> is the address offset.
                                                                 1 = Polling/broadcast write is for CAB bus, bits \<19:5\> is the register number. */
        uint32_t reserved_21_27        : 7;
        uint32_t regnum                : 16; /**< [ 20:  5](R/W) If [CABDABSEL]=1, then \<19:5\> is the register number with these bit definitions:
                                                                 \<19\>: Op0[0].
                                                                 \<18:16\>: Op1
                                                                 \<15:12\>: CRn.
                                                                 \<11:8\>: CRm.
                                                                 \<7:5\>: Op.

                                                                 If [CABDABSEL]=0, then [REGNUM] is the register offset. */
        uint32_t reserved_2_4          : 3;
        uint32_t errstatus             : 1;  /**< [  1:  1](RAZ) Reserved. */
        uint32_t busy                  : 1;  /**< [  0:  0](RO/H) Busy indicator if the broadcast write or polling still in progress.
                                                                 0 = Idle.
                                                                 1 = Broadcast write or polling still in progress. */
#else /* Word 0 - Little Endian */
        uint32_t busy                  : 1;  /**< [  0:  0](RO/H) Busy indicator if the broadcast write or polling still in progress.
                                                                 0 = Idle.
                                                                 1 = Broadcast write or polling still in progress. */
        uint32_t errstatus             : 1;  /**< [  1:  1](RAZ) Reserved. */
        uint32_t reserved_2_4          : 3;
        uint32_t regnum                : 16; /**< [ 20:  5](R/W) If [CABDABSEL]=1, then \<19:5\> is the register number with these bit definitions:
                                                                 \<19\>: Op0[0].
                                                                 \<18:16\>: Op1
                                                                 \<15:12\>: CRn.
                                                                 \<11:8\>: CRm.
                                                                 \<7:5\>: Op.

                                                                 If [CABDABSEL]=0, then [REGNUM] is the register offset. */
        uint32_t reserved_21_27        : 7;
        uint32_t cabdabsel             : 1;  /**< [ 28: 28](R/W) CAB or DAB bus access selection for polling/broadcast write.
                                                                 0 = Polling/broadcast write is for DAB bus, bits \<20:5\> is the address offset.
                                                                 1 = Polling/broadcast write is for CAB bus, bits \<19:5\> is the register number. */
        uint32_t reserved_29_31        : 3;
#endif /* Word 0 - End */
    } cn88xxp2;
};
typedef union bdk_dap_sraaddr bdk_dap_sraaddr_t;

#define BDK_DAP_SRAADDR BDK_DAP_SRAADDR_FUNC()
static inline uint64_t BDK_DAP_SRAADDR_FUNC(void) __attribute__ ((pure, always_inline));
static inline uint64_t BDK_DAP_SRAADDR_FUNC(void)
{
    return 0x87e002000104ll;
}

#define typedef_BDK_DAP_SRAADDR bdk_dap_sraaddr_t
#define bustype_BDK_DAP_SRAADDR BDK_CSR_TYPE_RSL32b
#define basename_BDK_DAP_SRAADDR "DAP_SRAADDR"
#define device_bar_BDK_DAP_SRAADDR 0x0 /* PF_BAR0 */
#define busnum_BDK_DAP_SRAADDR 0
#define arguments_BDK_DAP_SRAADDR -1,-1,-1,-1

/**
 * Register (RSL) dap_sradata
 *
 * DAP Broadcast Write Data Register
 * Data register for broadcast writes and polling from the cores.
 */
union bdk_dap_sradata
{
    uint64_t u;
    struct bdk_dap_sradata_s
    {
#if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
        uint64_t reserved_0_63         : 64;
#else /* Word 0 - Little Endian */
        uint64_t reserved_0_63         : 64;
#endif /* Word 0 - End */
    } s;
    /* struct bdk_dap_sradata_s cn; */
};
typedef union bdk_dap_sradata bdk_dap_sradata_t;

#define BDK_DAP_SRADATA BDK_DAP_SRADATA_FUNC()
static inline uint64_t BDK_DAP_SRADATA_FUNC(void) __attribute__ ((pure, always_inline));
static inline uint64_t BDK_DAP_SRADATA_FUNC(void)
{
    return 0x87e002000108ll;
}

#define typedef_BDK_DAP_SRADATA bdk_dap_sradata_t
#define bustype_BDK_DAP_SRADATA BDK_CSR_TYPE_RSL
#define basename_BDK_DAP_SRADATA "DAP_SRADATA"
#define device_bar_BDK_DAP_SRADATA 0x0 /* PF_BAR0 */
#define busnum_BDK_DAP_SRADATA 0
#define arguments_BDK_DAP_SRADATA -1,-1,-1,-1

#endif /* __BDK_CSRS_DAP_H__ */