blob: 7982795df59592d8219e9ec6c4b5102b0593214d [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _SCSI_SCSI_DBG_H
2#define _SCSI_SCSI_DBG_H
3
4struct scsi_cmnd;
Hannes Reinecked811b842014-10-24 14:26:45 +02005struct scsi_device;
James Bottomleyea73a9f2005-08-28 11:33:52 -05006struct scsi_sense_hdr;
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
8extern void scsi_print_command(struct scsi_cmnd *);
Hannes Reineckea9a47bf2014-10-24 14:26:57 +02009extern void __scsi_print_command(const unsigned char *, size_t);
Hannes Reinecked811b842014-10-24 14:26:45 +020010extern void scsi_show_extd_sense(const struct scsi_device *, const char *,
11 unsigned char, unsigned char);
12extern void scsi_show_sense_hdr(const struct scsi_device *, const char *,
13 const struct scsi_sense_hdr *);
14extern void scsi_print_sense_hdr(const struct scsi_device *, const char *,
15 const struct scsi_sense_hdr *);
16extern void scsi_print_sense(const struct scsi_cmnd *);
17extern void __scsi_print_sense(const struct scsi_device *, const char *name,
Linus Torvalds1da177e2005-04-16 15:20:36 -070018 const unsigned char *sense_buffer,
19 int sense_len);
Hannes Reineckec11c0042014-10-24 14:27:01 +020020extern void scsi_print_result(struct scsi_cmnd *, const char *, int);
Hannes Reinecke3cc958c2014-10-24 14:26:59 +020021extern const char *scsi_hostbyte_string(int);
22extern const char *scsi_driverbyte_string(int);
Hannes Reineckec11c0042014-10-24 14:27:01 +020023extern const char *scsi_mlreturn_string(int);
Linus Torvalds1da177e2005-04-16 15:20:36 -070024extern const char *scsi_sense_key_string(unsigned char);
Hannes Reinecked811b842014-10-24 14:26:45 +020025extern const char *scsi_extd_sense_format(unsigned char, unsigned char,
26 const char **);
Linus Torvalds1da177e2005-04-16 15:20:36 -070027
28#endif /* _SCSI_SCSI_DBG_H */