Use the correct register names. s/PCI_MAP_REG_START/PCIR_MAPS/

This commit is contained in:
peter 2000-05-28 15:48:48 +00:00
parent 5ef471a3b8
commit 2858982d35

View File

@ -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;
}