blob: 90b5e30c2f222ba8e06deb9d347940bf7d5aa94b [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;
11 int edmac_endian;
Yoshihiro Shimodae47c9052011-03-07 21:59:45 +000012 phy_interface_t phy_interface;
Yoshihiro Shimoda8eac3f62011-09-27 21:49:05 +000013 void (*set_mdio_gate)(void *addr);
Yoshihiro Shimoda49235762009-08-27 23:25:03 +000014
Joe Perches574e2af2013-08-01 16:17:48 -070015 unsigned char mac_addr[ETH_ALEN];
Yoshihiro Shimoda49235762009-08-27 23:25:03 +000016 unsigned no_ether_link:1;
17 unsigned ether_link_active_low:1;
Yoshihiro Shimoda150647f2012-02-15 17:54:56 +000018 unsigned needs_init:1;
Yoshinori Sato71557a32008-08-06 19:49:00 -040019};
20
21#endif