Deleted Added
full compact
if_en_pci.c (150215) if_en_pci.c (150306)
1/* $NetBSD: if_en_pci.c,v 1.1 1996/06/22 02:00:31 chuck Exp $ */
2/*-
3 * Copyright (c) 1996 Charles D. Cranor and Washington University.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 */
33
34#include <sys/cdefs.h>
1/* $NetBSD: if_en_pci.c,v 1.1 1996/06/22 02:00:31 chuck Exp $ */
2/*-
3 * Copyright (c) 1996 Charles D. Cranor and Washington University.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/dev/en/if_en_pci.c 150215 2005-09-16 11:25:19Z ru $");
35__FBSDID("$FreeBSD: head/sys/dev/en/if_en_pci.c 150306 2005-09-19 03:10:21Z imp $");
36
37/*
38 * i f _ e n _ p c i . c
39 *
40 * author: Chuck Cranor <chuck@ccrc.wustl.edu>
41 * started: spring, 1996.
42 *
43 * FreeBSD PCI glue for the eni155p card.
44 * thanks to Matt Thomas for figuring out FreeBSD vs NetBSD vs etc.. diffs.
45 */
46
47#include <sys/cdefs.h>
36
37/*
38 * i f _ e n _ p c i . c
39 *
40 * author: Chuck Cranor <chuck@ccrc.wustl.edu>
41 * started: spring, 1996.
42 *
43 * FreeBSD PCI glue for the eni155p card.
44 * thanks to Matt Thomas for figuring out FreeBSD vs NetBSD vs etc.. diffs.
45 */
46
47#include <sys/cdefs.h>
48__FBSDID("$FreeBSD: head/sys/dev/en/if_en_pci.c 150215 2005-09-16 11:25:19Z ru $");
48__FBSDID("$FreeBSD: head/sys/dev/en/if_en_pci.c 150306 2005-09-19 03:10:21Z imp $");
49
50#include <sys/param.h>
51#include <sys/kernel.h>
52#include <sys/module.h>
53#include <sys/systm.h>
54#include <sys/socket.h>
55#include <sys/sysctl.h>
56#include <sys/condvar.h>

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

316 sc->ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
317 }
318
319 /*
320 * Close down routes etc.
321 */
322 en_reset(sc);
323 atm_ifdetach(sc->ifp);
49
50#include <sys/param.h>
51#include <sys/kernel.h>
52#include <sys/module.h>
53#include <sys/systm.h>
54#include <sys/socket.h>
55#include <sys/sysctl.h>
56#include <sys/condvar.h>

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

316 sc->ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
317 }
318
319 /*
320 * Close down routes etc.
321 */
322 en_reset(sc);
323 atm_ifdetach(sc->ifp);
324 if_free(sc->ifp);
325
326 /*
327 * Deallocate resources.
328 */
329 bus_teardown_intr(dev, scp->irq, scp->ih);
330 bus_release_resource(dev, SYS_RES_IRQ, 0, scp->irq);
331 bus_release_resource(dev, SYS_RES_MEMORY, PCI_CBMA, scp->res);
332
333 /*
334 * Free all the driver internal resources
335 */
336 en_destroy(sc);
324
325 /*
326 * Deallocate resources.
327 */
328 bus_teardown_intr(dev, scp->irq, scp->ih);
329 bus_release_resource(dev, SYS_RES_IRQ, 0, scp->irq);
330 bus_release_resource(dev, SYS_RES_MEMORY, PCI_CBMA, scp->res);
331
332 /*
333 * Free all the driver internal resources
334 */
335 en_destroy(sc);
336 if_free(sc->ifp);
337
338 return (0);
339}
340
341static int
342en_pci_shutdown(device_t dev)
343{
344 struct en_pci_softc *psc = device_get_softc(dev);

--- 158 unchanged lines hidden ---
337
338 return (0);
339}
340
341static int
342en_pci_shutdown(device_t dev)
343{
344 struct en_pci_softc *psc = device_get_softc(dev);

--- 158 unchanged lines hidden ---