XilinxProcessorIPLib/drivers/v_sdirxss/src/xv_sdirxss.c
static int XV_SdiRxSs_RegisterSubsysCallbacks(XV_SdiRxSs *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);

	XV_SdiRxSs *SdiRxSsPtr = InstancePtr;

	/* Register SDI callbacks */
	if (SdiRxSsPtr->SdiRxPtr) {
		/*
	* Register call back for Rx Core Interrupts.
	*/
		XV_SdiRx_SetCallback(SdiRxSsPtr->SdiRxPtr,
					XV_SDIRX_HANDLER_STREAM_DOWN,
					XV_SdiRxSs_StreamDownCallback,
					InstancePtr);

		XV_SdiRx_SetCallback(SdiRxSsPtr->SdiRxPtr,
					XV_SDIRX_HANDLER_STREAM_UP,
					XV_SdiRxSs_StreamUpCallback,
					InstancePtr);

		XV_SdiRx_SetCallback(SdiRxSsPtr->SdiRxPtr,
					XV_SDIRX_HANDLER_OVERFLOW,
					XV_SdiRxSs_OverFlowCallback,
					InstancePtr);

		XV_SdiRx_SetCallback(SdiRxSsPtr->SdiRxPtr,
					XV_SDIRX_HANDLER_UNDERFLOW,
					XV_SdiRxSs_UnderFlowCallback,
					InstancePtr);

		XV_SdiRx_SetCallback(SdiRxSsPtr->SdiRxPtr,
					XV_SDIRX_HANDLER_VSYNC,
					XV_SdiRxSs_VsyncCallback,
					InstancePtr);

	}

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
* This function register's all sub-core ISR's with interrupt controller and
* any subsystem level call back function with requisite sub-core
*
* @param InstancePtr is a pointer to the Subsystem instance to be worked on.
*
*****************************************************************************/
This function register's all sub-core ISR's with interrupt controller and
any subsystem level call back function with requisite sub-core
This function register ' s all sub - core ISR ' s with interrupt controller and any subsystem level call back function with requisite sub - core
static int XV_SdiRxSs_RegisterSubsysCallbacks(XV_SdiRxSs *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	XV_SdiRxSs *SdiRxSsPtr = InstancePtr;
	if (SdiRxSsPtr->SdiRxPtr) {
		XV_SdiRx_SetCallback(SdiRxSsPtr->SdiRxPtr,
					XV_SDIRX_HANDLER_STREAM_DOWN,
					XV_SdiRxSs_StreamDownCallback,
					InstancePtr);
		XV_SdiRx_SetCallback(SdiRxSsPtr->SdiRxPtr,
					XV_SDIRX_HANDLER_STREAM_UP,
					XV_SdiRxSs_StreamUpCallback,
					InstancePtr);
		XV_SdiRx_SetCallback(SdiRxSsPtr->SdiRxPtr,
					XV_SDIRX_HANDLER_OVERFLOW,
					XV_SdiRxSs_OverFlowCallback,
					InstancePtr);
		XV_SdiRx_SetCallback(SdiRxSsPtr->SdiRxPtr,
					XV_SDIRX_HANDLER_UNDERFLOW,
					XV_SdiRxSs_UnderFlowCallback,
					InstancePtr);
		XV_SdiRx_SetCallback(SdiRxSsPtr->SdiRxPtr,
					XV_SDIRX_HANDLER_VSYNC,
					XV_SdiRxSs_VsyncCallback,
					InstancePtr);
	}
	return XST_SUCCESS;
}
static int XV_SdiRxSs_RegisterSubsysCallbacks ( XV_SdiRxSs * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; XV_SdiRxSs * SdiRxSsPtr = InstancePtr ; if ( SdiRxSsPtr -> SdiRxPtr ) { XV_SdiRx_SetCallback ( SdiRxSsPtr -> SdiRxPtr , XV_SDIRX_HANDLER_STREAM_DOWN , XV_SdiRxSs_StreamDownCallback , InstancePtr ) ; XV_SdiRx_SetCallback ( SdiRxSsPtr -> SdiRxPtr , XV_SDIRX_HANDLER_STREAM_UP , XV_SdiRxSs_StreamUpCallback , InstancePtr ) ; XV_SdiRx_SetCallback ( SdiRxSsPtr -> SdiRxPtr , XV_SDIRX_HANDLER_OVERFLOW , XV_SdiRxSs_OverFlowCallback , InstancePtr ) ; XV_SdiRx_SetCallback ( SdiRxSsPtr -> SdiRxPtr , XV_SDIRX_HANDLER_UNDERFLOW , XV_SdiRxSs_UnderFlowCallback , InstancePtr ) ; XV_SdiRx_SetCallback ( SdiRxSsPtr -> SdiRxPtr , XV_SDIRX_HANDLER_VSYNC , XV_SdiRxSs_VsyncCallback , InstancePtr ) ; } return XST_SUCCESS ; }
This function register's all sub-core ISR's with interrupt controller and
any subsystem level call back function with requisite sub-core
This function register ' s all sub - core ISR ' s with interrupt controller and any subsystem level call back function with requisite sub - core
/* Register SDI callbacks */ /*
	* Register call back for Rx Core Interrupts.
	*/