diff options
Diffstat (limited to 'include/linux/phylink.h')
-rw-r--r-- | include/linux/phylink.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h index 30659b615fca..157f157b3fe6 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -208,8 +208,10 @@ struct phylink_mac_ops { struct phy_device *phy, unsigned int mode, phy_interface_t interface, int speed, int duplex, bool tx_pause, bool rx_pause); - void (*mac_disable_tx_lpi)(struct phylink_config *config); - int (*mac_enable_tx_lpi)(struct phylink_config *config, u32 timer, + void (*mac_disable_tx_lpi)(struct phylink_config *config, + phy_interface_t interface); + int (*mac_enable_tx_lpi)(struct phylink_config *config, + phy_interface_t interface, u32 timer, bool tx_clk_stop); }; @@ -418,15 +420,18 @@ void mac_link_up(struct phylink_config *config, struct phy_device *phy, /** * mac_disable_tx_lpi() - disable LPI generation at the MAC * @config: a pointer to a &struct phylink_config. + * @interface: current link &typedef phy_interface_t mode * * Disable generation of LPI at the MAC, effectively preventing the MAC * from indicating that it is idle. */ -void mac_disable_tx_lpi(struct phylink_config *config); +void mac_disable_tx_lpi(struct phylink_config *config, + phy_interface_t interface); /** * mac_enable_tx_lpi() - configure and enable LPI generation at the MAC * @config: a pointer to a &struct phylink_config. + * @interface: current link &typedef phy_interface_t mode * @timer: LPI timeout in microseconds. * @tx_clk_stop: allow xMII transmit clock to be stopped during LPI * @@ -439,8 +444,8 @@ void mac_disable_tx_lpi(struct phylink_config *config); * * Returns: 0 on success. Please consult with rmk before returning an error. */ -int mac_enable_tx_lpi(struct phylink_config *config, u32 timer, - bool tx_clk_stop); +int mac_enable_tx_lpi(struct phylink_config *config, phy_interface_t interface, + u32 timer, bool tx_clk_stop); #endif struct phylink_pcs_ops; |