summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/miivar.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2006-11-27 23:37:59 +0000
committermarius <marius@FreeBSD.org>2006-11-27 23:37:59 +0000
commit08a258453383859edd0bbf92eb53a12b42997b6c (patch)
treeb5cec847884d828d30cc9b003440222d8efaa397 /sys/dev/mii/miivar.h
parentef00496038337374d5b4e46970df97b80d4efda4 (diff)
downloadFreeBSD-src-08a258453383859edd0bbf92eb53a12b42997b6c.zip
FreeBSD-src-08a258453383859edd0bbf92eb53a12b42997b6c.tar.gz
- 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
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 b9b7318..ae4e18a 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
OpenPOWER on IntegriCloud