mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 10:59:05 +00:00
77ef50a522
This patch is the result of an automatic script that consolidates the format of all the headers in include/asm-x86/. The format: 1. No leading underscore. Names with leading underscores are reserved. 2. Pathname components are separated by two underscores. So we can distinguish between mm_types.h and mm/types.h. 3. Everything except letters and numbers are turned into single underscores. Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
22 lines
485 B
C
22 lines
485 B
C
#ifndef ASM_X86__FB_H
|
|
#define ASM_X86__FB_H
|
|
|
|
#include <linux/fb.h>
|
|
#include <linux/fs.h>
|
|
#include <asm/page.h>
|
|
|
|
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
|
|
unsigned long off)
|
|
{
|
|
if (boot_cpu_data.x86 > 3)
|
|
pgprot_val(vma->vm_page_prot) |= _PAGE_PCD;
|
|
}
|
|
|
|
#ifdef CONFIG_X86_32
|
|
extern int fb_is_primary_device(struct fb_info *info);
|
|
#else
|
|
static inline int fb_is_primary_device(struct fb_info *info) { return 0; }
|
|
#endif
|
|
|
|
#endif /* ASM_X86__FB_H */
|