aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/octeon-sdk/cvmx-usbnx-defs.h
blob: 6a952f8639e1375e64b044712de257ed2d5728d4 (plain) (blame)
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
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
/***********************license start***************
 * Copyright (c) 2003-2012  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 INC. 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**************************************/


/**
 * cvmx-usbnx-defs.h
 *
 * Configuration and status register (CSR) type definitions for
 * Octeon usbnx.
 *
 * This file is auto generated. Do not edit.
 *
 * <hr>$Revision$<hr>
 *
 */
#ifndef __CVMX_USBNX_DEFS_H__
#define __CVMX_USBNX_DEFS_H__

#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_BIST_STATUS(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_BIST_STATUS(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00011800680007F8ull) + ((block_id) & 1) * 0x10000000ull;
}
#else
#define CVMX_USBNX_BIST_STATUS(block_id) (CVMX_ADD_IO_SEG(0x00011800680007F8ull) + ((block_id) & 1) * 0x10000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_CLK_CTL(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_CLK_CTL(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x0001180068000010ull) + ((block_id) & 1) * 0x10000000ull;
}
#else
#define CVMX_USBNX_CLK_CTL(block_id) (CVMX_ADD_IO_SEG(0x0001180068000010ull) + ((block_id) & 1) * 0x10000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_CTL_STATUS(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_CTL_STATUS(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000800ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_CTL_STATUS(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000800ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_INB_CHN0(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_INB_CHN0(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000818ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_INB_CHN0(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000818ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_INB_CHN1(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_INB_CHN1(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000820ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_INB_CHN1(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000820ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_INB_CHN2(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_INB_CHN2(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000828ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_INB_CHN2(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000828ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_INB_CHN3(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_INB_CHN3(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000830ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_INB_CHN3(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000830ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_INB_CHN4(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_INB_CHN4(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000838ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_INB_CHN4(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000838ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_INB_CHN5(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_INB_CHN5(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000840ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_INB_CHN5(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000840ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_INB_CHN6(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_INB_CHN6(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000848ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_INB_CHN6(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000848ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_INB_CHN7(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_INB_CHN7(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000850ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_INB_CHN7(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000850ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_OUTB_CHN0(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_OUTB_CHN0(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000858ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_OUTB_CHN0(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000858ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_OUTB_CHN1(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_OUTB_CHN1(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000860ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_OUTB_CHN1(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000860ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_OUTB_CHN2(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_OUTB_CHN2(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000868ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_OUTB_CHN2(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000868ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_OUTB_CHN3(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_OUTB_CHN3(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000870ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_OUTB_CHN3(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000870ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_OUTB_CHN4(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_OUTB_CHN4(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000878ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_OUTB_CHN4(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000878ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_OUTB_CHN5(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_OUTB_CHN5(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000880ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_OUTB_CHN5(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000880ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_OUTB_CHN6(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_OUTB_CHN6(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000888ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_OUTB_CHN6(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000888ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA0_OUTB_CHN7(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA0_OUTB_CHN7(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000890ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA0_OUTB_CHN7(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000890ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_DMA_TEST(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_DMA_TEST(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x00016F0000000808ull) + ((block_id) & 1) * 0x100000000000ull;
}
#else
#define CVMX_USBNX_DMA_TEST(block_id) (CVMX_ADD_IO_SEG(0x00016F0000000808ull) + ((block_id) & 1) * 0x100000000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_INT_ENB(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_INT_ENB(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x0001180068000008ull) + ((block_id) & 1) * 0x10000000ull;
}
#else
#define CVMX_USBNX_INT_ENB(block_id) (CVMX_ADD_IO_SEG(0x0001180068000008ull) + ((block_id) & 1) * 0x10000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_INT_SUM(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_INT_SUM(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x0001180068000000ull) + ((block_id) & 1) * 0x10000000ull;
}
#else
#define CVMX_USBNX_INT_SUM(block_id) (CVMX_ADD_IO_SEG(0x0001180068000000ull) + ((block_id) & 1) * 0x10000000ull)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_USBNX_USBP_CTL_STATUS(unsigned long block_id)
{
	if (!(
	      (OCTEON_IS_MODEL(OCTEON_CN30XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN31XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN50XX) && ((block_id == 0))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN52XX) && ((block_id <= 1))) ||
	      (OCTEON_IS_MODEL(OCTEON_CN56XX) && ((block_id == 0)))))
		cvmx_warn("CVMX_USBNX_USBP_CTL_STATUS(%lu) is invalid on this chip\n", block_id);
	return CVMX_ADD_IO_SEG(0x0001180068000018ull) + ((block_id) & 1) * 0x10000000ull;
}
#else
#define CVMX_USBNX_USBP_CTL_STATUS(block_id) (CVMX_ADD_IO_SEG(0x0001180068000018ull) + ((block_id) & 1) * 0x10000000ull)
#endif

/**
 * cvmx_usbn#_bist_status
 *
 * USBN_BIST_STATUS = USBN's Control and Status
 *
 * Contain general control bits and status information for the USBN.
 */
union cvmx_usbnx_bist_status {
	uint64_t u64;
	struct cvmx_usbnx_bist_status_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_7_63                : 57;
	uint64_t u2nc_bis                     : 1;  /**< Bist status U2N CTL FIFO Memory. */
	uint64_t u2nf_bis                     : 1;  /**< Bist status U2N FIFO Memory. */
	uint64_t e2hc_bis                     : 1;  /**< Bist status E2H CTL FIFO Memory. */
	uint64_t n2uf_bis                     : 1;  /**< Bist status N2U  FIFO Memory. */
	uint64_t usbc_bis                     : 1;  /**< Bist status USBC FIFO Memory. */
	uint64_t nif_bis                      : 1;  /**< Bist status for Inbound Memory. */
	uint64_t nof_bis                      : 1;  /**< Bist status for Outbound Memory. */
#else
	uint64_t nof_bis                      : 1;
	uint64_t nif_bis                      : 1;
	uint64_t usbc_bis                     : 1;
	uint64_t n2uf_bis                     : 1;
	uint64_t e2hc_bis                     : 1;
	uint64_t u2nf_bis                     : 1;
	uint64_t u2nc_bis                     : 1;
	uint64_t reserved_7_63                : 57;
#endif
	} s;
	struct cvmx_usbnx_bist_status_cn30xx {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_3_63                : 61;
	uint64_t usbc_bis                     : 1;  /**< Bist status USBC FIFO Memory. */
	uint64_t nif_bis                      : 1;  /**< Bist status for Inbound Memory. */
	uint64_t nof_bis                      : 1;  /**< Bist status for Outbound Memory. */
#else
	uint64_t nof_bis                      : 1;
	uint64_t nif_bis                      : 1;
	uint64_t usbc_bis                     : 1;
	uint64_t reserved_3_63                : 61;
#endif
	} cn30xx;
	struct cvmx_usbnx_bist_status_cn30xx  cn31xx;
	struct cvmx_usbnx_bist_status_s       cn50xx;
	struct cvmx_usbnx_bist_status_s       cn52xx;
	struct cvmx_usbnx_bist_status_s       cn52xxp1;
	struct cvmx_usbnx_bist_status_s       cn56xx;
	struct cvmx_usbnx_bist_status_s       cn56xxp1;
};
typedef union cvmx_usbnx_bist_status cvmx_usbnx_bist_status_t;

/**
 * cvmx_usbn#_clk_ctl
 *
 * USBN_CLK_CTL = USBN's Clock Control
 *
 * This register is used to control the frequency of the hclk and the hreset and phy_rst signals.
 */
union cvmx_usbnx_clk_ctl {
	uint64_t u64;
	struct cvmx_usbnx_clk_ctl_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_20_63               : 44;
	uint64_t divide2                      : 2;  /**< The 'hclk' used by the USB subsystem is derived
                                                         from the eclk.
                                                         Also see the field DIVIDE. DIVIDE2<1> must currently
                                                         be zero because it is not implemented, so the maximum
                                                         ratio of eclk/hclk is currently 16.
                                                         The actual divide number for hclk is:
                                                         (DIVIDE2 + 1) * (DIVIDE + 1) */
	uint64_t hclk_rst                     : 1;  /**< When this field is '0' the HCLK-DIVIDER used to
                                                         generate the hclk in the USB Subsystem is held
                                                         in reset. This bit must be set to '0' before
                                                         changing the value os DIVIDE in this register.
                                                         The reset to the HCLK_DIVIDERis also asserted
                                                         when core reset is asserted. */
	uint64_t p_x_on                       : 1;  /**< Force USB-PHY on during suspend.
                                                         '1' USB-PHY XO block is powered-down during
                                                             suspend.
                                                         '0' USB-PHY XO block is powered-up during
                                                             suspend.
                                                         The value of this field must be set while POR is
                                                         active. */
	uint64_t reserved_14_15               : 2;
	uint64_t p_com_on                     : 1;  /**< '0' Force USB-PHY XO Bias, Bandgap and PLL to
                                                             remain powered in Suspend Mode.
                                                         '1' The USB-PHY XO Bias, Bandgap and PLL are
                                                             powered down in suspend mode.
                                                         The value of this field must be set while POR is
                                                         active. */
	uint64_t p_c_sel                      : 2;  /**< Phy clock speed select.
                                                         Selects the reference clock / crystal frequency.
                                                         '11': Reserved
                                                         '10': 48 MHz (reserved when a crystal is used)
                                                         '01': 24 MHz (reserved when a crystal is used)
                                                         '00': 12 MHz
                                                         The value of this field must be set while POR is
                                                         active.
                                                         NOTE: if a crystal is used as a reference clock,
                                                         this field must be set to 12 MHz. */
	uint64_t cdiv_byp                     : 1;  /**< Used to enable the bypass input to the USB_CLK_DIV. */
	uint64_t sd_mode                      : 2;  /**< Scaledown mode for the USBC. Control timing events
                                                         in the USBC, for normal operation this must be '0'. */
	uint64_t s_bist                       : 1;  /**< Starts bist on the hclk memories, during the '0'
                                                         to '1' transition. */
	uint64_t por                          : 1;  /**< Power On Reset for the PHY.
                                                         Resets all the PHYS registers and state machines. */
	uint64_t enable                       : 1;  /**< When '1' allows the generation of the hclk. When
                                                         '0' the hclk will not be generated. SEE DIVIDE
                                                         field of this register. */
	uint64_t prst                         : 1;  /**< When this field is '0' the reset associated with
                                                         the phy_clk functionality in the USB Subsystem is
                                                         help in reset. This bit should not be set to '1'
                                                         until the time it takes 6 clocks (hclk or phy_clk,
                                                         whichever is slower) has passed. Under normal
                                                         operation once this bit is set to '1' it should not
                                                         be set to '0'. */
	uint64_t hrst                         : 1;  /**< When this field is '0' the reset associated with
                                                         the hclk functioanlity in the USB Subsystem is
                                                         held in reset.This bit should not be set to '1'
                                                         until 12ms after phy_clk is stable. Under normal
                                                         operation, once this bit is set to '1' it should
                                                         not be set to '0'. */
	uint64_t divide                       : 3;  /**< The frequency of 'hclk' used by the USB subsystem
                                                         is the eclk frequency divided by the value of
                                                         (DIVIDE2 + 1) * (DIVIDE + 1), also see the field
                                                         DIVIDE2 of this register.
                                                         The hclk frequency should be less than 125Mhz.
                                                         After writing a value to this field the SW should
                                                         read the field for the value written.
                                                         The ENABLE field of this register should not be set
                                                         until AFTER this field is set and then read. */
#else
	uint64_t divide                       : 3;
	uint64_t hrst                         : 1;
	uint64_t prst                         : 1;
	uint64_t enable                       : 1;
	uint64_t por                          : 1;
	uint64_t s_bist                       : 1;
	uint64_t sd_mode                      : 2;
	uint64_t cdiv_byp                     : 1;
	uint64_t p_c_sel                      : 2;
	uint64_t p_com_on                     : 1;
	uint64_t reserved_14_15               : 2;
	uint64_t p_x_on                       : 1;
	uint64_t hclk_rst                     : 1;
	uint64_t divide2                      : 2;
	uint64_t reserved_20_63               : 44;
#endif
	} s;
	struct cvmx_usbnx_clk_ctl_cn30xx {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_18_63               : 46;
	uint64_t hclk_rst                     : 1;  /**< When this field is '0' the HCLK-DIVIDER used to
                                                         generate the hclk in the USB Subsystem is held
                                                         in reset. This bit must be set to '0' before
                                                         changing the value os DIVIDE in this register.
                                                         The reset to the HCLK_DIVIDERis also asserted
                                                         when core reset is asserted. */
	uint64_t p_x_on                       : 1;  /**< Force USB-PHY on during suspend.
                                                         '1' USB-PHY XO block is powered-down during
                                                             suspend.
                                                         '0' USB-PHY XO block is powered-up during
                                                             suspend.
                                                         The value of this field must be set while POR is
                                                         active. */
	uint64_t p_rclk                       : 1;  /**< Phy refrence clock enable.
                                                         '1' The PHY PLL uses the XO block output as a
                                                         reference.
                                                         '0' Reserved. */
	uint64_t p_xenbn                      : 1;  /**< Phy external clock enable.
                                                         '1' The XO block uses the clock from a crystal.
                                                         '0' The XO block uses an external clock supplied
                                                             on the XO pin. USB_XI should be tied to
                                                             ground for this usage. */
	uint64_t p_com_on                     : 1;  /**< '0' Force USB-PHY XO Bias, Bandgap and PLL to
                                                             remain powered in Suspend Mode.
                                                         '1' The USB-PHY XO Bias, Bandgap and PLL are
                                                             powered down in suspend mode.
                                                         The value of this field must be set while POR is
                                                         active. */
	uint64_t p_c_sel                      : 2;  /**< Phy clock speed select.
                                                         Selects the reference clock / crystal frequency.
                                                         '11': Reserved
                                                         '10': 48 MHz
                                                         '01': 24 MHz
                                                         '00': 12 MHz
                                                         The value of this field must be set while POR is
                                                         active. */
	uint64_t cdiv_byp                     : 1;  /**< Used to enable the bypass input to the USB_CLK_DIV. */
	uint64_t sd_mode                      : 2;  /**< Scaledown mode for the USBC. Control timing events
                                                         in the USBC, for normal operation this must be '0'. */
	uint64_t s_bist                       : 1;  /**< Starts bist on the hclk memories, during the '0'
                                                         to '1' transition. */
	uint64_t por                          : 1;  /**< Power On Reset for the PHY.
                                                         Resets all the PHYS registers and state machines. */
	uint64_t enable                       : 1;  /**< When '1' allows the generation of the hclk. When
                                                         '0' the hclk will not be generated. */
	uint64_t prst                         : 1;  /**< When this field is '0' the reset associated with
                                                         the phy_clk functionality in the USB Subsystem is
                                                         help in reset. This bit should not be set to '1'
                                                         until the time it takes 6 clocks (hclk or phy_clk,
                                                         whichever is slower) has passed. Under normal
                                                         operation once this bit is set to '1' it should not
                                                         be set to '0'. */
	uint64_t hrst                         : 1;  /**< When this field is '0' the reset associated with
                                                         the hclk functioanlity in the USB Subsystem is
                                                         held in reset.This bit should not be set to '1'
                                                         until 12ms after phy_clk is stable. Under normal
                                                         operation, once this bit is set to '1' it should
                                                         not be set to '0'. */
	uint64_t divide                       : 3;  /**< The 'hclk' used by the USB subsystem is derived
                                                         from the eclk. The eclk will be divided by the
                                                         value of this field +1 to determine the hclk
                                                         frequency. (Also see HRST of this register).
                                                         The hclk frequency must be less than 125 MHz. */
#else
	uint64_t divide                       : 3;
	uint64_t hrst                         : 1;
	uint64_t prst                         : 1;
	uint64_t enable                       : 1;
	uint64_t por                          : 1;
	uint64_t s_bist                       : 1;
	uint64_t sd_mode                      : 2;
	uint64_t cdiv_byp                     : 1;
	uint64_t p_c_sel                      : 2;
	uint64_t p_com_on                     : 1;
	uint64_t p_xenbn                      : 1;
	uint64_t p_rclk                       : 1;
	uint64_t p_x_on                       : 1;
	uint64_t hclk_rst                     : 1;
	uint64_t reserved_18_63               : 46;
#endif
	} cn30xx;
	struct cvmx_usbnx_clk_ctl_cn30xx      cn31xx;
	struct cvmx_usbnx_clk_ctl_cn50xx {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_20_63               : 44;
	uint64_t divide2                      : 2;  /**< The 'hclk' used by the USB subsystem is derived
                                                         from the eclk.
                                                         Also see the field DIVIDE. DIVIDE2<1> must currently
                                                         be zero because it is not implemented, so the maximum
                                                         ratio of eclk/hclk is currently 16.
                                                         The actual divide number for hclk is:
                                                         (DIVIDE2 + 1) * (DIVIDE + 1) */
	uint64_t hclk_rst                     : 1;  /**< When this field is '0' the HCLK-DIVIDER used to
                                                         generate the hclk in the USB Subsystem is held
                                                         in reset. This bit must be set to '0' before
                                                         changing the value os DIVIDE in this register.
                                                         The reset to the HCLK_DIVIDERis also asserted
                                                         when core reset is asserted. */
	uint64_t reserved_16_16               : 1;
	uint64_t p_rtype                      : 2;  /**< PHY reference clock type
                                                         '0' The USB-PHY uses a 12MHz crystal as a clock
                                                             source at the USB_XO and USB_XI pins
                                                         '1' Reserved
                                                         '2' The USB_PHY uses 12/24/48MHz 2.5V board clock
                                                             at the USB_XO pin. USB_XI should be tied to
                                                             ground in this case.
                                                         '3' Reserved
                                                         (bit 14 was P_XENBN on 3xxx)
                                                         (bit 15 was P_RCLK on 3xxx) */
	uint64_t p_com_on                     : 1;  /**< '0' Force USB-PHY XO Bias, Bandgap and PLL to
                                                             remain powered in Suspend Mode.
                                                         '1' The USB-PHY XO Bias, Bandgap and PLL are
                                                             powered down in suspend mode.
                                                         The value of this field must be set while POR is
                                                         active. */
	uint64_t p_c_sel                      : 2;  /**< Phy clock speed select.
                                                         Selects the reference clock / crystal frequency.
                                                         '11': Reserved
                                                         '10': 48 MHz (reserved when a crystal is used)
                                                         '01': 24 MHz (reserved when a crystal is used)
                                                         '00': 12 MHz
                                                         The value of this field must be set while POR is
                                                         active.
                                                         NOTE: if a crystal is used as a reference clock,
                                                         this field must be set to 12 MHz. */
	uint64_t cdiv_byp                     : 1;  /**< Used to enable the bypass input to the USB_CLK_DIV. */
	uint64_t sd_mode                      : 2;  /**< Scaledown mode for the USBC. Control timing events
                                                         in the USBC, for normal operation this must be '0'. */
	uint64_t s_bist                       : 1;  /**< Starts bist on the hclk memories, during the '0'
                                                         to '1' transition. */
	uint64_t por                          : 1;  /**< Power On Reset for the PHY.
                                                         Resets all the PHYS registers and state machines. */
	uint64_t enable                       : 1;  /**< When '1' allows the generation of the hclk. When
                                                         '0' the hclk will not be generated. SEE DIVIDE
                                                         field of this register. */
	uint64_t prst                         : 1;  /**< When this field is '0' the reset associated with
                                                         the phy_clk functionality in the USB Subsystem is
                                                         help in reset. This bit should not be set to '1'
                                                         until the time it takes 6 clocks (hclk or phy_clk,
                                                         whichever is slower) has passed. Under normal
                                                         operation once this bit is set to '1' it should not
                                                         be set to '0'. */
	uint64_t hrst                         : 1;  /**< When this field is '0' the reset associated with
                                                         the hclk functioanlity in the USB Subsystem is
                                                         held in reset.This bit should not be set to '1'
                                                         until 12ms after phy_clk is stable. Under normal
                                                         operation, once this bit is set to '1' it should
                                                         not be set to '0'. */
	uint64_t divide                       : 3;  /**< The frequency of 'hclk' used by the USB subsystem
                                                         is the eclk frequency divided by the value of
                                                         (DIVIDE2 + 1) * (DIVIDE + 1), also see the field
                                                         DIVIDE2 of this register.
                                                         The hclk frequency should be less than 125Mhz.
                                                         After writing a value to this field the SW should
                                                         read the field for the value written.
                                                         The ENABLE field of this register should not be set
                                                         until AFTER this field is set and then read. */
#else
	uint64_t divide                       : 3;
	uint64_t hrst                         : 1;
	uint64_t prst                         : 1;
	uint64_t enable                       : 1;
	uint64_t por                          : 1;
	uint64_t s_bist                       : 1;
	uint64_t sd_mode                      : 2;
	uint64_t cdiv_byp                     : 1;
	uint64_t p_c_sel                      : 2;
	uint64_t p_com_on                     : 1;
	uint64_t p_rtype                      : 2;
	uint64_t reserved_16_16               : 1;
	uint64_t hclk_rst                     : 1;
	uint64_t divide2                      : 2;
	uint64_t reserved_20_63               : 44;
#endif
	} cn50xx;
	struct cvmx_usbnx_clk_ctl_cn50xx      cn52xx;
	struct cvmx_usbnx_clk_ctl_cn50xx      cn52xxp1;
	struct cvmx_usbnx_clk_ctl_cn50xx      cn56xx;
	struct cvmx_usbnx_clk_ctl_cn50xx      cn56xxp1;
};
typedef union cvmx_usbnx_clk_ctl cvmx_usbnx_clk_ctl_t;

/**
 * cvmx_usbn#_ctl_status
 *
 * USBN_CTL_STATUS = USBN's Control And Status Register
 *
 * Contains general control and status information for the USBN block.
 */
union cvmx_usbnx_ctl_status {
	uint64_t u64;
	struct cvmx_usbnx_ctl_status_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_6_63                : 58;
	uint64_t dma_0pag                     : 1;  /**< When '1' sets the DMA engine will set the zero-Page
                                                         bit in the L2C store operation to the IOB. */
	uint64_t dma_stt                      : 1;  /**< When '1' sets the DMA engine to use STT operations. */
	uint64_t dma_test                     : 1;  /**< When '1' sets the DMA engine into Test-Mode.
                                                         For normal operation this bit should be '0'. */
	uint64_t inv_a2                       : 1;  /**< When '1' causes the address[2] driven on the AHB
                                                         for USB-CORE FIFO access to be inverted. Also data
                                                         writen to and read from the AHB will have it byte
                                                         order swapped. If the orginal order was A-B-C-D the
                                                         new byte order will be D-C-B-A. */
	uint64_t l2c_emod                     : 2;  /**< Endian format for data from/to the L2C.
                                                         IN:   A-B-C-D-E-F-G-H
                                                         OUT0: A-B-C-D-E-F-G-H
                                                         OUT1: H-G-F-E-D-C-B-A
                                                         OUT2: D-C-B-A-H-G-F-E
                                                         OUT3: E-F-G-H-A-B-C-D */
#else
	uint64_t l2c_emod                     : 2;
	uint64_t inv_a2                       : 1;
	uint64_t dma_test                     : 1;
	uint64_t dma_stt                      : 1;
	uint64_t dma_0pag                     : 1;
	uint64_t reserved_6_63                : 58;
#endif
	} s;
	struct cvmx_usbnx_ctl_status_s        cn30xx;
	struct cvmx_usbnx_ctl_status_s        cn31xx;
	struct cvmx_usbnx_ctl_status_s        cn50xx;
	struct cvmx_usbnx_ctl_status_s        cn52xx;
	struct cvmx_usbnx_ctl_status_s        cn52xxp1;
	struct cvmx_usbnx_ctl_status_s        cn56xx;
	struct cvmx_usbnx_ctl_status_s        cn56xxp1;
};
typedef union cvmx_usbnx_ctl_status cvmx_usbnx_ctl_status_t;

/**
 * cvmx_usbn#_dma0_inb_chn0
 *
 * USBN_DMA0_INB_CHN0 = USBN's Inbound DMA for USB0 Channel0
 *
 * Contains the starting address for use when USB0 writes to L2C via Channel0.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_inb_chn0 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_inb_chn0_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Write to L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_inb_chn0_s     cn30xx;
	struct cvmx_usbnx_dma0_inb_chn0_s     cn31xx;
	struct cvmx_usbnx_dma0_inb_chn0_s     cn50xx;
	struct cvmx_usbnx_dma0_inb_chn0_s     cn52xx;
	struct cvmx_usbnx_dma0_inb_chn0_s     cn52xxp1;
	struct cvmx_usbnx_dma0_inb_chn0_s     cn56xx;
	struct cvmx_usbnx_dma0_inb_chn0_s     cn56xxp1;
};
typedef union cvmx_usbnx_dma0_inb_chn0 cvmx_usbnx_dma0_inb_chn0_t;

/**
 * cvmx_usbn#_dma0_inb_chn1
 *
 * USBN_DMA0_INB_CHN1 = USBN's Inbound DMA for USB0 Channel1
 *
 * Contains the starting address for use when USB0 writes to L2C via Channel1.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_inb_chn1 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_inb_chn1_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Write to L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_inb_chn1_s     cn30xx;
	struct cvmx_usbnx_dma0_inb_chn1_s     cn31xx;
	struct cvmx_usbnx_dma0_inb_chn1_s     cn50xx;
	struct cvmx_usbnx_dma0_inb_chn1_s     cn52xx;
	struct cvmx_usbnx_dma0_inb_chn1_s     cn52xxp1;
	struct cvmx_usbnx_dma0_inb_chn1_s     cn56xx;
	struct cvmx_usbnx_dma0_inb_chn1_s     cn56xxp1;
};
typedef union cvmx_usbnx_dma0_inb_chn1 cvmx_usbnx_dma0_inb_chn1_t;

/**
 * cvmx_usbn#_dma0_inb_chn2
 *
 * USBN_DMA0_INB_CHN2 = USBN's Inbound DMA for USB0 Channel2
 *
 * Contains the starting address for use when USB0 writes to L2C via Channel2.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_inb_chn2 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_inb_chn2_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Write to L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_inb_chn2_s     cn30xx;
	struct cvmx_usbnx_dma0_inb_chn2_s     cn31xx;
	struct cvmx_usbnx_dma0_inb_chn2_s     cn50xx;
	struct cvmx_usbnx_dma0_inb_chn2_s     cn52xx;
	struct cvmx_usbnx_dma0_inb_chn2_s     cn52xxp1;
	struct cvmx_usbnx_dma0_inb_chn2_s     cn56xx;
	struct cvmx_usbnx_dma0_inb_chn2_s     cn56xxp1;
};
typedef union cvmx_usbnx_dma0_inb_chn2 cvmx_usbnx_dma0_inb_chn2_t;

/**
 * cvmx_usbn#_dma0_inb_chn3
 *
 * USBN_DMA0_INB_CHN3 = USBN's Inbound DMA for USB0 Channel3
 *
 * Contains the starting address for use when USB0 writes to L2C via Channel3.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_inb_chn3 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_inb_chn3_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Write to L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_inb_chn3_s     cn30xx;
	struct cvmx_usbnx_dma0_inb_chn3_s     cn31xx;
	struct cvmx_usbnx_dma0_inb_chn3_s     cn50xx;
	struct cvmx_usbnx_dma0_inb_chn3_s     cn52xx;
	struct cvmx_usbnx_dma0_inb_chn3_s     cn52xxp1;
	struct cvmx_usbnx_dma0_inb_chn3_s     cn56xx;
	struct cvmx_usbnx_dma0_inb_chn3_s     cn56xxp1;
};
typedef union cvmx_usbnx_dma0_inb_chn3 cvmx_usbnx_dma0_inb_chn3_t;

/**
 * cvmx_usbn#_dma0_inb_chn4
 *
 * USBN_DMA0_INB_CHN4 = USBN's Inbound DMA for USB0 Channel4
 *
 * Contains the starting address for use when USB0 writes to L2C via Channel4.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_inb_chn4 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_inb_chn4_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Write to L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_inb_chn4_s     cn30xx;
	struct cvmx_usbnx_dma0_inb_chn4_s     cn31xx;
	struct cvmx_usbnx_dma0_inb_chn4_s     cn50xx;
	struct cvmx_usbnx_dma0_inb_chn4_s     cn52xx;
	struct cvmx_usbnx_dma0_inb_chn4_s     cn52xxp1;
	struct cvmx_usbnx_dma0_inb_chn4_s     cn56xx;
	struct cvmx_usbnx_dma0_inb_chn4_s     cn56xxp1;
};
typedef union cvmx_usbnx_dma0_inb_chn4 cvmx_usbnx_dma0_inb_chn4_t;

/**
 * cvmx_usbn#_dma0_inb_chn5
 *
 * USBN_DMA0_INB_CHN5 = USBN's Inbound DMA for USB0 Channel5
 *
 * Contains the starting address for use when USB0 writes to L2C via Channel5.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_inb_chn5 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_inb_chn5_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Write to L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_inb_chn5_s     cn30xx;
	struct cvmx_usbnx_dma0_inb_chn5_s     cn31xx;
	struct cvmx_usbnx_dma0_inb_chn5_s     cn50xx;
	struct cvmx_usbnx_dma0_inb_chn5_s     cn52xx;
	struct cvmx_usbnx_dma0_inb_chn5_s     cn52xxp1;
	struct cvmx_usbnx_dma0_inb_chn5_s     cn56xx;
	struct cvmx_usbnx_dma0_inb_chn5_s     cn56xxp1;
};
typedef union cvmx_usbnx_dma0_inb_chn5 cvmx_usbnx_dma0_inb_chn5_t;

/**
 * cvmx_usbn#_dma0_inb_chn6
 *
 * USBN_DMA0_INB_CHN6 = USBN's Inbound DMA for USB0 Channel6
 *
 * Contains the starting address for use when USB0 writes to L2C via Channel6.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_inb_chn6 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_inb_chn6_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Write to L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_inb_chn6_s     cn30xx;
	struct cvmx_usbnx_dma0_inb_chn6_s     cn31xx;
	struct cvmx_usbnx_dma0_inb_chn6_s     cn50xx;
	struct cvmx_usbnx_dma0_inb_chn6_s     cn52xx;
	struct cvmx_usbnx_dma0_inb_chn6_s     cn52xxp1;
	struct cvmx_usbnx_dma0_inb_chn6_s     cn56xx;
	struct cvmx_usbnx_dma0_inb_chn6_s     cn56xxp1;
};
typedef union cvmx_usbnx_dma0_inb_chn6 cvmx_usbnx_dma0_inb_chn6_t;

/**
 * cvmx_usbn#_dma0_inb_chn7
 *
 * USBN_DMA0_INB_CHN7 = USBN's Inbound DMA for USB0 Channel7
 *
 * Contains the starting address for use when USB0 writes to L2C via Channel7.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_inb_chn7 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_inb_chn7_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Write to L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_inb_chn7_s     cn30xx;
	struct cvmx_usbnx_dma0_inb_chn7_s     cn31xx;
	struct cvmx_usbnx_dma0_inb_chn7_s     cn50xx;
	struct cvmx_usbnx_dma0_inb_chn7_s     cn52xx;
	struct cvmx_usbnx_dma0_inb_chn7_s     cn52xxp1;
	struct cvmx_usbnx_dma0_inb_chn7_s     cn56xx;
	struct cvmx_usbnx_dma0_inb_chn7_s     cn56xxp1;
};
typedef union cvmx_usbnx_dma0_inb_chn7 cvmx_usbnx_dma0_inb_chn7_t;

/**
 * cvmx_usbn#_dma0_outb_chn0
 *
 * USBN_DMA0_OUTB_CHN0 = USBN's Outbound DMA for USB0 Channel0
 *
 * Contains the starting address for use when USB0 reads from L2C via Channel0.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_outb_chn0 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_outb_chn0_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Read from L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_outb_chn0_s    cn30xx;
	struct cvmx_usbnx_dma0_outb_chn0_s    cn31xx;
	struct cvmx_usbnx_dma0_outb_chn0_s    cn50xx;
	struct cvmx_usbnx_dma0_outb_chn0_s    cn52xx;
	struct cvmx_usbnx_dma0_outb_chn0_s    cn52xxp1;
	struct cvmx_usbnx_dma0_outb_chn0_s    cn56xx;
	struct cvmx_usbnx_dma0_outb_chn0_s    cn56xxp1;
};
typedef union cvmx_usbnx_dma0_outb_chn0 cvmx_usbnx_dma0_outb_chn0_t;

/**
 * cvmx_usbn#_dma0_outb_chn1
 *
 * USBN_DMA0_OUTB_CHN1 = USBN's Outbound DMA for USB0 Channel1
 *
 * Contains the starting address for use when USB0 reads from L2C via Channel1.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_outb_chn1 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_outb_chn1_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Read from L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_outb_chn1_s    cn30xx;
	struct cvmx_usbnx_dma0_outb_chn1_s    cn31xx;
	struct cvmx_usbnx_dma0_outb_chn1_s    cn50xx;
	struct cvmx_usbnx_dma0_outb_chn1_s    cn52xx;
	struct cvmx_usbnx_dma0_outb_chn1_s    cn52xxp1;
	struct cvmx_usbnx_dma0_outb_chn1_s    cn56xx;
	struct cvmx_usbnx_dma0_outb_chn1_s    cn56xxp1;
};
typedef union cvmx_usbnx_dma0_outb_chn1 cvmx_usbnx_dma0_outb_chn1_t;

/**
 * cvmx_usbn#_dma0_outb_chn2
 *
 * USBN_DMA0_OUTB_CHN2 = USBN's Outbound DMA for USB0 Channel2
 *
 * Contains the starting address for use when USB0 reads from L2C via Channel2.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_outb_chn2 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_outb_chn2_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Read from L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_outb_chn2_s    cn30xx;
	struct cvmx_usbnx_dma0_outb_chn2_s    cn31xx;
	struct cvmx_usbnx_dma0_outb_chn2_s    cn50xx;
	struct cvmx_usbnx_dma0_outb_chn2_s    cn52xx;
	struct cvmx_usbnx_dma0_outb_chn2_s    cn52xxp1;
	struct cvmx_usbnx_dma0_outb_chn2_s    cn56xx;
	struct cvmx_usbnx_dma0_outb_chn2_s    cn56xxp1;
};
typedef union cvmx_usbnx_dma0_outb_chn2 cvmx_usbnx_dma0_outb_chn2_t;

/**
 * cvmx_usbn#_dma0_outb_chn3
 *
 * USBN_DMA0_OUTB_CHN3 = USBN's Outbound DMA for USB0 Channel3
 *
 * Contains the starting address for use when USB0 reads from L2C via Channel3.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_outb_chn3 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_outb_chn3_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Read from L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_outb_chn3_s    cn30xx;
	struct cvmx_usbnx_dma0_outb_chn3_s    cn31xx;
	struct cvmx_usbnx_dma0_outb_chn3_s    cn50xx;
	struct cvmx_usbnx_dma0_outb_chn3_s    cn52xx;
	struct cvmx_usbnx_dma0_outb_chn3_s    cn52xxp1;
	struct cvmx_usbnx_dma0_outb_chn3_s    cn56xx;
	struct cvmx_usbnx_dma0_outb_chn3_s    cn56xxp1;
};
typedef union cvmx_usbnx_dma0_outb_chn3 cvmx_usbnx_dma0_outb_chn3_t;

/**
 * cvmx_usbn#_dma0_outb_chn4
 *
 * USBN_DMA0_OUTB_CHN4 = USBN's Outbound DMA for USB0 Channel4
 *
 * Contains the starting address for use when USB0 reads from L2C via Channel4.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_outb_chn4 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_outb_chn4_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Read from L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_outb_chn4_s    cn30xx;
	struct cvmx_usbnx_dma0_outb_chn4_s    cn31xx;
	struct cvmx_usbnx_dma0_outb_chn4_s    cn50xx;
	struct cvmx_usbnx_dma0_outb_chn4_s    cn52xx;
	struct cvmx_usbnx_dma0_outb_chn4_s    cn52xxp1;
	struct cvmx_usbnx_dma0_outb_chn4_s    cn56xx;
	struct cvmx_usbnx_dma0_outb_chn4_s    cn56xxp1;
};
typedef union cvmx_usbnx_dma0_outb_chn4 cvmx_usbnx_dma0_outb_chn4_t;

/**
 * cvmx_usbn#_dma0_outb_chn5
 *
 * USBN_DMA0_OUTB_CHN5 = USBN's Outbound DMA for USB0 Channel5
 *
 * Contains the starting address for use when USB0 reads from L2C via Channel5.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_outb_chn5 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_outb_chn5_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Read from L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_outb_chn5_s    cn30xx;
	struct cvmx_usbnx_dma0_outb_chn5_s    cn31xx;
	struct cvmx_usbnx_dma0_outb_chn5_s    cn50xx;
	struct cvmx_usbnx_dma0_outb_chn5_s    cn52xx;
	struct cvmx_usbnx_dma0_outb_chn5_s    cn52xxp1;
	struct cvmx_usbnx_dma0_outb_chn5_s    cn56xx;
	struct cvmx_usbnx_dma0_outb_chn5_s    cn56xxp1;
};
typedef union cvmx_usbnx_dma0_outb_chn5 cvmx_usbnx_dma0_outb_chn5_t;

/**
 * cvmx_usbn#_dma0_outb_chn6
 *
 * USBN_DMA0_OUTB_CHN6 = USBN's Outbound DMA for USB0 Channel6
 *
 * Contains the starting address for use when USB0 reads from L2C via Channel6.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_outb_chn6 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_outb_chn6_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Read from L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_outb_chn6_s    cn30xx;
	struct cvmx_usbnx_dma0_outb_chn6_s    cn31xx;
	struct cvmx_usbnx_dma0_outb_chn6_s    cn50xx;
	struct cvmx_usbnx_dma0_outb_chn6_s    cn52xx;
	struct cvmx_usbnx_dma0_outb_chn6_s    cn52xxp1;
	struct cvmx_usbnx_dma0_outb_chn6_s    cn56xx;
	struct cvmx_usbnx_dma0_outb_chn6_s    cn56xxp1;
};
typedef union cvmx_usbnx_dma0_outb_chn6 cvmx_usbnx_dma0_outb_chn6_t;

/**
 * cvmx_usbn#_dma0_outb_chn7
 *
 * USBN_DMA0_OUTB_CHN7 = USBN's Outbound DMA for USB0 Channel7
 *
 * Contains the starting address for use when USB0 reads from L2C via Channel7.
 * Writing of this register sets the base address.
 */
union cvmx_usbnx_dma0_outb_chn7 {
	uint64_t u64;
	struct cvmx_usbnx_dma0_outb_chn7_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_36_63               : 28;
	uint64_t addr                         : 36; /**< Base address for DMA Read from L2C. */
#else
	uint64_t addr                         : 36;
	uint64_t reserved_36_63               : 28;
#endif
	} s;
	struct cvmx_usbnx_dma0_outb_chn7_s    cn30xx;
	struct cvmx_usbnx_dma0_outb_chn7_s    cn31xx;
	struct cvmx_usbnx_dma0_outb_chn7_s    cn50xx;
	struct cvmx_usbnx_dma0_outb_chn7_s    cn52xx;
	struct cvmx_usbnx_dma0_outb_chn7_s    cn52xxp1;
	struct cvmx_usbnx_dma0_outb_chn7_s    cn56xx;
	struct cvmx_usbnx_dma0_outb_chn7_s    cn56xxp1;
};
typedef union cvmx_usbnx_dma0_outb_chn7 cvmx_usbnx_dma0_outb_chn7_t;

/**
 * cvmx_usbn#_dma_test
 *
 * USBN_DMA_TEST = USBN's DMA TestRegister
 *
 * This register can cause the external DMA engine to the USB-Core to make transfers from/to L2C/USB-FIFOs
 */
union cvmx_usbnx_dma_test {
	uint64_t u64;
	struct cvmx_usbnx_dma_test_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_40_63               : 24;
	uint64_t done                         : 1;  /**< This field is set when a DMA completes. Writing a
                                                         '1' to this field clears this bit. */
	uint64_t req                          : 1;  /**< DMA Request. Writing a 1 to this register
                                                         will cause a DMA request as specified in the other
                                                         fields of this register to take place. This field
                                                         will always read as '0'. */
	uint64_t f_addr                       : 18; /**< The address to read from in the Data-Fifo. */
	uint64_t count                        : 11; /**< DMA Request Count. */
	uint64_t channel                      : 5;  /**< DMA Channel/Enpoint. */
	uint64_t burst                        : 4;  /**< DMA Burst Size. */
#else
	uint64_t burst                        : 4;
	uint64_t channel                      : 5;
	uint64_t count                        : 11;
	uint64_t f_addr                       : 18;
	uint64_t req                          : 1;
	uint64_t done                         : 1;
	uint64_t reserved_40_63               : 24;
#endif
	} s;
	struct cvmx_usbnx_dma_test_s          cn30xx;
	struct cvmx_usbnx_dma_test_s          cn31xx;
	struct cvmx_usbnx_dma_test_s          cn50xx;
	struct cvmx_usbnx_dma_test_s          cn52xx;
	struct cvmx_usbnx_dma_test_s          cn52xxp1;
	struct cvmx_usbnx_dma_test_s          cn56xx;
	struct cvmx_usbnx_dma_test_s          cn56xxp1;
};
typedef union cvmx_usbnx_dma_test cvmx_usbnx_dma_test_t;

/**
 * cvmx_usbn#_int_enb
 *
 * USBN_INT_ENB = USBN's Interrupt Enable
 *
 * The USBN's interrupt enable register.
 */
union cvmx_usbnx_int_enb {
	uint64_t u64;
	struct cvmx_usbnx_int_enb_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_38_63               : 26;
	uint64_t nd4o_dpf                     : 1;  /**< When set (1) and bit 37 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nd4o_dpe                     : 1;  /**< When set (1) and bit 36 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nd4o_rpf                     : 1;  /**< When set (1) and bit 35 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nd4o_rpe                     : 1;  /**< When set (1) and bit 34 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t ltl_f_pf                     : 1;  /**< When set (1) and bit 33 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t ltl_f_pe                     : 1;  /**< When set (1) and bit 32 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t u2n_c_pe                     : 1;  /**< When set (1) and bit 31 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t u2n_c_pf                     : 1;  /**< When set (1) and bit 30 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t u2n_d_pf                     : 1;  /**< When set (1) and bit 29 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t u2n_d_pe                     : 1;  /**< When set (1) and bit 28 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t n2u_pe                       : 1;  /**< When set (1) and bit 27 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t n2u_pf                       : 1;  /**< When set (1) and bit 26 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t uod_pf                       : 1;  /**< When set (1) and bit 25 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t uod_pe                       : 1;  /**< When set (1) and bit 24 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t rq_q3_e                      : 1;  /**< When set (1) and bit 23 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t rq_q3_f                      : 1;  /**< When set (1) and bit 22 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t rq_q2_e                      : 1;  /**< When set (1) and bit 21 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t rq_q2_f                      : 1;  /**< When set (1) and bit 20 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t rg_fi_f                      : 1;  /**< When set (1) and bit 19 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t rg_fi_e                      : 1;  /**< When set (1) and bit 18 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t l2_fi_f                      : 1;  /**< When set (1) and bit 17 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t l2_fi_e                      : 1;  /**< When set (1) and bit 16 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t l2c_a_f                      : 1;  /**< When set (1) and bit 15 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t l2c_s_e                      : 1;  /**< When set (1) and bit 14 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t dcred_f                      : 1;  /**< When set (1) and bit 13 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t dcred_e                      : 1;  /**< When set (1) and bit 12 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t lt_pu_f                      : 1;  /**< When set (1) and bit 11 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t lt_po_e                      : 1;  /**< When set (1) and bit 10 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nt_pu_f                      : 1;  /**< When set (1) and bit 9 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nt_po_e                      : 1;  /**< When set (1) and bit 8 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t pt_pu_f                      : 1;  /**< When set (1) and bit 7 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t pt_po_e                      : 1;  /**< When set (1) and bit 6 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t lr_pu_f                      : 1;  /**< When set (1) and bit 5 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t lr_po_e                      : 1;  /**< When set (1) and bit 4 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nr_pu_f                      : 1;  /**< When set (1) and bit 3 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nr_po_e                      : 1;  /**< When set (1) and bit 2 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t pr_pu_f                      : 1;  /**< When set (1) and bit 1 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t pr_po_e                      : 1;  /**< When set (1) and bit 0 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
#else
	uint64_t pr_po_e                      : 1;
	uint64_t pr_pu_f                      : 1;
	uint64_t nr_po_e                      : 1;
	uint64_t nr_pu_f                      : 1;
	uint64_t lr_po_e                      : 1;
	uint64_t lr_pu_f                      : 1;
	uint64_t pt_po_e                      : 1;
	uint64_t pt_pu_f                      : 1;
	uint64_t nt_po_e                      : 1;
	uint64_t nt_pu_f                      : 1;
	uint64_t lt_po_e                      : 1;
	uint64_t lt_pu_f                      : 1;
	uint64_t dcred_e                      : 1;
	uint64_t dcred_f                      : 1;
	uint64_t l2c_s_e                      : 1;
	uint64_t l2c_a_f                      : 1;
	uint64_t l2_fi_e                      : 1;
	uint64_t l2_fi_f                      : 1;
	uint64_t rg_fi_e                      : 1;
	uint64_t rg_fi_f                      : 1;
	uint64_t rq_q2_f                      : 1;
	uint64_t rq_q2_e                      : 1;
	uint64_t rq_q3_f                      : 1;
	uint64_t rq_q3_e                      : 1;
	uint64_t uod_pe                       : 1;
	uint64_t uod_pf                       : 1;
	uint64_t n2u_pf                       : 1;
	uint64_t n2u_pe                       : 1;
	uint64_t u2n_d_pe                     : 1;
	uint64_t u2n_d_pf                     : 1;
	uint64_t u2n_c_pf                     : 1;
	uint64_t u2n_c_pe                     : 1;
	uint64_t ltl_f_pe                     : 1;
	uint64_t ltl_f_pf                     : 1;
	uint64_t nd4o_rpe                     : 1;
	uint64_t nd4o_rpf                     : 1;
	uint64_t nd4o_dpe                     : 1;
	uint64_t nd4o_dpf                     : 1;
	uint64_t reserved_38_63               : 26;
#endif
	} s;
	struct cvmx_usbnx_int_enb_s           cn30xx;
	struct cvmx_usbnx_int_enb_s           cn31xx;
	struct cvmx_usbnx_int_enb_cn50xx {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_38_63               : 26;
	uint64_t nd4o_dpf                     : 1;  /**< When set (1) and bit 37 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nd4o_dpe                     : 1;  /**< When set (1) and bit 36 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nd4o_rpf                     : 1;  /**< When set (1) and bit 35 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nd4o_rpe                     : 1;  /**< When set (1) and bit 34 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t ltl_f_pf                     : 1;  /**< When set (1) and bit 33 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t ltl_f_pe                     : 1;  /**< When set (1) and bit 32 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t reserved_26_31               : 6;
	uint64_t uod_pf                       : 1;  /**< When set (1) and bit 25 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t uod_pe                       : 1;  /**< When set (1) and bit 24 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t rq_q3_e                      : 1;  /**< When set (1) and bit 23 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t rq_q3_f                      : 1;  /**< When set (1) and bit 22 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t rq_q2_e                      : 1;  /**< When set (1) and bit 21 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t rq_q2_f                      : 1;  /**< When set (1) and bit 20 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t rg_fi_f                      : 1;  /**< When set (1) and bit 19 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t rg_fi_e                      : 1;  /**< When set (1) and bit 18 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t l2_fi_f                      : 1;  /**< When set (1) and bit 17 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t l2_fi_e                      : 1;  /**< When set (1) and bit 16 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t l2c_a_f                      : 1;  /**< When set (1) and bit 15 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t l2c_s_e                      : 1;  /**< When set (1) and bit 14 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t dcred_f                      : 1;  /**< When set (1) and bit 13 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t dcred_e                      : 1;  /**< When set (1) and bit 12 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t lt_pu_f                      : 1;  /**< When set (1) and bit 11 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t lt_po_e                      : 1;  /**< When set (1) and bit 10 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nt_pu_f                      : 1;  /**< When set (1) and bit 9 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nt_po_e                      : 1;  /**< When set (1) and bit 8 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t pt_pu_f                      : 1;  /**< When set (1) and bit 7 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t pt_po_e                      : 1;  /**< When set (1) and bit 6 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t lr_pu_f                      : 1;  /**< When set (1) and bit 5 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t lr_po_e                      : 1;  /**< When set (1) and bit 4 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nr_pu_f                      : 1;  /**< When set (1) and bit 3 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t nr_po_e                      : 1;  /**< When set (1) and bit 2 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t pr_pu_f                      : 1;  /**< When set (1) and bit 1 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
	uint64_t pr_po_e                      : 1;  /**< When set (1) and bit 0 of the USBN_INT_SUM
                                                         register is asserted the USBN will assert an
                                                         interrupt. */
#else
	uint64_t pr_po_e                      : 1;
	uint64_t pr_pu_f                      : 1;
	uint64_t nr_po_e                      : 1;
	uint64_t nr_pu_f                      : 1;
	uint64_t lr_po_e                      : 1;
	uint64_t lr_pu_f                      : 1;
	uint64_t pt_po_e                      : 1;
	uint64_t pt_pu_f                      : 1;
	uint64_t nt_po_e                      : 1;
	uint64_t nt_pu_f                      : 1;
	uint64_t lt_po_e                      : 1;
	uint64_t lt_pu_f                      : 1;
	uint64_t dcred_e                      : 1;
	uint64_t dcred_f                      : 1;
	uint64_t l2c_s_e                      : 1;
	uint64_t l2c_a_f                      : 1;
	uint64_t l2_fi_e                      : 1;
	uint64_t l2_fi_f                      : 1;
	uint64_t rg_fi_e                      : 1;
	uint64_t rg_fi_f                      : 1;
	uint64_t rq_q2_f                      : 1;
	uint64_t rq_q2_e                      : 1;
	uint64_t rq_q3_f                      : 1;
	uint64_t rq_q3_e                      : 1;
	uint64_t uod_pe                       : 1;
	uint64_t uod_pf                       : 1;
	uint64_t reserved_26_31               : 6;
	uint64_t ltl_f_pe                     : 1;
	uint64_t ltl_f_pf                     : 1;
	uint64_t nd4o_rpe                     : 1;
	uint64_t nd4o_rpf                     : 1;
	uint64_t nd4o_dpe                     : 1;
	uint64_t nd4o_dpf                     : 1;
	uint64_t reserved_38_63               : 26;
#endif
	} cn50xx;
	struct cvmx_usbnx_int_enb_cn50xx      cn52xx;
	struct cvmx_usbnx_int_enb_cn50xx      cn52xxp1;
	struct cvmx_usbnx_int_enb_cn50xx      cn56xx;
	struct cvmx_usbnx_int_enb_cn50xx      cn56xxp1;
};
typedef union cvmx_usbnx_int_enb cvmx_usbnx_int_enb_t;

/**
 * cvmx_usbn#_int_sum
 *
 * USBN_INT_SUM = USBN's Interrupt Summary Register
 *
 * Contains the diffrent interrupt summary bits of the USBN.
 */
union cvmx_usbnx_int_sum {
	uint64_t u64;
	struct cvmx_usbnx_int_sum_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_38_63               : 26;
	uint64_t nd4o_dpf                     : 1;  /**< NCB DMA Out Data Fifo Push Full. */
	uint64_t nd4o_dpe                     : 1;  /**< NCB DMA Out Data Fifo Pop Empty. */
	uint64_t nd4o_rpf                     : 1;  /**< NCB DMA Out Request Fifo Push Full. */
	uint64_t nd4o_rpe                     : 1;  /**< NCB DMA Out Request Fifo Pop Empty. */
	uint64_t ltl_f_pf                     : 1;  /**< L2C Transfer Length Fifo Push Full. */
	uint64_t ltl_f_pe                     : 1;  /**< L2C Transfer Length Fifo Pop Empty. */
	uint64_t u2n_c_pe                     : 1;  /**< U2N Control Fifo Pop Empty. */
	uint64_t u2n_c_pf                     : 1;  /**< U2N Control Fifo Push Full. */
	uint64_t u2n_d_pf                     : 1;  /**< U2N Data Fifo Push Full. */
	uint64_t u2n_d_pe                     : 1;  /**< U2N Data Fifo Pop Empty. */
	uint64_t n2u_pe                       : 1;  /**< N2U Fifo Pop Empty. */
	uint64_t n2u_pf                       : 1;  /**< N2U Fifo Push Full. */
	uint64_t uod_pf                       : 1;  /**< UOD Fifo Push Full. */
	uint64_t uod_pe                       : 1;  /**< UOD Fifo Pop Empty. */
	uint64_t rq_q3_e                      : 1;  /**< Request Queue-3 Fifo Pushed When Full. */
	uint64_t rq_q3_f                      : 1;  /**< Request Queue-3 Fifo Pushed When Full. */
	uint64_t rq_q2_e                      : 1;  /**< Request Queue-2 Fifo Pushed When Full. */
	uint64_t rq_q2_f                      : 1;  /**< Request Queue-2 Fifo Pushed When Full. */
	uint64_t rg_fi_f                      : 1;  /**< Register Request Fifo Pushed When Full. */
	uint64_t rg_fi_e                      : 1;  /**< Register Request Fifo Pushed When Full. */
	uint64_t lt_fi_f                      : 1;  /**< L2C Request Fifo Pushed When Full. */
	uint64_t lt_fi_e                      : 1;  /**< L2C Request Fifo Pushed When Full. */
	uint64_t l2c_a_f                      : 1;  /**< L2C Credit Count Added When Full. */
	uint64_t l2c_s_e                      : 1;  /**< L2C Credit Count Subtracted When Empty. */
	uint64_t dcred_f                      : 1;  /**< Data CreditFifo Pushed When Full. */
	uint64_t dcred_e                      : 1;  /**< Data Credit Fifo Pushed When Full. */
	uint64_t lt_pu_f                      : 1;  /**< L2C Trasaction Fifo Pushed When Full. */
	uint64_t lt_po_e                      : 1;  /**< L2C Trasaction Fifo Popped When Full. */
	uint64_t nt_pu_f                      : 1;  /**< NPI Trasaction Fifo Pushed When Full. */
	uint64_t nt_po_e                      : 1;  /**< NPI Trasaction Fifo Popped When Full. */
	uint64_t pt_pu_f                      : 1;  /**< PP  Trasaction Fifo Pushed When Full. */
	uint64_t pt_po_e                      : 1;  /**< PP  Trasaction Fifo Popped When Full. */
	uint64_t lr_pu_f                      : 1;  /**< L2C Request Fifo Pushed When Full. */
	uint64_t lr_po_e                      : 1;  /**< L2C Request Fifo Popped When Empty. */
	uint64_t nr_pu_f                      : 1;  /**< NPI Request Fifo Pushed When Full. */
	uint64_t nr_po_e                      : 1;  /**< NPI Request Fifo Popped When Empty. */
	uint64_t pr_pu_f                      : 1;  /**< PP  Request Fifo Pushed When Full. */
	uint64_t pr_po_e                      : 1;  /**< PP  Request Fifo Popped When Empty. */
#else
	uint64_t pr_po_e                      : 1;
	uint64_t pr_pu_f                      : 1;
	uint64_t nr_po_e                      : 1;
	uint64_t nr_pu_f                      : 1;
	uint64_t lr_po_e                      : 1;
	uint64_t lr_pu_f                      : 1;
	uint64_t pt_po_e                      : 1;
	uint64_t pt_pu_f                      : 1;
	uint64_t nt_po_e                      : 1;
	uint64_t nt_pu_f                      : 1;
	uint64_t lt_po_e                      : 1;
	uint64_t lt_pu_f                      : 1;
	uint64_t dcred_e                      : 1;
	uint64_t dcred_f                      : 1;
	uint64_t l2c_s_e                      : 1;
	uint64_t l2c_a_f                      : 1;
	uint64_t lt_fi_e                      : 1;
	uint64_t lt_fi_f                      : 1;
	uint64_t rg_fi_e                      : 1;
	uint64_t rg_fi_f                      : 1;
	uint64_t rq_q2_f                      : 1;
	uint64_t rq_q2_e                      : 1;
	uint64_t rq_q3_f                      : 1;
	uint64_t rq_q3_e                      : 1;
	uint64_t uod_pe                       : 1;
	uint64_t uod_pf                       : 1;
	uint64_t n2u_pf                       : 1;
	uint64_t n2u_pe                       : 1;
	uint64_t u2n_d_pe                     : 1;
	uint64_t u2n_d_pf                     : 1;
	uint64_t u2n_c_pf                     : 1;
	uint64_t u2n_c_pe                     : 1;
	uint64_t ltl_f_pe                     : 1;
	uint64_t ltl_f_pf                     : 1;
	uint64_t nd4o_rpe                     : 1;
	uint64_t nd4o_rpf                     : 1;
	uint64_t nd4o_dpe                     : 1;
	uint64_t nd4o_dpf                     : 1;
	uint64_t reserved_38_63               : 26;
#endif
	} s;
	struct cvmx_usbnx_int_sum_s           cn30xx;
	struct cvmx_usbnx_int_sum_s           cn31xx;
	struct cvmx_usbnx_int_sum_cn50xx {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_38_63               : 26;
	uint64_t nd4o_dpf                     : 1;  /**< NCB DMA Out Data Fifo Push Full. */
	uint64_t nd4o_dpe                     : 1;  /**< NCB DMA Out Data Fifo Pop Empty. */
	uint64_t nd4o_rpf                     : 1;  /**< NCB DMA Out Request Fifo Push Full. */
	uint64_t nd4o_rpe                     : 1;  /**< NCB DMA Out Request Fifo Pop Empty. */
	uint64_t ltl_f_pf                     : 1;  /**< L2C Transfer Length Fifo Push Full. */
	uint64_t ltl_f_pe                     : 1;  /**< L2C Transfer Length Fifo Pop Empty. */
	uint64_t reserved_26_31               : 6;
	uint64_t uod_pf                       : 1;  /**< UOD Fifo Push Full. */
	uint64_t uod_pe                       : 1;  /**< UOD Fifo Pop Empty. */
	uint64_t rq_q3_e                      : 1;  /**< Request Queue-3 Fifo Pushed When Full. */
	uint64_t rq_q3_f                      : 1;  /**< Request Queue-3 Fifo Pushed When Full. */
	uint64_t rq_q2_e                      : 1;  /**< Request Queue-2 Fifo Pushed When Full. */
	uint64_t rq_q2_f                      : 1;  /**< Request Queue-2 Fifo Pushed When Full. */
	uint64_t rg_fi_f                      : 1;  /**< Register Request Fifo Pushed When Full. */
	uint64_t rg_fi_e                      : 1;  /**< Register Request Fifo Pushed When Full. */
	uint64_t lt_fi_f                      : 1;  /**< L2C Request Fifo Pushed When Full. */
	uint64_t lt_fi_e                      : 1;  /**< L2C Request Fifo Pushed When Full. */
	uint64_t l2c_a_f                      : 1;  /**< L2C Credit Count Added When Full. */
	uint64_t l2c_s_e                      : 1;  /**< L2C Credit Count Subtracted When Empty. */
	uint64_t dcred_f                      : 1;  /**< Data CreditFifo Pushed When Full. */
	uint64_t dcred_e                      : 1;  /**< Data Credit Fifo Pushed When Full. */
	uint64_t lt_pu_f                      : 1;  /**< L2C Trasaction Fifo Pushed When Full. */
	uint64_t lt_po_e                      : 1;  /**< L2C Trasaction Fifo Popped When Full. */
	uint64_t nt_pu_f                      : 1;  /**< NPI Trasaction Fifo Pushed When Full. */
	uint64_t nt_po_e                      : 1;  /**< NPI Trasaction Fifo Popped When Full. */
	uint64_t pt_pu_f                      : 1;  /**< PP  Trasaction Fifo Pushed When Full. */
	uint64_t pt_po_e                      : 1;  /**< PP  Trasaction Fifo Popped When Full. */
	uint64_t lr_pu_f                      : 1;  /**< L2C Request Fifo Pushed When Full. */
	uint64_t lr_po_e                      : 1;  /**< L2C Request Fifo Popped When Empty. */
	uint64_t nr_pu_f                      : 1;  /**< NPI Request Fifo Pushed When Full. */
	uint64_t nr_po_e                      : 1;  /**< NPI Request Fifo Popped When Empty. */
	uint64_t pr_pu_f                      : 1;  /**< PP  Request Fifo Pushed When Full. */
	uint64_t pr_po_e                      : 1;  /**< PP  Request Fifo Popped When Empty. */
#else
	uint64_t pr_po_e                      : 1;
	uint64_t pr_pu_f                      : 1;
	uint64_t nr_po_e                      : 1;
	uint64_t nr_pu_f                      : 1;
	uint64_t lr_po_e                      : 1;
	uint64_t lr_pu_f                      : 1;
	uint64_t pt_po_e                      : 1;
	uint64_t pt_pu_f                      : 1;
	uint64_t nt_po_e                      : 1;
	uint64_t nt_pu_f                      : 1;
	uint64_t lt_po_e                      : 1;
	uint64_t lt_pu_f                      : 1;
	uint64_t dcred_e                      : 1;
	uint64_t dcred_f                      : 1;
	uint64_t l2c_s_e                      : 1;
	uint64_t l2c_a_f                      : 1;
	uint64_t lt_fi_e                      : 1;
	uint64_t lt_fi_f                      : 1;
	uint64_t rg_fi_e                      : 1;
	uint64_t rg_fi_f                      : 1;
	uint64_t rq_q2_f                      : 1;
	uint64_t rq_q2_e                      : 1;
	uint64_t rq_q3_f                      : 1;
	uint64_t rq_q3_e                      : 1;
	uint64_t uod_pe                       : 1;
	uint64_t uod_pf                       : 1;
	uint64_t reserved_26_31               : 6;
	uint64_t ltl_f_pe                     : 1;
	uint64_t ltl_f_pf                     : 1;
	uint64_t nd4o_rpe                     : 1;
	uint64_t nd4o_rpf                     : 1;
	uint64_t nd4o_dpe                     : 1;
	uint64_t nd4o_dpf                     : 1;
	uint64_t reserved_38_63               : 26;
#endif
	} cn50xx;
	struct cvmx_usbnx_int_sum_cn50xx      cn52xx;
	struct cvmx_usbnx_int_sum_cn50xx      cn52xxp1;
	struct cvmx_usbnx_int_sum_cn50xx      cn56xx;
	struct cvmx_usbnx_int_sum_cn50xx      cn56xxp1;
};
typedef union cvmx_usbnx_int_sum cvmx_usbnx_int_sum_t;

/**
 * cvmx_usbn#_usbp_ctl_status
 *
 * USBN_USBP_CTL_STATUS = USBP Control And Status Register
 *
 * Contains general control and status information for the USBN block.
 */
union cvmx_usbnx_usbp_ctl_status {
	uint64_t u64;
	struct cvmx_usbnx_usbp_ctl_status_s {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t txrisetune                   : 1;  /**< HS Transmitter Rise/Fall Time Adjustment */
	uint64_t txvreftune                   : 4;  /**< HS DC Voltage Level Adjustment */
	uint64_t txfslstune                   : 4;  /**< FS/LS Source Impedence Adjustment */
	uint64_t txhsxvtune                   : 2;  /**< Transmitter High-Speed Crossover Adjustment */
	uint64_t sqrxtune                     : 3;  /**< Squelch Threshold Adjustment */
	uint64_t compdistune                  : 3;  /**< Disconnect Threshold Adjustment */
	uint64_t otgtune                      : 3;  /**< VBUS Valid Threshold Adjustment */
	uint64_t otgdisable                   : 1;  /**< OTG Block Disable */
	uint64_t portreset                    : 1;  /**< Per_Port Reset */
	uint64_t drvvbus                      : 1;  /**< Drive VBUS */
	uint64_t lsbist                       : 1;  /**< Low-Speed BIST Enable. */
	uint64_t fsbist                       : 1;  /**< Full-Speed BIST Enable. */
	uint64_t hsbist                       : 1;  /**< High-Speed BIST Enable. */
	uint64_t bist_done                    : 1;  /**< PHY Bist Done.
                                                         Asserted at the end of the PHY BIST sequence. */
	uint64_t bist_err                     : 1;  /**< PHY Bist Error.
                                                         Indicates an internal error was detected during
                                                         the BIST sequence. */
	uint64_t tdata_out                    : 4;  /**< PHY Test Data Out.
                                                         Presents either internaly generated signals or
                                                         test register contents, based upon the value of
                                                         test_data_out_sel. */
	uint64_t siddq                        : 1;  /**< Drives the USBP (USB-PHY) SIDDQ input.
                                                         Normally should be set to zero.
                                                         When customers have no intent to use USB PHY
                                                         interface, they should:
                                                           - still provide 3.3V to USB_VDD33, and
                                                           - tie USB_REXT to 3.3V supply, and
                                                           - set USBN*_USBP_CTL_STATUS[SIDDQ]=1 */
	uint64_t txpreemphasistune            : 1;  /**< HS Transmitter Pre-Emphasis Enable */
	uint64_t dma_bmode                    : 1;  /**< When set to 1 the L2C DMA address will be updated
                                                         with byte-counts between packets. When set to 0
                                                         the L2C DMA address is incremented to the next
                                                         4-byte aligned address after adding byte-count. */
	uint64_t usbc_end                     : 1;  /**< Bigendian input to the USB Core. This should be
                                                         set to '0' for operation. */
	uint64_t usbp_bist                    : 1;  /**< PHY, This is cleared '0' to run BIST on the USBP. */
	uint64_t tclk                         : 1;  /**< PHY Test Clock, used to load TDATA_IN to the USBP. */
	uint64_t dp_pulld                     : 1;  /**< PHY DP_PULLDOWN input to the USB-PHY.
                                                         This signal enables the pull-down resistance on
                                                         the D+ line. '1' pull down-resistance is connected
                                                         to D+/ '0' pull down resistance is not connected
                                                         to D+. When an A/B device is acting as a host
                                                         (downstream-facing port), dp_pulldown and
                                                         dm_pulldown are enabled. This must not toggle
                                                         during normal opeartion. */
	uint64_t dm_pulld                     : 1;  /**< PHY DM_PULLDOWN input to the USB-PHY.
                                                         This signal enables the pull-down resistance on
                                                         the D- line. '1' pull down-resistance is connected
                                                         to D-. '0' pull down resistance is not connected
                                                         to D-. When an A/B device is acting as a host
                                                         (downstream-facing port), dp_pulldown and
                                                         dm_pulldown are enabled. This must not toggle
                                                         during normal opeartion. */
	uint64_t hst_mode                     : 1;  /**< When '0' the USB is acting as HOST, when '1'
                                                         USB is acting as device. This field needs to be
                                                         set while the USB is in reset. */
	uint64_t tuning                       : 4;  /**< Transmitter Tuning for High-Speed Operation.
                                                         Tunes the current supply and rise/fall output
                                                         times for high-speed operation.
                                                         [20:19] == 11: Current supply increased
                                                         approximately 9%
                                                         [20:19] == 10: Current supply increased
                                                         approximately 4.5%
                                                         [20:19] == 01: Design default.
                                                         [20:19] == 00: Current supply decreased
                                                         approximately 4.5%
                                                         [22:21] == 11: Rise and fall times are increased.
                                                         [22:21] == 10: Design default.
                                                         [22:21] == 01: Rise and fall times are decreased.
                                                         [22:21] == 00: Rise and fall times are decreased
                                                         further as compared to the 01 setting. */
	uint64_t tx_bs_enh                    : 1;  /**< Transmit Bit Stuffing on [15:8].
                                                         Enables or disables bit stuffing on data[15:8]
                                                         when bit-stuffing is enabled. */
	uint64_t tx_bs_en                     : 1;  /**< Transmit Bit Stuffing on [7:0].
                                                         Enables or disables bit stuffing on data[7:0]
                                                         when bit-stuffing is enabled. */
	uint64_t loop_enb                     : 1;  /**< PHY Loopback Test Enable.
                                                         '1': During data transmission the receive is
                                                         enabled.
                                                         '0': During data transmission the receive is
                                                         disabled.
                                                         Must be '0' for normal operation. */
	uint64_t vtest_enb                    : 1;  /**< Analog Test Pin Enable.
                                                         '1' The PHY's analog_test pin is enabled for the
                                                         input and output of applicable analog test signals.
                                                         '0' THe analog_test pin is disabled. */
	uint64_t bist_enb                     : 1;  /**< Built-In Self Test Enable.
                                                         Used to activate BIST in the PHY. */
	uint64_t tdata_sel                    : 1;  /**< Test Data Out Select.
                                                         '1' test_data_out[3:0] (PHY) register contents
                                                         are output. '0' internaly generated signals are
                                                         output. */
	uint64_t taddr_in                     : 4;  /**< Mode Address for Test Interface.
                                                         Specifies the register address for writing to or
                                                         reading from the PHY test interface register. */
	uint64_t tdata_in                     : 8;  /**< Internal Testing Register Input Data and Select
                                                         This is a test bus. Data is present on [3:0],
                                                         and its corresponding select (enable) is present
                                                         on bits [7:4]. */
	uint64_t ate_reset                    : 1;  /**< Reset input from automatic test equipment.
                                                         This is a test signal. When the USB Core is
                                                         powered up (not in Susned Mode), an automatic
                                                         tester can use this to disable phy_clock and
                                                         free_clk, then re-eanable them with an aligned
                                                         phase.
                                                         '1': The phy_clk and free_clk outputs are
                                                         disabled. "0": The phy_clock and free_clk outputs
                                                         are available within a specific period after the
                                                         de-assertion. */
#else
	uint64_t ate_reset                    : 1;
	uint64_t tdata_in                     : 8;
	uint64_t taddr_in                     : 4;
	uint64_t tdata_sel                    : 1;
	uint64_t bist_enb                     : 1;
	uint64_t vtest_enb                    : 1;
	uint64_t loop_enb                     : 1;
	uint64_t tx_bs_en                     : 1;
	uint64_t tx_bs_enh                    : 1;
	uint64_t tuning                       : 4;
	uint64_t hst_mode                     : 1;
	uint64_t dm_pulld                     : 1;
	uint64_t dp_pulld                     : 1;
	uint64_t tclk                         : 1;
	uint64_t usbp_bist                    : 1;
	uint64_t usbc_end                     : 1;
	uint64_t dma_bmode                    : 1;
	uint64_t txpreemphasistune            : 1;
	uint64_t siddq                        : 1;
	uint64_t tdata_out                    : 4;
	uint64_t bist_err                     : 1;
	uint64_t bist_done                    : 1;
	uint64_t hsbist                       : 1;
	uint64_t fsbist                       : 1;
	uint64_t lsbist                       : 1;
	uint64_t drvvbus                      : 1;
	uint64_t portreset                    : 1;
	uint64_t otgdisable                   : 1;
	uint64_t otgtune                      : 3;
	uint64_t compdistune                  : 3;
	uint64_t sqrxtune                     : 3;
	uint64_t txhsxvtune                   : 2;
	uint64_t txfslstune                   : 4;
	uint64_t txvreftune                   : 4;
	uint64_t txrisetune                   : 1;
#endif
	} s;
	struct cvmx_usbnx_usbp_ctl_status_cn30xx {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t reserved_38_63               : 26;
	uint64_t bist_done                    : 1;  /**< PHY Bist Done.
                                                         Asserted at the end of the PHY BIST sequence. */
	uint64_t bist_err                     : 1;  /**< PHY Bist Error.
                                                         Indicates an internal error was detected during
                                                         the BIST sequence. */
	uint64_t tdata_out                    : 4;  /**< PHY Test Data Out.
                                                         Presents either internaly generated signals or
                                                         test register contents, based upon the value of
                                                         test_data_out_sel. */
	uint64_t reserved_30_31               : 2;
	uint64_t dma_bmode                    : 1;  /**< When set to 1 the L2C DMA address will be updated
                                                         with byte-counts between packets. When set to 0
                                                         the L2C DMA address is incremented to the next
                                                         4-byte aligned address after adding byte-count. */
	uint64_t usbc_end                     : 1;  /**< Bigendian input to the USB Core. This should be
                                                         set to '0' for operation. */
	uint64_t usbp_bist                    : 1;  /**< PHY, This is cleared '0' to run BIST on the USBP. */
	uint64_t tclk                         : 1;  /**< PHY Test Clock, used to load TDATA_IN to the USBP. */
	uint64_t dp_pulld                     : 1;  /**< PHY DP_PULLDOWN input to the USB-PHY.
                                                         This signal enables the pull-down resistance on
                                                         the D+ line. '1' pull down-resistance is connected
                                                         to D+/ '0' pull down resistance is not connected
                                                         to D+. When an A/B device is acting as a host
                                                         (downstream-facing port), dp_pulldown and
                                                         dm_pulldown are enabled. This must not toggle
                                                         during normal opeartion. */
	uint64_t dm_pulld                     : 1;  /**< PHY DM_PULLDOWN input to the USB-PHY.
                                                         This signal enables the pull-down resistance on
                                                         the D- line. '1' pull down-resistance is connected
                                                         to D-. '0' pull down resistance is not connected
                                                         to D-. When an A/B device is acting as a host
                                                         (downstream-facing port), dp_pulldown and
                                                         dm_pulldown are enabled. This must not toggle
                                                         during normal opeartion. */
	uint64_t hst_mode                     : 1;  /**< When '0' the USB is acting as HOST, when '1'
                                                         USB is acting as device. This field needs to be
                                                         set while the USB is in reset. */
	uint64_t tuning                       : 4;  /**< Transmitter Tuning for High-Speed Operation.
                                                         Tunes the current supply and rise/fall output
                                                         times for high-speed operation.
                                                         [20:19] == 11: Current supply increased
                                                         approximately 9%
                                                         [20:19] == 10: Current supply increased
                                                         approximately 4.5%
                                                         [20:19] == 01: Design default.
                                                         [20:19] == 00: Current supply decreased
                                                         approximately 4.5%
                                                         [22:21] == 11: Rise and fall times are increased.
                                                         [22:21] == 10: Design default.
                                                         [22:21] == 01: Rise and fall times are decreased.
                                                         [22:21] == 00: Rise and fall times are decreased
                                                         further as compared to the 01 setting. */
	uint64_t tx_bs_enh                    : 1;  /**< Transmit Bit Stuffing on [15:8].
                                                         Enables or disables bit stuffing on data[15:8]
                                                         when bit-stuffing is enabled. */
	uint64_t tx_bs_en                     : 1;  /**< Transmit Bit Stuffing on [7:0].
                                                         Enables or disables bit stuffing on data[7:0]
                                                         when bit-stuffing is enabled. */
	uint64_t loop_enb                     : 1;  /**< PHY Loopback Test Enable.
                                                         '1': During data transmission the receive is
                                                         enabled.
                                                         '0': During data transmission the receive is
                                                         disabled.
                                                         Must be '0' for normal operation. */
	uint64_t vtest_enb                    : 1;  /**< Analog Test Pin Enable.
                                                         '1' The PHY's analog_test pin is enabled for the
                                                         input and output of applicable analog test signals.
                                                         '0' THe analog_test pin is disabled. */
	uint64_t bist_enb                     : 1;  /**< Built-In Self Test Enable.
                                                         Used to activate BIST in the PHY. */
	uint64_t tdata_sel                    : 1;  /**< Test Data Out Select.
                                                         '1' test_data_out[3:0] (PHY) register contents
                                                         are output. '0' internaly generated signals are
                                                         output. */
	uint64_t taddr_in                     : 4;  /**< Mode Address for Test Interface.
                                                         Specifies the register address for writing to or
                                                         reading from the PHY test interface register. */
	uint64_t tdata_in                     : 8;  /**< Internal Testing Register Input Data and Select
                                                         This is a test bus. Data is present on [3:0],
                                                         and its corresponding select (enable) is present
                                                         on bits [7:4]. */
	uint64_t ate_reset                    : 1;  /**< Reset input from automatic test equipment.
                                                         This is a test signal. When the USB Core is
                                                         powered up (not in Susned Mode), an automatic
                                                         tester can use this to disable phy_clock and
                                                         free_clk, then re-eanable them with an aligned
                                                         phase.
                                                         '1': The phy_clk and free_clk outputs are
                                                         disabled. "0": The phy_clock and free_clk outputs
                                                         are available within a specific period after the
                                                         de-assertion. */
#else
	uint64_t ate_reset                    : 1;
	uint64_t tdata_in                     : 8;
	uint64_t taddr_in                     : 4;
	uint64_t tdata_sel                    : 1;
	uint64_t bist_enb                     : 1;
	uint64_t vtest_enb                    : 1;
	uint64_t loop_enb                     : 1;
	uint64_t tx_bs_en                     : 1;
	uint64_t tx_bs_enh                    : 1;
	uint64_t tuning                       : 4;
	uint64_t hst_mode                     : 1;
	uint64_t dm_pulld                     : 1;
	uint64_t dp_pulld                     : 1;
	uint64_t tclk                         : 1;
	uint64_t usbp_bist                    : 1;
	uint64_t usbc_end                     : 1;
	uint64_t dma_bmode                    : 1;
	uint64_t reserved_30_31               : 2;
	uint64_t tdata_out                    : 4;
	uint64_t bist_err                     : 1;
	uint64_t bist_done                    : 1;
	uint64_t reserved_38_63               : 26;
#endif
	} cn30xx;
	struct cvmx_usbnx_usbp_ctl_status_cn30xx cn31xx;
	struct cvmx_usbnx_usbp_ctl_status_cn50xx {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t txrisetune                   : 1;  /**< HS Transmitter Rise/Fall Time Adjustment */
	uint64_t txvreftune                   : 4;  /**< HS DC Voltage Level Adjustment */
	uint64_t txfslstune                   : 4;  /**< FS/LS Source Impedence Adjustment */
	uint64_t txhsxvtune                   : 2;  /**< Transmitter High-Speed Crossover Adjustment */
	uint64_t sqrxtune                     : 3;  /**< Squelch Threshold Adjustment */
	uint64_t compdistune                  : 3;  /**< Disconnect Threshold Adjustment */
	uint64_t otgtune                      : 3;  /**< VBUS Valid Threshold Adjustment */
	uint64_t otgdisable                   : 1;  /**< OTG Block Disable */
	uint64_t portreset                    : 1;  /**< Per_Port Reset */
	uint64_t drvvbus                      : 1;  /**< Drive VBUS */
	uint64_t lsbist                       : 1;  /**< Low-Speed BIST Enable. */
	uint64_t fsbist                       : 1;  /**< Full-Speed BIST Enable. */
	uint64_t hsbist                       : 1;  /**< High-Speed BIST Enable. */
	uint64_t bist_done                    : 1;  /**< PHY Bist Done.
                                                         Asserted at the end of the PHY BIST sequence. */
	uint64_t bist_err                     : 1;  /**< PHY Bist Error.
                                                         Indicates an internal error was detected during
                                                         the BIST sequence. */
	uint64_t tdata_out                    : 4;  /**< PHY Test Data Out.
                                                         Presents either internaly generated signals or
                                                         test register contents, based upon the value of
                                                         test_data_out_sel. */
	uint64_t reserved_31_31               : 1;
	uint64_t txpreemphasistune            : 1;  /**< HS Transmitter Pre-Emphasis Enable */
	uint64_t dma_bmode                    : 1;  /**< When set to 1 the L2C DMA address will be updated
                                                         with byte-counts between packets. When set to 0
                                                         the L2C DMA address is incremented to the next
                                                         4-byte aligned address after adding byte-count. */
	uint64_t usbc_end                     : 1;  /**< Bigendian input to the USB Core. This should be
                                                         set to '0' for operation. */
	uint64_t usbp_bist                    : 1;  /**< PHY, This is cleared '0' to run BIST on the USBP. */
	uint64_t tclk                         : 1;  /**< PHY Test Clock, used to load TDATA_IN to the USBP. */
	uint64_t dp_pulld                     : 1;  /**< PHY DP_PULLDOWN input to the USB-PHY.
                                                         This signal enables the pull-down resistance on
                                                         the D+ line. '1' pull down-resistance is connected
                                                         to D+/ '0' pull down resistance is not connected
                                                         to D+. When an A/B device is acting as a host
                                                         (downstream-facing port), dp_pulldown and
                                                         dm_pulldown are enabled. This must not toggle
                                                         during normal opeartion. */
	uint64_t dm_pulld                     : 1;  /**< PHY DM_PULLDOWN input to the USB-PHY.
                                                         This signal enables the pull-down resistance on
                                                         the D- line. '1' pull down-resistance is connected
                                                         to D-. '0' pull down resistance is not connected
                                                         to D-. When an A/B device is acting as a host
                                                         (downstream-facing port), dp_pulldown and
                                                         dm_pulldown are enabled. This must not toggle
                                                         during normal opeartion. */
	uint64_t hst_mode                     : 1;  /**< When '0' the USB is acting as HOST, when '1'
                                                         USB is acting as device. This field needs to be
                                                         set while the USB is in reset. */
	uint64_t reserved_19_22               : 4;
	uint64_t tx_bs_enh                    : 1;  /**< Transmit Bit Stuffing on [15:8].
                                                         Enables or disables bit stuffing on data[15:8]
                                                         when bit-stuffing is enabled. */
	uint64_t tx_bs_en                     : 1;  /**< Transmit Bit Stuffing on [7:0].
                                                         Enables or disables bit stuffing on data[7:0]
                                                         when bit-stuffing is enabled. */
	uint64_t loop_enb                     : 1;  /**< PHY Loopback Test Enable.
                                                         '1': During data transmission the receive is
                                                         enabled.
                                                         '0': During data transmission the receive is
                                                         disabled.
                                                         Must be '0' for normal operation. */
	uint64_t vtest_enb                    : 1;  /**< Analog Test Pin Enable.
                                                         '1' The PHY's analog_test pin is enabled for the
                                                         input and output of applicable analog test signals.
                                                         '0' THe analog_test pin is disabled. */
	uint64_t bist_enb                     : 1;  /**< Built-In Self Test Enable.
                                                         Used to activate BIST in the PHY. */
	uint64_t tdata_sel                    : 1;  /**< Test Data Out Select.
                                                         '1' test_data_out[3:0] (PHY) register contents
                                                         are output. '0' internaly generated signals are
                                                         output. */
	uint64_t taddr_in                     : 4;  /**< Mode Address for Test Interface.
                                                         Specifies the register address for writing to or
                                                         reading from the PHY test interface register. */
	uint64_t tdata_in                     : 8;  /**< Internal Testing Register Input Data and Select
                                                         This is a test bus. Data is present on [3:0],
                                                         and its corresponding select (enable) is present
                                                         on bits [7:4]. */
	uint64_t ate_reset                    : 1;  /**< Reset input from automatic test equipment.
                                                         This is a test signal. When the USB Core is
                                                         powered up (not in Susned Mode), an automatic
                                                         tester can use this to disable phy_clock and
                                                         free_clk, then re-eanable them with an aligned
                                                         phase.
                                                         '1': The phy_clk and free_clk outputs are
                                                         disabled. "0": The phy_clock and free_clk outputs
                                                         are available within a specific period after the
                                                         de-assertion. */
#else
	uint64_t ate_reset                    : 1;
	uint64_t tdata_in                     : 8;
	uint64_t taddr_in                     : 4;
	uint64_t tdata_sel                    : 1;
	uint64_t bist_enb                     : 1;
	uint64_t vtest_enb                    : 1;
	uint64_t loop_enb                     : 1;
	uint64_t tx_bs_en                     : 1;
	uint64_t tx_bs_enh                    : 1;
	uint64_t reserved_19_22               : 4;
	uint64_t hst_mode                     : 1;
	uint64_t dm_pulld                     : 1;
	uint64_t dp_pulld                     : 1;
	uint64_t tclk                         : 1;
	uint64_t usbp_bist                    : 1;
	uint64_t usbc_end                     : 1;
	uint64_t dma_bmode                    : 1;
	uint64_t txpreemphasistune            : 1;
	uint64_t reserved_31_31               : 1;
	uint64_t tdata_out                    : 4;
	uint64_t bist_err                     : 1;
	uint64_t bist_done                    : 1;
	uint64_t hsbist                       : 1;
	uint64_t fsbist                       : 1;
	uint64_t lsbist                       : 1;
	uint64_t drvvbus                      : 1;
	uint64_t portreset                    : 1;
	uint64_t otgdisable                   : 1;
	uint64_t otgtune                      : 3;
	uint64_t compdistune                  : 3;
	uint64_t sqrxtune                     : 3;
	uint64_t txhsxvtune                   : 2;
	uint64_t txfslstune                   : 4;
	uint64_t txvreftune                   : 4;
	uint64_t txrisetune                   : 1;
#endif
	} cn50xx;
	struct cvmx_usbnx_usbp_ctl_status_cn52xx {
#ifdef __BIG_ENDIAN_BITFIELD
	uint64_t txrisetune                   : 1;  /**< HS Transmitter Rise/Fall Time Adjustment */
	uint64_t txvreftune                   : 4;  /**< HS DC Voltage Level Adjustment */
	uint64_t txfslstune                   : 4;  /**< FS/LS Source Impedence Adjustment */
	uint64_t txhsxvtune                   : 2;  /**< Transmitter High-Speed Crossover Adjustment */
	uint64_t sqrxtune                     : 3;  /**< Squelch Threshold Adjustment */
	uint64_t compdistune                  : 3;  /**< Disconnect Threshold Adjustment */
	uint64_t otgtune                      : 3;  /**< VBUS Valid Threshold Adjustment */
	uint64_t otgdisable                   : 1;  /**< OTG Block Disable */
	uint64_t portreset                    : 1;  /**< Per_Port Reset */
	uint64_t drvvbus                      : 1;  /**< Drive VBUS */
	uint64_t lsbist                       : 1;  /**< Low-Speed BIST Enable. */
	uint64_t fsbist                       : 1;  /**< Full-Speed BIST Enable. */
	uint64_t hsbist                       : 1;  /**< High-Speed BIST Enable. */
	uint64_t bist_done                    : 1;  /**< PHY Bist Done.
                                                         Asserted at the end of the PHY BIST sequence. */
	uint64_t bist_err                     : 1;  /**< PHY Bist Error.
                                                         Indicates an internal error was detected during
                                                         the BIST sequence. */
	uint64_t tdata_out                    : 4;  /**< PHY Test Data Out.
                                                         Presents either internaly generated signals or
                                                         test register contents, based upon the value of
                                                         test_data_out_sel. */
	uint64_t siddq                        : 1;  /**< Drives the USBP (USB-PHY) SIDDQ input.
                                                         Normally should be set to zero.
                                                         When customers have no intent to use USB PHY
                                                         interface, they should:
                                                           - still provide 3.3V to USB_VDD33, and
                                                           - tie USB_REXT to 3.3V supply, and
                                                           - set USBN*_USBP_CTL_STATUS[SIDDQ]=1 */
	uint64_t txpreemphasistune            : 1;  /**< HS Transmitter Pre-Emphasis Enable */
	uint64_t dma_bmode                    : 1;  /**< When set to 1 the L2C DMA address will be updated
                                                         with byte-counts between packets. When set to 0
                                                         the L2C DMA address is incremented to the next
                                                         4-byte aligned address after adding byte-count. */
	uint64_t usbc_end                     : 1;  /**< Bigendian input to the USB Core. This should be
                                                         set to '0' for operation. */
	uint64_t usbp_bist                    : 1;  /**< PHY, This is cleared '0' to run BIST on the USBP. */
	uint64_t tclk                         : 1;  /**< PHY Test Clock, used to load TDATA_IN to the USBP. */
	uint64_t dp_pulld                     : 1;  /**< PHY DP_PULLDOWN input to the USB-PHY.
                                                         This signal enables the pull-down resistance on
                                                         the D+ line. '1' pull down-resistance is connected
                                                         to D+/ '0' pull down resistance is not connected
                                                         to D+. When an A/B device is acting as a host
                                                         (downstream-facing port), dp_pulldown and
                                                         dm_pulldown are enabled. This must not toggle
                                                         during normal opeartion. */
	uint64_t dm_pulld                     : 1;  /**< PHY DM_PULLDOWN input to the USB-PHY.
                                                         This signal enables the pull-down resistance on
                                                         the D- line. '1' pull down-resistance is connected
                                                         to D-. '0' pull down resistance is not connected
                                                         to D-. When an A/B device is acting as a host
                                                         (downstream-facing port), dp_pulldown and
                                                         dm_pulldown are enabled. This must not toggle
                                                         during normal opeartion. */
	uint64_t hst_mode                     : 1;  /**< When '0' the USB is acting as HOST, when '1'
                                                         USB is acting as device. This field needs to be
                                                         set while the USB is in reset. */
	uint64_t reserved_19_22               : 4;
	uint64_t tx_bs_enh                    : 1;  /**< Transmit Bit Stuffing on [15:8].
                                                         Enables or disables bit stuffing on data[15:8]
                                                         when bit-stuffing is enabled. */
	uint64_t tx_bs_en                     : 1;  /**< Transmit Bit Stuffing on [7:0].
                                                         Enables or disables bit stuffing on data[7:0]
                                                         when bit-stuffing is enabled. */
	uint64_t loop_enb                     : 1;  /**< PHY Loopback Test Enable.
                                                         '1': During data transmission the receive is
                                                         enabled.
                                                         '0': During data transmission the receive is
                                                         disabled.
                                                         Must be '0' for normal operation. */
	uint64_t vtest_enb                    : 1;  /**< Analog Test Pin Enable.
                                                         '1' The PHY's analog_test pin is enabled for the
                                                         input and output of applicable analog test signals.
                                                         '0' THe analog_test pin is disabled. */
	uint64_t bist_enb                     : 1;  /**< Built-In Self Test Enable.
                                                         Used to activate BIST in the PHY. */
	uint64_t tdata_sel                    : 1;  /**< Test Data Out Select.
                                                         '1' test_data_out[3:0] (PHY) register contents
                                                         are output. '0' internaly generated signals are
                                                         output. */
	uint64_t taddr_in                     : 4;  /**< Mode Address for Test Interface.
                                                         Specifies the register address for writing to or
                                                         reading from the PHY test interface register. */
	uint64_t tdata_in                     : 8;  /**< Internal Testing Register Input Data and Select
                                                         This is a test bus. Data is present on [3:0],
                                                         and its corresponding select (enable) is present
                                                         on bits [7:4]. */
	uint64_t ate_reset                    : 1;  /**< Reset input from automatic test equipment.
                                                         This is a test signal. When the USB Core is
                                                         powered up (not in Susned Mode), an automatic
                                                         tester can use this to disable phy_clock and
                                                         free_clk, then re-eanable them with an aligned
                                                         phase.
                                                         '1': The phy_clk and free_clk outputs are
                                                         disabled. "0": The phy_clock and free_clk outputs
                                                         are available within a specific period after the
                                                         de-assertion. */
#else
	uint64_t ate_reset                    : 1;
	uint64_t tdata_in                     : 8;
	uint64_t taddr_in                     : 4;
	uint64_t tdata_sel                    : 1;
	uint64_t bist_enb                     : 1;
	uint64_t vtest_enb                    : 1;
	uint64_t loop_enb                     : 1;
	uint64_t tx_bs_en                     : 1;
	uint64_t tx_bs_enh                    : 1;
	uint64_t reserved_19_22               : 4;
	uint64_t hst_mode                     : 1;
	uint64_t dm_pulld                     : 1;
	uint64_t dp_pulld                     : 1;
	uint64_t tclk                         : 1;
	uint64_t usbp_bist                    : 1;
	uint64_t usbc_end                     : 1;
	uint64_t dma_bmode                    : 1;
	uint64_t txpreemphasistune            : 1;
	uint64_t siddq                        : 1;
	uint64_t tdata_out                    : 4;
	uint64_t bist_err                     : 1;
	uint64_t bist_done                    : 1;
	uint64_t hsbist                       : 1;
	uint64_t fsbist                       : 1;
	uint64_t lsbist                       : 1;
	uint64_t drvvbus                      : 1;
	uint64_t portreset                    : 1;
	uint64_t otgdisable                   : 1;
	uint64_t otgtune                      : 3;
	uint64_t compdistune                  : 3;
	uint64_t sqrxtune                     : 3;
	uint64_t txhsxvtune                   : 2;
	uint64_t txfslstune                   : 4;
	uint64_t txvreftune                   : 4;
	uint64_t txrisetune                   : 1;
#endif
	} cn52xx;
	struct cvmx_usbnx_usbp_ctl_status_cn50xx cn52xxp1;
	struct cvmx_usbnx_usbp_ctl_status_cn52xx cn56xx;
	struct cvmx_usbnx_usbp_ctl_status_cn50xx cn56xxp1;
};
typedef union cvmx_usbnx_usbp_ctl_status cvmx_usbnx_usbp_ctl_status_t;

#endif