Thread (7 messages) 7 messages, 4 authors, 2008-08-05

Re: [PATCH] sh_eth Add SH7619 support

From: Nobuhiro Iwamatsu <hidden>
Date: 2008-08-01 03:48:28
Also in: linux-sh

Hi, Sato-san.

2008/8/1 Yoshinori Sato [off-list ref]:
SH7619 have same SH7710 ethernet controler.
Add support for sh_eth driver.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
<snip>
quoted hunk ↗ jump to hunk
diff --git a/drivers/net/sh_eth.h b/drivers/net/sh_eth.h
index 45ad1b0..ca3cc5f 100644
--- a/drivers/net/sh_eth.h
+++ b/drivers/net/sh_eth.h
@@ -143,10 +143,11 @@
<snip>
+
+/* CPU endian from/to EDMAC endian */
+#if !defined(CONFIG_CPU_SUBTYPE_SH7619)
+#define cpu_to_edmac(x) cpu_to_le32(x)
+#define edmac_to_cpu(x) le32_to_cpu(x)
+#else
+#define cpu_to_edmac(x) cpu_to_be32(x)
+#define edmac_to_cpu(x) be32_to_cpu(x)
+#endif
+
 #endif
I think that this depends on an endian not CPU dependence.

Best regards,
 Nobuhiro
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help