/* Gets the current configuration of the Ethernet controller. */
unsigned long EthernetConfigGet(unsigned long ulBase)
/* Gets the current configuration of the Ethernet controller. */
unsigned long EthernetConfigGet(unsigned long ulBase)
{
    unsigned long ulConfig;
    ASSERT(ulBase == ETH_BASE);
    ulConfig = HWREG(ulBase + MAC_O_TS) << 16;
    ulConfig |= (HWREG(ulBase + MAC_O_RCTL) & ~(MAC_RCTL_RXEN)) << 8;
    ulConfig |= HWREG(ulBase + MAC_O_TCTL) & ~(MAC_TCTL_TXEN);
    return(ulConfig);
}