cxgb4: Fix PCI-E Memory window interface for big-endian systems
authorHariprasad Shenai <hariprasad@chelsio.com>
Wed, 25 Feb 2015 11:20:04 +0000 (16:50 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2015 20:53:43 +0000 (15:53 -0500)
commitf01aa633e040e52603b8defd2263691d15b86cb0
treeaeeedea57fb7e650464e448463508681686f0e42
parent2b0c2e2d2a43357fc51d3499bc405d0d05df2451
cxgb4: Fix PCI-E Memory window interface for big-endian systems

When doing reads and writes to adapter memory via the PCI-E Memory Window
interface, data gets swizzled on 4-byte boundaries on Big-Endian systems
because we need to account for the register read/write interface which
incorporates a swizzle onto the Little-Endian PCI-E Bus.

Based on original work by Casey Leedom <leedom@chelsio.com>

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c