703-include-linux-add-phy-ops-for-rtl838x.patch 555 B

12345678910111213
  1. --- a/include/linux/phy.h
  2. +++ b/include/linux/phy.h
  3. @@ -650,6 +650,10 @@ struct phy_driver {
  4. struct ethtool_tunable *tuna,
  5. const void *data);
  6. int (*set_loopback)(struct phy_device *dev, bool enable);
  7. + int (*get_port)(struct phy_device *dev);
  8. + int (*set_port)(struct phy_device *dev, int port);
  9. + int (*get_eee)(struct phy_device *dev, struct ethtool_eee *e);
  10. + int (*set_eee)(struct phy_device *dev, struct ethtool_eee *e);
  11. };
  12. #define to_phy_driver(d) container_of(to_mdio_common_driver(d), \
  13. struct phy_driver, mdiodrv)