PDK API Guide for J721E
|
Functions | |
Uint32 | CSL_CPGMAC_SL_isFullDuplexEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableFullDuplex (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableFullDuplex (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isLoopbackModeEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableLoopback (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableLoopback (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isRxFlowControlEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableRxFlowControl (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableRxFlowControl (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isTxFlowControlEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableTxFlowControl (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableTxFlowControl (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isGMIIEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableGMII (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableGMII (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isTxPaceEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableTxPace (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableTxPace (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isGigabitEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableGigabit (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableGigabit (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isTxShortGapEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableTxShortGap (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableTxShortGap (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isIdleModeEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableIdleMode (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableIdleMode (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isCastagnoliCRCEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableCastagnoliCRC (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableCastagnoliCRC (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isIFCTLAEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableIFCTLA (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableIFCTLA (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isIFCTLBEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableIFCTLB (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableIFCTLB (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isGigForceModeEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableGigForceMode (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableGigForceMode (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isExtControlEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableExtControl (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableExtControl (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isExtRxFlowEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableExtRxFlow (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableExtRxFlow (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isExtTxFlowEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableExtTxFlow (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableExtTxFlow (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isRxCEFEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableRxCEF (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableRxCEF (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isRxCSFEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableRxCSF (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableRxCSF (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isRxCMFEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableRxCMF (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableRxCMF (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_getMacControlReg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_setMacControlReg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, Uint32 macControlRegVal) |
void | CSL_CPGMAC_SL_getMacStatusReg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, CSL_CPGMAC_SL_MACSTATUS *pMacStatus) |
void | CSL_CPGMAC_SL_resetMac (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_isMACResetDone (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_getRxMaxLen (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_setRxMaxLen (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, Uint32 rxMaxLen) |
Uint32 | CSL_CPGMAC_SL_getTxGap (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_setTxGap (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, Uint32 txGap) |
Uint32 | CSL_CPGMAC_SL_getRxPauseTimerReg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_setRxPauseTimerReg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, Uint32 rxPauseTimer) |
Uint32 | CSL_CPGMAC_SL_getTxPauseTimerReg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 | CSL_CPGMAC_SL_setTxPauseTimerReg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, Uint32 txPauseTimer) |
void | CSL_CPGMAC_SL_getEmulControlReg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, Uint32 *pEmulFreeBit, Uint32 *pEmulSoftBit) |
void | CSL_CPGMAC_SL_setEmulControlReg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, Uint32 emulFreeBit, Uint32 emulSoftBit) |
void | CSL_CPGMAC_SL_getMacRxPriMapReg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, Uint32 *pMacRxPriMap) |
void | CSL_CPGMAC_SL_setMacRxPriMapReg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, Uint32 *pMacRxPriMap) |
void | CSL_CPGMAC_SL_clearMacStatusTorf (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_clearMacStatusTorfPri (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_getInterVLANCfg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, Uint32 routeIndex, CSL_CPSW_INTERVLANCFG *pInterVLANCfg) |
void | CSL_CPGMAC_SL_setInterVLANCfg (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, Uint32 routeIndex, CSL_CPSW_INTERVLANCFG *pInterVLANCfg) |
void | CSL_CPGMAC_SL_getFifoStatus (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum, CSL_CPGMAC_SL_FIFOSTATUS *pFifoStatus) |
Uint32 | CSL_CPGMAC_SL_isTxShortGapLimitEnabled (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_enableTxShortGapLimit (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
void | CSL_CPGMAC_SL_disableTxShortGapLimit (CSL_Xge_cpswRegs *hCpswRegs, Uint32 portNum) |
Uint32 CSL_CPGMAC_SL_isFullDuplexEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isFullDuplexEnabled
Description
This function indicates if Full duplex mode is enabled in the MAC control register for the MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Full duplex mode enabled
FALSE Half duplex mode enabled.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_FULLDUPLEX
Example
Uint32 portNum; portNum = 1; if (CSL_CPGMAC_SL_isFullDuplexEnabled (portNum) == TRUE) { // full duplex mode enabled } else { // full duplex mode disabled }
void CSL_CPGMAC_SL_enableFullDuplex | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableFullDuplex
Description
This function configures the MAC control register to enable full duplex mode for the MAC port number specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_FULLDUPLEX=1
Example
* Uint32 portNum = 1; CSL_CPGMAC_SL_enableFullDuplex (portNum);
void CSL_CPGMAC_SL_disableFullDuplex | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableFullDuplex
Description
This function configures the MAC control register to disable full duplex mode for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_FULLDUPLEX=0
Example
* Uint32 portNum = 1; CSL_CPGMAC_SL_disableFullDuplex (portNum);
Uint32 CSL_CPGMAC_SL_isLoopbackModeEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isLoopbackModeEnabled
Description
This function indicates if loopback mode is enabled in the MAC control register for the MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Internal full duplex lopoback mode enabled
FALSE Loopback mode disabled.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_LOOPBACK
Example
* Uint32 portNum = 1; if (CSL_CPGMAC_SL_isLoopbackModeEnabled (portNum) == TRUE) { // loopback mode enabled } else { // loopback mode disabled }
void CSL_CPGMAC_SL_enableLoopback | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableLoopback
Description
This function configures the MAC control register to enable lopback mode for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_LOOPBACK=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableLoopback (portNum);
void CSL_CPGMAC_SL_disableLoopback | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableLoopback
Description
This function configures the MAC control register to disable loopback mode for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_LOOPBACK=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableLoopback (portNum);
Uint32 CSL_CPGMAC_SL_isRxFlowControlEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isRxFlowControlEnabled
Description
This function indicates if receive flow control is enabled in the MAC control register for the MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Receive flow control enabled
FALSE Receive flow control disabled
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_RX_FLOW_EN
Example
* Uint32 portNum = 1; if (CSL_CPGMAC_SL_isRxFlowControlEnabled (portNum) == TRUE) { // rx flow control enabled } else { // rx flow control disabled }
void CSL_CPGMAC_SL_enableRxFlowControl | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableRxFlowControl
Description
This function configures the MAC control register to enable receive flow control for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_RX_FLOW_EN=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableRxFlowControl (portNum);
void CSL_CPGMAC_SL_disableRxFlowControl | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableRxFlowControl
Description
This function configures the MAC control register to disable Receive flow control mode for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_RX_FLOW_EN=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableRxFlowControl (portNum);
Uint32 CSL_CPGMAC_SL_isTxFlowControlEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isTxFlowControlEnabled
Description
This function indicates if transmit flow control is enabled in the MAC control register for the MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Transmit flow control enabled
FALSE Transmit flow control disabled
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_TX_FLOW_EN
Example
* Uint32 portNum = 1; if (CSL_CPGMAC_SL_isTxFlowControlEnabled (portNum) == TRUE) { // tx flow control enabled } else { // tx flow control disabled }
void CSL_CPGMAC_SL_enableTxFlowControl | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableTxFlowControl
Description
This function configures the MAC control register to enable transmit flow control for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_TX_FLOW_EN=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableTxFlowControl (portNum);
void CSL_CPGMAC_SL_disableTxFlowControl | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableTxFlowControl
Description
This function configures the MAC control register to disable Transmit flow control for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_TX_FLOW_EN=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableTxFlowControl (portNum);
Uint32 CSL_CPGMAC_SL_isGMIIEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isGMIIEnabled
Description
This function indicates if GMII is enabled in the MAC control register for the MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE GMII enabled
FALSE GMII disabled
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_GMII_EN
Example
* Uint32 portNum = 1; if (CSL_CPGMAC_SL_isGMIIEnabled (portNum) == TRUE) { // gmii enabled } else { // gmii disabled }
void CSL_CPGMAC_SL_enableGMII | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableGMII
Description
This function configures the MAC control register to enable GMII for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_GMII_EN=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableGMII (portNum);
void CSL_CPGMAC_SL_disableGMII | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableGMII
Description
This function configures the MAC control register to disable GMII for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_GMII_EN=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableGMII (portNum);
Uint32 CSL_CPGMAC_SL_isTxPaceEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isTxPaceEnabled
Description
This function indicates if transmit pacing is enabled in the MAC control register for the MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Transmit pacing enabled
FALSE Transmit pacing disabled
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_TX_PACE
Example
* Uint32 portNum = 1; if (CSL_CPGMAC_SL_isTxPaceEnabled (portNum) == TRUE) { // tx pacing enabled } else { // tx pacing disabled }
void CSL_CPGMAC_SL_enableTxPace | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableTxPace
Description
This function configures the MAC control register to enable transmit pacing for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_TX_PACE=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableTxPace (portNum);
void CSL_CPGMAC_SL_disableTxPace | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableTxPace
Description
This function configures the MAC control register to disable transmit pacing for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_TX_PACE=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableTxPace (portNum);
Uint32 CSL_CPGMAC_SL_isGigabitEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isGigabitEnabled
Description
This function indicates if Gigabit mode is enabled in the MAC control register for the MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Gigabit mode enabled
FALSE Gigabit disabled. 10/100 mode enabled.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_GIG
Example
* Uint32 portNum = 1; if (CSL_CPGMAC_SL_isGigabitEnabled (portNum) == TRUE) { // gig enabled } else { // gig disabled }
void CSL_CPGMAC_SL_enableGigabit | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableGigabit
Description
This function configures the MAC control register to enable Gigabit mode (full duplex only) for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_GIG=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableGigabit (portNum);
void CSL_CPGMAC_SL_disableGigabit | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableGigabit
Description
This function configures the MAC control register to disable Gigabit mode for MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_GIG=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableGigabit (portNum);
Uint32 CSL_CPGMAC_SL_isTxShortGapEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isTxShortGapEnabled
Description
This function indicates if Transmit short gap is enabled in the MAC control register for the MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Transmit short gap with a short IPG enabled
FALSE Transmit short gap disabled.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_TX_SHORT_GAP_ENABLE
Example
* Uint32 portNum = 1; if (CSL_CPGMAC_SL_isTxShortGapEnabled (portNum) == TRUE) { // Tx short gap enabled } else { // Tx short gap disabled }
void CSL_CPGMAC_SL_enableTxShortGap | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableTxShortGap
Description
This function configures the MAC control register to enable transmit short gap for MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_TX_SHORT_GAP_ENABLE=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableTxShortGap (portNum);
void CSL_CPGMAC_SL_disableTxShortGap | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableTxShortGap
Description
This function configures the MAC control register to disable transmit short gap for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_TX_SHORT_GAP_ENABLE=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableTxShortGap (portNum);
Uint32 CSL_CPGMAC_SL_isIdleModeEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isIdleModeEnabled
Description
This function indicates if Idle mode is enabled in the MAC control register for MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Idle mode enabled
FALSE Idle mode disabled.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_CMD_IDLE
Example
* Uint32 portNum = 1; if (CSL_CPGMAC_SL_isTxShortGapEnabled (portNum) == TRUE) { // idle mode enabled } else { // idle mode disabled }
void CSL_CPGMAC_SL_enableIdleMode | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableIdleMode
Description
This function configures the MAC control register to enable Idle mode for MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_CMD_IDLE=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableIdleMode (portNum);
void CSL_CPGMAC_SL_disableIdleMode | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableIdleMode
Description
This function configures the MAC control register to disable Idle mode for MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_CMD_IDLE=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableIdleMode (portNum);
Uint32 CSL_CPGMAC_SL_isCastagnoliCRCEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isCastagnoliCRCEnabled
Description
This function indicates if Castagnoli CRC is enabled in the MAC control register for MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Castagnoli CRC enabled
FALSE Castagnoli CRC disabled.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_CRC_TYPE
Example
* Uint32 portNum = 1; if (CSL_CPGMAC_SL_isTxShortGapEnabled (portNum) == TRUE) { // idle mode enabled } else { // idle mode disabled }
void CSL_CPGMAC_SL_enableCastagnoliCRC | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableCastagnoliCRC
Description
This function configures the MAC control register to enable Castagnoli CRC for MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_CRC_TYPE=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableCastagnoliCRC (portNum);
void CSL_CPGMAC_SL_disableCastagnoliCRC | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableCastagnoliCRC
Description
This function configures the MAC control register to disable Castagnoli CRC for MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_CRC_TYPE=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableCastagnoliCRC (portNum);
Uint32 CSL_CPGMAC_SL_isIFCTLAEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isIFCTLAEnabled
Description
This function indicates if IFCTL_A bit is set in the MAC control register for MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE IFCTL_A bit in MAC control register is set to 1.
FALSE IFCTL_A bit in MAC control register reads 0.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_IFCTL_A
Example
* Uint32 portNum = 1; if (CSL_CPGMAC_SL_isIFCTLAEnabled (portNum) == TRUE) { // IFCTL_A bit set } else { // IFCTL_A bit cleared }
void CSL_CPGMAC_SL_enableIFCTLA | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableIFCTLA
Description
This function enables the IFCTL_A bit in the MAC control register for MAC port number specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_IFCTL_A=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableIFCTLA (portNum);
void CSL_CPGMAC_SL_disableIFCTLA | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableIFCTLA
Description
This function configures the MAC control register to clear the IFCTL_A bit for MAC port number specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_IFCTL_A=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableIFCTLA (portNum);
Uint32 CSL_CPGMAC_SL_isIFCTLBEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isIFCTLBEnabled
Description
This function indicates if IFCTL_B bit is set in the MAC control register for the MAC port number specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE IFCTL_B bit in MAC control register is set to 1.
FALSE IFCTL_B bit in MAC control register reads 0.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_IFCTL_B
Example
Uint32 portNum = 1; if (CSL_CPGMAC_SL_isIFCTLBEnabled (portNum) == TRUE) { // IFCTL_B bit set } else { // IFCTL_B bit cleared }
void CSL_CPGMAC_SL_enableIFCTLB | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableIFCTLB
Description
This function enables the IFCTL_B bit in the MAC control register for the MAC port number specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_IFCTL_B=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableIFCTLB (portNum);
void CSL_CPGMAC_SL_disableIFCTLB | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableIFCTLB
Description
This function configures the MAC control register to clear the IFCTL_B bit for the MAC port number specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_IFCTL_B=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableIFCTLB (portNum);
Uint32 CSL_CPGMAC_SL_isGigForceModeEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isGigForceModeEnabled
Description
This function indicates if Gigabit mode force bit is enabled in the MAC control register for the MAC port number specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Gigabit mode force enabled.
FALSE Gigabit mode force disabled.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_GIG_FORCE
Example
Uint32 portNum = 1; if (CSL_CPGMAC_SL_isGigForceModeEnabled (portNum) == TRUE) { // gig mode force enabled } else { // gig mode force disabled }
void CSL_CPGMAC_SL_enableGigForceMode | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableGigForceMode
Description
This function configures the MAC control register to enable Gigabit force mode for the MAC port number specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_GIG_FORCE=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableGigForceMode (portNum);
void CSL_CPGMAC_SL_disableGigForceMode | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableGigForceMode
Description
This function configures the MAC control register to disable Gigabit force mode for the MAC port number specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_GIG_FORCE=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableGigForceMode (portNum);
Uint32 CSL_CPGMAC_SL_isExtControlEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isExtControlEnabled
Description
This function indicates if EXT_EN bit is enabled in the MAC control register for the MAC port specified. When this bit is set to 1, the Gigabit and Full duplex mode input is taken from an external source and not from the settings configured in this register.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE External control mode enabled.
FALSE External control mode disabled.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_EXT_EN
Example
* Uint32 portNum = 1; if (CSL_CPGMAC_SL_isExtControlEnabled (portNum) == TRUE) { // external control mode enabled } else { // external control mode disabled }
void CSL_CPGMAC_SL_enableExtControl | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableExtControl
Description
This function configures the MAC control register to enable external control of the Gigabit and full duplex mode settings.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_EXT_EN=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableExtControl (portNum);
void CSL_CPGMAC_SL_disableExtControl | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableExtControl
Description
This function configures the MAC control register to disable external control of the Gigabit and full duplex settings.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_EXT_EN=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableExtControl (portNum);
Uint32 CSL_CPGMAC_SL_isExtRxFlowEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isExtRxFlowEnabled
Description
This function indicates if EXT_RX_FLOW_EN bit is enabled in the MAC control register for the MAC port specified. When this bit is set to 1, the Rx Flow control enable input is taken from an external source and not from the rx_flow_en setting configured in this register.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE External Receive Flow control mode enabled.
FALSE External Receive Flow control mode disabled.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_EXT_RX_FLOW_EN
Example
* Uint32 portNum = 0; if (CSL_CPGMAC_SL_isExtRxFlowEnabled (portNum) == TRUE) { // external control mode enabled } else { // external control mode disabled }
void CSL_CPGMAC_SL_enableExtRxFlow | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableExtRxFlow
Description
This function configures the MAC control register to enable external control of the Receive Flow Control settings.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_EXT_RX_FLOW_EN=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableExtRxFlow (portNum);
void CSL_CPGMAC_SL_disableExtRxFlow | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableExtRxFlow
Description
This function configures the MAC control register to disable external control of the Receive Flow Control settings.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_EXT_RX_FLOW_EN=0
Example
Uint32 portNum = 0; CSL_CPGMAC_SL_disableExtRxFlow (portNum);
Uint32 CSL_CPGMAC_SL_isExtTxFlowEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isExtTxFlowEnabled
Description
This function indicates if EXT_TX_FLOW_EN bit is enabled in the MAC control register for the MAC port specified. When this bit is set to 1, the Tx Flow control enable input is taken from an external source and not from the rx_flow_en setting configured in this register.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE External Transmit Flow control mode enabled.
FALSE External Transmit Flow control mode disabled.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_EXT_TX_FLOW_EN
Example
* Uint32 portNum = 0; if (CSL_CPGMAC_SL_isExtTxFlowEnabled (portNum) == TRUE) { // external control mode enabled } else { // external control mode disabled }
void CSL_CPGMAC_SL_enableExtTxFlow | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableExtTxFlow
Description
This function configures the MAC control register to enable external control of the Transmit Flow Control settings.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_EXT_TX_FLOW_EN=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableExtTxFlow (portNum);
void CSL_CPGMAC_SL_disableExtTxFlow | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableExtTxFlow
Description
This function configures the MAC control register to disable external control of the Transmit Flow Control settings.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_EXT_TX_FLOW_EN=0
Example
Uint32 portNum = 0; CSL_CPGMAC_SL_disableExtTxFlow (portNum);
Uint32 CSL_CPGMAC_SL_isRxCEFEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isRxCEFEnabled
Description
This function indicates if MAC control register is programmed to copy frames containing errors to its memory.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Copy Error frames mode enabled. Error frames will be transferred to memory.
FALSE Copy Error frames mode disabled. Error frames will be filtered.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_RX_CEF_EN
Example
* Uint32 portNum = 1; if (CSL_CPGMAC_SL_isRxCEFEnabled (portNum) == TRUE) { // Rx CEF enabled } else { // Rx CEF disabled }
void CSL_CPGMAC_SL_enableRxCEF | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableRxCEF
Description
This function configures the MAC control register to enable transfer of frames containing errors.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_RX_CEF_EN=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableRxCEF (portNum);
void CSL_CPGMAC_SL_disableRxCEF | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableRxCEF
Description
This function configures the MAC control register to disable any error frames being transferred to the memory.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_RX_CEF_EN=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableRxCEF (portNum);
Uint32 CSL_CPGMAC_SL_isRxCSFEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isRxCSFEnabled
Description
This function indicates if MAC control register is programmed to copy short frames (frames shorter than 64 bytes) to its memory.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Copy Short frames mode enabled. Short frames will be transferred to memory.
FALSE Copy Short frames mode disabled. Short frames will be filtered.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_RX_CSF_EN
Example
Uint32 portNum = 1; if (CSL_CPGMAC_SL_isRxCSFEnabled (portNum) == TRUE) { // Rx CSF enabled } else { // Rx CSF disabled }
void CSL_CPGMAC_SL_enableRxCSF | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableRxCSF
Description
This function configures the MAC control register to enable transfer of frames that are shorter than 64 bytes.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_RX_CSF_EN=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableRxCSF (portNum);
void CSL_CPGMAC_SL_disableRxCSF | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableRxCSF
Description
This function configures the MAC control register to disable any short frames being transferred to the memory.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_RX_CSF_EN=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableRxCSF (portNum);
Uint32 CSL_CPGMAC_SL_isRxCMFEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isRxCMFEnabled
Description
This function indicates if MAC control register is programmed to copy MAC Control Frames to its memory.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Copy MAC control frames mode enabled. MAC control frames will be transferred to memory.
FALSE Copy MAC control frames mode disabled. MAC control frames will be filtered.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_CONTROL_REG_RX_CMF_EN
Example
Uint32 portNum = 1; if (CSL_CPGMAC_SL_isRxCMFEnabled (portNum) == TRUE) { // Rx CMF enabled } else { // Rx CMF disabled }
void CSL_CPGMAC_SL_enableRxCMF | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableRxCMF
Description
This function configures the MAC control register to enable transfer of MAC control frames.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_RX_CMF_EN=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_enableRxCMF (portNum);
void CSL_CPGMAC_SL_disableRxCMF | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableRxCMF
Description
This function configures the MAC control register to disable any MAC control frames being transferred to the memory.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_CONTROL_REG_RX_CMF_EN=0
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_disableRxCMF (portNum);
Uint32 CSL_CPGMAC_SL_getMacControlReg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_getMacControlReg
Description
This function retrieves the contents of MAC control register in entirety.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
>=0 MAC control register contents.
Pre Condition
None
Post Condition
None
Reads
CPGMAC_SL_MACCONTROL_REG
Example
Uint32 macControlVal, portNum = 1; macControlVal = CSL_CPGMAC_SL_getMacControlReg (portNum);
void CSL_CPGMAC_SL_setMacControlReg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
Uint32 | macControlRegVal | ||
) |
============================================================================
CSL_CPGMAC_SL_setMacControlReg
Description
This function configures the contents of MAC control register in entirety.
Arguments
portNum MAC port number for which the reset must be performed. macControlRegVal value to be configured to the MAC control register. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
CPGMAC_SL_MACCONTROL_REG
Example
Uint32 macControlVal, portNum = 1; macControlVal = CSL_CPGMAC_SL_getMacControlReg (); // Enable full duplex, giagbit mode too macControlVal |= CSL_CPGMAC_SL_MACCONTROL_FULLDUPLEX_EN | CSL_CPGMAC_SL_MACCONTROL_GMII_EN; CSL_CPGMAC_SL_setMacControlReg (macControlVal, portNum);
void CSL_CPGMAC_SL_getMacStatusReg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
CSL_CPGMAC_SL_MACSTATUS * | pMacStatus | ||
) |
============================================================================
CSL_CPGMAC_SL_getMacStatusReg
Description
This function retrieves the contents of MAC status register.
Arguments
portNum MAC port number for which the API must retrieve the settings. pMacStatus CSL_CPGMAC_SL_MACSTATUS structure to be populated with the contents of MAC status register. *
Return Value
None
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_STATUS_REG_TX_FLOW_ACT, XGE_CPSW_PN_MAC_STATUS_REG_RX_FLOW_ACT, XGE_CPSW_PN_MAC_STATUS_REG_EXT_FULLDUPLEX, XGE_CPSW_PN_MAC_STATUS_REG_EXT_GIG, XGE_CPSW_PN_MAC_STATUS_REG_EXT_TX_FLOW_EN, XGE_CPSW_PN_MAC_STATUS_REG_EXT_TX_FLOW_EN, XGE_CPSW_PN_MAC_STATUS_REG_IDLE
Example
CSL_CPGMAC_SL_MACSTATUS macStatus; Uint32 portNum = 1; CSL_CPGMAC_SL_getMacStatusReg (portNum, &macStatus);
void CSL_CPGMAC_SL_resetMac | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_resetMac
Description
This function issues a software reset to the MAC for the MAC port number specified.
Arguments
portNum MAC port number for which the reset must be performed. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_SOFT_RESET_REG_SOFT_RESET=1
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_resetMac (portNum);
Uint32 CSL_CPGMAC_SL_isMACResetDone | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isMACResetDone
Description
This function reads the MAC Soft Reset register to check if the software reset operation has completed.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE MAC Soft reset done.
FALSE MAC Soft reset not yet completed.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_SOFT_RESET_REG_SOFT_RESET
Example
Uint32 portNum = 1; CSL_CPGMAC_SL_resetMac (portNum); // Wait until MAC software reset completes while (!CSL_CPGMAC_SL_isMACResetDone (portNum));
Uint32 CSL_CPGMAC_SL_getRxMaxLen | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_getRxMaxLen
Description
This function retrieves the Receive maximum frame length configured in Receive Maximum length register for the MAC port number specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
>=0 Receive maximum frame length read.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_RX_MAXLEN_REG_RX_MAXLEN
Example
Uint32 mtu, portNum = 1; mtu = CSL_CPGMAC_SL_getRxMaxLen (portNum);
Uint32 CSL_CPGMAC_SL_setRxMaxLen | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
Uint32 | rxMaxLen | ||
) |
============================================================================
CSL_CPGMAC_SL_setRxMaxLen
Description
This function sets up the Receive maximum frame length in Receive Maximum Length register for the MAC port number specified.
Arguments
portNum MAC port number for which the settings must be configured. rxMaxLen the Receive maximum frame length to be configered into the Receive Maximum Length register *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_RX_MAXLEN_REG_RX_MAXLEN
Example
Uint32 mtu, portNum = 1; mtu = 1518; CSL_CPGMAC_SL_setRxMaxLen (portNum, mtu);
Uint32 CSL_CPGMAC_SL_getTxGap | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_getTxGap
Description
This function retrieves the Transmit inter-packet gap configured in Transmit Gap register for the MAC port number specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
>=0 Transmit inter-packet gap read.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_TX_GAP_REG_TX_GAP
Example
Uint32 txGap, portNum = 0; txGap = CSL_CPGMAC_SL_getTxGap (portNum);
Uint32 CSL_CPGMAC_SL_setTxGap | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
Uint32 | txGap | ||
) |
============================================================================
CSL_CPGMAC_SL_setTxGap
Description
This function sets up the Transmit inter-packet gap in Transmit Gap register for the MAC port number specified.
Arguments
portNum MAC port number for which the settings must be configured. txGap Transmit inter-packet gap to be configured into the Tx Gap register *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_TX_GAP_REG_TX_GAP
Example
Uint32 txGap, portNum = 1; txGap = 100; CSL_CPGMAC_SL_setTxGap (portNum, txGap);
Uint32 CSL_CPGMAC_SL_getRxPauseTimerReg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_getRxPauseTimerReg
Description
This function retrieves the Receive pause timer value configured in Receive pause timer register for the MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
>=0 Receive pause timer value read.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_RX_PAUSETIMER_REG_RX_PAUSETIMER
Example
Uint32 rxPauseTimer, portNum = 1; rxPauseTimer = CSL_CPGMAC_SL_getRxPauseTimerReg (portNum);
Uint32 CSL_CPGMAC_SL_setRxPauseTimerReg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
Uint32 | rxPauseTimer | ||
) |
============================================================================
CSL_CPGMAC_SL_setRxPauseTimerReg
Description
This function sets up the Receive pause timer value in Receive pause timer register for the MAC port specified.
Arguments
portNum MAC port number for which the settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_RX_PAUSETIMER_REG_RX_PAUSETIMER
Example
Uint32 rxPauseTimer = 2, portNum = 1; CSL_CPGMAC_SL_setRxPauseTimerReg (portNum, rxPauseTimer);
Uint32 CSL_CPGMAC_SL_getTxPauseTimerReg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_getTxPauseTimerReg
Description
This function retrieves the Transmit pause timer value configured in Transmit pause timer register for the MAC port specified.
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
>=0 Transmit pause timer value read.
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_TX_PAUSETIMER_REG_TX_PAUSETIMER
Example
Uint32 txPauseTimer, portNum = 1; txPauseTimer = CSL_CPGMAC_SL_getTxPauseTimerReg (portNum);
Uint32 CSL_CPGMAC_SL_setTxPauseTimerReg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
Uint32 | txPauseTimer | ||
) |
============================================================================
CSL_CPGMAC_SL_setTxPauseTimerReg
Description
This function sets up the Transmit pause timer value in Transmit pause timer register for the MAC port number specified.
Arguments
portNum MAC port number for which the settings must be configured. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_MAC_TX_PAUSETIMER_REG_TX_PAUSETIMER
Example
Uint32 txPauseTimer = 2, portNum = 1; CSL_CPGMAC_SL_setTxPauseTimerReg (portNum, txPauseTimer);
void CSL_CPGMAC_SL_getEmulControlReg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
Uint32 * | pEmulFreeBit, | ||
Uint32 * | pEmulSoftBit | ||
) |
============================================================================
CSL_CPGMAC_SL_getEmulControlReg
Description
This function retrieves the contents of Emulation control register for the MAC port number specified.
Arguments
portNum MAC port number for which the API should retrieve emulation settings for. pEmulFreeBit Emulation free bit. pEmulSoftBit Emulation soft bit. *
Return Value
None
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_EMCONTROL_REG_FREE, XGE_CPSW_PN_MAC_EMCONTROL_REG_SOFT
Example
Uint32 emulSoftBit, emulFreeBit, portNum = 1; CSL_CPGMAC_SL_getEmulControlReg (portNum, &emulFreeBit, &emulSoftBit);
void CSL_CPGMAC_SL_setEmulControlReg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
Uint32 | emulFreeBit, | ||
Uint32 | emulSoftBit | ||
) |
============================================================================
CSL_CPGMAC_SL_setEmulControlReg
Description
This function sets up the contents of Emulation control register for the MAC port specified.
Arguments
portNum MAC port for which the settings must be configured. emulFreeBit Emulation free bit. emulSoftBit Emulation soft bit. *
Return Value
None
Pre Condition
None
Post Condition
None
Reads
XGE_CPSW_PN_MAC_EMCONTROL_REG_FREE, XGE_CPSW_PN_MAC_EMCONTROL_REG_SOFT
Example
Uint32 emulSoftBit, emulFreeBit, portNum = 1; emulFreeBit = 1; emulSoftBit = 0; CSL_CPGMAC_SL_setEmulControlReg (portNum, emulFreeBit, emulSoftBit);
void CSL_CPGMAC_SL_getMacRxPriMapReg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
Uint32 * | pMacRxPriMap | ||
) |
============================================================================
CSL_CPGMAC_SL_getMacRxPriMapReg
Description
This function retrieves the contents of the MAC Receive Packet Priority to Header Priority Mapping Register for the MAC port specified.
Arguments
portNum MAC port number for which the API should retrieve settings for. pMacRxPriMap Array of MAC Rx packet priority map priority values read from the register. *
Return Value
None
Pre Condition
The input parameter 'pMacRxPriMap' must be large enough to hold all the 8 priority values read from the register.
Post Condition
None
Reads
XGE_CPSW_PN_RX_PRI_MAP_REG_PRI0, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI1, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI2, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI3, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI4, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI5, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI6, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI7
Example
* Uint32 pPortRxPriMap [8], portNum = 1; CSL_CPGMAC_SL_getMacRxPriMapReg (portNum, pPortRxPriMap);
void CSL_CPGMAC_SL_setMacRxPriMapReg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
Uint32 * | pMacRxPriMap | ||
) |
============================================================================
CSL_CPGMAC_SL_setMacRxPriMapReg
Description
This function sets up the contents of the MAC Receive Packet Priority to Header Priority Mapping Register for the MAC port specified.
Arguments
portNum MAC port for which the settings must be configured. pMacRxPriMap Array of MAC Rx priority map priority values that must be configured to the register. *
Return Value
None
Pre Condition
None
Post Condition
None
Writes
XGE_CPSW_PN_RX_PRI_MAP_REG_PRI0, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI1, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI2, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI3, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI4, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI5, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI6, XGE_CPSW_PN_RX_PRI_MAP_REG_PRI7
Example
* Uint32 i, pMacRxPriMap [8], portNum = 1; for (i = 0; i < 8; i ++) pMacRxPriMap [i] = i; CSL_CPGMAC_SL_setMacRxPriMapReg (portNum, pMacRxPriMap);
void CSL_CPGMAC_SL_clearMacStatusTorf | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_clearMacStatusTorf
Description
This function clears Top of receive FIFO flow control trigger bit in PN_MAC_STATUS register
Arguments
portNum MAC port number *
Return Value
None
Pre Condition
None
Post Condition
None
void CSL_CPGMAC_SL_clearMacStatusTorfPri | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_clearMacStatusTorf
Description
This function clears Top of receive FIFO flow control Priority field in PN_MAC_STATUS register
Arguments
portNum MAC port number *
Return Value
None
Pre Condition
None
Post Condition
None
void CSL_CPGMAC_SL_getInterVLANCfg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
Uint32 | routeIndex, | ||
CSL_CPSW_INTERVLANCFG * | pInterVLANCfg | ||
) |
============================================================================
CSL_CPGMAC_SL_getInterVLANCfg
Description
This function gets the intervlan configuration for the given port and route index
Arguments
* portNum Port number for which the intervlan configuration is queried * routeIndex Intervlan route index.Valid pointer locations are 1 to x * (where x is the number of locations - pointer location zero * is unused). * pInterVLANCfg Intervlan configuration structure to be populated *
Return Value
none
void CSL_CPGMAC_SL_setInterVLANCfg | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
Uint32 | routeIndex, | ||
CSL_CPSW_INTERVLANCFG * | pInterVLANCfg | ||
) |
============================================================================
CSL_CPGMAC_SL_setInterVLANCfg
Description
This function sets the intervlan configuration for the given port and route index
Arguments
* portNum Port number for which the intervlan configuration is queried * routeIndex Intervlan route index.Valid pointer locations are 1 to x * (where x is the number of locations - pointer location zero * is unused). * pInterVLANCfg Intervlan configuration structure to be set *
Return Value
none
void CSL_CPGMAC_SL_getFifoStatus | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum, | ||
CSL_CPGMAC_SL_FIFOSTATUS * | pFifoStatus | ||
) |
============================================================================
CSL_CPGMAC_SL_getFifoStatus
Description
This function gets the Enet_Pn_FIFO_Status register contents
Arguments
* portNum Port number for which the intervlan configuration is queried * pFifoStatus Fifo status structure to be populated *
Return Value
none
Uint32 CSL_CPGMAC_SL_isTxShortGapLimitEnabled | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_isTxShortGapLimitEnabled
Description
This function indicates if Transmit short gap limit is enabled in the MAC control register for the MAC port specified. When set this bit limits the number of short gap packets transmitted to 100ppm. Each time a short gap packet is sent, a counter is loaded with 10,000 and decremented on each wireside clock. Another short gap packet will not be sent out until the counter decrements to zero. This mode is included to preclude the host from filling up the FIFO and sending every packet out with short gap which would violate the maximum number of packets per second allowed. This bit is used only with GMII (not XGMII).
Arguments
portNum MAC port number for which the API must retrieve the settings. *
Return Value
TRUE Transmit short gap limit with a short IPG enabled
FALSE Transmit short gap limit disabled.
void CSL_CPGMAC_SL_enableTxShortGapLimit | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_enableTxShortGap
Description
This function configures the MAC control register to enable transmit short gap limiting for MAC port specified. When set this bit limits the number of short gap packets transmitted to 100ppm. Each time a short gap packet is sent, a counter is loaded with 10,000 and decremented on each wireside clock. Another short gap packet will not be sent out until the counter decrements to zero. This mode is included to preclude the host from filling up the FIFO and sending every packet out with short gap which would violate the maximum number of packets per second allowed. This bit is used only with GMII (not XGMII).
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None
void CSL_CPGMAC_SL_disableTxShortGapLimit | ( | CSL_Xge_cpswRegs * | hCpswRegs, |
Uint32 | portNum | ||
) |
============================================================================
CSL_CPGMAC_SL_disableTxShortGapLimit
Description
This function configures the MAC control register to disable transmit short gap limit for the MAC port specified.
Arguments
portNum MAC port number for which settings must be configured. *
Return Value
None