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
This commit is contained in:
Alexander Motin 2009-02-22 18:22:21 +00:00
parent 2ade0391c2
commit 91b791a38f
2 changed files with 12 additions and 7 deletions

@ -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 .

@ -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;
}