11 static inline void fb_pgprotect(struct file
*file
, struct vm_area_struct
*vma
,
14 pgprot_val(vma
->vm_page_prot
) |= SUN3_PAGE_NOCACHE
;
17 static inline void fb_pgprotect(struct file
*file
, struct vm_area_struct
*vma
,
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 */
30 #define fb_pgprotect(...) do {} while (0)
31 #endif /* CONFIG_MMU */
33 static inline int fb_is_primary_device(struct fb_info
*info
)
38 #endif /* _ASM_FB_H_ */