diff options
Diffstat (limited to 'sys/i386/isa')
-rw-r--r-- | sys/i386/isa/atpic.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/if_el.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/mse.c | 3 | ||||
-rw-r--r-- | sys/i386/isa/spic.c | 4 |
4 files changed, 5 insertions, 6 deletions
diff --git a/sys/i386/isa/atpic.c b/sys/i386/isa/atpic.c index 634128610557..87b91d8cba05 100644 --- a/sys/i386/isa/atpic.c +++ b/sys/i386/isa/atpic.c @@ -414,7 +414,7 @@ atpic_attach(device_t dev) /* Try to allocate our IRQ and then free it. */ rid = 0; - res = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, 0); + res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, 0); if (res != NULL) bus_release_resource(dev, SYS_RES_IRQ, rid, res); return (0); diff --git a/sys/i386/isa/if_el.c b/sys/i386/isa/if_el.c index 7486374eb1c2..65ab1c63c0b0 100644 --- a/sys/i386/isa/if_el.c +++ b/sys/i386/isa/if_el.c @@ -241,7 +241,7 @@ el_attach(device_t dev) return(ENXIO); rid = 0; - sc->el_irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, + sc->el_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE); if (sc->el_irq == NULL) { diff --git a/sys/i386/isa/mse.c b/sys/i386/isa/mse.c index 8cd40f1bbd03..3f4acc5e77ad 100644 --- a/sys/i386/isa/mse.c +++ b/sys/i386/isa/mse.c @@ -331,8 +331,7 @@ mse_attach(dev) MSE_IOSIZE, RF_ACTIVE); if (sc->sc_port == NULL) return ENXIO; - sc->sc_intr = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, - RF_ACTIVE); + sc->sc_intr = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); if (sc->sc_intr == NULL) { bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port); return ENXIO; diff --git a/sys/i386/isa/spic.c b/sys/i386/isa/spic.c index a649f13e1003..98fc8ab87243 100644 --- a/sys/i386/isa/spic.c +++ b/sys/i386/isa/spic.c @@ -240,8 +240,8 @@ spic_probe(device_t dev) sc->sc_port_addr = (u_short)rman_get_start(sc->sc_port_res); #ifdef notyet - if (!(sc->sc_intr_res = bus_alloc_resource(dev, SYS_RES_IRQ, - &sc->sc_intr_rid, 0, ~0, 1, RF_ACTIVE))) { + if (!(sc->sc_intr_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, + &sc->sc_intr_rid, RF_ACTIVE))) { device_printf(dev,"Couldn't map IRQ\n"); bus_release_resource(dev, SYS_RES_IOPORT, sc->sc_port_rid, sc->sc_port_res); |