mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
- Corrected timeouts to really wait one millisecond.
svn path=/trunk/; revision=8079
This commit is contained in:
parent
46df458f5f
commit
094ace70db
2 changed files with 6 additions and 6 deletions
|
@ -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--)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue