From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Antonino A. Daplas" Subject: Re: New driver: s3d2xfb Date: Wed, 28 Sep 2005 20:12:16 +0800 Message-ID: <433A88A0.2080906@gmail.com> References: <433A746A.1070202@ums.usu.ru> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1EKanh-0000PY-6t for linux-fbdev-devel@lists.sourceforge.net; Wed, 28 Sep 2005 05:12:41 -0700 Received: from zproxy.gmail.com ([64.233.162.204]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1EKane-000081-Ln for linux-fbdev-devel@lists.sourceforge.net; Wed, 28 Sep 2005 05:12:41 -0700 Received: by zproxy.gmail.com with SMTP id 14so539692nzn for ; Wed, 28 Sep 2005 05:12:32 -0700 (PDT) In-Reply-To: <433A746A.1070202@ums.usu.ru> 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: Content-Type: text/plain; charset="us-ascii" To: linux-fbdev-devel@lists.sourceforge.net Cc: "Alexander E. Patrakov" Alexander E. Patrakov wrote: > 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 The best testing you can have is to have it merged to the mm tree so I would recommend that you get this driver at least to the mm tree. I do have several comments below , but it doesn't negate the fact that it is a nicely written driver. (BTW, the name is such a mouthful, can we change that to something easily pronounced :-) > 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. Not a problem. > > 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. > > > ------------------------------------------------------------------------ > > KERNEL_DIR := /lib/modules/`uname -r`/build > > module: > make -C $(KERNEL_DIR) SUBDIRS=$(PWD) modules > > obj-m += s3d2xfb.o > > > ------------------------------------------------------------------------ > > /* > * 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. Or you can explicitly dual-license it as GPL/MIT-X. > * > */ > > #define VERSION "20050928" > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include