XilinxProcessorIPLib/drivers/v_hdmitxss/src/xv_hdmitxss.c
static int XV_HdmiTxSs_RegisterSubsysCallbacks(XV_HdmiTxSs *InstancePtr)
{
  XV_HdmiTxSs *HdmiTxSsPtr = InstancePtr;

  /** Register HDMI callbacks */
  if (HdmiTxSsPtr->HdmiTxPtr) {
    /*
     * Register call back for Tx Core Interrupts.
     */
    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_CONNECT,
						  (void *)XV_HdmiTxSs_ConnectCallback,
						  (void *)InstancePtr);

    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_TOGGLE,
						  (void *)XV_HdmiTxSs_ToggleCallback,
						  (void *)InstancePtr);

    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_BRDGUNLOCK,
						  (void *)XV_HdmiTxSs_BrdgUnlockedCallback,
						  (void *)InstancePtr);

    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_BRDGOVERFLOW,
						  (void *)XV_HdmiTxSs_BrdgOverflowCallback,
						  (void *)InstancePtr);

    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_BRDGUNDERFLOW,
						  (void *)XV_HdmiTxSs_BrdgUnderflowCallback,
						  (void *)InstancePtr);

    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_VS,
						  (void *)XV_HdmiTxSs_VsCallback,
						  (void *)InstancePtr);

    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_STREAM_UP,
						  (void *)XV_HdmiTxSs_StreamUpCallback,
						  (void *)InstancePtr);

    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_STREAM_DOWN,
						  (void *)XV_HdmiTxSs_StreamDownCallback,
						  (void *)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

@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 @param InstancePtr is a pointer to the Subsystem instance to be worked on .
static int XV_HdmiTxSs_RegisterSubsysCallbacks(XV_HdmiTxSs *InstancePtr)
{
  XV_HdmiTxSs *HdmiTxSsPtr = InstancePtr;
  if (HdmiTxSsPtr->HdmiTxPtr) {
    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_CONNECT,
						  (void *)XV_HdmiTxSs_ConnectCallback,
						  (void *)InstancePtr);
    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_TOGGLE,
						  (void *)XV_HdmiTxSs_ToggleCallback,
						  (void *)InstancePtr);
    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_BRDGUNLOCK,
						  (void *)XV_HdmiTxSs_BrdgUnlockedCallback,
						  (void *)InstancePtr);
    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_BRDGOVERFLOW,
						  (void *)XV_HdmiTxSs_BrdgOverflowCallback,
						  (void *)InstancePtr);
    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_BRDGUNDERFLOW,
						  (void *)XV_HdmiTxSs_BrdgUnderflowCallback,
						  (void *)InstancePtr);
    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_VS,
						  (void *)XV_HdmiTxSs_VsCallback,
						  (void *)InstancePtr);
    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_STREAM_UP,
						  (void *)XV_HdmiTxSs_StreamUpCallback,
						  (void *)InstancePtr);
    XV_HdmiTx_SetCallback(HdmiTxSsPtr->HdmiTxPtr,
                          XV_HDMITX_HANDLER_STREAM_DOWN,
						  (void *)XV_HdmiTxSs_StreamDownCallback,
						  (void *)InstancePtr);
  }
  return(XST_SUCCESS);
}
static int XV_HdmiTxSs_RegisterSubsysCallbacks ( XV_HdmiTxSs * InstancePtr ) { XV_HdmiTxSs * HdmiTxSsPtr = InstancePtr ; if ( HdmiTxSsPtr -> HdmiTxPtr ) { XV_HdmiTx_SetCallback ( HdmiTxSsPtr -> HdmiTxPtr , XV_HDMITX_HANDLER_CONNECT , ( void * ) XV_HdmiTxSs_ConnectCallback , ( void * ) InstancePtr ) ; XV_HdmiTx_SetCallback ( HdmiTxSsPtr -> HdmiTxPtr , XV_HDMITX_HANDLER_TOGGLE , ( void * ) XV_HdmiTxSs_ToggleCallback , ( void * ) InstancePtr ) ; XV_HdmiTx_SetCallback ( HdmiTxSsPtr -> HdmiTxPtr , XV_HDMITX_HANDLER_BRDGUNLOCK , ( void * ) XV_HdmiTxSs_BrdgUnlockedCallback , ( void * ) InstancePtr ) ; XV_HdmiTx_SetCallback ( HdmiTxSsPtr -> HdmiTxPtr , XV_HDMITX_HANDLER_BRDGOVERFLOW , ( void * ) XV_HdmiTxSs_BrdgOverflowCallback , ( void * ) InstancePtr ) ; XV_HdmiTx_SetCallback ( HdmiTxSsPtr -> HdmiTxPtr , XV_HDMITX_HANDLER_BRDGUNDERFLOW , ( void * ) XV_HdmiTxSs_BrdgUnderflowCallback , ( void * ) InstancePtr ) ; XV_HdmiTx_SetCallback ( HdmiTxSsPtr -> HdmiTxPtr , XV_HDMITX_HANDLER_VS , ( void * ) XV_HdmiTxSs_VsCallback , ( void * ) InstancePtr ) ; XV_HdmiTx_SetCallback ( HdmiTxSsPtr -> HdmiTxPtr , XV_HDMITX_HANDLER_STREAM_UP , ( void * ) XV_HdmiTxSs_StreamUpCallback , ( void * ) InstancePtr ) ; XV_HdmiTx_SetCallback ( HdmiTxSsPtr -> HdmiTxPtr , XV_HDMITX_HANDLER_STREAM_DOWN , ( void * ) XV_HdmiTxSs_StreamDownCallback , ( void * ) 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 HDMI callbacks */ /*
     * Register call back for Tx Core Interrupts.
     */