if_xl.c (150968) | if_xl.c (151297) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 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 33#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 --- 17 unchanged lines hidden (view full) --- 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 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/pci/if_xl.c 150968 2005-10-05 10:09:17Z glebius $"); | 34__FBSDID("$FreeBSD: head/sys/pci/if_xl.c 151297 2005-10-13 21:11:20Z ru $"); |
35 36/* 37 * 3Com 3c90x Etherlink XL PCI NIC driver 38 * 39 * Supports the 3Com "boomerang", "cyclone" and "hurricane" PCI 40 * bus-master chips (3c90x cards and embedded controllers) including 41 * the following: 42 * --- 1669 unchanged lines hidden (view full) --- 1712 XL_LOCK(sc); 1713 xl_reset(sc); 1714 xl_stop(sc); 1715 XL_UNLOCK(sc); 1716 taskqueue_drain(taskqueue_swi, &sc->xl_task); 1717 callout_drain(&sc->xl_stat_callout); 1718 ether_ifdetach(ifp); 1719 } | 35 36/* 37 * 3Com 3c90x Etherlink XL PCI NIC driver 38 * 39 * Supports the 3Com "boomerang", "cyclone" and "hurricane" PCI 40 * bus-master chips (3c90x cards and embedded controllers) including 41 * the following: 42 * --- 1669 unchanged lines hidden (view full) --- 1712 XL_LOCK(sc); 1713 xl_reset(sc); 1714 xl_stop(sc); 1715 XL_UNLOCK(sc); 1716 taskqueue_drain(taskqueue_swi, &sc->xl_task); 1717 callout_drain(&sc->xl_stat_callout); 1718 ether_ifdetach(ifp); 1719 } |
1720 if (ifp) 1721 if_free(ifp); | |
1722 if (sc->xl_miibus) 1723 device_delete_child(dev, sc->xl_miibus); 1724 bus_generic_detach(dev); 1725 ifmedia_removeall(&sc->ifmedia); 1726 1727 if (sc->xl_intrhand) 1728 bus_teardown_intr(dev, sc->xl_irq, sc->xl_intrhand); 1729 if (sc->xl_irq) 1730 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->xl_irq); 1731 if (sc->xl_fres != NULL) 1732 bus_release_resource(dev, SYS_RES_MEMORY, 1733 XL_PCI_FUNCMEM, sc->xl_fres); 1734 if (sc->xl_res) 1735 bus_release_resource(dev, res, rid, sc->xl_res); 1736 | 1720 if (sc->xl_miibus) 1721 device_delete_child(dev, sc->xl_miibus); 1722 bus_generic_detach(dev); 1723 ifmedia_removeall(&sc->ifmedia); 1724 1725 if (sc->xl_intrhand) 1726 bus_teardown_intr(dev, sc->xl_irq, sc->xl_intrhand); 1727 if (sc->xl_irq) 1728 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->xl_irq); 1729 if (sc->xl_fres != NULL) 1730 bus_release_resource(dev, SYS_RES_MEMORY, 1731 XL_PCI_FUNCMEM, sc->xl_fres); 1732 if (sc->xl_res) 1733 bus_release_resource(dev, res, rid, sc->xl_res); 1734 |
1735 if (ifp) 1736 if_free(ifp); 1737 |
|
1737 if (sc->xl_mtag) { 1738 bus_dmamap_destroy(sc->xl_mtag, sc->xl_tmpmap); 1739 bus_dma_tag_destroy(sc->xl_mtag); 1740 } 1741 if (sc->xl_ldata.xl_rx_tag) { 1742 bus_dmamap_unload(sc->xl_ldata.xl_rx_tag, 1743 sc->xl_ldata.xl_rx_dmamap); 1744 bus_dmamem_free(sc->xl_ldata.xl_rx_tag, sc->xl_ldata.xl_rx_list, --- 1647 unchanged lines hidden --- | 1738 if (sc->xl_mtag) { 1739 bus_dmamap_destroy(sc->xl_mtag, sc->xl_tmpmap); 1740 bus_dma_tag_destroy(sc->xl_mtag); 1741 } 1742 if (sc->xl_ldata.xl_rx_tag) { 1743 bus_dmamap_unload(sc->xl_ldata.xl_rx_tag, 1744 sc->xl_ldata.xl_rx_dmamap); 1745 bus_dmamem_free(sc->xl_ldata.xl_rx_tag, sc->xl_ldata.xl_rx_list, --- 1647 unchanged lines hidden --- |