diff options
author | jhb <jhb@FreeBSD.org> | 2011-05-06 13:48:53 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2011-05-06 13:48:53 +0000 |
commit | 5512bf549dc23b7d0e0d59660060cefb227d0653 (patch) | |
tree | dbce2b758f3f51f1617069fff1d5e800b8ebc8cf | |
parent | d9f6c6f0db07c8d124233be72cca0e9bfe6a5a45 (diff) | |
download | FreeBSD-src-5512bf549dc23b7d0e0d59660060cefb227d0653.zip FreeBSD-src-5512bf549dc23b7d0e0d59660060cefb227d0653.tar.gz |
Retire isa_setup_intr() and isa_teardown_intr() and use the generic bus
versions instead. They were never needed as bus_generic_intr() and
bus_teardown_intr() had been changed to pass the original child device up
in 42734, but the ISA bus was not converted to new-bus until 45720.
-rw-r--r-- | sys/ia64/isa/isa.c | 22 | ||||
-rw-r--r-- | sys/isa/isa_common.c | 4 | ||||
-rw-r--r-- | sys/isa/isa_common.h | 6 | ||||
-rw-r--r-- | sys/powerpc/mpc85xx/isa.c | 17 | ||||
-rw-r--r-- | sys/sparc64/isa/isa.c | 23 | ||||
-rw-r--r-- | sys/x86/isa/isa.c | 22 |
6 files changed, 2 insertions, 92 deletions
diff --git a/sys/ia64/isa/isa.c b/sys/ia64/isa/isa.c index 6467237..cdb93cc 100644 --- a/sys/ia64/isa/isa.c +++ b/sys/ia64/isa/isa.c @@ -135,25 +135,3 @@ isa_release_resource(device_t bus, device_t child, int type, int rid, struct resource_list *rl = &idev->id_resources; return resource_list_release(rl, bus, child, type, rid, r); } - -/* - * We can't use the bus_generic_* versions of these methods because those - * methods always pass the bus param as the requesting device, and we need - * to pass the child (the i386 nexus knows about this and is prepared to - * deal). - */ -int -isa_setup_intr(device_t bus, device_t child, struct resource *r, int flags, - driver_filter_t filter, void (*ihand)(void *), void *arg, - void **cookiep) -{ - return (BUS_SETUP_INTR(device_get_parent(bus), child, r, flags, - filter, ihand, arg, cookiep)); -} - -int -isa_teardown_intr(device_t bus, device_t child, struct resource *r, - void *cookie) -{ - return (BUS_TEARDOWN_INTR(device_get_parent(bus), child, r, cookie)); -} diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c index 1d1a13a..9e10320 100644 --- a/sys/isa/isa_common.c +++ b/sys/isa/isa_common.c @@ -1071,8 +1071,8 @@ static device_method_t isa_methods[] = { DEVMETHOD(bus_write_ivar, isa_write_ivar), DEVMETHOD(bus_child_detached, isa_child_detached), DEVMETHOD(bus_driver_added, isa_driver_added), - DEVMETHOD(bus_setup_intr, isa_setup_intr), - DEVMETHOD(bus_teardown_intr, isa_teardown_intr), + DEVMETHOD(bus_setup_intr, bus_generic_setup_intr), + DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr), DEVMETHOD(bus_get_resource_list,isa_get_resource_list), DEVMETHOD(bus_alloc_resource, isa_alloc_resource), diff --git a/sys/isa/isa_common.h b/sys/isa/isa_common.h index 340ad17..a6702f4 100644 --- a/sys/isa/isa_common.h +++ b/sys/isa/isa_common.h @@ -73,11 +73,5 @@ extern struct resource *isa_alloc_resource(device_t bus, device_t child, extern int isa_release_resource(device_t bus, device_t child, int type, int rid, struct resource *r); -extern int isa_setup_intr(device_t bus, device_t child, struct resource *r, - int flags, driver_filter_t *filter, void (*ihand)(void *), void *arg, - void **cookiep); -extern int isa_teardown_intr(device_t bus, device_t child, struct resource *r, - void *cookie); - extern driver_t isa_driver; extern devclass_t isa_devclass; diff --git a/sys/powerpc/mpc85xx/isa.c b/sys/powerpc/mpc85xx/isa.c index a1715ef..1020e77 100644 --- a/sys/powerpc/mpc85xx/isa.c +++ b/sys/powerpc/mpc85xx/isa.c @@ -82,20 +82,3 @@ isa_release_resource(device_t bus, device_t child, int type, int rid, return (resource_list_release(rl, bus, child, type, rid, r)); } - -int -isa_setup_intr(device_t bus, device_t child, struct resource *r, int flags, - driver_filter_t filter, void (*ihand)(void *), void *arg, void **cookiep) -{ - - return (BUS_SETUP_INTR(device_get_parent(bus), child, r, flags, - filter, ihand, arg, cookiep)); -} - -int -isa_teardown_intr(device_t bus, device_t child, struct resource *r, - void *cookie) -{ - - return (BUS_TEARDOWN_INTR(device_get_parent(bus), child, r, cookie)); -} diff --git a/sys/sparc64/isa/isa.c b/sys/sparc64/isa/isa.c index 9159cda..6e22133 100644 --- a/sys/sparc64/isa/isa.c +++ b/sys/sparc64/isa/isa.c @@ -359,26 +359,3 @@ isa_release_resource(device_t bus, device_t child, int type, int rid, return (bus_generic_rl_release_resource(bus, child, type, rid, res)); } - -int -isa_setup_intr(device_t dev, device_t child, struct resource *irq, int flags, - driver_filter_t *filter, driver_intr_t *intr, void *arg, void **cookiep) -{ - - /* - * Just pass through. This is going to be handled by either - * one of the parent PCI buses or the nexus device. - * The interrupt had been routed before it was added to the - * resource list of the child. - */ - return (bus_generic_setup_intr(dev, child, irq, flags, filter, intr, - arg, cookiep)); -} - -int -isa_teardown_intr(device_t dev, device_t child, struct resource *irq, - void *cookie) -{ - - return (bus_generic_teardown_intr(dev, child, irq, cookie)); -} diff --git a/sys/x86/isa/isa.c b/sys/x86/isa/isa.c index 7b2982a..1a57137 100644 --- a/sys/x86/isa/isa.c +++ b/sys/x86/isa/isa.c @@ -238,28 +238,6 @@ isa_release_resource(device_t bus, device_t child, int type, int rid, } /* - * We can't use the bus_generic_* versions of these methods because those - * methods always pass the bus param as the requesting device, and we need - * to pass the child (the i386 nexus knows about this and is prepared to - * deal). - */ -int -isa_setup_intr(device_t bus, device_t child, struct resource *r, int flags, - driver_filter_t *filter, void (*ihand)(void *), void *arg, - void **cookiep) -{ - return (BUS_SETUP_INTR(device_get_parent(bus), child, r, flags, - filter, ihand, arg, cookiep)); -} - -int -isa_teardown_intr(device_t bus, device_t child, struct resource *r, - void *cookie) -{ - return (BUS_TEARDOWN_INTR(device_get_parent(bus), child, r, cookie)); -} - -/* * On this platform, isa can also attach to the legacy bus. */ DRIVER_MODULE(isa, legacy, isa_driver, isa_devclass, 0, 0); |