imxrt-ral 0.6.2

Register access layer for all NXP i.MX RT microcontrollers
Documentation
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
#[doc = "Port"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "Port capability register"]
    pub PCAPR: crate::RORegister<u32>,
    #[doc = "Port MAC capability register"]
    pub PMCAPR: crate::RORegister<u32>,
    #[doc = "Port I/O capability register"]
    pub PIOCAPR: crate::RORegister<u32>,
    _reserved0: [u8; 0x04],
    #[doc = "Port configuration register"]
    pub PCR: crate::RWRegister<u32>,
    _reserved1: [u8; 0x0c],
    #[doc = "Port MAC address register 0"]
    pub PMAR0: crate::RWRegister<u32>,
    #[doc = "Port MAC address register 1"]
    pub PMAR1: crate::RWRegister<u32>,
    _reserved2: [u8; 0x28],
    #[doc = "Port TPID acceptance register"]
    pub PTAR: crate::RWRegister<u32>,
    #[doc = "Port QoS mode register"]
    pub PQOSMR: crate::RWRegister<u32>,
    _reserved3: [u8; 0x08],
    #[doc = "Port Queue Operational register"]
    pub PQOR: crate::RORegister<u32>,
    _reserved4: [u8; 0x1c],
    #[doc = "Port parser configuration register"]
    pub PPCR: crate::RWRegister<u32>,
    #[doc = "Port ingress port filter configuration register"]
    pub PIPFCR: crate::RWRegister<u32>,
    _reserved5: [u8; 0x18],
    #[doc = "Port stream gate configuration register"]
    pub PSGCR: crate::RWRegister<u32>,
    _reserved6: [u8; 0x5c],
    #[doc = "Port operational register"]
    pub POR: crate::RWRegister<u32>,
    #[doc = "Port status register"]
    pub PSR: crate::RORegister<u32>,
    #[doc = "Port receive SDU overhead register"]
    pub PRXSDUOR: crate::RWRegister<u32>,
    #[doc = "Port transmit SDU overhead register"]
    pub PTXSDUOR: crate::RWRegister<u32>,
    #[doc = "Port time gate scheduling control register"]
    pub PTGSCR: crate::RWRegister<u32>,
    #[doc = "Port time gate scheduling admin gate list status register"]
    pub PTGAGLSR: crate::RORegister<u32>,
    #[doc = "Port time gate scheduling admin gate list length register"]
    pub PTGAGLLR: crate::RORegister<u32>,
    #[doc = "Port time gating operational gate list length register"]
    pub PTGOGLLR: crate::RORegister<u32>,
    _reserved7: [u8; 0x18],
    #[doc = "Port default gate state register"]
    pub PDGSR: crate::RWRegister<u32>,
    _reserved8: [u8; 0x84],
    #[doc = "Port Rx discard count register"]
    pub PRXDCR: crate::RORegister<u32>,
    _reserved9: [u8; 0x04],
    #[doc = "Port Rx discard count reason register 0"]
    pub PRXDCRR0: crate::RWRegister<u32>,
    #[doc = "Port Rx discard count reason register 1"]
    pub PRXDCRR1: crate::RWRegister<u32>,
    _reserved10: [u8; 0x10],
    #[doc = "Port Tx discard count register"]
    pub PTXDCR: crate::RORegister<u32>,
    _reserved11: [u8; 0x04],
    #[doc = "Port Tx discard count reason register 0"]
    pub PTXDCRR0: crate::RWRegister<u32>,
    #[doc = "Port Tx discard count reason register 1"]
    pub PTXDCRR1: crate::RWRegister<u32>,
    _reserved12: [u8; 0x10],
    #[doc = "Array of registers: PTGSTCSR, PTCTMSDUR, PTCCBSR0, PTCCBSR1"]
    pub TCT_NUM: [tctnum::RegisterBlock; 8usize],
    _reserved13: [u8; 0x0100],
    #[doc = "Port buffer pool mapping configuration register 0"]
    pub PBPMCR0: crate::RWRegister<u32>,
    #[doc = "Port buffer pool mapping configuration register 1"]
    pub PBPMCR1: crate::RWRegister<u32>,
    _reserved14: [u8; 0x30],
    #[doc = "Port PCP DEI mapping register"]
    pub PPCPDEIMR: crate::RWRegister<u32>,
    _reserved15: [u8; 0x04],
    #[doc = "Port mirror configuration register"]
    pub PMCR: crate::RWRegister<u32>,
    _reserved16: [u8; 0x14],
    #[doc = "Port LANID configuration register"]
    pub PLANIDCR: crate::RWRegister<u32>,
    _reserved17: [u8; 0x04],
    #[doc = "Port ingress stream identification configuration register"]
    pub PISIDCR: crate::RWRegister<u32>,
    #[doc = "Port frame modification configuration register"]
    pub PFMCR: crate::RWRegister<u32>,
    _reserved18: [u8; 0x08],
    #[doc = "Port IPV to queue mapping register 0"]
    pub PIPV2QMR0: crate::RWRegister<u32>,
    _reserved19: [u8; 0x3c],
    #[doc = "Port time capture minimum latency register"]
    pub PTCMINLR: crate::RORegister<u32>,
    #[doc = "Port time capture maximum latency register"]
    pub PTCMAXLR: crate::RORegister<u32>,
    _reserved20: [u8; 0x48],
    #[doc = "Bridge port configuration register"]
    pub BPCR: crate::RWRegister<u32>,
    _reserved21: [u8; 0x0c],
    #[doc = "Bridge port default VLAN register"]
    pub BPDVR: crate::RWRegister<u32>,
    _reserved22: [u8; 0x0c],
    #[doc = "Bridge port spanning tree group state register"]
    pub BPSTGSR: crate::RWRegister<u32>,
    _reserved23: [u8; 0x04],
    #[doc = "Bridge port storm control register 0"]
    pub BPSCR0: crate::RWRegister<u32>,
    #[doc = "Bridge port storm control register 1"]
    pub BPSCR1: crate::RWRegister<u32>,
    #[doc = "Bridge port operational register"]
    pub BPOR: crate::RORegister<u32>,
    _reserved24: [u8; 0x4c],
    #[doc = "Bridge port discard count register"]
    pub BPDCR: crate::RORegister<u32>,
    _reserved25: [u8; 0x04],
    #[doc = "Bridge port discard count reason register 0"]
    pub BPDCRR0: crate::RWRegister<u32>,
    #[doc = "Bridge port discard count reason register 1"]
    pub BPDCRR1: crate::RWRegister<u32>,
    #[doc = "Bridge port MAC learning failure status register"]
    pub BPMLFSR: crate::RWRegister<u32>,
}
#[doc = "Port capability register"]
pub mod PCAPR {
    #[doc = "Indicates the link type 0 External Link 1 Pseudo Link"]
    pub mod LINK_TYPE {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Number of Traffic Classes (TCs) supported Formula: NUM_TC+1"]
    pub mod NUM_TC {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Number of Egress Traffic Management (ETM) class queues supported Formula: NUM_Q+1 Valid if link is bound to a switch"]
    pub mod NUM_Q {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Number of congestion groups supported Formula: NUM_CG+1 Valid if link end is bound to a switch port"]
    pub mod NUM_CG {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Time Gate Scheduling"]
    pub mod TGS {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Credit Based Shaping"]
    pub mod CBS {
        pub const offset: u32 = 29;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port MAC capability register"]
pub mod PMCAPR {
    #[doc = "MAC Variant"]
    pub mod MAC_VAR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress frame padding capability indicates if egress frames smaller than 64B are padded with zeroes"]
    pub mod EFPAD {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates if configurable Preamble and IPG is supported 0: Static Inter Frame Gap (IPG) size is 12B and Preamble is 7B 1: Configurable IPG and Preamble size Valid if MAC_VAR=1"]
    pub mod PIPG {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates if Half Duplex Mode is supported on this link"]
    pub mod HD {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates if frame preemption is supported"]
    pub mod FP {
        pub const offset: u32 = 9;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Minimum MAC Protocol Data Unit (PDU) size check"]
    pub mod MIN_MPDU {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates the MII protocol supported"]
    pub mod MII_PROT {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port I/O capability register"]
pub mod PIOCAPR {
    #[doc = "PCS protocols supported"]
    pub mod PCS_PROT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "IO Variants supported"]
    pub mod IO_VAR {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "External MDIO supported."]
    pub mod EMDIO {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "RevMII MII rate"]
    pub mod REVMII_RATE {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Reverse Mode Device Configuration"]
    pub mod REVMII {
        pub const offset: u32 = 31;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port configuration register"]
pub mod PCR {
    #[doc = "Indicates the frame format received/transmitted on the port 0 Ethernet frame format 1 Reserved"]
    pub mod HDR_FMT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "L2 Ethernet DoS Protection Enable 0 L2 IP DoS protection is disabled"]
    pub mod L2DOSE {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Timer Clock Selection: On receive, this field determines which of the two Rx timestamps (synchronized or free running) is reported to the host"]
    pub mod TIMER_CS {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Transmit Port Speed The speed in 10Mbps increments at which the port is assumed to be running for scheduling purposes and to determine if cut-through forwarding can proceed"]
    pub mod PSPEED {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x3fff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port MAC address register 0"]
pub mod PMAR0 {
    #[doc = "Primary MAC address This field is defined in network byte order (big-endian)"]
    pub mod PRIM_MAC_ADDR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port MAC address register 1"]
pub mod PMAR1 {
    #[doc = "Primary MAC address This field is defined in network byte order (big-endian)"]
    pub mod PRIM_MAC_ADDR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port TPID acceptance register"]
pub mod PTAR {
    #[doc = "Outer VLAN TPID List : bitmap identifying which TPIDs are acceptable as Outer VLAN tag xxx1 Standard C-VLAN 0x8100 xx1x Standard S-VLAN 0x88A8 x1xx Custom VLAN as defined by CVLANR1\\[ETYPE\\] 1xxx Custom VLAN as defined by CVLANR2\\[ETYPE\\]"]
    pub mod OVTPIDL {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Outer VLAN TPID List : bitmap identifying which TPIDs are acceptable as Inner VLAN tag xxx1 Standard C-VLAN 0x8100 xx1x Standard S-VLAN 0x88A8 x1xx Custom VLAN as defined by CVLANR1\\[ETYPE\\] 1xxx Custom VLAN as defined by CVLANR2\\[ETYPE\\]"]
    pub mod IVTPIDL {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port QoS mode register"]
pub mod PQOSMR {
    #[doc = "VLAN tag select: 0 Inner VLAN tag will be used if VE is set 1 Outer VLAN tag will be used if VE is set"]
    pub mod VS {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "VLAN enable 0 Defaults are used 1 Enables use of VLAN info to determine IPV and DR (based on VLANIPVMPaR0/1 and VLANDRMPaR)"]
    pub mod VE {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Default DR Sets the default DR for the port."]
    pub mod DDR {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Default IPV Sets the default IPV for the port."]
    pub mod DIPV {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Mapping profile index"]
    pub mod VQMP {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Mapping profile index"]
    pub mod QVMP {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port Queue Operational register"]
pub mod PQOR {
    #[doc = "Egress Traffic Management (ETM) class queue 0's state where i={0"]
    pub mod Q0S {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress Traffic Management (ETM) class queue 1's state where i={0"]
    pub mod Q1S {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress Traffic Management (ETM) class queue 2's state where i={0"]
    pub mod Q2S {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress Traffic Management (ETM) class queue 3's state where i={0"]
    pub mod Q3S {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress Traffic Management (ETM) class queue 4's state where i={0"]
    pub mod Q4S {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress Traffic Management (ETM) class queue 5's state where i={0"]
    pub mod Q5S {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress Traffic Management (ETM) class queue 6's state where i={0"]
    pub mod Q6S {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress Traffic Management (ETM) class queue 7's state where i={0"]
    pub mod Q7S {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port parser configuration register"]
pub mod PPCR {
    #[doc = "Unused"]
    pub mod L1PFS {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x1f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "L2 payload fields size in bytes This is the largest L2 payload size used by any table lookup key by this port"]
    pub mod L2PFS {
        pub const offset: u32 = 9;
        pub const mask: u32 = 0x1f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "L3 header fields present"]
    pub mod L3HFP {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No L3 header present. Indicates to the parser of not parsing the L3 header. Parsing in this case would go as far as the L2 header regardless of whether or not there is an L3 header in the frame. This option should not be used if there are any table lookup entries that contain L3/L4 key fields that could be matched against a frame."]
            pub const L3_HDR_NOT_PRESET: u32 = 0;
            #[doc = "Parse L3 header if present in the frame."]
            pub const L3_HDR_PRESENT: u32 = 0x01;
        }
    }
    #[doc = "L3 payload fields size in bytes"]
    pub mod L3PFS {
        pub const offset: u32 = 17;
        pub const mask: u32 = 0x1f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "L4 Header fields present"]
    pub mod L4HFP {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "No L4 header present. Indicates to the parser of not parsing the L4 header. Parsing in this case would go as far as the L3 header if configured to parse it (L3HFP=1) regardless of whether or not there is an L4 header in the frame. This option should not be used if there are any table lookup entries that contain L4 key fields that could be matched against a frame."]
            pub const L4_HDR_NOT_PRESENT: u32 = 0;
            #[doc = "Parse L4 header if present in the frame"]
            pub const L4_HDR_PRESENT: u32 = 0x01;
        }
    }
    #[doc = "L4 payload fields size in bytes"]
    pub mod L4PFS {
        pub const offset: u32 = 25;
        pub const mask: u32 = 0x1f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port ingress port filter configuration register"]
pub mod PIPFCR {
    #[doc = "0 Ingress Port Filter table lookup is disabled for this port 1 Ingress Port Filter table lookup is enabled for this port"]
    pub mod EN {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port stream gate configuration register"]
pub mod PSGCR {
    #[doc = "Link propagation delay in nanoseconds"]
    pub mod PDELAY {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x00ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Stream Gate Open Gate Check mode"]
    pub mod OGC {
        pub const offset: u32 = 31;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port operational register"]
pub mod POR {
    #[doc = "Tx Disable."]
    pub mod TXDIS {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Tx path is enabled"]
            pub const ENABLE: u32 = 0;
            #[doc = "Tx path is disabled."]
            pub const DISABLE: u32 = 0x01;
        }
    }
    #[doc = "Rx Disable."]
    pub mod RXDIS {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Rx path is enabled."]
            pub const ENABLE: u32 = 0;
            #[doc = "Rx path is disabled."]
            pub const DISABLE: u32 = 0x01;
        }
    }
}
#[doc = "Port status register"]
pub mod PSR {
    #[doc = "Transmit busy."]
    pub mod TX_BUSY {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Idle"]
            pub const IDLE: u32 = 0;
            #[doc = "Busy"]
            pub const BUSY: u32 = 0x01;
        }
    }
    #[doc = "Receive busy."]
    pub mod RX_BUSY {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Idle"]
            pub const IDLE: u32 = 0;
            #[doc = "Busy"]
            pub const BUSY: u32 = 0x01;
        }
    }
}
#[doc = "Port receive SDU overhead register"]
pub mod PRXSDUOR {
    #[doc = "PPDU Byte count overhead"]
    pub mod PPDU_BCO {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x1f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "MACSec byte count overhead"]
    pub mod MACSEC_BCO {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x1f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port transmit SDU overhead register"]
pub mod PTXSDUOR {
    #[doc = "PPDU Byte count overhead"]
    pub mod PPDU_BCO {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x1f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "MACSec byte count overhead"]
    pub mod MACSEC_BCO {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x1f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port time gate scheduling control register"]
pub mod PTGSCR {
    #[doc = "Time Gating Enable"]
    pub mod TGE {
        pub const offset: u32 = 31;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Time gating disabled."]
            pub const DISABLE: u32 = 0;
            #[doc = "Time gating enabled."]
            pub const ENABLE: u32 = 0x01;
        }
    }
}
#[doc = "Port time gate scheduling admin gate list status register"]
pub mod PTGAGLSR {
    #[doc = "Time gated (state of the operational gate control list) 0 No operational gate control list is active 1 Operational gate control list is active"]
    pub mod TG {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Administrative gate control list pending 0 No administrative gate control list is configured 1 Administrative gate control list is pending (configured but not installed yet)"]
    pub mod CFG_PEND {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port time gate scheduling admin gate list length register"]
pub mod PTGAGLLR {
    #[doc = "Administrative gate control list length (number of entries)"]
    pub mod ADMIN_GATE_LIST_LENGTH {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port time gating operational gate list length register"]
pub mod PTGOGLLR {
    #[doc = "Operational gate control list length (number of entries)"]
    pub mod OPER_GATE_LIST_LENGTH {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port default gate state register"]
pub mod PDGSR {
    #[doc = "Default Gate State for Traffic Class 0 Configures the default state of the port's traffic class gates"]
    pub mod DGS_TC0 {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Closed"]
            pub const ZERO: u32 = 0;
            #[doc = "Open"]
            pub const ONE: u32 = 0x01;
        }
    }
    #[doc = "Default Gate State for Traffic Class 1 Configures the default state of the port's traffic class gates"]
    pub mod DGS_TC1 {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Closed"]
            pub const ZERO: u32 = 0;
            #[doc = "Open"]
            pub const ONE: u32 = 0x01;
        }
    }
    #[doc = "Default Gate State for Traffic Class 2 Configures the default state of the port's traffic class gates"]
    pub mod DGS_TC2 {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Closed"]
            pub const ZERO: u32 = 0;
            #[doc = "Open"]
            pub const ONE: u32 = 0x01;
        }
    }
    #[doc = "Default Gate State for Traffic Class 3 Configures the default state of the port's traffic class gates"]
    pub mod DGS_TC3 {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Closed"]
            pub const ZERO: u32 = 0;
            #[doc = "Open"]
            pub const ONE: u32 = 0x01;
        }
    }
    #[doc = "Default Gate State for Traffic Class 4 Configures the default state of the port's traffic class gates"]
    pub mod DGS_TC4 {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Closed"]
            pub const ZERO: u32 = 0;
            #[doc = "Open"]
            pub const ONE: u32 = 0x01;
        }
    }
    #[doc = "Default Gate State for Traffic Class 5 Configures the default state of the port's traffic class gates"]
    pub mod DGS_TC5 {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Closed"]
            pub const ZERO: u32 = 0;
            #[doc = "Open"]
            pub const ONE: u32 = 0x01;
        }
    }
    #[doc = "Default Gate State for Traffic Class 6 Configures the default state of the port's traffic class gates"]
    pub mod DGS_TC6 {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Closed"]
            pub const ZERO: u32 = 0;
            #[doc = "Open"]
            pub const ONE: u32 = 0x01;
        }
    }
    #[doc = "Default Gate State for Traffic Class 7 Configures the default state of the port's traffic class gates"]
    pub mod DGS_TC7 {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Closed"]
            pub const ZERO: u32 = 0;
            #[doc = "Open"]
            pub const ONE: u32 = 0x01;
        }
    }
}
#[doc = "Port Rx discard count register"]
pub mod PRXDCR {
    #[doc = "Number of receive frames discarded"]
    pub mod COUNT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port Rx discard count reason register 0"]
pub mod PRXDCRR0 {
    #[doc = "Pre-Classification Discard Reason Occurs if Parse Classifier Engine (PCE) block does not have any free processing thread to process the received frame"]
    pub mod PCDR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Shared Memory Resource Exhaustion Discard Reason Occurs if Ethernet Rx I/F cannot allocate shared internal buffer memory to store the entire received frame"]
    pub mod SMREDR {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Receive disable discard reason due to port being in receive disabled state (POR\\[RXDIS\\]=1)"]
    pub mod RXDISDR {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Ingress Port Filter Discard Reason. Cleared when written to 1."]
    pub mod IPFDR {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Rate Policer Discard Reason"]
    pub mod RPDR {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Ingress Stream Forwarding Discard Reason Occurs if frame is associated with an ingress stream whose Forwarding Action (FA) is equal to discard"]
    pub mod ISFDR {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Stream Gate Closed Discard Reason Frame received on this port that is dropped because it didn't pass the stream gate"]
    pub mod SGCDR {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Stream Gate Octet Exceeded Discard Reason Frame dropped due to octet count exceeded maximum specified for the open gate interval Cleared when written to 1"]
    pub mod SGOEDR {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Ingress Stream Maximum Service Data Unit Exceeded Discard Reason Occurs if packet received is greater than the Maximum SDU size configured for the stream"]
    pub mod MSDUEDR {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Frame Modification Misconfiguration Error Discard Reason Cleared when written to 1"]
    pub mod FMMEDR {
        pub const offset: u32 = 9;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Congestion Management Discard Reason Frame discarded due to insufficient amount of memory space in buffer pool or in switch shared internal buffer memory"]
    pub mod CMDR {
        pub const offset: u32 = 10;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Invalid Table Entry Discard Reason Table entry ID reference is not found in the table (entry has not been added to the table) Table entry ID is outside of its table allocation range Cleared when written to 1"]
    pub mod ITEDR {
        pub const offset: u32 = 11;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "ECC Error Discard Reason"]
    pub mod ECCEDR {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Layer 2 Denial of Service Discard Reason Occurs if a packet is discarded due to L2DOS protection"]
    pub mod L2DOSDR {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "No Destination Discard Reason"]
    pub mod NODESTDR {
        pub const offset: u32 = 17;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port Rx discard count reason register 1"]
pub mod PRXDCRR1 {
    #[doc = "Entry Id who last incremented discard count"]
    pub mod ENTRYID {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Table type which caused the discard"]
    pub mod TT {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port Tx discard count register"]
pub mod PTXDCR {
    #[doc = "Number of transmit frames discarded"]
    pub mod COUNT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port Tx discard count reason register 0"]
pub mod PTXDCRR0 {
    #[doc = "Transmit disable discard reason due to port being in transmit disabled state (POR\\[TXDIS\\]=1)"]
    pub mod TXDISDR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "ECC Error Discard Reason"]
    pub mod ECCEDR {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Parity Error Discard Reason"]
    pub mod PEDR {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Time Gate Scheduling Frame Too Large Discard Reason Time Gate scheduling is enabled, and the frame was discarded because one of the following conditions was encountered: The frame was too large to transmit during any gate-open interval"]
    pub mod TGSFTLDR {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Frame Modification Misconfiguration Discard Reason Software Misconfiguration due to: Invalid frame header modification (i"]
    pub mod FMMDR {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Transmit Disable prior to Enqueue to ETM Discard Reason due to Port being in a Transmit disabled state (POR\\[TXDIS\\]=1)"]
    pub mod TXDISEDR {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress Maximum Service Data Unit Exceeded Discard Reason Occurs if store-and-forward frame is greater than the port Traffic Class's configured Maximum SDU size"]
    pub mod MSDUEDR {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Queue Congestion Discard Reason Occurs if a frame is dropped because it couldn't be enqueued to an Egress Traffic Management (ETM) class queue"]
    pub mod QCONGDR {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Invalid Table Entry Discard Reason"]
    pub mod ITEDR {
        pub const offset: u32 = 9;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Invalid Enqueue Port or Queue Discard Reason"]
    pub mod INVEQDR {
        pub const offset: u32 = 10;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress Stream Sequence Recovery Take No Sequence Discard Reason Occurs if the sequence recovery function discards a frame because it is tagless and ESQA_TGT_EID\\[SQR_TNSQ\\]=0"]
    pub mod SQRTNSQDR {
        pub const offset: u32 = 11;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress Stream Sequence Recovery Rogue Discard Reason Occurs if a packet is discarded by the vector recovery algorithm because its sequence number has fallen outside of the recovery history window"]
    pub mod SQRRDR {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress Stream Sequence Recovery Duplicate Discard Reason Occurs if packet's sequence_number is a duplicate applies for either Match or Vector Recovery Algorithm)"]
    pub mod SQRDDR {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Shared Memory Resource Exhaustion Discard Reason"]
    pub mod SMREDR {
        pub const offset: u32 = 15;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port Tx discard count reason register 1"]
pub mod PTXDCRR1 {
    #[doc = "Entry Id who last incremented discard count"]
    pub mod ENTRYID {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Table type which was last accessed when frame was discarded"]
    pub mod TT {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port buffer pool mapping configuration register 0"]
pub mod PBPMCR0 {
    #[doc = "Indicates its associated Buffer Pool table Entry ID. Range: 0..BPCAPR\\[NUM_BP\\]-1"]
    pub mod IPV0_INDEX {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates its associated Buffer Pool table Entry ID. Range: 0..BPCAPR\\[NUM_BP\\]-1"]
    pub mod IPV1_INDEX {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates its associated Buffer Pool table Entry ID. Range: 0..BPCAPR\\[NUM_BP\\]-1"]
    pub mod IPV2_INDEX {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates its associated Buffer Pool table Entry ID. Range: 0..BPCAPR\\[NUM_BP\\]-1"]
    pub mod IPV3_INDEX {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port buffer pool mapping configuration register 1"]
pub mod PBPMCR1 {
    #[doc = "Indicates its associated Buffer Pool table Entry ID. Range: 0..BPCAPR\\[NUM_BP\\]-1"]
    pub mod IPV4_INDEX {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates its associated Buffer Pool table Entry ID. Range: 0..BPCAPR\\[NUM_BP\\]-1"]
    pub mod IPV5_INDEX {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates its associated Buffer Pool table Entry ID. Range: 0..BPCAPR\\[NUM_BP\\]-1"]
    pub mod IPV6_INDEX {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates its associated Buffer Pool table Entry ID. Range: 0..BPCAPR\\[NUM_BP\\]-1"]
    pub mod IPV7_INDEX {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port PCP DEI mapping register"]
pub mod PPCPDEIMR {
    #[doc = "Ingress PCP to PCP Mapping Profile instance"]
    pub mod IPCPMP {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Ingress PCP to PCP Mapping Profile is valid. Only applicable if outer VLAN tag is present."]
    pub mod IPCPMPV {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Ingress PCP to PCP Mapping Profile is not valid."]
            pub const INVALID: u32 = 0;
            #[doc = "Ingress frame modification of outer VLAN tag's PCP value is mapped to a new value based on IPCPMP instance"]
            pub const VALID: u32 = 0x01;
        }
    }
    #[doc = "Egress PCP to PCP Mapping Profile instance"]
    pub mod EPCPMP {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Egress PCP to PCP Mapping Profile is valid."]
    pub mod EPCPMPV {
        pub const offset: u32 = 15;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Egress PCP to PCP Mapping Profile is not valid."]
            pub const INVALID: u32 = 0;
            #[doc = "Egress frame modification of outer VLAN tag's PCP value is mapped to a new value based on EPCPMP instance."]
            pub const VALID: u32 = 0x01;
        }
    }
    #[doc = "Mapping of internal QoS's DR value 0 to VLAN DEI."]
    pub mod DR0DEI {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Mapping of internal QoS's DR value 1 to VLAN DEI."]
    pub mod DR1DEI {
        pub const offset: u32 = 17;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Mapping of internal QoS's DR value 2 to VLAN DEI."]
    pub mod DR2DEI {
        pub const offset: u32 = 18;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Mapping of internal QoS's DR value 3 to VLAN DEI."]
    pub mod DR3DEI {
        pub const offset: u32 = 19;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates if mapping of internal QoS's DR value d to VLAN DEI is enabled."]
    pub mod DRME {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Preserve the DR value in the outer VLAN."]
            pub const PRESERVE: u32 = 0;
            #[doc = "Update DR value in the outer VLAN based on DEnDEI field."]
            pub const UPDATE: u32 = 0x01;
        }
    }
}
#[doc = "Port mirror configuration register"]
pub mod PMCR {
    #[doc = "Enable Ingress Mirroring on the port"]
    pub mod IMIRE {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port LANID configuration register"]
pub mod PLANIDCR {
    #[doc = "LAN Identifier"]
    pub mod LANID {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port ingress stream identification configuration register"]
pub mod PISIDCR {
    #[doc = "Indicates which Ingress Stream Identification Key Construction pair to use for this port"]
    pub mod KCPAIR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Key Construction 0 Enable"]
    pub mod KC0EN {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Key Construction 1 Enable"]
    pub mod KC1EN {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Default Ingress Stream Entry ID"]
    pub mod ISEID {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port frame modification configuration register"]
pub mod PFMCR {
    #[doc = "Frame Modification Misconfiguration Action"]
    pub mod FMMA {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Discard the frame and counted against the port's Tx discard count register (PTXDCR) along with the setting of the Frame Modification Misconfiguration Discard Reason (FMMDR) flag to 1 in the port's Tx discard count reason register 0 (PTXDCRR0)."]
            pub const DISCARD: u32 = 0;
            #[doc = "Transmit the frame without performing any of the ingress and egress frame modification actions specified."]
            pub const TRANSMIT: u32 = 0x01;
        }
    }
}
#[doc = "Port IPV to queue mapping register 0"]
pub mod PIPV2QMR0 {
    #[doc = "Each IPVi_Q field is defined as follows (where i=IPV={0"]
    pub mod IPV0_Q {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each IPVi_Q field is defined as follows (where i=IPV={0"]
    pub mod IPV1_Q {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each IPVi_Q field is defined as follows (where i=IPV={0"]
    pub mod IPV2_Q {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each IPVi_Q field is defined as follows (where i=IPV={0"]
    pub mod IPV3_Q {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each IPVi_Q field is defined as follows (where i=IPV={0"]
    pub mod IPV4_Q {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each IPVi_Q field is defined as follows (where i=IPV={0"]
    pub mod IPV5_Q {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each IPVi_Q field is defined as follows (where i=IPV={0"]
    pub mod IPV6_Q {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each IPVi_Q field is defined as follows (where i=IPV={0"]
    pub mod IPV7_Q {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port time capture minimum latency register"]
pub mod PTCMINLR {
    #[doc = "Indicates the minimum latency between the Tx Timestamp and Rx Timestamp captured by the Ethernet MAC relative to SFD"]
    pub mod LATENCY {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x3fff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates the number of times a frame transmitted out of this port, has fulfilled the timestamp capture criteria"]
    pub mod COUNT {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port time capture maximum latency register"]
pub mod PTCMAXLR {
    #[doc = "Indicates the maximum latency between the Tx Timestamp and Rx Timestamp captured by the Ethernet MAC relative to SFD"]
    pub mod LATENCY {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x3fff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Bridge port configuration register"]
pub mod BPCR {
    #[doc = "Dynamic Limit"]
    pub mod DYN_LIMIT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Unknown Unicast Storm Control Enable"]
    pub mod UUCASTE {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Disabled"]
            pub const DISABLED: u32 = 0;
            #[doc = "Enabled"]
            pub const ENABLE: u32 = 0x01;
        }
    }
    #[doc = "Unknown Multicast Storm Control Enable"]
    pub mod UMCASTE {
        pub const offset: u32 = 25;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Disabled"]
            pub const DISABLE: u32 = 0;
            #[doc = "Enabled"]
            pub const ENABLE: u32 = 0x01;
        }
    }
    #[doc = "Multicast Storm Control Enable"]
    pub mod MCASTE {
        pub const offset: u32 = 26;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Disabled"]
            pub const DISABLE: u32 = 0;
            #[doc = "Enabled"]
            pub const ENABLE: u32 = 0x01;
        }
    }
    #[doc = "Broadcast Storm Control Enable"]
    pub mod BCASTE {
        pub const offset: u32 = 27;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Disabled"]
            pub const DISABLE: u32 = 0;
            #[doc = "Enabled"]
            pub const ENABLE: u32 = 0x01;
        }
    }
    #[doc = "Station Move Disallow"]
    pub mod STAMVD {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Allowed"]
            pub const DISABLE: u32 = 0;
            #[doc = "Disallowed. A received frame for which a MAC station move is detected, will be discarded."]
            pub const ENABLE: u32 = 0x01;
        }
    }
    #[doc = "Source Port Pruning Disable"]
    pub mod SRCPRND {
        pub const offset: u32 = 29;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Enabled"]
            pub const ENABLE: u32 = 0;
            #[doc = "Disabled"]
            pub const DISABLE: u32 = 0x01;
        }
    }
}
#[doc = "Bridge port default VLAN register"]
pub mod BPDVR {
    #[doc = "VLAN identifier Specifies the VID value to be used to construct or modify the internal VLAN header."]
    pub mod VID {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x0fff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Drop eligible indicator This field specifies the 1-bit DEI to be used to construct the internal VLAN header"]
    pub mod DEI {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Priority code point This field specifies the 3-bit PCP to be used to construct the internal VLAN header"]
    pub mod PCP {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Specifies the TPID value to be used to construct the internal VLAN header"]
    pub mod TPID {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Receive Bridge Port Tag Acceptance Criteria xxx0 Discard untagged xxx1 Accept untagged xx0x Discard priority tagged xx1x Accept priority tagged x0xx Discard single tagged x1xx Accept single tagged 0xxx Discard double tagged 1xxx Accept double tagged Frames discarded are counted against the bridge port discard count register (BPDCR) along with the setting of the Discard due to Bridge Port Acceptance Criteria Discard Reason (BPACDR) flag to 1 in the Bridge port discard count reason register 0 (BPDCRR0)"]
    pub mod RXTAGA {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Receive VLAN Aware Mode All frames to be forwarded using the 802"]
    pub mod RXVAM {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Transmit Bridge Port VLAN Tag Action This field applies only for a VLAN aware bridge, where the frame outer VLAN tag's VID is equal to the port default VID (VID field in this register)"]
    pub mod TXTAGA {
        pub const offset: u32 = 25;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Bridge port spanning tree group state register"]
pub mod BPSTGSR {
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE0 {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE1 {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE2 {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE3 {
        pub const offset: u32 = 6;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE4 {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE5 {
        pub const offset: u32 = 10;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE6 {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE7 {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE8 {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE9 {
        pub const offset: u32 = 18;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE10 {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE11 {
        pub const offset: u32 = 22;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE12 {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE13 {
        pub const offset: u32 = 26;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE14 {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Each STG_STATEi field is defined as follows, where i = spanning tree protocol group = {0"]
    pub mod STG_STATE15 {
        pub const offset: u32 = 30;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Bridge port storm control register 0"]
pub mod BPSCR0 {
    #[doc = "Unknown unicast Rate Policer Entry ID"]
    pub mod UUCASTRPEID {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x0fff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Broadcast Rate Policer Entry ID"]
    pub mod BCASTRPEID {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x0fff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Bridge port storm control register 1"]
pub mod BPSCR1 {
    #[doc = "Known multicast Rate Policer Entry ID"]
    pub mod MCASTRPEID {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x0fff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Unknown multicast Rate Policer Entry ID"]
    pub mod UMCASTRPEID {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x0fff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Bridge port operational register"]
pub mod BPOR {
    #[doc = "Number of FDB entries dynamically learned against this port."]
    pub mod NUM_DYN {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Bridge port discard count register"]
pub mod BPDCR {
    #[doc = "Frame discard count."]
    pub mod COUNT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Bridge port discard count reason register 0"]
pub mod BPDCRR0 {
    #[doc = "Discard due to Bridge Port Acceptance Criteria Discard Reason Frame was discarded because it failed the Bridge Port Tag Acceptance Criteria"]
    pub mod BPACDR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Ingress STG State Discard Reason Occurs if port's STG State is Disabled or Learning"]
    pub mod ISTGSDR {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "VLAN Filter (Port VLAN Membership) Discard Reason Occurs when VID (after ingress frame modification if applicable) received is not a member of this port"]
    pub mod BPVFLTDR {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "MAC Learn Not Found Discard Reason Occurs if VFHTDECR2\\[MLO\\] or VLAN Filter Table Entry's MLO = 5 (Disable MAC learning with SMAC validation)"]
    pub mod MACLNFDR {
        pub const offset: u32 = 3;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Station Move Disallowed Discard Reason Occurs if STAMVD=1 and Source MAC found in FDB with port not matching received port"]
    pub mod STAMVDDR {
        pub const offset: u32 = 7;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "MAC Forwarding Default Discard Reason Occurs if MFO = 3 (FDB lookup is performed, and if there is no match, the frame is discarded), MFO is settable by BPCR and VLAN Filter Table Entry"]
    pub mod MACFDDDR {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "No Destination Discard Reason L2 forwarding decision resulted in discarding the frame since it resulted in no destination"]
    pub mod NODESTDR {
        pub const offset: u32 = 9;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "IP Multicast Filter Discard Reason Frame was discarded due to a miss in L2 IPV4 Multicast Filter table"]
    pub mod IPMFDR {
        pub const offset: u32 = 10;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Untagged Frame Modification Misconfiguration Discard Reason Frame was discarded due to bridge port configured as VLAN aware with a non-null Ingress Frame Modification Entry ID (IFM_EID) resulting in the frame containing no VLAN headers, or with an outer priority tag (VID=0)"]
    pub mod UFMMDR {
        pub const offset: u32 = 11;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Misconfiguration Discard Reason"]
    pub mod MISCDR {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Discard due to Storm Control Policer Discard Reason"]
    pub mod STRMCTRLDR {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Bridge port discard count reason register 1"]
pub mod BPDCRR1 {
    #[doc = "Entry ID who last incremented Discard Count"]
    pub mod ENTRYID {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x07ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Table type which caused the discard"]
    pub mod TT {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Bridge port MAC learning failure status register"]
pub mod BPMLFSR {
    #[doc = "Bridge Port MAC Learn Limit Reached Failure Reason"]
    pub mod BPMLLRFR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Full FDB Table Reached Failure Reason"]
    pub mod FFDBTRFR {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Hash Collision chain limit Reached Failure Reason"]
    pub mod HCCLRFR {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
pub mod tctnum {
    #[doc = "Array of registers: PTGSTCSR, PTCTMSDUR, PTCCBSR0, PTCCBSR1"]
    #[repr(C)]
    pub struct RegisterBlock {
        #[doc = "Port time gate scheduling traffic class a status register"]
        pub PTGSTCSR: crate::RORegister<u32>,
        _reserved0: [u8; 0x04],
        #[doc = "Port traffic class a transmit maximum SDU register"]
        pub PTCTMSDUR: crate::RWRegister<u32>,
        _reserved1: [u8; 0x04],
        #[doc = "Port transmit traffic class a credit based shaper register 0"]
        pub PTCCBSR0: crate::RWRegister<u32>,
        #[doc = "Port traffic class a credit based shaper register 1"]
        pub PTCCBSR1: crate::RWRegister<u32>,
        _reserved2: [u8; 0x08],
    }
    #[doc = "Port time gate scheduling traffic class a status register"]
    pub mod PTGSTCSR {
        #[doc = "Look-ahead gate state 0 Gate closed 1 Gate open IERB registers SaTGSLR / EaTGSLR\\[MIN_LOOKAHEAD\\] + the per port register PTGSATOR\\[ADV_TIME_OFFSET\\] specify the advance time of the gate state"]
        pub mod LH_STATE {
            pub const offset: u32 = 16;
            pub const mask: u32 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Port traffic class a transmit maximum SDU register"]
    pub mod PTCTMSDUR {
        #[doc = "Transmit Maximum SDU size in bytes (i"]
        pub mod MAXSDU {
            pub const offset: u32 = 0;
            pub const mask: u32 = 0xffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Specifies the type of PDU/SDU (Protocol/Service Data Unit) whose length is being validated as seen on the link"]
        pub mod SDU_TYPE {
            pub const offset: u32 = 16;
            pub const mask: u32 = 0x03 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "When cleared, the Tx Max SDU check is performed for Store and Forward frames"]
        pub mod SF_MAXSDU_DIS {
            pub const offset: u32 = 24;
            pub const mask: u32 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
    #[doc = "Port transmit traffic class a credit based shaper register 0"]
    pub mod PTCCBSR0 {
        #[doc = "Bandwidth"]
        pub mod BW {
            pub const offset: u32 = 0;
            pub const mask: u32 = 0x7f << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
        #[doc = "Credit Based Shaper Enable"]
        pub mod CBSE {
            pub const offset: u32 = 31;
            pub const mask: u32 = 0x01 << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {
                #[doc = "Disabled"]
                pub const DISABLE: u32 = 0;
                #[doc = "Enabled"]
                pub const ENABLE: u32 = 0x01;
            }
        }
    }
    #[doc = "Port traffic class a credit based shaper register 1"]
    pub mod PTCCBSR1 {
        #[doc = "hicredit (in credit units)"]
        pub mod HI_CREDIT {
            pub const offset: u32 = 0;
            pub const mask: u32 = 0xffff_ffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
}