diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2011-03-07 16:59:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-14 17:10:13 -0400 |
commit | 4a55530f38e4eeee3afb06093e81309138fe8360 (patch) | |
tree | 176fa77c4eacd0809205bde0b8a171d2d43d69a2 /arch/sh/include/asm/sh_eth.h | |
parent | 201a11c1db82247143f0fbe29b4a97f16fa3a591 (diff) |
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.h | 6 |
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 @@ | |||
2 | #define __ASM_SH_ETH_H__ | 2 | #define __ASM_SH_ETH_H__ |
3 | 3 | ||
4 | enum {EDMAC_LITTLE_ENDIAN, EDMAC_BIG_ENDIAN}; | 4 | enum {EDMAC_LITTLE_ENDIAN, EDMAC_BIG_ENDIAN}; |
5 | enum { | ||
6 | SH_ETH_REG_GIGABIT, | ||
7 | SH_ETH_REG_FAST_SH4, | ||
8 | SH_ETH_REG_FAST_SH3_SH2 | ||
9 | }; | ||
5 | 10 | ||
6 | struct sh_eth_plat_data { | 11 | struct sh_eth_plat_data { |
7 | int phy; | 12 | int phy; |
8 | int edmac_endian; | 13 | int edmac_endian; |
14 | int register_type; | ||
9 | 15 | ||
10 | unsigned char mac_addr[6]; | 16 | unsigned char mac_addr[6]; |
11 | unsigned no_ether_link:1; | 17 | unsigned no_ether_link:1; |