summaryrefslogtreecommitdiff
path: root/drivers/video/atafb_mfb.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2014-02-13 17:31:38 +0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-04-17 09:10:19 +0400
commitf7018c21350204c4cf628462f229d44d03545254 (patch)
tree408787177164cf51cc06f7aabdb04fcff8d2b6aa /drivers/video/atafb_mfb.c
parentc26ef3eb3c11274bad1b64498d0a134f85755250 (diff)
downloadlinux-f7018c21350204c4cf628462f229d44d03545254.tar.xz
video: move fbdev to drivers/video/fbdev
The drivers/video directory is a mess. It contains generic video related files, directories for backlight, console, linux logo, lots of fbdev device drivers, fbdev framework files. Make some order into the chaos by creating drivers/video/fbdev directory, and move all fbdev related files there. No functionality is changed, although I guess it is possible that some subtle Makefile build order related issue could be created by this patch. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Rob Clark <robdclark@gmail.com> Acked-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/video/atafb_mfb.c')
-rw-r--r--drivers/video/atafb_mfb.c112
1 files changed, 0 insertions, 112 deletions
diff --git a/drivers/video/atafb_mfb.c b/drivers/video/atafb_mfb.c
deleted file mode 100644
index 6a352d62eecf..000000000000
--- a/drivers/video/atafb_mfb.c
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * linux/drivers/video/mfb.c -- Low level frame buffer operations for
- * monochrome
- *
- * Created 5 Apr 1997 by Geert Uytterhoeven
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License. See the file COPYING in the main directory of this archive for
- * more details.
- */
-
-#include <linux/module.h>
-#include <linux/string.h>
-#include <linux/fb.h>
-
-#include "atafb.h"
-#include "atafb_utils.h"
-
-
- /*
- * Monochrome
- */
-
-void atafb_mfb_copyarea(struct fb_info *info, u_long next_line,
- int sy, int sx, int dy, int dx,
- int height, int width)
-{
- u8 *src, *dest;
- u_int rows;
-
- if (sx == 0 && dx == 0 && width == next_line) {
- src = (u8 *)info->screen_base + sy * (width >> 3);
- dest = (u8 *)info->screen_base + dy * (width >> 3);
- fb_memmove(dest, src, height * (width >> 3));
- } else if (dy <= sy) {
- src = (u8 *)info->screen_base + sy * next_line + (sx >> 3);
- dest = (u8 *)info->screen_base + dy * next_line + (dx >> 3);
- for (rows = height; rows--;) {
- fb_memmove(dest, src, width >> 3);
- src += next_line;
- dest += next_line;
- }
- } else {
- src = (u8 *)info->screen_base + (sy + height - 1) * next_line + (sx >> 3);
- dest = (u8 *)info->screen_base + (dy + height - 1) * next_line + (dx >> 3);
- for (rows = height; rows--;) {
- fb_memmove(dest, src, width >> 3);
- src -= next_line;
- dest -= next_line;
- }
- }
-}
-
-void atafb_mfb_fillrect(struct fb_info *info, u_long next_line, u32 color,
- int sy, int sx, int height, int width)
-{
- u8 *dest;
- u_int rows;
-
- dest = (u8 *)info->screen_base + sy * next_line + (sx >> 3);
-
- if (sx == 0 && width == next_line) {
- if (color)
- fb_memset255(dest, height * (width >> 3));
- else
- fb_memclear(dest, height * (width >> 3));
- } else {
- for (rows = height; rows--; dest += next_line) {
- if (color)
- fb_memset255(dest, width >> 3);
- else
- fb_memclear_small(dest, width >> 3);
- }
- }
-}
-
-void atafb_mfb_linefill(struct fb_info *info, u_long next_line,
- int dy, int dx, u32 width,
- const u8 *data, u32 bgcolor, u32 fgcolor)
-{
- u8 *dest;
- u_int rows;
-
- dest = (u8 *)info->screen_base + dy * next_line + (dx >> 3);
-
- for (rows = width / 8; rows--; /* check margins */ ) {
- // use fast_memmove or fb_memmove
- *dest++ = *data++;
- }
-}
-
-#ifdef MODULE
-MODULE_LICENSE("GPL");
-
-int init_module(void)
-{
- return 0;
-}
-
-void cleanup_module(void)
-{
-}
-#endif /* MODULE */
-
-
- /*
- * Visible symbols for modules
- */
-
-EXPORT_SYMBOL(atafb_mfb_copyarea);
-EXPORT_SYMBOL(atafb_mfb_fillrect);
-EXPORT_SYMBOL(atafb_mfb_linefill);