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