diff options
author | njl <njl@FreeBSD.org> | 2004-03-17 17:50:55 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-03-17 17:50:55 +0000 |
commit | 05a1f56fc999f634406946e831eea6deaaa75a99 (patch) | |
tree | a1c3f00139d832c8e80338cfc56c8b1aaffd88ab /sys/dev/ida | |
parent | 2283471bb53a546e9d7dfb662c8db5ca06907c85 (diff) | |
download | FreeBSD-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/dev/ida')
-rw-r--r-- | sys/dev/ida/ida_eisa.c | 8 | ||||
-rw-r--r-- | sys/dev/ida/ida_pci.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/ida/ida_eisa.c b/sys/dev/ida/ida_eisa.c index cd9741c..7bf0036 100644 --- a/sys/dev/ida/ida_eisa.c +++ b/sys/dev/ida/ida_eisa.c @@ -285,8 +285,8 @@ ida_eisa_attach(device_t dev) ida->regs_res_type = SYS_RES_IOPORT; ida->regs_res_id = 0; - ida->regs = bus_alloc_resource(dev, ida->regs_res_type, - &ida->regs_res_id, 0, ~0, 1, RF_ACTIVE); + ida->regs = bus_alloc_resource_any(dev, ida->regs_res_type, + &ida->regs_res_id, RF_ACTIVE); if (ida->regs == NULL) { device_printf(dev, "can't allocate register resources\n"); return (ENOMEM); @@ -316,8 +316,8 @@ ida_eisa_attach(device_t dev) rid = 0; ida->irq_res_type = SYS_RES_IRQ; - ida->irq = bus_alloc_resource(dev, ida->irq_res_type, &rid, - 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE); + ida->irq = bus_alloc_resource_any(dev, ida->irq_res_type, &rid, + RF_ACTIVE | RF_SHAREABLE); if (ida->irq == NULL) { ida_free(ida); return (ENOMEM); diff --git a/sys/dev/ida/ida_pci.c b/sys/dev/ida/ida_pci.c index b394b04..d1cdc4e 100644 --- a/sys/dev/ida/ida_pci.c +++ b/sys/dev/ida/ida_pci.c @@ -256,8 +256,8 @@ ida_pci_attach(device_t dev) if (id == IDA_DEVICEID_DEC_SMART) ida->regs_res_id = PCIR_BAR(0); - ida->regs = bus_alloc_resource(dev, ida->regs_res_type, - &ida->regs_res_id, 0, ~0, 1, RF_ACTIVE); + ida->regs = bus_alloc_resource_any(dev, ida->regs_res_type, + &ida->regs_res_id, RF_ACTIVE); if (ida->regs == NULL) { device_printf(dev, "can't allocate memory resources\n"); return (ENOMEM); @@ -277,8 +277,8 @@ ida_pci_attach(device_t dev) rid = 0; ida->irq_res_type = SYS_RES_IRQ; - ida->irq = bus_alloc_resource(dev, ida->irq_res_type, &rid, - 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE); + ida->irq = bus_alloc_resource_any(dev, ida->irq_res_type, &rid, + RF_ACTIVE | RF_SHAREABLE); if (ida->irq == NULL) { ida_free(ida); return (ENOMEM); |