PCI endianess

Armin Schindler mac at melware.de
Tue Sep 3 19:22:40 EST 2002


On Tue, 3 Sep 2002, Anil K Prasad wrote:
> >as far as I know, the PCI bus is little endian, even on big endian
> machines.
> >Is this true for RS6000 (44p/270) too ?
>
> Yes, even on RS6K machines its little endian.
> You should write to PCI mapped register in little endian byte order.

So commands/data to my memory-mapped PCI card need to be converted, right ?
E.g. if the cards memory has a structure like
struct {
  u16 command;
  u32 length;
  u32 data[128];
}

I need to convert all data to that structure ?

Armin


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





More information about the Linuxppc64-dev mailing list