/**
 * cpsw.h
 *
 *
 * Copyright (c) 2012 Texas Instruments Incorporated ALL RIGHTS RESERVED
 *
*/

#ifndef CPSW_PLFM_H_
#define CPSW_PLFM_H_

/* Prototypes for APIs 	*/
unsigned int CPSWSlMACControlGet(unsigned int baseAddr);
void CPSWSlMACControlSet(unsigned int baseAddr, unsigned int mode);
void CPSWSlIFCTLAEnable(unsigned int baseAddr);
void CPSWSlFullDuplexEnable(unsigned int baseAddr);
void CPSWALEAgeOutNow(unsigned int baseAddr);
void CPSWWrSetRxIntPerSec(unsigned int baseAddr, unsigned int core,
        unsigned int value);
 void CPSWWrSetIntPacingEnable(unsigned int baseAddr,
        unsigned int value);
void CPSWWrSetIntPrescaler(unsigned int baseAddr,
        unsigned int value);
unsigned int CPSWCPDMARxCPGet(unsigned int baseAddr, unsigned int channel);
unsigned int CPSWCPDMATxCPGet(unsigned int baseAddr, unsigned int channel);
void CPSWCPDMADMAIntEnable(unsigned int baseAddr, unsigned int value);
void CPSWCPDMADMAIntDisable(unsigned int baseAddr, unsigned int channel);
void CPSWWrCoreMiscIntEnable(unsigned int baseAddr, unsigned int core,
        unsigned int value);
void CPSWCPDMATxTeardown(unsigned int baseAddr, unsigned int channel);
void CPSWCPDMARxTeardown(unsigned int baseAddr, unsigned int channel);
void CPSWWrCoreMiscIntDisable(unsigned int baseAddr, unsigned int core,
                         unsigned int value);
void CPSWCPDMATxDisable(unsigned int baseAddr);
void CPSWCPDMARxDisable(unsigned int baseAddr);
void CPSWSTATSClear(unsigned int baseAddr, unsigned int val);
unsigned int CPSWSTATSRead(unsigned int baseAddr, unsigned int reg);
unsigned int CPSWCPDMAIntVectorGet(unsigned int baseAddr);
unsigned int CPSWALEPortStateGetAny(unsigned int baseAddr, unsigned int portNum);

#endif /* CPSW_PLFM_H_ */
