Date: Mon, 12 May 2008 13:07:50 +0100 From: "Bruce M. Simpson" <bms@FreeBSD.org> To: Volker <volker@vwsoft.com> Cc: net@freebsd.org, Marius Strobl <marius@alchemy.franken.de> Subject: Re: how to identify a PHY? Message-ID: <48283316.2080100@FreeBSD.org> In-Reply-To: <48283036.8060602@vwsoft.com> References: <48281D8F.2090501@vwsoft.com> <20080512111958.GA95632@alchemy.franken.de> <48283036.8060602@vwsoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Volker wrote:
> ...
> In short my original question better reads as "how do I know the kind of
> phy if no driver has been attached". Can one retrieve that information
> out of a verbose boot dmesg (from probing messages)?
>
You can't determine which PHY is in use unless a driver is attached,
because it's necessary to attach a driver in order to access the card's
MII registers. Same with any other OS.
If no PHY driver attached, but a NIC driver attached, you should see
this message:
device_printf(dev, "MII without any PHY!\n");
It sounds like someone needs to instrument the code path mii_phy_probe()
to print useful information in the situation you describe.
cheers
BMS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48283316.2080100>
