aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2009-08-25 06:06:01 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-26 18:47:45 -0400
commit521e6b90dd3f0392062845d7ef13e6e41bb99d8a (patch)
treecf7405a1a6a3b3b247c9c3c2c24372779c7faea6 /drivers/net/tg3.h
parentc46b59b241ec52ffaf92ece8d8ab726621d580fb (diff)
tg3: Fix 57780 asic rev PCIe link receiver errors
This patch fixes some PCIe link receiver errors by decreasing the internal electrical idle timeout. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Reviewed-by: Benjamin Li <benli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index b3347c41a1a..c613cbb40c2 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -214,9 +214,11 @@
214#define DUAL_MAC_CTRL_ID 0x00000004 214#define DUAL_MAC_CTRL_ID 0x00000004
215#define TG3PCI_PRODID_ASICREV 0x000000bc 215#define TG3PCI_PRODID_ASICREV 0x000000bc
216#define PROD_ID_ASIC_REV_MASK 0x0fffffff 216#define PROD_ID_ASIC_REV_MASK 0x0fffffff
217/* 0xc0 --> 0x100 unused */ 217/* 0xc0 --> 0x110 unused */
218 218
219/* 0x100 --> 0x200 unused */ 219#define TG3_CORR_ERR_STAT 0x00000110
220#define TG3_CORR_ERR_STAT_CLEAR 0xffffffff
221/* 0x114 --> 0x200 unused */
220 222
221/* Mailbox registers */ 223/* Mailbox registers */
222#define MAILBOX_INTERRUPT_0 0x00000200 /* 64-bit */ 224#define MAILBOX_INTERRUPT_0 0x00000200 /* 64-bit */
@@ -1696,11 +1698,18 @@
1696#define PCIE_TRANSACTION_CFG 0x00007c04 1698#define PCIE_TRANSACTION_CFG 0x00007c04
1697#define PCIE_TRANS_CFG_1SHOT_MSI 0x20000000 1699#define PCIE_TRANS_CFG_1SHOT_MSI 0x20000000
1698#define PCIE_TRANS_CFG_LOM 0x00000020 1700#define PCIE_TRANS_CFG_LOM 0x00000020
1701/* 0x7c08 --> 0x7d28 unused */
1699 1702
1700#define PCIE_PWR_MGMT_THRESH 0x00007d28 1703#define PCIE_PWR_MGMT_THRESH 0x00007d28
1701#define PCIE_PWR_MGMT_L1_THRESH_MSK 0x0000ff00 1704#define PCIE_PWR_MGMT_L1_THRESH_MSK 0x0000ff00
1702#define PCIE_PWR_MGMT_L1_THRESH_4MS 0x0000ff00 1705#define PCIE_PWR_MGMT_L1_THRESH_4MS 0x0000ff00
1703#define PCIE_PWR_MGMT_EXT_ASPM_TMR_EN 0x01000000 1706#define PCIE_PWR_MGMT_EXT_ASPM_TMR_EN 0x01000000
1707/* 0x7d2c --> 0x7e70 unused */
1708
1709#define TG3_PCIE_EIDLE_DELAY 0x00007e70
1710#define TG3_PCIE_EIDLE_DELAY_MASK 0x0000001f
1711#define TG3_PCIE_EIDLE_DELAY_13_CLKS 0x0000000c
1712/* 0x7e74 --> 0x8000 unused */
1704 1713
1705 1714
1706/* OTP bit definitions */ 1715/* OTP bit definitions */