diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2012-08-16 10:38:56 +0200 |
---|---|---|
committer | Dirk Behme <dirk.behme@gmail.com> | 2012-11-11 11:42:28 +0100 |
commit | 1975a8aad0192e1acfa0330837b56839e43a5bdc (patch) | |
tree | d6f28f8607fc5a6341e10299fce5d741e3d218e8 /include | |
parent | 43e6c53ff761cb2007a8918294bea555bbe37854 (diff) |
phy: add phy_connect_by_mask
It is useful to be able to try a range of
possible phy addresses to connect.
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/phy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/phy.h b/include/phy.h index 3c30f115b6e..aea462ffe8c 100644 --- a/include/phy.h +++ b/include/phy.h @@ -202,6 +202,8 @@ int phy_reset(struct phy_device *phydev); struct phy_device *phy_connect(struct mii_dev *bus, int addr, struct eth_device *dev, phy_interface_t interface); +struct phy_device *phy_connect_by_mask(struct mii_dev *bus, unsigned phy_mask, + struct eth_device *dev, phy_interface_t interface); int phy_startup(struct phy_device *phydev); int phy_config(struct phy_device *phydev); int phy_shutdown(struct phy_device *phydev); |