Use PCIR_BAR() instead of a magic offset.

This commit is contained in:
Scott Long 2003-09-09 06:44:58 +00:00
parent 5fdcb0a62e
commit 5b80c0d74d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119908

View File

@ -198,7 +198,7 @@ aac_pci_attach(device_t dev)
/*
* Allocate the PCI register window.
*/
sc->aac_regs_rid = 0x10; /* first base address register */
sc->aac_regs_rid = PCIR_BAR(0);
if ((sc->aac_regs_resource = bus_alloc_resource(sc->aac_dev,
SYS_RES_MEMORY,
&sc->aac_regs_rid,