Ethernet

Introduction

This chip integrates an IEEE 802.3-compliant Ethernet Media Access Control (MAC) controller. The MAC connects to an external Physical Layer (PHY) chip through a Reduced Media Independent Interface (RMII), and configures and manages the PHY through a Serial Management Interface (SMI).

The MAC is responsible for frame encapsulation and parsing, Cyclic Redundancy Check (CRC) generation and verification, flow control, and data transfer between the descriptors and memory.

Features

  • Interface and Speed

    • Supports the RMII interface.

    • Supports 10/100 Mbps speeds, in both full-duplex and half-duplex modes.

    • Supports access to PHY registers through the SMI (MDC/MDIO) interface, with the MAC acting as the SMI master.

    • Supports automatic polling of PHY registers to obtain the link status.

  • Operating Mode and Clock

    • Supports both MAC to PHY and MAC to MAC connections.

    • Supports a 50 MHz clock generated by dividing the on-chip PLL, or a 50 MHz clock input from the EXTCLK pin.

    • Supports outputting a 25 MHz or 50 MHz clock to the PHY through the EXTCLK pin.

  • Frame Processing

    • Supports IEEE 802.3x flow control in full-duplex mode and the CSMA/CD protocol in half-duplex mode.

    • In the TX direction, hardware automatically pads frames to the minimum frame length and decides whether to append a CRC according to the CRC bit in the descriptor.

    • In the RX direction, hardware verifies the CRC and supports checksum checking for the IPv4 header, TCP, and UDP. In the TX direction, hardware supports automatic checksum insertion for the IPv4 header, TCP, and UDP.

    • Supports receiving Jumbo Frames.

    • Supports destination address filtering of received frames (unicast, multicast, broadcast, and promiscuous mode).

    • Supports hardware processing of VLAN tags: insertion, removal, and re-tagging in the TX direction, and stripping in the RX direction.

  • Data Transfer and Interrupts

    • Exchanges data with memory through Descriptor Rings, with one Descriptor Ring each for TX and RX.

    • Provides interrupts for TX done, RX done, descriptor exhaustion, and RX FIFO overflow, and supports RX interrupt mitigation.

    • Provides TX and RX statistics counters.

  • Power Saving and Testing

    • Supports Energy Efficient Ethernet (EEE).

    • Supports MAC loopback mode.

Block Diagram

The following figure shows the architecture of the Ethernet module, which includes the AXI slave interface, MAC control registers, Ethernet DMA, TX/RX FIFOs, checksum offload, VLAN processing, the LPI client, and MAC management.

../../_images/eth_hw_arch.svg

Ethernet architecture diagram

  • AXI slave interface and MAC control registers: The CPU accesses the MAC control registers through the AXI slave interface to configure the mode, filtering, flow control, interrupts, and so on.

  • Ethernet DMA: Reads transmit descriptors and data over the AXI bus and writes received data to memory. For details, see Descriptors and DMA.

  • TX-FIFO / RX-FIFO: The transmit and receive directions each have a FIFO of up to 2 KB, which buffers data between the DMA and the RMII interface.

  • Checksum offload: In the receive direction, verifies the IPv4 header, TCP, and UDP checksums. In the transmit direction, fills in the checksums automatically.

  • VLAN processing: In the transmit direction, inserts, removes, or re-tags VLAN tags. In the receive direction, strips VLAN tags.

  • LPI client: Asserts a Low Power Idle (LPI) request based on the state of the transmit queue, for use with EEE.

  • MAC management: Accesses the PHY registers through MDC/MDIO.

During transmission, software places the data to be sent into a buffer and sets up the descriptor. The Ethernet DMA reads the data from memory and passes it through the transmit FIFO to the MAC, which then sends it to the PHY through the RMII interface. During reception, the MAC receives data from the RMII interface and passes it through the receive FIFO to the Ethernet DMA. The DMA writes the data to a buffer in memory and writes back the length and status to the descriptor.

Functional Description

This section describes the functions of the Ethernet MAC.

Interface

The MAC connects to the external PHY through two interfaces: RMII, which carries data, and SMI (MDC/MDIO), which is used to configure and manage the PHY.

RMII Data Interface

RMII reduces the 4-bit data bus of MII to 2 bits, at the cost of raising the REF_CLK frequency from 25 MHz to 50 MHz to maintain the 100 Mbps bandwidth.

RMII signal definitions

Signal

Abbreviation

Direction

Description

TX Data 0/1

TXD0/TXD1

MAC → PHY

Transmit data, 2 bits wide, with TXD0 as the least significant bit. At 100 Mbps, one 2-bit group is transferred per REF_CLK cycle; at 10 Mbps, each group is held for multiple cycles.

TX Enable

TX_EN

MAC → PHY

Transmit enable. A high level indicates that the TXD data is valid.

RX Data 0/1

RXD0/RXD1

PHY → MAC

Receive data, 2 bits wide, with RXD0 as the least significant bit. At 100 Mbps, one 2-bit group is transferred per REF_CLK cycle; at 10 Mbps, each group is held for multiple cycles.

RX Error

RX_ERR

PHY → MAC

Receive error indication. It is driven high when the PHY detects an error in the received frame (such as a coding error).

CRS_DV

CRS_DV

PHY → MAC

Composite signal of Carrier Sense and Data Valid. The MAC decodes the two states from this signal according to the RMII rules.

Reference Clock

REF_CLK

Input or output

50 MHz reference clock, which the MAC and PHY use to synchronize data transmit and receive. Its direction is determined by the selected clock scheme, and it can be driven by only one side. For details, see Clock.

Note

IEEE 802.3u defines the RX_ERR signal. In practice, the MAC may leave this signal unused and rely solely on the Frame Check Sequence (FCS) carried in the Ethernet frame to verify data integrity.

SMI Management Interface

SMI, also known as the MDIO interface, is a two-wire serial interface for exchanging management data between the Ethernet MAC and the PHY, with a maximum clock frequency of 2.5 MHz. The MAC acts as the Station Management Entity (STA) and is the bus master, responsible for initiating read/write frames and driving the MDC clock; the PHY is the bus slave and responds to read/write requests from the STA.

SMI signal definitions

Signal

Abbreviation

Direction

Description

Management Data Clock

MDC

MAC → PHY

Management data clock, which provides the clock reference for MDIO data transfers, up to 2.5 MHz.

Management Data Input/Output

MDIO

Bidirectional

Management data line, which carries commands and status data. An external pull-up is required.

MDC is not required to be a continuous periodic signal, and the STA may stop MDC between two frames. MDC can run at any lower frequency as long as it does not exceed the maximum frequency.

The MAC supports automatic polling of the PHY status through MDIO, which is controlled by the DISABLE_AUTO_POLLING bit of the MIIAR register: when this bit is 0, the hardware automatically polls the PHY status and reflects the link, duplex, and auto-negotiation complete status in the LINKB, FULLDUPREG, and NWCOMPLETE bits of the MSR register; when this bit is 1, the hardware no longer polls.

Clock

RMII data sampling relies on the 50 MHz REF_CLK. The MAC and PHY must use the same REF_CLK, and REF_CLK can be driven by only one side. The internal operating clock of the MAC and the REF_CLK used for RMII sampling are different concepts; their sources and the direction of REF_CLK must be configured separately according to the selected clock scheme. If both sides each generate a 50 MHz REF_CLK from an independent crystal, the frequency offset (PPM) between them causes sampling-point drift and results in CRC errors.

The REFCLK_ON bit of the MSR register controls whether the MAC drives REF_CLK: set it to 1 when the MAC provides REF_CLK, and clear it to 0 when REF_CLK is provided by the PHY or an external clock source. This bit is not the selection bit for the source of the internal operating clock of the MAC.

../../_images/eth_clk_overview.svg

Clock architecture of the MAC and PHY

The 50 MHz clock of the MAC has two possible sources:

  • Internal clock source: The 50 MHz clock is derived by dividing the PLL inside this chip. The system clock configuration must be able to produce 50 MHz.

  • External clock source: The 50 MHz clock is input from the EXTCLK pin, and the MAC does not use internal division in this case.

The direction of REF_CLK depends on the clock source of the PHY:

Clock schemes of the MAC and PHY

Scheme

MAC clock source

PHY clock source

REF_CLK direction (MAC side)

EXTCLK pin

Ameba provides 50 MHz

Internal

Ameba outputs 50 MHz

Output

Output clock

Ameba provides 25 MHz

Internal

Ameba outputs 25 MHz

Output

Output clock

Independent clock sources for MAC and PHY

Internal

PHY’s own crystal

Input

Not used

External clock source

External

External 50 MHz clock source (same source as the MAC)

Input

Input clock

For the selection criteria and board-level wiring of each scheme, refer to the Ethernet application note.

Note

The EXTCLK pin can be used either as an output or as an input, but not both at the same time. When switching to the external clock source, the external clock must reach the EXTCLK pin before the clock selection is switched, otherwise the MAC loses its clock.

Operating Mode

The RMII interface of the MAC supports two connection modes: MAC to PHY and MAC to MAC.

MAC to PHY

MAC to PHY is the default connection mode, in which the MAC connects to an external PHY chip. In this mode, the RMII interface follows the standard MAC definition: the MAC drives the TX signal lines and manages the external PHY through the MDC/MDIO interface.

../../_images/eth_mac_mode.svg

MAC connected to an external PHY chip

MAC to MAC

MAC to MAC is used to connect two chips that each have a MAC directly, without an external PHY chip.

In the traditional connection, two PHY chips are required between the two MACs (the extra components inside the dashed box in figure (a)). In MAC to MAC mode, the local MAC plays the PHY-side role on the RMII interface and connects directly to the MAC of the link partner, which eliminates these components (figure (b)):

../../_images/eth_mac_phy.svg

Traditional connection and MAC to MAC

Note the following in MAC to MAC mode:

  • No PHY chip is involved, so Auto-Negotiation cannot be performed. The speed and duplex mode must be forced, and the configurations of both ends must be identical.

  • The transmit and receive signals of the two ends must be cross-connected, that is, the TX of one end connects to the RX of the link partner.

  • The REF_CLK of the two ends must come from the same source. It is recommended that one end output 50 MHz to the other end, or that both ends share the same external clock source, to avoid data sampling errors caused by a clock frequency deviation between the two ends.

Auto-Negotiation

Auto-Negotiation allows the devices at both ends of a link to exchange capability information and automatically select the same operating parameters, including duplex mode, speed, and flow control capability. After negotiation completes, both ends lock to the same duplex mode and speed. Auto-Negotiation is performed by the PHY in accordance with IEEE 802.3, and the MAC reads the negotiation result through SMI.

../../_images/eth_autonego.svg

Link pulse and link code word

Auto-Negotiation conveys information through pulses on the link:

  • Normal Link Pulse (NLP): used for 10BASE-T. It is only used to detect whether the link is connected and carries no speed information.

  • Fast Link Pulse (FLP): used for 100BASE-TX. It extends the NLP into a pulse burst, and each burst carries a 16-bit link code word that advertises the speed and duplex capabilities.

Parallel Detection

When one end has Auto-Negotiation enabled and the other end does not support it or has it disabled (forced mode), the end with Auto-Negotiation enabled establishes the link through parallel detection:

  • If an NLP is detected, the link partner is determined to be a 10 Mbps device.

  • If an idle stream with 4B/5B encoding is detected, the link partner is determined to be a 100 Mbps device.

Warning

Parallel detection cannot obtain the duplex mode of the link partner, so the end with Auto-Negotiation enabled treats it as half-duplex as specified by the standard. If the link partner is forced to full-duplex, the duplex modes of the two ends do not match (duplex mismatch). Although the link appears to be up, collisions and CRC errors occur, along with severe packet loss.

Negotiation Results

Configurations of both ends and link results

Local configuration

Link partner configuration

Link result

Description

Auto-Negotiation

Auto-Negotiation

Success

Both ends exchange capability sets and lock to the highest-performance mode supported by both, for example 100 Mbps full-duplex.

Auto-Negotiation

Forced 10/100 Mbps half-duplex

Success

Parallel detection is triggered. The local end matches the speed and is set to half-duplex.

Auto-Negotiation

Forced 10/100 Mbps full-duplex

Duplex mismatch

The link is up, but the local end is set to half-duplex by parallel detection while the link partner is full-duplex, which causes collisions and CRC errors.

Auto-Negotiation (full-duplex only)

Auto-Negotiation (half-duplex only)

Failure

The capability sets of the two ends do not overlap, so the link cannot be established.

Forced-speed mode A

Forced-speed mode B

Different speeds: failure; same speed, different duplex: duplex mismatch

With different speeds, the physical layer cannot synchronize and the link goes down. With the same speed but different duplex modes, the link may be up, but collisions and CRC errors occur, causing severe packet loss.

Forced Mode

After Auto-Negotiation is disabled, the speed and duplex mode must be forced, and the PHY and MAC configurations must match, that is, the PHY side must also be forced accordingly. The MAC side forces the speed and duplex through the MSR register:

  • When FORCE_SPD_MODE is set to 1, the MAC operates in forced speed mode, and the speed is set by the FORCE_SPD field: 00 indicates 100 Mbps, 01 indicates 10 Mbps, and 11 indicates that the speed is not forced. When FORCE_SPD_MODE is 0, the speed comes from the MDIO auto-polling result.

  • When FORCEDFULLDUP is set to 1, the MAC is forced to operate in full-duplex mode. When it is 0, the duplex state comes from the MDIO auto-polling result.

A MAC to MAC connection has no PHY involved, so the forced configuration must be used.

Reading Status

The link and negotiation status can be read from the MSR register. The following are read-only status bits:

Bit

Description

LINKB

Inverted link status. 0 indicates that the link is up, and 1 indicates that the link is down.

NWCOMPLETE

Auto-Negotiation is complete.

FULLDUPREG

Duplex state from the MDIO result. 1 indicates full-duplex.

When the link status changes, the LINKCHG bit of the ISR register is set.

Descriptors and DMA

The MAC exchanges data with memory through DMA. Software submits data buffers to the MAC through descriptors in memory. The address, length, and status of each buffer are recorded in its descriptor, and the DMA moves the data.

../../_images/eth_desc_ring.svg

Descriptors and buffers

Descriptor Ring

Transmit and receive each have one descriptor ring, and each descriptor in a ring corresponds to one data buffer. The length of a descriptor is determined by the descriptor format. See “Descriptor Format” below.

  • The base address of the TX ring is set by the TXFDP1 register.

  • The base address of the RX ring is set by the RXFDP1 register, and the number of descriptors in the ring is set by the RX_RINGSIZE1 register. This register is in mask form, and its value is the number of descriptors minus 1. For example, 0x00F indicates 16 descriptors. Therefore, the number of RX descriptors must be a power of 2, and the driver requires a value in the range of 4 to 4096. When reception of jumbo frames is enabled, the number of RX descriptors must not be less than 16.

  • The EOR bit of the last descriptor in the ring is set to 1. After the hardware finishes processing this descriptor, it returns to the base address of the ring.

  • The TXCDO1 and RXCDO1 registers indicate the offset of the descriptor currently being processed by the hardware relative to the base address of the ring.

Note

This module supports only one TX descriptor ring and one RX descriptor ring, and does not support multiple descriptor rings. The registers related to descriptor rings numbered 2 and above (for example, TXFDP2 ~ TXFDP5 and RXFDP2 ~ RXFDP6) are not usable, and software does not need to configure them.

Descriptor Ownership

The OWN bit of each descriptor (bit31 of Word 0) indicates who currently processes the descriptor:

  • OWN is 1: The descriptor is owned by the DMA. For a TX descriptor, this means software has prepared the data to be transmitted. For an RX descriptor, this means software has allocated a free buffer. Software must not modify the descriptor at this time.

  • OWN is 0: The descriptor is owned by the CPU. After the DMA completes the data transfer, it clears this bit, and software can reclaim the transmitted buffer or read the newly received data.

TX flow:

  1. Software checks that OWN of the current TX descriptor is 0, that is, the descriptor is available.

  2. Software fills in the data buffer address (Word 1), the length, and the control bits (Word 0).

  3. Software sets OWN to 1 to hand the descriptor over to the DMA.

  4. Software sets the TXFN1ST bit of the ETH_ETHER_IO_CMD register to 1 to notify the DMA to start transmitting.

  5. The DMA reads the data and transmits it, and clears OWN when done.

Warning

The descriptor resides in normal memory, while TXFN1ST is a write to a device register, and the access order between the two is not guaranteed. A memory barrier (for example, the ARM dsb instruction) must be inserted after setting OWN and before writing TXFN1ST. Otherwise, the DMA may be woken up before it sees OWN.

RX flow:

  1. Software writes OWN and the buffer size into Word 0 of each RX descriptor, and writes the buffer address into Word 1.

  2. The MAC writes the received frame into the buffer, clears OWN after writing, and writes back the frame length and receive status in Word 0.

  3. Software detects that OWN is 0 and reads the receive status and the data.

  4. Software rewrites OWN and the buffer size to return the descriptor to the DMA.

When no free RX descriptors remain, the RDU1 bit of the ISR register is set and the MAC stops fetching RX descriptors. Reception resumes only after software releases descriptors and writes 1 to this bit to clear it.

The hardware requires the base address of the descriptor ring and the address of the RX buffer to be 4-byte aligned. If the descriptors and data buffers reside in cacheable memory, they must also be cache-line aligned, and software must ensure that the DMA and the CPU see consistent contents. For specific requirements, refer to the Ethernet application note.

When a frame occupies multiple descriptors, the descriptor with FS set is the first one of the frame, and the descriptor with LS set is the last one of the frame.

Descriptor Format

This module supports only the short descriptor in the Apollo format. A TX descriptor occupies 5 words (20 bytes) and an RX descriptor occupies 4 words (16 bytes). Their formats are shown in TX descriptor and RX descriptor, respectively.

During the use of a descriptor, software sets the command fields before submitting it. After the DMA finishes processing, in the receive direction the hardware writes back the frame length and receive status, while in the transmit direction all fields other than OWN remain unchanged. For the handover of ownership, see “Descriptor Ownership”.

../../_images/eth_desc_tx.svg

TX descriptor

../../_images/eth_desc_rx.svg

RX descriptor

TX Descriptor

The TX descriptor is a command descriptor, and software sets all of its fields before setting OWN. After transmission completes, the hardware only clears OWN and leaves the other fields unchanged. Software uses OWN to determine whether the descriptor can be reused.

Fields of the TX descriptor

Word

Bits

Name

Description

Word 0

[31]

OWN

Ownership. 1 indicates the descriptor is owned by the DMA, and 0 indicates it is owned by the CPU.

Word 0

[30]

EOR

1 indicates that this descriptor is the last one in the ring.

Word 0

[29]

FS

1 indicates that this descriptor contains the start of the frame.

Word 0

[28]

LS

1 indicates that this descriptor contains the end of the frame.

Word 0

[27]

IPCS

1 indicates that the hardware calculates the IPv4 header checksum.

Word 0

[26]

L4CS

1 indicates that the hardware calculates the TCP/UDP checksum. When this bit is set, IPCS must also be set.

Word 0

[23]

CRC

1 indicates that the hardware appends the frame check sequence at the end of the frame.

Word 0

[16:0]

Data Length

Number of valid bytes in the buffer pointed to by this descriptor.

Word 1

[31:0]

Buffer Address

Start address of the buffer.

Word 2

[26:25]

VLAN_ACT

VLAN tag action. See the VLAN section for details.

Word 2

[15:0]

VLAN_TAG

Tag content used for insertion or retagging.

Word 4

[31]

LGSEN

1 indicates that the frame uses Large Send Offload (LSO), and the hardware automatically segments it according to LGMTU. See the LSO section for details.

Word 4

[30:20]

LGMTU

IP total length of each frame after LSO segmentation, in bytes. See the LSO section for details.

The gray bits in the figure are unused, and software writes 0 to them.

RX Descriptor

For an RX descriptor, OWN, EOR, the buffer address, and the buffer size are set by software before the descriptor is handed over to the DMA. After a frame is received, the MAC writes the frame into the buffer, clears OWN, and writes back the frame length and receive status. Software reads them after detecting that OWN is 0.

Fields of the RX descriptor

Word

Bits

Name

Valid Timing

Description

Word 0

[31]

OWN

Set before reception, cleared after reception

Set to 1 before reception, indicating that the descriptor is owned by the DMA and its buffer is free. After a frame is received, the hardware clears it, indicating that the descriptor is owned by the CPU and data has been received.

Word 0

[30]

EOR

Set before reception

1 indicates that this descriptor is the last one in the ring.

Word 1

[31:0]

Buffer Address

Set before reception

Start address of the buffer.

Word 0

[29]

FS

Valid after reception

1 indicates that this descriptor contains the start of the frame.

Word 0

[28]

LS

Valid after reception

1 indicates that this descriptor contains the end of the frame.

Word 0

[27]

CRCERR

Valid after reception

1 indicates that the frame has a CRC error. Frames with CRC errors are received only when the AER bit of the RCR register is set to 1.

Word 0

[26]

IPV4CSF

Valid after reception

1 indicates that the hardware detected an IPv4 header checksum error. This bit is valid only when PKTTYPE is 1 to 6. For other values, this bit is fixed to 1 and does not indicate a checksum error.

Word 0

[25]

L4CSF

Valid after reception

1 indicates that the hardware detected a TCP/UDP/ICMP/IGMP checksum error. This bit is valid only when PKTTYPE is 3, 4, 5, 6, 8, 9, or 0xA. For 0, 1, 2, and 7, this bit is fixed to 1 and does not indicate a checksum error.

Word 0

[23]

IPFRAG

Valid after reception

1 indicates that the frame is an IP fragment.

Word 0

[20:17]

PKTTYPE

Valid after reception

Packet type. 0 indicates an Ethernet frame (neither IPv4 nor IPv6), 1 indicates IPv4, 2 indicates IPv4/PPTP, 3 indicates IPv4/ICMP, 4 indicates IPv4/IGMP, 5 indicates IPv4/TCP, 6 indicates IPv4/UDP, 7 indicates IPv6, 8 indicates ICMPv6, 9 indicates IPv6/TCP, and 0xA indicates IPv6/UDP.

Word 0

[11:0]

Data Length

Set before reception, written back after reception

Before reception, the buffer size in bytes is written. After reception completes, the hardware writes back the number of bytes actually received in this descriptor, including the 2-byte padding inserted by the MAC before the frame data.

Word 2

[29]

SVLAN

Valid after reception

1 indicates that the frame carries an S-tag.

Word 2

[16]

CTAVA

Valid after reception

1 indicates that the frame carries a C-tag and the tag has been stripped.

The gray bits in the figure are unused. Software writes 0 to them when setting up the descriptor, and does not need to read them after reception completes.

Large Send Offload (LSO)

LSO allows software to submit a large frame that exceeds the Maximum Transmission Unit (MTU). The MAC hardware splits it into multiple frames according to the MTU, transmits them, and recalculates the IP header and checksum of each frame, which relieves the CPU of segmentation work. LSO applies only to the transmit direction.

The MAC supports splitting three types of large frames:

  • TCP: the TCP data is segmented, and the IP length of each segment does not exceed LGMTU.

  • UDP: the UDP datagram is fragmented according to the MTU, up to 64 KB.

  • Other protocols: the hardware performs IP fragmentation, and L4 checksum offload is not supported.

Enabling

For each frame that needs to be split, set LGSEN (bit31 of Word 4) to 1 in its transmit descriptor, and fill LGMTU into bit[30:20].

LGMTU is the MTU, that is, the IP length of a single frame including the L3 and L4 headers. It is not the TCP Maximum Segment Size (MSS). The MAC subtracts the L3 and L4 header lengths from LGMTU internally to obtain the MSS. Therefore, to obtain an MSS of 1448 (IPv4 plus TCP, with a total header length of 40 bytes), write 1488.

The LGMTU field is 11 bits wide and should be less than 0x680 (limited by the transmit FIFO capacity).

Note

Some documents (for example, the descriptor table in the register specification and the driver header files) call this field LGMSS. Its meaning is still the MTU, not the MSS. Filling in the MSS makes the total IP length of each segment shorter by the length of the L3 and L4 headers.

Data Format Requirements

The data in the transmit buffer must be in one of the following formats:

  1. DA + SA + C-tag + Type + IP + L4 (TCP or UDP)

  2. DA + SA + Type + IP + L4 (TCP or UDP)

  3. DA + SA + C-tag + Type + IP

  4. DA + SA + Type + IP

The requirements for the checksum offload bits in the transmit descriptor depend on the protocol:

  • TCP: both IPCS and L4CS must be set.

  • UDP: L4CS is optional. When it is set, the hardware calculates the UDP checksum of the entire datagram; clear it when the UDP checksum is not used.

  • Other protocols: the hardware only performs IP fragmentation and does not support L4 checksum offload, so L4CS must not be set.

LSO does not support frames that carry an S-tag.

TCP Restrictions

  • The MTU of a single frame must not be greater than the MSS plus the L3 and L4 header lengths; otherwise LSO cannot work, because the hardware no longer performs IP fragmentation automatically.

  • In the large frame, the MF flag and fragment offset of the IP header, as well as the URG, RST and SYN flags and the urgent pointer of the TCP header, must all be 0.

  • TCP retransmission, congestion control and flow control (sliding window) are not supported.

  • When a frame occupies multiple transmit descriptors, the DA, SA, Type, IP header and TCP header must be in the same descriptor.

UDP Restrictions

  • Only the first of the split frames carries the UDP header; the remaining frames carry data only.

  • After splitting, the MF flag in the IP header of every frame except the last one is set, and their total length equals the MTU; the total length of the last frame is the remaining data length plus the IP header length. The IP header checksum of each frame is recalculated by the hardware.

  • The UDP checksum of the first frame is the checksum of the entire datagram.

  • The transmit descriptors can be submitted in either of the following two ways: descriptor 0 contains only the L2/L3/L4 headers and descriptor 1 contains only the L4 data; or descriptor 0 contains the headers and part of the L4 data, in which case Data Length must be greater than the header length plus LGMTU, and descriptor 1 contains the remaining L4 data.

Interrupts and Counters

The interrupt status of the MAC is indicated by the ISR register, and interrupt masking is controlled by the IMR register. The bits of the two registers correspond one to one. When the corresponding bit in IMR is 1, setting that bit in ISR generates an interrupt to the CPU.

All bits of ISR are cleared by writing 1.

Warning

When clearing ISR, write the bits to be cleared directly. Do not use read-modify-write (for example, ISR |= x). A read-modify-write writes back all pending bits that were read, which clears other interrupts that have not yet been handled at the same time.

Interrupt Sources

ISR bit definitions

Bit

Name

Description

0

ROK

Receive complete. Set when the number of received frames reaches the count configured for RX interrupt mitigation, or when the RX timer expires. For frames smaller than 128 bytes, it is set immediately after DMA completes.

1

CNT_WRAP

TX or RX counter wraparound.

2

RER_RUNT

A runt frame shorter than 64 bytes was received.

4

RER_OVF

RX FIFO overflow. Possible causes are running out of free RX descriptors, insufficient system bus performance, or bus traffic overload.

5

RDU1

RX descriptor unavailable.

6

TOK_TI

Transmit complete. Set when the number of transmitted frames reaches the count configured for TX interrupt mitigation and the last descriptor has been processed.

7

TER

Transmit error. The transmission was aborted due to excessive collisions.

8

LINKCHG

Link status change.

9

TDU

TX descriptor unavailable.

10

SWINT

Software interrupt. Writing 1 to bit24 of the SWINT register forces this bit to be set.

The remaining bits are reserved and not used.

After RDU1 is set, the MAC stops fetching RX descriptors. Reception resumes only after software releases RX descriptors and writes 1 to RDU1 to clear it.

Interrupt Mitigation

To reduce the number of interrupts, both TX and RX interrupts support mitigation: an interrupt is generated only after the configured number of frames has accumulated. A timer is also provided so that an interrupt is still generated in time when fewer frames than configured have accumulated. These parameters are located in the ETH_ETHER_IO_CMD register.

Interrupt mitigation parameters

Field

Description

RXINTMITIGATION

Number of frames that must be received before a ROK interrupt is generated. A value of 0 corresponds to 1 frame. Starting from a value of 1, each increment of 1 adds 4 frames, that is, 4, 8, 12, 16, 20, 24, and 28 frames.

TXINTMITIGATION

Number of frames that must be transmitted before a TOK_TI interrupt is generated. The values are the same as those of RXINTMITIGATION.

RXPKTTIMER

RX timer. When set, a ROK interrupt is generated when the timer expires, even if the number of received frames has not reached the mitigation count. A value of 0 means the timer is not used. This timer takes effect only for frames larger than 128 bytes. For frames smaller than 128 bytes, ROK is triggered immediately after DMA completes.

TXPKTTIMER

TX timer, which works similarly to RXPKTTIMER.

INT_TIMER_SEL

Selects the unit of the timers.

The timer unit depends on the link speed. At 100 Mbps, when INT_TIMER_SEL is 0, 1, 2, or 3, the unit is 2.56 μs, 10.24 μs, 40.96 μs, or 160 μs, respectively. At 10 Mbps, the units are 25.6 μs, 102.4 μs, 409.6 μs, and 1.6 ms, respectively. Timer interval = timer value × 4 × unit.

Statistics Counters

The MAC provides a set of 16-bit statistics counters. A counter wraps around automatically when it overflows, and writing to the register clears it. When any counter wraps around, the CNT_WRAP bit of ISR is set.

Statistics counters

Counter

Description

RXOKCNT

Number of frames received successfully.

TXOKCNT

Number of frames transmitted successfully.

RXERR

Number of frames discarded due to receive errors. When the RX FIFO is not full, this counter increments by 1 if the AR bit of RCR is 0 and the frame is shorter than 64 bytes, or if the AER bit is 0 and the frame has a CRC error.

TXERR

Number of frames with transmit errors, including transmit underflow, transmit abort in half-duplex mode, and link errors.

FAE

Number of frames with frame alignment errors. This counter counts only frames that are accepted, so the AER bit of RCR must be 1. Such frames do not increment RXERR.

MISSPKT

Number of missed frames.

RDU_MISSPKTC

Number of frames missed because RX descriptors were unavailable.

TXMCOL

Number of frames transmitted successfully after experiencing collisions, with fewer than 16 collisions (or the configured retry count).

TX1COL

Number of frames transmitted successfully after experiencing exactly one collision.

TXABT

Number of aborted transmissions. The causes include excessive collisions, underflow, and link failure.

TXUNDERC

Number of frames with transmit underflow.

RXOKBRD

Number of frames received successfully whose destination address is a broadcast address.

RXOKPHY

Number of frames received successfully whose destination address matches the local physical address.

RXOKMUL

Number of frames received successfully whose destination address is a multicast address.

The AER bit of RCR controls how erroneous frames are handled:

  • AER is 1: Frames with CRC errors, alignment errors, or collision fragments are received and passed up. RXOKCNT increments by 1, RXERR is unchanged, and the CRCERR bit of the RX descriptor is set to 1.

  • AER is 0: Such frames are discarded. RXERR increments by 1, and RXOKCNT is unchanged.

Flow Control

Flow control notifies the link partner to pause transmission before the RX buffer is exhausted, so as to avoid packet loss. The Ethernet MAC complies with IEEE 802.3x, takes effect only in full-duplex mode, and is implemented through PAUSE frames.

PAUSE Frames

A PAUSE frame is a MAC control frame. Its destination address is the reserved multicast address 01:80:C2:00:00:01, its Type field is 0x8808, and its opcode is 0x0001. It carries a 16-bit pause time in units of 512 bit times.

  • Pause time is not 0: notifies the link partner to pause transmission for the duration given by this time.

  • Pause time is 0: notifies the link partner to resume transmission immediately.

The pause time is in units of pause quanta. One pause quantum equals the time required to transmit 512 bits, so the actual duration depends on the link speed. When the pause time is the maximum value 0xFFFF, it is about 335.5 ms at 100 Mbps and about 3.355 s at 10 Mbps.

The PAUSE frames transmitted by the MAC are generated automatically by the hardware, and the pause time is not configurable. After the transmit PAUSE function is enabled, when the receive resources reach the pause threshold, the MAC transmits a PAUSE frame whose pause time is the maximum value 0xFFFF; when they reach the resume threshold, it transmits a PAUSE frame whose pause time is 0. For the meaning of the thresholds, see “Conditions for Transmitting PAUSE Frames”.

Transmit and Respond

The MAC supports both transmitting and responding to PAUSE frames, which are enabled by two bits of the MSR register respectively:

Flow control enable bits

Bit

Description

TXFCE

Enable transmitting PAUSE frames. When the RX buffer is about to be exhausted, the MAC transmits a PAUSE frame to the link partner.

RXFCE

Enable responding to PAUSE frames. After receiving a PAUSE frame from the link partner, the MAC pauses transmission; this bit takes effect only in full-duplex mode.

When TXFCE is enabled, the AER bit (receive error frames) of the RCR register must not be enabled at the same time.

The MSR register provides two read-only status bits: RXPF set to 1 indicates that the MAC is in the pause (backoff) state because it received a PAUSE frame; TXPF set to 1 indicates that the MAC has transmitted a PAUSE frame, and 0 indicates that the most recently transmitted frame was a PAUSE frame with a pause time of 0 (the notification frame that ends the pause).

Auto-Negotiation and Forced Flow Control

The flow control capability is exchanged with the link partner through auto-negotiation.

Without auto-negotiation, flow control cannot be determined through negotiation. For example, the link partner has disabled auto-negotiation, or the local side forces the speed and duplex mode, or it works in MAC to MAC mode. In this case, setting only TXFCE or RXFCE of the MSR register to 1 does not take effect; FORCE_TRXFCE must also be set to 1 for flow control to work.

Conditions for Transmitting PAUSE Frames

Transmitting a PAUSE frame is triggered by the number of free RX descriptors. A free RX descriptor is a descriptor that software has returned to the MAC and that can be used to receive a new frame. Receiving a frame consumes one or more free descriptors, and the number of free descriptors rises again after software returns descriptors.

Both thresholds are expressed as a number of free RX descriptors:

  • RX_PSE_DES_THRES_ON: when the free descriptors drop to this number, the MAC asserts a pause request and transmits a PAUSE frame with a pause time of 0xFFFF to the link partner.

  • RX_PSE_DES_THRES_OFF: when the free descriptors rise back to this number, the MAC deasserts the pause request and transmits a PAUSE frame with a pause time of 0 to the link partner.

RX_PSE_DES_THRES_ON must be less than RX_PSE_DES_THRES_OFF.

For example, with 4 RX descriptors in total, RX_PSE_DES_THRES_ON set to 1 and RX_PSE_DES_THRES_OFF set to 2, as shown in the figure:

../../_images/eth_pause_threshold.svg

Timing of PAUSE frame transmission

  • When 2 free descriptors remain, the MAC does not assert a pause request. After another frame is received and one descriptor is consumed, 1 free descriptor remains; the MAC asserts a pause request and transmits a PAUSE frame with a pause time of 0xFFFF.

  • After the link partner pauses transmission, software processes the data and returns descriptors, and the free descriptors rise back to 2; the MAC deasserts the pause request and transmits a PAUSE frame with a pause time of 0.

After software finishes processing the received data and returns the RX descriptors to the MAC, it must update the ETHRNTRXCPU_DES_NUM field to tell the MAC the number of descriptors that have been returned. The MAC uses this to calculate the number of free descriptors.

RX_PSE_DES_THRES_OFF must be less than the total number of RX descriptors minus the maximum number of descriptors occupied by a single ingress frame.

Note

When the AFLOW bit of the RCR register is set to 1, the MAC also delivers received PAUSE frames into the RX buffer as normal frames. This is for debugging only.

VLAN

The MAC supports hardware processing of IEEE 802.1Q VLAN tags. A VLAN tag is a 4-byte field inserted after the source address and before the type field of an Ethernet frame. An additional tag can be nested outside the tag (QinQ). The outer tag is called the S-tag, and the inner tag is called the C-tag.

../../_images/eth_vlan_frame.svg

VLAN frame format

Hardware Limitations

  • A maximum of two tag layers (S-tag and C-tag) can be recognized. Nested tags with three or more layers are not supported.

  • In the transmit direction, only one action can be performed on one tag layer at a time.

  • In the receive direction, only the inner C-tag can be stripped.

Transmit Direction

VLAN processing in the transmit direction is specified frame by frame by the TX descriptor. The second word of the TX descriptor (Word 2) contains two VLAN-related fields:

VLAN fields in the TX descriptor

Field

Bits

Description

VLAN_ACT

[26:25]

The action performed on the VLAN tag of the frame. See the table below.

VLAN_TAG

[15:0]

The 16-bit tag content used for insertion or re-tagging, including the VID, priority (PRI), and CFI.

Values of VLAN_ACT:

VLAN actions in the transmit direction

Value

Action

Description

00

Keep as is

Does not modify the tags in the frame.

01

Insert

Inserts a new tag into the frame. The tag content is taken from VLAN_TAG.

10

Remove

Removes one specified tag from the frame.

11

Re-tag

Keeps the original tag structure and replaces only the VID.

Whether the action applies to the S-tag or the C-tag is determined by the TDSC_VLAN_TYPE bit of the VLAN_REG register:

  • TDSC_VLAN_TYPE is 0: The action in the descriptor applies to the C-tag.

  • TDSC_VLAN_TYPE is 1: The action in the descriptor applies to the S-tag.

S-tag Protocol Identifier

The TPID of the S-tag is set by the STAG_PID field of the VLAN_REG register, and its reset value is 0x88A8. The same value is used to identify the S-tag in both the transmit and receive directions. STAG_PID must not conflict with common EtherType values such as IPv4 and ARP. Otherwise, the type field in a frame is misidentified as an S-tag.

Receive Direction

When the RXVLAN bit of the ETH_CR register is 1, the MAC strips the inner C-tag from received frames and writes the stripped tag content into the RX status descriptor:

  • The CTAVA bit of Word 2 in the RX status descriptor is set to 1, indicating that the frame carries a C-tag.

  • The lower 16 bits of Word 2 hold the stripped tag content.

  • If the frame also carries an S-tag, the SVLAN bit is set to 1.

When a received frame occupies multiple descriptors, the VLAN information appears only in the last descriptor.

When RXVLAN is 0, the MAC does not strip tags. The tags in the frame remain in the received data, and CTAVA is 0.

Energy Efficient Ethernet (EEE)

EEE is based on IEEE 802.3az, and its core mechanism is LPI: after the link is established, if there is no data transfer, the device can enter a low-power state through protocol interaction to reduce power consumption.

EEE is implemented jointly by the MAC and the PHY:

../../_images/eth_eee_arch.svg

Energy Efficient Ethernet architecture

  • The LPI client is located in the MAC and initiates LPI requests according to the status of the transmit queue.

  • The PHY encodes the RMII signals and interacts with the link partner over the line.

Prerequisites for using EEE:

  • Auto-negotiation must be enabled. The EEE capability is exchanged with the link partner through the Next Page of auto-negotiation.

  • The link must operate in full-duplex mode.

  • Both the PHY and the link partner must support EEE.

LPI Signals on RMII

Standard RMII removes the TX_ER signal of MII, so the signal combinations of IEEE 802.3az cannot be used directly. RMII uses combinations of TX_EN, CRS_DV and the data lines to indicate entering and exiting LPI.

../../_images/eth_eee_trx_lpi.svg

Entering and exiting LPI on the transmit and receive paths

The transmit path is controlled by the MAC, which decides when to make the PHY enter or exit the low-power state:

  • Enter LPI: the MAC drives TX_EN=0 and TXD=01. After detecting this state, the PHY turns off the analog transmit circuit.

  • Stay in LPI: the MAC keeps TX_EN=0 and TXD=01.

  • Exit LPI: the MAC restores TXD[1:0] from 01 to 00 (TX_EN is still 0 at this point), which indicates a wake-up request. After the wake-up time elapses, the MAC drives TX_EN high and starts transmitting data.

The receive path is controlled by the PHY, which detects the state of the link partner and notifies the MAC:

  • Enter LPI: after detecting the LPI signal of the link partner on the line, the PHY drives CRS_DV low and drives RXD[1:0] to 01. After detecting this state, the MAC enters the receive low-power state.

  • Stay in LPI: the PHY keeps RXD[1:0] at 01 until the line state changes.

  • Exit LPI: after detecting an idle code stream or data on the line, the PHY restores RXD[1:0] from 01 to 00, and the MAC resumes receiving accordingly.

After the PHY detects an LPI request on the RMII interface, it goes through Sleep, Quiet, Refresh and Wake in sequence on the line:

../../_images/eth_eee_lpi.svg

LPI states

  • Sleep: the local PHY transmits the SLEEP code group to notify the link partner.

  • Quiet: the PHY stops transmitting signals after transmitting SLEEP.

  • Refresh: refresh signals are transmitted periodically during the quiet period to maintain the link parameters.

  • Wake: the PHY transmits the wake-up signal to notify the link partner to resume normal operation.

Decision Logic of the Transmit Path

LPI on the receive path is determined by the PHY, and the MAC cooperates passively. Entering and exiting LPI on the transmit path are determined by the decision logic inside the MAC, which are enabled separately through bits of the EEE_CR1 register.

Decision logic for entering LPI:

Decision logic for entering LPI

Bit

Decision condition

EEE_REQ_SET0

By rate: requests to enter LPI when the transmit traffic within the statistics window T_tx_rate is lower than the threshold EEE_TX_THR.

EEE_REQ_SET1

Requests to enter LPI when the transmit queue is empty.

EEE_REQ_SET2

Requests to enter LPI when a PAUSE frame is received from the link partner. T_pause is the timing used by this decision logic.

Decision logic for exiting LPI:

Decision logic for exiting LPI

Bit

Decision condition

EEE_WAKE_SET0

Exits LPI when there is data to be transmitted in the transmit queue.

EEE_WAKE_SET1

Exits LPI when a frame to be transmitted is larger than 512 bytes.

When software has a large amount of data to be transmitted, it can set EEE_OUTQ_LOWQ_OVER to 1 to notify the hardware to exit LPI.

The EN_EEE_TX and EN_EEE_RX bits of EEE_CR1 enable the EEE capability in the transmit and receive directions respectively.

Timing Parameters

The timing parameters at 100 Mbps are located in the EEE_CR3 register:

EEE timing parameters at 100 Mbps

Parameter

Reset value

Unit

Description

EEE_TIMER_TW_100

0x1E

EEE_TIMER_UNIT_100_1

Wake-up time T_wakeup. This value should be no less than the wake-up time required by the PHY.

EEE_TIMER_TR_100

0x0A

EEE_TIMER_UNIT_100_1

Rate statistics window T_tx_rate.

EEE_TIMER_TP_100

0x0A

EEE_TIMER_UNIT_100_1

Timing T_pause used by the PAUSE decision logic.

EEE_TIMER_TD_100

0xF4

EEE_TIMER_UNIT_100_2 × 4

QoS decision delay T_tx_delay.

The table lists the reset value of each field. The actual time equals the field value multiplied by the corresponding unit.

Two fields in the EEE_CR1 register set the units of the above parameters:

  • EEE_TIMER_UNIT_100_1: 00 means 1 μs, 01 means 16 μs, 10 means 128 μs, and 11 means 1024 μs.

  • EEE_TIMER_UNIT_100_2: 00 means 8 μs, 01 means 64 μs, 10 means 512 μs, and 11 means 1024 μs.

The rate threshold EEE_TX_THR_100 is located in the lower 16 bits of the EEE_CR4 register, in bytes, and is calculated as follows:

EEE_TX_THR = Round[(T_tx_rate × Rate) / 8]

For example, when T_tx_rate is 10 μs and the rate is 100 Mbps, the threshold is 0x7D (125 bytes), and the reset value is 0x3E, which is about half of the rate. A larger threshold makes it easier to enter LPI, and a smaller threshold makes it harder to enter LPI.

Status and Statistics

The EEE_CR1 register provides the following read-only status bits:

Bit

Description

EEE_TX_STS

The transmit path is in LPI.

EEE_RX_STS

The receive path is in LPI.

EEE_STS

The transmit and receive paths are both in LPI.

EEE_PAUSEFLAG

An LPI request was initiated because a PAUSE frame was received.

After the EEE_TXTIMER_EN and EEE_RXTIMER_EN bits of the EEE_CR1 register are enabled, the MAC accumulates the time that the transmit and receive paths spend in LPI respectively, in μs, and the accumulated value is 22 bits wide. The accumulated time of the transmit path is read from the EEE_TXLPI_TIME field of the EEE_LPI_TM1_REG register, and that of the receive path is read from the EEE_RXLPI_TIME field of the EEE_LPI_TMO_REG register. Both fields are cleared on read, and the count restarts from 0 after being read.

Loopback Test

The MAC provides loopback functions for driver development, interrupt testing and link connectivity verification. The loopback mode is selected by the LBK field of the TCR register.

Loopback modes

LBK

Mode

Description

00

Normal operation

No loopback.

01

R2T loopback

Received data is sent directly back to the transmit path and transmitted as egress frames.

10

Reserved

Do not use.

11

T2R loopback

Transmitted data is sent back to the receive path inside the MAC.

../../_images/eth_loopback_modes.svg

Loopback test modes

R2T Loopback

R2T loopback (Receive to Transmit) sends frames received from RMII back to the RMII transmit direction unchanged. It is used to verify the transmit and receive paths of the MAC from the link partner, without software moving the frames.

The data of R2T loopback does not pass through the transmit and receive FIFOs. Instead, it is passed between the receive clock domain and the transmit clock domain through an asynchronous FIFO. The receive clock comes from a pin, and the transmit clock is generated by the MAC itself. The two are independent of each other.

Note

Frames looped back in R2T loopback are counted in the successful receive counter RXOKCNT, not in the successful transmit counter TXOKCNT. Keep this in mind when using TXOKCNT to determine whether R2T loopback is working.

T2R Loopback

T2R loopback (Transmit to Receive) sends transmitted data back to the receive path inside the MAC. It is used to verify the transmit and receive logic of the MAC itself. The data path in this mode is: transmit buffer → transmit DMA and FIFO → MAC internal loopback → receive DMA → receive buffer.

In this mode, the recommended value of the RCR register is 0xF, that is, AAP, APM, AM and AB are set to 1, so that the MAC accepts frames with any destination address and the looped-back frames are not dropped by address filtering. During normal transmission and reception, RCR should be configured according to the address filtering policy.

Registers

Base Address: 0x4011A000

Name

Address offset

Access

Description

REG_IDR0

000h

R/W

ID Register 0 -3.

REG_IDR4

004h

R/W

ID Register 4-5.

REG_MAR0

008h

R/W

Multicast Register 0-3

REG_MAR4

00Ch

R/W

Multicast Register 4-7

REG_RXOKCNT

010h

R/W

16-bit counter of Rx Ok packets.

REG_TXOKCNT

012h

R/W

16-bit counter of Tx DMA Ok packets.

REG_RXERR

014h

R/W

16-bit packet counter of Rx errors including CRC error packets (should be larger than 8 bytes) and missed packets.

REG_TXERR

016h

R/W

16-bit packet counter of Tx errors including Tx abort, carrier lost and out of window collision.

REG_FAE

018h

R/W

16-bit counter of Frame Alignment Error packets (MII mode only)

REG_MISSPKT

01Ah

R/W

16-bit counter of missed packets resulting from Rx FIFO full.

REG_TXMCOL

01Ch

R/W

16-bit counter of those Tx Ok packets with more than 1, and less than 16 collisions happened before Tx Ok.

REG_TX1COL

01Eh

R/W

16-bit counter of those Tx Ok packets with only 1 collision happened before Tx Ok.

REG_RXOKBRD

020h

R/W

16-bit counter of all Rx Ok packets with broadcast destination ID.

REG_RXOKPHY

022h

R/W

16-bit counter of all Rx Ok packets with physical address matched destination ID.

REG_TXABT

024h

R/W

16-bit counter of Tx abort packets.

REG_RXOKMU1

026h

R/W

16-bit counter of all Rx Ok packets with multicast destination ID.

REG_MISSPKT_RDU

028h

R/W

16-bit counter of miss packet due to rdu in rx multiple ring mode. Rolls over automatically. Write to clear. gmac only.

REG_TXUNDERC

02Ah

R/W

16-bit counter of Tx Underrun packets. Rolls over automatically. Write to clear. gmac only.

REG_TRSR

034h

R

Tx/Rx Status Register

REG_CR

038h

R/W

Command Register

REG_ISR

03Ch

R/W

REG_IMR

03Eh

R

REG_TCR

040h

R/W

Transmit (Tx) Configuration Register

REG_RCR

044h

R/W

Receive (Rx) Configuration Register

REG_CPUTAG

048h

R/W

CPU tag control register.

REG_CONFIG

04Ch

R/W

Configuration register

REG_CPUTAG1

050h

R/W

CPUTAG1 control register

REG_MSR

058h

R/W

Media Status Register

REG_MIIAR

05Ch

R/W

MII Access Register

REG_SWINT

060h

R/W

SWINT Register

REG_VLAN_REG

064h

R/W

Vlan tag register

REG_LED_CTRL

070h

R/W

Led control register

REG_BIST

080h

R/W

Memory bist

REG_PGLBK

084h

R/W

Packet generator register.

REG_EEE_CR1

088h

R/W

REG_EEE_CR2

08Ch

R/W

REG_EEE_CR3

090h

R/W

REG_EEE_CR4

094h

R/W

REG_EEE_LPI_TMO_REG

098h

R

REG_EEE_LPI_TM1_REG

09Ch

R/W

REG_EEEP_CR1

0B0h

R/W

REG_EEEP_CR2

0B4h

R/W

REG_EEEP_CR3

0B8h

R/W

REG_EEEP_CR4

0BCh

R/W

REG_EEEP_CR5

0C0h

R/W

REG_EEEP_CR6

0C4h

R/W

REG_EEEP_CR7

0C8h

R/W

REG_IMR0_REG

0D0h

R/W

REG_IMR1_REG

0D4h

R/W

REG_ISR1_REG

0D8h

R/W

REG_INT_R_REG

0DCh

R/W

Interrupt routing register

REG_RST_PWR_DOWN_OPERATION_CTRL_REG

0E0h

R/W

Reset and Power Down Operation Control Register

REG_CLK_CTRL_REG

0E4h

R/W

Clock Control Register

REG_INTERUPT_MASK_REG

0F0h

R/W

Interrupt Mask Register

REG_INTERUPT_STATUS_REG

0F4h

R/W

Interrupt Status Register

REG_TXFDP1

1300h

R/W

Tx First Descriptor Pointer (FDP) for 1st priority queue. 32 bits

REG_TXCDO1

1304h

R

Tx Current Descriptor Offset (CDO) for 1st priority queue.16 bits

REG_TXFDP2

1310h

R/W

Tx First Descriptor Pointer (FDP) for 2nd priority queue. 32 bits

REG_TXCDO2

1314h

R

Tx Current Descriptor Offset (CDO) for 2nd priority queue.16 bits

REG_TXFDP3

1320h

R/W

Tx First Descriptor Pointer (FDP) for 3rd priority queue. 32 bits

REG_TXCDO3

1324h

R

Tx Current Descriptor Offset (CDO) for 3rd priority queue.16 bits

REG_TXFDP4

1330h

R/W

Tx First Descriptor Pointer (FDP) for 4th priority queue. 32 bits

REG_TXCDO4

1334h

R

Tx Current Descriptor Offset (CDO) for 4th priority queue.16 bits

REG_TXFDP5

1340h

R/W

Tx First Descriptor Pointer (FDP) for 5th priority queue. 32 bits

REG_TXCDO5

1344h

R

Tx Current Descriptor Offset (CDO) for 5th priority queue.16 bits

REG_RRING_MAP1

1370h

R/W

Rx ring mapping for 1st queue.

REG_RRING_MAP2

1374h

R/W

Rx ring mapping for 1st queue.

REG_RRING_MAP3

1378h

R/W

Rx ring mapping for 1st queue.

REG_RRING_MAP4

137Ch

R/W

Rx ring mapping for 1st queue.

REG_RRING_MAP5

1380h

R/W

Rx ring mapping for 1st queue.

REG_RRING_MAP6

1384h

R/W

Rx ring mapping for 1st queue.

REG_RXFDP2

1390h

R/W

Rx First Descriptor Pointer (FDP) for 2nd priority queue. 32 bits

REG_RXRINGSIZE2

1394h

R/W

Rx Ring Size2 (number of Descriptors)

REG_RXCDO2

1396h

R

Rx Current Descriptor Offset (CDO) for 2nd priority queue. 16 bits

REG_RX_CPU_DESN2

1398h

R/W

This is the descriptor which the CPU has finished processing for 2nd priority queue and returned to IO. CPU needs to update this.

REG_RX_DES_THRES2

139Ch

R/W

This is the descriptor which the Ethernet module has filled up to for 2st priority queue. Compare with CPU_Des_Num to determine whether to assert flow control.

REG_RXFDP3

13A0h

R/W

Rx First Descriptor Pointer (FDP) for 2nd priority queue. 32 bits

REG_RXRINGSIZE3

13A4h

R/W

Rx Ring Size2 (number of Descriptors)

REG_RXCDO3

13A6h

R

Rx Current Descriptor Offset (CDO) for 2nd priority queue. 16 bits

REG_RX_CPU_DESN3

13A8h

R/W

This is the descriptor which the CPU has finished processing for 2nd priority queue and returned to IO. CPU needs to update this.

REG_RX_DES_THRES3

13ACh

R/W

This is the descriptor which the Ethernet module has filled up to for 2st priority queue. Compare with CPU_Des_Num to determine whether to assert flow control.

REG_RXFDP4

13B0h

R/W

Rx First Descriptor Pointer (FDP) for 2nd priority queue. 32 bits

REG_RXRINGSIZE4

13B4h

R/W

Rx Ring Size2 (number of Descriptors)

REG_RXCDO4

13B6h

R

Rx Current Descriptor Offset (CDO) for 2nd priority queue. 16 bits

REG_RX_CPU_DESN4

13B8h

R/W

This is the descriptor which the CPU has finished processing for 2nd priority queue and returned to IO. CPU needs to update this.

REG_RX_DES_THRES4

13BCh

R/W

This is the descriptor which the Ethernet module has filled up to for 2st priority queue. Compare with CPU_Des_Num to determine whether to assert flow control.

REG_RXFDP5

13C0h

R/W

Rx First Descriptor Pointer (FDP) for 2nd priority queue. 32 bits

REG_RXRINGSIZE5

13C4h

R/W

Rx Ring Size2 (number of Descriptors)

REG_RXCDO5

13C6h

R

Rx Current Descriptor Offset (CDO) for 2nd priority queue. 16 bits

REG_RX_CPU_DESN5

13C8h

R/W

This is the descriptor which the CPU has finished processing for 2nd priority queue and returned to IO. CPU needs to update this.

REG_RX_DES_THRES5

13CCh

R/W

This is the descriptor which the Ethernet module has filled up to for 2st priority queue. Compare with CPU_Des_Num to determine whether to assert flow control.

REG_RXFDP6

13D0h

R/W

Rx First Descriptor Pointer (FDP) for 2nd priority queue. 32 bits

REG_RXRINGSIZE6

13D4h

R/W

Rx Ring Size2 (number of Descriptors)

REG_RXCDO6

13D6h

R

Rx Current Descriptor Offset (CDO) for 2nd priority queue. 16 bits

REG_RX_CPU_DESN6

13D8h

R/W

This is the descriptor which the CPU has finished processing for 2nd priority queue and returned to IO. CPU needs to update this.

REG_RX_DES_THRES6

13DCh

R/W

This is the descriptor which the Ethernet module has filled up to for 2st priority queue. Compare with CPU_Des_Num to determine whether to assert flow control.

REG_RX_FDP1

13F0h

R/W

Rx First Descriptor Pointer (FDP) for 1th priority queue. 32 bits

REG_RX_RINGSIZE1

13F4h

R/W

Rx Ring Size1 (number of Descriptors)

REG_RX_CDO1

13F6h

R

Rx Current Descriptor Offset (CDO) for 1th priority queue. 16 bits

REG_SMSA

13FCh

R/W

Sram mapping start address

REG_PROBE_SELEXCT

1400h

R/W

Probe signal select

REG_DIAG1

1404h

R

For debug./

REG_CONFIG_CLK_AND_RX_PSE_DES_THRES_H

142Ch

R/W

Bit[3:0] is the Rx_Pse_Des_Thres_off[11:8]. Bit [21:16] set txc delay and rxc delay sel.

REG_ETHRNTRXCPU_DES_NUM1

1430h

R/W

This is the descriptor which the CPU has finished processing and returned to IO for 1st priority queue. CPU needs to update this.

REG_ETHER_IO_CMD

1434h

R/W

ETHER_IO_CMD

REG_IO_CMD1

1438h

R/W

ETHER_IO_CMD1

REG_WOL

143Ch

R/W

WOL_REG

REG_IDR0

  • Size: 32

  • Address offset: 000h

  • Read/write access: R/W

ID Register 0 -3.

31:24 IDR0 23:16 IDR1 15:8 IDR2 7:0 IDR3

Bit

Symbol

Access

INI

Description

31:24

IDR0

R/W

0

The ID register0-5 are only permitted to write by 4-byte access. Read access can be byte, word, or double word access.

23:16

IDR1

R/W

0

15:8

IDR2

R/W

0

7:0

IDR3

R/W

0

REG_IDR4

  • Size: 32

  • Address offset: 004h

  • Read/write access: R/W

ID Register 4-5.

31:24 IDR4 23:16 IDR5 15:0 RSVD

Bit

Symbol

Access

INI

Description

31:24

IDR4

R/W

0

23:16

IDR5

R/W

0

15:0

RSVD

R

-

Reserved

REG_MAR0

  • Size: 32

  • Address offset: 008h

  • Read/write access: R/W

Multicast Register 0-3

31:24 MAR0 23:16 MAR1 15:8 MAR2 7:0 MAR3

Bit

Symbol

Access

INI

Description

31:24

MAR0

R/W

0

Multicast Register 0, The MAR register0-7 are only permitted to write by 4-byte access. Read access can be byte, word, or double word access. Driver is responsible for initializing these registers. The MAR7-0 define 64 bits which is a bit wise index of the multicast function of multicast addresses. The hash function of multicast address is the upper 6 MSB’s of the CRC32 of the address (destination). The index then is the numerical representation of those 6 bits in hex format.

23:16

MAR1

R/W

0

Multicast Register 1

15:8

MAR2

R/W

0

Multicast Register 2

7:0

MAR3

R/W

0

Multicast Register 3

REG_MAR4

  • Size: 32

  • Address offset: 00Ch

  • Read/write access: R/W

Multicast Register 4-7

31:24 MAR4 23:16 MAR5 15:8 MAR6 7:0 MAR7

Bit

Symbol

Access

INI

Description

31:24

MAR4

R/W

0

Multicast Register 4

23:16

MAR5

R/W

0

Multicast Register 5

15:8

MAR6

R/W

0

7:0

MAR7

R/W

0

Multicast Register 7

REG_RXOKCNT

  • Size: 16

  • Address offset: 010h

  • Read/write access: R/W

16-bit counter of Rx Ok packets.

15:0 RXOK

Bit

Symbol

Access

INI

Description

15:0

RXOK

R/W

0

16-bit counter of Rx Ok packets. Rolls over automatically. Write to clear.

REG_TXOKCNT

  • Size: 16

  • Address offset: 012h

  • Read/write access: R/W

16-bit counter of Tx DMA Ok packets.

15:0 TXOK

Bit

Symbol

Access

INI

Description

15:0

TXOK

R/W

0

16-bit counter of Tx Ok packets. Rolls over automatically. Write to clear.

REG_RXERR

  • Size: 16

  • Address offset: 014h

  • Read/write access: R/W

16-bit packet counter of Rx errors including CRC error packets (should be larger than 8 bytes) and

missed packets.

15:0 RXERR

Bit

Symbol

Access

INI

Description

15:0

RXERR

R/W

0

16-bit counter of RxErr packets. Rolls over automatically. Write to clear. The source of RxErr are GMAC meets the following condition when rx fifo is not full.:

  1. RCR.accept runt = 0, but the ingress pkt length < 64B.

2. RCR.accepterr = 0, but the ingress pkt is a CRC error pkt.

REG_TXERR

  • Size: 16

  • Address offset: 016h

  • Read/write access: R/W

16-bit packet counter of Tx errors including Tx abort, carrier lost and out of window collision.

15:0 TXERR

Bit

Symbol

Access

INI

Description

15:0

TXERR

R/W

0

16-bit counter of TxErr packets. Rolls over automatically. Write to clear. The source of TxErr are txunder, txabt(in half-duplex mode) or txlinkerr.

REG_FAE

  • Size: 16

  • Address offset: 018h

  • Read/write access: R/W

16-bit counter of Frame Alignment Error packets (MII mode only)

15:0 FAE

Bit

Symbol

Access

INI

Description

15:0

FAE

R/W

0

16-bit counter of FAE (Frame Alignment Error) packets. Rolls over automatically. Write to clear. RCR.AER should be high.

When FAE occurs in 10/100mode, the following thins happens:

  • Rx status des.CRC error does not assert if the ingress(exclude alignment error nibble) if correct.

  • RxErr_reg increased by 1.

  • FAE_reg increased by 1

  • Rx status des.RCDF does not asserts.

Data length does not include alignment error nibble.

REG_MISSPKT

  • Size: 16

  • Address offset: 01Ah

  • Read/write access: R/W

16-bit counter of missed packets resulting from Rx FIFO full.

15:0 MISSPKT

Bit

Symbol

Access

INI

Description

15:0

MISSPKT

R/W

0

16-bit counter of Missed packets.

Rolls over automatically.

Write to clear.

REG_TXMCOL

  • Size: 16

  • Address offset: 01Ch

  • Read/write access: R/W

16-bit counter of those Tx Ok packets with more than 1, and less than 16 collisions happened before

Tx Ok.

15:0 TXMCOL

Bit

Symbol

Access

INI

Description

15:0

TXMCOL

R/W

0

16-bit counter of TxCol packets. Rolls over automatically. Write to clear. This keeps track of those packets with less than 16 collisions (or the configured retry count) before Tx Ok

REG_TX1COL

  • Size: 16

  • Address offset: 01Eh

  • Read/write access: R/W

16-bit counter of those Tx Ok packets with only 1 collision happened before Tx Ok.

15:0 TX1COL

Bit

Symbol

Access

INI

Description

15:0

TX1COL

R/W

0

16-bit counter of TxCol packets. Rolls over automatically. Write to clear. This only record which have entered just one collision before Tx OK

REG_RXOKBRD

  • Size: 16

  • Address offset: 020h

  • Read/write access: R/W

16-bit counter of all Rx Ok packets with broadcast destination ID.

15:0 RXOKBRD

Bit

Symbol

Access

INI

Description

15:0

RXOKBRD

R/W

0

16-bit counter of Rx Ok packets with broadcast destination address..

Rolls over automatically.

Write to clear.

REG_RXOKPHY

  • Size: 16

  • Address offset: 022h

  • Read/write access: R/W

16-bit counter of all Rx Ok packets with physical address matched destination ID.

15:0 RXOKPHY

Bit

Symbol

Access

INI

Description

15:0

RXOKPHY

R/W

0

16-bit counter of Rx Ok packets with physical address matching destination address. Rolls over automatically. Write to clear.

REG_TXABT

  • Size: 16

  • Address offset: 024h

  • Read/write access: R/W

16-bit counter of Tx abort packets.

15:0 TXABT

Bit

Symbol

Access

INI

Description

15:0

TXABT

R/W

0

16-bit counter of Tx aborted packets. Rolls over automatically.

Write to clear.

This accounts for over collision, underrun, LNK failure conditions.

REG_RXOKMU1

  • Size: 16

  • Address offset: 026h

  • Read/write access: R/W

16-bit counter of all Rx Ok packets with multicast destination ID.

15:0 RXOKMUL

Bit

Symbol

Access

INI

Description

15:0

RXOKMUL

R/W

0

16-bit counter of Rx Ok packets with multicast destination address.

Rolls over automatically.

Write to clear.

REG_MISSPKT_RDU

  • Size: 16

  • Address offset: 028h

  • Read/write access: R/W

16-bit counter of miss packet due to rdu in rx multiple ring mode. Rolls over automatically. Write

to clear. gmac only.

15:0 RDU_MISSPKTC

Bit

Symbol

Access

INI

Description

15:0

RDU_MISSPKTC

R/W

0

16-bit counter of miss packets due to rx descriptor is unavailable. Rolls over automatically.

Write to clear.

Gmac only.

REG_TXUNDERC

  • Size: 16

  • Address offset: 02Ah

  • Read/write access: R/W

16-bit counter of Tx Underrun packets. Rolls over automatically. Write to clear. gmac only.

15:0 TXUNDERC

Bit

Symbol

Access

INI

Description

15:0

TXUNDERC

R/W

0

16-bit counter of Tx Underrun packets. Rolls over automatically.

Write to clear.

Gmac only.

REG_TRSR

  • Size: 32

  • Address offset: 034h

  • Read/write access: R

Tx/Rx Status Register

31:4 RSVD 3 TOK 2 TXUNDER 1 RXFIFOEMPTY 0 RBU

Bit

Symbol

Access

INI

Description

31:4

RSVD

R

-

Reserved

3

TOK

R

Transmit OK: Set to 1 indicates that the transmission of a packet was completed successfully and no transmit underrun occurs.

2

TXUNDER

R

Transmit FIFO Underrun: Set to 1 if the Tx FIFO was exhausted during the transmission of a packet.

1

RXFIFOEMPTY

R

Rx Fifo is Empty.

0

RBU

R

Rx buff is un-available, rx full

REG_CR

  • Size: 32

  • Address offset: 038h

  • Read/write access: R/W

Command Register

31:6 RSVD 5 TDSC_DEBUG 4 DIS_LSO_ERR 3 RXJUMBO 2 RXVLAN 1 RXCHKSUM 0 RST

Bit

Symbol

Access

INI

Description

31:6

RSVD

R

-

Reserved

5

TDSC_DEBUG

R/W

0

Tx descriptor debug

4

DIS_LSO_ERR

R/W

0

Disable LSO error

3

RXJUMBO

R/W

0

  • 1: support jumbo packet receiving. The maximum packet size is 16384B(0x4000).

  • 0: Does not support jumbo packet receiving.

When rxjumbo sets to 1, the minium rx descriptor ring size is 16.

2

RXVLAN

R/W

0

Receive VLAN de-tagging enable.1: Enable. 0: Disable.

  • 1: detag vlan and set rx status dsc.tava = 1 when ingress packet has vlantag.

  • 0: disable detag vlan and rx status dsc.tava = 0.

1

RXCHKSUM

R/W

0

Receive checksum offload enable. 1: Enable. 0: Disable.

0

RST

R/W

0

Reset: Setting to 1 forces the Ethernet module to a software reset state which disables the transmitter and receiver, reinitializes the FIFOs, triggers interrupt Swint for RISC to reset the system buffer pointer to the initial value Tx/Rx FDP. The values of IDR0-5 and MAR0-7 will have no changes. This bit is 1 during the reset operation, and is cleared to 0 by the Ethernet Module when the reset operation is complete.

REG_ISR

  • Size: 16

  • Address offset: 03Ch

  • Read/write access: R/W

15 ISR_RDU6 14 ISR_RDU5 13 ISR_RDU4 12 ISR_RDU3 11 ISR_RDU2 10 ISR_SWINT 9 ISR_TDU 8 ISR_LINKCHG 7 ISR_TER 6 ISR_TOK_TI 5 ISR_RDU1 4 ISR_RER_OVF 3 RSVD 2 ISR_RER_RUNT 1 ISR_CNT_WRAP 0 ISR_ROK

Bit

Symbol

Access

INI

Description

15

ISR_RDU6

R/W

Rx Descriptor Unavailable for RING6:

When set, indicates Rx descriptor is unavailable.

Write 1 to clear.

14

ISR_RDU5

R/W

Rx Descriptor Unavailable for RING5:

When set, indicates Rx descriptor is unavailable.

Write 1 to clear.

13

ISR_RDU4

R/W

Rx Descriptor Unavailable for RING4:

When set, indicates Rx descriptor is unavailable.

Write 1 to clear.

12

ISR_RDU3

R/W

Rx Descriptor Unavailable for RING3:

When set, indicates Rx descriptor is unavailable.

Write 1 to clear.

11

ISR_RDU2

R/W

Rx Descriptor Unavailable for RING2:

When set, indicates Rx descriptor is unavailable.

Write 1 to clear.

10

ISR_SWINT

R/W

Software Interrupt pending:

When set to 1 indicates a software interrupt was forced.

Write 1 to clear.

9

ISR_TDU

R/W

Tx Descriptor Unavailable:

When set, indicates Tx descriptor is unavailable.

Write 1 to clear.

8

ISR_LINKCHG

R/W

Link Change:

Write 1 to clear.

7

ISR_TER

R/W

Transmit (Tx) Error:

Indicates that a packet transmission was aborted, due to excessive collisions, according to the TXRR’s setting.

Write 1 to clear.

6

ISR_TOK_TI

R/W

Transmit Interrupt:

Indicates that the DMA of the last descriptor of TxIntMitigation number of Tx packet has completed and the last descriptor has been closed.

Write 1 to clear.

5

ISR_RDU1

R/W

Rx Descriptor Unavailable for RING1:

When set, indicates Rx descriptor is unavailable.

Write 1 to clear.

4

ISR_RER_OVF

R/W

Rx FIFO Overflow, caused by RBO/RDU, poor system bus (Lexra bus) performance, or overloaded Lexra bus traffic.

Write 1 to clear.

3

RSVD

R

-

Reserved

2

ISR_RER_RUNT

R/W

Rx error caused by runt error characterized by the frame length in bytes being less than 64 bytes.

Write 1 to clear.

1

ISR_CNT_WRAP

R/W

Tx/rx counter wrap interrupt.

0

ISR_ROK

R/W

Receive (Rx) OK: This interrupt is set either when RxIntMitigation packet is met or RxPktTimer expires.

Write 1 to clear.

REG_IMR

  • Size: 16

  • Address offset: 03Eh

  • Read/write access: R

15:0 RSVD

Bit

Symbol

Access

INI

Description

15:0

RSVD

R

-

Reserved

REG_TCR

  • Size: 32

  • Address offset: 040h

  • Read/write access: R/W

Transmit (Tx) Configuration Register

31:13 RSVD 12:10 IFG2_0 9:8 LBK 7:0 RSVD

Bit

Symbol

Access

INI

Description

31:13

RSVD

R

-

Reserved

12:10

IFG2_0

R/W

0x0

InterFrameGap Time: This field allows the user to adjust the interframe gap time longer than the standard: 9.6 us for 10Mbps, 960 ns for 100Mbps. The time can be programmed from 9.6 us to 14.4 us (10Mbps) and 960ns to 1440ns (100Mbps). The formula for the inter frame gap is:

IFG[2:0] IFGx1000MHz (nS) IFGx100MHz (nS) IFGx10MHz (uS)

0 1 1 96 960 9.6

1 0 0 96 +8 * 1 960 +8 * 10 9.6 +8 * 0.1

1 0 1 96 + 16 * 1 960 + 16 * 10 9.6 + 16 * 0.1

1 1 0 96 + 24 * 1 960 + 24 * 10 9.6 + 24 * 0.1

1 1 1 96 + 32 * 1 960 + 32 * 10 9.6 + 32 * 0.1

0 0 0 96 + 40 * 1 960 + 40 * 10 9.6 + 40 * 0.1

0 0 1 96 + 48 * 1 960 + 48 * 10 9.6 + 48 * 0.1

0 1 0 96 + 96 * 1 960 + 96 * 01 9.6 + 96 * 0.1

9:8

LBK

R/W

0x0

The loopback function must be independent of the link state.

  • 2’b00 : normal operation

  • 2’b01 : Loopback mode_R2T(lbkmode_r2t) :

Lbk methld: no SW requirement.

  1. receive ingress data.

  2. assign rxd to txd (txd).

  3. egress pkt. b10 : Reserved

  • 2’b11 : Loopback mode(lbk_mode).

Lbk method: 1. rx fet descriptor.

  1. tx fet descriptor and data

  2. put data in txfifo

  3. assign txd to rxd.(lbk)

  4. gmac mv data to lxb.

In this mode(lbk_mode), the recommended value of RC_REG(0x44) is 0xf.

7:0

RSVD

R

-

Reserved

REG_RCR

  • Size: 32

  • Address offset: 044h

  • Read/write access: R/W

Receive (Rx) Configuration Register

31:8 RSVD 7 HOMEPNA 6 AFLOW 5 AER 4 AR 3 AB 2 AM 1 APM 0 AAP

Bit

Symbol

Access

INI

Description

31:8

RSVD

R

-

Reserved

7

HOMEPNA

R/W

1’b0

Home PNA mode

6

AFLOW

R/W

1’b0

Accept flow control :

When set to 1, flow control packet will also be received & DMA to rx buffer for debug. Default is 0.

5

AER

R/W

1’b0

Accept Error Packet:

When set to 1, all packets with CRC error, alignment error, and/or collided fragments will be accepted.

Rxerrc keeps,

Rxokc +1,

Rx status dsc.CRC =1,

Rx status dsc.RCDF =0.

When set to 0, all packets with CRC error, alignment error, and/or collided fragments will be rejected.

Rxerrc +1,

Rxokc keeps,

Rx status dsc.CRC =0,

Rx status dsc.RCDF =1.

4

AR

R/W

1’b0

Accept Runt: This bit allows the receiver to accept packets that are smaller than 64 bytes. The packet must be at least 8 bytes long to be accepted as a runt. Set to 1 to accept runt packets.

3

AB

R/W

1’b0

Set to 1 to accept broadcast packets, 0 to reject.

2

AM

R/W

1’b0

Set to 1 to accept multicast packets, 0 to reject. RC_REG.AB and AM should be enabled simulatanously.

1

APM

R/W

1’b0

Set to 1 to accept physical match packets, 0 to reject.

0

AAP

R/W

1’b0

Set to 1 to accept all packets with physical destination address, 0 to reject.

REG_CPUTAG

  • Size: 32

  • Address offset: 048h

  • Read/write access: R/W

CPU tag control register.

31 CTEN_RX 30:27 CT_TSIZE 26:25 CT_RSIZE_3_2 24 CT_DSLRN 23 CT_NORMK 22 CT_ASPRI 21:18 CT_SWITCH 17:16 CT_RSIZE_1_0 15:8 CTPM 7:0 CTPV

Bit

Symbol

Access

INI

Description

31

CTEN_RX

R/W

0

Enable parsing ingress packet with cputag format.

30:27

CT_TSIZE

R/W

0

Cputag size in egress pkt.

CTT_size: 4’h0: 0 Byte

  • 4’h1: 4 Byte

  • 4’h2: 8Byte

  • 4’h3: 12 Byte

26:25

CT_RSIZE_3_2

R/W

0

After rl8681 (including), this field is only for ingress pkt.

CTR_size: 4’h0: 0 Byte

  • 4’h1: 4 Byte

  • 4’h2: 8Byte F

Or Apollo cputag with PTP timestamp, set CT_RSIZE to h2.

24

CT_DSLRN

R/W

1

In rtl8370s, Setting of Disable Learning field in tx cputag.

Setting of Disable Learning field in RTL8368 or DSLRN field in RTL8307h tx cputag when short_dsc_format = 0.

23

CT_NORMK

R/W

0

Setting of NORMK field in RTL8307h tx cputag when short_dsc_format = 0.

22

CT_ASPRI

R/W

1

In RTL8307h, setting ASPRI field in tx cputag when short_dsc_format = 0.

In RTL8370S, setting priority select field in tx cputag when short_dsc_format =0..

21:18

CT_SWITCH

R/W

0

Support cputag format of switch

  • 0: no cputag support

  • 1: 8368

  • 2: 8306

  • 3: 8307

  • 4: 8370

  • 5: gmac in 8681.

  • 6: gmac in Apollo, rle0371, rl6266 and rtl9601(rle0639)

17:16

CT_RSIZE_1_0

R/W

0

15:8

CTPM

R/W

0

CPU tag protocol mask.

  • 8306:0xf0

  • 8368:0xe0

  • 8370:0xff

  • 8307h:0xff

7:0

CTPV

R/W

0

CPU tag protocol value.

  • 8306:0x90

  • 8368:0xa0 or 0xb0

  • 8370:0x04

  • 8307h:0x04

REG_CONFIG

  • Size: 32

  • Address offset: 04Ch

  • Read/write access: R/W

Configuration register

31:30 RSVD 29:28 RFF_SIZE_SEL 27 R_TSO_ID_SEL 26 R_MDSLV_OUTEDGE 25 EN_INT_ROUTE 24 EN_INT_SPLIT 23:0 RSVD

Bit

Symbol

Access

INI

Description

31:30

RSVD

R

-

Reserved

29:28

RFF_SIZE_SEL

R/W

2’b10

Set gmac_rxfifo size.

  • 2’b00: 1KB

  • 2’b01: 1664B

  • 2’b10: 2KB

27

R_TSO_ID_SEL

R/W

1’b0

  • 0: each ID of IP header is same as original ID.

  • 1: increment 1 from original ID. Default value is 0.

26

R_MDSLV_OUTEDGE

R/W

0

This bit works only in phy_mode

  • 0: change mdio output data in falling edge

  • 1: change mdio output data in rising edge

25

EN_INT_ROUTE

R/W

0

  • 0: disable interrupt routing, IMR0_reg, IMR1_reg.

  • 1: enable interrupt routing, IMR0_reg, IMR1_reg.

24

EN_INT_SPLIT

R/W

0

When, en_int_route = 0,

  • 0: only int.tdu, tok and rok present.

  • 1: IMR0_reg, IMR1_reg and ISR1_reg present.

When en_int_route = 1, this field is 1.

23:0

RSVD

R

-

Reserved

REG_CPUTAG1

  • Size: 32

  • Address offset: 050h

  • Read/write access: R/W

CPUTAG1 control register

31:7 RSVD 6:4 SPA_DSL 3 RSVD 2:0 SPA_PON

Bit

Symbol

Access

INI

Description

31:7

RSVD

R

-

Reserved

6:4

SPA_DSL

R/W

0

3

RSVD

R

-

Reserved

2:0

SPA_PON

R/W

0

The ingress cputag.SPA=PON field. Used in Apollo cputag.

REG_MSR

  • Size: 32

  • Address offset: 058h

  • Read/write access: R/W

Media Status Register

31 FORCE_TRXFCE 30 RXFCE 29 TXFCE 28:27 SPEED 26 LINKB 25 TXPF 24 RXPF 23 SEL_RGMII 22 FULLDUPREG 21 NWCOMPLETE 20 SEL_MII 19 FORCEDFULLDUP 18 FORCELINK 17:16 FORCE_SPD 15 GMAC_SEL_PHYIF_0 14 RSVD 13 GMAC_PHY_MODE 12 RGMII_RX_DECODE_STS 11 RGMII_TX_ENCODE_STS 10 FORCE_SPD_MODE 9:8 EEE_ABY 7 REG_RMII2MII_EN 6 GMAC_MD_MST 5:2 RSVD 1 REFCLK_PHASE 0 REFCLK_ON

Bit

Symbol

Access

INI

Description

31

FORCE_TRXFCE

R/W

1’b0

Force Tx/RX Flow Control:

1 = enabled Flow control in the absence of NWAY.

0 = disables Flow control in the absence of NWAY.

Version effect: rl6166(ECO) and after.

30

RXFCE

R/W

1’b0

RX Flow control Enable: The flow control is enabled in full-duplex mode only.

Packets are dropped if buffer is exhausted. Default is 0.

1 = Rx Flow Control Enabled.

0 = Rx Flow Control Disabled.

29

TXFCE

R/W

1’b0

Tx Flow Control Enable:

1 = tx flow control enabled.

0 = tx flow control disabled.

ACCEPT ERROR MUST NOT BE ENABLED

28:27

SPEED

R

{SPEED_1000, SPEED_10}

  • 00: 100Mbps,

  • 01: 10Mbps

  • 10: 1000Mbps,

  • 11: not allowed

26

LINKB

R

Inverse of Link status.

0 = Link OK.

1 = Link Fail.

25

TXPF

R

Tx Pause frame:

1 = Ethernet module has sent a pause packet.

0 = the Ethernet module has sent a timer done packet.

24

RXPF

R

Pause Flag:

1 = Ethernet module is in backoff state because a pause packet received.

0 = pause state is clear.

23

SEL_RGMII

R/W

0

Gmac_sel_rgmii

22

FULLDUPREG

R

0

Indicates Full duplex mode from mdio results.

21

NWCOMPLETE

R

0

Nway complete

20

SEL_MII

R

0

Indicates in mii mode.

19

FORCEDFULLDUP

R/W

0

Force gmac operates at full duplex mode.

This bit is Write only in RLE0315.

This bit is R/W in RLE0390 (原RL6166).

  • 1’b1: force gmac in full duplex mode.

  • 1’b0: duplex status is from MDIO auto-polling.

Not means gmac is in half duplex mode.

18

FORCELINK

R/W

0

Force gmac in link ok mode.

This bit is Write only in RLE0315.

This bit is R/W in RLE0390 (RL6166).

  • 1’b1: force gmac in linkok.

  • 1’b0: link status is from MDIO auto-polling.

17:16

FORCE_SPD

R/W

2’b11

Force gmac in 10/100/GIGA mode.

  • 2’b00: 100M

  • 2’b01: 10M

  • 2’b10: GIGA

  • 2’b11: not force mode.

These bits are Write only in RLE0390 (RL6166). The current speed status of gmac can be checked in MSR_reg.{speed1000, speed_10}.

In force mode, SW can set gmac operates in , FD and Link ok(for example) and SW can not set gmac operates in , HD and Link ok. When FORCEDFULLDUP is b0, the duplex status is from MDIO auto-polling, therefore, it is not controlled by SW.

15

GMAC_SEL_PHYIF_0

R

1

  • 1: phy interface 0.works.

  • 0: phy interface 1 works.

14

RSVD

R

-

Reserved

13

GMAC_PHY_MODE

R/W

0

  • 1: in phy mode. (bit[6] will be read as ‘0’)

  • 0: not in phy mode. (bit[6] will be read as ‘1’)

12

RGMII_RX_DECODE_STS

R/W

0

  • 0: Does not support rgmii in band status(link status, speed and duplex mode of the PHY) by decoding rxd.

  • 1: Supports rgmii in band status(link status, speed and duplex mode of the PHY) by decoding rxd.

11

RGMII_TX_ENCODE_STS

R/W

0

This field is valid only in phy mode.

  • 0: Does not support rgmii in band status(link status, speed and duplex mode of the PHY) by encoding txd.

  • 1: Supports rgmii in band status(link status, speed and duplex mode of the PHY) by encoding txd.

10

FORCE_SPD_MODE

R/W

0

  • 1: gmac is in force speed mode. The real speed in force mode is set in MS_REG.FORCE_SPD.

  • 0: gmac speed status is from md operation.

9:8

EEE_ABY

R

0

Indicates eee ability of PCS.

Eee_aby[0]: eee ability in 100M

Eee_aby[1]: eee ability in giga mode.

7

REG_RMII2MII_EN

R/W

1’b1

  • 1: transfer MII signals to RMII signals

This function is only valid in MII mode.

(default 0: for AmebaI//AmebaPro/AmebaPro2)

6

GMAC_MD_MST

R

1

  • 1: GMAC is used to be MDIO master. (When bit[13] is setting as ‘0’)

  • 0: GMAC is used to be MDIO slave. (When bit[13] is setting as ‘1’)

5:2

RSVD

R

-

Reserved

1

REFCLK_PHASE

R/W

0

  • 1: for Tx transaction, TXEN & TXD signals are changed on the falling edge of REF_CLK; for Rx transaction, RXD signals are sampled on the falling edge of REF_CLK

  • 0: for Tx transaction, TXEN & TXD signals are changed on the rising edge of REF_CLK; for Rx transaction, RXD signals are sampled on the rising edge of REF_CLK

0

REFCLK_ON

R/W

1

  • 1: REF_CLK on

  • 0: REF_CLK off

REG_MIIAR

  • Size: 32

  • Address offset: 05Ch

  • Read/write access: R/W

MII Access Register

31 FLAG 30:26 PHYADDRESS 25 MDIO_BUSY 24 RSVD 23 EN_EEEP_AUTO_WRITE 22 DISABLE_AUTO_POLLING 21 POLLING_EEE_REG 20:16 REGADDR4_0 15:0 DATA15_0

Bit

Symbol

Access

INI

Description

31

FLAG

R/W

0

Flag bit, used to identify access to MII register:

  • 1: Write data to MII register. Turns to 0 automatically upon completion of MAC writing to the specified MII register.

  • 0: Read data from MII register. Turns to 1 automatically upon completion of MAC reading the specified MII register.

Read write turn around time I s about 64 us.

30:26

PHYADDRESS

R/W

1

Defines the Phy address for the MII.

25

MDIO_BUSY

R

MDIO is busy

24

RSVD

R

-

Reserved

23

EN_EEEP_AUTO_WRITE

R/W

0

HW auto writes PCS.page4.reg20 and reg27 to adjust analog parameters based on eeep_lpi state.

SW should change page to page4 then set MIIA_REG.en_eeep_auto_write. HW will write eeep_abig_on/off and eeep_ldvbias_on/off (in EEEP_CR6_REG and EEEP_CR7_REG) to PCS.page4.reg20 and reg27, respectively, based on eeep_lpi state.

If SW wants to access another page of PCS, SW should disable MIIA_REG.en_eeep_auto_write.

22

DISABLE_AUTO_POLLING

R/W

0

Disable auto polling feature of mdio operation.

  • 0: HW auto polling PCS status.

  • 1: HW does not auto polling PCS status.

21

POLLING_EEE_REG

R/W

0

Polling PCS EEE advertisement register (7.60). In rl6166(原rle0315) and before: this bit is not supported.

In rle0390: In in-direct method, gmac had to access PCS register by multiples R/W of reg13 and 14. It is OK for PCS to be aborted in the middle of indirect method.

In rle0371: HW will complete current indirect access to PCS then stop in-direct method. Please refer to EEE_CR1_reg.

20:16

REGADDR4_0

R/W

0

Defines 5-bit MII register address.

15:0

DATA15_0

R/W

0

Defines 16 bit MII resgister data.

REG_SWINT

  • Size: 32

  • Address offset: 060h

  • Read/write access: R/W

SWINT Register

31:25 RSVD 24 SWINT 23:0 RSVD

Bit

Symbol

Access

INI

Description

31:25

RSVD

R

-

Reserved

24

SWINT

R/W

Write 1 will force ISR register bit 10 set to 1

23:0

RSVD

R

-

Reserved

REG_VLAN_REG

  • Size: 32

  • Address offset: 064h

  • Read/write access: R/W

Vlan tag register

31:16 STAG_PID 15 TDSC_VLAN_TYPE 14:0 RSVD

Bit

Symbol

Access

INI

Description

31:16

STAG_PID

R/W

0x88a8

Set the s-tag protocol identifier. This field is valid only when COM_REG.TDSC_VLAN_TYPE is high.

15

TDSC_VLAN_TYPE

R/W

0

  • 1: tx command descriptor.tx_vlan_action is for s-tag.

  • 0: tx command descriptor.tx_vlan_action is for c-tag.

14:0

RSVD

R

-

Reserved

REG_LED_CTRL

  • Size: 32

  • Address offset: 070h

  • Read/write access: R/W

Led control register

31:20 RSVD 19 EEE_EN_LED 18 CUSTOM_LED 17:16 LEDSEL 15:12 LEDSEL3 11:8 LEDSEL2 7:4 LEDSEL1 3:0 LEDSEL0

Bit

Symbol

Access

INI

Description

31:20

RSVD

R

-

Reserved

19

EEE_EN_LED

R/W

0

Enable/disable lpi led.

18

CUSTOM_LED

R/W

0

Custom led mode. 1: using custom led matrix table. 0: using Non-custom led table.

17:16

LEDSEL

R/W

0

Non custom led select. Following EEE spec, combine the Link signal and LPI signal in the same LED pin. While entering LPI state, LED will blink with 2784ms cycle, of which the first 2349ms LED light is turned off, after 435ms is turned on.

NO EEE in RL6166.

15:12

LEDSEL3

R/W

0

Custom led3 select.

11:8

LEDSEL2

R/W

0

Custom led2 select.

7:4

LEDSEL1

R/W

0

Custom led1 select.

3:0

LEDSEL0

R/W

0

Custom led0 select.

REG_BIST

  • Size: 32

  • Address offset: 080h

  • Read/write access: R/W

Memory bist

31:15 RSVD 14 CSR_RFF_TMCK 13 CSR_RFF_NAP 12 CSR_RFF_DVSE 11:8 CSR_RFF_DVS 7 RSVD 6 CSR_TFF_TMCK 5 CSR_TFF_NAP 4 CSR_TFF_DVSE 3:0 CSR_TFF_DVS

Bit

Symbol

Access

INI

Description

31:15

RSVD

R

-

Reserved

14

CSR_RFF_TMCK

R/W

1’b0

Set TMCK for RXFIFO

13

CSR_RFF_NAP

R/W

1’b0

Set NAP for RXFIFO

12

CSR_RFF_DVSE

R/W

1’b0

Set DVSE for RXFIFO

11:8

CSR_RFF_DVS

R/W

4’b0000

Set DVS for RXFIFO

7

RSVD

R

-

Reserved

6

CSR_TFF_TMCK

R/W

1’b0

Set TMCK for TXFIFO

5

CSR_TFF_NAP

R/W

1’b0

Set NAP for TXFIFO

4

CSR_TFF_DVSE

R/W

1’b0

Set DVSE for TXFIFO

3:0

CSR_TFF_DVS

R/W

4’b0000

Set DVS for TXFIFO

REG_PGLBK

  • Size: 32

  • Address offset: 084h

  • Read/write access: R/W

Packet generator register.

31:16 RSVD 15 EN_PGLBK 14 PGLBK_DATA_PAT_SEL 13 PGLBK_DONE 12 PGLBK_FAIL 11 PBLBK_PKT_LENGTH_SEL 10:9 PGLBK_PKT_NUM_SEL 8 R_DISABLE_TXCRC 7:0 PGLBK_DATA_PAT

Bit

Symbol

Access

INI

Description

31:16

RSVD

R

-

Reserved

15

EN_PGLBK

R/W

0

Enable packet generator mode

14

PGLBK_DATA_PAT_SEL

R/W

0

  • 1: fixed pattern, 0: pseudo random

13

PGLBK_DONE

R

0

Packet generator in wire lbk mode status. 1: done

12

PGLBK_FAIL

R

0

Packet generator in wire lbk mode status. 1: fail

11

PBLBK_PKT_LENGTH_SEL

R/W

0

  • 0: random (range: 64-1504B), 1: 64B

10:9

PGLBK_PKT_NUM_SEL

R/W

0

  • 2’b00: 100 pkts,

  • 2’b10: 5 pkts.

  • 2’b01: 1 pkt

  • 2’b11: reserved.

8

R_DISABLE_TXCRC

R/W

0

  • 1: not append CRC for egress packet.

  • 0: append CRC for egress packet.

7:0

PGLBK_DATA_PAT

R/W

0

Pattern inside tx packet when pglbk_data_pat_sel is high. For RLE0516, only pglbk_data_pat[3:0] are used.

REG_EEE_CR1

  • Size: 32

  • Address offset: 088h

  • Read/write access: R/W

31 EN_FRC_EEE 30 FRC_EEE_GIGA 29 FRC_EEE 28 EN_EEE 27 EN_EEE_TX 26 EN_EEE_RX 25:24 RSVD 23 EEE_OUTQ_LOWQ_OVER 22:20 RSVD 19 EEE_STS 18 EEE_TX_STS 17 EEE_RX_STS 16 EEE_PAUSEFLAG 15 RSVD 14 EEE_WAKE_SET1 13 EEE_WAKE_SET0 12 EEE_REQ_SET2 11 EEE_REQ_SET1 10 EEE_REQ_SET0 9 EEE_RXTIMER_EN 8 EEE_TXTIMER_EN 7:6 EEE_TIMER_UNIT_GIGA_1 5:4 EEE_TIMER_UNIT_GIGA_2 3:2 EEE_TIMER_UNIT_100_1 1:0 EEE_TIMER_UNIT_100_2

Bit

Symbol

Access

INI

Description

31

EN_FRC_EEE

R/W

0

Enable EEE force mode

  • 0: Disable EEE FORCE Mode

  • 1: Enable EEE FORCE Mode If EN_FRC_EEE=1, both FRC_EEE_Giga and FRC_EEE_100 are used to force MAC operation ability.

30

FRC_EEE_GIGA

R/W

0

If EN_FRC_EEE=1, FRC_EEE_Giga:

  • 0: Disable MAC EEE ability for 1000BASE-T.

  • 1: Enable MAC EEE ability for 1000BASE-T. If EN_FRC_EEE=0, FRC_EEE_Giga means EEE advertisement register 7.60 bit[2]

29

FRC_EEE

R/W

0

If EN_FRC_EEE=1, FRC_EEE_100

  • 0: Disable MAC EEE ability for 100BASE-TX.

  • 1: Enable MAC EEE ability for 100BASE-TX. If EN_FRC_EEE=0, FRC_EEE_100 means EEE advertisement register 7.60 bit[1]

28

EN_EEE

R/W

0

Set same as PHY setting, for LED.

27

EN_EEE_TX

R/W

0

Enable MAC TX EEE ability

  • 0: Disable EEE ability for TX.

  • 1: Enable EEE ability for TX.

26

EN_EEE_RX

R/W

0

Enable MAC RX EEE ability

  • 0: Disable EEE ability for RX.

  • 1: Enable EEE ability for RX. Application note : The following methods could be used to disable EEE function. a) n[1:0] = 00 -> completely disable EEE function, or b) n[3:2] = 00 -> disable /1000Mbps EEE capability (excludes 10Mbps ).

25:24

RSVD

R

-

Reserved

23

EEE_OUTQ_LOWQ_OVER

R/W

0

SW has many packets to be tranmitted, then set this bit to tell HW leave lpi state in condition2.

22:20

RSVD

R

-

Reserved

19

EEE_STS

R

0

Indicate EEE status, both TX and RX.

  • 1: Both TX and RX in LPI mode simultaneously.

  • 0: not both TX and RX in LPI mode simultaneously

18

EEE_TX_STS

R

0

Indicate EEE TX status

  • 1: TX is in LPI mode.

  • 0: TX is in normal mode.

17

EEE_RX_STS

R

0

Indicate Port 0 EEE RX status

  • 1: RX is in LPI mode.

  • 0: RX is in normal mode.

16

EEE_PAUSEFLAG

R

0

Set indication for LPI request due to RX pause on frame.

  • 1: indicate RX pause on frame;

  • 0: no indicate.

15

RSVD

R

-

Reserved

14

EEE_WAKE_SET1

R/W

0

Enable LPI TX high priority pkt Wakeup decision maker for EEE.

  • 1: enable;

  • 0: disable. Gmac will leave lpi mode when EEE_CR1_reg.txq_th is met or one of the egress is larger than 512B.

13

EEE_WAKE_SET0

R/W

0

Enable LPI TX transmit wakeup decision maker for EEE.

  • 1: enable;

  • 0: disable.

12

EEE_REQ_SET2

R/W

0

Enable LPI TX request RX pause on frame decision maker for EEE.

  • 1: enable;

  • 0: disable.

11

EEE_REQ_SET1

R/W

0

Enable LPI TX request queue empty decision maker for EEE.

  • 1: enable;

  • 0: disable. For RLE0390(原RL6166), only for tx is single descriptor operation. For next version, this bit can support multi-descriptor operation.

10

EEE_REQ_SET0

R/W

0

Enable LPI TX request Rate decision maker for EEE.

  • 1: enable;

  • 0: disable.

9

EEE_RXTIMER_EN

R/W

0

Enable RX meter to count RX LPI status time

8

EEE_TXTIMER_EN

R/W

0

Enable TX meter to count TX LPI status time

7:6

EEE_TIMER_UNIT_GIGA_1

R/W

0

Set the unit for timer T_wakeup, T_tx_rate, and T_pause in EEE function.

  • 00: 1uS;

  • 01: 16 uS;

  • 10: 128 uS;

  • 11: 1024uS.

5:4

EEE_TIMER_UNIT_GIGA_2

R/W

0

Set the unit for timer T_tx_delay in EEE function.

  • 00: 8uS;

  • 01: 64uS;

  • 10: 256uS;

  • 11: 1024uS.

3:2

EEE_TIMER_UNIT_100_1

R/W

0

Set the unit for timer T_wakeup, T_tx_rate, and T_pause in EEE function.

  • 00: 1uS;

  • 01: 16uS;

  • 10: 128uS;

  • 11: 1024uS.

1:0

EEE_TIMER_UNIT_100_2

R/W

0

Set the unit for timer T_tx_delay in EEE function.

  • 00: 8uS;

  • 01: 64uS;

  • 10: 512uS;

  • 11: 1024uS.

REG_EEE_CR2

  • Size: 32

  • Address offset: 08Ch

  • Read/write access: R/W

31:24 EEE_TIMER_TW_GIGA 23:16 EEE_TIMER_TR_GIGA 15:8 EEE_TIMER_TD_GIGA 7:0 EEE_TIMER_TP_GIGA

Bit

Symbol

Access

INI

Description

31:24

EEE_TIMER_TW_GIGA

R/W

0x10

Timer value in EEE function for T_wakeup. Value from 0~256.

Unit: EEE_Timer_Unit_Giga_1.

Default value is 16 us.

23:16

EEE_TIMER_TR_GIGA

R/W

0x0a

Timer value in EEE function for T_tx_rate.

Unit: EEE_Timer_Unit_Giga_1.

Default value is 10 us.

15:8

EEE_TIMER_TD_GIGA

R/W

0xc4

Timer value in EEE function for QoS based LPI decision maker T_tx_delay.

Unit: EEE_Timer_Unit_Giga_2*4.

Default value is 200 ms.

7:0

EEE_TIMER_TP_GIGA

R/W

0x0a

Timer value in EEE function for TX decision maker T_pause.

Unit: EEE_Timer_Unit_Giga_1.

Default value is 10 us.

REG_EEE_CR3

  • Size: 32

  • Address offset: 090h

  • Read/write access: R/W

31:24 EEE_TIMER_TW_100 23:16 EEE_TIMER_TR_100 15:8 EEE_TIMER_TD_100 7:0 EEE_TIMER_TP_100

Bit

Symbol

Access

INI

Description

31:24

EEE_TIMER_TW_100

R/W

0x1e

Timer value in EEE function for T_wakeup. Value from 0~256.

Unit: EEE_Timer_Unit_100_1

Default value is 30 us.

23:16

EEE_TIMER_TR_100

R/W

0x0a

Timer value in EEE function for T_tx_rate.

Unit: EEE_Timer_Unit_100_1.

Default value is 10 us.

15:8

EEE_TIMER_TD_100

R/W

0xf4

Timer value in EEE function for QoS based LPI decision maker T_tx_delay.

Unit: EEE_Timer_Unit_100_2*4.

Default value is 1s.

7:0

EEE_TIMER_TP_100

R/W

0x0a

Timer value in EEE function for TX decision maker T_pause.

Unit: EEE_Timer_Unit_100_1.

Default value is 10 us.

REG_EEE_CR4

  • Size: 32

  • Address offset: 094h

  • Read/write access: R/W

31:16 EEE_TX_THR_GIGA 15:0 EEE_TX_THR_100

Bit

Symbol

Access

INI

Description

31:16

EEE_TX_THR_GIGA

R/W

0x0271

Set the TX threshold in EEE function. Unit is Byte. EEE_TX_THR=Round [(T_tx_rate×Rate) / 8 ]. If you set T_tx_rate=10us, Rate=1000Mbps, so set EEE_TX_THR = 0x4E2 (1250bytes).

Default value is 0x271(~half rate).

15:0

EEE_TX_THR_100

R/W

0x003e

Set the TX threshold in EEE function. Unit is Byte. EEE_TX_THR=Round [(T_tx_rate×Rate) / 8 ]. If you set T_tx_rate=10us, Rate=100Mbps, so set EEE_TX_THR = 0x7D (125bytes).

Default value is 0x3E (~half rate).

REG_EEE_LPI_TMO_REG

  • Size: 32

  • Address offset: 098h

  • Read/write access: R

31:22 RSVD 21:0 EEE_RXLPI_TIME

Bit

Symbol

Access

INI

Description

31:22

RSVD

R

-

Reserved

21:0

EEE_RXLPI_TIME

R

0x0

RX in LPI time. (unit: 1us) (accumulation)Valid as (PORT_MASK[0]==1&&RXTimer_EN==1)

REG_EEE_LPI_TM1_REG

  • Size: 32

  • Address offset: 09Ch

  • Read/write access: R/W

31:24 RSVD 23 EEE_STOP_TXC 22 EEE_TRXCTL_LEVEL 21:0 EEE_TXLPI_TIME

Bit

Symbol

Access

INI

Description

31:24

RSVD

R

-

Reserved

23

EEE_STOP_TXC

R/W

0

This bit works in rgmii_1000 and rgmii_100 modes only.

  • 1: gmac halts gmac_rgmii_txc_out when gmac enters lpi.

  • 0: gmac does not halt gmac_rgmii_txc_out when gmac enters lpi. This bit should always be b0 for RLE0390(原RL6166). Gmac can halt gmac_rgmii_txc_out in the next version.

22

EEE_TRXCTL_LEVEL

R/W

0

The gmac_rgmii_txe and gmac_rgmii_rxdv level when gmac is in lpi.

  • 1: tx_ctl and rx_ctl is high when in lpi.

  • 0: reserved.

21:0

EEE_TXLPI_TIME

R

0x0

TX in LPI time. (unit: 1us ) (accumulation)Valid as (PORT_MASK[0]==1&&TXTimer_EN==1)

REG_EEEP_CR1

  • Size: 32

  • Address offset: 0B0h

  • Read/write access: R/W

31 EN_EEEP 30 CFG_EN_EEEP_RX 29 CFG_EN_EEEP_TX 28 CFG_EN_EEEP_GIGA 27 CFG_EN_EEEP 26 CFG_EEEP_DEFER_TXLPI 25 RSVD 24 PHY_MST_MODE 23 RSVD 22:16 EEEP_DBGO_SEL 15:0 RSVD

Bit

Symbol

Access

INI

Description

31

EN_EEEP

R/W

0x0

Enable EEEP function 0b0: Disable EEEP function. 0b1: Enable EEEP function.

30

CFG_EN_EEEP_RX

R/W

0x0

  • 1: Enable EEEP RX.

  • 0: Disable EEEP RX.

29

CFG_EN_EEEP_TX

R/W

0x0

  • 1: Enable EEEP TX.

  • 0: Disable EEEP TX.

28

CFG_EN_EEEP_GIGA

R/W

0x0

  • 1: Enable EEEP in giga mode.

  • 0: Disable EEEP in giga mode.

27

CFG_EN_EEEP

R/W

0x0

  • 1: Enable EEEP in mode.

  • 0: Disable EEEP in mode.

26

CFG_EEEP_DEFER_TXLPI

R/W

0x0

???

25

RSVD

R

-

Reserved

24

PHY_MST_MODE

R/W

0x0

When PMA is in master clock role, the EEEP_RX can work. SW needs to configure PCS reg9.bit12(Master-slave manual config enable) and reg9.bit11(Master-slave config value). Then setting EEEP_CR1_REG.PHY_MST_MODE.

23

RSVD

R

-

Reserved

22:16

EEEP_DBGO_SEL

R/W

0x0

Eeep module debug signals selection.

15:0

RSVD

R

-

Reserved

REG_EEEP_CR2

  • Size: 32

  • Address offset: 0B4h

  • Read/write access: R/W

31:8 RSVD 7:0 EEEP_SLEEP_STEP

Bit

Symbol

Access

INI

Description

31:8

RSVD

R

-

Reserved

7:0

EEEP_SLEEP_STEP

R/W

0x1

Value from 1 to 255, indicate the rx sleep step in EEEP function. Value 0 is the same as 1. EEPROM and register configurable.//???

REG_EEEP_CR3

  • Size: 32

  • Address offset: 0B8h

  • Read/write access: R/W

31:16 EEEP_TX_THR 15:0 EEEP_RX_THR

Bit

Symbol

Access

INI

Description

31:16

EEEP_TX_THR

R/W

0xF0

Set the TX threshold in EEEP function. Unit: Byte; EEEP_TX_THR=Round [(T_rx_rate×Rate) / 8 ].

If you set T_rx_rate=192us,Rate=10Mbps, so set EEEP_TX_THR= 0xF0 (240 bytes). EEPROM and register configurable.//HYH???

15:0

EEEP_RX_THR

R/W

0xF0

Set the RX threshold in EEEP function. Unit: Byte; EEEP_RX_THR=Round [(T_rx_rate×Rate) / 8 ].

If you set T_rx_rate=192us,Rate=10Mbps, so set EEEP_TX_THR= 0xF0 (240 bytes). EEPROM and register configurable. //HYH???

REG_EEEP_CR4

  • Size: 32

  • Address offset: 0BCh

  • Read/write access: R/W

31:24 EEEP_TIMER_RX_RATE 23:16 EEEP_TIMER_RX_WAKE 15:8 EEEP_TIMER_TX_WAIT 7:0 EEEP_TIMER_PAUSE

Bit

Symbol

Access

INI

Description

31:24

EEEP_TIMER_RX_RATE

R/W

0xC

Timer value in EEEP function for T_rx_rate.

Unit: microsecond.

Default value is 192 us.

EEPROM and register configurable.

23:16

EEEP_TIMER_RX_WAKE

R/W

0x2

Timer value in EEEP function for T_rx_wake.

Unit: microsecond.

Default value is 32 us.

EEPROM and register configurable.

15:8

EEEP_TIMER_TX_WAIT

R/W

0x1

Timer value in EEEP function for T_tx_wait.

Unit: microsecond.

Default value is 16 us.

EEPROM and register configurable.

7:0

EEEP_TIMER_PAUSE

R/W

0x1

Timer value in EEEP function for T_pause_on.

Unit:refer to EEEP_Timer_Unit.

Default value is 16 us.

EEPROM and register configurable.

REG_EEEP_CR5

  • Size: 32

  • Address offset: 0C0h

  • Read/write access: R/W

31:24 RSVD 23:16 EEEP_TX_RATE 15:10 RSVD 9:8 EEEP_TIMER_UNIT 7:0 EEEP_TIMER_RX_SLEEP

Bit

Symbol

Access

INI

Description

31:24

RSVD

R

-

Reserved

23:16

EEEP_TX_RATE

R/W

0x0

15:10

RSVD

R

-

Reserved

9:8

EEEP_TIMER_UNIT

R/W

0x1

Set the unit for timer in EEEP function.

  • 00: 1us;

  • 01: 16us;

  • 10: 128us;

  • 11: 1024us.

EEPROM and register configurable.

7:0

EEEP_TIMER_RX_SLEEP

R/W

0xC

Value of Timer in EEEP function for T_rx_sleep.

Unit: microsecond.

Default value is 192 us.

EEPROM and register configurable.

REG_EEEP_CR6

  • Size: 32

  • Address offset: 0C4h

  • Read/write access: R/W

31:16 EEEP_ABIG_ON 15:0 EEEP_ABIG_OFF

Bit

Symbol

Access

INI

Description

31:16

EEEP_ABIG_ON

R/W

0xb80a

15:0

EEEP_ABIG_OFF

R/W

0x800a

REG_EEEP_CR7

  • Size: 32

  • Address offset: 0C8h

  • Read/write access: R/W

31:16 EEEP_LDVBIAS_ON 15:0 EEEP_LDVBIAS_OFF

Bit

Symbol

Access

INI

Description

31:16

EEEP_LDVBIAS_ON

R/W

0x7550

15:0

EEEP_LDVBIAS_OFF

R/W

0x0550

REG_IMR0_REG

  • Size: 32

  • Address offset: 0D0h

  • Read/write access: R/W

31:29 RSVD 28 IMR0_TDU5 27 IMR0_TDU4 26 IMR0_TDU3 25 IMR0_TDU2 24 IMR0_TDU1 23:21 RSVD 20 IMR0_TOK5 19 IMR0_TOK4 18 IMR0_TOK3 17 IMR0_TOK2 16 IMR0_TOK1 15:6 RSVD 5 IMR0_ROK6 4 IMR0_ROK5 3 IMR0_ROK4 2 IMR0_ROK3 1 IMR0_ROK2 0 IMR0_ROK1

Bit

Symbol

Access

INI

Description

31:29

RSVD

R

-

Reserved

28

IMR0_TDU5

R/W

0

27

IMR0_TDU4

R/W

0

26

IMR0_TDU3

R/W

0

25

IMR0_TDU2

R/W

0

24

IMR0_TDU1

R

0

This bit is IMR.tdu

23:21

RSVD

R

-

Reserved

20

IMR0_TOK5

R/W

0

19

IMR0_TOK4

R/W

0

18

IMR0_TOK3

R/W

0

17

IMR0_TOK2

R/W

0

16

IMR0_TOK1

R

0

This bit is IMR.tok

15:6

RSVD

R

-

Reserved

5

IMR0_ROK6

R/W

0

4

IMR0_ROK5

R/W

0

3

IMR0_ROK4

R/W

0

2

IMR0_ROK3

R/W

0

1

IMR0_ROK2

R/W

0

0

IMR0_ROK1

R

0

This bit is IMR.rok

REG_IMR1_REG

  • Size: 32

  • Address offset: 0D4h

  • Read/write access: R/W

31:29 RSVD 28 IMR1_TDU5 27 IMR1_TDU4 26 IMR1_TDU3 25 IMR1_TDU2 24 IMR1_TDU1 23:21 RSVD 20 IMR1_TOK5 19 IMR1_TOK4 18 IMR1_TOK3 17 IMR1_TOK2 16 IMR1_TOK1 15:14 RSVD 13 IMR1_RDU6 12 IMR1_RDU5 11 IMR1_RDU4 10 IMR1_RDU3 9 IMR1_RDU2 8 IMR1_RDU1 7:6 RSVD 5 IMR1_ROK6 4 IMR1_ROK5 3 IMR1_ROK4 2 IMR1_ROK3 1 IMR1_ROK2 0 IMR1_ROK1

Bit

Symbol

Access

INI

Description

31:29

RSVD

R

-

Reserved

28

IMR1_TDU5

R/W

0

27

IMR1_TDU4

R/W

0

26

IMR1_TDU3

R/W

0

25

IMR1_TDU2

R/W

0

24

IMR1_TDU1

R/W

0

23:21

RSVD

R

-

Reserved

20

IMR1_TOK5

R/W

0

19

IMR1_TOK4

R/W

0

18

IMR1_TOK3

R/W

0

17

IMR1_TOK2

R/W

0

16

IMR1_TOK1

R/W

0

15:14

RSVD

R

-

Reserved

13

IMR1_RDU6

R/W

0

12

IMR1_RDU5

R/W

0

11

IMR1_RDU4

R/W

0

10

IMR1_RDU3

R/W

0

9

IMR1_RDU2

R/W

0

8

IMR1_RDU1

R/W

0

7:6

RSVD

R

-

Reserved

5

IMR1_ROK6

R/W

0

4

IMR1_ROK5

R/W

0

3

IMR1_ROK4

R/W

0

2

IMR1_ROK3

R/W

0

1

IMR1_ROK2

R/W

0

0

IMR1_ROK1

R/W

0

REG_ISR1_REG

  • Size: 32

  • Address offset: 0D8h

  • Read/write access: R/W

31:29 RSVD 28 ISR_TDU5 27 ISR_TDU4 26 ISR_TDU3 25 ISR_TDU2 24 ISR_TDU1 23:21 RSVD 20 ISR_TOK5 19 ISR_TOK4 18 ISR_TOK3 17 ISR_TOK2 16 ISR_TOK1 15:6 RSVD 5 ISR_ROK6 4 ISR_ROK5 3 ISR_ROK4 2 ISR_ROK3 1 ISR_ROK2 0 ISR_ROK1

Bit

Symbol

Access

INI

Description

31:29

RSVD

R

-

Reserved

28

ISR_TDU5

R/W

0

Tx Descriptor Ring5 Unavailable: When set, indicates Tx descriptor Ring5 is unavailable.

Write 1 to clear.

27

ISR_TDU4

R/W

0

Tx Descriptor Ring4 Unavailable: When set, indicates Tx descriptor Ring5 is unavailable.

Write 1 to clear.

26

ISR_TDU3

R/W

0

Tx Descriptor Ring3 Unavailable: When set, indicates Tx descriptor Ring5 is unavailable.

Write 1 to clear.

25

ISR_TDU2

R/W

0

Tx Descriptor Ring2 Unavailable: When set, indicates Tx descriptor Ring5 is unavailable.

Write 1 to clear.

24

ISR_TDU1

R

0

This bit is ISR.tdu

23:21

RSVD

R

-

Reserved

20

ISR_TOK5

R/W

0

Transmit Interrupt: Indicates that the DMA of the last Ring5 descriptor of TxIntMitigation number of Tx packet has completed and the last descriptor has been closed.

Write 1 to clear.

19

ISR_TOK4

R/W

0

Transmit Interrupt: Indicates that the DMA of the last Ring4 descriptor of TxIntMitigation number of Tx packet has completed and the last descriptor has been closed.

Write 1 to clear.

18

ISR_TOK3

R/W

0

Transmit Interrupt: Indicates that the DMA of the last Ring3 descriptor of TxIntMitigation number of Tx packet has completed and the last descriptor has been closed.

Write 1 to clear.

17

ISR_TOK2

R/W

0

Transmit Interrupt: Indicates that the DMA of the last Ring2 descriptor of TxIntMitigation number of Tx packet has completed and the last descriptor has been closed.

Write 1 to clear.

16

ISR_TOK1

R

0

This bit is ISR.tok

15:6

RSVD

R

-

Reserved

5

ISR_ROK6

R/W

0

Receive (Rx) OK: This interrupt is set either when RxIntMitigation packet is met or RxPktTimer expires in Ring6.

Write 1 to clear.

4

ISR_ROK5

R/W

0

Receive (Rx) OK: This interrupt is set either when RxIntMitigation packet is met or RxPktTimer expires in Ring5.

Write 1 to clear.

3

ISR_ROK4

R/W

0

Receive (Rx) OK: This interrupt is set either when RxIntMitigation packet is met or RxPktTimer expires in Ring4.

Write 1 to clear.

2

ISR_ROK3

R/W

0

Receive (Rx) OK: This interrupt is set either when RxIntMitigation packet is met or RxPktTimer expires in Ring3.

Write 1 to clear.

1

ISR_ROK2

R/W

0

Receive (Rx) OK: This interrupt is set either when RxIntMitigation packet is met or RxPktTimer expires in Ring2.

Write 1 to clear.

0

ISR_ROK1

R

0

This bit is ISR.rok

REG_INT_R_REG

  • Size: 32

  • Address offset: 0DCh

  • Read/write access: R/W

Interrupt routing register

31:25 RSVD 24 TR5_INT_ROUTING 23 RSVD 22 TR4_INT_ROUTING 21 RSVD 20 TR3_INT_ROUTING 19 RSVD 18 TR2_INT_ROUTING 17 RSVD 16 TR1_INT_ROUTING 15:11 RSVD 10 RR6_INT_ROUTING 9 RSVD 8 RR5_INT_ROUTING 7 RSVD 6 RR4_INT_ROUTING 5 RSVD 4 RR3_INT_ROUTING 3 RSVD 2 RR2_INT_ROUTING 1 RSVD 0 RR1_INT_ROUTING

Bit

Symbol

Access

INI

Description

31:25

RSVD

R

-

Reserved

24

TR5_INT_ROUTING

R/W

0

23

RSVD

R

-

Reserved

22

TR4_INT_ROUTING

R/W

0

21

RSVD

R

-

Reserved

20

TR3_INT_ROUTING

R/W

0

19

RSVD

R

-

Reserved

18

TR2_INT_ROUTING

R/W

0

17

RSVD

R

-

Reserved

16

TR1_INT_ROUTING

R/W

0

15:11

RSVD

R

-

Reserved

10

RR6_INT_ROUTING

R/W

0

9

RSVD

R

-

Reserved

8

RR5_INT_ROUTING

R/W

0

7

RSVD

R

-

Reserved

6

RR4_INT_ROUTING

R/W

0

5

RSVD

R

-

Reserved

4

RR3_INT_ROUTING

R/W

0

3

RSVD

R

-

Reserved

2

RR2_INT_ROUTING

R/W

0

1

RSVD

R

-

Reserved

0

RR1_INT_ROUTING

R/W

0

REG_RST_PWR_DOWN_OPERATION_CTRL_REG

  • Size: 32

  • Address offset: 0E0h

  • Read/write access: R/W

Reset and Power Down Operation Control Register

31:4 RSVD 3 AUTORXCLKDIS 2 AUTOTXCLKDIS 1 AUTOISOU 0 AUTOLSU

Bit

Symbol

Access

INI

Description

31:4

RSVD

R

-

Reserved

3

AUTORXCLKDIS

R/W

0

  • 1: Auto Disable Rx Clock when AUTOISOU=1

2

AUTOTXCLKDIS

R/W

0

  • 1: Auto Disable Tx Clock when AUTOISOU=1

1

AUTOISOU

R/W

0

Auto Isolate Update

0

AUTOLSU

R/W

0

Auto Link Status Update

REG_CLK_CTRL_REG

  • Size: 32

  • Address offset: 0E4h

  • Read/write access: R/W

Clock Control Register

31:8 RSVD 7 REV_00E4_7 6 REV_00E4_6 5 REV_00E4_5 4 REV_00E4_4 3 REV_00E4_3 2 DMA_DATA_SWAP 1 RXCLK_EN 0 TXCLK_EN

Bit

Symbol

Access

INI

Description

31:8

RSVD

R

-

Reserved

7

REV_00E4_7

R/W

0

Reserved bit

6

REV_00E4_6

R/W

0

Reserved bit

5

REV_00E4_5

R/W

0

Reserved bit

4

REV_00E4_4

R/W

1

Reserved bit

3

REV_00E4_3

R/W

1

Reserved bit

2

DMA_DATA_SWAP

R/W

1

  • 1: Swap data order for dma_mst

1

RXCLK_EN

R/W

1

  • 0: Rx Clock Gated (txc_out)

0

TXCLK_EN

R/W

1

  • 0: Tx Clock Gated (rxc_out)

REG_INTERUPT_MASK_REG

  • Size: 32

  • Address offset: 0F0h

  • Read/write access: R/W

Interrupt Mask Register

31:6 RSVD 5 LX_MST_TO_INTEN 4 LX_SLV_TO_INTEN 3 ISON 2 PWRDWNN 1 LPBKN 0 RSTN

Bit

Symbol

Access

INI

Description

31:6

RSVD

R

-

Reserved

5

LX_MST_TO_INTEN

R/W

0

Interrupt enable of lexra master timeout

4

LX_SLV_TO_INTEN

R/W

0

Interrupt enable of lexra slave timeout

3

ISON

R/W

0

Isolate Notify

2

PWRDWNN

R/W

0

Power Down Notify

1

LPBKN

R/W

0

Loopback Notify

0

RSTN

R/W

0

Reset Notify

REG_INTERUPT_STATUS_REG

  • Size: 32

  • Address offset: 0F4h

  • Read/write access: R/W

Interrupt Status Register

31:6 RSVD 5 LX_MST_TO_INT 4 LX_SLV_TO_INT 3 ISONS 2 PWRDWNNS 1 LPBKNS 0 RSTNS

Bit

Symbol

Access

INI

Description

31:6

RSVD

R

-

Reserved

5

LX_MST_TO_INT

R/W

0

Interrupt status of lexra master timeout

4

LX_SLV_TO_INT

R/W

0

Interrupt status of lexra slave timeout

3

ISONS

R/W

0

Isolate Notify When set, indicate Isolate is detected.

Write 1 to clear.

2

PWRDWNNS

R/W

0

Power Down Notify When set, indicate Isolate is detected.

Write 1 to clear.

1

LPBKNS

R/W

0

Loopback Notify When set, indicate Isolate is detected.

Write 1 to clear.

0

RSTNS

R/W

0

Reset Notify When set, indicate Isolate is detected.

Write 1 to clear.

REG_TXFDP1

  • Size: 32

  • Address offset: 1300h

  • Read/write access: R/W

Tx First Descriptor Pointer (FDP) for 1st priority queue. 32 bits

31:2 TXFDP1 1:0 RSVD

Bit

Symbol

Access

INI

Description

31:2

TXFDP1

R/W

0

Tx 1st priority Descriptor Pointer to the Tx Ring

1:0

RSVD

R

-

Reserved

REG_TXCDO1

  • Size: 32

  • Address offset: 1304h

  • Read/write access: R

Tx Current Descriptor Offset (CDO) for 1st priority queue.16 bits

31:12 RSVD 11:0 TXCDO1

Bit

Symbol

Access

INI

Description

31:12

RSVD

R

-

Reserved

11:0

TXCDO1

R

Tx 1st priority Current Descriptor Offset: FDP+CDO = current descriptor pointer. CDO increments by 16 bytes each time.

REG_TXFDP2

  • Size: 32

  • Address offset: 1310h

  • Read/write access: R/W

Tx First Descriptor Pointer (FDP) for 2nd priority queue. 32 bits

31:2 TXFDP2 1:0 RSVD

Bit

Symbol

Access

INI

Description

31:2

TXFDP2

R/W

0

Tx 2st priority Descriptor Pointer to the Tx Ring

1:0

RSVD

R

-

Reserved

REG_TXCDO2

  • Size: 32

  • Address offset: 1314h

  • Read/write access: R

Tx Current Descriptor Offset (CDO) for 2nd priority queue.16 bits

31:12 RSVD 11:0 TXCDO2

Bit

Symbol

Access

INI

Description

31:12

RSVD

R

-

Reserved

11:0

TXCDO2

R

Tx 2st priority Current Descriptor Offset: FDP+CDO = current descriptor pointer. CDO increments by 16 bytes each time.

REG_TXFDP3

  • Size: 32

  • Address offset: 1320h

  • Read/write access: R/W

Tx First Descriptor Pointer (FDP) for 3rd priority queue. 32 bits

31:2 TXFDP3 1:0 RSVD

Bit

Symbol

Access

INI

Description

31:2

TXFDP3

R/W

0

Tx 3st priority Descriptor Pointer to the Tx Ring

1:0

RSVD

R

-

Reserved

REG_TXCDO3

  • Size: 32

  • Address offset: 1324h

  • Read/write access: R

Tx Current Descriptor Offset (CDO) for 3rd priority queue.16 bits

31:12 RSVD 11:0 TXCDO3

Bit

Symbol

Access

INI

Description

31:12

RSVD

R

-

Reserved

11:0

TXCDO3

R

Tx 3st priority Current Descriptor Offset: FDP+CDO = current descriptor pointer. CDO increments by 16 bytes each time.

REG_TXFDP4

  • Size: 32

  • Address offset: 1330h

  • Read/write access: R/W

Tx First Descriptor Pointer (FDP) for 4th priority queue. 32 bits

31:2 TXFDP4 1:0 RSVD

Bit

Symbol

Access

INI

Description

31:2

TXFDP4

R/W

0

Tx 4st priority Descriptor Pointer to the Tx Ring

1:0

RSVD

R

-

Reserved

REG_TXCDO4

  • Size: 32

  • Address offset: 1334h

  • Read/write access: R

Tx Current Descriptor Offset (CDO) for 4th priority queue.16 bits

31:12 RSVD 11:0 TXCDO4

Bit

Symbol

Access

INI

Description

31:12

RSVD

R

-

Reserved

11:0

TXCDO4

R

Tx 4st priority Current Descriptor Offset: FDP+CDO = current descriptor pointer. CDO increments by 16 bytes each time.

REG_TXFDP5

  • Size: 32

  • Address offset: 1340h

  • Read/write access: R/W

Tx First Descriptor Pointer (FDP) for 5th priority queue. 32 bits

31:2 TXFDP5 1:0 RSVD

Bit

Symbol

Access

INI

Description

31:2

TXFDP5

R/W

0

Tx 5st priority Descriptor Pointer to the Tx Ring

1:0

RSVD

R

-

Reserved

REG_TXCDO5

  • Size: 32

  • Address offset: 1344h

  • Read/write access: R

Tx Current Descriptor Offset (CDO) for 5th priority queue.16 bits

31:12 RSVD 11:0 TXCDO5

Bit

Symbol

Access

INI

Description

31:12

RSVD

R

-

Reserved

11:0

TXCDO5

R

Tx 5st priority Current Descriptor Offset: FDP+CDO = current descriptor pointer. CDO increments by 16 bytes each time.

REG_RRING_MAP1

  • Size: 32

  • Address offset: 1370h

  • Read/write access: R/W

Rx ring mapping for 1st queue.

31 RSVD 30:28 EXT1_PRI7_ROUTE 27 RSVD 26:24 EXT1_PRI6_ROUTE 23 RSVD 22:20 EXT1_PRI5_ROUTE 19 RSVD 18:16 EXT1_PRI4_ROUTE 15 RSVD 14:12 EXT1_PRI3_ROUTE 11 RSVD 10:8 EXT1_PRI2_ROUTE 7 RSVD 6:4 EXT1_PRI1_ROUTE 3 RSVD 2:0 EXT1_PRI0_ROUTE

Bit

Symbol

Access

INI

Description

31

RSVD

R

-

Reserved

30:28

EXT1_PRI7_ROUTE

R/W

0

Cputag.priority = 7 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

27

RSVD

R

-

Reserved

26:24

EXT1_PRI6_ROUTE

R/W

0

Cputag.priority = 6 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

23

RSVD

R

-

Reserved

22:20

EXT1_PRI5_ROUTE

R/W

0

Cputag.priority = 5 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

19

RSVD

R

-

Reserved

18:16

EXT1_PRI4_ROUTE

R/W

0

Cputag.priority = 4 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

15

RSVD

R

-

Reserved

14:12

EXT1_PRI3_ROUTE

R/W

0

Cputag.priority = 3 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

11

RSVD

R

-

Reserved

10:8

EXT1_PRI2_ROUTE

R/W

0

Cputag.priority = 2 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

7

RSVD

R

-

Reserved

6:4

EXT1_PRI1_ROUTE

R/W

0

Cputag.priority = 1 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

3

RSVD

R

-

Reserved

2:0

EXT1_PRI0_ROUTE

R/W

0

Cputag.priority = 0 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

REG_RRING_MAP2

  • Size: 32

  • Address offset: 1374h

  • Read/write access: R/W

Rx ring mapping for 1st queue.

31 RSVD 30:28 EXT2_PRI7_ROUTE 27 RSVD 26:24 EXT2_PRI6_ROUTE 23 RSVD 22:20 EXT2_PRI5_ROUTE 19 RSVD 18:16 EXT2_PRI4_ROUTE 15 RSVD 14:12 EXT2_PRI3_ROUTE 11 RSVD 10:8 EXT2_PRI2_ROUTE 7 RSVD 6:4 EXT2_PRI1_ROUTE 3 RSVD 2:0 EXT2_PRI0_ROUTE

Bit

Symbol

Access

INI

Description

31

RSVD

R

-

Reserved

30:28

EXT2_PRI7_ROUTE

R/W

0

Cputag.priority = 7 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

27

RSVD

R

-

Reserved

26:24

EXT2_PRI6_ROUTE

R/W

0

Cputag.priority = 6 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

23

RSVD

R

-

Reserved

22:20

EXT2_PRI5_ROUTE

R/W

0

Cputag.priority = 5 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

19

RSVD

R

-

Reserved

18:16

EXT2_PRI4_ROUTE

R/W

0

Cputag.priority = 4 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

15

RSVD

R

-

Reserved

14:12

EXT2_PRI3_ROUTE

R/W

0

Cputag.priority = 3 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

11

RSVD

R

-

Reserved

10:8

EXT2_PRI2_ROUTE

R/W

0

Cputag.priority = 2 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

7

RSVD

R

-

Reserved

6:4

EXT2_PRI1_ROUTE

R/W

0

Cputag.priority = 1 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

3

RSVD

R

-

Reserved

2:0

EXT2_PRI0_ROUTE

R/W

0

Cputag.priority = 0 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

REG_RRING_MAP3

  • Size: 32

  • Address offset: 1378h

  • Read/write access: R/W

Rx ring mapping for 1st queue.

31 RSVD 30:28 EXT3_PRI7_ROUTE 27 RSVD 26:24 EXT3_PRI6_ROUTE 23 RSVD 22:20 EXT3_PRI5_ROUTE 19 RSVD 18:16 EXT3_PRI4_ROUTE 15 RSVD 14:12 EXT3_PRI3_ROUTE 11 RSVD 10:8 EXT3_PRI2_ROUTE 7 RSVD 6:4 EXT3_PRI1_ROUTE 3 RSVD 2:0 EXT3_PRI0_ROUTE

Bit

Symbol

Access

INI

Description

31

RSVD

R

-

Reserved

30:28

EXT3_PRI7_ROUTE

R/W

0

Cputag.priority = 7 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

27

RSVD

R

-

Reserved

26:24

EXT3_PRI6_ROUTE

R/W

0

Cputag.priority = 6 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

23

RSVD

R

-

Reserved

22:20

EXT3_PRI5_ROUTE

R/W

0

Cputag.priority = 5 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

19

RSVD

R

-

Reserved

18:16

EXT3_PRI4_ROUTE

R/W

0

Cputag.priority = 4 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

15

RSVD

R

-

Reserved

14:12

EXT3_PRI3_ROUTE

R/W

0

Cputag.priority = 3 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

11

RSVD

R

-

Reserved

10:8

EXT3_PRI2_ROUTE

R/W

0

Cputag.priority = 2 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

7

RSVD

R

-

Reserved

6:4

EXT3_PRI1_ROUTE

R/W

0

Cputag.priority = 1 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

3

RSVD

R

-

Reserved

2:0

EXT3_PRI0_ROUTE

R/W

0

Cputag.priority = 0 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

REG_RRING_MAP4

  • Size: 32

  • Address offset: 137Ch

  • Read/write access: R/W

Rx ring mapping for 1st queue.

31 RSVD 30:28 EXT4_PRI7_ROUTE 27 RSVD 26:24 EXT4_PRI6_ROUTE 23 RSVD 22:20 EXT4_PRI5_ROUTE 19 RSVD 18:16 EXT4_PRI4_ROUTE 15 RSVD 14:12 EXT4_PRI3_ROUTE 11 RSVD 10:8 EXT4_PRI2_ROUTE 7 RSVD 6:4 EXT4_PRI1_ROUTE 3 RSVD 2:0 EXT4_PRI0_ROUTE

Bit

Symbol

Access

INI

Description

31

RSVD

R

-

Reserved

30:28

EXT4_PRI7_ROUTE

R/W

0

Cputag.priority = 7 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

27

RSVD

R

-

Reserved

26:24

EXT4_PRI6_ROUTE

R/W

0

Cputag.priority = 6 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

23

RSVD

R

-

Reserved

22:20

EXT4_PRI5_ROUTE

R/W

0

Cputag.priority = 5 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

19

RSVD

R

-

Reserved

18:16

EXT4_PRI4_ROUTE

R/W

0

Cputag.priority = 4 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

15

RSVD

R

-

Reserved

14:12

EXT4_PRI3_ROUTE

R/W

0

Cputag.priority = 3 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

11

RSVD

R

-

Reserved

10:8

EXT4_PRI2_ROUTE

R/W

0

Cputag.priority = 2 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

7

RSVD

R

-

Reserved

6:4

EXT4_PRI1_ROUTE

R/W

0

Cputag.priority = 1 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

3

RSVD

R

-

Reserved

2:0

EXT4_PRI0_ROUTE

R/W

0

Cputag.priority = 0 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

REG_RRING_MAP5

  • Size: 32

  • Address offset: 1380h

  • Read/write access: R/W

Rx ring mapping for 1st queue.

31 RSVD 30:28 EXT5_PRI7_ROUTE 27 RSVD 26:24 EXT5_PRI6_ROUTE 23 RSVD 22:20 EXT5_PRI5_ROUTE 19 RSVD 18:16 EXT5_PRI4_ROUTE 15 RSVD 14:12 EXT5_PRI3_ROUTE 11 RSVD 10:8 EXT5_PRI2_ROUTE 7 RSVD 6:4 EXT5_PRI1_ROUTE 3 RSVD 2:0 EXT5_PRI0_ROUTE

Bit

Symbol

Access

INI

Description

31

RSVD

R

-

Reserved

30:28

EXT5_PRI7_ROUTE

R/W

0

Cputag.priority = 7 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

27

RSVD

R

-

Reserved

26:24

EXT5_PRI6_ROUTE

R/W

0

Cputag.priority = 6 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

23

RSVD

R

-

Reserved

22:20

EXT5_PRI5_ROUTE

R/W

0

Cputag.priority = 5 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

19

RSVD

R

-

Reserved

18:16

EXT5_PRI4_ROUTE

R/W

0

Cputag.priority = 4 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

15

RSVD

R

-

Reserved

14:12

EXT5_PRI3_ROUTE

R/W

0

Cputag.priority = 3 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

11

RSVD

R

-

Reserved

10:8

EXT5_PRI2_ROUTE

R/W

0

Cputag.priority = 2 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

7

RSVD

R

-

Reserved

6:4

EXT5_PRI1_ROUTE

R/W

0

Cputag.priority = 1 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

3

RSVD

R

-

Reserved

2:0

EXT5_PRI0_ROUTE

R/W

0

Cputag.priority = 0 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

REG_RRING_MAP6

  • Size: 32

  • Address offset: 1384h

  • Read/write access: R/W

Rx ring mapping for 1st queue.

31 RSVD 30:28 EXT6_PRI7_ROUTE 27 RSVD 26:24 EXT6_PRI6_ROUTE 23 RSVD 22:20 EXT6_PRI5_ROUTE 19 RSVD 18:16 EXT6_PRI4_ROUTE 15 RSVD 14:12 EXT6_PRI3_ROUTE 11 RSVD 10:8 EXT6_PRI2_ROUTE 7 RSVD 6:4 EXT6_PRI1_ROUTE 3 RSVD 2:0 EXT6_PRI0_ROUTE

Bit

Symbol

Access

INI

Description

31

RSVD

R

-

Reserved

30:28

EXT6_PRI7_ROUTE

R/W

0

Cputag.priority = 7 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

27

RSVD

R

-

Reserved

26:24

EXT6_PRI6_ROUTE

R/W

0

Cputag.priority = 6 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

23

RSVD

R

-

Reserved

22:20

EXT6_PRI5_ROUTE

R/W

0

Cputag.priority = 5 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

19

RSVD

R

-

Reserved

18:16

EXT6_PRI4_ROUTE

R/W

0

Cputag.priority = 4 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

15

RSVD

R

-

Reserved

14:12

EXT6_PRI3_ROUTE

R/W

0

Cputag.priority = 3 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

11

RSVD

R

-

Reserved

10:8

EXT6_PRI2_ROUTE

R/W

0

Cputag.priority = 2 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

7

RSVD

R

-

Reserved

6:4

EXT6_PRI1_ROUTE

R/W

0

Cputag.priority = 1 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

3

RSVD

R

-

Reserved

2:0

EXT6_PRI0_ROUTE

R/W

0

Cputag.priority = 0 route select. {0,1,7} ring1, {2} ring2, {3} ring3,…

REG_RXFDP2

  • Size: 32

  • Address offset: 1390h

  • Read/write access: R/W

Rx First Descriptor Pointer (FDP) for 2nd priority queue. 32 bits

31:2 RXFDP2 1:0 RSVD

Bit

Symbol

Access

INI

Description

31:2

RXFDP2

R/W

0

Rx queue Descriptor Pointer to the Rx Ring

1:0

RSVD

R

-

Reserved

REG_RXRINGSIZE2

  • Size: 16

  • Address offset: 1394h

  • Read/write access: R/W

Rx Ring Size2 (number of Descriptors)

15:12 RSVD 11:0 RXRINGSIZE2

Bit

Symbol

Access

INI

Description

15:12

RSVD

R

-

Reserved

11:0

RXRINGSIZE2

R/W

0

The total number of descriptors in the Rx descriptor rings of queue.

Act as bit mask, eg. RxRingSize [11:0]:

0000_0000_1111: 16 descriptors

0000_0001_1111: 32 descriptors

0000_0011_1111: 64 descriptors

0000_0111_1111: 128 descriptors

0000_1111_1111: 256 descriptors

0001_1111_1111: 512 descriptors

0011_1111_1111: 1024 descriptors

0111_1111_1111: 2048 descriptors

1111_1111_1111: 4096 descriptors

Any other value in this register yields undefined results.

REG_RXCDO2

  • Size: 16

  • Address offset: 1396h

  • Read/write access: R

Rx Current Descriptor Offset (CDO) for 2nd priority queue. 16 bits

15:12 RSVD 11:0 RXCDO2

Bit

Symbol

Access

INI

Description

15:12

RSVD

R

-

Reserved

11:0

RXCDO2

R

0

Rx Current Descriptor Offset of queue: RxFDP+RxCDO = current descriptor pointer. CDO increments by 16 each time (each increment is one byte)

REG_RX_CPU_DESN2

  • Size: 32

  • Address offset: 1398h

  • Read/write access: R/W

This is the descriptor which the CPU has finished processing for 2nd priority queue and returned to

IO. CPU needs to update this.

31:12 RSVD 11:0 ETHRNTRXCPU_DES_NUM2

Bit

Symbol

Access

INI

Description

31:12

RSVD

R

-

Reserved

11:0

ETHRNTRXCPU_DES_NUM2

R/W

0

Indicate the number of descriptor of queue, which has been finished Rx process and returned to IO by CPU. After ending Rx process, CPU needs to update this field.

REG_RX_DES_THRES2

  • Size: 32

  • Address offset: 139Ch

  • Read/write access: R/W

This is the descriptor which the Ethernet module has filled up to for 2st priority queue. Compare

with CPU_Des_Num to determine whether to assert flow control.

31:28 RSVD 27:16 RX_PSE_DES_THRES_ON2 15:12 RSVD 11:0 RX_PSE_DES_THRES_OFF2

Bit

Symbol

Access

INI

Description

31:28

RSVD

R

-

Reserved

27:16

RX_PSE_DES_THRES_ON2

R/W

0

Specifies the difference between EthrnetRxCPU_Des_Num2 and the descriptor of queue currently in use by Ethernet Module in which flow control will be assert.

15:12

RSVD

R

-

Reserved

11:0

RX_PSE_DES_THRES_OFF2

R/W

0

Specifies the difference between EthrnetRxCPU_Des_Num2 and the descriptor of queue currently in use by Ethernet Module in which flow control will be de-assert. Rx_Pse_Des_Thress_off_ should be less than (EthrntRxCPU_DES_NUM_ - X). X is the maximum rx descriptors will be used for single ingress packet.

REG_RXFDP3

  • Size: 32

  • Address offset: 13A0h

  • Read/write access: R/W

Rx First Descriptor Pointer (FDP) for 2nd priority queue. 32 bits

31:2 RXFDP3 1:0 RSVD

Bit

Symbol

Access

INI

Description

31:2

RXFDP3

R/W

0

Rx queue Descriptor Pointer to the Rx Ring

1:0

RSVD

R

-

Reserved

REG_RXRINGSIZE3

  • Size: 16

  • Address offset: 13A4h

  • Read/write access: R/W

Rx Ring Size2 (number of Descriptors)

15:12 RSVD 11:0 RXRINGSIZE3

Bit

Symbol

Access

INI

Description

15:12

RSVD

R

-

Reserved

11:0

RXRINGSIZE3

R/W

0

The total number of descriptors in the Rx descriptor rings of queue.

Act as bit mask, eg. RxRingSize [11:0]:

0000_0000_1111: 16 descriptors

0000_0001_1111: 32 descriptors

0000_0011_1111: 64 descriptors

0000_0111_1111: 128 descriptors

0000_1111_1111: 256 descriptors

0001_1111_1111: 512 descriptors

0011_1111_1111: 1024 descriptors

0111_1111_1111: 2048 descriptors

1111_1111_1111: 4096 descriptors

Any other value in this register yields undefined results.

REG_RXCDO3

  • Size: 16

  • Address offset: 13A6h

  • Read/write access: R

Rx Current Descriptor Offset (CDO) for 2nd priority queue. 16 bits

15:12 RSVD 11:0 RXCDO3

Bit

Symbol

Access

INI

Description

15:12

RSVD

R

-

Reserved

11:0

RXCDO3

R

0

Rx Current Descriptor Offset of queue: RxFDP+RxCDO = current descriptor pointer. CDO increments by 16 each time (each increment is one byte)

REG_RX_CPU_DESN3

  • Size: 32

  • Address offset: 13A8h

  • Read/write access: R/W

This is the descriptor which the CPU has finished processing for 2nd priority queue and returned to

IO. CPU needs to update this.

31:12 RSVD 11:0 ETHRNTRXCPU_DES_NUM3

Bit

Symbol

Access

INI

Description

31:12

RSVD

R

-

Reserved

11:0

ETHRNTRXCPU_DES_NUM3

R/W

0

Indicate the number of descriptor of queue, which has been finished Rx process and returned to IO by CPU. After ending Rx process, CPU needs to update this field.

REG_RX_DES_THRES3

  • Size: 32

  • Address offset: 13ACh

  • Read/write access: R/W

This is the descriptor which the Ethernet module has filled up to for 2st priority queue. Compare

with CPU_Des_Num to determine whether to assert flow control.

31:28 RSVD 27:16 RX_PSE_DES_THRES_ON3 15:12 RSVD 11:0 RX_PSE_DES_THRES_OFF3

Bit

Symbol

Access

INI

Description

31:28

RSVD

R

-

Reserved

27:16

RX_PSE_DES_THRES_ON3

R/W

0

Specifies the difference between EthrnetRxCPU_Des_Num2 and the descriptor of queue currently in use by Ethernet Module in which flow control will be assert.

15:12

RSVD

R

-

Reserved

11:0

RX_PSE_DES_THRES_OFF3

R/W

0

Specifies the difference between EthrnetRxCPU_Des_Num2 and the descriptor of queue currently in use by Ethernet Module in which flow control will be de-assert. Rx_Pse_Des_Thress_off_ should be less than (EthrntRxCPU_DES_NUM_ - X). X is the maximum rx descriptors will be used for single ingress packet.

REG_RXFDP4

  • Size: 32

  • Address offset: 13B0h

  • Read/write access: R/W

Rx First Descriptor Pointer (FDP) for 2nd priority queue. 32 bits

31:2 RXFDP4 1:0 RSVD

Bit

Symbol

Access

INI

Description

31:2

RXFDP4

R/W

0

Rx queue Descriptor Pointer to the Rx Ring

1:0

RSVD

R

-

Reserved

REG_RXRINGSIZE4

  • Size: 16

  • Address offset: 13B4h

  • Read/write access: R/W

Rx Ring Size2 (number of Descriptors)

15:12 RSVD 11:0 RXRINGSIZE4

Bit

Symbol

Access

INI

Description

15:12

RSVD

R

-

Reserved

11:0

RXRINGSIZE4

R/W

0

The total number of descriptors in the Rx descriptor rings of queue.

Act as bit mask, eg. RxRingSize [11:0]:

0000_0000_1111: 16 descriptors

0000_0001_1111: 32 descriptors

0000_0011_1111: 64 descriptors

0000_0111_1111: 128 descriptors

0000_1111_1111: 256 descriptors

0001_1111_1111: 512 descriptors

0011_1111_1111: 1024 descriptors

0111_1111_1111: 2048 descriptors

1111_1111_1111: 4096 descriptors

Any other value in this register yields undefined results.

REG_RXCDO4

  • Size: 16

  • Address offset: 13B6h

  • Read/write access: R

Rx Current Descriptor Offset (CDO) for 2nd priority queue. 16 bits

15:12 RSVD 11:0 RXCDO4

Bit

Symbol

Access

INI

Description

15:12

RSVD

R

-

Reserved

11:0

RXCDO4

R

0

Rx Current Descriptor Offset of queue: RxFDP+RxCDO = current descriptor pointer. CDO increments by 16 each time (each increment is one byte)

REG_RX_CPU_DESN4

  • Size: 32

  • Address offset: 13B8h

  • Read/write access: R/W

This is the descriptor which the CPU has finished processing for 2nd priority queue and returned to

IO. CPU needs to update this.

31:12 RSVD 11:0 ETHRNTRXCPU_DES_NUM4

Bit

Symbol

Access

INI

Description

31:12

RSVD

R

-

Reserved

11:0

ETHRNTRXCPU_DES_NUM4

R/W

0

Indicate the number of descriptor of queue, which has been finished Rx process and returned to IO by CPU. After ending Rx process, CPU needs to update this field.

REG_RX_DES_THRES4

  • Size: 32

  • Address offset: 13BCh

  • Read/write access: R/W

This is the descriptor which the Ethernet module has filled up to for 2st priority queue. Compare

with CPU_Des_Num to determine whether to assert flow control.

31:28 RSVD 27:16 RX_PSE_DES_THRES_ON4 15:12 RSVD 11:0 RX_PSE_DES_THRES_OFF4

Bit

Symbol

Access

INI

Description

31:28

RSVD

R

-

Reserved

27:16

RX_PSE_DES_THRES_ON4

R/W

0

Specifies the difference between EthrnetRxCPU_Des_Num2 and the descriptor of queue currently in use by Ethernet Module in which flow control will be assert.

15:12

RSVD

R

-

Reserved

11:0

RX_PSE_DES_THRES_OFF4

R/W

0

Specifies the difference between EthrnetRxCPU_Des_Num2 and the descriptor of queue currently in use by Ethernet Module in which flow control will be de-assert. Rx_Pse_Des_Thress_off_ should be less than (EthrntRxCPU_DES_NUM_ - X). X is the maximum rx descriptors will be used for single ingress packet.

REG_RXFDP5

  • Size: 32

  • Address offset: 13C0h

  • Read/write access: R/W

Rx First Descriptor Pointer (FDP) for 2nd priority queue. 32 bits

31:2 RXFDP5 1:0 RSVD

Bit

Symbol

Access

INI

Description

31:2

RXFDP5

R/W

0

Rx queue Descriptor Pointer to the Rx Ring

1:0

RSVD

R

-

Reserved

REG_RXRINGSIZE5

  • Size: 16

  • Address offset: 13C4h

  • Read/write access: R/W

Rx Ring Size2 (number of Descriptors)

15:12 RSVD 11:0 RXRINGSIZE5

Bit

Symbol

Access

INI

Description

15:12

RSVD

R

-

Reserved

11:0

RXRINGSIZE5

R/W

0

The total number of descriptors in the Rx descriptor rings of queue.

Act as bit mask, eg. RxRingSize [11:0]:

0000_0000_1111: 16 descriptors

0000_0001_1111: 32 descriptors

0000_0011_1111: 64 descriptors

0000_0111_1111: 128 descriptors

0000_1111_1111: 256 descriptors

0001_1111_1111: 512 descriptors

0011_1111_1111: 1024 descriptors

0111_1111_1111: 2048 descriptors

1111_1111_1111: 4096 descriptors

Any other value in this register yields undefined results.

REG_RXCDO5

  • Size: 16

  • Address offset: 13C6h

  • Read/write access: R

Rx Current Descriptor Offset (CDO) for 2nd priority queue. 16 bits

15:12 RSVD 11:0 RXCDO5

Bit

Symbol

Access

INI

Description

15:12

RSVD

R

-

Reserved

11:0

RXCDO5

R

0

Rx Current Descriptor Offset of queue: RxFDP+RxCDO = current descriptor pointer. CDO increments by 16 each time (each increment is one byte)

REG_RX_CPU_DESN5

  • Size: 32

  • Address offset: 13C8h

  • Read/write access: R/W

This is the descriptor which the CPU has finished processing for 2nd priority queue and returned to

IO. CPU needs to update this.

31:12 RSVD 11:0 ETHRNTRXCPU_DES_NUM5

Bit

Symbol

Access

INI

Description

31:12

RSVD

R

-

Reserved

11:0

ETHRNTRXCPU_DES_NUM5

R/W

0

Indicate the number of descriptor of queue, which has been finished Rx process and returned to IO by CPU. After ending Rx process, CPU needs to update this field.

REG_RX_DES_THRES5

  • Size: 32

  • Address offset: 13CCh

  • Read/write access: R/W

This is the descriptor which the Ethernet module has filled up to for 2st priority queue. Compare

with CPU_Des_Num to determine whether to assert flow control.

31:28 RSVD 27:16 RX_PSE_DES_THRES_ON5 15:12 RSVD 11:0 RX_PSE_DES_THRES_OFF5

Bit

Symbol

Access

INI

Description

31:28

RSVD

R

-

Reserved

27:16

RX_PSE_DES_THRES_ON5

R/W

0

Specifies the difference between EthrnetRxCPU_Des_Num2 and the descriptor of queue currently in use by Ethernet Module in which flow control will be assert.

15:12

RSVD

R

-

Reserved

11:0

RX_PSE_DES_THRES_OFF5

R/W

0

Specifies the difference between EthrnetRxCPU_Des_Num2 and the descriptor of queue currently in use by Ethernet Module in which flow control will be de-assert. Rx_Pse_Des_Thress_off_ should be less than (EthrntRxCPU_DES_NUM_ - X). X is the maximum rx descriptors will be used for single ingress packet.

REG_RXFDP6

  • Size: 32

  • Address offset: 13D0h

  • Read/write access: R/W

Rx First Descriptor Pointer (FDP) for 2nd priority queue. 32 bits

31:2 RXFDP6 1:0 RSVD

Bit

Symbol

Access

INI

Description

31:2

RXFDP6

R/W

0

Rx queue Descriptor Pointer to the Rx Ring

1:0

RSVD

R

-

Reserved

REG_RXRINGSIZE6

  • Size: 16

  • Address offset: 13D4h

  • Read/write access: R/W

Rx Ring Size2 (number of Descriptors)

15:12 RSVD 11:0 RXRINGSIZE6

Bit

Symbol

Access

INI

Description

15:12

RSVD

R

-

Reserved

11:0

RXRINGSIZE6

R/W

0

The total number of descriptors in the Rx descriptor rings of queue.

Act as bit mask, eg. RxRingSize [11:0]:

0000_0000_1111: 16 descriptors

0000_0001_1111: 32 descriptors

0000_0011_1111: 64 descriptors

0000_0111_1111: 128 descriptors

0000_1111_1111: 256 descriptors

0001_1111_1111: 512 descriptors

0011_1111_1111: 1024 descriptors

0111_1111_1111: 2048 descriptors

1111_1111_1111: 4096 descriptors

Any other value in this register yields undefined results.

REG_RXCDO6

  • Size: 16

  • Address offset: 13D6h

  • Read/write access: R

Rx Current Descriptor Offset (CDO) for 2nd priority queue. 16 bits

15:12 RSVD 11:0 RXCDO6

Bit

Symbol

Access

INI

Description

15:12

RSVD

R

-

Reserved

11:0

RXCDO6

R

0

Rx Current Descriptor Offset of queue: RxFDP+RxCDO = current descriptor pointer. CDO increments by 16 each time (each increment is one byte)

REG_RX_CPU_DESN6

  • Size: 32

  • Address offset: 13D8h

  • Read/write access: R/W

This is the descriptor which the CPU has finished processing for 2nd priority queue and returned to

IO. CPU needs to update this.

31:12 RSVD 11:0 ETHRNTRXCPU_DES_NUM6

Bit

Symbol

Access

INI

Description

31:12

RSVD

R

-

Reserved

11:0

ETHRNTRXCPU_DES_NUM6

R/W

0

Indicate the number of descriptor of queue, which has been finished Rx process and returned to IO by CPU. After ending Rx process, CPU needs to update this field.

REG_RX_DES_THRES6

  • Size: 32

  • Address offset: 13DCh

  • Read/write access: R/W

This is the descriptor which the Ethernet module has filled up to for 2st priority queue. Compare

with CPU_Des_Num to determine whether to assert flow control.

31:28 RSVD 27:16 RX_PSE_DES_THRES_ON6 15:12 RSVD 11:0 RX_PSE_DES_THRES_OFF6

Bit

Symbol

Access

INI

Description

31:28

RSVD

R

-

Reserved

27:16

RX_PSE_DES_THRES_ON6

R/W

0

Specifies the difference between EthrnetRxCPU_Des_Num2 and the descriptor of queue currently in use by Ethernet Module in which flow control will be assert.

15:12

RSVD

R

-

Reserved

11:0

RX_PSE_DES_THRES_OFF6

R/W

0

Specifies the difference between EthrnetRxCPU_Des_Num2 and the descriptor of queue currently in use by Ethernet Module in which flow control will be de-assert. Rx_Pse_Des_Thress_off_ should be less than (EthrntRxCPU_DES_NUM_ - X). X is the maximum rx descriptors will be used for single ingress packet.

REG_RX_FDP1

  • Size: 32

  • Address offset: 13F0h

  • Read/write access: R/W

Rx First Descriptor Pointer (FDP) for 1th priority queue. 32 bits

31:2 RXFDP1 1:0 RSVD

Bit

Symbol

Access

INI

Description

31:2

RXFDP1

R/W

0

Rx 1st queue Descriptor Pointer to the Rx Ring

1:0

RSVD

R

-

Reserved

REG_RX_RINGSIZE1

  • Size: 16

  • Address offset: 13F4h

  • Read/write access: R/W

Rx Ring Size1 (number of Descriptors)

15:8 RXRINGSIZE_1_LOW 7:4 RSVD 3:0 RXRINGSIZE_1_HIGH

Bit

Symbol

Access

INI

Description

15:8

RXRINGSIZE_1_LOW

R/W

0

This is the total number of descriptors in the Rx descriptor rings of 1st queue.

Act as bit mask, eg. RxRingSize [11:0]:

0000_0000_1111: 16 descriptors

0000_0001_1111: 32 descriptors

0000_0011_1111: 64 descriptors

0000_0111_1111: 128 descriptors

0000_1111_1111: 256 descriptors

0001_1111_1111: 512 descriptors

0011_1111_1111: 1024 descriptors

0111_1111_1111: 2048 descriptors

1111_1111_1111: 4096 descriptors

Any other value in this register yields undefined results.

7:4

RSVD

R

-

Reserved

3:0

RXRINGSIZE_1_HIGH

R/W

0

This is the bits11-8 of RxRingSize1.

REG_RX_CDO1

  • Size: 16

  • Address offset: 13F6h

  • Read/write access: R

Rx Current Descriptor Offset (CDO) for 1th priority queue. 16 bits

15:12 RSVD 11:0 RXCDO1

Bit

Symbol

Access

INI

Description

15:12

RSVD

R

-

Reserved

11:0

RXCDO1

R

0

Rx Current Descriptor Offset of 1st queue: RxFDP+RxCDO = current descriptor pointer. CDO increments by 16 each time (each increment is one byte).

REG_SMSA

  • Size: 32

  • Address offset: 13FCh

  • Read/write access: R/W

Sram mapping start address

31:0 SMSA

Bit

Symbol

Access

INI

Description

31:0

SMSA

R/W

0

SRAM mapping start address for header mapping to sram

REG_PROBE_SELEXCT

  • Size: 32

  • Address offset: 1400h

  • Read/write access: R/W

Probe signal select

31:4 RSVD 3:0 PROBE_SIGNAL_SELECT

Bit

Symbol

Access

INI

Description

31:4

RSVD

R

-

Reserved

3:0

PROBE_SIGNAL_SELECT

R/W

0x0

For debug port signals use Value = 4: Tx/Rx related signals

REG_DIAG1

  • Size: 32

  • Address offset: 1404h

  • Read/write access: R

For debug./

31:6 RSVD 5:3 RXMRING_STATE 2:0 LSO_STATS

Bit

Symbol

Access

INI

Description

31:6

RSVD

R

-

Reserved

5:3

RXMRING_STATE

R

2:0

LSO_STATS

R

Reserved(3bits)

REG_CONFIG_CLK_AND_RX_PSE_DES_THRES_H

  • Size: 32

  • Address offset: 142Ch

  • Read/write access: R/W

Bit[3:0] is the Rx_Pse_Des_Thres_off[11:8]. Bit [21:16] set txc delay and rxc delay sel.

31:28 RSVD 27:24 RX_PSE_DES_THRES_OFF_1 23:6 RSVD 5 SET_D_TXC 4:0 RXC_DLY_SEL

Bit

Symbol

Access

INI

Description

31:28

RSVD

R

-

Reserved

27:24

RX_PSE_DES_THRES_OFF_1

R/W

0

This is the Rx_Pse_Des_Thres_off1[11:8].

23:6

RSVD

R

-

Reserved

5

SET_D_TXC

R/W

0

Add delay to gmii_txc_out. Used in clk.

Rgmii_1000: add 2nS delay.

Rgmii_100: add 4nS delay.

Rgmii_10: add 4nS delay.

4:0

RXC_DLY_SEL

R/W

0

32-tap delay chain for rxc. This field is valid when CONFIG_CLK_REG.dis_dly_mode is 0.

REG_ETHRNTRXCPU_DES_NUM1

  • Size: 32

  • Address offset: 1430h

  • Read/write access: R/W

This is the descriptor which the CPU has finished processing and returned to IO for 1st priority

queue. CPU needs to update this.

31:24 ETHRNTRXCPU_DES_NUM_1_7_0 23:16 RX_PSE_DES_THRES_ON_1_7_0 15:8 RX_PSE_DES_THRES_OFF_1_7_0 7:4 ETHRNTRXCPU_DES_NUM_1_11_8 3:0 RX_PSE_DES_THRES_ON_1_11_8

Bit

Symbol

Access

INI

Description

31:24

ETHRNTRXCPU_DES_NUM_1_7_0

R/W

0

Indicate the number of descriptor of 1st queue, which has been finished Rx process and returned to IO by CPU. After ending Rx process, CPU needs to update this field.

23:16

RX_PSE_DES_THRES_ON_1_7_0

R/W

0

Specifies the difference between EthrnetRxCPU_Des_Num1 and the descriptor of 1st queue currently in use by Ethernet Module in which flow control will be assert.

15:8

RX_PSE_DES_THRES_OFF_1_7_0

R/W

0

Specifies the difference between EthrnetRxCPU_Des_Num1 and the descriptor of 1st queue currently in use by Ethernet Module in which flow control will be de-assert. Rx_Pse_Des_Thress_off_1 should be less than (EthrntRxCPU_DES_NUM_1 - X). X is the maximum rx descriptors will be used for single ingress packet.

7:4

ETHRNTRXCPU_DES_NUM_1_11_8

R/W

0

This is the EthrntRxCPU_Des_Num1[11:8].

3:0

RX_PSE_DES_THRES_ON_1_11_8

R/W

0

This is the Rx_Pse_Des_Thres_on1[11:8].

REG_ETHER_IO_CMD

  • Size: 32

  • Address offset: 1434h

  • Read/write access: R/W

ETHER_IO_CMD

31 MAX_DMA_SEL_0 30 SHORTDESFORMAT 29 MAX_DMA_SEL_1 28 EN_EARLY_TX 27:24 TXPKTTIMER 23 TXINTMITIGATION_3 22 RXPKTTIMER_3 21 RXINTMITIGATION_3 20:19 TSH 18:16 TXINTMITIGATION_2_0 15:13 RXPKTTIMER_2_0 12:11 RXFTH 10:8 RXINTMITIGATION_2_0 7:6 REG_INT_TIMER_SEL 5 RE 4 TE 3 TXFN4TH 2 TXFN3RD 1 TXFN2ND 0 TXFN1ST

Bit

Symbol

Access

INI

Description

31

MAX_DMA_SEL_0

R/W

0

Select the dma burst size on bus(memory controller should assert continuous btrdy).

  • 00:16 DW(1DW=4B)

  • 01:32 DW 10:64 DW 11:128DW.

AmebaI/AmebaPro/AmebaPro2 only support DMA burst length = 16DW

30

SHORTDESFORMAT

R/W

0

Short descriptor format. Set 1 tx/rx descriptor will use old format - 4x32bit each item, set 0 use new format to support sram mapping AmebaI/AmebaPro/AmebaPro2 only support old format (1b’1)

29

MAX_DMA_SEL_1

R/W

0

See Ethernet_IO_CMD.bit31 AmebaI/AmebaPro/AmebaPro2 only support DMA burst length = 16DW

28

EN_EARLY_TX

R/W

0

Default 0,

  • 0: disable,

  • 1: enable.

Disable early tx by GAMC while tx command descriptor.IPCS, UDPCS or TCPCS are set to high. For multiple tx descriptor application, this field should be 0. For low lxbus throughput environment, this field should be 0. For slow clk_gmac application, this field should be 0.

27:24

TXPKTTIMER

R/W

0x0

Timer to trigger TxOK interrupt before receipt of TxIntMitigation pkts. 0000 – no timer set 0001 ~ 1111 : the timer interval defining a multiple of TU ex: 0011 = timer interval set to 3 x4 =12TU Once TxOK is asserted the timer mechanism is reinitialized.

23

TXINTMITIGATION_3

R/W

0

See Ethernet_IO_CMD.bit18-16

22

RXPKTTIMER_3

R/W

0

See Ethernet_IO_CMD.bit15-13

21

RXINTMITIGATION_3

R/W

0

See Ethernet_IO_CMD.bit10-8

20:19

TSH

R/W

0x0

Tx Threshold: Specifies the threshold level in the Tx FIFO to begin the transmission. When the byte count of the data in the Tx FIFO reaches this level, (or the FIFO contains at least one complete packet or the end of a packet) the Ethernet module will transmit this packet.

  • 00:128B.

  • 01:256B.

  • 10:512B.

  • 11:1024B.

For poor lxbus bandwidth, tsh should be set b11.

In rle0516, this field should be setted 0 or 1 (128B).

18:16

TXINTMITIGATION_2_0

R/W

0x0

This sets the number of packets received before TxOK interrupt is triggered.

0000- 1 pkt

0001- 4 pkts

0010- 8 pkts

0011- 12 pkts

0100- 16 pkts

0101- 20 pkts

0110- 24 pkts

0111- 28 pkts …

15:13

RXPKTTIMER_2_0

R/W

0x0

Timer to trigger RxOK interrupt before receipt of RxIntMitigation pkts.

0000 – no timer set

0001 ~ 1111 : the timer interval defining a multiple of TU ex: 011 = timer interval set to 3 x4 =12TU This only applies to packets of size larger than 128 bytes.

Once RxOK is asserted the timer mechanism is reinitialized. For ingress pkt which is short than 128B, RxOK interrupt asserts after DMA completes.

12:11

RXFTH

R/W

0x0

Rx Threshold: Specifies the threshold level in the Rx FIFO to begin the transmission. When the byte count of the data in the Rx FIFO reaches this level, (or the FIFO contains at least one complete packet or the end of a packet) the Ethernet module will transmit this packet.

  • 00: 1024B

  • 01: 128B

  • 10: 256B

  • 11: 512B

The rx threshold should be larger than maximum dma burst size. The combination of max_dma_sel and rxfth are listed as followed:

Max_dma_sel rxfth

B00(64B) b00(1024B), b01 (128B), b10(256B), b11(512B).

B01(128B) b00(1024B), b10(256B), b11(512B).

B10(256B) b00(1024B), b11(512B),

In rle0516: SW should not set rxfth to 0b00 due to the rx fifo size is only 512B. The recommend value of rle0516 is 0b11 for performance concerns. 00 = no rx threshold. The Ethernet Module begins the transfer of data after having received a whole packet in the FIFO.

01 = 32 bytes

10 = 64 bytes

11 = 128 bytes

Max_dma_sel rxfth

B0(64B) b10(64B), b11(128B).

B1(128B) b11(128B).

10:8

RXINTMITIGATION_2_0

R/W

0x0

This sets the number of packets received before RxOK interrupt is triggered.

0000- 1 pkt

0001- 4 pkts

0010- 8 pkts

0011- 12pkts

0100- 16 pkts

0101- 20 pkts

0110- 24 pkts

0111- 28 pkts …

7:6

REG_INT_TIMER_SEL

R/W

0x0

RXPktTimer, TXPktTimer Unit. (TU)

Speed TU

  • 00: 10M 25.6uS

  • 00: 100M 2.56uS

  • 00: 1000M 256nS

  • 01: 10M 102.4uS

  • 01: 100M 10.24uS

  • 01: 1000M 1.024uS

  • 10: 10M 409.6uS

  • 10: 100M 40.96uS

  • 10: 1000M 4.096uS

  • 11: 10M 1.6mS

  • 11: 100M 0.16mS

  • 11: 1000M 16uS

5

RE

R/W

0

MII Rx Enable

4

TE

R/W

0

MII Tx Enable

3

TXFN4TH

R/W

0

4th Priority DMA-Ethernet Transmit enable. 1: Enable. 0: Disable.

2

TXFN3RD

R/W

0

3rd Priority DMA-Ethernet Transmit enable. 1: Enable. 0: Disable.

1

TXFN2ND

R/W

0

2nd Priority DMA-Ethernet Transmit enable. 1: Enable. 0: Disable.

0

TXFN1ST

R/W

0

1st Priority DMA-Ethernet Transmit enable. 1: Enable. 0: Disable.

REG_IO_CMD1

  • Size: 32

  • Address offset: 1438h

  • Read/write access: R/W

ETHER_IO_CMD1

31 CF_ORGCOL_SEL 30:28 DSC_FORMAT_EXTRA 27 EN_PRECISE_DMA 26 RXOKINT_MSK_128B 25 EN_RX_MRING 24 EN_4GB 23:22 RSVD 21 RXRING6 20 RXRING5 19 RXRING4 18 RXRING3 17 RXRING2 16 RXRING1 15:14 TX_HL_PRI_SEL 13:9 RSVD 8 TXFN5TH 7:5 RSVD 4 TXQ5_H 3 TXQ4_H 2 TXQ3_H 1 TXQ2_H 0 TXQ1_H

Bit

Symbol

Access

INI

Description

31

CF_ORGCOL_SEL

R/W

1

  • 0: using GMAC internal generated collision signal

  • 1: using MII interface collision signal( (default 1: AmebaPro2)

30:28

DSC_FORMAT_EXTRA

R/W

3’b011

Extra descriptor format. In rle0437, bit28 is is write only. SW should set this field before set IO_CMD.TE or RE to 1. AmebaI/AmebaPro/AmebaPro

2 only support the fixed value 3b’011

27

EN_PRECISE_DMA

R/W

0

  • 0: disable precise DMA transfer.

  • 1: enable precise DMA transfer.

AmebaI/AmebaPro/AmebaPro2 only support 1b’0 (disable precise DMA transfer)

26

RXOKINT_MSK_128B

R/W

1

  • 1: For ingress pkt which is short than 128B, RxOK interrupt asserts after DMA completes (compatible issue). 0: For ingress pkt which is short than 128B, RxOK interrupt does not assert after DMA completes.

25

EN_RX_MRING

R/W

0

Enable rx multiple rings.

  • 1: rx using multiple rings. max: 6rings (ring1 to ring6).

0 rx using single ring (ring1 only).

SW should set this field before set IO_CMD.TE or RE to 1 AmebaI/AmebaPro/AmebaPro2 only support single rx ring

24

EN_4GB

R/W

1

  • 1: support 4GB addressing in lx master bus. For gmac used in rl0371 and after.

  • 0: no support. For project used in rle0390 and before.

SW should set this field before set IO_CMD.TE or RE to 1 AmebaPro2 support 4GB addressing AmebaI/AmebaPro only support 1GB addressing

23:22

RSVD

R

-

Reserved

21

RXRING6

R/W

0

Ethernet-DMA Receive Ring6 enable.

  • 1: Enable.

  • 0: Disable.

If RXRING6 is not used, SW should put one dummy rx command descriptor (own = 0) at RXFDP6_reg.

20

RXRING5

R/W

0

Ethernet-DMA Receive Ring5 enable.

  • 1: Enable.

  • 0: Disable.

If RXRING5 is not used, SW should put one dummy rx command descriptor (own = 0) at RXFDP5_reg.

19

RXRING4

R/W

0

Ethernet-DMA Receive Ring4 enable.

  • 1: Enable.

  • 0: Disable.

If RXRING4 is not used, SW should put one dummy rx command descriptor (own = 0) at RXFDP4_reg.

18

RXRING3

R/W

0

Ethernet-DMA Receive Ring3 enable.

  • 1: Enable.

  • 0: Disable.

If RXRING3 is not used, SW should put one dummy rx command descriptor (own = 0) at RXFDP3_reg.

17

RXRING2

R/W

0

Ethernet-DMA Receive Ring2 enable.

  • 1: Enable.

  • 0: Disable.

If RXRING2 is not used, SW should put one dummy rx command descriptor (own = 0) at RXFDP2_reg.

16

RXRING1

R/W

0

Ethernet-DMA Receive Ring1 enable.

  • 1: Enable.

  • 0: Disable.

If RXRING1 is not used, SW should put one dummy rx command descriptor (own = 0) at RXFDP1_reg.

15:14

TX_HL_PRI_SEL

R/W

0

  • b00: TX ring uses strict priority.

  • b01: TX ring uses high and low queue priority.

Inside high queue, tx ring is round robin.

Inside low queue, tx ring is round robin.

Strict priority is used for high and low queue selection. b10 and b11: reserved. In RL6266, when tx_hl_pri is 1, txq1_h and txq2_h are 1 and txq3_h, txq4_h and txq5_h are 0.

SW should set this field before set IO_CMD.TE to 1.

AmebaI/AmebaPro/AmebaPro2 only support the fixed value 2b’00

13:9

RSVD

R

-

Reserved

8

TXFN5TH

R/W

0

5th Priority DMA-Ethernet Transmit enable.

  • 1: Enable.

  • 0: Disable.

After IO_CMD.TE is set high, TxFN5th is writable.

7:5

RSVD

R

-

Reserved

4

TXQ5_H

R/W

0

  • 1: TxFN5th is a high queue.

  • 0: TxFN5th is a low queue.

This field is only used in eee.

3

TXQ4_H

R/W

0

  • 1: TxFN4th is a high queue.

  • 0: TxFN4th is a low queue.

This field is only used in eee.

2

TXQ3_H

R/W

0

  • 1: TxFN3rd is a high queue.

  • 0: TxFN3rd is a low queue.

This field is only used in eee.

1

TXQ2_H

R/W

0

  • 1: TxFN2nd is a high queue.

  • 0: TxFN2nd is a low queue.

This field is only used in eee.

0

TXQ1_H

R/W

0

  • 1: TxFN1st is a high queue.

  • 0: TxFN1st is a low queue.

This field is only used in eee.

REG_WOL

  • Size: 32

  • Address offset: 143Ch

  • Read/write access: R/W

WOL_REG

31:4 RSVD 3 WOL_IMR 2 WOL_PME 1 WOL_STS 0 WOL_CMD

Bit

Symbol

Access

INI

Description

31:4

RSVD

R

-

Reserved

3

WOL_IMR

R/W

0

Interrupt mask of wol_pme.

2

WOL_PME

R

0

HW asserts pme when

A.HW entered wol idle state and

B.received magic ingress pkt.

HW asserts pme to wake up system.

Wol_pme indicates:

  • 0: No magic pkt receives.

  • 1: HW had received one magic pkt and system should wake up.

1

WOL_STS

R

0

HW enters wol idle state when

  1. SW issues wol_cmd state and

  2. HW tx/rx function enter idle state.

Wol_sts indicates:

  • 0: HW is not in wol idle state.

  • 1: HW is in wol idle state.

0

WOL_CMD

R/W

0

Issue wol command by SW