Allocate interrupts from the resource list.

This commit is contained in:
Benno Rice 2003-01-09 09:15:42 +00:00
parent 2f34cbe564
commit 3599b2baf7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108994

View file

@ -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",