/* Lookup the device configuration based on the unique device ID. The table EmacConfigTable contains the configuration info for each device in the system. */
XEmac_Config* XEmac_LookupConfig(u16 DeviceId)
/* Lookup the device configuration based on the unique device ID. The table EmacConfigTable contains the configuration info for each device in the system. */
XEmac_Config* XEmac_LookupConfig(u16 DeviceId)
{
	XEmac_Config *CfgPtr = NULL;
	int i;
	for (i = 0; i < XPAR_XEMAC_NUM_INSTANCES; i++) {
		if (XEmac_ConfigTable[i].DeviceId == DeviceId) {
			CfgPtr = &XEmac_ConfigTable[i];
			break;
		}
	}
	return CfgPtr;
}