XilinxProcessorIPLib/drivers/spdif/src/xspdif_sinit.c
int XSpdif_Initialize(XSpdif *InstancePtr, u16 DeviceId)
{
	XSpdif_Config *ConfigPtr; /* Pointer to Configuration ROM data */

	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);

	/*
	 * Lookup the device configuration in the temporary CROM table. Use this
	 * configuration info down below when initializing this component.
	 */
	ConfigPtr = XSpdif_LookupConfig(DeviceId);
	if (ConfigPtr == NULL)
		return XST_DEVICE_NOT_FOUND;

	return XSpdif_CfgInitialize(InstancePtr, ConfigPtr,
			ConfigPtr->BaseAddress);
}
/*****************************************************************************/
/**
 *
 * Initializes a specific Xspdif instance such that the driver is ready to use.
 *
 * @param InstancePtr is a pointer to the XSpdif instance to be worked on.
 * @param DeviceId is the unique id of the device controlled by this XSpdif
 *        instance. Passing in a device id associates the generic XSpdif
 *        instance to a specific device, as chosen by the caller or
 *        application developer.
 *
 * @return
 *   - XST_SUCCESS if successful.
 *   - XST_DEVICE_NOT_FOUND if the device was not found in the configuration
 *     such that initialization could not be accomplished.
 *   - XST_FAILURE if version mismatched
 *
 ******************************************************************************/
Initializes a specific Xspdif instance such that the driver is ready to use.
@param InstancePtr is a pointer to the XSpdif instance to be worked on.
@param DeviceId is the unique id of the device controlled by this XSpdif
instance. Passing in a device id associates the generic XSpdif
instance to a specific device, as chosen by the caller or
application developer.

@return
- XST_SUCCESS if successful.
- XST_DEVICE_NOT_FOUND if the device was not found in the configuration
such that initialization could not be accomplished.
- XST_FAILURE if version mismatched
Initializes a specific Xspdif instance such that the driver is ready to use . @param InstancePtr is a pointer to the XSpdif instance to be worked on . @param DeviceId is the unique id of the device controlled by this XSpdif instance . Passing in a device id associates the generic XSpdif instance to a specific device as chosen by the caller or application developer . @return - XST_SUCCESS if successful . - XST_DEVICE_NOT_FOUND if the device was not found in the configuration such that initialization could not be accomplished . - XST_FAILURE if version mismatched
int XSpdif_Initialize(XSpdif *InstancePtr, u16 DeviceId)
{
	XSpdif_Config *ConfigPtr; 
	Xil_AssertNonvoid(InstancePtr != NULL);
	ConfigPtr = XSpdif_LookupConfig(DeviceId);
	if (ConfigPtr == NULL)
		return XST_DEVICE_NOT_FOUND;
	return XSpdif_CfgInitialize(InstancePtr, ConfigPtr,
			ConfigPtr->BaseAddress);
}
int XSpdif_Initialize ( XSpdif * InstancePtr , u16 DeviceId ) { XSpdif_Config * ConfigPtr ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; ConfigPtr = XSpdif_LookupConfig ( DeviceId ) ; if ( ConfigPtr == NULL ) return XST_DEVICE_NOT_FOUND ; return XSpdif_CfgInitialize ( InstancePtr , ConfigPtr , ConfigPtr -> BaseAddress ) ; }
Initializes a specific Xspdif instance such that the driver is ready to use.
Initializes a specific Xspdif instance such that the driver is ready to use .
/* Pointer to Configuration ROM data */ /* Verify arguments */ /*
	 * Lookup the device configuration in the temporary CROM table. Use this
	 * configuration info down below when initializing this component.
	 */