fix the ecc issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8502 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**@file
|
||||
PS2 Mouse Communication Interface
|
||||
/** @file
|
||||
PS2 Mouse Communication Interface.
|
||||
|
||||
Copyright (c) 2006 - 2007, Intel Corporation
|
||||
All rights reserved. This program and the accompanying materials
|
||||
@@ -588,7 +588,7 @@ Out8042Data (
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
UINT8 temp;
|
||||
UINT8 Temp;
|
||||
//
|
||||
// Wait keyboard controller input buffer empty
|
||||
//
|
||||
@@ -597,8 +597,8 @@ Out8042Data (
|
||||
return Status;
|
||||
}
|
||||
|
||||
temp = Data;
|
||||
IsaIo->Io.Write (IsaIo, EfiIsaIoWidthUint8, KBC_DATA_PORT, 1, &temp);
|
||||
Temp = Data;
|
||||
IsaIo->Io.Write (IsaIo, EfiIsaIoWidthUint8, KBC_DATA_PORT, 1, &Temp);
|
||||
|
||||
Status = WaitInputEmpty (IsaIo, TIMEOUT);
|
||||
if (EFI_ERROR (Status)) {
|
||||
@@ -624,23 +624,23 @@ In8042Data (
|
||||
)
|
||||
{
|
||||
UINTN Delay;
|
||||
UINT8 temp;
|
||||
UINT8 Temp;
|
||||
|
||||
Delay = TIMEOUT / 50;
|
||||
|
||||
do {
|
||||
IsaIo->Io.Read (IsaIo, EfiIsaIoWidthUint8, KBC_CMD_STS_PORT, 1, &temp);
|
||||
IsaIo->Io.Read (IsaIo, EfiIsaIoWidthUint8, KBC_CMD_STS_PORT, 1, &Temp);
|
||||
|
||||
//
|
||||
// Check keyboard controller status bit 0(output buffer status)
|
||||
//
|
||||
if ((temp & KBC_OUTB) == KBC_OUTB) {
|
||||
if ((Temp & KBC_OUTB) == KBC_OUTB) {
|
||||
break;
|
||||
}
|
||||
|
||||
gBS->Stall (50);
|
||||
Delay--;
|
||||
} while (Delay);
|
||||
} while (Delay != 0);
|
||||
|
||||
if (Delay == 0) {
|
||||
return EFI_TIMEOUT;
|
||||
@@ -737,7 +737,7 @@ Out8042AuxCommand (
|
||||
I/O work flow of outing 8042 Aux data.
|
||||
|
||||
@param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL
|
||||
@param Command Aux I/O command
|
||||
@param Data Buffer holding return value
|
||||
|
||||
@retval EFI_SUCCESS Success to excute I/O work flow
|
||||
@retval EFI_TIMEOUT Keyboard controller time out.
|
||||
@@ -811,7 +811,7 @@ In8042AuxData (
|
||||
|
||||
|
||||
/**
|
||||
Check keyboard controller status, if it is output buffer full and for auxiliary device
|
||||
Check keyboard controller status, if it is output buffer full and for auxiliary device.
|
||||
|
||||
@param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL
|
||||
|
||||
@@ -869,7 +869,7 @@ WaitInputEmpty (
|
||||
|
||||
gBS->Stall (50);
|
||||
Delay--;
|
||||
} while (Delay);
|
||||
} while (Delay != 0);
|
||||
|
||||
if (Delay == 0) {
|
||||
return EFI_TIMEOUT;
|
||||
@@ -928,7 +928,7 @@ Returns:
|
||||
|
||||
gBS->Stall (50);
|
||||
Delay--;
|
||||
} while (Delay);
|
||||
} while (Delay != 0);
|
||||
|
||||
if (Delay == 0) {
|
||||
return EFI_TIMEOUT;
|
||||
|
Reference in New Issue
Block a user