blob: 8c9131db2b252cf00aedab4d782e77c2c96bb5ea [file] [log] [blame]
Yoshinori Sato71557a32008-08-06 19:49:00 -04001#ifndef __ASM_SH_ETH_H__
2#define __ASM_SH_ETH_H__
3
Yoshihiro Shimodae47c9052011-03-07 21:59:45 +00004#include <linux/phy.h>
Joe Perches574e2af2013-08-01 16:17:48 -07005#include <linux/if_ether.h>
Yoshihiro Shimodae47c9052011-03-07 21:59:45 +00006
Yoshinori Sato71557a32008-08-06 19:49:00 -04007enum {EDMAC_LITTLE_ENDIAN, EDMAC_BIG_ENDIAN};
8
9struct sh_eth_plat_data {
10 int phy;
Sergei Shtylyov18be0992013-12-20 01:39:52 +030011 int phy_irq;
Yoshinori Sato71557a32008-08-06 19:49:00 -040012 int edmac_endian;
Yoshihiro Shimodae47c9052011-03-07 21:59:45 +000013 phy_interface_t phy_interface;
Yoshihiro Shimoda8eac3f62011-09-27 21:49:05 +000014 void (*set_mdio_gate)(void *addr);
Yoshihiro Shimoda49235762009-08-27 23:25:03 +000015
Joe Perches574e2af2013-08-01 16:17:48 -070016 unsigned char mac_addr[ETH_ALEN];
Yoshihiro Shimoda49235762009-08-27 23:25:03 +000017 unsigned no_ether_link:1;
18 unsigned ether_link_active_low:1;
Yoshihiro Shimoda150647f2012-02-15 17:54:56 +000019 unsigned needs_init:1;
Yoshinori Sato71557a32008-08-06 19:49:00 -040020};
21
22#endif