XilinxProcessorIPLib/drivers/dp14txss/examples/src/pt_only/rx.c
u32 DpRxSs_SetupIntrSystem(void)
{
//	u32 Status;
//	XINTC *IntcInstPtr = &IntcInst;

	/* Set callbacks for all the interrupts */
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_PWR_CHG_EVENT,
			    &DpRxSs_PowerChangeHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_NO_VID_EVENT,
			    &DpRxSs_NoVideoHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_VM_CHG_EVENT,
			    &DpRxSs_VmChangeHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_VBLANK_EVENT,
			    &DpRxSs_VerticalBlankHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_TLOST_EVENT,
			    &DpRxSs_TrainingLostHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_VID_EVENT,
			    &DpRxSs_VideoHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_TDONE_EVENT,
			    &DpRxSs_TrainingDoneHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_UNPLUG_EVENT,
			    &DpRxSs_UnplugHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_LINKBW_EVENT,
			    &DpRxSs_LinkBandwidthHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_PLL_RESET_EVENT,
			    &DpRxSs_PllResetHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_BW_CHG_EVENT,
			    &DpRxSs_BWChangeHandler, &DpRxSsInst);
//	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_ACCESS_LANE_SET_EVENT,
//			    DpRxSs_AccessLaneSetHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_ACCESS_LINK_QUAL_EVENT,
			    &DpRxSs_AccessLinkQualHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst,
			    XDPRXSS_HANDLER_ACCESS_ERROR_COUNTER_EVENT,
			    &DpRxSs_AccessErrorCounterHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_CRC_TEST_EVENT,
			    &DpRxSs_CRCTestEventHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_INFO_PKT_EVENT,
			&DpRxSs_InfoPacketHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_EXT_PKT_EVENT,
			&DpRxSs_ExtPacketHandler, &DpRxSsInst);
#if ADAPTIVE
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_ADAPTIVESYNC_VBLANK_STREAM_1_EVENT,
			&DpRxSs_AdaptiveVblankHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_ADAPTIVESYNC_SDP_STREAM_1_EVENT,
			&DpRxSs_AdaptiveSDPHandler, &DpRxSsInst);

#endif

	/* Set custom timer wait */
	XDpRxSs_SetUserTimerHandler(&DpRxSsInst, &CustomWaitUs, &TmrCtr);

	return (XST_SUCCESS);
}
/*****************************************************************************/
/**
*
* This function sets up the interrupt system so interrupts can occur for the
* DisplayPort RX Subsystem core. The function is application-specific since
* the actual system may or may not have an interrupt controller. The DPRX
* Subsystem core could be directly connected to a processor without an
* interrupt controller. The user should modify this function to fit the
* application.
*
* @param    None
*
* @return
*        - XST_SUCCESS if interrupt setup was successful.
*        - A specific error code defined in "xstatus.h" if an error
*        occurs.
*
* @note        None.
*
******************************************************************************/
This function sets up the interrupt system so interrupts can occur for the
DisplayPort RX Subsystem core. The function is application-specific since
the actual system may or may not have an interrupt controller. The DPRX
Subsystem core could be directly connected to a processor without an
interrupt controller. The user should modify this function to fit the
application.
This function sets up the interrupt system so interrupts can occur for the DisplayPort RX Subsystem core . The function is application - specific since the actual system may or may not have an interrupt controller . The DPRX Subsystem core could be directly connected to a processor without an interrupt controller . The user should modify this function to fit the application .
u32 DpRxSs_SetupIntrSystem(void)
{
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_PWR_CHG_EVENT,
			    &DpRxSs_PowerChangeHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_NO_VID_EVENT,
			    &DpRxSs_NoVideoHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_VM_CHG_EVENT,
			    &DpRxSs_VmChangeHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_VBLANK_EVENT,
			    &DpRxSs_VerticalBlankHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_TLOST_EVENT,
			    &DpRxSs_TrainingLostHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_VID_EVENT,
			    &DpRxSs_VideoHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_TDONE_EVENT,
			    &DpRxSs_TrainingDoneHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_UNPLUG_EVENT,
			    &DpRxSs_UnplugHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_LINKBW_EVENT,
			    &DpRxSs_LinkBandwidthHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_PLL_RESET_EVENT,
			    &DpRxSs_PllResetHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_BW_CHG_EVENT,
			    &DpRxSs_BWChangeHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_ACCESS_LINK_QUAL_EVENT,
			    &DpRxSs_AccessLinkQualHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst,
			    XDPRXSS_HANDLER_ACCESS_ERROR_COUNTER_EVENT,
			    &DpRxSs_AccessErrorCounterHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_CRC_TEST_EVENT,
			    &DpRxSs_CRCTestEventHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_INFO_PKT_EVENT,
			&DpRxSs_InfoPacketHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_EXT_PKT_EVENT,
			&DpRxSs_ExtPacketHandler, &DpRxSsInst);
#if ADAPTIVE
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_ADAPTIVESYNC_VBLANK_STREAM_1_EVENT,
			&DpRxSs_AdaptiveVblankHandler, &DpRxSsInst);
	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_DP_ADAPTIVESYNC_SDP_STREAM_1_EVENT,
			&DpRxSs_AdaptiveSDPHandler, &DpRxSsInst);
#endif
	XDpRxSs_SetUserTimerHandler(&DpRxSsInst, &CustomWaitUs, &TmrCtr);
	return (XST_SUCCESS);
}
u32 DpRxSs_SetupIntrSystem ( void ) { XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_PWR_CHG_EVENT , & DpRxSs_PowerChangeHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_NO_VID_EVENT , & DpRxSs_NoVideoHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_VM_CHG_EVENT , & DpRxSs_VmChangeHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_VBLANK_EVENT , & DpRxSs_VerticalBlankHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_TLOST_EVENT , & DpRxSs_TrainingLostHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_VID_EVENT , & DpRxSs_VideoHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_TDONE_EVENT , & DpRxSs_TrainingDoneHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_UNPLUG_EVENT , & DpRxSs_UnplugHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_LINKBW_EVENT , & DpRxSs_LinkBandwidthHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_PLL_RESET_EVENT , & DpRxSs_PllResetHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_BW_CHG_EVENT , & DpRxSs_BWChangeHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_ACCESS_LINK_QUAL_EVENT , & DpRxSs_AccessLinkQualHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_ACCESS_ERROR_COUNTER_EVENT , & DpRxSs_AccessErrorCounterHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_CRC_TEST_EVENT , & DpRxSs_CRCTestEventHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_INFO_PKT_EVENT , & DpRxSs_InfoPacketHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_EXT_PKT_EVENT , & DpRxSs_ExtPacketHandler , & DpRxSsInst ) ; #if ADAPTIVE XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_ADAPTIVESYNC_VBLANK_STREAM_1_EVENT , & DpRxSs_AdaptiveVblankHandler , & DpRxSsInst ) ; XDpRxSs_SetCallBack ( & DpRxSsInst , XDPRXSS_HANDLER_DP_ADAPTIVESYNC_SDP_STREAM_1_EVENT , & DpRxSs_AdaptiveSDPHandler , & DpRxSsInst ) ; #endif XDpRxSs_SetUserTimerHandler ( & DpRxSsInst , & CustomWaitUs , & TmrCtr ) ; return ( XST_SUCCESS ) ; }
This function sets up the interrupt system so interrupts can occur for the
DisplayPort RX Subsystem core.
This function sets up the interrupt system so interrupts can occur for the DisplayPort RX Subsystem core .
//	u32 Status; //	XINTC *IntcInstPtr = &IntcInst; /* Set callbacks for all the interrupts */ //	XDpRxSs_SetCallBack(&DpRxSsInst, XDPRXSS_HANDLER_ACCESS_LANE_SET_EVENT, //			    DpRxSs_AccessLaneSetHandler, &DpRxSsInst); /* Set custom timer wait */