mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 02:41:22 +00:00
[uniata]
- Don't wait so long for drive reset. Reapplying r26470 by Dmitriy Gorbachev. svn path=/trunk/; revision=43920
This commit is contained in:
parent
9d9af14d23
commit
451776ec01
1 changed files with 5 additions and 3 deletions
|
@ -679,7 +679,7 @@ AtapiSoftReset(
|
|||
)
|
||||
{
|
||||
//ULONG c = chan->lChannel;
|
||||
ULONG i;
|
||||
ULONG i = 1000 * 1000;
|
||||
UCHAR dma_status = 0;
|
||||
KdPrint2((PRINT_PREFIX "AtapiSoftReset:\n"));
|
||||
UCHAR statusByte2;
|
||||
|
@ -689,8 +689,10 @@ AtapiSoftReset(
|
|||
SelectDrive(chan, DeviceNumber);
|
||||
AtapiStallExecution(10000);
|
||||
AtapiWritePort1(chan, IDX_IO1_o_Command, IDE_COMMAND_ATAPI_RESET);
|
||||
for (i = 0; i < 1000; i++) {
|
||||
AtapiStallExecution(999);
|
||||
while ((AtapiReadPort1(chan, IDX_IO1_i_Status) & IDE_STATUS_BUSY) &&
|
||||
i--)
|
||||
{
|
||||
AtapiStallExecution(30);
|
||||
}
|
||||
SelectDrive(chan, DeviceNumber);
|
||||
WaitOnBusy(chan);
|
||||
|
|
Loading…
Reference in a new issue