aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mii/miivar.h
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2006-11-27 23:37:59 +0000
committerMarius Strobl <marius@FreeBSD.org>2006-11-27 23:37:59 +0000
commit0c3e319244b4e1707176da20372c51841b6f17fc (patch)
treeb5cec847884d828d30cc9b003440222d8efaa397 /sys/dev/mii/miivar.h
parentd4875805d7a5e76cf2559425660603cb1df0dbc7 (diff)
- 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
Notes
Notes: svn path=/head/; revision=164702
Diffstat (limited to 'sys/dev/mii/miivar.h')
-rw-r--r--sys/dev/mii/miivar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h
index b9b7318c9b5e..ae4e18a49677 100644
--- a/sys/dev/mii/miivar.h
+++ b/sys/dev/mii/miivar.h
@@ -138,6 +138,7 @@ typedef struct mii_softc mii_softc_t;
#define MIIF_IS_1000X 0x0080 /* is a 1000BASE-X device */
#define MIIF_DOPAUSE 0x0100 /* advertise PAUSE capability */
#define MIIF_IS_HPNA 0x0200 /* is a HomePNA device */
+#define MIIF_FORCEANEG 0x0400 /* force auto-negotiation */
/* Default mii_anegticks values */
#define MII_ANEGTICKS 5