Yoshinori Sato | 71557a3 | 2008-08-06 19:49:00 -0400 | [diff] [blame] | 1 | #ifndef __ASM_SH_ETH_H__ |
| 2 | #define __ASM_SH_ETH_H__ |
| 3 | |
Yoshihiro Shimoda | e47c905 | 2011-03-07 21:59:45 +0000 | [diff] [blame] | 4 | #include <linux/phy.h> |
| 5 | |
Yoshinori Sato | 71557a3 | 2008-08-06 19:49:00 -0400 | [diff] [blame] | 6 | enum {EDMAC_LITTLE_ENDIAN, EDMAC_BIG_ENDIAN}; |
Yoshihiro Shimoda | 4a55530 | 2011-03-07 21:59:26 +0000 | [diff] [blame] | 7 | enum { |
| 8 | SH_ETH_REG_GIGABIT, |
Sergei Shtylyov | a3f109b | 2013-03-28 11:51:31 +0000 | [diff] [blame] | 9 | SH_ETH_REG_FAST_RCAR, |
Yoshihiro Shimoda | 4a55530 | 2011-03-07 21:59:26 +0000 | [diff] [blame] | 10 | SH_ETH_REG_FAST_SH4, |
| 11 | SH_ETH_REG_FAST_SH3_SH2 |
| 12 | }; |
Yoshinori Sato | 71557a3 | 2008-08-06 19:49:00 -0400 | [diff] [blame] | 13 | |
| 14 | struct sh_eth_plat_data { |
| 15 | int phy; |
| 16 | int edmac_endian; |
Yoshihiro Shimoda | 4a55530 | 2011-03-07 21:59:26 +0000 | [diff] [blame] | 17 | int register_type; |
Yoshihiro Shimoda | e47c905 | 2011-03-07 21:59:45 +0000 | [diff] [blame] | 18 | phy_interface_t phy_interface; |
Yoshihiro Shimoda | 8eac3f6 | 2011-09-27 21:49:05 +0000 | [diff] [blame] | 19 | void (*set_mdio_gate)(void *addr); |
Yoshihiro Shimoda | 4923576 | 2009-08-27 23:25:03 +0000 | [diff] [blame] | 20 | |
Magnus Damm | 748031f | 2009-10-09 00:17:14 +0000 | [diff] [blame] | 21 | unsigned char mac_addr[6]; |
Yoshihiro Shimoda | 4923576 | 2009-08-27 23:25:03 +0000 | [diff] [blame] | 22 | unsigned no_ether_link:1; |
| 23 | unsigned ether_link_active_low:1; |
Yoshihiro Shimoda | 150647f | 2012-02-15 17:54:56 +0000 | [diff] [blame] | 24 | unsigned needs_init:1; |
Yoshinori Sato | 71557a3 | 2008-08-06 19:49:00 -0400 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | #endif |