/* Checks whether this rx descriptor is last rx descriptor. This returns true if it is last descriptor either in ring mode or in chain mode.  */
bool synopGMAC_is_last_rx_desc(synopGMACdevice *gmacdev, DmaDesc *desc)
/* Checks whether this rx descriptor is last rx descriptor. This returns true if it is last descriptor either in ring mode or in chain mode.  */
bool synopGMAC_is_last_rx_desc(synopGMACdevice *gmacdev, DmaDesc *desc)
{
    return (((desc->length & RxDescEndOfRing) == RxDescEndOfRing));
}