[PATCH][5/11] IB/mthca: fix reset value endianness

2005-03-02 Thread Roland Dreier
MTHCA_RESET_VALUE must always be swapped, since the HCA expects to see it in big-endian order and we write it with writel. This means on little-endian systems we have to swap it to big-endian order before writing, and on big-endian systems we need to swap it to make up for the additional swap

[PATCH][5/11] IB/mthca: fix reset value endianness

2005-03-02 Thread Roland Dreier
MTHCA_RESET_VALUE must always be swapped, since the HCA expects to see it in big-endian order and we write it with writel. This means on little-endian systems we have to swap it to big-endian order before writing, and on big-endian systems we need to swap it to make up for the additional swap