Deleted Added
full compact
if_ndis_pci.c (129972) if_ndis_pci.c (131953)
1/*
2 * Copyright (c) 2003
3 * Bill Paul <wpaul@windriver.com>. 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) 2003
3 * Bill Paul <wpaul@windriver.com>. 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/dev/if_ndis/if_ndis_pci.c 129972 2004-06-01 23:27:36Z wpaul $");
34__FBSDID("$FreeBSD: head/sys/dev/if_ndis/if_ndis_pci.c 131953 2004-07-11 00:19:30Z wpaul $");
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/kernel.h>
39#include <sys/module.h>
40#include <sys/socket.h>
41#include <sys/queue.h>
42#include <sys/sysctl.h>

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

79#ifdef NDIS_PCI_DEV_TABLE
80 NDIS_PCI_DEV_TABLE
81#endif
82 { 0, 0, 0, NULL }
83};
84
85static int ndis_probe_pci (device_t);
86static int ndis_attach_pci (device_t);
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/kernel.h>
39#include <sys/module.h>
40#include <sys/socket.h>
41#include <sys/queue.h>
42#include <sys/sysctl.h>

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

79#ifdef NDIS_PCI_DEV_TABLE
80 NDIS_PCI_DEV_TABLE
81#endif
82 { 0, 0, 0, NULL }
83};
84
85static int ndis_probe_pci (device_t);
86static int ndis_attach_pci (device_t);
87static struct resource_list *ndis_get_resource_list
88 (device_t, device_t);
87extern int ndis_attach (device_t);
88extern int ndis_shutdown (device_t);
89extern int ndis_detach (device_t);
90extern int ndis_suspend (device_t);
91extern int ndis_resume (device_t);
92
93extern struct mtx_pool *ndis_mtxpool;
94
95static device_method_t ndis_methods[] = {
96 /* Device interface */
97 DEVMETHOD(device_probe, ndis_probe_pci),
98 DEVMETHOD(device_attach, ndis_attach_pci),
99 DEVMETHOD(device_detach, ndis_detach),
100 DEVMETHOD(device_shutdown, ndis_shutdown),
101 DEVMETHOD(device_suspend, ndis_suspend),
102 DEVMETHOD(device_resume, ndis_resume),
103
89extern int ndis_attach (device_t);
90extern int ndis_shutdown (device_t);
91extern int ndis_detach (device_t);
92extern int ndis_suspend (device_t);
93extern int ndis_resume (device_t);
94
95extern struct mtx_pool *ndis_mtxpool;
96
97static device_method_t ndis_methods[] = {
98 /* Device interface */
99 DEVMETHOD(device_probe, ndis_probe_pci),
100 DEVMETHOD(device_attach, ndis_attach_pci),
101 DEVMETHOD(device_detach, ndis_detach),
102 DEVMETHOD(device_shutdown, ndis_shutdown),
103 DEVMETHOD(device_suspend, ndis_suspend),
104 DEVMETHOD(device_resume, ndis_resume),
105
106 /* Bus interface */
107 DEVMETHOD(bus_get_resource_list, ndis_get_resource_list),
108
104 { 0, 0 }
105};
106
107static driver_t ndis_driver = {
108#ifdef NDIS_DEVNAME
109 NDIS_DEVNAME,
110#else
111 "ndis",

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

316 sc->ndis_devidx = devidx;
317
318 error = ndis_attach(dev);
319
320fail:
321 return(error);
322}
323
109 { 0, 0 }
110};
111
112static driver_t ndis_driver = {
113#ifdef NDIS_DEVNAME
114 NDIS_DEVNAME,
115#else
116 "ndis",

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

321 sc->ndis_devidx = devidx;
322
323 error = ndis_attach(dev);
324
325fail:
326 return(error);
327}
328
329static struct resource_list *
330ndis_get_resource_list(dev, child)
331 device_t dev;
332 device_t child;
333{
334 struct ndis_softc *sc;
335
336 sc = device_get_softc(dev);
337 return (BUS_GET_RESOURCE_LIST(device_get_parent(sc->ndis_dev), dev));
338}
339
324#endif /* NDIS_PCI_DEV_TABLE */
340#endif /* NDIS_PCI_DEV_TABLE */