From: Helge Deller Subject: [PATCH] sstfb: add sysfs interface Date: Sun, 3 Dec 2006 16:01:48 +0100 Message-ID: <200612031601.48302.deller@gmx.de> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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-new.sourceforge.net with esmtp (Exim 4.43) id 1Gqsrg-0003RZ-99 for linux-fbdev-devel@lists.sourceforge.net; Sun, 03 Dec 2006 07:02:48 -0800 Received: from mail.gmx.net ([213.165.64.20]) by mail.sourceforge.net with smtp (Exim 4.44) id 1Gqsrc-0007Ie-Jp for linux-fbdev-devel@lists.sourceforge.net; Sun, 03 Dec 2006 07:02:48 -0800 Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-fbdev-devel-bounces@lists.sourceforge.net Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: James Simmons Cc: linux-fbdev-devel@lists.sourceforge.net Hi James, the following patch modifies the sstfb (Voodoo1/2) driver and: - fixes a memleak when removing the sstfb module - fixes sstfb to use the fbdev default videomode database - adds module option "mode_option" to set initial screen mode - adds sysfs-interface to turn VGA-passthrough on/off via /sys/class/graphics/fbX/vgapass - removes old debug functions from ioctl interface please apply. Signed-off-by: Helge Deller drivers/video/sstfb.c | 335 +++++++++++++++----------------------------------- include/video/sstfb.h | 13 + 2 files changed, 114 insertions(+), 234 deletions(-) diff --git a/drivers/video/sstfb.c b/drivers/video/sstfb.c index 711cb11..9a2ad37 100644 --- a/drivers/video/sstfb.c +++ b/drivers/video/sstfb.c @@ -21,6 +21,11 @@ * Remove never finished and bogus 24/32bit support * Clean up macro abuse * Minor tidying for format. + * 12/2006 Helge Deller + * add /sys/class/graphics/fbX/vgapass sysfs-interface + * add module option "mode_option" to set initial screen mode + * use fbdev default videomode database + * remove debug functions from ioctl */ /* @@ -65,19 +70,10 @@ * * sstfb specific ioctls: * toggle vga (0x46db) : toggle vga_pass_through - * fill fb (0x46dc) : fills fb - * test disp (0x46de) : draws a test image */ #undef SST_DEBUG -/* - Default video mode . - 0 800x600@60 took from glide - 1 640x480@75 took from glide - 2 1024x768@76 std fb.mode - 3 640x480@60 glide default */ -#define DEFAULT_MODE 3 /* * Includes @@ -92,20 +88,24 @@ #include #include #include #include -#include #include #include