Undestanding ioread32() / readl() and friends

Florian Boelstler euphoria at arcor.de
Thu Feb 22 01:33:32 EST 2007


Hi,

Arnd Bergmann schrieb:
>> Is this a sort of general rule that ioread32() always returns 
>> little-endian values on all architectures?
> 
> the ioread family of functions is used for PCI devices, which
> are little-endian by definition.

OK, my knowledge about ioread32() was based on some explanations found 
in "Linux Device Drivers". IMHO they showed the ioread family of 
functions as a sort of general purpose functions for __iomem-alike 
resources.

Thanks, anyway.

   Florian




More information about the Linuxppc-embedded mailing list