then a new handle is created. If it is a pointer to an existing UEFI handle,\r
then the protocol is added to the existing UEFI handle.\r
\r
- @retval EFI_SUCCES The protocol was added to ChildHandle.\r
+ @retval EFI_SUCCESS The protocol was added to ChildHandle.\r
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create\r
the child\r
@param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
@param ChildHandle Handle of the child to destroy\r
\r
- @retval EFI_SUCCES The protocol was removed from ChildHandle.\r
+ @retval EFI_SUCCESS The protocol was removed from ChildHandle.\r
@retval EFI_UNSUPPORTED ChildHandle does not support the protocol that is being removed.\r
@retval EFI_INVALID_PARAMETER Child handle is NULL.\r
@retval EFI_ACCESS_DENIED The protocol could not be removed from the ChildHandle\r
@retval EFI_SUCCESS The device was started.\r
@retval EFI_DEVICE_ERROR The device could not be started due to a device error.Currently not implemented.\r
@retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.\r
- @retval Others The driver failded to start the device.\r
+ @retval Others The driver failed to start the device.\r
\r
**/\r
EFI_STATUS\r
//\r
// To let KB driver support Hot plug, here should skip the 'resend' command for the case that\r
// KB is not connected to system. If KB is not connected to system, driver will find there's something\r
- // error in the following code and wait for the input buffer empty, this waiting time shoulb be short enough since\r
+ // error in the following code and wait for the input buffer empty, this waiting time should be short enough since\r
// this is a NOTIFY TPL period function, or the system performance will degrade hardly when KB is not connected.\r
// Just skip the 'resend' process simply.\r
//\r
@param ConsoleIn - Pointer to instance of KEYBOARD_CONSOLE_IN_DEV\r
@param Data - Pointer to outof buffer for keeping key value\r
\r
- @retval EFI_TIMEOUT Status resigter time out\r
+ @retval EFI_TIMEOUT Status register time out\r
@retval EFI_SUCCESS Success to read keyboard\r
\r
**/\r
@param Data value wanted to be written\r
\r
@retval EFI_TIMEOUT The input buffer register is full for putting new value util timeout\r
- @retval EFI_SUCCESS The new value is sucess put into input buffer register.\r
+ @retval EFI_SUCCESS The new value is success put into input buffer register.\r
\r
**/\r
EFI_STATUS\r
if (EFI_ERROR (Status)) {\r
KeyboardError (\r
ConsoleIn,\r
- L"Some specific value not aquired from 8042 controller!\n\r"\r
+ L"Some specific value not acquired from 8042 controller!\n\r"\r
);\r
goto Done;\r
}\r
\r
Status = KeyboardWaitForValue (ConsoleIn, KEYBOARD_8048_RETURN_8042_ACK);\r
if (EFI_ERROR (Status)) {\r
- KeyboardError (ConsoleIn, L"Some specific value not aquired from 8042 controller!\n\r");\r
+ KeyboardError (ConsoleIn, L"Some specific value not acquired from 8042 controller!\n\r");\r
goto Done;\r
}\r
//\r
\r
Status = KeyboardWaitForValue (ConsoleIn, KEYBOARD_8048_RETURN_8042_ACK);\r
if (EFI_ERROR (Status)) {\r
- KeyboardError (ConsoleIn, L"Some specific value not aquired from 8042 controller!\n\r");\r
+ KeyboardError (ConsoleIn, L"Some specific value not acquired from 8042 controller!\n\r");\r
goto Done;\r
}\r
\r
\r
Status = KeyboardWaitForValue (ConsoleIn, KEYBOARD_8048_RETURN_8042_ACK);\r
if (EFI_ERROR (Status)) {\r
- KeyboardError (ConsoleIn, L"Some specific value not aquired from 8042 controller!\n\r");\r
+ KeyboardError (ConsoleIn, L"Some specific value not acquired from 8042 controller!\n\r");\r
goto Done;\r
}\r
\r
\r
Status = KeyboardWaitForValue (ConsoleIn, KEYBOARD_8048_RETURN_8042_ACK);\r
if (EFI_ERROR (Status)) {\r
- KeyboardError (ConsoleIn, L"Some specific value not aquired from 8042 controller!\n\r");\r
+ KeyboardError (ConsoleIn, L"Some specific value not acquired from 8042 controller!\n\r");\r
goto Done;\r
}\r
//\r
}\r
\r
/**\r
- Judge whether is a registed key\r
+ Judge whether is a registered key\r
\r
@param RegsiteredData A pointer to a buffer that is filled in with the keystroke\r
state data for the key that was registered.\r
state data for the key that was pressed.\r
\r
@retval TRUE Key be pressed matches a registered key.\r
- @retval FLASE Match failed.\r
+ @retval FALSE Match failed.\r
\r
**/\r
BOOLEAN\r
\r
/**\r
Reads the next keystroke from the input device. The WaitForKey Event can\r
- be used to test for existance of a keystroke via WaitForEvent () call.\r
+ be used to test for existence of a keystroke via WaitForEvent () call.\r
\r
@param ConsoleInDev Ps2 Keyboard private structure\r
@param KeyData A pointer to a buffer that is filled in with the keystroke\r
\r
\r
@retval EFI_SUCCESS The keystroke information was returned.\r
- @retval EFI_NOT_READY There was no keystroke data availiable.\r
+ @retval EFI_NOT_READY There was no keystroke data available.\r
@retval EFI_DEVICE_ERROR The keystroke information was not returned due to\r
hardware errors.\r
@retval EFI_INVALID_PARAMETER KeyData is NULL.\r
Signal the event if there is key available\r
\r
@param Event the event object\r
- @param Context waitting context\r
+ @param Context waiting context\r
\r
**/\r
VOID\r
\r
if (!ConsoleIn->KeyboardErr) {\r
//\r
- // WaitforKey doesn't suppor the partial key.\r
+ // WaitforKey doesn't support the partial key.\r
// Considering if the partial keystroke is enabled, there maybe a partial\r
// keystroke in the queue, so here skip the partial keystroke and get the\r
// next key from the queue\r
}\r
\r
/**\r
- Reset the input device and optionaly run diagnostics\r
+ Reset the input device and optionally run diagnostics\r
\r
@param This Protocol instance pointer.\r
@param ExtendedVerification Driver may perform diagnostics on reset.\r
\r
/**\r
Reads the next keystroke from the input device. The WaitForKey Event can\r
- be used to test for existance of a keystroke via WaitForEvent () call.\r
+ be used to test for existence of a keystroke via WaitForEvent () call.\r
\r
\r
@param This Protocol instance pointer.\r
state data for the key that was pressed.\r
\r
@retval EFI_SUCCESS The keystroke information was returned.\r
- @retval EFI_NOT_READY There was no keystroke data availiable.\r
+ @retval EFI_NOT_READY There was no keystroke data available.\r
@retval EFI_DEVICE_ERROR The keystroke information was not returned due to\r
hardware errors.\r
@retval EFI_INVALID_PARAMETER KeyData is NULL.\r
@param NotifyHandle Points to the unique handle assigned to the registered notification.\r
\r
@retval EFI_SUCCESS The notification function was registered successfully.\r
- @retval EFI_OUT_OF_RESOURCES Unable to allocate resources for necesssary data structures.\r
+ @retval EFI_OUT_OF_RESOURCES Unable to allocate resources for necessary data structures.\r
@retval EFI_INVALID_PARAMETER KeyData or NotifyHandle or KeyNotificationFunction is NULL.\r
\r
**/\r
@param ListHead Pointer to list head\r
\r
@retval EFI_INVALID_PARAMETER ListHead is NULL\r
- @retval EFI_SUCCESS Sucess to free NotifyList\r
+ @retval EFI_SUCCESS Success to free NotifyList\r
**/\r
EFI_STATUS\r
KbdFreeNotifyList (\r
@param ListHead Pointer to list head\r
\r
@retval EFI_INVALID_PARAMETER ListHead is NULL\r
- @retval EFI_SUCCESS Sucess to free NotifyList\r
+ @retval EFI_SUCCESS Success to free NotifyList\r
**/\r
EFI_STATUS\r
KbdFreeNotifyList (\r
Signal the event if there is key available\r
\r
@param Event the event object\r
- @param Context waitting context\r
+ @param Context waiting context\r
\r
**/\r
VOID\r
//\r
\r
/**\r
- Reset the input device and optionaly run diagnostics\r
+ Reset the input device and optionally run diagnostics\r
\r
@param This - Protocol instance pointer.\r
@param ExtendedVerification - Driver may perform diagnostics on reset.\r
\r
/**\r
Reads the next keystroke from the input device. The WaitForKey Event can\r
- be used to test for existance of a keystroke via WaitForEvent () call.\r
+ be used to test for existence of a keystroke via WaitForEvent () call.\r
\r
\r
@param This - Protocol instance pointer.\r
state data for the key that was pressed.\r
\r
@retval EFI_SUCCESS - The keystroke information was returned.\r
- @retval EFI_NOT_READY - There was no keystroke data availiable.\r
+ @retval EFI_NOT_READY - There was no keystroke data available.\r
@retval EFI_DEVICE_ERROR - The keystroke information was not returned due to\r
hardware errors.\r
@retval EFI_INVALID_PARAMETER - KeyData is NULL.\r
@param NotifyHandle - Points to the unique handle assigned to the registered notification.\r
\r
@retval EFI_SUCCESS - The notification function was registered successfully.\r
- @retval EFI_OUT_OF_RESOURCES - Unable to allocate resources for necesssary data structures.\r
+ @retval EFI_OUT_OF_RESOURCES - Unable to allocate resources for necessary data structures.\r
@retval EFI_INVALID_PARAMETER - KeyData or NotifyHandle is NULL.\r
\r
**/\r
);\r
\r
/**\r
- Judge whether is a registed key\r
+ Judge whether is a registered key\r
\r
@param RegsiteredData A pointer to a buffer that is filled in with the keystroke\r
state data for the key that was registered.\r
state data for the key that was pressed.\r
\r
@retval TRUE Key be pressed matches a registered key.\r
- @retval FLASE Match failed.\r
+ @retval FALSE Match failed.\r
\r
**/\r
BOOLEAN\r
/**\r
I/O work flow to wait input buffer empty in given time.\r
\r
- @param Timeout Wating time.\r
+ @param Timeout Waiting time.\r
\r
@retval EFI_TIMEOUT if input is still not empty in given time.\r
@retval EFI_SUCCESS input is empty.\r
/**\r
I/O work flow to wait input buffer empty in given time.\r
\r
- @param Timeout Wating time.\r
+ @param Timeout Waiting time.\r
\r
@retval EFI_TIMEOUT if input is still not empty in given time.\r
@retval EFI_SUCCESS input is empty.\r
\r
Status = EFI_SUCCESS;\r
//\r
- // The PS2 mouse driver reset behavior is always successfully return no matter wheater or not there is mouse connected to system.\r
- // This behavior is needed by performance speed. The following mouse command only succeessfully finish when mouse device is\r
+ // The PS2 mouse driver reset behavior is always successfully return no matter whether or not there is mouse connected to system.\r
+ // This behavior is needed by performance speed. The following mouse command only successfully finish when mouse device is\r
// connected to system, so if PS2 mouse device not connect to system or user not ask for, we skip the mouse configuration and enabling\r
//\r
if (ExtendedVerification && CheckMouseConnect (MouseDev)) {\r
/**\r
Start this driver on ControllerHandle by opening a IsaIo\r
protocol, creating PS2_MOUSE_ABSOLUTE_POINTER_DEV device and install gEfiAbsolutePointerProtocolGuid\r
- finnally.\r
+ finally.\r
\r
@param This Protocol instance pointer.\r
@param ControllerHandle Handle of device to bind driver to\r
## @file\r
# PS2 Mouse Driver.\r
#\r
-# This dirver provides support for PS2 based mice.\r
+# This driver provides support for PS2 based mice.\r
#\r
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
// /** @file\r
// PS2 Mouse Driver.\r
//\r
-// This dirver provides support for PS2 based mice.\r
+// This driver provides support for PS2 based mice.\r
//\r
// Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
//\r