Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Yoshinori Sato | 71557a3 | 2008-08-06 19:49:00 -0400 | [diff] [blame] | 2 | #ifndef __ASM_SH_ETH_H__ |
3 | #define __ASM_SH_ETH_H__ | ||||
4 | |||||
Yoshihiro Shimoda | e47c905 | 2011-03-07 21:59:45 +0000 | [diff] [blame] | 5 | #include <linux/phy.h> |
Joe Perches | 574e2af | 2013-08-01 16:17:48 -0700 | [diff] [blame] | 6 | #include <linux/if_ether.h> |
Yoshihiro Shimoda | e47c905 | 2011-03-07 21:59:45 +0000 | [diff] [blame] | 7 | |
Yoshinori Sato | 71557a3 | 2008-08-06 19:49:00 -0400 | [diff] [blame] | 8 | struct sh_eth_plat_data { |
9 | int phy; | ||||
Sergei Shtylyov | 18be099 | 2013-12-20 01:39:52 +0300 | [diff] [blame] | 10 | int phy_irq; |
Yoshihiro Shimoda | e47c905 | 2011-03-07 21:59:45 +0000 | [diff] [blame] | 11 | phy_interface_t phy_interface; |
Yoshihiro Shimoda | 8eac3f6 | 2011-09-27 21:49:05 +0000 | [diff] [blame] | 12 | void (*set_mdio_gate)(void *addr); |
Yoshihiro Shimoda | 4923576 | 2009-08-27 23:25:03 +0000 | [diff] [blame] | 13 | |
Joe Perches | 574e2af | 2013-08-01 16:17:48 -0700 | [diff] [blame] | 14 | unsigned char mac_addr[ETH_ALEN]; |
Yoshihiro Shimoda | 4923576 | 2009-08-27 23:25:03 +0000 | [diff] [blame] | 15 | unsigned no_ether_link:1; |
16 | unsigned ether_link_active_low:1; | ||||
Yoshinori Sato | 71557a3 | 2008-08-06 19:49:00 -0400 | [diff] [blame] | 17 | }; |
18 | |||||
19 | #endif |