diff options
author | Michael Walle <michael@walle.cc> | 2020-04-20 20:21:11 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-22 12:14:18 -0700 |
commit | 0a32f1ff2a2e41404deaba5fb32f8a0d640c0974 (patch) | |
tree | a15fa746b90bc39deaf30b94bc5e15fe607b5515 /drivers/net/phy/bcm-phy-lib.h | |
parent | b86a0373855bd1792dfc14e215df59c1372894f5 (diff) | |
download | linux-0a32f1ff2a2e41404deaba5fb32f8a0d640c0974.tar.gz linux-0a32f1ff2a2e41404deaba5fb32f8a0d640c0974.tar.bz2 linux-0a32f1ff2a2e41404deaba5fb32f8a0d640c0974.zip |
net: phy: broadcom: add helper to write/read RDB registers
RDB (Register Data Base) registers are used on newer Broadcom PHYs. Add
helper to read, write and modify these registers.
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/phy/bcm-phy-lib.h b/drivers/net/phy/bcm-phy-lib.h index 129df819be8c..4d3de91cda6c 100644 --- a/drivers/net/phy/bcm-phy-lib.h +++ b/drivers/net/phy/bcm-phy-lib.h @@ -48,6 +48,15 @@ int bcm_phy_write_shadow(struct phy_device *phydev, u16 shadow, u16 val); int bcm_phy_read_shadow(struct phy_device *phydev, u16 shadow); +int __bcm_phy_write_rdb(struct phy_device *phydev, u16 rdb, u16 val); +int bcm_phy_write_rdb(struct phy_device *phydev, u16 rdb, u16 val); +int __bcm_phy_read_rdb(struct phy_device *phydev, u16 rdb); +int bcm_phy_read_rdb(struct phy_device *phydev, u16 rdb); +int __bcm_phy_modify_rdb(struct phy_device *phydev, u16 rdb, u16 mask, + u16 set); +int bcm_phy_modify_rdb(struct phy_device *phydev, u16 rdb, u16 mask, + u16 set); + int bcm_phy_ack_intr(struct phy_device *phydev); int bcm_phy_config_intr(struct phy_device *phydev); |