/* Lookup the device configuration based on the unique device ID. The table contains the configuration info for each device in the system. */
XEmacPs_Config* XEmacPs_LookupConfig(u16 DeviceId)
/* Lookup the device configuration based on the unique device ID. The table contains the configuration info for each device in the system. */
XEmacPs_Config* XEmacPs_LookupConfig(u16 DeviceId)
{
    XEmacPs_Config *CfgPtr = NULL;
    u32 i;
    for (i = 0U; i < (u32)XPAR_XEMACPS_NUM_INSTANCES; i++) {
        if (XEmacPs_ConfigTable[i].DeviceId == DeviceId) {
            CfgPtr = &XEmacPs_ConfigTable[i];
            break;
        }
    }
    return (XEmacPs_Config *)(CfgPtr);
}
/** @}