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/fxp/if_fxp.c | |
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/fxp/if_fxp.c')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index b6c20f0..a83bc02 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -442,14 +442,13 @@ fxp_attach(device_t dev) sc->rtp = (m1 == PCIM_CMD_MEMEN)? SYS_RES_MEMORY : SYS_RES_IOPORT; sc->rgd = (m1 == PCIM_CMD_MEMEN)? FXP_PCI_MMBA : FXP_PCI_IOBA; - sc->mem = bus_alloc_resource(dev, sc->rtp, &sc->rgd, - 0, ~0, 1, RF_ACTIVE); + sc->mem = bus_alloc_resource_any(dev, sc->rtp, &sc->rgd, RF_ACTIVE); if (sc->mem == NULL) { sc->rtp = (m2 == PCIM_CMD_MEMEN)? SYS_RES_MEMORY : SYS_RES_IOPORT; sc->rgd = (m2 == PCIM_CMD_MEMEN)? FXP_PCI_MMBA : FXP_PCI_IOBA; - sc->mem = bus_alloc_resource(dev, sc->rtp, &sc->rgd, - 0, ~0, 1, RF_ACTIVE); + sc->mem = bus_alloc_resource_any(dev, sc->rtp, &sc->rgd, + RF_ACTIVE); } if (!sc->mem) { @@ -468,7 +467,7 @@ fxp_attach(device_t dev) * Allocate our interrupt. */ rid = 0; - sc->irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, + sc->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE); if (sc->irq == NULL) { device_printf(dev, "could not map interrupt\n"); |