aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic.h
diff options
context:
space:
mode:
authorAmit Kumar Salecha <amit.salecha@qlogic.com>2010-02-01 00:24:59 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-02 18:55:46 -0500
commit7eb9855d68faabe0004ed18c2af1f0974d3c2c63 (patch)
tree750382ba8db5b390847ce05fc4f216d1d7d7d533 /drivers/net/qlcnic/qlcnic.h
parent897d3596e0dfc4c25963cff00f1159c79eaf38d3 (diff)
qlcnic: add interrupt diagnostic test
Interrupt test (offline) added in ethtool self test. Register a temporary interrupt handler and then send command to fw to raise an interrupt. Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> Signed-off-by: Amit Kumar Salecha <amit.salecha@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.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h
index 514e805f3ab3..a5a67e9b5e10 100644
--- a/drivers/net/qlcnic/qlcnic.h
+++ b/drivers/net/qlcnic/qlcnic.h
@@ -560,6 +560,8 @@ struct qlcnic_recv_context {
560/* 560/*
561 * Context state 561 * Context state
562 */ 562 */
563#define QLCHAL_VERSION 1
564
563#define QLCNIC_HOST_CTX_STATE_ACTIVE 2 565#define QLCNIC_HOST_CTX_STATE_ACTIVE 2
564 566
565/* 567/*
@@ -894,6 +896,8 @@ struct qlcnic_mac_req {
894#define __QLCNIC_RESETTING 2 896#define __QLCNIC_RESETTING 2
895#define __QLCNIC_START_FW 4 897#define __QLCNIC_START_FW 4
896 898
899#define QLCNIC_INTERRUPT_TEST 1
900
897struct qlcnic_adapter { 901struct qlcnic_adapter {
898 struct qlcnic_hardware_context ahw; 902 struct qlcnic_hardware_context ahw;
899 903
@@ -946,9 +950,10 @@ struct qlcnic_adapter {
946 u32 heartbit; 950 u32 heartbit;
947 951
948 u8 dev_state; 952 u8 dev_state;
953 u8 diag_test;
954 u8 diag_cnt;
949 u8 rsrd1; 955 u8 rsrd1;
950 u32 rsrd2; 956 u16 rsrd2;
951
952 957
953 u8 mac_addr[ETH_ALEN]; 958 u8 mac_addr[ETH_ALEN];
954 959
@@ -1064,6 +1069,10 @@ int qlcnic_get_mac_addr(struct qlcnic_adapter *adapter, u64 *mac);
1064 1069
1065/* Functions from qlcnic_main.c */ 1070/* Functions from qlcnic_main.c */
1066int qlcnic_reset_context(struct qlcnic_adapter *); 1071int qlcnic_reset_context(struct qlcnic_adapter *);
1072u32 qlcnic_issue_cmd(struct qlcnic_adapter *adapter,
1073 u32 pci_fn, u32 version, u32 arg1, u32 arg2, u32 arg3, u32 cmd);
1074void qlcnic_diag_free_res(struct net_device *netdev, int max_sds_rings);
1075int qlcnic_diag_alloc_res(struct net_device *netdev, int test);
1067 1076
1068/* 1077/*
1069 * QLOGIC Board information 1078 * QLOGIC Board information