linux-zen-desktop/arch/powerpc/include/asm/fb.h

21 lines
448 B
C
Raw Permalink Normal View History

2023-08-30 16:31:07 +01:00
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_FB_H_
#define _ASM_FB_H_
#include <linux/fs.h>
2023-10-24 11:59:35 +01:00
2023-08-30 16:31:07 +01:00
#include <asm/page.h>
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
unsigned long off)
{
vma->vm_page_prot = phys_mem_access_prot(file, off >> PAGE_SHIFT,
vma->vm_end - vma->vm_start,
vma->vm_page_prot);
}
2023-10-24 11:59:35 +01:00
#define fb_pgprotect fb_pgprotect
2023-08-30 16:31:07 +01:00
2023-10-24 11:59:35 +01:00
#include <asm-generic/fb.h>
2023-08-30 16:31:07 +01:00
#endif /* _ASM_FB_H_ */