]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/phy.h
ethtool: Add phy statistics
[karo-tx-linux.git] / include / linux / phy.h
index 05fde31b6dc6dbe2f97356cea09a961dc1cd3af0..a89cb0eef911eaea6ebf037ed276f9138426bac3 100644 (file)
@@ -589,6 +589,12 @@ struct phy_driver {
        int (*module_eeprom)(struct phy_device *dev,
                             struct ethtool_eeprom *ee, u8 *data);
 
+       /* Get statistics from the phy using ethtool */
+       int (*get_sset_count)(struct phy_device *dev);
+       void (*get_strings)(struct phy_device *dev, u8 *data);
+       void (*get_stats)(struct phy_device *dev,
+                         struct ethtool_stats *stats, u64 *data);
+
        struct device_driver driver;
 };
 #define to_phy_driver(d) container_of(d, struct phy_driver, driver)