summaryrefslogtreecommitdiffstats
path: root/sys/isa/isa_common.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/isa/isa_common.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/isa/isa_common.c')
-rw-r--r--sys/isa/isa_common.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c
index 4f84093..1ce40b2 100644
--- a/sys/isa/isa_common.c
+++ b/sys/isa/isa_common.c
@@ -153,9 +153,9 @@ isa_find_memory(device_t child,
start += align) {
bus_set_resource(child, SYS_RES_MEMORY, i,
start, size);
- res[i] = bus_alloc_resource(child,
- SYS_RES_MEMORY, &i,
- 0, ~0, 1, 0 /* !RF_ACTIVE */);
+ res[i] = bus_alloc_resource_any(child,
+ SYS_RES_MEMORY, &i,
+ 0 /* !RF_ACTIVE */);
if (res[i]) {
result->ic_mem[i].ir_start = start;
result->ic_mem[i].ir_end = start + size - 1;
@@ -228,9 +228,9 @@ isa_find_port(device_t child,
start += align) {
bus_set_resource(child, SYS_RES_IOPORT, i,
start, size);
- res[i] = bus_alloc_resource(child,
- SYS_RES_IOPORT, &i,
- 0, ~0, 1, 0 /* !RF_ACTIVE */);
+ res[i] = bus_alloc_resource_any(child,
+ SYS_RES_IOPORT, &i,
+ 0 /* !RF_ACTIVE */);
if (res[i]) {
result->ic_port[i].ir_start = start;
result->ic_port[i].ir_end = start + size - 1;
@@ -320,9 +320,9 @@ isa_find_irq(device_t child,
irq = find_next_bit(mask, irq)) {
bus_set_resource(child, SYS_RES_IRQ, i,
irq, 1);
- res[i] = bus_alloc_resource(child,
- SYS_RES_IRQ, &i,
- 0, ~0, 1, 0 /* !RF_ACTIVE */ );
+ res[i] = bus_alloc_resource_any(child,
+ SYS_RES_IRQ, &i,
+ 0 /* !RF_ACTIVE */ );
if (res[i]) {
result->ic_irqmask[i] = (1 << irq);
break;
@@ -386,9 +386,9 @@ isa_find_drq(device_t child,
drq = find_next_bit(mask, drq)) {
bus_set_resource(child, SYS_RES_DRQ, i,
drq, 1);
- res[i] = bus_alloc_resource(child,
- SYS_RES_DRQ, &i,
- 0, ~0, 1, 0 /* !RF_ACTIVE */);
+ res[i] = bus_alloc_resource_any(child,
+ SYS_RES_DRQ, &i,
+ 0 /* !RF_ACTIVE */);
if (res[i]) {
result->ic_drqmask[i] = (1 << drq);
break;
OpenPOWER on IntegriCloud