XilinxProcessorIPLib/drivers/v_sdirxss/src/xv_sdirxss_coreinit.c
int XV_SdiRxSs_SubcoreInitSdiRx(XV_SdiRxSs *SdiRxSsPtr)
{
	int Status;
	XV_SdiRx_Config *ConfigPtr;

	if (SdiRxSsPtr->SdiRxPtr) {
		/* Get core configuration */
		XV_SdiRxSs_LogWrite(SdiRxSsPtr, XV_SDIRXSS_LOG_EVT_SDIRX_INIT, 0);
		ConfigPtr = XV_SdiRx_LookupConfig(SdiRxSsPtr->Config.SdiRx.DeviceId);
		if (ConfigPtr == NULL) {
			xdbg_printf(XDBG_DEBUG_GENERAL,
				"SDIRXSS ERR:: SDI RX device not found\r\n");
			return XST_FAILURE;
		}

		/* Initialize core */
		Status = XV_SdiRx_CfgInitialize(SdiRxSsPtr->SdiRxPtr,
		ConfigPtr,
		SdiRxSsPtr->Config.SdiRx.AbsAddr);

		if (Status != XST_SUCCESS) {
			xdbg_printf(XDBG_DEBUG_GENERAL,
				"SDIRXSS ERR:: SDI RX Initialization failed\r\n");
			return XST_FAILURE;
		}

		/* Set bit depth into sdirx core*/
		XV_SdiRx_SetBitDepth(SdiRxSsPtr->SdiRxPtr,
				SdiRxSsPtr->Config.bitdepth);
	}

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
* This function initializes the included sub-core to it's static configuration
*
* @param	SdiRxSsPtr is a pointer to the Subsystem instance to be worked on.
*
* @return	XST_SUCCESS/XST_FAILURE
*
******************************************************************************/
This function initializes the included sub-core to it's static configuration
This function initializes the included sub - core to it ' s static configuration
int XV_SdiRxSs_SubcoreInitSdiRx(XV_SdiRxSs *SdiRxSsPtr)
{
	int Status;
	XV_SdiRx_Config *ConfigPtr;
	if (SdiRxSsPtr->SdiRxPtr) {
		XV_SdiRxSs_LogWrite(SdiRxSsPtr, XV_SDIRXSS_LOG_EVT_SDIRX_INIT, 0);
		ConfigPtr = XV_SdiRx_LookupConfig(SdiRxSsPtr->Config.SdiRx.DeviceId);
		if (ConfigPtr == NULL) {
			xdbg_printf(XDBG_DEBUG_GENERAL,
				"SDIRXSS ERR:: SDI RX device not found\r\n");
			return XST_FAILURE;
		}
		Status = XV_SdiRx_CfgInitialize(SdiRxSsPtr->SdiRxPtr,
		ConfigPtr,
		SdiRxSsPtr->Config.SdiRx.AbsAddr);
		if (Status != XST_SUCCESS) {
			xdbg_printf(XDBG_DEBUG_GENERAL,
				"SDIRXSS ERR:: SDI RX Initialization failed\r\n");
			return XST_FAILURE;
		}
		XV_SdiRx_SetBitDepth(SdiRxSsPtr->SdiRxPtr,
				SdiRxSsPtr->Config.bitdepth);
	}
	return XST_SUCCESS;
}
int XV_SdiRxSs_SubcoreInitSdiRx ( XV_SdiRxSs * SdiRxSsPtr ) { int Status ; XV_SdiRx_Config * ConfigPtr ; if ( SdiRxSsPtr -> SdiRxPtr ) { XV_SdiRxSs_LogWrite ( SdiRxSsPtr , XV_SDIRXSS_LOG_EVT_SDIRX_INIT , 0 ) ; ConfigPtr = XV_SdiRx_LookupConfig ( SdiRxSsPtr -> Config . SdiRx . DeviceId ) ; if ( ConfigPtr == NULL ) { xdbg_printf ( XDBG_DEBUG_GENERAL , " \r \n " ) ; return XST_FAILURE ; } Status = XV_SdiRx_CfgInitialize ( SdiRxSsPtr -> SdiRxPtr , ConfigPtr , SdiRxSsPtr -> Config . SdiRx . AbsAddr ) ; if ( Status != XST_SUCCESS ) { xdbg_printf ( XDBG_DEBUG_GENERAL , " \r \n " ) ; return XST_FAILURE ; } XV_SdiRx_SetBitDepth ( SdiRxSsPtr -> SdiRxPtr , SdiRxSsPtr -> Config . bitdepth ) ; } return XST_SUCCESS ; }
This function initializes the included sub-core to it's static configuration
This function initializes the included sub - core to it ' s static configuration
/* Get core configuration */ /* Initialize core */ /* Set bit depth into sdirx core*/