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