Re: Do cpu-endian MMIO accessors exist?

From: Jiri Slaby
Date: Tue Jul 21 2009 - 16:59:40 EST


On 07/21/2009 10:42 PM, Pekka Paalanen wrote:
> This is for Nouveau, where the hardware is configured to have the
> same endianess as the cpu. Well, it's configured BE for PPC and
> LE otherwise.

But not only ppc is BE.

> Do cpu-endian MMIO accessors exist? What should I use, or do I just
> have to use #ifdef __BIG_ENDIAN?

There is __raw_readl which doesn't switch bytes.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/