[patch 3/2] m68k: Atari EtherNAT - add writew_be for data push
as you've probably noticed, my previous EtherNAT patch does not compile
without this one being applied as well.
Comments welcome (is there anyone on this list with access to an EtherNAT card,
besides cts and myself?).
Regarding performance afforded by having a 100 Mbit PHY instead of a 10 Mbit
EtherNAT: 210 KB/s out, 140 KB/s in (scp of a 35 MB vmlinux file)
EtherNEC: 175 KB/s out, 128 KB/s in (same file)
Hardly worth it, eh?
@@ -472,7 +472,9 @@
#define readb(addr) in_8(addr)
#define writeb(val,addr) out_8((addr),(val))
#define readw(addr) in_le16(addr)
+#define readw_be(addr) in_be16(addr)
#define writew(val,addr) out_le16((addr),(val))
+#define writew_be(val,addr) out_be16((addr),(val))
#define readsw raw_insw
#define writesw raw_outsw