mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 12:04:46 +08:00
net: mdio: add mdiodev_c45_(read|write)
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
21780f89d6
commit
f6479ea4e5
@ -488,6 +488,19 @@ static inline int mdiobus_c45_write(struct mii_bus *bus, int prtad, int devad,
|
||||
return mdiobus_write(bus, prtad, mdiobus_c45_addr(devad, regnum), val);
|
||||
}
|
||||
|
||||
static inline int mdiodev_c45_read(struct mdio_device *mdiodev, int devad,
|
||||
u16 regnum)
|
||||
{
|
||||
return mdiobus_c45_read(mdiodev->bus, mdiodev->addr, devad, regnum);
|
||||
}
|
||||
|
||||
static inline int mdiodev_c45_write(struct mdio_device *mdiodev, u32 devad,
|
||||
u16 regnum, u16 val)
|
||||
{
|
||||
return mdiobus_c45_write(mdiodev->bus, mdiodev->addr, devad, regnum,
|
||||
val);
|
||||
}
|
||||
|
||||
int mdiobus_register_device(struct mdio_device *mdiodev);
|
||||
int mdiobus_unregister_device(struct mdio_device *mdiodev);
|
||||
bool mdiobus_is_registered_device(struct mii_bus *bus, int addr);
|
||||
|
Loading…
Reference in New Issue
Block a user