diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2016-11-22 22:40:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-24 23:45:53 +0300 |
commit | d06f78c4232d6a84b50839f61d9d7fbb222d8118 (patch) | |
tree | 9301f4e9cd2bee1e719d2acfce8a679e05b7e521 /drivers/net/phy/bcm-phy-lib.h | |
parent | 5519da874ad0f382b725281e443cf7fe58995ed8 (diff) | |
download | linux-d06f78c4232d6a84b50839f61d9d7fbb222d8118.tar.xz |
net: phy: broadcom: Add support code for downshift/Wirespeed
Broadcom's Wirespeed feature allows us to configure how auto-negotiation
should behave with fewer working pairs of wires on a cable. Add support
code for retrieving and setting such downshift counters using the
recently added ethtool downshift tunables.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/bcm-phy-lib.h')
-rw-r--r-- | drivers/net/phy/bcm-phy-lib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/phy/bcm-phy-lib.h b/drivers/net/phy/bcm-phy-lib.h index 31cb4fdf5d5a..3f492e629094 100644 --- a/drivers/net/phy/bcm-phy-lib.h +++ b/drivers/net/phy/bcm-phy-lib.h @@ -37,4 +37,9 @@ int bcm_phy_config_intr(struct phy_device *phydev); int bcm_phy_enable_apd(struct phy_device *phydev, bool dll_pwr_down); int bcm_phy_enable_eee(struct phy_device *phydev); + +int bcm_phy_downshift_get(struct phy_device *phydev, u8 *count); + +int bcm_phy_downshift_set(struct phy_device *phydev, u8 count); + #endif /* _LINUX_BCM_PHY_LIB_H */ |