diff options
Diffstat (limited to 'include/scsi/libsas.h')
-rw-r--r-- | include/scsi/libsas.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index ee1b25299dd6..de8f043475c2 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h | |||
@@ -75,6 +75,7 @@ enum phy_event { | |||
75 | PHYE_OOB_ERROR, | 75 | PHYE_OOB_ERROR, |
76 | PHYE_SPINUP_HOLD, /* hot plug SATA, no COMWAKE sent */ | 76 | PHYE_SPINUP_HOLD, /* hot plug SATA, no COMWAKE sent */ |
77 | PHYE_RESUME_TIMEOUT, | 77 | PHYE_RESUME_TIMEOUT, |
78 | PHYE_SHUTDOWN, | ||
78 | PHY_NUM_EVENTS, | 79 | PHY_NUM_EVENTS, |
79 | }; | 80 | }; |
80 | 81 | ||
@@ -311,12 +312,15 @@ static inline void INIT_SAS_EVENT(struct asd_sas_event *ev, | |||
311 | ev->event = event; | 312 | ev->event = event; |
312 | } | 313 | } |
313 | 314 | ||
315 | #define SAS_PHY_SHUTDOWN_THRES 1024 | ||
314 | 316 | ||
315 | /* The phy pretty much is controlled by the LLDD. | 317 | /* The phy pretty much is controlled by the LLDD. |
316 | * The class only reads those fields. | 318 | * The class only reads those fields. |
317 | */ | 319 | */ |
318 | struct asd_sas_phy { | 320 | struct asd_sas_phy { |
319 | /* private: */ | 321 | /* private: */ |
322 | atomic_t event_nr; | ||
323 | int in_shutdown; | ||
320 | int error; | 324 | int error; |
321 | int suspended; | 325 | int suspended; |
322 | 326 | ||
@@ -404,6 +408,8 @@ struct sas_ha_struct { | |||
404 | 408 | ||
405 | struct list_head eh_done_q; /* complete via scsi_eh_flush_done_q */ | 409 | struct list_head eh_done_q; /* complete via scsi_eh_flush_done_q */ |
406 | struct list_head eh_ata_q; /* scmds to promote from sas to ata eh */ | 410 | struct list_head eh_ata_q; /* scmds to promote from sas to ata eh */ |
411 | |||
412 | int event_thres; | ||
407 | }; | 413 | }; |
408 | 414 | ||
409 | #define SHOST_TO_SAS_HA(_shost) (*(struct sas_ha_struct **)(_shost)->hostdata) | 415 | #define SHOST_TO_SAS_HA(_shost) (*(struct sas_ha_struct **)(_shost)->hostdata) |