From owner-svn-src-head@FreeBSD.ORG Fri Apr 26 15:46:10 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F34CA7E; Fri, 26 Apr 2013 15:46:09 +0000 (UTC) (envelope-from smh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E52651FBA; Fri, 26 Apr 2013 15:46:09 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3QFk9FN036651; Fri, 26 Apr 2013 15:46:09 GMT (envelope-from smh@svn.freebsd.org) Received: (from smh@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3QFk9qP036650; Fri, 26 Apr 2013 15:46:09 GMT (envelope-from smh@svn.freebsd.org) Message-Id: <201304261546.r3QFk9qP036650@svn.freebsd.org> From: Steven Hartland Date: Fri, 26 Apr 2013 15:46:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249931 - head/sys/sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2013 15:46:10 -0000 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 *