/* Looks up the device configuration based on the unique device ID. The table contains the configuration info for each device in the system. */
XDmaPs_Config* XDmaPs_LookupConfig(u16 DeviceId)
/* Looks up the device configuration based on the unique device ID. The table contains the configuration info for each device in the system. */
XDmaPs_Config* XDmaPs_LookupConfig(u16 DeviceId)
{
	XDmaPs_Config *CfgPtr = NULL;
	int i;
	for (i = 0; i < XPAR_XDMAPS_NUM_INSTANCES; i++) {
		if (XDmaPs_ConfigTable[i].DeviceId == DeviceId) {
			CfgPtr = &XDmaPs_ConfigTable[i];
			break;
		}
	}
	return CfgPtr;
}
/** @}