blob: fc305713fc6d4e09d05ef30dd1be1ce24407cfd4 [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>
5
Yoshinori Sato71557a32008-08-06 19:49:00 -04006enum {EDMAC_LITTLE_ENDIAN, EDMAC_BIG_ENDIAN};
Yoshihiro Shimoda4a555302011-03-07 21:59:26 +00007enum {
8 SH_ETH_REG_GIGABIT,
Sergei Shtylyova3f109b2013-03-28 11:51:31 +00009 SH_ETH_REG_FAST_RCAR,
Yoshihiro Shimoda4a555302011-03-07 21:59:26 +000010 SH_ETH_REG_FAST_SH4,
11 SH_ETH_REG_FAST_SH3_SH2
12};
Yoshinori Sato71557a32008-08-06 19:49:00 -040013
14struct sh_eth_plat_data {
15 int phy;
16 int edmac_endian;
Yoshihiro Shimoda4a555302011-03-07 21:59:26 +000017 int register_type;
Yoshihiro Shimodae47c9052011-03-07 21:59:45 +000018 phy_interface_t phy_interface;
Yoshihiro Shimoda8eac3f62011-09-27 21:49:05 +000019 void (*set_mdio_gate)(void *addr);
Yoshihiro Shimoda49235762009-08-27 23:25:03 +000020
Magnus Damm748031f2009-10-09 00:17:14 +000021 unsigned char mac_addr[6];
Yoshihiro Shimoda49235762009-08-27 23:25:03 +000022 unsigned no_ether_link:1;
23 unsigned ether_link_active_low:1;
Yoshihiro Shimoda150647f2012-02-15 17:54:56 +000024 unsigned needs_init:1;
Yoshinori Sato71557a32008-08-06 19:49:00 -040025};
26
27#endif