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/gx/if_gx.c | |
| parent | 902aa2e784bda6cef99fb99db6acd4f435a3ff09 (diff) | |
Notes
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 dc5a01c74195..9c54680fbe0f 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) { |
