diff options
author | Amit Kumar Salecha <amit.salecha@qlogic.com> | 2010-04-21 22:51:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-22 18:28:28 -0400 |
commit | 6d2a47241f0f780819c111eaabaae0e86a937a40 (patch) | |
tree | 2012c4d382439d0c982e8debf7e623ad7ba8e4be /drivers/net/qlcnic/qlcnic_hdr.h | |
parent | f73dfc50f14d5c4c7f6243a87a65b78aef6f3a48 (diff) |
qlcnic: define macro for driver state
Defining macro to set and clear driver state.
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_hdr.h')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_hdr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic_hdr.h b/drivers/net/qlcnic/qlcnic_hdr.h index 8285a06eecdb..a984cd227582 100644 --- a/drivers/net/qlcnic/qlcnic_hdr.h +++ b/drivers/net/qlcnic/qlcnic_hdr.h | |||
@@ -707,6 +707,12 @@ enum { | |||
707 | #define QLCNIC_DEV_FAILED 0x6 | 707 | #define QLCNIC_DEV_FAILED 0x6 |
708 | #define QLCNIC_DEV_QUISCENT 0x7 | 708 | #define QLCNIC_DEV_QUISCENT 0x7 |
709 | 709 | ||
710 | #define QLC_DEV_SET_REF_CNT(VAL, FN) ((VAL) |= (1 << (FN * 4))) | ||
711 | #define QLC_DEV_CLR_REF_CNT(VAL, FN) ((VAL) &= ~(1 << (FN * 4))) | ||
712 | #define QLC_DEV_SET_RST_RDY(VAL, FN) ((VAL) |= (1 << (FN * 4))) | ||
713 | #define QLC_DEV_SET_QSCNT_RDY(VAL, FN) ((VAL) |= (2 << (FN * 4))) | ||
714 | #define QLC_DEV_CLR_RST_QSCNT(VAL, FN) ((VAL) &= ~(3 << (FN * 4))) | ||
715 | |||
710 | #define QLCNIC_RCODE_DRIVER_INFO 0x20000000 | 716 | #define QLCNIC_RCODE_DRIVER_INFO 0x20000000 |
711 | #define QLCNIC_RCODE_DRIVER_CAN_RELOAD 0x40000000 | 717 | #define QLCNIC_RCODE_DRIVER_CAN_RELOAD 0x40000000 |
712 | #define QLCNIC_RCODE_FATAL_ERROR 0x80000000 | 718 | #define QLCNIC_RCODE_FATAL_ERROR 0x80000000 |