XilinxProcessorIPLib/drivers/vphy/src/xvphy.c
void XVphy_SetTxPostCursor(XVphy *InstancePtr, u8 QuadId, XVphy_ChannelId ChId,
		u8 Pc)
{
	u32 RegVal;
	u32 MaskVal;
	u32 RegOffset;

	/* Suppress Warning Messages */
	QuadId = QuadId;

	if ((ChId == XVPHY_CHANNEL_ID_CH1) || (ChId == XVPHY_CHANNEL_ID_CH2)) {
		RegOffset = XVPHY_TX_DRIVER_CH12_REG;
	}
	else {
		RegOffset = XVPHY_TX_DRIVER_CH34_REG;
	}
	RegVal = XVphy_ReadReg(InstancePtr->Config.BaseAddr, RegOffset);

	MaskVal = XVPHY_TX_DRIVER_TXPOSTCURSOR_MASK(ChId);
	RegVal &= ~MaskVal;
	RegVal |= (Pc << XVPHY_TX_DRIVER_TXPOSTCURSOR_SHIFT(ChId));
	XVphy_WriteReg(InstancePtr->Config.BaseAddr, RegOffset, RegVal);
}
/*****************************************************************************/
/**
* This function will set the TX post-curosr value for a given channel.
*
* @param	InstancePtr is a pointer to the XVphy core instance.
* @param	QuadId is the GT quad ID to operate on.
* @param	ChId is the channel ID to operate on.
* @param	Pe is the pre-emphasis value to write.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function will set the TX post-curosr value for a given channel.
This function will set the TX post - curosr value for a given channel .
void XVphy_SetTxPostCursor(XVphy *InstancePtr, u8 QuadId, XVphy_ChannelId ChId,
		u8 Pc)
{
	u32 RegVal;
	u32 MaskVal;
	u32 RegOffset;
	QuadId = QuadId;
	if ((ChId == XVPHY_CHANNEL_ID_CH1) || (ChId == XVPHY_CHANNEL_ID_CH2)) {
		RegOffset = XVPHY_TX_DRIVER_CH12_REG;
	}
	else {
		RegOffset = XVPHY_TX_DRIVER_CH34_REG;
	}
	RegVal = XVphy_ReadReg(InstancePtr->Config.BaseAddr, RegOffset);
	MaskVal = XVPHY_TX_DRIVER_TXPOSTCURSOR_MASK(ChId);
	RegVal &= ~MaskVal;
	RegVal |= (Pc << XVPHY_TX_DRIVER_TXPOSTCURSOR_SHIFT(ChId));
	XVphy_WriteReg(InstancePtr->Config.BaseAddr, RegOffset, RegVal);
}
void XVphy_SetTxPostCursor ( XVphy * InstancePtr , u8 QuadId , XVphy_ChannelId ChId , u8 Pc ) { u32 RegVal ; u32 MaskVal ; u32 RegOffset ; QuadId = QuadId ; if ( ( ChId == XVPHY_CHANNEL_ID_CH1 ) || ( ChId == XVPHY_CHANNEL_ID_CH2 ) ) { RegOffset = XVPHY_TX_DRIVER_CH12_REG ; } else { RegOffset = XVPHY_TX_DRIVER_CH34_REG ; } RegVal = XVphy_ReadReg ( InstancePtr -> Config . BaseAddr , RegOffset ) ; MaskVal = XVPHY_TX_DRIVER_TXPOSTCURSOR_MASK ( ChId ) ; RegVal &= ~ MaskVal ; RegVal |= ( Pc << XVPHY_TX_DRIVER_TXPOSTCURSOR_SHIFT ( ChId ) ) ; XVphy_WriteReg ( InstancePtr -> Config . BaseAddr , RegOffset , RegVal ) ; }
This function will set the TX post-curosr value for a given channel.
This function will set the TX post - curosr value for a given channel .
/* Suppress Warning Messages */