summaryrefslogtreecommitdiffstats
path: root/sys/dev/trm
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/trm
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/trm')
-rw-r--r--sys/dev/trm/trm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/trm/trm.c b/sys/dev/trm/trm.c
index ce4c094..c2a2cf2 100644
--- a/sys/dev/trm/trm.c
+++ b/sys/dev/trm/trm.c
@@ -3395,7 +3395,7 @@ static PACB
trm_init(u_int16_t unit, device_t dev)
{
PACB pACB;
- int rid = PCIR_MAPS, i = 0, j = 0;
+ int rid = PCIR_BAR(0), i = 0, j = 0;
u_int16_t adaptType = 0;
pACB = (PACB) device_get_softc(dev);
@@ -3514,7 +3514,7 @@ trm_init(u_int16_t unit, device_t dev)
return (pACB);
bad:
if (pACB->iores)
- bus_release_resource(dev, SYS_RES_IOPORT, PCIR_MAPS,
+ bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(0),
pACB->iores);
if (pACB->sense_dmamap) {
bus_dmamap_unload(pACB->sense_dmat, pACB->sense_dmamap);
@@ -3630,7 +3630,7 @@ trm_attach(device_t dev)
return (0);
bad:
if (pACB->iores)
- bus_release_resource(dev, SYS_RES_IOPORT, PCIR_MAPS,
+ bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(0),
pACB->iores);
if (pACB->srb_dmamap) {
bus_dmamap_unload(pACB->srb_dmat, pACB->srb_dmamap);
@@ -3688,7 +3688,7 @@ trm_detach(device_t dev)
{
PACB pACB = device_get_softc(dev);
- bus_release_resource(dev, SYS_RES_IOPORT, PCIR_MAPS, pACB->iores);
+ bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(0), pACB->iores);
bus_dmamap_unload(pACB->srb_dmat, pACB->srb_dmamap);
bus_dmamem_free(pACB->srb_dmat, pACB->pFreeSRB,
pACB->srb_dmamap);
OpenPOWER on IntegriCloud