summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_ste.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2007-06-15 21:45:41 +0000
committerthompsa <thompsa@FreeBSD.org>2007-06-15 21:45:41 +0000
commit61a35e4c653bf37a6b6ea6fa863e3c468aa85c23 (patch)
tree356035e42d582338ec1ee4b9656c252871dc7987 /sys/pci/if_ste.c
parent77956753fe236ca93cc85ae55d14b0ca009070e0 (diff)
downloadFreeBSD-src-61a35e4c653bf37a6b6ea6fa863e3c468aa85c23.zip
FreeBSD-src-61a35e4c653bf37a6b6ea6fa863e3c468aa85c23.tar.gz
The mac address must be written a word length at a time, it was having no effect before.
MFC after: 1 week
Diffstat (limited to 'sys/pci/if_ste.c')
-rw-r--r--sys/pci/if_ste.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/pci/if_ste.c b/sys/pci/if_ste.c
index 72eff37..57a1377 100644
--- a/sys/pci/if_ste.c
+++ b/sys/pci/if_ste.c
@@ -1306,8 +1306,10 @@ ste_init_locked(sc)
ste_stop(sc);
/* Init our MAC address */
- for (i = 0; i < ETHER_ADDR_LEN; i++) {
- CSR_WRITE_1(sc, STE_PAR0 + i, IF_LLADDR(sc->ste_ifp)[i]);
+ for (i = 0; i < ETHER_ADDR_LEN; i += 2) {
+ CSR_WRITE_2(sc, STE_PAR0 + i,
+ ((IF_LLADDR(sc->ste_ifp)[i] & 0xff) |
+ IF_LLADDR(sc->ste_ifp)[i + 1] << 8));
}
/* Init RX list */
OpenPOWER on IntegriCloud