High Performance Two Port 10/100 Managed Ethernet Switch with 32-Bit Non-PCI CPU Interface
Datasheet
14.2.2
Host MAC & FIFO’s
This section details the Host MAC and TX/RX FIFO related System CSR’s.
These Host Bus Interface accessible registers allow for the configuration of the TX/RX FIFO’s, Host
MAC and indirect access to the complete set of Host MAC CSR’s. The Host MAC CSR’s are
accessible through the Host Bus Interface via the Host MAC CSR Interface Command Register
(MAC_CSR_CMD) and Host MAC CSR Interface Data Register (MAC_CSR_DATA).
Note: For more information on the TX/RX FIFO’s, refer to Section 14.1, "TX/RX FIFO Ports".
Note: The full list of Host MAC CSR’s are described in Section 14.3, "Host MAC Control and Status
Registers," on page 270. For more information on the Host MAC, refer to Chapter 9, "Host
MAC," on page 112.
14.2.2.1
Receive Configuration Register (RX_CFG)
Offset:
06Ch
Size:
32 bits
This register controls the Host MAC receive engine.
BITS
DESCRIPTION
TYPE
DEFAULT
31:30
RX End Alignment (RX_EA)
R/W
00b
This field specifies the alignment that must be maintained on the last data
transfer of a buffer. The LAN9312 will add extra DWORD’s of data up to
the alignment specified in the table below. The host is responsible for
removing these extra DWORD’s. This mechanism can be used to maintain
cache line alignment on host processors.
BIT
VALUES
[31:30]
END ALIGNMENT
00
01
10
11
4-Byte Alignment
16-Byte Alignment
32-Byte Alignment
RESERVED
Note:
The desired RX End Alignment must be set before reading a
packet. The RX End Alignment can be changed between reading
receive packets, but must not be changed if the packet is partially
read.
29:28
27:16
RESERVED
RO
-
RX DMA Count (RX_DMA_CNT)
R/W
000h
This 12-bit field indicates the amount of data, in DWORD’s, to be
transferred out of the RX Data FIFO before asserting the RX DMA Interrupt
(RXD_INT). After being set, this field is decremented for each DWORD of
data that is read from the RX Data FIFO. This field can be overwritten with
a new value before it reaches zero.
15
Force RX Discard (RX_DUMP)
When a 1 is written to this bit, the RX Data and Status FIFO’s are cleared
of all pending data and the RX data and status pointers are cleared to zero.
WO
SC
0b
Note:
Please refer to Section 9.9.1.2, "Force Receiver Discard (Receiver
Dump)," on page 134 for a detailed description regarding the use
of RX_DUMP.
Revision 1.2 (04-08-08)
180
SMSC LAN9312
DATASHEET