summaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-08-11 10:47:00 +1000
committerDave Airlie <airlied@redhat.com>2008-08-11 10:47:00 +1000
commit280d415957c0af099c44aaecb69a06c68c86aebb (patch)
tree3ec0a2526b5d839e1f7031b6f17f3e632eb69585 /linux-core/drm_compat.h
parent12e6a114cf9ebd0e1d8ccdbf9a7aef7c67e24b58 (diff)
drm: add OS_HAS_GEM option.
To build i915 driver pass OS_HAS_GEM=1 to make for now
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r--linux-core/drm_compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h
index 7ddc2c97..c7f72e33 100644
--- a/linux-core/drm_compat.h
+++ b/linux-core/drm_compat.h
@@ -369,4 +369,12 @@ extern struct page *drm_vm_sg_nopage(struct vm_area_struct *vma,
#define drm_core_ioremap_wc drm_core_ioremap
#endif
+#ifndef OS_HAS_GEM
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27))
+#define OS_HAS_GEM 1
+#else
+#define OS_HAS_GEM 0
+#endif
+#endif
+
#endif