b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | --- a/include/linux/phy.h |
| 2 | +++ b/include/linux/phy.h |
| 3 | @@ -644,6 +644,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) |