diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-11-11 16:04:59 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-11-11 16:04:59 +0000 |
commit | 4a0d6638b3bb3b7ed39b852f722e904ac9a6e603 (patch) | |
tree | c961eb29eda0888de8f7fedb7d3eb12e58d687d3 /sys/dev/xe/if_xe.c | |
parent | b71ec5beb4714da1171cb0542ae0f601b91050bd (diff) | |
download | src-4a0d6638b3bb3b7ed39b852f722e904ac9a6e603.tar.gz src-4a0d6638b3bb3b7ed39b852f722e904ac9a6e603.zip |
Notes
Diffstat (limited to 'sys/dev/xe/if_xe.c')
-rw-r--r-- | sys/dev/xe/if_xe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/xe/if_xe.c b/sys/dev/xe/if_xe.c index 303036f730be..d8bae182ed12 100644 --- a/sys/dev/xe/if_xe.c +++ b/sys/dev/xe/if_xe.c @@ -373,7 +373,7 @@ xe_init(void *xscp) { /* Put MAC address in first 'individual address' register */ XE_SELECT_PAGE(0x50); for (i = 0; i < 6; i++) - XE_OUTB(0x08 + i, IFP2ENADDR(scp->ifp)[scp->mohawk ? 5 - i : i]); + XE_OUTB(0x08 + i, IF_LLADDR(scp->ifp)[scp->mohawk ? 5 - i : i]); /* Set up multicast addresses */ xe_set_multicast(scp); @@ -1309,7 +1309,7 @@ xe_set_multicast(struct xe_softc *scp) { else if (count < 10) { /* Full in any unused Individual Addresses with our MAC address */ for (i = count + 1; i < 10; i++) - xe_set_addr(scp, (u_int8_t *)(IFP2ENADDR(scp->ifp)), i); + xe_set_addr(scp, IF_LLADDR(scp->ifp), i); /* Enable Individual Address matching only */ XE_SELECT_PAGE(0x42); XE_OUTB(XE_SWC1, (XE_INB(XE_SWC1) & ~XE_SWC1_ALLMULTI) | XE_SWC1_IA_ENABLE); |