diff options
author | benno <benno@FreeBSD.org> | 2003-01-09 09:15:42 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2003-01-09 09:15:42 +0000 |
commit | c240e83a3ca06600d24e6d9ad42cc60a63078447 (patch) | |
tree | 5cd1d6f46fbe6da503ba8022900188da30e14506 /sys/powerpc | |
parent | 5a36cfc6d3de661aee9d1af77ddcdc3391707914 (diff) | |
download | FreeBSD-src-c240e83a3ca06600d24e6d9ad42cc60a63078447.zip FreeBSD-src-c240e83a3ca06600d24e6d9ad42cc60a63078447.tar.gz |
Allocate interrupts from the resource list.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/powermac/macio.c | 6 |
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", |