Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 17 Oct 2002 07:41:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 17 Oct 2002 07:41:09 -0400 Received: from precia.cinet.co.jp ([210.166.75.133]:3200 "EHLO precia.cinet.co.jp") by vger.kernel.org with ESMTP id ; Thu, 17 Oct 2002 07:34:44 -0400 Date: Thu, 17 Oct 2002 20:39:57 +0900 From: Osamu Tomita To: LKML Cc: Linus Torvalds Subject: [PATCH][RFC] add support for PC-9800 architecture (6/26) FB console Message-ID: <20021017203957.A1176@precia.cinet.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 62810 Lines: 2223 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: diff -urN linux/drivers/video/Config.in linux98/drivers/video/Config.in --- linux/drivers/video/Config.in Wed Jul 17 08:49:34 2002 +++ linux98/drivers/video/Config.in Fri Jul 19 16:09:49 2002 @@ -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 diff -urN linux/drivers/video/Makefile linux98/drivers/video/Makefile --- linux/drivers/video/Makefile Tue Oct 8 10:56:16 2002 +++ linux98/drivers/video/Makefile Tue Oct 8 11:01:41 2002 @@ -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 diff -urN linux/drivers/video/egcfb.c linux98/drivers/video/egcfb.c --- linux/drivers/video/egcfb.c Thu Jan 1 09:00:00 1970 +++ linux98/drivers/video/egcfb.c Tue Sep 3 16:27:04 2002 @@ -0,0 +1,654 @@ +/* + * linux/drivers/video/egcfb.c -- EGC/GRCG framebuffer + * + * Copyright 1999 Satoshi YAMADA + * + * Based on VGA framebuffer (C) 1999 Ben Pfaff , + * Petr Vandrovec + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include