2025-03-09 19:47:15 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2007-05-08 00:38:57 -07:00
|
|
|
/*
|
2025-03-09 19:47:15 +01:00
|
|
|
* Copyright (C) 2025 Zsolt Kajtar (soci@c64.rulez.org)
|
2007-05-08 00:38:57 -07:00
|
|
|
*/
|
2025-06-12 10:16:25 +02:00
|
|
|
|
|
|
|
|
#include <linux/export.h>
|
2007-05-08 00:38:57 -07:00
|
|
|
#include <linux/module.h>
|
|
|
|
|
#include <linux/fb.h>
|
2025-03-09 19:47:15 +01:00
|
|
|
#include <linux/bitrev.h>
|
2007-05-08 00:38:57 -07:00
|
|
|
#include <asm/types.h>
|
|
|
|
|
|
2025-03-09 19:47:15 +01:00
|
|
|
#ifdef CONFIG_FB_SYS_REV_PIXELS_IN_BYTE
|
|
|
|
|
#define FB_REV_PIXELS_IN_BYTE
|
|
|
|
|
#endif
|
2007-05-08 00:38:57 -07:00
|
|
|
|
2025-03-09 19:47:15 +01:00
|
|
|
#include "sysmem.h"
|
|
|
|
|
#include "fb_fillrect.h"
|
2007-05-08 00:38:57 -07:00
|
|
|
|
|
|
|
|
void sys_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
|
|
|
|
|
{
|
2023-11-27 14:16:00 +01:00
|
|
|
if (!(p->flags & FBINFO_VIRTFB))
|
2025-03-09 19:47:15 +01:00
|
|
|
fb_warn_once(p, "%s: framebuffer is not in virtual address space.\n", __func__);
|
2023-11-27 14:16:00 +01:00
|
|
|
|
2025-03-09 19:47:15 +01:00
|
|
|
fb_fillrect(p, rect);
|
2007-05-08 00:38:57 -07:00
|
|
|
}
|
|
|
|
|
EXPORT_SYMBOL(sys_fillrect);
|
|
|
|
|
|
2025-03-09 19:47:15 +01:00
|
|
|
MODULE_AUTHOR("Zsolt Kajtar <soci@c64.rulez.org>");
|
|
|
|
|
MODULE_DESCRIPTION("Virtual memory packed pixel framebuffer area fill");
|
2007-05-08 00:38:57 -07:00
|
|
|
MODULE_LICENSE("GPL");
|