XilinxProcessorIPLib/drivers/vphy/src/xvphy_hdmi_intr.c
void XVphy_ClkDetHandler(XVphy *InstancePtr)
{
	u32 Event;
	u32 EventMask;
	u32 EventAck;

	EventMask = XVPHY_INTR_TXCLKDETFREQCHANGE_MASK |
				XVPHY_INTR_RXCLKDETFREQCHANGE_MASK |
				XVPHY_INTR_TXTMRTIMEOUT_MASK |
				XVPHY_INTR_RXTMRTIMEOUT_MASK;

	/* Read Interrupt Status register */
	Event = XVphy_ReadReg(InstancePtr->Config.BaseAddr, XVPHY_INTR_STS_REG);

	EventAck = EventMask & Event;

	if (Event & XVPHY_INTR_TXCLKDETFREQCHANGE_MASK) {
		XVphy_HdmiTxClkDetFreqChangeHandler(InstancePtr);
	}
	if (Event & XVPHY_INTR_RXCLKDETFREQCHANGE_MASK) {
		XVphy_HdmiRxClkDetFreqChangeHandler(InstancePtr);
	}
	if (Event & XVPHY_INTR_TXTMRTIMEOUT_MASK) {
		XVphy_HdmiTxTimerTimeoutHandler(InstancePtr);
	}
	if (Event & XVPHY_INTR_RXTMRTIMEOUT_MASK) {
		XVphy_HdmiRxTimerTimeoutHandler(InstancePtr);
	}

	/* Clear event flags by writing to Interrupt Status register */
	XVphy_WriteReg(InstancePtr->Config.BaseAddr, XVPHY_INTR_STS_REG,
			EventAck);
}
/*****************************************************************************/
/**
* This function is the interrupt handler for the clock detector events.
*
* @param	InstancePtr is a pointer to the VPHY instance.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function is the interrupt handler for the clock detector events.
This function is the interrupt handler for the clock detector events .
void XVphy_ClkDetHandler(XVphy *InstancePtr)
{
	u32 Event;
	u32 EventMask;
	u32 EventAck;
	EventMask = XVPHY_INTR_TXCLKDETFREQCHANGE_MASK |
				XVPHY_INTR_RXCLKDETFREQCHANGE_MASK |
				XVPHY_INTR_TXTMRTIMEOUT_MASK |
				XVPHY_INTR_RXTMRTIMEOUT_MASK;
	Event = XVphy_ReadReg(InstancePtr->Config.BaseAddr, XVPHY_INTR_STS_REG);
	EventAck = EventMask & Event;
	if (Event & XVPHY_INTR_TXCLKDETFREQCHANGE_MASK) {
		XVphy_HdmiTxClkDetFreqChangeHandler(InstancePtr);
	}
	if (Event & XVPHY_INTR_RXCLKDETFREQCHANGE_MASK) {
		XVphy_HdmiRxClkDetFreqChangeHandler(InstancePtr);
	}
	if (Event & XVPHY_INTR_TXTMRTIMEOUT_MASK) {
		XVphy_HdmiTxTimerTimeoutHandler(InstancePtr);
	}
	if (Event & XVPHY_INTR_RXTMRTIMEOUT_MASK) {
		XVphy_HdmiRxTimerTimeoutHandler(InstancePtr);
	}
	XVphy_WriteReg(InstancePtr->Config.BaseAddr, XVPHY_INTR_STS_REG,
			EventAck);
}
void XVphy_ClkDetHandler ( XVphy * InstancePtr ) { u32 Event ; u32 EventMask ; u32 EventAck ; EventMask = XVPHY_INTR_TXCLKDETFREQCHANGE_MASK | XVPHY_INTR_RXCLKDETFREQCHANGE_MASK | XVPHY_INTR_TXTMRTIMEOUT_MASK | XVPHY_INTR_RXTMRTIMEOUT_MASK ; Event = XVphy_ReadReg ( InstancePtr -> Config . BaseAddr , XVPHY_INTR_STS_REG ) ; EventAck = EventMask & Event ; if ( Event & XVPHY_INTR_TXCLKDETFREQCHANGE_MASK ) { XVphy_HdmiTxClkDetFreqChangeHandler ( InstancePtr ) ; } if ( Event & XVPHY_INTR_RXCLKDETFREQCHANGE_MASK ) { XVphy_HdmiRxClkDetFreqChangeHandler ( InstancePtr ) ; } if ( Event & XVPHY_INTR_TXTMRTIMEOUT_MASK ) { XVphy_HdmiTxTimerTimeoutHandler ( InstancePtr ) ; } if ( Event & XVPHY_INTR_RXTMRTIMEOUT_MASK ) { XVphy_HdmiRxTimerTimeoutHandler ( InstancePtr ) ; } XVphy_WriteReg ( InstancePtr -> Config . BaseAddr , XVPHY_INTR_STS_REG , EventAck ) ; }
This function is the interrupt handler for the clock detector events.
This function is the interrupt handler for the clock detector events .
/* Read Interrupt Status register */ /* Clear event flags by writing to Interrupt Status register */