XilinxProcessorIPLib/drivers/vprocss/src/xvprocss.c
static void GetIncludedSubcores(XVprocSs *XVprocSsPtr)
{
  XVprocSsPtr->HcrsmplrPtr    = ((XVprocSsPtr->Config.HCrsmplr.IsPresent)   \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Hcrsmplr)    : NULL);
  XVprocSsPtr->VcrsmplrInPtr  = ((XVprocSsPtr->Config.VCrsmplrIn.IsPresent)  \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].VcrsmplrIn)  : NULL);
  XVprocSsPtr->VcrsmplrOutPtr = ((XVprocSsPtr->Config.VCrsmplrOut.IsPresent) \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].VcrsmplrOut) : NULL);
  XVprocSsPtr->VscalerPtr     = ((XVprocSsPtr->Config.Vscale.IsPresent)      \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Vscaler)     : NULL);
  XVprocSsPtr->HscalerPtr     = ((XVprocSsPtr->Config.Hscale.IsPresent)      \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Hscaler)     : NULL);
  XVprocSsPtr->VdmaPtr        = ((XVprocSsPtr->Config.Vdma.IsPresent)        \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Vdma)        : NULL);
  XVprocSsPtr->LboxPtr        = ((XVprocSsPtr->Config.Lbox.IsPresent)        \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Lbox)        : NULL);
  XVprocSsPtr->CscPtr         = ((XVprocSsPtr->Config.Csc.IsPresent)         \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Csc)         : NULL);
  XVprocSsPtr->DeintPtr       = ((XVprocSsPtr->Config.Deint.IsPresent)       \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Deint)       : NULL);
  XVprocSsPtr->RouterPtr      = ((XVprocSsPtr->Config.Router.IsPresent)      \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Router)      : NULL);
  XVprocSsPtr->RstAxisPtr     = ((XVprocSsPtr->Config.RstAxis.IsPresent)     \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].RstAxis)     : NULL);
  XVprocSsPtr->RstAximmPtr    = ((XVprocSsPtr->Config.RstAximm.IsPresent)    \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].RstAximm)    : NULL);
}
/*****************************************************************************/
/**
* This function queries the subsystem instance configuration to determine
* the included sub-cores. For each sub-core that is present in the design
* the sub-core driver instance is binded with the subsystem sub-core driver
* handle
*
* @param  XVprocSsPtr is a pointer to the Subsystem instance to be worked on.
*
* @return None
*
******************************************************************************/
This function queries the subsystem instance configuration to determine
the included sub-cores. For each sub-core that is present in the design
the sub-core driver instance is binded with the subsystem sub-core driver
handle
This function queries the subsystem instance configuration to determine the included sub - cores . For each sub - core that is present in the design the sub - core driver instance is binded with the subsystem sub - core driver handle
static void GetIncludedSubcores(XVprocSs *XVprocSsPtr)
{
  XVprocSsPtr->HcrsmplrPtr    = ((XVprocSsPtr->Config.HCrsmplr.IsPresent)   \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Hcrsmplr)    : NULL);
  XVprocSsPtr->VcrsmplrInPtr  = ((XVprocSsPtr->Config.VCrsmplrIn.IsPresent)  \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].VcrsmplrIn)  : NULL);
  XVprocSsPtr->VcrsmplrOutPtr = ((XVprocSsPtr->Config.VCrsmplrOut.IsPresent) \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].VcrsmplrOut) : NULL);
  XVprocSsPtr->VscalerPtr     = ((XVprocSsPtr->Config.Vscale.IsPresent)      \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Vscaler)     : NULL);
  XVprocSsPtr->HscalerPtr     = ((XVprocSsPtr->Config.Hscale.IsPresent)      \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Hscaler)     : NULL);
  XVprocSsPtr->VdmaPtr        = ((XVprocSsPtr->Config.Vdma.IsPresent)        \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Vdma)        : NULL);
  XVprocSsPtr->LboxPtr        = ((XVprocSsPtr->Config.Lbox.IsPresent)        \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Lbox)        : NULL);
  XVprocSsPtr->CscPtr         = ((XVprocSsPtr->Config.Csc.IsPresent)         \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Csc)         : NULL);
  XVprocSsPtr->DeintPtr       = ((XVprocSsPtr->Config.Deint.IsPresent)       \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Deint)       : NULL);
  XVprocSsPtr->RouterPtr      = ((XVprocSsPtr->Config.Router.IsPresent)      \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].Router)      : NULL);
  XVprocSsPtr->RstAxisPtr     = ((XVprocSsPtr->Config.RstAxis.IsPresent)     \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].RstAxis)     : NULL);
  XVprocSsPtr->RstAximmPtr    = ((XVprocSsPtr->Config.RstAximm.IsPresent)    \
                              ? (&subcoreRepo[XVprocSsPtr->Config.DeviceId].RstAximm)    : NULL);
}
static void GetIncludedSubcores ( XVprocSs * XVprocSsPtr ) { XVprocSsPtr -> HcrsmplrPtr = ( ( XVprocSsPtr -> Config . HCrsmplr . IsPresent ) ? ( & subcoreRepo [ XVprocSsPtr -> Config . DeviceId ] . Hcrsmplr ) : NULL ) ; XVprocSsPtr -> VcrsmplrInPtr = ( ( XVprocSsPtr -> Config . VCrsmplrIn . IsPresent ) ? ( & subcoreRepo [ XVprocSsPtr -> Config . DeviceId ] . VcrsmplrIn ) : NULL ) ; XVprocSsPtr -> VcrsmplrOutPtr = ( ( XVprocSsPtr -> Config . VCrsmplrOut . IsPresent ) ? ( & subcoreRepo [ XVprocSsPtr -> Config . DeviceId ] . VcrsmplrOut ) : NULL ) ; XVprocSsPtr -> VscalerPtr = ( ( XVprocSsPtr -> Config . Vscale . IsPresent ) ? ( & subcoreRepo [ XVprocSsPtr -> Config . DeviceId ] . Vscaler ) : NULL ) ; XVprocSsPtr -> HscalerPtr = ( ( XVprocSsPtr -> Config . Hscale . IsPresent ) ? ( & subcoreRepo [ XVprocSsPtr -> Config . DeviceId ] . Hscaler ) : NULL ) ; XVprocSsPtr -> VdmaPtr = ( ( XVprocSsPtr -> Config . Vdma . IsPresent ) ? ( & subcoreRepo [ XVprocSsPtr -> Config . DeviceId ] . Vdma ) : NULL ) ; XVprocSsPtr -> LboxPtr = ( ( XVprocSsPtr -> Config . Lbox . IsPresent ) ? ( & subcoreRepo [ XVprocSsPtr -> Config . DeviceId ] . Lbox ) : NULL ) ; XVprocSsPtr -> CscPtr = ( ( XVprocSsPtr -> Config . Csc . IsPresent ) ? ( & subcoreRepo [ XVprocSsPtr -> Config . DeviceId ] . Csc ) : NULL ) ; XVprocSsPtr -> DeintPtr = ( ( XVprocSsPtr -> Config . Deint . IsPresent ) ? ( & subcoreRepo [ XVprocSsPtr -> Config . DeviceId ] . Deint ) : NULL ) ; XVprocSsPtr -> RouterPtr = ( ( XVprocSsPtr -> Config . Router . IsPresent ) ? ( & subcoreRepo [ XVprocSsPtr -> Config . DeviceId ] . Router ) : NULL ) ; XVprocSsPtr -> RstAxisPtr = ( ( XVprocSsPtr -> Config . RstAxis . IsPresent ) ? ( & subcoreRepo [ XVprocSsPtr -> Config . DeviceId ] . RstAxis ) : NULL ) ; XVprocSsPtr -> RstAximmPtr = ( ( XVprocSsPtr -> Config . RstAximm . IsPresent ) ? ( & subcoreRepo [ XVprocSsPtr -> Config . DeviceId ] . RstAximm ) : NULL ) ; }
This function queries the subsystem instance configuration to determine
the included sub-cores.
This function queries the subsystem instance configuration to determine the included sub - cores .