blob: 6dfda97a6c1aef0899ebe626b6fe3bb1a6e0567b [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Yoshinori Sato71557a32008-08-06 19:49:00 -04002#ifndef __ASM_SH_ETH_H__
3#define __ASM_SH_ETH_H__
4
Yoshihiro Shimodae47c9052011-03-07 21:59:45 +00005#include <linux/phy.h>
Joe Perches574e2af2013-08-01 16:17:48 -07006#include <linux/if_ether.h>
Yoshihiro Shimodae47c9052011-03-07 21:59:45 +00007
Yoshinori Sato71557a32008-08-06 19:49:00 -04008struct sh_eth_plat_data {
9 int phy;
Sergei Shtylyov18be0992013-12-20 01:39:52 +030010 int phy_irq;
Yoshihiro Shimodae47c9052011-03-07 21:59:45 +000011 phy_interface_t phy_interface;
Yoshihiro Shimoda8eac3f62011-09-27 21:49:05 +000012 void (*set_mdio_gate)(void *addr);
Yoshihiro Shimoda49235762009-08-27 23:25:03 +000013
Joe Perches574e2af2013-08-01 16:17:48 -070014 unsigned char mac_addr[ETH_ALEN];
Yoshihiro Shimoda49235762009-08-27 23:25:03 +000015 unsigned no_ether_link:1;
16 unsigned ether_link_active_low:1;
Yoshinori Sato71557a32008-08-06 19:49:00 -040017};
18
19#endif