Commit Graph

27 Commits

Author SHA1 Message Date
msaitoh e3ec9da383 Update comment. SmartSpeed workaroud code was added in rev. 1.5. No functional
change.
2017-07-06 08:09:05 +00:00
msaitoh 8bc54e5be6 KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
msaitoh d44325eed8 igphy(4),ukphy(4): Set mii_mpd_* entries.
wm(4): check PHY type correctly.
2015-10-30 07:35:30 +00:00
pooka 4a6dab945c add some _KERNEL_OPT as the finishing touch 2015-08-24 23:55:04 +00:00
msaitoh b211437b51 IFM_FDX and IFM_HDX use different bit, so set IFM_HDX bit if it's not full
duplex. For many drivers, it recognize half duplex if IFM_FDX isn't set,
but not for others. Same as {Free|Open}BSD.
2014-06-16 16:48:16 +00:00
msaitoh 8ac15b216d Style fix. No functional change. 2012-10-18 08:22:37 +00:00
msaitoh c70d45b7a4 Add two workarounds for ICH8 with igp3.
- Workaround for 82566 Kumeran PCS lock loss.
- WOL from S5 stops working.
2010-03-07 07:53:37 +00:00
msaitoh 05b467b58c Sync with Intel's original em driver:
- Add dspcode for igp3 and use it when the EEPROM isn't available.
- Add some delays.
- Stop the PHY transmitter before patching the DSP code and restart it after wrote.
- Save and restore register 0x2f5b.
2009-12-16 14:37:26 +00:00
msaitoh f03b836566 Re-enable igphy's 82566 support.
- Patch for the DSP code is only for 8254[17] and we have to apply the
   different patches between rev. 1 and rev. 2.
 - The workaround for analog fuse is only for 82547 rev. 1.
 - The workaround for smartspeed is only for 8254[17]

see http://mail-index.netbsd.org/tech-net/2009/08/05/msg001546.html
2009-12-16 04:50:35 +00:00
kml 20115c22f9 Later generation 82566 IGP PHYs have problems with media changes to 100Mb and
10Mb; it appears that the SmartSpeed workaround and dspcode in this PHY are
aimed at earlier generation IGPs.  Remove reference to 82566s, allowing
them to fall through to choose other PHYs.
2009-08-06 04:58:48 +00:00
dyoung ddbd8176f9 Reduce code duplication: most PHY drivers call mii_phy_add_media()
when they attach to the device tree, so call pmf_device_register(9)
once there instead of once in more than twenty drivers.
2008-11-17 03:04:27 +00:00
xtraeme 7db0e57765 device_t/softc split for all mii(4) devices, and other related
cosmetic changes.
2008-05-04 17:06:09 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
cegger cf417aad7e use aprint_*_dev and device_xname 2008-04-08 20:08:49 +00:00
jmcneill 4c1d81b2b5 Merge jmcneill-pm branch. 2007-12-09 20:27:42 +00:00
msaitoh 7c88b47eff add I82566 2007-08-28 01:11:50 +00:00
msaitoh f0a2eb28e5 fix some negotiation problems on wm(4).
will fix PR#30078, PR#30490, PR#30906, PR#33429, PR#35386.
2007-02-23 03:03:10 +00:00
christos 5e16b7787c - don't hardcode 5, 10 define and use MII_ANEGTICKS{,_GIGE}
- instead of != limit, use <= limit (conservative)
2006-11-16 21:24:06 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos 4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
thorpej 838ee1e0d9 Use device_private(). 2006-03-29 06:51:47 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
thorpej 29a0a6f5d1 Enable the SmartSpeed work-around code for the IGP phy, with some
minor adjustments.
2004-10-05 20:20:00 +00:00
thorpej 1efb3da0fb Make use of static. 2004-08-23 06:16:06 +00:00
thorpej 08645d15fe gmii_phy_getflowcontrol() -> mii_phy_flowstatus(). From HITOSHI Osada. 2004-04-11 15:40:56 +00:00
thorpej 84694bb5fa Fetch negotiated flow control parameters. From HITOSHI Osada. 2004-04-10 18:47:56 +00:00
fvdl 44954feab8 Add a driver for the Intel IGPE1000 PHY as found on 82541 and 82547 chips.
Not yet enabled anywhere.
2003-10-28 00:15:40 +00:00