Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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_fillrect.h"
18
19void 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}
26EXPORT_SYMBOL(sys_fillrect);
27
28MODULE_AUTHOR("Zsolt Kajtar <soci@c64.rulez.org>");
29MODULE_DESCRIPTION("Virtual memory packed pixel framebuffer area fill");
30MODULE_LICENSE("GPL");