freebsd-skq/sys/dev/mii
Marius Strobl fb58dc87ca - Don't add IFM_NONE when used in combination with pcn(4) as for MII
loopback to work PCnet chips additionally need to be placed into
  external loopback mode which pcn(4) doesn't do so far.
- In nsphy_service() just use if_dname instead of determining the name
  of the parent NIC via device_get_name(device_get_parent(sc->mii_dev)).
- Don't set MIIF_NOISOLATE, except for when used in combination with a
  NIC that wedges when isolating the PHYs, so nsphy(4) can be used in
  configurations with multiple PHYs.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia() (requires the MIIF_FORCEANEG
  added in sys/dev/mii/mii_physubr.c 1.26, sys/dev/mii/miivar.h 1.19).
- Implement a separate nsphy_reset(). There are two reasons for this:
  1) This PHY can take an inordinate amount of time to reset if media
     is attached; under fairly normal circumstances up to nearly one
     second. This is because it appears to go through an implicit auto-
     negotiation cycle as part of the reset.
  2) During reset and auto-negotiation, the BMCR will clear the reset
     bit before the process is complete. It will return 0 until the
     process is complete and it's safe to access the PHY again.

  This is the first of two changes required to make the combination of
  Am79c971 and DP83840A found on certain HP cards and on-board in IBM
  machines work.
- Fix some whitespace nits.

Based on:	NetBSD (except for the first and second item)
MFC after:	2 weeks
2006-11-28 01:01:02 +00:00
..
acphy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
acphyreg.h
amphy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
amphyreg.h
bmtphy.c Analogous to mii_add_media(), factor out the code for checking whether 2006-11-27 23:50:19 +00:00
bmtphyreg.h
brgphy.c Add PHY support for BCM5752. 2006-08-31 11:15:18 +00:00
brgphyreg.h
ciphy.c - Remove a dupe $FreeBSD$. 2006-11-28 00:43:38 +00:00
ciphyreg.h
e1000phy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
e1000phyreg.h
exphy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
gentbi.c Analogous to mii_add_media(), factor out the code for checking whether 2006-11-27 23:50:19 +00:00
inphy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
inphyreg.h
ip1000phy.c Add ip1000 PHY driver for IC Plus IP1000A integrated PHY. 2006-07-25 00:16:09 +00:00
ip1000phyreg.h Add ip1000 PHY driver for IC Plus IP1000A integrated PHY. 2006-07-25 00:16:09 +00:00
lxtphy.c - Don't set MIIF_NOISOLATE so lxtphy(4) can be used in configurations 2006-11-28 00:45:48 +00:00
lxtphyreg.h
mii_physubr.c Analogous to mii_add_media(), factor out the code for checking whether 2006-11-27 23:50:19 +00:00
mii.c - Introduce ifmedia_baudrate(), which returns correct baudrate of the 2006-02-14 12:10:03 +00:00
mii.h
miibus_if.m
miidevs Add Broadcom BCM5752 PHY id. 2006-08-31 11:13:51 +00:00
miivar.h - Add a MIIF_FORCEANEG flag which forces an auto-negotiation to always 2006-11-27 23:37:59 +00:00
mlphy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
nsgphy.c - Rely on mii_phy_add_media() setting mii_anegticks as appropriate. 2006-11-28 00:47:54 +00:00
nsgphyreg.h
nsphy.c - Don't add IFM_NONE when used in combination with pcn(4) as for MII 2006-11-28 01:01:02 +00:00
nsphyreg.h
pnaphy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
qsphy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
qsphyreg.h
rgephy.c Due to the poor PHY documentation from RealTek I can't sure but I 2006-08-12 01:38:49 +00:00
rgephyreg.h
rlphy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
ruephy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
ruephyreg.h
tdkphy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
tdkphyreg.h
tlphy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
tlphyreg.h
ukphy_subr.c If the PHY has 1000BASE-T capability, check to see if a 1000BASE-T speed 2006-05-19 03:51:42 +00:00
ukphy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
xmphy.c Replace hard-coded magic constants to system defined constants 2006-07-03 02:53:40 +00:00
xmphyreg.h