add support for PC-9800 architecture (6/26) FB console
RFC PATCH 1/1 add support for PC-9800 architecture (6/26) FB console
This is part 6/26 of patchset for add support NEC PC-9800 architecture, against 2.5.43.
Summary:
FB driver modules
- add support for PC-9800 standard video card
- add support multi-byte charactors. (2bytes japanese kanji only, now)
diffstat:
drivers/video/Config.in | 4 drivers/video/Makefile | 4 drivers/video/egcfb.c | 654 ++++++++++++++++++++++++++++++++++++++++++++ drivers/video/fbcon-egc.c | 681 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/video/fbcon.c | 461 ++++++++++++++++++++++++++++++- drivers/video/fbmem.c | 60 ++++ include/video/fbcon-egc.h | 32 ++ 7 files changed, 1887 insertions(+), 9 deletions(-)
patch:
drivers/video/Config.in +4 -0
@@ -95,10 +95,14 @@ tristate ' TGA framebuffer support' CONFIG_FB_TGA fi if [ "$CONFIG_X86" = "y" ]; then + if [ "$CONFIG_PC9800" != "y" ]; then bool ' VESA VGA graphics console' CONFIG_FB_VESA tristate ' VGA 16-color graphics console' CONFIG_FB_VGA16 tristate ' Hercules mono graphics console (EXPERIMENTAL)' CONFIG_FB_HGA define_bool CONFIG_VIDEO_SELECT y + else + tristate ' EGC 16-color graphics console' CONFIG_FB_EGC + fi fi if [ "$CONFIG_VISWS" = "y" ]; then tristate ' SGI Visual Workstation framebuffer support' CONFIG_FB_SGIVW
drivers/video/Makefile +3 -1
@@ -10,7 +10,7 @@ fbcon-iplan2p2.o fbcon-iplan2p4.o fbgen.o \ fbcon-iplan2p8.o fbcon-vga-planes.o fbcon-cfb16.o \ fbcon-cfb2.o fbcon-cfb24.o fbcon-cfb32.o fbcon-cfb4.o \ - fbcon-cfb8.o fbcon-mfb.o fbcon-hga.o + fbcon-cfb8.o fbcon-mfb.o fbcon-egc.o fbcon-hga.o # Each configuration option enables a list of files.
@@ -19,6 +19,7 @@ obj-$(CONFIG_PROM_CONSOLE) += promcon.o promcon_tbl.o obj-$(CONFIG_STI_CONSOLE) += sticon.o sticon-bmode.o sticore.o obj-$(CONFIG_VGA_CONSOLE) += vgacon.o +obj-$(CONFIG_GDC_CONSOLE) += gdccon.o obj-$(CONFIG_MDA_CONSOLE) += mdacon.o obj-$(CONFIG_FONT_SUN8x16) += font_sun8x16.o
@@ -69,6 +70,7 @@ obj-$(CONFIG_FB_TGA) += tgafb.o obj-$(CONFIG_FB_VESA) += vesafb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_VGA16) += vga16fb.o fbcon-vga-planes.o +obj-$(CONFIG_FB_EGC) += egcfb.o fbcon-egc.o obj-$(CONFIG_FB_VIRGE) += virgefb.o obj-$(CONFIG_FB_G364) += g364fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_FM2) += fm2fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
drivers/video/egcfb.c +654 -0
654 lines not on this page · raw message
drivers/video/fbcon-egc.c +681 -0
681 lines not on this page · raw message
drivers/video/fbcon.c +453 -8
657 lines not on this page · raw message
drivers/video/fbmem.c +60 -0
84 lines not on this page · raw message
include/video/fbcon-egc.h +32 -0
@@ -0,0 +1,32 @@ +/* +* FBcon low-level driver for EGC +*/ + +#ifndef _VIDEO_FBCON_EGC_H +#define _VIDEO_FBCON_EGC_H + +#include <linux/config.h> + +#ifdef MODULE +#if defined(CONFIG_FBCON_EGC ) || defined(CONFIG_FBCON_EGC_MODULE ) +#define FBCON_HAS_EGC +#endif +#else +#if defined(CONFIG_FBCON_EGC ) +#define FBCON_HAS_EGC +#endif +#endif + +extern struct display_switch fbcon_egc; +extern void fbcon_egc_setup (struct display *p); +extern void fbcon_egc_bmove (struct display *p,int sy,int sx,int dy,int dx, +int height,int width); +extern void fbcon_egc_clear (struct vc_data *conp,struct display *p,int sy, +int sx,int height,int width); +extern void fbcon_egc_putc (struct vc_data *conp,struct display *p,int c, +int yy,int xx); +extern void fbcon_egc_putcs (struct vc_data *conp,struct display *p, +const unsigned short *s,int count,int yy,int xx); +extern void fbcon_egc_revc (struct display *p,int xx,int yy); + +#endif /* _VIDEO_FBCON_EGC_H */