From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by ozlabs.org (Postfix) with ESMTP id 8B1A068A42 for ; Thu, 2 Feb 2006 19:09:19 +1100 (EST) Received: by wproxy.gmail.com with SMTP id 50so326670wri for ; Thu, 02 Feb 2006 00:09:18 -0800 (PST) Message-ID: <9305ca410602020009r4946d874qc52c2b27f715370f@mail.gmail.com> Date: Thu, 2 Feb 2006 09:09:17 +0100 From: Peter Korsgaard Sender: jacmet@gmail.com To: Kumar Gala Subject: Re: Yosemite/440EP why are readl()/ioread32() setup to readlittle-endian? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <87wtgeeq8o.fsf@48ers.dk> Cc: linuxppc-embedded@ozlabs.org, "Jenkins, Clive" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 2/2/06, Kumar Gala wrote: > > What is the preferred way of accessing non-PCI devices then? Direct > > pointer access? > > No direct pointer access is bad. On PPC You can use > in_be{8,16,32}/out_be{8,16,32} What about arch independent drivers? Are there any generic approach for this or do you have to stick to ugly #ifdefs to decide between in_be32/inl ? -- Bye, Peter Korsgaard