Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii Add MII_100T2CR and MII_GTCR's test mode definit...
details: https://anonhg.NetBSD.org/src/rev/c82d533fb1e9
branches: trunk
changeset: 447562:c82d533fb1e9
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Jan 16 08:32:24 2019 +0000
description:
Add MII_100T2CR and MII_GTCR's test mode definitions.
diffstat:
sys/dev/mii/mii.h | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r f37de4600c0d -r c82d533fb1e9 sys/dev/mii/mii.h
--- a/sys/dev/mii/mii.h Wed Jan 16 07:32:13 2019 +0000
+++ b/sys/dev/mii/mii.h Wed Jan 16 08:32:24 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mii.h,v 1.24 2019/01/16 07:30:35 msaitoh Exp $ */
+/* $NetBSD: mii.h,v 1.25 2019/01/16 08:32:24 msaitoh Exp $ */
/*
* Copyright (c) 1997 Manuel Bouyer. All rights reserved.
@@ -229,6 +229,18 @@
#define GTCR_ADV_1000TFDX 0x0200 /* adv. 1000baseT FDX */
#define GTCR_ADV_1000THDX 0x0100 /* adv. 1000baseT HDX */
+#define T2CR_TEST_NORMAL (0 << 13) /* Normal Operation */
+#define T2CR_TEST_RX (1 << 13) /* RX test */
+#define T2CR_TEST_TX_WAVEFORM (1 << 14) /* Mode 1. TX waveform test */
+#define T2CR_TEST_TX_JITTER (2 << 14) /* Mode 2. TX jitter test */
+#define T2CR_TEST_TX_IDLE (3 << 14) /* Mode 3. TX idle test */
+
+#define GTCR_TEST_NORMAL (0 << 13) /* Normal Operation */
+#define GTCR_TEST_TX_WAVEFORM (1 << 13) /* Mode 1. TX waveform test */
+#define GTCR_TEST_TX_JITTER_M (2 << 13) /* Mode 2. TX jitter test (Master) */
+#define GTCR_TEST_TX_JITTER_S (3 << 13) /* Mode 3. TX jitter test (Slave) */
+#define GTCR_TEST_TX_DISTORTION (4 << 13) /* Mode 4. TX distortion test */
+
#define MII_GTSR 0x0a /*
* Master-Slave status register for
* 100BASE-T2 and 1000BASE-T.
Home |
Main Index |
Thread Index |
Old Index