XilinxProcessorIPLib/drivers/vphy/src/xvphy.c
u32 XVphy_ClkInitialize(XVphy *InstancePtr, u8 QuadId, XVphy_ChannelId ChId,
		XVphy_DirectionType Dir)
{
	u32 Status;

	Status = XVphy_ClkCalcParams(InstancePtr, QuadId, ChId, Dir, 0);
	if (Status != XST_SUCCESS) {
		return Status;
	}

	Status = XVphy_ClkReconfig(InstancePtr, QuadId, ChId);
	if (Status != XST_SUCCESS) {
		return Status;
	}

	Status = XVphy_OutDivReconfig(InstancePtr, QuadId, ChId, Dir);
	if (Status != XST_SUCCESS) {
		return Status;
	}

	Status = XVphy_DirReconfig(InstancePtr, QuadId, ChId, Dir);

	return Status;
}
/*****************************************************************************/
/**
* This function will initialize the clocking 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	Dir is an indicator for TX or RX.
*
* @return
*		- XST_SUCCESS if the configuration was successful.
*		- XST_FAILURE otherwise.
*
* @note		None.
*
******************************************************************************/
This function will initialize the clocking for a given channel.
This function will initialize the clocking for a given channel .
u32 XVphy_ClkInitialize(XVphy *InstancePtr, u8 QuadId, XVphy_ChannelId ChId,
		XVphy_DirectionType Dir)
{
	u32 Status;
	Status = XVphy_ClkCalcParams(InstancePtr, QuadId, ChId, Dir, 0);
	if (Status != XST_SUCCESS) {
		return Status;
	}
	Status = XVphy_ClkReconfig(InstancePtr, QuadId, ChId);
	if (Status != XST_SUCCESS) {
		return Status;
	}
	Status = XVphy_OutDivReconfig(InstancePtr, QuadId, ChId, Dir);
	if (Status != XST_SUCCESS) {
		return Status;
	}
	Status = XVphy_DirReconfig(InstancePtr, QuadId, ChId, Dir);
	return Status;
}
u32 XVphy_ClkInitialize ( XVphy * InstancePtr , u8 QuadId , XVphy_ChannelId ChId , XVphy_DirectionType Dir ) { u32 Status ; Status = XVphy_ClkCalcParams ( InstancePtr , QuadId , ChId , Dir , 0 ) ; if ( Status != XST_SUCCESS ) { return Status ; } Status = XVphy_ClkReconfig ( InstancePtr , QuadId , ChId ) ; if ( Status != XST_SUCCESS ) { return Status ; } Status = XVphy_OutDivReconfig ( InstancePtr , QuadId , ChId , Dir ) ; if ( Status != XST_SUCCESS ) { return Status ; } Status = XVphy_DirReconfig ( InstancePtr , QuadId , ChId , Dir ) ; return Status ; }
This function will initialize the clocking for a given channel.
This function will initialize the clocking for a given channel .