English
Language : 

LAN9313 Datasheet, PDF (253/398 Pages) SMSC Corporation – Three Port 10/100 Managed Ethernet Switch with MII
Three Port 10/100 Managed Ethernet Switch with MII
Datasheet
13.3 Switch Fabric Control and Status Registers
This section details the various LAN9313/LAN9313i switch control and status registers that reside
within the switch fabric. The switch control and status registers allow configuration of each individual
switch port, the switch engine, and buffer manager. Switch fabric related interrupts and resets are also
controlled and monitored via the switch CSRs.
The switch CSRs are not memory mapped. All switch CSRs are accessed indirectly via the Switch
Fabric CSR Interface Command Register (SWITCH_CSR_CMD), Switch Fabric CSR Interface Data
Register (SWITCH_CSR_DATA), and Switch Fabric CSR Interface Direct Data Register
(SWITCH_CSR_DIRECT_DATA) in the system CSR memory mapped address space. All accesses to
the switch CSRs must be performed through these registers. Refer to Section 13.1.5, "Switch Fabric"
for additional information.
Note:
The flow control settings of the switch ports are configured via the Switch Fabric registers: Port
1 Manual Flow Control Register (MANUAL_FC_1), Port 2 Manual Flow Control Register
(MANUAL_FC_2), and Port 0(External MII) Manual Flow Control Register (MANUAL_FC_MII)
located in the system CSR address space.
Table 13.12 lists the Switch CSRs and their corresponding addresses in order. The switch fabric
registers can be categorized into the following sub-sections:
„ Section 13.3.1, "General Switch CSRs," on page 264
„ Section 13.3.2, "Switch Port 0, Port 1, and Port 2 CSRs," on page 268
„ Section 13.3.3, "Switch Engine CSRs," on page 312
„ Section 13.3.4, "Buffer Manager CSRs," on page 357
Table 13.12 Indirectly Accessible Switch Control and Status Registers
REGISTER #
0000h
0001h
0002h-0003h
0004h
0005h
0006h-03FFh
0400h
0401h
0402h-040Fh
0410h
0411h
0412h
0413h
SYMBOL
REGISTER NAME
General Switch CSRs
SW_DEV_ID
Switch Device ID Register, Section 13.3.1.1
SW_RESET
Switch Reset Register, Section 13.3.1.2
RESERVED
Reserved for Future Use
SW_IMR
Switch Global Interrupt Mask Register, Section 13.3.1.3
SW_IPR
Switch Global Interrupt Pending Register, Section 13.3.1.4
RESERVED
Reserved for Future Use
Switch Port 0 CSRs
MAC_VER_ID_MII
Port 0 MAC Version ID Register, Section 13.3.2.1
MAC_RX_CFG_MII
Port 0 MAC Receive Configuration Register, Section 13.3.2.2
RESERVED
Reserved for Future Use
MAC_RX_UNDSZE_CNT_MII Port 0 MAC Receive Undersize Count Register,
Section 13.3.2.3
MAC_RX_64_CNT_MII
Port 0 MAC Receive 64 Byte Count Register, Section 13.3.2.4
MAC_RX_65_TO_127_CNT_MII Port 0 MAC Receive 65 to 127 Byte Count Register,
Section 13.3.2.5
MAC_RX_128_TO_255_CNT_MII Port 0 MAC Receive 128 to 255 Byte Count Register,
Section 13.3.2.6
SMSC LAN9313/LAN9313i
253
DATASHEET
Revision 1.2 (04-08-08)