4 free-run counter (frc), 5 eeprom controller (epc), Table 3.2 eeprom format – SMSC LAN9420 User Manual

Page 31: Free-run counter (frc), Eeprom controller (epc), Eeprom format, Datasheet

Advertising
background image

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

Datasheet

SMSC LAN9420/LAN9420i

31

Revision 1.22 (09-25-08)

DATASHEET

Once enabled, the GPT counts down either until it reaches 0000h, or until a new pre-load value is
written to the GPT_LOAD field. At 0000h, the counter wraps around to FFFFh, asserts the GPT
interrupt status bit (GPT_INT) and the GPT interrupt (if the GPT_INT_EN bit is set), and continues
counting. GPT_INT is a sticky bit (R/WC), Once the GPT_INT bit is asserted, it can only be cleared
by writing a '1' to the bit. The GPT_INT hardware interrupt can only be asserted if the GPT_INT_EN
bit is set.

3.3.4

Free-Run Counter (FRC)

The FRC is a simple 32-bit up counter. The FRC counts at fixed rate of 6.25MHz (160nS resolution).
When the FRC reaches a value of FFFF_FFFFh, it wraps around to 0000_0000h and continues
counting. The FRC is operational in all power states. The FRC has no fixed function in
LAN9420/LAN9420i and is ideal for use by drivers as a timebase. The current FRC count is readable
in FREE_RUN SCSR. Please refer to

Section 4.2.10, "Free Run Counter (FREE_RUN)," on page 98

for more information on this register.

3.3.5

EEPROM Controller (EPC)

LAN9420/LAN9420i may use an optional, external, EEPROM to store the default values for the MAC
address, PCI Subsystem ID, and PCI Subsystem Vendor ID. The PCI Subsystem ID and PCI
Subsystem Vendor ID are used by the PCI Bridge (PCIB). The MAC address is used as the default
Ethernet MAC address and is loaded into the MAC’s ADDRH and ADDRL registers. If a properly
configured EEPROM is not detected, it is the responsibility of the Host LAN Driver to set the IEEE
addresses.

After a system-level reset occurs, LAN9420/LAN9420i will load the default values from a properly
configured EEPROM. LAN9420/LAN9420i will not accept PCI target transactions until this process is
completed.

The LAN9420/LAN9420i EEPROM controller also allows the Host system to read, write and erase the
contents of the Serial EEPROM. The EEPROM controller supports most “93C46” type EEPROMs
configured for 128 x 8-bit operation.

3.3.5.1

EEPROM Format

Table 3.2

illustrates the format in which data is stored inside of the EEPROM.

Table 3.2 EEPROM Format

EEPROM BYTE ADDRESS

EEPROM CONTENTS

0

0xA5

1

MAC Address [7:0]

2

MAC Address [15:8]

3

MAC Address [23:16]

4

MAC Address [32:24]

5

MAC Address [39:33]

6

MAC Address [47:40]

7

Subsystem Device ID [7:0]

8

Subsystem Device ID [15:8]

9

Subsystem Vendor ID [7:0]

0Ah

Subsystem Vendor ID [15:8]

Advertising
This manual is related to the following products: