#include <linux/debugfs.h>\r
#include <linux/mempolicy.h>\r
#include <linux/sched.h>\r
+#include <linux/dma-mapping.h>\r
#include <asm/io.h>\r
#include <asm/uaccess.h>\r
#include <asm/cacheflush.h>\r
up_read(&vdm_rwsem);\r
}\r
\r
-static pgprot_t phys_mem_access_prot(struct file *file, pgprot_t vma_prot)\r
+static pgprot_t vpu_mem_phys_mem_access_prot(struct file *file, pgprot_t vma_prot)\r
{\r
#ifdef pgprot_noncached\r
if (vpu_mem.cached == 0 || file->f_flags & O_SYNC)\r
}\r
\r
vma->vm_pgoff = vpu_mem.base >> PAGE_SHIFT;\r
- vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_page_prot);\r
+ vma->vm_page_prot = vpu_mem_phys_mem_access_prot(file, vma->vm_page_prot);\r
\r
if (vpu_mem_map_pfn_range(vma, vma_size)) {\r
printk(KERN_INFO "vpu_mem: mmap failed in kernel!\n");\r