XilinxProcessorIPLib/drivers/dpdma/src/xdpdma_sinit.c
XDpDma_Config *XDpDma_LookupConfig(u16 DeviceId)
{
	XDpDma_Config *CfgPtr = NULL;
	u32 Index;

	for (Index = 0U; Index < (u32)XPAR_XDPDMA_NUM_INSTANCES; Index++) {
		if (XDpDma_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XDpDma_ConfigTable[Index];
			break;
		}
	}

	return CfgPtr;
}
/******************************************************************************/
/**
 * This function looks for the device configuration based on the unique device
 * ID. The table XDpDma_ConfigTable[] contains the configuration information for
 * each device in the system.
 *
 * @param	DeviceId is the unique device ID of the device being looked up.
 *
 * @return	A pointer to the configuration table entry corresponding to the
 *		given device ID, or NULL if no match is found.
 *
 * @note	None.
 *
*******************************************************************************/
This function looks for the device configuration based on the unique device
ID. The table XDpDma_ConfigTable[] contains the configuration information for
each device in the system.

@param       DeviceId is the unique device ID of the device being looked up.

@return      A pointer to the configuration table entry corresponding to the
given device ID, or NULL if no match is found.

@note        None.
This function looks for the device configuration based on the unique device ID . The table XDpDma_ConfigTable [] contains the configuration information for each device in the system . @param DeviceId is the unique device ID of the device being looked up . @return A pointer to the configuration table entry corresponding to the given device ID or NULL if no match is found . @note None .
XDpDma_Config *XDpDma_LookupConfig(u16 DeviceId)
{
	XDpDma_Config *CfgPtr = NULL;
	u32 Index;
	for (Index = 0U; Index < (u32)XPAR_XDPDMA_NUM_INSTANCES; Index++) {
		if (XDpDma_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XDpDma_ConfigTable[Index];
			break;
		}
	}
	return CfgPtr;
}
XDpDma_Config * XDpDma_LookupConfig ( u16 DeviceId ) { XDpDma_Config * CfgPtr = NULL ; u32 Index ; for ( Index = 0U ; Index < ( u32 ) XPAR_XDPDMA_NUM_INSTANCES ; Index ++ ) { if ( XDpDma_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XDpDma_ConfigTable [ Index ] ; break ; } } return CfgPtr ; }
This function looks for the device configuration based on the unique device
 ID.
This function looks for the device configuration based on the unique device ID .