Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Dec 2009 12:26:26 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r200025 - stable/8/sbin/atacontrol
Message-ID:  <200912021226.nB2CQQvI003529@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed Dec  2 12:26:26 2009
New Revision: 200025
URL: http://svn.freebsd.org/changeset/base/200025

Log:
  MFC r199644:
  
  Add some missing WDMA/UDMA modes.

Modified:
  stable/8/sbin/atacontrol/atacontrol.c
Directory Properties:
  stable/8/sbin/atacontrol/   (props changed)

Modified: stable/8/sbin/atacontrol/atacontrol.c
==============================================================================
--- stable/8/sbin/atacontrol/atacontrol.c	Wed Dec  2 10:47:11 2009	(r200024)
+++ stable/8/sbin/atacontrol/atacontrol.c	Wed Dec  2 12:26:26 2009	(r200025)
@@ -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";
@@ -70,9 +75,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;



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