1 /* SPDX-License-Identifier: GPL-2.0 */
12 static inline void fb_pgprotect(struct file
*file
, struct vm_area_struct
*vma
,
15 pgprot_val(vma
->vm_page_prot
) |= SUN3_PAGE_NOCACHE
;
18 static inline void fb_pgprotect(struct file
*file
, struct vm_area_struct
*vma
,
21 if (CPU_IS_020_OR_030
)
22 pgprot_val(vma
->vm_page_prot
) |= _PAGE_NOCACHE030
;
23 if (CPU_IS_040_OR_060
) {
24 pgprot_val(vma
->vm_page_prot
) &= _CACHEMASK040
;
25 /* Use no-cache mode, serialized */
26 pgprot_val(vma
->vm_page_prot
) |= _PAGE_NOCACHE_S
;
29 #endif /* CONFIG_SUN3 */
31 #define fb_pgprotect(...) do {} while (0)
32 #endif /* CONFIG_MMU */
34 static inline int fb_is_primary_device(struct fb_info
*info
)
39 #endif /* _ASM_FB_H_ */