mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Increased number of busy retries
svn path=/trunk/; revision=1660
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: ide.c,v 1.37 2001/01/06 23:25:35 rex Exp $
|
||||
/* $Id: ide.c,v 1.38 2001/03/04 00:46:46 ekohl Exp $
|
||||
*
|
||||
* IDE.C - IDE Disk driver
|
||||
* written by Rex Jolliff
|
||||
@@ -1491,7 +1491,7 @@ IDEStartController(IN OUT PVOID Context)
|
||||
/* wait for BUSY to clear and DRDY to assert */
|
||||
for (Retries = 0; Retries < IDE_MAX_BUSY_RETRIES; Retries++)
|
||||
{
|
||||
BYTE Status = IDEReadStatus(ControllerExtension->CommandPortBase);
|
||||
Status = IDEReadStatus(ControllerExtension->CommandPortBase);
|
||||
if (!(Status & IDE_SR_BUSY) && (Status & IDE_SR_DRDY))
|
||||
{
|
||||
break;
|
||||
|
||||
@@ -18,8 +18,7 @@ extern "C" {
|
||||
#define IDE_MAX_RESET_RETRIES 10000
|
||||
#define IDE_MAX_POLL_RETRIES 100000
|
||||
#define IDE_MAX_WRITE_RETRIES 1000
|
||||
#define IDE_MAX_BUSY_RETRIES 100
|
||||
//#define IDE_MAX_BUSY_RETRIES 100000
|
||||
#define IDE_MAX_BUSY_RETRIES 50000
|
||||
#define IDE_MAX_DRQ_RETRIES 10000
|
||||
//#define IDE_MAX_CMD_RETRIES 1
|
||||
#define IDE_MAX_CMD_RETRIES 0
|
||||
|
||||
Reference in New Issue
Block a user