/* Looks up the device configuration based on the unique device ID. A table contains the configuration info for each device in the system.  */
XIicPs_Config* XIicPs_LookupConfig(u16 DeviceId)
/* Looks up the device configuration based on the unique device ID. A table contains the configuration info for each device in the system.  */
XIicPs_Config* XIicPs_LookupConfig(u16 DeviceId)
{
	XIicPs_Config *CfgPtr = NULL;
	s32 Index;
	for (Index = 0; Index < XPAR_XIICPS_NUM_INSTANCES; Index++) {
		if (XIicPs_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XIicPs_ConfigTable[Index];
			break;
		}
	}
	return (XIicPs_Config *)CfgPtr;
}
/** @}