From 05a1f56fc999f634406946e831eea6deaaa75a99 Mon Sep 17 00:00:00 2001 From: njl Date: Wed, 17 Mar 2004 17:50:55 +0000 Subject: Convert callers to the new bus_alloc_resource_any(9) API. Submitted by: Mark Santcroos Reviewed by: imp, dfr, bde --- sys/dev/pdq/if_fea.c | 12 ++++++------ sys/dev/pdq/if_fpa.c | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'sys/dev/pdq') diff --git a/sys/dev/pdq/if_fea.c b/sys/dev/pdq/if_fea.c index 2c1dc43..ea01423 100644 --- a/sys/dev/pdq/if_fea.c +++ b/sys/dev/pdq/if_fea.c @@ -192,8 +192,8 @@ pdq_eisa_attach (dev) sc->io_rid = 0; sc->io_type = SYS_RES_IOPORT; - sc->io = bus_alloc_resource(dev, sc->io_type, &sc->io_rid, - 0, ~0, 1, RF_ACTIVE); + sc->io = bus_alloc_resource_any(dev, sc->io_type, &sc->io_rid, + RF_ACTIVE); if (!sc->io) { device_printf(dev, "Unable to allocate I/O space resource.\n"); error = ENXIO; @@ -204,8 +204,8 @@ pdq_eisa_attach (dev) sc->mem_rid = 0; sc->mem_type = SYS_RES_MEMORY; - sc->mem = bus_alloc_resource(dev, sc->mem_type, &sc->mem_rid, - 0, ~0, 1, RF_ACTIVE); + sc->mem = bus_alloc_resource_any(dev, sc->mem_type, &sc->mem_rid, + RF_ACTIVE); if (!sc->mem) { device_printf(dev, "Unable to allocate memory resource.\n"); error = ENXIO; @@ -215,8 +215,8 @@ pdq_eisa_attach (dev) sc->mem_bst = rman_get_bustag(sc->mem); sc->irq_rid = 0; - sc->irq = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->irq_rid, - 0, ~0, 1, RF_SHAREABLE | RF_ACTIVE); + sc->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->irq_rid, + RF_SHAREABLE | RF_ACTIVE); if (!sc->irq) { device_printf(dev, "Unable to allocate interrupt resource.\n"); error = ENXIO; diff --git a/sys/dev/pdq/if_fpa.c b/sys/dev/pdq/if_fpa.c index 997f0cc..e8082f5 100644 --- a/sys/dev/pdq/if_fpa.c +++ b/sys/dev/pdq/if_fpa.c @@ -130,8 +130,8 @@ pdq_pci_attach(device_t dev) sc->mem_rid = PCI_CBMA; sc->mem_type = SYS_RES_MEMORY; - sc->mem = bus_alloc_resource(dev, sc->mem_type, &sc->mem_rid, - 0, ~0, 1, RF_ACTIVE); + sc->mem = bus_alloc_resource_any(dev, sc->mem_type, &sc->mem_rid, + RF_ACTIVE); if (!sc->mem) { device_printf(dev, "Unable to allocate I/O space resource.\n"); error = ENXIO; @@ -141,8 +141,8 @@ pdq_pci_attach(device_t dev) sc->mem_bst = rman_get_bustag(sc->mem); sc->irq_rid = 0; - sc->irq = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->irq_rid, - 0, ~0, 1, RF_SHAREABLE | RF_ACTIVE); + sc->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->irq_rid, + RF_SHAREABLE | RF_ACTIVE); if (!sc->irq) { device_printf(dev, "Unable to allocate interrupt resource.\n"); error = ENXIO; -- cgit v1.1