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>
This commit is contained in:
Narender Kumar
2009-10-16 15:50:11 +00:00
committed by David S. Miller
parent 7cecdca133
commit caa2dd53bc
2 changed files with 52 additions and 1 deletions

View File

@@ -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