/* Waits for a packet from the Ethernet controller. */
long EthernetPacketGet(unsigned long ulBase, unsigned char *pucBuf, long lBufLen)
/* Waits for a packet from the Ethernet controller. */
long EthernetPacketGet(unsigned long ulBase, unsigned char *pucBuf, long lBufLen)
{
    ASSERT(ulBase == ETH_BASE);
    ASSERT(pucBuf != 0);
    ASSERT(lBufLen > 0);
    while((HWREG(ulBase + MAC_O_NP) & MAC_NP_NPR_M) == 0)
    {
    }
    return(EthernetPacketGetInternal(ulBase, pucBuf, lBufLen));
}