summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_rlreg.h
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2008-12-17 06:01:03 +0000
committeryongari <yongari@FreeBSD.org>2008-12-17 06:01:03 +0000
commit4b0736516edcee5ab7ef5051c75ecb3efcbbc476 (patch)
treeb064598332527235a3c97a3b8dbcfc93ff5de05a /sys/pci/if_rlreg.h
parent832d8c0e290d1c9e734619e1791bbc98d5462f24 (diff)
downloadFreeBSD-src-4b0736516edcee5ab7ef5051c75ecb3efcbbc476.zip
FreeBSD-src-4b0736516edcee5ab7ef5051c75ecb3efcbbc476.tar.gz
For RTL8168C SPIN2 controllers, make sure to take the controller
out of sleep mode prior to accessing to PHY. This should fix device attach failure seen on these controllers. Also enable the sleep mode when device is put into sleep state. PR: kern/123123, kern/123053
Diffstat (limited to 'sys/pci/if_rlreg.h')
-rw-r--r--sys/pci/if_rlreg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h
index d9df78c..ccea051 100644
--- a/sys/pci/if_rlreg.h
+++ b/sys/pci/if_rlreg.h
@@ -131,6 +131,8 @@
#define RL_TBI_ANAR 0x0068
#define RL_TBI_LPAR 0x006A
#define RL_GMEDIASTAT 0x006C /* 8 bits */
+#define RL_MACDBG 0x006D /* 8 bits, 8168C SPIN2 only */
+#define RL_GPIO 0x006E /* 8 bits, 8168C SPIN2 only */
#define RL_MAXRXPKTLEN 0x00DA /* 16 bits, chip multiplies by 8 */
#define RL_GTXSTART 0x0038 /* 8 bits */
@@ -888,6 +890,7 @@ struct rl_softc {
#define RL_FLAG_PHY8169 0x0400
#define RL_FLAG_PHY8110S 0x0800
#define RL_FLAG_WOLRXENB 0x1000
+#define RL_FLAG_MACSLEEP 0x2000
#define RL_FLAG_LINK 0x8000
};
OpenPOWER on IntegriCloud