From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id EF469DDDEB for ; Thu, 22 Feb 2007 01:33:51 +1100 (EST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HJsXM-0000LB-GT for linuxppc-embedded@ozlabs.org; Wed, 21 Feb 2007 15:33:40 +0100 Received: from rusfw02.rohde-schwarz.com ([80.246.32.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Feb 2007 15:33:40 +0100 Received: from euphoria by rusfw02.rohde-schwarz.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Feb 2007 15:33:40 +0100 To: linuxppc-embedded@ozlabs.org From: Florian Boelstler Subject: Re: Undestanding ioread32() / readl() and friends Date: Wed, 21 Feb 2007 15:33:32 +0100 Message-ID: References: <200702211056.28313.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed In-Reply-To: <200702211056.28313.arnd@arndb.de> Sender: news List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, Arnd Bergmann schrieb: >> Is this a sort of general rule that ioread32() always returns >> little-endian values on all architectures? > > the ioread family of functions is used for PCI devices, which > are little-endian by definition. OK, my knowledge about ioread32() was based on some explanations found in "Linux Device Drivers". IMHO they showed the ioread family of functions as a sort of general purpose functions for __iomem-alike resources. Thanks, anyway. Florian