Constants, Constants -10 – Altera Triple Speed Ethernet MegaCore Function User Manual

Page 189

Advertising
background image

Details

pmac

—A pointer to the MAC control interface base address.

Parameter:

SUCCESS

Return:

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

Description

Value

Constant

0: Half-duplex 1: Full-duplex

1

ALTERA_TSE_DUPLEX_MODE_DEFAULT

0: 10 Mbps 1: 100 Mbps 2: 1000
Mbps

0

ALTERA_TSE_MAC_SPEED_DEFAULT

The number of SG-DMA descrip-
tors required for the current
operating mode.

1

ALTERA_TSE_SGDMA_RX_DESC_CHAIN_SIZE

The timeout value when the MAC
tries to establish a link with a PHY.

1000000

ALTERA_CHECKLINK_TIMEOUT_THRESHOLD

The auto-negotiation timeout
value.

250000

ALTERA_AUTONEG_TIMEOUT_THRESHOLD

Command_Config Register (

Command_Config Register (Dword Offset 0x02)

on page 6-7)

Configures the

TX_ENA

bit.

0

ALTERA_TSEMAC_CMD_TX_ENA_OFST

0x1

ALTERA_TSEMAC_CMD_TX_ENA_MSK

Configures the

RX_ENA

bit.

1

ALTERA_TSEMAC_CMD_RX_ENA_OFST

0x2

ALTERA_TSEMAC_CMD_RX_ENA_MSK

Configures the

XON_GEN

bit.

2

ALTERA_TSEMAC_CMD_XON_GEN_OFST

0x4

ALTERA_TSEMAC_CMD_XON_GEN_MSK

Configures the

ETH_SPEED

bit.

3

ALTERA_TSEMAC_CMD_ETH_SPEED_OFST

0x8

ALTERA_TSEMAC_CMD_ETH_SPEED_MSK

Configures the

PROMIS_EN

bit.

4

ALTERA_TSEMAC_CMD_PROMIS_EN_OFST

0x10

ALTERA_TSEMAC_CMD_PROMIS_EN_MSK

Configures the

PAD_EN

bit.

5

ALTERA_TSEMAC_CMD_PAD_EN_OFST

0x20

ALTERA_TSEMAC_CMD_PAD_EN_MSK

Configures the

CRC_FWD

bit.

6

ALTERA_TSEMAC_CMD_CRC_FWD_OFST

0x40

ALTERA_TSEMAC_CMD_CRC_FWD_MSK

Software Programming Interface

Altera Corporation

Send Feedback

UG-01008

Constants

11-10

2014.06.30

Advertising