aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rtl838x/patches-5.4/703-include-linux-add-phy-ops-for-rtl838x.patch
blob: db8b0403f7d509a862e530855361cd5c6335d400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -628,6 +628,10 @@
 			    struct ethtool_tunable *tuna,
 			    const void *data);
 	int (*set_loopback)(struct phy_device *dev, bool enable);
+	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)