xref: /OK3568_Linux_fs/kernel/arch/parisc/include/asm/fb.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _ASM_FB_H_
3*4882a593Smuzhiyun #define _ASM_FB_H_
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <linux/fb.h>
6*4882a593Smuzhiyun #include <linux/fs.h>
7*4882a593Smuzhiyun #include <asm/page.h>
8*4882a593Smuzhiyun 
fb_pgprotect(struct file * file,struct vm_area_struct * vma,unsigned long off)9*4882a593Smuzhiyun static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
10*4882a593Smuzhiyun 				unsigned long off)
11*4882a593Smuzhiyun {
12*4882a593Smuzhiyun 	pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE;
13*4882a593Smuzhiyun }
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #if defined(CONFIG_FB_STI)
16*4882a593Smuzhiyun int fb_is_primary_device(struct fb_info *info);
17*4882a593Smuzhiyun #else
fb_is_primary_device(struct fb_info * info)18*4882a593Smuzhiyun static inline int fb_is_primary_device(struct fb_info *info)
19*4882a593Smuzhiyun {
20*4882a593Smuzhiyun 	return 0;
21*4882a593Smuzhiyun }
22*4882a593Smuzhiyun #endif
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #endif /* _ASM_FB_H_ */
25