| 1 | |
| 2 | |
| 3 | * Copyright (C) 2025 Zsolt Kajtar ([email protected])
|
| 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_fillrect.h"
|
| 18 |
|
| 19 | void sys_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
|
| 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_fillrect(p, rect);
|
| 25 | }
|
| 26 | EXPORT_SYMBOL(sys_fillrect);
|
| 27 |
|
| 28 | MODULE_AUTHOR("Zsolt Kajtar <[email protected]>");
|
| 29 | MODULE_DESCRIPTION("Virtual memory packed pixel framebuffer area fill");
|
| 30 | MODULE_LICENSE("GPL");
|