Set sector size to 512 bytes.

svn path=/trunk/; revision=2337
This commit is contained in:
Eric Kohl 2001-11-01 17:48:13 +00:00
parent 66b3542076
commit 91540343f5

View file

@ -1,4 +1,4 @@
/* $Id: ide.c,v 1.47 2001/11/01 14:51:57 ekohl Exp $
/* $Id: ide.c,v 1.48 2001/11/01 17:48:13 ekohl Exp $
*
* IDE.C - IDE Disk driver
* written by Rex Jolliff
@ -809,7 +809,7 @@ IDEGetDriveIdentification(IN int CommandPort,
if (IDEPolledRead(CommandPort, 0, 0, 0, 0, 0, (DriveNum ? IDE_DH_DRV1 : 0),
IDE_CMD_IDENT_DRV, (BYTE *)DrvParms) != 0)
{
return FALSE;
return(FALSE);
}
/* Report on drive parameters if debug mode */
@ -853,7 +853,7 @@ IDEGetDriveIdentification(IN int CommandPort,
* Fix default ATA sector size.
* Attention: Default ATAPI sector size is 2048 bytes!!
*/
if (DrvParms->BytesPerSector == 0)
DPRINT("BytesPerSector %d\n", DrvParms->BytesPerSector);
DrvParms->BytesPerSector = 512;
DPRINT("BytesPerSector %d\n", DrvParms->BytesPerSector);
@ -1122,7 +1122,7 @@ IDEPolledRead(IN WORD Address,
BYTE Status;
int RetryCount;
/* Wait for STATUS.BUSY to clear */
/* Wait for STATUS.BUSY and STATUS.DRQ to clear */
for (RetryCount = 0; RetryCount < IDE_MAX_BUSY_RETRIES; RetryCount++)
{
Status = IDEReadStatus(Address);