XilinxProcessorIPLib/drivers/vphy/src/xvphy_hdmi_intr.c
void XVphy_HdmiGtTxAlignDoneLockHandler(XVphy *InstancePtr)
{
	u8 Id, Id0, Id1;

	XVphy_LogWrite(InstancePtr, XVPHY_LOG_EVT_TX_ALIGN, 1);

#if (XPAR_VPHY_0_TRANSCEIVER == XVPHY_GTXE2)
	/* Clear TX timer. */
	XVphy_ClkDetTimerClear(InstancePtr, 0, XVPHY_DIR_TX);
#endif


	XVphy_Ch2Ids(InstancePtr, XVPHY_CHANNEL_ID_CHA, &Id0, &Id1);
	for (Id = Id0; Id <= Id1; Id++) {
		InstancePtr->Quads[0].Plls[XVPHY_CH2IDX(Id)].TxState =
			XVPHY_GT_STATE_READY;
	}

	/* TX ready callback. */
	if (InstancePtr->HdmiTxReadyCallback) {
		InstancePtr->HdmiTxReadyCallback(InstancePtr->HdmiTxReadyRef);
	}
}
/*****************************************************************************/
/**
* This function is the handler for events triggered by GT TX alignment done.
*
* @param	InstancePtr is a pointer to the VPHY instance.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function is the handler for events triggered by GT TX alignment done.
This function is the handler for events triggered by GT TX alignment done .
void XVphy_HdmiGtTxAlignDoneLockHandler(XVphy *InstancePtr)
{
	u8 Id, Id0, Id1;
	XVphy_LogWrite(InstancePtr, XVPHY_LOG_EVT_TX_ALIGN, 1);
#if (XPAR_VPHY_0_TRANSCEIVER == XVPHY_GTXE2)
	XVphy_ClkDetTimerClear(InstancePtr, 0, XVPHY_DIR_TX);
#endif
	XVphy_Ch2Ids(InstancePtr, XVPHY_CHANNEL_ID_CHA, &Id0, &Id1);
	for (Id = Id0; Id <= Id1; Id++) {
		InstancePtr->Quads[0].Plls[XVPHY_CH2IDX(Id)].TxState =
			XVPHY_GT_STATE_READY;
	}
	if (InstancePtr->HdmiTxReadyCallback) {
		InstancePtr->HdmiTxReadyCallback(InstancePtr->HdmiTxReadyRef);
	}
}
void XVphy_HdmiGtTxAlignDoneLockHandler ( XVphy * InstancePtr ) { u8 Id , Id0 , Id1 ; XVphy_LogWrite ( InstancePtr , XVPHY_LOG_EVT_TX_ALIGN , 1 ) ; #if ( XPAR_VPHY_0_TRANSCEIVER == XVPHY_GTXE2 ) XVphy_ClkDetTimerClear ( InstancePtr , 0 , XVPHY_DIR_TX ) ; #endif XVphy_Ch2Ids ( InstancePtr , XVPHY_CHANNEL_ID_CHA , & Id0 , & Id1 ) ; for ( Id = Id0 ; Id <= Id1 ; Id ++ ) { InstancePtr -> Quads [ 0 ] . Plls [ XVPHY_CH2IDX ( Id ) ] . TxState = XVPHY_GT_STATE_READY ; } if ( InstancePtr -> HdmiTxReadyCallback ) { InstancePtr -> HdmiTxReadyCallback ( InstancePtr -> HdmiTxReadyRef ) ; } }
This function is the handler for events triggered by GT TX alignment done.
This function is the handler for events triggered by GT TX alignment done .
/* Clear TX timer. */ /* TX ready callback. */