Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 13 Jun 2002 04:40:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 13 Jun 2002 04:40:12 -0400 Received: from skunk.directfb.org ([212.84.236.169]:64896 "EHLO skunk.directfb.org") by vger.kernel.org with ESMTP id ; Thu, 13 Jun 2002 04:40:10 -0400 Date: Thu, 13 Jun 2002 10:39:29 +0200 From: Denis Oliver Kropp To: Marcelo Tosatti Cc: linux-kernel@vger.kernel.org, rmk@arm.linux.org.uk Subject: [PATCH] [2.4.19-pre10] CyberPro 32bit support and other fixes Message-ID: <20020613083929.GA32366@skunk.convergence.de> Reply-To: Denis Oliver Kropp Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Hi, this patch adds 32 bit support to cyber2000fb which is useful if you have a video layer in the background (CyberPro 5xxx) with per pixel alpha blending enabled. This patch also includes a fix for the text palette for modes with more than 8 bit. Additionally there was a bug in set_var for 16 bit support, bits_per_pixel has been set to 15 if 16 is detected. I guess this was a copy'n'paste failure. Also panning had a bug as it didn't take care of the bytes per pixel when calculating the new base address. The last two things have already been fixed in the 2.5 tree. Applies against Linux 2.4.19-pre10. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" Convergence GmbH --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="linux-2.4.19-pre10-cyber32bit.diff" diff -uraN linux-2.4.19-pre10/CREDITS linux-2.4.19-pre10-cyber32bit/CREDITS --- linux-2.4.19-pre10/CREDITS Thu Jun 13 09:50:42 2002 +++ linux-2.4.19-pre10-cyber32bit/CREDITS Thu Jun 13 09:54:28 2002 @@ -1678,6 +1678,7 @@ N: Denis O. Kropp E: dok@directfb.org D: NeoMagic framebuffer driver +D: CyberPro 32 bit support, fixes S: Badensche Str. 46 S: 10715 Berlin S: Germany diff -uraN linux-2.4.19-pre10/drivers/video/Config.in linux-2.4.19-pre10-cyber32bit/drivers/video/Config.in --- linux-2.4.19-pre10/drivers/video/Config.in Thu Jun 13 09:51:02 2002 +++ linux-2.4.19-pre10-cyber32bit/drivers/video/Config.in Thu Jun 13 09:55:26 2002 @@ -361,7 +361,7 @@ "$CONFIG_FB_FM2" = "y" -o "$CONFIG_FB_SGIVW" = "y" -o \ "$CONFIG_FB_RADEON" = "y" -o "$CONFIG_FB_PVR2" = "y" -o \ "$CONFIG_FB_3DFX" = "y" -o "$CONFIG_FB_SIS" = "y" -o \ - "$CONFIG_FB_VOODOO1" = "y" ]; then + "$CONFIG_FB_VOODOO1" = "y" -o "$CONFIG_FB_CYBER2000" = "y" ]; then define_tristate CONFIG_FBCON_CFB32 y else if [ "$CONFIG_FB_ATARI" = "m" -o "$CONFIG_FB_ATY" = "m" -o \ @@ -373,7 +373,8 @@ "$CONFIG_FB_RIVA" = "m" -o "$CONFIG_FB_ATY128" = "m" -o \ "$CONFIG_FB_3DFX" = "m" -o "$CONFIG_FB_RADEON" = "m" -o \ "$CONFIG_FB_SGIVW" = "m" -o "$CONFIG_FB_SIS" = "m" -o \ - "$CONFIG_FB_PVR2" = "m" -o "$CONFIG_FB_VOODOO1" = "m" ]; then + "$CONFIG_FB_PVR2" = "m" -o "$CONFIG_FB_VOODOO1" = "m" -o \ + "$CONFIG_FB_CYBER2000" = "m" ]; then define_tristate CONFIG_FBCON_CFB32 m fi fi diff -uraN linux-2.4.19-pre10/drivers/video/cyber2000fb.c linux-2.4.19-pre10-cyber32bit/drivers/video/cyber2000fb.c --- linux-2.4.19-pre10/drivers/video/cyber2000fb.c Fri Dec 21 18:41:55 2001 +++ linux-2.4.19-pre10-cyber32bit/drivers/video/cyber2000fb.c Thu Jun 13 10:14:24 2002 @@ -6,11 +6,14 @@ * MIPS and 50xx clock support * Copyright (C) 2001 Bradley D. LaRonde * + * 32 bit support, text color and panning fixes for modes != 8 bit + * Copyright (C) 2002 Denis Oliver Kropp + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * - * Integraphics CyberPro 2000, 2010 and 5000 frame buffer device + * Intergraphics CyberPro 2000, 2010 and 5000 frame buffer device * * Based on cyberfb.c. * @@ -50,6 +53,7 @@ #include