summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-09-02 17:11:27 +0000
committerjhb <jhb@FreeBSD.org>2003-09-02 17:11:27 +0000
commit480ed8b5934d938866a31bd84aa636de31845487 (patch)
tree604be0f8399bfe2001b557c0859a06a9e5a1a1c1 /sys
parentd639820bc8a62eefd0bd6061a2526934f91a5567 (diff)
downloadFreeBSD-src-480ed8b5934d938866a31bd84aa636de31845487.zip
FreeBSD-src-480ed8b5934d938866a31bd84aa636de31845487.tar.gz
- Deprecate PCIR_MAPS under BURN_BRIDGES (meaning it will be gone in 6.0)
and replace it with the more intuitive name PCIR_BARS. - Add a PCIR_BAR(x) macro that returns the config space register offset of the 32-bit BAR x. MFC after: 3 days
Diffstat (limited to 'sys')
-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 e851a8a..e073024 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
OpenPOWER on IntegriCloud