XilinxProcessorIPLib/drivers/dppsu/src/xdppsu_serdes.c
static void XDpPsu_SetSerdesVswingPreemp(XDpPsu *InstancePtr)
{
	u8  VsLevelRx = InstancePtr->LinkConfig.VsLevel;
	u8  PeLevelRx = InstancePtr->LinkConfig.PeLevel;
	u8  Index;

	for (Index = 0; Index < InstancePtr->LinkConfig.LaneCount; Index++) {
		/* Write new voltage swing levels to the TX registers. */
		XDpPsu_WriteReg(SERDES_BASEADDR,
			SERDES_L0_TX_MARGININGF + Index * SERDES_LANE_OFFSET,
			vs[PeLevelRx][VsLevelRx]);

		/* Write new pre-emphasis levels to the TX registers. */
		XDpPsu_WriteReg(SERDES_BASEADDR,
			SERDES_L0_TX_DEEMPHASIS + Index * SERDES_LANE_OFFSET,
			pe[PeLevelRx][VsLevelRx]);
	}
}
/******************************************************************************/
/**
 * This function sets current voltage swing and pre-emphasis level settings from
 * the LinkConfig structure to hardware.
 *
 * @param	InstancePtr is a pointer to the XDpPsu instance.
 *
 * @return	None.
 *
 * @note	None.
*******************************************************************************/
This function sets current voltage swing and pre-emphasis level settings from
the LinkConfig structure to hardware.

@param       InstancePtr is a pointer to the XDpPsu instance.

@return      None.

@note        None.
This function sets current voltage swing and pre - emphasis level settings from the LinkConfig structure to hardware . @param InstancePtr is a pointer to the XDpPsu instance . @return None . @note None .
static void XDpPsu_SetSerdesVswingPreemp(XDpPsu *InstancePtr)
{
	u8  VsLevelRx = InstancePtr->LinkConfig.VsLevel;
	u8  PeLevelRx = InstancePtr->LinkConfig.PeLevel;
	u8  Index;
	for (Index = 0; Index < InstancePtr->LinkConfig.LaneCount; Index++) {
		XDpPsu_WriteReg(SERDES_BASEADDR,
			SERDES_L0_TX_MARGININGF + Index * SERDES_LANE_OFFSET,
			vs[PeLevelRx][VsLevelRx]);
		XDpPsu_WriteReg(SERDES_BASEADDR,
			SERDES_L0_TX_DEEMPHASIS + Index * SERDES_LANE_OFFSET,
			pe[PeLevelRx][VsLevelRx]);
	}
}
static void XDpPsu_SetSerdesVswingPreemp ( XDpPsu * InstancePtr ) { u8 VsLevelRx = InstancePtr -> LinkConfig . VsLevel ; u8 PeLevelRx = InstancePtr -> LinkConfig . PeLevel ; u8 Index ; for ( Index = 0 ; Index < InstancePtr -> LinkConfig . LaneCount ; Index ++ ) { XDpPsu_WriteReg ( SERDES_BASEADDR , SERDES_L0_TX_MARGININGF + Index * SERDES_LANE_OFFSET , vs [ PeLevelRx ] [ VsLevelRx ] ) ; XDpPsu_WriteReg ( SERDES_BASEADDR , SERDES_L0_TX_DEEMPHASIS + Index * SERDES_LANE_OFFSET , pe [ PeLevelRx ] [ VsLevelRx ] ) ; } }
This function sets current voltage swing and pre-emphasis level settings from
 the LinkConfig structure to hardware.
This function sets current voltage swing and pre - emphasis level settings from the LinkConfig structure to hardware .
/* Write new voltage swing levels to the TX registers. */ /* Write new pre-emphasis levels to the TX registers. */