fb.h 569 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_FB_H_
  3. #define _ASM_FB_H_
  4. #include <linux/fb.h>
  5. #include <linux/fs.h>
  6. #include <linux/efi.h>
  7. #include <asm/page.h>
  8. static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
  9. unsigned long off)
  10. {
  11. if (efi_range_is_wc(vma->vm_start, vma->vm_end - vma->vm_start))
  12. vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
  13. else
  14. vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
  15. }
  16. static inline int fb_is_primary_device(struct fb_info *info)
  17. {
  18. return 0;
  19. }
  20. #endif /* _ASM_FB_H_ */