aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aic7xxx/aic79xx_osm.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-08-22 05:54:52 +0000
committerWarner Losh <imp@FreeBSD.org>2003-08-22 05:54:52 +0000
commit4fbd232c8640bb1d58dca36e50df7c1c8eb4ca72 (patch)
tree633ff3cbdbfdb63210ca731968f72ea813a82ed7 /sys/dev/aic7xxx/aic79xx_osm.h
parent3c5a69f7d0cda4d5da3e70514357a4a4989ceb03 (diff)
Prefer new location of pci include files (which have only been in the
tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
Notes
Notes: svn path=/head/; revision=119277
Diffstat (limited to 'sys/dev/aic7xxx/aic79xx_osm.h')
-rw-r--r--sys/dev/aic7xxx/aic79xx_osm.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/aic7xxx/aic79xx_osm.h b/sys/dev/aic7xxx/aic79xx_osm.h
index 681c10d9ed56..80a0b8c323fd 100644
--- a/sys/dev/aic7xxx/aic79xx_osm.h
+++ b/sys/dev/aic7xxx/aic79xx_osm.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aic79xx_osm.h#20 $
+ * $Id: aic79xx_osm.h,v 1.11 2003/07/01 15:51:52 scottl Exp $
*
* $FreeBSD$
*/
@@ -61,8 +61,13 @@
#include <sys/rman.h>
+#if __FreeBSD_version >= 500000
+#include <dev/pci/pcireg.h>
+#include <dev/pci/pcivar.h>
+#else
#include <pci/pcireg.h>
#include <pci/pcivar.h>
+#endif
#include <cam/cam.h>
#include <cam/cam_ccb.h>