Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2013 15:46:09 +0000 (UTC)
From:      Steven Hartland <smh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r249931 - head/sys/sys
Message-ID:  <201304261546.r3QFk9qP036650@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: smh
Date: Fri Apr 26 15:46:09 2013
New Revision: 249931
URL: http://svnweb.freebsd.org/changeset/base/249931

Log:
  Added Dataset Management defines to be used by TRIM in cam ata and scsi to
  calculate the size of blocks.
  
  Reviewed by:	mav
  Approved by:	pjd (mentor)
  MFC after:	2 weeks

Modified:
  head/sys/sys/ata.h

Modified: head/sys/sys/ata.h
==============================================================================
--- head/sys/sys/ata.h	Fri Apr 26 15:43:24 2013	(r249930)
+++ head/sys/sys/ata.h	Fri Apr 26 15:46:09 2013	(r249931)
@@ -269,6 +269,12 @@ struct ata_params {
 /*255*/ u_int16_t       integrity;
 } __packed;
 
+/* ATA Dataset Management */
+#define ATA_DSM_BLK_SIZE	512
+#define ATA_DSM_BLK_RANGES	64
+#define ATA_DSM_RANGE_SIZE	8
+#define ATA_DSM_RANGE_MAX	65535
+
 /*
  * ATA Device Register
  *



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304261546.r3QFk9qP036650>