Author: fireball
Date: Mon Nov 2 21:18:24 2009
New Revision: 43921
URL:
http://svn.reactos.org/svn/reactos?rev=43921&view=rev
Log:
[uniata]
- Revert 40896, uniata is back to "amazingly fast" mode.
Modified:
trunk/reactos/drivers/storage/ide/uniata/id_ata.cpp
Modified: trunk/reactos/drivers/storage/ide/uniata/id_ata.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/ide/uniata…
==============================================================================
--- trunk/reactos/drivers/storage/ide/uniata/id_ata.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/ide/uniata/id_ata.cpp [iso-8859-1] Mon Nov 2 21:18:24
2009
@@ -493,10 +493,10 @@
{
ULONG i;
UCHAR Status;
- for (i=0; i<20000; i++) {
+ for (i=0; i<200; i++) {
GetStatus(chan, Status);
if (Status & IDE_STATUS_BUSY) {
- AtapiStallExecution(150);
+ AtapiStallExecution(10);
continue;
} else {
break;
@@ -537,10 +537,10 @@
{
ULONG i;
UCHAR Status;
- for (i=0; i<20000; i++) {
+ for (i=0; i<200; i++) {
GetBaseStatus(chan, Status);
if (Status & IDE_STATUS_BUSY) {
- AtapiStallExecution(150);
+ AtapiStallExecution(10);
continue;
} else {
break;
@@ -640,11 +640,11 @@
for (i=0; i<1000; i++) {
GetStatus(chan, Status);
if (Status & IDE_STATUS_BUSY) {
- AtapiStallExecution(100);
+ AtapiStallExecution(10);
} else if (Status & IDE_STATUS_DRQ) {
break;
} else {
- AtapiStallExecution(200);
+ AtapiStallExecution(10);
}
}
return Status;
@@ -661,11 +661,11 @@
for (i=0; i<2; i++) {
GetStatus(chan, Status);
if (Status & IDE_STATUS_BUSY) {
- AtapiStallExecution(100);
+ AtapiStallExecution(10);
} else if (Status & IDE_STATUS_DRQ) {
break;
} else {
- AtapiStallExecution(100);
+ AtapiStallExecution(10);
}
}
return Status;