diff options
author | James Smart <James.Smart@Emulex.Com> | 2007-10-27 13:37:05 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-11 19:22:31 -0500 |
commit | 57127f157298ea2dacbbc878a3c5d2a5daca772c (patch) | |
tree | 2536d995c36e068576a690b33cd2029f0749ddbe /drivers/scsi/lpfc/lpfc.h | |
parent | d1a357fcc8348d325d151f6fe0ea54e317652457 (diff) |
[SCSI] lpfc 8.2.3 : Added support for ASICs that report temperature
Added support for ASICs that report temperature. Temperature notices are
reported as events and logged. Temperature can be read via sysfs.
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc.h b/drivers/scsi/lpfc/lpfc.h index ba3ecab9baf3..c1343fb2fcf4 100644 --- a/drivers/scsi/lpfc/lpfc.h +++ b/drivers/scsi/lpfc/lpfc.h | |||
@@ -569,6 +569,7 @@ struct lpfc_hba { | |||
569 | atomic_t slow_ring_trc_cnt; | 569 | atomic_t slow_ring_trc_cnt; |
570 | #endif | 570 | #endif |
571 | 571 | ||
572 | uint8_t temp_sensor_support; | ||
572 | /* Fields used for heart beat. */ | 573 | /* Fields used for heart beat. */ |
573 | unsigned long last_completion_time; | 574 | unsigned long last_completion_time; |
574 | struct timer_list hb_tmofunc; | 575 | struct timer_list hb_tmofunc; |
@@ -598,5 +599,15 @@ lpfc_is_link_up(struct lpfc_hba *phba) | |||
598 | phba->link_state == LPFC_HBA_READY; | 599 | phba->link_state == LPFC_HBA_READY; |
599 | } | 600 | } |
600 | 601 | ||
601 | #define FC_REG_DUMP_EVENT 0x10 /* Register for Dump events */ | 602 | #define FC_REG_DUMP_EVENT 0x10 /* Register for Dump events */ |
603 | #define FC_REG_TEMPERATURE_EVENT 0x20 /* Register for temperature | ||
604 | event */ | ||
602 | 605 | ||
606 | struct temp_event { | ||
607 | uint32_t event_type; | ||
608 | uint32_t event_code; | ||
609 | uint32_t data; | ||
610 | }; | ||
611 | #define LPFC_CRIT_TEMP 0x1 | ||
612 | #define LPFC_THRESHOLD_TEMP 0x2 | ||
613 | #define LPFC_NORMAL_TEMP 0x3 | ||