/* Gets the MAC address of the Ethernet controller. */
void EthernetMACAddrGet(unsigned long ulBase, unsigned char *pucMACAddr)
/* Gets the MAC address of the Ethernet controller. */
void EthernetMACAddrGet(unsigned long ulBase, unsigned char *pucMACAddr)
{
    unsigned long ulTemp;
    unsigned char *pucTemp = (unsigned char *)&ulTemp;
    ASSERT(ulBase == ETH_BASE);
    ASSERT(pucMACAddr != 0);
    ulTemp = HWREG(ulBase + MAC_O_IA0);
    pucMACAddr[0] = pucTemp[0];
    pucMACAddr[1] = pucTemp[1];
    pucMACAddr[2] = pucTemp[2];
    pucMACAddr[3] = pucTemp[3];
    ulTemp = HWREG(ulBase + MAC_O_IA1);
    pucMACAddr[4] = pucTemp[0];
    pucMACAddr[5] = pucTemp[1];
}