diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 20:31:27 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 20:31:27 -0400 |
| commit | 0481990b758628e12f4b0a9e15094e70cefc7cd1 (patch) | |
| tree | 67a4b4b7acc6a688b87ef2a2d3ec0e296e6e480c /include/scsi/scsi_eh.h | |
| parent | db400b3c4ee89d384d9163836a55577abdae772d (diff) | |
| parent | 17fa53da1239b8712c5cebbd72a74c713b6c2db9 (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-for-linus-2.6
Diffstat (limited to 'include/scsi/scsi_eh.h')
| -rw-r--r-- | include/scsi/scsi_eh.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/scsi/scsi_eh.h b/include/scsi/scsi_eh.h index 80557f879e3e..fabd879c2f2e 100644 --- a/include/scsi/scsi_eh.h +++ b/include/scsi/scsi_eh.h | |||
| @@ -26,10 +26,15 @@ struct scsi_sense_hdr { /* See SPC-3 section 4.5 */ | |||
| 26 | u8 additional_length; /* always 0 for fixed sense format */ | 26 | u8 additional_length; /* always 0 for fixed sense format */ |
| 27 | }; | 27 | }; |
| 28 | 28 | ||
| 29 | static inline int scsi_sense_valid(struct scsi_sense_hdr *sshdr) | ||
| 30 | { | ||
| 31 | if (!sshdr) | ||
| 32 | return 0; | ||
| 33 | |||
| 34 | return (sshdr->response_code & 0x70) == 0x70; | ||
| 35 | } | ||
| 36 | |||
| 29 | 37 | ||
| 30 | extern void scsi_add_timer(struct scsi_cmnd *, int, | ||
| 31 | void (*)(struct scsi_cmnd *)); | ||
| 32 | extern int scsi_delete_timer(struct scsi_cmnd *); | ||
| 33 | extern void scsi_report_bus_reset(struct Scsi_Host *, int); | 38 | extern void scsi_report_bus_reset(struct Scsi_Host *, int); |
| 34 | extern void scsi_report_device_reset(struct Scsi_Host *, int, int); | 39 | extern void scsi_report_device_reset(struct Scsi_Host *, int, int); |
| 35 | extern int scsi_block_when_processing_errors(struct scsi_device *); | 40 | extern int scsi_block_when_processing_errors(struct scsi_device *); |
