phylib-internal.h 739 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * phylib-internal header
  4. */
  5. #ifndef __PHYLIB_INTERNAL_H
  6. #define __PHYLIB_INTERNAL_H
  7. struct phy_device;
  8. /*
  9. * phy_supported_speeds - return all speeds currently supported by a PHY device
  10. */
  11. unsigned int phy_supported_speeds(struct phy_device *phy,
  12. unsigned int *speeds,
  13. unsigned int size);
  14. void of_set_phy_supported(struct phy_device *phydev);
  15. void of_set_phy_eee_broken(struct phy_device *phydev);
  16. void of_set_phy_timing_role(struct phy_device *phydev);
  17. int phy_speed_down_core(struct phy_device *phydev);
  18. void phy_check_downshift(struct phy_device *phydev);
  19. int genphy_c45_read_eee_adv(struct phy_device *phydev, unsigned long *adv);
  20. #endif /* __PHYLIB_INTERNAL_H */