summaryrefslogtreecommitdiffstats
path: root/sbin/atacontrol
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-02-22 18:22:21 +0000
committermav <mav@FreeBSD.org>2009-02-22 18:22:21 +0000
commit6a9085269a24320c84de5ae2d53cca3a30c4b8e2 (patch)
treea592de6dd50f8aa73e79b1df8ba35a54d5c80c63 /sbin/atacontrol
parentf736b7c6db55f593c523ea218609516ea0b2b161 (diff)
downloadFreeBSD-src-6a9085269a24320c84de5ae2d53cca3a30c4b8e2.zip
FreeBSD-src-6a9085269a24320c84de5ae2d53cca3a30c4b8e2.tar.gz
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
Diffstat (limited to 'sbin/atacontrol')
-rw-r--r--sbin/atacontrol/atacontrol.814
-rw-r--r--sbin/atacontrol/atacontrol.c5
2 files changed, 12 insertions, 7 deletions
diff --git a/sbin/atacontrol/atacontrol.8 b/sbin/atacontrol/atacontrol.8
index 31c2899..9ee6c2b 100644
--- a/sbin/atacontrol/atacontrol.8
+++ b/sbin/atacontrol/atacontrol.8
@@ -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 .
diff --git a/sbin/atacontrol/atacontrol.c b/sbin/atacontrol/atacontrol.c
index bfd7c97..cd51259 100644
--- a/sbin/atacontrol/atacontrol.c
+++ b/sbin/atacontrol/atacontrol.c
@@ -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;
}
OpenPOWER on IntegriCloud