Yosemite/440EP why are readl()/ioread32() setup to readlittle-endian?
Jenkins, Clive
Clive.Jenkins at xerox.com
Thu Feb 2 20:35:56 EST 2006
A driver for some device that could be connected to (or plugged into)
a variety of different platforms of different architecture.
A driver for a core that could be implemented within an FPGA on
multiple platforms.
Clive
-----Original Message-----
From: Eugene Surovegin [mailto:ebs at ebshome.net]
Sent: 02 February 2006 09:08
To: Peter Korsgaard
Cc: Kumar Gala; linuxppc-embedded at ozlabs.org; Jenkins, Clive
Subject: Re: Yosemite/440EP why are readl()/ioread32() setup to
readlittle-endian?
On Thu, Feb 02, 2006 at 09:09:17AM +0100, Peter Korsgaard wrote:
> On 2/2/06, Kumar Gala <galak at kernel.crashing.org> 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 ?
I'm curious, could you give an example of such arch independent
driver?
--
Eugene
More information about the Linuxppc-embedded
mailing list