summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-09-01 20:08:24 +0000
committerimp <imp@FreeBSD.org>2005-09-01 20:08:24 +0000
commit496d9adedae60499033937e11fefc388f1033474 (patch)
treeeda17670c029660270e5ce70d2b5439fdfd5e365 /sys/dev/ed
parentcd3615cae726ef8f1ea81f8af4d25a8ff2fa6ab7 (diff)
downloadFreeBSD-src-496d9adedae60499033937e11fefc388f1033474.zip
FreeBSD-src-496d9adedae60499033937e11fefc388f1033474.tar.gz
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
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed_pccard.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/ed/if_ed_pccard.c b/sys/dev/ed/if_ed_pccard.c
index 5e940d7..fd20826 100644
--- a/sys/dev/ed/if_ed_pccard.c
+++ b/sys/dev/ed/if_ed_pccard.c
@@ -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
OpenPOWER on IntegriCloud