diff options
author | yongari <yongari@FreeBSD.org> | 2009-09-28 21:03:28 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2009-09-28 21:03:28 +0000 |
commit | 7139323b97db2431031665257e19c2277ac858b2 (patch) | |
tree | dd58f27c1c39d788de3e84609f0ac3c360da8886 /sys/dev/mii/e1000phyreg.h | |
parent | ac4cfae59ca38cdb6e04d4ff7a214f405f17430e (diff) | |
download | FreeBSD-src-7139323b97db2431031665257e19c2277ac858b2.zip FreeBSD-src-7139323b97db2431031665257e19c2277ac858b2.tar.gz |
Add hack to pass controller specific information to phy driver.
Unlike most other PHYs there is no easy way to know which media
type the PHY supports on Marvell PHYs. MIIF_HAVEFIBER flags is now
passed via bus-specific instance variable of a device. While I'm
here add 88E1112 specific work around to set SIGDET polarity low.
Many thanks "Eugene Perevyazko <john <> dnepro dot net>" who kindly
gave remote access to system with DGE-560SX.
Diffstat (limited to 'sys/dev/mii/e1000phyreg.h')
-rw-r--r-- | sys/dev/mii/e1000phyreg.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/mii/e1000phyreg.h b/sys/dev/mii/e1000phyreg.h index 41b9c09..6894760 100644 --- a/sys/dev/mii/e1000phyreg.h +++ b/sys/dev/mii/e1000phyreg.h @@ -248,6 +248,11 @@ #define E1000_SCR_EN_DETECT_MASK 0x0300 +/* 88E1112 page 1 fiber specific control */ +#define E1000_SCR_FIB_TX_DIS 0x0008 +#define E1000_SCR_FIB_SIGDET_POLARITY 0x0200 +#define E1000_SCR_FIB_FORCE_LINK 0x0400 + /* 88E1112 page 2 */ #define E1000_SCR_MODE_MASK 0x0380 #define E1000_SCR_MODE_AUTO 0x0180 |