summaryrefslogtreecommitdiff
path: root/arch/mips/mach-octeon/include/mach/cvmx-bgxx-defs.h
blob: 7bcf805827b5f49967fa44d302b93d37721c76ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
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
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2020 Marvell International Ltd.
 *
 * Configuration and status register (CSR) type definitions for
 * Octeon bgxx.
 */

#ifndef __CVMX_BGXX_DEFS_H__
#define __CVMX_BGXX_DEFS_H__

#define CVMX_BGXX_CMRX_CONFIG(offset, block_id)                                                    \
	(0x00011800E0000000ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_INT(offset, block_id)                                                       \
	(0x00011800E0000020ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_PRT_CBFC_CTL(offset, block_id)                                              \
	(0x00011800E0000408ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_ADR_CTL(offset, block_id)                                                \
	(0x00011800E00000A0ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_BP_DROP(offset, block_id)                                                \
	(0x00011800E0000080ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_BP_OFF(offset, block_id)                                                 \
	(0x00011800E0000090ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_BP_ON(offset, block_id)                                                  \
	(0x00011800E0000088ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_BP_STATUS(offset, block_id)                                              \
	(0x00011800E00000A8ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_FIFO_LEN(offset, block_id)                                               \
	(0x00011800E00000C0ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_ID_MAP(offset, block_id)                                                 \
	(0x00011800E0000028ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_LOGL_XOFF(offset, block_id)                                              \
	(0x00011800E00000B0ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_LOGL_XON(offset, block_id)                                               \
	(0x00011800E00000B8ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_PAUSE_DROP_TIME(offset, block_id)                                        \
	(0x00011800E0000030ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_STAT0(offset, block_id)                                                  \
	(0x00011800E0000038ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_STAT1(offset, block_id)                                                  \
	(0x00011800E0000040ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_STAT2(offset, block_id)                                                  \
	(0x00011800E0000048ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_STAT3(offset, block_id)                                                  \
	(0x00011800E0000050ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_STAT4(offset, block_id)                                                  \
	(0x00011800E0000058ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_STAT5(offset, block_id)                                                  \
	(0x00011800E0000060ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_STAT6(offset, block_id)                                                  \
	(0x00011800E0000068ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_STAT7(offset, block_id)                                                  \
	(0x00011800E0000070ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_STAT8(offset, block_id)                                                  \
	(0x00011800E0000078ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_RX_WEIGHT(offset, block_id)                                                 \
	(0x00011800E0000098ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_CHANNEL(offset, block_id)                                                \
	(0x00011800E0000400ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_FIFO_LEN(offset, block_id)                                               \
	(0x00011800E0000418ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_HG2_STATUS(offset, block_id)                                             \
	(0x00011800E0000410ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_OVR_BP(offset, block_id)                                                 \
	(0x00011800E0000420ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT0(offset, block_id)                                                  \
	(0x00011800E0000508ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT1(offset, block_id)                                                  \
	(0x00011800E0000510ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT10(offset, block_id)                                                 \
	(0x00011800E0000558ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT11(offset, block_id)                                                 \
	(0x00011800E0000560ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT12(offset, block_id)                                                 \
	(0x00011800E0000568ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT13(offset, block_id)                                                 \
	(0x00011800E0000570ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT14(offset, block_id)                                                 \
	(0x00011800E0000578ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT15(offset, block_id)                                                 \
	(0x00011800E0000580ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT16(offset, block_id)                                                 \
	(0x00011800E0000588ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT17(offset, block_id)                                                 \
	(0x00011800E0000590ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT2(offset, block_id)                                                  \
	(0x00011800E0000518ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT3(offset, block_id)                                                  \
	(0x00011800E0000520ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT4(offset, block_id)                                                  \
	(0x00011800E0000528ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT5(offset, block_id)                                                  \
	(0x00011800E0000530ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT6(offset, block_id)                                                  \
	(0x00011800E0000538ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT7(offset, block_id)                                                  \
	(0x00011800E0000540ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT8(offset, block_id)                                                  \
	(0x00011800E0000548ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMRX_TX_STAT9(offset, block_id)                                                  \
	(0x00011800E0000550ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_CMR_BAD(offset)	    (0x00011800E0001020ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_CMR_BIST_STATUS(offset)   (0x00011800E0000300ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_CMR_CHAN_MSK_AND(offset)  (0x00011800E0000200ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_CMR_CHAN_MSK_OR(offset)   (0x00011800E0000208ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_CMR_ECO(offset)	    (0x00011800E0001028ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_CMR_GLOBAL_CONFIG(offset) (0x00011800E0000008ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_CMR_MEM_CTRL(offset)	    (0x00011800E0000018ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_CMR_MEM_INT(offset)	    (0x00011800E0000010ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_CMR_NXC_ADR(offset)	    (0x00011800E0001018ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_CMR_RX_ADRX_CAM(offset, block_id)                                                \
	(0x00011800E0000100ull + (((offset) & 31) + ((block_id) & 7) * 0x200000ull) * 8)
#define CVMX_BGXX_CMR_RX_LMACS(offset)	(0x00011800E0000308ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_CMR_RX_OVR_BP(offset) (0x00011800E0000318ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_CMR_TX_LMACS(offset)	(0x00011800E0001000ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_GMP_GMI_PRTX_CFG(offset, block_id)                                               \
	(0x00011800E0038010ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_RXX_DECISION(offset, block_id)                                           \
	(0x00011800E0038040ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_RXX_FRM_CHK(offset, block_id)                                            \
	(0x00011800E0038020ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_RXX_FRM_CTL(offset, block_id)                                            \
	(0x00011800E0038018ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_RXX_IFG(offset, block_id)                                                \
	(0x00011800E0038058ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_RXX_INT(offset, block_id)                                                \
	(0x00011800E0038000ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_RXX_JABBER(offset, block_id)                                             \
	(0x00011800E0038038ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_RXX_UDD_SKP(offset, block_id)                                            \
	(0x00011800E0038048ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_SMACX(offset, block_id)                                                  \
	(0x00011800E0038230ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_APPEND(offset, block_id)                                             \
	(0x00011800E0038218ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_BURST(offset, block_id)                                              \
	(0x00011800E0038228ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_CTL(offset, block_id)                                                \
	(0x00011800E0038270ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_INT(offset, block_id)                                                \
	(0x00011800E0038500ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_MIN_PKT(offset, block_id)                                            \
	(0x00011800E0038240ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_PAUSE_PKT_INTERVAL(offset, block_id)                                 \
	(0x00011800E0038248ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_PAUSE_PKT_TIME(offset, block_id)                                     \
	(0x00011800E0038238ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_PAUSE_TOGO(offset, block_id)                                         \
	(0x00011800E0038258ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_PAUSE_ZERO(offset, block_id)                                         \
	(0x00011800E0038260ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_SGMII_CTL(offset, block_id)                                          \
	(0x00011800E0038300ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_SLOT(offset, block_id)                                               \
	(0x00011800E0038220ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_SOFT_PAUSE(offset, block_id)                                         \
	(0x00011800E0038250ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TXX_THRESH(offset, block_id)                                             \
	(0x00011800E0038210ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_GMI_TX_COL_ATTEMPT(offset)                                                   \
	(0x00011800E0039010ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_GMP_GMI_TX_IFG(offset)  (0x00011800E0039000ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_GMP_GMI_TX_JAM(offset)  (0x00011800E0039008ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_GMP_GMI_TX_LFSR(offset) (0x00011800E0039028ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_GMP_GMI_TX_PAUSE_PKT_DMAC(offset)                                                \
	(0x00011800E0039018ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_GMP_GMI_TX_PAUSE_PKT_TYPE(offset)                                                \
	(0x00011800E0039020ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_GMP_PCS_ANX_ADV(offset, block_id)                                                \
	(0x00011800E0030010ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_ANX_EXT_ST(offset, block_id)                                             \
	(0x00011800E0030028ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_ANX_LP_ABIL(offset, block_id)                                            \
	(0x00011800E0030018ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_ANX_RESULTS(offset, block_id)                                            \
	(0x00011800E0030020ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_INTX(offset, block_id)                                                   \
	(0x00011800E0030080ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_LINKX_TIMER(offset, block_id)                                            \
	(0x00011800E0030040ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_MISCX_CTL(offset, block_id)                                              \
	(0x00011800E0030078ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_MRX_CONTROL(offset, block_id)                                            \
	(0x00011800E0030000ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_MRX_STATUS(offset, block_id)                                             \
	(0x00011800E0030008ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_RXX_STATES(offset, block_id)                                             \
	(0x00011800E0030058ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_RXX_SYNC(offset, block_id)                                               \
	(0x00011800E0030050ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_SGMX_AN_ADV(offset, block_id)                                            \
	(0x00011800E0030068ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_SGMX_LP_ADV(offset, block_id)                                            \
	(0x00011800E0030070ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_TXX_STATES(offset, block_id)                                             \
	(0x00011800E0030060ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_GMP_PCS_TX_RXX_POLARITY(offset, block_id)                                        \
	(0x00011800E0030048ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_CBFC_CTL(offset, block_id)                                                  \
	(0x00011800E0020218ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_CTRL(offset, block_id)                                                      \
	(0x00011800E0020200ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_EXT_LOOPBACK(offset, block_id)                                              \
	(0x00011800E0020208ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_HG2_CONTROL(offset, block_id)                                               \
	(0x00011800E0020210ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_RX_BAD_COL_HI(offset, block_id)                                             \
	(0x00011800E0020040ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_RX_BAD_COL_LO(offset, block_id)                                             \
	(0x00011800E0020038ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_RX_CTL(offset, block_id)                                                    \
	(0x00011800E0020030ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_RX_DECISION(offset, block_id)                                               \
	(0x00011800E0020020ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_RX_FRM_CHK(offset, block_id)                                                \
	(0x00011800E0020010ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_RX_FRM_CTL(offset, block_id)                                                \
	(0x00011800E0020008ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_RX_INT(offset, block_id)                                                    \
	(0x00011800E0020000ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_RX_JABBER(offset, block_id)                                                 \
	(0x00011800E0020018ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_RX_UDD_SKP(offset, block_id)                                                \
	(0x00011800E0020028ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_SMAC(offset, block_id)                                                      \
	(0x00011800E0020108ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_APPEND(offset, block_id)                                                 \
	(0x00011800E0020100ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_CTL(offset, block_id)                                                    \
	(0x00011800E0020160ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_IFG(offset, block_id)                                                    \
	(0x00011800E0020148ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_INT(offset, block_id)                                                    \
	(0x00011800E0020140ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_MIN_PKT(offset, block_id)                                                \
	(0x00011800E0020118ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_PAUSE_PKT_DMAC(offset, block_id)                                         \
	(0x00011800E0020150ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_PAUSE_PKT_INTERVAL(offset, block_id)                                     \
	(0x00011800E0020120ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_PAUSE_PKT_TIME(offset, block_id)                                         \
	(0x00011800E0020110ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_PAUSE_PKT_TYPE(offset, block_id)                                         \
	(0x00011800E0020158ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_PAUSE_TOGO(offset, block_id)                                             \
	(0x00011800E0020130ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_PAUSE_ZERO(offset, block_id)                                             \
	(0x00011800E0020138ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_SOFT_PAUSE(offset, block_id)                                             \
	(0x00011800E0020128ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SMUX_TX_THRESH(offset, block_id)                                                 \
	(0x00011800E0020168ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_AN_ADV(offset, block_id)                                                    \
	(0x00011800E00100D8ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_AN_BP_STATUS(offset, block_id)                                              \
	(0x00011800E00100F8ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_AN_CONTROL(offset, block_id)                                                \
	(0x00011800E00100C8ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_AN_LP_BASE(offset, block_id)                                                \
	(0x00011800E00100E0ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_AN_LP_XNP(offset, block_id)                                                 \
	(0x00011800E00100F0ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_AN_STATUS(offset, block_id)                                                 \
	(0x00011800E00100D0ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_AN_XNP_TX(offset, block_id)                                                 \
	(0x00011800E00100E8ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_ALGN_STATUS(offset, block_id)                                            \
	(0x00011800E0010050ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_BIP_ERR_CNT(offset, block_id)                                            \
	(0x00011800E0010058ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_LANE_MAP(offset, block_id)                                               \
	(0x00011800E0010060ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_PMD_CONTROL(offset, block_id)                                            \
	(0x00011800E0010068ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_PMD_LD_CUP(offset, block_id)                                             \
	(0x00011800E0010088ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_PMD_LD_REP(offset, block_id)                                             \
	(0x00011800E0010090ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_PMD_LP_CUP(offset, block_id)                                             \
	(0x00011800E0010078ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_PMD_LP_REP(offset, block_id)                                             \
	(0x00011800E0010080ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_PMD_STATUS(offset, block_id)                                             \
	(0x00011800E0010070ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_STATUS1(offset, block_id)                                                \
	(0x00011800E0010030ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_STATUS2(offset, block_id)                                                \
	(0x00011800E0010038ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_TP_CONTROL(offset, block_id)                                             \
	(0x00011800E0010040ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BR_TP_ERR_CNT(offset, block_id)                                             \
	(0x00011800E0010048ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_BX_STATUS(offset, block_id)                                                 \
	(0x00011800E0010028ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_CONTROL1(offset, block_id)                                                  \
	(0x00011800E0010000ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_CONTROL2(offset, block_id)                                                  \
	(0x00011800E0010018ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_FEC_ABIL(offset, block_id)                                                  \
	(0x00011800E0010098ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_FEC_CONTROL(offset, block_id)                                               \
	(0x00011800E00100A0ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_FEC_CORR_BLKS01(offset, block_id)                                           \
	(0x00011800E00100A8ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_FEC_CORR_BLKS23(offset, block_id)                                           \
	(0x00011800E00100B0ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_FEC_UNCORR_BLKS01(offset, block_id)                                         \
	(0x00011800E00100B8ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_FEC_UNCORR_BLKS23(offset, block_id)                                         \
	(0x00011800E00100C0ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_INT(offset, block_id)                                                       \
	(0x00011800E0010220ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_LPCS_STATES(offset, block_id)                                               \
	(0x00011800E0010208ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_MISC_CONTROL(offset, block_id)                                              \
	(0x00011800E0010218ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_SPD_ABIL(offset, block_id)                                                  \
	(0x00011800E0010010ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_STATUS1(offset, block_id)                                                   \
	(0x00011800E0010008ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPUX_STATUS2(offset, block_id)                                                   \
	(0x00011800E0010020ull + (((offset) & 3) + ((block_id) & 7) * 0x10ull) * 1048576)
#define CVMX_BGXX_SPU_BIST_STATUS(offset) (0x00011800E0010318ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_SPU_DBG_CONTROL(offset) (0x00011800E0010300ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_SPU_MEM_INT(offset)	  (0x00011800E0010310ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_SPU_MEM_STATUS(offset)  (0x00011800E0010308ull + ((offset) & 7) * 0x1000000ull)
#define CVMX_BGXX_SPU_SDSX_SKEW_STATUS(offset, block_id)                                           \
	(0x00011800E0010320ull + (((offset) & 3) + ((block_id) & 7) * 0x200000ull) * 8)
#define CVMX_BGXX_SPU_SDSX_STATES(offset, block_id)                                                \
	(0x00011800E0010340ull + (((offset) & 3) + ((block_id) & 7) * 0x200000ull) * 8)

/**
 * cvmx_bgx#_cmr#_config
 *
 * Logical MAC/PCS configuration registers; one per LMAC. The maximum number of LMACs (and
 * maximum LMAC ID) that can be enabled by these registers is limited by
 * BGX()_CMR_RX_LMACS[LMACS] and BGX()_CMR_TX_LMACS[LMACS]. When multiple LMACs are
 * enabled, they must be configured with the same [LMAC_TYPE] value.
 */
union cvmx_bgxx_cmrx_config {
	u64 u64;
	struct cvmx_bgxx_cmrx_config_s {
		u64 reserved_16_63 : 48;
		u64 enable : 1;
		u64 data_pkt_rx_en : 1;
		u64 data_pkt_tx_en : 1;
		u64 int_beat_gen : 1;
		u64 mix_en : 1;
		u64 lmac_type : 3;
		u64 lane_to_sds : 8;
	} s;
	struct cvmx_bgxx_cmrx_config_s cn73xx;
	struct cvmx_bgxx_cmrx_config_s cn78xx;
	struct cvmx_bgxx_cmrx_config_s cn78xxp1;
	struct cvmx_bgxx_cmrx_config_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_config cvmx_bgxx_cmrx_config_t;

/**
 * cvmx_bgx#_cmr#_int
 */
union cvmx_bgxx_cmrx_int {
	u64 u64;
	struct cvmx_bgxx_cmrx_int_s {
		u64 reserved_3_63 : 61;
		u64 pko_nxc : 1;
		u64 overflw : 1;
		u64 pause_drp : 1;
	} s;
	struct cvmx_bgxx_cmrx_int_s cn73xx;
	struct cvmx_bgxx_cmrx_int_s cn78xx;
	struct cvmx_bgxx_cmrx_int_s cn78xxp1;
	struct cvmx_bgxx_cmrx_int_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_int cvmx_bgxx_cmrx_int_t;

/**
 * cvmx_bgx#_cmr#_prt_cbfc_ctl
 *
 * See XOFF definition listed under BGX()_SMU()_CBFC_CTL.
 *
 */
union cvmx_bgxx_cmrx_prt_cbfc_ctl {
	u64 u64;
	struct cvmx_bgxx_cmrx_prt_cbfc_ctl_s {
		u64 reserved_32_63 : 32;
		u64 phys_bp : 16;
		u64 reserved_0_15 : 16;
	} s;
	struct cvmx_bgxx_cmrx_prt_cbfc_ctl_s cn73xx;
	struct cvmx_bgxx_cmrx_prt_cbfc_ctl_s cn78xx;
	struct cvmx_bgxx_cmrx_prt_cbfc_ctl_s cn78xxp1;
	struct cvmx_bgxx_cmrx_prt_cbfc_ctl_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_prt_cbfc_ctl cvmx_bgxx_cmrx_prt_cbfc_ctl_t;

/**
 * cvmx_bgx#_cmr#_rx_adr_ctl
 */
union cvmx_bgxx_cmrx_rx_adr_ctl {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_adr_ctl_s {
		u64 reserved_4_63 : 60;
		u64 cam_accept : 1;
		u64 mcst_mode : 2;
		u64 bcst_accept : 1;
	} s;
	struct cvmx_bgxx_cmrx_rx_adr_ctl_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_adr_ctl_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_adr_ctl_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_adr_ctl_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_adr_ctl cvmx_bgxx_cmrx_rx_adr_ctl_t;

/**
 * cvmx_bgx#_cmr#_rx_bp_drop
 */
union cvmx_bgxx_cmrx_rx_bp_drop {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_bp_drop_s {
		u64 reserved_7_63 : 57;
		u64 mark : 7;
	} s;
	struct cvmx_bgxx_cmrx_rx_bp_drop_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_bp_drop_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_bp_drop_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_bp_drop_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_bp_drop cvmx_bgxx_cmrx_rx_bp_drop_t;

/**
 * cvmx_bgx#_cmr#_rx_bp_off
 */
union cvmx_bgxx_cmrx_rx_bp_off {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_bp_off_s {
		u64 reserved_7_63 : 57;
		u64 mark : 7;
	} s;
	struct cvmx_bgxx_cmrx_rx_bp_off_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_bp_off_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_bp_off_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_bp_off_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_bp_off cvmx_bgxx_cmrx_rx_bp_off_t;

/**
 * cvmx_bgx#_cmr#_rx_bp_on
 */
union cvmx_bgxx_cmrx_rx_bp_on {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_bp_on_s {
		u64 reserved_12_63 : 52;
		u64 mark : 12;
	} s;
	struct cvmx_bgxx_cmrx_rx_bp_on_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_bp_on_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_bp_on_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_bp_on_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_bp_on cvmx_bgxx_cmrx_rx_bp_on_t;

/**
 * cvmx_bgx#_cmr#_rx_bp_status
 */
union cvmx_bgxx_cmrx_rx_bp_status {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_bp_status_s {
		u64 reserved_1_63 : 63;
		u64 bp : 1;
	} s;
	struct cvmx_bgxx_cmrx_rx_bp_status_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_bp_status_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_bp_status_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_bp_status_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_bp_status cvmx_bgxx_cmrx_rx_bp_status_t;

/**
 * cvmx_bgx#_cmr#_rx_fifo_len
 */
union cvmx_bgxx_cmrx_rx_fifo_len {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_fifo_len_s {
		u64 reserved_13_63 : 51;
		u64 fifo_len : 13;
	} s;
	struct cvmx_bgxx_cmrx_rx_fifo_len_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_fifo_len_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_fifo_len_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_fifo_len_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_fifo_len cvmx_bgxx_cmrx_rx_fifo_len_t;

/**
 * cvmx_bgx#_cmr#_rx_id_map
 *
 * These registers set the RX LMAC ID mapping for X2P/PKI.
 *
 */
union cvmx_bgxx_cmrx_rx_id_map {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_id_map_s {
		u64 reserved_15_63 : 49;
		u64 rid : 7;
		u64 pknd : 8;
	} s;
	struct cvmx_bgxx_cmrx_rx_id_map_cn73xx {
		u64 reserved_15_63 : 49;
		u64 rid : 7;
		u64 reserved_6_7 : 2;
		u64 pknd : 6;
	} cn73xx;
	struct cvmx_bgxx_cmrx_rx_id_map_cn73xx cn78xx;
	struct cvmx_bgxx_cmrx_rx_id_map_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_id_map_cn73xx cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_id_map cvmx_bgxx_cmrx_rx_id_map_t;

/**
 * cvmx_bgx#_cmr#_rx_logl_xoff
 */
union cvmx_bgxx_cmrx_rx_logl_xoff {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_logl_xoff_s {
		u64 reserved_16_63 : 48;
		u64 xoff : 16;
	} s;
	struct cvmx_bgxx_cmrx_rx_logl_xoff_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_logl_xoff_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_logl_xoff_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_logl_xoff_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_logl_xoff cvmx_bgxx_cmrx_rx_logl_xoff_t;

/**
 * cvmx_bgx#_cmr#_rx_logl_xon
 */
union cvmx_bgxx_cmrx_rx_logl_xon {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_logl_xon_s {
		u64 reserved_16_63 : 48;
		u64 xon : 16;
	} s;
	struct cvmx_bgxx_cmrx_rx_logl_xon_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_logl_xon_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_logl_xon_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_logl_xon_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_logl_xon cvmx_bgxx_cmrx_rx_logl_xon_t;

/**
 * cvmx_bgx#_cmr#_rx_pause_drop_time
 */
union cvmx_bgxx_cmrx_rx_pause_drop_time {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_pause_drop_time_s {
		u64 reserved_16_63 : 48;
		u64 pause_time : 16;
	} s;
	struct cvmx_bgxx_cmrx_rx_pause_drop_time_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_pause_drop_time_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_pause_drop_time_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_pause_drop_time_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_pause_drop_time cvmx_bgxx_cmrx_rx_pause_drop_time_t;

/**
 * cvmx_bgx#_cmr#_rx_stat0
 *
 * These registers provide a count of received packets that meet the following conditions:
 * * are not recognized as PAUSE packets.
 * * are not dropped due DMAC filtering.
 * * are not dropped due FIFO full status.
 * * do not have any other OPCODE (FCS, Length, etc).
 */
union cvmx_bgxx_cmrx_rx_stat0 {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_stat0_s {
		u64 reserved_48_63 : 16;
		u64 cnt : 48;
	} s;
	struct cvmx_bgxx_cmrx_rx_stat0_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_stat0_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_stat0_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_stat0_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_stat0 cvmx_bgxx_cmrx_rx_stat0_t;

/**
 * cvmx_bgx#_cmr#_rx_stat1
 *
 * These registers provide a count of octets of received packets.
 *
 */
union cvmx_bgxx_cmrx_rx_stat1 {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_stat1_s {
		u64 reserved_48_63 : 16;
		u64 cnt : 48;
	} s;
	struct cvmx_bgxx_cmrx_rx_stat1_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_stat1_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_stat1_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_stat1_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_stat1 cvmx_bgxx_cmrx_rx_stat1_t;

/**
 * cvmx_bgx#_cmr#_rx_stat2
 *
 * These registers provide a count of all packets received that were recognized as flow-control
 * or PAUSE packets. PAUSE packets with any kind of error are counted in
 * BGX()_CMR()_RX_STAT8 (error stats register). Pause packets can be optionally dropped
 * or forwarded based on BGX()_SMU()_RX_FRM_CTL[CTL_DRP]. This count increments
 * regardless of whether the packet is dropped. PAUSE packets are never counted in
 * BGX()_CMR()_RX_STAT0.
 */
union cvmx_bgxx_cmrx_rx_stat2 {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_stat2_s {
		u64 reserved_48_63 : 16;
		u64 cnt : 48;
	} s;
	struct cvmx_bgxx_cmrx_rx_stat2_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_stat2_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_stat2_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_stat2_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_stat2 cvmx_bgxx_cmrx_rx_stat2_t;

/**
 * cvmx_bgx#_cmr#_rx_stat3
 *
 * These registers provide a count of octets of received PAUSE and control packets.
 *
 */
union cvmx_bgxx_cmrx_rx_stat3 {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_stat3_s {
		u64 reserved_48_63 : 16;
		u64 cnt : 48;
	} s;
	struct cvmx_bgxx_cmrx_rx_stat3_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_stat3_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_stat3_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_stat3_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_stat3 cvmx_bgxx_cmrx_rx_stat3_t;

/**
 * cvmx_bgx#_cmr#_rx_stat4
 *
 * These registers provide a count of all packets received that were dropped by the DMAC filter.
 * Packets that match the DMAC are dropped and counted here regardless of whether they were ERR
 * packets, but does not include those reported in BGX()_CMR()_RX_STAT6. These packets
 * are never counted in BGX()_CMR()_RX_STAT0. Eight-byte packets as the result of
 * truncation or other means are not dropped by CNXXXX and will never appear in this count.
 */
union cvmx_bgxx_cmrx_rx_stat4 {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_stat4_s {
		u64 reserved_48_63 : 16;
		u64 cnt : 48;
	} s;
	struct cvmx_bgxx_cmrx_rx_stat4_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_stat4_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_stat4_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_stat4_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_stat4 cvmx_bgxx_cmrx_rx_stat4_t;

/**
 * cvmx_bgx#_cmr#_rx_stat5
 *
 * These registers provide a count of octets of filtered DMAC packets.
 *
 */
union cvmx_bgxx_cmrx_rx_stat5 {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_stat5_s {
		u64 reserved_48_63 : 16;
		u64 cnt : 48;
	} s;
	struct cvmx_bgxx_cmrx_rx_stat5_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_stat5_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_stat5_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_stat5_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_stat5 cvmx_bgxx_cmrx_rx_stat5_t;

/**
 * cvmx_bgx#_cmr#_rx_stat6
 *
 * These registers provide a count of all packets received that were dropped due to a full
 * receive FIFO. They do not count any packet that is truncated at the point of overflow and sent
 * on to the PKI. These registers count all entire packets dropped by the FIFO for a given LMAC
 * regardless of DMAC or PAUSE type.
 */
union cvmx_bgxx_cmrx_rx_stat6 {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_stat6_s {
		u64 reserved_48_63 : 16;
		u64 cnt : 48;
	} s;
	struct cvmx_bgxx_cmrx_rx_stat6_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_stat6_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_stat6_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_stat6_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_stat6 cvmx_bgxx_cmrx_rx_stat6_t;

/**
 * cvmx_bgx#_cmr#_rx_stat7
 *
 * These registers provide a count of octets of received packets that were dropped due to a full
 * receive FIFO.
 */
union cvmx_bgxx_cmrx_rx_stat7 {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_stat7_s {
		u64 reserved_48_63 : 16;
		u64 cnt : 48;
	} s;
	struct cvmx_bgxx_cmrx_rx_stat7_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_stat7_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_stat7_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_stat7_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_stat7 cvmx_bgxx_cmrx_rx_stat7_t;

/**
 * cvmx_bgx#_cmr#_rx_stat8
 *
 * These registers provide a count of all packets received with some error that were not dropped
 * either due to the DMAC filter or lack of room in the receive FIFO.
 * This does not include packets which were counted in
 * BGX()_CMR()_RX_STAT2, BGX()_CMR()_RX_STAT4 nor
 * BGX()_CMR()_RX_STAT6.
 *
 * Which statistics are updated on control packet errors and drops are shown below:
 *
 * <pre>
 * if dropped [
 *   if !errored STAT8
 *   if overflow STAT6
 *   else if dmac drop STAT4
 *   else if filter drop STAT2
 * ] else [
 *   if errored STAT2
 *   else STAT8
 * ]
 * </pre>
 */
union cvmx_bgxx_cmrx_rx_stat8 {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_stat8_s {
		u64 reserved_48_63 : 16;
		u64 cnt : 48;
	} s;
	struct cvmx_bgxx_cmrx_rx_stat8_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_stat8_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_stat8_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_stat8_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_stat8 cvmx_bgxx_cmrx_rx_stat8_t;

/**
 * cvmx_bgx#_cmr#_rx_weight
 */
union cvmx_bgxx_cmrx_rx_weight {
	u64 u64;
	struct cvmx_bgxx_cmrx_rx_weight_s {
		u64 reserved_4_63 : 60;
		u64 weight : 4;
	} s;
	struct cvmx_bgxx_cmrx_rx_weight_s cn73xx;
	struct cvmx_bgxx_cmrx_rx_weight_s cn78xx;
	struct cvmx_bgxx_cmrx_rx_weight_s cn78xxp1;
	struct cvmx_bgxx_cmrx_rx_weight_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_rx_weight cvmx_bgxx_cmrx_rx_weight_t;

/**
 * cvmx_bgx#_cmr#_tx_channel
 */
union cvmx_bgxx_cmrx_tx_channel {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_channel_s {
		u64 reserved_32_63 : 32;
		u64 msk : 16;
		u64 dis : 16;
	} s;
	struct cvmx_bgxx_cmrx_tx_channel_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_channel_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_channel_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_channel_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_channel cvmx_bgxx_cmrx_tx_channel_t;

/**
 * cvmx_bgx#_cmr#_tx_fifo_len
 */
union cvmx_bgxx_cmrx_tx_fifo_len {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_fifo_len_s {
		u64 reserved_14_63 : 50;
		u64 lmac_idle : 1;
		u64 fifo_len : 13;
	} s;
	struct cvmx_bgxx_cmrx_tx_fifo_len_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_fifo_len_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_fifo_len_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_fifo_len_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_fifo_len cvmx_bgxx_cmrx_tx_fifo_len_t;

/**
 * cvmx_bgx#_cmr#_tx_hg2_status
 */
union cvmx_bgxx_cmrx_tx_hg2_status {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_hg2_status_s {
		u64 reserved_32_63 : 32;
		u64 xof : 16;
		u64 lgtim2go : 16;
	} s;
	struct cvmx_bgxx_cmrx_tx_hg2_status_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_hg2_status_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_hg2_status_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_hg2_status_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_hg2_status cvmx_bgxx_cmrx_tx_hg2_status_t;

/**
 * cvmx_bgx#_cmr#_tx_ovr_bp
 */
union cvmx_bgxx_cmrx_tx_ovr_bp {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_ovr_bp_s {
		u64 reserved_16_63 : 48;
		u64 tx_chan_bp : 16;
	} s;
	struct cvmx_bgxx_cmrx_tx_ovr_bp_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_ovr_bp_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_ovr_bp_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_ovr_bp_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_ovr_bp cvmx_bgxx_cmrx_tx_ovr_bp_t;

/**
 * cvmx_bgx#_cmr#_tx_stat0
 */
union cvmx_bgxx_cmrx_tx_stat0 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat0_s {
		u64 reserved_48_63 : 16;
		u64 xscol : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat0_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat0_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat0_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat0_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat0 cvmx_bgxx_cmrx_tx_stat0_t;

/**
 * cvmx_bgx#_cmr#_tx_stat1
 */
union cvmx_bgxx_cmrx_tx_stat1 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat1_s {
		u64 reserved_48_63 : 16;
		u64 xsdef : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat1_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat1_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat1_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat1_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat1 cvmx_bgxx_cmrx_tx_stat1_t;

/**
 * cvmx_bgx#_cmr#_tx_stat10
 */
union cvmx_bgxx_cmrx_tx_stat10 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat10_s {
		u64 reserved_48_63 : 16;
		u64 hist4 : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat10_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat10_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat10_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat10_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat10 cvmx_bgxx_cmrx_tx_stat10_t;

/**
 * cvmx_bgx#_cmr#_tx_stat11
 */
union cvmx_bgxx_cmrx_tx_stat11 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat11_s {
		u64 reserved_48_63 : 16;
		u64 hist5 : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat11_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat11_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat11_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat11_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat11 cvmx_bgxx_cmrx_tx_stat11_t;

/**
 * cvmx_bgx#_cmr#_tx_stat12
 */
union cvmx_bgxx_cmrx_tx_stat12 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat12_s {
		u64 reserved_48_63 : 16;
		u64 hist6 : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat12_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat12_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat12_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat12_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat12 cvmx_bgxx_cmrx_tx_stat12_t;

/**
 * cvmx_bgx#_cmr#_tx_stat13
 */
union cvmx_bgxx_cmrx_tx_stat13 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat13_s {
		u64 reserved_48_63 : 16;
		u64 hist7 : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat13_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat13_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat13_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat13_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat13 cvmx_bgxx_cmrx_tx_stat13_t;

/**
 * cvmx_bgx#_cmr#_tx_stat14
 */
union cvmx_bgxx_cmrx_tx_stat14 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat14_s {
		u64 reserved_48_63 : 16;
		u64 bcst : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat14_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat14_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat14_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat14_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat14 cvmx_bgxx_cmrx_tx_stat14_t;

/**
 * cvmx_bgx#_cmr#_tx_stat15
 */
union cvmx_bgxx_cmrx_tx_stat15 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat15_s {
		u64 reserved_48_63 : 16;
		u64 mcst : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat15_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat15_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat15_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat15_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat15 cvmx_bgxx_cmrx_tx_stat15_t;

/**
 * cvmx_bgx#_cmr#_tx_stat16
 */
union cvmx_bgxx_cmrx_tx_stat16 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat16_s {
		u64 reserved_48_63 : 16;
		u64 undflw : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat16_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat16_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat16_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat16_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat16 cvmx_bgxx_cmrx_tx_stat16_t;

/**
 * cvmx_bgx#_cmr#_tx_stat17
 */
union cvmx_bgxx_cmrx_tx_stat17 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat17_s {
		u64 reserved_48_63 : 16;
		u64 ctl : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat17_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat17_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat17_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat17_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat17 cvmx_bgxx_cmrx_tx_stat17_t;

/**
 * cvmx_bgx#_cmr#_tx_stat2
 */
union cvmx_bgxx_cmrx_tx_stat2 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat2_s {
		u64 reserved_48_63 : 16;
		u64 mcol : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat2_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat2_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat2_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat2_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat2 cvmx_bgxx_cmrx_tx_stat2_t;

/**
 * cvmx_bgx#_cmr#_tx_stat3
 */
union cvmx_bgxx_cmrx_tx_stat3 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat3_s {
		u64 reserved_48_63 : 16;
		u64 scol : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat3_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat3_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat3_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat3_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat3 cvmx_bgxx_cmrx_tx_stat3_t;

/**
 * cvmx_bgx#_cmr#_tx_stat4
 */
union cvmx_bgxx_cmrx_tx_stat4 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat4_s {
		u64 reserved_48_63 : 16;
		u64 octs : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat4_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat4_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat4_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat4_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat4 cvmx_bgxx_cmrx_tx_stat4_t;

/**
 * cvmx_bgx#_cmr#_tx_stat5
 */
union cvmx_bgxx_cmrx_tx_stat5 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat5_s {
		u64 reserved_48_63 : 16;
		u64 pkts : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat5_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat5_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat5_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat5_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat5 cvmx_bgxx_cmrx_tx_stat5_t;

/**
 * cvmx_bgx#_cmr#_tx_stat6
 */
union cvmx_bgxx_cmrx_tx_stat6 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat6_s {
		u64 reserved_48_63 : 16;
		u64 hist0 : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat6_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat6_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat6_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat6_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat6 cvmx_bgxx_cmrx_tx_stat6_t;

/**
 * cvmx_bgx#_cmr#_tx_stat7
 */
union cvmx_bgxx_cmrx_tx_stat7 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat7_s {
		u64 reserved_48_63 : 16;
		u64 hist1 : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat7_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat7_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat7_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat7_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat7 cvmx_bgxx_cmrx_tx_stat7_t;

/**
 * cvmx_bgx#_cmr#_tx_stat8
 */
union cvmx_bgxx_cmrx_tx_stat8 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat8_s {
		u64 reserved_48_63 : 16;
		u64 hist2 : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat8_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat8_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat8_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat8_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat8 cvmx_bgxx_cmrx_tx_stat8_t;

/**
 * cvmx_bgx#_cmr#_tx_stat9
 */
union cvmx_bgxx_cmrx_tx_stat9 {
	u64 u64;
	struct cvmx_bgxx_cmrx_tx_stat9_s {
		u64 reserved_48_63 : 16;
		u64 hist3 : 48;
	} s;
	struct cvmx_bgxx_cmrx_tx_stat9_s cn73xx;
	struct cvmx_bgxx_cmrx_tx_stat9_s cn78xx;
	struct cvmx_bgxx_cmrx_tx_stat9_s cn78xxp1;
	struct cvmx_bgxx_cmrx_tx_stat9_s cnf75xx;
};

typedef union cvmx_bgxx_cmrx_tx_stat9 cvmx_bgxx_cmrx_tx_stat9_t;

/**
 * cvmx_bgx#_cmr_bad
 */
union cvmx_bgxx_cmr_bad {
	u64 u64;
	struct cvmx_bgxx_cmr_bad_s {
		u64 reserved_1_63 : 63;
		u64 rxb_nxl : 1;
	} s;
	struct cvmx_bgxx_cmr_bad_s cn73xx;
	struct cvmx_bgxx_cmr_bad_s cn78xx;
	struct cvmx_bgxx_cmr_bad_s cn78xxp1;
	struct cvmx_bgxx_cmr_bad_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_bad cvmx_bgxx_cmr_bad_t;

/**
 * cvmx_bgx#_cmr_bist_status
 */
union cvmx_bgxx_cmr_bist_status {
	u64 u64;
	struct cvmx_bgxx_cmr_bist_status_s {
		u64 reserved_25_63 : 39;
		u64 status : 25;
	} s;
	struct cvmx_bgxx_cmr_bist_status_s cn73xx;
	struct cvmx_bgxx_cmr_bist_status_s cn78xx;
	struct cvmx_bgxx_cmr_bist_status_s cn78xxp1;
	struct cvmx_bgxx_cmr_bist_status_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_bist_status cvmx_bgxx_cmr_bist_status_t;

/**
 * cvmx_bgx#_cmr_chan_msk_and
 */
union cvmx_bgxx_cmr_chan_msk_and {
	u64 u64;
	struct cvmx_bgxx_cmr_chan_msk_and_s {
		u64 msk_and : 64;
	} s;
	struct cvmx_bgxx_cmr_chan_msk_and_s cn73xx;
	struct cvmx_bgxx_cmr_chan_msk_and_s cn78xx;
	struct cvmx_bgxx_cmr_chan_msk_and_s cn78xxp1;
	struct cvmx_bgxx_cmr_chan_msk_and_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_chan_msk_and cvmx_bgxx_cmr_chan_msk_and_t;

/**
 * cvmx_bgx#_cmr_chan_msk_or
 */
union cvmx_bgxx_cmr_chan_msk_or {
	u64 u64;
	struct cvmx_bgxx_cmr_chan_msk_or_s {
		u64 msk_or : 64;
	} s;
	struct cvmx_bgxx_cmr_chan_msk_or_s cn73xx;
	struct cvmx_bgxx_cmr_chan_msk_or_s cn78xx;
	struct cvmx_bgxx_cmr_chan_msk_or_s cn78xxp1;
	struct cvmx_bgxx_cmr_chan_msk_or_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_chan_msk_or cvmx_bgxx_cmr_chan_msk_or_t;

/**
 * cvmx_bgx#_cmr_eco
 */
union cvmx_bgxx_cmr_eco {
	u64 u64;
	struct cvmx_bgxx_cmr_eco_s {
		u64 eco_ro : 32;
		u64 eco_rw : 32;
	} s;
	struct cvmx_bgxx_cmr_eco_s cn73xx;
	struct cvmx_bgxx_cmr_eco_s cn78xx;
	struct cvmx_bgxx_cmr_eco_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_eco cvmx_bgxx_cmr_eco_t;

/**
 * cvmx_bgx#_cmr_global_config
 *
 * These registers configure the global CMR, PCS, and MAC.
 *
 */
union cvmx_bgxx_cmr_global_config {
	u64 u64;
	struct cvmx_bgxx_cmr_global_config_s {
		u64 reserved_5_63 : 59;
		u64 cmr_mix1_reset : 1;
		u64 cmr_mix0_reset : 1;
		u64 cmr_x2p_reset : 1;
		u64 bgx_clk_enable : 1;
		u64 pmux_sds_sel : 1;
	} s;
	struct cvmx_bgxx_cmr_global_config_s cn73xx;
	struct cvmx_bgxx_cmr_global_config_s cn78xx;
	struct cvmx_bgxx_cmr_global_config_s cn78xxp1;
	struct cvmx_bgxx_cmr_global_config_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_global_config cvmx_bgxx_cmr_global_config_t;

/**
 * cvmx_bgx#_cmr_mem_ctrl
 */
union cvmx_bgxx_cmr_mem_ctrl {
	u64 u64;
	struct cvmx_bgxx_cmr_mem_ctrl_s {
		u64 reserved_24_63 : 40;
		u64 txb_skid_synd : 2;
		u64 txb_skid_cor_dis : 1;
		u64 txb_fif_bk1_syn : 2;
		u64 txb_fif_bk1_cdis : 1;
		u64 txb_fif_bk0_syn : 2;
		u64 txb_fif_bk0_cdis : 1;
		u64 rxb_skid_synd : 2;
		u64 rxb_skid_cor_dis : 1;
		u64 rxb_fif_bk1_syn1 : 2;
		u64 rxb_fif_bk1_cdis1 : 1;
		u64 rxb_fif_bk1_syn0 : 2;
		u64 rxb_fif_bk1_cdis0 : 1;
		u64 rxb_fif_bk0_syn1 : 2;
		u64 rxb_fif_bk0_cdis1 : 1;
		u64 rxb_fif_bk0_syn0 : 2;
		u64 rxb_fif_bk0_cdis0 : 1;
	} s;
	struct cvmx_bgxx_cmr_mem_ctrl_s cn73xx;
	struct cvmx_bgxx_cmr_mem_ctrl_s cn78xx;
	struct cvmx_bgxx_cmr_mem_ctrl_s cn78xxp1;
	struct cvmx_bgxx_cmr_mem_ctrl_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_mem_ctrl cvmx_bgxx_cmr_mem_ctrl_t;

/**
 * cvmx_bgx#_cmr_mem_int
 */
union cvmx_bgxx_cmr_mem_int {
	u64 u64;
	struct cvmx_bgxx_cmr_mem_int_s {
		u64 reserved_18_63 : 46;
		u64 smu_in_overfl : 1;
		u64 gmp_in_overfl : 1;
		u64 txb_skid_sbe : 1;
		u64 txb_skid_dbe : 1;
		u64 txb_fif_bk1_sbe : 1;
		u64 txb_fif_bk1_dbe : 1;
		u64 txb_fif_bk0_sbe : 1;
		u64 txb_fif_bk0_dbe : 1;
		u64 rxb_skid_sbe : 1;
		u64 rxb_skid_dbe : 1;
		u64 rxb_fif_bk1_sbe1 : 1;
		u64 rxb_fif_bk1_dbe1 : 1;
		u64 rxb_fif_bk1_sbe0 : 1;
		u64 rxb_fif_bk1_dbe0 : 1;
		u64 rxb_fif_bk0_sbe1 : 1;
		u64 rxb_fif_bk0_dbe1 : 1;
		u64 rxb_fif_bk0_sbe0 : 1;
		u64 rxb_fif_bk0_dbe0 : 1;
	} s;
	struct cvmx_bgxx_cmr_mem_int_s cn73xx;
	struct cvmx_bgxx_cmr_mem_int_s cn78xx;
	struct cvmx_bgxx_cmr_mem_int_s cn78xxp1;
	struct cvmx_bgxx_cmr_mem_int_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_mem_int cvmx_bgxx_cmr_mem_int_t;

/**
 * cvmx_bgx#_cmr_nxc_adr
 */
union cvmx_bgxx_cmr_nxc_adr {
	u64 u64;
	struct cvmx_bgxx_cmr_nxc_adr_s {
		u64 reserved_16_63 : 48;
		u64 lmac_id : 4;
		u64 channel : 12;
	} s;
	struct cvmx_bgxx_cmr_nxc_adr_s cn73xx;
	struct cvmx_bgxx_cmr_nxc_adr_s cn78xx;
	struct cvmx_bgxx_cmr_nxc_adr_s cn78xxp1;
	struct cvmx_bgxx_cmr_nxc_adr_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_nxc_adr cvmx_bgxx_cmr_nxc_adr_t;

/**
 * cvmx_bgx#_cmr_rx_adr#_cam
 *
 * These registers provide access to the 32 DMAC CAM entries in BGX.
 *
 */
union cvmx_bgxx_cmr_rx_adrx_cam {
	u64 u64;
	struct cvmx_bgxx_cmr_rx_adrx_cam_s {
		u64 reserved_54_63 : 10;
		u64 id : 2;
		u64 reserved_49_51 : 3;
		u64 en : 1;
		u64 adr : 48;
	} s;
	struct cvmx_bgxx_cmr_rx_adrx_cam_s cn73xx;
	struct cvmx_bgxx_cmr_rx_adrx_cam_s cn78xx;
	struct cvmx_bgxx_cmr_rx_adrx_cam_s cn78xxp1;
	struct cvmx_bgxx_cmr_rx_adrx_cam_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_rx_adrx_cam cvmx_bgxx_cmr_rx_adrx_cam_t;

/**
 * cvmx_bgx#_cmr_rx_lmacs
 */
union cvmx_bgxx_cmr_rx_lmacs {
	u64 u64;
	struct cvmx_bgxx_cmr_rx_lmacs_s {
		u64 reserved_3_63 : 61;
		u64 lmacs : 3;
	} s;
	struct cvmx_bgxx_cmr_rx_lmacs_s cn73xx;
	struct cvmx_bgxx_cmr_rx_lmacs_s cn78xx;
	struct cvmx_bgxx_cmr_rx_lmacs_s cn78xxp1;
	struct cvmx_bgxx_cmr_rx_lmacs_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_rx_lmacs cvmx_bgxx_cmr_rx_lmacs_t;

/**
 * cvmx_bgx#_cmr_rx_ovr_bp
 *
 * BGX()_CMR_RX_OVR_BP[EN<0>] must be set to one and BGX()_CMR_RX_OVR_BP[BP<0>] must be
 * cleared to zero (to forcibly disable hardware-automatic 802.3 PAUSE packet generation) with
 * the HiGig2 Protocol when BGX()_SMU()_HG2_CONTROL[HG2TX_EN]=0. (The HiGig2 protocol is
 * indicated by BGX()_SMU()_TX_CTL[HG_EN]=1 and BGX()_SMU()_RX_UDD_SKP[LEN]=16).
 * Hardware can only auto-generate backpressure through HiGig2 messages (optionally, when
 * BGX()_SMU()_HG2_CONTROL[HG2TX_EN]=1) with the HiGig2 protocol.
 */
union cvmx_bgxx_cmr_rx_ovr_bp {
	u64 u64;
	struct cvmx_bgxx_cmr_rx_ovr_bp_s {
		u64 reserved_12_63 : 52;
		u64 en : 4;
		u64 bp : 4;
		u64 ign_fifo_bp : 4;
	} s;
	struct cvmx_bgxx_cmr_rx_ovr_bp_s cn73xx;
	struct cvmx_bgxx_cmr_rx_ovr_bp_s cn78xx;
	struct cvmx_bgxx_cmr_rx_ovr_bp_s cn78xxp1;
	struct cvmx_bgxx_cmr_rx_ovr_bp_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_rx_ovr_bp cvmx_bgxx_cmr_rx_ovr_bp_t;

/**
 * cvmx_bgx#_cmr_tx_lmacs
 *
 * This register sets the number of LMACs allowed on the TX interface. The value is important for
 * defining the partitioning of the transmit FIFO.
 */
union cvmx_bgxx_cmr_tx_lmacs {
	u64 u64;
	struct cvmx_bgxx_cmr_tx_lmacs_s {
		u64 reserved_3_63 : 61;
		u64 lmacs : 3;
	} s;
	struct cvmx_bgxx_cmr_tx_lmacs_s cn73xx;
	struct cvmx_bgxx_cmr_tx_lmacs_s cn78xx;
	struct cvmx_bgxx_cmr_tx_lmacs_s cn78xxp1;
	struct cvmx_bgxx_cmr_tx_lmacs_s cnf75xx;
};

typedef union cvmx_bgxx_cmr_tx_lmacs cvmx_bgxx_cmr_tx_lmacs_t;

/**
 * cvmx_bgx#_gmp_gmi_prt#_cfg
 *
 * This register controls the configuration of the LMAC.
 *
 */
union cvmx_bgxx_gmp_gmi_prtx_cfg {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_prtx_cfg_s {
		u64 reserved_14_63 : 50;
		u64 tx_idle : 1;
		u64 rx_idle : 1;
		u64 reserved_9_11 : 3;
		u64 speed_msb : 1;
		u64 reserved_4_7 : 4;
		u64 slottime : 1;
		u64 duplex : 1;
		u64 speed : 1;
		u64 reserved_0_0 : 1;
	} s;
	struct cvmx_bgxx_gmp_gmi_prtx_cfg_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_prtx_cfg_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_prtx_cfg_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_prtx_cfg_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_prtx_cfg cvmx_bgxx_gmp_gmi_prtx_cfg_t;

/**
 * cvmx_bgx#_gmp_gmi_rx#_decision
 *
 * This register specifies the byte count used to determine when to accept or to filter a packet.
 * As each byte in a packet is received by GMI, the L2 byte count is compared against
 * [CNT]. In normal operation, the L2 header begins after the
 * PREAMBLE + SFD (BGX()_GMP_GMI_RX()_FRM_CTL[PRE_CHK] = 1) and any optional UDD skip
 * data (BGX()_GMP_GMI_RX()_UDD_SKP[LEN]).
 */
union cvmx_bgxx_gmp_gmi_rxx_decision {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_rxx_decision_s {
		u64 reserved_5_63 : 59;
		u64 cnt : 5;
	} s;
	struct cvmx_bgxx_gmp_gmi_rxx_decision_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_rxx_decision_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_rxx_decision_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_rxx_decision_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_rxx_decision cvmx_bgxx_gmp_gmi_rxx_decision_t;

/**
 * cvmx_bgx#_gmp_gmi_rx#_frm_chk
 */
union cvmx_bgxx_gmp_gmi_rxx_frm_chk {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_rxx_frm_chk_s {
		u64 reserved_9_63 : 55;
		u64 skperr : 1;
		u64 rcverr : 1;
		u64 reserved_5_6 : 2;
		u64 fcserr : 1;
		u64 jabber : 1;
		u64 reserved_2_2 : 1;
		u64 carext : 1;
		u64 minerr : 1;
	} s;
	struct cvmx_bgxx_gmp_gmi_rxx_frm_chk_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_rxx_frm_chk_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_rxx_frm_chk_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_rxx_frm_chk_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_rxx_frm_chk cvmx_bgxx_gmp_gmi_rxx_frm_chk_t;

/**
 * cvmx_bgx#_gmp_gmi_rx#_frm_ctl
 *
 * This register controls the handling of the frames.
 * The [CTL_BCK] and [CTL_DRP] bits control how the hardware handles incoming PAUSE packets. The
 * most
 * common modes of operation:
 * _ [CTL_BCK] = 1, [CTL_DRP] = 1: hardware handles everything.
 * _ [CTL_BCK] = 0, [CTL_DRP] = 0: software sees all PAUSE frames.
 * _ [CTL_BCK] = 0, [CTL_DRP] = 1: all PAUSE frames are completely ignored.
 *
 * These control bits should be set to [CTL_BCK] = 0, [CTL_DRP] = 0 in half-duplex mode. Since
 * PAUSE
 * packets only apply to full duplex operation, any PAUSE packet would constitute an exception
 * which should be handled by the processing cores. PAUSE packets should not be forwarded.
 */
union cvmx_bgxx_gmp_gmi_rxx_frm_ctl {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_rxx_frm_ctl_s {
		u64 reserved_13_63 : 51;
		u64 ptp_mode : 1;
		u64 reserved_11_11 : 1;
		u64 null_dis : 1;
		u64 pre_align : 1;
		u64 reserved_7_8 : 2;
		u64 pre_free : 1;
		u64 ctl_smac : 1;
		u64 ctl_mcst : 1;
		u64 ctl_bck : 1;
		u64 ctl_drp : 1;
		u64 pre_strp : 1;
		u64 pre_chk : 1;
	} s;
	struct cvmx_bgxx_gmp_gmi_rxx_frm_ctl_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_rxx_frm_ctl_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_rxx_frm_ctl_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_rxx_frm_ctl_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_rxx_frm_ctl cvmx_bgxx_gmp_gmi_rxx_frm_ctl_t;

/**
 * cvmx_bgx#_gmp_gmi_rx#_ifg
 *
 * This register specifies the minimum number of interframe-gap (IFG) cycles between packets.
 *
 */
union cvmx_bgxx_gmp_gmi_rxx_ifg {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_rxx_ifg_s {
		u64 reserved_4_63 : 60;
		u64 ifg : 4;
	} s;
	struct cvmx_bgxx_gmp_gmi_rxx_ifg_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_rxx_ifg_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_rxx_ifg_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_rxx_ifg_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_rxx_ifg cvmx_bgxx_gmp_gmi_rxx_ifg_t;

/**
 * cvmx_bgx#_gmp_gmi_rx#_int
 *
 * '"These registers allow interrupts to be sent to the control processor.
 * * Exception conditions <10:0> can also set the rcv/opcode in the received packet's work-queue
 * entry. BGX()_GMP_GMI_RX()_FRM_CHK provides a bit mask for configuring which conditions
 * set the error.
 * In half duplex operation, the expectation is that collisions will appear as either MINERR or
 * CAREXT errors.'
 */
union cvmx_bgxx_gmp_gmi_rxx_int {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_rxx_int_s {
		u64 reserved_12_63 : 52;
		u64 ifgerr : 1;
		u64 coldet : 1;
		u64 falerr : 1;
		u64 rsverr : 1;
		u64 pcterr : 1;
		u64 ovrerr : 1;
		u64 skperr : 1;
		u64 rcverr : 1;
		u64 fcserr : 1;
		u64 jabber : 1;
		u64 carext : 1;
		u64 minerr : 1;
	} s;
	struct cvmx_bgxx_gmp_gmi_rxx_int_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_rxx_int_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_rxx_int_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_rxx_int_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_rxx_int cvmx_bgxx_gmp_gmi_rxx_int_t;

/**
 * cvmx_bgx#_gmp_gmi_rx#_jabber
 *
 * This register specifies the maximum size for packets, beyond which the GMI truncates.
 *
 */
union cvmx_bgxx_gmp_gmi_rxx_jabber {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_rxx_jabber_s {
		u64 reserved_16_63 : 48;
		u64 cnt : 16;
	} s;
	struct cvmx_bgxx_gmp_gmi_rxx_jabber_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_rxx_jabber_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_rxx_jabber_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_rxx_jabber_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_rxx_jabber cvmx_bgxx_gmp_gmi_rxx_jabber_t;

/**
 * cvmx_bgx#_gmp_gmi_rx#_udd_skp
 *
 * This register specifies the amount of user-defined data (UDD) added before the start of the
 * L2C data.
 */
union cvmx_bgxx_gmp_gmi_rxx_udd_skp {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_rxx_udd_skp_s {
		u64 reserved_9_63 : 55;
		u64 fcssel : 1;
		u64 reserved_7_7 : 1;
		u64 len : 7;
	} s;
	struct cvmx_bgxx_gmp_gmi_rxx_udd_skp_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_rxx_udd_skp_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_rxx_udd_skp_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_rxx_udd_skp_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_rxx_udd_skp cvmx_bgxx_gmp_gmi_rxx_udd_skp_t;

/**
 * cvmx_bgx#_gmp_gmi_smac#
 */
union cvmx_bgxx_gmp_gmi_smacx {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_smacx_s {
		u64 reserved_48_63 : 16;
		u64 smac : 48;
	} s;
	struct cvmx_bgxx_gmp_gmi_smacx_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_smacx_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_smacx_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_smacx_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_smacx cvmx_bgxx_gmp_gmi_smacx_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_append
 */
union cvmx_bgxx_gmp_gmi_txx_append {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_append_s {
		u64 reserved_4_63 : 60;
		u64 force_fcs : 1;
		u64 fcs : 1;
		u64 pad : 1;
		u64 preamble : 1;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_append_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_append_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_append_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_append_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_append cvmx_bgxx_gmp_gmi_txx_append_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_burst
 */
union cvmx_bgxx_gmp_gmi_txx_burst {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_burst_s {
		u64 reserved_16_63 : 48;
		u64 burst : 16;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_burst_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_burst_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_burst_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_burst_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_burst cvmx_bgxx_gmp_gmi_txx_burst_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_ctl
 */
union cvmx_bgxx_gmp_gmi_txx_ctl {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_ctl_s {
		u64 reserved_2_63 : 62;
		u64 xsdef_en : 1;
		u64 xscol_en : 1;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_ctl_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_ctl_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_ctl_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_ctl_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_ctl cvmx_bgxx_gmp_gmi_txx_ctl_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_int
 */
union cvmx_bgxx_gmp_gmi_txx_int {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_int_s {
		u64 reserved_5_63 : 59;
		u64 ptp_lost : 1;
		u64 late_col : 1;
		u64 xsdef : 1;
		u64 xscol : 1;
		u64 undflw : 1;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_int_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_int_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_int_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_int_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_int cvmx_bgxx_gmp_gmi_txx_int_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_min_pkt
 */
union cvmx_bgxx_gmp_gmi_txx_min_pkt {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_min_pkt_s {
		u64 reserved_8_63 : 56;
		u64 min_size : 8;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_min_pkt_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_min_pkt_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_min_pkt_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_min_pkt_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_min_pkt cvmx_bgxx_gmp_gmi_txx_min_pkt_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_pause_pkt_interval
 *
 * This register specifies how often PAUSE packets are sent.
 *
 */
union cvmx_bgxx_gmp_gmi_txx_pause_pkt_interval {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_pause_pkt_interval_s {
		u64 reserved_16_63 : 48;
		u64 interval : 16;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_pause_pkt_interval_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_pause_pkt_interval_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_pause_pkt_interval_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_pause_pkt_interval_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_pause_pkt_interval cvmx_bgxx_gmp_gmi_txx_pause_pkt_interval_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_pause_pkt_time
 */
union cvmx_bgxx_gmp_gmi_txx_pause_pkt_time {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_pause_pkt_time_s {
		u64 reserved_16_63 : 48;
		u64 ptime : 16;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_pause_pkt_time_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_pause_pkt_time_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_pause_pkt_time_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_pause_pkt_time_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_pause_pkt_time cvmx_bgxx_gmp_gmi_txx_pause_pkt_time_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_pause_togo
 */
union cvmx_bgxx_gmp_gmi_txx_pause_togo {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_pause_togo_s {
		u64 reserved_16_63 : 48;
		u64 ptime : 16;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_pause_togo_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_pause_togo_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_pause_togo_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_pause_togo_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_pause_togo cvmx_bgxx_gmp_gmi_txx_pause_togo_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_pause_zero
 */
union cvmx_bgxx_gmp_gmi_txx_pause_zero {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_pause_zero_s {
		u64 reserved_1_63 : 63;
		u64 send : 1;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_pause_zero_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_pause_zero_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_pause_zero_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_pause_zero_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_pause_zero cvmx_bgxx_gmp_gmi_txx_pause_zero_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_sgmii_ctl
 */
union cvmx_bgxx_gmp_gmi_txx_sgmii_ctl {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_sgmii_ctl_s {
		u64 reserved_1_63 : 63;
		u64 align : 1;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_sgmii_ctl_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_sgmii_ctl_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_sgmii_ctl_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_sgmii_ctl_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_sgmii_ctl cvmx_bgxx_gmp_gmi_txx_sgmii_ctl_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_slot
 */
union cvmx_bgxx_gmp_gmi_txx_slot {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_slot_s {
		u64 reserved_10_63 : 54;
		u64 slot : 10;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_slot_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_slot_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_slot_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_slot_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_slot cvmx_bgxx_gmp_gmi_txx_slot_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_soft_pause
 */
union cvmx_bgxx_gmp_gmi_txx_soft_pause {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_soft_pause_s {
		u64 reserved_16_63 : 48;
		u64 ptime : 16;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_soft_pause_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_soft_pause_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_soft_pause_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_soft_pause_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_soft_pause cvmx_bgxx_gmp_gmi_txx_soft_pause_t;

/**
 * cvmx_bgx#_gmp_gmi_tx#_thresh
 */
union cvmx_bgxx_gmp_gmi_txx_thresh {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_txx_thresh_s {
		u64 reserved_11_63 : 53;
		u64 cnt : 11;
	} s;
	struct cvmx_bgxx_gmp_gmi_txx_thresh_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_txx_thresh_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_txx_thresh_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_txx_thresh_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_txx_thresh cvmx_bgxx_gmp_gmi_txx_thresh_t;

/**
 * cvmx_bgx#_gmp_gmi_tx_col_attempt
 */
union cvmx_bgxx_gmp_gmi_tx_col_attempt {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_tx_col_attempt_s {
		u64 reserved_5_63 : 59;
		u64 limit : 5;
	} s;
	struct cvmx_bgxx_gmp_gmi_tx_col_attempt_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_tx_col_attempt_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_tx_col_attempt_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_tx_col_attempt_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_tx_col_attempt cvmx_bgxx_gmp_gmi_tx_col_attempt_t;

/**
 * cvmx_bgx#_gmp_gmi_tx_ifg
 *
 * Consider the following when programming IFG1 and IFG2:
 * * For 10/100/1000 Mb/s half-duplex systems that require IEEE 802.3 compatibility, IFG1 must be
 * in the range of 1-8, IFG2 must be in the range of 4-12, and the IFG1 + IFG2 sum must be 12.
 * * For 10/100/1000 Mb/s full-duplex systems that require IEEE 802.3 compatibility, IFG1 must be
 * in the range of 1-11, IFG2 must be in the range of 1-11, and the IFG1 + IFG2 sum must be 12.
 * For all other systems, IFG1 and IFG2 can be any value in the range of 1-15, allowing for a
 * total possible IFG sum of 2-30.
 */
union cvmx_bgxx_gmp_gmi_tx_ifg {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_tx_ifg_s {
		u64 reserved_8_63 : 56;
		u64 ifg2 : 4;
		u64 ifg1 : 4;
	} s;
	struct cvmx_bgxx_gmp_gmi_tx_ifg_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_tx_ifg_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_tx_ifg_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_tx_ifg_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_tx_ifg cvmx_bgxx_gmp_gmi_tx_ifg_t;

/**
 * cvmx_bgx#_gmp_gmi_tx_jam
 *
 * This register provides the pattern used in JAM bytes.
 *
 */
union cvmx_bgxx_gmp_gmi_tx_jam {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_tx_jam_s {
		u64 reserved_8_63 : 56;
		u64 jam : 8;
	} s;
	struct cvmx_bgxx_gmp_gmi_tx_jam_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_tx_jam_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_tx_jam_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_tx_jam_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_tx_jam cvmx_bgxx_gmp_gmi_tx_jam_t;

/**
 * cvmx_bgx#_gmp_gmi_tx_lfsr
 *
 * This register shows the contents of the linear feedback shift register (LFSR), which is used
 * to implement truncated binary exponential backoff.
 */
union cvmx_bgxx_gmp_gmi_tx_lfsr {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_tx_lfsr_s {
		u64 reserved_16_63 : 48;
		u64 lfsr : 16;
	} s;
	struct cvmx_bgxx_gmp_gmi_tx_lfsr_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_tx_lfsr_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_tx_lfsr_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_tx_lfsr_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_tx_lfsr cvmx_bgxx_gmp_gmi_tx_lfsr_t;

/**
 * cvmx_bgx#_gmp_gmi_tx_pause_pkt_dmac
 */
union cvmx_bgxx_gmp_gmi_tx_pause_pkt_dmac {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_tx_pause_pkt_dmac_s {
		u64 reserved_48_63 : 16;
		u64 dmac : 48;
	} s;
	struct cvmx_bgxx_gmp_gmi_tx_pause_pkt_dmac_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_tx_pause_pkt_dmac_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_tx_pause_pkt_dmac_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_tx_pause_pkt_dmac_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_tx_pause_pkt_dmac cvmx_bgxx_gmp_gmi_tx_pause_pkt_dmac_t;

/**
 * cvmx_bgx#_gmp_gmi_tx_pause_pkt_type
 *
 * This register provides the PTYPE field that is placed in outbound PAUSE packets.
 *
 */
union cvmx_bgxx_gmp_gmi_tx_pause_pkt_type {
	u64 u64;
	struct cvmx_bgxx_gmp_gmi_tx_pause_pkt_type_s {
		u64 reserved_16_63 : 48;
		u64 ptype : 16;
	} s;
	struct cvmx_bgxx_gmp_gmi_tx_pause_pkt_type_s cn73xx;
	struct cvmx_bgxx_gmp_gmi_tx_pause_pkt_type_s cn78xx;
	struct cvmx_bgxx_gmp_gmi_tx_pause_pkt_type_s cn78xxp1;
	struct cvmx_bgxx_gmp_gmi_tx_pause_pkt_type_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_gmi_tx_pause_pkt_type cvmx_bgxx_gmp_gmi_tx_pause_pkt_type_t;

/**
 * cvmx_bgx#_gmp_pcs_an#_adv
 */
union cvmx_bgxx_gmp_pcs_anx_adv {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_anx_adv_s {
		u64 reserved_16_63 : 48;
		u64 np : 1;
		u64 reserved_14_14 : 1;
		u64 rem_flt : 2;
		u64 reserved_9_11 : 3;
		u64 pause : 2;
		u64 hfd : 1;
		u64 fd : 1;
		u64 reserved_0_4 : 5;
	} s;
	struct cvmx_bgxx_gmp_pcs_anx_adv_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_anx_adv_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_anx_adv_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_anx_adv_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_anx_adv cvmx_bgxx_gmp_pcs_anx_adv_t;

/**
 * cvmx_bgx#_gmp_pcs_an#_ext_st
 */
union cvmx_bgxx_gmp_pcs_anx_ext_st {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_anx_ext_st_s {
		u64 reserved_16_63 : 48;
		u64 thou_xfd : 1;
		u64 thou_xhd : 1;
		u64 thou_tfd : 1;
		u64 thou_thd : 1;
		u64 reserved_0_11 : 12;
	} s;
	struct cvmx_bgxx_gmp_pcs_anx_ext_st_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_anx_ext_st_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_anx_ext_st_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_anx_ext_st_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_anx_ext_st cvmx_bgxx_gmp_pcs_anx_ext_st_t;

/**
 * cvmx_bgx#_gmp_pcs_an#_lp_abil
 *
 * This is the autonegotiation link partner ability register 5 as per IEEE 802.3, Clause 37.
 *
 */
union cvmx_bgxx_gmp_pcs_anx_lp_abil {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_anx_lp_abil_s {
		u64 reserved_16_63 : 48;
		u64 np : 1;
		u64 ack : 1;
		u64 rem_flt : 2;
		u64 reserved_9_11 : 3;
		u64 pause : 2;
		u64 hfd : 1;
		u64 fd : 1;
		u64 reserved_0_4 : 5;
	} s;
	struct cvmx_bgxx_gmp_pcs_anx_lp_abil_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_anx_lp_abil_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_anx_lp_abil_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_anx_lp_abil_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_anx_lp_abil cvmx_bgxx_gmp_pcs_anx_lp_abil_t;

/**
 * cvmx_bgx#_gmp_pcs_an#_results
 *
 * This register is not valid when BGX()_GMP_PCS_MISC()_CTL[AN_OVRD] is set to 1. If
 * BGX()_GMP_PCS_MISC()_CTL[AN_OVRD] is set to 0 and
 * BGX()_GMP_PCS_AN()_RESULTS[AN_CPT] is set to 1, this register is valid.
 */
union cvmx_bgxx_gmp_pcs_anx_results {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_anx_results_s {
		u64 reserved_7_63 : 57;
		u64 pause : 2;
		u64 spd : 2;
		u64 an_cpt : 1;
		u64 dup : 1;
		u64 link_ok : 1;
	} s;
	struct cvmx_bgxx_gmp_pcs_anx_results_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_anx_results_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_anx_results_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_anx_results_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_anx_results cvmx_bgxx_gmp_pcs_anx_results_t;

/**
 * cvmx_bgx#_gmp_pcs_int#
 */
union cvmx_bgxx_gmp_pcs_intx {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_intx_s {
		u64 reserved_13_63 : 51;
		u64 dbg_sync : 1;
		u64 dup : 1;
		u64 sync_bad : 1;
		u64 an_bad : 1;
		u64 rxlock : 1;
		u64 rxbad : 1;
		u64 rxerr : 1;
		u64 txbad : 1;
		u64 txfifo : 1;
		u64 txfifu : 1;
		u64 an_err : 1;
		u64 xmit : 1;
		u64 lnkspd : 1;
	} s;
	struct cvmx_bgxx_gmp_pcs_intx_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_intx_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_intx_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_intx_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_intx cvmx_bgxx_gmp_pcs_intx_t;

/**
 * cvmx_bgx#_gmp_pcs_link#_timer
 *
 * This is the 1.6 ms nominal link timer register.
 *
 */
union cvmx_bgxx_gmp_pcs_linkx_timer {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_linkx_timer_s {
		u64 reserved_16_63 : 48;
		u64 count : 16;
	} s;
	struct cvmx_bgxx_gmp_pcs_linkx_timer_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_linkx_timer_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_linkx_timer_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_linkx_timer_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_linkx_timer cvmx_bgxx_gmp_pcs_linkx_timer_t;

/**
 * cvmx_bgx#_gmp_pcs_misc#_ctl
 */
union cvmx_bgxx_gmp_pcs_miscx_ctl {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_miscx_ctl_s {
		u64 reserved_13_63 : 51;
		u64 sgmii : 1;
		u64 gmxeno : 1;
		u64 loopbck2 : 1;
		u64 mac_phy : 1;
		u64 mode : 1;
		u64 an_ovrd : 1;
		u64 samp_pt : 7;
	} s;
	struct cvmx_bgxx_gmp_pcs_miscx_ctl_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_miscx_ctl_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_miscx_ctl_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_miscx_ctl_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_miscx_ctl cvmx_bgxx_gmp_pcs_miscx_ctl_t;

/**
 * cvmx_bgx#_gmp_pcs_mr#_control
 */
union cvmx_bgxx_gmp_pcs_mrx_control {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_mrx_control_s {
		u64 reserved_16_63 : 48;
		u64 reset : 1;
		u64 loopbck1 : 1;
		u64 spdlsb : 1;
		u64 an_en : 1;
		u64 pwr_dn : 1;
		u64 reserved_10_10 : 1;
		u64 rst_an : 1;
		u64 dup : 1;
		u64 coltst : 1;
		u64 spdmsb : 1;
		u64 uni : 1;
		u64 reserved_0_4 : 5;
	} s;
	struct cvmx_bgxx_gmp_pcs_mrx_control_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_mrx_control_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_mrx_control_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_mrx_control_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_mrx_control cvmx_bgxx_gmp_pcs_mrx_control_t;

/**
 * cvmx_bgx#_gmp_pcs_mr#_status
 *
 * Bits <15:9> in this register indicate the ability to operate when
 * BGX()_GMP_PCS_MISC()_CTL[MAC_PHY] is set to MAC mode. Bits <15:9> are always read as
 * 0, indicating that the chip cannot operate in the corresponding modes. The field [RM_FLT] is a
 * 'don't care' when the selected mode is SGMII.
 */
union cvmx_bgxx_gmp_pcs_mrx_status {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_mrx_status_s {
		u64 reserved_16_63 : 48;
		u64 hun_t4 : 1;
		u64 hun_xfd : 1;
		u64 hun_xhd : 1;
		u64 ten_fd : 1;
		u64 ten_hd : 1;
		u64 hun_t2fd : 1;
		u64 hun_t2hd : 1;
		u64 ext_st : 1;
		u64 reserved_7_7 : 1;
		u64 prb_sup : 1;
		u64 an_cpt : 1;
		u64 rm_flt : 1;
		u64 an_abil : 1;
		u64 lnk_st : 1;
		u64 reserved_1_1 : 1;
		u64 extnd : 1;
	} s;
	struct cvmx_bgxx_gmp_pcs_mrx_status_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_mrx_status_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_mrx_status_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_mrx_status_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_mrx_status cvmx_bgxx_gmp_pcs_mrx_status_t;

/**
 * cvmx_bgx#_gmp_pcs_rx#_states
 */
union cvmx_bgxx_gmp_pcs_rxx_states {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_rxx_states_s {
		u64 reserved_16_63 : 48;
		u64 rx_bad : 1;
		u64 rx_st : 5;
		u64 sync_bad : 1;
		u64 sync : 4;
		u64 an_bad : 1;
		u64 an_st : 4;
	} s;
	struct cvmx_bgxx_gmp_pcs_rxx_states_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_rxx_states_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_rxx_states_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_rxx_states_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_rxx_states cvmx_bgxx_gmp_pcs_rxx_states_t;

/**
 * cvmx_bgx#_gmp_pcs_rx#_sync
 */
union cvmx_bgxx_gmp_pcs_rxx_sync {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_rxx_sync_s {
		u64 reserved_2_63 : 62;
		u64 sync : 1;
		u64 bit_lock : 1;
	} s;
	struct cvmx_bgxx_gmp_pcs_rxx_sync_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_rxx_sync_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_rxx_sync_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_rxx_sync_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_rxx_sync cvmx_bgxx_gmp_pcs_rxx_sync_t;

/**
 * cvmx_bgx#_gmp_pcs_sgm#_an_adv
 *
 * This is the SGMII autonegotiation advertisement register (sent out as tx_Config_Reg<15:0> as
 * defined in IEEE 802.3 clause 37). This register is sent during autonegotiation if
 * BGX()_GMP_PCS_MISC()_CTL[MAC_PHY] is set (1 = PHY mode). If the bit is not set (0 =
 * MAC mode), then tx_Config_Reg<14> becomes ACK bit and tx_Config_Reg<0> is always 1. All other
 * bits in tx_Config_Reg sent will be 0. The PHY dictates the autonegotiation results.
 */
union cvmx_bgxx_gmp_pcs_sgmx_an_adv {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_sgmx_an_adv_s {
		u64 reserved_16_63 : 48;
		u64 link : 1;
		u64 ack : 1;
		u64 reserved_13_13 : 1;
		u64 dup : 1;
		u64 speed : 2;
		u64 reserved_1_9 : 9;
		u64 one : 1;
	} s;
	struct cvmx_bgxx_gmp_pcs_sgmx_an_adv_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_sgmx_an_adv_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_sgmx_an_adv_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_sgmx_an_adv_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_sgmx_an_adv cvmx_bgxx_gmp_pcs_sgmx_an_adv_t;

/**
 * cvmx_bgx#_gmp_pcs_sgm#_lp_adv
 *
 * This is the SGMII link partner advertisement register (received as rx_Config_Reg<15:0> as
 * defined in IEEE 802.3 clause 37).
 */
union cvmx_bgxx_gmp_pcs_sgmx_lp_adv {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_sgmx_lp_adv_s {
		u64 reserved_16_63 : 48;
		u64 link : 1;
		u64 reserved_13_14 : 2;
		u64 dup : 1;
		u64 speed : 2;
		u64 reserved_1_9 : 9;
		u64 one : 1;
	} s;
	struct cvmx_bgxx_gmp_pcs_sgmx_lp_adv_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_sgmx_lp_adv_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_sgmx_lp_adv_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_sgmx_lp_adv_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_sgmx_lp_adv cvmx_bgxx_gmp_pcs_sgmx_lp_adv_t;

/**
 * cvmx_bgx#_gmp_pcs_tx#_states
 */
union cvmx_bgxx_gmp_pcs_txx_states {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_txx_states_s {
		u64 reserved_7_63 : 57;
		u64 xmit : 2;
		u64 tx_bad : 1;
		u64 ord_st : 4;
	} s;
	struct cvmx_bgxx_gmp_pcs_txx_states_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_txx_states_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_txx_states_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_txx_states_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_txx_states cvmx_bgxx_gmp_pcs_txx_states_t;

/**
 * cvmx_bgx#_gmp_pcs_tx_rx#_polarity
 *
 * BGX()_GMP_PCS_TX_RX()_POLARITY[AUTORXPL] shows correct polarity needed on the link
 * receive path after code group synchronization is achieved.
 */
union cvmx_bgxx_gmp_pcs_tx_rxx_polarity {
	u64 u64;
	struct cvmx_bgxx_gmp_pcs_tx_rxx_polarity_s {
		u64 reserved_4_63 : 60;
		u64 rxovrd : 1;
		u64 autorxpl : 1;
		u64 rxplrt : 1;
		u64 txplrt : 1;
	} s;
	struct cvmx_bgxx_gmp_pcs_tx_rxx_polarity_s cn73xx;
	struct cvmx_bgxx_gmp_pcs_tx_rxx_polarity_s cn78xx;
	struct cvmx_bgxx_gmp_pcs_tx_rxx_polarity_s cn78xxp1;
	struct cvmx_bgxx_gmp_pcs_tx_rxx_polarity_s cnf75xx;
};

typedef union cvmx_bgxx_gmp_pcs_tx_rxx_polarity cvmx_bgxx_gmp_pcs_tx_rxx_polarity_t;

/**
 * cvmx_bgx#_smu#_cbfc_ctl
 */
union cvmx_bgxx_smux_cbfc_ctl {
	u64 u64;
	struct cvmx_bgxx_smux_cbfc_ctl_s {
		u64 phys_en : 16;
		u64 logl_en : 16;
		u64 reserved_4_31 : 28;
		u64 bck_en : 1;
		u64 drp_en : 1;
		u64 tx_en : 1;
		u64 rx_en : 1;
	} s;
	struct cvmx_bgxx_smux_cbfc_ctl_s cn73xx;
	struct cvmx_bgxx_smux_cbfc_ctl_s cn78xx;
	struct cvmx_bgxx_smux_cbfc_ctl_s cn78xxp1;
	struct cvmx_bgxx_smux_cbfc_ctl_s cnf75xx;
};

typedef union cvmx_bgxx_smux_cbfc_ctl cvmx_bgxx_smux_cbfc_ctl_t;

/**
 * cvmx_bgx#_smu#_ctrl
 */
union cvmx_bgxx_smux_ctrl {
	u64 u64;
	struct cvmx_bgxx_smux_ctrl_s {
		u64 reserved_2_63 : 62;
		u64 tx_idle : 1;
		u64 rx_idle : 1;
	} s;
	struct cvmx_bgxx_smux_ctrl_s cn73xx;
	struct cvmx_bgxx_smux_ctrl_s cn78xx;
	struct cvmx_bgxx_smux_ctrl_s cn78xxp1;
	struct cvmx_bgxx_smux_ctrl_s cnf75xx;
};

typedef union cvmx_bgxx_smux_ctrl cvmx_bgxx_smux_ctrl_t;

/**
 * cvmx_bgx#_smu#_ext_loopback
 *
 * In loopback mode, the IFG1+IFG2 of local and remote parties must match exactly; otherwise one
 * of the two sides' loopback FIFO will overrun: BGX()_SMU()_TX_INT[LB_OVRFLW].
 */
union cvmx_bgxx_smux_ext_loopback {
	u64 u64;
	struct cvmx_bgxx_smux_ext_loopback_s {
		u64 reserved_5_63 : 59;
		u64 en : 1;
		u64 thresh : 4;
	} s;
	struct cvmx_bgxx_smux_ext_loopback_s cn73xx;
	struct cvmx_bgxx_smux_ext_loopback_s cn78xx;
	struct cvmx_bgxx_smux_ext_loopback_s cn78xxp1;
	struct cvmx_bgxx_smux_ext_loopback_s cnf75xx;
};

typedef union cvmx_bgxx_smux_ext_loopback cvmx_bgxx_smux_ext_loopback_t;

/**
 * cvmx_bgx#_smu#_hg2_control
 *
 * HiGig2 TX- and RX-enable are normally set together for HiGig2 messaging. Setting just the TX
 * or RX bit results in only the HG2 message transmit or receive capability.
 *
 * Setting [PHYS_EN] and [LOGL_EN] to 1 allows link PAUSE or backpressure to PKO as per the
 * received HiGig2 message. Setting these fields to 0 disables link PAUSE and backpressure to PKO
 * in response to received messages.
 *
 * BGX()_SMU()_TX_CTL[HG_EN] must be set (to enable HiGig) whenever either [HG2TX_EN] or
 * [HG2RX_EN] are set. BGX()_SMU()_RX_UDD_SKP[LEN] must be set to 16 (to select HiGig2)
 * whenever either [HG2TX_EN] or [HG2RX_EN] are set.
 *
 * BGX()_CMR_RX_OVR_BP[EN]<0> must be set and BGX()_CMR_RX_OVR_BP[BP]<0> must be cleared
 * to 0 (to forcibly disable hardware-automatic 802.3 PAUSE packet generation) with the HiGig2
 * Protocol when [HG2TX_EN] = 0. (The HiGig2 protocol is indicated
 * by BGX()_SMU()_TX_CTL[HG_EN] = 1 and BGX()_SMU()_RX_UDD_SKP[LEN]=16.) Hardware
 * can only autogenerate backpressure via HiGig2 messages (optionally, when [HG2TX_EN] = 1) with
 * the HiGig2 protocol.
 */
union cvmx_bgxx_smux_hg2_control {
	u64 u64;
	struct cvmx_bgxx_smux_hg2_control_s {
		u64 reserved_19_63 : 45;
		u64 hg2tx_en : 1;
		u64 hg2rx_en : 1;
		u64 phys_en : 1;
		u64 logl_en : 16;
	} s;
	struct cvmx_bgxx_smux_hg2_control_s cn73xx;
	struct cvmx_bgxx_smux_hg2_control_s cn78xx;
	struct cvmx_bgxx_smux_hg2_control_s cn78xxp1;
	struct cvmx_bgxx_smux_hg2_control_s cnf75xx;
};

typedef union cvmx_bgxx_smux_hg2_control cvmx_bgxx_smux_hg2_control_t;

/**
 * cvmx_bgx#_smu#_rx_bad_col_hi
 */
union cvmx_bgxx_smux_rx_bad_col_hi {
	u64 u64;
	struct cvmx_bgxx_smux_rx_bad_col_hi_s {
		u64 reserved_17_63 : 47;
		u64 val : 1;
		u64 state : 8;
		u64 lane_rxc : 8;
	} s;
	struct cvmx_bgxx_smux_rx_bad_col_hi_s cn73xx;
	struct cvmx_bgxx_smux_rx_bad_col_hi_s cn78xx;
	struct cvmx_bgxx_smux_rx_bad_col_hi_s cn78xxp1;
	struct cvmx_bgxx_smux_rx_bad_col_hi_s cnf75xx;
};

typedef union cvmx_bgxx_smux_rx_bad_col_hi cvmx_bgxx_smux_rx_bad_col_hi_t;

/**
 * cvmx_bgx#_smu#_rx_bad_col_lo
 */
union cvmx_bgxx_smux_rx_bad_col_lo {
	u64 u64;
	struct cvmx_bgxx_smux_rx_bad_col_lo_s {
		u64 lane_rxd : 64;
	} s;
	struct cvmx_bgxx_smux_rx_bad_col_lo_s cn73xx;
	struct cvmx_bgxx_smux_rx_bad_col_lo_s cn78xx;
	struct cvmx_bgxx_smux_rx_bad_col_lo_s cn78xxp1;
	struct cvmx_bgxx_smux_rx_bad_col_lo_s cnf75xx;
};

typedef union cvmx_bgxx_smux_rx_bad_col_lo cvmx_bgxx_smux_rx_bad_col_lo_t;

/**
 * cvmx_bgx#_smu#_rx_ctl
 */
union cvmx_bgxx_smux_rx_ctl {
	u64 u64;
	struct cvmx_bgxx_smux_rx_ctl_s {
		u64 reserved_2_63 : 62;
		u64 status : 2;
	} s;
	struct cvmx_bgxx_smux_rx_ctl_s cn73xx;
	struct cvmx_bgxx_smux_rx_ctl_s cn78xx;
	struct cvmx_bgxx_smux_rx_ctl_s cn78xxp1;
	struct cvmx_bgxx_smux_rx_ctl_s cnf75xx;
};

typedef union cvmx_bgxx_smux_rx_ctl cvmx_bgxx_smux_rx_ctl_t;

/**
 * cvmx_bgx#_smu#_rx_decision
 *
 * This register specifies the byte count used to determine when to accept or to filter a packet.
 * As each byte in a packet is received by BGX, the L2 byte count (i.e. the number of bytes from
 * the beginning of the L2 header (DMAC)) is compared against CNT. In normal operation, the L2
 * header begins after the PREAMBLE + SFD (BGX()_SMU()_RX_FRM_CTL[PRE_CHK] = 1) and any
 * optional UDD skip data (BGX()_SMU()_RX_UDD_SKP[LEN]).
 */
union cvmx_bgxx_smux_rx_decision {
	u64 u64;
	struct cvmx_bgxx_smux_rx_decision_s {
		u64 reserved_5_63 : 59;
		u64 cnt : 5;
	} s;
	struct cvmx_bgxx_smux_rx_decision_s cn73xx;
	struct cvmx_bgxx_smux_rx_decision_s cn78xx;
	struct cvmx_bgxx_smux_rx_decision_s cn78xxp1;
	struct cvmx_bgxx_smux_rx_decision_s cnf75xx;
};

typedef union cvmx_bgxx_smux_rx_decision cvmx_bgxx_smux_rx_decision_t;

/**
 * cvmx_bgx#_smu#_rx_frm_chk
 *
 * The CSRs provide the enable bits for a subset of errors passed to CMR encoded.
 *
 */
union cvmx_bgxx_smux_rx_frm_chk {
	u64 u64;
	struct cvmx_bgxx_smux_rx_frm_chk_s {
		u64 reserved_9_63 : 55;
		u64 skperr : 1;
		u64 rcverr : 1;
		u64 reserved_6_6 : 1;
		u64 fcserr_c : 1;
		u64 fcserr_d : 1;
		u64 jabber : 1;
		u64 reserved_0_2 : 3;
	} s;
	struct cvmx_bgxx_smux_rx_frm_chk_s cn73xx;
	struct cvmx_bgxx_smux_rx_frm_chk_s cn78xx;
	struct cvmx_bgxx_smux_rx_frm_chk_s cn78xxp1;
	struct cvmx_bgxx_smux_rx_frm_chk_s cnf75xx;
};

typedef union cvmx_bgxx_smux_rx_frm_chk cvmx_bgxx_smux_rx_frm_chk_t;

/**
 * cvmx_bgx#_smu#_rx_frm_ctl
 *
 * This register controls the handling of the frames.
 * The [CTL_BCK] and [CTL_DRP] bits control how the hardware handles incoming PAUSE packets. The
 * most
 * common modes of operation:
 * _ [CTL_BCK] = 1, [CTL_DRP] = 1: hardware handles everything
 * _ [CTL_BCK] = 0, [CTL_DRP] = 0: software sees all PAUSE frames
 * _ [CTL_BCK] = 0, [CTL_DRP] = 1: all PAUSE frames are completely ignored
 *
 * These control bits should be set to [CTL_BCK] = 0, [CTL_DRP] = 0 in half-duplex mode. Since
 * PAUSE
 * packets only apply to full duplex operation, any PAUSE packet would constitute an exception
 * which should be handled by the processing cores. PAUSE packets should not be forwarded.
 */
union cvmx_bgxx_smux_rx_frm_ctl {
	u64 u64;
	struct cvmx_bgxx_smux_rx_frm_ctl_s {
		u64 reserved_13_63 : 51;
		u64 ptp_mode : 1;
		u64 reserved_6_11 : 6;
		u64 ctl_smac : 1;
		u64 ctl_mcst : 1;
		u64 ctl_bck : 1;
		u64 ctl_drp : 1;
		u64 pre_strp : 1;
		u64 pre_chk : 1;
	} s;
	struct cvmx_bgxx_smux_rx_frm_ctl_s cn73xx;
	struct cvmx_bgxx_smux_rx_frm_ctl_s cn78xx;
	struct cvmx_bgxx_smux_rx_frm_ctl_s cn78xxp1;
	struct cvmx_bgxx_smux_rx_frm_ctl_s cnf75xx;
};

typedef union cvmx_bgxx_smux_rx_frm_ctl cvmx_bgxx_smux_rx_frm_ctl_t;

/**
 * cvmx_bgx#_smu#_rx_int
 *
 * SMU Interrupt Register.
 *
 */
union cvmx_bgxx_smux_rx_int {
	u64 u64;
	struct cvmx_bgxx_smux_rx_int_s {
		u64 reserved_12_63 : 52;
		u64 hg2cc : 1;
		u64 hg2fld : 1;
		u64 bad_term : 1;
		u64 bad_seq : 1;
		u64 rem_fault : 1;
		u64 loc_fault : 1;
		u64 rsverr : 1;
		u64 pcterr : 1;
		u64 skperr : 1;
		u64 rcverr : 1;
		u64 fcserr : 1;
		u64 jabber : 1;
	} s;
	struct cvmx_bgxx_smux_rx_int_s cn73xx;
	struct cvmx_bgxx_smux_rx_int_s cn78xx;
	struct cvmx_bgxx_smux_rx_int_s cn78xxp1;
	struct cvmx_bgxx_smux_rx_int_s cnf75xx;
};

typedef union cvmx_bgxx_smux_rx_int cvmx_bgxx_smux_rx_int_t;

/**
 * cvmx_bgx#_smu#_rx_jabber
 *
 * This register specifies the maximum size for packets, beyond which the SMU truncates. In
 * XAUI/RXAUI mode, port 0 is used for checking.
 */
union cvmx_bgxx_smux_rx_jabber {
	u64 u64;
	struct cvmx_bgxx_smux_rx_jabber_s {
		u64 reserved_16_63 : 48;
		u64 cnt : 16;
	} s;
	struct cvmx_bgxx_smux_rx_jabber_s cn73xx;
	struct cvmx_bgxx_smux_rx_jabber_s cn78xx;
	struct cvmx_bgxx_smux_rx_jabber_s cn78xxp1;
	struct cvmx_bgxx_smux_rx_jabber_s cnf75xx;
};

typedef union cvmx_bgxx_smux_rx_jabber cvmx_bgxx_smux_rx_jabber_t;

/**
 * cvmx_bgx#_smu#_rx_udd_skp
 *
 * This register specifies the amount of user-defined data (UDD) added before the start of the
 * L2C data.
 */
union cvmx_bgxx_smux_rx_udd_skp {
	u64 u64;
	struct cvmx_bgxx_smux_rx_udd_skp_s {
		u64 reserved_9_63 : 55;
		u64 fcssel : 1;
		u64 reserved_7_7 : 1;
		u64 len : 7;
	} s;
	struct cvmx_bgxx_smux_rx_udd_skp_s cn73xx;
	struct cvmx_bgxx_smux_rx_udd_skp_s cn78xx;
	struct cvmx_bgxx_smux_rx_udd_skp_s cn78xxp1;
	struct cvmx_bgxx_smux_rx_udd_skp_s cnf75xx;
};

typedef union cvmx_bgxx_smux_rx_udd_skp cvmx_bgxx_smux_rx_udd_skp_t;

/**
 * cvmx_bgx#_smu#_smac
 */
union cvmx_bgxx_smux_smac {
	u64 u64;
	struct cvmx_bgxx_smux_smac_s {
		u64 reserved_48_63 : 16;
		u64 smac : 48;
	} s;
	struct cvmx_bgxx_smux_smac_s cn73xx;
	struct cvmx_bgxx_smux_smac_s cn78xx;
	struct cvmx_bgxx_smux_smac_s cn78xxp1;
	struct cvmx_bgxx_smux_smac_s cnf75xx;
};

typedef union cvmx_bgxx_smux_smac cvmx_bgxx_smux_smac_t;

/**
 * cvmx_bgx#_smu#_tx_append
 *
 * For more details on the interactions between FCS and PAD, see also the description of
 * BGX()_SMU()_TX_MIN_PKT[MIN_SIZE].
 */
union cvmx_bgxx_smux_tx_append {
	u64 u64;
	struct cvmx_bgxx_smux_tx_append_s {
		u64 reserved_4_63 : 60;
		u64 fcs_c : 1;
		u64 fcs_d : 1;
		u64 pad : 1;
		u64 preamble : 1;
	} s;
	struct cvmx_bgxx_smux_tx_append_s cn73xx;
	struct cvmx_bgxx_smux_tx_append_s cn78xx;
	struct cvmx_bgxx_smux_tx_append_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_append_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_append cvmx_bgxx_smux_tx_append_t;

/**
 * cvmx_bgx#_smu#_tx_ctl
 */
union cvmx_bgxx_smux_tx_ctl {
	u64 u64;
	struct cvmx_bgxx_smux_tx_ctl_s {
		u64 reserved_31_63 : 33;
		u64 spu_mrk_cnt : 20;
		u64 hg_pause_hgi : 2;
		u64 hg_en : 1;
		u64 l2p_bp_conv : 1;
		u64 ls_byp : 1;
		u64 ls : 2;
		u64 reserved_3_3 : 1;
		u64 x4a_dis : 1;
		u64 uni_en : 1;
		u64 dic_en : 1;
	} s;
	struct cvmx_bgxx_smux_tx_ctl_s cn73xx;
	struct cvmx_bgxx_smux_tx_ctl_s cn78xx;
	struct cvmx_bgxx_smux_tx_ctl_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_ctl_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_ctl cvmx_bgxx_smux_tx_ctl_t;

/**
 * cvmx_bgx#_smu#_tx_ifg
 *
 * Programming IFG1 and IFG2:
 * * For XAUI/RXAUI/10Gbs/40Gbs systems that require IEEE 802.3 compatibility, the IFG1+IFG2 sum
 * must be 12.
 * * In loopback mode, the IFG1+IFG2 of local and remote parties must match exactly; otherwise
 * one of the two sides' loopback FIFO will overrun: BGX()_SMU()_TX_INT[LB_OVRFLW].
 */
union cvmx_bgxx_smux_tx_ifg {
	u64 u64;
	struct cvmx_bgxx_smux_tx_ifg_s {
		u64 reserved_8_63 : 56;
		u64 ifg2 : 4;
		u64 ifg1 : 4;
	} s;
	struct cvmx_bgxx_smux_tx_ifg_s cn73xx;
	struct cvmx_bgxx_smux_tx_ifg_s cn78xx;
	struct cvmx_bgxx_smux_tx_ifg_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_ifg_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_ifg cvmx_bgxx_smux_tx_ifg_t;

/**
 * cvmx_bgx#_smu#_tx_int
 */
union cvmx_bgxx_smux_tx_int {
	u64 u64;
	struct cvmx_bgxx_smux_tx_int_s {
		u64 reserved_5_63 : 59;
		u64 lb_ovrflw : 1;
		u64 lb_undflw : 1;
		u64 fake_commit : 1;
		u64 xchange : 1;
		u64 undflw : 1;
	} s;
	struct cvmx_bgxx_smux_tx_int_s cn73xx;
	struct cvmx_bgxx_smux_tx_int_s cn78xx;
	struct cvmx_bgxx_smux_tx_int_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_int_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_int cvmx_bgxx_smux_tx_int_t;

/**
 * cvmx_bgx#_smu#_tx_min_pkt
 */
union cvmx_bgxx_smux_tx_min_pkt {
	u64 u64;
	struct cvmx_bgxx_smux_tx_min_pkt_s {
		u64 reserved_8_63 : 56;
		u64 min_size : 8;
	} s;
	struct cvmx_bgxx_smux_tx_min_pkt_s cn73xx;
	struct cvmx_bgxx_smux_tx_min_pkt_s cn78xx;
	struct cvmx_bgxx_smux_tx_min_pkt_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_min_pkt_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_min_pkt cvmx_bgxx_smux_tx_min_pkt_t;

/**
 * cvmx_bgx#_smu#_tx_pause_pkt_dmac
 *
 * This register provides the DMAC value that is placed in outbound PAUSE packets.
 *
 */
union cvmx_bgxx_smux_tx_pause_pkt_dmac {
	u64 u64;
	struct cvmx_bgxx_smux_tx_pause_pkt_dmac_s {
		u64 reserved_48_63 : 16;
		u64 dmac : 48;
	} s;
	struct cvmx_bgxx_smux_tx_pause_pkt_dmac_s cn73xx;
	struct cvmx_bgxx_smux_tx_pause_pkt_dmac_s cn78xx;
	struct cvmx_bgxx_smux_tx_pause_pkt_dmac_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_pause_pkt_dmac_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_pause_pkt_dmac cvmx_bgxx_smux_tx_pause_pkt_dmac_t;

/**
 * cvmx_bgx#_smu#_tx_pause_pkt_interval
 *
 * This register specifies how often PAUSE packets are sent.
 *
 */
union cvmx_bgxx_smux_tx_pause_pkt_interval {
	u64 u64;
	struct cvmx_bgxx_smux_tx_pause_pkt_interval_s {
		u64 reserved_33_63 : 31;
		u64 hg2_intra_en : 1;
		u64 hg2_intra_interval : 16;
		u64 interval : 16;
	} s;
	struct cvmx_bgxx_smux_tx_pause_pkt_interval_s cn73xx;
	struct cvmx_bgxx_smux_tx_pause_pkt_interval_s cn78xx;
	struct cvmx_bgxx_smux_tx_pause_pkt_interval_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_pause_pkt_interval_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_pause_pkt_interval cvmx_bgxx_smux_tx_pause_pkt_interval_t;

/**
 * cvmx_bgx#_smu#_tx_pause_pkt_time
 */
union cvmx_bgxx_smux_tx_pause_pkt_time {
	u64 u64;
	struct cvmx_bgxx_smux_tx_pause_pkt_time_s {
		u64 reserved_16_63 : 48;
		u64 p_time : 16;
	} s;
	struct cvmx_bgxx_smux_tx_pause_pkt_time_s cn73xx;
	struct cvmx_bgxx_smux_tx_pause_pkt_time_s cn78xx;
	struct cvmx_bgxx_smux_tx_pause_pkt_time_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_pause_pkt_time_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_pause_pkt_time cvmx_bgxx_smux_tx_pause_pkt_time_t;

/**
 * cvmx_bgx#_smu#_tx_pause_pkt_type
 *
 * This register provides the P_TYPE field that is placed in outbound PAUSE packets.
 *
 */
union cvmx_bgxx_smux_tx_pause_pkt_type {
	u64 u64;
	struct cvmx_bgxx_smux_tx_pause_pkt_type_s {
		u64 reserved_16_63 : 48;
		u64 p_type : 16;
	} s;
	struct cvmx_bgxx_smux_tx_pause_pkt_type_s cn73xx;
	struct cvmx_bgxx_smux_tx_pause_pkt_type_s cn78xx;
	struct cvmx_bgxx_smux_tx_pause_pkt_type_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_pause_pkt_type_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_pause_pkt_type cvmx_bgxx_smux_tx_pause_pkt_type_t;

/**
 * cvmx_bgx#_smu#_tx_pause_togo
 */
union cvmx_bgxx_smux_tx_pause_togo {
	u64 u64;
	struct cvmx_bgxx_smux_tx_pause_togo_s {
		u64 reserved_32_63 : 32;
		u64 msg_time : 16;
		u64 p_time : 16;
	} s;
	struct cvmx_bgxx_smux_tx_pause_togo_s cn73xx;
	struct cvmx_bgxx_smux_tx_pause_togo_s cn78xx;
	struct cvmx_bgxx_smux_tx_pause_togo_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_pause_togo_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_pause_togo cvmx_bgxx_smux_tx_pause_togo_t;

/**
 * cvmx_bgx#_smu#_tx_pause_zero
 */
union cvmx_bgxx_smux_tx_pause_zero {
	u64 u64;
	struct cvmx_bgxx_smux_tx_pause_zero_s {
		u64 reserved_1_63 : 63;
		u64 send : 1;
	} s;
	struct cvmx_bgxx_smux_tx_pause_zero_s cn73xx;
	struct cvmx_bgxx_smux_tx_pause_zero_s cn78xx;
	struct cvmx_bgxx_smux_tx_pause_zero_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_pause_zero_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_pause_zero cvmx_bgxx_smux_tx_pause_zero_t;

/**
 * cvmx_bgx#_smu#_tx_soft_pause
 */
union cvmx_bgxx_smux_tx_soft_pause {
	u64 u64;
	struct cvmx_bgxx_smux_tx_soft_pause_s {
		u64 reserved_16_63 : 48;
		u64 p_time : 16;
	} s;
	struct cvmx_bgxx_smux_tx_soft_pause_s cn73xx;
	struct cvmx_bgxx_smux_tx_soft_pause_s cn78xx;
	struct cvmx_bgxx_smux_tx_soft_pause_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_soft_pause_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_soft_pause cvmx_bgxx_smux_tx_soft_pause_t;

/**
 * cvmx_bgx#_smu#_tx_thresh
 */
union cvmx_bgxx_smux_tx_thresh {
	u64 u64;
	struct cvmx_bgxx_smux_tx_thresh_s {
		u64 reserved_11_63 : 53;
		u64 cnt : 11;
	} s;
	struct cvmx_bgxx_smux_tx_thresh_s cn73xx;
	struct cvmx_bgxx_smux_tx_thresh_s cn78xx;
	struct cvmx_bgxx_smux_tx_thresh_s cn78xxp1;
	struct cvmx_bgxx_smux_tx_thresh_s cnf75xx;
};

typedef union cvmx_bgxx_smux_tx_thresh cvmx_bgxx_smux_tx_thresh_t;

/**
 * cvmx_bgx#_spu#_an_adv
 *
 * Software programs this register with the contents of the AN-link code word base page to be
 * transmitted during autonegotiation. (See IEEE 802.3 section 73.6 for details.) Any write
 * operations to this register prior to completion of autonegotiation, as indicated by
 * BGX()_SPU()_AN_STATUS[AN_COMPLETE], should be followed by a renegotiation in order for
 * the new values to take effect. Renegotiation is initiated by setting
 * BGX()_SPU()_AN_CONTROL[AN_RESTART]. Once autonegotiation has completed, software can
 * examine this register along with BGX()_SPU()_AN_LP_BASE to determine the highest
 * common denominator technology.
 */
union cvmx_bgxx_spux_an_adv {
	u64 u64;
	struct cvmx_bgxx_spux_an_adv_s {
		u64 reserved_48_63 : 16;
		u64 fec_req : 1;
		u64 fec_able : 1;
		u64 arsv : 19;
		u64 a100g_cr10 : 1;
		u64 a40g_cr4 : 1;
		u64 a40g_kr4 : 1;
		u64 a10g_kr : 1;
		u64 a10g_kx4 : 1;
		u64 a1g_kx : 1;
		u64 t : 5;
		u64 np : 1;
		u64 ack : 1;
		u64 rf : 1;
		u64 xnp_able : 1;
		u64 asm_dir : 1;
		u64 pause : 1;
		u64 e : 5;
		u64 s : 5;
	} s;
	struct cvmx_bgxx_spux_an_adv_s cn73xx;
	struct cvmx_bgxx_spux_an_adv_s cn78xx;
	struct cvmx_bgxx_spux_an_adv_s cn78xxp1;
	struct cvmx_bgxx_spux_an_adv_s cnf75xx;
};

typedef union cvmx_bgxx_spux_an_adv cvmx_bgxx_spux_an_adv_t;

/**
 * cvmx_bgx#_spu#_an_bp_status
 *
 * The contents of this register are updated
 * during autonegotiation and are valid when BGX()_SPU()_AN_STATUS[AN_COMPLETE] is set.
 * At that time, one of the port type bits ([N100G_CR10], [N40G_CR4], [N40G_KR4], [N10G_KR],
 * [N10G_KX4],
 * [N1G_KX]) will be set depending on the AN priority resolution. If a BASE-R type is negotiated,
 * then [FEC] will be set to indicate that FEC operation has been negotiated, and will be
 * clear otherwise.
 */
union cvmx_bgxx_spux_an_bp_status {
	u64 u64;
	struct cvmx_bgxx_spux_an_bp_status_s {
		u64 reserved_9_63 : 55;
		u64 n100g_cr10 : 1;
		u64 reserved_7_7 : 1;
		u64 n40g_cr4 : 1;
		u64 n40g_kr4 : 1;
		u64 fec : 1;
		u64 n10g_kr : 1;
		u64 n10g_kx4 : 1;
		u64 n1g_kx : 1;
		u64 bp_an_able : 1;
	} s;
	struct cvmx_bgxx_spux_an_bp_status_s cn73xx;
	struct cvmx_bgxx_spux_an_bp_status_s cn78xx;
	struct cvmx_bgxx_spux_an_bp_status_s cn78xxp1;
	struct cvmx_bgxx_spux_an_bp_status_s cnf75xx;
};

typedef union cvmx_bgxx_spux_an_bp_status cvmx_bgxx_spux_an_bp_status_t;

/**
 * cvmx_bgx#_spu#_an_control
 */
union cvmx_bgxx_spux_an_control {
	u64 u64;
	struct cvmx_bgxx_spux_an_control_s {
		u64 reserved_16_63 : 48;
		u64 an_reset : 1;
		u64 reserved_14_14 : 1;
		u64 xnp_en : 1;
		u64 an_en : 1;
		u64 reserved_10_11 : 2;
		u64 an_restart : 1;
		u64 reserved_0_8 : 9;
	} s;
	struct cvmx_bgxx_spux_an_control_s cn73xx;
	struct cvmx_bgxx_spux_an_control_s cn78xx;
	struct cvmx_bgxx_spux_an_control_s cn78xxp1;
	struct cvmx_bgxx_spux_an_control_s cnf75xx;
};

typedef union cvmx_bgxx_spux_an_control cvmx_bgxx_spux_an_control_t;

/**
 * cvmx_bgx#_spu#_an_lp_base
 *
 * This register captures the contents of the latest AN link code word base page received from
 * the link partner during autonegotiation. (See IEEE 802.3 section 73.6 for details.)
 * BGX()_SPU()_AN_STATUS[PAGE_RX] is set when this register is updated by hardware.
 */
union cvmx_bgxx_spux_an_lp_base {
	u64 u64;
	struct cvmx_bgxx_spux_an_lp_base_s {
		u64 reserved_48_63 : 16;
		u64 fec_req : 1;
		u64 fec_able : 1;
		u64 arsv : 19;
		u64 a100g_cr10 : 1;
		u64 a40g_cr4 : 1;
		u64 a40g_kr4 : 1;
		u64 a10g_kr : 1;
		u64 a10g_kx4 : 1;
		u64 a1g_kx : 1;
		u64 t : 5;
		u64 np : 1;
		u64 ack : 1;
		u64 rf : 1;
		u64 xnp_able : 1;
		u64 asm_dir : 1;
		u64 pause : 1;
		u64 e : 5;
		u64 s : 5;
	} s;
	struct cvmx_bgxx_spux_an_lp_base_s cn73xx;
	struct cvmx_bgxx_spux_an_lp_base_s cn78xx;
	struct cvmx_bgxx_spux_an_lp_base_s cn78xxp1;
	struct cvmx_bgxx_spux_an_lp_base_s cnf75xx;
};

typedef union cvmx_bgxx_spux_an_lp_base cvmx_bgxx_spux_an_lp_base_t;

/**
 * cvmx_bgx#_spu#_an_lp_xnp
 *
 * This register captures the contents of the latest next page code word received from the link
 * partner during autonegotiation, if any. See section 802.3 section 73.7.7 for details.
 */
union cvmx_bgxx_spux_an_lp_xnp {
	u64 u64;
	struct cvmx_bgxx_spux_an_lp_xnp_s {
		u64 reserved_48_63 : 16;
		u64 u : 32;
		u64 np : 1;
		u64 ack : 1;
		u64 mp : 1;
		u64 ack2 : 1;
		u64 toggle : 1;
		u64 m_u : 11;
	} s;
	struct cvmx_bgxx_spux_an_lp_xnp_s cn73xx;
	struct cvmx_bgxx_spux_an_lp_xnp_s cn78xx;
	struct cvmx_bgxx_spux_an_lp_xnp_s cn78xxp1;
	struct cvmx_bgxx_spux_an_lp_xnp_s cnf75xx;
};

typedef union cvmx_bgxx_spux_an_lp_xnp cvmx_bgxx_spux_an_lp_xnp_t;

/**
 * cvmx_bgx#_spu#_an_status
 */
union cvmx_bgxx_spux_an_status {
	u64 u64;
	struct cvmx_bgxx_spux_an_status_s {
		u64 reserved_10_63 : 54;
		u64 prl_flt : 1;
		u64 reserved_8_8 : 1;
		u64 xnp_stat : 1;
		u64 page_rx : 1;
		u64 an_complete : 1;
		u64 rmt_flt : 1;
		u64 an_able : 1;
		u64 link_status : 1;
		u64 reserved_1_1 : 1;
		u64 lp_an_able : 1;
	} s;
	struct cvmx_bgxx_spux_an_status_s cn73xx;
	struct cvmx_bgxx_spux_an_status_s cn78xx;
	struct cvmx_bgxx_spux_an_status_s cn78xxp1;
	struct cvmx_bgxx_spux_an_status_s cnf75xx;
};

typedef union cvmx_bgxx_spux_an_status cvmx_bgxx_spux_an_status_t;

/**
 * cvmx_bgx#_spu#_an_xnp_tx
 *
 * Software programs this register with the contents of the AN message next page or unformatted
 * next page link code word to be transmitted during autonegotiation. Next page exchange occurs
 * after the base link code words have been exchanged if either end of the link segment sets the
 * NP bit to 1, indicating that it has at least one next page to send. Once initiated, next page
 * exchange continues until both ends of the link segment set their NP bits to 0. See section
 * 802.3 section 73.7.7 for details.
 */
union cvmx_bgxx_spux_an_xnp_tx {
	u64 u64;
	struct cvmx_bgxx_spux_an_xnp_tx_s {
		u64 reserved_48_63 : 16;
		u64 u : 32;
		u64 np : 1;
		u64 ack : 1;
		u64 mp : 1;
		u64 ack2 : 1;
		u64 toggle : 1;
		u64 m_u : 11;
	} s;
	struct cvmx_bgxx_spux_an_xnp_tx_s cn73xx;
	struct cvmx_bgxx_spux_an_xnp_tx_s cn78xx;
	struct cvmx_bgxx_spux_an_xnp_tx_s cn78xxp1;
	struct cvmx_bgxx_spux_an_xnp_tx_s cnf75xx;
};

typedef union cvmx_bgxx_spux_an_xnp_tx cvmx_bgxx_spux_an_xnp_tx_t;

/**
 * cvmx_bgx#_spu#_br_algn_status
 *
 * This register implements the IEEE 802.3 multilane BASE-R PCS alignment status 1-4 registers
 * (3.50-3.53). It is valid only when the LPCS type is 40GBASE-R
 * (BGX()_CMR()_CONFIG[LMAC_TYPE] = 0x4), and always returns 0x0 for all other LPCS
 * types. IEEE 802.3 bits that are not applicable to 40GBASE-R (e.g. status bits for PCS lanes
 * 19-4) are not implemented and marked as reserved. PCS lanes 3-0 are valid and are mapped to
 * physical SerDes lanes based on the programming of BGX()_CMR()_CONFIG[LANE_TO_SDS].
 */
union cvmx_bgxx_spux_br_algn_status {
	u64 u64;
	struct cvmx_bgxx_spux_br_algn_status_s {
		u64 reserved_36_63 : 28;
		u64 marker_lock : 4;
		u64 reserved_13_31 : 19;
		u64 alignd : 1;
		u64 reserved_4_11 : 8;
		u64 block_lock : 4;
	} s;
	struct cvmx_bgxx_spux_br_algn_status_s cn73xx;
	struct cvmx_bgxx_spux_br_algn_status_s cn78xx;
	struct cvmx_bgxx_spux_br_algn_status_s cn78xxp1;
	struct cvmx_bgxx_spux_br_algn_status_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_algn_status cvmx_bgxx_spux_br_algn_status_t;

/**
 * cvmx_bgx#_spu#_br_bip_err_cnt
 *
 * This register implements the IEEE 802.3 BIP error-counter registers for PCS lanes 0-3
 * (3.200-3.203). It is valid only when the LPCS type is 40GBASE-R
 * (BGX()_CMR()_CONFIG[LMAC_TYPE] = 0x4), and always returns 0x0 for all other LPCS
 * types. The counters are indexed by the RX PCS lane number based on the Alignment Marker
 * detected on each lane and captured in BGX()_SPU()_BR_LANE_MAP. Each counter counts the
 * BIP errors for its PCS lane, and is held at all ones in case of overflow. The counters are
 * reset to all 0s when this register is read by software.
 *
 * The reset operation takes precedence over the increment operation; if the register is read on
 * the same clock cycle as an increment operation, the counter is reset to all 0s and the
 * increment operation is lost. The counters are writable for test purposes, rather than read-
 * only as specified in IEEE 802.3.
 */
union cvmx_bgxx_spux_br_bip_err_cnt {
	u64 u64;
	struct cvmx_bgxx_spux_br_bip_err_cnt_s {
		u64 bip_err_cnt_ln3 : 16;
		u64 bip_err_cnt_ln2 : 16;
		u64 bip_err_cnt_ln1 : 16;
		u64 bip_err_cnt_ln0 : 16;
	} s;
	struct cvmx_bgxx_spux_br_bip_err_cnt_s cn73xx;
	struct cvmx_bgxx_spux_br_bip_err_cnt_s cn78xx;
	struct cvmx_bgxx_spux_br_bip_err_cnt_s cn78xxp1;
	struct cvmx_bgxx_spux_br_bip_err_cnt_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_bip_err_cnt cvmx_bgxx_spux_br_bip_err_cnt_t;

/**
 * cvmx_bgx#_spu#_br_lane_map
 *
 * This register implements the IEEE 802.3 lane 0-3 mapping registers (3.400-3.403). It is valid
 * only when the LPCS type is 40GBASE-R (BGX()_CMR()_CONFIG[LMAC_TYPE] = 0x4), and always
 * returns 0x0 for all other LPCS types. The LNx_MAPPING field for each programmed PCS lane
 * (called service interface in 802.3ba-2010) is valid when that lane has achieved alignment
 * marker lock on the receive side (i.e. the associated
 * BGX()_SPU()_BR_ALGN_STATUS[MARKER_LOCK] = 1), and is invalid otherwise. When valid, it
 * returns the actual detected receive PCS lane number based on the received alignment marker
 * contents received on that service interface.
 *
 * The mapping is flexible because IEEE 802.3 allows multilane BASE-R receive lanes to be re-
 * ordered. Note that for the transmit side, each PCS lane is mapped to a physical SerDes lane
 * based on the programming of BGX()_CMR()_CONFIG[LANE_TO_SDS]. For the receive side,
 * BGX()_CMR()_CONFIG[LANE_TO_SDS] specifies the service interface to physical SerDes
 * lane mapping, and this register specifies the service interface to PCS lane mapping.
 */
union cvmx_bgxx_spux_br_lane_map {
	u64 u64;
	struct cvmx_bgxx_spux_br_lane_map_s {
		u64 reserved_54_63 : 10;
		u64 ln3_mapping : 6;
		u64 reserved_38_47 : 10;
		u64 ln2_mapping : 6;
		u64 reserved_22_31 : 10;
		u64 ln1_mapping : 6;
		u64 reserved_6_15 : 10;
		u64 ln0_mapping : 6;
	} s;
	struct cvmx_bgxx_spux_br_lane_map_s cn73xx;
	struct cvmx_bgxx_spux_br_lane_map_s cn78xx;
	struct cvmx_bgxx_spux_br_lane_map_s cn78xxp1;
	struct cvmx_bgxx_spux_br_lane_map_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_lane_map cvmx_bgxx_spux_br_lane_map_t;

/**
 * cvmx_bgx#_spu#_br_pmd_control
 */
union cvmx_bgxx_spux_br_pmd_control {
	u64 u64;
	struct cvmx_bgxx_spux_br_pmd_control_s {
		u64 reserved_2_63 : 62;
		u64 train_en : 1;
		u64 train_restart : 1;
	} s;
	struct cvmx_bgxx_spux_br_pmd_control_s cn73xx;
	struct cvmx_bgxx_spux_br_pmd_control_s cn78xx;
	struct cvmx_bgxx_spux_br_pmd_control_s cn78xxp1;
	struct cvmx_bgxx_spux_br_pmd_control_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_pmd_control cvmx_bgxx_spux_br_pmd_control_t;

/**
 * cvmx_bgx#_spu#_br_pmd_ld_cup
 *
 * This register implements 802.3 MDIO register 1.153 for 10GBASE-R (when
 * BGX()_CMR()_CONFIG[LMAC_TYPE] = 10G_R)
 * and MDIO registers 1.1300-1.1303 for 40GBASE-R (when
 * BGX()_CMR()_CONFIG[LMAC_TYPE] = 40G_R). It is automatically cleared at the start of training.
 * When link training
 * is in progress, each field reflects the contents of the coefficient update field in the
 * associated lane's outgoing training frame. The fields in this register are read/write even
 * though they are specified as read-only in 802.3.
 *
 * If BGX()_SPU_DBG_CONTROL[BR_PMD_TRAIN_SOFT_EN] is set, then this register must be updated
 * by software during link training and hardware updates are disabled. If
 * BGX()_SPU_DBG_CONTROL[BR_PMD_TRAIN_SOFT_EN] is clear, this register is automatically
 * updated by hardware, and it should not be written by software. The lane fields in this
 * register are indexed by logical PCS lane ID.
 *
 * The lane 0 field (LN0_*) is valid for both
 * 10GBASE-R and 40GBASE-R. The remaining fields (LN1_*, LN2_*, LN3_*) are only valid for
 * 40GBASE-R.
 */
union cvmx_bgxx_spux_br_pmd_ld_cup {
	u64 u64;
	struct cvmx_bgxx_spux_br_pmd_ld_cup_s {
		u64 ln3_cup : 16;
		u64 ln2_cup : 16;
		u64 ln1_cup : 16;
		u64 ln0_cup : 16;
	} s;
	struct cvmx_bgxx_spux_br_pmd_ld_cup_s cn73xx;
	struct cvmx_bgxx_spux_br_pmd_ld_cup_s cn78xx;
	struct cvmx_bgxx_spux_br_pmd_ld_cup_s cn78xxp1;
	struct cvmx_bgxx_spux_br_pmd_ld_cup_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_pmd_ld_cup cvmx_bgxx_spux_br_pmd_ld_cup_t;

/**
 * cvmx_bgx#_spu#_br_pmd_ld_rep
 *
 * This register implements 802.3 MDIO register 1.154 for 10GBASE-R (when
 * BGX()_CMR()_CONFIG[LMAC_TYPE] = 10G_R) and MDIO registers 1.1400-1.1403 for 40GBASE-R
 * (when BGX()_CMR()_CONFIG[LMAC_TYPE] = 40G_R). It is automatically cleared at the start of
 * training. Each field
 * reflects the contents of the status report field in the associated lane's outgoing training
 * frame. The fields in this register are read/write even though they are specified as read-only
 * in 802.3. If BGX()_SPU_DBG_CONTROL[BR_PMD_TRAIN_SOFT_EN] is set, then this register must
 * be updated by software during link training and hardware updates are disabled. If
 * BGX()_SPU_DBG_CONTROL[BR_PMD_TRAIN_SOFT_EN] is clear, this register is automatically
 * updated by hardware, and it should not be written by software. The lane fields in this
 * register are indexed by logical PCS lane ID.
 *
 * The lane 0 field (LN0_*) is valid for both
 * 10GBASE-R and 40GBASE-R. The remaining fields (LN1_*, LN2_*, LN3_*) are only valid for
 * 40GBASE-R.
 */
union cvmx_bgxx_spux_br_pmd_ld_rep {
	u64 u64;
	struct cvmx_bgxx_spux_br_pmd_ld_rep_s {
		u64 ln3_rep : 16;
		u64 ln2_rep : 16;
		u64 ln1_rep : 16;
		u64 ln0_rep : 16;
	} s;
	struct cvmx_bgxx_spux_br_pmd_ld_rep_s cn73xx;
	struct cvmx_bgxx_spux_br_pmd_ld_rep_s cn78xx;
	struct cvmx_bgxx_spux_br_pmd_ld_rep_s cn78xxp1;
	struct cvmx_bgxx_spux_br_pmd_ld_rep_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_pmd_ld_rep cvmx_bgxx_spux_br_pmd_ld_rep_t;

/**
 * cvmx_bgx#_spu#_br_pmd_lp_cup
 *
 * This register implements 802.3 MDIO register 1.152 for 10GBASE-R (when
 * BGX()_CMR()_CONFIG[LMAC_TYPE] = 10G_R)
 * and MDIO registers 1.1100-1.1103 for 40GBASE-R (when
 * BGX()_CMR()_CONFIG[LMAC_TYPE] = 40G_R). It is automatically cleared at the start of training.
 * Each field reflects
 * the contents of the coefficient update field in the lane's most recently received training
 * frame. This register should not be written when link training is enabled, i.e. when
 * BGX()_SPU()_BR_PMD_CONTROL[TRAIN_EN] is set. The lane fields in this register are indexed by
 * logical PCS lane ID.
 *
 * The lane 0 field (LN0_*) is valid for both 10GBASE-R and 40GBASE-R. The remaining fields
 * (LN1_*, LN2_*, LN3_*) are only valid for 40GBASE-R.
 */
union cvmx_bgxx_spux_br_pmd_lp_cup {
	u64 u64;
	struct cvmx_bgxx_spux_br_pmd_lp_cup_s {
		u64 ln3_cup : 16;
		u64 ln2_cup : 16;
		u64 ln1_cup : 16;
		u64 ln0_cup : 16;
	} s;
	struct cvmx_bgxx_spux_br_pmd_lp_cup_s cn73xx;
	struct cvmx_bgxx_spux_br_pmd_lp_cup_s cn78xx;
	struct cvmx_bgxx_spux_br_pmd_lp_cup_s cn78xxp1;
	struct cvmx_bgxx_spux_br_pmd_lp_cup_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_pmd_lp_cup cvmx_bgxx_spux_br_pmd_lp_cup_t;

/**
 * cvmx_bgx#_spu#_br_pmd_lp_rep
 *
 * This register implements 802.3 MDIO register 1.153 for 10GBASE-R (when
 * BGX()_CMR()_CONFIG[LMAC_TYPE] = 10G_R)
 * and MDIO registers 1.1200-1.1203 for 40GBASE-R (when
 * BGX()_CMR()_CONFIG[LMAC_TYPE] = 40G_R). It is automatically cleared at the start of training.
 * Each field reflects
 * the contents of the status report field in the associated lane's most recently received
 * training frame. The lane fields in this register are indexed by logical PCS lane ID.
 *
 * The lane
 * 0 field (LN0_*) is valid for both 10GBASE-R and 40GBASE-R. The remaining fields (LN1_*, LN2_*,
 * LN3_*) are only valid for 40GBASE-R.
 */
union cvmx_bgxx_spux_br_pmd_lp_rep {
	u64 u64;
	struct cvmx_bgxx_spux_br_pmd_lp_rep_s {
		u64 ln3_rep : 16;
		u64 ln2_rep : 16;
		u64 ln1_rep : 16;
		u64 ln0_rep : 16;
	} s;
	struct cvmx_bgxx_spux_br_pmd_lp_rep_s cn73xx;
	struct cvmx_bgxx_spux_br_pmd_lp_rep_s cn78xx;
	struct cvmx_bgxx_spux_br_pmd_lp_rep_s cn78xxp1;
	struct cvmx_bgxx_spux_br_pmd_lp_rep_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_pmd_lp_rep cvmx_bgxx_spux_br_pmd_lp_rep_t;

/**
 * cvmx_bgx#_spu#_br_pmd_status
 *
 * The lane fields in this register are indexed by logical PCS lane ID. The lane 0 field (LN0_*)
 * is valid for both 10GBASE-R and 40GBASE-R. The remaining fields (LN1_*, LN2_*, LN3_*) are only
 * valid for 40GBASE-R.
 */
union cvmx_bgxx_spux_br_pmd_status {
	u64 u64;
	struct cvmx_bgxx_spux_br_pmd_status_s {
		u64 reserved_16_63 : 48;
		u64 ln3_train_status : 4;
		u64 ln2_train_status : 4;
		u64 ln1_train_status : 4;
		u64 ln0_train_status : 4;
	} s;
	struct cvmx_bgxx_spux_br_pmd_status_s cn73xx;
	struct cvmx_bgxx_spux_br_pmd_status_s cn78xx;
	struct cvmx_bgxx_spux_br_pmd_status_s cn78xxp1;
	struct cvmx_bgxx_spux_br_pmd_status_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_pmd_status cvmx_bgxx_spux_br_pmd_status_t;

/**
 * cvmx_bgx#_spu#_br_status1
 */
union cvmx_bgxx_spux_br_status1 {
	u64 u64;
	struct cvmx_bgxx_spux_br_status1_s {
		u64 reserved_13_63 : 51;
		u64 rcv_lnk : 1;
		u64 reserved_4_11 : 8;
		u64 prbs9 : 1;
		u64 prbs31 : 1;
		u64 hi_ber : 1;
		u64 blk_lock : 1;
	} s;
	struct cvmx_bgxx_spux_br_status1_s cn73xx;
	struct cvmx_bgxx_spux_br_status1_s cn78xx;
	struct cvmx_bgxx_spux_br_status1_s cn78xxp1;
	struct cvmx_bgxx_spux_br_status1_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_status1 cvmx_bgxx_spux_br_status1_t;

/**
 * cvmx_bgx#_spu#_br_status2
 *
 * This register implements a combination of the following IEEE 802.3 registers:
 * * BASE-R PCS status 2 (MDIO address 3.33).
 * * BASE-R BER high-order counter (MDIO address 3.44).
 * * Errored-blocks high-order counter (MDIO address 3.45).
 *
 * Note that the relative locations of some fields have been moved from IEEE 802.3 in order to
 * make the register layout more software friendly: the BER counter high-order and low-order bits
 * from sections 3.44 and 3.33 have been combined into the contiguous, 22-bit [BER_CNT] field;
 * likewise, the errored-blocks counter high-order and low-order bits from section 3.45 have been
 * combined into the contiguous, 22-bit [ERR_BLKS] field.
 */
union cvmx_bgxx_spux_br_status2 {
	u64 u64;
	struct cvmx_bgxx_spux_br_status2_s {
		u64 reserved_62_63 : 2;
		u64 err_blks : 22;
		u64 reserved_38_39 : 2;
		u64 ber_cnt : 22;
		u64 latched_lock : 1;
		u64 latched_ber : 1;
		u64 reserved_0_13 : 14;
	} s;
	struct cvmx_bgxx_spux_br_status2_s cn73xx;
	struct cvmx_bgxx_spux_br_status2_s cn78xx;
	struct cvmx_bgxx_spux_br_status2_s cn78xxp1;
	struct cvmx_bgxx_spux_br_status2_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_status2 cvmx_bgxx_spux_br_status2_t;

/**
 * cvmx_bgx#_spu#_br_tp_control
 *
 * Refer to the test pattern methodology described in 802.3 sections 49.2.8 and 82.2.10.
 *
 */
union cvmx_bgxx_spux_br_tp_control {
	u64 u64;
	struct cvmx_bgxx_spux_br_tp_control_s {
		u64 reserved_8_63 : 56;
		u64 scramble_tp : 1;
		u64 prbs9_tx : 1;
		u64 prbs31_rx : 1;
		u64 prbs31_tx : 1;
		u64 tx_tp_en : 1;
		u64 rx_tp_en : 1;
		u64 tp_sel : 1;
		u64 dp_sel : 1;
	} s;
	struct cvmx_bgxx_spux_br_tp_control_s cn73xx;
	struct cvmx_bgxx_spux_br_tp_control_s cn78xx;
	struct cvmx_bgxx_spux_br_tp_control_s cn78xxp1;
	struct cvmx_bgxx_spux_br_tp_control_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_tp_control cvmx_bgxx_spux_br_tp_control_t;

/**
 * cvmx_bgx#_spu#_br_tp_err_cnt
 *
 * This register provides the BASE-R PCS test-pattern error counter.
 *
 */
union cvmx_bgxx_spux_br_tp_err_cnt {
	u64 u64;
	struct cvmx_bgxx_spux_br_tp_err_cnt_s {
		u64 reserved_16_63 : 48;
		u64 err_cnt : 16;
	} s;
	struct cvmx_bgxx_spux_br_tp_err_cnt_s cn73xx;
	struct cvmx_bgxx_spux_br_tp_err_cnt_s cn78xx;
	struct cvmx_bgxx_spux_br_tp_err_cnt_s cn78xxp1;
	struct cvmx_bgxx_spux_br_tp_err_cnt_s cnf75xx;
};

typedef union cvmx_bgxx_spux_br_tp_err_cnt cvmx_bgxx_spux_br_tp_err_cnt_t;

/**
 * cvmx_bgx#_spu#_bx_status
 */
union cvmx_bgxx_spux_bx_status {
	u64 u64;
	struct cvmx_bgxx_spux_bx_status_s {
		u64 reserved_13_63 : 51;
		u64 alignd : 1;
		u64 pattst : 1;
		u64 reserved_4_10 : 7;
		u64 lsync : 4;
	} s;
	struct cvmx_bgxx_spux_bx_status_s cn73xx;
	struct cvmx_bgxx_spux_bx_status_s cn78xx;
	struct cvmx_bgxx_spux_bx_status_s cn78xxp1;
	struct cvmx_bgxx_spux_bx_status_s cnf75xx;
};

typedef union cvmx_bgxx_spux_bx_status cvmx_bgxx_spux_bx_status_t;

/**
 * cvmx_bgx#_spu#_control1
 */
union cvmx_bgxx_spux_control1 {
	u64 u64;
	struct cvmx_bgxx_spux_control1_s {
		u64 reserved_16_63 : 48;
		u64 reset : 1;
		u64 loopbck : 1;
		u64 spdsel1 : 1;
		u64 reserved_12_12 : 1;
		u64 lo_pwr : 1;
		u64 reserved_7_10 : 4;
		u64 spdsel0 : 1;
		u64 spd : 4;
		u64 reserved_0_1 : 2;
	} s;
	struct cvmx_bgxx_spux_control1_s cn73xx;
	struct cvmx_bgxx_spux_control1_s cn78xx;
	struct cvmx_bgxx_spux_control1_s cn78xxp1;
	struct cvmx_bgxx_spux_control1_s cnf75xx;
};

typedef union cvmx_bgxx_spux_control1 cvmx_bgxx_spux_control1_t;

/**
 * cvmx_bgx#_spu#_control2
 */
union cvmx_bgxx_spux_control2 {
	u64 u64;
	struct cvmx_bgxx_spux_control2_s {
		u64 reserved_3_63 : 61;
		u64 pcs_type : 3;
	} s;
	struct cvmx_bgxx_spux_control2_s cn73xx;
	struct cvmx_bgxx_spux_control2_s cn78xx;
	struct cvmx_bgxx_spux_control2_s cn78xxp1;
	struct cvmx_bgxx_spux_control2_s cnf75xx;
};

typedef union cvmx_bgxx_spux_control2 cvmx_bgxx_spux_control2_t;

/**
 * cvmx_bgx#_spu#_fec_abil
 */
union cvmx_bgxx_spux_fec_abil {
	u64 u64;
	struct cvmx_bgxx_spux_fec_abil_s {
		u64 reserved_2_63 : 62;
		u64 err_abil : 1;
		u64 fec_abil : 1;
	} s;
	struct cvmx_bgxx_spux_fec_abil_s cn73xx;
	struct cvmx_bgxx_spux_fec_abil_s cn78xx;
	struct cvmx_bgxx_spux_fec_abil_s cn78xxp1;
	struct cvmx_bgxx_spux_fec_abil_s cnf75xx;
};

typedef union cvmx_bgxx_spux_fec_abil cvmx_bgxx_spux_fec_abil_t;

/**
 * cvmx_bgx#_spu#_fec_control
 */
union cvmx_bgxx_spux_fec_control {
	u64 u64;
	struct cvmx_bgxx_spux_fec_control_s {
		u64 reserved_2_63 : 62;
		u64 err_en : 1;
		u64 fec_en : 1;
	} s;
	struct cvmx_bgxx_spux_fec_control_s cn73xx;
	struct cvmx_bgxx_spux_fec_control_s cn78xx;
	struct cvmx_bgxx_spux_fec_control_s cn78xxp1;
	struct cvmx_bgxx_spux_fec_control_s cnf75xx;
};

typedef union cvmx_bgxx_spux_fec_control cvmx_bgxx_spux_fec_control_t;

/**
 * cvmx_bgx#_spu#_fec_corr_blks01
 *
 * This register is valid only when the LPCS type is BASE-R
 * (BGX()_CMR()_CONFIG[LMAC_TYPE] = 0x3 or 0x4). The FEC corrected-block counters are
 * defined in IEEE 802.3 section 74.8.4.1. Each corrected-blocks counter increments by 1 for a
 * corrected FEC block, i.e. an FEC block that has been received with invalid parity on the
 * associated PCS lane and has been corrected by the FEC decoder. The counter is reset to all 0s
 * when the register is read, and held at all 1s in case of overflow.
 *
 * The reset operation takes precedence over the increment operation; if the register is read on
 * the same clock cycle as an increment operation, the counter is reset to all 0s and the
 * increment operation is lost. The counters are writable for test purposes, rather than read-
 * only as specified in IEEE 802.3.
 */
union cvmx_bgxx_spux_fec_corr_blks01 {
	u64 u64;
	struct cvmx_bgxx_spux_fec_corr_blks01_s {
		u64 ln1_corr_blks : 32;
		u64 ln0_corr_blks : 32;
	} s;
	struct cvmx_bgxx_spux_fec_corr_blks01_s cn73xx;
	struct cvmx_bgxx_spux_fec_corr_blks01_s cn78xx;
	struct cvmx_bgxx_spux_fec_corr_blks01_s cn78xxp1;
	struct cvmx_bgxx_spux_fec_corr_blks01_s cnf75xx;
};

typedef union cvmx_bgxx_spux_fec_corr_blks01 cvmx_bgxx_spux_fec_corr_blks01_t;

/**
 * cvmx_bgx#_spu#_fec_corr_blks23
 *
 * This register is valid only when the LPCS type is 40GBASE-R
 * (BGX()_CMR()_CONFIG[LMAC_TYPE] = 0x4). The FEC corrected-block counters are defined in
 * IEEE 802.3 section 74.8.4.1. Each corrected-blocks counter increments by 1 for a corrected FEC
 * block, i.e. an FEC block that has been received with invalid parity on the associated PCS lane
 * and has been corrected by the FEC decoder. The counter is reset to all 0s when the register is
 * read, and held at all 1s in case of overflow.
 *
 * The reset operation takes precedence over the increment operation; if the register is read on
 * the same clock cycle as an increment operation, the counter is reset to all 0s and the
 * increment operation is lost. The counters are writable for test purposes, rather than read-
 * only as specified in IEEE 802.3.
 */
union cvmx_bgxx_spux_fec_corr_blks23 {
	u64 u64;
	struct cvmx_bgxx_spux_fec_corr_blks23_s {
		u64 ln3_corr_blks : 32;
		u64 ln2_corr_blks : 32;
	} s;
	struct cvmx_bgxx_spux_fec_corr_blks23_s cn73xx;
	struct cvmx_bgxx_spux_fec_corr_blks23_s cn78xx;
	struct cvmx_bgxx_spux_fec_corr_blks23_s cn78xxp1;
	struct cvmx_bgxx_spux_fec_corr_blks23_s cnf75xx;
};

typedef union cvmx_bgxx_spux_fec_corr_blks23 cvmx_bgxx_spux_fec_corr_blks23_t;

/**
 * cvmx_bgx#_spu#_fec_uncorr_blks01
 *
 * This register is valid only when the LPCS type is BASE-R
 * (BGX()_CMR()_CONFIG[LMAC_TYPE] = 0x3 or 0x4). The FEC corrected-block counters are
 * defined in IEEE 802.3 section 74.8.4.2. Each uncorrected-blocks counter increments by 1 for an
 * uncorrected FEC block, i.e. an FEC block that has been received with invalid parity on the
 * associated PCS lane and has not been corrected by the FEC decoder. The counter is reset to all
 * 0s when the register is read, and held at all 1s in case of overflow.
 *
 * The reset operation takes precedence over the increment operation; if the register is read on
 * the same clock cycle as an increment operation, the counter is reset to all 0s and the
 * increment operation is lost. The counters are writable for test purposes, rather than read-
 * only as specified in IEEE 802.3.
 */
union cvmx_bgxx_spux_fec_uncorr_blks01 {
	u64 u64;
	struct cvmx_bgxx_spux_fec_uncorr_blks01_s {
		u64 ln1_uncorr_blks : 32;
		u64 ln0_uncorr_blks : 32;
	} s;
	struct cvmx_bgxx_spux_fec_uncorr_blks01_s cn73xx;
	struct cvmx_bgxx_spux_fec_uncorr_blks01_s cn78xx;
	struct cvmx_bgxx_spux_fec_uncorr_blks01_s cn78xxp1;
	struct cvmx_bgxx_spux_fec_uncorr_blks01_s cnf75xx;
};

typedef union cvmx_bgxx_spux_fec_uncorr_blks01 cvmx_bgxx_spux_fec_uncorr_blks01_t;

/**
 * cvmx_bgx#_spu#_fec_uncorr_blks23
 *
 * This register is valid only when the LPCS type is 40GBASE-R
 * (BGX()_CMR()_CONFIG[LMAC_TYPE] = 0x4). The FEC uncorrected-block counters are defined
 * in IEEE 802.3 section 74.8.4.2. Each corrected-blocks counter increments by 1 for an
 * uncorrected FEC block, i.e. an FEC block that has been received with invalid parity on the
 * associated PCS lane and has not been corrected by the FEC decoder. The counter is reset to all
 * 0s when the register is read, and held at all 1s in case of overflow.
 *
 * The reset operation takes precedence over the increment operation; if the register is read on
 * the same clock cycle as an increment operation, the counter is reset to all 0s and the
 * increment operation is lost. The counters are writable for test purposes, rather than read-
 * only as specified in IEEE 802.3.
 */
union cvmx_bgxx_spux_fec_uncorr_blks23 {
	u64 u64;
	struct cvmx_bgxx_spux_fec_uncorr_blks23_s {
		u64 ln3_uncorr_blks : 32;
		u64 ln2_uncorr_blks : 32;
	} s;
	struct cvmx_bgxx_spux_fec_uncorr_blks23_s cn73xx;
	struct cvmx_bgxx_spux_fec_uncorr_blks23_s cn78xx;
	struct cvmx_bgxx_spux_fec_uncorr_blks23_s cn78xxp1;
	struct cvmx_bgxx_spux_fec_uncorr_blks23_s cnf75xx;
};

typedef union cvmx_bgxx_spux_fec_uncorr_blks23 cvmx_bgxx_spux_fec_uncorr_blks23_t;

/**
 * cvmx_bgx#_spu#_int
 */
union cvmx_bgxx_spux_int {
	u64 u64;
	struct cvmx_bgxx_spux_int_s {
		u64 reserved_15_63 : 49;
		u64 training_failure : 1;
		u64 training_done : 1;
		u64 an_complete : 1;
		u64 an_link_good : 1;
		u64 an_page_rx : 1;
		u64 fec_uncorr : 1;
		u64 fec_corr : 1;
		u64 bip_err : 1;
		u64 dbg_sync : 1;
		u64 algnlos : 1;
		u64 synlos : 1;
		u64 bitlckls : 1;
		u64 err_blk : 1;
		u64 rx_link_down : 1;
		u64 rx_link_up : 1;
	} s;
	struct cvmx_bgxx_spux_int_s cn73xx;
	struct cvmx_bgxx_spux_int_s cn78xx;
	struct cvmx_bgxx_spux_int_s cn78xxp1;
	struct cvmx_bgxx_spux_int_s cnf75xx;
};

typedef union cvmx_bgxx_spux_int cvmx_bgxx_spux_int_t;

/**
 * cvmx_bgx#_spu#_lpcs_states
 */
union cvmx_bgxx_spux_lpcs_states {
	u64 u64;
	struct cvmx_bgxx_spux_lpcs_states_s {
		u64 reserved_15_63 : 49;
		u64 br_rx_sm : 3;
		u64 reserved_10_11 : 2;
		u64 bx_rx_sm : 2;
		u64 deskew_am_found : 4;
		u64 reserved_3_3 : 1;
		u64 deskew_sm : 3;
	} s;
	struct cvmx_bgxx_spux_lpcs_states_s cn73xx;
	struct cvmx_bgxx_spux_lpcs_states_s cn78xx;
	struct cvmx_bgxx_spux_lpcs_states_s cn78xxp1;
	struct cvmx_bgxx_spux_lpcs_states_s cnf75xx;
};

typedef union cvmx_bgxx_spux_lpcs_states cvmx_bgxx_spux_lpcs_states_t;

/**
 * cvmx_bgx#_spu#_misc_control
 *
 * "* RX logical PCS lane polarity vector <3:0> = [XOR_RXPLRT]<3:0> ^ [4[[RXPLRT]]].
 *  * TX logical PCS lane polarity vector <3:0> = [XOR_TXPLRT]<3:0> ^ [4[[TXPLRT]]].
 *
 *  In short, keep [RXPLRT] and [TXPLRT] cleared, and use [XOR_RXPLRT] and [XOR_TXPLRT] fields to
 *  define
 *  the polarity per logical PCS lane. Only bit 0 of vector is used for 10GBASE-R, and only bits
 * - 1:0 of vector are used for RXAUI."
 */
union cvmx_bgxx_spux_misc_control {
	u64 u64;
	struct cvmx_bgxx_spux_misc_control_s {
		u64 reserved_13_63 : 51;
		u64 rx_packet_dis : 1;
		u64 skip_after_term : 1;
		u64 intlv_rdisp : 1;
		u64 xor_rxplrt : 4;
		u64 xor_txplrt : 4;
		u64 rxplrt : 1;
		u64 txplrt : 1;
	} s;
	struct cvmx_bgxx_spux_misc_control_s cn73xx;
	struct cvmx_bgxx_spux_misc_control_s cn78xx;
	struct cvmx_bgxx_spux_misc_control_s cn78xxp1;
	struct cvmx_bgxx_spux_misc_control_s cnf75xx;
};

typedef union cvmx_bgxx_spux_misc_control cvmx_bgxx_spux_misc_control_t;

/**
 * cvmx_bgx#_spu#_spd_abil
 */
union cvmx_bgxx_spux_spd_abil {
	u64 u64;
	struct cvmx_bgxx_spux_spd_abil_s {
		u64 reserved_4_63 : 60;
		u64 hundredgb : 1;
		u64 fortygb : 1;
		u64 tenpasst : 1;
		u64 tengb : 1;
	} s;
	struct cvmx_bgxx_spux_spd_abil_s cn73xx;
	struct cvmx_bgxx_spux_spd_abil_s cn78xx;
	struct cvmx_bgxx_spux_spd_abil_s cn78xxp1;
	struct cvmx_bgxx_spux_spd_abil_s cnf75xx;
};

typedef union cvmx_bgxx_spux_spd_abil cvmx_bgxx_spux_spd_abil_t;

/**
 * cvmx_bgx#_spu#_status1
 */
union cvmx_bgxx_spux_status1 {
	u64 u64;
	struct cvmx_bgxx_spux_status1_s {
		u64 reserved_8_63 : 56;
		u64 flt : 1;
		u64 reserved_3_6 : 4;
		u64 rcv_lnk : 1;
		u64 lpable : 1;
		u64 reserved_0_0 : 1;
	} s;
	struct cvmx_bgxx_spux_status1_s cn73xx;
	struct cvmx_bgxx_spux_status1_s cn78xx;
	struct cvmx_bgxx_spux_status1_s cn78xxp1;
	struct cvmx_bgxx_spux_status1_s cnf75xx;
};

typedef union cvmx_bgxx_spux_status1 cvmx_bgxx_spux_status1_t;

/**
 * cvmx_bgx#_spu#_status2
 */
union cvmx_bgxx_spux_status2 {
	u64 u64;
	struct cvmx_bgxx_spux_status2_s {
		u64 reserved_16_63 : 48;
		u64 dev : 2;
		u64 reserved_12_13 : 2;
		u64 xmtflt : 1;
		u64 rcvflt : 1;
		u64 reserved_6_9 : 4;
		u64 hundredgb_r : 1;
		u64 fortygb_r : 1;
		u64 tengb_t : 1;
		u64 tengb_w : 1;
		u64 tengb_x : 1;
		u64 tengb_r : 1;
	} s;
	struct cvmx_bgxx_spux_status2_s cn73xx;
	struct cvmx_bgxx_spux_status2_s cn78xx;
	struct cvmx_bgxx_spux_status2_s cn78xxp1;
	struct cvmx_bgxx_spux_status2_s cnf75xx;
};

typedef union cvmx_bgxx_spux_status2 cvmx_bgxx_spux_status2_t;

/**
 * cvmx_bgx#_spu_bist_status
 *
 * This register provides memory BIST status from the SPU receive buffer lane FIFOs.
 *
 */
union cvmx_bgxx_spu_bist_status {
	u64 u64;
	struct cvmx_bgxx_spu_bist_status_s {
		u64 reserved_4_63 : 60;
		u64 rx_buf_bist_status : 4;
	} s;
	struct cvmx_bgxx_spu_bist_status_s cn73xx;
	struct cvmx_bgxx_spu_bist_status_s cn78xx;
	struct cvmx_bgxx_spu_bist_status_s cn78xxp1;
	struct cvmx_bgxx_spu_bist_status_s cnf75xx;
};

typedef union cvmx_bgxx_spu_bist_status cvmx_bgxx_spu_bist_status_t;

/**
 * cvmx_bgx#_spu_dbg_control
 */
union cvmx_bgxx_spu_dbg_control {
	u64 u64;
	struct cvmx_bgxx_spu_dbg_control_s {
		u64 reserved_56_63 : 8;
		u64 ms_clk_period : 12;
		u64 us_clk_period : 12;
		u64 reserved_31_31 : 1;
		u64 br_ber_mon_dis : 1;
		u64 an_nonce_match_dis : 1;
		u64 timestamp_norm_dis : 1;
		u64 rx_buf_flip_synd : 8;
		u64 br_pmd_train_soft_en : 1;
		u64 an_arb_link_chk_en : 1;
		u64 rx_buf_cor_dis : 1;
		u64 scramble_dis : 1;
		u64 reserved_15_15 : 1;
		u64 marker_rxp : 15;
	} s;
	struct cvmx_bgxx_spu_dbg_control_s cn73xx;
	struct cvmx_bgxx_spu_dbg_control_s cn78xx;
	struct cvmx_bgxx_spu_dbg_control_s cn78xxp1;
	struct cvmx_bgxx_spu_dbg_control_s cnf75xx;
};

typedef union cvmx_bgxx_spu_dbg_control cvmx_bgxx_spu_dbg_control_t;

/**
 * cvmx_bgx#_spu_mem_int
 */
union cvmx_bgxx_spu_mem_int {
	u64 u64;
	struct cvmx_bgxx_spu_mem_int_s {
		u64 reserved_8_63 : 56;
		u64 rx_buf_sbe : 4;
		u64 rx_buf_dbe : 4;
	} s;
	struct cvmx_bgxx_spu_mem_int_s cn73xx;
	struct cvmx_bgxx_spu_mem_int_s cn78xx;
	struct cvmx_bgxx_spu_mem_int_s cn78xxp1;
	struct cvmx_bgxx_spu_mem_int_s cnf75xx;
};

typedef union cvmx_bgxx_spu_mem_int cvmx_bgxx_spu_mem_int_t;

/**
 * cvmx_bgx#_spu_mem_status
 *
 * This register provides memory ECC status from the SPU receive buffer lane FIFOs.
 *
 */
union cvmx_bgxx_spu_mem_status {
	u64 u64;
	struct cvmx_bgxx_spu_mem_status_s {
		u64 reserved_32_63 : 32;
		u64 rx_buf_ecc_synd : 32;
	} s;
	struct cvmx_bgxx_spu_mem_status_s cn73xx;
	struct cvmx_bgxx_spu_mem_status_s cn78xx;
	struct cvmx_bgxx_spu_mem_status_s cn78xxp1;
	struct cvmx_bgxx_spu_mem_status_s cnf75xx;
};

typedef union cvmx_bgxx_spu_mem_status cvmx_bgxx_spu_mem_status_t;

/**
 * cvmx_bgx#_spu_sds#_skew_status
 *
 * This register provides SerDes lane skew status. One register per physical SerDes lane.
 *
 */
union cvmx_bgxx_spu_sdsx_skew_status {
	u64 u64;
	struct cvmx_bgxx_spu_sdsx_skew_status_s {
		u64 reserved_32_63 : 32;
		u64 skew_status : 32;
	} s;
	struct cvmx_bgxx_spu_sdsx_skew_status_s cn73xx;
	struct cvmx_bgxx_spu_sdsx_skew_status_s cn78xx;
	struct cvmx_bgxx_spu_sdsx_skew_status_s cn78xxp1;
	struct cvmx_bgxx_spu_sdsx_skew_status_s cnf75xx;
};

typedef union cvmx_bgxx_spu_sdsx_skew_status cvmx_bgxx_spu_sdsx_skew_status_t;

/**
 * cvmx_bgx#_spu_sds#_states
 *
 * This register provides SerDes lane states. One register per physical SerDes lane.
 *
 */
union cvmx_bgxx_spu_sdsx_states {
	u64 u64;
	struct cvmx_bgxx_spu_sdsx_states_s {
		u64 reserved_52_63 : 12;
		u64 am_lock_invld_cnt : 2;
		u64 am_lock_sm : 2;
		u64 reserved_45_47 : 3;
		u64 train_sm : 3;
		u64 train_code_viol : 1;
		u64 train_frame_lock : 1;
		u64 train_lock_found_1st_marker : 1;
		u64 train_lock_bad_markers : 3;
		u64 reserved_35_35 : 1;
		u64 an_arb_sm : 3;
		u64 an_rx_sm : 2;
		u64 reserved_29_29 : 1;
		u64 fec_block_sync : 1;
		u64 fec_sync_cnt : 4;
		u64 reserved_23_23 : 1;
		u64 br_sh_invld_cnt : 7;
		u64 br_block_lock : 1;
		u64 br_sh_cnt : 11;
		u64 bx_sync_sm : 4;
	} s;
	struct cvmx_bgxx_spu_sdsx_states_s cn73xx;
	struct cvmx_bgxx_spu_sdsx_states_s cn78xx;
	struct cvmx_bgxx_spu_sdsx_states_s cn78xxp1;
	struct cvmx_bgxx_spu_sdsx_states_s cnf75xx;
};

typedef union cvmx_bgxx_spu_sdsx_states cvmx_bgxx_spu_sdsx_states_t;

#endif