Skip to content

Commit

Permalink
net: sh_eth: modify the definitions of register
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yoshihiro Shimoda authored and David S. Miller committed Mar 14, 2011
1 parent 201a11c commit 4a55530
Show file tree
Hide file tree
Showing 3 changed files with 533 additions and 422 deletions.
6 changes: 6 additions & 0 deletions arch/sh/include/asm/sh_eth.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 4a55530

Please sign in to comment.