summaryrefslogtreecommitdiffstats
path: root/sys/dev/aic7xxx/ahc_eisa.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-03-17 17:50:55 +0000
committernjl <njl@FreeBSD.org>2004-03-17 17:50:55 +0000
commit05a1f56fc999f634406946e831eea6deaaa75a99 (patch)
treea1c3f00139d832c8e80338cfc56c8b1aaffd88ab /sys/dev/aic7xxx/ahc_eisa.c
parent2283471bb53a546e9d7dfb662c8db5ca06907c85 (diff)
downloadFreeBSD-src-05a1f56fc999f634406946e831eea6deaaa75a99.zip
FreeBSD-src-05a1f56fc999f634406946e831eea6deaaa75a99.tar.gz
Convert callers to the new bus_alloc_resource_any(9) API.
Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
Diffstat (limited to 'sys/dev/aic7xxx/ahc_eisa.c')
-rw-r--r--sys/dev/aic7xxx/ahc_eisa.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/aic7xxx/ahc_eisa.c b/sys/dev/aic7xxx/ahc_eisa.c
index d51fcdf..9c773aa 100644
--- a/sys/dev/aic7xxx/ahc_eisa.c
+++ b/sys/dev/aic7xxx/ahc_eisa.c
@@ -61,8 +61,7 @@ aic7770_probe(device_t dev)
eisa_add_iospace(dev, iobase, AHC_EISA_IOSIZE, RESVADDR_NONE);
rid = 0;
- regs = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
- 0, ~0, 1, RF_ACTIVE);
+ regs = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE);
if (regs == NULL) {
device_printf(dev, "Unable to map I/O space?!\n");
return ENOMEM;
@@ -167,8 +166,8 @@ aic7770_map_registers(struct ahc_softc *ahc, u_int unused_ioport_arg)
int rid;
rid = 0;
- regs = bus_alloc_resource(ahc->dev_softc, SYS_RES_IOPORT,
- &rid, 0, ~0, 1, RF_ACTIVE);
+ regs = bus_alloc_resource_any(ahc->dev_softc, SYS_RES_IOPORT, &rid,
+ RF_ACTIVE);
if (regs == NULL) {
device_printf(ahc->dev_softc, "Unable to map I/O space?!\n");
return ENOMEM;
@@ -188,8 +187,8 @@ aic7770_map_int(struct ahc_softc *ahc, int irq)
zero = 0;
ahc->platform_data->irq =
- bus_alloc_resource(ahc->dev_softc, SYS_RES_IRQ, &zero,
- 0, ~0, 1, RF_ACTIVE);
+ bus_alloc_resource_any(ahc->dev_softc, SYS_RES_IRQ, &zero,
+ RF_ACTIVE);
if (ahc->platform_data->irq == NULL)
return (ENOMEM);
ahc->platform_data->irq_res_type = SYS_RES_IRQ;
OpenPOWER on IntegriCloud