/* Checks whether the packet received is a magic packet?.  */
bool synopGMAC_is_magic_packet_received(synopGMACdevice *gmacdev)
/* Checks whether the packet received is a magic packet?.  */
bool synopGMAC_is_magic_packet_received(synopGMACdevice *gmacdev)
{
    u32 data;
    data =  synopGMACReadReg(gmacdev->MacBase,GmacPmtCtrlStatus);
    return((data & GmacPmtMagicPktReceived) == GmacPmtMagicPktReceived);
}