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
|
/***********************license start***************
* Copyright (c) 2003-2010 Cavium Networks (support@cavium.com). All rights
* reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* * Neither the name of Cavium Networks nor the names of
* its contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
* This Software, including technical data, may be subject to U.S. export control
* laws, including the U.S. Export Administration Act and its associated
* regulations, and may be subject to export or import regulations in other
* countries.
* TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
* AND WITH ALL FAULTS AND CAVIUM NETWORKS MAKES NO PROMISES, REPRESENTATIONS OR
* WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
* THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR
* DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM
* SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE,
* MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF
* VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR
* CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK ARISING OUT OF USE OR
* PERFORMANCE OF THE SOFTWARE LIES WITH YOU.
***********************license end**************************************/
/**
* cvmx-ipd-defs.h
*
* Configuration and status register (CSR) type definitions for
* Octeon ipd.
*
* This file is auto generated. Do not edit.
*
* <hr>$Revision$<hr>
*
*/
#ifndef __CVMX_IPD_TYPEDEFS_H__
#define __CVMX_IPD_TYPEDEFS_H__
#define CVMX_IPD_1ST_MBUFF_SKIP (CVMX_ADD_IO_SEG(0x00014F0000000000ull))
#define CVMX_IPD_1st_NEXT_PTR_BACK (CVMX_ADD_IO_SEG(0x00014F0000000150ull))
#define CVMX_IPD_2nd_NEXT_PTR_BACK (CVMX_ADD_IO_SEG(0x00014F0000000158ull))
#define CVMX_IPD_BIST_STATUS (CVMX_ADD_IO_SEG(0x00014F00000007F8ull))
#define CVMX_IPD_BP_PRT_RED_END (CVMX_ADD_IO_SEG(0x00014F0000000328ull))
#define CVMX_IPD_CLK_COUNT (CVMX_ADD_IO_SEG(0x00014F0000000338ull))
#define CVMX_IPD_CTL_STATUS (CVMX_ADD_IO_SEG(0x00014F0000000018ull))
#define CVMX_IPD_INT_ENB (CVMX_ADD_IO_SEG(0x00014F0000000160ull))
#define CVMX_IPD_INT_SUM (CVMX_ADD_IO_SEG(0x00014F0000000168ull))
#define CVMX_IPD_NOT_1ST_MBUFF_SKIP (CVMX_ADD_IO_SEG(0x00014F0000000008ull))
#define CVMX_IPD_PACKET_MBUFF_SIZE (CVMX_ADD_IO_SEG(0x00014F0000000010ull))
#define CVMX_IPD_PKT_PTR_VALID (CVMX_ADD_IO_SEG(0x00014F0000000358ull))
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_IPD_PORTX_BP_PAGE_CNT(unsigned long offset)
{
if (!(
(OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 2) || (offset == 32))) ||
(OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 2) || ((offset >= 32) && (offset <= 33)))) ||
(OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 35))) ||
(OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 2) || ((offset >= 32) && (offset <= 33)))) ||
(OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3) || ((offset >= 32) && (offset <= 35)))) ||
(OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 3) || ((offset >= 16) && (offset <= 19)) || ((offset >= 32) && (offset <= 35)))) ||
(OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 35))) ||
(OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 3) || ((offset >= 32) && (offset <= 35))))))
cvmx_warn("CVMX_IPD_PORTX_BP_PAGE_CNT(%lu) is invalid on this chip\n", offset);
return CVMX_ADD_IO_SEG(0x00014F0000000028ull) + ((offset) & 63) * 8;
}
#else
#define CVMX_IPD_PORTX_BP_PAGE_CNT(offset) (CVMX_ADD_IO_SEG(0x00014F0000000028ull) + ((offset) & 63) * 8)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_IPD_PORTX_BP_PAGE_CNT2(unsigned long offset)
{
if (!(
(OCTEON_IS_MODEL(OCTEON_CN52XX) && (((offset >= 36) && (offset <= 39)))) ||
(OCTEON_IS_MODEL(OCTEON_CN56XX) && (((offset >= 36) && (offset <= 39)))) ||
(OCTEON_IS_MODEL(OCTEON_CN63XX) && (((offset >= 36) && (offset <= 39))))))
cvmx_warn("CVMX_IPD_PORTX_BP_PAGE_CNT2(%lu) is invalid on this chip\n", offset);
return CVMX_ADD_IO_SEG(0x00014F0000000368ull) + ((offset) & 63) * 8 - 8*36;
}
#else
#define CVMX_IPD_PORTX_BP_PAGE_CNT2(offset) (CVMX_ADD_IO_SEG(0x00014F0000000368ull) + ((offset) & 63) * 8 - 8*36)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_IPD_PORTX_BP_PAGE_CNT3(unsigned long offset)
{
if (!(
(OCTEON_IS_MODEL(OCTEON_CN63XX) && (((offset >= 40) && (offset <= 43))))))
cvmx_warn("CVMX_IPD_PORTX_BP_PAGE_CNT3(%lu) is invalid on this chip\n", offset);
return CVMX_ADD_IO_SEG(0x00014F00000003D0ull) + ((offset) & 63) * 8 - 8*40;
}
#else
#define CVMX_IPD_PORTX_BP_PAGE_CNT3(offset) (CVMX_ADD_IO_SEG(0x00014F00000003D0ull) + ((offset) & 63) * 8 - 8*40)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_IPD_PORT_BP_COUNTERS2_PAIRX(unsigned long offset)
{
if (!(
(OCTEON_IS_MODEL(OCTEON_CN52XX) && (((offset >= 36) && (offset <= 39)))) ||
(OCTEON_IS_MODEL(OCTEON_CN56XX) && (((offset >= 36) && (offset <= 39)))) ||
(OCTEON_IS_MODEL(OCTEON_CN63XX) && (((offset >= 36) && (offset <= 39))))))
cvmx_warn("CVMX_IPD_PORT_BP_COUNTERS2_PAIRX(%lu) is invalid on this chip\n", offset);
return CVMX_ADD_IO_SEG(0x00014F0000000388ull) + ((offset) & 63) * 8 - 8*36;
}
#else
#define CVMX_IPD_PORT_BP_COUNTERS2_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000388ull) + ((offset) & 63) * 8 - 8*36)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_IPD_PORT_BP_COUNTERS3_PAIRX(unsigned long offset)
{
if (!(
(OCTEON_IS_MODEL(OCTEON_CN63XX) && (((offset >= 40) && (offset <= 43))))))
cvmx_warn("CVMX_IPD_PORT_BP_COUNTERS3_PAIRX(%lu) is invalid on this chip\n", offset);
return CVMX_ADD_IO_SEG(0x00014F00000003B0ull) + ((offset) & 63) * 8 - 8*40;
}
#else
#define CVMX_IPD_PORT_BP_COUNTERS3_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F00000003B0ull) + ((offset) & 63) * 8 - 8*40)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_IPD_PORT_BP_COUNTERS_PAIRX(unsigned long offset)
{
if (!(
(OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 2) || (offset == 32))) ||
(OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 2) || ((offset >= 32) && (offset <= 33)))) ||
(OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 35))) ||
(OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 2) || ((offset >= 32) && (offset <= 33)))) ||
(OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 3) || ((offset >= 32) && (offset <= 35)))) ||
(OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 3) || ((offset >= 16) && (offset <= 19)) || ((offset >= 32) && (offset <= 35)))) ||
(OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 35))) ||
(OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 3) || ((offset >= 32) && (offset <= 35))))))
cvmx_warn("CVMX_IPD_PORT_BP_COUNTERS_PAIRX(%lu) is invalid on this chip\n", offset);
return CVMX_ADD_IO_SEG(0x00014F00000001B8ull) + ((offset) & 63) * 8;
}
#else
#define CVMX_IPD_PORT_BP_COUNTERS_PAIRX(offset) (CVMX_ADD_IO_SEG(0x00014F00000001B8ull) + ((offset) & 63) * 8)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_IPD_PORT_QOS_INTX(unsigned long offset)
{
if (!(
(OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset == 0) || (offset == 4))) ||
(OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset == 0) || (offset == 2) || (offset == 4))) ||
(OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset == 0) || (offset == 4) || (offset == 5)))))
cvmx_warn("CVMX_IPD_PORT_QOS_INTX(%lu) is invalid on this chip\n", offset);
return CVMX_ADD_IO_SEG(0x00014F0000000808ull) + ((offset) & 7) * 8;
}
#else
#define CVMX_IPD_PORT_QOS_INTX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000808ull) + ((offset) & 7) * 8)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_IPD_PORT_QOS_INT_ENBX(unsigned long offset)
{
if (!(
(OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset == 0) || (offset == 4))) ||
(OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset == 0) || (offset == 2) || (offset == 4))) ||
(OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset == 0) || (offset == 4) || (offset == 5)))))
cvmx_warn("CVMX_IPD_PORT_QOS_INT_ENBX(%lu) is invalid on this chip\n", offset);
return CVMX_ADD_IO_SEG(0x00014F0000000848ull) + ((offset) & 7) * 8;
}
#else
#define CVMX_IPD_PORT_QOS_INT_ENBX(offset) (CVMX_ADD_IO_SEG(0x00014F0000000848ull) + ((offset) & 7) * 8)
#endif
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_IPD_PORT_QOS_X_CNT(unsigned long offset)
{
if (!(
(OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 31) || ((offset >= 256) && (offset <= 319)))) ||
(OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 31) || ((offset >= 128) && (offset <= 159)) || ((offset >= 256) && (offset <= 319)))) ||
(OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 31) || ((offset >= 256) && (offset <= 351))))))
cvmx_warn("CVMX_IPD_PORT_QOS_X_CNT(%lu) is invalid on this chip\n", offset);
return CVMX_ADD_IO_SEG(0x00014F0000000888ull) + ((offset) & 511) * 8;
}
#else
#define CVMX_IPD_PORT_QOS_X_CNT(offset) (CVMX_ADD_IO_SEG(0x00014F0000000888ull) + ((offset) & 511) * 8)
#endif
#define CVMX_IPD_PRC_HOLD_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000348ull))
#define CVMX_IPD_PRC_PORT_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000350ull))
#define CVMX_IPD_PTR_COUNT (CVMX_ADD_IO_SEG(0x00014F0000000320ull))
#define CVMX_IPD_PWP_PTR_FIFO_CTL (CVMX_ADD_IO_SEG(0x00014F0000000340ull))
#define CVMX_IPD_QOS0_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(0)
#define CVMX_IPD_QOS1_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(1)
#define CVMX_IPD_QOS2_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(2)
#define CVMX_IPD_QOS3_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(3)
#define CVMX_IPD_QOS4_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(4)
#define CVMX_IPD_QOS5_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(5)
#define CVMX_IPD_QOS6_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(6)
#define CVMX_IPD_QOS7_RED_MARKS CVMX_IPD_QOSX_RED_MARKS(7)
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_IPD_QOSX_RED_MARKS(unsigned long offset)
{
if (!(
(OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 7)))))
cvmx_warn("CVMX_IPD_QOSX_RED_MARKS(%lu) is invalid on this chip\n", offset);
return CVMX_ADD_IO_SEG(0x00014F0000000178ull) + ((offset) & 7) * 8;
}
#else
#define CVMX_IPD_QOSX_RED_MARKS(offset) (CVMX_ADD_IO_SEG(0x00014F0000000178ull) + ((offset) & 7) * 8)
#endif
#define CVMX_IPD_QUE0_FREE_PAGE_CNT (CVMX_ADD_IO_SEG(0x00014F0000000330ull))
#define CVMX_IPD_RED_PORT_ENABLE (CVMX_ADD_IO_SEG(0x00014F00000002D8ull))
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
#define CVMX_IPD_RED_PORT_ENABLE2 CVMX_IPD_RED_PORT_ENABLE2_FUNC()
static inline uint64_t CVMX_IPD_RED_PORT_ENABLE2_FUNC(void)
{
if (!(OCTEON_IS_MODEL(OCTEON_CN52XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN63XX)))
cvmx_warn("CVMX_IPD_RED_PORT_ENABLE2 not supported on this chip\n");
return CVMX_ADD_IO_SEG(0x00014F00000003A8ull);
}
#else
#define CVMX_IPD_RED_PORT_ENABLE2 (CVMX_ADD_IO_SEG(0x00014F00000003A8ull))
#endif
#define CVMX_IPD_RED_QUE0_PARAM CVMX_IPD_RED_QUEX_PARAM(0)
#define CVMX_IPD_RED_QUE1_PARAM CVMX_IPD_RED_QUEX_PARAM(1)
#define CVMX_IPD_RED_QUE2_PARAM CVMX_IPD_RED_QUEX_PARAM(2)
#define CVMX_IPD_RED_QUE3_PARAM CVMX_IPD_RED_QUEX_PARAM(3)
#define CVMX_IPD_RED_QUE4_PARAM CVMX_IPD_RED_QUEX_PARAM(4)
#define CVMX_IPD_RED_QUE5_PARAM CVMX_IPD_RED_QUEX_PARAM(5)
#define CVMX_IPD_RED_QUE6_PARAM CVMX_IPD_RED_QUEX_PARAM(6)
#define CVMX_IPD_RED_QUE7_PARAM CVMX_IPD_RED_QUEX_PARAM(7)
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
static inline uint64_t CVMX_IPD_RED_QUEX_PARAM(unsigned long offset)
{
if (!(
(OCTEON_IS_MODEL(OCTEON_CN30XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN31XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN38XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN50XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN52XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN56XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN58XX) && ((offset <= 7))) ||
(OCTEON_IS_MODEL(OCTEON_CN63XX) && ((offset <= 7)))))
cvmx_warn("CVMX_IPD_RED_QUEX_PARAM(%lu) is invalid on this chip\n", offset);
return CVMX_ADD_IO_SEG(0x00014F00000002E0ull) + ((offset) & 7) * 8;
}
#else
#define CVMX_IPD_RED_QUEX_PARAM(offset) (CVMX_ADD_IO_SEG(0x00014F00000002E0ull) + ((offset) & 7) * 8)
#endif
#define CVMX_IPD_SUB_PORT_BP_PAGE_CNT (CVMX_ADD_IO_SEG(0x00014F0000000148ull))
#define CVMX_IPD_SUB_PORT_FCS (CVMX_ADD_IO_SEG(0x00014F0000000170ull))
#if CVMX_ENABLE_CSR_ADDRESS_CHECKING
#define CVMX_IPD_SUB_PORT_QOS_CNT CVMX_IPD_SUB_PORT_QOS_CNT_FUNC()
static inline uint64_t CVMX_IPD_SUB_PORT_QOS_CNT_FUNC(void)
{
if (!(OCTEON_IS_MODEL(OCTEON_CN52XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN63XX)))
cvmx_warn("CVMX_IPD_SUB_PORT_QOS_CNT not supported on this chip\n");
return CVMX_ADD_IO_SEG(0x00014F0000000800ull);
}
#else
#define CVMX_IPD_SUB_PORT_QOS_CNT (CVMX_ADD_IO_SEG(0x00014F0000000800ull))
#endif
#define CVMX_IPD_WQE_FPA_QUEUE (CVMX_ADD_IO_SEG(0x00014F0000000020ull))
#define CVMX_IPD_WQE_PTR_VALID (CVMX_ADD_IO_SEG(0x00014F0000000360ull))
/**
* cvmx_ipd_1st_mbuff_skip
*
* IPD_1ST_MBUFF_SKIP = IPD First MBUFF Word Skip Size
*
* The number of words that the IPD will skip when writing the first MBUFF.
*/
union cvmx_ipd_1st_mbuff_skip
{
uint64_t u64;
struct cvmx_ipd_1st_mbuff_skip_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_6_63 : 58;
uint64_t skip_sz : 6; /**< The number of 8-byte words from the top of the
1st MBUFF that the IPD will store the next-pointer.
Legal values are 0 to 32, where the MAX value
is also limited to:
IPD_PACKET_MBUFF_SIZE[MB_SIZE] - 18.
Must be at least 16 when IPD_CTL_STATUS[NO_WPTR]
is set. */
#else
uint64_t skip_sz : 6;
uint64_t reserved_6_63 : 58;
#endif
} s;
struct cvmx_ipd_1st_mbuff_skip_s cn30xx;
struct cvmx_ipd_1st_mbuff_skip_s cn31xx;
struct cvmx_ipd_1st_mbuff_skip_s cn38xx;
struct cvmx_ipd_1st_mbuff_skip_s cn38xxp2;
struct cvmx_ipd_1st_mbuff_skip_s cn50xx;
struct cvmx_ipd_1st_mbuff_skip_s cn52xx;
struct cvmx_ipd_1st_mbuff_skip_s cn52xxp1;
struct cvmx_ipd_1st_mbuff_skip_s cn56xx;
struct cvmx_ipd_1st_mbuff_skip_s cn56xxp1;
struct cvmx_ipd_1st_mbuff_skip_s cn58xx;
struct cvmx_ipd_1st_mbuff_skip_s cn58xxp1;
struct cvmx_ipd_1st_mbuff_skip_s cn63xx;
struct cvmx_ipd_1st_mbuff_skip_s cn63xxp1;
};
typedef union cvmx_ipd_1st_mbuff_skip cvmx_ipd_1st_mbuff_skip_t;
/**
* cvmx_ipd_1st_next_ptr_back
*
* IPD_1st_NEXT_PTR_BACK = IPD First Next Pointer Back Values
*
* Contains the Back Field for use in creating the Next Pointer Header for the First MBUF
*/
union cvmx_ipd_1st_next_ptr_back
{
uint64_t u64;
struct cvmx_ipd_1st_next_ptr_back_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_4_63 : 60;
uint64_t back : 4; /**< Used to find head of buffer from the nxt-hdr-ptr. */
#else
uint64_t back : 4;
uint64_t reserved_4_63 : 60;
#endif
} s;
struct cvmx_ipd_1st_next_ptr_back_s cn30xx;
struct cvmx_ipd_1st_next_ptr_back_s cn31xx;
struct cvmx_ipd_1st_next_ptr_back_s cn38xx;
struct cvmx_ipd_1st_next_ptr_back_s cn38xxp2;
struct cvmx_ipd_1st_next_ptr_back_s cn50xx;
struct cvmx_ipd_1st_next_ptr_back_s cn52xx;
struct cvmx_ipd_1st_next_ptr_back_s cn52xxp1;
struct cvmx_ipd_1st_next_ptr_back_s cn56xx;
struct cvmx_ipd_1st_next_ptr_back_s cn56xxp1;
struct cvmx_ipd_1st_next_ptr_back_s cn58xx;
struct cvmx_ipd_1st_next_ptr_back_s cn58xxp1;
struct cvmx_ipd_1st_next_ptr_back_s cn63xx;
struct cvmx_ipd_1st_next_ptr_back_s cn63xxp1;
};
typedef union cvmx_ipd_1st_next_ptr_back cvmx_ipd_1st_next_ptr_back_t;
/**
* cvmx_ipd_2nd_next_ptr_back
*
* IPD_2nd_NEXT_PTR_BACK = IPD Second Next Pointer Back Value
*
* Contains the Back Field for use in creating the Next Pointer Header for the First MBUF
*/
union cvmx_ipd_2nd_next_ptr_back
{
uint64_t u64;
struct cvmx_ipd_2nd_next_ptr_back_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_4_63 : 60;
uint64_t back : 4; /**< Used to find head of buffer from the nxt-hdr-ptr. */
#else
uint64_t back : 4;
uint64_t reserved_4_63 : 60;
#endif
} s;
struct cvmx_ipd_2nd_next_ptr_back_s cn30xx;
struct cvmx_ipd_2nd_next_ptr_back_s cn31xx;
struct cvmx_ipd_2nd_next_ptr_back_s cn38xx;
struct cvmx_ipd_2nd_next_ptr_back_s cn38xxp2;
struct cvmx_ipd_2nd_next_ptr_back_s cn50xx;
struct cvmx_ipd_2nd_next_ptr_back_s cn52xx;
struct cvmx_ipd_2nd_next_ptr_back_s cn52xxp1;
struct cvmx_ipd_2nd_next_ptr_back_s cn56xx;
struct cvmx_ipd_2nd_next_ptr_back_s cn56xxp1;
struct cvmx_ipd_2nd_next_ptr_back_s cn58xx;
struct cvmx_ipd_2nd_next_ptr_back_s cn58xxp1;
struct cvmx_ipd_2nd_next_ptr_back_s cn63xx;
struct cvmx_ipd_2nd_next_ptr_back_s cn63xxp1;
};
typedef union cvmx_ipd_2nd_next_ptr_back cvmx_ipd_2nd_next_ptr_back_t;
/**
* cvmx_ipd_bist_status
*
* IPD_BIST_STATUS = IPD BIST STATUS
*
* BIST Status for IPD's Memories.
*/
union cvmx_ipd_bist_status
{
uint64_t u64;
struct cvmx_ipd_bist_status_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_18_63 : 46;
uint64_t csr_mem : 1; /**< CSR Register Memory Bist Status. */
uint64_t csr_ncmd : 1; /**< CSR NCB Commands Memory Bist Status. */
uint64_t pwq_wqed : 1; /**< PWQ PIP WQE DONE Memory Bist Status. */
uint64_t pwq_wp1 : 1; /**< PWQ WQE PAGE1 PTR Memory Bist Status. */
uint64_t pwq_pow : 1; /**< PWQ POW MEM Memory Bist Status. */
uint64_t ipq_pbe1 : 1; /**< IPQ PBE1 Memory Bist Status. */
uint64_t ipq_pbe0 : 1; /**< IPQ PBE0 Memory Bist Status. */
uint64_t pbm3 : 1; /**< PBM3 Memory Bist Status. */
uint64_t pbm2 : 1; /**< PBM2 Memory Bist Status. */
uint64_t pbm1 : 1; /**< PBM1 Memory Bist Status. */
uint64_t pbm0 : 1; /**< PBM0 Memory Bist Status. */
uint64_t pbm_word : 1; /**< PBM_WORD Memory Bist Status. */
uint64_t pwq1 : 1; /**< PWQ1 Memory Bist Status. */
uint64_t pwq0 : 1; /**< PWQ0 Memory Bist Status. */
uint64_t prc_off : 1; /**< PRC_OFF Memory Bist Status. */
uint64_t ipd_old : 1; /**< IPD_OLD Memory Bist Status. */
uint64_t ipd_new : 1; /**< IPD_NEW Memory Bist Status. */
uint64_t pwp : 1; /**< PWP Memory Bist Status. */
#else
uint64_t pwp : 1;
uint64_t ipd_new : 1;
uint64_t ipd_old : 1;
uint64_t prc_off : 1;
uint64_t pwq0 : 1;
uint64_t pwq1 : 1;
uint64_t pbm_word : 1;
uint64_t pbm0 : 1;
uint64_t pbm1 : 1;
uint64_t pbm2 : 1;
uint64_t pbm3 : 1;
uint64_t ipq_pbe0 : 1;
uint64_t ipq_pbe1 : 1;
uint64_t pwq_pow : 1;
uint64_t pwq_wp1 : 1;
uint64_t pwq_wqed : 1;
uint64_t csr_ncmd : 1;
uint64_t csr_mem : 1;
uint64_t reserved_18_63 : 46;
#endif
} s;
struct cvmx_ipd_bist_status_cn30xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_16_63 : 48;
uint64_t pwq_wqed : 1; /**< PWQ PIP WQE DONE Memory Bist Status. */
uint64_t pwq_wp1 : 1; /**< PWQ WQE PAGE1 PTR Memory Bist Status. */
uint64_t pwq_pow : 1; /**< PWQ POW MEM Memory Bist Status. */
uint64_t ipq_pbe1 : 1; /**< IPQ PBE1 Memory Bist Status. */
uint64_t ipq_pbe0 : 1; /**< IPQ PBE0 Memory Bist Status. */
uint64_t pbm3 : 1; /**< PBM3 Memory Bist Status. */
uint64_t pbm2 : 1; /**< PBM2 Memory Bist Status. */
uint64_t pbm1 : 1; /**< PBM1 Memory Bist Status. */
uint64_t pbm0 : 1; /**< PBM0 Memory Bist Status. */
uint64_t pbm_word : 1; /**< PBM_WORD Memory Bist Status. */
uint64_t pwq1 : 1; /**< PWQ1 Memory Bist Status. */
uint64_t pwq0 : 1; /**< PWQ0 Memory Bist Status. */
uint64_t prc_off : 1; /**< PRC_OFF Memory Bist Status. */
uint64_t ipd_old : 1; /**< IPD_OLD Memory Bist Status. */
uint64_t ipd_new : 1; /**< IPD_NEW Memory Bist Status. */
uint64_t pwp : 1; /**< PWP Memory Bist Status. */
#else
uint64_t pwp : 1;
uint64_t ipd_new : 1;
uint64_t ipd_old : 1;
uint64_t prc_off : 1;
uint64_t pwq0 : 1;
uint64_t pwq1 : 1;
uint64_t pbm_word : 1;
uint64_t pbm0 : 1;
uint64_t pbm1 : 1;
uint64_t pbm2 : 1;
uint64_t pbm3 : 1;
uint64_t ipq_pbe0 : 1;
uint64_t ipq_pbe1 : 1;
uint64_t pwq_pow : 1;
uint64_t pwq_wp1 : 1;
uint64_t pwq_wqed : 1;
uint64_t reserved_16_63 : 48;
#endif
} cn30xx;
struct cvmx_ipd_bist_status_cn30xx cn31xx;
struct cvmx_ipd_bist_status_cn30xx cn38xx;
struct cvmx_ipd_bist_status_cn30xx cn38xxp2;
struct cvmx_ipd_bist_status_cn30xx cn50xx;
struct cvmx_ipd_bist_status_s cn52xx;
struct cvmx_ipd_bist_status_s cn52xxp1;
struct cvmx_ipd_bist_status_s cn56xx;
struct cvmx_ipd_bist_status_s cn56xxp1;
struct cvmx_ipd_bist_status_cn30xx cn58xx;
struct cvmx_ipd_bist_status_cn30xx cn58xxp1;
struct cvmx_ipd_bist_status_s cn63xx;
struct cvmx_ipd_bist_status_s cn63xxp1;
};
typedef union cvmx_ipd_bist_status cvmx_ipd_bist_status_t;
/**
* cvmx_ipd_bp_prt_red_end
*
* IPD_BP_PRT_RED_END = IPD Backpressure Port RED Enable
*
* When IPD applies backpressure to a PORT and the corresponding bit in this register is set,
* the RED Unit will drop packets for that port.
*/
union cvmx_ipd_bp_prt_red_end
{
uint64_t u64;
struct cvmx_ipd_bp_prt_red_end_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_44_63 : 20;
uint64_t prt_enb : 44; /**< The port corresponding to the bit position in this
field will drop all NON-RAW packets to that port
when port level backpressure is applied to that
port. The applying of port-level backpressure for
this dropping does not take into consideration the
value of IPD_PORTX_BP_PAGE_CNT[BP_ENB], nor
IPD_RED_PORT_ENABLE[PRT_ENB]. */
#else
uint64_t prt_enb : 44;
uint64_t reserved_44_63 : 20;
#endif
} s;
struct cvmx_ipd_bp_prt_red_end_cn30xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_36_63 : 28;
uint64_t prt_enb : 36; /**< The port corresponding to the bit position in this
field, will allow RED to drop back when port level
backpressure is applied to the port. The applying
of port-level backpressure for this RED dropping
does not take into consideration the value of
IPD_PORTX_BP_PAGE_CNT[BP_ENB]. */
#else
uint64_t prt_enb : 36;
uint64_t reserved_36_63 : 28;
#endif
} cn30xx;
struct cvmx_ipd_bp_prt_red_end_cn30xx cn31xx;
struct cvmx_ipd_bp_prt_red_end_cn30xx cn38xx;
struct cvmx_ipd_bp_prt_red_end_cn30xx cn38xxp2;
struct cvmx_ipd_bp_prt_red_end_cn30xx cn50xx;
struct cvmx_ipd_bp_prt_red_end_cn52xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_40_63 : 24;
uint64_t prt_enb : 40; /**< The port corresponding to the bit position in this
field, will allow RED to drop back when port level
backpressure is applied to the port. The applying
of port-level backpressure for this RED dropping
does not take into consideration the value of
IPD_PORTX_BP_PAGE_CNT[BP_ENB]. */
#else
uint64_t prt_enb : 40;
uint64_t reserved_40_63 : 24;
#endif
} cn52xx;
struct cvmx_ipd_bp_prt_red_end_cn52xx cn52xxp1;
struct cvmx_ipd_bp_prt_red_end_cn52xx cn56xx;
struct cvmx_ipd_bp_prt_red_end_cn52xx cn56xxp1;
struct cvmx_ipd_bp_prt_red_end_cn30xx cn58xx;
struct cvmx_ipd_bp_prt_red_end_cn30xx cn58xxp1;
struct cvmx_ipd_bp_prt_red_end_s cn63xx;
struct cvmx_ipd_bp_prt_red_end_s cn63xxp1;
};
typedef union cvmx_ipd_bp_prt_red_end cvmx_ipd_bp_prt_red_end_t;
/**
* cvmx_ipd_clk_count
*
* IPD_CLK_COUNT = IPD Clock Count
*
* Counts the number of core clocks periods since the de-asserition of reset.
*/
union cvmx_ipd_clk_count
{
uint64_t u64;
struct cvmx_ipd_clk_count_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t clk_cnt : 64; /**< This counter will be zeroed when reset is applied
and will increment every rising edge of the
core-clock. */
#else
uint64_t clk_cnt : 64;
#endif
} s;
struct cvmx_ipd_clk_count_s cn30xx;
struct cvmx_ipd_clk_count_s cn31xx;
struct cvmx_ipd_clk_count_s cn38xx;
struct cvmx_ipd_clk_count_s cn38xxp2;
struct cvmx_ipd_clk_count_s cn50xx;
struct cvmx_ipd_clk_count_s cn52xx;
struct cvmx_ipd_clk_count_s cn52xxp1;
struct cvmx_ipd_clk_count_s cn56xx;
struct cvmx_ipd_clk_count_s cn56xxp1;
struct cvmx_ipd_clk_count_s cn58xx;
struct cvmx_ipd_clk_count_s cn58xxp1;
struct cvmx_ipd_clk_count_s cn63xx;
struct cvmx_ipd_clk_count_s cn63xxp1;
};
typedef union cvmx_ipd_clk_count cvmx_ipd_clk_count_t;
/**
* cvmx_ipd_ctl_status
*
* IPD_CTL_STATUS = IPD's Control Status Register
*
* The number of words in a MBUFF used for packet data store.
*/
union cvmx_ipd_ctl_status
{
uint64_t u64;
struct cvmx_ipd_ctl_status_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_18_63 : 46;
uint64_t use_sop : 1; /**< When '1' the SOP sent by the MAC will be used in
place of the SOP generated by the IPD. */
uint64_t rst_done : 1; /**< When '0' IPD has finished reset. No access
except the reading of this bit should occur to the
IPD until this is asserted. Or a 1000 core clock
cycles has passed after the de-assertion of reset. */
uint64_t clken : 1; /**< Controls the conditional clocking within IPD
0=Allow HW to control the clocks
1=Force the clocks to be always on */
uint64_t no_wptr : 1; /**< When set '1' the WQE pointers will not be used and
the WQE will be located at the front of the packet.
When set:
- IPD_WQE_FPA_QUEUE[WQE_QUE] is not used
- IPD_1ST_MBUFF_SKIP[SKIP_SZ] must be at least 16
- If 16 <= IPD_1ST_MBUFF_SKIP[SKIP_SZ] <= 31 then
the WQE will be written into the first 128B
cache block in the first buffer that contains
the packet.
- If IPD_1ST_MBUFF_SKIP[SKIP_SZ] == 32 then
the WQE will be written into the second 128B
cache block in the first buffer that contains
the packet. */
uint64_t pq_apkt : 1; /**< When set IPD_PORT_QOS_X_CNT WILL be incremented
by one for every work queue entry that is sent to
POW. */
uint64_t pq_nabuf : 1; /**< When set IPD_PORT_QOS_X_CNT WILL NOT be
incremented when IPD allocates a buffer for a
packet. */
uint64_t ipd_full : 1; /**< When clear '0' the IPD acts normaly.
When set '1' the IPD drive the IPD_BUFF_FULL line to
the IOB-arbiter, telling it to not give grants to
NCB devices sending packet data. */
uint64_t pkt_off : 1; /**< When clear '0' the IPD working normaly,
buffering the received packet data. When set '1'
the IPD will not buffer the received packet data. */
uint64_t len_m8 : 1; /**< Setting of this bit will subtract 8 from the
data-length field in the header written to the
POW and the top of a MBUFF.
OCTEAN generates a length that includes the
length of the data + 8 for the header-field. By
setting this bit the 8 for the instr-field will
not be included in the length field of the header.
NOTE: IPD is compliant with the spec when this
field is '1'. */
uint64_t reset : 1; /**< When set '1' causes a reset of the IPD, except
RSL. */
uint64_t addpkt : 1; /**< When IPD_CTL_STATUS[ADDPKT] is set,
IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL],
IPD_PORT_BP_COUNTERS2_PAIR(port)[CNT_VAL] and
IPD_PORT_BP_COUNTERS3_PAIR(port)[CNT_VAL]
WILL be incremented by one for every work
queue entry that is sent to POW. */
uint64_t naddbuf : 1; /**< When IPD_CTL_STATUS[NADDBUF] is set,
IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL],
IPD_PORT_BP_COUNTERS2_PAIR(port)[CNT_VAL] and
IPD_PORT_BP_COUNTERS3_PAIR(port)[CNT_VAL]
WILL NOT be incremented when IPD allocates a
buffer for a packet on the port. */
uint64_t pkt_lend : 1; /**< Changes PKT to little endian writes to L2C */
uint64_t wqe_lend : 1; /**< Changes WQE to little endian writes to L2C */
uint64_t pbp_en : 1; /**< Port back pressure enable. When set '1' enables
the sending of port level backpressure to the
Octane input-ports. The application should NOT
de-assert this bit after asserting it. The
receivers of this bit may have been put into
backpressure mode and can only be released by
IPD informing them that the backpressure has
been released.
GMXX_INF_MODE[EN] must be set to '1' for each
packet interface which requires port back pressure
prior to setting PBP_EN to '1'. */
cvmx_ipd_mode_t opc_mode : 2; /**< 0 ==> All packet data (and next buffer pointers)
is written through to memory.
1 ==> All packet data (and next buffer pointers) is
written into the cache.
2 ==> The first aligned cache block holding the
packet data (and initial next buffer pointer) is
written to the L2 cache, all remaining cache blocks
are not written to the L2 cache.
3 ==> The first two aligned cache blocks holding
the packet data (and initial next buffer pointer)
are written to the L2 cache, all remaining cache
blocks are not written to the L2 cache. */
uint64_t ipd_en : 1; /**< When set '1' enable the operation of the IPD.
When clear '0', the IPD will appear to the
IOB-arbiter to be applying backpressure, this
causes the IOB-Arbiter to not send grants to NCB
devices requesting to send packet data to the IPD. */
#else
uint64_t ipd_en : 1;
cvmx_ipd_mode_t opc_mode : 2;
uint64_t pbp_en : 1;
uint64_t wqe_lend : 1;
uint64_t pkt_lend : 1;
uint64_t naddbuf : 1;
uint64_t addpkt : 1;
uint64_t reset : 1;
uint64_t len_m8 : 1;
uint64_t pkt_off : 1;
uint64_t ipd_full : 1;
uint64_t pq_nabuf : 1;
uint64_t pq_apkt : 1;
uint64_t no_wptr : 1;
uint64_t clken : 1;
uint64_t rst_done : 1;
uint64_t use_sop : 1;
uint64_t reserved_18_63 : 46;
#endif
} s;
struct cvmx_ipd_ctl_status_cn30xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_10_63 : 54;
uint64_t len_m8 : 1; /**< Setting of this bit will subtract 8 from the
data-length field in the header written wo the
POW and the top of a MBUFF.
OCTEAN generates a length that includes the
length of the data + 8 for the header-field. By
setting this bit the 8 for the instr-field will
not be included in the length field of the header.
NOTE: IPD is compliant with the spec when this
field is '1'. */
uint64_t reset : 1; /**< When set '1' causes a reset of the IPD, except
RSL. */
uint64_t addpkt : 1; /**< When IPD_CTL_STATUS[ADDPKT] is set,
IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL]
WILL be incremented by one for every work
queue entry that is sent to POW. */
uint64_t naddbuf : 1; /**< When IPD_CTL_STATUS[NADDBUF] is set,
IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL]
WILL NOT be incremented when IPD allocates a
buffer for a packet on the port. */
uint64_t pkt_lend : 1; /**< Changes PKT to little endian writes to L2C */
uint64_t wqe_lend : 1; /**< Changes WQE to little endian writes to L2C */
uint64_t pbp_en : 1; /**< Port back pressure enable. When set '1' enables
the sending of port level backpressure to the
Octane input-ports. Once enabled the sending of
port-level-backpressure can not be disabled by
changing the value of this bit.
GMXX_INF_MODE[EN] must be set to '1' for each
packet interface which requires port back pressure
prior to setting PBP_EN to '1'. */
cvmx_ipd_mode_t opc_mode : 2; /**< 0 ==> All packet data (and next buffer pointers)
is written through to memory.
1 ==> All packet data (and next buffer pointers) is
written into the cache.
2 ==> The first aligned cache block holding the
packet data (and initial next buffer pointer) is
written to the L2 cache, all remaining cache blocks
are not written to the L2 cache.
3 ==> The first two aligned cache blocks holding
the packet data (and initial next buffer pointer)
are written to the L2 cache, all remaining cache
blocks are not written to the L2 cache. */
uint64_t ipd_en : 1; /**< When set '1' enable the operation of the IPD. */
#else
uint64_t ipd_en : 1;
cvmx_ipd_mode_t opc_mode : 2;
uint64_t pbp_en : 1;
uint64_t wqe_lend : 1;
uint64_t pkt_lend : 1;
uint64_t naddbuf : 1;
uint64_t addpkt : 1;
uint64_t reset : 1;
uint64_t len_m8 : 1;
uint64_t reserved_10_63 : 54;
#endif
} cn30xx;
struct cvmx_ipd_ctl_status_cn30xx cn31xx;
struct cvmx_ipd_ctl_status_cn30xx cn38xx;
struct cvmx_ipd_ctl_status_cn38xxp2
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_9_63 : 55;
uint64_t reset : 1; /**< When set '1' causes a reset of the IPD, except
RSL. */
uint64_t addpkt : 1; /**< When IPD_CTL_STATUS[ADDPKT] is set,
IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL]
WILL be incremented by one for every work
queue entry that is sent to POW.
PASS-2 Field. */
uint64_t naddbuf : 1; /**< When IPD_CTL_STATUS[NADDBUF] is set,
IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL]
WILL NOT be incremented when IPD allocates a
buffer for a packet on the port.
PASS-2 Field. */
uint64_t pkt_lend : 1; /**< Changes PKT to little endian writes to L2C */
uint64_t wqe_lend : 1; /**< Changes WQE to little endian writes to L2C */
uint64_t pbp_en : 1; /**< Port back pressure enable. When set '1' enables
the sending of port level backpressure to the
Octane input-ports. Once enabled the sending of
port-level-backpressure can not be disabled by
changing the value of this bit. */
cvmx_ipd_mode_t opc_mode : 2; /**< 0 ==> All packet data (and next buffer pointers)
is written through to memory.
1 ==> All packet data (and next buffer pointers) is
written into the cache.
2 ==> The first aligned cache block holding the
packet data (and initial next buffer pointer) is
written to the L2 cache, all remaining cache blocks
are not written to the L2 cache.
3 ==> The first two aligned cache blocks holding
the packet data (and initial next buffer pointer)
are written to the L2 cache, all remaining cache
blocks are not written to the L2 cache. */
uint64_t ipd_en : 1; /**< When set '1' enable the operation of the IPD. */
#else
uint64_t ipd_en : 1;
cvmx_ipd_mode_t opc_mode : 2;
uint64_t pbp_en : 1;
uint64_t wqe_lend : 1;
uint64_t pkt_lend : 1;
uint64_t naddbuf : 1;
uint64_t addpkt : 1;
uint64_t reset : 1;
uint64_t reserved_9_63 : 55;
#endif
} cn38xxp2;
struct cvmx_ipd_ctl_status_cn50xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_15_63 : 49;
uint64_t no_wptr : 1; /**< When set '1' the WQE pointers will not be used and
the WQE will be located at the front of the packet. */
uint64_t pq_apkt : 1; /**< Reserved. */
uint64_t pq_nabuf : 1; /**< Reserved. */
uint64_t ipd_full : 1; /**< When clear '0' the IPD acts normaly.
When set '1' the IPD drive the IPD_BUFF_FULL line to
the IOB-arbiter, telling it to not give grants to
NCB devices sending packet data. */
uint64_t pkt_off : 1; /**< When clear '0' the IPD working normaly,
buffering the received packet data. When set '1'
the IPD will not buffer the received packet data. */
uint64_t len_m8 : 1; /**< Setting of this bit will subtract 8 from the
data-length field in the header written wo the
POW and the top of a MBUFF.
OCTEAN generates a length that includes the
length of the data + 8 for the header-field. By
setting this bit the 8 for the instr-field will
not be included in the length field of the header.
NOTE: IPD is compliant with the spec when this
field is '1'. */
uint64_t reset : 1; /**< When set '1' causes a reset of the IPD, except
RSL. */
uint64_t addpkt : 1; /**< When IPD_CTL_STATUS[ADDPKT] is set,
IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL]
WILL be incremented by one for every work
queue entry that is sent to POW. */
uint64_t naddbuf : 1; /**< When IPD_CTL_STATUS[NADDBUF] is set,
IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL]
WILL NOT be incremented when IPD allocates a
buffer for a packet on the port. */
uint64_t pkt_lend : 1; /**< Changes PKT to little endian writes to L2C */
uint64_t wqe_lend : 1; /**< Changes WQE to little endian writes to L2C */
uint64_t pbp_en : 1; /**< Port back pressure enable. When set '1' enables
the sending of port level backpressure to the
Octane input-ports. Once enabled the sending of
port-level-backpressure can not be disabled by
changing the value of this bit.
GMXX_INF_MODE[EN] must be set to '1' for each
packet interface which requires port back pressure
prior to setting PBP_EN to '1'. */
cvmx_ipd_mode_t opc_mode : 2; /**< 0 ==> All packet data (and next buffer pointers)
is written through to memory.
1 ==> All packet data (and next buffer pointers) is
written into the cache.
2 ==> The first aligned cache block holding the
packet data (and initial next buffer pointer) is
written to the L2 cache, all remaining cache blocks
are not written to the L2 cache.
3 ==> The first two aligned cache blocks holding
the packet data (and initial next buffer pointer)
are written to the L2 cache, all remaining cache
blocks are not written to the L2 cache. */
uint64_t ipd_en : 1; /**< When set '1' enable the operation of the IPD.
When clear '0', the IPD will appear to the
IOB-arbiter to be applying backpressure, this
causes the IOB-Arbiter to not send grants to NCB
devices requesting to send packet data to the IPD. */
#else
uint64_t ipd_en : 1;
cvmx_ipd_mode_t opc_mode : 2;
uint64_t pbp_en : 1;
uint64_t wqe_lend : 1;
uint64_t pkt_lend : 1;
uint64_t naddbuf : 1;
uint64_t addpkt : 1;
uint64_t reset : 1;
uint64_t len_m8 : 1;
uint64_t pkt_off : 1;
uint64_t ipd_full : 1;
uint64_t pq_nabuf : 1;
uint64_t pq_apkt : 1;
uint64_t no_wptr : 1;
uint64_t reserved_15_63 : 49;
#endif
} cn50xx;
struct cvmx_ipd_ctl_status_cn50xx cn52xx;
struct cvmx_ipd_ctl_status_cn50xx cn52xxp1;
struct cvmx_ipd_ctl_status_cn50xx cn56xx;
struct cvmx_ipd_ctl_status_cn50xx cn56xxp1;
struct cvmx_ipd_ctl_status_cn58xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_12_63 : 52;
uint64_t ipd_full : 1; /**< When clear '0' the IPD acts normaly.
When set '1' the IPD drive the IPD_BUFF_FULL line to
the IOB-arbiter, telling it to not give grants to
NCB devices sending packet data. */
uint64_t pkt_off : 1; /**< When clear '0' the IPD working normaly,
buffering the received packet data. When set '1'
the IPD will not buffer the received packet data. */
uint64_t len_m8 : 1; /**< Setting of this bit will subtract 8 from the
data-length field in the header written wo the
POW and the top of a MBUFF.
OCTEAN PASS2 generates a length that includes the
length of the data + 8 for the header-field. By
setting this bit the 8 for the instr-field will
not be included in the length field of the header.
NOTE: IPD is compliant with the spec when this
field is '1'. */
uint64_t reset : 1; /**< When set '1' causes a reset of the IPD, except
RSL. */
uint64_t addpkt : 1; /**< When IPD_CTL_STATUS[ADDPKT] is set,
IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL]
WILL be incremented by one for every work
queue entry that is sent to POW.
PASS-2 Field. */
uint64_t naddbuf : 1; /**< When IPD_CTL_STATUS[NADDBUF] is set,
IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL]
WILL NOT be incremented when IPD allocates a
buffer for a packet on the port.
PASS-2 Field. */
uint64_t pkt_lend : 1; /**< Changes PKT to little endian writes to L2C */
uint64_t wqe_lend : 1; /**< Changes WQE to little endian writes to L2C */
uint64_t pbp_en : 1; /**< Port back pressure enable. When set '1' enables
the sending of port level backpressure to the
Octane input-ports. Once enabled the sending of
port-level-backpressure can not be disabled by
changing the value of this bit. */
cvmx_ipd_mode_t opc_mode : 2; /**< 0 ==> All packet data (and next buffer pointers)
is written through to memory.
1 ==> All packet data (and next buffer pointers) is
written into the cache.
2 ==> The first aligned cache block holding the
packet data (and initial next buffer pointer) is
written to the L2 cache, all remaining cache blocks
are not written to the L2 cache.
3 ==> The first two aligned cache blocks holding
the packet data (and initial next buffer pointer)
are written to the L2 cache, all remaining cache
blocks are not written to the L2 cache. */
uint64_t ipd_en : 1; /**< When set '1' enable the operation of the IPD.
When clear '0', the IPD will appear to the
IOB-arbiter to be applying backpressure, this
causes the IOB-Arbiter to not send grants to NCB
devices requesting to send packet data to the IPD. */
#else
uint64_t ipd_en : 1;
cvmx_ipd_mode_t opc_mode : 2;
uint64_t pbp_en : 1;
uint64_t wqe_lend : 1;
uint64_t pkt_lend : 1;
uint64_t naddbuf : 1;
uint64_t addpkt : 1;
uint64_t reset : 1;
uint64_t len_m8 : 1;
uint64_t pkt_off : 1;
uint64_t ipd_full : 1;
uint64_t reserved_12_63 : 52;
#endif
} cn58xx;
struct cvmx_ipd_ctl_status_cn58xx cn58xxp1;
struct cvmx_ipd_ctl_status_s cn63xx;
struct cvmx_ipd_ctl_status_cn63xxp1
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_16_63 : 48;
uint64_t clken : 1; /**< Controls the conditional clocking within IPD
0=Allow HW to control the clocks
1=Force the clocks to be always on */
uint64_t no_wptr : 1; /**< When set '1' the WQE pointers will not be used and
the WQE will be located at the front of the packet.
When set:
- IPD_WQE_FPA_QUEUE[WQE_QUE] is not used
- IPD_1ST_MBUFF_SKIP[SKIP_SZ] must be at least 16
- If 16 <= IPD_1ST_MBUFF_SKIP[SKIP_SZ] <= 31 then
the WQE will be written into the first 128B
cache block in the first buffer that contains
the packet.
- If IPD_1ST_MBUFF_SKIP[SKIP_SZ] == 32 then
the WQE will be written into the second 128B
cache block in the first buffer that contains
the packet. */
uint64_t pq_apkt : 1; /**< When set IPD_PORT_QOS_X_CNT WILL be incremented
by one for every work queue entry that is sent to
POW. */
uint64_t pq_nabuf : 1; /**< When set IPD_PORT_QOS_X_CNT WILL NOT be
incremented when IPD allocates a buffer for a
packet. */
uint64_t ipd_full : 1; /**< When clear '0' the IPD acts normaly.
When set '1' the IPD drive the IPD_BUFF_FULL line to
the IOB-arbiter, telling it to not give grants to
NCB devices sending packet data. */
uint64_t pkt_off : 1; /**< When clear '0' the IPD working normaly,
buffering the received packet data. When set '1'
the IPD will not buffer the received packet data. */
uint64_t len_m8 : 1; /**< Setting of this bit will subtract 8 from the
data-length field in the header written to the
POW and the top of a MBUFF.
OCTEAN generates a length that includes the
length of the data + 8 for the header-field. By
setting this bit the 8 for the instr-field will
not be included in the length field of the header.
NOTE: IPD is compliant with the spec when this
field is '1'. */
uint64_t reset : 1; /**< When set '1' causes a reset of the IPD, except
RSL. */
uint64_t addpkt : 1; /**< When IPD_CTL_STATUS[ADDPKT] is set,
IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL],
IPD_PORT_BP_COUNTERS2_PAIR(port)[CNT_VAL] and
IPD_PORT_BP_COUNTERS3_PAIR(port)[CNT_VAL]
WILL be incremented by one for every work
queue entry that is sent to POW. */
uint64_t naddbuf : 1; /**< When IPD_CTL_STATUS[NADDBUF] is set,
IPD_PORT_BP_COUNTERS_PAIR(port)[CNT_VAL],
IPD_PORT_BP_COUNTERS2_PAIR(port)[CNT_VAL] and
IPD_PORT_BP_COUNTERS3_PAIR(port)[CNT_VAL]
WILL NOT be incremented when IPD allocates a
buffer for a packet on the port. */
uint64_t pkt_lend : 1; /**< Changes PKT to little endian writes to L2C */
uint64_t wqe_lend : 1; /**< Changes WQE to little endian writes to L2C */
uint64_t pbp_en : 1; /**< Port back pressure enable. When set '1' enables
the sending of port level backpressure to the
Octane input-ports. The application should NOT
de-assert this bit after asserting it. The
receivers of this bit may have been put into
backpressure mode and can only be released by
IPD informing them that the backpressure has
been released.
GMXX_INF_MODE[EN] must be set to '1' for each
packet interface which requires port back pressure
prior to setting PBP_EN to '1'. */
cvmx_ipd_mode_t opc_mode : 2; /**< 0 ==> All packet data (and next buffer pointers)
is written through to memory.
1 ==> All packet data (and next buffer pointers) is
written into the cache.
2 ==> The first aligned cache block holding the
packet data (and initial next buffer pointer) is
written to the L2 cache, all remaining cache blocks
are not written to the L2 cache.
3 ==> The first two aligned cache blocks holding
the packet data (and initial next buffer pointer)
are written to the L2 cache, all remaining cache
blocks are not written to the L2 cache. */
uint64_t ipd_en : 1; /**< When set '1' enable the operation of the IPD.
When clear '0', the IPD will appear to the
IOB-arbiter to be applying backpressure, this
causes the IOB-Arbiter to not send grants to NCB
devices requesting to send packet data to the IPD. */
#else
uint64_t ipd_en : 1;
cvmx_ipd_mode_t opc_mode : 2;
uint64_t pbp_en : 1;
uint64_t wqe_lend : 1;
uint64_t pkt_lend : 1;
uint64_t naddbuf : 1;
uint64_t addpkt : 1;
uint64_t reset : 1;
uint64_t len_m8 : 1;
uint64_t pkt_off : 1;
uint64_t ipd_full : 1;
uint64_t pq_nabuf : 1;
uint64_t pq_apkt : 1;
uint64_t no_wptr : 1;
uint64_t clken : 1;
uint64_t reserved_16_63 : 48;
#endif
} cn63xxp1;
};
typedef union cvmx_ipd_ctl_status cvmx_ipd_ctl_status_t;
/**
* cvmx_ipd_int_enb
*
* IPD_INTERRUPT_ENB = IPD Interrupt Enable Register
*
* Used to enable the various interrupting conditions of IPD
*/
union cvmx_ipd_int_enb
{
uint64_t u64;
struct cvmx_ipd_int_enb_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_12_63 : 52;
uint64_t pq_sub : 1; /**< Allows an interrupt to be sent when the
corresponding bit in the IPD_INT_SUM is set. */
uint64_t pq_add : 1; /**< Allows an interrupt to be sent when the
corresponding bit in the IPD_INT_SUM is set. */
uint64_t bc_ovr : 1; /**< Allows an interrupt to be sent when the
corresponding bit in the IPD_INT_SUM is set. */
uint64_t d_coll : 1; /**< Allows an interrupt to be sent when the
corresponding bit in the IPD_INT_SUM is set. */
uint64_t c_coll : 1; /**< Allows an interrupt to be sent when the
corresponding bit in the IPD_INT_SUM is set. */
uint64_t cc_ovr : 1; /**< Allows an interrupt to be sent when the
corresponding bit in the IPD_INT_SUM is set. */
uint64_t dc_ovr : 1; /**< Allows an interrupt to be sent when the
corresponding bit in the IPD_INT_SUM is set. */
uint64_t bp_sub : 1; /**< Enables interrupts when a backpressure subtract
has an illegal value. */
uint64_t prc_par3 : 1; /**< Enable parity error interrupts for bits
[127:96] of the PBM memory. */
uint64_t prc_par2 : 1; /**< Enable parity error interrupts for bits
[95:64] of the PBM memory. */
uint64_t prc_par1 : 1; /**< Enable parity error interrupts for bits
[63:32] of the PBM memory. */
uint64_t prc_par0 : 1; /**< Enable parity error interrupts for bits
[31:0] of the PBM memory. */
#else
uint64_t prc_par0 : 1;
uint64_t prc_par1 : 1;
uint64_t prc_par2 : 1;
uint64_t prc_par3 : 1;
uint64_t bp_sub : 1;
uint64_t dc_ovr : 1;
uint64_t cc_ovr : 1;
uint64_t c_coll : 1;
uint64_t d_coll : 1;
uint64_t bc_ovr : 1;
uint64_t pq_add : 1;
uint64_t pq_sub : 1;
uint64_t reserved_12_63 : 52;
#endif
} s;
struct cvmx_ipd_int_enb_cn30xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_5_63 : 59;
uint64_t bp_sub : 1; /**< Enables interrupts when a backpressure subtract
has an illegal value. */
uint64_t prc_par3 : 1; /**< Enable parity error interrupts for bits
[127:96] of the PBM memory. */
uint64_t prc_par2 : 1; /**< Enable parity error interrupts for bits
[95:64] of the PBM memory. */
uint64_t prc_par1 : 1; /**< Enable parity error interrupts for bits
[63:32] of the PBM memory. */
uint64_t prc_par0 : 1; /**< Enable parity error interrupts for bits
[31:0] of the PBM memory. */
#else
uint64_t prc_par0 : 1;
uint64_t prc_par1 : 1;
uint64_t prc_par2 : 1;
uint64_t prc_par3 : 1;
uint64_t bp_sub : 1;
uint64_t reserved_5_63 : 59;
#endif
} cn30xx;
struct cvmx_ipd_int_enb_cn30xx cn31xx;
struct cvmx_ipd_int_enb_cn38xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_10_63 : 54;
uint64_t bc_ovr : 1; /**< Allows an interrupt to be sent when the
corresponding bit in the IPD_INT_SUM is set.
This is a PASS-3 Field. */
uint64_t d_coll : 1; /**< Allows an interrupt to be sent when the
corresponding bit in the IPD_INT_SUM is set.
This is a PASS-3 Field. */
uint64_t c_coll : 1; /**< Allows an interrupt to be sent when the
corresponding bit in the IPD_INT_SUM is set.
This is a PASS-3 Field. */
uint64_t cc_ovr : 1; /**< Allows an interrupt to be sent when the
corresponding bit in the IPD_INT_SUM is set.
This is a PASS-3 Field. */
uint64_t dc_ovr : 1; /**< Allows an interrupt to be sent when the
corresponding bit in the IPD_INT_SUM is set.
This is a PASS-3 Field. */
uint64_t bp_sub : 1; /**< Enables interrupts when a backpressure subtract
has an illegal value. */
uint64_t prc_par3 : 1; /**< Enable parity error interrupts for bits
[127:96] of the PBM memory. */
uint64_t prc_par2 : 1; /**< Enable parity error interrupts for bits
[95:64] of the PBM memory. */
uint64_t prc_par1 : 1; /**< Enable parity error interrupts for bits
[63:32] of the PBM memory. */
uint64_t prc_par0 : 1; /**< Enable parity error interrupts for bits
[31:0] of the PBM memory. */
#else
uint64_t prc_par0 : 1;
uint64_t prc_par1 : 1;
uint64_t prc_par2 : 1;
uint64_t prc_par3 : 1;
uint64_t bp_sub : 1;
uint64_t dc_ovr : 1;
uint64_t cc_ovr : 1;
uint64_t c_coll : 1;
uint64_t d_coll : 1;
uint64_t bc_ovr : 1;
uint64_t reserved_10_63 : 54;
#endif
} cn38xx;
struct cvmx_ipd_int_enb_cn30xx cn38xxp2;
struct cvmx_ipd_int_enb_cn38xx cn50xx;
struct cvmx_ipd_int_enb_s cn52xx;
struct cvmx_ipd_int_enb_s cn52xxp1;
struct cvmx_ipd_int_enb_s cn56xx;
struct cvmx_ipd_int_enb_s cn56xxp1;
struct cvmx_ipd_int_enb_cn38xx cn58xx;
struct cvmx_ipd_int_enb_cn38xx cn58xxp1;
struct cvmx_ipd_int_enb_s cn63xx;
struct cvmx_ipd_int_enb_s cn63xxp1;
};
typedef union cvmx_ipd_int_enb cvmx_ipd_int_enb_t;
/**
* cvmx_ipd_int_sum
*
* IPD_INTERRUPT_SUM = IPD Interrupt Summary Register
*
* Set when an interrupt condition occurs, write '1' to clear.
*/
union cvmx_ipd_int_sum
{
uint64_t u64;
struct cvmx_ipd_int_sum_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_12_63 : 52;
uint64_t pq_sub : 1; /**< Set when a port-qos does an sub to the count
that causes the counter to wrap. */
uint64_t pq_add : 1; /**< Set when a port-qos does an add to the count
that causes the counter to wrap. */
uint64_t bc_ovr : 1; /**< Set when the byte-count to send to IOB overflows. */
uint64_t d_coll : 1; /**< Set when the packet/WQE data to be sent to IOB
collides. */
uint64_t c_coll : 1; /**< Set when the packet/WQE commands to be sent to IOB
collides. */
uint64_t cc_ovr : 1; /**< Set when the command credits to the IOB overflow. */
uint64_t dc_ovr : 1; /**< Set when the data credits to the IOB overflow. */
uint64_t bp_sub : 1; /**< Set when a backpressure subtract is done with a
supplied illegal value. */
uint64_t prc_par3 : 1; /**< Set when a parity error is dected for bits
[127:96] of the PBM memory. */
uint64_t prc_par2 : 1; /**< Set when a parity error is dected for bits
[95:64] of the PBM memory. */
uint64_t prc_par1 : 1; /**< Set when a parity error is dected for bits
[63:32] of the PBM memory. */
uint64_t prc_par0 : 1; /**< Set when a parity error is dected for bits
[31:0] of the PBM memory. */
#else
uint64_t prc_par0 : 1;
uint64_t prc_par1 : 1;
uint64_t prc_par2 : 1;
uint64_t prc_par3 : 1;
uint64_t bp_sub : 1;
uint64_t dc_ovr : 1;
uint64_t cc_ovr : 1;
uint64_t c_coll : 1;
uint64_t d_coll : 1;
uint64_t bc_ovr : 1;
uint64_t pq_add : 1;
uint64_t pq_sub : 1;
uint64_t reserved_12_63 : 52;
#endif
} s;
struct cvmx_ipd_int_sum_cn30xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_5_63 : 59;
uint64_t bp_sub : 1; /**< Set when a backpressure subtract is done with a
supplied illegal value. */
uint64_t prc_par3 : 1; /**< Set when a parity error is dected for bits
[127:96] of the PBM memory. */
uint64_t prc_par2 : 1; /**< Set when a parity error is dected for bits
[95:64] of the PBM memory. */
uint64_t prc_par1 : 1; /**< Set when a parity error is dected for bits
[63:32] of the PBM memory. */
uint64_t prc_par0 : 1; /**< Set when a parity error is dected for bits
[31:0] of the PBM memory. */
#else
uint64_t prc_par0 : 1;
uint64_t prc_par1 : 1;
uint64_t prc_par2 : 1;
uint64_t prc_par3 : 1;
uint64_t bp_sub : 1;
uint64_t reserved_5_63 : 59;
#endif
} cn30xx;
struct cvmx_ipd_int_sum_cn30xx cn31xx;
struct cvmx_ipd_int_sum_cn38xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_10_63 : 54;
uint64_t bc_ovr : 1; /**< Set when the byte-count to send to IOB overflows.
This is a PASS-3 Field. */
uint64_t d_coll : 1; /**< Set when the packet/WQE data to be sent to IOB
collides.
This is a PASS-3 Field. */
uint64_t c_coll : 1; /**< Set when the packet/WQE commands to be sent to IOB
collides.
This is a PASS-3 Field. */
uint64_t cc_ovr : 1; /**< Set when the command credits to the IOB overflow.
This is a PASS-3 Field. */
uint64_t dc_ovr : 1; /**< Set when the data credits to the IOB overflow.
This is a PASS-3 Field. */
uint64_t bp_sub : 1; /**< Set when a backpressure subtract is done with a
supplied illegal value. */
uint64_t prc_par3 : 1; /**< Set when a parity error is dected for bits
[127:96] of the PBM memory. */
uint64_t prc_par2 : 1; /**< Set when a parity error is dected for bits
[95:64] of the PBM memory. */
uint64_t prc_par1 : 1; /**< Set when a parity error is dected for bits
[63:32] of the PBM memory. */
uint64_t prc_par0 : 1; /**< Set when a parity error is dected for bits
[31:0] of the PBM memory. */
#else
uint64_t prc_par0 : 1;
uint64_t prc_par1 : 1;
uint64_t prc_par2 : 1;
uint64_t prc_par3 : 1;
uint64_t bp_sub : 1;
uint64_t dc_ovr : 1;
uint64_t cc_ovr : 1;
uint64_t c_coll : 1;
uint64_t d_coll : 1;
uint64_t bc_ovr : 1;
uint64_t reserved_10_63 : 54;
#endif
} cn38xx;
struct cvmx_ipd_int_sum_cn30xx cn38xxp2;
struct cvmx_ipd_int_sum_cn38xx cn50xx;
struct cvmx_ipd_int_sum_s cn52xx;
struct cvmx_ipd_int_sum_s cn52xxp1;
struct cvmx_ipd_int_sum_s cn56xx;
struct cvmx_ipd_int_sum_s cn56xxp1;
struct cvmx_ipd_int_sum_cn38xx cn58xx;
struct cvmx_ipd_int_sum_cn38xx cn58xxp1;
struct cvmx_ipd_int_sum_s cn63xx;
struct cvmx_ipd_int_sum_s cn63xxp1;
};
typedef union cvmx_ipd_int_sum cvmx_ipd_int_sum_t;
/**
* cvmx_ipd_not_1st_mbuff_skip
*
* IPD_NOT_1ST_MBUFF_SKIP = IPD Not First MBUFF Word Skip Size
*
* The number of words that the IPD will skip when writing any MBUFF that is not the first.
*/
union cvmx_ipd_not_1st_mbuff_skip
{
uint64_t u64;
struct cvmx_ipd_not_1st_mbuff_skip_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_6_63 : 58;
uint64_t skip_sz : 6; /**< The number of 8-byte words from the top of any
MBUFF, that is not the 1st MBUFF, that the IPD
will write the next-pointer.
Legal values are 0 to 32, where the MAX value
is also limited to:
IPD_PACKET_MBUFF_SIZE[MB_SIZE] - 16. */
#else
uint64_t skip_sz : 6;
uint64_t reserved_6_63 : 58;
#endif
} s;
struct cvmx_ipd_not_1st_mbuff_skip_s cn30xx;
struct cvmx_ipd_not_1st_mbuff_skip_s cn31xx;
struct cvmx_ipd_not_1st_mbuff_skip_s cn38xx;
struct cvmx_ipd_not_1st_mbuff_skip_s cn38xxp2;
struct cvmx_ipd_not_1st_mbuff_skip_s cn50xx;
struct cvmx_ipd_not_1st_mbuff_skip_s cn52xx;
struct cvmx_ipd_not_1st_mbuff_skip_s cn52xxp1;
struct cvmx_ipd_not_1st_mbuff_skip_s cn56xx;
struct cvmx_ipd_not_1st_mbuff_skip_s cn56xxp1;
struct cvmx_ipd_not_1st_mbuff_skip_s cn58xx;
struct cvmx_ipd_not_1st_mbuff_skip_s cn58xxp1;
struct cvmx_ipd_not_1st_mbuff_skip_s cn63xx;
struct cvmx_ipd_not_1st_mbuff_skip_s cn63xxp1;
};
typedef union cvmx_ipd_not_1st_mbuff_skip cvmx_ipd_not_1st_mbuff_skip_t;
/**
* cvmx_ipd_packet_mbuff_size
*
* IPD_PACKET_MBUFF_SIZE = IPD's PACKET MUBUF Size In Words
*
* The number of words in a MBUFF used for packet data store.
*/
union cvmx_ipd_packet_mbuff_size
{
uint64_t u64;
struct cvmx_ipd_packet_mbuff_size_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_12_63 : 52;
uint64_t mb_size : 12; /**< The number of 8-byte words in a MBUF.
This must be a number in the range of 32 to
2048.
This is also the size of the FPA's
Queue-0 Free-Page. */
#else
uint64_t mb_size : 12;
uint64_t reserved_12_63 : 52;
#endif
} s;
struct cvmx_ipd_packet_mbuff_size_s cn30xx;
struct cvmx_ipd_packet_mbuff_size_s cn31xx;
struct cvmx_ipd_packet_mbuff_size_s cn38xx;
struct cvmx_ipd_packet_mbuff_size_s cn38xxp2;
struct cvmx_ipd_packet_mbuff_size_s cn50xx;
struct cvmx_ipd_packet_mbuff_size_s cn52xx;
struct cvmx_ipd_packet_mbuff_size_s cn52xxp1;
struct cvmx_ipd_packet_mbuff_size_s cn56xx;
struct cvmx_ipd_packet_mbuff_size_s cn56xxp1;
struct cvmx_ipd_packet_mbuff_size_s cn58xx;
struct cvmx_ipd_packet_mbuff_size_s cn58xxp1;
struct cvmx_ipd_packet_mbuff_size_s cn63xx;
struct cvmx_ipd_packet_mbuff_size_s cn63xxp1;
};
typedef union cvmx_ipd_packet_mbuff_size cvmx_ipd_packet_mbuff_size_t;
/**
* cvmx_ipd_pkt_ptr_valid
*
* IPD_PKT_PTR_VALID = IPD's Packet Pointer Valid
*
* The value of the packet-pointer fetched and in the valid register.
*/
union cvmx_ipd_pkt_ptr_valid
{
uint64_t u64;
struct cvmx_ipd_pkt_ptr_valid_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_29_63 : 35;
uint64_t ptr : 29; /**< Pointer value. */
#else
uint64_t ptr : 29;
uint64_t reserved_29_63 : 35;
#endif
} s;
struct cvmx_ipd_pkt_ptr_valid_s cn30xx;
struct cvmx_ipd_pkt_ptr_valid_s cn31xx;
struct cvmx_ipd_pkt_ptr_valid_s cn38xx;
struct cvmx_ipd_pkt_ptr_valid_s cn50xx;
struct cvmx_ipd_pkt_ptr_valid_s cn52xx;
struct cvmx_ipd_pkt_ptr_valid_s cn52xxp1;
struct cvmx_ipd_pkt_ptr_valid_s cn56xx;
struct cvmx_ipd_pkt_ptr_valid_s cn56xxp1;
struct cvmx_ipd_pkt_ptr_valid_s cn58xx;
struct cvmx_ipd_pkt_ptr_valid_s cn58xxp1;
struct cvmx_ipd_pkt_ptr_valid_s cn63xx;
struct cvmx_ipd_pkt_ptr_valid_s cn63xxp1;
};
typedef union cvmx_ipd_pkt_ptr_valid cvmx_ipd_pkt_ptr_valid_t;
/**
* cvmx_ipd_port#_bp_page_cnt
*
* IPD_PORTX_BP_PAGE_CNT = IPD Port Backpressure Page Count
*
* The number of pages in use by the port that when exceeded, backpressure will be applied to the port.
* See also IPD_PORTX_BP_PAGE_CNT2
* See also IPD_PORTX_BP_PAGE_CNT3
*/
union cvmx_ipd_portx_bp_page_cnt
{
uint64_t u64;
struct cvmx_ipd_portx_bp_page_cnt_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_18_63 : 46;
uint64_t bp_enb : 1; /**< When set '1' BP will be applied, if '0' BP will
not be applied to port. */
uint64_t page_cnt : 17; /**< The number of page pointers assigned to
the port, that when exceeded will cause
back-pressure to be applied to the port.
This value is in 256 page-pointer increments,
(i.e. 0 = 0-page-ptrs, 1 = 256-page-ptrs,..) */
#else
uint64_t page_cnt : 17;
uint64_t bp_enb : 1;
uint64_t reserved_18_63 : 46;
#endif
} s;
struct cvmx_ipd_portx_bp_page_cnt_s cn30xx;
struct cvmx_ipd_portx_bp_page_cnt_s cn31xx;
struct cvmx_ipd_portx_bp_page_cnt_s cn38xx;
struct cvmx_ipd_portx_bp_page_cnt_s cn38xxp2;
struct cvmx_ipd_portx_bp_page_cnt_s cn50xx;
struct cvmx_ipd_portx_bp_page_cnt_s cn52xx;
struct cvmx_ipd_portx_bp_page_cnt_s cn52xxp1;
struct cvmx_ipd_portx_bp_page_cnt_s cn56xx;
struct cvmx_ipd_portx_bp_page_cnt_s cn56xxp1;
struct cvmx_ipd_portx_bp_page_cnt_s cn58xx;
struct cvmx_ipd_portx_bp_page_cnt_s cn58xxp1;
struct cvmx_ipd_portx_bp_page_cnt_s cn63xx;
struct cvmx_ipd_portx_bp_page_cnt_s cn63xxp1;
};
typedef union cvmx_ipd_portx_bp_page_cnt cvmx_ipd_portx_bp_page_cnt_t;
/**
* cvmx_ipd_port#_bp_page_cnt2
*
* IPD_PORTX_BP_PAGE_CNT2 = IPD Port Backpressure Page Count
*
* The number of pages in use by the port that when exceeded, backpressure will be applied to the port.
* See also IPD_PORTX_BP_PAGE_CNT
* See also IPD_PORTX_BP_PAGE_CNT3
*/
union cvmx_ipd_portx_bp_page_cnt2
{
uint64_t u64;
struct cvmx_ipd_portx_bp_page_cnt2_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_18_63 : 46;
uint64_t bp_enb : 1; /**< When set '1' BP will be applied, if '0' BP will
not be applied to port. */
uint64_t page_cnt : 17; /**< The number of page pointers assigned to
the port, that when exceeded will cause
back-pressure to be applied to the port.
This value is in 256 page-pointer increments,
(i.e. 0 = 0-page-ptrs, 1 = 256-page-ptrs,..) */
#else
uint64_t page_cnt : 17;
uint64_t bp_enb : 1;
uint64_t reserved_18_63 : 46;
#endif
} s;
struct cvmx_ipd_portx_bp_page_cnt2_s cn52xx;
struct cvmx_ipd_portx_bp_page_cnt2_s cn52xxp1;
struct cvmx_ipd_portx_bp_page_cnt2_s cn56xx;
struct cvmx_ipd_portx_bp_page_cnt2_s cn56xxp1;
struct cvmx_ipd_portx_bp_page_cnt2_s cn63xx;
struct cvmx_ipd_portx_bp_page_cnt2_s cn63xxp1;
};
typedef union cvmx_ipd_portx_bp_page_cnt2 cvmx_ipd_portx_bp_page_cnt2_t;
/**
* cvmx_ipd_port#_bp_page_cnt3
*
* IPD_PORTX_BP_PAGE_CNT3 = IPD Port Backpressure Page Count
*
* The number of pages in use by the port that when exceeded, backpressure will be applied to the port.
* See also IPD_PORTX_BP_PAGE_CNT
* See also IPD_PORTX_BP_PAGE_CNT2
*/
union cvmx_ipd_portx_bp_page_cnt3
{
uint64_t u64;
struct cvmx_ipd_portx_bp_page_cnt3_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_18_63 : 46;
uint64_t bp_enb : 1; /**< When set '1' BP will be applied, if '0' BP will
not be applied to port. */
uint64_t page_cnt : 17; /**< The number of page pointers assigned to
the port, that when exceeded will cause
back-pressure to be applied to the port.
This value is in 256 page-pointer increments,
(i.e. 0 = 0-page-ptrs, 1 = 256-page-ptrs,..) */
#else
uint64_t page_cnt : 17;
uint64_t bp_enb : 1;
uint64_t reserved_18_63 : 46;
#endif
} s;
struct cvmx_ipd_portx_bp_page_cnt3_s cn63xx;
struct cvmx_ipd_portx_bp_page_cnt3_s cn63xxp1;
};
typedef union cvmx_ipd_portx_bp_page_cnt3 cvmx_ipd_portx_bp_page_cnt3_t;
/**
* cvmx_ipd_port_bp_counters2_pair#
*
* IPD_PORT_BP_COUNTERS2_PAIRX = MBUF Counters port Ports used to generate Back Pressure Per Port.
* See also IPD_PORT_BP_COUNTERS_PAIRX
* See also IPD_PORT_BP_COUNTERS3_PAIRX
*/
union cvmx_ipd_port_bp_counters2_pairx
{
uint64_t u64;
struct cvmx_ipd_port_bp_counters2_pairx_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_25_63 : 39;
uint64_t cnt_val : 25; /**< Number of MBUFs being used by data on this port. */
#else
uint64_t cnt_val : 25;
uint64_t reserved_25_63 : 39;
#endif
} s;
struct cvmx_ipd_port_bp_counters2_pairx_s cn52xx;
struct cvmx_ipd_port_bp_counters2_pairx_s cn52xxp1;
struct cvmx_ipd_port_bp_counters2_pairx_s cn56xx;
struct cvmx_ipd_port_bp_counters2_pairx_s cn56xxp1;
struct cvmx_ipd_port_bp_counters2_pairx_s cn63xx;
struct cvmx_ipd_port_bp_counters2_pairx_s cn63xxp1;
};
typedef union cvmx_ipd_port_bp_counters2_pairx cvmx_ipd_port_bp_counters2_pairx_t;
/**
* cvmx_ipd_port_bp_counters3_pair#
*
* IPD_PORT_BP_COUNTERS3_PAIRX = MBUF Counters port Ports used to generate Back Pressure Per Port.
* See also IPD_PORT_BP_COUNTERS_PAIRX
* See also IPD_PORT_BP_COUNTERS2_PAIRX
*/
union cvmx_ipd_port_bp_counters3_pairx
{
uint64_t u64;
struct cvmx_ipd_port_bp_counters3_pairx_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_25_63 : 39;
uint64_t cnt_val : 25; /**< Number of MBUFs being used by data on this port. */
#else
uint64_t cnt_val : 25;
uint64_t reserved_25_63 : 39;
#endif
} s;
struct cvmx_ipd_port_bp_counters3_pairx_s cn63xx;
struct cvmx_ipd_port_bp_counters3_pairx_s cn63xxp1;
};
typedef union cvmx_ipd_port_bp_counters3_pairx cvmx_ipd_port_bp_counters3_pairx_t;
/**
* cvmx_ipd_port_bp_counters_pair#
*
* IPD_PORT_BP_COUNTERS_PAIRX = MBUF Counters port Ports used to generate Back Pressure Per Port.
* See also IPD_PORT_BP_COUNTERS2_PAIRX
* See also IPD_PORT_BP_COUNTERS3_PAIRX
*/
union cvmx_ipd_port_bp_counters_pairx
{
uint64_t u64;
struct cvmx_ipd_port_bp_counters_pairx_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_25_63 : 39;
uint64_t cnt_val : 25; /**< Number of MBUFs being used by data on this port. */
#else
uint64_t cnt_val : 25;
uint64_t reserved_25_63 : 39;
#endif
} s;
struct cvmx_ipd_port_bp_counters_pairx_s cn30xx;
struct cvmx_ipd_port_bp_counters_pairx_s cn31xx;
struct cvmx_ipd_port_bp_counters_pairx_s cn38xx;
struct cvmx_ipd_port_bp_counters_pairx_s cn38xxp2;
struct cvmx_ipd_port_bp_counters_pairx_s cn50xx;
struct cvmx_ipd_port_bp_counters_pairx_s cn52xx;
struct cvmx_ipd_port_bp_counters_pairx_s cn52xxp1;
struct cvmx_ipd_port_bp_counters_pairx_s cn56xx;
struct cvmx_ipd_port_bp_counters_pairx_s cn56xxp1;
struct cvmx_ipd_port_bp_counters_pairx_s cn58xx;
struct cvmx_ipd_port_bp_counters_pairx_s cn58xxp1;
struct cvmx_ipd_port_bp_counters_pairx_s cn63xx;
struct cvmx_ipd_port_bp_counters_pairx_s cn63xxp1;
};
typedef union cvmx_ipd_port_bp_counters_pairx cvmx_ipd_port_bp_counters_pairx_t;
/**
* cvmx_ipd_port_qos_#_cnt
*
* IPD_PORT_QOS_X_CNT = IPD PortX QOS-0 Count
*
* A counter per port/qos. Counter are originzed in sequence where the first 8 counter (0-7) belong to Port-0
* QOS 0-7 respectively followed by port 1 at (8-15), etc
* Ports 0-3, 32-43
*/
union cvmx_ipd_port_qos_x_cnt
{
uint64_t u64;
struct cvmx_ipd_port_qos_x_cnt_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t wmark : 32; /**< When the field CNT after being modified is equal to
or crosses this value (i.e. value was greater than
then becomes less then, or value was less than and
becomes greater than) the corresponding bit in
IPD_PORT_QOS_INTX is set. */
uint64_t cnt : 32; /**< The packet related count that is incremented as
specified by IPD_SUB_PORT_QOS_CNT. */
#else
uint64_t cnt : 32;
uint64_t wmark : 32;
#endif
} s;
struct cvmx_ipd_port_qos_x_cnt_s cn52xx;
struct cvmx_ipd_port_qos_x_cnt_s cn52xxp1;
struct cvmx_ipd_port_qos_x_cnt_s cn56xx;
struct cvmx_ipd_port_qos_x_cnt_s cn56xxp1;
struct cvmx_ipd_port_qos_x_cnt_s cn63xx;
struct cvmx_ipd_port_qos_x_cnt_s cn63xxp1;
};
typedef union cvmx_ipd_port_qos_x_cnt cvmx_ipd_port_qos_x_cnt_t;
/**
* cvmx_ipd_port_qos_int#
*
* IPD_PORT_QOS_INTX = IPD PORT-QOS Interrupt
*
* See the description for IPD_PORT_QOS_X_CNT
*
* 0=P0-7; 1=P8-15; 2=P16-23; 3=P24-31; 4=P32-39; 5=P40-47; 6=P48-55; 7=P56-63
*
* Only ports used are: P0-3, P32-39, and P40-43. Therefore only IPD_PORT_QOS_INT0, IPD_PORT_QOS_INT4,
* and IPD_PORT_QOS_INT5 exist and, furthermore: <63:32> of IPD_PORT_QOS_INT0 and IPD_PORT_QOS_INT5,
* are reserved.
*/
union cvmx_ipd_port_qos_intx
{
uint64_t u64;
struct cvmx_ipd_port_qos_intx_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t intr : 64; /**< Interrupt bits. */
#else
uint64_t intr : 64;
#endif
} s;
struct cvmx_ipd_port_qos_intx_s cn52xx;
struct cvmx_ipd_port_qos_intx_s cn52xxp1;
struct cvmx_ipd_port_qos_intx_s cn56xx;
struct cvmx_ipd_port_qos_intx_s cn56xxp1;
struct cvmx_ipd_port_qos_intx_s cn63xx;
struct cvmx_ipd_port_qos_intx_s cn63xxp1;
};
typedef union cvmx_ipd_port_qos_intx cvmx_ipd_port_qos_intx_t;
/**
* cvmx_ipd_port_qos_int_enb#
*
* IPD_PORT_QOS_INT_ENBX = IPD PORT-QOS Interrupt Enable
*
* When the IPD_PORT_QOS_INTX[\#] is '1' and IPD_PORT_QOS_INT_ENBX[\#] is '1' a interrupt will be generated.
*/
union cvmx_ipd_port_qos_int_enbx
{
uint64_t u64;
struct cvmx_ipd_port_qos_int_enbx_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t enb : 64; /**< Enable bits. */
#else
uint64_t enb : 64;
#endif
} s;
struct cvmx_ipd_port_qos_int_enbx_s cn52xx;
struct cvmx_ipd_port_qos_int_enbx_s cn52xxp1;
struct cvmx_ipd_port_qos_int_enbx_s cn56xx;
struct cvmx_ipd_port_qos_int_enbx_s cn56xxp1;
struct cvmx_ipd_port_qos_int_enbx_s cn63xx;
struct cvmx_ipd_port_qos_int_enbx_s cn63xxp1;
};
typedef union cvmx_ipd_port_qos_int_enbx cvmx_ipd_port_qos_int_enbx_t;
/**
* cvmx_ipd_prc_hold_ptr_fifo_ctl
*
* IPD_PRC_HOLD_PTR_FIFO_CTL = IPD's PRC Holding Pointer FIFO Control
*
* Allows reading of the Page-Pointers stored in the IPD's PRC Holding Fifo.
*/
union cvmx_ipd_prc_hold_ptr_fifo_ctl
{
uint64_t u64;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_39_63 : 25;
uint64_t max_pkt : 3; /**< Maximum number of Packet-Pointers that COULD be
in the FIFO. */
uint64_t praddr : 3; /**< Present Packet-Pointer read address. */
uint64_t ptr : 29; /**< The output of the prc-holding-fifo. */
uint64_t cena : 1; /**< Active low Chip Enable that controls the
MUX-select that steers [RADDR] to the fifo.
*WARNING - Setting this field to '0' will allow
reading of the memories thorugh the PTR field,
but will cause unpredictable operation of the IPD
under normal operation. */
uint64_t raddr : 3; /**< Sets the address to read from in the holding.
fifo in the PRC. This FIFO holds Packet-Pointers
to be used for packet data storage. */
#else
uint64_t raddr : 3;
uint64_t cena : 1;
uint64_t ptr : 29;
uint64_t praddr : 3;
uint64_t max_pkt : 3;
uint64_t reserved_39_63 : 25;
#endif
} s;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn30xx;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn31xx;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn38xx;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn50xx;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn52xx;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn52xxp1;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn56xx;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn56xxp1;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn58xx;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn58xxp1;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn63xx;
struct cvmx_ipd_prc_hold_ptr_fifo_ctl_s cn63xxp1;
};
typedef union cvmx_ipd_prc_hold_ptr_fifo_ctl cvmx_ipd_prc_hold_ptr_fifo_ctl_t;
/**
* cvmx_ipd_prc_port_ptr_fifo_ctl
*
* IPD_PRC_PORT_PTR_FIFO_CTL = IPD's PRC PORT Pointer FIFO Control
*
* Allows reading of the Page-Pointers stored in the IPD's PRC PORT Fifo.
*/
union cvmx_ipd_prc_port_ptr_fifo_ctl
{
uint64_t u64;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_44_63 : 20;
uint64_t max_pkt : 7; /**< Maximum number of Packet-Pointers that are in
in the FIFO. */
uint64_t ptr : 29; /**< The output of the prc-port-ptr-fifo. */
uint64_t cena : 1; /**< Active low Chip Enable to the read port of the
pwp_fifo. This bit also controls the MUX-select
that steers [RADDR] to the pwp_fifo.
*WARNING - Setting this field to '0' will allow
reading of the memories thorugh the PTR field,
but will cause unpredictable operation of the IPD
under normal operation. */
uint64_t raddr : 7; /**< Sets the address to read from in the port
fifo in the PRC. This FIFO holds Packet-Pointers
to be used for packet data storage. */
#else
uint64_t raddr : 7;
uint64_t cena : 1;
uint64_t ptr : 29;
uint64_t max_pkt : 7;
uint64_t reserved_44_63 : 20;
#endif
} s;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn30xx;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn31xx;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn38xx;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn50xx;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn52xx;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn52xxp1;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn56xx;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn56xxp1;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn58xx;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn58xxp1;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn63xx;
struct cvmx_ipd_prc_port_ptr_fifo_ctl_s cn63xxp1;
};
typedef union cvmx_ipd_prc_port_ptr_fifo_ctl cvmx_ipd_prc_port_ptr_fifo_ctl_t;
/**
* cvmx_ipd_ptr_count
*
* IPD_PTR_COUNT = IPD Page Pointer Count
*
* Shows the number of WQE and Packet Page Pointers stored in the IPD.
*/
union cvmx_ipd_ptr_count
{
uint64_t u64;
struct cvmx_ipd_ptr_count_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_19_63 : 45;
uint64_t pktv_cnt : 1; /**< PKT Ptr Valid. */
uint64_t wqev_cnt : 1; /**< WQE Ptr Valid. This value is '1' when a WQE
is being for use by the IPD. The value of this
field should be added to tha value of the
WQE_PCNT field, of this register, for a total
count of the WQE Page Pointers being held by IPD.
When IPD_CTL_STATUS[NO_WPTR] is set '1' this field
represents a Packet-Pointer NOT a WQE pointer. */
uint64_t pfif_cnt : 3; /**< See PKT_PCNT. */
uint64_t pkt_pcnt : 7; /**< This value plus PFIF_CNT plus
IPD_PRC_PORT_PTR_FIFO_CTL[MAX_PKT] is the number
of PKT Page Pointers in IPD. */
uint64_t wqe_pcnt : 7; /**< Number of page pointers for WQE storage that are
buffered in the IPD. The total count is the value
of this buffer plus the field [WQEV_CNT]. For
PASS-1 (which does not have the WQEV_CNT field)
when the value of this register is '0' there still
may be 1 pointer being held by IPD. */
#else
uint64_t wqe_pcnt : 7;
uint64_t pkt_pcnt : 7;
uint64_t pfif_cnt : 3;
uint64_t wqev_cnt : 1;
uint64_t pktv_cnt : 1;
uint64_t reserved_19_63 : 45;
#endif
} s;
struct cvmx_ipd_ptr_count_s cn30xx;
struct cvmx_ipd_ptr_count_s cn31xx;
struct cvmx_ipd_ptr_count_s cn38xx;
struct cvmx_ipd_ptr_count_s cn38xxp2;
struct cvmx_ipd_ptr_count_s cn50xx;
struct cvmx_ipd_ptr_count_s cn52xx;
struct cvmx_ipd_ptr_count_s cn52xxp1;
struct cvmx_ipd_ptr_count_s cn56xx;
struct cvmx_ipd_ptr_count_s cn56xxp1;
struct cvmx_ipd_ptr_count_s cn58xx;
struct cvmx_ipd_ptr_count_s cn58xxp1;
struct cvmx_ipd_ptr_count_s cn63xx;
struct cvmx_ipd_ptr_count_s cn63xxp1;
};
typedef union cvmx_ipd_ptr_count cvmx_ipd_ptr_count_t;
/**
* cvmx_ipd_pwp_ptr_fifo_ctl
*
* IPD_PWP_PTR_FIFO_CTL = IPD's PWP Pointer FIFO Control
*
* Allows reading of the Page-Pointers stored in the IPD's PWP Fifo.
*/
union cvmx_ipd_pwp_ptr_fifo_ctl
{
uint64_t u64;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_61_63 : 3;
uint64_t max_cnts : 7; /**< Maximum number of Packet-Pointers or WQE-Pointers
that COULD be in the FIFO.
When IPD_CTL_STATUS[NO_WPTR] is set '1' this field
only represents the Max number of Packet-Pointers,
WQE-Pointers are not used in this mode. */
uint64_t wraddr : 8; /**< Present FIFO WQE Read address. */
uint64_t praddr : 8; /**< Present FIFO Packet Read address. */
uint64_t ptr : 29; /**< The output of the pwp_fifo. */
uint64_t cena : 1; /**< Active low Chip Enable to the read port of the
pwp_fifo. This bit also controls the MUX-select
that steers [RADDR] to the pwp_fifo.
*WARNING - Setting this field to '0' will allow
reading of the memories thorugh the PTR field,
but will cause unpredictable operation of the IPD
under normal operation. */
uint64_t raddr : 8; /**< Sets the address to read from in the pwp_fifo.
Addresses 0 through 63 contain Packet-Pointers and
addresses 64 through 127 contain WQE-Pointers.
When IPD_CTL_STATUS[NO_WPTR] is set '1' addresses
64 through 127 are not valid. */
#else
uint64_t raddr : 8;
uint64_t cena : 1;
uint64_t ptr : 29;
uint64_t praddr : 8;
uint64_t wraddr : 8;
uint64_t max_cnts : 7;
uint64_t reserved_61_63 : 3;
#endif
} s;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn30xx;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn31xx;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn38xx;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn50xx;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn52xx;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn52xxp1;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn56xx;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn56xxp1;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn58xx;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn58xxp1;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn63xx;
struct cvmx_ipd_pwp_ptr_fifo_ctl_s cn63xxp1;
};
typedef union cvmx_ipd_pwp_ptr_fifo_ctl cvmx_ipd_pwp_ptr_fifo_ctl_t;
/**
* cvmx_ipd_qos#_red_marks
*
* IPD_QOS0_RED_MARKS = IPD QOS 0 Marks Red High Low
*
* Set the pass-drop marks for qos level.
*/
union cvmx_ipd_qosx_red_marks
{
uint64_t u64;
struct cvmx_ipd_qosx_red_marks_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t drop : 32; /**< Packets will be dropped when the average value of
IPD_QUE0_FREE_PAGE_CNT is equal to or less than
this value. */
uint64_t pass : 32; /**< Packets will be passed when the average value of
IPD_QUE0_FREE_PAGE_CNT is larger than this value. */
#else
uint64_t pass : 32;
uint64_t drop : 32;
#endif
} s;
struct cvmx_ipd_qosx_red_marks_s cn30xx;
struct cvmx_ipd_qosx_red_marks_s cn31xx;
struct cvmx_ipd_qosx_red_marks_s cn38xx;
struct cvmx_ipd_qosx_red_marks_s cn38xxp2;
struct cvmx_ipd_qosx_red_marks_s cn50xx;
struct cvmx_ipd_qosx_red_marks_s cn52xx;
struct cvmx_ipd_qosx_red_marks_s cn52xxp1;
struct cvmx_ipd_qosx_red_marks_s cn56xx;
struct cvmx_ipd_qosx_red_marks_s cn56xxp1;
struct cvmx_ipd_qosx_red_marks_s cn58xx;
struct cvmx_ipd_qosx_red_marks_s cn58xxp1;
struct cvmx_ipd_qosx_red_marks_s cn63xx;
struct cvmx_ipd_qosx_red_marks_s cn63xxp1;
};
typedef union cvmx_ipd_qosx_red_marks cvmx_ipd_qosx_red_marks_t;
/**
* cvmx_ipd_que0_free_page_cnt
*
* IPD_QUE0_FREE_PAGE_CNT = IPD Queue0 Free Page Count
*
* Number of Free-Page Pointer that are available for use in the FPA for Queue-0.
*/
union cvmx_ipd_que0_free_page_cnt
{
uint64_t u64;
struct cvmx_ipd_que0_free_page_cnt_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_32_63 : 32;
uint64_t q0_pcnt : 32; /**< Number of Queue-0 Page Pointers Available. */
#else
uint64_t q0_pcnt : 32;
uint64_t reserved_32_63 : 32;
#endif
} s;
struct cvmx_ipd_que0_free_page_cnt_s cn30xx;
struct cvmx_ipd_que0_free_page_cnt_s cn31xx;
struct cvmx_ipd_que0_free_page_cnt_s cn38xx;
struct cvmx_ipd_que0_free_page_cnt_s cn38xxp2;
struct cvmx_ipd_que0_free_page_cnt_s cn50xx;
struct cvmx_ipd_que0_free_page_cnt_s cn52xx;
struct cvmx_ipd_que0_free_page_cnt_s cn52xxp1;
struct cvmx_ipd_que0_free_page_cnt_s cn56xx;
struct cvmx_ipd_que0_free_page_cnt_s cn56xxp1;
struct cvmx_ipd_que0_free_page_cnt_s cn58xx;
struct cvmx_ipd_que0_free_page_cnt_s cn58xxp1;
struct cvmx_ipd_que0_free_page_cnt_s cn63xx;
struct cvmx_ipd_que0_free_page_cnt_s cn63xxp1;
};
typedef union cvmx_ipd_que0_free_page_cnt cvmx_ipd_que0_free_page_cnt_t;
/**
* cvmx_ipd_red_port_enable
*
* IPD_RED_PORT_ENABLE = IPD RED Port Enable
*
* Set the pass-drop marks for qos level.
*/
union cvmx_ipd_red_port_enable
{
uint64_t u64;
struct cvmx_ipd_red_port_enable_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t prb_dly : 14; /**< Number (core clocks periods + 68) * 8 to wait
before calculating the new packet drop
probability for each QOS level. */
uint64_t avg_dly : 14; /**< Number (core clocks periods + 10) * 8 to wait
before calculating the moving average for each
QOS level.
Larger AVG_DLY values cause the moving averages
of ALL QOS levels to track changes in the actual
free space more slowly. Smaller NEW_CON (and
larger AVG_CON) values can have a similar effect,
but only affect an individual QOS level, rather
than all. */
uint64_t prt_enb : 36; /**< The bit position will enable the corresponding
Ports ability to have packets dropped by RED
probability. */
#else
uint64_t prt_enb : 36;
uint64_t avg_dly : 14;
uint64_t prb_dly : 14;
#endif
} s;
struct cvmx_ipd_red_port_enable_s cn30xx;
struct cvmx_ipd_red_port_enable_s cn31xx;
struct cvmx_ipd_red_port_enable_s cn38xx;
struct cvmx_ipd_red_port_enable_s cn38xxp2;
struct cvmx_ipd_red_port_enable_s cn50xx;
struct cvmx_ipd_red_port_enable_s cn52xx;
struct cvmx_ipd_red_port_enable_s cn52xxp1;
struct cvmx_ipd_red_port_enable_s cn56xx;
struct cvmx_ipd_red_port_enable_s cn56xxp1;
struct cvmx_ipd_red_port_enable_s cn58xx;
struct cvmx_ipd_red_port_enable_s cn58xxp1;
struct cvmx_ipd_red_port_enable_s cn63xx;
struct cvmx_ipd_red_port_enable_s cn63xxp1;
};
typedef union cvmx_ipd_red_port_enable cvmx_ipd_red_port_enable_t;
/**
* cvmx_ipd_red_port_enable2
*
* IPD_RED_PORT_ENABLE2 = IPD RED Port Enable2
*
* Set the pass-drop marks for qos level.
*/
union cvmx_ipd_red_port_enable2
{
uint64_t u64;
struct cvmx_ipd_red_port_enable2_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_8_63 : 56;
uint64_t prt_enb : 8; /**< Bits 7-0 corresponds to ports 43-36. These bits
have the same meaning as the PRT_ENB field of
IPD_RED_PORT_ENABLE. */
#else
uint64_t prt_enb : 8;
uint64_t reserved_8_63 : 56;
#endif
} s;
struct cvmx_ipd_red_port_enable2_cn52xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_4_63 : 60;
uint64_t prt_enb : 4; /**< Bits 3-0 cooresponds to ports 39-36. These bits
have the same meaning as the PRT_ENB field of
IPD_RED_PORT_ENABLE. */
#else
uint64_t prt_enb : 4;
uint64_t reserved_4_63 : 60;
#endif
} cn52xx;
struct cvmx_ipd_red_port_enable2_cn52xx cn52xxp1;
struct cvmx_ipd_red_port_enable2_cn52xx cn56xx;
struct cvmx_ipd_red_port_enable2_cn52xx cn56xxp1;
struct cvmx_ipd_red_port_enable2_s cn63xx;
struct cvmx_ipd_red_port_enable2_s cn63xxp1;
};
typedef union cvmx_ipd_red_port_enable2 cvmx_ipd_red_port_enable2_t;
/**
* cvmx_ipd_red_que#_param
*
* IPD_RED_QUE0_PARAM = IPD RED Queue-0 Parameters
*
* Value control the Passing and Dropping of packets by the red engine for QOS Level-0.
*/
union cvmx_ipd_red_quex_param
{
uint64_t u64;
struct cvmx_ipd_red_quex_param_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_49_63 : 15;
uint64_t use_pcnt : 1; /**< When set '1' red will use the actual Packet-Page
Count in place of the Average for RED calculations. */
uint64_t new_con : 8; /**< This value is used control how much of the present
Actual Queue Size is used to calculate the new
Average Queue Size. The value is a number from 0
256, which represents NEW_CON/256 of the Actual
Queue Size that will be used in the calculation.
The number in this field plus the value of
AVG_CON must be equal to 256.
Larger AVG_DLY values cause the moving averages
of ALL QOS levels to track changes in the actual
free space more slowly. Smaller NEW_CON (and
larger AVG_CON) values can have a similar effect,
but only affect an individual QOS level, rather
than all. */
uint64_t avg_con : 8; /**< This value is used control how much of the present
Average Queue Size is used to calculate the new
Average Queue Size. The value is a number from 0
256, which represents AVG_CON/256 of the Average
Queue Size that will be used in the calculation.
The number in this field plus the value of
NEW_CON must be equal to 256.
Larger AVG_DLY values cause the moving averages
of ALL QOS levels to track changes in the actual
free space more slowly. Smaller NEW_CON (and
larger AVG_CON) values can have a similar effect,
but only affect an individual QOS level, rather
than all. */
uint64_t prb_con : 32; /**< Used in computing the probability of a packet being
passed or drop by the WRED engine. The field is
calculated to be (255 * 2^24)/(PASS-DROP). Where
PASS and DROP are the field from the
IPD_QOS0_RED_MARKS CSR. */
#else
uint64_t prb_con : 32;
uint64_t avg_con : 8;
uint64_t new_con : 8;
uint64_t use_pcnt : 1;
uint64_t reserved_49_63 : 15;
#endif
} s;
struct cvmx_ipd_red_quex_param_s cn30xx;
struct cvmx_ipd_red_quex_param_s cn31xx;
struct cvmx_ipd_red_quex_param_s cn38xx;
struct cvmx_ipd_red_quex_param_s cn38xxp2;
struct cvmx_ipd_red_quex_param_s cn50xx;
struct cvmx_ipd_red_quex_param_s cn52xx;
struct cvmx_ipd_red_quex_param_s cn52xxp1;
struct cvmx_ipd_red_quex_param_s cn56xx;
struct cvmx_ipd_red_quex_param_s cn56xxp1;
struct cvmx_ipd_red_quex_param_s cn58xx;
struct cvmx_ipd_red_quex_param_s cn58xxp1;
struct cvmx_ipd_red_quex_param_s cn63xx;
struct cvmx_ipd_red_quex_param_s cn63xxp1;
};
typedef union cvmx_ipd_red_quex_param cvmx_ipd_red_quex_param_t;
/**
* cvmx_ipd_sub_port_bp_page_cnt
*
* IPD_SUB_PORT_BP_PAGE_CNT = IPD Subtract Port Backpressure Page Count
*
* Will add the value to the indicated port count register, the number of pages supplied. The value added should
* be the 2's complement of the value that needs to be subtracted. Users add 2's complement values to the
* port-mbuf-count register to return (lower the count) mbufs to the counter in order to avoid port-level
* backpressure being applied to the port. Backpressure is applied when the MBUF used count of a port exceeds the
* value in the IPD_PORTX_BP_PAGE_CNT, IPD_PORTX_BP_PAGE_CNT2, and IPD_PORTX_BP_PAGE_CNT3.
*
* This register can't be written from the PCI via a window write.
*/
union cvmx_ipd_sub_port_bp_page_cnt
{
uint64_t u64;
struct cvmx_ipd_sub_port_bp_page_cnt_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_31_63 : 33;
uint64_t port : 6; /**< The port to add the PAGE_CNT field to. */
uint64_t page_cnt : 25; /**< The number of page pointers to add to
the port counter pointed to by the
PORT Field. */
#else
uint64_t page_cnt : 25;
uint64_t port : 6;
uint64_t reserved_31_63 : 33;
#endif
} s;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn30xx;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn31xx;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn38xx;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn38xxp2;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn50xx;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn52xx;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn52xxp1;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn56xx;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn56xxp1;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn58xx;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn58xxp1;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn63xx;
struct cvmx_ipd_sub_port_bp_page_cnt_s cn63xxp1;
};
typedef union cvmx_ipd_sub_port_bp_page_cnt cvmx_ipd_sub_port_bp_page_cnt_t;
/**
* cvmx_ipd_sub_port_fcs
*
* IPD_SUB_PORT_FCS = IPD Subtract Ports FCS Register
*
* When set '1' the port corresponding to the bit set will subtract 4 bytes from the end of
* the packet.
*/
union cvmx_ipd_sub_port_fcs
{
uint64_t u64;
struct cvmx_ipd_sub_port_fcs_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_40_63 : 24;
uint64_t port_bit2 : 4; /**< When set '1', the port corresponding to the bit
position set, will subtract the FCS for packets
on that port. */
uint64_t reserved_32_35 : 4;
uint64_t port_bit : 32; /**< When set '1', the port corresponding to the bit
position set, will subtract the FCS for packets
on that port. */
#else
uint64_t port_bit : 32;
uint64_t reserved_32_35 : 4;
uint64_t port_bit2 : 4;
uint64_t reserved_40_63 : 24;
#endif
} s;
struct cvmx_ipd_sub_port_fcs_cn30xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_3_63 : 61;
uint64_t port_bit : 3; /**< When set '1', the port corresponding to the bit
position set, will subtract the FCS for packets
on that port. */
#else
uint64_t port_bit : 3;
uint64_t reserved_3_63 : 61;
#endif
} cn30xx;
struct cvmx_ipd_sub_port_fcs_cn30xx cn31xx;
struct cvmx_ipd_sub_port_fcs_cn38xx
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_32_63 : 32;
uint64_t port_bit : 32; /**< When set '1', the port corresponding to the bit
position set, will subtract the FCS for packets
on that port. */
#else
uint64_t port_bit : 32;
uint64_t reserved_32_63 : 32;
#endif
} cn38xx;
struct cvmx_ipd_sub_port_fcs_cn38xx cn38xxp2;
struct cvmx_ipd_sub_port_fcs_cn30xx cn50xx;
struct cvmx_ipd_sub_port_fcs_s cn52xx;
struct cvmx_ipd_sub_port_fcs_s cn52xxp1;
struct cvmx_ipd_sub_port_fcs_s cn56xx;
struct cvmx_ipd_sub_port_fcs_s cn56xxp1;
struct cvmx_ipd_sub_port_fcs_cn38xx cn58xx;
struct cvmx_ipd_sub_port_fcs_cn38xx cn58xxp1;
struct cvmx_ipd_sub_port_fcs_s cn63xx;
struct cvmx_ipd_sub_port_fcs_s cn63xxp1;
};
typedef union cvmx_ipd_sub_port_fcs cvmx_ipd_sub_port_fcs_t;
/**
* cvmx_ipd_sub_port_qos_cnt
*
* IPD_SUB_PORT_QOS_CNT = IPD Subtract Port QOS Count
*
* Will add the value (CNT) to the indicated Port-QOS register (PORT_QOS). The value added must be
* be the 2's complement of the value that needs to be subtracted.
*/
union cvmx_ipd_sub_port_qos_cnt
{
uint64_t u64;
struct cvmx_ipd_sub_port_qos_cnt_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_41_63 : 23;
uint64_t port_qos : 9; /**< The port to add the CNT field to. */
uint64_t cnt : 32; /**< The value to be added to the register selected
in the PORT_QOS field. */
#else
uint64_t cnt : 32;
uint64_t port_qos : 9;
uint64_t reserved_41_63 : 23;
#endif
} s;
struct cvmx_ipd_sub_port_qos_cnt_s cn52xx;
struct cvmx_ipd_sub_port_qos_cnt_s cn52xxp1;
struct cvmx_ipd_sub_port_qos_cnt_s cn56xx;
struct cvmx_ipd_sub_port_qos_cnt_s cn56xxp1;
struct cvmx_ipd_sub_port_qos_cnt_s cn63xx;
struct cvmx_ipd_sub_port_qos_cnt_s cn63xxp1;
};
typedef union cvmx_ipd_sub_port_qos_cnt cvmx_ipd_sub_port_qos_cnt_t;
/**
* cvmx_ipd_wqe_fpa_queue
*
* IPD_WQE_FPA_QUEUE = IPD Work-Queue-Entry FPA Page Size
*
* Which FPA Queue (0-7) to fetch page-pointers from for WQE's
*/
union cvmx_ipd_wqe_fpa_queue
{
uint64_t u64;
struct cvmx_ipd_wqe_fpa_queue_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_3_63 : 61;
uint64_t wqe_pool : 3; /**< Which FPA Queue to fetch page-pointers
from for WQE's.
Not used when IPD_CTL_STATUS[NO_WPTR] is set. */
#else
uint64_t wqe_pool : 3;
uint64_t reserved_3_63 : 61;
#endif
} s;
struct cvmx_ipd_wqe_fpa_queue_s cn30xx;
struct cvmx_ipd_wqe_fpa_queue_s cn31xx;
struct cvmx_ipd_wqe_fpa_queue_s cn38xx;
struct cvmx_ipd_wqe_fpa_queue_s cn38xxp2;
struct cvmx_ipd_wqe_fpa_queue_s cn50xx;
struct cvmx_ipd_wqe_fpa_queue_s cn52xx;
struct cvmx_ipd_wqe_fpa_queue_s cn52xxp1;
struct cvmx_ipd_wqe_fpa_queue_s cn56xx;
struct cvmx_ipd_wqe_fpa_queue_s cn56xxp1;
struct cvmx_ipd_wqe_fpa_queue_s cn58xx;
struct cvmx_ipd_wqe_fpa_queue_s cn58xxp1;
struct cvmx_ipd_wqe_fpa_queue_s cn63xx;
struct cvmx_ipd_wqe_fpa_queue_s cn63xxp1;
};
typedef union cvmx_ipd_wqe_fpa_queue cvmx_ipd_wqe_fpa_queue_t;
/**
* cvmx_ipd_wqe_ptr_valid
*
* IPD_WQE_PTR_VALID = IPD's WQE Pointer Valid
*
* The value of the WQE-pointer fetched and in the valid register.
*/
union cvmx_ipd_wqe_ptr_valid
{
uint64_t u64;
struct cvmx_ipd_wqe_ptr_valid_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_29_63 : 35;
uint64_t ptr : 29; /**< Pointer value.
When IPD_CTL_STATUS[NO_WPTR] is set '1' this field
represents a Packet-Pointer NOT a WQE pointer. */
#else
uint64_t ptr : 29;
uint64_t reserved_29_63 : 35;
#endif
} s;
struct cvmx_ipd_wqe_ptr_valid_s cn30xx;
struct cvmx_ipd_wqe_ptr_valid_s cn31xx;
struct cvmx_ipd_wqe_ptr_valid_s cn38xx;
struct cvmx_ipd_wqe_ptr_valid_s cn50xx;
struct cvmx_ipd_wqe_ptr_valid_s cn52xx;
struct cvmx_ipd_wqe_ptr_valid_s cn52xxp1;
struct cvmx_ipd_wqe_ptr_valid_s cn56xx;
struct cvmx_ipd_wqe_ptr_valid_s cn56xxp1;
struct cvmx_ipd_wqe_ptr_valid_s cn58xx;
struct cvmx_ipd_wqe_ptr_valid_s cn58xxp1;
struct cvmx_ipd_wqe_ptr_valid_s cn63xx;
struct cvmx_ipd_wqe_ptr_valid_s cn63xxp1;
};
typedef union cvmx_ipd_wqe_ptr_valid cvmx_ipd_wqe_ptr_valid_t;
#endif
|