diff options
Diffstat (limited to 'sys/dev/ips')
| -rw-r--r-- | sys/dev/ips/ips_pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ips/ips_pci.c b/sys/dev/ips/ips_pci.c index 47ff7ec1f320..9e77cd05db6f 100644 --- a/sys/dev/ips/ips_pci.c +++ b/sys/dev/ips/ips_pci.c @@ -87,15 +87,15 @@ static int ips_pci_attach(device_t dev) if(command & PCIM_CMD_MEMEN){ PRINTF(10, "trying MEMIO\n"); if(pci_get_device(dev) == IPS_MORPHEUS_DEVICE_ID) - sc->rid = PCIR_MAPS; + sc->rid = PCIR_BAR(0); else - sc->rid = PCIR_MAPS + 4; + sc->rid = PCIR_BAR(1); sc->iotype = SYS_RES_MEMORY; sc->iores = bus_alloc_resource(dev, sc->iotype, &sc->rid, 0, ~0, 1, RF_ACTIVE); } if(!sc->iores && command & PCIM_CMD_PORTEN){ PRINTF(10, "trying PORTIO\n"); - sc->rid = PCIR_MAPS; + sc->rid = PCIR_BAR(0); sc->iotype = SYS_RES_IOPORT; sc->iores = bus_alloc_resource(dev, sc->iotype, &sc->rid, 0, ~0, 1, RF_ACTIVE); } |
