Deleted Added
full compact
if_rl.c (150968) if_rl.c (151297)
1/*-
2 * Copyright (c) 1997, 1998
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
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_rl.c 150968 2005-10-05 10:09:17Z glebius $");
34__FBSDID("$FreeBSD: head/sys/pci/if_rl.c 151297 2005-10-13 21:11:20Z ru $");
35
36/*
37 * RealTek 8129/8139 PCI NIC driver
38 *
39 * Supports several extremely cheap PCI 10/100 adapters based on
40 * the RealTek chipset. Datasheets can be obtained from
41 * www.realtek.com.tw.
42 *

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

1014 rl_stop(sc);
1015 RL_UNLOCK(sc);
1016 callout_drain(&sc->rl_stat_callout);
1017 ether_ifdetach(ifp);
1018 }
1019#if 0
1020 sc->suspended = 1;
1021#endif
35
36/*
37 * RealTek 8129/8139 PCI NIC driver
38 *
39 * Supports several extremely cheap PCI 10/100 adapters based on
40 * the RealTek chipset. Datasheets can be obtained from
41 * www.realtek.com.tw.
42 *

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

1014 rl_stop(sc);
1015 RL_UNLOCK(sc);
1016 callout_drain(&sc->rl_stat_callout);
1017 ether_ifdetach(ifp);
1018 }
1019#if 0
1020 sc->suspended = 1;
1021#endif
1022 if (ifp)
1023 if_free(ifp);
1024 if (sc->rl_miibus)
1025 device_delete_child(dev, sc->rl_miibus);
1026 bus_generic_detach(dev);
1027
1028 if (sc->rl_intrhand)
1029 bus_teardown_intr(dev, sc->rl_irq, sc->rl_intrhand);
1030 if (sc->rl_irq)
1031 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->rl_irq);
1032 if (sc->rl_res)
1033 bus_release_resource(dev, RL_RES, RL_RID, sc->rl_res);
1034
1022 if (sc->rl_miibus)
1023 device_delete_child(dev, sc->rl_miibus);
1024 bus_generic_detach(dev);
1025
1026 if (sc->rl_intrhand)
1027 bus_teardown_intr(dev, sc->rl_irq, sc->rl_intrhand);
1028 if (sc->rl_irq)
1029 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->rl_irq);
1030 if (sc->rl_res)
1031 bus_release_resource(dev, RL_RES, RL_RID, sc->rl_res);
1032
1033 if (ifp)
1034 if_free(ifp);
1035
1035 if (sc->rl_tag) {
1036 bus_dmamap_unload(sc->rl_tag, sc->rl_cdata.rl_rx_dmamap);
1037 bus_dmamem_free(sc->rl_tag, sc->rl_cdata.rl_rx_buf,
1038 sc->rl_cdata.rl_rx_dmamap);
1039 bus_dma_tag_destroy(sc->rl_tag);
1040 }
1041 if (sc->rl_parent_tag)
1042 bus_dma_tag_destroy(sc->rl_parent_tag);

--- 767 unchanged lines hidden ---
1036 if (sc->rl_tag) {
1037 bus_dmamap_unload(sc->rl_tag, sc->rl_cdata.rl_rx_dmamap);
1038 bus_dmamem_free(sc->rl_tag, sc->rl_cdata.rl_rx_buf,
1039 sc->rl_cdata.rl_rx_dmamap);
1040 bus_dma_tag_destroy(sc->rl_tag);
1041 }
1042 if (sc->rl_parent_tag)
1043 bus_dma_tag_destroy(sc->rl_parent_tag);

--- 767 unchanged lines hidden ---