Deleted Added
full compact
if_an.c (148887) if_an.c (150306)
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

--- 24 unchanged lines hidden (view full) ---

33 * Aironet 4500/4800 802.11 PCMCIA/ISA/PCI driver for FreeBSD.
34 *
35 * Written by Bill Paul <wpaul@ctr.columbia.edu>
36 * Electrical Engineering Department
37 * Columbia University, New York City
38 */
39
40#include <sys/cdefs.h>
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

--- 24 unchanged lines hidden (view full) ---

33 * Aironet 4500/4800 802.11 PCMCIA/ISA/PCI driver for FreeBSD.
34 *
35 * Written by Bill Paul <wpaul@ctr.columbia.edu>
36 * Electrical Engineering Department
37 * Columbia University, New York City
38 */
39
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD: head/sys/dev/an/if_an.c 148887 2005-08-09 10:20:02Z rwatson $");
41__FBSDID("$FreeBSD: head/sys/dev/an/if_an.c 150306 2005-09-19 03:10:21Z imp $");
42
43/*
44 * The Aironet 4500/4800 series cards come in PCMCIA, ISA and PCI form.
45 * This driver supports all three device types (PCI devices are supported
46 * through an extra PCI shim: /sys/dev/an/if_an_pci.c). ISA devices can be
47 * supported either using hard-coded IO port/IRQ settings or via Plug
48 * and Play. The 4500 series devices support 1Mbps and 2Mbps data rates.
49 * The 4800 devices support 1, 2, 5.5 and 11Mbps rates.

--- 782 unchanged lines hidden (view full) ---

832 }
833 AN_LOCK(sc);
834 an_stop(sc);
835 sc->an_gone = 1;
836 ifmedia_removeall(&sc->an_ifmedia);
837 ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
838 AN_UNLOCK(sc);
839 ether_ifdetach(ifp);
42
43/*
44 * The Aironet 4500/4800 series cards come in PCMCIA, ISA and PCI form.
45 * This driver supports all three device types (PCI devices are supported
46 * through an extra PCI shim: /sys/dev/an/if_an_pci.c). ISA devices can be
47 * supported either using hard-coded IO port/IRQ settings or via Plug
48 * and Play. The 4500 series devices support 1Mbps and 2Mbps data rates.
49 * The 4800 devices support 1, 2, 5.5 and 11Mbps rates.

--- 782 unchanged lines hidden (view full) ---

832 }
833 AN_LOCK(sc);
834 an_stop(sc);
835 sc->an_gone = 1;
836 ifmedia_removeall(&sc->an_ifmedia);
837 ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
838 AN_UNLOCK(sc);
839 ether_ifdetach(ifp);
840 if_free(ifp);
841 bus_teardown_intr(dev, sc->irq_res, sc->irq_handle);
840 bus_teardown_intr(dev, sc->irq_res, sc->irq_handle);
841 if_free(ifp);
842 an_release_resources(dev);
843 mtx_destroy(&sc->an_mtx);
844 return (0);
845}
846
847static void
848an_rxeof(sc)
849 struct an_softc *sc;

--- 2901 unchanged lines hidden ---
842 an_release_resources(dev);
843 mtx_destroy(&sc->an_mtx);
844 return (0);
845}
846
847static void
848an_rxeof(sc)
849 struct an_softc *sc;

--- 2901 unchanged lines hidden ---