XilinxProcessorIPLib/drivers/prd/src/xprd.c
s32 XPrd_CfgInitialize(XPrd *InstancePtr, XPrd_Config *ConfigPtr,
				u32 EffectiveAddress)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(ConfigPtr != NULL);
	Xil_AssertNonvoid(EffectiveAddress != 0x00);

	/**
	 * Set some default values for instance data, don't indicate the
	 * device is ready to use until everything has been initialized
	 * successfully.
	 */
	InstancePtr->Config.BaseAddress = EffectiveAddress;
	InstancePtr->Config.DeviceId = ConfigPtr->DeviceId;

	/* Indicate the component is now ready to use */
	InstancePtr->IsReady = XIL_COMPONENT_IS_READY;

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function initializes a XPrd instance/driver.
*
* @param	InstancePtr is a pointer to the XPrd instance.
* @param	ConfigPtr points to the XPrd device configuration structure.
* @param	EffectiveAddress is the device base address in the virtual
*		memory address space. If the address translation is not used
*		then the physical address is passed.
*
* @return
*		- XST_SUCCESS if initialization was successful.
*
* @note		None.
*
******************************************************************************/
This function initializes a XPrd instance/driver.
This function initializes a XPrd instance / driver .
s32 XPrd_CfgInitialize(XPrd *InstancePtr, XPrd_Config *ConfigPtr,
				u32 EffectiveAddress)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(ConfigPtr != NULL);
	Xil_AssertNonvoid(EffectiveAddress != 0x00);
	InstancePtr->Config.BaseAddress = EffectiveAddress;
	InstancePtr->Config.DeviceId = ConfigPtr->DeviceId;
	InstancePtr->IsReady = XIL_COMPONENT_IS_READY;
	return XST_SUCCESS;
}
s32 XPrd_CfgInitialize ( XPrd * InstancePtr , XPrd_Config * ConfigPtr , u32 EffectiveAddress ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( ConfigPtr != NULL ) ; Xil_AssertNonvoid ( EffectiveAddress != 0x00 ) ; InstancePtr -> Config . BaseAddress = EffectiveAddress ; InstancePtr -> Config . DeviceId = ConfigPtr -> DeviceId ; InstancePtr -> IsReady = XIL_COMPONENT_IS_READY ; return XST_SUCCESS ; }
This function initializes a XPrd instance/driver.
This function initializes a XPrd instance / driver .
/**
	 * Set some default values for instance data, don't indicate the
	 * device is ready to use until everything has been initialized
	 * successfully.
	 */ /* Indicate the component is now ready to use */