fb.h 488 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
  4. */
  5. #ifndef _ASM_FB_H_
  6. #define _ASM_FB_H_
  7. #include <linux/fb.h>
  8. #include <linux/fs.h>
  9. #include <asm/page.h>
  10. static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma,
  11. unsigned long off)
  12. {
  13. vma->vm_page_prot = pgprot_writecombine(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_ */