From: Ralf Baechle This patch adds the GBE video driver for the video system in SGI IP32 aka O2 and it's i386-based equivalent the Visual Workstation. This driver obsoletes sgivwfb.c; but I'd prefer to play safe and remove it after some additional time, just in case. --- 25-akpm/drivers/video/Kconfig | 15 25-akpm/drivers/video/Makefile | 1 25-akpm/drivers/video/fbmem.c | 5 25-akpm/drivers/video/gbefb.c | 1200 +++++++++++++++++++++++++++++++++++++++++ 25-akpm/include/video/gbe.h | 317 ++++++++++ 5 files changed, 1538 insertions(+) diff -puN drivers/video/fbmem.c~mips-gbe-video-driver drivers/video/fbmem.c --- 25/drivers/video/fbmem.c~mips-gbe-video-driver Thu Apr 29 15:45:57 2004 +++ 25-akpm/drivers/video/fbmem.c Thu Apr 29 15:45:57 2004 @@ -121,6 +121,8 @@ extern int sun3fb_init(void); extern int sun3fb_setup(char *); extern int sgivwfb_init(void); extern int sgivwfb_setup(char*); +extern int gbefb_init(void); +extern int gbefb_setup(char*); extern int rivafb_init(void); extern int rivafb_setup(char*); extern int tdfxfb_init(void); @@ -307,6 +309,9 @@ static struct { #ifdef CONFIG_FB_SGIVW { "sgivwfb", sgivwfb_init, sgivwfb_setup }, #endif +#ifdef CONFIG_FB_GBE + { "gbefb", gbefb_init, gbefb_setup }, +#endif #ifdef CONFIG_FB_ACORN { "acornfb", acornfb_init, acornfb_setup }, #endif diff -puN /dev/null drivers/video/gbefb.c --- /dev/null Thu Apr 11 07:25:15 2002 +++ 25-akpm/drivers/video/gbefb.c Thu Apr 29 15:45:57 2004 @@ -0,0 +1,1200 @@ +/* + * SGI GBE frame buffer driver + * + * Copyright (C) 1999 Silicon Graphics, Inc. - Jeffrey Newquist + * Copyright (C) 2002 Vivien Chappelier + * + * 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 + +#ifdef CONFIG_X86 +#include +#endif +#ifdef CONFIG_MIPS +#include +#endif +#include +#include +#include + +#include