net: sh_eth: modify the definitions of register
Subsystems (3)
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.
Signed-off-by Yoshihiro Shimoda <[email protected]>
---
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
@@ -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
From: Yoshihiro Shimoda <[email protected]>
Date: Tue, 08 Mar 2011 16:59:26 +0900
Quoted 4 lines
The previous code cannot handle the ETHER and GETHER both as same time because the definitions of register was hardcoded.
Signed-off-by Yoshihiro Shimoda <[email protected]>
Applied.