/* Clean up process after a packet is received.  */
void EMAC_RecvPktDoneWoRxTrigger(EMAC_MEMMGR_T *psMemMgr)
/* Clean up process after a packet is received.  */
void EMAC_RecvPktDoneWoRxTrigger(EMAC_MEMMGR_T *psMemMgr)
{
    EMAC_DESCRIPTOR_T *desc = (EMAC_DESCRIPTOR_T *)psMemMgr->psCurrentRxDesc;
    desc->u32Data = desc->u32Backup1;
    desc->u32Next = desc->u32Backup2;
    desc->u32Status1 |= EMAC_DESC_OWN_EMAC;
    desc = (EMAC_DESCRIPTOR_T *)desc->u32Next;
    psMemMgr->psCurrentRxDesc = desc;
}