Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add PCH2 support.



details:   https://anonhg.NetBSD.org/src/rev/31848eef640d
branches:  trunk
changeset: 765130:31848eef640d
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri May 20 01:51:36 2011 +0000

description:
Add PCH2 support.

diffstat:

 sys/dev/pci/if_wmreg.h |  9 +++++++--
 sys/dev/pci/if_wmvar.h |  6 ++++--
 2 files changed, 11 insertions(+), 4 deletions(-)

diffs (72 lines):

diff -r 7b5d194b249c -r 31848eef640d sys/dev/pci/if_wmreg.h
--- a/sys/dev/pci/if_wmreg.h    Fri May 20 01:29:30 2011 +0000
+++ b/sys/dev/pci/if_wmreg.h    Fri May 20 01:51:36 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wmreg.h,v 1.44 2010/07/14 00:11:06 msaitoh Exp $    */
+/*     $NetBSD: if_wmreg.h,v 1.45 2011/05/20 01:51:36 msaitoh Exp $    */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -192,6 +192,8 @@
 #define CTRL_D_UD_POL  (1U << 14)      /* Defined polarity of Dock/Undock indication in SDP[0] */
 #define CTRL_F_PHY_R   (1U << 15)      /* Reset both PHY ports, through PHYRST_N pin */
 #define CTRL_EXT_LINK_EN (1U << 16)    /* enable link status from external LINK_0 and LINK_1 pins */
+#define CTRL_LANPHYPC_OVERRIDE (1U << 16) /* SW control of LANPHYPC */
+#define CTRL_LANPHYPC_VALUE (1U << 17) /* SW value of LANPHYPC */
 #define        CTRL_SWDPINS_SHIFT      18
 #define        CTRL_SWDPINS_MASK       0x0f
 #define        CTRL_SWDPIN(x)          (1U << (CTRL_SWDPINS_SHIFT + (x)))
@@ -675,6 +677,7 @@
 #define        PBA_20K         0x0014
 #define        PBA_22K         0x0016
 #define        PBA_24K         0x0018
+#define        PBA_26K         0x001a
 #define        PBA_30K         0x001e
 #define        PBA_32K         0x0020
 #define        PBA_35K         0x0023
@@ -856,7 +859,8 @@
 #define        FWSM_MODE_SHIFT         0x1
 #define        MNG_ICH_IAMT_MODE       0x2     /* PT mode? */
 #define        MNG_IAMT_MODE           0x3
-#define FWSM_RSPCIPHY  0x00000040      /* Reset PHY on PCI reset */
+#define FWSM_RSPCIPHY          0x00000040      /* Reset PHY on PCI reset */
+#define FWSM_FW_VALID          0x00008000 /* FW established a valid mode */
 
 #define        WMREG_SW_FW_SYNC 0x5b5c /* software-firmware semaphore */
 #define        SWFW_EEP_SM             0x0001 /* eeprom access */
@@ -878,6 +882,7 @@
 #define EXTCNFCTR_D_UD_OWNER           0x00000010
 #define EXTCNFCTR_MDIO_SW_OWNERSHIP    0x00000020
 #define EXTCNFCTR_MDIO_HW_OWNERSHIP    0x00000040
+#define EXTCNFCTR_GATE_PHY_CFG         0x00000080
 #define EXTCNFCTR_EXT_CNF_POINTER      0x0FFF0000
 #define E1000_EXTCNF_CTRL_SWFLAG       EXTCNFCTR_MDIO_SW_OWNERSHIP
 
diff -r 7b5d194b249c -r 31848eef640d sys/dev/pci/if_wmvar.h
--- a/sys/dev/pci/if_wmvar.h    Fri May 20 01:29:30 2011 +0000
+++ b/sys/dev/pci/if_wmvar.h    Fri May 20 01:51:36 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wmvar.h,v 1.11 2010/03/07 09:05:19 msaitoh Exp $    */
+/*     $NetBSD: if_wmvar.h,v 1.12 2011/05/20 01:51:36 msaitoh Exp $    */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -123,6 +123,7 @@
        WM_T_ICH9,                      /* ICH9 LAN */
        WM_T_ICH10,                     /* ICH10 LAN */
        WM_T_PCH,                       /* PCH LAN */
+       WM_T_PCH2,                      /* PCH2 LAN */
 } wm_chip_type;
 
 typedef enum {
@@ -135,8 +136,9 @@
        WMPHY_IGP_3,
        WMPHY_IFE,
        WMPHY_BM,
+       WMPHY_82577,
        WMPHY_82578,
-       WMPHY_82577
+       WMPHY_82579
 } wm_phy_type;
 
 



Home | Main Index | Thread Index | Old Index