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, |
| 9 | SH_ETH_REG_FAST_SH4, |
| 10 | SH_ETH_REG_FAST_SH3_SH2 |
| 11 | }; |
Yoshinori Sato | 71557a3 | 2008-08-06 19:49:00 -0400 | [diff] [blame] | 12 | |
| 13 | struct sh_eth_plat_data { |
| 14 | int phy; |
| 15 | int edmac_endian; |
Yoshihiro Shimoda | 4a55530 | 2011-03-07 21:59:26 +0000 | [diff] [blame] | 16 | int register_type; |
Yoshihiro Shimoda | e47c905 | 2011-03-07 21:59:45 +0000 | [diff] [blame^] | 17 | phy_interface_t phy_interface; |
Yoshihiro Shimoda | 4923576 | 2009-08-27 23:25:03 +0000 | [diff] [blame] | 18 | |
Magnus Damm | 748031f | 2009-10-09 00:17:14 +0000 | [diff] [blame] | 19 | unsigned char mac_addr[6]; |
Yoshihiro Shimoda | 4923576 | 2009-08-27 23:25:03 +0000 | [diff] [blame] | 20 | unsigned no_ether_link:1; |
| 21 | unsigned ether_link_active_low:1; |
Yoshinori Sato | 71557a3 | 2008-08-06 19:49:00 -0400 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | #endif |