diff options
Diffstat (limited to 'sys/i4b/layer1/ifpi/i4b_ifpi_pci.c')
-rw-r--r-- | sys/i4b/layer1/ifpi/i4b_ifpi_pci.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c b/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c index 6e4c354..202707d 100644 --- a/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c +++ b/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c @@ -515,9 +515,8 @@ avma1pp_attach_avma1pp(device_t dev) ifpi_scp[unit] = sc; sc->sc_resources.io_rid[0] = PCIR_BAR(1); - sc->sc_resources.io_base[0] = bus_alloc_resource(dev, SYS_RES_IOPORT, - &sc->sc_resources.io_rid[0], - 0, ~0, 1, RF_ACTIVE); + sc->sc_resources.io_base[0] = bus_alloc_resource_any(dev, + SYS_RES_IOPORT, &sc->sc_resources.io_rid[0], RF_ACTIVE); if (sc->sc_resources.io_base[0] == NULL) { printf("avma1pp%d: couldn't map IO port\n", unit); @@ -530,8 +529,8 @@ avma1pp_attach_avma1pp(device_t dev) /* Allocate interrupt */ sc->sc_resources.irq_rid = 0; - sc->sc_resources.irq = bus_alloc_resource(dev, SYS_RES_IRQ, - &sc->sc_resources.irq_rid, 0, ~0, 1, RF_SHAREABLE | RF_ACTIVE); + sc->sc_resources.irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, + &sc->sc_resources.irq_rid, RF_SHAREABLE | RF_ACTIVE); if (sc->sc_resources.irq == NULL) { bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(1), sc->sc_resources.io_base[0]); |