From patchwork Thu Feb 12 21:11:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Zary X-Patchwork-Id: 5822161 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D1AEABF440 for ; Thu, 12 Feb 2015 21:12:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C60E32022A for ; Thu, 12 Feb 2015 21:11:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB4EB20225 for ; Thu, 12 Feb 2015 21:11:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751506AbbBLVLz (ORCPT ); Thu, 12 Feb 2015 16:11:55 -0500 Received: from mail-1.atlantis.sk ([80.94.52.57]:57810 "EHLO mail-1.atlantis.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751045AbbBLVLy (ORCPT ); Thu, 12 Feb 2015 16:11:54 -0500 Received: (qmail 11964 invoked from network); 12 Feb 2015 21:11:49 -0000 Received: from unknown (HELO ?192.168.0.2?) (rainbow@rainbow-software.org@188.167.69.119) by mail-1.atlantis.sk with ESMTPA; 12 Feb 2015 21:11:49 -0000 From: Ondrej Zary To: Paul Mackerras Subject: gxt4500 on x86 (Fire GL2) Date: Thu, 12 Feb 2015 22:11:28 +0100 User-Agent: KMail/1.9.10 (enterprise35 0.20100827.1168748) Cc: linux-fbdev@vger.kernel.org, Kernel development list MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201502122211.28752.linux@rainbow-software.org> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, I'm trying to get gxt4500 driver to work on x86 with Diamond/ATI Fire GL2 AGP card: 01:00.0 VGA compatible controller [0300]: IBM GXT6000P Graphics Adapter [1014:0170] (rev 02) (prog-if 00 [VGA controller]) Subsystem: Diamond Multimedia Systems Fire GL2 [1092:0172] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B+ DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- regs + (reg)) -#define writereg(par, reg, val) writel((val), (par)->regs + (reg)) +#define readreg(par, reg) be32_to_cpu(readl((par)->regs + (reg))) +#define writereg(par, reg, val) writel(cpu_to_be32(val), (par)->regs + (reg)) struct gxt4500_par { void __iomem *regs;