From 16e16d771cdbd1508821250cc8b12b90c6015ce3 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 1 Sep 2005 20:08:24 +0000 Subject: [PATCH] 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 --- sys/dev/ed/if_ed_pccard.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/dev/ed/if_ed_pccard.c b/sys/dev/ed/if_ed_pccard.c index 5e940d7b5b9c..fd2082680a73 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