sh_eth.h 527 B

12345678910111213141516171819202122232425262728
  1. #ifndef __ASM_SH_ETH_H__
  2. #define __ASM_SH_ETH_H__
  3. #include <linux/phy.h>
  4. #include <linux/if_ether.h>
  5. enum {EDMAC_LITTLE_ENDIAN, EDMAC_BIG_ENDIAN};
  6. enum {
  7. SH_ETH_REG_GIGABIT,
  8. SH_ETH_REG_FAST_RCAR,
  9. SH_ETH_REG_FAST_SH4,
  10. SH_ETH_REG_FAST_SH3_SH2
  11. };
  12. struct sh_eth_plat_data {
  13. int phy;
  14. int edmac_endian;
  15. int register_type;
  16. phy_interface_t phy_interface;
  17. void (*set_mdio_gate)(void *addr);
  18. unsigned char mac_addr[ETH_ALEN];
  19. unsigned no_ether_link:1;
  20. unsigned ether_link_active_low:1;
  21. unsigned needs_init:1;
  22. };
  23. #endif