diff options
author | scottl <scottl@FreeBSD.org> | 2003-09-09 06:44:58 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2003-09-09 06:44:58 +0000 |
commit | 03f1b3ffefcb275dbd07b776e3ca01bf2467597b (patch) | |
tree | a55811c04861e67d0f9516723344a673b8e1c1e4 | |
parent | 008d6943648c0acdb055492dd245e3c4783a1f93 (diff) | |
download | FreeBSD-src-03f1b3ffefcb275dbd07b776e3ca01bf2467597b.zip FreeBSD-src-03f1b3ffefcb275dbd07b776e3ca01bf2467597b.tar.gz |
Use PCIR_BAR() instead of a magic offset.
-rw-r--r-- | sys/dev/aac/aac_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/aac/aac_pci.c b/sys/dev/aac/aac_pci.c index e91df37..553d6c4 100644 --- a/sys/dev/aac/aac_pci.c +++ b/sys/dev/aac/aac_pci.c @@ -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, |