xref: /OK3568_Linux_fs/kernel/arch/sh/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 	vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
13*4882a593Smuzhiyun }
14*4882a593Smuzhiyun 
fb_is_primary_device(struct fb_info * info)15*4882a593Smuzhiyun static inline int fb_is_primary_device(struct fb_info *info)
16*4882a593Smuzhiyun {
17*4882a593Smuzhiyun 	return 0;
18*4882a593Smuzhiyun }
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #endif /* _ASM_FB_H_ */
21