wmt_ge_rops.h 622 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifdef CONFIG_FB_WMT_GE_ROPS
  3. extern void wmt_ge_fillrect(struct fb_info *info,
  4. const struct fb_fillrect *rect);
  5. extern void wmt_ge_copyarea(struct fb_info *info,
  6. const struct fb_copyarea *area);
  7. extern int wmt_ge_sync(struct fb_info *info);
  8. #else
  9. static inline int wmt_ge_sync(struct fb_info *p)
  10. {
  11. return 0;
  12. }
  13. static inline void wmt_ge_fillrect(struct fb_info *p,
  14. const struct fb_fillrect *rect)
  15. {
  16. sys_fillrect(p, rect);
  17. }
  18. static inline void wmt_ge_copyarea(struct fb_info *p,
  19. const struct fb_copyarea *area)
  20. {
  21. sys_copyarea(p, area);
  22. }
  23. #endif