From dc11e45b68dec5003e226a26f7fa2ee9a1e351c2 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 2 Sep 2003 17:30:40 +0000 Subject: Use PCIR_BAR(x) instead of PCIR_MAPS. Glanced over by: imp, gibbs Tested by: i386 LINT --- sys/dev/an/if_an_pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/an') 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) { -- cgit v1.1