XilinxProcessorIPLib/drivers/dsitxss/src/xdsitxss_intr.c
u32 XDsiTxSs_SetCallback(XDsiTxSs *InstancePtr, u32 HandlerType,
			void *CallbackFunc, void *CallbackRef)
{
	u32 Status;

	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(CallbackFunc != NULL);
	Xil_AssertNonvoid(CallbackRef != NULL);

	Status = XDsi_SetCallback(InstancePtr->DsiPtr, HandlerType,
					CallbackFunc, CallbackRef);
	return Status;
}
/*****************************************************************************/
/**
*
* This routine installs an asynchronous callback function for the given
* HandlerType:
*
* <pre>
* HandlerType			Invoked by this driver when:
* -----------------------  --------------------------------------------------
* XDSI_HANDLER_UNSUPPORT_DATATYPE	Un support data type detected
* XDSI_HANDLER_PIXELDATA_UNDERRUN Byte	Stream FIFO starves for Pixel during
*					 HACT transmission
* XDSI_HANDLER_OTHERERROR  Any other type of interrupt has occured like
* 			Stream Line Buffer Full, Incorrect Lanes, etc
* XDSI_HANDLER_CMDQ_FIFOFULL	Command queue FIFO Full
*
* </pre>
*
* @param	InstancePtr is the XDsi instance to operate on
* @param 	HandlerType is the type of call back to be registered.
* @param	CallbackFunc is the pointer to a call back funtion which
*	 	is called when a particular event occurs.
* @param 	CallbackRef is a void pointer to data to be referenced to
*	 	by the CallbackFunc
*
* @return
* 		- XST_SUCCESS when handler is installed.
*		- XST_INVALID_PARAM when HandlerType is invalid.
*
* @note 	Invoking this function for a handler that already has been
*	 	installed replaces it with the new handler.
*
****************************************************************************/
This routine installs an asynchronous callback function for the given
HandlerType.


HandlerType                    Invoked by this driver when.

XDSI_HANDLER_UNSUPPORT_DATATYPE        Un support data type detected
XDSI_HANDLER_PIXELDATA_UNDERRUN Byte   Stream FIFO starves for Pixel during
HACT transmission
XDSI_HANDLER_OTHERERROR  Any other type of interrupt has occured like
Stream Line Buffer Full, Incorrect Lanes, etc
XDSI_HANDLER_CMDQ_FIFOFULL     Command queue FIFO Full


This routine installs an asynchronous callback function for the given HandlerType . HandlerType Invoked by this driver when . XDSI_HANDLER_UNSUPPORT_DATATYPE Un support data type detected XDSI_HANDLER_PIXELDATA_UNDERRUN Byte Stream FIFO starves for Pixel during HACT transmission XDSI_HANDLER_OTHERERROR Any other type of interrupt has occured like Stream Line Buffer Full Incorrect Lanes etc XDSI_HANDLER_CMDQ_FIFOFULL Command queue FIFO Full
u32 XDsiTxSs_SetCallback(XDsiTxSs *InstancePtr, u32 HandlerType,
			void *CallbackFunc, void *CallbackRef)
{
	u32 Status;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertNonvoid(CallbackFunc != NULL);
	Xil_AssertNonvoid(CallbackRef != NULL);
	Status = XDsi_SetCallback(InstancePtr->DsiPtr, HandlerType,
					CallbackFunc, CallbackRef);
	return Status;
}
u32 XDsiTxSs_SetCallback ( XDsiTxSs * InstancePtr , u32 HandlerType , void * CallbackFunc , void * CallbackRef ) { u32 Status ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertNonvoid ( CallbackFunc != NULL ) ; Xil_AssertNonvoid ( CallbackRef != NULL ) ; Status = XDsi_SetCallback ( InstancePtr -> DsiPtr , HandlerType , CallbackFunc , CallbackRef ) ; return Status ; }
This routine installs an asynchronous callback function for the given
HandlerType:
This routine installs an asynchronous callback function for the given HandlerType :
/* Verify arguments */