linux_dsm_epyc7002/drivers/net/ethernet
Lada Trimasova b54b8c2d6e net: ezchip: adapt driver to little endian architecture
Since ezchip network driver is written with big endian EZChip platform it
is necessary to add support for little endian architecture.

The first issue is that the order of the bits in a bit field is
implementation specific. So all the bit fields are removed.
Named constants are used to access necessary fields.

And the second one is that network byte order is big endian.
For example, data on ethernet is transmitted with most-significant
octet (byte) first. So in case of little endian architecture
it is important to swap data byte order when we read it from
register. In case of unaligned access we can use "get_unaligned_be32"
and in other case we can use function "ioread32_rep" which reads all
data from register and works either with little endian or big endian
architecture.

And then when we are going to write data to register we need to restore
byte order using the function "put_unaligned_be32" in case of
unaligned access and in other case "iowrite32_rep".

The last little fix is a space between type and pointer to observe
coding style.

Signed-off-by: Lada Trimasova <ltrimas@synopsys.com>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Noam Camus <noamc@ezchip.com>
Cc: Tal Zilcer <talz@ezchip.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-03-03 17:20:08 -05:00
..
3com 3c59x: Ensure to apply the expires time 2016-02-28 23:39:26 -05:00
8390
adaptec
adi
aeroflex
agere et131x: check return value of dma_alloc_coherent 2016-02-17 23:32:05 -05:00
allwinner
alteon
altera
amd net: relax setup_tc ndo op handle restriction 2016-03-03 16:25:15 -05:00
apm drivers: net: xgene: Add support for multiple queues 2016-02-17 22:08:34 -05:00
apple
arc
atheros ethernet/atl1c: remove left over dead code 2016-03-02 15:00:55 -05:00
aurora
broadcom net: relax setup_tc ndo op handle restriction 2016-03-03 16:25:15 -05:00
brocade
cadence net: macb: make magic-packet property generic 2016-02-19 15:32:24 -05:00
calxeda
cavium Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-02-23 00:09:14 -05:00
chelsio cxgb4vf: Remove dead functions collect_netdev_[um]c_list_addrs 2016-03-02 14:46:30 -05:00
cirrus
cisco
davicom net: ethernet: davicom: fix devicetree irq resource 2016-02-21 22:40:49 -05:00
dec net: tulip: Use setup_timer() 2016-02-25 16:51:04 -05:00
dlink
emulex be2net: Fix a UE caused by passing large frames to the ASIC 2016-02-24 15:25:19 -05:00
ezchip net: ezchip: adapt driver to little endian architecture 2016-03-03 17:20:08 -05:00
faraday
freescale gianfar: fix endianness for hardware timestamp 2016-02-25 16:22:02 -05:00
fujitsu fmvj18x_cs: fix incorrect indexing of dev->dev_addr[] when copying the MAC address 2016-02-21 22:08:43 -05:00
hisilicon
hp
i825xx
ibm
intel net: relax setup_tc ndo op handle restriction 2016-03-03 16:25:15 -05:00
marvell
mellanox net: mellanox: add DEVLINK dependencies 2016-03-03 17:08:59 -05:00
micrel
microchip
moxa
myricom
natsemi
neterion
netronome
nuvoton
nvidia forcedeth: Use setup_timer() 2016-02-25 16:51:05 -05:00
nxp
octeon
oki-semi
packetengines
pasemi pasemi_mac: Replace LRO with GRO 2016-02-17 16:15:45 -05:00
qlogic qed: Remove unused NVM vendor ID 2016-03-02 14:04:18 -05:00
qualcomm
rdc
realtek
renesas sh_eth, ravb: Use ARCH_RENESAS 2016-03-03 17:09:08 -05:00
rocker rocker: fix an error code 2016-02-27 14:06:14 -05:00
samsung
seeq
sfc net: relax setup_tc ndo op handle restriction 2016-03-03 16:25:15 -05:00
sgi
silan
sis
smsc
stmicro stmmac: update version to Oct_2015 2016-03-02 14:21:34 -05:00
sun
synopsys
tehuti
ti net: relax setup_tc ndo op handle restriction 2016-03-03 16:25:15 -05:00
tile
toshiba
tundra
via
wiznet
xilinx
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c
lantiq_etop.c
Makefile
netx-eth.c