summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-09-09 06:44:58 +0000
committerscottl <scottl@FreeBSD.org>2003-09-09 06:44:58 +0000
commit03f1b3ffefcb275dbd07b776e3ca01bf2467597b (patch)
treea55811c04861e67d0f9516723344a673b8e1c1e4 /sys/dev/aac
parent008d6943648c0acdb055492dd245e3c4783a1f93 (diff)
downloadFreeBSD-src-03f1b3ffefcb275dbd07b776e3ca01bf2467597b.zip
FreeBSD-src-03f1b3ffefcb275dbd07b776e3ca01bf2467597b.tar.gz
Use PCIR_BAR() instead of a magic offset.
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aac_pci.c2
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,
OpenPOWER on IntegriCloud