/* Function to read the GMAC IP Version and populates the same in device data structure.  */
s32 synopGMAC_read_version(synopGMACdevice *gmacdev)
/* Function to read the GMAC IP Version and populates the same in device data structure.  */
s32 synopGMAC_read_version(synopGMACdevice *gmacdev)
{
    u32 data = 0;
    data = synopGMACReadReg(gmacdev->MacBase, GmacVersion);
    gmacdev->Version = data;
    TR("The data read from %08x is %08x\n", (gmacdev->MacBase + GmacVersion), data);
    return 0;
}