xref: /kernel/linux/linux-5.10/arch/x86/include/asm/fb.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/x86/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _ASM_X86_FB_H
38c2ecf20Sopenharmony_ci#define _ASM_X86_FB_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <linux/fb.h>
68c2ecf20Sopenharmony_ci#include <linux/fs.h>
78c2ecf20Sopenharmony_ci#include <asm/page.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cistatic inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
108c2ecf20Sopenharmony_ci				unsigned long off)
118c2ecf20Sopenharmony_ci{
128c2ecf20Sopenharmony_ci	unsigned long prot;
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci	prot = pgprot_val(vma->vm_page_prot) & ~_PAGE_CACHE_MASK;
158c2ecf20Sopenharmony_ci	if (boot_cpu_data.x86 > 3)
168c2ecf20Sopenharmony_ci		pgprot_val(vma->vm_page_prot) =
178c2ecf20Sopenharmony_ci			prot | cachemode2protval(_PAGE_CACHE_MODE_UC_MINUS);
188c2ecf20Sopenharmony_ci}
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciextern int fb_is_primary_device(struct fb_info *info);
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#endif /* _ASM_X86_FB_H */
23

Indexes created Thu Nov 07 10:32:03 CST 2024