summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_all.h
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2017-01-05 11:53:43 +0000
committermav <mav@FreeBSD.org>2017-01-05 11:53:43 +0000
commit4c881f061bedb312611b71bac9cacfb89ff61037 (patch)
tree60e20a4b658163899615c26bbf0994863c97a713 /sys/cam/scsi/scsi_all.h
parent2c06a94d41df604d15d7249562a291056a4cdef1 (diff)
downloadFreeBSD-src-4c881f061bedb312611b71bac9cacfb89ff61037.zip
FreeBSD-src-4c881f061bedb312611b71bac9cacfb89ff61037.tar.gz
MFC r310489: Implement printing forwarded sense data.
Diffstat (limited to 'sys/cam/scsi/scsi_all.h')
-rw-r--r--sys/cam/scsi/scsi_all.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_all.h b/sys/cam/scsi/scsi_all.h
index 73c573a..a018fe9 100644
--- a/sys/cam/scsi/scsi_all.h
+++ b/sys/cam/scsi/scsi_all.h
@@ -3426,6 +3426,8 @@ struct scsi_sense_forwarded
#define SSD_FORWARDED_SDS_UNK 0x00
#define SSD_FORWARDED_SDS_EXSRC 0x01
#define SSD_FORWARDED_SDS_EXDST 0x02
+ uint8_t status;
+ uint8_t sense_data[];
};
/*
@@ -3654,6 +3656,10 @@ void scsi_sense_progress_sbuf(struct sbuf *sb, struct scsi_sense_data *sense,
u_int sense_len, uint8_t *cdb, int cdb_len,
struct scsi_inquiry_data *inq_data,
struct scsi_sense_desc_header *header);
+void scsi_sense_forwarded_sbuf(struct sbuf *sb, struct scsi_sense_data *sense,
+ u_int sense_len, uint8_t *cdb, int cdb_len,
+ struct scsi_inquiry_data *inq_data,
+ struct scsi_sense_desc_header *header);
void scsi_sense_generic_sbuf(struct sbuf *sb, struct scsi_sense_data *sense,
u_int sense_len, uint8_t *cdb, int cdb_len,
struct scsi_inquiry_data *inq_data,
OpenPOWER on IntegriCloud