diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2003-09-02 17:30:40 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2003-09-02 17:30:40 +0000 |
| commit | e27951b29c565206b57c8cdbc2ac344485c2f4f5 (patch) | |
| tree | 1a7743437055722d93fce73b145dde1eb1915e7f /sys/dev/ips | |
| parent | 56802c46e21d0c72a5f0550f2cb1f2a155ceb633 (diff) | |
Notes
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); } |
