mge, mii/e1000phy
Kristof Provost
kristof at sigsegv.be
Thu Sep 24 20:39:23 UTC 2009
On 2009-09-23 14:40:11 (-0700), Pyun YongHyeon <pyunyh at gmail.com> wrote:
> Oh, this question may not be related with your link issue. I wanted
> to know why mge(4) had to check media type in its ioctl handler.
> The advertised capability has nothing to do with link partner's
> capability. The advertised capability is used in auto-negotiation
> process and the PHY will choose the highest common denominator
> capability. So if we want to disable 1000baseT/half-duplex for
> whatever reason, it can be achieved by not advertising 1000baseT/
> half-duplex capability to mii layer.
>
I think it's advertising the following:
10baseT
10baseT-FDX
100baseTX
100baseTX-FDX
1000baseT
1000baseT-FDX
auto
In any case, the values used during mii_phy_add_media are
sc->mii_capabilities 0x7949 and sc->mii_extcapabilities 0x3000.
Regards,
Kristof
More information about the freebsd-current
mailing list