aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/an
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2003-09-02 17:30:40 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2003-09-02 17:30:40 +0000
commite27951b29c565206b57c8cdbc2ac344485c2f4f5 (patch)
tree1a7743437055722d93fce73b145dde1eb1915e7f /sys/dev/an
parent56802c46e21d0c72a5f0550f2cb1f2a155ceb633 (diff)
Notes
Diffstat (limited to 'sys/dev/an')
-rw-r--r--sys/dev/an/if_an_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/an/if_an_pci.c b/sys/dev/an/if_an_pci.c
index 7354e9488de0b..3484679cba540 100644
--- a/sys/dev/an/if_an_pci.c
+++ b/sys/dev/an/if_an_pci.c
@@ -156,7 +156,7 @@ an_attach_pci(dev)
if (pci_get_vendor(dev) == AIRONET_VENDORID &&
pci_get_device(dev) == AIRONET_DEVICEID_MPI350) {
sc->mpi350 = 1;
- sc->port_rid = PCIR_MAPS;
+ sc->port_rid = PCIR_BAR(0);
} else {
/*
* Map control/status registers.
@@ -186,7 +186,7 @@ an_attach_pci(dev)
/* Allocate memory for MPI350 */
if (sc->mpi350) {
/* Allocate memory */
- sc->mem_rid = PCIR_MAPS + 4;
+ sc->mem_rid = PCIR_BAR(1);
error = an_alloc_memory(dev, sc->mem_rid, 1);
if (error) {
printf("an%d: couldn't map memory\n", unit);
@@ -196,7 +196,7 @@ an_attach_pci(dev)
sc->an_mem_bhandle = rman_get_bushandle(sc->mem_res);
/* Allocate aux. memory */
- sc->mem_aux_rid = PCIR_MAPS + 8;
+ sc->mem_aux_rid = PCIR_BAR(2);
error = an_alloc_aux_memory(dev, sc->mem_aux_rid,
AN_AUX_MEM_SIZE);
if (error) {