aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2008-11-03 19:51:11 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-03 19:51:11 -0500
commitb2aee1545dc3c05c8d5cf116de1e92907e98009b (patch)
treef86743af60dd384afd8d4c7ef811fb16fda3ce8b /drivers/net/tg3.h
parent63532394af307795ea637a283bd1fd057f5dfcea (diff)
tg3: Preserve DASH connectivity when WOL enabled
DASH firmware runs on the APE side of the chip, but it requires a few MAC to be programmed correctly. When WOL is enabled and management firmware is disabled, incoming packets are evaluated and discarded at the chip's rule processor. When management firmware is enabled, the hardware must be informed that there are agents further up the stack that still use the incoming frames. Normally management firmware will configure the MAC correctly on its own, but there can be cases where the setting could get clobbered by the driver. The first hunk of this patch preserves this setting. The second hunk of this patch wipes out the driver present signature of the APE memory space. By doing so, the DASH firmware can assume driver absent behavior. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index 66055a9d98c3..65b5ff45d201 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -327,6 +327,7 @@
327#define MAC_MODE_TDE_ENABLE 0x00200000 327#define MAC_MODE_TDE_ENABLE 0x00200000
328#define MAC_MODE_RDE_ENABLE 0x00400000 328#define MAC_MODE_RDE_ENABLE 0x00400000
329#define MAC_MODE_FHDE_ENABLE 0x00800000 329#define MAC_MODE_FHDE_ENABLE 0x00800000
330#define MAC_MODE_KEEP_FRAME_IN_WOL 0x01000000
330#define MAC_MODE_APE_RX_EN 0x08000000 331#define MAC_MODE_APE_RX_EN 0x08000000
331#define MAC_MODE_APE_TX_EN 0x10000000 332#define MAC_MODE_APE_TX_EN 0x10000000
332#define MAC_STATUS 0x00000404 333#define MAC_STATUS 0x00000404