Deleted Added
full compact
if_ed.c (150300) if_ed.c (150306)
1/*-
2 * Copyright (c) 1995, David Greenman
3 * 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

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1995, David Greenman
3 * 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

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/dev/ed/if_ed.c 150300 2005-09-18 20:51:34Z imp $");
29__FBSDID("$FreeBSD: head/sys/dev/ed/if_ed.c 150306 2005-09-19 03:10:21Z imp $");
30
31/*
32 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet
33 * adapters. By David Greenman, 29-April-1993
34 *
35 * Currently supports the Western Digital/SMC 8003 and 8013 series,
36 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000,
37 * and a variety of similar clones.

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

364 ED_LOCK(sc);
365 if (bus_child_present(dev))
366 ed_stop(sc);
367 ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
368 ED_UNLOCK(sc);
369 callout_drain(&sc->tick_ch);
370 ether_ifdetach(ifp);
371 bus_teardown_intr(dev, sc->irq_res, sc->irq_handle);
30
31/*
32 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet
33 * adapters. By David Greenman, 29-April-1993
34 *
35 * Currently supports the Western Digital/SMC 8003 and 8013 series,
36 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000,
37 * and a variety of similar clones.

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

364 ED_LOCK(sc);
365 if (bus_child_present(dev))
366 ed_stop(sc);
367 ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
368 ED_UNLOCK(sc);
369 callout_drain(&sc->tick_ch);
370 ether_ifdetach(ifp);
371 bus_teardown_intr(dev, sc->irq_res, sc->irq_handle);
372 if_free(ifp);
373 ed_release_resources(dev);
372 ed_release_resources(dev);
373 if_free(ifp);
374 ED_LOCK_DESTROY(sc);
375 return (0);
376}
377
378/*
379 * Reset interface.
380 */
381static void

--- 1351 unchanged lines hidden ---
374 ED_LOCK_DESTROY(sc);
375 return (0);
376}
377
378/*
379 * Reset interface.
380 */
381static void

--- 1351 unchanged lines hidden ---