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