diff options
author | Florian Fainelli | 2016-11-22 20:40:55 +0100 |
---|---|---|
committer | David S. Miller | 2016-11-24 21:45:53 +0100 |
commit | d06f78c4232d6a84b50839f61d9d7fbb222d8118 (patch) | |
tree | 9301f4e9cd2bee1e719d2acfce8a679e05b7e521 /drivers/net/phy/bcm-phy-lib.h | |
parent | net: phy: broadcom: Move bcm54xx_auxctl_{read, write} to common library (diff) | |
download | kernel-qcow2-linux-d06f78c4232d6a84b50839f61d9d7fbb222d8118.tar.gz kernel-qcow2-linux-d06f78c4232d6a84b50839f61d9d7fbb222d8118.tar.xz kernel-qcow2-linux-d06f78c4232d6a84b50839f61d9d7fbb222d8118.zip |
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 */ |