- Corrected timeouts to really wait one millisecond.

svn path=/trunk/; revision=8079
This commit is contained in:
Filip Navara 2004-02-07 15:44:13 +00:00
parent 46df458f5f
commit 094ace70db
2 changed files with 6 additions and 6 deletions

View file

@ -62,7 +62,7 @@ void controller_wait(void)
unsigned long timeout;
LARGE_INTEGER Millisecond_Timeout;
Millisecond_Timeout.QuadPart = 1;
Millisecond_Timeout.QuadPart = -10000L;
for(timeout = 0; timeout < CONTROLLER_TIMEOUT; timeout++)
{
@ -87,7 +87,7 @@ int controller_wait_for_input(void)
int timeout;
LARGE_INTEGER Millisecond_Timeout;
Millisecond_Timeout.QuadPart = 1;
Millisecond_Timeout.QuadPart = -10000L;
for(timeout = KEYBOARD_INIT_TIMEOUT; timeout > 0; timeout--)
{

View file

@ -205,7 +205,7 @@ static int SendByte(PDEVICE_EXTENSION DeviceExtension, unsigned char byte)
unsigned char status;
LARGE_INTEGER Millisecond_Timeout;
Millisecond_Timeout.QuadPart = 1;
Millisecond_Timeout.QuadPart = -10000L;
DeviceExtension->ack = 0;
DeviceExtension->acking = 1;
@ -256,7 +256,7 @@ int SendCommand(PDEVICE_EXTENSION DeviceExtension, unsigned char *param, int com
int receive = (command >> 8) & 0xf;
int i;
Millisecond_Timeout.QuadPart = 1;
Millisecond_Timeout.QuadPart = -10000L;
DeviceExtension->RepliesExpected = receive;
if (command == PSMOUSE_CMD_RESET_BAT)
@ -576,7 +576,7 @@ BOOLEAN SetupMouse(PDEVICE_OBJECT DeviceObject, PUNICODE_STRING RegistryPath)
KAFFINITY Affinity;
LARGE_INTEGER Millisecond_Timeout;
Millisecond_Timeout.QuadPart = 1;
Millisecond_Timeout.QuadPart = -10000L;
/* setup */
DeviceExtension->NoExtensions = 0;
@ -641,7 +641,7 @@ BOOLEAN DetectPS2Port(void)
BOOLEAN return_value = FALSE;
LARGE_INTEGER Millisecond_Timeout;
Millisecond_Timeout.QuadPart = 1;
Millisecond_Timeout.QuadPart = -10000L;
//return TRUE; // The rest of this code fails under BOCHs