diff options
| author | Nate Lawson <njl@FreeBSD.org> | 2004-03-17 17:50:55 +0000 |
|---|---|---|
| committer | Nate Lawson <njl@FreeBSD.org> | 2004-03-17 17:50:55 +0000 |
| commit | 5f96beb9e08be2b08309a6b98967246b64272ade (patch) | |
| tree | a1c3f00139d832c8e80338cfc56c8b1aaffd88ab /sys/dev/puc | |
| parent | 902aa2e784bda6cef99fb99db6acd4f435a3ff09 (diff) | |
Notes
Diffstat (limited to 'sys/dev/puc')
| -rw-r--r-- | sys/dev/puc/puc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/puc/puc.c b/sys/dev/puc/puc.c index 3703ae34810cb..315cff219eb0d 100644 --- a/sys/dev/puc/puc.c +++ b/sys/dev/puc/puc.c @@ -188,7 +188,7 @@ puc_attach(device_t dev, const struct puc_device_description *desc) printf("puc: name: %s\n", sc->sc_desc.name); #endif rid = 0; - res = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, + res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE | RF_SHAREABLE); if (!res) return (ENXIO); @@ -223,13 +223,13 @@ puc_attach(device_t dev, const struct puc_device_description *desc) type = (sc->sc_desc.ports[i].flags & PUC_FLAGS_MEMORY) ? SYS_RES_MEMORY : SYS_RES_IOPORT; - res = bus_alloc_resource(dev, type, &rid, 0ul, ~0ul, 1, + res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); if (res == NULL && sc->sc_desc.ports[i].flags & PUC_FLAGS_ALTRES) { type = (type == SYS_RES_IOPORT) ? SYS_RES_MEMORY : SYS_RES_IOPORT; - res = bus_alloc_resource(dev, type, &rid, 0ul, ~0ul, 1, + res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); } if (res == NULL) { |
