summaryrefslogtreecommitdiffstats
path: root/sys/dev/an/if_an_pci.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-09-02 17:30:40 +0000
committerjhb <jhb@FreeBSD.org>2003-09-02 17:30:40 +0000
commitdc11e45b68dec5003e226a26f7fa2ee9a1e351c2 (patch)
tree1a7743437055722d93fce73b145dde1eb1915e7f /sys/dev/an/if_an_pci.c
parent480ed8b5934d938866a31bd84aa636de31845487 (diff)
downloadFreeBSD-src-dc11e45b68dec5003e226a26f7fa2ee9a1e351c2.zip
FreeBSD-src-dc11e45b68dec5003e226a26f7fa2ee9a1e351c2.tar.gz
Use PCIR_BAR(x) instead of PCIR_MAPS.
Glanced over by: imp, gibbs Tested by: i386 LINT
Diffstat (limited to 'sys/dev/an/if_an_pci.c')
-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 7354e94..3484679 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) {
OpenPOWER on IntegriCloud