aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mii/rgephyreg.h
diff options
context:
space:
mode:
authorPyun YongHyeon <yongari@FreeBSD.org>2007-10-29 02:17:07 +0000
committerPyun YongHyeon <yongari@FreeBSD.org>2007-10-29 02:17:07 +0000
commit648bfbe6a72ad45d88d0f89f94f5d2b1b663013f (patch)
tree0b58e636a9bcc36cd768c63d3cd9b7ecf68927ce /sys/dev/mii/rgephyreg.h
parent37fd5f0fed612d6e5b53876b938abdffae575bf2 (diff)
downloadsrc-648bfbe6a72ad45d88d0f89f94f5d2b1b663013f.tar.gz
src-648bfbe6a72ad45d88d0f89f94f5d2b1b663013f.zip
Add support for RealTek RTL8211B(L) PHY. It's based on the patch
made by Michael Eisele and the patch was slightly modified by me. With this change several NVIDIA ethernet controllers(e.g. MCP61) works. RTL8211B(L) is RealTek's new gigabit PHY. The PHY has several features including crossover correction, polarity correction as well as supporting triple speed(10/100/1000bps). Data transfer between MAC and PHY is via RGMII for 1000baseT, MII for 10baseT/100baseTX. Unfortunately, RealTek used the same model number for RTL8211B(L) PHY so there is no way to discriminate between RTL8211B(L) and its predecessors. ATM RTL8211B uses revision number 2 so checking the revision number seems to be only way to identify it. Obtained from: Michael Eisele [1] Tested by: clemens fischer < ino-qc AT spotteswoode DOT de DOT eu DOT org >
Notes
Notes: svn path=/head/; revision=173129
Diffstat (limited to 'sys/dev/mii/rgephyreg.h')
-rw-r--r--sys/dev/mii/rgephyreg.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/dev/mii/rgephyreg.h b/sys/dev/mii/rgephyreg.h
index 0ce44dfcd9ac..fd0d32cb3152 100644
--- a/sys/dev/mii/rgephyreg.h
+++ b/sys/dev/mii/rgephyreg.h
@@ -137,6 +137,17 @@
#define RGEPHY_EXTSTS_T_FD_CAP 0x2000 /* 1000base-T FD capable */
#define RGEPHY_EXTSTS_T_HD_CAP 0x1000 /* 1000base-T HD capable */
-
+/* RTL8211B(L) */
+#define RGEPHY_MII_SSR 0x11 /* PHY Specific status register */
+#define RGEPHY_SSR_S1000 0x8000 /* 1000Mbps */
+#define RGEPHY_SSR_S100 0x4000 /* 100Mbps */
+#define RGEPHY_SSR_S10 0x0000 /* 10Mbps */
+#define RGEPHY_SSR_SPD_MASK 0xc000
+#define RGEPHY_SSR_FDX 0x2000 /* full duplex */
+#define RGEPHY_SSR_PAGE_RECEIVED 0x1000 /* new page received */
+#define RGEPHY_SSR_SPD_DPLX_RESOLVED 0x0800 /* speed/duplex resolved */
+#define RGEPHY_SSR_LINK 0x0400 /* link up */
+#define RGEPHY_SSR_MDI_XOVER 0x0040 /* MDI crossover */
+#define RGEPHY_SSR_JABBER 0x0001 /* Jabber */
#endif /* _DEV_RGEPHY_MIIREG_H_ */