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
|
--- a/drivers/net/ethernet/lantiq_xrx200.c
+++ b/drivers/net/ethernet/lantiq_xrx200.c
@@ -16,6 +16,7 @@
* Copyright (C) 2012 John Crispin <blogic@openwrt.org>
*/
+#include <linux/switch.h>
#include <linux/etherdevice.h>
#include <linux/module.h>
#include <linux/platform_device.h>
@@ -31,6 +32,7 @@
#include <lantiq_soc.h>
#include "lantiq_pce.h"
+#include "lantiq_xrx200_sw.h"
#define SW_POLLING
#define SW_ROUTING
@@ -46,6 +48,10 @@
#define XRX200_MAX_DEV 1
#endif
+#define XRX200_MAX_VLAN 64
+#define XRX200_PCE_ACTVLAN_IDX 0x01
+#define XRX200_PCE_VLANMAP_IDX 0x02
+
#define XRX200_MAX_PORT 7
#define XRX200_MAX_DMA 8
@@ -58,7 +64,6 @@
#define XRX200_PORT_TYPE_MAC 2
/* DMA */
-#define XRX200_DMA_CRC_LEN 0x4
#define XRX200_DMA_DATA_LEN 0x600
#define XRX200_DMA_IRQ INT_NUM_IM2_IRL0
#define XRX200_DMA_RX 0
@@ -225,6 +230,8 @@ struct xrx200_hw {
unsigned short wan_map;
spinlock_t lock;
+
+ struct switch_dev swdev;
};
struct xrx200_priv {
@@ -233,7 +240,8 @@ struct xrx200_priv {
struct xrx200_port port[XRX200_MAX_PORT];
int num_port;
- int wan;
+ bool wan;
+ bool sw;
unsigned short port_map;
unsigned char mac[6];
@@ -265,6 +273,585 @@ static __iomem void *xrx200_pmac_membase
#define ltq_pmac_w32_mask(x, y, z) \
ltq_w32_mask(x, y, xrx200_pmac_membase + (z))
+#define XRX200_GLOBAL_REGATTR(reg) \
+ .id = reg, \
+ .type = SWITCH_TYPE_INT, \
+ .set = xrx200_set_global_attr, \
+ .get = xrx200_get_global_attr
+
+#define XRX200_PORT_REGATTR(reg) \
+ .id = reg, \
+ .type = SWITCH_TYPE_INT, \
+ .set = xrx200_set_port_attr, \
+ .get = xrx200_get_port_attr
+
+static int xrx200sw_read_x(int reg, int x)
+{
+ int value, mask, addr;
+
+ addr = xrx200sw_reg[reg].offset + (xrx200sw_reg[reg].mult * x);
+ value = ltq_switch_r32(addr);
+ mask = (1 << xrx200sw_reg[reg].size) - 1;
+ value = (value >> xrx200sw_reg[reg].shift);
+
+ return (value & mask);
+}
+
+static int xrx200sw_read(int reg)
+{
+ return xrx200sw_read_x(reg, 0);
+}
+
+static void xrx200sw_write_x(int value, int reg, int x)
+{
+ int mask, addr;
+
+ addr = xrx200sw_reg[reg].offset + (xrx200sw_reg[reg].mult * x);
+ mask = (1 << xrx200sw_reg[reg].size) - 1;
+ mask = (mask << xrx200sw_reg[reg].shift);
+ value = (value << xrx200sw_reg[reg].shift) & mask;
+
+ ltq_switch_w32_mask(mask, value, addr);
+}
+
+static void xrx200sw_write(int value, int reg)
+{
+ xrx200sw_write_x(value, reg, 0);
+}
+
+struct xrx200_pce_table_entry {
+ int index; // PCE_TBL_ADDR.ADDR = pData->table_index
+ int table; // PCE_TBL_CTRL.ADDR = pData->table
+ unsigned short key[8];
+ unsigned short val[5];
+ unsigned short mask;
+ unsigned short type;
+ unsigned short valid;
+ unsigned short gmap;
+};
+
+static int xrx200_pce_table_entry_read(struct xrx200_pce_table_entry *tbl)
+{
+ // wait until hardware is ready
+ while (xrx200sw_read(XRX200_PCE_TBL_CTRL_BAS)) {};
+
+ // prepare the table access:
+ // PCE_TBL_ADDR.ADDR = pData->table_index
+ xrx200sw_write(tbl->index, XRX200_PCE_TBL_ADDR_ADDR);
+ // PCE_TBL_CTRL.ADDR = pData->table
+ xrx200sw_write(tbl->table, XRX200_PCE_TBL_CTRL_ADDR);
+
+ //(address-based read)
+ xrx200sw_write(0, XRX200_PCE_TBL_CTRL_OPMOD); // OPMOD_ADRD
+
+ xrx200sw_write(1, XRX200_PCE_TBL_CTRL_BAS); // start access
+
+ // wait until hardware is ready
+ while (xrx200sw_read(XRX200_PCE_TBL_CTRL_BAS)) {};
+
+ // read the keys
+ tbl->key[7] = xrx200sw_read(XRX200_PCE_TBL_KEY_7);
+ tbl->key[6] = xrx200sw_read(XRX200_PCE_TBL_KEY_6);
+ tbl->key[5] = xrx200sw_read(XRX200_PCE_TBL_KEY_5);
+ tbl->key[4] = xrx200sw_read(XRX200_PCE_TBL_KEY_4);
+ tbl->key[3] = xrx200sw_read(XRX200_PCE_TBL_KEY_3);
+ tbl->key[2] = xrx200sw_read(XRX200_PCE_TBL_KEY_2);
+ tbl->key[1] = xrx200sw_read(XRX200_PCE_TBL_KEY_1);
+ tbl->key[0] = xrx200sw_read(XRX200_PCE_TBL_KEY_0);
+
+ // read the values
+ tbl->val[4] = xrx200sw_read(XRX200_PCE_TBL_VAL_4);
+ tbl->val[3] = xrx200sw_read(XRX200_PCE_TBL_VAL_3);
+ tbl->val[2] = xrx200sw_read(XRX200_PCE_TBL_VAL_2);
+ tbl->val[1] = xrx200sw_read(XRX200_PCE_TBL_VAL_1);
+ tbl->val[0] = xrx200sw_read(XRX200_PCE_TBL_VAL_0);
+
+ // read the mask
+ tbl->mask = xrx200sw_read(XRX200_PCE_TBL_MASK_0);
+ // read the type
+ tbl->type = xrx200sw_read(XRX200_PCE_TBL_CTRL_TYPE);
+ // read the valid flag
+ tbl->valid = xrx200sw_read(XRX200_PCE_TBL_CTRL_VLD);
+ // read the group map
+ tbl->gmap = xrx200sw_read(XRX200_PCE_TBL_CTRL_GMAP);
+
+ return 0;
+}
+
+static int xrx200_pce_table_entry_write(struct xrx200_pce_table_entry *tbl)
+{
+ // wait until hardware is ready
+ while (xrx200sw_read(XRX200_PCE_TBL_CTRL_BAS)) {};
+
+ // prepare the table access:
+ // PCE_TBL_ADDR.ADDR = pData->table_index
+ xrx200sw_write(tbl->index, XRX200_PCE_TBL_ADDR_ADDR);
+ // PCE_TBL_CTRL.ADDR = pData->table
+ xrx200sw_write(tbl->table, XRX200_PCE_TBL_CTRL_ADDR);
+
+ //(address-based write)
+ xrx200sw_write(1, XRX200_PCE_TBL_CTRL_OPMOD); // OPMOD_ADRD
+
+ // read the keys
+ xrx200sw_write(tbl->key[7], XRX200_PCE_TBL_KEY_7);
+ xrx200sw_write(tbl->key[6], XRX200_PCE_TBL_KEY_6);
+ xrx200sw_write(tbl->key[5], XRX200_PCE_TBL_KEY_5);
+ xrx200sw_write(tbl->key[4], XRX200_PCE_TBL_KEY_4);
+ xrx200sw_write(tbl->key[3], XRX200_PCE_TBL_KEY_3);
+ xrx200sw_write(tbl->key[2], XRX200_PCE_TBL_KEY_2);
+ xrx200sw_write(tbl->key[1], XRX200_PCE_TBL_KEY_1);
+ xrx200sw_write(tbl->key[0], XRX200_PCE_TBL_KEY_0);
+
+ // read the values
+ xrx200sw_write(tbl->val[4], XRX200_PCE_TBL_VAL_4);
+ xrx200sw_write(tbl->val[3], XRX200_PCE_TBL_VAL_3);
+ xrx200sw_write(tbl->val[2], XRX200_PCE_TBL_VAL_2);
+ xrx200sw_write(tbl->val[1], XRX200_PCE_TBL_VAL_1);
+ xrx200sw_write(tbl->val[0], XRX200_PCE_TBL_VAL_0);
+
+ // read the mask
+ xrx200sw_write(tbl->mask, XRX200_PCE_TBL_MASK_0);
+ // read the type
+ xrx200sw_write(tbl->type, XRX200_PCE_TBL_CTRL_TYPE);
+ // read the valid flag
+ xrx200sw_write(tbl->valid, XRX200_PCE_TBL_CTRL_VLD);
+ // read the group map
+ xrx200sw_write(tbl->gmap, XRX200_PCE_TBL_CTRL_GMAP);
+
+ xrx200sw_write(1, XRX200_PCE_TBL_CTRL_BAS); // start access
+
+ // wait until hardware is ready
+ while (xrx200sw_read(XRX200_PCE_TBL_CTRL_BAS)) {};
+
+ return 0;
+}
+
+static void xrx200sw_fixup_pvids(void)
+{
+ int index, p, portmap, untagged;
+ struct xrx200_pce_table_entry tem;
+ struct xrx200_pce_table_entry tev;
+
+ portmap = 0;
+ for (p = 0; p < XRX200_MAX_PORT; p++)
+ portmap |= BIT(p);
+
+ tem.table = XRX200_PCE_VLANMAP_IDX;
+ tev.table = XRX200_PCE_ACTVLAN_IDX;
+
+ for (index = XRX200_MAX_VLAN; index-- > 0;)
+ {
+ tev.index = index;
+ xrx200_pce_table_entry_read(&tev);
+
+ if (tev.valid == 0)
+ continue;
+
+ tem.index = index;
+ xrx200_pce_table_entry_read(&tem);
+
+ if (tem.val[0] == 0)
+ continue;
+
+ untagged = portmap & (tem.val[1] ^ tem.val[2]);
+
+ for (p = 0; p < XRX200_MAX_PORT; p++)
+ if (untagged & BIT(p))
+ {
+ portmap &= ~BIT(p);
+ xrx200sw_write_x(index, XRX200_PCE_DEFPVID_PVID, p);
+ }
+
+ for (p = 0; p < XRX200_MAX_PORT; p++)
+ if (portmap & BIT(p))
+ xrx200sw_write_x(index, XRX200_PCE_DEFPVID_PVID, p);
+ }
+}
+
+// swconfig interface
+static void xrx200_hw_init(struct xrx200_hw *hw);
+
+// global
+static int xrx200sw_reset_switch(struct switch_dev *dev)
+{
+ struct xrx200_hw *hw = container_of(dev, struct xrx200_hw, swdev);
+
+ xrx200_hw_init(hw);
+
+ return 0;
+}
+
+static int xrx200_set_vlan_mode_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val)
+{
+ int p;
+
+ if ((attr->max > 0) && (val->value.i > attr->max))
+ return -EINVAL;
+
+ for (p = 0; p < XRX200_MAX_PORT; p++) {
+ xrx200sw_write_x(val->value.i, XRX200_PCE_VCTRL_VEMR, p);
+ xrx200sw_write_x(val->value.i, XRX200_PCE_VCTRL_VIMR, p);
+ }
+
+ xrx200sw_write(val->value.i, XRX200_PCE_GCTRL_0_VLAN);
+ return 0;
+}
+
+static int xrx200_get_vlan_mode_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val)
+{
+ val->value.i = xrx200sw_read(attr->id);
+ return 0;
+}
+
+static int xrx200_set_global_attr(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val)
+{
+ if ((attr->max > 0) && (val->value.i > attr->max))
+ return -EINVAL;
+
+ xrx200sw_write(val->value.i, attr->id);
+ return 0;
+}
+
+static int xrx200_get_global_attr(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val)
+{
+ val->value.i = xrx200sw_read(attr->id);
+ return 0;
+}
+
+// vlan
+static int xrx200sw_set_vlan_vid(struct switch_dev *dev, const struct switch_attr *attr,
+ struct switch_val *val)
+{
+ int i;
+ struct xrx200_pce_table_entry tev;
+ struct xrx200_pce_table_entry tem;
+
+ tev.table = XRX200_PCE_ACTVLAN_IDX;
+
+ for (i = 0; i < XRX200_MAX_VLAN; i++)
+ {
+ tev.index = i;
+ xrx200_pce_table_entry_read(&tev);
+ if (tev.key[0] == val->value.i && i != val->port_vlan)
+ return -EINVAL;
+ }
+
+ tev.index = val->port_vlan;
+ xrx200_pce_table_entry_read(&tev);
+ tev.key[0] = val->value.i;
+ tev.valid = val->value.i > 0;
+ xrx200_pce_table_entry_write(&tev);
+
+ tem.table = XRX200_PCE_VLANMAP_IDX;
+ tem.index = val->port_vlan;
+ xrx200_pce_table_entry_read(&tem);
+ tem.val[0] = val->value.i;
+ xrx200_pce_table_entry_write(&tem);
+
+ xrx200sw_fixup_pvids();
+ return 0;
+}
+
+static int xrx200sw_get_vlan_vid(struct switch_dev *dev, const struct switch_attr *attr,
+ struct switch_val *val)
+{
+ struct xrx200_pce_table_entry te;
+
+ te.table = XRX200_PCE_ACTVLAN_IDX;
+ te.index = val->port_vlan;
+ xrx200_pce_table_entry_read(&te);
+ val->value.i = te.key[0];
+
+ return 0;
+}
+
+static int xrx200sw_set_vlan_ports(struct switch_dev *dev, struct switch_val *val)
+{
+ int i, portmap, tagmap, untagged;
+ struct xrx200_pce_table_entry tem;
+
+ portmap = 0;
+ tagmap = 0;
+ for (i = 0; i < val->len; i++)
+ {
+ struct switch_port *p = &val->value.ports[i];
+
+ portmap |= (1 << p->id);
+ if (p->flags & (1 << SWITCH_PORT_FLAG_TAGGED))
+ tagmap |= (1 << p->id);
+ }
+
+ tem.table = XRX200_PCE_VLANMAP_IDX;
+
+ untagged = portmap ^ tagmap;
+ for (i = 0; i < XRX200_MAX_VLAN; i++)
+ {
+ tem.index = i;
+ xrx200_pce_table_entry_read(&tem);
+
+ if (tem.val[0] == 0)
+ continue;
+
+ if ((untagged & (tem.val[1] ^ tem.val[2])) && (val->port_vlan != i))
+ return -EINVAL;
+ }
+
+ tem.index = val->port_vlan;
+ xrx200_pce_table_entry_read(&tem);
+
+ // auto-enable this vlan if not enabled already
+ if (tem.val[0] == 0)
+ {
+ struct switch_val v;
+ v.port_vlan = val->port_vlan;
+ v.value.i = val->port_vlan;
+ if(xrx200sw_set_vlan_vid(dev, NULL, &v))
+ return -EINVAL;
+
+ //read updated tem
+ tem.index = val->port_vlan;
+ xrx200_pce_table_entry_read(&tem);
+ }
+
+ tem.val[1] = portmap;
+ tem.val[2] = tagmap;
+ xrx200_pce_table_entry_write(&tem);
+
+ xrx200sw_fixup_pvids();
+
+ return 0;
+}
+
+static int xrx200sw_get_vlan_ports(struct switch_dev *dev, struct switch_val *val)
+{
+ int i;
+ unsigned short ports, tags;
+ struct xrx200_pce_table_entry tem;
+
+ tem.table = XRX200_PCE_VLANMAP_IDX;
+ tem.index = val->port_vlan;
+ xrx200_pce_table_entry_read(&tem);
+
+ ports = tem.val[1];
+ tags = tem.val[2];
+
+ for (i = 0; i < XRX200_MAX_PORT; i++) {
+ struct switch_port *p;
+
+ if (!(ports & (1 << i)))
+ continue;
+
+ p = &val->value.ports[val->len++];
+ p->id = i;
+ if (tags & (1 << i))
+ p->flags = (1 << SWITCH_PORT_FLAG_TAGGED);
+ else
+ p->flags = 0;
+ }
+
+ return 0;
+}
+
+static int xrx200sw_set_vlan_enable(struct switch_dev *dev, const struct switch_attr *attr,
+ struct switch_val *val)
+{
+ struct xrx200_pce_table_entry tev;
+
+ tev.table = XRX200_PCE_ACTVLAN_IDX;
+ tev.index = val->port_vlan;
+ xrx200_pce_table_entry_read(&tev);
+
+ if (tev.key[0] == 0)
+ return -EINVAL;
+
+ tev.valid = val->value.i;
+ xrx200_pce_table_entry_write(&tev);
+
+ xrx200sw_fixup_pvids();
+ return 0;
+}
+
+static int xrx200sw_get_vlan_enable(struct switch_dev *dev, const struct switch_attr *attr,
+ struct switch_val *val)
+{
+ struct xrx200_pce_table_entry tev;
+
+ tev.table = XRX200_PCE_ACTVLAN_IDX;
+ tev.index = val->port_vlan;
+ xrx200_pce_table_entry_read(&tev);
+ val->value.i = tev.valid;
+
+ return 0;
+}
+
+// port
+static int xrx200sw_get_port_pvid(struct switch_dev *dev, int port, int *val)
+{
+ struct xrx200_pce_table_entry tev;
+
+ if (port >= XRX200_MAX_PORT)
+ return -EINVAL;
+
+ tev.table = XRX200_PCE_ACTVLAN_IDX;
+ tev.index = xrx200sw_read_x(XRX200_PCE_DEFPVID_PVID, port);
+ xrx200_pce_table_entry_read(&tev);
+
+ *val = tev.key[0];
+ return 0;
+}
+
+static int xrx200sw_get_port_link(struct switch_dev *dev,
+ int port,
+ struct switch_port_link *link)
+{
+ if (port >= XRX200_MAX_PORT)
+ return -EINVAL;
+
+ link->link = xrx200sw_read_x(XRX200_MAC_PSTAT_LSTAT, port);
+ if (!link->link)
+ return 0;
+
+ link->duplex = xrx200sw_read_x(XRX200_MAC_PSTAT_FDUP, port);
+
+ link->rx_flow = !!(xrx200sw_read_x(XRX200_MAC_CTRL_0_FCON, port) && 0x0010);
+ link->tx_flow = !!(xrx200sw_read_x(XRX200_MAC_CTRL_0_FCON, port) && 0x0020);
+ link->aneg = !(xrx200sw_read_x(XRX200_MAC_CTRL_0_FCON, port));
+
+ link->speed = SWITCH_PORT_SPEED_10;
+ if (xrx200sw_read_x(XRX200_MAC_PSTAT_MBIT, port))
+ link->speed = SWITCH_PORT_SPEED_100;
+ if (xrx200sw_read_x(XRX200_MAC_PSTAT_GBIT, port))
+ link->speed = SWITCH_PORT_SPEED_1000;
+
+ return 0;
+}
+
+static int xrx200_set_port_attr(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val)
+{
+ printk("%s %s(%d)\n", __FILE__, __func__, __LINE__);
+ if (val->port_vlan >= XRX200_MAX_PORT)
+ return -EINVAL;
+
+ if ((attr->max > 0) && (val->value.i > attr->max))
+ return -EINVAL;
+
+ xrx200sw_write_x(val->value.i, attr->id, val->port_vlan);
+ return 0;
+}
+
+static int xrx200_get_port_attr(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val)
+{
+ if (val->port_vlan >= XRX200_MAX_PORT)
+ return -EINVAL;
+
+ val->value.i = xrx200sw_read_x(attr->id, val->port_vlan);
+ return 0;
+}
+
+// attributes
+static struct switch_attr xrx200sw_globals[] = {
+ {
+ .type = SWITCH_TYPE_INT,
+ .set = xrx200_set_vlan_mode_enable,
+ .get = xrx200_get_vlan_mode_enable,
+ .name = "enable_vlan",
+ .description = "Enable VLAN mode",
+ .max = 1},
+};
+
+static struct switch_attr xrx200sw_port[] = {
+ {
+ XRX200_PORT_REGATTR(XRX200_PCE_VCTRL_UVR),
+ .name = "uvr",
+ .description = "Unknown VLAN Rule",
+ .max = 1,
+ },
+ {
+ XRX200_PORT_REGATTR(XRX200_PCE_VCTRL_VSR),
+ .name = "vsr",
+ .description = "VLAN Security Rule",
+ .max = 1,
+ },
+ {
+ XRX200_PORT_REGATTR(XRX200_PCE_VCTRL_VINR),
+ .name = "vinr",
+ .description = "VLAN Ingress Tag Rule",
+ .max = 2,
+ },
+ {
+ XRX200_PORT_REGATTR(XRX200_PCE_PCTRL_0_TVM),
+ .name = "tvm",
+ .description = "Transparent VLAN Mode",
+ .max = 1,
+ },
+};
+
+static struct switch_attr xrx200sw_vlan[] = {
+ {
+ .type = SWITCH_TYPE_INT,
+ .name = "vid",
+ .description = "VLAN ID (0-4094)",
+ .set = xrx200sw_set_vlan_vid,
+ .get = xrx200sw_get_vlan_vid,
+ .max = 4094,
+ },
+ {
+ .type = SWITCH_TYPE_INT,
+ .name = "enable",
+ .description = "Enable VLAN",
+ .set = xrx200sw_set_vlan_enable,
+ .get = xrx200sw_get_vlan_enable,
+ .max = 1,
+ },
+};
+
+static const struct switch_dev_ops xrx200sw_ops = {
+ .attr_global = {
+ .attr = xrx200sw_globals,
+ .n_attr = ARRAY_SIZE(xrx200sw_globals),
+ },
+ .attr_port = {
+ .attr = xrx200sw_port,
+ .n_attr = ARRAY_SIZE(xrx200sw_port),
+ },
+ .attr_vlan = {
+ .attr = xrx200sw_vlan,
+ .n_attr = ARRAY_SIZE(xrx200sw_vlan),
+ },
+ .get_vlan_ports = xrx200sw_get_vlan_ports,
+ .set_vlan_ports = xrx200sw_set_vlan_ports,
+ .get_port_pvid = xrx200sw_get_port_pvid,
+ .reset_switch = xrx200sw_reset_switch,
+ .get_port_link = xrx200sw_get_port_link,
+// .get_port_stats = xrx200sw_get_port_stats, //TODO
+};
+
+static int xrx200sw_init(struct xrx200_hw *hw)
+{
+ int netdev_num;
+
+ for (netdev_num = 0; netdev_num < hw->num_devs; netdev_num++)
+ {
+ struct switch_dev *swdev;
+ struct net_device *dev = hw->devs[netdev_num];
+ struct xrx200_priv *priv = netdev_priv(dev);
+ if (!priv->sw)
+ continue;
+
+ swdev = &hw->swdev;
+
+ swdev->name = "Lantiq XRX200 Switch";
+ swdev->vlans = XRX200_MAX_VLAN;
+ swdev->ports = XRX200_MAX_PORT;
+ swdev->cpu_port = 6;
+ swdev->ops = &xrx200sw_ops;
+
+ register_switch(swdev, dev);
+ return 0; // enough switches
+ }
+ return 0;
+}
+
static int xrx200_open(struct net_device *dev)
{
struct xrx200_priv *priv = netdev_priv(dev);
@@ -346,7 +933,7 @@ static void xrx200_hw_receive(struct xrx
struct xrx200_priv *priv = netdev_priv(dev);
struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc];
struct sk_buff *skb = ch->skb[ch->dma.desc];
- int len = (desc->ctl & LTQ_DMA_SIZE_MASK) - XRX200_DMA_CRC_LEN;
+ int len = (desc->ctl & LTQ_DMA_SIZE_MASK);
unsigned long flags;
spin_lock_irqsave(&priv->hw->lock, flags);
@@ -924,9 +1511,9 @@ static void xrx200_hw_init(struct xrx200
PMAC_HD_CTL);
#endif
- /* enable port fetch/store dma */
+ /* enable port fetch/store dma & VLAN Modification */
for (i = 0; i < 7; i++ ) {
- ltq_switch_w32_mask(0, 0x01, FDMA_PCTRLx(i));
+ ltq_switch_w32_mask(0, 0x19, FDMA_PCTRLx(i));
ltq_switch_w32_mask(0, 0x01, SDMA_PCTRLx(i));
ltq_switch_w32_mask(0, PCE_INGRESS, PCE_PCTRL_REG(i, 0));
}
@@ -1042,6 +1629,7 @@ static void xrx200_of_iface(struct xrx20
struct xrx200_priv *priv;
struct device_node *port;
const __be32 *wan;
+ const __be32 *sw;
/* alloc the network device */
hw->devs[hw->num_devs] = alloc_etherdev(sizeof(struct xrx200_priv));
@@ -1065,6 +1653,11 @@ static void xrx200_of_iface(struct xrx20
if (wan && (*wan == 1))
priv->wan = 1;
+ /* should the switch be enabled on this interface ? */
+ sw = of_get_property(iface, "lantiq,switch", NULL);
+ if (sw && (*sw == 1))
+ priv->sw = 1;
+
/* load the ports that are part of the interface */
for_each_child_of_node(iface, port)
if (of_device_is_compatible(port, "lantiq,xrx200-pdi-port"))
@@ -1138,6 +1731,8 @@ static int xrx200_probe(struct platform_
return -ENOENT;
}
+ xrx200sw_init(&xrx200_hw);
+
/* set wan port mask */
ltq_pmac_w32(xrx200_hw.wan_map, PMAC_EWAN);
--- /dev/null
+++ b/drivers/net/ethernet/lantiq_xrx200_sw.h
@@ -0,0 +1,1328 @@
+/*
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * Copyright (C) 2010 Lantiq Deutschland GmbH
+ * Copyright (C) 2013 Antonios Vamporakis <vamporakis@yahoo.com>
+ *
+ * VR9 switch registers extracted from 310TUJ0 switch api
+ * WARNING mult values of 0x00 may not be correct
+ *
+ */
+
+enum {
+// XRX200_ETHSW_SWRES, /* Ethernet Switch ResetControl Register */
+// XRX200_ETHSW_SWRES_R1, /* Hardware Reset */
+// XRX200_ETHSW_SWRES_R0, /* Register Configuration */
+// XRX200_ETHSW_CLK_MAC_GAT, /* Ethernet Switch Clock ControlRegister */
+// XRX200_ETHSW_CLK_EXP_SLEEP, /* Exponent to put system into sleep */
+// XRX200_ETHSW_CLK_EXP_WAKE, /* Exponent to wake up system */
+// XRX200_ETHSW_CLK_CLK2_EN, /* CLK2 Input for MAC */
+// XRX200_ETHSW_CLK_EXT_DIV_EN, /* External Clock Divider Enable */
+// XRX200_ETHSW_CLK_RAM_DBG_EN, /* Clock Gating Enable */
+// XRX200_ETHSW_CLK_REG_GAT_EN, /* Clock Gating Enable */
+// XRX200_ETHSW_CLK_GAT_EN, /* Clock Gating Enable */
+// XRX200_ETHSW_CLK_MAC_GAT_EN, /* Clock Gating Enable */
+// XRX200_ETHSW_DBG_STEP, /* Ethernet Switch Debug ControlRegister */
+// XRX200_ETHSW_DBG_CLK_SEL, /* Trigger Enable */
+// XRX200_ETHSW_DBG_MON_EN, /* Monitoring Enable */
+// XRX200_ETHSW_DBG_TRIG_EN, /* Trigger Enable */
+// XRX200_ETHSW_DBG_MODE, /* Debug Mode */
+// XRX200_ETHSW_DBG_STEP_TIME, /* Clock Step Size */
+// XRX200_ETHSW_SSB_MODE, /* Ethernet Switch SharedSegment Buffer Mode Register */
+// XRX200_ETHSW_SSB_MODE_ADDE, /* Memory Address */
+// XRX200_ETHSW_SSB_MODE_MODE, /* Memory Access Mode */
+// XRX200_ETHSW_SSB_ADDR, /* Ethernet Switch SharedSegment Buffer Address Register */
+// XRX200_ETHSW_SSB_ADDR_ADDE, /* Memory Address */
+// XRX200_ETHSW_SSB_DATA, /* Ethernet Switch SharedSegment Buffer Data Register */
+// XRX200_ETHSW_SSB_DATA_DATA, /* Data Value */
+// XRX200_ETHSW_CAP_0, /* Ethernet Switch CapabilityRegister 0 */
+// XRX200_ETHSW_CAP_0_SPEED, /* Clock frequency */
+// XRX200_ETHSW_CAP_1, /* Ethernet Switch CapabilityRegister 1 */
+// XRX200_ETHSW_CAP_1_GMAC, /* MAC operation mode */
+// XRX200_ETHSW_CAP_1_QUEUE, /* Number of queues */
+// XRX200_ETHSW_CAP_1_VPORTS, /* Number of virtual ports */
+// XRX200_ETHSW_CAP_1_PPORTS, /* Number of physical ports */
+// XRX200_ETHSW_CAP_2, /* Ethernet Switch CapabilityRegister 2 */
+// XRX200_ETHSW_CAP_2_PACKETS, /* Number of packets */
+// XRX200_ETHSW_CAP_3, /* Ethernet Switch CapabilityRegister 3 */
+// XRX200_ETHSW_CAP_3_METERS, /* Number of traffic meters */
+// XRX200_ETHSW_CAP_3_SHAPERS, /* Number of traffic shapers */
+// XRX200_ETHSW_CAP_4, /* Ethernet Switch CapabilityRegister 4 */
+// XRX200_ETHSW_CAP_4_PPPOE, /* PPPoE table size */
+// XRX200_ETHSW_CAP_4_VLAN, /* Active VLAN table size */
+// XRX200_ETHSW_CAP_5, /* Ethernet Switch CapabilityRegister 5 */
+// XRX200_ETHSW_CAP_5_IPPLEN, /* IP packet length table size */
+// XRX200_ETHSW_CAP_5_PROT, /* Protocol table size */
+// XRX200_ETHSW_CAP_6, /* Ethernet Switch CapabilityRegister 6 */
+// XRX200_ETHSW_CAP_6_MACDASA, /* MAC DA/SA table size */
+// XRX200_ETHSW_CAP_6_APPL, /* Application table size */
+// XRX200_ETHSW_CAP_7, /* Ethernet Switch CapabilityRegister 7 */
+// XRX200_ETHSW_CAP_7_IPDASAM, /* IP DA/SA MSB table size */
+// XRX200_ETHSW_CAP_7_IPDASAL, /* IP DA/SA LSB table size */
+// XRX200_ETHSW_CAP_8, /* Ethernet Switch CapabilityRegister 8 */
+// XRX200_ETHSW_CAP_8_MCAST, /* Multicast table size */
+// XRX200_ETHSW_CAP_9, /* Ethernet Switch CapabilityRegister 9 */
+// XRX200_ETHSW_CAP_9_FLAGG, /* Flow Aggregation table size */
+// XRX200_ETHSW_CAP_10, /* Ethernet Switch CapabilityRegister 10 */
+// XRX200_ETHSW_CAP_10_MACBT, /* MAC bridging table size */
+// XRX200_ETHSW_CAP_11, /* Ethernet Switch CapabilityRegister 11 */
+// XRX200_ETHSW_CAP_11_BSIZEL, /* Packet buffer size (lower part, in byte) */
+// XRX200_ETHSW_CAP_12, /* Ethernet Switch CapabilityRegister 12 */
+// XRX200_ETHSW_CAP_12_BSIZEH, /* Packet buffer size (higher part, in byte) */
+// XRX200_ETHSW_VERSION_REV, /* Ethernet Switch VersionRegister */
+// XRX200_ETHSW_VERSION_MOD_ID, /* Module Identification */
+// XRX200_ETHSW_VERSION_REV_ID, /* Hardware Revision Identification */
+// XRX200_ETHSW_IER, /* Interrupt Enable Register */
+// XRX200_ETHSW_IER_FDMAIE, /* Fetch DMA Interrupt Enable */
+// XRX200_ETHSW_IER_SDMAIE, /* Store DMA Interrupt Enable */
+// XRX200_ETHSW_IER_MACIE, /* Ethernet MAC Interrupt Enable */
+// XRX200_ETHSW_IER_PCEIE, /* Parser and Classification Engine Interrupt Enable */
+// XRX200_ETHSW_IER_BMIE, /* Buffer Manager Interrupt Enable */
+// XRX200_ETHSW_ISR, /* Interrupt Status Register */
+// XRX200_ETHSW_ISR_FDMAINT, /* Fetch DMA Interrupt */
+// XRX200_ETHSW_ISR_SDMAINT, /* Store DMA Interrupt */
+// XRX200_ETHSW_ISR_MACINT, /* Ethernet MAC Interrupt */
+// XRX200_ETHSW_ISR_PCEINT, /* Parser and Classification Engine Interrupt */
+// XRX200_ETHSW_ISR_BMINT, /* Buffer Manager Interrupt */
+// XRX200_ETHSW_SPARE_0, /* Ethernet Switch SpareCells 0 */
+// XRX200_ETHSW_SPARE_0_SPARE, /* SPARE0 */
+// XRX200_ETHSW_SPARE_1, /* Ethernet Switch SpareCells 1 */
+// XRX200_ETHSW_SPARE_1_SPARE, /* SPARE1 */
+// XRX200_ETHSW_SPARE_2, /* Ethernet Switch SpareCells 2 */
+// XRX200_ETHSW_SPARE_2_SPARE, /* SPARE2 */
+// XRX200_ETHSW_SPARE_3, /* Ethernet Switch SpareCells 3 */
+// XRX200_ETHSW_SPARE_3_SPARE, /* SPARE3 */
+// XRX200_ETHSW_SPARE_4, /* Ethernet Switch SpareCells 4 */
+// XRX200_ETHSW_SPARE_4_SPARE, /* SPARE4 */
+// XRX200_ETHSW_SPARE_5, /* Ethernet Switch SpareCells 5 */
+// XRX200_ETHSW_SPARE_5_SPARE, /* SPARE5 */
+// XRX200_ETHSW_SPARE_6, /* Ethernet Switch SpareCells 6 */
+// XRX200_ETHSW_SPARE_6_SPARE, /* SPARE6 */
+// XRX200_ETHSW_SPARE_7, /* Ethernet Switch SpareCells 7 */
+// XRX200_ETHSW_SPARE_7_SPARE, /* SPARE7 */
+// XRX200_ETHSW_SPARE_8, /* Ethernet Switch SpareCells 8 */
+// XRX200_ETHSW_SPARE_8_SPARE, /* SPARE8 */
+// XRX200_ETHSW_SPARE_9, /* Ethernet Switch SpareCells 9 */
+// XRX200_ETHSW_SPARE_9_SPARE, /* SPARE9 */
+// XRX200_ETHSW_SPARE_10, /* Ethernet Switch SpareCells 10 */
+// XRX200_ETHSW_SPARE_10_SPARE, /* SPARE10 */
+// XRX200_ETHSW_SPARE_11, /* Ethernet Switch SpareCells 11 */
+// XRX200_ETHSW_SPARE_11_SPARE, /* SPARE11 */
+// XRX200_ETHSW_SPARE_12, /* Ethernet Switch SpareCells 12 */
+// XRX200_ETHSW_SPARE_12_SPARE, /* SPARE12 */
+// XRX200_ETHSW_SPARE_13, /* Ethernet Switch SpareCells 13 */
+// XRX200_ETHSW_SPARE_13_SPARE, /* SPARE13 */
+// XRX200_ETHSW_SPARE_14, /* Ethernet Switch SpareCells 14 */
+// XRX200_ETHSW_SPARE_14_SPARE, /* SPARE14 */
+// XRX200_ETHSW_SPARE_15, /* Ethernet Switch SpareCells 15 */
+// XRX200_ETHSW_SPARE_15_SPARE, /* SPARE15 */
+// XRX200_BM_RAM_VAL_3, /* RAM Value Register 3 */
+// XRX200_BM_RAM_VAL_3_VAL3, /* Data value [15:0] */
+// XRX200_BM_RAM_VAL_2, /* RAM Value Register 2 */
+// XRX200_BM_RAM_VAL_2_VAL2, /* Data value [15:0] */
+// XRX200_BM_RAM_VAL_1, /* RAM Value Register 1 */
+// XRX200_BM_RAM_VAL_1_VAL1, /* Data value [15:0] */
+// XRX200_BM_RAM_VAL_0, /* RAM Value Register 0 */
+// XRX200_BM_RAM_VAL_0_VAL0, /* Data value [15:0] */
+// XRX200_BM_RAM_ADDR, /* RAM Address Register */
+// XRX200_BM_RAM_ADDR_ADDR, /* RAM Address */
+// XRX200_BM_RAM_CTRL, /* RAM Access Control Register */
+// XRX200_BM_RAM_CTRL_BAS, /* Access Busy/Access Start */
+// XRX200_BM_RAM_CTRL_OPMOD, /* Lookup Table Access Operation Mode */
+// XRX200_BM_RAM_CTRL_ADDR, /* Address for RAM selection */
+// XRX200_BM_FSQM_GCTRL, /* Free Segment Queue ManagerGlobal Control Register */
+// XRX200_BM_FSQM_GCTRL_SEGNUM, /* Maximum Segment Number */
+// XRX200_BM_CONS_SEG, /* Number of Consumed SegmentsRegister */
+// XRX200_BM_CONS_SEG_FSEG, /* Number of Consumed Segments */
+// XRX200_BM_CONS_PKT, /* Number of Consumed PacketPointers Register */
+// XRX200_BM_CONS_PKT_FQP, /* Number of Consumed Packet Pointers */
+// XRX200_BM_GCTRL_F, /* Buffer Manager Global ControlRegister 0 */
+// XRX200_BM_GCTRL_BM_STA, /* Buffer Manager Initialization Status Bit */
+// XRX200_BM_GCTRL_SAT, /* RMON Counter Update Mode */
+// XRX200_BM_GCTRL_FR_RBC, /* Freeze RMON RX Bad Byte 64 Bit Counter */
+// XRX200_BM_GCTRL_FR_RGC, /* Freeze RMON RX Good Byte 64 Bit Counter */
+// XRX200_BM_GCTRL_FR_TGC, /* Freeze RMON TX Good Byte 64 Bit Counter */
+// XRX200_BM_GCTRL_I_FIN, /* RAM initialization finished */
+// XRX200_BM_GCTRL_CX_INI, /* PQM Context RAM initialization */
+// XRX200_BM_GCTRL_FP_INI, /* FPQM RAM initialization */
+// XRX200_BM_GCTRL_FS_INI, /* FSQM RAM initialization */
+// XRX200_BM_GCTRL_R_SRES, /* Software Reset for RMON */
+// XRX200_BM_GCTRL_S_SRES, /* Software Reset for Scheduler */
+// XRX200_BM_GCTRL_A_SRES, /* Software Reset for AVG */
+// XRX200_BM_GCTRL_P_SRES, /* Software Reset for PQM */
+// XRX200_BM_GCTRL_F_SRES, /* Software Reset for FSQM */
+// XRX200_BM_QUEUE_GCTRL, /* Queue Manager GlobalControl Register 0 */
+// XRX200_BM_QUEUE_GCTRL_GL_MOD, /* WRED Mode Signal */
+// XRX200_BM_QUEUE_GCTRL_AQUI, /* Average Queue Update Interval */
+// XRX200_BM_QUEUE_GCTRL_AQWF, /* Average Queue Weight Factor */
+// XRX200_BM_QUEUE_GCTRL_QAVGEN, /* Queue Average Calculation Enable */
+// XRX200_BM_QUEUE_GCTRL_DPROB, /* Drop Probability Profile */
+// XRX200_BM_WRED_RTH_0, /* WRED Red Threshold Register0 */
+// XRX200_BM_WRED_RTH_0_MINTH, /* Minimum Threshold */
+// XRX200_BM_WRED_RTH_1, /* WRED Red Threshold Register1 */
+// XRX200_BM_WRED_RTH_1_MAXTH, /* Maximum Threshold */
+// XRX200_BM_WRED_YTH_0, /* WRED Yellow ThresholdRegister 0 */
+// XRX200_BM_WRED_YTH_0_MINTH, /* Minimum Threshold */
+// XRX200_BM_WRED_YTH_1, /* WRED Yellow ThresholdRegister 1 */
+// XRX200_BM_WRED_YTH_1_MAXTH, /* Maximum Threshold */
+// XRX200_BM_WRED_GTH_0, /* WRED Green ThresholdRegister 0 */
+// XRX200_BM_WRED_GTH_0_MINTH, /* Minimum Threshold */
+// XRX200_BM_WRED_GTH_1, /* WRED Green ThresholdRegister 1 */
+// XRX200_BM_WRED_GTH_1_MAXTH, /* Maximum Threshold */
+// XRX200_BM_DROP_GTH_0_THR, /* Drop Threshold ConfigurationRegister 0 */
+// XRX200_BM_DROP_GTH_0_THR_FQ, /* Threshold for frames marked red */
+// XRX200_BM_DROP_GTH_1_THY, /* Drop Threshold ConfigurationRegister 1 */
+// XRX200_BM_DROP_GTH_1_THY_FQ, /* Threshold for frames marked yellow */
+// XRX200_BM_DROP_GTH_2_THG, /* Drop Threshold ConfigurationRegister 2 */
+// XRX200_BM_DROP_GTH_2_THG_FQ, /* Threshold for frames marked green */
+// XRX200_BM_IER, /* Buffer Manager Global InterruptEnable Register */
+// XRX200_BM_IER_CNT4, /* Counter Group 4 (RMON-CLASSIFICATION) Interrupt Enable */
+// XRX200_BM_IER_CNT3, /* Counter Group 3 (RMON-PQM) Interrupt Enable */
+// XRX200_BM_IER_CNT2, /* Counter Group 2 (RMON-SCHEDULER) Interrupt Enable */
+// XRX200_BM_IER_CNT1, /* Counter Group 1 (RMON-QFETCH) Interrupt Enable */
+// XRX200_BM_IER_CNT0, /* Counter Group 0 (RMON-QSTOR) Interrupt Enable */
+// XRX200_BM_IER_DEQ, /* PQM dequeue Interrupt Enable */
+// XRX200_BM_IER_ENQ, /* PQM Enqueue Interrupt Enable */
+// XRX200_BM_IER_FSQM, /* Buffer Empty Interrupt Enable */
+// XRX200_BM_ISR, /* Buffer Manager Global InterruptStatus Register */
+// XRX200_BM_ISR_CNT4, /* Counter Group 4 Interrupt */
+// XRX200_BM_ISR_CNT3, /* Counter Group 3 Interrupt */
+// XRX200_BM_ISR_CNT2, /* Counter Group 2 Interrupt */
+// XRX200_BM_ISR_CNT1, /* Counter Group 1 Interrupt */
+// XRX200_BM_ISR_CNT0, /* Counter Group 0 Interrupt */
+// XRX200_BM_ISR_DEQ, /* PQM dequeue Interrupt Enable */
+// XRX200_BM_ISR_ENQ, /* PQM Enqueue Interrupt */
+// XRX200_BM_ISR_FSQM, /* Buffer Empty Interrupt */
+// XRX200_BM_CISEL, /* Buffer Manager RMON CounterInterrupt Select Register */
+// XRX200_BM_CISEL_PORT, /* Port Number */
+// XRX200_BM_DEBUG_CTRL_DBG, /* Debug Control Register */
+// XRX200_BM_DEBUG_CTRL_DBG_SEL, /* Select Signal for Debug Multiplexer */
+// XRX200_BM_DEBUG_VAL_DBG, /* Debug Value Register */
+// XRX200_BM_DEBUG_VAL_DBG_DAT, /* Debug Data Value */
+// XRX200_BM_PCFG, /* Buffer Manager PortConfiguration Register */
+// XRX200_BM_PCFG_CNTEN, /* RMON Counter Enable */
+// XRX200_BM_RMON_CTRL_RAM1, /* Buffer ManagerRMON Control Register */
+// XRX200_BM_RMON_CTRL_RAM2_RES, /* Software Reset for RMON RAM2 */
+// XRX200_BM_RMON_CTRL_RAM1_RES, /* Software Reset for RMON RAM1 */
+// XRX200_PQM_DP, /* Packet Queue ManagerDrop Probability Register */
+// XRX200_PQM_DP_DPROB, /* Drop Probability Profile */
+// XRX200_PQM_RS, /* Packet Queue ManagerRate Shaper Assignment Register */
+// XRX200_PQM_RS_EN2, /* Rate Shaper 2 Enable */
+// XRX200_PQM_RS_RS2, /* Rate Shaper 2 */
+// XRX200_PQM_RS_EN1, /* Rate Shaper 1 Enable */
+// XRX200_PQM_RS_RS1, /* Rate Shaper 1 */
+// XRX200_RS_CTRL, /* Rate Shaper ControlRegister */
+// XRX200_RS_CTRL_RSEN, /* Rate Shaper Enable */
+// XRX200_RS_CBS, /* Rate Shaper CommittedBurst Size Register */
+// XRX200_RS_CBS_CBS, /* Committed Burst Size */
+// XRX200_RS_IBS, /* Rate Shaper InstantaneousBurst Size Register */
+// XRX200_RS_IBS_IBS, /* Instantaneous Burst Size */
+// XRX200_RS_CIR_EXP, /* Rate Shaper RateExponent Register */
+// XRX200_RS_CIR_EXP_EXP, /* Exponent */
+// XRX200_RS_CIR_MANT, /* Rate Shaper RateMantissa Register */
+// XRX200_RS_CIR_MANT_MANT, /* Mantissa */
+ XRX200_PCE_TBL_KEY_7, /* Table Key Data 7 */
+// XRX200_PCE_TBL_KEY_7_KEY7, /* Key Value[15:0] */
+ XRX200_PCE_TBL_KEY_6, /* Table Key Data 6 */
+// XRX200_PCE_TBL_KEY_6_KEY6, /* Key Value[15:0] */
+ XRX200_PCE_TBL_KEY_5, /* Table Key Data 5 */
+// XRX200_PCE_TBL_KEY_5_KEY5, /* Key Value[15:0] */
+ XRX200_PCE_TBL_KEY_4, /* Table Key Data 4 */
+// XRX200_PCE_TBL_KEY_4_KEY4, /* Key Value[15:0] */
+ XRX200_PCE_TBL_KEY_3, /* Table Key Data 3 */
+// XRX200_PCE_TBL_KEY_3_KEY3, /* Key Value[15:0] */
+ XRX200_PCE_TBL_KEY_2, /* Table Key Data 2 */
+// XRX200_PCE_TBL_KEY_2_KEY2, /* Key Value[15:0] */
+ XRX200_PCE_TBL_KEY_1, /* Table Key Data 1 */
+// XRX200_PCE_TBL_KEY_1_KEY1, /* Key Value[31:16] */
+ XRX200_PCE_TBL_KEY_0, /* Table Key Data 0 */
+// XRX200_PCE_TBL_KEY_0_KEY0, /* Key Value[15:0] */
+ XRX200_PCE_TBL_MASK_0, /* Table Mask Write Register0 */
+// XRX200_PCE_TBL_MASK_0_MASK0, /* Mask Pattern [15:0] */
+ XRX200_PCE_TBL_VAL_4, /* Table Value Register4 */
+// XRX200_PCE_TBL_VAL_4_VAL4, /* Data value [15:0] */
+ XRX200_PCE_TBL_VAL_3, /* Table Value Register3 */
+// XRX200_PCE_TBL_VAL_3_VAL3, /* Data value [15:0] */
+ XRX200_PCE_TBL_VAL_2, /* Table Value Register2 */
+// XRX200_PCE_TBL_VAL_2_VAL2, /* Data value [15:0] */
+ XRX200_PCE_TBL_VAL_1, /* Table Value Register1 */
+// XRX200_PCE_TBL_VAL_1_VAL1, /* Data value [15:0] */
+ XRX200_PCE_TBL_VAL_0, /* Table Value Register0 */
+// XRX200_PCE_TBL_VAL_0_VAL0, /* Data value [15:0] */
+// XRX200_PCE_TBL_ADDR, /* Table Entry AddressRegister */
+ XRX200_PCE_TBL_ADDR_ADDR, /* Table Address */
+// XRX200_PCE_TBL_CTRL, /* Table Access ControlRegister */
+ XRX200_PCE_TBL_CTRL_BAS, /* Access Busy/Access Start */
+ XRX200_PCE_TBL_CTRL_TYPE, /* Lookup Entry Type */
+ XRX200_PCE_TBL_CTRL_VLD, /* Lookup Entry Valid */
+ XRX200_PCE_TBL_CTRL_GMAP, /* Group Map */
+ XRX200_PCE_TBL_CTRL_OPMOD, /* Lookup Table Access Operation Mode */
+ XRX200_PCE_TBL_CTRL_ADDR, /* Lookup Table Address */
+// XRX200_PCE_TBL_STAT, /* Table General StatusRegister */
+// XRX200_PCE_TBL_STAT_TBUSY, /* Table Access Busy */
+// XRX200_PCE_TBL_STAT_TEMPT, /* Table Empty */
+// XRX200_PCE_TBL_STAT_TFUL, /* Table Full */
+// XRX200_PCE_AGE_0, /* Aging Counter ConfigurationRegister 0 */
+// XRX200_PCE_AGE_0_EXP, /* Aging Counter Exponent Value */
+// XRX200_PCE_AGE_1, /* Aging Counter ConfigurationRegister 1 */
+// XRX200_PCE_AGE_1_MANT, /* Aging Counter Mantissa Value */
+// XRX200_PCE_PMAP_1, /* Port Map Register 1 */
+// XRX200_PCE_PMAP_1_MPMAP, /* Monitoring Port Map */
+// XRX200_PCE_PMAP_2, /* Port Map Register 2 */
+// XRX200_PCE_PMAP_2_DMCPMAP, /* Default Multicast Port Map */
+// XRX200_PCE_PMAP_3, /* Port Map Register 3 */
+// XRX200_PCE_PMAP_3_UUCMAP, /* Default Unknown Unicast Port Map */
+// XRX200_PCE_GCTRL_0, /* PCE Global Control Register0 */
+// XRX200_PCE_GCTRL_0_IGMP, /* IGMP Mode Selection */
+ XRX200_PCE_GCTRL_0_VLAN, /* VLAN-aware Switching */
+// XRX200_PCE_GCTRL_0_NOPM, /* No Port Map Forwarding */
+// XRX200_PCE_GCTRL_0_SCONUC, /* Unknown Unicast Storm Control */
+// XRX200_PCE_GCTRL_0_SCONMC, /* Multicast Storm Control */
+// XRX200_PCE_GCTRL_0_SCONBC, /* Broadcast Storm Control */
+// XRX200_PCE_GCTRL_0_SCONMOD, /* Storm Control Mode */
+// XRX200_PCE_GCTRL_0_SCONMET, /* Storm Control Metering Instance */
+// XRX200_PCE_GCTRL_0_MC_VALID, /* Access Request */
+// XRX200_PCE_GCTRL_0_PLCKMOD, /* Port Lock Mode */
+// XRX200_PCE_GCTRL_0_PLIMMOD, /* MAC Address Learning Limitation Mode */
+// XRX200_PCE_GCTRL_0_MTFL, /* MAC Table Flushing */
+// XRX200_PCE_GCTRL_1, /* PCE Global Control Register1 */
+// XRX200_PCE_GCTRL_1_PCE_DIS, /* PCE Disable after currently processed packet */
+// XRX200_PCE_GCTRL_1_LRNMOD, /* MAC Address Learning Mode */
+// XRX200_PCE_TCM_GLOB_CTRL, /* Three-color MarkerGlobal Control Register */
+// XRX200_PCE_TCM_GLOB_CTRL_DPRED, /* Re-marking Drop Precedence Red Encoding */
+// XRX200_PCE_TCM_GLOB_CTRL_DPYEL, /* Re-marking Drop Precedence Yellow Encoding */
+// XRX200_PCE_TCM_GLOB_CTRL_DPGRN, /* Re-marking Drop Precedence Green Encoding */
+// XRX200_PCE_IGMP_CTRL, /* IGMP Control Register */
+// XRX200_PCE_IGMP_CTRL_FAGEEN, /* Force Aging of Table Entries Enable */
+// XRX200_PCE_IGMP_CTRL_FLEAVE, /* Fast Leave Enable */
+// XRX200_PCE_IGMP_CTRL_DMRTEN, /* Default Maximum Response Time Enable */
+// XRX200_PCE_IGMP_CTRL_JASUP, /* Join Aggregation Suppression Enable */
+// XRX200_PCE_IGMP_CTRL_REPSUP, /* Report Suppression Enable */
+// XRX200_PCE_IGMP_CTRL_SRPEN, /* Snooping of Router Port Enable */
+// XRX200_PCE_IGMP_CTRL_ROB, /* Robustness Variable */
+// XRX200_PCE_IGMP_CTRL_DMRT, /* IGMP Default Maximum Response Time */
+// XRX200_PCE_IGMP_DRPM, /* IGMP Default RouterPort Map Register */
+// XRX200_PCE_IGMP_DRPM_DRPM, /* IGMP Default Router Port Map */
+// XRX200_PCE_IGMP_AGE_0, /* IGMP Aging Register0 */
+// XRX200_PCE_IGMP_AGE_0_MANT, /* IGMP Group Aging Time Mantissa */
+// XRX200_PCE_IGMP_AGE_0_EXP, /* IGMP Group Aging Time Exponent */
+// XRX200_PCE_IGMP_AGE_1, /* IGMP Aging Register1 */
+// XRX200_PCE_IGMP_AGE_1_MANT, /* IGMP Router Port Aging Time Mantissa */
+// XRX200_PCE_IGMP_STAT, /* IGMP Status Register */
+// XRX200_PCE_IGMP_STAT_IGPM, /* IGMP Port Map */
+// XRX200_WOL_GLB_CTRL, /* Wake-on-LAN ControlRegister */
+// XRX200_WOL_GLB_CTRL_PASSEN, /* WoL Password Enable */
+// XRX200_WOL_DA_0, /* Wake-on-LAN DestinationAddress Register 0 */
+// XRX200_WOL_DA_0_DA0, /* WoL Destination Address [15:0] */
+// XRX200_WOL_DA_1, /* Wake-on-LAN DestinationAddress Register 1 */
+// XRX200_WOL_DA_1_DA1, /* WoL Destination Address [31:16] */
+// XRX200_WOL_DA_2, /* Wake-on-LAN DestinationAddress Register 2 */
+// XRX200_WOL_DA_2_DA2, /* WoL Destination Address [47:32] */
+// XRX200_WOL_PW_0, /* Wake-on-LAN Password Register0 */
+// XRX200_WOL_PW_0_PW0, /* WoL Password [15:0] */
+// XRX200_WOL_PW_1, /* Wake-on-LAN Password Register1 */
+// XRX200_WOL_PW_1_PW1, /* WoL Password [31:16] */
+// XRX200_WOL_PW_2, /* Wake-on-LAN Password Register2 */
+// XRX200_WOL_PW_2_PW2, /* WoL Password [47:32] */
+// XRX200_PCE_IER_0_PINT, /* Parser and ClassificationEngine Global Interrupt Enable Register 0 */
+// XRX200_PCE_IER_0_PINT_15, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_14, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_13, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_12, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_11, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_10, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_9, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_8, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_7, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_6, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_5, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_4, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_3, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_2, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_1, /* Port Interrupt Enable */
+// XRX200_PCE_IER_0_PINT_0, /* Port Interrupt Enable */
+// XRX200_PCE_IER_1, /* Parser and ClassificationEngine Global Interrupt Enable Register 1 */
+// XRX200_PCE_IER_1_FLOWINT, /* Traffic Flow Table Interrupt Rule matched Interrupt Enable */
+// XRX200_PCE_IER_1_CPH2, /* Classification Phase 2 Ready Interrupt Enable */
+// XRX200_PCE_IER_1_CPH1, /* Classification Phase 1 Ready Interrupt Enable */
+// XRX200_PCE_IER_1_CPH0, /* Classification Phase 0 Ready Interrupt Enable */
+// XRX200_PCE_IER_1_PRDY, /* Parser Ready Interrupt Enable */
+// XRX200_PCE_IER_1_IGTF, /* IGMP Table Full Interrupt Enable */
+// XRX200_PCE_IER_1_MTF, /* MAC Table Full Interrupt Enable */
+// XRX200_PCE_ISR_0_PINT, /* Parser and ClassificationEngine Global Interrupt Status Register 0 */
+// XRX200_PCE_ISR_0_PINT_15, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_14, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_13, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_12, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_11, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_10, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_9, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_8, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_7, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_6, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_5, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_4, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_3, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_2, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_1, /* Port Interrupt */
+// XRX200_PCE_ISR_0_PINT_0, /* Port Interrupt */
+// XRX200_PCE_ISR_1, /* Parser and ClassificationEngine Global Interrupt Status Register 1 */
+// XRX200_PCE_ISR_1_FLOWINT, /* Traffic Flow Table Interrupt Rule matched */
+// XRX200_PCE_ISR_1_CPH2, /* Classification Phase 2 Ready Interrupt */
+// XRX200_PCE_ISR_1_CPH1, /* Classification Phase 1 Ready Interrupt */
+// XRX200_PCE_ISR_1_CPH0, /* Classification Phase 0 Ready Interrupt */
+// XRX200_PCE_ISR_1_PRDY, /* Parser Ready Interrupt */
+// XRX200_PCE_ISR_1_IGTF, /* IGMP Table Full Interrupt */
+// XRX200_PCE_ISR_1_MTF, /* MAC Table Full Interrupt */
+// XRX200_PARSER_STAT_FIFO, /* Parser Status Register */
+// XRX200_PARSER_STAT_FSM_DAT_CNT, /* Parser FSM Data Counter */
+// XRX200_PARSER_STAT_FSM_STATE, /* Parser FSM State */
+// XRX200_PARSER_STAT_PKT_ERR, /* Packet error detected */
+// XRX200_PARSER_STAT_FSM_FIN, /* Parser FSM finished */
+// XRX200_PARSER_STAT_FSM_START, /* Parser FSM start */
+// XRX200_PARSER_STAT_FIFO_RDY, /* Parser FIFO ready for read. */
+// XRX200_PARSER_STAT_FIFO_FULL, /* Parser */
+// XRX200_PCE_PCTRL_0, /* PCE Port ControlRegister 0 */
+// XRX200_PCE_PCTRL_0_MCST, /* Multicast Forwarding Mode Selection */
+// XRX200_PCE_PCTRL_0_EGSTEN, /* Table-based Egress Special Tag Enable */
+// XRX200_PCE_PCTRL_0_IGSTEN, /* Ingress Special Tag Enable */
+// XRX200_PCE_PCTRL_0_PCPEN, /* PCP Remarking Mode */
+// XRX200_PCE_PCTRL_0_CLPEN, /* Class Remarking Mode */
+// XRX200_PCE_PCTRL_0_DPEN, /* Drop Precedence Remarking Mode */
+// XRX200_PCE_PCTRL_0_CMOD, /* Three-color Marker Color Mode */
+// XRX200_PCE_PCTRL_0_VREP, /* VLAN Replacement Mode */
+ XRX200_PCE_PCTRL_0_TVM, /* Transparent VLAN Mode */
+// XRX200_PCE_PCTRL_0_PLOCK, /* Port Locking Enable */
+// XRX200_PCE_PCTRL_0_AGEDIS, /* Aging Disable */
+// XRX200_PCE_PCTRL_0_PSTATE, /* Port State */
+// XRX200_PCE_PCTRL_1, /* PCE Port ControlRegister 1 */
+// XRX200_PCE_PCTRL_1_LRNLIM, /* MAC Address Learning Limit */
+// XRX200_PCE_PCTRL_2, /* PCE Port ControlRegister 2 */
+// XRX200_PCE_PCTRL_2_DSCPMOD, /* DSCP Mode Selection */
+// XRX200_PCE_PCTRL_2_DSCP, /* Enable DSCP to select the Class of Service */
+// XRX200_PCE_PCTRL_2_PCP, /* Enable VLAN PCP to select the Class of Service */
+// XRX200_PCE_PCTRL_2_PCLASS, /* Port-based Traffic Class */
+// XRX200_PCE_PCTRL_3_VIO, /* PCE Port ControlRegister 3 */
+// XRX200_PCE_PCTRL_3_EDIR, /* Egress Redirection Mode */
+// XRX200_PCE_PCTRL_3_RXDMIR, /* Receive Mirroring Enable for dropped frames */
+// XRX200_PCE_PCTRL_3_RXVMIR, /* Receive Mirroring Enable for valid frames */
+// XRX200_PCE_PCTRL_3_TXMIR, /* Transmit Mirroring Enable */
+// XRX200_PCE_PCTRL_3_VIO_7, /* Violation Type 7 Mirroring Enable */
+// XRX200_PCE_PCTRL_3_VIO_6, /* Violation Type 6 Mirroring Enable */
+// XRX200_PCE_PCTRL_3_VIO_5, /* Violation Type 5 Mirroring Enable */
+// XRX200_PCE_PCTRL_3_VIO_4, /* Violation Type 4 Mirroring Enable */
+// XRX200_PCE_PCTRL_3_VIO_3, /* Violation Type 3 Mirroring Enable */
+// XRX200_PCE_PCTRL_3_VIO_2, /* Violation Type 2 Mirroring Enable */
+// XRX200_PCE_PCTRL_3_VIO_1, /* Violation Type 1 Mirroring Enable */
+// XRX200_PCE_PCTRL_3_VIO_0, /* Violation Type 0 Mirroring Enable */
+// XRX200_WOL_CTRL, /* Wake-on-LAN ControlRegister */
+// XRX200_WOL_CTRL_PORT, /* WoL Enable */
+// XRX200_PCE_VCTRL, /* PCE VLAN ControlRegister */
+ XRX200_PCE_VCTRL_VSR, /* VLAN Security Rule */
+ XRX200_PCE_VCTRL_VEMR, /* VLAN Egress Member Violation Rule */
+ XRX200_PCE_VCTRL_VIMR, /* VLAN Ingress Member Violation Rule */
+ XRX200_PCE_VCTRL_VINR, /* VLAN Ingress Tag Rule */
+ XRX200_PCE_VCTRL_UVR, /* Unknown VLAN Rule */
+// XRX200_PCE_DEFPVID, /* PCE Default PortVID Register */
+ XRX200_PCE_DEFPVID_PVID, /* Default Port VID Index */
+// XRX200_PCE_PSTAT, /* PCE Port StatusRegister */
+// XRX200_PCE_PSTAT_LRNCNT, /* Learning Count */
+// XRX200_PCE_PIER, /* Parser and ClassificationEngine Port Interrupt Enable Register */
+// XRX200_PCE_PIER_CLDRP, /* Classification Drop Interrupt Enable */
+// XRX200_PCE_PIER_PTDRP, /* Port Drop Interrupt Enable */
+// XRX200_PCE_PIER_VLAN, /* VLAN Violation Interrupt Enable */
+// XRX200_PCE_PIER_WOL, /* Wake-on-LAN Interrupt Enable */
+// XRX200_PCE_PIER_LOCK, /* Port Limit Alert Interrupt Enable */
+// XRX200_PCE_PIER_LIM, /* Port Lock Alert Interrupt Enable */
+// XRX200_PCE_PISR, /* Parser and ClassificationEngine Port Interrupt Status Register */
+// XRX200_PCE_PISR_CLDRP, /* Classification Drop Interrupt */
+// XRX200_PCE_PISR_PTDRP, /* Port Drop Interrupt */
+// XRX200_PCE_PISR_VLAN, /* VLAN Violation Interrupt */
+// XRX200_PCE_PISR_WOL, /* Wake-on-LAN Interrupt */
+// XRX200_PCE_PISR_LOCK, /* Port Lock Alert Interrupt */
+// XRX200_PCE_PISR_LIMIT, /* Port Limitation Alert Interrupt */
+// XRX200_PCE_TCM_CTRL, /* Three-colorMarker Control Register */
+// XRX200_PCE_TCM_CTRL_TCMEN, /* Three-color Marker metering instance enable */
+// XRX200_PCE_TCM_STAT, /* Three-colorMarker Status Register */
+// XRX200_PCE_TCM_STAT_AL1, /* Three-color Marker Alert 1 Status */
+// XRX200_PCE_TCM_STAT_AL0, /* Three-color Marker Alert 0 Status */
+// XRX200_PCE_TCM_CBS, /* Three-color MarkerCommitted Burst Size Register */
+// XRX200_PCE_TCM_CBS_CBS, /* Committed Burst Size */
+// XRX200_PCE_TCM_EBS, /* Three-color MarkerExcess Burst Size Register */
+// XRX200_PCE_TCM_EBS_EBS, /* Excess Burst Size */
+// XRX200_PCE_TCM_IBS, /* Three-color MarkerInstantaneous Burst Size Register */
+// XRX200_PCE_TCM_IBS_IBS, /* Instantaneous Burst Size */
+// XRX200_PCE_TCM_CIR_MANT, /* Three-colorMarker Constant Information Rate Mantissa Register */
+// XRX200_PCE_TCM_CIR_MANT_MANT, /* Rate Counter Mantissa */
+// XRX200_PCE_TCM_CIR_EXP, /* Three-colorMarker Constant Information Rate Exponent Register */
+// XRX200_PCE_TCM_CIR_EXP_EXP, /* Rate Counter Exponent */
+// XRX200_MAC_TEST, /* MAC Test Register */
+// XRX200_MAC_TEST_JTP, /* Jitter Test Pattern */
+// XRX200_MAC_PFAD_CFG, /* MAC Pause FrameSource Address Configuration Register */
+// XRX200_MAC_PFAD_CFG_SAMOD, /* Source Address Mode */
+// XRX200_MAC_PFSA_0, /* Pause Frame SourceAddress Part 0 */
+// XRX200_MAC_PFSA_0_PFAD, /* Pause Frame Source Address Part 0 */
+// XRX200_MAC_PFSA_1, /* Pause Frame SourceAddress Part 1 */
+// XRX200_MAC_PFSA_1_PFAD, /* Pause Frame Source Address Part 1 */
+// XRX200_MAC_PFSA_2, /* Pause Frame SourceAddress Part 2 */
+// XRX200_MAC_PFSA_2_PFAD, /* Pause Frame Source Address Part 2 */
+// XRX200_MAC_FLEN, /* MAC Frame Length Register */
+// XRX200_MAC_FLEN_LEN, /* Maximum Frame Length */
+// XRX200_MAC_VLAN_ETYPE_0, /* MAC VLAN EthertypeRegister 0 */
+// XRX200_MAC_VLAN_ETYPE_0_OUTER, /* Ethertype */
+// XRX200_MAC_VLAN_ETYPE_1, /* MAC VLAN EthertypeRegister 1 */
+// XRX200_MAC_VLAN_ETYPE_1_INNER, /* Ethertype */
+// XRX200_MAC_IER, /* MAC Interrupt EnableRegister */
+// XRX200_MAC_IER_MACIEN, /* MAC Interrupt Enable */
+// XRX200_MAC_ISR, /* MAC Interrupt StatusRegister */
+// XRX200_MAC_ISR_MACINT, /* MAC Interrupt */
+// XRX200_MAC_PSTAT, /* MAC Port Status Register */
+// XRX200_MAC_PSTAT_PACT, /* PHY Active Status */
+ XRX200_MAC_PSTAT_GBIT, /* Gigabit Speed Status */
+ XRX200_MAC_PSTAT_MBIT, /* Megabit Speed Status */
+ XRX200_MAC_PSTAT_FDUP, /* Full Duplex Status */
+// XRX200_MAC_PSTAT_RXPAU, /* Receive Pause Status */
+// XRX200_MAC_PSTAT_TXPAU, /* Transmit Pause Status */
+// XRX200_MAC_PSTAT_RXPAUEN, /* Receive Pause Enable Status */
+// XRX200_MAC_PSTAT_TXPAUEN, /* Transmit Pause Enable Status */
+ XRX200_MAC_PSTAT_LSTAT, /* Link Status */
+// XRX200_MAC_PSTAT_CRS, /* Carrier Sense Status */
+// XRX200_MAC_PSTAT_TXLPI, /* Transmit Low-power Idle Status */
+// XRX200_MAC_PSTAT_RXLPI, /* Receive Low-power Idle Status */
+// XRX200_MAC_PISR, /* MAC Interrupt Status Register */
+// XRX200_MAC_PISR_PACT, /* PHY Active Status */
+// XRX200_MAC_PISR_SPEED, /* Megabit Speed Status */
+// XRX200_MAC_PISR_FDUP, /* Full Duplex Status */
+// XRX200_MAC_PISR_RXPAUEN, /* Receive Pause Enable Status */
+// XRX200_MAC_PISR_TXPAUEN, /* Transmit Pause Enable Status */
+// XRX200_MAC_PISR_LPIOFF, /* Receive Low-power Idle Mode is left */
+// XRX200_MAC_PISR_LPION, /* Receive Low-power Idle Mode is entered */
+// XRX200_MAC_PISR_JAM, /* Jam Status Detected */
+// XRX200_MAC_PISR_TOOSHORT, /* Too Short Frame Error Detected */
+// XRX200_MAC_PISR_TOOLONG, /* Too Long Frame Error Detected */
+// XRX200_MAC_PISR_LENERR, /* Length Mismatch Error Detected */
+// XRX200_MAC_PISR_FCSERR, /* Frame Checksum Error Detected */
+// XRX200_MAC_PISR_TXPAUSE, /* Pause Frame Transmitted */
+// XRX200_MAC_PISR_RXPAUSE, /* Pause Frame Received */
+// XRX200_MAC_PIER, /* MAC Interrupt Enable Register */
+// XRX200_MAC_PIER_PACT, /* PHY Active Status */
+// XRX200_MAC_PIER_SPEED, /* Megabit Speed Status */
+// XRX200_MAC_PIER_FDUP, /* Full Duplex Status */
+// XRX200_MAC_PIER_RXPAUEN, /* Receive Pause Enable Status */
+// XRX200_MAC_PIER_TXPAUEN, /* Transmit Pause Enable Status */
+// XRX200_MAC_PIER_LPIOFF, /* Low-power Idle Off Interrupt Mask */
+// XRX200_MAC_PIER_LPION, /* Low-power Idle On Interrupt Mask */
+// XRX200_MAC_PIER_JAM, /* Jam Status Interrupt Mask */
+// XRX200_MAC_PIER_TOOSHORT, /* Too Short Frame Error Interrupt Mask */
+// XRX200_MAC_PIER_TOOLONG, /* Too Long Frame Error Interrupt Mask */
+// XRX200_MAC_PIER_LENERR, /* Length Mismatch Error Interrupt Mask */
+// XRX200_MAC_PIER_FCSERR, /* Frame Checksum Error Interrupt Mask */
+// XRX200_MAC_PIER_TXPAUSE, /* Transmit Pause Frame Interrupt Mask */
+// XRX200_MAC_PIER_RXPAUSE, /* Receive Pause Frame Interrupt Mask */
+// XRX200_MAC_CTRL_0, /* MAC Control Register0 */
+// XRX200_MAC_CTRL_0_LCOL, /* Late Collision Control */
+// XRX200_MAC_CTRL_0_BM, /* Burst Mode Control */
+// XRX200_MAC_CTRL_0_APADEN, /* Automatic VLAN Padding Enable */
+// XRX200_MAC_CTRL_0_VPAD2EN, /* Stacked VLAN Padding Enable */
+// XRX200_MAC_CTRL_0_VPADEN, /* VLAN Padding Enable */
+// XRX200_MAC_CTRL_0_PADEN, /* Padding Enable */
+// XRX200_MAC_CTRL_0_FCS, /* Transmit FCS Control */
+ XRX200_MAC_CTRL_0_FCON, /* Flow Control Mode */
+// XRX200_MAC_CTRL_0_FDUP, /* Full Duplex Control */
+// XRX200_MAC_CTRL_0_GMII, /* GMII/MII interface mode selection */
+// XRX200_MAC_CTRL_1, /* MAC Control Register1 */
+// XRX200_MAC_CTRL_1_SHORTPRE, /* Short Preamble Control */
+// XRX200_MAC_CTRL_1_IPG, /* Minimum Inter Packet Gap Size */
+// XRX200_MAC_CTRL_2, /* MAC Control Register2 */
+// XRX200_MAC_CTRL_2_MLEN, /* Maximum Untagged Frame Length */
+// XRX200_MAC_CTRL_2_LCHKL, /* Frame Length Check Long Enable */
+// XRX200_MAC_CTRL_2_LCHKS, /* Frame Length Check Short Enable */
+// XRX200_MAC_CTRL_3, /* MAC Control Register3 */
+// XRX200_MAC_CTRL_3_RCNT, /* Retry Count */
+// XRX200_MAC_CTRL_4, /* MAC Control Register4 */
+// XRX200_MAC_CTRL_4_LPIEN, /* LPI Mode Enable */
+// XRX200_MAC_CTRL_4_WAIT, /* LPI Wait Time */
+// XRX200_MAC_CTRL_5_PJPS, /* MAC Control Register5 */
+// XRX200_MAC_CTRL_5_PJPS_NOBP, /* Prolonged Jam pattern size during no-backpressure state */
+// XRX200_MAC_CTRL_5_PJPS_BP, /* Prolonged Jam pattern size during backpressure state */
+// XRX200_MAC_CTRL_6_XBUF, /* Transmit and ReceiveBuffer Control Register */
+// XRX200_MAC_CTRL_6_RBUF_DLY_WP, /* Delay */
+// XRX200_MAC_CTRL_6_RBUF_INIT, /* Receive Buffer Initialization */
+// XRX200_MAC_CTRL_6_RBUF_BYPASS, /* Bypass the Receive Buffer */
+// XRX200_MAC_CTRL_6_XBUF_DLY_WP, /* Delay */
+// XRX200_MAC_CTRL_6_XBUF_INIT, /* Initialize the Transmit Buffer */
+// XRX200_MAC_CTRL_6_XBUF_BYPASS, /* Bypass the Transmit Buffer */
+// XRX200_MAC_BUFST_XBUF, /* MAC Receive and TransmitBuffer Status Register */
+// XRX200_MAC_BUFST_RBUF_UFL, /* Receive Buffer Underflow Indicator */
+// XRX200_MAC_BUFST_RBUF_OFL, /* Receive Buffer Overflow Indicator */
+// XRX200_MAC_BUFST_XBUF_UFL, /* Transmit Buffer Underflow Indicator */
+// XRX200_MAC_BUFST_XBUF_OFL, /* Transmit Buffer Overflow Indicator */
+// XRX200_MAC_TESTEN, /* MAC Test Enable Register */
+// XRX200_MAC_TESTEN_JTEN, /* Jitter Test Enable */
+// XRX200_MAC_TESTEN_TXER, /* Transmit Error Insertion */
+// XRX200_MAC_TESTEN_LOOP, /* MAC Loopback Enable */
+// XRX200_FDMA_CTRL, /* Ethernet Switch FetchDMA Control Register */
+// XRX200_FDMA_CTRL_LPI_THRESHOLD, /* Low Power Idle Threshold */
+// XRX200_FDMA_CTRL_LPI_MODE, /* Low Power Idle Mode */
+// XRX200_FDMA_CTRL_EGSTAG, /* Egress Special Tag Size */
+// XRX200_FDMA_CTRL_IGSTAG, /* Ingress Special Tag Size */
+// XRX200_FDMA_CTRL_EXCOL, /* Excessive Collision Handling */
+// XRX200_FDMA_STETYPE, /* Special Tag EthertypeControl Register */
+// XRX200_FDMA_STETYPE_ETYPE, /* Special Tag Ethertype */
+// XRX200_FDMA_VTETYPE, /* VLAN Tag EthertypeControl Register */
+// XRX200_FDMA_VTETYPE_ETYPE, /* VLAN Tag Ethertype */
+// XRX200_FDMA_STAT_0, /* FDMA Status Register0 */
+// XRX200_FDMA_STAT_0_FSMS, /* FSM states status */
+// XRX200_FDMA_IER, /* Fetch DMA Global InterruptEnable Register */
+// XRX200_FDMA_IER_PCKD, /* Packet Drop Interrupt Enable */
+// XRX200_FDMA_IER_PCKR, /* Packet Ready Interrupt Enable */
+// XRX200_FDMA_IER_PCKT, /* Packet Sent Interrupt Enable */
+// XRX200_FDMA_ISR, /* Fetch DMA Global InterruptStatus Register */
+// XRX200_FDMA_ISR_PCKTD, /* Packet Drop */
+// XRX200_FDMA_ISR_PCKR, /* Packet is Ready for Transmission */
+// XRX200_FDMA_ISR_PCKT, /* Packet Sent Event */
+// XRX200_FDMA_PCTRL, /* Ethernet SwitchFetch DMA Port Control Register */
+// XRX200_FDMA_PCTRL_VLANMOD, /* VLAN Modification Enable */
+// XRX200_FDMA_PCTRL_DSCPRM, /* DSCP Re-marking Enable */
+// XRX200_FDMA_PCTRL_STEN, /* Special Tag Insertion Enable */
+// XRX200_FDMA_PCTRL_EN, /* FDMA Port Enable */
+// XRX200_FDMA_PRIO, /* Ethernet SwitchFetch DMA Port Priority Register */
+// XRX200_FDMA_PRIO_PRIO, /* FDMA PRIO */
+// XRX200_FDMA_PSTAT0, /* Ethernet SwitchFetch DMA Port Status Register 0 */
+// XRX200_FDMA_PSTAT0_PKT_AVAIL, /* Port Egress Packet Available */
+// XRX200_FDMA_PSTAT0_POK, /* Port Status OK */
+// XRX200_FDMA_PSTAT0_PSEG, /* Port Egress Segment Count */
+// XRX200_FDMA_PSTAT1_HDR, /* Ethernet SwitchFetch DMA Port Status Register 1 */
+// XRX200_FDMA_PSTAT1_HDR_PTR, /* Header Pointer */
+// XRX200_FDMA_TSTAMP0, /* Egress TimeStamp Register 0 */
+// XRX200_FDMA_TSTAMP0_TSTL, /* Time Stamp [15:0] */
+// XRX200_FDMA_TSTAMP1, /* Egress TimeStamp Register 1 */
+// XRX200_FDMA_TSTAMP1_TSTH, /* Time Stamp [31:16] */
+// XRX200_SDMA_CTRL, /* Ethernet Switch StoreDMA Control Register */
+// XRX200_SDMA_CTRL_TSTEN, /* Time Stamp Enable */
+// XRX200_SDMA_FCTHR1, /* SDMA Flow Control Threshold1 Register */
+// XRX200_SDMA_FCTHR1_THR1, /* Threshold 1 */
+// XRX200_SDMA_FCTHR2, /* SDMA Flow Control Threshold2 Register */
+// XRX200_SDMA_FCTHR2_THR2, /* Threshold 2 */
+// XRX200_SDMA_FCTHR3, /* SDMA Flow Control Threshold3 Register */
+// XRX200_SDMA_FCTHR3_THR3, /* Threshold 3 */
+// XRX200_SDMA_FCTHR4, /* SDMA Flow Control Threshold4 Register */
+// XRX200_SDMA_FCTHR4_THR4, /* Threshold 4 */
+// XRX200_SDMA_FCTHR5, /* SDMA Flow Control Threshold5 Register */
+// XRX200_SDMA_FCTHR5_THR5, /* Threshold 5 */
+// XRX200_SDMA_FCTHR6, /* SDMA Flow Control Threshold6 Register */
+// XRX200_SDMA_FCTHR6_THR6, /* Threshold 6 */
+// XRX200_SDMA_FCTHR7, /* SDMA Flow Control Threshold7 Register */
+// XRX200_SDMA_FCTHR7_THR7, /* Threshold 7 */
+// XRX200_SDMA_STAT_0, /* SDMA Status Register0 */
+// XRX200_SDMA_STAT_0_BPS_FILL, /* Back Pressure Status */
+// XRX200_SDMA_STAT_0_BPS_PNT, /* Back Pressure Status */
+// XRX200_SDMA_STAT_0_DROP, /* Back Pressure Status */
+// XRX200_SDMA_STAT_1, /* SDMA Status Register1 */
+// XRX200_SDMA_STAT_1_FILL, /* Buffer Filling Level */
+// XRX200_SDMA_STAT_2, /* SDMA Status Register2 */
+// XRX200_SDMA_STAT_2_FSMS, /* FSM states status */
+// XRX200_SDMA_IER, /* SDMA Interrupt Enable Register */
+// XRX200_SDMA_IER_BPEX, /* Buffer Pointers Exceeded */
+// XRX200_SDMA_IER_BFULL, /* Buffer Full */
+// XRX200_SDMA_IER_FERR, /* Frame Error */
+// XRX200_SDMA_IER_FRX, /* Frame Received Successfully */
+// XRX200_SDMA_ISR, /* SDMA Interrupt Status Register */
+// XRX200_SDMA_ISR_BPEX, /* Packet Descriptors Exceeded */
+// XRX200_SDMA_ISR_BFULL, /* Buffer Full */
+// XRX200_SDMA_ISR_FERR, /* Frame Error */
+// XRX200_SDMA_ISR_FRX, /* Frame Received Successfully */
+// XRX200_SDMA_PCTRL, /* Ethernet SwitchStore DMA Port Control Register */
+// XRX200_SDMA_PCTRL_DTHR, /* Drop Threshold Selection */
+// XRX200_SDMA_PCTRL_PTHR, /* Pause Threshold Selection */
+// XRX200_SDMA_PCTRL_PHYEFWD, /* Forward PHY Error Frames */
+// XRX200_SDMA_PCTRL_ALGFWD, /* Forward Alignment Error Frames */
+// XRX200_SDMA_PCTRL_LENFWD, /* Forward Length Errored Frames */
+// XRX200_SDMA_PCTRL_OSFWD, /* Forward Oversized Frames */
+// XRX200_SDMA_PCTRL_USFWD, /* Forward Undersized Frames */
+// XRX200_SDMA_PCTRL_FCSIGN, /* Ignore FCS Errors */
+// XRX200_SDMA_PCTRL_FCSFWD, /* Forward FCS Errored Frames */
+// XRX200_SDMA_PCTRL_PAUFWD, /* Pause Frame Forwarding */
+// XRX200_SDMA_PCTRL_MFCEN, /* Metering Flow Control Enable */
+// XRX200_SDMA_PCTRL_FCEN, /* Flow Control Enable */
+// XRX200_SDMA_PCTRL_PEN, /* Port Enable */
+// XRX200_SDMA_PRIO, /* Ethernet SwitchStore DMA Port Priority Register */
+// XRX200_SDMA_PRIO_PRIO, /* SDMA PRIO */
+// XRX200_SDMA_PSTAT0_HDR, /* Ethernet SwitchStore DMA Port Status Register 0 */
+// XRX200_SDMA_PSTAT0_HDR_PTR, /* Port Ingress Queue Header Pointer */
+// XRX200_SDMA_PSTAT1, /* Ethernet SwitchStore DMA Port Status Register 1 */
+// XRX200_SDMA_PSTAT1_PPKT, /* Port Ingress Packet Count */
+// XRX200_SDMA_TSTAMP0, /* Ingress TimeStamp Register 0 */
+// XRX200_SDMA_TSTAMP0_TSTL, /* Time Stamp [15:0] */
+// XRX200_SDMA_TSTAMP1, /* Ingress TimeStamp Register 1 */
+// XRX200_SDMA_TSTAMP1_TSTH, /* Time Stamp [31:16] */
+};
+
+
+struct xrx200sw_reg {
+ int offset;
+ int shift;
+ int size;
+ int mult;
+} xrx200sw_reg[] = {
+// offeset shift size mult
+// {0x0000, 0, 16, 0x00}, /* XRX200_ETHSW_SWRES Ethernet Switch ResetControl Register */
+// {0x0000, 1, 1, 0x00}, /* XRX200_ETHSW_SWRES_R1 Hardware Reset */
+// {0x0000, 0, 1, 0x00}, /* XRX200_ETHSW_SWRES_R0 Register Configuration */
+// {0x0004, 0, 16, 0x00}, /* XRX200_ETHSW_CLK_MAC_GAT Ethernet Switch Clock ControlRegister */
+// {0x0004, 12, 4, 0x00}, /* XRX200_ETHSW_CLK_EXP_SLEEP Exponent to put system into sleep */
+// {0x0004, 8, 4, 0x00}, /* XRX200_ETHSW_CLK_EXP_WAKE Exponent to wake up system */
+// {0x0004, 7, 1, 0x00}, /* XRX200_ETHSW_CLK_CLK2_EN CLK2 Input for MAC */
+// {0x0004, 6, 1, 0x00}, /* XRX200_ETHSW_CLK_EXT_DIV_EN External Clock Divider Enable */
+// {0x0004, 5, 1, 0x00}, /* XRX200_ETHSW_CLK_RAM_DBG_EN Clock Gating Enable */
+// {0x0004, 4, 1, 0x00}, /* XRX200_ETHSW_CLK_REG_GAT_EN Clock Gating Enable */
+// {0x0004, 3, 1, 0x00}, /* XRX200_ETHSW_CLK_GAT_EN Clock Gating Enable */
+// {0x0004, 2, 1, 0x00}, /* XRX200_ETHSW_CLK_MAC_GAT_EN Clock Gating Enable */
+// {0x0008, 0, 16, 0x00}, /* XRX200_ETHSW_DBG_STEP Ethernet Switch Debug ControlRegister */
+// {0x0008, 12, 4, 0x00}, /* XRX200_ETHSW_DBG_CLK_SEL Trigger Enable */
+// {0x0008, 11, 1, 0x00}, /* XRX200_ETHSW_DBG_MON_EN Monitoring Enable */
+// {0x0008, 9, 2, 0x00}, /* XRX200_ETHSW_DBG_TRIG_EN Trigger Enable */
+// {0x0008, 8, 1, 0x00}, /* XRX200_ETHSW_DBG_MODE Debug Mode */
+// {0x0008, 0, 8, 0x00}, /* XRX200_ETHSW_DBG_STEP_TIME Clock Step Size */
+// {0x000C, 0, 16, 0x00}, /* XRX200_ETHSW_SSB_MODE Ethernet Switch SharedSegment Buffer Mode Register */
+// {0x000C, 2, 4, 0x00}, /* XRX200_ETHSW_SSB_MODE_ADDE Memory Address */
+// {0x000C, 0, 2, 0x00}, /* XRX200_ETHSW_SSB_MODE_MODE Memory Access Mode */
+// {0x0010, 0, 16, 0x00}, /* XRX200_ETHSW_SSB_ADDR Ethernet Switch SharedSegment Buffer Address Register */
+// {0x0010, 0, 16, 0x00}, /* XRX200_ETHSW_SSB_ADDR_ADDE Memory Address */
+// {0x0014, 0, 16, 0x00}, /* XRX200_ETHSW_SSB_DATA Ethernet Switch SharedSegment Buffer Data Register */
+// {0x0014, 0, 16, 0x00}, /* XRX200_ETHSW_SSB_DATA_DATA Data Value */
+// {0x0018, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_0 Ethernet Switch CapabilityRegister 0 */
+// {0x0018, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_0_SPEED Clock frequency */
+// {0x001C, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_1 Ethernet Switch CapabilityRegister 1 */
+// {0x001C, 15, 1, 0x00}, /* XRX200_ETHSW_CAP_1_GMAC MAC operation mode */
+// {0x001C, 8, 7, 0x00}, /* XRX200_ETHSW_CAP_1_QUEUE Number of queues */
+// {0x001C, 4, 4, 0x00}, /* XRX200_ETHSW_CAP_1_VPORTS Number of virtual ports */
+// {0x001C, 0, 4, 0x00}, /* XRX200_ETHSW_CAP_1_PPORTS Number of physical ports */
+// {0x0020, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_2 Ethernet Switch CapabilityRegister 2 */
+// {0x0020, 0, 11, 0x00}, /* XRX200_ETHSW_CAP_2_PACKETS Number of packets */
+// {0x0024, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_3 Ethernet Switch CapabilityRegister 3 */
+// {0x0024, 8, 8, 0x00}, /* XRX200_ETHSW_CAP_3_METERS Number of traffic meters */
+// {0x0024, 0, 8, 0x00}, /* XRX200_ETHSW_CAP_3_SHAPERS Number of traffic shapers */
+// {0x0028, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_4 Ethernet Switch CapabilityRegister 4 */
+// {0x0028, 8, 8, 0x00}, /* XRX200_ETHSW_CAP_4_PPPOE PPPoE table size */
+// {0x0028, 0, 8, 0x00}, /* XRX200_ETHSW_CAP_4_VLAN Active VLAN table size */
+// {0x002C, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_5 Ethernet Switch CapabilityRegister 5 */
+// {0x002C, 8, 8, 0x00}, /* XRX200_ETHSW_CAP_5_IPPLEN IP packet length table size */
+// {0x002C, 0, 8, 0x00}, /* XRX200_ETHSW_CAP_5_PROT Protocol table size */
+// {0x0030, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_6 Ethernet Switch CapabilityRegister 6 */
+// {0x0030, 8, 8, 0x00}, /* XRX200_ETHSW_CAP_6_MACDASA MAC DA/SA table size */
+// {0x0030, 0, 8, 0x00}, /* XRX200_ETHSW_CAP_6_APPL Application table size */
+// {0x0034, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_7 Ethernet Switch CapabilityRegister 7 */
+// {0x0034, 8, 8, 0x00}, /* XRX200_ETHSW_CAP_7_IPDASAM IP DA/SA MSB table size */
+// {0x0034, 0, 8, 0x00}, /* XRX200_ETHSW_CAP_7_IPDASAL IP DA/SA LSB table size */
+// {0x0038, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_8 Ethernet Switch CapabilityRegister 8 */
+// {0x0038, 0, 8, 0x00}, /* XRX200_ETHSW_CAP_8_MCAST Multicast table size */
+// {0x003C, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_9 Ethernet Switch CapabilityRegister 9 */
+// {0x003C, 0, 8, 0x00}, /* XRX200_ETHSW_CAP_9_FLAGG Flow Aggregation table size */
+// {0x0040, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_10 Ethernet Switch CapabilityRegister 10 */
+// {0x0040, 0, 13, 0x00}, /* XRX200_ETHSW_CAP_10_MACBT MAC bridging table size */
+// {0x0044, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_11 Ethernet Switch CapabilityRegister 11 */
+// {0x0044, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_11_BSIZEL Packet buffer size (lower part, in byte) */
+// {0x0048, 0, 16, 0x00}, /* XRX200_ETHSW_CAP_12 Ethernet Switch CapabilityRegister 12 */
+// {0x0048, 0, 3, 0x00}, /* XRX200_ETHSW_CAP_12_BSIZEH Packet buffer size (higher part, in byte) */
+// {0x004C, 0, 16, 0x00}, /* XRX200_ETHSW_VERSION_REV Ethernet Switch VersionRegister */
+// {0x004C, 8, 8, 0x00}, /* XRX200_ETHSW_VERSION_MOD_ID Module Identification */
+// {0x004C, 0, 8, 0x00}, /* XRX200_ETHSW_VERSION_REV_ID Hardware Revision Identification */
+// {0x0050, 0, 16, 0x00}, /* XRX200_ETHSW_IER Interrupt Enable Register */
+// {0x0050, 4, 1, 0x00}, /* XRX200_ETHSW_IER_FDMAIE Fetch DMA Interrupt Enable */
+// {0x0050, 3, 1, 0x00}, /* XRX200_ETHSW_IER_SDMAIE Store DMA Interrupt Enable */
+// {0x0050, 2, 1, 0x00}, /* XRX200_ETHSW_IER_MACIE Ethernet MAC Interrupt Enable */
+// {0x0050, 1, 1, 0x00}, /* XRX200_ETHSW_IER_PCEIE Parser and Classification Engine Interrupt Enable */
+// {0x0050, 0, 1, 0x00}, /* XRX200_ETHSW_IER_BMIE Buffer Manager Interrupt Enable */
+// {0x0054, 0, 16, 0x00}, /* XRX200_ETHSW_ISR Interrupt Status Register */
+// {0x0054, 4, 1, 0x00}, /* XRX200_ETHSW_ISR_FDMAINT Fetch DMA Interrupt */
+// {0x0054, 3, 1, 0x00}, /* XRX200_ETHSW_ISR_SDMAINT Store DMA Interrupt */
+// {0x0054, 2, 1, 0x00}, /* XRX200_ETHSW_ISR_MACINT Ethernet MAC Interrupt */
+// {0x0054, 1, 1, 0x00}, /* XRX200_ETHSW_ISR_PCEINT Parser and Classification Engine Interrupt */
+// {0x0054, 0, 1, 0x00}, /* XRX200_ETHSW_ISR_BMINT Buffer Manager Interrupt */
+// {0x0058, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_0 Ethernet Switch SpareCells 0 */
+// {0x0058, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_0_SPARE SPARE0 */
+// {0x005C, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_1 Ethernet Switch SpareCells 1 */
+// {0x005C, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_1_SPARE SPARE1 */
+// {0x0060, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_2 Ethernet Switch SpareCells 2 */
+// {0x0060, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_2_SPARE SPARE2 */
+// {0x0064, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_3 Ethernet Switch SpareCells 3 */
+// {0x0064, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_3_SPARE SPARE3 */
+// {0x0068, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_4 Ethernet Switch SpareCells 4 */
+// {0x0068, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_4_SPARE SPARE4 */
+// {0x006C, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_5 Ethernet Switch SpareCells 5 */
+// {0x006C, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_5_SPARE SPARE5 */
+// {0x0070, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_6 Ethernet Switch SpareCells 6 */
+// {0x0070, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_6_SPARE SPARE6 */
+// {0x0074, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_7 Ethernet Switch SpareCells 7 */
+// {0x0074, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_7_SPARE SPARE7 */
+// {0x0078, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_8 Ethernet Switch SpareCells 8 */
+// {0x0078, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_8_SPARE SPARE8 */
+// {0x007C, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_9 Ethernet Switch SpareCells 9 */
+// {0x007C, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_9_SPARE SPARE9 */
+// {0x0080, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_10 Ethernet Switch SpareCells 10 */
+// {0x0080, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_10_SPARE SPARE10 */
+// {0x0084, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_11 Ethernet Switch SpareCells 11 */
+// {0x0084, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_11_SPARE SPARE11 */
+// {0x0088, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_12 Ethernet Switch SpareCells 12 */
+// {0x0088, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_12_SPARE SPARE12 */
+// {0x008C, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_13 Ethernet Switch SpareCells 13 */
+// {0x008C, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_13_SPARE SPARE13 */
+// {0x0090, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_14 Ethernet Switch SpareCells 14 */
+// {0x0090, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_14_SPARE SPARE14 */
+// {0x0094, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_15 Ethernet Switch SpareCells 15 */
+// {0x0094, 0, 16, 0x00}, /* XRX200_ETHSW_SPARE_15_SPARE SPARE15 */
+// {0x0100, 0, 16, 0x00}, /* XRX200_BM_RAM_VAL_3 RAM Value Register 3 */
+// {0x0100, 0, 16, 0x00}, /* XRX200_BM_RAM_VAL_3_VAL3 Data value [15:0] */
+// {0x0104, 0, 16, 0x00}, /* XRX200_BM_RAM_VAL_2 RAM Value Register 2 */
+// {0x0104, 0, 16, 0x00}, /* XRX200_BM_RAM_VAL_2_VAL2 Data value [15:0] */
+// {0x0108, 0, 16, 0x00}, /* XRX200_BM_RAM_VAL_1 RAM Value Register 1 */
+// {0x0108, 0, 16, 0x00}, /* XRX200_BM_RAM_VAL_1_VAL1 Data value [15:0] */
+// {0x010C, 0, 16, 0x00}, /* XRX200_BM_RAM_VAL_0 RAM Value Register 0 */
+// {0x010C, 0, 16, 0x00}, /* XRX200_BM_RAM_VAL_0_VAL0 Data value [15:0] */
+// {0x0110, 0, 16, 0x00}, /* XRX200_BM_RAM_ADDR RAM Address Register */
+// {0x0110, 0, 11, 0x00}, /* XRX200_BM_RAM_ADDR_ADDR RAM Address */
+// {0x0114, 0, 16, 0x00}, /* XRX200_BM_RAM_CTRL RAM Access Control Register */
+// {0x0114, 15, 1, 0x00}, /* XRX200_BM_RAM_CTRL_BAS Access Busy/Access Start */
+// {0x0114, 5, 1, 0x00}, /* XRX200_BM_RAM_CTRL_OPMOD Lookup Table Access Operation Mode */
+// {0x0114, 0, 5, 0x00}, /* XRX200_BM_RAM_CTRL_ADDR Address for RAM selection */
+// {0x0118, 0, 16, 0x00}, /* XRX200_BM_FSQM_GCTRL Free Segment Queue ManagerGlobal Control Register */
+// {0x0118, 0, 10, 0x00}, /* XRX200_BM_FSQM_GCTRL_SEGNUM Maximum Segment Number */
+// {0x011C, 0, 16, 0x00}, /* XRX200_BM_CONS_SEG Number of Consumed SegmentsRegister */
+// {0x011C, 0, 10, 0x00}, /* XRX200_BM_CONS_SEG_FSEG Number of Consumed Segments */
+// {0x0120, 0, 16, 0x00}, /* XRX200_BM_CONS_PKT Number of Consumed PacketPointers Register */
+// {0x0120, 0, 11, 0x00}, /* XRX200_BM_CONS_PKT_FQP Number of Consumed Packet Pointers */
+// {0x0124, 0, 16, 0x00}, /* XRX200_BM_GCTRL_F Buffer Manager Global ControlRegister 0 */
+// {0x0124, 13, 1, 0x00}, /* XRX200_BM_GCTRL_BM_STA Buffer Manager Initialization Status Bit */
+// {0x0124, 12, 1, 0x00}, /* XRX200_BM_GCTRL_SAT RMON Counter Update Mode */
+// {0x0124, 11, 1, 0x00}, /* XRX200_BM_GCTRL_FR_RBC Freeze RMON RX Bad Byte 64 Bit Counter */
+// {0x0124, 10, 1, 0x00}, /* XRX200_BM_GCTRL_FR_RGC Freeze RMON RX Good Byte 64 Bit Counter */
+// {0x0124, 9, 1, 0x00}, /* XRX200_BM_GCTRL_FR_TGC Freeze RMON TX Good Byte 64 Bit Counter */
+// {0x0124, 8, 1, 0x00}, /* XRX200_BM_GCTRL_I_FIN RAM initialization finished */
+// {0x0124, 7, 1, 0x00}, /* XRX200_BM_GCTRL_CX_INI PQM Context RAM initialization */
+// {0x0124, 6, 1, 0x00}, /* XRX200_BM_GCTRL_FP_INI FPQM RAM initialization */
+// {0x0124, 5, 1, 0x00}, /* XRX200_BM_GCTRL_FS_INI FSQM RAM initialization */
+// {0x0124, 4, 1, 0x00}, /* XRX200_BM_GCTRL_R_SRES Software Reset for RMON */
+// {0x0124, 3, 1, 0x00}, /* XRX200_BM_GCTRL_S_SRES Software Reset for Scheduler */
+// {0x0124, 2, 1, 0x00}, /* XRX200_BM_GCTRL_A_SRES Software Reset for AVG */
+// {0x0124, 1, 1, 0x00}, /* XRX200_BM_GCTRL_P_SRES Software Reset for PQM */
+// {0x0124, 0, 1, 0x00}, /* XRX200_BM_GCTRL_F_SRES Software Reset for FSQM */
+// {0x0128, 0, 16, 0x00}, /* XRX200_BM_QUEUE_GCTRL Queue Manager GlobalControl Register 0 */
+// {0x0128, 10, 1, 0x00}, /* XRX200_BM_QUEUE_GCTRL_GL_MOD WRED Mode Signal */
+// {0x0128, 7, 3, 0x00}, /* XRX200_BM_QUEUE_GCTRL_AQUI Average Queue Update Interval */
+// {0x0128, 3, 4, 0x00}, /* XRX200_BM_QUEUE_GCTRL_AQWF Average Queue Weight Factor */
+// {0x0128, 2, 1, 0x00}, /* XRX200_BM_QUEUE_GCTRL_QAVGEN Queue Average Calculation Enable */
+// {0x0128, 0, 2, 0x00}, /* XRX200_BM_QUEUE_GCTRL_DPROB Drop Probability Profile */
+// {0x012C, 0, 16, 0x00}, /* XRX200_BM_WRED_RTH_0 WRED Red Threshold Register0 */
+// {0x012C, 0, 10, 0x00}, /* XRX200_BM_WRED_RTH_0_MINTH Minimum Threshold */
+// {0x0130, 0, 16, 0x00}, /* XRX200_BM_WRED_RTH_1 WRED Red Threshold Register1 */
+// {0x0130, 0, 10, 0x00}, /* XRX200_BM_WRED_RTH_1_MAXTH Maximum Threshold */
+// {0x0134, 0, 16, 0x00}, /* XRX200_BM_WRED_YTH_0 WRED Yellow ThresholdRegister 0 */
+// {0x0134, 0, 10, 0x00}, /* XRX200_BM_WRED_YTH_0_MINTH Minimum Threshold */
+// {0x0138, 0, 16, 0x00}, /* XRX200_BM_WRED_YTH_1 WRED Yellow ThresholdRegister 1 */
+// {0x0138, 0, 10, 0x00}, /* XRX200_BM_WRED_YTH_1_MAXTH Maximum Threshold */
+// {0x013C, 0, 16, 0x00}, /* XRX200_BM_WRED_GTH_0 WRED Green ThresholdRegister 0 */
+// {0x013C, 0, 10, 0x00}, /* XRX200_BM_WRED_GTH_0_MINTH Minimum Threshold */
+// {0x0140, 0, 16, 0x00}, /* XRX200_BM_WRED_GTH_1 WRED Green ThresholdRegister 1 */
+// {0x0140, 0, 10, 0x00}, /* XRX200_BM_WRED_GTH_1_MAXTH Maximum Threshold */
+// {0x0144, 0, 16, 0x00}, /* XRX200_BM_DROP_GTH_0_THR Drop Threshold ConfigurationRegister 0 */
+// {0x0144, 0, 11, 0x00}, /* XRX200_BM_DROP_GTH_0_THR_FQ Threshold for frames marked red */
+// {0x0148, 0, 16, 0x00}, /* XRX200_BM_DROP_GTH_1_THY Drop Threshold ConfigurationRegister 1 */
+// {0x0148, 0, 11, 0x00}, /* XRX200_BM_DROP_GTH_1_THY_FQ Threshold for frames marked yellow */
+// {0x014C, 0, 16, 0x00}, /* XRX200_BM_DROP_GTH_2_THG Drop Threshold ConfigurationRegister 2 */
+// {0x014C, 0, 11, 0x00}, /* XRX200_BM_DROP_GTH_2_THG_FQ Threshold for frames marked green */
+// {0x0150, 0, 16, 0x00}, /* XRX200_BM_IER Buffer Manager Global InterruptEnable Register */
+// {0x0150, 7, 1, 0x00}, /* XRX200_BM_IER_CNT4 Counter Group 4 (RMON-CLASSIFICATION) Interrupt Enable */
+// {0x0150, 6, 1, 0x00}, /* XRX200_BM_IER_CNT3 Counter Group 3 (RMON-PQM) Interrupt Enable */
+// {0x0150, 5, 1, 0x00}, /* XRX200_BM_IER_CNT2 Counter Group 2 (RMON-SCHEDULER) Interrupt Enable */
+// {0x0150, 4, 1, 0x00}, /* XRX200_BM_IER_CNT1 Counter Group 1 (RMON-QFETCH) Interrupt Enable */
+// {0x0150, 3, 1, 0x00}, /* XRX200_BM_IER_CNT0 Counter Group 0 (RMON-QSTOR) Interrupt Enable */
+// {0x0150, 2, 1, 0x00}, /* XRX200_BM_IER_DEQ PQM dequeue Interrupt Enable */
+// {0x0150, 1, 1, 0x00}, /* XRX200_BM_IER_ENQ PQM Enqueue Interrupt Enable */
+// {0x0150, 0, 1, 0x00}, /* XRX200_BM_IER_FSQM Buffer Empty Interrupt Enable */
+// {0x0154, 0, 16, 0x00}, /* XRX200_BM_ISR Buffer Manager Global InterruptStatus Register */
+// {0x0154, 7, 1, 0x00}, /* XRX200_BM_ISR_CNT4 Counter Group 4 Interrupt */
+// {0x0154, 6, 1, 0x00}, /* XRX200_BM_ISR_CNT3 Counter Group 3 Interrupt */
+// {0x0154, 5, 1, 0x00}, /* XRX200_BM_ISR_CNT2 Counter Group 2 Interrupt */
+// {0x0154, 4, 1, 0x00}, /* XRX200_BM_ISR_CNT1 Counter Group 1 Interrupt */
+// {0x0154, 3, 1, 0x00}, /* XRX200_BM_ISR_CNT0 Counter Group 0 Interrupt */
+// {0x0154, 2, 1, 0x00}, /* XRX200_BM_ISR_DEQ PQM dequeue Interrupt Enable */
+// {0x0154, 1, 1, 0x00}, /* XRX200_BM_ISR_ENQ PQM Enqueue Interrupt */
+// {0x0154, 0, 1, 0x00}, /* XRX200_BM_ISR_FSQM Buffer Empty Interrupt */
+// {0x0158, 0, 16, 0x00}, /* XRX200_BM_CISEL Buffer Manager RMON CounterInterrupt Select Register */
+// {0x0158, 0, 3, 0x00}, /* XRX200_BM_CISEL_PORT Port Number */
+// {0x015C, 0, 16, 0x00}, /* XRX200_BM_DEBUG_CTRL_DBG Debug Control Register */
+// {0x015C, 0, 8, 0x00}, /* XRX200_BM_DEBUG_CTRL_DBG_SEL Select Signal for Debug Multiplexer */
+// {0x0160, 0, 16, 0x00}, /* XRX200_BM_DEBUG_VAL_DBG Debug Value Register */
+// {0x0160, 0, 16, 0x00}, /* XRX200_BM_DEBUG_VAL_DBG_DAT Debug Data Value */
+// {0x0200, 0, 16, 0x08}, /* XRX200_BM_PCFG Buffer Manager PortConfiguration Register */
+// {0x0200, 0, 1, 0x08}, /* XRX200_BM_PCFG_CNTEN RMON Counter Enable */
+// {0x0204, 0, 16, 0x08}, /* XRX200_BM_RMON_CTRL_RAM1 Buffer ManagerRMON Control Register */
+// {0x0204, 1, 1, 0x08}, /* XRX200_BM_RMON_CTRL_RAM2_RES Software Reset for RMON RAM2 */
+// {0x0204, 0, 1, 0x08}, /* XRX200_BM_RMON_CTRL_RAM1_RES Software Reset for RMON RAM1 */
+// {0x0400, 0, 16, 0x08}, /* XRX200_PQM_DP Packet Queue ManagerDrop Probability Register */
+// {0x0400, 0, 2, 0x08}, /* XRX200_PQM_DP_DPROB Drop Probability Profile */
+// {0x0404, 0, 16, 0x08}, /* XRX200_PQM_RS Packet Queue ManagerRate Shaper Assignment Register */
+// {0x0404, 15, 1, 0x08}, /* XRX200_PQM_RS_EN2 Rate Shaper 2 Enable */
+// {0x0404, 8, 6, 0x08}, /* XRX200_PQM_RS_RS2 Rate Shaper 2 */
+// {0x0404, 7, 1, 0x08}, /* XRX200_PQM_RS_EN1 Rate Shaper 1 Enable */
+// {0x0404, 0, 6, 0x08}, /* XRX200_PQM_RS_RS1 Rate Shaper 1 */
+// {0x0500, 0, 16, 0x14}, /* XRX200_RS_CTRL Rate Shaper ControlRegister */
+// {0x0500, 0, 1, 0x14}, /* XRX200_RS_CTRL_RSEN Rate Shaper Enable */
+// {0x0504, 0, 16, 0x14}, /* XRX200_RS_CBS Rate Shaper CommittedBurst Size Register */
+// {0x0504, 0, 10, 0x14}, /* XRX200_RS_CBS_CBS Committed Burst Size */
+// {0x0508, 0, 16, 0x14}, /* XRX200_RS_IBS Rate Shaper InstantaneousBurst Size Register */
+// {0x0508, 0, 2, 0x14}, /* XRX200_RS_IBS_IBS Instantaneous Burst Size */
+// {0x050C, 0, 16, 0x14}, /* XRX200_RS_CIR_EXP Rate Shaper RateExponent Register */
+// {0x050C, 0, 4, 0x14}, /* XRX200_RS_CIR_EXP_EXP Exponent */
+// {0x0510, 0, 16, 0x14}, /* XRX200_RS_CIR_MANT Rate Shaper RateMantissa Register */
+// {0x0510, 0, 10, 0x14}, /* XRX200_RS_CIR_MANT_MANT Mantissa */
+ {0x1100, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_7 Table Key Data 7 */
+// {0x1100, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_7_KEY7 Key Value[15:0] */
+ {0x1104, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_6 Table Key Data 6 */
+// {0x1104, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_6_KEY6 Key Value[15:0] */
+ {0x1108, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_5 Table Key Data 5 */
+// {0x1108, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_5_KEY5 Key Value[15:0] */
+ {0x110C, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_4 Table Key Data 4 */
+// {0x110C, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_4_KEY4 Key Value[15:0] */
+ {0x1110, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_3 Table Key Data 3 */
+// {0x1110, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_3_KEY3 Key Value[15:0] */
+ {0x1114, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_2 Table Key Data 2 */
+// {0x1114, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_2_KEY2 Key Value[15:0] */
+ {0x1118, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_1 Table Key Data 1 */
+// {0x1118, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_1_KEY1 Key Value[31:16] */
+ {0x111C, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_0 Table Key Data 0 */
+// {0x111C, 0, 16, 0x00}, /* XRX200_PCE_TBL_KEY_0_KEY0 Key Value[15:0] */
+ {0x1120, 0, 16, 0x00}, /* XRX200_PCE_TBL_MASK_0 Table Mask Write Register0 */
+// {0x1120, 0, 16, 0x00}, /* XRX200_PCE_TBL_MASK_0_MASK0 Mask Pattern [15:0] */
+ {0x1124, 0, 16, 0x00}, /* XRX200_PCE_TBL_VAL_4 Table Value Register4 */
+// {0x1124, 0, 16, 0x00}, /* XRX200_PCE_TBL_VAL_4_VAL4 Data value [15:0] */
+ {0x1128, 0, 16, 0x00}, /* XRX200_PCE_TBL_VAL_3 Table Value Register3 */
+// {0x1128, 0, 16, 0x00}, /* XRX200_PCE_TBL_VAL_3_VAL3 Data value [15:0] */
+ {0x112C, 0, 16, 0x00}, /* XRX200_PCE_TBL_VAL_2 Table Value Register2 */
+// {0x112C, 0, 16, 0x00}, /* XRX200_PCE_TBL_VAL_2_VAL2 Data value [15:0] */
+ {0x1130, 0, 16, 0x00}, /* XRX200_PCE_TBL_VAL_1 Table Value Register1 */
+// {0x1130, 0, 16, 0x00}, /* XRX200_PCE_TBL_VAL_1_VAL1 Data value [15:0] */
+ {0x1134, 0, 16, 0x00}, /* XRX200_PCE_TBL_VAL_0 Table Value Register0 */
+// {0x1134, 0, 16, 0x00}, /* XRX200_PCE_TBL_VAL_0_VAL0 Data value [15:0] */
+// {0x1138, 0, 16, 0x00}, /* XRX200_PCE_TBL_ADDR Table Entry AddressRegister */
+ {0x1138, 0, 11, 0x00}, /* XRX200_PCE_TBL_ADDR_ADDR Table Address */
+// {0x113C, 0, 16, 0x00}, /* XRX200_PCE_TBL_CTRL Table Access ControlRegister */
+ {0x113C, 15, 1, 0x00}, /* XRX200_PCE_TBL_CTRL_BAS Access Busy/Access Start */
+ {0x113C, 13, 1, 0x00}, /* XRX200_PCE_TBL_CTRL_TYPE Lookup Entry Type */
+ {0x113C, 12, 1, 0x00}, /* XRX200_PCE_TBL_CTRL_VLD Lookup Entry Valid */
+ {0x113C, 7, 4, 0x00}, /* XRX200_PCE_TBL_CTRL_GMAP Group Map */
+ {0x113C, 5, 2, 0x00}, /* XRX200_PCE_TBL_CTRL_OPMOD Lookup Table Access Operation Mode */
+ {0x113C, 0, 5, 0x00}, /* XRX200_PCE_TBL_CTRL_ADDR Lookup Table Address */
+// {0x1140, 0, 16, 0x00}, /* XRX200_PCE_TBL_STAT Table General StatusRegister */
+// {0x1140, 2, 1, 0x00}, /* XRX200_PCE_TBL_STAT_TBUSY Table Access Busy */
+// {0x1140, 1, 1, 0x00}, /* XRX200_PCE_TBL_STAT_TEMPT Table Empty */
+// {0x1140, 0, 1, 0x00}, /* XRX200_PCE_TBL_STAT_TFUL Table Full */
+// {0x1144, 0, 16, 0x00}, /* XRX200_PCE_AGE_0 Aging Counter ConfigurationRegister 0 */
+// {0x1144, 0, 4, 0x00}, /* XRX200_PCE_AGE_0_EXP Aging Counter Exponent Value */
+// {0x1148, 0, 16, 0x00}, /* XRX200_PCE_AGE_1 Aging Counter ConfigurationRegister 1 */
+// {0x1148, 0, 16, 0x00}, /* XRX200_PCE_AGE_1_MANT Aging Counter Mantissa Value */
+// {0x114C, 0, 16, 0x00}, /* XRX200_PCE_PMAP_1 Port Map Register 1 */
+// {0x114C, 0, 16, 0x00}, /* XRX200_PCE_PMAP_1_MPMAP Monitoring Port Map */
+// {0x1150, 0, 16, 0x00}, /* XRX200_PCE_PMAP_2 Port Map Register 2 */
+// {0x1150, 0, 16, 0x00}, /* XRX200_PCE_PMAP_2_DMCPMAP Default Multicast Port Map */
+// {0x1154, 0, 16, 0x00}, /* XRX200_PCE_PMAP_3 Port Map Register 3 */
+// {0x1154, 0, 16, 0x00}, /* XRX200_PCE_PMAP_3_UUCMAP Default Unknown Unicast Port Map */
+// {0x1158, 0, 16, 0x00}, /* XRX200_PCE_GCTRL_0 PCE Global Control Register0 */
+// {0x1158, 15, 1, 0x00}, /* XRX200_PCE_GCTRL_0_IGMP IGMP Mode Selection */
+ {0x1158, 14, 1, 0x00}, /* XRX200_PCE_GCTRL_0_VLAN VLAN-aware Switching */
+// {0x1158, 13, 1, 0x00}, /* XRX200_PCE_GCTRL_0_NOPM No Port Map Forwarding */
+// {0x1158, 12, 1, 0x00}, /* XRX200_PCE_GCTRL_0_SCONUC Unknown Unicast Storm Control */
+// {0x1158, 11, 1, 0x00}, /* XRX200_PCE_GCTRL_0_SCONMC Multicast Storm Control */
+// {0x1158, 10, 1, 0x00}, /* XRX200_PCE_GCTRL_0_SCONBC Broadcast Storm Control */
+// {0x1158, 8, 2, 0x00}, /* XRX200_PCE_GCTRL_0_SCONMOD Storm Control Mode */
+// {0x1158, 4, 4, 0x00}, /* XRX200_PCE_GCTRL_0_SCONMET Storm Control Metering Instance */
+// {0x1158, 3, 1, 0x00}, /* XRX200_PCE_GCTRL_0_MC_VALID Access Request */
+// {0x1158, 2, 1, 0x00}, /* XRX200_PCE_GCTRL_0_PLCKMOD Port Lock Mode */
+// {0x1158, 1, 1, 0x00}, /* XRX200_PCE_GCTRL_0_PLIMMOD MAC Address Learning Limitation Mode */
+// {0x1158, 0, 1, 0x00}, /* XRX200_PCE_GCTRL_0_MTFL MAC Table Flushing */
+// {0x115C, 0, 16, 0x00}, /* XRX200_PCE_GCTRL_1 PCE Global Control Register1 */
+// {0x115C, 1, 1, 0x00}, /* XRX200_PCE_GCTRL_1_PCE_DIS PCE Disable after currently processed packet */
+// {0x115C, 0, 1, 0x00}, /* XRX200_PCE_GCTRL_1_LRNMOD MAC Address Learning Mode */
+// {0x1160, 0, 16, 0x00}, /* XRX200_PCE_TCM_GLOB_CTRL Three-color MarkerGlobal Control Register */
+// {0x1160, 6, 3, 0x00}, /* XRX200_PCE_TCM_GLOB_CTRL_DPRED Re-marking Drop Precedence Red Encoding */
+// {0x1160, 3, 3, 0x00}, /* XRX200_PCE_TCM_GLOB_CTRL_DPYEL Re-marking Drop Precedence Yellow Encoding */
+// {0x1160, 0, 3, 0x00}, /* XRX200_PCE_TCM_GLOB_CTRL_DPGRN Re-marking Drop Precedence Green Encoding */
+// {0x1164, 0, 16, 0x00}, /* XRX200_PCE_IGMP_CTRL IGMP Control Register */
+// {0x1164, 15, 1, 0x00}, /* XRX200_PCE_IGMP_CTRL_FAGEEN Force Aging of Table Entries Enable */
+// {0x1164, 14, 1, 0x00}, /* XRX200_PCE_IGMP_CTRL_FLEAVE Fast Leave Enable */
+// {0x1164, 13, 1, 0x00}, /* XRX200_PCE_IGMP_CTRL_DMRTEN Default Maximum Response Time Enable */
+// {0x1164, 12, 1, 0x00}, /* XRX200_PCE_IGMP_CTRL_JASUP Join Aggregation Suppression Enable */
+// {0x1164, 11, 1, 0x00}, /* XRX200_PCE_IGMP_CTRL_REPSUP Report Suppression Enable */
+// {0x1164, 10, 1, 0x00}, /* XRX200_PCE_IGMP_CTRL_SRPEN Snooping of Router Port Enable */
+// {0x1164, 8, 2, 0x00}, /* XRX200_PCE_IGMP_CTRL_ROB Robustness Variable */
+// {0x1164, 0, 8, 0x00}, /* XRX200_PCE_IGMP_CTRL_DMRT IGMP Default Maximum Response Time */
+// {0x1168, 0, 16, 0x00}, /* XRX200_PCE_IGMP_DRPM IGMP Default RouterPort Map Register */
+// {0x1168, 0, 16, 0x00}, /* XRX200_PCE_IGMP_DRPM_DRPM IGMP Default Router Port Map */
+// {0x116C, 0, 16, 0x00}, /* XRX200_PCE_IGMP_AGE_0 IGMP Aging Register0 */
+// {0x116C, 3, 8, 0x00}, /* XRX200_PCE_IGMP_AGE_0_MANT IGMP Group Aging Time Mantissa */
+// {0x116C, 0, 3, 0x00}, /* XRX200_PCE_IGMP_AGE_0_EXP IGMP Group Aging Time Exponent */
+// {0x1170, 0, 16, 0x00}, /* XRX200_PCE_IGMP_AGE_1 IGMP Aging Register1 */
+// {0x1170, 0, 12, 0x00}, /* XRX200_PCE_IGMP_AGE_1_MANT IGMP Router Port Aging Time Mantissa */
+// {0x1174, 0, 16, 0x00}, /* XRX200_PCE_IGMP_STAT IGMP Status Register */
+// {0x1174, 0, 16, 0x00}, /* XRX200_PCE_IGMP_STAT_IGPM IGMP Port Map */
+// {0x1178, 0, 16, 0x00}, /* XRX200_WOL_GLB_CTRL Wake-on-LAN ControlRegister */
+// {0x1178, 0, 1, 0x00}, /* XRX200_WOL_GLB_CTRL_PASSEN WoL Password Enable */
+// {0x117C, 0, 16, 0x00}, /* XRX200_WOL_DA_0 Wake-on-LAN DestinationAddress Register 0 */
+// {0x117C, 0, 16, 0x00}, /* XRX200_WOL_DA_0_DA0 WoL Destination Address [15:0] */
+// {0x1180, 0, 16, 0x00}, /* XRX200_WOL_DA_1 Wake-on-LAN DestinationAddress Register 1 */
+// {0x1180, 0, 16, 0x00}, /* XRX200_WOL_DA_1_DA1 WoL Destination Address [31:16] */
+// {0x1184, 0, 16, 0x00}, /* XRX200_WOL_DA_2 Wake-on-LAN DestinationAddress Register 2 */
+// {0x1184, 0, 16, 0x00}, /* XRX200_WOL_DA_2_DA2 WoL Destination Address [47:32] */
+// {0x1188, 0, 16, 0x00}, /* XRX200_WOL_PW_0 Wake-on-LAN Password Register0 */
+// {0x1188, 0, 16, 0x00}, /* XRX200_WOL_PW_0_PW0 WoL Password [15:0] */
+// {0x118C, 0, 16, 0x00}, /* XRX200_WOL_PW_1 Wake-on-LAN Password Register1 */
+// {0x118C, 0, 16, 0x00}, /* XRX200_WOL_PW_1_PW1 WoL Password [31:16] */
+// {0x1190, 0, 16, 0x00}, /* XRX200_WOL_PW_2 Wake-on-LAN Password Register2 */
+// {0x1190, 0, 16, 0x00}, /* XRX200_WOL_PW_2_PW2 WoL Password [47:32] */
+// {0x1194, 0, 16, 0x00}, /* XRX200_PCE_IER_0_PINT Parser and ClassificationEngine Global Interrupt Enable Register 0 */
+// {0x1194, 15, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_15 Port Interrupt Enable */
+// {0x1194, 14, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_14 Port Interrupt Enable */
+// {0x1194, 13, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_13 Port Interrupt Enable */
+// {0x1194, 12, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_12 Port Interrupt Enable */
+// {0x1194, 11, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_11 Port Interrupt Enable */
+// {0x1194, 10, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_10 Port Interrupt Enable */
+// {0x1194, 9, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_9 Port Interrupt Enable */
+// {0x1194, 8, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_8 Port Interrupt Enable */
+// {0x1194, 7, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_7 Port Interrupt Enable */
+// {0x1194, 6, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_6 Port Interrupt Enable */
+// {0x1194, 5, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_5 Port Interrupt Enable */
+// {0x1194, 4, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_4 Port Interrupt Enable */
+// {0x1194, 3, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_3 Port Interrupt Enable */
+// {0x1194, 2, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_2 Port Interrupt Enable */
+// {0x1194, 1, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_1 Port Interrupt Enable */
+// {0x1194, 0, 1, 0x00}, /* XRX200_PCE_IER_0_PINT_0 Port Interrupt Enable */
+// {0x1198, 0, 16, 0x00}, /* XRX200_PCE_IER_1 Parser and ClassificationEngine Global Interrupt Enable Register 1 */
+// {0x1198, 6, 1, 0x00}, /* XRX200_PCE_IER_1_FLOWINT Traffic Flow Table Interrupt Rule matched Interrupt Enable */
+// {0x1198, 5, 1, 0x00}, /* XRX200_PCE_IER_1_CPH2 Classification Phase 2 Ready Interrupt Enable */
+// {0x1198, 4, 1, 0x00}, /* XRX200_PCE_IER_1_CPH1 Classification Phase 1 Ready Interrupt Enable */
+// {0x1198, 3, 1, 0x00}, /* XRX200_PCE_IER_1_CPH0 Classification Phase 0 Ready Interrupt Enable */
+// {0x1198, 2, 1, 0x00}, /* XRX200_PCE_IER_1_PRDY Parser Ready Interrupt Enable */
+// {0x1198, 1, 1, 0x00}, /* XRX200_PCE_IER_1_IGTF IGMP Table Full Interrupt Enable */
+// {0x1198, 0, 1, 0x00}, /* XRX200_PCE_IER_1_MTF MAC Table Full Interrupt Enable */
+// {0x119C, 0, 16, 0x00}, /* XRX200_PCE_ISR_0_PINT Parser and ClassificationEngine Global Interrupt Status Register 0 */
+// {0x119C, 15, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_15 Port Interrupt */
+// {0x119C, 14, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_14 Port Interrupt */
+// {0x119C, 13, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_13 Port Interrupt */
+// {0x119C, 12, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_12 Port Interrupt */
+// {0x119C, 11, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_11 Port Interrupt */
+// {0x119C, 10, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_10 Port Interrupt */
+// {0x119C, 9, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_9 Port Interrupt */
+// {0x119C, 8, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_8 Port Interrupt */
+// {0x119C, 7, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_7 Port Interrupt */
+// {0x119C, 6, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_6 Port Interrupt */
+// {0x119C, 5, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_5 Port Interrupt */
+// {0x119C, 4, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_4 Port Interrupt */
+// {0x119C, 3, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_3 Port Interrupt */
+// {0x119C, 2, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_2 Port Interrupt */
+// {0x119C, 1, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_1 Port Interrupt */
+// {0x119C, 0, 1, 0x00}, /* XRX200_PCE_ISR_0_PINT_0 Port Interrupt */
+// {0x11A0, 0, 16, 0x00}, /* XRX200_PCE_ISR_1 Parser and ClassificationEngine Global Interrupt Status Register 1 */
+// {0x11A0, 6, 1, 0x00}, /* XRX200_PCE_ISR_1_FLOWINT Traffic Flow Table Interrupt Rule matched */
+// {0x11A0, 5, 1, 0x00}, /* XRX200_PCE_ISR_1_CPH2 Classification Phase 2 Ready Interrupt */
+// {0x11A0, 4, 1, 0x00}, /* XRX200_PCE_ISR_1_CPH1 Classification Phase 1 Ready Interrupt */
+// {0x11A0, 3, 1, 0x00}, /* XRX200_PCE_ISR_1_CPH0 Classification Phase 0 Ready Interrupt */
+// {0x11A0, 2, 1, 0x00}, /* XRX200_PCE_ISR_1_PRDY Parser Ready Interrupt */
+// {0x11A0, 1, 1, 0x00}, /* XRX200_PCE_ISR_1_IGTF IGMP Table Full Interrupt */
+// {0x11A0, 0, 1, 0x00}, /* XRX200_PCE_ISR_1_MTF MAC Table Full Interrupt */
+// {0x11A4, 0, 16, 0x00}, /* XRX200_PARSER_STAT_FIFO Parser Status Register */
+// {0x11A4, 8, 8, 0x00}, /* XRX200_PARSER_STAT_FSM_DAT_CNT Parser FSM Data Counter */
+// {0x11A4, 5, 3, 0x00}, /* XRX200_PARSER_STAT_FSM_STATE Parser FSM State */
+// {0x11A4, 4, 1, 0x00}, /* XRX200_PARSER_STAT_PKT_ERR Packet error detected */
+// {0x11A4, 3, 1, 0x00}, /* XRX200_PARSER_STAT_FSM_FIN Parser FSM finished */
+// {0x11A4, 2, 1, 0x00}, /* XRX200_PARSER_STAT_FSM_START Parser FSM start */
+// {0x11A4, 1, 1, 0x00}, /* XRX200_PARSER_STAT_FIFO_RDY Parser FIFO ready for read. */
+// {0x11A4, 0, 1, 0x00}, /* XRX200_PARSER_STAT_FIFO_FULL Parser */
+// {0x1200, 0, 16, 0x28}, /* XRX200_PCE_PCTRL_0 PCE Port ControlRegister 0 */
+// {0x1200, 13, 1, 0x28}, /* XRX200_PCE_PCTRL_0_MCST Multicast Forwarding Mode Selection */
+// {0x1200, 12, 1, 0x28}, /* XRX200_PCE_PCTRL_0_EGSTEN Table-based Egress Special Tag Enable */
+// {0x1200, 11, 1, 0x28}, /* XRX200_PCE_PCTRL_0_IGSTEN Ingress Special Tag Enable */
+// {0x1200, 10, 1, 0x28}, /* XRX200_PCE_PCTRL_0_PCPEN PCP Remarking Mode */
+// {0x1200, 9, 1, 0x28}, /* XRX200_PCE_PCTRL_0_CLPEN Class Remarking Mode */
+// {0x1200, 8, 1, 0x28}, /* XRX200_PCE_PCTRL_0_DPEN Drop Precedence Remarking Mode */
+// {0x1200, 7, 1, 0x28}, /* XRX200_PCE_PCTRL_0_CMOD Three-color Marker Color Mode */
+// {0x1200, 6, 1, 0x28}, /* XRX200_PCE_PCTRL_0_VREP VLAN Replacement Mode */
+ {0x1200, 5, 1, 0x28}, /* XRX200_PCE_PCTRL_0_TVM Transparent VLAN Mode */
+// {0x1200, 4, 1, 0x28}, /* XRX200_PCE_PCTRL_0_PLOCK Port Locking Enable */
+// {0x1200, 3, 1, 0x28}, /* XRX200_PCE_PCTRL_0_AGEDIS Aging Disable */
+// {0x1200, 0, 3, 0x28}, /* XRX200_PCE_PCTRL_0_PSTATE Port State */
+// {0x1204, 0, 16, 0x28}, /* XRX200_PCE_PCTRL_1 PCE Port ControlRegister 1 */
+// {0x1204, 0, 8, 0x28}, /* XRX200_PCE_PCTRL_1_LRNLIM MAC Address Learning Limit */
+// {0x1208, 0, 16, 0x28}, /* XRX200_PCE_PCTRL_2 PCE Port ControlRegister 2 */
+// {0x1208, 7, 1, 0x28}, /* XRX200_PCE_PCTRL_2_DSCPMOD DSCP Mode Selection */
+// {0x1208, 5, 2, 0x28}, /* XRX200_PCE_PCTRL_2_DSCP Enable DSCP to select the Class of Service */
+// {0x1208, 4, 1, 0x28}, /* XRX200_PCE_PCTRL_2_PCP Enable VLAN PCP to select the Class of Service */
+// {0x1208, 0, 4, 0x28}, /* XRX200_PCE_PCTRL_2_PCLASS Port-based Traffic Class */
+// {0x120C, 0, 16, 0x28}, /* XRX200_PCE_PCTRL_3_VIO PCE Port ControlRegister 3 */
+// {0x120C, 11, 1, 0x28}, /* XRX200_PCE_PCTRL_3_EDIR Egress Redirection Mode */
+// {0x120C, 10, 1, 0x28}, /* XRX200_PCE_PCTRL_3_RXDMIR Receive Mirroring Enable for dropped frames */
+// {0x120C, 9, 1, 0x28}, /* XRX200_PCE_PCTRL_3_RXVMIR Receive Mirroring Enable for valid frames */
+// {0x120C, 8, 1, 0x28}, /* XRX200_PCE_PCTRL_3_TXMIR Transmit Mirroring Enable */
+// {0x120C, 7, 1, 0x28}, /* XRX200_PCE_PCTRL_3_VIO_7 Violation Type 7 Mirroring Enable */
+// {0x120C, 6, 1, 0x28}, /* XRX200_PCE_PCTRL_3_VIO_6 Violation Type 6 Mirroring Enable */
+// {0x120C, 5, 1, 0x28}, /* XRX200_PCE_PCTRL_3_VIO_5 Violation Type 5 Mirroring Enable */
+// {0x120C, 4, 1, 0x28}, /* XRX200_PCE_PCTRL_3_VIO_4 Violation Type 4 Mirroring Enable */
+// {0x120C, 3, 1, 0x28}, /* XRX200_PCE_PCTRL_3_VIO_3 Violation Type 3 Mirroring Enable */
+// {0x120C, 2, 1, 0x28}, /* XRX200_PCE_PCTRL_3_VIO_2 Violation Type 2 Mirroring Enable */
+// {0x120C, 1, 1, 0x28}, /* XRX200_PCE_PCTRL_3_VIO_1 Violation Type 1 Mirroring Enable */
+// {0x120C, 0, 1, 0x28}, /* XRX200_PCE_PCTRL_3_VIO_0 Violation Type 0 Mirroring Enable */
+// {0x1210, 0, 16, 0x28}, /* XRX200_WOL_CTRL Wake-on-LAN ControlRegister */
+// {0x1210, 0, 1, 0x28}, /* XRX200_WOL_CTRL_PORT WoL Enable */
+// {0x1214, 0, 16, 0x28}, /* XRX200_PCE_VCTRL PCE VLAN ControlRegister */
+ {0x1214, 5, 1, 0x28}, /* XRX200_PCE_VCTRL_VSR VLAN Security Rule */
+ {0x1214, 4, 1, 0x28}, /* XRX200_PCE_VCTRL_VEMR VLAN Egress Member Violation Rule */
+ {0x1214, 3, 1, 0x28}, /* XRX200_PCE_VCTRL_VIMR VLAN Ingress Member Violation Rule */
+ {0x1214, 1, 2, 0x28}, /* XRX200_PCE_VCTRL_VINR VLAN Ingress Tag Rule */
+ {0x1214, 0, 1, 0x28}, /* XRX200_PCE_VCTRL_UVR Unknown VLAN Rule */
+// {0x1218, 0, 16, 0x28}, /* XRX200_PCE_DEFPVID PCE Default PortVID Register */
+ {0x1218, 0, 6, 0x28}, /* XRX200_PCE_DEFPVID_PVID Default Port VID Index */
+// {0x121C, 0, 16, 0x28}, /* XRX200_PCE_PSTAT PCE Port StatusRegister */
+// {0x121C, 0, 16, 0x28}, /* XRX200_PCE_PSTAT_LRNCNT Learning Count */
+// {0x1220, 0, 16, 0x28}, /* XRX200_PCE_PIER Parser and ClassificationEngine Port Interrupt Enable Register */
+// {0x1220, 5, 1, 0x28}, /* XRX200_PCE_PIER_CLDRP Classification Drop Interrupt Enable */
+// {0x1220, 4, 1, 0x28}, /* XRX200_PCE_PIER_PTDRP Port Drop Interrupt Enable */
+// {0x1220, 3, 1, 0x28}, /* XRX200_PCE_PIER_VLAN VLAN Violation Interrupt Enable */
+// {0x1220, 2, 1, 0x28}, /* XRX200_PCE_PIER_WOL Wake-on-LAN Interrupt Enable */
+// {0x1220, 1, 1, 0x28}, /* XRX200_PCE_PIER_LOCK Port Limit Alert Interrupt Enable */
+// {0x1220, 0, 1, 0x28}, /* XRX200_PCE_PIER_LIM Port Lock Alert Interrupt Enable */
+// {0x1224, 0, 16, 0x28}, /* XRX200_PCE_PISR Parser and ClassificationEngine Port Interrupt Status Register */
+// {0x1224, 5, 1, 0x28}, /* XRX200_PCE_PISR_CLDRP Classification Drop Interrupt */
+// {0x1224, 4, 1, 0x28}, /* XRX200_PCE_PISR_PTDRP Port Drop Interrupt */
+// {0x1224, 3, 1, 0x28}, /* XRX200_PCE_PISR_VLAN VLAN Violation Interrupt */
+// {0x1224, 2, 1, 0x28}, /* XRX200_PCE_PISR_WOL Wake-on-LAN Interrupt */
+// {0x1224, 1, 1, 0x28}, /* XRX200_PCE_PISR_LOCK Port Lock Alert Interrupt */
+// {0x1224, 0, 1, 0x28}, /* XRX200_PCE_PISR_LIMIT Port Limitation Alert Interrupt */
+// {0x1600, 0, 16, 0x1c}, /* XRX200_PCE_TCM_CTRL Three-colorMarker Control Register */
+// {0x1600, 0, 1, 0x1c}, /* XRX200_PCE_TCM_CTRL_TCMEN Three-color Marker metering instance enable */
+// {0x1604, 0, 16, 0x1c}, /* XRX200_PCE_TCM_STAT Three-colorMarker Status Register */
+// {0x1604, 1, 1, 0x1c}, /* XRX200_PCE_TCM_STAT_AL1 Three-color Marker Alert 1 Status */
+// {0x1604, 0, 1, 0x1c}, /* XRX200_PCE_TCM_STAT_AL0 Three-color Marker Alert 0 Status */
+// {0x1608, 0, 16, 0x1c}, /* XRX200_PCE_TCM_CBS Three-color MarkerCommitted Burst Size Register */
+// {0x1608, 0, 10, 0x1c}, /* XRX200_PCE_TCM_CBS_CBS Committed Burst Size */
+// {0x160C, 0, 16, 0x1c}, /* XRX200_PCE_TCM_EBS Three-color MarkerExcess Burst Size Register */
+// {0x160C, 0, 10, 0x1c}, /* XRX200_PCE_TCM_EBS_EBS Excess Burst Size */
+// {0x1610, 0, 16, 0x1c}, /* XRX200_PCE_TCM_IBS Three-color MarkerInstantaneous Burst Size Register */
+// {0x1610, 0, 2, 0x1c}, /* XRX200_PCE_TCM_IBS_IBS Instantaneous Burst Size */
+// {0x1614, 0, 16, 0x1c}, /* XRX200_PCE_TCM_CIR_MANT Three-colorMarker Constant Information Rate Mantissa Register */
+// {0x1614, 0, 10, 0x1c}, /* XRX200_PCE_TCM_CIR_MANT_MANT Rate Counter Mantissa */
+// {0x1618, 0, 16, 0x1c}, /* XRX200_PCE_TCM_CIR_EXP Three-colorMarker Constant Information Rate Exponent Register */
+// {0x1618, 0, 4, 0x1c}, /* XRX200_PCE_TCM_CIR_EXP_EXP Rate Counter Exponent */
+// {0x2300, 0, 16, 0x00}, /* XRX200_MAC_TEST MAC Test Register */
+// {0x2300, 0, 16, 0x00}, /* XRX200_MAC_TEST_JTP Jitter Test Pattern */
+// {0x2304, 0, 16, 0x00}, /* XRX200_MAC_PFAD_CFG MAC Pause FrameSource Address Configuration Register */
+// {0x2304, 0, 1, 0x00}, /* XRX200_MAC_PFAD_CFG_SAMOD Source Address Mode */
+// {0x2308, 0, 16, 0x00}, /* XRX200_MAC_PFSA_0 Pause Frame SourceAddress Part 0 */
+// {0x2308, 0, 16, 0x00}, /* XRX200_MAC_PFSA_0_PFAD Pause Frame Source Address Part 0 */
+// {0x230C, 0, 16, 0x00}, /* XRX200_MAC_PFSA_1 Pause Frame SourceAddress Part 1 */
+// {0x230C, 0, 16, 0x00}, /* XRX200_MAC_PFSA_1_PFAD Pause Frame Source Address Part 1 */
+// {0x2310, 0, 16, 0x00}, /* XRX200_MAC_PFSA_2 Pause Frame SourceAddress Part 2 */
+// {0x2310, 0, 16, 0x00}, /* XRX200_MAC_PFSA_2_PFAD Pause Frame Source Address Part 2 */
+// {0x2314, 0, 16, 0x00}, /* XRX200_MAC_FLEN MAC Frame Length Register */
+// {0x2314, 0, 14, 0x00}, /* XRX200_MAC_FLEN_LEN Maximum Frame Length */
+// {0x2318, 0, 16, 0x00}, /* XRX200_MAC_VLAN_ETYPE_0 MAC VLAN EthertypeRegister 0 */
+// {0x2318, 0, 16, 0x00}, /* XRX200_MAC_VLAN_ETYPE_0_OUTER Ethertype */
+// {0x231C, 0, 16, 0x00}, /* XRX200_MAC_VLAN_ETYPE_1 MAC VLAN EthertypeRegister 1 */
+// {0x231C, 0, 16, 0x00}, /* XRX200_MAC_VLAN_ETYPE_1_INNER Ethertype */
+// {0x2320, 0, 16, 0x00}, /* XRX200_MAC_IER MAC Interrupt EnableRegister */
+// {0x2320, 0, 8, 0x00}, /* XRX200_MAC_IER_MACIEN MAC Interrupt Enable */
+// {0x2324, 0, 16, 0x00}, /* XRX200_MAC_ISR MAC Interrupt StatusRegister */
+// {0x2324, 0, 8, 0x00}, /* XRX200_MAC_ISR_MACINT MAC Interrupt */
+// {0x2400, 0, 16, 0x30}, /* XRX200_MAC_PSTAT MAC Port Status Register */
+// {0x2400, 11, 1, 0x30}, /* XRX200_MAC_PSTAT_PACT PHY Active Status */
+ {0x2400, 10, 1, 0x30}, /* XRX200_MAC_PSTAT_GBIT Gigabit Speed Status */
+ {0x2400, 9, 1, 0x30}, /* XRX200_MAC_PSTAT_MBIT Megabit Speed Status */
+ {0x2400, 8, 1, 0x30}, /* XRX200_MAC_PSTAT_FDUP Full Duplex Status */
+// {0x2400, 7, 1, 0x30}, /* XRX200_MAC_PSTAT_RXPAU Receive Pause Status */
+// {0x2400, 6, 1, 0x30}, /* XRX200_MAC_PSTAT_TXPAU Transmit Pause Status */
+// {0x2400, 5, 1, 0x30}, /* XRX200_MAC_PSTAT_RXPAUEN Receive Pause Enable Status */
+// {0x2400, 4, 1, 0x30}, /* XRX200_MAC_PSTAT_TXPAUEN Transmit Pause Enable Status */
+ {0x2400, 3, 1, 0x30}, /* XRX200_MAC_PSTAT_LSTAT Link Status */
+// {0x2400, 2, 1, 0x30}, /* XRX200_MAC_PSTAT_CRS Carrier Sense Status */
+// {0x2400, 1, 1, 0x30}, /* XRX200_MAC_PSTAT_TXLPI Transmit Low-power Idle Status */
+// {0x2400, 0, 1, 0x30}, /* XRX200_MAC_PSTAT_RXLPI Receive Low-power Idle Status */
+// {0x2404, 0, 16, 0x30}, /* XRX200_MAC_PISR MAC Interrupt Status Register */
+// {0x2404, 13, 1, 0x30}, /* XRX200_MAC_PISR_PACT PHY Active Status */
+// {0x2404, 12, 1, 0x30}, /* XRX200_MAC_PISR_SPEED Megabit Speed Status */
+// {0x2404, 11, 1, 0x30}, /* XRX200_MAC_PISR_FDUP Full Duplex Status */
+// {0x2404, 10, 1, 0x30}, /* XRX200_MAC_PISR_RXPAUEN Receive Pause Enable Status */
+// {0x2404, 9, 1, 0x30}, /* XRX200_MAC_PISR_TXPAUEN Transmit Pause Enable Status */
+// {0x2404, 8, 1, 0x30}, /* XRX200_MAC_PISR_LPIOFF Receive Low-power Idle Mode is left */
+// {0x2404, 7, 1, 0x30}, /* XRX200_MAC_PISR_LPION Receive Low-power Idle Mode is entered */
+// {0x2404, 6, 1, 0x30}, /* XRX200_MAC_PISR_JAM Jam Status Detected */
+// {0x2404, 5, 1, 0x30}, /* XRX200_MAC_PISR_TOOSHORT Too Short Frame Error Detected */
+// {0x2404, 4, 1, 0x30}, /* XRX200_MAC_PISR_TOOLONG Too Long Frame Error Detected */
+// {0x2404, 3, 1, 0x30}, /* XRX200_MAC_PISR_LENERR Length Mismatch Error Detected */
+// {0x2404, 2, 1, 0x30}, /* XRX200_MAC_PISR_FCSERR Frame Checksum Error Detected */
+// {0x2404, 1, 1, 0x30}, /* XRX200_MAC_PISR_TXPAUSE Pause Frame Transmitted */
+// {0x2404, 0, 1, 0x30}, /* XRX200_MAC_PISR_RXPAUSE Pause Frame Received */
+// {0x2408, 0, 16, 0x30}, /* XRX200_MAC_PIER MAC Interrupt Enable Register */
+// {0x2408, 13, 1, 0x30}, /* XRX200_MAC_PIER_PACT PHY Active Status */
+// {0x2408, 12, 1, 0x30}, /* XRX200_MAC_PIER_SPEED Megabit Speed Status */
+// {0x2408, 11, 1, 0x30}, /* XRX200_MAC_PIER_FDUP Full Duplex Status */
+// {0x2408, 10, 1, 0x30}, /* XRX200_MAC_PIER_RXPAUEN Receive Pause Enable Status */
+// {0x2408, 9, 1, 0x30}, /* XRX200_MAC_PIER_TXPAUEN Transmit Pause Enable Status */
+// {0x2408, 8, 1, 0x30}, /* XRX200_MAC_PIER_LPIOFF Low-power Idle Off Interrupt Mask */
+// {0x2408, 7, 1, 0x30}, /* XRX200_MAC_PIER_LPION Low-power Idle On Interrupt Mask */
+// {0x2408, 6, 1, 0x30}, /* XRX200_MAC_PIER_JAM Jam Status Interrupt Mask */
+// {0x2408, 5, 1, 0x30}, /* XRX200_MAC_PIER_TOOSHORT Too Short Frame Error Interrupt Mask */
+// {0x2408, 4, 1, 0x30}, /* XRX200_MAC_PIER_TOOLONG Too Long Frame Error Interrupt Mask */
+// {0x2408, 3, 1, 0x30}, /* XRX200_MAC_PIER_LENERR Length Mismatch Error Interrupt Mask */
+// {0x2408, 2, 1, 0x30}, /* XRX200_MAC_PIER_FCSERR Frame Checksum Error Interrupt Mask */
+// {0x2408, 1, 1, 0x30}, /* XRX200_MAC_PIER_TXPAUSE Transmit Pause Frame Interrupt Mask */
+// {0x2408, 0, 1, 0x30}, /* XRX200_MAC_PIER_RXPAUSE Receive Pause Frame Interrupt Mask */
+// {0x240C, 0, 16, 0x30}, /* XRX200_MAC_CTRL_0 MAC Control Register0 */
+// {0x240C, 13, 2, 0x30}, /* XRX200_MAC_CTRL_0_LCOL Late Collision Control */
+// {0x240C, 12, 1, 0x30}, /* XRX200_MAC_CTRL_0_BM Burst Mode Control */
+// {0x240C, 11, 1, 0x30}, /* XRX200_MAC_CTRL_0_APADEN Automatic VLAN Padding Enable */
+// {0x240C, 10, 1, 0x30}, /* XRX200_MAC_CTRL_0_VPAD2EN Stacked VLAN Padding Enable */
+// {0x240C, 9, 1, 0x30}, /* XRX200_MAC_CTRL_0_VPADEN VLAN Padding Enable */
+// {0x240C, 8, 1, 0x30}, /* XRX200_MAC_CTRL_0_PADEN Padding Enable */
+// {0x240C, 7, 1, 0x30}, /* XRX200_MAC_CTRL_0_FCS Transmit FCS Control */
+ {0x240C, 4, 3, 0x30}, /* XRX200_MAC_CTRL_0_FCON Flow Control Mode */
+// {0x240C, 2, 2, 0x30}, /* XRX200_MAC_CTRL_0_FDUP Full Duplex Control */
+// {0x240C, 0, 2, 0x30}, /* XRX200_MAC_CTRL_0_GMII GMII/MII interface mode selection */
+// {0x2410, 0, 16, 0x30}, /* XRX200_MAC_CTRL_1 MAC Control Register1 */
+// {0x2410, 8, 1, 0x30}, /* XRX200_MAC_CTRL_1_SHORTPRE Short Preamble Control */
+// {0x2410, 0, 4, 0x30}, /* XRX200_MAC_CTRL_1_IPG Minimum Inter Packet Gap Size */
+// {0x2414, 0, 16, 0x30}, /* XRX200_MAC_CTRL_2 MAC Control Register2 */
+// {0x2414, 3, 1, 0x30}, /* XRX200_MAC_CTRL_2_MLEN Maximum Untagged Frame Length */
+// {0x2414, 2, 1, 0x30}, /* XRX200_MAC_CTRL_2_LCHKL Frame Length Check Long Enable */
+// {0x2414, 0, 2, 0x30}, /* XRX200_MAC_CTRL_2_LCHKS Frame Length Check Short Enable */
+// {0x2418, 0, 16, 0x30}, /* XRX200_MAC_CTRL_3 MAC Control Register3 */
+// {0x2418, 0, 4, 0x30}, /* XRX200_MAC_CTRL_3_RCNT Retry Count */
+// {0x241C, 0, 16, 0x30}, /* XRX200_MAC_CTRL_4 MAC Control Register4 */
+// {0x241C, 7, 1, 0x30}, /* XRX200_MAC_CTRL_4_LPIEN LPI Mode Enable */
+// {0x241C, 0, 7, 0x30}, /* XRX200_MAC_CTRL_4_WAIT LPI Wait Time */
+// {0x2420, 0, 16, 0x30}, /* XRX200_MAC_CTRL_5_PJPS MAC Control Register5 */
+// {0x2420, 1, 1, 0x30}, /* XRX200_MAC_CTRL_5_PJPS_NOBP Prolonged Jam pattern size during no-backpressure state */
+// {0x2420, 0, 1, 0x30}, /* XRX200_MAC_CTRL_5_PJPS_BP Prolonged Jam pattern size during backpressure state */
+// {0x2424, 0, 16, 0x30}, /* XRX200_MAC_CTRL_6_XBUF Transmit and ReceiveBuffer Control Register */
+// {0x2424, 9, 3, 0x30}, /* XRX200_MAC_CTRL_6_RBUF_DLY_WP Delay */
+// {0x2424, 8, 1, 0x30}, /* XRX200_MAC_CTRL_6_RBUF_INIT Receive Buffer Initialization */
+// {0x2424, 6, 1, 0x30}, /* XRX200_MAC_CTRL_6_RBUF_BYPASS Bypass the Receive Buffer */
+// {0x2424, 3, 3, 0x30}, /* XRX200_MAC_CTRL_6_XBUF_DLY_WP Delay */
+// {0x2424, 2, 1, 0x30}, /* XRX200_MAC_CTRL_6_XBUF_INIT Initialize the Transmit Buffer */
+// {0x2424, 0, 1, 0x30}, /* XRX200_MAC_CTRL_6_XBUF_BYPASS Bypass the Transmit Buffer */
+// {0x2428, 0, 16, 0x30}, /* XRX200_MAC_BUFST_XBUF MAC Receive and TransmitBuffer Status Register */
+// {0x2428, 3, 1, 0x30}, /* XRX200_MAC_BUFST_RBUF_UFL Receive Buffer Underflow Indicator */
+// {0x2428, 2, 1, 0x30}, /* XRX200_MAC_BUFST_RBUF_OFL Receive Buffer Overflow Indicator */
+// {0x2428, 1, 1, 0x30}, /* XRX200_MAC_BUFST_XBUF_UFL Transmit Buffer Underflow Indicator */
+// {0x2428, 0, 1, 0x30}, /* XRX200_MAC_BUFST_XBUF_OFL Transmit Buffer Overflow Indicator */
+// {0x242C, 0, 16, 0x30}, /* XRX200_MAC_TESTEN MAC Test Enable Register */
+// {0x242C, 2, 1, 0x30}, /* XRX200_MAC_TESTEN_JTEN Jitter Test Enable */
+// {0x242C, 1, 1, 0x30}, /* XRX200_MAC_TESTEN_TXER Transmit Error Insertion */
+// {0x242C, 0, 1, 0x30}, /* XRX200_MAC_TESTEN_LOOP MAC Loopback Enable */
+// {0x2900, 0, 16, 0x00}, /* XRX200_FDMA_CTRL Ethernet Switch FetchDMA Control Register */
+// {0x2900, 7, 5, 0x00}, /* XRX200_FDMA_CTRL_LPI_THRESHOLD Low Power Idle Threshold */
+// {0x2900, 4, 3, 0x00}, /* XRX200_FDMA_CTRL_LPI_MODE Low Power Idle Mode */
+// {0x2900, 2, 2, 0x00}, /* XRX200_FDMA_CTRL_EGSTAG Egress Special Tag Size */
+// {0x2900, 1, 1, 0x00}, /* XRX200_FDMA_CTRL_IGSTAG Ingress Special Tag Size */
+// {0x2900, 0, 1, 0x00}, /* XRX200_FDMA_CTRL_EXCOL Excessive Collision Handling */
+// {0x2904, 0, 16, 0x00}, /* XRX200_FDMA_STETYPE Special Tag EthertypeControl Register */
+// {0x2904, 0, 16, 0x00}, /* XRX200_FDMA_STETYPE_ETYPE Special Tag Ethertype */
+// {0x2908, 0, 16, 0x00}, /* XRX200_FDMA_VTETYPE VLAN Tag EthertypeControl Register */
+// {0x2908, 0, 16, 0x00}, /* XRX200_FDMA_VTETYPE_ETYPE VLAN Tag Ethertype */
+// {0x290C, 0, 16, 0x00}, /* XRX200_FDMA_STAT_0 FDMA Status Register0 */
+// {0x290C, 0, 16, 0x00}, /* XRX200_FDMA_STAT_0_FSMS FSM states status */
+// {0x2910, 0, 16, 0x00}, /* XRX200_FDMA_IER Fetch DMA Global InterruptEnable Register */
+// {0x2910, 14, 1, 0x00}, /* XRX200_FDMA_IER_PCKD Packet Drop Interrupt Enable */
+// {0x2910, 13, 1, 0x00}, /* XRX200_FDMA_IER_PCKR Packet Ready Interrupt Enable */
+// {0x2910, 0, 8, 0x00}, /* XRX200_FDMA_IER_PCKT Packet Sent Interrupt Enable */
+// {0x2914, 0, 16, 0x00}, /* XRX200_FDMA_ISR Fetch DMA Global InterruptStatus Register */
+// {0x2914, 14, 1, 0x00}, /* XRX200_FDMA_ISR_PCKTD Packet Drop */
+// {0x2914, 13, 1, 0x00}, /* XRX200_FDMA_ISR_PCKR Packet is Ready for Transmission */
+// {0x2914, 0, 8, 0x00}, /* XRX200_FDMA_ISR_PCKT Packet Sent Event */
+// {0x2A00, 0, 16, 0x18}, /* XRX200_FDMA_PCTRL Ethernet SwitchFetch DMA Port Control Register */
+// {0x2A00, 3, 2, 0x18}, /* XRX200_FDMA_PCTRL_VLANMOD VLAN Modification Enable */
+// {0x2A00, 2, 1, 0x18}, /* XRX200_FDMA_PCTRL_DSCPRM DSCP Re-marking Enable */
+// {0x2A00, 1, 1, 0x18}, /* XRX200_FDMA_PCTRL_STEN Special Tag Insertion Enable */
+// {0x2A00, 0, 1, 0x18}, /* XRX200_FDMA_PCTRL_EN FDMA Port Enable */
+// {0x2A04, 0, 16, 0x18}, /* XRX200_FDMA_PRIO Ethernet SwitchFetch DMA Port Priority Register */
+// {0x2A04, 0, 2, 0x18}, /* XRX200_FDMA_PRIO_PRIO FDMA PRIO */
+// {0x2A08, 0, 16, 0x18}, /* XRX200_FDMA_PSTAT0 Ethernet SwitchFetch DMA Port Status Register 0 */
+// {0x2A08, 15, 1, 0x18}, /* XRX200_FDMA_PSTAT0_PKT_AVAIL Port Egress Packet Available */
+// {0x2A08, 14, 1, 0x18}, /* XRX200_FDMA_PSTAT0_POK Port Status OK */
+// {0x2A08, 0, 6, 0x18}, /* XRX200_FDMA_PSTAT0_PSEG Port Egress Segment Count */
+// {0x2A0C, 0, 16, 0x18}, /* XRX200_FDMA_PSTAT1_HDR Ethernet SwitchFetch DMA Port Status Register 1 */
+// {0x2A0C, 0, 10, 0x18}, /* XRX200_FDMA_PSTAT1_HDR_PTR Header Pointer */
+// {0x2A10, 0, 16, 0x18}, /* XRX200_FDMA_TSTAMP0 Egress TimeStamp Register 0 */
+// {0x2A10, 0, 16, 0x18}, /* XRX200_FDMA_TSTAMP0_TSTL Time Stamp [15:0] */
+// {0x2A14, 0, 16, 0x18}, /* XRX200_FDMA_TSTAMP1 Egress TimeStamp Register 1 */
+// {0x2A14, 0, 16, 0x18}, /* XRX200_FDMA_TSTAMP1_TSTH Time Stamp [31:16] */
+// {0x2D00, 0, 16, 0x00}, /* XRX200_SDMA_CTRL Ethernet Switch StoreDMA Control Register */
+// {0x2D00, 0, 1, 0x00}, /* XRX200_SDMA_CTRL_TSTEN Time Stamp Enable */
+// {0x2D04, 0, 16, 0x00}, /* XRX200_SDMA_FCTHR1 SDMA Flow Control Threshold1 Register */
+// {0x2D04, 0, 10, 0x00}, /* XRX200_SDMA_FCTHR1_THR1 Threshold 1 */
+// {0x2D08, 0, 16, 0x00}, /* XRX200_SDMA_FCTHR2 SDMA Flow Control Threshold2 Register */
+// {0x2D08, 0, 10, 0x00}, /* XRX200_SDMA_FCTHR2_THR2 Threshold 2 */
+// {0x2D0C, 0, 16, 0x00}, /* XRX200_SDMA_FCTHR3 SDMA Flow Control Threshold3 Register */
+// {0x2D0C, 0, 10, 0x00}, /* XRX200_SDMA_FCTHR3_THR3 Threshold 3 */
+// {0x2D10, 0, 16, 0x00}, /* XRX200_SDMA_FCTHR4 SDMA Flow Control Threshold4 Register */
+// {0x2D10, 0, 10, 0x00}, /* XRX200_SDMA_FCTHR4_THR4 Threshold 4 */
+// {0x2D14, 0, 16, 0x00}, /* XRX200_SDMA_FCTHR5 SDMA Flow Control Threshold5 Register */
+// {0x2D14, 0, 10, 0x00}, /* XRX200_SDMA_FCTHR5_THR5 Threshold 5 */
+// {0x2D18, 0, 16, 0x00}, /* XRX200_SDMA_FCTHR6 SDMA Flow Control Threshold6 Register */
+// {0x2D18, 0, 10, 0x00}, /* XRX200_SDMA_FCTHR6_THR6 Threshold 6 */
+// {0x2D1C, 0, 16, 0x00}, /* XRX200_SDMA_FCTHR7 SDMA Flow Control Threshold7 Register */
+// {0x2D1C, 0, 11, 0x00}, /* XRX200_SDMA_FCTHR7_THR7 Threshold 7 */
+// {0x2D20, 0, 16, 0x00}, /* XRX200_SDMA_STAT_0 SDMA Status Register0 */
+// {0x2D20, 4, 3, 0x00}, /* XRX200_SDMA_STAT_0_BPS_FILL Back Pressure Status */
+// {0x2D20, 2, 2, 0x00}, /* XRX200_SDMA_STAT_0_BPS_PNT Back Pressure Status */
+// {0x2D20, 0, 2, 0x00}, /* XRX200_SDMA_STAT_0_DROP Back Pressure Status */
+// {0x2D24, 0, 16, 0x00}, /* XRX200_SDMA_STAT_1 SDMA Status Register1 */
+// {0x2D24, 0, 10, 0x00}, /* XRX200_SDMA_STAT_1_FILL Buffer Filling Level */
+// {0x2D28, 0, 16, 0x00}, /* XRX200_SDMA_STAT_2 SDMA Status Register2 */
+// {0x2D28, 0, 16, 0x00}, /* XRX200_SDMA_STAT_2_FSMS FSM states status */
+// {0x2D2C, 0, 16, 0x00}, /* XRX200_SDMA_IER SDMA Interrupt Enable Register */
+// {0x2D2C, 15, 1, 0x00}, /* XRX200_SDMA_IER_BPEX Buffer Pointers Exceeded */
+// {0x2D2C, 14, 1, 0x00}, /* XRX200_SDMA_IER_BFULL Buffer Full */
+// {0x2D2C, 13, 1, 0x00}, /* XRX200_SDMA_IER_FERR Frame Error */
+// {0x2D2C, 0, 8, 0x00}, /* XRX200_SDMA_IER_FRX Frame Received Successfully */
+// {0x2D30, 0, 16, 0x00}, /* XRX200_SDMA_ISR SDMA Interrupt Status Register */
+// {0x2D30, 15, 1, 0x00}, /* XRX200_SDMA_ISR_BPEX Packet Descriptors Exceeded */
+// {0x2D30, 14, 1, 0x00}, /* XRX200_SDMA_ISR_BFULL Buffer Full */
+// {0x2D30, 13, 1, 0x00}, /* XRX200_SDMA_ISR_FERR Frame Error */
+// {0x2D30, 0, 8, 0x00}, /* XRX200_SDMA_ISR_FRX Frame Received Successfully */
+// {0x2F00, 0, 16, 0x18}, /* XRX200_SDMA_PCTRL Ethernet SwitchStore DMA Port Control Register */
+// {0x2F00, 13, 2, 0x18}, /* XRX200_SDMA_PCTRL_DTHR Drop Threshold Selection */
+// {0x2F00, 11, 2, 0x18}, /* XRX200_SDMA_PCTRL_PTHR Pause Threshold Selection */
+// {0x2F00, 10, 1, 0x18}, /* XRX200_SDMA_PCTRL_PHYEFWD Forward PHY Error Frames */
+// {0x2F00, 9, 1, 0x18}, /* XRX200_SDMA_PCTRL_ALGFWD Forward Alignment Error Frames */
+// {0x2F00, 8, 1, 0x18}, /* XRX200_SDMA_PCTRL_LENFWD Forward Length Errored Frames */
+// {0x2F00, 7, 1, 0x18}, /* XRX200_SDMA_PCTRL_OSFWD Forward Oversized Frames */
+// {0x2F00, 6, 1, 0x18}, /* XRX200_SDMA_PCTRL_USFWD Forward Undersized Frames */
+// {0x2F00, 5, 1, 0x18}, /* XRX200_SDMA_PCTRL_FCSIGN Ignore FCS Errors */
+// {0x2F00, 4, 1, 0x18}, /* XRX200_SDMA_PCTRL_FCSFWD Forward FCS Errored Frames */
+// {0x2F00, 3, 1, 0x18}, /* XRX200_SDMA_PCTRL_PAUFWD Pause Frame Forwarding */
+// {0x2F00, 2, 1, 0x18}, /* XRX200_SDMA_PCTRL_MFCEN Metering Flow Control Enable */
+// {0x2F00, 1, 1, 0x18}, /* XRX200_SDMA_PCTRL_FCEN Flow Control Enable */
+// {0x2F00, 0, 1, 0x18}, /* XRX200_SDMA_PCTRL_PEN Port Enable */
+// {0x2F04, 0, 16, 0x18}, /* XRX200_SDMA_PRIO Ethernet SwitchStore DMA Port Priority Register */
+// {0x2F04, 0, 2, 0x18}, /* XRX200_SDMA_PRIO_PRIO SDMA PRIO */
+// {0x2F08, 0, 16, 0x18}, /* XRX200_SDMA_PSTAT0_HDR Ethernet SwitchStore DMA Port Status Register 0 */
+// {0x2F08, 0, 10, 0x18}, /* XRX200_SDMA_PSTAT0_HDR_PTR Port Ingress Queue Header Pointer */
+// {0x2F0C, 0, 16, 0x18}, /* XRX200_SDMA_PSTAT1 Ethernet SwitchStore DMA Port Status Register 1 */
+// {0x2F0C, 0, 10, 0x18}, /* XRX200_SDMA_PSTAT1_PPKT Port Ingress Packet Count */
+// {0x2F10, 0, 16, 0x18}, /* XRX200_SDMA_TSTAMP0 Ingress TimeStamp Register 0 */
+// {0x2F10, 0, 16, 0x18}, /* XRX200_SDMA_TSTAMP0_TSTL Time Stamp [15:0] */
+// {0x2F14, 0, 16, 0x18}, /* XRX200_SDMA_TSTAMP1 Ingress TimeStamp Register 1 */
+// {0x2F14, 0, 16, 0x18}, /* XRX200_SDMA_TSTAMP1_TSTH Time Stamp [31:16] */
+};
+
+
|