1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 4 */ 5 #ifndef _ASM_FB_H_ 6 #define _ASM_FB_H_ 7 8 #include <linux/fb.h> 9 #include <linux/fs.h> 10 #include <asm/page.h> 11 12 static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, 13 unsigned long off) 14 { 15 vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); 16 } 17 18 static inline int fb_is_primary_device(struct fb_info *info) 19 { 20 return 0; 21 } 22 23 #endif /* _ASM_FB_H_ */ 24