XilinxProcessorIPLib/drivers/dsi/src/xdsi_intr.c
void XDsi_IntrHandler(void *InstancePtr)
{
	u32 InvokedIntr;
	u32 Mask;

	XDsi *XDsiPtr = (XDsi *)InstancePtr;

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

	/* Get Invoked interrupts in */
	InvokedIntr = XDsi_InterruptGetStatus(XDsiPtr);

	Mask = InvokedIntr & XDSI_IER_DATA_ID_ERR_MASK;
	if (Mask) {
		/* If UnSupportedDataType then call corresponding callback function */
		XDsiPtr->UnSupportedDataTypeCallback
			(XDsiPtr->UnsupportDataTypeRef, Mask);
	}

	Mask = InvokedIntr & XDSI_IER_PXL_UNDR_RUN_MASK;
	if (Mask) {
		/* If ShortPacket Interrupts then call corresponding
		 * callback function */
		XDsiPtr->PixelDataUnderrunCallback
			(XDsiPtr->PixelDataUnderrundRef, Mask);
	}

	Mask = InvokedIntr & XDSI_IER_CMDQ_FIFO_FULL_MASK;
	if (Mask) {
		/* If Command queue FIFO full Interrupts then call corresponding
		 * callback function */
		XDsiPtr->CmdQFIFOFullCallback
			(XDsiPtr->CmdQFIFOFullRef, Mask);
	}

	/* Clear Invoked interrupt(s) */
	XDsi_InterruptClear(XDsiPtr, InvokedIntr);
}
/*****************************************************************************/
/**
*
* This function is the interrupt handler for the DSI core.
*
* This handler reads the Invoked interrupt from the Interrupt Status register
* determines the source of the interrupts and calls the respective
* callbacks for the interrupts that are enabled in Interrupt Enable register
* and finally clears the interrupts.
*
* The application is responsible for connecting this function to the interrupt
* system. Application beyond this core is also responsible for providing
* callbacks to handle interrupts and installing the callbacks using
* XDsi_SetCallback() during initialization phase.
*
* @param	InstancePtr is a pointer to the XDsi core instance.
*
* @return	None.
*
* @note		Interrupt should be enabled to execute interrupt handler.
*
******************************************************************************/
This function is the interrupt handler for the DSI core.
This handler reads the Invoked interrupt from the Interrupt Status register
determines the source of the interrupts and calls the respective
callbacks for the interrupts that are enabled in Interrupt Enable register
and finally clears the interrupts.

The application is responsible for connecting this function to the interrupt
system. Application beyond this core is also responsible for providing
callbacks to handle interrupts and installing the callbacks using
XDsi_SetCallback() during initialization phase.
This function is the interrupt handler for the DSI core . This handler reads the Invoked interrupt from the Interrupt Status register determines the source of the interrupts and calls the respective callbacks for the interrupts that are enabled in Interrupt Enable register and finally clears the interrupts . The application is responsible for connecting this function to the interrupt system . Application beyond this core is also responsible for providing callbacks to handle interrupts and installing the callbacks using XDsi_SetCallback () during initialization phase .
void XDsi_IntrHandler(void *InstancePtr)
{
	u32 InvokedIntr;
	u32 Mask;
	XDsi *XDsiPtr = (XDsi *)InstancePtr;
	Xil_AssertVoid(XDsiPtr != NULL);
	Xil_AssertVoid(XDsiPtr->IsReady == XIL_COMPONENT_IS_READY);
	InvokedIntr = XDsi_InterruptGetStatus(XDsiPtr);
	Mask = InvokedIntr & XDSI_IER_DATA_ID_ERR_MASK;
	if (Mask) {
		XDsiPtr->UnSupportedDataTypeCallback
			(XDsiPtr->UnsupportDataTypeRef, Mask);
	}
	Mask = InvokedIntr & XDSI_IER_PXL_UNDR_RUN_MASK;
	if (Mask) {
		XDsiPtr->PixelDataUnderrunCallback
			(XDsiPtr->PixelDataUnderrundRef, Mask);
	}
	Mask = InvokedIntr & XDSI_IER_CMDQ_FIFO_FULL_MASK;
	if (Mask) {
		XDsiPtr->CmdQFIFOFullCallback
			(XDsiPtr->CmdQFIFOFullRef, Mask);
	}
	XDsi_InterruptClear(XDsiPtr, InvokedIntr);
}
void XDsi_IntrHandler ( void * InstancePtr ) { u32 InvokedIntr ; u32 Mask ; XDsi * XDsiPtr = ( XDsi * ) InstancePtr ; Xil_AssertVoid ( XDsiPtr != NULL ) ; Xil_AssertVoid ( XDsiPtr -> IsReady == XIL_COMPONENT_IS_READY ) ; InvokedIntr = XDsi_InterruptGetStatus ( XDsiPtr ) ; Mask = InvokedIntr & XDSI_IER_DATA_ID_ERR_MASK ; if ( Mask ) { XDsiPtr -> UnSupportedDataTypeCallback ( XDsiPtr -> UnsupportDataTypeRef , Mask ) ; } Mask = InvokedIntr & XDSI_IER_PXL_UNDR_RUN_MASK ; if ( Mask ) { XDsiPtr -> PixelDataUnderrunCallback ( XDsiPtr -> PixelDataUnderrundRef , Mask ) ; } Mask = InvokedIntr & XDSI_IER_CMDQ_FIFO_FULL_MASK ; if ( Mask ) { XDsiPtr -> CmdQFIFOFullCallback ( XDsiPtr -> CmdQFIFOFullRef , Mask ) ; } XDsi_InterruptClear ( XDsiPtr , InvokedIntr ) ; }
This function is the interrupt handler for the DSI core.
This function is the interrupt handler for the DSI core .
/* Verify arguments. */ /* Get Invoked interrupts in */ /* If UnSupportedDataType then call corresponding callback function */ /* If ShortPacket Interrupts then call corresponding
		 * callback function */ /* If Command queue FIFO full Interrupts then call corresponding
		 * callback function */ /* Clear Invoked interrupt(s) */