Thread (3 messages) read the whole thread 3 messages, 3 authors, 2001-03-06

Re: asm/io.h; why does writel() write an le32 on ppc?

From: Jeff Garzik <hidden>
Date: 2001-03-06 23:30:15

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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help