summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2003-09-02 17:11:27 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2003-09-02 17:11:27 +0000
commit56802c46e21d0c72a5f0550f2cb1f2a155ceb633 (patch)
tree604be0f8399bfe2001b557c0859a06a9e5a1a1c1 /sys/dev
parentbd2f86fe4e29a3428e9bcc3d9d998aa11f7ae1d7 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pcireg.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index e851a8a72ed6..e073024243f4 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -100,7 +100,11 @@
/* config registers for header type 0 devices */
-#define PCIR_MAPS 0x10
+#define PCIR_BARS 0x10
+#define PCIR_BAR(x) (PCIR_BARS + (x) * 4)
+#ifndef BURN_BRIDGES
+#define PCIR_MAPS PCIR_BARS
+#endif
#define PCIR_CARDBUSCIS 0x28
#define PCIR_SUBVEND_0 0x2c
#define PCIR_SUBDEV_0 0x2e