diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1999-08-29 15:52:19 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1999-08-29 15:52:19 +0000 |
commit | 1ef8fbeabfb41f932bd0b8184ba5da8f9f2e3a2d (patch) | |
tree | 6b2de1b2e7f910790bf7e335f59668a376f12d18 /usr.sbin | |
parent | 9052a8fa4199a5979c48ccac44a01bdd13c24e0e (diff) | |
download | src-1ef8fbeabfb41f932bd0b8184ba5da8f9f2e3a2d.tar.gz src-1ef8fbeabfb41f932bd0b8184ba5da8f9f2e3a2d.zip |
Convert the 3Com XL driver to miibus. This one is a little tricky
due to the fact that there are non-MII cards supported by the same
driver and I don't have all of the cards available for testing. There's
also the 3c905B-COMBO which has MII, AUI and BNC media ports all in one
package. Supporting the COMBO is difficult because we have to add the
10base5 and 10base2 media types to the same ifmedia struct as the
MII-attached types, however there is no way to force the miibus and
child PHYs into existence before xl_attach() completes, so there is
no ifmedia struct available in xl_attach(). What we do inistead is
use the mediainit method as a callback: when a child PHY is attached,
it calls the miibus mediainit routine which selects a default media.
This routing also calls the NIC driver's mediainit method (if it
implements one) at which point we can safely add the other media
types.
Notes
Notes:
svn path=/head/; revision=50579
Diffstat (limited to 'usr.sbin')
0 files changed, 0 insertions, 0 deletions