
RTL8305SC
Datasheet
5-port 10/100Mbps Single-Chip Dual MII Switch Controller
60
Track ID: JATR-1076-21 Rev. 1.2
7.1.11. PHY 0 Register 22: Port 0 Control Register 0
Table 70. PHY 0 Register 22: Port 0 Control Register 0
Reg.bit
Name
Mode Description
Default
22.15
Reserved
1
22.14
Internal Use
RW
0
22.13
Port 0 Local
loopback
RW
1: Perform ‘local loopback’, i.e. loop MAC’s RX back to TX.
0: Normal operation
0
22.12
Internal Use
RW
0
22.11
Port 0 Non PVID
packets Discard
RW
1: If the received packets are tagged, the switch will discard
packets whose VID does not match the ingress port default VID,
which is indexed by port 0’s ‘Port based VLAN index’
0: No packets will be discarded
0
22.10
Port 0 802.1p
priority Disable
RW
1: Disable 802.1p priority classification for ingress packets on
port 0
0: Enable 802.1p priority classification
Pin
DisTagPri
strap option
Default=1
22.9
Port 0 Diffserv
priority Disable
RW
1: Disable Diffserv priority classification for ingress packets on
port 0
0: Enable Diffserv priority classification
Pin DisDSPri
strap option
Default=1
22.8
Port 0 port-based
priority Disable
RW
1: Disable port-based priority QoS function on port 0
0: Enable port-based priority QoS function on port 0. Ingress
packet on port 0 will be classified as high priority
Pin
DisPortPri[0]
strap option
Default=1
22.7
Reserved
0
22.6
Internal Use
RW
1
22.[5:4]
Internal Use
RW
1
22.3
Internal Use
RW
1
22.2
Internal Use
RW
1
22.[1:0]
Port 0 VLAN tag
insert and remove
RW
11=Do not insert or remove VLAN tags to/from packets that are
output on this port
10=The switch will add VLAN tags to packets, if they are not
tagged when these packets are output on this port. The switch
will not add tags to packets already tagged. The inserted tag is
the ingress port’s ‘Default tag’, which is indexed by port 0’s
‘Port based VLAN index’
01=The switch will remove VLAN tags from packets if they are
tagged when these packets are output on port 0. The switch will
not modify packets received without tags
00=The switch will remove VLAN tags from packets then add
new tags to them. The inserted tag is the ingress port’s ‘Default
tag’, which is indexed by port 0’s ‘Port based VLAN index’.
This is a replacement processing for tagged packets and an
insertion for untagged packets
11