lib/sw_services/xilloader/src/xloader_cfi.c
int XLoader_CframeInit(void)
{
	int Status = XST_FAILURE;
	XCframe_Config *Config;

	if (XLoader_CframeIns.IsReady != (u8)FALSE) {
		Status = XST_SUCCESS;
		goto END;
	}

	/**
	 * Initialize the Cframe driver so that it's ready to use
	 * look up the configuration in the config table,
	 * then initialize it.
	 */
	Config = XCframe_LookupConfig((u16)XPAR_XCFRAME_0_DEVICE_ID);
	if (NULL == Config) {
		Status = XPlmi_UpdateStatus(XLOADER_ERR_CFRAME_LOOKUP, 0);
		goto END;
	}

	Status = XCframe_CfgInitialize(&XLoader_CframeIns, Config,
				Config->BaseAddress);
	if (Status != XST_SUCCESS) {
		Status = XPlmi_UpdateStatus(XLOADER_ERR_CFRAME_CFG, Status);
	}

END:
	return Status;
}
/*****************************************************************************/
/**
 * @brief	This function initializes the Cframe driver.
 *
 * @return	XST_SUCCESS on success and error code on failure
 *
 ******************************************************************************/
@brief       This function initializes the Cframe driver.
@return      XST_SUCCESS on success and error code on failure
@brief This function initializes the Cframe driver . @return XST_SUCCESS on success and error code on failure
int XLoader_CframeInit(void)
{
	int Status = XST_FAILURE;
	XCframe_Config *Config;
	if (XLoader_CframeIns.IsReady != (u8)FALSE) {
		Status = XST_SUCCESS;
		goto END;
	}
	Config = XCframe_LookupConfig((u16)XPAR_XCFRAME_0_DEVICE_ID);
	if (NULL == Config) {
		Status = XPlmi_UpdateStatus(XLOADER_ERR_CFRAME_LOOKUP, 0);
		goto END;
	}
	Status = XCframe_CfgInitialize(&XLoader_CframeIns, Config,
				Config->BaseAddress);
	if (Status != XST_SUCCESS) {
		Status = XPlmi_UpdateStatus(XLOADER_ERR_CFRAME_CFG, Status);
	}
END:
	return Status;
}
int XLoader_CframeInit ( void ) { int Status = XST_FAILURE ; XCframe_Config * Config ; if ( XLoader_CframeIns . IsReady != ( u8 ) FALSE ) { Status = XST_SUCCESS ; goto END ; } Config = XCframe_LookupConfig ( ( u16 ) XPAR_XCFRAME_0_DEVICE_ID ) ; if ( NULL == Config ) { Status = XPlmi_UpdateStatus ( XLOADER_ERR_CFRAME_LOOKUP , 0 ) ; goto END ; } Status = XCframe_CfgInitialize ( & XLoader_CframeIns , Config , Config -> BaseAddress ) ; if ( Status != XST_SUCCESS ) { Status = XPlmi_UpdateStatus ( XLOADER_ERR_CFRAME_CFG , Status ) ; } END : return Status ; }
@brief       This function initializes the Cframe driver.
@brief This function initializes the Cframe driver .
/**
	 * Initialize the Cframe driver so that it's ready to use
	 * look up the configuration in the config table,
	 * then initialize it.
	 */