summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac/macio.c
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2003-01-09 09:15:42 +0000
committerbenno <benno@FreeBSD.org>2003-01-09 09:15:42 +0000
commitc240e83a3ca06600d24e6d9ad42cc60a63078447 (patch)
tree5cd1d6f46fbe6da503ba8022900188da30e14506 /sys/powerpc/powermac/macio.c
parent5a36cfc6d3de661aee9d1af77ddcdc3391707914 (diff)
downloadFreeBSD-src-c240e83a3ca06600d24e6d9ad42cc60a63078447.zip
FreeBSD-src-c240e83a3ca06600d24e6d9ad42cc60a63078447.tar.gz
Allocate interrupts from the resource list.
Diffstat (limited to 'sys/powerpc/powermac/macio.c')
-rw-r--r--sys/powerpc/powermac/macio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/powerpc/powermac/macio.c b/sys/powerpc/powermac/macio.c
index 53db86a..a924dd47 100644
--- a/sys/powerpc/powermac/macio.c
+++ b/sys/powerpc/powermac/macio.c
@@ -400,8 +400,10 @@ macio_alloc_resource(device_t bus, device_t child, int type, int *rid,
struct resource *rv;
struct rman *rm;
bus_space_tag_t tagval;
+ struct macio_devinfo *dinfo;
sc = device_get_softc(bus);
+ dinfo = device_get_ivars(child);
needactivate = flags & RF_ACTIVE;
flags &= ~RF_ACTIVE;
@@ -415,8 +417,8 @@ macio_alloc_resource(device_t bus, device_t child, int type, int *rid,
tagval |= 4;
break;
case SYS_RES_IRQ:
- return (bus_alloc_resource(bus, type, rid, start, end, count,
- flags));
+ return (resource_list_alloc(&dinfo->mdi_resources, bus, child,
+ type, rid, start, end, count, flags));
break;
default:
device_printf(bus, "unknown resource request from %s\n",
OpenPOWER on IntegriCloud