aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-09-15 04:59:55 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-15 17:16:12 -0400
commitdc6d074457f1551f9357f773a4eda09a3d5ef150 (patch)
tree568214d55023728b219dde4077be35ea1ed562ac /drivers/net/tg3.h
parentf0392d24485e4c144d2741a5424f069b8b5f30e7 (diff)
tg3: Don't send APE events for NCSI firmware
NCSI firmware does not accept APE events. It relies on a "driver state" location in shared memory to tell it what the driver's current state is. This patch pivots the code to use the new driver state scheme. Reviewed-by: Benjamin Li <benli@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index 783cd77b6165..5cd0653d6caf 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -2180,7 +2180,7 @@
2180#define TG3_APE_HOST_SEG_SIG 0x4200 2180#define TG3_APE_HOST_SEG_SIG 0x4200
2181#define APE_HOST_SEG_SIG_MAGIC 0x484f5354 2181#define APE_HOST_SEG_SIG_MAGIC 0x484f5354
2182#define TG3_APE_HOST_SEG_LEN 0x4204 2182#define TG3_APE_HOST_SEG_LEN 0x4204
2183#define APE_HOST_SEG_LEN_MAGIC 0x0000001c 2183#define APE_HOST_SEG_LEN_MAGIC 0x00000020
2184#define TG3_APE_HOST_INIT_COUNT 0x4208 2184#define TG3_APE_HOST_INIT_COUNT 0x4208
2185#define TG3_APE_HOST_DRIVER_ID 0x420c 2185#define TG3_APE_HOST_DRIVER_ID 0x420c
2186#define APE_HOST_DRIVER_ID_LINUX 0xf0000000 2186#define APE_HOST_DRIVER_ID_LINUX 0xf0000000
@@ -2192,6 +2192,12 @@
2192#define APE_HOST_HEARTBEAT_INT_DISABLE 0 2192#define APE_HOST_HEARTBEAT_INT_DISABLE 0
2193#define APE_HOST_HEARTBEAT_INT_5SEC 5000 2193#define APE_HOST_HEARTBEAT_INT_5SEC 5000
2194#define TG3_APE_HOST_HEARTBEAT_COUNT 0x4218 2194#define TG3_APE_HOST_HEARTBEAT_COUNT 0x4218
2195#define TG3_APE_HOST_DRVR_STATE 0x421c
2196#define TG3_APE_HOST_DRVR_STATE_START 0x00000001
2197#define TG3_APE_HOST_DRVR_STATE_UNLOAD 0x00000002
2198#define TG3_APE_HOST_DRVR_STATE_WOL 0x00000003
2199#define TG3_APE_HOST_WOL_SPEED 0x4224
2200#define TG3_APE_HOST_WOL_SPEED_AUTO 0x00008000
2195 2201
2196#define TG3_APE_EVENT_STATUS 0x4300 2202#define TG3_APE_EVENT_STATUS 0x4300
2197 2203
@@ -2854,6 +2860,7 @@ struct tg3 {
2854#define TG3_FLG3_USE_JUMBO_BDFLAG 0x00400000 2860#define TG3_FLG3_USE_JUMBO_BDFLAG 0x00400000
2855#define TG3_FLG3_L1PLLPD_EN 0x00800000 2861#define TG3_FLG3_L1PLLPD_EN 0x00800000
2856#define TG3_FLG3_5717_PLUS 0x01000000 2862#define TG3_FLG3_5717_PLUS 0x01000000
2863#define TG3_FLG3_APE_HAS_NCSI 0x02000000
2857 2864
2858 struct timer_list timer; 2865 struct timer_list timer;
2859 u16 timer_counter; 2866 u16 timer_counter;