diff options
author | Andrew Lunn <andrew@lunn.ch> | 2023-01-12 18:15:07 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-14 08:40:53 +0300 |
commit | 93641ecbaa1f2602c455842ad0b0fe066f5f1344 (patch) | |
tree | 684707636ab459a6170a09b5f911d419fa46e913 /drivers/net/mdio/mdio-cavium.h | |
parent | 9b7fe8046d7429ba776f962ad3b4b7ba2d6859c8 (diff) | |
download | linux-93641ecbaa1f2602c455842ad0b0fe066f5f1344.tar.xz |
net: mdio: cavium: Separate C22 and C45 transactions
The cavium IP can perform both C22 and C45 transfers. Create separate
functions for each and register the C45 versions in both the octeon
and thunder bus driver.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/mdio/mdio-cavium.h')
-rw-r--r-- | drivers/net/mdio/mdio-cavium.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/mdio/mdio-cavium.h b/drivers/net/mdio/mdio-cavium.h index a2245d436f5d..71b8e20cd664 100644 --- a/drivers/net/mdio/mdio-cavium.h +++ b/drivers/net/mdio/mdio-cavium.h @@ -114,5 +114,10 @@ static inline u64 oct_mdio_readq(void __iomem *addr) #define oct_mdio_readq(addr) readq(addr) #endif -int cavium_mdiobus_read(struct mii_bus *bus, int phy_id, int regnum); -int cavium_mdiobus_write(struct mii_bus *bus, int phy_id, int regnum, u16 val); +int cavium_mdiobus_read_c22(struct mii_bus *bus, int phy_id, int regnum); +int cavium_mdiobus_write_c22(struct mii_bus *bus, int phy_id, int regnum, + u16 val); +int cavium_mdiobus_read_c45(struct mii_bus *bus, int phy_id, int devad, + int regnum); +int cavium_mdiobus_write_c45(struct mii_bus *bus, int phy_id, int devad, + int regnum, u16 val); |