From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/arch/powerpc/include/asm/fb.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ANDROID_3.4.5/arch/powerpc/include/asm/fb.h (limited to 'ANDROID_3.4.5/arch/powerpc/include/asm/fb.h') diff --git a/ANDROID_3.4.5/arch/powerpc/include/asm/fb.h b/ANDROID_3.4.5/arch/powerpc/include/asm/fb.h new file mode 100644 index 00000000..411af8d1 --- /dev/null +++ b/ANDROID_3.4.5/arch/powerpc/include/asm/fb.h @@ -0,0 +1,21 @@ +#ifndef _ASM_FB_H_ +#define _ASM_FB_H_ + +#include +#include +#include + +static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, + unsigned long off) +{ + vma->vm_page_prot = phys_mem_access_prot(file, off >> PAGE_SHIFT, + vma->vm_end - vma->vm_start, + vma->vm_page_prot); +} + +static inline int fb_is_primary_device(struct fb_info *info) +{ + return 0; +} + +#endif /* _ASM_FB_H_ */ -- cgit