summaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-05-08 10:25:01 +1000
committerDave Airlie <airlied@linux.ie>2008-05-08 10:25:01 +1000
commitef204fb5c24f9bd09192a9abebad6a06dd0b88db (patch)
treea72ee9071462457b27475c2cc86e3c6256388ea9 /linux-core/drm_compat.h
parent7f269bec7ed49385de394fdbd970f463ef2060f0 (diff)
parentb44f2da380e78769b58c751e81f376f0fa1f48aa (diff)
Merge remote branch 'origin/master' into modesetting-101
Conflicts: linux-core/Makefile.kernel shared-core/i915_drv.h
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r--linux-core/drm_compat.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h
index 32e62ddb..f35821bd 100644
--- a/linux-core/drm_compat.h
+++ b/linux-core/drm_compat.h
@@ -367,4 +367,23 @@ extern void *kmap_atomic_prot_pfn(unsigned long pfn, enum km_type type,
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : (1ULL<<(n)) - 1)
#endif
+#ifndef VM_CAN_NONLINEAR
+#define DRM_VM_NOPAGE 1
+#endif
+
+#ifdef DRM_VM_NOPAGE
+
+extern struct page *drm_vm_nopage(struct vm_area_struct *vma,
+ unsigned long address, int *type);
+
+extern struct page *drm_vm_shm_nopage(struct vm_area_struct *vma,
+ unsigned long address, int *type);
+
+extern struct page *drm_vm_dma_nopage(struct vm_area_struct *vma,
+ unsigned long address, int *type);
+
+extern struct page *drm_vm_sg_nopage(struct vm_area_struct *vma,
+ unsigned long address, int *type);
+#endif
+
#endif