aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic.h
diff options
context:
space:
mode:
authorNarender Kumar <narender.kumar@qlogic.com>2009-10-16 15:50:11 +0000
committerDavid S. Miller <davem@davemloft.net>2009-10-17 23:44:46 -0700
commitcaa2dd53bc2f9c44938f2f261ebe15e2f26cc51e (patch)
tree6fade4ac91dcd549acfec39891dc7bc57f0a6341 /drivers/net/netxen/netxen_nic.h
parent7cecdca133ea9791adce21819b9e9eed79045f23 (diff)
downloadkernel_samsung_tuna-caa2dd53bc2f9c44938f2f261ebe15e2f26cc51e.zip
kernel_samsung_tuna-caa2dd53bc2f9c44938f2f261ebe15e2f26cc51e.tar.gz
kernel_samsung_tuna-caa2dd53bc2f9c44938f2f261ebe15e2f26cc51e.tar.bz2
netxen: sysfs control for auto firmware recovery
Firmware hang detection and recovery (reset) need to be disabled for diagnostic tools, which can run some disruptive tests. This adds a driver level control to turn off this feature by diag tools. Signed-off-by: Narender Kumar <narender.kumar@qlogic.com> Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r--drivers/net/netxen/netxen_nic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h
index db28f8a..fa7511e 100644
--- a/drivers/net/netxen/netxen_nic.h
+++ b/drivers/net/netxen/netxen_nic.h
@@ -1044,6 +1044,9 @@ typedef struct {
#define LINKEVENT_LINKSPEED_MBPS 0
#define LINKEVENT_LINKSPEED_ENCODED 1
+#define AUTO_FW_RESET_ENABLED 0xEF10AF12
+#define AUTO_FW_RESET_DISABLED 0xDCBAAF12
+
/* firmware response header:
* 63:58 - message type
* 57:56 - owner