syscopyarea.c 746 B

123456789101112131415161718192021222324252627282930
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2025 Zsolt Kajtar (soci@c64.rulez.org)
  4. */
  5. #include <linux/export.h>
  6. #include <linux/module.h>
  7. #include <linux/fb.h>
  8. #include <linux/bitrev.h>
  9. #include <asm/types.h>
  10. #ifdef CONFIG_FB_SYS_REV_PIXELS_IN_BYTE
  11. #define FB_REV_PIXELS_IN_BYTE
  12. #endif
  13. #include "sysmem.h"
  14. #include "fb_copyarea.h"
  15. void sys_copyarea(struct fb_info *p, const struct fb_copyarea *area)
  16. {
  17. if (!(p->flags & FBINFO_VIRTFB))
  18. fb_warn_once(p, "%s: framebuffer is not in virtual address space.\n", __func__);
  19. fb_copyarea(p, area);
  20. }
  21. EXPORT_SYMBOL(sys_copyarea);
  22. MODULE_AUTHOR("Zsolt Kajtar <soci@c64.rulez.org>");
  23. MODULE_DESCRIPTION("Virtual memory packed pixel framebuffer area copy");
  24. MODULE_LICENSE("GPL");