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>
This commit is contained in:
Yoshihiro Shimoda
2011-03-07 21:59:26 +00:00
committed by David S. Miller
parent 201a11c1db
commit 4a55530f38
3 changed files with 533 additions and 422 deletions
+6
View File
@@ -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;
+163 -163
View File
File diff suppressed because it is too large Load Diff
+364 -259
View File
File diff suppressed because it is too large Load Diff