fb.h 530 B

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