diff options
Diffstat (limited to 'IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.c')
-rw-r--r-- | IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.c b/IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.c index ede1d5664c..c396ab5813 100644 --- a/IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.c +++ b/IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.c @@ -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;
|