aboutsummaryrefslogtreecommitdiff
path: root/sbin/atacontrol
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2009-11-22 10:53:26 +0000
committerAlexander Motin <mav@FreeBSD.org>2009-11-22 10:53:26 +0000
commit72e2ce370dcd0a23a2f1cb15be9804691116817e (patch)
treeb49a423def1983d89c3146053ab40a2e6c2ab53f /sbin/atacontrol
parentec9f71c4892d209878956b8c7186752c4226ef51 (diff)
Add some missing WDMA/UDMA modes.
Notes
Notes: svn path=/head/; revision=199644
Diffstat (limited to 'sbin/atacontrol')
-rw-r--r--sbin/atacontrol/atacontrol.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sbin/atacontrol/atacontrol.c b/sbin/atacontrol/atacontrol.c
index f68596c9981d..13b7e40f57c6 100644
--- a/sbin/atacontrol/atacontrol.c
+++ b/sbin/atacontrol/atacontrol.c
@@ -49,8 +49,13 @@ mode2str(int mode)
case ATA_PIO2: return "PIO2";
case ATA_PIO3: return "PIO3";
case ATA_PIO4: return "PIO4";
+ case ATA_WDMA0: return "WDMA0";
+ case ATA_WDMA1: return "WDMA1";
case ATA_WDMA2: return "WDMA2";
+ case ATA_UDMA0: return "UDMA0";
+ case ATA_UDMA1: return "UDMA1";
case ATA_UDMA2: return "UDMA33";
+ case ATA_UDMA3: return "UDMA44";
case ATA_UDMA4: return "UDMA66";
case ATA_UDMA5: return "UDMA100";
case ATA_UDMA6: return "UDMA133";
@@ -73,9 +78,15 @@ str2mode(char *str)
if (!strcasecmp(str, "PIO2")) return ATA_PIO2;
if (!strcasecmp(str, "PIO3")) return ATA_PIO3;
if (!strcasecmp(str, "PIO4")) return ATA_PIO4;
+ if (!strcasecmp(str, "WDMA0")) return ATA_WDMA0;
+ if (!strcasecmp(str, "WDMA1")) return ATA_WDMA1;
if (!strcasecmp(str, "WDMA2")) return ATA_WDMA2;
+ if (!strcasecmp(str, "UDMA0")) return ATA_UDMA0;
+ if (!strcasecmp(str, "UDMA1")) return ATA_UDMA1;
if (!strcasecmp(str, "UDMA2")) return ATA_UDMA2;
if (!strcasecmp(str, "UDMA33")) return ATA_UDMA2;
+ if (!strcasecmp(str, "UDMA3")) return ATA_UDMA3;
+ if (!strcasecmp(str, "UDMA44")) return ATA_UDMA3;
if (!strcasecmp(str, "UDMA4")) return ATA_UDMA4;
if (!strcasecmp(str, "UDMA66")) return ATA_UDMA4;
if (!strcasecmp(str, "UDMA5")) return ATA_UDMA5;