if_an.c (61816) | if_an.c (63090) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/dev/an/if_an.c 61816 2000-06-18 23:40:09Z roberto $ | 32 * $FreeBSD: head/sys/dev/an/if_an.c 63090 2000-07-13 22:54:34Z archie $ |
33 */ 34 35/* 36 * Aironet 4500/4800 802.11 PCMCIA/ISA/PCI driver for FreeBSD. 37 * 38 * Written by Bill Paul <wpaul@ctr.columbia.edu> 39 * Electrical Engineering Department 40 * Columbia University, New York City --- 86 unchanged lines hidden (view full) --- 127#include <machine/clock.h> 128#include <machine/md_var.h> 129 130#include <dev/an/if_aironet_ieee.h> 131#include <dev/an/if_anreg.h> 132 133#if !defined(lint) 134static const char rcsid[] = | 33 */ 34 35/* 36 * Aironet 4500/4800 802.11 PCMCIA/ISA/PCI driver for FreeBSD. 37 * 38 * Written by Bill Paul <wpaul@ctr.columbia.edu> 39 * Electrical Engineering Department 40 * Columbia University, New York City --- 86 unchanged lines hidden (view full) --- 127#include <machine/clock.h> 128#include <machine/md_var.h> 129 130#include <dev/an/if_aironet_ieee.h> 131#include <dev/an/if_anreg.h> 132 133#if !defined(lint) 134static const char rcsid[] = |
135 "$FreeBSD: head/sys/dev/an/if_an.c 61816 2000-06-18 23:40:09Z roberto $"; | 135 "$FreeBSD: head/sys/dev/an/if_an.c 63090 2000-07-13 22:54:34Z archie $"; |
136#endif 137 138/* These are global because we need them in sys/pci/if_an_p.c. */ 139static void an_reset __P((struct an_softc *)); 140static int an_ioctl __P((struct ifnet *, u_long, caddr_t)); 141static void an_init __P((void *)); 142static int an_init_tx_ring __P((struct an_softc *)); 143static void an_start __P((struct ifnet *)); --- 220 unchanged lines hidden (view full) --- 364 365 sc->an_config.an_opmode = 366 AN_OPMODE_IBSS_ADHOC; 367 368 sc->an_tx_rate = 0; 369 bzero((char *)&sc->an_stats, sizeof(sc->an_stats)); 370 371 /* | 136#endif 137 138/* These are global because we need them in sys/pci/if_an_p.c. */ 139static void an_reset __P((struct an_softc *)); 140static int an_ioctl __P((struct ifnet *, u_long, caddr_t)); 141static void an_init __P((void *)); 142static int an_init_tx_ring __P((struct an_softc *)); 143static void an_start __P((struct ifnet *)); --- 220 unchanged lines hidden (view full) --- 364 365 sc->an_config.an_opmode = 366 AN_OPMODE_IBSS_ADHOC; 367 368 sc->an_tx_rate = 0; 369 bzero((char *)&sc->an_stats, sizeof(sc->an_stats)); 370 371 /* |
372 * Call MI attach routines. | 372 * Call MI attach routine. |
373 */ | 373 */ |
374 if_attach(ifp); 375 ether_ifattach(ifp); | 374 ether_ifattach(ifp, ETHER_BPF_SUPPORTED); |
376 callout_handle_init(&sc->an_stat_ch); | 375 callout_handle_init(&sc->an_stat_ch); |
377 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); | |
378 379 return(0); 380} 381 382static void an_rxeof(sc) 383 struct an_softc *sc; 384{ 385 struct ifnet *ifp; --- 1112 unchanged lines hidden --- | 376 377 return(0); 378} 379 380static void an_rxeof(sc) 381 struct an_softc *sc; 382{ 383 struct ifnet *ifp; --- 1112 unchanged lines hidden --- |