summaryrefslogtreecommitdiff
path: root/sys/dev/ata/atascsi.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2010-05-05 11:33:27 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2010-05-05 11:33:27 +0000
commited6b0dd01e67f4f86ed999c2df2e704b885260f2 (patch)
tree5ef27f648094ffc5d8e04a840f3700f01036f731 /sys/dev/ata/atascsi.h
parent33a40ab9a1bfd4e4306a94e8d89664e3c35608f8 (diff)
map the ATA data set management stuff (ie, trim) to the SCSI thin
provisioning bits in read cap 16
Diffstat (limited to 'sys/dev/ata/atascsi.h')
-rw-r--r--sys/dev/ata/atascsi.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/ata/atascsi.h b/sys/dev/ata/atascsi.h
index e9d4be3fd2a..4cb869131fc 100644
--- a/sys/dev/ata/atascsi.h
+++ b/sys/dev/ata/atascsi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.h,v 1.40 2010/04/22 00:58:32 dlg Exp $ */
+/* $OpenBSD: atascsi.h,v 1.41 2010/05/05 11:33:26 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -79,7 +79,9 @@ struct ata_identify {
u_int16_t recmwdma; /* 66 */
u_int16_t minpio; /* 67 */
u_int16_t minpioflow; /* 68 */
- u_int16_t reserved4[2]; /* 69 */
+ u_int16_t add_support; /* 69 */
+#define ATA_ID_ADD_SUPPORT_DRT 0x4000
+ u_int16_t reserved4; /* 70 */
u_int16_t typtime[2]; /* 71 */
u_int16_t reserved5[2]; /* 73 */
u_int16_t qdepth; /* 75 */
@@ -133,7 +135,9 @@ struct ata_identify {
u_int16_t padding3[8]; /* 160 */
u_int16_t form; /* 168 */
#define ATA_ID_FORM_MASK 0x000f
- u_int16_t padding4[7]; /* 169 */
+ u_int16_t data_set_mgmt; /* 169 */
+#define ATA_ID_DATA_SET_MGMT_TRIM 0x0001
+ u_int16_t padding4[6]; /* 170 */
u_int16_t curmedser[30]; /* 176 */
u_int16_t sctsupport; /* 206 */
u_int16_t rpm; /* 207 */