driver for S3 Trio
PATCH 1/1 driver for S3 Trio
Hello
This is first draft of (PCI) S3 Trio fbdev driver. There are already two drivers for S3 Trio chips (cyberfb.c and S3trio.c) in kernel. Both are broken and targetted to uncommon variants.
Features:
* 8, 16 and 32 bpp modes
* interlaced and doublescan modes
* text mode (activated by bpp = 0), used by tileblit fbcon functions
* panning in both direction
* no support for accelerated bitblit functions
I tested it only on S3 Trio32 and S3 Trio64 cards with 1 MB RAM. I suppose there will be problems on S3 Trio64 cards with more memory. If there is anybody willing to test this driver on such card, i will modified driver ASAP.
Driver is separated to s3fb.c and svgalib.c . In svgalib.c there are generic functions which can be useful to other drivers for VGA-based cards.
---
drivers/video/Kconfig +18 -0
@@ -80,6 +80,14 @@ config FB_CFB_IMAGEBLIT blitting. This is used by drivers that don't provide their own (accelerated) version. +config FB_SVGALIB + tristate + depends on FB + default n + ---help--- + Common utility functions useful to fbdev drivers of VGA-based + cards. + config FB_MACMODES tristate depends on FB
@@ -1303,6 +1311,27 @@ config FB_TRIDENT_ACCEL This will compile the Trident frame buffer device with acceleration functions. +config FB_S3 + tristate "S3 Trio support" + depends on FB && PCI + select FB_SVGALIB + select FB_CFB_FILLRECT + select FB_CFB_COPYAREA + select FB_CFB_IMAGEBLIT + ---help--- + Driver for graphics boards with S3 Trio32/Trio64 chip. + config FB_PM3 tristate "Permedia3 support" depends on FB && PCI && BROKEN
drivers/video/Makefile +2 -0
@@ -18,6 +18,7 @@ obj-$(CONFIG_FB_CFB_FILLRECT) += cfbfil obj-$(CONFIG_FB_CFB_COPYAREA) += cfbcopyarea.o obj-$(CONFIG_FB_CFB_IMAGEBLIT) += cfbimgblt.o obj-$(CONFIG_FB_MACMODES) += macmodes.o +obj-$(CONFIG_FB_SVGALIB) += svgalib.o # Hardware specific drivers go first obj-$(CONFIG_FB_RETINAZ3) += retz3fb.o
@@ -53,6 +54,8 @@ obj-$(CONFIG_FB_S3TRIO) += S3t obj-$(CONFIG_FB_FM2) += fm2fb.o obj-$(CONFIG_FB_CYBLA) += cyblafb.o obj-$(CONFIG_FB_TRIDENT) += tridentfb.o +obj-$(CONFIG_FB_S3) += s3fb.o obj-$(CONFIG_FB_STI) += stifb.o obj-$(CONFIG_FB_FFB) += ffb.o sbuslib.o obj-$(CONFIG_FB_CG6) += cg6.o sbuslib.o
drivers/video/s3fb.c +1001 -0
1,001 lines not on this page · raw message
drivers/video/svgalib.c +453 -0
453 lines not on this page · raw message
include/linux/svga.h +113 -0
113 lines not on this page · raw message
Signature · 11 lines
Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: [email protected], jabber: [email protected]) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so." ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV