XilinxProcessorIPLib/drivers/vphy/src/xvphy.c
u32 XVphy_WaitForPllLock(XVphy *InstancePtr, u8 QuadId, XVphy_ChannelId ChId)
{
	u32 Status = XST_FAILURE;
	u8 Retry = 0;

	do {
		XVphy_WaitUs(InstancePtr, 1000);
		Status = XVphy_IsPllLocked(InstancePtr, QuadId, ChId);
		Retry++;
	} while ((Status != XST_SUCCESS) && (Retry < 15));

	return Status;
}
/*****************************************************************************/
/**
* This function will wait for a PLL lock on the specified channel(s) or time
* out.
*
* @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 which to operate on.
*
* @return
*		- XST_SUCCESS if the PLL(s) have locked.
*		- XST_FAILURE otherwise; waiting for the lock timed out.
*
* @note		None.
*
******************************************************************************/
This function will wait for a PLL lock on the specified channel(s) or time
out.
This function will wait for a PLL lock on the specified channel ( s ) or time out .
u32 XVphy_WaitForPllLock(XVphy *InstancePtr, u8 QuadId, XVphy_ChannelId ChId)
{
	u32 Status = XST_FAILURE;
	u8 Retry = 0;
	do {
		XVphy_WaitUs(InstancePtr, 1000);
		Status = XVphy_IsPllLocked(InstancePtr, QuadId, ChId);
		Retry++;
	} while ((Status != XST_SUCCESS) && (Retry < 15));
	return Status;
}
u32 XVphy_WaitForPllLock ( XVphy * InstancePtr , u8 QuadId , XVphy_ChannelId ChId ) { u32 Status = XST_FAILURE ; u8 Retry = 0 ; do { XVphy_WaitUs ( InstancePtr , 1000 ) ; Status = XVphy_IsPllLocked ( InstancePtr , QuadId , ChId ) ; Retry ++ ; } while ( ( Status != XST_SUCCESS ) && ( Retry < 15 ) ) ; return Status ; }
This function will wait for a PLL lock on the specified channel(s) or time
out.
This function will wait for a PLL lock on the specified channel ( s ) or time out .