if_wl.c (147256) | if_wl.c (148654) |
---|---|
1/*- 2 * Redistribution and use in source and binary forms, with or without 3 * modification, are permitted provided that the following conditions 4 * are met: 5 * 1. Redistributions of source code must retain all copyright 6 * notices, this list of conditions and the following disclaimer. 7 * 2. The names of the authors may not be used to endorse or promote products 8 * derived from this software without specific prior written permission --- 159 unchanged lines hidden (view full) --- 168IN NO EVENT SHALL INTEL BE LIABLE FOR ANY SPECIAL, INDIRECT, OR 169CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 170LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, 171NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 172WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 173*/ 174 175#include <sys/cdefs.h> | 1/*- 2 * Redistribution and use in source and binary forms, with or without 3 * modification, are permitted provided that the following conditions 4 * are met: 5 * 1. Redistributions of source code must retain all copyright 6 * notices, this list of conditions and the following disclaimer. 7 * 2. The names of the authors may not be used to endorse or promote products 8 * derived from this software without specific prior written permission --- 159 unchanged lines hidden (view full) --- 168IN NO EVENT SHALL INTEL BE LIABLE FOR ANY SPECIAL, INDIRECT, OR 169CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 170LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, 171NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 172WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 173*/ 174 175#include <sys/cdefs.h> |
176__FBSDID("$FreeBSD: head/sys/dev/wl/if_wl.c 147256 2005-06-10 16:49:24Z brooks $"); | 176__FBSDID("$FreeBSD: head/sys/dev/wl/if_wl.c 148654 2005-08-03 00:18:35Z rwatson $"); |
177 178 179/* 180 * NOTE: 181 * by rvb: 182 * 1. The best book on the 82586 is: 183 * LAN Components User's Manual by Intel 184 * The copy I found was dated 1984. This really tells you --- 1931 unchanged lines hidden (view full) --- 2116 2117 if (wlcmd(sc, "config()-configure") == 0) 2118 return 0; 2119#if MULTICAST 2120 outw(PIOR1(base), OFFSET_CU); 2121 outw(PIOP1(base), 0); /* ac_status */ 2122 outw(PIOP1(base), AC_MCSETUP|AC_CW_EL); /* ac_command */ 2123 outw(PIOR1(base), OFFSET_CU + 8); | 177 178 179/* 180 * NOTE: 181 * by rvb: 182 * 1. The best book on the 82586 is: 183 * LAN Components User's Manual by Intel 184 * The copy I found was dated 1984. This really tells you --- 1931 unchanged lines hidden (view full) --- 2116 2117 if (wlcmd(sc, "config()-configure") == 0) 2118 return 0; 2119#if MULTICAST 2120 outw(PIOR1(base), OFFSET_CU); 2121 outw(PIOP1(base), 0); /* ac_status */ 2122 outw(PIOP1(base), AC_MCSETUP|AC_CW_EL); /* ac_command */ 2123 outw(PIOR1(base), OFFSET_CU + 8); |
2124 IF_ADDR_LOCK(sc->ifp); |
|
2124 TAILQ_FOREACH(ifma, &sc->ifp->if_multiaddrs, ifma_link) { 2125 if (ifma->ifma_addr->sa_family != AF_LINK) 2126 continue; 2127 2128 addrp = LLADDR((struct sockaddr_dl *)ifma->ifma_addr); 2129 outw(PIOP1(base), addrp[0] + (addrp[1] << 8)); 2130 outw(PIOP1(base), addrp[2] + (addrp[3] << 8)); 2131 outw(PIOP1(base), addrp[4] + (addrp[5] << 8)); 2132 ++cnt; 2133 } | 2125 TAILQ_FOREACH(ifma, &sc->ifp->if_multiaddrs, ifma_link) { 2126 if (ifma->ifma_addr->sa_family != AF_LINK) 2127 continue; 2128 2129 addrp = LLADDR((struct sockaddr_dl *)ifma->ifma_addr); 2130 outw(PIOP1(base), addrp[0] + (addrp[1] << 8)); 2131 outw(PIOP1(base), addrp[2] + (addrp[3] << 8)); 2132 outw(PIOP1(base), addrp[4] + (addrp[5] << 8)); 2133 ++cnt; 2134 } |
2135 IF_ADDR_UNLOCK(sc->ifp); |
|
2134 outw(PIOR1(base), OFFSET_CU + 6); /* mc-cnt */ 2135 outw(PIOP1(base), cnt * WAVELAN_ADDR_SIZE); 2136 if (wlcmd(sc, "config()-mcaddress") == 0) 2137 return 0; 2138#endif /* MULTICAST */ 2139 2140 outw(PIOR1(base), OFFSET_CU); 2141 outw(PIOP1(base), 0); /* ac_status */ --- 507 unchanged lines hidden --- | 2136 outw(PIOR1(base), OFFSET_CU + 6); /* mc-cnt */ 2137 outw(PIOP1(base), cnt * WAVELAN_ADDR_SIZE); 2138 if (wlcmd(sc, "config()-mcaddress") == 0) 2139 return 0; 2140#endif /* MULTICAST */ 2141 2142 outw(PIOR1(base), OFFSET_CU); 2143 outw(PIOP1(base), 0); /* ac_status */ --- 507 unchanged lines hidden --- |