diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-12-11 11:51:02 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-12-11 12:33:05 +0100 |
commit | 6cb2b2f29f362c7021a05b6f68a6e8d7a79f2972 (patch) | |
tree | 16ff3e703e2d8a9e66350e773ab91e3464d85212 /include | |
parent | bfc9a6985c13f3159cf7a867fe7e695983e0c269 (diff) | |
download | barebox-6cb2b2f29f362c7021a05b6f68a6e8d7a79f2972.tar.gz barebox-6cb2b2f29f362c7021a05b6f68a6e8d7a79f2972.tar.xz |
net: phy: implement detect callback for miibus devices
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 5f3b33f66a..6c9d090f40 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -94,6 +94,8 @@ int mdiobus_register(struct mii_bus *bus); void mdiobus_unregister(struct mii_bus *bus); struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr); +void mdiobus_detect_all(void); + extern struct list_head mii_bus_list; #define for_each_mii_bus(mii) \ @@ -251,6 +253,8 @@ struct phy_device *get_phy_device(struct mii_bus *bus, int addr); int phy_init(void); int phy_init_hw(struct phy_device *phydev); +int phy_register_device(struct phy_device* dev); + /** * phy_read - Convenience function for reading a given PHY register * @phydev: the phy_device struct |