diff options
author | Marius Strobl <marius@FreeBSD.org> | 2006-12-02 15:32:34 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2006-12-02 15:32:34 +0000 |
commit | a35b933378bb0fb0df1cec1d85587b5db66e8bf9 (patch) | |
tree | 25749fe19f52ff6e7be4f3431382ac173c7c08fc /sys/dev/mii/miivar.h | |
parent | f6018b1434ebe2ce4735054509a869707dc5c362 (diff) |
Add a helper function mii_phy_dev_probe(), which wraps around the
mii_phy_match() API and takes care of the PHY device probe based on
the struct mii_phydesc array and the match return value provided.
Convert PHY drivers to take advantage of mii_phy_dev_probe(),
converting drivers to provide a mii_phydesc table in the first
place where necessary.
Reviewed by: yongari
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=164827
Diffstat (limited to 'sys/dev/mii/miivar.h')
-rw-r--r-- | sys/dev/mii/miivar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h index ae4e18a49677..33ce299547e9 100644 --- a/sys/dev/mii/miivar.h +++ b/sys/dev/mii/miivar.h @@ -229,6 +229,7 @@ const struct mii_phydesc * mii_phy_match(const struct mii_attach_args *ma, const struct mii_phydesc *mpd); const struct mii_phydesc * mii_phy_match_gen(const struct mii_attach_args *ma, const struct mii_phydesc *mpd, size_t endlen); +int mii_phy_dev_probe(device_t dev, const struct mii_phydesc *mpd, int mrv); void ukphy_status(struct mii_softc *); #endif /* _KERNEL */ |