XilinxProcessorIPLib/drivers/v_hdmiphy1/src/xhdmiphy1_intr.c
void XHdmiphy1_InterruptHandler(XHdmiphy1 *InstancePtr)
{
	u32 IntrStatus;

	/* Verify arguments. */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	/* Determine what kind of interrupts have occurred. */
	IntrStatus = XHdmiphy1_ReadReg(InstancePtr->Config.BaseAddr,
			XHDMIPHY1_INTR_STS_REG);

#if (XPAR_HDMIPHY1_0_TRANSCEIVER != XHDMIPHY1_GTYE5)
	if (IntrStatus & XHDMIPHY1_INTR_CPLL_LOCK_MASK) {
		InstancePtr->IntrCpllLockHandler(
				InstancePtr->IntrCpllLockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_QPLL_LOCK_MASK) {
		InstancePtr->IntrQpllLockHandler(
				InstancePtr->IntrQpllLockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_QPLL1_LOCK_MASK) {
		InstancePtr->IntrQpll1LockHandler(
				InstancePtr->IntrQpll1LockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_TXRESETDONE_MASK) {
		InstancePtr->IntrTxResetDoneHandler(
				InstancePtr->IntrTxResetDoneCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_TXALIGNDONE_MASK) {
		InstancePtr->IntrTxAlignDoneHandler(
				InstancePtr->IntrTxAlignDoneCallbackRef);
	}
#else
	if (IntrStatus & XHDMIPHY1_INTR_TXGPO_RE_MASK) {
		InstancePtr->IntrTxGpoRisingEdgeHandler(
				InstancePtr->IntrTxGpoRisingEdgeCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_RXGPO_RE_MASK) {
		InstancePtr->IntrRxGpoRisingEdgeHandler(
				InstancePtr->IntrRxGpoRisingEdgeCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_LCPLL_LOCK_MASK) {
		InstancePtr->IntrLcpllLockHandler(
				InstancePtr->IntrLcpllLockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_RPLL_LOCK_MASK) {
		InstancePtr->IntrRpllLockHandler(
				InstancePtr->IntrRpllLockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_TXRESETDONE_MASK) {
		InstancePtr->IntrTxResetDoneHandler(
				InstancePtr->IntrTxResetDoneCallbackRef);
	}
#endif
	if (IntrStatus & XHDMIPHY1_INTR_RXRESETDONE_MASK) {
		InstancePtr->IntrRxResetDoneHandler(
				InstancePtr->IntrRxResetDoneCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_TXCLKDETFREQCHANGE_MASK) {
		InstancePtr->IntrTxClkDetFreqChangeHandler(
				InstancePtr->IntrTxClkDetFreqChangeCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_RXCLKDETFREQCHANGE_MASK) {
		InstancePtr->IntrRxClkDetFreqChangeHandler(
				InstancePtr->IntrRxClkDetFreqChangeCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_TXMMCMUSRCLK_LOCK_MASK) {
		InstancePtr->IntrTxMmcmLockHandler(
				InstancePtr->IntrTxMmcmLockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_RXMMCMUSRCLK_LOCK_MASK) {
		InstancePtr->IntrRxMmcmLockHandler(
				InstancePtr->IntrRxMmcmLockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_TXTMRTIMEOUT_MASK) {
		InstancePtr->IntrTxTmrTimeoutHandler(
				InstancePtr->IntrTxTmrTimeoutCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_RXTMRTIMEOUT_MASK) {
		InstancePtr->IntrRxTmrTimeoutHandler(
				InstancePtr->IntrRxTmrTimeoutCallbackRef);
	}
}
/******************************************************************************/
/**
 * This function is the interrupt handler for the XHdmiphy1 driver. It will
 * detect what kind of interrupt has happened, and will invoke the appropriate
 * callback function.
 *
 * @param	InstancePtr is a pointer to the XHdmiphy1 instance.
 *
 * @return	None.
 *
 * @note	None.
 *
*******************************************************************************/
This function is the interrupt handler for the XHdmiphy1 driver. It will
detect what kind of interrupt has happened, and will invoke the appropriate
callback function.

@param       InstancePtr is a pointer to the XHdmiphy1 instance.

@return      None.

@note        None.
This function is the interrupt handler for the XHdmiphy1 driver . It will detect what kind of interrupt has happened and will invoke the appropriate callback function . @param InstancePtr is a pointer to the XHdmiphy1 instance . @return None . @note None .
void XHdmiphy1_InterruptHandler(XHdmiphy1 *InstancePtr)
{
	u32 IntrStatus;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	IntrStatus = XHdmiphy1_ReadReg(InstancePtr->Config.BaseAddr,
			XHDMIPHY1_INTR_STS_REG);
#if (XPAR_HDMIPHY1_0_TRANSCEIVER != XHDMIPHY1_GTYE5)
	if (IntrStatus & XHDMIPHY1_INTR_CPLL_LOCK_MASK) {
		InstancePtr->IntrCpllLockHandler(
				InstancePtr->IntrCpllLockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_QPLL_LOCK_MASK) {
		InstancePtr->IntrQpllLockHandler(
				InstancePtr->IntrQpllLockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_QPLL1_LOCK_MASK) {
		InstancePtr->IntrQpll1LockHandler(
				InstancePtr->IntrQpll1LockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_TXRESETDONE_MASK) {
		InstancePtr->IntrTxResetDoneHandler(
				InstancePtr->IntrTxResetDoneCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_TXALIGNDONE_MASK) {
		InstancePtr->IntrTxAlignDoneHandler(
				InstancePtr->IntrTxAlignDoneCallbackRef);
	}
#else
	if (IntrStatus & XHDMIPHY1_INTR_TXGPO_RE_MASK) {
		InstancePtr->IntrTxGpoRisingEdgeHandler(
				InstancePtr->IntrTxGpoRisingEdgeCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_RXGPO_RE_MASK) {
		InstancePtr->IntrRxGpoRisingEdgeHandler(
				InstancePtr->IntrRxGpoRisingEdgeCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_LCPLL_LOCK_MASK) {
		InstancePtr->IntrLcpllLockHandler(
				InstancePtr->IntrLcpllLockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_RPLL_LOCK_MASK) {
		InstancePtr->IntrRpllLockHandler(
				InstancePtr->IntrRpllLockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_TXRESETDONE_MASK) {
		InstancePtr->IntrTxResetDoneHandler(
				InstancePtr->IntrTxResetDoneCallbackRef);
	}
#endif
	if (IntrStatus & XHDMIPHY1_INTR_RXRESETDONE_MASK) {
		InstancePtr->IntrRxResetDoneHandler(
				InstancePtr->IntrRxResetDoneCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_TXCLKDETFREQCHANGE_MASK) {
		InstancePtr->IntrTxClkDetFreqChangeHandler(
				InstancePtr->IntrTxClkDetFreqChangeCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_RXCLKDETFREQCHANGE_MASK) {
		InstancePtr->IntrRxClkDetFreqChangeHandler(
				InstancePtr->IntrRxClkDetFreqChangeCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_TXMMCMUSRCLK_LOCK_MASK) {
		InstancePtr->IntrTxMmcmLockHandler(
				InstancePtr->IntrTxMmcmLockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_RXMMCMUSRCLK_LOCK_MASK) {
		InstancePtr->IntrRxMmcmLockHandler(
				InstancePtr->IntrRxMmcmLockCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_TXTMRTIMEOUT_MASK) {
		InstancePtr->IntrTxTmrTimeoutHandler(
				InstancePtr->IntrTxTmrTimeoutCallbackRef);
	}
	if (IntrStatus & XHDMIPHY1_INTR_RXTMRTIMEOUT_MASK) {
		InstancePtr->IntrRxTmrTimeoutHandler(
				InstancePtr->IntrRxTmrTimeoutCallbackRef);
	}
}
void XHdmiphy1_InterruptHandler ( XHdmiphy1 * InstancePtr ) { u32 IntrStatus ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; IntrStatus = XHdmiphy1_ReadReg ( InstancePtr -> Config . BaseAddr , XHDMIPHY1_INTR_STS_REG ) ; #if ( XPAR_HDMIPHY1_0_TRANSCEIVER != XHDMIPHY1_GTYE5 ) if ( IntrStatus & XHDMIPHY1_INTR_CPLL_LOCK_MASK ) { InstancePtr -> IntrCpllLockHandler ( InstancePtr -> IntrCpllLockCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_QPLL_LOCK_MASK ) { InstancePtr -> IntrQpllLockHandler ( InstancePtr -> IntrQpllLockCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_QPLL1_LOCK_MASK ) { InstancePtr -> IntrQpll1LockHandler ( InstancePtr -> IntrQpll1LockCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_TXRESETDONE_MASK ) { InstancePtr -> IntrTxResetDoneHandler ( InstancePtr -> IntrTxResetDoneCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_TXALIGNDONE_MASK ) { InstancePtr -> IntrTxAlignDoneHandler ( InstancePtr -> IntrTxAlignDoneCallbackRef ) ; } #else if ( IntrStatus & XHDMIPHY1_INTR_TXGPO_RE_MASK ) { InstancePtr -> IntrTxGpoRisingEdgeHandler ( InstancePtr -> IntrTxGpoRisingEdgeCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_RXGPO_RE_MASK ) { InstancePtr -> IntrRxGpoRisingEdgeHandler ( InstancePtr -> IntrRxGpoRisingEdgeCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_LCPLL_LOCK_MASK ) { InstancePtr -> IntrLcpllLockHandler ( InstancePtr -> IntrLcpllLockCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_RPLL_LOCK_MASK ) { InstancePtr -> IntrRpllLockHandler ( InstancePtr -> IntrRpllLockCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_TXRESETDONE_MASK ) { InstancePtr -> IntrTxResetDoneHandler ( InstancePtr -> IntrTxResetDoneCallbackRef ) ; } #endif if ( IntrStatus & XHDMIPHY1_INTR_RXRESETDONE_MASK ) { InstancePtr -> IntrRxResetDoneHandler ( InstancePtr -> IntrRxResetDoneCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_TXCLKDETFREQCHANGE_MASK ) { InstancePtr -> IntrTxClkDetFreqChangeHandler ( InstancePtr -> IntrTxClkDetFreqChangeCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_RXCLKDETFREQCHANGE_MASK ) { InstancePtr -> IntrRxClkDetFreqChangeHandler ( InstancePtr -> IntrRxClkDetFreqChangeCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_TXMMCMUSRCLK_LOCK_MASK ) { InstancePtr -> IntrTxMmcmLockHandler ( InstancePtr -> IntrTxMmcmLockCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_RXMMCMUSRCLK_LOCK_MASK ) { InstancePtr -> IntrRxMmcmLockHandler ( InstancePtr -> IntrRxMmcmLockCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_TXTMRTIMEOUT_MASK ) { InstancePtr -> IntrTxTmrTimeoutHandler ( InstancePtr -> IntrTxTmrTimeoutCallbackRef ) ; } if ( IntrStatus & XHDMIPHY1_INTR_RXTMRTIMEOUT_MASK ) { InstancePtr -> IntrRxTmrTimeoutHandler ( InstancePtr -> IntrRxTmrTimeoutCallbackRef ) ; } }
This function is the interrupt handler for the XHdmiphy1 driver.
This function is the interrupt handler for the XHdmiphy1 driver .
/* Verify arguments. */ /* Determine what kind of interrupts have occurred. */