aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2008-11-21 20:18:16 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-21 20:18:16 -0500
commit5e7dfd0fb94abed04f59481d1ce0cc06a892048a (patch)
tree9aa0223d967bfe42076887879596b4e778ac05c3 /drivers/net/tg3.h
parent52f4490c3b6dcb1e8dec7ff9f1c35f09bd7c136f (diff)
tg3: Prevent corruption at 10 / 100Mbps w CLKREQ
This patch disables CLKREQ at 10Mbps and 100Mbps to workaround a TX BD corruption issue. This problem only affects the 5784 and 5761 (and 57780 AX) ASIC revisions. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index 599e490cf62c..53684b9b83f9 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -2618,6 +2618,7 @@ struct tg3 {
2618#define TG3_FLG3_RGMII_STD_IBND_DISABLE 0x00000100 2618#define TG3_FLG3_RGMII_STD_IBND_DISABLE 0x00000100
2619#define TG3_FLG3_RGMII_EXT_IBND_RX_EN 0x00000200 2619#define TG3_FLG3_RGMII_EXT_IBND_RX_EN 0x00000200
2620#define TG3_FLG3_RGMII_EXT_IBND_TX_EN 0x00000400 2620#define TG3_FLG3_RGMII_EXT_IBND_TX_EN 0x00000400
2621#define TG3_FLG3_CLKREQ_BUG 0x00000800
2621 2622
2622 struct timer_list timer; 2623 struct timer_list timer;
2623 u16 timer_counter; 2624 u16 timer_counter;
@@ -2656,7 +2657,10 @@ struct tg3 {
2656 2657
2657 int pm_cap; 2658 int pm_cap;
2658 int msi_cap; 2659 int msi_cap;
2660 union {
2659 int pcix_cap; 2661 int pcix_cap;
2662 int pcie_cap;
2663 };
2660 2664
2661 struct mii_bus *mdio_bus; 2665 struct mii_bus *mdio_bus;
2662 int mdio_irq[PHY_MAX_ADDR]; 2666 int mdio_irq[PHY_MAX_ADDR];