From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexander E. Patrakov" Subject: New driver: s3d2xfb Date: Wed, 28 Sep 2005 16:46:02 +0600 Message-ID: <433A746A.1070202@ums.usu.ru> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_ums.usu.ru-23515-1127904651-0001-2" Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1EKZWi-0004UN-2W for linux-fbdev-devel@lists.sourceforge.net; Wed, 28 Sep 2005 03:51:04 -0700 Received: from relay4.usu.ru ([194.226.235.39]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1EKZWg-0001EC-5U for linux-fbdev-devel@lists.sourceforge.net; Wed, 28 Sep 2005 03:51:04 -0700 Received: from relay4.usu.ru (localhost [127.0.0.1]) by relay4.usu.ru (PostSystem) with ESMTP id 1356816BE8 for ; Wed, 28 Sep 2005 16:51:00 +0600 (YEKST) Received: from usu2.usu.ru (usu2.usu.ru [194.226.237.16]) by relay4.usu.ru (PostSystem) with ESMTP id 068B516BE8 for ; Wed, 28 Sep 2005 16:50:58 +0600 (YEKST) Received: from localhost.usu2.usu.ru (localhost.usu2.usu.ru [127.0.0.1]) by usu2.usu.ru (Postfix) with ESMTP id 08C69A7A32 for ; Wed, 28 Sep 2005 16:50:53 +0600 (YEKST) Received: from ums.usu.ru (ums.usu.ru [194.226.236.116]) by usu2.usu.ru (Postfix) with ESMTP id 6C7E9A7A31 for ; Wed, 28 Sep 2005 16:50:52 +0600 (YEKST) Sender: linux-fbdev-devel-admin@lists.sourceforge.net Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: To: Linux Fbdev development list This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_ums.usu.ru-23515-1127904651-0001-2 Content-Type: text/plain; charset=koi8-r; format=flowed Content-Transfer-Encoding: 7bit Hello, attached is a (completely unaccelerated) framebuffer driver for S3 Trio 3D/2X video cards. This is currently for out-of-tree testing, not for merging (although the license doesn't prohibit merging). Reason: this is my first kernel driver, and it has been tested only with my video card so far. Signed-off-by: Alexander E. Patrakov What works: This driver works on my old video card with 2.6.14-rc1-mm1 and 2.6.12.5 kernels. Applications tested: fbcon, jfbterm (has red <-> blue glitch), mplayer (doesn't like DirectColor modes, "fbset -nonstd 1"), fbxine (works perfectly), Xorg's "fbdev" driver. Known bugs: The "rom" file in sysfs is unreadable "Snow" in high-resolution modes (but the MS Certified Win98 driver just gives pixel corruption in the same modes) YWRAP may or may not work with cards that have 8MB of video memory. Please send testing reports, including the "it just works" ones. Be sure to include the kernel version, driver messages and "lspci -n" output. -- Alexander E. Patrakov --=_ums.usu.ru-23515-1127904651-0001-2 Content-Type: text/plain; name=Makefile; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile" KERNEL_DIR := /lib/modules/`uname -r`/build module: make -C $(KERNEL_DIR) SUBDIRS=$(PWD) modules obj-m += s3d2xfb.o --=_ums.usu.ru-23515-1127904651-0001-2 Content-Type: text/x-csrc; name="s3d2xfb.c"; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="s3d2xfb.c" /* * linux/drivers/video/s3d2xfb.c -- Framebuffer driver for S3 Trio 3D/2X * * Created by Alexander E. Patrakov * * Version history: * 20050928: * First released version. Tested with my video card only. No acceleration. * Support for all progressive non-doublescan resolutions * Support for 8, 15, 16, 24 and 32 bpp * Support for PseudoColor, TrueColor and DirectColor visuals * (note: DirectColor is not supported in X.Org "s3virge" driver) * Signed-off-by: Alexander E. Patrakov * * My enhancements over the X.Org "s3virge" driver are marked by the * "not in X.Org" label * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of Linux source for * more details. * * As a special exception, X.Org developers can use this file as if it * carried the same license as X.Org. * */ #define VERSION "20050928" #include #include #include #include #include #include #include #include #include #include #include