TransferredSize = 0;\r
\r
//\r
- // retrieve the the max packet length of the given endpoint\r
+ // retrieve the max packet length of the given endpoint\r
//\r
if (Direction == EfiUsbDataIn) {\r
MaxPacketLen = (PeiBotDev->BulkInEndpoint)->MaxPacketSize;\r
/** @file\r
-Pei USB ATATPI command implementations.\r
+Pei USB ATAPI command implementations.\r
\r
Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
\r
/** @file\r
-Common Libarary for PEI USB.\r
+Common Library for PEI USB.\r
\r
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
\r
/** @file\r
-Common Libarary for PEI USB.\r
+Common Library for PEI USB.\r
\r
Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
\r
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
information 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
\r
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
\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
@param InputData A pointer to keystroke data for the key that was pressed.\r
\r
@retval TRUE Key pressed matches a registered key.\r
- @retval FLASE Key pressed does not matches a registered key.\r
+ @retval FALSE Key pressed does not matches a registered key.\r
\r
**/\r
BOOLEAN\r
// Functions of Simple Text Input Protocol\r
//\r
/**\r
- Reset the input device and optionaly run diagnostics\r
+ Reset the input device and optionally run diagnostics\r
\r
There are 2 types of reset for USB keyboard.\r
For non-exhaustive reset, only keyboard buffer is cleared.\r
information 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_DEVICE_ERROR The keydtroke information was not returned due to\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
\r
**/\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 InputData A pointer to keystroke data for the key that was pressed.\r
\r
@retval TRUE Key pressed matches a registered key.\r
- @retval FLASE Key pressed does not matche a registered key.\r
+ @retval FALSE Key pressed does not match a registered key.\r
\r
**/\r
BOOLEAN\r
};\r
\r
//\r
-// Keyboard modifier value to EFI Scan Code convertion table\r
+// Keyboard modifier value to EFI Scan Code conversion table\r
// EFI Scan Code and the modifier values are defined in UEFI spec.\r
//\r
UINT8 ModifierValueToEfiScanCodeConvertionTable[] = {\r
\r
This function is registered to event of EFI_HII_SET_KEYBOARD_LAYOUT_EVENT_GUID\r
group type, which will be triggered by EFI_HII_DATABASE_PROTOCOL.SetKeyboardLayout().\r
- It tries to get curent keyboard layout from HII database.\r
+ It tries to get current keyboard layout from HII database.\r
\r
@param Event Event being signaled.\r
@param Context Points to USB_KB_DEV instance.\r
\r
//\r
// Handle modifier key's pressing or releasing situation.\r
- // According to USB HID Firmware spec, Byte 0 uses folloing map of Modifier keys:\r
+ // According to USB HID Firmware spec, Byte 0 uses following map of Modifier keys:\r
// Bit0: Left Control, Keycode: 0xe0\r
// Bit1: Left Shift, Keycode: 0xe1\r
// Bit2: Left Alt, Keycode: 0xe2\r
\r
This function is the handler function for USB keyboard's asynchronous interrupt transfer\r
to manage the keyboard. It parses the USB keyboard input report, and inserts data to\r
- keyboard buffer according to state of modifer keys and normal keys. Timer for repeat key\r
+ keyboard buffer according to state of modifier keys and normal keys. Timer for repeat key\r
is also set accordingly.\r
\r
@param Data A pointer to a buffer that is filled with key data which is\r