aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sym
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2004-03-17 17:50:55 +0000
committerNate Lawson <njl@FreeBSD.org>2004-03-17 17:50:55 +0000
commit5f96beb9e08be2b08309a6b98967246b64272ade (patch)
treea1c3f00139d832c8e80338cfc56c8b1aaffd88ab /sys/dev/sym
parent902aa2e784bda6cef99fb99db6acd4f435a3ff09 (diff)
Notes
Diffstat (limited to 'sys/dev/sym')
-rw-r--r--sys/dev/sym/sym_hipd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c
index 642ccc332022..e66e5d5dfc93 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, &regs_id,
- 0, ~0, 1, RF_ACTIVE);
+ np->mmio_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
+ &regs_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, &regs_id,
- 0, ~0, 1, RF_ACTIVE);
+ np->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
+ &regs_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, &regs_id,
- 0, ~0, 1, RF_ACTIVE);
+ np->ram_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
+ &regs_id, RF_ACTIVE);
if (!np->ram_res) {
device_printf(dev,"failed to allocate RAM resources\n");
goto attach_failed;