XilinxProcessorIPLib/drivers/dp12txss/src/xdptxss.c
static void DpTxSs_GetIncludedSubCores(XDpTxSs *InstancePtr)
{
	u32 Index;

#if (XPAR_XDUALSPLITTER_NUM_INSTANCES > 0)
	/* Assign instance of Dual Splitter core */
	InstancePtr->DsPtr = ((InstancePtr->Config.DsSubCore.IsPresent) ?
		(&DpTxSsSubCores[InstancePtr->Config.DeviceId].DsInst) : NULL);
#endif

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

	/* Assign instance of Timer Counter core */
	InstancePtr->TmrCtrPtr =
		((InstancePtr->Config.TmrCtrSubCore.IsPresent) ?
	(&DpTxSsSubCores[InstancePtr->Config.DeviceId].TmrCtrInst) : NULL);

	/* Set Timer Counter instance in HDCP that will be used in callbacks */
	InstancePtr->Hdcp1xPtr->Hdcp1xRef = (void *)InstancePtr->TmrCtrPtr;
#endif

	/* Assign instance of DisplayPort core */
	InstancePtr->DpPtr = ((InstancePtr->Config.DpSubCore.IsPresent) ?
		(&DpTxSsSubCores[InstancePtr->Config.DeviceId].DpInst) : NULL);

	for (Index = 0; Index < InstancePtr->Config.NumMstStreams; Index++) {

		/* Assign instances of VTC core */
		InstancePtr->VtcPtr[Index] =
			((InstancePtr->Config.VtcSubCore[Index].IsPresent) ?
			(&DpTxSsSubCores[
			InstancePtr->Config.DeviceId].VtcInst[Index]) : NULL);
	}
}
/*****************************************************************************/
/**
*
* This function reports list of cores included in DisplayPort TX Subsystem.
*
* @param	InstancePtr is a pointer to the XDpTxSs core instance.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function reports list of cores included in DisplayPort TX Subsystem.
This function reports list of cores included in DisplayPort TX Subsystem .
static void DpTxSs_GetIncludedSubCores(XDpTxSs *InstancePtr)
{
	u32 Index;
#if (XPAR_XDUALSPLITTER_NUM_INSTANCES > 0)
	InstancePtr->DsPtr = ((InstancePtr->Config.DsSubCore.IsPresent) ?
		(&DpTxSsSubCores[InstancePtr->Config.DeviceId].DsInst) : NULL);
#endif
#if (XPAR_XHDCP_NUM_INSTANCES > 0)
	InstancePtr->Hdcp1xPtr =
		((InstancePtr->Config.Hdcp1xSubCore.IsPresent) ?
	(&DpTxSsSubCores[InstancePtr->Config.DeviceId].Hdcp1xInst) : NULL);
	InstancePtr->TmrCtrPtr =
		((InstancePtr->Config.TmrCtrSubCore.IsPresent) ?
	(&DpTxSsSubCores[InstancePtr->Config.DeviceId].TmrCtrInst) : NULL);
	InstancePtr->Hdcp1xPtr->Hdcp1xRef = (void *)InstancePtr->TmrCtrPtr;
#endif
	InstancePtr->DpPtr = ((InstancePtr->Config.DpSubCore.IsPresent) ?
		(&DpTxSsSubCores[InstancePtr->Config.DeviceId].DpInst) : NULL);
	for (Index = 0; Index < InstancePtr->Config.NumMstStreams; Index++) {
		InstancePtr->VtcPtr[Index] =
			((InstancePtr->Config.VtcSubCore[Index].IsPresent) ?
			(&DpTxSsSubCores[
			InstancePtr->Config.DeviceId].VtcInst[Index]) : NULL);
	}
}
static void DpTxSs_GetIncludedSubCores ( XDpTxSs * InstancePtr ) { u32 Index ; #if ( XPAR_XDUALSPLITTER_NUM_INSTANCES > 0 ) InstancePtr -> DsPtr = ( ( InstancePtr -> Config . DsSubCore . IsPresent ) ? ( & DpTxSsSubCores [ InstancePtr -> Config . DeviceId ] . DsInst ) : NULL ) ; #endif #if ( XPAR_XHDCP_NUM_INSTANCES > 0 ) InstancePtr -> Hdcp1xPtr = ( ( InstancePtr -> Config . Hdcp1xSubCore . IsPresent ) ? ( & DpTxSsSubCores [ InstancePtr -> Config . DeviceId ] . Hdcp1xInst ) : NULL ) ; InstancePtr -> TmrCtrPtr = ( ( InstancePtr -> Config . TmrCtrSubCore . IsPresent ) ? ( & DpTxSsSubCores [ InstancePtr -> Config . DeviceId ] . TmrCtrInst ) : NULL ) ; InstancePtr -> Hdcp1xPtr -> Hdcp1xRef = ( void * ) InstancePtr -> TmrCtrPtr ; #endif InstancePtr -> DpPtr = ( ( InstancePtr -> Config . DpSubCore . IsPresent ) ? ( & DpTxSsSubCores [ InstancePtr -> Config . DeviceId ] . DpInst ) : NULL ) ; for ( Index = 0 ; Index < InstancePtr -> Config . NumMstStreams ; Index ++ ) { InstancePtr -> VtcPtr [ Index ] = ( ( InstancePtr -> Config . VtcSubCore [ Index ] . IsPresent ) ? ( & DpTxSsSubCores [ InstancePtr -> Config . DeviceId ] . VtcInst [ Index ] ) : NULL ) ; } }
This function reports list of cores included in DisplayPort TX Subsystem.
This function reports list of cores included in DisplayPort TX Subsystem .
/* Assign instance of Dual Splitter core */ /* Assign instance of HDCP core */ /* Assign instance of Timer Counter core */ /* Set Timer Counter instance in HDCP that will be used in callbacks */ /* Assign instance of DisplayPort core */ /* Assign instances of VTC core */