AFAIK, writeX macros should swap as needed, i.e.
writel(0x100,ioaddr);
should arrive as bit 8 set on the hardware. [please correct me if I'm
wrong] Thus the input into write{b,w,l} should be in host byte order.
u{8,16,32} array[];
__set_bit_{8,16,32}(,array);
write{b,w,l}(array[],ioaddr);
would achieve that.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/