1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

At some point in the past, we read the PROM by words. Now we read

PROM by bytes.  Adjust the extraction of the MAC address from this data
to reflect this change.

This gets the AX88x90 based PC Cards MAC address working again (my
UMAX Ethernet and Linksys EC2T cards now work).

MFC After: 3 days
This commit is contained in:
Warner Losh 2005-09-01 20:08:24 +00:00
parent ec06b5e868
commit 16e16d771c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149696

View File

@ -412,12 +412,8 @@ ax88x90_geteprom(struct ed_softc *sc)
/* Get Data */
for (i = 0; i < 16; i++)
prom[i] = ed_asic_inb(sc, 0);
sc->enaddr[0] = prom[0] & 0xff;
sc->enaddr[1] = prom[0] >> 8;
sc->enaddr[2] = prom[1] & 0xff;
sc->enaddr[3] = prom[1] >> 8;
sc->enaddr[4] = prom[2] & 0xff;
sc->enaddr[5] = prom[2] >> 8;
for (i = 0; i < ETHER_ADDR_LEN; i++)
sc->enaddr[i] = prom[i];
}
static int