Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Feb 2009 18:22:21 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188922 - head/sbin/atacontrol
Message-ID:  <200902221822.n1MIMLPu003077@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sun Feb 22 18:22:21 2009
New Revision: 188922
URL: http://svn.freebsd.org/changeset/base/188922

Log:
  Add SATA and USB modes for completeness. USB modes principally can't be set,
  SATA mode setting is not implementes at this time.
  
  Submitted by:	Christoph Mallon

Modified:
  head/sbin/atacontrol/atacontrol.8
  head/sbin/atacontrol/atacontrol.c

Modified: head/sbin/atacontrol/atacontrol.8
==============================================================================
--- head/sbin/atacontrol/atacontrol.8	Sun Feb 22 18:15:17 2009	(r188921)
+++ head/sbin/atacontrol/atacontrol.8	Sun Feb 22 18:22:21 2009	(r188922)
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd December 14, 2008
+.Dd February 21, 2009
 .Dt ATACONTROL 8
 .Os
 .Sh NAME
@@ -180,9 +180,7 @@ Modes are given like
 case does not matter.
 .Pp
 Currently supported modes are:
-.Cm PIO0 , PIO1 , PIO2 , PIO3 , PIO4 ,
-.Cm WDMA2 ,
-.Cm UDMA2
+.Cm BIOSPIO , PIO0 , PIO1 , PIO2 , PIO3 , PIO4 , WDMA2 , UDMA2
 (alias
 .Cm UDMA33 ) ,
 .Cm UDMA4
@@ -190,11 +188,13 @@ Currently supported modes are:
 .Cm UDMA66 ) ,
 .Cm UDMA5
 (alias
-.Cm UDMA100 )
-and
+.Cm UDMA100 ) ,
 .Cm UDMA6
 (alias
-.Cm UDMA133 ) .
+.Cm UDMA133 ) ,
+.Cm SATA150 , SATA300 , USB , USB1 , USB2
+and
+.Cm BIOSDMA .
 .It Ic cap
 Show detailed info about the device on
 .Ar device .

Modified: head/sbin/atacontrol/atacontrol.c
==============================================================================
--- head/sbin/atacontrol/atacontrol.c	Sun Feb 22 18:15:17 2009	(r188921)
+++ head/sbin/atacontrol/atacontrol.c	Sun Feb 22 18:22:21 2009	(r188922)
@@ -82,6 +82,11 @@ str2mode(char *str)
 	if (!strcasecmp(str, "UDMA100")) return ATA_UDMA5;
 	if (!strcasecmp(str, "UDMA6")) return ATA_UDMA6;
 	if (!strcasecmp(str, "UDMA133")) return ATA_UDMA6;
+	if (!strcasecmp(str, "SATA150")) return ATA_SA150;
+	if (!strcasecmp(str, "SATA300")) return ATA_SA300;
+	if (!strcasecmp(str, "USB")) return ATA_USB;
+	if (!strcasecmp(str, "USB1")) return ATA_USB1;
+	if (!strcasecmp(str, "USB2")) return ATA_USB2;
 	if (!strcasecmp(str, "BIOSDMA")) return ATA_DMA;
 	return -1;
 }



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