OvmfPkg/Csm: Fix various typos

Fix various typos in documentation, comments and strings.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Antoine Coeur <coeur@gmx.fr>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200207010831.9046-56-philmd@redhat.com>
This commit is contained in:
Antoine Coeur 2020-02-07 02:08:08 +01:00 committed by mergify[bot]
parent f221466ea7
commit 48cf40b8c9
21 changed files with 62 additions and 62 deletions

View File

@ -381,7 +381,7 @@ BiosVideoDriverBindingStart (
(FeaturePcdGet (PcdBiosVideoCheckVbeEnable) || FeaturePcdGet (PcdBiosVideoCheckVgaEnable))) { (FeaturePcdGet (PcdBiosVideoCheckVbeEnable) || FeaturePcdGet (PcdBiosVideoCheckVgaEnable))) {
// //
// If RemainingDevicePath is the End of Device Path Node, // If RemainingDevicePath is the End of Device Path Node,
// don't create any child device and return EFI_SUCESS // don't create any child device and return EFI_SUCCESS
Status = EFI_SUCCESS; Status = EFI_SUCCESS;
goto Done; goto Done;
} }
@ -3211,7 +3211,7 @@ BiosVideoVgaMiniPortSetMode (
/** /**
Event handler for Exit Boot Service. Event handler for Exit Boot Service.
@param Event The event that be siganlled when exiting boot service. @param Event The event that be signalled when exiting boot service.
@param Context Pointer to instance of BIOS_VIDEO_DEV. @param Context Pointer to instance of BIOS_VIDEO_DEV.
**/ **/

View File

@ -241,7 +241,7 @@ BiosVideoCheckForVga (
/** /**
Release resource for biso video instance. Release resource for BIOS video instance.
@param BiosVideoPrivate Video child device private data structure @param BiosVideoPrivate Video child device private data structure
@ -347,9 +347,9 @@ BiosVideoGraphicsOutputVbeBlt (
/** /**
Grahpics Output protocol instance to block transfer for VGA device. Graphics Output protocol instance to block transfer for VGA device.
@param This Pointer to Grahpics Output protocol instance @param This Pointer to Graphics Output protocol instance
@param BltBuffer The data to transfer to screen @param BltBuffer The data to transfer to screen
@param BltOperation The operation to perform @param BltOperation The operation to perform
@param SourceX The X coordinate of the source for BltOperation @param SourceX The X coordinate of the source for BltOperation
@ -412,7 +412,7 @@ BiosVideoVgaMiniPortSetMode (
/** /**
Event handler for Exit Boot Service. Event handler for Exit Boot Service.
@param Event The event that be siganlled when exiting boot service. @param Event The event that be signalled when exiting boot service.
@param Context Pointer to instance of BIOS_VIDEO_DEV. @param Context Pointer to instance of BIOS_VIDEO_DEV.
**/ **/
@ -506,7 +506,7 @@ BiosVideoChildHandleUninstall (
); );
/** /**
Release resource for biso video instance. Release resource for BIOS video instance.
@param BiosVideoPrivate Video child device private data structure @param BiosVideoPrivate Video child device private data structure

View File

@ -250,7 +250,7 @@ typedef struct {
#define VESA_BIOS_EXTENSIONS_VERSION_3_0 0x0300 #define VESA_BIOS_EXTENSIONS_VERSION_3_0 0x0300
// //
// Super VGA Information Block Capabilities field bit defintions // Super VGA Information Block Capabilities field bit definitions
// //
#define VESA_BIOS_EXTENSIONS_CAPABILITY_8_BIT_DAC 0x01 // 0: DAC width is fixed at 6 bits/color #define VESA_BIOS_EXTENSIONS_CAPABILITY_8_BIT_DAC 0x01 // 0: DAC width is fixed at 6 bits/color
// 1: DAC width switchable to 8 bits/color // 1: DAC width switchable to 8 bits/color
@ -358,7 +358,7 @@ typedef struct {
} VESA_BIOS_EXTENSIONS_MODE_INFORMATION_BLOCK; } VESA_BIOS_EXTENSIONS_MODE_INFORMATION_BLOCK;
// //
// Super VGA Mode Information Block ModeAttributes field bit defintions // Super VGA Mode Information Block ModeAttributes field bit definitions
// //
#define VESA_BIOS_EXTENSIONS_MODE_ATTRIBUTE_HARDWARE 0x0001 // 0: Mode not supported in handware #define VESA_BIOS_EXTENSIONS_MODE_ATTRIBUTE_HARDWARE 0x0001 // 0: Mode not supported in handware
// 1: Mode supported in handware // 1: Mode supported in handware
@ -396,7 +396,7 @@ typedef struct {
#define VESA_BIOS_EXTENSIONS_MODE_ATTRIBUTE_DUAL_DISPLAY 0x1000 // 0: No dual display start address support #define VESA_BIOS_EXTENSIONS_MODE_ATTRIBUTE_DUAL_DISPLAY 0x1000 // 0: No dual display start address support
// 1: Dual display start address support // 1: Dual display start address support
// //
// Super VGA Mode Information Block WinAAttribite/WinBAttributes field bit defintions // Super VGA Mode Information Block WinAAttribite/WinBAttributes field bit definitions
// //
#define VESA_BIOS_EXTENSIONS_WINX_ATTRIBUTE_RELOCATABLE 0x01 // 0: Single non-relocatable window only #define VESA_BIOS_EXTENSIONS_WINX_ATTRIBUTE_RELOCATABLE 0x01 // 0: Single non-relocatable window only
// 1: Relocatable window(s) are supported // 1: Relocatable window(s) are supported
@ -407,7 +407,7 @@ typedef struct {
#define VESA_BIOS_EXTENSIONS_WINX_ATTRIBUTE_WRITABLE 0x04 // 0: Window is not writable #define VESA_BIOS_EXTENSIONS_WINX_ATTRIBUTE_WRITABLE 0x04 // 0: Window is not writable
// 1: Window is writable // 1: Window is writable
// //
// Super VGA Mode Information Block DirectColorMode field bit defintions // Super VGA Mode Information Block DirectColorMode field bit definitions
// //
#define VESA_BIOS_EXTENSIONS_DIRECT_COLOR_MODE_PROG_COLOR_RAMP 0x01 // 0: Color ram is fixed #define VESA_BIOS_EXTENSIONS_DIRECT_COLOR_MODE_PROG_COLOR_RAMP 0x01 // 0: Color ram is fixed
// 1: Color ramp is programmable // 1: Color ramp is programmable

View File

@ -282,7 +282,7 @@ GetSelectedVgaDeviceInfo (
Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiPciIoProtocolGuid, (VOID**)&PciIo); Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiPciIoProtocolGuid, (VOID**)&PciIo);
if (!EFI_ERROR (Status)) { if (!EFI_ERROR (Status)) {
// //
// Detemine if this is in the correct bus range. // Determine if this is in the correct bus range.
// //
Status = PciIo->GetLocation (PciIo, &Segment, &Bus, &Device, &Function); Status = PciIo->GetLocation (PciIo, &Segment, &Bus, &Device, &Function);
if (EFI_ERROR(Status) || (Bus < MinBus || Bus > MaxBus)) { if (EFI_ERROR(Status) || (Bus < MinBus || Bus > MaxBus)) {
@ -501,7 +501,7 @@ GetPlatformHandle (
// //
// Be sure to only fill out correct information based on platform // Be sure to only fill out correct information based on platform
// configureation. // configuration.
// //
HddInfo[HddIndex].Status |= HDD_PRIMARY; HddInfo[HddIndex].Status |= HDD_PRIMARY;
HddInfo[HddIndex].Bus = (UINT32)Bus; HddInfo[HddIndex].Bus = (UINT32)Bus;
@ -882,7 +882,7 @@ TranslatePirq (
if (PirqData == 0) { if (PirqData == 0) {
// //
// No unused interrpts, so start reusing them. // No unused interrupts, so start reusing them.
// //
MatchData = (UINT8) (~MatchData); MatchData = (UINT8) (~MatchData);
} }

View File

@ -1,5 +1,5 @@
/** @file /** @file
This file contains the boot script defintions that are shared between the This file contains the boot script definitions that are shared between the
Boot Script Executor PPI and the Boot Script Save Protocol. Boot Script Executor PPI and the Boot Script Save Protocol.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR> Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>

View File

@ -271,7 +271,7 @@ typedef struct {
/// ///
/// Inconsistent with specification here: /// Inconsistent with specification here:
/// The following defintion may not comply with Framework Specification HII 0.92. To /// The following definition may not comply with Framework Specification HII 0.92. To
/// keep the inconsistant is for implementation needed. /// keep the inconsistant is for implementation needed.
///@{ ///@{
typedef struct { typedef struct {

View File

@ -145,7 +145,7 @@ typedef struct {
@param[in] SrcOffset The offset of the source in ISA MMIO space. @param[in] SrcOffset The offset of the source in ISA MMIO space.
@param[in] Count The number tranfers to perform for this copy operation. @param[in] Count The number tranfers to perform for this copy operation.
@retval EFI_SUCCESS The data was copied sucessfully. @retval EFI_SUCCESS The data was copied successfully.
@retval EFI_UNSUPPORTED The DestOffset or SrcOffset is not valid for this device. @retval EFI_UNSUPPORTED The DestOffset or SrcOffset is not valid for this device.
@retval EFI_INVALID_PARAMETER Width or Count, or both, were invalid. @retval EFI_INVALID_PARAMETER Width or Count, or both, were invalid.
@retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources. @retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.

View File

@ -1,7 +1,7 @@
/** @file /** @file
The EFI Legacy BIOS Protocol is used to abstract legacy Option ROM usage The EFI Legacy BIOS Protocol is used to abstract legacy Option ROM usage
under EFI and Legacy OS boot. This file also includes all the related under EFI and Legacy OS boot. This file also includes all the related
COMPATIBILIY16 structures and defintions. COMPATIBILIY16 structures and definitions.
Note: The names for EFI_IA32_REGISTER_SET elements were picked to follow Note: The names for EFI_IA32_REGISTER_SET elements were picked to follow
well known naming conventions. well known naming conventions.
@ -213,7 +213,7 @@ typedef struct {
/// value of the start of the PCI Express memory-mapped configuration registers and /// value of the start of the PCI Express memory-mapped configuration registers and
/// must be filled in prior to EfiCompatibility code issuing the Compatibility16 function /// must be filled in prior to EfiCompatibility code issuing the Compatibility16 function
/// Compatibility16InitializeYourself(). /// Compatibility16InitializeYourself().
/// Compatibility16InitializeYourself() is defined in Compatability16 /// Compatibility16InitializeYourself() is defined in Compatibility16
/// Functions. /// Functions.
/// ///
UINT32 PciExpressBase; UINT32 PciExpressBase;
@ -251,7 +251,7 @@ typedef struct {
/// ///
/// Functions provided by the CSM binary which communicate between the EfiCompatibility /// Functions provided by the CSM binary which communicate between the EfiCompatibility
/// and Compatability16 code. /// and Compatibility16 code.
/// ///
/// Inconsistent with the specification here: /// Inconsistent with the specification here:
/// The member's name started with "Compatibility16" [defined in Intel Framework /// The member's name started with "Compatibility16" [defined in Intel Framework

View File

@ -1,5 +1,5 @@
/** @file /** @file
The EFI Legacy BIOS Patform Protocol is used to mate a Legacy16 The EFI Legacy BIOS Platform Protocol is used to mate a Legacy16
implementation with this EFI code. The EFI driver that produces implementation with this EFI code. The EFI driver that produces
the Legacy BIOS protocol is generic and consumes this protocol. the Legacy BIOS protocol is generic and consumes this protocol.
A driver that matches the Legacy16 produces this protocol A driver that matches the Legacy16 produces this protocol
@ -383,7 +383,7 @@ typedef enum {
/// ///
/// ShadowAddress First free OpROM area, after other OpROMs have been dispatched.. /// ShadowAddress First free OpROM area, after other OpROMs have been dispatched..
/// ///
/// Compatibility16Table Pointer to the Compatability16 Table. /// Compatibility16Table Pointer to the Compatibility16 Table.
/// ///
/// AdditionalData NULL. /// AdditionalData NULL.
/// ///

View File

@ -30,7 +30,7 @@ typedef struct _EFI_VGA_MINI_PORT_PROTOCOL EFI_VGA_MINI_PORT_PROTOCOL;
ModeNumber of 1 is a request for an 80x50 text mode. If ModeNumber is greater ModeNumber of 1 is a request for an 80x50 text mode. If ModeNumber is greater
than MaxModeNumber, then EFI_UNSUPPORTED is returned. If the VGA controller than MaxModeNumber, then EFI_UNSUPPORTED is returned. If the VGA controller
is not functioning properly, then EFI_DEVICE_ERROR is returned. If the VGA is not functioning properly, then EFI_DEVICE_ERROR is returned. If the VGA
controller is sucessfully set to the mode number specified by ModeNumber, then controller is successfully set to the mode number specified by ModeNumber, then
EFI_SUCCESS is returned. EFI_SUCCESS is returned.
@param[in] This A pointer to the EFI_VGA_MINI_PORT_PROTOCOL instance. @param[in] This A pointer to the EFI_VGA_MINI_PORT_PROTOCOL instance.

View File

@ -107,7 +107,7 @@ AllocateLegacyMemory (
64 KB blocks. 64 KB blocks.
Note: inconsistency with the Framework CSM spec. Per the spec, this function may be Note: inconsistency with the Framework CSM spec. Per the spec, this function may be
invoked only once. This limitation is relaxed to allow multiple calls in this implemenation. invoked only once. This limitation is relaxed to allow multiple calls in this implementation.
@param This Protocol instance pointer. @param This Protocol instance pointer.
@param LegacyMemorySize Size of required region @param LegacyMemorySize Size of required region
@ -319,7 +319,7 @@ ShadowAndStartLegacy16 (
Private->LegacyBiosImageSize = (UINT32) LegacyBiosImageSize; Private->LegacyBiosImageSize = (UINT32) LegacyBiosImageSize;
// //
// Can only shadow into memory allocated for legacy useage. // Can only shadow into memory allocated for legacy usage.
// //
ASSERT (Private->BiosStart > Private->OptionRom); ASSERT (Private->BiosStart > Private->OptionRom);
@ -983,7 +983,7 @@ LegacyBiosInstall (
); );
// //
// Allocate 0 - 4K for real mode interupt vectors and BDA. // Allocate 0 - 4K for real mode interrupt vectors and BDA.
// //
AllocateLegacyMemory ( AllocateLegacyMemory (
AllocateAddress, AllocateAddress,

View File

@ -501,7 +501,7 @@ typedef struct {
EFI_GENERIC_MEMORY_TEST_PROTOCOL *GenericMemoryTest; EFI_GENERIC_MEMORY_TEST_PROTOCOL *GenericMemoryTest;
// //
// TRUE if PCI Interupt Line registers have been programmed. // TRUE if PCI Interrupt Line registers have been programmed.
// //
BOOLEAN PciInterruptLine; BOOLEAN PciInterruptLine;
@ -706,7 +706,7 @@ LegacyBiosInt86 (
the Stack argument the Stack argument
@param This Protocol instance pointer. @param This Protocol instance pointer.
@param Segment Segemnt of 16-bit mode call @param Segment Segment of 16-bit mode call
@param Offset Offset of 16-bit mdoe call @param Offset Offset of 16-bit mdoe call
@param Regs Register contexted passed into (and returned) from @param Regs Register contexted passed into (and returned) from
thunk to 16-bit mode thunk to 16-bit mode
@ -1004,7 +1004,7 @@ InitLegacyIdeController (
/** /**
Program the interrupt routing register in all the PCI devices. On a PC AT system Program the interrupt routing register in all the PCI devices. On a PC AT system
this register contains the 8259 IRQ vector that matches it's PCI interrupt. this register contains the 8259 IRQ vector that matches its PCI interrupt.
@param Private Legacy BIOS Instance data @param Private Legacy BIOS Instance data
@ -1418,7 +1418,7 @@ RelocateImageUnder4GIfNeeded (
the Stack argument the Stack argument
@param This Protocol instance pointer. @param This Protocol instance pointer.
@param Segment Segemnt of 16-bit mode call @param Segment Segment of 16-bit mode call
@param Offset Offset of 16-bit mdoe call @param Offset Offset of 16-bit mdoe call
@param Regs Register contexted passed into (and returned) from thunk to @param Regs Register contexted passed into (and returned) from thunk to
16-bit mode 16-bit mode

View File

@ -962,7 +962,7 @@ GenericLegacyBoot (
} }
// //
// We do not ASSERT if SmbiosTable not found. It is possbile that a platform does not produce SmbiosTable. // We do not ASSERT if SmbiosTable not found. It is possible that a platform does not produce SmbiosTable.
// //
if (mReserveSmbiosEntryPoint == 0) { if (mReserveSmbiosEntryPoint == 0) {
DEBUG ((EFI_D_INFO, "Smbios table is not found!\n")); DEBUG ((EFI_D_INFO, "Smbios table is not found!\n"));
@ -982,7 +982,7 @@ GenericLegacyBoot (
); );
} }
// //
// We do not ASSERT if AcpiTable not found. It is possbile that a platform does not produce AcpiTable. // We do not ASSERT if AcpiTable not found. It is possible that a platform does not produce AcpiTable.
// //
if (AcpiTable == NULL) { if (AcpiTable == NULL) {
DEBUG ((EFI_D_INFO, "ACPI table is not found!\n")); DEBUG ((EFI_D_INFO, "ACPI table is not found!\n"));

View File

@ -678,7 +678,7 @@ TranslateBusPirq (
Search busses starting from slot bus for final bus >= Secondary bus and Search busses starting from slot bus for final bus >= Secondary bus and
final bus <= Suborninate bus. Assumption is bus entries increase in bus final bus <= Subordinate bus. Assumption is bus entries increase in bus
number. number.
Starting PIRQ is A,B,C,D. Starting PIRQ is A,B,C,D.
Bus 2, Device 7 satisfies search criteria. Rotate (A,B,C,D) left by device Bus 2, Device 7 satisfies search criteria. Rotate (A,B,C,D) left by device
@ -914,7 +914,7 @@ InstallLegacyIrqHandler (
Legacy8259 = Private->Legacy8259; Legacy8259 = Private->Legacy8259;
// //
// Disable interrupt in PIC, in case shared, to prevent an // Disable interrupt in PIC, in case shared, to prevent an
// interrupt from occuring. // interrupt from occurring.
// //
Legacy8259->GetMask ( Legacy8259->GetMask (
Legacy8259, Legacy8259,
@ -1049,7 +1049,7 @@ InstallLegacyIrqHandler (
/** /**
Program the interrupt routing register in all the PCI devices. On a PC AT system Program the interrupt routing register in all the PCI devices. On a PC AT system
this register contains the 8259 IRQ vector that matches it's PCI interrupt. this register contains the 8259 IRQ vector that matches its PCI interrupt.
@param Private Legacy BIOS Instance data @param Private Legacy BIOS Instance data
@ -2582,7 +2582,7 @@ LegacyBiosInstallRom (
// do not follow the standard of setting AX = 0 on success. // do not follow the standard of setting AX = 0 on success.
// //
// //
// The ROM could have updated it's size so we need to read again. // The ROM could have updated its size so we need to read again.
// //
if (((EFI_LEGACY_EXPANSION_ROM_HEADER *) RuntimeAddress)->Signature != PCI_EXPANSION_ROM_HEADER_SIGNATURE) { if (((EFI_LEGACY_EXPANSION_ROM_HEADER *) RuntimeAddress)->Signature != PCI_EXPANSION_ROM_HEADER_SIGNATURE) {
// //

View File

@ -127,8 +127,8 @@ LegacyBiosFarCall86 (
Provide NULL interrupt handler which is used to check Provide NULL interrupt handler which is used to check
if there is more than one HW interrupt registers with the CPU AP. if there is more than one HW interrupt registers with the CPU AP.
@param InterruptType - The type of interrupt that occured @param InterruptType - The type of interrupt that occurred
@param SystemContext - A pointer to the system context when the interrupt occured @param SystemContext - A pointer to the system context when the interrupt occurred
**/ **/
VOID VOID

View File

@ -1,5 +1,5 @@
/** @file /** @file
Legacy Boot Maintainence UI implementation. Legacy Boot Maintenance UI implementation.
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR> Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR> (C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR>
@ -237,10 +237,10 @@ OrderLegacyBootOption4SameType (
/** /**
Update the legacy BBS boot option. L"LegacyDevOrder" and gEfiLegacyDevOrderVariableGuid EFI Variable Update the legacy BBS boot option. L"LegacyDevOrder" and gEfiLegacyDevOrderVariableGuid EFI Variable
is udpated with the new Legacy Boot order. The EFI Variable of "Boot####" and gEfiGlobalVariableGuid is updated with the new Legacy Boot order. The EFI Variable of "Boot####" and gEfiGlobalVariableGuid
is also updated. is also updated.
@param NVMapData The data for egacy BBS boot. @param NVMapData The data for legacy BBS boot.
@return EFI_SUCCESS The function completed successfully. @return EFI_SUCCESS The function completed successfully.
@retval EFI_NOT_FOUND If L"LegacyDevOrder" and gEfiLegacyDevOrderVariableGuid EFI Variable can not be found. @retval EFI_NOT_FOUND If L"LegacyDevOrder" and gEfiLegacyDevOrderVariableGuid EFI Variable can not be found.
@ -725,7 +725,7 @@ CreateLegacyMenuStringToken (
Create a dynamic page so that Legacy Device boot order Create a dynamic page so that Legacy Device boot order
can be set for specified device type. can be set for specified device type.
@param UpdatePageId The form ID. It also spefies the legacy device type. @param UpdatePageId The form ID. It also specifies the legacy device type.
**/ **/
@ -1127,8 +1127,8 @@ LegacyBootOptionCallback (
if (QuestionId == FORM_FLOPPY_BOOT_ID) { if (QuestionId == FORM_FLOPPY_BOOT_ID) {
if (!mFirstEnterLegacyForm) { if (!mFirstEnterLegacyForm) {
// //
// The leagcyBootMaintUiLib depends on the LegacyBootManagerLib to realize its functionality. // The legacyBootMaintUiLib depends on the LegacyBootManagerLib to realize its functionality.
// We need to do the leagcy boot options related actions after the LegacyBootManagerLib has been initialized. // We need to do the legacy boot options related actions after the LegacyBootManagerLib has been initialized.
// Opening the legacy menus is the appropriate time that the LegacyBootManagerLib has already been initialized. // Opening the legacy menus is the appropriate time that the LegacyBootManagerLib has already been initialized.
// //
mFirstEnterLegacyForm = TRUE; mFirstEnterLegacyForm = TRUE;
@ -1403,7 +1403,7 @@ GetLegacyOptions (
@param ImageHandle The image handle. @param ImageHandle The image handle.
@param SystemTable The system table. @param SystemTable The system table.
@retval EFI_SUCEESS Install Boot manager menu success. @retval EFI_SUCCESS Install Boot manager menu success.
@retval Other Return error status. @retval Other Return error status.
**/ **/

View File

@ -1,5 +1,5 @@
/** @file /** @file
Legacy boot maintainence Ui definition. Legacy boot maintenance Ui definition.
Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR> Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent SPDX-License-Identifier: BSD-2-Clause-Patent
@ -61,7 +61,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
// //
// String Contant // String Constant
// //
#define STR_FLOPPY L"Floppy Drive #%02x" #define STR_FLOPPY L"Floppy Drive #%02x"
#define STR_HARDDISK L"HardDisk Drive #%02x" #define STR_HARDDISK L"HardDisk Drive #%02x"

View File

@ -1,5 +1,5 @@
## @file ## @file
# Legacy Boot Maintainence UI module is library for BDS phase. # Legacy Boot Maintenance UI module is library for BDS phase.
# #
# Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR> # Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent # SPDX-License-Identifier: BSD-2-Clause-Patent

View File

@ -1,7 +1,7 @@
// /** @file // /** @file
// Legacy Boot Maintainence UI module is library for BDS phase. // Legacy Boot Maintenance UI module is library for BDS phase.
// //
// Legacy Boot Maintainence UI module is library for BDS phase. // Legacy Boot Maintenance UI module is library for BDS phase.
// //
// Copyright (c) 2015, Intel Corporation. All rights reserved.<BR> // Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
// //
@ -11,10 +11,10 @@
#string STR_MODULE_ABSTRACT #string STR_MODULE_ABSTRACT
#language en-US #language en-US
"Legacy Boot Maintainence UI module is library for BDS phase." "Legacy Boot Maintenance UI module is library for BDS phase."
#string STR_MODULE_DESCRIPTION #string STR_MODULE_DESCRIPTION
#language en-US #language en-US
"Legacy Boot Maintainence UI module is library for BDS phase." "Legacy Boot Maintenance UI module is library for BDS phase."

View File

@ -1,5 +1,5 @@
/** @file /** @file
Legacy Boot Maintainence UI definition. Legacy Boot Maintenance UI definition.
Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR> Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent SPDX-License-Identifier: BSD-2-Clause-Patent

View File

@ -173,7 +173,7 @@ LegacyBmBuildLegacyDevNameString (
StringDesc = (CHAR8 *) (((UINTN) CurBBSEntry->DescStringSegment << 4) + CurBBSEntry->DescStringOffset); StringDesc = (CHAR8 *) (((UINTN) CurBBSEntry->DescStringSegment << 4) + CurBBSEntry->DescStringOffset);
if (NULL != StringDesc) { if (NULL != StringDesc) {
// //
// Only get fisrt 32 characters, this is suggested by BBS spec // Only get first 32 characters, this is suggested by BBS spec
// //
CopyMem (StringBufferA, StringDesc, LEGACY_BM_BOOT_DESCRIPTION_LENGTH); CopyMem (StringBufferA, StringDesc, LEGACY_BM_BOOT_DESCRIPTION_LENGTH);
StringBufferA[LEGACY_BM_BOOT_DESCRIPTION_LENGTH] = 0; StringBufferA[LEGACY_BM_BOOT_DESCRIPTION_LENGTH] = 0;
@ -378,9 +378,9 @@ LegacyBmDeleteAllBootOptions (
/** /**
Delete all the invalid legacy boot options. Delete all the invalid legacy boot options.
@retval EFI_SUCCESS All invalide legacy boot options are deleted. @retval EFI_SUCCESS All invalid legacy boot options are deleted.
@retval EFI_OUT_OF_RESOURCES Fail to allocate necessary memory. @retval EFI_OUT_OF_RESOURCES Fail to allocate necessary memory.
@retval EFI_NOT_FOUND Fail to retrive variable of boot order. @retval EFI_NOT_FOUND Fail to retrieve variable of boot order.
**/ **/
EFI_STATUS EFI_STATUS
LegacyBmDeleteAllInvalidBootOptions ( LegacyBmDeleteAllInvalidBootOptions (
@ -499,7 +499,7 @@ LegacyBmDeleteAllInvalidBootOptions (
/** /**
Create legacy boot option. Create legacy boot option.
@param BootOption Ponter to the boot option which will be crated. @param BootOption Pointer to the boot option which will be crated.
@param BbsEntry The input bbs entry info. @param BbsEntry The input bbs entry info.
@param BbsIndex The BBS index. @param BbsIndex The BBS index.
@ -615,10 +615,10 @@ LegacyBmFillDevOrderBuf (
@param BbsTable The BBS table. @param BbsTable The BBS table.
@param BbsCount The BBS Count. @param BbsCount The BBS Count.
@retval EFI_SUCCES The buffer is created and the EFI variable named @retval EFI_SUCCESS The buffer is created and the EFI variable named
VAR_LEGACY_DEV_ORDER and EfiLegacyDevOrderGuid is VAR_LEGACY_DEV_ORDER and EfiLegacyDevOrderGuid is
set correctly. set correctly.
@retval EFI_OUT_OF_RESOURCES Memmory or storage is not enough. @retval EFI_OUT_OF_RESOURCES Memory or storage is not enough.
@retval EFI_DEVICE_ERROR Fail to add the device order into EFI variable fail @retval EFI_DEVICE_ERROR Fail to add the device order into EFI variable fail
because of hardware error. because of hardware error.
**/ **/
@ -742,7 +742,7 @@ LegacyBmCreateDevOrder (
@retval EFI_SUCCESS The boot devices are added successfully. @retval EFI_SUCCESS The boot devices are added successfully.
@retval EFI_NOT_FOUND The legacy boot devices are not found. @retval EFI_NOT_FOUND The legacy boot devices are not found.
@retval EFI_OUT_OF_RESOURCES Memmory or storage is not enough. @retval EFI_OUT_OF_RESOURCES Memory or storage is not enough.
@retval EFI_DEVICE_ERROR Fail to add the legacy device boot order into EFI variable @retval EFI_DEVICE_ERROR Fail to add the legacy device boot order into EFI variable
because of hardware error. because of hardware error.
**/ **/
@ -1042,7 +1042,7 @@ LegacyBmUpdateDevOrder (
@param DeviceType The device type. @param DeviceType The device type.
@param BbsIndex The BBS index to set the highest priority. Ignore when -1. @param BbsIndex The BBS index to set the highest priority. Ignore when -1.
@param LocalBbsTable The BBS table. @param LocalBbsTable The BBS table.
@param Priority The prority table. @param Priority The priority table.
@retval EFI_SUCCESS The function completes successfully. @retval EFI_SUCCESS The function completes successfully.
@retval EFI_NOT_FOUND Failed to find device. @retval EFI_NOT_FOUND Failed to find device.
@ -1494,7 +1494,7 @@ LegacyBmRefreshAllBootOption (
// //
// Same algorithm pattern as the EfiBootManagerRefreshAllBootOption // Same algorithm pattern as the EfiBootManagerRefreshAllBootOption
// Firstly delete the invalid legacy boot options, // Firstly delete the invalid legacy boot options,
// then enumreate and save the newly appeared legacy boot options // then enumerate and save the newly appeared legacy boot options
// the last step is legacy boot option special action to refresh the LegacyDevOrder variable // the last step is legacy boot option special action to refresh the LegacyDevOrder variable
// //
LegacyBmDeleteAllInvalidBootOptions (); LegacyBmDeleteAllInvalidBootOptions ();