diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-04-29 14:09:10 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-04-29 14:09:10 +0000 |
commit | 875525d5170879ddf1e60f715547714848253354 (patch) | |
tree | 7c7882efabdcfc55f525359c8bb0d069ecf84930 /sys/dev/mii/miivar.h | |
parent | e5fbad8bca65b89f57ea5692e6cab5ce7c0852af (diff) |
Introduce NetBSD's mii_phy_match() API and use it in the nsgphy to
get a description printed.
Notes
Notes:
svn path=/head/; revision=95724
Diffstat (limited to 'sys/dev/mii/miivar.h')
-rw-r--r-- | sys/dev/mii/miivar.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h index 73a57eb97150..cb56fd579010 100644 --- a/sys/dev/mii/miivar.h +++ b/sys/dev/mii/miivar.h @@ -156,6 +156,15 @@ struct mii_attach_args { typedef struct mii_attach_args mii_attach_args_t; /* + * Used to match a PHY. + */ +struct mii_phydesc { + u_int32_t mpd_oui; /* the PHY's OUI */ + u_int32_t mpd_model; /* the PHY's model */ + const char *mpd_name; /* the PHY's name */ +}; + +/* * An array of these structures map MII media types to BMCR/ANAR settings. */ struct mii_media { @@ -210,6 +219,8 @@ void mii_phy_setmedia(struct mii_softc *sc); void mii_phy_update(struct mii_softc *, int); int mii_phy_tick(struct mii_softc *); +const struct mii_phydesc * mii_phy_match(const struct mii_attach_args *ma, const struct mii_phydesc *mpd); + void ukphy_status(struct mii_softc *); #endif /* _KERNEL */ |