summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/sh_eth.h
diff options
context:
space:
mode:
authorYoshihiro Shimoda2011-03-07 22:59:26 +0100
committerDavid S. Miller2011-03-14 22:10:13 +0100
commit4a55530f38e4eeee3afb06093e81309138fe8360 (patch)
tree176fa77c4eacd0809205bde0b8a171d2d43d69a2 /arch/sh/include/asm/sh_eth.h
parentMerge branch 'tipc-Mar14-2011' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadkernel-qcow2-linux-4a55530f38e4eeee3afb06093e81309138fe8360.tar.gz
kernel-qcow2-linux-4a55530f38e4eeee3afb06093e81309138fe8360.tar.xz
kernel-qcow2-linux-4a55530f38e4eeee3afb06093e81309138fe8360.zip
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 <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sh/include/asm/sh_eth.h')
-rw-r--r--arch/sh/include/asm/sh_eth.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/include/asm/sh_eth.h b/arch/sh/include/asm/sh_eth.h
index f739061e2ee4..155769601065 100644
--- a/arch/sh/include/asm/sh_eth.h
+++ b/arch/sh/include/asm/sh_eth.h
@@ -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;