From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 2 May 2002 08:31:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 2 May 2002 08:31:02 -0400 Received: from samba.sourceforge.net ([198.186.203.85]:41951 "HELO lists.samba.org") by vger.kernel.org with SMTP id ; Thu, 2 May 2002 08:31:00 -0400 From: Paul Mackerras MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15569.12507.794100.835854@argo.ozlabs.ibm.com> Date: Thu, 2 May 2002 22:28:11 +1000 (EST) To: James Simmons Cc: LKML , Linux Fbdev development list , benh@kernel.crashing.org Subject: Re: 2.5.11 framebuffer compilation error In-Reply-To: X-Mailer: VM 6.75 under Emacs 20.7.2 Reply-To: paulus@samba.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org James Simmons writes: > Diff: > > http://www.transvirtual.com/~jsimmons/fbdev_fixs.diff I tried 2.5.12 with this patch on PPC, with most of the mac framebuffers selected, and got a few errors. Here is a patch that fixes the compilation errors plus a few other things. The files affected are: chipsfb.c ) controlfb.c ) fix compile errors from recent changes platinumfb.c) valkyriefb.c) offb.c fix a problem with colormap corruption on blank add support for IBM GXT2000P display fix compile errors from recent changes aty128.h remove duplicate definition aty128fb.c add btext_update_display call add Rage128 Pro TR eliminate compile warnings make aty128fb_blank be actually used add more default resolutions based on which type of powermac we have imsttfb.c eliminate compile warning aty/atyfb_base.c add btext_update_display call Some of these changes have come from Ben Herrenschmidt. I have changes to the radeon driver too but I haven't included them in this patch since I am using version 0.1.4 in my tree at the moment whereas Linus' tree only has version 0.1.1. James, it would be good if you could look at this and either apply it, or let me know if there is anything you don't like so we can discuss it. Regards, Paul. diff -urN ltest/drivers/video/aty/atyfb_base.c pmac-2.5/drivers/video/aty/atyfb_base.c --- ltest/drivers/video/aty/atyfb_base.c Thu May 2 22:08:08 2002 +++ pmac-2.5/drivers/video/aty/atyfb_base.c Thu May 2 21:44:26 2002 @@ -87,6 +87,9 @@ #include #include #endif +#ifdef CONFIG_BOOTX_TEXT +#include +#endif #ifdef CONFIG_NVRAM #include #endif @@ -815,6 +818,13 @@ display_info.disp_reg_address = info->ati_regbase_phys; } #endif /* CONFIG_FB_COMPAT_XPMAC */ +#ifdef CONFIG_BOOTX_TEXT + btext_update_display(info->frame_buffer_phys, + (((par->crtc.h_tot_disp>>16) & 0xff)+1)*8, + ((par->crtc.v_tot_disp>>16) & 0x7ff)+1, + par->crtc.bpp, + par->crtc.vxres*par->crtc.bpp/8); +#endif /* CONFIG_BOOTX_TEXT */ } static int atyfb_decode_var(const struct fb_var_screeninfo *var, diff -urN ltest/drivers/video/aty128.h pmac-2.5/drivers/video/aty128.h --- ltest/drivers/video/aty128.h Wed Feb 6 04:40:16 2002 +++ pmac-2.5/drivers/video/aty128.h Fri Feb 15 22:04:12 2002 @@ -267,7 +267,6 @@ #define DAC_MASK 0xFF000000 #define DAC_BLANKING 0x00000004 #define DAC_RANGE_CNTL 0x00000003 -#define DAC_RANGE_CNTL 0x00000003 #define DAC_PALETTE_ACCESS_CNTL 0x00000020 #define DAC_PDWN 0x00008000 diff -urN ltest/drivers/video/aty128fb.c pmac-2.5/drivers/video/aty128fb.c --- ltest/drivers/video/aty128fb.c Mon Apr 29 16:25:24 2002 +++ pmac-2.5/drivers/video/aty128fb.c Thu May 2 19:43:03 2002 @@ -70,6 +70,9 @@ #ifdef CONFIG_FB_COMPAT_XPMAC #include #endif +#ifdef CONFIG_BOOTX_TEXT +#include +#endif /* CONFIG_BOOTX_TEXT */ #include