From 2858982d35973c53f73d984305943bce4dfbcbf7 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 28 May 2000 15:48:48 +0000 Subject: [PATCH] Use the correct register names. s/PCI_MAP_REG_START/PCIR_MAPS/ --- sys/dev/bktr/bktr_os.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/bktr/bktr_os.c b/sys/dev/bktr/bktr_os.c index 25e722776910..e66f3e9e5a89 100644 --- a/sys/dev/bktr/bktr_os.c +++ b/sys/dev/bktr/bktr_os.c @@ -293,7 +293,7 @@ bktr_attach( device_t dev ) /* * Map control/status registers. */ - rid = PCI_MAP_REG_START; + rid = PCIR_MAPS; bktr->res_mem = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~0, 1, RF_ACTIVE); @@ -428,7 +428,7 @@ bktr_detach( device_t dev ) */ bus_teardown_intr(dev, bktr->res_irq, bktr->res_ih); bus_release_resource(dev, SYS_RES_IRQ, 0, bktr->res_irq); - bus_release_resource(dev, SYS_RES_MEMORY, PCI_MAP_REG_START, bktr->res_mem); + bus_release_resource(dev, SYS_RES_MEMORY, PCIR_MAPS, bktr->res_mem); return 0; }