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

	/* Set custom timer wait */
//	XDpTxSs_SetUserTimerHandler(&DpTxSsInst, &DpPt_CustomWaitUs, &TmrCtr);
	XDpTxSs_SetCallBack(&DpTxSsInst, (XDPTXSS_HANDLER_DP_HPD_EVENT),
						&DpPt_HpdEventHandler, &DpTxSsInst);
	XDpTxSs_SetCallBack(&DpTxSsInst, (XDPTXSS_HANDLER_DP_HPD_PULSE),
						&DpPt_HpdPulseHandler, &DpTxSsInst);
	XDpTxSs_SetCallBack(&DpTxSsInst, (XDPTXSS_HANDLER_DP_LINK_RATE_CHG),
						&DpPt_LinkrateChgHandler, &DpTxSsInst);
	XDpTxSs_SetCallBack(&DpTxSsInst, (XDPTXSS_HANDLER_DP_PE_VS_ADJUST),
						&DpPt_pe_vs_adjustHandler, &DpTxSsInst);
	XDpTxSs_SetCallBack(&DpTxSsInst, (XDPTXSS_HANDLER_DP_EXT_PKT_EVENT),
						&DpTxSs_ExtPacketHandler, &DpTxSsInst);
	XDpTxSs_SetCallBack(&DpTxSsInst, (XDPTXSS_HANDLER_DP_VSYNC),
						&DpTxSs_VsyncHandler, &DpTxSsInst);


	return (XST_SUCCESS);
}
/*****************************************************************************/
/**
*
* This function sets up the interrupt system so interrupts can occur for the
* DisplayPort TX Subsystem core. The function is application-specific since
* the actual system may or may not have an interrupt controller. The DPTX
* 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 TX Subsystem core. The function is application-specific since
the actual system may or may not have an interrupt controller. The DPTX
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 TX Subsystem core . The function is application - specific since the actual system may or may not have an interrupt controller . The DPTX Subsystem core could be directly connected to a processor without an interrupt controller . The user should modify this function to fit the application .
u32 DpTxSs_SetupIntrSystem(void)
{
	XDpTxSs_SetCallBack(&DpTxSsInst, (XDPTXSS_HANDLER_DP_HPD_EVENT),
						&DpPt_HpdEventHandler, &DpTxSsInst);
	XDpTxSs_SetCallBack(&DpTxSsInst, (XDPTXSS_HANDLER_DP_HPD_PULSE),
						&DpPt_HpdPulseHandler, &DpTxSsInst);
	XDpTxSs_SetCallBack(&DpTxSsInst, (XDPTXSS_HANDLER_DP_LINK_RATE_CHG),
						&DpPt_LinkrateChgHandler, &DpTxSsInst);
	XDpTxSs_SetCallBack(&DpTxSsInst, (XDPTXSS_HANDLER_DP_PE_VS_ADJUST),
						&DpPt_pe_vs_adjustHandler, &DpTxSsInst);
	XDpTxSs_SetCallBack(&DpTxSsInst, (XDPTXSS_HANDLER_DP_EXT_PKT_EVENT),
						&DpTxSs_ExtPacketHandler, &DpTxSsInst);
	XDpTxSs_SetCallBack(&DpTxSsInst, (XDPTXSS_HANDLER_DP_VSYNC),
						&DpTxSs_VsyncHandler, &DpTxSsInst);
	return (XST_SUCCESS);
}
u32 DpTxSs_SetupIntrSystem ( void ) { XDpTxSs_SetCallBack ( & DpTxSsInst , ( XDPTXSS_HANDLER_DP_HPD_EVENT ) , & DpPt_HpdEventHandler , & DpTxSsInst ) ; XDpTxSs_SetCallBack ( & DpTxSsInst , ( XDPTXSS_HANDLER_DP_HPD_PULSE ) , & DpPt_HpdPulseHandler , & DpTxSsInst ) ; XDpTxSs_SetCallBack ( & DpTxSsInst , ( XDPTXSS_HANDLER_DP_LINK_RATE_CHG ) , & DpPt_LinkrateChgHandler , & DpTxSsInst ) ; XDpTxSs_SetCallBack ( & DpTxSsInst , ( XDPTXSS_HANDLER_DP_PE_VS_ADJUST ) , & DpPt_pe_vs_adjustHandler , & DpTxSsInst ) ; XDpTxSs_SetCallBack ( & DpTxSsInst , ( XDPTXSS_HANDLER_DP_EXT_PKT_EVENT ) , & DpTxSs_ExtPacketHandler , & DpTxSsInst ) ; XDpTxSs_SetCallBack ( & DpTxSsInst , ( XDPTXSS_HANDLER_DP_VSYNC ) , & DpTxSs_VsyncHandler , & DpTxSsInst ) ; return ( XST_SUCCESS ) ; }
This function sets up the interrupt system so interrupts can occur for the
DisplayPort TX Subsystem core.
This function sets up the interrupt system so interrupts can occur for the DisplayPort TX Subsystem core .
//	u32 Status = XST_SUCCESS; //	XINTC *IntcInstPtr = &IntcInst; /* Set custom timer wait */ //	XDpTxSs_SetUserTimerHandler(&DpTxSsInst, &DpPt_CustomWaitUs, &TmrCtr);