/include/linux/sh_eth.h

https://github.com/airy09/android_kernel_sony_apq8064 · C Header · 26 lines · 21 code · 5 blank · 0 comment · 0 complexity · 935b88b747abf61d5cdd10c74fd2b303 MD5 · raw file

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