Commit | Line | Data |
---|---|---|
71557a37 YS |
1 | #ifndef __ASM_SH_ETH_H__ |
2 | #define __ASM_SH_ETH_H__ | |
3 | ||
e47c9052 YS |
4 | #include <linux/phy.h> |
5 | ||
71557a37 | 6 | enum {EDMAC_LITTLE_ENDIAN, EDMAC_BIG_ENDIAN}; |
4a55530f YS |
7 | enum { |
8 | SH_ETH_REG_GIGABIT, | |
a3f109bd | 9 | SH_ETH_REG_FAST_RCAR, |
4a55530f YS |
10 | SH_ETH_REG_FAST_SH4, |
11 | SH_ETH_REG_FAST_SH3_SH2 | |
12 | }; | |
71557a37 YS |
13 | |
14 | struct sh_eth_plat_data { | |
15 | int phy; | |
16 | int edmac_endian; | |
4a55530f | 17 | int register_type; |
e47c9052 | 18 | phy_interface_t phy_interface; |
8eac3f60 | 19 | void (*set_mdio_gate)(void *addr); |
4923576b | 20 | |
748031f9 | 21 | unsigned char mac_addr[6]; |
4923576b YS |
22 | unsigned no_ether_link:1; |
23 | unsigned ether_link_active_low:1; | |
150647fb | 24 | unsigned needs_init:1; |
71557a37 YS |
25 | }; |
26 | ||
27 | #endif |