aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTroy Kisky2012-10-22 16:40:43 +0000
committerStefano Babic2013-01-28 06:57:50 +0100
commit1adb406b014176f0c1a925e4d3e9aae556dfe571 (patch)
treee47a7744d39f219603d18cd8c79a76ddb33ca4fe /include
parenteef2448039c43493b2f9def6f257f1006fb0e956 (diff)
phy: add phy_find_by_mask/phy_connect_dev
It is useful to be able to try a range of possible phy addresses to connect. Also, an ethernet device is not required to use phy_find_by_mask leading to better separation of mii vs ethernet, as suggested by Andy Fleming. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'include')
-rw-r--r--include/phy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/phy.h b/include/phy.h
index 3c30f115b6e..58ca2730c84 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -199,6 +199,9 @@ static inline int is_10g_interface(phy_interface_t interface)
int phy_init(void);
int phy_reset(struct phy_device *phydev);
+struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask,
+ phy_interface_t interface);
+void phy_connect_dev(struct phy_device *phydev, struct eth_device *dev);
struct phy_device *phy_connect(struct mii_dev *bus, int addr,
struct eth_device *dev,
phy_interface_t interface);