18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This file is released under the GPLv2 48c2ecf20Sopenharmony_ci * Copyright (C) 2020 Loongson Technology Corporation Limited 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci#ifndef _ASM_FB_H_ 78c2ecf20Sopenharmony_ci#define _ASM_FB_H_ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include <linux/fb.h> 108c2ecf20Sopenharmony_ci#include <linux/fs.h> 118c2ecf20Sopenharmony_ci#include <asm/page.h> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_cistatic inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, 148c2ecf20Sopenharmony_ci unsigned long off) 158c2ecf20Sopenharmony_ci{ 168c2ecf20Sopenharmony_ci vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); 178c2ecf20Sopenharmony_ci} 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_cistatic inline int fb_is_primary_device(struct fb_info *info) 208c2ecf20Sopenharmony_ci{ 218c2ecf20Sopenharmony_ci return 0; 228c2ecf20Sopenharmony_ci} 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#endif /* _ASM_FB_H_ */ 25