From 86c6f7d08b2868ba7cc1ef509c76ee9e9266af40 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Tue, 8 May 2007 00:37:48 -0700 Subject: [PATCH] tgafb: TURBOchannel support This is support for the TC variations of the TGA boards (properly known as SFB+ or Smart Frame Buffer Plus boards). The 8-plane SFB+ board uses the Bt459 RAMDAC (unlike its PCI TGA counterpart, which uses the Bt485), so bits have been added to support this chip as well. Signed-off-by: Maciej W. Rozycki Cc: "Antonino A. Daplas" Cc: James Simmons Acked-by: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/video/Kconfig | 20 ++- drivers/video/tgafb.c | 290 ++++++++++++++++++++++++++++++++++-------- include/video/tgafb.h | 47 ++++++- 3 files changed, 298 insertions(+), 59 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 0aeab4e725..bc9a12be1e 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -525,15 +525,25 @@ config FB_HP300 default y config FB_TGA - tristate "TGA framebuffer support" - depends on FB && ALPHA + tristate "TGA/SFB+ framebuffer support" + depends on FB && (ALPHA || TC) select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT select BITREVERSE - help - This is the frame buffer device driver for generic TGA graphic - cards. Say Y if you have one of those. + ---help--- + This is the frame buffer device driver for generic TGA and SFB+ + graphic cards. These include DEC ZLXp-E1, -E2 and -E3 PCI cards, + also known as PBXGA-A, -B and -C, and DEC ZLX-E1, -E2 and -E3 + TURBOchannel cards, also known as PMAGD-A, -B and -C. + + Due to hardware limitations ZLX-E2 and E3 cards are not supported + for DECstation 5000/200 systems. Additionally due to firmware + limitations these cards may cause troubles with booting DECstation + 5000/240 and /260 systems, but are fully supported under Linux if + you manage to get it going. ;-) + + Say Y if you have one of those. config FB_VESA bool "VESA VGA graphics support" diff --git a/drivers/video/tgafb.c b/drivers/video/tgafb.c index 7478d0e3e2..5345fe03cd 100644 --- a/drivers/video/tgafb.c +++ b/drivers/video/tgafb.c @@ -5,27 +5,45 @@ * Copyright (C) 1997 Geert Uytterhoeven * Copyright (C) 1999,2000 Martin Lucina, Tom Zerucha * Copyright (C) 2002 Richard Henderson + * Copyright (C) 2006 Maciej W. Rozycki * * 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 +#include #include #include -#include +#include +#include +#include + #include + #include