/* This function will enable the controller's transmitter and receiver, and will reset the receive FIFO. */
void EthernetEnable(unsigned long ulBase)
/* This function will enable the controller's transmitter and receiver, and will reset the receive FIFO. */
void EthernetEnable(unsigned long ulBase)
{
    ASSERT(ulBase == ETH_BASE);
    HWREG(ulBase + MAC_O_RCTL) |= MAC_RCTL_RSTFIFO;
    HWREG(ulBase + MAC_O_RCTL) |= MAC_RCTL_RXEN;
    HWREG(ulBase + MAC_O_TCTL) |= MAC_TCTL_TXEN;
    HWREG(ulBase + MAC_O_RCTL) |= MAC_RCTL_RSTFIFO;
}