From 43632098e791da21a8b261c5b05b55cba97ae911 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 3 Sep 2003 17:48:22 +0000 Subject: 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. --- sys/dev/pci/pcireg.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/pci') 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 -- cgit v1.1