Deleted Added
full compact
26c26
< * $Id: pcibus.c,v 1.40 1997/07/20 14:10:08 bde Exp $
---
> * $Id: pcibus.c,v 1.41 1997/12/20 09:04:25 se Exp $
30c30
< #include <sys/types.h>
---
> #include <sys/param.h>
31a32,33
> #include <sys/bus.h>
> #include <sys/kernel.h>
187c189
< int
---
> static int
265a268,309
>
> static devclass_t pcib_devclass;
>
> static int
> nexus_pcib_probe(device_t dev)
> {
> if (pci_cfgopen() != 0) {
> device_set_desc(dev, "PCI host bus adapter");
>
> device_add_child(dev, "pci", 0, 0);
> return 0;
> }
> return ENXIO;
> }
>
> static device_method_t nexus_pcib_methods[] = {
> /* Device interface */
> DEVMETHOD(device_probe, nexus_pcib_probe),
> DEVMETHOD(device_attach, bus_generic_attach),
> DEVMETHOD(device_shutdown, bus_generic_shutdown),
> DEVMETHOD(device_suspend, bus_generic_suspend),
> DEVMETHOD(device_resume, bus_generic_resume),
>
> /* Bus interface */
> DEVMETHOD(bus_print_child, bus_generic_print_child),
> DEVMETHOD(bus_alloc_resource, bus_generic_alloc_resource),
> DEVMETHOD(bus_release_resource, bus_generic_release_resource),
> DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),
> DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource),
> DEVMETHOD(bus_setup_intr, bus_generic_setup_intr),
> DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr),
>
> { 0, 0 }
> };
>
> static driver_t nexus_pcib_driver = {
> "pcib",
> nexus_pcib_methods,
> 1,
> };
>
> DRIVER_MODULE(pcib, nexus, nexus_pcib_driver, pcib_devclass, 0, 0);