XilinxProcessorIPLib/drivers/vphy/src/xvphy_gthe4.c
u32 XVphy_Gthe4CheckPllOpRange(XVphy *InstancePtr, u8 QuadId,
		XVphy_ChannelId ChId, u64 PllClkOutFreqHz)
{
	u32 Status = XST_FAILURE;

	/* Suppress Warning Messages */
	InstancePtr = InstancePtr;
	QuadId = QuadId;

	if (((ChId == XVPHY_CHANNEL_ID_CMN0) &&
			(XVPHY_QPLL0_MIN <= PllClkOutFreqHz) &&
			(PllClkOutFreqHz <= XVPHY_QPLL0_MAX)) ||
	    ((ChId == XVPHY_CHANNEL_ID_CMN1) &&
			(XVPHY_QPLL1_MIN <= PllClkOutFreqHz) &&
			(PllClkOutFreqHz <= XVPHY_QPLL1_MAX)) ||
	    ((ChId >= XVPHY_CHANNEL_ID_CH1) &&
			(ChId <= XVPHY_CHANNEL_ID_CH4) &&
			(XVPHY_CPLL_MIN <= PllClkOutFreqHz) &&
			(PllClkOutFreqHz <= XVPHY_CPLL_MAX))) {
		Status = XST_SUCCESS;
	}

	return Status;
}
/*****************************************************************************/
/**
* This function will check if a given PLL output frequency is within the
* operating range of the PLL for the GT type.
*
* @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	PllClkOutFreqHz is the frequency to check.
*
* @return
*		- XST_SUCCESS if the frequency resides within the PLL's range.
*		- XST_FAILURE otherwise.
*
* @note		None.
*
******************************************************************************/
This function will check if a given PLL output frequency is within the
operating range of the PLL for the GT type.
This function will check if a given PLL output frequency is within the operating range of the PLL for the GT type .
u32 XVphy_Gthe4CheckPllOpRange(XVphy *InstancePtr, u8 QuadId,
		XVphy_ChannelId ChId, u64 PllClkOutFreqHz)
{
	u32 Status = XST_FAILURE;
	InstancePtr = InstancePtr;
	QuadId = QuadId;
	if (((ChId == XVPHY_CHANNEL_ID_CMN0) &&
			(XVPHY_QPLL0_MIN <= PllClkOutFreqHz) &&
			(PllClkOutFreqHz <= XVPHY_QPLL0_MAX)) ||
	    ((ChId == XVPHY_CHANNEL_ID_CMN1) &&
			(XVPHY_QPLL1_MIN <= PllClkOutFreqHz) &&
			(PllClkOutFreqHz <= XVPHY_QPLL1_MAX)) ||
	    ((ChId >= XVPHY_CHANNEL_ID_CH1) &&
			(ChId <= XVPHY_CHANNEL_ID_CH4) &&
			(XVPHY_CPLL_MIN <= PllClkOutFreqHz) &&
			(PllClkOutFreqHz <= XVPHY_CPLL_MAX))) {
		Status = XST_SUCCESS;
	}
	return Status;
}
u32 XVphy_Gthe4CheckPllOpRange ( XVphy * InstancePtr , u8 QuadId , XVphy_ChannelId ChId , u64 PllClkOutFreqHz ) { u32 Status = XST_FAILURE ; InstancePtr = InstancePtr ; QuadId = QuadId ; if ( ( ( ChId == XVPHY_CHANNEL_ID_CMN0 ) && ( XVPHY_QPLL0_MIN <= PllClkOutFreqHz ) && ( PllClkOutFreqHz <= XVPHY_QPLL0_MAX ) ) || ( ( ChId == XVPHY_CHANNEL_ID_CMN1 ) && ( XVPHY_QPLL1_MIN <= PllClkOutFreqHz ) && ( PllClkOutFreqHz <= XVPHY_QPLL1_MAX ) ) || ( ( ChId >= XVPHY_CHANNEL_ID_CH1 ) && ( ChId <= XVPHY_CHANNEL_ID_CH4 ) && ( XVPHY_CPLL_MIN <= PllClkOutFreqHz ) && ( PllClkOutFreqHz <= XVPHY_CPLL_MAX ) ) ) { Status = XST_SUCCESS ; } return Status ; }
This function will check if a given PLL output frequency is within the
operating range of the PLL for the GT type.
This function will check if a given PLL output frequency is within the operating range of the PLL for the GT type .
/* Suppress Warning Messages */