Files

37 lines
834 B
C
Raw Permalink Normal View History

// SPDX-License-Identifier: GPL-2.0-only
2005-04-16 15:20:36 -07:00
/*
* Copyright (C) 2025 Zsolt Kajtar (soci@c64.rulez.org)
2005-04-16 15:20:36 -07:00
*/
2025-06-12 10:16:25 +02:00
#include <linux/export.h>
2005-04-16 15:20:36 -07:00
#include <linux/module.h>
#include <linux/fb.h>
#include <linux/bitrev.h>
2005-04-16 15:20:36 -07:00
#include <asm/types.h>
#ifdef CONFIG_FB_CFB_REV_PIXELS_IN_BYTE
#define FB_REV_PIXELS_IN_BYTE
2005-04-16 15:20:36 -07:00
#endif
#include "cfbmem.h"
#include "fb_fillrect.h"
2005-04-16 15:20:36 -07:00
void cfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
{
if (p->state != FBINFO_STATE_RUNNING)
return;
2023-11-27 14:16:00 +01:00
if (p->flags & FBINFO_VIRTFB)
fb_warn_once(p, "%s: framebuffer is not in I/O address space.\n", __func__);
2023-11-27 14:16:00 +01:00
2005-04-16 15:20:36 -07:00
if (p->fbops->fb_sync)
p->fbops->fb_sync(p);
fb_fillrect(p, rect);
2005-04-16 15:20:36 -07:00
}
EXPORT_SYMBOL(cfb_fillrect);
MODULE_AUTHOR("Zsolt Kajtar <soci@c64.rulez.org>");
MODULE_DESCRIPTION("I/O memory packed pixel framebuffer area fill");
2005-04-16 15:20:36 -07:00
MODULE_LICENSE("GPL");