aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_hdr.h
diff options
context:
space:
mode:
authorSony Chacko <sony.chacko@qlogic.com>2010-08-19 05:08:24 +0000
committerDavid S. Miller <davem@davemloft.net>2010-08-19 16:52:38 -0700
commit251b036a22f530aff26cf70f5cdb0cf64a072e46 (patch)
tree1e4aba3bedbd87c0ff1f9e0365d6888f41bc0a14 /drivers/net/qlcnic/qlcnic_hdr.h
parent39895e07ca8ce13d8b38d00bf66236b93907c027 (diff)
downloadkernel_samsung_tuna-251b036a22f530aff26cf70f5cdb0cf64a072e46.zip
kernel_samsung_tuna-251b036a22f530aff26cf70f5cdb0cf64a072e46.tar.gz
kernel_samsung_tuna-251b036a22f530aff26cf70f5cdb0cf64a072e46.tar.bz2
qlcnic: replace magic numbers with defines
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_hdr.h')
-rw-r--r--drivers/net/qlcnic/qlcnic_hdr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic_hdr.h b/drivers/net/qlcnic/qlcnic_hdr.h
index bd346d9..39db4df 100644
--- a/drivers/net/qlcnic/qlcnic_hdr.h
+++ b/drivers/net/qlcnic/qlcnic_hdr.h
@@ -745,6 +745,10 @@ enum {
#define FW_POLL_DELAY (1 * HZ)
#define FW_FAIL_THRESH 2
+#define QLCNIC_RESET_TIMEOUT_SECS 10
+#define QLCNIC_INIT_TIMEOUT_SECS 30
+
+
#define ISR_MSI_INT_TRIGGER(FUNC) (QLCNIC_PCIX_PS_REG(PCIX_MSI_F(FUNC)))
#define ISR_LEGACY_INT_TRIGGERED(VAL) (((VAL) & 0x300) == 0x200)