2021-05-05 00:32:27 +00:00
|
|
|
--- a/include/linux/phy.h
|
|
|
|
+++ b/include/linux/phy.h
|
2021-10-27 10:10:45 +00:00
|
|
|
@@ -885,6 +885,10 @@ struct phy_driver {
|
2021-05-05 05:02:49 +00:00
|
|
|
int (*get_sqi)(struct phy_device *dev);
|
|
|
|
/** @get_sqi_max: Get the maximum signal quality indication */
|
|
|
|
int (*get_sqi_max)(struct phy_device *dev);
|
2021-05-05 00:32:27 +00:00
|
|
|
+ int (*get_port)(struct phy_device *dev);
|
|
|
|
+ int (*set_port)(struct phy_device *dev, int port);
|
|
|
|
+ int (*get_eee)(struct phy_device *dev, struct ethtool_eee *e);
|
|
|
|
+ int (*set_eee)(struct phy_device *dev, struct ethtool_eee *e);
|
|
|
|
};
|
|
|
|
#define to_phy_driver(d) container_of(to_mdio_common_driver(d), \
|
|
|
|
struct phy_driver, mdiodrv)
|