/* Returns the current MDC divider value programmed in the ip. */
u32 synopGMAC_get_mdc_clk_div(synopGMACdevice *gmacdev)
/* Returns the current MDC divider value programmed in the ip. */
u32 synopGMAC_get_mdc_clk_div(synopGMACdevice *gmacdev)
{
    u32 data;
    data = synopGMACReadReg(gmacdev->MacBase, GmacGmiiAddr);
    data &= GmiiCsrClkMask;
    return data;
}