XilinxProcessorIPLib/drivers/dp14rxss/src/xdprxss.c
static void DpRxSs_GetIncludedSubCores(XDpRxSs *InstancePtr)
{
	/* Assign instance of DisplayPort core */
	InstancePtr->DpPtr = ((InstancePtr->Config.DpSubCore.IsPresent) ?
		(&DpRxSsSubCores[InstancePtr->Config.DeviceId].DpInst) : NULL);
#ifdef XPAR_XIIC_NUM_INSTANCES
	if (InstancePtr->Config.IncludeAxiIic) {
	/* Assign instance of IIC core */
		InstancePtr->IicPtr =
			((InstancePtr->Config.DpSubCore.IsPresent) ?
			(&DpRxSsSubCores[InstancePtr->Config.DeviceId].IicInst)
			: NULL);
	}
#endif

#if (XPAR_DPRXSS_0_HDCP_ENABLE > 0)
	/* Assign instance of HDCP core */
	InstancePtr->Hdcp1xPtr =
		((InstancePtr->Config.Hdcp1xSubCore.IsPresent) ?
	(&DpRxSsSubCores[InstancePtr->Config.DeviceId].Hdcp1xInst) : NULL);
#endif

#if (((XPAR_DPRXSS_0_HDCP_ENABLE > 0) || \
	(XPAR_XHDCP22_RX_NUM_INSTANCES > 0)) \
		&& (XPAR_XTMRCTR_NUM_INSTANCES > 0))
	/* Assign instance of Timer Counter core */
	InstancePtr->TmrCtrPtr =
		((InstancePtr->Config.TmrCtrSubCore.IsPresent) ?
	(&DpRxSsSubCores[InstancePtr->Config.DeviceId].TmrCtrInst) : NULL);
#endif

#if (XPAR_DPRXSS_0_HDCP_ENABLE > 0)
	InstancePtr->Hdcp1xPtr->Hdcp1xRef = (void *)InstancePtr->TmrCtrPtr;
#endif


#if (XPAR_XHDCP22_RX_NUM_INSTANCES > 0)
	/*Assign Instance of HDCP22 core*/
	InstancePtr->Hdcp22Ptr =
		((InstancePtr->Config.Hdcp22SubCore.IsPresent) ?
		 (&DpRxSsSubCores[InstancePtr->Config.DeviceId].Hdcp22Inst) :
		 NULL);
#endif
}
/*****************************************************************************/
/**
*
* This function reports list of cores included in DisplayPort RX Subsystem.
*
* @param	InstancePtr is a pointer to the XDpRxSs core instance.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function reports list of cores included in DisplayPort RX Subsystem.
This function reports list of cores included in DisplayPort RX Subsystem .
static void DpRxSs_GetIncludedSubCores(XDpRxSs *InstancePtr)
{
	InstancePtr->DpPtr = ((InstancePtr->Config.DpSubCore.IsPresent) ?
		(&DpRxSsSubCores[InstancePtr->Config.DeviceId].DpInst) : NULL);
#ifdef XPAR_XIIC_NUM_INSTANCES
	if (InstancePtr->Config.IncludeAxiIic) {
		InstancePtr->IicPtr =
			((InstancePtr->Config.DpSubCore.IsPresent) ?
			(&DpRxSsSubCores[InstancePtr->Config.DeviceId].IicInst)
			: NULL);
	}
#endif
#if (XPAR_DPRXSS_0_HDCP_ENABLE > 0)
	InstancePtr->Hdcp1xPtr =
		((InstancePtr->Config.Hdcp1xSubCore.IsPresent) ?
	(&DpRxSsSubCores[InstancePtr->Config.DeviceId].Hdcp1xInst) : NULL);
#endif
#if (((XPAR_DPRXSS_0_HDCP_ENABLE > 0) || \
	(XPAR_XHDCP22_RX_NUM_INSTANCES > 0)) \
		&& (XPAR_XTMRCTR_NUM_INSTANCES > 0))
	InstancePtr->TmrCtrPtr =
		((InstancePtr->Config.TmrCtrSubCore.IsPresent) ?
	(&DpRxSsSubCores[InstancePtr->Config.DeviceId].TmrCtrInst) : NULL);
#endif
#if (XPAR_DPRXSS_0_HDCP_ENABLE > 0)
	InstancePtr->Hdcp1xPtr->Hdcp1xRef = (void *)InstancePtr->TmrCtrPtr;
#endif
#if (XPAR_XHDCP22_RX_NUM_INSTANCES > 0)
	InstancePtr->Hdcp22Ptr =
		((InstancePtr->Config.Hdcp22SubCore.IsPresent) ?
		 (&DpRxSsSubCores[InstancePtr->Config.DeviceId].Hdcp22Inst) :
		 NULL);
#endif
}
static void DpRxSs_GetIncludedSubCores ( XDpRxSs * InstancePtr ) { InstancePtr -> DpPtr = ( ( InstancePtr -> Config . DpSubCore . IsPresent ) ? ( & DpRxSsSubCores [ InstancePtr -> Config . DeviceId ] . DpInst ) : NULL ) ; #ifdef XPAR_XIIC_NUM_INSTANCES if ( InstancePtr -> Config . IncludeAxiIic ) { InstancePtr -> IicPtr = ( ( InstancePtr -> Config . DpSubCore . IsPresent ) ? ( & DpRxSsSubCores [ InstancePtr -> Config . DeviceId ] . IicInst ) : NULL ) ; } #endif #if ( XPAR_DPRXSS_0_HDCP_ENABLE > 0 ) InstancePtr -> Hdcp1xPtr = ( ( InstancePtr -> Config . Hdcp1xSubCore . IsPresent ) ? ( & DpRxSsSubCores [ InstancePtr -> Config . DeviceId ] . Hdcp1xInst ) : NULL ) ; #endif #if ( ( ( XPAR_DPRXSS_0_HDCP_ENABLE > 0 ) || ( XPAR_XHDCP22_RX_NUM_INSTANCES > 0 ) ) && ( XPAR_XTMRCTR_NUM_INSTANCES > 0 ) ) InstancePtr -> TmrCtrPtr = ( ( InstancePtr -> Config . TmrCtrSubCore . IsPresent ) ? ( & DpRxSsSubCores [ InstancePtr -> Config . DeviceId ] . TmrCtrInst ) : NULL ) ; #endif #if ( XPAR_DPRXSS_0_HDCP_ENABLE > 0 ) InstancePtr -> Hdcp1xPtr -> Hdcp1xRef = ( void * ) InstancePtr -> TmrCtrPtr ; #endif #if ( XPAR_XHDCP22_RX_NUM_INSTANCES > 0 ) InstancePtr -> Hdcp22Ptr = ( ( InstancePtr -> Config . Hdcp22SubCore . IsPresent ) ? ( & DpRxSsSubCores [ InstancePtr -> Config . DeviceId ] . Hdcp22Inst ) : NULL ) ; #endif }
This function reports list of cores included in DisplayPort RX Subsystem.
This function reports list of cores included in DisplayPort RX Subsystem .
/* Assign instance of DisplayPort core */ /* Assign instance of IIC core */ /* Assign instance of HDCP core */ /* Assign instance of Timer Counter core */ /*Assign Instance of HDCP22 core*/