summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_all.h
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-07-15 16:54:04 +0000
committermav <mav@FreeBSD.org>2014-07-15 16:54:04 +0000
commit75f2a987710660a3c2af6958891e45f24decd6db (patch)
treeb1a2c8496f90e75166d52bf9b0bdfeea47e0f414 /sys/cam/scsi/scsi_all.h
parentda977d403200a33558605a0f258a3e6077c11715 (diff)
downloadFreeBSD-src-75f2a987710660a3c2af6958891e45f24decd6db.zip
FreeBSD-src-75f2a987710660a3c2af6958891e45f24decd6db.tar.gz
MFC r268103:
Add support for REPORT TIMESTAMP command.
Diffstat (limited to 'sys/cam/scsi/scsi_all.h')
-rw-r--r--sys/cam/scsi/scsi_all.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_all.h b/sys/cam/scsi/scsi_all.h
index 545f493..52c04f5 100644
--- a/sys/cam/scsi/scsi_all.h
+++ b/sys/cam/scsi/scsi_all.h
@@ -1059,6 +1059,29 @@ struct scsi_report_supported_tmf_data
uint8_t reserved[2];
};
+struct scsi_report_timestamp
+{
+ uint8_t opcode;
+ uint8_t service_action;
+ uint8_t reserved[4];
+ uint8_t length[4];
+ uint8_t reserved1;
+ uint8_t control;
+};
+
+struct scsi_report_timestamp_data
+{
+ uint8_t length[2];
+ uint8_t origin;
+#define RTS_ORIG_MASK 0x00
+#define RTS_ORIG_ZERO 0x00
+#define RTS_ORIG_SET 0x02
+#define RTS_ORIG_OUTSIDE 0x03
+ uint8_t reserved;
+ uint8_t timestamp[6];
+ uint8_t reserve2[2];
+};
+
struct ata_pass_16 {
u_int8_t opcode;
u_int8_t protocol;
OpenPOWER on IntegriCloud