XilinxProcessorIPLib/drivers/cfupmc/src/xcfupmc.c
s32 XCfupmc_CfgInitialize(XCfupmc *InstancePtr, const XCfupmc_Config *CfgPtr,
			u32 EffectiveAddr)
{
	/* Verify arguments. */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(CfgPtr != NULL);
	Xil_AssertNonvoid(EffectiveAddr != 0U);

	/* Setup the instance */
	(void)memcpy((void *)&(InstancePtr->Config), (const void *)CfgPtr,
		sizeof(XCfupmc_Config));
	InstancePtr->Config.BaseAddress = EffectiveAddr;
	InstancePtr->IsReady = (u32)(XIL_COMPONENT_IS_READY);

	return (s32)XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function initializes an CFU core. This function must be called
* prior to using an CFU driver.
*
* @param	InstancePtr is a pointer to the XCfupmc instance.
* @param	CfgPtr is a reference to a structure containing information
*		about a specific XCfupmc instance.
* @param	EffectiveAddr is the device base address in the virtual memory
*		address space. The caller is responsible for keeping the
*		address mapping from EffectiveAddr to the device physical
*		base address unchanged once this function is invoked.
*		Unexpected errors may occur if the address mapping changes
*		after this function is called. If address translation is not
*		used, pass in the physical address instead.
*
* @return
*		- XST_SUCCESS if initialization was successful.
*
******************************************************************************/
This function initializes an CFU core. This function must be called
prior to using an CFU driver.
This function initializes an CFU core . This function must be called prior to using an CFU driver .
s32 XCfupmc_CfgInitialize(XCfupmc *InstancePtr, const XCfupmc_Config *CfgPtr,
			u32 EffectiveAddr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(CfgPtr != NULL);
	Xil_AssertNonvoid(EffectiveAddr != 0U);
	(void)memcpy((void *)&(InstancePtr->Config), (const void *)CfgPtr,
		sizeof(XCfupmc_Config));
	InstancePtr->Config.BaseAddress = EffectiveAddr;
	InstancePtr->IsReady = (u32)(XIL_COMPONENT_IS_READY);
	return (s32)XST_SUCCESS;
}
s32 XCfupmc_CfgInitialize ( XCfupmc * InstancePtr , const XCfupmc_Config * CfgPtr , u32 EffectiveAddr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( CfgPtr != NULL ) ; Xil_AssertNonvoid ( EffectiveAddr != 0U ) ; ( void ) memcpy ( ( void * ) & ( InstancePtr -> Config ) , ( const void * ) CfgPtr , sizeof ( XCfupmc_Config ) ) ; InstancePtr -> Config . BaseAddress = EffectiveAddr ; InstancePtr -> IsReady = ( u32 ) ( XIL_COMPONENT_IS_READY ) ; return ( s32 ) XST_SUCCESS ; }
This function initializes an CFU core.
This function initializes an CFU core .
/* Verify arguments. */ /* Setup the instance */