
Details
pmac—A pointer to the MAC control interface base address.Parameter:
SUCCESSReturn:
Constants
Table 11-3 lists all constants defined for the MAC registers manipulation and provides links to detailed
descriptions of the registers. It also list the constants that define the MAC operating mode and timeout
values.
Table 11-3: Constants Mapping
DescriptionValueConstant
0: Half-duplex 1: Full-duplex1ALTERA_TSE_DUPLEX_MODE_DEFAULT
0: 10 Mbps 1: 100 Mbps 2: 1000
Mbps
0ALTERA_TSE_MAC_SPEED_DEFAULT
The number of SG-DMA descrip-
tors required for the current
operating mode.
1ALTERA_TSE_SGDMA_RX_DESC_CHAIN_SIZE
The timeout value when the MAC
tries to establish a link with a PHY.
1000000ALTERA_CHECKLINK_TIMEOUT_THRESHOLD
The auto-negotiation timeout
value.
250000ALTERA_AUTONEG_TIMEOUT_THRESHOLD
Command_Config Register (Command_Config Register (Dword Offset 0x02) on page 6-7)
Configures the TX_ENA bit.
0ALTERA_TSEMAC_CMD_TX_ENA_OFST
0x1ALTERA_TSEMAC_CMD_TX_ENA_MSK
Configures the RX_ENA bit.
1ALTERA_TSEMAC_CMD_RX_ENA_OFST
0x2ALTERA_TSEMAC_CMD_RX_ENA_MSK
Configures the XON_GEN bit.
2ALTERA_TSEMAC_CMD_XON_GEN_OFST
0x4ALTERA_TSEMAC_CMD_XON_GEN_MSK
Configures the ETH_SPEED bit.
3ALTERA_TSEMAC_CMD_ETH_SPEED_OFST
0x8ALTERA_TSEMAC_CMD_ETH_SPEED_MSK
Configures the PROMIS_EN bit.
4ALTERA_TSEMAC_CMD_PROMIS_EN_OFST
0x10ALTERA_TSEMAC_CMD_PROMIS_EN_MSK
Configures the PAD_EN bit.
5ALTERA_TSEMAC_CMD_PAD_EN_OFST
0x20ALTERA_TSEMAC_CMD_PAD_EN_MSK
Configures the CRC_FWD bit.
6ALTERA_TSEMAC_CMD_CRC_FWD_OFST
0x40ALTERA_TSEMAC_CMD_CRC_FWD_MSK
Software Programming Interface
Altera Corporation
Send Feedback
UG-01008
Constants
11-10
2014.06.30
Kommentare zu diesen Handbüchern