diff options
author | Joe Carnuccio <joe.carnuccio@qlogic.com> | 2013-02-08 01:58:03 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-02-22 09:39:27 -0500 |
commit | fe52f6e121a8e6b66a608b79deb1c383e08aa32f (patch) | |
tree | 626270189331cabc1a86693ee3bacbfa15dbb28e /drivers/scsi/qla2xxx/qla_def.h | |
parent | 6c3943cdb87f68a9dbb6d586f40b84622e803574 (diff) |
[SCSI] qla2xxx: Integrate generic card temperature with mezz card temperature.
Give priority to I2C thermal.
Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 992e24081e65..c081882c566d 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h | |||
@@ -864,6 +864,7 @@ typedef struct { | |||
864 | #define MBX_0 BIT_0 | 864 | #define MBX_0 BIT_0 |
865 | 865 | ||
866 | #define RNID_TYPE_SET_VERSION 0x9 | 866 | #define RNID_TYPE_SET_VERSION 0x9 |
867 | #define RNID_TYPE_ASIC_TEMP 0xC | ||
867 | 868 | ||
868 | /* | 869 | /* |
869 | * Firmware state codes from get firmware state mailbox command | 870 | * Firmware state codes from get firmware state mailbox command |
@@ -2628,7 +2629,6 @@ struct qla_hw_data { | |||
2628 | uint32_t nic_core_hung:1; | 2629 | uint32_t nic_core_hung:1; |
2629 | 2630 | ||
2630 | uint32_t quiesce_owner:1; | 2631 | uint32_t quiesce_owner:1; |
2631 | uint32_t thermal_supported:1; | ||
2632 | uint32_t nic_core_reset_hdlr_active:1; | 2632 | uint32_t nic_core_reset_hdlr_active:1; |
2633 | uint32_t nic_core_reset_owner:1; | 2633 | uint32_t nic_core_reset_owner:1; |
2634 | uint32_t isp82xx_no_md_cap:1; | 2634 | uint32_t isp82xx_no_md_cap:1; |
@@ -3076,6 +3076,9 @@ struct qla_hw_data { | |||
3076 | int cfg_lun_q_depth; | 3076 | int cfg_lun_q_depth; |
3077 | 3077 | ||
3078 | struct qlt_hw_data tgt; | 3078 | struct qlt_hw_data tgt; |
3079 | uint16_t thermal_support; | ||
3080 | #define THERMAL_SUPPORT_I2C BIT_0 | ||
3081 | #define THERMAL_SUPPORT_ISP BIT_1 | ||
3079 | }; | 3082 | }; |
3080 | 3083 | ||
3081 | /* | 3084 | /* |