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:
parent
cd3615cae7
commit
496d9adeda
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user