diff options
Diffstat (limited to 'sys/dev/gx/if_gx.c')
-rw-r--r-- | sys/dev/gx/if_gx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/gx/if_gx.c b/sys/dev/gx/if_gx.c index dc5a01c..9c54680 100644 --- a/sys/dev/gx/if_gx.c +++ b/sys/dev/gx/if_gx.c @@ -272,13 +272,13 @@ gx_attach(device_t dev) } rid = GX_PCI_LOMEM; - gx->gx_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, - 0, ~0, 1, RF_ACTIVE); + gx->gx_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, + RF_ACTIVE); #if 0 /* support PIO mode */ rid = PCI_LOIO; - gx->gx_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, - 0, ~0, 1, RF_ACTIVE); + gx->gx_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, + RF_ACTIVE); #endif if (gx->gx_res == NULL) { @@ -292,7 +292,7 @@ gx_attach(device_t dev) /* Allocate interrupt */ rid = 0; - gx->gx_irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, + gx->gx_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE); if (gx->gx_irq == NULL) { |