/* In Half duplex GMAC initiates back pressure function.  */
void synopGMAC_tx_activate_flow_control(synopGMACdevice *gmacdev)
/* In Half duplex GMAC initiates back pressure function.  */
void synopGMAC_tx_activate_flow_control(synopGMACdevice *gmacdev)
{
    if (gmacdev->Speed == FULLDUPLEX)
    {
        if (!synopGMACCheckBits(gmacdev->MacBase, GmacFlowControl, GmacFlowControlBackPressure))
            synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacFlowControlBackPressure);
    }
    else
    {
        synopGMACSetBits(gmacdev->MacBase, GmacFlowControl, GmacFlowControlBackPressure);
    }
    return;
}