aboutsummaryrefslogtreecommitdiff
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-12-31 00:53:11 -0500
committerDavid S. Miller <davem@davemloft.net>2015-12-31 00:53:11 -0500
commitccac0425655918fccd0ffec47b2788cb1ac62d7b (patch)
tree963eea88a6454fa7e814ceac983eceaa46f8716f /include/linux/phy.h
parenta3748a9c7fc0e33ed1a5bcd6104098d9f63a61ed (diff)
parent2b2427d06426a99bf5f57f28b6c2477e78577a5e (diff)
downloadlinux-ccac0425655918fccd0ffec47b2788cb1ac62d7b.tar.gz
linux-ccac0425655918fccd0ffec47b2788cb1ac62d7b.tar.bz2
linux-ccac0425655918fccd0ffec47b2788cb1ac62d7b.zip
Merge branch 'ethtool-phy-stats'
Andrew Lunn says: ==================== Ethtool support for phy stats This patchset add ethtool support for reading statistics from the PHY. The Marvell and Micrel Phys are then extended to report receiver packet errors and idle errors. v2: Fix linking when phylib is not enabled. v3: Inline helpers into ethtool.c, so fixing when phylib is a module. v4: Add missing static ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 05fde31b6dc6..a89cb0eef911 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -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)