(FeaturePcdGet (PcdBiosVideoCheckVbeEnable) || FeaturePcdGet (PcdBiosVideoCheckVgaEnable))) {\r
//\r
// If RemainingDevicePath is the End of Device Path Node,\r
- // don't create any child device and return EFI_SUCESS\r
+ // don't create any child device and return EFI_SUCCESS\r
Status = EFI_SUCCESS;\r
goto Done;\r
}\r
/**\r
Event handler for Exit Boot Service.\r
\r
- @param Event The event that be siganlled when exiting boot service.\r
+ @param Event The event that be signalled when exiting boot service.\r
@param Context Pointer to instance of BIOS_VIDEO_DEV.\r
\r
**/\r
\r
\r
/**\r
- Release resource for biso video instance.\r
+ Release resource for BIOS video instance.\r
\r
@param BiosVideoPrivate Video child device private data structure\r
\r
\r
\r
/**\r
- Grahpics Output protocol instance to block transfer for VGA device.\r
+ Graphics Output protocol instance to block transfer for VGA device.\r
\r
- @param This Pointer to Grahpics Output protocol instance\r
+ @param This Pointer to Graphics Output protocol instance\r
@param BltBuffer The data to transfer to screen\r
@param BltOperation The operation to perform\r
@param SourceX The X coordinate of the source for BltOperation\r
/**\r
Event handler for Exit Boot Service.\r
\r
- @param Event The event that be siganlled when exiting boot service.\r
+ @param Event The event that be signalled when exiting boot service.\r
@param Context Pointer to instance of BIOS_VIDEO_DEV.\r
\r
**/\r
);\r
\r
/**\r
- Release resource for biso video instance.\r
+ Release resource for BIOS video instance.\r
\r
@param BiosVideoPrivate Video child device private data structure\r
\r
#define VESA_BIOS_EXTENSIONS_VERSION_3_0 0x0300\r
\r
//\r
-// Super VGA Information Block Capabilities field bit defintions\r
+// Super VGA Information Block Capabilities field bit definitions\r
//\r
#define VESA_BIOS_EXTENSIONS_CAPABILITY_8_BIT_DAC 0x01 // 0: DAC width is fixed at 6 bits/color\r
// 1: DAC width switchable to 8 bits/color\r
} VESA_BIOS_EXTENSIONS_MODE_INFORMATION_BLOCK;\r
\r
//\r
-// Super VGA Mode Information Block ModeAttributes field bit defintions\r
+// Super VGA Mode Information Block ModeAttributes field bit definitions\r
//\r
#define VESA_BIOS_EXTENSIONS_MODE_ATTRIBUTE_HARDWARE 0x0001 // 0: Mode not supported in handware\r
// 1: Mode supported in handware\r
#define VESA_BIOS_EXTENSIONS_MODE_ATTRIBUTE_DUAL_DISPLAY 0x1000 // 0: No dual display start address support\r
// 1: Dual display start address support\r
//\r
-// Super VGA Mode Information Block WinAAttribite/WinBAttributes field bit defintions\r
+// Super VGA Mode Information Block WinAAttribite/WinBAttributes field bit definitions\r
//\r
#define VESA_BIOS_EXTENSIONS_WINX_ATTRIBUTE_RELOCATABLE 0x01 // 0: Single non-relocatable window only\r
// 1: Relocatable window(s) are supported\r
#define VESA_BIOS_EXTENSIONS_WINX_ATTRIBUTE_WRITABLE 0x04 // 0: Window is not writable\r
// 1: Window is writable\r
//\r
-// Super VGA Mode Information Block DirectColorMode field bit defintions\r
+// Super VGA Mode Information Block DirectColorMode field bit definitions\r
//\r
#define VESA_BIOS_EXTENSIONS_DIRECT_COLOR_MODE_PROG_COLOR_RAMP 0x01 // 0: Color ram is fixed\r
// 1: Color ramp is programmable\r
Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiPciIoProtocolGuid, (VOID**)&PciIo);\r
if (!EFI_ERROR (Status)) {\r
//\r
- // Detemine if this is in the correct bus range.\r
+ // Determine if this is in the correct bus range.\r
//\r
Status = PciIo->GetLocation (PciIo, &Segment, &Bus, &Device, &Function);\r
if (EFI_ERROR(Status) || (Bus < MinBus || Bus > MaxBus)) {\r
\r
//\r
// Be sure to only fill out correct information based on platform\r
- // configureation.\r
+ // configuration.\r
//\r
HddInfo[HddIndex].Status |= HDD_PRIMARY;\r
HddInfo[HddIndex].Bus = (UINT32)Bus;\r
if (PirqData == 0) {\r
\r
//\r
- // No unused interrpts, so start reusing them.\r
+ // No unused interrupts, so start reusing them.\r
//\r
MatchData = (UINT8) (~MatchData);\r
}\r
/** @file\r
- This file contains the boot script defintions that are shared between the\r
+ This file contains the boot script definitions that are shared between the\r
Boot Script Executor PPI and the Boot Script Save Protocol.\r
\r
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
\r
///\r
/// Inconsistent with specification here:\r
-/// The following defintion may not comply with Framework Specification HII 0.92. To\r
+/// The following definition may not comply with Framework Specification HII 0.92. To\r
/// keep the inconsistant is for implementation needed.\r
///@{\r
typedef struct {\r
@param[in] SrcOffset The offset of the source in ISA MMIO space.\r
@param[in] Count The number tranfers to perform for this copy operation.\r
\r
- @retval EFI_SUCCESS The data was copied sucessfully.\r
+ @retval EFI_SUCCESS The data was copied successfully.\r
@retval EFI_UNSUPPORTED The DestOffset or SrcOffset is not valid for this device.\r
@retval EFI_INVALID_PARAMETER Width or Count, or both, were invalid.\r
@retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack of resources.\r
/** @file\r
The EFI Legacy BIOS Protocol is used to abstract legacy Option ROM usage\r
under EFI and Legacy OS boot. This file also includes all the related\r
- COMPATIBILIY16 structures and defintions.\r
+ COMPATIBILIY16 structures and definitions.\r
\r
Note: The names for EFI_IA32_REGISTER_SET elements were picked to follow\r
well known naming conventions.\r
/// value of the start of the PCI Express memory-mapped configuration registers and\r
/// must be filled in prior to EfiCompatibility code issuing the Compatibility16 function\r
/// Compatibility16InitializeYourself().\r
- /// Compatibility16InitializeYourself() is defined in Compatability16\r
+ /// Compatibility16InitializeYourself() is defined in Compatibility16\r
/// Functions.\r
///\r
UINT32 PciExpressBase;\r
\r
///\r
/// Functions provided by the CSM binary which communicate between the EfiCompatibility\r
-/// and Compatability16 code.\r
+/// and Compatibility16 code.\r
///\r
/// Inconsistent with the specification here:\r
/// The member's name started with "Compatibility16" [defined in Intel Framework\r
/** @file\r
- The EFI Legacy BIOS Patform Protocol is used to mate a Legacy16\r
+ The EFI Legacy BIOS Platform Protocol is used to mate a Legacy16\r
implementation with this EFI code. The EFI driver that produces\r
the Legacy BIOS protocol is generic and consumes this protocol.\r
A driver that matches the Legacy16 produces this protocol\r
///\r
/// ShadowAddress First free OpROM area, after other OpROMs have been dispatched..\r
///\r
- /// Compatibility16Table Pointer to the Compatability16 Table.\r
+ /// Compatibility16Table Pointer to the Compatibility16 Table.\r
///\r
/// AdditionalData NULL.\r
///\r
ModeNumber of 1 is a request for an 80x50 text mode. If ModeNumber is greater\r
than MaxModeNumber, then EFI_UNSUPPORTED is returned. If the VGA controller\r
is not functioning properly, then EFI_DEVICE_ERROR is returned. If the VGA\r
- controller is sucessfully set to the mode number specified by ModeNumber, then\r
+ controller is successfully set to the mode number specified by ModeNumber, then\r
EFI_SUCCESS is returned.\r
\r
@param[in] This A pointer to the EFI_VGA_MINI_PORT_PROTOCOL instance.\r
64 KB blocks.\r
\r
Note: inconsistency with the Framework CSM spec. Per the spec, this function may be\r
- invoked only once. This limitation is relaxed to allow multiple calls in this implemenation.\r
+ invoked only once. This limitation is relaxed to allow multiple calls in this implementation.\r
\r
@param This Protocol instance pointer.\r
@param LegacyMemorySize Size of required region\r
Private->LegacyBiosImageSize = (UINT32) LegacyBiosImageSize;\r
\r
//\r
- // Can only shadow into memory allocated for legacy useage.\r
+ // Can only shadow into memory allocated for legacy usage.\r
//\r
ASSERT (Private->BiosStart > Private->OptionRom);\r
\r
);\r
\r
//\r
- // Allocate 0 - 4K for real mode interupt vectors and BDA.\r
+ // Allocate 0 - 4K for real mode interrupt vectors and BDA.\r
//\r
AllocateLegacyMemory (\r
AllocateAddress,\r
EFI_GENERIC_MEMORY_TEST_PROTOCOL *GenericMemoryTest;\r
\r
//\r
- // TRUE if PCI Interupt Line registers have been programmed.\r
+ // TRUE if PCI Interrupt Line registers have been programmed.\r
//\r
BOOLEAN PciInterruptLine;\r
\r
the Stack argument\r
\r
@param This Protocol instance pointer.\r
- @param Segment Segemnt of 16-bit mode call\r
+ @param Segment Segment of 16-bit mode call\r
@param Offset Offset of 16-bit mdoe call\r
@param Regs Register contexted passed into (and returned) from\r
thunk to 16-bit mode\r
\r
/**\r
Program the interrupt routing register in all the PCI devices. On a PC AT system\r
- this register contains the 8259 IRQ vector that matches it's PCI interrupt.\r
+ this register contains the 8259 IRQ vector that matches its PCI interrupt.\r
\r
@param Private Legacy BIOS Instance data\r
\r
the Stack argument\r
\r
@param This Protocol instance pointer.\r
- @param Segment Segemnt of 16-bit mode call\r
+ @param Segment Segment of 16-bit mode call\r
@param Offset Offset of 16-bit mdoe call\r
@param Regs Register contexted passed into (and returned) from thunk to\r
16-bit mode\r
}\r
\r
//\r
- // We do not ASSERT if SmbiosTable not found. It is possbile that a platform does not produce SmbiosTable.\r
+ // We do not ASSERT if SmbiosTable not found. It is possible that a platform does not produce SmbiosTable.\r
//\r
if (mReserveSmbiosEntryPoint == 0) {\r
DEBUG ((EFI_D_INFO, "Smbios table is not found!\n"));\r
);\r
}\r
//\r
- // We do not ASSERT if AcpiTable not found. It is possbile that a platform does not produce AcpiTable.\r
+ // We do not ASSERT if AcpiTable not found. It is possible that a platform does not produce AcpiTable.\r
//\r
if (AcpiTable == NULL) {\r
DEBUG ((EFI_D_INFO, "ACPI table is not found!\n"));\r
\r
\r
Search busses starting from slot bus for final bus >= Secondary bus and\r
-final bus <= Suborninate bus. Assumption is bus entries increase in bus\r
+final bus <= Subordinate bus. Assumption is bus entries increase in bus\r
number.\r
Starting PIRQ is A,B,C,D.\r
Bus 2, Device 7 satisfies search criteria. Rotate (A,B,C,D) left by device\r
Legacy8259 = Private->Legacy8259;\r
//\r
// Disable interrupt in PIC, in case shared, to prevent an\r
- // interrupt from occuring.\r
+ // interrupt from occurring.\r
//\r
Legacy8259->GetMask (\r
Legacy8259,\r
\r
/**\r
Program the interrupt routing register in all the PCI devices. On a PC AT system\r
- this register contains the 8259 IRQ vector that matches it's PCI interrupt.\r
+ this register contains the 8259 IRQ vector that matches its PCI interrupt.\r
\r
@param Private Legacy BIOS Instance data\r
\r
// do not follow the standard of setting AX = 0 on success.\r
//\r
//\r
- // The ROM could have updated it's size so we need to read again.\r
+ // The ROM could have updated its size so we need to read again.\r
//\r
if (((EFI_LEGACY_EXPANSION_ROM_HEADER *) RuntimeAddress)->Signature != PCI_EXPANSION_ROM_HEADER_SIGNATURE) {\r
//\r
Provide NULL interrupt handler which is used to check\r
if there is more than one HW interrupt registers with the CPU AP.\r
\r
- @param InterruptType - The type of interrupt that occured\r
- @param SystemContext - A pointer to the system context when the interrupt occured\r
+ @param InterruptType - The type of interrupt that occurred\r
+ @param SystemContext - A pointer to the system context when the interrupt occurred\r
\r
**/\r
VOID\r
/** @file\r
- Legacy Boot Maintainence UI implementation.\r
+ Legacy Boot Maintenance UI implementation.\r
\r
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
(C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR>\r
\r
/**\r
Update the legacy BBS boot option. L"LegacyDevOrder" and gEfiLegacyDevOrderVariableGuid EFI Variable\r
- is udpated with the new Legacy Boot order. The EFI Variable of "Boot####" and gEfiGlobalVariableGuid\r
+ is updated with the new Legacy Boot order. The EFI Variable of "Boot####" and gEfiGlobalVariableGuid\r
is also updated.\r
\r
- @param NVMapData The data for egacy BBS boot.\r
+ @param NVMapData The data for legacy BBS boot.\r
\r
@return EFI_SUCCESS The function completed successfully.\r
@retval EFI_NOT_FOUND If L"LegacyDevOrder" and gEfiLegacyDevOrderVariableGuid EFI Variable can not be found.\r
Create a dynamic page so that Legacy Device boot order\r
can be set for specified device type.\r
\r
- @param UpdatePageId The form ID. It also spefies the legacy device type.\r
+ @param UpdatePageId The form ID. It also specifies the legacy device type.\r
\r
\r
**/\r
if (QuestionId == FORM_FLOPPY_BOOT_ID) {\r
if (!mFirstEnterLegacyForm) {\r
//\r
- // The leagcyBootMaintUiLib depends on the LegacyBootManagerLib to realize its functionality.\r
- // We need to do the leagcy boot options related actions after the LegacyBootManagerLib has been initialized.\r
+ // The legacyBootMaintUiLib depends on the LegacyBootManagerLib to realize its functionality.\r
+ // We need to do the legacy boot options related actions after the LegacyBootManagerLib has been initialized.\r
// Opening the legacy menus is the appropriate time that the LegacyBootManagerLib has already been initialized.\r
//\r
mFirstEnterLegacyForm = TRUE;\r
@param ImageHandle The image handle.\r
@param SystemTable The system table.\r
\r
- @retval EFI_SUCEESS Install Boot manager menu success.\r
+ @retval EFI_SUCCESS Install Boot manager menu success.\r
@retval Other Return error status.\r
\r
**/\r
/** @file\r
- Legacy boot maintainence Ui definition.\r
+ Legacy boot maintenance Ui definition.\r
\r
Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
\r
//\r
-// String Contant\r
+// String Constant\r
//\r
#define STR_FLOPPY L"Floppy Drive #%02x"\r
#define STR_HARDDISK L"HardDisk Drive #%02x"\r
## @file\r
-# Legacy Boot Maintainence UI module is library for BDS phase.\r
+# Legacy Boot Maintenance UI module is library for BDS phase.\r
#\r
# Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
// /** @file\r
-// Legacy Boot Maintainence UI module is library for BDS phase.\r
+// Legacy Boot Maintenance UI module is library for BDS phase.\r
//\r
-// Legacy Boot Maintainence UI module is library for BDS phase.\r
+// Legacy Boot Maintenance UI module is library for BDS phase.\r
//\r
// Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
//\r
\r
#string STR_MODULE_ABSTRACT\r
#language en-US\r
-"Legacy Boot Maintainence UI module is library for BDS phase."\r
+"Legacy Boot Maintenance UI module is library for BDS phase."\r
\r
#string STR_MODULE_DESCRIPTION\r
#language en-US\r
-"Legacy Boot Maintainence UI module is library for BDS phase."\r
+"Legacy Boot Maintenance UI module is library for BDS phase."\r
\r
\r
/** @file\r
- Legacy Boot Maintainence UI definition.\r
+ Legacy Boot Maintenance UI definition.\r
\r
Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
StringDesc = (CHAR8 *) (((UINTN) CurBBSEntry->DescStringSegment << 4) + CurBBSEntry->DescStringOffset);\r
if (NULL != StringDesc) {\r
//\r
- // Only get fisrt 32 characters, this is suggested by BBS spec\r
+ // Only get first 32 characters, this is suggested by BBS spec\r
//\r
CopyMem (StringBufferA, StringDesc, LEGACY_BM_BOOT_DESCRIPTION_LENGTH);\r
StringBufferA[LEGACY_BM_BOOT_DESCRIPTION_LENGTH] = 0;\r
/**\r
Delete all the invalid legacy boot options.\r
\r
- @retval EFI_SUCCESS All invalide legacy boot options are deleted.\r
+ @retval EFI_SUCCESS All invalid legacy boot options are deleted.\r
@retval EFI_OUT_OF_RESOURCES Fail to allocate necessary memory.\r
- @retval EFI_NOT_FOUND Fail to retrive variable of boot order.\r
+ @retval EFI_NOT_FOUND Fail to retrieve variable of boot order.\r
**/\r
EFI_STATUS\r
LegacyBmDeleteAllInvalidBootOptions (\r
/**\r
Create legacy boot option.\r
\r
- @param BootOption Ponter to the boot option which will be crated.\r
+ @param BootOption Pointer to the boot option which will be crated.\r
@param BbsEntry The input bbs entry info.\r
@param BbsIndex The BBS index.\r
\r
@param BbsTable The BBS table.\r
@param BbsCount The BBS Count.\r
\r
- @retval EFI_SUCCES The buffer is created and the EFI variable named\r
+ @retval EFI_SUCCESS The buffer is created and the EFI variable named\r
VAR_LEGACY_DEV_ORDER and EfiLegacyDevOrderGuid is\r
set correctly.\r
- @retval EFI_OUT_OF_RESOURCES Memmory or storage is not enough.\r
+ @retval EFI_OUT_OF_RESOURCES Memory or storage is not enough.\r
@retval EFI_DEVICE_ERROR Fail to add the device order into EFI variable fail\r
because of hardware error.\r
**/\r
\r
@retval EFI_SUCCESS The boot devices are added successfully.\r
@retval EFI_NOT_FOUND The legacy boot devices are not found.\r
- @retval EFI_OUT_OF_RESOURCES Memmory or storage is not enough.\r
+ @retval EFI_OUT_OF_RESOURCES Memory or storage is not enough.\r
@retval EFI_DEVICE_ERROR Fail to add the legacy device boot order into EFI variable\r
because of hardware error.\r
**/\r
@param DeviceType The device type.\r
@param BbsIndex The BBS index to set the highest priority. Ignore when -1.\r
@param LocalBbsTable The BBS table.\r
- @param Priority The prority table.\r
+ @param Priority The priority table.\r
\r
@retval EFI_SUCCESS The function completes successfully.\r
@retval EFI_NOT_FOUND Failed to find device.\r
//\r
// Same algorithm pattern as the EfiBootManagerRefreshAllBootOption\r
// Firstly delete the invalid legacy boot options,\r
- // then enumreate and save the newly appeared legacy boot options\r
+ // then enumerate and save the newly appeared legacy boot options\r
// the last step is legacy boot option special action to refresh the LegacyDevOrder variable\r
//\r
LegacyBmDeleteAllInvalidBootOptions ();\r