> Grant also seems to be of the opinion that cpu data needs to be swapped > before written to PCI devices... so does that mean that if i wrote > something like: > > writew(cpu_to_le16(foo), addr) > > then on things like parisc it gets swapped once, and on things like > sparc it gets swapped twice? Constant swaps get optimised out by the compiler in theory though.