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