Re: readl() / writel() on PowerPC

2001-07-04 Thread Paul Mackerras
David T Eger writes: > Am I missing something? Is there some reason that readl() and > writel() should byte-swap by default? readl()/writel() are defined to access PCI memory space in units of 32 bits. PCI is by definition little-endian, PowerPC is (natively at least) big-endian, hence the byt

Re: readl() / writel() on PowerPC

2001-07-02 Thread James Simmons
> 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 >

Re: readl() / writel() on PowerPC

2001-07-02 Thread David Schleef
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 > hardwa