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}; |
8 | |||||
9 | struct sh_eth_plat_data { | ||||
10 | int phy; | ||||
Sergei Shtylyov | 18be099 | 2013-12-20 01:39:52 +0300 | [diff] [blame] | 11 | int phy_irq; |
Yoshinori Sato | 71557a3 | 2008-08-06 19:49:00 -0400 | [diff] [blame] | 12 | int edmac_endian; |
Yoshihiro Shimoda | e47c905 | 2011-03-07 21:59:45 +0000 | [diff] [blame] | 13 | phy_interface_t phy_interface; |
Yoshihiro Shimoda | 8eac3f6 | 2011-09-27 21:49:05 +0000 | [diff] [blame] | 14 | void (*set_mdio_gate)(void *addr); |
Yoshihiro Shimoda | 4923576 | 2009-08-27 23:25:03 +0000 | [diff] [blame] | 15 | |
Joe Perches | 574e2af | 2013-08-01 16:17:48 -0700 | [diff] [blame] | 16 | unsigned char mac_addr[ETH_ALEN]; |
Yoshihiro Shimoda | 4923576 | 2009-08-27 23:25:03 +0000 | [diff] [blame] | 17 | unsigned no_ether_link:1; |
18 | unsigned ether_link_active_low:1; | ||||
Yoshihiro Shimoda | 150647f | 2012-02-15 17:54:56 +0000 | [diff] [blame] | 19 | unsigned needs_init:1; |
Yoshinori Sato | 71557a3 | 2008-08-06 19:49:00 -0400 | [diff] [blame] | 20 | }; |
21 | |||||
22 | #endif |