summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2011-07-08 07:28:46 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2011-07-08 07:28:46 +0000
commit7a2a38f838da05e7b7a31436e34806cfe86e683a (patch)
treed0ddcd8e3815adc8ee32b8483f9a3696f3cace03
parent6d704542b5dd0911315551bb6d96606b46a97b9f (diff)
sbc3 defines a thin provisioning vpd page
-rw-r--r--sys/scsi/scsi_disk.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/sys/scsi/scsi_disk.h b/sys/scsi/scsi_disk.h
index 41ea0f2008f..985eb562783 100644
--- a/sys/scsi/scsi_disk.h
+++ b/sys/scsi/scsi_disk.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_disk.h,v 1.31 2011/07/08 07:20:39 dlg Exp $ */
+/* $OpenBSD: scsi_disk.h,v 1.32 2011/07/08 07:28:45 dlg Exp $ */
/* $NetBSD: scsi_disk.h,v 1.10 1996/07/05 16:19:05 christos Exp $ */
/*
@@ -494,4 +494,20 @@ struct scsi_vpd_disk_info {
u_int8_t _reserved2[56];
};
+struct scsi_vpd_disk_thin {
+ struct scsi_vpd_hdr hdr;
+
+ u_int8_t threshold_exponent;
+ u_int8_t flags;
+#define VPD_DISK_THIN_DP (1 << 0) /* descriptor present */
+#define VPD_DISK_THIN_ANC_SUP (0x7 << 1)
+#define VPD_DISK_THIN_ANC_SUP_NO (0x0 << 1)
+#define VPD_DISK_THIN_ANC_SUP_YES (0x1 << 1)
+#define VPD_DISK_THIN_TPWS (1 << 6) /* WRITE SAME 16 */
+#define VPD_DISK_THIN_TPU (1 << 7) /* UNMAP */
+ u_int8_t _reserved1[2];
+
+ /* followed by a designation descriptor if DP is set */
+};
+
#endif /* _SCSI_SCSI_DISK_H */