summaryrefslogtreecommitdiffstats
path: root/sys/dev/aic7xxx/ahc_pci.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-03-17 17:50:55 +0000
committernjl <njl@FreeBSD.org>2004-03-17 17:50:55 +0000
commit05a1f56fc999f634406946e831eea6deaaa75a99 (patch)
treea1c3f00139d832c8e80338cfc56c8b1aaffd88ab /sys/dev/aic7xxx/ahc_pci.c
parent2283471bb53a546e9d7dfb662c8db5ca06907c85 (diff)
downloadFreeBSD-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/aic7xxx/ahc_pci.c')
-rw-r--r--sys/dev/aic7xxx/ahc_pci.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/aic7xxx/ahc_pci.c b/sys/dev/aic7xxx/ahc_pci.c
index 86e0a60..4050d7f 100644
--- a/sys/dev/aic7xxx/ahc_pci.c
+++ b/sys/dev/aic7xxx/ahc_pci.c
@@ -172,8 +172,8 @@ ahc_pci_map_registers(struct ahc_softc *ahc)
regs_type = SYS_RES_MEMORY;
regs_id = AHC_PCI_MEMADDR;
- regs = bus_alloc_resource(ahc->dev_softc, regs_type,
- &regs_id, 0, ~0, 1, RF_ACTIVE);
+ regs = bus_alloc_resource_any(ahc->dev_softc, regs_type,
+ &regs_id, RF_ACTIVE);
if (regs != NULL) {
ahc->tag = rman_get_bustag(regs);
ahc->bsh = rman_get_bushandle(regs);
@@ -204,8 +204,8 @@ ahc_pci_map_registers(struct ahc_softc *ahc)
if (regs == NULL && (command & PCIM_CMD_PORTEN) != 0) {
regs_type = SYS_RES_IOPORT;
regs_id = AHC_PCI_IOADDR;
- regs = bus_alloc_resource(ahc->dev_softc, regs_type,
- &regs_id, 0, ~0, 1, RF_ACTIVE);
+ regs = bus_alloc_resource_any(ahc->dev_softc, regs_type,
+ &regs_id, RF_ACTIVE);
if (regs != NULL) {
ahc->tag = rman_get_bustag(regs);
ahc->bsh = rman_get_bushandle(regs);
@@ -245,8 +245,8 @@ ahc_pci_map_int(struct ahc_softc *ahc)
zero = 0;
ahc->platform_data->irq =
- bus_alloc_resource(ahc->dev_softc, SYS_RES_IRQ, &zero,
- 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE);
+ bus_alloc_resource_any(ahc->dev_softc, SYS_RES_IRQ, &zero,
+ RF_ACTIVE | RF_SHAREABLE);
if (ahc->platform_data->irq == NULL) {
device_printf(ahc->dev_softc,
"bus_alloc_resource() failed to allocate IRQ\n");
OpenPOWER on IntegriCloud