XilinxProcessorIPLib/drivers/axicdma/src/xaxicdma_sinit.c
XAxiCdma_Config *XAxiCdma_LookupConfig(u32 DeviceId)
{
	extern XAxiCdma_Config XAxiCdma_ConfigTable[];
	XAxiCdma_Config *CfgPtr = NULL;
	int i;

	for (i = 0; i < XPAR_XAXICDMA_NUM_INSTANCES; i++) {

		if (XAxiCdma_ConfigTable[i].DeviceId == DeviceId) {

			CfgPtr = &XAxiCdma_ConfigTable[i];
			break;
		}
	}

	return CfgPtr;
}
/*****************************************************************************/
/**
 * Look up the hardware configuration for a device instance
 *
 * @param	DeviceId is the unique device ID of the device to lookup for
 *
 * @return	The configuration structure for the device. If the device ID
 *		is not found,a NULL pointer is returned.
 *
 * @note	None.
 *
 ******************************************************************************/
Look up the hardware configuration for a device instance
@param       DeviceId is the unique device ID of the device to lookup for

@return      The configuration structure for the device. If the device ID
is not found,a NULL pointer is returned.

@note        None.
Look up the hardware configuration for a device instance @param DeviceId is the unique device ID of the device to lookup for @return The configuration structure for the device . If the device ID is not found a NULL pointer is returned . @note None .
XAxiCdma_Config *XAxiCdma_LookupConfig(u32 DeviceId)
{
	extern XAxiCdma_Config XAxiCdma_ConfigTable[];
	XAxiCdma_Config *CfgPtr = NULL;
	int i;
	for (i = 0; i < XPAR_XAXICDMA_NUM_INSTANCES; i++) {
		if (XAxiCdma_ConfigTable[i].DeviceId == DeviceId) {
			CfgPtr = &XAxiCdma_ConfigTable[i];
			break;
		}
	}
	return CfgPtr;
}
XAxiCdma_Config * XAxiCdma_LookupConfig ( u32 DeviceId ) { extern XAxiCdma_Config XAxiCdma_ConfigTable [ ] ; XAxiCdma_Config * CfgPtr = NULL ; int i ; for ( i = 0 ; i < XPAR_XAXICDMA_NUM_INSTANCES ; i ++ ) { if ( XAxiCdma_ConfigTable [ i ] . DeviceId == DeviceId ) { CfgPtr = & XAxiCdma_ConfigTable [ i ] ; break ; } } return CfgPtr ; }
Look up the hardware configuration for a device instance
 @param       DeviceId is the unique device ID of the device to lookup for
Look up the hardware configuration for a device instance @param DeviceId is the unique device ID of the device to lookup for