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/sym | |
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/sym')
-rw-r--r-- | sys/dev/sym/sym_hipd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c index 642ccc3..e66e5d5 100644 --- a/sys/dev/sym/sym_hipd.c +++ b/sys/dev/sym/sym_hipd.c @@ -8747,8 +8747,8 @@ sym_pci_attach(device_t dev) */ if ((command & PCIM_CMD_MEMEN) != 0) { int regs_id = SYM_PCI_MMIO; - np->mmio_res = bus_alloc_resource(dev, SYS_RES_MEMORY, ®s_id, - 0, ~0, 1, RF_ACTIVE); + np->mmio_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, + ®s_id, RF_ACTIVE); } if (!np->mmio_res) { device_printf(dev, "failed to allocate MMIO resources\n"); @@ -8764,8 +8764,8 @@ sym_pci_attach(device_t dev) * Allocate the IRQ. */ i = 0; - np->irq_res = bus_alloc_resource(dev, SYS_RES_IRQ, &i, - 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE); + np->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &i, + RF_ACTIVE | RF_SHAREABLE); if (!np->irq_res) { device_printf(dev, "failed to allocate IRQ resource\n"); goto attach_failed; @@ -8778,8 +8778,8 @@ sym_pci_attach(device_t dev) */ if ((command & PCI_COMMAND_IO_ENABLE) != 0) { int regs_id = SYM_PCI_IO; - np->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT, ®s_id, - 0, ~0, 1, RF_ACTIVE); + np->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, + ®s_id, RF_ACTIVE); } if (!np->io_res) { device_printf(dev, "failed to allocate IO resources\n"); @@ -8800,8 +8800,8 @@ sym_pci_attach(device_t dev) int regs_id = SYM_PCI_RAM; if (np->features & FE_64BIT) regs_id = SYM_PCI_RAM64; - np->ram_res = bus_alloc_resource(dev, SYS_RES_MEMORY, ®s_id, - 0, ~0, 1, RF_ACTIVE); + np->ram_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, + ®s_id, RF_ACTIVE); if (!np->ram_res) { device_printf(dev,"failed to allocate RAM resources\n"); goto attach_failed; |