From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 18 Dec 2002 17:52:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 18 Dec 2002 17:52:18 -0500 Received: from dp.samba.org ([66.70.73.150]:14805 "EHLO lists.samba.org") by vger.kernel.org with ESMTP id ; Wed, 18 Dec 2002 17:51:56 -0500 From: Paul Mackerras MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15872.64993.241381.820669@argo.ozlabs.ibm.com> Date: Thu, 19 Dec 2002 09:59:45 +1100 To: James Simmons Cc: linux-kernel@vger.kernel.org, benh@kernel.crashing.org Subject: [PATCH] update chipsfb.c to new API X-Mailer: VM 7.07 under Emacs 20.7.2 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Here is a patch which updates chipsfb.c to the new 2.5 framebuffer API. It simplifies the driver quite a bit, partly because the new API is simpler and partly because the driver really can only handle one 65550 chip, since we access the chip via inb/outb to fixed I/O port numbers. I have tested it on a powerbook 3400, which has a C&T 65550 video chip with 1MB of VRAM, and it seems to work just fine, at least in 8 bit mode. I guess I still need to add the pseudo_palette stuff for 16 bit mode. Unfortunately I can't test it under X at the moment because the X server I have installed on the 3400 is Xpmac, which doesn't work any more because the VC_GETMODE etc. ioctls have been removed. The 3400 is an old and slow machine with a small hard disk and an old Linux/PPC installation on it, and I don't really want to compile up XFree86 on it. Paul. --- linux-2.5/drivers/video/chipsfb.c 2002-12-10 15:20:32.000000000 +1100 +++ pmac-2.5/drivers/video/chipsfb.c 2002-12-18 22:05:59.000000000 +1100 @@ -2,7 +2,7 @@ * drivers/video/chipsfb.c -- frame buffer device for * Chips & Technologies 65550 chip. * - * Copyright (C) 1998 Paul Mackerras + * Copyright (C) 1998-2002 Paul Mackerras * * This file is derived from the Powermac "chips" driver: * Copyright (C) 1997 Fabio Riccardi. @@ -39,34 +39,11 @@ #include #endif -#include