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
#[doc = "ENETC base"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "ENETC capability register 0"]
    pub ECAPR0: crate::RORegister<u32>,
    #[doc = "ENETC capability register 1"]
    pub ECAPR1: crate::RORegister<u32>,
    #[doc = "ENETC capability register 2"]
    pub ECAPR2: crate::RORegister<u32>,
    _reserved0: [u8; 0x04],
    #[doc = "Port mode register"]
    pub PMR: crate::RWRegister<u32>,
    _reserved1: [u8; 0x6c],
    #[doc = "Port outer native VLAN register"]
    pub PONVLANR: crate::RWRegister<u32>,
    #[doc = "Port inner native VLAN register"]
    pub PINVLANR: crate::RWRegister<u32>,
    #[doc = "Port VLAN classification control register"]
    pub PVCLCTR: crate::RWRegister<u32>,
    _reserved2: [u8; 0x10],
    #[doc = "Parser checksum configuration register"]
    pub PARCSCR: crate::RWRegister<u32>,
    #[doc = "Parser custom Ethertype i configuration register"]
    pub PARCECR: [crate::RWRegister<u32>; 4usize],
    _reserved3: [u8; 0x58],
    #[doc = "Port pause ON threshold register"]
    pub PPAUONTR: crate::RWRegister<u32>,
    #[doc = "Port pause OFF threshold register"]
    pub PPAUOFFTR: crate::RWRegister<u32>,
    _reserved4: [u8; 0x10],
    #[doc = "Port receive memory buffer entitlement register"]
    pub PRXMBER: crate::RORegister<u32>,
    #[doc = "Port receive memory buffer limit register"]
    pub PRXMBLR: crate::RORegister<u32>,
    #[doc = "Port receive buffer count register"]
    pub PRXBCR: crate::RORegister<u32>,
    #[doc = "Port receive buffer count high watermark register"]
    pub PRXBCHWMR: crate::RORegister<u32>,
    _reserved5: [u8; 0x10],
    #[doc = "Set of registers which provides number of frame discarded by the Ingress Congestion Manager."]
    pub PICDRADCR: [picdradcr::RegisterBlock; 4usize],
    #[doc = "Port ingress congestion priority discard status register"]
    pub PICPDSR: crate::RWRegister<u32>,
    _reserved6: [u8; 0x7c],
    #[doc = "Port station interface promiscuous MAC mode register"]
    pub PSIPMMR: crate::RWRegister<u32>,
    #[doc = "Port station interface promiscuous VLAN mode register"]
    pub PSIPVMR: crate::RWRegister<u32>,
    #[doc = "Port broadcast frames dropped due to MAC filtering register"]
    pub PBFDSIR: crate::RORegister<u32>,
    #[doc = "Port frame drop MAC source address pruning register"]
    pub PFDMSAPR: crate::RORegister<u32>,
    _reserved7: [u8; 0x70],
    #[doc = "Port station interface MAC address filtering capability register"]
    pub PSIMAFCAPR: crate::RORegister<u32>,
    #[doc = "Port unicast frames dropped due to MAC filtering register"]
    pub PUFDMFR: crate::RORegister<u32>,
    #[doc = "Port multicast frames dropped due to MAC filtering register"]
    pub PMFDMFR: crate::RORegister<u32>,
    _reserved8: [u8; 0x34],
    #[doc = "Port station interface VLAN filtering capability register"]
    pub PSIVLANFCAPR: crate::RORegister<u32>,
    #[doc = "Port station interface VLAN filtering mode register"]
    pub PSIVLANFMR: crate::RWRegister<u32>,
    _reserved9: [u8; 0x08],
    #[doc = "Port unicast frames dropped VLAN filtering register"]
    pub PUFDVFR: crate::RORegister<u32>,
    #[doc = "Port multicast frames dropped VLAN filtering register"]
    pub PMFDVFR: crate::RORegister<u32>,
    #[doc = "Port broadcast frames dropped VLAN filtering register"]
    pub PBFDVFR: crate::RORegister<u32>,
    _reserved10: [u8; 0x64],
    #[doc = "Port low power mode register"]
    pub PLPMR: crate::RWRegister<u32>,
    #[doc = "Port wake-on status register"]
    pub PWOSR: crate::RORegister<u32>,
    _reserved11: [u8; 0x28],
    #[doc = "Receive IPV to ICM priority mapping register 0"]
    pub IPV2ICMPMR0: crate::RWRegister<u32>,
    _reserved12: [u8; 0x0c],
    #[doc = "Transmit priority to traffic class mapping register 0"]
    pub PRIO2TCMR0: crate::RWRegister<u32>,
    _reserved13: [u8; 0x0c],
    #[doc = "Port traffic class a time specific departure register"]
    pub PTCTSDR: [crate::RWRegister<u32>; 8usize],
    _reserved14: [u8; 0x0450],
    #[doc = "Switch management capability register"]
    pub SMCAPR: crate::RORegister<u32>,
    _reserved15: [u8; 0x17fc],
    #[doc = "Port station interface 0 primary MAC address register 0"]
    pub PSI0PMAR0: crate::RORegister<u32>,
    #[doc = "Port station interface 0 primary MAC address register 1"]
    pub PSI0PMAR1: crate::RORegister<u32>,
    #[doc = "Port station interface 0 VLAN register"]
    pub PSI0VLANR: crate::RWRegister<u32>,
    _reserved16: [u8; 0x04],
    #[doc = "Port station interface 0 configuration register 0"]
    pub PSI0CFGR0: crate::RWRegister<u32>,
    _reserved17: [u8; 0x04],
    #[doc = "Port station interface 0 configuration register 2"]
    pub PSI0CFGR2: crate::RWRegister<u32>,
    _reserved18: [u8; 0x14],
    #[doc = "Port station interface 0 VSI MAC address filtering configuration register"]
    pub PSI0VMAFCFGR: crate::RWRegister<u32>,
    #[doc = "Port station interface 0 VLAN filtering configuration register"]
    pub PSI0VLANFCFGR: crate::RWRegister<u32>,
    _reserved19: [u8; 0x18],
    #[doc = "Port station interface 0 unicast MAC hash filter register 0"]
    pub PSI0UMHFR0: crate::RWRegister<u32>,
    #[doc = "Port station interface 0 unicast MAC hash filter register 1"]
    pub PSI0UMHFR1: crate::RWRegister<u32>,
    #[doc = "Port station interface 0 multicast MAC hash filter register 0"]
    pub PSI0MMHFR0: crate::RWRegister<u32>,
    #[doc = "Port station interface 0 multicast MAC hash filter register 1"]
    pub PSI0MMHFR1: crate::RWRegister<u32>,
    #[doc = "Port station interface 0 VLAN hash filter register 0"]
    pub PSI0VHFR0: crate::RWRegister<u32>,
    #[doc = "Port station interface 0 VLAN hash filter register 1"]
    pub PSI0VHFR1: crate::RWRegister<u32>,
}
#[doc = "ENETC capability register 0"]
pub mod ECAPR0 {
    #[doc = "Receive flow steering support 0: Not supported 1: Supported"]
    pub mod RFS {
        pub const offset: u32 = 2;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Support for time specific departure. 0: Not supported 1: Supported"]
    pub mod TSD {
        pub const offset: u32 = 5;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Support for RSS 0: Not supported 1: Supported"]
    pub mod RSS {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Support for Wake-on-LAN in low-power mode 0: Not supported 1: Supported"]
    pub mod WO {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Functional safety capability supported."]
    pub mod FS {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "ENETC capability register 1"]
pub mod ECAPR1 {
    #[doc = "Number of traffic classes 0 - 1 Traffic class (0) 1 - 2 Traffic classes (0-1)"]
    pub mod NUM_TCS {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Number of multi-cast hash entry (1bit/entry) per SI for L2 MAC Filtering 00: 64 multi-cast bins 01: 128 multi-cast bins 10: 256 multi-cast bins 11: 512 multi-cast bins"]
    pub mod NUM_MCH {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Number of uni-cast hash entry (1bit/entry) per SI for L2 MAC Filtering 00: 64 unicast bins 01: 128 unicast bins 10: 256 unicast bins 11: 512 unicast bins"]
    pub mod NUM_UCH {
        pub const offset: u32 = 10;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Number of MSI-X"]
    pub mod NUM_MSIX {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x07ff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates the number of VSI supported"]
    pub mod NUM_VSI {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Indicates the number of IPVs supported. 0: 8 IPVs 1: 16 IPVs"]
    pub mod NUM_IPV {
        pub const offset: u32 = 31;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "ENETC capability register 2"]
pub mod ECAPR2 {
    #[doc = "Number of total transmit buffer descriptor rings assigned to ENETC Range: 0..1023"]
    pub mod NUM_TX_BDR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x03ff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Number of total receive buffer descriptor rings assigned to ENETC Range: 0..1023"]
    pub mod NUM_RX_BDR {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x03ff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port mode register"]
pub mod PMR {
    #[doc = "Enable station interface 0"]
    pub mod SI0EN {
        pub const offset: u32 = 16;
        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 outer native VLAN register"]
pub mod PONVLANR {
    #[doc = "VLAN identifier The VLAN identifier is a 12-bit field specifying the VLAN to which the frame belongs"]
    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 May be used separately or in conjunction with PCP to indicate frames eligible to be dropped in the presence of congestion"]
    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 A 3-bit field which refers to the IEEE 802"]
    pub mod PCP {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Identifies which known VLAN Ethertype is used"]
    pub mod TPID {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Standard C-VLAN 0x8100"]
            pub const C_VLAN: u32 = 0;
            #[doc = "Standard S-VLAN 0x88A8"]
            pub const S_VLAN: u32 = 0x01;
            #[doc = "Custom VLAN as defined by CVLANR1\\[ETYPE\\]"]
            pub const CVLANR1_ETYPE: u32 = 0x02;
            #[doc = "Custom VLAN as defined by CVLANR2\\[ETYPE\\]"]
            pub const CVLANR2_ETYPE: u32 = 0x03;
        }
    }
    #[doc = "Port Native VLAN Enable"]
    pub mod PNE {
        pub const offset: u32 = 18;
        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 = "VID 0 Enable"]
    pub mod VZE {
        pub const offset: u32 = 19;
        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 inner native VLAN register"]
pub mod PINVLANR {
    #[doc = "VLAN identifier The VLAN identifier is a 12-bit field specifying the VLAN to which the frame belongs"]
    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 May be used separately or in conjunction with PCP to indicate frames eligible to be dropped in the presence of congestion"]
    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 A 3-bit field which refers to the IEEE 802"]
    pub mod PCP {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Identifies which known VLAN Ethertype is used"]
    pub mod TPID {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Standard C-VLAN 0x8100"]
            pub const C_VLAN: u32 = 0;
            #[doc = "Standard S-VLAN 0x88A8"]
            pub const S_VLAN: u32 = 0x01;
            #[doc = "Custom VLAN as defined by CVLANR1\\[ETYPE\\]"]
            pub const CVLANR1_ETYPE: u32 = 0x02;
            #[doc = "Custom VLAN as defined by CVLANR2\\[ETYPE\\]"]
            pub const CVLANR2_ETYPE: u32 = 0x03;
        }
    }
    #[doc = "Port Native VLAN Enable"]
    pub mod PNE {
        pub const offset: u32 = 18;
        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 ENABLED: u32 = 0x01;
        }
    }
    #[doc = "VID 0 Enable"]
    pub mod VZE {
        pub const offset: u32 = 19;
        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 VLAN classification control register"]
pub mod PVCLCTR {
    #[doc = "Outer as Inner"]
    pub mod OAI {
        pub const offset: u32 = 9;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Indicates that the Inner is not valid if only one tag is found"]
            pub const NOT_VALID: u32 = 0;
            #[doc = "Indicates that the outer should be used as the Inner if only one tag is found"]
            pub const OUTER: u32 = 0x01;
        }
    }
}
#[doc = "Parser checksum configuration register"]
pub mod PARCSCR {
    #[doc = "Layer 4 TCP and UDP checksum validation Disable."]
    pub mod L4CD {
        pub const offset: u32 = 0;
        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 = "Layer 3 IPv4 Header checksum validation Disable."]
    pub mod L3CD {
        pub const offset: u32 = 1;
        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 = "Parser custom Ethertype i configuration register"]
pub mod PARCECR {
    #[doc = "Code Point"]
    pub mod CP {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Enable"]
    pub mod EN {
        pub const offset: u32 = 5;
        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 = "ETYPE"]
    pub mod ETYPE {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0xffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port pause ON threshold register"]
pub mod PPAUONTR {
    #[doc = "Monitors the amount of data accumulated in the receive buffer and if this amount exceeds the Pause ON threshold (expressed in words), it then enters the \"Pause ON\" state if Pause is enabled"]
    pub mod THRESH {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x00ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port pause OFF threshold register"]
pub mod PPAUOFFTR {
    #[doc = "Monitors the amount of data accumulated in the receive buffer and if this amount goes below the Pause OFF threshold (expressed in words) it then enters the \"Pause OFF\" state if Pause is enabled"]
    pub mod THRESH {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x00ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port receive memory buffer entitlement register"]
pub mod PRXMBER {
    #[doc = "Receive memory buffer entitlement in words This receive Memory Buffer Entitlement is used in determining smart drop for ingress congestion control"]
    pub mod AMOUNT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x00ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port receive memory buffer limit register"]
pub mod PRXMBLR {
    #[doc = "Receive buffer memory limit in words"]
    pub mod LIMIT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x00ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port receive buffer count register"]
pub mod PRXBCR {
    #[doc = "Current receive buffer usage count in words for this port."]
    pub mod COUNT {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x00ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port receive buffer count high watermark register"]
pub mod PRXBCHWMR {
    #[doc = "High watermark in words for receive buffer usage since the last read of this register"]
    pub mod WATERMARK {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x00ff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port ingress congestion priority discard status register"]
pub mod PICPDSR {
    #[doc = "DR0 priority 0 discard status The bit will be set to 1 if one or more frames have been discarded at this DR and priority"]
    pub mod DR0_P0DS {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "DR0 priority 1 discard status The bit will be set to 1 if one or more frames have been discarded at this DR and priority"]
    pub mod DR0_P1DS {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "DR1 priority 0 discard status The bit will be set to 1 if one or more frames have been discarded at this DR and priority"]
    pub mod DR1_P0DS {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "DR1 priority 1 discard status The bit will be set to 1 if one or more frames have been discarded at this DR and priority"]
    pub mod DR1_P1DS {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "DR2 priority 0 discard status The bit will be set to 1 if one or more frames have been discarded at this DR and priority"]
    pub mod DR2_P0DS {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "DR2 priority 1 discard status The bit will be set to 1 if one or more frames have been discarded at this DR and priority"]
    pub mod DR2_P1DS {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "DR3 priority 0 discard status The bit will be set to 1 if one or more frames have been discarded at this DR and priority"]
    pub mod DR3_P0DS {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "DR3 priority 1 discard status The bit will be set to 1 if one or more frames have been discarded at this DR and priority"]
    pub mod DR3_P1DS {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface promiscuous MAC mode register"]
pub mod PSIPMMR {
    #[doc = "SI 0 MAC unicast promiscuous"]
    pub mod SI0_MAC_UP {
        pub const offset: u32 = 0;
        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 = "SI 0 MAC multicast promiscuous"]
    pub mod SI0_MAC_MP {
        pub const offset: u32 = 16;
        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 station interface promiscuous VLAN mode register"]
pub mod PSIPVMR {
    #[doc = "SI 0 VLAN promiscuous. This field specifies if SI 0 qualifies for the reception of all VLAN tags."]
    pub mod SI0_VLAN_P {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "SI 0 does not qualify for the reception of all VLAN tags"]
            pub const NOT_QUALIFY: u32 = 0;
            #[doc = "SI 0 does qualify for the reception of all VLAN tags"]
            pub const QUALIFY: u32 = 0x01;
        }
    }
    #[doc = "SI 0 Untagged frames (no VLAN) accepted"]
    pub mod SI0_VLAN_UTA {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "SI 0 does not qualify for reception of untagged frames"]
            pub const NOT_QUALIFIED: u32 = 0;
            #[doc = "SI 0 does qualify for reception of untagged frames"]
            pub const QUALIFY: u32 = 0x01;
        }
    }
}
#[doc = "Port broadcast frames dropped due to MAC filtering register"]
pub mod PBFDSIR {
    #[doc = "MAC filter broadcast frame drop counter bits 31-0"]
    pub mod FRAME_DROP {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port frame drop MAC source address pruning register"]
pub mod PFDMSAPR {
    #[doc = "MAC source address pruning frame drop counter bits 31-0"]
    pub mod FRAME_DROP {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface MAC address filtering capability register"]
pub mod PSIMAFCAPR {
    #[doc = "Number of SI MAC address filter rules per port."]
    pub mod NUM_MAC_AFTE {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x0fff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port unicast frames dropped due to MAC filtering register"]
pub mod PUFDMFR {
    #[doc = "MAC filter unicast frame drop counter bits 31-0"]
    pub mod FRAME_DROP {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port multicast frames dropped due to MAC filtering register"]
pub mod PMFDMFR {
    #[doc = "MAC filter multicast frame drop counter bits 31-0"]
    pub mod FRAME_DROP {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface VLAN filtering capability register"]
pub mod PSIVLANFCAPR {
    #[doc = "Number of VLAN filter table entries per port. Range: 0..4K-1"]
    pub mod NUM_VLAN_FTE {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x0fff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface VLAN filtering mode register"]
pub mod PSIVLANFMR {
    #[doc = "VLAN tag select"]
    pub mod VS {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Inner VLAN tag will be used for VLAN filtering"]
            pub const INNER_VLAN: u32 = 0;
            #[doc = "Outer VLAN tag will be used for VLAN filtering"]
            pub const OUTER_VLAN: u32 = 0x01;
        }
    }
}
#[doc = "Port unicast frames dropped VLAN filtering register"]
pub mod PUFDVFR {
    #[doc = "VLAN filter unicast frame drop counter bits 31-0"]
    pub mod FRAME_DROP {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port multicast frames dropped VLAN filtering register"]
pub mod PMFDVFR {
    #[doc = "VLAN filter multicast frame drop counter bits 31-0"]
    pub mod FRAME_DROP {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port broadcast frames dropped VLAN filtering register"]
pub mod PBFDVFR {
    #[doc = "VLAN filter broadcast frame drop counter bits 31-0"]
    pub mod FRAME_DROP {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port low power mode register"]
pub mod PLPMR {
    #[doc = "Wake-on-LAN mode enable When Wake-on-LAN mode is enabled, ENETC will detect Wake-on-LAN events."]
    pub mod WME {
        pub const offset: u32 = 0;
        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 wake-on status register"]
pub mod PWOSR {
    #[doc = "Wake-On-LAN active"]
    pub mod WOLA {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Inactive"]
            pub const INACTIVE: u32 = 0;
            #[doc = "Active. ENETC is actively searching for frames matching the Wake-on-LAN event criteria."]
            pub const ACTIVE: u32 = 0x01;
        }
    }
    #[doc = "ICM blocked"]
    pub mod ICMB {
        pub const offset: u32 = 1;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Not blocked"]
            pub const NOT_BLOCKED: u32 = 0;
            #[doc = "Blocked."]
            pub const BLOCKED: u32 = 0x01;
        }
    }
}
#[doc = "Receive IPV to ICM priority mapping register 0"]
pub mod IPV2ICMPMR0 {
    #[doc = "Mapping of internal priority value (IPV) i={0"]
    pub mod IPV0ICM {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Mapping of internal priority value (IPV) i={0"]
    pub mod IPV1ICM {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Mapping of internal priority value (IPV) i={0"]
    pub mod IPV2ICM {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Mapping of internal priority value (IPV) i={0"]
    pub mod IPV3ICM {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Mapping of internal priority value (IPV) i={0"]
    pub mod IPV4ICM {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Mapping of internal priority value (IPV) i={0"]
    pub mod IPV5ICM {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Mapping of internal priority value (IPV) i={0"]
    pub mod IPV6ICM {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Mapping of internal priority value (IPV) i={0"]
    pub mod IPV7ICM {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Transmit priority to traffic class mapping register 0"]
pub mod PRIO2TCMR0 {
    #[doc = "Transmit BD ring priority to traffic class mapping"]
    pub mod PRIO0TC {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Transmit BD ring priority to traffic class mapping"]
    pub mod PRIO1TC {
        pub const offset: u32 = 4;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Transmit BD ring priority to traffic class mapping"]
    pub mod PRIO2TC {
        pub const offset: u32 = 8;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Transmit BD ring priority to traffic class mapping"]
    pub mod PRIO3TC {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Transmit BD ring priority to traffic class mapping"]
    pub mod PRIO4TC {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Transmit BD ring priority to traffic class mapping"]
    pub mod PRIO5TC {
        pub const offset: u32 = 20;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Transmit BD ring priority to traffic class mapping"]
    pub mod PRIO6TC {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Transmit BD ring priority to traffic class mapping"]
    pub mod PRIO7TC {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port traffic class a time specific departure register"]
pub mod PTCTSDR {
    #[doc = "Time specific Departure Enable The 1588 timer must be configured and enabled, and time gate scheduling for the port must be enabled (PTGSCR\\[TGE\\] set to 1), before enabling time specific departure on any traffic class"]
    pub mod TSDE {
        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 = "Switch management capability register"]
pub mod SMCAPR {
    #[doc = "Switch Management"]
    pub mod SM {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "ENETC instance has no switch management capability"]
            pub const NO_SW: u32 = 0;
            #[doc = "ENETC instance has switch management capability"]
            pub const SW: u32 = 0x01;
        }
    }
}
#[doc = "Port station interface 0 primary MAC address register 0"]
pub mod PSI0PMAR0 {
    #[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 station interface 0 primary MAC address register 1"]
pub mod PSI0PMAR1 {
    #[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 station interface 0 VLAN register"]
pub mod PSI0VLANR {
    #[doc = "VLAN identifier The VLAN identifier is a 12-bit field specifying the VLAN to which the frame belongs"]
    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 May be used separately or in conjunction with PCP to indicate frames eligible to be dropped in the presence of congestion"]
    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 A 3-bit field which refers to the IEEE 802"]
    pub mod PCP {
        pub const offset: u32 = 13;
        pub const mask: u32 = 0x07 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Tag protocol identifier"]
    pub mod TPID {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x03 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "Standard C-VLAN 0x8100"]
            pub const C_VLAN: u32 = 0;
            #[doc = "Standard S-VLAN 0x88A8"]
            pub const S_VLAN: u32 = 0x01;
            #[doc = "Custom VLAN as defined by CVLANR1\\[ETYPE\\]. Note that CVLANR1\\[V\\] is not checked for SI-based VLAN insertion; TPID value specified in CVLANR1\\[ETYPE\\] will be used to construct the VLAN header regardless of the value specified in CVLANR1\\[V\\]."]
            pub const CVLANR1_V: u32 = 0x02;
            #[doc = "Custom VLAN as defined by CVLANR2\\[ETYPE\\]. Note that CVLANR2\\[V\\] is not checked for SI-based VLAN insertion; TPID value specified in CVLANR2\\[ETYPE\\] will be used to construct the VLAN header regardless of the value specified in CVLANR2\\[V\\]."]
            pub const CVLANR2_V: u32 = 0x03;
        }
    }
    #[doc = "Enable"]
    pub mod E {
        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; SI-based VLAN information is added on transmit and removed on receive."]
            pub const ENABLE: u32 = 0x01;
        }
    }
}
#[doc = "Port station interface 0 configuration register 0"]
pub mod PSI0CFGR0 {
    #[doc = "Number of transmit buffer descriptor rings assigned to the SI Range: 0"]
    pub mod NUM_TX_BDR {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x7f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Source Pruning Enable"]
    pub mod SPE {
        pub const offset: u32 = 11;
        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 = "VLAN Tag Extract"]
    pub mod VTE {
        pub const offset: u32 = 12;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "SI-based VLAN removal disabled"]
            pub const DISABLE: u32 = 0;
            #[doc = "SI-based VLAN removal enabled"]
            pub const ENABLE: u32 = 0x01;
        }
    }
    #[doc = "SI-based VLAN Insertion Enable"]
    pub mod SIVIE {
        pub const offset: u32 = 14;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {
            #[doc = "SI-based VLAN insertion disabled"]
            pub const DISABLE: u32 = 0;
            #[doc = "SI-based VLAN insertion enabled"]
            pub const ENABLE: u32 = 0x01;
        }
    }
    #[doc = "Anti-spoofing enable"]
    pub mod ASE {
        pub const offset: u32 = 15;
        pub const mask: u32 = 0x01 << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Number of receive buffer descriptor rings assigned to the SI Range: 0"]
    pub mod NUM_RX_BDR {
        pub const offset: u32 = 16;
        pub const mask: u32 = 0x7f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Station interface VLAN control Determines which VLAN Ethertypes can be inserted by the SI driver (e"]
    pub mod SIVC {
        pub const offset: u32 = 24;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
    #[doc = "Station interface traffic class bandwidth weight Frames are selected for transmission between station interfaces based on a per traffic class basis using the Weighted Fair Bandwidth Sharing algorithm"]
    pub mod SIBW {
        pub const offset: u32 = 28;
        pub const mask: u32 = 0x0f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface 0 configuration register 2"]
pub mod PSI0CFGR2 {
    #[doc = "Number of MSI-X"]
    pub mod NUM_MSIX {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0x3f << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface 0 VSI MAC address filtering configuration register"]
pub mod PSI0VMAFCFGR {
    #[doc = "Number of SI MAC address filter table entries assigned to the SI"]
    pub mod NUM_MAC_AFTE {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface 0 VLAN filtering configuration register"]
pub mod PSI0VLANFCFGR {
    #[doc = "Number of VLAN filter table entries assigned to the SI"]
    pub mod NUM_VLAN_FTE {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface 0 unicast MAC hash filter register 0"]
pub mod PSI0UMHFR0 {
    #[doc = "Lower 32-bits (31-0) of unicast MAC hash filter table indexed by unicast MAC address hash."]
    pub mod MAC_HASH_FLT_LOW {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface 0 unicast MAC hash filter register 1"]
pub mod PSI0UMHFR1 {
    #[doc = "Upper 32-bits (63-32) of unicast MAC hash filter table indexed by unicast MAC address hash."]
    pub mod MAC_HASH_FLT_HIGH {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface 0 multicast MAC hash filter register 0"]
pub mod PSI0MMHFR0 {
    #[doc = "Lower 32-bits (31-0) of multicast MAC hash filter table indexed by unicast MAC address hash."]
    pub mod MAC_HASH_FLT_LOW {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface 0 multicast MAC hash filter register 1"]
pub mod PSI0MMHFR1 {
    #[doc = "Upper 32-bits (63-32) of multicast MAC hash filter table indexed by unicast MAC address hash."]
    pub mod MAC_HASH_FLT_HIGH {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface 0 VLAN hash filter register 0"]
pub mod PSI0VHFR0 {
    #[doc = "Lower 32-bits (31-0) of VLAN hash filter table indexed by VLAN hash."]
    pub mod VLAN_HASH_FLT_LOW {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
#[doc = "Port station interface 0 VLAN hash filter register 1"]
pub mod PSI0VHFR1 {
    #[doc = "Upper 32-bits (63-32) of VLAN hash filter table indexed by VLAN hash."]
    pub mod VLAN_HASH_FLT_HIGH {
        pub const offset: u32 = 0;
        pub const mask: u32 = 0xffff_ffff << offset;
        pub mod R {}
        pub mod W {}
        pub mod RW {}
    }
}
pub mod picdradcr {
    #[doc = "Set of registers which provides number of frame discarded by the Ingress Congestion Manager."]
    #[repr(C)]
    pub struct RegisterBlock {
        #[doc = "Port ingress congestion DRindex discard count register"]
        pub PICDRDCR: crate::RORegister<u32>,
        _reserved0: [u8; 0x04],
        #[doc = "Port ingress congestion DRindex discard count read-reset register"]
        pub PICDRDCRRR: crate::RORegister<u32>,
        _reserved1: [u8; 0x04],
    }
    #[doc = "Port ingress congestion DRindex discard count register"]
    pub mod PICDRDCR {
        #[doc = "Number of frames discarded by Ingress Congestion Manager, for this port, and for each discard resilience (DR) value"]
        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 ingress congestion DRindex discard count read-reset register"]
    pub mod PICDRDCRRR {
        #[doc = "Reading this register provides the count of all frames discarded at this DR level, since the last reset of this count, and also resets the count after the read"]
        pub mod COUNT {
            pub const offset: u32 = 0;
            pub const mask: u32 = 0xffff_ffff << offset;
            pub mod R {}
            pub mod W {}
            pub mod RW {}
        }
    }
}