~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 3b4cba9241810c88c44685c887e87ceb22b6a374 (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
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2020 Marvell International Ltd.
 */

#ifndef __CVMX_LMCX_DEFS_H__
#define __CVMX_LMCX_DEFS_H__

#define CVMX_LMCX_BANK_CONFLICT1(offs)			\
	((0x000360ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_BANK_CONFLICT2(offs)			\
	((0x000368ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_BIST_RESULT(offs)			\
	((0x0000F8ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_CHAR_CTL(offs)			\
	((0x000220ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_CHAR_DQ_ERR_COUNT(offs)		\
	((0x000040ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_CHAR_MASK0(offs)			\
	((0x000228ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_CHAR_MASK1(offs)			\
	((0x000230ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_CHAR_MASK2(offs)			\
	((0x000238ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_CHAR_MASK3(offs)			\
	((0x000240ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_CHAR_MASK4(offs)			\
	((0x000318ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_COMP_CTL(offs)			\
	((0x000028ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_COMP_CTL2(offs)			\
	((0x0001B8ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_CONFIG(offs)				\
	((0x000188ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_CONTROL(offs)				\
	((0x000190ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_CTL(offs)				\
	((0x000010ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_CTL1(offs)				\
	((0x000090ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_DBTRAIN_CTL(offs)			\
	((0x0003F8ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_DCLK_CNT(offs)			\
	((0x0001E0ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_DCLK_CNT_HI(offs)			\
	((0x000070ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_DCLK_CNT_LO(offs)			\
	((0x000068ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_DCLK_CTL(offs)			\
	((0x0000B8ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_DDR2_CTL(offs)			\
	((0x000018ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_DDR4_DIMM_CTL(offs)			\
	((0x0003F0ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_DDR_PLL_CTL(offs)			\
	((0x000258ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_DELAY_CFG(offs)			\
	((0x000088ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_DIMMX_DDR4_PARAMS0(offs, id)				\
	((0x0000D0ull) + (((offs) & 1) + ((id) & 3) * 0x200000ull) * 8)
#define CVMX_LMCX_DIMMX_DDR4_PARAMS1(offs, id)				\
	((0x000140ull) + (((offs) & 1) + ((id) & 3) * 0x200000ull) * 8)
#define CVMX_LMCX_DIMMX_PARAMS(offs, id)				\
	((0x000270ull) + (((offs) & 1) + ((id) & 3) * 0x200000ull) * 8)
#define CVMX_LMCX_DIMM_CTL(offs)			\
	((0x000310ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_DLL_CTL(offs)				\
	((0x0000C0ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_DLL_CTL2(offs)			\
	((0x0001C8ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_DLL_CTL3(offs)			\
	((0x000218ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_ECC_PARITY_TEST(offs)			\
	((0x000108ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_EXT_CONFIG(offs)			\
	((0x000030ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_EXT_CONFIG2(offs)			\
	((0x000090ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_GENERAL_PURPOSE0(offs)		\
	((0x000340ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_GENERAL_PURPOSE1(offs)		\
	((0x000348ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_GENERAL_PURPOSE2(offs)		\
	((0x000350ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_IFB_CNT(offs)				\
	((0x0001D0ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_IFB_CNT_HI(offs)			\
	((0x000050ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_IFB_CNT_LO(offs)			\
	((0x000048ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_INT(offs)				\
	((0x0001F0ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_INT_EN(offs)				\
	((0x0001E8ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_LANEX_CRC_SWIZ(x, id)					\
	((0x000380ull) + (((offs) & 15) + ((id) & 3) * 0x200000ull) * 8)
#define CVMX_LMCX_MEM_CFG0(offs)			\
	((0x000000ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_MEM_CFG1(offs)			\
	((0x000008ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_MODEREG_PARAMS0(offs)			\
	((0x0001A8ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_MODEREG_PARAMS1(offs)			\
	((0x000260ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_MODEREG_PARAMS2(offs)			\
	((0x000050ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_MODEREG_PARAMS3(offs)			\
	((0x000058ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_MPR_DATA0(offs)			\
	((0x000070ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_MPR_DATA1(offs)			\
	((0x000078ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_MPR_DATA2(offs)			\
	((0x000080ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_MR_MPR_CTL(offs)			\
	((0x000068ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_NS_CTL(offs)				\
	((0x000178ull) + ((offs) & 3) * 0x1000000ull)

static inline uint64_t CVMX_LMCX_NXM(unsigned long offs)
{
	switch (cvmx_get_octeon_family()) {
	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
	case OCTEON_CN70XX & OCTEON_FAMILY_MASK:
	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
		return (0x0000C8ull) + (offs) * 0x60000000ull;
	case OCTEON_CNF75XX & OCTEON_FAMILY_MASK:
	case OCTEON_CN73XX & OCTEON_FAMILY_MASK:
		return (0x0000C8ull) + (offs) * 0x1000000ull;
	case OCTEON_CN78XX & OCTEON_FAMILY_MASK:
		if (OCTEON_IS_MODEL(OCTEON_CN78XX_PASS1_X))
			return (0x0000C8ull) + (offs) * 0x1000000ull;
		if (OCTEON_IS_MODEL(OCTEON_CN78XX))
			return (0x0000C8ull) + (offs) * 0x1000000ull;
	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
		return (0x0000C8ull) + (offs) * 0x1000000ull;
	}
	return (0x0000C8ull) + (offs) * 0x1000000ull;
}

#define CVMX_LMCX_NXM_FADR(offs)			\
	((0x000028ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_OPS_CNT(offs)				\
	((0x0001D8ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_OPS_CNT_HI(offs)			\
	((0x000060ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_OPS_CNT_LO(offs)			\
	((0x000058ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_PHY_CTL(offs)				\
	((0x000210ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_PHY_CTL2(offs)			\
	((0x000250ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_PLL_BWCTL(offs)		\
	((0x000040ull))
#define CVMX_LMCX_PLL_CTL(offs)				\
	((0x0000A8ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_PLL_STATUS(offs)			\
	((0x0000B0ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_PPR_CTL(offs)				\
	((0x0003E0ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_READ_LEVEL_CTL(offs)			\
	((0x000140ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_READ_LEVEL_DBG(offs)			\
	((0x000148ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_READ_LEVEL_RANKX(offs, id)				\
	((0x000100ull) + (((offs) & 3) + ((id) & 1) * 0xC000000ull) * 8)
#define CVMX_LMCX_REF_STATUS(offs)			\
	((0x0000A0ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_RESET_CTL(offs)			\
	((0x000180ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_RETRY_CONFIG(offs)			\
	((0x000110ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_RETRY_STATUS(offs)			\
	((0x000118ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_RLEVEL_CTL(offs)			\
	((0x0002A0ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_RLEVEL_DBG(offs)			\
	((0x0002A8ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_RLEVEL_RANKX(offs, id)				\
	((0x000280ull) + (((offs) & 3) + ((id) & 3) * 0x200000ull) * 8)
#define CVMX_LMCX_RODT_COMP_CTL(offs)			\
	((0x0000A0ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_RODT_CTL(offs)			\
	((0x000078ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_RODT_MASK(offs)			\
	((0x000268ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_SCRAMBLED_FADR(offs)			\
	((0x000330ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_SCRAMBLE_CFG0(offs)			\
	((0x000320ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_SCRAMBLE_CFG1(offs)			\
	((0x000328ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_SCRAMBLE_CFG2(offs)			\
	((0x000338ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_SEQ_CTL(offs)				\
	((0x000048ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_SLOT_CTL0(offs)			\
	((0x0001F8ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_SLOT_CTL1(offs)			\
	((0x000200ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_SLOT_CTL2(offs)			\
	((0x000208ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_SLOT_CTL3(offs)			\
	((0x000248ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_TIMING_PARAMS0(offs)			\
	((0x000198ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_TIMING_PARAMS1(offs)			\
	((0x0001A0ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_TIMING_PARAMS2(offs)			\
	((0x000060ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_TRO_CTL(offs)				\
	((0x000248ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_TRO_STAT(offs)			\
	((0x000250ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_WLEVEL_CTL(offs)			\
	((0x000300ull) + ((offs) & 3) * 0x1000000ull)
#define CVMX_LMCX_WLEVEL_DBG(offs)			\
	((0x000308ull) + ((offs) & 3) * 0x1000000ull)

static inline uint64_t CVMX_LMCX_WLEVEL_RANKX(unsigned long offs,
					      unsigned long id)
{
	switch (cvmx_get_octeon_family()) {
	case OCTEON_CN70XX & OCTEON_FAMILY_MASK:
		return (0x0002C0ull) + ((offs) + (id) * 0x200000ull) * 8;
	case OCTEON_CNF75XX & OCTEON_FAMILY_MASK:
	case OCTEON_CN73XX & OCTEON_FAMILY_MASK:
		return (0x0002C0ull) + ((offs) + (id) * 0x200000ull) * 8;
	case OCTEON_CN78XX & OCTEON_FAMILY_MASK:
		if (OCTEON_IS_MODEL(OCTEON_CN78XX_PASS1_X))
			return (0x0002C0ull) + ((offs) +
						(id) * 0x200000ull) * 8;
		if (OCTEON_IS_MODEL(OCTEON_CN78XX))
			return (0x0002C0ull) + ((offs) +
						(id) * 0x200000ull) * 8;

	case OCTEON_CN66XX & OCTEON_FAMILY_MASK:
	case OCTEON_CN63XX & OCTEON_FAMILY_MASK:
		return (0x0002B0ull) + ((offs) + (id) * 0x0ull) * 8;
	case OCTEON_CNF71XX & OCTEON_FAMILY_MASK:
	case OCTEON_CN61XX & OCTEON_FAMILY_MASK:
		return (0x0002B0ull) + ((offs) + (id) * 0x200000ull) * 8;
	case OCTEON_CN68XX & OCTEON_FAMILY_MASK:
		return (0x0002B0ull) + ((offs) + (id) * 0x200000ull) * 8;
	}
	return (0x0002C0ull) + ((offs) + (id) * 0x200000ull) * 8;
}

#define CVMX_LMCX_WODT_CTL0(offs)			\
	((0x000030ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_WODT_CTL1(offs)			\
	((0x000080ull) + ((offs) & 1) * 0x60000000ull)
#define CVMX_LMCX_WODT_MASK(offs)			\
	((0x0001B0ull) + ((offs) & 3) * 0x1000000ull)

/**
 * cvmx_lmc#_char_ctl
 *
 * This register provides an assortment of various control fields needed
 * to characterize the DDR3 interface.
 */
union cvmx_lmcx_char_ctl {
	u64 u64;
	struct cvmx_lmcx_char_ctl_s {
		uint64_t reserved_54_63:10;
		uint64_t dq_char_byte_check:1;
		uint64_t dq_char_check_lock:1;
		uint64_t dq_char_check_enable:1;
		uint64_t dq_char_bit_sel:3;
		uint64_t dq_char_byte_sel:4;
		uint64_t dr:1;
		uint64_t skew_on:1;
		uint64_t en:1;
		uint64_t sel:1;
		uint64_t prog:8;
		uint64_t prbs:32;
	} s;
	struct cvmx_lmcx_char_ctl_cn61xx {
		uint64_t reserved_44_63:20;
		uint64_t dr:1;
		uint64_t skew_on:1;
		uint64_t en:1;
		uint64_t sel:1;
		uint64_t prog:8;
		uint64_t prbs:32;
	} cn61xx;
	struct cvmx_lmcx_char_ctl_cn63xx {
		uint64_t reserved_42_63:22;
		uint64_t en:1;
		uint64_t sel:1;
		uint64_t prog:8;
		uint64_t prbs:32;
	} cn63xx;
	struct cvmx_lmcx_char_ctl_cn63xx cn63xxp1;
	struct cvmx_lmcx_char_ctl_cn61xx cn66xx;
	struct cvmx_lmcx_char_ctl_cn61xx cn68xx;
	struct cvmx_lmcx_char_ctl_cn63xx cn68xxp1;
	struct cvmx_lmcx_char_ctl_cn70xx {
		uint64_t reserved_53_63:11;
		uint64_t dq_char_check_lock:1;
		uint64_t dq_char_check_enable:1;
		uint64_t dq_char_bit_sel:3;
		uint64_t dq_char_byte_sel:4;
		uint64_t dr:1;
		uint64_t skew_on:1;
		uint64_t en:1;
		uint64_t sel:1;
		uint64_t prog:8;
		uint64_t prbs:32;
	} cn70xx;
	struct cvmx_lmcx_char_ctl_cn70xx cn70xxp1;
	struct cvmx_lmcx_char_ctl_s cn73xx;
	struct cvmx_lmcx_char_ctl_s cn78xx;
	struct cvmx_lmcx_char_ctl_s cn78xxp1;
	struct cvmx_lmcx_char_ctl_cn61xx cnf71xx;
	struct cvmx_lmcx_char_ctl_s cnf75xx;
};

/**
 * cvmx_lmc#_comp_ctl2
 *
 * LMC_COMP_CTL2 = LMC Compensation control
 *
 */
union cvmx_lmcx_comp_ctl2 {
	u64 u64;
	struct cvmx_lmcx_comp_ctl2_s {
		uint64_t reserved_51_63:13;
		uint64_t rclk_char_mode:1;
		uint64_t reserved_40_49:10;
		uint64_t ptune_offset:4;
		uint64_t reserved_12_35:24;
		uint64_t cmd_ctl:4;
		uint64_t ck_ctl:4;
		uint64_t dqx_ctl:4;
	} s;
	struct cvmx_lmcx_comp_ctl2_cn61xx {
		uint64_t reserved_34_63:30;
		uint64_t ddr__ptune:4;
		uint64_t ddr__ntune:4;
		uint64_t m180:1;
		uint64_t byp:1;
		uint64_t ptune:4;
		uint64_t ntune:4;
		uint64_t rodt_ctl:4;
		uint64_t cmd_ctl:4;
		uint64_t ck_ctl:4;
		uint64_t dqx_ctl:4;
	} cn61xx;
	struct cvmx_lmcx_comp_ctl2_cn61xx cn63xx;
	struct cvmx_lmcx_comp_ctl2_cn61xx cn63xxp1;
	struct cvmx_lmcx_comp_ctl2_cn61xx cn66xx;
	struct cvmx_lmcx_comp_ctl2_cn61xx cn68xx;
	struct cvmx_lmcx_comp_ctl2_cn61xx cn68xxp1;
	struct cvmx_lmcx_comp_ctl2_cn70xx {
		uint64_t reserved_51_63:13;
		uint64_t rclk_char_mode:1;
		uint64_t ddr__ptune:5;
		uint64_t ddr__ntune:5;
		uint64_t ptune_offset:4;
		uint64_t ntune_offset:4;
		uint64_t m180:1;
		uint64_t byp:1;
		uint64_t ptune:5;
		uint64_t ntune:5;
		uint64_t rodt_ctl:4;
		uint64_t control_ctl:4;
		uint64_t cmd_ctl:4;
		uint64_t ck_ctl:4;
		uint64_t dqx_ctl:4;
	} cn70xx;
	struct cvmx_lmcx_comp_ctl2_cn70xx cn70xxp1;
	struct cvmx_lmcx_comp_ctl2_cn70xx cn73xx;
	struct cvmx_lmcx_comp_ctl2_cn70xx cn78xx;
	struct cvmx_lmcx_comp_ctl2_cn70xx cn78xxp1;
	struct cvmx_lmcx_comp_ctl2_cn61xx cnf71xx;
	struct cvmx_lmcx_comp_ctl2_cn70xx cnf75xx;
};

/**
 * cvmx_lmc#_config
 *
 * This register controls certain parameters required for memory configuration.
 * Note the following:
 * * Priority order for hardware write operations to
 * LMC()_CONFIG/LMC()_FADR/LMC()_ECC_SYND: DED error > SEC error.
 * * The self-refresh entry sequence(s) power the DLL up/down (depending on
 * LMC()_MODEREG_PARAMS0[DLL]) when LMC()_CONFIG[SREF_WITH_DLL] is set.
 * * Prior to the self-refresh exit sequence, LMC()_MODEREG_PARAMS0 should
 * be reprogrammed
 * (if needed) to the appropriate values.
 *
 * See LMC initialization sequence for the LMC bringup sequence.
 */
union cvmx_lmcx_config {
	u64 u64;
	struct cvmx_lmcx_config_s {
		uint64_t lrdimm_ena:1;
		uint64_t bg2_enable:1;
		uint64_t mode_x4dev:1;
		uint64_t mode32b:1;
		uint64_t scrz:1;
		uint64_t early_unload_d1_r1:1;
		uint64_t early_unload_d1_r0:1;
		uint64_t early_unload_d0_r1:1;
		uint64_t early_unload_d0_r0:1;
		uint64_t init_status:4;
		uint64_t mirrmask:4;
		uint64_t rankmask:4;
		uint64_t rank_ena:1;
		uint64_t sref_with_dll:1;
		uint64_t early_dqx:1;
		uint64_t reserved_18_39:22;
		uint64_t reset:1;
		uint64_t ecc_adr:1;
		uint64_t forcewrite:4;
		uint64_t idlepower:3;
		uint64_t pbank_lsb:4;
		uint64_t row_lsb:3;
		uint64_t ecc_ena:1;
		uint64_t init_start:1;
	} s;
	struct cvmx_lmcx_config_cn61xx {
		uint64_t reserved_61_63:3;
		uint64_t mode32b:1;
		uint64_t scrz:1;
		uint64_t early_unload_d1_r1:1;
		uint64_t early_unload_d1_r0:1;
		uint64_t early_unload_d0_r1:1;
		uint64_t early_unload_d0_r0:1;
		uint64_t init_status:4;
		uint64_t mirrmask:4;
		uint64_t rankmask:4;
		uint64_t rank_ena:1;
		uint64_t sref_with_dll:1;
		uint64_t early_dqx:1;
		uint64_t sequence:3;
		uint64_t ref_zqcs_int:19;
		uint64_t reset:1;
		uint64_t ecc_adr:1;
		uint64_t forcewrite:4;
		uint64_t idlepower:3;
		uint64_t pbank_lsb:4;
		uint64_t row_lsb:3;
		uint64_t ecc_ena:1;
		uint64_t init_start:1;
	} cn61xx;
	struct cvmx_lmcx_config_cn63xx {
		uint64_t reserved_59_63:5;
		uint64_t early_unload_d1_r1:1;
		uint64_t early_unload_d1_r0:1;
		uint64_t early_unload_d0_r1:1;
		uint64_t early_unload_d0_r0:1;
		uint64_t init_status:4;
		uint64_t mirrmask:4;
		uint64_t rankmask:4;
		uint64_t rank_ena:1;
		uint64_t sref_with_dll:1;
		uint64_t early_dqx:1;
		uint64_t sequence:3;
		uint64_t ref_zqcs_int:19;
		uint64_t reset:1;
		uint64_t ecc_adr:1;
		uint64_t forcewrite:4;
		uint64_t idlepower:3;
		uint64_t pbank_lsb:4;
		uint64_t row_lsb:3;
		uint64_t ecc_ena:1;
		uint64_t init_start:1;
	} cn63xx;
	struct cvmx_lmcx_config_cn63xxp1 {
		uint64_t reserved_55_63:9;
		uint64_t init_status:4;
		uint64_t mirrmask:4;
		uint64_t rankmask:4;
		uint64_t rank_ena:1;
		uint64_t sref_with_dll:1;
		uint64_t early_dqx:1;
		uint64_t sequence:3;
		uint64_t ref_zqcs_int:19;
		uint64_t reset:1;
		uint64_t ecc_adr:1;
		uint64_t forcewrite:4;
		uint64_t idlepower:3;
		uint64_t pbank_lsb:4;
		uint64_t row_lsb:3;
		uint64_t ecc_ena:1;
		uint64_t init_start:1;
	} cn63xxp1;
	struct cvmx_lmcx_config_cn66xx {
		uint64_t reserved_60_63:4;
		uint64_t scrz:1;
		uint64_t early_unload_d1_r1:1;
		uint64_t early_unload_d1_r0:1;
		uint64_t early_unload_d0_r1:1;
		uint64_t early_unload_d0_r0:1;
		uint64_t init_status:4;
		uint64_t mirrmask:4;
		uint64_t rankmask:4;
		uint64_t rank_ena:1;
		uint64_t sref_with_dll:1;
		uint64_t early_dqx:1;
		uint64_t sequence:3;
		uint64_t ref_zqcs_int:19;
		uint64_t reset:1;
		uint64_t ecc_adr:1;
		uint64_t forcewrite:4;
		uint64_t idlepower:3;
		uint64_t pbank_lsb:4;
		uint64_t row_lsb:3;
		uint64_t ecc_ena:1;
		uint64_t init_start:1;
	} cn66xx;
	struct cvmx_lmcx_config_cn63xx cn68xx;
	struct cvmx_lmcx_config_cn63xx cn68xxp1;
	struct cvmx_lmcx_config_cn70xx {
		uint64_t reserved_63_63:1;
		uint64_t bg2_enable:1;
		uint64_t mode_x4dev:1;
		uint64_t mode32b:1;
		uint64_t scrz:1;
		uint64_t early_unload_d1_r1:1;
		uint64_t early_unload_d1_r0:1;
		uint64_t early_unload_d0_r1:1;
		uint64_t early_unload_d0_r0:1;
		uint64_t init_status:4;
		uint64_t mirrmask:4;
		uint64_t rankmask:4;
		uint64_t rank_ena:1;
		uint64_t sref_with_dll:1;
		uint64_t early_dqx:1;
		uint64_t ref_zqcs_int:22;
		uint64_t reset:1;
		uint64_t ecc_adr:1;
		uint64_t forcewrite:4;
		uint64_t idlepower:3;
		uint64_t pbank_lsb:4;
		uint64_t row_lsb:3;
		uint64_t ecc_ena:1;
		uint64_t reserved_0_0:1;
	} cn70xx;
	struct cvmx_lmcx_config_cn70xx cn70xxp1;
	struct cvmx_lmcx_config_cn73xx {
		uint64_t lrdimm_ena:1;
		uint64_t bg2_enable:1;
		uint64_t mode_x4dev:1;
		uint64_t mode32b:1;
		uint64_t scrz:1;
		uint64_t early_unload_d1_r1:1;
		uint64_t early_unload_d1_r0:1;
		uint64_t early_unload_d0_r1:1;
		uint64_t early_unload_d0_r0:1;
		uint64_t init_status:4;
		uint64_t mirrmask:4;
		uint64_t rankmask:4;
		uint64_t rank_ena:1;
		uint64_t sref_with_dll:1;
		uint64_t early_dqx:1;
		uint64_t ref_zqcs_int:22;
		uint64_t reset:1;
		uint64_t ecc_adr:1;
		uint64_t forcewrite:4;
		uint64_t idlepower:3;
		uint64_t pbank_lsb:4;
		uint64_t row_lsb:3;
		uint64_t ecc_ena:1;
		uint64_t reserved_0_0:1;
	} cn73xx;
	struct cvmx_lmcx_config_cn73xx cn78xx;
	struct cvmx_lmcx_config_cn73xx cn78xxp1;
	struct cvmx_lmcx_config_cn61xx cnf71xx;
	struct cvmx_lmcx_config_cn73xx cnf75xx;
};

/**
 * cvmx_lmc#_control
 *
 * LMC_CONTROL = LMC Control
 * This register is an assortment of various control fields needed by the
 * memory controller
 */
union cvmx_lmcx_control {
	u64 u64;
	struct cvmx_lmcx_control_s {
		uint64_t scramble_ena:1;
		uint64_t thrcnt:12;
		uint64_t persub:8;
		uint64_t thrmax:4;
		uint64_t crm_cnt:5;
		uint64_t crm_thr:5;
		uint64_t crm_max:5;
		uint64_t rodt_bprch:1;
		uint64_t wodt_bprch:1;
		uint64_t bprch:2;
		uint64_t ext_zqcs_dis:1;
		uint64_t int_zqcs_dis:1;
		uint64_t auto_dclkdis:1;
		uint64_t xor_bank:1;
		uint64_t max_write_batch:4;
		uint64_t nxm_write_en:1;
		uint64_t elev_prio_dis:1;
		uint64_t inorder_wr:1;
		uint64_t inorder_rd:1;
		uint64_t throttle_wr:1;
		uint64_t throttle_rd:1;
		uint64_t fprch2:2;
		uint64_t pocas:1;
		uint64_t ddr2t:1;
		uint64_t bwcnt:1;
		uint64_t rdimm_ena:1;
	} s;
	struct cvmx_lmcx_control_s cn61xx;
	struct cvmx_lmcx_control_cn63xx {
		uint64_t reserved_24_63:40;
		uint64_t rodt_bprch:1;
		uint64_t wodt_bprch:1;
		uint64_t bprch:2;
		uint64_t ext_zqcs_dis:1;
		uint64_t int_zqcs_dis:1;
		uint64_t auto_dclkdis:1;
		uint64_t xor_bank:1;
		uint64_t max_write_batch:4;
		uint64_t nxm_write_en:1;
		uint64_t elev_prio_dis:1;
		uint64_t inorder_wr:1;
		uint64_t inorder_rd:1;
		uint64_t throttle_wr:1;
		uint64_t throttle_rd:1;
		uint64_t fprch2:2;
		uint64_t pocas:1;
		uint64_t ddr2t:1;
		uint64_t bwcnt:1;
		uint64_t rdimm_ena:1;
	} cn63xx;
	struct cvmx_lmcx_control_cn63xx cn63xxp1;
	struct cvmx_lmcx_control_cn66xx {
		uint64_t scramble_ena:1;
		uint64_t reserved_24_62:39;
		uint64_t rodt_bprch:1;
		uint64_t wodt_bprch:1;
		uint64_t bprch:2;
		uint64_t ext_zqcs_dis:1;
		uint64_t int_zqcs_dis:1;
		uint64_t auto_dclkdis:1;
		uint64_t xor_bank:1;
		uint64_t max_write_batch:4;
		uint64_t nxm_write_en:1;
		uint64_t elev_prio_dis:1;
		uint64_t inorder_wr:1;
		uint64_t inorder_rd:1;
		uint64_t throttle_wr:1;
		uint64_t throttle_rd:1;
		uint64_t fprch2:2;
		uint64_t pocas:1;
		uint64_t ddr2t:1;
		uint64_t bwcnt:1;
		uint64_t rdimm_ena:1;
	} cn66xx;
	struct cvmx_lmcx_control_cn68xx {
		uint64_t reserved_63_63:1;
		uint64_t thrcnt:12;
		uint64_t persub:8;
		uint64_t thrmax:4;
		uint64_t crm_cnt:5;
		uint64_t crm_thr:5;
		uint64_t crm_max:5;
		uint64_t rodt_bprch:1;
		uint64_t wodt_bprch:1;
		uint64_t bprch:2;
		uint64_t ext_zqcs_dis:1;
		uint64_t int_zqcs_dis:1;
		uint64_t auto_dclkdis:1;
		uint64_t xor_bank:1;
		uint64_t max_write_batch:4;
		uint64_t nxm_write_en:1;
		uint64_t elev_prio_dis:1;
		uint64_t inorder_wr:1;
		uint64_t inorder_rd:1;
		uint64_t throttle_wr:1;
		uint64_t throttle_rd:1;
		uint64_t fprch2:2;
		uint64_t pocas:1;
		uint64_t ddr2t:1;
		uint64_t bwcnt:1;
		uint64_t rdimm_ena:1;
	} cn68xx;
	struct cvmx_lmcx_control_cn68xx cn68xxp1;
	struct cvmx_lmcx_control_s cn70xx;
	struct cvmx_lmcx_control_s cn70xxp1;
	struct cvmx_lmcx_control_s cn73xx;
	struct cvmx_lmcx_control_s cn78xx;
	struct cvmx_lmcx_control_s cn78xxp1;
	struct cvmx_lmcx_control_cn66xx cnf71xx;
	struct cvmx_lmcx_control_s cnf75xx;
};

/**
 * cvmx_lmc#_ctl
 *
 * LMC_CTL = LMC Control
 * This register is an assortment of various control fields needed by the
 * memory controller
 */
union cvmx_lmcx_ctl {
	u64 u64;
	struct cvmx_lmcx_ctl_s {
		uint64_t reserved_32_63:32;
		uint64_t ddr__nctl:4;
		uint64_t ddr__pctl:4;
		uint64_t slow_scf:1;
		uint64_t xor_bank:1;
		uint64_t max_write_batch:4;
		uint64_t pll_div2:1;
		uint64_t pll_bypass:1;
		uint64_t rdimm_ena:1;
		uint64_t r2r_slot:1;
		uint64_t inorder_mwf:1;
		uint64_t inorder_mrf:1;
		uint64_t reserved_10_11:2;
		uint64_t fprch2:1;
		uint64_t bprch:1;
		uint64_t sil_lat:2;
		uint64_t tskw:2;
		uint64_t qs_dic:2;
		uint64_t dic:2;
	} s;
	struct cvmx_lmcx_ctl_cn30xx {
		uint64_t reserved_32_63:32;
		uint64_t ddr__nctl:4;
		uint64_t ddr__pctl:4;
		uint64_t slow_scf:1;
		uint64_t xor_bank:1;
		uint64_t max_write_batch:4;
		uint64_t pll_div2:1;
		uint64_t pll_bypass:1;
		uint64_t rdimm_ena:1;
		uint64_t r2r_slot:1;
		uint64_t inorder_mwf:1;
		uint64_t inorder_mrf:1;
		uint64_t dreset:1;
		uint64_t mode32b:1;
		uint64_t fprch2:1;
		uint64_t bprch:1;
		uint64_t sil_lat:2;
		uint64_t tskw:2;
		uint64_t qs_dic:2;
		uint64_t dic:2;
	} cn30xx;
	struct cvmx_lmcx_ctl_cn30xx cn31xx;
	struct cvmx_lmcx_ctl_cn38xx {
		uint64_t reserved_32_63:32;
		uint64_t ddr__nctl:4;
		uint64_t ddr__pctl:4;
		uint64_t slow_scf:1;
		uint64_t xor_bank:1;
		uint64_t max_write_batch:4;
		uint64_t reserved_16_17:2;
		uint64_t rdimm_ena:1;
		uint64_t r2r_slot:1;
		uint64_t inorder_mwf:1;
		uint64_t inorder_mrf:1;
		uint64_t set_zero:1;
		uint64_t mode128b:1;
		uint64_t fprch2:1;
		uint64_t bprch:1;
		uint64_t sil_lat:2;
		uint64_t tskw:2;
		uint64_t qs_dic:2;
		uint64_t dic:2;
	} cn38xx;
	struct cvmx_lmcx_ctl_cn38xx cn38xxp2;
	struct cvmx_lmcx_ctl_cn50xx {
		uint64_t reserved_32_63:32;
		uint64_t ddr__nctl:4;
		uint64_t ddr__pctl:4;
		uint64_t slow_scf:1;
		uint64_t xor_bank:1;
		uint64_t max_write_batch:4;
		uint64_t reserved_17_17:1;
		uint64_t pll_bypass:1;
		uint64_t rdimm_ena:1;
		uint64_t r2r_slot:1;
		uint64_t inorder_mwf:1;
		uint64_t inorder_mrf:1;
		uint64_t dreset:1;
		uint64_t mode32b:1;
		uint64_t fprch2:1;
		uint64_t bprch:1;
		uint64_t sil_lat:2;
		uint64_t tskw:2;
		uint64_t qs_dic:2;
		uint64_t dic:2;
	} cn50xx;
	struct cvmx_lmcx_ctl_cn52xx {
		uint64_t reserved_32_63:32;
		uint64_t ddr__nctl:4;
		uint64_t ddr__pctl:4;
		uint64_t slow_scf:1;
		uint64_t xor_bank:1;
		uint64_t max_write_batch:4;
		uint64_t reserved_16_17:2;
		uint64_t rdimm_ena:1;
		uint64_t r2r_slot:1;
		uint64_t inorder_mwf:1;
		uint64_t inorder_mrf:1;
		uint64_t dreset:1;
		uint64_t mode32b:1;
		uint64_t fprch2:1;
		uint64_t bprch:1;
		uint64_t sil_lat:2;
		uint64_t tskw:2;
		uint64_t qs_dic:2;
		uint64_t dic:2;
	} cn52xx;
	struct cvmx_lmcx_ctl_cn52xx cn52xxp1;
	struct cvmx_lmcx_ctl_cn52xx cn56xx;
	struct cvmx_lmcx_ctl_cn52xx cn56xxp1;
	struct cvmx_lmcx_ctl_cn58xx {
		uint64_t reserved_32_63:32;
		uint64_t ddr__nctl:4;
		uint64_t ddr__pctl:4;
		uint64_t slow_scf:1;
		uint64_t xor_bank:1;
		uint64_t max_write_batch:4;
		uint64_t reserved_16_17:2;
		uint64_t rdimm_ena:1;
		uint64_t r2r_slot:1;
		uint64_t inorder_mwf:1;
		uint64_t inorder_mrf:1;
		uint64_t dreset:1;
		uint64_t mode128b:1;
		uint64_t fprch2:1;
		uint64_t bprch:1;
		uint64_t sil_lat:2;
		uint64_t tskw:2;
		uint64_t qs_dic:2;
		uint64_t dic:2;
	} cn58xx;
	struct cvmx_lmcx_ctl_cn58xx cn58xxp1;
};

/**
 * cvmx_lmc#_ctl1
 *
 * LMC_CTL1 = LMC Control1
 * This register is an assortment of various control fields needed by the
 * memory controller
 */
union cvmx_lmcx_ctl1 {
	u64 u64;
	struct cvmx_lmcx_ctl1_s {
		uint64_t reserved_21_63:43;
		uint64_t ecc_adr:1;
		uint64_t forcewrite:4;
		uint64_t idlepower:3;
		uint64_t sequence:3;
		uint64_t sil_mode:1;
		uint64_t dcc_enable:1;
		uint64_t reserved_2_7:6;
		uint64_t data_layout:2;
	} s;
	struct cvmx_lmcx_ctl1_cn30xx {
		uint64_t reserved_2_63:62;
		uint64_t data_layout:2;
	} cn30xx;
	struct cvmx_lmcx_ctl1_cn50xx {
		uint64_t reserved_10_63:54;
		uint64_t sil_mode:1;
		uint64_t dcc_enable:1;
		uint64_t reserved_2_7:6;
		uint64_t data_layout:2;
	} cn50xx;
	struct cvmx_lmcx_ctl1_cn52xx {
		uint64_t reserved_21_63:43;
		uint64_t ecc_adr:1;
		uint64_t forcewrite:4;
		uint64_t idlepower:3;
		uint64_t sequence:3;
		uint64_t sil_mode:1;
		uint64_t dcc_enable:1;
		uint64_t reserved_0_7:8;
	} cn52xx;
	struct cvmx_lmcx_ctl1_cn52xx cn52xxp1;
	struct cvmx_lmcx_ctl1_cn52xx cn56xx;
	struct cvmx_lmcx_ctl1_cn52xx cn56xxp1;
	struct cvmx_lmcx_ctl1_cn58xx {
		uint64_t reserved_10_63:54;
		uint64_t sil_mode:1;
		uint64_t dcc_enable:1;
		uint64_t reserved_0_7:8;
	} cn58xx;
	struct cvmx_lmcx_ctl1_cn58xx cn58xxp1;
};

/**
 * cvmx_lmc#_dbtrain_ctl
 *
 * Reserved.
 *
 */
union cvmx_lmcx_dbtrain_ctl {
	u64 u64;
	struct cvmx_lmcx_dbtrain_ctl_s {
		uint64_t reserved_63_63:1;
		uint64_t lfsr_pattern_sel:1;
		uint64_t cmd_count_ext:2;
		uint64_t db_output_impedance:3;
		uint64_t db_sel:1;
		uint64_t tccd_sel:1;
		uint64_t rw_train:1;
		uint64_t read_dq_count:7;
		uint64_t read_cmd_count:5;
		uint64_t write_ena:1;
		uint64_t activate:1;
		uint64_t prank:2;
		uint64_t lrank:3;
		uint64_t row_a:18;
		uint64_t bg:2;
		uint64_t ba:2;
		uint64_t column_a:13;
	} s;
	struct cvmx_lmcx_dbtrain_ctl_cn73xx {
		uint64_t reserved_60_63:4;
		uint64_t db_output_impedance:3;
		uint64_t db_sel:1;
		uint64_t tccd_sel:1;
		uint64_t rw_train:1;
		uint64_t read_dq_count:7;
		uint64_t read_cmd_count:5;
		uint64_t write_ena:1;
		uint64_t activate:1;
		uint64_t prank:2;
		uint64_t lrank:3;
		uint64_t row_a:18;
		uint64_t bg:2;
		uint64_t ba:2;
		uint64_t column_a:13;
	} cn73xx;
	struct cvmx_lmcx_dbtrain_ctl_s cn78xx;
	struct cvmx_lmcx_dbtrain_ctl_cnf75xx {
		uint64_t reserved_62_63:2;
		uint64_t cmd_count_ext:2;
		uint64_t db_output_impedance:3;
		uint64_t db_sel:1;
		uint64_t tccd_sel:1;
		uint64_t rw_train:1;
		uint64_t read_dq_count:7;
		uint64_t read_cmd_count:5;
		uint64_t write_ena:1;
		uint64_t activate:1;
		uint64_t prank:2;
		uint64_t lrank:3;
		uint64_t row_a:18;
		uint64_t bg:2;
		uint64_t ba:2;
		uint64_t column_a:13;
	} cnf75xx;
};

/**
 * cvmx_lmc#_dclk_cnt
 *
 * LMC_DCLK_CNT  = Performance Counters
 *
 */
union cvmx_lmcx_dclk_cnt {
	u64 u64;
	struct cvmx_lmcx_dclk_cnt_s {
		uint64_t dclkcnt:64;
	} s;
	struct cvmx_lmcx_dclk_cnt_s cn61xx;
	struct cvmx_lmcx_dclk_cnt_s cn63xx;
	struct cvmx_lmcx_dclk_cnt_s cn63xxp1;
	struct cvmx_lmcx_dclk_cnt_s cn66xx;
	struct cvmx_lmcx_dclk_cnt_s cn68xx;
	struct cvmx_lmcx_dclk_cnt_s cn68xxp1;
	struct cvmx_lmcx_dclk_cnt_s cn70xx;
	struct cvmx_lmcx_dclk_cnt_s cn70xxp1;
	struct cvmx_lmcx_dclk_cnt_s cn73xx;
	struct cvmx_lmcx_dclk_cnt_s cn78xx;
	struct cvmx_lmcx_dclk_cnt_s cn78xxp1;
	struct cvmx_lmcx_dclk_cnt_s cnf71xx;
	struct cvmx_lmcx_dclk_cnt_s cnf75xx;
};

/**
 * cvmx_lmc#_dclk_cnt_hi
 *
 * LMC_DCLK_CNT_HI  = Performance Counters
 *
 */
union cvmx_lmcx_dclk_cnt_hi {
	u64 u64;
	struct cvmx_lmcx_dclk_cnt_hi_s {
		uint64_t reserved_32_63:32;
		uint64_t dclkcnt_hi:32;
	} s;
	struct cvmx_lmcx_dclk_cnt_hi_s cn30xx;
	struct cvmx_lmcx_dclk_cnt_hi_s cn31xx;
	struct cvmx_lmcx_dclk_cnt_hi_s cn38xx;
	struct cvmx_lmcx_dclk_cnt_hi_s cn38xxp2;
	struct cvmx_lmcx_dclk_cnt_hi_s cn50xx;
	struct cvmx_lmcx_dclk_cnt_hi_s cn52xx;
	struct cvmx_lmcx_dclk_cnt_hi_s cn52xxp1;
	struct cvmx_lmcx_dclk_cnt_hi_s cn56xx;
	struct cvmx_lmcx_dclk_cnt_hi_s cn56xxp1;
	struct cvmx_lmcx_dclk_cnt_hi_s cn58xx;
	struct cvmx_lmcx_dclk_cnt_hi_s cn58xxp1;
};

/**
 * cvmx_lmc#_dclk_cnt_lo
 *
 * LMC_DCLK_CNT_LO  = Performance Counters
 *
 */
union cvmx_lmcx_dclk_cnt_lo {
	u64 u64;
	struct cvmx_lmcx_dclk_cnt_lo_s {
		uint64_t reserved_32_63:32;
		uint64_t dclkcnt_lo:32;
	} s;
	struct cvmx_lmcx_dclk_cnt_lo_s cn30xx;
	struct cvmx_lmcx_dclk_cnt_lo_s cn31xx;
	struct cvmx_lmcx_dclk_cnt_lo_s cn38xx;
	struct cvmx_lmcx_dclk_cnt_lo_s cn38xxp2;
	struct cvmx_lmcx_dclk_cnt_lo_s cn50xx;
	struct cvmx_lmcx_dclk_cnt_lo_s cn52xx;
	struct cvmx_lmcx_dclk_cnt_lo_s cn52xxp1;
	struct cvmx_lmcx_dclk_cnt_lo_s cn56xx;
	struct cvmx_lmcx_dclk_cnt_lo_s cn56xxp1;
	struct cvmx_lmcx_dclk_cnt_lo_s cn58xx;
	struct cvmx_lmcx_dclk_cnt_lo_s cn58xxp1;
};

/**
 * cvmx_lmc#_dclk_ctl
 *
 * LMC_DCLK_CTL = LMC DCLK generation control
 *
 *
 * Notes:
 * This CSR is only relevant for LMC1. LMC0_DCLK_CTL is not used.
 *
 */
union cvmx_lmcx_dclk_ctl {
	u64 u64;
	struct cvmx_lmcx_dclk_ctl_s {
		uint64_t reserved_8_63:56;
		uint64_t off90_ena:1;
		uint64_t dclk90_byp:1;
		uint64_t dclk90_ld:1;
		uint64_t dclk90_vlu:5;
	} s;
	struct cvmx_lmcx_dclk_ctl_s cn56xx;
	struct cvmx_lmcx_dclk_ctl_s cn56xxp1;
};

/**
 * cvmx_lmc#_ddr2_ctl
 *
 * LMC_DDR2_CTL = LMC DDR2 & DLL Control Register
 *
 */
union cvmx_lmcx_ddr2_ctl {
	u64 u64;
	struct cvmx_lmcx_ddr2_ctl_s {
		uint64_t reserved_32_63:32;
		uint64_t bank8:1;
		uint64_t burst8:1;
		uint64_t addlat:3;
		uint64_t pocas:1;
		uint64_t bwcnt:1;
		uint64_t twr:3;
		uint64_t silo_hc:1;
		uint64_t ddr_eof:4;
		uint64_t tfaw:5;
		uint64_t crip_mode:1;
		uint64_t ddr2t:1;
		uint64_t odt_ena:1;
		uint64_t qdll_ena:1;
		uint64_t dll90_vlu:5;
		uint64_t dll90_byp:1;
		uint64_t rdqs:1;
		uint64_t ddr2:1;
	} s;
	struct cvmx_lmcx_ddr2_ctl_cn30xx {
		uint64_t reserved_32_63:32;
		uint64_t bank8:1;
		uint64_t burst8:1;
		uint64_t addlat:3;
		uint64_t pocas:1;
		uint64_t bwcnt:1;
		uint64_t twr:3;
		uint64_t silo_hc:1;
		uint64_t ddr_eof:4;
		uint64_t tfaw:5;
		uint64_t crip_mode:1;
		uint64_t ddr2t:1;
		uint64_t odt_ena:1;
		uint64_t qdll_ena:1;
		uint64_t dll90_vlu:5;
		uint64_t dll90_byp:1;
		uint64_t reserved_1_1:1;
		uint64_t ddr2:1;
	} cn30xx;
	struct cvmx_lmcx_ddr2_ctl_cn30xx cn31xx;
	struct cvmx_lmcx_ddr2_ctl_s cn38xx;
	struct cvmx_lmcx_ddr2_ctl_s cn38xxp2;
	struct cvmx_lmcx_ddr2_ctl_s cn50xx;
	struct cvmx_lmcx_ddr2_ctl_s cn52xx;
	struct cvmx_lmcx_ddr2_ctl_s cn52xxp1;
	struct cvmx_lmcx_ddr2_ctl_s cn56xx;
	struct cvmx_lmcx_ddr2_ctl_s cn56xxp1;
	struct cvmx_lmcx_ddr2_ctl_s cn58xx;
	struct cvmx_lmcx_ddr2_ctl_s cn58xxp1;
};

/**
 * cvmx_lmc#_ddr4_dimm_ctl
 *
 * Bits 0-21 of this register are used only when LMC()_CONTROL[RDIMM_ENA] = 1.
 *
 * During an RCW initialization sequence, bits 0-21 control LMC's write
 * operations to the extended DDR4 control words in the JEDEC standard
 * registering clock driver on an RDIMM.
 */
union cvmx_lmcx_ddr4_dimm_ctl {
	u64 u64;
	struct cvmx_lmcx_ddr4_dimm_ctl_s {
		uint64_t reserved_28_63:36;
		uint64_t rank_timing_enable:1;
		uint64_t bodt_trans_mode:1;
		uint64_t trans_mode_ena:1;
		uint64_t read_preamble_mode:1;
		uint64_t buff_config_da3:1;
		uint64_t mpr_over_ena:1;
		uint64_t ddr4_dimm1_wmask:11;
		uint64_t ddr4_dimm0_wmask:11;
	} s;
	struct cvmx_lmcx_ddr4_dimm_ctl_cn70xx {
		uint64_t reserved_22_63:42;
		uint64_t ddr4_dimm1_wmask:11;
		uint64_t ddr4_dimm0_wmask:11;
	} cn70xx;
	struct cvmx_lmcx_ddr4_dimm_ctl_cn70xx cn70xxp1;
	struct cvmx_lmcx_ddr4_dimm_ctl_s cn73xx;
	struct cvmx_lmcx_ddr4_dimm_ctl_s cn78xx;
	struct cvmx_lmcx_ddr4_dimm_ctl_s cn78xxp1;
	struct cvmx_lmcx_ddr4_dimm_ctl_s cnf75xx;
};

/**
 * cvmx_lmc#_ddr_pll_ctl
 *
 * This register controls the DDR_CK frequency. For details, refer to CK
 * speed programming. See LMC initialization sequence for the initialization
 * sequence.
 * DDR PLL bringup sequence:
 *
 * 1. Write [CLKF], [CLKR], [DDR_PS_EN].
 *
 * 2. Wait 128 ref clock cycles (7680 core-clock cycles).
 *
 * 3. Write 1 to [RESET_N].
 *
 * 4. Wait 1152 ref clocks (1152*16 core-clock cycles).
 *
 * 5. Write 0 to [DDR_DIV_RESET].
 *
 * 6. Wait 10 ref clock cycles (160 core-clock cycles) before bringing up
 * the DDR interface.
 */
union cvmx_lmcx_ddr_pll_ctl {
	u64 u64;
	struct cvmx_lmcx_ddr_pll_ctl_s {
		uint64_t reserved_45_63:19;
		uint64_t dclk_alt_refclk_sel:1;
		uint64_t bwadj:12;
		uint64_t dclk_invert:1;
		uint64_t phy_dcok:1;
		uint64_t ddr4_mode:1;
		uint64_t pll_fbslip:1;
		uint64_t pll_lock:1;
		uint64_t reserved_18_26:9;
		uint64_t diffamp:4;
		uint64_t cps:3;
		uint64_t reserved_8_10:3;
		uint64_t reset_n:1;
		uint64_t clkf:7;
	} s;
	struct cvmx_lmcx_ddr_pll_ctl_cn61xx {
		uint64_t reserved_27_63:37;
		uint64_t jtg_test_mode:1;
		uint64_t dfm_div_reset:1;
		uint64_t dfm_ps_en:3;
		uint64_t ddr_div_reset:1;
		uint64_t ddr_ps_en:3;
		uint64_t diffamp:4;
		uint64_t cps:3;
		uint64_t cpb:3;
		uint64_t reset_n:1;
		uint64_t clkf:7;
	} cn61xx;
	struct cvmx_lmcx_ddr_pll_ctl_cn61xx cn63xx;
	struct cvmx_lmcx_ddr_pll_ctl_cn61xx cn63xxp1;
	struct cvmx_lmcx_ddr_pll_ctl_cn61xx cn66xx;
	struct cvmx_lmcx_ddr_pll_ctl_cn61xx cn68xx;
	struct cvmx_lmcx_ddr_pll_ctl_cn61xx cn68xxp1;
	struct cvmx_lmcx_ddr_pll_ctl_cn70xx {
		uint64_t reserved_31_63:33;
		uint64_t phy_dcok:1;
		uint64_t ddr4_mode:1;
		uint64_t pll_fbslip:1;
		uint64_t pll_lock:1;
		uint64_t pll_rfslip:1;
		uint64_t clkr:2;
		uint64_t jtg_test_mode:1;
		uint64_t ddr_div_reset:1;
		uint64_t ddr_ps_en:4;
		uint64_t reserved_8_17:10;
		uint64_t reset_n:1;
		uint64_t clkf:7;
	} cn70xx;
	struct cvmx_lmcx_ddr_pll_ctl_cn70xx cn70xxp1;
	struct cvmx_lmcx_ddr_pll_ctl_cn73xx {
		uint64_t reserved_45_63:19;
		uint64_t dclk_alt_refclk_sel:1;
		uint64_t bwadj:12;
		uint64_t dclk_invert:1;
		uint64_t phy_dcok:1;
		uint64_t ddr4_mode:1;
		uint64_t pll_fbslip:1;
		uint64_t pll_lock:1;
		uint64_t pll_rfslip:1;
		uint64_t clkr:2;
		uint64_t jtg_test_mode:1;
		uint64_t ddr_div_reset:1;
		uint64_t ddr_ps_en:4;
		uint64_t reserved_9_17:9;
		uint64_t clkf_ext:1;
		uint64_t reset_n:1;
		uint64_t clkf:7;
	} cn73xx;
	struct cvmx_lmcx_ddr_pll_ctl_cn73xx cn78xx;
	struct cvmx_lmcx_ddr_pll_ctl_cn73xx cn78xxp1;
	struct cvmx_lmcx_ddr_pll_ctl_cn61xx cnf71xx;
	struct cvmx_lmcx_ddr_pll_ctl_cn73xx cnf75xx;
};

/**
 * cvmx_lmc#_delay_cfg
 *
 * LMC_DELAY_CFG = Open-loop delay line settings
 *
 *
 * Notes:
 * The DQ bits add OUTGOING delay only to dq, dqs_[p,n], cb, cbs_[p,n], dqm.
 * Delay is approximately 50-80ps per setting depending on process/voltage.
 * There is no need to add incoming delay since by default all strobe bits
 * are delayed internally by 90 degrees (as was always the case in previous
 * passes and past chips.
 *
 * The CMD add delay to all command bits DDR_RAS, DDR_CAS, DDR_A<15:0>,
 * DDR_BA<2:0>, DDR_n_CS<1:0>_L, DDR_WE, DDR_CKE and DDR_ODT_<7:0>.
 * Again, delay is 50-80ps per tap.
 *
 * The CLK bits add delay to all clock signals DDR_CK_<5:0>_P and
 * DDR_CK_<5:0>_N.  Again, delay is 50-80ps per tap.
 *
 * The usage scenario is the following: There is too much delay on command
 * signals and setup on command is not met. The user can then delay the
 * clock until setup is met.
 *
 * At the same time though, dq/dqs should be delayed because there is also
 * a DDR spec tying dqs with clock. If clock is too much delayed with
 * respect to dqs, writes will start to fail.
 *
 * This scheme should eliminate the board need of adding routing delay to
 * clock signals to make high frequencies work.
 */
union cvmx_lmcx_delay_cfg {
	u64 u64;
	struct cvmx_lmcx_delay_cfg_s {
		uint64_t reserved_15_63:49;
		uint64_t dq:5;
		uint64_t cmd:5;
		uint64_t clk:5;
	} s;
	struct cvmx_lmcx_delay_cfg_s cn30xx;
	struct cvmx_lmcx_delay_cfg_cn38xx {
		uint64_t reserved_14_63:50;
		uint64_t dq:4;
		uint64_t reserved_9_9:1;
		uint64_t cmd:4;
		uint64_t reserved_4_4:1;
		uint64_t clk:4;
	} cn38xx;
	struct cvmx_lmcx_delay_cfg_cn38xx cn50xx;
	struct cvmx_lmcx_delay_cfg_cn38xx cn52xx;
	struct cvmx_lmcx_delay_cfg_cn38xx cn52xxp1;
	struct cvmx_lmcx_delay_cfg_cn38xx cn56xx;
	struct cvmx_lmcx_delay_cfg_cn38xx cn56xxp1;
	struct cvmx_lmcx_delay_cfg_cn38xx cn58xx;
	struct cvmx_lmcx_delay_cfg_cn38xx cn58xxp1;
};

/**
 * cvmx_lmc#_dimm#_ddr4_params0
 *
 * This register contains values to be programmed into the extra DDR4 control
 * words in the corresponding (registered) DIMM. These are control words
 * RC1x through RC8x.
 */
union cvmx_lmcx_dimmx_ddr4_params0 {
	u64 u64;
	struct cvmx_lmcx_dimmx_ddr4_params0_s {
		uint64_t rc8x:8;
		uint64_t rc7x:8;
		uint64_t rc6x:8;
		uint64_t rc5x:8;
		uint64_t rc4x:8;
		uint64_t rc3x:8;
		uint64_t rc2x:8;
		uint64_t rc1x:8;
	} s;
	struct cvmx_lmcx_dimmx_ddr4_params0_s cn70xx;
	struct cvmx_lmcx_dimmx_ddr4_params0_s cn70xxp1;
	struct cvmx_lmcx_dimmx_ddr4_params0_s cn73xx;
	struct cvmx_lmcx_dimmx_ddr4_params0_s cn78xx;
	struct cvmx_lmcx_dimmx_ddr4_params0_s cn78xxp1;
	struct cvmx_lmcx_dimmx_ddr4_params0_s cnf75xx;
};

/**
 * cvmx_lmc#_dimm#_ddr4_params1
 *
 * This register contains values to be programmed into the extra DDR4 control
 * words in the corresponding (registered) DIMM. These are control words
 * RC9x through RCBx.
 */
union cvmx_lmcx_dimmx_ddr4_params1 {
	u64 u64;
	struct cvmx_lmcx_dimmx_ddr4_params1_s {
		uint64_t reserved_24_63:40;
		uint64_t rcbx:8;
		uint64_t rcax:8;
		uint64_t rc9x:8;
	} s;
	struct cvmx_lmcx_dimmx_ddr4_params1_s cn70xx;
	struct cvmx_lmcx_dimmx_ddr4_params1_s cn70xxp1;
	struct cvmx_lmcx_dimmx_ddr4_params1_s cn73xx;
	struct cvmx_lmcx_dimmx_ddr4_params1_s cn78xx;
	struct cvmx_lmcx_dimmx_ddr4_params1_s cn78xxp1;
	struct cvmx_lmcx_dimmx_ddr4_params1_s cnf75xx;
};

/**
 * cvmx_lmc#_dimm#_params
 *
 * This register contains values to be programmed into each control word in
 * the corresponding (registered) DIMM. The control words allow optimization
 * of the device properties for different raw card designs. Note that LMC
 * only uses this CSR when LMC()_CONTROL[RDIMM_ENA]=1. During a power-up/init
 * sequence, LMC writes these fields into the control words in the JEDEC
 * standard DDR3 SSTE32882 registering clock driver or DDR4 Register
 * DDR4RCD01 on an RDIMM when corresponding LMC()_DIMM_CTL[DIMM*_WMASK]
 * bits are set.
 */
union cvmx_lmcx_dimmx_params {
	u64 u64;
	struct cvmx_lmcx_dimmx_params_s {
		uint64_t rc15:4;
		uint64_t rc14:4;
		uint64_t rc13:4;
		uint64_t rc12:4;
		uint64_t rc11:4;
		uint64_t rc10:4;
		uint64_t rc9:4;
		uint64_t rc8:4;
		uint64_t rc7:4;
		uint64_t rc6:4;
		uint64_t rc5:4;
		uint64_t rc4:4;
		uint64_t rc3:4;
		uint64_t rc2:4;
		uint64_t rc1:4;
		uint64_t rc0:4;
	} s;
	struct cvmx_lmcx_dimmx_params_s cn61xx;
	struct cvmx_lmcx_dimmx_params_s cn63xx;
	struct cvmx_lmcx_dimmx_params_s cn63xxp1;
	struct cvmx_lmcx_dimmx_params_s cn66xx;
	struct cvmx_lmcx_dimmx_params_s cn68xx;
	struct cvmx_lmcx_dimmx_params_s cn68xxp1;
	struct cvmx_lmcx_dimmx_params_s cn70xx;
	struct cvmx_lmcx_dimmx_params_s cn70xxp1;
	struct cvmx_lmcx_dimmx_params_s cn73xx;
	struct cvmx_lmcx_dimmx_params_s cn78xx;
	struct cvmx_lmcx_dimmx_params_s cn78xxp1;
	struct cvmx_lmcx_dimmx_params_s cnf71xx;
	struct cvmx_lmcx_dimmx_params_s cnf75xx;
};

/**
 * cvmx_lmc#_dimm_ctl
 *
 * Note that this CSR is only used when LMC()_CONTROL[RDIMM_ENA] = 1. During
 * a power-up/init sequence, this CSR controls LMC's write operations to the
 * control words in the JEDEC standard DDR3 SSTE32882 registering clock
 * driver or DDR4 Register DDR4RCD01 on an RDIMM.
 */
union cvmx_lmcx_dimm_ctl {
	u64 u64;
	struct cvmx_lmcx_dimm_ctl_s {
		uint64_t reserved_46_63:18;
		uint64_t parity:1;
		uint64_t tcws:13;
		uint64_t dimm1_wmask:16;
		uint64_t dimm0_wmask:16;
	} s;
	struct cvmx_lmcx_dimm_ctl_s cn61xx;
	struct cvmx_lmcx_dimm_ctl_s cn63xx;
	struct cvmx_lmcx_dimm_ctl_s cn63xxp1;
	struct cvmx_lmcx_dimm_ctl_s cn66xx;
	struct cvmx_lmcx_dimm_ctl_s cn68xx;
	struct cvmx_lmcx_dimm_ctl_s cn68xxp1;
	struct cvmx_lmcx_dimm_ctl_s cn70xx;
	struct cvmx_lmcx_dimm_ctl_s cn70xxp1;
	struct cvmx_lmcx_dimm_ctl_s cn73xx;
	struct cvmx_lmcx_dimm_ctl_s cn78xx;
	struct cvmx_lmcx_dimm_ctl_s cn78xxp1;
	struct cvmx_lmcx_dimm_ctl_s cnf71xx;
	struct cvmx_lmcx_dimm_ctl_s cnf75xx;
};

/**
 * cvmx_lmc#_dll_ctl
 *
 * LMC_DLL_CTL = LMC DLL control and DCLK reset
 *
 */
union cvmx_lmcx_dll_ctl {
	u64 u64;
	struct cvmx_lmcx_dll_ctl_s {
		uint64_t reserved_8_63:56;
		uint64_t dreset:1;
		uint64_t dll90_byp:1;
		uint64_t dll90_ena:1;
		uint64_t dll90_vlu:5;
	} s;
	struct cvmx_lmcx_dll_ctl_s cn52xx;
	struct cvmx_lmcx_dll_ctl_s cn52xxp1;
	struct cvmx_lmcx_dll_ctl_s cn56xx;
	struct cvmx_lmcx_dll_ctl_s cn56xxp1;
};

/**
 * cvmx_lmc#_dll_ctl2
 *
 * See LMC initialization sequence for the initialization sequence.
 *
 */
union cvmx_lmcx_dll_ctl2 {
	u64 u64;
	struct cvmx_lmcx_dll_ctl2_s {
		uint64_t reserved_0_63:64;
	} s;
	struct cvmx_lmcx_dll_ctl2_cn61xx {
		uint64_t reserved_16_63:48;
		uint64_t intf_en:1;
		uint64_t dll_bringup:1;
		uint64_t dreset:1;
		uint64_t quad_dll_ena:1;
		uint64_t byp_sel:4;
		uint64_t byp_setting:8;
	} cn61xx;
	struct cvmx_lmcx_dll_ctl2_cn63xx {
		uint64_t reserved_15_63:49;
		uint64_t dll_bringup:1;
		uint64_t dreset:1;
		uint64_t quad_dll_ena:1;
		uint64_t byp_sel:4;
		uint64_t byp_setting:8;
	} cn63xx;
	struct cvmx_lmcx_dll_ctl2_cn63xx cn63xxp1;
	struct cvmx_lmcx_dll_ctl2_cn63xx cn66xx;
	struct cvmx_lmcx_dll_ctl2_cn61xx cn68xx;
	struct cvmx_lmcx_dll_ctl2_cn61xx cn68xxp1;
	struct cvmx_lmcx_dll_ctl2_cn70xx {
		uint64_t reserved_17_63:47;
		uint64_t intf_en:1;
		uint64_t dll_bringup:1;
		uint64_t dreset:1;
		uint64_t quad_dll_ena:1;
		uint64_t byp_sel:4;
		uint64_t byp_setting:9;
	} cn70xx;
	struct cvmx_lmcx_dll_ctl2_cn70xx cn70xxp1;
	struct cvmx_lmcx_dll_ctl2_cn70xx cn73xx;
	struct cvmx_lmcx_dll_ctl2_cn70xx cn78xx;
	struct cvmx_lmcx_dll_ctl2_cn70xx cn78xxp1;
	struct cvmx_lmcx_dll_ctl2_cn61xx cnf71xx;
	struct cvmx_lmcx_dll_ctl2_cn70xx cnf75xx;
};

/**
 * cvmx_lmc#_dll_ctl3
 *
 * LMC_DLL_CTL3 = LMC DLL control and DCLK reset
 *
 */
union cvmx_lmcx_dll_ctl3 {
	u64 u64;
	struct cvmx_lmcx_dll_ctl3_s {
		uint64_t reserved_50_63:14;
		uint64_t wr_deskew_ena:1;
		uint64_t wr_deskew_ld:1;
		uint64_t bit_select:4;
		uint64_t reserved_0_43:44;
	} s;
	struct cvmx_lmcx_dll_ctl3_cn61xx {
		uint64_t reserved_41_63:23;
		uint64_t dclk90_fwd:1;
		uint64_t ddr_90_dly_byp:1;
		uint64_t dclk90_recal_dis:1;
		uint64_t dclk90_byp_sel:1;
		uint64_t dclk90_byp_setting:8;
		uint64_t dll_fast:1;
		uint64_t dll90_setting:8;
		uint64_t fine_tune_mode:1;
		uint64_t dll_mode:1;
		uint64_t dll90_byte_sel:4;
		uint64_t offset_ena:1;
		uint64_t load_offset:1;
		uint64_t mode_sel:2;
		uint64_t byte_sel:4;
		uint64_t offset:6;
	} cn61xx;
	struct cvmx_lmcx_dll_ctl3_cn63xx {
		uint64_t reserved_29_63:35;
		uint64_t dll_fast:1;
		uint64_t dll90_setting:8;
		uint64_t fine_tune_mode:1;
		uint64_t dll_mode:1;
		uint64_t dll90_byte_sel:4;
		uint64_t offset_ena:1;
		uint64_t load_offset:1;
		uint64_t mode_sel:2;
		uint64_t byte_sel:4;
		uint64_t offset:6;
	} cn63xx;
	struct cvmx_lmcx_dll_ctl3_cn63xx cn63xxp1;
	struct cvmx_lmcx_dll_ctl3_cn63xx cn66xx;
	struct cvmx_lmcx_dll_ctl3_cn61xx cn68xx;
	struct cvmx_lmcx_dll_ctl3_cn61xx cn68xxp1;
	struct cvmx_lmcx_dll_ctl3_cn70xx {
		uint64_t reserved_44_63:20;
		uint64_t dclk90_fwd:1;
		uint64_t ddr_90_dly_byp:1;
		uint64_t dclk90_recal_dis:1;
		uint64_t dclk90_byp_sel:1;
		uint64_t dclk90_byp_setting:9;
		uint64_t dll_fast:1;
		uint64_t dll90_setting:9;
		uint64_t fine_tune_mode:1;
		uint64_t dll_mode:1;
		uint64_t dll90_byte_sel:4;
		uint64_t offset_ena:1;
		uint64_t load_offset:1;
		uint64_t mode_sel:2;
		uint64_t byte_sel:4;
		uint64_t offset:7;
	} cn70xx;
	struct cvmx_lmcx_dll_ctl3_cn70xx cn70xxp1;
	struct cvmx_lmcx_dll_ctl3_cn73xx {
		uint64_t reserved_50_63:14;
		uint64_t wr_deskew_ena:1;
		uint64_t wr_deskew_ld:1;
		uint64_t bit_select:4;
		uint64_t dclk90_fwd:1;
		uint64_t ddr_90_dly_byp:1;
		uint64_t dclk90_recal_dis:1;
		uint64_t dclk90_byp_sel:1;
		uint64_t dclk90_byp_setting:9;
		uint64_t dll_fast:1;
		uint64_t dll90_setting:9;
		uint64_t fine_tune_mode:1;
		uint64_t dll_mode:1;
		uint64_t dll90_byte_sel:4;
		uint64_t offset_ena:1;
		uint64_t load_offset:1;
		uint64_t mode_sel:2;
		uint64_t byte_sel:4;
		uint64_t offset:7;
	} cn73xx;
	struct cvmx_lmcx_dll_ctl3_cn73xx cn78xx;
	struct cvmx_lmcx_dll_ctl3_cn73xx cn78xxp1;
	struct cvmx_lmcx_dll_ctl3_cn61xx cnf71xx;
	struct cvmx_lmcx_dll_ctl3_cn73xx cnf75xx;
};

/**
 * cvmx_lmc#_dual_memcfg
 *
 * This register controls certain parameters of dual-memory configuration.
 *
 * This register enables the design to have two separate memory
 * configurations, selected dynamically by the reference address. Note
 * however, that both configurations share LMC()_CONTROL[XOR_BANK],
 * LMC()_CONFIG [PBANK_LSB], LMC()_CONFIG[RANK_ENA], and all timing parameters.
 *
 * In this description:
 * * config0 refers to the normal memory configuration that is defined by the
 * LMC()_CONFIG[ROW_LSB] parameter
 * * config1 refers to the dual (or second) memory configuration that is
 * defined by this register.
 */
union cvmx_lmcx_dual_memcfg {
	u64 u64;
	struct cvmx_lmcx_dual_memcfg_s {
		uint64_t reserved_20_63:44;
		uint64_t bank8:1;
		uint64_t row_lsb:3;
		uint64_t reserved_8_15:8;
		uint64_t cs_mask:8;
	} s;
	struct cvmx_lmcx_dual_memcfg_s cn50xx;
	struct cvmx_lmcx_dual_memcfg_s cn52xx;
	struct cvmx_lmcx_dual_memcfg_s cn52xxp1;
	struct cvmx_lmcx_dual_memcfg_s cn56xx;
	struct cvmx_lmcx_dual_memcfg_s cn56xxp1;
	struct cvmx_lmcx_dual_memcfg_s cn58xx;
	struct cvmx_lmcx_dual_memcfg_s cn58xxp1;
	struct cvmx_lmcx_dual_memcfg_cn61xx {
		uint64_t reserved_19_63:45;
		uint64_t row_lsb:3;
		uint64_t reserved_8_15:8;
		uint64_t cs_mask:8;
	} cn61xx;
	struct cvmx_lmcx_dual_memcfg_cn61xx cn63xx;
	struct cvmx_lmcx_dual_memcfg_cn61xx cn63xxp1;
	struct cvmx_lmcx_dual_memcfg_cn61xx cn66xx;
	struct cvmx_lmcx_dual_memcfg_cn61xx cn68xx;
	struct cvmx_lmcx_dual_memcfg_cn61xx cn68xxp1;
	struct cvmx_lmcx_dual_memcfg_cn70xx {
		uint64_t reserved_19_63:45;
		uint64_t row_lsb:3;
		uint64_t reserved_4_15:12;
		uint64_t cs_mask:4;
	} cn70xx;
	struct cvmx_lmcx_dual_memcfg_cn70xx cn70xxp1;
	struct cvmx_lmcx_dual_memcfg_cn70xx cn73xx;
	struct cvmx_lmcx_dual_memcfg_cn70xx cn78xx;
	struct cvmx_lmcx_dual_memcfg_cn70xx cn78xxp1;
	struct cvmx_lmcx_dual_memcfg_cn61xx cnf71xx;
	struct cvmx_lmcx_dual_memcfg_cn70xx cnf75xx;
};

/**
 * cvmx_lmc#_ecc_parity_test
 *
 * This register has bits to control the generation of ECC and command
 * address parity errors. ECC error is generated by enabling
 * [CA_PARITY_CORRUPT_ENA] and selecting any of the [ECC_CORRUPT_IDX]
 * index of the dataword from the cacheline to be corrupted.
 * User needs to select which bit of the 128-bit dataword to corrupt by
 * asserting any of the CHAR_MASK0 and CHAR_MASK2 bits. (CHAR_MASK0 and
 * CHAR_MASK2 corresponds to the lower and upper 64-bit signal that can
 * corrupt any individual bit of the data).
 *
 * Command address parity error is generated by enabling
 * [CA_PARITY_CORRUPT_ENA] and selecting the DDR command that the parity
 * is to be corrupted with through [CA_PARITY_SEL].
 */
union cvmx_lmcx_ecc_parity_test {
	u64 u64;
	struct cvmx_lmcx_ecc_parity_test_s {
		uint64_t reserved_12_63:52;
		uint64_t ecc_corrupt_ena:1;
		uint64_t ecc_corrupt_idx:3;
		uint64_t reserved_6_7:2;
		uint64_t ca_parity_corrupt_ena:1;
		uint64_t ca_parity_sel:5;
	} s;
	struct cvmx_lmcx_ecc_parity_test_s cn73xx;
	struct cvmx_lmcx_ecc_parity_test_s cn78xx;
	struct cvmx_lmcx_ecc_parity_test_s cn78xxp1;
	struct cvmx_lmcx_ecc_parity_test_s cnf75xx;
};

/**
 * cvmx_lmc#_ecc_synd
 *
 * LMC_ECC_SYND = MRD ECC Syndromes
 *
 */
union cvmx_lmcx_ecc_synd {
	u64 u64;
	struct cvmx_lmcx_ecc_synd_s {
		uint64_t reserved_32_63:32;
		uint64_t mrdsyn3:8;
		uint64_t mrdsyn2:8;
		uint64_t mrdsyn1:8;
		uint64_t mrdsyn0:8;
	} s;
	struct cvmx_lmcx_ecc_synd_s cn30xx;
	struct cvmx_lmcx_ecc_synd_s cn31xx;
	struct cvmx_lmcx_ecc_synd_s cn38xx;
	struct cvmx_lmcx_ecc_synd_s cn38xxp2;
	struct cvmx_lmcx_ecc_synd_s cn50xx;
	struct cvmx_lmcx_ecc_synd_s cn52xx;
	struct cvmx_lmcx_ecc_synd_s cn52xxp1;
	struct cvmx_lmcx_ecc_synd_s cn56xx;
	struct cvmx_lmcx_ecc_synd_s cn56xxp1;
	struct cvmx_lmcx_ecc_synd_s cn58xx;
	struct cvmx_lmcx_ecc_synd_s cn58xxp1;
	struct cvmx_lmcx_ecc_synd_s cn61xx;
	struct cvmx_lmcx_ecc_synd_s cn63xx;
	struct cvmx_lmcx_ecc_synd_s cn63xxp1;
	struct cvmx_lmcx_ecc_synd_s cn66xx;
	struct cvmx_lmcx_ecc_synd_s cn68xx;
	struct cvmx_lmcx_ecc_synd_s cn68xxp1;
	struct cvmx_lmcx_ecc_synd_s cn70xx;
	struct cvmx_lmcx_ecc_synd_s cn70xxp1;
	struct cvmx_lmcx_ecc_synd_s cn73xx;
	struct cvmx_lmcx_ecc_synd_s cn78xx;
	struct cvmx_lmcx_ecc_synd_s cn78xxp1;
	struct cvmx_lmcx_ecc_synd_s cnf71xx;
	struct cvmx_lmcx_ecc_synd_s cnf75xx;
};

/**
 * cvmx_lmc#_ext_config
 *
 * This register has additional configuration and control bits for the LMC.
 *
 */
union cvmx_lmcx_ext_config {
	u64 u64;
	struct cvmx_lmcx_ext_config_s {
		uint64_t reserved_61_63:3;
		uint64_t bc4_dqs_ena:1;
		uint64_t ref_block:1;
		uint64_t mrs_side:1;
		uint64_t mrs_one_side:1;
		uint64_t mrs_bside_invert_disable:1;
		uint64_t dimm_sel_invert_off:1;
		uint64_t dimm_sel_force_invert:1;
		uint64_t coalesce_address_mode:1;
		uint64_t dimm1_cid:2;
		uint64_t dimm0_cid:2;
		uint64_t rcd_parity_check:1;
		uint64_t reserved_46_47:2;
		uint64_t error_alert_n_sample:1;
		uint64_t ea_int_polarity:1;
		uint64_t reserved_43_43:1;
		uint64_t par_addr_mask:3;
		uint64_t reserved_38_39:2;
		uint64_t mrs_cmd_override:1;
		uint64_t mrs_cmd_select:1;
		uint64_t reserved_33_35:3;
		uint64_t invert_data:1;
		uint64_t reserved_30_31:2;
		uint64_t cmd_rti:1;
		uint64_t cal_ena:1;
		uint64_t reserved_27_27:1;
		uint64_t par_include_a17:1;
		uint64_t par_include_bg1:1;
		uint64_t gen_par:1;
		uint64_t reserved_21_23:3;
		uint64_t vrefint_seq_deskew:1;
		uint64_t read_ena_bprch:1;
		uint64_t read_ena_fprch:1;
		uint64_t slot_ctl_reset_force:1;
		uint64_t ref_int_lsbs:9;
		uint64_t drive_ena_bprch:1;
		uint64_t drive_ena_fprch:1;
		uint64_t dlcram_flip_synd:2;
		uint64_t dlcram_cor_dis:1;
		uint64_t dlc_nxm_rd:1;
		uint64_t l2c_nxm_rd:1;
		uint64_t l2c_nxm_wr:1;
	} s;
	struct cvmx_lmcx_ext_config_cn70xx {
		uint64_t reserved_21_63:43;
		uint64_t vrefint_seq_deskew:1;
		uint64_t read_ena_bprch:1;
		uint64_t read_ena_fprch:1;
		uint64_t slot_ctl_reset_force:1;
		uint64_t ref_int_lsbs:9;
		uint64_t drive_ena_bprch:1;
		uint64_t drive_ena_fprch:1;
		uint64_t dlcram_flip_synd:2;
		uint64_t dlcram_cor_dis:1;
		uint64_t dlc_nxm_rd:1;
		uint64_t l2c_nxm_rd:1;
		uint64_t l2c_nxm_wr:1;
	} cn70xx;
	struct cvmx_lmcx_ext_config_cn70xx cn70xxp1;
	struct cvmx_lmcx_ext_config_cn73xx {
		uint64_t reserved_60_63:4;
		uint64_t ref_block:1;
		uint64_t mrs_side:1;
		uint64_t mrs_one_side:1;
		uint64_t mrs_bside_invert_disable:1;
		uint64_t dimm_sel_invert_off:1;
		uint64_t dimm_sel_force_invert:1;
		uint64_t coalesce_address_mode:1;
		uint64_t dimm1_cid:2;
		uint64_t dimm0_cid:2;
		uint64_t rcd_parity_check:1;
		uint64_t reserved_46_47:2;
		uint64_t error_alert_n_sample:1;
		uint64_t ea_int_polarity:1;
		uint64_t reserved_43_43:1;
		uint64_t par_addr_mask:3;
		uint64_t reserved_38_39:2;
		uint64_t mrs_cmd_override:1;
		uint64_t mrs_cmd_select:1;
		uint64_t reserved_33_35:3;
		uint64_t invert_data:1;
		uint64_t reserved_30_31:2;
		uint64_t cmd_rti:1;
		uint64_t cal_ena:1;
		uint64_t reserved_27_27:1;
		uint64_t par_include_a17:1;
		uint64_t par_include_bg1:1;
		uint64_t gen_par:1;
		uint64_t reserved_21_23:3;
		uint64_t vrefint_seq_deskew:1;
		uint64_t read_ena_bprch:1;
		uint64_t read_ena_fprch:1;
		uint64_t slot_ctl_reset_force:1;
		uint64_t ref_int_lsbs:9;
		uint64_t drive_ena_bprch:1;
		uint64_t drive_ena_fprch:1;
		uint64_t dlcram_flip_synd:2;
		uint64_t dlcram_cor_dis:1;
		uint64_t dlc_nxm_rd:1;
		uint64_t l2c_nxm_rd:1;
		uint64_t l2c_nxm_wr:1;
	} cn73xx;
	struct cvmx_lmcx_ext_config_s cn78xx;
	struct cvmx_lmcx_ext_config_s cn78xxp1;
	struct cvmx_lmcx_ext_config_cn73xx cnf75xx;
};

/**
 * cvmx_lmc#_ext_config2
 *
 * This register has additional configuration and control bits for the LMC.
 *
 */
union cvmx_lmcx_ext_config2 {
	u64 u64;
	struct cvmx_lmcx_ext_config2_s {
		uint64_t reserved_27_63:37;
		uint64_t sref_auto_idle_thres:5;
		uint64_t sref_auto_enable:1;
		uint64_t delay_unload_r3:1;
		uint64_t delay_unload_r2:1;
		uint64_t delay_unload_r1:1;
		uint64_t delay_unload_r0:1;
		uint64_t early_dqx2:1;
		uint64_t xor_bank_sel:4;
		uint64_t reserved_10_11:2;
		uint64_t row_col_switch:1;
		uint64_t trr_on:1;
		uint64_t mac:3;
		uint64_t macram_scrub_done:1;
		uint64_t macram_scrub:1;
		uint64_t macram_flip_synd:2;
		uint64_t macram_cor_dis:1;
	} s;
	struct cvmx_lmcx_ext_config2_cn73xx {
		uint64_t reserved_10_63:54;
		uint64_t row_col_switch:1;
		uint64_t trr_on:1;
		uint64_t mac:3;
		uint64_t macram_scrub_done:1;
		uint64_t macram_scrub:1;
		uint64_t macram_flip_synd:2;
		uint64_t macram_cor_dis:1;
	} cn73xx;
	struct cvmx_lmcx_ext_config2_s cn78xx;
	struct cvmx_lmcx_ext_config2_cnf75xx {
		uint64_t reserved_21_63:43;
		uint64_t delay_unload_r3:1;
		uint64_t delay_unload_r2:1;
		uint64_t delay_unload_r1:1;
		uint64_t delay_unload_r0:1;
		uint64_t early_dqx2:1;
		uint64_t xor_bank_sel:4;
		uint64_t reserved_10_11:2;
		uint64_t row_col_switch:1;
		uint64_t trr_on:1;
		uint64_t mac:3;
		uint64_t macram_scrub_done:1;
		uint64_t macram_scrub:1;
		uint64_t macram_flip_synd:2;
		uint64_t macram_cor_dis:1;
	} cnf75xx;
};

/**
 * cvmx_lmc#_fadr
 *
 * This register only captures the first transaction with ECC errors. A DED
 * error can over-write this register with its failing addresses if the
 * first error was a SEC. If you write LMC()_INT -> SEC_ERR/DED_ERR, it
 * clears the error bits and captures the next failing address. If FDIMM
 * is 1, that means the error is in the high DIMM. LMC()_FADR captures the
 * failing pre-scrambled address location (split into DIMM, bunk, bank, etc).
 * If scrambling is off, then LMC()_FADR will also capture the failing
 * physical location in the DRAM parts. LMC()_SCRAMBLED_FADR captures the
 * actual failing address location in the physical DRAM parts, i.e.,
 * If scrambling is on, LMC()_SCRAMBLED_FADR contains the failing physical
 * location in the DRAM parts (split into DIMM, bunk, bank, etc.)
 * If scrambling is off, the pre-scramble and post-scramble addresses are
 * the same; and so the contents of LMC()_SCRAMBLED_FADR match the contents
 * of LMC()_FADR.
 */
union cvmx_lmcx_fadr {
	u64 u64;
	struct cvmx_lmcx_fadr_s {
		uint64_t reserved_43_63:21;
		uint64_t fcid:3;
		uint64_t fill_order:2;
		uint64_t reserved_0_37:38;
	} s;
	struct cvmx_lmcx_fadr_cn30xx {
		uint64_t reserved_32_63:32;
		uint64_t fdimm:2;
		uint64_t fbunk:1;
		uint64_t fbank:3;
		uint64_t frow:14;
		uint64_t fcol:12;
	} cn30xx;
	struct cvmx_lmcx_fadr_cn30xx cn31xx;
	struct cvmx_lmcx_fadr_cn30xx cn38xx;
	struct cvmx_lmcx_fadr_cn30xx cn38xxp2;
	struct cvmx_lmcx_fadr_cn30xx cn50xx;
	struct cvmx_lmcx_fadr_cn30xx cn52xx;
	struct cvmx_lmcx_fadr_cn30xx cn52xxp1;
	struct cvmx_lmcx_fadr_cn30xx cn56xx;
	struct cvmx_lmcx_fadr_cn30xx cn56xxp1;
	struct cvmx_lmcx_fadr_cn30xx cn58xx;
	struct cvmx_lmcx_fadr_cn30xx cn58xxp1;
	struct cvmx_lmcx_fadr_cn61xx {
		uint64_t reserved_36_63:28;
		uint64_t fdimm:2;
		uint64_t fbunk:1;
		uint64_t fbank:3;
		uint64_t frow:16;
		uint64_t fcol:14;
	} cn61xx;
	struct cvmx_lmcx_fadr_cn61xx cn63xx;
	struct cvmx_lmcx_fadr_cn61xx cn63xxp1;
	struct cvmx_lmcx_fadr_cn61xx cn66xx;
	struct cvmx_lmcx_fadr_cn61xx cn68xx;
	struct cvmx_lmcx_fadr_cn61xx cn68xxp1;
	struct cvmx_lmcx_fadr_cn70xx {
		uint64_t reserved_40_63:24;
		uint64_t fill_order:2;
		uint64_t fdimm:1;
		uint64_t fbunk:1;
		uint64_t fbank:4;
		uint64_t frow:18;
		uint64_t fcol:14;
	} cn70xx;
	struct cvmx_lmcx_fadr_cn70xx cn70xxp1;
	struct cvmx_lmcx_fadr_cn73xx {
		uint64_t reserved_43_63:21;
		uint64_t fcid:3;
		uint64_t fill_order:2;
		uint64_t fdimm:1;
		uint64_t fbunk:1;
		uint64_t fbank:4;
		uint64_t frow:18;
		uint64_t fcol:14;
	} cn73xx;
	struct cvmx_lmcx_fadr_cn73xx cn78xx;
	struct cvmx_lmcx_fadr_cn73xx cn78xxp1;
	struct cvmx_lmcx_fadr_cn61xx cnf71xx;
	struct cvmx_lmcx_fadr_cn73xx cnf75xx;
};

/**
 * cvmx_lmc#_general_purpose0
 */
union cvmx_lmcx_general_purpose0 {
	u64 u64;
	struct cvmx_lmcx_general_purpose0_s {
		uint64_t data:64;
	} s;
	struct cvmx_lmcx_general_purpose0_s cn73xx;
	struct cvmx_lmcx_general_purpose0_s cn78xx;
	struct cvmx_lmcx_general_purpose0_s cnf75xx;
};

/**
 * cvmx_lmc#_general_purpose1
 */
union cvmx_lmcx_general_purpose1 {
	u64 u64;
	struct cvmx_lmcx_general_purpose1_s {
		uint64_t data:64;
	} s;
	struct cvmx_lmcx_general_purpose1_s cn73xx;
	struct cvmx_lmcx_general_purpose1_s cn78xx;
	struct cvmx_lmcx_general_purpose1_s cnf75xx;
};

/**
 * cvmx_lmc#_general_purpose2
 */
union cvmx_lmcx_general_purpose2 {
	u64 u64;
	struct cvmx_lmcx_general_purpose2_s {
		uint64_t reserved_16_63:48;
		uint64_t data:16;
	} s;
	struct cvmx_lmcx_general_purpose2_s cn73xx;
	struct cvmx_lmcx_general_purpose2_s cn78xx;
	struct cvmx_lmcx_general_purpose2_s cnf75xx;
};

/**
 * cvmx_lmc#_ifb_cnt
 *
 * LMC_IFB_CNT  = Performance Counters
 *
 */
union cvmx_lmcx_ifb_cnt {
	u64 u64;
	struct cvmx_lmcx_ifb_cnt_s {
		uint64_t ifbcnt:64;
	} s;
	struct cvmx_lmcx_ifb_cnt_s cn61xx;
	struct cvmx_lmcx_ifb_cnt_s cn63xx;
	struct cvmx_lmcx_ifb_cnt_s cn63xxp1;
	struct cvmx_lmcx_ifb_cnt_s cn66xx;
	struct cvmx_lmcx_ifb_cnt_s cn68xx;
	struct cvmx_lmcx_ifb_cnt_s cn68xxp1;
	struct cvmx_lmcx_ifb_cnt_s cn70xx;
	struct cvmx_lmcx_ifb_cnt_s cn70xxp1;
	struct cvmx_lmcx_ifb_cnt_s cn73xx;
	struct cvmx_lmcx_ifb_cnt_s cn78xx;
	struct cvmx_lmcx_ifb_cnt_s cn78xxp1;
	struct cvmx_lmcx_ifb_cnt_s cnf71xx;
	struct cvmx_lmcx_ifb_cnt_s cnf75xx;
};

/**
 * cvmx_lmc#_ifb_cnt_hi
 *
 * LMC_IFB_CNT_HI  = Performance Counters
 *
 */
union cvmx_lmcx_ifb_cnt_hi {
	u64 u64;
	struct cvmx_lmcx_ifb_cnt_hi_s {
		uint64_t reserved_32_63:32;
		uint64_t ifbcnt_hi:32;
	} s;
	struct cvmx_lmcx_ifb_cnt_hi_s cn30xx;
	struct cvmx_lmcx_ifb_cnt_hi_s cn31xx;
	struct cvmx_lmcx_ifb_cnt_hi_s cn38xx;
	struct cvmx_lmcx_ifb_cnt_hi_s cn38xxp2;
	struct cvmx_lmcx_ifb_cnt_hi_s cn50xx;
	struct cvmx_lmcx_ifb_cnt_hi_s cn52xx;
	struct cvmx_lmcx_ifb_cnt_hi_s cn52xxp1;
	struct cvmx_lmcx_ifb_cnt_hi_s cn56xx;
	struct cvmx_lmcx_ifb_cnt_hi_s cn56xxp1;
	struct cvmx_lmcx_ifb_cnt_hi_s cn58xx;
	struct cvmx_lmcx_ifb_cnt_hi_s cn58xxp1;
};

/**
 * cvmx_lmc#_ifb_cnt_lo
 *
 * LMC_IFB_CNT_LO  = Performance Counters
 *
 */
union cvmx_lmcx_ifb_cnt_lo {
	u64 u64;
	struct cvmx_lmcx_ifb_cnt_lo_s {
		uint64_t reserved_32_63:32;
		uint64_t ifbcnt_lo:32;
	} s;
	struct cvmx_lmcx_ifb_cnt_lo_s cn30xx;
	struct cvmx_lmcx_ifb_cnt_lo_s cn31xx;
	struct cvmx_lmcx_ifb_cnt_lo_s cn38xx;
	struct cvmx_lmcx_ifb_cnt_lo_s cn38xxp2;
	struct cvmx_lmcx_ifb_cnt_lo_s cn50xx;
	struct cvmx_lmcx_ifb_cnt_lo_s cn52xx;
	struct cvmx_lmcx_ifb_cnt_lo_s cn52xxp1;
	struct cvmx_lmcx_ifb_cnt_lo_s cn56xx;
	struct cvmx_lmcx_ifb_cnt_lo_s cn56xxp1;
	struct cvmx_lmcx_ifb_cnt_lo_s cn58xx;
	struct cvmx_lmcx_ifb_cnt_lo_s cn58xxp1;
};

/**
 * cvmx_lmc#_int
 *
 * This register contains the different interrupt-summary bits of the LMC.
 *
 */
union cvmx_lmcx_int {
	u64 u64;
	struct cvmx_lmcx_int_s {
		uint64_t reserved_14_63:50;
		uint64_t macram_ded_err:1;
		uint64_t macram_sec_err:1;
		uint64_t ddr_err:1;
		uint64_t dlcram_ded_err:1;
		uint64_t dlcram_sec_err:1;
		uint64_t ded_err:4;
		uint64_t sec_err:4;
		uint64_t nxm_wr_err:1;
	} s;
	struct cvmx_lmcx_int_cn61xx {
		uint64_t reserved_9_63:55;
		uint64_t ded_err:4;
		uint64_t sec_err:4;
		uint64_t nxm_wr_err:1;
	} cn61xx;
	struct cvmx_lmcx_int_cn61xx cn63xx;
	struct cvmx_lmcx_int_cn61xx cn63xxp1;
	struct cvmx_lmcx_int_cn61xx cn66xx;
	struct cvmx_lmcx_int_cn61xx cn68xx;
	struct cvmx_lmcx_int_cn61xx cn68xxp1;
	struct cvmx_lmcx_int_cn70xx {
		uint64_t reserved_12_63:52;
		uint64_t ddr_err:1;
		uint64_t dlcram_ded_err:1;
		uint64_t dlcram_sec_err:1;
		uint64_t ded_err:4;
		uint64_t sec_err:4;
		uint64_t nxm_wr_err:1;
	} cn70xx;
	struct cvmx_lmcx_int_cn70xx cn70xxp1;
	struct cvmx_lmcx_int_s cn73xx;
	struct cvmx_lmcx_int_s cn78xx;
	struct cvmx_lmcx_int_s cn78xxp1;
	struct cvmx_lmcx_int_cn61xx cnf71xx;
	struct cvmx_lmcx_int_s cnf75xx;
};

/**
 * cvmx_lmc#_int_en
 *
 * Unused CSR in O75.
 *
 */
union cvmx_lmcx_int_en {
	u64 u64;
	struct cvmx_lmcx_int_en_s {
		uint64_t reserved_6_63:58;
		uint64_t ddr_error_alert_ena:1;
		uint64_t dlcram_ded_ena:1;
		uint64_t dlcram_sec_ena:1;
		uint64_t intr_ded_ena:1;
		uint64_t intr_sec_ena:1;
		uint64_t intr_nxm_wr_ena:1;
	} s;
	struct cvmx_lmcx_int_en_cn61xx {
		uint64_t reserved_3_63:61;
		uint64_t intr_ded_ena:1;
		uint64_t intr_sec_ena:1;
		uint64_t intr_nxm_wr_ena:1;
	} cn61xx;
	struct cvmx_lmcx_int_en_cn61xx cn63xx;
	struct cvmx_lmcx_int_en_cn61xx cn63xxp1;
	struct cvmx_lmcx_int_en_cn61xx cn66xx;
	struct cvmx_lmcx_int_en_cn61xx cn68xx;
	struct cvmx_lmcx_int_en_cn61xx cn68xxp1;
	struct cvmx_lmcx_int_en_s cn70xx;
	struct cvmx_lmcx_int_en_s cn70xxp1;
	struct cvmx_lmcx_int_en_s cn73xx;
	struct cvmx_lmcx_int_en_s cn78xx;
	struct cvmx_lmcx_int_en_s cn78xxp1;
	struct cvmx_lmcx_int_en_cn61xx cnf71xx;
	struct cvmx_lmcx_int_en_s cnf75xx;
};

/**
 * cvmx_lmc#_lane#_crc_swiz
 *
 * This register contains the CRC bit swizzle for even and odd ranks.
 *
 */
union cvmx_lmcx_lanex_crc_swiz {
	u64 u64;
	struct cvmx_lmcx_lanex_crc_swiz_s {
		uint64_t reserved_56_63:8;
		uint64_t r1_swiz7:3;
		uint64_t r1_swiz6:3;
		uint64_t r1_swiz5:3;
		uint64_t r1_swiz4:3;
		uint64_t r1_swiz3:3;
		uint64_t r1_swiz2:3;
		uint64_t r1_swiz1:3;
		uint64_t r1_swiz0:3;
		uint64_t reserved_24_31:8;
		uint64_t r0_swiz7:3;
		uint64_t r0_swiz6:3;
		uint64_t r0_swiz5:3;
		uint64_t r0_swiz4:3;
		uint64_t r0_swiz3:3;
		uint64_t r0_swiz2:3;
		uint64_t r0_swiz1:3;
		uint64_t r0_swiz0:3;
	} s;
	struct cvmx_lmcx_lanex_crc_swiz_s cn73xx;
	struct cvmx_lmcx_lanex_crc_swiz_s cn78xx;
	struct cvmx_lmcx_lanex_crc_swiz_s cn78xxp1;
	struct cvmx_lmcx_lanex_crc_swiz_s cnf75xx;
};

/**
 * cvmx_lmc#_mem_cfg0
 *
 * Specify the RSL base addresses for the block
 *
 *                  LMC_MEM_CFG0 = LMC Memory Configuration Register0
 *
 * This register controls certain parameters of  Memory Configuration
 */
union cvmx_lmcx_mem_cfg0 {
	u64 u64;
	struct cvmx_lmcx_mem_cfg0_s {
		uint64_t reserved_32_63:32;
		uint64_t reset:1;
		uint64_t silo_qc:1;
		uint64_t bunk_ena:1;
		uint64_t ded_err:4;
		uint64_t sec_err:4;
		uint64_t intr_ded_ena:1;
		uint64_t intr_sec_ena:1;
		uint64_t tcl:4;
		uint64_t ref_int:6;
		uint64_t pbank_lsb:4;
		uint64_t row_lsb:3;
		uint64_t ecc_ena:1;
		uint64_t init_start:1;
	} s;
	struct cvmx_lmcx_mem_cfg0_s cn30xx;
	struct cvmx_lmcx_mem_cfg0_s cn31xx;
	struct cvmx_lmcx_mem_cfg0_s cn38xx;
	struct cvmx_lmcx_mem_cfg0_s cn38xxp2;
	struct cvmx_lmcx_mem_cfg0_s cn50xx;
	struct cvmx_lmcx_mem_cfg0_s cn52xx;
	struct cvmx_lmcx_mem_cfg0_s cn52xxp1;
	struct cvmx_lmcx_mem_cfg0_s cn56xx;
	struct cvmx_lmcx_mem_cfg0_s cn56xxp1;
	struct cvmx_lmcx_mem_cfg0_s cn58xx;
	struct cvmx_lmcx_mem_cfg0_s cn58xxp1;
};

/**
 * cvmx_lmc#_mem_cfg1
 *
 * LMC_MEM_CFG1 = LMC Memory Configuration Register1
 *
 * This register controls the External Memory Configuration Timing Parameters.
 * Please refer to the appropriate DDR part spec from your memory vendor for
 * the various values in this CSR. The details of each of these timing
 * parameters can be found in the JEDEC spec or the vendor spec of the
 * memory parts.
 */
union cvmx_lmcx_mem_cfg1 {
	u64 u64;
	struct cvmx_lmcx_mem_cfg1_s {
		uint64_t reserved_32_63:32;
		uint64_t comp_bypass:1;
		uint64_t trrd:3;
		uint64_t caslat:3;
		uint64_t tmrd:3;
		uint64_t trfc:5;
		uint64_t trp:4;
		uint64_t twtr:4;
		uint64_t trcd:4;
		uint64_t tras:5;
	} s;
	struct cvmx_lmcx_mem_cfg1_s cn30xx;
	struct cvmx_lmcx_mem_cfg1_s cn31xx;
	struct cvmx_lmcx_mem_cfg1_cn38xx {
		uint64_t reserved_31_63:33;
		uint64_t trrd:3;
		uint64_t caslat:3;
		uint64_t tmrd:3;
		uint64_t trfc:5;
		uint64_t trp:4;
		uint64_t twtr:4;
		uint64_t trcd:4;
		uint64_t tras:5;
	} cn38xx;
	struct cvmx_lmcx_mem_cfg1_cn38xx cn38xxp2;
	struct cvmx_lmcx_mem_cfg1_s cn50xx;
	struct cvmx_lmcx_mem_cfg1_cn38xx cn52xx;
	struct cvmx_lmcx_mem_cfg1_cn38xx cn52xxp1;
	struct cvmx_lmcx_mem_cfg1_cn38xx cn56xx;
	struct cvmx_lmcx_mem_cfg1_cn38xx cn56xxp1;
	struct cvmx_lmcx_mem_cfg1_cn38xx cn58xx;
	struct cvmx_lmcx_mem_cfg1_cn38xx cn58xxp1;
};

/**
 * cvmx_lmc#_modereg_params0
 *
 * These parameters are written into the DDR3/DDR4 MR0, MR1, MR2 and MR3
 * registers.
 *
 */
union cvmx_lmcx_modereg_params0 {
	u64 u64;
	struct cvmx_lmcx_modereg_params0_s {
		uint64_t reserved_28_63:36;
		uint64_t wrp_ext:1;
		uint64_t cl_ext:1;
		uint64_t al_ext:1;
		uint64_t ppd:1;
		uint64_t wrp:3;
		uint64_t dllr:1;
		uint64_t tm:1;
		uint64_t rbt:1;
		uint64_t cl:4;
		uint64_t bl:2;
		uint64_t qoff:1;
		uint64_t tdqs:1;
		uint64_t wlev:1;
		uint64_t al:2;
		uint64_t dll:1;
		uint64_t mpr:1;
		uint64_t mprloc:2;
		uint64_t cwl:3;
	} s;
	struct cvmx_lmcx_modereg_params0_cn61xx {
		uint64_t reserved_25_63:39;
		uint64_t ppd:1;
		uint64_t wrp:3;
		uint64_t dllr:1;
		uint64_t tm:1;
		uint64_t rbt:1;
		uint64_t cl:4;
		uint64_t bl:2;
		uint64_t qoff:1;
		uint64_t tdqs:1;
		uint64_t wlev:1;
		uint64_t al:2;
		uint64_t dll:1;
		uint64_t mpr:1;
		uint64_t mprloc:2;
		uint64_t cwl:3;
	} cn61xx;
	struct cvmx_lmcx_modereg_params0_cn61xx cn63xx;
	struct cvmx_lmcx_modereg_params0_cn61xx cn63xxp1;
	struct cvmx_lmcx_modereg_params0_cn61xx cn66xx;
	struct cvmx_lmcx_modereg_params0_cn61xx cn68xx;
	struct cvmx_lmcx_modereg_params0_cn61xx cn68xxp1;
	struct cvmx_lmcx_modereg_params0_cn61xx cn70xx;
	struct cvmx_lmcx_modereg_params0_cn61xx cn70xxp1;
	struct cvmx_lmcx_modereg_params0_s cn73xx;
	struct cvmx_lmcx_modereg_params0_s cn78xx;
	struct cvmx_lmcx_modereg_params0_s cn78xxp1;
	struct cvmx_lmcx_modereg_params0_cn61xx cnf71xx;
	struct cvmx_lmcx_modereg_params0_s cnf75xx;
};

/**
 * cvmx_lmc#_modereg_params1
 *
 * These parameters are written into the DDR3 MR0, MR1, MR2 and MR3 registers.
 *
 */
union cvmx_lmcx_modereg_params1 {
	u64 u64;
	struct cvmx_lmcx_modereg_params1_s {
		uint64_t reserved_55_63:9;
		uint64_t rtt_wr_11_ext:1;
		uint64_t rtt_wr_10_ext:1;
		uint64_t rtt_wr_01_ext:1;
		uint64_t rtt_wr_00_ext:1;
		uint64_t db_output_impedance:3;
		uint64_t rtt_nom_11:3;
		uint64_t dic_11:2;
		uint64_t rtt_wr_11:2;
		uint64_t srt_11:1;
		uint64_t asr_11:1;
		uint64_t pasr_11:3;
		uint64_t rtt_nom_10:3;
		uint64_t dic_10:2;
		uint64_t rtt_wr_10:2;
		uint64_t srt_10:1;
		uint64_t asr_10:1;
		uint64_t pasr_10:3;
		uint64_t rtt_nom_01:3;
		uint64_t dic_01:2;
		uint64_t rtt_wr_01:2;
		uint64_t srt_01:1;
		uint64_t asr_01:1;
		uint64_t pasr_01:3;
		uint64_t rtt_nom_00:3;
		uint64_t dic_00:2;
		uint64_t rtt_wr_00:2;
		uint64_t srt_00:1;
		uint64_t asr_00:1;
		uint64_t pasr_00:3;
	} s;
	struct cvmx_lmcx_modereg_params1_cn61xx {
		uint64_t reserved_48_63:16;
		uint64_t rtt_nom_11:3;
		uint64_t dic_11:2;
		uint64_t rtt_wr_11:2;
		uint64_t srt_11:1;
		uint64_t asr_11:1;
		uint64_t pasr_11:3;
		uint64_t rtt_nom_10:3;
		uint64_t dic_10:2;
		uint64_t rtt_wr_10:2;
		uint64_t srt_10:1;
		uint64_t asr_10:1;
		uint64_t pasr_10:3;
		uint64_t rtt_nom_01:3;
		uint64_t dic_01:2;
		uint64_t rtt_wr_01:2;
		uint64_t srt_01:1;
		uint64_t asr_01:1;
		uint64_t pasr_01:3;
		uint64_t rtt_nom_00:3;
		uint64_t dic_00:2;
		uint64_t rtt_wr_00:2;
		uint64_t srt_00:1;
		uint64_t asr_00:1;
		uint64_t pasr_00:3;
	} cn61xx;
	struct cvmx_lmcx_modereg_params1_cn61xx cn63xx;
	struct cvmx_lmcx_modereg_params1_cn61xx cn63xxp1;
	struct cvmx_lmcx_modereg_params1_cn61xx cn66xx;
	struct cvmx_lmcx_modereg_params1_cn61xx cn68xx;
	struct cvmx_lmcx_modereg_params1_cn61xx cn68xxp1;
	struct cvmx_lmcx_modereg_params1_cn61xx cn70xx;
	struct cvmx_lmcx_modereg_params1_cn61xx cn70xxp1;
	struct cvmx_lmcx_modereg_params1_s cn73xx;
	struct cvmx_lmcx_modereg_params1_s cn78xx;
	struct cvmx_lmcx_modereg_params1_s cn78xxp1;
	struct cvmx_lmcx_modereg_params1_cn61xx cnf71xx;
	struct cvmx_lmcx_modereg_params1_s cnf75xx;
};

/**
 * cvmx_lmc#_modereg_params2
 *
 * These parameters are written into the DDR4 mode registers.
 *
 */
union cvmx_lmcx_modereg_params2 {
	u64 u64;
	struct cvmx_lmcx_modereg_params2_s {
		uint64_t reserved_41_63:23;
		uint64_t vrefdq_train_en:1;
		uint64_t vref_range_11:1;
		uint64_t vref_value_11:6;
		uint64_t rtt_park_11:3;
		uint64_t vref_range_10:1;
		uint64_t vref_value_10:6;
		uint64_t rtt_park_10:3;
		uint64_t vref_range_01:1;
		uint64_t vref_value_01:6;
		uint64_t rtt_park_01:3;
		uint64_t vref_range_00:1;
		uint64_t vref_value_00:6;
		uint64_t rtt_park_00:3;
	} s;
	struct cvmx_lmcx_modereg_params2_s cn70xx;
	struct cvmx_lmcx_modereg_params2_cn70xxp1 {
		uint64_t reserved_40_63:24;
		uint64_t vref_range_11:1;
		uint64_t vref_value_11:6;
		uint64_t rtt_park_11:3;
		uint64_t vref_range_10:1;
		uint64_t vref_value_10:6;
		uint64_t rtt_park_10:3;
		uint64_t vref_range_01:1;
		uint64_t vref_value_01:6;
		uint64_t rtt_park_01:3;
		uint64_t vref_range_00:1;
		uint64_t vref_value_00:6;
		uint64_t rtt_park_00:3;
	} cn70xxp1;
	struct cvmx_lmcx_modereg_params2_s cn73xx;
	struct cvmx_lmcx_modereg_params2_s cn78xx;
	struct cvmx_lmcx_modereg_params2_s cn78xxp1;
	struct cvmx_lmcx_modereg_params2_s cnf75xx;
};

/**
 * cvmx_lmc#_modereg_params3
 *
 * These parameters are written into the DDR4 mode registers.
 *
 */
union cvmx_lmcx_modereg_params3 {
	u64 u64;
	struct cvmx_lmcx_modereg_params3_s {
		uint64_t reserved_39_63:25;
		uint64_t xrank_add_tccd_l:3;
		uint64_t xrank_add_tccd_s:3;
		uint64_t mpr_fmt:2;
		uint64_t wr_cmd_lat:2;
		uint64_t fgrm:3;
		uint64_t temp_sense:1;
		uint64_t pda:1;
		uint64_t gd:1;
		uint64_t crc:1;
		uint64_t lpasr:2;
		uint64_t tccd_l:3;
		uint64_t rd_dbi:1;
		uint64_t wr_dbi:1;
		uint64_t dm:1;
		uint64_t ca_par_pers:1;
		uint64_t odt_pd:1;
		uint64_t par_lat_mode:3;
		uint64_t wr_preamble:1;
		uint64_t rd_preamble:1;
		uint64_t sre_abort:1;
		uint64_t cal:3;
		uint64_t vref_mon:1;
		uint64_t tc_ref:1;
		uint64_t max_pd:1;
	} s;
	struct cvmx_lmcx_modereg_params3_cn70xx {
		uint64_t reserved_33_63:31;
		uint64_t mpr_fmt:2;
		uint64_t wr_cmd_lat:2;
		uint64_t fgrm:3;
		uint64_t temp_sense:1;
		uint64_t pda:1;
		uint64_t gd:1;
		uint64_t crc:1;
		uint64_t lpasr:2;
		uint64_t tccd_l:3;
		uint64_t rd_dbi:1;
		uint64_t wr_dbi:1;
		uint64_t dm:1;
		uint64_t ca_par_pers:1;
		uint64_t odt_pd:1;
		uint64_t par_lat_mode:3;
		uint64_t wr_preamble:1;
		uint64_t rd_preamble:1;
		uint64_t sre_abort:1;
		uint64_t cal:3;
		uint64_t vref_mon:1;
		uint64_t tc_ref:1;
		uint64_t max_pd:1;
	} cn70xx;
	struct cvmx_lmcx_modereg_params3_cn70xx cn70xxp1;
	struct cvmx_lmcx_modereg_params3_s cn73xx;
	struct cvmx_lmcx_modereg_params3_s cn78xx;
	struct cvmx_lmcx_modereg_params3_s cn78xxp1;
	struct cvmx_lmcx_modereg_params3_s cnf75xx;
};

/**
 * cvmx_lmc#_mpr_data0
 *
 * This register provides bits <63:0> of MPR data register.
 *
 */
union cvmx_lmcx_mpr_data0 {
	u64 u64;
	struct cvmx_lmcx_mpr_data0_s {
		uint64_t mpr_data:64;
	} s;
	struct cvmx_lmcx_mpr_data0_s cn70xx;
	struct cvmx_lmcx_mpr_data0_s cn70xxp1;
	struct cvmx_lmcx_mpr_data0_s cn73xx;
	struct cvmx_lmcx_mpr_data0_s cn78xx;
	struct cvmx_lmcx_mpr_data0_s cn78xxp1;
	struct cvmx_lmcx_mpr_data0_s cnf75xx;
};

/**
 * cvmx_lmc#_mpr_data1
 *
 * This register provides bits <127:64> of MPR data register.
 *
 */
union cvmx_lmcx_mpr_data1 {
	u64 u64;
	struct cvmx_lmcx_mpr_data1_s {
		uint64_t mpr_data:64;
	} s;
	struct cvmx_lmcx_mpr_data1_s cn70xx;
	struct cvmx_lmcx_mpr_data1_s cn70xxp1;
	struct cvmx_lmcx_mpr_data1_s cn73xx;
	struct cvmx_lmcx_mpr_data1_s cn78xx;
	struct cvmx_lmcx_mpr_data1_s cn78xxp1;
	struct cvmx_lmcx_mpr_data1_s cnf75xx;
};

/**
 * cvmx_lmc#_mpr_data2
 *
 * This register provides bits <143:128> of MPR data register.
 *
 */
union cvmx_lmcx_mpr_data2 {
	u64 u64;
	struct cvmx_lmcx_mpr_data2_s {
		uint64_t reserved_16_63:48;
		uint64_t mpr_data:16;
	} s;
	struct cvmx_lmcx_mpr_data2_s cn70xx;
	struct cvmx_lmcx_mpr_data2_s cn70xxp1;
	struct cvmx_lmcx_mpr_data2_s cn73xx;
	struct cvmx_lmcx_mpr_data2_s cn78xx;
	struct cvmx_lmcx_mpr_data2_s cn78xxp1;
	struct cvmx_lmcx_mpr_data2_s cnf75xx;
};

/**
 * cvmx_lmc#_mr_mpr_ctl
 *
 * This register provides the control functions when programming the MPR
 * of DDR4 DRAMs.
 *
 */
union cvmx_lmcx_mr_mpr_ctl {
	u64 u64;
	struct cvmx_lmcx_mr_mpr_ctl_s {
		uint64_t reserved_61_63:3;
		uint64_t mr_wr_secure_key_ena:1;
		uint64_t pba_func_space:3;
		uint64_t mr_wr_bg1:1;
		uint64_t mpr_sample_dq_enable:1;
		uint64_t pda_early_dqx:1;
		uint64_t mr_wr_pba_enable:1;
		uint64_t mr_wr_use_default_value:1;
		uint64_t mpr_whole_byte_enable:1;
		uint64_t mpr_byte_select:4;
		uint64_t mpr_bit_select:2;
		uint64_t mpr_wr:1;
		uint64_t mpr_loc:2;
		uint64_t mr_wr_pda_enable:1;
		uint64_t mr_wr_pda_mask:18;
		uint64_t mr_wr_rank:2;
		uint64_t mr_wr_sel:3;
		uint64_t mr_wr_addr:18;
	} s;
	struct cvmx_lmcx_mr_mpr_ctl_cn70xx {
		uint64_t reserved_52_63:12;
		uint64_t mpr_whole_byte_enable:1;
		uint64_t mpr_byte_select:4;
		uint64_t mpr_bit_select:2;
		uint64_t mpr_wr:1;
		uint64_t mpr_loc:2;
		uint64_t mr_wr_pda_enable:1;
		uint64_t mr_wr_pda_mask:18;
		uint64_t mr_wr_rank:2;
		uint64_t mr_wr_sel:3;
		uint64_t mr_wr_addr:18;
	} cn70xx;
	struct cvmx_lmcx_mr_mpr_ctl_cn70xx cn70xxp1;
	struct cvmx_lmcx_mr_mpr_ctl_s cn73xx;
	struct cvmx_lmcx_mr_mpr_ctl_s cn78xx;
	struct cvmx_lmcx_mr_mpr_ctl_s cn78xxp1;
	struct cvmx_lmcx_mr_mpr_ctl_s cnf75xx;
};

/**
 * cvmx_lmc#_ns_ctl
 *
 * This register contains control parameters for handling nonsecure accesses.
 *
 */
union cvmx_lmcx_ns_ctl {
	u64 u64;
	struct cvmx_lmcx_ns_ctl_s {
		uint64_t reserved_26_63:38;
		uint64_t ns_scramble_dis:1;
		uint64_t reserved_18_24:7;
		uint64_t adr_offset:18;
	} s;
	struct cvmx_lmcx_ns_ctl_s cn73xx;
	struct cvmx_lmcx_ns_ctl_s cn78xx;
	struct cvmx_lmcx_ns_ctl_s cnf75xx;
};

/**
 * cvmx_lmc#_nxm
 *
 * Following is the decoding for mem_msb/rank:
 * 0x0: mem_msb = mem_adr[25].
 * 0x1: mem_msb = mem_adr[26].
 * 0x2: mem_msb = mem_adr[27].
 * 0x3: mem_msb = mem_adr[28].
 * 0x4: mem_msb = mem_adr[29].
 * 0x5: mem_msb = mem_adr[30].
 * 0x6: mem_msb = mem_adr[31].
 * 0x7: mem_msb = mem_adr[32].
 * 0x8: mem_msb = mem_adr[33].
 * 0x9: mem_msb = mem_adr[34].
 * 0xA: mem_msb = mem_adr[35].
 * 0xB: mem_msb = mem_adr[36].
 * 0xC-0xF = Reserved.
 *
 * For example, for a DIMM made of Samsung's K4B1G0846C-ZCF7 1Gb
 * (16M * 8 bit * 8 bank) parts, the column address width = 10; so with
 * 10b of col, 3b of bus, 3b of bank, row_lsb = 16.
 * Therefore, row = mem_adr[29:16] and mem_msb = 4.
 *
 * Note also that addresses greater than the max defined space (pbank_msb)
 * are also treated as NXM accesses.
 */
union cvmx_lmcx_nxm {
	u64 u64;
	struct cvmx_lmcx_nxm_s {
		uint64_t reserved_40_63:24;
		uint64_t mem_msb_d3_r1:4;
		uint64_t mem_msb_d3_r0:4;
		uint64_t mem_msb_d2_r1:4;
		uint64_t mem_msb_d2_r0:4;
		uint64_t mem_msb_d1_r1:4;
		uint64_t mem_msb_d1_r0:4;
		uint64_t mem_msb_d0_r1:4;
		uint64_t mem_msb_d0_r0:4;
		uint64_t cs_mask:8;
	} s;
	struct cvmx_lmcx_nxm_cn52xx {
		uint64_t reserved_8_63:56;
		uint64_t cs_mask:8;
	} cn52xx;
	struct cvmx_lmcx_nxm_cn52xx cn56xx;
	struct cvmx_lmcx_nxm_cn52xx cn58xx;
	struct cvmx_lmcx_nxm_s cn61xx;
	struct cvmx_lmcx_nxm_s cn63xx;
	struct cvmx_lmcx_nxm_s cn63xxp1;
	struct cvmx_lmcx_nxm_s cn66xx;
	struct cvmx_lmcx_nxm_s cn68xx;
	struct cvmx_lmcx_nxm_s cn68xxp1;
	struct cvmx_lmcx_nxm_cn70xx {
		uint64_t reserved_24_63:40;
		uint64_t mem_msb_d1_r1:4;
		uint64_t mem_msb_d1_r0:4;
		uint64_t mem_msb_d0_r1:4;
		uint64_t mem_msb_d0_r0:4;
		uint64_t reserved_4_7:4;
		uint64_t cs_mask:4;
	} cn70xx;
	struct cvmx_lmcx_nxm_cn70xx cn70xxp1;
	struct cvmx_lmcx_nxm_cn70xx cn73xx;
	struct cvmx_lmcx_nxm_cn70xx cn78xx;
	struct cvmx_lmcx_nxm_cn70xx cn78xxp1;
	struct cvmx_lmcx_nxm_s cnf71xx;
	struct cvmx_lmcx_nxm_cn70xx cnf75xx;
};

/**
 * cvmx_lmc#_nxm_fadr
 *
 * This register captures only the first transaction with a NXM error while
 * an interrupt is pending, and only captures a subsequent event once the
 * interrupt is cleared by writing a one to LMC()_INT[NXM_ERR]. It captures
 * the actual L2C-LMC address provided to the LMC that caused the NXM error.
 * A read or write NXM error is captured only if enabled using the NXM
 * event enables.
 */
union cvmx_lmcx_nxm_fadr {
	u64 u64;
	struct cvmx_lmcx_nxm_fadr_s {
		uint64_t reserved_40_63:24;
		uint64_t nxm_faddr_ext:1;
		uint64_t nxm_src:1;
		uint64_t nxm_type:1;
		uint64_t nxm_faddr:37;
	} s;
	struct cvmx_lmcx_nxm_fadr_cn70xx {
		uint64_t reserved_39_63:25;
		uint64_t nxm_src:1;
		uint64_t nxm_type:1;
		uint64_t nxm_faddr:37;
	} cn70xx;
	struct cvmx_lmcx_nxm_fadr_cn70xx cn70xxp1;
	struct cvmx_lmcx_nxm_fadr_s cn73xx;
	struct cvmx_lmcx_nxm_fadr_s cn78xx;
	struct cvmx_lmcx_nxm_fadr_s cn78xxp1;
	struct cvmx_lmcx_nxm_fadr_s cnf75xx;
};

/**
 * cvmx_lmc#_ops_cnt
 *
 * LMC_OPS_CNT  = Performance Counters
 *
 */
union cvmx_lmcx_ops_cnt {
	u64 u64;
	struct cvmx_lmcx_ops_cnt_s {
		uint64_t opscnt:64;
	} s;
	struct cvmx_lmcx_ops_cnt_s cn61xx;
	struct cvmx_lmcx_ops_cnt_s cn63xx;
	struct cvmx_lmcx_ops_cnt_s cn63xxp1;
	struct cvmx_lmcx_ops_cnt_s cn66xx;
	struct cvmx_lmcx_ops_cnt_s cn68xx;
	struct cvmx_lmcx_ops_cnt_s cn68xxp1;
	struct cvmx_lmcx_ops_cnt_s cn70xx;
	struct cvmx_lmcx_ops_cnt_s cn70xxp1;
	struct cvmx_lmcx_ops_cnt_s cn73xx;
	struct cvmx_lmcx_ops_cnt_s cn78xx;
	struct cvmx_lmcx_ops_cnt_s cn78xxp1;
	struct cvmx_lmcx_ops_cnt_s cnf71xx;
	struct cvmx_lmcx_ops_cnt_s cnf75xx;
};

/**
 * cvmx_lmc#_ops_cnt_hi
 *
 * LMC_OPS_CNT_HI  = Performance Counters
 *
 */
union cvmx_lmcx_ops_cnt_hi {
	u64 u64;
	struct cvmx_lmcx_ops_cnt_hi_s {
		uint64_t reserved_32_63:32;
		uint64_t opscnt_hi:32;
	} s;
	struct cvmx_lmcx_ops_cnt_hi_s cn30xx;
	struct cvmx_lmcx_ops_cnt_hi_s cn31xx;
	struct cvmx_lmcx_ops_cnt_hi_s cn38xx;
	struct cvmx_lmcx_ops_cnt_hi_s cn38xxp2;
	struct cvmx_lmcx_ops_cnt_hi_s cn50xx;
	struct cvmx_lmcx_ops_cnt_hi_s cn52xx;
	struct cvmx_lmcx_ops_cnt_hi_s cn52xxp1;
	struct cvmx_lmcx_ops_cnt_hi_s cn56xx;
	struct cvmx_lmcx_ops_cnt_hi_s cn56xxp1;
	struct cvmx_lmcx_ops_cnt_hi_s cn58xx;
	struct cvmx_lmcx_ops_cnt_hi_s cn58xxp1;
};

/**
 * cvmx_lmc#_ops_cnt_lo
 *
 * LMC_OPS_CNT_LO  = Performance Counters
 *
 */
union cvmx_lmcx_ops_cnt_lo {
	u64 u64;
	struct cvmx_lmcx_ops_cnt_lo_s {
		uint64_t reserved_32_63:32;
		uint64_t opscnt_lo:32;
	} s;
	struct cvmx_lmcx_ops_cnt_lo_s cn30xx;
	struct cvmx_lmcx_ops_cnt_lo_s cn31xx;
	struct cvmx_lmcx_ops_cnt_lo_s cn38xx;
	struct cvmx_lmcx_ops_cnt_lo_s cn38xxp2;
	struct cvmx_lmcx_ops_cnt_lo_s cn50xx;
	struct cvmx_lmcx_ops_cnt_lo_s cn52xx;
	struct cvmx_lmcx_ops_cnt_lo_s cn52xxp1;
	struct cvmx_lmcx_ops_cnt_lo_s cn56xx;
	struct cvmx_lmcx_ops_cnt_lo_s cn56xxp1;
	struct cvmx_lmcx_ops_cnt_lo_s cn58xx;
	struct cvmx_lmcx_ops_cnt_lo_s cn58xxp1;
};

/**
 * cvmx_lmc#_phy_ctl
 *
 * LMC_PHY_CTL = LMC PHY Control
 *
 */
union cvmx_lmcx_phy_ctl {
	u64 u64;
	struct cvmx_lmcx_phy_ctl_s {
		uint64_t reserved_61_63:3;
		uint64_t dsk_dbg_load_dis:1;
		uint64_t dsk_dbg_overwrt_ena:1;
		uint64_t dsk_dbg_wr_mode:1;
		uint64_t data_rate_loopback:1;
		uint64_t dq_shallow_loopback:1;
		uint64_t dm_disable:1;
		uint64_t c1_sel:2;
		uint64_t c0_sel:2;
		uint64_t phy_reset:1;
		uint64_t dsk_dbg_rd_complete:1;
		uint64_t dsk_dbg_rd_data:10;
		uint64_t dsk_dbg_rd_start:1;
		uint64_t dsk_dbg_clk_scaler:2;
		uint64_t dsk_dbg_offset:2;
		uint64_t dsk_dbg_num_bits_sel:1;
		uint64_t dsk_dbg_byte_sel:4;
		uint64_t dsk_dbg_bit_sel:4;
		uint64_t dbi_mode_ena:1;
		uint64_t ddr_error_n_ena:1;
		uint64_t ref_pin_on:1;
		uint64_t dac_on:1;
		uint64_t int_pad_loopback_ena:1;
		uint64_t int_phy_loopback_ena:1;
		uint64_t phy_dsk_reset:1;
		uint64_t phy_dsk_byp:1;
		uint64_t phy_pwr_save_disable:1;
		uint64_t ten:1;
		uint64_t rx_always_on:1;
		uint64_t lv_mode:1;
		uint64_t ck_tune1:1;
		uint64_t ck_dlyout1:4;
		uint64_t ck_tune0:1;
		uint64_t ck_dlyout0:4;
		uint64_t loopback:1;
		uint64_t loopback_pos:1;
		uint64_t ts_stagger:1;
	} s;
	struct cvmx_lmcx_phy_ctl_cn61xx {
		uint64_t reserved_15_63:49;
		uint64_t rx_always_on:1;
		uint64_t lv_mode:1;
		uint64_t ck_tune1:1;
		uint64_t ck_dlyout1:4;
		uint64_t ck_tune0:1;
		uint64_t ck_dlyout0:4;
		uint64_t loopback:1;
		uint64_t loopback_pos:1;
		uint64_t ts_stagger:1;
	} cn61xx;
	struct cvmx_lmcx_phy_ctl_cn61xx cn63xx;
	struct cvmx_lmcx_phy_ctl_cn63xxp1 {
		uint64_t reserved_14_63:50;
		uint64_t lv_mode:1;
		uint64_t ck_tune1:1;
		uint64_t ck_dlyout1:4;
		uint64_t ck_tune0:1;
		uint64_t ck_dlyout0:4;
		uint64_t loopback:1;
		uint64_t loopback_pos:1;
		uint64_t ts_stagger:1;
	} cn63xxp1;
	struct cvmx_lmcx_phy_ctl_cn61xx cn66xx;
	struct cvmx_lmcx_phy_ctl_cn61xx cn68xx;
	struct cvmx_lmcx_phy_ctl_cn61xx cn68xxp1;
	struct cvmx_lmcx_phy_ctl_cn70xx {
		uint64_t reserved_51_63:13;
		uint64_t phy_reset:1;
		uint64_t dsk_dbg_rd_complete:1;
		uint64_t dsk_dbg_rd_data:10;
		uint64_t dsk_dbg_rd_start:1;
		uint64_t dsk_dbg_clk_scaler:2;
		uint64_t dsk_dbg_offset:2;
		uint64_t dsk_dbg_num_bits_sel:1;
		uint64_t dsk_dbg_byte_sel:4;
		uint64_t dsk_dbg_bit_sel:4;
		uint64_t dbi_mode_ena:1;
		uint64_t ddr_error_n_ena:1;
		uint64_t ref_pin_on:1;
		uint64_t dac_on:1;
		uint64_t int_pad_loopback_ena:1;
		uint64_t int_phy_loopback_ena:1;
		uint64_t phy_dsk_reset:1;
		uint64_t phy_dsk_byp:1;
		uint64_t phy_pwr_save_disable:1;
		uint64_t ten:1;
		uint64_t rx_always_on:1;
		uint64_t lv_mode:1;
		uint64_t ck_tune1:1;
		uint64_t ck_dlyout1:4;
		uint64_t ck_tune0:1;
		uint64_t ck_dlyout0:4;
		uint64_t loopback:1;
		uint64_t loopback_pos:1;
		uint64_t ts_stagger:1;
	} cn70xx;
	struct cvmx_lmcx_phy_ctl_cn70xx cn70xxp1;
	struct cvmx_lmcx_phy_ctl_cn73xx {
		uint64_t reserved_58_63:6;
		uint64_t data_rate_loopback:1;
		uint64_t dq_shallow_loopback:1;
		uint64_t dm_disable:1;
		uint64_t c1_sel:2;
		uint64_t c0_sel:2;
		uint64_t phy_reset:1;
		uint64_t dsk_dbg_rd_complete:1;
		uint64_t dsk_dbg_rd_data:10;
		uint64_t dsk_dbg_rd_start:1;
		uint64_t dsk_dbg_clk_scaler:2;
		uint64_t dsk_dbg_offset:2;
		uint64_t dsk_dbg_num_bits_sel:1;
		uint64_t dsk_dbg_byte_sel:4;
		uint64_t dsk_dbg_bit_sel:4;
		uint64_t dbi_mode_ena:1;
		uint64_t ddr_error_n_ena:1;
		uint64_t ref_pin_on:1;
		uint64_t dac_on:1;
		uint64_t int_pad_loopback_ena:1;
		uint64_t int_phy_loopback_ena:1;
		uint64_t phy_dsk_reset:1;
		uint64_t phy_dsk_byp:1;
		uint64_t phy_pwr_save_disable:1;
		uint64_t ten:1;
		uint64_t rx_always_on:1;
		uint64_t lv_mode:1;
		uint64_t ck_tune1:1;
		uint64_t ck_dlyout1:4;
		uint64_t ck_tune0:1;
		uint64_t ck_dlyout0:4;
		uint64_t loopback:1;
		uint64_t loopback_pos:1;
		uint64_t ts_stagger:1;
	} cn73xx;
	struct cvmx_lmcx_phy_ctl_s cn78xx;
	struct cvmx_lmcx_phy_ctl_s cn78xxp1;
	struct cvmx_lmcx_phy_ctl_cn61xx cnf71xx;
	struct cvmx_lmcx_phy_ctl_s cnf75xx;
};

/**
 * cvmx_lmc#_phy_ctl2
 */
union cvmx_lmcx_phy_ctl2 {
	u64 u64;
	struct cvmx_lmcx_phy_ctl2_s {
		uint64_t reserved_27_63:37;
		uint64_t dqs8_dsk_adj:3;
		uint64_t dqs7_dsk_adj:3;
		uint64_t dqs6_dsk_adj:3;
		uint64_t dqs5_dsk_adj:3;
		uint64_t dqs4_dsk_adj:3;
		uint64_t dqs3_dsk_adj:3;
		uint64_t dqs2_dsk_adj:3;
		uint64_t dqs1_dsk_adj:3;
		uint64_t dqs0_dsk_adj:3;
	} s;
	struct cvmx_lmcx_phy_ctl2_s cn78xx;
	struct cvmx_lmcx_phy_ctl2_s cnf75xx;
};

/**
 * cvmx_lmc#_pll_bwctl
 *
 * LMC_PLL_BWCTL  = DDR PLL Bandwidth Control Register
 *
 */
union cvmx_lmcx_pll_bwctl {
	u64 u64;
	struct cvmx_lmcx_pll_bwctl_s {
		uint64_t reserved_5_63:59;
		uint64_t bwupd:1;
		uint64_t bwctl:4;
	} s;
	struct cvmx_lmcx_pll_bwctl_s cn30xx;
	struct cvmx_lmcx_pll_bwctl_s cn31xx;
	struct cvmx_lmcx_pll_bwctl_s cn38xx;
	struct cvmx_lmcx_pll_bwctl_s cn38xxp2;
};

/**
 * cvmx_lmc#_pll_ctl
 *
 * LMC_PLL_CTL = LMC pll control
 *
 *
 * Notes:
 * This CSR is only relevant for LMC0. LMC1_PLL_CTL is not used.
 *
 * Exactly one of EN2, EN4, EN6, EN8, EN12, EN16 must be set.
 *
 * The resultant DDR_CK frequency is the DDR2_REF_CLK
 * frequency multiplied by:
 *
 *     (CLKF + 1) / ((CLKR + 1) * EN(2,4,6,8,12,16))
 *
 * The PLL frequency, which is:
 *
 *     (DDR2_REF_CLK freq) * ((CLKF + 1) / (CLKR + 1))
 *
 * must reside between 1.2 and 2.5 GHz. A faster PLL frequency is
 * desirable if there is a choice.
 */
union cvmx_lmcx_pll_ctl {
	u64 u64;
	struct cvmx_lmcx_pll_ctl_s {
		uint64_t reserved_30_63:34;
		uint64_t bypass:1;
		uint64_t fasten_n:1;
		uint64_t div_reset:1;
		uint64_t reset_n:1;
		uint64_t clkf:12;
		uint64_t clkr:6;
		uint64_t reserved_6_7:2;
		uint64_t en16:1;
		uint64_t en12:1;
		uint64_t en8:1;
		uint64_t en6:1;
		uint64_t en4:1;
		uint64_t en2:1;
	} s;
	struct cvmx_lmcx_pll_ctl_cn50xx {
		uint64_t reserved_29_63:35;
		uint64_t fasten_n:1;
		uint64_t div_reset:1;
		uint64_t reset_n:1;
		uint64_t clkf:12;
		uint64_t clkr:6;
		uint64_t reserved_6_7:2;
		uint64_t en16:1;
		uint64_t en12:1;
		uint64_t en8:1;
		uint64_t en6:1;
		uint64_t en4:1;
		uint64_t en2:1;
	} cn50xx;
	struct cvmx_lmcx_pll_ctl_s cn52xx;
	struct cvmx_lmcx_pll_ctl_s cn52xxp1;
	struct cvmx_lmcx_pll_ctl_cn50xx cn56xx;
	struct cvmx_lmcx_pll_ctl_cn56xxp1 {
		uint64_t reserved_28_63:36;
		uint64_t div_reset:1;
		uint64_t reset_n:1;
		uint64_t clkf:12;
		uint64_t clkr:6;
		uint64_t reserved_6_7:2;
		uint64_t en16:1;
		uint64_t en12:1;
		uint64_t en8:1;
		uint64_t en6:1;
		uint64_t en4:1;
		uint64_t en2:1;
	} cn56xxp1;
	struct cvmx_lmcx_pll_ctl_cn56xxp1 cn58xx;
	struct cvmx_lmcx_pll_ctl_cn56xxp1 cn58xxp1;
};

/**
 * cvmx_lmc#_pll_status
 *
 * LMC_PLL_STATUS = LMC pll status
 *
 */
union cvmx_lmcx_pll_status {
	u64 u64;
	struct cvmx_lmcx_pll_status_s {
		uint64_t reserved_32_63:32;
		uint64_t ddr__nctl:5;
		uint64_t ddr__pctl:5;
		uint64_t reserved_2_21:20;
		uint64_t rfslip:1;
		uint64_t fbslip:1;
	} s;
	struct cvmx_lmcx_pll_status_s cn50xx;
	struct cvmx_lmcx_pll_status_s cn52xx;
	struct cvmx_lmcx_pll_status_s cn52xxp1;
	struct cvmx_lmcx_pll_status_s cn56xx;
	struct cvmx_lmcx_pll_status_s cn56xxp1;
	struct cvmx_lmcx_pll_status_s cn58xx;
	struct cvmx_lmcx_pll_status_cn58xxp1 {
		uint64_t reserved_2_63:62;
		uint64_t rfslip:1;
		uint64_t fbslip:1;
	} cn58xxp1;
};

/**
 * cvmx_lmc#_ppr_ctl
 *
 * This register contains programmable timing and control parameters used
 * when running the post package repair sequence. The timing fields
 * PPR_CTL[TPGMPST], PPR_CTL[TPGM_EXIT] and PPR_CTL[TPGM] need to be set as
 * to satisfy the minimum values mentioned in the JEDEC DDR4 spec before
 * running the PPR sequence. See LMC()_SEQ_CTL[SEQ_SEL,INIT_START] to run
 * the PPR sequence.
 *
 * Running hard PPR may require LMC to issue security key as four consecutive
 * MR0 commands, each with a unique address field A[17:0]. Set the security
 * key in the general purpose CSRs as follows:
 *
 * _ Security key 0 = LMC()_GENERAL_PURPOSE0[DATA]<17:0>.
 * _ Security key 1 = LMC()_GENERAL_PURPOSE0[DATA]<35:18>.
 * _ Security key 2 = LMC()_GENERAL_PURPOSE1[DATA]<17:0>.
 * _ Security key 3 = LMC()_GENERAL_PURPOSE1[DATA]<35:18>.
 */
union cvmx_lmcx_ppr_ctl {
	u64 u64;
	struct cvmx_lmcx_ppr_ctl_s {
		uint64_t reserved_27_63:37;
		uint64_t lrank_sel:3;
		uint64_t skip_issue_security:1;
		uint64_t sppr:1;
		uint64_t tpgm:10;
		uint64_t tpgm_exit:5;
		uint64_t tpgmpst:7;
	} s;
	struct cvmx_lmcx_ppr_ctl_cn73xx {
		uint64_t reserved_24_63:40;
		uint64_t skip_issue_security:1;
		uint64_t sppr:1;
		uint64_t tpgm:10;
		uint64_t tpgm_exit:5;
		uint64_t tpgmpst:7;
	} cn73xx;
	struct cvmx_lmcx_ppr_ctl_s cn78xx;
	struct cvmx_lmcx_ppr_ctl_cn73xx cnf75xx;
};

/**
 * cvmx_lmc#_read_level_ctl
 *
 * Notes:
 * The HW writes and reads the cache block selected by ROW, COL, BNK and
 * the rank as part of a read-leveling sequence for a rank.
 * A cache block write is 16 72-bit words. PATTERN selects the write value.
 * For the first 8 words, the write value is the bit PATTERN<i> duplicated
 * into a 72-bit vector. The write value of the last 8 words is the inverse
 * of the write value of the first 8 words. See LMC*_READ_LEVEL_RANK*.
 */
union cvmx_lmcx_read_level_ctl {
	u64 u64;
	struct cvmx_lmcx_read_level_ctl_s {
		uint64_t reserved_44_63:20;
		uint64_t rankmask:4;
		uint64_t pattern:8;
		uint64_t row:16;
		uint64_t col:12;
		uint64_t reserved_3_3:1;
		uint64_t bnk:3;
	} s;
	struct cvmx_lmcx_read_level_ctl_s cn52xx;
	struct cvmx_lmcx_read_level_ctl_s cn52xxp1;
	struct cvmx_lmcx_read_level_ctl_s cn56xx;
	struct cvmx_lmcx_read_level_ctl_s cn56xxp1;
};

/**
 * cvmx_lmc#_read_level_dbg
 *
 * Notes:
 * A given read of LMC*_READ_LEVEL_DBG returns the read-leveling pass/fail
 * results for all possible delay settings (i.e. the BITMASK) for only one
 * byte in the last rank that the HW read-leveled.
 * LMC*_READ_LEVEL_DBG[BYTE] selects the particular byte.
 * To get these pass/fail results for another different rank, you must run
 * the hardware read-leveling again. For example, it is possible to get the
 * BITMASK results for every byte of every rank if you run read-leveling
 * separately for each rank, probing LMC*_READ_LEVEL_DBG between each
 * read-leveling.
 */
union cvmx_lmcx_read_level_dbg {
	u64 u64;
	struct cvmx_lmcx_read_level_dbg_s {
		uint64_t reserved_32_63:32;
		uint64_t bitmask:16;
		uint64_t reserved_4_15:12;
		uint64_t byte:4;
	} s;
	struct cvmx_lmcx_read_level_dbg_s cn52xx;
	struct cvmx_lmcx_read_level_dbg_s cn52xxp1;
	struct cvmx_lmcx_read_level_dbg_s cn56xx;
	struct cvmx_lmcx_read_level_dbg_s cn56xxp1;
};

/**
 * cvmx_lmc#_read_level_rank#
 *
 * Notes:
 * This is four CSRs per LMC, one per each rank.
 * Each CSR is written by HW during a read-leveling sequence for the rank.
 * (HW sets STATUS==3 after HW read-leveling completes for the rank.)
 * Each CSR may also be written by SW, but not while a read-leveling sequence
 * is in progress. (HW sets STATUS==1 after a CSR write.)
 * Deskew setting is measured in units of 1/4 DCLK, so the above BYTE*
 * values can range over 4 DCLKs.
 * SW initiates a HW read-leveling sequence by programming
 * LMC*_READ_LEVEL_CTL and writing INIT_START=1 with SEQUENCE=1.
 * See LMC*_READ_LEVEL_CTL.
 */
union cvmx_lmcx_read_level_rankx {
	u64 u64;
	struct cvmx_lmcx_read_level_rankx_s {
		uint64_t reserved_38_63:26;
		uint64_t status:2;
		uint64_t byte8:4;
		uint64_t byte7:4;
		uint64_t byte6:4;
		uint64_t byte5:4;
		uint64_t byte4:4;
		uint64_t byte3:4;
		uint64_t byte2:4;
		uint64_t byte1:4;
		uint64_t byte0:4;
	} s;
	struct cvmx_lmcx_read_level_rankx_s cn52xx;
	struct cvmx_lmcx_read_level_rankx_s cn52xxp1;
	struct cvmx_lmcx_read_level_rankx_s cn56xx;
	struct cvmx_lmcx_read_level_rankx_s cn56xxp1;
};

/**
 * cvmx_lmc#_ref_status
 *
 * This register contains the status of the refresh pending counter.
 *
 */
union cvmx_lmcx_ref_status {
	u64 u64;
	struct cvmx_lmcx_ref_status_s {
		uint64_t reserved_4_63:60;
		uint64_t ref_pend_max_clr:1;
		uint64_t ref_count:3;
	} s;
	struct cvmx_lmcx_ref_status_s cn73xx;
	struct cvmx_lmcx_ref_status_s cn78xx;
	struct cvmx_lmcx_ref_status_s cnf75xx;
};

/**
 * cvmx_lmc#_reset_ctl
 *
 * Specify the RSL base addresses for the block.
 *
 */
union cvmx_lmcx_reset_ctl {
	u64 u64;
	struct cvmx_lmcx_reset_ctl_s {
		uint64_t reserved_4_63:60;
		uint64_t ddr3psv:1;
		uint64_t ddr3psoft:1;
		uint64_t ddr3pwarm:1;
		uint64_t ddr3rst:1;
	} s;
	struct cvmx_lmcx_reset_ctl_s cn61xx;
	struct cvmx_lmcx_reset_ctl_s cn63xx;
	struct cvmx_lmcx_reset_ctl_s cn63xxp1;
	struct cvmx_lmcx_reset_ctl_s cn66xx;
	struct cvmx_lmcx_reset_ctl_s cn68xx;
	struct cvmx_lmcx_reset_ctl_s cn68xxp1;
	struct cvmx_lmcx_reset_ctl_s cn70xx;
	struct cvmx_lmcx_reset_ctl_s cn70xxp1;
	struct cvmx_lmcx_reset_ctl_s cn73xx;
	struct cvmx_lmcx_reset_ctl_s cn78xx;
	struct cvmx_lmcx_reset_ctl_s cn78xxp1;
	struct cvmx_lmcx_reset_ctl_s cnf71xx;
	struct cvmx_lmcx_reset_ctl_s cnf75xx;
};

/**
 * cvmx_lmc#_retry_config
 *
 * This register configures automatic retry operation.
 *
 */
union cvmx_lmcx_retry_config {
	u64 u64;
	struct cvmx_lmcx_retry_config_s {
		uint64_t reserved_56_63:8;
		uint64_t max_errors:24;
		uint64_t reserved_13_31:19;
		uint64_t error_continue:1;
		uint64_t reserved_9_11:3;
		uint64_t auto_error_continue:1;
		uint64_t reserved_5_7:3;
		uint64_t pulse_count_auto_clr:1;
		uint64_t reserved_1_3:3;
		uint64_t retry_enable:1;
	} s;
	struct cvmx_lmcx_retry_config_s cn73xx;
	struct cvmx_lmcx_retry_config_s cn78xx;
	struct cvmx_lmcx_retry_config_s cnf75xx;
};

/**
 * cvmx_lmc#_retry_status
 *
 * This register provides status on automatic retry operation.
 *
 */
union cvmx_lmcx_retry_status {
	u64 u64;
	struct cvmx_lmcx_retry_status_s {
		uint64_t clear_error_count:1;
		uint64_t clear_error_pulse_count:1;
		uint64_t reserved_57_61:5;
		uint64_t error_pulse_count_valid:1;
		uint64_t error_pulse_count_sat:1;
		uint64_t reserved_52_54:3;
		uint64_t error_pulse_count:4;
		uint64_t reserved_45_47:3;
		uint64_t error_sequence:5;
		uint64_t reserved_33_39:7;
		uint64_t error_type:1;
		uint64_t reserved_24_31:8;
		uint64_t error_count:24;
	} s;
	struct cvmx_lmcx_retry_status_s cn73xx;
	struct cvmx_lmcx_retry_status_s cn78xx;
	struct cvmx_lmcx_retry_status_s cnf75xx;
};

/**
 * cvmx_lmc#_rlevel_ctl
 */
union cvmx_lmcx_rlevel_ctl {
	u64 u64;
	struct cvmx_lmcx_rlevel_ctl_s {
		uint64_t reserved_33_63:31;
		uint64_t tccd_sel:1;
		uint64_t pattern:8;
		uint64_t reserved_22_23:2;
		uint64_t delay_unload_3:1;
		uint64_t delay_unload_2:1;
		uint64_t delay_unload_1:1;
		uint64_t delay_unload_0:1;
		uint64_t bitmask:8;
		uint64_t or_dis:1;
		uint64_t offset_en:1;
		uint64_t offset:4;
		uint64_t byte:4;
	} s;
	struct cvmx_lmcx_rlevel_ctl_cn61xx {
		uint64_t reserved_22_63:42;
		uint64_t delay_unload_3:1;
		uint64_t delay_unload_2:1;
		uint64_t delay_unload_1:1;
		uint64_t delay_unload_0:1;
		uint64_t bitmask:8;
		uint64_t or_dis:1;
		uint64_t offset_en:1;
		uint64_t offset:4;
		uint64_t byte:4;
	} cn61xx;
	struct cvmx_lmcx_rlevel_ctl_cn61xx cn63xx;
	struct cvmx_lmcx_rlevel_ctl_cn63xxp1 {
		uint64_t reserved_9_63:55;
		uint64_t offset_en:1;
		uint64_t offset:4;
		uint64_t byte:4;
	} cn63xxp1;
	struct cvmx_lmcx_rlevel_ctl_cn61xx cn66xx;
	struct cvmx_lmcx_rlevel_ctl_cn61xx cn68xx;
	struct cvmx_lmcx_rlevel_ctl_cn61xx cn68xxp1;
	struct cvmx_lmcx_rlevel_ctl_cn70xx {
		uint64_t reserved_32_63:32;
		uint64_t pattern:8;
		uint64_t reserved_22_23:2;
		uint64_t delay_unload_3:1;
		uint64_t delay_unload_2:1;
		uint64_t delay_unload_1:1;
		uint64_t delay_unload_0:1;
		uint64_t bitmask:8;
		uint64_t or_dis:1;
		uint64_t offset_en:1;
		uint64_t offset:4;
		uint64_t byte:4;
	} cn70xx;
	struct cvmx_lmcx_rlevel_ctl_cn70xx cn70xxp1;
	struct cvmx_lmcx_rlevel_ctl_cn70xx cn73xx;
	struct cvmx_lmcx_rlevel_ctl_s cn78xx;
	struct cvmx_lmcx_rlevel_ctl_s cn78xxp1;
	struct cvmx_lmcx_rlevel_ctl_cn61xx cnf71xx;
	struct cvmx_lmcx_rlevel_ctl_s cnf75xx;
};

/**
 * cvmx_lmc#_rlevel_dbg
 *
 * A given read of LMC()_RLEVEL_DBG returns the read leveling pass/fail
 * results for all possible delay settings (i.e. the BITMASK) for only
 * one byte in the last rank that the hardware ran read leveling on.
 * LMC()_RLEVEL_CTL[BYTE] selects the particular byte. To get these
 * pass/fail results for a different rank, you must run the hardware
 * read leveling again. For example, it is possible to get the [BITMASK]
 * results for every byte of every rank if you run read leveling separately
 * for each rank, probing LMC()_RLEVEL_DBG between each read- leveling.
 */
union cvmx_lmcx_rlevel_dbg {
	u64 u64;
	struct cvmx_lmcx_rlevel_dbg_s {
		uint64_t bitmask:64;
	} s;
	struct cvmx_lmcx_rlevel_dbg_s cn61xx;
	struct cvmx_lmcx_rlevel_dbg_s cn63xx;
	struct cvmx_lmcx_rlevel_dbg_s cn63xxp1;
	struct cvmx_lmcx_rlevel_dbg_s cn66xx;
	struct cvmx_lmcx_rlevel_dbg_s cn68xx;
	struct cvmx_lmcx_rlevel_dbg_s cn68xxp1;
	struct cvmx_lmcx_rlevel_dbg_s cn70xx;
	struct cvmx_lmcx_rlevel_dbg_s cn70xxp1;
	struct cvmx_lmcx_rlevel_dbg_s cn73xx;
	struct cvmx_lmcx_rlevel_dbg_s cn78xx;
	struct cvmx_lmcx_rlevel_dbg_s cn78xxp1;
	struct cvmx_lmcx_rlevel_dbg_s cnf71xx;
	struct cvmx_lmcx_rlevel_dbg_s cnf75xx;
};

/**
 * cvmx_lmc#_rlevel_rank#
 *
 * Four of these CSRs exist per LMC, one for each rank. Read level setting
 * is measured in units of 1/4 CK, so the BYTEn values can range over 16 CK
 * cycles. Each CSR is written by hardware during a read leveling sequence
 * for the rank. (Hardware sets [STATUS] to 3 after hardware read leveling
 * completes for the rank.)
 *
 * If hardware is unable to find a match per LMC()_RLEVEL_CTL[OFFSET_EN] and
 * LMC()_RLEVEL_CTL[OFFSET], then hardware sets
 * LMC()_RLEVEL_RANK()[BYTEn<5:0>] to 0x0.
 *
 * Each CSR may also be written by software, but not while a read leveling
 * sequence is in progress. (Hardware sets [STATUS] to 1 after a CSR write.)
 * Software initiates a hardware read leveling sequence by programming
 * LMC()_RLEVEL_CTL and writing [INIT_START] = 1 with [SEQ_SEL]=1.
 * See LMC()_RLEVEL_CTL.
 *
 * LMC()_RLEVEL_RANKi values for ranks i without attached DRAM should be set
 * such that they do not increase the range of possible BYTE values for any
 * byte lane. The easiest way to do this is to set LMC()_RLEVEL_RANKi =
 * LMC()_RLEVEL_RANKj, where j is some rank with attached DRAM whose
 * LMC()_RLEVEL_RANKj is already fully initialized.
 */
union cvmx_lmcx_rlevel_rankx {
	u64 u64;
	struct cvmx_lmcx_rlevel_rankx_s {
		uint64_t reserved_56_63:8;
		uint64_t status:2;
		uint64_t byte8:6;
		uint64_t byte7:6;
		uint64_t byte6:6;
		uint64_t byte5:6;
		uint64_t byte4:6;
		uint64_t byte3:6;
		uint64_t byte2:6;
		uint64_t byte1:6;
		uint64_t byte0:6;
	} s;
	struct cvmx_lmcx_rlevel_rankx_s cn61xx;
	struct cvmx_lmcx_rlevel_rankx_s cn63xx;
	struct cvmx_lmcx_rlevel_rankx_s cn63xxp1;
	struct cvmx_lmcx_rlevel_rankx_s cn66xx;
	struct cvmx_lmcx_rlevel_rankx_s cn68xx;
	struct cvmx_lmcx_rlevel_rankx_s cn68xxp1;
	struct cvmx_lmcx_rlevel_rankx_s cn70xx;
	struct cvmx_lmcx_rlevel_rankx_s cn70xxp1;
	struct cvmx_lmcx_rlevel_rankx_s cn73xx;
	struct cvmx_lmcx_rlevel_rankx_s cn78xx;
	struct cvmx_lmcx_rlevel_rankx_s cn78xxp1;
	struct cvmx_lmcx_rlevel_rankx_s cnf71xx;
	struct cvmx_lmcx_rlevel_rankx_s cnf75xx;
};

/**
 * cvmx_lmc#_rodt_comp_ctl
 *
 * LMC_RODT_COMP_CTL = LMC Compensation control
 *
 */
union cvmx_lmcx_rodt_comp_ctl {
	u64 u64;
	struct cvmx_lmcx_rodt_comp_ctl_s {
		uint64_t reserved_17_63:47;
		uint64_t enable:1;
		uint64_t reserved_12_15:4;
		uint64_t nctl:4;
		uint64_t reserved_5_7:3;
		uint64_t pctl:5;
	} s;
	struct cvmx_lmcx_rodt_comp_ctl_s cn50xx;
	struct cvmx_lmcx_rodt_comp_ctl_s cn52xx;
	struct cvmx_lmcx_rodt_comp_ctl_s cn52xxp1;
	struct cvmx_lmcx_rodt_comp_ctl_s cn56xx;
	struct cvmx_lmcx_rodt_comp_ctl_s cn56xxp1;
	struct cvmx_lmcx_rodt_comp_ctl_s cn58xx;
	struct cvmx_lmcx_rodt_comp_ctl_s cn58xxp1;
};

/**
 * cvmx_lmc#_rodt_ctl
 *
 * LMC_RODT_CTL = Obsolete LMC Read OnDieTermination control
 * See the description in LMC_WODT_CTL1. On Reads, Octeon only supports
 * turning on ODT's in the lower 2 DIMM's with the masks as below.
 *
 * Notes:
 * When a given RANK in position N is selected, the RODT _HI and _LO masks
 * for that position are used.
 * Mask[3:0] is used for RODT control of the RANKs in positions 3, 2, 1,
 * and 0, respectively.
 * In  64b mode, DIMMs are assumed to be ordered in the following order:
 *  position 3: [unused        , DIMM1_RANK1_LO]
 *  position 2: [unused        , DIMM1_RANK0_LO]
 *  position 1: [unused        , DIMM0_RANK1_LO]
 *  position 0: [unused        , DIMM0_RANK0_LO]
 * In 128b mode, DIMMs are assumed to be ordered in the following order:
 *  position 3: [DIMM3_RANK1_HI, DIMM1_RANK1_LO]
 *  position 2: [DIMM3_RANK0_HI, DIMM1_RANK0_LO]
 *  position 1: [DIMM2_RANK1_HI, DIMM0_RANK1_LO]
 *  position 0: [DIMM2_RANK0_HI, DIMM0_RANK0_LO]
 */
union cvmx_lmcx_rodt_ctl {
	u64 u64;
	struct cvmx_lmcx_rodt_ctl_s {
		uint64_t reserved_32_63:32;
		uint64_t rodt_hi3:4;
		uint64_t rodt_hi2:4;
		uint64_t rodt_hi1:4;
		uint64_t rodt_hi0:4;
		uint64_t rodt_lo3:4;
		uint64_t rodt_lo2:4;
		uint64_t rodt_lo1:4;
		uint64_t rodt_lo0:4;
	} s;
	struct cvmx_lmcx_rodt_ctl_s cn30xx;
	struct cvmx_lmcx_rodt_ctl_s cn31xx;
	struct cvmx_lmcx_rodt_ctl_s cn38xx;
	struct cvmx_lmcx_rodt_ctl_s cn38xxp2;
	struct cvmx_lmcx_rodt_ctl_s cn50xx;
	struct cvmx_lmcx_rodt_ctl_s cn52xx;
	struct cvmx_lmcx_rodt_ctl_s cn52xxp1;
	struct cvmx_lmcx_rodt_ctl_s cn56xx;
	struct cvmx_lmcx_rodt_ctl_s cn56xxp1;
	struct cvmx_lmcx_rodt_ctl_s cn58xx;
	struct cvmx_lmcx_rodt_ctl_s cn58xxp1;
};

/**
 * cvmx_lmc#_rodt_mask
 *
 * System designers may desire to terminate DQ/DQS lines for higher frequency
 * DDR operations, especially on a multirank system. DDR3 DQ/DQS I/Os have
 * built-in termination resistors that can be turned on or off by the
 * controller, after meeting TAOND and TAOF timing requirements.
 *
 * Each rank has its own ODT pin that fans out to all the memory parts in
 * that DIMM. System designers may prefer different combinations of ODT ONs
 * for read operations into different ranks. CNXXXX supports full
 * programmability by way of the mask register below. Each rank position has
 * its own 4-bit programmable field. When the controller does a read to that
 * rank, it sets the 4 ODT pins to the MASK pins below. For example, when
 * doing a read from Rank0, a system designer may desire to terminate the
 * lines with the resistor on DIMM0/Rank1. The mask [RODT_D0_R0] would then
 * be [0010].
 *
 * CNXXXX drives the appropriate mask values on the ODT pins by default.
 * If this feature is not required, write 0x0 in this register. Note that,
 * as per the JEDEC DDR3 specifications, the ODT pin for the rank that is
 * being read should always be 0x0. When a given RANK is selected, the RODT
 * mask for that rank is used. The resulting RODT mask is driven to the
 * DIMMs in the following manner:
 */
union cvmx_lmcx_rodt_mask {
	u64 u64;
	struct cvmx_lmcx_rodt_mask_s {
		uint64_t rodt_d3_r1:8;
		uint64_t rodt_d3_r0:8;
		uint64_t rodt_d2_r1:8;
		uint64_t rodt_d2_r0:8;
		uint64_t rodt_d1_r1:8;
		uint64_t rodt_d1_r0:8;
		uint64_t rodt_d0_r1:8;
		uint64_t rodt_d0_r0:8;
	} s;
	struct cvmx_lmcx_rodt_mask_s cn61xx;
	struct cvmx_lmcx_rodt_mask_s cn63xx;
	struct cvmx_lmcx_rodt_mask_s cn63xxp1;
	struct cvmx_lmcx_rodt_mask_s cn66xx;
	struct cvmx_lmcx_rodt_mask_s cn68xx;
	struct cvmx_lmcx_rodt_mask_s cn68xxp1;
	struct cvmx_lmcx_rodt_mask_cn70xx {
		uint64_t reserved_28_63:36;
		uint64_t rodt_d1_r1:4;
		uint64_t reserved_20_23:4;
		uint64_t rodt_d1_r0:4;
		uint64_t reserved_12_15:4;
		uint64_t rodt_d0_r1:4;
		uint64_t reserved_4_7:4;
		uint64_t rodt_d0_r0:4;
	} cn70xx;
	struct cvmx_lmcx_rodt_mask_cn70xx cn70xxp1;
	struct cvmx_lmcx_rodt_mask_cn70xx cn73xx;
	struct cvmx_lmcx_rodt_mask_cn70xx cn78xx;
	struct cvmx_lmcx_rodt_mask_cn70xx cn78xxp1;
	struct cvmx_lmcx_rodt_mask_s cnf71xx;
	struct cvmx_lmcx_rodt_mask_cn70xx cnf75xx;
};

/**
 * cvmx_lmc#_scramble_cfg0
 *
 * LMC_SCRAMBLE_CFG0 = LMC Scramble Config0
 *
 */
union cvmx_lmcx_scramble_cfg0 {
	u64 u64;
	struct cvmx_lmcx_scramble_cfg0_s {
		uint64_t key:64;
	} s;
	struct cvmx_lmcx_scramble_cfg0_s cn61xx;
	struct cvmx_lmcx_scramble_cfg0_s cn66xx;
	struct cvmx_lmcx_scramble_cfg0_s cn70xx;
	struct cvmx_lmcx_scramble_cfg0_s cn70xxp1;
	struct cvmx_lmcx_scramble_cfg0_s cn73xx;
	struct cvmx_lmcx_scramble_cfg0_s cn78xx;
	struct cvmx_lmcx_scramble_cfg0_s cn78xxp1;
	struct cvmx_lmcx_scramble_cfg0_s cnf71xx;
	struct cvmx_lmcx_scramble_cfg0_s cnf75xx;
};

/**
 * cvmx_lmc#_scramble_cfg1
 *
 * These registers set the aliasing that uses the lowest, legal chip select(s).
 *
 */
union cvmx_lmcx_scramble_cfg1 {
	u64 u64;
	struct cvmx_lmcx_scramble_cfg1_s {
		uint64_t key:64;
	} s;
	struct cvmx_lmcx_scramble_cfg1_s cn61xx;
	struct cvmx_lmcx_scramble_cfg1_s cn66xx;
	struct cvmx_lmcx_scramble_cfg1_s cn70xx;
	struct cvmx_lmcx_scramble_cfg1_s cn70xxp1;
	struct cvmx_lmcx_scramble_cfg1_s cn73xx;
	struct cvmx_lmcx_scramble_cfg1_s cn78xx;
	struct cvmx_lmcx_scramble_cfg1_s cn78xxp1;
	struct cvmx_lmcx_scramble_cfg1_s cnf71xx;
	struct cvmx_lmcx_scramble_cfg1_s cnf75xx;
};

/**
 * cvmx_lmc#_scramble_cfg2
 */
union cvmx_lmcx_scramble_cfg2 {
	u64 u64;
	struct cvmx_lmcx_scramble_cfg2_s {
		uint64_t key:64;
	} s;
	struct cvmx_lmcx_scramble_cfg2_s cn73xx;
	struct cvmx_lmcx_scramble_cfg2_s cn78xx;
	struct cvmx_lmcx_scramble_cfg2_s cnf75xx;
};

/**
 * cvmx_lmc#_scrambled_fadr
 *
 * LMC()_FADR captures the failing pre-scrambled address location (split into
 * DIMM, bunk, bank, etc). If scrambling is off, LMC()_FADR also captures the
 * failing physical location in the DRAM parts. LMC()_SCRAMBLED_FADR captures
 * the actual failing address location in the physical DRAM parts, i.e.:
 *
 * * If scrambling is on, LMC()_SCRAMBLED_FADR contains the failing physical
 * location in the
 * DRAM parts (split into DIMM, bunk, bank, etc).
 *
 * * If scrambling is off, the pre-scramble and post-scramble addresses are
 * the same, and so the
 * contents of LMC()_SCRAMBLED_FADR match the contents of LMC()_FADR.
 *
 * This register only captures the first transaction with ECC errors. A DED
 * error can over-write this register with its failing addresses if the first
 * error was a SEC. If you write LMC()_CONFIG -> SEC_ERR/DED_ERR, it clears
 * the error bits and captures the next failing address. If [FDIMM] is 1,
 * that means the error is in the higher DIMM.
 */
union cvmx_lmcx_scrambled_fadr {
	u64 u64;
	struct cvmx_lmcx_scrambled_fadr_s {
		uint64_t reserved_43_63:21;
		uint64_t fcid:3;
		uint64_t fill_order:2;
		uint64_t reserved_14_37:24;
		uint64_t fcol:14;
	} s;
	struct cvmx_lmcx_scrambled_fadr_cn61xx {
		uint64_t reserved_36_63:28;
		uint64_t fdimm:2;
		uint64_t fbunk:1;
		uint64_t fbank:3;
		uint64_t frow:16;
		uint64_t fcol:14;
	} cn61xx;
	struct cvmx_lmcx_scrambled_fadr_cn61xx cn66xx;
	struct cvmx_lmcx_scrambled_fadr_cn70xx {
		uint64_t reserved_40_63:24;
		uint64_t fill_order:2;
		uint64_t fdimm:1;
		uint64_t fbunk:1;
		uint64_t fbank:4;
		uint64_t frow:18;
		uint64_t fcol:14;
	} cn70xx;
	struct cvmx_lmcx_scrambled_fadr_cn70xx cn70xxp1;
	struct cvmx_lmcx_scrambled_fadr_cn73xx {
		uint64_t reserved_43_63:21;
		uint64_t fcid:3;
		uint64_t fill_order:2;
		uint64_t fdimm:1;
		uint64_t fbunk:1;
		uint64_t fbank:4;
		uint64_t frow:18;
		uint64_t fcol:14;
	} cn73xx;
	struct cvmx_lmcx_scrambled_fadr_cn73xx cn78xx;
	struct cvmx_lmcx_scrambled_fadr_cn73xx cn78xxp1;
	struct cvmx_lmcx_scrambled_fadr_cn61xx cnf71xx;
	struct cvmx_lmcx_scrambled_fadr_cn73xx cnf75xx;
};

/**
 * cvmx_lmc#_seq_ctl
 *
 * This register is used to initiate the various control sequences in the LMC.
 *
 */
union cvmx_lmcx_seq_ctl {
	u64 u64;
	struct cvmx_lmcx_seq_ctl_s {
		uint64_t reserved_6_63:58;
		uint64_t seq_complete:1;
		uint64_t seq_sel:4;
		uint64_t init_start:1;
	} s;
	struct cvmx_lmcx_seq_ctl_s cn70xx;
	struct cvmx_lmcx_seq_ctl_s cn70xxp1;
	struct cvmx_lmcx_seq_ctl_s cn73xx;
	struct cvmx_lmcx_seq_ctl_s cn78xx;
	struct cvmx_lmcx_seq_ctl_s cn78xxp1;
	struct cvmx_lmcx_seq_ctl_s cnf75xx;
};

/**
 * cvmx_lmc#_slot_ctl0
 *
 * This register is an assortment of control fields needed by the memory
 * controller. If software has not previously written to this register
 * (since the last DRESET), hardware updates the fields in this register to
 * the minimum allowed value when any of LMC()_RLEVEL_RANK(),
 * LMC()_WLEVEL_RANK(), LMC()_CONTROL, and LMC()_MODEREG_PARAMS0 registers
 * change. Ideally, only read this register after LMC has been initialized and
 * LMC()_RLEVEL_RANK(), LMC()_WLEVEL_RANK() have valid data.
 *
 * The interpretation of the fields in this register depends on
 * LMC(0)_CONFIG[DDR2T]:
 *
 * * If LMC()_CONFIG[DDR2T]=1, (FieldValue + 4) is the minimum CK cycles
 * between when the DRAM part registers CAS commands of the first and
 * second types from different cache blocks.
 *
 * If LMC()_CONFIG[DDR2T]=0, (FieldValue + 3) is the minimum CK cycles
 * between when the DRAM part registers CAS commands of the first and second
 * types from different cache blocks.
 * FieldValue = 0 is always illegal in this case.
 * The hardware-calculated minimums for these fields are shown in
 * LMC(0)_SLOT_CTL0 Hardware-Calculated Minimums.
 */
union cvmx_lmcx_slot_ctl0 {
	u64 u64;
	struct cvmx_lmcx_slot_ctl0_s {
		uint64_t reserved_50_63:14;
		uint64_t w2r_l_init_ext:1;
		uint64_t w2r_init_ext:1;
		uint64_t w2w_l_init:6;
		uint64_t w2r_l_init:6;
		uint64_t r2w_l_init:6;
		uint64_t r2r_l_init:6;
		uint64_t w2w_init:6;
		uint64_t w2r_init:6;
		uint64_t r2w_init:6;
		uint64_t r2r_init:6;
	} s;
	struct cvmx_lmcx_slot_ctl0_cn61xx {
		uint64_t reserved_24_63:40;
		uint64_t w2w_init:6;
		uint64_t w2r_init:6;
		uint64_t r2w_init:6;
		uint64_t r2r_init:6;
	} cn61xx;
	struct cvmx_lmcx_slot_ctl0_cn61xx cn63xx;
	struct cvmx_lmcx_slot_ctl0_cn61xx cn63xxp1;
	struct cvmx_lmcx_slot_ctl0_cn61xx cn66xx;
	struct cvmx_lmcx_slot_ctl0_cn61xx cn68xx;
	struct cvmx_lmcx_slot_ctl0_cn61xx cn68xxp1;
	struct cvmx_lmcx_slot_ctl0_cn70xx {
		uint64_t reserved_48_63:16;
		uint64_t w2w_l_init:6;
		uint64_t w2r_l_init:6;
		uint64_t r2w_l_init:6;
		uint64_t r2r_l_init:6;
		uint64_t w2w_init:6;
		uint64_t w2r_init:6;
		uint64_t r2w_init:6;
		uint64_t r2r_init:6;
	} cn70xx;
	struct cvmx_lmcx_slot_ctl0_cn70xx cn70xxp1;
	struct cvmx_lmcx_slot_ctl0_s cn73xx;
	struct cvmx_lmcx_slot_ctl0_s cn78xx;
	struct cvmx_lmcx_slot_ctl0_s cn78xxp1;
	struct cvmx_lmcx_slot_ctl0_cn61xx cnf71xx;
	struct cvmx_lmcx_slot_ctl0_s cnf75xx;
};

/**
 * cvmx_lmc#_slot_ctl1
 *
 * This register is an assortment of control fields needed by the memory
 * controller. If software has not previously written to this register
 * (since the last DRESET), hardware updates the fields in this register to
 * the minimum allowed value when any of LMC()_RLEVEL_RANK(),
 * LMC()_WLEVEL_RANK(), LMC()_CONTROL and LMC()_MODEREG_PARAMS0 change.
 * Ideally, only read this register after LMC has been initialized and
 * LMC()_RLEVEL_RANK(), LMC()_WLEVEL_RANK() have valid data.
 *
 * The interpretation of the fields in this CSR depends on
 * LMC(0)_CONFIG[DDR2T]:
 *
 * * If LMC()_CONFIG[DDR2T]=1, (FieldValue + 4) is the minimum CK cycles
 * between when the DRAM part registers CAS commands of the first and
 * second types from different cache blocks.
 *
 * * If LMC()_CONFIG[DDR2T]=0, (FieldValue + 3) is the minimum CK cycles
 * between when the DRAM part registers CAS commands of the first and
 * second types from different cache blocks.
 * FieldValue = 0 is always illegal in this case.
 *
 * The hardware-calculated minimums for these fields are shown in
 * LMC(0)_SLOT_CTL1 Hardware-Calculated Minimums.
 */
union cvmx_lmcx_slot_ctl1 {
	u64 u64;
	struct cvmx_lmcx_slot_ctl1_s {
		uint64_t reserved_24_63:40;
		uint64_t w2w_xrank_init:6;
		uint64_t w2r_xrank_init:6;
		uint64_t r2w_xrank_init:6;
		uint64_t r2r_xrank_init:6;
	} s;
	struct cvmx_lmcx_slot_ctl1_s cn61xx;
	struct cvmx_lmcx_slot_ctl1_s cn63xx;
	struct cvmx_lmcx_slot_ctl1_s cn63xxp1;
	struct cvmx_lmcx_slot_ctl1_s cn66xx;
	struct cvmx_lmcx_slot_ctl1_s cn68xx;
	struct cvmx_lmcx_slot_ctl1_s cn68xxp1;
	struct cvmx_lmcx_slot_ctl1_s cn70xx;
	struct cvmx_lmcx_slot_ctl1_s cn70xxp1;
	struct cvmx_lmcx_slot_ctl1_s cn73xx;
	struct cvmx_lmcx_slot_ctl1_s cn78xx;
	struct cvmx_lmcx_slot_ctl1_s cn78xxp1;
	struct cvmx_lmcx_slot_ctl1_s cnf71xx;
	struct cvmx_lmcx_slot_ctl1_s cnf75xx;
};

/**
 * cvmx_lmc#_slot_ctl2
 *
 * This register is an assortment of control fields needed by the memory
 * controller. If software has not previously written to this register
 * (since the last DRESET), hardware updates the fields in this register
 * to the minimum allowed value when any of LMC()_RLEVEL_RANK(),
 * LMC()_WLEVEL_RANK(), LMC()_CONTROL and LMC()_MODEREG_PARAMS0 change.
 * Ideally, only read this register after LMC has been initialized and
 * LMC()_RLEVEL_RANK(), LMC()_WLEVEL_RANK() have valid data.
 *
 * The interpretation of the fields in this CSR depends on LMC(0)_CONFIG[DDR2T]:
 *
 * * If LMC()_CONFIG[DDR2T] = 1, (FieldValue + 4) is the minimum CK cycles
 * between when the DRAM part registers CAS commands of the first and
 * second types from different cache blocks.
 *
 * * If LMC()_CONFIG[DDR2T] = 0, (FieldValue + 3) is the minimum CK cycles
 * between when the DRAM part registers CAS commands of the first and second
 * types from different cache blocks.
 * FieldValue = 0 is always illegal in this case.
 *
 * The hardware-calculated minimums for these fields are shown in LMC Registers.
 */
union cvmx_lmcx_slot_ctl2 {
	u64 u64;
	struct cvmx_lmcx_slot_ctl2_s {
		uint64_t reserved_24_63:40;
		uint64_t w2w_xdimm_init:6;
		uint64_t w2r_xdimm_init:6;
		uint64_t r2w_xdimm_init:6;
		uint64_t r2r_xdimm_init:6;
	} s;
	struct cvmx_lmcx_slot_ctl2_s cn61xx;
	struct cvmx_lmcx_slot_ctl2_s cn63xx;
	struct cvmx_lmcx_slot_ctl2_s cn63xxp1;
	struct cvmx_lmcx_slot_ctl2_s cn66xx;
	struct cvmx_lmcx_slot_ctl2_s cn68xx;
	struct cvmx_lmcx_slot_ctl2_s cn68xxp1;
	struct cvmx_lmcx_slot_ctl2_s cn70xx;
	struct cvmx_lmcx_slot_ctl2_s cn70xxp1;
	struct cvmx_lmcx_slot_ctl2_s cn73xx;
	struct cvmx_lmcx_slot_ctl2_s cn78xx;
	struct cvmx_lmcx_slot_ctl2_s cn78xxp1;
	struct cvmx_lmcx_slot_ctl2_s cnf71xx;
	struct cvmx_lmcx_slot_ctl2_s cnf75xx;
};

/**
 * cvmx_lmc#_slot_ctl3
 *
 * This register is an assortment of control fields needed by the memory
 * controller. If software has not previously written to this register
 * (since the last DRESET), hardware updates the fields in this register
 * to the minimum allowed value when any of LMC()_RLEVEL_RANK(),
 * LMC()_WLEVEL_RANK(), LMC()_CONTROL and LMC()_MODEREG_PARAMS0 change.
 * Ideally, only read this register after LMC has been initialized and
 * LMC()_RLEVEL_RANK(), LMC()_WLEVEL_RANK() have valid data.
 *
 * The interpretation of the fields in this CSR depends on LMC(0)_CONFIG[DDR2T]:
 *
 * * If LMC()_CONFIG[DDR2T] = 1, (FieldValue + 4) is the minimum CK cycles
 * between when the DRAM part registers CAS commands of the first and
 * second types from different cache blocks.
 *
 * * If LMC()_CONFIG[DDR2T] = 0, (FieldValue + 3) is the minimum CK cycles
 * between when the DRAM part registers CAS commands of the first and second
 * types from different cache blocks.
 * FieldValue = 0 is always illegal in this case.
 *
 * The hardware-calculated minimums for these fields are shown in LMC Registers.
 */
union cvmx_lmcx_slot_ctl3 {
	u64 u64;
	struct cvmx_lmcx_slot_ctl3_s {
		uint64_t reserved_50_63:14;
		uint64_t w2r_l_xrank_init_ext:1;
		uint64_t w2r_xrank_init_ext:1;
		uint64_t w2w_l_xrank_init:6;
		uint64_t w2r_l_xrank_init:6;
		uint64_t r2w_l_xrank_init:6;
		uint64_t r2r_l_xrank_init:6;
		uint64_t w2w_xrank_init:6;
		uint64_t w2r_xrank_init:6;
		uint64_t r2w_xrank_init:6;
		uint64_t r2r_xrank_init:6;
	} s;
	struct cvmx_lmcx_slot_ctl3_s cn73xx;
	struct cvmx_lmcx_slot_ctl3_s cn78xx;
	struct cvmx_lmcx_slot_ctl3_s cnf75xx;
};

/**
 * cvmx_lmc#_timing_params0
 */
union cvmx_lmcx_timing_params0 {
	u64 u64;
	struct cvmx_lmcx_timing_params0_s {
		uint64_t reserved_54_63:10;
		uint64_t tbcw:6;
		uint64_t reserved_26_47:22;
		uint64_t tmrd:4;
		uint64_t reserved_8_21:14;
		uint64_t tckeon:8;
	} s;
	struct cvmx_lmcx_timing_params0_cn61xx {
		uint64_t reserved_47_63:17;
		uint64_t trp_ext:1;
		uint64_t tcksre:4;
		uint64_t trp:4;
		uint64_t tzqinit:4;
		uint64_t tdllk:4;
		uint64_t tmod:4;
		uint64_t tmrd:4;
		uint64_t txpr:4;
		uint64_t tcke:4;
		uint64_t tzqcs:4;
		uint64_t reserved_0_9:10;
	} cn61xx;
	struct cvmx_lmcx_timing_params0_cn61xx cn63xx;
	struct cvmx_lmcx_timing_params0_cn63xxp1 {
		uint64_t reserved_46_63:18;
		uint64_t tcksre:4;
		uint64_t trp:4;
		uint64_t tzqinit:4;
		uint64_t tdllk:4;
		uint64_t tmod:4;
		uint64_t tmrd:4;
		uint64_t txpr:4;
		uint64_t tcke:4;
		uint64_t tzqcs:4;
		uint64_t tckeon:10;
	} cn63xxp1;
	struct cvmx_lmcx_timing_params0_cn61xx cn66xx;
	struct cvmx_lmcx_timing_params0_cn61xx cn68xx;
	struct cvmx_lmcx_timing_params0_cn61xx cn68xxp1;
	struct cvmx_lmcx_timing_params0_cn70xx {
		uint64_t reserved_48_63:16;
		uint64_t tcksre:4;
		uint64_t trp:5;
		uint64_t tzqinit:4;
		uint64_t tdllk:4;
		uint64_t tmod:5;
		uint64_t tmrd:4;
		uint64_t txpr:6;
		uint64_t tcke:4;
		uint64_t tzqcs:4;
		uint64_t reserved_0_7:8;
	} cn70xx;
	struct cvmx_lmcx_timing_params0_cn70xx cn70xxp1;
	struct cvmx_lmcx_timing_params0_cn73xx {
		uint64_t reserved_54_63:10;
		uint64_t tbcw:6;
		uint64_t tcksre:4;
		uint64_t trp:5;
		uint64_t tzqinit:4;
		uint64_t tdllk:4;
		uint64_t tmod:5;
		uint64_t tmrd:4;
		uint64_t txpr:6;
		uint64_t tcke:4;
		uint64_t tzqcs:4;
		uint64_t reserved_0_7:8;
	} cn73xx;
	struct cvmx_lmcx_timing_params0_cn73xx cn78xx;
	struct cvmx_lmcx_timing_params0_cn73xx cn78xxp1;
	struct cvmx_lmcx_timing_params0_cn61xx cnf71xx;
	struct cvmx_lmcx_timing_params0_cn73xx cnf75xx;
};

/**
 * cvmx_lmc#_timing_params1
 */
union cvmx_lmcx_timing_params1 {
	u64 u64;
	struct cvmx_lmcx_timing_params1_s {
		uint64_t reserved_59_63:5;
		uint64_t txp_ext:1;
		uint64_t trcd_ext:1;
		uint64_t tpdm_full_cycle_ena:1;
		uint64_t trfc_dlr:7;
		uint64_t reserved_4_48:45;
		uint64_t tmprr:4;
	} s;
	struct cvmx_lmcx_timing_params1_cn61xx {
		uint64_t reserved_47_63:17;
		uint64_t tras_ext:1;
		uint64_t txpdll:5;
		uint64_t tfaw:5;
		uint64_t twldqsen:4;
		uint64_t twlmrd:4;
		uint64_t txp:3;
		uint64_t trrd:3;
		uint64_t trfc:5;
		uint64_t twtr:4;
		uint64_t trcd:4;
		uint64_t tras:5;
		uint64_t tmprr:4;
	} cn61xx;
	struct cvmx_lmcx_timing_params1_cn61xx cn63xx;
	struct cvmx_lmcx_timing_params1_cn63xxp1 {
		uint64_t reserved_46_63:18;
		uint64_t txpdll:5;
		uint64_t tfaw:5;
		uint64_t twldqsen:4;
		uint64_t twlmrd:4;
		uint64_t txp:3;
		uint64_t trrd:3;
		uint64_t trfc:5;
		uint64_t twtr:4;
		uint64_t trcd:4;
		uint64_t tras:5;
		uint64_t tmprr:4;
	} cn63xxp1;
	struct cvmx_lmcx_timing_params1_cn61xx cn66xx;
	struct cvmx_lmcx_timing_params1_cn61xx cn68xx;
	struct cvmx_lmcx_timing_params1_cn61xx cn68xxp1;
	struct cvmx_lmcx_timing_params1_cn70xx {
		uint64_t reserved_49_63:15;
		uint64_t txpdll:5;
		uint64_t tfaw:5;
		uint64_t twldqsen:4;
		uint64_t twlmrd:4;
		uint64_t txp:3;
		uint64_t trrd:3;
		uint64_t trfc:7;
		uint64_t twtr:4;
		uint64_t trcd:4;
		uint64_t tras:6;
		uint64_t tmprr:4;
	} cn70xx;
	struct cvmx_lmcx_timing_params1_cn70xx cn70xxp1;
	struct cvmx_lmcx_timing_params1_cn73xx {
		uint64_t reserved_59_63:5;
		uint64_t txp_ext:1;
		uint64_t trcd_ext:1;
		uint64_t tpdm_full_cycle_ena:1;
		uint64_t trfc_dlr:7;
		uint64_t txpdll:5;
		uint64_t tfaw:5;
		uint64_t twldqsen:4;
		uint64_t twlmrd:4;
		uint64_t txp:3;
		uint64_t trrd:3;
		uint64_t trfc:7;
		uint64_t twtr:4;
		uint64_t trcd:4;
		uint64_t tras:6;
		uint64_t tmprr:4;
	} cn73xx;
	struct cvmx_lmcx_timing_params1_cn73xx cn78xx;
	struct cvmx_lmcx_timing_params1_cn73xx cn78xxp1;
	struct cvmx_lmcx_timing_params1_cn61xx cnf71xx;
	struct cvmx_lmcx_timing_params1_cn73xx cnf75xx;
};

/**
 * cvmx_lmc#_timing_params2
 *
 * This register sets timing parameters for DDR4.
 *
 */
union cvmx_lmcx_timing_params2 {
	u64 u64;
	struct cvmx_lmcx_timing_params2_s {
		uint64_t reserved_16_63:48;
		uint64_t trrd_l_ext:1;
		uint64_t trtp:4;
		uint64_t t_rw_op_max:4;
		uint64_t twtr_l:4;
		uint64_t trrd_l:3;
	} s;
	struct cvmx_lmcx_timing_params2_cn70xx {
		uint64_t reserved_15_63:49;
		uint64_t trtp:4;
		uint64_t t_rw_op_max:4;
		uint64_t twtr_l:4;
		uint64_t trrd_l:3;
	} cn70xx;
	struct cvmx_lmcx_timing_params2_cn70xx cn70xxp1;
	struct cvmx_lmcx_timing_params2_s cn73xx;
	struct cvmx_lmcx_timing_params2_s cn78xx;
	struct cvmx_lmcx_timing_params2_s cn78xxp1;
	struct cvmx_lmcx_timing_params2_s cnf75xx;
};

/**
 * cvmx_lmc#_tro_ctl
 *
 * LMC_TRO_CTL = LMC Temperature Ring Osc Control
 * This register is an assortment of various control fields needed to
 * control the temperature ring oscillator
 *
 * Notes:
 * To bring up the temperature ring oscillator, write TRESET to 0, and
 * follow by initializing RCLK_CNT to desired value
 */
union cvmx_lmcx_tro_ctl {
	u64 u64;
	struct cvmx_lmcx_tro_ctl_s {
		uint64_t reserved_33_63:31;
		uint64_t rclk_cnt:32;
		uint64_t treset:1;
	} s;
	struct cvmx_lmcx_tro_ctl_s cn61xx;
	struct cvmx_lmcx_tro_ctl_s cn63xx;
	struct cvmx_lmcx_tro_ctl_s cn63xxp1;
	struct cvmx_lmcx_tro_ctl_s cn66xx;
	struct cvmx_lmcx_tro_ctl_s cn68xx;
	struct cvmx_lmcx_tro_ctl_s cn68xxp1;
	struct cvmx_lmcx_tro_ctl_s cnf71xx;
};

/**
 * cvmx_lmc#_tro_stat
 *
 * LMC_TRO_STAT = LMC Temperature Ring Osc Status
 * This register is an assortment of various control fields needed to
 * control the temperature ring oscillator
 */
union cvmx_lmcx_tro_stat {
	u64 u64;
	struct cvmx_lmcx_tro_stat_s {
		uint64_t reserved_32_63:32;
		uint64_t ring_cnt:32;
	} s;
	struct cvmx_lmcx_tro_stat_s cn61xx;
	struct cvmx_lmcx_tro_stat_s cn63xx;
	struct cvmx_lmcx_tro_stat_s cn63xxp1;
	struct cvmx_lmcx_tro_stat_s cn66xx;
	struct cvmx_lmcx_tro_stat_s cn68xx;
	struct cvmx_lmcx_tro_stat_s cn68xxp1;
	struct cvmx_lmcx_tro_stat_s cnf71xx;
};

/**
 * cvmx_lmc#_wlevel_ctl
 */
union cvmx_lmcx_wlevel_ctl {
	u64 u64;
	struct cvmx_lmcx_wlevel_ctl_s {
		uint64_t reserved_22_63:42;
		uint64_t rtt_nom:3;
		uint64_t bitmask:8;
		uint64_t or_dis:1;
		uint64_t sset:1;
		uint64_t lanemask:9;
	} s;
	struct cvmx_lmcx_wlevel_ctl_s cn61xx;
	struct cvmx_lmcx_wlevel_ctl_s cn63xx;
	struct cvmx_lmcx_wlevel_ctl_cn63xxp1 {
		uint64_t reserved_10_63:54;
		uint64_t sset:1;
		uint64_t lanemask:9;
	} cn63xxp1;
	struct cvmx_lmcx_wlevel_ctl_s cn66xx;
	struct cvmx_lmcx_wlevel_ctl_s cn68xx;
	struct cvmx_lmcx_wlevel_ctl_s cn68xxp1;
	struct cvmx_lmcx_wlevel_ctl_s cn70xx;
	struct cvmx_lmcx_wlevel_ctl_s cn70xxp1;
	struct cvmx_lmcx_wlevel_ctl_s cn73xx;
	struct cvmx_lmcx_wlevel_ctl_s cn78xx;
	struct cvmx_lmcx_wlevel_ctl_s cn78xxp1;
	struct cvmx_lmcx_wlevel_ctl_s cnf71xx;
	struct cvmx_lmcx_wlevel_ctl_s cnf75xx;
};

/**
 * cvmx_lmc#_wlevel_dbg
 *
 * A given write of LMC()_WLEVEL_DBG returns the write leveling pass/fail
 * results for all possible delay settings (i.e. the BITMASK) for only one
 * byte in the last rank that the hardware write leveled.
 * LMC()_WLEVEL_DBG[BYTE] selects the particular byte. To get these
 * pass/fail results for a different rank, you must run the hardware write
 * leveling again. For example, it is possible to get the [BITMASK] results
 * for every byte of every rank if you run write leveling separately for
 * each rank, probing LMC()_WLEVEL_DBG between each write-leveling.
 */
union cvmx_lmcx_wlevel_dbg {
	u64 u64;
	struct cvmx_lmcx_wlevel_dbg_s {
		uint64_t reserved_12_63:52;
		uint64_t bitmask:8;
		uint64_t byte:4;
	} s;
	struct cvmx_lmcx_wlevel_dbg_s cn61xx;
	struct cvmx_lmcx_wlevel_dbg_s cn63xx;
	struct cvmx_lmcx_wlevel_dbg_s cn63xxp1;
	struct cvmx_lmcx_wlevel_dbg_s cn66xx;
	struct cvmx_lmcx_wlevel_dbg_s cn68xx;
	struct cvmx_lmcx_wlevel_dbg_s cn68xxp1;
	struct cvmx_lmcx_wlevel_dbg_s cn70xx;
	struct cvmx_lmcx_wlevel_dbg_s cn70xxp1;
	struct cvmx_lmcx_wlevel_dbg_s cn73xx;
	struct cvmx_lmcx_wlevel_dbg_s cn78xx;
	struct cvmx_lmcx_wlevel_dbg_s cn78xxp1;
	struct cvmx_lmcx_wlevel_dbg_s cnf71xx;
	struct cvmx_lmcx_wlevel_dbg_s cnf75xx;
};

/**
 * cvmx_lmc#_wlevel_rank#
 *
 * Four of these CSRs exist per LMC, one for each rank. Write level setting
 * is measured in units of 1/8 CK, so the below BYTEn values can range over
 * 4 CK cycles. Assuming LMC()_WLEVEL_CTL[SSET]=0, the BYTEn<2:0> values are
 * not used during write leveling, and they are overwritten by the hardware
 * as part of the write leveling sequence. (Hardware sets [STATUS] to 3 after
 * hardware write leveling completes for the rank). Software needs to set
 * BYTEn<4:3> bits.
 *
 * Each CSR may also be written by software, but not while a write leveling
 * sequence is in progress. (Hardware sets [STATUS] to 1 after a CSR write.)
 * Software initiates a hardware write-leveling sequence by programming
 * LMC()_WLEVEL_CTL and writing RANKMASK and INIT_START=1 with SEQ_SEL=6 in
 * LMC*0_CONFIG.
 *
 * LMC will then step through and accumulate write leveling results for 8
 * unique delay settings (twice), starting at a delay of LMC()_WLEVEL_RANK()
 * [BYTEn<4:3>]* 8 CK increasing by 1/8 CK each setting. Hardware will then
 * set LMC()_WLEVEL_RANK()[BYTEn<2:0>] to indicate the first write leveling
 * result of 1 that followed a result of 0 during the sequence by searching
 * for a '1100' pattern in the generated bitmask, except that LMC will always
 * write LMC()_WLEVEL_RANK()[BYTEn<0>]=0. If hardware is unable to find a match
 * for a '1100' pattern, then hardware sets LMC()_WLEVEL_RANK() [BYTEn<2:0>]
 * to 0x4. See LMC()_WLEVEL_CTL.
 *
 * LMC()_WLEVEL_RANKi values for ranks i without attached DRAM should be set
 * such that they do not increase the range of possible BYTE values for any
 * byte lane. The easiest way to do this is to set LMC()_WLEVEL_RANKi =
 * LMC()_WLEVEL_RANKj, where j is some rank with attached DRAM whose
 * LMC()_WLEVEL_RANKj is already fully initialized.
 */
union cvmx_lmcx_wlevel_rankx {
	u64 u64;
	struct cvmx_lmcx_wlevel_rankx_s {
		uint64_t reserved_47_63:17;
		uint64_t status:2;
		uint64_t byte8:5;
		uint64_t byte7:5;
		uint64_t byte6:5;
		uint64_t byte5:5;
		uint64_t byte4:5;
		uint64_t byte3:5;
		uint64_t byte2:5;
		uint64_t byte1:5;
		uint64_t byte0:5;
	} s;
	struct cvmx_lmcx_wlevel_rankx_s cn61xx;
	struct cvmx_lmcx_wlevel_rankx_s cn63xx;
	struct cvmx_lmcx_wlevel_rankx_s cn63xxp1;
	struct cvmx_lmcx_wlevel_rankx_s cn66xx;
	struct cvmx_lmcx_wlevel_rankx_s cn68xx;
	struct cvmx_lmcx_wlevel_rankx_s cn68xxp1;
	struct cvmx_lmcx_wlevel_rankx_s cn70xx;
	struct cvmx_lmcx_wlevel_rankx_s cn70xxp1;
	struct cvmx_lmcx_wlevel_rankx_s cn73xx;
	struct cvmx_lmcx_wlevel_rankx_s cn78xx;
	struct cvmx_lmcx_wlevel_rankx_s cn78xxp1;
	struct cvmx_lmcx_wlevel_rankx_s cnf71xx;
	struct cvmx_lmcx_wlevel_rankx_s cnf75xx;
};

/**
 * cvmx_lmc#_wodt_ctl0
 *
 * LMC_WODT_CTL0 = LMC Write OnDieTermination control
 * See the description in LMC_WODT_CTL1.
 *
 * Notes:
 * Together, the LMC_WODT_CTL1 and LMC_WODT_CTL0 CSRs control the write
 * ODT mask.  See LMC_WODT_CTL1.
 *
 */
union cvmx_lmcx_wodt_ctl0 {
	u64 u64;
	struct cvmx_lmcx_wodt_ctl0_s {
		uint64_t reserved_0_63:64;
	} s;
	struct cvmx_lmcx_wodt_ctl0_cn30xx {
		uint64_t reserved_32_63:32;
		uint64_t wodt_d1_r1:8;
		uint64_t wodt_d1_r0:8;
		uint64_t wodt_d0_r1:8;
		uint64_t wodt_d0_r0:8;
	} cn30xx;
	struct cvmx_lmcx_wodt_ctl0_cn30xx cn31xx;
	struct cvmx_lmcx_wodt_ctl0_cn38xx {
		uint64_t reserved_32_63:32;
		uint64_t wodt_hi3:4;
		uint64_t wodt_hi2:4;
		uint64_t wodt_hi1:4;
		uint64_t wodt_hi0:4;
		uint64_t wodt_lo3:4;
		uint64_t wodt_lo2:4;
		uint64_t wodt_lo1:4;
		uint64_t wodt_lo0:4;
	} cn38xx;
	struct cvmx_lmcx_wodt_ctl0_cn38xx cn38xxp2;
	struct cvmx_lmcx_wodt_ctl0_cn38xx cn50xx;
	struct cvmx_lmcx_wodt_ctl0_cn30xx cn52xx;
	struct cvmx_lmcx_wodt_ctl0_cn30xx cn52xxp1;
	struct cvmx_lmcx_wodt_ctl0_cn30xx cn56xx;
	struct cvmx_lmcx_wodt_ctl0_cn30xx cn56xxp1;
	struct cvmx_lmcx_wodt_ctl0_cn38xx cn58xx;
	struct cvmx_lmcx_wodt_ctl0_cn38xx cn58xxp1;
};

/**
 * cvmx_lmc#_wodt_ctl1
 *
 * LMC_WODT_CTL1 = LMC Write OnDieTermination control
 * System designers may desire to terminate DQ/DQS/DM lines for higher
 * frequency DDR operations (667MHz and faster), especially on a multi-rank
 * system. DDR2 DQ/DM/DQS I/O's have built in Termination resistor that can
 * be turned on or off by the controller, after meeting tAOND and tAOF
 * timing requirements. Each Rank has its own ODT pin that fans out to all
 * the memory parts in that DIMM. System designers may prefer different
 * combinations of ODT ON's for read and write into different ranks. Octeon
 * supports full programmability by way of the mask register below.
 * Each Rank position has its own 8-bit programmable field.
 * When the controller does a write to that rank, it sets the 8 ODT pins
 * to the MASK pins below. For eg., When doing a write into Rank0, a system
 * designer may desire to terminate the lines with the resistor on
 * Dimm0/Rank1. The mask WODT_D0_R0 would then be [00000010]. If ODT feature
 * is not desired, the DDR parts can be programmed to not look at these pins by
 * writing 0 in QS_DIC. Octeon drives the appropriate mask values on the ODT
 * pins by default.
 * If this feature is not required, write 0 in this register.
 *
 * Notes:
 * Together, the LMC_WODT_CTL1 and LMC_WODT_CTL0 CSRs control the write
 * ODT mask. When a given RANK is selected, the WODT mask for that RANK
 * is used.  The resulting WODT mask is driven to the DIMMs in the following
 * manner:
 *            BUNK_ENA=1     BUNK_ENA=0
 * Mask[7] -> DIMM3, RANK1    DIMM3
 * Mask[6] -> DIMM3, RANK0
 * Mask[5] -> DIMM2, RANK1    DIMM2
 * Mask[4] -> DIMM2, RANK0
 * Mask[3] -> DIMM1, RANK1    DIMM1
 * Mask[2] -> DIMM1, RANK0
 * Mask[1] -> DIMM0, RANK1    DIMM0
 * Mask[0] -> DIMM0, RANK0
 */
union cvmx_lmcx_wodt_ctl1 {
	u64 u64;
	struct cvmx_lmcx_wodt_ctl1_s {
		uint64_t reserved_32_63:32;
		uint64_t wodt_d3_r1:8;
		uint64_t wodt_d3_r0:8;
		uint64_t wodt_d2_r1:8;
		uint64_t wodt_d2_r0:8;
	} s;
	struct cvmx_lmcx_wodt_ctl1_s cn30xx;
	struct cvmx_lmcx_wodt_ctl1_s cn31xx;
	struct cvmx_lmcx_wodt_ctl1_s cn52xx;
	struct cvmx_lmcx_wodt_ctl1_s cn52xxp1;
	struct cvmx_lmcx_wodt_ctl1_s cn56xx;
	struct cvmx_lmcx_wodt_ctl1_s cn56xxp1;
};

/**
 * cvmx_lmc#_wodt_mask
 *
 * System designers may desire to terminate DQ/DQS lines for higher-frequency
 * DDR operations, especially on a multirank system. DDR3 DQ/DQS I/Os have
 * built-in termination resistors that can be turned on or off by the
 * controller, after meeting TAOND and TAOF timing requirements. Each rank
 * has its own ODT pin that fans out to all of the memory parts in that DIMM.
 * System designers may prefer different combinations of ODT ONs for write
 * operations into different ranks. CNXXXX supports full programmability by
 * way of the mask register below. Each rank position has its own 8-bit
 * programmable field. When the controller does a write to that rank,
 * it sets the four ODT pins to the mask pins below. For example, when
 * doing a write into Rank0, a system designer may desire to terminate the
 * lines with the resistor on DIMM0/Rank1. The mask [WODT_D0_R0] would then
 * be [00000010].
 *
 * CNXXXX drives the appropriate mask values on the ODT pins by default.
 * If this feature is not required, write 0x0 in this register. When a
 * given RANK is selected, the WODT mask for that RANK is used. The
 * resulting WODT mask is driven to the DIMMs in the following manner:
 */
union cvmx_lmcx_wodt_mask {
	u64 u64;
	struct cvmx_lmcx_wodt_mask_s {
		uint64_t wodt_d3_r1:8;
		uint64_t wodt_d3_r0:8;
		uint64_t wodt_d2_r1:8;
		uint64_t wodt_d2_r0:8;
		uint64_t wodt_d1_r1:8;
		uint64_t wodt_d1_r0:8;
		uint64_t wodt_d0_r1:8;
		uint64_t wodt_d0_r0:8;
	} s;
	struct cvmx_lmcx_wodt_mask_s cn61xx;
	struct cvmx_lmcx_wodt_mask_s cn63xx;
	struct cvmx_lmcx_wodt_mask_s cn63xxp1;
	struct cvmx_lmcx_wodt_mask_s cn66xx;
	struct cvmx_lmcx_wodt_mask_s cn68xx;
	struct cvmx_lmcx_wodt_mask_s cn68xxp1;
	struct cvmx_lmcx_wodt_mask_cn70xx {
		uint64_t reserved_28_63:36;
		uint64_t wodt_d1_r1:4;
		uint64_t reserved_20_23:4;
		uint64_t wodt_d1_r0:4;
		uint64_t reserved_12_15:4;
		uint64_t wodt_d0_r1:4;
		uint64_t reserved_4_7:4;
		uint64_t wodt_d0_r0:4;
	} cn70xx;
	struct cvmx_lmcx_wodt_mask_cn70xx cn70xxp1;
	struct cvmx_lmcx_wodt_mask_cn70xx cn73xx;
	struct cvmx_lmcx_wodt_mask_cn70xx cn78xx;
	struct cvmx_lmcx_wodt_mask_cn70xx cn78xxp1;
	struct cvmx_lmcx_wodt_mask_s cnf71xx;
	struct cvmx_lmcx_wodt_mask_cn70xx cnf75xx;
};

#endif