Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
fb.h
Go to the documentation of this file.
1 #ifndef _ASM_FB_H_
2 #define _ASM_FB_H_
3 
4 #include <linux/fb.h>
5 #include <linux/fs.h>
6 #include <asm/page.h>
7 #include <asm/setup.h>
8 
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)
13 {
15 }
16 #else
17 static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
18  unsigned long off)
19 {
22  if (CPU_IS_040_OR_060) {
24  /* Use no-cache mode, serialized */
26  }
27 }
28 #endif /* CONFIG_SUN3 */
29 #else
30 #define fb_pgprotect(...) do {} while (0)
31 #endif /* CONFIG_MMU */
32 
33 static inline int fb_is_primary_device(struct fb_info *info)
34 {
35  return 0;
36 }
37 
38 #endif /* _ASM_FB_H_ */