]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFrameworkModulePkg: Clean up source files
authorLiming Gao <liming.gao@intel.com>
Wed, 27 Jun 2018 13:06:35 +0000 (21:06 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 28 Jun 2018 03:19:42 +0000 (11:19 +0800)
1. Do not use tab characters
2. No trailing white space in one line
3. All files must end with CRLF

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
246 files changed:
IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/InternalIsaBus.h
IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/InternalIsaIo.h
IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBus.c
IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.uni
IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxeExtra.uni
IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaIo.c
IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppy.c
IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppy.h
IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyBlock.c
IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyCtrl.c
IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.uni
IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxeExtra.uni
IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/Fdc.h
IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/FloppyPeim.c
IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/FloppyPeim.h
IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/IsaFloppyPei.uni
IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/IsaFloppyPeiExtra.uni
IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/IsaDriver.c
IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/IsaDriver.h
IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/IsaIo.c
IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/IsaIo.h
IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/IsaIoDxe.uni
IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/IsaIoDxeExtra.uni
IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.uni
IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxeExtra.uni
IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c
IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.h
IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/ComponentName.c
IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c
IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c
IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.c
IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.uni
IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxeExtra.uni
IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseAbsolutePointerDxe/CommPs2.c
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseAbsolutePointerDxe/CommPs2.h
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseAbsolutePointerDxe/Ps2MouseAbsolutePointer.c
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseAbsolutePointerDxe/Ps2MouseAbsolutePointer.h
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseAbsolutePointerDxe/Ps2MouseAbsolutePointerDxe.uni
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseAbsolutePointerDxe/Ps2MouseAbsolutePointerDxeExtra.uni
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.c
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.h
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.c
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.h
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.uni
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxeExtra.uni
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ata.c
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Atapi.c
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/ComponentName.c
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/ComponentName.h
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/DriverConfiguration.c
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/DriverDiagnostics.c
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ide.c
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ide.h
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.h
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxeExtra.uni
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeData.h
IntelFrameworkModulePkg/Bus/Pci/VgaMiniPortDxe/ComponentName.c
IntelFrameworkModulePkg/Bus/Pci/VgaMiniPortDxe/VgaMiniPort.c
IntelFrameworkModulePkg/Bus/Pci/VgaMiniPortDxe/VgaMiniPort.h
IntelFrameworkModulePkg/Bus/Pci/VgaMiniPortDxe/VgaMiniPort.uni
IntelFrameworkModulePkg/Bus/Pci/VgaMiniPortDxe/VgaMiniPortDxe.inf
IntelFrameworkModulePkg/Bus/Pci/VgaMiniPortDxe/VgaMiniPortExtra.uni
IntelFrameworkModulePkg/Csm/BiosThunk/BlockIoDxe/BiosBlkIo.c
IntelFrameworkModulePkg/Csm/BiosThunk/BlockIoDxe/BiosBlkIo.h
IntelFrameworkModulePkg/Csm/BiosThunk/BlockIoDxe/BiosInt13.c
IntelFrameworkModulePkg/Csm/BiosThunk/BlockIoDxe/BlockIoDxe.uni
IntelFrameworkModulePkg/Csm/BiosThunk/BlockIoDxe/BlockIoDxeExtra.uni
IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.c
IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.h
IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/KeyboardDxe.inf
IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/KeyboardDxe.uni
IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/KeyboardDxeExtra.uni
IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/BiosSnp16.c
IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/BiosSnp16.h
IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/BiosSnp16.uni
IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/BiosSnp16Extra.uni
IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/Misc.c
IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/Pxe.h
IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/PxeUndi.c
IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/Snp16Dxe.inf
IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideo.c
IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideoDxe.uni
IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideoDxeExtra.uni
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Ipf/IpfBootSupport.c
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBbs.c
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBios.c
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.uni
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxeExtra.uni
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosInterface.h
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyIde.c
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c
IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Thunk.c
IntelFrameworkModulePkg/Include/Guid/AcpiVariableCompatibility.h
IntelFrameworkModulePkg/Include/Guid/BdsHii.h
IntelFrameworkModulePkg/Include/Guid/BdsLibHii.h
IntelFrameworkModulePkg/Include/Guid/BlockIoVendor.h
IntelFrameworkModulePkg/Include/Guid/CapsuleDataFile.h
IntelFrameworkModulePkg/Include/Guid/DataHubStatusCodeRecord.h
IntelFrameworkModulePkg/Include/Guid/HdBootVariable.h
IntelFrameworkModulePkg/Include/Guid/IntelFrameworkModulePkgTokenSpace.h
IntelFrameworkModulePkg/Include/Guid/LastEnumLang.h
IntelFrameworkModulePkg/Include/Guid/LegacyBios.h
IntelFrameworkModulePkg/Include/Guid/LegacyDevOrder.h
IntelFrameworkModulePkg/Include/Guid/TianoDecompress.h
IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h
IntelFrameworkModulePkg/Include/Library/PlatformBdsLib.h
IntelFrameworkModulePkg/Include/Protocol/IsaAcpi.h
IntelFrameworkModulePkg/Include/Protocol/IsaIo.h
IntelFrameworkModulePkg/Include/Protocol/OEMBadging.h
IntelFrameworkModulePkg/Include/Protocol/VgaMiniPort.h
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dsc
IntelFrameworkModulePkg/IntelFrameworkModulePkgExtra.uni
IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c
IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLibInternals.h
IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.c
IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.uni
IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/ReportStatusCodeLib.c
IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConnect.c
IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c
IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.uni
IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsStrings.uni
IntelFrameworkModulePkg/Library/GenericBdsLib/InternalBdsLib.h
IntelFrameworkModulePkg/Library/LegacyBootMaintUiLib/LegacyBootMaintUi.c
IntelFrameworkModulePkg/Library/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
IntelFrameworkModulePkg/Library/LegacyBootMaintUiLib/LegacyBootMaintUiStrings.uni
IntelFrameworkModulePkg/Library/LegacyBootManagerLib/InternalLegacyBm.h
IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBm.c
IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBootManagerLib.inf
IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/F86GuidedSectionExtraction.c
IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/GuidedSectionExtraction.c
IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LZMA-SDK-README.txt
IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompress.c
IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaDecompressLibInternal.h
IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.c
IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.inf
IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.c
IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.inf
IntelFrameworkModulePkg/Library/PlatformBdsLibNull/PlatformBdsLib.uni
IntelFrameworkModulePkg/Library/PlatformBdsLibNull/PlatformBdsLibNull.inf
IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/SmmRuntimeDxeReportStatusCodeLibFramework.inf
IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/SmmRuntimeDxeSupport.c
IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiS3Save.c
IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiS3Save.h
IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiS3SaveDxe.inf
IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiS3SaveDxe.uni
IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiS3SaveDxeExtra.uni
IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiVariableThunkPlatform.c
IntelFrameworkModulePkg/Universal/Acpi/AcpiSupportDxe/AcpiSupport.c
IntelFrameworkModulePkg/Universal/Acpi/AcpiSupportDxe/AcpiSupport.h
IntelFrameworkModulePkg/Universal/Acpi/AcpiSupportDxe/AcpiSupportAcpiSupportProtocol.c
IntelFrameworkModulePkg/Universal/Acpi/AcpiSupportDxe/AcpiSupportDxe.inf
IntelFrameworkModulePkg/Universal/Acpi/AcpiSupportDxe/AcpiSupportDxe.uni
IntelFrameworkModulePkg/Universal/Acpi/AcpiSupportDxe/AcpiSupportDxeExtra.uni
IntelFrameworkModulePkg/Universal/BdsDxe/Bds.h
IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.uni
IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxeExtra.uni
IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.h
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/Bm.vfr
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BmLib.c
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/Bmstring.uni
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootMaint.c
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootMaint.h
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/ConsoleOption.c
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/FE.vfr
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/FileExplorer.c
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c
IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/Variable.c
IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr/BootManager.c
IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr/BootManager.h
IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr/BootManagerStrings.uni
IntelFrameworkModulePkg/Universal/BdsDxe/Capsules.c
IntelFrameworkModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.c
IntelFrameworkModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.h
IntelFrameworkModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManagerStrings.uni
IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.c
IntelFrameworkModulePkg/Universal/BdsDxe/FrontPage.h
IntelFrameworkModulePkg/Universal/BdsDxe/FrontPageStrings.uni
IntelFrameworkModulePkg/Universal/BdsDxe/Hotkey.c
IntelFrameworkModulePkg/Universal/BdsDxe/HwErrRecSupport.c
IntelFrameworkModulePkg/Universal/BdsDxe/Language.c
IntelFrameworkModulePkg/Universal/BdsDxe/MemoryTest.c
IntelFrameworkModulePkg/Universal/BdsDxe/Strings.uni
IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/ComponentName.c
IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClass.c
IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClass.h
IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClassDxe.inf
IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClassDxe.uni
IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClassDxeExtra.uni
IntelFrameworkModulePkg/Universal/CpuIoDxe/CpuIo.c
IntelFrameworkModulePkg/Universal/CpuIoDxe/CpuIo.h
IntelFrameworkModulePkg/Universal/CpuIoDxe/CpuIoDxeExtra.uni
IntelFrameworkModulePkg/Universal/DataHubDxe/DataHub.c
IntelFrameworkModulePkg/Universal/DataHubDxe/DataHub.h
IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxeExtra.uni
IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErr.c
IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxeExtra.uni
IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwPadFile.c
IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVol.c
IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolAttrib.c
IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolDriver.h
IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolDxe.uni
IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolDxeExtra.uni
IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/FwVolWrite.c
IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/FlashUpdate.c
IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/ParseUpdateProfile.c
IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/UpdateDispatcher.c
IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/UpdateDriverDxe.inf
IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/UpdateDriverDxe.uni
IntelFrameworkModulePkg/Universal/FirmwareVolume/UpdateDriverDxe/UpdateDriverDxeExtra.uni
IntelFrameworkModulePkg/Universal/LegacyRegionDxe/LegacyRegion.c
IntelFrameworkModulePkg/Universal/LegacyRegionDxe/LegacyRegionDxe.inf
IntelFrameworkModulePkg/Universal/LegacyRegionDxe/LegacyRegionDxe.uni
IntelFrameworkModulePkg/Universal/LegacyRegionDxe/LegacyRegionDxeExtra.uni
IntelFrameworkModulePkg/Universal/SectionExtractionDxe/SectionExtraction.c
IntelFrameworkModulePkg/Universal/SectionExtractionDxe/SectionExtractionDxe.inf
IntelFrameworkModulePkg/Universal/SectionExtractionDxe/SectionExtractionDxe.uni
IntelFrameworkModulePkg/Universal/SectionExtractionDxe/SectionExtractionDxeExtra.uni
IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DataHubStatusCodeWorker.c
IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxe.c
IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxe.inf
IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxeExtra.uni
IntelFrameworkModulePkg/Universal/StatusCode/Pei/MemoryStausCodeWorker.c
IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.c
IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePeiExtra.uni
IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/DataHubStatusCodeWorker.c
IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/RtMemoryStatusCodeWorker.c
IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c
IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.c
IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.h
IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxeExtra.uni

index 9e559da72bf2ce6e852ec66311c3ebf1f3f17a1a..0aaac776bbabc6f805de4f42059c6a250ae79be7 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The header file for ISA bus driver\r
-  \r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -157,20 +157,20 @@ typedef struct {
 // EFI Driver Binding Protocol Interface Functions\r
 //\r
 \r
-/** \r
-  Tests to see if a controller can be managed by the ISA Bus Driver. If a child device is provided, \r
+/**\r
+  Tests to see if a controller can be managed by the ISA Bus Driver. If a child device is provided,\r
   it further tests to see if this driver supports creating a handle for the specified child device.\r
 \r
   Note that the ISA Bus driver always creates all of its child handles on the first call to Start().\r
   How the Start() function of a driver is implemented can affect how the Supported() function is implemented.\r
 \r
-  @param[in] This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.  \r
+  @param[in] This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param[in] Controller           The handle of the controller to test.\r
   @param[in] RemainingDevicePath  A pointer to the remaining portion of a device path.\r
-  \r
+\r
   @retval EFI_SUCCESS             The device is supported by this driver.\r
   @retval EFI_ALREADY_STARTED     The device is already being managed by this driver.\r
-  @retval EFI_ACCESS_DENIED       The device is already being managed by a different driver \r
+  @retval EFI_ACCESS_DENIED       The device is already being managed by a different driver\r
                                   or an application that requires exclusive access.\r
   @retval EFI_UNSUPPORTED         The device is is not supported by this driver.\r
 \r
@@ -184,24 +184,24 @@ IsaBusControllerDriverSupported (
   );\r
 \r
 /**\r
-  Start this driver on ControllerHandle. \r
-  \r
+  Start this driver on ControllerHandle.\r
+\r
   Note that the ISA Bus driver always creates all of its child handles on the first call to Start().\r
-  The Start() function is designed to be invoked from the EFI boot service ConnectController(). \r
-  As a result, much of the error checking on the parameters to Start() has been moved into this \r
-  common boot service. It is legal to call Start() from other locations, but the following calling \r
+  The Start() function is designed to be invoked from the EFI boot service ConnectController().\r
+  As a result, much of the error checking on the parameters to Start() has been moved into this\r
+  common boot service. It is legal to call Start() from other locations, but the following calling\r
   restrictions must be followed or the system behavior will not be deterministic.\r
   1. ControllerHandle must be a valid EFI_HANDLE.\r
   2. If RemainingDevicePath is not NULL, then it must be a pointer to a naturally aligned\r
      EFI_DEVICE_PATH_PROTOCOL.\r
   3. Prior to calling Start(), the Supported() function for the driver specified by This must\r
-     have been called with the same calling parameters, and Supported() must have returned EFI_SUCCESS.  \r
+     have been called with the same calling parameters, and Supported() must have returned EFI_SUCCESS.\r
 \r
   @param[in]  This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle     The handle of the controller to start. This handle \r
-                                   must support a protocol interface that supplies \r
+  @param[in]  ControllerHandle     The handle of the controller to start. This handle\r
+                                   must support a protocol interface that supplies\r
                                    an I/O abstraction to the driver.\r
-  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path. \r
+  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path.\r
                                    This parameter is ignored by device drivers, and is optional for bus drivers.\r
 \r
   @retval EFI_SUCCESS              The device was started.\r
@@ -219,11 +219,11 @@ IsaBusControllerDriverStart (
   );\r
 \r
 /**\r
-  Stop this driver on ControllerHandle. \r
-  \r
-  The Stop() function is designed to be invoked from the EFI boot service DisconnectController(). \r
-  As a result, much of the error checking on the parameters to Stop() has been moved \r
-  into this common boot service. It is legal to call Stop() from other locations, \r
+  Stop this driver on ControllerHandle.\r
+\r
+  The Stop() function is designed to be invoked from the EFI boot service DisconnectController().\r
+  As a result, much of the error checking on the parameters to Stop() has been moved\r
+  into this common boot service. It is legal to call Stop() from other locations,\r
   but the following calling restrictions must be followed or the system behavior will not be deterministic.\r
   1. ControllerHandle must be a valid EFI_HANDLE that was used on a previous call to this\r
      same driver's Start() function.\r
@@ -231,13 +231,13 @@ IsaBusControllerDriverStart (
      EFI_HANDLE. In addition, all of these handles must have been created in this driver's\r
      Start() function, and the Start() function must have called OpenProtocol() on\r
      ControllerHandle with an Attribute of EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER.\r
-  \r
+\r
   @param[in]  This              A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle  A handle to the device being stopped. The handle must \r
-                                support a bus specific I/O protocol for the driver \r
+  @param[in]  ControllerHandle  A handle to the device being stopped. The handle must\r
+                                support a bus specific I/O protocol for the driver\r
                                 to use to stop the device.\r
   @param[in]  NumberOfChildren  The number of child device handles in ChildHandleBuffer.\r
-  @param[in]  ChildHandleBuffer An array of child handles to be freed. May be NULL \r
+  @param[in]  ChildHandleBuffer An array of child handles to be freed. May be NULL\r
                                 if NumberOfChildren is 0.\r
 \r
   @retval EFI_SUCCESS           The device was stopped.\r
@@ -257,11 +257,11 @@ IsaBusControllerDriverStop (
 //\r
 \r
 /**\r
-  Create EFI Handle for a ISA device found via ISA ACPI Protocol \r
+  Create EFI Handle for a ISA device found via ISA ACPI Protocol\r
 \r
   @param[in] This                   The EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param[in] Controller             The handle of ISA bus controller(PCI to ISA bridge)\r
-  @param[in] PciIo                  The Pointer to the PCI protocol \r
+  @param[in] PciIo                  The Pointer to the PCI protocol\r
   @param[in] ParentDevicePath       Device path of the ISA bus controller\r
   @param[in] IsaDeviceResourceList  The resource list of the ISA device\r
   @param[out] ChildDevicePath       The pointer to the child device.\r
@@ -285,7 +285,7 @@ IsaCreateDevice (
 \r
   @param[in] IsaIoDevice            The iso device to be initialized.\r
   @param[in] IsaDeviceResourceList  The resource list.\r
-  \r
+\r
 **/\r
 VOID\r
 InitializeIsaIoInstance (\r
index 054a6b9bab8125c4119bdddcc8e643a0d2fb7db1..cc388a047ac07be984d50e058b9de006be273f13 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The header file for EFI_ISA_IO protocol implementation.\r
-  \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -34,9 +34,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   @param[in] IsaIoDevice         The ISA device to be verified.\r
   @param[in] Type                The Access type. The input must be either IsaAccessTypeMem or IsaAccessTypeIo.\r
   @param[in] Width               The width of the memory operation.\r
-  @param[in] Count               The number of memory operations to perform. \r
-  @param[in] Offset              The offset in ISA memory space to start the memory operation.  \r
-  \r
+  @param[in] Count               The number of memory operations to perform.\r
+  @param[in] Offset              The offset in ISA memory space to start the memory operation.\r
+\r
   @retval EFI_SUCCESS            Verify success.\r
   @retval EFI_INVALID_PARAMETER  One of the parameters has an invalid value.\r
   @retval EFI_UNSUPPORTED        The device ont support the access type.\r
@@ -49,14 +49,14 @@ IsaIoVerifyAccess (
   IN UINTN                      Count,\r
   IN UINT32                     Offset\r
   );\r
-  \r
+\r
 /**\r
   Performs an ISA I/O Read Cycle\r
 \r
   @param[in]  This              A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]  Width             Specifies the width of the I/O operation.\r
-  @param[in]  Offset            The offset in ISA I/O space to start the I/O operation.  \r
-  @param[in]  Count             The number of I/O operations to perform. \r
+  @param[in]  Offset            The offset in ISA I/O space to start the I/O operation.\r
+  @param[in]  Count             The number of I/O operations to perform.\r
   @param[out] Buffer            The destination buffer to store the results\r
 \r
   @retval EFI_SUCCESS           The data was read from the device sucessfully.\r
@@ -79,8 +79,8 @@ IsaIoIoRead (
 \r
   @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in] Width               Specifies the width of the I/O operation.\r
-  @param[in] Offset              The offset in ISA I/O space to start the I/O operation.  \r
-  @param[in] Count               The number of I/O operations to perform. \r
+  @param[in] Offset              The offset in ISA I/O space to start the I/O operation.\r
+  @param[in] Count               The number of I/O operations to perform.\r
   @param[in] Buffer              The source buffer to write data from\r
 \r
   @retval EFI_SUCCESS            The data was writen to the device sucessfully.\r
@@ -102,18 +102,18 @@ IsaIoIoWrite (
   Maps a memory region for DMA\r
 \r
   @param This                    A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param Operation               Indicates the type of DMA (slave or bus master), and if \r
-                                 the DMA operation is going to read or write to system memory. \r
-  @param ChannelNumber           The slave channel number to use for this DMA operation. \r
-                                 If Operation and ChannelAttributes shows that this device \r
-                                 performs bus mastering DMA, then this field is ignored.  \r
-                                 The legal range for this field is 0..7.  \r
+  @param Operation               Indicates the type of DMA (slave or bus master), and if\r
+                                 the DMA operation is going to read or write to system memory.\r
+  @param ChannelNumber           The slave channel number to use for this DMA operation.\r
+                                 If Operation and ChannelAttributes shows that this device\r
+                                 performs bus mastering DMA, then this field is ignored.\r
+                                 The legal range for this field is 0..7.\r
   @param ChannelAttributes       The attributes of the DMA channel to use for this DMA operation\r
-  @param HostAddress             The system memory address to map to the device.  \r
-  @param NumberOfBytes           On input the number of bytes to map.  On output the number \r
+  @param HostAddress             The system memory address to map to the device.\r
+  @param NumberOfBytes           On input the number of bytes to map.  On output the number\r
                                  of bytes that were mapped.\r
-  @param DeviceAddress           The resulting map address for the bus master device to use \r
-                                 to access the hosts HostAddress.  \r
+  @param DeviceAddress           The resulting map address for the bus master device to use\r
+                                 to access the hosts HostAddress.\r
   @param Mapping                 A resulting value to pass to EFI_ISA_IO.Unmap().\r
 \r
   @retval EFI_SUCCESS            The range was mapped for the returned NumberOfBytes.\r
@@ -173,8 +173,8 @@ IsaIoFlush (
   @param[in] PageOffset          The page's offest.\r
   @param[in] CountOffset         The count's offset.\r
   @param[in] BaseAddress         The base address.\r
-  @param[in] Count               The number of I/O operations to perform. \r
-  \r
+  @param[in] Count               The number of I/O operations to perform.\r
+\r
   @retval EFI_SUCCESS            Success.\r
   @retval EFI_INVALID_PARAMETER  Parameter is invalid.\r
   @retval EFI_UNSUPPORTED        The address range specified by these Offsets and Count is not valid.\r
@@ -194,7 +194,7 @@ WriteDmaPort (
   Writes an 8-bit I/O Port\r
 \r
   @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param[in] Offset              The offset in ISA IO space to start the IO operation.  \r
+  @param[in] Offset              The offset in ISA IO space to start the IO operation.\r
   @param[in] Value               The data to write port.\r
 \r
   @retval EFI_SUCCESS            Success.\r
@@ -207,17 +207,17 @@ WritePort (
   IN EFI_ISA_IO_PROTOCOL  *This,\r
   IN UINT32               Offset,\r
   IN UINT8                Value\r
-  );    \r
+  );\r
 \r
 /**\r
   Performs an ISA Memory Read Cycle\r
 \r
   @param[in]  This               A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]  Width              Specifies the width of the memory operation.\r
-  @param[in]  Offset             The offset in ISA memory space to start the memory operation.  \r
-  @param[in]  Count              The number of memory operations to perform. \r
+  @param[in]  Offset             The offset in ISA memory space to start the memory operation.\r
+  @param[in]  Count              The number of memory operations to perform.\r
   @param[out] Buffer             The destination buffer to store the results\r
\r
+\r
   @retval EFI_SUCCESS            The data was read from the device successfully.\r
   @retval EFI_UNSUPPORTED        The Offset is not valid for this device.\r
   @retval EFI_INVALID_PARAMETER  Width or Count, or both, were invalid.\r
@@ -237,10 +237,10 @@ IsaIoMemRead (
 /**\r
   Performs an ISA Memory Write Cycle\r
 \r
-  @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.  \r
+  @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in] Width               Specifies the width of the memory operation.\r
-  @param[in] Offset              The offset in ISA memory space to start the memory operation.  \r
-  @param[in] Count               The number of memory operations to perform. \r
+  @param[in] Offset              The offset in ISA memory space to start the memory operation.\r
+  @param[in] Count               The number of memory operations to perform.\r
   @param[in] Buffer              The source buffer to write data from\r
 \r
   @retval EFI_SUCCESS            The data was written to the device sucessfully.\r
@@ -263,7 +263,7 @@ IsaIoMemWrite (
 \r
   @param[in]  This               A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]  Width              Specifies the width of the memory copy operation.\r
-  @param[in]  DestOffset         The offset of the destination \r
+  @param[in]  DestOffset         The offset of the destination\r
   @param[in]  SrcOffset          The offset of the source\r
   @param[in]  Count              The number of memory copy  operations to perform\r
 \r
@@ -294,7 +294,7 @@ IsaIoCopyMem (
 \r
   @retval EFI_SUCCESS            The requested memory pages were allocated.\r
   @retval EFI_INVALID_PARAMETER  Type is invalid or MemoryType is invalid or HostAddress is NULL\r
-  @retval EFI_UNSUPPORTED        Attributes is unsupported or the memory range specified \r
+  @retval EFI_UNSUPPORTED        Attributes is unsupported or the memory range specified\r
                                  by HostAddress, Pages, and Type is not available for common buffer use.\r
   @retval EFI_OUT_OF_RESOURCES   The memory pages could not be allocated.\r
 **/\r
@@ -310,7 +310,7 @@ IsaIoAllocateBuffer (
   );\r
 \r
 /**\r
-  Frees memory that was allocated with EFI_ISA_IO.AllocateBuffer(). \r
+  Frees memory that was allocated with EFI_ISA_IO.AllocateBuffer().\r
 \r
   @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in] Pages               The number of pages to free.\r
index 1312f260f9aef33910faa81e62d3288711bf8c03..a409355dd1e82d43f21c3513930ae2f2bd9e300c 100644 (file)
@@ -1,12 +1,12 @@
 /** @file\r
   ISA Bus UEFI driver.\r
 \r
-  Discovers all the ISA Controllers and their resources by using the ISA ACPI \r
-  Protocol, produces an instance of the ISA I/O Protocol for every ISA \r
+  Discovers all the ISA Controllers and their resources by using the ISA ACPI\r
+  Protocol, produces an instance of the ISA I/O Protocol for every ISA\r
   Controller found. This driver is designed to manage a PCI-to-ISA bridge Device\r
   such as LPC bridge.\r
-  \r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -34,9 +34,9 @@ EFI_DRIVER_BINDING_PROTOCOL gIsaBusControllerDriver = {
 /**\r
   The main entry point for the ISA Bus driver.\r
 \r
-  @param[in] ImageHandle        The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle        The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable        A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS           The entry point is executed successfully.\r
   @retval EFI_OUT_OF_RESOURCES  There was not enough memory in pool to install all the protocols.\r
 **/\r
@@ -65,20 +65,20 @@ InitializeIsaBus(
   return Status;\r
 }\r
 \r
-/** \r
-  Tests to see if a controller can be managed by the ISA Bus Driver. If a child device is provided, \r
+/**\r
+  Tests to see if a controller can be managed by the ISA Bus Driver. If a child device is provided,\r
   it further tests to see if this driver supports creating a handle for the specified child device.\r
 \r
   Note that the ISA Bus driver always creates all of its child handles on the first call to Start().\r
   How the Start() function of a driver is implemented can affect how the Supported() function is implemented.\r
 \r
-  @param[in] This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.  \r
+  @param[in] This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param[in] Controller           The handle of the controller to test.\r
   @param[in] RemainingDevicePath  A pointer to the remaining portion of a device path.\r
-  \r
+\r
   @retval EFI_SUCCESS             The device is supported by this driver.\r
   @retval EFI_ALREADY_STARTED     The device is already being managed by this driver.\r
-  @retval EFI_ACCESS_DENIED       The device is already being managed by a different driver \r
+  @retval EFI_ACCESS_DENIED       The device is already being managed by a different driver\r
                                   or an application that requires exclusive access.\r
   @retval EFI_UNSUPPORTED         The device is is not supported by this driver.\r
 \r
@@ -97,7 +97,7 @@ IsaBusControllerDriverSupported (
 \r
   //\r
   // If RemainingDevicePath is not NULL, it should verify that the first device\r
-  // path node in RemainingDevicePath is an ACPI Device path node which is a \r
+  // path node in RemainingDevicePath is an ACPI Device path node which is a\r
   // legal Device Path Node for this bus driver's children.\r
   //\r
   if (RemainingDevicePath != NULL) {\r
@@ -192,24 +192,24 @@ IsaBusControllerDriverSupported (
 }\r
 \r
 /**\r
-  Start this driver on ControllerHandle. \r
-  \r
+  Start this driver on ControllerHandle.\r
+\r
   Note that the ISA Bus driver always creates all of its child handles on the first call to Start().\r
-  The Start() function is designed to be invoked from the EFI boot service ConnectController(). \r
-  As a result, much of the error checking on the parameters to Start() has been moved into this \r
-  common boot service. It is legal to call Start() from other locations, but the following calling \r
+  The Start() function is designed to be invoked from the EFI boot service ConnectController().\r
+  As a result, much of the error checking on the parameters to Start() has been moved into this\r
+  common boot service. It is legal to call Start() from other locations, but the following calling\r
   restrictions must be followed or the system behavior will not be deterministic.\r
   1. ControllerHandle must be a valid EFI_HANDLE.\r
   2. If RemainingDevicePath is not NULL, then it must be a pointer to a naturally aligned\r
      EFI_DEVICE_PATH_PROTOCOL.\r
   3. Prior to calling Start(), the Supported() function for the driver specified by This must\r
-     have been called with the same calling parameters, and Supported() must have returned EFI_SUCCESS.  \r
+     have been called with the same calling parameters, and Supported() must have returned EFI_SUCCESS.\r
 \r
   @param[in]  This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle     The handle of the controller to start. This handle \r
-                                   must support a protocol interface that supplies \r
+  @param[in]  ControllerHandle     The handle of the controller to start. This handle\r
+                                   must support a protocol interface that supplies\r
                                    an I/O abstraction to the driver.\r
-  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path. \r
+  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path.\r
                                    This parameter is ignored by device drivers, and is optional for bus drivers.\r
 \r
   @retval EFI_SUCCESS              The device was started.\r
@@ -413,11 +413,11 @@ IsaBusControllerDriverStart (
 }\r
 \r
 /**\r
-  Stop this driver on ControllerHandle. \r
-  \r
-  The Stop() function is designed to be invoked from the EFI boot service DisconnectController(). \r
-  As a result, much of the error checking on the parameters to Stop() has been moved \r
-  into this common boot service. It is legal to call Stop() from other locations, \r
+  Stop this driver on ControllerHandle.\r
+\r
+  The Stop() function is designed to be invoked from the EFI boot service DisconnectController().\r
+  As a result, much of the error checking on the parameters to Stop() has been moved\r
+  into this common boot service. It is legal to call Stop() from other locations,\r
   but the following calling restrictions must be followed or the system behavior will not be deterministic.\r
   1. ControllerHandle must be a valid EFI_HANDLE that was used on a previous call to this\r
      same driver's Start() function.\r
@@ -425,13 +425,13 @@ IsaBusControllerDriverStart (
      EFI_HANDLE. In addition, all of these handles must have been created in this driver's\r
      Start() function, and the Start() function must have called OpenProtocol() on\r
      ControllerHandle with an Attribute of EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER.\r
-  \r
+\r
   @param[in]  This              A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle  A handle to the device being stopped. The handle must \r
-                                support a bus specific I/O protocol for the driver \r
+  @param[in]  ControllerHandle  A handle to the device being stopped. The handle must\r
+                                support a bus specific I/O protocol for the driver\r
                                 to use to stop the device.\r
   @param[in]  NumberOfChildren  The number of child device handles in ChildHandleBuffer.\r
-  @param[in]  ChildHandleBuffer An array of child handles to be freed. May be NULL \r
+  @param[in]  ChildHandleBuffer An array of child handles to be freed. May be NULL\r
                                 if NumberOfChildren is 0.\r
 \r
   @retval EFI_SUCCESS           The device was stopped.\r
@@ -538,7 +538,7 @@ IsaBusControllerDriverStop (
                This->DriverBindingHandle,\r
                ChildHandleBuffer[Index],\r
                EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER\r
-               );     \r
+               );\r
       }\r
     }\r
 \r
@@ -559,11 +559,11 @@ IsaBusControllerDriverStop (
 //\r
 \r
 /**\r
-  Create EFI Handle for a ISA device found via ISA ACPI Protocol \r
+  Create EFI Handle for a ISA device found via ISA ACPI Protocol\r
 \r
   @param[in] This                   The EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param[in] Controller             The handle of ISA bus controller(PCI to ISA bridge)\r
-  @param[in] PciIo                  The Pointer to the PCI protocol \r
+  @param[in] PciIo                  The Pointer to the PCI protocol\r
   @param[in] ParentDevicePath       Device path of the ISA bus controller\r
   @param[in] IsaDeviceResourceList  The resource list of the ISA device\r
   @param[out] ChildDevicePath       The pointer to the child device.\r
index 249638159254aee1022bd5d1d30b3edc29b8261d..2f9ff75fd707400645a46f2bb195ccd5b8f0b9d9 100644 (file)
@@ -6,13 +6,13 @@
 // Controller found. This driver is designed to manage a PCI-to-ISA bridge Device\r
 // such as an LPC bridge.\r
 //\r
-// Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution. The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index fd4cda0a73c3d97e7059a6b516d5b9a2fd356d08..304c6a490fb91535e9a309701b02285342a106d6 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // IsaBusDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "ISA Bus DXE Driver"\r
 \r
 \r
index 6f1cd1b8b11947124b455289f0c3c855a23e2b73..6b49abd0a10cdb31fee710977eb9b4fe20d734f2 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  The implementation for EFI_ISA_IO_PROTOCOL. \r
-  \r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  The implementation for EFI_ISA_IO_PROTOCOL.\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -18,11 +18,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 // Module Variables\r
 //\r
 EFI_ISA_IO_PROTOCOL mIsaIoInterface = {\r
-  {    \r
+  {\r
     IsaIoMemRead,\r
     IsaIoMemWrite\r
   },\r
-  {   \r
+  {\r
     IsaIoIoRead,\r
     IsaIoIoWrite\r
   },\r
@@ -85,7 +85,7 @@ EFI_ISA_DMA_REGISTERS  mDmaRegisters[8] = {
 \r
   @param[in] IsaIoDevice            The iso device to be initialized.\r
   @param[in] IsaDeviceResourceList  The resource list.\r
-  \r
+\r
 **/\r
 VOID\r
 InitializeIsaIoInstance (\r
@@ -110,8 +110,8 @@ InitializeIsaIoInstance (
 \r
   @param[in]  This              A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]  Width             Specifies the width of the I/O operation.\r
-  @param[in]  Offset            The offset in ISA I/O space to start the I/O operation.  \r
-  @param[in]  Count             The number of I/O operations to perform. \r
+  @param[in]  Offset            The offset in ISA I/O space to start the I/O operation.\r
+  @param[in]  Count             The number of I/O operations to perform.\r
   @param[out] Buffer            The destination buffer to store the results\r
 \r
   @retval EFI_SUCCESS           The data was read from the device sucessfully.\r
@@ -172,8 +172,8 @@ IsaIoIoRead (
 \r
   @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in] Width               Specifies the width of the I/O operation.\r
-  @param[in] Offset              The offset in ISA I/O space to start the I/O operation.  \r
-  @param[in] Count               The number of I/O operations to perform. \r
+  @param[in] Offset              The offset in ISA I/O space to start the I/O operation.\r
+  @param[in] Count               The number of I/O operations to perform.\r
   @param[in] Buffer              The source buffer to write data from\r
 \r
   @retval EFI_SUCCESS            The data was writen to the device sucessfully.\r
@@ -233,7 +233,7 @@ IsaIoIoWrite (
   Writes an 8-bit I/O Port\r
 \r
   @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param[in] Offset              The offset in ISA IO space to start the IO operation.  \r
+  @param[in] Offset              The offset in ISA IO space to start the IO operation.\r
   @param[in] Value               The data to write port.\r
 \r
   @retval EFI_SUCCESS            Success.\r
@@ -282,8 +282,8 @@ WritePort (
   @param[in] PageOffset          The page's offest.\r
   @param[in] CountOffset         The count's offset.\r
   @param[in] BaseAddress         The base address.\r
-  @param[in] Count               The number of I/O operations to perform. \r
-  \r
+  @param[in] Count               The number of I/O operations to perform.\r
+\r
   @retval EFI_SUCCESS            Success.\r
   @retval EFI_INVALID_PARAMETER  Parameter is invalid.\r
   @retval EFI_UNSUPPORTED        The address range specified by these Offsets and Count is not valid.\r
@@ -420,9 +420,9 @@ IsaIoFlush (
   @param[in] IsaIoDevice         The ISA device to be verified.\r
   @param[in] Type                The Access type. The input must be either IsaAccessTypeMem or IsaAccessTypeIo.\r
   @param[in] Width               The width of the memory operation.\r
-  @param[in] Count               The number of memory operations to perform. \r
-  @param[in] Offset              The offset in ISA memory space to start the memory operation.  \r
-  \r
+  @param[in] Count               The number of memory operations to perform.\r
+  @param[in] Offset              The offset in ISA memory space to start the memory operation.\r
+\r
   @retval EFI_SUCCESS            Verify success.\r
   @retval EFI_INVALID_PARAMETER  One of the parameters has an invalid value.\r
   @retval EFI_UNSUPPORTED        The device ont support the access type.\r
@@ -482,10 +482,10 @@ IsaIoVerifyAccess (
 \r
   @param[in]  This               A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]  Width              Specifies the width of the memory operation.\r
-  @param[in]  Offset             The offset in ISA memory space to start the memory operation.  \r
-  @param[in]  Count              The number of memory operations to perform. \r
+  @param[in]  Offset             The offset in ISA memory space to start the memory operation.\r
+  @param[in]  Count              The number of memory operations to perform.\r
   @param[out] Buffer             The destination buffer to store the results\r
\r
+\r
   @retval EFI_SUCCESS            The data was read from the device successfully.\r
   @retval EFI_UNSUPPORTED        The Offset is not valid for this device.\r
   @retval EFI_INVALID_PARAMETER  Width or Count, or both, were invalid.\r
@@ -549,10 +549,10 @@ IsaIoMemRead (
 /**\r
   Performs an ISA Memory Write Cycle\r
 \r
-  @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.  \r
+  @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in] Width               Specifies the width of the memory operation.\r
-  @param[in] Offset              The offset in ISA memory space to start the memory operation.  \r
-  @param[in] Count               The number of memory operations to perform. \r
+  @param[in] Offset              The offset in ISA memory space to start the memory operation.\r
+  @param[in] Count               The number of memory operations to perform.\r
   @param[in] Buffer              The source buffer to write data from\r
 \r
   @retval EFI_SUCCESS            The data was written to the device sucessfully.\r
@@ -620,7 +620,7 @@ IsaIoMemWrite (
 \r
   @param[in]  This               A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]  Width              Specifies the width of the memory copy operation.\r
-  @param[in]  DestOffset         The offset of the destination \r
+  @param[in]  DestOffset         The offset of the destination\r
   @param[in]  SrcOffset          The offset of the source\r
   @param[in]  Count              The number of memory copy  operations to perform\r
 \r
@@ -701,18 +701,18 @@ IsaIoCopyMem (
   only supports slave read/write operation to save code size.\r
 \r
   @param This                    A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param Operation               Indicates the type of DMA (slave or bus master), and if \r
-                                 the DMA operation is going to read or write to system memory. \r
-  @param ChannelNumber           The slave channel number to use for this DMA operation. \r
-                                 If Operation and ChannelAttributes shows that this device \r
-                                 performs bus mastering DMA, then this field is ignored.  \r
-                                 The legal range for this field is 0..7.  \r
+  @param Operation               Indicates the type of DMA (slave or bus master), and if\r
+                                 the DMA operation is going to read or write to system memory.\r
+  @param ChannelNumber           The slave channel number to use for this DMA operation.\r
+                                 If Operation and ChannelAttributes shows that this device\r
+                                 performs bus mastering DMA, then this field is ignored.\r
+                                 The legal range for this field is 0..7.\r
   @param ChannelAttributes       The attributes of the DMA channel to use for this DMA operation\r
-  @param HostAddress             The system memory address to map to the device.  \r
-  @param NumberOfBytes           On input the number of bytes to map.  On output the number \r
+  @param HostAddress             The system memory address to map to the device.\r
+  @param NumberOfBytes           On input the number of bytes to map.  On output the number\r
                                  of bytes that were mapped.\r
-  @param DeviceAddress           The resulting map address for the bus master device to use \r
-                                 to access the hosts HostAddress.  \r
+  @param DeviceAddress           The resulting map address for the bus master device to use\r
+                                 to access the hosts HostAddress.\r
   @param Mapping                 A resulting value to pass to EFI_ISA_IO.Unmap().\r
 \r
   @retval EFI_SUCCESS            The range was mapped for the returned NumberOfBytes.\r
@@ -743,7 +743,7 @@ IsaIoMapOnlySupportSlaveReadWrite (
   UINT8                 DmaMask;\r
   UINT8                 DmaClear;\r
   UINT8                 DmaChannelMode;\r
-  \r
+\r
   if ((NULL == This) ||\r
       (NULL == HostAddress) ||\r
       (NULL == NumberOfBytes) ||\r
@@ -762,7 +762,7 @@ IsaIoMapOnlySupportSlaveReadWrite (
   // Make sure the Operation parameter is valid.\r
   // Light IsaIo only supports two operations.\r
   //\r
-  if (!(Operation == EfiIsaIoOperationSlaveRead || \r
+  if (!(Operation == EfiIsaIoOperationSlaveRead ||\r
         Operation == EfiIsaIoOperationSlaveWrite)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
@@ -848,7 +848,7 @@ IsaIoMapOnlySupportSlaveReadWrite (
     //\r
     *DeviceAddress = PhysicalAddress;\r
   }\r
-  \r
+\r
   //\r
   // Figure out what to program into the DMA Channel Mode Register\r
   //\r
@@ -933,22 +933,22 @@ IsaIoMapOnlySupportSlaveReadWrite (
 }\r
 \r
 /**\r
-  Maps a memory region for DMA. This implementation implement the \r
+  Maps a memory region for DMA. This implementation implement the\r
   the full mapping support.\r
 \r
   @param This                    A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param Operation               Indicates the type of DMA (slave or bus master), and if \r
-                                 the DMA operation is going to read or write to system memory. \r
-  @param ChannelNumber           The slave channel number to use for this DMA operation. \r
-                                 If Operation and ChannelAttributes shows that this device \r
-                                 performs bus mastering DMA, then this field is ignored.  \r
-                                 The legal range for this field is 0..7.  \r
+  @param Operation               Indicates the type of DMA (slave or bus master), and if\r
+                                 the DMA operation is going to read or write to system memory.\r
+  @param ChannelNumber           The slave channel number to use for this DMA operation.\r
+                                 If Operation and ChannelAttributes shows that this device\r
+                                 performs bus mastering DMA, then this field is ignored.\r
+                                 The legal range for this field is 0..7.\r
   @param ChannelAttributes       The attributes of the DMA channel to use for this DMA operation\r
-  @param HostAddress             The system memory address to map to the device.  \r
-  @param NumberOfBytes           On input the number of bytes to map.  On output the number \r
+  @param HostAddress             The system memory address to map to the device.\r
+  @param NumberOfBytes           On input the number of bytes to map.  On output the number\r
                                  of bytes that were mapped.\r
-  @param DeviceAddress           The resulting map address for the bus master device to use \r
-                                 to access the hosts HostAddress.  \r
+  @param DeviceAddress           The resulting map address for the bus master device to use\r
+                                 to access the hosts HostAddress.\r
   @param Mapping                 A resulting value to pass to EFI_ISA_IO.Unmap().\r
 \r
   @retval EFI_SUCCESS           - The range was mapped for the returned NumberOfBytes.\r
@@ -1262,18 +1262,18 @@ IsaIoMapFullSupport (
   Maps a memory region for DMA\r
 \r
   @param This                    A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param Operation               Indicates the type of DMA (slave or bus master), and if \r
-                                 the DMA operation is going to read or write to system memory. \r
-  @param ChannelNumber           The slave channel number to use for this DMA operation. \r
-                                 If Operation and ChannelAttributes shows that this device \r
-                                 performs bus mastering DMA, then this field is ignored.  \r
-                                 The legal range for this field is 0..7.  \r
+  @param Operation               Indicates the type of DMA (slave or bus master), and if\r
+                                 the DMA operation is going to read or write to system memory.\r
+  @param ChannelNumber           The slave channel number to use for this DMA operation.\r
+                                 If Operation and ChannelAttributes shows that this device\r
+                                 performs bus mastering DMA, then this field is ignored.\r
+                                 The legal range for this field is 0..7.\r
   @param ChannelAttributes       The attributes of the DMA channel to use for this DMA operation\r
-  @param HostAddress             The system memory address to map to the device.  \r
-  @param NumberOfBytes           On input the number of bytes to map.  On output the number \r
+  @param HostAddress             The system memory address to map to the device.\r
+  @param NumberOfBytes           On input the number of bytes to map.  On output the number\r
                                  of bytes that were mapped.\r
-  @param DeviceAddress           The resulting map address for the bus master device to use \r
-                                 to access the hosts HostAddress.  \r
+  @param DeviceAddress           The resulting map address for the bus master device to use\r
+                                 to access the hosts HostAddress.\r
   @param Mapping                 A resulting value to pass to EFI_ISA_IO.Unmap().\r
 \r
   @retval EFI_SUCCESS            The range was mapped for the returned NumberOfBytes.\r
@@ -1302,7 +1302,7 @@ IsaIoMap (
     return EFI_UNSUPPORTED;\r
   }\r
   //\r
-  // Set Feature Flag PcdIsaBusSupportBusMaster to FALSE to disable support for \r
+  // Set Feature Flag PcdIsaBusSupportBusMaster to FALSE to disable support for\r
   // ISA Bus Master.\r
   //\r
   // So we just return EFI_UNSUPPORTED for these functions.\r
@@ -1345,7 +1345,7 @@ IsaIoMap (
 \r
   @retval EFI_SUCCESS            The requested memory pages were allocated.\r
   @retval EFI_INVALID_PARAMETER  Type is invalid or MemoryType is invalid or HostAddress is NULL\r
-  @retval EFI_UNSUPPORTED        Attributes is unsupported or the memory range specified \r
+  @retval EFI_UNSUPPORTED        Attributes is unsupported or the memory range specified\r
                                  by HostAddress, Pages, and Type is not available for common buffer use.\r
   @retval EFI_OUT_OF_RESOURCES   The memory pages could not be allocated.\r
 **/\r
@@ -1364,7 +1364,7 @@ IsaIoAllocateBuffer (
   EFI_PHYSICAL_ADDRESS  PhysicalAddress;\r
 \r
   //\r
-  // Set Feature Flag PcdIsaBusOnlySupportSlaveDma to FALSE to disable support for \r
+  // Set Feature Flag PcdIsaBusOnlySupportSlaveDma to FALSE to disable support for\r
   // ISA Bus Master.\r
   // Or unset Feature Flag PcdIsaBusSupportDma to disable support for ISA DMA.\r
   //\r
@@ -1418,7 +1418,7 @@ IsaIoAllocateBuffer (
 }\r
 \r
 /**\r
-  Frees memory that was allocated with EFI_ISA_IO.AllocateBuffer(). \r
+  Frees memory that was allocated with EFI_ISA_IO.AllocateBuffer().\r
 \r
   @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in] Pages               The number of pages to free.\r
@@ -1438,7 +1438,7 @@ IsaIoFreeBuffer (
   EFI_STATUS  Status;\r
 \r
   //\r
-  // Set Feature Flag PcdIsaBusOnlySupportSlaveDma to FALSE to disable support for \r
+  // Set Feature Flag PcdIsaBusOnlySupportSlaveDma to FALSE to disable support for\r
   // ISA Bus Master.\r
   // Or unset Feature Flag PcdIsaBusSupportDma to disable support for ISA DMA.\r
   //\r
index 65555d3eb1433a3bd1d10d6511fa8bea6b0b2db7..768b74c987567c9d1f6895100121afd8c786aa3a 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   ISA Floppy Disk UEFI Driver conforming to the UEFI driver model\r
 \r
-  1. Support two types diskette drive  \r
+  1. Support two types diskette drive\r
      1.44M drive and 2.88M drive (and now only support 1.44M)\r
   2. Support two diskette drives per floppy disk controller\r
   3. Use DMA channel 2 to transfer data\r
   4. Do not use interrupt\r
   5. Support diskette change line signal and write protect\r
-  \r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -39,9 +39,9 @@ EFI_DRIVER_BINDING_PROTOCOL gFdcControllerDriver = {
 /**\r
   The main Entry Point for this driver.\r
 \r
-  @param[in] ImageHandle  The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle  The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable  A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS     The entry point is executed successfully.\r
   @retval other           Some error occurs when executing this entry point.\r
 **/\r
@@ -72,14 +72,14 @@ InitializeIsaFloppy(
 \r
 /**\r
   Test if the controller is a floppy disk drive device\r
-  \r
-  @param[in] This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.  \r
+\r
+  @param[in] This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param[in] Controller           The handle of the controller to test.\r
   @param[in] RemainingDevicePath  A pointer to the remaining portion of a device path.\r
-  \r
+\r
   @retval EFI_SUCCESS             The device is supported by this driver.\r
   @retval EFI_ALREADY_STARTED     The device is already being managed by this driver.\r
-  @retval EFI_ACCESS_DENIED       The device is already being managed by a different driver \r
+  @retval EFI_ACCESS_DENIED       The device is already being managed by a different driver\r
                                   or an application that requires exclusive access.\r
   @retval EFI_UNSUPPORTED         The device is is not supported by this driver.\r
 **/\r
@@ -159,10 +159,10 @@ FdcControllerDriverSupported (
   Start this driver on Controller.\r
 \r
   @param[in] This                  A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in] ControllerHandle      The handle of the controller to start. This handle \r
-                                   must support a protocol interface that supplies \r
+  @param[in] ControllerHandle      The handle of the controller to start. This handle\r
+                                   must support a protocol interface that supplies\r
                                    an I/O abstraction to the driver.\r
-  @param[in] RemainingDevicePath   A pointer to the remaining portion of a device path. \r
+  @param[in] RemainingDevicePath   A pointer to the remaining portion of a device path.\r
                                    This parameter is ignored by device drivers, and is optional for bus drivers.\r
 \r
   @retval EFI_SUCCESS              The device was started.\r
@@ -248,7 +248,7 @@ FdcControllerDriverStart (
 \r
   FdcDev->ControllerNameTable = NULL;\r
   AddName (FdcDev);\r
-  \r
+\r
   //\r
   // Look up the base address of the Floppy Disk Controller which controls this floppy device\r
   //\r
@@ -397,11 +397,11 @@ Done:
   Stop this driver on ControllerHandle.\r
 \r
   @param[in] This               A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in] ControllerHandle   A handle to the device being stopped. The handle must \r
-                                support a bus specific I/O protocol for the driver \r
+  @param[in] ControllerHandle   A handle to the device being stopped. The handle must\r
+                                support a bus specific I/O protocol for the driver\r
                                 to use to stop the device.\r
   @param[in] NumberOfChildren   The number of child device handles in ChildHandleBuffer.\r
-  @param[in] ChildHandleBuffer  An array of child handles to be freed. May be NULL \r
+  @param[in] ChildHandleBuffer  An array of child handles to be freed. May be NULL\r
                                 if NumberOfChildren is 0.\r
 \r
   @retval EFI_SUCCESS           The device was stopped.\r
index 30a2d7bf0c3c74f1770f1812d1c80e3f1307b674..4fdaa64bdd39d390c4e59fb943da0c3b28183723 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Include file for ISA Floppy Driver\r
-  \r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -482,14 +482,14 @@ typedef struct {
 \r
 /**\r
   Test controller is a floppy disk drive device\r
-  \r
-  @param[in] This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.  \r
+\r
+  @param[in] This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param[in] Controller           The handle of the controller to test.\r
   @param[in] RemainingDevicePath  A pointer to the remaining portion of a device path.\r
-  \r
+\r
   @retval EFI_SUCCESS             The device is supported by this driver.\r
   @retval EFI_ALREADY_STARTED     The device is already being managed by this driver.\r
-  @retval EFI_ACCESS_DENIED       The device is already being managed by a different driver \r
+  @retval EFI_ACCESS_DENIED       The device is already being managed by a different driver\r
                                   or an application that requires exclusive access.\r
 **/\r
 EFI_STATUS\r
@@ -504,10 +504,10 @@ FdcControllerDriverSupported (
   Start this driver on Controller.\r
 \r
   @param[in]  This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle     The handle of the controller to start. This handle \r
-                                   must support a protocol interface that supplies \r
+  @param[in]  ControllerHandle     The handle of the controller to start. This handle\r
+                                   must support a protocol interface that supplies\r
                                    an I/O abstraction to the driver.\r
-  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path. \r
+  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path.\r
                                    This parameter is ignored by device drivers, and is optional for bus drivers.\r
 \r
   @retval EFI_SUCCESS              The device was started.\r
@@ -528,11 +528,11 @@ FdcControllerDriverStart (
   Stop this driver on ControllerHandle.\r
 \r
   @param[in]  This              A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle  A handle to the device being stopped. The handle must \r
-                                support a bus specific I/O protocol for the driver \r
+  @param[in]  ControllerHandle  A handle to the device being stopped. The handle must\r
+                                support a bus specific I/O protocol for the driver\r
                                 to use to stop the device.\r
   @param[in]  NumberOfChildren  The number of child device handles in ChildHandleBuffer.\r
-  @param[in]  ChildHandleBuffer An array of child handles to be freed. May be NULL \r
+  @param[in]  ChildHandleBuffer An array of child handles to be freed. May be NULL\r
                                 if NumberOfChildren is 0.\r
 \r
   @retval EFI_SUCCESS           The device was stopped.\r
@@ -552,14 +552,14 @@ FdcControllerDriverStop (
 //\r
 \r
 /**\r
-  Reset the Floppy Logic Drive, call the FddReset function.   \r
-  \r
+  Reset the Floppy Logic Drive, call the FddReset function.\r
+\r
   @param This EFI_BLOCK_IO *: A pointer to the Block I/O protocol interface\r
-  @param ExtendedVerification BOOLEAN: Indicate that the driver may perform a more \r
-                    exhaustive verification operation of the device during \r
-                    reset, now this par is ignored in this driver          \r
+  @param ExtendedVerification BOOLEAN: Indicate that the driver may perform a more\r
+                    exhaustive verification operation of the device during\r
+                    reset, now this par is ignored in this driver\r
   @retval  EFI_SUCCESS:      The Floppy Logic Drive is reset\r
-  @retval  EFI_DEVICE_ERROR: The Floppy Logic Drive is not functioning correctly \r
+  @retval  EFI_DEVICE_ERROR: The Floppy Logic Drive is not functioning correctly\r
                       and can not be reset\r
 \r
 **/\r
@@ -572,7 +572,7 @@ FdcReset (
 \r
 /**\r
   Flush block via fdd controller.\r
-  \r
+\r
   @param  This EFI_BLOCK_IO *: A pointer to the Block I/O protocol interface\r
   @return EFI_SUCCESS\r
 \r
@@ -584,23 +584,23 @@ FddFlushBlocks (
   );\r
 \r
 /**\r
-  Read the requested number of blocks from the device.   \r
-  \r
+  Read the requested number of blocks from the device.\r
+\r
   @param This EFI_BLOCK_IO *: A pointer to the Block I/O protocol interface\r
-  @param MediaId UINT32:    The media id that the read request is for    \r
+  @param MediaId UINT32:    The media id that the read request is for\r
   @param  Lba EFI_LBA:     The starting logic block address to read from on the device\r
   @param  BufferSize UINTN:  The size of the Buffer in bytes\r
   @param  Buffer VOID *:     A pointer to the destination buffer for the data\r
-  \r
+\r
   @retval  EFI_SUCCESS:     The data was read correctly from the device\r
   @retval  EFI_DEVICE_ERROR:The device reported an error while attempting to perform\r
                      the read operation\r
   @retval  EFI_NO_MEDIA:    There is no media in the device\r
   @retval  EFI_MEDIA_CHANGED:   The MediaId is not for the current media\r
-  @retval  EFI_BAD_BUFFER_SIZE: The BufferSize parameter is not a multiple of the \r
+  @retval  EFI_BAD_BUFFER_SIZE: The BufferSize parameter is not a multiple of the\r
                          intrinsic block size of the device\r
-  @retval  EFI_INVALID_PARAMETER:The read request contains LBAs that are not valid, \r
-                          or the buffer is not on proper alignment \r
+  @retval  EFI_INVALID_PARAMETER:The read request contains LBAs that are not valid,\r
+                          or the buffer is not on proper alignment\r
 \r
 **/\r
 EFI_STATUS\r
@@ -614,24 +614,24 @@ FddReadBlocks (
   );\r
 \r
 /**\r
-  Write a specified number of blocks to the device.   \r
-  \r
+  Write a specified number of blocks to the device.\r
+\r
   @param  This EFI_BLOCK_IO *: A pointer to the Block I/O protocol interface\r
-  @param  MediaId UINT32:    The media id that the write request is for   \r
+  @param  MediaId UINT32:    The media id that the write request is for\r
   @param  Lba EFI_LBA:     The starting logic block address to be written\r
   @param  BufferSize UINTN:  The size in bytes in Buffer\r
   @param  Buffer VOID *:     A pointer to the source buffer for the data\r
-  \r
+\r
   @retval  EFI_SUCCESS:     The data were written correctly to the device\r
-  @retval  EFI_WRITE_PROTECTED: The device can not be written to \r
+  @retval  EFI_WRITE_PROTECTED: The device can not be written to\r
   @retval  EFI_NO_MEDIA:    There is no media in the device\r
   @retval  EFI_MEDIA_CHANGED:   The MediaId is not for the current media\r
-  @retval  EFI_DEVICE_ERROR:  The device reported an error while attempting to perform \r
-                       the write operation \r
-  @retval  EFI_BAD_BUFFER_SIZE: The BufferSize parameter is not a multiple of the \r
+  @retval  EFI_DEVICE_ERROR:  The device reported an error while attempting to perform\r
+                       the write operation\r
+  @retval  EFI_BAD_BUFFER_SIZE: The BufferSize parameter is not a multiple of the\r
                          intrinsic block size of the device\r
-  @retval  EFI_INVALID_PARAMETER:The write request contains LBAs that are not valid, \r
-                          or the buffer is not on proper alignment \r
+  @retval  EFI_INVALID_PARAMETER:The write request contains LBAs that are not valid,\r
+                          or the buffer is not on proper alignment\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -649,7 +649,7 @@ FddWriteBlocks (
 /**\r
 \r
   Detect the floppy drive is presented or not.\r
\r
+\r
   @param  FdcDev FDC_BLK_IO_DEV * : A pointer to the Data Structure FDC_BLK_IO_DEV\r
   @retval EFI_SUCCESS    Drive is presented\r
   @retval EFI_NOT_FOUND  Drive is not presented\r
@@ -664,7 +664,7 @@ DiscoverFddDevice (
 \r
   Do recalibrate  and see the drive is presented or not.\r
   Set the media parameters.\r
-  \r
+\r
   @param FdcDev FDC_BLK_IO_DEV * : A pointer to the Data Structure FDC_BLK_IO_DEV\r
   @return the drive is presented or not\r
 \r
@@ -677,9 +677,9 @@ FddIdentify (
 /**\r
 \r
   Reset the Floppy Logic Drive.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV * : A pointer to the Data Structure FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval EFI_SUCCESS:    The Floppy Logic Drive is reset\r
   @retval EFI_DEVICE_ERROR: The Floppy Logic Drive is not functioning correctly and\r
                       can not be reset\r
@@ -694,9 +694,9 @@ FddReset (
 \r
   Turn the drive's motor on.\r
   The drive's motor must be on before any command can be executed.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV * : A pointer to the Data Structure FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS:       Turn the drive's motor on successfully\r
   @retval  EFI_DEVICE_ERROR:    The drive is busy, so can not turn motor on\r
   @retval  EFI_INVALID_PARAMETER: Fail to Set timer(Cancel timer)\r
@@ -710,10 +710,10 @@ MotorOn (
 /**\r
 \r
   Set a Timer and when Timer goes off, turn the motor off.\r
-  \r
-  \r
+\r
+\r
   @param  FdcDev FDC_BLK_IO_DEV * : A pointer to the Data Structure FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS:       Set the Timer successfully\r
   @retval  EFI_INVALID_PARAMETER: Fail to Set the timer\r
 \r
@@ -725,10 +725,10 @@ MotorOff (
 \r
 /**\r
   Detect the disk in the drive is changed or not.\r
-  \r
-  \r
+\r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to Data Structure FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS:    No disk media change\r
   @retval  EFI_DEVICE_ERROR: Fail to do the recalibrate or seek operation\r
   @retval  EFI_NO_MEDIA:   No disk in the drive\r
@@ -743,9 +743,9 @@ DisketChanged (
   Do the Specify command, this command sets DMA operation\r
   and the initial values for each of the three internal\r
   times: HUT, SRT and HLT.\r
-  \r
+\r
   @param FdcDev    Pointer to instance of FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Execute the Specify command successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to execute the command\r
 \r
@@ -757,7 +757,7 @@ Specify (
 \r
 /**\r
   Set the head of floppy drive to track 0.\r
\r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to Data Structure FDC_BLK_IO_DEV\r
   @retval EFI_SUCCESS:    Execute the Recalibrate operation successfully\r
   @retval EFI_DEVICE_ERROR: Fail to execute the Recalibrate operation\r
@@ -770,10 +770,10 @@ Recalibrate (
 \r
 /**\r
   Set the head of floppy drive to the new cylinder.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to Data Structure FDC_BLK_IO_DEV\r
   @param  Lba EFI_LBA     : The logic block address want to seek\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Execute the Seek operation successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to execute the Seek operation\r
 \r
@@ -786,12 +786,12 @@ Seek (
 \r
 /**\r
   Do the Sense Interrupt Status command, this command resets the interrupt signal.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to Data Structure FDC_BLK_IO_DEV\r
   @param  StatusRegister0 UINT8 *: Be used to save Status Register 0 read from FDC\r
   @param  PresentCylinderNumber  UINT8 *: Be used to save present cylinder number\r
                                     read from FDC\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Execute the Sense Interrupt Status command successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to execute the command\r
 \r
@@ -805,10 +805,10 @@ SenseIntStatus (
 \r
 /**\r
   Do the Sense Drive Status command.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to Data Structure FDC_BLK_IO_DEV\r
   @param  Lba EFI_LBA     : Logic block address\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Execute the Sense Drive Status command successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to execute the command\r
   @retval  EFI_WRITE_PROTECTED:The disk is write protected\r
@@ -822,9 +822,9 @@ SenseDrvStatus (
 \r
 /**\r
   Update the disk media properties and if necessary reinstall Block I/O interface.\r
\r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to Data Structure FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Do the operation successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to the operation\r
 \r
@@ -836,7 +836,7 @@ DetectMedia (
 \r
 /**\r
   Set the data rate and so on.\r
\r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to Data Structure FDC_BLK_IO_DEV\r
 \r
   @retval EFI_SUCCESS success to set the data rate\r
@@ -848,13 +848,13 @@ Setup (
 \r
 /**\r
   Read or Write a number of blocks in the same cylinder.\r
\r
+\r
   @param  FdcDev      A pointer to Data Structure FDC_BLK_IO_DEV\r
-  @param  HostAddress device address \r
+  @param  HostAddress device address\r
   @param  Lba         The starting logic block address to read from on the device\r
   @param  NumberOfBlocks The number of block wanted to be read or write\r
   @param  Read        Operation type: read or write\r
-  \r
+\r
   @retval EFI_SUCCESS Success operate\r
 \r
 **/\r
@@ -869,7 +869,7 @@ ReadWriteDataSector (
 \r
 /**\r
   Fill in FDD command's parameter.\r
-  \r
+\r
   @param FdcDev   Pointer to instance of FDC_BLK_IO_DEV\r
   @param Lba      The starting logic block address to read from on the device\r
   @param Command  FDD command\r
@@ -884,10 +884,10 @@ FillPara (
 \r
 /**\r
   Read result byte from Data Register of FDC.\r
-  \r
+\r
   @param FdcDev   Pointer to instance of FDC_BLK_IO_DEV\r
   @param Pointer  Buffer to store the byte read from FDC\r
-  \r
+\r
   @retval EFI_SUCCESS       Read result byte from FDC successfully\r
   @retval EFI_DEVICE_ERROR  The FDC is not ready to be read\r
 \r
@@ -900,10 +900,10 @@ DataInByte (
 \r
 /**\r
   Write command byte to Data Register of FDC.\r
-  \r
+\r
   @param FdcDev  Pointer to instance of FDC_BLK_IO_DEV\r
   @param Pointer Be used to save command byte written to FDC\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Write command byte to FDC successfully\r
   @retval  EFI_DEVICE_ERROR: The FDC is not ready to be written\r
 \r
@@ -916,10 +916,10 @@ DataOutByte (
 \r
 /**\r
   Detect the specified floppy logic drive is busy or not within a period of time.\r
-  \r
+\r
   @param FdcDev           Indicate it is drive A or drive B\r
   @param Timeout          The time period for waiting\r
-  \r
+\r
   @retval EFI_SUCCESS:  The drive and command are not busy\r
   @retval EFI_TIMEOUT:  The drive or command is still busy after a period time that\r
                         set by Timeout\r
@@ -933,11 +933,11 @@ FddWaitForBSYClear (
 \r
 /**\r
   Determine whether FDC is ready to write or read.\r
-  \r
+\r
   @param  FdcDev Pointer to instance of FDC_BLK_IO_DEV\r
   @param  Dio BOOLEAN:      Indicate the FDC is waiting to write or read\r
   @param  Timeout           The time period for waiting\r
-  \r
+\r
   @retval EFI_SUCCESS:  FDC is ready to write or read\r
   @retval EFI_NOT_READY:  FDC is not ready within the specified time period\r
 \r
@@ -969,9 +969,9 @@ CheckResult (
 \r
 /**\r
   Check the drive status information.\r
-  \r
+\r
   @param StatusRegister3  the value of Status Register 3\r
-  \r
+\r
   @retval EFI_SUCCESS           The disk is not write protected\r
   @retval EFI_WRITE_PROTECTED:  The disk is write protected\r
 \r
@@ -983,11 +983,11 @@ CheckStatus3 (
 \r
 /**\r
   Calculate the number of block in the same cylinder according to Lba.\r
-  \r
+\r
   @param FdcDev FDC_BLK_IO_DEV *: A pointer to Data Structure FDC_BLK_IO_DEV\r
   @param Lba EFI_LBA:      The starting logic block address\r
   @param NumberOfBlocks UINTN: The number of blocks\r
-  \r
+\r
   @return The number of blocks in the same cylinder which the starting\r
         logic block address is Lba\r
 \r
@@ -1001,7 +1001,7 @@ GetTransferBlockCount (
 \r
 /**\r
   When the Timer(2s) off, turn the drive's motor off.\r
-  \r
+\r
   @param Event EFI_EVENT: Event(the timer) whose notification function is being\r
                      invoked\r
   @param Context VOID *:  Pointer to the notification function's context\r
@@ -1016,7 +1016,7 @@ FddTimerProc (
 \r
 /**\r
   Read I/O port for FDC.\r
\r
+\r
   @param FdcDev FDC_BLK_IO_DEV *: A pointer to Data Structure FDC_BLK_IO_DEV\r
   @param Offset The offset address of port\r
 \r
@@ -1029,11 +1029,11 @@ FdcReadPort (
 \r
 /**\r
   Write I/O port for FDC.\r
\r
+\r
   @param FdcDev FDC_BLK_IO_DEV *: A pointer to Data Structure FDC_BLK_IO_DEV\r
   @param Offset The offset address of port\r
   @param Data   Value written to port\r
-  \r
+\r
 **/\r
 VOID\r
 FdcWritePort (\r
@@ -1079,10 +1079,10 @@ FddReadWriteBlocks (
   );\r
 \r
 /**\r
-  Common interface for free cache. \r
-  \r
+  Common interface for free cache.\r
+\r
   @param FdcDev  Pointer of FDC_BLK_IO_DEV instance\r
-  \r
+\r
 **/\r
 VOID\r
 FdcFreeCache (\r
index 39f0ba0191cc6695f5818724b99921f211bc36c0..2dce7ac7e0b717568195ee5cbd6bef4e40c2425d 100644 (file)
@@ -1,7 +1,7 @@
-/** @file \r
+/** @file\r
   Implementation of the EFI Block IO Protocol for ISA Floppy driver\r
-  \r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -71,7 +71,7 @@ FddFlushBlocks (
 \r
 /**\r
   Common report status code interface.\r
-  \r
+\r
   @param This  Pointer of FDC_BLK_IO_DEV instance\r
   @param Read  Read or write operation when error occurrs\r
 **/\r
@@ -107,7 +107,7 @@ FddReportStatus (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHANGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -148,7 +148,7 @@ FddReadBlocks (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -189,7 +189,7 @@ FddWriteBlocks (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHANGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
   @retval EFI_WRITE_PROTECTED   The device can not be written to.\r
 \r
@@ -359,9 +359,9 @@ FddReadWriteBlocks (
 \r
 /**\r
   Free cache for a floppy disk.\r
-  \r
+\r
   @param FdcDev  A Pointer to FDC_BLK_IO_DEV instance\r
-  \r
+\r
 **/\r
 VOID\r
 FdcFreeCache (\r
index 16ad6b02e30eab781f2bf3e2f2940e81e21addb6..48e214f173984096bdc0a6367b9546b935a83b30 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Internal floppy disk controller programming functions for the floppy driver.\r
-  \r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -16,7 +16,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 /**\r
   Detect whether a floppy drive is present or not.\r
\r
+\r
   @param[in] FdcDev  A pointer to the FDC_BLK_IO_DEV\r
 \r
   @retval EFI_SUCCESS    The floppy disk drive is present\r
@@ -49,7 +49,7 @@ DiscoverFddDevice (
 /**\r
   Do recalibrate and check if the drive is present or not\r
   and set the media parameters if the driver is present.\r
-  \r
+\r
   @param[in] FdcDev  A pointer to the FDC_BLK_IO_DEV\r
 \r
   @retval EFI_SUCCESS       The floppy disk drive is present\r
@@ -123,9 +123,9 @@ FddIdentify (
 \r
 /**\r
   Reset the Floppy Logic Drive.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV * : A pointer to the FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval EFI_SUCCESS:    The Floppy Logic Drive is reset\r
   @retval EFI_DEVICE_ERROR: The Floppy Logic Drive is not functioning correctly and\r
                       can not be reset\r
@@ -222,9 +222,9 @@ FddReset (
 /**\r
   Turn the floppy disk drive's motor on.\r
   The drive's motor must be on before any command can be executed.\r
-  \r
+\r
   @param[in] FdcDev  A pointer to the FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS            The drive's motor was turned on successfully\r
   @retval  EFI_DEVICE_ERROR       The drive is busy, so can not turn motor on\r
 **/\r
@@ -298,9 +298,9 @@ MotorOn (
 \r
 /**\r
   Set a Timer and when Timer goes off, turn the motor off.\r
-  \r
+\r
   @param[in] FdcDev  A pointer to the FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS            Set the Timer successfully\r
   @retval  EFI_INVALID_PARAMETER  Fail to Set the timer\r
 **/\r
@@ -317,9 +317,9 @@ MotorOff (
 \r
 /**\r
   Detect whether the disk in the drive is changed or not.\r
-  \r
+\r
   @param[in] FdcDev  A pointer to FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS        No disk media change\r
   @retval  EFI_DEVICE_ERROR   Fail to do the recalibrate or seek operation\r
   @retval  EFI_NO_MEDIA       No disk in the drive\r
@@ -382,9 +382,9 @@ DisketChanged (
   Do the Specify command, this command sets DMA operation\r
   and the initial values for each of the three internal\r
   times: HUT, SRT and HLT.\r
-  \r
+\r
   @param[in] FdcDev  Pointer to instance of FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval EFI_SUCCESS       Execute the Specify command successfully\r
   @retval EFI_DEVICE_ERROR  Fail to execute the command\r
 **/\r
@@ -422,7 +422,7 @@ Specify (
 \r
 /**\r
   Set the head of floppy drive to track 0.\r
\r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to FDC_BLK_IO_DEV\r
   @retval EFI_SUCCESS:    Execute the Recalibrate operation successfully\r
   @retval EFI_DEVICE_ERROR: Fail to execute the Recalibrate operation\r
@@ -496,10 +496,10 @@ Recalibrate (
 \r
 /**\r
   Set the head of floppy drive to the new cylinder.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to FDC_BLK_IO_DEV\r
   @param  Lba EFI_LBA     : The logic block address want to seek\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Execute the Seek operation successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to execute the Seek operation\r
 \r
@@ -600,12 +600,12 @@ Seek (
 /**\r
   Do the Sense Interrupt Status command, this command\r
   resets the interrupt signal.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to FDC_BLK_IO_DEV\r
   @param  StatusRegister0 UINT8 *: Be used to save Status Register 0 read from FDC\r
   @param  PresentCylinderNumber  UINT8 *: Be used to save present cylinder number\r
                                     read from FDC\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Execute the Sense Interrupt Status command successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to execute the command\r
 \r
@@ -637,10 +637,10 @@ SenseIntStatus (
 \r
 /**\r
   Do the Sense Drive Status command.\r
-  \r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to FDC_BLK_IO_DEV\r
   @param  Lba EFI_LBA     : Logic block address\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Execute the Sense Drive Status command successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to execute the command\r
   @retval  EFI_WRITE_PROTECTED:The disk is write protected\r
@@ -700,9 +700,9 @@ SenseDrvStatus (
 \r
 /**\r
   Update the disk media properties and if necessary reinstall Block I/O interface.\r
\r
+\r
   @param  FdcDev FDC_BLK_IO_DEV *: A pointer to FDC_BLK_IO_DEV\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Do the operation successfully\r
   @retval  EFI_DEVICE_ERROR: Fail to the operation\r
 \r
@@ -778,7 +778,7 @@ DetectMedia (
 \r
 /**\r
   Set the data rate and so on.\r
\r
+\r
   @param  FdcDev  A pointer to FDC_BLK_IO_DEV\r
 \r
   @retval EFI_SUCCESS success to set the data rate\r
@@ -811,13 +811,13 @@ Setup (
 \r
 /**\r
   Read or Write a number of blocks in the same cylinder.\r
\r
+\r
   @param  FdcDev      A pointer to FDC_BLK_IO_DEV\r
-  @param  HostAddress device address \r
+  @param  HostAddress device address\r
   @param  Lba         The starting logic block address to read from on the device\r
   @param  NumberOfBlocks The number of block wanted to be read or write\r
   @param  Read        Operation type: read or write\r
-  \r
+\r
   @retval EFI_SUCCESS Success operate\r
 \r
 **/\r
@@ -961,7 +961,7 @@ ReadWriteDataSector (
 \r
 /**\r
   Fill in FDD command's parameter.\r
-  \r
+\r
   @param FdcDev   Pointer to instance of FDC_BLK_IO_DEV\r
   @param Lba      The starting logic block address to read from on the device\r
   @param Command  FDD command\r
@@ -1002,10 +1002,10 @@ FillPara (
 \r
 /**\r
   Read result byte from Data Register of FDC.\r
-  \r
+\r
   @param FdcDev   Pointer to instance of FDC_BLK_IO_DEV\r
   @param Pointer  Buffer to store the byte read from FDC\r
-  \r
+\r
   @retval EFI_SUCCESS       Read result byte from FDC successfully\r
   @retval EFI_DEVICE_ERROR  The FDC is not ready to be read\r
 \r
@@ -1041,10 +1041,10 @@ DataInByte (
 \r
 /**\r
   Write command byte to Data Register of FDC.\r
-  \r
+\r
   @param FdcDev  Pointer to instance of FDC_BLK_IO_DEV\r
   @param Pointer Be used to save command byte written to FDC\r
-  \r
+\r
   @retval  EFI_SUCCESS:    Write command byte to FDC successfully\r
   @retval  EFI_DEVICE_ERROR: The FDC is not ready to be written\r
 \r
@@ -1081,10 +1081,10 @@ DataOutByte (
 \r
 /**\r
   Detect the specified floppy logic drive is busy or not within a period of time.\r
-  \r
+\r
   @param FdcDev           Indicate it is drive A or drive B\r
   @param Timeout          The time period for waiting\r
-  \r
+\r
   @retval EFI_SUCCESS:  The drive and command are not busy\r
   @retval EFI_TIMEOUT:  The drive or command is still busy after a period time that\r
                         set by Timeout\r
@@ -1135,11 +1135,11 @@ FddWaitForBSYClear (
 \r
 /**\r
   Determine whether FDC is ready to write or read.\r
-  \r
+\r
   @param  FdcDev Pointer to instance of FDC_BLK_IO_DEV\r
   @param  Dio BOOLEAN:      Indicate the FDC is waiting to write or read\r
   @param  Timeout           The time period for waiting\r
-  \r
+\r
   @retval EFI_SUCCESS:  FDC is ready to write or read\r
   @retval EFI_NOT_READY:  FDC is not ready within the specified time period\r
 \r
@@ -1196,7 +1196,7 @@ FddDRQReady (
 }\r
 \r
 /**\r
-  Set FDC control structure's attribute according to result. \r
+  Set FDC control structure's attribute according to result.\r
 \r
   @param Result  Point to result structure\r
   @param FdcDev  FDC control structure\r
@@ -1247,9 +1247,9 @@ CheckResult (
 \r
 /**\r
   Check the drive status information.\r
-  \r
+\r
   @param StatusRegister3  the value of Status Register 3\r
-  \r
+\r
   @retval EFI_SUCCESS           The disk is not write protected\r
   @retval EFI_WRITE_PROTECTED:  The disk is write protected\r
 \r
@@ -1268,11 +1268,11 @@ CheckStatus3 (
 \r
 /**\r
   Calculate the number of block in the same cylinder according to LBA.\r
-  \r
+\r
   @param FdcDev FDC_BLK_IO_DEV *: A pointer to FDC_BLK_IO_DEV\r
   @param LBA EFI_LBA:      The starting logic block address\r
   @param NumberOfBlocks UINTN: The number of blocks\r
-  \r
+\r
   @return The number of blocks in the same cylinder which the starting\r
         logic block address is LBA\r
 \r
@@ -1304,7 +1304,7 @@ GetTransferBlockCount (
 \r
 /**\r
   When the Timer(2s) off, turn the drive's motor off.\r
-  \r
+\r
   @param Event EFI_EVENT: Event(the timer) whose notification function is being\r
                      invoked\r
   @param Context VOID *:  Pointer to the notification function's context\r
@@ -1343,7 +1343,7 @@ FddTimerProc (
 \r
 /**\r
   Read an I/O port of FDC.\r
\r
+\r
   @param[in] FdcDev  A pointer to FDC_BLK_IO_DEV.\r
   @param[in] Offset  The address offset of the I/O port.\r
 \r
@@ -1372,7 +1372,7 @@ FdcReadPort (
 \r
 /**\r
   Write an I/O port of FDC.\r
\r
+\r
   @param[in] FdcDev  A pointer to FDC_BLK_IO_DEV\r
   @param[in] Offset  The address offset of the I/O port\r
   @param[in] Data    8-bit Value written to the I/O port\r
index 9bf5c6c1de1abe3ee9af6046353c8f0d53333022..dfbe50e2e6aaac4b377268918ac1836dbe57370b 100644 (file)
@@ -5,13 +5,13 @@
 // driver provides support for two drives per controller, DMA channel 2, diskette\r
 // change line and write protect.  Currently only 1.44MB drives are supported.\r
 //\r
-// Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution. The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 07af0667ffe48f2e96faf9aa80f96c54030b76ef..57889478e54adefc9bf5041990720e846cd94194 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // IsaFloppyDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "ISA Floppy DXE Driver"\r
 \r
 \r
index a6a7e42aeed616ab15048272e48be40a623a2c49..46006377a4fb2778f6cb1d0b030b64ca968a5003 100644 (file)
@@ -1,8 +1,8 @@
-/** @file \r
+/** @file\r
 Definition of FDC registers and structures.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-  \r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
 of the BSD License which accompanies this distribution.  The\r
index 765a46dd31d17174a5fc0666bc28a2c7e662aebe..830eb9dfecfb1f4b933bd792636e0141402f406b 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
 Floppy Peim to support Recovery function from Floppy device.\r
 \r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
-  \r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
 of the BSD License which accompanies this distribution.  The\r
@@ -152,7 +152,7 @@ PEI_DMA_TABLE      mRegisterTable[] = {
 };\r
 \r
 //\r
-// Table of diskette parameters of various diskette types \r
+// Table of diskette parameters of various diskette types\r
 //\r
 DISKET_PARA_TABLE  DiskPara[9] = {\r
   {\r
@@ -292,7 +292,7 @@ FDC_BLK_IO_DEV mBlockIoDevTemplate = {
                             TRUE means input.\r
                             FALSE means output.\r
   @param  TimeoutInMseconds  Timeout value to wait.\r
-  \r
+\r
   @retval EFI_SUCCESS       FDC is ready.\r
   @retval EFI_NOT_READY     FDC is not ready within the specified time period.\r
 \r
@@ -783,7 +783,7 @@ Recalibrate (
 \r
     if ((Sts0 & 0xf0) == BIT5 && Pcn == 0) {\r
       //\r
-      // Recalibration is successful. \r
+      // Recalibration is successful.\r
       //\r
       Info->Pcn = 0;\r
       Info->NeedRecalibrate = FALSE;\r
@@ -1022,7 +1022,7 @@ DiscoverFdcDevice (
     //\r
     // No diskette in floppy.\r
     //\r
-    MediaInfo->MediaPresent = FALSE;    \r
+    MediaInfo->MediaPresent = FALSE;\r
   } else if (Status != EFI_MEDIA_CHANGED && Status != EFI_SUCCESS) {\r
     //\r
     // EFI_DEVICE_ERROR\r
@@ -1439,16 +1439,16 @@ ReadDataSector (
 /**\r
   Gets the count of block I/O devices that one specific block driver detects.\r
 \r
-  This function is used for getting the count of block I/O devices that one \r
+  This function is used for getting the count of block I/O devices that one\r
   specific block driver detects.  To the PEI ATAPI driver, it returns the number\r
-  of all the detected ATAPI devices it detects during the enumeration process. \r
-  To the PEI legacy floppy driver, it returns the number of all the legacy \r
-  devices it finds during its enumeration process. If no device is detected, \r
-  then the function will return zero.  \r
-  \r
-  @param[in]  PeiServices          General-purpose services that are available \r
+  of all the detected ATAPI devices it detects during the enumeration process.\r
+  To the PEI legacy floppy driver, it returns the number of all the legacy\r
+  devices it finds during its enumeration process. If no device is detected,\r
+  then the function will return zero.\r
+\r
+  @param[in]  PeiServices          General-purpose services that are available\r
                                    to every PEIM.\r
-  @param[in]  This                 Indicates the EFI_PEI_RECOVERY_BLOCK_IO_PPI \r
+  @param[in]  This                 Indicates the EFI_PEI_RECOVERY_BLOCK_IO_PPI\r
                                    instance.\r
   @param[out] NumberBlockDevices   The number of block I/O devices discovered.\r
 \r
@@ -1477,27 +1477,27 @@ FdcGetNumberOfBlockDevices (
 /**\r
   Gets a block device's media information.\r
 \r
-  This function will provide the caller with the specified block device's media \r
-  information. If the media changes, calling this function will update the media \r
+  This function will provide the caller with the specified block device's media\r
+  information. If the media changes, calling this function will update the media\r
   information accordingly.\r
 \r
   @param[in]  PeiServices   General-purpose services that are available to every\r
                             PEIM\r
   @param[in]  This          Indicates the EFI_PEI_RECOVERY_BLOCK_IO_PPI instance.\r
-  @param[in]  DeviceIndex   Specifies the block device to which the function wants \r
-                            to talk. Because the driver that implements Block I/O \r
-                            PPIs will manage multiple block devices, the PPIs that \r
-                            want to talk to a single device must specify the \r
+  @param[in]  DeviceIndex   Specifies the block device to which the function wants\r
+                            to talk. Because the driver that implements Block I/O\r
+                            PPIs will manage multiple block devices, the PPIs that\r
+                            want to talk to a single device must specify the\r
                             device index that was assigned during the enumeration\r
-                            process. This index is a number from one to \r
+                            process. This index is a number from one to\r
                             NumberBlockDevices.\r
-  @param[out] MediaInfo     The media information of the specified block media.  \r
-                            The caller is responsible for the ownership of this \r
+  @param[out] MediaInfo     The media information of the specified block media.\r
+                            The caller is responsible for the ownership of this\r
                             data structure.\r
-  \r
-  @retval EFI_SUCCESS        Media information about the specified block device \r
+\r
+  @retval EFI_SUCCESS        Media information about the specified block device\r
                              was obtained successfully.\r
-  @retval EFI_DEVICE_ERROR   Cannot get the media information due to a hardware \r
+  @retval EFI_DEVICE_ERROR   Cannot get the media information due to a hardware\r
                              error.\r
   @retval Others             Other failure occurs.\r
 \r
@@ -1559,31 +1559,31 @@ FdcGetBlockDeviceMediaInfo (
 /**\r
   Reads the requested number of blocks from the specified block device.\r
 \r
-  The function reads the requested number of blocks from the device. All the \r
+  The function reads the requested number of blocks from the device. All the\r
   blocks are read, or an error is returned. If there is no media in the device,\r
   the function returns EFI_NO_MEDIA.\r
 \r
-  @param[in]  PeiServices   General-purpose services that are available to \r
+  @param[in]  PeiServices   General-purpose services that are available to\r
                             every PEIM.\r
   @param[in]  This          Indicates the EFI_PEI_RECOVERY_BLOCK_IO_PPI instance.\r
-  @param[in]  DeviceIndex   Specifies the block device to which the function wants \r
-                            to talk. Because the driver that implements Block I/O \r
-                            PPIs will manage multiple block devices, the PPIs that \r
-                            want to talk to a single device must specify the device \r
-                            index that was assigned during the enumeration process. \r
+  @param[in]  DeviceIndex   Specifies the block device to which the function wants\r
+                            to talk. Because the driver that implements Block I/O\r
+                            PPIs will manage multiple block devices, the PPIs that\r
+                            want to talk to a single device must specify the device\r
+                            index that was assigned during the enumeration process.\r
                             This index is a number from one to NumberBlockDevices.\r
   @param[in]  StartLBA      The starting logical block address (LBA) to read from\r
                             on the device\r
   @param[in]  BufferSize    The size of the Buffer in bytes. This number must be\r
                             a multiple of the intrinsic block size of the device.\r
   @param[out] Buffer        A pointer to the destination buffer for the data.\r
-                            The caller is responsible for the ownership of the \r
+                            The caller is responsible for the ownership of the\r
                             buffer.\r
-                         \r
+\r
   @retval EFI_SUCCESS             The data was read correctly from the device.\r
-  @retval EFI_DEVICE_ERROR        The device reported an error while attempting \r
+  @retval EFI_DEVICE_ERROR        The device reported an error while attempting\r
                                   to perform the read operation.\r
-  @retval EFI_INVALID_PARAMETER   The read request contains LBAs that are not \r
+  @retval EFI_INVALID_PARAMETER   The read request contains LBAs that are not\r
                                   valid, or the buffer is not properly aligned.\r
   @retval EFI_NO_MEDIA            There is no media in the device.\r
   @retval EFI_BAD_BUFFER_SIZE     The BufferSize parameter is not a multiple of\r
@@ -1729,7 +1729,7 @@ FdcPeimEntry (
 \r
   //\r
   // Allocate memory for instance of FDC_BLK_IO_DEV and copy initial value\r
-  // from template to it. \r
+  // from template to it.\r
   //\r
   FdcBlkIoDev = AllocatePages (EFI_SIZE_TO_PAGES(sizeof (FDC_BLK_IO_DEV)));\r
   if (FdcBlkIoDev == NULL) {\r
index 6477394efcfc31eaef65d21f03c4e0cccc41c2dd..03f79b0449bee75091c4ba58b5284764c609c781 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
 Private include file for IsaFloppyPei PEIM.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-  \r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
 of the BSD License which accompanies this distribution.  The\r
@@ -104,7 +104,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 ///\r
 /// ISA memory range\r
 ///\r
-#define ISA_MAX_MEMORY_ADDRESS  0x1000000 \r
+#define ISA_MAX_MEMORY_ADDRESS  0x1000000\r
 \r
 //\r
 // Macro for time delay & interval\r
index 6d99cded278f18643ed79829ae16ca3cee7bff55..ef7c7a2f7272bf3c5485ec6153ed45823150d398 100644 (file)
@@ -5,14 +5,14 @@
 // the PEIM will install the BlockIo PPI. This module is only dispatched if it\r
 // is in the Recovery Boot mode.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
 // of the BSD License which accompanies this distribution.  The\r
 // full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 897389c521556ae49a942f2ce634a6a788eba916..ba2ca244aaae13b892d986898f257a45962c9548 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // IsaFloppyPei Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
@@ -14,8 +14,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "ISA Floppy PEI Module"\r
 \r
 \r
index 8c58b318c6749c16bc4daa22bb8fd77bd35df47c..fcdb5c0a7ace4d4bd4adfe6f3ef6ed98d4ab42f7 100644 (file)
@@ -2,8 +2,8 @@
   IsaIo UEFI driver.\r
 \r
   Produce an instance of the ISA I/O Protocol for every SIO controller.\r
-  \r
-Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -31,9 +31,9 @@ EFI_DRIVER_BINDING_PROTOCOL gIsaIoDriver = {
 /**\r
   The main entry point for the IsaIo driver.\r
 \r
-  @param[in] ImageHandle        The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle        The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable        A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS           The entry point is executed successfully.\r
   @retval EFI_OUT_OF_RESOURCES  There was not enough memory in pool to install all the protocols.\r
 **/\r
@@ -62,16 +62,16 @@ InitializeIsaIo (
   return Status;\r
 }\r
 \r
-/** \r
+/**\r
   Tests to see if a controller can be managed by the IsaIo driver.\r
 \r
-  @param[in] This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.  \r
+  @param[in] This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param[in] Controller           The handle of the controller to test.\r
   @param[in] RemainingDevicePath  A pointer to the remaining portion of a device path.\r
-  \r
+\r
   @retval EFI_SUCCESS             The device is supported by this driver.\r
   @retval EFI_ALREADY_STARTED     The device is already being managed by this driver.\r
-  @retval EFI_ACCESS_DENIED       The device is already being managed by a different driver \r
+  @retval EFI_ACCESS_DENIED       The device is already being managed by a different driver\r
                                   or an application that requires exclusive access.\r
   @retval EFI_UNSUPPORTED         The device is is not supported by this driver.\r
 \r
@@ -136,23 +136,23 @@ IsaIoDriverSupported (
 }\r
 \r
 /**\r
-  Start this driver on ControllerHandle. \r
-  \r
-  The Start() function is designed to be invoked from the EFI boot service ConnectController(). \r
-  As a result, much of the error checking on the parameters to Start() has been moved into this \r
-  common boot service. It is legal to call Start() from other locations, but the following calling \r
+  Start this driver on ControllerHandle.\r
+\r
+  The Start() function is designed to be invoked from the EFI boot service ConnectController().\r
+  As a result, much of the error checking on the parameters to Start() has been moved into this\r
+  common boot service. It is legal to call Start() from other locations, but the following calling\r
   restrictions must be followed or the system behavior will not be deterministic.\r
   1. ControllerHandle must be a valid EFI_HANDLE.\r
   2. If RemainingDevicePath is not NULL, then it must be a pointer to a naturally aligned\r
      EFI_DEVICE_PATH_PROTOCOL.\r
   3. Prior to calling Start(), the Supported() function for the driver specified by This must\r
-     have been called with the same calling parameters, and Supported() must have returned EFI_SUCCESS.  \r
+     have been called with the same calling parameters, and Supported() must have returned EFI_SUCCESS.\r
 \r
   @param[in]  This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle     The handle of the controller to start. This handle \r
-                                   must support a protocol interface that supplies \r
+  @param[in]  ControllerHandle     The handle of the controller to start. This handle\r
+                                   must support a protocol interface that supplies\r
                                    an I/O abstraction to the driver.\r
-  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path. \r
+  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path.\r
                                    This parameter is ignored by device drivers, and is optional for bus drivers.\r
 \r
   @retval EFI_SUCCESS              The device was started.\r
@@ -254,11 +254,11 @@ IsaIoDriverStart (
 }\r
 \r
 /**\r
-  Stop this driver on ControllerHandle. \r
-  \r
-  The Stop() function is designed to be invoked from the EFI boot service DisconnectController(). \r
-  As a result, much of the error checking on the parameters to Stop() has been moved \r
-  into this common boot service. It is legal to call Stop() from other locations, \r
+  Stop this driver on ControllerHandle.\r
+\r
+  The Stop() function is designed to be invoked from the EFI boot service DisconnectController().\r
+  As a result, much of the error checking on the parameters to Stop() has been moved\r
+  into this common boot service. It is legal to call Stop() from other locations,\r
   but the following calling restrictions must be followed or the system behavior will not be deterministic.\r
   1. ControllerHandle must be a valid EFI_HANDLE that was used on a previous call to this\r
      same driver's Start() function.\r
@@ -266,13 +266,13 @@ IsaIoDriverStart (
      EFI_HANDLE. In addition, all of these handles must have been created in this driver's\r
      Start() function, and the Start() function must have called OpenProtocol() on\r
      ControllerHandle with an Attribute of EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER.\r
-  \r
+\r
   @param[in]  This              A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle  A handle to the device being stopped. The handle must \r
-                                support a bus specific I/O protocol for the driver \r
+  @param[in]  ControllerHandle  A handle to the device being stopped. The handle must\r
+                                support a bus specific I/O protocol for the driver\r
                                 to use to stop the device.\r
   @param[in]  NumberOfChildren  The number of child device handles in ChildHandleBuffer.\r
-  @param[in]  ChildHandleBuffer An array of child handles to be freed. May be NULL \r
+  @param[in]  ChildHandleBuffer An array of child handles to be freed. May be NULL\r
                                 if NumberOfChildren is 0.\r
 \r
   @retval EFI_SUCCESS           The device was stopped.\r
index 64f710bcec1b28964cd5050c6717a079ef69b76d..9639d1831823cd1f61d4e7a5c2b15dbc2b47fef9 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The header file for ISA driver\r
-  \r
-Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -148,18 +148,18 @@ typedef struct {
 // EFI Driver Binding Protocol Interface Functions\r
 //\r
 \r
-/** \r
+/**\r
   Tests to see if a controller can be managed by the ISA Driver.\r
 \r
   How the Start() function of a driver is implemented can affect how the Supported() function is implemented.\r
 \r
-  @param[in] This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.  \r
+  @param[in] This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param[in] Controller           The handle of the controller to test.\r
   @param[in] RemainingDevicePath  A pointer to the remaining portion of a device path.\r
-  \r
+\r
   @retval EFI_SUCCESS             The device is supported by this driver.\r
   @retval EFI_ALREADY_STARTED     The device is already being managed by this driver.\r
-  @retval EFI_ACCESS_DENIED       The device is already being managed by a different driver \r
+  @retval EFI_ACCESS_DENIED       The device is already being managed by a different driver\r
                                   or an application that requires exclusive access.\r
   @retval EFI_UNSUPPORTED         The device is is not supported by this driver.\r
 \r
@@ -173,23 +173,23 @@ IsaIoDriverSupported (
   );\r
 \r
 /**\r
-  Start this driver on ControllerHandle. \r
-  \r
-  The Start() function is designed to be invoked from the EFI boot service ConnectController(). \r
-  As a result, much of the error checking on the parameters to Start() has been moved into this \r
-  common boot service. It is legal to call Start() from other locations, but the following calling \r
+  Start this driver on ControllerHandle.\r
+\r
+  The Start() function is designed to be invoked from the EFI boot service ConnectController().\r
+  As a result, much of the error checking on the parameters to Start() has been moved into this\r
+  common boot service. It is legal to call Start() from other locations, but the following calling\r
   restrictions must be followed or the system behavior will not be deterministic.\r
   1. ControllerHandle must be a valid EFI_HANDLE.\r
   2. If RemainingDevicePath is not NULL, then it must be a pointer to a naturally aligned\r
      EFI_DEVICE_PATH_PROTOCOL.\r
   3. Prior to calling Start(), the Supported() function for the driver specified by This must\r
-     have been called with the same calling parameters, and Supported() must have returned EFI_SUCCESS.  \r
+     have been called with the same calling parameters, and Supported() must have returned EFI_SUCCESS.\r
 \r
   @param[in]  This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle     The handle of the controller to start. This handle \r
-                                   must support a protocol interface that supplies \r
+  @param[in]  ControllerHandle     The handle of the controller to start. This handle\r
+                                   must support a protocol interface that supplies\r
                                    an I/O abstraction to the driver.\r
-  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path. \r
+  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path.\r
                                    This parameter is ignored by device drivers, and is optional for bus drivers.\r
 \r
   @retval EFI_SUCCESS              The device was started.\r
@@ -207,11 +207,11 @@ IsaIoDriverStart (
   );\r
 \r
 /**\r
-  Stop this driver on ControllerHandle. \r
-  \r
-  The Stop() function is designed to be invoked from the EFI boot service DisconnectController(). \r
-  As a result, much of the error checking on the parameters to Stop() has been moved \r
-  into this common boot service. It is legal to call Stop() from other locations, \r
+  Stop this driver on ControllerHandle.\r
+\r
+  The Stop() function is designed to be invoked from the EFI boot service DisconnectController().\r
+  As a result, much of the error checking on the parameters to Stop() has been moved\r
+  into this common boot service. It is legal to call Stop() from other locations,\r
   but the following calling restrictions must be followed or the system behavior will not be deterministic.\r
   1. ControllerHandle must be a valid EFI_HANDLE that was used on a previous call to this\r
      same driver's Start() function.\r
@@ -219,13 +219,13 @@ IsaIoDriverStart (
      EFI_HANDLE. In addition, all of these handles must have been created in this driver's\r
      Start() function, and the Start() function must have called OpenProtocol() on\r
      ControllerHandle with an Attribute of EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER.\r
-  \r
+\r
   @param[in]  This              A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle  A handle to the device being stopped. The handle must \r
-                                support a bus specific I/O protocol for the driver \r
+  @param[in]  ControllerHandle  A handle to the device being stopped. The handle must\r
+                                support a bus specific I/O protocol for the driver\r
                                 to use to stop the device.\r
   @param[in]  NumberOfChildren  The number of child device handles in ChildHandleBuffer.\r
-  @param[in]  ChildHandleBuffer An array of child handles to be freed. May be NULL \r
+  @param[in]  ChildHandleBuffer An array of child handles to be freed. May be NULL\r
                                 if NumberOfChildren is 0.\r
 \r
   @retval EFI_SUCCESS           The device was stopped.\r
@@ -250,7 +250,7 @@ IsaIoDriverStop (
   @param[in] IsaIoDevice            The isa device to be initialized.\r
   @param[in] DevicePath             The device path of the isa device.\r
   @param[in] Resources              The ACPI resource list.\r
-  \r
+\r
 **/\r
 VOID\r
 InitializeIsaIoInstance (\r
index 2e4361fc0d5e22f669d2ac547499f06ff16f1993..837f46001de77d02b853c4a18bf960af2349337e 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  The implementation for EFI_ISA_IO_PROTOCOL. \r
-  \r
-Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  The implementation for EFI_ISA_IO_PROTOCOL.\r
+\r
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -18,11 +18,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 // Module Variables\r
 //\r
 EFI_ISA_IO_PROTOCOL mIsaIoInterface = {\r
-  {    \r
+  {\r
     IsaIoMemRead,\r
     IsaIoMemWrite\r
   },\r
-  {   \r
+  {\r
     IsaIoIoRead,\r
     IsaIoIoWrite\r
   },\r
@@ -86,9 +86,9 @@ EFI_ISA_DMA_REGISTERS  mDmaRegisters[8] = {
   @param[in] IsaIoDevice         The ISA device to be verified.\r
   @param[in] Type                The Access type. The input must be either IsaAccessTypeMem or IsaAccessTypeIo.\r
   @param[in] Width               The width of the memory operation.\r
-  @param[in] Count               The number of memory operations to perform. \r
-  @param[in] Offset              The offset in ISA memory space to start the memory operation.  \r
-  \r
+  @param[in] Count               The number of memory operations to perform.\r
+  @param[in] Offset              The offset in ISA memory space to start the memory operation.\r
+\r
   @retval EFI_SUCCESS            Verify success.\r
   @retval EFI_INVALID_PARAMETER  One of the parameters has an invalid value.\r
   @retval EFI_UNSUPPORTED        The device ont support the access type.\r
@@ -163,7 +163,7 @@ IsaIoAttribute (
     case EFI_ACPI_IO_DECODE_16_BIT:\r
       Attribute |= EFI_ISA_ACPI_IO_DECODE_16_BITS;\r
       break;\r
-      \r
+\r
     case EFI_ACPI_IO_DECODE_10_BIT:\r
       Attribute |= EFI_ISA_ACPI_IO_DECODE_10_BITS;\r
       break;\r
@@ -244,7 +244,7 @@ IsaDmaAttribute (
   UINT32             Attribute;\r
 \r
   Attribute = EFI_ISA_IO_SLAVE_DMA_ATTRIBUTE_SINGLE_MODE;\r
-  \r
+\r
   switch (Information & EFI_ACPI_DMA_SPEED_TYPE_MASK) {\r
     case EFI_ACPI_DMA_SPEED_TYPE_COMPATIBILITY:\r
       Attribute |= EFI_ISA_IO_SLAVE_DMA_ATTRIBUTE_SPEED_COMPATIBLE;\r
@@ -424,7 +424,7 @@ AcpiResourceToIsaResource (
   @param[in] IsaIoDevice            The isa device to be initialized.\r
   @param[in] DevicePath             The device path of the isa device.\r
   @param[in] Resources              The ACPI resource list.\r
-  \r
+\r
 **/\r
 VOID\r
 InitializeIsaIoInstance (\r
@@ -452,7 +452,7 @@ InitializeIsaIoInstance (
   ResourcePtr = Resources;\r
   Index       = 0;\r
   while (ResourcePtr.SmallHeader->Byte != ACPI_END_TAG_DESCRIPTOR) {\r
-    \r
+\r
     Index += AcpiResourceToIsaResource (ResourcePtr, NULL);\r
 \r
     if (ResourcePtr.SmallHeader->Bits.Type == 0) {\r
@@ -498,7 +498,7 @@ InitializeIsaIoInstance (
                               + sizeof (*ResourcePtr.LargeHeader));\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Convert the ACPI End Tag\r
   //\r
@@ -510,8 +510,8 @@ InitializeIsaIoInstance (
 \r
   @param[in]  This              A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]  Width             Specifies the width of the I/O operation.\r
-  @param[in]  Offset            The offset in ISA I/O space to start the I/O operation.  \r
-  @param[in]  Count             The number of I/O operations to perform. \r
+  @param[in]  Offset            The offset in ISA I/O space to start the I/O operation.\r
+  @param[in]  Count             The number of I/O operations to perform.\r
   @param[out] Buffer            The destination buffer to store the results\r
 \r
   @retval EFI_SUCCESS           The data was read from the device sucessfully.\r
@@ -572,8 +572,8 @@ IsaIoIoRead (
 \r
   @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in] Width               Specifies the width of the I/O operation.\r
-  @param[in] Offset              The offset in ISA I/O space to start the I/O operation.  \r
-  @param[in] Count               The number of I/O operations to perform. \r
+  @param[in] Offset              The offset in ISA I/O space to start the I/O operation.\r
+  @param[in] Count               The number of I/O operations to perform.\r
   @param[in] Buffer              The source buffer to write data from\r
 \r
   @retval EFI_SUCCESS            The data was writen to the device sucessfully.\r
@@ -633,7 +633,7 @@ IsaIoIoWrite (
   Writes an 8-bit I/O Port\r
 \r
   @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param[in] Offset              The offset in ISA IO space to start the IO operation.  \r
+  @param[in] Offset              The offset in ISA IO space to start the IO operation.\r
   @param[in] Value               The data to write port.\r
 \r
   @retval EFI_SUCCESS            Success.\r
@@ -685,8 +685,8 @@ WritePort (
   @param[in] PageOffset          The page's offest.\r
   @param[in] CountOffset         The count's offset.\r
   @param[in] BaseAddress         The base address.\r
-  @param[in] Count               The number of I/O operations to perform. \r
-  \r
+  @param[in] Count               The number of I/O operations to perform.\r
+\r
   @retval EFI_SUCCESS            Success.\r
   @retval EFI_INVALID_PARAMETER  Parameter is invalid.\r
   @retval EFI_UNSUPPORTED        The address range specified by these Offsets and Count is not valid.\r
@@ -822,10 +822,10 @@ IsaIoFlush (
 \r
   @param[in]  This               A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]  Width              Specifies the width of the memory operation.\r
-  @param[in]  Offset             The offset in ISA memory space to start the memory operation.  \r
-  @param[in]  Count              The number of memory operations to perform. \r
+  @param[in]  Offset             The offset in ISA memory space to start the memory operation.\r
+  @param[in]  Count              The number of memory operations to perform.\r
   @param[out] Buffer             The destination buffer to store the results\r
\r
+\r
   @retval EFI_SUCCESS            The data was read from the device successfully.\r
   @retval EFI_UNSUPPORTED        The Offset is not valid for this device.\r
   @retval EFI_INVALID_PARAMETER  Width or Count, or both, were invalid.\r
@@ -889,10 +889,10 @@ IsaIoMemRead (
 /**\r
   Performs an ISA Memory Write Cycle\r
 \r
-  @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.  \r
+  @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in] Width               Specifies the width of the memory operation.\r
-  @param[in] Offset              The offset in ISA memory space to start the memory operation.  \r
-  @param[in] Count               The number of memory operations to perform. \r
+  @param[in] Offset              The offset in ISA memory space to start the memory operation.\r
+  @param[in] Count               The number of memory operations to perform.\r
   @param[in] Buffer              The source buffer to write data from\r
 \r
   @retval EFI_SUCCESS            The data was written to the device sucessfully.\r
@@ -960,7 +960,7 @@ IsaIoMemWrite (
 \r
   @param[in]  This               A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]  Width              Specifies the width of the memory copy operation.\r
-  @param[in]  DestOffset         The offset of the destination \r
+  @param[in]  DestOffset         The offset of the destination\r
   @param[in]  SrcOffset          The offset of the source\r
   @param[in]  Count              The number of memory copy  operations to perform\r
 \r
@@ -1041,18 +1041,18 @@ IsaIoCopyMem (
   only supports slave read/write operation to save code size.\r
 \r
   @param This                    A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param Operation               Indicates the type of DMA (slave or bus master), and if \r
-                                 the DMA operation is going to read or write to system memory. \r
-  @param ChannelNumber           The slave channel number to use for this DMA operation. \r
-                                 If Operation and ChannelAttributes shows that this device \r
-                                 performs bus mastering DMA, then this field is ignored.  \r
-                                 The legal range for this field is 0..7.  \r
+  @param Operation               Indicates the type of DMA (slave or bus master), and if\r
+                                 the DMA operation is going to read or write to system memory.\r
+  @param ChannelNumber           The slave channel number to use for this DMA operation.\r
+                                 If Operation and ChannelAttributes shows that this device\r
+                                 performs bus mastering DMA, then this field is ignored.\r
+                                 The legal range for this field is 0..7.\r
   @param ChannelAttributes       The attributes of the DMA channel to use for this DMA operation\r
-  @param HostAddress             The system memory address to map to the device.  \r
-  @param NumberOfBytes           On input the number of bytes to map.  On output the number \r
+  @param HostAddress             The system memory address to map to the device.\r
+  @param NumberOfBytes           On input the number of bytes to map.  On output the number\r
                                  of bytes that were mapped.\r
-  @param DeviceAddress           The resulting map address for the bus master device to use \r
-                                 to access the hosts HostAddress.  \r
+  @param DeviceAddress           The resulting map address for the bus master device to use\r
+                                 to access the hosts HostAddress.\r
   @param Mapping                 A resulting value to pass to EFI_ISA_IO.Unmap().\r
 \r
   @retval EFI_SUCCESS            The range was mapped for the returned NumberOfBytes.\r
@@ -1083,7 +1083,7 @@ IsaIoMapOnlySupportSlaveReadWrite (
   UINT8                 DmaMask;\r
   UINT8                 DmaClear;\r
   UINT8                 DmaChannelMode;\r
-  \r
+\r
   if ((NULL == This) ||\r
       (NULL == HostAddress) ||\r
       (NULL == NumberOfBytes) ||\r
@@ -1102,7 +1102,7 @@ IsaIoMapOnlySupportSlaveReadWrite (
   // Make sure the Operation parameter is valid.\r
   // Light IsaIo only supports two operations.\r
   //\r
-  if (!(Operation == EfiIsaIoOperationSlaveRead || \r
+  if (!(Operation == EfiIsaIoOperationSlaveRead ||\r
         Operation == EfiIsaIoOperationSlaveWrite)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
@@ -1188,7 +1188,7 @@ IsaIoMapOnlySupportSlaveReadWrite (
     //\r
     *DeviceAddress = PhysicalAddress;\r
   }\r
-  \r
+\r
   //\r
   // Figure out what to program into the DMA Channel Mode Register\r
   //\r
@@ -1273,22 +1273,22 @@ IsaIoMapOnlySupportSlaveReadWrite (
 }\r
 \r
 /**\r
-  Maps a memory region for DMA. This implementation implement the \r
+  Maps a memory region for DMA. This implementation implement the\r
   the full mapping support.\r
 \r
   @param This                    A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param Operation               Indicates the type of DMA (slave or bus master), and if \r
-                                 the DMA operation is going to read or write to system memory. \r
-  @param ChannelNumber           The slave channel number to use for this DMA operation. \r
-                                 If Operation and ChannelAttributes shows that this device \r
-                                 performs bus mastering DMA, then this field is ignored.  \r
-                                 The legal range for this field is 0..7.  \r
+  @param Operation               Indicates the type of DMA (slave or bus master), and if\r
+                                 the DMA operation is going to read or write to system memory.\r
+  @param ChannelNumber           The slave channel number to use for this DMA operation.\r
+                                 If Operation and ChannelAttributes shows that this device\r
+                                 performs bus mastering DMA, then this field is ignored.\r
+                                 The legal range for this field is 0..7.\r
   @param ChannelAttributes       The attributes of the DMA channel to use for this DMA operation\r
-  @param HostAddress             The system memory address to map to the device.  \r
-  @param NumberOfBytes           On input the number of bytes to map.  On output the number \r
+  @param HostAddress             The system memory address to map to the device.\r
+  @param NumberOfBytes           On input the number of bytes to map.  On output the number\r
                                  of bytes that were mapped.\r
-  @param DeviceAddress           The resulting map address for the bus master device to use \r
-                                 to access the hosts HostAddress.  \r
+  @param DeviceAddress           The resulting map address for the bus master device to use\r
+                                 to access the hosts HostAddress.\r
   @param Mapping                 A resulting value to pass to EFI_ISA_IO.Unmap().\r
 \r
   @retval EFI_SUCCESS           - The range was mapped for the returned NumberOfBytes.\r
@@ -1602,18 +1602,18 @@ IsaIoMapFullSupport (
   Maps a memory region for DMA\r
 \r
   @param This                    A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param Operation               Indicates the type of DMA (slave or bus master), and if \r
-                                 the DMA operation is going to read or write to system memory. \r
-  @param ChannelNumber           The slave channel number to use for this DMA operation. \r
-                                 If Operation and ChannelAttributes shows that this device \r
-                                 performs bus mastering DMA, then this field is ignored.  \r
-                                 The legal range for this field is 0..7.  \r
+  @param Operation               Indicates the type of DMA (slave or bus master), and if\r
+                                 the DMA operation is going to read or write to system memory.\r
+  @param ChannelNumber           The slave channel number to use for this DMA operation.\r
+                                 If Operation and ChannelAttributes shows that this device\r
+                                 performs bus mastering DMA, then this field is ignored.\r
+                                 The legal range for this field is 0..7.\r
   @param ChannelAttributes       The attributes of the DMA channel to use for this DMA operation\r
-  @param HostAddress             The system memory address to map to the device.  \r
-  @param NumberOfBytes           On input the number of bytes to map.  On output the number \r
+  @param HostAddress             The system memory address to map to the device.\r
+  @param NumberOfBytes           On input the number of bytes to map.  On output the number\r
                                  of bytes that were mapped.\r
-  @param DeviceAddress           The resulting map address for the bus master device to use \r
-                                 to access the hosts HostAddress.  \r
+  @param DeviceAddress           The resulting map address for the bus master device to use\r
+                                 to access the hosts HostAddress.\r
   @param Mapping                 A resulting value to pass to EFI_ISA_IO.Unmap().\r
 \r
   @retval EFI_SUCCESS            The range was mapped for the returned NumberOfBytes.\r
@@ -1642,7 +1642,7 @@ IsaIoMap (
     return EFI_UNSUPPORTED;\r
   }\r
   //\r
-  // Set Feature Flag PcdIsaBusSupportBusMaster to FALSE to disable support for \r
+  // Set Feature Flag PcdIsaBusSupportBusMaster to FALSE to disable support for\r
   // ISA Bus Master.\r
   //\r
   // So we just return EFI_UNSUPPORTED for these functions.\r
@@ -1685,7 +1685,7 @@ IsaIoMap (
 \r
   @retval EFI_SUCCESS            The requested memory pages were allocated.\r
   @retval EFI_INVALID_PARAMETER  Type is invalid or MemoryType is invalid or HostAddress is NULL\r
-  @retval EFI_UNSUPPORTED        Attributes is unsupported or the memory range specified \r
+  @retval EFI_UNSUPPORTED        Attributes is unsupported or the memory range specified\r
                                  by HostAddress, Pages, and Type is not available for common buffer use.\r
   @retval EFI_OUT_OF_RESOURCES   The memory pages could not be allocated.\r
 **/\r
@@ -1704,7 +1704,7 @@ IsaIoAllocateBuffer (
   EFI_PHYSICAL_ADDRESS  PhysicalAddress;\r
 \r
   //\r
-  // Set Feature Flag PcdIsaBusOnlySupportSlaveDma to FALSE to disable support for \r
+  // Set Feature Flag PcdIsaBusOnlySupportSlaveDma to FALSE to disable support for\r
   // ISA Bus Master.\r
   // Or unset Feature Flag PcdIsaBusSupportDma to disable support for ISA DMA.\r
   //\r
@@ -1758,7 +1758,7 @@ IsaIoAllocateBuffer (
 }\r
 \r
 /**\r
-  Frees memory that was allocated with EFI_ISA_IO.AllocateBuffer(). \r
+  Frees memory that was allocated with EFI_ISA_IO.AllocateBuffer().\r
 \r
   @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in] Pages               The number of pages to free.\r
@@ -1778,7 +1778,7 @@ IsaIoFreeBuffer (
   EFI_STATUS  Status;\r
 \r
   //\r
-  // Set Feature Flag PcdIsaBusOnlySupportSlaveDma to FALSE to disable support for \r
+  // Set Feature Flag PcdIsaBusOnlySupportSlaveDma to FALSE to disable support for\r
   // ISA Bus Master.\r
   // Or unset Feature Flag PcdIsaBusSupportDma to disable support for ISA DMA.\r
   //\r
index cc4a1f8b802d50372fcc8c01d72eba0428081204..7ae2ffaeb5fb7b5f1f6c8a51279d5d2c51ce64e4 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The header file for EFI_ISA_IO protocol implementation.\r
-  \r
-Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -34,9 +34,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   @param[in] IsaIoDevice         The ISA device to be verified.\r
   @param[in] Type                The Access type. The input must be either IsaAccessTypeMem or IsaAccessTypeIo.\r
   @param[in] Width               The width of the memory operation.\r
-  @param[in] Count               The number of memory operations to perform. \r
-  @param[in] Offset              The offset in ISA memory space to start the memory operation.  \r
-  \r
+  @param[in] Count               The number of memory operations to perform.\r
+  @param[in] Offset              The offset in ISA memory space to start the memory operation.\r
+\r
   @retval EFI_SUCCESS            Verify success.\r
   @retval EFI_INVALID_PARAMETER  One of the parameters has an invalid value.\r
   @retval EFI_UNSUPPORTED        The device ont support the access type.\r
@@ -49,14 +49,14 @@ IsaIoVerifyAccess (
   IN UINTN                      Count,\r
   IN UINT32                     Offset\r
   );\r
-  \r
+\r
 /**\r
   Performs an ISA I/O Read Cycle\r
 \r
   @param[in]  This              A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]  Width             Specifies the width of the I/O operation.\r
-  @param[in]  Offset            The offset in ISA I/O space to start the I/O operation.  \r
-  @param[in]  Count             The number of I/O operations to perform. \r
+  @param[in]  Offset            The offset in ISA I/O space to start the I/O operation.\r
+  @param[in]  Count             The number of I/O operations to perform.\r
   @param[out] Buffer            The destination buffer to store the results\r
 \r
   @retval EFI_SUCCESS           The data was read from the device sucessfully.\r
@@ -79,8 +79,8 @@ IsaIoIoRead (
 \r
   @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in] Width               Specifies the width of the I/O operation.\r
-  @param[in] Offset              The offset in ISA I/O space to start the I/O operation.  \r
-  @param[in] Count               The number of I/O operations to perform. \r
+  @param[in] Offset              The offset in ISA I/O space to start the I/O operation.\r
+  @param[in] Count               The number of I/O operations to perform.\r
   @param[in] Buffer              The source buffer to write data from\r
 \r
   @retval EFI_SUCCESS            The data was writen to the device sucessfully.\r
@@ -102,18 +102,18 @@ IsaIoIoWrite (
   Maps a memory region for DMA\r
 \r
   @param This                    A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param Operation               Indicates the type of DMA (slave or bus master), and if \r
-                                 the DMA operation is going to read or write to system memory. \r
-  @param ChannelNumber           The slave channel number to use for this DMA operation. \r
-                                 If Operation and ChannelAttributes shows that this device \r
-                                 performs bus mastering DMA, then this field is ignored.  \r
-                                 The legal range for this field is 0..7.  \r
+  @param Operation               Indicates the type of DMA (slave or bus master), and if\r
+                                 the DMA operation is going to read or write to system memory.\r
+  @param ChannelNumber           The slave channel number to use for this DMA operation.\r
+                                 If Operation and ChannelAttributes shows that this device\r
+                                 performs bus mastering DMA, then this field is ignored.\r
+                                 The legal range for this field is 0..7.\r
   @param ChannelAttributes       The attributes of the DMA channel to use for this DMA operation\r
-  @param HostAddress             The system memory address to map to the device.  \r
-  @param NumberOfBytes           On input the number of bytes to map.  On output the number \r
+  @param HostAddress             The system memory address to map to the device.\r
+  @param NumberOfBytes           On input the number of bytes to map.  On output the number\r
                                  of bytes that were mapped.\r
-  @param DeviceAddress           The resulting map address for the bus master device to use \r
-                                 to access the hosts HostAddress.  \r
+  @param DeviceAddress           The resulting map address for the bus master device to use\r
+                                 to access the hosts HostAddress.\r
   @param Mapping                 A resulting value to pass to EFI_ISA_IO.Unmap().\r
 \r
   @retval EFI_SUCCESS            The range was mapped for the returned NumberOfBytes.\r
@@ -173,8 +173,8 @@ IsaIoFlush (
   @param[in] PageOffset          The page's offest.\r
   @param[in] CountOffset         The count's offset.\r
   @param[in] BaseAddress         The base address.\r
-  @param[in] Count               The number of I/O operations to perform. \r
-  \r
+  @param[in] Count               The number of I/O operations to perform.\r
+\r
   @retval EFI_SUCCESS            Success.\r
   @retval EFI_INVALID_PARAMETER  Parameter is invalid.\r
   @retval EFI_UNSUPPORTED        The address range specified by these Offsets and Count is not valid.\r
@@ -194,7 +194,7 @@ WriteDmaPort (
   Writes an 8-bit I/O Port\r
 \r
   @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param[in] Offset              The offset in ISA IO space to start the IO operation.  \r
+  @param[in] Offset              The offset in ISA IO space to start the IO operation.\r
   @param[in] Value               The data to write port.\r
 \r
   @retval EFI_SUCCESS            Success.\r
@@ -207,17 +207,17 @@ WritePort (
   IN EFI_ISA_IO_PROTOCOL  *This,\r
   IN UINT32               Offset,\r
   IN UINT8                Value\r
-  );    \r
+  );\r
 \r
 /**\r
   Performs an ISA Memory Read Cycle\r
 \r
   @param[in]  This               A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]  Width              Specifies the width of the memory operation.\r
-  @param[in]  Offset             The offset in ISA memory space to start the memory operation.  \r
-  @param[in]  Count              The number of memory operations to perform. \r
+  @param[in]  Offset             The offset in ISA memory space to start the memory operation.\r
+  @param[in]  Count              The number of memory operations to perform.\r
   @param[out] Buffer             The destination buffer to store the results\r
\r
+\r
   @retval EFI_SUCCESS            The data was read from the device successfully.\r
   @retval EFI_UNSUPPORTED        The Offset is not valid for this device.\r
   @retval EFI_INVALID_PARAMETER  Width or Count, or both, were invalid.\r
@@ -237,10 +237,10 @@ IsaIoMemRead (
 /**\r
   Performs an ISA Memory Write Cycle\r
 \r
-  @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.  \r
+  @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in] Width               Specifies the width of the memory operation.\r
-  @param[in] Offset              The offset in ISA memory space to start the memory operation.  \r
-  @param[in] Count               The number of memory operations to perform. \r
+  @param[in] Offset              The offset in ISA memory space to start the memory operation.\r
+  @param[in] Count               The number of memory operations to perform.\r
   @param[in] Buffer              The source buffer to write data from\r
 \r
   @retval EFI_SUCCESS            The data was written to the device sucessfully.\r
@@ -263,7 +263,7 @@ IsaIoMemWrite (
 \r
   @param[in]  This               A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]  Width              Specifies the width of the memory copy operation.\r
-  @param[in]  DestOffset         The offset of the destination \r
+  @param[in]  DestOffset         The offset of the destination\r
   @param[in]  SrcOffset          The offset of the source\r
   @param[in]  Count              The number of memory copy  operations to perform\r
 \r
@@ -294,7 +294,7 @@ IsaIoCopyMem (
 \r
   @retval EFI_SUCCESS            The requested memory pages were allocated.\r
   @retval EFI_INVALID_PARAMETER  Type is invalid or MemoryType is invalid or HostAddress is NULL\r
-  @retval EFI_UNSUPPORTED        Attributes is unsupported or the memory range specified \r
+  @retval EFI_UNSUPPORTED        Attributes is unsupported or the memory range specified\r
                                  by HostAddress, Pages, and Type is not available for common buffer use.\r
   @retval EFI_OUT_OF_RESOURCES   The memory pages could not be allocated.\r
 **/\r
@@ -310,7 +310,7 @@ IsaIoAllocateBuffer (
   );\r
 \r
 /**\r
-  Frees memory that was allocated with EFI_ISA_IO.AllocateBuffer(). \r
+  Frees memory that was allocated with EFI_ISA_IO.AllocateBuffer().\r
 \r
   @param[in] This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in] Pages               The number of pages to free.\r
index ea988f9e7d494d373c459e6a162dfe3c827fbeae..cac80255739dfa0f9fdbb23157aaa890536ec705 100644 (file)
@@ -5,13 +5,13 @@
 // I/O protocols are installed based off of the information provided by each\r
 // instance of the SIO Protocol found.\r
 //\r
-// Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution. The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 26112e8dc7c9cd132dde8c064b6a2066bb50be4e..d05ba3f6d7dfe8547e750b26fc4b4c24dc6b10a1 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // IsaIoDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "ISA I/O DXE Driver"\r
 \r
 \r
index 4abaac9ff8b1450f5af2388acf6828d9fb070429..d0e629f71b3d41f97bfc02fdc5d041b0d0a346d2 100644 (file)
@@ -4,7 +4,7 @@
 # Produces the Serial I/O protocol for standard UARTS using ISA I/O. This driver\r
 # supports the 8250, 16450, 16550 and 16550A UART types.\r
 #\r
-# Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
@@ -30,8 +30,8 @@
 #\r
 #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
 #\r
-#  DRIVER_BINDING                =  gSerialControllerDriver                      \r
-#  COMPONENT_NAME                =  gIsaSerialComponentName                      \r
+#  DRIVER_BINDING                =  gSerialControllerDriver\r
+#  COMPONENT_NAME                =  gIsaSerialComponentName\r
 #  COMPONENT_NAME2               =  gIsaSerialComponentName2\r
 #\r
 \r
index 154fdd5d42f0f265a84fa38222f7983e45a3abf0..882db167cc8c7b760b688f568d7d349ca47fd13b 100644 (file)
@@ -4,13 +4,13 @@
 // Produces the Serial I/O protocol for standard UARTS using ISA I/O. This driver\r
 // supports the 8250, 16450, 16550 and 16550A UART types.\r
 //\r
-// Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution. The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index d45d304a7316b24ff1cc0353504aa057395f687b..6ac2748aa0cebad12a214a62ec63e9eb5c9d2c75 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // IsaSerialDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "ISA UART Serial Bus DXE Driver"\r
 \r
 \r
index 7824d38a9ca8a1ddee3ead85c099296949ba3bdb..56c2d4dda7158fa654dbd32f0500187c3c47fe94 100644 (file)
@@ -90,7 +90,7 @@ SERIAL_DEV  gSerialDevTempate = {
   Check the device path node whether it's the Flow Control node or not.\r
 \r
   @param[in] FlowControl    The device path node to be checked.\r
-  \r
+\r
   @retval TRUE              It's the Flow Control node.\r
   @retval FALSE             It's not.\r
 \r
@@ -111,7 +111,7 @@ IsUartFlowControlNode (
   Check the device path node whether it contains Flow Control node or not.\r
 \r
   @param[in] DevicePath     The device path to be checked.\r
-  \r
+\r
   @retval TRUE              It contains the Flow Control node.\r
   @retval FALSE             It doesn't.\r
 \r
@@ -134,9 +134,9 @@ ContainsFlowControl (
 /**\r
   The user Entry Point for module IsaSerial. The user code starts with this function.\r
 \r
-  @param[in] ImageHandle    The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle    The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable    A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS       The entry point is executed successfully.\r
   @retval other             Some error occurs when executing this entry point.\r
 \r
@@ -213,7 +213,7 @@ SerialControllerDriverSupported (
   //\r
   if (RemainingDevicePath != NULL) {\r
     //\r
-    // Check if RemainingDevicePath is the End of Device Path Node, \r
+    // Check if RemainingDevicePath is the End of Device Path Node,\r
     // if yes, go on checking other conditions\r
     //\r
     if (!IsDevicePathEnd (RemainingDevicePath)) {\r
@@ -230,27 +230,27 @@ SerialControllerDriverSupported (
                                         ) {\r
         goto Error;\r
       }\r
-  \r
+\r
       if (UartNode->BaudRate > SERIAL_PORT_MAX_BAUD_RATE) {\r
         goto Error;\r
       }\r
-  \r
+\r
       if (UartNode->Parity < NoParity || UartNode->Parity > SpaceParity) {\r
         goto Error;\r
       }\r
-  \r
+\r
       if (UartNode->DataBits < 5 || UartNode->DataBits > 8) {\r
         goto Error;\r
       }\r
-  \r
+\r
       if (UartNode->StopBits < OneStopBit || UartNode->StopBits > TwoStopBits) {\r
         goto Error;\r
       }\r
-  \r
+\r
       if ((UartNode->DataBits == 5) && (UartNode->StopBits == TwoStopBits)) {\r
         goto Error;\r
       }\r
-  \r
+\r
       if ((UartNode->DataBits >= 6) && (UartNode->DataBits <= 8) && (UartNode->StopBits == OneFiveStopBits)) {\r
         goto Error;\r
       }\r
@@ -510,7 +510,7 @@ SerialControllerDriverStart (
               // Clear the bits that are not allowed to pass to SetControl\r
               //\r
               Control &= (EFI_SERIAL_REQUEST_TO_SEND | EFI_SERIAL_DATA_TERMINAL_READY |\r
-                          EFI_SERIAL_HARDWARE_LOOPBACK_ENABLE | EFI_SERIAL_SOFTWARE_LOOPBACK_ENABLE | \r
+                          EFI_SERIAL_HARDWARE_LOOPBACK_ENABLE | EFI_SERIAL_SOFTWARE_LOOPBACK_ENABLE |\r
                           EFI_SERIAL_HARDWARE_FLOW_CONTROL_ENABLE);\r
               Status = SerialIo->SetControl (SerialIo, Control);\r
             }\r
@@ -529,7 +529,7 @@ SerialControllerDriverStart (
       //\r
       // If RemainingDevicePath is the End of Device Path Node,\r
       // skip enumerate any device and return EFI_SUCESSS\r
-      // \r
+      //\r
       return EFI_SUCCESS;\r
     }\r
   }\r
@@ -550,13 +550,13 @@ SerialControllerDriverStart (
   FlowControlMap                    = 0;\r
 \r
   //\r
-  // Check if RemainingDevicePath is NULL, \r
+  // Check if RemainingDevicePath is NULL,\r
   // if yes, use the values from the gSerialDevTempate as no remaining device path was\r
   // passed in.\r
   //\r
   if (RemainingDevicePath != NULL) {\r
     //\r
-    // If RemainingDevicePath isn't NULL, \r
+    // If RemainingDevicePath isn't NULL,\r
     // match the configuration of the RemainingDevicePath. IsHandleSupported()\r
     // already checked to make sure the RemainingDevicePath contains settings\r
     // that we can support.\r
@@ -577,7 +577,7 @@ SerialControllerDriverStart (
       SerialDevice->BaseAddress = (UINT16) SerialDevice->IsaIo->ResourceList->ResourceItem[Index].StartRange;\r
     }\r
   }\r
-  \r
+\r
   SerialDevice->HardwareFlowControl = (BOOLEAN) (FlowControlMap == UART_FLOW_CONTROL_HARDWARE);\r
 \r
   //\r
@@ -601,7 +601,7 @@ SerialControllerDriverStart (
 \r
   //\r
   // Build the device path by appending the UART node to the ParentDevicePath.\r
-  // The Uart setings are zero here, since  SetAttribute() will update them to match \r
+  // The Uart setings are zero here, since  SetAttribute() will update them to match\r
   // the default setings.\r
   //\r
   SerialDevice->DevicePath = AppendDevicePathNode (\r
@@ -853,7 +853,7 @@ IsaSerialFifoFull (
 \r
 /**\r
   Detect whether specific FIFO is empty or not.\r
\r
+\r
   @param  Fifo    A pointer to the Data Structure SERIAL_DEV_FIFO\r
 \r
   @return whether specific FIFO is empty or not\r
@@ -1022,7 +1022,7 @@ IsaSerialReceiveTransmit (
           Data = READ_RBR (SerialDevice->IsaIo, SerialDevice->BaseAddress);\r
 \r
           IsaSerialFifoAdd (&SerialDevice->Receive, Data);\r
-          \r
+\r
           //\r
           // For full handshake flow control, if receive buffer full\r
           // tell the peer to stop sending data.\r
@@ -1571,7 +1571,7 @@ IsaSerialSetControl (
   // first determine the parameter is invalid\r
   //\r
   if ((Control & (~(EFI_SERIAL_REQUEST_TO_SEND | EFI_SERIAL_DATA_TERMINAL_READY |\r
-                    EFI_SERIAL_HARDWARE_LOOPBACK_ENABLE | EFI_SERIAL_SOFTWARE_LOOPBACK_ENABLE | \r
+                    EFI_SERIAL_HARDWARE_LOOPBACK_ENABLE | EFI_SERIAL_SOFTWARE_LOOPBACK_ENABLE |\r
                     EFI_SERIAL_HARDWARE_FLOW_CONTROL_ENABLE))) != 0) {\r
     return EFI_UNSUPPORTED;\r
   }\r
@@ -1783,20 +1783,20 @@ IsaSerialWrite (
   //\r
   // Compute the number of bits in a single character.  This is a start bit,\r
   // followed by the number of data bits, followed by the number of stop bits.\r
-  // The number of stop bits is specified by an enumeration that includes \r
+  // The number of stop bits is specified by an enumeration that includes\r
   // support for 1.5 stop bits.  Treat 1.5 stop bits as 2 stop bits.\r
   //\r
-  BitsPerCharacter = \r
-    1 + \r
-    This->Mode->DataBits + \r
+  BitsPerCharacter =\r
+    1 +\r
+    This->Mode->DataBits +\r
     ((This->Mode->StopBits == TwoStopBits) ? 2 : This->Mode->StopBits);\r
 \r
   //\r
-  // Compute the timeout in microseconds to wait for a single byte to be \r
-  // transmitted.  The Mode structure contans a Timeout field that is the \r
-  // maximum time to transmit or receive a character.  However, many UARTs \r
+  // Compute the timeout in microseconds to wait for a single byte to be\r
+  // transmitted.  The Mode structure contans a Timeout field that is the\r
+  // maximum time to transmit or receive a character.  However, many UARTs\r
   // have a FIFO for transmits, so the time required to add one new character\r
-  // to the transmit FIFO may be the time required to flush a full FIFO.  If \r
+  // to the transmit FIFO may be the time required to flush a full FIFO.  If\r
   // the Timeout in the Mode structure is smaller than the time required to\r
   // flush a full FIFO at the current baud rate, then use a timeout value that\r
   // is required to flush a full transmit FIFO.\r
@@ -1809,7 +1809,7 @@ IsaSerialWrite (
                 NULL\r
                 )\r
               );\r
-  \r
+\r
   for (Index = 0; Index < *BufferSize; Index++) {\r
     IsaSerialFifoAdd (&SerialDevice->Transmit, CharBuffer[Index]);\r
 \r
index 9d50ca9e27e67722899ea140e0cbf3a420ae022b..d8f52dda1ed4ff4fa247ce8903653946d13dc64a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Include for Serial Driver\r
-  \r
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -603,7 +603,7 @@ IsaSerialFifoFull (
 \r
 /**\r
   Detect whether specific FIFO is empty or not.\r
\r
+\r
   @param  Fifo    A pointer to the Data Structure SERIAL_DEV_FIFO\r
 \r
   @return whether specific FIFO is empty or not\r
index e6c739e2baeb7b7c94884463e5e0fe214e1fc4bc..5f6c56c219715d909cddbd42c76b0ba4715dcf5d 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Routines related Component Name protocol.\r
-  \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
index 48d8efd516089228d8f304c5efa625d67cb96220..78c4e3b3919da5e9754e98cbd406a56bb9554225 100644 (file)
@@ -1548,8 +1548,8 @@ InitKeyboard (
     // Exceed the max try times. The device may be error.\r
     //\r
     if (TryTime == KEYBOARD_MAX_TRY) {\r
-       Status = EFI_DEVICE_ERROR;\r
-       goto Done;\r
+      Status = EFI_DEVICE_ERROR;\r
+      goto Done;\r
     }\r
   }\r
   //\r
@@ -1579,7 +1579,7 @@ InitKeyboard (
         KeyboardError (ConsoleIn, L"\n\r");\r
         goto Done;\r
       }\r
-      \r
+\r
       Status = KeyboardRead (ConsoleIn, &CommandByte);\r
       if (EFI_ERROR (Status)) {\r
         KeyboardError (ConsoleIn, L"\n\r");\r
@@ -1595,7 +1595,7 @@ InitKeyboard (
       }\r
     } else {\r
       mEnableMouseInterface = FALSE;\r
-    } \r
+    }\r
   } else {\r
     //\r
     // 8042 controller is not setup yet:\r
@@ -1611,13 +1611,13 @@ InitKeyboard (
         KeyboardError (ConsoleIn, L"\n\r");\r
         goto Done;\r
       }\r
-      \r
+\r
       Status = KeyboardCommand (ConsoleIn, KEYBOARD_8042_COMMAND_DISABLE_MOUSE_INTERFACE);\r
       if (EFI_ERROR (Status)) {\r
         KeyboardError (ConsoleIn, L"\n\r");\r
         goto Done;\r
       }\r
-      \r
+\r
       REPORT_STATUS_CODE_WITH_DEVICE_PATH (\r
         EFI_PROGRESS_CODE,\r
         EFI_PERIPHERAL_KEYBOARD | EFI_P_KEYBOARD_PC_SELF_TEST,\r
@@ -1631,7 +1631,7 @@ InitKeyboard (
         KeyboardError (ConsoleIn, L"8042 controller command write error!\n\r");\r
         goto Done;\r
       }\r
-      \r
+\r
       Status = KeyboardWaitForValue (ConsoleIn, 0x55);\r
       if (EFI_ERROR (Status)) {\r
         KeyboardError (ConsoleIn, L"8042 controller self test failed!\n\r");\r
@@ -1903,7 +1903,7 @@ CheckKeyboardConnect (
                ConsoleIn,\r
                KEYBOARD_KBEN\r
                );\r
-    \r
+\r
     if (EFI_ERROR (Status)) {\r
       return FALSE;\r
     }\r
@@ -1917,11 +1917,11 @@ CheckKeyboardConnect (
                KEYBOARD_CMDECHO_ACK\r
                );\r
     mWaitForValueTimeOut = WaitForValueTimeOutBcakup;\r
-    \r
+\r
     if (EFI_ERROR (Status)) {\r
       return FALSE;\r
     }\r
-    \r
+\r
     return TRUE;\r
   } else {\r
     return TRUE;\r
index 401b0e8c20758f0cae5273ad80b0017f40b5943d..e6eecd3ab479756ee3983239c07f7c3325048324 100644 (file)
@@ -272,7 +272,7 @@ KeyboardReadKeyStroke (
   EFI_KEY_DATA            KeyData;\r
 \r
   ConsoleIn = KEYBOARD_CONSOLE_IN_DEV_FROM_THIS (This);\r
-  \r
+\r
   //\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
@@ -719,7 +719,7 @@ KeyNotifyProcessHandler (
   while (TRUE) {\r
     //\r
     // Enter critical section\r
-    //  \r
+    //\r
     OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
     Status = PopEfikeyBufHead (&ConsoleIn->EfiKeyQueueForNotify, &KeyData);\r
     //\r
index ff562b2698d65fa1b9fe718d70dc71548a35678a..3fbb37820d20b950a1c01d6c914ce4e58ef9c17f 100644 (file)
@@ -3,7 +3,7 @@
   PS/2 Keyboard driver. Routines that interacts with callers,\r
   conforming to EFI driver model\r
 \r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -21,11 +21,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //\r
 /**\r
   Test controller is a keyboard Controller.\r
-  \r
+\r
   @param This                 Pointer of EFI_DRIVER_BINDING_PROTOCOL\r
   @param Controller           driver's controller\r
   @param RemainingDevicePath  children device path\r
-  \r
+\r
   @retval EFI_UNSUPPORTED controller is not floppy disk\r
   @retval EFI_SUCCESS     controller is floppy disk\r
 **/\r
@@ -39,11 +39,11 @@ KbdControllerDriverSupported (
 \r
 /**\r
   Create KEYBOARD_CONSOLE_IN_DEV instance on controller.\r
-  \r
+\r
   @param This         Pointer of EFI_DRIVER_BINDING_PROTOCOL\r
   @param Controller   driver controller handle\r
   @param RemainingDevicePath Children's device path\r
-  \r
+\r
   @retval whether success to create floppy control instance.\r
 **/\r
 EFI_STATUS\r
@@ -79,16 +79,16 @@ KbdControllerDriverStop (
 \r
 /**\r
   Free the waiting key notify list.\r
-  \r
+\r
   @param ListHead  Pointer to list head\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER  ListHead is NULL\r
   @retval EFI_SUCCESS            Sucess to free NotifyList\r
 **/\r
 EFI_STATUS\r
 KbdFreeNotifyList (\r
   IN OUT LIST_ENTRY           *ListHead\r
-  );  \r
+  );\r
 \r
 //\r
 // DriverBinding Protocol Instance\r
@@ -104,11 +104,11 @@ EFI_DRIVER_BINDING_PROTOCOL gKeyboardControllerDriver = {
 \r
 /**\r
   Test controller is a keyboard Controller.\r
-  \r
+\r
   @param This                 Pointer of EFI_DRIVER_BINDING_PROTOCOL\r
   @param Controller           driver's controller\r
   @param RemainingDevicePath  children device path\r
-  \r
+\r
   @retval EFI_UNSUPPORTED controller is not floppy disk\r
   @retval EFI_SUCCESS     controller is floppy disk\r
 **/\r
@@ -158,11 +158,11 @@ KbdControllerDriverSupported (
 \r
 /**\r
   Create KEYBOARD_CONSOLE_IN_DEV instance on controller.\r
-  \r
+\r
   @param This         Pointer of EFI_DRIVER_BINDING_PROTOCOL\r
   @param Controller   driver controller handle\r
   @param RemainingDevicePath Children's device path\r
-  \r
+\r
   @retval whether success to create floppy control instance.\r
 **/\r
 EFI_STATUS\r
@@ -249,17 +249,17 @@ KbdControllerDriverStart (
   ConsoleIn->ConInEx.ReadKeyStrokeEx     = KeyboardReadKeyStrokeEx;\r
   ConsoleIn->ConInEx.SetState            = KeyboardSetState;\r
   ConsoleIn->ConInEx.RegisterKeyNotify   = KeyboardRegisterKeyNotify;\r
-  ConsoleIn->ConInEx.UnregisterKeyNotify = KeyboardUnregisterKeyNotify;  \r
-  \r
+  ConsoleIn->ConInEx.UnregisterKeyNotify = KeyboardUnregisterKeyNotify;\r
+\r
   InitializeListHead (&ConsoleIn->NotifyList);\r
 \r
   //\r
   // Fix for random hangs in System waiting for the Key if no KBC is present in BIOS.\r
-  // When KBC decode (IO port 0x60/0x64 decode) is not enabled, \r
+  // When KBC decode (IO port 0x60/0x64 decode) is not enabled,\r
   // KeyboardRead will read back as 0xFF and return status is EFI_SUCCESS.\r
   // So instead we read status register to detect after read if KBC decode is enabled.\r
   //\r
-  \r
+\r
   //\r
   // Return code is ignored on purpose.\r
   //\r
@@ -275,7 +275,7 @@ KbdControllerDriverStart (
       goto ErrorExit;\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Setup the WaitForKey event\r
   //\r
@@ -293,7 +293,7 @@ KbdControllerDriverStart (
   }\r
   //\r
   // Setup the WaitForKeyEx event\r
-  //  \r
+  //\r
   Status = gBS->CreateEvent (\r
                   EVT_NOTIFY_WAIT,\r
                   TPL_NOTIFY,\r
@@ -306,7 +306,7 @@ KbdControllerDriverStart (
     StatusCode  = EFI_PERIPHERAL_KEYBOARD | EFI_P_EC_CONTROLLER_ERROR;\r
     goto ErrorExit;\r
   }\r
-  \r
+\r
   // Setup a periodic timer, used for reading keystrokes at a fixed interval\r
   //\r
   Status = gBS->CreateEvent (\r
@@ -442,7 +442,7 @@ ErrorExit:
       Status1 = KeyboardRead (ConsoleIn, &Data);;\r
     }\r
   }\r
-  \r
+\r
   if (ConsoleIn != NULL) {\r
     gBS->FreePool (ConsoleIn);\r
   }\r
@@ -517,7 +517,7 @@ KbdControllerDriverStop (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   ConsoleIn = KEYBOARD_CONSOLE_IN_DEV_FROM_THIS (ConIn);\r
 \r
   //\r
@@ -595,9 +595,9 @@ KbdControllerDriverStop (
 \r
 /**\r
   Free the waiting key notify list.\r
-  \r
+\r
   @param ListHead  Pointer to list head\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER  ListHead is NULL\r
   @retval EFI_SUCCESS            Sucess to free NotifyList\r
 **/\r
@@ -613,24 +613,24 @@ KbdFreeNotifyList (
   }\r
   while (!IsListEmpty (ListHead)) {\r
     NotifyNode = CR (\r
-                   ListHead->ForwardLink, \r
-                   KEYBOARD_CONSOLE_IN_EX_NOTIFY, \r
-                   NotifyEntry, \r
+                   ListHead->ForwardLink,\r
+                   KEYBOARD_CONSOLE_IN_EX_NOTIFY,\r
+                   NotifyEntry,\r
                    KEYBOARD_CONSOLE_IN_EX_NOTIFY_SIGNATURE\r
                    );\r
     RemoveEntryList (ListHead->ForwardLink);\r
     gBS->FreePool (NotifyNode);\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
 /**\r
-  The module Entry Point for module Ps2Keyboard. \r
+  The module Entry Point for module Ps2Keyboard.\r
 \r
-  @param[in] ImageHandle    The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle    The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable    A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS       The entry point is executed successfully.\r
   @retval other             Some error occurs when executing this entry point.\r
 \r
index 9387a85fe442d938b357e1c67f930f4fe7fbf9ad..6a5529c2ec65a76c17cd7311e63c1d5b1be67d4f 100644 (file)
@@ -4,13 +4,13 @@
 // Ps2 Keyboard Driver for UEFI. The keyboard type implemented follows IBM\r
 // compatible PS2 protocol using Scan Code Set 1.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index b5356239e8e20cbf0e2a69aef48721925b69d5c8..bf82dc9a35df724c3fbca85e2ef0da681ec9cb7f 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // Ps2KeyboardDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "PS2 Keyboard DXE Driver"\r
 \r
 \r
index 9d72cebcb20e161d194ab51eb81aa99855fd5469..a0cdddcca581e3d3f5c261e2d76af2d3fa974e98 100644 (file)
@@ -4,7 +4,7 @@
 # Ps2 Keyboard Driver for UEFI. The keyboard type implemented follows IBM\r
 # compatible PS2 protocol using Scan Code Set 1.\r
 #\r
-# Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
@@ -58,7 +58,7 @@
   BaseMemoryLib\r
   TimerLib\r
   PcdLib\r
-  \r
+\r
 [Protocols]\r
   gEfiSimpleTextInProtocolGuid                  ## BY_START\r
   gEfiSimpleTextInputExProtocolGuid             ## BY_START\r
index 5aa17059a37a2a3664fc666b97cdbc8aac098972..12bb768451bc72ccd3e71ba296f571848021df3f 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   PS2 Mouse Communication Interface.\r
-  \r
-Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -21,9 +21,9 @@ UINT8 ResolutionTbl[MaxResolution]  = { 0, 1, 2, 3 };
 \r
 /**\r
   Issue self test command via IsaIo interface.\r
-  \r
+\r
   @param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return EFI_SUCCESS  Success to do keyboard self testing.\r
   @return others       Fail to do keyboard self testing.\r
 **/\r
@@ -82,9 +82,9 @@ KbcSelfTest (
 \r
 /**\r
   Issue command to enable keyboard AUX functionality.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -100,9 +100,9 @@ KbcEnableAux (
 \r
 /**\r
   Issue command to disable keyboard AUX functionality.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -118,9 +118,9 @@ KbcDisableAux (
 \r
 /**\r
   Issue command to enable keyboard.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -136,9 +136,9 @@ KbcEnableKb (
 \r
 /**\r
   Issue command to disable keyboard.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -154,10 +154,10 @@ KbcDisableKb (
 \r
 /**\r
   Issue command to check keyboard status.\r
-  \r
+\r
   @param IsaIo          Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param KeyboardEnable return whether keyboard is enable.\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -195,9 +195,9 @@ CheckKbStatus (
 \r
 /**\r
   Issue command to reset keyboard.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -240,10 +240,10 @@ PS2MouseReset (
 \r
 /**\r
   Issue command to set mouse's sample rate\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  @param SampleRate value of sample rate \r
-  \r
+  @param SampleRate value of sample rate\r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -269,10 +269,10 @@ PS2MouseSetSampleRate (
 \r
 /**\r
   Issue command to set mouse's resolution.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Resolution value of resolution\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -298,10 +298,10 @@ PS2MouseSetResolution (
 \r
 /**\r
   Issue command to set mouse's scaling.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Scaling value of scaling\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -322,9 +322,9 @@ PS2MouseSetScaling (
 \r
 /**\r
   Issue command to enable Ps2 mouse.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -341,7 +341,7 @@ PS2MouseEnable (
 /**\r
   Get mouse packet . Only care first 3 bytes\r
 \r
-  @param MouseAbsolutePointerDev  Pointer to PS2 Absolute Pointer Simulation Device Private Data Structure \r
+  @param MouseAbsolutePointerDev  Pointer to PS2 Absolute Pointer Simulation Device Private Data Structure\r
 \r
   @retval EFI_NOT_READY  Mouse Device not ready to input data packet, or some error happened during getting the packet\r
   @retval EFI_SUCCESS    The data packet is gotten successfully.\r
@@ -432,19 +432,19 @@ PS2MouseGetPacket (
       RelativeMovementX = Packet[1];\r
       RelativeMovementY = Packet[2];\r
       //\r
-      //               Bit 7   |    Bit 6   |    Bit 5   |   Bit 4    |   Bit 3  |   Bit 2    |   Bit 1   |   Bit 0 \r
-      //  Byte 0  | Y overflow | X overflow | Y sign bit | X sign bit | Always 1 | Middle Btn | Right Btn | Left Btn \r
-      //  Byte 1  |                                           8 bit X Movement \r
-      //  Byte 2  |                                           8 bit Y Movement \r
-      // \r
+      //               Bit 7   |    Bit 6   |    Bit 5   |   Bit 4    |   Bit 3  |   Bit 2    |   Bit 1   |   Bit 0\r
+      //  Byte 0  | Y overflow | X overflow | Y sign bit | X sign bit | Always 1 | Middle Btn | Right Btn | Left Btn\r
+      //  Byte 1  |                                           8 bit X Movement\r
+      //  Byte 2  |                                           8 bit Y Movement\r
+      //\r
       // X sign bit + 8 bit X Movement : 9-bit signed twos complement integer that presents the relative displacement of the device in the X direction since the last data transmission.\r
       // Y sign bit + 8 bit Y Movement : Same as X sign bit + 8 bit X Movement.\r
       //\r
       //\r
       // First, Clear X and Y high 8 bits\r
       //\r
-      RelativeMovementX = (INT16) (RelativeMovementX & 0xFF); \r
-      RelativeMovementY = (INT16) (RelativeMovementY & 0xFF); \r
+      RelativeMovementX = (INT16) (RelativeMovementX & 0xFF);\r
+      RelativeMovementY = (INT16) (RelativeMovementY & 0xFF);\r
       //\r
       // Second, if the 9-bit signed twos complement integer is negative, set the high 8 bit 0xff\r
       //\r
@@ -455,7 +455,7 @@ PS2MouseGetPacket (
         RelativeMovementY = (INT16) (RelativeMovementY | 0xFF00);\r
       }\r
 \r
-      \r
+\r
       RButton           = (UINT8) (Packet[0] & 0x2);\r
       LButton           = (UINT8) (Packet[0] & 0x1);\r
 \r
@@ -475,12 +475,12 @@ PS2MouseGetPacket (
 \r
 /**\r
   Read data via IsaIo protocol with given number.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Buffer  Buffer receive data of mouse\r
   @param BufSize The size of buffer\r
   @param State   Check input or read data\r
-  \r
+\r
   @return status of reading mouse data.\r
 **/\r
 EFI_STATUS\r
@@ -536,10 +536,10 @@ PS2MouseRead (
 //\r
 /**\r
   I/O work flow of outing 8042 command.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Command I/O command.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -575,10 +575,10 @@ Out8042Command (
 \r
 /**\r
   I/O work flow of outing 8042 data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Data value\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -611,10 +611,10 @@ Out8042Data (
 \r
 /**\r
   I/O work flow of in 8042 data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Data value\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -654,11 +654,11 @@ In8042Data (
 \r
 /**\r
   I/O work flow of outing 8042 Aux command.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Command Aux I/O command\r
   @param Resend  Whether need resend the Aux command.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -736,10 +736,10 @@ Out8042AuxCommand (
 \r
 /**\r
   I/O work flow of outing 8042 Aux data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  @param Data    Buffer holding return value  \r
-  \r
+  @param Data    Buffer holding return value\r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow.\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -782,10 +782,10 @@ Out8042AuxData (
 \r
 /**\r
   I/O work flow of in 8042 Aux data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Buffer holding return value.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -813,9 +813,9 @@ In8042AuxData (
 \r
 /**\r
   Check keyboard controller status, if it is output buffer full and for auxiliary device.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @retval EFI_SUCCESS   Keyboard controller is ready\r
   @retval EFI_NOT_READY Keyboard controller is not ready\r
 **/\r
@@ -840,10 +840,10 @@ CheckForInput (
 \r
 /**\r
   I/O work flow to wait input buffer empty in given time.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Timeout Wating time.\r
-  \r
+\r
   @retval EFI_TIMEOUT if input is still not empty in given time.\r
   @retval EFI_SUCCESS input is empty.\r
 **/\r
@@ -881,10 +881,10 @@ WaitInputEmpty (
 \r
 /**\r
   I/O work flow to wait output buffer full in given time.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Timeout given time\r
-  \r
+\r
   @retval EFI_TIMEOUT  output is not full in given time\r
   @retval EFI_SUCCESS  output is full in given time.\r
 **/\r
index 560389df47b8a9ae5516ba9ca21aad1576ddb40e..e6ec21c6aad7422e2970772d5aa93b1228c83a02 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Using PS2 Mouse to simulation Absolution Pointer Device.\r
-  \r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -78,23 +78,23 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 ///\r
 /// Parity Error\r
 ///\r
-#define KBC_PARE  0x80  \r
+#define KBC_PARE  0x80\r
 ///\r
 /// General Time Out\r
 ///\r
-#define KBC_TIM   0x40  \r
+#define KBC_TIM   0x40\r
 ///\r
 /// Output buffer for auxiliary device (PS/2):\r
 ///    0 - Holds keyboard data\r
 ///    1 - Holds data for auxiliary device\r
 ///\r
-#define KBC_AUXB  0x20  \r
+#define KBC_AUXB  0x20\r
 ///\r
 /// Keyboard lock status:\r
 ///    0 - keyboard locked\r
 ///    1 - keyboard free\r
 ///\r
-#define KBC_KEYL  0x10 \r
+#define KBC_KEYL  0x10\r
 ///\r
 /// Command/Data:\r
 ///    0 - data byte written via port 60h\r
@@ -106,25 +106,25 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 ///    0 - power-on reset\r
 ///    1 - self-test successful\r
 ///\r
-#define KBC_SYSF  0x04  \r
+#define KBC_SYSF  0x04\r
 ///\r
 /// Input Buffer Status :\r
 ///    0 - input buffer empty\r
 ///    1 - CPU data in input buffer\r
 ///\r
-#define KBC_INPB  0x02  \r
+#define KBC_INPB  0x02\r
 ///\r
 /// Output Buffer Status :\r
 ///    0 - output buffer empty\r
 ///    1 - keyboard controller data in output buffer\r
 ///\r
-#define KBC_OUTB  0x01  \r
+#define KBC_OUTB  0x01\r
 \r
 /**\r
   Issue self test command via IsaIo interface.\r
-  \r
+\r
   @param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return EFI_SUCCESS  Success to do keyboard self testing.\r
   @return others       Fail to do keyboard self testing.\r
 **/\r
@@ -135,9 +135,9 @@ KbcSelfTest (
 \r
 /**\r
   Issue command to enable keyboard AUX functionality.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -147,9 +147,9 @@ KbcEnableAux (
 \r
 /**\r
   Issue command to disable keyboard AUX functionality.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -159,9 +159,9 @@ KbcDisableAux (
 \r
 /**\r
   Issue command to enable keyboard.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -171,9 +171,9 @@ KbcEnableKb (
 \r
 /**\r
   Issue command to disable keyboard.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -183,10 +183,10 @@ KbcDisableKb (
 \r
 /**\r
   Issue command to check keyboard status.\r
-  \r
+\r
   @param IsaIo          Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param KeyboardEnable return whether keyboard is enable.\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -197,9 +197,9 @@ CheckKbStatus (
 \r
 /**\r
   Issue command to reset keyboard.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -209,10 +209,10 @@ PS2MouseReset (
 \r
 /**\r
   Issue command to set mouse's sample rate\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  @param SampleRate value of sample rate \r
-  \r
+  @param SampleRate value of sample rate\r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -223,10 +223,10 @@ PS2MouseSetSampleRate (
 \r
 /**\r
   Issue command to set mouse's resolution.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Resolution value of resolution\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -237,10 +237,10 @@ PS2MouseSetResolution (
 \r
 /**\r
   Issue command to set mouse's scaling.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Scaling value of scaling\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -251,9 +251,9 @@ PS2MouseSetScaling (
 \r
 /**\r
   Issue command to enable Ps2 mouse.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -277,12 +277,12 @@ PS2MouseGetPacket (
 \r
 /**\r
   Read data via IsaIo protocol with given number.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Buffer  Buffer receive data of mouse\r
   @param BufSize The size of buffer\r
   @param State   Check input or read data\r
-  \r
+\r
   @return status of reading mouse data.\r
 **/\r
 EFI_STATUS\r
@@ -298,10 +298,10 @@ PS2MouseRead (
 //\r
 /**\r
   I/O work flow of outing 8042 command.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Command I/O command.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -313,10 +313,10 @@ Out8042Command (
 \r
 /**\r
   I/O work flow of in 8042 data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Data value\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -328,10 +328,10 @@ In8042Data (
 \r
 /**\r
   I/O work flow of outing 8042 data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Data value\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -343,11 +343,11 @@ Out8042Data (
 \r
 /**\r
   I/O work flow of outing 8042 Aux command.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Command Aux I/O command\r
   @param Resend  Whether need resend the Aux command.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -360,10 +360,10 @@ Out8042AuxCommand (
 \r
 /**\r
   I/O work flow of in 8042 Aux data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Buffer holding return value.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -375,10 +375,10 @@ In8042AuxData (
 \r
 /**\r
   I/O work flow of outing 8042 Aux data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Buffer holding return value.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -390,9 +390,9 @@ Out8042AuxData (
 \r
 /**\r
   Check keyboard controller status, if it is output buffer full and for auxiliary device.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @retval EFI_SUCCESS   Keyboard controller is ready\r
   @retval EFI_NOT_READY Keyboard controller is not ready\r
 **/\r
@@ -403,10 +403,10 @@ CheckForInput (
 \r
 /**\r
   I/O work flow to wait input buffer empty in given time.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Timeout Wating time.\r
-  \r
+\r
   @retval EFI_TIMEOUT if input is still not empty in given time.\r
   @retval EFI_SUCCESS input is empty.\r
 **/\r
@@ -418,10 +418,10 @@ WaitInputEmpty (
 \r
 /**\r
   I/O work flow to wait output buffer full in given time.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Timeout given time\r
-  \r
+\r
   @retval EFI_TIMEOUT  output is not full in given time\r
   @retval EFI_SUCCESS  output is full in given time.\r
 **/\r
index bf8adfcb2f77c1cf190811e7f82aba59c8359afa..bbc602a0b58cb402cb512383e3011c0697c41eff 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   A faked PS/2 Absolute Pointer driver. Routines that interacts with callers,\r
   conforming to EFI driver model\r
-  \r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -230,7 +230,7 @@ PS2MouseAbsolutePointerDriverStart (
   //\r
   // Initialize keyboard controller if necessary\r
   //\r
-  REPORT_STATUS_CODE_WITH_DEVICE_PATH (  \r
+  REPORT_STATUS_CODE_WITH_DEVICE_PATH (\r
     EFI_PROGRESS_CODE,\r
     EFI_PERIPHERAL_MOUSE | EFI_P_MOUSE_PC_SELF_TEST,\r
     ParentDevicePath\r
@@ -640,7 +640,7 @@ CheckMouseAbsolutePointerConnect (
 \r
 /**\r
   Get and Clear mouse status.\r
-  \r
+\r
   @param This                 - Pointer of simple pointer Protocol.\r
   @param State                - Output buffer holding status.\r
 \r
@@ -743,9 +743,9 @@ PollMouseAbsolutePointer(
 /**\r
   The user Entry Point for module Ps2MouseAbsolutePointer. The user code starts with this function.\r
 \r
-  @param[in] ImageHandle    The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle    The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable    A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS       The entry point is executed successfully.\r
   @retval other             Some error occurs when executing this entry point.\r
 \r
index 8f959fdfe41742fdde97217cee66085f4fa9b126..94a029ab0a61cda6f2f6f82f9118288c1ded4ad1 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   A Ps2MouseAbsolutePointer driver header file\r
-  \r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -322,7 +322,7 @@ MouseAbsolutePointerReset (
 \r
 /**\r
   Get and Clear mouse status.\r
-  \r
+\r
   @param This                 - Pointer of simple pointer Protocol.\r
   @param State                - Output buffer holding status.\r
 \r
@@ -370,10 +370,10 @@ PollMouseAbsolutePointer (
 \r
 /**\r
   I/O work flow of in 8042 data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Data value\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
index d12ca1ad1b7650bfa2b8e63711dfb0c02c267a3b..73004f468452bc69c790c25a12a6fdff0510f35d 100644 (file)
@@ -4,13 +4,13 @@
 // This driver simulates a touch pad absolute pointing device using a standard\r
 // PS2 mouse as the input hardware.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 6577f74f7773ae580f5d7389a18025d6986f4814..a983494f4f0510c077c91738947acc35b2d2c901 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // Ps2MouseAbsolutePointerDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "PS2 Tablet Pointer DXE Driver"\r
 \r
 \r
index 27d378db22ee22c1f158f62bd28f0fcf5eabe9aa..d1c07f65b772f052d254a94994dabee27f79b956 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   PS2 Mouse Communication Interface.\r
-  \r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -21,9 +21,9 @@ UINT8 ResolutionTbl[MaxResolution]  = { 0, 1, 2, 3 };
 \r
 /**\r
   Issue self test command via IsaIo interface.\r
-  \r
+\r
   @param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return EFI_SUCCESS  Success to do keyboard self testing.\r
   @return others       Fail to do keyboard self testing.\r
 **/\r
@@ -82,9 +82,9 @@ KbcSelfTest (
 \r
 /**\r
   Issue command to enable keyboard AUX functionality.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -100,9 +100,9 @@ KbcEnableAux (
 \r
 /**\r
   Issue command to disable keyboard AUX functionality.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -118,9 +118,9 @@ KbcDisableAux (
 \r
 /**\r
   Issue command to enable keyboard.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -136,9 +136,9 @@ KbcEnableKb (
 \r
 /**\r
   Issue command to disable keyboard.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -154,10 +154,10 @@ KbcDisableKb (
 \r
 /**\r
   Issue command to check keyboard status.\r
-  \r
+\r
   @param IsaIo          Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param KeyboardEnable return whether keyboard is enable.\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -195,9 +195,9 @@ CheckKbStatus (
 \r
 /**\r
   Issue command to reset keyboard.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -240,10 +240,10 @@ PS2MouseReset (
 \r
 /**\r
   Issue command to set mouse's sample rate\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  @param SampleRate value of sample rate \r
-  \r
+  @param SampleRate value of sample rate\r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -269,10 +269,10 @@ PS2MouseSetSampleRate (
 \r
 /**\r
   Issue command to set mouse's resolution.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Resolution value of resolution\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -298,10 +298,10 @@ PS2MouseSetResolution (
 \r
 /**\r
   Issue command to set mouse's scaling.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Scaling value of scaling\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -322,9 +322,9 @@ PS2MouseSetScaling (
 \r
 /**\r
   Issue command to enable Ps2 mouse.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -341,7 +341,7 @@ PS2MouseEnable (
 /**\r
   Get mouse packet . Only care first 3 bytes\r
 \r
-  @param MouseDev  Pointer of PS2 Mouse Private Data Structure \r
+  @param MouseDev  Pointer of PS2 Mouse Private Data Structure\r
 \r
   @retval EFI_NOT_READY  Mouse Device not ready to input data packet, or some error happened during getting the packet\r
   @retval EFI_SUCCESS    The data packet is gotten successfully.\r
@@ -432,19 +432,19 @@ PS2MouseGetPacket (
       RelativeMovementX = Packet[1];\r
       RelativeMovementY = Packet[2];\r
       //\r
-      //               Bit 7   |    Bit 6   |    Bit 5   |   Bit 4    |   Bit 3  |   Bit 2    |   Bit 1   |   Bit 0 \r
-      //  Byte 0  | Y overflow | X overflow | Y sign bit | X sign bit | Always 1 | Middle Btn | Right Btn | Left Btn \r
-      //  Byte 1  |                                           8 bit X Movement \r
-      //  Byte 2  |                                           8 bit Y Movement \r
-      // \r
+      //               Bit 7   |    Bit 6   |    Bit 5   |   Bit 4    |   Bit 3  |   Bit 2    |   Bit 1   |   Bit 0\r
+      //  Byte 0  | Y overflow | X overflow | Y sign bit | X sign bit | Always 1 | Middle Btn | Right Btn | Left Btn\r
+      //  Byte 1  |                                           8 bit X Movement\r
+      //  Byte 2  |                                           8 bit Y Movement\r
+      //\r
       // X sign bit + 8 bit X Movement : 9-bit signed twos complement integer that presents the relative displacement of the device in the X direction since the last data transmission.\r
       // Y sign bit + 8 bit Y Movement : Same as X sign bit + 8 bit X Movement.\r
       //\r
       //\r
       // First, Clear X and Y high 8 bits\r
       //\r
-      RelativeMovementX = (INT16) (RelativeMovementX & 0xFF); \r
-      RelativeMovementY = (INT16) (RelativeMovementY & 0xFF); \r
+      RelativeMovementX = (INT16) (RelativeMovementX & 0xFF);\r
+      RelativeMovementY = (INT16) (RelativeMovementY & 0xFF);\r
       //\r
       // Second, if the 9-bit signed twos complement integer is negative, set the high 8 bit 0xff\r
       //\r
@@ -455,7 +455,7 @@ PS2MouseGetPacket (
         RelativeMovementY = (INT16) (RelativeMovementY | 0xFF00);\r
       }\r
 \r
-      \r
+\r
       RButton           = (UINT8) (Packet[0] & 0x2);\r
       LButton           = (UINT8) (Packet[0] & 0x1);\r
 \r
@@ -475,12 +475,12 @@ PS2MouseGetPacket (
 \r
 /**\r
   Read data via IsaIo protocol with given number.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Buffer  Buffer receive data of mouse\r
   @param BufSize The size of buffer\r
   @param State   Check input or read data\r
-  \r
+\r
   @return status of reading mouse data.\r
 **/\r
 EFI_STATUS\r
@@ -535,10 +535,10 @@ PS2MouseRead (
 //\r
 /**\r
   I/O work flow of outing 8042 command.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Command I/O command.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -574,10 +574,10 @@ Out8042Command (
 \r
 /**\r
   I/O work flow of outing 8042 data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Data value\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -610,10 +610,10 @@ Out8042Data (
 \r
 /**\r
   I/O work flow of in 8042 data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Data value\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -653,11 +653,11 @@ In8042Data (
 \r
 /**\r
   I/O work flow of outing 8042 Aux command.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Command Aux I/O command\r
   @param Resend  Whether need resend the Aux command.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -735,10 +735,10 @@ Out8042AuxCommand (
 \r
 /**\r
   I/O work flow of outing 8042 Aux data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Buffer holding return value\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -781,10 +781,10 @@ Out8042AuxData (
 \r
 /**\r
   I/O work flow of in 8042 Aux data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Buffer holding return value.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -812,9 +812,9 @@ In8042AuxData (
 \r
 /**\r
   Check keyboard controller status, if it is output buffer full and for auxiliary device.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @retval EFI_SUCCESS   Keyboard controller is ready\r
   @retval EFI_NOT_READY Keyboard controller is not ready\r
 **/\r
@@ -839,10 +839,10 @@ CheckForInput (
 \r
 /**\r
   I/O work flow to wait input buffer empty in given time.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Timeout Wating time.\r
-  \r
+\r
   @retval EFI_TIMEOUT if input is still not empty in given time.\r
   @retval EFI_SUCCESS input is empty.\r
 **/\r
@@ -880,10 +880,10 @@ WaitInputEmpty (
 \r
 /**\r
   I/O work flow to wait output buffer full in given time.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Timeout given time\r
-  \r
+\r
   @retval EFI_TIMEOUT  output is not full in given time\r
   @retval EFI_SUCCESS  output is full in given time.\r
 **/\r
index 6c0f8ac6a0e2940ac01658301aca72ca04df505a..d909d48294865b1e1b9a54fd3899912f7d701a8e 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  PS2 Mouse Communication Interface \r
+  PS2 Mouse Communication Interface\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -78,23 +78,23 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 ///\r
 /// Parity Error\r
 ///\r
-#define KBC_PARE  0x80  \r
+#define KBC_PARE  0x80\r
 ///\r
 /// General Time Out\r
 ///\r
-#define KBC_TIM   0x40  \r
+#define KBC_TIM   0x40\r
 ///\r
 /// Output buffer for auxiliary device (PS/2):\r
 ///    0 - Holds keyboard data\r
 ///    1 - Holds data for auxiliary device\r
 ///\r
-#define KBC_AUXB  0x20  \r
+#define KBC_AUXB  0x20\r
 ///\r
 /// Keyboard lock status:\r
 ///    0 - keyboard locked\r
 ///    1 - keyboard free\r
 ///\r
-#define KBC_KEYL  0x10 \r
+#define KBC_KEYL  0x10\r
 ///\r
 /// Command/Data:\r
 ///    0 - data byte written via port 60h\r
@@ -106,25 +106,25 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 ///    0 - power-on reset\r
 ///    1 - self-test successful\r
 ///\r
-#define KBC_SYSF  0x04  \r
+#define KBC_SYSF  0x04\r
 ///\r
 /// Input Buffer Status :\r
 ///    0 - input buffer empty\r
 ///    1 - CPU data in input buffer\r
 ///\r
-#define KBC_INPB  0x02  \r
+#define KBC_INPB  0x02\r
 ///\r
 /// Output Buffer Status :\r
 ///    0 - output buffer empty\r
 ///    1 - keyboard controller data in output buffer\r
 ///\r
-#define KBC_OUTB  0x01  \r
+#define KBC_OUTB  0x01\r
 \r
 /**\r
   Issue self test command via IsaIo interface.\r
-  \r
+\r
   @param IsaIo Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return EFI_SUCCESS  Success to do keyboard self testing.\r
   @return others       Fail to do keyboard self testing.\r
 **/\r
@@ -135,9 +135,9 @@ KbcSelfTest (
 \r
 /**\r
   Issue command to enable keyboard AUX functionality.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -147,9 +147,9 @@ KbcEnableAux (
 \r
 /**\r
   Issue command to disable keyboard AUX functionality.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -159,9 +159,9 @@ KbcDisableAux (
 \r
 /**\r
   Issue command to enable keyboard.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -171,9 +171,9 @@ KbcEnableKb (
 \r
 /**\r
   Issue command to disable keyboard.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -183,10 +183,10 @@ KbcDisableKb (
 \r
 /**\r
   Issue command to check keyboard status.\r
-  \r
+\r
   @param IsaIo          Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param KeyboardEnable return whether keyboard is enable.\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -197,9 +197,9 @@ CheckKbStatus (
 \r
 /**\r
   Issue command to reset keyboard.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -209,10 +209,10 @@ PS2MouseReset (
 \r
 /**\r
   Issue command to set mouse's sample rate\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  @param SampleRate value of sample rate \r
-  \r
+  @param SampleRate value of sample rate\r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -223,10 +223,10 @@ PS2MouseSetSampleRate (
 \r
 /**\r
   Issue command to set mouse's resolution.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Resolution value of resolution\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -237,10 +237,10 @@ PS2MouseSetResolution (
 \r
 /**\r
   Issue command to set mouse's scaling.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Scaling value of scaling\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -251,9 +251,9 @@ PS2MouseSetScaling (
 \r
 /**\r
   Issue command to enable Ps2 mouse.\r
-  \r
+\r
   @param IsaIo  Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @return Status of command issuing.\r
 **/\r
 EFI_STATUS\r
@@ -264,7 +264,7 @@ PS2MouseEnable (
 /**\r
   Get mouse packet . Only care first 3 bytes\r
 \r
-  @param MouseDev  Pointer of PS2 Mouse Private Data Structure \r
+  @param MouseDev  Pointer of PS2 Mouse Private Data Structure\r
 \r
   @retval EFI_NOT_READY  Mouse Device not ready to input data packet, or some error happened during getting the packet\r
   @retval EFI_SUCCESS    The data packet is gotten successfully.\r
@@ -277,12 +277,12 @@ PS2MouseGetPacket (
 \r
 /**\r
   Read data via IsaIo protocol with given number.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Buffer  Buffer receive data of mouse\r
   @param BufSize The size of buffer\r
   @param State   Check input or read data\r
-  \r
+\r
   @return status of reading mouse data.\r
 **/\r
 EFI_STATUS\r
@@ -298,10 +298,10 @@ PS2MouseRead (
 //\r
 /**\r
   I/O work flow of outing 8042 command.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Command I/O command.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -313,10 +313,10 @@ Out8042Command (
 \r
 /**\r
   I/O work flow of in 8042 data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Data value\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -328,10 +328,10 @@ In8042Data (
 \r
 /**\r
   I/O work flow of outing 8042 data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Data value\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -343,11 +343,11 @@ Out8042Data (
 \r
 /**\r
   I/O work flow of outing 8042 Aux command.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Command Aux I/O command\r
   @param Resend  Whether need resend the Aux command.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -360,10 +360,10 @@ Out8042AuxCommand (
 \r
 /**\r
   I/O work flow of in 8042 Aux data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Buffer holding return value.\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -375,10 +375,10 @@ In8042AuxData (
 \r
 /**\r
   I/O work flow of outing 8042 Aux data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Buffer holding return value\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
@@ -390,9 +390,9 @@ Out8042AuxData (
 \r
 /**\r
   Check keyboard controller status, if it is output buffer full and for auxiliary device.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
-  \r
+\r
   @retval EFI_SUCCESS   Keyboard controller is ready\r
   @retval EFI_NOT_READY Keyboard controller is not ready\r
 **/\r
@@ -403,10 +403,10 @@ CheckForInput (
 \r
 /**\r
   I/O work flow to wait input buffer empty in given time.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Timeout Wating time.\r
-  \r
+\r
   @retval EFI_TIMEOUT if input is still not empty in given time.\r
   @retval EFI_SUCCESS input is empty.\r
 **/\r
@@ -418,10 +418,10 @@ WaitInputEmpty (
 \r
 /**\r
   I/O work flow to wait output buffer full in given time.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Timeout given time\r
-  \r
+\r
   @retval EFI_TIMEOUT  output is not full in given time\r
   @retval EFI_SUCCESS  output is full in given time.\r
 **/\r
index 43fad21903bec9879ec34d1c29371635a895968e..906c972808c21f47f362fe41ecf29492b3d81233 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   PS/2 Mouse driver. Routines that interacts with callers,\r
   conforming to EFI driver model.\r
-  \r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -109,7 +109,7 @@ PS2MouseDriverSupported (
 }\r
 \r
 /**\r
-  Start this driver on ControllerHandle by opening a IsaIo protocol, creating \r
+  Start this driver on ControllerHandle by opening a IsaIo protocol, creating\r
   PS2_MOUSE_ABSOLUTE_POINTER_DEV device and install gEfiAbsolutePointerProtocolGuid\r
   finally.\r
 \r
@@ -239,7 +239,7 @@ PS2MouseDriverStart (
     Status     = EFI_DEVICE_ERROR;\r
     StatusCode = EFI_PERIPHERAL_MOUSE | EFI_P_EC_NOT_DETECTED;\r
     goto ErrorExit;\r
-  } \r
+  }\r
 \r
   REPORT_STATUS_CODE_WITH_DEVICE_PATH (\r
     EFI_PROGRESS_CODE,\r
@@ -381,7 +381,7 @@ ErrorExit:
   if ((MouseDev != NULL) && (MouseDev->ControllerNameTable != NULL)) {\r
     FreeUnicodeStringTable (MouseDev->ControllerNameTable);\r
   }\r
-  \r
+\r
   if (Status != EFI_DEVICE_ERROR) {\r
     //\r
     // Since there will be no timer handler for mouse input any more,\r
@@ -655,7 +655,7 @@ CheckMouseConnect (
 \r
 /**\r
   Get and Clear mouse status.\r
-  \r
+\r
   @param This                 - Pointer of simple pointer Protocol.\r
   @param State                - Output buffer holding status.\r
 \r
@@ -757,9 +757,9 @@ PollMouse (
 /**\r
   The user Entry Point for module Ps2Mouse. The user code starts with this function.\r
 \r
-  @param[in] ImageHandle    The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle    The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable    A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS       The entry point is executed successfully.\r
   @retval other             Some error occurs when executing this entry point.\r
 \r
index 078cefa910c8794b777b24ad449a8bb818b12f24..6225e33de96c3eb6f06c10e962919a898fa2f29e 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   PS/2 Mouse driver header file.\r
-  \r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -322,7 +322,7 @@ MouseReset (
 \r
 /**\r
   Get and Clear mouse status.\r
-  \r
+\r
   @param This                 - Pointer of simple pointer Protocol.\r
   @param State                - Output buffer holding status.\r
 \r
@@ -370,10 +370,10 @@ PollMouse (
 \r
 /**\r
   I/O work flow of in 8042 data.\r
-  \r
+\r
   @param IsaIo   Pointer to instance of EFI_ISA_IO_PROTOCOL\r
   @param Data    Data value\r
-  \r
+\r
   @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
index 2c3d4a2442f5c35d7928802d886afa0730b26872..4bf2f02f72098d627bff23a9800fc69c0490f7d3 100644 (file)
@@ -3,13 +3,13 @@
 //\r
 // This dirver provides support for PS2 based mice.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 851cf291f335d540ea9842e2848603252d3532cc..f6399597426f8b47b8ee66d3844aeb9c85fb4f3c 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // Ps2MouseDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "PS2 Mouse DXE Driver"\r
 \r
 \r
index c541eb8991a91e5cd7680567838859b81d6fb9d3..7819773f3864247aba8fc46bba9597611940a571 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  This file contains all helper functions on the ATA command \r
-  \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  This file contains all helper functions on the ATA command\r
+\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -31,9 +31,9 @@
   @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used to record\r
                 all the information of the IDE device.\r
 \r
-  @retval EFI_SUCCESS       The disk specified by IdeDev is a Atapi6 supported one and \r
+  @retval EFI_SUCCESS       The disk specified by IdeDev is a Atapi6 supported one and\r
                             48-bit addressing must be used\r
-  @retval EFI_UNSUPPORTED   The disk dosn't not support Atapi6 or it supports but the \r
+  @retval EFI_UNSUPPORTED   The disk dosn't not support Atapi6 or it supports but the\r
                             capacity is below 120G, 48bit addressing is not needed\r
   @retval  EFI_DEVICE_ERROR      The identify data in IdeDev is incorrect\r
   @retval  EFI_INVALID_PARAMETER The identify data in IdeDev is NULL.\r
@@ -110,7 +110,7 @@ AtaAtapi6Identify (
 /**\r
   Enable SMART of the disk if supported\r
 \r
-  @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure,used to record \r
+  @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure,used to record\r
                 all the information of the IDE device.\r
 **/\r
 VOID\r
@@ -263,7 +263,7 @@ AtaSMARTSupport (
   information it needs to fill the IDE_BLK_IO_DEV data structure,\r
   including device type, media block size, media capacity, and etc.\r
 \r
-  @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure,used to record \r
+  @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure,used to record\r
                  all the information of the IDE device.\r
 \r
   @retval EFI_SUCCESS      Identify ATA device successfully.\r
@@ -280,7 +280,7 @@ ATAIdentify (
   EFI_IDENTIFY_DATA *AtaIdentifyPointer;\r
   UINT32            Capacity;\r
   UINT8             DeviceSelect;\r
-  UINTN                                Retry;\r
+  UINTN        Retry;\r
 \r
   //\r
   //  AtaIdentifyPointer is used for accommodating returned IDENTIFY data of\r
@@ -297,9 +297,9 @@ ATAIdentify (
   //\r
   DeviceSelect  = (UINT8) ((IdeDev->Device) << 4);\r
 \r
-  \r
+\r
   Retry = 3;\r
-  while (Retry > 0) {  \r
+  while (Retry > 0) {\r
     Status = AtaPioDataIn (\r
               IdeDev,\r
               (VOID *) AtaIdentifyPointer,\r
@@ -348,20 +348,20 @@ ATAIdentify (
           //\r
           return EFI_SUCCESS;\r
         } else if (Status == EFI_DEVICE_ERROR) {\r
-                 //\r
-                 // Some disk with big capacity (>200GB) is slow when being identified\r
-                 // and will return all zero for word83.\r
-                 // We try twice at first. If it fails, we do a SoftRest and try again.\r
-                 //\r
-                 Retry--;\r
-                 if (Retry == 1) {\r
-                   //\r
-                   // Do a SoftRest before the third attempt.\r
-                   //\r
-                   AtaSoftReset (IdeDev);\r
-                 }\r
-                 continue;\r
-           }\r
+      //\r
+      // Some disk with big capacity (>200GB) is slow when being identified\r
+      // and will return all zero for word83.\r
+      // We try twice at first. If it fails, we do a SoftRest and try again.\r
+      //\r
+      Retry--;\r
+      if (Retry == 1) {\r
+        //\r
+        // Do a SoftRest before the third attempt.\r
+        //\r
+        AtaSoftReset (IdeDev);\r
+      }\r
+      continue;\r
+      }\r
         //\r
         // This is a hard disk <= 120GB capacity, treat it as normal hard disk\r
         //\r
@@ -390,7 +390,7 @@ ATAIdentify (
       }\r
 \r
     }\r
-       break;\r
+    break;\r
   }\r
 \r
   gBS->FreePool (AtaIdentifyPointer);\r
@@ -404,12 +404,12 @@ ATAIdentify (
 \r
 /**\r
   This function is a helper function used to change the char order in a string. It\r
-  is designed specially for the PrintAtaModuleName() function. After the IDE device \r
-  is detected, the IDE driver gets the device module name by sending ATA command \r
+  is designed specially for the PrintAtaModuleName() function. After the IDE device\r
+  is detected, the IDE driver gets the device module name by sending ATA command\r
   called ATA Identify Command or ATAPI Identify Command to the specified IDE device.\r
   The module name returned is a string of ASCII characters: the first character is bit8--bit15\r
   of the first word, the second character is BIT0--bit7 of the first word and so on. Thus\r
-  the string can not be print directly before it is preprocessed by this func to change \r
+  the string can not be print directly before it is preprocessed by this func to change\r
   the order of characters in each word in the string.\r
 \r
   @param Destination Indicates the destination string.\r
@@ -455,7 +455,7 @@ PrintAtaModuleName (
 /**\r
   This function is used to send out ATA commands conforms to the PIO Data In Protocol.\r
 \r
-  @param IdeDev       pointer pointing to IDE_BLK_IO_DEV data structure, used to record \r
+  @param IdeDev       pointer pointing to IDE_BLK_IO_DEV data structure, used to record\r
                       all the information of the IDE device.\r
   @param Buffer       buffer contained data transferred from device to host.\r
   @param ByteCount    data size in byte unit of the buffer.\r
@@ -465,7 +465,7 @@ PrintAtaModuleName (
   @param SectorNumber value of the Sector Number Register\r
   @param CylinderLsb  value of the low byte of the Cylinder Register\r
   @param CylinderMsb  value of the high byte of the Cylinder Register\r
-  \r
+\r
   @retval EFI_SUCCESS      send out the ATA command and device send required data successfully.\r
   @retval EFI_DEVICE_ERROR command sent failed.\r
 \r
@@ -752,7 +752,7 @@ AtaPioDataOut (
   some debug information and if there is ERR bit set in the Status\r
   Register, the Error Register's value is also be parsed and print out.\r
 \r
-  @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure, used to \r
+  @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure, used to\r
                  record all the information of the IDE device.\r
 \r
   @retval EFI_SUCCESS       No err information in the Status Register.\r
@@ -850,15 +850,15 @@ CheckErrorStatus (
 }\r
 \r
 /**\r
-  This function is called by the AtaBlkIoReadBlocks() to perform reading from \r
+  This function is called by the AtaBlkIoReadBlocks() to perform reading from\r
   media in block unit.\r
 \r
-  @param IdeDev         pointer pointing to IDE_BLK_IO_DEV data structure, used to record \r
+  @param IdeDev         pointer pointing to IDE_BLK_IO_DEV data structure, used to record\r
                         all the information of the IDE device.\r
   @param DataBuffer     A pointer to the destination buffer for the data.\r
   @param Lba            The starting logical block address to read from on the device media.\r
   @param NumberOfBlocks The number of transfer data blocks.\r
-  \r
+\r
   @return status is fully dependent on the return status of AtaPioDataIn() function.\r
 \r
 **/\r
@@ -959,7 +959,7 @@ AtaReadSectors (
 }\r
 \r
 /**\r
-  This function is called by the AtaBlkIoWriteBlocks() to perform writing onto \r
+  This function is called by the AtaBlkIoWriteBlocks() to perform writing onto\r
   media in block unit.\r
 \r
   @param IdeDev         pointer pointing to IDE_BLK_IO_DEV data structure,used to record\r
@@ -967,7 +967,7 @@ AtaReadSectors (
   @param BufferData     A pointer to the source buffer for the data.\r
   @param Lba            The starting logical block address to write onto the device media.\r
   @param NumberOfBlocks The number of transfer data blocks.\r
-  \r
+\r
   @return status is fully dependent on the return status of AtaPioDataIn() function.\r
 \r
 **/\r
@@ -1055,7 +1055,7 @@ AtaWriteSectors (
 }\r
 /**\r
   This function is used to implement the Soft Reset on the specified device. But,\r
-  the ATA Soft Reset mechanism is so strong a reset method that it will force \r
+  the ATA Soft Reset mechanism is so strong a reset method that it will force\r
   resetting on both devices connected to the same cable.\r
 \r
   It is called by IdeBlkIoReset(), a interface function of Block\r
@@ -1120,7 +1120,7 @@ AtaSoftReset (
   return EFI_SUCCESS;\r
 }\r
 /**\r
-  This function is used to send out ATA commands conforms to the PIO Data In \r
+  This function is used to send out ATA commands conforms to the PIO Data In\r
   Protocol, supporting ATA/ATAPI-6 standard\r
 \r
   Comparing with ATA-3 data in protocol, we have two differents here:\r
@@ -1595,27 +1595,27 @@ DoAtaUdma (
   // Read BMIS register and clear ERROR and INTR bit\r
   //\r
   IdeDev->PciIo->Io.Read (\r
-                                         IdeDev->PciIo,\r
-                                         EfiPciIoWidthUint8,\r
-                                         EFI_PCI_IO_PASS_THROUGH_BAR,\r
-                                         IoPortForBmis,\r
-                                         1,\r
-                                         &RegisterValue\r
-                                         );\r
-  \r
+            IdeDev->PciIo,\r
+            EfiPciIoWidthUint8,\r
+            EFI_PCI_IO_PASS_THROUGH_BAR,\r
+            IoPortForBmis,\r
+            1,\r
+            &RegisterValue\r
+            );\r
+\r
   RegisterValue |= (BMIS_INTERRUPT | BMIS_ERROR);\r
-  \r
+\r
   IdeDev->PciIo->Io.Write (\r
-                                         IdeDev->PciIo,\r
-                                         EfiPciIoWidthUint8,\r
-                                         EFI_PCI_IO_PASS_THROUGH_BAR,\r
-                                         IoPortForBmis,\r
-                                         1,\r
-                                         &RegisterValue\r
-                                         );\r
+            IdeDev->PciIo,\r
+            EfiPciIoWidthUint8,\r
+            EFI_PCI_IO_PASS_THROUGH_BAR,\r
+            IoPortForBmis,\r
+            1,\r
+            &RegisterValue\r
+            );\r
 \r
   Status = EFI_SUCCESS;\r
-  \r
+\r
   RemainBlockNum = NumberOfBlocks;\r
   while (RemainBlockNum > 0) {\r
 \r
@@ -1813,8 +1813,8 @@ DoAtaUdma (
                           );\r
       if (((RegisterValue & (BMIS_INTERRUPT | BMIS_ERROR)) != 0) || (Count == 0)) {\r
         if (((RegisterValue & BMIS_ERROR) != 0) || (Count == 0)) {\r
-                 Status = EFI_DEVICE_ERROR;\r
-                 break;\r
+      Status = EFI_DEVICE_ERROR;\r
+      break;\r
         }\r
         break;\r
       }\r
@@ -1847,7 +1847,7 @@ DoAtaUdma (
                         1,\r
                         &RegisterValue\r
                         );\r
-       //\r
+  //\r
     // Read Status Register of IDE device to clear interrupt\r
     //\r
     RegisterValue = IDEReadPortB(IdeDev->PciIo,IdeDev->IoPort->Reg.Status);\r
@@ -1878,9 +1878,9 @@ DoAtaUdma (
       return EFI_DEVICE_ERROR;\r
     }\r
 \r
-       if (EFI_ERROR (Status)) {\r
-         break;\r
-       }\r
+  if (EFI_ERROR (Status)) {\r
+    break;\r
+  }\r
     DataBuffer = (UINT8 *) DataBuffer + NumberOfBlocks * IdeDev->BlkIo.Media->BlockSize;\r
     StartLba += NumberOfBlocks;\r
   }\r
@@ -1898,10 +1898,10 @@ DoAtaUdma (
 \r
 /**\r
   This function is called by the AtaBlkIoReadBlocks() to perform reading from\r
-  media in block unit. The function has been enhanced to support >120GB access \r
+  media in block unit. The function has been enhanced to support >120GB access\r
   and transfer at most 65536 blocks per command\r
 \r
-  @param IdeDev         pointer pointing to IDE_BLK_IO_DEV data structure, used to record \r
+  @param IdeDev         pointer pointing to IDE_BLK_IO_DEV data structure, used to record\r
                         all the information of the IDE device.\r
   @param DataBuffer     A pointer to the destination buffer for the data.\r
   @param StartLba       The starting logical block address to read from on the device media.\r
@@ -1930,7 +1930,7 @@ AtaUdmaReadExt (
   @param StartLba       The starting logical block address to read from\r
                         on the device media.\r
   @param NumberOfBlocks The number of transfer data blocks.\r
-  \r
+\r
   @return status depends on the function DoAtaUdma() returns.\r
 **/\r
 EFI_STATUS\r
@@ -2313,7 +2313,7 @@ AtaUdmaWriteExt (
 \r
 /**\r
   This function is called by the AtaBlkIoWriteBlocks() to perform\r
-  writing to media in block unit. \r
+  writing to media in block unit.\r
 \r
   @param IdeDev         pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                         to record all the information of the IDE device.\r
@@ -2321,7 +2321,7 @@ AtaUdmaWriteExt (
   @param StartLba       The starting logical block address to write to\r
                         on the device media.\r
   @param NumberOfBlocks The number of transfer data blocks.\r
-  \r
+\r
   @return status depends on the function DoAtaUdma() returns.\r
 **/\r
 EFI_STATUS\r
@@ -2342,7 +2342,7 @@ AtaUdmaWrite (
   @param IdeDev         pointer pointing to IDE_BLK_IO_DEV data structure,used\r
                         to record all the information of the IDE device.\r
   @param DataBuffer     A pointer to the source buffer for the data.\r
-  @param StartLba       The starting logical block address to write onto the device \r
+  @param StartLba       The starting logical block address to write onto the device\r
                         media.\r
   @param NumberOfBlocks The number of transfer data blocks.\r
 \r
@@ -2423,7 +2423,7 @@ AtaWriteSectorsExt (
   @param BufferSize      The size of the Buffer in bytes. This must be a multiple\r
                          of the intrinsic block size of the device.\r
   @param Buffer          A pointer to the source buffer for the data.The caller\r
-                         is responsible for either having implicit or explicit \r
+                         is responsible for either having implicit or explicit\r
                          ownership of the memory that data is written from.\r
 \r
   @retval EFI_SUCCESS       Write Blocks successfully.\r
index c641dc5714bcc5d678aa0d4ed9bb4e9fdfd39988..1900a76800f887d3948406516a7b7f08a98d28c2 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
-   This file contains all helper functions on the ATAPI command \r
-  \r
-  Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
+   This file contains all helper functions on the ATAPI command\r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -16,7 +16,7 @@
 \r
 /**\r
   This function is used to get the current status of the media residing\r
-  in the LS-120 drive or ZIP drive. The media status is returned in the \r
+  in the LS-120 drive or ZIP drive. The media status is returned in the\r
   Error Status.\r
 \r
   @param IdeDev   pointer pointing to IDE_BLK_IO_DEV data structure, used\r
@@ -28,8 +28,8 @@
   @retval EFI_NO_MEDIA        There is no media in the drive.\r
   @retval EFI_WRITE_PROTECTED The media is writing protected.\r
 \r
-  @note  This function must be called after the LS120EnableMediaStatus() \r
-         with second parameter set to TRUE \r
+  @note  This function must be called after the LS120EnableMediaStatus()\r
+         with second parameter set to TRUE\r
          (means enable media status notification) is called.\r
 **/\r
 EFI_STATUS\r
@@ -189,8 +189,8 @@ AtapiReadPendingData (
     while ((TempWordBuffer & (ATA_STSREG_BSY | ATA_STSREG_DRQ)) == ATA_STSREG_DRQ) {\r
       IDEReadPortWMultiple (\r
         IdeDev->PciIo,\r
-        IdeDev->IoPort->Data, \r
-        1, \r
+        IdeDev->IoPort->Data,\r
+        1,\r
         &TempWordBuffer\r
         );\r
       TempWordBuffer = IDEReadPortB (IdeDev->PciIo,IdeDev->IoPort->Alt.AltStatus);\r
@@ -200,7 +200,7 @@ AtapiReadPendingData (
 }\r
 \r
 /**\r
-  This function is called by either AtapiPacketCommandIn() or AtapiPacketCommandOut(). \r
+  This function is called by either AtapiPacketCommandIn() or AtapiPacketCommandOut().\r
   It is used to transfer data between host and device. The data direction is specified\r
   by the fourth parameter.\r
 \r
@@ -246,9 +246,9 @@ PioReadWriteData (
   }\r
   //\r
   // for performance, we assert the ByteCount is an even number\r
-  // which is actually a resonable assumption  \r
+  // which is actually a resonable assumption\r
   ASSERT((ByteCount%2) == 0);\r
-  \r
+\r
   PtrBuffer         = Buffer;\r
   RequiredWordCount = ByteCount / 2;\r
   //\r
@@ -257,7 +257,7 @@ PioReadWriteData (
   ActualWordCount = 0;\r
 \r
   while (ActualWordCount < RequiredWordCount) {\r
-    \r
+\r
     //\r
     // before each data transfer stream, the host should poll DRQ bit ready,\r
     // to see whether indicates device is ready to transfer data.\r
@@ -266,7 +266,7 @@ PioReadWriteData (
     if (EFI_ERROR (Status)) {\r
       return CheckErrorStatus (IdeDev);\r
     }\r
-    \r
+\r
     //\r
     // read Status Register will clear interrupt\r
     //\r
@@ -301,7 +301,7 @@ PioReadWriteData (
     PtrBuffer += WordCount;\r
     ActualWordCount += WordCount;\r
   }\r
-  \r
+\r
   if (Read) {\r
     //\r
     // In the case where the drive wants to send more data than we need to read,\r
@@ -326,17 +326,17 @@ PioReadWriteData (
 }\r
 \r
 /**\r
-  This function is used to send out ATAPI commands conforms to the Packet Command \r
+  This function is used to send out ATAPI commands conforms to the Packet Command\r
   with PIO Data In Protocol.\r
 \r
   @param IdeDev    pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                    to record all the information of the IDE device.\r
   @param Packet    pointer pointing to ATAPI_PACKET_COMMAND data structure\r
-                   which contains the contents of the command.     \r
+                   which contains the contents of the command.\r
   @param Buffer    buffer contained data transferred from device to host.\r
   @param ByteCount data size in byte unit of the buffer.\r
-  @param TimeOut   this parameter is used to specify the timeout value for the \r
-                   PioReadWriteData() function. \r
+  @param TimeOut   this parameter is used to specify the timeout value for the\r
+                   PioReadWriteData() function.\r
 \r
   @retval EFI_SUCCESS       send out the ATAPI packet command successfully\r
                             and device sends data successfully.\r
@@ -437,10 +437,10 @@ AtapiPacketCommandIn (
                      which contains the contents of the command.\r
   @param Buffer      buffer contained data transferred from host to device.\r
   @param ByteCount   data size in byte unit of the buffer.\r
-  @param TimeOut     this parameter is used to specify the timeout value \r
-                     for the PioReadWriteData() function. \r
+  @param TimeOut     this parameter is used to specify the timeout value\r
+                     for the PioReadWriteData() function.\r
   @retval EFI_SUCCESS      send out the ATAPI packet command successfully\r
-                           and device received data successfully.  \r
+                           and device received data successfully.\r
   @retval EFI_DEVICE_ERROR the device failed to send data.\r
 \r
 **/\r
@@ -465,7 +465,7 @@ AtapiPacketCommandOut (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // Select device via Device/Head Register.\r
   //\r
@@ -587,26 +587,26 @@ AtapiInquiry (
   to fill in the Media data structure of the Block I/O Protocol interface.\r
 \r
   There are 5 steps to reach such objective:\r
-  1. Sends out the ATAPI Identify Command to the specified device. \r
+  1. Sends out the ATAPI Identify Command to the specified device.\r
   Only ATAPI device responses to this command. If the command succeeds,\r
-  it returns the Identify data structure which filled with information \r
-  about the device. Since the ATAPI device contains removable media, \r
+  it returns the Identify data structure which filled with information\r
+  about the device. Since the ATAPI device contains removable media,\r
   the only meaningful information is the device module name.\r
   2. Sends out ATAPI Inquiry Packet Command to the specified device.\r
   This command will return inquiry data of the device, which contains\r
   the device type information.\r
   3. Allocate sense data space for future use. We don't detect the media\r
-  presence here to improvement boot performance, especially when CD \r
+  presence here to improvement boot performance, especially when CD\r
   media is present. The media detection will be performed just before\r
   each BLK_IO read/write\r
-  \r
+\r
   @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                  to record all the information of the IDE device.\r
 \r
   @retval EFI_SUCCESS       Identify ATAPI device successfully.\r
   @retval EFI_DEVICE_ERROR  ATAPI Identify Device Command failed or device type\r
                             is not supported by this IDE driver.\r
-  @retval EFI_OUT_OF_RESOURCES Allocate memory for sense data failed \r
+  @retval EFI_OUT_OF_RESOURCES Allocate memory for sense data failed\r
 \r
   @note   Parameter "IdeDev" will be updated in this function.\r
 **/\r
@@ -719,7 +719,7 @@ ATAPIIdentify (
   // WORM\r
   //\r
   case 0x04:\r
-  \r
+\r
   //\r
   // Optical\r
   //\r
@@ -758,13 +758,13 @@ ATAPIIdentify (
 }\r
 /**\r
   Sends out ATAPI Request Sense Packet Command to the specified device. This command\r
-  will return all the current Sense data in the device.  This function will pack \r
+  will return all the current Sense data in the device.  This function will pack\r
   all the Sense data in one single buffer.\r
 \r
   @param IdeDev       pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                       to record all the information of the IDE device.\r
   @param SenseCounts  allocated in this function, and freed by the calling function.\r
-                      This buffer is used to accommodate all the sense data returned \r
+                      This buffer is used to accommodate all the sense data returned\r
                       by the device.\r
 \r
   @retval EFI_SUCCESS      Request Sense command completes successfully.\r
@@ -850,7 +850,7 @@ AtapiRequestSense (
 }\r
 /**\r
   This function is used to parse sense data. Only the first sense data is honoured\r
-  \r
+\r
   @param IdeDev     Indicates the calling context.\r
   @param SenseCount Count of sense data.\r
   @param Result    The parsed result.\r
@@ -936,12 +936,12 @@ ParseSenseData (
 EFI_STATUS\r
 AtapiTestUnitReady (\r
   IN  IDE_BLK_IO_DEV  *IdeDev,\r
-  OUT SENSE_RESULT    *SResult  \r
+  OUT SENSE_RESULT    *SResult\r
   )\r
 {\r
   ATAPI_PACKET_COMMAND  Packet;\r
   EFI_STATUS            Status;\r
-  UINTN                                SenseCount;\r
+  UINTN         SenseCount;\r
 \r
   //\r
   // fill command packet\r
@@ -974,7 +974,7 @@ AtapiTestUnitReady (
 \r
   Current device status will impact device's response to the Read Capacity\r
   Command. For example, if the device once reset, the Read Capacity\r
-  Command will fail. The Sense data record the current device status, so \r
+  Command will fail. The Sense data record the current device status, so\r
   if the Read Capacity Command failed, the Sense data must be requested\r
   and be analyzed to determine if the Read Capacity Command should retry.\r
 \r
@@ -988,12 +988,12 @@ AtapiTestUnitReady (
 \r
   @note Parameter "IdeDev" will be updated in this function.\r
 \r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 AtapiReadCapacity (\r
   IN  IDE_BLK_IO_DEV  *IdeDev,\r
-  OUT SENSE_RESULT       *SResult  \r
+  OUT SENSE_RESULT    *SResult\r
   )\r
 {\r
   //\r
@@ -1002,7 +1002,7 @@ AtapiReadCapacity (
   EFI_STATUS                Status;\r
   EFI_STATUS                SenseStatus;\r
   ATAPI_PACKET_COMMAND      Packet;\r
-  UINTN                                        SenseCount;\r
+  UINTN           SenseCount;\r
 \r
   //\r
   // used for capacity data returned from ATAPI device\r
@@ -1048,9 +1048,9 @@ AtapiReadCapacity (
   SenseStatus = AtapiRequestSense (IdeDev, &SenseCount);\r
 \r
   if (!EFI_ERROR (SenseStatus)) {\r
-       ParseSenseData (IdeDev, SenseCount, SResult);                    \r
-                                                                                                                        \r
-       if (!EFI_ERROR (Status) && *SResult == SenseNoSenseKey) {\r
+  ParseSenseData (IdeDev, SenseCount, SResult);\r
+\r
+  if (!EFI_ERROR (Status) && *SResult == SenseNoSenseKey) {\r
       if (IdeDev->Type == IdeCdRom) {\r
 \r
         IdeDev->BlkIo.Media->LastBlock = ((UINT32) Data.LastLba3 << 24) |\r
@@ -1058,7 +1058,7 @@ AtapiReadCapacity (
           (Data.LastLba1 << 8) |\r
           Data.LastLba0;\r
 \r
-             IdeDev->BlkIo.Media->MediaPresent = TRUE;\r
+        IdeDev->BlkIo.Media->MediaPresent = TRUE;\r
 \r
         IdeDev->BlkIo.Media->ReadOnly = TRUE;\r
 \r
@@ -1077,7 +1077,7 @@ AtapiReadCapacity (
         } else {\r
 \r
           IdeDev->BlkIo.Media->LastBlock = ((UINT32) FormatData.LastLba3 << 24) |\r
-            (FormatData.LastLba2 << 16) | \r
+            (FormatData.LastLba2 << 16) |\r
             (FormatData.LastLba1 << 8)  |\r
             FormatData.LastLba0;\r
           if (IdeDev->BlkIo.Media->LastBlock != 0) {\r
@@ -1110,7 +1110,7 @@ AtapiReadCapacity (
 }\r
 /**\r
   This function is used to test the current media write-protected or not residing\r
-  in the LS-120 drive or ZIP drive. \r
+  in the LS-120 drive or ZIP drive.\r
   @param IdeDev          pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                          to record all the information of the IDE device.\r
   @param WriteProtected  if True, current media is write protected.\r
@@ -1159,8 +1159,8 @@ IsLS120orZipWriteProtected (
 }\r
 \r
 /**\r
-  Used before read/write blocks from/to ATAPI device media. Since ATAPI device \r
-  media is removable, it is necessary to detect whether media is present and \r
+  Used before read/write blocks from/to ATAPI device media. Since ATAPI device\r
+  media is removable, it is necessary to detect whether media is present and\r
   get current present media's information, and if media has been changed, Block\r
   I/O Protocol need to be reinstalled.\r
 \r
@@ -1409,17 +1409,17 @@ AtapiDetectMedia (
   This function is called by the AtapiBlkIoReadBlocks() to perform\r
   read from media in block unit.\r
 \r
-  The main command used to access media here is READ(10) Command. \r
-  READ(10) Command requests that the ATAPI device media transfer \r
-  specified data to the host. Data is transferred in block(sector) \r
+  The main command used to access media here is READ(10) Command.\r
+  READ(10) Command requests that the ATAPI device media transfer\r
+  specified data to the host. Data is transferred in block(sector)\r
   unit. The maximum number of blocks that can be transferred once is\r
-  65536. This is the main difference between READ(10) and READ(12) \r
+  65536. This is the main difference between READ(10) and READ(12)\r
   Command. The maximum number of blocks in READ(12) is 2 power 32.\r
 \r
   @param IdeDev           pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                           to record all the information of the IDE device.\r
-  @param Buffer           A pointer to the destination buffer for the data. \r
-  @param Lba              The starting logical block address to read from on the \r
+  @param Buffer           A pointer to the destination buffer for the data.\r
+  @param Lba              The starting logical block address to read from on the\r
                           device media.\r
   @param NumberOfBlocks   The number of transfer data blocks.\r
 \r
@@ -1527,19 +1527,19 @@ AtapiReadSectors (
 /**\r
   This function is called by the AtapiBlkIoWriteBlocks() to perform\r
   write onto media in block unit.\r
-  The main command used to access media here is Write(10) Command. \r
-  Write(10) Command requests that the ATAPI device media transfer \r
-  specified data to the host. Data is transferred in block (sector) \r
+  The main command used to access media here is Write(10) Command.\r
+  Write(10) Command requests that the ATAPI device media transfer\r
+  specified data to the host. Data is transferred in block (sector)\r
   unit. The maximum number of blocks that can be transferred once is\r
-  65536. \r
+  65536.\r
 \r
   @param IdeDev          pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                          to record all the information of the IDE device.\r
-  @param Buffer          A pointer to the source buffer for the data. \r
-  @param Lba             The starting logical block address to write onto \r
+  @param Buffer          A pointer to the source buffer for the data.\r
+  @param Lba             The starting logical block address to write onto\r
                          the device media.\r
   @param NumberOfBlocks  The number of transfer data blocks.\r
-  \r
+\r
   @return status is fully dependent on the return status of AtapiPacketCommandOut() function.\r
 \r
 **/\r
@@ -1594,7 +1594,7 @@ AtapiWriteSectors (
     } else {\r
       SectorCount = (UINT16) BlocksRemaining;\r
     }\r
-  \r
+\r
     //\r
     // Command code is WRITE_10.\r
     //\r
@@ -1645,7 +1645,7 @@ AtapiWriteSectors (
   condition (such as BSY bit is always set ), I think the Soft Reset\r
   command should be sent without waiting for the BSY clear and DRDY\r
   set.\r
-  This function is called by IdeBlkIoReset(), \r
+  This function is called by IdeBlkIoReset(),\r
   a interface function of Block I/O protocol.\r
 \r
   @param IdeDev    pointer pointing to IDE_BLK_IO_DEV data structure, used\r
@@ -1683,7 +1683,7 @@ AtapiSoftReset (
   if (EFI_ERROR (Status)) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
-  \r
+\r
   //\r
   // stall 5 seconds to make the device status stable\r
   //\r
@@ -1702,9 +1702,9 @@ AtapiSoftReset (
   @param BufferSize     The size of the Buffer in bytes. This must be a multiple\r
                         of the intrinsic block size of the device.\r
   @param Buffer         A pointer to the destination buffer for the data. The caller\r
-                        is responsible for either having implicit or explicit \r
+                        is responsible for either having implicit or explicit\r
                         ownership of the memory that data is read into.\r
-  \r
+\r
   @retval EFI_SUCCESS           Read Blocks successfully.\r
   @retval EFI_DEVICE_ERROR      Read Blocks failed.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
@@ -1804,11 +1804,11 @@ AtapiBlkIoReadBlocks (
   if (EFI_ERROR (Status)) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
-  \r
+\r
   //\r
   // Read blocks succeeded\r
   //\r
-  \r
+\r
   //\r
   // save the first block to the cache for performance\r
   //\r
@@ -1840,8 +1840,8 @@ AtapiBlkIoReadBlocks (
   @retval EFI_NO_MEDIA           There is no media in the device.\r
   @retval EFI_MEDIA_CHANGE       The MediaId is not for the current media.\r
   @retval EFI_BAD_BUFFER_SIZE    The BufferSize parameter is not a multiple of the\r
-                                 intrinsic block size of the device.  \r
-  @retval EFI_INVALID_PARAMETER  The write request contains LBAs that are not valid, \r
+                                 intrinsic block size of the device.\r
+  @retval EFI_INVALID_PARAMETER  The write request contains LBAs that are not valid,\r
                                  or the data buffer is not valid.\r
 \r
   @retval EFI_WRITE_PROTECTED    The write protected is enabled or the media does not support write\r
@@ -1889,7 +1889,7 @@ AtapiBlkIoWriteBlocks (
     }\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // Get the intrinsic block size\r
   //\r
index 5e376d72d72f576b442a9207f5be69d0227107a0..960c1bf5f4d7c3fc36281adf49a2655cb8b0e18c 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   UEFI Component Name(2) protocol implementation for ConPlatform driver.\r
-  \r
-  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
index 9a911a5ec966c5e3d0aa6001681ecec7055c7351..c5bd0432e8547eed25c4b97e0106c67c481b9ddb 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
-  \r
+\r
   UEFI Component Name(2) protocol implementation header file for IDE Bus driver.\r
-  \r
-  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
index 999e20e016ebde332188e877a7973ed4698d6ac2..3a5d3c6f6b8783eea2b994871e822f1d60643ba8 100644 (file)
@@ -1,15 +1,15 @@
 /** @file\r
-  Implementation of UEFI Driver Configuration Protocol for IDE bus driver which \r
+  Implementation of UEFI Driver Configuration Protocol for IDE bus driver which\r
   provides ability to set IDE bus controller specific options.\r
-  \r
-  Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -80,7 +80,7 @@ GetResponse (
 }\r
 \r
 /**\r
-  Allows the user to set controller specific options for a controller that a \r
+  Allows the user to set controller specific options for a controller that a\r
   driver is currently managing.\r
 \r
   @param  This              A pointer to the EFI_DRIVER_CONFIGURATION_ PROTOCOL instance.\r
@@ -91,26 +91,26 @@ GetResponse (
                             that wish to set options for the bus controller.\r
                             It will not be NULL for a bus driver that wishes to set\r
                             options for one of its child controllers.\r
-  @param  Language          A pointer to a three character ISO 639-2 language identifier. \r
-                            This is the language of the user interface that should be presented \r
-                            to the user, and it must match one of the languages specified in \r
+  @param  Language          A pointer to a three character ISO 639-2 language identifier.\r
+                            This is the language of the user interface that should be presented\r
+                            to the user, and it must match one of the languages specified in\r
                             SupportedLanguages. The number of languages supported by a driver is up to\r
                             the driver writer.\r
-  @param  ActionRequired    A pointer to the action that the calling agent is required \r
+  @param  ActionRequired    A pointer to the action that the calling agent is required\r
                             to perform when this function returns.\r
-  \r
 \r
-  @retval  EFI_SUCCESS           The driver specified by This successfully set the configuration \r
+\r
+  @retval  EFI_SUCCESS           The driver specified by This successfully set the configuration\r
                                  options for the controller specified by ControllerHandle..\r
   @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
   @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
   @retval  EFI_INVALID_PARAMETER ActionRequired is NULL.\r
-  @retval  EFI_UNSUPPORTED       The driver specified by This does not support setting configuration options for \r
+  @retval  EFI_UNSUPPORTED       The driver specified by This does not support setting configuration options for\r
                                  the controller specified by ControllerHandle and ChildHandle.\r
   @retval  EFI_UNSUPPORTED       The driver specified by This does not support the language specified by Language.\r
-  @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to set the configuration options for the \r
+  @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to set the configuration options for the\r
                                  controller specified by ControllerHandle and ChildHandle.\r
-  @retval  EFI_OUT_RESOURCES     There are not enough resources available to set the configuration options for the \r
+  @retval  EFI_OUT_RESOURCES     There are not enough resources available to set the configuration options for the\r
                                  controller specified by ControllerHandle and ChildHandle\r
 **/\r
 EFI_STATUS\r
@@ -182,20 +182,20 @@ IDEBusDriverConfigurationSetOptions (
   Tests to see if a controller's current configuration options are valid.\r
 \r
   @param  This             A pointer to the EFI_DRIVER_CONFIGURATION_PROTOCOL instance.\r
-  @param  ControllerHandle The handle of the controller to test if it's current configuration options \r
+  @param  ControllerHandle The handle of the controller to test if it's current configuration options\r
                            are valid.\r
-  @param  ChildHandle      The handle of the child controller to test if it's current configuration \r
-                           options are valid.  This is an optional parameter that may be NULL. It will \r
+  @param  ChildHandle      The handle of the child controller to test if it's current configuration\r
+                           options are valid.  This is an optional parameter that may be NULL. It will\r
                            be NULL for device drivers.  It will also be NULL for a bus drivers that\r
-                           wish to test the configuration options for the bus controller. It will \r
-                           not be NULL for a bus driver that wishes to test configuration options for \r
+                           wish to test the configuration options for the bus controller. It will\r
+                           not be NULL for a bus driver that wishes to test configuration options for\r
                            one of its child controllers.\r
   @retval  EFI_SUCCESS           The controller specified by ControllerHandle and ChildHandle that is being\r
                                  managed by the driver specified by This has a valid set of  configuration\r
                                  options.\r
   @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
   @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
-  @retval  EFI_UNSUPPORTED       The driver specified by This is not currently  managing the controller \r
+  @retval  EFI_UNSUPPORTED       The driver specified by This is not currently  managing the controller\r
                                  specified by ControllerHandle and ChildHandle.\r
   @retval  EFI_DEVICE_ERROR      The controller specified by ControllerHandle and ChildHandle that is being\r
                                  managed by the driver specified by This has an invalid set of configuration\r
@@ -236,31 +236,31 @@ IDEBusDriverConfigurationOptionsValid (
 \r
   @param  This             A pointer to the EFI_DRIVER_CONFIGURATION_ PROTOCOL instance.\r
   @param  ControllerHandle The handle of the controller to force default configuration options on.\r
-  @param  ChildHandle      The handle of the child controller to force default configuration \r
-                           options on  This is an optional parameter that may be NULL.  It \r
-                           will be NULL for device drivers. It will also be NULL for a bus \r
+  @param  ChildHandle      The handle of the child controller to force default configuration\r
+                           options on  This is an optional parameter that may be NULL.  It\r
+                           will be NULL for device drivers. It will also be NULL for a bus\r
                            drivers that wish to force default configuration options for the bus\r
                            controller.  It will not be NULL for a bus driver that wishes to force\r
                            default configuration options for one of its child controllers.\r
-  @param  DefaultType      The type of default configuration options to force on the controller \r
-                           specified by ControllerHandle and ChildHandle. \r
-  @param  ActionRequired   A pointer to the action that the calling agent is required to perform \r
+  @param  DefaultType      The type of default configuration options to force on the controller\r
+                           specified by ControllerHandle and ChildHandle.\r
+  @param  ActionRequired   A pointer to the action that the calling agent is required to perform\r
                            when this function returns.\r
 \r
-  @retval  EFI_SUCCESS           The driver specified by This successfully forced the \r
-                                 default configuration options on the controller specified by \r
+  @retval  EFI_SUCCESS           The driver specified by This successfully forced the\r
+                                 default configuration options on the controller specified by\r
                                  ControllerHandle and ChildHandle.\r
   @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
   @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
   @retval  EFI_INVALID_PARAMETER ActionRequired is NULL.\r
-  @retval  EFI_UNSUPPORTED       The driver specified by This does not support forcing the default \r
+  @retval  EFI_UNSUPPORTED       The driver specified by This does not support forcing the default\r
                                  configuration options on the controller specified by ControllerHandle\r
                                  and ChildHandle.\r
-  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the configuration type \r
+  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the configuration type\r
                                  specified by DefaultType.\r
-  @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to force the default configuration \r
+  @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to force the default configuration\r
                                  options on the controller specified by  ControllerHandle and ChildHandle.\r
-  @retval  EFI_OUT_RESOURCES     There are not enough resources available to force the default configuration \r
+  @retval  EFI_OUT_RESOURCES     There are not enough resources available to force the default configuration\r
                                  options on the controller specified by ControllerHandle and ChildHandle.\r
 **/\r
 EFI_STATUS\r
index 73435dd7ac13fedf136b1f1e3bdaf481b42fe60e..497551eabaea1456dd9b1fed94e67b610d013842 100644 (file)
@@ -1,15 +1,15 @@
 /** @file\r
   Implementation of UEFI driver Dialnostics protocol which to perform diagnostic on the IDE\r
   Bus controller.\r
-  \r
-  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -42,24 +42,24 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_DRIVER_DIAGNOSTICS2_PROTOCOL gIDEBusDriverDiag
   @param  ChildHandle      The handle of the child controller to run diagnostics on\r
                            This is an optional parameter that may be NULL.  It will\r
                            be NULL for device drivers.  It will also be NULL for a\r
-                           bus drivers that wish to run diagnostics on the bus controller. \r
-                           It will not be NULL for a bus driver that wishes to run \r
+                           bus drivers that wish to run diagnostics on the bus controller.\r
+                           It will not be NULL for a bus driver that wishes to run\r
                            diagnostics on one of its child controllers.\r
   @param  DiagnosticType   Indicates type of diagnostics to perform on the controller\r
                            specified by ControllerHandle and ChildHandle.\r
-  @param  Language         A pointer to a three character ISO 639-2 language identifier. \r
-                           This is the language in which the optional error message should \r
-                           be returned in Buffer, and it must match one of the languages \r
+  @param  Language         A pointer to a three character ISO 639-2 language identifier.\r
+                           This is the language in which the optional error message should\r
+                           be returned in Buffer, and it must match one of the languages\r
                            specified in SupportedLanguages. The number of languages supported by\r
                            a driver is up to the driver writer.\r
   @param  ErrorType        A GUID that defines the format of the data returned in Buffer.\r
   @param  BufferSize       The size, in bytes, of the data returned in Buffer.\r
   @param  Buffer           A buffer that contains a Null-terminated Unicode string\r
-                           plus some additional data whose format is defined by ErrorType.  \r
-                           Buffer is allocated by this function with AllocatePool(), and \r
+                           plus some additional data whose format is defined by ErrorType.\r
+                           Buffer is allocated by this function with AllocatePool(), and\r
                            it is the caller's responsibility to free it with a call to FreePool().\r
 \r
-  @retval  EFI_SUCCESS           The controller specified by ControllerHandle and ChildHandle passed \r
+  @retval  EFI_SUCCESS           The controller specified by ControllerHandle and ChildHandle passed\r
                                  the diagnostic.\r
   @retval  EFI_INVALID_PARAMETER ControllerHandle is NULL.\r
   @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
@@ -67,18 +67,18 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_DRIVER_DIAGNOSTICS2_PROTOCOL gIDEBusDriverDiag
   @retval  EFI_INVALID_PARAMETER ErrorType is NULL.\r
   @retval  EFI_INVALID_PARAMETER BufferType is NULL.\r
   @retval  EFI_INVALID_PARAMETER Buffer is NULL.\r
-  @retval  EFI_UNSUPPORTED       The driver specified by This does not support running \r
-                                 diagnostics for the controller specified by ControllerHandle \r
+  @retval  EFI_UNSUPPORTED       The driver specified by This does not support running\r
+                                 diagnostics for the controller specified by ControllerHandle\r
                                  and ChildHandle.\r
   @retval  EFI_UNSUPPORTED       The driver specified by This does not support the\r
                                  type of diagnostic specified by DiagnosticType.\r
-  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the language \r
+  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the language\r
                                  specified by Language.\r
-  @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to complete the \r
+  @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to complete the\r
                                  diagnostics.\r
-  @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to return the \r
+  @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to return the\r
                                  status information in ErrorType, BufferSize,and Buffer.\r
-  @retval  EFI_DEVICE_ERROR      The controller specified by ControllerHandle and ChildHandle \r
+  @retval  EFI_DEVICE_ERROR      The controller specified by ControllerHandle and ChildHandle\r
                                  did not pass the diagnostic.\r
 **/\r
 EFI_STATUS\r
index ffc818036ae4db17f982ea48c41de6a766a83849..539c961d8edbd43f99f4b746e2e3dc2d3c6b354a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The file ontaining the helper functions implement of the Ide Bus driver\r
-  \r
-  Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -24,7 +24,7 @@ UINT8   MasterDeviceType      = INVALID_DEVICE_TYPE;
   read a one-byte data from a IDE port.\r
 \r
   @param  PciIo  The PCI IO protocol instance\r
-  @param  Port   the IDE Port number \r
+  @param  Port   the IDE Port number\r
 \r
   @return  the one-byte data read from IDE port\r
 **/\r
@@ -270,7 +270,7 @@ IDEWritePortWMultiple (
   @param  PciIo Pointer to the EFI_PCI_IO_PROTOCOL instance\r
   @param  IdeRegsBaseAddr Pointer to IDE_REGISTERS_BASE_ADDR to\r
            receive IDE IO port registers' base addresses\r
-           \r
+\r
   @retval EFI_UNSUPPORTED return this value when the BARs is not IO type\r
   @retval EFI_SUCCESS     Get the Base address successfully\r
   @retval other           read the pci configureation data error\r
@@ -351,7 +351,7 @@ GetIdeRegistersBaseAddr (
   succeess.\r
 \r
   @param  IdeDev The BLK_IO private data which specifies the IDE device\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER return this value when the channel is invalid\r
   @retval EFI_SUCCESS           reassign the IDE IO resource successfully\r
   @retval other                 get the IDE current base address effor\r
@@ -370,7 +370,7 @@ ReassignIdeResources (
   if (IdeDev->Channel >= IdeMaxChannel) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // Requery IDE IO port registers' base addresses in case of the switch of\r
   // native and legacy modes\r
@@ -593,7 +593,7 @@ DetectIDEController (
   Detect if there is disk attached to this port\r
 \r
   @param  IdeDev The BLK_IO private data which specifies the IDE device.\r
-  \r
+\r
   @retval EFI_NOT_FOUND   The device or channel is not found\r
   @retval EFI_SUCCESS     The device is found\r
 \r
@@ -715,7 +715,7 @@ InitializeIDEChannelData (
   Register. DRQ is cleared when the device is finished transferring data.\r
   So this function is called after data transfer is finished.\r
 \r
-  @param IdeDev                 pointer pointing to IDE_BLK_IO_DEV data structure, used \r
+  @param IdeDev                 pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                                 to record all the information of the IDE device.\r
   @param TimeoutInMilliSeconds  used to designate the timeout for the DRQ clear.\r
 \r
@@ -778,7 +778,7 @@ DRQClear (
   transferring data. So this function is called after data transfer\r
   is finished.\r
 \r
-  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used \r
+  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                                to record all the information of the IDE device.\r
 \r
   @param TimeoutInMilliSeconds used to designate the timeout for the DRQ clear.\r
@@ -901,10 +901,10 @@ DRQReady (
 }\r
 /**\r
   This function is used to poll for the DRQ bit set in the Alternate Status Register.\r
-  DRQ is set when the device is ready to transfer data. So this function is called after \r
+  DRQ is set when the device is ready to transfer data. So this function is called after\r
   the command is sent to the device and before required data is transferred.\r
 \r
-  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used to \r
+  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used to\r
                                record all the information of the IDE device.\r
 \r
   @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.\r
@@ -966,7 +966,7 @@ DRQReady2 (
   This function is used to poll for the BSY bit clear in the Status Register. BSY\r
   is clear when the device is not busy. Every command must be sent after device is not busy.\r
 \r
-  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used \r
+  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                                to record all the information of the IDE device.\r
   @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.\r
 \r
@@ -1008,11 +1008,11 @@ WaitForBSYClear (
   return EFI_SUCCESS;\r
 }\r
 /**\r
-  This function is used to poll for the BSY bit clear in the Alternate Status Register. \r
-  BSY is clear when the device is not busy. Every command must be sent after device is \r
+  This function is used to poll for the BSY bit clear in the Alternate Status Register.\r
+  BSY is clear when the device is not busy. Every command must be sent after device is\r
   not busy.\r
 \r
-  @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used to record \r
+  @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used to record\r
                               all the information of the IDE device.\r
   @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.\r
 \r
@@ -1051,7 +1051,7 @@ WaitForBSYClear2 (
 }\r
 /**\r
   This function is used to poll for the DRDY bit set in the Status Register. DRDY\r
-  bit is set when the device is ready to accept command. Most ATA commands must be \r
+  bit is set when the device is ready to accept command. Most ATA commands must be\r
   sent after DRDY set except the ATAPI Packet Command.\r
 \r
   @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used\r
@@ -1103,8 +1103,8 @@ DRDYReady (
   return EFI_SUCCESS;\r
 }\r
 /**\r
-  This function is used to poll for the DRDY bit set in the Alternate Status Register. \r
-  DRDY bit is set when the device is ready to accept command. Most ATA commands must \r
+  This function is used to poll for the DRDY bit set in the Alternate Status Register.\r
+  DRDY bit is set when the device is ready to accept command. Most ATA commands must\r
   be sent after DRDY set except the ATAPI Packet Command.\r
 \r
   @param IdeDev              pointer pointing to IDE_BLK_IO_DEV data structure, used\r
index 2b7e6ea5eb981f112d9598db9bccd09b58a1da75..0fe6c6d502429834f19339a3146825ea408d4c9f 100644 (file)
@@ -2,7 +2,7 @@
   Header file for IDE Bus Driver, containing the helper functions'\r
   prototype.\r
 \r
-  Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -28,7 +28,7 @@
   read a one-byte data from a IDE port.\r
 \r
   @param  PciIo  The PCI IO protocol instance\r
-  @param  Port   the IDE Port number \r
+  @param  Port   the IDE Port number\r
 \r
   return  the one-byte data read from IDE port\r
 **/\r
@@ -153,7 +153,7 @@ IDEWritePortWMultiple (
   @param  PciIo Pointer to the EFI_PCI_IO_PROTOCOL instance\r
   @param  IdeRegsBaseAddr Pointer to IDE_REGISTERS_BASE_ADDR to\r
           receive IDE IO port registers' base addresses\r
-  \r
+\r
   @retval EFI_UNSUPPORTED return this value when the BARs is not IO type\r
   @retval EFI_SUCCESS     Get the Base address successfully\r
   @retval other           read the pci configureation data error\r
@@ -187,7 +187,7 @@ ReassignIdeResources (
   Detect if there is disk attached to this port.\r
 \r
   @param  IdeDev The BLK_IO private data which specifies the IDE device.\r
-  \r
+\r
   @retval EFI_NOT_FOUND   The device or channel is not found\r
   @retval EFI_SUCCESS     The device is found\r
 \r
@@ -212,7 +212,7 @@ InitializeIDEChannelData (
   Register. DRQ is cleared when the device is finished transferring data.\r
   So this function is called after data transfer is finished.\r
 \r
-  @param IdeDev                 pointer pointing to IDE_BLK_IO_DEV data structure, used \r
+  @param IdeDev                 pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                                 to record all the information of the IDE device.\r
   @param TimeoutInMilliSeconds  used to designate the timeout for the DRQ clear.\r
 \r
@@ -236,7 +236,7 @@ DRQClear (
   transferring data. So this function is called after data transfer\r
   is finished.\r
 \r
-  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used \r
+  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                                to record all the information of the IDE device.\r
 \r
   @param TimeoutInMilliSeconds used to designate the timeout for the DRQ clear.\r
@@ -280,10 +280,10 @@ DRQReady (
 \r
 /**\r
   This function is used to poll for the DRQ bit set in the Alternate Status Register.\r
-  DRQ is set when the device is ready to transfer data. So this function is called after \r
+  DRQ is set when the device is ready to transfer data. So this function is called after\r
   the command is sent to the device and before required data is transferred.\r
 \r
-  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used to \r
+  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used to\r
                                record all the information of the IDE device.\r
 \r
   @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.\r
@@ -304,7 +304,7 @@ DRQReady2 (
   This function is used to poll for the BSY bit clear in the Status Register. BSY\r
   is clear when the device is not busy. Every command must be sent after device is not busy.\r
 \r
-  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used \r
+  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                                to record all the information of the IDE device.\r
   @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.\r
 \r
@@ -320,11 +320,11 @@ WaitForBSYClear (
   );\r
 \r
 /**\r
-  This function is used to poll for the BSY bit clear in the Alternate Status Register. \r
-  BSY is clear when the device is not busy. Every command must be sent after device is \r
+  This function is used to poll for the BSY bit clear in the Alternate Status Register.\r
+  BSY is clear when the device is not busy. Every command must be sent after device is\r
   not busy.\r
 \r
-  @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used to record \r
+  @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used to record\r
                               all the information of the IDE device.\r
   @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.\r
 \r
@@ -341,7 +341,7 @@ WaitForBSYClear2 (
 \r
 /**\r
   This function is used to poll for the DRDY bit set in the Status Register. DRDY\r
-  bit is set when the device is ready to accept command. Most ATA commands must be \r
+  bit is set when the device is ready to accept command. Most ATA commands must be\r
   sent after DRDY set except the ATAPI Packet Command.\r
 \r
   @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used\r
@@ -360,8 +360,8 @@ DRDYReady (
   );\r
 \r
 /**\r
-  This function is used to poll for the DRDY bit set in the Alternate Status Register. \r
-  DRDY bit is set when the device is ready to accept command. Most ATA commands must \r
+  This function is used to poll for the DRDY bit set in the Alternate Status Register.\r
+  DRDY bit is set when the device is ready to accept command. Most ATA commands must\r
   be sent after DRDY set except the ATAPI Packet Command.\r
 \r
   @param IdeDev              pointer pointing to IDE_BLK_IO_DEV data structure, used\r
@@ -394,7 +394,7 @@ DRDYReady2 (
   information it needs to fill the IDE_BLK_IO_DEV data structure,\r
   including device type, media block size, media capacity, and etc.\r
 \r
-  @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure,used to record \r
+  @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure,used to record\r
                  all the information of the IDE device.\r
 \r
   @retval EFI_SUCCESS      Identify ATA device successfully.\r
@@ -420,7 +420,7 @@ PrintAtaModuleName (
 /**\r
   This function is used to send out ATA commands conforms to the PIO Data In Protocol.\r
 \r
-  @param IdeDev       pointer pointing to IDE_BLK_IO_DEV data structure, used to record \r
+  @param IdeDev       pointer pointing to IDE_BLK_IO_DEV data structure, used to record\r
                       all the information of the IDE device.\r
   @param Buffer       buffer contained data transferred from device to host.\r
   @param ByteCount    data size in byte unit of the buffer.\r
@@ -430,7 +430,7 @@ PrintAtaModuleName (
   @param SectorNumber value of the Sector Number Register\r
   @param CylinderLsb  value of the low byte of the Cylinder Register\r
   @param CylinderMsb  value of the high byte of the Cylinder Register\r
-  \r
+\r
   @retval EFI_SUCCESS      send out the ATA command and device send required data successfully.\r
   @retval EFI_DEVICE_ERROR command sent failed.\r
 \r
@@ -486,7 +486,7 @@ AtaPioDataOut (
   some debug information and if there is ERR bit set in the Status\r
   Register, the Error Register's value is also be parsed and print out.\r
 \r
-  @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure, used to \r
+  @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure, used to\r
                  record all the information of the IDE device.\r
 \r
   @retval EFI_SUCCESS       No err information in the Status Register.\r
@@ -500,7 +500,7 @@ CheckErrorStatus (
 \r
 /**\r
   This function is used to implement the Soft Reset on the specified device. But,\r
-  the ATA Soft Reset mechanism is so strong a reset method that it will force \r
+  the ATA Soft Reset mechanism is so strong a reset method that it will force\r
   resetting on both devices connected to the same cable.\r
 \r
   It is called by IdeBlkIoReset(), a interface function of Block\r
@@ -568,7 +568,7 @@ AtaBlkIoReadBlocks (
   @param BufferSize      The size of the Buffer in bytes. This must be a multiple\r
                          of the intrinsic block size of the device.\r
   @param Buffer          A pointer to the source buffer for the data.The caller\r
-                         is responsible for either having implicit or explicit \r
+                         is responsible for either having implicit or explicit\r
                          ownership of the memory that data is written from.\r
 \r
   @retval EFI_SUCCESS       Write Blocks successfully.\r
@@ -600,26 +600,26 @@ AtaBlkIoWriteBlocks (
   to fill in the Media data structure of the Block I/O Protocol interface.\r
 \r
   There are 5 steps to reach such objective:\r
-  1. Sends out the ATAPI Identify Command to the specified device. \r
+  1. Sends out the ATAPI Identify Command to the specified device.\r
   Only ATAPI device responses to this command. If the command succeeds,\r
-  it returns the Identify data structure which filled with information \r
-  about the device. Since the ATAPI device contains removable media, \r
+  it returns the Identify data structure which filled with information\r
+  about the device. Since the ATAPI device contains removable media,\r
   the only meaningful information is the device module name.\r
   2. Sends out ATAPI Inquiry Packet Command to the specified device.\r
   This command will return inquiry data of the device, which contains\r
   the device type information.\r
   3. Allocate sense data space for future use. We don't detect the media\r
-  presence here to improvement boot performance, especially when CD \r
+  presence here to improvement boot performance, especially when CD\r
   media is present. The media detection will be performed just before\r
   each BLK_IO read/write\r
-  \r
+\r
   @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                  to record all the information of the IDE device.\r
 \r
   @retval EFI_SUCCESS       Identify ATAPI device successfully.\r
   @retval EFI_DEVICE_ERROR  ATAPI Identify Device Command failed or device type\r
                             is not supported by this IDE driver.\r
-  @retval EFI_OUT_OF_RESOURCES Allocate memory for sense data failed \r
+  @retval EFI_OUT_OF_RESOURCES Allocate memory for sense data failed\r
 \r
   @note   Parameter "IdeDev" will be updated in this function.\r
 **/\r
@@ -637,7 +637,7 @@ ATAPIIdentify (
   condition (such as BSY bit is always set ), I think the Soft Reset\r
   command should be sent without waiting for the BSY clear and DRDY\r
   set.\r
-  This function is called by IdeBlkIoReset(), \r
+  This function is called by IdeBlkIoReset(),\r
   a interface function of Block I/O protocol.\r
 \r
   @param IdeDev    pointer pointing to IDE_BLK_IO_DEV data structure, used\r
@@ -662,9 +662,9 @@ AtapiSoftReset (
   @param BufferSize     The size of the Buffer in bytes. This must be a multiple\r
                         of the intrinsic block size of the device.\r
   @param Buffer         A pointer to the destination buffer for the data. The caller\r
-                        is responsible for either having implicit or explicit \r
+                        is responsible for either having implicit or explicit\r
                         ownership of the memory that data is read into.\r
-  \r
+\r
   @retval EFI_SUCCESS           Read Blocks successfully.\r
   @retval EFI_DEVICE_ERROR      Read Blocks failed.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
@@ -701,8 +701,8 @@ AtapiBlkIoReadBlocks (
   @retval EFI_NO_MEDIA           There is no media in the device.\r
   @retval EFI_MEDIA_CHANGE       The MediaId is not for the current media.\r
   @retval EFI_BAD_BUFFER_SIZE    The BufferSize parameter is not a multiple of the\r
-                                 intrinsic block size of the device.  \r
-  @retval EFI_INVALID_PARAMETER  The write request contains LBAs that are not valid, \r
+                                 intrinsic block size of the device.\r
+  @retval EFI_INVALID_PARAMETER  The write request contains LBAs that are not valid,\r
                                  or the data buffer is not valid.\r
 \r
   @retval EFI_WRITE_PROTECTED    The write protected is enabled or the media does not support write\r
index 82fd44f17dab7d1f82c02503b0a7cda380b699c6..6648dfd541a91c6c3197828552c1886f62facd8a 100644 (file)
@@ -1,9 +1,9 @@
 /** @file\r
-  This file implement UEFI driver for IDE Bus which includes device identification, \r
-  Child device(Disk, CDROM, etc) enumeration and child handler installation, and \r
+  This file implement UEFI driver for IDE Bus which includes device identification,\r
+  Child device(Disk, CDROM, etc) enumeration and child handler installation, and\r
   driver stop.\r
-    \r
-  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -154,7 +154,7 @@ IDEBusDriverBindingSupported (
   if (RemainingDevicePath != NULL) {\r
     Node = (EFI_DEV_PATH *) RemainingDevicePath;\r
     //\r
-    // Check if RemainingDevicePath is the End of Device Path Node, \r
+    // Check if RemainingDevicePath is the End of Device Path Node,\r
     // if yes, go on checking other conditions\r
     //\r
     if (!IsDevicePathEnd (Node)) {\r
@@ -190,7 +190,7 @@ IDEBusDriverBindingSupported (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // Close the I/O Abstraction(s) used to perform the supported test\r
   //\r
@@ -237,11 +237,11 @@ IDEBusDriverBindingSupported (
                   Controller,\r
                   EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
                   );\r
-  \r
+\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // Now further check the PCI header: Base class (offset 0x0B) and\r
   // Sub Class (offset 0x0A). This controller should be an IDE controller\r
@@ -258,11 +258,11 @@ IDEBusDriverBindingSupported (
     //\r
     // Examine if it is IDE mode by class code\r
     //\r
-    if ((PciData.Hdr.ClassCode[2] != PCI_CLASS_MASS_STORAGE) || (PciData.Hdr.ClassCode[1] != PCI_SUB_CLASS_IDE)) {     \r
+    if ((PciData.Hdr.ClassCode[2] != PCI_CLASS_MASS_STORAGE) || (PciData.Hdr.ClassCode[1] != PCI_SUB_CLASS_IDE)) {\r
       Status = EFI_UNSUPPORTED;\r
-    } else {    \r
+    } else {\r
       Status = EFI_SUCCESS;\r
-    } \r
+    }\r
   }\r
 \r
   return Status;\r
@@ -464,7 +464,7 @@ IDEBusDriverBindingStart (
 \r
    if (EnumAll || RemainingDevicePath == NULL) {\r
     //\r
-    // If IdeInit->EnumAll is TRUE or RemainingDevicePath is NULL, \r
+    // If IdeInit->EnumAll is TRUE or RemainingDevicePath is NULL,\r
     // must enumerate all IDE devices anyway\r
     //\r
     BeginningIdeChannel = IdePrimary;\r
@@ -474,7 +474,7 @@ IDEBusDriverBindingStart (
 \r
   } else if (!IsDevicePathEnd (RemainingDevicePath)) {\r
     //\r
-    // If RemainingDevicePath isn't the End of Device Path Node, \r
+    // If RemainingDevicePath isn't the End of Device Path Node,\r
     // only scan the specified device by RemainingDevicePath\r
     //\r
     Node                = (EFI_DEV_PATH *) RemainingDevicePath;\r
@@ -495,7 +495,7 @@ IDEBusDriverBindingStart (
     //\r
     // If RemainingDevicePath is the End of Device Path Node,\r
     // skip enumerate any device and return EFI_SUCESSS\r
-    // \r
+    //\r
     BeginningIdeChannel = IdeMaxChannel;\r
     EndIdeChannel       = IdeMaxChannel - 1;\r
     BeginningIdeDevice  = IdeMaxDevice;\r
@@ -1298,7 +1298,7 @@ IDEBlkIoFlushBlocks (
 }\r
 \r
 /**\r
-  This function is used by the IDE bus driver to get inquiry data. \r
+  This function is used by the IDE bus driver to get inquiry data.\r
   Data format of Identify data is defined by the Interface GUID.\r
 \r
   @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
@@ -1306,9 +1306,9 @@ IDEBlkIoFlushBlocks (
   @param  InquiryDataSize       Pointer to the value for the inquiry data size.\r
 \r
   @retval EFI_SUCCESS           The command was accepted without any errors.\r
-  @retval EFI_NOT_FOUND         Device does not support this data class \r
-  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device \r
-  @retval EFI_BUFFER_TOO_SMALL  IntquiryDataSize not big enough \r
+  @retval EFI_NOT_FOUND         Device does not support this data class\r
+  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device\r
+  @retval EFI_BUFFER_TOO_SMALL  IntquiryDataSize not big enough\r
 \r
 **/\r
 EFI_STATUS\r
@@ -1339,7 +1339,7 @@ IDEDiskInfoInquiry (
 }\r
 \r
 /**\r
-  This function is used by the IDE bus driver to get identify data. \r
+  This function is used by the IDE bus driver to get identify data.\r
   Data format of Identify data is defined by the Interface GUID.\r
 \r
   @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
@@ -1347,9 +1347,9 @@ IDEDiskInfoInquiry (
   @param  IdentifyDataSize      Pointer to the value for the identify data size.\r
 \r
   @retval EFI_SUCCESS           The command was accepted without any errors.\r
-  @retval EFI_NOT_FOUND         Device does not support this data class \r
-  @retval EFI_DEVICE_ERROR      Error reading IdentifyData from device \r
-  @retval EFI_BUFFER_TOO_SMALL  IdentifyDataSize not big enough \r
+  @retval EFI_NOT_FOUND         Device does not support this data class\r
+  @retval EFI_DEVICE_ERROR      Error reading IdentifyData from device\r
+  @retval EFI_BUFFER_TOO_SMALL  IdentifyDataSize not big enough\r
 \r
 **/\r
 EFI_STATUS\r
@@ -1380,18 +1380,18 @@ IDEDiskInfoIdentify (
 }\r
 \r
 /**\r
-  This function is used by the IDE bus driver to get sense data. \r
+  This function is used by the IDE bus driver to get sense data.\r
   Data format of Sense data is defined by the Interface GUID.\r
 \r
-  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance. \r
-  @param  SenseData             Pointer to the SenseData. \r
-  @param  SenseDataSize         Size of SenseData in bytes. \r
+  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
+  @param  SenseData             Pointer to the SenseData.\r
+  @param  SenseDataSize         Size of SenseData in bytes.\r
   @param  SenseDataNumber       Pointer to the value for the identify data size.\r
 \r
   @retval EFI_SUCCESS           The command was accepted without any errors.\r
-  @retval EFI_NOT_FOUND         Device does not support this data class \r
-  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device \r
-  @retval EFI_BUFFER_TOO_SMALL  SenseDataSize not big enough \r
+  @retval EFI_NOT_FOUND         Device does not support this data class\r
+  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device\r
+  @retval EFI_BUFFER_TOO_SMALL  SenseDataSize not big enough\r
 \r
 **/\r
 EFI_STATUS\r
@@ -1409,12 +1409,12 @@ IDEDiskInfoSenseData (
 /**\r
   This function is used by the IDE bus driver to get controller information.\r
 \r
-  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance. \r
+  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
   @param  IdeChannel            Pointer to the Ide Channel number. Primary or secondary.\r
   @param  IdeDevice             Pointer to the Ide Device number. Master or slave.\r
 \r
-  @retval EFI_SUCCESS           IdeChannel and IdeDevice are valid \r
-  @retval EFI_UNSUPPORTED       This is not an IDE device \r
+  @retval EFI_SUCCESS           IdeChannel and IdeDevice are valid\r
+  @retval EFI_UNSUPPORTED       This is not an IDE device\r
 \r
 **/\r
 EFI_STATUS\r
index a3db16ca855bb89df312999554d4fff57e40f6d7..7ec872275d4a385720da105779c2b3489f571412 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Header file for IDE Bus Driver.\r
 \r
-  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -181,7 +181,7 @@ IDEBusDriverBindingStop (
 // EFI Driver Configuration Functions\r
 //\r
 /**\r
-  Allows the user to set controller specific options for a controller that a \r
+  Allows the user to set controller specific options for a controller that a\r
   driver is currently managing.\r
 \r
   @param  This              A pointer to the EFI_DRIVER_CONFIGURATION_ PROTOCOL instance.\r
@@ -192,26 +192,26 @@ IDEBusDriverBindingStop (
                             that wish to set options for the bus controller.\r
                             It will not be NULL for a bus driver that wishes to set\r
                             options for one of its child controllers.\r
-  @param  Language          A pointer to a three character ISO 639-2 language identifier. \r
-                            This is the language of the user interface that should be presented \r
-                            to the user, and it must match one of the languages specified in \r
+  @param  Language          A pointer to a three character ISO 639-2 language identifier.\r
+                            This is the language of the user interface that should be presented\r
+                            to the user, and it must match one of the languages specified in\r
                             SupportedLanguages. The number of languages supported by a driver is up to\r
                             the driver writer.\r
-  @param  ActionRequired    A pointer to the action that the calling agent is required \r
+  @param  ActionRequired    A pointer to the action that the calling agent is required\r
                             to perform when this function returns.\r
-  \r
 \r
-  @retval  EFI_SUCCESS           The driver specified by This successfully set the configuration \r
+\r
+  @retval  EFI_SUCCESS           The driver specified by This successfully set the configuration\r
                                  options for the controller specified by ControllerHandle..\r
   @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
   @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
   @retval  EFI_INVALID_PARAMETER ActionRequired is NULL.\r
-  @retval  EFI_UNSUPPORTED       The driver specified by This does not support setting configuration options for \r
+  @retval  EFI_UNSUPPORTED       The driver specified by This does not support setting configuration options for\r
                                  the controller specified by ControllerHandle and ChildHandle.\r
   @retval  EFI_UNSUPPORTED       The driver specified by This does not support the language specified by Language.\r
-  @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to set the configuration options for the \r
+  @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to set the configuration options for the\r
                                  controller specified by ControllerHandle and ChildHandle.\r
-  @retval  EFI_OUT_RESOURCES     There are not enough resources available to set the configuration options for the \r
+  @retval  EFI_OUT_RESOURCES     There are not enough resources available to set the configuration options for the\r
                                  controller specified by ControllerHandle and ChildHandle\r
 **/\r
 EFI_STATUS\r
@@ -228,20 +228,20 @@ IDEBusDriverConfigurationSetOptions (
   Tests to see if a controller's current configuration options are valid.\r
 \r
   @param  This             A pointer to the EFI_DRIVER_CONFIGURATION_PROTOCOL instance.\r
-  @param  ControllerHandle The handle of the controller to test if it's current configuration options \r
+  @param  ControllerHandle The handle of the controller to test if it's current configuration options\r
                            are valid.\r
-  @param  ChildHandle      The handle of the child controller to test if it's current configuration \r
-                           options are valid.  This is an optional parameter that may be NULL. It will \r
+  @param  ChildHandle      The handle of the child controller to test if it's current configuration\r
+                           options are valid.  This is an optional parameter that may be NULL. It will\r
                            be NULL for device drivers.  It will also be NULL for a bus drivers that\r
-                           wish to test the configuration options for the bus controller. It will \r
-                           not be NULL for a bus driver that wishes to test configuration options for \r
+                           wish to test the configuration options for the bus controller. It will\r
+                           not be NULL for a bus driver that wishes to test configuration options for\r
                            one of its child controllers.\r
   @retval  EFI_SUCCESS           The controller specified by ControllerHandle and ChildHandle that is being\r
                                  managed by the driver specified by This has a valid set of  configuration\r
                                  options.\r
   @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
   @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
-  @retval  EFI_UNSUPPORTED       The driver specified by This is not currently  managing the controller \r
+  @retval  EFI_UNSUPPORTED       The driver specified by This is not currently  managing the controller\r
                                  specified by ControllerHandle and ChildHandle.\r
   @retval  EFI_DEVICE_ERROR      The controller specified by ControllerHandle and ChildHandle that is being\r
                                  managed by the driver specified by This has an invalid set of configuration\r
@@ -260,31 +260,31 @@ IDEBusDriverConfigurationOptionsValid (
 \r
   @param  This             A pointer to the EFI_DRIVER_CONFIGURATION_ PROTOCOL instance.\r
   @param  ControllerHandle The handle of the controller to force default configuration options on.\r
-  @param  ChildHandle      The handle of the child controller to force default configuration \r
-                           options on  This is an optional parameter that may be NULL.  It \r
-                           will be NULL for device drivers. It will also be NULL for a bus \r
+  @param  ChildHandle      The handle of the child controller to force default configuration\r
+                           options on  This is an optional parameter that may be NULL.  It\r
+                           will be NULL for device drivers. It will also be NULL for a bus\r
                            drivers that wish to force default configuration options for the bus\r
                            controller.  It will not be NULL for a bus driver that wishes to force\r
                            default configuration options for one of its child controllers.\r
-  @param  DefaultType      The type of default configuration options to force on the controller \r
-                           specified by ControllerHandle and ChildHandle. \r
-  @param  ActionRequired   A pointer to the action that the calling agent is required to perform \r
+  @param  DefaultType      The type of default configuration options to force on the controller\r
+                           specified by ControllerHandle and ChildHandle.\r
+  @param  ActionRequired   A pointer to the action that the calling agent is required to perform\r
                            when this function returns.\r
 \r
-  @retval  EFI_SUCCESS           The driver specified by This successfully forced the \r
-                                 default configuration options on the controller specified by \r
+  @retval  EFI_SUCCESS           The driver specified by This successfully forced the\r
+                                 default configuration options on the controller specified by\r
                                  ControllerHandle and ChildHandle.\r
   @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
   @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
   @retval  EFI_INVALID_PARAMETER ActionRequired is NULL.\r
-  @retval  EFI_UNSUPPORTED       The driver specified by This does not support forcing the default \r
+  @retval  EFI_UNSUPPORTED       The driver specified by This does not support forcing the default\r
                                  configuration options on the controller specified by ControllerHandle\r
                                  and ChildHandle.\r
-  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the configuration type \r
+  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the configuration type\r
                                  specified by DefaultType.\r
-  @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to force the default configuration \r
+  @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to force the default configuration\r
                                  options on the controller specified by  ControllerHandle and ChildHandle.\r
-  @retval  EFI_OUT_RESOURCES     There are not enough resources available to force the default configuration \r
+  @retval  EFI_OUT_RESOURCES     There are not enough resources available to force the default configuration\r
                                  options on the controller specified by ControllerHandle and ChildHandle.\r
 **/\r
 EFI_STATUS\r
@@ -308,24 +308,24 @@ IDEBusDriverConfigurationForceDefaults (
   @param  ChildHandle      The handle of the child controller to run diagnostics on\r
                            This is an optional parameter that may be NULL.  It will\r
                            be NULL for device drivers.  It will also be NULL for a\r
-                           bus drivers that wish to run diagnostics on the bus controller. \r
-                           It will not be NULL for a bus driver that wishes to run \r
+                           bus drivers that wish to run diagnostics on the bus controller.\r
+                           It will not be NULL for a bus driver that wishes to run\r
                            diagnostics on one of its child controllers.\r
   @param  DiagnosticType   Indicates type of diagnostics to perform on the controller\r
                            specified by ControllerHandle and ChildHandle.\r
-  @param  Language         A pointer to a three character ISO 639-2 language identifier. \r
-                           This is the language in which the optional error message should \r
-                           be returned in Buffer, and it must match one of the languages \r
+  @param  Language         A pointer to a three character ISO 639-2 language identifier.\r
+                           This is the language in which the optional error message should\r
+                           be returned in Buffer, and it must match one of the languages\r
                            specified in SupportedLanguages. The number of languages supported by\r
                            a driver is up to the driver writer.\r
   @param  ErrorType        A GUID that defines the format of the data returned in Buffer.\r
   @param  BufferSize       The size, in bytes, of the data returned in Buffer.\r
   @param  Buffer           A buffer that contains a Null-terminated Unicode string\r
-                           plus some additional data whose format is defined by ErrorType.  \r
-                           Buffer is allocated by this function with AllocatePool(), and \r
+                           plus some additional data whose format is defined by ErrorType.\r
+                           Buffer is allocated by this function with AllocatePool(), and\r
                            it is the caller's responsibility to free it with a call to FreePool().\r
 \r
-  @retval  EFI_SUCCESS           The controller specified by ControllerHandle and ChildHandle passed \r
+  @retval  EFI_SUCCESS           The controller specified by ControllerHandle and ChildHandle passed\r
                                  the diagnostic.\r
   @retval  EFI_INVALID_PARAMETER ControllerHandle is NULL.\r
   @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
@@ -333,18 +333,18 @@ IDEBusDriverConfigurationForceDefaults (
   @retval  EFI_INVALID_PARAMETER ErrorType is NULL.\r
   @retval  EFI_INVALID_PARAMETER BufferType is NULL.\r
   @retval  EFI_INVALID_PARAMETER Buffer is NULL.\r
-  @retval  EFI_UNSUPPORTED       The driver specified by This does not support running \r
-                                 diagnostics for the controller specified by ControllerHandle \r
+  @retval  EFI_UNSUPPORTED       The driver specified by This does not support running\r
+                                 diagnostics for the controller specified by ControllerHandle\r
                                  and ChildHandle.\r
   @retval  EFI_UNSUPPORTED       The driver specified by This does not support the\r
                                  type of diagnostic specified by DiagnosticType.\r
-  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the language \r
+  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the language\r
                                  specified by Language.\r
-  @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to complete the \r
+  @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to complete the\r
                                  diagnostics.\r
-  @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to return the \r
+  @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to return the\r
                                  status information in ErrorType, BufferSize,and Buffer.\r
-  @retval  EFI_DEVICE_ERROR      The controller specified by ControllerHandle and ChildHandle \r
+  @retval  EFI_DEVICE_ERROR      The controller specified by ControllerHandle and ChildHandle\r
                                  did not pass the diagnostic.\r
 **/\r
 EFI_STATUS\r
@@ -427,7 +427,7 @@ IDEBlkIoWriteBlocks (
 /**\r
   Flushes all modified data to a physical block devices\r
 \r
-  @param  This  Indicates a pointer to the calling context which to sepcify a \r
+  @param  This  Indicates a pointer to the calling context which to sepcify a\r
                 sepcific block device\r
 \r
   @retval EFI_SUCCESS   Always return success.\r
@@ -438,7 +438,7 @@ IDEBlkIoFlushBlocks (
   IN  EFI_BLOCK_IO_PROTOCOL       *This\r
   );\r
 /**\r
-  This function is used by the IDE bus driver to get inquiry data. \r
+  This function is used by the IDE bus driver to get inquiry data.\r
   Data format of Identify data is defined by the Interface GUID.\r
 \r
   @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
@@ -446,9 +446,9 @@ IDEBlkIoFlushBlocks (
   @param  InquiryDataSize       Pointer to the value for the inquiry data size.\r
 \r
   @retval EFI_SUCCESS           The command was accepted without any errors.\r
-  @retval EFI_NOT_FOUND         Device does not support this data class \r
-  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device \r
-  @retval EFI_BUFFER_TOO_SMALL  IntquiryDataSize not big enough \r
+  @retval EFI_NOT_FOUND         Device does not support this data class\r
+  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device\r
+  @retval EFI_BUFFER_TOO_SMALL  IntquiryDataSize not big enough\r
 \r
 **/\r
 EFI_STATUS\r
@@ -460,7 +460,7 @@ IDEDiskInfoInquiry (
   );\r
 \r
 /**\r
-  This function is used by the IDE bus driver to get identify data. \r
+  This function is used by the IDE bus driver to get identify data.\r
   Data format of Identify data is defined by the Interface GUID.\r
 \r
   @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
@@ -468,9 +468,9 @@ IDEDiskInfoInquiry (
   @param  IdentifyDataSize      Pointer to the value for the identify data size.\r
 \r
   @retval EFI_SUCCESS           The command was accepted without any errors.\r
-  @retval EFI_NOT_FOUND         Device does not support this data class \r
-  @retval EFI_DEVICE_ERROR      Error reading IdentifyData from device \r
-  @retval EFI_BUFFER_TOO_SMALL  IdentifyDataSize not big enough \r
+  @retval EFI_NOT_FOUND         Device does not support this data class\r
+  @retval EFI_DEVICE_ERROR      Error reading IdentifyData from device\r
+  @retval EFI_BUFFER_TOO_SMALL  IdentifyDataSize not big enough\r
 \r
 **/\r
 EFI_STATUS\r
@@ -482,18 +482,18 @@ IDEDiskInfoIdentify (
   );\r
 \r
 /**\r
-  This function is used by the IDE bus driver to get sense data. \r
+  This function is used by the IDE bus driver to get sense data.\r
   Data format of Sense data is defined by the Interface GUID.\r
 \r
-  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance. \r
-  @param  SenseData             Pointer to the SenseData. \r
-  @param  SenseDataSize         Size of SenseData in bytes. \r
+  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
+  @param  SenseData             Pointer to the SenseData.\r
+  @param  SenseDataSize         Size of SenseData in bytes.\r
   @param  SenseDataNumber       Pointer to the value for the identify data size.\r
 \r
   @retval EFI_SUCCESS           The command was accepted without any errors.\r
-  @retval EFI_NOT_FOUND         Device does not support this data class \r
-  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device \r
-  @retval EFI_BUFFER_TOO_SMALL  SenseDataSize not big enough \r
+  @retval EFI_NOT_FOUND         Device does not support this data class\r
+  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device\r
+  @retval EFI_BUFFER_TOO_SMALL  SenseDataSize not big enough\r
 \r
 **/\r
 EFI_STATUS\r
@@ -508,12 +508,12 @@ IDEDiskInfoSenseData (
 /**\r
   This function is used by the IDE bus driver to get controller information.\r
 \r
-  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance. \r
+  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
   @param  IdeChannel            Pointer to the Ide Channel number. Primary or secondary.\r
   @param  IdeDevice             Pointer to the Ide Device number. Master or slave.\r
 \r
-  @retval EFI_SUCCESS           IdeChannel and IdeDevice are valid \r
-  @retval EFI_UNSUPPORTED       This is not an IDE device \r
+  @retval EFI_SUCCESS           IdeChannel and IdeDevice are valid\r
+  @retval EFI_UNSUPPORTED       This is not an IDE device\r
 \r
 **/\r
 EFI_STATUS\r
@@ -524,7 +524,7 @@ IDEDiskInfoWhichIde (
   OUT UINT32                      *IdeDevice\r
   );\r
 /**\r
-  The is an event(generally the event is exitBootService event) call back function. \r
+  The is an event(generally the event is exitBootService event) call back function.\r
   Clear pending IDE interrupt before OS loader/kernel take control of the IDE device.\r
 \r
   @param  Event   Pointer to this event\r
index 8beea2d9ca2d7cd7918056b1a2d5e920e7a38547..39a0d536c403df9ab9e6bff0aabb9985b889923e 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 # This driver will enumerate IDE device and export the blockIo protocol for every device.\r
 #\r
-# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -29,9 +29,9 @@
 #\r
 #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
 #\r
-#  DRIVER_BINDING                =  gIDEBusDriverBinding                         \r
+#  DRIVER_BINDING                =  gIDEBusDriverBinding\r
 #  COMPONENT_NAME                =  gIDEBusComponentName\r
-#  COMPONENT_NAME2               =  gIDEBusComponentName2                         \r
+#  COMPONENT_NAME2               =  gIDEBusComponentName2\r
 #  Variable Guid C Name: gConfigurationGuid Variable Name: L"Configuration"\r
 #\r
 #\r
@@ -53,7 +53,7 @@
 [Packages]\r
   MdePkg/MdePkg.dec\r
   IntelFrameworkPkg/IntelFrameworkPkg.dec\r
-  IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec  \r
+  IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec\r
 \r
 \r
 [LibraryClasses]\r
index f47950f53337e8982d9a59e89952ca3c1b20c281..ae8916ecc7d5af062bd2e152a0c0cb7289845643 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // IdeBusDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -12,8 +12,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "IDE Bus DXE Driver"\r
 \r
 \r
index 487fe6f3ea0663c44b6c34152667f154a239c675..821912af01ecd681a41409c4421dfcfd92fdbe39 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   Header file for IDE Bus Driver's Data Structures\r
 \r
-  Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -142,7 +142,7 @@ typedef struct {
 //\r
 // 1 second\r
 //\r
-#define ATATIMEOUT  1000  \r
+#define ATATIMEOUT  1000\r
 \r
 //\r
 // ATAPITIMEOUT is used for waiting operation\r
@@ -152,7 +152,7 @@ typedef struct {
 //\r
 // 1 second\r
 //\r
-#define ATAPITIMEOUT  1000 \r
+#define ATAPITIMEOUT  1000\r
 \r
 //\r
 // ATAPILONGTIMEOUT is used for waiting read and\r
@@ -162,12 +162,12 @@ typedef struct {
 //\r
 // 2 seconds\r
 //\r
-#define CDROMLONGTIMEOUT  2000  \r
+#define CDROMLONGTIMEOUT  2000\r
 \r
 //\r
 // 5 seconds\r
 //\r
-#define ATAPILONGTIMEOUT  5000  \r
+#define ATAPILONGTIMEOUT  5000\r
 \r
 //\r
 // 10 seconds\r
index e495d96af8fe5a5f81cf012c069a9dfdb2af5548..a023930e588640e32716e5a304a916c02de122a9 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implements EFI Component Name Protocol for VGA Mini Port Driver.\r
-  \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
index 25d1e3beb7233ee820695360649905b1a891145e..7633ebe86b28e1d06ac45753cdc2c8f171dd4f54 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implements EFI Driver Binding Protocol and VGA Mini Port Protocol for VGA Mini Port Driver.\r
 \r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -306,14 +306,14 @@ PciVgaMiniPortDriverBindingStop (
   This function implements EFI_VGA_MINI_PORT_PROTOCOL.SetMode().\r
   If ModeNumber exceeds the valid range, then EFI_UNSUPPORTED is returned.\r
   Otherwise, EFI_SUCCESS is directly returned without real operation.\r
-  \r
+\r
   @param This                 Protocol instance pointer.\r
   @param ModeNumber           Mode number.  0 - 80x25   1-80x50\r
 \r
   @retval EFI_SUCCESS         The mode was set\r
   @retval EFI_UNSUPPORTED     ModeNumber is not supported.\r
   @retval EFI_DEVICE_ERROR    The device is not functioning properly.\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -328,4 +328,4 @@ PciVgaMiniPortSetMode (
 \r
   return EFI_SUCCESS;\r
 }\r
-  \r
+\r
index f39c00364bb07a8cdfe9b14e0ff2a274cd886fdf..2080839629b3cf456b05def6eec5660d04748517 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Internal include file for VGA Mini Port Driver.\r
 \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -252,14 +252,14 @@ PciVgaMiniPortComponentNameGetControllerName (
   This function implements EFI_VGA_MINI_PORT_PROTOCOL.SetMode().\r
   If ModeNumber exceeds the valid range, then EFI_UNSUPPORTED is returned.\r
   Otherwise, EFI_SUCCESS is directly returned without real operation.\r
-  \r
+\r
   @param This                 Protocol instance pointer.\r
   @param ModeNumber           Mode number.  0 - 80x25   1-80x50\r
 \r
   @retval EFI_SUCCESS         The mode was set\r
   @retval EFI_UNSUPPORTED     ModeNumber is not supported.\r
   @retval EFI_DEVICE_ERROR    The device is not functioning properly.\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
index ad04f3512744d69073aacc1fd086c5dd0d0b9aac..41f45c6420ad5bb09efcc4be5b1c287fa21ea2e1 100644 (file)
@@ -3,13 +3,13 @@
 //\r
 // VGA Mini Port Driver that manages VGA device and produces the VGA Mini Port Protocol.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution. The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index d3c35faa6c9922444ea266f47fb830cbb5f44ca2..6b5c55f78d0c12df9a9ab79c65fe35faa1682480 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # VGA Mini Port Driver that manages VGA device and produces VGA Mini Port Protocol.\r
 #\r
-# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -29,7 +29,7 @@
 #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
 #  DRIVER_BINDING                = gPciVgaMiniPortDriverBinding;\r
 #  COMPONENT_NAME                = gPciVgaMiniPortComponentName;\r
-#  COMPONENT_NAME2               = gPciVgaMiniPortComponentName2; \r
+#  COMPONENT_NAME2               = gPciVgaMiniPortComponentName2;\r
 #\r
 \r
 [Sources]\r
index 4e206ae06aa8a44ce36b3703b16f6b1f84ebe691..832839142c5a3aa978ffa7cc2d179140eaf9f3ce 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // VgaMiniPort Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "VGA Mini Port DXE Driver"\r
 \r
 \r
index e8ea11c4f81e5e384a11b25ef6f0d420c94d5091..9c6b0f7d8ee9b16acadf0440442a73ef9f98a068 100644 (file)
@@ -5,7 +5,7 @@
   Availible on http://www.t13.org/#Project drafts\r
   Currently at ftp://fission.dt.wdc.com/pub/standards/x3t13/project/d1386r4.pdf\r
 \r
-Copyright (c) 1999 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -156,14 +156,14 @@ BiosBlockIoDriverBindingSupported (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   gBS->CloseProtocol (\r
         Controller,\r
         &gEfiDevicePathProtocolGuid,\r
         This->DriverBindingHandle,\r
         Controller\r
-        );      \r
-  \r
+        );\r
+\r
   //\r
   // Open the IO Abstraction(s) needed to perform the supported test\r
   //\r
@@ -243,8 +243,8 @@ BiosBlockIoDriverBindingStart (
   //\r
   PciIo      = NULL;\r
   PciDevPath = NULL;\r
-  \r
-  DeviceEnable = FALSE; \r
+\r
+  DeviceEnable = FALSE;\r
 \r
   //\r
   // See if the Legacy BIOS Protocol is available\r
@@ -292,9 +292,9 @@ BiosBlockIoDriverBindingStart (
   if (EFI_ERROR (Status)) {\r
     goto Error;\r
   }\r
-  \r
+\r
   DeviceEnable = TRUE;\r
-  \r
+\r
   //\r
   // Check to see if there is a legacy option ROM image associated with this PCI device\r
   //\r
@@ -635,9 +635,9 @@ SetBiosInitBlockIoDevicePath (
 {\r
   EFI_STATUS                  Status;\r
   BLOCKIO_VENDOR_DEVICE_PATH  VendorNode;\r
-  \r
+\r
   Status = EFI_UNSUPPORTED;\r
-  \r
+\r
   //\r
   // BugBug: Check for memory leaks!\r
   //\r
@@ -647,7 +647,7 @@ SetBiosInitBlockIoDevicePath (
     //\r
     Status = BuildEdd30DevicePath (BaseDevicePath, Drive, DevicePath);\r
   }\r
-  \r
+\r
   if (EFI_ERROR (Status)) {\r
     //\r
     // EDD 1.1 device case or it is unrecognized EDD 3.0 device\r
@@ -767,14 +767,14 @@ BuildEdd30DevicePath (
         Drive->Number,\r
         Drive->Parameters.InterfaceType\r
         )\r
-        );      \r
+        );\r
     }\r
   }\r
 \r
   if (Node.DevPath.Type == 0) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   *DevicePath = AppendDevicePathNode (BaseDevicePath, &Node.DevPath);\r
   return EFI_SUCCESS;\r
 }\r
index 91617b79d96fdce70f7d52537d30d811ebb31af0..d67b940d1a03ed6d51d2522e9531b65aacf58b29 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 1999 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -173,7 +173,7 @@ BiosInitBlockIo (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHANGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -203,7 +203,7 @@ Edd30BiosReadBlocks (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -266,7 +266,7 @@ BiosBlockIoReset (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHANGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -296,7 +296,7 @@ Edd11BiosReadBlocks (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -325,7 +325,7 @@ Edd11BiosWriteBlocks (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHANGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -355,7 +355,7 @@ BiosReadLegacyDrive (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -376,7 +376,7 @@ BiosWriteLegacyDrive (
   @param  Drive          Legacy drive.\r
 \r
   @return  Result of device parameter retrieval.\r
\r
+\r
 **/\r
 UINTN\r
 Int13GetDeviceParameters (\r
@@ -391,7 +391,7 @@ Int13GetDeviceParameters (
   @param  Drive          Legacy drive.\r
 \r
   @return  Result of this extension.\r
\r
+\r
 **/\r
 UINTN\r
 Int13Extensions (\r
@@ -406,7 +406,7 @@ Int13Extensions (
   @param  Drive          Legacy drive.\r
 \r
   @return  Result of drive parameter retrieval.\r
\r
+\r
 **/\r
 UINTN\r
 GetDriveParameters (\r
index 698bb620e818ac47bb09cc2c89c2cc4720663a95..0b77227774aadc965669f5c2db34faecedc497e5 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Routines that use BIOS to support INT 13 devices.\r
 \r
-Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -130,7 +130,7 @@ BiosInitBlockIo (
   @param  Drive          Legacy drive.\r
 \r
   @return  Result of device parameter retrieval.\r
\r
+\r
 **/\r
 UINTN\r
 Int13GetDeviceParameters (\r
@@ -185,7 +185,7 @@ Int13GetDeviceParameters (
   @param  Drive          Legacy drive.\r
 \r
   @return  Result of this extension.\r
\r
+\r
 **/\r
 UINTN\r
 Int13Extensions (\r
@@ -227,7 +227,7 @@ Int13Extensions (
   @param  Drive          Legacy drive.\r
 \r
   @return  Result of drive parameter retrieval.\r
\r
+\r
 **/\r
 UINTN\r
 GetDriveParameters (\r
@@ -406,7 +406,7 @@ GetDriveParameters (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHANGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -554,7 +554,7 @@ Edd30BiosReadBlocks (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -789,7 +789,7 @@ BiosBlockIoReset (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHANGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -942,7 +942,7 @@ Edd11BiosReadBlocks (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -1103,7 +1103,7 @@ Edd11BiosWriteBlocks (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHANGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
@@ -1305,7 +1305,7 @@ BiosReadLegacyDrive (
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
-  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid, \r
+  @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
 \r
 **/\r
index 3ed1a64d04f67ced62b70dc512f580ad28f09361..8de9ae7f7edc19e03f44b1209305d45e0970157a 100644 (file)
@@ -4,14 +4,14 @@
 // This is the UEFI driver to thunk legacy BIOS int13 interface into UEFI block IO interface.\r
 // Once connected it installs EfiBlockIoProtocol on top of legacy BIOS int13.\r
 //\r
-// Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
 // of the BSD License which accompanies this distribution.  The\r
 // full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 77dd095970c96cfa613cfa9b3d3680da472e1818..8fa75fe99399b63c517c7d15c151f4b2b9ca57aa 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // BlockIoDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
@@ -14,8 +14,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Legacy Block I/O DXE Driver"\r
 \r
 \r
index ac8e2364c8f48319aa0f782695e894a0db672ee3..63f6303995c7c0ae139ef3bc24ef99d1905e86f7 100644 (file)
@@ -58,7 +58,7 @@ Enqueue (
 \r
 /**\r
   Dequeue the key.\r
-  \r
+\r
   @param  Queue                 The queue to be dequeued.\r
   @param  KeyData               The key data to be dequeued.\r
 \r
@@ -85,7 +85,7 @@ Dequeue (
 \r
 /**\r
   Check whether the queue is empty.\r
-  \r
+\r
   @param  Queue                 The queue to be checked.\r
 \r
   @retval EFI_NOT_READY         The queue is empty.\r
@@ -279,8 +279,8 @@ BiosKeyboardDriverBindingStart (
   BiosKeyboardPrivate->SimpleTextInputEx.Reset               = BiosKeyboardResetEx;\r
   BiosKeyboardPrivate->SimpleTextInputEx.ReadKeyStrokeEx     = BiosKeyboardReadKeyStrokeEx;\r
   BiosKeyboardPrivate->SimpleTextInputEx.SetState            = BiosKeyboardSetState;\r
-  BiosKeyboardPrivate->SimpleTextInputEx.RegisterKeyNotify   = BiosKeyboardRegisterKeyNotify;  \r
-  BiosKeyboardPrivate->SimpleTextInputEx.UnregisterKeyNotify = BiosKeyboardUnregisterKeyNotify;    \r
+  BiosKeyboardPrivate->SimpleTextInputEx.RegisterKeyNotify   = BiosKeyboardRegisterKeyNotify;\r
+  BiosKeyboardPrivate->SimpleTextInputEx.UnregisterKeyNotify = BiosKeyboardUnregisterKeyNotify;\r
   InitializeListHead (&BiosKeyboardPrivate->NotifyList);\r
 \r
   //\r
@@ -315,7 +315,7 @@ BiosKeyboardDriverBindingStart (
   if (EFI_ERROR (Status)) {\r
     BiosKeyboardPrivate->SimpleTextInputEx.WaitForKeyEx = NULL;\r
     goto Done;\r
-  } \r
+  }\r
 \r
   //\r
   // Setup a periodic timer, used for reading keystrokes at a fixed interval\r
@@ -373,7 +373,7 @@ BiosKeyboardDriverBindingStart (
                                                     FeaturePcdGet (PcdPs2KbdExtendedVerification)\r
                                                     );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "[KBD]Reset Failed. Status - %r\n", Status));  \r
+    DEBUG ((EFI_D_ERROR, "[KBD]Reset Failed. Status - %r\n", Status));\r
     StatusCode = EFI_PERIPHERAL_KEYBOARD | EFI_P_EC_NOT_DETECTED;\r
     goto Done;\r
   }\r
@@ -471,13 +471,13 @@ Done:
 \r
   if (EFI_ERROR (Status)) {\r
 \r
-    if (BiosKeyboardPrivate != NULL) {    \r
+    if (BiosKeyboardPrivate != NULL) {\r
       if ((BiosKeyboardPrivate->SimpleTextIn).WaitForKey != NULL) {\r
         gBS->CloseEvent ((BiosKeyboardPrivate->SimpleTextIn).WaitForKey);\r
       }\r
 \r
       if ((BiosKeyboardPrivate->SimpleTextInputEx).WaitForKeyEx != NULL) {\r
-        gBS->CloseEvent ((BiosKeyboardPrivate->SimpleTextInputEx).WaitForKeyEx);    \r
+        gBS->CloseEvent ((BiosKeyboardPrivate->SimpleTextInputEx).WaitForKeyEx);\r
       }\r
 \r
       if (BiosKeyboardPrivate->KeyNotifyProcessEvent != NULL) {\r
@@ -487,7 +487,7 @@ Done:
       BiosKeyboardFreeNotifyList (&BiosKeyboardPrivate->NotifyList);\r
 \r
       if (BiosKeyboardPrivate->TimerEvent != NULL) {\r
-        gBS->CloseEvent (BiosKeyboardPrivate->TimerEvent);    \r
+        gBS->CloseEvent (BiosKeyboardPrivate->TimerEvent);\r
       }\r
 \r
       FreePool (BiosKeyboardPrivate);\r
@@ -558,7 +558,7 @@ BiosKeyboardDriverBindingStop (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   BiosKeyboardPrivate = BIOS_KEYBOARD_DEV_FROM_THIS (SimpleTextIn);\r
 \r
   Status = gBS->UninstallMultipleProtocolInterfaces (\r
@@ -930,19 +930,19 @@ KeyboardWaitForValue (
 }\r
 \r
 /**\r
-  Reads the next keystroke from the input device. The WaitForKey Event can \r
+  Reads the next keystroke from the input device. The WaitForKey Event can\r
   be used to test for existance of a keystroke via WaitForEvent () call.\r
 \r
   @param  BiosKeyboardPrivate   Bioskeyboard driver private structure.\r
-  @param  KeyData               A pointer to a buffer that is filled in with the keystroke \r
+  @param  KeyData               A pointer to a buffer that is filled in with the keystroke\r
                                 state 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_DEVICE_ERROR      The keystroke information was not returned due to \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
-    \r
+  @retval EFI_INVALID_PARAMETER KeyData is NULL.\r
+\r
 **/\r
 EFI_STATUS\r
 KeyboardReadKeyStrokeWorker (\r
@@ -959,14 +959,14 @@ KeyboardReadKeyStrokeWorker (
   //\r
   // Use TimerEvent callback function to check whether there's any key pressed\r
   //\r
-  \r
+\r
   //\r
   // Stall 1ms to give a chance to let other driver interrupt this routine for their timer event.\r
-  // Csm will be used to check whether there is a key pending, but the csm will disable all \r
+  // Csm will be used to check whether there is a key pending, but the csm will disable all\r
   // interrupt before switch to compatibility16, which mean all the efiCompatibility timer\r
-  // event will stop work during the compatibility16. And If a caller recursivly invoke this function, \r
-  // e.g. OS loader, other drivers which are driven by timer event will have a bad performance during this period, \r
-  // e.g. usb keyboard driver. \r
+  // event will stop work during the compatibility16. And If a caller recursivly invoke this function,\r
+  // e.g. OS loader, other drivers which are driven by timer event will have a bad performance during this period,\r
+  // e.g. usb keyboard driver.\r
   // Add a stall period can greatly increate other driver performance during the WaitForKey is recursivly invoked.\r
   // 1ms delay will make little impact to the thunk keyboard driver, and user can not feel the delay at all when input.\r
   //\r
@@ -1075,17 +1075,17 @@ BiosKeyboardReset (
                  BiosKeyboardPrivate,\r
                  KBC_CMDREG_VIA64_CMDBYTE_R\r
                  );\r
-      \r
+\r
       if (EFI_ERROR (Status)) {\r
         Status    = EFI_DEVICE_ERROR;\r
         goto Exit;\r
       }\r
-      \r
+\r
       Status = KeyboardRead (\r
                  BiosKeyboardPrivate,\r
                  &CommandByte\r
                  );\r
-      \r
+\r
       if (EFI_ERROR (Status)) {\r
         Status    = EFI_DEVICE_ERROR;\r
         goto Exit;\r
@@ -1106,17 +1106,17 @@ BiosKeyboardReset (
                  BiosKeyboardPrivate,\r
                  KBC_CMDREG_VIA64_AUX_DISABLE\r
                  );\r
-      \r
+\r
       if (EFI_ERROR (Status)) {\r
         Status    = EFI_DEVICE_ERROR;\r
         goto Exit;\r
       }\r
-      \r
+\r
       Status = KeyboardCommand (\r
                  BiosKeyboardPrivate,\r
                  KBC_CMDREG_VIA64_KB_DISABLE\r
                  );\r
-      \r
+\r
       if (EFI_ERROR (Status)) {\r
         Status    = EFI_DEVICE_ERROR;\r
         goto Exit;\r
@@ -1128,12 +1128,12 @@ BiosKeyboardReset (
       //\r
       //\r
       // Report a Progress Code for performing a self test on the keyboard controller\r
-      //    \r
+      //\r
       REPORT_STATUS_CODE (\r
         EFI_PROGRESS_CODE,\r
         EFI_PERIPHERAL_KEYBOARD | EFI_P_KEYBOARD_PC_SELF_TEST\r
         );\r
-      \r
+\r
       Status = KeyboardCommand (\r
                  BiosKeyboardPrivate,\r
                  KBC_CMDREG_VIA64_KBC_SLFTEST\r
@@ -1142,7 +1142,7 @@ BiosKeyboardReset (
         Status    = EFI_DEVICE_ERROR;\r
         goto Exit;\r
       }\r
-      \r
+\r
       Status = KeyboardWaitForValue (\r
                  BiosKeyboardPrivate,\r
                  KBC_CMDECHO_KBCSLFTEST_OK,\r
@@ -1352,7 +1352,7 @@ BiosKeyboardReset (
                BiosKeyboardPrivate,\r
                KBC_CMDREG_VIA64_KB_ENABLE\r
                );\r
-    \r
+\r
     if (EFI_ERROR (Status)) {\r
       Status    = EFI_DEVICE_ERROR;\r
       goto Exit;\r
@@ -1425,7 +1425,7 @@ BiosKeyboardReadKeyStroke (
     }\r
   }\r
 \r
-  CopyMem (Key, &KeyData.Key, sizeof (EFI_INPUT_KEY));  \r
+  CopyMem (Key, &KeyData.Key, sizeof (EFI_INPUT_KEY));\r
 \r
   return EFI_SUCCESS;\r
 }\r
@@ -1469,7 +1469,7 @@ BiosKeyboardWaitForKey (
   Check key buffer to get the key stroke status.\r
 \r
   @param  This         Pointer of the protocol EFI_SIMPLE_TEXT_IN_PROTOCOL.\r
-  \r
+\r
   @retval EFI_SUCCESS  A key is being pressed now.\r
   @retval Other        No key is now pressed.\r
 \r
@@ -1644,7 +1644,7 @@ CONVERT_TABLE_ENTRY mConvertTable[] = {
   @param  KeyChar      Unicode of key.\r
   @param  ScanCode     Scan code of key.\r
 \r
-  @return The value of EFI Scancode for the key.    \r
+  @return The value of EFI Scancode for the key.\r
   @retval SCAN_NULL   No corresponding value in the EFI convert table is found for the key.\r
 \r
 **/\r
@@ -1682,7 +1682,7 @@ ConvertToEFIScanCode (
 /**\r
   Check whether there is Ps/2 Keyboard device in system by 0xF4 Keyboard Command\r
   If Keyboard receives 0xF4, it will respond with 'ACK'. If it doesn't respond, the device\r
-  should not be in system. \r
+  should not be in system.\r
 \r
   @param  BiosKeyboardPrivate  Keyboard Private Data Struture\r
 \r
@@ -1738,9 +1738,9 @@ CheckKeyboardConnect (
 \r
 /**\r
   Timer event handler: read a series of key stroke from 8042\r
-  and put them into memory key buffer. \r
+  and put them into memory key buffer.\r
   It is registered as running under TPL_NOTIFY\r
-  \r
+\r
   @param  Event   The timer event\r
   @param  Context A BIOS_KEYBOARD_DEV pointer\r
 \r
@@ -1785,7 +1785,7 @@ BiosKeyboardTimerHandler (
   if (Regs.X.Flags.ZF != 0) {\r
     gBS->RestoreTPL (OldTpl);\r
     return;\r
-  }  \r
+  }\r
 \r
   //\r
   // Read the key\r
@@ -1810,27 +1810,27 @@ BiosKeyboardTimerHandler (
     KeyData.Key.ScanCode,\r
     KeyData.Key.UnicodeChar\r
     ));\r
-  \r
+\r
   KeyData.KeyState.KeyShiftState  = EFI_SHIFT_STATE_VALID;\r
   KeyData.KeyState.KeyToggleState = EFI_TOGGLE_STATE_VALID;\r
   //\r
-  // Leagcy Bios use Int 9 which is IRQ1 interrupt handler to get keystroke scancode to KB  buffer in BDA (BIOS DATE AREA),  then \r
-  // Int 16 depend  KB buffer and some key bits in BDA to translate the scancode to ASCII code, and  return both the scancode and ASCII \r
-  // code to Int 16 caller. This translation process works well if the Int 9  could response user input in time. But in Tiano enviorment,  the Int 9 \r
-  // will be disabled after the thunk call finish, which means if user crazy input during int 9 being disabled, some keystrokes will be lost when \r
-  // KB device own hardware buffer overflows. And if the lost keystroke code is CTRL or ALT or SHIFT release code, these function key flags bit \r
-  // in BDA will not be updated. So the Int 16 will believe the CTRL or ALT or SHIFT is still pressed, and Int 16 will translate later scancode \r
+  // Leagcy Bios use Int 9 which is IRQ1 interrupt handler to get keystroke scancode to KB  buffer in BDA (BIOS DATE AREA),  then\r
+  // Int 16 depend  KB buffer and some key bits in BDA to translate the scancode to ASCII code, and  return both the scancode and ASCII\r
+  // code to Int 16 caller. This translation process works well if the Int 9  could response user input in time. But in Tiano enviorment,  the Int 9\r
+  // will be disabled after the thunk call finish, which means if user crazy input during int 9 being disabled, some keystrokes will be lost when\r
+  // KB device own hardware buffer overflows. And if the lost keystroke code is CTRL or ALT or SHIFT release code, these function key flags bit\r
+  // in BDA will not be updated. So the Int 16 will believe the CTRL or ALT or SHIFT is still pressed, and Int 16 will translate later scancode\r
   // to wrong ASCII code. We can increase the Thunk frequence to let Int 9 response in time, but this way will much hurt other drivers\r
   // performance, like USB.\r
   //\r
-  // 1. If CTRL or ALT release code is missed,  all later input keys will be translated to wrong ASCII codes which the Tiano cannot support. In \r
-  //     this case, the KB input seems fail to work, and user input is blocked. To solve the problem, we can help to clear the CTRL or ALT flag in BDA \r
-  //    after every Int 16 finish. Thus persist to press CTRL or ALT has same effection as only press one time. It is Ok, since user not often use the \r
+  // 1. If CTRL or ALT release code is missed,  all later input keys will be translated to wrong ASCII codes which the Tiano cannot support. In\r
+  //     this case, the KB input seems fail to work, and user input is blocked. To solve the problem, we can help to clear the CTRL or ALT flag in BDA\r
+  //    after every Int 16 finish. Thus persist to press CTRL or ALT has same effection as only press one time. It is Ok, since user not often use the\r
   //    CTRL and ALT.\r
   //\r
-  // 2. If SHIFT release code is missed, all later lowercase input will become capital. This is ugly, but not block user input. If user press the lost \r
+  // 2. If SHIFT release code is missed, all later lowercase input will become capital. This is ugly, but not block user input. If user press the lost\r
   //     SHIFT again,  the lowercase will come back to normal. Since user often use the SHIFT, it is not reasonable to help to clear the SHIFT flag in BDA,\r
-  //     which will let persist to press SHIFT has same effection as only press one time. \r
+  //     which will let persist to press SHIFT has same effection as only press one time.\r
   //\r
   //0040h:0017h - KEYBOARD - STATUS FLAGS 1\r
   //   7 INSert active\r
@@ -1861,21 +1861,21 @@ BiosKeyboardTimerHandler (
       }\r
       if ((KbFlag1 & KB_SCROLL_LOCK_BIT) == KB_SCROLL_LOCK_BIT) {\r
         DEBUG ((EFI_D_INFO, "[KBD]Scroll Lock Key is pressed.\n"));\r
-      } \r
+      }\r
       if ((KbFlag1 & KB_ALT_PRESSED) == KB_ALT_PRESSED) {\r
         if ((KbFlag2 & KB_LEFT_ALT_PRESSED) == KB_LEFT_ALT_PRESSED) {\r
           DEBUG ((EFI_D_INFO, "[KBD]Left Alt Key is pressed.\n"));\r
         } else {\r
           DEBUG ((EFI_D_INFO, "[KBD]Right Alt Key is pressed.\n"));\r
         }\r
-      }  \r
+      }\r
       if ((KbFlag1 & KB_CTRL_PRESSED) == KB_CTRL_PRESSED) {\r
         if ((KbFlag2 & KB_LEFT_CTRL_PRESSED) == KB_LEFT_CTRL_PRESSED) {\r
           DEBUG ((EFI_D_INFO, "[KBD]Left Ctrl Key is pressed.\n"));\r
         } else {\r
           DEBUG ((EFI_D_INFO, "[KBD]Right Ctrl Key is pressed.\n"));\r
         }\r
-      }  \r
+      }\r
       if ((KbFlag1 & KB_LEFT_SHIFT_PRESSED) == KB_LEFT_SHIFT_PRESSED) {\r
         DEBUG ((EFI_D_INFO, "[KBD]Left Shift Key is pressed.\n"));\r
       }\r
@@ -1900,13 +1900,13 @@ BiosKeyboardTimerHandler (
   //\r
   // Record shift state\r
   // BUGBUG: Need add Menu key and Left/Right Logo key state in the future\r
-  //  \r
+  //\r
   if ((KbFlag1 & KB_ALT_PRESSED) == KB_ALT_PRESSED) {\r
     KeyData.KeyState.KeyShiftState  |= ((KbFlag2 & KB_LEFT_ALT_PRESSED) == KB_LEFT_ALT_PRESSED) ? EFI_LEFT_ALT_PRESSED : EFI_RIGHT_ALT_PRESSED;\r
-  }  \r
+  }\r
   if ((KbFlag1 & KB_CTRL_PRESSED) == KB_CTRL_PRESSED) {\r
     KeyData.KeyState.KeyShiftState  |= ((KbFlag2 & KB_LEFT_CTRL_PRESSED) == KB_LEFT_CTRL_PRESSED) ? EFI_LEFT_CONTROL_PRESSED : EFI_RIGHT_CONTROL_PRESSED;\r
-  }  \r
+  }\r
   if ((KbFlag1 & KB_LEFT_SHIFT_PRESSED) == KB_LEFT_SHIFT_PRESSED) {\r
     KeyData.KeyState.KeyShiftState  |= EFI_LEFT_SHIFT_PRESSED;\r
   }\r
@@ -1923,7 +1923,7 @@ BiosKeyboardTimerHandler (
     KbFlag1 &= ~0x0C;\r
     *((UINT8 *) (UINTN) 0x417) = KbFlag1;\r
   );\r
-  \r
+\r
   //\r
   // Output EFI input key and shift/toggle state\r
   //\r
@@ -1973,9 +1973,9 @@ BiosKeyboardTimerHandler (
   //\r
   for (Link = BiosKeyboardPrivate->NotifyList.ForwardLink; Link != &BiosKeyboardPrivate->NotifyList; Link = Link->ForwardLink) {\r
     CurrentNotify = CR (\r
-                      Link, \r
-                      BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY, \r
-                      NotifyEntry, \r
+                      Link,\r
+                      BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY,\r
+                      NotifyEntry,\r
                       BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY_SIGNATURE\r
                       );\r
     if (IsKeyRegistered (&CurrentNotify->KeyData, &KeyData)) {\r
@@ -2001,7 +2001,7 @@ BiosKeyboardTimerHandler (
   //\r
   gBS->RestoreTPL (OldTpl);\r
 \r
-  return ;  \r
+  return ;\r
 }\r
 \r
 /**\r
@@ -2034,7 +2034,7 @@ KeyNotifyProcessHandler (
   while (TRUE) {\r
     //\r
     // Enter critical section\r
-    //  \r
+    //\r
     OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
     Status = Dequeue (&BiosKeyboardPrivate->QueueForNotify, &KeyData);\r
     //\r
@@ -2074,9 +2074,9 @@ BiosKeyboardFreeNotifyList (
   }\r
   while (!IsListEmpty (ListHead)) {\r
     NotifyNode = CR (\r
-                   ListHead->ForwardLink, \r
-                   BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY, \r
-                   NotifyEntry, \r
+                   ListHead->ForwardLink,\r
+                   BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY,\r
+                   NotifyEntry,\r
                    BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY_SIGNATURE\r
                    );\r
     RemoveEntryList (ListHead->ForwardLink);\r
@@ -2089,14 +2089,14 @@ BiosKeyboardFreeNotifyList (
 /**\r
   Check if key is registered.\r
 \r
-  @param  RegsiteredData    A pointer to a buffer that is filled in with the keystroke \r
+  @param  RegsiteredData    A pointer to a buffer that is filled in with the keystroke\r
                             state data for the key that was registered.\r
-  @param  InputData         A pointer to a buffer that is filled in with the keystroke \r
+  @param  InputData         A pointer to a buffer that is filled in with the keystroke\r
                             state data for the key that was pressed.\r
 \r
   @retval TRUE              Key be pressed matches a registered key.\r
-  @retval FLASE             Match failed. \r
-  \r
+  @retval FLASE             Match failed.\r
+\r
 **/\r
 BOOLEAN\r
 IsKeyRegistered (\r
@@ -2105,24 +2105,24 @@ IsKeyRegistered (
   )\r
 {\r
   ASSERT (RegsiteredData != NULL && InputData != NULL);\r
-  \r
+\r
   if ((RegsiteredData->Key.ScanCode    != InputData->Key.ScanCode) ||\r
       (RegsiteredData->Key.UnicodeChar != InputData->Key.UnicodeChar)) {\r
-    return FALSE;  \r
-  }      \r
-  \r
+    return FALSE;\r
+  }\r
+\r
   //\r
   // Assume KeyShiftState/KeyToggleState = 0 in Registered key data means these state could be ignored.\r
   //\r
   if (RegsiteredData->KeyState.KeyShiftState != 0 &&\r
       RegsiteredData->KeyState.KeyShiftState != InputData->KeyState.KeyShiftState) {\r
-    return FALSE;    \r
-  }   \r
+    return FALSE;\r
+  }\r
   if (RegsiteredData->KeyState.KeyToggleState != 0 &&\r
       RegsiteredData->KeyState.KeyToggleState != InputData->KeyState.KeyToggleState) {\r
-    return FALSE;    \r
-  }     \r
-  \r
+    return FALSE;\r
+  }\r
+\r
   return TRUE;\r
 \r
 }\r
@@ -2132,7 +2132,7 @@ IsKeyRegistered (
 \r
   @param  Event    The event that be siganlled when any key has been stroked.\r
   @param  Context  Pointer of the protocol EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL.\r
-  \r
+\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -2140,22 +2140,22 @@ BiosKeyboardWaitForKeyEx (
   IN  EFI_EVENT  Event,\r
   IN  VOID       *Context\r
   )\r
-{  \r
+{\r
   BIOS_KEYBOARD_DEV                     *BiosKeyboardPrivate;\r
-  \r
-  BiosKeyboardPrivate = TEXT_INPUT_EX_BIOS_KEYBOARD_DEV_FROM_THIS (Context); \r
+\r
+  BiosKeyboardPrivate = TEXT_INPUT_EX_BIOS_KEYBOARD_DEV_FROM_THIS (Context);\r
   BiosKeyboardWaitForKey (Event, &BiosKeyboardPrivate->SimpleTextIn);\r
 \r
 }\r
 \r
 /**\r
   Reset the input device and optionaly run diagnostics\r
\r
+\r
   @param  This                  Protocol instance pointer.\r
   @param  ExtendedVerification  Driver may perform diagnostics on reset.\r
 \r
   @retval EFI_SUCCESS           The device was reset.\r
-  @retval EFI_DEVICE_ERROR      The device is not functioning properly and could \r
+  @retval EFI_DEVICE_ERROR      The device is not functioning properly and could\r
                                 not be reset.\r
 \r
 **/\r
@@ -2169,11 +2169,11 @@ BiosKeyboardResetEx (
   BIOS_KEYBOARD_DEV                     *BiosKeyboardPrivate;\r
   EFI_STATUS                            Status;\r
   EFI_TPL                               OldTpl;\r
-  \r
-  BiosKeyboardPrivate = TEXT_INPUT_EX_BIOS_KEYBOARD_DEV_FROM_THIS (This); \r
+\r
+  BiosKeyboardPrivate = TEXT_INPUT_EX_BIOS_KEYBOARD_DEV_FROM_THIS (This);\r
 \r
   Status = BiosKeyboardPrivate->SimpleTextIn.Reset (\r
-                                               &BiosKeyboardPrivate->SimpleTextIn, \r
+                                               &BiosKeyboardPrivate->SimpleTextIn,\r
                                                ExtendedVerification\r
                                                );\r
   if (EFI_ERROR (Status)) {\r
@@ -2183,25 +2183,25 @@ BiosKeyboardResetEx (
   OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   gBS->RestoreTPL (OldTpl);\r
-  \r
+\r
   return EFI_SUCCESS;\r
 \r
 }\r
 \r
 /**\r
-  Reads the next keystroke from the input device. The WaitForKey Event can \r
+  Reads the next keystroke from the input device. The WaitForKey Event can\r
   be used to test for existance of a keystroke via WaitForEvent () call.\r
 \r
   @param  This         Protocol instance pointer.\r
-  @param  KeyData      A pointer to a buffer that is filled in with the keystroke \r
+  @param  KeyData      A pointer to a buffer that is filled in with the keystroke\r
                        state data for the key that was pressed.\r
-  \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 keystroke information was not returned due to \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
-    \r
+  @retval  EFI_INVALID_PARAMETER KeyData is NULL.\r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -2215,27 +2215,27 @@ BiosKeyboardReadKeyStrokeEx (
   if (KeyData == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   BiosKeyboardPrivate = TEXT_INPUT_EX_BIOS_KEYBOARD_DEV_FROM_THIS (This);\r
 \r
   return KeyboardReadKeyStrokeWorker (BiosKeyboardPrivate, KeyData);\r
-  \r
+\r
 }\r
 \r
 /**\r
   Set certain state for the input device.\r
 \r
   @param  This              Protocol instance pointer.\r
-  @param  KeyToggleState    A pointer to the EFI_KEY_TOGGLE_STATE to set the \r
+  @param  KeyToggleState    A pointer to the EFI_KEY_TOGGLE_STATE to set the\r
                             state for the input device.\r
 \r
   @retval EFI_SUCCESS           The device state was set successfully.\r
-  @retval EFI_DEVICE_ERROR      The device is not functioning correctly and could \r
+  @retval EFI_DEVICE_ERROR      The device is not functioning correctly and could\r
                                 not have the setting adjusted.\r
   @retval EFI_UNSUPPORTED       The device does not have the ability to set its state.\r
-  @retval EFI_INVALID_PARAMETER KeyToggleState is NULL.                       \r
+  @retval EFI_INVALID_PARAMETER KeyToggleState is NULL.\r
 \r
-**/   \r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 BiosKeyboardSetState (\r
@@ -2293,7 +2293,7 @@ BiosKeyboardSetState (
   if (EFI_ERROR (Status)) {\r
     Status = EFI_DEVICE_ERROR;\r
     goto Exit;\r
-  }  \r
+  }\r
   Status = KeyboardWaitForValue (BiosKeyboardPrivate, 0xfa, KEYBOARD_WAITFORVALUE_TIMEOUT);\r
   if (EFI_ERROR (Status)) {\r
     Status = EFI_DEVICE_ERROR;\r
@@ -2303,7 +2303,7 @@ BiosKeyboardSetState (
   if (EFI_ERROR (Status)) {\r
     Status = EFI_DEVICE_ERROR;\r
     goto Exit;\r
-  }  \r
+  }\r
   //\r
   // Call Legacy BIOS Protocol to set whatever is necessary\r
   //\r
@@ -2325,12 +2325,12 @@ Exit:
   Register a notification function for a particular keystroke for the input device.\r
 \r
   @param  This                    Protocol instance pointer.\r
-  @param  KeyData                 A pointer to a buffer that is filled in with the keystroke \r
+  @param  KeyData                 A pointer to a buffer that is filled in with the keystroke\r
                                   information data for the key that was pressed. If KeyData.Key,\r
                                   KeyData.KeyState.KeyToggleState and KeyData.KeyState.KeyShiftState\r
                                   are 0, then any incomplete keystroke will trigger a notification of\r
                                   the KeyNotificationFunction.\r
-  @param  KeyNotificationFunction Points to the function to be called when the key \r
+  @param  KeyNotificationFunction Points to the function to be called when the key\r
                                   sequence is typed specified by KeyData. This notification function\r
                                   should be called at <=TPL_CALLBACK.\r
   @param  NotifyHandle            Points to the unique handle assigned to the registered notification.\r
@@ -2354,7 +2354,7 @@ BiosKeyboardRegisterKeyNotify (
   EFI_TPL                               OldTpl;\r
   BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY    *NewNotify;\r
   LIST_ENTRY                            *Link;\r
-  BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY    *CurrentNotify;  \r
+  BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY    *CurrentNotify;\r
 \r
   if (KeyData == NULL || NotifyHandle == NULL || KeyNotificationFunction == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
@@ -2372,24 +2372,24 @@ BiosKeyboardRegisterKeyNotify (
   //\r
   for (Link = BiosKeyboardPrivate->NotifyList.ForwardLink; Link != &BiosKeyboardPrivate->NotifyList; Link = Link->ForwardLink) {\r
     CurrentNotify = CR (\r
-                      Link, \r
-                      BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY, \r
-                      NotifyEntry, \r
+                      Link,\r
+                      BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY,\r
+                      NotifyEntry,\r
                       BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY_SIGNATURE\r
                       );\r
-    if (IsKeyRegistered (&CurrentNotify->KeyData, KeyData)) { \r
+    if (IsKeyRegistered (&CurrentNotify->KeyData, KeyData)) {\r
       if (CurrentNotify->KeyNotificationFn == KeyNotificationFunction) {\r
         *NotifyHandle = CurrentNotify;\r
         Status = EFI_SUCCESS;\r
         goto Exit;\r
       }\r
-    }  \r
+    }\r
   }\r
 \r
   //\r
   // Allocate resource to save the notification function\r
   //\r
-  \r
+\r
   NewNotify = (BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY *) AllocateZeroPool (sizeof (BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY));\r
   if (NewNotify == NULL) {\r
     Status = EFI_OUT_OF_RESOURCES;\r
@@ -2403,25 +2403,25 @@ BiosKeyboardRegisterKeyNotify (
 \r
   *NotifyHandle                = NewNotify;\r
   Status                       = EFI_SUCCESS;\r
-  \r
+\r
 Exit:\r
   //\r
   // Leave critical section and return\r
   //\r
   gBS->RestoreTPL (OldTpl);\r
-  return Status;  \r
+  return Status;\r
 }\r
 \r
 /**\r
   Remove a registered notification function from a particular keystroke.\r
 \r
-  @param  This                 Protocol instance pointer.    \r
+  @param  This                 Protocol instance pointer.\r
   @param  NotificationHandle   The handle of the notification function being unregistered.\r
-  \r
+\r
   @retval EFI_SUCCESS             The notification function was unregistered successfully.\r
   @retval EFI_INVALID_PARAMETER   The NotificationHandle is invalid.\r
-                              \r
-**/   \r
+\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 BiosKeyboardUnregisterKeyNotify (\r
@@ -2444,10 +2444,10 @@ BiosKeyboardUnregisterKeyNotify (
 \r
   if (((BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY *) NotificationHandle)->Signature != BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY_SIGNATURE) {\r
     return EFI_INVALID_PARAMETER;\r
-  } \r
-  \r
+  }\r
+\r
   BiosKeyboardPrivate = TEXT_INPUT_EX_BIOS_KEYBOARD_DEV_FROM_THIS (This);\r
-  \r
+\r
   //\r
   // Enter critical section\r
   //\r
@@ -2455,22 +2455,22 @@ BiosKeyboardUnregisterKeyNotify (
 \r
   for (Link = BiosKeyboardPrivate->NotifyList.ForwardLink; Link != &BiosKeyboardPrivate->NotifyList; Link = Link->ForwardLink) {\r
     CurrentNotify = CR (\r
-                      Link, \r
-                      BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY, \r
-                      NotifyEntry, \r
+                      Link,\r
+                      BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY,\r
+                      NotifyEntry,\r
                       BIOS_KEYBOARD_CONSOLE_IN_EX_NOTIFY_SIGNATURE\r
-                      );    \r
+                      );\r
     if (CurrentNotify == NotificationHandle) {\r
       //\r
       // Remove the notification function from NotifyList and free resources\r
       //\r
-      RemoveEntryList (&CurrentNotify->NotifyEntry);      \r
+      RemoveEntryList (&CurrentNotify->NotifyEntry);\r
 \r
       Status = EFI_SUCCESS;\r
       goto Exit;\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Can not find the specified Notification Handle\r
   //\r
index 5300eaa0ab32e8a682b8c49fa6279fbad2cd4750..ef2c822c55fdbd704b6b88d8add513106eda6a37 100644 (file)
@@ -234,7 +234,7 @@ typedef struct {
   LIST_ENTRY                                  NotifyList;\r
   EFI_EVENT                                   KeyNotifyProcessEvent;\r
   EFI_EVENT                                   TimerEvent;\r
-  \r
+\r
 } BIOS_KEYBOARD_DEV;\r
 \r
 #define BIOS_KEYBOARD_DEV_FROM_THIS(a)  CR (a, BIOS_KEYBOARD_DEV, SimpleTextIn, BIOS_KEYBOARD_DEV_SIGNATURE)\r
@@ -500,7 +500,7 @@ BiosKeyboardWaitForKey (
   Check key buffer to get the key stroke status.\r
 \r
   @param  This         Pointer of the protocol EFI_SIMPLE_TEXT_IN_PROTOCOL.\r
-  \r
+\r
   @retval EFI_SUCCESS  A key is being pressed now.\r
   @retval Other        No key is now pressed.\r
 \r
@@ -517,7 +517,7 @@ BiosKeyboardCheckForKey (
   @param  KeyChar      Unicode of key.\r
   @param  ScanCode     Scan code of key.\r
 \r
-  @return The value of EFI Scancode for the key.    \r
+  @return The value of EFI Scancode for the key.\r
   @retval SCAN_NULL   No corresponding value in the EFI convert table is found for the key.\r
 \r
 **/\r
@@ -530,7 +530,7 @@ ConvertToEFIScanCode (
 /**\r
   Check whether there is Ps/2 Keyboard device in system by 0xF4 Keyboard Command\r
   If Keyboard receives 0xF4, it will respond with 'ACK'. If it doesn't respond, the device\r
-  should not be in system. \r
+  should not be in system.\r
 \r
   @param  BiosKeyboardPrivate  Keyboard Private Data Struture\r
 \r
@@ -545,9 +545,9 @@ CheckKeyboardConnect (
 \r
 /**\r
   Timer event handler: read a series of key stroke from 8042\r
-  and put them into memory key buffer. \r
+  and put them into memory key buffer.\r
   It is registered as running under TPL_NOTIFY\r
-  \r
+\r
   @param  Event   The timer event\r
   @param  Context A BIOS_KEYBOARD_DEV pointer\r
 \r
@@ -574,12 +574,12 @@ KeyNotifyProcessHandler (
 \r
 /**\r
   Reset the input device and optionaly run diagnostics\r
\r
+\r
   @param  This                  Protocol instance pointer.\r
   @param  ExtendedVerification  Driver may perform diagnostics on reset.\r
 \r
   @retval EFI_SUCCESS           The device was reset.\r
-  @retval EFI_DEVICE_ERROR      The device is not functioning properly and could \r
+  @retval EFI_DEVICE_ERROR      The device is not functioning properly and could\r
                                 not be reset.\r
 \r
 **/\r
@@ -591,19 +591,19 @@ BiosKeyboardResetEx (
   );\r
 \r
 /**\r
-  Reads the next keystroke from the input device. The WaitForKey Event can \r
+  Reads the next keystroke from the input device. The WaitForKey Event can\r
   be used to test for existance of a keystroke via WaitForEvent () call.\r
 \r
   @param  This         Protocol instance pointer.\r
-  @param  KeyData      A pointer to a buffer that is filled in with the keystroke \r
+  @param  KeyData      A pointer to a buffer that is filled in with the keystroke\r
                        state data for the key that was pressed.\r
-  \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 keystroke information was not returned due to \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
-    \r
+  @retval  EFI_INVALID_PARAMETER KeyData is NULL.\r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -616,16 +616,16 @@ BiosKeyboardReadKeyStrokeEx (
   Set certain state for the input device.\r
 \r
   @param  This              Protocol instance pointer.\r
-  @param  KeyToggleState    A pointer to the EFI_KEY_TOGGLE_STATE to set the \r
+  @param  KeyToggleState    A pointer to the EFI_KEY_TOGGLE_STATE to set the\r
                             state for the input device.\r
 \r
   @retval EFI_SUCCESS           The device state was set successfully.\r
-  @retval EFI_DEVICE_ERROR      The device is not functioning correctly and could \r
+  @retval EFI_DEVICE_ERROR      The device is not functioning correctly and could\r
                                 not have the setting adjusted.\r
   @retval EFI_UNSUPPORTED       The device does not have the ability to set its state.\r
-  @retval EFI_INVALID_PARAMETER KeyToggleState is NULL.                       \r
+  @retval EFI_INVALID_PARAMETER KeyToggleState is NULL.\r
 \r
-**/   \r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 BiosKeyboardSetState (\r
@@ -637,17 +637,17 @@ BiosKeyboardSetState (
   Register a notification function for a particular keystroke for the input device.\r
 \r
   @param  This                    Protocol instance pointer.\r
-  @param  KeyData                 A pointer to a buffer that is filled in with the keystroke \r
+  @param  KeyData                 A pointer to a buffer that is filled in with the keystroke\r
                                   information data for the key that was pressed. If KeyData.Key,\r
                                   KeyData.KeyState.KeyToggleState and KeyData.KeyState.KeyShiftState\r
                                   are 0, then any incomplete keystroke will trigger a notification of\r
                                   the KeyNotificationFunction.\r
-  @param  KeyNotificationFunction Points to the function to be called when the key \r
+  @param  KeyNotificationFunction Points to the function to be called when the key\r
                                   sequence is typed specified by KeyData. This notification function\r
                                   should be called at <=TPL_CALLBACK.\r
   @param  NotifyHandle            Points to the unique handle assigned to the registered notification.\r
 \r
-  \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_INVALID_PARAMETER   KeyData or NotifyHandle is NULL.\r
@@ -665,13 +665,13 @@ BiosKeyboardRegisterKeyNotify (
 /**\r
   Remove a registered notification function from a particular keystroke.\r
 \r
-  @param  This                 Protocol instance pointer.    \r
+  @param  This                 Protocol instance pointer.\r
   @param  NotificationHandle   The handle of the notification function being unregistered.\r
-  \r
+\r
   @retval EFI_SUCCESS             The notification function was unregistered successfully.\r
   @retval EFI_INVALID_PARAMETER   The NotificationHandle is invalid.\r
-                              \r
-**/   \r
+\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 BiosKeyboardUnregisterKeyNotify (\r
@@ -727,19 +727,19 @@ KeyboardWrite (
 EFI_STATUS\r
 BiosKeyboardFreeNotifyList (\r
   IN OUT LIST_ENTRY           *ListHead\r
-  );  \r
+  );\r
 \r
 /**\r
   Check if key is registered.\r
 \r
-  @param  RegsiteredData    A pointer to a buffer that is filled in with the keystroke \r
+  @param  RegsiteredData    A pointer to a buffer that is filled in with the keystroke\r
                             state data for the key that was registered.\r
-  @param  InputData         A pointer to a buffer that is filled in with the keystroke \r
+  @param  InputData         A pointer to a buffer that is filled in with the keystroke\r
                             state data for the key that was pressed.\r
 \r
   @retval TRUE              Key be pressed matches a registered key.\r
-  @retval FLASE             Match failed. \r
-  \r
+  @retval FLASE             Match failed.\r
+\r
 **/\r
 BOOLEAN\r
 IsKeyRegistered (\r
@@ -752,7 +752,7 @@ IsKeyRegistered (
 \r
   @param  Event    The event that be siganlled when any key has been stroked.\r
   @param  Context  Pointer of the protocol EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL.\r
-  \r
+\r
 **/\r
 VOID\r
 EFIAPI\r
index eaaedbfa9c538a20c8d641efcfa965ecbc820a6b..99a84517db9cee859937e6751888a8072d216530 100644 (file)
@@ -1,10 +1,10 @@
 ## @file\r
 # Ps2 Keyboard driver.\r
 #\r
-# Ps2 Keyboard driver by using Legacy Bios protocol service and IsaIo protocol \r
+# Ps2 Keyboard driver by using Legacy Bios protocol service and IsaIo protocol\r
 # service. This dirver uses legacy INT16 to get the key stroke status.\r
 #\r
-# Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions\r
index d54c8caee68af61ceaf40d8a8576039d9b9506f8..d7cc7dccd8a32ec80e2a6c91773fef09fa7aba88 100644 (file)
@@ -4,14 +4,14 @@
 // Ps2 Keyboard driver by using Legacy Bios protocol service and IsaIo protocol\r
 // service. This dirver uses legacy INT16 to get the key stroke status.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
 // of the BSD License which accompanies this distribution.  The\r
 // full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 45dc19233e7224e041b6328ee2298d100b01c81a..c54ed031f50e67aad8afc94c81e13acb29af2b27 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // KeyboardDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
@@ -14,8 +14,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Legacy Keyboard DXE Driver"\r
 \r
 \r
index b586a91c7badbbe6fa166e4daa012c0c0025d095..5022a21fd4cdff6d7af76cc30874c5d8aa7baacd 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -42,9 +42,9 @@ BOOLEAN     mCachedInt1A = FALSE;
 \r
   @param SimpleNetworkDevice A pointer to EFI_SIMPLE_NETWORK_DEV data structure.\r
   @param Ax                  PCI address of Undi device.\r
-  \r
-  @retval EFI_DEVICE_ERROR Fail to start 16 bit UNDI ROM. \r
-  @retval Others           Status of start 16 bit UNDI ROM. \r
+\r
+  @retval EFI_DEVICE_ERROR Fail to start 16 bit UNDI ROM.\r
+  @retval Others           Status of start 16 bit UNDI ROM.\r
 **/\r
 EFI_STATUS\r
 Undi16SimpleNetworkStartUndi (\r
@@ -56,9 +56,9 @@ Undi16SimpleNetworkStartUndi (
   Start the UNDI interface\r
 \r
   @param SimpleNetworkDevice A pointer to EFI_SIMPLE_NETWORK_DEV data structure.\r
-  \r
-  @retval EFI_DEVICE_ERROR Fail to start 16 bit UNDI ROM. \r
-  @retval Others           Status of start 16 bit UNDI ROM. \r
+\r
+  @retval EFI_DEVICE_ERROR Fail to start 16 bit UNDI ROM.\r
+  @retval Others           Status of start 16 bit UNDI ROM.\r
 **/\r
 EFI_STATUS\r
 Undi16SimpleNetworkStopUndi (\r
@@ -69,9 +69,9 @@ Undi16SimpleNetworkStopUndi (
   Stop the UNDI interface\r
 \r
   @param SimpleNetworkDevice A pointer to EFI_SIMPLE_NETWORK_DEV data structure.\r
-  \r
-  @retval EFI_DEVICE_ERROR Fail to stop 16 bit UNDI ROM. \r
-  @retval Others           Status of stop 16 bit UNDI ROM. \r
+\r
+  @retval EFI_DEVICE_ERROR Fail to stop 16 bit UNDI ROM.\r
+  @retval Others           Status of stop 16 bit UNDI ROM.\r
 **/\r
 EFI_STATUS\r
 Undi16SimpleNetworkCleanupUndi (\r
@@ -82,9 +82,9 @@ Undi16SimpleNetworkCleanupUndi (
   Get runtime information for Undi network interface\r
 \r
   @param This A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  \r
-  @retval EFI_SUCCESS Sucess operation. \r
-  @retval Others      Fail to get runtime information for Undi network interface. \r
+\r
+  @retval EFI_SUCCESS Sucess operation.\r
+  @retval Others      Fail to get runtime information for Undi network interface.\r
 **/\r
 EFI_STATUS\r
 Undi16SimpleNetworkGetInformation (\r
@@ -95,8 +95,8 @@ Undi16SimpleNetworkGetInformation (
   Get NIC type\r
 \r
   @param This A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  \r
-  @retval EFI_SUCCESS Sucess operation. \r
+\r
+  @retval EFI_SUCCESS Sucess operation.\r
   @retval Others      Fail to get NIC type.\r
 **/\r
 EFI_STATUS\r
@@ -108,8 +108,8 @@ Undi16SimpleNetworkGetNicType (
   Get NDIS information\r
 \r
   @param This A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  \r
-  @retval EFI_SUCCESS Sucess operation. \r
+\r
+  @retval EFI_SUCCESS Sucess operation.\r
   @retval Others      Fail to get NDIS information.\r
 **/\r
 EFI_STATUS\r
@@ -119,11 +119,11 @@ Undi16SimpleNetworkGetNdisInfo (
 \r
 /**\r
   Signal handlers for ExitBootServices event.\r
-  \r
-  Clean up any Real-mode UNDI residue from the system \r
-   \r
+\r
+  Clean up any Real-mode UNDI residue from the system\r
+\r
   @param Event      ExitBootServices event\r
-  @param Context \r
+  @param Context\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -136,7 +136,7 @@ Undi16SimpleNetworkEvent (
   Loads the undi driver.\r
 \r
   @param SimpleNetworkDevice A pointer to EFI_SIMPLE_NETWORK_DEV data structure.\r
-  \r
+\r
   @retval   EFI_SUCCESS   - Successfully loads undi driver.\r
   @retval   EFI_NOT_FOUND - Doesn't find undi driver or undi driver load failure.\r
 **/\r
@@ -149,8 +149,8 @@ Undi16SimpleNetworkLoadUndi (
   Unload 16 bit UNDI Option ROM from memory\r
 \r
   @param SimpleNetworkDevice A pointer to EFI_SIMPLE_NETWORK_DEV data structure.\r
-  \r
-  @return EFI_STATUS \r
+\r
+  @return EFI_STATUS\r
 **/\r
 EFI_STATUS\r
 Undi16SimpleNetworkUnloadUndi (\r
@@ -162,8 +162,8 @@ Undi16SimpleNetworkUnloadUndi (
 \r
   @param ImageHandle Handle that identifies the loaded image.\r
   @param SystemTable System Table for this image.\r
-  \r
-  @return EFI_STATUS Return status from EfiLibInstallAllDriverProtocols. \r
+\r
+  @return EFI_STATUS Return status from EfiLibInstallAllDriverProtocols.\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -191,7 +191,7 @@ BiosSnp16DriverEntryPoint (
   @param This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param Controller           The handle of the controller to test.\r
   @param RemainingDevicePath  A pointer to the remaining portion of a device path.\r
-  \r
+\r
   @retval EFI_SUCCESS    The driver supports given controller.\r
   @retval EFI_UNSUPPORT  The driver doesn't support given controller.\r
   @retval Other          Other errors prevent driver finishing to test\r
@@ -286,8 +286,8 @@ Done:
   @param This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param Controller           The handle of the controller to test.\r
   @param RemainingDevicePath  A pointer to the remaining portion of a device path.\r
-  \r
-  @retval  EFI_SUCCESS          - The device was started.   \r
+\r
+  @retval  EFI_SUCCESS          - The device was started.\r
   @retval  EFI_DEVICE_ERROR     - The device could not be started due to a device error.\r
   @retval  EFI_OUT_OF_RESOURCES - The request could not be completed due to a lack of resources.\r
 **/\r
@@ -506,12 +506,12 @@ BiosSnp16DriverBindingStart (
   // Create an event to be signalled when Legacy Boot occurs to clean up the IVT\r
   //\r
   Status = EfiCreateEventLegacyBootEx(\r
-             TPL_NOTIFY, \r
-             Undi16SimpleNetworkEvent, \r
-             NULL, \r
+             TPL_NOTIFY,\r
+             Undi16SimpleNetworkEvent,\r
+             NULL,\r
              &SimpleNetworkDevice->LegacyBootEvent\r
              );\r
-  \r
+\r
   if (EFI_ERROR(Status)) {\r
     DEBUG ((DEBUG_ERROR,"ERROR : Could not create event.  Status = %r\n",Status));\r
     goto Done;\r
@@ -750,7 +750,7 @@ Done:
       if (SimpleNetworkDevice->LegacyBootEvent != NULL) {\r
         gBS->CloseEvent (SimpleNetworkDevice->LegacyBootEvent);\r
       }\r
-      \r
+\r
       if (SimpleNetworkDevice->EfiBootEvent != NULL) {\r
         gBS->CloseEvent (SimpleNetworkDevice->EfiBootEvent);\r
       }\r
@@ -775,7 +775,7 @@ Done:
       }\r
 \r
       gBS->FreePool (SimpleNetworkDevice);\r
-      \r
+\r
       //\r
       //  Only restore the vector if it was cached.\r
       //\r
@@ -819,7 +819,7 @@ Done:
     if (Status != EFI_OUT_OF_RESOURCES) {\r
       Status = EFI_DEVICE_ERROR;\r
     }\r
-  }  \r
+  }\r
   return Status;\r
 }\r
 \r
@@ -831,7 +831,7 @@ Done:
   @param NumberOfChildren   The number of child device handles in ChildHandleBuffer.\r
   @param ChildHandleBuffer  An array of child handles to be freed. May be NULL if\r
                             NumberOfChildren is 0.\r
-  \r
+\r
   @retval  EFI_SUCCESS      - The device was stopped.\r
   @retval  EFI_DEVICE_ERROR - The device could not be stopped due to a device error.\r
 **/\r
@@ -899,7 +899,7 @@ BiosSnp16DriverBindingStop (
                     This->DriverBindingHandle,\r
                     Controller\r
                     );\r
-                    \r
+\r
     if (EFI_ERROR (Status)) {\r
       Status = EFI_DEVICE_ERROR;\r
     }\r
@@ -973,7 +973,7 @@ BiosSnp16DriverBindingStop (
         if (SimpleNetworkDevice->LegacyBootEvent != NULL) {\r
           gBS->CloseEvent (SimpleNetworkDevice->LegacyBootEvent);\r
         }\r
-      \r
+\r
         if (SimpleNetworkDevice->EfiBootEvent != NULL) {\r
           gBS->CloseEvent (SimpleNetworkDevice->EfiBootEvent);\r
         }\r
@@ -1021,7 +1021,7 @@ BiosSnp16DriverBindingStop (
   Judge whether transmit FIFO is full.\r
 \r
   @param Fifo Point to trasmit FIFO structure.\r
-  \r
+\r
   @return BOOLEAN whether transmit FIFO is full.\r
 **/\r
 BOOLEAN\r
@@ -1040,7 +1040,7 @@ SimpleNetworkTransmitFifoFull (
   Judge whether transmit FIFO is empty.\r
 \r
   @param Fifo Point to trasmit FIFO structure.\r
-  \r
+\r
   @return BOOLEAN whether transmit FIFO is empty.\r
 **/\r
 BOOLEAN\r
@@ -1061,9 +1061,9 @@ SimpleNetworkTransmitFifoEmpty (
 \r
   @param Fifo Point to trasmit FIFO structure.\r
   @param Data The data point want to be added.\r
-  \r
-  @retval EFI_OUT_OF_RESOURCES  FIFO is full \r
-  @retval EFI_SUCCESS           Success operation. \r
+\r
+  @retval EFI_OUT_OF_RESOURCES  FIFO is full\r
+  @retval EFI_SUCCESS           Success operation.\r
 **/\r
 EFI_STATUS\r
 SimpleNetworkTransmitFifoAdd (\r
@@ -1085,9 +1085,9 @@ SimpleNetworkTransmitFifoAdd (
 \r
   @param Fifo Point to trasmit FIFO structure.\r
   @param Data On return, point to the data point want to be got and removed.\r
-  \r
-  @retval EFI_OUT_OF_RESOURCES network transmit buffer is empty. \r
-  @retval EFI_SUCCESS           Success operation. \r
+\r
+  @retval EFI_OUT_OF_RESOURCES network transmit buffer is empty.\r
+  @retval EFI_SUCCESS           Success operation.\r
 **/\r
 EFI_STATUS\r
 SimpleNetworkTransmitFifoRemove (\r
@@ -1108,7 +1108,7 @@ SimpleNetworkTransmitFifoRemove (
   Get recive filter setting according to EFI mask value.\r
 \r
   @param ReceiveFilterSetting  filter setting EFI mask value.\r
-  \r
+\r
   @return UINT16 Undi filter setting value.\r
 **/\r
 UINT16\r
@@ -1149,11 +1149,11 @@ Undi16GetPacketFilterSetting (
 \r
 /**\r
   Get filter setting from multi cast buffer .\r
-   \r
+\r
   @param Mode           Point to mode structure.\r
-  @param McastBuffer    The multi cast buffer \r
+  @param McastBuffer    The multi cast buffer\r
   @param HwAddressSize  Size of filter value.\r
-  \r
+\r
 **/\r
 VOID\r
 Undi16GetMCastFilters (\r
@@ -1183,7 +1183,7 @@ Undi16GetMCastFilters (
   Loads the undi driver.\r
 \r
   @param SimpleNetworkDevice A pointer to EFI_SIMPLE_NETWORK_DEV data structure.\r
-  \r
+\r
   @retval   EFI_SUCCESS   - Successfully loads undi driver.\r
   @retval   EFI_NOT_FOUND - Doesn't find undi driver or undi driver load failure.\r
 **/\r
@@ -1198,11 +1198,11 @@ Undi16SimpleNetworkLoadUndi (
   PCI_EXPANSION_ROM_HEADER  *PciExpansionRomHeader;\r
   PCI_DATA_STRUCTURE        *PciDataStructure;\r
   PCI_TYPE00                Pci;\r
-  \r
+\r
   if (!mCachedInt1A) {\r
     Status = CacheVectorAddress (0x1A);\r
     if (!EFI_ERROR (Status)) {\r
-      mCachedInt1A = TRUE;    \r
+      mCachedInt1A = TRUE;\r
     }\r
   }\r
 \r
@@ -1227,8 +1227,8 @@ Undi16SimpleNetworkLoadUndi (
     DEBUG ((DEBUG_INIT, "Option ROM found at %X\n", RomAddress));\r
 \r
     //\r
-    // If the pointer to the PCI Data Structure is invalid, no further images can be located. \r
-    // The PCI Data Structure must be DWORD aligned. \r
+    // If the pointer to the PCI Data Structure is invalid, no further images can be located.\r
+    // The PCI Data Structure must be DWORD aligned.\r
     //\r
     if (PciExpansionRomHeader->PcirOffset == 0 ||\r
         (PciExpansionRomHeader->PcirOffset & 3) != 0 ||\r
@@ -1249,7 +1249,7 @@ Undi16SimpleNetworkLoadUndi (
     }\r
 \r
     DEBUG (\r
-        (DEBUG_INIT, \r
+        (DEBUG_INIT,\r
          "PCI device with matchinng VendorId and DeviceId (%d,%d)\n",\r
          (UINTN) PciDataStructure->VendorId,\r
          (UINTN) PciDataStructure->DeviceId)\r
@@ -1260,7 +1260,7 @@ Undi16SimpleNetworkLoadUndi (
     if (!EFI_ERROR (Status)) {\r
       return EFI_SUCCESS;\r
     }\r
-    \r
+\r
     //\r
     // Free resources allocated in LaunchBaseCode\r
     //\r
@@ -1274,8 +1274,8 @@ Undi16SimpleNetworkLoadUndi (
   Unload 16 bit UNDI Option ROM from memory\r
 \r
   @param SimpleNetworkDevice A pointer to EFI_SIMPLE_NETWORK_DEV data structure.\r
-  \r
-  @return EFI_STATUS \r
+\r
+  @return EFI_STATUS\r
 **/\r
 EFI_STATUS\r
 Undi16SimpleNetworkUnloadUndi (\r
@@ -1331,9 +1331,9 @@ Undi16SimpleNetworkUnloadUndi (
 \r
   @param SimpleNetworkDevice A pointer to EFI_SIMPLE_NETWORK_DEV data structure.\r
   @param Ax                  PCI address of Undi device.\r
-  \r
-  @retval EFI_DEVICE_ERROR Fail to start 16 bit UNDI ROM. \r
-  @retval Others           Status of start 16 bit UNDI ROM. \r
+\r
+  @retval EFI_DEVICE_ERROR Fail to start 16 bit UNDI ROM.\r
+  @retval Others           Status of start 16 bit UNDI ROM.\r
 **/\r
 EFI_STATUS\r
 Undi16SimpleNetworkStartUndi (\r
@@ -1376,9 +1376,9 @@ Undi16SimpleNetworkStartUndi (
   Stop the UNDI interface\r
 \r
   @param SimpleNetworkDevice A pointer to EFI_SIMPLE_NETWORK_DEV data structure.\r
-  \r
-  @retval EFI_DEVICE_ERROR Fail to stop 16 bit UNDI ROM. \r
-  @retval Others           Status of stop 16 bit UNDI ROM. \r
+\r
+  @retval EFI_DEVICE_ERROR Fail to stop 16 bit UNDI ROM.\r
+  @retval Others           Status of stop 16 bit UNDI ROM.\r
 **/\r
 EFI_STATUS\r
 Undi16SimpleNetworkStopUndi (\r
@@ -1411,9 +1411,9 @@ Undi16SimpleNetworkStopUndi (
   Cleanup Unid network interface\r
 \r
   @param SimpleNetworkDevice A pointer to EFI_SIMPLE_NETWORK_DEV data structure.\r
-  \r
-  @retval EFI_DEVICE_ERROR Fail to cleanup 16 bit UNDI ROM. \r
-  @retval Others           Status of cleanup 16 bit UNDI ROM. \r
+\r
+  @retval EFI_DEVICE_ERROR Fail to cleanup 16 bit UNDI ROM.\r
+  @retval Others           Status of cleanup 16 bit UNDI ROM.\r
 **/\r
 EFI_STATUS\r
 Undi16SimpleNetworkCleanupUndi (\r
@@ -1446,9 +1446,9 @@ Undi16SimpleNetworkCleanupUndi (
   Get runtime information for Undi network interface\r
 \r
   @param This A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  \r
-  @retval EFI_SUCCESS Sucess operation. \r
-  @retval Others      Fail to get runtime information for Undi network interface. \r
+\r
+  @retval EFI_SUCCESS Sucess operation.\r
+  @retval Others      Fail to get runtime information for Undi network interface.\r
 **/\r
 EFI_STATUS\r
 Undi16SimpleNetworkGetInformation (\r
@@ -1577,8 +1577,8 @@ Undi16SimpleNetworkGetInformation (
   Get NIC type\r
 \r
   @param This A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  \r
-  @retval EFI_SUCCESS Sucess operation. \r
+\r
+  @retval EFI_SUCCESS Sucess operation.\r
   @retval Others      Fail to get NIC type.\r
 **/\r
 EFI_STATUS\r
@@ -1628,8 +1628,8 @@ Undi16SimpleNetworkGetNicType (
   Get NDIS information\r
 \r
   @param This A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  \r
-  @retval EFI_SUCCESS Sucess operation. \r
+\r
+  @retval EFI_SUCCESS Sucess operation.\r
   @retval Others      Fail to get NDIS information.\r
 **/\r
 EFI_STATUS\r
@@ -1687,9 +1687,9 @@ Undi16SimpleNetworkGetNdisInfo (
   @param Frame              The frame buffer to process network interrupt.\r
   @param ProtType           The type network transmit protocol\r
   @param PktType            The type of package.\r
-  \r
-  @retval EFI_DEVICE_ERROR  Fail to execute 16 bit ROM's ISR, or status is invalid. \r
-  @retval EFI_SUCCESS       Success operation. \r
+\r
+  @retval EFI_DEVICE_ERROR  Fail to execute 16 bit ROM's ISR, or status is invalid.\r
+  @retval EFI_SUCCESS       Success operation.\r
 **/\r
 EFI_STATUS\r
 Undi16SimpleNetworkIsr (\r
@@ -1902,7 +1902,7 @@ Undi16SimpleNetworkIsr (
   Call 16 bit UNDI ROM to start the network interface\r
 \r
   @param This       A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  \r
+\r
   @retval EFI_DEVICE_ERROR Network interface has not be initialized.\r
   @retval EFI_DEVICE_ERROR Fail to execute 16 bit ROM call.\r
   @retval EFI_SUCESS       Success operation.\r
@@ -1976,7 +1976,7 @@ Undi16SimpleNetworkStart (
   Call 16 bit UNDI ROM to stop the network interface\r
 \r
   @param This       A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  \r
+\r
   @retval EFI_DEVICE_ERROR Network interface has not be initialized.\r
   @retval EFI_DEVICE_ERROR Fail to execute 16 bit ROM call.\r
   @retval EFI_SUCESS       Success operation.\r
@@ -2024,12 +2024,12 @@ Undi16SimpleNetworkStop (
 // Initialize()\r
 //\r
 /**\r
-  Initialize network interface \r
+  Initialize network interface\r
 \r
   @param This                 A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
   @param ExtraRxBufferSize    The size of extra request receive buffer.\r
   @param ExtraTxBufferSize    The size of extra request transmit buffer.\r
\r
+\r
   @retval EFI_DEVICE_ERROR Fail to execute 16 bit ROM call.\r
   @retval EFI_SUCESS       Success operation.\r
 **/\r
@@ -2147,7 +2147,7 @@ Undi16SimpleNetworkInitialize (
 \r
   @param This                 A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
   @param ExtendedVerification Need extended verfication.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER Invalid This parameter.\r
   @retval EFI_DEVICE_ERROR      Network device has not been initialized.\r
   @retval EFI_NOT_STARTED       Network device has been stopped.\r
@@ -2228,7 +2228,7 @@ Undi16SimpleNetworkReset (
   Shutdown network interface.\r
 \r
   @param This                 A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER Invalid This parameter.\r
   @retval EFI_DEVICE_ERROR      Network device has not been initialized.\r
   @retval EFI_NOT_STARTED       Network device has been stopped.\r
@@ -2341,7 +2341,7 @@ Undi16SimpleNetworkShutdown (
   @param ResetMCastFilter     Whether reset multi cast filter or not\r
   @param MCastFilterCnt       Count of mutli cast filter for different MAC address\r
   @param MCastFilter          Buffer for mustli cast filter for different MAC address.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER Invalid This parameter.\r
   @retval EFI_DEVICE_ERROR      Network device has not been initialized.\r
   @retval EFI_NOT_STARTED       Network device has been stopped.\r
@@ -2481,7 +2481,7 @@ Undi16SimpleNetworkReceiveFilters (
         &SimpleNetworkDevice->SimpleNetworkMode.MCastFilter[Index],\r
         &MCastFilter[Index],\r
         sizeof (EFI_MAC_ADDRESS)\r
-        );      \r
+        );\r
     }\r
   }\r
   //\r
@@ -2498,7 +2498,7 @@ Undi16SimpleNetworkReceiveFilters (
   @param This                 A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
   @param Reset                Whether reset station MAC address to permanent address\r
   @param New                  A pointer to New address\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER Invalid This parameter.\r
   @retval EFI_DEVICE_ERROR      Network device has not been initialized.\r
   @retval EFI_NOT_STARTED       Network device has been stopped.\r
@@ -2852,11 +2852,11 @@ Undi16SimpleNetworkStatistics (
   @param IPv6                 IPv6 or IPv4\r
   @param IP                   A pointer to given Ip address.\r
   @param MAC                  On return, translated MAC address.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER Invalid This parameter.\r
   @retval EFI_INVALID_PARAMETER Invalid IP address.\r
   @retval EFI_INVALID_PARAMETER Invalid return buffer for holding MAC address.\r
-  @retval EFI_UNSUPPORTED       Do not support IPv6 \r
+  @retval EFI_UNSUPPORTED       Do not support IPv6\r
   @retval EFI_DEVICE_ERROR      Network device has not been initialized.\r
   @retval EFI_NOT_STARTED       Network device has been stopped.\r
   @retval EFI_DEVICE_ERROR      Invalid status for network device\r
@@ -2937,7 +2937,7 @@ Undi16SimpleNetworkMCastIpToMac (
 // NvData()\r
 //\r
 /**\r
-  Performs read and write operations on the NVRAM device attached to a \r
+  Performs read and write operations on the NVRAM device attached to a\r
   network interface.\r
 \r
   @param  This       The protocol instance pointer.\r
@@ -2972,7 +2972,7 @@ Undi16SimpleNetworkNvData (
 // GetStatus()\r
 //\r
 /**\r
-  Reads the current interrupt status and recycled transmit buffer status from \r
+  Reads the current interrupt status and recycled transmit buffer status from\r
   a network interface.\r
 \r
   @param  This            The protocol instance pointer.\r
@@ -3089,7 +3089,7 @@ Undi16SimpleNetworkGetStatus (
 \r
   @retval EFI_SUCCESS           The packet was placed on the transmit queue.\r
   @retval EFI_NOT_STARTED       The network interface has not been started.\r
-  @retval EFI_NOT_READY         The network interface is too busy to accept this transmit request.                      \r
+  @retval EFI_NOT_READY         The network interface is too busy to accept this transmit request.\r
   @retval EFI_BUFFER_TOO_SMALL  The BufferSize parameter is too small.\r
   @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.\r
   @retval EFI_DEVICE_ERROR      The command could not be sent to the network interface.\r
@@ -3257,7 +3257,7 @@ Undi16SimpleNetworkTransmit (
 \r
 /**\r
   Receives a packet from a network interface.\r
-  \r
+\r
   @param  This       The protocol instance pointer.\r
   @param  HeaderSize The size, in bytes, of the media header received on the network\r
                      interface. If this parameter is NULL, then the media header size\r
@@ -3377,7 +3377,7 @@ Undi16SimpleNetworkReceive (
 \r
   @param Event      Event used with WaitForEvent() to wait for a packet to be received.\r
   @param Context    Event Context\r
-  \r
+\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -3401,7 +3401,7 @@ Undi16SimpleNetworkWaitForPacket (
   Check whether packet is ready for receive.\r
 \r
   @param This The protocol instance pointer.\r
-  \r
+\r
   @retval  EFI_SUCCESS           Receive data is ready.\r
   @retval  EFI_NOT_STARTED       The network interface has not been started.\r
   @retval  EFI_NOT_READY         The network interface is too busy to accept this transmit\r
@@ -3466,11 +3466,11 @@ Undi16SimpleNetworkCheckForPacket (
 \r
 /**\r
   Signal handlers for ExitBootServices event.\r
-  \r
-  Clean up any Real-mode UNDI residue from the system \r
-   \r
+\r
+  Clean up any Real-mode UNDI residue from the system\r
+\r
   @param Event      ExitBootServices event\r
-  @param Context \r
+  @param Context\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -3494,7 +3494,7 @@ Undi16SimpleNetworkEvent (
 \r
   @param NumPages     The number pages want to be allocated.\r
   @param Buffer       On return, allocated buffer.\r
-  \r
+\r
   @return Status of allocating pages.\r
 **/\r
 EFI_STATUS\r
index 447783cd2ec43eaadb15e4a95f99db53d9159a34..501e27b9c8a557bffdb8a87fa98e322bed77bbd0 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 1999 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -119,7 +119,7 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gBiosSnp16ComponentName2;
   @param This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param Controller           The handle of the controller to test.\r
   @param RemainingDevicePath  A pointer to the remaining portion of a device path.\r
-  \r
+\r
   @retval EFI_SUCCESS    The driver supports given controller.\r
   @retval EFI_UNSUPPORT  The driver doesn't support given controller.\r
   @retval Other          Other errors prevent driver finishing to test\r
@@ -140,8 +140,8 @@ BiosSnp16DriverBindingSupported (
   @param This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param Controller           The handle of the controller to test.\r
   @param RemainingDevicePath  A pointer to the remaining portion of a device path.\r
-  \r
-  @retval  EFI_SUCCESS          - The device was started.   \r
+\r
+  @retval  EFI_SUCCESS          - The device was started.\r
   @retval  EFI_DEVICE_ERROR     - The device could not be started due to a device error.\r
   @retval  EFI_OUT_OF_RESOURCES - The request could not be completed due to a lack of resources.\r
 **/\r
@@ -162,7 +162,7 @@ BiosSnp16DriverBindingStart (
   @param NumberOfChildren   The number of child device handles in ChildHandleBuffer.\r
   @param ChildHandleBuffer  An array of child handles to be freed. May be NULL if\r
                             NumberOfChildren is 0.\r
-  \r
+\r
   @retval  EFI_SUCCESS      - The device was stopped.\r
   @retval  EFI_DEVICE_ERROR - The device could not be stopped due to a device error.\r
 **/\r
@@ -183,7 +183,7 @@ BiosSnp16DriverBindingStop (
   Call 16 bit UNDI ROM to start the network interface\r
 \r
   @param This       A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  \r
+\r
   @retval EFI_DEVICE_ERROR Network interface has not be initialized.\r
   @retval EFI_DEVICE_ERROR Fail to execute 16 bit ROM call.\r
   @retval EFI_SUCESS       Success operation.\r
@@ -199,7 +199,7 @@ Undi16SimpleNetworkStart (
   Call 16 bit UNDI ROM to stop the network interface\r
 \r
   @param This       A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  \r
+\r
   @retval EFI_DEVICE_ERROR Network interface has not be initialized.\r
   @retval EFI_DEVICE_ERROR Fail to execute 16 bit ROM call.\r
   @retval EFI_SUCESS       Success operation.\r
@@ -212,12 +212,12 @@ Undi16SimpleNetworkStop (
 ;\r
 \r
 /**\r
-  Initialize network interface \r
+  Initialize network interface\r
 \r
   @param This                 A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
   @param ExtraRxBufferSize    The size of extra request receive buffer.\r
   @param ExtraTxBufferSize    The size of extra request transmit buffer.\r
\r
+\r
   @retval EFI_DEVICE_ERROR Fail to execute 16 bit ROM call.\r
   @retval EFI_SUCESS       Success operation.\r
 **/\r
@@ -235,7 +235,7 @@ Undi16SimpleNetworkInitialize (
 \r
   @param This                 A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
   @param ExtendedVerification Need extended verfication.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER Invalid This parameter.\r
   @retval EFI_DEVICE_ERROR      Network device has not been initialized.\r
   @retval EFI_NOT_STARTED       Network device has been stopped.\r
@@ -254,7 +254,7 @@ Undi16SimpleNetworkReset (
   Shutdown network interface.\r
 \r
   @param This                 A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER Invalid This parameter.\r
   @retval EFI_DEVICE_ERROR      Network device has not been initialized.\r
   @retval EFI_NOT_STARTED       Network device has been stopped.\r
@@ -277,7 +277,7 @@ Undi16SimpleNetworkShutdown (
   @param ResetMCastFilter     Whether reset multi cast filter or not\r
   @param MCastFilterCnt       Count of mutli cast filter for different MAC address\r
   @param MCastFilter          Buffer for mustli cast filter for different MAC address.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER Invalid This parameter.\r
   @retval EFI_DEVICE_ERROR      Network device has not been initialized.\r
   @retval EFI_NOT_STARTED       Network device has been stopped.\r
@@ -302,7 +302,7 @@ Undi16SimpleNetworkReceiveFilters (
   @param This                 A pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
   @param Reset                Whether reset station MAC address to permanent address\r
   @param New                  A pointer to New address\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER Invalid This parameter.\r
   @retval EFI_DEVICE_ERROR      Network device has not been initialized.\r
   @retval EFI_NOT_STARTED       Network device has been stopped.\r
@@ -325,7 +325,7 @@ Undi16SimpleNetworkStationAddress (
   @param Reset                Whether cleanup old statistics data.\r
   @param StatisticsSize       The buffer of statistics table.\r
   @param StatisticsTable      A pointer to statistics buffer.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER Invalid This parameter.\r
   @retval EFI_DEVICE_ERROR      Network device has not been initialized.\r
   @retval EFI_NOT_STARTED       Network device has been stopped.\r
@@ -349,11 +349,11 @@ Undi16SimpleNetworkStatistics (
   @param IPv6                 IPv6 or IPv4\r
   @param IP                   A pointer to given Ip address.\r
   @param MAC                  On return, translated MAC address.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER Invalid This parameter.\r
   @retval EFI_INVALID_PARAMETER Invalid IP address.\r
   @retval EFI_INVALID_PARAMETER Invalid return buffer for holding MAC address.\r
-  @retval EFI_UNSUPPORTED       Do not support IPv6 \r
+  @retval EFI_UNSUPPORTED       Do not support IPv6\r
   @retval EFI_DEVICE_ERROR      Network device has not been initialized.\r
   @retval EFI_NOT_STARTED       Network device has been stopped.\r
   @retval EFI_DEVICE_ERROR      Invalid status for network device\r
@@ -370,7 +370,7 @@ Undi16SimpleNetworkMCastIpToMac (
 ;\r
 \r
 /**\r
-  Performs read and write operations on the NVRAM device attached to a \r
+  Performs read and write operations on the NVRAM device attached to a\r
   network interface.\r
 \r
   @param  This       The protocol instance pointer.\r
@@ -401,7 +401,7 @@ Undi16SimpleNetworkNvData (
 ;\r
 \r
 /**\r
-  Reads the current interrupt status and recycled transmit buffer status from \r
+  Reads the current interrupt status and recycled transmit buffer status from\r
   a network interface.\r
 \r
   @param  This            The protocol instance pointer.\r
@@ -460,7 +460,7 @@ Undi16SimpleNetworkGetStatus (
 \r
   @retval EFI_SUCCESS           The packet was placed on the transmit queue.\r
   @retval EFI_NOT_STARTED       The network interface has not been started.\r
-  @retval EFI_NOT_READY         The network interface is too busy to accept this transmit request.                      \r
+  @retval EFI_NOT_READY         The network interface is too busy to accept this transmit request.\r
   @retval EFI_BUFFER_TOO_SMALL  The BufferSize parameter is too small.\r
   @retval EFI_INVALID_PARAMETER One or more of the parameters has an unsupported value.\r
   @retval EFI_DEVICE_ERROR      The command could not be sent to the network interface.\r
@@ -530,7 +530,7 @@ Undi16SimpleNetworkReceive (
 \r
   @param Event      Event used with WaitForEvent() to wait for a packet to be received.\r
   @param Context    Event Context\r
-  \r
+\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -544,7 +544,7 @@ Undi16SimpleNetworkWaitForPacket (
   Check whether packet is ready for receive.\r
 \r
   @param This The protocol instance pointer.\r
-  \r
+\r
   @retval  EFI_SUCCESS           Receive data is ready.\r
   @retval  EFI_NOT_STARTED       The network interface has not been started.\r
   @retval  EFI_NOT_READY         The network interface is too busy to accept this transmit\r
@@ -564,7 +564,7 @@ Undi16SimpleNetworkCheckForPacket (
  Cache Interrupt verctor address converted from IVT number.\r
 \r
  @param VectorNumber  IVT number\r
\r
+\r
  @retval EFI_SUCCESS Success to operation.\r
 **/\r
 EFI_STATUS\r
@@ -574,10 +574,10 @@ CacheVectorAddress (
 ;\r
 \r
 /**\r
- Get interrupt vector address according to IVT number. \r
-  \r
+ Get interrupt vector address according to IVT number.\r
+\r
  @param VectorNumber    Given IVT number\r
\r
+\r
  @return cached interrupt vector address.\r
 **/\r
 EFI_STATUS\r
@@ -590,14 +590,14 @@ RestoreCachedVectorAddress (
   If available, launch the BaseCode from a NIC option ROM.\r
   This should install the !PXE and PXENV+ structures in memory for\r
   subsequent use.\r
-  \r
+\r
 \r
   @param SimpleNetworkDevice    Simple network device instance\r
   @param RomAddress             The ROM base address for NIC rom.\r
-  \r
-  @retval EFI_NOT_FOUND         The check sum does not match \r
-  @retval EFI_NOT_FOUND         Rom ID offset is wrong \r
-  @retval EFI_NOT_FOUND         No Rom ID structure is found \r
+\r
+  @retval EFI_NOT_FOUND         The check sum does not match\r
+  @retval EFI_NOT_FOUND         Rom ID offset is wrong\r
+  @retval EFI_NOT_FOUND         No Rom ID structure is found\r
 **/\r
 EFI_STATUS\r
 LaunchBaseCode (\r
@@ -607,7 +607,7 @@ LaunchBaseCode (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   START UNDI\r
   Op-Code: PXENV_START_UNDI (0000h)\r
   Input: Far pointer to a PXENV_START_UNDI_T parameter structure that has been initialized by the caller.\r
@@ -636,13 +636,13 @@ LaunchBaseCode (
   contents of these registers can be found in the [PnP], [PCI] and\r
   [BBS] specifications.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.    \r
+  Status: See the PXENV_STATUS_xxx constants.\r
 \r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                                \r
-  @return Return value of PXE option ROM far call.                                \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeStartUndi (\r
@@ -652,8 +652,8 @@ PxeStartUndi (
 ;\r
 \r
 /**\r
-  PXE \r
-  UNDI STARTUP    \r
+  PXE\r
+  UNDI STARTUP\r
   Op-Code: PXENV_UNDI_STARTUP (0001h)\r
   Input: Far pointer to a PXENV_UNDI_STARTUP_T parameter structure that has been initialized by the\r
   caller.\r
@@ -670,7 +670,7 @@ PxeStartUndi (
   chaining interrupt 1Ah. This must be done by the PXENV_START_UNDI and\r
   PXENV_STOP_UNDI API calls.\r
   This service cannot be used in protected mode.\r
-  typedef struct \r
+  typedef struct\r
   {\r
       PXENV_STATUS Status;\r
   } PXENV_UNDI_STARTUP_T;\r
@@ -680,10 +680,10 @@ PxeStartUndi (
   Status: See the PXENV_STATUS_xxx constants.\r
 \r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                                \r
-  @return Return value of PXE option ROM far call.    \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiStartup (\r
@@ -693,7 +693,7 @@ PxeUndiStartup (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI CLEANUP\r
   Op-Code: PXENV_UNDI_CLEANUP (0002h)\r
   Input: Far pointer to a PXENV_UNDI_CLEANUP_T parameter structure.\r
@@ -713,10 +713,10 @@ PxeUndiStartup (
   Status: See the PXENV_STATUS_xxx constants.\r
 \r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                                \r
-  @return Return value of PXE option ROM far call. \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiCleanup (\r
@@ -726,7 +726,7 @@ PxeUndiCleanup (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI INITIALIZE\r
   Op-Code: PXENV_UNDI_INITIALIZE (0003h)\r
   Input: Far pointer to a PXENV_UNDI_INITIALIZE_T parameter structure that has been initialized by the\r
@@ -756,13 +756,13 @@ PxeUndiCleanup (
   protocol.ini file was done by NDIS.) This value can be NULL for any\r
   other application interfacing to the universal NIC driver\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.    \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance.\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                                \r
-  @return Return value of PXE option ROM far call. \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiInitialize (\r
@@ -773,8 +773,8 @@ PxeUndiInitialize (
 \r
 /**\r
   Wrapper routine for reset adapter.\r
-  \r
-  PXE \r
+\r
+  PXE\r
   UNDI RESET ADAPTER\r
   Op-Code: PXENV_UNDI_RESET_ADAPTER (0004h)\r
   Input: Far pointer to a PXENV_UNDI_RESET_ADAPTER_t parameter structure that has been initialized\r
@@ -806,13 +806,13 @@ PxeUndiInitialize (
   addresses.\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance.\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-  @param  RxFilter             Filter setting mask value for PXE recive .     \r
-                               \r
-  @return Return value of PXE option ROM far call. \r
+  @param  RxFilter             Filter setting mask value for PXE recive .\r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiResetNic (\r
@@ -823,7 +823,7 @@ PxeUndiResetNic (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI SHUTDOWN\r
   Op-Code: PXENV_UNDI_SHUTDOWN (0005h)\r
   Input: Far pointer to a PXENV_UNDI_SHUTDOWN_T parameter.\r
@@ -833,7 +833,7 @@ PxeUndiResetNic (
   Description: This call resets the network adapter and leaves it in a safe state for another driver to program it.\r
   Note: The contents of the PXENV_UNDI_STARTUP parameter structure need to be saved by the\r
   Universal NIC Driver in case PXENV_UNDI_INITIALIZE is called again.\r
-  typedef struct \r
+  typedef struct\r
   {\r
     PXENV_STATUS Status;\r
   } PXENV_UNDI_SHUTDOWN_T;\r
@@ -841,12 +841,12 @@ PxeUndiResetNic (
   N/A\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.   \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiShutdown (\r
@@ -856,7 +856,7 @@ PxeUndiShutdown (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI OPEN\r
   Op-Code: PXENV_UNDI_OPEN (0006h)\r
   Input: Far pointer to a PXENV_UNDI_OPEN_T parameter structure that has been initialized by the caller.\r
@@ -888,12 +888,12 @@ PxeUndiShutdown (
   R_Mcast_Buf: See definition in UNDI RESET ADAPTER (0004h).\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiOpen (\r
@@ -903,7 +903,7 @@ PxeUndiOpen (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI CLOSE\r
   Op-Code: PXENV_UNDI_CLOSE (0007h)\r
   Input: Far pointer to a PXENV_UNDI_CLOSE_T parameter.\r
@@ -919,12 +919,12 @@ PxeUndiOpen (
   N/A\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiClose (\r
@@ -934,7 +934,7 @@ PxeUndiClose (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI TRANSMIT PACKET\r
   Op-Code: PXENV_UNDI_TRANSMIT (0008h)\r
   Input: Far pointer to a PXENV_UNDI_TRANSMIT_T parameter structure that\r
@@ -1004,13 +1004,13 @@ PxeUndiClose (
   TDDataPtr: Segment:Offset of the transmit block.\r
   DataBlock: Array of transmit data blocks.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants  \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiTransmit (\r
@@ -1020,7 +1020,7 @@ PxeUndiTransmit (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI SET MULTICAST ADDRESS\r
   Op-Code: PXENV_UNDI_SET_MCAST_ADDRESS (0009h)\r
   Input: Far pointer to a PXENV_TFTP_SET_MCAST_ADDRESS_t parameter structure that has been\r
@@ -1038,13 +1038,13 @@ PxeUndiTransmit (
   R_Mcast_Buf: See description in the UNDI RESET ADAPTER\r
   (0004h) API.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants        \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiSetMcastAddr (\r
@@ -1054,7 +1054,7 @@ PxeUndiSetMcastAddr (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI SET STATION ADDRESS\r
   Op-Code: PXENV_UNDI_SET_STATION_ADDRESS (000Ah)\r
   Input: Far pointer to a PXENV_UNDI_SET_STATION_ADDRESS_t parameter structure that has been\r
@@ -1073,13 +1073,13 @@ PxeUndiSetMcastAddr (
   StationAddress: Temporary MAC address to be used for\r
   transmit and receive.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.     \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiSetStationAddr (\r
@@ -1089,7 +1089,7 @@ PxeUndiSetStationAddr (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI SET PACKET FILTER\r
   Op-Code: PXENV_UNDI_SET_PACKET_FILTER (000Bh)\r
   Input: Far pointer to a PXENV_UNDI_SET_PACKET_FILTER_T parameter structure that has been\r
@@ -1107,13 +1107,13 @@ PxeUndiSetStationAddr (
   Filter: See the receive filter values in the UNDI OPEN\r
   (0006h) API description.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.   \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiSetPacketFilter (\r
@@ -1123,7 +1123,7 @@ PxeUndiSetPacketFilter (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET INFORMATION\r
   Op-Code: PXENV_UNDI_GET_INFORMATION (000Ch)\r
   Input: Far pointer to a PXENV_UNDI_GET_INFORMATION_T parameter structure that has been\r
@@ -1166,13 +1166,13 @@ PxeUndiSetPacketFilter (
   PermNodeAddress: Permanent hardware address.\r
   ROMAddress: Real mode ROM segment address.\r
   RxBufCnt: Receive queue length.\r
-  TxBufCnt: Transmit queue length.  \r
-  \r
+  TxBufCnt: Transmit queue length.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetInformation (\r
@@ -1182,7 +1182,7 @@ PxeUndiGetInformation (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET STATISTICS\r
   Op-Code: PXENV_UNDI_GET_STATISTICS (000Dh)\r
   Input: Far pointer to a PXENV_UNDI_GET_STATISTICS_T parameter structure that has been initialized\r
@@ -1208,12 +1208,12 @@ PxeUndiGetInformation (
   error.\r
   RcvResourceErrors: Number of frames discarded\r
   because receive queue was full.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetStatistics (\r
@@ -1223,7 +1223,7 @@ PxeUndiGetStatistics (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI CLEAR STATISTICS\r
   Op-Code: PXENV_UNDI_CLEAR_STATISTICS (000Eh)\r
   Input: Far pointer to a PXENV_UNDI_CLEAR_STATISTICS_T parameter.\r
@@ -1238,12 +1238,12 @@ PxeUndiGetStatistics (
   N/A\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiClearStatistics (\r
@@ -1253,7 +1253,7 @@ PxeUndiClearStatistics (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI INITIATE DIAGS\r
   Op-Code: PXENV_UNDI_INITIATE_DIAGS (000Fh)\r
   Input: Far pointer to a PXENV_UNDI_INITIATE_DIAGS_T parameter.\r
@@ -1268,13 +1268,13 @@ PxeUndiClearStatistics (
   Set before calling API service\r
   N/A\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.    \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiInitiateDiags (\r
@@ -1284,7 +1284,7 @@ PxeUndiInitiateDiags (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI FORCE INTERRUPT\r
   Op-Code: PXENV_UNDI_FORCE_INTERRUPT (0010h)\r
   Input: Far pointer to a PXENV_UNDI_FORCE_INTERRUPT_T parameter structure that has been\r
@@ -1305,13 +1305,13 @@ PxeUndiInitiateDiags (
   Set before calling API service\r
   N/A\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.  \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiForceInterrupt (\r
@@ -1321,7 +1321,7 @@ PxeUndiForceInterrupt (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET MULTICAST ADDRESS\r
   Op-Code: PXENV_UNDI_GET_MCAST_ADDRESS (0011h)\r
   Input: Far pointer to a PXENV_GET_MCAST_ADDRESS_t parameter structure that has been initialized\r
@@ -1340,12 +1340,12 @@ PxeUndiForceInterrupt (
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
   MediaAddr: MAC multicast address.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetMcastAddr (\r
@@ -1355,7 +1355,7 @@ PxeUndiGetMcastAddr (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET NIC TYPE\r
   Op-Code: PXENV_UNDI_GET_NIC_TYPE (0012h)\r
   Input: Far pointer to a PXENV_UNDI_GET_NIC_TYPE_T parameter structure that has been initialized by\r
@@ -1405,13 +1405,13 @@ PxeUndiGetMcastAddr (
   NICType: Type of NIC information stored in the parameter\r
   structure.\r
   Info: Information about the fields in this union can be found\r
-  in the [PnP] and [PCI] specifications    \r
-  \r
+  in the [PnP] and [PCI] specifications\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetNicType (\r
@@ -1421,7 +1421,7 @@ PxeUndiGetNicType (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET IFACE INFO\r
   Op-Code: PXENV_UNDI_GET_IFACE_INFO (0013h)\r
   Input: Far pointer to a PXENV_UNDI_GET_IFACE_INFO_t parameter structure that has been initialized\r
@@ -1454,13 +1454,13 @@ PxeUndiGetNicType (
   to the protocol driver.\r
   LinkSpeed: Defined in the NDIS 2.0 specification.\r
   ServiceFlags: Defined in the NDIS 2.0 specification.\r
-  Reserved: Must be zero.       \r
-  \r
+  Reserved: Must be zero.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetNdisInfo (\r
@@ -1470,7 +1470,7 @@ PxeUndiGetNdisInfo (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI ISR\r
   Op-Code: PXENV_UNDI_ISR (0014h)\r
   Input: Far pointer to a PXENV_UNDI_ISR_T parameter structure that has been initialized by the caller.\r
@@ -1512,13 +1512,13 @@ PxeUndiGetNdisInfo (
   if there is no other interrupt status to be processed, UNDI re-enables the interrupt at the\r
   NETWORK INTERFACE level and returns PXENV_UNDI_ISR_OUT_DONE in the FuncFlag.\r
   IMPORTANT: It is possible for the protocol driver to be interrupted again while in the\r
-  strategy routine when the UNDI re-enables interrupts.   \r
-  \r
+  strategy routine when the UNDI re-enables interrupts.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiIsr (\r
@@ -1528,7 +1528,7 @@ PxeUndiIsr (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   STOP UNDI\r
   Op-Code: PXENV_STOP_UNDI (0015h)\r
   Input: Far pointer to a PXENV_STOP_UNDI_T parameter structure that has been initialized by the caller.\r
@@ -1547,13 +1547,13 @@ PxeUndiIsr (
   Set before calling API service\r
   N/A\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.      \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiStop (\r
@@ -1563,7 +1563,7 @@ PxeUndiStop (
 ;\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET STATE\r
   Op-Code: PXENV_UNDI_GET_STATE (0015h)\r
   Input: Far pointer to a PXENV_UNDI_GET_STATE_T parameter.\r
@@ -1595,13 +1595,13 @@ PxeUndiStop (
   constants.\r
   Description: This API function will be called at different levels of processing the interrupt. The FuncFlag field in\r
   the parameter block indicates the operation to be performed for the call. This field is filled with the\r
-  status of that operation on return.     \r
-  \r
+  status of that operation on return.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetState (\r
@@ -1619,14 +1619,14 @@ PxeUndiGetState (
       push offset pxe_data_call_struct        ;is pushed onto stack.\r
       push Index                              ;UINT16 is pushed onto stack.\r
       call dword ptr (s_PXE ptr es:[di]).EntryPointSP\r
-      add sp, 6 ;Caller cleans up stack.  \r
+      add sp, 6 ;Caller cleans up stack.\r
 \r
   @param SimpleNetworkDevice    Device instance for simple network\r
   @param Table                 Point to parameter/retun value table for legacy far call\r
   @param TableSize              The size of parameter/return value table\r
   @param CallIndex              The index of legacy call.\r
-  \r
-  @return EFI_STATUS \r
+\r
+  @return EFI_STATUS\r
 **/\r
 EFI_STATUS\r
 MakePxeCall (\r
@@ -1642,7 +1642,7 @@ MakePxeCall (
 \r
   @param NumPages     The number pages want to be allocated.\r
   @param Buffer       On return, allocated buffer.\r
-  \r
+\r
   @return Status of allocating pages.\r
 **/\r
 EFI_STATUS\r
index 61c640eac32fe5bb1ea72111c0af79510bbf3eb0..526f4fd7c380b241c8689e354eafb382f598589f 100644 (file)
@@ -3,14 +3,14 @@
 //\r
 // Thunk wrapper UEFI driver to produce EFI SNP protocol based on legacy 16 NIC ROM.\r
 //\r
-// Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
 // of the BSD License which accompanies this distribution.  The\r
 // full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 708e27b6f44752fe3f5cd289b067b36d4a1348c8..19b39915013d7cd6abeacb2dcc0099f5fd1acf26 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // BiosSnp16 Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
@@ -14,8 +14,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Legacy Simple Network Protocol DXE Driver"\r
 \r
 \r
index a1dc86786b1d4514df7e0af884433e4bdf87a569..311918cbea8d24fd3592d1e9e6e9ebf054f6e861 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Helper Routines that use a PXE-enabled NIC option ROM.\r
\r
-Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>\r
+\r
+Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -39,7 +39,7 @@ UINT32 CachedVectorAddress[0x100];
  Cache Interrupt verctor address converted from IVT number.\r
 \r
  @param VectorNumber  IVT number\r
\r
+\r
  @retval EFI_SUCCESS Success to operation.\r
 **/\r
 EFI_STATUS\r
@@ -55,10 +55,10 @@ CacheVectorAddress (
 }\r
 \r
 /**\r
- Get interrupt vector address according to IVT number. \r
-  \r
+ Get interrupt vector address according to IVT number.\r
+\r
  @param VectorNumber    Given IVT number\r
\r
+\r
  @return cached interrupt vector address.\r
 **/\r
 EFI_STATUS\r
@@ -74,10 +74,10 @@ RestoreCachedVectorAddress (
 }\r
 \r
 /**\r
- Print Undi loader table. \r
+ Print Undi loader table.\r
+\r
+ @param UndiLoaderStructure Point to Undi Loader table structure.\r
 \r
- @param UndiLoaderStructure Point to Undi Loader table structure. \r
\r
 **/\r
 VOID\r
 Print_Undi_Loader_Table (\r
@@ -108,12 +108,12 @@ Print_Undi_Loader_Table (
 /**\r
   Simple table dumper.  The ROMID table is necessary in order to effect\r
   the "Early UNDI" trick.  Herein, the UNDI layer can be loaded in the\r
-  pre-boot phase without having to download a Network Boot Program \r
+  pre-boot phase without having to download a Network Boot Program\r
   across the wire.  It is required in the implementation in that we\r
   are not using PXE.\r
 \r
   @param RomIDStructure Point to RomID structure.\r
\r
+\r
 **/\r
 VOID\r
 Print_ROMID_Table (\r
@@ -199,7 +199,7 @@ Print_ROMID_Table (
   Print PXE table.\r
 \r
   @param PxeTable Point to PXE table structure\r
-  \r
+\r
 **/\r
 VOID\r
 Print_PXE_Table (\r
@@ -351,7 +351,7 @@ Print_PXE_Table (
   Print PXENV table.\r
 \r
   @param PxenvTable Point to PXENV\r
-  \r
+\r
 **/\r
 VOID\r
 Print_PXENV_Table (\r
@@ -425,14 +425,14 @@ Print_PXENV_Table (
   If available, launch the BaseCode from a NIC option ROM.\r
   This should install the !PXE and PXENV+ structures in memory for\r
   subsequent use.\r
-  \r
+\r
 \r
   @param SimpleNetworkDevice    Simple network device instance\r
   @param RomAddress             The ROM base address for NIC rom.\r
-  \r
-  @retval EFI_NOT_FOUND         The check sum does not match \r
-  @retval EFI_NOT_FOUND         Rom ID offset is wrong \r
-  @retval EFI_NOT_FOUND         No Rom ID structure is found \r
+\r
+  @retval EFI_NOT_FOUND         The check sum does not match\r
+  @retval EFI_NOT_FOUND         Rom ID offset is wrong\r
+  @retval EFI_NOT_FOUND         No Rom ID structure is found\r
 **/\r
 EFI_STATUS\r
 LaunchBaseCode (\r
@@ -819,14 +819,14 @@ LaunchBaseCode (
       push offset pxe_data_call_struct        ;is pushed onto stack.\r
       push Index                              ;UINT16 is pushed onto stack.\r
       call dword ptr (s_PXE ptr es:[di]).EntryPointSP\r
-      add sp, 6 ;Caller cleans up stack.  \r
+      add sp, 6 ;Caller cleans up stack.\r
 \r
   @param SimpleNetworkDevice    Device instance for simple network\r
   @param Table                 Point to parameter/retun value table for legacy far call\r
   @param TableSize              The size of parameter/return value table\r
   @param CallIndex              The index of legacy call.\r
-  \r
-  @return EFI_STATUS \r
+\r
+  @return EFI_STATUS\r
 **/\r
 EFI_STATUS\r
 MakePxeCall (\r
index 54503a840f37b722c1c6501800fcdffb8a5712ed..fee7ab220743ae1c18dcd54ae497cfc7798fabd0 100644 (file)
@@ -2,12 +2,12 @@
   These are PXE Specification 2.1-compliant data structures and defines.\r
 \r
   This file relies upon the existence of a PXE-compliant ROM\r
-  in memory, as defined by the Preboot Execution Environment \r
+  in memory, as defined by the Preboot Execution Environment\r
   Specification (PXE), Version 2.1, located at\r
 \r
   http://developer.intel.com/ial/wfm/wfmspecs.htm\r
 \r
-Copyright (c) 1999 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -69,7 +69,7 @@ typedef UINT32  ADDR32;
 \r
 //\r
 //    Status codes returned in the status word of PXENV API parameter structures.\r
-// \r
+//\r
 //    Generic API errors - these do not match up with the M0x or E0x messages\r
 //    that are reported by the loader.\r
 //\r
@@ -92,7 +92,7 @@ typedef enum {
 \r
 /* Driver errors (0x60 to 0x6F) */\r
 \r
-// These errors are for UNDI compatible NIC drivers. \r
+// These errors are for UNDI compatible NIC drivers.\r
 #define PXENV_STATUS_UNDI_INVALID_FUNCTION          0x60\r
 #define PXENV_STATUS_UNDI_MEDIATEST_FAILED          0x61\r
 #define PXENV_STATUS_UNDI_CANNOT_INIT_NIC_FOR_MCAST 0x62\r
@@ -260,7 +260,7 @@ typedef struct {
 \r
 #define ADDR_LEN                      16\r
 #define MAXNUM_MCADDR                 8\r
-#define IPLEN                         4       ///< length of an IP address \r
+#define IPLEN                         4       ///< length of an IP address\r
 #define XMT_DESTADDR                  0x0000  ///< destination address given\r
 #define XMT_BROADCAST                 0x0001  ///< use broadcast address\r
 \r
@@ -288,7 +288,7 @@ typedef struct {
   IN UINT16   Ax;           ///< In: These register fields must be\r
   IN UINT16   Bx;           ///<     filled in with the same data\r
   IN UINT16   Dx;           ///<     that was passed to the MLID\r
-  IN UINT16   Di;           ///<     option ROM boot code by the \r
+  IN UINT16   Di;           ///<     option ROM boot code by the\r
   IN UINT16   Es;           ///<     system BIOS.\r
 } PXENV_START_UNDI_T;\r
 \r
@@ -302,7 +302,7 @@ typedef struct {
 \r
 typedef struct {\r
   OUT UINT16  Status;       ///< Out: PXENV_STATUS_xxx\r
-  \r
+\r
   ///\r
   ///  This is an input parameter and is a 32-bit physical address of\r
   ///  a memory  copy of the  driver module in  the protocol.ini file\r
@@ -315,7 +315,7 @@ typedef struct {
   ///  itself.)  This value can be NULL for for any other application\r
   ///  interfacing to the Universal NIC Driver.\r
   ///\r
-  IN UINT32   ProtocolIni; \r
+  IN UINT32   ProtocolIni;\r
   UINT8       Reserved[8];\r
 } PXENV_UNDI_INITIALIZE_T;\r
 \r
@@ -329,23 +329,23 @@ typedef struct {
     Note: The  NIC  driver  does  not  remember  the  multicast\r
     addresses provided in any  call.    So  the  application  must\r
     provide the multicast address  list with all  the calls that\r
-    reset the receive unit of the adapter.  \r
+    reset the receive unit of the adapter.\r
   --*/\r
 typedef struct {\r
-  OUT UINT16  Status;                     ///< Out: PXENV_STATUS_xxx \r
+  OUT UINT16  Status;                     ///< Out: PXENV_STATUS_xxx\r
 } PXENV_UNDI_SHUTDOWN_T;\r
 \r
 typedef struct {\r
   OUT UINT16                  Status;     ///< Out: PXENV_STATUS_xxx\r
-  \r
+\r
   ///\r
   ///  This is  an input parameter and is  adapter specific.  This is\r
   ///  supported  for Universal NDIS 2.0 driver to pass down the Open\r
   ///  flags  provided  by   the  protocol   driver  (See   NDIS  2.0\r
-  ///  specifications).  This can be zero.  \r
-  ///    \r
-  IN UINT16                   OpenFlag;   ///< In: See description below \r
-  IN UINT16                   PktFilter;  ///< In: Filter for receiving \r
+  ///  specifications).  This can be zero.\r
+  ///\r
+  IN UINT16                   OpenFlag;   ///< In: See description below\r
+  IN UINT16                   PktFilter;  ///< In: Filter for receiving\r
 \r
   /* packet. It takes the following */\r
 \r
@@ -355,7 +355,7 @@ typedef struct {
 #define FLTR_DIRECTED 0x0001                ///< directed/multicast\r
 #define FLTR_BRDCST   0x0002                ///< broadcast packets\r
 #define FLTR_PRMSCS   0x0004                ///< any packet on LAN\r
-#define FLTR_SRC_RTG  0x0008                ///< source routing packet \r
+#define FLTR_SRC_RTG  0x0008                ///< source routing packet\r
   IN PXENV_UNDI_MCAST_ADDR_T  McastBuffer;  /* In: */\r
   /* See t_PXENV_UNDI_MCAST_ADDR. */\r
 } PXENV_UNDI_OPEN_T;\r
@@ -370,22 +370,22 @@ typedef struct {
   IN UINT16 ImmedLength;  ///< In: Data buffer length in\r
 \r
   /* bytes. */\r
-  UINT16    XmitOffset;   ///< 16-bit segment & offset of the \r
-  UINT16    XmitSegment;  ///< immediate data buffer. \r
-  UINT16    DataBlkCount; ///< In: Number of data blocks. \r
+  UINT16    XmitOffset;   ///< 16-bit segment & offset of the\r
+  UINT16    XmitSegment;  ///< immediate data buffer.\r
+  UINT16    DataBlkCount; ///< In: Number of data blocks.\r
   struct DataBlk {\r
-    UINT8   TDPtrType;    ///< 0 => 32 bit Phys pointer in TDDataPtr, not supported in this version of LSA \r
+    UINT8   TDPtrType;    ///< 0 => 32 bit Phys pointer in TDDataPtr, not supported in this version of LSA\r
                           ///< 1 => seg:offser in TDDataPtr which can be a real mode or 16-bit protected mode pointer\r
-    UINT8   TDRsvdByte;         ///< Reserved, must be zero. \r
-    UINT16  TDDataLen;          ///< Data block length in bytes. \r
-    UINT16  TDDataPtrOffset;    ///< Far pointer to data buffer. \r
-    UINT16  TDDataPtrSegment;   ///< Far pointer to data buffer. \r
+    UINT8   TDRsvdByte;         ///< Reserved, must be zero.\r
+    UINT16  TDDataLen;          ///< Data block length in bytes.\r
+    UINT16  TDDataPtrOffset;    ///< Far pointer to data buffer.\r
+    UINT16  TDDataPtrSegment;   ///< Far pointer to data buffer.\r
   } DataBlock[MAX_DATA_BLKS];\r
 }\r
 PXENV_UNDI_TBD_T;\r
 \r
 typedef struct {\r
-  OUT UINT16  Status;           ///< Out: PXENV_STATUS_xxx \r
+  OUT UINT16  Status;           ///< Out: PXENV_STATUS_xxx\r
 \r
   ///\r
   ///  This is the protocol  of  the  upper  layer  that  is  calling\r
@@ -403,9 +403,9 @@ typedef struct {
   ///  destination media  address in the field  DestMediaAddr.  If 1,\r
   ///  the   NIC  driver   fills  the   broadcast  address   for  the\r
   ///  destination.\r
-  ///  \r
-  IN UINT8    XmitFlag;   \r
-#define XMT_DESTADDR  0x0000    ///< destination address given \r
+  ///\r
+  IN UINT8    XmitFlag;\r
+#define XMT_DESTADDR  0x0000    ///< destination address given\r
 #define XMT_BROADCAST 0x0001    ///< use broadcast address\r
 \r
   ///\r
@@ -415,70 +415,70 @@ typedef struct {
   ///  media address  must be  obtained by  the upper  level protocol\r
   ///  (with  Address Resolution Protocol) and NIC driver does not do\r
   ///  any address resolution.\r
-  ///  \r
+  ///\r
   IN UINT16   DestAddrOffset;   ///< 16-bit segment & offset of the\r
   IN UINT16   DestAddrSegment;  ///< destination media address\r
 \r
-  \r
-  IN UINT16   TBDOffset;  ///< 16-bit segment & offset of the \r
-  IN UINT16   TBDSegment; ///< transmit buffer descriptor of type \r
 \r
-  /// XmitBufferDesc  \r
+  IN UINT16   TBDOffset;  ///< 16-bit segment & offset of the\r
+  IN UINT16   TBDSegment; ///< transmit buffer descriptor of type\r
+\r
+  /// XmitBufferDesc\r
   IN UINT32   Reserved[2];\r
 } PXENV_UNDI_TRANSMIT_T;\r
 \r
 \r
 typedef struct {\r
-  OUT UINT16                  Status;       ///<  Out: PXENV_STATUS_xxx \r
-  IN PXENV_UNDI_MCAST_ADDR_T  McastBuffer;  ///<  In: \r
+  OUT UINT16                  Status;       ///<  Out: PXENV_STATUS_xxx\r
+  IN PXENV_UNDI_MCAST_ADDR_T  McastBuffer;  ///<  In:\r
 } PXENV_UNDI_SET_MCAST_ADDR_T;\r
 \r
 typedef struct {\r
-  OUT UINT16  Status;                   ///< Out: PXENV_STATUS_xxx \r
-  IN UINT8    StationAddress[ADDR_LEN]; ///< new address to be set \r
+  OUT UINT16  Status;                   ///< Out: PXENV_STATUS_xxx\r
+  IN UINT8    StationAddress[ADDR_LEN]; ///< new address to be set\r
 } PXENV_UNDI_SET_STATION_ADDR_T;\r
 \r
 typedef struct s_PXENV_UNDI_SET_PACKET_FILTER {\r
-  OUT UINT16  Status;                   ///< Out: PXENV_STATUS_xxx \r
-  IN UINT8    Filter;                   ///< In: Receive filter value. \r
+  OUT UINT16  Status;                   ///< Out: PXENV_STATUS_xxx\r
+  IN UINT8    Filter;                   ///< In: Receive filter value.\r
 } PXENV_UNDI_SET_PACKET_FILTER_T;\r
 \r
 typedef struct {\r
-  OUT UINT16  Status;       ///< Out: PXENV_STATUS_xxx \r
-  OUT UINT16  BaseIo;       ///< Out: Adapter's Base IO \r
-  OUT UINT16  IntNumber;    ///< Out: IRQ number \r
-  OUT UINT16  MaxTranUnit;  ///< Out: MTU \r
-  OUT UINT16  HwType;       ///< Out: type of protocol at hardware level \r
+  OUT UINT16  Status;       ///< Out: PXENV_STATUS_xxx\r
+  OUT UINT16  BaseIo;       ///< Out: Adapter's Base IO\r
+  OUT UINT16  IntNumber;    ///< Out: IRQ number\r
+  OUT UINT16  MaxTranUnit;  ///< Out: MTU\r
+  OUT UINT16  HwType;       ///< Out: type of protocol at hardware level\r
 \r
 #define ETHER_TYPE      1\r
 #define EXP_ETHER_TYPE  2\r
 #define IEEE_TYPE       6\r
 #define ARCNET_TYPE     7\r
-  /*++  \r
+  /*++\r
         other numbers can  be obtained from  rfc1010 for "Assigned\r
         Numbers".  This number may not be validated by the application\r
         and hence adding new numbers to the list should be fine at any\r
-        time.  \r
+        time.\r
     --*/\r
-  OUT UINT16  HwAddrLen;                    ///< Out: actual length of hardware address \r
+  OUT UINT16  HwAddrLen;                    ///< Out: actual length of hardware address\r
   OUT UINT8   CurrentNodeAddress[ADDR_LEN]; ///< Out: Current hardware address\r
   OUT UINT8   PermNodeAddress[ADDR_LEN];    ///< Out: Permanent hardware address\r
-  OUT UINT16  ROMAddress;                   ///< Out: ROM address \r
-  OUT UINT16  RxBufCt;                      ///< Out: receive Queue length    \r
-  OUT UINT16  TxBufCt;                      ///< Out: Transmit Queue length \r
+  OUT UINT16  ROMAddress;                   ///< Out: ROM address\r
+  OUT UINT16  RxBufCt;                      ///< Out: receive Queue length\r
+  OUT UINT16  TxBufCt;                      ///< Out: Transmit Queue length\r
 } PXENV_UNDI_GET_INFORMATION_T;\r
 \r
 typedef struct {\r
-  OUT UINT16  Status;                       ///< Out: PXENV_STATUS_xxx \r
-  OUT UINT32  XmtGoodFrames;                ///< Out: No. of good transmissions \r
-  OUT UINT32  RcvGoodFrames;                ///< Out: No. of good frames received \r
-  OUT UINT32  RcvCRCErrors;                 ///< Out: No. of frames with CRC error \r
-  OUT UINT32  RcvResourceErrors;            ///< Out: no. of frames discarded \r
+  OUT UINT16  Status;                       ///< Out: PXENV_STATUS_xxx\r
+  OUT UINT32  XmtGoodFrames;                ///< Out: No. of good transmissions\r
+  OUT UINT32  RcvGoodFrames;                ///< Out: No. of good frames received\r
+  OUT UINT32  RcvCRCErrors;                 ///< Out: No. of frames with CRC error\r
+  OUT UINT32  RcvResourceErrors;            ///< Out: no. of frames discarded\r
   /* Out: receive Queue full */\r
 } PXENV_UNDI_GET_STATISTICS_T;\r
 \r
 typedef struct {\r
-  OUT UINT16  Status;               ///< Out: PXENV_STATUS_xxx \r
+  OUT UINT16  Status;               ///< Out: PXENV_STATUS_xxx\r
 } PXENV_UNDI_CLEAR_STATISTICS_T;\r
 \r
 typedef struct {\r
@@ -490,31 +490,31 @@ typedef struct {
 } PXENV_UNDI_FORCE_INTERRUPT_T;\r
 \r
 typedef struct {\r
-  OUT UINT16  Status;               ///< Out: PXENV_STATUS_xxx \r
-  IN UINT32   InetAddr;             ///< In: IP Multicast Address \r
-  OUT UINT8   MediaAddr[ADDR_LEN];  ///< Out: corresponding hardware \r
+  OUT UINT16  Status;               ///< Out: PXENV_STATUS_xxx\r
+  IN UINT32   InetAddr;             ///< In: IP Multicast Address\r
+  OUT UINT8   MediaAddr[ADDR_LEN];  ///< Out: corresponding hardware\r
   /*      multicast address */\r
 } PXENV_UNDI_GET_MCAST_ADDR_T;\r
 \r
 typedef struct {\r
-    OUT UINT16  Vendor_ID;  ///< OUT: \r
-    OUT UINT16  Dev_ID;     ///< OUT: \r
-    OUT UINT8   Base_Class; ///< OUT: \r
-    OUT UINT8   Sub_Class;  ///< OUT: \r
-    OUT UINT8   Prog_Intf;  ///< OUT: program interface \r
-    OUT UINT8   Rev;        ///< OUT: Revision number \r
-    OUT UINT16  BusDevFunc; ///< OUT: Bus, Device  & Function numbers \r
-    OUT UINT16  SubVendor_ID; ///< OUT: \r
-    OUT UINT16  SubDevice_ID; ///< OUT: \r
+    OUT UINT16  Vendor_ID;  ///< OUT:\r
+    OUT UINT16  Dev_ID;     ///< OUT:\r
+    OUT UINT8   Base_Class; ///< OUT:\r
+    OUT UINT8   Sub_Class;  ///< OUT:\r
+    OUT UINT8   Prog_Intf;  ///< OUT: program interface\r
+    OUT UINT8   Rev;        ///< OUT: Revision number\r
+    OUT UINT16  BusDevFunc; ///< OUT: Bus, Device  & Function numbers\r
+    OUT UINT16  SubVendor_ID; ///< OUT:\r
+    OUT UINT16  SubDevice_ID; ///< OUT:\r
 } PCI_INFO_T;\r
 \r
 typedef struct {\r
-    OUT UINT32  EISA_Dev_ID;  ///< Out: \r
-    OUT UINT8   Base_Class;   ///< OUT: \r
-    OUT UINT8   Sub_Class;    ///< OUT: \r
-    OUT UINT8   Prog_Intf;    ///< OUT: program interface \r
-    OUT UINT16  CardSelNum;   ///< OUT: Card Selector Number \r
-    OUT UINT8   Reserved;     ///< to make it 10 bytes \r
+    OUT UINT32  EISA_Dev_ID;  ///< Out:\r
+    OUT UINT8   Base_Class;   ///< OUT:\r
+    OUT UINT8   Sub_Class;    ///< OUT:\r
+    OUT UINT8   Prog_Intf;    ///< OUT: program interface\r
+    OUT UINT16  CardSelNum;   ///< OUT: Card Selector Number\r
+    OUT UINT8   Reserved;     ///< to make it 10 bytes\r
 } PNP_INFO_T;\r
 \r
 \r
@@ -524,14 +524,14 @@ typedef union {
 } PCI_PNP_INFO_T;\r
 \r
 typedef struct {\r
-  OUT UINT16  Status;         ///< OUT: PXENV_STATUS_xxx \r
-  OUT UINT8   NicType;        ///< OUT: 2=PCI, 3=PnP \r
+  OUT UINT16  Status;         ///< OUT: PXENV_STATUS_xxx\r
+  OUT UINT8   NicType;        ///< OUT: 2=PCI, 3=PnP\r
   PCI_PNP_INFO_T PciPnpInfo;\r
 } PXENV_UNDI_GET_NIC_TYPE_T;\r
 \r
 typedef struct {\r
-  OUT UINT16  Status;           ///< OUT: PXENV_STATUS_xxx \r
-  OUT UINT8   IfaceType[16];    ///< OUT: Type name of MAC, AsciiZ \r
+  OUT UINT16  Status;           ///< OUT: PXENV_STATUS_xxx\r
+  OUT UINT8   IfaceType[16];    ///< OUT: Type name of MAC, AsciiZ\r
 \r
   /*      format.  This is used by the */\r
 \r
@@ -542,14 +542,14 @@ typedef struct {
   /*      Service specific */\r
 \r
   /*      characteristic table */\r
-  OUT UINT32  LinkSpeed;    ///< OUT: \r
-  OUT UINT32  ServiceFlags; ///< OUT: as defined in NDIS Spec 2.0X \r
+  OUT UINT32  LinkSpeed;    ///< OUT:\r
+  OUT UINT32  ServiceFlags; ///< OUT: as defined in NDIS Spec 2.0X\r
   OUT UINT32  Reserved[4];  ///< OUT: will be filled with 0s till defined\r
 } PXENV_UNDI_GET_NDIS_INFO_T;\r
 \r
 typedef struct {\r
-  OUT UINT16    Status;   ///< OUT: PXENV_STATUS_xxx \r
-  IN OUT UINT16 FuncFlag; ///< In: PXENV_UNDI_ISR_IN_xxx \r
+  OUT UINT16    Status;   ///< OUT: PXENV_STATUS_xxx\r
+  IN OUT UINT16 FuncFlag; ///< In: PXENV_UNDI_ISR_IN_xxx\r
 \r
   /* Out: PXENV_UNDI_ISR_OUT_xxx */\r
   OUT UINT16    BufferLength;\r
@@ -580,7 +580,7 @@ typedef struct {
      Possible responses from PXENV_UNDI_ISR_IN_START\r
 \r
  --*/\r
-#define PXENV_UNDI_ISR_OUT_OURS 0 ///< This is our interrupt.  Deal  with it. \r
+#define PXENV_UNDI_ISR_OUT_OURS 0 ///< This is our interrupt.  Deal  with it.\r
 #define PXENV_UNDI_ISR_OUT_NOT_OURS 1 ///< This is not our interrupt.\r
 \r
 /*++\r
@@ -589,22 +589,22 @@ typedef struct {
      PXENV_UNDI_ISR_IN_PROCESS\r
 \r
 --*/\r
-#define PXENV_UNDI_ISR_OUT_DONE 0       ///< We are done processing this  interrupt. \r
-#define PXENV_UNDI_ISR_OUT_TRANSMIT 2   ///< We completed a transmit interrupt. \r
-#define PXENV_UNDI_ISR_OUT_RECEIVE  3   ///< Get data from receive buffer. \r
+#define PXENV_UNDI_ISR_OUT_DONE 0       ///< We are done processing this  interrupt.\r
+#define PXENV_UNDI_ISR_OUT_TRANSMIT 2   ///< We completed a transmit interrupt.\r
+#define PXENV_UNDI_ISR_OUT_RECEIVE  3   ///< Get data from receive buffer.\r
 \r
 #define PXENV_UNDI_ISR_OUT_BUSY     4 /* ? */\r
 \r
 typedef struct {\r
-  UINT16  Status;                     ///< Out: PXENV_STATUS_xxx \r
+  UINT16  Status;                     ///< Out: PXENV_STATUS_xxx\r
 } PXENV_STOP_UNDI_T;\r
 \r
-#define PXENV_UNDI_STARTED      1     ///< not even initialized \r
-#define PXENV_UNDI_INITIALIZED  2     ///< initialized and closed (not opened) \r
-#define PXENV_UNDI_OPENED       3     ///< initialized & opened \r
+#define PXENV_UNDI_STARTED      1     ///< not even initialized\r
+#define PXENV_UNDI_INITIALIZED  2     ///< initialized and closed (not opened)\r
+#define PXENV_UNDI_OPENED       3     ///< initialized & opened\r
 \r
 typedef struct {\r
-  OUT UINT16  Status;                 ///< Out: PXENV_STATUS_xxx \r
+  OUT UINT16  Status;                 ///< Out: PXENV_STATUS_xxx\r
   UINT16      UNDI_State;\r
 } PXENV_UNDI_GET_STATE_T;\r
 \r
index 7063229dd44e4fccdb4aa8340bd60fad0256ceaa..d1435798c0189d599112d4a22ec180476513fa25 100644 (file)
@@ -1,15 +1,15 @@
-/** @file \r
-  Wrapper routines that use a PXE-enabled NIC option ROM to \r
-  supply internal routines for an EFI SNI (Simple Network \r
+/** @file\r
+  Wrapper routines that use a PXE-enabled NIC option ROM to\r
+  supply internal routines for an EFI SNI (Simple Network\r
   Interface) Protocol.\r
 \r
   This file relies upon the existence of a PXE-compliant ROM\r
-  in memory, as defined by the Preboot Execution Environment \r
+  in memory, as defined by the Preboot Execution Environment\r
   Specification (PXE), Version 2.1, located at\r
 \r
   http://developer.intel.com/ial/wfm/wfmspecs.htm\r
 \r
-Copyright (c) 1999 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -25,7 +25,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "BiosSnp16.h"\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   START UNDI\r
   Op-Code: PXENV_START_UNDI (0000h)\r
   Input: Far pointer to a PXENV_START_UNDI_T parameter structure that has been initialized by the caller.\r
@@ -54,13 +54,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   contents of these registers can be found in the [PnP], [PCI] and\r
   [BBS] specifications.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.    \r
+  Status: See the PXENV_STATUS_xxx constants.\r
 \r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                                \r
-  @return Return value of PXE option ROM far call.                                \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeStartUndi (\r
@@ -77,8 +77,8 @@ PxeStartUndi (
 }\r
 \r
 /**\r
-  PXE \r
-  UNDI STARTUP    \r
+  PXE\r
+  UNDI STARTUP\r
   Op-Code: PXENV_UNDI_STARTUP (0001h)\r
   Input: Far pointer to a PXENV_UNDI_STARTUP_T parameter structure that has been initialized by the\r
   caller.\r
@@ -95,7 +95,7 @@ PxeStartUndi (
   chaining interrupt 1Ah. This must be done by the PXENV_START_UNDI and\r
   PXENV_STOP_UNDI API calls.\r
   This service cannot be used in protected mode.\r
-  typedef struct \r
+  typedef struct\r
   {\r
       PXENV_STATUS Status;\r
   } PXENV_UNDI_STARTUP_T;\r
@@ -105,10 +105,10 @@ PxeStartUndi (
   Status: See the PXENV_STATUS_xxx constants.\r
 \r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                                \r
-  @return Return value of PXE option ROM far call.    \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiStartup (\r
@@ -125,7 +125,7 @@ PxeUndiStartup (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI CLEANUP\r
   Op-Code: PXENV_UNDI_CLEANUP (0002h)\r
   Input: Far pointer to a PXENV_UNDI_CLEANUP_T parameter structure.\r
@@ -145,10 +145,10 @@ PxeUndiStartup (
   Status: See the PXENV_STATUS_xxx constants.\r
 \r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                                \r
-  @return Return value of PXE option ROM far call. \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiCleanup (\r
@@ -165,7 +165,7 @@ PxeUndiCleanup (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI INITIALIZE\r
   Op-Code: PXENV_UNDI_INITIALIZE (0003h)\r
   Input: Far pointer to a PXENV_UNDI_INITIALIZE_T parameter structure that has been initialized by the\r
@@ -195,13 +195,13 @@ PxeUndiCleanup (
   protocol.ini file was done by NDIS.) This value can be NULL for any\r
   other application interfacing to the universal NIC driver\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.    \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                                \r
-  @return Return value of PXE option ROM far call. \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiInitialize (\r
@@ -219,8 +219,8 @@ PxeUndiInitialize (
 \r
 /**\r
   Wrapper routine for reset adapter.\r
-  \r
-  PXE \r
+\r
+  PXE\r
   UNDI RESET ADAPTER\r
   Op-Code: PXENV_UNDI_RESET_ADAPTER (0004h)\r
   Input: Far pointer to a PXENV_UNDI_RESET_ADAPTER_t parameter structure that has been initialized\r
@@ -252,13 +252,13 @@ PxeUndiInitialize (
   addresses.\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance.\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-  @param  RxFilter             Filter setting mask value for PXE recive .     \r
-                               \r
-  @return Return value of PXE option ROM far call. \r
+  @param  RxFilter             Filter setting mask value for PXE recive .\r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiResetNic (\r
@@ -310,8 +310,8 @@ PxeUndiResetNic (
     &Open.McastBuffer,\r
     &PxeUndiTable->R_Mcast_Buf,\r
     sizeof (PXENV_UNDI_MCAST_ADDR_T)\r
-    );      \r
-  \r
+    );\r
+\r
 \r
   Status = MakePxeCall (\r
             SimpleNetworkDevice,\r
@@ -327,7 +327,7 @@ PxeUndiResetNic (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI SHUTDOWN\r
   Op-Code: PXENV_UNDI_SHUTDOWN (0005h)\r
   Input: Far pointer to a PXENV_UNDI_SHUTDOWN_T parameter.\r
@@ -337,7 +337,7 @@ PxeUndiResetNic (
   Description: This call resets the network adapter and leaves it in a safe state for another driver to program it.\r
   Note: The contents of the PXENV_UNDI_STARTUP parameter structure need to be saved by the\r
   Universal NIC Driver in case PXENV_UNDI_INITIALIZE is called again.\r
-  typedef struct \r
+  typedef struct\r
   {\r
     PXENV_STATUS Status;\r
   } PXENV_UNDI_SHUTDOWN_T;\r
@@ -345,12 +345,12 @@ PxeUndiResetNic (
   N/A\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.   \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiShutdown (\r
@@ -367,7 +367,7 @@ PxeUndiShutdown (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI OPEN\r
   Op-Code: PXENV_UNDI_OPEN (0006h)\r
   Input: Far pointer to a PXENV_UNDI_OPEN_T parameter structure that has been initialized by the caller.\r
@@ -399,12 +399,12 @@ PxeUndiShutdown (
   R_Mcast_Buf: See definition in UNDI RESET ADAPTER (0004h).\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiOpen (\r
@@ -421,7 +421,7 @@ PxeUndiOpen (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI CLOSE\r
   Op-Code: PXENV_UNDI_CLOSE (0007h)\r
   Input: Far pointer to a PXENV_UNDI_CLOSE_T parameter.\r
@@ -437,12 +437,12 @@ PxeUndiOpen (
   N/A\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiClose (\r
@@ -459,7 +459,7 @@ PxeUndiClose (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI TRANSMIT PACKET\r
   Op-Code: PXENV_UNDI_TRANSMIT (0008h)\r
   Input: Far pointer to a PXENV_UNDI_TRANSMIT_T parameter structure that\r
@@ -529,13 +529,13 @@ PxeUndiClose (
   TDDataPtr: Segment:Offset of the transmit block.\r
   DataBlock: Array of transmit data blocks.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants  \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiTransmit (\r
@@ -565,7 +565,7 @@ PxeUndiTransmit (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI SET MULTICAST ADDRESS\r
   Op-Code: PXENV_UNDI_SET_MCAST_ADDRESS (0009h)\r
   Input: Far pointer to a PXENV_TFTP_SET_MCAST_ADDRESS_t parameter structure that has been\r
@@ -583,13 +583,13 @@ PxeUndiTransmit (
   R_Mcast_Buf: See description in the UNDI RESET ADAPTER\r
   (0004h) API.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants        \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiSetMcastAddr (\r
@@ -606,7 +606,7 @@ PxeUndiSetMcastAddr (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI SET STATION ADDRESS\r
   Op-Code: PXENV_UNDI_SET_STATION_ADDRESS (000Ah)\r
   Input: Far pointer to a PXENV_UNDI_SET_STATION_ADDRESS_t parameter structure that has been\r
@@ -625,13 +625,13 @@ PxeUndiSetMcastAddr (
   StationAddress: Temporary MAC address to be used for\r
   transmit and receive.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.     \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiSetStationAddr (\r
@@ -648,7 +648,7 @@ PxeUndiSetStationAddr (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI SET PACKET FILTER\r
   Op-Code: PXENV_UNDI_SET_PACKET_FILTER (000Bh)\r
   Input: Far pointer to a PXENV_UNDI_SET_PACKET_FILTER_T parameter structure that has been\r
@@ -666,13 +666,13 @@ PxeUndiSetStationAddr (
   Filter: See the receive filter values in the UNDI OPEN\r
   (0006h) API description.\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.   \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiSetPacketFilter (\r
@@ -689,7 +689,7 @@ PxeUndiSetPacketFilter (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET INFORMATION\r
   Op-Code: PXENV_UNDI_GET_INFORMATION (000Ch)\r
   Input: Far pointer to a PXENV_UNDI_GET_INFORMATION_T parameter structure that has been\r
@@ -732,13 +732,13 @@ PxeUndiSetPacketFilter (
   PermNodeAddress: Permanent hardware address.\r
   ROMAddress: Real mode ROM segment address.\r
   RxBufCnt: Receive queue length.\r
-  TxBufCnt: Transmit queue length.  \r
-  \r
+  TxBufCnt: Transmit queue length.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetInformation (\r
@@ -755,7 +755,7 @@ PxeUndiGetInformation (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET STATISTICS\r
   Op-Code: PXENV_UNDI_GET_STATISTICS (000Dh)\r
   Input: Far pointer to a PXENV_UNDI_GET_STATISTICS_T parameter structure that has been initialized\r
@@ -781,12 +781,12 @@ PxeUndiGetInformation (
   error.\r
   RcvResourceErrors: Number of frames discarded\r
   because receive queue was full.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetStatistics (\r
@@ -803,7 +803,7 @@ PxeUndiGetStatistics (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI CLEAR STATISTICS\r
   Op-Code: PXENV_UNDI_CLEAR_STATISTICS (000Eh)\r
   Input: Far pointer to a PXENV_UNDI_CLEAR_STATISTICS_T parameter.\r
@@ -818,12 +818,12 @@ PxeUndiGetStatistics (
   N/A\r
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiClearStatistics (\r
@@ -840,7 +840,7 @@ PxeUndiClearStatistics (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI INITIATE DIAGS\r
   Op-Code: PXENV_UNDI_INITIATE_DIAGS (000Fh)\r
   Input: Far pointer to a PXENV_UNDI_INITIATE_DIAGS_T parameter.\r
@@ -855,13 +855,13 @@ PxeUndiClearStatistics (
   Set before calling API service\r
   N/A\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.    \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiInitiateDiags (\r
@@ -878,7 +878,7 @@ PxeUndiInitiateDiags (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI FORCE INTERRUPT\r
   Op-Code: PXENV_UNDI_FORCE_INTERRUPT (0010h)\r
   Input: Far pointer to a PXENV_UNDI_FORCE_INTERRUPT_T parameter structure that has been\r
@@ -899,13 +899,13 @@ PxeUndiInitiateDiags (
   Set before calling API service\r
   N/A\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.  \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiForceInterrupt (\r
@@ -922,7 +922,7 @@ PxeUndiForceInterrupt (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET MULTICAST ADDRESS\r
   Op-Code: PXENV_UNDI_GET_MCAST_ADDRESS (0011h)\r
   Input: Far pointer to a PXENV_GET_MCAST_ADDRESS_t parameter structure that has been initialized\r
@@ -941,12 +941,12 @@ PxeUndiForceInterrupt (
   Returned from API service\r
   Status: See the PXENV_STATUS_xxx constants.\r
   MediaAddr: MAC multicast address.\r
-  \r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetMcastAddr (\r
@@ -963,7 +963,7 @@ PxeUndiGetMcastAddr (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET NIC TYPE\r
   Op-Code: PXENV_UNDI_GET_NIC_TYPE (0012h)\r
   Input: Far pointer to a PXENV_UNDI_GET_NIC_TYPE parameter structure that has been initialized by\r
@@ -1013,13 +1013,13 @@ PxeUndiGetMcastAddr (
   NICType: Type of NIC information stored in the parameter\r
   structure.\r
   Info: Information about the fields in this union can be found\r
-  in the [PnP] and [PCI] specifications    \r
-  \r
+  in the [PnP] and [PCI] specifications\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetNicType (\r
@@ -1036,7 +1036,7 @@ PxeUndiGetNicType (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET IFACE INFO\r
   Op-Code: PXENV_UNDI_GET_IFACE_INFO (0013h)\r
   Input: Far pointer to a PXENV_UNDI_GET_IFACE_INFO_t parameter structure that has been initialized\r
@@ -1069,13 +1069,13 @@ PxeUndiGetNicType (
   to the protocol driver.\r
   LinkSpeed: Defined in the NDIS 2.0 specification.\r
   ServiceFlags: Defined in the NDIS 2.0 specification.\r
-  Reserved: Must be zero.       \r
-  \r
+  Reserved: Must be zero.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetNdisInfo (\r
@@ -1092,7 +1092,7 @@ PxeUndiGetNdisInfo (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI ISR\r
   Op-Code: PXENV_UNDI_ISR (0014h)\r
   Input: Far pointer to a PXENV_UNDI_ISR_T parameter structure that has been initialized by the caller.\r
@@ -1134,13 +1134,13 @@ PxeUndiGetNdisInfo (
   if there is no other interrupt status to be processed, UNDI re-enables the interrupt at the\r
   NETWORK INTERFACE level and returns PXENV_UNDI_ISR_OUT_DONE in the FuncFlag.\r
   IMPORTANT: It is possible for the protocol driver to be interrupted again while in the\r
-  strategy routine when the UNDI re-enables interrupts.   \r
-  \r
+  strategy routine when the UNDI re-enables interrupts.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiIsr (\r
@@ -1157,7 +1157,7 @@ PxeUndiIsr (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   STOP UNDI\r
   Op-Code: PXENV_STOP_UNDI (0015h)\r
   Input: Far pointer to a PXENV_STOP_UNDI_T parameter structure that has been initialized by the caller.\r
@@ -1176,13 +1176,13 @@ PxeUndiIsr (
   Set before calling API service\r
   N/A\r
   Returned from API service\r
-  Status: See the PXENV_STATUS_xxx constants.      \r
-  \r
+  Status: See the PXENV_STATUS_xxx constants.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiStop (\r
@@ -1199,7 +1199,7 @@ PxeUndiStop (
 }\r
 \r
 /**\r
-  PXE \r
+  PXE\r
   UNDI GET STATE\r
   Op-Code: PXENV_UNDI_GET_STATE (0015h)\r
   Input: Far pointer to a PXENV_UNDI_GET_STATE_T parameter.\r
@@ -1231,13 +1231,13 @@ PxeUndiStop (
   constants.\r
   Description: This API function will be called at different levels of processing the interrupt. The FuncFlag field in\r
   the parameter block indicates the operation to be performed for the call. This field is filled with the\r
-  status of that operation on return.     \r
-  \r
+  status of that operation on return.\r
+\r
   @param  SimpleNetworkDevice   Device instance\r
-  @param  PxeUndiTable          Point to structure which hold parameter and return value \r
+  @param  PxeUndiTable          Point to structure which hold parameter and return value\r
                                 for option ROM call.\r
-                              \r
-  @return Return value of PXE option ROM far call.  \r
+\r
+  @return Return value of PXE option ROM far call.\r
 **/\r
 EFI_STATUS\r
 PxeUndiGetState (\r
index 2e6b0c532df74761aea7f4609021f9234a1bfece..a2b554443e9e82d299c3f1ba0264788ede0456fe 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 # Thunk wrapper UEFI driver to produce EFI SNP protocol based on legacy 16 NIC ROM.\r
 #\r
-# Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions\r
@@ -23,7 +23,7 @@
   MODULE_TYPE                          = UEFI_DRIVER\r
   INF_VERSION                          = 0x00010005\r
   VERSION_STRING                       = 1.0\r
-  \r
+\r
   ENTRY_POINT                          = BiosSnp16DriverEntryPoint\r
 \r
 #\r
index 08672cf4725cd3135fa460cef6bba090d89d7a4b..9ff7c9d77d38fa3aa6652354d2c1bdb31671ed51 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   ConsoleOut Routines that speak VGA.\r
 \r
-Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -188,7 +188,7 @@ BiosVideoDriverBindingSupported (
     if (RemainingDevicePath != NULL) {\r
       Node = (EFI_DEV_PATH *) RemainingDevicePath;\r
       //\r
-      // Check if RemainingDevicePath is the End of Device Path Node, \r
+      // Check if RemainingDevicePath is the End of Device Path Node,\r
       // if yes, return EFI_SUCCESS\r
       //\r
       if (!IsDevicePathEnd (Node)) {\r
@@ -295,7 +295,7 @@ BiosVideoDriverBindingStart (
                       0,\r
                       &mOriginalPciAttributes\r
                       );\r
-    \r
+\r
     if (EFI_ERROR (Status)) {\r
       goto Done;\r
     }\r
@@ -319,7 +319,7 @@ BiosVideoDriverBindingStart (
   if (Supports == 0 || Supports == (EFI_PCI_IO_ATTRIBUTE_VGA_IO | EFI_PCI_IO_ATTRIBUTE_VGA_IO_16)) {\r
     Status = EFI_UNSUPPORTED;\r
     goto Done;\r
-  }  \r
+  }\r
 \r
   REPORT_STATUS_CODE_WITH_DEVICE_PATH (\r
     EFI_PROGRESS_CODE,\r
@@ -384,7 +384,7 @@ BiosVideoDriverBindingStart (
   }\r
 \r
   if (RemainingDevicePath != NULL) {\r
-    if (IsDevicePathEnd (RemainingDevicePath) && \r
+    if (IsDevicePathEnd (RemainingDevicePath) &&\r
         (FeaturePcdGet (PcdBiosVideoCheckVbeEnable) || FeaturePcdGet (PcdBiosVideoCheckVgaEnable))) {\r
       //\r
       // If RemainingDevicePath is the End of Device Path Node,\r
@@ -509,7 +509,7 @@ BiosVideoDriverBindingStop (
                       (VOID **) &PciIo\r
                       );\r
       ASSERT_EFI_ERROR (Status);\r
-      \r
+\r
       //\r
       // Restore original PCI attributes\r
       //\r
@@ -562,10 +562,10 @@ BiosVideoChildHandleInstall (
   // Allocate the private device structure for video device\r
   //\r
   BiosVideoPrivate = (BIOS_VIDEO_DEV *) AllocateZeroPool (\r
-                                                                                                                                                                       sizeof (BIOS_VIDEO_DEV)\r
-                                                                                                                                                                       );\r
+                                          sizeof (BIOS_VIDEO_DEV)\r
+                                          );\r
   if (NULL == BiosVideoPrivate) {\r
-               Status = EFI_OUT_OF_RESOURCES;\r
+    Status = EFI_OUT_OF_RESOURCES;\r
     goto Done;\r
   }\r
 \r
@@ -668,7 +668,7 @@ BiosVideoChildHandleInstall (
       AcpiDeviceNode.Header.SubType = ACPI_ADR_DP;\r
       AcpiDeviceNode.ADR = ACPI_DISPLAY_ADR (1, 0, 0, 1, 0, ACPI_ADR_DISPLAY_TYPE_VGA, 0, 0);\r
       SetDevicePathNodeLength (&AcpiDeviceNode.Header, sizeof (ACPI_ADR_DEVICE_PATH));\r
-    \r
+\r
       BiosVideoPrivate->GopDevicePath = AppendDevicePathNode (\r
                                           ParentDevicePath,\r
                                           (EFI_DEVICE_PATH_PROTOCOL *) &AcpiDeviceNode\r
@@ -676,7 +676,7 @@ BiosVideoChildHandleInstall (
     } else {\r
       BiosVideoPrivate->GopDevicePath = AppendDevicePathNode (ParentDevicePath, RemainingDevicePath);\r
     }\r
-    \r
+\r
     //\r
     // Creat child handle and device path protocol firstly\r
     //\r
@@ -816,7 +816,7 @@ Done:
   if (EFI_ERROR (Status)) {\r
     if ((BiosVideoPrivate != NULL) && (BiosVideoPrivate->ExitBootServicesEvent != NULL)) {\r
       gBS->CloseEvent (BiosVideoPrivate->ExitBootServicesEvent);\r
-    }  \r
+    }\r
     //\r
     // Free private data structure\r
     //\r
@@ -1271,7 +1271,7 @@ HasChildHandle (
       HasChild = TRUE;\r
     }\r
   }\r
-  \r
+\r
   return HasChild;\r
 }\r
 \r
@@ -1343,7 +1343,7 @@ BiosVideoCheckForVbe (
   }\r
 \r
   ZeroMem (&ValidEdidTiming, sizeof (VESA_BIOS_EXTENSIONS_VALID_EDID_TIMING));\r
-       \r
+\r
   //\r
   // Fill in the VBE related data structures\r
   //\r
@@ -1405,7 +1405,7 @@ BiosVideoCheckForVbe (
     //\r
     EdidOverrideDataBlock = AllocatePool (VESA_BIOS_EXTENSIONS_EDID_BLOCK_SIZE * 2);\r
     if (NULL == EdidOverrideDataBlock) {\r
-               Status = EFI_OUT_OF_RESOURCES;\r
+      Status = EFI_OUT_OF_RESOURCES;\r
       goto Done;\r
     }\r
 \r
@@ -1449,13 +1449,13 @@ BiosVideoCheckForVbe (
       // Set EDID Discovered Data\r
       //\r
       BiosVideoPrivate->EdidDiscovered.SizeOfEdid = VESA_BIOS_EXTENSIONS_EDID_BLOCK_SIZE;\r
-                 BiosVideoPrivate->EdidDiscovered.Edid = (UINT8 *) AllocateCopyPool (\r
+       BiosVideoPrivate->EdidDiscovered.Edid = (UINT8 *) AllocateCopyPool (\r
                                                           VESA_BIOS_EXTENSIONS_EDID_BLOCK_SIZE,\r
                                                           BiosVideoPrivate->VbeEdidDataBlock\r
-                                                                                                                                                                                                                                 );\r
+                                                           );\r
 \r
       if (NULL == BiosVideoPrivate->EdidDiscovered.Edid) {\r
-                         Status = EFI_OUT_OF_RESOURCES;\r
+         Status = EFI_OUT_OF_RESOURCES;\r
         goto Done;\r
       }\r
 \r
@@ -1470,9 +1470,9 @@ BiosVideoCheckForVbe (
     EdidActiveDataSize  = EdidOverrideDataSize;\r
     EdidActiveDataBlock = EdidOverrideDataBlock;\r
     EdidFound = TRUE;\r
-       }\r
+   }\r
 \r
-       if (EdidFound) {\r
+   if (EdidFound) {\r
     //\r
     // Parse EDID data structure to retrieve modes supported by monitor\r
     //\r
@@ -1486,7 +1486,7 @@ BiosVideoCheckForVbe (
                                                       EdidActiveDataBlock\r
                                                       );\r
       if (NULL ==  BiosVideoPrivate->EdidActive.Edid) {\r
-                 Status = EFI_OUT_OF_RESOURCES;\r
+         Status = EFI_OUT_OF_RESOURCES;\r
         goto Done;\r
       }\r
     }\r
@@ -1507,7 +1507,7 @@ BiosVideoCheckForVbe (
 \r
   PreferMode = 0;\r
   ModeNumber = 0;\r
-  \r
+\r
   //\r
   // ModeNumberPtr may be not 16-byte aligned, so ReadUnaligned16 is used to access the buffer pointed by ModeNumberPtr.\r
   //\r
@@ -1635,7 +1635,7 @@ BiosVideoCheckForVbe (
     // Record the highest resolution mode to set later\r
     //\r
     if ((BiosVideoPrivate->VbeModeInformationBlock->XResolution > HighestHorizontalResolution) ||\r
-        ((BiosVideoPrivate->VbeModeInformationBlock->XResolution == HighestHorizontalResolution) && \r
+        ((BiosVideoPrivate->VbeModeInformationBlock->XResolution == HighestHorizontalResolution) &&\r
          (BiosVideoPrivate->VbeModeInformationBlock->YResolution > HighestVerticalResolution))) {\r
       HighestHorizontalResolution = BiosVideoPrivate->VbeModeInformationBlock->XResolution;\r
       HighestVerticalResolution = BiosVideoPrivate->VbeModeInformationBlock->YResolution;\r
@@ -1647,10 +1647,10 @@ BiosVideoCheckForVbe (
     //\r
     ModeNumber ++;\r
     ModeBuffer = (BIOS_VIDEO_MODE_DATA *) AllocatePool (\r
-                                                                                                                                                                               ModeNumber * sizeof (BIOS_VIDEO_MODE_DATA)\r
-                                                                                                                                                                               );\r
+                                            ModeNumber * sizeof (BIOS_VIDEO_MODE_DATA)\r
+                                            );\r
     if (NULL == ModeBuffer) {\r
-                       Status = EFI_OUT_OF_RESOURCES;\r
+      Status = EFI_OUT_OF_RESOURCES;\r
       goto Done;\r
     }\r
 \r
@@ -1715,7 +1715,7 @@ BiosVideoCheckForVbe (
     // Make sure the FrameBufferSize does not exceed the max available frame buffer size reported by VEB.\r
     //\r
     ASSERT (CurrentModeData->FrameBufferSize <= ((UINT32)BiosVideoPrivate->VbeInformationBlock->TotalMemory * 64 * 1024));\r
-    \r
+\r
     BiosVideoPrivate->ModeData = ModeBuffer;\r
   }\r
   //\r
@@ -1821,7 +1821,7 @@ BiosVideoCheckForVga (
                                           sizeof (BIOS_VIDEO_MODE_DATA)\r
                                           );\r
   if (NULL == ModeBuffer) {\r
-               Status = EFI_OUT_OF_RESOURCES;\r
+    Status = EFI_OUT_OF_RESOURCES;\r
     goto Done;\r
   }\r
 \r
@@ -1913,8 +1913,8 @@ BiosVideoGraphicsOutputQueryMode (
   }\r
 \r
   *Info = (EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *) AllocatePool (\r
-                                                                                                                                                                                                               sizeof (EFI_GRAPHICS_OUTPUT_MODE_INFORMATION)\r
-                                                                                                                                                                                                               );\r
+                                                    sizeof (EFI_GRAPHICS_OUTPUT_MODE_INFORMATION)\r
+                                                    );\r
   if (NULL == *Info) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
@@ -1969,8 +1969,8 @@ BiosVideoSetModeWorker (
   }\r
 \r
   BiosVideoPrivate->LineBuffer = (UINT8 *) AllocatePool (\r
-                                                                                                                                                                          ModeData->BytesPerScanLine\r
-                                                                                                                                                                          );\r
+                                             ModeData->BytesPerScanLine\r
+                                             );\r
   if (NULL == BiosVideoPrivate->LineBuffer) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
@@ -1998,9 +1998,9 @@ BiosVideoSetModeWorker (
     // Allocate a working buffer for BLT operations to the VBE frame buffer\r
     //\r
     BiosVideoPrivate->VbeFrameBuffer =\r
-                       (EFI_GRAPHICS_OUTPUT_BLT_PIXEL *) AllocatePool (\r
-                                                                                                                                                                       ModeData->BytesPerScanLine * ModeData->VerticalResolution\r
-                                                                                                                                                                 );\r
+      (EFI_GRAPHICS_OUTPUT_BLT_PIXEL *) AllocatePool (\r
+                                          ModeData->BytesPerScanLine * ModeData->VerticalResolution\r
+                                          );\r
     if (NULL == BiosVideoPrivate->VbeFrameBuffer) {\r
       return EFI_OUT_OF_RESOURCES;\r
     }\r
@@ -2079,11 +2079,11 @@ BiosVideoGraphicsOutputSetMode (
   if (ModeNumber >= This->Mode->MaxMode) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   if (ModeNumber == This->Mode->Mode) {\r
     //\r
     // Clear screen to black\r
-    //    \r
+    //\r
     ZeroMem (&Background, sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL));\r
     BiosVideoGraphicsOutputVbeBlt (\r
                         This,\r
index 117755f54c501cd4f8e23cc7a1cabecd913e71d5..3d353505f2c634b6cfbcbab21ca213bf0ff3c3b4 100644 (file)
@@ -4,14 +4,14 @@
 // This driver by using Legacy Bios protocol service to support csm Video\r
 // and produce Graphics Output Protocol.\r
 //\r
-// Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
 // of the BSD License which accompanies this distribution.  The\r
 // full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index c212e38ce80dc60280b7102a5f0683fb07faa7b8..c8490847bb20ec6e6037a69b8e9d5f84d403a028 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // BiosVideoDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
@@ -14,8 +14,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Legacy Video DXE Driver"\r
 \r
 \r
index ee08c86c7052084e5ca17b48a84ceb8809af6506..b4cc8d253da4a89412524e09740c4bd3f1d4a711 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -248,7 +248,7 @@ RelocateImageUnder4GIfNeeded (
 \r
       //\r
       // Create a new handle with gEfiCallerIdGuid to be used as the ImageHandle fore the reloaded image\r
-      // \r
+      //\r
       NewImageHandle = NULL;\r
       Status = gBS->InstallProtocolInterface (\r
                       &NewImageHandle,\r
index 6ee43ad676f54209d8a74214f97a1c976d00d272..cdb28c8200d3f353a1fcc1c449879e75022c93b0 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -31,7 +31,7 @@ BOOLEAN             IsHaveMediaInFloppy = TRUE;
 \r
 /**\r
   Checks the state of the floppy and if media is inserted.\r
-  \r
+\r
   This routine checks the state of the floppy and if media is inserted.\r
   There are 3 cases:\r
   No floppy present         - Set BBS entry to ignore\r
index 9466e3e4ddd5eef1ab021e123f6095fcc8486f69..8f14687b28335988844407e9e5fb3dd10afa80d0 100644 (file)
@@ -271,7 +271,7 @@ ShadowAndStartLegacy16 (
     if (EFI_ERROR (Status)) {\r
       //\r
       // Bugbug: need to figure out whether C/D/E/F segment should be marked as reserved memory.\r
-      // \r
+      //\r
       DEBUG ((DEBUG_ERROR, "Failed to allocate the C/D/E/F segment Status = %r", Status));\r
     }\r
   }\r
@@ -415,7 +415,7 @@ ShadowAndStartLegacy16 (
   Private->Legacy8259->GetMask(Private->Legacy8259, &OldMask, NULL, NULL, NULL);\r
   NewMask = 0xFFFF;\r
   Private->Legacy8259->SetMask(Private->Legacy8259, &NewMask, NULL, NULL, NULL);\r
-  \r
+\r
   //\r
   // Call into Legacy16 code to do an INIT\r
   //\r
@@ -437,7 +437,7 @@ ShadowAndStartLegacy16 (
   // Restore original legacy interrupt mask value\r
   //\r
   Private->Legacy8259->SetMask(Private->Legacy8259, &OldMask, NULL, NULL, NULL);\r
-  \r
+\r
   if (Regs.X.AX != 0) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
@@ -653,7 +653,7 @@ GetPciInterfaceVersion (
   UINT16                PciInterfaceVersion;\r
 \r
   PciInterfaceVersion = 0;\r
-  \r
+\r
   Reg.X.AX = 0xB101;\r
   Reg.E.EDI = 0;\r
 \r
@@ -693,7 +693,7 @@ InstallSmbiosEventCallback (
 {\r
   EFI_STATUS                  Status;\r
   SMBIOS_TABLE_ENTRY_POINT    *EntryPointStructure;\r
-  \r
+\r
   //\r
   // Get SMBIOS table from EFI configuration table\r
   //\r
@@ -704,7 +704,7 @@ InstallSmbiosEventCallback (
   if ((EFI_ERROR (Status)) || (mRuntimeSmbiosEntryPoint == NULL)) {\r
     return;\r
   }\r
-  \r
+\r
   EntryPointStructure = (SMBIOS_TABLE_ENTRY_POINT *) mRuntimeSmbiosEntryPoint;\r
 \r
   //\r
@@ -728,8 +728,8 @@ InstallSmbiosEventCallback (
     }\r
     DEBUG ((EFI_D_INFO, "Allocate memory for Smbios Entry Point Structure\n"));\r
   }\r
-  \r
-  if ((mStructureTableAddress != 0) && \r
+\r
+  if ((mStructureTableAddress != 0) &&\r
       (mStructureTablePages < EFI_SIZE_TO_PAGES ((UINT32)EntryPointStructure->TableLength))) {\r
     //\r
     // If original buffer is not enough for the new SMBIOS table, free original buffer and re-allocate\r
@@ -739,7 +739,7 @@ InstallSmbiosEventCallback (
     mStructureTablePages   = 0;\r
     DEBUG ((EFI_D_INFO, "Original size is not enough. Re-allocate the memory.\n"));\r
   }\r
-  \r
+\r
   if (mStructureTableAddress == 0) {\r
     //\r
     // Allocate reserved memory below 4GB.\r
@@ -755,7 +755,7 @@ InstallSmbiosEventCallback (
                     );\r
     if (EFI_ERROR (Status)) {\r
       gBS->FreePages (\r
-        mReserveSmbiosEntryPoint, \r
+        mReserveSmbiosEntryPoint,\r
         EFI_SIZE_TO_PAGES ((UINTN) (EntryPointStructure->EntryPointLength))\r
         );\r
       mReserveSmbiosEntryPoint = 0;\r
@@ -843,7 +843,7 @@ LegacyBiosInstall (
     FreePool (SecureBoot);\r
     return EFI_SECURITY_VIOLATION;\r
   }\r
-  \r
+\r
   if (SecureBoot != NULL) {\r
     FreePool (SecureBoot);\r
   }\r
@@ -1047,7 +1047,7 @@ LegacyBiosInstall (
   // Allocate low PMM memory and zero it out\r
   //\r
   MemorySize = PcdGet32 (PcdLowPmmMemorySize);\r
-  ASSERT ((MemorySize & 0xFFF) == 0);  \r
+  ASSERT ((MemorySize & 0xFFF) == 0);\r
   Status = AllocateLegacyMemory (\r
              AllocateMaxAddress,\r
              EfiBootServicesCode,\r
@@ -1089,7 +1089,7 @@ LegacyBiosInstall (
   ASSERT ((MemorySize & 0xFFF) == 0);\r
   //\r
   // Allocate high PMM Memory under 16 MB\r
-  //   \r
+  //\r
   Status = AllocateLegacyMemory (\r
              AllocateMaxAddress,\r
              EfiBootServicesCode,\r
@@ -1100,19 +1100,19 @@ LegacyBiosInstall (
   if (EFI_ERROR (Status)) {\r
     //\r
     // If it fails, allocate high PMM Memory under 4GB\r
-    //   \r
+    //\r
     Status = AllocateLegacyMemory (\r
                AllocateMaxAddress,\r
                EfiBootServicesCode,\r
                0xFFFFFFFF,\r
                EFI_SIZE_TO_PAGES (MemorySize),\r
                &MemoryAddress\r
-               );    \r
+               );\r
   }\r
   if (!EFI_ERROR (Status)) {\r
     EfiToLegacy16InitTable->HiPmmMemory            = (UINT32) (EFI_PHYSICAL_ADDRESS) (UINTN) MemoryAddress;\r
     EfiToLegacy16InitTable->HiPmmMemorySizeInBytes = MemorySize;\r
-  } \r
+  }\r
 \r
   //\r
   //  ShutdownAPs();\r
@@ -1149,7 +1149,7 @@ LegacyBiosInstall (
   // Save EFI value\r
   //\r
   Private->ThunkSeg = (UINT16) (EFI_SEGMENT (IntRedirCode));\r
-  \r
+\r
   //\r
   // Allocate reserved memory for SMBIOS table used in legacy boot if SMBIOS table exists\r
   //\r
@@ -1166,7 +1166,7 @@ LegacyBiosInstall (
                   &gEfiSmbiosTableGuid,\r
                   &InstallSmbiosEvent\r
                   );\r
-  ASSERT_EFI_ERROR (Status);  \r
+  ASSERT_EFI_ERROR (Status);\r
 \r
   //\r
   // Create callback to update status of EndOfDxe, which is needed by NULL\r
@@ -1193,9 +1193,9 @@ LegacyBiosInstall (
                   &Private->LegacyBios\r
                   );\r
   Private->Csm16PciInterfaceVersion = GetPciInterfaceVersion (Private);\r
-  \r
-  DEBUG ((EFI_D_INFO, "CSM16 PCI BIOS Interface Version: %02x.%02x\n", \r
-          (UINT8) (Private->Csm16PciInterfaceVersion >> 8), \r
+\r
+  DEBUG ((EFI_D_INFO, "CSM16 PCI BIOS Interface Version: %02x.%02x\n",\r
+          (UINT8) (Private->Csm16PciInterfaceVersion >> 8),\r
           (UINT8) Private->Csm16PciInterfaceVersion\r
         ));\r
   ASSERT (Private->Csm16PciInterfaceVersion != 0);\r
index 107593d9db364da9e187b4111658fd315e3a2813..57c1235bbf77d98820a7e20c3d5046a5ba5415a6 100644 (file)
@@ -3,14 +3,14 @@
 //\r
 // This driver installs Legacy Bios Protocol to support CSM module work in EFI system.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
 // of the BSD License which accompanies this distribution.  The\r
 // full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 1c68bfc3af10f3297d84b8426cdf914d4caff114..fd9bd9af1b8d444e3110f973f8afacf3f151ce82 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // LegacyBiosDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
@@ -14,8 +14,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Legacy BIOS Support DXE Driver"\r
 \r
 \r
index 9f3a1a693cbc6ac0566a79974da32c840c7cdffa..497a71190f27c7dfdb525807895b089948e0e2a4 100644 (file)
@@ -101,9 +101,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define PROTECTED_MODE_BASE_VECTOR_SLAVE   0x70\r
 \r
 //\r
-// When we call CSM16 functions, some CSM16 use es:[offset + 0xabcd] to get data passed from CSM32, \r
-// offset + 0xabcd could overflow which exceeds 0xFFFF which is invalid in real mode. \r
-// So this will keep offset as small as possible to avoid offset overflow in real mode. \r
+// When we call CSM16 functions, some CSM16 use es:[offset + 0xabcd] to get data passed from CSM32,\r
+// offset + 0xabcd could overflow which exceeds 0xFFFF which is invalid in real mode.\r
+// So this will keep offset as small as possible to avoid offset overflow in real mode.\r
 //\r
 #define NORMALIZE_EFI_SEGMENT(_Adr)      (UINT16) (((UINTN) (_Adr)) >> 4)\r
 #define NORMALIZE_EFI_OFFSET(_Adr)       (UINT16) (((UINT16) ((UINTN) (_Adr))) & 0xf)\r
@@ -544,7 +544,7 @@ extern BOOLEAN mEndOfDxe;
 //\r
 // Timer 0, Read/Write LSB then MSB, Square wave output, binary count use.\r
 //\r
-#define TIMER0_CONTROL_WORD         0x36      \r
+#define TIMER0_CONTROL_WORD         0x36\r
 \r
 #define LEGACY_BIOS_INSTANCE_SIGNATURE  SIGNATURE_32 ('L', 'B', 'I', 'T')\r
 typedef struct {\r
@@ -556,16 +556,16 @@ typedef struct {
   EFI_HANDLE                        ImageHandle;\r
 \r
   //\r
-  // CPU Architectural Protocol \r
+  // CPU Architectural Protocol\r
   //\r
   EFI_CPU_ARCH_PROTOCOL             *Cpu;\r
 \r
   //\r
-  // Timer Architectural Protocol \r
+  // Timer Architectural Protocol\r
   //\r
   EFI_TIMER_ARCH_PROTOCOL           *Timer;\r
-  BOOLEAN                           TimerUses8254; \r
-  \r
+  BOOLEAN                           TimerUses8254;\r
+\r
   //\r
   // Protocol to Lock and Unlock 0xc0000 - 0xfffff\r
   //\r
@@ -577,7 +577,7 @@ typedef struct {
   // Interrupt control for thunk and PCI IRQ\r
   //\r
   EFI_LEGACY_8259_PROTOCOL          *Legacy8259;\r
-  \r
+\r
   //\r
   // PCI Interrupt PIRQ control\r
   //\r
@@ -673,7 +673,7 @@ typedef struct {
   //\r
   // Indicate that whether GenericLegacyBoot is entered or not\r
   //\r
-  BOOLEAN                           LegacyBootEntered;                              \r
+  BOOLEAN                           LegacyBootEntered;\r
 \r
   //\r
   // CSM16 PCI Interface Version\r
@@ -1350,7 +1350,7 @@ ShadowAndStartLegacy16 (
 \r
 /**\r
   Checks the state of the floppy and if media is inserted.\r
-  \r
+\r
   This routine checks the state of the floppy and if media is inserted.\r
   There are 3 cases:\r
   No floppy present         - Set BBS entry to ignore\r
index 57ab78d6484cce913a9b693d45a98b23bd73ceb3..a7b8e6a9a0ae7f4ded9293b5b8f4646935939b93 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -791,15 +791,15 @@ CreateSmbiosTableInReservedMemory (
   )\r
 {\r
   SMBIOS_TABLE_ENTRY_POINT    *EntryPointStructure;\r
-  \r
-  if ((mRuntimeSmbiosEntryPoint == NULL) || \r
-      (mReserveSmbiosEntryPoint == 0) || \r
+\r
+  if ((mRuntimeSmbiosEntryPoint == NULL) ||\r
+      (mReserveSmbiosEntryPoint == 0) ||\r
       (mStructureTableAddress == 0)) {\r
     return;\r
   }\r
-  \r
+\r
   EntryPointStructure = (SMBIOS_TABLE_ENTRY_POINT *) mRuntimeSmbiosEntryPoint;\r
-  \r
+\r
   //\r
   // Copy SMBIOS Entry Point Structure\r
   //\r
@@ -808,7 +808,7 @@ CreateSmbiosTableInReservedMemory (
     EntryPointStructure,\r
     EntryPointStructure->EntryPointLength\r
   );\r
-  \r
+\r
   //\r
   // Copy SMBIOS Structure Table into EfiReservedMemoryType memory\r
   //\r
@@ -817,22 +817,22 @@ CreateSmbiosTableInReservedMemory (
     (VOID *)(UINTN) EntryPointStructure->TableAddress,\r
     EntryPointStructure->TableLength\r
   );\r
-  \r
+\r
   //\r
   // Update TableAddress in Entry Point Structure\r
   //\r
   EntryPointStructure = (SMBIOS_TABLE_ENTRY_POINT *)(UINTN) mReserveSmbiosEntryPoint;\r
   EntryPointStructure->TableAddress = (UINT32)(UINTN) mStructureTableAddress;\r
-  \r
+\r
   //\r
   // Fixup checksums in the Entry Point Structure\r
   //\r
   EntryPointStructure->IntermediateChecksum = 0;\r
   EntryPointStructure->EntryPointStructureChecksum = 0;\r
 \r
-  EntryPointStructure->IntermediateChecksum = \r
+  EntryPointStructure->IntermediateChecksum =\r
     CalculateCheckSum8 (\r
-      (UINT8 *) EntryPointStructure + OFFSET_OF (SMBIOS_TABLE_ENTRY_POINT, IntermediateAnchorString), \r
+      (UINT8 *) EntryPointStructure + OFFSET_OF (SMBIOS_TABLE_ENTRY_POINT, IntermediateAnchorString),\r
       EntryPointStructure->EntryPointLength - OFFSET_OF (SMBIOS_TABLE_ENTRY_POINT, IntermediateAnchorString)\r
       );\r
   EntryPointStructure->EntryPointStructureChecksum =\r
@@ -898,7 +898,7 @@ GenericLegacyBoot (
 \r
   EfiToLegacy16BootTable->MajorVersion = EFI_TO_LEGACY_MAJOR_VERSION;\r
   EfiToLegacy16BootTable->MinorVersion = EFI_TO_LEGACY_MINOR_VERSION;\r
-  \r
+\r
   //\r
   // If booting to a legacy OS then force HDD drives to the appropriate\r
   // boot mode by calling GetIdeHandle.\r
@@ -916,7 +916,7 @@ GenericLegacyBoot (
                                   );\r
     if (!EFI_ERROR (Status)) {\r
       IdeController = HandleBuffer[0];\r
-    }   \r
+    }\r
   }\r
   //\r
   // Unlock the Legacy BIOS region\r
@@ -1295,7 +1295,7 @@ GenericLegacyBoot (
     // Disable DXE Timer while executing in real mode\r
     //\r
     Private->Timer->SetTimerPeriod (Private->Timer, 0);\r
-    \r
+\r
     //\r
     // Save and disable interrupt of debug timer\r
     //\r
@@ -1464,8 +1464,8 @@ LegacyBiosBootUnconventionalDevice (
   }\r
 \r
   UcdTable = (UD_TABLE *) AllocatePool (\r
-                                                                                                               sizeof (UD_TABLE)\r
-                                                                                                               );\r
+                            sizeof (UD_TABLE)\r
+                            );\r
   if (NULL == UcdTable) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
index 4d520f8a3288b33a6ca17f5cf0f098c7f1186cf8..6a26157e548d787bd0bc6a9a29dfbb18d579bf2c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Collect IDE information from Native EFI Driver\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -76,7 +76,7 @@ LegacyBiosBuildIdeData (
                                           (VOID *) &LocalHddInfo\r
                                           );\r
   if (!EFI_ERROR (Status)) {\r
-    IdeController = HandleBuffer[0];    \r
+    IdeController = HandleBuffer[0];\r
     //\r
     // Force IDE drive spin up!\r
     //\r
@@ -279,8 +279,8 @@ InitLegacyIdeController (
   // and has PCI I/O resources allocated\r
   //\r
   Status = gBS->HandleProtocol (\r
-                  IdeController, \r
-                  &gEfiPciIoProtocolGuid, \r
+                  IdeController,\r
+                  &gEfiPciIoProtocolGuid,\r
                   (VOID **)&PciIo\r
                   );\r
   if (EFI_ERROR (Status)) {\r
index b10a9dcef6aa34be854f4f3a22a9761bb95b0ae5..8245a2b65e1404636809bc81743210aef7311699 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -150,7 +150,7 @@ EFI_STATUS
 RomShadow (\r
   IN  EFI_HANDLE                                  PciHandle,\r
   IN  UINT32                                      ShadowAddress,\r
-  IN  UINT32                                      ShadowedSize,  \r
+  IN  UINT32                                      ShadowedSize,\r
   IN  UINT8                                       DiskStart,\r
   IN  UINT8                                       DiskEnd\r
   )\r
@@ -258,7 +258,7 @@ IsLegacyRom (
 }\r
 \r
 /**\r
-  Find the PC-AT ROM Image in the raw PCI Option ROM. Also return the \r
+  Find the PC-AT ROM Image in the raw PCI Option ROM. Also return the\r
   related information from the header.\r
 \r
   @param  Csm16Revision           The PCI interface version of underlying CSM16\r
@@ -321,7 +321,7 @@ GetPciLegacyRom (
     if (((UINTN)RomHeader.Raw - (UINTN)*Rom) + Pcir->ImageLength * 512 > *ImageSize) {\r
       break;\r
     }\r
-    \r
+\r
     if (Pcir->CodeType == PCI_CODE_TYPE_PCAT_IMAGE) {\r
       Match = FALSE;\r
       if (Pcir->VendorId == VendorId) {\r
@@ -384,7 +384,7 @@ GetPciLegacyRom (
         DEBUG ((EFI_D_ERROR, "GetPciLegacyRom - OpRom not match (%04x-%04x)\n", (UINTN)VendorId, (UINTN)DeviceId));\r
       }\r
     }\r
-    \r
+\r
     if ((Pcir->Indicator & 0x80) == 0x80) {\r
       break;\r
     } else {\r
@@ -415,7 +415,7 @@ GetPciLegacyRom (
   }\r
 \r
   if (OpRomRevision != NULL) {\r
-    // \r
+    //\r
     // Optional return PCI Data Structure revision\r
     //\r
     if (Pcir->Length >= 0x1C) {\r
@@ -815,7 +815,7 @@ CopyPirqTable (
     //\r
     Regs.X.BX = (UINT16) 0x1;\r
     //\r
-    // 16-byte boundary alignment requirement according to \r
+    // 16-byte boundary alignment requirement according to\r
     // PCI IRQ Routing Table Specification\r
     //\r
     Regs.X.DX = 0x10;\r
@@ -832,7 +832,7 @@ CopyPirqTable (
     if (Regs.X.AX != 0) {\r
       DEBUG ((EFI_D_ERROR, "PIRQ table length insufficient - %x\n", PirqTableSize));\r
     } else {\r
-      DEBUG ((EFI_D_INFO, "PIRQ table in legacy region - %x\n", Private->Legacy16Table->IrqRoutingTablePointer));   \r
+      DEBUG ((EFI_D_INFO, "PIRQ table in legacy region - %x\n", Private->Legacy16Table->IrqRoutingTablePointer));\r
       Private->Legacy16Table->IrqRoutingTableLength = (UINT32)PirqTableSize;\r
       CopyMem (\r
         (VOID *) (UINTN)Private->Legacy16Table->IrqRoutingTablePointer,\r
@@ -1595,11 +1595,11 @@ PciShadowRoms (
                                           &HandleBuffer,\r
                                           &HandleCount,\r
                                           NULL\r
-                                          ); \r
+                                          );\r
   if (EFI_ERROR (Status)) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   VgaHandle = HandleBuffer[0];\r
 \r
   Status = gBS->LocateHandleBuffer (\r
@@ -1699,13 +1699,13 @@ PciShadowRoms (
                  sizeof (Pci) / sizeof (UINT32),\r
                  &Pci\r
                  );\r
-    \r
+\r
     //\r
-    // Only one Video OPROM can be given control in BIOS phase. If there are multiple Video devices, \r
-    // one will work in legacy mode (OPROM will be given control) and \r
+    // Only one Video OPROM can be given control in BIOS phase. If there are multiple Video devices,\r
+    // one will work in legacy mode (OPROM will be given control) and\r
     // other Video devices will work in native mode (OS driver will handle these devices).\r
-    // \r
-    if (IS_PCI_DISPLAY (&Pci) && Index != 0) {    \r
+    //\r
+    if (IS_PCI_DISPLAY (&Pci) && Index != 0) {\r
       continue;\r
     }\r
     //\r
@@ -1715,11 +1715,11 @@ PciShadowRoms (
     if (!EFI_ERROR (Status)) {\r
       continue;\r
     }\r
-    \r
+\r
     //\r
     // If legacy VBIOS Oprom has not been dispatched before, install legacy VBIOS here.\r
     //\r
-    if (IS_PCI_DISPLAY (&Pci) && Index == 0) {    \r
+    if (IS_PCI_DISPLAY (&Pci) && Index == 0) {\r
       Status = LegacyBiosInstallVgaRom (Private);\r
       //\r
       // A return status of EFI_NOT_FOUND is considered valid (No EFI\r
@@ -2104,7 +2104,7 @@ LegacyBiosInstallVgaRom (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   for (Index = 0; Index < EntryCount; Index++) {\r
     if ((OpenInfoBuffer[Index].Attributes & EFI_OPEN_PROTOCOL_BY_DRIVER) != 0) {\r
       Status = gBS->HandleProtocol (\r
@@ -2123,7 +2123,7 @@ LegacyBiosInstallVgaRom (
       }\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Kick off the native EFI driver\r
   //\r
@@ -2305,7 +2305,7 @@ LegacyBiosInstallRom (
   MaxRomAddr      = PcdGet32 (PcdEndOpromShadowAddress);\r
 \r
   if ((Private->Legacy16Table->TableLength >= OFFSET_OF(EFI_COMPATIBILITY16_TABLE, HiPermanentMemoryAddress)) &&\r
-      (Private->Legacy16Table->UmaAddress != 0) && \r
+      (Private->Legacy16Table->UmaAddress != 0) &&\r
       (Private->Legacy16Table->UmaSize != 0) &&\r
       (MaxRomAddr > (Private->Legacy16Table->UmaAddress))) {\r
     MaxRomAddr = Private->Legacy16Table->UmaAddress;\r
@@ -2326,7 +2326,7 @@ LegacyBiosInstallRom (
                     EFI_SIZE_TO_PAGES (ImageSize),\r
                     &PhysicalAddress\r
                     );\r
-        \r
+\r
     if (EFI_ERROR (Status)) {\r
       DEBUG ((EFI_D_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RESOURCES (no more space for OpROM)\n", __LINE__));\r
       //\r
@@ -2389,7 +2389,7 @@ LegacyBiosInstallRom (
                            (UINT32) ImageSize,\r
                            &Granularity\r
                            );\r
-    \r
+\r
   DEBUG ((EFI_D_INFO, " Shadowing OpROM init/runtime/isize = %x/%x/%x\n", InitAddress, RuntimeAddress, ImageSize));\r
 \r
   CopyMem ((VOID *) InitAddress, RomImage, ImageSize);\r
@@ -2466,7 +2466,7 @@ LegacyBiosInstallRom (
   //\r
   gRT->GetTime (&BootTime, NULL);\r
   LocalTime = BootTime.Hour * 3600 + BootTime.Minute * 60 + BootTime.Second;\r
-  \r
+\r
   //\r
   // Multiply result by 18.2 for number of ticks since midnight.\r
   // Use 182/10 to avoid floating point math.\r
@@ -2476,21 +2476,21 @@ LegacyBiosInstallRom (
     BdaPtr    = (UINT32 *) ((UINTN) 0x46C);\r
     *BdaPtr   = LocalTime;\r
   );\r
-  \r
+\r
   //\r
   // Pass in handoff data\r
   //\r
   PciEnableStatus = EFI_UNSUPPORTED;\r
   ZeroMem (&Regs, sizeof (Regs));\r
   if (PciHandle != NULL) {\r
-  \r
+\r
     Status = gBS->HandleProtocol (\r
                     PciHandle,\r
                     &gEfiPciIoProtocolGuid,\r
                     (VOID **) &PciIo\r
                     );\r
     ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
     //\r
     // Enable command register.\r
     //\r
@@ -2500,7 +2500,7 @@ LegacyBiosInstallRom (
                                EFI_PCI_DEVICE_ENABLE,\r
                                NULL\r
                                );\r
-  \r
+\r
     PciIo->GetLocation (\r
              PciIo,\r
              &Segment,\r
@@ -2510,10 +2510,10 @@ LegacyBiosInstallRom (
              );\r
     DEBUG ((EFI_D_INFO, "Shadowing OpROM on the PCI device %x/%x/%x\n", Bus, Device, Function));\r
   }\r
-  \r
+\r
   mIgnoreBbsUpdateFlag  = FALSE;\r
   Regs.X.AX             = Legacy16DispatchOprom;\r
-  \r
+\r
   //\r
   // Generate DispatchOpRomTable data\r
   //\r
@@ -2545,7 +2545,7 @@ LegacyBiosInstallRom (
   } else {\r
     Regs.X.BX = 0;\r
   }\r
-  \r
+\r
   if (Private->IntThunk->DispatchOpromTable.NumberBbsEntries != (UINT8) Private->IntThunk->EfiToLegacy16BootTable.NumberBbsEntries) {\r
     Private->IntThunk->EfiToLegacy16BootTable.NumberBbsEntries  = (UINT8) Private->IntThunk->DispatchOpromTable.NumberBbsEntries;\r
     mIgnoreBbsUpdateFlag = TRUE;\r
@@ -2618,7 +2618,7 @@ LegacyBiosInstallRom (
   ACCESS_PAGE0_CODE (\r
     LocalDiskEnd = (UINT8) ((*(UINT8 *) ((UINTN) 0x475)) + 0x80);\r
   );\r
-  \r
+\r
   //\r
   // Allow platform to perform any required actions after the\r
   // OPROM has been initialized.\r
@@ -2687,7 +2687,7 @@ LegacyBiosInstallRom (
   Private->OptionRom = (UINT32) (RuntimeAddress + *RuntimeImageLength);\r
 \r
   Status = EFI_SUCCESS;\r
-   \r
+\r
 Done:\r
   if (PhysicalAddress != 0) {\r
     //\r
@@ -2879,7 +2879,7 @@ LegacyBiosInstallPciRom (
   *Flags = 0;\r
   if ((PciHandle != NULL) && (RomImage == NULL)) {\r
     //\r
-    // If PciHandle has OpRom to Execute \r
+    // If PciHandle has OpRom to Execute\r
     // and OpRom are all associated with Hardware\r
     //\r
     Status = gBS->HandleProtocol (\r
@@ -3025,7 +3025,7 @@ LegacyBiosInstallPciRom (
       mVgaInstallationInProgress = FALSE;\r
       return EFI_UNSUPPORTED;\r
     }\r
-    \r
+\r
     Pcir = (PCI_3_0_DATA_STRUCTURE *)\r
            ((UINT8 *) LocalRomImage + ((PCI_EXPANSION_ROM_HEADER *) LocalRomImage)->PcirOffset);\r
 \r
index d330f4870baa62608e3c6035968d16cc6df61cf1..d59686eac996231a5adcae2f540427f673ecc635 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Call into 16-bit BIOS code, Use AsmThunk16 function of BaseLib.\r
 \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -77,7 +77,7 @@ LegacyBiosInt86 (
     Segment               = (UINT16)(((UINT32 *)0)[BiosInt] >> 16);\r
     Offset                = (UINT16)((UINT32 *)0)[BiosInt];\r
   );\r
-  \r
+\r
   return InternalLegacyBiosFarCall (\r
            This,\r
            Segment,\r
@@ -131,7 +131,7 @@ LegacyBiosFarCall86 (
 }\r
 \r
 /**\r
-  Provide NULL interrupt handler which is used to check \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
@@ -218,7 +218,7 @@ InternalLegacyBiosFarCall (
   // Disable DXE Timer while executing in real mode\r
   //\r
   Private->Timer->SetTimerPeriod (Private->Timer, 0);\r
\r
+\r
   //\r
   // Save and disable interrupt of debug timer\r
   //\r
@@ -231,14 +231,14 @@ InternalLegacyBiosFarCall (
 \r
   //\r
   // Check to see if there is more than one HW interrupt registers with the CPU AP.\r
-  // If there is, then ASSERT() since that is not compatible with the CSM because \r
-  // interupts other than the Timer interrupt that was disabled above can not be \r
+  // If there is, then ASSERT() since that is not compatible with the CSM because\r
+  // interupts other than the Timer interrupt that was disabled above can not be\r
   // handled properly from real mode.\r
   //\r
   DEBUG_CODE (\r
     UINTN  Vector;\r
     UINTN  Count;\r
-    \r
+\r
     for (Vector = 0x20, Count = 0; Vector < 0x100; Vector++) {\r
       Status = Private->Cpu->RegisterInterruptHandler (Private->Cpu, Vector, LegacyBiosNullInterruptHandler);\r
       if (Status == EFI_ALREADY_STARTED) {\r
@@ -255,14 +255,14 @@ InternalLegacyBiosFarCall (
   );\r
 \r
   //\r
-  // If the Timer AP has enabled the 8254 timer IRQ and the current 8254 timer \r
-  // period is less than the CSM required rate of 54.9254, then force the 8254 \r
+  // If the Timer AP has enabled the 8254 timer IRQ and the current 8254 timer\r
+  // period is less than the CSM required rate of 54.9254, then force the 8254\r
   // PIT counter to 0, which is the CSM required rate of 54.9254 ms\r
   //\r
   if (Private->TimerUses8254 && TimerPeriod < 549254) {\r
     SetPitCount (0);\r
   }\r
-  \r
+\r
   if (Stack != NULL && StackSize != 0) {\r
     //\r
     // Copy Stack to low memory stack\r
@@ -310,7 +310,7 @@ InternalLegacyBiosFarCall (
   // End critical section\r
   //\r
   gBS->RestoreTPL (OriginalTpl);\r
-  \r
+\r
   //\r
   // OPROM may allocate EBDA range by itself and change EBDA base and EBDA size.\r
   // Get the current EBDA base address, and compared with pre-allocate minimum\r
@@ -385,27 +385,27 @@ LegacyBiosInitializeThunk (
   TimerVector = 0;\r
   Status = Private->Legacy8259->GetVector (Private->Legacy8259, Efi8259Irq0, &TimerVector);\r
   ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
   //\r
   // Check to see if the Timer AP has hooked the IRQ0 from the 8254 PIT\r
-  //  \r
+  //\r
   Status = Private->Cpu->RegisterInterruptHandler (\r
-                           Private->Cpu, \r
-                           TimerVector, \r
+                           Private->Cpu,\r
+                           TimerVector,\r
                            LegacyBiosNullInterruptHandler\r
                            );\r
   if (Status == EFI_SUCCESS) {\r
     //\r
-    // If the Timer AP has not enabled the 8254 timer IRQ, then force the 8254 PIT \r
+    // If the Timer AP has not enabled the 8254 timer IRQ, then force the 8254 PIT\r
     // counter to 0, which is the CSM required rate of 54.9254 ms\r
     //\r
     Private->Cpu->RegisterInterruptHandler (\r
-                    Private->Cpu, \r
-                    TimerVector, \r
+                    Private->Cpu,\r
+                    TimerVector,\r
                     NULL\r
                     );\r
     SetPitCount (0);\r
-    \r
+\r
     //\r
     // Save status that the Timer AP is not using the 8254 PIT\r
     //\r
@@ -421,6 +421,6 @@ LegacyBiosInitializeThunk (
     //\r
     ASSERT (FALSE);\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
index 6c9f8515434819bc276050691fe6b393255b1c70..3a247885ed780b6af808f4adad3d23be3667fd48 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Definitions for data structures used in S3 resume.\r
 \r
-Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -62,8 +62,8 @@ typedef struct {
   //\r
   // S3 Debug extension\r
   //\r
-  EFI_PHYSICAL_ADDRESS  S3DebugBufferAddress; \r
-  EFI_PHYSICAL_ADDRESS  S3ResumeNvsEntryPoint;    \r
+  EFI_PHYSICAL_ADDRESS  S3DebugBufferAddress;\r
+  EFI_PHYSICAL_ADDRESS  S3ResumeNvsEntryPoint;\r
 } ACPI_VARIABLE_SET_COMPATIBILITY;\r
 \r
 #endif\r
index e22babc5b65772784e998c20fba087a24435f959..caa953b520ddd1e8cf240fc219fdc6f2a3d5e17c 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   GUIDs used as HII FormSet and HII Package list GUID in BdsDxe driver.\r
-  \r
-Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+\r
+Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                            \r
+http://opensource.org/licenses/bsd-license.php.\r
 \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
index 1a2bb024c4346f1e832f059f34893162baaca12a..8834219a5c88bdabe0ff1045651bc61fe3ddb415 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   GUID used as HII Package list GUID in GenericBdsLib module.\r
-  \r
-Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+\r
+Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                            \r
+http://opensource.org/licenses/bsd-license.php.\r
 \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
index 71aa05a595d327cd24bc9a71d15788f5f677ac6d..8a80b98043aaa1645f226da70d0219c91cb47c0e 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   Guid for unrecognized EDD 3.0 device.\r
 \r
-Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
index 7e97d17f23203636806314a5835ca888901623d6..e50ce6fa9bf946f6d4367fe57868128237fbf840 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   GUID to specify which FFS file to store the updated capsule data.\r
 \r
-Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
index a03a09712c1c5225c5857697b53febf45b162c1b..820213a53935419ce65d4b3034f25fc5df529b5d 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   GUID used to identify Data Hub records logged by Status Code Protocol.\r
-  \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
index fae08397917b1d0a0ef7e272a3b044302ee78f42..15cf19f1f872f96dc13f9c9c7ea10bdbd07c0c5e 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   GUID used as EFI Variable for the device path of Boot file on HardDevice.\r
-  \r
-Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+\r
+Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                            \r
+http://opensource.org/licenses/bsd-license.php.\r
 \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
index a80c2315ba2522eb9317b99ee5f8453300a66d12..36b37c70b472899e844d7696984f851d877455be 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
-  GUID for IntelFrameworkModulePkg PCD Token Space \r
+  GUID for IntelFrameworkModulePkg PCD Token Space\r
 \r
-Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 **/\r
 \r
index 8d9e37fab2f17fc256f9afffbdf554df57ade418..9193df2e9edd36289b4607b3d3a3a1fff278e50b 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   GUID used as EFI variable to store platform language at last time enumeration.\r
-  \r
-Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+\r
+Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                            \r
+http://opensource.org/licenses/bsd-license.php.\r
 \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
@@ -16,7 +16,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define __LAST_ENUM_LANGUAGE_GUID_H__\r
 \r
 ///\r
-/// This GUID is used for Set/Get platform language into/from variable at last time enumeration \r
+/// This GUID is used for Set/Get platform language into/from variable at last time enumeration\r
 /// to ensure the enumeration will only execute once.\r
 ///\r
 #define LAST_ENUM_LANGUAGE_GUID \\r
index 1fcea9ccfb88361dc2699017fbd5f7a6249c2d0f..793f3425bacd0d198b83d1ff706de81789ce7aaa 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
   Defines a Tag GUID used to mark a UEFI legacy BIOS thunk driver based\r
-  on legacy BIOS services and legacy option ROM. This Tag GUID must be installed on \r
-  the ImageHandle of any module that follows the EFI Driver Model and uses \r
+  on legacy BIOS services and legacy option ROM. This Tag GUID must be installed on\r
+  the ImageHandle of any module that follows the EFI Driver Model and uses\r
   the Int86() or FarCall() services of the Legacy Bios Protocol to produce\r
   a standard UEFI I/O Protocol.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -22,8 +22,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define _LEGACY_BIOS_H_\r
 \r
 ///\r
-/// The Global ID for the Legacy BIOS GUID that must be installed onto the ImageHandle \r
-/// of any module follows the EFI Driver Model and uses the Int86() or FarCall() \r
+/// The Global ID for the Legacy BIOS GUID that must be installed onto the ImageHandle\r
+/// of any module follows the EFI Driver Model and uses the Int86() or FarCall()\r
 /// services of the Legacy BIOS Protocol to produce a standard UEFI I/O Protocol.\r
 ///\r
 #define EFI_LEGACY_BIOS_GUID \\r
index 684f098d58d1698f71e74603e61ee383f1ebc80f..2dfeb52bcdfec247b56dbe92c1ff89ebd0107915 100644 (file)
@@ -2,13 +2,13 @@
   Guid of a NV Variable which store the information about the\r
   FD/HD/CD/NET/BEV order.\r
 \r
-Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
index 7c2a6a6b93aca29fb71c1e8b49620af012f04cb8..526300d150ed863b6e507ad1abfc9c56d35e0a10 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   Tiano Custom decompress Guid definition.\r
-  \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
@@ -16,8 +16,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define __TIANO_CUSTOM_DECOMPRESS_GUID_H__\r
 \r
 ///\r
-/// The Global ID used to identify a section of an FFS file of type \r
-/// EFI_SECTION_GUID_DEFINED, whose contents have been compressed using \r
+/// The Global ID used to identify a section of an FFS file of type\r
+/// EFI_SECTION_GUID_DEFINED, whose contents have been compressed using\r
 /// Tiano Custom compression.\r
 ///\r
 #define TIANO_CUSTOM_DECOMPRESS_GUID  \\r
index c338c4d022986e1183464d698589e1e9e9fc0816..c0bb371a9d27707680d4b8150428c618bba907d2 100644 (file)
@@ -4,13 +4,13 @@
     2) BDS boot device connect interface.\r
     3) BDS Misc interfaces for mainting boot variable, ouput string.\r
 \r
-Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
@@ -134,51 +134,51 @@ BdsLibBootViaBootOption (
 \r
 /**\r
   This function will enumerate all possible boot devices in the system, and\r
-  automatically create boot options for Network, Shell, Removable BlockIo, \r
-  and Non-BlockIo Simplefile devices. \r
-  \r
+  automatically create boot options for Network, Shell, Removable BlockIo,\r
+  and Non-BlockIo Simplefile devices.\r
+\r
   BDS separates EFI boot options into six types:\r
-  1. Network - The boot option points to the SimpleNetworkProtocol device. \r
+  1. Network - The boot option points to the SimpleNetworkProtocol device.\r
                Bds will try to automatically create this type of boot option during enumeration.\r
-  2. Shell   - The boot option points to internal flash shell. \r
+  2. Shell   - The boot option points to internal flash shell.\r
                Bds will try to automatically create this type of boot option during enumeration.\r
   3. Removable BlockIo      - The boot option points to a removable media\r
                               device, such as a USB flash drive or DVD drive.\r
                               These devices should contain a *removable* blockIo\r
                               protocol in their device handle.\r
-                              Bds will try to automatically create this type boot option \r
+                              Bds will try to automatically create this type boot option\r
                               when enumerate.\r
-  4. Fixed BlockIo          - The boot option points to a Fixed blockIo device, \r
+  4. Fixed BlockIo          - The boot option points to a Fixed blockIo device,\r
                               such as a hard disk.\r
                               These devices should contain a *fixed* blockIo\r
                               protocol in their device handle.\r
                               BDS will skip fixed blockIo devices, and not\r
-                              automatically create boot option for them. But BDS \r
-                              will help to delete those fixed blockIo boot options, \r
+                              automatically create boot option for them. But BDS\r
+                              will help to delete those fixed blockIo boot options,\r
                               whose description rules conflict with other auto-created\r
                               boot options.\r
-  5. Non-BlockIo Simplefile - The boot option points to a device whose handle \r
+  5. Non-BlockIo Simplefile - The boot option points to a device whose handle\r
                               has SimpleFileSystem Protocol, but has no blockio\r
                               protocol. These devices do not offer blockIo\r
-                              protocol, but BDS still can get the \r
+                              protocol, but BDS still can get the\r
                               \EFI\BOOT\boot{machinename}.EFI by SimpleFileSystem\r
                               Protocol.\r
-  6. File    - The boot option points to a file. These boot options are usually \r
+  6. File    - The boot option points to a file. These boot options are usually\r
                created by the user, either manually or with an OS loader. BDS will not delete or modify\r
-               these boot options.        \r
-    \r
+               these boot options.\r
+\r
   This function will enumerate all possible boot devices in the system, and\r
-  automatically create boot options for Network, Shell, Removable BlockIo, \r
+  automatically create boot options for Network, Shell, Removable BlockIo,\r
   and Non-BlockIo Simplefile devices.\r
   It will execute once every boot.\r
-  \r
+\r
   @param  BdsBootOptionList      The header of the linked list that indexed all\r
                                  current boot options.\r
 \r
-  @retval EFI_SUCCESS            Finished all the boot device enumerations and \r
+  @retval EFI_SUCCESS            Finished all the boot device enumerations and\r
                                  created the boot option based on the boot device.\r
 \r
-  @retval EFI_OUT_OF_RESOURCES   Failed to enumerate the boot device and create \r
+  @retval EFI_OUT_OF_RESOURCES   Failed to enumerate the boot device and create\r
                                  the boot option list.\r
 **/\r
 EFI_STATUS\r
@@ -190,7 +190,7 @@ BdsLibEnumerateAllBootOption (
 /**\r
   Build the boot option with the handle parsed in.\r
 \r
-  @param  Handle                 The handle representing the device path for which \r
+  @param  Handle                 The handle representing the device path for which\r
                                  to create a boot option.\r
   @param  BdsBootOptionList      The header of the link list that indexed all\r
                                  current boot options.\r
@@ -283,8 +283,8 @@ BdsLibBuildOptionFromVar (
   @param  VendorGuid            The GUID part of the EFI variable name.\r
   @param  VariableSize          Returns the size of the EFI variable that was read.\r
 \r
-  @return                       Dynamically allocated memory that contains a copy \r
-                                of the EFI variable. The caller is responsible for \r
+  @return                       Dynamically allocated memory that contains a copy\r
+                                of the EFI variable. The caller is responsible for\r
                                 freeing the buffer.\r
   @retval NULL                  The variable was not read.\r
 \r
@@ -366,7 +366,7 @@ BdsLibRegisterNewOption (
 // Bds connect and disconnect driver lib funcions\r
 //\r
 /**\r
-  This function connects all system drivers with the corresponding controllers. \r
+  This function connects all system drivers with the corresponding controllers.\r
 \r
 **/\r
 VOID\r
@@ -407,12 +407,12 @@ BdsLibConnectDevicePath (
   );\r
 \r
 /**\r
-  This function will connect all current system handles recursively.     \r
-  gBS->ConnectController() service is invoked for each handle exist in system handler buffer.  \r
+  This function will connect all current system handles recursively.\r
+  gBS->ConnectController() service is invoked for each handle exist in system handler buffer.\r
   If the handle is bus type handler, all childrens also will be connected recursively  by gBS->ConnectController().\r
-  \r
+\r
   @retval EFI_SUCCESS           All handles and child handles have been\r
-                                connected.  \r
+                                connected.\r
   @retval EFI_STATUS            Return the status of gBS->LocateHandleBuffer().\r
 **/\r
 EFI_STATUS\r
@@ -422,10 +422,10 @@ BdsLibConnectAllEfi (
   );\r
 \r
 /**\r
-  This function will disconnect all current system handles.     \r
-  gBS->DisconnectController() is invoked for each handle exists in system handle buffer.  \r
+  This function will disconnect all current system handles.\r
+  gBS->DisconnectController() is invoked for each handle exists in system handle buffer.\r
   If handle is a bus type handle, all childrens also are disconnected recursively by  gBS->DisconnectController().\r
-  \r
+\r
   @retval EFI_SUCCESS           All handles have been disconnected.\r
   @retval EFI_STATUS            Error status returned by of gBS->LocateHandleBuffer().\r
 \r
@@ -535,7 +535,7 @@ BdsLibConnectConsoleVariable (
 // Bds device path related lib functions\r
 //\r
 /**\r
-  Delete the instance in Multi that overlaps with Single. \r
+  Delete the instance in Multi that overlaps with Single.\r
 \r
   @param  Multi                 A pointer to a multi-instance device path data\r
                                 structure.\r
@@ -563,9 +563,9 @@ BdsLibDelPartMatchInstance (
   @param  Single                A pointer to a single-instance device path data\r
                                 structure.\r
 \r
-  @retval TRUE                  If the Single device path is contained within a \r
+  @retval TRUE                  If the Single device path is contained within a\r
                                 Multi device path.\r
-  @retval FALSE                 The Single device path is not contained within a \r
+  @retval FALSE                 The Single device path is not contained within a\r
                                 Multi device path.\r
 \r
 **/\r
@@ -657,7 +657,7 @@ BdsDeleteAllInvalidLegacyBootOptions (
 /**\r
   Add the legacy boot options from BBS table if they do not exist.\r
 \r
-  @retval EFI_SUCCESS          The boot options were added successfully, \r
+  @retval EFI_SUCCESS          The boot options were added successfully,\r
                                or they are already in boot options.\r
   @retval EFI_NOT_FOUND        No legacy boot options is found.\r
   @retval EFI_OUT_OF_RESOURCE  No enough memory.\r
@@ -670,7 +670,7 @@ BdsAddNonExistingLegacyBootOptions (
   );\r
 \r
 /**\r
-  Add the legacy boot devices from BBS table into \r
+  Add the legacy boot devices from BBS table into\r
   the legacy device boot order.\r
 \r
   @retval EFI_SUCCESS           The boot devices were added successfully.\r
@@ -689,7 +689,7 @@ BdsUpdateLegacyDevOrder (
   Refresh the boot priority for BBS entries based on boot option entry and boot order.\r
 \r
   @param  Entry             The boot option is to be checked for a refreshed BBS table.\r
-  \r
+\r
   @retval EFI_SUCCESS           The boot priority for BBS entries refreshed successfully.\r
   @retval EFI_NOT_FOUND         BBS entries can't be found.\r
   @retval EFI_OUT_OF_RESOURCES  Failed to get the legacy device boot order.\r
@@ -858,7 +858,7 @@ MatchPartitionDevicePathNode (
 \r
 /**\r
   Expand a device path that starts with a hard drive media device path node to be a\r
-  full device path that includes the full hardware path to the device. This function enables the device to boot. \r
+  full device path that includes the full hardware path to the device. This function enables the device to boot.\r
   To avoid requiring a connect on every boot, the front match is saved in a variable (the part point\r
   to the partition node. E.g. ACPI() /PCI()/ATA()/Partition() ).\r
   All successful history device paths\r
@@ -875,7 +875,7 @@ EFIAPI
 BdsExpandPartitionPartialDevicePathToFull (\r
   IN  HARDDRIVE_DEVICE_PATH      *HardDriveDevicePath\r
   );\r
-  \r
+\r
 /**\r
   Return the bootable media handle.\r
   First, check whether the device is connected.\r
@@ -892,7 +892,7 @@ EFIAPI
 BdsLibGetBootableHandle (\r
   IN  EFI_DEVICE_PATH_PROTOCOL      *DevicePath\r
   );\r
-  \r
+\r
 \r
 /**\r
   Checks whether the Device path in a boot option points to a valid bootable device, and if the device\r
@@ -941,21 +941,21 @@ BdsLibIsValidEFIBootOptDevicePathExt (
   @param  DevicePath                      The bootable device Path to check.\r
 \r
   @retval BDS_EFI_MEDIA_HD_BOOT           The given device path contains MEDIA_DEVICE_PATH type device path node,\r
-                                          whose subtype is MEDIA_HARDDRIVE_DP.  \r
-  @retval BDS_EFI_MEDIA_CDROM_BOOT        If given device path contains MEDIA_DEVICE_PATH type device path node, \r
-                                          whose subtype is MEDIA_CDROM_DP.  \r
-  @retval BDS_EFI_ACPI_FLOPPY_BOOT        A given device path contains ACPI_DEVICE_PATH type device path node,                                          \r
-                                          whose HID is floppy device.  \r
-  @retval BDS_EFI_MESSAGE_ATAPI_BOOT      A given device path contains MESSAGING_DEVICE_PATH type device path node, \r
-                                          and its last device path node's subtype is MSG_ATAPI_DP.  \r
+                                          whose subtype is MEDIA_HARDDRIVE_DP.\r
+  @retval BDS_EFI_MEDIA_CDROM_BOOT        If given device path contains MEDIA_DEVICE_PATH type device path node,\r
+                                          whose subtype is MEDIA_CDROM_DP.\r
+  @retval BDS_EFI_ACPI_FLOPPY_BOOT        A given device path contains ACPI_DEVICE_PATH type device path node,\r
+                                          whose HID is floppy device.\r
+  @retval BDS_EFI_MESSAGE_ATAPI_BOOT      A given device path contains MESSAGING_DEVICE_PATH type device path node,\r
+                                          and its last device path node's subtype is MSG_ATAPI_DP.\r
   @retval BDS_EFI_MESSAGE_SCSI_BOOT       A given device path contains MESSAGING_DEVICE_PATH type device path node,\r
-                                          and its last device path node's subtype is MSG_SCSI_DP. \r
-  @retval BDS_EFI_MESSAGE_USB_DEVICE_BOOT A given device path contains MESSAGING_DEVICE_PATH type device path node, \r
+                                          and its last device path node's subtype is MSG_SCSI_DP.\r
+  @retval BDS_EFI_MESSAGE_USB_DEVICE_BOOT A given device path contains MESSAGING_DEVICE_PATH type device path node,\r
                                           and its last device path node's subtype is MSG_USB_DP.\r
-  @retval BDS_EFI_MESSAGE_MISC_BOOT       The device path does not contain any media device path node, and  \r
-                                          its last device path node points to a message device path node.  \r
-  @retval BDS_LEGACY_BBS_BOOT             A given device path contains BBS_DEVICE_PATH type device path node. \r
-  @retval BDS_EFI_UNSUPPORT               An EFI Removable BlockIO device path does not point to a media and message device.   \r
+  @retval BDS_EFI_MESSAGE_MISC_BOOT       The device path does not contain any media device path node, and\r
+                                          its last device path node points to a message device path node.\r
+  @retval BDS_LEGACY_BBS_BOOT             A given device path contains BBS_DEVICE_PATH type device path node.\r
+  @retval BDS_EFI_UNSUPPORT               An EFI Removable BlockIO device path does not point to a media and message device.\r
 \r
   **/\r
 UINT32\r
@@ -975,12 +975,12 @@ EFIAPI
 BdsLibSaveMemoryTypeInformation (\r
   VOID\r
   );\r
-  \r
+\r
 /**\r
   Identify a user and, if authenticated, returns the current user profile handle.\r
 \r
   @param[out]  User           Points to the user profile handle.\r
-  \r
+\r
   @retval EFI_SUCCESS         The user is successfully identified, or user identification\r
                               is not supported.\r
   @retval EFI_ACCESS_DENIED   The user was not successfully identified.\r
@@ -990,7 +990,7 @@ EFI_STATUS
 EFIAPI\r
 BdsLibUserIdentify (\r
   OUT EFI_USER_PROFILE_HANDLE         *User\r
-  );  \r
+  );\r
 \r
 /**\r
   This function checks if a Fv file device path is valid, according to a file GUID. If it is invalid,\r
@@ -1030,7 +1030,7 @@ BdsLibUpdateFvFileDevicePath (
                                 path.\r
 \r
   @retval EFI_SUCCESS           The specific Usb device is connected successfully.\r
-  @retval EFI_INVALID_PARAMETER Invalid HostControllerPi (not 0x00, 0x20 or 0xFF) \r
+  @retval EFI_INVALID_PARAMETER Invalid HostControllerPi (not 0x00, 0x20 or 0xFF)\r
                                 or RemainingDevicePath is not the USB class device path.\r
   @retval EFI_NOT_FOUND         The device specified by device path is not found.\r
 \r
@@ -1041,7 +1041,7 @@ BdsLibConnectUsbDevByShortFormDP(
   IN UINT8                      HostControllerPI,\r
   IN EFI_DEVICE_PATH_PROTOCOL   *RemainingDevicePath\r
   );\r
-  \r
+\r
 \r
 //\r
 // The implementation of this function is provided by Platform code.\r
@@ -1098,7 +1098,7 @@ EnableQuietBoot (
 \r
 \r
 /**\r
-  Use SystemTable ConOut to turn on video based Simple Text Out consoles. The \r
+  Use SystemTable ConOut to turn on video based Simple Text Out consoles. The\r
   Simple Text Out screens will now be synced up with all non-video output devices.\r
 \r
   @retval EFI_SUCCESS     UGA devices are back in text mode and synced up.\r
index f971e670f0bc629e4efc599a9c98a2509a255892..d160d722b531977a96fb0fab742b986ea9979013 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
-  Platform BDS library definition. A platform can implement \r
+  Platform BDS library definition. A platform can implement\r
   instances to support platform-specific behavior.\r
 \r
-Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
@@ -54,7 +54,7 @@ EFI_STATUS
   @retval EFI_SUCCESS             There is no error when processing a capsule.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *PROCESS_CAPSULES)(\r
   IN EFI_BOOT_MODE BootMode\r
@@ -92,7 +92,7 @@ PlatformBdsPolicyBehavior (
   );\r
 \r
 /**\r
-  Hook point for a user-provided function, for after a boot attempt fails. \r
+  Hook point for a user-provided function, for after a boot attempt fails.\r
 \r
   @param  Option                  A pointer to Boot Option that failed to boot.\r
   @param  Status                  The status returned from failed boot.\r
index 7de35044179aa094bf84f8a3762c2cf37f402c48..4ac2bea127d23e8863a66e90fdafc0190ee1587d 100644 (file)
@@ -2,13 +2,13 @@
   EFI ISA ACPI Protocol is used to enumerate and manage all the ISA controllers on\r
   the platform's ISA Bus.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
@@ -71,13 +71,13 @@ typedef struct _EFI_ISA_ACPI_PROTOCOL EFI_ISA_ACPI_PROTOCOL;
 #define EFI_ISA_ACPI_IO_DECODE_16_BITS                   0x02    ///< ISA controllers uses a 16-bit address decoder for I/O cycles.\r
 \r
 ///\r
-/// EFI ISA ACPI resource type \r
+/// EFI ISA ACPI resource type\r
 ///\r
 typedef enum {\r
   EfiIsaAcpiResourceEndOfList,    ///< Marks the end if a resource list.\r
   EfiIsaAcpiResourceIo,           ///< ISA I/O port resource range.\r
   EfiIsaAcpiResourceMemory,       ///< ISA MMIO resource range.\r
-  EfiIsaAcpiResourceDma,          ///< ISA DMA resource. \r
+  EfiIsaAcpiResourceDma,          ///< ISA DMA resource.\r
   EfiIsaAcpiResourceInterrupt     ///< ISA interrupt resource.\r
 } EFI_ISA_ACPI_RESOURCE_TYPE;\r
 \r
@@ -112,10 +112,10 @@ typedef struct {
 \r
   This service allows all the ISA controllers on an ISA bus to be enumerated.  If\r
   Device is a pointer to a NULL value, then the first ISA controller on the ISA\r
-  bus is returned in Device and EFI_SUCCESS is returned.  If Device is a pointer \r
-  to a value that was returned on a prior call to DeviceEnumerate(), then the next \r
+  bus is returned in Device and EFI_SUCCESS is returned.  If Device is a pointer\r
+  to a value that was returned on a prior call to DeviceEnumerate(), then the next\r
   ISA controller on the ISA bus is returned in Device and EFI_SUCCESS is returned.\r
-  If Device is a pointer to the last ISA controller on the ISA bus, then \r
+  If Device is a pointer to the last ISA controller on the ISA bus, then\r
   EFI_NOT_FOUND is returned.\r
 \r
   @param[in]  This     The pointer to the EFI_ISA_ACPI_PROTOCOL instance.\r
@@ -135,8 +135,8 @@ EFI_STATUS
 /**\r
   Sets the power state of an ISA controller.\r
 \r
-  This services sets the power state of the ISA controller specified by Device to \r
-  the power state specified by OnOff.  TRUE denotes on, FALSE denotes off. \r
+  This services sets the power state of the ISA controller specified by Device to\r
+  the power state specified by OnOff.  TRUE denotes on, FALSE denotes off.\r
   If the power state is sucessfully set on the ISA Controller, then\r
   EFI_SUCCESS is returned.\r
 \r
@@ -155,11 +155,11 @@ EFI_STATUS
   IN EFI_ISA_ACPI_DEVICE_ID  *Device,\r
   IN BOOLEAN                 OnOff\r
   );\r
-  \r
+\r
 /**\r
   Retrieves the current set of resources associated with an ISA controller.\r
 \r
-  Retrieves the set of I/O, MMIO, DMA, and interrupt resources currently \r
+  Retrieves the set of I/O, MMIO, DMA, and interrupt resources currently\r
   assigned to the ISA controller specified by Device.  These resources\r
   are returned in ResourceList.\r
 \r
@@ -209,7 +209,7 @@ EFI_STATUS
 \r
   @param[in] This           The pointer to the EFI_ISA_ACPI_PROTOCOL instance.\r
   @param[in] Device         The pointer to an ISA controller named by ACPI HID/UID.\r
-  @param[in] ResourceList   The pointer to a resources list that must be one of the \r
+  @param[in] ResourceList   The pointer to a resources list that must be one of the\r
                             resource lists returned by GetPosResource() for the\r
                             ISA controller specified by Device.\r
 \r
@@ -223,7 +223,7 @@ EFI_STATUS
   IN EFI_ISA_ACPI_PROTOCOL       *This,\r
   IN EFI_ISA_ACPI_DEVICE_ID      *Device,\r
   IN EFI_ISA_ACPI_RESOURCE_LIST  *ResourceList\r
-  );    \r
+  );\r
 \r
 /**\r
   Enables or disables an ISA controller.\r
@@ -243,7 +243,7 @@ EFI_STATUS
   IN EFI_ISA_ACPI_PROTOCOL   *This,\r
   IN EFI_ISA_ACPI_DEVICE_ID  *Device,\r
   IN BOOLEAN                 Enable\r
-  );    \r
+  );\r
 \r
 /**\r
   Initializes an ISA controller, so that it can be used.  This service must be called\r
@@ -261,14 +261,14 @@ EFI_STATUS
 (EFIAPI *EFI_ISA_ACPI_INIT_DEVICE)(\r
   IN EFI_ISA_ACPI_PROTOCOL   *This,\r
   IN EFI_ISA_ACPI_DEVICE_ID  *Device\r
-  );  \r
+  );\r
 \r
 /**\r
-  Initializes all the HW states required for the ISA controllers on the ISA bus \r
+  Initializes all the HW states required for the ISA controllers on the ISA bus\r
   to be enumerated and managed by the rest of the services in this prorotol.\r
   This service must be called before any of the other services in this\r
   protocol will function as expected.\r
\r
+\r
   @param[in] This  The pointer to the EFI_ISA_ACPI_PROTOCOL instance.\r
 \r
   @retval EFI_SUCCESS   Successfully initialized all required hardware states.\r
@@ -283,9 +283,9 @@ EFI_STATUS
 \r
 ///\r
 /// The EFI_ISA_ACPI_PROTOCOL provides the services to enumerate and manage\r
-/// ISA controllers on an ISA bus.  These services include the ability to initialize, \r
-/// enable, disable, and manage the power state of ISA controllers.  It also \r
-/// includes services to query current resources, query possible resources, \r
+/// ISA controllers on an ISA bus.  These services include the ability to initialize,\r
+/// enable, disable, and manage the power state of ISA controllers.  It also\r
+/// includes services to query current resources, query possible resources,\r
 /// and assign resources to an ISA controller.\r
 ///\r
 struct _EFI_ISA_ACPI_PROTOCOL {\r
@@ -300,5 +300,5 @@ struct _EFI_ISA_ACPI_PROTOCOL {
 };\r
 \r
 extern EFI_GUID gEfiIsaAcpiProtocolGuid;\r
-  \r
+\r
 #endif\r
index cf6632e7377a004a37d43a06e0c2f44b4ab90980..c81a5d1e0e86616b43111cfebef1a3a6c5ddece2 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
-  ISA I/O Protocol is used by ISA device drivers to perform I/O, MMIO and DMA \r
+  ISA I/O Protocol is used by ISA device drivers to perform I/O, MMIO and DMA\r
   operations on the ISA controllers they manage.\r
-  \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
@@ -84,7 +84,7 @@ typedef enum {
   EfiIsaIoOperationBusMasterWrite,\r
   ///\r
   /// Provides both read and write access to system memory by both the processor\r
-  /// and a bus master. The buffer is coherent from both the processor's and the \r
+  /// and a bus master. The buffer is coherent from both the processor's and the\r
   /// bus master's point of view.\r
   ///\r
   EfiIsaIoOperationBusMasterCommonBuffer,\r
@@ -102,15 +102,15 @@ typedef enum {
 /**\r
   Performs ISA I/O and MMIO Read/Write Cycles\r
 \r
-  @param[in]      This     A pointer to the EFI_ISA_IO_PROTOCOL instance.  \r
+  @param[in]      This     A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
   @param[in]      Width    Specifies the width of the I/O or MMIO operation.\r
-  @param[in]      Offset   The offset into the ISA I/O or MMIO space to start the \r
-                           operation.  \r
+  @param[in]      Offset   The offset into the ISA I/O or MMIO space to start the\r
+                           operation.\r
   @param[in]      Count    The number of I/O or MMIO operations to perform.\r
-  @param[in, out] Buffer   For read operations, the destination buffer to store \r
-                           the results. For write operations, the source buffer to \r
-                           write data from. \r
-                                 \r
+  @param[in, out] Buffer   For read operations, the destination buffer to store\r
+                           the results. For write operations, the source buffer to\r
+                           write data from.\r
+\r
   @retval EFI_SUCCESS             The data was successfully read from or written to the device.\r
   @retval EFI_UNSUPPORTED         The Offset is not valid for this device.\r
   @retval EFI_INVALID_PARAMETER   Width or Count, or both, were invalid.\r
@@ -171,48 +171,48 @@ EFI_STATUS
   Maps a memory region for DMA.\r
 \r
   This function returns the device-specific addresses required to access system memory.\r
-  This function is used to map system memory for ISA DMA operations.  All ISA DMA \r
-  operations must be performed through their mapped addresses, and such mappings must \r
+  This function is used to map system memory for ISA DMA operations.  All ISA DMA\r
+  operations must be performed through their mapped addresses, and such mappings must\r
   be freed with EFI_ISA_IO_PROTOCOL.Unmap() after the DMA operation is completed.\r
-    \r
-  If the DMA operation is a single read or write data transfer through an ISA bus \r
-  master, then EfiIsaIoOperationBusMasterRead or EfiIsaIoOperationBusMasterWrite \r
+\r
+  If the DMA operation is a single read or write data transfer through an ISA bus\r
+  master, then EfiIsaIoOperationBusMasterRead or EfiIsaIoOperationBusMasterWrite\r
   is used and the range is unmapped to complete the operation. If the DMA operation\r
-  is a single read or write data transfer through an ISA slave controller, then \r
-  EfiIsaIoOperationSlaveRead or EfiIsaIoOperationSlaveWrite is used and the range \r
-  is unmapped to complete the operation.  \r
-  \r
-  If performing a DMA read operation, all the data must be present in system memory before the Map() is performed.  Similarly, \r
-  if performing a DMA write operation, the data must not be accessed in system \r
-  memory until EFI_ISA_IO_PROTOCOL.Unmap() is performed.  Bus master operations that \r
-  require both read and write access or require multiple host device interactions \r
-  within the same mapped region must use EfiIsaIoOperationBusMasterCommonBuffer.  \r
-  However, only memory allocated via the EFI_ISA_IO_PROTOCOL.AllocateBuffer() interface \r
-  is guaranteed to be able to be mapped for this operation type.  In all mapping \r
+  is a single read or write data transfer through an ISA slave controller, then\r
+  EfiIsaIoOperationSlaveRead or EfiIsaIoOperationSlaveWrite is used and the range\r
+  is unmapped to complete the operation.\r
+\r
+  If performing a DMA read operation, all the data must be present in system memory before the Map() is performed.  Similarly,\r
+  if performing a DMA write operation, the data must not be accessed in system\r
+  memory until EFI_ISA_IO_PROTOCOL.Unmap() is performed.  Bus master operations that\r
+  require both read and write access or require multiple host device interactions\r
+  within the same mapped region must use EfiIsaIoOperationBusMasterCommonBuffer.\r
+  However, only memory allocated via the EFI_ISA_IO_PROTOCOL.AllocateBuffer() interface\r
+  is guaranteed to be able to be mapped for this operation type.  In all mapping\r
   requests the NumberOfBytes returned may be less than originally requested.  It is\r
   the caller's responsibility to make additional requests to complete the entire\r
   transfer.\r
 \r
   @param[in]      This                A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param[in]      Operation           Indicates the type of DMA (slave or bus master), \r
-                                      and if the DMA operation is going to read or \r
-                                      write to system memory. \r
-  @param[in]      ChannelNumber       The slave channel number to use for this DMA \r
-                                      operation.  If Operation and ChannelAttributes \r
-                                      shows that this device performs bus mastering \r
-                                      DMA, then this field is ignored.  The legal \r
+  @param[in]      Operation           Indicates the type of DMA (slave or bus master),\r
+                                      and if the DMA operation is going to read or\r
+                                      write to system memory.\r
+  @param[in]      ChannelNumber       The slave channel number to use for this DMA\r
+                                      operation.  If Operation and ChannelAttributes\r
+                                      shows that this device performs bus mastering\r
+                                      DMA, then this field is ignored.  The legal\r
                                       range for this field is 0..7.\r
   @param[in]      ChannelAttributes   A bitmask of the attributes used to configure\r
-                                      the slave DMA channel for this DMA operation.  \r
+                                      the slave DMA channel for this DMA operation.\r
                                       See EFI_ISA_IO_SLAVE_DMA_ATTRIBUTE_* for the\r
                                       legal bit combinations.\r
   @param[in]      HostAddress         The system memory address to map to the device.\r
-  @param[in, out] NumberOfBytes       On input the number of bytes to map.  On \r
+  @param[in, out] NumberOfBytes       On input the number of bytes to map.  On\r
                                       output the number of bytes that were mapped.\r
-  @param[out]     DeviceAddress       The resulting map address for the bus master \r
-                                      device to use to access the hosts HostAddress.  \r
+  @param[out]     DeviceAddress       The resulting map address for the bus master\r
+                                      device to use to access the hosts HostAddress.\r
   @param[out]     Mapping             A returned value that must be passed to into\r
-                                      EFI_ISA_IO_PROTOCOL.Unmap() to free all the the \r
+                                      EFI_ISA_IO_PROTOCOL.Unmap() to free all the the\r
                                       resources associated with this map request.\r
 \r
   @retval EFI_SUCCESS             The range was mapped for the returned NumberOfBytes.\r
@@ -239,9 +239,9 @@ EFI_STATUS
 /**\r
   Unmaps a memory region that was previously mapped with EFI_ISA_IO_PROTOCOL.Map().\r
 \r
-  The EFI_ISA_IO_PROTOCOL.Map() operation is completed and any corresponding \r
-  resources are released.  If the operation was EfiIsaIoOperationSlaveWrite \r
-  or EfiIsaIoOperationBusMasterWrite, the data is committed to system memory.  \r
+  The EFI_ISA_IO_PROTOCOL.Map() operation is completed and any corresponding\r
+  resources are released.  If the operation was EfiIsaIoOperationSlaveWrite\r
+  or EfiIsaIoOperationBusMasterWrite, the data is committed to system memory.\r
   Any resources used for the mapping are freed.\r
 \r
   @param[in] This           A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
@@ -259,10 +259,10 @@ EFI_STATUS
 \r
 /**\r
   Allocates pages that are suitable for an EfiIsaIoOperationBusMasterCommonBuffer\r
-  mapping.                                                                       \r
+  mapping.\r
 \r
   @param[in]  This          A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
-  @param[in]  Type          The type allocation to perform. \r
+  @param[in]  Type          The type allocation to perform.\r
   @param[in]  MemoryType    The type of memory to allocate.\r
   @param[in]  Pages         The number of pages to allocate.\r
   @param[out] HostAddress   A pointer to store the base address of the allocated range.\r
@@ -325,10 +325,10 @@ EFI_STATUS
   );\r
 \r
 ///\r
-/// The EFI_ISA_IO_PROTOCOL provides the basic Memory, I/O, and DMA interfaces \r
-/// used to abstract accesses to ISA controllers.  There is one EFI_ISA_IO_PROTOCOL \r
-/// instance for each ISA controller on a ISA bus. A device driver that wishes \r
-/// to manage an ISA controller in a system will have to retrieve the \r
+/// The EFI_ISA_IO_PROTOCOL provides the basic Memory, I/O, and DMA interfaces\r
+/// used to abstract accesses to ISA controllers.  There is one EFI_ISA_IO_PROTOCOL\r
+/// instance for each ISA controller on a ISA bus. A device driver that wishes\r
+/// to manage an ISA controller in a system will have to retrieve the\r
 /// ISA_PCI_IO_PROTOCOL instance associated with the ISA controller.\r
 ///\r
 struct _EFI_ISA_IO_PROTOCOL {\r
@@ -350,10 +350,10 @@ struct _EFI_ISA_IO_PROTOCOL {
   ///\r
   UINT32                               RomSize;\r
   ///\r
-  /// A pointer to the in memory copy of the ROM image. The ISA Bus Driver is responsible \r
+  /// A pointer to the in memory copy of the ROM image. The ISA Bus Driver is responsible\r
   /// for allocating memory for the ROM image, and copying the contents of the ROM to memory\r
   /// during ISA Bus initialization.\r
-  /// \r
+  ///\r
   VOID                                 *RomImage;\r
 };\r
 \r
index c56b7e725bcf12725f110fabb23c4b9142a3b6bb..0e1d8cd13734fcb20560d58649eca6009c609765 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
-  The OEM Badging Protocol defines the interface to get the OEM badging \r
+  The OEM Badging Protocol defines the interface to get the OEM badging\r
   image with the display attribute. This protocol can be produced based on OEM badging images.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
@@ -53,8 +53,8 @@ typedef enum {
   @param This              The pointer to this protocol instance.\r
   @param Instance          The visible image instance is found.\r
   @param Format            The format of the image. Examples: BMP, JPEG.\r
-  @param ImageData         The image data for the badge file. Currently only \r
-                           supports the .bmp file format. \r
+  @param ImageData         The image data for the badge file. Currently only\r
+                           supports the .bmp file format.\r
   @param ImageSize         The size of the image returned.\r
   @param Attribute         The display attributes of the image returned.\r
   @param CoordinateX       The X coordinate of the image.\r
index e912eed21318953f8270de4de06ce6d63618b44f..7e6906023caaa4bacf873f4c0251180897ad05e8 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   The VGA Mini Port Protocol used to set the text display mode of a VGA controller.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
@@ -30,22 +30,22 @@ typedef struct _EFI_VGA_MINI_PORT_PROTOCOL  EFI_VGA_MINI_PORT_PROTOCOL;
 \r
 /**\r
   Sets the text display mode of a VGA controller.\r
-  \r
-  Sets the text display mode of the VGA controller to the mode specified by \r
-  ModeNumber.  A ModeNumber of 0 is a request for an 80x25 text mode.  A \r
+\r
+  Sets the text display mode of the VGA controller to the mode specified by\r
+  ModeNumber.  A ModeNumber of 0 is a request for an 80x25 text mode.  A\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
+  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 sucessfully set to the mode number specified by ModeNumber, then\r
   EFI_SUCCESS is returned.\r
-    \r
+\r
   @param[in] This         A pointer to the EFI_VGA_MINI_PORT_PROTOCOL instance.\r
   @param[in] ModeNumber   The requested mode number.  0 for 80x25.  1 for 80x5.\r
 \r
   @retval EFI_SUCCESS        The mode number was set.\r
   @retval EFI_UNSUPPORTED    The mode number specified by ModeNumber is not supported.\r
   @retval EFI_DEVICE_ERROR   The device is not functioning properly.\r
-  \r
+\r
 **/\r
 typedef\r
 EFI_STATUS\r
@@ -69,17 +69,17 @@ struct _EFI_VGA_MINI_PORT_PROTOCOL {
   ///\r
   UINT64                      CrtcDataRegisterOffset;\r
   ///\r
-  /// PCI Controller MMIO BAR index of the VGA text mode frame buffer.  Typically \r
+  /// PCI Controller MMIO BAR index of the VGA text mode frame buffer.  Typically\r
   /// set to EFI_PCI_IO_PASS_THROUGH_BAR\r
   ///\r
   UINT8                       VgaMemoryBar;\r
   ///\r
-  /// PCI Controller I/O BAR index of the VGA CRTC address register.  Typically \r
+  /// PCI Controller I/O BAR index of the VGA CRTC address register.  Typically\r
   /// set to EFI_PCI_IO_PASS_THROUGH_BAR\r
   ///\r
   UINT8                       CrtcAddressRegisterBar;\r
   ///\r
-  /// PCI Controller I/O BAR index of the VGA CRTC data register.  Typically set \r
+  /// PCI Controller I/O BAR index of the VGA CRTC data register.  Typically set\r
   /// to EFI_PCI_IO_PASS_THROUGH_BAR\r
   ///\r
   UINT8                       CrtcDataRegisterBar;\r
index 5327242172b5f6d7b3d610761118eeecbcc81b30..5557b5a1cd59223c11a7c648a7f43f1de30fb1b8 100644 (file)
@@ -4,7 +4,7 @@
 # This package contains the definitions and module implementation\r
 # which follows Intel EFI Framework Specification.\r
 #\r
-# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 \r
   ## Include/Guid/LegacyBios.h\r
   gEfiLegacyBiosGuid                 = { 0x2E3044AC, 0x879F, 0x490F, { 0x97, 0x60, 0xBB, 0xDF, 0xAF, 0x69, 0x5F, 0x50 }}\r
-  \r
+\r
   ## Include/Guid/LegacyDevOrder.h\r
   gEfiLegacyDevOrderVariableGuid     = { 0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52 }}\r
 \r
   ## Include/Guid/CapsuleDataFile.h\r
   gEfiUpdateDataFileGuid             = { 0x283fa2ee, 0x532c, 0x484d, { 0x93, 0x83, 0x9f, 0x93, 0xb3, 0x6f, 0xb, 0x7e }}\r
-  \r
+\r
   ## Include/Guid/BlockIoVendor.h\r
   gBlockIoVendorGuid                 = { 0xcf31fac5, 0xc24e, 0x11d2,  {0x85, 0xf3, 0x0, 0xa0, 0xc9, 0x3e, 0xc9, 0x3b }}\r
-  \r
+\r
   ## Include/Guid/BdsHii.h\r
   gFrontPageFormSetGuid              = { 0x9e0c30bc, 0x3f06, 0x4ba6, {0x82, 0x88, 0x9, 0x17, 0x9b, 0x85, 0x5d, 0xbe }}\r
   gBootManagerFormSetGuid            = { 0x847bc3fe, 0xb974, 0x446d, {0x94, 0x49, 0x5a, 0xd5, 0x41, 0x2e, 0x99, 0x3b }}\r
   gDriverHealthFormSetGuid           = { 0xf76e0a70, 0xb5ed, 0x4c38, {0xac, 0x9a, 0xe5, 0xf5, 0x4b, 0xf1, 0x6e, 0x34 }}\r
   gBootMaintFormSetGuid              = { 0x642237c7, 0x35d4, 0x472d, {0x83, 0x65, 0x12, 0xe0, 0xcc, 0xf2, 0x7a, 0x22 }}\r
   gFileExploreFormSetGuid            = { 0x1f2d63e1, 0xfebd, 0x4dc7, {0x9c, 0xc5, 0xba, 0x2b, 0x1c, 0xef, 0x9c, 0x5b }}\r
-  \r
+\r
   ## Include/Guid/BdsLibHii.h\r
   gBdsLibStringPackageGuid           = { 0x3b4d9b23, 0x95ac, 0x44f6, {0x9f, 0xcd, 0xe, 0x95, 0x94, 0x58, 0x6c, 0x72 }}\r
-  \r
+\r
   ## Include/Guid/LastEnumLang.h\r
   gLastEnumLangGuid                  = { 0xe8c545b, 0xa2ee, 0x470d, {0x8e, 0x26, 0xbd, 0xa1, 0xa1, 0x3c, 0xa, 0xa3 }}\r
 \r
   # @Prompt Turn on Legacy Support in S3 Boot\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformCsmSupport|TRUE|BOOLEAN|0x00010044\r
 \r
-  ## Indicates if Framework Acpi Support protocol is installed.<BR><BR>  \r
+  ## Indicates if Framework Acpi Support protocol is installed.<BR><BR>\r
   #   TRUE  - Install Framework Acpi Support protocol.<BR>\r
   #   FALSE - Doesn't install Framework Acpi Support protocol.<BR>\r
   # @Prompt Enable Framework Acpi Support\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLegacyBiosCacheLegacyRegion|TRUE|BOOLEAN|0x00000004\r
 \r
   ## Specify memory size with bytes to reserve EBDA below 640K for OPROM.\r
-  # The value should be a multiple of 4KB. \r
+  # The value should be a multiple of 4KB.\r
   # @Prompt Reserved EBDA Memory Size\r
   # @Expression 0x80000001 | (gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdEbdaReservedMemorySize < 0xA0000) AND ((gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdEbdaReservedMemorySize & 0x1000) == 0)\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdEbdaReservedMemorySize|0x8000|UINT32|0x30000005\r
 \r
   ## Specify memory base address for OPROM to find free memory.\r
-  # Some OPROMs do not use EBDA or PMM to allocate memory for its usage, \r
+  # Some OPROMs do not use EBDA or PMM to allocate memory for its usage,\r
   # instead they find the memory filled with zero from 0x20000.\r
   # The value should be a multiple of 4KB.\r
-  # The range should be below the EBDA reserved range from \r
+  # The range should be below the EBDA reserved range from\r
   # (CONVENTIONAL_MEMORY_TOP - Reserved EBDA Memory Size) to CONVENTIONAL_MEMORY_TOP.\r
   # @Prompt Reserved Memory Base Address for OPROM\r
   # @Expression 0x80000001 | (gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdOpromReservedMemoryBase >= 0x20000) AND ((gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdOpromReservedMemoryBase & 0x1000) == 0)\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdOpromReservedMemoryBase|0x60000|UINT32|0x3000000c\r
-  \r
+\r
   ## Specify memory size with bytes for OPROM to find free memory.\r
-  #  The value should be a multiple of 4KB. And the range should be below the EBDA reserved range from \r
+  #  The value should be a multiple of 4KB. And the range should be below the EBDA reserved range from\r
   # (CONVENTIONAL_MEMORY_TOP - Reserved EBDA Memory Size) to CONVENTIONAL_MEMORY_TOP.\r
   # @Prompt Reserved Memory Size for OPROM\r
   # @Expression 0x80000001 | (gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdOpromReservedMemorySize < 0x80000) AND ((gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdOpromReservedMemorySize & 0x1000) == 0)\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdOpromReservedMemorySize|0x28000|UINT32|0x3000000d\r
 \r
   ## Specify memory size with page number for a pre-allocated reserved memory to be used\r
-  #  by PEI in S3 phase. The default size 32K. When changing the value make sure the memory size \r
+  #  by PEI in S3 phase. The default size 32K. When changing the value make sure the memory size\r
   #  is large enough to meet PEI requirement in the S3 phase.\r
   # @Prompt Reserved S3 Boot ACPI Memory Size\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdS3AcpiReservedMemorySize|0x8000|UINT32|0x30000006\r
   # @Prompt Top Address of Shadowed Legacy OpROM\r
   # @Expression 0x80000001 | gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdEndOpromShadowAddress < 0x100000\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdEndOpromShadowAddress|0xdffff|UINT32|0x30000008\r
-  \r
+\r
   ## Specify the low PMM (Post Memory Manager) size with bytes below 1MB.\r
   #  The value should be a multiple of 4KB.\r
   # @Prompt Low PMM (Post Memory Manager) Size\r
   # @Expression 0x80000001 | (gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLowPmmMemorySize < 0x100000) AND ((gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLowPmmMemorySize & 0x1000) == 0)\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLowPmmMemorySize|0x10000|UINT32|0x30000009\r
-  \r
+\r
   ## Specify the high PMM (Post Memory Manager) size with bytes above 1MB.\r
   #  The value should be a multiple of 4KB.\r
   # @Prompt High PMM (Post Memory Manager) Size\r
index 6c6c3d802a4fd5a966c022c0ee251340d9b7538c..d3077fd4942a8596a3bf5d2d49a97eed939ccae4 100644 (file)
@@ -4,15 +4,15 @@
 # This file is used to build all modules in IntelFrameworkModulePkg.\r
 #\r
 #Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
-#This program and the accompanying materials are licensed and made available under \r
-#the terms and conditions of the BSD License that accompanies this distribution.  \r
+#This program and the accompanying materials are licensed and made available under\r
+#the terms and conditions of the BSD License that accompanies this distribution.\r
 #The full text of the license may be found at\r
-#http://opensource.org/licenses/bsd-license.php.                          \r
+#http://opensource.org/licenses/bsd-license.php.\r
 #\r
 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 #\r
-##           \r
+##\r
 \r
 ################################################################################\r
 #\r
@@ -42,7 +42,7 @@
   CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf\r
   DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf\r
   DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
-  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf  \r
+  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
   BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
   SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
   BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
@@ -94,7 +94,7 @@
 \r
 [LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
   DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf\r
\r
+\r
 ################################################################################\r
 #\r
 # Pcd Section - list of all EDK II PCD Entries defined by this Platform\r
 \r
 [Components.IA32,Components.X64,Components.IPF]\r
   IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf\r
-  \r
+\r
 [Components.IA32]\r
   IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf\r
   IntelFrameworkModulePkg/Universal/CpuIoDxe/CpuIoDxe.inf {\r
     <LibraryClasses>\r
       IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r
   }\r
-  \r
+\r
 [Components.IPF]\r
   IntelFrameworkModulePkg/Universal/CpuIoDxe/CpuIoDxe.inf {\r
     <LibraryClasses>\r
index 87e60d38deb33ebbdc6dc4fae7ee741075d78ecc..13eb9fbeb5e2594f9a732b20abdb079e28b74421 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // IntelFrameworkModule Package Localized Strings and Content.\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_PACKAGE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_PACKAGE_NAME\r
+#language en-US\r
 "IntelFrameworkModule package"\r
 \r
 \r
index cb009e7771bb815fa6ee3d157f26098319ccf476..ab7987acf0a4f35eb30794f1475aaf0dd1105731 100644 (file)
@@ -1,15 +1,15 @@
 /** @file\r
-  UEFI and Tiano Custom Decompress Library \r
+  UEFI and Tiano Custom Decompress Library\r
   It will do Tiano or UEFI decompress with different verison parameter.\r
-  \r
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -17,9 +17,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 /**\r
   Shift mBitBuf NumOfBits left. Read in NumOfBits of bits from source.\r
-  \r
+\r
   @param Sd         The global scratch data\r
-  @param NumOfBits  The number of bits to shift and read.  \r
+  @param NumOfBits  The number of bits to shift and read.\r
 **/\r
 VOID\r
 FillBuf (\r
@@ -62,7 +62,7 @@ FillBuf (
   // Calculate additional bit count read to update mBitCount\r
   //\r
   Sd->mBitCount = (UINT16) (Sd->mBitCount - NumOfBits);\r
-  \r
+\r
   //\r
   // Copy NumOfBits of bits from mSubBitBuf into mBitBuf\r
   //\r
@@ -72,8 +72,8 @@ FillBuf (
 /**\r
   Get NumOfBits of bits out from mBitBuf\r
 \r
-  Get NumOfBits of bits out from mBitBuf. Fill mBitBuf with subsequent \r
-  NumOfBits of bits from source. Returns NumOfBits of bits that are \r
+  Get NumOfBits of bits out from mBitBuf. Fill mBitBuf with subsequent\r
+  NumOfBits of bits from source. Returns NumOfBits of bits that are\r
   popped out.\r
 \r
   @param  Sd        The global scratch data.\r
@@ -92,7 +92,7 @@ GetBits (
 \r
   //\r
   // Pop NumOfBits of Bits from Left\r
-  //  \r
+  //\r
   OutBits = (UINT32) (Sd->mBitBuf >> (BITBUFSIZ - NumOfBits));\r
 \r
   //\r
@@ -106,7 +106,7 @@ GetBits (
 /**\r
   Creates Huffman Code mapping table according to code length array.\r
 \r
-  Creates Huffman Code mapping table for Extra Set, Char&Len Set \r
+  Creates Huffman Code mapping table for Extra Set, Char&Len Set\r
   and Position Set according to code length array.\r
   If TableBits > 16, then ASSERT ().\r
 \r
@@ -157,7 +157,7 @@ MakeTable (
   for (Index = 0; Index < NumOfChar; Index++) {\r
     Count[BitLen[Index]]++;\r
   }\r
-  \r
+\r
   Start[0] = 0;\r
   Start[1] = 0;\r
 \r
@@ -173,7 +173,7 @@ MakeTable (
   }\r
 \r
   JuBits = (UINT16) (16 - TableBits);\r
-  \r
+\r
   Weight[0] = 0;\r
   for (Index = 1; Index <= TableBits; Index++) {\r
     Start[Index] >>= JuBits;\r
@@ -182,7 +182,7 @@ MakeTable (
 \r
   while (Index <= 16) {\r
     Weight[Index] = (UINT16) (1U << (16 - Index));\r
-    Index++;    \r
+    Index++;\r
   }\r
 \r
   Index = (UINT16) (Start[TableBits + 1] >> JuBits);\r
@@ -223,7 +223,7 @@ MakeTable (
           Sd->mRight[Avail] = Sd->mLeft[Avail] = 0;\r
           *Pointer = Avail++;\r
         }\r
-        \r
+\r
         if (*Pointer < (2 * NC - 1)) {\r
           if ((Index3 & Mask) != 0) {\r
             Pointer = &Sd->mRight[*Pointer];\r
@@ -250,11 +250,11 @@ MakeTable (
 \r
 /**\r
   Decodes a position value.\r
-  \r
+\r
   Get a position value according to Position Huffman Table.\r
 \r
   @param Sd      the global scratch data\r
-  \r
+\r
   @return The position value decoded.\r
 **/\r
 UINT32\r
@@ -325,7 +325,7 @@ ReadPTLen (
 \r
   ASSERT (nn <= NPT);\r
   //\r
-  // Read Extra Set Code Length Array size \r
+  // Read Extra Set Code Length Array size\r
   //\r
   Number = (UINT16) GetBits (Sd, nbit);\r
 \r
@@ -352,7 +352,7 @@ ReadPTLen (
 \r
     //\r
     // If a code length is less than 7, then it is encoded as a 3-bit\r
-    // value. Or it is encoded as a series of "1"s followed by a \r
+    // value. Or it is encoded as a series of "1"s followed by a\r
     // terminating "0". The number of "1"s = Code length - 4.\r
     //\r
     if (CharC == 7) {\r
@@ -362,15 +362,15 @@ ReadPTLen (
         CharC += 1;\r
       }\r
     }\r
-    \r
+\r
     FillBuf (Sd, (UINT16) ((CharC < 7) ? 3 : CharC - 3));\r
 \r
     Sd->mPTLen[Index++] = (UINT8) CharC;\r
\r
+\r
     //\r
-    // For Code&Len Set, \r
+    // For Code&Len Set,\r
     // After the third length of the code length concatenation,\r
-    // a 2-bit value is used to indicated the number of consecutive \r
+    // a 2-bit value is used to indicated the number of consecutive\r
     // zero lengths after the third length.\r
     //\r
     if (Index == Special) {\r
@@ -384,13 +384,13 @@ ReadPTLen (
   while (Index < nn && Index < NPT) {\r
     Sd->mPTLen[Index++] = 0;\r
   }\r
-  \r
+\r
   return MakeTable (Sd, nn, Sd->mPTLen, 8, Sd->mPTTable);\r
 }\r
 \r
 /**\r
   Reads code lengths for Char&Len Set.\r
-  \r
+\r
   Read in and decode the Char&Len Set Code Length Array, then\r
   generate the Huffman Code mapping table for the Char&Len Set.\r
 \r
@@ -477,7 +477,7 @@ ReadCLen (
 \r
 /**\r
   Decode a character/length value.\r
-  \r
+\r
   Read one value from mBitBuf, Get one code from mBitBuf. If it is at block boundary, generates\r
   Huffman code mapping table for Extra Set, Code&Len Set and\r
   Position Set.\r
@@ -499,7 +499,7 @@ DecodeC (
     //\r
     // Starting a new block\r
     // Read BlockSize from block header\r
-    // \r
+    //\r
     Sd->mBlockSize    = (UINT16) GetBits (Sd, 16);\r
 \r
     //\r
@@ -556,7 +556,7 @@ DecodeC (
 \r
 /**\r
   Decode the source data and put the resulting data into the destination buffer.\r
-  \r
+\r
   @param  Sd The global scratch data\r
 **/\r
 VOID\r
@@ -575,7 +575,7 @@ Decode (
   for (;;) {\r
     //\r
     // Get one code from mBitBuf\r
-    // \r
+    //\r
     CharC = DecodeC (Sd);\r
     if (Sd->mBadTableFlag != 0) {\r
       goto Done;\r
@@ -599,7 +599,7 @@ Decode (
       // Process a Pointer\r
       //\r
       CharC       = (UINT16) (CharC - (BIT8 - THRESHOLD));\r
\r
+\r
       //\r
       // Get string length\r
       //\r
@@ -630,18 +630,18 @@ Done:
 }\r
 \r
 /**\r
-  Given a compressed source buffer, this function retrieves the size of \r
-  the uncompressed buffer and the size of the scratch buffer required \r
+  Given a compressed source buffer, this function retrieves the size of\r
+  the uncompressed buffer and the size of the scratch buffer required\r
   to decompress the compressed source buffer.\r
 \r
-  Retrieves the size of the uncompressed buffer and the temporary scratch buffer \r
+  Retrieves the size of the uncompressed buffer and the temporary scratch buffer\r
   required to decompress the buffer specified by Source and SourceSize.\r
   If the size of the uncompressed buffer or the size of the scratch buffer cannot\r
-  be determined from the compressed data specified by Source and SourceData, \r
+  be determined from the compressed data specified by Source and SourceData,\r
   then RETURN_INVALID_PARAMETER is returned.  Otherwise, the size of the uncompressed\r
   buffer is returned in DestinationSize, the size of the scratch buffer is returned\r
   in ScratchSize, and RETURN_SUCCESS is returned.\r
-  This function does not have scratch buffer available to perform a thorough \r
+  This function does not have scratch buffer available to perform a thorough\r
   checking of the validity of the source data.  It just retrieves the "Original Size"\r
   field from the beginning bytes of the source data and output it as DestinationSize.\r
   And ScratchSize is specific to the decompression implementation.\r
@@ -656,16 +656,16 @@ Done:
                           that will be generated when the compressed buffer specified\r
                           by Source and SourceSize is decompressed..\r
   @param  ScratchSize     A pointer to the size, in bytes, of the scratch buffer that\r
-                          is required to decompress the compressed buffer specified \r
+                          is required to decompress the compressed buffer specified\r
                           by Source and SourceSize.\r
 \r
-  @retval  RETURN_SUCCESS The size of the uncompressed data was returned \r
-                          in DestinationSize and the size of the scratch \r
+  @retval  RETURN_SUCCESS The size of the uncompressed data was returned\r
+                          in DestinationSize and the size of the scratch\r
                           buffer was returned in ScratchSize.\r
-  @retval  RETURN_INVALID_PARAMETER \r
-                          The size of the uncompressed data or the size of \r
-                          the scratch buffer cannot be determined from \r
-                          the compressed data specified by Source \r
+  @retval  RETURN_INVALID_PARAMETER\r
+                          The size of the uncompressed data or the size of\r
+                          the scratch buffer cannot be determined from\r
+                          the compressed data specified by Source\r
                           and SourceSize.\r
 **/\r
 RETURN_STATUS\r
@@ -704,10 +704,10 @@ UefiDecompressGetInfo (
   Extracts decompressed data to its original form.\r
   This function is designed so that the decompression algorithm can be implemented\r
   without using any memory services.  As a result, this function is not allowed to\r
-  call any memory allocation services in its implementation.  It is the caller's \r
+  call any memory allocation services in its implementation.  It is the caller's\r
   responsibility to allocate and free the Destination and Scratch buffers.\r
-  If the compressed source data specified by Source is successfully decompressed \r
-  into Destination, then RETURN_SUCCESS is returned.  If the compressed source data \r
+  If the compressed source data specified by Source is successfully decompressed\r
+  into Destination, then RETURN_SUCCESS is returned.  If the compressed source data\r
   specified by Source is not in a valid compressed data format,\r
   then RETURN_INVALID_PARAMETER is returned.\r
 \r
@@ -718,14 +718,14 @@ UefiDecompressGetInfo (
   @param  Source      The source buffer containing the compressed data.\r
   @param  Destination The destination buffer to store the decompressed data\r
   @param  Scratch     A temporary scratch buffer that is used to perform the decompression.\r
-                      This is an optional parameter that may be NULL if the \r
+                      This is an optional parameter that may be NULL if the\r
                       required scratch buffer size is 0.\r
   @param  Version     1 for UEFI Decompress algoruthm, 2 for Tiano Decompess algorithm.\r
 \r
-  @retval  RETURN_SUCCESS Decompression completed successfully, and \r
+  @retval  RETURN_SUCCESS Decompression completed successfully, and\r
                           the uncompressed buffer is returned in Destination.\r
-  @retval  RETURN_INVALID_PARAMETER \r
-                          The source buffer specified by Source is corrupted \r
+  @retval  RETURN_INVALID_PARAMETER\r
+                          The source buffer specified by Source is corrupted\r
                           (not in a valid compressed format).\r
 **/\r
 RETURN_STATUS\r
@@ -815,10 +815,10 @@ UefiTianoDecompress (
   Extracts decompressed data to its original form.\r
   This function is designed so that the decompression algorithm can be implemented\r
   without using any memory services.  As a result, this function is not allowed to\r
-  call any memory allocation services in its implementation.  It is the caller's \r
+  call any memory allocation services in its implementation.  It is the caller's\r
   responsibility to allocate and free the Destination and Scratch buffers.\r
-  If the compressed source data specified by Source is successfully decompressed \r
-  into Destination, then RETURN_SUCCESS is returned.  If the compressed source data \r
+  If the compressed source data specified by Source is successfully decompressed\r
+  into Destination, then RETURN_SUCCESS is returned.  If the compressed source data\r
   specified by Source is not in a valid compressed data format,\r
   then RETURN_INVALID_PARAMETER is returned.\r
 \r
@@ -829,13 +829,13 @@ UefiTianoDecompress (
   @param  Source      The source buffer containing the compressed data.\r
   @param  Destination The destination buffer to store the decompressed data\r
   @param  Scratch     A temporary scratch buffer that is used to perform the decompression.\r
-                      This is an optional parameter that may be NULL if the \r
+                      This is an optional parameter that may be NULL if the\r
                       required scratch buffer size is 0.\r
 \r
-  @retval  RETURN_SUCCESS Decompression completed successfully, and \r
+  @retval  RETURN_SUCCESS Decompression completed successfully, and\r
                           the uncompressed buffer is returned in Destination.\r
-  @retval  RETURN_INVALID_PARAMETER \r
-                          The source buffer specified by Source is corrupted \r
+  @retval  RETURN_INVALID_PARAMETER\r
+                          The source buffer specified by Source is corrupted\r
                           (not in a valid compressed format).\r
 **/\r
 RETURN_STATUS\r
@@ -853,16 +853,16 @@ UefiDecompress (
   Examines a GUIDed section and returns the size of the decoded buffer and the\r
   size of an optional scratch buffer required to actually decode the data in a GUIDed section.\r
 \r
-  Examines a GUIDed section specified by InputSection.  \r
+  Examines a GUIDed section specified by InputSection.\r
   If GUID for InputSection does not match the GUID that this handler supports,\r
-  then RETURN_UNSUPPORTED is returned.  \r
+  then RETURN_UNSUPPORTED is returned.\r
   If the required information can not be retrieved from InputSection,\r
   then RETURN_INVALID_PARAMETER is returned.\r
   If the GUID of InputSection does match the GUID that this handler supports,\r
   then the size required to hold the decoded buffer is returned in OututBufferSize,\r
   the size of an optional scratch buffer is returned in ScratchSize, and the Attributes field\r
   from EFI_GUID_DEFINED_SECTION header of InputSection is returned in SectionAttribute.\r
-  \r
+\r
   If InputSection is NULL, then ASSERT().\r
   If OutputBufferSize is NULL, then ASSERT().\r
   If ScratchBufferSize is NULL, then ASSERT().\r
@@ -905,7 +905,7 @@ TianoDecompressGetInfo (
       return RETURN_INVALID_PARAMETER;\r
     }\r
     //\r
-    // Get guid attribute of guid section. \r
+    // Get guid attribute of guid section.\r
     //\r
     *SectionAttribute = ((EFI_GUID_DEFINED_SECTION2 *) InputSection)->Attributes;\r
 \r
@@ -925,7 +925,7 @@ TianoDecompressGetInfo (
       return RETURN_INVALID_PARAMETER;\r
     }\r
     //\r
-    // Get guid attribute of guid section. \r
+    // Get guid attribute of guid section.\r
     //\r
     *SectionAttribute = ((EFI_GUID_DEFINED_SECTION *) InputSection)->Attributes;\r
 \r
@@ -943,16 +943,16 @@ TianoDecompressGetInfo (
 \r
 /**\r
   Decompress a Tiano compressed GUIDed section into a caller allocated output buffer.\r
-  \r
-  Decodes the GUIDed section specified by InputSection.  \r
-  If GUID for InputSection does not match the GUID that this handler supports, then RETURN_UNSUPPORTED is returned.  \r
+\r
+  Decodes the GUIDed section specified by InputSection.\r
+  If GUID for InputSection does not match the GUID that this handler supports, then RETURN_UNSUPPORTED is returned.\r
   If the data in InputSection can not be decoded, then RETURN_INVALID_PARAMETER is returned.\r
   If the GUID of InputSection does match the GUID that this handler supports, then InputSection\r
   is decoded into the buffer specified by OutputBuffer and the authentication status of this\r
   decode operation is returned in AuthenticationStatus.  If the decoded buffer is identical to the\r
   data in InputSection, then OutputBuffer is set to point at the data in InputSection.  Otherwise,\r
   the decoded data will be placed in caller allocated buffer specified by OutputBuffer.\r
-  \r
+\r
   If InputSection is NULL, then ASSERT().\r
   If OutputBuffer is NULL, then ASSERT().\r
   If ScratchBuffer is NULL and this decode operation requires a scratch buffer, then ASSERT().\r
@@ -960,10 +960,10 @@ TianoDecompressGetInfo (
 \r
 \r
   @param[in]  InputSection  A pointer to a GUIDed section of an FFS formatted file.\r
-  @param[out] OutputBuffer  A pointer to a buffer that contains the result of a decode operation. \r
+  @param[out] OutputBuffer  A pointer to a buffer that contains the result of a decode operation.\r
   @param[in] ScratchBuffer  A caller allocated buffer that may be required by this function\r
-                            as a scratch buffer to perform the decode operation. \r
-  @param[out] AuthenticationStatus \r
+                            as a scratch buffer to perform the decode operation.\r
+  @param[out] AuthenticationStatus\r
                             A pointer to the authentication status of the decoded output buffer.\r
                             See the definition of authentication status in the EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI\r
                             section of the PI Specification. EFI_AUTH_STATUS_PLATFORM_OVERRIDE must\r
index 3992875011a47cec01b44d05cf6bba985ae5b232..5319989782739fe1a2f118aa3adb2f55170ae0ea 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Internal data structure and interfaces defintions for UEFI and Tiano Decompress Library.\r
 \r
-  Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -115,7 +115,7 @@ GetBits (
 /**\r
   Creates Huffman Code mapping table according to code length array.\r
 \r
-  Creates Huffman Code mapping table for Extra Set, Char&Len Set \r
+  Creates Huffman Code mapping table for Extra Set, Char&Len Set\r
   and Position Set according to code length array.\r
 \r
   @param  Sd        The global scratch data\r
@@ -141,7 +141,7 @@ MakeTable (
   Decodes a position value.\r
 \r
   Get a position value according to Position Huffman Table.\r
-  \r
+\r
   @param  Sd the global scratch data\r
 \r
   @return The position value decoded.\r
@@ -177,7 +177,7 @@ ReadPTLen (
 \r
 /**\r
   Reads code lengths for Char&Len Set.\r
-  \r
+\r
   Read in and decode the Char&Len Set Code Length Array, then\r
   generate the Huffman Code mapping table for the Char&Len Set.\r
 \r
@@ -191,7 +191,7 @@ ReadCLen (
 \r
 /**\r
   Decode a character/length value.\r
-  \r
+\r
   Read one value from mBitBuf, Get one code from mBitBuf. If it is at block boundary, generates\r
   Huffman code mapping table for Extra Set, Code&Len Set and\r
   Position Set.\r
index eaed06e0120f28aeaa1df89b620d4032902cadbc..88e609d08a4f4ecae2f2b65fe17dfece3a369c47 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Capsule Library instance to process capsule images.\r
 \r
-  Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -82,7 +82,7 @@ ValidateFmpCapsule (
 \r
   if (ItemNum == FmpCapsuleHeader->EmbeddedDriverCount) {\r
     //\r
-    // No payload element \r
+    // No payload element\r
     //\r
     if (((UINT8 *)FmpCapsuleHeader + ItemOffsetList[ItemNum - 1]) < EndOfCapsule) {\r
       return EFI_SUCCESS;\r
@@ -123,7 +123,7 @@ ValidateFmpCapsule (
 }\r
 \r
 /**\r
-  Process Firmware management protocol data capsule.  \r
+  Process Firmware management protocol data capsule.\r
 \r
   @param  CapsuleHeader         Points to a capsule header.\r
 \r
@@ -185,15 +185,15 @@ ProcessFmpCapsuleImage (
   }\r
 \r
   //\r
-  // 1. ConnectAll to ensure \r
-  //    All the communication protocol required by driver in capsule installed \r
+  // 1. ConnectAll to ensure\r
+  //    All the communication protocol required by driver in capsule installed\r
   //    All FMP protocols are installed\r
   //\r
   BdsLibConnectAll();\r
 \r
 \r
   //\r
-  // 2. Try to load & start all the drivers within capsule \r
+  // 2. Try to load & start all the drivers within capsule\r
   //\r
   SetDevicePathNodeLength (&MemMapNode.Header, sizeof (MemMapNode));\r
   MemMapNode.Header.Type     = HARDWARE_DEVICE_PATH;\r
@@ -230,8 +230,8 @@ ProcessFmpCapsuleImage (
     }\r
 \r
     Status = gBS->StartImage(\r
-                    ImageHandle, \r
-                    &ExitDataSize, \r
+                    ImageHandle,\r
+                    &ExitDataSize,\r
                     NULL\r
                     );\r
     if (EFI_ERROR(Status)) {\r
@@ -241,7 +241,7 @@ ProcessFmpCapsuleImage (
   }\r
 \r
   //\r
-  // Connnect all again to connect drivers within capsule \r
+  // Connnect all again to connect drivers within capsule\r
   //\r
   if (FmpCapsuleHeader->EmbeddedDriverCount > 0) {\r
     BdsLibConnectAll();\r
@@ -318,7 +318,7 @@ ProcessFmpCapsuleImage (
       TempFmpImageInfo = FmpImageInfoBuf;\r
       for (Index2 = 0; Index2 < FmpImageInfoCount; Index2++) {\r
         //\r
-        // Check all the payload entry in capsule payload list \r
+        // Check all the payload entry in capsule payload list\r
         //\r
         for (Index = FmpCapsuleHeader->EmbeddedDriverCount; Index < ItemNum; Index++) {\r
           ImageHeader  = (EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER *)((UINT8 *)FmpCapsuleHeader + ItemOffsetList[Index]);\r
index 78e170fa691eb985c185fbe437867ac25c4f541e..01455877c560e43095eb04416befe265bf2181ec 100644 (file)
@@ -3,13 +3,13 @@
 //\r
 // Capsule library instance for DXE_DRIVER and DXE_RUNTIME_DRIVER module types.\r
 //\r
-// Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index a3603f862ff5d5c547214f819f77c82eff32b7a9..a3c4b2b0562610b864737cb900dc0b9627737b60 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Report Status Code Library for DXE Phase.\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -106,13 +106,13 @@ InternalReportStatusCode (
         return EFI_UNSUPPORTED;\r
       }\r
     }\r
-  \r
+\r
     //\r
     // A status code service is present in system, so pass in all the parameters to the service.\r
     //\r
     return (*mReportStatusCode) (Type, Value, Instance, (EFI_GUID *)CallerId, Data);\r
   }\r
-  \r
+\r
   return EFI_UNSUPPORTED;\r
 }\r
 \r
@@ -508,7 +508,7 @@ ReportStatusCodeEx (
   //\r
   Tpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
   gBS->RestoreTPL (Tpl);\r
-  \r
+\r
   StatusCodeData = NULL;\r
   if (Tpl <= TPL_NOTIFY) {\r
     //\r
index 9c2d592fc66a9c9adee2bf38be66636377c785ce..178679ffb8b688074b1d006b121e8ac4b48061e0 100644 (file)
@@ -43,12 +43,12 @@ BmEndOfBdsPerfCode (
 \r
 /**\r
   The constructor function register UNI strings into imageHandle.\r
-  \r
-  It will ASSERT() if that operation fails and it will always return EFI_SUCCESS. \r
+\r
+  It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.\r
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor successfully added string package.\r
   @retval Other value   The constructor can't add string package.\r
 \r
@@ -432,7 +432,7 @@ BdsCreateLegacyBootOption (
                   );\r
 \r
   FreePool (Buffer);\r
-  \r
+\r
   Buffer = NULL;\r
 \r
   NewBootOrderList = AllocateZeroPool (*BootOrderListSize + sizeof (UINT16));\r
@@ -593,10 +593,10 @@ BdsDeleteAllInvalidLegacyBootOptions (
         return EFI_OUT_OF_RESOURCES;\r
       }\r
     }\r
-  \r
+\r
     //\r
     // Skip Non-Legacy boot option\r
-    // \r
+    //\r
     if (!BdsIsLegacyBootOption (BootOptionVar, &BbsEntry, &BbsIndex)) {\r
       if (BootOptionVar!= NULL) {\r
         FreePool (BootOptionVar);\r
@@ -803,7 +803,7 @@ BdsCreateOneLegacyBootOption (
 /**\r
   Add the legacy boot options from BBS table if they do not exist.\r
 \r
-  @retval EFI_SUCCESS          The boot options are added successfully \r
+  @retval EFI_SUCCESS          The boot options are added successfully\r
                                or they are already in boot options.\r
   @retval EFI_NOT_FOUND        No legacy boot options is found.\r
   @retval EFI_OUT_OF_RESOURCE  No enough memory.\r
@@ -953,7 +953,7 @@ BdsFillDevOrderBuf (
   @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_SUCCES             The buffer is created and the EFI variable named\r
                                  VAR_LEGACY_DEV_ORDER and gEfiLegacyDevOrderVariableGuid is\r
                                  set correctly.\r
   @retval EFI_OUT_OF_RESOURCES   Memmory or storage is not enough.\r
@@ -1044,11 +1044,11 @@ BdsCreateDevOrder (
   DevOrderPtr->BbsType = BBS_HARDDISK;\r
   DevOrderPtr->Length  = (UINT16) (sizeof (UINT16) + HDCount * sizeof (UINT16));\r
   DevOrderPtr          = (LEGACY_DEV_ORDER_ENTRY *) BdsFillDevOrderBuf (BbsTable, BBS_HARDDISK, BbsCount, DevOrderPtr->Data);\r
-  \r
+\r
   DevOrderPtr->BbsType = BBS_CDROM;\r
   DevOrderPtr->Length  = (UINT16) (sizeof (UINT16) + CDCount * sizeof (UINT16));\r
   DevOrderPtr          = (LEGACY_DEV_ORDER_ENTRY *) BdsFillDevOrderBuf (BbsTable, BBS_CDROM, BbsCount, DevOrderPtr->Data);\r
-  \r
+\r
   DevOrderPtr->BbsType = BBS_EMBED_NETWORK;\r
   DevOrderPtr->Length  = (UINT16) (sizeof (UINT16) + NETCount * sizeof (UINT16));\r
   DevOrderPtr          = (LEGACY_DEV_ORDER_ENTRY *) BdsFillDevOrderBuf (BbsTable, BBS_EMBED_NETWORK, BbsCount, DevOrderPtr->Data);\r
@@ -1075,7 +1075,7 @@ BdsCreateDevOrder (
 }\r
 \r
 /**\r
-  Add the legacy boot devices from BBS table into \r
+  Add the legacy boot devices from BBS table into\r
   the legacy device boot order.\r
 \r
   @retval EFI_SUCCESS           The boot devices are added successfully.\r
@@ -1293,7 +1293,7 @@ BdsUpdateLegacyDevOrder (
     NETIndex++;\r
   }\r
   NewNETPtr = NewPtr->Data;\r
-  \r
+\r
   //\r
   // copy BEV\r
   //\r
@@ -1517,7 +1517,7 @@ PrintBbsTable (
   Set the boot priority for BBS entries based on boot option entry and boot order.\r
 \r
   @param  Entry             The boot option is to be checked for refresh BBS table.\r
-  \r
+\r
   @retval EFI_SUCCESS           The boot priority for BBS entries is refreshed successfully.\r
   @retval EFI_NOT_FOUND         BBS entries can't be found.\r
   @retval EFI_OUT_OF_RESOURCES  Failed to get the legacy device boot order.\r
@@ -1719,7 +1719,7 @@ BdsLibDoLegacyBoot (
     Status = EfiCreateEventLegacyBootEx(\r
                TPL_NOTIFY,\r
                BmEndOfBdsPerfCode,\r
-               NULL, \r
+               NULL,\r
                &LegacyBootEvent\r
                );\r
     ASSERT_EFI_ERROR (Status);\r
@@ -1976,7 +1976,7 @@ BdsMatchUsbWwid (
 \r
 /**\r
   Find a USB device path which match the specified short-form device path start\r
-  with USB Class or USB WWID device path and load the boot file then return the \r
+  with USB Class or USB WWID device path and load the boot file then return the\r
   image handle. If ParentDevicePath is NULL, this function will search in all USB\r
   devices of the platform. If ParentDevicePath is not NULL,this function will only\r
   search in its child devices.\r
@@ -2133,7 +2133,7 @@ BdsFindUsbDevice (
 \r
 /**\r
   Expand USB Class or USB WWID device path node to be full device path of a USB\r
-  device in platform then load the boot file on this full device path and return the \r
+  device in platform then load the boot file on this full device path and return the\r
   image handle.\r
 \r
   This function support following 4 cases:\r
@@ -2365,9 +2365,9 @@ BdsLibBootViaBootOption (
     } else {\r
       DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Booting %S\n", Option->Description));\r
     }\r
-        \r
+\r
     DEBUG_CODE_END();\r
-  \r
+\r
     //\r
     // Report status code for OS Loader LoadImage.\r
     //\r
@@ -2421,7 +2421,7 @@ BdsLibBootViaBootOption (
     REPORT_STATUS_CODE (\r
       EFI_ERROR_CODE | EFI_ERROR_MINOR,\r
       (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_EC_BOOT_OPTION_LOAD_ERROR)\r
-      );    \r
+      );\r
     goto Done;\r
   }\r
 \r
@@ -2690,7 +2690,7 @@ BdsExpandPartitionPartialDevicePathToFull (
 \r
         //\r
         // Here limit the device path instance number to 12, which is max number for a system support 3 IDE controller\r
-        // If the user try to boot many OS in different HDs or partitions, in theory, \r
+        // If the user try to boot many OS in different HDs or partitions, in theory,\r
         // the HD_BOOT_DEVICE_PATH_VARIABLE_NAME variable maybe become larger and larger.\r
         //\r
         InstanceNum = 0;\r
@@ -3214,7 +3214,7 @@ BdsLibEnumerateAllBootOption (
 \r
   //\r
   // Parse removable media followed by fixed media.\r
-  // The Removable[] array is used by the for-loop below to create removable media boot options \r
+  // The Removable[] array is used by the for-loop below to create removable media boot options\r
   // at first, and then to create fixed media boot options.\r
   //\r
   Removable[0]  = FALSE;\r
@@ -3629,7 +3629,7 @@ BdsLibGetBootableHandle (
   UpdatedDevicePath = DevicePath;\r
 \r
   //\r
-  // Enter to critical section to protect the acquired BlockIo instance \r
+  // Enter to critical section to protect the acquired BlockIo instance\r
   // from getting released due to the USB mass storage hotplug event\r
   //\r
   OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
@@ -3653,10 +3653,10 @@ BdsLibGetBootableHandle (
     }\r
   } else {\r
     //\r
-    // For removable device boot option, its contained device path only point to the removable device handle, \r
-    // should make sure all its children handles (its child partion or media handles) are created and connected. \r
+    // For removable device boot option, its contained device path only point to the removable device handle,\r
+    // should make sure all its children handles (its child partion or media handles) are created and connected.\r
     //\r
-    gBS->ConnectController (Handle, NULL, NULL, TRUE); \r
+    gBS->ConnectController (Handle, NULL, NULL, TRUE);\r
     //\r
     // Get BlockIo protocol and check removable attribute\r
     //\r
@@ -4030,7 +4030,7 @@ BdsLibIsValidEFIBootOptDevicePathExt (
 \r
   //\r
   // Check if it's a valid boot option for network boot device.\r
-  // Check if there is EfiLoadFileProtocol installed. \r
+  // Check if there is EfiLoadFileProtocol installed.\r
   // If yes, that means there is a boot option for network.\r
   //\r
   Status = gBS->LocateDevicePath (\r
@@ -4068,7 +4068,7 @@ BdsLibIsValidEFIBootOptDevicePathExt (
       }\r
     } else {\r
       return TRUE;\r
-    }    \r
+    }\r
   }\r
 \r
   //\r
index f487aa611a9749db429451ce312a95a02acbf60f..c52188424ae66a59ce3b1b0330693f9a2c8b1b52 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   BDS Lib functions which relate with connect the device\r
 \r
-Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -109,7 +109,7 @@ BdsLibConnectDevicePath (
     return EFI_OUT_OF_RESOURCES;\r
   }\r
   CopyOfDevicePath  = DevicePath;\r
-  \r
+\r
   do {\r
     //\r
     // The outer loop handles multi instance device paths.\r
@@ -122,7 +122,7 @@ BdsLibConnectDevicePath (
       FreePool (CopyOfDevicePath);\r
       return EFI_OUT_OF_RESOURCES;\r
     }\r
-    \r
+\r
     Next      = Instance;\r
     while (!IsDevicePathEndType (Next)) {\r
       Next = NextDevicePathNode (Next);\r
@@ -203,8 +203,8 @@ BdsLibConnectDevicePath (
 }\r
 \r
 /**\r
-  This function will connect all current system handles recursively. \r
-  \r
+  This function will connect all current system handles recursively.\r
+\r
   gBS->ConnectController() service is invoked for each handle exist in system handler buffer.\r
   If the handle is bus type handler, all childrens also will be connected recursively\r
   by gBS->ConnectController().\r
@@ -247,8 +247,8 @@ BdsLibConnectAllEfi (
 }\r
 \r
 /**\r
-  This function will disconnect all current system handles. \r
-  \r
+  This function will disconnect all current system handles.\r
+\r
   gBS->DisconnectController() is invoked for each handle exists in system handle buffer.\r
   If handle is a bus type handle, all childrens also are disconnected recursively by\r
   gBS->DisconnectController().\r
index 9c21cfcd59491e69327d803a5cce194dae492042..167ad69c6486f6f98a1589c6fb7cd8fd05c98d17 100644 (file)
@@ -19,7 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   Check if we need to save the EFI variable with "ConVarName" as name\r
   as NV type\r
   If ConVarName is NULL, then ASSERT().\r
-  \r
+\r
   @param ConVarName The name of the EFI variable.\r
 \r
   @retval TRUE    Set the EFI variable as NV type.\r
@@ -33,7 +33,7 @@ IsNvNeed (
   CHAR16 *Ptr;\r
 \r
   ASSERT (ConVarName != NULL);\r
-  \r
+\r
   Ptr = ConVarName;\r
 \r
   //\r
@@ -47,7 +47,7 @@ IsNvNeed (
   if (((INTN)((UINTN)Ptr - (UINTN)ConVarName) / sizeof (CHAR16)) <= 3) {\r
     return TRUE;\r
   }\r
-  \r
+\r
   if ((*(Ptr - 3) == 'D') && (*(Ptr - 2) == 'e') && (*(Ptr - 1) == 'v')) {\r
     return FALSE;\r
   } else {\r
@@ -59,20 +59,20 @@ IsNvNeed (
   Fill console handle in System Table if there are no valid console handle in.\r
 \r
   Firstly, check the validation of console handle in System Table. If it is invalid,\r
-  update it by the first console device handle from EFI console variable. \r
+  update it by the first console device handle from EFI console variable.\r
 \r
   @param  VarName            The name of the EFI console variable.\r
   @param  ConsoleGuid        Specified Console protocol GUID.\r
-  @param  ConsoleHandle      On IN,  console handle in System Table to be checked. \r
+  @param  ConsoleHandle      On IN,  console handle in System Table to be checked.\r
                              On OUT, new console handle in system table.\r
-  @param  ProtocolInterface  On IN,  console protocol on console handle in System Table to be checked. \r
+  @param  ProtocolInterface  On IN,  console protocol on console handle in System Table to be checked.\r
                              On OUT, new console protocol on new console handle in system table.\r
 \r
   @retval TRUE               System Table has been updated.\r
   @retval FALSE              System Table hasn't been updated.\r
 \r
 **/\r
-BOOLEAN \r
+BOOLEAN\r
 UpdateSystemTableConsole (\r
   IN     CHAR16                          *VarName,\r
   IN     EFI_GUID                        *ConsoleGuid,\r
@@ -108,7 +108,7 @@ UpdateSystemTableConsole (
       return FALSE;\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Get all possible consoles device path from EFI variable\r
   //\r
@@ -135,7 +135,7 @@ UpdateSystemTableConsole (
       FreePool (FullDevicePath);\r
       ASSERT (FALSE);\r
     }\r
-    \r
+\r
     //\r
     // Find console device handle by device path instance\r
     //\r
@@ -371,7 +371,7 @@ BdsLibConnectConsoleVariable (
       FreePool (StartDevicePath);\r
       return EFI_UNSUPPORTED;\r
     }\r
-    \r
+\r
     Next      = Instance;\r
     while (!IsDevicePathEndType (Next)) {\r
       Next = NextDevicePathNode (Next);\r
@@ -380,7 +380,7 @@ BdsLibConnectConsoleVariable (
     SetDevicePathEndNode (Next);\r
     //\r
     // Connect the USB console\r
-    // USB console device path is a short-form device path that \r
+    // USB console device path is a short-form device path that\r
     //  starts with the first element being a USB WWID\r
     //  or a USB Class device path\r
     //\r
@@ -791,7 +791,7 @@ EnableQuietBoot (
         Attribute   = EfiBadgingDisplayAttributeCenter;\r
       } else {\r
         Attribute   = EfiBadgingDisplayAttributeCustomized;\r
-      } \r
+      }\r
     }\r
 \r
     if (Blt != NULL) {\r
@@ -968,7 +968,7 @@ Done:
     Status = EFI_SUCCESS;\r
   } else {\r
     //\r
-    // More than one Logo displayed, get merged BltBuffer using VideoToBuffer operation. \r
+    // More than one Logo displayed, get merged BltBuffer using VideoToBuffer operation.\r
     //\r
     if (Blt != NULL) {\r
       FreePool (Blt);\r
@@ -1034,7 +1034,7 @@ Done:
 }\r
 \r
 /**\r
-  Use SystemTable Conout to turn on video based Simple Text Out consoles. The \r
+  Use SystemTable Conout to turn on video based Simple Text Out consoles. The\r
   Simple Text Out screens will now be synced up with all non video output devices\r
 \r
   @retval EFI_SUCCESS     UGA devices are back in text mode and synced up.\r
index 48938b0670b07a4558c869b39350cebd9081be86..7a4a8e66b127109907563808fbb9e0be0f0ede5c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Misc BDS library function\r
 \r
-Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -51,7 +51,7 @@ BdsLibLoadDrivers (
   //\r
   for (Link = BdsDriverLists->ForwardLink; Link != BdsDriverLists; Link = Link->ForwardLink) {\r
     Option = CR (Link, BDS_COMMON_OPTION, Link, BDS_LOAD_OPTION_SIGNATURE);\r
-    \r
+\r
     //\r
     // If a load option is not marked as LOAD_OPTION_ACTIVE,\r
     // the boot manager will not automatically load the option.\r
@@ -59,7 +59,7 @@ BdsLibLoadDrivers (
     if (!IS_LOAD_OPTION_TYPE (Option->Attribute, LOAD_OPTION_ACTIVE)) {\r
       continue;\r
     }\r
-    \r
+\r
     //\r
     // If a driver load option is marked as LOAD_OPTION_FORCE_RECONNECT,\r
     // then all of the EFI drivers in the system will be disconnected and\r
@@ -68,7 +68,7 @@ BdsLibLoadDrivers (
     if (IS_LOAD_OPTION_TYPE (Option->Attribute, LOAD_OPTION_FORCE_RECONNECT)) {\r
       ReconnectAll = TRUE;\r
     }\r
-    \r
+\r
     //\r
     // Make sure the driver path is connected.\r
     //\r
@@ -117,7 +117,7 @@ BdsLibLoadDrivers (
       gBS->SetWatchdogTimer (0x0000, 0x0000, 0x0000, NULL);\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Process the LOAD_OPTION_FORCE_RECONNECT driver option\r
   //\r
@@ -280,7 +280,7 @@ BdsLibRegisterNewOption (
     // Notes: the description may will change base on the GetStringToken\r
     //\r
     if (CompareMem (OptionDevicePath, DevicePath, GetDevicePathSize (OptionDevicePath)) == 0) {\r
-      if (CompareMem (Description, String, StrSize (Description)) == 0) { \r
+      if (CompareMem (Description, String, StrSize (Description)) == 0) {\r
         //\r
         // Got the option, so just return\r
         //\r
@@ -304,7 +304,7 @@ BdsLibRegisterNewOption (
   OptionSize          += GetDevicePathSize (DevicePath);\r
   OptionPtr           = AllocateZeroPool (OptionSize);\r
   ASSERT (OptionPtr != NULL);\r
-  \r
+\r
   TempPtr             = OptionPtr;\r
   *(UINT32 *) TempPtr = LOAD_OPTION_ACTIVE;\r
   TempPtr             += sizeof (UINT32);\r
@@ -316,7 +316,7 @@ BdsLibRegisterNewOption (
 \r
   if (UpdateDescription) {\r
     //\r
-    // The number in option#### to be updated. \r
+    // The number in option#### to be updated.\r
     // In this case, we must have non-NULL TempOptionPtr.\r
     //\r
     ASSERT (TempOptionPtr != NULL);\r
@@ -375,7 +375,7 @@ BdsLibRegisterNewOption (
     }\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // TempOptionPtr must not be NULL if TempOptionSize is not zero.\r
   //\r
@@ -406,15 +406,15 @@ BdsLibRegisterNewOption (
 /**\r
   Returns the size of a device path in bytes.\r
 \r
-  This function returns the size, in bytes, of the device path data structure \r
-  specified by DevicePath including the end of device path node. If DevicePath \r
+  This function returns the size, in bytes, of the device path data structure\r
+  specified by DevicePath including the end of device path node. If DevicePath\r
   is NULL, then 0 is returned. If the length of the device path is bigger than\r
   MaxSize, also return 0 to indicate this is an invalidate device path.\r
 \r
   @param  DevicePath         A pointer to a device path data structure.\r
-  @param  MaxSize            Max valid device path size. If big than this size, \r
+  @param  MaxSize            Max valid device path size. If big than this size,\r
                              return error.\r
-  \r
+\r
   @retval 0                  An invalid device path.\r
   @retval Others             The size of a device path in bytes.\r
 \r
@@ -456,12 +456,12 @@ GetDevicePathSizeEx (
 }\r
 \r
 /**\r
-  Returns the length of a Null-terminated Unicode string. If the length is \r
-  bigger than MaxStringLen, return length 0 to indicate that this is an \r
+  Returns the length of a Null-terminated Unicode string. If the length is\r
+  bigger than MaxStringLen, return length 0 to indicate that this is an\r
   invalidate string.\r
 \r
   This function returns the byte length of Unicode characters in the Null-terminated\r
-  Unicode string specified by String. \r
+  Unicode string specified by String.\r
 \r
   If String is NULL, then ASSERT().\r
   If String is not aligned on a 16-bit boundary, then ASSERT().\r
@@ -503,7 +503,7 @@ StrSizeEx (
   @retval FALSE                 The variable data is corrupted.\r
 \r
 **/\r
-BOOLEAN \r
+BOOLEAN\r
 ValidateOption (\r
   UINT8                     *Variable,\r
   UINTN                     VariableSize\r
@@ -559,9 +559,9 @@ ValidateOption (
 /**\r
   Convert a single character to number.\r
   It assumes the input Char is in the scope of L'0' ~ L'9' and L'A' ~ L'F'\r
-  \r
+\r
   @param Char    The input char which need to change to a hex number.\r
-  \r
+\r
 **/\r
 UINTN\r
 CharToUint (\r
@@ -703,7 +703,7 @@ BdsLibVariableToOption (
   //\r
   if (*VariableName == 'B') {\r
     NumOff = (UINT8) (sizeof (L"Boot") / sizeof (CHAR16) - 1);\r
-    Option->BootCurrent = (UINT16) (CharToUint (VariableName[NumOff+0]) * 0x1000) \r
+    Option->BootCurrent = (UINT16) (CharToUint (VariableName[NumOff+0]) * 0x1000)\r
                + (UINT16) (CharToUint (VariableName[NumOff+1]) * 0x100)\r
                + (UINT16) (CharToUint (VariableName[NumOff+2]) * 0x10)\r
                + (UINT16) (CharToUint (VariableName[NumOff+3]) * 0x1);\r
@@ -1004,7 +1004,7 @@ BdsLibOutputStrings (
       break;\r
     }\r
   }\r
-  \r
+\r
   VA_END(Args);\r
   return Status;\r
 }\r
@@ -1298,7 +1298,7 @@ BdsLibGetImageHeader (
 }\r
 \r
 /**\r
-  This routine adjust the memory information for different memory type and \r
+  This routine adjust the memory information for different memory type and\r
   save them into the variables for next boot.\r
 **/\r
 VOID\r
@@ -1333,7 +1333,7 @@ BdsSetMemoryTypeInformationVariable (
   }\r
 \r
   //\r
-  // Only check the the Memory Type Information variable in the boot mode \r
+  // Only check the the Memory Type Information variable in the boot mode\r
   // other than BOOT_WITH_DEFAULT_SETTINGS because the Memory Type\r
   // Information is not valid in this boot mode.\r
   //\r
@@ -1342,8 +1342,8 @@ BdsSetMemoryTypeInformationVariable (
     Status = gRT->GetVariable (\r
                     EFI_MEMORY_TYPE_INFORMATION_VARIABLE_NAME,\r
                     &gEfiMemoryTypeInformationGuid,\r
-                    NULL, \r
-                    &VariableSize, \r
+                    NULL,\r
+                    &VariableSize,\r
                     NULL\r
                     );\r
     if (Status == EFI_BUFFER_TOO_SMALL) {\r
@@ -1474,7 +1474,7 @@ BdsLibSaveMemoryTypeInformation (
   Identify a user and, if authenticated, returns the current user profile handle.\r
 \r
   @param[out]  User           Point to user profile handle.\r
-  \r
+\r
   @retval EFI_SUCCESS         User is successfully identified, or user identification\r
                               is not supported.\r
   @retval EFI_ACCESS_DENIED   User is not successfully identified\r
@@ -1488,7 +1488,7 @@ BdsLibUserIdentify (
 {\r
   EFI_STATUS                          Status;\r
   EFI_USER_MANAGER_PROTOCOL           *Manager;\r
-  \r
+\r
   Status = gBS->LocateProtocol (\r
                   &gEfiUserManagerProtocolGuid,\r
                   NULL,\r
@@ -1510,15 +1510,15 @@ BdsLibUserIdentify (
                                  then EFI_INVALID_PARAMETER is returned.\r
   @param  VendorGuid             A unique identifier for the vendor.\r
   @param  Attributes             Attributes bitmask to set for the variable.\r
-  @param  DataSize               The size in bytes of the Data buffer. Unless the EFI_VARIABLE_APPEND_WRITE, \r
-                                 EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS, or \r
-                                 EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS attribute is set, a size of zero \r
-                                 causes the variable to be deleted. When the EFI_VARIABLE_APPEND_WRITE attribute is \r
-                                 set, then a SetVariable() call with a DataSize of zero will not cause any change to \r
-                                 the variable value (the timestamp associated with the variable may be updated however \r
-                                 even if no new data value is provided,see the description of the \r
-                                 EFI_VARIABLE_AUTHENTICATION_2 descriptor below. In this case the DataSize will not \r
-                                 be zero since the EFI_VARIABLE_AUTHENTICATION_2 descriptor will be populated). \r
+  @param  DataSize               The size in bytes of the Data buffer. Unless the EFI_VARIABLE_APPEND_WRITE,\r
+                                 EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS, or\r
+                                 EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS attribute is set, a size of zero\r
+                                 causes the variable to be deleted. When the EFI_VARIABLE_APPEND_WRITE attribute is\r
+                                 set, then a SetVariable() call with a DataSize of zero will not cause any change to\r
+                                 the variable value (the timestamp associated with the variable may be updated however\r
+                                 even if no new data value is provided,see the description of the\r
+                                 EFI_VARIABLE_AUTHENTICATION_2 descriptor below. In this case the DataSize will not\r
+                                 be zero since the EFI_VARIABLE_AUTHENTICATION_2 descriptor will be populated).\r
   @param  Data                   The contents for the variable.\r
 \r
   @retval EFI_SUCCESS            The firmware has successfully stored the variable and its data as\r
@@ -1530,8 +1530,8 @@ BdsLibUserIdentify (
   @retval EFI_DEVICE_ERROR       The variable could not be retrieved due to a hardware error.\r
   @retval EFI_WRITE_PROTECTED    The variable in question is read-only.\r
   @retval EFI_WRITE_PROTECTED    The variable in question cannot be deleted.\r
-  @retval EFI_SECURITY_VIOLATION The variable could not be written due to EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS \r
-                                 or EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACESS being set, but the AuthInfo \r
+  @retval EFI_SECURITY_VIOLATION The variable could not be written due to EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS\r
+                                 or EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACESS being set, but the AuthInfo\r
                                  does NOT pass the validation check carried out by the firmware.\r
 \r
   @retval EFI_NOT_FOUND          The variable trying to be updated or deleted was not found.\r
index 698dd26065d7a7d075a33c832773044cf59c6c12..bdffad175d9aa4cf8eb1f79a963681def1d363e1 100644 (file)
@@ -1,20 +1,20 @@
 ## @file\r
 #  General BDS library.\r
-#  \r
+#\r
 #  General BDS defines and produce general interfaces for platform BDS driver including:\r
 #  1) BDS boot policy interface;\r
 #  2) BDS boot device connect interface;\r
 #  3) BDS Misc interfaces for mainting boot variable, ouput string, etc.\r
-#  \r
+#\r
 #  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 [Defines]\r
@@ -24,7 +24,7 @@
   FILE_GUID                      = e405ec31-ccaa-4dd4-83e8-0aec01703f7e\r
   MODULE_TYPE                    = DXE_DRIVER\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = GenericBdsLib|DXE_DRIVER DXE_RUNTIME_DRIVER UEFI_APPLICATION \r
+  LIBRARY_CLASS                  = GenericBdsLib|DXE_DRIVER DXE_RUNTIME_DRIVER UEFI_APPLICATION\r
   CONSTRUCTOR                    = GenericBdsLibConstructor\r
 \r
 #\r
@@ -43,7 +43,7 @@
   String.h\r
   String.c\r
   GenericBdsStrings.uni\r
-  \r
+\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
   MdeModulePkg/MdeModulePkg.dec\r
@@ -76,7 +76,7 @@
   ## SOMETIMES_CONSUMES ## SystemTable # The identifier of memory type information type in system table\r
   ## SOMETIMES_CONSUMES ## Variable:L"MemoryTypeInformation"\r
   ## SOMETIMES_PRODUCES ## Variable:L"MemoryTypeInformation"\r
-  gEfiMemoryTypeInformationGuid                 \r
+  gEfiMemoryTypeInformationGuid\r
   ## SOMETIMES_CONSUMES ## Variable:L"BootXXXX"    # Boot option variable\r
   ## SOMETIMES_PRODUCES ## Variable:L"BootXXXX"    # Boot option variable\r
   ## SOMETIMES_CONSUMES ## Variable:L"DriverXXXX"  # Driver load option.\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile      ## CONSUMES\r
 \r
 #\r
-# [BootMode] \r
+# [BootMode]\r
 #   RECOVERY_FULL    ## SOMETIMES_CONSUMES # Memory Type Information variable\r
 #\r
 \r
index dae4adf656296a7328b0f115736926126050d381..eac582a8317390e64560c9dea48ff6f30d99e359 100644 (file)
@@ -6,13 +6,13 @@
 // 2) BDS boot device connect interface;\r
 // 3) BDS Misc interfaces for mainting boot variable, ouput string, etc.\r
 //\r
-// Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 53266853fa731cffc319a02d007c9d0a07fca78e..5a2bbfcdcec0563e4c9aab4e2d36ee4d8006b857 100644 (file)
@@ -1,16 +1,16 @@
 ///** @file\r
-//  \r
+//\r
 //  String definitions for Boot Option description.\r
-//  \r
-//  Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+//\r
+//  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //  This program and the accompanying materials\r
 //  are licensed and made available under the terms and conditions of the BSD License\r
 //  which accompanies this distribution.  The full text of the license may be found at\r
 //  http://opensource.org/licenses/bsd-license.php\r
-//  \r
+//\r
 //  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 //  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-//  \r
+//\r
 //**/\r
 \r
 /=#\r
index 2ed2b998154953f49b8715be805064fd4c4ca296..3ec9ba987cb3af328025fe9a99abaafcedd4a401 100644 (file)
@@ -107,7 +107,7 @@ BdsLibGetImageHeader (
   );\r
 \r
 /**\r
-  This routine adjust the memory information for different memory type and \r
+  This routine adjust the memory information for different memory type and\r
   save them into the variables for next boot.\r
 **/\r
 VOID\r
@@ -125,7 +125,7 @@ BdsSetMemoryTypeInformationVariable (
   @retval FALSE                 The variable data is corrupted.\r
 \r
 **/\r
-BOOLEAN \r
+BOOLEAN\r
 ValidateOption (\r
   UINT8                     *Variable,\r
   UINTN                     VariableSize\r
@@ -140,15 +140,15 @@ ValidateOption (
                                  then EFI_INVALID_PARAMETER is returned.\r
   @param  VendorGuid             A unique identifier for the vendor.\r
   @param  Attributes             Attributes bitmask to set for the variable.\r
-  @param  DataSize               The size in bytes of the Data buffer. Unless the EFI_VARIABLE_APPEND_WRITE, \r
-                                 EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS, or \r
-                                 EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS attribute is set, a size of zero \r
-                                 causes the variable to be deleted. When the EFI_VARIABLE_APPEND_WRITE attribute is \r
-                                 set, then a SetVariable() call with a DataSize of zero will not cause any change to \r
-                                 the variable value (the timestamp associated with the variable may be updated however \r
-                                 even if no new data value is provided,see the description of the \r
-                                 EFI_VARIABLE_AUTHENTICATION_2 descriptor below. In this case the DataSize will not \r
-                                 be zero since the EFI_VARIABLE_AUTHENTICATION_2 descriptor will be populated). \r
+  @param  DataSize               The size in bytes of the Data buffer. Unless the EFI_VARIABLE_APPEND_WRITE,\r
+                                 EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS, or\r
+                                 EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS attribute is set, a size of zero\r
+                                 causes the variable to be deleted. When the EFI_VARIABLE_APPEND_WRITE attribute is\r
+                                 set, then a SetVariable() call with a DataSize of zero will not cause any change to\r
+                                 the variable value (the timestamp associated with the variable may be updated however\r
+                                 even if no new data value is provided,see the description of the\r
+                                 EFI_VARIABLE_AUTHENTICATION_2 descriptor below. In this case the DataSize will not\r
+                                 be zero since the EFI_VARIABLE_AUTHENTICATION_2 descriptor will be populated).\r
   @param  Data                   The contents for the variable.\r
 \r
   @retval EFI_SUCCESS            The firmware has successfully stored the variable and its data as\r
@@ -160,8 +160,8 @@ ValidateOption (
   @retval EFI_DEVICE_ERROR       The variable could not be retrieved due to a hardware error.\r
   @retval EFI_WRITE_PROTECTED    The variable in question is read-only.\r
   @retval EFI_WRITE_PROTECTED    The variable in question cannot be deleted.\r
-  @retval EFI_SECURITY_VIOLATION The variable could not be written due to EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS \r
-                                 or EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACESS being set, but the AuthInfo \r
+  @retval EFI_SECURITY_VIOLATION The variable could not be written due to EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS\r
+                                 or EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACESS being set, but the AuthInfo\r
                                  does NOT pass the validation check carried out by the firmware.\r
 \r
   @retval EFI_NOT_FOUND          The variable trying to be updated or deleted was not found.\r
index 3092184ab7608b4a79f0e5f6942942486317da2c..ad57764b388ee78610979170f3d16d84558937f0 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Legacy Boot Maintainence UI implementation.\r
 \r
-Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 (C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
@@ -84,13 +84,13 @@ HII_VENDOR_DEVICE_PATH  mLegacyBootOptionHiiVendorDevicePath = {
         (UINT8) (sizeof (VENDOR_DEVICE_PATH)),\r
         (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)\r
       }\r
-    }, \r
+    },\r
     { 0x6bc75598, 0x89b4, 0x483d, { 0x91, 0x60, 0x7f, 0x46, 0x9a, 0x96, 0x35, 0x31 } }\r
   },\r
   {\r
     END_DEVICE_PATH_TYPE,\r
     END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
-    { \r
+    {\r
       (UINT8) (END_DEVICE_PATH_LENGTH),\r
       (UINT8) ((END_DEVICE_PATH_LENGTH) >> 8)\r
     }\r
@@ -151,9 +151,9 @@ OrderLegacyBootOption4SameType (
   UINTN                    BootOrderSize;\r
   UINTN                    Index;\r
   UINTN                    StartPosition;\r
-  \r
+\r
   EFI_BOOT_MANAGER_LOAD_OPTION    BootOption;\r
-  \r
+\r
   CHAR16                           OptionName[sizeof ("Boot####")];\r
   UINT16                   *BbsIndexArray;\r
   UINT16                   *DeviceTypeArray;\r
@@ -176,11 +176,11 @@ OrderLegacyBootOption4SameType (
   ASSERT (*DisBootOption != NULL);\r
 \r
   for (Index = 0; Index < BootOrderSize / sizeof (UINT16); Index++) {\r
-  \r
+\r
     UnicodeSPrint (OptionName, sizeof (OptionName), L"Boot%04x", BootOrder[Index]);\r
     Status = EfiBootManagerVariableToLoadOption (OptionName, &BootOption);\r
     ASSERT_EFI_ERROR (Status);\r
-    \r
+\r
     if ((DevicePathType (BootOption.FilePath) == BBS_DEVICE_PATH) &&\r
         (DevicePathSubType (BootOption.FilePath) == BBS_BBS_DP)) {\r
       //\r
@@ -209,7 +209,7 @@ OrderLegacyBootOption4SameType (
       if (BbsIndexArray[Index] == (DevOrder[DevOrderCount] & 0xFF)) {\r
         StartPosition = MIN (StartPosition, Index);\r
         NewBootOption[DevOrderCount] = BootOrder[Index];\r
-        \r
+\r
         if ((DevOrder[DevOrderCount] & 0xFF00) == 0xFF00) {\r
           (*DisBootOption)[*DisBootOptionCount] = BootOrder[Index];\r
           (*DisBootOptionCount)++;\r
@@ -283,7 +283,7 @@ UpdateBBSOption (
   UINT16                      *DisBootOption;\r
   UINTN                       DisBootOptionCount;\r
   UINTN                       BufferSize;\r
-  \r
+\r
 \r
   DisMap              = NULL;\r
   NewOrder            = NULL;\r
@@ -291,7 +291,7 @@ UpdateBBSOption (
   EnBootOption        = NULL;\r
   DisBootOption       = NULL;\r
 \r
-  \r
+\r
   DisMap  = mLegacyBootOptionPrivate->MaintainMapData->DisableMap;\r
   Status  = EFI_SUCCESS;\r
 \r
@@ -470,7 +470,7 @@ UpdateBBSOption (
 \r
     CurrentType++;\r
   }\r
-  \r
+\r
   Status = gRT->SetVariable (\r
                   VAR_LEGACY_DEV_ORDER,\r
                   &gEfiLegacyDevOrderVariableGuid,\r
@@ -575,8 +575,8 @@ LegacyBootOptionRouteConfig (
   }\r
 \r
   Status = gBS->LocateProtocol (\r
-                  &gEfiHiiConfigRoutingProtocolGuid, \r
-                  NULL, \r
+                  &gEfiHiiConfigRoutingProtocolGuid,\r
+                  NULL,\r
                   (VOID **) &ConfigRouting\r
                   );\r
   if (EFI_ERROR (Status)) {\r
@@ -594,7 +594,7 @@ LegacyBootOptionRouteConfig (
                             &BufferSize,\r
                             Progress\r
                             );\r
-  ASSERT_EFI_ERROR (Status);    \r
+  ASSERT_EFI_ERROR (Status);\r
 \r
   Status = UpdateBBSOption (CurrentNVMapData);\r
 \r
@@ -690,7 +690,7 @@ GetMenuEntry (
 \r
 /**\r
   Create string tokens for a menu from its help strings and display strings\r
-  \r
+\r
   @param HiiHandle          Hii Handle of the package to be updated.\r
   @param MenuOption         The Menu whose string tokens need to be created\r
 \r
@@ -817,7 +817,7 @@ UpdateLegacyDeviceOrderPage (
     DEBUG ((EFI_D_ERROR, "Invalid command ID for updating page!\n"));\r
     return;\r
   }\r
-  \r
+\r
   HiiSetString (mLegacyBootOptionPrivate->HiiHandle, STRING_TOKEN(STR_ORDER_CHANGE_PROMPT), FormTitle, NULL);\r
 \r
   CreateLegacyMenuStringToken (mLegacyBootOptionPrivate->HiiHandle, OptionMenu);\r
@@ -859,12 +859,12 @@ UpdateLegacyDeviceOrderPage (
     ASSERT (DefaultOpCodeHandle != NULL);\r
 \r
     HiiCreateDefaultOpCode (\r
-      DefaultOpCodeHandle, \r
-      EFI_HII_DEFAULT_CLASS_STANDARD, \r
-      EFI_IFR_TYPE_NUM_SIZE_16, \r
+      DefaultOpCodeHandle,\r
+      EFI_HII_DEFAULT_CLASS_STANDARD,\r
+      EFI_IFR_TYPE_NUM_SIZE_16,\r
       *Default++\r
       );\r
-  \r
+\r
     //\r
     // Create the string for oneof tag\r
     //\r
@@ -886,7 +886,7 @@ UpdateLegacyDeviceOrderPage (
       OptionsOpCodeHandle,\r
       DefaultOpCodeHandle //NULL //\r
       );\r
-      \r
+\r
     HiiFreeOpCodeHandle (DefaultOpCodeHandle);\r
   }\r
 \r
@@ -894,8 +894,8 @@ UpdateLegacyDeviceOrderPage (
     mLegacyBootOptionPrivate->HiiHandle,\r
     &mLegacyBootOptionGuid,\r
     LEGACY_ORDER_CHANGE_FORM_ID,\r
-    mLegacyStartOpCodeHandle, \r
-    mLegacyEndOpCodeHandle   \r
+    mLegacyStartOpCodeHandle,\r
+    mLegacyEndOpCodeHandle\r
     );\r
 \r
   HiiFreeOpCodeHandle (OptionsOpCodeHandle);\r
@@ -966,7 +966,7 @@ AdjustOptionValue (
     CurrentVal  = CurrentNVMap->LegacyBEV;\r
     Default     = mLegacyBootOptionPrivate->MaintainMapData->LastTimeNvData.LegacyBEV;\r
   }\r
-  \r
+\r
   //\r
   //  First, find the different position\r
   //  if there is change, it should be only one\r
@@ -1245,27 +1245,27 @@ GetLegacyOptionsOrder (
         LegacyDev = mLegacyBootOptionPrivate->MaintainMapData->InitialNvData.LegacyFD;\r
         OptionMenu = &LegacyFDMenu;\r
         break;\r
-      \r
+\r
       case BBS_HARDDISK:\r
         LegacyDev = mLegacyBootOptionPrivate->MaintainMapData->InitialNvData.LegacyHD;\r
         OptionMenu = &LegacyHDMenu;\r
         break;\r
-      \r
+\r
       case BBS_CDROM:\r
         LegacyDev = mLegacyBootOptionPrivate->MaintainMapData->InitialNvData.LegacyCD;\r
         OptionMenu = &LegacyCDMenu;\r
         break;\r
-      \r
+\r
       case BBS_EMBED_NETWORK:\r
         LegacyDev = mLegacyBootOptionPrivate->MaintainMapData->InitialNvData.LegacyNET;\r
         OptionMenu = &LegacyNETMenu;\r
         break;\r
-      \r
+\r
       case BBS_BEV_DEVICE:\r
         LegacyDev = mLegacyBootOptionPrivate->MaintainMapData->InitialNvData.LegacyBEV;\r
         OptionMenu = &LegacyBEVMenu;\r
         break;\r
-      \r
+\r
       case BBS_UNKNOWN:\r
       default:\r
         ASSERT (FALSE);\r
@@ -1337,7 +1337,7 @@ GetLegacyOptions (
   BEVNum  = 0;\r
 \r
   EfiBootManagerConnectAll ();\r
-  \r
+\r
   //\r
   // for better user experience\r
   // 1. User changes HD configuration (e.g.: unplug HDD), here we have a chance to remove the HDD boot option\r
@@ -1431,7 +1431,7 @@ LegacyBootMaintUiLibConstructor (
     //\r
     LegacyBootOptionData = AllocateZeroPool (sizeof (LEGACY_BOOT_OPTION_CALLBACK_DATA));\r
     ASSERT (LegacyBootOptionData != NULL);\r
-    \r
+\r
     LegacyBootOptionData->MaintainMapData = AllocateZeroPool (sizeof (LEGACY_BOOT_MAINTAIN_DATA));\r
     ASSERT (LegacyBootOptionData->MaintainMapData != NULL);\r
 \r
@@ -1499,7 +1499,7 @@ LegacyBootMaintUiLibDestructor (
                     NULL\r
                     );\r
     ASSERT_EFI_ERROR (Status);\r
-    \r
+\r
     HiiRemovePackages (mLegacyBootOptionPrivate->HiiHandle);\r
 \r
     FreePool (mLegacyBootOptionPrivate->MaintainMapData);\r
index 17c9cac811715f8c6b606a9cd60150cb43e3f59e..79a1195ddc5370e038c37846cea1c2ce16460bc3 100644 (file)
@@ -1,15 +1,15 @@
 ## @file\r
 #  Legacy Boot Maintainence UI module is library for BDS phase.\r
 #\r
-#  Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 [Defines]\r
index 7219db6e13a6719e8f9bb42fc3bfd460ed1eddb7..70230a723a8c679573669fd8db4473b20dba73da 100644 (file)
@@ -1,16 +1,16 @@
 ///** @file\r
-//  \r
+//\r
 //    String definitions for Legacy Boot Maintainece Ui.\r
-//  \r
-//  Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+//\r
+//  Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //  This program and the accompanying materials\r
 //  are licensed and made available under the terms and conditions of the BSD License\r
 //  which accompanies this distribution.  The full text of the license may be found at\r
 //  http://opensource.org/licenses/bsd-license.php\r
-//  \r
+//\r
 //  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 //  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-//  \r
+//\r
 //**/\r
 \r
 /=#\r
@@ -46,4 +46,4 @@
                                        #language fr-FR  "Change Driver Boot Order."\r
 #string STR_DISABLE_LEGACY_DEVICE      #language en-US  "Disabled"\r
                                        #language fr-FR  "Disabled"\r
-                                       
\ No newline at end of file
+\r
index e7bdde9defe81007fd4508a7d8c1289b66e0a282..f1208d826d008e3289afe6f77bb45395d478f911 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -63,4 +63,4 @@ LegacyBmRefreshAllBootOption (
   VOID\r
   );\r
 \r
-#endif // _INTERNAL_LEGACY_BM_H_
\ No newline at end of file
+#endif // _INTERNAL_LEGACY_BM_H_\r
index 76902eced32598a93b8de993f61ae44a1f2923d8..2e6ada170aa1bf40db6f67b65640674c6d8f7294 100644 (file)
@@ -3,7 +3,7 @@
   and manage the legacy boot option, all legacy boot option is getting from\r
   the legacy BBS table.\r
 \r
-Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -237,7 +237,7 @@ LegacyBmFuzzyMatch (
       );\r
     if ((StrCmp (Description, BootOption->Description) == 0) && !BbsIndexUsed[BbsData->BbsIndex]) {\r
       //\r
-      // If devices with the same description string are connected, \r
+      // If devices with the same description string are connected,\r
       // the BbsIndex of the first device is returned for the other device also.\r
       // So, check if the BbsIndex is already being used, before assigning the BbsIndex.\r
       //\r
@@ -264,7 +264,7 @@ LegacyBmFuzzyMatch (
       );\r
     if ((StrCmp (Description, BootOption->Description) == 0) && !BbsIndexUsed[Index]) {\r
       //\r
-      // If devices with the same description string are connected, \r
+      // If devices with the same description string are connected,\r
       // the BbsIndex of the first device is assigned for the other device also.\r
       // So, check if the BbsIndex is already being used, before assigning the corrected BbsIndex.\r
       //\r
@@ -309,7 +309,7 @@ LegacyBmUpdateBbsIndex (
           ((LegacyDevOrder != NULL) && (*LegacyDevOrderSize != 0))\r
          );\r
 \r
-  for (Entry = LegacyDevOrder; \r
+  for (Entry = LegacyDevOrder;\r
        Entry < (LEGACY_DEV_ORDER_ENTRY *) ((UINT8 *) LegacyDevOrder + *LegacyDevOrderSize);\r
        Entry = (LEGACY_DEV_ORDER_ENTRY *) ((UINTN) Entry + sizeof (BBS_TYPE) + Entry->Length)\r
        ) {\r
@@ -321,8 +321,8 @@ LegacyBmUpdateBbsIndex (
             // Delete the old entry\r
             //\r
             CopyMem (\r
-              &Entry->Data[Index], \r
-              &Entry->Data[Index + 1], \r
+              &Entry->Data[Index],\r
+              &Entry->Data[Index + 1],\r
               (UINT8 *) LegacyDevOrder + *LegacyDevOrderSize - (UINT8 *) &Entry->Data[Index + 1]\r
               );\r
             Entry->Length       -= sizeof (UINT16);\r
@@ -531,7 +531,7 @@ LegacyBmCreateLegacyBootOption (
   if ((BootOption == NULL) || (BbsEntry == NULL)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   LegacyBmBuildLegacyDevNameString (BbsEntry, BbsIndex, sizeof (Description), Description);\r
 \r
   //\r
@@ -574,7 +574,7 @@ LegacyBmCreateLegacyBootOption (
              );\r
   FreePool (DevicePath);\r
   FreePool (OptionalData);\r
-  \r
+\r
   return Status;\r
 }\r
 \r
@@ -621,7 +621,7 @@ LegacyBmFillDevOrderBuf (
   @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_SUCCES             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
@@ -712,11 +712,11 @@ LegacyBmCreateDevOrder (
   DevOrderPtr->BbsType = BBS_HARDDISK;\r
   DevOrderPtr->Length  = (UINT16) (sizeof (UINT16) + HDCount * sizeof (UINT16));\r
   DevOrderPtr          = (LEGACY_DEV_ORDER_ENTRY *) LegacyBmFillDevOrderBuf (BbsTable, BBS_HARDDISK, BbsCount, DevOrderPtr->Data);\r
-  \r
+\r
   DevOrderPtr->BbsType = BBS_CDROM;\r
   DevOrderPtr->Length  = (UINT16) (sizeof (UINT16) + CDCount * sizeof (UINT16));\r
   DevOrderPtr          = (LEGACY_DEV_ORDER_ENTRY *) LegacyBmFillDevOrderBuf (BbsTable, BBS_CDROM, BbsCount, DevOrderPtr->Data);\r
-  \r
+\r
   DevOrderPtr->BbsType = BBS_EMBED_NETWORK;\r
   DevOrderPtr->Length  = (UINT16) (sizeof (UINT16) + NETCount * sizeof (UINT16));\r
   DevOrderPtr          = (LEGACY_DEV_ORDER_ENTRY *) LegacyBmFillDevOrderBuf (BbsTable, BBS_EMBED_NETWORK, BbsCount, DevOrderPtr->Data);\r
@@ -743,7 +743,7 @@ LegacyBmCreateDevOrder (
 }\r
 \r
 /**\r
-  Add the legacy boot devices from BBS table into \r
+  Add the legacy boot devices from BBS table into\r
   the legacy device boot order.\r
 \r
   @retval EFI_SUCCESS           The boot devices are added successfully.\r
@@ -944,7 +944,7 @@ LegacyBmUpdateDevOrder (
     NETIndex++;\r
   }\r
   NewNETPtr = NewPtr->Data;\r
-  \r
+\r
   //\r
   // copy BEV\r
   //\r
@@ -1164,7 +1164,7 @@ LegacyBmPrintBbsTable (
   Set the boot priority for BBS entries based on boot option entry and boot order.\r
 \r
   @param  BootOption            The boot option is to be checked for refresh BBS table.\r
-  \r
+\r
   @retval EFI_SUCCESS           The boot priority for BBS entries is refreshed successfully.\r
   @retval EFI_NOT_FOUND         BBS entries can't be found.\r
   @retval EFI_OUT_OF_RESOURCES  Failed to get the legacy device boot order.\r
@@ -1224,7 +1224,7 @@ LegacyBmRefreshBbsTableForBoot (
   //\r
   // boot priority always starts at 0\r
   //\r
-  Priority = 0;  \r
+  Priority = 0;\r
   if ((DevicePathType (BootOption->FilePath) == BBS_DEVICE_PATH) &&\r
       (DevicePathSubType (BootOption->FilePath) == BBS_BBS_DP)) {\r
     //\r
@@ -1255,7 +1255,7 @@ LegacyBmRefreshBbsTableForBoot (
         (DevicePathSubType (Option[Index].FilePath) != BBS_BBS_DP)) {\r
       continue;\r
     }\r
-    \r
+\r
     DevType = LegacyBmDeviceType (Option[Index].FilePath);\r
     for (DeviceTypeIndex = 0; DeviceTypeIndex < DeviceTypeCount; DeviceTypeIndex++) {\r
       if (DeviceType[DeviceTypeIndex] == DevType) {\r
@@ -1284,7 +1284,7 @@ LegacyBmRefreshBbsTableForBoot (
   DEBUG_CODE_BEGIN();\r
     LegacyBmPrintBbsTable (LocalBbsTable, BbsCount);\r
   DEBUG_CODE_END();\r
-  \r
+\r
   return Status;\r
 }\r
 \r
@@ -1459,7 +1459,7 @@ LegacyBmRefreshAllBootOption (
   PERF_START (NULL, "LegacyBootOptionEnum", "BDS", 0);\r
 \r
   //\r
-  // Before enumerating the legacy boot option, we need to dispatch all the legacy option roms \r
+  // Before enumerating the legacy boot option, we need to dispatch all the legacy option roms\r
   // to ensure the GetBbsInfo() counts all the legacy devices.\r
   //\r
   gBS->LocateHandleBuffer (\r
@@ -1481,7 +1481,7 @@ LegacyBmRefreshAllBootOption (
     for (Index = 0; Index < HandleCount; Index++) {\r
       //\r
       // Start the thunk driver so that the legacy option rom gets dispatched.\r
-      // Note: We don't directly call InstallPciRom because some thunk drivers \r
+      // Note: We don't directly call InstallPciRom because some thunk drivers\r
       // (e.g. BlockIo thunk driver) depend on the immediate result after dispatching\r
       //\r
       Status = LegacyBios->CheckPciRom (\r
index 4025c8288626e630523b0c572115caa65b687722..9865ec8b06b73a8a9f6e7e2e08c3c398eca65ba8 100644 (file)
@@ -1,15 +1,15 @@
 ## @file\r
 #  Legacy Boot Manager module is library for BDS phase.\r
 #\r
-#  Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 [Defines]\r
@@ -31,7 +31,7 @@
 [Sources]\r
   LegacyBm.c\r
   InternalLegacyBm.h\r
-  \r
+\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
   MdeModulePkg/MdeModulePkg.dec\r
index b02dc515f8a020b04b4e6612bf3467c30106a57c..29150d375ad1c8e8b1a2c29f8af84ecd3fc6d058 100644 (file)
@@ -1,10 +1,10 @@
 /** @file\r
-  LZMA Decompress GUIDed Section Extraction Library, which produces LZMA custom \r
+  LZMA Decompress GUIDed Section Extraction Library, which produces LZMA custom\r
   decompression algorithm with the converter for the different arch code.\r
   It wraps Lzma decompress interfaces to GUIDed Section Extraction interfaces\r
   and registers them into GUIDed handler table.\r
 \r
-  Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   Examines a GUIDed section and returns the size of the decoded buffer and the\r
   size of an scratch buffer required to actually decode the data in a GUIDed section.\r
 \r
-  Examines a GUIDed section specified by InputSection.  \r
+  Examines a GUIDed section specified by InputSection.\r
   If GUID for InputSection does not match the GUID that this handler supports,\r
-  then RETURN_UNSUPPORTED is returned.  \r
+  then RETURN_UNSUPPORTED is returned.\r
   If the required information can not be retrieved from InputSection,\r
   then RETURN_INVALID_PARAMETER is returned.\r
   If the GUID of InputSection does match the GUID that this handler supports,\r
   then the size required to hold the decoded buffer is returned in OututBufferSize,\r
   the size of an optional scratch buffer is returned in ScratchSize, and the Attributes field\r
   from EFI_GUID_DEFINED_SECTION header of InputSection is returned in SectionAttribute.\r
-  \r
+\r
   If InputSection is NULL, then ASSERT().\r
   If OutputBufferSize is NULL, then ASSERT().\r
   If ScratchBufferSize is NULL, then ASSERT().\r
@@ -100,16 +100,16 @@ LzmaArchGuidedSectionGetInfo (
 \r
 /**\r
   Decompress a LZAM compressed GUIDed section into a caller allocated output buffer.\r
-  \r
-  Decodes the GUIDed section specified by InputSection.  \r
-  If GUID for InputSection does not match the GUID that this handler supports, then RETURN_UNSUPPORTED is returned.  \r
+\r
+  Decodes the GUIDed section specified by InputSection.\r
+  If GUID for InputSection does not match the GUID that this handler supports, then RETURN_UNSUPPORTED is returned.\r
   If the data in InputSection can not be decoded, then RETURN_INVALID_PARAMETER is returned.\r
   If the GUID of InputSection does match the GUID that this handler supports, then InputSection\r
   is decoded into the buffer specified by OutputBuffer and the authentication status of this\r
   decode operation is returned in AuthenticationStatus.  If the decoded buffer is identical to the\r
   data in InputSection, then OutputBuffer is set to point at the data in InputSection.  Otherwise,\r
   the decoded data will be placed in caller allocated buffer specified by OutputBuffer.\r
-  \r
+\r
   If InputSection is NULL, then ASSERT().\r
   If OutputBuffer is NULL, then ASSERT().\r
   If ScratchBuffer is NULL and this decode operation requires a scratch buffer, then ASSERT().\r
@@ -117,10 +117,10 @@ LzmaArchGuidedSectionGetInfo (
 \r
 \r
   @param[in]  InputSection  A pointer to a GUIDed section of an FFS formatted file.\r
-  @param[out] OutputBuffer  A pointer to a buffer that contains the result of a decode operation. \r
+  @param[out] OutputBuffer  A pointer to a buffer that contains the result of a decode operation.\r
   @param[out] ScratchBuffer A caller allocated buffer that may be required by this function\r
-                            as a scratch buffer to perform the decode operation. \r
-  @param[out] AuthenticationStatus \r
+                            as a scratch buffer to perform the decode operation.\r
+  @param[out] AuthenticationStatus\r
                             A pointer to the authentication status of the decoded output buffer.\r
                             See the definition of authentication status in the EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI\r
                             section of the PI Specification. EFI_AUTH_STATUS_PLATFORM_OVERRIDE must\r
@@ -147,7 +147,7 @@ LzmaArchGuidedSectionExtraction (
   UINT32            X86State;\r
   UINT32            OutputBufferSize;\r
   UINT32            ScratchBufferSize;\r
-  \r
+\r
   ASSERT (OutputBuffer != NULL);\r
   ASSERT (InputSection != NULL);\r
 \r
@@ -178,7 +178,7 @@ LzmaArchGuidedSectionExtraction (
            );\r
 \r
   //\r
-  // After decompress, the data need to be converted to the raw data. \r
+  // After decompress, the data need to be converted to the raw data.\r
   //\r
   if (!EFI_ERROR (Status)) {\r
     Status = LzmaUefiDecompressGetInfo (\r
@@ -187,13 +187,13 @@ LzmaArchGuidedSectionExtraction (
              &OutputBufferSize,\r
              &ScratchBufferSize\r
              );\r
-    \r
+\r
     if (!EFI_ERROR (Status)) {\r
       x86_Convert_Init(X86State);\r
       x86_Convert(*OutputBuffer, OutputBufferSize, 0, &X86State, 0);\r
     }\r
   }\r
-  \r
+\r
   return Status;\r
 }\r
 \r
index 7ef9fbbfc6bf9b3fac7238f6b20a723733c48bff..c15fa8bc0fe22cfeceea0c99cae90be0672c571b 100644 (file)
@@ -3,7 +3,7 @@
   It wraps Lzma decompress interfaces to GUIDed Section Extraction interfaces\r
   and registers them into GUIDed handler table.\r
 \r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   Examines a GUIDed section and returns the size of the decoded buffer and the\r
   size of an scratch buffer required to actually decode the data in a GUIDed section.\r
 \r
-  Examines a GUIDed section specified by InputSection.  \r
+  Examines a GUIDed section specified by InputSection.\r
   If GUID for InputSection does not match the GUID that this handler supports,\r
-  then RETURN_UNSUPPORTED is returned.  \r
+  then RETURN_UNSUPPORTED is returned.\r
   If the required information can not be retrieved from InputSection,\r
   then RETURN_INVALID_PARAMETER is returned.\r
   If the GUID of InputSection does match the GUID that this handler supports,\r
   then the size required to hold the decoded buffer is returned in OututBufferSize,\r
   the size of an optional scratch buffer is returned in ScratchSize, and the Attributes field\r
   from EFI_GUID_DEFINED_SECTION header of InputSection is returned in SectionAttribute.\r
-  \r
+\r
   If InputSection is NULL, then ASSERT().\r
   If OutputBufferSize is NULL, then ASSERT().\r
   If ScratchBufferSize is NULL, then ASSERT().\r
@@ -98,16 +98,16 @@ LzmaGuidedSectionGetInfo (
 \r
 /**\r
   Decompress a LZAM compressed GUIDed section into a caller allocated output buffer.\r
-  \r
-  Decodes the GUIDed section specified by InputSection.  \r
-  If GUID for InputSection does not match the GUID that this handler supports, then RETURN_UNSUPPORTED is returned.  \r
+\r
+  Decodes the GUIDed section specified by InputSection.\r
+  If GUID for InputSection does not match the GUID that this handler supports, then RETURN_UNSUPPORTED is returned.\r
   If the data in InputSection can not be decoded, then RETURN_INVALID_PARAMETER is returned.\r
   If the GUID of InputSection does match the GUID that this handler supports, then InputSection\r
   is decoded into the buffer specified by OutputBuffer and the authentication status of this\r
   decode operation is returned in AuthenticationStatus.  If the decoded buffer is identical to the\r
   data in InputSection, then OutputBuffer is set to point at the data in InputSection.  Otherwise,\r
   the decoded data will be placed in caller allocated buffer specified by OutputBuffer.\r
-  \r
+\r
   If InputSection is NULL, then ASSERT().\r
   If OutputBuffer is NULL, then ASSERT().\r
   If ScratchBuffer is NULL and this decode operation requires a scratch buffer, then ASSERT().\r
@@ -115,10 +115,10 @@ LzmaGuidedSectionGetInfo (
 \r
 \r
   @param[in]  InputSection  A pointer to a GUIDed section of an FFS formatted file.\r
-  @param[out] OutputBuffer  A pointer to a buffer that contains the result of a decode operation. \r
+  @param[out] OutputBuffer  A pointer to a buffer that contains the result of a decode operation.\r
   @param[out] ScratchBuffer A caller allocated buffer that may be required by this function\r
-                            as a scratch buffer to perform the decode operation. \r
-  @param[out] AuthenticationStatus \r
+                            as a scratch buffer to perform the decode operation.\r
+  @param[out] AuthenticationStatus\r
                             A pointer to the authentication status of the decoded output buffer.\r
                             See the definition of authentication status in the EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI\r
                             section of the PI Specification. EFI_AUTH_STATUS_PLATFORM_OVERRIDE must\r
@@ -197,6 +197,6 @@ LzmaDecompressLibConstructor (
           &gLzmaCustomDecompressGuid,\r
           LzmaGuidedSectionGetInfo,\r
           LzmaGuidedSectionExtraction\r
-          );      \r
+          );\r
 }\r
 \r
index 7a6a77f952ac25a44d2dcfc9b12989d8a057153d..0824bd75cd29ee64fa6c171f18e708040ee44351 100644 (file)
@@ -1,4 +1,4 @@
 LzmaCustomDecompressLib is based on the LZMA SDK 16.04.\r
 LZMA SDK 16.04 was placed in the public domain on\r
 2016-10-04.  It was released on the\r
-http://www.7-zip.org/sdk.html website.
\ No newline at end of file
+http://www.7-zip.org/sdk.html website.\r
index cdf4c08cab37f74007ab7bf8cb7c39ab26ac9bb9..501a15d99d1f0c2118f9d8d92abe45fcc44a5293 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   LZMA Decompress interfaces\r
 \r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -105,15 +105,15 @@ GetDecodedSizeOfBuf(
 //\r
 \r
 /**\r
-  Given a Lzma compressed source buffer, this function retrieves the size of \r
-  the uncompressed buffer and the size of the scratch buffer required \r
+  Given a Lzma compressed source buffer, this function retrieves the size of\r
+  the uncompressed buffer and the size of the scratch buffer required\r
   to decompress the compressed source buffer.\r
 \r
-  Retrieves the size of the uncompressed buffer and the temporary scratch buffer \r
+  Retrieves the size of the uncompressed buffer and the temporary scratch buffer\r
   required to decompress the buffer specified by Source and SourceSize.\r
-  The size of the uncompressed buffer is returned in DestinationSize, \r
+  The size of the uncompressed buffer is returned in DestinationSize,\r
   the size of the scratch buffer is returned in ScratchSize, and RETURN_SUCCESS is returned.\r
-  This function does not have scratch buffer available to perform a thorough \r
+  This function does not have scratch buffer available to perform a thorough\r
   checking of the validity of the source data. It just retrieves the "Original Size"\r
   field from the LZMA_HEADER_SIZE beginning bytes of the source data and output it as DestinationSize.\r
   And ScratchSize is specific to the decompression implementation.\r
@@ -126,11 +126,11 @@ GetDecodedSizeOfBuf(
                           that will be generated when the compressed buffer specified\r
                           by Source and SourceSize is decompressed.\r
   @param  ScratchSize     A pointer to the size, in bytes, of the scratch buffer that\r
-                          is required to decompress the compressed buffer specified \r
+                          is required to decompress the compressed buffer specified\r
                           by Source and SourceSize.\r
 \r
-  @retval  RETURN_SUCCESS The size of the uncompressed data was returned \r
-                          in DestinationSize and the size of the scratch \r
+  @retval  RETURN_SUCCESS The size of the uncompressed data was returned\r
+                          in DestinationSize and the size of the scratch\r
                           buffer was returned in ScratchSize.\r
 \r
 **/\r
@@ -158,8 +158,8 @@ LzmaUefiDecompressGetInfo (
   Decompresses a Lzma compressed source buffer.\r
 \r
   Extracts decompressed data to its original form.\r
-  If the compressed source data specified by Source is successfully decompressed \r
-  into Destination, then RETURN_SUCCESS is returned.  If the compressed source data \r
+  If the compressed source data specified by Source is successfully decompressed\r
+  into Destination, then RETURN_SUCCESS is returned.  If the compressed source data\r
   specified by Source is not in a valid compressed data format,\r
   then RETURN_INVALID_PARAMETER is returned.\r
 \r
@@ -167,13 +167,13 @@ LzmaUefiDecompressGetInfo (
   @param  SourceSize  The size of source buffer.\r
   @param  Destination The destination buffer to store the decompressed data\r
   @param  Scratch     A temporary scratch buffer that is used to perform the decompression.\r
-                      This is an optional parameter that may be NULL if the \r
+                      This is an optional parameter that may be NULL if the\r
                       required scratch buffer size is 0.\r
-                     \r
-  @retval  RETURN_SUCCESS Decompression completed successfully, and \r
+\r
+  @retval  RETURN_SUCCESS Decompression completed successfully, and\r
                           the uncompressed buffer is returned in Destination.\r
-  @retval  RETURN_INVALID_PARAMETER \r
-                          The source buffer specified by Source is corrupted \r
+  @retval  RETURN_INVALID_PARAMETER\r
+                          The source buffer specified by Source is corrupted\r
                           (not in a valid compressed format).\r
 **/\r
 RETURN_STATUS\r
@@ -195,7 +195,7 @@ LzmaUefiDecompress (
   AllocFuncs.Functions.Free   = SzFree;\r
   AllocFuncs.Buffer           = Scratch;\r
   AllocFuncs.BufferSize       = SCRATCH_BUFFER_REQUEST_SIZE;\r
-  \r
+\r
   DecodedBufSize = (SizeT)GetDecodedSizeOfBuf((UINT8*)Source);\r
   EncodedDataSize = (SizeT) (SourceSize - LZMA_HEADER_SIZE);\r
 \r
index 3096e91dbe64e294438758988aa634f4690f13ca..ac91d66009224afb58381192cc7d205abc396df1 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   LZMA Decompress Library internal header file declares Lzma decompress interfaces.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 #include <Guid/LzmaDecompress.h>\r
 \r
 /**\r
-  Given a Lzma compressed source buffer, this function retrieves the size of \r
-  the uncompressed buffer and the size of the scratch buffer required \r
+  Given a Lzma compressed source buffer, this function retrieves the size of\r
+  the uncompressed buffer and the size of the scratch buffer required\r
   to decompress the compressed source buffer.\r
 \r
-  Retrieves the size of the uncompressed buffer and the temporary scratch buffer \r
+  Retrieves the size of the uncompressed buffer and the temporary scratch buffer\r
   required to decompress the buffer specified by Source and SourceSize.\r
-  The size of the uncompressed buffer is returned in DestinationSize, \r
+  The size of the uncompressed buffer is returned in DestinationSize,\r
   the size of the scratch buffer is returned in ScratchSize, and RETURN_SUCCESS is returned.\r
-  This function does not have scratch buffer available to perform a thorough \r
+  This function does not have scratch buffer available to perform a thorough\r
   checking of the validity of the source data. It just retrieves the "Original Size"\r
   field from the LZMA_HEADER_SIZE beginning bytes of the source data and output it as DestinationSize.\r
   And ScratchSize is specific to the decompression implementation.\r
                           that will be generated when the compressed buffer specified\r
                           by Source and SourceSize is decompressed.\r
   @param  ScratchSize     A pointer to the size, in bytes, of the scratch buffer that\r
-                          is required to decompress the compressed buffer specified \r
+                          is required to decompress the compressed buffer specified\r
                           by Source and SourceSize.\r
 \r
-  @retval  RETURN_SUCCESS The size of the uncompressed data was returned \r
-                          in DestinationSize and the size of the scratch \r
+  @retval  RETURN_SUCCESS The size of the uncompressed data was returned\r
+                          in DestinationSize and the size of the scratch\r
                           buffer was returned in ScratchSize.\r
 \r
 **/\r
@@ -65,8 +65,8 @@ LzmaUefiDecompressGetInfo (
   Decompresses a Lzma compressed source buffer.\r
 \r
   Extracts decompressed data to its original form.\r
-  If the compressed source data specified by Source is successfully decompressed \r
-  into Destination, then RETURN_SUCCESS is returned.  If the compressed source data \r
+  If the compressed source data specified by Source is successfully decompressed\r
+  into Destination, then RETURN_SUCCESS is returned.  If the compressed source data\r
   specified by Source is not in a valid compressed data format,\r
   then RETURN_INVALID_PARAMETER is returned.\r
 \r
@@ -74,13 +74,13 @@ LzmaUefiDecompressGetInfo (
   @param  SourceSize  The size of source buffer.\r
   @param  Destination The destination buffer to store the decompressed data\r
   @param  Scratch     A temporary scratch buffer that is used to perform the decompression.\r
-                      This is an optional parameter that may be NULL if the \r
+                      This is an optional parameter that may be NULL if the\r
                       required scratch buffer size is 0.\r
-                     \r
-  @retval  RETURN_SUCCESS Decompression completed successfully, and \r
+\r
+  @retval  RETURN_SUCCESS Decompression completed successfully, and\r
                           the uncompressed buffer is returned in Destination.\r
-  @retval  RETURN_INVALID_PARAMETER \r
-                          The source buffer specified by Source is corrupted \r
+  @retval  RETURN_INVALID_PARAMETER\r
+                          The source buffer specified by Source is corrupted\r
                           (not in a valid compressed format).\r
 **/\r
 RETURN_STATUS\r
index 7b07916bbdc955dc230f725debee7cd17abcf197..b0445115a9a683983d64c569f44c5976e0607ab7 100644 (file)
@@ -4,7 +4,7 @@
   Note that if the debug message length is larger than the maximum allowable\r
   record length, then the debug message will be ignored directly.\r
 \r
-  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -30,8 +30,8 @@
 /**\r
   Prints a debug message to the debug output device if the specified error level is enabled.\r
 \r
-  If any bit in ErrorLevel is also set in DebugPrintErrorLevelLib function \r
-  GetDebugPrintErrorLevel (), then print the message specified by Format and the \r
+  If any bit in ErrorLevel is also set in DebugPrintErrorLevelLib function\r
+  GetDebugPrintErrorLevel (), then print the message specified by Format and the\r
   associated variable argument list to the debug output device.\r
 \r
   If Format is NULL, then ASSERT().\r
@@ -41,7 +41,7 @@
 \r
   @param  ErrorLevel  The error level of the debug message.\r
   @param  Format      Format string for the debug message to print.\r
-  @param  ...         Variable argument list whose contents are accessed \r
+  @param  ...         Variable argument list whose contents are accessed\r
                       based on the format string specified by Format.\r
 \r
 **/\r
@@ -76,7 +76,7 @@ DebugPrint (
 \r
   //\r
   // Compute the total size of the record.\r
-  // Note that the passing-in format string and variable parameters will be constructed to \r
+  // Note that the passing-in format string and variable parameters will be constructed to\r
   // the following layout:\r
   //\r
   //         Buffer->|------------------------|\r
@@ -172,7 +172,7 @@ DebugPrint (
       if (*Format == '\0') {\r
         //\r
         // Make no output if Format string terminates unexpectedly when\r
-        // looking up for flag, width, precision and type. \r
+        // looking up for flag, width, precision and type.\r
         //\r
         Format--;\r
       }\r
@@ -182,7 +182,7 @@ DebugPrint (
       //\r
       break;\r
     }\r
-    \r
+\r
     //\r
     // Pack variable arguments into the storage area following EFI_DEBUG_INFO.\r
     //\r
@@ -205,7 +205,7 @@ DebugPrint (
 \r
     //\r
     // If the converted BASE_LIST is larger than the 12 * sizeof (UINT64) allocated bytes, then ASSERT()\r
-    // This indicates that the DEBUG() macro is passing in more argument than can be handled by \r
+    // This indicates that the DEBUG() macro is passing in more argument than can be handled by\r
     // the EFI_DEBUG_INFO record\r
     //\r
     ASSERT ((CHAR8 *)BaseListMarker <= FormatString);\r
@@ -235,14 +235,14 @@ DebugPrint (
 }\r
 \r
 /**\r
-  Prints an assert message containing a filename, line number, and description.  \r
+  Prints an assert message containing a filename, line number, and description.\r
   This may be followed by a breakpoint or a dead loop.\r
 \r
   Print a message of the form "ASSERT <FileName>(<LineNumber>): <Description>\n"\r
-  to the debug output device.  If DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit of \r
-  PcdDebugProperyMask is set then CpuBreakpoint() is called. Otherwise, if \r
-  DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then \r
-  CpuDeadLoop() is called.  If neither of these bits are set, then this function \r
+  to the debug output device.  If DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit of\r
+  PcdDebugProperyMask is set then CpuBreakpoint() is called. Otherwise, if\r
+  DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then\r
+  CpuDeadLoop() is called.  If neither of these bits are set, then this function\r
   returns immediately after the message is printed to the debug output device.\r
   DebugAssert() must actively prevent recursion.  If DebugAssert() is called while\r
   processing another DebugAssert(), then DebugAssert() must return immediately.\r
@@ -366,14 +366,14 @@ DebugAssert (
 /**\r
   Fills a target buffer with PcdDebugClearMemoryValue, and returns the target buffer.\r
 \r
-  This function fills Length bytes of Buffer with the value specified by \r
+  This function fills Length bytes of Buffer with the value specified by\r
   PcdDebugClearMemoryValue, and returns Buffer.\r
 \r
   If Buffer is NULL, then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
   @param   Buffer  Pointer to the target buffer to be filled with PcdDebugClearMemoryValue.\r
-  @param   Length  Number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue. \r
+  @param   Length  Number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue.\r
 \r
   @return  Buffer  Pointer to the target buffer filled with PcdDebugClearMemoryValue.\r
 \r
@@ -394,7 +394,7 @@ DebugClearMemory (
 /**\r
   Returns TRUE if ASSERT() macros are enabled.\r
 \r
-  This function returns TRUE if the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of \r
+  This function returns TRUE if the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of\r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
 \r
   @retval  TRUE    The DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is set.\r
@@ -411,10 +411,10 @@ DebugAssertEnabled (
 }\r
 \r
 \r
-/**  \r
+/**\r
   Returns TRUE if DEBUG() macros are enabled.\r
 \r
-  This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of \r
+  This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of\r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
 \r
   @retval  TRUE    The DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of PcdDebugProperyMask is set.\r
@@ -431,10 +431,10 @@ DebugPrintEnabled (
 }\r
 \r
 \r
-/**  \r
+/**\r
   Returns TRUE if DEBUG_CODE() macros are enabled.\r
 \r
-  This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of \r
+  This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of\r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
 \r
   @retval  TRUE    The DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of PcdDebugProperyMask is set.\r
@@ -451,10 +451,10 @@ DebugCodeEnabled (
 }\r
 \r
 \r
-/**  \r
+/**\r
   Returns TRUE if DEBUG_CLEAR_MEMORY() macro is enabled.\r
 \r
-  This function returns TRUE if the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of \r
+  This function returns TRUE if the DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of\r
   PcdDebugProperyMask is set.  Otherwise FALSE is returned.\r
 \r
   @retval  TRUE    The DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is set.\r
index 55446672d752a846a4c4379a7df63bed5963f446..12a063f5b84b3d3c5c38b22756b928218df51b8c 100644 (file)
@@ -2,7 +2,7 @@
 #  Debug Library based on report status code library\r
 #\r
 #  Debug Library for PEIMs and DXE drivers that sends debug messages to ReportStatusCode\r
-#  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -36,7 +36,7 @@
 [Packages]\r
   MdePkg/MdePkg.dec\r
   MdeModulePkg/MdeModulePkg.dec\r
-  \r
+\r
 [LibraryClasses]\r
   PcdLib\r
   ReportStatusCodeLib\r
index fc729a899c3b409010f415e219a3383aa8f44b45..d9430483d553317a1be9e4207ae3ee76bab4b02a 100644 (file)
@@ -3,9 +3,9 @@
 \r
   This library instance is no longer used and module using this library\r
   class should update to directly locate EFI_PEI_RECOVERY_MODULE_PPI defined\r
-  in PI 1.2 specification. \r
+  in PI 1.2 specification.\r
 \r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -24,7 +24,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 /**\r
   Calling this function causes the system do recovery.\r
-  \r
+\r
   @retval EFI_SUCESS   Sucess to do recovery.\r
   @retval Others       Fail to do recovery.\r
 **/\r
@@ -36,7 +36,7 @@ PeiRecoverFirmware (
 {\r
   EFI_STATUS                      Status;\r
   EFI_PEI_RECOVERY_MODULE_PPI     *PeiRecovery;\r
-  \r
+\r
   Status = PeiServicesLocatePpi (\r
              &gEfiPeiRecoveryModulePpiGuid,\r
              0,\r
index 9bd321e178e968f1b9b776be5c4cccc80eb924b1..2391deb1da44ddc8228acedc8076616da41c54d3 100644 (file)
@@ -3,9 +3,9 @@
 #\r
 #  This library instance is no longer used and module using this library\r
 #  class should update to directly locate EFI_PEI_RECOVERY_MODULE_PPI defined\r
-#  in PI 1.2 specification. \r
+#  in PI 1.2 specification.\r
 #\r
-#  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -46,5 +46,5 @@
 \r
 [Ppis]\r
   gEfiPeiRecoveryModulePpiGuid            ## CONSUMES\r
-  \r
-  
\ No newline at end of file
+\r
+\r
index d16e3cac24e11d1a4e472730cf0137de0644d8eb..9db5b7e09c72801d32026c3a7a76a37bb056bc5c 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
-  This library provides API to invoke the S3 resume vector in the APCI Table in S3 resume mode. \r
+  This library provides API to invoke the S3 resume vector in the APCI Table in S3 resume mode.\r
 \r
   This library instance is no longer used and module using this library\r
   class should update to directly locate EFI_PEI_S3_RESUME_PPI defined\r
-  in PI 1.2 specification. \r
+  in PI 1.2 specification.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -25,7 +25,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 /**\r
   This function is responsible for calling the S3 resume vector in the ACPI Tables.\r
-  \r
+\r
   @retval EFI_SUCESS   Success to restore config from S3.\r
   @retval Others       Fail to restore config from S3.\r
 **/\r
@@ -37,7 +37,7 @@ AcpiS3ResumeOs (
 {\r
   EFI_STATUS              Status;\r
   EFI_PEI_S3_RESUME_PPI   *S3Resume;\r
-  \r
+\r
   Status = PeiServicesLocatePpi (\r
              &gEfiPeiS3ResumePpiGuid,\r
              0,\r
@@ -46,6 +46,6 @@ AcpiS3ResumeOs (
              );\r
   ASSERT_EFI_ERROR (Status);\r
 \r
-  return S3Resume->S3RestoreConfig ((EFI_PEI_SERVICES  **) GetPeiServicesTablePointer()); \r
+  return S3Resume->S3RestoreConfig ((EFI_PEI_SERVICES  **) GetPeiServicesTablePointer());\r
 }\r
 \r
index b01e1860f47bc5c421949df446380c9eed1163de..4b5e911d39d6f8f2ce7a693a3aff21d15d580b9b 100644 (file)
@@ -3,9 +3,9 @@
 #\r
 #  This library instance is no longer used and module using this library\r
 #  class should update to directly locate EFI_PEI_S3_RESUME_PPI defined\r
-#  in PI 1.2 specification. \r
+#  in PI 1.2 specification.\r
 #\r
-#  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
index 1afcf5e92c509537d7814d465f275a4788f082d1..dace2de21bf91d620610563819a8f36c78852184 100644 (file)
@@ -3,13 +3,13 @@
 //\r
 // NULL implementation for PlatformBdsLib library class interfaces.\r
 //\r
-// Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 37c98cff001845d008e05a8e17958e63c5c600d9..8b9077a7fb577045ee35cc9f2d2f7ec4b5f7c204 100644 (file)
@@ -1,15 +1,15 @@
 ## @file\r
 #  NULL implementation for PlatformBdsLib library class interfaces.\r
-#  \r
-#  Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+#\r
+#  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 [Defines]\r
@@ -19,7 +19,7 @@
   FILE_GUID                      = 143B5044-7C1B-4904-9778-EA16F1F3D554\r
   MODULE_TYPE                    = DXE_DRIVER\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = PlatformBdsLib|DXE_DRIVER   \r
+  LIBRARY_CLASS                  = PlatformBdsLib|DXE_DRIVER\r
 \r
 #\r
 # The following information is for reference only and not required by the build tools.\r
@@ -36,7 +36,7 @@
   MdePkg/MdePkg.dec\r
   MdeModulePkg/MdeModulePkg.dec\r
   IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec\r
-  \r
+\r
 [LibraryClasses]\r
   BaseLib\r
   MemoryAllocationLib\r
@@ -44,4 +44,4 @@
   BaseMemoryLib\r
   DebugLib\r
   PcdLib\r
-  GenericBdsLib
\ No newline at end of file
+  GenericBdsLib\r
index 6964e44f340857f568b214947a6f715458d88d02..ba1b836505d4216e41faefe130755294a41e98a0 100644 (file)
@@ -5,7 +5,7 @@
 #  In SMM, it logs message via SMM Status Code Protocol.\r
 #  Otherwise, it logs message to ReportStatusCode() in framework runtime services table or runtime report status code protocol.\r
 #\r
-#  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -25,7 +25,7 @@
   MODULE_TYPE                    = DXE_RUNTIME_DRIVER\r
   VERSION_STRING                 = 1.0\r
   LIBRARY_CLASS                  = ReportStatusCodeLib|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER\r
-  \r
+\r
   CONSTRUCTOR                    = ReportStatusCodeLibConstruct\r
   DESTRUCTOR                     = ReportStatusCodeLibDestruct\r
 #\r
index 554be152b3dfbfbcecabc0450ebed1fa007f1573..d97a7f7753d06bc13c5ce5be326aa44002951ff7 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Library constructor & destructor, event handlers, and other internal worker functions.\r
 \r
-  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -26,7 +26,7 @@ EFI_SMM_STATUS_CODE_PROTOCOL  *mSmmStatusCodeProtocol;
 \r
 /**\r
   Locates and caches SMM Status Code Protocol.\r
\r
+\r
 **/\r
 VOID\r
 SmmStatusCodeInitialize (\r
@@ -43,20 +43,20 @@ SmmStatusCodeInitialize (
 \r
 /**\r
   Report status code via SMM Status Code Protocol.\r
\r
+\r
   @param  Type          Indicates the type of status code being reported.\r
-  @param  Value         Describes the current status of a hardware or software entity.  \r
-                        This included information about the class and subclass that is used to classify the entity \r
-                        as well as an operation.  For progress codes, the operation is the current activity. \r
-                        For error codes, it is the exception.  For debug codes, it is not defined at this time. \r
-  @param  Instance      The enumeration of a hardware or software entity within the system.  \r
-                        A system may contain multiple entities that match a class/subclass pairing. \r
-                        The instance differentiates between them.  An instance of 0 indicates that instance information is unavailable, \r
+  @param  Value         Describes the current status of a hardware or software entity.\r
+                        This included information about the class and subclass that is used to classify the entity\r
+                        as well as an operation.  For progress codes, the operation is the current activity.\r
+                        For error codes, it is the exception.  For debug codes, it is not defined at this time.\r
+  @param  Instance      The enumeration of a hardware or software entity within the system.\r
+                        A system may contain multiple entities that match a class/subclass pairing.\r
+                        The instance differentiates between them.  An instance of 0 indicates that instance information is unavailable,\r
                         not meaningful, or not relevant.  Valid instance numbers start with 1.\r
-  @param  CallerId      This optional parameter may be used to identify the caller. \r
-                        This parameter allows the status code driver to apply different rules to different callers. \r
+  @param  CallerId      This optional parameter may be used to identify the caller.\r
+                        This parameter allows the status code driver to apply different rules to different callers.\r
   @param  Data          This optional parameter may be used to pass additional data\r
\r
+\r
   @retval EFI_SUCCESS   Always return EFI_SUCCESS.\r
 \r
 **/\r
@@ -99,9 +99,9 @@ InternalGetReportStatusCode (
   } else if (mInternalRT != NULL && mInternalRT->Hdr.Revision < 0x20000) {\r
     return ((FRAMEWORK_EFI_RUNTIME_SERVICES*)mInternalRT)->ReportStatusCode;\r
   } else if (!mHaveExitedBootServices) {\r
-       //\r
-       // Check gBS just in case. ReportStatusCode is called before gBS is initialized.\r
-       //\r
+    //\r
+    // Check gBS just in case. ReportStatusCode is called before gBS is initialized.\r
+    //\r
     if (gBS != NULL) {\r
       Status = gBS->LocateProtocol (&gEfiStatusCodeRuntimeProtocolGuid, NULL, (VOID**)&StatusCodeProtocol);\r
       if (!EFI_ERROR (Status) && StatusCodeProtocol != NULL) {\r
@@ -156,13 +156,13 @@ InternalReportStatusCode (
         return EFI_UNSUPPORTED;\r
       }\r
     }\r
-  \r
+\r
     //\r
     // A status code service is present in system, so pass in all the parameters to the service.\r
     //\r
     return (*mReportStatusCode) (Type, Value, Instance, (EFI_GUID *)CallerId, Data);\r
   }\r
-  \r
+\r
   return EFI_UNSUPPORTED;\r
 }\r
 \r
@@ -220,7 +220,7 @@ ReportStatusCodeLibExitBootServices (
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
@@ -242,8 +242,8 @@ ReportStatusCodeLibConstruct (
     if (mInSmm) {\r
       Status = mSmmBase->SmmAllocatePool (\r
                            mSmmBase,\r
-                           EfiRuntimeServicesData, \r
-                           sizeof (EFI_STATUS_CODE_DATA) + EFI_STATUS_CODE_DATA_MAX_SIZE, \r
+                           EfiRuntimeServicesData,\r
+                           sizeof (EFI_STATUS_CODE_DATA) + EFI_STATUS_CODE_DATA_MAX_SIZE,\r
                            (VOID **) &mStatusCodeData\r
                            );\r
       ASSERT_EFI_ERROR (Status);\r
@@ -257,7 +257,7 @@ ReportStatusCodeLibConstruct (
   // If not in SMM mode, then allocate runtime memory for extended status code data.\r
   //\r
   // Library should not use the gRT directly, for it may be converted by other library instance.\r
-  // \r
+  //\r
   mInternalRT = gRT;\r
   mInSmm      = FALSE;\r
 \r
@@ -265,12 +265,12 @@ ReportStatusCodeLibConstruct (
   ASSERT (mStatusCodeData != NULL);\r
   //\r
   // Cache the report status code service\r
-  // \r
+  //\r
   mReportStatusCode = InternalGetReportStatusCode ();\r
 \r
   //\r
   // Register notify function for EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE\r
-  // \r
+  //\r
   Status = gBS->CreateEventEx (\r
                   EVT_NOTIFY_SIGNAL,\r
                   TPL_NOTIFY,\r
@@ -283,7 +283,7 @@ ReportStatusCodeLibConstruct (
 \r
   //\r
   // Register notify function for EVT_SIGNAL_EXIT_BOOT_SERVICES\r
-  // \r
+  //\r
   Status = gBS->CreateEventEx (\r
                   EVT_NOTIFY_SIGNAL,\r
                   TPL_NOTIFY,\r
@@ -299,13 +299,13 @@ ReportStatusCodeLibConstruct (
 \r
 /**\r
   The destructor function of SMM Runtime DXE Report Status Code Lib.\r
-  \r
+\r
   The destructor function frees memory allocated by constructor, and closes related events.\r
-  It will ASSERT() if that related operation fails and it will always return EFI_SUCCESS. \r
+  It will ASSERT() if that related operation fails and it will always return EFI_SUCCESS.\r
 \r
   @param  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS   The constructor always returns EFI_SUCCESS.\r
 \r
 **/\r
index e03101cab8a679daf5cd5e9574515be46bd7035e..fefa41a3af785b0073a144232e80953970e1db26 100644 (file)
@@ -2,7 +2,7 @@
   This is an implementation of the ACPI S3 Save protocol.  This is defined in\r
   S3 boot path specification 0.9.\r
 \r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -55,7 +55,7 @@ EFI_ACPI_S3_SAVE_PROTOCOL mS3Save = {
 \r
   @param  MemoryType   Memory type of memory to allocate.\r
   @param  Size         Size of memory to allocate.\r
-  \r
+\r
   @return Allocated address for output.\r
 \r
 **/\r
@@ -88,7 +88,7 @@ AllocateMemoryBelow4G (
 }\r
 \r
 /**\r
-  Gets the buffer of legacy memory below 1 MB \r
+  Gets the buffer of legacy memory below 1 MB\r
   This function is to get the buffer in legacy memory below 1MB that is required during S3 resume.\r
 \r
   @param This           A pointer to the EFI_ACPI_S3_SAVE_PROTOCOL instance.\r
@@ -115,9 +115,9 @@ LegacyGetS3MemorySize (
 \r
 /**\r
   Prepares all information that is needed in the S3 resume boot path.\r
-  \r
-  Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path  \r
-  \r
+\r
+  Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path\r
+\r
   @param This                 A pointer to the EFI_ACPI_S3_SAVE_PROTOCOL instance.\r
   @param LegacyMemoryAddress  The base address of legacy memory.\r
 \r
@@ -156,9 +156,9 @@ S3Ready (
 \r
 /**\r
   The Driver Entry Point.\r
-  \r
+\r
   The function is the driver Entry point which will produce AcpiS3SaveProtocol.\r
-  \r
+\r
   @param ImageHandle   A handle for the image that is initializing this driver\r
   @param SystemTable   A pointer to the EFI system table\r
 \r
index 65974a34027c11e55b77cfd12da4b7a69db02304..48d77e7b5b1953c8bfdedbda2737a99ca4b76290 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
-  This is an implementation of the ACPI S3 Save protocol.  This is defined in \r
+  This is an implementation of the ACPI S3 Save protocol.  This is defined in\r
   S3 boot path specification 0.9.\r
 \r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -19,7 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define _ACPI_S3_SAVE_H_\r
 \r
 /**\r
-  Gets the buffer of legacy memory below 1 MB \r
+  Gets the buffer of legacy memory below 1 MB\r
   This function is to get the buffer in legacy memory below 1MB that is required during S3 resume.\r
 \r
   @param This           A pointer to the EFI_ACPI_S3_SAVE_PROTOCOL instance.\r
@@ -38,9 +38,9 @@ LegacyGetS3MemorySize (
 \r
 /**\r
   Prepares all information that is needed in the S3 resume boot path.\r
-  \r
-  Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path  \r
-  \r
+\r
+  Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path\r
+\r
   @param This                 A pointer to the EFI_ACPI_S3_SAVE_PROTOCOL instance.\r
   @param LegacyMemoryAddress  The base address of legacy memory.\r
 \r
@@ -54,6 +54,6 @@ EFI_STATUS
 EFIAPI\r
 S3Ready (\r
   IN EFI_ACPI_S3_SAVE_PROTOCOL     *This,\r
-  IN VOID                          *LegacyMemoryAddress   \r
+  IN VOID                          *LegacyMemoryAddress\r
   );\r
 #endif\r
index 179aa82d8d53521c56acef9d3e29feda692be7c6..e40153b81342dbd775d5086e18118ef24e8adabb 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # AcpiS3Save module installs ACPI S3 Save protocol to prepare S3 boot data.\r
 #\r
-# Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials are\r
 # licensed and made available under the terms and conditions of the BSD License\r
@@ -73,7 +73,7 @@
 [Depex]\r
   #\r
   # Note: the extra dependency of gEfiMpServiceProtocolGuid is to ensure that ACPI variable is set by MpDxe driver before\r
-  # AcpiS3SaveDxe module is executed. \r
+  # AcpiS3SaveDxe module is executed.\r
   #\r
   gEfiVariableArchProtocolGuid AND gEfiVariableWriteArchProtocolGuid AND gEfiMpServiceProtocolGuid\r
 \r
index 7d4eed80a82051b1cf228b987f9a0ee065010fed..4ebaba2502ad26c31cbe85bcebf885eb0525b0d9 100644 (file)
@@ -3,13 +3,13 @@
 //\r
 // AcpiS3Save module installs ACPI S3 Save protocol to prepare S3 boot data.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials are\r
 // licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 0596a9dcf2f797b5d21264385e23240a8cde5269..2753d98b98ab98c49d1d47a116a006832e59a1a0 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // AcpiS3SaveDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials are\r
 // licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "ACPI S3 Save State DXE Driver"\r
 \r
 \r
index 105b142b284c0f06fefa113c83458055b298096f..1aac2f181aef27a92b8cfd45a404cc5d16932ca6 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   This is an implementation of the AcpiVariable platform field for ECP platform.\r
 \r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -25,8 +25,8 @@ typedef struct {
   ACPI_CPU_DATA_COMPATIBILITY         AcpiCpuData;\r
   EFI_PHYSICAL_ADDRESS  VideoOpromAddress;\r
   UINT32                VideoOpromSize;\r
-  EFI_PHYSICAL_ADDRESS  S3DebugBufferAddress; \r
-  EFI_PHYSICAL_ADDRESS  S3ResumeNvsEntryPoint;    \r
+  EFI_PHYSICAL_ADDRESS  S3DebugBufferAddress;\r
+  EFI_PHYSICAL_ADDRESS  S3ResumeNvsEntryPoint;\r
 } ACPI_VARIABLE_SET_COMPATIBILITY;\r
 \r
 **/\r
@@ -54,7 +54,7 @@ ACPI_VARIABLE_SET_COMPATIBILITY               *mAcpiVariableSetCompatibility = N
 \r
   @param  MemoryType   Memory type of memory to allocate.\r
   @param  Size         Size of memory to allocate.\r
-  \r
+\r
   @return Allocated address for output.\r
 \r
 **/\r
@@ -167,8 +167,8 @@ InstallAcpiS3SaveThunk (
                   );\r
   if (!EFI_ERROR (Status)) {\r
     //\r
-    // On ECP platform, if framework CPU drivers are in use, The compatible version of ACPI variable set \r
-    // should be produced by CPU driver. \r
+    // On ECP platform, if framework CPU drivers are in use, The compatible version of ACPI variable set\r
+    // should be produced by CPU driver.\r
     //\r
     VarSize = sizeof (mAcpiVariableSetCompatibility);\r
     Status = gRT->GetVariable (\r
@@ -184,7 +184,7 @@ InstallAcpiS3SaveThunk (
     }\r
   } else {\r
     //\r
-    // Allocate/initialize the compatible version of Acpi Variable Set since Framework chipset/platform \r
+    // Allocate/initialize the compatible version of Acpi Variable Set since Framework chipset/platform\r
     // driver need this variable. ACPI_GLOBAL_VARIABLE variable is not used in runtime phase,\r
     // so RT attribute is not needed for it.\r
     //\r
index a8b1f061171d0b5f545c1ebbfd40bee6f6c9568d..689318b87dca5d97889e29d3b9a553c6c19dc1f4 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
-  This is an implementation of the ACPI Support protocol.  This is defined in \r
+  This is an implementation of the ACPI Support protocol.  This is defined in\r
   the Tiano ACPI External Product Specification, revision 0.3.6.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -26,14 +26,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 EFI_HANDLE    mHandle = NULL;\r
 \r
 /**\r
-  Entry point of the ACPI support driver. This function creates and initializes an instance of the ACPI Support \r
+  Entry point of the ACPI support driver. This function creates and initializes an instance of the ACPI Support\r
   Protocol and installs it on a new handle.\r
 \r
   @param ImageHandle   A handle for the image that is initializing this driver\r
-  @param SystemTable   A pointer to the EFI system table        \r
+  @param SystemTable   A pointer to the EFI system table\r
 \r
   @retval EFI_SUCCESS              Driver initialized successfully\r
-  @retval EFI_LOAD_ERROR           Failed to Initialize or has been loaded \r
+  @retval EFI_LOAD_ERROR           Failed to Initialize or has been loaded\r
   @retval EFI_OUT_OF_RESOURCES     Could not allocate needed resources\r
 **/\r
 EFI_STATUS\r
@@ -85,7 +85,7 @@ InstallAcpiSupport (
                     NULL\r
                     );\r
     ASSERT_EFI_ERROR (Status);\r
-  }  \r
+  }\r
 \r
   return Status;\r
 }\r
index 1bcf1e6ee50dc6ead38fe79c9315bf85c222a41e..d66d1023d7f289f2b43c103135010126305abe5c 100644 (file)
@@ -2,7 +2,7 @@
   This is an implementation of the ACPI Support protocol.\r
   It is in compliance with the 0.9 definition of the protocol.\r
 \r
-Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -131,12 +131,12 @@ typedef struct {
       AcpiTableProtocol, \\r
       EFI_ACPI_SUPPORT_SIGNATURE \\r
       )\r
-      \r
+\r
 /**\r
-  Constructor for the ACPI support protocol.  \r
-  \r
+  Constructor for the ACPI support protocol.\r
+\r
   Constructor for the ACPI support protocol to initializes instance data.\r
-  \r
+\r
   @param AcpiSupportInstance   Instance to construct\r
 \r
   @retval EFI_SUCCESS           Instance initialized.\r
@@ -147,14 +147,14 @@ AcpiSupportAcpiSupportConstructor (
   IN EFI_ACPI_SUPPORT_INSTANCE                 *AcpiSupportInstance\r
   );\r
 /**\r
-  Entry point of the ACPI support driver. This function creates and initializes an instance of the ACPI Support \r
+  Entry point of the ACPI support driver. This function creates and initializes an instance of the ACPI Support\r
   Protocol and installs it on a new handle.\r
 \r
   @param ImageHandle   A handle for the image that is initializing this driver\r
-  @param SystemTable   A pointer to the EFI system table        \r
+  @param SystemTable   A pointer to the EFI system table\r
 \r
   @retval EFI_SUCCESS              Driver initialized successfully\r
-  @retval EFI_LOAD_ERROR           Failed to Initialize or has been loaded \r
+  @retval EFI_LOAD_ERROR           Failed to Initialize or has been loaded\r
   @retval EFI_OUT_OF_RESOURCES     Could not allocate needed resources\r
 **/\r
 EFI_STATUS\r
index 6443c3acd0e9de7feec8c324f11faa7b38f8bed4..aeacd02f6ab98d85a954eef1b9103e2d7c4f3beb 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   ACPI Support Protocol implementation\r
 \r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -19,9 +19,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //\r
 #include "AcpiSupport.h"\r
 //\r
-// The maximum number of tables that pre-allocated. \r
+// The maximum number of tables that pre-allocated.\r
 //\r
-UINTN         mEfiAcpiMaxNumTables = EFI_ACPI_MAX_NUM_TABLES; \r
+UINTN         mEfiAcpiMaxNumTables = EFI_ACPI_MAX_NUM_TABLES;\r
 /**\r
   This function adds an ACPI table to the table list.  It will detect FACS and\r
   allocate the correct type of memory and properly align the table.\r
@@ -91,10 +91,10 @@ ChecksumCommonTables (
   );\r
 \r
 /**\r
-  This function returns a table specified by an index if it exists.  \r
-  \r
-  The function returns a buffer containing the table that the caller must free.  \r
-  The function also returns a handle used to identify the table for update or \r
+  This function returns a table specified by an index if it exists.\r
+\r
+  The function returns a buffer containing the table that the caller must free.\r
+  The function also returns a handle used to identify the table for update or\r
   deletion using the SetAcpiTable function.\r
 \r
   @param This        Instance of the protocol.\r
@@ -165,7 +165,7 @@ GetAcpiTable (
 }\r
 /**\r
   This function adds, removes, or updates ACPI tables.  If the address is not\r
-  null and the handle value is null, the table is added.  If both the address and \r
+  null and the handle value is null, the table is added.  If both the address and\r
   handle are not null, the table at handle is updated with the table at address.\r
   If the address is null and the handle is not, the table at handle is deleted.\r
 \r
@@ -371,7 +371,7 @@ PublishTables (
   @param  TableKey             Reurns a key to refer to the ACPI table.\r
 \r
   @return EFI_SUCCESS            The table was successfully inserted.\r
-  @return EFI_INVALID_PARAMETER  Either AcpiTableBuffer is NULL, TableKey is NULL, or AcpiTableBufferSize \r
+  @return EFI_INVALID_PARAMETER  Either AcpiTableBuffer is NULL, TableKey is NULL, or AcpiTableBufferSize\r
                                  and the size field embedded in the ACPI table pointed to by AcpiTableBuffer\r
                                  are not in sync.\r
   @return EFI_OUT_OF_RESOURCES   Insufficient resources exist to complete the request.\r
@@ -427,7 +427,7 @@ InstallAcpiTable (
                             );\r
   }\r
   FreePool (AcpiTableBufferConst);\r
-  \r
+\r
   return Status;\r
 }\r
 /**\r
@@ -500,7 +500,7 @@ ReallocateAcpiTableBuffer (
   EFI_STATUS                 Status;\r
   UINT64                     CurrentData;\r
 \r
-  CopyMem (&TempPrivateData, AcpiSupportInstance, sizeof (EFI_ACPI_SUPPORT_INSTANCE)); \r
+  CopyMem (&TempPrivateData, AcpiSupportInstance, sizeof (EFI_ACPI_SUPPORT_INSTANCE));\r
   //\r
   // Enlarge the max table number from mEfiAcpiMaxNumTables to mEfiAcpiMaxNumTables + EFI_ACPI_MAX_NUM_TABLES\r
   //\r
@@ -538,7 +538,7 @@ ReallocateAcpiTableBuffer (
 \r
   Pointer = (UINT8 *) (UINTN) PageAddress;\r
   ZeroMem (Pointer, TotalSize);\r
-  \r
+\r
   AcpiSupportInstance->Rsdt1 = (EFI_ACPI_DESCRIPTION_HEADER *) Pointer;\r
   Pointer += (sizeof (EFI_ACPI_DESCRIPTION_HEADER) + NewMaxTableNumber * sizeof (UINT32));\r
   AcpiSupportInstance->Rsdt3 = (EFI_ACPI_DESCRIPTION_HEADER *) Pointer;\r
@@ -554,12 +554,12 @@ ReallocateAcpiTableBuffer (
   CopyMem (&AcpiSupportInstance->Rsdp3->XsdtAddress, &CurrentData, sizeof (UINT64));\r
 \r
   //\r
-  // copy the original Rsdt1, Rsdt3 and Xsdt structure to new buffer \r
+  // copy the original Rsdt1, Rsdt3 and Xsdt structure to new buffer\r
   //\r
-  CopyMem (AcpiSupportInstance->Rsdt1, TempPrivateData.Rsdt1, (sizeof (EFI_ACPI_DESCRIPTION_HEADER) + mEfiAcpiMaxNumTables * sizeof (UINT32))); \r
-  CopyMem (AcpiSupportInstance->Rsdt3, TempPrivateData.Rsdt3, (sizeof (EFI_ACPI_DESCRIPTION_HEADER) + mEfiAcpiMaxNumTables * sizeof (UINT32))); \r
+  CopyMem (AcpiSupportInstance->Rsdt1, TempPrivateData.Rsdt1, (sizeof (EFI_ACPI_DESCRIPTION_HEADER) + mEfiAcpiMaxNumTables * sizeof (UINT32)));\r
+  CopyMem (AcpiSupportInstance->Rsdt3, TempPrivateData.Rsdt3, (sizeof (EFI_ACPI_DESCRIPTION_HEADER) + mEfiAcpiMaxNumTables * sizeof (UINT32)));\r
   CopyMem (AcpiSupportInstance->Xsdt, TempPrivateData.Xsdt, (sizeof (EFI_ACPI_DESCRIPTION_HEADER) + mEfiAcpiMaxNumTables * sizeof (UINT64)));\r
-  \r
+\r
   //\r
   // Calculate orignal ACPI table buffer size\r
   //\r
@@ -570,10 +570,10 @@ ReallocateAcpiTableBuffer (
               sizeof (EFI_ACPI_DESCRIPTION_HEADER) +         // for ACPI 2.0/3.0 XSDT\r
               mEfiAcpiMaxNumTables * sizeof (UINT64);\r
   gBS->FreePages ((EFI_PHYSICAL_ADDRESS)(UINTN)TempPrivateData.Rsdt1, EFI_SIZE_TO_PAGES (TotalSize));\r
-  \r
+\r
   //\r
   // Update the Max ACPI table number\r
-  // \r
+  //\r
   mEfiAcpiMaxNumTables = NewMaxTableNumber;\r
   return EFI_SUCCESS;\r
 }\r
@@ -650,7 +650,7 @@ AddTableToList (
   //\r
   // Allocation memory type depends on the type of the table\r
   //\r
-  if ((CurrentTableSignature == EFI_ACPI_2_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE) || \r
+  if ((CurrentTableSignature == EFI_ACPI_2_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE) ||\r
       (CurrentTableSignature == EFI_ACPI_4_0_UEFI_ACPI_DATA_TABLE_SIGNATURE)) {\r
     //\r
     // Allocate memory for the FACS.  This structure must be aligned\r
@@ -778,7 +778,7 @@ AddTableToList (
 \r
       //\r
       // Update pointers in FADT.  If tables don't exist this will put NULL pointers there.\r
-      // Note: If the FIRMWARE_CTRL is non-zero, then X_FIRMWARE_CTRL must be zero, and \r
+      // Note: If the FIRMWARE_CTRL is non-zero, then X_FIRMWARE_CTRL must be zero, and\r
       // vice-versa.\r
       //\r
       if ((UINT64)(UINTN)AcpiSupportInstance->Facs3 < BASE_4GB) {\r
@@ -913,7 +913,7 @@ AddTableToList (
       //\r
       if (AcpiSupportInstance->Fadt3 != NULL) {\r
         //\r
-        // Note: If the FIRMWARE_CTRL is non-zero, then X_FIRMWARE_CTRL must be zero, and \r
+        // Note: If the FIRMWARE_CTRL is non-zero, then X_FIRMWARE_CTRL must be zero, and\r
         // vice-versa.\r
         //\r
         if ((UINT64)(UINTN)AcpiSupportInstance->Facs3 < BASE_4GB) {\r
@@ -984,7 +984,7 @@ AddTableToList (
           );\r
       }\r
     }\r
-    \r
+\r
      if ((Version & EFI_ACPI_TABLE_VERSION_2_0) != 0 ||\r
         (Version & EFI_ACPI_TABLE_VERSION_3_0) != 0) {\r
       //\r
@@ -1014,7 +1014,7 @@ AddTableToList (
           Checksum)\r
           );\r
       }\r
-    }        \r
+    }\r
     //\r
     // Checksum the table\r
     //\r
@@ -1094,7 +1094,7 @@ AddTableToList (
        if (AcpiSupportInstance->NumberOfTableEntries3 >= mEfiAcpiMaxNumTables) {\r
          Status = ReallocateAcpiTableBuffer (AcpiSupportInstance);\r
          ASSERT_EFI_ERROR (Status);\r
-       }      \r
+       }\r
       //\r
       // At this time, it is assumed that RSDT and XSDT maintain parallel lists of tables.\r
       // If it becomes necessary to maintain separate table lists, changes will be required.\r
@@ -1159,7 +1159,7 @@ AddTableToList (
 \r
   @param  Handle      Table to find.\r
   @param  TableList   Table list to search\r
-  @param  Table       Pointer to table found. \r
+  @param  Table       Pointer to table found.\r
 \r
   @return EFI_SUCCESS    The function completed successfully.\r
   @return EFI_NOT_FOUND  No table found matching the handle specified.\r
@@ -1207,7 +1207,7 @@ FindTableByHandle (
   For Acpi 1.0 tables, pass in the Rsdt.\r
   For Acpi 2.0 tables, pass in both Rsdt and Xsdt.\r
 \r
-  @param  Table                 Pointer to table found. \r
+  @param  Table                 Pointer to table found.\r
   @param  NumberOfTableEntries  Current number of table entries in the RSDT/XSDT\r
   @param  Rsdt                  Pointer to the RSDT to remove from\r
   @param  Xsdt                  Pointer to the Xsdt to remove from\r
@@ -1417,11 +1417,11 @@ DeleteTable (
       //\r
       if (Version & EFI_ACPI_TABLE_VERSION_2_0 & Table->Version) {\r
         Table->Version = Table->Version &~EFI_ACPI_TABLE_VERSION_2_0;\r
-      }      \r
+      }\r
       if (Version & EFI_ACPI_TABLE_VERSION_3_0 & Table->Version) {\r
         Table->Version = Table->Version &~EFI_ACPI_TABLE_VERSION_3_0;\r
       }\r
-      \r
+\r
       //\r
       // Remove from Rsdt and Xsdt.  We don't care about the return value\r
       // because it is acceptable for the table to not exist in Rsdt/Xsdt.\r
@@ -1435,7 +1435,7 @@ DeleteTable (
           AcpiSupportInstance->Xsdt\r
           );\r
       }\r
-    }    \r
+    }\r
     //\r
     // Free the table, clean up any dependent tables and our private data pointers.\r
     //\r
@@ -1495,7 +1495,7 @@ DeleteTable (
             Checksum)\r
             );\r
         }\r
-      }    \r
+      }\r
       break;\r
 \r
     case EFI_ACPI_3_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE:\r
@@ -1520,7 +1520,7 @@ DeleteTable (
         }\r
       }\r
 \r
-      \r
+\r
       if ((Version & EFI_ACPI_TABLE_VERSION_2_0) != 0 ||\r
           (Version & EFI_ACPI_TABLE_VERSION_3_0) != 0) {\r
         AcpiSupportInstance->Dsdt3 = NULL;\r
@@ -1733,12 +1733,12 @@ ChecksumCommonTables (
     OFFSET_OF (EFI_ACPI_DESCRIPTION_HEADER,\r
     Checksum)\r
     );\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
-/** \r
+/**\r
   Constructor for the ACPI support protocol to initializes instance data.\r
-  \r
+\r
   @param AcpiSupportInstance   Instance to construct\r
 \r
   @retval EFI_SUCCESS             Instance initialized.\r
@@ -1769,7 +1769,7 @@ AcpiSupportAcpiSupportConstructor (
 \r
   AcpiSupportInstance->AcpiTableProtocol.InstallAcpiTable   = InstallAcpiTable;\r
   AcpiSupportInstance->AcpiTableProtocol.UninstallAcpiTable = UninstallAcpiTable;\r
-  \r
+\r
   //\r
   // Create RSDP table\r
   //\r
index 32ca4f648fd2f586d11548cbedf97b15b22516f0..415397e626416c9cee79ec033769d80d975998ac 100644 (file)
@@ -1,10 +1,10 @@
 ## @file\r
 # Acpi Support Dirver to install Framework Acpi Support Protocol.\r
 #\r
-# This driver initializes ACPI support protocol instance data structure and intstall \r
+# This driver initializes ACPI support protocol instance data structure and intstall\r
 # ACPI support protocol to provide Get, Set and Publish Table services.\r
 #\r
-# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions\r
index b463bb7414d44a14c233b943370d0d0e7d25ccce..2a43a78bd68ddd925236fd5b4f7ab5c6c2fcaedf 100644 (file)
@@ -4,14 +4,14 @@
 // This driver initializes ACPI support protocol instance data structure and intstall\r
 // ACPI support protocol to provide Get, Set and Publish Table services.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
 // of the BSD License which accompanies this distribution.  The\r
 // full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 0520a0cc2c98cc03a78924142acc6c10a4bff5a3..a90ab77248e506223f5a60e505a10c2db01cec96 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // AcpiSupportDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions\r
@@ -14,8 +14,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "ACPI Support DXE Driver"\r
 \r
 \r
index beb9226180bd6308d90f0a089d769738ab51ec29..21523831d284ebe5328a3cd66f9669800a0e74c7 100644 (file)
@@ -198,15 +198,15 @@ BdsProcessCapsules (
                                  then EFI_INVALID_PARAMETER is returned.\r
   @param  VendorGuid             A unique identifier for the vendor.\r
   @param  Attributes             Attributes bitmask to set for the variable.\r
-  @param  DataSize               The size in bytes of the Data buffer. Unless the EFI_VARIABLE_APPEND_WRITE, \r
-                                 EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS, or \r
-                                 EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS attribute is set, a size of zero \r
-                                 causes the variable to be deleted. When the EFI_VARIABLE_APPEND_WRITE attribute is \r
-                                 set, then a SetVariable() call with a DataSize of zero will not cause any change to \r
-                                 the variable value (the timestamp associated with the variable may be updated however \r
-                                 even if no new data value is provided,see the description of the \r
-                                 EFI_VARIABLE_AUTHENTICATION_2 descriptor below. In this case the DataSize will not \r
-                                 be zero since the EFI_VARIABLE_AUTHENTICATION_2 descriptor will be populated). \r
+  @param  DataSize               The size in bytes of the Data buffer. Unless the EFI_VARIABLE_APPEND_WRITE,\r
+                                 EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS, or\r
+                                 EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS attribute is set, a size of zero\r
+                                 causes the variable to be deleted. When the EFI_VARIABLE_APPEND_WRITE attribute is\r
+                                 set, then a SetVariable() call with a DataSize of zero will not cause any change to\r
+                                 the variable value (the timestamp associated with the variable may be updated however\r
+                                 even if no new data value is provided,see the description of the\r
+                                 EFI_VARIABLE_AUTHENTICATION_2 descriptor below. In this case the DataSize will not\r
+                                 be zero since the EFI_VARIABLE_AUTHENTICATION_2 descriptor will be populated).\r
   @param  Data                   The contents for the variable.\r
 \r
   @retval EFI_SUCCESS            The firmware has successfully stored the variable and its data as\r
@@ -218,8 +218,8 @@ BdsProcessCapsules (
   @retval EFI_DEVICE_ERROR       The variable could not be retrieved due to a hardware error.\r
   @retval EFI_WRITE_PROTECTED    The variable in question is read-only.\r
   @retval EFI_WRITE_PROTECTED    The variable in question cannot be deleted.\r
-  @retval EFI_SECURITY_VIOLATION The variable could not be written due to EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS \r
-                                 or EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACESS being set, but the AuthInfo \r
+  @retval EFI_SECURITY_VIOLATION The variable could not be written due to EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS\r
+                                 or EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACESS being set, but the AuthInfo\r
                                  does NOT pass the validation check carried out by the firmware.\r
 \r
   @retval EFI_NOT_FOUND          The variable trying to be updated or deleted was not found.\r
index 92a473769a31bdbb5fd3f4d910a200024ce4b092..e11c81d2d9961c626e308054a047c8ed51247021 100644 (file)
@@ -1,28 +1,28 @@
 ## @file\r
 #  BDSDxe module is core driver for BDS phase.\r
 #\r
-#  When DxeCore dispatching all DXE driver, this module will produce architecture protocol \r
+#  When DxeCore dispatching all DXE driver, this module will produce architecture protocol\r
 #  gEfiBdsArchProtocolGuid. After DxeCore finish dispatching, DxeCore will invoke Entry\r
 #  interface of protocol gEfiBdsArchProtocolGuid, then BDS phase is entered.\r
 #\r
-#  Generally, this module take reposiblity to connect all necessary devices for platform boot, \r
+#  Generally, this module take reposiblity to connect all necessary devices for platform boot,\r
 #  these boot device path are hold in PlatformBdsLib library instance produced by platform.\r
 #  For legacy boot, BDS will transfer control to legacy BIOS after legacy boot device is select.\r
-#  For EFI boot, BDS will load boot loader file EFI\BOOT\BOOTIA32.EFI, EFI\BOOT\BOOTX64.EFI, \r
+#  For EFI boot, BDS will load boot loader file EFI\BOOT\BOOTIA32.EFI, EFI\BOOT\BOOTX64.EFI,\r
 #  EFI\BOOT\BOOTIA64.EFI file from selected boot device and transfer control to boot loader.\r
 #\r
 #  BDSDxe also maintain the UI for "Boot Manager, Boot Maintaince Manager, Device Manager" which\r
 #  is used for user to configure boot option or maintain hardware device.\r
-#  \r
+#\r
 #  Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 [Defines]\r
@@ -31,7 +31,7 @@
   MODULE_UNI_FILE                = BdsDxe.uni\r
   FILE_GUID                      = FC5C7020-1A48-4198-9BE2-EAD5ABC8CF2F\r
   MODULE_TYPE                    = DXE_DRIVER\r
-  VERSION_STRING                 = 1.0 \r
+  VERSION_STRING                 = 1.0\r
   ENTRY_POINT                    = BdsInitialize\r
 \r
 #\r
@@ -91,7 +91,7 @@
   MdeModulePkg/MdeModulePkg.dec\r
   IntelFrameworkPkg/IntelFrameworkPkg.dec\r
   IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec\r
-  \r
+\r
 [LibraryClasses]\r
   DevicePathLib\r
   BaseLib\r
   CapsuleLib\r
   PcdLib\r
   UefiHiiServicesLib\r
-  \r
+\r
 [Guids]\r
   ## SOMETIMES_PRODUCES ## Variable:L"BootXXXX"          # Boot option variable\r
   ## SOMETIMES_PRODUCES ## Variable:L"DriverXXXX"        # Driver load option.\r
   gEfiGraphicsOutputProtocolGuid                ## SOMETIMES_CONSUMES\r
   ## CONSUMES\r
   ## NOTIFY\r
-  gEfiSimpleTextInputExProtocolGuid             \r
+  gEfiSimpleTextInputExProtocolGuid\r
   gEfiHiiConfigAccessProtocolGuid               ## SOMETIMES_PRODUCES\r
   gEfiFormBrowser2ProtocolGuid                  ## CONSUMES\r
   gEfiSerialIoProtocolGuid                      ## SOMETIMES_CONSUMES\r
   ## CONSUMES\r
   ## PRODUCES\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdBootState\r
-  gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor   ## CONSUMES   \r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor   ## CONSUMES\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareRevision ## CONSUMES\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution  ## PRODUCES\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution    ## PRODUCES\r
   TRUE\r
 \r
 #\r
-# [BootMode] \r
+# [BootMode]\r
 #   FLASH_UPDATE    ## SOMETIMES_CONSUMES # Update Capsule Image\r
 #\r
 \r
index 5911c7b3058ad2c019d652fac20ec5d949f08754..06452af2edaf23facdc90c5c8b865889e58054b6 100644 (file)
@@ -4,23 +4,23 @@
 // When DxeCore dispatching all DXE driver, this module will produce architecture protocol\r
 // gEfiBdsArchProtocolGuid. After DxeCore finish dispatching, DxeCore will invoke Entry\r
 // interface of protocol gEfiBdsArchProtocolGuid, then BDS phase is entered.\r
-// \r
+//\r
 // Generally, this module take reposiblity to connect all necessary devices for platform boot,\r
 // these boot device path are hold in PlatformBdsLib library instance produced by platform.\r
 // For legacy boot, BDS will transfer control to legacy BIOS after legacy boot device is select.\r
 // For EFI boot, BDS will load boot loader file EFI\BOOT\BOOTIA32.EFI, EFI\BOOT\BOOTX64.EFI,\r
 // EFI\BOOT\BOOTIA64.EFI file from selected boot device and transfer control to boot loader.\r
-// \r
+//\r
 // BDSDxe also maintain the UI for "Boot Manager, Boot Maintaince Manager, Device Manager" which\r
 // is used for user to configure boot option or maintain hardware device.\r
 //\r
-// Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index b73cfead99c38e2cb2241c78d5cc0a4a50d59018..c5a3ba296784d02ed2a5231653d236ef3a4d2b87 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // BdsDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Boot Device Selection Core DXE Driver"\r
 \r
 \r
index 9c5a91b22d81af2b414eef549366aff23489664b..b9bbce6150bf94c0ab3dc178d224d13f071835da 100644 (file)
@@ -179,7 +179,7 @@ BdsBootDeviceSelect (
   BdsLibBuildOptionFromVar (&BootLists, L"BootOrder");\r
 \r
   //\r
-  // When we didn't have chance to build boot option variables in the first \r
+  // When we didn't have chance to build boot option variables in the first\r
   // full configuration boot (e.g.: Reset in the first page or in Device Manager),\r
   // we have no boot options in the following mini configuration boot.\r
   // Give the last chance to enumerate the boot options.\r
@@ -260,7 +260,7 @@ BdsBootDeviceSelect (
     // Restore to original mode before launching boot option.\r
     //\r
     BdsSetConsoleMode (FALSE);\r
-    \r
+\r
     //\r
     // All the driver options should have been processed since\r
     // now boot will be performed.\r
@@ -325,10 +325,10 @@ BdsBootDeviceSelect (
 \r
 /**\r
 \r
-  Validate input console variable data. \r
+  Validate input console variable data.\r
 \r
   If found the device path is not a valid device path, remove the variable.\r
-  \r
+\r
   @param VariableName             Input console variable name.\r
 \r
 **/\r
@@ -346,7 +346,7 @@ BdsFormalizeConsoleVariable (
                       &gEfiGlobalVariableGuid,\r
                       &VariableSize\r
                       );\r
-  if ((DevicePath != NULL) && !IsDevicePathValid (DevicePath, VariableSize)) { \r
+  if ((DevicePath != NULL) && !IsDevicePathValid (DevicePath, VariableSize)) {\r
     Status = gRT->SetVariable (\r
                     VariableName,\r
                     &gEfiGlobalVariableGuid,\r
@@ -363,15 +363,15 @@ BdsFormalizeConsoleVariable (
 \r
 /**\r
 \r
-  Formalize Bds global variables. \r
+  Formalize Bds global variables.\r
 \r
  1. For ConIn/ConOut/ConErr, if found the device path is not a valid device path, remove the variable.\r
- 2. For OsIndicationsSupported, Create a BS/RT/UINT64 variable to report caps \r
+ 2. For OsIndicationsSupported, Create a BS/RT/UINT64 variable to report caps\r
  3. Delete OsIndications variable if it is not NV/BS/RT UINT64\r
  Item 3 is used to solve case when OS corrupts OsIndications. Here simply delete this NV variable.\r
\r
+\r
 **/\r
-VOID \r
+VOID\r
 BdsFormalizeEfiGlobalVariable (\r
   VOID\r
   )\r
@@ -381,7 +381,7 @@ BdsFormalizeEfiGlobalVariable (
   UINT64     OsIndication;\r
   UINTN      DataSize;\r
   UINT32     Attributes;\r
-  \r
+\r
   //\r
   // Validate Console variable.\r
   //\r
@@ -604,15 +604,15 @@ BdsEntry (
                                  then EFI_INVALID_PARAMETER is returned.\r
   @param  VendorGuid             A unique identifier for the vendor.\r
   @param  Attributes             Attributes bitmask to set for the variable.\r
-  @param  DataSize               The size in bytes of the Data buffer. Unless the EFI_VARIABLE_APPEND_WRITE, \r
-                                 EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS, or \r
-                                 EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS attribute is set, a size of zero \r
-                                 causes the variable to be deleted. When the EFI_VARIABLE_APPEND_WRITE attribute is \r
-                                 set, then a SetVariable() call with a DataSize of zero will not cause any change to \r
-                                 the variable value (the timestamp associated with the variable may be updated however \r
-                                 even if no new data value is provided,see the description of the \r
-                                 EFI_VARIABLE_AUTHENTICATION_2 descriptor below. In this case the DataSize will not \r
-                                 be zero since the EFI_VARIABLE_AUTHENTICATION_2 descriptor will be populated). \r
+  @param  DataSize               The size in bytes of the Data buffer. Unless the EFI_VARIABLE_APPEND_WRITE,\r
+                                 EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS, or\r
+                                 EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS attribute is set, a size of zero\r
+                                 causes the variable to be deleted. When the EFI_VARIABLE_APPEND_WRITE attribute is\r
+                                 set, then a SetVariable() call with a DataSize of zero will not cause any change to\r
+                                 the variable value (the timestamp associated with the variable may be updated however\r
+                                 even if no new data value is provided,see the description of the\r
+                                 EFI_VARIABLE_AUTHENTICATION_2 descriptor below. In this case the DataSize will not\r
+                                 be zero since the EFI_VARIABLE_AUTHENTICATION_2 descriptor will be populated).\r
   @param  Data                   The contents for the variable.\r
 \r
   @retval EFI_SUCCESS            The firmware has successfully stored the variable and its data as\r
@@ -624,8 +624,8 @@ BdsEntry (
   @retval EFI_DEVICE_ERROR       The variable could not be retrieved due to a hardware error.\r
   @retval EFI_WRITE_PROTECTED    The variable in question is read-only.\r
   @retval EFI_WRITE_PROTECTED    The variable in question cannot be deleted.\r
-  @retval EFI_SECURITY_VIOLATION The variable could not be written due to EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS \r
-                                 or EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACESS being set, but the AuthInfo \r
+  @retval EFI_SECURITY_VIOLATION The variable could not be written due to EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS\r
+                                 or EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACESS being set, but the AuthInfo\r
                                  does NOT pass the validation check carried out by the firmware.\r
 \r
   @retval EFI_NOT_FOUND          The variable trying to be updated or deleted was not found.\r
index 2ef9cf13ebb8c9cf0a56a49bd8331f4bb83482af..f9ba0a7bc78320037caa010e3490249085f77ed2 100644 (file)
@@ -3,7 +3,7 @@
   and manage the legacy boot option, all legacy boot option is getting from\r
   the legacy BBS table.\r
 \r
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -53,9 +53,9 @@ OrderLegacyBootOption4SameType (
   UINTN                    BootOrderSize;\r
   UINTN                    Index;\r
   UINTN                    StartPosition;\r
-  \r
+\r
   BDS_COMMON_OPTION        *BootOption;\r
-  \r
+\r
   CHAR16                   OptionName[sizeof ("Boot####")];\r
   UINT16                   *BbsIndexArray;\r
   UINT16                   *DeviceTypeArray;\r
@@ -82,12 +82,12 @@ OrderLegacyBootOption4SameType (
   ASSERT (*DisBootOption != NULL);\r
 \r
   for (Index = 0; Index < BootOrderSize / sizeof (UINT16); Index++) {\r
-  \r
+\r
     UnicodeSPrint (OptionName, sizeof (OptionName), L"Boot%04x", BootOrder[Index]);\r
     InitializeListHead (&List);\r
     BootOption = BdsLibVariableToOption (&List, OptionName);\r
     ASSERT (BootOption != NULL);\r
-    \r
+\r
     if ((DevicePathType (BootOption->DevicePath) == BBS_DEVICE_PATH) &&\r
         (DevicePathSubType (BootOption->DevicePath) == BBS_BBS_DP)) {\r
       //\r
@@ -119,7 +119,7 @@ OrderLegacyBootOption4SameType (
       if (BbsIndexArray[Index] == (DevOrder[DevOrderCount] & 0xFF)) {\r
         StartPosition = MIN (StartPosition, Index);\r
         NewBootOption[DevOrderCount] = BootOrder[Index];\r
-        \r
+\r
         if ((DevOrder[DevOrderCount] & 0xFF00) == 0xFF00) {\r
           (*DisBootOption)[*DisBootOptionCount] = BootOrder[Index];\r
           (*DisBootOptionCount)++;\r
@@ -157,7 +157,7 @@ OrderLegacyBootOption4SameType (
 /**\r
   Group the legacy boot options in the BootOption.\r
 \r
-  The routine assumes the boot options in the beginning that covers all the device \r
+  The routine assumes the boot options in the beginning that covers all the device\r
   types are ordered properly and re-position the following boot options just after\r
   the corresponding boot options with the same device type.\r
   For example:\r
index e73dc859959cfbe275bb3bb7d34fe007446b815b..94833fff52217b50a77429fd34e85ba48a991b6d 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   declares interface functions\r
 \r
-Copyright (c) 2004 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -39,7 +39,7 @@ BdsBuildLegacyDevNameString (
 /**\r
   Group the legacy boot options in the BootOption.\r
 \r
-  The routine assumes the boot options in the beginning that covers all the device \r
+  The routine assumes the boot options in the beginning that covers all the device\r
   types are ordered properly and re-position the following boot options just after\r
   the corresponding boot options with the same device type.\r
   For example:\r
index 0d35c2c37e68fdb656d1bbc87fc09b8639eb3644..ae2979b59e8af7cd642243520549ec2101d9516f 100644 (file)
@@ -1,16 +1,16 @@
 ///** @file\r
-//  \r
+//\r
 //    Boot Maintenance Utility Formset\r
-//  \r
-//  Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+//\r
+//  Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //  This program and the accompanying materials\r
 //  are licensed and made available under the terms and conditions of the BSD License\r
 //  which accompanies this distribution.  The full text of the license may be found at\r
 //  http://opensource.org/licenses/bsd-license.php\r
-//  \r
+//\r
 //  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 //  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-//  \r
+//\r
 //**/\r
 \r
 #include "FormGuid.h"\r
@@ -114,9 +114,9 @@ formset
 \r
        subtitle text = STRING_TOKEN(STR_NULL_STRING);\r
            //\r
-          // We will add "Select Legacy Boot Floppy Drive" and "Select Legacy Boot Hard Drive"\r
-          // here dynamically\r
-          //\r
+     // We will add "Select Legacy Boot Floppy Drive" and "Select Legacy Boot Hard Drive"\r
+     // here dynamically\r
+     //\r
        label FORM_BOOT_LEGACY_DEVICE_ID;\r
        label LABEL_END;\r
 \r
index 4424831859bdcfadae5efa233f048a3f5924f680..d27113c01544588f655a1d84fe82f45b2d699aa7 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Utility routines used by boot maintenance modules.\r
 \r
-Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -146,7 +146,7 @@ EfiLibGetVariable (
 \r
   @param VarName           A Null-terminated Unicode string that is\r
                            the name of the vendor's variable.\r
-                         \r
+\r
   @param VarGuid           A unique identifier for the vendor.\r
 \r
   @retval  EFI_SUCCESS           The variable was found and removed\r
@@ -361,7 +361,7 @@ EfiReallocatePool (
 }\r
 \r
 /**\r
-  Get a string from the Data Hub record based on \r
+  Get a string from the Data Hub record based on\r
   a device path.\r
 \r
   @param DevPath         The device Path.\r
index 6066549049d0213fbde2038ad2cacf347638a022..ca99ad06e3c4b6b21703ab9b12f4265f4093f759 100644 (file)
@@ -1,16 +1,16 @@
 ///** @file\r
-//  \r
+//\r
 //    String definitions for Boot Maintenance Utility.\r
-//  \r
-//  Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+//\r
+//  Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //  This program and the accompanying materials\r
 //  are licensed and made available under the terms and conditions of the BSD License\r
 //  which accompanies this distribution.  The full text of the license may be found at\r
 //  http://opensource.org/licenses/bsd-license.php\r
-//  \r
+//\r
 //  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 //  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-//  \r
+//\r
 //**/\r
 \r
 /=#\r
index d5ea0f45770556c1f854412985055f9e39d489e6..187e37ddc79eedc1b5d31f92744baccfdd093e96 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The functions for Boot Maintainence Main menu.\r
 \r
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -43,7 +43,7 @@ HII_VENDOR_DEVICE_PATH  mBmmHiiVendorDevicePath = {
   {\r
     END_DEVICE_PATH_TYPE,\r
     END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
-    { \r
+    {\r
       (UINT8) (END_DEVICE_PATH_LENGTH),\r
       (UINT8) ((END_DEVICE_PATH_LENGTH) >> 8)\r
     }\r
@@ -65,7 +65,7 @@ HII_VENDOR_DEVICE_PATH  mFeHiiVendorDevicePath = {
   {\r
     END_DEVICE_PATH_TYPE,\r
     END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
-    { \r
+    {\r
       (UINT8) (END_DEVICE_PATH_LENGTH),\r
       (UINT8) ((END_DEVICE_PATH_LENGTH) >> 8)\r
     }\r
@@ -143,8 +143,8 @@ InitializeBmmConfig (
 \r
   //\r
   // Initialize data which located in Console Options Menu\r
-  //  \r
-  GetConsoleOutMode (CallbackData);  \r
+  //\r
+  GetConsoleOutMode (CallbackData);\r
   GetConsoleInCheck (CallbackData);\r
   GetConsoleOutCheck (CallbackData);\r
   GetConsoleErrCheck (CallbackData);\r
@@ -314,7 +314,7 @@ BootMaintExtractConfig (
 \r
   @param[in]  This                Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL.\r
   @param[in]  Configuration       A null-terminated Unicode string in\r
-                                  <ConfigString> format.   \r
+                                  <ConfigString> format.\r
   @param[out] Progress            A pointer to a string filled in with the\r
                                   offset of the most recent '&' before the\r
                                   first failing name / value pair (or the\r
@@ -324,7 +324,7 @@ BootMaintExtractConfig (
                                   successful.\r
 \r
   @retval EFI_SUCCESS             The results have been distributed or are\r
-                                  awaiting distribution.  \r
+                                  awaiting distribution.\r
   @retval EFI_OUT_OF_RESOURCES    Not enough memory to store the\r
                                   parts of the results that must be\r
                                   stored awaiting possible future\r
@@ -352,9 +352,9 @@ BootMaintRouteConfig (
   BM_TERMINAL_CONTEXT             *NewTerminalContext;\r
   BM_MENU_ENTRY                   *NewMenuEntry;\r
   BM_LOAD_CONTEXT                 *NewLoadContext;\r
-  UINT16                          Index;  \r
+  UINT16                          Index;\r
   BOOLEAN                         TerminalAttChange;\r
-  BMM_CALLBACK_DATA               *Private;  \r
+  BMM_CALLBACK_DATA               *Private;\r
 \r
   if (Progress == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
@@ -374,8 +374,8 @@ BootMaintRouteConfig (
   }\r
 \r
   Status = gBS->LocateProtocol (\r
-                  &gEfiHiiConfigRoutingProtocolGuid, \r
-                  NULL, \r
+                  &gEfiHiiConfigRoutingProtocolGuid,\r
+                  NULL,\r
                   (VOID**) &ConfigRouting\r
                   );\r
   if (EFI_ERROR (Status)) {\r
@@ -401,7 +401,7 @@ BootMaintRouteConfig (
                             );\r
   ASSERT_EFI_ERROR (Status);\r
   //\r
-  // Compare new and old BMM configuration data and only do action for modified item to \r
+  // Compare new and old BMM configuration data and only do action for modified item to\r
   // avoid setting unnecessary non-volatile variable\r
   //\r
 \r
@@ -429,27 +429,27 @@ BootMaintRouteConfig (
   }\r
 \r
   //\r
-  // Change for "delete boot option" page need update NewBmmData->BootOptionOrder, so process \r
+  // Change for "delete boot option" page need update NewBmmData->BootOptionOrder, so process\r
   // NewBmmData->BootOptionOrder before NewBmmData->BootOptionDel\r
   //\r
-  if (CompareMem (NewBmmData->BootOptionOrder, OldBmmData->BootOptionOrder, sizeof (NewBmmData->BootOptionOrder)) != 0) {  \r
+  if (CompareMem (NewBmmData->BootOptionOrder, OldBmmData->BootOptionOrder, sizeof (NewBmmData->BootOptionOrder)) != 0) {\r
     Status = Var_UpdateBootOrder (Private);\r
   }\r
 \r
   //\r
-  // Change for "delete driver option" page need update NewBmmData->DriverOptionOrder, so process \r
+  // Change for "delete driver option" page need update NewBmmData->DriverOptionOrder, so process\r
   // NewBmmData->DriverOptionOrder before NewBmmData->DriverOptionDel\r
   //\r
-  if (CompareMem (NewBmmData->DriverOptionOrder, OldBmmData->DriverOptionOrder, sizeof (NewBmmData->DriverOptionOrder)) != 0) {  \r
+  if (CompareMem (NewBmmData->DriverOptionOrder, OldBmmData->DriverOptionOrder, sizeof (NewBmmData->DriverOptionOrder)) != 0) {\r
     Status = Var_UpdateDriverOrder (Private);\r
   }\r
 \r
   //\r
   // Check data which located in Boot Options Menu and save the settings if need\r
   //\r
-  if (CompareMem (NewBmmData->BootOptionDel, OldBmmData->BootOptionDel, sizeof (NewBmmData->BootOptionDel)) != 0) {  \r
-    for (Index = 0; \r
-         ((Index < BootOptionMenu.MenuNumber) && (Index < (sizeof (NewBmmData->BootOptionDel) / sizeof (NewBmmData->BootOptionDel[0])))); \r
+  if (CompareMem (NewBmmData->BootOptionDel, OldBmmData->BootOptionDel, sizeof (NewBmmData->BootOptionDel)) != 0) {\r
+    for (Index = 0;\r
+         ((Index < BootOptionMenu.MenuNumber) && (Index < (sizeof (NewBmmData->BootOptionDel) / sizeof (NewBmmData->BootOptionDel[0]))));\r
          Index ++) {\r
       NewMenuEntry            = BOpt_GetMenuEntry (&BootOptionMenu, Index);\r
       NewLoadContext          = (BM_LOAD_CONTEXT *) NewMenuEntry->VariableContext;\r
@@ -464,9 +464,9 @@ BootMaintRouteConfig (
   //\r
   // Check data which located in Driver Options Menu and save the settings if need\r
   //\r
-  if (CompareMem (NewBmmData->DriverOptionDel, OldBmmData->DriverOptionDel, sizeof (NewBmmData->DriverOptionDel)) != 0) {       \r
-    for (Index = 0; \r
-         ((Index < DriverOptionMenu.MenuNumber) && (Index < (sizeof (NewBmmData->DriverOptionDel) / sizeof (NewBmmData->DriverOptionDel[0])))); \r
+  if (CompareMem (NewBmmData->DriverOptionDel, OldBmmData->DriverOptionDel, sizeof (NewBmmData->DriverOptionDel)) != 0) {\r
+    for (Index = 0;\r
+         ((Index < DriverOptionMenu.MenuNumber) && (Index < (sizeof (NewBmmData->DriverOptionDel) / sizeof (NewBmmData->DriverOptionDel[0]))));\r
          Index++) {\r
       NewMenuEntry            = BOpt_GetMenuEntry (&DriverOptionMenu, Index);\r
       NewLoadContext          = (BM_LOAD_CONTEXT *) NewMenuEntry->VariableContext;\r
@@ -490,14 +490,14 @@ BootMaintRouteConfig (
     //\r
     // Bugbug: code not exit in UiApp but in IntelFrameworkModulePkg, need do more check.\r
     //\r
-    Private->BmmOldFakeNVData.BootTimeOut = NewBmmData->BootTimeOut; \r
+    Private->BmmOldFakeNVData.BootTimeOut = NewBmmData->BootTimeOut;\r
   }\r
 \r
   if (CompareMem (&NewBmmData->BootNext, &OldBmmData->BootNext, sizeof (NewBmmData->BootNext)) != 0) {\r
     Status = Var_UpdateBootNext (Private);\r
   }\r
 \r
-  if (CompareMem (&NewBmmData->ConsoleOutMode, &OldBmmData->ConsoleOutMode, sizeof (NewBmmData->ConsoleOutMode)) != 0) {  \r
+  if (CompareMem (&NewBmmData->ConsoleOutMode, &OldBmmData->ConsoleOutMode, sizeof (NewBmmData->ConsoleOutMode)) != 0) {\r
     Var_UpdateConMode (Private);\r
   }\r
 \r
@@ -570,7 +570,7 @@ BootMaintRouteConfig (
     Var_UpdateConsoleOutOption ();\r
   }\r
 \r
-  if (CompareMem (NewBmmData->ConsoleErrCheck, OldBmmData->ConsoleErrCheck, sizeof (NewBmmData->ConsoleErrCheck)) != 0) {  \r
+  if (CompareMem (NewBmmData->ConsoleErrCheck, OldBmmData->ConsoleErrCheck, sizeof (NewBmmData->ConsoleErrCheck)) != 0) {\r
     for (Index = 0; Index < ConsoleErrMenu.MenuNumber; Index++) {\r
       NewMenuEntry                = BOpt_GetMenuEntry (&ConsoleErrMenu, Index);\r
       NewConsoleContext           = (BM_CONSOLE_CONTEXT *) NewMenuEntry->VariableContext;\r
@@ -600,7 +600,7 @@ InitializeLegacyBootOption (
 {\r
   RefreshUpdateData ();\r
   mStartLabel->Number = FORM_BOOT_LEGACY_DEVICE_ID;\r
-  \r
+\r
   //\r
   // If LegacyBios Protocol is installed, add 3 tags about legacy boot option\r
   // in BootOption form: legacy FD/HD/CD/NET/BEV\r
@@ -649,7 +649,7 @@ InitializeLegacyBootOption (
     EFI_IFR_FLAG_CALLBACK,\r
     FORM_SET_BEV_ORDER_ID\r
     );\r
-  \r
+\r
   HiiUpdateForm (\r
     mBmmCallbackInfo->BmmHiiHandle,\r
     &gBootMaintFormSetGuid,\r
@@ -657,7 +657,7 @@ InitializeLegacyBootOption (
     mStartOpCodeHandle, // Label FORM_BOOT_LEGACY_DEVICE_ID\r
     mEndOpCodeHandle    // LABEL_END\r
     );\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -700,7 +700,7 @@ BootMaintCallback (
   UINTN             Pos;\r
   UINTN             Bit;\r
   UINT16            NewValuePos;\r
-  UINT16            Index3;  \r
+  UINT16            Index3;\r
   UINT16            Index2;\r
   UINT16            Index;\r
   UINT8             *OldLegacyDev;\r
@@ -717,17 +717,17 @@ BootMaintCallback (
     if (!EFI_ERROR (Status)) {\r
       InitializeLegacyBootOption ();\r
     }\r
-    \r
+\r
     return EFI_SUCCESS;\r
   }\r
 \r
-  if (Action != EFI_BROWSER_ACTION_CHANGING && Action != EFI_BROWSER_ACTION_CHANGED) {    \r
+  if (Action != EFI_BROWSER_ACTION_CHANGING && Action != EFI_BROWSER_ACTION_CHANGED) {\r
     //\r
     // All other action return unsupported.\r
     //\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   Status       = EFI_SUCCESS;\r
   OldValue     = 0;\r
   NewValue     = 0;\r
@@ -747,7 +747,7 @@ BootMaintCallback (
     if (Value == NULL) {\r
       return EFI_INVALID_PARAMETER;\r
     }\r
-    \r
+\r
     UpdatePageId (Private, QuestionId);\r
 \r
     if (QuestionId < FILE_OPTION_OFFSET) {\r
@@ -1021,7 +1021,7 @@ BootMaintCallback (
         //\r
         DiscardChangeHandler (Private, CurrentFakeNVMap);\r
         *ActionRequest = EFI_BROWSER_ACTION_REQUEST_FORM_DISCARD_EXIT;\r
-        break;  \r
+        break;\r
 \r
       case FORM_RESET:\r
         gRT->ResetSystem (EfiResetCold, EFI_SUCCESS, 0, NULL);\r
@@ -1121,7 +1121,7 @@ InitializeBM (
   UINT8                       *Data;\r
 \r
   Status = EFI_SUCCESS;\r
-  BmmCallbackInfo = mBmmCallbackInfo;  \r
+  BmmCallbackInfo = mBmmCallbackInfo;\r
 \r
   BmmCallbackInfo->BmmPreviousPageId             = FORM_MAIN_ID;\r
   BmmCallbackInfo->BmmCurrentPageId              = FORM_MAIN_ID;\r
@@ -1131,17 +1131,17 @@ InitializeBM (
   //\r
   // Reinstall String packages to include more new strings.\r
   //\r
-  \r
+\r
   //\r
   // String package size\r
   //\r
   Length = ReadUnaligned32 ((UINT32 *) BdsDxeStrings) - sizeof (UINT32);\r
 \r
   //\r
-  // Add the length of the Package List Header and the terminating Package Header \r
+  // Add the length of the Package List Header and the terminating Package Header\r
   //\r
   Length += sizeof (EFI_HII_PACKAGE_LIST_HEADER) + sizeof (EFI_HII_PACKAGE_HEADER);\r
-  \r
+\r
   //\r
   // Allocate the storage for the entire Package List\r
   //\r
@@ -1160,12 +1160,12 @@ InitializeBM (
   PackageListHeader->PackageLength = Length;\r
 \r
   //\r
-  // Copy String Data into Package list. \r
+  // Copy String Data into Package list.\r
   //\r
   Data = (UINT8 *)(PackageListHeader + 1);\r
   Length = ReadUnaligned32 ((UINT32 *) BdsDxeStrings) - sizeof (UINT32);\r
   CopyMem (Data, (UINT8 *) BdsDxeStrings + sizeof (UINT32), Length);\r
-  \r
+\r
   //\r
   // Add End type HII package.\r
   //\r
@@ -1178,13 +1178,13 @@ InitializeBM (
   //\r
   CopyGuid (&PackageListHeader->PackageListGuid, &gBootMaintFormSetGuid);\r
   Status = gHiiDatabase->UpdatePackageList (gHiiDatabase, BmmCallbackInfo->BmmHiiHandle, PackageListHeader);\r
-  \r
+\r
   //\r
   // Update String package for FE.\r
   //\r
   CopyGuid (&PackageListHeader->PackageListGuid, &gFileExploreFormSetGuid);\r
   Status = gHiiDatabase->UpdatePackageList (gHiiDatabase, BmmCallbackInfo->FeHiiHandle, PackageListHeader);\r
-  \r
+\r
   FreePool (PackageListHeader);\r
 \r
   //\r
@@ -1226,7 +1226,7 @@ InitializeBM (
   CreateMenuStringToken (BmmCallbackInfo, BmmCallbackInfo->BmmHiiHandle, &DriverOptionMenu);\r
   CreateMenuStringToken (BmmCallbackInfo, BmmCallbackInfo->BmmHiiHandle, &TerminalMenu);\r
   CreateMenuStringToken (BmmCallbackInfo, BmmCallbackInfo->BmmHiiHandle, &DriverMenu);\r
-  \r
+\r
   InitializeBmmConfig (BmmCallbackInfo);\r
 \r
   //\r
@@ -1238,7 +1238,7 @@ InitializeBM (
   // Clean up.\r
   //\r
   CleanUpStringDepository ();\r
-  \r
+\r
   FreeAllMenu ();\r
 \r
 Exit:\r
@@ -1544,7 +1544,7 @@ InitBMPackage (
   BMM_CALLBACK_DATA           *BmmCallbackInfo;\r
   EFI_STATUS                  Status;\r
   UINT8                       *Ptr;\r
-  \r
+\r
   //\r
   // Create CallbackData structures for Driver Callback\r
   //\r
@@ -1552,7 +1552,7 @@ InitBMPackage (
   if (BmmCallbackInfo == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
-  \r
+\r
   //\r
   // Create LoadOption in BmmCallbackInfo for Driver Callback\r
   //\r
@@ -1633,10 +1633,10 @@ InitBMPackage (
                                    NULL\r
                                    );\r
   ASSERT (BmmCallbackInfo->FeHiiHandle != NULL);\r
-  \r
+\r
   mBmmCallbackInfo = BmmCallbackInfo;\r
-  \r
-  return EFI_SUCCESS; \r
+\r
+  return EFI_SUCCESS;\r
 }\r
 \r
 /**\r
@@ -1683,8 +1683,8 @@ FreeBMPackage (
   FreePool (BmmCallbackInfo->LoadContext);\r
   FreePool (BmmCallbackInfo);\r
 \r
-  mBmmCallbackInfo = NULL; \r
-  \r
+  mBmmCallbackInfo = NULL;\r
+\r
   return;\r
 }\r
 \r
index 098692fa53e3e44d7fb88b0e4e1368911069a678..bdd22c8e7513e2b2d160c57622fd05c6db6981dc 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Header file for boot maintenance module.\r
 \r
-Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -473,7 +473,7 @@ BOpt_GetBootOptions (
 \r
   @return EFI_SUCESS The functin completes successfully.\r
   @retval EFI_OUT_OF_RESOURCES Not enough memory to compete the operation.\r
-  \r
+\r
 \r
 **/\r
 EFI_STATUS\r
@@ -717,11 +717,11 @@ ChangeVariableDevicePath (
 \r
 /**\r
   Update the multi-instance device path of Terminal Device based on\r
-  the global TerminalMenu. If ChangeTernimal is TRUE, the terminal \r
+  the global TerminalMenu. If ChangeTernimal is TRUE, the terminal\r
   device path in the Terminal Device in TerminalMenu is also updated.\r
 \r
   @param DevicePath      The multi-instance device path.\r
-  @param ChangeTerminal  TRUE, then device path in the Terminal Device \r
+  @param ChangeTerminal  TRUE, then device path in the Terminal Device\r
                          in TerminalMenu is also updated; FALSE, no update.\r
 \r
   @return EFI_SUCCESS    The function completes successfully.\r
@@ -737,8 +737,8 @@ ChangeTerminalDevicePath (
 // Variable operation by menu selection\r
 //\r
 /**\r
-  This function create a currently loaded Boot Option from \r
-  the BMM. It then appends this Boot Option to the end of \r
+  This function create a currently loaded Boot Option from\r
+  the BMM. It then appends this Boot Option to the end of\r
   the "BootOrder" list. It also append this Boot Opotion to the end\r
   of BootOptionMenu.\r
 \r
@@ -760,9 +760,9 @@ Var_UpdateBootOption (
   After deleting this boot option, call Var_ChangeBootOrder to\r
   make sure BootOrder is in valid state.\r
 \r
-  @retval EFI_SUCCESS   If all boot load option EFI Variables corresponding to  \r
+  @retval EFI_SUCCESS   If all boot load option EFI Variables corresponding to\r
                         BM_LOAD_CONTEXT marked for deletion is deleted\r
-  @return Others        If failed to update the "BootOrder" variable after deletion. \r
+  @return Others        If failed to update the "BootOrder" variable after deletion.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -786,8 +786,8 @@ Var_ChangeBootOrder (
   );\r
 \r
 /**\r
-  This function create a currently loaded Drive Option from \r
-  the BMM. It then appends this Driver Option to the end of \r
+  This function create a currently loaded Drive Option from\r
+  the BMM. It then appends this Driver Option to the end of\r
   the "DriverOrder" list. It append this Driver Opotion to the end\r
   of DriverOptionMenu.\r
 \r
@@ -876,7 +876,7 @@ Var_UpdateErrorOutOption (
   );\r
 \r
 /**\r
-  Update the device path of "ConOut", "ConIn" and "ErrOut" based on the new BaudRate, Data Bits, \r
+  Update the device path of "ConOut", "ConIn" and "ErrOut" based on the new BaudRate, Data Bits,\r
   parity and stop Bits set.\r
 \r
 **/\r
@@ -886,7 +886,7 @@ Var_UpdateAllConsoleOption (
   );\r
 \r
 /**\r
-  This function update the "BootNext" EFI Variable. If there is no "BootNex" specified in BMM, \r
+  This function update the "BootNext" EFI Variable. If there is no "BootNex" specified in BMM,\r
   this EFI Variable is deleted.\r
   It also update the BMM context data specified the "BootNext" value.\r
 \r
@@ -902,7 +902,7 @@ Var_UpdateBootNext (
   );\r
 \r
 /**\r
-  This function update the "BootOrder" EFI Variable based on BMM Formset's NV map. It then refresh \r
+  This function update the "BootOrder" EFI Variable based on BMM Formset's NV map. It then refresh\r
   BootOptionMenu with the new "BootOrder" list.\r
 \r
   @param CallbackData           The BMM context data.\r
@@ -980,7 +980,7 @@ RefreshUpdateData (
 \r
 /**\r
   Clean up the dynamic opcode at label and form specified by\r
-  both LabelId. \r
+  both LabelId.\r
 \r
   @param LabelId         It is both the Form ID and Label ID for\r
                          opcode deletion.\r
@@ -1177,7 +1177,7 @@ EfiReallocatePool (
 \r
   @param VarName            A Null-terminated Unicode string that is\r
                             the name of the vendor's variable.\r
-                         \r
+\r
   @param VarGuid            A unique identifier for the vendor.\r
 \r
   @retval  EFI_SUCCESS           The variable was found and removed\r
@@ -1242,7 +1242,7 @@ CreateMenuStringToken (
   );\r
 \r
 /**\r
-  Get a string from the Data Hub record based on \r
+  Get a string from the Data Hub record based on\r
   a device path.\r
 \r
   @param DevPath         The device Path.\r
@@ -1450,7 +1450,7 @@ FileExplorerCallback (
 \r
   @param[in]  This                Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL.\r
   @param[in]  Configuration       A null-terminated Unicode string in\r
-                                  <ConfigString> format.   \r
+                                  <ConfigString> format.\r
   @param[out] Progress            A pointer to a string filled in with the\r
                                   offset of the most recent '&' before the\r
                                   first failing name / value pair (or the\r
@@ -1460,7 +1460,7 @@ FileExplorerCallback (
                                   successful.\r
 \r
   @retval EFI_SUCCESS             The results have been distributed or are\r
-                                  awaiting distribution.  \r
+                                  awaiting distribution.\r
   @retval EFI_OUT_OF_RESOURCES    Not enough memory to store the\r
                                   parts of the results that must be\r
                                   stored awaiting possible future\r
@@ -1513,12 +1513,12 @@ EfiLibGetVariable (
   );\r
 \r
 /**\r
-  Get option number according to Boot#### and BootOrder variable. \r
+  Get option number according to Boot#### and BootOrder variable.\r
   The value is saved as #### + 1.\r
 \r
   @param CallbackData    The BMM context data.\r
 **/\r
-VOID  \r
+VOID\r
 GetBootOrder (\r
   IN  BMM_CALLBACK_DATA    *CallbackData\r
   );\r
@@ -1527,9 +1527,9 @@ GetBootOrder (
   Get driver option order from globalc DriverOptionMenu.\r
 \r
   @param CallbackData    The BMM context data.\r
-  \r
+\r
 **/\r
-VOID  \r
+VOID\r
 GetDriverOrder (\r
   IN  BMM_CALLBACK_DATA    *CallbackData\r
   );\r
@@ -1562,7 +1562,7 @@ VOID
 GetLegacyDeviceOrder (\r
   IN  BMM_CALLBACK_DATA    *CallbackData\r
   );\r
-  \r
+\r
 /**\r
 \r
   Initialize console input device check box to ConsoleInCheck[MAX_MENU_NUMBER]\r
@@ -1570,12 +1570,12 @@ GetLegacyDeviceOrder (
 \r
   @param CallbackData    The BMM context data.\r
 \r
-**/  \r
-VOID  \r
+**/\r
+VOID\r
 GetConsoleInCheck (\r
   IN  BMM_CALLBACK_DATA    *CallbackData\r
   );\r
-  \r
+\r
 /**\r
 \r
   Initialize console output device check box to ConsoleOutCheck[MAX_MENU_NUMBER]\r
@@ -1583,8 +1583,8 @@ GetConsoleInCheck (
 \r
   @param CallbackData    The BMM context data.\r
 \r
-**/      \r
-VOID    \r
+**/\r
+VOID\r
 GetConsoleOutCheck (\r
   IN  BMM_CALLBACK_DATA    *CallbackData\r
   );\r
@@ -1596,8 +1596,8 @@ GetConsoleOutCheck (
 \r
   @param CallbackData    The BMM context data.\r
 \r
-**/        \r
-VOID  \r
+**/\r
+VOID\r
 GetConsoleErrCheck (\r
   IN  BMM_CALLBACK_DATA    *CallbackData\r
   );\r
@@ -1609,8 +1609,8 @@ GetConsoleErrCheck (
 \r
   @param CallbackData    The BMM context data.\r
 \r
-**/        \r
-VOID  \r
+**/\r
+VOID\r
 GetTerminalAttribute (\r
   IN  BMM_CALLBACK_DATA    *CallbackData\r
   );\r
index 6233a1145a1a06fe0977d99cbea4e1f50b4076ab..895f13f21435a7eddc080330e0499782d32576f1 100644 (file)
@@ -5,7 +5,7 @@
 \r
   Boot option manipulation\r
 \r
-Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -872,7 +872,7 @@ BOpt_GetBootOptions (
   EFI_DEVICE_PATH_PROTOCOL  *DevicePath;\r
   UINTN                     MenuCount;\r
   UINT8                     *Ptr;\r
-  \r
+\r
   MenuCount         = 0;\r
   BootOrderListSize = 0;\r
   BootNextSize      = 0;\r
@@ -893,7 +893,7 @@ BOpt_GetBootOptions (
   if (BootOrderList == NULL) {\r
     return EFI_NOT_FOUND;\r
   }\r
-  \r
+\r
   //\r
   // Get the BootNext from the Var\r
   //\r
@@ -1007,7 +1007,7 @@ BOpt_GetBootOptions (
 \r
     NewLoadContext->FilePathListLength = *(UINT16 *) LoadOptionPtr;\r
     LoadOptionPtr += sizeof (UINT16);\r
-    \r
+\r
     StringSize = StrSize((UINT16*)LoadOptionPtr);\r
 \r
     NewLoadContext->Description = AllocateCopyPool (StrSize((UINT16*)LoadOptionPtr), LoadOptionPtr);\r
@@ -1099,7 +1099,7 @@ BOpt_AppendFileName (
   Str   = AllocateZeroPool (MaxLen * sizeof (CHAR16));\r
   ASSERT (Str != NULL);\r
 \r
-  TmpStr = AllocateZeroPool (MaxLen * sizeof (CHAR16)); \r
+  TmpStr = AllocateZeroPool (MaxLen * sizeof (CHAR16));\r
   ASSERT (TmpStr != NULL);\r
 \r
   StrCatS (Str, MaxLen, Str1);\r
@@ -1120,7 +1120,7 @@ BOpt_AppendFileName (
       //\r
 \r
       //\r
-      // Use TmpStr as a backup, as StrCpyS in BaseLib does not handle copy of two strings \r
+      // Use TmpStr as a backup, as StrCpyS in BaseLib does not handle copy of two strings\r
       // that overlap.\r
       //\r
       StrCpyS (TmpStr, MaxLen, Ptr + 3);\r
@@ -1132,7 +1132,7 @@ BOpt_AppendFileName (
       //\r
 \r
       //\r
-      // Use TmpStr as a backup, as StrCpyS in BaseLib does not handle copy of two strings \r
+      // Use TmpStr as a backup, as StrCpyS in BaseLib does not handle copy of two strings\r
       // that overlap.\r
       //\r
       StrCpyS (TmpStr, MaxLen, Ptr + 2);\r
@@ -1146,7 +1146,7 @@ BOpt_AppendFileName (
   }\r
 \r
   FreePool (TmpStr);\r
-  \r
+\r
   return Str;\r
 }\r
 \r
@@ -1497,7 +1497,7 @@ BOpt_GetDriverOptions (
   if (DriverOrderList == NULL) {\r
     return EFI_NOT_FOUND;\r
   }\r
-  \r
+\r
   for (Index = 0; Index < DriverOrderListSize / sizeof (UINT16); Index++) {\r
     UnicodeSPrint (\r
       DriverString,\r
@@ -1676,20 +1676,20 @@ GetLegacyDeviceOrder (
   UINTN                     Index;\r
   UINTN                     OptionIndex;\r
   UINT16                    PageIdList[5];\r
-  UINTN                     PageNum;  \r
+  UINTN                     PageNum;\r
   UINTN                     VarSize;\r
-  UINT8                     *VarData;     \r
-  UINT8                     *WorkingVarData; \r
+  UINT8                     *VarData;\r
+  UINT8                     *WorkingVarData;\r
   LEGACY_DEV_ORDER_ENTRY    *DevOrder;\r
-  UINT16                    VarDevOrder;  \r
-  UINT8                     *DisMap;  \r
+  UINT16                    VarDevOrder;\r
+  UINT8                     *DisMap;\r
   BM_MENU_OPTION            *OptionMenu;\r
   BBS_TYPE                  BbsType;\r
   UINT8                     *LegacyOrder;\r
-  UINT8                     *OldData;  \r
+  UINT8                     *OldData;\r
   UINTN                     Pos;\r
   UINTN                     Bit;\r
-  \r
+\r
   ASSERT (CallbackData != NULL);\r
 \r
   PageIdList[0] = FORM_SET_FD_ORDER_ID;\r
@@ -1711,7 +1711,7 @@ GetLegacyDeviceOrder (
 \r
   for (Index = 0; Index < PageNum; Index++) {\r
     switch (PageIdList[Index]) {\r
-      \r
+\r
     case FORM_SET_FD_ORDER_ID:\r
       OptionMenu  = (BM_MENU_OPTION *) &LegacyFDMenu;\r
       BbsType     = BBS_FLOPPY;\r
@@ -1725,14 +1725,14 @@ GetLegacyDeviceOrder (
       LegacyOrder = CallbackData->BmmFakeNvData.LegacyHD;\r
       OldData     = CallbackData->BmmOldFakeNVData.LegacyHD;\r
       break;\r
-    \r
+\r
     case FORM_SET_CD_ORDER_ID:\r
       OptionMenu  = (BM_MENU_OPTION *) &LegacyCDMenu;\r
       BbsType     = BBS_CDROM;\r
       LegacyOrder = CallbackData->BmmFakeNvData.LegacyCD;\r
       OldData     = CallbackData->BmmOldFakeNVData.LegacyCD;\r
       break;\r
-    \r
+\r
     case FORM_SET_NET_ORDER_ID:\r
       OptionMenu  = (BM_MENU_OPTION *) &LegacyNETMenu;\r
       BbsType     = BBS_EMBED_NETWORK;\r
@@ -1748,7 +1748,7 @@ GetLegacyDeviceOrder (
       OldData     = CallbackData->BmmOldFakeNVData.LegacyBEV;\r
       break;\r
     }\r
-    \r
+\r
     if (NULL != VarData) {\r
       WorkingVarData = VarData;\r
       DevOrder    = (LEGACY_DEV_ORDER_ENTRY *) WorkingVarData;\r
@@ -1756,11 +1756,11 @@ GetLegacyDeviceOrder (
         if (DevOrder->BbsType == BbsType) {\r
           break;\r
         }\r
-    \r
+\r
         WorkingVarData  = (UINT8 *)((UINTN)WorkingVarData + sizeof (BBS_TYPE));\r
         WorkingVarData += *(UINT16 *) WorkingVarData;\r
         DevOrder = (LEGACY_DEV_ORDER_ENTRY *) WorkingVarData;\r
-      } \r
+      }\r
       for (OptionIndex = 0; OptionIndex < OptionMenu->MenuNumber; OptionIndex++) {\r
         VarDevOrder = *(UINT16 *) ((UINTN) DevOrder + sizeof (BBS_TYPE) + sizeof (UINT16) + OptionIndex * sizeof (UINT16));\r
          if (0xFF00 == (VarDevOrder & 0xFF00)) {\r
@@ -1771,17 +1771,17 @@ GetLegacyDeviceOrder (
         } else {\r
           LegacyOrder[OptionIndex] = (UINT8) (VarDevOrder & 0xFF);\r
         }\r
-      } \r
+      }\r
       CopyMem (OldData, LegacyOrder, 100);\r
     }\r
-  }  \r
+  }\r
 }\r
 \r
 /**\r
   Get driver option order from globalc DriverOptionMenu.\r
 \r
   @param CallbackData    The BMM context data.\r
-  \r
+\r
 **/\r
 VOID\r
 GetDriverOrder (\r
index 126feeb9ae51dbb2d2264a9017321e3c530a8830..964d8850efe5026cb994803aa97c1f2de47bd299 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   handles console redirection from boot manager\r
 \r
-Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -32,7 +32,7 @@ UART_FLOW_CONTROL_DEVICE_PATH mFlowControlDevicePath =
   Check the device path node whether it's the Flow Control node or not.\r
 \r
   @param[in] FlowControl    The device path node to be checked.\r
-  \r
+\r
   @retval TRUE              It's the Flow Control node.\r
   @retval FALSE             It's not.\r
 \r
@@ -85,11 +85,11 @@ UpdateComAttributeFromVariable (
 \r
 /**\r
   Update the multi-instance device path of Terminal Device based on\r
-  the global TerminalMenu. If ChangeTernimal is TRUE, the terminal \r
+  the global TerminalMenu. If ChangeTernimal is TRUE, the terminal\r
   device path in the Terminal Device in TerminalMenu is also updated.\r
 \r
   @param DevicePath      The multi-instance device path.\r
-  @param ChangeTerminal  TRUE, then device path in the Terminal Device \r
+  @param ChangeTerminal  TRUE, then device path in the Terminal Device\r
                          in TerminalMenu is also updated; FALSE, no update.\r
 \r
   @return EFI_SUCCESS    The function completes successfully.\r
@@ -760,7 +760,7 @@ UpdateComAttributeFromVariable (
                          and BM_CONSOLE_ERR_CONTEXT_SELECT.\r
 \r
   @retval EFI_UNSUPPORTED The type passed in is not in the 3 types defined.\r
-  @retval EFI_NOT_FOUND   If the EFI Variable defined in UEFI spec with name "ConOutDev", \r
+  @retval EFI_NOT_FOUND   If the EFI Variable defined in UEFI spec with name "ConOutDev",\r
                           "ConInDev" or "ConErrDev" doesn't exists.\r
   @retval EFI_OUT_OF_RESOURCES Not enough resource to complete the operations.\r
   @retval EFI_SUCCESS          Function completes successfully.\r
@@ -1057,24 +1057,24 @@ GetConsoleOutMode (
 \r
   @param CallbackData    The BMM context data.\r
 \r
-**/  \r
-VOID  \r
+**/\r
+VOID\r
 GetConsoleInCheck (\r
   IN  BMM_CALLBACK_DATA    *CallbackData\r
   )\r
 {\r
   UINT16              Index;\r
-  BM_MENU_ENTRY       *NewMenuEntry; \r
+  BM_MENU_ENTRY       *NewMenuEntry;\r
   UINT8               *ConInCheck;\r
   BM_CONSOLE_CONTEXT  *NewConsoleContext;\r
-  \r
+\r
   ASSERT (CallbackData != NULL);\r
-    \r
+\r
   ConInCheck = &CallbackData->BmmFakeNvData.ConsoleInCheck[0];\r
   for (Index = 0; ((Index < ConsoleInpMenu.MenuNumber) && \\r
-       (Index < MAX_MENU_NUMBER)) ; Index++) {  \r
+       (Index < MAX_MENU_NUMBER)) ; Index++) {\r
     NewMenuEntry      = BOpt_GetMenuEntry (&ConsoleInpMenu, Index);\r
-    NewConsoleContext = (BM_CONSOLE_CONTEXT *) NewMenuEntry->VariableContext;  \r
+    NewConsoleContext = (BM_CONSOLE_CONTEXT *) NewMenuEntry->VariableContext;\r
     ConInCheck[Index] = NewConsoleContext->IsActive;\r
   }\r
 }\r
@@ -1086,27 +1086,27 @@ GetConsoleInCheck (
 \r
   @param CallbackData    The BMM context data.\r
 \r
-**/      \r
-VOID    \r
+**/\r
+VOID\r
 GetConsoleOutCheck (\r
   IN  BMM_CALLBACK_DATA    *CallbackData\r
   )\r
 {\r
   UINT16              Index;\r
-  BM_MENU_ENTRY       *NewMenuEntry; \r
+  BM_MENU_ENTRY       *NewMenuEntry;\r
   UINT8               *ConOutCheck;\r
   BM_CONSOLE_CONTEXT  *NewConsoleContext;\r
-  \r
+\r
   ASSERT (CallbackData != NULL);\r
   ConOutCheck = &CallbackData->BmmFakeNvData.ConsoleOutCheck[0];\r
   for (Index = 0; ((Index < ConsoleOutMenu.MenuNumber) && \\r
-       (Index < MAX_MENU_NUMBER)) ; Index++) {  \r
+       (Index < MAX_MENU_NUMBER)) ; Index++) {\r
     NewMenuEntry      = BOpt_GetMenuEntry (&ConsoleOutMenu, Index);\r
-    NewConsoleContext = (BM_CONSOLE_CONTEXT *) NewMenuEntry->VariableContext;  \r
+    NewConsoleContext = (BM_CONSOLE_CONTEXT *) NewMenuEntry->VariableContext;\r
     ConOutCheck[Index] = NewConsoleContext->IsActive;\r
   }\r
 }\r
-  \r
+\r
 /**\r
 \r
   Initialize standard error output device check box to ConsoleErrCheck[MAX_MENU_NUMBER]\r
@@ -1114,23 +1114,23 @@ GetConsoleOutCheck (
 \r
   @param CallbackData    The BMM context data.\r
 \r
-**/        \r
-VOID  \r
+**/\r
+VOID\r
 GetConsoleErrCheck (\r
   IN  BMM_CALLBACK_DATA    *CallbackData\r
   )\r
 {\r
   UINT16              Index;\r
-  BM_MENU_ENTRY       *NewMenuEntry; \r
+  BM_MENU_ENTRY       *NewMenuEntry;\r
   UINT8               *ConErrCheck;\r
   BM_CONSOLE_CONTEXT  *NewConsoleContext;\r
-  \r
+\r
   ASSERT (CallbackData != NULL);\r
   ConErrCheck = &CallbackData->BmmFakeNvData.ConsoleErrCheck[0];\r
   for (Index = 0; ((Index < ConsoleErrMenu.MenuNumber) && \\r
-       (Index < MAX_MENU_NUMBER)) ; Index++) {  \r
+       (Index < MAX_MENU_NUMBER)) ; Index++) {\r
     NewMenuEntry      = BOpt_GetMenuEntry (&ConsoleErrMenu, Index);\r
-    NewConsoleContext = (BM_CONSOLE_CONTEXT *) NewMenuEntry->VariableContext;  \r
+    NewConsoleContext = (BM_CONSOLE_CONTEXT *) NewMenuEntry->VariableContext;\r
     ConErrCheck[Index] = NewConsoleContext->IsActive;\r
   }\r
 }\r
@@ -1142,23 +1142,23 @@ GetConsoleErrCheck (
 \r
   @param CallbackData    The BMM context data.\r
 \r
-**/        \r
-VOID  \r
+**/\r
+VOID\r
 GetTerminalAttribute (\r
   IN  BMM_CALLBACK_DATA    *CallbackData\r
   )\r
 {\r
   BMM_FAKE_NV_DATA     *CurrentFakeNVMap;\r
   BM_MENU_ENTRY        *NewMenuEntry;\r
-  BM_TERMINAL_CONTEXT  *NewTerminalContext;    \r
-  UINT16               TerminalIndex;  \r
+  BM_TERMINAL_CONTEXT  *NewTerminalContext;\r
+  UINT16               TerminalIndex;\r
   UINT8                AttributeIndex;\r
 \r
   ASSERT (CallbackData != NULL);\r
-  \r
-  CurrentFakeNVMap = &CallbackData->BmmFakeNvData;     \r
+\r
+  CurrentFakeNVMap = &CallbackData->BmmFakeNvData;\r
   for (TerminalIndex = 0; ((TerminalIndex < TerminalMenu.MenuNumber) && \\r
-       (TerminalIndex < MAX_MENU_NUMBER)); TerminalIndex++) {  \r
+       (TerminalIndex < MAX_MENU_NUMBER)); TerminalIndex++) {\r
     NewMenuEntry        = BOpt_GetMenuEntry (&TerminalMenu, TerminalIndex);\r
     NewTerminalContext  = (BM_TERMINAL_CONTEXT *) NewMenuEntry->VariableContext;\r
     for (AttributeIndex = 0; AttributeIndex < sizeof (BaudRateList) / sizeof (BaudRateList [0]); AttributeIndex++) {\r
@@ -1172,27 +1172,27 @@ GetTerminalAttribute (
         NewTerminalContext->DataBitsIndex = AttributeIndex;\r
         break;\r
       }\r
-    }    \r
-    \r
+    }\r
+\r
     for (AttributeIndex = 0; AttributeIndex < ARRAY_SIZE (ParityList); AttributeIndex++) {\r
       if (NewTerminalContext->Parity == (UINT64) (ParityList[AttributeIndex].Value)) {\r
         NewTerminalContext->ParityIndex = AttributeIndex;\r
         break;\r
       }\r
-    }            \r
-    \r
+    }\r
+\r
     for (AttributeIndex = 0; AttributeIndex < ARRAY_SIZE (StopBitsList); AttributeIndex++) {\r
       if (NewTerminalContext->StopBits == (UINT64) (StopBitsList[AttributeIndex].Value)) {\r
         NewTerminalContext->StopBitsIndex = AttributeIndex;\r
         break;\r
       }\r
-    }        \r
+    }\r
     CurrentFakeNVMap->COMBaudRate[TerminalIndex]     = NewTerminalContext->BaudRateIndex;\r
     CurrentFakeNVMap->COMDataRate[TerminalIndex]     = NewTerminalContext->DataBitsIndex;\r
     CurrentFakeNVMap->COMStopBits[TerminalIndex]     = NewTerminalContext->StopBitsIndex;\r
-    CurrentFakeNVMap->COMParity[TerminalIndex]       = NewTerminalContext->ParityIndex; \r
+    CurrentFakeNVMap->COMParity[TerminalIndex]       = NewTerminalContext->ParityIndex;\r
     CurrentFakeNVMap->COMTerminalType[TerminalIndex] = NewTerminalContext->TerminalType;\r
     CurrentFakeNVMap->COMFlowControl[TerminalIndex]  = NewTerminalContext->FlowControl;\r
-  } \r
+  }\r
 }\r
 \r
index 056694ebef7ac594ed8c8dee3bf5a5b40f511327..6a326f6c1cea735559495a691ac0e00ed88fa27e 100644 (file)
@@ -1,16 +1,16 @@
 ///** @file\r
-//  \r
+//\r
 //    File Explorer Formset\r
-//  \r
-//  Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
+//\r
+//  Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //  This program and the accompanying materials\r
 //  are licensed and made available under the terms and conditions of the BSD License\r
 //  which accompanies this distribution.  The full text of the license may be found at\r
 //  http://opensource.org/licenses/bsd-license.php\r
-//  \r
+//\r
 //  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 //  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-//  \r
+//\r
 //**/\r
 \r
 #include "FormGuid.h"\r
@@ -124,4 +124,4 @@ formset
 \r
   endform;\r
 \r
-endformset;
\ No newline at end of file
+endformset;\r
index 910edf6b8d977fa1a1f0a020e4e4402eb47aa5a6..99c1dc19ea8780c2d1d02c19580e3d70d5813104 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   File explorer related functions.\r
 \r
-Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -236,7 +236,7 @@ UpdateFileExplorer (
 \r
   @param[in]  This                Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL.\r
   @param[in]  Configuration       A null-terminated Unicode string in\r
-                                  <ConfigString> format.   \r
+                                  <ConfigString> format.\r
   @param[out] Progress            A pointer to a string filled in with the\r
                                   offset of the most recent '&' before the\r
                                   first failing name / value pair (or the\r
@@ -246,7 +246,7 @@ UpdateFileExplorer (
                                   successful.\r
 \r
   @retval EFI_SUCCESS             The results have been distributed or are\r
-                                  awaiting distribution.  \r
+                                  awaiting distribution.\r
   @retval EFI_OUT_OF_RESOURCES    Not enough memory to store the\r
                                   parts of the results that must be\r
                                   stored awaiting possible future\r
@@ -289,8 +289,8 @@ FileExplorerRouteConfig (
   }\r
 \r
   Status = gBS->LocateProtocol (\r
-                  &gEfiHiiConfigRoutingProtocolGuid, \r
-                  NULL, \r
+                  &gEfiHiiConfigRoutingProtocolGuid,\r
+                  NULL,\r
                   (VOID**) &ConfigRouting\r
                   );\r
   if (EFI_ERROR (Status)) {\r
@@ -393,7 +393,7 @@ FileExplorerCallback (
     //\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   Status         = EFI_SUCCESS;\r
   Private        = FE_CALLBACK_DATA_FROM_THIS (This);\r
 \r
@@ -407,7 +407,7 @@ FileExplorerCallback (
     if ((Value == NULL) || (ActionRequest == NULL)) {\r
       return EFI_INVALID_PARAMETER;\r
     }\r
-    \r
+\r
     if (QuestionId == KEY_VALUE_SAVE_AND_EXIT_BOOT) {\r
       NvRamMap->BootOptionChanged = FALSE;\r
       *ActionRequest = EFI_BROWSER_ACTION_REQUEST_SUBMIT;\r
@@ -451,7 +451,7 @@ FileExplorerCallback (
     if (Value == NULL) {\r
       return EFI_INVALID_PARAMETER;\r
     }\r
-    \r
+\r
     if (QuestionId >= FILE_OPTION_GOTO_OFFSET) {\r
       //\r
       // function will always return FALSE, no need to check here.\r
index bdf26141d842de3887298b320d2421c8cfd0c3dc..1edf8a8ca4036714924ca00379986520e8877dc5 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 Dynamically update the pages.\r
 \r
-Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -25,7 +25,7 @@ RefreshUpdateData (
 {\r
   //\r
   // Free current updated date\r
-  //  \r
+  //\r
   if (mStartOpCodeHandle != NULL) {\r
     HiiFreeOpCodeHandle (mStartOpCodeHandle);\r
   }\r
@@ -46,7 +46,7 @@ RefreshUpdateData (
 /**\r
   Add a "Go back to main page" tag in front of the form when there are no\r
   "Apply changes" and "Discard changes" tags in the end of the form.\r
\r
+\r
   @param CallbackData    The BMM context data.\r
 \r
 **/\r
@@ -131,7 +131,7 @@ UpdatePageEnd (
 }\r
 \r
 /**\r
-  Clean up the dynamic opcode at label and form specified by both LabelId. \r
+  Clean up the dynamic opcode at label and form specified by both LabelId.\r
 \r
   @param LabelId         It is both the Form ID and Label ID for opcode deletion.\r
   @param CallbackData    The BMM context data.\r
@@ -345,7 +345,7 @@ UpdateDrvDelPage (
   UpdatePageStart (CallbackData);\r
 \r
   CreateMenuStringToken (CallbackData, CallbackData->BmmHiiHandle, &DriverOptionMenu);\r
-  \r
+\r
   ASSERT (DriverOptionMenu.MenuNumber <= (sizeof (CallbackData->BmmFakeNvData.DriverOptionDel) / sizeof (CallbackData->BmmFakeNvData.DriverOptionDel[0])));\r
   for (Index = 0; Index < DriverOptionMenu.MenuNumber; Index++) {\r
     NewMenuEntry            = BOpt_GetMenuEntry (&DriverOptionMenu, Index);\r
@@ -380,7 +380,7 @@ UpdateDrvDelPage (
 }\r
 \r
 /**\r
-  Prepare the page to allow user to add description for \r
+  Prepare the page to allow user to add description for\r
   a Driver Option.\r
 \r
   @param CallbackData    The BMM context data.\r
@@ -552,11 +552,11 @@ UpdateOrderPage (
   UpdatePageStart (CallbackData);\r
 \r
   CreateMenuStringToken (CallbackData, CallbackData->BmmHiiHandle, OptionMenu);\r
-  \r
+\r
   OptionOrder = NULL;\r
   QuestionId = 0;\r
   VarOffset = 0;\r
-  switch (UpdatePageId) { \r
+  switch (UpdatePageId) {\r
 \r
   case FORM_BOOT_CHG_ID:\r
     //\r
@@ -587,12 +587,12 @@ UpdateOrderPage (
     QuestionId = DRIVER_OPTION_ORDER_QUESTION_ID;\r
     VarOffset = DRIVER_OPTION_ORDER_VAR_OFFSET;\r
     break;\r
-  }  \r
+  }\r
   ASSERT (OptionOrder != NULL);\r
 \r
   OptionsOpCodeHandle = HiiAllocateOpCodeHandle ();\r
   ASSERT (OptionsOpCodeHandle != NULL);\r
-  \r
+\r
   NewMenuEntry = NULL;\r
   for (OptionIndex = 0; (OptionIndex < MAX_MENU_NUMBER && OptionOrder[OptionIndex] != 0); OptionIndex++) {\r
     BootOptionFound = FALSE;\r
@@ -613,21 +613,21 @@ UpdateOrderPage (
         );\r
     }\r
   }\r
-  \r
+\r
   if (OptionMenu->MenuNumber > 0) {\r
-    HiiCreateOrderedListOpCode (                   \r
-      mStartOpCodeHandle,                          // Container for dynamic created opcodes     \r
-      QuestionId,                                  // Question ID                               \r
-      VARSTORE_ID_BOOT_MAINT,                      // VarStore ID                               \r
-      VarOffset,                                   // Offset in Buffer Storage                  \r
-      STRING_TOKEN (STR_CHANGE_ORDER),             // Question prompt text                      \r
-      STRING_TOKEN (STR_CHANGE_ORDER),             // Question help text                        \r
-      0,                                           // Question flag                             \r
+    HiiCreateOrderedListOpCode (\r
+      mStartOpCodeHandle,                          // Container for dynamic created opcodes\r
+      QuestionId,                                  // Question ID\r
+      VARSTORE_ID_BOOT_MAINT,                      // VarStore ID\r
+      VarOffset,                                   // Offset in Buffer Storage\r
+      STRING_TOKEN (STR_CHANGE_ORDER),             // Question prompt text\r
+      STRING_TOKEN (STR_CHANGE_ORDER),             // Question help text\r
+      0,                                           // Question flag\r
       0,                                           // Ordered list flag, e.g. EFI_IFR_UNIQUE_SET\r
-      EFI_IFR_TYPE_NUM_SIZE_32,                    // Data type of Question value               \r
-      100,                                         // Maximum container                         \r
-      OptionsOpCodeHandle,                         // Option Opcode list                        \r
-      NULL                                         // Default Opcode is NULL                    \r
+      EFI_IFR_TYPE_NUM_SIZE_32,                    // Data type of Question value\r
+      100,                                         // Maximum container\r
+      OptionsOpCodeHandle,                         // Option Opcode list\r
+      NULL                                         // Default Opcode is NULL\r
       );\r
   }\r
 \r
@@ -706,7 +706,7 @@ UpdateBootNextPage (
         EFI_IFR_TYPE_NUM_SIZE_16,\r
         Index\r
         );\r
-    }      \r
+    }\r
 \r
     HiiCreateOneOfOpCode (\r
       mStartOpCodeHandle,\r
@@ -765,7 +765,7 @@ UpdateTimeOutPage (
     0,\r
     DefaultOpCodeHandle\r
     );\r
-  \r
+\r
   HiiFreeOpCodeHandle (DefaultOpCodeHandle);\r
 \r
   //CallbackData->BmmFakeNvData.BootTimeOut = BootTimeOut;\r
@@ -840,7 +840,7 @@ UpdateConModePage (
     if (EFI_ERROR (Status)) {\r
       continue;\r
     }\r
-    \r
+\r
     //\r
     // Build mode string Column x Row\r
     //\r
@@ -956,7 +956,7 @@ UpdateTerminalPage (
     OptionsOpCodeHandle,\r
     NULL\r
     );\r
-  \r
+\r
   HiiFreeOpCodeHandle (OptionsOpCodeHandle);\r
   OptionsOpCodeHandle = HiiAllocateOpCodeHandle ();\r
   ASSERT (OptionsOpCodeHandle != NULL);\r
index 414367cf238799f9f75f60b59da491c5d732b144..ea798fab9ded426cf542226b613dd8547fb2cb7e 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Variable operation that will be used by bootmaint\r
 \r
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -19,10 +19,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   After deleting this boot option, call Var_ChangeBootOrder to\r
   make sure BootOrder is in valid state.\r
 \r
-  @retval EFI_SUCCESS   If all boot load option EFI Variables corresponding to  \r
+  @retval EFI_SUCCESS   If all boot load option EFI Variables corresponding to\r
                         BM_LOAD_CONTEXT marked for deletion is deleted.\r
   @retval EFI_NOT_FOUND If can not find the boot option want to be deleted.\r
-  @return Others        If failed to update the "BootOrder" variable after deletion. \r
+  @return Others        If failed to update the "BootOrder" variable after deletion.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -86,7 +86,7 @@ Var_DelBootOption (
   scratch by content from BootOptionMenu is needed.\r
 \r
 \r
-  \r
+\r
 \r
   @retval  EFI_SUCCESS  The boot order is updated successfully.\r
   @return               EFI_STATUS other than EFI_SUCCESS if failed to\r
@@ -313,7 +313,7 @@ Var_ChangeDriverOrder (
 }\r
 \r
 /**\r
-  Update the device path of "ConOut", "ConIn" and "ErrOut" \r
+  Update the device path of "ConOut", "ConIn" and "ErrOut"\r
   based on the new BaudRate, Data Bits, parity and Stop Bits\r
   set.\r
 \r
@@ -383,7 +383,7 @@ Var_UpdateAllConsoleOption (
 \r
   This function clear the EFI variable defined by ConsoleName and\r
   gEfiGlobalVariableGuid. It then build the multi-instance device\r
-  path by appending the device path of the Console (In/Out/Err) instance \r
+  path by appending the device path of the Console (In/Out/Err) instance\r
   in ConsoleMenu. Then it scan all corresponding console device by\r
   scanning Terminal (built from device supporting Serial I/O instances)\r
   devices in TerminalMenu. At last, it save a EFI variable specifed\r
@@ -447,7 +447,7 @@ Var_UpdateConsoleOption (
         ) {\r
       Vendor.Header.Type    = MESSAGING_DEVICE_PATH;\r
       Vendor.Header.SubType = MSG_VENDOR_DP;\r
-      \r
+\r
       ASSERT (NewTerminalContext->TerminalType < (ARRAY_SIZE (TerminalTypeGuid)));\r
       CopyMem (\r
         &Vendor.Guid,\r
@@ -520,7 +520,7 @@ Var_UpdateConsoleOutOption (
   console device.\r
 \r
   @retval EFI_SUCCESS    The function complete successfully.\r
-  @return The EFI variable can not be saved. See gRT->SetVariable for detail return information.  \r
+  @return The EFI variable can not be saved. See gRT->SetVariable for detail return information.\r
 **/\r
 EFI_STATUS\r
 Var_UpdateErrorOutOption (\r
@@ -531,8 +531,8 @@ Var_UpdateErrorOutOption (
 }\r
 \r
 /**\r
-  This function create a currently loaded Drive Option from \r
-  the BMM. It then appends this Driver Option to the end of \r
+  This function create a currently loaded Drive Option from\r
+  the BMM. It then appends this Driver Option to the end of\r
   the "DriverOrder" list. It append this Driver Opotion to the end\r
   of DriverOptionMenu.\r
 \r
@@ -726,8 +726,8 @@ Var_UpdateDriverOption (
 }\r
 \r
 /**\r
-  This function create a currently loaded Boot Option from \r
-  the BMM. It then appends this Boot Option to the end of \r
+  This function create a currently loaded Boot Option from\r
+  the BMM. It then appends this Boot Option to the end of\r
   the "BootOrder" list. It also append this Boot Opotion to the end\r
   of BootOptionMenu.\r
 \r
@@ -911,7 +911,7 @@ Var_UpdateBootOption (
 }\r
 \r
 /**\r
-  This function update the "BootNext" EFI Variable. If there is \r
+  This function update the "BootNext" EFI Variable. If there is\r
   no "BootNext" specified in BMM, this EFI Variable is deleted.\r
   It also update the BMM context data specified the "BootNext"\r
   vaule.\r
@@ -919,7 +919,7 @@ Var_UpdateBootOption (
   @param CallbackData    The BMM context data.\r
 \r
   @retval EFI_SUCCESS    The function complete successfully.\r
-  @return                The EFI variable can be saved. See gRT->SetVariable \r
+  @return                The EFI variable can be saved. See gRT->SetVariable\r
                          for detail return information.\r
 \r
 **/\r
@@ -1105,7 +1105,7 @@ Var_UpdateDriverOrder (
   // Changing the content without increasing its size with current variable implementation shouldn't fail.\r
   //\r
   ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
   BOpt_FreeMenu (&DriverOptionMenu);\r
   BOpt_GetDriverOptions (CallbackData);\r
   return EFI_SUCCESS;\r
index 9ee063859ce1fe7a6258127ae4c3bd6086d6cb8f..90aa8f59cc0dd9ebdc31f135031175b06a579175 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The platform boot manager reference implementation\r
 \r
-Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -44,7 +44,7 @@ HII_VENDOR_DEVICE_PATH  mBootManagerHiiVendorDevicePath = {
   {\r
     END_DEVICE_PATH_TYPE,\r
     END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
-    { \r
+    {\r
       (UINT8) (END_DEVICE_PATH_LENGTH),\r
       (UINT8) ((END_DEVICE_PATH_LENGTH) >> 8)\r
     }\r
@@ -187,10 +187,10 @@ InitializeBootManager (
 \r
 /**\r
   This function invokes Boot Manager. If all devices have not a chance to be connected,\r
-  the connect all will be triggered. It then enumerate all boot options. If \r
+  the connect all will be triggered. It then enumerate all boot options. If\r
   a boot option from the Boot Manager page is selected, Boot Manager will boot\r
   from this boot option.\r
-  \r
+\r
 **/\r
 VOID\r
 CallBootManager (\r
@@ -294,7 +294,7 @@ CallBootManager (
       NeedEndOp = FALSE;\r
       HiiCreateEndOpCode (StartOpCodeHandle);\r
     }\r
-    \r
+\r
     if (IsLegacyOption && DeviceType != ((BBS_BBS_DEVICE_PATH *) Option->DevicePath)->DeviceType) {\r
       if (NeedEndOp) {\r
         HiiCreateEndOpCode (StartOpCodeHandle);\r
@@ -314,7 +314,7 @@ CallBootManager (
     }\r
 \r
     ASSERT (Option->Description != NULL);\r
-    \r
+\r
     Token = HiiSetString (HiiHandle, 0, Option->Description, NULL);\r
 \r
     TempStr = DevicePathToStr (Option->DevicePath);\r
index e26147183ac3479ce5f876ab7909b8535be2f00f..1928b3c0f970bb847f49aade2720c0b1680f1036 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The platform boot manager reference implement\r
 \r
-Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -90,10 +90,10 @@ InitializeBootManager (
 \r
 /**\r
   This function invokes Boot Manager. If all devices have not a chance to be connected,\r
-  the connect all will be triggered. It then enumerate all boot options. If \r
+  the connect all will be triggered. It then enumerate all boot options. If\r
   a boot option from the Boot Manager page is selected, Boot Manager will boot\r
   from this boot option.\r
-  \r
+\r
 **/\r
 VOID\r
 CallBootManager (\r
index fbf128bc341e3d650742ed6839d701dcf5a70e41..bbf1f6b9d03c13aba581ce5c7e9d962354965bf5 100644 (file)
@@ -1,16 +1,16 @@
 ///** @file\r
-//  \r
+//\r
 //    String definitions for BdsPlatform formset.\r
-//  \r
-//  Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
+//\r
+//  Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //  This program and the accompanying materials\r
 //  are licensed and made available under the terms and conditions of the BSD License\r
 //  which accompanies this distribution.  The full text of the license may be found at\r
 //  http://opensource.org/licenses/bsd-license.php\r
-//  \r
+//\r
 //  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 //  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-//  \r
+//\r
 //**/\r
 \r
 /=#\r
index 6c7fc7ced4c996ebe3bef5449a36b26d4b8002fb..c144d228aebdf39438464f343fca58ac7628c749 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   BDS routines to handle capsules.\r
 \r
-Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -51,7 +51,7 @@ BdsProcessCapsules (
   UINT32                      CacheNumber;\r
   VOID                        **CapsulePtr;\r
   VOID                        **CapsulePtrCache;\r
-  EFI_GUID                    *CapsuleGuidCache; \r
+  EFI_GUID                    *CapsuleGuidCache;\r
   BOOLEAN                     NeedReset;\r
 \r
   CapsuleNumber      = 0;\r
@@ -70,7 +70,7 @@ BdsProcessCapsules (
     DEBUG ((EFI_D_ERROR, "Boot mode is not correct for capsule update.\n"));\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   Status = EFI_SUCCESS;\r
   //\r
   // Find all capsule images from hob\r
@@ -80,7 +80,7 @@ BdsProcessCapsules (
     CapsuleTotalNumber ++;\r
     HobPointer.Raw = GET_NEXT_HOB (HobPointer);\r
   }\r
-  \r
+\r
   if (CapsuleTotalNumber == 0) {\r
     //\r
     // We didn't find a hob, so had no errors.\r
@@ -92,7 +92,7 @@ BdsProcessCapsules (
     PlatformBdsLockNonUpdatableFlash ();\r
     return EFI_SUCCESS;\r
   }\r
-  \r
+\r
   //\r
   // Init temp Capsule Data table.\r
   //\r
@@ -102,7 +102,7 @@ BdsProcessCapsules (
   ASSERT (CapsulePtrCache != NULL);\r
   CapsuleGuidCache = (EFI_GUID *) AllocateZeroPool (sizeof (EFI_GUID) * CapsuleTotalNumber);\r
   ASSERT (CapsuleGuidCache != NULL);\r
-  \r
+\r
   //\r
   // Find all capsule images from hob\r
   //\r
@@ -119,12 +119,12 @@ BdsProcessCapsules (
 \r
   //\r
   // Capsules who have CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE always are used for operating\r
-  // System to have information persist across a system reset. EFI System Table must \r
+  // System to have information persist across a system reset. EFI System Table must\r
   // point to an array of capsules that contains the same CapsuleGuid value. And agents\r
-  // searching for this type capsule will look in EFI System Table and search for the \r
+  // searching for this type capsule will look in EFI System Table and search for the\r
   // capsule's Guid and associated pointer to retrieve the data. Two steps below describes\r
-  // how to sorting the capsules by the unique guid and install the array to EFI System Table. \r
-  // Firstly, Loop for all coalesced capsules, record unique CapsuleGuids and cache them in an \r
+  // how to sorting the capsules by the unique guid and install the array to EFI System Table.\r
+  // Firstly, Loop for all coalesced capsules, record unique CapsuleGuids and cache them in an\r
   // array for later sorting capsules by CapsuleGuid.\r
   //\r
   for (Index = 0; Index < CapsuleTotalNumber; Index++) {\r
@@ -132,7 +132,7 @@ BdsProcessCapsules (
     if ((CapsuleHeader->Flags & CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) != 0) {\r
       //\r
       // For each capsule, we compare it with known CapsuleGuid in the CacheArray.\r
-      // If already has the Guid, skip it. Whereas, record it in the CacheArray as \r
+      // If already has the Guid, skip it. Whereas, record it in the CacheArray as\r
       // an additional one.\r
       //\r
       CacheIndex = 0;\r
@@ -159,7 +159,7 @@ BdsProcessCapsules (
   //\r
   CacheIndex = 0;\r
   while (CacheIndex < CacheNumber) {\r
-    CapsuleNumber = 0;  \r
+    CapsuleNumber = 0;\r
     for (Index = 0; Index < CapsuleTotalNumber; Index++) {\r
       CapsuleHeader = (EFI_CAPSULE_HEADER*) CapsulePtr [Index];\r
       if ((CapsuleHeader->Flags & CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) != 0) {\r
@@ -172,7 +172,7 @@ BdsProcessCapsules (
       }\r
     }\r
     if (CapsuleNumber != 0) {\r
-      Size = sizeof(EFI_CAPSULE_TABLE) + (CapsuleNumber - 1) * sizeof(VOID*);  \r
+      Size = sizeof(EFI_CAPSULE_TABLE) + (CapsuleNumber - 1) * sizeof(VOID*);\r
       CapsuleTable = AllocateRuntimePool (Size);\r
       ASSERT (CapsuleTable != NULL);\r
       CapsuleTable->CapsuleArrayNumber =  CapsuleNumber;\r
@@ -185,7 +185,7 @@ BdsProcessCapsules (
 \r
   //\r
   // Besides ones with CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE flag, all capsules left are\r
-  // recognized by platform with CapsuleGuid. For general platform driver, UpdateFlash \r
+  // recognized by platform with CapsuleGuid. For general platform driver, UpdateFlash\r
   // type is commonly supported, so here only deal with encapsuled FVs capsule. Additional\r
   // type capsule transaction could be extended. It depends on platform policy.\r
   //\r
@@ -220,7 +220,7 @@ BdsProcessCapsules (
   }\r
 \r
   PlatformBdsLockNonUpdatableFlash ();\r
-  \r
+\r
   //\r
   // Free the allocated temp memory space.\r
   //\r
index 5103c7e5d1d6af60b8b3ad6d8cccecf7c278e10a..c4dcf157a5a2d8ede44596823fe6d35bb9704001 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The platform device manager reference implementation\r
 \r
-Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -43,7 +43,7 @@ EFI_STRING  mSelectedMacAddrString;
 //\r
 // Which form Id need to be show.\r
 //\r
-EFI_FORM_ID      mNextShowFormId = DEVICE_MANAGER_FORM_ID;  \r
+EFI_FORM_ID      mNextShowFormId = DEVICE_MANAGER_FORM_ID;\r
 \r
 //\r
 // The Mac Address show in the NETWORK_DEVICE_LIST_FORM_ID\r
@@ -74,7 +74,7 @@ HII_VENDOR_DEVICE_PATH  mDeviceManagerHiiVendorDevicePath = {
   {\r
     END_DEVICE_PATH_TYPE,\r
     END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
-    { \r
+    {\r
       (UINT8) (END_DEVICE_PATH_LENGTH),\r
       (UINT8) ((END_DEVICE_PATH_LENGTH) >> 8)\r
     }\r
@@ -96,7 +96,7 @@ HII_VENDOR_DEVICE_PATH  mDriverHealthHiiVendorDevicePath = {
   {\r
     END_DEVICE_PATH_TYPE,\r
       END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
-    { \r
+    {\r
       (UINT8) (END_DEVICE_PATH_LENGTH),\r
         (UINT8) ((END_DEVICE_PATH_LENGTH) >> 8)\r
     }\r
@@ -240,7 +240,7 @@ ExtractDisplayedHiiFormFromHiiHandle (
   UINT8                        ClassGuidNum;\r
 \r
   ASSERT (Handle != NULL);\r
-  ASSERT (SetupClassGuid != NULL);  \r
+  ASSERT (SetupClassGuid != NULL);\r
   ASSERT (FormSetTitle != NULL);\r
   ASSERT (FormSetHelp != NULL);\r
 \r
@@ -263,7 +263,7 @@ ExtractDisplayedHiiFormFromHiiHandle (
   // The return status should always be EFI_BUFFER_TOO_SMALL as input buffer's size is 0.\r
   //\r
   ASSERT (Status == EFI_BUFFER_TOO_SMALL);\r
-  \r
+\r
   HiiPackageList = AllocatePool (BufferSize);\r
   ASSERT (HiiPackageList != NULL);\r
 \r
@@ -326,7 +326,7 @@ ExtractDisplayedHiiFormFromHiiHandle (
         }\r
       }\r
     }\r
-    \r
+\r
     //\r
     // Go to next package\r
     //\r
@@ -341,12 +341,12 @@ ExtractDisplayedHiiFormFromHiiHandle (
 /**\r
   Get the mac address string from the device path.\r
   if the device path has the vlan, get the vanid also.\r
-  \r
-  @param MacAddressNode              Device path begin with mac address \r
+\r
+  @param MacAddressNode              Device path begin with mac address\r
   @param PBuffer                     Output string buffer contain mac address.\r
 \r
 **/\r
-BOOLEAN \r
+BOOLEAN\r
 GetMacAddressString(\r
   IN  MAC_ADDR_DEVICE_PATH   *MacAddressNode,\r
   OUT CHAR16                 **PBuffer\r
@@ -382,7 +382,7 @@ GetMacAddressString(
   *PBuffer = String;\r
   StrCpyS (String, BufferLen / sizeof (CHAR16), L"MAC:");\r
   String += 4;\r
-  \r
+\r
   //\r
   // Convert the MAC address into a unicode string.\r
   //\r
@@ -400,7 +400,7 @@ GetMacAddressString(
       *String++ = L':';\r
     }\r
   }\r
-  \r
+\r
   //\r
   // If VLAN is configured, it will need extra 5 characters like "\0005".\r
   // Plus one unicode character for the null-terminator.\r
@@ -442,7 +442,7 @@ GetMacAddressString(
   @retval  EFI_SUCCESS               Add the item is successful.\r
   @return  Other values if failed to Add the item.\r
 **/\r
-BOOLEAN \r
+BOOLEAN\r
 AddIdToMacDeviceList (\r
   IN  EFI_STRING        MacAddrString\r
   )\r
@@ -488,13 +488,13 @@ AddIdToMacDeviceList (
     } else {\r
       TempDeviceList = (MENU_INFO_ITEM *)AllocatePool (sizeof (MENU_INFO_ITEM) * mMacDeviceList.MaxListLen);\r
     }\r
-    \r
+\r
     if (TempDeviceList == NULL) {\r
       return FALSE;\r
     }\r
-    TempDeviceList[mMacDeviceList.CurListLen].PromptId = PromptId;  \r
+    TempDeviceList[mMacDeviceList.CurListLen].PromptId = PromptId;\r
     TempDeviceList[mMacDeviceList.CurListLen].QuestionId = (EFI_QUESTION_ID) (mMacDeviceList.CurListLen + NETWORK_DEVICE_LIST_KEY_OFFSET);\r
-    \r
+\r
     mMacDeviceList.NodeList = TempDeviceList;\r
   }\r
   mMacDeviceList.CurListLen ++;\r
@@ -511,9 +511,9 @@ AddIdToMacDeviceList (
 \r
   @param    *Node           Input device which need to be check.\r
   @param    *NeedAddItem    Whether need to add the menu in the network device list.\r
-  \r
+\r
   @retval  TRUE             Has mac address device path.\r
-  @retval  FALSE            NOT Has mac address device path.  \r
+  @retval  FALSE            NOT Has mac address device path.\r
 \r
 **/\r
 BOOLEAN\r
@@ -525,7 +525,7 @@ IsMacAddressDevicePath (
   EFI_DEVICE_PATH_PROTOCOL   *DevicePath;\r
   CHAR16                     *Buffer;\r
   BOOLEAN                    ReturnVal;\r
-  \r
+\r
   ASSERT (Node != NULL);\r
   *NeedAddItem = FALSE;\r
   ReturnVal    = FALSE;\r
@@ -540,12 +540,12 @@ IsMacAddressDevicePath (
     if ((DevicePathType (DevicePath) == MESSAGING_DEVICE_PATH) &&\r
        (DevicePathSubType (DevicePath) == MSG_MAC_ADDR_DP)) {\r
       ReturnVal = TRUE;\r
-      \r
+\r
       if (DEVICE_MANAGER_FORM_ID == mNextShowFormId) {\r
         *NeedAddItem = TRUE;\r
         break;\r
-      } \r
-      \r
+      }\r
+\r
       if (!GetMacAddressString((MAC_ADDR_DEVICE_PATH*)DevicePath, &Buffer)) {\r
         break;\r
       }\r
@@ -559,7 +559,7 @@ IsMacAddressDevicePath (
 \r
       if (NETWORK_DEVICE_LIST_FORM_ID == mNextShowFormId) {\r
         //\r
-        // Same handle may has two network child handle, so the questionid \r
+        // Same handle may has two network child handle, so the questionid\r
         // has the offset of SAME_HANDLE_KEY_OFFSET.\r
         //\r
         if (AddIdToMacDeviceList (Buffer)) {\r
@@ -567,7 +567,7 @@ IsMacAddressDevicePath (
         }\r
         break;\r
       }\r
-    } \r
+    }\r
     DevicePath = NextDevicePathNode (DevicePath);\r
   }\r
 \r
@@ -588,7 +588,7 @@ IsMacAddressDevicePath (
   @return  FALSE         Do not need to add the menu about the network.\r
 \r
 **/\r
-BOOLEAN \r
+BOOLEAN\r
 IsNeedAddNetworkMenu (\r
   IN      EFI_HII_HANDLE      Handle,\r
   OUT     UINTN               *ItemCount\r
@@ -596,7 +596,7 @@ IsNeedAddNetworkMenu (
 {\r
   EFI_STATUS     Status;\r
   UINTN          EntryCount;\r
-  UINTN          Index;  \r
+  UINTN          Index;\r
   EFI_HANDLE     DriverHandle;\r
   EFI_HANDLE     ControllerHandle;\r
   EFI_DEVICE_PATH_PROTOCOL   *DevicePath;\r
@@ -625,9 +625,9 @@ IsNeedAddNetworkMenu (
   }\r
   TmpDevicePath = DevicePath;\r
 \r
-  // \r
+  //\r
   // Check whether this device path include mac address device path.\r
-  // If this path has mac address path, get the value whether need \r
+  // If this path has mac address path, get the value whether need\r
   // add this info to the menu and return.\r
   // Else check more about the child handle devcie path.\r
   //\r
@@ -649,7 +649,7 @@ IsNeedAddNetworkMenu (
   }\r
 \r
   if (!IsDevicePathEnd (TmpDevicePath)) {\r
-    return FALSE;    \r
+    return FALSE;\r
   }\r
 \r
   //\r
@@ -688,7 +688,7 @@ IsNeedAddNetworkMenu (
         continue;\r
       }\r
 \r
-      // \r
+      //\r
       // Check whether this device path include mac address device path.\r
       //\r
       if (!IsMacAddressDevicePath(ChildDevicePath, &IsNeedAdd)) {\r
@@ -708,7 +708,7 @@ IsNeedAddNetworkMenu (
         } else {\r
           //\r
           // If need to update other form, return whether need to add to the menu.\r
-          //          \r
+          //\r
           goto Done;\r
         }\r
       }\r
@@ -717,9 +717,9 @@ IsNeedAddNetworkMenu (
 \r
 Done:\r
   if (OpenInfoBuffer != NULL) {\r
-    FreePool (OpenInfoBuffer);  \r
+    FreePool (OpenInfoBuffer);\r
   }\r
-  return IsNeedAdd; \r
+  return IsNeedAdd;\r
 }\r
 \r
 /**\r
@@ -749,7 +749,7 @@ GetHiiHandleCount (
   @param   HiiHandles              The input HiiHandle array.\r
   @param   GuidLists               The input form set guid lists.\r
   @param   ArrayCount              The input array count, new array will be arraycount + 1 size.\r
-  @param   Offset                  The current used HiiHandle's Offset. \r
+  @param   Offset                  The current used HiiHandle's Offset.\r
   @param   FormSetGuid             The new found formset guid.\r
 \r
 **/\r
@@ -793,7 +793,7 @@ AdjustArrayData (
 \r
   This function create the dynamic content for device manager. It includes\r
   section header for all class of devices, one-of opcode to set VBIOS.\r
-  \r
+\r
   @retval  EFI_SUCCESS             Operation is successful.\r
   @return  Other values if failed to clean up the dynamic content from HII\r
            database.\r
@@ -883,7 +883,7 @@ CallDeviceManager (
     NewStringLen += (StrLen(String) + 2) * 2;\r
     NewStringTitle = AllocatePool (NewStringLen);\r
     UnicodeSPrint (NewStringTitle, NewStringLen, L"%s %s", String, mSelectedMacAddrString);\r
-    HiiSetString (HiiHandle, STRING_TOKEN (STR_FORM_NETWORK_DEVICE_TITLE), NewStringTitle, NULL);    \r
+    HiiSetString (HiiHandle, STRING_TOKEN (STR_FORM_NETWORK_DEVICE_TITLE), NewStringTitle, NULL);\r
     FreePool (String);\r
     FreePool (NewStringTitle);\r
   }\r
@@ -941,9 +941,9 @@ CallDeviceManager (
     }\r
 \r
     //\r
-    // One HiiHandle has more than one formset can be shown, \r
+    // One HiiHandle has more than one formset can be shown,\r
     // Insert a new pair of HiiHandle + Guid to the HiiHandles and GuidLists list.\r
-    // \r
+    //\r
     if (SkipCount > 0) {\r
       AdjustArrayData (&HiiHandles, &GuidLists, HandleNum, Index + 1, FormSetGuid);\r
       HandleNum ++;\r
@@ -968,7 +968,7 @@ CallDeviceManager (
 \r
     //\r
     // Network device process\r
-    // \r
+    //\r
     if (IsNeedAddNetworkMenu (HiiHandles[Index], &AddItemCount)) {\r
       if (mNextShowFormId == DEVICE_MANAGER_FORM_ID) {\r
         //\r
@@ -1015,7 +1015,7 @@ CallDeviceManager (
       }\r
     } else {\r
       //\r
-      // \r
+      //\r
       // Not network device process, only need to show at device manger form.\r
       //\r
       if (mNextShowFormId == DEVICE_MANAGER_FORM_ID) {\r
@@ -1128,7 +1128,7 @@ CallDeviceManager (
   }\r
 \r
   //\r
-  // Driver Health item chose. \r
+  // Driver Health item chose.\r
   //\r
   if (gCallbackKey == DEVICE_MANAGER_KEY_DRIVER_HEALTH) {\r
     CallDriverHealth ();\r
@@ -1152,7 +1152,7 @@ CallDeviceManager (
   // In this case, go from the network device list to the specify device.\r
   //\r
   if ((gCallbackKey < MAX_KEY_SECTION_LEN + NETWORK_DEVICE_LIST_KEY_OFFSET ) && (gCallbackKey >= NETWORK_DEVICE_LIST_KEY_OFFSET)) {\r
-         mNextShowFormId = NETWORK_DEVICE_FORM_ID;\r
+    mNextShowFormId = NETWORK_DEVICE_FORM_ID;\r
     gCallbackKey = FRONT_PAGE_KEY_DEVICE_MANAGER;\r
     goto Done;\r
   }\r
@@ -1237,10 +1237,10 @@ DriverHealthCallback (
 }\r
 \r
 /**\r
-  Collect and display the platform's driver health relative information, allow user to do interactive \r
+  Collect and display the platform's driver health relative information, allow user to do interactive\r
   operation while the platform is unhealthy.\r
 \r
-  This function display a form which divided into two parts. The one list all modules which has installed \r
+  This function display a form which divided into two parts. The one list all modules which has installed\r
   driver health protocol. The list usually contain driver name, controller name, and it's health info.\r
   While the driver name can't be retrieved, will use device path as backup. The other part of the form provide\r
   a choice to the user to repair all platform.\r
@@ -1251,7 +1251,7 @@ CallDriverHealth (
   VOID\r
   )\r
 {\r
-  EFI_STATUS                  Status; \r
+  EFI_STATUS                  Status;\r
   EFI_HII_HANDLE              HiiHandle;\r
   EFI_BROWSER_ACTION_REQUEST  ActionRequest;\r
   EFI_IFR_GUID_LABEL          *StartLabel;\r
@@ -1278,7 +1278,7 @@ CallDriverHealth (
   UINTN                       StringSize;\r
 \r
   Index               = 0;\r
-  DriverHealthInfo    = NULL;  \r
+  DriverHealthInfo    = NULL;\r
   DriverDevicePath    = NULL;\r
   IsControllerNameEmpty = FALSE;\r
   InitializeListHead (&DriverHealthList);\r
@@ -1352,8 +1352,8 @@ CallDriverHealth (
 \r
   Link = GetFirstNode (&DriverHealthList);\r
 \r
-  while (!IsNull (&DriverHealthList, Link)) {   \r
-    DriverHealthInfo = DEVICE_MANAGER_HEALTH_INFO_FROM_LINK (Link);    \r
+  while (!IsNull (&DriverHealthList, Link)) {\r
+    DriverHealthInfo = DEVICE_MANAGER_HEALTH_INFO_FROM_LINK (Link);\r
 \r
     Status = DriverHealthGetDriverName (DriverHealthInfo->DriverHandle, &DriverName);\r
     if (EFI_ERROR (Status)) {\r
@@ -1366,9 +1366,9 @@ CallDriverHealth (
     StringSize = StrSize (DriverName);\r
 \r
     Status = DriverHealthGetControllerName (\r
-               DriverHealthInfo->DriverHandle, \r
-               DriverHealthInfo->ControllerHandle, \r
-               DriverHealthInfo->ChildHandle, \r
+               DriverHealthInfo->DriverHandle,\r
+               DriverHealthInfo->ControllerHandle,\r
+               DriverHealthInfo->ChildHandle,\r
                &ControllerName\r
                );\r
 \r
@@ -1379,24 +1379,24 @@ CallDriverHealth (
     } else {\r
       IsControllerNameEmpty = TRUE;\r
     }\r
-   \r
+\r
     //\r
     // Add the message of the Module itself provided after the string item.\r
     //\r
     if ((DriverHealthInfo->MessageList != NULL) && (DriverHealthInfo->MessageList->StringId != 0)) {\r
        TmpString = HiiGetString (\r
-                     DriverHealthInfo->MessageList->HiiHandle, \r
-                     DriverHealthInfo->MessageList->StringId, \r
+                     DriverHealthInfo->MessageList->HiiHandle,\r
+                     DriverHealthInfo->MessageList->StringId,\r
                      NULL\r
                      );\r
        ASSERT (TmpString != NULL);\r
-       \r
+\r
        StringSize += StrLen (L"    ") * sizeof(CHAR16);\r
        StringSize += StrLen (TmpString) * sizeof(CHAR16);\r
 \r
        String = (EFI_STRING) AllocateZeroPool (StringSize);\r
        ASSERT (String != NULL);\r
-       \r
+\r
        StrCpyS (String, StringSize / sizeof(CHAR16), DriverName);\r
        if (!IsControllerNameEmpty) {\r
         StrCatS (String, StringSize / sizeof(CHAR16), L"    ");\r
@@ -1436,7 +1436,7 @@ CallDriverHealth (
 \r
       String = (EFI_STRING) AllocateZeroPool (StringSize);\r
       ASSERT (String != NULL);\r
-      \r
+\r
       StrCpyS (String, StringSize / sizeof (CHAR16), DriverName);\r
       if (!IsControllerNameEmpty) {\r
         StrCatS (String, StringSize / sizeof (CHAR16), L"    ");\r
@@ -1464,14 +1464,14 @@ CallDriverHealth (
     Index++;\r
     Link = GetNextNode (&DriverHealthList, Link);\r
   }\r
-   \r
+\r
   //\r
   // Add End Opcode for Subtitle\r
-  // \r
+  //\r
   HiiCreateEndOpCode (StartOpCodeHandle);\r
 \r
   HiiCreateSubTitleOpCode (StartOpCodeHandleRepair, STRING_TOKEN (STR_DRIVER_HEALTH_REPAIR_ALL), 0, 0, 1);\r
-  TokenHelp = HiiSetString (HiiHandle, 0, GetStringById( STRING_TOKEN (STR_DH_REPAIR_ALL_HELP)), NULL);  \r
+  TokenHelp = HiiSetString (HiiHandle, 0, GetStringById( STRING_TOKEN (STR_DH_REPAIR_ALL_HELP)), NULL);\r
 \r
   if (PlaformHealthStatusCheck ()) {\r
     //\r
@@ -1541,7 +1541,7 @@ CallDriverHealth (
   // We will have returned from processing a callback - user either hit ESC to exit, or selected\r
   // a target to display.\r
   // Process the diver health status states here.\r
-  // \r
+  //\r
   if (gCallbackKey >= DRIVER_HEALTH_KEY_OFFSET && gCallbackKey != DRIVER_HEALTH_REPAIR_ALL_KEY) {\r
     ActionRequest = EFI_BROWSER_ACTION_REQUEST_NONE;\r
 \r
@@ -1552,7 +1552,7 @@ CallDriverHealth (
       //\r
       // Got the item relative node in the List\r
       //\r
-      if (Index == (gCallbackKey - DRIVER_HEALTH_KEY_OFFSET)) { \r
+      if (Index == (gCallbackKey - DRIVER_HEALTH_KEY_OFFSET)) {\r
         DriverHealthInfo = DEVICE_MANAGER_HEALTH_INFO_FROM_LINK (Link);\r
         //\r
         // Process the driver's healthy status for the specify module\r
@@ -1560,7 +1560,7 @@ CallDriverHealth (
         RebootRequired = FALSE;\r
         ProcessSingleControllerHealth (\r
           DriverHealthInfo->DriverHealth,\r
-          DriverHealthInfo->ControllerHandle,      \r
+          DriverHealthInfo->ControllerHandle,\r
           DriverHealthInfo->ChildHandle,\r
           DriverHealthInfo->HealthStatus,\r
           &(DriverHealthInfo->MessageList),\r
@@ -1579,9 +1579,9 @@ CallDriverHealth (
     if (ActionRequest == EFI_BROWSER_ACTION_REQUEST_RESET) {\r
       EnableResetRequired ();\r
     }\r
-    \r
+\r
     //\r
-    // Force return to the form of Driver Health in Device Manager \r
+    // Force return to the form of Driver Health in Device Manager\r
     //\r
     gCallbackKey = DRIVER_HEALTH_RETURN_KEY;\r
   }\r
@@ -1591,12 +1591,12 @@ CallDriverHealth (
   //\r
   if (gCallbackKey == DRIVER_HEALTH_REPAIR_ALL_KEY) {\r
     ActionRequest = EFI_BROWSER_ACTION_REQUEST_NONE;\r
-    \r
+\r
     PlatformRepairAll (&DriverHealthList);\r
 \r
     gCallbackKey = DRIVER_HEALTH_RETURN_KEY;\r
   }\r
-   \r
+\r
   //\r
   // Remove driver health packagelist from HII database.\r
   //\r
@@ -1615,13 +1615,13 @@ CallDriverHealth (
     if (DriverHealthInfo->MessageList != NULL) {\r
       FreePool(DriverHealthInfo->MessageList);\r
       FreePool (DriverHealthInfo);\r
-    }   \r
+    }\r
   }\r
 \r
   HiiFreeOpCodeHandle (StartOpCodeHandle);\r
-  HiiFreeOpCodeHandle (EndOpCodeHandle); \r
+  HiiFreeOpCodeHandle (EndOpCodeHandle);\r
   HiiFreeOpCodeHandle (StartOpCodeHandleRepair);\r
-  HiiFreeOpCodeHandle (EndOpCodeHandleRepair); \r
+  HiiFreeOpCodeHandle (EndOpCodeHandleRepair);\r
 \r
   if (gCallbackKey == DRIVER_HEALTH_RETURN_KEY) {\r
     //\r
@@ -1639,11 +1639,11 @@ CallDriverHealth (
   This function called by CheckAllControllersHealthStatus () function in order to process a specify\r
   contoller's health state.\r
 \r
-  @param DriverHealthList   A Pointer to the list contain all of the platform driver health information. \r
+  @param DriverHealthList   A Pointer to the list contain all of the platform driver health information.\r
   @param DriverHandle       The handle of driver.\r
   @param ControllerHandle   The class guid specifies which form set will be displayed.\r
-  @param ChildHandle        The handle of the child controller to retrieve the health \r
-                            status on.  This is an optional parameter that may be NULL. \r
+  @param ChildHandle        The handle of the child controller to retrieve the health\r
+                            status on.  This is an optional parameter that may be NULL.\r
   @param DriverHealth       A pointer to the EFI_DRIVER_HEALTH_PROTOCOL instance.\r
   @param HealthStatus       The health status of the controller.\r
 \r
@@ -1740,7 +1740,7 @@ GetSingleControllerHealthStatus (
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
-  DriverHealthInfo->Signature          = DEVICE_MANAGER_DRIVER_HEALTH_INFO_SIGNATURE; \r
+  DriverHealthInfo->Signature          = DEVICE_MANAGER_DRIVER_HEALTH_INFO_SIGNATURE;\r
   DriverHealthInfo->DriverHandle       = DriverHandle;\r
   DriverHealthInfo->ControllerHandle   = ControllerHandle;\r
   DriverHealthInfo->ChildHandle        = ChildHandle;\r
@@ -1755,12 +1755,12 @@ GetSingleControllerHealthStatus (
 }\r
 \r
 /**\r
-  Collects all the EFI Driver Health Protocols currently present in the EFI Handle Database, \r
-  and queries each EFI Driver Health Protocol to determine if one or more of the controllers \r
-  managed by each EFI Driver Health Protocol instance are not healthy.  \r
+  Collects all the EFI Driver Health Protocols currently present in the EFI Handle Database,\r
+  and queries each EFI Driver Health Protocol to determine if one or more of the controllers\r
+  managed by each EFI Driver Health Protocol instance are not healthy.\r
 \r
   @param DriverHealthList   A Pointer to the list contain all of the platform driver health\r
-                            information. \r
+                            information.\r
 \r
   @retval    EFI_NOT_FOUND         No controller in the platform install Driver Health Protocol.\r
   @retval    EFI_SUCCESS           All the controllers in the platform are healthy.\r
@@ -1772,7 +1772,7 @@ GetAllControllersHealthStatus (
   IN OUT LIST_ENTRY  *DriverHealthList\r
   )\r
 {\r
-  EFI_STATUS                 Status; \r
+  EFI_STATUS                 Status;\r
   UINTN                      NumHandles;\r
   EFI_HANDLE                 *DriverHealthHandles;\r
   EFI_DRIVER_HEALTH_PROTOCOL *DriverHealth;\r
@@ -1782,7 +1782,7 @@ GetAllControllersHealthStatus (
   UINTN                      HandleCount;\r
   UINTN                      ControllerIndex;\r
   UINTN                      ChildIndex;\r
\r
+\r
   //\r
   // Initialize local variables\r
   //\r
@@ -1810,7 +1810,7 @@ GetAllControllersHealthStatus (
 \r
   if (EFI_ERROR (Status) || DriverHealthHandles == NULL) {\r
     //\r
-    // If the list of Driver Health Protocol handles can not be retrieved, then \r
+    // If the list of Driver Health Protocol handles can not be retrieved, then\r
     // return EFI_OUT_OF_RESOURCES\r
     //\r
     return EFI_OUT_OF_RESOURCES;\r
@@ -1831,7 +1831,7 @@ GetAllControllersHealthStatus (
     //\r
     // Retrieve the Driver Health Protocol from DriverHandle\r
     //\r
-    Status = gBS->HandleProtocol ( \r
+    Status = gBS->HandleProtocol (\r
                     DriverHealthHandles[DriverHealthIndex],\r
                     &gEfiDriverHealthProtocolGuid,\r
                     (VOID **)&DriverHealth\r
@@ -1858,7 +1858,7 @@ GetAllControllersHealthStatus (
     }\r
 \r
     //\r
-    // If all the controllers managed by this Driver Health Protocol are healthy, then skip to the next \r
+    // If all the controllers managed by this Driver Health Protocol are healthy, then skip to the next\r
     // Driver Health Protocol handle\r
     //\r
     if (HealthStatus == EfiDriverHealthStatusHealthy) {\r
@@ -1882,7 +1882,7 @@ GetAllControllersHealthStatus (
         );\r
       if (EFI_ERROR (Status) || Handles == NULL) {\r
         //\r
-        // If all the handles in the handle database can not be retrieved, then \r
+        // If all the handles in the handle database can not be retrieved, then\r
         // return EFI_OUT_OF_RESOURCES\r
         //\r
         Status = EFI_OUT_OF_RESOURCES;\r
@@ -1959,7 +1959,7 @@ Done:
 \r
 \r
 /**\r
-  Check the healthy status of the platform, this function will return immediately while found one driver \r
+  Check the healthy status of the platform, this function will return immediately while found one driver\r
   in the platform are not healthy.\r
 \r
   @retval FALSE      at least one driver in the platform are not healthy.\r
@@ -2002,13 +2002,13 @@ PlaformHealthStatusCheck (
   }\r
   //\r
   // Assume all modules are healthy.\r
-  // \r
+  //\r
   AllHealthy = TRUE;\r
 \r
   //\r
   // Found one or more Handles.\r
   //\r
-  if (!EFI_ERROR (Status)) {    \r
+  if (!EFI_ERROR (Status)) {\r
     for (Index = 0; Index < NoHandles; Index++) {\r
       Status = gBS->HandleProtocol (\r
                       DriverHealthHandles[Index],\r
@@ -2033,7 +2033,7 @@ PlaformHealthStatusCheck (
            //\r
            // Return immediately one driver's status not in healthy.\r
            //\r
-           return FALSE;         \r
+           return FALSE;\r
          }\r
       }\r
     }\r
@@ -2042,20 +2042,20 @@ PlaformHealthStatusCheck (
 }\r
 \r
 /**\r
-  Processes a single controller using the EFI Driver Health Protocol associated with \r
+  Processes a single controller using the EFI Driver Health Protocol associated with\r
   that controller. This algorithm continues to query the GetHealthStatus() service until\r
-  one of the legal terminal states of the EFI Driver Health Protocol is reached. This may \r
+  one of the legal terminal states of the EFI Driver Health Protocol is reached. This may\r
   require the processing of HII Messages, HII Form, and invocation of repair operations.\r
 \r
   @param DriverHealth       A pointer to the EFI_DRIVER_HEALTH_PROTOCOL instance.\r
   @param ControllerHandle   The class guid specifies which form set will be displayed.\r
-  @param ChildHandle        The handle of the child controller to retrieve the health \r
-                            status on.  This is an optional parameter that may be NULL. \r
+  @param ChildHandle        The handle of the child controller to retrieve the health\r
+                            status on.  This is an optional parameter that may be NULL.\r
   @param HealthStatus       The health status of the controller.\r
-  @param MessageList        An array of warning or error messages associated \r
-                            with the controller specified by ControllerHandle and \r
+  @param MessageList        An array of warning or error messages associated\r
+                            with the controller specified by ControllerHandle and\r
                             ChildHandle.  This is an optional parameter that may be NULL.\r
-  @param FormHiiHandle      The HII handle for an HII form associated with the \r
+  @param FormHiiHandle      The HII handle for an HII form associated with the\r
                             controller specified by ControllerHandle and ChildHandle.\r
   @param RebootRequired     Indicate whether a reboot is required to repair the controller.\r
 **/\r
@@ -2072,11 +2072,11 @@ ProcessSingleControllerHealth (
 {\r
   EFI_STATUS                         Status;\r
   EFI_DRIVER_HEALTH_STATUS           LocalHealthStatus;\r
-  \r
+\r
   LocalHealthStatus = HealthStatus;\r
   //\r
   // If the module need to be repaired or reconfiguration,  will process it until\r
-  // reach a terminal status. The status from EfiDriverHealthStatusRepairRequired after repair \r
+  // reach a terminal status. The status from EfiDriverHealthStatusRepairRequired after repair\r
   // will be in (Health, Failed, Configuration Required).\r
   //\r
   while(LocalHealthStatus == EfiDriverHealthStatusConfigurationRequired ||\r
@@ -2091,9 +2091,9 @@ ProcessSingleControllerHealth (
                                );\r
     }\r
     //\r
-    // Via a form of the driver need to do configuration provided to process of status in \r
+    // Via a form of the driver need to do configuration provided to process of status in\r
     // EfiDriverHealthStatusConfigurationRequired. The status after configuration should be in\r
-    // (Healthy, Reboot Required, Failed, Reconnect Required, Repair Required).   \r
+    // (Healthy, Reboot Required, Failed, Reconnect Required, Repair Required).\r
     //\r
     if (LocalHealthStatus == EfiDriverHealthStatusConfigurationRequired) {\r
       if (FormHiiHandle != NULL) {\r
@@ -2127,9 +2127,9 @@ ProcessSingleControllerHealth (
 \r
     if (*MessageList != NULL) {\r
       ProcessMessages (*MessageList);\r
-    }  \r
+    }\r
   }\r
-  \r
+\r
   //\r
   // Health status in {Healthy, Failed} may also have Messages need to process\r
   //\r
@@ -2144,7 +2144,7 @@ ProcessSingleControllerHealth (
   if (LocalHealthStatus == EfiDriverHealthStatusRebootRequired) {\r
     *RebootRequired = TRUE;\r
   }\r
-  \r
+\r
   //\r
   // Do reconnect if need.\r
   //\r
@@ -2165,11 +2165,11 @@ ProcessSingleControllerHealth (
 /**\r
   Reports the progress of a repair operation.\r
 \r
-  @param[in]  Value             A value between 0 and Limit that identifies the current \r
+  @param[in]  Value             A value between 0 and Limit that identifies the current\r
                                 progress of the repair operation.\r
 \r
   @param[in]  Limit             The maximum value of Value for the current repair operation.\r
-                                For example, a driver that wants to specify progress in \r
+                                For example, a driver that wants to specify progress in\r
                                 percent would use a Limit value of 100.\r
 \r
   @retval EFI_SUCCESS           The progress of a repair operation is reported successfully.\r
@@ -2197,7 +2197,7 @@ RepairNotify (
   Processes a set of messages returned by the GetHealthStatus ()\r
   service of the EFI Driver Health Protocol\r
 \r
-  @param    MessageList  The MessageList point to messages need to processed.  \r
+  @param    MessageList  The MessageList point to messages need to processed.\r
 \r
 **/\r
 VOID\r
@@ -2219,9 +2219,9 @@ ProcessMessages (
                         );\r
     if (MessageString != NULL) {\r
       //\r
-      // User can customize the output. Just simply print out the MessageString like below. \r
+      // User can customize the output. Just simply print out the MessageString like below.\r
       // Also can use the HiiHandle to display message on the front page.\r
-      // \r
+      //\r
       // Print(L"%s\n",MessageString);\r
       // gBS->Stall (100000);\r
     }\r
@@ -2233,7 +2233,7 @@ ProcessMessages (
   Repair the whole platform.\r
 \r
   This function is the main entry for user choose "Repair All" in the front page.\r
-  It will try to do recovery job till all the driver health protocol installed modules \r
+  It will try to do recovery job till all the driver health protocol installed modules\r
   reach a terminal state.\r
 \r
   @param DriverHealthList   A Pointer to the list contain all of the platform driver health\r
@@ -2244,7 +2244,7 @@ VOID
 PlatformRepairAll (\r
   IN LIST_ENTRY  *DriverHealthList\r
   )\r
-{ \r
+{\r
   DRIVER_HEALTH_INFO          *DriverHealthInfo;\r
   LIST_ENTRY                  *Link;\r
   BOOLEAN                     RebootRequired;\r
@@ -2263,7 +2263,7 @@ PlatformRepairAll (
     //\r
     ASSERT (DriverHealthInfo != NULL);\r
 \r
-    ProcessSingleControllerHealth ( \r
+    ProcessSingleControllerHealth (\r
       DriverHealthInfo->DriverHealth,\r
       DriverHealthInfo->ControllerHandle,\r
       DriverHealthInfo->ChildHandle,\r
@@ -2281,22 +2281,22 @@ PlatformRepairAll (
 \r
 /**\r
 \r
-  Select the best matching language according to front page policy for best user experience. \r
-  \r
-  This function supports both ISO 639-2 and RFC 4646 language codes, but language \r
-  code types may not be mixed in a single call to this function. \r
+  Select the best matching language according to front page policy for best user experience.\r
+\r
+  This function supports both ISO 639-2 and RFC 4646 language codes, but language\r
+  code types may not be mixed in a single call to this function.\r
 \r
   @param  SupportedLanguages   A pointer to a Null-terminated ASCII string that\r
-                               contains a set of language codes in the format \r
+                               contains a set of language codes in the format\r
                                specified by Iso639Language.\r
   @param  Iso639Language       If TRUE, then all language codes are assumed to be\r
                                in ISO 639-2 format.  If FALSE, then all language\r
                                codes are assumed to be in RFC 4646 language format.\r
 \r
   @retval NULL                 The best matching language could not be found in SupportedLanguages.\r
-  @retval NULL                 There are not enough resources available to return the best matching \r
+  @retval NULL                 There are not enough resources available to return the best matching\r
                                language.\r
-  @retval Other                A pointer to a Null-terminated ASCII string that is the best matching \r
+  @retval Other                A pointer to a Null-terminated ASCII string that is the best matching\r
                                language in SupportedLanguages.\r
 **/\r
 CHAR8 *\r
@@ -2334,7 +2334,7 @@ DriverHealthSelectBestLanguage (
   @param  ProtocolGuid         A pointer to an EFI_GUID. It points to Component Name (2) protocol GUID.\r
   @param  DriverBindingHandle  The handle on which the Component Name (2) protocol instance is retrieved.\r
   @param  ComponentName        A pointer to the Component Name (2) protocol interface.\r
-  @param  SupportedLanguage    The best suitable language that matches the SupportedLangues interface for the \r
+  @param  SupportedLanguage    The best suitable language that matches the SupportedLangues interface for the\r
                                located Component Name (2) instance.\r
 \r
   @retval EFI_SUCCESS          The Component Name (2) protocol instance is successfully located and we find\r
@@ -2411,8 +2411,8 @@ GetDriverNameWorker (
   EFI_COMPONENT_NAME_PROTOCOL    *ComponentName;\r
 \r
   //\r
-  // Retrieve Component Name (2) protocol instance on the driver binding handle and \r
-  // find the best language this instance supports. \r
+  // Retrieve Component Name (2) protocol instance on the driver binding handle and\r
+  // find the best language this instance supports.\r
   //\r
   Status = GetComponentNameWorker (\r
              ProtocolGuid,\r
@@ -2423,7 +2423,7 @@ GetDriverNameWorker (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
\r
+\r
   //\r
   // Get the driver name from Component Name (2) protocol instance on the driver binging handle.\r
   //\r
@@ -2433,7 +2433,7 @@ GetDriverNameWorker (
                             DriverName\r
                             );\r
   FreePool (BestLanguage);\r
\r
+\r
   return Status;\r
 }\r
 \r
@@ -2442,7 +2442,7 @@ GetDriverNameWorker (
   This function gets driver name from Component Name 2 protocol interface and Component Name protocol interface\r
   in turn. It first tries UEFI 2.0 Component Name 2 protocol interface and try to get the driver name.\r
   If the attempt fails, it then gets the driver name from EFI 1.1 Component Name protocol for backward\r
-  compatibility support. \r
+  compatibility support.\r
 \r
   @param  DriverBindingHandle  The handle on which the Component Name (2) protocol instance is retrieved.\r
   @param  DriverName           A pointer to the Unicode string to return. This Unicode string is the name\r
@@ -2483,7 +2483,7 @@ DriverHealthGetDriverName (
   This function gets controller name from Component Name 2 protocol interface and Component Name protocol interface\r
   in turn. It first tries UEFI 2.0 Component Name 2 protocol interface and try to get the controller name.\r
   If the attempt fails, it then gets the controller name from EFI 1.1 Component Name protocol for backward\r
-  compatibility support. \r
+  compatibility support.\r
 \r
   @param  ProtocolGuid         A pointer to an EFI_GUID. It points to Component Name (2) protocol GUID.\r
   @param  DriverBindingHandle  The handle on which the Component Name (2) protocol instance is retrieved.\r
@@ -2516,8 +2516,8 @@ GetControllerNameWorker (
   EFI_COMPONENT_NAME_PROTOCOL    *ComponentName;\r
 \r
   //\r
-  // Retrieve Component Name (2) protocol instance on the driver binding handle and \r
-  // find the best language this instance supports. \r
+  // Retrieve Component Name (2) protocol instance on the driver binding handle and\r
+  // find the best language this instance supports.\r
   //\r
   Status = GetComponentNameWorker (\r
              ProtocolGuid,\r
@@ -2547,9 +2547,9 @@ GetControllerNameWorker (
 /**\r
 \r
   This function gets controller name from Component Name 2 protocol interface and Component Name protocol interface\r
-  in turn. It first tries UEFI 2.0 Component Name 2 protocol interface and try to get the controller name. \r
+  in turn. It first tries UEFI 2.0 Component Name 2 protocol interface and try to get the controller name.\r
   If the attempt fails, it then gets the controller name from EFI 1.1 Component Name protocol for backward\r
-  compatibility support. \r
+  compatibility support.\r
 \r
   @param  DriverBindingHandle  The handle on which the Component Name (2) protocol instance is retrieved.\r
   @param  ControllerHandle     The handle of a controller that the driver specified by This is managing.\r
index 95bde8de5a14be68e477b0ad98f042322e3820d8..d48bd8249f365e9c144831da147ad616b1427d4a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The platform device manager reference implement\r
 \r
-Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -75,7 +75,7 @@ typedef struct {
 \r
   EFI_DRIVER_HEALTH_PROTOCOL      *DriverHealth;\r
   ///\r
-  /// Driver health messages of the specify Driver \r
+  /// Driver health messages of the specify Driver\r
   ///\r
   EFI_DRIVER_HEALTH_HII_MESSAGE   *MessageList;\r
 \r
@@ -192,7 +192,7 @@ InitializeDeviceManager (
 \r
   This function create the dynamic content for device manager. It includes\r
   section header for all class of devices, one-of opcode to set VBIOS.\r
-  \r
+\r
   @retval  EFI_SUCCESS             Operation is successful.\r
   @retval  Other values if failed to clean up the dynamic content from HII\r
            database.\r
@@ -210,11 +210,11 @@ CallDeviceManager (
   This function called by CheckAllControllersHealthStatus () function in order to process a specify\r
   contoller's health state.\r
 \r
-  @param DriverHealthList   A Pointer to the list contain all of the platform driver health information. \r
+  @param DriverHealthList   A Pointer to the list contain all of the platform driver health information.\r
   @param DriverHandle       The handle of driver.\r
   @param ControllerHandle   The class guid specifies which form set will be displayed.\r
-  @param ChildHandle        The handle of the child controller to retrieve the health \r
-                            status on.  This is an optional parameter that may be NULL. \r
+  @param ChildHandle        The handle of the child controller to retrieve the health\r
+                            status on.  This is an optional parameter that may be NULL.\r
   @param DriverHealth       A pointer to the EFI_DRIVER_HEALTH_PROTOCOL instance.\r
   @param HealthStatus       The health status of the controller.\r
 \r
@@ -237,9 +237,9 @@ GetSingleControllerHealthStatus (
   );\r
 \r
 /**\r
-  Collects all the EFI Driver Health Protocols currently present in the EFI Handle Database, \r
-  and queries each EFI Driver Health Protocol to determine if one or more of the controllers \r
-  managed by each EFI Driver Health Protocol instance are not healthy.  \r
+  Collects all the EFI Driver Health Protocols currently present in the EFI Handle Database,\r
+  and queries each EFI Driver Health Protocol to determine if one or more of the controllers\r
+  managed by each EFI Driver Health Protocol instance are not healthy.\r
 \r
   @param DriverHealthList   A Pointer to the list contain all of the platform driver health\r
                             information.\r
@@ -255,7 +255,7 @@ GetAllControllersHealthStatus (
   );\r
 \r
 /**\r
-  Check the healthy status of the platform, this function will return immediately while found one driver \r
+  Check the healthy status of the platform, this function will return immediately while found one driver\r
   in the platform are not healthy.\r
 \r
   @retval FALSE      at least one driver in the platform are not healthy.\r
@@ -271,7 +271,7 @@ PlaformHealthStatusCheck (
   Repair the whole platform.\r
 \r
   This function is the main entry for user choose "Repair All" in the front page.\r
-  It will try to do recovery job till all the driver health protocol installed modules \r
+  It will try to do recovery job till all the driver health protocol installed modules\r
   reach a terminal state.\r
 \r
   @param DriverHealthList   A Pointer to the list contain all of the platform driver health\r
@@ -284,20 +284,20 @@ PlatformRepairAll (
   );\r
 \r
 /**\r
-  Processes a single controller using the EFI Driver Health Protocol associated with \r
+  Processes a single controller using the EFI Driver Health Protocol associated with\r
   that controller. This algorithm continues to query the GetHealthStatus() service until\r
-  one of the legal terminal states of the EFI Driver Health Protocol is reached. This may \r
+  one of the legal terminal states of the EFI Driver Health Protocol is reached. This may\r
   require the processing of HII Messages, HII Form, and invocation of repair operations.\r
 \r
   @param DriverHealth       A pointer to the EFI_DRIVER_HEALTH_PROTOCOL instance.\r
   @param ControllerHandle   The class guid specifies which form set will be displayed.\r
-  @param ChildHandle        The handle of the child controller to retrieve the health \r
-                            status on.  This is an optional parameter that may be NULL. \r
+  @param ChildHandle        The handle of the child controller to retrieve the health\r
+                            status on.  This is an optional parameter that may be NULL.\r
   @param HealthStatus       The health status of the controller.\r
-  @param MessageList        An array of warning or error messages associated \r
-                            with the controller specified by ControllerHandle and \r
+  @param MessageList        An array of warning or error messages associated\r
+                            with the controller specified by ControllerHandle and\r
                             ChildHandle.  This is an optional parameter that may be NULL.\r
-  @param FormHiiHandle      The HII handle for an HII form associated with the \r
+  @param FormHiiHandle      The HII handle for an HII form associated with the\r
                             controller specified by ControllerHandle and ChildHandle.\r
   @param RebootRequired     Indicate whether a reboot is required to repair the controller.\r
 **/\r
@@ -315,11 +315,11 @@ ProcessSingleControllerHealth (
 /**\r
   Reports the progress of a repair operation.\r
 \r
-  @param[in]  Value             A value between 0 and Limit that identifies the current \r
+  @param[in]  Value             A value between 0 and Limit that identifies the current\r
                                 progress of the repair operation.\r
 \r
   @param[in]  Limit             The maximum value of Value for the current repair operation.\r
-                                For example, a driver that wants to specify progress in \r
+                                For example, a driver that wants to specify progress in\r
                                 percent would use a Limit value of 100.\r
 \r
   @retval EFI_SUCCESS           The progress of a repair operation is reported successfully.\r
@@ -336,7 +336,7 @@ RepairNotify (
   Processes a set of messages returned by the GetHealthStatus ()\r
   service of the EFI Driver Health Protocol\r
 \r
-  @param    MessageList  The MessageList point to messages need to processed.  \r
+  @param    MessageList  The MessageList point to messages need to processed.\r
 \r
 **/\r
 VOID\r
@@ -346,10 +346,10 @@ ProcessMessages (
 \r
 \r
 /**\r
-  Collect and display the platform's driver health relative information, allow user to do interactive \r
+  Collect and display the platform's driver health relative information, allow user to do interactive\r
   operation while the platform is unhealthy.\r
 \r
-  This function display a form which divided into two parts. The one list all modules which has installed \r
+  This function display a form which divided into two parts. The one list all modules which has installed\r
   driver health protocol. The list usually contain driver name, controller name, and it's health info.\r
   While the driver name can't be retrieved, will use device path as backup. The other part of the form provide\r
   a choice to the user to repair all platform.\r
@@ -362,22 +362,22 @@ CallDriverHealth (
 \r
 /**\r
 \r
-  Select the best matching language according to front page policy for best user experience. \r
-  \r
-  This function supports both ISO 639-2 and RFC 4646 language codes, but language \r
-  code types may not be mixed in a single call to this function. \r
+  Select the best matching language according to front page policy for best user experience.\r
+\r
+  This function supports both ISO 639-2 and RFC 4646 language codes, but language\r
+  code types may not be mixed in a single call to this function.\r
 \r
   @param  SupportedLanguages   A pointer to a Null-terminated ASCII string that\r
-                               contains a set of language codes in the format \r
+                               contains a set of language codes in the format\r
                                specified by Iso639Language.\r
   @param  Iso639Language       If TRUE, then all language codes are assumed to be\r
                                in ISO 639-2 format.  If FALSE, then all language\r
                                codes are assumed to be in RFC 4646 language format.\r
 \r
   @retval NULL                 The best matching language could not be found in SupportedLanguages.\r
-  @retval NULL                 There are not enough resources available to return the best matching \r
+  @retval NULL                 There are not enough resources available to return the best matching\r
                                language.\r
-  @retval Other                A pointer to a Null-terminated ASCII string that is the best matching \r
+  @retval Other                A pointer to a Null-terminated ASCII string that is the best matching\r
                                language in SupportedLanguages.\r
 **/\r
 CHAR8 *\r
@@ -394,7 +394,7 @@ DriverHealthSelectBestLanguage (
   @param  ProtocolGuid         A pointer to an EFI_GUID. It points to Component Name (2) protocol GUID.\r
   @param  DriverBindingHandle  The handle on which the Component Name (2) protocol instance is retrieved.\r
   @param  ComponentName        A pointer to the Component Name (2) protocol interface.\r
-  @param  SupportedLanguage    The best suitable language that matches the SupportedLangues interface for the \r
+  @param  SupportedLanguage    The best suitable language that matches the SupportedLangues interface for the\r
                                located Component Name (2) instance.\r
 \r
   @retval EFI_SUCCESS          The Component Name (2) protocol instance is successfully located and we find\r
@@ -440,7 +440,7 @@ GetDriverNameWorker (
   This function gets driver name from Component Name 2 protocol interface and Component Name protocol interface\r
   in turn. It first tries UEFI 2.0 Component Name 2 protocol interface and try to get the driver name.\r
   If the attempt fails, it then gets the driver name from EFI 1.1 Component Name protocol for backward\r
-  compatibility support. \r
+  compatibility support.\r
 \r
   @param  DriverBindingHandle  The handle on which the Component Name (2) protocol instance is retrieved.\r
   @param  DriverName           A pointer to the Unicode string to return. This Unicode string is the name\r
@@ -462,7 +462,7 @@ DriverHealthGetDriverName (
   This function gets controller name from Component Name 2 protocol interface and Component Name protocol interface\r
   in turn. It first tries UEFI 2.0 Component Name 2 protocol interface and try to get the controller name.\r
   If the attempt fails, it then gets the controller name from EFI 1.1 Component Name protocol for backward\r
-  compatibility support. \r
+  compatibility support.\r
 \r
   @param  ProtocolGuid         A pointer to an EFI_GUID. It points to Component Name (2) protocol GUID.\r
   @param  DriverBindingHandle  The handle on which the Component Name (2) protocol instance is retrieved.\r
@@ -492,9 +492,9 @@ GetControllerNameWorker (
 \r
 /**\r
   This function gets controller name from Component Name 2 protocol interface and Component Name protocol interface\r
-  in turn. It first tries UEFI 2.0 Component Name 2 protocol interface and try to get the controller name. \r
+  in turn. It first tries UEFI 2.0 Component Name 2 protocol interface and try to get the controller name.\r
   If the attempt fails, it then gets the controller name from EFI 1.1 Component Name protocol for backward\r
-  compatibility support. \r
+  compatibility support.\r
 \r
   @param  DriverBindingHandle  The handle on which the Component Name (2) protocol instance is retrieved.\r
   @param  ControllerHandle     The handle of a controller that the driver specified by This is managing.\r
index 8d1b10b301765ca40c4a3609237e7d97b208d4eb..39d89535cca2f90cc1b225964027e10854c9b4e3 100644 (file)
@@ -1,16 +1,16 @@
 ///** @file\r
-//  \r
+//\r
 //    String definitions for the Device Manager.\r
-//  \r
-//  Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
+//\r
+//  Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //  This program and the accompanying materials\r
 //  are licensed and made available under the terms and conditions of the BSD License\r
 //  which accompanies this distribution.  The full text of the license may be found at\r
 //  http://opensource.org/licenses/bsd-license.php\r
-//  \r
+//\r
 //  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 //  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-//  \r
+//\r
 //**/\r
 \r
 /=#\r
 #string STR_DH_STATUS_LIST             #language en-US  "All Driver Health Status List"\r
                                        #language fr-FR  "All Driver Health Status List"\r
 #string STR_DRIVER_HEALTH_REPAIR_ALL   #language en-US  "Repair All"\r
-                                       #language fr-FR  "Repair All"                                       \r
+                                       #language fr-FR  "Repair All"\r
 #string STR_DH_REPAIR_ALL_TITLE        #language en-US  "Repair the whole platform"\r
                                        #language fr-FR  "Repair the whole platform"\r
 #string STR_DH_REPAIR_ALL_HELP         #language en-US  "Repair the whole platform until all modules reach terminal status"\r
                                        #language fr-FR  "Repair the whole platform until all modules reach terminal status"\r
 #string STR_DH_REPAIR_SINGLE_TITLE     #language en-US  "Item cannot get name"\r
-                                       #language fr-FR  "Item cannot get name"  \r
+                                       #language fr-FR  "Item cannot get name"\r
 #string STR_DH_REPAIR_SINGLE_HELP      #language en-US  "Repair single driver with specify controller"\r
                                        #language fr-FR  "Repair single driver with specify controller"\r
 \r
index 2163710cc9666bb875b326dcfcf60514ff640738..bdf63eabbf3ec3315b9d1eb6af64a4d59d7bea90 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   FrontPage routines to handle the callbacks and browser calls\r
 \r
-Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -189,7 +189,7 @@ FrontPageCallback (
     //\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   gCallbackKey = QuestionId;\r
 \r
   if (Action == EFI_BROWSER_ACTION_CHANGED) {\r
@@ -210,7 +210,7 @@ FrontPageCallback (
       // Allocate working buffer for RFC 4646 language in supported LanguageString.\r
       //\r
       Lang = AllocatePool (AsciiStrSize (mLanguageString));\r
-      ASSERT (Lang != NULL);  \r
+      ASSERT (Lang != NULL);\r
 \r
       Index = 0;\r
       LangCode = mLanguageString;\r
@@ -279,7 +279,7 @@ FrontPageCallback (
     }\r
   }\r
 \r
-  return EFI_SUCCESS;  \r
+  return EFI_SUCCESS;\r
 }\r
 \r
 /**\r
@@ -415,7 +415,7 @@ InitializeFrontPage (
   if (gFrontPagePrivate.LanguageToken == NULL) {\r
     //\r
     // Count the language list number.\r
-    //  \r
+    //\r
     LangCode      = mLanguageString;\r
     Lang          = AllocatePool (AsciiStrSize (mLanguageString));\r
     ASSERT (Lang != NULL);\r
@@ -739,7 +739,7 @@ UpdateFrontPageStrings (
   SMBIOS_TABLE_TYPE19               *Type19Record;\r
   EFI_SMBIOS_TABLE_HEADER           *Record;\r
   UINT64                            InstalledMemory;\r
-  \r
+\r
   InstalledMemory = 0;\r
 \r
   //\r
@@ -906,7 +906,7 @@ ShowProgress (
     SetMem (&Foreground, sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL), 0xff);\r
     SetMem (&Background, sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL), 0x0);\r
     SetMem (&Color, sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL), 0xff);\r
-    \r
+\r
     TmpStr = GetStringById (STRING_TOKEN (STR_START_BOOT_OPTION));\r
 \r
     if (!FeaturePcdGet(PcdBootlogoOnlyEnable)) {\r
@@ -917,7 +917,7 @@ ShowProgress (
         PlatformBdsShowProgress (Foreground, Background, TmpStr, Color, 0, 0);\r
       }\r
     }\r
-    \r
+\r
 \r
     TimeoutRemain = TimeoutDefault;\r
     while (TimeoutRemain != 0) {\r
@@ -928,7 +928,7 @@ ShowProgress (
         break;\r
       }\r
       TimeoutRemain--;\r
-      \r
+\r
       if (!FeaturePcdGet(PcdBootlogoOnlyEnable)) {\r
         //\r
         // Show progress\r
@@ -945,7 +945,7 @@ ShowProgress (
         }\r
       }\r
     }\r
-    \r
+\r
     if (TmpStr != NULL) {\r
       gBS->FreePool (TmpStr);\r
     }\r
@@ -997,7 +997,7 @@ PlatformBdsEnterFrontPage (
   )\r
 {\r
   EFI_STATUS                         Status;\r
-  EFI_STATUS                         StatusHotkey; \r
+  EFI_STATUS                         StatusHotkey;\r
   EFI_BOOT_LOGO_PROTOCOL             *BootLogo;\r
   EFI_GRAPHICS_OUTPUT_PROTOCOL       *GraphicsOutput;\r
   EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL    *SimpleTextOut;\r
@@ -1020,7 +1020,7 @@ PlatformBdsEnterFrontPage (
 \r
   if (!mModeInitialized) {\r
     //\r
-    // After the console is ready, get current video resolution \r
+    // After the console is ready, get current video resolution\r
     // and text mode before launching setup at first time.\r
     //\r
     Status = gBS->HandleProtocol (\r
@@ -1031,7 +1031,7 @@ PlatformBdsEnterFrontPage (
     if (EFI_ERROR (Status)) {\r
       GraphicsOutput = NULL;\r
     }\r
-    \r
+\r
     Status = gBS->HandleProtocol (\r
                     gST->ConsoleOutHandle,\r
                     &gEfiSimpleTextOutProtocolGuid,\r
@@ -1039,7 +1039,7 @@ PlatformBdsEnterFrontPage (
                     );\r
     if (EFI_ERROR (Status)) {\r
       SimpleTextOut = NULL;\r
-    }  \r
+    }\r
 \r
     if (GraphicsOutput != NULL) {\r
       //\r
@@ -1062,9 +1062,9 @@ PlatformBdsEnterFrontPage (
 \r
     //\r
     // Get user defined text mode for setup.\r
-    //  \r
+    //\r
     mSetupHorizontalResolution = PcdGet32 (PcdSetupVideoHorizontalResolution);\r
-    mSetupVerticalResolution   = PcdGet32 (PcdSetupVideoVerticalResolution);      \r
+    mSetupVerticalResolution   = PcdGet32 (PcdSetupVideoVerticalResolution);\r
     mSetupTextModeColumn       = PcdGet32 (PcdSetupConOutColumn);\r
     mSetupTextModeRow          = PcdGet32 (PcdSetupConOutRow);\r
 \r
@@ -1091,7 +1091,7 @@ PlatformBdsEnterFrontPage (
   if (!EFI_ERROR(Status) && ((OsIndication & EFI_OS_INDICATIONS_BOOT_TO_FW_UI) != 0)) {\r
     //\r
     // Clear EFI_OS_INDICATIONS_BOOT_TO_FW_UI to acknowledge OS\r
-    // \r
+    //\r
     OsIndication &= ~((UINT64)EFI_OS_INDICATIONS_BOOT_TO_FW_UI);\r
     Status = gRT->SetVariable (\r
                     L"OsIndications",\r
@@ -1128,7 +1128,7 @@ PlatformBdsEnterFrontPage (
       if (!FeaturePcdGet(PcdBootlogoOnlyEnable) || !EFI_ERROR(Status) || !EFI_ERROR(StatusHotkey)){\r
         //\r
         // Ensure screen is clear when switch Console from Graphics mode to Text mode\r
-        // Skip it in normal boot \r
+        // Skip it in normal boot\r
         //\r
         gST->ConOut->EnableCursor (gST->ConOut, TRUE);\r
         gST->ConOut->ClearScreen (gST->ConOut);\r
@@ -1152,8 +1152,8 @@ PlatformBdsEnterFrontPage (
   }\r
 \r
   //\r
-  // Install BM HiiPackages. \r
-  // Keep BootMaint HiiPackage, so that it can be covered by global setting. \r
+  // Install BM HiiPackages.\r
+  // Keep BootMaint HiiPackage, so that it can be covered by global setting.\r
   //\r
   InitBMPackage ();\r
 \r
@@ -1163,7 +1163,7 @@ PlatformBdsEnterFrontPage (
     // Set proper video resolution and text mode for setup\r
     //\r
     BdsSetConsoleMode (TRUE);\r
-    \r
+\r
     InitializeFrontPage (FALSE);\r
 \r
     //\r
@@ -1272,9 +1272,9 @@ Exit:
 \r
 /**\r
   This function will change video resolution and text mode\r
-  according to defined setup mode or defined boot mode  \r
+  according to defined setup mode or defined boot mode\r
 \r
-  @param  IsSetupMode   Indicate mode is changed to setup mode or boot mode. \r
+  @param  IsSetupMode   Indicate mode is changed to setup mode or boot mode.\r
 \r
   @retval  EFI_SUCCESS  Mode is changed successfully.\r
   @retval  Others             Mode failed to be changed.\r
@@ -1302,13 +1302,13 @@ BdsSetConsoleMode (
   EFI_STATUS                            Status;\r
   UINTN                                 Index;\r
   UINTN                                 CurrentColumn;\r
-  UINTN                                 CurrentRow;  \r
+  UINTN                                 CurrentRow;\r
 \r
   MaxGopMode  = 0;\r
   MaxTextMode = 0;\r
 \r
   //\r
-  // Get current video resolution and text mode \r
+  // Get current video resolution and text mode\r
   //\r
   Status = gBS->HandleProtocol (\r
                   gST->ConsoleOutHandle,\r
@@ -1326,7 +1326,7 @@ BdsSetConsoleMode (
                   );\r
   if (EFI_ERROR (Status)) {\r
     SimpleTextOut = NULL;\r
-  }  \r
+  }\r
 \r
   if ((GraphicsOutput == NULL) || (SimpleTextOut == NULL)) {\r
     return EFI_UNSUPPORTED;\r
@@ -1347,12 +1347,12 @@ BdsSetConsoleMode (
     NewHorizontalResolution = mBootHorizontalResolution;\r
     NewVerticalResolution   = mBootVerticalResolution;\r
     NewColumns              = mBootTextModeColumn;\r
-    NewRows                 = mBootTextModeRow;   \r
+    NewRows                 = mBootTextModeRow;\r
   }\r
-  \r
+\r
   if (GraphicsOutput != NULL) {\r
     MaxGopMode  = GraphicsOutput->Mode->MaxMode;\r
-  } \r
+  }\r
 \r
   if (SimpleTextOut != NULL) {\r
     MaxTextMode = SimpleTextOut->Mode->MaxMode;\r
@@ -1456,8 +1456,8 @@ BdsSetConsoleMode (
   ASSERT_EFI_ERROR (Status);\r
   Status = PcdSet32S (PcdConOutRow, NewRows);\r
   ASSERT_EFI_ERROR (Status);\r
-  \r
-  \r
+\r
+\r
   //\r
   // Video mode is changed, so restart graphics console driver and higher level driver.\r
   // Reconnect graphics console driver and higher level driver.\r
index a7b1c5bca092ee3ea6ae5b1a59e7613550443266..bc2c0612d0495630361d56a1a361e15c8078f80d 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   FrontPage routines to handle the callbacks and browser calls\r
 \r
-Copyright (c) 2004 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -236,9 +236,9 @@ PlatformBdsEnterFrontPage (
 \r
 /**\r
   This function will change video resolution and text mode\r
-  according to defined setup mode or defined boot mode  \r
+  according to defined setup mode or defined boot mode\r
 \r
-  @param  IsSetupMode   Indicate mode is changed to setup mode or boot mode. \r
+  @param  IsSetupMode   Indicate mode is changed to setup mode or boot mode.\r
 \r
   @retval  EFI_SUCCESS  Mode is changed successfully.\r
   @retval  Others             Mode failed to be changed.\r
index 84f8fb47704131a7b0e305bc670c380e32bee851..82e71f7d0abfbd82e8465effe0ce5556c0d4a099 100644 (file)
@@ -1,16 +1,16 @@
 ///** @file\r
-//  \r
+//\r
 //    String definitions for BdsPlatform formset.\r
-//  \r
-//  Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r
+//\r
+//  Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //  This program and the accompanying materials\r
 //  are licensed and made available under the terms and conditions of the BSD License\r
 //  which accompanies this distribution.  The full text of the license may be found at\r
 //  http://opensource.org/licenses/bsd-license.php\r
-//  \r
+//\r
 //  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 //  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-//  \r
+//\r
 //**/\r
 \r
 /=#\r
index e061991ea2b10b956641ff6b529d763f37d25d15..8e33062a546b9837dfda31ae3e08eddd60e1906b 100644 (file)
@@ -2,7 +2,7 @@
   Provides a way for 3rd party applications to register themselves for launch by the\r
   Boot Manager based on hot key\r
 \r
-Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -73,15 +73,15 @@ EFI_STATUS
 HotkeyBoot (\r
   VOID\r
   )\r
-{ \r
+{\r
   EFI_STATUS           Status;\r
   UINTN                ExitDataSize;\r
   CHAR16               *ExitData;\r
 \r
   if (mHotkeyBootOption == NULL) {\r
     return EFI_NOT_FOUND;\r
-  } \r
-  \r
+  }\r
+\r
   BdsLibConnectDevicePath (mHotkeyBootOption->DevicePath);\r
 \r
   //\r
@@ -162,7 +162,7 @@ HotkeyCallback (
     HotkeyData = &Hotkey->KeyData[Hotkey->WaitingKey];\r
     if ((KeyData->Key.ScanCode == HotkeyData->Key.ScanCode) &&\r
         (KeyData->Key.UnicodeChar == HotkeyData->Key.UnicodeChar) &&\r
-        (((KeyData->KeyState.KeyShiftState & EFI_SHIFT_STATE_VALID) != 0) ? \r
+        (((KeyData->KeyState.KeyShiftState & EFI_SHIFT_STATE_VALID) != 0) ?\r
           (KeyData->KeyState.KeyShiftState == HotkeyData->KeyState.KeyShiftState) : TRUE\r
         )\r
        ) {\r
@@ -421,7 +421,7 @@ IsKeyOptionVariable (
   )\r
 {\r
   UINTN         Index;\r
-  \r
+\r
   if (!CompareGuid (Guid, &gEfiGlobalVariableGuid) ||\r
       (StrSize (Name) != sizeof (L"Key####")) ||\r
       (StrnCmp (Name, L"Key", 3) != 0)\r
index ddb2f9398080455f41a520f21e42e6a85221b41b..94c72cf984a32cb0acf8ba58be1306e456059db0 100644 (file)
@@ -2,7 +2,7 @@
   Set the level of support for Hardware Error Record Persistence that is\r
   implemented by the platform.\r
 \r
-Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -28,9 +28,9 @@ InitializeHwErrRecSupport (
 {\r
   EFI_STATUS    Status;\r
   UINT16        HardwareErrorRecordLevel;\r
-  \r
+\r
   HardwareErrorRecordLevel = PcdGet16 (PcdHardwareErrorRecordLevel);\r
-  \r
+\r
   if (HardwareErrorRecordLevel != 0) {\r
     //\r
     // If level value equal 0, no need set to 0 to variable area because UEFI specification\r
index 39455e44da04da1e56376bf078b37db140dc0f65..bb67880e972b02430bae9b4a18f1776b9c82d8c5 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Language settings\r
 \r
-Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -343,7 +343,7 @@ IsLangInSupportedLangCodes(
   IN  CHAR8            *SupportedLang,\r
   IN  CHAR8            *Lang,\r
   IN  BOOLEAN          Iso639Language\r
-  ) \r
+  )\r
 {\r
   UINTN    Index;\r
   UINTN    CompareLength;\r
@@ -375,8 +375,8 @@ IsLangInSupportedLangCodes(
       // Determine the length of the next language code in SupportedLang\r
       //\r
       for (CompareLength = 0; SupportedLang[CompareLength] != '\0' && SupportedLang[CompareLength] != ';'; CompareLength++);\r
-      \r
-      if ((CompareLength == LanguageLength) && \r
+\r
+      if ((CompareLength == LanguageLength) &&\r
           (AsciiStrnCmp (Lang, SupportedLang, CompareLength) == 0)) {\r
         //\r
         // Successfully find the Lang string in SupportedLang string.\r
@@ -404,7 +404,7 @@ VOID
 InitializeLangVariable (\r
   IN CHAR16     *LangName,\r
   IN CHAR8      *SupportedLang,\r
-  IN CHAR8      *DefaultLang,     \r
+  IN CHAR8      *DefaultLang,\r
   IN BOOLEAN    Iso639Language\r
   )\r
 {\r
index 118808201d1f02db454ff6d34f346bcfe9de303e..28853d23dd9d15ca16b16ff9f511f7bb7447f1f3 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Perform the platform memory test\r
 \r
-Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -282,7 +282,7 @@ BdsMemoryTest (
     FreePool (Pos);\r
     return EFI_SUCCESS;\r
   }\r
-  \r
+\r
   if (!FeaturePcdGet(PcdBootlogoOnlyEnable)) {\r
     TmpStr = GetStringById (STRING_TOKEN (STR_ESC_TO_SKIP_MEM_TEST));\r
 \r
@@ -310,7 +310,7 @@ BdsMemoryTest (
 \r
       ASSERT (0);\r
     }\r
-    \r
+\r
     if (!FeaturePcdGet(PcdBootlogoOnlyEnable)) {\r
       TempData = (UINT32) DivU64x32 (TotalMemorySize, 16);\r
       TestPercent = (UINTN) DivU64x32 (\r
@@ -326,7 +326,7 @@ BdsMemoryTest (
           //\r
           StrnCatS (\r
             StrPercent,\r
-            sizeof (StrPercent) / sizeof (CHAR16), \r
+            sizeof (StrPercent) / sizeof (CHAR16),\r
             TmpStr,\r
             sizeof (StrPercent) / sizeof (CHAR16) - StrLen (StrPercent) - 1\r
             );\r
@@ -412,11 +412,11 @@ Done:
       100,\r
       (UINTN) PreviousValue\r
       );\r
-    \r
+\r
   } else {\r
     DEBUG ((EFI_D_INFO, "%d bytes of system memory tested OK\r\n", TotalMemorySize));\r
   }\r
-  \r
+\r
   FreePool (Pos);\r
 \r
 \r
index c0ada9535a23abf409a7d30657b9ef5f10a46a3d..bfd202ce23cd53930daec02b9d06e0ddaba54c60 100644 (file)
@@ -1,16 +1,16 @@
 ///** @file\r
-//  \r
+//\r
 //    String definitions for BdsPlatform formset.\r
-//  \r
-//  Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+//\r
+//  Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //  This program and the accompanying materials\r
 //  are licensed and made available under the terms and conditions of the BSD License\r
 //  which accompanies this distribution.  The full text of the license may be found at\r
 //  http://opensource.org/licenses/bsd-license.php\r
-//  \r
+//\r
 //  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 //  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-//  \r
+//\r
 //**/\r
 \r
 /=#\r
@@ -52,4 +52,4 @@
                                        #language fr-FR  "le Système rencontre les erreurs de mémoire"\r
 #string STR_START_BOOT_OPTION          #language en-US  "Start boot option"\r
                                        #language fr-FR  "l'option de botte de Début"\r
-                                       
\ No newline at end of file
+\r
index d637decb9453c42e4a44137da28b8028f6ab77c4..d1d895194719cce79a907db9c71699e3d051ddfc 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
-  UEFI Component Name(2) protocol implementation for VGA Class Driver. \r
-\r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  UEFI Component Name(2) protocol implementation for VGA Class Driver.\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
index 2d672797fa942535e37ced9d6bdd07d5af246b98..a9da74c7920eeb8161abbbfc682de0b711108a9c 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   VGA Class Driver that managers VGA devices and produces Simple Text Output Protocol.\r
 \r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -310,7 +310,7 @@ UNICODE_TO_CHAR  UnicodeToPcAnsiOrAscii[] = {
 \r
   @param  ImageHandle       The firmware allocated handle for the EFI image.\r
   @param  SystemTable       A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS       The entry point is executed successfully.\r
 \r
 **/\r
@@ -341,7 +341,7 @@ InitializeVgaClass(
 \r
 /**\r
   Internal worker function to program CRTC register via PCI I/O Protocol.\r
-  \r
+\r
   @param VgaClassDev  device instance object\r
   @param Address      Address of register to write\r
   @param Data         Data to write to register.\r
@@ -375,12 +375,12 @@ WriteCrtc (
 \r
 /**\r
   Internal worker function to set cursor's position to VgaClass device\r
-  \r
+\r
   @param  VgaClassDev   Private data structure for device instance.\r
   @param  Column        Colomn of position to set cursor to.\r
   @param  Row           Row of position to set cursor to.\r
   @param  MaxColumn     Max value of column.\r
-  \r
+\r
 **/\r
 VOID\r
 SetVideoCursorPosition (\r
@@ -461,7 +461,7 @@ LibIsValidTextGraphics (
 \r
 /**\r
   Internal worker function to check whether input value is an ASCII char.\r
-  \r
+\r
   @param  Char     Character to check.\r
 \r
   @retval TRUE     Input value is an ASCII char.\r
@@ -482,7 +482,7 @@ IsValidAscii (
 \r
 /**\r
   Internal worker function to check whether input value is a unicode control char.\r
-  \r
+\r
   @param  Char    Character to check.\r
 \r
   @retval TRUE     Input value is a unicode control char.\r
@@ -712,7 +712,7 @@ ErrorExit:
 \r
 /**\r
   Starts the device controller.\r
-  \r
+\r
   This function implments EFI_DRIVER_BINDING_PROTOCOL.Stop().\r
   It stops this driver on Controller. Support stopping any child handles\r
   created by this driver.\r
@@ -798,7 +798,7 @@ VgaClassDriverBindingStop (
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset().\r
   It resets the text output device hardware. The cursor position is set to (0, 0),\r
   and the screen is cleared to the default background color for the output device.\r
-  \r
+\r
   @param  This                 Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.\r
   @param  ExtendedVerification Indicates that the driver may perform a more exhaustive\r
                                verification operation of the device during reset.\r
@@ -837,7 +837,7 @@ VgaClassReset (
 \r
 /**\r
   Writes a Unicode string to the output device.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.OutputString().\r
   It writes a Unicode string to the output device. This is the most basic output mechanism\r
   on an output device.\r
@@ -977,7 +977,7 @@ VgaClassOutputString (
 \r
 /**\r
   Verifies that all characters in a Unicode string can be output to the target device.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.TestString().\r
   It verifies that all characters in a Unicode string can be output to the target device.\r
 \r
@@ -1009,13 +1009,13 @@ VgaClassTestString (
 \r
 /**\r
   Clears the output device(s) display to the currently selected background color.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.ClearScreen().\r
   The ClearScreen() function clears the output device(s) display to the currently\r
   selected background color. The cursor position is set to (0, 0).\r
 \r
   @param  This                   Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.\r
-  \r
+\r
   @retval EFI_SUCESS             The operation completed successfully.\r
   @retval EFI_DEVICE_ERROR       The device had an error and could not complete the request.\r
   @retval EFI_UNSUPPORTED        The output device is not in a valid text mode.\r
@@ -1063,7 +1063,7 @@ VgaClassClearScreen (
 \r
 /**\r
   Sets the background and foreground colors for theOutputString() and ClearScreen() functions.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetAttribute().\r
   It sets the background and foreground colors for the OutputString() and ClearScreen() functions.\r
   The color mask can be set even when the device is in an invalid text mode.\r
@@ -1074,7 +1074,7 @@ VgaClassClearScreen (
   @param  Attribute              The attribute to set.\r
                                  Bits 0..3 are the foreground color,\r
                                  and bits 4..6 are the background color.\r
-  \r
+\r
   @retval EFI_SUCCESS            The requested attributes were set.\r
   @retval EFI_DEVICE_ERROR       The device had an error and could not complete the request.\r
 \r
@@ -1096,15 +1096,15 @@ VgaClassSetAttribute (
 \r
 /**\r
   Sets the current coordinates of the cursor position.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetCursorPosition().\r
   It sets the current coordinates of the cursor position.\r
   The upper left corner of the screen is defined as coordinate (0, 0).\r
-  \r
+\r
   @param  This                   Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.\r
   @param  Column                 Column of position to set the cursor to.\r
   @param  Row                    Row of position to set the cursor to.\r
-  \r
+\r
   @retval EFI_SUCCESS            The operation completed successfully.\r
   @retval EFI_DEVICE_ERROR       The device had an error and could not complete the request.\r
   @retval EFI_UNSUPPORTED        The output device is not in a valid text mode, or the cursor\r
@@ -1150,14 +1150,14 @@ VgaClassSetCursorPosition (
 \r
 /**\r
   Makes the cursor visible or invisible.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.EnableCursor().\r
   It makes the cursor visible or invisible.\r
 \r
   @param  This                   Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.\r
   @param  Visible                If TRUE, the cursor is set to be visible.\r
                                  If FALSE, the cursor is set to be invisible.\r
-  \r
+\r
   @retval EFI_SUCESS             The operation completed successfully.\r
   @retval EFI_DEVICE_ERROR       The device had an error and could not complete the request or the\r
                                  device does not support changing the cursor mode.\r
@@ -1208,7 +1208,7 @@ VgaClassEnableCursor (
   @param  ModeNumber             The mode number to return information on.\r
   @param  Columns                Columen in current mode number\r
   @param  Rows                   Row in current mode number.\r
-  \r
+\r
   @retval EFI_SUCCESS            The requested mode information was returned.\r
   @retval EFI_DEVICE_ERROR       The device had an error and could not complete the request.\r
   @retval EFI_UNSUPPORTED        The mode number was not valid.\r
@@ -1251,7 +1251,7 @@ VgaClassQueryMode (
 \r
 /**\r
   Sets the output device(s) to a specified mode.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.QueryMode().\r
   It sets the output device(s) to the requested mode.\r
   On success the device is in the geometry for the requested mode,\r
@@ -1259,7 +1259,7 @@ VgaClassQueryMode (
 \r
   @param  This                   Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.\r
   @param  ModeNumber             The text mode to set.\r
-  \r
+\r
   @retval EFI_SUCCESS            The requested text mode was set.\r
   @retval EFI_DEVICE_ERROR       The device had an error and could not complete the request.\r
   @retval EFI_UNSUPPORTED        The mode number was not valid.\r
index 8ecd4c068b4030ee240515ecb4fd5e34cdab1ac5..84a8b1797862b9b8a0bacc80ecbc49efa46c0fbd 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   Internal include file of the VGA Class Driver.\r
 \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -132,7 +132,7 @@ VgaClassDriverBindingStart (
 \r
 /**\r
   Starts the device controller.\r
-  \r
+\r
   This function implments EFI_DRIVER_BINDING_PROTOCOL.Stop().\r
   It stops this driver on Controller. Support stopping any child handles\r
   created by this driver.\r
@@ -278,7 +278,7 @@ VgaClassComponentNameGetControllerName (
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset().\r
   It resets the text output device hardware. The cursor position is set to (0, 0),\r
   and the screen is cleared to the default background color for the output device.\r
-  \r
+\r
   @param  This                 Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.\r
   @param  ExtendedVerification Indicates that the driver may perform a more exhaustive\r
                                verification operation of the device during reset.\r
@@ -296,7 +296,7 @@ VgaClassReset (
 \r
 /**\r
   Writes a Unicode string to the output device.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.OutputString().\r
   It writes a Unicode string to the output device. This is the most basic output mechanism\r
   on an output device.\r
@@ -319,7 +319,7 @@ VgaClassOutputString (
 \r
 /**\r
   Verifies that all characters in a Unicode string can be output to the target device.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.TestString().\r
   It verifies that all characters in a Unicode string can be output to the target device.\r
 \r
@@ -340,13 +340,13 @@ VgaClassTestString (
 \r
 /**\r
   Clears the output device(s) display to the currently selected background color.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.ClearScreen().\r
   The ClearScreen() function clears the output device(s) display to the currently\r
   selected background color. The cursor position is set to (0, 0).\r
 \r
   @param  This                   Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.\r
-  \r
+\r
   @retval EFI_SUCESS             The operation completed successfully.\r
   @retval EFI_DEVICE_ERROR       The device had an error and could not complete the request.\r
   @retval EFI_UNSUPPORTED        The output device is not in a valid text mode.\r
@@ -360,7 +360,7 @@ VgaClassClearScreen (
 \r
 /**\r
   Sets the background and foreground colors for theOutputString() and ClearScreen() functions.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetAttribute().\r
   It sets the background and foreground colors for the OutputString() and ClearScreen() functions.\r
   The color mask can be set even when the device is in an invalid text mode.\r
@@ -371,7 +371,7 @@ VgaClassClearScreen (
   @param  Attribute              The attribute to set.\r
                                  Bits 0..3 are the foreground color,\r
                                  and bits 4..6 are the background color.\r
-  \r
+\r
   @retval EFI_SUCCESS            The requested attributes were set.\r
   @retval EFI_DEVICE_ERROR       The device had an error and could not complete the request.\r
 \r
@@ -385,15 +385,15 @@ VgaClassSetAttribute (
 \r
 /**\r
   Sets the current coordinates of the cursor position.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetCursorPosition().\r
   It sets the current coordinates of the cursor position.\r
   The upper left corner of the screen is defined as coordinate (0, 0).\r
-  \r
+\r
   @param  This                   Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.\r
   @param  Column                 Column of position to set the cursor to.\r
   @param  Row                    Row of position to set the cursor to.\r
-  \r
+\r
   @retval EFI_SUCCESS            The operation completed successfully.\r
   @retval EFI_DEVICE_ERROR       The device had an error and could not complete the request.\r
   @retval EFI_UNSUPPORTED        The output device is not in a valid text mode, or the cursor\r
@@ -410,14 +410,14 @@ VgaClassSetCursorPosition (
 \r
 /**\r
   Makes the cursor visible or invisible.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.EnableCursor().\r
   It makes the cursor visible or invisible.\r
 \r
   @param  This                   Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.\r
   @param  Visible                If TRUE, the cursor is set to be visible.\r
                                  If FALSE, the cursor is set to be invisible.\r
-  \r
+\r
   @retval EFI_SUCESS             The operation completed successfully.\r
   @retval EFI_DEVICE_ERROR       The device had an error and could not complete the request or the\r
                                  device does not support changing the cursor mode.\r
@@ -443,7 +443,7 @@ VgaClassEnableCursor (
   @param  ModeNumber             The mode number to return information on.\r
   @param  Columns                Columen in current mode number\r
   @param  Rows                   Row in current mode number.\r
-  \r
+\r
   @retval EFI_SUCCESS            The requested mode information was returned.\r
   @retval EFI_DEVICE_ERROR       The device had an error and could not complete the request.\r
   @retval EFI_UNSUPPORTED        The mode number was not valid.\r
@@ -460,7 +460,7 @@ VgaClassQueryMode (
 \r
 /**\r
   Sets the output device(s) to a specified mode.\r
-  \r
+\r
   This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.QueryMode().\r
   It sets the output device(s) to the requested mode.\r
   On success the device is in the geometry for the requested mode,\r
@@ -468,7 +468,7 @@ VgaClassQueryMode (
 \r
   @param  This                   Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.\r
   @param  ModeNumber             The text mode to set.\r
-  \r
+\r
   @retval EFI_SUCCESS            The requested text mode was set.\r
   @retval EFI_DEVICE_ERROR       The device had an error and could not complete the request.\r
   @retval EFI_UNSUPPORTED        The mode number was not valid.\r
index 2faba9d6f7c9d67c88baa95fa83e028de784a7e5..882f3d059588d1f68b075e0baa8b1e1945d43189 100644 (file)
@@ -1,15 +1,15 @@
 ## @file\r
 #  VGA Class Driver that managers VGA devices and produces Simple Text Output Protocol.\r
 #\r
-#  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
-#  This program and the accompanying materials                          \r
-#  are licensed and made available under the terms and conditions of the BSD License         \r
-#  which accompanies this distribution.  The full text of the license may be found at        \r
-#  http://opensource.org/licenses/bsd-license.php                                            \r
-#                                                                                          \r
-#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.   \r
+#  This program and the accompanying materials\r
+#  are licensed and made available under the terms and conditions of the BSD License\r
+#  which accompanies this distribution.  The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 #\r
 #\r
 ##\r
@@ -28,9 +28,9 @@
 #\r
 #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
 #\r
-#  DRIVER_BINDING                =  gVgaClassDriverBinding                       \r
+#  DRIVER_BINDING                =  gVgaClassDriverBinding\r
 #  COMPONENT_NAME                =  gVgaClassComponentName\r
-#  COMPONENT_NAME2               =  gVgaClassComponentName2                    \r
+#  COMPONENT_NAME2               =  gVgaClassComponentName2\r
 #\r
 \r
 [Sources]\r
index b019ae789a03a01783e5c8b7e3b6dc2f7e7120de..0e9fce0c54f30776058b0670c99f4806720c2e1b 100644 (file)
@@ -3,13 +3,13 @@
 //\r
 // The VGA Class Driver that manages VGA devices and produces Simple Text Output Protocol.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 16dcb9e0120ee163c64291d78aecb8d667137477..8a8cd66f633381c56ab73fa949430744ce4ce2ec 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // VgaClassDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "VGA Class DXE Driver"\r
 \r
 \r
index 9474606e2091dae191694e669f1ed06ec1ba667b..4c94b22507b0ebf01c6f4bd6ba3d4131e921e7f4 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
   Uses the services of the I/O Library to produce the CPU I/O Protocol\r
 \r
-Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
 Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>\r
 \r
-This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -74,16 +74,16 @@ UINT8 mOutStride[] = {
 /**\r
   Check parameters to a CPU I/O Protocol service request.\r
 \r
-  The I/O operations are carried out exactly as requested. The caller is responsible \r
-  for satisfying any alignment and I/O width restrictions that a PI System on a \r
-  platform might require. For example on some platforms, width requests of \r
-  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will \r
+  The I/O operations are carried out exactly as requested. The caller is responsible\r
+  for satisfying any alignment and I/O width restrictions that a PI System on a\r
+  platform might require. For example on some platforms, width requests of\r
+  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will\r
   be handled by the driver.\r
-  \r
+\r
   @param[in] MmioOperation  TRUE for an MMIO operation, FALSE for I/O Port operation.\r
   @param[in] Width          Signifies the width of the I/O or Memory operation.\r
-  @param[in] Address        The base address of the I/O operation. \r
-  @param[in] Count          The number of I/O operations to perform. The number of  \r
+  @param[in] Address        The base address of the I/O operation.\r
+  @param[in] Count          The number of I/O operations to perform. The number of\r
                             bytes moved is Width size * Count, starting at Address.\r
   @param[in] Buffer         For read operations, the destination buffer to store the results.\r
                             For write operations, the source buffer from which to write data.\r
@@ -92,7 +92,7 @@ UINT8 mOutStride[] = {
   @retval EFI_INVALID_PARAMETER  Width is invalid for this PI system.\r
   @retval EFI_INVALID_PARAMETER  Buffer is NULL.\r
   @retval EFI_UNSUPPORTED        The Buffer is not aligned for the given Width.\r
-  @retval EFI_UNSUPPORTED        The address range specified by Address, Width, \r
+  @retval EFI_UNSUPPORTED        The address range specified by Address, Width,\r
                                  and Count is not valid for this PI system.\r
 \r
 **/\r
@@ -137,7 +137,7 @@ CpuIoCheckParameter (
   if (!MmioOperation && (Width == EfiCpuIoWidthUint64)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // Check to see if Address is aligned\r
   //\r
@@ -146,18 +146,18 @@ CpuIoCheckParameter (
   }\r
 \r
   //\r
-  // Check to see if any address associated with this transfer exceeds the maximum \r
+  // Check to see if any address associated with this transfer exceeds the maximum\r
   // allowed address.  The maximum address implied by the parameters passed in is\r
   // Address + Size * Count.  If the following condition is met, then the transfer\r
   // is not supported.\r
   //\r
   //    Address + Size * Count > (MmioOperation ? MAX_ADDRESS : MAX_IO_PORT_ADDRESS) + 1\r
   //\r
-  // Since MAX_ADDRESS can be the maximum integer value supported by the CPU and Count \r
+  // Since MAX_ADDRESS can be the maximum integer value supported by the CPU and Count\r
   // can also be the maximum integer value supported by the CPU, this range\r
   // check must be adjusted to avoid all overflow conditions.\r
-  //   \r
-  // The following form of the range check is equivalent but assumes that \r
+  //\r
+  // The following form of the range check is equivalent but assumes that\r
   // MAX_ADDRESS and MAX_IO_PORT_ADDRESS are of the form (2^n - 1).\r
   //\r
   Limit = (MmioOperation ? MAX_ADDRESS : MAX_IO_PORT_ADDRESS);\r
@@ -165,7 +165,7 @@ CpuIoCheckParameter (
     if (Address > Limit) {\r
       return EFI_UNSUPPORTED;\r
     }\r
-  } else {  \r
+  } else {\r
     MaxCount = RShiftU64 (Limit, Width);\r
     if (MaxCount < (Count - 1)) {\r
       return EFI_UNSUPPORTED;\r
@@ -189,30 +189,30 @@ CpuIoCheckParameter (
 /**\r
   Reads memory-mapped registers.\r
 \r
-  The I/O operations are carried out exactly as requested. The caller is responsible \r
-  for satisfying any alignment and I/O width restrictions that a PI System on a \r
-  platform might require. For example on some platforms, width requests of \r
-  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will \r
+  The I/O operations are carried out exactly as requested. The caller is responsible\r
+  for satisfying any alignment and I/O width restrictions that a PI System on a\r
+  platform might require. For example on some platforms, width requests of\r
+  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will\r
   be handled by the driver.\r
-  \r
-  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32, \r
-  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for \r
+\r
+  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32,\r
+  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for\r
   each of the Count operations that is performed.\r
-  \r
-  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16, \r
-  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16,\r
+  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times on the same Address.\r
-  \r
-  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16, \r
-  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16,\r
+  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times from the first element of Buffer.\r
-  \r
+\r
   @param[in]  This     A pointer to the EFI_CPU_IO_PROTOCOL instance.\r
   @param[in]  Width    Signifies the width of the I/O or Memory operation.\r
-  @param[in]  Address  The base address of the I/O operation. \r
-  @param[in]  Count    The number of I/O operations to perform. The number of \r
+  @param[in]  Address  The base address of the I/O operation.\r
+  @param[in]  Count    The number of I/O operations to perform. The number of\r
                        bytes moved is Width size * Count, starting at Address.\r
   @param[out] Buffer   For read operations, the destination buffer to store the results.\r
                        For write operations, the source buffer from which to write data.\r
@@ -221,7 +221,7 @@ CpuIoCheckParameter (
   @retval EFI_INVALID_PARAMETER  Width is invalid for this PI system.\r
   @retval EFI_INVALID_PARAMETER  Buffer is NULL.\r
   @retval EFI_UNSUPPORTED        The Buffer is not aligned for the given Width.\r
-  @retval EFI_UNSUPPORTED        The address range specified by Address, Width, \r
+  @retval EFI_UNSUPPORTED        The address range specified by Address, Width,\r
                                  and Count is not valid for this PI system.\r
 \r
 **/\r
@@ -269,30 +269,30 @@ CpuMemoryServiceRead (
 /**\r
   Writes memory-mapped registers.\r
 \r
-  The I/O operations are carried out exactly as requested. The caller is responsible \r
-  for satisfying any alignment and I/O width restrictions that a PI System on a \r
-  platform might require. For example on some platforms, width requests of \r
-  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will \r
+  The I/O operations are carried out exactly as requested. The caller is responsible\r
+  for satisfying any alignment and I/O width restrictions that a PI System on a\r
+  platform might require. For example on some platforms, width requests of\r
+  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will\r
   be handled by the driver.\r
-  \r
-  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32, \r
-  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for \r
+\r
+  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32,\r
+  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for\r
   each of the Count operations that is performed.\r
-  \r
-  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16, \r
-  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16,\r
+  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times on the same Address.\r
-  \r
-  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16, \r
-  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16,\r
+  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times from the first element of Buffer.\r
-  \r
+\r
   @param[in]  This     A pointer to the EFI_CPU_IO_PROTOCOL instance.\r
   @param[in]  Width    Signifies the width of the I/O or Memory operation.\r
-  @param[in]  Address  The base address of the I/O operation. \r
-  @param[in]  Count    The number of I/O operations to perform. The number of \r
+  @param[in]  Address  The base address of the I/O operation.\r
+  @param[in]  Count    The number of I/O operations to perform. The number of\r
                        bytes moved is Width size * Count, starting at Address.\r
   @param[in]  Buffer   For read operations, the destination buffer to store the results.\r
                        For write operations, the source buffer from which to write data.\r
@@ -301,7 +301,7 @@ CpuMemoryServiceRead (
   @retval EFI_INVALID_PARAMETER  Width is invalid for this PI system.\r
   @retval EFI_INVALID_PARAMETER  Buffer is NULL.\r
   @retval EFI_UNSUPPORTED        The Buffer is not aligned for the given Width.\r
-  @retval EFI_UNSUPPORTED        The address range specified by Address, Width, \r
+  @retval EFI_UNSUPPORTED        The address range specified by Address, Width,\r
                                  and Count is not valid for this PI system.\r
 \r
 **/\r
@@ -349,30 +349,30 @@ CpuMemoryServiceWrite (
 /**\r
   Reads I/O registers.\r
 \r
-  The I/O operations are carried out exactly as requested. The caller is responsible \r
-  for satisfying any alignment and I/O width restrictions that a PI System on a \r
-  platform might require. For example on some platforms, width requests of \r
-  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will \r
+  The I/O operations are carried out exactly as requested. The caller is responsible\r
+  for satisfying any alignment and I/O width restrictions that a PI System on a\r
+  platform might require. For example on some platforms, width requests of\r
+  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will\r
   be handled by the driver.\r
-  \r
-  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32, \r
-  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for \r
+\r
+  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32,\r
+  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for\r
   each of the Count operations that is performed.\r
-  \r
-  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16, \r
-  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16,\r
+  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times on the same Address.\r
-  \r
-  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16, \r
-  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16,\r
+  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times from the first element of Buffer.\r
-  \r
+\r
   @param[in]  This     A pointer to the EFI_CPU_IO_PROTOCOL instance.\r
   @param[in]  Width    Signifies the width of the I/O or Memory operation.\r
-  @param[in]  Address  The base address of the I/O operation. \r
-  @param[in]  Count    The number of I/O operations to perform. The number of \r
+  @param[in]  Address  The base address of the I/O operation.\r
+  @param[in]  Count    The number of I/O operations to perform. The number of\r
                        bytes moved is Width size * Count, starting at Address.\r
   @param[out] Buffer   For read operations, the destination buffer to store the results.\r
                        For write operations, the source buffer from which to write data.\r
@@ -381,7 +381,7 @@ CpuMemoryServiceWrite (
   @retval EFI_INVALID_PARAMETER  Width is invalid for this PI system.\r
   @retval EFI_INVALID_PARAMETER  Buffer is NULL.\r
   @retval EFI_UNSUPPORTED        The Buffer is not aligned for the given Width.\r
-  @retval EFI_UNSUPPORTED        The address range specified by Address, Width, \r
+  @retval EFI_UNSUPPORTED        The address range specified by Address, Width,\r
                                  and Count is not valid for this PI system.\r
 \r
 **/\r
@@ -453,30 +453,30 @@ CpuIoServiceRead (
 /**\r
   Write I/O registers.\r
 \r
-  The I/O operations are carried out exactly as requested. The caller is responsible \r
-  for satisfying any alignment and I/O width restrictions that a PI System on a \r
-  platform might require. For example on some platforms, width requests of \r
-  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will \r
+  The I/O operations are carried out exactly as requested. The caller is responsible\r
+  for satisfying any alignment and I/O width restrictions that a PI System on a\r
+  platform might require. For example on some platforms, width requests of\r
+  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will\r
   be handled by the driver.\r
-  \r
-  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32, \r
-  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for \r
+\r
+  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32,\r
+  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for\r
   each of the Count operations that is performed.\r
-  \r
-  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16, \r
-  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16,\r
+  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times on the same Address.\r
-  \r
-  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16, \r
-  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16,\r
+  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times from the first element of Buffer.\r
-  \r
+\r
   @param[in]  This     A pointer to the EFI_CPU_IO_PROTOCOL instance.\r
   @param[in]  Width    Signifies the width of the I/O or Memory operation.\r
-  @param[in]  Address  The base address of the I/O operation. \r
-  @param[in]  Count    The number of I/O operations to perform. The number of \r
+  @param[in]  Address  The base address of the I/O operation.\r
+  @param[in]  Count    The number of I/O operations to perform. The number of\r
                        bytes moved is Width size * Count, starting at Address.\r
   @param[in]  Buffer   For read operations, the destination buffer to store the results.\r
                        For write operations, the source buffer from which to write data.\r
@@ -485,9 +485,9 @@ CpuIoServiceRead (
   @retval EFI_INVALID_PARAMETER  Width is invalid for this PI system.\r
   @retval EFI_INVALID_PARAMETER  Buffer is NULL.\r
   @retval EFI_UNSUPPORTED        The Buffer is not aligned for the given Width.\r
-  @retval EFI_UNSUPPORTED        The address range specified by Address, Width, \r
+  @retval EFI_UNSUPPORTED        The address range specified by Address, Width,\r
                                  and Count is not valid for this PI system.\r
-                                 \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -553,16 +553,16 @@ CpuIoServiceWrite (
       IoWrite32 ((UINTN)Address, *((UINT32 *)Uint8Buffer));\r
     }\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
 /**\r
   The user Entry Point for module CpuIo. The user code starts with this function.\r
 \r
-  @param[in] ImageHandle    The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle    The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable    A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS       The entry point is executed successfully.\r
   @retval other             Some error occurs when executing this entry point.\r
 \r
index 6eba9c09e72952830e2cd09af290e9ed6104ae44..4c52ed0008b9ea859a15cd018c818c36d38bcc6c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Internal include file of CPU I/O DXE Driver.\r
 \r
-  Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 /**\r
   Reads memory-mapped registers.\r
 \r
-  The I/O operations are carried out exactly as requested. The caller is responsible \r
-  for satisfying any alignment and I/O width restrictions that a PI System on a \r
-  platform might require. For example on some platforms, width requests of \r
-  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will \r
+  The I/O operations are carried out exactly as requested. The caller is responsible\r
+  for satisfying any alignment and I/O width restrictions that a PI System on a\r
+  platform might require. For example on some platforms, width requests of\r
+  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will\r
   be handled by the driver.\r
-  \r
-  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32, \r
-  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for \r
+\r
+  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32,\r
+  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for\r
   each of the Count operations that is performed.\r
-  \r
-  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16, \r
-  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16,\r
+  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times on the same Address.\r
-  \r
-  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16, \r
-  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16,\r
+  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times from the first element of Buffer.\r
-  \r
+\r
   @param[in]  This     A pointer to the EFI_CPU_IO_PROTOCOL instance.\r
   @param[in]  Width    Signifies the width of the I/O or Memory operation.\r
-  @param[in]  Address  The base address of the I/O operation. \r
-  @param[in]  Count    The number of I/O operations to perform. The number of \r
+  @param[in]  Address  The base address of the I/O operation.\r
+  @param[in]  Count    The number of I/O operations to perform. The number of\r
                        bytes moved is Width size * Count, starting at Address.\r
   @param[out] Buffer   For read operations, the destination buffer to store the results.\r
                        For write operations, the source buffer from which to write data.\r
@@ -62,7 +62,7 @@
   @retval EFI_INVALID_PARAMETER  Width is invalid for this PI system.\r
   @retval EFI_INVALID_PARAMETER  Buffer is NULL.\r
   @retval EFI_UNSUPPORTED        The Buffer is not aligned for the given Width.\r
-  @retval EFI_UNSUPPORTED        The address range specified by Address, Width, \r
+  @retval EFI_UNSUPPORTED        The address range specified by Address, Width,\r
                                  and Count is not valid for this PI system.\r
 \r
 **/\r
@@ -79,30 +79,30 @@ CpuMemoryServiceRead (
 /**\r
   Writes memory-mapped registers.\r
 \r
-  The I/O operations are carried out exactly as requested. The caller is responsible \r
-  for satisfying any alignment and I/O width restrictions that a PI System on a \r
-  platform might require. For example on some platforms, width requests of \r
-  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will \r
+  The I/O operations are carried out exactly as requested. The caller is responsible\r
+  for satisfying any alignment and I/O width restrictions that a PI System on a\r
+  platform might require. For example on some platforms, width requests of\r
+  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will\r
   be handled by the driver.\r
-  \r
-  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32, \r
-  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for \r
+\r
+  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32,\r
+  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for\r
   each of the Count operations that is performed.\r
-  \r
-  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16, \r
-  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16,\r
+  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times on the same Address.\r
-  \r
-  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16, \r
-  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16,\r
+  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times from the first element of Buffer.\r
-  \r
+\r
   @param[in]  This     A pointer to the EFI_CPU_IO_PROTOCOL instance.\r
   @param[in]  Width    Signifies the width of the I/O or Memory operation.\r
-  @param[in]  Address  The base address of the I/O operation. \r
-  @param[in]  Count    The number of I/O operations to perform. The number of \r
+  @param[in]  Address  The base address of the I/O operation.\r
+  @param[in]  Count    The number of I/O operations to perform. The number of\r
                        bytes moved is Width size * Count, starting at Address.\r
   @param[in]  Buffer   For read operations, the destination buffer to store the results.\r
                        For write operations, the source buffer from which to write data.\r
@@ -111,7 +111,7 @@ CpuMemoryServiceRead (
   @retval EFI_INVALID_PARAMETER  Width is invalid for this PI system.\r
   @retval EFI_INVALID_PARAMETER  Buffer is NULL.\r
   @retval EFI_UNSUPPORTED        The Buffer is not aligned for the given Width.\r
-  @retval EFI_UNSUPPORTED        The address range specified by Address, Width, \r
+  @retval EFI_UNSUPPORTED        The address range specified by Address, Width,\r
                                  and Count is not valid for this PI system.\r
 \r
 **/\r
@@ -128,30 +128,30 @@ CpuMemoryServiceWrite (
 /**\r
   Reads I/O registers.\r
 \r
-  The I/O operations are carried out exactly as requested. The caller is responsible \r
-  for satisfying any alignment and I/O width restrictions that a PI System on a \r
-  platform might require. For example on some platforms, width requests of \r
-  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will \r
+  The I/O operations are carried out exactly as requested. The caller is responsible\r
+  for satisfying any alignment and I/O width restrictions that a PI System on a\r
+  platform might require. For example on some platforms, width requests of\r
+  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will\r
   be handled by the driver.\r
-  \r
-  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32, \r
-  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for \r
+\r
+  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32,\r
+  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for\r
   each of the Count operations that is performed.\r
-  \r
-  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16, \r
-  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16,\r
+  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times on the same Address.\r
-  \r
-  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16, \r
-  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16,\r
+  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times from the first element of Buffer.\r
-  \r
+\r
   @param[in]  This     A pointer to the EFI_CPU_IO_PROTOCOL instance.\r
   @param[in]  Width    Signifies the width of the I/O or Memory operation.\r
-  @param[in]  Address  The base address of the I/O operation. \r
-  @param[in]  Count    The number of I/O operations to perform. The number of \r
+  @param[in]  Address  The base address of the I/O operation.\r
+  @param[in]  Count    The number of I/O operations to perform. The number of\r
                        bytes moved is Width size * Count, starting at Address.\r
   @param[out] Buffer   For read operations, the destination buffer to store the results.\r
                        For write operations, the source buffer from which to write data.\r
@@ -160,7 +160,7 @@ CpuMemoryServiceWrite (
   @retval EFI_INVALID_PARAMETER  Width is invalid for this PI system.\r
   @retval EFI_INVALID_PARAMETER  Buffer is NULL.\r
   @retval EFI_UNSUPPORTED        The Buffer is not aligned for the given Width.\r
-  @retval EFI_UNSUPPORTED        The address range specified by Address, Width, \r
+  @retval EFI_UNSUPPORTED        The address range specified by Address, Width,\r
                                  and Count is not valid for this PI system.\r
 \r
 **/\r
@@ -177,30 +177,30 @@ CpuIoServiceRead (
 /**\r
   Write I/O registers.\r
 \r
-  The I/O operations are carried out exactly as requested. The caller is responsible \r
-  for satisfying any alignment and I/O width restrictions that a PI System on a \r
-  platform might require. For example on some platforms, width requests of \r
-  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will \r
+  The I/O operations are carried out exactly as requested. The caller is responsible\r
+  for satisfying any alignment and I/O width restrictions that a PI System on a\r
+  platform might require. For example on some platforms, width requests of\r
+  EfiCpuIoWidthUint64 do not work. Misaligned buffers, on the other hand, will\r
   be handled by the driver.\r
-  \r
-  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32, \r
-  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for \r
+\r
+  If Width is EfiCpuIoWidthUint8, EfiCpuIoWidthUint16, EfiCpuIoWidthUint32,\r
+  or EfiCpuIoWidthUint64, then both Address and Buffer are incremented for\r
   each of the Count operations that is performed.\r
-  \r
-  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16, \r
-  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFifoUint8, EfiCpuIoWidthFifoUint16,\r
+  EfiCpuIoWidthFifoUint32, or EfiCpuIoWidthFifoUint64, then only Buffer is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times on the same Address.\r
-  \r
-  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16, \r
-  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is \r
-  incremented for each of the Count operations that is performed. The read or \r
+\r
+  If Width is EfiCpuIoWidthFillUint8, EfiCpuIoWidthFillUint16,\r
+  EfiCpuIoWidthFillUint32, or EfiCpuIoWidthFillUint64, then only Address is\r
+  incremented for each of the Count operations that is performed. The read or\r
   write operation is performed Count times from the first element of Buffer.\r
-  \r
+\r
   @param[in]  This     A pointer to the EFI_CPU_IO_PROTOCOL instance.\r
   @param[in]  Width    Signifies the width of the I/O or Memory operation.\r
-  @param[in]  Address  The base address of the I/O operation. \r
-  @param[in]  Count    The number of I/O operations to perform. The number of \r
+  @param[in]  Address  The base address of the I/O operation.\r
+  @param[in]  Count    The number of I/O operations to perform. The number of\r
                        bytes moved is Width size * Count, starting at Address.\r
   @param[in]  Buffer   For read operations, the destination buffer to store the results.\r
                        For write operations, the source buffer from which to write data.\r
@@ -209,9 +209,9 @@ CpuIoServiceRead (
   @retval EFI_INVALID_PARAMETER  Width is invalid for this PI system.\r
   @retval EFI_INVALID_PARAMETER  Buffer is NULL.\r
   @retval EFI_UNSUPPORTED        The Buffer is not aligned for the given Width.\r
-  @retval EFI_UNSUPPORTED        The address range specified by Address, Width, \r
+  @retval EFI_UNSUPPORTED        The address range specified by Address, Width,\r
                                  and Count is not valid for this PI system.\r
-                                 \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
index af1ae5df1b32236e8a6ae7e3a5cea22ece092d4f..4a9a7d273fd11bcbb7083d845ce86ba7e94b333b 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // CpuIoDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -12,8 +12,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Processor I/O DXE Driver"\r
 \r
 \r
index 9a193d5ff0eb8e38c9f2c7bb11b06e0833372392..b7d2f75ba24cd06ba16e01680ec68672c173bb91 100644 (file)
@@ -1,15 +1,15 @@
 /** @file\r
   This code produces the Data Hub protocol. It preloads the data hub\r
   with status information copied in from PEI HOBs.\r
-  \r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -32,7 +32,7 @@ DATA_HUB_INSTANCE mPrivateData;
   @param RawDataSize            Size of Data Log data in bytes\r
 \r
   @retval EFI_SUCCESS           If data was logged\r
-  @retval EFI_OUT_OF_RESOURCES  If data was not logged due to lack of system \r
+  @retval EFI_OUT_OF_RESOURCES  If data was not logged due to lack of system\r
                                 resources.\r
 **/\r
 EFI_STATUS\r
@@ -68,7 +68,7 @@ DataHubLogData (
   //\r
   RecordSize  = sizeof (EFI_DATA_RECORD_HEADER) + RawDataSize;\r
   TotalSize   = sizeof (EFI_DATA_ENTRY) + RecordSize;\r
-  \r
+\r
   //\r
   // First try to get log time at TPL level <= TPL_CALLBACK.\r
   //\r
@@ -149,7 +149,7 @@ DataHubLogData (
 }\r
 \r
 /**\r
-  Search the Head doubly linked list for the passed in MTC. Return the \r
+  Search the Head doubly linked list for the passed in MTC. Return the\r
   matching element in Head and the MTC on the next entry.\r
 \r
   @param Head             Head of Data Log linked list.\r
@@ -157,7 +157,7 @@ DataHubLogData (
                           ClassFilter.\r
   @param PtrCurrentMTC    On IN contians MTC to search for. On OUT contians next\r
                           MTC in the data log list or zero if at end of the list.\r
-  \r
+\r
   @retval EFI_DATA_LOG_ENTRY  Return pointer to data log data from Head list.\r
   @retval NULL                If no data record exists.\r
 \r
@@ -257,20 +257,20 @@ FindFilterDriverByEvent (
   Get a previously logged data record and the MonotonicCount for the next\r
   available Record. This allows all records or all records later\r
   than a give MonotonicCount to be returned. If an optional FilterDriverEvent\r
-  is passed in with a MonotonicCout of zero return the first record \r
-  not yet read by the filter driver. If FilterDriverEvent is NULL and \r
+  is passed in with a MonotonicCout of zero return the first record\r
+  not yet read by the filter driver. If FilterDriverEvent is NULL and\r
   MonotonicCount is zero return the first data record.\r
 \r
   @param This                     Pointer to the EFI_DATA_HUB_PROTOCOL instance.\r
   @param MonotonicCount           Specifies the Record to return. On input, zero means\r
                                   return the first record. On output, contains the next\r
                                   record to available. Zero indicates no more records.\r
-  @param FilterDriverEvent        If FilterDriverEvent is not passed in a MonotonicCount \r
-                                  of zero, it means to return the first data record. \r
-                                  If FilterDriverEvent is passed in, then a MonotonicCount \r
-                                  of zero means to return the first data not yet read by \r
+  @param FilterDriverEvent        If FilterDriverEvent is not passed in a MonotonicCount\r
+                                  of zero, it means to return the first data record.\r
+                                  If FilterDriverEvent is passed in, then a MonotonicCount\r
+                                  of zero means to return the first data not yet read by\r
                                   FilterDriverEvent.\r
-  @param Record                   Returns a dynamically allocated memory buffer with a data \r
+  @param Record                   Returns a dynamically allocated memory buffer with a data\r
                                   record that matches MonotonicCount.\r
 \r
   @retval EFI_SUCCESS             Data was returned in Record.\r
@@ -312,7 +312,7 @@ DataHubGetNextRecord (
     }\r
     return EFI_SUCCESS;\r
   }\r
-    \r
+\r
   //\r
   // For events the beginning is the last unread record. This info is\r
   // stored in the instance structure, so we must look up the event\r
@@ -332,16 +332,16 @@ DataHubGetNextRecord (
 \r
   //\r
   // Retrieve the next record or the first record.\r
-  //   \r
-  if (*MonotonicCount != 0 || FilterDriver->GetNextMonotonicCount == 0) { \r
+  //\r
+  if (*MonotonicCount != 0 || FilterDriver->GetNextMonotonicCount == 0) {\r
     *Record = GetNextDataRecord (&Private->DataListHead, ClassFilter, MonotonicCount);\r
     if (*Record == NULL) {\r
       return EFI_NOT_FOUND;\r
     }\r
-    \r
+\r
     if (*MonotonicCount != 0) {\r
       //\r
-      // If this was not the last record then update the count associated with the filter \r
+      // If this was not the last record then update the count associated with the filter\r
       //\r
       FilterDriver->GetNextMonotonicCount = *MonotonicCount;\r
     } else {\r
@@ -352,13 +352,13 @@ DataHubGetNextRecord (
     }\r
     return EFI_SUCCESS;\r
   }\r
-  \r
+\r
   //\r
-  // This is a request to read the first record that has not been read yet.  \r
+  // This is a request to read the first record that has not been read yet.\r
   // Set MonotoicCount to the last record successfuly read\r
   //\r
   *MonotonicCount = FilterDriver->GetNextMonotonicCount;\r
-  \r
+\r
   //\r
   // Retrieve the last record successfuly read again, but do not return it since\r
   // it has already been returned before.\r
@@ -367,51 +367,51 @@ DataHubGetNextRecord (
   if (*Record == NULL) {\r
     return EFI_NOT_FOUND;\r
   }\r
-  \r
+\r
   if (*MonotonicCount != 0) {\r
     //\r
-    // Update the count associated with the filter \r
+    // Update the count associated with the filter\r
     //\r
     FilterDriver->GetNextMonotonicCount = *MonotonicCount;\r
 \r
     //\r
-    // Retrieve the record after the last record successfuly read \r
-    //  \r
+    // Retrieve the record after the last record successfuly read\r
+    //\r
     *Record = GetNextDataRecord (&Private->DataListHead, ClassFilter, MonotonicCount);\r
     if (*Record == NULL) {\r
       return EFI_NOT_FOUND;\r
     }\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
 /**\r
-  This function registers the data hub filter driver that is represented \r
+  This function registers the data hub filter driver that is represented\r
   by FilterEvent. Only one instance of each FilterEvent can be registered.\r
-  After the FilterEvent is registered, it will be signaled so it can sync \r
-  with data records that have been recorded prior to the FilterEvent being \r
+  After the FilterEvent is registered, it will be signaled so it can sync\r
+  with data records that have been recorded prior to the FilterEvent being\r
   registered.\r
-    \r
+\r
   @param This                   Pointer to  The EFI_DATA_HUB_PROTOCOL instance.\r
-  @param FilterEvent            The EFI_EVENT to signal whenever data that matches \r
+  @param FilterEvent            The EFI_EVENT to signal whenever data that matches\r
                                 FilterClass is logged in the system.\r
-  @param FilterTpl              The maximum EFI_TPL at which FilterEvent can be \r
-                                signaled. It is strongly recommended that you use the \r
+  @param FilterTpl              The maximum EFI_TPL at which FilterEvent can be\r
+                                signaled. It is strongly recommended that you use the\r
                                 lowest EFI_TPL possible.\r
-  @param FilterClass            FilterEvent will be signaled whenever a bit in \r
-                                EFI_DATA_RECORD_HEADER.DataRecordClass is also set in \r
-                                FilterClass. If FilterClass is zero, no class-based \r
+  @param FilterClass            FilterEvent will be signaled whenever a bit in\r
+                                EFI_DATA_RECORD_HEADER.DataRecordClass is also set in\r
+                                FilterClass. If FilterClass is zero, no class-based\r
                                 filtering will be performed.\r
-  @param FilterDataRecordGuid   FilterEvent will be signaled whenever FilterDataRecordGuid \r
-                                matches EFI_DATA_RECORD_HEADER.DataRecordGuid. If \r
-                                FilterDataRecordGuid is NULL, then no GUID-based filtering \r
-                                will be performed.              \r
+  @param FilterDataRecordGuid   FilterEvent will be signaled whenever FilterDataRecordGuid\r
+                                matches EFI_DATA_RECORD_HEADER.DataRecordGuid. If\r
+                                FilterDataRecordGuid is NULL, then no GUID-based filtering\r
+                                will be performed.\r
 \r
   @retval EFI_SUCCESS           The filter driver event was registered.\r
-  @retval EFI_ALREADY_STARTED   FilterEvent was previously registered and cannot be \r
+  @retval EFI_ALREADY_STARTED   FilterEvent was previously registered and cannot be\r
                                 registered again.\r
-  @retval EFI_OUT_OF_RESOURCES  The filter driver event was not registered due to lack of \r
+  @retval EFI_OUT_OF_RESOURCES  The filter driver event was not registered due to lack of\r
                                 system resources.\r
 \r
 **/\r
@@ -480,12 +480,12 @@ DataHubRegisterFilterDriver (
 }\r
 \r
 /**\r
-  Remove a Filter Driver, so it no longer gets called when data \r
+  Remove a Filter Driver, so it no longer gets called when data\r
    information is logged.\r
 \r
   @param This           Protocol instance structure\r
 \r
-  @param FilterEvent    Event that represents a filter driver that is to be \r
+  @param FilterEvent    Event that represents a filter driver that is to be\r
                         Unregistered.\r
 \r
   @retval EFI_SUCCESS   If FilterEvent was unregistered\r
@@ -526,7 +526,7 @@ DataHubUnregisterFilterDriver (
 \r
 \r
 /**\r
-  Driver's Entry point routine that install Driver to produce Data Hub protocol. \r
+  Driver's Entry point routine that install Driver to produce Data Hub protocol.\r
 \r
   @param ImageHandle    Module's image handle\r
   @param SystemTable    Pointer of EFI_SYSTEM_TABLE\r
index 7770c438dab97c3855362712c7de19c651f1ffbb..9b3f3997bc4a2c313335c2dc3d25723be435ceba 100644 (file)
@@ -1,15 +1,15 @@
 /** @file\r
-  This code supports a the private implementation \r
+  This code supports a the private implementation\r
   of the Data Hub protocol\r
-  \r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
index 0b93f719bbe33720ac53bf96304b341d40626c24..02d533cfb264ffd58a5282dca46b64f9feefe1d1 100644 (file)
@@ -20,8 +20,8 @@
 #  Management Interface (IPMI).The alternative to a data-hub-like architecture is to require all\r
 #  drivers to be aware of all reporting formats.\r
 #  For more information, please ref http://www.intel.com/technology/framework/\r
-#  \r
-#  Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+#\r
+#  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
index 8c973db27acb75781cb5c5c696c9b510732ce667..ae938b1bd9ff55f094577ad479953c448453fd00 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // DataHubDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -12,8 +12,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Data Hub DXE Driver"\r
 \r
 \r
index f64c5411dbc35fc3aa96ac1d02c9f4d8be6c6b65..d400cda00784698694b2e4f7611473d77c94d406 100644 (file)
@@ -2,7 +2,7 @@
   Data Hub filter driver that takes DEBUG () info from Data Hub and writes it\r
   to StdErr if it exists.\r
 \r
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -65,7 +65,7 @@ DataHubStdErrEventHandler (
   if (gST->StdErr == NULL) {\r
     return ;\r
   }\r
-  \r
+\r
   //\r
   // Mtc of zero means return the next record that has not been read by the\r
   // event handler.\r
index 487291b83198720232e66087527d18d168cd3006..06a183a9a76cf5ef41fabd7ef088511610c492e3 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // DataHubStdErrDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -12,8 +12,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Data Hub stderr DXE Driver"\r
 \r
 \r
index 8d53d879bd9de63b15e7d8ff0c3dc060746e4942..fcc9e74011afdb1c367d84ea7de75ca93dd8e2b2 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implements functions to pad firmware file.\r
 \r
-  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -219,7 +219,7 @@ FvCreatePadFileInFreeSpace (
 \r
 /**\r
   Fill pad file header within firmware cache.\r
-  \r
+\r
   @param PadFileHeader    The start of the Pad File Buffer.\r
   @param PadFileLength    The length of the pad file including the header.\r
 \r
@@ -264,7 +264,7 @@ FvFillPadFile (
 \r
 /**\r
   Create entire FFS file.\r
-  \r
+\r
   @param FileHeader      Starting Address of a Buffer that hold the FFS File image.\r
   @param FfsFileBuffer   The source buffer that contains the File Data.\r
   @param BufferSize      The length of FfsFileBuffer.\r
@@ -662,7 +662,7 @@ FreeFfsBuffer (
   @param ActualFileSize  The array of actual file size.\r
   @param PadSize         The array of leading pad file size for each FFS File\r
   @param FfsBuffer       The array of Ffs Buffer pointer.\r
-  @param FileData        The array of EFI_FV_WRITE_FILE_DATA structure, \r
+  @param FileData        The array of EFI_FV_WRITE_FILE_DATA structure,\r
                          used to get name, attributes, type, etc.\r
 \r
   @retval EFI_SUCCESS           Add the input multiple files into PAD file area.\r
@@ -868,7 +868,7 @@ FvCreateMultipleFilesInsidePadFile (
   @param ActualFileSize  The array of actual file size.\r
   @param PadSize         The array of leading pad file size for each FFS File\r
   @param FfsBuffer       The array of Ffs Buffer pointer.\r
-  @param FileData        The array of EFI_FV_WRITE_FILE_DATA structure, \r
+  @param FileData        The array of EFI_FV_WRITE_FILE_DATA structure,\r
                          used to get name, attributes, type, etc.\r
 \r
   @retval EFI_SUCCESS           Add the input multiple files into PAD file area.\r
@@ -993,7 +993,7 @@ FvCreateMultipleFilesInsideFreeSpace (
 \r
   @param FvDevice        Firmware Volume Device.\r
   @param NumOfFiles      Total File number to be written.\r
-  @param FileData        The array of EFI_FV_WRITE_FILE_DATA structure, \r
+  @param FileData        The array of EFI_FV_WRITE_FILE_DATA structure,\r
                          used to get name, attributes, type, etc\r
   @param FileOperation   The array of operation for each file.\r
 \r
index 91fcd472124444d121561a5bea742ad88c80b7fc..9a031bab1425b71aa5f0109e3ba4c18d62e6bf09 100644 (file)
@@ -4,7 +4,7 @@
   Layers on top of Firmware Block protocol to produce a file abstraction\r
   of FV based files.\r
 \r
-  Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -789,7 +789,7 @@ FwVolDriverInit (
       } else {\r
         FreePool (FvDevice);\r
       }\r
-      \r
+\r
       DEBUG ((EFI_D_INFO, "Reinstall FV protocol as writable - %r\n", Status));\r
       ASSERT_EFI_ERROR (Status);\r
     } else {\r
@@ -807,7 +807,7 @@ FwVolDriverInit (
       } else {\r
         FreePool (FvDevice);\r
       }\r
-      \r
+\r
       DEBUG ((EFI_D_INFO, "Install FV protocol as writable - %r\n", Status));\r
       ASSERT_EFI_ERROR (Status);\r
     }\r
@@ -822,7 +822,7 @@ Done:
   if (InstallFlag) {\r
     return EFI_SUCCESS;\r
   }\r
-  \r
+\r
   //\r
   // No FV protocol install/reinstall successfully.\r
   // EFI_NOT_FOUND should return to ensure this image will be unloaded.\r
index 0e4ddf8bea0f4dec110a8bb9d529f79a269cdde1..b2664b59729a4675afc71d53d1ac4e007b1c8a83 100644 (file)
@@ -2,7 +2,7 @@
 \r
   Implements get/set firmware volume attributes.\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -65,7 +65,7 @@ FvGetVolumeAttributes (
                         unsuccessful return, FvAttributes is not\r
                         modified and the firmware volume\r
                         settings are not changed.\r
-  \r
+\r
   @retval EFI_SUCCESS             The requested firmware volume attributes\r
                                   were set and the resulting\r
                                   EFI_FV_ATTRIBUTES is returned in\r
index b14a488ead880612d420b9016ec284e91177d7b3..40ac3785bc9446cadb173a74d18f8ed6caaa6caa 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Common defines and definitions for a FwVolDxe driver.\r
 \r
-  Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -129,7 +129,7 @@ FvGetVolumeAttributes (
                         unsuccessful return, FvAttributes is not\r
                         modified and the firmware volume\r
                         settings are not changed.\r
-  \r
+\r
   @retval EFI_SUCCESS             The requested firmware volume attributes\r
                                   were set and the resulting\r
                                   EFI_FV_ATTRIBUTES is returned in\r
@@ -598,7 +598,7 @@ FvCreateNewFileInsidePadFile (
 \r
   @param FvDevice        Firmware Volume Device.\r
   @param NumOfFiles      Total File number to be written.\r
-  @param FileData        The array of EFI_FV_WRITE_FILE_DATA structure, \r
+  @param FileData        The array of EFI_FV_WRITE_FILE_DATA structure,\r
                          used to get name, attributes, type, etc\r
   @param FileOperation   The array of operation for each file.\r
 \r
index fb7766739596a203e2c01c060c8804929d2d75b1..b2b242bd3260f71d0ca75ec72962c6de917b2b39 100644 (file)
@@ -4,13 +4,13 @@
 // This driver produces Firmware Volume2 protocol with full services\r
 // (read/write, get/set) based on Firmware Volume Block protocol.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials are\r
 // licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 9af2689ec358f1eb54c0fd3a4323f4bcc2cd5092..0e1ed76422afbde1cc41459d646c764ec977aebf 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // FwVolDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials are\r
 // licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Flash Storage DXE Driver v2"\r
 \r
 \r
index e95b75326c6edf71379d9e2489876ddb5d7b0d22..adb910e9602e6dd0a858495536dd9b614498b2a8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implements write firmware file.\r
 \r
-  Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -710,7 +710,7 @@ FvcWrite (
   UINTN                               RemainingLength;\r
   UINTN                               WriteLength;\r
   UINT8                               *TmpBuffer;\r
-  \r
+\r
   LOffset = 0;\r
   RemainingLength = CalculateRemainingLength (FvDevice, Offset, &Lba, &LOffset);\r
   if ((UINTN) (*NumBytes) > RemainingLength) {\r
@@ -1463,8 +1463,8 @@ FvWriteFile (
 \r
     if (FileData[Index1].Type == EFI_FV_FILETYPE_FFS_PAD) {\r
       //\r
-      // According to PI spec, on EFI_FV_FILETYPE_FFS_PAD: \r
-      // "Standard firmware file system services will not return the handle of any pad files, \r
+      // According to PI spec, on EFI_FV_FILETYPE_FFS_PAD:\r
+      // "Standard firmware file system services will not return the handle of any pad files,\r
       // nor will they permit explicit creation of such files."\r
       //\r
       return EFI_INVALID_PARAMETER;\r
index 56514c98559dacb53670ef1a1892f0901e9908a2..c2a746c6a932165ffa5a6c3f751a55fed29d5a9e 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Functions in this file will program the image into flash area.\r
 \r
-  Copyright (c) 2002 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2002 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -450,9 +450,9 @@ FaultTolerantUpdateOnWholeFv (
   Offset                = 0;\r
   UpdateBuffer          = ImageBuffer;\r
   CopyMem (\r
-       (VOID *) &PrivateData.FileGuid,\r
-       (VOID *) &ConfigData->FileGuid,\r
-       sizeof (EFI_GUID)\r
+    (VOID *) &PrivateData.FileGuid,\r
+    (VOID *) &ConfigData->FileGuid,\r
+     sizeof (EFI_GUID)\r
   );\r
 \r
   while (TRUE) {\r
@@ -1006,9 +1006,9 @@ FaultTolerantUpdateOnPartFv (
   PtrMap                = BlockMap;\r
   Image                 = ImageBuffer;\r
   CopyMem (\r
-       (VOID *) &PrivateData.FileGuid,\r
-       (VOID *) &ConfigData->FileGuid,\r
-       sizeof (EFI_GUID)\r
+    (VOID *) &PrivateData.FileGuid,\r
+    (VOID *) &ConfigData->FileGuid,\r
+     sizeof (EFI_GUID)\r
   );\r
 \r
   while (TotalSize > 0) {\r
index 023506e6eeffc1197f3dac113c7345d1b3b7a3a2..45c7061ff2176594c80679f5550300989f5fd962 100644 (file)
@@ -3,7 +3,7 @@
   configuration file and pass the information to the update driver\r
   so that the driver can perform updates accordingly.\r
 \r
-  Copyright (c) 2002 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2002 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -622,7 +622,7 @@ UpdateValueToString (
 }\r
 \r
 /**\r
-  Convert the input value to a ascii string, \r
+  Convert the input value to a ascii string,\r
   and concatenates this string to the input string.\r
 \r
   @param Str             Pointer to a Null-terminated ASCII string.\r
@@ -786,7 +786,7 @@ UpdateStringToGuid (
 \r
 /**\r
   Pre process config data buffer into Section entry list and Comment entry list.\r
\r
+\r
   @param DataBuffer      Config raw file buffer.\r
   @param BufferSize      Size of raw buffer.\r
   @param SectionHead     Pointer to the section entry list.\r
index e1f1b023dcc0c89eb65bad9f9b50ad709f0abc21..26058b3e4d12ed87f8eb603acc1b4f156af89047 100644 (file)
@@ -3,7 +3,7 @@
   for the image to be programmed, and the flash area that is going to be\r
   programed.\r
 \r
-  Copyright (c) 2002 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2002 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -22,7 +22,7 @@ EFI_HII_HANDLE  gHiiHandle;
 \r
 /**\r
   Update the whole FV, or certain files in the FV.\r
-  \r
+\r
   @param ConfigData      Pointer to the config data on updating file.\r
   @param ImageBuffer     Image buffer to be updated.\r
   @param ImageSize       Image size.\r
@@ -89,7 +89,7 @@ PerformUpdateOnFirmwareVolume (
     //\r
     Status = FvbProtocol->GetAttributes (FvbProtocol, &Attributes);\r
     if (EFI_ERROR (Status) || ((Attributes & EFI_FVB2_WRITE_STATUS) == 0)) {\r
-      continue;     \r
+      continue;\r
     }\r
 \r
     Status            = FvbProtocol->GetPhysicalAddress (\r
@@ -197,7 +197,7 @@ PerformUpdateOnFlashArea (
     Print (TmpStr, FlashAddress, ((UINT64)SizeLeft + FlashAddress));\r
     FreePool (TmpStr);\r
   }\r
-  \r
+\r
   //\r
   // Locate all Fvb protocol\r
   //\r
@@ -242,7 +242,7 @@ PerformUpdateOnFlashArea (
       //\r
       Status = FvbProtocol->GetAttributes (FvbProtocol, &Attributes);\r
       if (EFI_ERROR (Status) || ((Attributes & EFI_FVB2_WRITE_STATUS) == 0)) {\r
-        continue;     \r
+        continue;\r
       }\r
 \r
       Status        = FvbProtocol->GetPhysicalAddress (\r
@@ -326,7 +326,7 @@ PerformUpdateOnFlashArea (
     if (EFI_ERROR (Status)) {\r
       return Status;\r
     }\r
\r
+\r
     //\r
     // Check if we are done with the update\r
     //\r
@@ -540,7 +540,7 @@ ProcessUpdateImage (
   FvAlignment = 1 << ((FwVolHeader->Attributes & EFI_FVB2_ALIGNMENT) >> 16);\r
   //\r
   // FvAlignment must be greater than or equal to 8 bytes of the minimum FFS alignment value.\r
-  // \r
+  //\r
   if (FvAlignment < 8) {\r
     FvAlignment = 8;\r
   }\r
@@ -583,7 +583,7 @@ ProcessUpdateImage (
 /**\r
   Find the image in the same FV and program it in a target Firmware Volume device.\r
   After update image, it will reset system and no return.\r
-  \r
+\r
   @param ImageHandle   A handle for the image that is initializing this driver\r
   @param SystemTable   A pointer to the EFI system table\r
 \r
@@ -602,7 +602,7 @@ InitializeUpdateDriver (
   EFI_LOADED_IMAGE_PROTOCOL             *LoadedImageProtocol;\r
   EFI_FIRMWARE_VOLUME2_PROTOCOL         *FwVolProtocol;\r
   EFI_FIRMWARE_VOLUME2_PROTOCOL         *DataFwVolProtocol;\r
-  MEDIA_FW_VOL_FILEPATH_DEVICE_PATH     *FwVolFilePathNode; \r
+  MEDIA_FW_VOL_FILEPATH_DEVICE_PATH     *FwVolFilePathNode;\r
   MEDIA_FW_VOL_FILEPATH_DEVICE_PATH     *AlignedDevPathNode;\r
   EFI_DEVICE_PATH_PROTOCOL              *FilePathNode;\r
   EFI_SECTION_TYPE                      SectionType;\r
@@ -815,7 +815,7 @@ InitializeUpdateDriver (
                UpdateConfigData\r
                );\r
     //\r
-    // Shall updates be serialized so that if an update is not successfully completed, \r
+    // Shall updates be serialized so that if an update is not successfully completed,\r
     // the remaining updates won't be performed.\r
     //\r
     if (EFI_ERROR (Status)) {\r
index d83a1ecb57a300ca56b9314d675afaba30975ea0..39f7d1922b4e773794f58e514c4380a16676710b 100644 (file)
@@ -1,11 +1,11 @@
 ## @file\r
 # Update Driver for Capulse update.\r
 #\r
-# This driver is intended to be put in a capsule (FV). If all goes well, \r
-# then it should be dispatched from the capsule FV, then find the image \r
+# This driver is intended to be put in a capsule (FV). If all goes well,\r
+# then it should be dispatched from the capsule FV, then find the image\r
 # in the same FV and program it in a target Firmware Volume device.\r
 #\r
-# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials are\r
 # licensed and made available under the terms and conditions of the BSD License\r
index dd240520da6d91ffd42ea6079cb7992cf1239e55..0fdee02b3f73d76d81196fe9db8a3acf797e985d 100644 (file)
@@ -5,13 +5,13 @@
 // then it should be dispatched from the capsule FV, then find the image\r
 // in the same FV and program it in a target Firmware Volume device.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials are\r
 // licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index 833607498970dbe6ee0d3db413d8a055498f89f8..65a1233d6af1605c50c7f44e3740528e7346aea2 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // UpdateDriverDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials are\r
 // licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Firmware Update DXE Driver"\r
 \r
 \r
index e432cf4403bea6c1e84333831565881de6f49c13..747b3d90669490b70b1310edecd6bee1aaee1665 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   Produces the Legacy Region Protocol.\r
 \r
-  This generic implementation of the Legacy Region Protocol does not actually \r
-  perform any lock/unlock operations.  This module may be used on platforms \r
-  that do not provide HW locking of the legacy memory regions.  It can also \r
+  This generic implementation of the Legacy Region Protocol does not actually\r
+  perform any lock/unlock operations.  This module may be used on platforms\r
+  that do not provide HW locking of the legacy memory regions.  It can also\r
   be used as a template driver for implementing the Legacy Region Protocol on\r
   a platform that does support HW locking of the legacy memory regions.\r
 \r
-Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -135,9 +135,9 @@ EFI_LEGACY_REGION_PROTOCOL  mLegacyRegion = {
 /**\r
   The user Entry Point for module LegacyRegionDxe.  The user code starts with this function.\r
 \r
-  @param[in] ImageHandle    The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle    The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable    A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS       The entry point is executed successfully.\r
   @retval other             Some error occurs when executing this entry point.\r
 \r
@@ -150,12 +150,12 @@ LegacyRegionInstall (
   )\r
 {\r
   EFI_STATUS  Status;\r
-  \r
+\r
   //\r
   // Make sure the Legacy Region Protocol is not already installed in the system\r
   //\r
   ASSERT_PROTOCOL_ALREADY_INSTALLED (NULL, &gEfiLegacyRegionProtocolGuid);\r
-  \r
+\r
   //\r
   // Install the protocol on a new handle.\r
   //\r
index f8e5639dec0d12da80202fb81814c9417adc2aef..2e1956e8780a1c86890e9d8642b8f785ffe81cd6 100644 (file)
@@ -1,18 +1,18 @@
 ## @file\r
 #  Produces Framework Legacy Region Protocol.\r
 #\r
-#  This generic implementation of the Legacy Region Protocol does not actually \r
-#  perform any lock/unlock operations.  This module may be used on platforms \r
-#  that do not provide HW locking of the legacy memory regions.  It can also \r
+#  This generic implementation of the Legacy Region Protocol does not actually\r
+#  perform any lock/unlock operations.  This module may be used on platforms\r
+#  that do not provide HW locking of the legacy memory regions.  It can also\r
 #  be used as a template driver for implementing the Legacy Region Protocol on\r
 #  a platform that does support HW locking of the legacy memory regions.\r
 #\r
-# Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
 # http://opensource.org/licenses/bsd-license.php\r
-#                                                                                           \r
+#\r
 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 #\r
index 385e2701b526b60ded0ae8c2cb58c834a92500ce..4cf7c6b56c1228a4a29157317a4116b9b2c21ad8 100644 (file)
@@ -7,13 +7,13 @@
 // be used as a template driver for implementing the Legacy Region Protocol on\r
 // a platform that does support HW locking of the legacy memory regions.\r
 //\r
-// Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index f94ed593c91cd7175b646bb132d5628fb53b9c0e..614ab7d7842cdb9fde0b93e764dd5672cfd1bf08 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // LegacyRegionDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Legacy Region DXE Driver"\r
 \r
 \r
index cacac486bbfece03bbeb098566e4930f68da0cd3..fd4db26e0ddf1786776d5c1b395db33aa97dd93f 100644 (file)
@@ -1,33 +1,33 @@
 /** @file\r
   Section Extraction Protocol implementation.\r
-  \r
+\r
   Stream database is implemented as a linked list of section streams,\r
   where each stream contains a linked list of children, which may be leaves or\r
-  encapsulations.  \r
-  \r
+  encapsulations.\r
+\r
   Children that are encapsulations generate new stream entries\r
-  when they are created.  Streams can also be created by calls to \r
+  when they are created.  Streams can also be created by calls to\r
   SEP->OpenSectionStream().\r
-  \r
+\r
   The database is only created far enough to return the requested data from\r
   any given stream, or to determine that the requested data is not found.\r
-  \r
+\r
   If a GUIDed encapsulation is encountered, there are three possiblilites.\r
-  \r
+\r
   1) A support protocol is found, in which the stream is simply processed with\r
      the support protocol.\r
-     \r
+\r
   2) A support protocol is not found, but the data is available to be read\r
      without processing.  In this case, the database is built up through the\r
      recursions to return the data, and a RPN event is set that will enable\r
      the stream in question to be refreshed if and when the required section\r
-     extraction protocol is published.This insures the AuthenticationStatus \r
+     extraction protocol is published.This insures the AuthenticationStatus\r
      does not become stale in the cache.\r
-     \r
+\r
   3) A support protocol is not found, and the data is not available to be read\r
      without it.  This results in EFI_PROTOCOL_ERROR.\r
 \r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -77,7 +77,7 @@ typedef struct {
   UINTN                       EncapsulatedStreamHandle;\r
   EFI_GUID                    *EncapsulationGuid;\r
   //\r
-  // If the section REQUIRES an extraction protocol, register for RPN \r
+  // If the section REQUIRES an extraction protocol, register for RPN\r
   // when the required GUIDed extraction protocol becomes available.\r
   //\r
   EFI_EVENT                   Event;\r
@@ -157,22 +157,22 @@ OpenSectionStream (
   @param AuthenticationStatus  Indicates the authentication status of the retrieved\r
                                section.\r
 \r
\r
+\r
   @retval EFI_SUCCESS           Section was retrieved successfully\r
-  @retval EFI_PROTOCOL_ERROR    A GUID defined section was encountered in the section \r
+  @retval EFI_PROTOCOL_ERROR    A GUID defined section was encountered in the section\r
                                 stream with its EFI_GUIDED_SECTION_PROCESSING_REQUIRED\r
-                                bit set, but there was no corresponding GUIDed Section \r
-                                Extraction Protocol in the handle database.  *Buffer is \r
+                                bit set, but there was no corresponding GUIDed Section\r
+                                Extraction Protocol in the handle database.  *Buffer is\r
                                 unmodified.\r
   @retval EFI_NOT_FOUND         An error was encountered when parsing the SectionStream.\r
-                                This indicates the SectionStream  is not correctly \r
+                                This indicates the SectionStream  is not correctly\r
                                 formatted.\r
   @retval EFI_NOT_FOUND         The requested section does not exist.\r
-  @retval EFI_OUT_OF_RESOURCES  The system has insufficient resources to process the \r
+  @retval EFI_OUT_OF_RESOURCES  The system has insufficient resources to process the\r
                                 request.\r
   @retval EFI_INVALID_PARAMETER The SectionStreamHandle does not exist.\r
-  @retval EFI_WARN_TOO_SMALL    The size of the caller allocated input buffer is \r
-                                insufficient to contain the requested section.  The \r
+  @retval EFI_WARN_TOO_SMALL    The size of the caller allocated input buffer is\r
+                                insufficient to contain the requested section.  The\r
                                 input buffer is filled and contents are section contents\r
                                 are truncated.\r
 \r
@@ -218,18 +218,18 @@ LIST_ENTRY mStreamRoot = INITIALIZE_LIST_HEAD_VARIABLE (mStreamRoot);
 \r
 EFI_HANDLE mSectionExtractionHandle = NULL;\r
 \r
-EFI_SECTION_EXTRACTION_PROTOCOL mSectionExtraction = { \r
-  OpenSectionStream, \r
-  GetSection, \r
+EFI_SECTION_EXTRACTION_PROTOCOL mSectionExtraction = {\r
+  OpenSectionStream,\r
+  GetSection,\r
   CloseSectionStream\r
 };\r
 \r
 /**\r
-  Entry point of the section extraction code. Initializes an instance of the \r
+  Entry point of the section extraction code. Initializes an instance of the\r
   section extraction interface and installs it on a new handle.\r
 \r
   @param ImageHandle             A handle for the image that is initializing this driver\r
-  @param SystemTable             A pointer to the EFI system table        \r
+  @param SystemTable             A pointer to the EFI system table\r
 \r
   @retval EFI_SUCCESS            Driver initialized successfully\r
   @retval EFI_OUT_OF_RESOURCES   Could not allocate needed resources\r
@@ -281,7 +281,7 @@ IsValidSectionStream (
 \r
   TotalLength = 0;\r
   SectionHeader = (EFI_COMMON_SECTION_HEADER *)SectionStream;\r
-  \r
+\r
   while (TotalLength < SectionStreamLength) {\r
     if (IS_SECTION2 (SectionHeader)) {\r
       SectionLength = SECTION2_SIZE (SectionHeader);\r
@@ -291,14 +291,14 @@ IsValidSectionStream (
     TotalLength += SectionLength;\r
 \r
     if (TotalLength == SectionStreamLength) {\r
-      return TRUE;    \r
+      return TRUE;\r
     }\r
 \r
     //\r
     // Move to the next byte following the section...\r
     //\r
     SectionHeader = (EFI_COMMON_SECTION_HEADER *) ((UINT8 *) SectionHeader + SectionLength);\r
-    \r
+\r
     //\r
     // Figure out where the next section begins\r
     //\r
@@ -331,13 +331,13 @@ OpenSectionStreamEx (
   IN     UINTN                                     SectionStreamLength,\r
   IN     VOID                                      *SectionStream,\r
   IN     BOOLEAN                                   AllocateBuffer,\r
-  IN     UINT32                                    AuthenticationStatus,   \r
+  IN     UINT32                                    AuthenticationStatus,\r
      OUT UINTN                                     *SectionStreamHandle\r
   )\r
 {\r
   FRAMEWORK_SECTION_STREAM_NODE    *NewStream;\r
   EFI_TPL                          OldTpl;\r
-  \r
+\r
   //\r
   // Allocate a new stream\r
   //\r
@@ -345,14 +345,14 @@ OpenSectionStreamEx (
   if (NewStream == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
-  \r
-  if (AllocateBuffer) { \r
+\r
+  if (AllocateBuffer) {\r
     //\r
     // if we're here, we're double buffering, allocate the buffer and copy the\r
     // data in\r
     //\r
     if (SectionStreamLength > 0) {\r
-      NewStream->StreamBuffer = AllocatePool (SectionStreamLength); \r
+      NewStream->StreamBuffer = AllocatePool (SectionStreamLength);\r
       if (NewStream->StreamBuffer == NULL) {\r
         FreePool (NewStream);\r
         return EFI_OUT_OF_RESOURCES;\r
@@ -375,7 +375,7 @@ OpenSectionStreamEx (
     //\r
     NewStream->StreamBuffer = SectionStream;\r
   }\r
-  \r
+\r
   //\r
   // Initialize the rest of the section stream\r
   //\r
@@ -384,7 +384,7 @@ OpenSectionStreamEx (
   NewStream->StreamLength = SectionStreamLength;\r
   InitializeListHead (&NewStream->Children);\r
   NewStream->AuthenticationStatus = AuthenticationStatus;\r
-  \r
+\r
   //\r
   // Add new stream to stream list\r
   //\r
@@ -393,7 +393,7 @@ OpenSectionStreamEx (
   gBS->RestoreTPL (OldTpl);\r
 \r
   *SectionStreamHandle = NewStream->StreamHandle;\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -428,9 +428,9 @@ OpenSectionStream (
   if (!IsValidSectionStream (SectionStream, SectionStreamLength)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
-  return OpenSectionStreamEx ( \r
-          SectionStreamLength, \r
+\r
+  return OpenSectionStreamEx (\r
+          SectionStreamLength,\r
           SectionStream,\r
           TRUE,\r
           0,\r
@@ -460,7 +460,7 @@ ChildIsType (
   )\r
 {\r
   EFI_GUID_DEFINED_SECTION    *GuidedSection;\r
-  \r
+\r
   if (SearchType == EFI_SECTION_ALL) {\r
     return TRUE;\r
   }\r
@@ -549,7 +549,7 @@ CreateProtocolNotifyEvent (
 \r
   @return TRUE      The GuidedSectionGuid could be identified, and the pointer to\r
                     the Guided Section Extraction Protocol will be returned to *GuidedSectionExtraction.\r
-  @return FALSE     The GuidedSectionGuid could not be identified, or \r
+  @return FALSE     The GuidedSectionGuid could not be identified, or\r
                     the Guided Section Extraction Protocol has not been installed yet.\r
 \r
 **/\r
@@ -588,7 +588,7 @@ VerifyGuidedSectionGuid (
 }\r
 \r
 /**\r
-  RPN callback function.  \r
+  RPN callback function.\r
   1. Initialize the section stream when the GUIDED_SECTION_EXTRACTION_PROTOCOL is installed.\r
   2. Removes a stale section stream and re-initializes it with an updated AuthenticationStatus.\r
 \r
@@ -611,7 +611,7 @@ NotifyGuidedExtraction (
   UINTN                                   NewStreamBufferSize;\r
   UINT32                                  AuthenticationStatus;\r
   RPN_EVENT_CONTEXT                       *Context;\r
-  \r
+\r
   Context = RpnContext;\r
   Status = EFI_SUCCESS;\r
   if (Context->ChildNode->EncapsulatedStreamHandle != NULL_STREAM_HANDLE) {\r
@@ -619,14 +619,14 @@ NotifyGuidedExtraction (
   }\r
   if (!EFI_ERROR (Status)) {\r
     //\r
-    // The stream is not initialized, open it. \r
+    // The stream is not initialized, open it.\r
     // Or the stream closed successfully, so re-open the stream with correct AuthenticationStatus.\r
     //\r
-  \r
-    GuidedHeader = (EFI_GUID_DEFINED_SECTION *) \r
+\r
+    GuidedHeader = (EFI_GUID_DEFINED_SECTION *)\r
       (Context->ParentStream->StreamBuffer + Context->ChildNode->OffsetInStream);\r
     ASSERT (GuidedHeader->CommonHeader.Type == EFI_SECTION_GUID_DEFINED);\r
-    \r
+\r
     if (!VerifyGuidedSectionGuid (Context->ChildNode->EncapsulationGuid, &GuidedExtraction)) {\r
       return;\r
     }\r
@@ -658,11 +658,11 @@ NotifyGuidedExtraction (
   //  already been closed by someone, so just destroy the event and be done with\r
   //  it.\r
   //\r
-  \r
+\r
   gBS->CloseEvent (Event);\r
   Context->ChildNode->Event = NULL;\r
   FreePool (Context);\r
-}  \r
+}\r
 \r
 /**\r
   Worker function.  Constructor for RPN event if needed to keep AuthenticationStatus\r
@@ -679,16 +679,16 @@ CreateGuidedExtractionRpnEvent (
   )\r
 {\r
   RPN_EVENT_CONTEXT *Context;\r
-  \r
+\r
   //\r
   // Allocate new event structure and context\r
   //\r
   Context = AllocatePool (sizeof (RPN_EVENT_CONTEXT));\r
   ASSERT (Context != NULL);\r
-  \r
+\r
   Context->ChildNode = ChildNode;\r
   Context->ParentStream = ParentStream;\r
\r
+\r
   Context->ChildNode->Event = CreateProtocolNotifyEvent (\r
                                 Context->ChildNode->EncapsulationGuid,\r
                                 TPL_NOTIFY,\r
@@ -740,7 +740,7 @@ CreateChildNode (
   UINT32                                       UncompressedLength;\r
   UINT8                                        CompressionType;\r
   UINT16                                       GuidedSectionAttributes;\r
-    \r
+\r
   FRAMEWORK_SECTION_CHILD_NODE                      *Node;\r
 \r
   SectionHeader = (EFI_COMMON_SECTION_HEADER *) (Stream->StreamBuffer + ChildOffset);\r
@@ -753,7 +753,7 @@ CreateChildNode (
   if (Node == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
-  \r
+\r
   //\r
   // Now initialize it\r
   //\r
@@ -767,7 +767,7 @@ CreateChildNode (
   Node->OffsetInStream = ChildOffset;\r
   Node->EncapsulatedStreamHandle = NULL_STREAM_HANDLE;\r
   Node->EncapsulationGuid = NULL;\r
-  \r
+\r
   //\r
   // If it's an encapsulating section, then create the new section stream also\r
   //\r
@@ -805,7 +805,7 @@ CreateChildNode (
           FreePool (Node);\r
           return EFI_OUT_OF_RESOURCES;\r
         }\r
-        \r
+\r
         if (CompressionType == EFI_NOT_COMPRESSED) {\r
           //\r
           // stream is not actually compressed, just encapsulated.  So just copy it.\r
@@ -814,15 +814,15 @@ CreateChildNode (
         } else if (CompressionType == EFI_STANDARD_COMPRESSION) {\r
           //\r
           // Only support the EFI_SATNDARD_COMPRESSION algorithm.\r
-          // \r
+          //\r
 \r
           //\r
           // Decompress the stream\r
           //\r
           Status = gBS->LocateProtocol (&gEfiDecompressProtocolGuid, NULL, (VOID **)&Decompress);\r
-          \r
+\r
           ASSERT_EFI_ERROR (Status);\r
-          \r
+\r
           Status = Decompress->GetInfo (\r
                                  Decompress,\r
                                  CompressionSource,\r
@@ -855,7 +855,7 @@ CreateChildNode (
                                  ScratchBuffer,\r
                                  ScratchSize\r
                                  );\r
-          FreePool (ScratchBuffer); \r
+          FreePool (ScratchBuffer);\r
           if (EFI_ERROR (Status)) {\r
             FreePool (Node);\r
             FreePool (NewStreamBuffer);\r
@@ -866,7 +866,7 @@ CreateChildNode (
         NewStreamBuffer = NULL;\r
         NewStreamBufferSize = 0;\r
       }\r
-      \r
+\r
       Status = OpenSectionStreamEx (\r
                  NewStreamBufferSize,\r
                  NewStreamBuffer,\r
@@ -906,9 +906,9 @@ CreateChildNode (
           FreePool (*ChildNode);\r
           return EFI_PROTOCOL_ERROR;\r
         }\r
-        \r
+\r
         //\r
-        // Make sure we initialize the new stream with the correct \r
+        // Make sure we initialize the new stream with the correct\r
         // authentication status for both aggregate and local status fields.\r
         //\r
         if ((GuidedSectionAttributes & EFI_GUIDED_SECTION_AUTH_STATUS_VALID) == EFI_GUIDED_SECTION_AUTH_STATUS_VALID) {\r
@@ -923,7 +923,7 @@ CreateChildNode (
           //\r
           AuthenticationStatus = Stream->AuthenticationStatus;\r
         }\r
-        \r
+\r
         Status = OpenSectionStreamEx (\r
                    NewStreamBufferSize,\r
                    NewStreamBuffer,\r
@@ -942,8 +942,8 @@ CreateChildNode (
         //\r
         if ((GuidedSectionAttributes & EFI_GUIDED_SECTION_PROCESSING_REQUIRED) == EFI_GUIDED_SECTION_PROCESSING_REQUIRED) {\r
           //\r
-          // If the section REQUIRES an extraction protocol, register for RPN \r
-          // when the required GUIDed extraction protocol becomes available. \r
+          // If the section REQUIRES an extraction protocol, register for RPN\r
+          // when the required GUIDed extraction protocol becomes available.\r
           //\r
           AuthenticationStatus = 0;\r
           CreateGuidedExtractionRpnEvent (Stream, Node);\r
@@ -954,11 +954,11 @@ CreateChildNode (
           AuthenticationStatus = Stream->AuthenticationStatus;\r
           if ((GuidedSectionAttributes & EFI_GUIDED_SECTION_AUTH_STATUS_VALID) == EFI_GUIDED_SECTION_AUTH_STATUS_VALID) {\r
             //\r
-            //  The local status of the new stream is contained in \r
+            //  The local status of the new stream is contained in\r
             //  AuthenticaionStatus.  This value needs to be ORed into the\r
             //  Aggregate bits also...\r
             //\r
-            \r
+\r
             //\r
             // Clear out and initialize the local status\r
             //\r
@@ -969,7 +969,7 @@ CreateChildNode (
             //\r
             AuthenticationStatus |= AuthenticationStatus >> 16;\r
           }\r
-          \r
+\r
           if (IS_SECTION2 (GuidedHeader)) {\r
             Status = OpenSectionStreamEx (\r
                        SECTION2_SIZE (GuidedHeader) - ((EFI_GUID_DEFINED_SECTION2 *) GuidedHeader)->DataOffset,\r
@@ -993,8 +993,8 @@ CreateChildNode (
           }\r
         }\r
       }\r
-      \r
-      if ((AuthenticationStatus & EFI_LOCAL_AUTH_STATUS_ALL) == \r
+\r
+      if ((AuthenticationStatus & EFI_LOCAL_AUTH_STATUS_ALL) ==\r
             (EFI_LOCAL_AUTH_STATUS_IMAGE_SIGNED | EFI_LOCAL_AUTH_STATUS_NOT_TESTED)) {\r
         //\r
         // Need to register for RPN for when the required GUIDed extraction\r
@@ -1004,17 +1004,17 @@ CreateChildNode (
         //\r
         CreateGuidedExtractionRpnEvent (Stream, Node);\r
       }\r
-      \r
+\r
       break;\r
 \r
     default:\r
-      \r
+\r
       //\r
       // Nothing to do if it's a leaf\r
       //\r
       break;\r
   }\r
-  \r
+\r
   //\r
   // Last, add the new child node to the stream\r
   //\r
@@ -1064,15 +1064,15 @@ FindChildNode (
   UINT32                                        NextChildOffset;\r
   EFI_STATUS                                    ErrorStatus;\r
   EFI_STATUS                                    Status;\r
-  \r
+\r
   CurrentChildNode = NULL;\r
   ErrorStatus = EFI_NOT_FOUND;\r
-  \r
+\r
   if (SourceStream->StreamLength == 0) {\r
     return EFI_NOT_FOUND;\r
   }\r
-  \r
-  if (IsListEmpty (&SourceStream->Children) && \r
+\r
+  if (IsListEmpty (&SourceStream->Children) &&\r
                    SourceStream->StreamLength >= sizeof (EFI_COMMON_SECTION_HEADER)) {\r
     //\r
     // This occurs when a section stream exists, but no child sections\r
@@ -1086,7 +1086,7 @@ FindChildNode (
       return Status;\r
     }\r
   }\r
-  \r
+\r
   //\r
   // At least one child has been parsed out of the section stream.  So, walk\r
   // through the sections that have already been parsed out looking for the\r
@@ -1113,7 +1113,7 @@ FindChildNode (
         return EFI_SUCCESS;\r
       }\r
     }\r
-    \r
+\r
     if (CurrentChildNode->EncapsulatedStreamHandle != NULL_STREAM_HANDLE) {\r
       //\r
       // If the current node is an encapsulating node, recurse into it...\r
@@ -1147,7 +1147,7 @@ FindChildNode (
       //\r
       ErrorStatus = EFI_PROTOCOL_ERROR;\r
     }\r
-    \r
+\r
     if (!IsNodeAtEnd (&SourceStream->Children, &CurrentChildNode->Link)) {\r
       //\r
       // We haven't found the child node we're interested in yet, but there's\r
@@ -1199,9 +1199,9 @@ FindStreamNode (
   IN  UINTN                                     SearchHandle,\r
   OUT FRAMEWORK_SECTION_STREAM_NODE                  **FoundStream\r
   )\r
-{  \r
+{\r
   FRAMEWORK_SECTION_STREAM_NODE                      *StreamNode;\r
-  \r
+\r
   if (!IsListEmpty (&mStreamRoot)) {\r
     StreamNode = STREAM_NODE_FROM_LINK (GetFirstNode (&mStreamRoot));\r
     for (;;) {\r
@@ -1215,10 +1215,10 @@ FindStreamNode (
       }\r
     }\r
   }\r
-  \r
+\r
   return EFI_NOT_FOUND;\r
 }\r
-  \r
+\r
 /**\r
   SEP member function.  Retrieves requested section from section stream.\r
 \r
@@ -1242,22 +1242,22 @@ FindStreamNode (
   @param AuthenticationStatus  Indicates the authentication status of the retrieved\r
                                section.\r
 \r
\r
+\r
   @retval EFI_SUCCESS           Section was retrieved successfully\r
-  @retval EFI_PROTOCOL_ERROR    A GUID defined section was encountered in the section \r
+  @retval EFI_PROTOCOL_ERROR    A GUID defined section was encountered in the section\r
                                 stream with its EFI_GUIDED_SECTION_PROCESSING_REQUIRED\r
-                                bit set, but there was no corresponding GUIDed Section \r
-                                Extraction Protocol in the handle database.  *Buffer is \r
+                                bit set, but there was no corresponding GUIDed Section\r
+                                Extraction Protocol in the handle database.  *Buffer is\r
                                 unmodified.\r
   @retval EFI_NOT_FOUND         An error was encountered when parsing the SectionStream.\r
-                                This indicates the SectionStream  is not correctly \r
+                                This indicates the SectionStream  is not correctly\r
                                 formatted.\r
   @retval EFI_NOT_FOUND         The requested section does not exist.\r
-  @retval EFI_OUT_OF_RESOURCES  The system has insufficient resources to process the \r
+  @retval EFI_OUT_OF_RESOURCES  The system has insufficient resources to process the\r
                                 request.\r
   @retval EFI_INVALID_PARAMETER The SectionStreamHandle does not exist.\r
-  @retval EFI_WARN_TOO_SMALL    The size of the caller allocated input buffer is \r
-                                insufficient to contain the requested section.  The \r
+  @retval EFI_WARN_TOO_SMALL    The size of the caller allocated input buffer is\r
+                                insufficient to contain the requested section.  The\r
                                 input buffer is filled and contents are section contents\r
                                 are truncated.\r
 \r
@@ -1286,12 +1286,12 @@ GetSection (
   UINT8                                                 *CopyBuffer;\r
   UINTN                                                 SectionSize;\r
   EFI_COMMON_SECTION_HEADER                             *Section;\r
-  \r
+\r
 \r
   OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
   Instance = SectionInstance + 1;\r
   ChildStreamNode = NULL;\r
-  \r
+\r
   //\r
   // Locate target stream\r
   //\r
@@ -1300,7 +1300,7 @@ GetSection (
     Status = EFI_INVALID_PARAMETER;\r
     goto GetSection_Done;\r
   }\r
-  \r
+\r
   //\r
   // Found the stream, now locate and return the appropriate section\r
   //\r
@@ -1316,12 +1316,12 @@ GetSection (
     // There's a requested section type, so go find it and return it...\r
     //\r
     Status = FindChildNode (\r
-                      StreamNode, \r
-                      *SectionType, \r
-                      &Instance, \r
+                      StreamNode,\r
+                      *SectionType,\r
+                      &Instance,\r
                       SectionDefinitionGuid,\r
                       &ChildNode,\r
-                      &ChildStreamNode, \r
+                      &ChildStreamNode,\r
                       &ExtractedAuthenticationStatus\r
                       );\r
     if (EFI_ERROR (Status)) {\r
@@ -1339,9 +1339,9 @@ GetSection (
       CopyBuffer = (UINT8 *) Section + sizeof (EFI_COMMON_SECTION_HEADER);\r
     }\r
     *AuthenticationStatus = ExtractedAuthenticationStatus;\r
-  }   \r
-    \r
-  SectionSize = CopySize;  \r
+  }\r
+\r
+  SectionSize = CopySize;\r
   if (*Buffer != NULL) {\r
     //\r
     // Caller allocated buffer.  Fill to size and return required size...\r
@@ -1362,7 +1362,7 @@ GetSection (
   }\r
   CopyMem (*Buffer, CopyBuffer, CopySize);\r
   *BufferSize = SectionSize;\r
-  \r
+\r
 GetSection_Done:\r
   gBS->RestoreTPL (OldTpl);\r
   return Status;\r
@@ -1384,7 +1384,7 @@ FreeChildNode (
   // Remove the child from it's list\r
   //\r
   RemoveEntryList (&ChildNode->Link);\r
-  \r
+\r
   if (ChildNode->EncapsulatedStreamHandle != NULL_STREAM_HANDLE) {\r
     //\r
     // If it's an encapsulating section, we close the resulting section stream.\r
@@ -1401,7 +1401,7 @@ FreeChildNode (
   // Last, free the child node itself\r
   //\r
   FreePool (ChildNode);\r
-}  \r
+}\r
 \r
 /**\r
   SEP member function.  Deletes an existing section stream\r
@@ -1427,9 +1427,9 @@ CloseSectionStream (
   EFI_STATUS                                    Status;\r
   LIST_ENTRY                                    *Link;\r
   FRAMEWORK_SECTION_CHILD_NODE                       *ChildNode;\r
-  \r
+\r
   OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
-  \r
+\r
   //\r
   // Locate target stream\r
   //\r
@@ -1450,7 +1450,7 @@ CloseSectionStream (
   } else {\r
     Status = EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   gBS->RestoreTPL (OldTpl);\r
   return Status;\r
 }\r
index ab0bd630763661efe328e79ad373b987b981db5c..29ab566b899c94c860ed827bd9f092d396d1e11c 100644 (file)
@@ -4,16 +4,16 @@
 #  The section is implemented as a linked list of section streams,\r
 #  where each stream contains a linked list of children, which may be leaves or\r
 #  encapsulations. Encapsulation section will further generate new section stream entries.\r
-#  \r
-#  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+#\r
+#  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 #  which accompanies this distribution.  The full text of the license may be found at\r
 #  http://opensource.org/licenses/bsd-license.php\r
-#  \r
+#\r
 #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#  \r
+#\r
 ##\r
 \r
 [Defines]\r
@@ -23,7 +23,7 @@
   FILE_GUID                      = 801ADCA0-815E-46a4-84F7-657F53621A57\r
   MODULE_TYPE                    = DXE_DRIVER\r
   VERSION_STRING                 = 1.0\r
-  ENTRY_POINT                    = SectionExtractionEntryPoint  \r
+  ENTRY_POINT                    = SectionExtractionEntryPoint\r
 \r
 # The following information is for reference only and not required by the build tools.\r
 #\r
index ecbd251b1256dee705eacb55fedeb42a0a70cbc3..1496f6fb90f41c8912e566b474663bcb7743c688 100644 (file)
@@ -5,13 +5,13 @@
 // where each stream contains a linked list of children, which may be leaves or\r
 // encapsulations. Encapsulation section will further generate new section stream entries.\r
 //\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution.  The full text of the license may be found at\r
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
index c53ee6bdfb3020e612533644f5b30623ef65be75..d0f5caa9d508c9fb758e789b849fdcdd88d3c39d 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // SectionExtractionDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -13,8 +13,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Firmware Storage Extraction DXE Driver"\r
 \r
 \r
index 5b42395dbd39409f52c7e87e03b7ff0c32814aee..a1f86301d4500d65c160d9a789898b75c27e3a53 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Data Hub status code worker.\r
 \r
-  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -62,7 +62,7 @@ AcquireRecordBuffer (
     if (CurrentTpl > TPL_NOTIFY) {\r
       //\r
       // Memory management should work at <=TPL_NOTIFY\r
-      // \r
+      //\r
       gBS->RestoreTPL (CurrentTpl);\r
       return NULL;\r
     }\r
@@ -132,7 +132,7 @@ RetrieveRecord (
 \r
 /**\r
   Release given record and return it to free record buffer.\r
-  \r
+\r
   @param RecordData  Pointer to the record to release.\r
 \r
 **/\r
@@ -348,8 +348,8 @@ DataHubStatusCodeInitializeWorker (
   EFI_STATUS  Status;\r
 \r
   Status = gBS->LocateProtocol (\r
-                  &gEfiDataHubProtocolGuid, \r
-                  NULL, \r
+                  &gEfiDataHubProtocolGuid,\r
+                  NULL,\r
                   (VOID **) &mDataHubProtocol\r
                   );\r
   if (EFI_ERROR (Status)) {\r
index ee7bdd36afae21c9978a40f3995ace2531c294ff..5db8d814acb47e41578d6ab8a13077a031997fdd 100644 (file)
@@ -2,7 +2,7 @@
   Status Code Handler Driver which produces datahub handler and hook it\r
   onto the DXE status code router.\r
 \r
-  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -45,7 +45,7 @@ UnregisterBootTimeHandlers (
 \r
   @param  ImageHandle       The firmware allocated handle for the EFI image.\r
   @param  SystemTable       A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS       The entry point is executed successfully.\r
 \r
 **/\r
index 1a576772a3f1a918d36c0bdbb49099c0e11e81f5..82f9d1a081e7044d4a0bb7234887843bf61ca6d0 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 #  Status Code Handler Driver which produces datahub handler.\r
 #\r
-#  Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -19,7 +19,7 @@
   MODULE_UNI_FILE                = DatahubStatusCodeHandlerDxe.uni\r
   FILE_GUID                      = 863D214F-0920-437B-8CAD-88EA83A24E97\r
   MODULE_TYPE                    = DXE_DRIVER\r
-  VERSION_STRING                 = 1.0  \r
+  VERSION_STRING                 = 1.0\r
   ENTRY_POINT                    = DatahubStatusCodeHandlerDxeEntry\r
 \r
 #\r
   DatahubStatusCodeHandlerDxe.h\r
   DatahubStatusCodeHandlerDxe.c\r
   DataHubStatusCodeWorker.c\r
-  \r
+\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
   MdeModulePkg/MdeModulePkg.dec\r
   IntelFrameworkPkg/IntelFrameworkPkg.dec\r
   IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec\r
-  \r
+\r
 [LibraryClasses]\r
   BaseLib\r
   MemoryAllocationLib\r
   DebugLib\r
   SynchronizationLib\r
   BaseMemoryLib\r
-  \r
+\r
 [Guids]\r
   gEfiEventExitBootServicesGuid                 ## CONSUMES ## Event\r
   gEfiDataHubStatusCodeRecordGuid               ## PRODUCES ## UNDEFINED # DataRecord Guid\r
   gEfiStatusCodeDataTypeDebugGuid               ## SOMETIMES_PRODUCES ## UNDEFINED # Record data type\r
-  \r
+\r
 [Protocols]\r
   gEfiRscHandlerProtocolGuid                    ## CONSUMES\r
   gEfiDataHubProtocolGuid                       ## CONSUMES\r
index 15c62b419fd37410b4dab61e921b9bb7397129ce..d69948600e123c6161370a0bca26ed4711449998 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // DatahubStatusCodeHandlerDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -12,8 +12,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Data Hub Status Code DXE Driver"\r
 \r
 \r
index f0b36f23a20ddfce066ff9916eb39a633554ea8f..00c2b302bf602e0bd599742bbc6a0d47724481b1 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   PEI memory status code worker.\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -81,7 +81,7 @@ MemoryStatusCodeReportWorker (
   MEMORY_STATUSCODE_RECORD          *Record;\r
 \r
   //\r
-  // Find GUID'ed HOBs to locate current record buffer. \r
+  // Find GUID'ed HOBs to locate current record buffer.\r
   //\r
   Hob.Raw = GetFirstGuidHob (&gMemoryStatusCodeRecordGuid);\r
   ASSERT (Hob.Raw != NULL);\r
index 5b17df386209e9a7c40db88642abc4316df477ea..2a092376202fbc292a3274d48e53412a58554727 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Status code PEIM which produces Status Code PPI.\r
 \r
-  Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -95,7 +95,7 @@ ReportDispatcher (
 \r
 /**\r
   Entry point of Status Code PEIM.\r
-  \r
+\r
   This function is the entry point of this Status Code PEIM.\r
   It initializes supported status code devices according to PCD settings,\r
   and installs Status Code PPI.\r
index f3210485825b3e3152c5e18df2c9a9b4cc402774..764849bf5f5b61b93f6a44e265547ef7cdfe45f1 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // StatusCodePei Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -12,8 +12,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Status Code PEI Module"\r
 \r
 \r
index ffee2f9c2acaafebf8c7ea690a940e94233e74c2..0c48d6cd191e0c4bd41984575ec0aac7ca1d32f3 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Data Hub status code worker.\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -62,7 +62,7 @@ AcquireRecordBuffer (
     if (CurrentTpl > TPL_NOTIFY) {\r
       //\r
       // Memory management should work at <=TPL_NOTIFY\r
-      // \r
+      //\r
       gBS->RestoreTPL (CurrentTpl);\r
       return NULL;\r
     }\r
@@ -132,7 +132,7 @@ RetrieveRecord (
 \r
 /**\r
   Release given record and return it to free record buffer.\r
-  \r
+\r
   @param RecordData  Pointer to the record to release.\r
 \r
 **/\r
@@ -212,7 +212,7 @@ DataHubStatusCodeReportWorker (
       return Status;\r
     }\r
   }\r
-  \r
+\r
   Record = AcquireRecordBuffer ();\r
   if (Record == NULL) {\r
     //\r
@@ -362,8 +362,8 @@ DataHubStatusCodeInitializeWorker (
   EFI_STATUS  Status;\r
 \r
   Status = gBS->LocateProtocol (\r
-                  &gEfiDataHubProtocolGuid, \r
-                  NULL, \r
+                  &gEfiDataHubProtocolGuid,\r
+                  NULL,\r
                   (VOID **) &mDataHubProtocol\r
                   );\r
   if (EFI_ERROR (Status)) {\r
index 2a26e19e65ac7d1572ac8ddd08945e32de8dfe90..733fea05fd964d4512f0c69dbb9a30abf2fb23ba 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   Runtime memory status code worker.\r
 \r
-  Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                            \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -18,7 +18,7 @@ RUNTIME_MEMORY_STATUSCODE_HEADER  *mRtMemoryStatusCodeTable;
 \r
 /**\r
   Initialize runtime memory status code table as initialization for runtime memory status code worker\r
\r
+\r
   @retval EFI_SUCCESS  Runtime memory status code table successfully initialized.\r
 \r
 **/\r
@@ -38,7 +38,7 @@ RtMemoryStatusCodeInitializeWorker (
 \r
   mRtMemoryStatusCodeTable->RecordIndex      = 0;\r
   mRtMemoryStatusCodeTable->NumberOfRecords  = 0;\r
-  mRtMemoryStatusCodeTable->MaxRecordsNumber = \r
+  mRtMemoryStatusCodeTable->MaxRecordsNumber =\r
     (PcdGet16 (PcdStatusCodeMemorySize) * 1024) / sizeof (MEMORY_STATUSCODE_RECORD);\r
 \r
   return EFI_SUCCESS;\r
@@ -46,16 +46,16 @@ RtMemoryStatusCodeInitializeWorker (
 \r
 \r
 /**\r
-  Report status code into runtime memory. If the runtime pool is full, roll back to the \r
+  Report status code into runtime memory. If the runtime pool is full, roll back to the\r
   first record and overwrite it.\r
\r
+\r
   @param  CodeType                Indicates the type of status code being reported.\r
   @param  Value                   Describes the current status of a hardware or software entity.\r
                                   This included information about the class and subclass that is used to\r
                                   classify the entity as well as an operation.\r
   @param  Instance                The enumeration of a hardware or software entity within\r
                                   the system. Valid instance numbers start with 1.\r
\r
+\r
   @retval EFI_SUCCESS             Status code successfully recorded in runtime memory status code table.\r
 \r
 **/\r
index e1d02630e7bc2799dda5d3e71b38d0b36db67f08..90908ff9c6f233d9f6dca08e95c5f1fa94e7c19f 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   Serial I/O status code reporting worker.\r
 \r
-  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                            \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -16,7 +16,7 @@
 \r
 /**\r
   Convert status code value and extended data to readable ASCII string, send string to serial I/O device.\r
\r
+\r
   @param  CodeType         Indicates the type of status code being reported.\r
   @param  Value            Describes the current status of a hardware or software entity.\r
                            This included information about the class and subclass that is used to\r
@@ -72,9 +72,9 @@ SerialStatusCodeReportWorker (
     // Print DEBUG() information into output buffer.\r
     //\r
     CharCount = AsciiBSPrint (\r
-                  Buffer, \r
-                  sizeof (Buffer), \r
-                  Format, \r
+                  Buffer,\r
+                  sizeof (Buffer),\r
+                  Format,\r
                   Marker\r
                   );\r
   } else if ((CodeType & EFI_STATUS_CODE_TYPE_MASK) == EFI_ERROR_CODE) {\r
@@ -82,14 +82,14 @@ SerialStatusCodeReportWorker (
     // Print ERROR information into output buffer.\r
     //\r
     CharCount = AsciiSPrint (\r
-                  Buffer, \r
-                  sizeof (Buffer), \r
-                  "ERROR: C%08x:V%08x I%x", \r
-                  CodeType, \r
-                  Value, \r
+                  Buffer,\r
+                  sizeof (Buffer),\r
+                  "ERROR: C%08x:V%08x I%x",\r
+                  CodeType,\r
+                  Value,\r
                   Instance\r
                   );\r
-   \r
+\r
     if (CallerId != NULL) {\r
       CharCount += AsciiSPrint (\r
                      &Buffer[CharCount],\r
@@ -118,10 +118,10 @@ SerialStatusCodeReportWorker (
     // Print PROGRESS information into output buffer.\r
     //\r
     CharCount = AsciiSPrint (\r
-                  Buffer, \r
-                  sizeof (Buffer), \r
-                  "PROGRESS CODE: V%08x I%x\n\r", \r
-                  Value, \r
+                  Buffer,\r
+                  sizeof (Buffer),\r
+                  "PROGRESS CODE: V%08x I%x\n\r",\r
+                  Value,\r
                   Instance\r
                   );\r
   } else if (Data != NULL &&\r
@@ -141,11 +141,11 @@ SerialStatusCodeReportWorker (
     // Code type is not defined.\r
     //\r
     CharCount = AsciiSPrint (\r
-                  Buffer, \r
-                  sizeof (Buffer), \r
-                  "Undefined: C%08x:V%08x I%x\n\r", \r
-                  CodeType, \r
-                  Value, \r
+                  Buffer,\r
+                  sizeof (Buffer),\r
+                  "Undefined: C%08x:V%08x I%x\n\r",\r
+                  CodeType,\r
+                  Value,\r
                   Instance\r
                   );\r
   }\r
index 6435e1f727d0dcefd4e7ce7559436f26316ad6a9..991fd1b6106778ac326501ac5f36834b7bf41017 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Status code driver for IA32/X64/EBC architecture.\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -38,7 +38,7 @@ UINT32  mStatusCodeNestStatus = 0;
 \r
   @param  ImageHandle       The firmware allocated handle for the EFI image.\r
   @param  SystemTable       A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS       The entry point is executed successfully.\r
 \r
 **/\r
@@ -192,9 +192,9 @@ VirtualAddressChangeCallBack (
 }\r
 \r
 /**\r
-  Dispatch initialization request to sub status code devices based on \r
+  Dispatch initialization request to sub status code devices based on\r
   customized feature flags.\r
\r
+\r
 **/\r
 VOID\r
 InitializationDispatcherWorker (\r
@@ -236,11 +236,11 @@ InitializationDispatcherWorker (
   }\r
 \r
   //\r
-  // Replay Status code which saved in GUID'ed HOB to all supported devices. \r
+  // Replay Status code which saved in GUID'ed HOB to all supported devices.\r
   //\r
   if (FeaturePcdGet (PcdStatusCodeReplayIn)) {\r
-    // \r
-    // Journal GUID'ed HOBs to find all record entry, if found, \r
+    //\r
+    // Journal GUID'ed HOBs to find all record entry, if found,\r
     // then output record to support replay device.\r
     //\r
     Hob.Raw   = GetFirstGuidHob (&gMemoryStatusCodeRecordGuid);\r
index ae20f5b226763e2037da895bfe5adb9b6978d4b8..b01e2bcbdd04b4e04c617dc33f601a5acd7ea94c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Internal include file of Status Code Runtime DXE Driver.\r
 \r
-  Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -87,9 +87,9 @@ ReportDispatcher (
   );\r
 \r
 /**\r
-  Dispatch initialization request to sub status code devices based on \r
+  Dispatch initialization request to sub status code devices based on\r
   customized feature flags.\r
\r
+\r
 **/\r
 VOID\r
 InitializationDispatcherWorker (\r
@@ -99,7 +99,7 @@ InitializationDispatcherWorker (
 \r
 /**\r
   Locates Serial I/O Protocol as initialization for serial status code worker.\r
\r
+\r
   @retval EFI_SUCCESS  Serial I/O Protocol is successfully located.\r
 \r
 **/\r
@@ -111,7 +111,7 @@ EfiSerialStatusCodeInitializeWorker (
 \r
 /**\r
   Convert status code value and extended data to readable ASCII string, send string to serial I/O device.\r
\r
+\r
   @param  CodeType         Indicates the type of status code being reported.\r
   @param  Value            Describes the current status of a hardware or software entity.\r
                            This included information about the class and subclass that is used to\r
@@ -139,7 +139,7 @@ SerialStatusCodeReportWorker (
 \r
 /**\r
   Initialize runtime memory status code table as initialization for runtime memory status code worker\r
\r
+\r
   @retval EFI_SUCCESS  Runtime memory status code table successfully initialized.\r
 \r
 **/\r
@@ -149,16 +149,16 @@ RtMemoryStatusCodeInitializeWorker (
   );\r
 \r
 /**\r
-  Report status code into runtime memory. If the runtime pool is full, roll back to the \r
+  Report status code into runtime memory. If the runtime pool is full, roll back to the\r
   first record and overwrite it.\r
\r
+\r
   @param  CodeType                Indicates the type of status code being reported.\r
   @param  Value                   Describes the current status of a hardware or software entity.\r
                                   This included information about the class and subclass that is used to\r
                                   classify the entity as well as an operation.\r
   @param  Instance                The enumeration of a hardware or software entity within\r
                                   the system. Valid instance numbers start with 1.\r
\r
+\r
   @retval EFI_SUCCESS             Status code successfully recorded in runtime memory status code table.\r
 \r
 **/\r
index 2cc9aa33ef5f1ae8839d2599aa6bf53c36d28b49..8b94cf2a788668c558cfc0547ec2e72057ffc9fd 100644 (file)
@@ -1,7 +1,7 @@
 // /** @file\r
 // StatusCodeRuntimeDxe Localized Strings and Content\r
 //\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
 //\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -12,8 +12,8 @@
 //\r
 // **/\r
 \r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
+#string STR_PROPERTIES_MODULE_NAME\r
+#language en-US\r
 "Status Code Runtime DXE Driver"\r
 \r
 \r