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

Brad Parker brad at parker.boston.ma.us
Wed Mar 7 10:28:55 EST 2001


Gabriel Paubert wrote:
>On Tue, 6 Mar 2001, Brad Parker wrote:
...
>> in asm/io.h it uses out_le32, unless the machine is an APUS, in which
>> case it just writes big endian...
>>
>> (is PCI defined as little endian?)
>
>Sadly, yes.

Ok, so the APUS pci bridge must be doing byte swapping.  I assume the
ppc macintosh pci bridges do not byte swap...

I see it now.  Thanks!

-brad


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/






More information about the Linuxppc-dev mailing list