From ed6b0dd01e67f4f86ed999c2df2e704b885260f2 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Wed, 5 May 2010 11:33:27 +0000 Subject: map the ATA data set management stuff (ie, trim) to the SCSI thin provisioning bits in read cap 16 --- sys/scsi/scsi_disk.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/scsi') diff --git a/sys/scsi/scsi_disk.h b/sys/scsi/scsi_disk.h index 7cc5d2b39e4..81b9f811d29 100644 --- a/sys/scsi/scsi_disk.h +++ b/sys/scsi/scsi_disk.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_disk.h,v 1.25 2010/04/03 07:09:29 dlg Exp $ */ +/* $OpenBSD: scsi_disk.h,v 1.26 2010/05/05 11:33:26 dlg Exp $ */ /* $NetBSD: scsi_disk.h,v 1.10 1996/07/05 16:19:05 christos Exp $ */ /* @@ -266,6 +266,8 @@ struct scsi_read_cap_data_16 { u_int8_t p_type_prot; u_int8_t logical_per_phys; u_int8_t lowest_aligned[2]; +#define READ_CAP_16_TPE 0x8000 +#define READ_CAP_16_TPRZ 0x4000 u_int8_t reserved[16]; }; -- cgit v1.2.3