XilinxProcessorIPLib/drivers/v_hdmitxss1/examples/xhdmi_example/xhdmi_intr.c
u32 XHdmi_InterruptConnect(void *Intc, u8 Id, XInterruptHandler Handler,
		void *CallBackRef)
{
	u32 Status = XST_SUCCESS;

#if defined(__arm__) || (__aarch64__)
	Status |= XScuGic_Connect((XScuGic *)Intc,
							  Id,
							  (XInterruptHandler)XHdmi_InterruptHandler,
							  (void *)&XHdmi_HandlerTable[Id]);
#else
	Status |= XIntc_Connect((XIntc *)Intc,
							Id,
							(XInterruptHandler)XHdmi_InterruptHandler,
							(void *)&XHdmi_HandlerTable[Id]);
#endif

	/* Register the handler and callback to corresponding table */
	XHdmi_HandlerTable[Id].CallBackRef = CallBackRef;
	XHdmi_HandlerTable[Id].Handler = Handler;

	return Status;
}
/*****************************************************************************/
/**
*
* Makes the connection between the Id of the interrupt source and the
* associated handler that is to run when the interrupt is recognized.
* It registers the CallBack reference and handler in the local interrupt
* handler table based in the DevID or interrupt bit position.
*
* @param	Intc is a pointer to the INT controlerr instance to be worked on.
* @param	Id contains the ID of the interrupt source and should be in the
*			range of 0 to MAX_NUM_INTR_INPUTS - 1 with 0 being
*   		the highest priority interrupt.
* @param	Handler to the handler for that interrupt.
* @param	CallBackRef is the callback reference, usually the instance
*		pointer of the connecting driver.
*
* @return
*
* 		- XST_SUCCESS if the handler was connected correctly.
*
* @note
*
* WARNING: The handler provided as an argument will overwrite any handler
* that was previously connected.
*
****************************************************************************/
Makes the connection between the Id of the interrupt source and the
associated handler that is to run when the interrupt is recognized.
It registers the CallBack reference and handler in the local interrupt
handler table based in the DevID or interrupt bit position.
Makes the connection between the Id of the interrupt source and the associated handler that is to run when the interrupt is recognized . It registers the CallBack reference and handler in the local interrupt handler table based in the DevID or interrupt bit position .
u32 XHdmi_InterruptConnect(void *Intc, u8 Id, XInterruptHandler Handler,
		void *CallBackRef)
{
	u32 Status = XST_SUCCESS;
#if defined(__arm__) || (__aarch64__)
	Status |= XScuGic_Connect((XScuGic *)Intc,
							  Id,
							  (XInterruptHandler)XHdmi_InterruptHandler,
							  (void *)&XHdmi_HandlerTable[Id]);
#else
	Status |= XIntc_Connect((XIntc *)Intc,
							Id,
							(XInterruptHandler)XHdmi_InterruptHandler,
							(void *)&XHdmi_HandlerTable[Id]);
#endif
	XHdmi_HandlerTable[Id].CallBackRef = CallBackRef;
	XHdmi_HandlerTable[Id].Handler = Handler;
	return Status;
}
u32 XHdmi_InterruptConnect ( void * Intc , u8 Id , XInterruptHandler Handler , void * CallBackRef ) { u32 Status = XST_SUCCESS ; #if defined ( __arm__ ) || ( __aarch64__ ) Status |= XScuGic_Connect ( ( XScuGic * ) Intc , Id , ( XInterruptHandler ) XHdmi_InterruptHandler , ( void * ) & XHdmi_HandlerTable [ Id ] ) ; #else Status |= XIntc_Connect ( ( XIntc * ) Intc , Id , ( XInterruptHandler ) XHdmi_InterruptHandler , ( void * ) & XHdmi_HandlerTable [ Id ] ) ; #endif XHdmi_HandlerTable [ Id ] . CallBackRef = CallBackRef ; XHdmi_HandlerTable [ Id ] . Handler = Handler ; return Status ; }
Makes the connection between the Id of the interrupt source and the
associated handler that is to run when the interrupt is recognized.
Makes the connection between the Id of the interrupt source and the associated handler that is to run when the interrupt is recognized .
/* Register the handler and callback to corresponding table */