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