svn commit: r305344 - head/sys/dev/drm2

Dimitry Andric dim at FreeBSD.org
Sat Sep 3 13:33:29 UTC 2016


Author: dim
Date: Sat Sep  3 13:33:28 2016
New Revision: 305344
URL: https://svnweb.freebsd.org/changeset/base/305344

Log:
  Define drmP.h's __OS_HAS_AGP and __OS_HAS_MTRR macros in a defined and
  portable way.
  
  Reviewed by:	dumbbell
  MFC after:	3 days
  Differential Revision: https://reviews.freebsd.org/D7770

Modified:
  head/sys/dev/drm2/drmP.h

Modified: head/sys/dev/drm2/drmP.h
==============================================================================
--- head/sys/dev/drm2/drmP.h	Sat Sep  3 13:01:37 2016	(r305343)
+++ head/sys/dev/drm2/drmP.h	Sat Sep  3 13:33:28 2016	(r305344)
@@ -103,8 +103,16 @@ __FBSDID("$FreeBSD$");
 
 #include <dev/drm2/drm_os_freebsd.h>
 
-#define __OS_HAS_AGP (defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && defined(MODULE)))
-#define __OS_HAS_MTRR (defined(CONFIG_MTRR))
+#if defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && defined(MODULE))
+#define __OS_HAS_AGP 1
+#else
+#define __OS_HAS_AGP 0
+#endif
+#if defined(CONFIG_MTRR)
+#define __OS_HAS_MTRR 1
+#else
+#define __OS_HAS_MTRR 0
+#endif
 
 struct drm_file;
 struct drm_device;


More information about the svn-src-head mailing list