XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss.c
static int XV_HdmiRxSs_RegisterSubsysCallbacks(XV_HdmiRxSs *InstancePtr)
{
  XV_HdmiRxSs *HdmiRxSsPtr = InstancePtr;

  //Register HDMI callbacks
  if(HdmiRxSsPtr->HdmiRxPtr) {
    /*
     * Register call back for Rx Core Interrupts.
     */
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_CONNECT,
                          (void *)XV_HdmiRxSs_ConnectCallback,
                          (void *)InstancePtr);

    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_BRDG_OVERFLOW,
                          (void *)XV_HdmiRxSs_BrdgOverflowCallback,
                          (void *)InstancePtr);

    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_AUX,
                          (void *)XV_HdmiRxSs_AuxCallback,
                          (void *)InstancePtr);

    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_AUD,
                          (void *)XV_HdmiRxSs_AudCallback,
                          (void *)InstancePtr);

    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_LNKSTA,
                          (void *)XV_HdmiRxSs_LnkStaCallback,
                          (void *)InstancePtr);

    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_DDC,
                          (void *)XV_HdmiRxSs_DdcCallback,
                          (void *)InstancePtr);

    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_STREAM_DOWN,
                          (void *)XV_HdmiRxSs_StreamDownCallback,
                          (void *)InstancePtr);

    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_STREAM_INIT,
                          (void *)XV_HdmiRxSs_StreamInitCallback,
                          (void *)InstancePtr);

    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_STREAM_UP,
                          (void *)XV_HdmiRxSs_StreamUpCallback,
                          (void *)InstancePtr);

    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_SYNC_LOSS,
                          (void *)XV_HdmiRxSs_SyncLossCallback,
                          (void *)InstancePtr);

    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_MODE,
                          (void *)XV_HdmiRxSs_ModeCallback,
                          (void *)InstancePtr);

    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_TMDS_CLK_RATIO,
                          (void *)XV_HdmiRxSs_TmdsClkRatioCallback,
                          (void *)InstancePtr);

    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_VIC_ERROR,
                          (void *)XV_HdmiRxSs_VicErrorCallback,
                          (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_HdmiRxSs_RegisterSubsysCallbacks(XV_HdmiRxSs *InstancePtr)
{
  XV_HdmiRxSs *HdmiRxSsPtr = InstancePtr;
  if(HdmiRxSsPtr->HdmiRxPtr) {
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_CONNECT,
                          (void *)XV_HdmiRxSs_ConnectCallback,
                          (void *)InstancePtr);
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_BRDG_OVERFLOW,
                          (void *)XV_HdmiRxSs_BrdgOverflowCallback,
                          (void *)InstancePtr);
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_AUX,
                          (void *)XV_HdmiRxSs_AuxCallback,
                          (void *)InstancePtr);
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_AUD,
                          (void *)XV_HdmiRxSs_AudCallback,
                          (void *)InstancePtr);
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_LNKSTA,
                          (void *)XV_HdmiRxSs_LnkStaCallback,
                          (void *)InstancePtr);
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_DDC,
                          (void *)XV_HdmiRxSs_DdcCallback,
                          (void *)InstancePtr);
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_STREAM_DOWN,
                          (void *)XV_HdmiRxSs_StreamDownCallback,
                          (void *)InstancePtr);
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_STREAM_INIT,
                          (void *)XV_HdmiRxSs_StreamInitCallback,
                          (void *)InstancePtr);
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_STREAM_UP,
                          (void *)XV_HdmiRxSs_StreamUpCallback,
                          (void *)InstancePtr);
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_SYNC_LOSS,
                          (void *)XV_HdmiRxSs_SyncLossCallback,
                          (void *)InstancePtr);
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_MODE,
                          (void *)XV_HdmiRxSs_ModeCallback,
                          (void *)InstancePtr);
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_TMDS_CLK_RATIO,
                          (void *)XV_HdmiRxSs_TmdsClkRatioCallback,
                          (void *)InstancePtr);
    XV_HdmiRx_SetCallback(HdmiRxSsPtr->HdmiRxPtr,
                          XV_HDMIRX_HANDLER_VIC_ERROR,
                          (void *)XV_HdmiRxSs_VicErrorCallback,
                          (void *)InstancePtr);
  }
  return(XST_SUCCESS);
}
static int XV_HdmiRxSs_RegisterSubsysCallbacks ( XV_HdmiRxSs * InstancePtr ) { XV_HdmiRxSs * HdmiRxSsPtr = InstancePtr ; if ( HdmiRxSsPtr -> HdmiRxPtr ) { XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_CONNECT , ( void * ) XV_HdmiRxSs_ConnectCallback , ( void * ) InstancePtr ) ; XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_BRDG_OVERFLOW , ( void * ) XV_HdmiRxSs_BrdgOverflowCallback , ( void * ) InstancePtr ) ; XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_AUX , ( void * ) XV_HdmiRxSs_AuxCallback , ( void * ) InstancePtr ) ; XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_AUD , ( void * ) XV_HdmiRxSs_AudCallback , ( void * ) InstancePtr ) ; XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_LNKSTA , ( void * ) XV_HdmiRxSs_LnkStaCallback , ( void * ) InstancePtr ) ; XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_DDC , ( void * ) XV_HdmiRxSs_DdcCallback , ( void * ) InstancePtr ) ; XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_STREAM_DOWN , ( void * ) XV_HdmiRxSs_StreamDownCallback , ( void * ) InstancePtr ) ; XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_STREAM_INIT , ( void * ) XV_HdmiRxSs_StreamInitCallback , ( void * ) InstancePtr ) ; XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_STREAM_UP , ( void * ) XV_HdmiRxSs_StreamUpCallback , ( void * ) InstancePtr ) ; XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_SYNC_LOSS , ( void * ) XV_HdmiRxSs_SyncLossCallback , ( void * ) InstancePtr ) ; XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_MODE , ( void * ) XV_HdmiRxSs_ModeCallback , ( void * ) InstancePtr ) ; XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_TMDS_CLK_RATIO , ( void * ) XV_HdmiRxSs_TmdsClkRatioCallback , ( void * ) InstancePtr ) ; XV_HdmiRx_SetCallback ( HdmiRxSsPtr -> HdmiRxPtr , XV_HDMIRX_HANDLER_VIC_ERROR , ( void * ) XV_HdmiRxSs_VicErrorCallback , ( 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 Rx Core Interrupts.
     */