Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / m68k / include / asm / fb.h
blobbe4e4c6797e822eb497e72d59f33145efbb099f1
1 #ifndef _ASM_FB_H_
2 #define _ASM_FB_H_
4 #include <linux/fb.h>
5 #include <linux/fs.h>
6 #include <asm/page.h>
7 #include <asm/setup.h>
9 #ifdef CONFIG_MMU
10 #ifdef CONFIG_SUN3
11 static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
12 unsigned long off)
14 pgprot_val(vma->vm_page_prot) |= SUN3_PAGE_NOCACHE;
16 #else
17 static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
18 unsigned long off)
20 if (CPU_IS_020_OR_030)
21 pgprot_val(vma->vm_page_prot) |= _PAGE_NOCACHE030;
22 if (CPU_IS_040_OR_060) {
23 pgprot_val(vma->vm_page_prot) &= _CACHEMASK040;
24 /* Use no-cache mode, serialized */
25 pgprot_val(vma->vm_page_prot) |= _PAGE_NOCACHE_S;
28 #endif /* CONFIG_SUN3 */
29 #else
30 #define fb_pgprotect(...) do {} while (0)
31 #endif /* CONFIG_MMU */
33 static inline int fb_is_primary_device(struct fb_info *info)
35 return 0;
38 #endif /* _ASM_FB_H_ */