Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 2 Jul 2001 20:54:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 2 Jul 2001 20:54:27 -0400 Received: from stm.lbl.gov ([131.243.16.51]:12301 "EHLO stm.lbl.gov") by vger.kernel.org with ESMTP id ; Mon, 2 Jul 2001 20:54:17 -0400 Date: Mon, 2 Jul 2001 17:54:12 -0700 From: David Schleef To: David T Eger Cc: linux-kernel@vger.kernel.org Subject: Re: readl() / writel() on PowerPC Message-ID: <20010702175412.A15774@stm.lbl.gov> Reply-To: David Schleef In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from eger@cc.gatech.edu on Mon, Jul 02, 2001 at 08:22:55PM -0400 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 02, 2001 at 08:22:55PM -0400, David T Eger wrote: > > I have been working on a driver for a PowerPC PCI card/framebuffer device, > and noticed that the standard readl() and writel() for this platform to > byte swapping, since PowerPC runs big-endian. However, at least for my > hardware it's *really* not needed, and should just do a regular load > store, as is done for CONFIG_APUS. Looking at another driver > (drivers/char/bttv.h) I notice that Mr. Metzler redefines his read and > write routines for PowerPC as well to do simple loads and stores to IO > regions. I believe you are looking for __raw_readl(), __raw_writel(). dave... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/