Skip to contentSkip to conversation

net: sh_eth: modify the definitions of register

PATCH Applied Yoshihiro Shimoda 2 participants 2 messages Mar 8, 2011 – Mar 14, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/6 net: sh_eth: modify the definitions of register

The previous code cannot handle the ETHER and GETHER both as same time because the definitions of register was hardcoded.

---
This patch are based on net-next-2.6.git.

about v2:
- remove SH_ETH_REG_DEFAULT

 arch/sh/include/asm/sh_eth.h |    6 +
 drivers/net/sh_eth.c         |  326 +++++++++++-----------
 drivers/net/sh_eth.h         |  623 ++++++++++++++++++++++++------------------
 3 files changed, 533 insertions(+), 422 deletions(-)
arch/sh/include/asm/sh_eth.h +6 -0
index f739061..1557696 100644
@@ -2,10 +2,16 @@
 #define __ASM_SH_ETH_H__
 
 enum {EDMAC_LITTLE_ENDIAN, EDMAC_BIG_ENDIAN};
+enum {
+	SH_ETH_REG_GIGABIT,
+	SH_ETH_REG_FAST_SH4,
+	SH_ETH_REG_FAST_SH3_SH2
+};
 
 struct sh_eth_plat_data {
 	int phy;
 	int edmac_endian;
+	int register_type;
 
 	unsigned char mac_addr[6];
 	unsigned no_ether_link:1;
drivers/net/sh_eth.c +163 -163

681 lines not on this page · raw message

drivers/net/sh_eth.h +364 -259

659 lines not on this page · raw message

Signature · 1 line
1.7.1