asm/io.h; why does writel() write an le32 on ppc?
Jeff Garzik
jgarzik at mandrakesoft.com
Wed Mar 7 10:30:15 EST 2001
Brad Parker wrote:
> Sorry to be daft, but why does writel() write an le32 on the ppc?
> (is PCI defined as little endian?)
Yes. But there is always __raw_{read,write}[bwl]. That is part of the
API too.
Caveat programmer, though: IIRC there are other differences besides
endian when using __raw_xxx. I think there might be a lack of flushing,
etc., too.
--
Jeff Garzik | "You see, in this world there's two kinds of
Building 1024 | people, my friend: Those with loaded guns
MandrakeSoft | and those who dig. You dig." --Blondie
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list