summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-09-03 17:48:22 +0000
committerjhb <jhb@FreeBSD.org>2003-09-03 17:48:22 +0000
commit43632098e791da21a8b261c5b05b55cba97ae911 (patch)
treeb75cb0d53aa7e5de0e4a88ff5e170bea50eec670 /sys/dev/pci
parent6a3d4cfc63b463ccab2e4e78c0f432e6d62219ed (diff)
downloadFreeBSD-src-43632098e791da21a8b261c5b05b55cba97ae911.zip
FreeBSD-src-43632098e791da21a8b261c5b05b55cba97ae911.tar.gz
Bring back PCIR_HEADERTYPE as an alias for PCIR_HDRTYPE under BURN_BRIDGES
for backwards compat. The old name will be gone in 6.0, but will be around in 5.x. This will help unbreak 3rd party code, e.g. the nvidia DRM module.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pcireg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index e073024..2d208bb 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -81,6 +81,9 @@
#define PCIR_CACHELNSZ 0x0c
#define PCIR_LATTIMER 0x0d
#define PCIR_HDRTYPE 0x0e
+#ifndef BURN_BRIDGES
+#define PCIR_HEADERTYPE PCIR_HDRTYPE
+#endif
#define PCIM_HDRTYPE 0x7f
#define PCIM_HDRTYPE_NORMAL 0x00
#define PCIM_HDRTYPE_BRIDGE 0x01
OpenPOWER on IntegriCloud