Figure 3.3 csr double endian mapping, Figure 3.4 i/o bar mapping, 5 interrupt gating logic – SMSC LAN9420 User Manual

Page 27: I/o mapping of csr, Pci target interface transaction errors, Pci discard timer, Interrupt gating logic, Figure 3.3, "csr double endian, Mapping, Datasheet

Advertising
background image

Single-Chip Ethernet Controller with HP Auto-MDIX Support and PCI Interface

Datasheet

SMSC LAN9420/LAN9420i

27

Revision 1.22 (09-25-08)

DATASHEET

.

3.2.4.2.2

I/O MAPPING OF CSR

The I/O BAR (BAR4) is double mapped over the CSR space with the non-prefetchable area. The CSR
big endian space is disabled, as the Host processors (Intel x86) that use the I/O BAR are little endian.

Note: A comparison of

Figure 3.3

with

Figure 3.4

indicates only the first 256 bytes of CSR little endian

space is addressable via the I/O BAR.

.

3.2.4.3

PCI Target Interface Transaction Errors

If the Host system attempts an unsupported cycle type when accessing the CSR via the PCI Target
Interface, a slave transaction error will result and the PCI Target Interface will generate a Slave Bus
Error Interrupt (SBERR_INT), if enabled. CSR may only be read or written as DWORD quantities and
any other type of access is unsupported and will result in the assertion of SBERR_INT. Non-DWORD
reads will return a DWORD while non-DWORD writes are silently discarded. In order to cleanly recover
from this condition, a software reset or H/W reset must be performed. A software reset is accomplished
by setting the SRST bit of the BUS_MODE register.

3.2.4.4

PCI Discard Timer

When the PCI master performs a read of LAN9420/LAN9420i, the PCI Bridge will fetch the data and
acknowledge the PCI transfer when data is available. If the PCI master malfunctions and does
complete the transaction within 32768 PCI clocks, LAN9420/LAN9420i will flush the data to prevent a
potential bus lock-up.

3.2.5

Interrupt Gating Logic

One set of interrupts exists: PCI Host interrupts (PCI interrupts from LAN9420/LAN9420i to the PCI
Host). PCI Host interrupts result from the assertion of the internal IRQ signal from the Interrupt
Controller. Refer to

Section 3.3.1, "Interrupt Controller," on page 28

for sources of this interrupt.

Figure 3.5

illustrates how interrupts are sourced by the Interrupt Controller to the PCIB and are

propagated to the Host. The Interrupt is passed on to the Host only when the Host has enabled it by
setting bit 10 in the PCI Device Command Register. The Host may obtain interrupt status by reading

Figure 3.3 CSR Double Endian Mapping

Figure 3.4 I/O Bar Mapping

CSR - Big Endian (512 Bytes)

BA (BAR3)

CSR - Little Endian (512 Bytes)

BA + 1FCh

BA + 200h

BA + 3FCh

BA (BAR4)

CSR - Little Endian ( 256 Bytes)

BA + 0FCh

I/O BAR and non-
prefetchable memory
are double mapped to
the CSR space

Advertising
This manual is related to the following products: