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/tdkphy.c | |
| parent | f6018b1434ebe2ce4735054509a869707dc5c362 (diff) | |
Notes
Diffstat (limited to 'sys/dev/mii/tdkphy.c')
| -rw-r--r-- | sys/dev/mii/tdkphy.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/dev/mii/tdkphy.c b/sys/dev/mii/tdkphy.c index 1ac7e6f3741dd..2e89c2da1271c 100644 --- a/sys/dev/mii/tdkphy.c +++ b/sys/dev/mii/tdkphy.c @@ -54,7 +54,6 @@ __FBSDID("$FreeBSD$"); #include <net/if.h> #include <net/if_media.h> - #include <dev/mii/mii.h> #include <dev/mii/miivar.h> #include "miidevs.h" @@ -95,17 +94,16 @@ DRIVER_MODULE(tdkphy, miibus, tdkphy_driver, tdkphy_devclass, 0, 0); static int tdkphy_service(struct mii_softc *, struct mii_data *, int); static void tdkphy_status(struct mii_softc *); +static const struct mii_phydesc tdkphys[] = { + MII_PHY_DESC(TDK, 78Q2120), + MII_PHY_END +}; + static int tdkphy_probe(device_t dev) { - struct mii_attach_args *ma; - ma = device_get_ivars(dev); - if ((MII_OUI(ma->mii_id1, ma->mii_id2) != MII_OUI_TDK || - MII_MODEL(ma->mii_id2) != MII_MODEL_TDK_78Q2120)) - return (ENXIO); - device_set_desc(dev, MII_STR_TDK_78Q2120); - return (BUS_PROBE_DEFAULT); + return (mii_phy_dev_probe(dev, tdkphys, BUS_PROBE_DEFAULT)); } static int |
