cvs commit: src/sys/dev/mii mii_physubr.c miivar.h

Marius Strobl marius at
Mon Nov 27 21:22:24 PST 2006

marius      2006-11-27 23:38:00 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/mii          mii_physubr.c miivar.h 
  - Add a MIIF_FORCEANEG flag which forces an auto-negotiation to always
    take place if IFM_AUTO is selected. This allows drivers like nsphy(4),
    which need to force writing the ANAR according to the BMSR, to take
    advantage of mii_phy_setmedia(). [1]
  - In mii_phy_reset() once the current media is set don't isolate the PHY
    corresponding to the instance of the currently selected media rather
    than unconditionally not isolating the PHY corresponding to instance 0.
    This saves a isolation-unisolation-cycle of the PHY corresponding to
    the currently selected media for the case were it isn't instance 0.
  - Fix some whitespace nits. [1]
  Obtained from:  NetBSD [1]
  MFC after:      2 weeks
  Revision  Changes    Path
  1.26      +10 -4     src/sys/dev/mii/mii_physubr.c
  1.19      +1 -0      src/sys/dev/mii/miivar.h

More information about the cvs-src mailing list