寄存器

请查看 寄存器访问类型 ,了解 Access 列缩写的含义。

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