From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.23593.1608472447806263143 for ; Sun, 20 Dec 2020 05:54:07 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: samer.el-haj-mahmoud@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 712C31063; Sun, 20 Dec 2020 05:53:57 -0800 (PST) Received: from U203705.Arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 20E263F66B; Sun, 20 Dec 2020 05:53:57 -0800 (PST) From: "Samer El-Haj-Mahmoud" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Zhichao Gao , Ray Ni , Ard Biesheuvel , Pete Batard Subject: [edk2-platform][PATCH v2 2/3] MdeModulePkg/Graphics: Fix spelling mistakes Date: Sun, 20 Dec 2020 08:53:54 -0500 Message-Id: <20201220135355.12814-3-Samer.El-Haj-Mahmoud@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201220135355.12814-1-Samer.El-Haj-Mahmoud@arm.com> References: <20201220135355.12814-1-Samer.El-Haj-Mahmoud@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Fix various spelling mistakes in GraphicsConsoleDxe, ConsPlitter, and SimpleTextOut header Cc: Jian J Wang Cc: Hao A Wu Cc: Zhichao Gao Cc: Ray Ni Cc: Ard Biesheuvel Cc: Pete Batard Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: Zhichao Gao --- MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.h | 8 += -- MdePkg/Include/Protocol/SimpleTextOut.h | 6 +- MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c | 66 += +++++++++---------- MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | 12 += +-- 4 files changed, 46 insertions(+), 46 deletions(-) diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsCons= ole.h b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.h index 28d47ac7cb1e..11d254b70f32 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.h +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.h @@ -205,7 +205,7 @@ GraphicsConsoleComponentNameGetControllerName ( Reset the text output device hardware and optionally run diagnostics.=0D =0D Implements SIMPLE_TEXT_OUTPUT.Reset().=0D - If ExtendeVerification is TRUE, then perform dependent Graphics Console= =0D + If ExtendedVerification is TRUE, then perform dependent Graphics Console= =0D device reset, and set display mode to mode 0.=0D If ExtendedVerification is FALSE, only set display mode to mode 0.=0D =0D @@ -286,7 +286,7 @@ GraphicsConsoleConOutTestString ( supports=0D =0D Implements SIMPLE_TEXT_OUTPUT.QueryMode().=0D - It returnes information for an available text mode that the Graphics Con= sole supports.=0D + It returns information for an available text mode that the Graphics Cons= ole supports.=0D In this driver,we only support text mode 80x25, which is defined as mode= 0.=0D =0D @param This Protocol instance pointer.=0D @@ -422,7 +422,7 @@ GraphicsConsoleConOutEnableCursor ( /**=0D Test to see if Graphics Console could be supported on the Controller.=0D =0D - Graphics Console could be supported if Graphics Output Protocol or UGA D= raw=0D + Graphics Console could be supported if Graphics Output Protocol or UGADr= aw=0D Protocol exists on the Controller. (UGA Draw Protocol could be skipped=0D if PcdUgaConsumeSupport is set to FALSE.)=0D =0D @@ -510,7 +510,7 @@ EfiLocateHiiProtocol ( =0D =0D /**=0D - Gets Graphics Console devcie's foreground color and background color.=0D + Gets Graphics Console device's foreground color and background color.=0D =0D @param This Protocol instance pointer.=0D @param Foreground Returned text foreground color.=0D diff --git a/MdePkg/Include/Protocol/SimpleTextOut.h b/MdePkg/Include/Proto= col/SimpleTextOut.h index a849c08d66df..100d69a23a9b 100644 --- a/MdePkg/Include/Protocol/SimpleTextOut.h +++ b/MdePkg/Include/Protocol/SimpleTextOut.h @@ -32,7 +32,7 @@ typedef struct _EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL EFI_SIMPL= E_TEXT_OUTPUT_PROTOCOL; typedef EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL SIMPLE_TEXT_OUTPUT_INTERFACE;=0D =0D //=0D -// Define's for required EFI Unicode Box Draw characters=0D +// Defines for required EFI Unicode Box Draw characters=0D //=0D #define BOXDRAW_HORIZONTAL 0x2500=0D #define BOXDRAW_VERTICAL 0x2502=0D @@ -151,7 +151,7 @@ typedef EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL SIMPLE_TEXT_O= UTPUT_INTERFACE; #define EFI_WIDE_ATTRIBUTE 0x80=0D =0D /**=0D - Reset the text output device hardware and optionaly run diagnostics=0D + Reset the text output device hardware and optionally run diagnostics=0D =0D @param This The protocol instance pointer.=0D @param ExtendedVerification Driver may perform more exhaustive verifica= tion=0D @@ -373,7 +373,7 @@ typedef struct { ///=0D INT32 CursorRow;=0D ///=0D - /// The cursor is currently visbile or not.=0D + /// The cursor is currently visible or not.=0D ///=0D BOOLEAN CursorVisible;=0D } EFI_SIMPLE_TEXT_OUTPUT_MODE;=0D diff --git a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c b/= MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c index 9c38271b65f9..b090de288517 100644 --- a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c +++ b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c @@ -1,5 +1,5 @@ /** @file=0D - Console Splitter Driver. Any Handle that attatched console I/O protocols= =0D + Console Splitter Driver. Any Handle that attached console I/O protocols= =0D (Console In device, Console Out device, Console Error device, Simple Poi= nter=0D protocol, Absolute Pointer protocol) can be bound by this driver.=0D =0D @@ -13,7 +13,7 @@ =0D Each virtual handle, that supports the Console I/O protocol, will be pro= duced=0D in the driver entry point. The virtual handle are added on driver entry = and=0D - never removed. Such design ensures sytem function well during none conso= le=0D + never removed. Such design ensures system function well during none cons= ole=0D device situation.=0D =0D Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
=0D @@ -381,7 +381,7 @@ ToggleStateSyncInitialization ( }=0D =0D /**=0D - Reinitialization for toggle state sync.=0D + Re-initialization for toggle state sync.=0D =0D @param Private Text In Splitter pointer.=0D =0D @@ -594,7 +594,7 @@ ConSplitterDriverEntry( structure.=0D =0D @retval EFI_OUT_OF_RESOURCES Out of resources.=0D - @retval EFI_SUCCESS Text Input Devcie's private data has be= en constructed.=0D + @retval EFI_SUCCESS Text Input Device's private data has be= en constructed.=0D @retval other Failed to construct private data.=0D =0D **/=0D @@ -761,7 +761,7 @@ ConSplitterTextOutConstructor ( }=0D =0D //=0D - // Initilize console output splitter's private data.=0D + // Initialize console output splitter's private data.=0D //=0D ConOutPrivate->TextOut.Mode =3D &ConOutPrivate->TextOutMode;=0D =0D @@ -860,7 +860,7 @@ ConSplitterTextOutConstructor ( @param Guid The specified protocol.=0D =0D @retval EFI_SUCCESS The specified protocol is supported on this = device.=0D - @retval EFI_UNSUPPORTED The specified protocol attempts to be instal= led on virtul handle.=0D + @retval EFI_UNSUPPORTED The specified protocol attempts to be instal= led on virtual handle.=0D @retval other Failed to open specified protocol on this de= vice.=0D =0D **/=0D @@ -1108,7 +1108,7 @@ ConSplitterStart ( }=0D =0D //=0D - // Open InterfaceGuid on the virtul handle.=0D + // Open InterfaceGuid on the virtual handle.=0D //=0D Status =3D gBS->OpenProtocol (=0D ControllerHandle,=0D @@ -1174,7 +1174,7 @@ ConSplitterConInDriverBindingStart ( =0D //=0D // Start ConSplitter on ControllerHandle, and create the virtual=0D - // agrogated console device on first call Start for a SimpleTextIn handl= e.=0D + // aggregated console device on first call Start for a SimpleTextIn hand= le.=0D //=0D Status =3D ConSplitterStart (=0D This,=0D @@ -1241,7 +1241,7 @@ ConSplitterSimplePointerDriverBindingStart ( =0D //=0D // Start ConSplitter on ControllerHandle, and create the virtual=0D - // agrogated console device on first call Start for a SimplePointer hand= le.=0D + // aggregated console device on first call Start for a SimplePointer han= dle.=0D //=0D Status =3D ConSplitterStart (=0D This,=0D @@ -1287,7 +1287,7 @@ ConSplitterAbsolutePointerDriverBindingStart ( =0D //=0D // Start ConSplitter on ControllerHandle, and create the virtual=0D - // agrogated console device on first call Start for a AbsolutePointer ha= ndle.=0D + // aggregated console device on first call Start for a AbsolutePointer h= andle.=0D //=0D Status =3D ConSplitterStart (=0D This,=0D @@ -1338,7 +1338,7 @@ ConSplitterConOutDriverBindingStart ( =0D //=0D // Start ConSplitter on ControllerHandle, and create the virtual=0D - // agrogated console device on first call Start for a ConsoleOut handle.= =0D + // aggregated console device on first call Start for a ConsoleOut handle= .=0D //=0D Status =3D ConSplitterStart (=0D This,=0D @@ -1451,7 +1451,7 @@ ConSplitterStdErrDriverBindingStart ( =0D //=0D // Start ConSplitter on ControllerHandle, and create the virtual=0D - // agrogated console device on first call Start for a StandardError hand= le.=0D + // aggregated console device on first call Start for a StandardError han= dle.=0D //=0D Status =3D ConSplitterStart (=0D This,=0D @@ -1522,7 +1522,7 @@ ConSplitterStop ( return Status;=0D }=0D //=0D - // close the protocol refered.=0D + // close the protocol referred.=0D //=0D gBS->CloseProtocol (=0D ControllerHandle,=0D @@ -1543,7 +1543,7 @@ ConSplitterStop ( =0D =0D /**=0D - Stop Console In ConSplitter on ControllerHandle by closing Console In De= vcice GUID.=0D + Stop Console In ConSplitter on ControllerHandle by closing Console In De= vice GUID.=0D =0D @param This Driver Binding protocol instance pointer.=0D @param ControllerHandle Handle of device to stop driver on=0D @@ -1718,7 +1718,7 @@ ConSplitterAbsolutePointerDriverBindingStop ( =0D =0D /**=0D - Stop Console Out ConSplitter on device handle by closing Console Out Dev= cice GUID.=0D + Stop Console Out ConSplitter on device handle by closing Console Out Dev= cie GUID.=0D =0D @param This Driver Binding protocol instance pointer.=0D @param ControllerHandle Handle of device to stop driver on=0D @@ -2725,7 +2725,7 @@ ConSplitterGetIntersectionBetweenConOutAndStrErr ( =0D =0D /**=0D - Add Grahpics Output modes into Consplitter Text Out list.=0D + Add Graphics Output modes into Consplitter Text Out list.=0D =0D @param Private Text Out Splitter pointer.=0D @param GraphicsOutput Graphics Output protocol pointer.=0D @@ -3392,7 +3392,7 @@ ConSplitterTextOutDeleteDevice ( return EFI_SUCCESS;=0D }=0D //=0D - // Max Mode is realy an intersection of the QueryMode command to all=0D + // Max Mode is really an intersection of the QueryMode command to all=0D // devices. So we must copy the QueryMode of the first device to=0D // QueryData.=0D //=0D @@ -3430,7 +3430,7 @@ ConSplitterTextOutDeleteDevice ( =0D =0D /**=0D - Reset the input device and optionaly run diagnostics=0D + Reset the input device and optionally run diagnostics=0D =0D @param This Protocol instance pointer.=0D @param ExtendedVerification Driver may perform diagnostics on reset= .=0D @@ -3514,7 +3514,7 @@ ConSplitterTextInExDequeueKey ( =0D /**=0D Reads the next keystroke from the input device. The WaitForKey Event can= =0D - be used to test for existance of a keystroke via WaitForEvent () call.=0D + be used to test for existence of a keystroke via WaitForEvent () call.=0D =0D @param Private Protocol instance pointer.=0D @param Key Driver may perform diagnostics on reset= .=0D @@ -3587,7 +3587,7 @@ ConSplitterTextInPrivateReadKeyStroke ( =0D /**=0D Reads the next keystroke from the input device. The WaitForKey Event can= =0D - be used to test for existance of a keystroke via WaitForEvent () call.=0D + be used to test for existence of a keystroke via WaitForEvent () call.=0D =0D @param This Protocol instance pointer.=0D @param Key Driver may perform diagnostics on reset= .=0D @@ -3631,7 +3631,7 @@ ConSplitterTextInReadKeyStroke ( spliter event. This will cause the calling code to call=0D ConSplitterTextInReadKeyStroke ().=0D =0D - @param Event The Event assoicated with callback.=0D + @param Event The Event associated with callback.=0D @param Context Context registered when Event was creat= ed.=0D =0D **/=0D @@ -3681,7 +3681,7 @@ ConSplitterTextInWaitForKey ( pressed.=0D =0D @retval TRUE Key be pressed matches a registered key= .=0D - @retval FLASE Match failed.=0D + @retval FALSE Match failed.=0D =0D **/=0D BOOLEAN=0D @@ -3715,7 +3715,7 @@ IsKeyRegistered ( =0D =0D /**=0D - Reset the input device and optionaly run diagnostics=0D + Reset the input device and optionally run diagnostics=0D =0D @param This Protocol instance pointer.=0D @param ExtendedVerification Driver may perform diagnostics on reset= .=0D @@ -3769,7 +3769,7 @@ ConSplitterTextInResetEx ( =0D /**=0D Reads the next keystroke from the input device. The WaitForKey Event can= =0D - be used to test for existance of a keystroke via WaitForEvent () call.=0D + be used to test for existence of a keystroke via WaitForEvent () call.=0D =0D @param This Protocol instance pointer.=0D @param KeyData A pointer to a buffer that is filled in= with the=0D @@ -3978,7 +3978,7 @@ ConSplitterTextInSetState ( =0D @retval EFI_SUCCESS The notification function was registere= d=0D successfully.=0D - @retval EFI_OUT_OF_RESOURCES Unable to allocate resources for necess= sary data=0D + @retval EFI_OUT_OF_RESOURCES Unable to allocate resources for necess= ary data=0D structures.=0D @retval EFI_INVALID_PARAMETER KeyData or KeyNotificationFunction or N= otifyHandle is NULL.=0D =0D @@ -4126,7 +4126,7 @@ ConSplitterTextInUnregisterKeyNotify ( =0D =0D /**=0D - Reset the input device and optionaly run diagnostics=0D + Reset the input device and optionally run diagnostics=0D =0D @param This Protocol instance pointer.=0D @param ExtendedVerification Driver may perform diagnostics on reset= .=0D @@ -4174,7 +4174,7 @@ ConSplitterSimplePointerReset ( =0D /**=0D Reads the next keystroke from the input device. The WaitForKey Event can= =0D - be used to test for existance of a keystroke via WaitForEvent () call.=0D + be used to test for existence of a keystroke via WaitForEvent () call.=0D =0D @param Private Protocol instance pointer.=0D @param State The state information of simple pointer= device.=0D @@ -4279,12 +4279,12 @@ ConSplitterSimplePointerGetState ( =0D =0D /**=0D - This event agregates all the events of the ConIn devices in the spliter.= =0D + This event aggregates all the events of the ConIn devices in the spliter= .=0D If any events of physical ConIn devices are signaled, signal the ConIn=0D spliter event. This will cause the calling code to call=0D ConSplitterTextInReadKeyStroke ().=0D =0D - @param Event The Event assoicated with callback.=0D + @param Event The Event associated with callback.=0D @param Context Context registered when Event was creat= ed.=0D =0D **/=0D @@ -4493,12 +4493,12 @@ ConSplitterAbsolutePointerGetState ( =0D =0D /**=0D - This event agregates all the events of the pointer devices in the splitt= er.=0D + This event aggregates all the events of the pointer devices in the split= ter.=0D If any events of physical pointer devices are signaled, signal the point= er=0D splitter event. This will cause the calling code to call=0D ConSplitterAbsolutePointerGetState ().=0D =0D - @param Event The Event assoicated with callback.=0D + @param Event The Event associated with callback.=0D @param Context Context registered when Event was creat= ed.=0D =0D **/=0D @@ -4537,10 +4537,10 @@ ConSplitterAbsolutePointerWaitForInput ( =0D =0D /**=0D - Reset the text output device hardware and optionaly run diagnostics=0D + Reset the text output device hardware and optionally run diagnostics=0D =0D @param This Protocol instance pointer.=0D - @param ExtendedVerification Driver may perform more exhaustive verf= ication=0D + @param ExtendedVerification Driver may perform more exhaustive veri= fication=0D operation of the device during reset.=0D =0D @retval EFI_SUCCESS The text output device was reset.=0D diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsCons= ole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c index 6b8d11d587d1..d6d8db51d5e9 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c @@ -214,7 +214,7 @@ Error: =0D @param[in] HorizontalResolution The size of video screen in pixels = in the X dimension.=0D @param[in] VerticalResolution The size of video screen in pixels = in the Y dimension.=0D - @param[in] GopModeNumber The graphics mode number which grap= his console is based on.=0D + @param[in] GopModeNumber The graphics mode number which grap= hics console is based on.=0D @param[out] TextModeCount The total number of text modes that= graphics console supports.=0D @param[out] TextModeData The buffer to the text modes column= and row information.=0D Caller is responsible to free it wh= en it's non-NULL.=0D @@ -491,7 +491,7 @@ GraphicsConsoleControllerDriverStart ( Mode =3D Private->GraphicsOutput->Mode;=0D if (EFI_ERROR (Status) && Mode->MaxMode !=3D 0) {=0D //=0D - // Set default mode failed or device don't support default mode,= then get the current mode information=0D + // If set default mode failed or device doesn't support default = mode, then get the current mode information=0D //=0D HorizontalResolution =3D Mode->Info->HorizontalResolution;=0D VerticalResolution =3D Mode->Info->VerticalResolution;=0D @@ -501,7 +501,7 @@ GraphicsConsoleControllerDriverStart ( }=0D if (ModeNumber !=3D Private->GraphicsOutput->Mode->Mode) {=0D //=0D - // Current graphics mode is not set or is not set to the mode which = we has found,=0D + // Current graphics mode is not set or is not set to the mode which = we have found,=0D // set the new graphic mode.=0D //=0D Status =3D Private->GraphicsOutput->SetMode (Private->GraphicsOutput= , ModeNumber);=0D @@ -740,7 +740,7 @@ GraphicsConsoleControllerDriverStop ( Check if the current specific mode supported the user defined resolution= =0D for the Graphics Console device based on Graphics Output Protocol.=0D =0D - If yes, set the graphic devcice's current mode to this specific mode.=0D + If yes, set the graphic device's current mode to this specific mode.=0D =0D @param GraphicsOutput Graphics Output Protocol instance pointer.= =0D @param HorizontalResolution User defined horizontal resolution=0D @@ -843,7 +843,7 @@ EfiLocateHiiProtocol ( Reset the text output device hardware and optionally run diagnostics.=0D =0D Implements SIMPLE_TEXT_OUTPUT.Reset().=0D - If ExtendeVerification is TRUE, then perform dependent Graphics Console= =0D + If ExtendedVerification is TRUE, then perform dependent Graphics Console= =0D device reset, and set display mode to mode 0.=0D If ExtendedVerification is FALSE, only set display mode to mode 0.=0D =0D @@ -1713,7 +1713,7 @@ GraphicsConsoleConOutEnableCursor ( }=0D =0D /**=0D - Gets Graphics Console devcie's foreground color and background color.=0D + Gets Graphics Console device's foreground color and background color.=0D =0D @param This Protocol instance pointer.=0D @param Foreground Returned text foreground color.=0D --=20 2.25.1