1*eabb0329SZsolt Kajtar // SPDX-License-Identifier: GPL-2.0-only 219757fc8STomi Valkeinen /* 3*eabb0329SZsolt Kajtar * Copyright (C) 2025 Zsolt Kajtar ([email protected]) 419757fc8STomi Valkeinen */ 519757fc8STomi Valkeinen #include <linux/module.h> 619757fc8STomi Valkeinen #include <linux/fb.h> 7*eabb0329SZsolt Kajtar #include <linux/bitrev.h> 819757fc8STomi Valkeinen #include <asm/types.h> 919757fc8STomi Valkeinen 10*eabb0329SZsolt Kajtar #ifdef CONFIG_FB_SYS_REV_PIXELS_IN_BYTE 11*eabb0329SZsolt Kajtar #define FB_REV_PIXELS_IN_BYTE 12*eabb0329SZsolt Kajtar #endif 1319757fc8STomi Valkeinen 14*eabb0329SZsolt Kajtar #include "sysmem.h" 15*eabb0329SZsolt Kajtar #include "fb_fillrect.h" 1619757fc8STomi Valkeinen sys_fillrect(struct fb_info * p,const struct fb_fillrect * rect)1719757fc8STomi Valkeinenvoid sys_fillrect(struct fb_info *p, const struct fb_fillrect *rect) 1819757fc8STomi Valkeinen { 19b3e88137SThomas Zimmermann if (!(p->flags & FBINFO_VIRTFB)) 20*eabb0329SZsolt Kajtar fb_warn_once(p, "%s: framebuffer is not in virtual address space.\n", __func__); 21b3e88137SThomas Zimmermann 22*eabb0329SZsolt Kajtar fb_fillrect(p, rect); 2319757fc8STomi Valkeinen } 2419757fc8STomi Valkeinen EXPORT_SYMBOL(sys_fillrect); 2519757fc8STomi Valkeinen 26*eabb0329SZsolt Kajtar MODULE_AUTHOR("Zsolt Kajtar <[email protected]>"); 27*eabb0329SZsolt Kajtar MODULE_DESCRIPTION("Virtual memory packed pixel framebuffer area fill"); 2819757fc8STomi Valkeinen MODULE_LICENSE("GPL"); 29