Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii No binary change:



details:   https://anonhg.NetBSD.org/src/rev/c7ddbc1068cd
branches:  trunk
changeset: 811347:c7ddbc1068cd
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Oct 26 02:31:31 2015 +0000

description:
No binary change:
 - s/IGPPHY/IGPHY/
 - Fix the definition of PLHR_VALID_CHANNEL_*
 - Fix the definition of MSE_CHANNEL_*
 - Add MII_IGPHY_POWER_MGMT

diffstat:

 sys/dev/mii/igphyreg.h |  41 ++++++++++++++++++++++++-----------------
 1 files changed, 24 insertions(+), 17 deletions(-)

diffs (70 lines):

diff -r 3f02e146ce9d -r c7ddbc1068cd sys/dev/mii/igphyreg.h
--- a/sys/dev/mii/igphyreg.h    Mon Oct 26 01:44:48 2015 +0000
+++ b/sys/dev/mii/igphyreg.h    Mon Oct 26 02:31:31 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: igphyreg.h,v 1.7 2015/10/23 08:40:34 msaitoh Exp $     */
+/*     $NetBSD: igphyreg.h,v 1.8 2015/10/26 02:31:31 msaitoh Exp $     */
 
 /*******************************************************************************
 
@@ -43,7 +43,7 @@
  */
 
 /* IGP01E1000 Specific Port Config Register - R/W */
-#define MII_IGPPHY_PORT_CONFIG         0x10 /* PHY specific config register */
+#define MII_IGPHY_PORT_CONFIG          0x10 /* PHY specific config register */
 #define PSCFR_AUTO_MDIX_PAR_DETECT     0x0010
 #define PSCFR_PRE_EN                   0x0020
 #define PSCFR_SMART_SPEED              0x0080
@@ -77,18 +77,18 @@
 
 /* IGP01E1000 Specific Port Link Health Register */
 #define MII_IGPHY_LINK_HEALTH          0x13
-#define PLHR_SS_DOWNGRADE              0x8000
-#define PLHR_GIG_SCRAMBLER_ERROR       0x4000
-#define PLHR_GIG_REM_RCVR_NOK          0x0800 /* LH */
-#define PLHR_IDLE_ERROR_CNT_OFLOW      0x0400 /* LH */
-#define PLHR_DATA_ERR_1                        0x0200 /* LH */
+#define PLHR_VALID_CHANNEL_A           0x0001
+#define PLHR_VALID_CHANNEL_B           0x0002
+#define PLHR_VALID_CHANNEL_C           0x0004
+#define PLHR_VALID_CHANNEL_D           0x0008
+#define PLHR_AUTONEG_ACTIVE            0x0010
+#define PLHR_AUTONEG_FAULT             0x0040
 #define PLHR_DATA_ERR_0                        0x0100
-#define PLHR_AUTONEG_FAULT             0x0010
-#define PLHR_AUTONEG_ACTIVE            0x0008
-#define PLHR_VALID_CHANNEL_D           0x0004
-#define PLHR_VALID_CHANNEL_C           0x0002
-#define PLHR_VALID_CHANNEL_B           0x0001
-#define PLHR_VALID_CHANNEL_A           0x0000
+#define PLHR_DATA_ERR_1                        0x0200 /* LH */
+#define PLHR_IDLE_ERROR_CNT_OFLOW      0x0400 /* LH */
+#define PLHR_GIG_REM_RCVR_NOK          0x0800 /* LH */
+#define PLHR_GIG_SCRAMBLER_ERROR       0x4000
+#define PLHR_SS_DOWNGRADE              0x8000
 
 /* IGP01E1000 GMII FIFO Register */
 #define MII_IGGMII_FIFO                        0x14
@@ -97,10 +97,17 @@
 
 /* IGP01E1000 Channel Quality Register */
 #define MII_IGPHY_CHANNEL_QUALITY      0x15
-#define MSE_CHANNEL_D                  0x000F
-#define MSE_CHANNEL_C                  0x00F0
-#define MSE_CHANNEL_B                  0x0F00
-#define MSE_CHANNEL_A                  0xF000
+#define MSE_CHANNEL_A                  0x000F
+#define MSE_CHANNEL_B                  0x00F0
+#define MSE_CHANNEL_C                  0x0F00
+#define MSE_CHANNEL_D                  0xF000
+
+/* IGP01E1000 Power Management */
+#define MII_IGPHY_POWER_MGMT           0x19
+#define PMR_SPD_EN                     0x0001
+#define PMR_D0_LPLU                    0x0002
+#define PMR_D3_LPLU                    0x0004
+#define PMR_DIS_1000                   0x0040
 
 #define MII_IGPHY_PAGE_SELECT          0x1F
 #define IGPHY_MAXREGADDR               0x1F



Home | Main Index | Thread Index | Old Index