/* Sets the Mac address in to GMAC register. This function sets the MAC address to the MAC register in question.  */
s32 synopGMAC_set_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr)
/* Sets the Mac address in to GMAC register. This function sets the MAC address to the MAC register in question.  */
s32 synopGMAC_set_mac_addr(synopGMACdevice *gmacdev, u32 MacHigh, u32 MacLow, u8 *MacAddr)
{
    u32 data;
        data = (MacAddr[5] << 8) | MacAddr[4];
        synopGMACWriteReg(gmacdev->MacBase,MacHigh,data);
        data = (MacAddr[3] << 24) | (MacAddr[2] << 16) | (MacAddr[1] << 8) | MacAddr[0] ;
        synopGMACWriteReg(gmacdev->MacBase,MacLow,data);
    return 0;
}