From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.groups.io with SMTP id smtpd.web09.8096.1575389836286472800 for ; Tue, 03 Dec 2019 08:17:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G8svfsKN; spf=pass (domain: redhat.com, ip: 207.211.31.81, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575389835; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PA7QnM5zrNfM9ecVyjCs65/J5mFW3NouzOMLmX5myhs=; b=G8svfsKNcgvWmLcQ49YRWXO/oL43mBf156zM9xTlLnlX+yAEtHHqZ5KgzGJQbumng7MnXf 6CFKEMsd8J/mYCzlIW8Lafg8RlTMoNcVIX8E4fZWp/aITyf9rVpjA7mUJ5Fx0qnZkq/FAg /Jrsm/ixoVTMxk54CukeHdUi1XmSoCg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-3-fWwyJAKjM3-mHBgzT-1wNg-1; Tue, 03 Dec 2019 11:17:13 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A322018AAFA1; Tue, 3 Dec 2019 16:17:11 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-86.brq.redhat.com [10.40.204.86]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BCB7560C81; Tue, 3 Dec 2019 16:17:08 +0000 (UTC) From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= To: devel@edk2.groups.io Cc: Antoine Coeur , Jian J Wang , Hao A Wu , Ray Ni , Philippe Mathieu-Daude Subject: [PATCH 15/79] MdeModulePkg/Bus/Isa: Fix various typos Date: Tue, 3 Dec 2019 17:14:58 +0100 Message-Id: <20191203161602.15969-16-philmd@redhat.com> In-Reply-To: <20191203161602.15969-1-philmd@redhat.com> References: <20191203161602.15969-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: fWwyJAKjM3-mHBgzT-1wNg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Antoine Coeur Fix various typos in documentation, comments and debug strings. Cc: Jian J Wang Cc: Hao A Wu Cc: Ray Ni Reviewed-by: Philippe Mathieu-Daude Signed-off-by: Philippe Mathieu-Daude --- MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf | 2 +- MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h | 14 +++++++------- MdeModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.h | 2 +- MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.h | 2 +- MdeModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.c | 6 +++--- MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c | 16 ++++++++-------- MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c | 20 ++++++++++-------= --- MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.c | 4 ++-- MdeModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.c | 2 +- MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.c | 4 ++-- MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.uni | 2 +- 11 files changed, 37 insertions(+), 37 deletions(-) diff --git a/MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf b/MdeModulePk= g/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf index cf2699c1d996..7e801ecd1f20 100644 --- a/MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf +++ b/MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf @@ -1,7 +1,7 @@ ## @file # PS2 Mouse Driver. # -# This dirver provides support for PS2 based mice. +# This driver provides support for PS2 based mice. # # Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
# diff --git a/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h b/MdeModuleP= kg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h index 3666ebc85e7a..c2762db03878 100644 --- a/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h +++ b/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h @@ -352,7 +352,7 @@ KeyboardReadKeyStroke ( Signal the event if there is key available =20 @param Event the event object - @param Context waitting context + @param Context waiting context =20 **/ VOID @@ -411,7 +411,7 @@ KeyboardWaitForKeyEx ( // =20 /** - Reset the input device and optionaly run diagnostics + Reset the input device and optionally run diagnostics =20 @param This - Protocol instance pointer. @param ExtendedVerification - Driver may perform diagnostics on reset. @@ -430,7 +430,7 @@ KeyboardEfiResetEx ( =20 /** Reads the next keystroke from the input device. The WaitForKey Event c= an - be used to test for existance of a keystroke via WaitForEvent () call. + be used to test for existence of a keystroke via WaitForEvent () call. =20 =20 @param This - Protocol instance pointer. @@ -438,7 +438,7 @@ KeyboardEfiResetEx ( state data for the key that was pressed. =20 @retval EFI_SUCCESS - The keystroke information was returned= . - @retval EFI_NOT_READY - There was no keystroke data availiable= . + @retval EFI_NOT_READY - There was no keystroke data available. @retval EFI_DEVICE_ERROR - The keystroke information was not retu= rned due to hardware errors. @retval EFI_INVALID_PARAMETER - KeyData is NULL. @@ -486,7 +486,7 @@ KeyboardSetState ( @param NotifyHandle - Points to the unique handle assigned = to the registered notification. =20 @retval EFI_SUCCESS - The notification function was regist= ered successfully. - @retval EFI_OUT_OF_RESOURCES - Unable to allocate resources for nec= esssary data structures. + @retval EFI_OUT_OF_RESOURCES - Unable to allocate resources for nec= essary data structures. @retval EFI_INVALID_PARAMETER - KeyData or NotifyHandle is NULL. =20 **/ @@ -531,7 +531,7 @@ PushEfikeyBufTail ( ); =20 /** - Judge whether is a registed key + Judge whether is a registered key =20 @param RegsiteredData A pointer to a buffer that is filled in with= the keystroke state data for the key that was registered. @@ -539,7 +539,7 @@ PushEfikeyBufTail ( state data for the key that was pressed. =20 @retval TRUE Key be pressed matches a registered key. - @retval FLASE Match failed. + @retval FALSE Match failed. =20 **/ BOOLEAN diff --git a/MdeModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.h b/MdeModulePkg/Bus/= Isa/Ps2MouseDxe/CommPs2.h index 61380a4d1fc6..60da42121173 100644 --- a/MdeModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.h +++ b/MdeModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.h @@ -362,7 +362,7 @@ CheckForInput ( /** I/O work flow to wait input buffer empty in given time. =20 - @param Timeout Wating time. + @param Timeout Waiting time. =20 @retval EFI_TIMEOUT if input is still not empty in given time. @retval EFI_SUCCESS input is empty. diff --git a/MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.h b/MdeModulePkg/Bus= /Isa/Ps2MouseDxe/Ps2Mouse.h index df2e283f6da3..1f7c310ad1f4 100644 --- a/MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.h +++ b/MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.h @@ -124,7 +124,7 @@ PS2MouseDriverSupported ( /** Start this driver on ControllerHandle by opening a IsaIo protocol, creating PS2_MOUSE_ABSOLUTE_POINTER_DEV device and install gEf= iAbsolutePointerProtocolGuid - finnally. + finally. =20 @param This Protocol instance pointer. @param ControllerHandle Handle of device to bind driver to diff --git a/MdeModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.c b/MdeModulePkg/Bus/= Isa/IsaBusDxe/IsaBusDxe.c index af4041081d6a..ccda7c3f706e 100644 --- a/MdeModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.c +++ b/MdeModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.c @@ -109,7 +109,7 @@ ISA_BUS_CHILD_PRIVATE_DATA mIsaBusChildPrivateTemplate = =3D { then a new handle is created. If it is a pointer to = an existing UEFI handle, then the protocol is added to the existing UEFI hand= le. =20 - @retval EFI_SUCCES The protocol was added to ChildHandle. + @retval EFI_SUCCESS The protocol was added to ChildHandle. @retval EFI_INVALID_PARAMETER ChildHandle is NULL. @retval EFI_OUT_OF_RESOURCES There are not enough resources available t= o create the child @@ -166,7 +166,7 @@ IsaBusCreateChild ( @param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance= . @param ChildHandle Handle of the child to destroy =20 - @retval EFI_SUCCES The protocol was removed from ChildHandle. + @retval EFI_SUCCESS The protocol was removed from ChildHandle. @retval EFI_UNSUPPORTED ChildHandle does not support the protocol = that is being removed. @retval EFI_INVALID_PARAMETER Child handle is NULL. @retval EFI_ACCESS_DENIED The protocol could not be removed from the= ChildHandle @@ -272,7 +272,7 @@ ISA_BUS_PRIVATE_DATA mIsaBusPrivateTemplate =3D { @retval EFI_SUCCESS The device was started. @retval EFI_DEVICE_ERROR The device could not be started due to = a device error.Currently not implemented. @retval EFI_OUT_OF_RESOURCES The request could not be completed due = to a lack of resources. - @retval Others The driver failded to start the device. + @retval Others The driver failed to start the device. =20 **/ EFI_STATUS diff --git a/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c b/MdeModul= ePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c index 87f6efd8dd64..d8d050b0a92a 100644 --- a/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c +++ b/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c @@ -799,7 +799,7 @@ KeyboardTimerHandler ( // // To let KB driver support Hot plug, here should skip the 'resend' comm= and for the case that // KB is not connected to system. If KB is not connected to system, driv= er will find there's something - // error in the following code and wait for the input buffer empty, this= waiting time shoulb be short enough since + // error in the following code and wait for the input buffer empty, this= waiting time should be short enough since // this is a NOTIFY TPL period function, or the system performance will = degrade hardly when KB is not connected. // Just skip the 'resend' process simply. // @@ -827,7 +827,7 @@ KeyboardTimerHandler ( @param ConsoleIn - Pointer to instance of KEYBOARD_CONSOLE_IN_DEV @param Data - Pointer to outof buffer for keeping key value =20 - @retval EFI_TIMEOUT Status resigter time out + @retval EFI_TIMEOUT Status register time out @retval EFI_SUCCESS Success to read keyboard =20 **/ @@ -871,7 +871,7 @@ KeyboardRead ( @param Data value wanted to be written =20 @retval EFI_TIMEOUT The input buffer register is full for putting new = value util timeout - @retval EFI_SUCCESS The new value is sucess put into input buffer regi= ster. + @retval EFI_SUCCESS The new value is success put into input buffer reg= ister. =20 **/ EFI_STATUS @@ -1688,7 +1688,7 @@ InitKeyboard ( if (EFI_ERROR (Status)) { KeyboardError ( ConsoleIn, - L"Some specific value not aquired from 8042 controller!\n\r" + L"Some specific value not acquired from 8042 controller!\n\r" ); goto Done; } @@ -1703,7 +1703,7 @@ InitKeyboard ( =20 Status =3D KeyboardWaitForValue (ConsoleIn, KEYBOARD_8048_RETURN_8042_= ACK); if (EFI_ERROR (Status)) { - KeyboardError (ConsoleIn, L"Some specific value not aquired from 804= 2 controller!\n\r"); + KeyboardError (ConsoleIn, L"Some specific value not acquired from 80= 42 controller!\n\r"); goto Done; } // @@ -1730,7 +1730,7 @@ InitKeyboard ( =20 Status =3D KeyboardWaitForValue (ConsoleIn, KEYBOARD_8048_RETURN_8042_= ACK); if (EFI_ERROR (Status)) { - KeyboardError (ConsoleIn, L"Some specific value not aquired from 804= 2 controller!\n\r"); + KeyboardError (ConsoleIn, L"Some specific value not acquired from 80= 42 controller!\n\r"); goto Done; } =20 @@ -1742,7 +1742,7 @@ InitKeyboard ( =20 Status =3D KeyboardWaitForValue (ConsoleIn, KEYBOARD_8048_RETURN_8042_= ACK); if (EFI_ERROR (Status)) { - KeyboardError (ConsoleIn, L"Some specific value not aquired from 804= 2 controller!\n\r"); + KeyboardError (ConsoleIn, L"Some specific value not acquired from 80= 42 controller!\n\r"); goto Done; } =20 @@ -1757,7 +1757,7 @@ InitKeyboard ( =20 Status =3D KeyboardWaitForValue (ConsoleIn, KEYBOARD_8048_RETURN_8042_AC= K); if (EFI_ERROR (Status)) { - KeyboardError (ConsoleIn, L"Some specific value not aquired from 8042 = controller!\n\r"); + KeyboardError (ConsoleIn, L"Some specific value not acquired from 8042= controller!\n\r"); goto Done; } // diff --git a/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c b/MdeModule= Pkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c index 458519cb71e6..835f33cfa800 100644 --- a/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c +++ b/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c @@ -77,7 +77,7 @@ PushEfikeyBufTail ( } =20 /** - Judge whether is a registed key + Judge whether is a registered key =20 @param RegsiteredData A pointer to a buffer that is filled in with= the keystroke state data for the key that was registered. @@ -85,7 +85,7 @@ PushEfikeyBufTail ( state data for the key that was pressed. =20 @retval TRUE Key be pressed matches a registered key. - @retval FLASE Match failed. + @retval FALSE Match failed. =20 **/ BOOLEAN @@ -120,7 +120,7 @@ IsKeyRegistered ( =20 /** Reads the next keystroke from the input device. The WaitForKey Event c= an - be used to test for existance of a keystroke via WaitForEvent () call. + be used to test for existence of a keystroke via WaitForEvent () call. =20 @param ConsoleInDev Ps2 Keyboard private structure @param KeyData A pointer to a buffer that is filled in w= ith the keystroke @@ -128,7 +128,7 @@ IsKeyRegistered ( =20 =20 @retval EFI_SUCCESS The keystroke information was returned= . - @retval EFI_NOT_READY There was no keystroke data availiable= . + @retval EFI_NOT_READY There was no keystroke data available. @retval EFI_DEVICE_ERROR The keystroke information was not retu= rned due to hardware errors. @retval EFI_INVALID_PARAMETER KeyData is NULL. @@ -308,7 +308,7 @@ KeyboardReadKeyStroke ( Signal the event if there is key available =20 @param Event the event object - @param Context waitting context + @param Context waiting context =20 **/ VOID @@ -333,7 +333,7 @@ KeyboardWaitForKey ( =20 if (!ConsoleIn->KeyboardErr) { // - // WaitforKey doesn't suppor the partial key. + // WaitforKey doesn't support the partial key. // Considering if the partial keystroke is enabled, there maybe a part= ial // keystroke in the queue, so here skip the partial keystroke and get = the // next key from the queue @@ -381,7 +381,7 @@ KeyboardWaitForKeyEx ( } =20 /** - Reset the input device and optionaly run diagnostics + Reset the input device and optionally run diagnostics =20 @param This Protocol instance pointer. @param ExtendedVerification Driver may perform diagnostics on reset. @@ -411,7 +411,7 @@ KeyboardEfiResetEx ( =20 /** Reads the next keystroke from the input device. The WaitForKey Event c= an - be used to test for existance of a keystroke via WaitForEvent () call. + be used to test for existence of a keystroke via WaitForEvent () call. =20 =20 @param This Protocol instance pointer. @@ -419,7 +419,7 @@ KeyboardEfiResetEx ( state data for the key that was pressed. =20 @retval EFI_SUCCESS The keystroke information was returned. - @retval EFI_NOT_READY There was no keystroke data availiable. + @retval EFI_NOT_READY There was no keystroke data available. @retval EFI_DEVICE_ERROR The keystroke information was not return= ed due to hardware errors. @retval EFI_INVALID_PARAMETER KeyData is NULL. @@ -540,7 +540,7 @@ Exit: @param NotifyHandle Points to the unique handle assigned= to the registered notification. =20 @retval EFI_SUCCESS The notification function was regist= ered successfully. - @retval EFI_OUT_OF_RESOURCES Unable to allocate resources for nec= esssary data structures. + @retval EFI_OUT_OF_RESOURCES Unable to allocate resources for nec= essary data structures. @retval EFI_INVALID_PARAMETER KeyData or NotifyHandle or KeyNotifi= cationFunction is NULL. =20 **/ diff --git a/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.c b/MdeModuleP= kg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.c index 2ee3a52ee58a..855fda742efc 100644 --- a/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.c +++ b/MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.c @@ -77,7 +77,7 @@ KbdControllerDriverStop ( @param ListHead Pointer to list head =20 @retval EFI_INVALID_PARAMETER ListHead is NULL - @retval EFI_SUCCESS Sucess to free NotifyList + @retval EFI_SUCCESS Success to free NotifyList **/ EFI_STATUS KbdFreeNotifyList ( @@ -597,7 +597,7 @@ KbdControllerDriverStop ( @param ListHead Pointer to list head =20 @retval EFI_INVALID_PARAMETER ListHead is NULL - @retval EFI_SUCCESS Sucess to free NotifyList + @retval EFI_SUCCESS Success to free NotifyList **/ EFI_STATUS KbdFreeNotifyList ( diff --git a/MdeModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.c b/MdeModulePkg/Bus/= Isa/Ps2MouseDxe/CommPs2.c index 4eb30276cd6f..d8fed87c1653 100644 --- a/MdeModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.c +++ b/MdeModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.c @@ -775,7 +775,7 @@ CheckForInput ( /** I/O work flow to wait input buffer empty in given time. =20 - @param Timeout Wating time. + @param Timeout Waiting time. =20 @retval EFI_TIMEOUT if input is still not empty in given time. @retval EFI_SUCCESS input is empty. diff --git a/MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.c b/MdeModulePkg/Bus= /Isa/Ps2MouseDxe/Ps2Mouse.c index fd34e3eaf89f..ebcb2a43dc3c 100644 --- a/MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.c +++ b/MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.c @@ -587,8 +587,8 @@ MouseReset ( =20 Status =3D EFI_SUCCESS; // - // The PS2 mouse driver reset behavior is always successfully return no = matter wheater or not there is mouse connected to system. - // This behavior is needed by performance speed. The following mouse com= mand only succeessfully finish when mouse device is + // The PS2 mouse driver reset behavior is always successfully return no = matter whether or not there is mouse connected to system. + // This behavior is needed by performance speed. The following mouse com= mand only successfully finish when mouse device is // connected to system, so if PS2 mouse device not connect to system or = user not ask for, we skip the mouse configuration and enabling // if (ExtendedVerification && CheckMouseConnect (MouseDev)) { diff --git a/MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.uni b/MdeModulePk= g/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.uni index 9e153e76db46..e41869a01359 100644 --- a/MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.uni +++ b/MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.uni @@ -1,7 +1,7 @@ // /** @file // PS2 Mouse Driver. // -// This dirver provides support for PS2 based mice. +// This driver provides support for PS2 based mice. // // Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
// --=20 2.21.0