summaryrefslogtreecommitdiff
path: root/bsd-core
diff options
context:
space:
mode:
authorRobert Noland <rnoland@squirrel.acs.internap.com>2007-11-18 22:40:13 -0800
committerEric Anholt <eric@anholt.net>2007-11-18 22:41:41 -0800
commitc12a3a3ce08cbbba118acd8742b2ef990b417eea (patch)
tree06ebbbf335a4e5bb2d52089e96143002492dc0f0 /bsd-core
parenta90510966e12e20d3c51d224dda607ac9951d039 (diff)
Bug #13233: Chase move of agp headers on FreeBSD.
Diffstat (limited to 'bsd-core')
-rw-r--r--bsd-core/drmP.h4
-rw-r--r--bsd-core/drm_agpsupport.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h
index 9732d509..1dd27282 100644
--- a/bsd-core/drmP.h
+++ b/bsd-core/drmP.h
@@ -76,7 +76,11 @@ typedef struct drm_file drm_file_t;
#if defined(__FreeBSD__)
#include <sys/rman.h>
#include <sys/memrange.h>
+#if __FreeBSD_version >= 800004
+#include <dev/agp/agpvar.h>
+#else /* __FreeBSD_version >= 800004 */
#include <pci/agpvar.h>
+#endif /* __FreeBSD_version >= 800004 */
#include <sys/agpio.h>
#if __FreeBSD_version >= 500000
#include <sys/mutex.h>
diff --git a/bsd-core/drm_agpsupport.c b/bsd-core/drm_agpsupport.c
index 6f963b9c..4b921322 100644
--- a/bsd-core/drm_agpsupport.c
+++ b/bsd-core/drm_agpsupport.c
@@ -36,7 +36,11 @@
#include "drmP.h"
#ifdef __FreeBSD__
+#if __FreeBSD_version >= 800004
+#include <dev/agp/agpreg.h>
+#else /* __FreeBSD_version >= 800004 */
#include <pci/agpreg.h>
+#endif /* __FreeBSD_version >= 800004 */
#include <dev/pci/pcireg.h>
#endif