summaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_cmds.h
diff options
context:
space:
mode:
authorsarveshwarb <sarveshwarb@serverengines.com>2009-08-05 13:05:24 -0700
committerDavid S. Miller <davem@davemloft.net>2009-08-05 13:05:24 -0700
commit14074eab8dcaa7f66d8f52612b2dcec51222bb5f (patch)
treeb385d8edcc1c6ce44ac7c58552cb0de7839ceb46 /drivers/net/benet/be_cmds.h
parent0d6038ee76f2e06b79d0465807f67e86bf4025de (diff)
downloadblackbird-op-linux-14074eab8dcaa7f66d8f52612b2dcec51222bb5f.tar.gz
blackbird-op-linux-14074eab8dcaa7f66d8f52612b2dcec51222bb5f.zip
be2net: Patch to perform function reset at initialization
This patch is a bug fix to avoid system going into a bad state when driver is loaded in context of kdump kernel. The patch fixes the issue by performing a soft reset of pci function at probe time. Signed-off-by: sarveshwarb <sarveshwarb@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_cmds.h')
-rw-r--r--drivers/net/benet/be_cmds.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/benet/be_cmds.h b/drivers/net/benet/be_cmds.h
index 5c5de3540d20..70618064ae15 100644
--- a/drivers/net/benet/be_cmds.h
+++ b/drivers/net/benet/be_cmds.h
@@ -135,6 +135,7 @@ struct be_mcc_mailbox {
#define OPCODE_COMMON_QUERY_FIRMWARE_CONFIG 58
#define OPCODE_COMMON_NTWK_PMAC_ADD 59
#define OPCODE_COMMON_NTWK_PMAC_DEL 60
+#define OPCODE_COMMON_FUNCTION_RESET 61
#define OPCODE_ETH_ACPI_CONFIG 2
#define OPCODE_ETH_PROMISCUOUS 3
@@ -744,4 +745,5 @@ extern int be_cmd_set_flow_control(struct be_adapter *adapter,
extern int be_cmd_get_flow_control(struct be_adapter *adapter,
u32 *tx_fc, u32 *rx_fc);
extern int be_cmd_query_fw_cfg(struct be_adapter *adapter, u32 *port_num);
+extern int be_cmd_reset_function(struct be_adapter *adapter);
extern void be_process_mcc(struct be_adapter *adapter);
OpenPOWER on IntegriCloud