XilinxProcessorIPLib/drivers/dp14rxss/examples/src/rx_only/xdprxss_dp14_rx.c
void DpRxSs_PllResetHandler(void *InstancePtr)
{
	/* Reset CRC Test Counter in DP DPCD Space */
	XVidFrameCrc_Reset();
	VidFrameCRC.TEST_CRC_CNT = 0;
	XDp_WriteReg(DpRxSsInst.DpPtr->Config.BaseAddr,
		     XDP_RX_CRC_CONFIG,
		     (VidFrameCRC.TEST_CRC_SUPPORTED << 5 |
		      VidFrameCRC.TEST_CRC_CNT));


	/* Issue resets to Video PHY - This API
	 * called after line rate is programmed */
	XVphy_BufgGtReset(&VPhyInst, XVPHY_DIR_RX,(TRUE));
	XVphy_ResetGtPll(&VPhyInst, 0, XVPHY_CHANNEL_ID_CHA,
			 XVPHY_DIR_RX,(TRUE));
	XVphy_ResetGtPll(&VPhyInst, 0, XVPHY_CHANNEL_ID_CHA,
			 XVPHY_DIR_RX, (FALSE));
	XVphy_BufgGtReset(&VPhyInst, XVPHY_DIR_RX, (FALSE));
	XVphy_WaitForResetDone(&VPhyInst, 0, XVPHY_CHANNEL_ID_CHA,
			       XVPHY_DIR_RX);
	XVphy_WaitForPllLock(&VPhyInst, 0, XVPHY_CHANNEL_ID_CHA);

	/*Enable all interrupts except Unplug*/
	XDp_RxInterruptEnable(DpRxSsInst.DpPtr,
			      XDP_RX_INTERRUPT_MASK_ALL_MASK);
}
/*****************************************************************************/
/**
*
* This function is the callback function for PLL reset request.
*
* @param    InstancePtr is a pointer to the XDpRxSs instance.
*
* @return    None.
*
* @note        None.
*
******************************************************************************/
This function is the callback function for PLL reset request.
This function is the callback function for PLL reset request .
void DpRxSs_PllResetHandler(void *InstancePtr)
{
	XVidFrameCrc_Reset();
	VidFrameCRC.TEST_CRC_CNT = 0;
	XDp_WriteReg(DpRxSsInst.DpPtr->Config.BaseAddr,
		     XDP_RX_CRC_CONFIG,
		     (VidFrameCRC.TEST_CRC_SUPPORTED << 5 |
		      VidFrameCRC.TEST_CRC_CNT));
	XVphy_BufgGtReset(&VPhyInst, XVPHY_DIR_RX,(TRUE));
	XVphy_ResetGtPll(&VPhyInst, 0, XVPHY_CHANNEL_ID_CHA,
			 XVPHY_DIR_RX,(TRUE));
	XVphy_ResetGtPll(&VPhyInst, 0, XVPHY_CHANNEL_ID_CHA,
			 XVPHY_DIR_RX, (FALSE));
	XVphy_BufgGtReset(&VPhyInst, XVPHY_DIR_RX, (FALSE));
	XVphy_WaitForResetDone(&VPhyInst, 0, XVPHY_CHANNEL_ID_CHA,
			       XVPHY_DIR_RX);
	XVphy_WaitForPllLock(&VPhyInst, 0, XVPHY_CHANNEL_ID_CHA);
	XDp_RxInterruptEnable(DpRxSsInst.DpPtr,
			      XDP_RX_INTERRUPT_MASK_ALL_MASK);
}
void DpRxSs_PllResetHandler ( void * InstancePtr ) { XVidFrameCrc_Reset ( ) ; VidFrameCRC . TEST_CRC_CNT = 0 ; XDp_WriteReg ( DpRxSsInst . DpPtr -> Config . BaseAddr , XDP_RX_CRC_CONFIG , ( VidFrameCRC . TEST_CRC_SUPPORTED << 5 | VidFrameCRC . TEST_CRC_CNT ) ) ; XVphy_BufgGtReset ( & VPhyInst , XVPHY_DIR_RX , ( TRUE ) ) ; XVphy_ResetGtPll ( & VPhyInst , 0 , XVPHY_CHANNEL_ID_CHA , XVPHY_DIR_RX , ( TRUE ) ) ; XVphy_ResetGtPll ( & VPhyInst , 0 , XVPHY_CHANNEL_ID_CHA , XVPHY_DIR_RX , ( FALSE ) ) ; XVphy_BufgGtReset ( & VPhyInst , XVPHY_DIR_RX , ( FALSE ) ) ; XVphy_WaitForResetDone ( & VPhyInst , 0 , XVPHY_CHANNEL_ID_CHA , XVPHY_DIR_RX ) ; XVphy_WaitForPllLock ( & VPhyInst , 0 , XVPHY_CHANNEL_ID_CHA ) ; XDp_RxInterruptEnable ( DpRxSsInst . DpPtr , XDP_RX_INTERRUPT_MASK_ALL_MASK ) ; }
This function is the callback function for PLL reset request.
This function is the callback function for PLL reset request .
/* Reset CRC Test Counter in DP DPCD Space */ /* Issue resets to Video PHY - This API
	 * called after line rate is programmed */ /*Enable all interrupts except Unplug*/