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