diff options
author | Anirban Chakraborty <anirban.chakraborty@qlogic.com> | 2011-06-22 04:52:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-24 10:17:07 +0200 |
commit | 9d6a6440fe30132e4d1f1aadd099345ced9178fb (patch) | |
tree | 7df4acf3f7442b43daff292dbbab2ad72f6e0b59 /drivers/net/qlcnic/qlcnic.h | |
parent | qlcnic: fix default operating state of interface (diff) | |
download | linux-9d6a6440fe30132e4d1f1aadd099345ced9178fb.tar.xz linux-9d6a6440fe30132e4d1f1aadd099345ced9178fb.zip |
qlcnic: Add support to enable/disable FW dump capability
In certain situations, it may be required to not enable FW dump
capability. Add support to turn off/on FW dump capability.
Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic.h')
-rw-r--r-- | drivers/net/qlcnic/qlcnic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h index 58d7616eaee2..0be84bdb55b8 100644 --- a/drivers/net/qlcnic/qlcnic.h +++ b/drivers/net/qlcnic/qlcnic.h @@ -429,6 +429,7 @@ struct qlcnic_dump_template_hdr { struct qlcnic_fw_dump { u8 clr; /* flag to indicate if dump is cleared */ + u8 enable; /* enable/disable dump */ u32 size; /* total size of the dump */ void *data; /* dump data area */ struct qlcnic_dump_template_hdr *tmpl_hdr; @@ -1320,6 +1321,8 @@ enum op_codes { #define QLCNIC_DUMP_MASK_DEF 0x7f #define QLCNIC_DUMP_MASK_MAX 0xff #define QLCNIC_FORCE_FW_DUMP_KEY 0xdeadfeed +#define QLCNIC_ENABLE_FW_DUMP 0xaddfeed +#define QLCNIC_DISABLE_FW_DUMP 0xbadfeed struct qlcnic_dump_operations { enum op_codes opcode; |