diff options
author | Anirban Chakraborty <anirban.chakraborty@qlogic.com> | 2011-06-22 02:52:22 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-24 01:17:07 -0700 |
commit | 9d6a6440fe30132e4d1f1aadd099345ced9178fb (patch) | |
tree | 7df4acf3f7442b43daff292dbbab2ad72f6e0b59 /drivers/net/qlcnic/qlcnic.h | |
parent | c55ad8e56b983f03589b38b4504b5d1f41161ff8 (diff) | |
download | op-kernel-dev-9d6a6440fe30132e4d1f1aadd099345ced9178fb.zip op-kernel-dev-9d6a6440fe30132e4d1f1aadd099345ced9178fb.tar.gz |
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 58d7616..0be84bd 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; |