Deleted Added
full compact
puc_pci.c (189576) puc_pci.c (223091)
1/* $NetBSD: puc.c,v 1.7 2000/07/29 17:43:38 jlam Exp $ */
2
3/*-
4 * Copyright (c) 2002 JF Hay. All rights reserved.
5 * Copyright (c) 2000 M. Warner Losh. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

53 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
54 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
55 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
56 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
57 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
58 */
59
60#include <sys/cdefs.h>
1/* $NetBSD: puc.c,v 1.7 2000/07/29 17:43:38 jlam Exp $ */
2
3/*-
4 * Copyright (c) 2002 JF Hay. All rights reserved.
5 * Copyright (c) 2000 M. Warner Losh. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

53 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
54 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
55 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
56 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
57 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
58 */
59
60#include <sys/cdefs.h>
61__FBSDID("$FreeBSD: head/sys/dev/puc/puc_pci.c 189576 2009-03-09 13:25:34Z imp $");
61__FBSDID("$FreeBSD: head/sys/dev/puc/puc_pci.c 223091 2011-06-14 18:19:48Z jhb $");
62
63#include <sys/param.h>
64#include <sys/systm.h>
65#include <sys/kernel.h>
66#include <sys/module.h>
67#include <sys/bus.h>
68#include <sys/conf.h>
69#include <sys/malloc.h>

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

127 DEVMETHOD(device_detach, puc_bfe_detach),
128
129 DEVMETHOD(bus_alloc_resource, puc_bus_alloc_resource),
130 DEVMETHOD(bus_release_resource, puc_bus_release_resource),
131 DEVMETHOD(bus_get_resource, puc_bus_get_resource),
132 DEVMETHOD(bus_read_ivar, puc_bus_read_ivar),
133 DEVMETHOD(bus_setup_intr, puc_bus_setup_intr),
134 DEVMETHOD(bus_teardown_intr, puc_bus_teardown_intr),
62
63#include <sys/param.h>
64#include <sys/systm.h>
65#include <sys/kernel.h>
66#include <sys/module.h>
67#include <sys/bus.h>
68#include <sys/conf.h>
69#include <sys/malloc.h>

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

127 DEVMETHOD(device_detach, puc_bfe_detach),
128
129 DEVMETHOD(bus_alloc_resource, puc_bus_alloc_resource),
130 DEVMETHOD(bus_release_resource, puc_bus_release_resource),
131 DEVMETHOD(bus_get_resource, puc_bus_get_resource),
132 DEVMETHOD(bus_read_ivar, puc_bus_read_ivar),
133 DEVMETHOD(bus_setup_intr, puc_bus_setup_intr),
134 DEVMETHOD(bus_teardown_intr, puc_bus_teardown_intr),
135 DEVMETHOD(bus_print_child, bus_generic_print_child),
135 DEVMETHOD(bus_print_child, puc_bus_print_child),
136 DEVMETHOD(bus_child_pnpinfo_str, puc_bus_child_pnpinfo_str),
137 DEVMETHOD(bus_child_location_str, puc_bus_child_location_str),
136 DEVMETHOD(bus_driver_added, bus_generic_driver_added),
137 { 0, 0 }
138};
139
140static driver_t puc_pci_driver = {
141 puc_driver_name,
142 puc_pci_methods,
143 sizeof(struct puc_softc),
144};
145
146DRIVER_MODULE(puc, pci, puc_pci_driver, puc_devclass, 0, 0);
138 DEVMETHOD(bus_driver_added, bus_generic_driver_added),
139 { 0, 0 }
140};
141
142static driver_t puc_pci_driver = {
143 puc_driver_name,
144 puc_pci_methods,
145 sizeof(struct puc_softc),
146};
147
148DRIVER_MODULE(puc, pci, puc_pci_driver, puc_devclass, 0, 0);