diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-01-06 20:11:07 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-07 14:31:24 -0500 |
commit | bac83c653799d7ea3f6cc4d7396d75adc5e0f778 (patch) | |
tree | 353df281b00467c2e7f8de72db60e6356ec6097b /include/linux/mdio.h | |
parent | ccaa953e9fc7ebb90fba4e4815966683bef4866f (diff) | |
download | lwn-bac83c653799d7ea3f6cc4d7396d75adc5e0f778.tar.gz lwn-bac83c653799d7ea3f6cc4d7396d75adc5e0f778.zip |
mdio: Move mdiobus_read/write operatings into mdio.h
These are logically MDIO operations, not phy operations, so move them
into the mdio header.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mdio.h')
-rw-r--r-- | include/linux/mdio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mdio.h b/include/linux/mdio.h index b42963bc81dd..0d073c23c10d 100644 --- a/include/linux/mdio.h +++ b/include/linux/mdio.h @@ -11,6 +11,7 @@ #include <uapi/linux/mdio.h> +struct mii_bus; static inline bool mdio_phy_id_is_c45(int phy_id) { @@ -173,4 +174,9 @@ static inline u16 ethtool_adv_to_mmd_eee_adv_t(u32 adv) return reg; } +int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum); +int mdiobus_read_nested(struct mii_bus *bus, int addr, u32 regnum); +int mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val); +int mdiobus_write_nested(struct mii_bus *bus, int addr, u32 regnum, u16 val); + #endif /* __LINUX_MDIO_H__ */ |