RTL8169
2002/03/27 Rev.1.21
34
7. EEPROM (93C46 or 93C56) Contents
The RTL8169 supports the attachment of an external EEPROM. The 93C46 is a 1K-bit EEPROM, and the 93C56 is a 2K-bit
EEPROM. The EEPROM interface provides the ability for the RTL8169 to read from and write data to an external serial
EEPROM device. Values in the external EEPROM allow default fields in PCI configuration space and I/O space to be
overridden following internal power on reset or software EEPROM autoload command. The RTL8169 will autoload values from
the EEPROM to these fields in configuration space and I/O space. If the EEPROM is not present, the RTL8169 initialization
uses default values for the appropriate Configuration and Operational Registers. Software can read and write to the EEPROM
using “bit-bang” accesses via the 9346CR Register.
Although it is actually addressed by words, its contents are listed below by bytes for convenience. After the initial power on or
autoload command in 9346CR, the RTL8169 performs a series of EEPROM read operations from the 93C46 (93C56) address
00h to 31h.
It is suggested to obtain Realtek approval before changing the default settings of the EEPROM.
Bytes Contents Description
00h 29h
01h 81h
These 2 bytes contain ID code words for the RTL8169. The RTL8169 will load the
contents of the EEPROM into the corresponding location if the ID word (8129h) is
correct. Otherwise, the Vendor ID and Device ID of the PCI configuration space are
"10ECh" and "8169h".
02h-03h VID
PCI Vendor ID: PCI configuration space offset 00h-01h.
04h-05h DID
PCI Device ID: PCI configuration space offset 02h-03h.
06h-07h SVID
PCI Subsystem Vendor ID: PCI configuration space offset 2Ch-2Dh.
08h-09h SMID
PCI Subsystem ID: PCI configuration space offset 2Eh-2Fh.
0Ah MNGNT
PCI Minimum Grant Timer: PCI configuration space offset 3Eh.
0Bh MXLAT
PCI Maximum Latency Timer: PCI configuration space offset 3Fh. Set by software to
the number of PCI clocks that the RTL8169 may hold the PCI bus.
Bit3: EnTBI. When set, TBI mode is enabled. Otherwise, the RTL8169 operates in
GMII/MII mode.
Bit 7 6 5 4 3 2 1 0
- - - - EnTBI (bit7,
PHYStatus)
- - -
0Ch CONFIGx
0Dh CONFIG3
RTL8169 Configuration register 3: Operational register offset 59h.
0Eh-13h Ethernet ID
Ethernet ID: After auto-load command or hardware reset, the RTL8169 loads Ethernet
ID to IDR0-IDR5 of the RTL8169's I/O registers.
14h CONFIG0
RTL8169 Configuration register 0: Operational registers offset 51h.
15h CONFIG1
RTL8169 Configuration register 1: Operational registers offset 52h.
16h-17h PMC
Reserved: Do not change this field without Realtek approval.
Power Management Capabilities. PCI configuration space address 52h and 53h.
18h -
Reserved
19h CONFIG4
Reserved: Do not change this field without Realtek approval.
RTL8169 Configuration register 4, operational registers offset 5Ah.
1Ah-1Eh -
Reserved
Do not change this field without Realtek approval. 1Fh CONFIG_5
Bit7-2: Reserved.
Bit1: LANWake signal Enable/Disable
Set to 1: Enable LANWake signal.
Set to 0: Disable LANWake signal.
Bit0: PME_Status bit property
Set to 1: The PME_Status bit can be reset by PCI reset or by software if
D3cold_support_PME is 0. If D3cold_support_PME=1, the PME_Status bit is a
sticky bit.
Set to 0: The PME_Status bit is always a sticky bit and can only be reset by software.
cont...