diff options
Diffstat (limited to 'include/linux/phy.h')
| -rw-r--r-- | include/linux/phy.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 6cd09098427c..cd6f637cbbfb 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
| @@ -825,6 +825,16 @@ static inline bool phy_interrupt_is_valid(struct phy_device *phydev) | |||
| 825 | } | 825 | } |
| 826 | 826 | ||
| 827 | /** | 827 | /** |
| 828 | * phy_polling_mode - Convenience function for testing whether polling is | ||
| 829 | * used to detect PHY status changes | ||
| 830 | * @phydev: the phy_device struct | ||
| 831 | */ | ||
| 832 | static inline bool phy_polling_mode(struct phy_device *phydev) | ||
| 833 | { | ||
| 834 | return phydev->irq == PHY_POLL; | ||
| 835 | } | ||
| 836 | |||
| 837 | /** | ||
| 828 | * phy_is_internal - Convenience function for testing if a PHY is internal | 838 | * phy_is_internal - Convenience function for testing if a PHY is internal |
| 829 | * @phydev: the phy_device struct | 839 | * @phydev: the phy_device struct |
| 830 | */ | 840 | */ |
| @@ -942,6 +952,8 @@ void phy_start(struct phy_device *phydev); | |||
| 942 | void phy_stop(struct phy_device *phydev); | 952 | void phy_stop(struct phy_device *phydev); |
| 943 | int phy_start_aneg(struct phy_device *phydev); | 953 | int phy_start_aneg(struct phy_device *phydev); |
| 944 | int phy_aneg_done(struct phy_device *phydev); | 954 | int phy_aneg_done(struct phy_device *phydev); |
| 955 | int phy_speed_down(struct phy_device *phydev, bool sync); | ||
| 956 | int phy_speed_up(struct phy_device *phydev); | ||
| 945 | 957 | ||
| 946 | int phy_stop_interrupts(struct phy_device *phydev); | 958 | int phy_stop_interrupts(struct phy_device *phydev); |
| 947 | int phy_restart_aneg(struct phy_device *phydev); | 959 | int phy_restart_aneg(struct phy_device *phydev); |
