diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2006-08-21 20:38:57 +0200 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2006-08-21 20:38:57 +0200 |
commit | 1c787f0d396c309131d5f34939598d657ee2459f (patch) | |
tree | c6f2b2f9fcba11d0865cd90d5b83b6c300bc06c9 /linux-core/drm_compat.h | |
parent | 42c2cfcf7d5730a2961d425228e042f533b312fa (diff) |
Backwards compatibility code for ttms.
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r-- | linux-core/drm_compat.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h index 407853d7..80928319 100644 --- a/linux-core/drm_compat.h +++ b/linux-core/drm_compat.h @@ -227,4 +227,22 @@ static inline int remap_pfn_range(struct vm_area_struct *vma, unsigned long from } #endif +#include <linux/mm.h> +#include <asm/page.h> + +/* + * Flush relevant caches and clear a VMA structure so that page references + * will cause a page fault. Don't flush tlbs. + */ + +extern void drm_clear_vma(struct vm_area_struct *vma, + unsigned long addr, unsigned long end); + +/* + * Return the PTE protection map entries for the VMA flags given by + * flags. This is a functional interface to the kernel's protection map. + */ + +extern pgprot_t drm_prot_map(uint32_t flags); + #endif |