of_mdio.h 766 B

1234567891011121314151617181920212223242526
  1. /*
  2. * OF helpers for the MDIO (Ethernet PHY) API
  3. *
  4. * Copyright (c) 2009 Secret Lab Technologies, Ltd.
  5. *
  6. * This file is released under the GPLv2
  7. */
  8. #ifndef __LINUX_OF_MDIO_H
  9. #define __LINUX_OF_MDIO_H
  10. #include <linux/phy.h>
  11. #include <linux/of.h>
  12. extern int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np);
  13. extern struct phy_device *of_phy_find_device(struct device_node *phy_np);
  14. extern struct phy_device *of_phy_connect(struct net_device *dev,
  15. struct device_node *phy_np,
  16. void (*hndlr)(struct net_device *),
  17. u32 flags, phy_interface_t iface);
  18. extern struct phy_device *of_phy_connect_fixed_link(struct net_device *dev,
  19. void (*hndlr)(struct net_device *),
  20. phy_interface_t iface);
  21. #endif /* __LINUX_OF_MDIO_H */