diff options
author | Dave Airlie <airlied@linux.ie> | 2008-05-08 10:25:01 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-05-08 10:25:01 +1000 |
commit | ef204fb5c24f9bd09192a9abebad6a06dd0b88db (patch) | |
tree | a72ee9071462457b27475c2cc86e3c6256388ea9 /linux-core/drm_compat.h | |
parent | 7f269bec7ed49385de394fdbd970f463ef2060f0 (diff) | |
parent | b44f2da380e78769b58c751e81f376f0fa1f48aa (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.h | 19 |
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 |