summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/brgphyreg.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2001-09-25 16:41:56 +0000
committerwpaul <wpaul@FreeBSD.org>2001-09-25 16:41:56 +0000
commit9201e88ec6d71186dc34bbe2cf8f59d23edd39d8 (patch)
tree36f96d1229b45ca384f081ffa701d9572580cc5f /sys/dev/mii/brgphyreg.h
parent293d121c6bc633b0cbc60970add1c5e92d82d4ba (diff)
downloadFreeBSD-src-9201e88ec6d71186dc34bbe2cf8f59d23edd39d8.zip
FreeBSD-src-9201e88ec6d71186dc34bbe2cf8f59d23edd39d8.tar.gz
Add some definitions for the DSP programming registers in the BCM5400
and BCM5401 PHYs.
Diffstat (limited to 'sys/dev/mii/brgphyreg.h')
-rw-r--r--sys/dev/mii/brgphyreg.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/sys/dev/mii/brgphyreg.h b/sys/dev/mii/brgphyreg.h
index f86f2ce..dc2f350 100644
--- a/sys/dev/mii/brgphyreg.h
+++ b/sys/dev/mii/brgphyreg.h
@@ -158,6 +158,44 @@
#define BRGPHY_RXNOCNT_LOCAL 0xFF00 /* Local RX not OK counter */
#define BRGPHY_RXNOCNT_REMOTE 0x00FF /* Local RX not OK counter */
+#define BRGPHY_MII_DSP_RW_PORT 0x15 /* DSP coefficient r/w port */
+
+#define BGGPHY_MII_DSP_ADDR_REG 0x17 /* DSP coefficient addr register */
+
+#define BRGPHY_DSP_TAP_NUMBER_MASK 0x00
+#define BRGPHY_DSP_AGC_A 0x00
+#define BRGPHY_DSP_AGC_B 0x01
+#define BRGPHY_DSP_MSE_PAIR_STATUS 0x02
+#define BRGPHY_DSP_SOFT_DECISION 0x03
+#define BRGPHY_DSP_PHASE_REG 0x04
+#define BRGPHY_DSP_SKEW 0x05
+#define BRGPHY_DSP_POWER_SAVER_UPPER_BOUND 0x06
+#define BRGPHY_DSP_POWER_SAVER_LOWER_BOUND 0x07
+#define BRGPHY_DSP_LAST_ECHO 0x08
+#define BRGPHY_DSP_FREQUENCY 0x09
+#define BRGPHY_DSP_PLL_BANDWIDTH 0x0A
+#define BRGPHY_DSP_PLL_PHASE_OFFSET 0x0B
+
+#define BRGPHYDSP_FILTER_DCOFFSET 0x0C00
+#define BRGPHY_DSP_FILTER_FEXT3 0x0B00
+#define BRGPHY_DSP_FILTER_FEXT2 0x0A00
+#define BRGPHY_DSP_FILTER_FEXT1 0x0900
+#define BRGPHY_DSP_FILTER_FEXT0 0x0800
+#define BRGPHY_DSP_FILTER_NEXT3 0x0700
+#define BRGPHY_DSP_FILTER_NEXT2 0x0600
+#define BRGPHY_DSP_FILTER_NEXT1 0x0500
+#define BRGPHY_DSP_FILTER_NEXT0 0x0400
+#define BRGPHY_DSP_FILTER_ECHO 0x0300
+#define BRGPHY_DSP_FILTER_DFE 0x0200
+#define BRGPHY_DSP_FILTER_FFE 0x0100
+
+#define BRGPHY_DSP_CONTROL_ALL_FILTERS 0x1000
+
+#define BRGPHY_DSP_SEL_CH_0 0x0000
+#define BRGPHY_DSP_SEL_CH_1 0x2000
+#define BRGPHY_DSP_SEL_CH_2 0x4000
+#define BRGPHY_DSP_SEL_CH_3 0x6000
+
#define BRGPHY_MII_AUXCTL 0x18 /* AUX control */
#define BRGPHY_AUXCTL_LOW_SQ 0x8000 /* Low squelch */
#define BRGPHY_AUXCTL_LONG_PKT 0x4000 /* RX long packets */
OpenPOWER on IntegriCloud