PDK API Guide for AM64x
csl_cpsw_ss.h File Reference

Introduction

API Auxilary header file for Ethernet switch subsystem CSL.

Contains the different control command and status query functions definations



(C) Copyright 2014, Texas Instruments, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Go to the source code of this file.

Data Structures

struct  CSL_CPSW_SS_VERSION
 Holds the Ethernet switch subsystem's version info. More...
 
struct  CSL_CPSW_SS_INTD_VERSION
 Holds the CPSW_SS INTD version info. More...
 
struct  CSL_CPSW_SS_INTD_INTRSTATUS
 Holds the CPSW_SS INTD interrupt status info. More...
 
struct  CSL_CPSW_SS_RGMIISTATUS
 Holds the CPSW_SS RGMII STATUS. More...
 

Enumerations

enum  CSL_SGMII_MODE { CSL_SGMII_MODE_FIBER = 0, CSL_SGMII_MODE_SGMII = 1 }
 SGMII Mode enumerators. More...
 

Functions

void CSL_CPSW_SS_getVersionInfo (CSL_Xge_cpsw_ss_sRegs *hCpswSsRegs, CSL_CPSW_SS_VERSION *versionInfo)
 
void CSL_CPSW_SS_INTD_getVersionInfo (CSL_cpswRegs_INTD *hCpswIntDRegs, CSL_CPSW_SS_INTD_VERSION *versionInfo)
 
Uint32 CSL_CPSW_SS_INTD_getEOIVector (CSL_cpswRegs_INTD *hCpswIntDRegs)
 
void CSL_CPSW_SS_INTD_setEOIVector (CSL_cpswRegs_INTD *hCpswIntDRegs, Uint32 eoiVector)
 
Uint32 CSL_CPSW_SS_INTD_getEOIIntrVector (CSL_cpswRegs_INTD *hCpswIntDRegs)
 
Uint32 CSL_CPSW_SS_INTD_getIntrVectorOutPulse (CSL_cpswRegs_INTD *hCpswIntDRegs)
 
void CSL_CPSW_SS_INTD_setEnableIntrCPSWEventInterrupt (CSL_cpswRegs_INTD *hCpswIntDRegs, Uint32 enable)
 
Uint32 CSL_CPSW_SS_INTD_getEnableIntrCPSWEventInterrupt (CSL_cpswRegs_INTD *hCpswIntDRegs)
 
void CSL_CPSW_SS_INTD_setClearIntrCPSWEventInterrupt (CSL_cpswRegs_INTD *hCpswIntDRegs)
 
void CSL_CPSW_SS_INTD_getStatusIntr (CSL_cpswRegs_INTD *hCpswIntDRegs, CSL_CPSW_SS_INTD_INTRSTATUS *intrStatus)
 
void CSL_CPSW_SS_INTD_setEnableIntrMdioInterrupt (CSL_cpswRegs_INTD *hCpswIntDRegs, Uint32 enable)
 
Uint32 CSL_CPSW_SS_INTD_getEnableIntrMdioInterrupt (CSL_cpswRegs_INTD *hCpswIntDRegs)
 
void CSL_CPSW_SS_INTD_setClearIntrMdioInterrupt (CSL_cpswRegs_INTD *hCpswIntDRegs)
 
void CSL_CPSW_SS_INTD_setEnableIntrStatInterrupt (CSL_cpswRegs_INTD *hCpswIntDRegs, Uint32 enable)
 
Uint32 CSL_CPSW_SS_INTD_getEnableIntrStatInterrupt (CSL_cpswRegs_INTD *hCpswIntDRegs)
 
void CSL_CPSW_SS_INTD_setClearIntrStatInterrupt (CSL_cpswRegs_INTD *hCpswIntDRegs)
 
void CSL_CPSW_SS_setSGMIIMode (CSL_Xge_cpsw_ss_sRegs *hCpswSsRegs, Uint32 macPortNum, CSL_SGMII_MODE sgmiiModeId)
 
void CSL_CPSW_SS_getRGMIIStatus (CSL_Xge_cpsw_ss_sRegs *hCpswSsRegs, Uint32 macPortNum, CSL_CPSW_SS_RGMIISTATUS *pRgmiiStatus)
 
Uint32 CSL_CPSW_SS_getSerdesResetIsolation (CSL_Xge_cpsw_ss_sRegs *hCpswSsRegs)
 
void CSL_CPSW_SS_setSerdesResetIsolation (CSL_Xge_cpsw_ss_sRegs *hCpswSsRegs, Uint32 resetIso)
 
Uint32 CSL_CPSW_SS_getQSGMIIControlRdCd (CSL_Xge_cpsw_ss_sRegs *hCpswSsRegs, Uint32 qsgmiiId)
 
void CSL_CPSW_SS_setQSGMIIControlRdCd (CSL_Xge_cpsw_ss_sRegs *hCpswSsRegs, Uint32 qsgmiiId, Uint32 qsgmiiControlRdCd)
 
Uint32 CSL_CPSW_SS_getQSGMIIStatusRxSync (CSL_Xge_cpsw_ss_sRegs *hCpswSsRegs, Uint32 qsgmiiId)
 
Uint32 CSL_CPSW_SS_getXGMIILinkStatus (CSL_Xge_cpsw_ss_sRegs *hCpswSsRegs, Uint32 xgmiiId)
 
Uint32 CSL_CPSW_SS_getSGMIILinkStatus (CSL_Xge_cpsw_ss_sRegs *hCpswSsRegs, Uint32 sgmiiId)