/* Clears all the pending interrupts. If the Dma status register is read then all the interrupts gets cleared  */
void synopGMAC_clear_interrupt(synopGMACdevice *gmacdev)
/* Clears all the pending interrupts. If the Dma status register is read then all the interrupts gets cleared  */
void synopGMAC_clear_interrupt(synopGMACdevice *gmacdev)
{
    u32 data;
    data = synopGMACReadReg(gmacdev->DmaBase, DmaStatus);
    TR("DMA status reg = 0x%x before cleared!\n", data);
    synopGMACWriteReg(gmacdev->DmaBase, DmaStatus, data);
    TR("DMA status reg = 0x%x after cleared!\n", data);
}