Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _SCSI_SCSI_DBG_H |
| 2 | #define _SCSI_SCSI_DBG_H |
| 3 | |
| 4 | struct scsi_cmnd; |
Hannes Reinecke | d811b84 | 2014-10-24 14:26:45 +0200 | [diff] [blame] | 5 | struct scsi_device; |
James Bottomley | ea73a9f | 2005-08-28 11:33:52 -0500 | [diff] [blame] | 6 | struct scsi_sense_hdr; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
| 8 | extern void scsi_print_command(struct scsi_cmnd *); |
Hannes Reinecke | a9a47bf | 2014-10-24 14:26:57 +0200 | [diff] [blame] | 9 | extern void __scsi_print_command(const unsigned char *, size_t); |
Hannes Reinecke | d811b84 | 2014-10-24 14:26:45 +0200 | [diff] [blame] | 10 | extern void scsi_show_extd_sense(const struct scsi_device *, const char *, |
| 11 | unsigned char, unsigned char); |
| 12 | extern void scsi_show_sense_hdr(const struct scsi_device *, const char *, |
| 13 | const struct scsi_sense_hdr *); |
| 14 | extern void scsi_print_sense_hdr(const struct scsi_device *, const char *, |
| 15 | const struct scsi_sense_hdr *); |
| 16 | extern void scsi_print_sense(const struct scsi_cmnd *); |
| 17 | extern void __scsi_print_sense(const struct scsi_device *, const char *name, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | const unsigned char *sense_buffer, |
| 19 | int sense_len); |
Hannes Reinecke | c11c004 | 2014-10-24 14:27:01 +0200 | [diff] [blame] | 20 | extern void scsi_print_result(struct scsi_cmnd *, const char *, int); |
Hannes Reinecke | 3cc958c | 2014-10-24 14:26:59 +0200 | [diff] [blame] | 21 | extern const char *scsi_hostbyte_string(int); |
| 22 | extern const char *scsi_driverbyte_string(int); |
Hannes Reinecke | c11c004 | 2014-10-24 14:27:01 +0200 | [diff] [blame] | 23 | extern const char *scsi_mlreturn_string(int); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | extern const char *scsi_sense_key_string(unsigned char); |
Hannes Reinecke | d811b84 | 2014-10-24 14:26:45 +0200 | [diff] [blame] | 25 | extern const char *scsi_extd_sense_format(unsigned char, unsigned char, |
| 26 | const char **); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | |
| 28 | #endif /* _SCSI_SCSI_DBG_H */ |