Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 13 Jun 2002 04:33:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 13 Jun 2002 04:33:20 -0400 Received: from skunk.directfb.org ([212.84.236.169]:60032 "EHLO skunk.directfb.org") by vger.kernel.org with ESMTP id ; Thu, 13 Jun 2002 04:33:18 -0400 Date: Thu, 13 Jun 2002 10:32:43 +0200 From: Denis Oliver Kropp To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, rmk@arm.linux.org.uk Subject: [PATCH] [2.5.21] CyberPro 32bit support and other fixes Message-ID: <20020613083243.GA32352@skunk.convergence.de> Reply-To: Denis Oliver Kropp Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ibTvN161/egqYuK8" Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --ibTvN161/egqYuK8 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. Applies against Linux 2.5.21. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" Convergence GmbH --ibTvN161/egqYuK8 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="linux-2.5.21-cyber32bit.diff" diff -uraN linux-2.5.21/CREDITS linux-2.5.21-cyber32bit/CREDITS --- linux-2.5.21/CREDITS Thu Jun 13 08:31:27 2002 +++ linux-2.5.21-cyber32bit/CREDITS Thu Jun 13 09:43:01 2002 @@ -1677,6 +1677,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.5.21/drivers/video/Config.in linux-2.5.21-cyber32bit/drivers/video/Config.in --- linux-2.5.21/drivers/video/Config.in Thu Jun 13 08:31:34 2002 +++ linux-2.5.21-cyber32bit/drivers/video/Config.in Thu Jun 13 09:29:43 2002 @@ -348,7 +348,7 @@ "$CONFIG_FB_RIVA" = "y" -o "$CONFIG_FB_ATY128" = "y" -o \ "$CONFIG_FB_SIS" = "y" -o "$CONFIG_FB_SGIVW" = "y" -o \ "$CONFIG_FB_RADEON" = "y" -o "$CONFIG_FB_PVR2" = "y" -o \ - "$CONFIG_FB_PM3" = "y" ]; then + "$CONFIG_FB_PM3" = "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 \ @@ -359,7 +359,7 @@ "$CONFIG_FB_RIVA" = "m" -o "$CONFIG_FB_ATY128" = "m" -o \ "$CONFIG_FB_PM3" = "m" -o "$CONFIG_FB_RADEON" = "m" -o \ "$CONFIG_FB_SGIVW" = "m" -o "$CONFIG_FB_SIS" = "m" -o \ - "$CONFIG_FB_PVR2" = "m" ]; then + "$CONFIG_FB_PVR2" = "m" -o "$CONFIG_FB_CYBER2000" = "m" ]; then define_tristate CONFIG_FBCON_CFB32 m fi fi diff -uraN linux-2.5.21/drivers/video/cyber2000fb.c linux-2.5.21-cyber32bit/drivers/video/cyber2000fb.c --- linux-2.5.21/drivers/video/cyber2000fb.c Thu Jun 13 08:31:34 2002 +++ linux-2.5.21-cyber32bit/drivers/video/cyber2000fb.c Thu Jun 13 09:47:00 2002 @@ -6,11 +6,14 @@ * MIPS and 50xx clock support * Copyright (C) 2001 Bradley D. LaRonde * + * 32 bit support, text color 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. * @@ -49,6 +52,7 @@ #include