/* Block IDLE Status Register */ #define REG_IDLE_STATUS 0x1410 #define IDLE_STATUS_RXMAC 1 /* 1: RXMAC state machine is in non-IDLE state. 0: RXMAC is idling */ #define IDLE_STATUS_TXMAC 2 /* 1: TXMAC state machine is in non-IDLE state. 0: TXMAC is idling */ #define IDLE_STATUS_RXQ 4 /* 1: RXQ state machine is in non-IDLE state. 0: RXQ is idling */ #define IDLE_STATUS_TXQ 8 /* 1: TXQ state machine is in non-IDLE state. 0: TXQ is idling */ #define IDLE_STATUS_DMAR 0x10 /* 1: DMAR state machine is in non-IDLE state. 0: DMAR is idling */ #define IDLE_STATUS_DMAW 0x20 /* 1: DMAW state machine is in non-IDLE state. 0: DMAW is idling */ #define IDLE_STATUS_SMB 0x40 /* 1: SMB state machine is in non-IDLE state. 0: SMB is idling */ #define IDLE_STATUS_CMB 0x80 /* 1: CMB state machine is in non-IDLE state. 0: CMB is idling */
/* MDIO Control Register */ #define REG_MDIO_CTRL 0x1414 #define MDIO_DATA_MASK 0xffff /* On MDIO write, the 16-bit control data to write to PHY MII management register */ #define MDIO_DATA_SHIFT 0 /* On MDIO read, the 16-bit status data that was read from the PHY MII management register*/ #define MDIO_REG_ADDR_MASK 0x1f /* MDIO register address */ #define MDIO_REG_ADDR_SHIFT 16 #define MDIO_RW 0x200000 /* 1: read, 0: write */ #define MDIO_SUP_PREAMBLE 0x400000 /* Suppress preamble */ #define MDIO_START 0x800000 /* Write 1 to initiate the MDIO master. And this bit is self cleared after one cycle*/ #define MDIO_CLK_SEL_SHIFT 24 #define MDIO_CLK_25_4 0 #define MDIO_CLK_25_6 2 #define MDIO_CLK_25_8 3 #define MDIO_CLK_25_10 4 #define MDIO_CLK_25_14 5 #define MDIO_CLK_25_20 6 #define MDIO_CLK_25_28 7 #define MDIO_BUSY 0x8000000 #define MDIO_AP_EN 0x10000000 #define MDIO_WAIT_TIMES 10
/* MII PHY Status Register */ #define REG_PHY_STATUS 0x1418 #define PHY_STATUS_100M 0x20000 #define PHY_STATUS_EMI_CA 0x40000
/* BIST Control and Status Register0 (for the Packet Memory) */ #define REG_BIST0_CTRL 0x141c #define BIST0_NOW 0x1 /* 1: To trigger BIST0 logic. This bit stays high during the */ /* BIST process and reset to zero when BIST is done */ #define BIST0_SRAM_FAIL 0x2 /* 1: The SRAM failure is un-repairable because it has address */ /* decoder failure or more than 1 cell stuck-to-x failure */ #define BIST0_FUSE_FLAG 0x4 /* 1: Indicating one cell has been fixed */
/* BIST Control and Status Register1(for the retry buffer of PCI Express) */ #define REG_BIST1_CTRL 0x1420 #define BIST1_NOW 0x1 /* 1: To trigger BIST0 logic. This bit stays high during the */ /* BIST process and reset to zero when BIST is done */ #define BIST1_SRAM_FAIL 0x2 /* 1: The SRAM failure is un-repairable because it has address */ /* decoder failure or more than 1 cell stuck-to-x failure.*/ #define BIST1_FUSE_FLAG 0x4
/* SerDes Lock Detect Control and Status Register */ #define REG_SERDES_LOCK 0x1424 #define SERDES_LOCK_DETECT 1 /* 1: SerDes lock detected . This signal comes from Analog SerDes */ #define SERDES_LOCK_DETECT_EN 2 /* 1: Enable SerDes Lock detect function */
/* MAC Control Register */ #define REG_MAC_CTRL 0x1480 #define MAC_CTRL_TX_EN 1 /* 1: Transmit Enable */ #define MAC_CTRL_RX_EN 2 /* 1: Receive Enable */ #define MAC_CTRL_TX_FLOW 4 /* 1: Transmit Flow Control Enable */ #define MAC_CTRL_RX_FLOW 8 /* 1: Receive Flow Control Enable */ #define MAC_CTRL_LOOPBACK 0x10 /* 1: Loop back at G/MII Interface */ #define MAC_CTRL_DUPLX 0x20 /* 1: Full-duplex mode 0: Half-duplex mode */ #define MAC_CTRL_ADD_CRC 0x40 /* 1: Instruct MAC to attach CRC on all egress Ethernet frames */ #define MAC_CTRL_PAD 0x80 /* 1: Instruct MAC to pad short frames to 60-bytes, and then attach CRC. This bit has higher priority over CRC_EN */ #define MAC_CTRL_LENCHK 0x100 /* 1: Instruct MAC to check if length field matches the real packet length */ #define MAC_CTRL_HUGE_EN 0x200 /* 1: receive Jumbo frame enable */ #define MAC_CTRL_PRMLEN_SHIFT 10 /* Preamble length */ #define MAC_CTRL_PRMLEN_MASK 0xf #define MAC_CTRL_RMV_VLAN 0x4000 /* 1: to remove VLAN Tag automatically from all receive packets */ #define MAC_CTRL_PROMIS_EN 0x8000 /* 1: Promiscuous Mode Enable */ #define MAC_CTRL_TX_PAUSE 0x10000 /* 1: transmit test pause */ #define MAC_CTRL_SCNT 0x20000 /* 1: shortcut slot time counter */ #define MAC_CTRL_SRST_TX 0x40000 /* 1: synchronized reset Transmit MAC module */ #define MAC_CTRL_TX_SIMURST 0x80000 /* 1: transmit simulation reset */ #define MAC_CTRL_SPEED_SHIFT 20 /* 10: gigabit 01:10M/100M */ #define MAC_CTRL_SPEED_MASK 0x300000 #define MAC_CTRL_SPEED_1000 2 #define MAC_CTRL_SPEED_10_100 1 #define MAC_CTRL_DBG_TX_BKPRESURE 0x400000 /* 1: transmit maximum backoff (half-duplex test bit) */ #define MAC_CTRL_TX_HUGE 0x800000 /* 1: transmit huge enable */ #define MAC_CTRL_RX_CHKSUM_EN 0x1000000 /* 1: RX checksum enable */ #define MAC_CTRL_MC_ALL_EN 0x2000000 /* 1: upload all multicast frame without error to system */ #define MAC_CTRL_BC_EN 0x4000000 /* 1: upload all broadcast frame without error to system */ #define MAC_CTRL_DBG 0x8000000 /* 1: upload all received frame to system (Debug Mode) */
/* MAC IPG/IFG Control Register */ #define REG_MAC_IPG_IFG 0x1484 #define MAC_IPG_IFG_IPGT_SHIFT 0 /* Desired back to back inter-packet gap. The default is 96-bit time */ #define MAC_IPG_IFG_IPGT_MASK 0x7f #define MAC_IPG_IFG_MIFG_SHIFT 8 /* Minimum number of IFG to enforce in between RX frames */ #define MAC_IPG_IFG_MIFG_MASK 0xff /* Frame gap below such IFP is dropped */ #define MAC_IPG_IFG_IPGR1_SHIFT 16 /* 64bit Carrier-Sense window */ #define MAC_IPG_IFG_IPGR1_MASK 0x7f #define MAC_IPG_IFG_IPGR2_SHIFT 24 /* 96-bit IPG window */ #define MAC_IPG_IFG_IPGR2_MASK 0x7f
/* MAC STATION ADDRESS */ #define REG_MAC_STA_ADDR 0x1488
/* Hash table for multicast address */ #define REG_RX_HASH_TABLE 0x1490
/* MAC Half-Duplex Control Register */ #define REG_MAC_HALF_DUPLX_CTRL 0x1498 #define MAC_HALF_DUPLX_CTRL_LCOL_SHIFT 0 /* Collision Window */ #define MAC_HALF_DUPLX_CTRL_LCOL_MASK 0x3ff #define MAC_HALF_DUPLX_CTRL_RETRY_SHIFT 12 /* Retransmission maximum, afterwards the packet will be discarded */ #define MAC_HALF_DUPLX_CTRL_RETRY_MASK 0xf #define MAC_HALF_DUPLX_CTRL_EXC_DEF_EN 0x10000 /* 1: Allow the transmission of a packet which has been excessively deferred */ #define MAC_HALF_DUPLX_CTRL_NO_BACK_C 0x20000 /* 1: No back-off on collision, immediately start the retransmission */ #define MAC_HALF_DUPLX_CTRL_NO_BACK_P 0x40000 /* 1: No back-off on backpressure, immediately start the transmission after back pressure */ #define MAC_HALF_DUPLX_CTRL_ABEBE 0x80000 /* 1: Alternative Binary Exponential Back-off Enabled */ #define MAC_HALF_DUPLX_CTRL_ABEBT_SHIFT 20 /* Maximum binary exponential number */ #define MAC_HALF_DUPLX_CTRL_ABEBT_MASK 0xf #define MAC_HALF_DUPLX_CTRL_JAMIPG_SHIFT 24 /* IPG to start JAM for collision based flow control in half-duplex */ #define MAC_HALF_DUPLX_CTRL_JAMIPG_MASK 0xf /* mode. In unit of 8-bit time */
/* Maximum Frame Length Control Register */ #define REG_MTU 0x149c
/* Load Ptr Register */ #define REG_LOAD_PTR 0x1534 /* Software sets this bit after the initialization of the head and tail */
/* * addresses of all descriptors, as well as the following descriptor * control register, which triggers each function block to load the head * pointer to prepare for the operation. This bit is then self-cleared * after one cycle.
*/
/* TXQ Control Register */ #define REG_TXQ_CTRL 0x1580 #define TXQ_CTRL_NUM_TPD_BURST_MASK 0xF #define TXQ_CTRL_NUM_TPD_BURST_SHIFT 0 #define TXQ_CTRL_EN 0x20 /* 1: Enable TXQ */ #define TXQ_CTRL_ENH_MODE 0x40 /* Performance enhancement mode, in which up to two back-to-back DMA read commands might be dispatched. */ #define TXQ_CTRL_TXF_BURST_NUM_SHIFT 16 /* Number of data byte to read in a cache-aligned burst. Each SRAM entry is 8-byte in length. */ #define TXQ_CTRL_TXF_BURST_NUM_MASK 0xffff
/* Jumbo packet Threshold for task offload */ #define REG_TX_EARLY_TH 0x1584 /* Jumbo frame threshold in QWORD unit. Packet greater than */ /* JUMBO_TASK_OFFLOAD_THRESHOLD will not be task offloaded. */ #define TX_TX_EARLY_TH_MASK 0x7ff #define TX_TX_EARLY_TH_SHIFT 0
/* Rx jumbo packet threshold and rrd retirement timer */ #define REG_RXQ_JMBOSZ_RRDTIM 0x15A4 /* * Jumbo packet threshold for non-VLAN packet, in QWORD (64-bit) unit. * When the packet length greater than or equal to this value, RXQ * shall start cut-through forwarding of the received packet.
*/ #define RXQ_JMBOSZ_TH_MASK 0x7ff #define RXQ_JMBOSZ_TH_SHIFT 0 /* RRD retirement timer. Decrement by 1 after every 512ns passes*/ #define RXQ_JMBO_LKAH_MASK 0xf #define RXQ_JMBO_LKAH_SHIFT 11
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.