Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/mii - PSCR_TP_LOOPBACK is not bit 0 but bit 4. No bi...



details:   https://anonhg.NetBSD.org/src/rev/3cb31058a2f5
branches:  trunk
changeset: 341181:3cb31058a2f5
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Oct 23 08:40:34 2015 +0000

description:
- PSCR_TP_LOOPBACK is not bit 0 but bit 4. No binary change because
  this macro is not used.
- Rename MII_IGPPHY_PORT_CONFIG's bit definitions from PSCR_ to PSCFR_
  to avoid confusion. PSCR_ is for MII_IGPHY_PORT_CTRL.

diffstat:

 sys/dev/mii/igphyreg.h |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (40 lines):

diff -r 1a6d03931fb3 -r 3cb31058a2f5 sys/dev/mii/igphyreg.h
--- a/sys/dev/mii/igphyreg.h    Fri Oct 23 08:40:08 2015 +0000
+++ b/sys/dev/mii/igphyreg.h    Fri Oct 23 08:40:34 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: igphyreg.h,v 1.6 2010/03/07 09:05:19 msaitoh Exp $     */
+/*     $NetBSD: igphyreg.h,v 1.7 2015/10/23 08:40:34 msaitoh Exp $     */
 
 /*******************************************************************************
 
@@ -42,14 +42,14 @@
  * IGP01E1000 Specific Registers
  */
 
-/* IGP01E1000 Specific Port Control Register - R/W */
+/* IGP01E1000 Specific Port Config Register - R/W */
 #define MII_IGPPHY_PORT_CONFIG         0x10 /* PHY specific config register */
-#define PSCR_AUTO_MDIX_PAR_DETECT      0x0010
-#define PSCR_PRE_EN                    0x0020
-#define PSCR_SMART_SPEED               0x0080
-#define PSCR_DISABLE_TPLOOPBACK                0x0100
-#define PSCR_DISABLE_JABBER            0x0400
-#define PSCR_DISABLE_TRANSMIT          0x2000
+#define PSCFR_AUTO_MDIX_PAR_DETECT     0x0010
+#define PSCFR_PRE_EN                   0x0020
+#define PSCFR_SMART_SPEED              0x0080
+#define PSCFR_DISABLE_TPLOOPBACK       0x0100
+#define PSCFR_DISABLE_JABBER           0x0400
+#define PSCFR_DISABLE_TRANSMIT         0x2000
 
 /* IGP01E1000 Specific Port Status Register - R/O */
 #define MII_IGPHY_PORT_STATUS          0x11
@@ -68,7 +68,7 @@
 
 /* IGP01E1000 Specific Port Control Register - R/W */
 #define MII_IGPHY_PORT_CTRL            0x12
-#define PSCR_TP_LOOPBACK               0x0001
+#define PSCR_TP_LOOPBACK               0x0010
 #define PSCR_CORRECT_NC_SCMBLR         0x0200
 #define PSCR_TEN_CRS_SELECT            0x0400
 #define PSCR_FLIP_CHIP                 0x0800



Home | Main Index | Thread Index | Old Index