From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id B2E71B7093 for ; Thu, 3 Sep 2009 09:56:38 +1000 (EST) Received: from mail-yx0-f187.google.com (mail-yx0-f187.google.com [209.85.210.187]) by ozlabs.org (Postfix) with ESMTP id 13523DDD01 for ; Thu, 3 Sep 2009 09:56:36 +1000 (EST) Received: by yxe17 with SMTP id 17so476101yxe.9 for ; Wed, 02 Sep 2009 16:56:34 -0700 (PDT) MIME-Version: 1.0 Sender: glikely@secretlab.ca In-Reply-To: <4A9F0377.1070606@embeddedarm.com> References: <4A9F0377.1070606@embeddedarm.com> From: Grant Likely Date: Wed, 2 Sep 2009 17:56:09 -0600 Message-ID: Subject: Re: PPC PCI bus registers To: Eddie Dawydiuk Content-Type: text/plain; charset=ISO-8859-1 Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Sep 2, 2009 at 5:44 PM, Eddie Dawydiuk wrote: > Hello, > > I have a question regarding reading PCI bus registers from a user space > application running on a PPC SBC. Seeing as though the PCI bus is little > endian and PPC is big endian is it typical that one must perform a byte swap > on all 16 and 32 bit register reads? Yes, this is correct. g.