Module Name:    src
Committed By:   msaitoh
Date:           Fri May 20 01:51:36 UTC 2011

Modified Files:
        src/sys/dev/pci: if_wmreg.h if_wmvar.h

Log Message:
Add PCH2 support.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/pci/if_wmreg.h
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/pci/if_wmvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_wmreg.h
diff -u src/sys/dev/pci/if_wmreg.h:1.44 src/sys/dev/pci/if_wmreg.h:1.45
--- src/sys/dev/pci/if_wmreg.h:1.44	Wed Jul 14 00:11:06 2010
+++ src/sys/dev/pci/if_wmreg.h	Fri May 20 01:51:36 2011
@@ -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
 

Index: src/sys/dev/pci/if_wmvar.h
diff -u src/sys/dev/pci/if_wmvar.h:1.11 src/sys/dev/pci/if_wmvar.h:1.12
--- src/sys/dev/pci/if_wmvar.h:1.11	Sun Mar  7 09:05:19 2010
+++ src/sys/dev/pci/if_wmvar.h	Fri May 20 01:51:36 2011
@@ -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;
 
 

Reply via email to