XilinxProcessorIPLib/drivers/dual_splitter/src/xdualsplitter.c
s32 XDualSplitter_CfgInitialize(XDualSplitter *InstancePtr,
				XDualSplitter_Config *CfgPtr,
				u32 EffectiveAddr)
{
	/* Verify arguments. */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(CfgPtr != NULL);
	Xil_AssertNonvoid(EffectiveAddr != (u32)0x0);


	/* Setup the instance */
	(void)memset((void *)InstancePtr, 0, sizeof(XDualSplitter));
	(void)memcpy((void *)&(InstancePtr->Config), (const void *)CfgPtr,
			sizeof(XDualSplitter_Config));
	InstancePtr->Config.BaseAddress = EffectiveAddr;

	/* Set all handlers to stub values, let user configure
	 * this data later
	 */
	InstancePtr->ErrCallback =
			(XDualSplitter_ErrCallback)((void *)StubErrCallback);

	/* Reset the hardware and set the flag to indicate the driver is
	 * ready
	 */
	XDualSplitter_Reset(InstancePtr);
	InstancePtr->IsReady = XIL_COMPONENT_IS_READY;

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function initializes the Dual Splitter core. This function must be
* called prior to using the Dual Splitter core. Initialization of the core
* includes setting up the instance data and ensuring the hardware is in a
* quiescent state.
*
* @param	InstancePtr is a pointer to the XDualSplitter core instance.
* @param	CfgPtr points to the configuration structure associated with
*		the Dual Splitter core.
* @param	EffectiveAddr is the base address of the device. If address
*		translation is being used, then this parameter must reflect the
*		virtual base address. Otherwise, the physical address should be
*		used.
*
* @return
*		- XST_SUCCESS if XDualSplitter_CfgInitialize was successful.
*
* @note		None.
*
******************************************************************************/
This function initializes the Dual Splitter core. This function must be
called prior to using the Dual Splitter core. Initialization of the core
includes setting up the instance data and ensuring the hardware is in a
quiescent state.
This function initializes the Dual Splitter core . This function must be called prior to using the Dual Splitter core . Initialization of the core includes setting up the instance data and ensuring the hardware is in a quiescent state .
s32 XDualSplitter_CfgInitialize(XDualSplitter *InstancePtr,
				XDualSplitter_Config *CfgPtr,
				u32 EffectiveAddr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(CfgPtr != NULL);
	Xil_AssertNonvoid(EffectiveAddr != (u32)0x0);
	(void)memset((void *)InstancePtr, 0, sizeof(XDualSplitter));
	(void)memcpy((void *)&(InstancePtr->Config), (const void *)CfgPtr,
			sizeof(XDualSplitter_Config));
	InstancePtr->Config.BaseAddress = EffectiveAddr;
	InstancePtr->ErrCallback =
			(XDualSplitter_ErrCallback)((void *)StubErrCallback);
	XDualSplitter_Reset(InstancePtr);
	InstancePtr->IsReady = XIL_COMPONENT_IS_READY;
	return XST_SUCCESS;
}
s32 XDualSplitter_CfgInitialize ( XDualSplitter * InstancePtr , XDualSplitter_Config * CfgPtr , u32 EffectiveAddr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( CfgPtr != NULL ) ; Xil_AssertNonvoid ( EffectiveAddr != ( u32 ) 0x0 ) ; ( void ) memset ( ( void * ) InstancePtr , 0 , sizeof ( XDualSplitter ) ) ; ( void ) memcpy ( ( void * ) & ( InstancePtr -> Config ) , ( const void * ) CfgPtr , sizeof ( XDualSplitter_Config ) ) ; InstancePtr -> Config . BaseAddress = EffectiveAddr ; InstancePtr -> ErrCallback = ( XDualSplitter_ErrCallback ) ( ( void * ) StubErrCallback ) ; XDualSplitter_Reset ( InstancePtr ) ; InstancePtr -> IsReady = XIL_COMPONENT_IS_READY ; return XST_SUCCESS ; }
This function initializes the Dual Splitter core.
This function initializes the Dual Splitter core .
/* Verify arguments. */ /* Setup the instance */ /* Set all handlers to stub values, let user configure
	 * this data later
	 */ /* Reset the hardware and set the flag to indicate the driver is
	 * ready
	 */