summaryrefslogtreecommitdiff
path: root/sys/dev/mii
AgeCommit message (Collapse)Author
2004-12-08Check if_type in carp_carpdev_state() to make sure we're notRyan Thomas McBride
dealing with a carp interface.
2004-12-01syncPeter Valchev
2004-12-01Driver for the Cicada CS8201 10/100/1000 copper PHYPeter Valchev
from FreeBSD
2004-11-18add mii_phy_match() for table-driven lookup.Brad Smith
From NetBSD
2004-11-16if_dc.c rev 1.56Brad Smith
Do not call mii_pollstat() from within device tick routines; the status information is updated by mii_tick(). dcphy.c rev 1.13 Work around an Intel 21143 chip bug. Rev 1.56 of if_dc.c removed calls to mii_pollstat() from the dc_tick() routine. dc_tick() is called regularly to detect link up and link down status, especially when autonegotiating. The expectation was that mii_tick() (which is still called from dc_tick()) would update status information automatically in all cases where it would be sensible to do so. Unfortunately, with authentic 21143 chips this is not the case, and the driver never successfully autonegotiates. This is because (despite what it says in the 21143 manual) the chip always claims that link is not present while the autonegotiation enable bit is set. Autonegotation takes place and succeeds, but the driver tests the link bits before it switches off the autonegotiation enable bit, and success is not recognised. The simplest solution is to call dcphy_status() more often for MII_TICK calls by dropping out of the switch statement instead of exiting when we are autonegotiating and link appears to not be present. When autonegotiation succeeds, dcphy_status() will note the speed and fdx/hdx state and turn off the autonegotiation enable bit. The next call to dcphy_status() will notice that link is present, and the dc driver code will be notified. Macronix chips also use this code, but implement link detection as described in the manual, and hence don't need this patch. However, tests on a Macronix 98715AEC-C show that it does not adversely affect them. From FreeBSD ok deraadt@
2004-10-31rev 1.68Brad Smith
Add support for BCM5705K rev 1.74 Add support for the BCM5750/5751. Unfortunately the documentation I have from Broadcom does not give much information on these devices, so the Broadcom Linux driver was used for clues to what these chips support. It turns out they are similar to the 5705 with the 5751 being the PCI-Express version and needing special work-arounds and settings. From FreeBSD
2004-10-29remove double "PHY" printed in dmesg; ok deraadtPeter Valchev
2004-10-28fix/update FreeBSD RCSId for reference purposesPeter Valchev
2004-10-17model internal phy chunk on the one from rlphyTheo de Raadt
2004-10-17some unknown Altima phy..Theo de Raadt
2004-10-17syncTheo de Raadt
2004-10-17shrink crudTheo de Raadt
2004-10-09remove redundant checks for MII_TICK case which mii_phy_tick()Brad Smith
already deals with.
2004-10-09Allow a little time for the reset to settle in before we start pollingBrad Smith
the BMCR again. The DP83840A manual states that there should be a 500us delay between asserting software reset and attempting MII serial operations. From NetBSD ok mcbride@
2004-10-09add master flag support for 1000baseT and autonegotiation support for 1000baseX.Brad Smith
From NetBSD ok mcbride@
2004-10-08don't print media infoBrad Smith
2004-10-07Add driver for generic ten-bit interfaces (1000BASE-{LX,SX} fibre interfaces)Brad Smith
From NetBSD ok mcbride@
2004-10-07add constants for 1000Base-X duplex negotiation.Brad Smith
From NetBSD ok mcbride@
2004-10-07*phy -> *scBrad Smith
ok jason@
2004-10-04syncTheo de Raadt
2004-10-04davicom DM9601 contains another amiphy cloneTheo de Raadt
2004-10-02Add missing sc_mii, broken by PHY entry point changes.Ryan Thomas McBride
(apparantly only affects cats GENERIC)
2004-10-01regenBrad Smith
2004-10-01add ids for Broadcom BCM5750/5751Brad Smith
From: FreeBSD
2004-10-01add some missing $, ok djm@ 'That looks fine to me' millert@Jonathan Gray
2004-09-30rtl8139 doesn't setup ANLPAR if the other side is not NWay compatible,Jason Wright
to try to deduce what the link partner is the hardway. Based on FreeBSD.
2004-09-29from netbsd: if_url.c 1.8, if_urlreg.h 1.2, urlphy.c 1.9 and urlphyreg.h 1.2David Gwynne
via Jonathan Gray log message: Remove advertising clauses from code written by Shingo WATANABE. He has kindly consented it.
2004-09-28mii_phy_tick() already checks for autonegotiation.Brad Smith
2004-09-27ANSI protos and some minor cleanupBrad Smith
ok henning@
2004-09-26simplify MII_TICK case by using mii_phy_tick().Brad Smith
2004-09-26Restructure the PHY entry points to use a structure ofBrad Smith
entry points instead of descrete function pointers, and extend this to include a "reset" entry point. Make sure any PHY-specific reset routine is always used. From NetBSD ok mcbride@
2004-09-23RTL8201L PHY support; from FreeBSD.Federico G. Schwindt
2004-09-20don't include sys/malloc.h, no memory management functions are usedBrad Smith
by any of the MII drivers. From NetBSD
2004-08-10regenBrad Smith
2004-08-101000baseTX -> 1000baseTBrad Smith
gigabit -> Gigabit
2004-08-06add MII_MODEL_AMD_79C875phyPer Fogelstrom
2004-08-06Add support for Am79C875 quad phy.Per Fogelstrom
ok deraadt@
2004-08-03Add a MIIF_FORCEANEG flag to be passed to mii_attach. This forces anBrad Smith
autonegotiation to take place if IFM_AUTO is selected in mii_media_set. From NetBSD
2004-08-02more MII flagsBrad Smith
From NetBSD
2004-06-05Driver for the RealTek 8169S/8110S internal 10/100/1000 PHYPeter Valchev
from FreeBSD
2004-06-05syncPeter Valchev
2004-06-05gigE PHY in the RealTek 8169S/8110S chipsPeter Valchev
2004-04-28Make carp(4) aware of its physical interface:Ryan Thomas McBride
- If the physical interface goes down or the link goes down, the carp interface goes down as well. - We treat this like the preemption holdoff with pfsync. So if one of the carp interfaces is known to be bad (because the physical interface it's associated with is bad), all the other carp interfaces back off: they won't preempt, and their advskew goes to 240. ok cedric@
2004-04-15regenMichael Shalayeff
2004-04-15a plessey phy as found on some pnicsMichael Shalayeff
2003-10-22typos from Tom Cosgrove;Jason McIntyre
2003-10-13Bring bge and brgphy more up to date with changes from FreeBSD and NetBSD.Kenneth R Westerback
Some bug fixes, support for new hardware like the 5704 and 5705. Testing by deraadt@, danh@, and drahn@ amoung others. ok deraadt@.
2003-10-05Fix tree breakage. We are not ready for RealTek PHYs, so back out thatKenneth R Westerback
addition, leaving only desired Broadcom PHY additions.
2003-10-05Fix tree breakage. We are not ready for RealTek PHYs, so back out thatKenneth R Westerback
addition, leaving only desired Broadcom PHY additions.
2003-10-05Misc. PHYs: more Broadcom, some RealTek.Kenneth R Westerback
The Broadcom devices are needed for the bge sync being attempted. From FreeBSD. As were the pcidevs committed earlier.