net: mvneta: support big endian
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 29 Jul 2013 13:21:28 +0000 (15:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jul 2013 23:51:08 +0000 (16:51 -0700)
commit9ad8fef6c61a9dfcaa8444e526020de88c540fa9
tree42d13de3d9ef83343114d415088c1b3ebaa938c8
parent6083ed448b812e7b318820d7ec83c2a0e250dd57
net: mvneta: support big endian

Use the "swap descriptor" feature of the hardware to properly swap the
descriptors when running in big endian mode. Since the swapping occurs
on 64 bits words, we also need to provide a separate structure layout
for the DMA descriptors between little endian and big endian mode,
like is done in the mv643xx_eth driver.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c