]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmulatorPkg: Remove all trailing whitespace
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 28 Jun 2011 16:50:26 +0000 (16:50 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 28 Jun 2011 16:50:26 +0000 (16:50 +0000)
Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11919 6f19259b-4bc3-4df7-8a09-765794883524

161 files changed:
EmulatorPkg/AutoScanPei/AutoScanPei.c
EmulatorPkg/AutoScanPei/AutoScanPei.inf
EmulatorPkg/BootModePei/BootModePei.c
EmulatorPkg/BootModePei/BootModePei.inf
EmulatorPkg/CpuRuntimeDxe/Cpu.c
EmulatorPkg/CpuRuntimeDxe/Cpu.inf
EmulatorPkg/CpuRuntimeDxe/CpuDriver.h
EmulatorPkg/CpuRuntimeDxe/CpuIo.c
EmulatorPkg/CpuRuntimeDxe/MpService.c
EmulatorPkg/CpuRuntimeDxe/Strings.uni
EmulatorPkg/EmuBlockIoDxe/ComponentName.c
EmulatorPkg/EmuBlockIoDxe/DriverConfiguration.c
EmulatorPkg/EmuBlockIoDxe/DriverDiagnostics.c
EmulatorPkg/EmuBlockIoDxe/EmuBlockIo.c
EmulatorPkg/EmuBlockIoDxe/EmuBlockIo.h
EmulatorPkg/EmuBlockIoDxe/EmuBlockIoDxe.inf
EmulatorPkg/EmuBusDriverDxe/ComponentName.c
EmulatorPkg/EmuBusDriverDxe/EmuBusDriverDxe.c
EmulatorPkg/EmuBusDriverDxe/EmuBusDriverDxe.h
EmulatorPkg/EmuBusDriverDxe/EmuBusDriverDxe.inf
EmulatorPkg/EmuGopDxe/ComponentName.c
EmulatorPkg/EmuGopDxe/EmuGopDxe.inf
EmulatorPkg/EmuGopDxe/Gop.h
EmulatorPkg/EmuGopDxe/GopDriver.c
EmulatorPkg/EmuGopDxe/GopInput.c
EmulatorPkg/EmuGopDxe/GopScreen.c
EmulatorPkg/EmuSimpleFileSystemDxe/ComponentName.c
EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystem.c
EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystem.h
EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystemDxe.inf
EmulatorPkg/EmuSnpDxe/EmuSnpDxe.c
EmulatorPkg/EmuSnpDxe/EmuSnpDxe.h
EmulatorPkg/EmuThunkDxe/EmuThunk.c
EmulatorPkg/EmuThunkDxe/EmuThunk.inf
EmulatorPkg/EmulatorPkg.dec
EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.c
EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.inf
EmulatorPkg/FlashMapPei/FlashMapPei.c
EmulatorPkg/FlashMapPei/FlashMapPei.inf
EmulatorPkg/FvbServicesRuntimeDxe/FWBlockService.c
EmulatorPkg/FvbServicesRuntimeDxe/FvbInfo.c
EmulatorPkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
EmulatorPkg/FvbServicesRuntimeDxe/FwBlockService.h
EmulatorPkg/Include/Guid/EmuPhysicalDisk.h
EmulatorPkg/Include/Guid/EmuSystemConfig.h
EmulatorPkg/Include/Guid/EmuVirtualDisk.h
EmulatorPkg/Include/Library/EmuMagicPageLib.h
EmulatorPkg/Include/Library/EmuThunkLib.h
EmulatorPkg/Include/Library/KeyMapLib.h
EmulatorPkg/Include/Library/PpiListLib.h
EmulatorPkg/Include/Library/ThunkPpiList.h
EmulatorPkg/Include/Library/ThunkProtocolList.h
EmulatorPkg/Include/Ppi/EmuThunk.h
EmulatorPkg/Include/Protocol/EmuBlockIo.h
EmulatorPkg/Include/Protocol/EmuFileSystem.h
EmulatorPkg/Include/Protocol/EmuGraphicsWindow.h
EmulatorPkg/Include/Protocol/EmuIoThunk.h
EmulatorPkg/Include/Protocol/EmuSnp.h
EmulatorPkg/Include/Protocol/EmuThunk.h
EmulatorPkg/Library/DevicePathTextLib/DevicePathTextLib.c
EmulatorPkg/Library/DxeCoreTimerLib/DxeCoreTimerLib.c
EmulatorPkg/Library/DxeCoreTimerLib/DxeCoreTimerLib.inf
EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c
EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.inf
EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.c
EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.inf
EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c
EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.inf
EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.c
EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.inf
EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c
EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.inf
EmulatorPkg/Library/EmuBdsLib/BdsPlatform.c
EmulatorPkg/Library/EmuBdsLib/BdsPlatform.h
EmulatorPkg/Library/EmuBdsLib/EmuBdsLib.inf
EmulatorPkg/Library/EmuBdsLib/PlatformData.c
EmulatorPkg/Library/GuardUefiMemoryAllocationLib/MemoryAllocationLib.c
EmulatorPkg/Library/KeyMapLibNull/KeyMapLibNull.c
EmulatorPkg/Library/KeyMapLibNull/KeyMapLibNull.inf
EmulatorPkg/Library/PeiCoreServicesTablePointerLib/PeiCoreServicesTablePointerLib.inf
EmulatorPkg/Library/PeiCoreServicesTablePointerLib/PeiServicesTablePointer.c
EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.c
EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.inf
EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c
EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.inf
EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c
EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.inf
EmulatorPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
EmulatorPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointer.c
EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointerLibMagicPage.inf
EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.c
EmulatorPkg/Library/SecPeiServicesLib/FwVol.c
EmulatorPkg/Library/SecPeiServicesLib/PeiServicesLib.c
EmulatorPkg/Library/SecPeiServicesLib/SecPeiServicesLib.inf
EmulatorPkg/Library/SecPpiListLib/PpiListLib.c
EmulatorPkg/Library/SecPpiListLib/SecPpiListLib.inf
EmulatorPkg/Library/ThunkPpiList/ThunkPpiList.c
EmulatorPkg/Library/ThunkPpiList/ThunkPpiList.inf
EmulatorPkg/Library/ThunkProtocolList/ThunkProtocolList.c
EmulatorPkg/Library/ThunkProtocolList/ThunkProtocolList.inf
EmulatorPkg/MiscSubClassPlatformDxe/MiscBaseBoardManufacturerData.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscBaseBoardManufacturerFunction.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscBiosVendorData.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscBiosVendorFunction.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscBootInformationData.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscBootInformationFunction.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerData.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerFunction.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscDevicePath.h
EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesData.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesFunction.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscOemStringData.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscPortInternalConnectorDesignatorData.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscPortInternalConnectorDesignatorFunction.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscResetCapabilitiesData.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscResetCapabilitiesFunction.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscSubClassDriver.inf
EmulatorPkg/MiscSubClassPlatformDxe/MiscSubclassDriverDataTable.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringData.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringFunction.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerData.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerFunction.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringData.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringFunction.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemSlotDesignationData.c
EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemSlotDesignationFunction.c
EmulatorPkg/RealTimeClockRuntimeDxe/RealTimeClock.c
EmulatorPkg/RealTimeClockRuntimeDxe/RealTimeClock.inf
EmulatorPkg/ResetRuntimeDxe/Reset.c
EmulatorPkg/ResetRuntimeDxe/Reset.inf
EmulatorPkg/Sec/Ia32/SwitchRam.S
EmulatorPkg/Sec/Sec.c
EmulatorPkg/Sec/Sec.h
EmulatorPkg/Sec/Sec.inf
EmulatorPkg/Sec/X64/SwitchRam.S
EmulatorPkg/ThunkPpiToProtocolPei/ThunkPpiToProtocolPei.c
EmulatorPkg/ThunkPpiToProtocolPei/ThunkPpiToProtocolPei.inf
EmulatorPkg/TimerDxe/Timer.h
EmulatorPkg/TimerDxe/Timer.inf
EmulatorPkg/Unix/GdbRun
EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c
EmulatorPkg/Unix/Host/BlockIo.c
EmulatorPkg/Unix/Host/EmuThunk.c
EmulatorPkg/Unix/Host/Gasket.h
EmulatorPkg/Unix/Host/Ia32/Gasket.S
EmulatorPkg/Unix/Host/Ia32/SwitchStack.c
EmulatorPkg/Unix/Host/LinuxPacketFilter.c
EmulatorPkg/Unix/Host/MemoryAllocationLib.c
EmulatorPkg/Unix/Host/PosixFileSystem.c
EmulatorPkg/Unix/Host/Pthreads.c
EmulatorPkg/Unix/Host/SecMain.c
EmulatorPkg/Unix/Host/SecMain.h
EmulatorPkg/Unix/Host/SecMain.inf
EmulatorPkg/Unix/Host/X11GraphicsWindow.c
EmulatorPkg/Unix/Host/X64/Gasket.S
EmulatorPkg/Unix/Host/X64/SwitchStack.S
EmulatorPkg/Unix/UnixX64.dsc
EmulatorPkg/Unix/UnixX64.fdf

index 78cdd34965027ba4759cb1e6f1a2a4d0a1309784..78a40db3a247fb73f990319111ebfd50d6dee453 100644 (file)
@@ -2,13 +2,13 @@
 \r
 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
@@ -38,7 +38,7 @@ Routine Description:
 Arguments:\r
   FfsHeader   - General purpose data available to every PEIM\r
   PeiServices - General purpose services available to every PEIM.\r
-    \r
+\r
 Returns:\r
   None\r
 \r
@@ -89,7 +89,7 @@ Returns:
 \r
         Attributes |= EFI_RESOURCE_ATTRIBUTE_TESTED;\r
       }\r
-      \r
+\r
       BuildResourceDescriptorHob (\r
         EFI_RESOURCE_SYSTEM_MEMORY,\r
         Attributes,\r
@@ -104,6 +104,6 @@ Returns:
   // Build the CPU hob with 36-bit addressing and 16-bits of IO space.\r
   //\r
   BuildCpuHob (36, 16);\r
-  \r
+\r
   return Status;\r
 }\r
index 9fd4a7d43439186ac0d4a2b47be42ade5e480b90..0a5d5f52e8b8612f40e11872261983d18619f62d 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 # This module abstracts memory auto-scan in a Emu environment.\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 e26e929f07de2b7546a52c67914cb3cb4b232eaf..892e1c6f0405f66db8828b9ca9d95b8ab46e9b7d 100644 (file)
@@ -2,13 +2,13 @@
 \r
 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
@@ -65,7 +65,7 @@ Routine Description:
 Arguments:\r
 \r
   PeiServices - General purpose services available to every PEIM.\r
-    \r
+\r
 Returns:\r
 \r
   Status -  EFI_SUCCESS if the boot mode could be set\r
index 34172bb4a80cc0d8f16aaebdfd0c57a614607bfd..b7d17da97e6bc18171998d88ad944eb49cb53f4e 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 # This module provides platform specific function to detect boot mode.\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 5ec315bea23f3a6f3d2f3eb2d38fad0a4a193d72..2f7d5368e04accf5f47bcbf5b56e980813a2e9e0 100644 (file)
@@ -1,6 +1,6 @@
 /*++ @file\r
   Emu driver to produce CPU Architectural Protocol.\r
-  \r
+\r
 Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 This program and the accompanying materials\r
@@ -172,12 +172,12 @@ EmuGetTimerValue (
   if (TimerIndex != 0) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   *TimerValue = gEmuThunk->QueryPerformanceCounter ();\r
-  \r
+\r
   if (TimerPeriod != NULL) {\r
     *TimerPeriod = mTimerPeriod;\r
-  } \r
+  }\r
 \r
   return EFI_SUCCESS;\r
 }\r
@@ -225,7 +225,7 @@ LogSmbiosData (
 {\r
   EFI_STATUS         Status;\r
   EFI_SMBIOS_HANDLE  SmbiosHandle;\r
-  \r
+\r
   SmbiosHandle = 0;\r
   Status = Smbios->Add (\r
                      Smbios,\r
@@ -255,7 +255,7 @@ CpuUpdateSmbios (
   // Locate Smbios protocol.\r
   //\r
   Status = gBS->LocateProtocol (&gEfiSmbiosProtocolGuid, NULL, (VOID **)&Smbios);\r
-  \r
+\r
   if (EFI_ERROR (Status)) {\r
     return;\r
   }\r
@@ -285,7 +285,7 @@ CpuUpdateSmbios (
   //\r
   // Make handle chosen by smbios protocol.add automatically.\r
   //\r
-  SmbiosRecord->Hdr.Handle = 0;  \r
+  SmbiosRecord->Hdr.Handle = 0;\r
   //\r
   // Processor version is the 1st string.\r
   //\r
@@ -309,7 +309,7 @@ CpuUpdateSmbios (
 \r
 /**\r
   Callback function for idle events.\r
\r
+\r
   @param  Event                 Event whose notification function is being invoked.\r
   @param  Context               The pointer to the notification function's context,\r
                                 which is implementation-dependent.\r
@@ -339,18 +339,18 @@ InitializeCpu (
 \r
   //\r
   // Retrieve the frequency of the performance counter in Hz.\r
-  //  \r
+  //\r
   Frequency = gEmuThunk->QueryPerformanceFrequency ();\r
-  \r
+\r
   //\r
   // Convert frequency in Hz to a clock period in femtoseconds.\r
   //\r
   mTimerPeriod = DivU64x64Remainder (1000000000000000ULL, Frequency, NULL);\r
 \r
   CpuUpdateSmbios ();\r
-  \r
+\r
   CpuMpServicesInit ();\r
-  \r
+\r
   Status = gBS->CreateEventEx (\r
                   EVT_NOTIFY_SIGNAL,\r
                   TPL_NOTIFY,\r
index ed8237f9161c6f19855161a70fccc63f763cdb57..e87c50a6fc857b366e9034d6219c6da3bebf763a 100644 (file)
@@ -36,7 +36,7 @@
   CpuDriver.h\r
   Strings.uni\r
   MpService.c\r
-  \r
+\r
 \r
 [Packages]\r
   MdePkg/MdePkg.dec\r
index 69505ff0e479ddbdc38a641018be0428a5a73eb5..3ede8473d3743ff07759239ba4d74682456f8703 100644 (file)
@@ -3,13 +3,13 @@
 Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
@@ -91,7 +91,7 @@ typedef struct {
   VOID                        *StateLock;\r
   VOID                        *ProcedureLock;\r
   PROCESSOR_STATE             State;\r
-  EFI_EVENT                   CheckThisAPEvent;   \r
+  EFI_EVENT                   CheckThisAPEvent;\r
 } PROCESSOR_DATA_BLOCK;\r
 \r
 \r
index 6f63375f4f0f85474657a014dc376b295203f7db..a8c10ba55588674d78004f40991df32f21da6e68 100644 (file)
@@ -1,20 +1,20 @@
 /*++ @file\r
   This is the code that publishes the CPU I/O Protocol.\r
   The intent herein is to have a single I/O service that can load\r
-  as early as possible, extend into runtime, and be layered upon by \r
+  as early as possible, extend into runtime, and be layered upon by\r
   the implementations of architectural protocols and the PCI Root\r
   Bridge I/O Protocol.\r
 \r
 \r
 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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,12 +74,12 @@ Returns:
 \r
   Status\r
 \r
-  EFI_SUCCESS             - The data was read from or written to the EFI \r
+  EFI_SUCCESS             - The data was read from or written to the EFI\r
                             System.\r
   EFI_INVALID_PARAMETER   - Width is invalid for this EFI System.\r
   EFI_INVALID_PARAMETER   - Buffer is NULL.\r
   EFI_UNSUPPORTED         - The Buffer is not aligned for the given Width.\r
-  EFI_UNSUPPORTED         - The address range specified by Address, Width, \r
+  EFI_UNSUPPORTED         - The address range specified by Address, Width,\r
                             and Count is not valid for this EFI System.\r
 \r
 **/\r
@@ -132,7 +132,7 @@ Returns:
   EFI_INVALID_PARAMETER   - Width is invalid for this EFI System.\r
   EFI_INVALID_PARAMETER   - Buffer is NULL.\r
   EFI_UNSUPPORTED         - The Buffer is not aligned for the given Width.\r
-  EFI_UNSUPPORTED         - The address range specified by Address, Width, and \r
+  EFI_UNSUPPORTED         - The address range specified by Address, Width, and\r
                             Count is not valid for this EFI System.\r
 \r
 **/\r
@@ -166,7 +166,7 @@ CpuIoServiceRead (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   This is the service that implements the I/O read\r
 \r
 Arguments:\r
@@ -184,7 +184,7 @@ Returns:
   EFI_INVALID_PARAMETER   - Width is invalid for this EFI System.\r
   EFI_INVALID_PARAMETER   - Buffer is NULL.\r
   EFI_UNSUPPORTED         - The Buffer is not aligned for the given Width.\r
-  EFI_UNSUPPORTED         - The address range specified by Address, Width, and \r
+  EFI_UNSUPPORTED         - The address range specified by Address, Width, and\r
                             Count is not valid for this EFI System.\r
 **/\r
 {\r
@@ -225,7 +225,7 @@ CpuIoServiceWrite (
 \r
 Routine Description:\r
 \r
-  \r
+\r
   This is the service that implements the I/O Write\r
 \r
 Arguments:\r
@@ -245,7 +245,7 @@ Returns:
   EFI_INVALID_PARAMETER   - Width is invalid for this EFI System.\r
   EFI_INVALID_PARAMETER   - Buffer is NULL.\r
   EFI_UNSUPPORTED         - The Buffer is not aligned for the given Width.\r
-  EFI_UNSUPPORTED         - The address range specified by Address, Width, and \r
+  EFI_UNSUPPORTED         - The address range specified by Address, Width, and\r
                             Count is not valid for this EFI System.\r
 \r
 **/\r
index 7f3b1995f27629f9f703988505b4fa6bd3959e39..b5b1d156c011ccc83d3e4c97c4b0c2126fac4c43 100644 (file)
   The Protocol is available only during boot time.\r
 \r
   MP Services Protocol is hardware-independent. Most of the logic of this protocol\r
-  is architecturally neutral. It abstracts the multi-processor environment and \r
-  status of processors, and provides interfaces to retrieve information, maintain, \r
+  is architecturally neutral. It abstracts the multi-processor environment and\r
+  status of processors, and provides interfaces to retrieve information, maintain,\r
   and dispatch.\r
 \r
-  MP Services Protocol may be consumed by ACPI module. The ACPI module may use this \r
+  MP Services Protocol may be consumed by ACPI module. The ACPI module may use this\r
   protocol to retrieve data that are needed for an MP platform and report them to OS.\r
-  MP Services Protocol may also be used to program and configure processors, such \r
+  MP Services Protocol may also be used to program and configure processors, such\r
   as MTRR synchronization for memory space attributes setting in DXE Services.\r
-  MP Services Protocol may be used by non-CPU DXE drivers to speed up platform boot \r
-  by taking advantage of the processing capabilities of the APs, for example, using \r
+  MP Services Protocol may be used by non-CPU DXE drivers to speed up platform boot\r
+  by taking advantage of the processing capabilities of the APs, for example, using\r
   APs to help test system memory in parallel with other device initialization.\r
   Diagnostics applications may also use this protocol for multi-processor.\r
 \r
@@ -45,7 +45,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 \r
 MP_SYSTEM_DATA                gMPSystem;\r
-EMU_THREAD_THUNK_PROTOCOL     *gThread = NULL; \r
+EMU_THREAD_THUNK_PROTOCOL     *gThread = NULL;\r
 EFI_EVENT                     gReadToBootEvent;\r
 BOOLEAN                       gReadToBoot = FALSE;\r
 UINTN                         gPollInterval;\r
@@ -58,12 +58,12 @@ IsBSP (
 {\r
   EFI_STATUS  Status;\r
   UINTN       ProcessorNumber;\r
-  \r
+\r
   Status = CpuMpServicesWhoAmI (&mMpSercicesTemplate, &ProcessorNumber);\r
   if (EFI_ERROR (Status)) {\r
     return FALSE;\r
   }\r
-  \r
+\r
   return (gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_AS_BSP_BIT) != 0;\r
 }\r
 \r
@@ -121,17 +121,17 @@ GetNextBlockedNumber (
 \r
   This function is used to retrieve the following information:\r
     - The number of logical processors that are present in the system.\r
-    - The number of enabled logical processors in the system at the instant \r
+    - The number of enabled logical processors in the system at the instant\r
       this call is made.\r
 \r
-  Because MP Service Protocol provides services to enable and disable processors \r
-  dynamically, the number of enabled logical processors may vary during the \r
+  Because MP Service Protocol provides services to enable and disable processors\r
+  dynamically, the number of enabled logical processors may vary during the\r
   course of a boot session.\r
-  \r
-  If this service is called from an AP, then EFI_DEVICE_ERROR is returned. \r
-  If NumberOfProcessors or NumberOfEnabledProcessors is NULL, then \r
-  EFI_INVALID_PARAMETER is returned. Otherwise, the total number of processors \r
-  is returned in NumberOfProcessors, the number of currently enabled processor \r
+\r
+  If this service is called from an AP, then EFI_DEVICE_ERROR is returned.\r
+  If NumberOfProcessors or NumberOfEnabledProcessors is NULL, then\r
+  EFI_INVALID_PARAMETER is returned. Otherwise, the total number of processors\r
+  is returned in NumberOfProcessors, the number of currently enabled processor\r
   is returned in NumberOfEnabledProcessors, and EFI_SUCCESS is returned.\r
 \r
   @param[in]  This                        A pointer to the EFI_MP_SERVICES_PROTOCOL\r
@@ -143,7 +143,7 @@ GetNextBlockedNumber (
                                           processors that exist in system, including\r
                                           the BSP.\r
 \r
-  @retval EFI_SUCCESS             The number of logical processors and enabled \r
+  @retval EFI_SUCCESS             The number of logical processors and enabled\r
                                   logical processors was retrieved.\r
   @retval EFI_DEVICE_ERROR        The calling processor is an AP.\r
   @retval EFI_INVALID_PARAMETER   NumberOfProcessors is NULL.\r
@@ -161,11 +161,11 @@ CpuMpServicesGetNumberOfProcessors (
   if ((NumberOfProcessors == NULL) || (NumberOfEnabledProcessors == NULL)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   if (!IsBSP ()) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
-  \r
+\r
   *NumberOfProcessors        = gMPSystem.NumberOfProcessors;\r
   *NumberOfEnabledProcessors = gMPSystem.NumberOfEnabledProcessors;\r
   return EFI_SUCCESS;\r
@@ -177,13 +177,13 @@ CpuMpServicesGetNumberOfProcessors (
   Gets detailed MP-related information on the requested processor at the\r
   instant this call is made. This service may only be called from the BSP.\r
 \r
-  This service retrieves detailed MP-related information about any processor \r
+  This service retrieves detailed MP-related information about any processor\r
   on the platform. Note the following:\r
     - The processor information may change during the course of a boot session.\r
     - The information presented here is entirely MP related.\r
-  \r
+\r
   Information regarding the number of caches and their sizes, frequency of operation,\r
-  slot numbers is all considered platform-related information and is not provided \r
+  slot numbers is all considered platform-related information and is not provided\r
   by this service.\r
 \r
   @param[in]  This                  A pointer to the EFI_MP_SERVICES_PROTOCOL\r
@@ -210,152 +210,152 @@ CpuMpServicesGetProcessorInfo (
   if (ProcessorInfoBuffer == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   if (!IsBSP ()) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
-  \r
+\r
   if (ProcessorNumber >= gMPSystem.NumberOfProcessors) {\r
     return EFI_NOT_FOUND;\r
   }\r
-  \r
+\r
   CopyMem (ProcessorInfoBuffer, &gMPSystem.ProcessorData[ProcessorNumber], sizeof (EFI_PROCESSOR_INFORMATION));\r
   return EFI_SUCCESS;\r
 }\r
 \r
 \r
 /**\r
-  This service executes a caller provided function on all enabled APs. APs can \r
-  run either simultaneously or one at a time in sequence. This service supports \r
-  both blocking and non-blocking requests. The non-blocking requests use EFI \r
-  events so the BSP can detect when the APs have finished. This service may only \r
+  This service executes a caller provided function on all enabled APs. APs can\r
+  run either simultaneously or one at a time in sequence. This service supports\r
+  both blocking and non-blocking requests. The non-blocking requests use EFI\r
+  events so the BSP can detect when the APs have finished. This service may only\r
   be called from the BSP.\r
 \r
-  This function is used to dispatch all the enabled APs to the function specified \r
-  by Procedure.  If any enabled AP is busy, then EFI_NOT_READY is returned \r
+  This function is used to dispatch all the enabled APs to the function specified\r
+  by Procedure.  If any enabled AP is busy, then EFI_NOT_READY is returned\r
   immediately and Procedure is not started on any AP.\r
 \r
-  If SingleThread is TRUE, all the enabled APs execute the function specified by \r
-  Procedure one by one, in ascending order of processor handle number. Otherwise, \r
+  If SingleThread is TRUE, all the enabled APs execute the function specified by\r
+  Procedure one by one, in ascending order of processor handle number. Otherwise,\r
   all the enabled APs execute the function specified by Procedure simultaneously.\r
 \r
-  If WaitEvent is NULL, execution is in blocking mode. The BSP waits until all \r
-  APs finish or TimeoutInMicroseconds expires. Otherwise, execution is in non-blocking \r
-  mode, and the BSP returns from this service without waiting for APs. If a \r
-  non-blocking mode is requested after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT \r
+  If WaitEvent is NULL, execution is in blocking mode. The BSP waits until all\r
+  APs finish or TimeoutInMicroseconds expires. Otherwise, execution is in non-blocking\r
+  mode, and the BSP returns from this service without waiting for APs. If a\r
+  non-blocking mode is requested after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT\r
   is signaled, then EFI_UNSUPPORTED must be returned.\r
 \r
-  If the timeout specified by TimeoutInMicroseconds expires before all APs return \r
-  from Procedure, then Procedure on the failed APs is terminated. All enabled APs \r
+  If the timeout specified by TimeoutInMicroseconds expires before all APs return\r
+  from Procedure, then Procedure on the failed APs is terminated. All enabled APs\r
   are always available for further calls to EFI_MP_SERVICES_PROTOCOL.StartupAllAPs()\r
-  and EFI_MP_SERVICES_PROTOCOL.StartupThisAP(). If FailedCpuList is not NULL, its \r
-  content points to the list of processor handle numbers in which Procedure was \r
+  and EFI_MP_SERVICES_PROTOCOL.StartupThisAP(). If FailedCpuList is not NULL, its\r
+  content points to the list of processor handle numbers in which Procedure was\r
   terminated.\r
 \r
-  Note: It is the responsibility of the consumer of the EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() \r
-  to make sure that the nature of the code that is executed on the BSP and the \r
-  dispatched APs is well controlled. The MP Services Protocol does not guarantee \r
-  that the Procedure function is MP-safe. Hence, the tasks that can be run in \r
-  parallel are limited to certain independent tasks and well-controlled exclusive \r
-  code. EFI services and protocols may not be called by APs unless otherwise \r
+  Note: It is the responsibility of the consumer of the EFI_MP_SERVICES_PROTOCOL.StartupAllAPs()\r
+  to make sure that the nature of the code that is executed on the BSP and the\r
+  dispatched APs is well controlled. The MP Services Protocol does not guarantee\r
+  that the Procedure function is MP-safe. Hence, the tasks that can be run in\r
+  parallel are limited to certain independent tasks and well-controlled exclusive\r
+  code. EFI services and protocols may not be called by APs unless otherwise\r
   specified.\r
 \r
-  In blocking execution mode, BSP waits until all APs finish or \r
+  In blocking execution mode, BSP waits until all APs finish or\r
   TimeoutInMicroseconds expires.\r
 \r
-  In non-blocking execution mode, BSP is freed to return to the caller and then \r
-  proceed to the next task without having to wait for APs. The following \r
+  In non-blocking execution mode, BSP is freed to return to the caller and then\r
+  proceed to the next task without having to wait for APs. The following\r
   sequence needs to occur in a non-blocking execution mode:\r
 \r
-    -# The caller that intends to use this MP Services Protocol in non-blocking \r
-       mode creates WaitEvent by calling the EFI CreateEvent() service.  The caller \r
-       invokes EFI_MP_SERVICES_PROTOCOL.StartupAllAPs(). If the parameter WaitEvent \r
-       is not NULL, then StartupAllAPs() executes in non-blocking mode. It requests \r
-       the function specified by Procedure to be started on all the enabled APs, \r
+    -# The caller that intends to use this MP Services Protocol in non-blocking\r
+       mode creates WaitEvent by calling the EFI CreateEvent() service.  The caller\r
+       invokes EFI_MP_SERVICES_PROTOCOL.StartupAllAPs(). If the parameter WaitEvent\r
+       is not NULL, then StartupAllAPs() executes in non-blocking mode. It requests\r
+       the function specified by Procedure to be started on all the enabled APs,\r
        and releases the BSP to continue with other tasks.\r
-    -# The caller can use the CheckEvent() and WaitForEvent() services to check \r
+    -# The caller can use the CheckEvent() and WaitForEvent() services to check\r
        the state of the WaitEvent created in step 1.\r
-    -# When the APs complete their task or TimeoutInMicroSecondss expires, the MP \r
-       Service signals WaitEvent by calling the EFI SignalEvent() function. If \r
-       FailedCpuList is not NULL, its content is available when WaitEvent is \r
-       signaled. If all APs returned from Procedure prior to the timeout, then \r
-       FailedCpuList is set to NULL. If not all APs return from Procedure before \r
-       the timeout, then FailedCpuList is filled in with the list of the failed \r
-       APs. The buffer is allocated by MP Service Protocol using AllocatePool(). \r
+    -# When the APs complete their task or TimeoutInMicroSecondss expires, the MP\r
+       Service signals WaitEvent by calling the EFI SignalEvent() function. If\r
+       FailedCpuList is not NULL, its content is available when WaitEvent is\r
+       signaled. If all APs returned from Procedure prior to the timeout, then\r
+       FailedCpuList is set to NULL. If not all APs return from Procedure before\r
+       the timeout, then FailedCpuList is filled in with the list of the failed\r
+       APs. The buffer is allocated by MP Service Protocol using AllocatePool().\r
        It is the caller's responsibility to free the buffer with FreePool() service.\r
     -# This invocation of SignalEvent() function informs the caller that invoked\r
        EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() that either all the APs completed\r
-       the specified task or a timeout occurred. The contents of FailedCpuList \r
-       can be examined to determine which APs did not complete the specified task \r
+       the specified task or a timeout occurred. The contents of FailedCpuList\r
+       can be examined to determine which APs did not complete the specified task\r
        prior to the timeout.\r
 \r
   @param[in]  This                    A pointer to the EFI_MP_SERVICES_PROTOCOL\r
                                       instance.\r
-  @param[in]  Procedure               A pointer to the function to be run on \r
+  @param[in]  Procedure               A pointer to the function to be run on\r
                                       enabled APs of the system. See type\r
                                       EFI_AP_PROCEDURE.\r
-  @param[in]  SingleThread            If TRUE, then all the enabled APs execute \r
-                                      the function specified by Procedure one by \r
-                                      one, in ascending order of processor handle \r
-                                      number.  If FALSE, then all the enabled APs \r
+  @param[in]  SingleThread            If TRUE, then all the enabled APs execute\r
+                                      the function specified by Procedure one by\r
+                                      one, in ascending order of processor handle\r
+                                      number.  If FALSE, then all the enabled APs\r
                                       execute the function specified by Procedure\r
                                       simultaneously.\r
   @param[in]  WaitEvent               The event created by the caller with CreateEvent()\r
-                                      service.  If it is NULL, then execute in \r
-                                      blocking mode. BSP waits until all APs finish \r
-                                      or TimeoutInMicroseconds expires.  If it's \r
-                                      not NULL, then execute in non-blocking mode. \r
-                                      BSP requests the function specified by \r
-                                      Procedure to be started on all the enabled \r
-                                      APs, and go on executing immediately. If \r
+                                      service.  If it is NULL, then execute in\r
+                                      blocking mode. BSP waits until all APs finish\r
+                                      or TimeoutInMicroseconds expires.  If it's\r
+                                      not NULL, then execute in non-blocking mode.\r
+                                      BSP requests the function specified by\r
+                                      Procedure to be started on all the enabled\r
+                                      APs, and go on executing immediately. If\r
                                       all return from Procedure, or TimeoutInMicroseconds\r
-                                      expires, this event is signaled. The BSP \r
-                                      can use the CheckEvent() or WaitForEvent() \r
-                                      services to check the state of event.  Type \r
-                                      EFI_EVENT is defined in CreateEvent() in \r
-                                      the Unified Extensible Firmware Interface \r
-                                      Specification.  \r
-  @param[in]  TimeoutInMicrosecsond   Indicates the time limit in microseconds for \r
-                                      APs to return from Procedure, either for \r
-                                      blocking or non-blocking mode. Zero means \r
-                                      infinity.  If the timeout expires before \r
+                                      expires, this event is signaled. The BSP\r
+                                      can use the CheckEvent() or WaitForEvent()\r
+                                      services to check the state of event.  Type\r
+                                      EFI_EVENT is defined in CreateEvent() in\r
+                                      the Unified Extensible Firmware Interface\r
+                                      Specification.\r
+  @param[in]  TimeoutInMicrosecsond   Indicates the time limit in microseconds for\r
+                                      APs to return from Procedure, either for\r
+                                      blocking or non-blocking mode. Zero means\r
+                                      infinity.  If the timeout expires before\r
                                       all APs return from Procedure, then Procedure\r
-                                      on the failed APs is terminated. All enabled \r
-                                      APs are available for next function assigned \r
-                                      by EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() \r
+                                      on the failed APs is terminated. All enabled\r
+                                      APs are available for next function assigned\r
+                                      by EFI_MP_SERVICES_PROTOCOL.StartupAllAPs()\r
                                       or EFI_MP_SERVICES_PROTOCOL.StartupThisAP().\r
-                                      If the timeout expires in blocking mode, \r
-                                      BSP returns EFI_TIMEOUT.  If the timeout \r
-                                      expires in non-blocking mode, WaitEvent \r
+                                      If the timeout expires in blocking mode,\r
+                                      BSP returns EFI_TIMEOUT.  If the timeout\r
+                                      expires in non-blocking mode, WaitEvent\r
                                       is signaled with SignalEvent().\r
-  @param[in]  ProcedureArgument       The parameter passed into Procedure for \r
+  @param[in]  ProcedureArgument       The parameter passed into Procedure for\r
                                       all APs.\r
-  @param[out] FailedCpuList           If NULL, this parameter is ignored. Otherwise, \r
-                                      if all APs finish successfully, then its \r
-                                      content is set to NULL. If not all APs \r
-                                      finish before timeout expires, then its \r
-                                      content is set to address of the buffer \r
-                                      holding handle numbers of the failed APs. \r
-                                      The buffer is allocated by MP Service Protocol, \r
-                                      and it's the caller's responsibility to \r
+  @param[out] FailedCpuList           If NULL, this parameter is ignored. Otherwise,\r
+                                      if all APs finish successfully, then its\r
+                                      content is set to NULL. If not all APs\r
+                                      finish before timeout expires, then its\r
+                                      content is set to address of the buffer\r
+                                      holding handle numbers of the failed APs.\r
+                                      The buffer is allocated by MP Service Protocol,\r
+                                      and it's the caller's responsibility to\r
                                       free the buffer with FreePool() service.\r
-                                      In blocking mode, it is ready for consumption \r
-                                      when the call returns. In non-blocking mode, \r
-                                      it is ready when WaitEvent is signaled.  The \r
-                                      list of failed CPU is terminated by \r
+                                      In blocking mode, it is ready for consumption\r
+                                      when the call returns. In non-blocking mode,\r
+                                      it is ready when WaitEvent is signaled.  The\r
+                                      list of failed CPU is terminated by\r
                                       END_OF_CPU_LIST.\r
 \r
-  @retval EFI_SUCCESS             In blocking mode, all APs have finished before \r
+  @retval EFI_SUCCESS             In blocking mode, all APs have finished before\r
                                   the timeout expired.\r
-  @retval EFI_SUCCESS             In non-blocking mode, function has been dispatched \r
+  @retval EFI_SUCCESS             In non-blocking mode, function has been dispatched\r
                                   to all enabled APs.\r
-  @retval EFI_UNSUPPORTED         A non-blocking mode request was made after the \r
-                                  UEFI event EFI_EVENT_GROUP_READY_TO_BOOT was \r
+  @retval EFI_UNSUPPORTED         A non-blocking mode request was made after the\r
+                                  UEFI event EFI_EVENT_GROUP_READY_TO_BOOT was\r
                                   signaled.\r
   @retval EFI_DEVICE_ERROR        Caller processor is AP.\r
   @retval EFI_NOT_STARTED         No enabled APs exist in the system.\r
   @retval EFI_NOT_READY           Any enabled APs are busy.\r
-  @retval EFI_TIMEOUT             In blocking mode, the timeout expired before \r
+  @retval EFI_TIMEOUT             In blocking mode, the timeout expired before\r
                                   all enabled APs have finished.\r
   @retval EFI_INVALID_PARAMETER   Procedure is NULL.\r
 \r
@@ -385,7 +385,7 @@ CpuMpServicesStartupAllAps (
   if (!IsBSP ()) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
-  \r
+\r
   if (gMPSystem.NumberOfProcessors == 1) {\r
     return EFI_NOT_STARTED;\r
   }\r
@@ -393,12 +393,12 @@ CpuMpServicesStartupAllAps (
   if (Procedure == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   if ((WaitEvent != NULL)  && gReadToBoot) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
-  \r
+\r
+\r
   if (FailedCpuList != NULL) {\r
     gMPSystem.FailedList = AllocatePool ((gMPSystem.NumberOfProcessors + 1) * sizeof (UINTN));\r
     if (gMPSystem.FailedList == NULL) {\r
@@ -453,10 +453,10 @@ CpuMpServicesStartupAllAps (
       return EFI_NOT_READY;\r
     }\r
   }\r
-  \r
+\r
   if (WaitEvent != NULL) {\r
     for (Number = 0; Number < gMPSystem.NumberOfProcessors; Number++) {\r
-      ProcessorData = &gMPSystem.ProcessorData[Number];  \r
+      ProcessorData = &gMPSystem.ProcessorData[Number];\r
       if ((ProcessorData->Info.StatusFlag & PROCESSOR_AS_BSP_BIT) == PROCESSOR_AS_BSP_BIT) {\r
        // Skip BSP\r
         continue;\r
@@ -466,7 +466,7 @@ CpuMpServicesStartupAllAps (
         // Skip Disabled processors\r
         continue;\r
       }\r
-    \r
+\r
       SetApProcedure (ProcessorData, Procedure, ProcedureArgument);\r
     }\r
 \r
@@ -489,7 +489,7 @@ CpuMpServicesStartupAllAps (
 \r
   while (TRUE) {\r
     for (Number = 0; Number < gMPSystem.NumberOfProcessors; Number++) {\r
-      ProcessorData = &gMPSystem.ProcessorData[Number];  \r
+      ProcessorData = &gMPSystem.ProcessorData[Number];\r
       if ((ProcessorData->Info.StatusFlag & PROCESSOR_AS_BSP_BIT) == PROCESSOR_AS_BSP_BIT) {\r
        // Skip BSP\r
         continue;\r
@@ -553,86 +553,86 @@ Done:
 \r
 \r
 /**\r
-  This service lets the caller get one enabled AP to execute a caller-provided \r
-  function. The caller can request the BSP to either wait for the completion \r
-  of the AP or just proceed with the next task by using the EFI event mechanism. \r
-  See EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() for more details on non-blocking \r
+  This service lets the caller get one enabled AP to execute a caller-provided\r
+  function. The caller can request the BSP to either wait for the completion\r
+  of the AP or just proceed with the next task by using the EFI event mechanism.\r
+  See EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() for more details on non-blocking\r
   execution support.  This service may only be called from the BSP.\r
 \r
-  This function is used to dispatch one enabled AP to the function specified by \r
-  Procedure passing in the argument specified by ProcedureArgument.  If WaitEvent \r
-  is NULL, execution is in blocking mode. The BSP waits until the AP finishes or \r
-  TimeoutInMicroSecondss expires. Otherwise, execution is in non-blocking mode. \r
-  BSP proceeds to the next task without waiting for the AP. If a non-blocking mode \r
-  is requested after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT is signaled, \r
+  This function is used to dispatch one enabled AP to the function specified by\r
+  Procedure passing in the argument specified by ProcedureArgument.  If WaitEvent\r
+  is NULL, execution is in blocking mode. The BSP waits until the AP finishes or\r
+  TimeoutInMicroSecondss expires. Otherwise, execution is in non-blocking mode.\r
+  BSP proceeds to the next task without waiting for the AP. If a non-blocking mode\r
+  is requested after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT is signaled,\r
   then EFI_UNSUPPORTED must be returned.\r
-  \r
-  If the timeout specified by TimeoutInMicroseconds expires before the AP returns \r
-  from Procedure, then execution of Procedure by the AP is terminated. The AP is \r
-  available for subsequent calls to EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() and \r
+\r
+  If the timeout specified by TimeoutInMicroseconds expires before the AP returns\r
+  from Procedure, then execution of Procedure by the AP is terminated. The AP is\r
+  available for subsequent calls to EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() and\r
   EFI_MP_SERVICES_PROTOCOL.StartupThisAP().\r
 \r
   @param[in]  This                    A pointer to the EFI_MP_SERVICES_PROTOCOL\r
                                       instance.\r
-  @param[in]  Procedure               A pointer to the function to be run on \r
+  @param[in]  Procedure               A pointer to the function to be run on\r
                                       enabled APs of the system. See type\r
                                       EFI_AP_PROCEDURE.\r
-  @param[in]  ProcessorNumber         The handle number of the AP. The range is \r
+  @param[in]  ProcessorNumber         The handle number of the AP. The range is\r
                                       from 0 to the total number of logical\r
-                                      processors minus 1. The total number of \r
+                                      processors minus 1. The total number of\r
                                       logical processors can be retrieved by\r
                                       EFI_MP_SERVICES_PROTOCOL.GetNumberOfProcessors().\r
   @param[in]  WaitEvent               The event created by the caller with CreateEvent()\r
-                                      service.  If it is NULL, then execute in \r
-                                      blocking mode. BSP waits until all APs finish \r
-                                      or TimeoutInMicroseconds expires.  If it's \r
-                                      not NULL, then execute in non-blocking mode. \r
-                                      BSP requests the function specified by \r
-                                      Procedure to be started on all the enabled \r
-                                      APs, and go on executing immediately. If \r
+                                      service.  If it is NULL, then execute in\r
+                                      blocking mode. BSP waits until all APs finish\r
+                                      or TimeoutInMicroseconds expires.  If it's\r
+                                      not NULL, then execute in non-blocking mode.\r
+                                      BSP requests the function specified by\r
+                                      Procedure to be started on all the enabled\r
+                                      APs, and go on executing immediately. If\r
                                       all return from Procedure or TimeoutInMicroseconds\r
-                                      expires, this event is signaled. The BSP \r
-                                      can use the CheckEvent() or WaitForEvent() \r
-                                      services to check the state of event.  Type \r
-                                      EFI_EVENT is defined in CreateEvent() in \r
-                                      the Unified Extensible Firmware Interface \r
-                                      Specification.  \r
-  @param[in]  TimeoutInMicrosecsond   Indicates the time limit in microseconds for \r
-                                      APs to return from Procedure, either for \r
-                                      blocking or non-blocking mode. Zero means \r
-                                      infinity.  If the timeout expires before \r
+                                      expires, this event is signaled. The BSP\r
+                                      can use the CheckEvent() or WaitForEvent()\r
+                                      services to check the state of event.  Type\r
+                                      EFI_EVENT is defined in CreateEvent() in\r
+                                      the Unified Extensible Firmware Interface\r
+                                      Specification.\r
+  @param[in]  TimeoutInMicrosecsond   Indicates the time limit in microseconds for\r
+                                      APs to return from Procedure, either for\r
+                                      blocking or non-blocking mode. Zero means\r
+                                      infinity.  If the timeout expires before\r
                                       all APs return from Procedure, then Procedure\r
-                                      on the failed APs is terminated. All enabled \r
-                                      APs are available for next function assigned \r
-                                      by EFI_MP_SERVICES_PROTOCOL.StartupAllAPs() \r
+                                      on the failed APs is terminated. All enabled\r
+                                      APs are available for next function assigned\r
+                                      by EFI_MP_SERVICES_PROTOCOL.StartupAllAPs()\r
                                       or EFI_MP_SERVICES_PROTOCOL.StartupThisAP().\r
-                                      If the timeout expires in blocking mode, \r
-                                      BSP returns EFI_TIMEOUT.  If the timeout \r
-                                      expires in non-blocking mode, WaitEvent \r
+                                      If the timeout expires in blocking mode,\r
+                                      BSP returns EFI_TIMEOUT.  If the timeout\r
+                                      expires in non-blocking mode, WaitEvent\r
                                       is signaled with SignalEvent().\r
-  @param[in]  ProcedureArgument       The parameter passed into Procedure for \r
+  @param[in]  ProcedureArgument       The parameter passed into Procedure for\r
                                       all APs.\r
-  @param[out] Finished                If NULL, this parameter is ignored.  In \r
+  @param[out] Finished                If NULL, this parameter is ignored.  In\r
                                       blocking mode, this parameter is ignored.\r
-                                      In non-blocking mode, if AP returns from \r
+                                      In non-blocking mode, if AP returns from\r
                                       Procedure before the timeout expires, its\r
-                                      content is set to TRUE. Otherwise, the \r
+                                      content is set to TRUE. Otherwise, the\r
                                       value is set to FALSE. The caller can\r
-                                      determine if the AP returned from Procedure \r
+                                      determine if the AP returned from Procedure\r
                                       by evaluating this value.\r
 \r
-  @retval EFI_SUCCESS             In blocking mode, specified AP finished before \r
+  @retval EFI_SUCCESS             In blocking mode, specified AP finished before\r
                                   the timeout expires.\r
-  @retval EFI_SUCCESS             In non-blocking mode, the function has been \r
+  @retval EFI_SUCCESS             In non-blocking mode, the function has been\r
                                   dispatched to specified AP.\r
-  @retval EFI_UNSUPPORTED         A non-blocking mode request was made after the \r
-                                  UEFI event EFI_EVENT_GROUP_READY_TO_BOOT was \r
+  @retval EFI_UNSUPPORTED         A non-blocking mode request was made after the\r
+                                  UEFI event EFI_EVENT_GROUP_READY_TO_BOOT was\r
                                   signaled.\r
   @retval EFI_DEVICE_ERROR        The calling processor is an AP.\r
-  @retval EFI_TIMEOUT             In blocking mode, the timeout expired before \r
+  @retval EFI_TIMEOUT             In blocking mode, the timeout expired before\r
                                   the specified AP has finished.\r
   @retval EFI_NOT_READY           The specified AP is busy.\r
-  @retval EFI_NOT_FOUND           The processor with the handle specified by \r
+  @retval EFI_NOT_FOUND           The processor with the handle specified by\r
                                   ProcessorNumber does not exist.\r
   @retval EFI_INVALID_PARAMETER   ProcessorNumber specifies the BSP or disabled AP.\r
   @retval EFI_INVALID_PARAMETER   Procedure is NULL.\r
@@ -652,19 +652,19 @@ CpuMpServicesStartupThisAP (
 {\r
   EFI_STATUS      Status;\r
   INTN            Timeout;\r
-  \r
+\r
   if (!IsBSP ()) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
-  \r
+\r
   if (Procedure == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-    \r
+\r
   if (ProcessorNumber >= gMPSystem.NumberOfProcessors) {\r
     return EFI_NOT_FOUND;\r
   }\r
-  \r
+\r
   if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_AS_BSP_BIT) != 0) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
@@ -720,36 +720,36 @@ CpuMpServicesStartupThisAP (
 \r
 \r
 /**\r
-  This service switches the requested AP to be the BSP from that point onward. \r
-  This service changes the BSP for all purposes.   This call can only be performed \r
+  This service switches the requested AP to be the BSP from that point onward.\r
+  This service changes the BSP for all purposes.   This call can only be performed\r
   by the current BSP.\r
 \r
-  This service switches the requested AP to be the BSP from that point onward. \r
-  This service changes the BSP for all purposes. The new BSP can take over the \r
-  execution of the old BSP and continue seamlessly from where the old one left \r
-  off. This service may not be supported after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT \r
+  This service switches the requested AP to be the BSP from that point onward.\r
+  This service changes the BSP for all purposes. The new BSP can take over the\r
+  execution of the old BSP and continue seamlessly from where the old one left\r
+  off. This service may not be supported after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT\r
   is signaled.\r
 \r
-  If the BSP cannot be switched prior to the return from this service, then \r
+  If the BSP cannot be switched prior to the return from this service, then\r
   EFI_UNSUPPORTED must be returned.\r
 \r
   @param[in] This              A pointer to the EFI_MP_SERVICES_PROTOCOL instance.\r
-  @param[in] ProcessorNumber   The handle number of AP that is to become the new \r
-                               BSP. The range is from 0 to the total number of \r
-                               logical processors minus 1. The total number of \r
+  @param[in] ProcessorNumber   The handle number of AP that is to become the new\r
+                               BSP. The range is from 0 to the total number of\r
+                               logical processors minus 1. The total number of\r
                                logical processors can be retrieved by\r
                                EFI_MP_SERVICES_PROTOCOL.GetNumberOfProcessors().\r
-  @param[in] EnableOldBSP      If TRUE, then the old BSP will be listed as an \r
+  @param[in] EnableOldBSP      If TRUE, then the old BSP will be listed as an\r
                                enabled AP. Otherwise, it will be disabled.\r
 \r
   @retval EFI_SUCCESS             BSP successfully switched.\r
-  @retval EFI_UNSUPPORTED         Switching the BSP cannot be completed prior to \r
+  @retval EFI_UNSUPPORTED         Switching the BSP cannot be completed prior to\r
                                   this service returning.\r
   @retval EFI_UNSUPPORTED         Switching the BSP is not supported.\r
   @retval EFI_SUCCESS             The calling processor is an AP.\r
   @retval EFI_NOT_FOUND           The processor with the handle specified by\r
                                   ProcessorNumber does not exist.\r
-  @retval EFI_INVALID_PARAMETER   ProcessorNumber specifies the current BSP or \r
+  @retval EFI_INVALID_PARAMETER   ProcessorNumber specifies the current BSP or\r
                                   a disabled AP.\r
   @retval EFI_NOT_READY           The specified AP is busy.\r
 \r
@@ -763,15 +763,15 @@ CpuMpServicesSwitchBSP (
   )\r
 {\r
   UINTN   Index;\r
-  \r
+\r
   if (!IsBSP ()) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
-  \r
+\r
   if (ProcessorNumber >= gMPSystem.NumberOfProcessors) {\r
     return EFI_NOT_FOUND;\r
   }\r
-  \r
+\r
   if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_ENABLED_BIT) == 0) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
@@ -779,18 +779,18 @@ CpuMpServicesSwitchBSP (
   if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_AS_BSP_BIT) != 0) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   for (Index = 0; Index < gMPSystem.NumberOfProcessors; Index++) {\r
     if ((gMPSystem.ProcessorData[Index].Info.StatusFlag & PROCESSOR_AS_BSP_BIT) != 0) {\r
       break;\r
     }\r
   }\r
   ASSERT (Index != gMPSystem.NumberOfProcessors);\r
-  \r
+\r
   if (gMPSystem.ProcessorData[ProcessorNumber].State != CPU_STATE_IDLE) {\r
     return EFI_NOT_READY;\r
   }\r
-  \r
+\r
   // Skip for now as we need switch a bunch of stack stuff around and it's complex\r
   // May not be worth it?\r
   return EFI_NOT_READY;\r
@@ -798,38 +798,38 @@ CpuMpServicesSwitchBSP (
 \r
 \r
 /**\r
-  This service lets the caller enable or disable an AP from this point onward.  \r
+  This service lets the caller enable or disable an AP from this point onward.\r
   This service may only be called from the BSP.\r
 \r
-  This service allows the caller enable or disable an AP from this point onward. \r
-  The caller can optionally specify the health status of the AP by Health. If \r
-  an AP is being disabled, then the state of the disabled AP is implementation \r
-  dependent. If an AP is enabled, then the implementation must guarantee that a \r
-  complete initialization sequence is performed on the AP, so the AP is in a state \r
-  that is compatible with an MP operating system. This service may not be supported \r
+  This service allows the caller enable or disable an AP from this point onward.\r
+  The caller can optionally specify the health status of the AP by Health. If\r
+  an AP is being disabled, then the state of the disabled AP is implementation\r
+  dependent. If an AP is enabled, then the implementation must guarantee that a\r
+  complete initialization sequence is performed on the AP, so the AP is in a state\r
+  that is compatible with an MP operating system. This service may not be supported\r
   after the UEFI Event EFI_EVENT_GROUP_READY_TO_BOOT is signaled.\r
 \r
-  If the enable or disable AP operation cannot be completed prior to the return \r
+  If the enable or disable AP operation cannot be completed prior to the return\r
   from this service, then EFI_UNSUPPORTED must be returned.\r
 \r
   @param[in] This              A pointer to the EFI_MP_SERVICES_PROTOCOL instance.\r
-  @param[in] ProcessorNumber   The handle number of AP that is to become the new \r
-                               BSP. The range is from 0 to the total number of \r
-                               logical processors minus 1. The total number of \r
+  @param[in] ProcessorNumber   The handle number of AP that is to become the new\r
+                               BSP. The range is from 0 to the total number of\r
+                               logical processors minus 1. The total number of\r
                                logical processors can be retrieved by\r
                                EFI_MP_SERVICES_PROTOCOL.GetNumberOfProcessors().\r
-  @param[in] EnableAP          Specifies the new state for the processor for \r
+  @param[in] EnableAP          Specifies the new state for the processor for\r
                                enabled, FALSE for disabled.\r
-  @param[in] HealthFlag        If not NULL, a pointer to a value that specifies \r
-                               the new health status of the AP. This flag \r
-                               corresponds to StatusFlag defined in \r
-                               EFI_MP_SERVICES_PROTOCOL.GetProcessorInfo(). Only \r
-                               the PROCESSOR_HEALTH_STATUS_BIT is used. All other \r
-                               bits are ignored.  If it is NULL, this parameter \r
+  @param[in] HealthFlag        If not NULL, a pointer to a value that specifies\r
+                               the new health status of the AP. This flag\r
+                               corresponds to StatusFlag defined in\r
+                               EFI_MP_SERVICES_PROTOCOL.GetProcessorInfo(). Only\r
+                               the PROCESSOR_HEALTH_STATUS_BIT is used. All other\r
+                               bits are ignored.  If it is NULL, this parameter\r
                                is ignored.\r
 \r
   @retval EFI_SUCCESS             The specified AP was enabled or disabled successfully.\r
-  @retval EFI_UNSUPPORTED         Enabling or disabling an AP cannot be completed \r
+  @retval EFI_UNSUPPORTED         Enabling or disabling an AP cannot be completed\r
                                   prior to this service returning.\r
   @retval EFI_UNSUPPORTED         Enabling or disabling an AP is not supported.\r
   @retval EFI_DEVICE_ERROR        The calling processor is an AP.\r
@@ -850,21 +850,21 @@ CpuMpServicesEnableDisableAP (
   if (!IsBSP ()) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
-  \r
+\r
   if (ProcessorNumber >= gMPSystem.NumberOfProcessors) {\r
     return EFI_NOT_FOUND;\r
   }\r
-  \r
+\r
   if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_AS_BSP_BIT) != 0) {\r
     return EFI_INVALID_PARAMETER;\r
-  }  \r
+  }\r
 \r
   if (gMPSystem.ProcessorData[ProcessorNumber].State != CPU_STATE_IDLE) {\r
     return EFI_UNSUPPORTED;\r
   }\r
 \r
   gThread->MutexLock (&gMPSystem.ProcessorData[ProcessorNumber].StateLock);\r
-  \r
+\r
   if (EnableAP) {\r
     if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_ENABLED_BIT) == 0 ) {\r
       gMPSystem.NumberOfEnabledProcessors++;\r
@@ -876,38 +876,38 @@ CpuMpServicesEnableDisableAP (
     }\r
     gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag &= ~PROCESSOR_ENABLED_BIT;\r
   }\r
-  \r
+\r
   if (HealthFlag != NULL) {\r
     gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag &= ~PROCESSOR_HEALTH_STATUS_BIT;\r
     gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag |= (*HealthFlag & PROCESSOR_HEALTH_STATUS_BIT);\r
   }\r
-  \r
+\r
   gThread->MutexUnlock (&gMPSystem.ProcessorData[ProcessorNumber].StateLock);\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
 \r
 /**\r
-  This return the handle number for the calling processor.  This service may be \r
+  This return the handle number for the calling processor.  This service may be\r
   called from the BSP and APs.\r
 \r
-  This service returns the processor handle number for the calling processor. \r
-  The returned value is in the range from 0 to the total number of logical \r
-  processors minus 1. The total number of logical processors can be retrieved \r
-  with EFI_MP_SERVICES_PROTOCOL.GetNumberOfProcessors(). This service may be \r
-  called from the BSP and APs. If ProcessorNumber is NULL, then EFI_INVALID_PARAMETER \r
-  is returned. Otherwise, the current processors handle number is returned in \r
+  This service returns the processor handle number for the calling processor.\r
+  The returned value is in the range from 0 to the total number of logical\r
+  processors minus 1. The total number of logical processors can be retrieved\r
+  with EFI_MP_SERVICES_PROTOCOL.GetNumberOfProcessors(). This service may be\r
+  called from the BSP and APs. If ProcessorNumber is NULL, then EFI_INVALID_PARAMETER\r
+  is returned. Otherwise, the current processors handle number is returned in\r
   ProcessorNumber, and EFI_SUCCESS is returned.\r
 \r
   @param[in] This              A pointer to the EFI_MP_SERVICES_PROTOCOL instance.\r
-  @param[in] ProcessorNumber   The handle number of AP that is to become the new \r
-                               BSP. The range is from 0 to the total number of \r
-                               logical processors minus 1. The total number of \r
+  @param[in] ProcessorNumber   The handle number of AP that is to become the new\r
+                               BSP. The range is from 0 to the total number of\r
+                               logical processors minus 1. The total number of\r
                                logical processors can be retrieved by\r
                                EFI_MP_SERVICES_PROTOCOL.GetNumberOfProcessors().\r
 \r
-  @retval EFI_SUCCESS             The current processor handle number was returned \r
+  @retval EFI_SUCCESS             The current processor handle number was returned\r
                                   in ProcessorNumber.\r
   @retval EFI_INVALID_PARAMETER   ProcessorNumber is NULL.\r
 \r
@@ -921,11 +921,11 @@ CpuMpServicesWhoAmI (
 {\r
   UINTN   Index;\r
   UINT64  ProcessorId;\r
-  \r
+\r
   if (ProcessorNumber == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   ProcessorId = gThread->Self ();\r
   for (Index = 0; Index < gMPSystem.NumberOfProcessors; Index++) {\r
     if (gMPSystem.ProcessorData[Index].Info.ProcessorId == ProcessorId) {\r
@@ -976,7 +976,7 @@ CpuCheckAllAPsStatus (
   if (gMPSystem.TimeoutActive) {\r
     gMPSystem.Timeout -= gPollInterval;\r
   }\r
-  \r
+\r
   ProcessorData = (PROCESSOR_DATA_BLOCK *) Context;\r
 \r
   for (ProcessorNumber = 0; ProcessorNumber < gMPSystem.NumberOfProcessors; ProcessorNumber++) {\r
@@ -1029,7 +1029,7 @@ CpuCheckAllAPsStatus (
       break;\r
     }\r
   }\r
-  \r
+\r
   if (gMPSystem.TimeoutActive && gMPSystem.Timeout < 0) {\r
     //\r
     // Timeout\r
@@ -1045,15 +1045,15 @@ CpuCheckAllAPsStatus (
           // Skip Disabled processors\r
           continue;\r
         }\r
-    \r
-        // Mark the \r
+\r
+        // Mark the\r
         Status = gThread->MutexTryLock (gMPSystem.ProcessorData[ProcessorNumber].StateLock);\r
         if (EFI_ERROR(Status)) {\r
           return;\r
         }\r
         ProcessorState = gMPSystem.ProcessorData[ProcessorNumber].State;\r
         gThread->MutexUnlock (gMPSystem.ProcessorData[ProcessorNumber].StateLock);\r
-    \r
+\r
         if (ProcessorState != CPU_STATE_IDLE) {\r
           // If we are retrying make sure we don't double count\r
           for (Cpu = 0, Found = FALSE; Cpu < gMPSystem.NumberOfProcessors; Cpu++) {\r
@@ -1078,7 +1078,7 @@ CpuCheckAllAPsStatus (
   if (gMPSystem.FinishCount != gMPSystem.StartCount) {\r
     return;\r
   }\r
-  \r
+\r
   gBS->SetTimer (\r
          gMPSystem.CheckAllAPsEvent,\r
          TimerCancel,\r
@@ -1127,10 +1127,10 @@ CpuCheckThisAPStatus (
   if (ProcessorState == CPU_STATE_FINISHED) {\r
     Status = gBS->SetTimer (ProcessorData->CheckThisAPEvent, TimerCancel, 0);\r
     ASSERT_EFI_ERROR (Status);\r
-    \r
+\r
     Status = gBS->SignalEvent (gMPSystem.WaitEvent);\r
     ASSERT_EFI_ERROR (Status);\r
-    \r
+\r
     gThread->MutexLock (ProcessorData->StateLock);\r
     ProcessorData->State = CPU_STATE_IDLE;\r
     gThread->MutexUnlock (ProcessorData->StateLock);\r
@@ -1158,18 +1158,18 @@ FillInProcessorInformation (
   PROCESSOR_DATA_BLOCK            *ProcessorData;\r
 \r
   ProcessorData = &gMPSystem.ProcessorData[ProcessorNumber];\r
-  \r
+\r
   gMPSystem.ProcessorData[ProcessorNumber].Info.ProcessorId  = gThread->Self ();\r
   gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag   = PROCESSOR_ENABLED_BIT | PROCESSOR_HEALTH_STATUS_BIT;\r
   if (BSP) {\r
     gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag |= PROCESSOR_AS_BSP_BIT;\r
   }\r
-  \r
+\r
   gMPSystem.ProcessorData[ProcessorNumber].Info.Location.Package = ProcessorNumber;\r
   gMPSystem.ProcessorData[ProcessorNumber].Info.Location.Core    = 0;\r
   gMPSystem.ProcessorData[ProcessorNumber].Info.Location.Thread  = 0;\r
   gMPSystem.ProcessorData[ProcessorNumber].State = BSP ? CPU_STATE_BUSY : CPU_STATE_IDLE;\r
-  \r
+\r
   gMPSystem.ProcessorData[ProcessorNumber].Procedure        = NULL;\r
   gMPSystem.ProcessorData[ProcessorNumber].Parameter        = NULL;\r
   gMPSystem.ProcessorData[ProcessorNumber].StateLock        = gThread->MutexInit ();\r
@@ -1188,12 +1188,12 @@ CpuDriverApIdolLoop (
   VOID                  *Parameter;\r
   UINTN                 ProcessorNumber;\r
   PROCESSOR_DATA_BLOCK  *ProcessorData;\r
-  \r
+\r
   ProcessorNumber = (UINTN)Context;\r
   ProcessorData = &gMPSystem.ProcessorData[ProcessorNumber];\r
-    \r
+\r
   ProcessorData->Info.ProcessorId = gThread->Self ();\r
\r
+\r
   while (TRUE) {\r
     //\r
     // Make a local copy on the stack to be extra safe\r
@@ -1202,28 +1202,28 @@ CpuDriverApIdolLoop (
     Procedure = ProcessorData->Procedure;\r
     Parameter = ProcessorData->Parameter;\r
     gThread->MutexUnlock (ProcessorData->ProcedureLock);\r
-  \r
+\r
     if (Procedure != NULL) {\r
       gThread->MutexLock (ProcessorData->StateLock);\r
       ProcessorData->State = CPU_STATE_BUSY;\r
       gThread->MutexUnlock (ProcessorData->StateLock);\r
-  \r
+\r
       Procedure (Parameter);\r
-    \r
+\r
       gThread->MutexLock (ProcessorData->ProcedureLock);\r
       ProcessorData->Procedure = NULL;\r
       gThread->MutexUnlock (ProcessorData->ProcedureLock);\r
-  \r
+\r
       gThread->MutexLock (ProcessorData->StateLock);\r
       ProcessorData->State = CPU_STATE_FINISHED;\r
-      gThread->MutexUnlock (ProcessorData->StateLock);  \r
+      gThread->MutexUnlock (ProcessorData->StateLock);\r
     }\r
-    \r
+\r
     // Poll 5 times a seconds, 200ms\r
     // Don't want to burn too many system resources doing nothing.\r
     gEmuThunk->Sleep (200 * 1000);\r
   }\r
-  \r
+\r
   return 0;\r
 }\r
 \r
@@ -1236,7 +1236,7 @@ InitializeMpSystemData (
   EFI_STATUS              Status;\r
   UINTN                   Index;\r
 \r
-  \r
+\r
   //\r
   // Clear the data structure area first.\r
   //\r
@@ -1247,12 +1247,12 @@ InitializeMpSystemData (
   //\r
   gMPSystem.NumberOfProcessors         = NumberOfProcessors;\r
   gMPSystem.NumberOfEnabledProcessors  = NumberOfProcessors;\r
-  \r
+\r
   gMPSystem.ProcessorData = AllocateZeroPool (gMPSystem.NumberOfProcessors * sizeof (PROCESSOR_DATA_BLOCK));\r
   ASSERT (gMPSystem.ProcessorData != NULL);\r
 \r
   FillInProcessorInformation (TRUE, 0);\r
-  \r
+\r
   Status = gBS->CreateEvent (\r
                   EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
                   TPL_CALLBACK,\r
@@ -1261,24 +1261,24 @@ InitializeMpSystemData (
                   &gMPSystem.CheckAllAPsEvent\r
                   );\r
   ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
 \r
   for (Index = 0; Index < gMPSystem.NumberOfProcessors; Index++) {\r
     if ((gMPSystem.ProcessorData[Index].Info.StatusFlag & PROCESSOR_AS_BSP_BIT) == PROCESSOR_AS_BSP_BIT) {\r
      // Skip BSP\r
       continue;\r
     }\r
-    \r
+\r
     FillInProcessorInformation (FALSE, Index);\r
-    \r
+\r
     Status = gThread->CreateThread (\r
-                        (VOID *)&gMPSystem.ProcessorData[Index].Info.ProcessorId, \r
+                        (VOID *)&gMPSystem.ProcessorData[Index].Info.ProcessorId,\r
                         NULL,\r
                         CpuDriverApIdolLoop,\r
                         (VOID *)Index\r
                         );\r
-                      \r
-              \r
+\r
+\r
     Status = gBS->CreateEvent (\r
                          EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
                          TPL_CALLBACK,\r
@@ -1324,7 +1324,7 @@ CpuMpServicesInit (
   UINTN                   MaxCpus;\r
 \r
   MaxCpus = 1; // BSP\r
-  \r
+\r
   IoThunk = GetIoThunkInstance (&gEmuThreadThunkProtocolGuid, 0);\r
   if (IoThunk != NULL) {\r
     Status = IoThunk->Open (IoThunk);\r
index c8a226e038f7d5da887602064bfdf3c77b5cdcb5..f5aa4ddb43fc82805bc19c23452e2a6e5c94cc50 100644 (file)
Binary files a/EmulatorPkg/CpuRuntimeDxe/Strings.uni and b/EmulatorPkg/CpuRuntimeDxe/Strings.uni differ
index 2cad6ca836896e242624c4d8f8057f8f3e188dc8..7ecce35300e1d1f2857dedf56a387be63a67d85d 100644 (file)
@@ -1,13 +1,13 @@
 /**@file\r
 \r
 Copyright (c) 2006, 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
+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
 Module Name:\r
 \r
index 44a3cc33e319f271643325aa567a88ebcfefbbbe..03f94b0288ba560597c9c9e2052b4d5e04c20fdc 100644 (file)
@@ -1,13 +1,13 @@
 /**@file\r
 \r
 Copyright (c) 2006, 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
+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
 Module Name:\r
 \r
@@ -63,46 +63,46 @@ EFI_DRIVER_CONFIGURATION_PROTOCOL gEmuBlockIoDriverConfiguration = {
 /*++\r
 \r
   Routine Description:\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
   Arguments:\r
     This             - A pointer to the EFI_DRIVER_CONFIGURATION_ PROTOCOL instance.\r
     ControllerHandle - The handle of the controller to set options on.\r
     ChildHandle      - The handle of the child controller to set options on.  This\r
-                       is an optional parameter that may be NULL.  It will be NULL \r
-                       for device drivers, and for a bus drivers that wish to set \r
-                       options for the bus controller.  It will not be NULL for a \r
-                       bus driver that wishes to set options for one of its child \r
+                       is an optional parameter that may be NULL.  It will be NULL\r
+                       for device drivers, and for a bus drivers that wish to set\r
+                       options for the bus controller.  It will not be NULL for a\r
+                       bus driver that wishes to set options for one of its child\r
                        controllers.\r
     Language         - A pointer to a three character ISO 639-2 language identifier.\r
-                       This is the language of the user interface that should be \r
-                       presented to the user, and it must match one of the languages \r
-                       specified in SupportedLanguages.  The number of languages \r
+                       This is the language of the user interface that should be\r
+                       presented to the user, and it must match one of the languages\r
+                       specified in SupportedLanguages.  The number of languages\r
                        supported by a driver is up to the driver writer.\r
-    ActionRequired   - A pointer to the action that the calling agent is required \r
-                       to perform when this function returns.  See "Related \r
-                       Definitions" for a list of the actions that the calling \r
-                       agent is required to perform prior to accessing \r
+    ActionRequired   - A pointer to the action that the calling agent is required\r
+                       to perform when this function returns.  See "Related\r
+                       Definitions" for a list of the actions that the calling\r
+                       agent is required to perform prior to accessing\r
                        ControllerHandle again.\r
 \r
   Returns:\r
-    EFI_SUCCESS           - The driver specified by This successfully set the \r
-                            configuration options for the controller specified \r
+    EFI_SUCCESS           - The driver specified by This successfully set the\r
+                            configuration options for the controller specified\r
                             by ControllerHandle..\r
     EFI_INVALID_PARAMETER - ControllerHandle is not a valid EFI_HANDLE.\r
     EFI_INVALID_PARAMETER - ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
     EFI_INVALID_PARAMETER - ActionRequired is NULL.\r
-    EFI_UNSUPPORTED       - The driver specified by This does not support setting \r
-                            configuration options for the controller specified by \r
+    EFI_UNSUPPORTED       - The driver specified by This does not support setting\r
+                            configuration options for the controller specified by\r
                             ControllerHandle and ChildHandle.\r
-    EFI_UNSUPPORTED       - The driver specified by This does not support the \r
+    EFI_UNSUPPORTED       - The driver specified by This does not support the\r
                             language specified by Language.\r
-    EFI_DEVICE_ERROR      - A device error occurred while attempt to set the \r
-                            configuration options for the controller specified \r
+    EFI_DEVICE_ERROR      - A device error occurred while attempt to set the\r
+                            configuration options for the controller specified\r
                             by ControllerHandle and ChildHandle.\r
-    EFI_OUT_RESOURCES     - There are not enough resources available to set the \r
-                            configuration options for the controller specified \r
+    EFI_OUT_RESOURCES     - There are not enough resources available to set the\r
+                            configuration options for the controller specified\r
                             by ControllerHandle and ChildHandle.\r
 \r
 --*/\r
@@ -183,29 +183,29 @@ EmuBlockIoDriverConfigurationSetOptions (
 \r
   Arguments:\r
     This             - A pointer to the EFI_DRIVER_CONFIGURATION_PROTOCOL instance.\r
-    ControllerHandle - The handle of the controller to test if it's current \r
+    ControllerHandle - The handle of the controller to test if it's current\r
                        configuration options are valid.\r
     ChildHandle      - The handle of the child controller to test if it's current\r
-                       configuration options are valid.  This is an optional \r
-                       parameter that may be NULL.  It will be NULL for device \r
+                       configuration options are valid.  This is an optional\r
+                       parameter that may be NULL.  It will be NULL for device\r
                        drivers.  It will also be NULL for a bus drivers that wish\r
                        to test the configuration options for the bus controller.\r
-                       It will not be NULL for a bus driver that wishes to test \r
+                       It will not be NULL for a bus driver that wishes to test\r
                        configuration options for one of its child controllers.\r
 \r
   Returns:\r
-    EFI_SUCCESS           - The controller specified by ControllerHandle and \r
-                            ChildHandle that is being managed by the driver \r
+    EFI_SUCCESS           - The controller specified by ControllerHandle and\r
+                            ChildHandle that is being managed by the driver\r
                             specified by This has a valid set of  configuration\r
                             options.\r
     EFI_INVALID_PARAMETER - ControllerHandle is not a valid EFI_HANDLE.\r
     EFI_INVALID_PARAMETER - ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
-    EFI_UNSUPPORTED       - The driver specified by This is not currently \r
-                            managing the controller specified by ControllerHandle \r
+    EFI_UNSUPPORTED       - The driver specified by This is not currently\r
+                            managing the controller specified by ControllerHandle\r
                             and ChildHandle.\r
-    EFI_DEVICE_ERROR      - The controller specified by ControllerHandle and \r
-                            ChildHandle that is being managed by the driver \r
-                            specified by This has an invalid set of configuration \r
+    EFI_DEVICE_ERROR      - The controller specified by ControllerHandle and\r
+                            ChildHandle that is being managed by the driver\r
+                            specified by This has an invalid set of configuration\r
                             options.\r
 \r
 --*/\r
index ebb730bf06b4649ee40333e49f379a6bf68abb78..77a26e79d270b00157991e538034e25d88cdee8c 100644 (file)
@@ -1,13 +1,13 @@
 /**@file\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
-                                                                                          \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
 Module Name:\r
 \r
@@ -71,54 +71,54 @@ EmuBlockIoDriverDiagnosticsRunDiagnostics (
   Arguments:\r
     This             - A pointer to the EFI_DRIVER_DIAGNOSTICS_PROTOCOL instance.\r
     ControllerHandle - The handle of the controller to run diagnostics on.\r
-    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 \r
-                       controller.  It will not be NULL for a bus driver that \r
+    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\r
+                       controller.  It will not be NULL for a bus driver that\r
                        wishes to run diagnostics on one of its child controllers.\r
-    DiagnosticType   - Indicates type of diagnostics to perform on the controller \r
-                       specified by ControllerHandle and ChildHandle.   See \r
+    DiagnosticType   - Indicates type of diagnostics to perform on the controller\r
+                       specified by ControllerHandle and ChildHandle.   See\r
                        "Related Definitions" for the list of supported types.\r
-    Language         - A pointer to a three character ISO 639-2 language \r
+    Language         - A pointer to a three character ISO 639-2 language\r
                        identifier or a Null-terminated ASCII string array indicating\r
                        the language.  This is the language in which the optional\r
-                       error message should be returned in Buffer, and it must \r
+                       error message should be returned in Buffer, and it must\r
                        match one of the languages specified in SupportedLanguages.\r
-                       The number of languages supported by a driver is up to \r
-                       the driver writer.  \r
-    ErrorType        - A GUID that defines the format of the data returned in \r
-                       Buffer.  \r
-    BufferSize       - The size, in bytes, of the data returned in Buffer.  \r
-    Buffer           - A buffer that contains a Null-terminated Unicode string \r
-                       plus some additional data whose format is defined by \r
-                       ErrorType.  Buffer is allocated by this function with \r
-                       AllocatePool(), and it is the caller's responsibility \r
-                       to free it with a call to FreePool().  \r
+                       The number of languages supported by a driver is up to\r
+                       the driver writer.\r
+    ErrorType        - A GUID that defines the format of the data returned in\r
+                       Buffer.\r
+    BufferSize       - The size, in bytes, of the data returned in Buffer.\r
+    Buffer           - A buffer that contains a Null-terminated Unicode string\r
+                       plus some additional data whose format is defined by\r
+                       ErrorType.  Buffer is allocated by this function with\r
+                       AllocatePool(), and it is the caller's responsibility\r
+                       to free it with a call to FreePool().\r
 \r
   Returns:\r
-    EFI_SUCCESS           - The controller specified by ControllerHandle and \r
+    EFI_SUCCESS           - The controller specified by ControllerHandle and\r
                             ChildHandle passed the diagnostic.\r
     EFI_INVALID_PARAMETER - ControllerHandle is not a valid EFI_HANDLE.\r
-    EFI_INVALID_PARAMETER - ChildHandle is not NULL and it is not a valid \r
+    EFI_INVALID_PARAMETER - ChildHandle is not NULL and it is not a valid\r
                             EFI_HANDLE.\r
     EFI_INVALID_PARAMETER - Language is NULL.\r
     EFI_INVALID_PARAMETER - ErrorType is NULL.\r
     EFI_INVALID_PARAMETER - BufferType is NULL.\r
     EFI_INVALID_PARAMETER - Buffer is NULL.\r
-    EFI_UNSUPPORTED       - The driver specified by This does not support \r
-                            running diagnostics for the controller specified \r
+    EFI_UNSUPPORTED       - The driver specified by This does not support\r
+                            running diagnostics for the controller specified\r
                             by ControllerHandle and ChildHandle.\r
-    EFI_UNSUPPORTED       - The driver specified by This does not support the \r
+    EFI_UNSUPPORTED       - The driver specified by This does not support the\r
                             type of diagnostic specified by DiagnosticType.\r
-    EFI_UNSUPPORTED       - The driver specified by This does not support the \r
+    EFI_UNSUPPORTED       - The driver specified by This does not support the\r
                             language specified by Language.\r
     EFI_OUT_OF_RESOURCES  - There are not enough resources available to complete\r
                             the diagnostics.\r
     EFI_OUT_OF_RESOURCES  - There are not enough resources available to return\r
-                            the status information in ErrorType, BufferSize, \r
+                            the status information in ErrorType, BufferSize,\r
                             and Buffer.\r
-    EFI_DEVICE_ERROR      - The controller specified by ControllerHandle and \r
+    EFI_DEVICE_ERROR      - The controller specified by ControllerHandle and\r
                             ChildHandle did not pass the diagnostic.\r
 \r
 --*/\r
index b679d8f72aef4483ddfb2a5ec35b5a2c9c6109f0..e77de2c7bcdbf89799a2932b45b4aa3599f97e8a 100644 (file)
@@ -1,13 +1,13 @@
 /**@file\r
 \r
 Copyright (c) 2004 - 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
+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
 bbe\r
 **/\r
 \r
@@ -50,7 +50,7 @@ EmuBlockIo2Reset (
 \r
 /**\r
   Read BufferSize bytes from Lba into Buffer.\r
-  \r
+\r
   This function reads the requested number of blocks from the device. All the\r
   blocks are read, or an error is returned.\r
   If EFI_DEVICE_ERROR, EFI_NO_MEDIA,_or EFI_MEDIA_CHANGED is returned and\r
@@ -58,13 +58,13 @@ EmuBlockIo2Reset (
   not be signaled.\r
 \r
   @param[in]       This       Indicates a pointer to the calling context.\r
-  @param[in]       MediaId    Id of the media, changes every time the media is \r
+  @param[in]       MediaId    Id of the media, changes every time the media is\r
                               replaced.\r
   @param[in]       Lba        The starting Logical Block Address to read from.\r
   @param[in, out]  Token           A pointer to the token associated with the transaction.\r
-  @param[in]       BufferSize Size of Buffer, must be a multiple of device block size.  \r
-  @param[out]      Buffer     A pointer to the destination buffer for the data. The \r
-                              caller is responsible for either having implicit or \r
+  @param[in]       BufferSize Size of Buffer, must be a multiple of device block size.\r
+  @param[out]      Buffer     A pointer to the destination buffer for the data. The\r
+                              caller is responsible for either having implicit or\r
                               explicit ownership of the buffer.\r
 \r
   @retval EFI_SUCCESS           The read request was queued if Token->Event is\r
@@ -76,7 +76,7 @@ EmuBlockIo2Reset (
   @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
                                 intrinsic 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_OUT_OF_RESOURCES  The request could not be completed due to a lack\r
                                 of resources.\r
@@ -132,14 +132,14 @@ EmuBlockIo2ReadBlocksEx (
   @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the write.\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
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack\r
                                 of resources.\r
 \r
 **/\r
 EFI_STATUS\r
-EFIAPI \r
+EFIAPI\r
 EmuBlockIo2WriteBlocksEx (\r
   IN     EFI_BLOCK_IO2_PROTOCOL  *This,\r
   IN     UINT32                 MediaId,\r
@@ -167,10 +167,10 @@ EmuBlockIo2WriteBlocksEx (
 \r
 /**\r
   Flush the Block Device.\r
\r
+\r
   If EFI_DEVICE_ERROR, EFI_NO_MEDIA,_EFI_WRITE_PROTECTED or EFI_MEDIA_CHANGED\r
   is returned and non-blocking I/O is being used, the Event associated with\r
-  this request will not be signaled.  \r
+  this request will not be signaled.\r
 \r
   @param[in]      This     Indicates a pointer to the calling context.\r
   @param[in,out]  Token    A pointer to the token associated with the transaction\r
@@ -258,7 +258,7 @@ EmuBlockIoReset (
   @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
@@ -305,7 +305,7 @@ EmuBlockIoReadBlocks (
   @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
@@ -370,33 +370,33 @@ EmuBlockIoFlushBlocks (
 \r
 \r
 /**\r
-  Tests to see if this driver supports a given controller. If a child device is provided, \r
+  Tests to see if this driver supports a given controller. 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
-  This function checks to see if the driver specified by This supports the device specified by \r
-  ControllerHandle. Drivers will typically use the device path attached to \r
-  ControllerHandle and/or the services from the bus I/O abstraction attached to \r
-  ControllerHandle to determine if the driver supports ControllerHandle. This function \r
-  may be called many times during platform initialization. In order to reduce boot times, the tests \r
-  performed by this function must be very small, and take as little time as possible to execute. This \r
-  function must not change the state of any hardware devices, and this function must be aware that the \r
-  device specified by ControllerHandle may already be managed by the same driver or a \r
-  different driver. This function must match its calls to AllocatePages() with FreePages(), \r
-  AllocatePool() with FreePool(), and OpenProtocol() with CloseProtocol().  \r
-  Because ControllerHandle may have been previously started by the same driver, if a protocol is \r
-  already in the opened state, then it must not be closed with CloseProtocol(). This is required \r
+  This function checks to see if the driver specified by This supports the device specified by\r
+  ControllerHandle. Drivers will typically use the device path attached to\r
+  ControllerHandle and/or the services from the bus I/O abstraction attached to\r
+  ControllerHandle to determine if the driver supports ControllerHandle. This function\r
+  may be called many times during platform initialization. In order to reduce boot times, the tests\r
+  performed by this function must be very small, and take as little time as possible to execute. This\r
+  function must not change the state of any hardware devices, and this function must be aware that the\r
+  device specified by ControllerHandle may already be managed by the same driver or a\r
+  different driver. This function must match its calls to AllocatePages() with FreePages(),\r
+  AllocatePool() with FreePool(), and OpenProtocol() with CloseProtocol().\r
+  Because ControllerHandle may have been previously started by the same driver, if a protocol is\r
+  already in the opened state, then it must not be closed with CloseProtocol(). This is required\r
   to guarantee the state of ControllerHandle is not modified by this function.\r
 \r
   @param[in]  This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle     The handle of the controller to test. This handle \r
-                                   must support a protocol interface that supplies \r
+  @param[in]  ControllerHandle     The handle of the controller to test. 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.  This \r
-                                   parameter is ignored by device drivers, and is optional for bus \r
-                                   drivers. For bus drivers, if this parameter is not NULL, then \r
-                                   the bus driver must determine if the bus controller specified \r
-                                   by ControllerHandle and the child controller specified \r
-                                   by RemainingDevicePath are both supported by this \r
+  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path.  This\r
+                                   parameter is ignored by device drivers, and is optional for bus\r
+                                   drivers. For bus drivers, if this parameter is not NULL, then\r
+                                   the bus driver must determine if the bus controller specified\r
+                                   by ControllerHandle and the child controller specified\r
+                                   by RemainingDevicePath are both supported by this\r
                                    bus driver.\r
 \r
   @retval EFI_SUCCESS              The device specified by ControllerHandle and\r
@@ -462,28 +462,28 @@ EmuBlockIoDriverBindingSupported (
   Starts a device controller or a bus controller.\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, \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,\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.\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.  This \r
-                                   parameter is ignored by device drivers, and is optional for bus \r
-                                   drivers. For a bus driver, if this parameter is NULL, then handles \r
-                                   for all the children of Controller are created by this driver.  \r
-                                   If this parameter is not NULL and the first Device Path Node is \r
-                                   not the End of Device Path Node, then only the handle for the \r
-                                   child device specified by the first Device Path Node of \r
+  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path.  This\r
+                                   parameter is ignored by device drivers, and is optional for bus\r
+                                   drivers. For a bus driver, if this parameter is NULL, then handles\r
+                                   for all the children of Controller are created by this driver.\r
+                                   If this parameter is not NULL and the first Device Path Node is\r
+                                   not the End of Device Path Node, then only the handle for the\r
+                                   child device specified by the first Device Path Node of\r
                                    RemainingDevicePath is created by this driver.\r
-                                   If the first Device Path Node of RemainingDevicePath is \r
+                                   If the first Device Path Node of RemainingDevicePath is\r
                                    the End of Device Path Node, no child handle is created by this\r
                                    driver.\r
 \r
@@ -508,7 +508,7 @@ EmuBlockIoDriverBindingStart (
   //\r
   // Grab the protocols we need\r
   //\r
-  \r
+\r
   Status = gBS->OpenProtocol (\r
                   Handle,\r
                   &gEmuIoThunkProtocolGuid,\r
@@ -520,7 +520,7 @@ EmuBlockIoDriverBindingStart (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   if (!CompareGuid (EmuIoThunk->Protocol, &gEmuBlockIoProtocolGuid)) {\r
     Status = EFI_UNSUPPORTED;\r
     goto Done;\r
@@ -540,7 +540,7 @@ EmuBlockIoDriverBindingStart (
   Private->IoThunk   = EmuIoThunk;\r
   Private->Io        = EmuIoThunk->Interface;\r
   Private->EfiHandle = Handle;\r
-  \r
+\r
   Private->BlockIo.Revision    = EFI_BLOCK_IO_PROTOCOL_REVISION2;\r
   Private->BlockIo.Media       = &Private->Media;\r
   Private->BlockIo.Reset       = EmuBlockIoReset;\r
@@ -568,7 +568,7 @@ EmuBlockIoDriverBindingStart (
     EmuIoThunk->ConfigString,\r
     TRUE\r
     );\r
-    \r
+\r
   AddUnicodeString2 (\r
     "en",\r
     gEmuBlockIoComponentName2.SupportedLanguages,\r
@@ -590,11 +590,11 @@ Done:
       if (Private->ControllerNameTable != NULL) {\r
         FreeUnicodeStringTable (Private->ControllerNameTable);\r
       }\r
-      \r
+\r
       gBS->FreePool (Private);\r
-    \r
+\r
     }\r
-    \r
+\r
     gBS->CloseProtocol (\r
           Handle,\r
           &gEmuIoThunkProtocolGuid,\r
@@ -609,10 +609,10 @@ Done:
 \r
 /**\r
   Stops a device controller or a bus controller.\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
+\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
@@ -620,13 +620,13 @@ Done:
      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
@@ -678,7 +678,7 @@ EmuBlockIoDriverBindingStop (
                     Handle\r
                     );\r
   }\r
-  \r
+\r
   if (!EFI_ERROR (Status)) {\r
     //\r
     // Free our instance data\r
@@ -709,9 +709,9 @@ EFI_DRIVER_BINDING_PROTOCOL gEmuBlockIoDriverBinding = {
 /**\r
   The user Entry Point for module EmuBlockIo . 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 b11f3057208b88308cd709257fc318d02447c4fe..4b2e676953c72a8f7d670250bf8e583afd550cd3 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
 Copyright (c) 2004 - 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
+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
 Module Name:\r
 \r
@@ -16,8 +16,8 @@ Module Name:
 Abstract:\r
 \r
   Produce block IO abstractions for real devices on your PC using Posix APIs.\r
-  The configuration of what devices to mount or emulate comes from UNIX \r
-  environment variables. The variables must be visible to the Microsoft* \r
+  The configuration of what devices to mount or emulate comes from UNIX\r
+  environment variables. The variables must be visible to the Microsoft*\r
   Developer Studio for them to work.\r
 \r
   * Other names and brands may be claimed as the property of others.\r
index 0e07822e3fdf0a0ba2b7554f468146b60dbb8214..436afd975c18d42d3f44b5137a944599040ba1a9 100644 (file)
@@ -30,9 +30,9 @@
 #\r
 #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
 #\r
-#  DRIVER_BINDING                =  gUnixBlockIoDriverBinding                    \r
-#  COMPONENT_NAME                =  gUnixBlockIoComponentName                    \r
-#  DRIVER_DIAG                   =  gUnixBlockIoDriverDiagnostics                \r
+#  DRIVER_BINDING                =  gUnixBlockIoDriverBinding\r
+#  COMPONENT_NAME                =  gUnixBlockIoComponentName\r
+#  DRIVER_DIAG                   =  gUnixBlockIoDriverDiagnostics\r
 #\r
 \r
 [Sources]\r
index e8be214b3c60735cdd8738e53051cac8db39ea10..34275a32bc09e574f5e8f5f37e2c7628038a862c 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
 \r
 Copyright (c) 2006, 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
+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
 \r
 #include "EmuBusDriverDxe.h"\r
index 0430ec3dd22fe5a23e21be6c6dcf5fc7264f8106..623544508c00ef6d6080d0b44fe88c41feb356d9 100644 (file)
@@ -50,7 +50,7 @@ EmuBusDriverBindingSupported (
   //\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
@@ -65,7 +65,7 @@ EmuBusDriverBindingSupported (
       }\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Open the IO Abstraction(s) needed to perform the supported test\r
   //\r
@@ -226,8 +226,8 @@ EmuBusDriverBindingStart (
     if (RemainingDevicePath != NULL) {\r
       CreateDevice  = FALSE;\r
       //\r
-      // Check if RemainingDevicePath is the End of Device Path Node, \r
-      // if yes, don't create any child device \r
+      // Check if RemainingDevicePath is the End of Device Path Node,\r
+      // if yes, don't create any child device\r
       //\r
       if (!IsDevicePathEnd (RemainingDevicePath)) {\r
         //\r
@@ -259,7 +259,7 @@ EmuBusDriverBindingStart (
       EmuDevice->ControllerHandle   = ControllerHandle;\r
       EmuDevice->ParentDevicePath   = ParentDevicePath;\r
       CopyMem (&EmuDevice->EmuIoThunk, EmuIoThunk, sizeof (EMU_IO_THUNK_PROTOCOL));\r
-      \r
+\r
       EmuDevice->ControllerNameTable = NULL;\r
 \r
       StrnCpy (ComponentName, EmuIoThunk->ConfigString, sizeof (ComponentName)/sizeof (CHAR16));\r
@@ -455,7 +455,7 @@ Arguments:
 \r
 Returns:\r
 \r
-  EFI_DEVICE_PATH_PROTOCOL \r
+  EFI_DEVICE_PATH_PROTOCOL\r
 \r
 **/\r
 EFI_DEVICE_PATH_PROTOCOL *\r
@@ -493,9 +493,9 @@ EmuBusCreateDevicePath (
 /**\r
   The user Entry Point for module EmuBusDriver. 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 e5eee562542488c9a29e41899b4c32bd9bfeaf1e..082a33ee1b51276ce466cde1d7e77ffa44eef097 100644 (file)
@@ -2,13 +2,13 @@
 \r
 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
index 44f2af0cfa98a6368575174cf222c60523585f8f..861bc9fa4715fb918698e27ba3d708c4eb7cc2b6 100644 (file)
@@ -2,7 +2,7 @@
 # Emu Bus driver\r
 #\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
 #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
 #\r
-#  DRIVER_BINDING                =  gEmuBusDriverBinding                        \r
-#  COMPONENT_NAME                =  gEmuBusDriverComponentName                  \r
+#  DRIVER_BINDING                =  gEmuBusDriverBinding\r
+#  COMPONENT_NAME                =  gEmuBusDriverComponentName\r
 #\r
 \r
 [Sources]\r
   ComponentName.c\r
   EmuBusDriverDxe.c\r
-  \r
+\r
 \r
 [Packages]\r
   MdePkg/MdePkg.dec\r
index e10f607cec4ce6c0b2429cf8c89e7290c7eaf683..058e4557ef42f57d39a1476d5ac2d60f4a13bc58 100644 (file)
@@ -2,13 +2,13 @@
 \r
 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2010,Apple Inc. 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
+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
 Module Name:\r
 \r
index 19c7b2e67914dd5ca4072e04be71ee5d7deb09d2..97ebc60f5191ce9a15e5756dbfe98e1b80b8e981 100644 (file)
@@ -2,7 +2,7 @@
 # GOP driver\r
 #\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -28,8 +28,8 @@
 #\r
 #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
 #\r
-#  DRIVER_BINDING                =  gEmuGopDriverBinding                        \r
-#  COMPONENT_NAME                =  gEmuGopComponentName                        \r
+#  DRIVER_BINDING                =  gEmuGopDriverBinding\r
+#  COMPONENT_NAME                =  gEmuGopComponentName\r
 #\r
 \r
 [Sources]\r
@@ -54,7 +54,7 @@
   BaseLib\r
   DebugLib\r
   KeyMapLib\r
-  \r
+\r
 \r
 [Guids]\r
   gEfiEventExitBootServicesGuid                # SOMETIMES_CONSUMED  Create Event: EVENT_GROUP_GUID\r
index 03e33ea636c394d162fecd907ab54af8f9568505..6f7b082618b49e1e9d664fe9241e39e40bafcd8c 100644 (file)
@@ -2,13 +2,13 @@
 
 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
 Portions copyright (c) 2010,Apple Inc. All rights reserved.<BR>
-This program and the accompanying materials                          
-are licensed and made available under the terms and conditions of the BSD License         
-which accompanies this distribution.  The full text of the license may be found at        
-http://opensource.org/licenses/bsd-license.php                                            
-                                                                                          
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution.  The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 **/
 
@@ -54,7 +54,7 @@ typedef struct _EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY {
   EFI_EVENT                             Event;
   LIST_ENTRY                            NotifyEntry;
 } EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY;
-  
+
 #define GRAPHICS_OUTPUT_INVALIDE_MODE_NUMBER 0xffff
 
 typedef struct {
@@ -103,7 +103,7 @@ typedef struct {
 
   EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL SimpleTextInEx;
   EFI_KEY_STATE                     KeyState;
-  LIST_ENTRY                        NotifyList;  
+  LIST_ENTRY                        NotifyList;
 } GOP_PRIVATE_DATA;
 
 
index 8ddaa86cfad1bea1873452538b4a1c5fd75c960c..b7cec38938569afb40833c0a3017f4956d05aa25 100644 (file)
@@ -2,13 +2,13 @@
 \r
 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2010,Apple Inc. 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
+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,47 +42,47 @@ Returns:
   }\r
   while (!IsListEmpty (ListHead)) {\r
     NotifyNode = CR (\r
-                   ListHead->ForwardLink, \r
-                   EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY, \r
-                   NotifyEntry, \r
+                   ListHead->ForwardLink,\r
+                   EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY,\r
+                   NotifyEntry,\r
                    EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY_SIGNATURE\r
                    );\r
     RemoveEntryList (ListHead->ForwardLink);\r
     gBS->FreePool (NotifyNode);\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
 \r
 /**\r
-  Tests to see if this driver supports a given controller. If a child device is provided, \r
+  Tests to see if this driver supports a given controller. 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
-  This function checks to see if the driver specified by This supports the device specified by \r
-  ControllerHandle. Drivers will typically use the device path attached to \r
-  ControllerHandle and/or the services from the bus I/O abstraction attached to \r
-  ControllerHandle to determine if the driver supports ControllerHandle. This function \r
-  may be called many times during platform initialization. In order to reduce boot times, the tests \r
-  performed by this function must be very small, and take as little time as possible to execute. This \r
-  function must not change the state of any hardware devices, and this function must be aware that the \r
-  device specified by ControllerHandle may already be managed by the same driver or a \r
-  different driver. This function must match its calls to AllocatePages() with FreePages(), \r
-  AllocatePool() with FreePool(), and OpenProtocol() with CloseProtocol().  \r
-  Because ControllerHandle may have been previously started by the same driver, if a protocol is \r
-  already in the opened state, then it must not be closed with CloseProtocol(). This is required \r
+  This function checks to see if the driver specified by This supports the device specified by\r
+  ControllerHandle. Drivers will typically use the device path attached to\r
+  ControllerHandle and/or the services from the bus I/O abstraction attached to\r
+  ControllerHandle to determine if the driver supports ControllerHandle. This function\r
+  may be called many times during platform initialization. In order to reduce boot times, the tests\r
+  performed by this function must be very small, and take as little time as possible to execute. This\r
+  function must not change the state of any hardware devices, and this function must be aware that the\r
+  device specified by ControllerHandle may already be managed by the same driver or a\r
+  different driver. This function must match its calls to AllocatePages() with FreePages(),\r
+  AllocatePool() with FreePool(), and OpenProtocol() with CloseProtocol().\r
+  Because ControllerHandle may have been previously started by the same driver, if a protocol is\r
+  already in the opened state, then it must not be closed with CloseProtocol(). This is required\r
   to guarantee the state of ControllerHandle is not modified by this function.\r
 \r
   @param[in]  This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle     The handle of the controller to test. This handle \r
-                                   must support a protocol interface that supplies \r
+  @param[in]  ControllerHandle     The handle of the controller to test. 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.  This \r
-                                   parameter is ignored by device drivers, and is optional for bus \r
-                                   drivers. For bus drivers, if this parameter is not NULL, then \r
-                                   the bus driver must determine if the bus controller specified \r
-                                   by ControllerHandle and the child controller specified \r
-                                   by RemainingDevicePath are both supported by this \r
+  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path.  This\r
+                                   parameter is ignored by device drivers, and is optional for bus\r
+                                   drivers. For bus drivers, if this parameter is not NULL, then\r
+                                   the bus driver must determine if the bus controller specified\r
+                                   by ControllerHandle and the child controller specified\r
+                                   by RemainingDevicePath are both supported by this\r
                                    bus driver.\r
 \r
   @retval EFI_SUCCESS              The device specified by ControllerHandle and\r
@@ -143,28 +143,28 @@ EmuGopDriverBindingSupported (
   Starts a device controller or a bus controller.\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, \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,\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.\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.  This \r
-                                   parameter is ignored by device drivers, and is optional for bus \r
-                                   drivers. For a bus driver, if this parameter is NULL, then handles \r
-                                   for all the children of Controller are created by this driver.  \r
-                                   If this parameter is not NULL and the first Device Path Node is \r
-                                   not the End of Device Path Node, then only the handle for the \r
-                                   child device specified by the first Device Path Node of \r
+  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path.  This\r
+                                   parameter is ignored by device drivers, and is optional for bus\r
+                                   drivers. For a bus driver, if this parameter is NULL, then handles\r
+                                   for all the children of Controller are created by this driver.\r
+                                   If this parameter is not NULL and the first Device Path Node is\r
+                                   not the End of Device Path Node, then only the handle for the\r
+                                   child device specified by the first Device Path Node of\r
                                    RemainingDevicePath is created by this driver.\r
-                                   If the first Device Path Node of RemainingDevicePath is \r
+                                   If the first Device Path Node of RemainingDevicePath is\r
                                    the End of Device Path Node, no child handle is created by this\r
                                    driver.\r
 \r
@@ -288,10 +288,10 @@ Done:
 \r
 /**\r
   Stops a device controller or a bus controller.\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
+\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
@@ -299,13 +299,13 @@ Done:
      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
@@ -376,13 +376,13 @@ EmuGopDriverBindingStop (
     // Free our instance data\r
     //\r
     FreeUnicodeStringTable (Private->ControllerNameTable);\r
-    \r
+\r
     Status = gBS->CloseEvent (Private->SimpleTextIn.WaitForKey);\r
     ASSERT_EFI_ERROR (Status);\r
-    \r
+\r
     Status = gBS->CloseEvent (Private->SimpleTextInEx.WaitForKeyEx);\r
     ASSERT_EFI_ERROR (Status);\r
-    \r
+\r
     FreeNotifyList (&Private->NotifyList);\r
 \r
     gBS->FreePool (Private);\r
@@ -394,7 +394,7 @@ EmuGopDriverBindingStop (
 \r
 \r
 ///\r
-/// This protocol provides the services required to determine if a driver supports a given controller. \r
+/// This protocol provides the services required to determine if a driver supports a given controller.\r
 /// If a controller is supported, then it also provides routines to start and stop the controller.\r
 ///\r
 EFI_DRIVER_BINDING_PROTOCOL gEmuGopDriverBinding = {\r
@@ -411,9 +411,9 @@ EFI_DRIVER_BINDING_PROTOCOL gEmuGopDriverBinding = {
 /**\r
   The user Entry Point for module EmuGop. 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 0bc2eb5a0280349451a26bb6a3964f81db171140..571776b194f25dc2e9e8dd1c0e8bbc7ca79f1cce 100644 (file)
@@ -27,36 +27,36 @@ Routine Description:
 
 Arguments:
 
-  RegsiteredData    - A pointer to a buffer that is filled in with the keystroke 
+  RegsiteredData    - A pointer to a buffer that is filled in with the keystroke
                       state data for the key that was registered.
-  InputData         - A pointer to a buffer that is filled in with the keystroke 
+  InputData         - A pointer to a buffer that is filled in with the keystroke
                       state data for the key that was pressed.
 
 Returns:
   TRUE              - Key be pressed matches a registered key.
-  FLASE             - Match failed. 
-  
+  FLASE             - Match failed.
+
 **/
 {
   ASSERT (RegsiteredData != NULL && InputData != NULL);
-  
+
   if ((RegsiteredData->Key.ScanCode    != InputData->Key.ScanCode) ||
       (RegsiteredData->Key.UnicodeChar != InputData->Key.UnicodeChar)) {
-    return FALSE;  
-  }      
-  
+    return FALSE;
+  }
+
   //
   // Assume KeyShiftState/KeyToggleState = 0 in Registered key data means these state could be ignored.
   //
   if (RegsiteredData->KeyState.KeyShiftState != 0 &&
       RegsiteredData->KeyState.KeyShiftState != InputData->KeyState.KeyShiftState) {
-    return FALSE;    
-  }   
+    return FALSE;
+  }
   if (RegsiteredData->KeyState.KeyToggleState != 0 &&
       RegsiteredData->KeyState.KeyToggleState != InputData->KeyState.KeyToggleState) {
-    return FALSE;    
-  }     
-  
+    return FALSE;
+  }
+
   return TRUE;
 
 }
@@ -68,26 +68,26 @@ GopPrivateMakeCallbackFunction (
   IN VOID           *Context,
   IN EFI_KEY_DATA   *KeyData
   )
-{ 
+{
   LIST_ENTRY                        *Link;
   EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY  *CurrentNotify;
   GOP_PRIVATE_DATA                  *Private = (GOP_PRIVATE_DATA *)Context;
-  
+
   KeyMapMake (KeyData);
 
   for (Link = Private->NotifyList.ForwardLink; Link != &Private->NotifyList; Link = Link->ForwardLink) {
     CurrentNotify = CR (
-                      Link, 
-                      EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY, 
-                      NotifyEntry, 
+                      Link,
+                      EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY,
+                      NotifyEntry,
                       EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY_SIGNATURE
                       );
-    if (GopPrivateIsKeyRegistered (&CurrentNotify->KeyData, KeyData)) { 
-      // We could be called at a high TPL so signal an event to call the registered function 
+    if (GopPrivateIsKeyRegistered (&CurrentNotify->KeyData, KeyData)) {
+      // We could be called at a high TPL so signal an event to call the registered function
       // at a lower TPL.
       gBS->SignalEvent (CurrentNotify->Event);
     }
-  }    
+  }
 }
 
 
@@ -97,7 +97,7 @@ GopPrivateBreakCallbackFunction (
   IN VOID           *Context,
   IN EFI_KEY_DATA   *KeyData
   )
-{ 
+{
   KeyMapBreak (KeyData);
 }
 
@@ -202,7 +202,7 @@ EmuGopSimpleTextInReadKeyStroke (
 
 
 /**
-  SimpleTextIn and SimpleTextInEx Notify Wait Event 
+  SimpleTextIn and SimpleTextInEx Notify Wait Event
 
   @param  Event                 Event whose notification function is being invoked.
   @param  Context               Pointer to GOP_PRIVATE_DATA.
@@ -268,7 +268,7 @@ EmuGopSimpleTextInWaitForKey (
 
 
   @retval EFI_SUCCESS       The device was reset.
-  
+
   @retval EFI_DEVICE_ERROR  The device is not functioning
                             correctly and could not be reset.
 
@@ -296,7 +296,7 @@ EmuGopSimpleTextInExResetEx (
   GOP_PRIVATE_DATA *Private;
 
   Private = GOP_PRIVATE_DATA_FROM_TEXT_IN_EX_THIS (This);
-  
+
   return EFI_SUCCESS;
 }
 
@@ -333,17 +333,17 @@ EmuGopSimpleTextInExResetEx (
   state information, and in those cases the high order bit in the
   respective Toggle and Shift state fields should not be active.
 
-  
+
   @param This     A pointer to the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL instance.
 
   @param KeyData  A pointer to a buffer that is filled in with
                   the keystroke state data for the key that was
                   pressed.
 
-  
+
   @retval EFI_SUCCESS     The keystroke information was
                           returned.
-  
+
   @retval EFI_NOT_READY   There was no keystroke data available.
                           EFI_DEVICE_ERROR The keystroke
                           information was not returned due to
@@ -360,20 +360,20 @@ EmuGopSimpleTextInExReadKeyStrokeEx (
 /*++
 
   Routine Description:
-    Reads the next keystroke from the input device. The WaitForKey Event can 
+    Reads the next keystroke from the input device. The WaitForKey Event can
     be used to test for existance of a keystroke via WaitForEvent () call.
 
   Arguments:
     This       - Protocol instance pointer.
-    KeyData    - A pointer to a buffer that is filled in with the keystroke 
+    KeyData    - A pointer to a buffer that is filled in with the keystroke
                  state data for the key that was pressed.
 
   Returns:
     EFI_SUCCESS           - The keystroke information was returned.
     EFI_NOT_READY         - There was no keystroke data availiable.
-    EFI_DEVICE_ERROR      - The keystroke information was not returned due to 
+    EFI_DEVICE_ERROR      - The keystroke information was not returned due to
                             hardware errors.
-    EFI_INVALID_PARAMETER - KeyData is NULL.                        
+    EFI_INVALID_PARAMETER - KeyData is NULL.
 
 **/
 {
@@ -411,13 +411,13 @@ EmuGopSimpleTextInExReadKeyStrokeEx (
 /**
   The SetState() function allows the input device hardware to
   have state settings adjusted.
-  
+
   @param This           A pointer to the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL instance.
-  
+
   @param KeyToggleState Pointer to the EFI_KEY_TOGGLE_STATE to
                         set the state for the input device.
-  
-  
+
+
   @retval EFI_SUCCESS       The device state was set appropriately.
 
   @retval EFI_DEVICE_ERROR  The device is not functioning
@@ -460,7 +460,7 @@ EmuGopSimpleTextInExSetState (
 
 
 /**
-  SimpleTextIn and SimpleTextInEx Notify Wait Event 
+  SimpleTextIn and SimpleTextInEx Notify Wait Event
 
   @param  Event                 Event whose notification function is being invoked.
   @param  Context               Pointer to GOP_PRIVATE_DATA.
@@ -474,7 +474,7 @@ EmuGopRegisterKeyCallback (
   )
 {
   EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY *ExNotify = (EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY *)Context;
-  
+
   ExNotify->KeyNotificationFn (&ExNotify->KeyData);
 }
 
@@ -483,21 +483,21 @@ EmuGopRegisterKeyCallback (
 /**
   The RegisterKeystrokeNotify() function registers a function
   which will be called when a specified keystroke will occur.
-  
+
   @param This                     A pointer to the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL instance.
-  
+
   @param KeyData                  A pointer to a buffer that is filled in with
                                   the keystroke information for the key that was
                                   pressed.
-  
+
   @param KeyNotificationFunction  Points to the function to be
                                   called when the key sequence
                                   is typed specified by KeyData.
-  
-  
+
+
   @param NotifyHandle             Points to the unique handle assigned to
                                   the registered notification.
-  
+
   @retval EFI_SUCCESS           The device state was set
                                 appropriately.
 
@@ -531,33 +531,33 @@ EmuGopSimpleTextInExRegisterKeyNotify (
   //
   for (Link = Private->NotifyList.ForwardLink; Link != &Private->NotifyList; Link = Link->ForwardLink) {
     CurrentNotify = CR (
-                      Link, 
-                      EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY, 
-                      NotifyEntry, 
+                      Link,
+                      EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY,
+                      NotifyEntry,
                       EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY_SIGNATURE
                       );
-    if (GopPrivateIsKeyRegistered (&CurrentNotify->KeyData, KeyData)) { 
+    if (GopPrivateIsKeyRegistered (&CurrentNotify->KeyData, KeyData)) {
       if (CurrentNotify->KeyNotificationFn == KeyNotificationFunction) {
         *NotifyHandle = CurrentNotify->NotifyHandle;
         return EFI_SUCCESS;
       }
     }
-  }    
-  
+  }
+
   //
   // Allocate resource to save the notification function
-  //  
+  //
   NewNotify = (EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY *) AllocateZeroPool (sizeof (EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY));
   if (NewNotify == NULL) {
     return EFI_OUT_OF_RESOURCES;
   }
 
-  NewNotify->Signature         = EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY_SIGNATURE;     
+  NewNotify->Signature         = EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY_SIGNATURE;
   NewNotify->KeyNotificationFn = KeyNotificationFunction;
   NewNotify->NotifyHandle      = (EFI_HANDLE) NewNotify;
   CopyMem (&NewNotify->KeyData, KeyData, sizeof (KeyData));
   InsertTailList (&Private->NotifyList, &NewNotify->NotifyEntry);
-  
+
   Status = gBS->CreateEvent (
                   EVT_NOTIFY_SIGNAL,
                   TPL_NOTIFY,
@@ -568,24 +568,24 @@ EmuGopSimpleTextInExRegisterKeyNotify (
   ASSERT_EFI_ERROR (Status);
 
 
-  *NotifyHandle = NewNotify->NotifyHandle;  
-  
+  *NotifyHandle = NewNotify->NotifyHandle;
+
   return EFI_SUCCESS;
-  
+
 }
 
 
 /**
   The UnregisterKeystrokeNotify() function removes the
   notification which was previously registered.
-  
+
   @param This               A pointer to the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL instance.
-  
+
   @param NotificationHandle The handle of the notification
                             function being unregistered.
-  
+
   @retval EFI_SUCCESS The device state was set appropriately.
-  
+
   @retval EFI_INVALID_PARAMETER The NotificationHandle is
                                 invalid.
 
@@ -602,14 +602,14 @@ EmuGopSimpleTextInExUnregisterKeyNotify (
     Remove a registered notification function from a particular keystroke.
 
   Arguments:
-    This                    - Protocol instance pointer.    
+    This                    - Protocol instance pointer.
     NotificationHandle      - The handle of the notification function being unregistered.
 
   Returns:
     EFI_SUCCESS             - The notification function was unregistered successfully.
     EFI_INVALID_PARAMETER   - The NotificationHandle is invalid.
-                              
-**/   
+
+**/
 {
   GOP_PRIVATE_DATA                   *Private;
   LIST_ENTRY                         *Link;
@@ -617,30 +617,30 @@ EmuGopSimpleTextInExUnregisterKeyNotify (
 
   if (NotificationHandle == NULL) {
     return EFI_INVALID_PARAMETER;
-  } 
+  }
 
   if (((EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY *) NotificationHandle)->Signature != EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY_SIGNATURE) {
     return EFI_INVALID_PARAMETER;
-  } 
+  }
 
   Private = GOP_PRIVATE_DATA_FROM_TEXT_IN_EX_THIS (This);
 
   for (Link = Private->NotifyList.ForwardLink; Link != &Private->NotifyList; Link = Link->ForwardLink) {
     CurrentNotify = CR (
-                      Link, 
-                      EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY, 
-                      NotifyEntry, 
+                      Link,
+                      EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY,
+                      NotifyEntry,
                       EMU_GOP_SIMPLE_TEXTIN_EX_NOTIFY_SIGNATURE
-                      );       
+                      );
     if (CurrentNotify->NotifyHandle == NotificationHandle) {
       //
       // Remove the notification function from NotifyList and free resources
       //
-      RemoveEntryList (&CurrentNotify->NotifyEntry);    
-      
+      RemoveEntryList (&CurrentNotify->NotifyEntry);
+
       gBS->CloseEvent (CurrentNotify->Event);
 
-      gBS->FreePool (CurrentNotify);            
+      gBS->FreePool (CurrentNotify);
       return EFI_SUCCESS;
     }
   }
@@ -657,7 +657,7 @@ EmuGopSimpleTextInExUnregisterKeyNotify (
   Initialize SimplelTextIn and SimpleTextInEx protocols in the Private
   context structure.
 
-  @param  Private               Context structure to fill in. 
+  @param  Private               Context structure to fill in.
 
   @return EFI_SUCCESS           Initialization was a success
 
@@ -683,12 +683,12 @@ EmuGopInitializeSimpleTextInForWindow (
                   &Private->SimpleTextIn.WaitForKey
                   );
   ASSERT_EFI_ERROR (Status);
-  
-  
+
+
   //
   // Initialize Simple Text In Ex
   //
-  
+
   Private->SimpleTextInEx.Reset               = EmuGopSimpleTextInExResetEx;
   Private->SimpleTextInEx.ReadKeyStrokeEx     = EmuGopSimpleTextInExReadKeyStrokeEx;
   Private->SimpleTextInEx.SetState            = EmuGopSimpleTextInExSetState;
@@ -696,7 +696,7 @@ EmuGopInitializeSimpleTextInForWindow (
   Private->SimpleTextInEx.UnregisterKeyNotify = EmuGopSimpleTextInExUnregisterKeyNotify;
 
   Private->SimpleTextInEx.Reset (&Private->SimpleTextInEx, FALSE);
-  
+
   InitializeListHead (&Private->NotifyList);
 
   Status = gBS->CreateEvent (
@@ -723,17 +723,17 @@ EmuGopInitializeSimpleTextInForWindow (
 //
 
 
-/**                                                                 
+/**
   Resets the pointer device hardware.
-    
+
   @param  This                  A pointer to the EFI_SIMPLE_POINTER_PROTOCOL
-                                instance.                                   
+                                instance.
   @param  ExtendedVerification  Indicates that the driver may perform a more exhaustive
-                                verification operation of the device during reset.                                       
-                                
+                                verification operation of the device during reset.
+
   @retval EFI_SUCCESS           The device was reset.
-  @retval EFI_DEVICE_ERROR      The device is not functioning correctly and could not be reset.  
-                                   
+  @retval EFI_DEVICE_ERROR      The device is not functioning correctly and could not be reset.
+
 **/
 EFI_STATUS
 EFIAPI
@@ -770,19 +770,19 @@ EmuGopSimplePointerReset (
 }
 
 
-/**                                                                 
+/**
   Retrieves the current state of a pointer device.
-    
+
   @param  This                  A pointer to the EFI_SIMPLE_POINTER_PROTOCOL
-                                instance.                                   
+                                instance.
   @param  State                 A pointer to the state information on the pointer device.
-                                
+
   @retval EFI_SUCCESS           The state of the pointer device was returned in State.
   @retval EFI_NOT_READY         The state of the pointer device has not changed since the last call to
-                                GetState().                                                           
+                                GetState().
   @retval EFI_DEVICE_ERROR      A device error occurred while attempting to retrieve the pointer device's
-                                current state.                                                           
-                                   
+                                current state.
+
 **/
 EFI_STATUS
 EFIAPI
@@ -816,7 +816,7 @@ EmuGopSimplePointerGetState (
 
 
 /**
-  SimplePointer Notify Wait Event 
+  SimplePointer Notify Wait Event
 
   @param  Event                 Event whose notification function is being invoked.
   @param  Context               Pointer to GOP_PRIVATE_DATA.
@@ -858,11 +858,11 @@ EmuGopSimplePointerWaitForInput (
 
 
 /**
-  SimplePointer constructor 
+  SimplePointer constructor
 
-  @param  Private Context structure to fill in.      
+  @param  Private Context structure to fill in.
 
-  @retval EFI_SUCCESS Constructor had success        
+  @retval EFI_SUCCESS Constructor had success
 
 **/
 EFI_STATUS
index 7f4333d1693a49e0710c4d8b2ef0d643dfd2f991..fff07d57fdbfcc9571873f515b42547e29db211d 100644 (file)
@@ -88,7 +88,7 @@ EmuGopQuerytMode (
 
 
 /**
-  Set the video device into the specified mode and clears the visible portions of 
+  Set the video device into the specified mode and clears the visible portions of
   the output display to black.
 
   @param  This              The EFI_GRAPHICS_OUTPUT_PROTOCOL instance.
@@ -137,8 +137,8 @@ EmuGopSetMode (
 
     Private->HardwareNeedsStarting = FALSE;
   }
-  
-  
+
+
   Status = Private->EmuGraphicsWindow->Size(
                             Private->EmuGraphicsWindow,
                             ModeData->HorizontalResolution,
@@ -168,7 +168,7 @@ EmuGopSetMode (
 
 /**
   Blt a rectangle of pixels on the graphics screen. Blt stands for BLock Transfer.
-  
+
   @param  This         Protocol instance pointer.
   @param  BltBuffer    Buffer containing data to blit into video buffer. This
                        buffer has a size of Width*Height*sizeof(EFI_GRAPHICS_OUTPUT_BLT_PIXEL)
@@ -302,12 +302,12 @@ EmuGopStartWindow (
   Status = Private->EmuIoThunk->Open (Private->EmuIoThunk);
   if (!EFI_ERROR (Status)) {
     Private->EmuGraphicsWindow = Private->EmuIoThunk->Interface;
-    
+
     // Register callback to support RegisterKeyNotify()
     Status  = Private->EmuGraphicsWindow->RegisterKeyNotify (
-                                            Private->EmuGraphicsWindow, 
-                                            GopPrivateMakeCallbackFunction, 
-                                            GopPrivateBreakCallbackFunction, 
+                                            Private->EmuGraphicsWindow,
+                                            GopPrivateMakeCallbackFunction,
+                                            GopPrivateBreakCallbackFunction,
                                             Private
                                             );
     ASSERT_EFI_ERROR (Status);
@@ -369,7 +369,7 @@ EmuGopDestructor (
   )
 {
   EFI_STATUS  Status;
-  
+
   Status = EFI_SUCCESS;
   if (!Private->HardwareNeedsStarting) {
     Status = Private->EmuIoThunk->Close (Private->EmuIoThunk);
index fa6404a81ad77055a420d123e1a2a7ae27e01927..987658898b2e8c6e5ff4edba332a71a930069bc9 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
 \r
 Copyright (c) 2006, 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
+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 551b54332c9c92b2c4db8c5473f1de350d50a1a4..0af4860e4f59f5f82aa94c5fe2852a4f03264619 100644 (file)
@@ -1,7 +1,7 @@
 /*++ @file\r
   Produce Simple File System abstractions for directories on your PC using Posix APIs.\r
-  The configuration of what devices to mount or emulate comes from UNIX \r
-  environment variables. The variables must be visible to the Microsoft* \r
+  The configuration of what devices to mount or emulate comes from UNIX\r
+  environment variables. The variables must be visible to the Microsoft*\r
   Developer Studio for them to work.\r
 \r
 Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
@@ -120,7 +120,7 @@ EmuSimpleFileSystemClose (
   }\r
 \r
   gBS->RestoreTPL (OldTpl);\r
-  \r
+\r
   return Status;\r
 }\r
 \r
@@ -129,7 +129,7 @@ EmuSimpleFileSystemClose (
   Close and delete the file handle.\r
 \r
   @param  This                     Protocol instance pointer.\r
-                                   \r
+\r
   @retval EFI_SUCCESS              The file was closed and deleted.\r
   @retval EFI_WARN_DELETE_FAILURE  The handle was closed but the file was not deleted.\r
 \r
@@ -149,7 +149,7 @@ EmuSimpleFileSystemDelete (
   }\r
 \r
   OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
-  \r
+\r
   PrivateFile = EMU_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   Status = PrivateFile->Io->Delete (PrivateFile->Io);\r
@@ -192,14 +192,14 @@ EmuSimpleFileSystemRead (
   if (This == NULL || BufferSize == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   if ((*BufferSize != 0) && (Buffer == NULL)) {\r
     // Buffer can be NULL  if *BufferSize is zero\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
   OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
-  \r
+\r
   PrivateFile = EMU_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   Status = PrivateFile->Io->Read (PrivateFile->Io, BufferSize, Buffer);\r
@@ -259,7 +259,7 @@ EmuSimpleFileSystemWrite (
 \r
   @param  This            Protocol instance pointer.\r
   @param  Position        Byte position from the start of the file.\r
-                          \r
+\r
   @retval EFI_SUCCESS     Position was updated.\r
   @retval EFI_UNSUPPORTED Seek request for non-zero is not valid on open.\r
 \r
@@ -280,7 +280,7 @@ EmuSimpleFileSystemGetPosition (
   }\r
 \r
   OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
-  \r
+\r
   PrivateFile   = EMU_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   Status = PrivateFile->Io->GetPosition (PrivateFile->Io, Position);\r
@@ -296,7 +296,7 @@ EmuSimpleFileSystemGetPosition (
 \r
   @param  This            Protocol instance pointer.\r
   @param  Position        Byte position from the start of the file.\r
-                          \r
+\r
   @retval EFI_SUCCESS     Position was updated.\r
   @retval EFI_UNSUPPORTED Seek request for non-zero is not valid on open..\r
 \r
@@ -317,7 +317,7 @@ EmuSimpleFileSystemSetPosition (
   }\r
 \r
   OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
-  \r
+\r
   PrivateFile = EMU_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   Status = PrivateFile->Io->SetPosition (PrivateFile->Io, Position);\r
@@ -363,7 +363,7 @@ EmuSimpleFileSystemGetInfo (
   }\r
 \r
   OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
-    \r
+\r
   PrivateFile = EMU_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   Status = PrivateFile->Io->GetInfo (PrivateFile->Io, InformationType, BufferSize, Buffer);\r
@@ -411,12 +411,12 @@ EmuSimpleFileSystemSetInfo (
   }\r
 \r
   OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
-  \r
+\r
   PrivateFile               = EMU_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   Status = PrivateFile->Io->SetInfo (PrivateFile->Io, InformationType, BufferSize, Buffer);\r
 \r
-  gBS->RestoreTPL (OldTpl);  \r
+  gBS->RestoreTPL (OldTpl);\r
   return Status;\r
 }\r
 \r
@@ -451,7 +451,7 @@ EmuSimpleFileSystemFlush (
   }\r
 \r
   OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
-  \r
+\r
   PrivateFile = EMU_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   Status = PrivateFile->Io->Flush (PrivateFile->Io);\r
@@ -503,7 +503,7 @@ EmuSimpleFileSystemOpenVolume (
   if (PrivateFile == NULL) {\r
     goto Done;\r
   }\r
-  \r
+\r
   PrivateFile->Signature            = EMU_EFI_FILE_PRIVATE_SIGNATURE;\r
   PrivateFile->IoThunk              = Private->IoThunk;\r
   PrivateFile->SimpleFileSystem     = This;\r
@@ -525,7 +525,7 @@ EmuSimpleFileSystemOpenVolume (
   if (EFI_ERROR (Status)) {\r
     goto Done;\r
   }\r
-  \r
+\r
   AddUnicodeString2 (\r
     "eng",\r
     gEmuSimpleFileSystemComponentName.SupportedLanguages,\r
@@ -548,7 +548,7 @@ Done:
     if (PrivateFile) {\r
       gBS->FreePool (PrivateFile);\r
     }\r
-    \r
+\r
     *Root = NULL;\r
   }\r
 \r
@@ -558,33 +558,33 @@ Done:
 }\r
 \r
 /**\r
-  Tests to see if this driver supports a given controller. If a child device is provided, \r
+  Tests to see if this driver supports a given controller. 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
-  This function checks to see if the driver specified by This supports the device specified by \r
-  ControllerHandle. Drivers will typically use the device path attached to \r
-  ControllerHandle and/or the services from the bus I/O abstraction attached to \r
-  ControllerHandle to determine if the driver supports ControllerHandle. This function \r
-  may be called many times during platform initialization. In order to reduce boot times, the tests \r
-  performed by this function must be very small, and take as little time as possible to execute. This \r
-  function must not change the state of any hardware devices, and this function must be aware that the \r
-  device specified by ControllerHandle may already be managed by the same driver or a \r
-  different driver. This function must match its calls to AllocatePages() with FreePages(), \r
-  AllocatePool() with FreePool(), and OpenProtocol() with CloseProtocol().  \r
-  Because ControllerHandle may have been previously started by the same driver, if a protocol is \r
-  already in the opened state, then it must not be closed with CloseProtocol(). This is required \r
+  This function checks to see if the driver specified by This supports the device specified by\r
+  ControllerHandle. Drivers will typically use the device path attached to\r
+  ControllerHandle and/or the services from the bus I/O abstraction attached to\r
+  ControllerHandle to determine if the driver supports ControllerHandle. This function\r
+  may be called many times during platform initialization. In order to reduce boot times, the tests\r
+  performed by this function must be very small, and take as little time as possible to execute. This\r
+  function must not change the state of any hardware devices, and this function must be aware that the\r
+  device specified by ControllerHandle may already be managed by the same driver or a\r
+  different driver. This function must match its calls to AllocatePages() with FreePages(),\r
+  AllocatePool() with FreePool(), and OpenProtocol() with CloseProtocol().\r
+  Because ControllerHandle may have been previously started by the same driver, if a protocol is\r
+  already in the opened state, then it must not be closed with CloseProtocol(). This is required\r
   to guarantee the state of ControllerHandle is not modified by this function.\r
 \r
   @param[in]  This                 A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
-  @param[in]  ControllerHandle     The handle of the controller to test. This handle \r
-                                   must support a protocol interface that supplies \r
+  @param[in]  ControllerHandle     The handle of the controller to test. 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.  This \r
-                                   parameter is ignored by device drivers, and is optional for bus \r
-                                   drivers. For bus drivers, if this parameter is not NULL, then \r
-                                   the bus driver must determine if the bus controller specified \r
-                                   by ControllerHandle and the child controller specified \r
-                                   by RemainingDevicePath are both supported by this \r
+  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path.  This\r
+                                   parameter is ignored by device drivers, and is optional for bus\r
+                                   drivers. For bus drivers, if this parameter is not NULL, then\r
+                                   the bus driver must determine if the bus controller specified\r
+                                   by ControllerHandle and the child controller specified\r
+                                   by RemainingDevicePath are both supported by this\r
                                    bus driver.\r
 \r
   @retval EFI_SUCCESS              The device specified by ControllerHandle and\r
@@ -652,28 +652,28 @@ EmuSimpleFileSystemDriverBindingSupported (
   Starts a device controller or a bus controller.\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, \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,\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.\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.  This \r
-                                   parameter is ignored by device drivers, and is optional for bus \r
-                                   drivers. For a bus driver, if this parameter is NULL, then handles \r
-                                   for all the children of Controller are created by this driver.  \r
-                                   If this parameter is not NULL and the first Device Path Node is \r
-                                   not the End of Device Path Node, then only the handle for the \r
-                                   child device specified by the first Device Path Node of \r
+  @param[in]  RemainingDevicePath  A pointer to the remaining portion of a device path.  This\r
+                                   parameter is ignored by device drivers, and is optional for bus\r
+                                   drivers. For a bus driver, if this parameter is NULL, then handles\r
+                                   for all the children of Controller are created by this driver.\r
+                                   If this parameter is not NULL and the first Device Path Node is\r
+                                   not the End of Device Path Node, then only the handle for the\r
+                                   child device specified by the first Device Path Node of\r
                                    RemainingDevicePath is created by this driver.\r
-                                   If the first Device Path Node of RemainingDevicePath is \r
+                                   If the first Device Path Node of RemainingDevicePath is\r
                                    the End of Device Path Node, no child handle is created by this\r
                                    driver.\r
 \r
@@ -733,7 +733,7 @@ EmuSimpleFileSystemDriverBindingStart (
   Private->Signature = EMU_SIMPLE_FILE_SYSTEM_PRIVATE_SIGNATURE;\r
   Private->IoThunk   = EmuIoThunk;\r
   Private->Io        = EmuIoThunk->Interface;\r
-  \r
+\r
   Private->SimpleFileSystem.Revision    = EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_REVISION;\r
   Private->SimpleFileSystem.OpenVolume  = EmuSimpleFileSystemOpenVolume;\r
 \r
@@ -746,7 +746,7 @@ EmuSimpleFileSystemDriverBindingStart (
     EmuIoThunk->ConfigString,\r
     TRUE\r
     );\r
-    \r
+\r
   AddUnicodeString2 (\r
     "en",\r
     gEmuSimpleFileSystemComponentName2.SupportedLanguages,\r
@@ -767,9 +767,9 @@ Done:
       if (Private->ControllerNameTable != NULL) {\r
         FreeUnicodeStringTable (Private->ControllerNameTable);\r
       }\r
-      \r
+\r
       gBS->FreePool (Private);\r
-    \r
+\r
     }\r
 \r
     gBS->CloseProtocol (\r
@@ -786,10 +786,10 @@ Done:
 \r
 /**\r
   Stops a device controller or a bus controller.\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
+\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
@@ -797,13 +797,13 @@ Done:
      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
@@ -885,9 +885,9 @@ EFI_DRIVER_BINDING_PROTOCOL gEmuSimpleFileSystemDriverBinding = {
 /**\r
   The user Entry Point for module EmuSimpleFileSystem. 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 5a1182c2addece56696bca063940a2fbdd51658a..06369ca3e82d3eb6c104f897eec5ee33d2a6b848 100644 (file)
@@ -1,17 +1,17 @@
 /*++ @file\r
   Produce Simple File System abstractions for a directory on your PC using Unix APIs.\r
-  The configuration of what devices to mount or emulate comes from  \r
+  The configuration of what devices to mount or emulate comes from\r
   environment variables.\r
 \r
 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
@@ -77,4 +77,4 @@ typedef struct {
 \r
 \r
 \r
-#endif \r
+#endif\r
index 63bafa870daad6e266768927e25b72e3e44e69cf..6663d6f3b0aa251b1d2f6f078f4768f7e961bc53 100644 (file)
@@ -2,7 +2,7 @@
 # Simple filesystem driver\r
 #\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 4432218b511e0500ba3773ac82c89af3341d2d46..7f8a643e8a3abf74a074b223c23f5acc8078aad6 100644 (file)
@@ -24,20 +24,20 @@ Abstract:
 \r
 \r
 EFI_SIMPLE_NETWORK_PROTOCOL gEmuSnpTemplate = {\r
-  EFI_SIMPLE_NETWORK_PROTOCOL_REVISION,  \r
-  EmuSnpStart,             \r
-  EmuSnpStop,              \r
-  EmuSnpInitialize,       \r
-  EmuSnpReset,              \r
-  EmuSnpShutdown,            \r
-  EmuSnpReceiveFilters,          \r
-  EmuSnpStationAddress,          \r
-  EmuSnpStatistics,            \r
-  EmuSnpMcastIptoMac,          \r
-  EmuSnpNvdata,              \r
-  EmuSnpGetStatus,            \r
-  EmuSnpTransmit,            \r
-  EmuSnpReceive,              \r
+  EFI_SIMPLE_NETWORK_PROTOCOL_REVISION,\r
+  EmuSnpStart,\r
+  EmuSnpStop,\r
+  EmuSnpInitialize,\r
+  EmuSnpReset,\r
+  EmuSnpShutdown,\r
+  EmuSnpReceiveFilters,\r
+  EmuSnpStationAddress,\r
+  EmuSnpStatistics,\r
+  EmuSnpMcastIptoMac,\r
+  EmuSnpNvdata,\r
+  EmuSnpGetStatus,\r
+  EmuSnpTransmit,\r
+  EmuSnpReceive,\r
   NULL,                     // WaitForPacket\r
   NULL                      // Mode\r
  };\r
@@ -94,8 +94,8 @@ EmuSnpStop (
 \r
 \r
 /**\r
-  Resets a network adapter and allocates the transmit and receive buffers \r
-  required by the network interface; optionally, also requests allocation \r
+  Resets a network adapter and allocates the transmit and receive buffers\r
+  required by the network interface; optionally, also requests allocation\r
   of additional transmit and receive buffers.\r
 \r
   @param  This              Protocol instance pointer.\r
@@ -131,8 +131,8 @@ EmuSnpInitialize (
 }\r
 \r
 /**\r
-  Resets a network adapter and re-initializes it with the parameters that were \r
-  provided in the previous call to Initialize().  \r
+  Resets a network adapter and re-initializes it with the parameters that were\r
+  provided in the previous call to Initialize().\r
 \r
   @param  This                 Protocol instance pointer.\r
   @param  ExtendedVerification Indicates that the driver may perform a more\r
@@ -159,7 +159,7 @@ EmuSnpReset (
 }\r
 \r
 /**\r
-  Resets a network adapter and leaves it in a state that is safe for \r
+  Resets a network adapter and leaves it in a state that is safe for\r
   another driver to initialize.\r
 \r
   @param  This Protocol instance pointer.\r
@@ -334,7 +334,7 @@ EmuSnpMcastIptoMac (
 \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         Protocol instance pointer.\r
@@ -370,7 +370,7 @@ EmuSnpNvdata (
 \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            Protocol instance pointer.\r
@@ -568,8 +568,8 @@ EmuSnpDriverBindingSupported (
       }\r
     }\r
   }\r
-  \r
-  \r
+\r
+\r
   //\r
   // Open the IO Abstraction(s) needed to perform the supported test\r
   //\r
@@ -602,8 +602,8 @@ EmuSnpDriverBindingSupported (
         This->DriverBindingHandle,\r
         ControllerHandle\r
         );\r
-        \r
-        \r
+\r
+\r
   //\r
   // Open the EFI Device Path protocol needed to perform the supported test\r
   //\r
@@ -724,7 +724,7 @@ EmuSnpDriverBindingStart (
   Private->Snp.Mode     = &Private->Mode;\r
   Private->ControllerNameTable = NULL;\r
 \r
-  \r
+\r
   Status = Private->Io->CreateMapping (Private->Io, &Private->Mode);\r
   if (EFI_ERROR (Status)) {\r
     goto Done;\r
@@ -760,7 +760,7 @@ EmuSnpDriverBindingStart (
     EmuIoThunk->ConfigString,\r
     TRUE\r
     );\r
-    \r
+\r
   AddUnicodeString2 (\r
     "en",\r
     gEmuSnpDriverComponentName2.SupportedLanguages,\r
@@ -819,7 +819,7 @@ Done:
   restrictions for this service. DisconnectController()\r
   must follow these calling restrictions. If any other agent wishes\r
   to call Stop() it must also follow these calling restrictions.\r
-  \r
+\r
   @param  This              Protocol instance pointer.\r
   @param  ControllerHandle  Handle of device to stop driver on\r
   @param  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
@@ -867,8 +867,8 @@ EmuSnpDriverBindingStop (
   }\r
 \r
   ASSERT (NumberOfChildren == 1);\r
-  \r
-  \r
+\r
+\r
   //\r
   // Get our context back.\r
   //\r
index 21bfc42c143439118ce7a089766b75fd36511580..e2b3c303bfabac9749346a7332c33be2c1c4495e 100644 (file)
@@ -56,7 +56,7 @@ typedef struct {
 \r
   EFI_SIMPLE_NETWORK_PROTOCOL Snp;\r
   EFI_SIMPLE_NETWORK_MODE     Mode;\r
-  \r
+\r
   EFI_UNICODE_STRING_TABLE    *ControllerNameTable;\r
 \r
 } EMU_SNP_PRIVATE_DATA;\r
@@ -124,7 +124,7 @@ EmuSnpDriverBindingStart (
   restrictions for this service. DisconnectController()\r
   must follow these calling restrictions. If any other agent wishes\r
   to call Stop() it must also follow these calling restrictions.\r
-  \r
+\r
   @param  This              Protocol instance pointer.\r
   @param  ControllerHandle  Handle of device to stop driver on\r
   @param  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
@@ -156,7 +156,7 @@ EFIAPI
 EmuSnpStart(\r
   IN EFI_SIMPLE_NETWORK_PROTOCOL*    This\r
   );\r
-  \r
+\r
 /**\r
   Changes the state of a network interface from "started" to "stopped".\r
 \r
@@ -170,10 +170,10 @@ EFIAPI
 EmuSnpStop(\r
   IN EFI_SIMPLE_NETWORK_PROTOCOL*    This\r
   );\r
-  \r
+\r
 /**\r
-  Resets a network adapter and allocates the transmit and receive buffers \r
-  required by the network interface; optionally, also requests allocation \r
+  Resets a network adapter and allocates the transmit and receive buffers\r
+  required by the network interface; optionally, also requests allocation\r
   of additional transmit and receive buffers.\r
 \r
   @param  This              Protocol instance pointer.\r
@@ -198,10 +198,10 @@ EmuSnpInitialize(
   IN UINTN              ExtraRxBufferSize OPTIONAL,\r
   IN UINTN              ExtraTxBufferSize OPTIONAL\r
   );\r
-  \r
+\r
 /**\r
-  Resets a network adapter and re-initializes it with the parameters that were \r
-  provided in the previous call to Initialize().  \r
+  Resets a network adapter and re-initializes it with the parameters that were\r
+  provided in the previous call to Initialize().\r
 \r
   @param  This                 Protocol instance pointer.\r
   @param  ExtendedVerification Indicates that the driver may perform a more\r
@@ -219,7 +219,7 @@ EmuSnpReset(
   );\r
 \r
 /**\r
-  Resets a network adapter and leaves it in a state that is safe for \r
+  Resets a network adapter and leaves it in a state that is safe for\r
   another driver to initialize.\r
 \r
   @param  This Protocol instance pointer.\r
@@ -311,10 +311,10 @@ EmuSnpStatistics(
   IN OUT UINTN*            StatisticsSize OPTIONAL,\r
   OUT EFI_NETWORK_STATISTICS*      StatisticsTable OPTIONAL\r
   );\r
-  \r
+\r
 /**\r
   Converts a multicast IP address to a multicast HW MAC address.\r
-  \r
+\r
   @param  This  Protocol instance pointer.\r
   @param  Ipv6  Set to TRUE if the multicast IP address is IPv6 [RFC 2460]. Set\r
                 to FALSE if the multicast IP address is IPv4 [RFC 791].\r
@@ -341,7 +341,7 @@ EmuSnpMcastIptoMac(
   );\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         Protocol instance pointer.\r
@@ -367,7 +367,7 @@ EmuSnpNvdata(
   );\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            Protocol instance pointer.\r
index a0661c8726ea6a3a37a8a481cfdadca935aca2a4..3a421bfdf393840ace8d10c6a7a433d804433ca5 100644 (file)
@@ -2,20 +2,20 @@
 \r
 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
 #include <PiDxe.h>\r
 \r
 #include <Protocol/DevicePath.h>\r
-#include <Protocol/EmuThunk.h> \r
+#include <Protocol/EmuThunk.h>\r
 \r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiLib.h>\r
@@ -69,7 +69,7 @@ Arguments:
   (Standard EFI Image entry - EFI_IMAGE_ENTRY_POINT)\r
 \r
 Returns:\r
-  EFI_SUCEESS - UnixThunk protocol is added or error status from \r
+  EFI_SUCEESS - UnixThunk protocol is added or error status from\r
                 gBS->InstallMultiProtocolInterfaces().\r
 \r
 **/\r
index 394d28091210cb96573d5ce11f4287a07002b98e..4e798eef8d4b6c7b8b541f2ecec86e614d68939f 100644 (file)
@@ -2,7 +2,7 @@
 #   A DXE driver to produce EMU_THUNK_PROTOCOL\r
 #\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 b5f719227a7fafef1803990e3f02e475dfbcd5e3..f005c792cc9b9ff4dc0c4f2c6b0b7fc6feca5f64 100644 (file)
@@ -3,9 +3,9 @@
 # This is the Emu Emulation Environment Platform\r
 #\r
 # Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 #\r
-#    This program and the accompanying materials are licensed and made available \r
+#    This program and the accompanying materials are licensed and made available\r
 #    under the terms and conditions of the BSD License which accompanies this distribution.\r
 #    The full text of the license may be found at http://opensource.org/licenses/bsd-license.php\r
 #    THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES\r
@@ -60,7 +60,7 @@
   gEmulatorPkgTokenSpaceGuid.PcdEmuFlashFvRecoverySize|0x0|UINT32|0x00001011\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareFdSize|0x0|UINT32|0x00001012\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareBlockSize|0|UINT32|0x00001013\r
\r
+\r
   ## Number of Application Processors (APs) in the system 0 means Uniprocessor mode\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuApCount|L"0"|VOID*|0x00001019\r
 \r
   ## Size of the packet filter\r
   gEmulatorPkgTokenSpaceGuid.PcdNetworkPacketFilterSize|524288|UINT32|0x0000101c\r
 \r
-  \r
 \r
-[PcdsFixedAtBuild, PcdsPatchableInModule] \r
+\r
+[PcdsFixedAtBuild, PcdsPatchableInModule]\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuBootMode|1|UINT32|0x00001006\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareVolume|L"..\\Fv\\Fv_Recovery.fd"|VOID*|0x00001009\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuMemorySize|L"64!64"|VOID*|0x0000100c\r
-  \r
+\r
   #\r
   # filename[:[R|F][O|W]][:BlockSize]\r
   # filename can be a device node, like /dev/disk1\r
   #   Default is Fixed Media, Writable\r
   # For a file the default BlockSize is 512, and can be overridden via BlockSize,\r
   #  for example 2048 for an ISO CD image. The block size for a device comes from\r
-  #  the device and is not configurable. \r
-  # Device Size comes from file or device. \r
+  #  the device and is not configurable.\r
+  # Device Size comes from file or device.\r
   # On Mac OS X you can use Disk Utility to create .dmg files and mount them like disks\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuVirtualDisk|L"disk.dmg:FW"|VOID*|0x00001001\r
-  \r
+\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window"|VOID*|0x00001018\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuFileSystem|L".!../../../../../EdkShellBinPkg/bin/ia32/Apps"|VOID*|0x00001004\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuSerialPort|L"/dev/ttyS0"|VOID*|0x00001002\r
index ec9fe5c0b73488c7f51994c18a45738bfe2d5e4a..91d1197b4fdf4dacb52b7582c57e651e209dbca2 100644 (file)
@@ -2,13 +2,13 @@
 \r
 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
@@ -35,7 +35,7 @@ Routine Description:
 Arguments:\r
   FfsHeader   - Ffs Header availible to every PEIM\r
   PeiServices - General purpose services available to every PEIM.\r
-    \r
+\r
 Returns:\r
   None\r
 \r
@@ -90,8 +90,8 @@ Returns:
           EFI_RESOURCE_FIRMWARE_DEVICE,\r
           (EFI_RESOURCE_ATTRIBUTE_PRESENT | EFI_RESOURCE_ATTRIBUTE_INITIALIZED | EFI_RESOURCE_ATTRIBUTE_UNCACHEABLE),\r
           FdBase,\r
-          ( \r
-            FvHeader->FvLength + \r
+          (\r
+            FvHeader->FvLength +\r
             PcdGet32 (PcdFlashNvStorageVariableSize) +\r
             PcdGet32 (PcdFlashNvStorageFtwWorkingSize) +\r
             PcdGet32 (PcdFlashNvStorageFtwSpareSize) +\r
@@ -103,7 +103,7 @@ Returns:
         // Hard code the address of the spare block and variable services.\r
         //  Assume it's a hard coded offset from FV0 in FD0.\r
         //\r
-        FdSize  = \r
+        FdSize  =\r
           PcdGet32 (PcdFlashNvStorageVariableSize) +\r
           PcdGet32 (PcdFlashNvStorageFtwWorkingSize) +\r
           PcdGet32 (PcdFlashNvStorageFtwSpareSize) +\r
index 368f947d731a5db9d24a0ffe4aca3b6276c21fb2..38483918e5004919eea5149e8fece4906f820de7 100644 (file)
@@ -4,7 +4,7 @@
 # This PEIM will produce the HOB to describe Firmware Volume, Firmware Devices\r
 #  on the Emu emulator.\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 94c1874193c350abd3c3526b74fc121c506bae41..5d8bff8a7925a6391b9234835be5d98816472fcc 100644 (file)
@@ -3,13 +3,13 @@
 \r
 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
@@ -37,11 +37,11 @@ PeimInitializeFlashMap (
 \r
 Routine Description:\r
   Build GUIDed HOBs for platform specific flash map\r
-  \r
+\r
 Arguments:\r
   FfsHeader   - A pointer to the EFI_FFS_FILE_HEADER structure.\r
   PeiServices - General purpose services available to every PEIM.\r
-    \r
+\r
 Returns:\r
   EFI_STATUS\r
 \r
@@ -74,7 +74,7 @@ Returns:
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   PcdSet64 (PcdFlashNvStorageVariableBase64, PcdGet64 (PcdEmuFlashNvStorageVariableBase) + FdFixUp);\r
   PcdSet64 (PcdFlashNvStorageFtwWorkingBase64, PcdGet64 (PcdEmuFlashNvStorageFtwWorkingBase) + FdFixUp);\r
   PcdSet64 (PcdFlashNvStorageFtwSpareBase64, PcdGet64 (PcdEmuFlashNvStorageFtwSpareBase) + FdFixUp);\r
index 15a872a264ca27e365af642ddb1df3d85c4a4771..1028e5f5799217dbec0afcf293a9f6f9c8a6e9e3 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 # This module installs FlashMap PPI which is used to get flash layout information.\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 a95b180adb068a5c96f6d8ead0ac85595b4d6553..9513d05bed594774c9c89948efc5999e6b19460e 100644 (file)
@@ -2,13 +2,13 @@
 \r
 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
@@ -90,14 +90,14 @@ Routine Description:
   date items to there virtual address.\r
 \r
   mFvbModuleGlobal->FvInstance[FVB_PHYSICAL]  - Physical copy of instance data\r
-  mFvbModuleGlobal->FvInstance[FVB_VIRTUAL]   - Virtual pointer to common \r
+  mFvbModuleGlobal->FvInstance[FVB_VIRTUAL]   - Virtual pointer to common\r
                                                 instance data.\r
 \r
 Arguments:\r
 \r
   (Standard EFI notify event - EFI_EVENT_NOTIFY)\r
 \r
-Returns: \r
+Returns:\r
 \r
   None\r
 \r
@@ -146,7 +146,7 @@ Arguments:
   FwhInstance           - The EFI_FW_VOL_INSTANCE fimrware instance structure\r
   Virtual               - Whether CPU is in virtual or physical mode\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - Successfully returns\r
   EFI_INVALID_PARAMETER - Instance not found\r
 \r
@@ -190,14 +190,14 @@ Routine Description:
 Arguments:\r
   Instance              - The FV instance whose base address is going to be\r
                           returned\r
-  Address               - Pointer to a caller allocated EFI_PHYSICAL_ADDRESS \r
+  Address               - Pointer to a caller allocated EFI_PHYSICAL_ADDRESS\r
                           that on successful return, contains the base address\r
-                          of the firmware volume. \r
+                          of the firmware volume.\r
   Global                - Pointer to ESAL_FWB_GLOBAL that contains all\r
                           instance data\r
   Virtual               - Whether CPU is in virtual or physical mode\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - Successfully returns\r
   EFI_INVALID_PARAMETER - Instance not found\r
 \r
@@ -230,14 +230,14 @@ Routine Description:
   resulting attributes in output parameter\r
 \r
 Arguments:\r
-  Instance              - The FV instance whose attributes is going to be \r
+  Instance              - The FV instance whose attributes is going to be\r
                           returned\r
   Attributes            - Output buffer which contains attributes\r
   Global                - Pointer to ESAL_FWB_GLOBAL that contains all\r
                           instance data\r
   Virtual               - Whether CPU is in virtual or physical mode\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - Successfully returns\r
   EFI_INVALID_PARAMETER - Instance not found\r
 \r
@@ -274,7 +274,7 @@ Routine Description:
 Arguments:\r
   Instance              - The FV instance which the Lba belongs to\r
   Lba                   - The logical block address\r
-  LbaAddress            - On output, contains the physical starting address \r
+  LbaAddress            - On output, contains the physical starting address\r
                           of the Lba\r
   LbaLength             - On output, contains the length of the block\r
   NumOfBlocks           - A pointer to a caller allocated UINTN in which the\r
@@ -285,7 +285,7 @@ Arguments:
                           instance data\r
   Virtual               - Whether CPU is in virtual or physical mode\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - Successfully returns\r
   EFI_INVALID_PARAMETER - Instance not found\r
 \r
@@ -377,14 +377,14 @@ Arguments:
                           instance data\r
   Virtual               - Whether CPU is in virtual or physical mode\r
 \r
-Returns: \r
-  EFI_SUCCESS           - The firmware volume was read successfully and \r
+Returns:\r
+  EFI_SUCCESS           - The firmware volume was read successfully and\r
                           contents are in Buffer\r
   EFI_BAD_BUFFER_SIZE   - Read attempted across a LBA boundary. On output,\r
                           NumBytes contains the total number of bytes returned\r
                           in Buffer\r
   EFI_ACCESS_DENIED     - The firmware volume is in the ReadDisabled state\r
-  EFI_DEVICE_ERROR      - The block device is not functioning correctly and \r
+  EFI_DEVICE_ERROR      - The block device is not functioning correctly and\r
                           could not be read\r
   EFI_INVALID_PARAMETER - Instance not found, or NumBytes, Buffer are NULL\r
 \r
@@ -463,13 +463,13 @@ Arguments:
                           instance data\r
   Virtual               - Whether CPU is in virtual or physical mode\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - The firmware volume was written successfully\r
   EFI_BAD_BUFFER_SIZE   - Write attempted across a LBA boundary. On output,\r
                           NumBytes contains the total number of bytes\r
                           actually written\r
   EFI_ACCESS_DENIED     - The firmware volume is in the WriteDisabled state\r
-  EFI_DEVICE_ERROR      - The block device is not functioning correctly and \r
+  EFI_DEVICE_ERROR      - The block device is not functioning correctly and\r
                           could not be written\r
   EFI_INVALID_PARAMETER - Instance not found, or NumBytes, Buffer are NULL\r
 \r
@@ -541,10 +541,10 @@ Arguments:
                           instance data\r
   Virtual               - Whether CPU is in virtual or physical mode\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - The erase request was successfully completed\r
   EFI_ACCESS_DENIED     - The firmware volume is in the WriteDisabled state\r
-  EFI_DEVICE_ERROR      - The block device is not functioning correctly and \r
+  EFI_DEVICE_ERROR      - The block device is not functioning correctly and\r
                           could not be written. Firmware device may have been\r
                           partially erased\r
   EFI_INVALID_PARAMETER - Instance not found\r
@@ -596,13 +596,13 @@ FvbSetVolumeAttributes (
 /*++\r
 \r
 Routine Description:\r
-  Modifies the current settings of the firmware volume according to the \r
+  Modifies the current settings of the firmware volume according to the\r
   input parameter, and returns the new setting of the volume\r
 \r
 Arguments:\r
-  Instance              - The FV instance whose attributes is going to be \r
+  Instance              - The FV instance whose attributes is going to be\r
                           modified\r
-  Attributes            - On input, it is a pointer to EFI_FVB_ATTRIBUTES_2 \r
+  Attributes            - On input, it is a pointer to EFI_FVB_ATTRIBUTES_2\r
                           containing the desired firmware volume settings.\r
                           On successful return, it contains the new settings\r
                           of the firmware volume\r
@@ -610,7 +610,7 @@ Arguments:
                           instance data\r
   Virtual               - Whether CPU is in virtual or physical mode\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - Successfully returns\r
   EFI_ACCESS_DENIED     - The volume setting is locked and cannot be modified\r
   EFI_INVALID_PARAMETER - Instance not found, or The attributes requested are\r
@@ -742,7 +742,7 @@ Arguments:
 \r
 Returns:\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - Successfully returns\r
 \r
 **/\r
@@ -777,8 +777,8 @@ Arguments:
                           returned. All blocks in this range have a size of\r
                           BlockSize\r
 \r
-Returns: \r
-  EFI_SUCCESS           - The firmware volume was read successfully and \r
+Returns:\r
+  EFI_SUCCESS           - The firmware volume was read successfully and\r
                           contents are in Buffer\r
 \r
 **/\r
@@ -813,7 +813,7 @@ Arguments:
     This                - Calling context\r
     Attributes          - output buffer which contains attributes\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - Successfully returns\r
 \r
 **/\r
@@ -840,7 +840,7 @@ Arguments:
   This                  - Calling context\r
   Attributes            - output buffer which contains attributes\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - Successfully returns\r
 \r
 **/\r
@@ -856,28 +856,28 @@ EFI_STATUS
 EFIAPI\r
 FvbProtocolEraseBlocks (\r
   IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL    *This,\r
-  ...  \r
+  ...\r
   )\r
 /*++\r
 \r
 Routine Description:\r
 \r
-  The EraseBlock() function erases one or more blocks as denoted by the \r
+  The EraseBlock() function erases one or more blocks as denoted by the\r
   variable argument list. The entire parameter list of blocks must be verified\r
-  prior to erasing any blocks.  If a block is requested that does not exist \r
-  within the associated firmware volume (it has a larger index than the last \r
+  prior to erasing any blocks.  If a block is requested that does not exist\r
+  within the associated firmware volume (it has a larger index than the last\r
   block of the firmware volume), the EraseBlock() function must return\r
   EFI_INVALID_PARAMETER without modifying the contents of the firmware volume.\r
 \r
 Arguments:\r
   This                  - Calling context\r
-  ...                   - Starting LBA followed by Number of Lba to erase. \r
+  ...                   - Starting LBA followed by Number of Lba to erase.\r
                           a -1 to terminate the list.\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - The erase request was successfully completed\r
   EFI_ACCESS_DENIED     - The firmware volume is in the WriteDisabled state\r
-  EFI_DEVICE_ERROR      - The block device is not functioning correctly and \r
+  EFI_DEVICE_ERROR      - The block device is not functioning correctly and\r
                           could not be written. Firmware device may have been\r
                           partially erased\r
 \r
@@ -978,13 +978,13 @@ Arguments:
                           output, indicates the actual number of bytes written\r
   Buffer                - Buffer containing source data for the write.\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - The firmware volume was written successfully\r
   EFI_BAD_BUFFER_SIZE   - Write attempted across a LBA boundary. On output,\r
                           NumBytes contains the total number of bytes\r
                           actually written\r
   EFI_ACCESS_DENIED     - The firmware volume is in the WriteDisabled state\r
-  EFI_DEVICE_ERROR      - The block device is not functioning correctly and \r
+  EFI_DEVICE_ERROR      - The block device is not functioning correctly and\r
                           could not be written\r
   EFI_INVALID_PARAMETER - NumBytes or Buffer are NULL\r
 \r
@@ -1026,14 +1026,14 @@ Arguments:
                           output, indicates the actual number of bytes Read\r
   Buffer                - Buffer containing source data for the Read.\r
 \r
-Returns: \r
-  EFI_SUCCESS           - The firmware volume was read successfully and \r
+Returns:\r
+  EFI_SUCCESS           - The firmware volume was read successfully and\r
                           contents are in Buffer\r
   EFI_BAD_BUFFER_SIZE   - Read attempted across a LBA boundary. On output,\r
                           NumBytes contains the total number of bytes returned\r
                           in Buffer\r
   EFI_ACCESS_DENIED     - The firmware volume is in the ReadDisabled state\r
-  EFI_DEVICE_ERROR      - The block device is not functioning correctly and \r
+  EFI_DEVICE_ERROR      - The block device is not functioning correctly and\r
                           could not be read\r
   EFI_INVALID_PARAMETER - NumBytes or Buffer are NULL\r
 \r
@@ -1058,7 +1058,7 @@ Routine Description:
 Arguments:\r
   FwVolHeader           - A pointer to a firmware volume header\r
 \r
-Returns: \r
+Returns:\r
   EFI_SUCCESS           - The firmware volume is consistent\r
   EFI_NOT_FOUND         - The firmware volume has corrupted. So it is not an FV\r
 \r
index 34f29106439be3ec3ffcf0ed33e9114bcdf73c94..5668b5472cc344117c568acadc402bd1cc7a331d 100644 (file)
@@ -4,13 +4,13 @@
 \r
 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
index c7c21abbbe028e688e66ba9841a84bed410c2472..00140b3cb9615b8468d42d3dca50403c5f97e2c5 100644 (file)
@@ -1,10 +1,10 @@
 ## @file\r
 # Component description file for Emu Fimware Volume Block DXE driver module.\r
 #\r
-# This DXE runtime driver implements and produces the Fimware Volue Block Protocol on \r
+# This DXE runtime driver implements and produces the Fimware Volue Block Protocol on\r
 #  Emu emulator.\r
 # Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 e4984515a483cfa169aaee8447bf1f8d17182bbc..62dfcd54a1eed99cfcfd51731f7bd28ed4fd18af 100644 (file)
@@ -3,13 +3,13 @@
 \r
 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
index 324dc0474f9a45026631b8c21efa7f86ddd67ad7..8461ee714253eef140c6d21bd9d17c12036864fd 100644 (file)
@@ -2,13 +2,13 @@
   Setup Variable data structure for Emu platform.\r
 \r
 Copyright (c) 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
+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 b3a7d9b09fa805ac8f8c4fdbbf9c94fae06050cd..0f297d9660e4583425e7c9d933ba90ee3ec9d707 100644 (file)
@@ -2,13 +2,13 @@
   Setup Variable data structure for Emu platform.\r
 \r
 Copyright (c) 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
+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 17b97dc72bff5ad57e7b3f1a08b35bf24747056a..c6d2bea89ce0a061534b475b31107a08da5e2daf 100644 (file)
@@ -2,13 +2,13 @@
   Setup Variable data structure for Emu platform.\r
 \r
 Copyright (c) 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
+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 a701b763d389b8303911972413af9990532beb8f..e0c339a3b8abf38dd8943b3fa2dda26e15b20c5c 100644 (file)
@@ -1,16 +1,16 @@
 /*++ @file
 The PCD, gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage, points to a magic page
-of memory that is like SRAM on an embedded system. This file defines what goes 
+of memory that is like SRAM on an embedded system. This file defines what goes
 where in the magic page.
 
 Copyright (c) 2011, Apple Inc. All rights reserved.<BR>
-This program and the accompanying materials                          
-are licensed and made available under the terms and conditions of the BSD License         
-which accompanies this distribution.  The full text of the license may be found at        
-http://opensource.org/licenses/bsd-license.php                                            
-                                                                                          
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution.  The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 **/
 
@@ -23,12 +23,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 typedef struct {
   // Used by PEI Core and PEIMs to store the PEI Services pointer.
-  // Privilege issues prevent using the PI mechanism in the emulator. 
+  // Privilege issues prevent using the PI mechanism in the emulator.
   CONST EFI_PEI_SERVICES **PeiServicesTablePointer;
-  
+
   // Used by SecPeiServicesLib
   EFI_PEI_PPI_DESCRIPTOR  *PpiList;
-  
+
   // Needed by PEI PEI PeCoffLoaderExtraActionLib
   EMU_THUNK_PROTOCOL   *Thunk;
 } EMU_MAGIC_PAGE_LAYOUT;
index 9d69d4f2eb6792e992dbb7ed4d6663119f2534d5..98b22e16eea65b3d279551b28948867839f4bac9 100644 (file)
@@ -1,13 +1,13 @@
 /*++ @file
 
 Copyright (c) 2011, Apple Inc. All rights reserved.<BR>
-This program and the accompanying materials                          
-are licensed and made available under the terms and conditions of the BSD License         
-which accompanies this distribution.  The full text of the license may be found at        
-http://opensource.org/licenses/bsd-license.php                                            
-                                                                                          
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution.  The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 **/
 
@@ -21,7 +21,7 @@ extern EMU_THUNK_PROTOCOL   *gEmuThunk;
 
 
 /**
-  Serach the EMU IO Thunk database for a matching EMU IO Thunk 
+  Serach the EMU IO Thunk database for a matching EMU IO Thunk
   Protocol instance.
 
   @param  Protocol   Protocol to search for.
index 7bd29a72300888e4dec769cd2e7f0b0c9ea160a6..45dbfa4f18ee97c97eb58df763eab46e123a60cf 100644 (file)
@@ -1,6 +1,6 @@
 /*++ @file\r
 \r
-Copyright (c) 2011, Apple Inc. All rights reserved. \r
+Copyright (c) 2011, Apple Inc. All rights reserved.\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 061cfca34e81f3557c5266061d09c4612a7d53d1..c1271b23c8520d7a8aa697694d67c98639459bf8 100644 (file)
@@ -1,13 +1,13 @@
 /*++ @file
 
 Copyright (c) 2011, Apple Inc. All rights reserved.<BR>
-This program and the accompanying materials                          
-are licensed and made available under the terms and conditions of the BSD License         
-which accompanies this distribution.  The full text of the license may be found at        
-http://opensource.org/licenses/bsd-license.php                                            
-                                                                                          
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution.  The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 **/
 
index febc972e205f56ed28ac21397b01669a3ed3b8ad..cd5af7ac3f32d4164ec1ce45a83e30003fb4bd8b 100644 (file)
@@ -2,7 +2,7 @@
   All 3rd parties to register the PPIs passed into PEI Core\r
 \r
   Copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>\r
-  \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
index 5b25f9cc866ec8c6d1ff8bb98e8971108d8a566e..918970ddb07af715c54db747606ad47de5c06d65 100644 (file)
@@ -2,7 +2,7 @@
   Emulator Thunk to abstract OS services from pure EFI code\r
 \r
   Copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>\r
-  \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
@@ -20,7 +20,7 @@
 EFI_STATUS\r
 EFIAPI\r
 AddThunkProtocol (\r
-  IN  EMU_IO_THUNK_PROTOCOL   *ThunkIo,  \r
+  IN  EMU_IO_THUNK_PROTOCOL   *ThunkIo,\r
   IN  CHAR16                  *ConfigString,\r
   IN  BOOLEAN                 EmuBusDriver\r
   );\r
@@ -29,7 +29,7 @@ EFI_STATUS
 EFIAPI\r
 GetNextThunkProtocol (\r
   IN  BOOLEAN                 EmuBusDriver,\r
-  OUT EMU_IO_THUNK_PROTOCOL   **Instance  \r
+  OUT EMU_IO_THUNK_PROTOCOL   **Instance\r
   );\r
-  \r
+\r
 \r
index 20cdc462f9cb2bcd588d8fc208a18cdcca8d87f7..7788d7b569ab8ab5fe67ea74bf05f07f467ba98b 100644 (file)
@@ -2,7 +2,7 @@
   Emulator Thunk to abstract OS services from pure EFI code\r
 \r
   Copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>\r
-  \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
@@ -49,7 +49,7 @@ EFI_STATUS
 /*++\r
 \r
 Routine Description:\r
-  Return the FD Size and base address. Since the FD is loaded from a \r
+  Return the FD Size and base address. Since the FD is loaded from a\r
   file into host memory only the SEC will know it's address.\r
 \r
 Arguments:\r
index 26d6bb851854c7059fe4b0e2222a8959b78ff33f..8e5463c74ef729378ad1057f8e1112da4fbac355 100644 (file)
@@ -6,13 +6,13 @@
   manner.\r
 \r
   Copyright (c) 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
+  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
@@ -51,7 +51,7 @@ EFI_STATUS
 \r
 /**\r
   Read BufferSize bytes from Lba into Buffer.\r
-  \r
+\r
   This function reads the requested number of blocks from the device. All the\r
   blocks are read, or an error is returned.\r
   If EFI_DEVICE_ERROR, EFI_NO_MEDIA,_or EFI_MEDIA_CHANGED is returned and\r
@@ -59,13 +59,13 @@ EFI_STATUS
   not be signaled.\r
 \r
   @param[in]       This       Indicates a pointer to the calling context.\r
-  @param[in]       MediaId    Id of the media, changes every time the media is \r
+  @param[in]       MediaId    Id of the media, changes every time the media is\r
                               replaced.\r
   @param[in]       Lba        The starting Logical Block Address to read from.\r
   @param[in, out]  Token           A pointer to the token associated with the transaction.\r
-  @param[in]       BufferSize Size of Buffer, must be a multiple of device block size.  \r
-  @param[out]      Buffer     A pointer to the destination buffer for the data. The \r
-                              caller is responsible for either having implicit or \r
+  @param[in]       BufferSize Size of Buffer, must be a multiple of device block size.\r
+  @param[out]      Buffer     A pointer to the destination buffer for the data. The\r
+                              caller is responsible for either having implicit or\r
                               explicit ownership of the buffer.\r
 \r
   @retval EFI_SUCCESS           The read request was queued if Token->Event is\r
@@ -77,7 +77,7 @@ EFI_STATUS
   @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
                                 intrinsic 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_OUT_OF_RESOURCES  The request could not be completed due to a lack\r
                                 of resources.\r
@@ -118,7 +118,7 @@ EFI_STATUS
   @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the write.\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
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack\r
                                 of resources.\r
@@ -137,10 +137,10 @@ EFI_STATUS
 \r
 /**\r
   Flush the Block Device.\r
\r
+\r
   If EFI_DEVICE_ERROR, EFI_NO_MEDIA,_EFI_WRITE_PROTECTED or EFI_MEDIA_CHANGED\r
   is returned and non-blocking I/O is being used, the Event associated with\r
-  this request will not be signaled.  \r
+  this request will not be signaled.\r
 \r
   @param[in]      This     Indicates a pointer to the calling context.\r
   @param[in,out]  Token    A pointer to the token associated with the transaction\r
index 3713acfdc1ec72f05121c2ab982ab8a8eb5b4a97..6d8717479b3dd3577c3abb0ecd3dc55139ee9feb 100644 (file)
@@ -1,21 +1,21 @@
 /** @file
   SimpleFileSystem protocol as defined in the UEFI 2.0 specification.
 
-  The SimpleFileSystem protocol is the programmatic access to the FAT (12,16,32) 
-  file system specified in UEFI 2.0. It can also be used to abstract a file  
+  The SimpleFileSystem protocol is the programmatic access to the FAT (12,16,32)
+  file system specified in UEFI 2.0. It can also be used to abstract a file
   system other than FAT.
 
   UEFI 2.0 can boot from any valid EFI image contained in a SimpleFileSystem.
 
 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
-Portions copyright (c) 2011, Apple Inc. All rights reserved. 
-This program and the accompanying materials are licensed and made available under 
-the terms and conditions of the BSD License that accompanies this distribution.  
+Portions copyright (c) 2011, Apple Inc. All rights reserved.
+This program and the accompanying materials are licensed and made available under
+the terms and conditions of the BSD License that accompanies this distribution.
 The full text of the license may be found at
-http://opensource.org/licenses/bsd-license.php.                                          
-    
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+http://opensource.org/licenses/bsd-license.php.
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 **/
 
@@ -41,8 +41,8 @@ EFI_STATUS
 typedef
 EFI_STATUS
 (EFIAPI *EMU_GRAPHICS_WINDOWS_SIZE)(
-  EMU_GRAPHICS_WINDOW_PROTOCOL  *Uga, 
-  UINT32                        Width, 
+  EMU_GRAPHICS_WINDOW_PROTOCOL  *Uga,
+  UINT32                        Width,
   UINT32                        Height
   );
 
@@ -55,19 +55,19 @@ EFI_STATUS
 typedef
 EFI_STATUS
 (EFIAPI *EMU_GRAPHICS_WINDOWS_GET_KEY)(
-  EMU_GRAPHICS_WINDOW_PROTOCOL  *Uga, 
+  EMU_GRAPHICS_WINDOW_PROTOCOL  *Uga,
   EFI_KEY_DATA                  *key
   );
 
 typedef
 EFI_STATUS
 (EFIAPI *EMU_GRAPHICS_WINDOWS_KEY_SET_STATE) (
-  IN EMU_GRAPHICS_WINDOW_PROTOCOL   *GraphicsWindows, 
+  IN EMU_GRAPHICS_WINDOW_PROTOCOL   *GraphicsWindows,
   IN EFI_KEY_TOGGLE_STATE           *KeyToggleState
   );
 
 
-typedef 
+typedef
 VOID
 (EFIAPI *EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK) (
   IN VOID           *Context,
@@ -77,7 +77,7 @@ VOID
 typedef
 EFI_STATUS
 (EFIAPI *EMU_GRAPHICS_WINDOWS_REGISTER_KEY_NOTIFY) (
-  IN EMU_GRAPHICS_WINDOW_PROTOCOL                       *GraphicsWindows, 
+  IN EMU_GRAPHICS_WINDOW_PROTOCOL                       *GraphicsWindows,
   IN EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK   CallBack,
   IN VOID                                               *Context
   );
@@ -104,8 +104,8 @@ EFI_STATUS
 
 typedef
 BOOLEAN
-(EFIAPI *EMU_GRAPHICS_WINDOWS_IS_KEY_PRESSED) ( 
-  IN  EMU_GRAPHICS_WINDOW_PROTOCOL  *GraphicsWindows, 
+(EFIAPI *EMU_GRAPHICS_WINDOWS_IS_KEY_PRESSED) (
+  IN  EMU_GRAPHICS_WINDOW_PROTOCOL  *GraphicsWindows,
   IN  EFI_KEY_DATA                  *KeyData
   );
 
index e1afa0ef5ad45c736aedd7887fe42c9fa8613f00..844159a7665dcac870a40837f96d26de6e784bf6 100644 (file)
@@ -34,8 +34,8 @@ EFI_STATUS
 typedef
 EFI_STATUS
 (EFIAPI *EMU_GRAPHICS_WINDOWS_SIZE)(
-  EMU_GRAPHICS_WINDOW_PROTOCOL  *Uga, 
-  UINT32                        Width, 
+  EMU_GRAPHICS_WINDOW_PROTOCOL  *Uga,
+  UINT32                        Width,
   UINT32                        Height
   );
 
@@ -48,19 +48,19 @@ EFI_STATUS
 typedef
 EFI_STATUS
 (EFIAPI *EMU_GRAPHICS_WINDOWS_GET_KEY)(
-  EMU_GRAPHICS_WINDOW_PROTOCOL  *Uga, 
+  EMU_GRAPHICS_WINDOW_PROTOCOL  *Uga,
   EFI_KEY_DATA                  *key
   );
 
 typedef
 EFI_STATUS
 (EFIAPI *EMU_GRAPHICS_WINDOWS_KEY_SET_STATE) (
-  IN EMU_GRAPHICS_WINDOW_PROTOCOL   *GraphicsWindows, 
+  IN EMU_GRAPHICS_WINDOW_PROTOCOL   *GraphicsWindows,
   IN EFI_KEY_TOGGLE_STATE           *KeyToggleState
   );
 
 
-typedef 
+typedef
 VOID
 (EFIAPI *EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK) (
   IN VOID           *Context,
@@ -70,7 +70,7 @@ VOID
 typedef
 EFI_STATUS
 (EFIAPI *EMU_GRAPHICS_WINDOWS_REGISTER_KEY_NOTIFY) (
-  IN EMU_GRAPHICS_WINDOW_PROTOCOL                       *GraphicsWindows, 
+  IN EMU_GRAPHICS_WINDOW_PROTOCOL                       *GraphicsWindows,
   IN EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK   MakeCallBack,
   IN EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK   BreakCallBack,
   IN VOID                                               *Context
@@ -98,8 +98,8 @@ EFI_STATUS
 
 typedef
 BOOLEAN
-(EFIAPI *EMU_GRAPHICS_WINDOWS_IS_KEY_PRESSED) ( 
-  IN  EMU_GRAPHICS_WINDOW_PROTOCOL  *GraphicsWindows, 
+(EFIAPI *EMU_GRAPHICS_WINDOWS_IS_KEY_PRESSED) (
+  IN  EMU_GRAPHICS_WINDOW_PROTOCOL  *GraphicsWindows,
   IN  EFI_KEY_DATA                  *KeyData
   );
 
index af132bea7e2e4414166dfe2e54a5dbdba4920a20..471c13b882d82fa300db1ad76200b91c941ed964 100644 (file)
@@ -2,7 +2,7 @@
   Emulator Thunk to abstract OS services from pure EFI code\r
 \r
   Copyright (c) 2010 - 2011, Apple Inc. All rights reserved.<BR>\r
-  \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
@@ -13,7 +13,7 @@
 \r
 **/\r
 \r
-#ifndef __EMU_IO_THUNK__ \r
+#ifndef __EMU_IO_THUNK__\r
 #define __EMU_IO_THUNK__\r
 \r
 \r
 typedef struct _EMU_IO_THUNK_PROTOCOL  EMU_IO_THUNK_PROTOCOL;\r
 \r
 \r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EMU_IO_THUNK_PROTOCOL_CLOSE_OPEN) (\r
   IN  EMU_IO_THUNK_PROTOCOL   *This\r
   );\r
 \r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EMU_IO_THUNK_PROTOCOL_CLOSE_CLOSE) (\r
   IN  EMU_IO_THUNK_PROTOCOL   *This\r
@@ -43,7 +43,7 @@ struct _EMU_IO_THUNK_PROTOCOL {
   UINT16                              Instance;\r
   EMU_IO_THUNK_PROTOCOL_CLOSE_OPEN    Open;\r
   EMU_IO_THUNK_PROTOCOL_CLOSE_CLOSE   Close;\r
-  VOID                                *Private;    /// Used by implementation \r
+  VOID                                *Private;    /// Used by implementation\r
 };\r
 \r
 extern EFI_GUID gEmuIoThunkProtocolGuid;\r
index fc8e24cfde8b19e54b6d4ce97446a001f8344204..a022c9ecb735a26728423d3048da2951c35eed04 100644 (file)
@@ -1,17 +1,17 @@
 /** @file\r
-  The EMU_SNP_PROTOCOL provides services to initialize a network interface, \r
+  The EMU_SNP_PROTOCOL provides services to initialize a network interface,\r
   transmit packets, receive packets, and close a network interface.\r
 \r
 \r
 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-Portitions copyright (c) 2011, Apple Inc. All rights reserved. \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
+Portitions copyright (c) 2011, Apple Inc. All rights reserved.\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
@@ -81,8 +81,8 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  Resets a network adapter and allocates the transmit and receive buffers \r
-  required by the network interface; optionally, also requests allocation \r
+  Resets a network adapter and allocates the transmit and receive buffers\r
+  required by the network interface; optionally, also requests allocation\r
   of additional transmit and receive buffers.\r
 \r
   @param  This              The protocol instance pointer.\r
@@ -115,8 +115,8 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  Resets a network adapter and re-initializes it with the parameters that were \r
-  provided in the previous call to Initialize().  \r
+  Resets a network adapter and re-initializes it with the parameters that were\r
+  provided in the previous call to Initialize().\r
 \r
   @param  This                 The protocol instance pointer.\r
   @param  ExtendedVerification Indicates that the driver may perform a more\r
@@ -138,7 +138,7 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  Resets a network adapter and leaves it in a state that is safe for \r
+  Resets a network adapter and leaves it in a state that is safe for\r
   another driver to initialize.\r
 \r
   @param  This Protocol instance pointer.\r
@@ -275,7 +275,7 @@ EFI_STATUS
   );\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
@@ -305,7 +305,7 @@ EFI_STATUS
   );\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
@@ -363,7 +363,7 @@ EFI_STATUS
 \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
@@ -430,11 +430,11 @@ EFI_STATUS
 \r
 //\r
 // Revision defined in EFI1.1\r
-// \r
+//\r
 #define EMU_SNP_INTERFACE_REVISION   EMU_SNP_PROTOCOL_REVISION\r
 \r
 ///\r
-/// The EMU_SNP_PROTOCOL protocol abstracts OS network sercices \r
+/// The EMU_SNP_PROTOCOL protocol abstracts OS network sercices\r
 /// from the EFI driver that produces EFI Simple Network Protocol.\r
 ///\r
 struct _EMU_SNP_PROTOCOL {\r
index 27921b123cbe60c8db4ca921b02747d490bfbe1d..eccf0f47d92fd9104565a06bc58c056017ef1346 100644 (file)
@@ -2,7 +2,7 @@
   Emulator Thunk to abstract OS services from pure EFI code\r
 \r
   Copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>\r
-  \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
@@ -44,34 +44,34 @@ typedef struct _EMU_THUNK_PROTOCOL  EMU_THUNK_PROTOCOL;
 \r
 \r
 \r
-typedef \r
+typedef\r
 UINTN\r
 (EFIAPI *EMU_WRITE_STD_ERROR) (\r
   IN UINT8     *Buffer,\r
   IN UINTN     NumberOfBytes\r
-  );  \r
-  \r
-typedef \r
+  );\r
+\r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EMU_CONFIG_STD_IN) (\r
   VOID\r
   );\r
-  \r
-typedef \r
+\r
+typedef\r
 UINTN\r
 (EFIAPI *EMU_WRITE_STD_OUT) (\r
   IN UINT8     *Buffer,\r
   IN UINTN     NumberOfBytes\r
   );\r
-  \r
-typedef \r
+\r
+typedef\r
 UINTN\r
 (EFIAPI *EMU_READ_STD_IN) (\r
   OUT UINT8     *Buffer,\r
   IN  UINTN     NumberOfBytes\r
   );\r
 \r
-typedef \r
+typedef\r
 BOOLEAN\r
 (EFIAPI *EMU_POLL_STD_IN) (\r
   VOID\r
@@ -89,28 +89,28 @@ VOID *
 (EFIAPI *EMU_OS_VMALLOC) (\r
   IN  UINTN Size\r
   );\r
-  \r
-typedef \r
+\r
+typedef\r
 BOOLEAN\r
 (EFIAPI *EMU_OS_FREE) (\r
   IN  VOID *Ptr\r
   );\r
 \r
 \r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EMU_PE_COFF_GET_ENTRY_POINT) (\r
   IN     VOID  *Pe32Data,\r
   IN OUT VOID  **EntryPoint\r
   );\r
 \r
-typedef \r
+typedef\r
 VOID\r
 (EFIAPI *EMU_PE_COFF_RELOCATE_EXTRA_ACTION) (\r
   IN OUT PE_COFF_LOADER_IMAGE_CONTEXT  *ImageContext\r
   );\r
 \r
-typedef \r
+typedef\r
 VOID\r
 (EFIAPI *EMU_PE_COFF_UNLOAD_EXTRA_ACTION) (\r
   IN OUT PE_COFF_LOADER_IMAGE_CONTEXT  *ImageContext\r
@@ -121,7 +121,7 @@ VOID
 (EFIAPI *EMU_ENABLE_INERRUPTS) (\r
   VOID\r
   );\r
-  \r
+\r
 typedef\r
 VOID\r
 (EFIAPI *EMU_DISABLE_INERRUPTS) (\r
@@ -157,14 +157,14 @@ VOID
 (EFIAPI *EMU_EXIT) (\r
   IN  UINTN    Status\r
   );\r
-  \r
+\r
 typedef\r
 VOID\r
 (EFIAPI *EMU_GET_TIME) (\r
   OUT  EFI_TIME               *Time,\r
   OUT EFI_TIME_CAPABILITIES   *Capabilities OPTIONAL\r
   );\r
-  \r
+\r
 typedef\r
 VOID\r
 (EFIAPI *EMU_SET_TIME) (\r
@@ -184,23 +184,23 @@ VOID
   IN  UINT64                  PeriodMs,\r
   IN  EMU_SET_TIMER_CALLBACK  CallBack\r
   );\r
-  \r
+\r
 \r
 \r
 /**\r
   Enumerates the current set of protocol instances that abstract OS services from EFI.\r
-  \r
+\r
   A given protocol can have multiple instances. Usually a protocol is configured via a\r
-  single PCD string. The data associated for each instance is seperated via a ! in the string. \r
+  single PCD string. The data associated for each instance is seperated via a ! in the string.\r
   EMU_IO_THUNK_PROTOCOL_CLOSE.ConfigString will contain the information in the PCD string up to the next !.\r
-  Thus each instance has a unique ConfigString. \r
+  Thus each instance has a unique ConfigString.\r
 \r
   @param  EmuBusDriver          TRUE means only return protocol instances that need to be produced\r
                                 by the EmuBusDriver. FALSE means return all possible protocols\r
-  @param  Instance              On input the protocol to search for, or NULL to start a search \r
-                                of all the supported protocol instances. \r
-  @param  NextProtocol          On output it represents the next value to be passed into Protocol. \r
-  @param  Interface             A pointer to the EMU_IO_THUNK_PROTOCOL_CLOSE interface. \r
+  @param  Instance              On input the protocol to search for, or NULL to start a search\r
+                                of all the supported protocol instances.\r
+  @param  NextProtocol          On output it represents the next value to be passed into Protocol.\r
+  @param  Interface             A pointer to the EMU_IO_THUNK_PROTOCOL_CLOSE interface.\r
 \r
   @retval EFI_SUCCESS           The function completed successfully.\r
   @retval EFI_NOT_FOUND         The next protocol instance was not found.\r
@@ -213,7 +213,7 @@ EFI_STATUS
   IN  BOOLEAN                 EmuBusDriver,\r
   OUT EMU_IO_THUNK_PROTOCOL   **Instance  OPTIONAL\r
   );\r
-  \r
+\r
 \r
 struct _EMU_THUNK_PROTOCOL {\r
   // Used for early debug printing\r
@@ -222,22 +222,22 @@ struct _EMU_THUNK_PROTOCOL {
   EMU_WRITE_STD_OUT                 WriteStdOut;\r
   EMU_READ_STD_IN                   ReadStdIn;\r
   EMU_POLL_STD_IN                   PollStdIn;\r
-  \r
+\r
   //\r
   // Map OS malloc/free so we can use OS based guard malloc\r
   //\r
   EMU_OS_MALLOC                     Malloc;\r
   EMU_OS_VMALLOC                    Valloc;\r
   EMU_OS_FREE                       Free;\r
-  \r
-  \r
+\r
+\r
   ///\r
   /// PE/COFF loader hooks to get symbols loaded\r
   ///\r
   EMU_PE_COFF_GET_ENTRY_POINT       PeCoffGetEntryPoint;\r
   EMU_PE_COFF_RELOCATE_EXTRA_ACTION PeCoffRelocateImageExtraAction;\r
   EMU_PE_COFF_UNLOAD_EXTRA_ACTION   PeCoffUnloadImageExtraAction;\r
-  \r
+\r
   ///\r
   /// DXE Architecture Protocol Services\r
   ///\r
@@ -249,10 +249,10 @@ struct _EMU_THUNK_PROTOCOL {
   EMU_SLEEP                         Sleep;\r
   EMU_CPU_SLEEP                     CpuSleep;\r
   EMU_EXIT                          Exit;\r
-  EMU_GET_TIME                      GetTime;                \r
+  EMU_GET_TIME                      GetTime;\r
   EMU_SET_TIME                      SetTime;\r
-  EMU_SET_TIMER                     SetTimer;  \r
-  \r
+  EMU_SET_TIMER                     SetTimer;\r
+\r
   ///\r
   /// Generic System Services\r
   ///\r
index ba625aea78993b0698b2237df7b3c5969626e612..7478a5ef2ac81b2c13cd0ae88bb31a166b17be02 100644 (file)
@@ -74,7 +74,7 @@ DevPathToTextVendorLib (
     CatPrint (Str, L"EmuThread()");\r
     return EFI_SUCCESS;\r
   }\r
-  \r
+\r
   return EFI_NOT_FOUND;\r
 }\r
 \r
@@ -160,10 +160,10 @@ DevPathFromTextEmuFs (
 \r
 /**\r
   Register the Filter function\r
-  \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 executed correctly.\r
 \r
 **/\r
index db3b3138290ab98c1b3cf5ee1ea1edf0687e1e88..f4f3c09ddd0b1fe0e8450785b6cede17146b32be 100644 (file)
@@ -121,7 +121,7 @@ GetPerformanceCounterProperties (
   if (EndValue != NULL) {\r
     *EndValue = (UINT64)-1LL;\r
   }\r
-  \r
+\r
   return gEmuThunk->QueryPerformanceFrequency ();\r
 }\r
 \r
index 12826edbaf730a52f6a861330db50c3827ea926c..88ce324c196dc9a71de1142438b93b31ea22bea4 100644 (file)
@@ -41,4 +41,4 @@
 [LibraryClasses]\r
   DebugLib\r
   EmuThunkLib\r
-  \r
+\r
index 2e42ea61519a50270789ebbac80bbc975f892b24..22f8da7b641e27f942547b67175e8bf2fd7f5cd7 100644 (file)
@@ -1,7 +1,7 @@
 /*++ @file\r
 \r
 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
-Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
@@ -42,16 +42,16 @@ DxeEmuLibConstructor (
 \r
   GuidHob = GetFirstGuidHob (&gEmuThunkProtocolGuid);\r
   ASSERT (GuidHob != NULL);\r
-  \r
+\r
   gEmuThunk = (EMU_THUNK_PROTOCOL *)(*(UINTN *)(GET_GUID_HOB_DATA (GuidHob)));\r
   ASSERT (gEmuThunk != NULL);\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
 \r
 /**\r
-  Serach the EMU IO Thunk database for a matching EMU IO Thunk \r
+  Serach the EMU IO Thunk database for a matching EMU IO Thunk\r
   Protocol instance.\r
 \r
   @param  Protocol   Protocol to search for.\r
@@ -70,19 +70,19 @@ GetIoThunkInstance (
 {\r
   EFI_STATUS              Status;\r
   EMU_IO_THUNK_PROTOCOL   *EmuIoThunk;\r
-  \r
+\r
   for (Status = EFI_SUCCESS, EmuIoThunk = NULL; !EFI_ERROR (Status); ) {\r
     Status = gEmuThunk->GetNextProtocol (FALSE, &EmuIoThunk);\r
     if (EFI_ERROR (Status)) {\r
       break;\r
     }\r
-  \r
+\r
     if (EmuIoThunk->Instance == Instance) {\r
       if (CompareGuid (EmuIoThunk->Protocol, Protocol)) {\r
         return EmuIoThunk;\r
       }\r
     }\r
   }\r
-  \r
+\r
   return NULL;\r
 }
\ No newline at end of file
index 731bddae9e5707e63f06f359c0c51f5f0dff0635..21268a439e5e8d4fb43dad45f1e3274d30c2ab7d 100644 (file)
@@ -1,10 +1,10 @@
 ## @file\r
 # A library to produce the global variable 'gEmuThunk'\r
 #\r
-# This library contains a single global variable 'gEmuThunk' along with a constructor to \r
+# This library contains a single global variable 'gEmuThunk' along with a constructor to\r
 # initialize that global.\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -22,7 +22,7 @@
   FILE_GUID                      = 31479AFD-B06F-4E4A-863B-A8F7E7710778\r
   MODULE_TYPE                    = DXE_DRIVER\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = EmuThunkLib \r
+  LIBRARY_CLASS                  = EmuThunkLib\r
 \r
   CONSTRUCTOR                    = DxeEmuLibConstructor\r
 \r
index fdb8d5334dfed0857ed581c55cd9fe4ff8843b6a..5a8730c5f77c2b1ad686753af73457b3c9afec06 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provides services to perform additional actions to relocate and unload\r
   PE/Coff image for Emu environment specific purpose such as souce level debug.\r
-  This version only works for DXE phase  \r
+  This version only works for DXE phase\r
 \r
 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>\r
@@ -27,7 +27,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/PeCoffExtraActionLib.h>\r
 \r
 //\r
-// Cache of UnixThunk protocol \r
+// Cache of UnixThunk protocol\r
 //\r
 EMU_THUNK_PROTOCOL   *mThunk = NULL;\r
 \r
@@ -84,9 +84,9 @@ PeCoffLoaderRelocateImageExtraAction (
 /**\r
   Performs additional actions just before a PE/COFF image is unloaded.  Any resources\r
   that were allocated by PeCoffLoaderRelocateImageExtraAction() must be freed.\r
-  \r
+\r
   If ImageContext is NULL, then ASSERT().\r
-  \r
+\r
   @param  ImageContext  Pointer to the image context structure that describes the\r
                         PE/COFF image that is being unloaded.\r
 \r
index b5961c5a5ff8e552d99b59e9c45f16325994cd23..f79ebc78e2b49a0b04106e5bca1bebc8f4506e41 100644 (file)
@@ -2,7 +2,7 @@
 # PeCoff extra action libary for DXE phase that run Emu emulator.
 #
 # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. 
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.
 # This program and the accompanying materials
 # are licensed and made available under the terms and conditions of the BSD License
 # which accompanies this distribution.  The full text of the license may be found at
index ccf4fa08ebb6cbbf39b4fa5e97ce35c497399b75..3d9e85bb3654e721ccc22b7a77832dd6713709a2 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
-  Serial Port Lib that thunks back to Emulator services to write to StdErr. \r
-  All read functions are stubed out. \r
+  Serial Port Lib that thunks back to Emulator services to write to StdErr.\r
+  All read functions are stubed out.\r
 \r
   Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
   Portions copyright (c) 2011, Apple Inc. All rights reserved.<BR>\r
 \r
 /**\r
   Initialize the serial device hardware.\r
-  \r
+\r
   If no initialization is required, then return RETURN_SUCCESS.\r
   If the serial device was successfully initialized, then return RETURN_SUCCESS.\r
   If the serial device could not be initialized, then return RETURN_DEVICE_ERROR.\r
-  \r
+\r
   @retval RETURN_SUCCESS        The serial device was initialized.\r
   @retval RETURN_DEVICE_ERROR   The serial device could not be initialized.\r
 \r
@@ -43,19 +43,19 @@ SerialPortInitialize (
 }\r
 \r
 /**\r
-  Write data from buffer to serial device. \r
\r
-  Writes NumberOfBytes data bytes from Buffer to the serial device.  \r
+  Write data from buffer to serial device.\r
+\r
+  Writes NumberOfBytes data bytes from Buffer to the serial device.\r
   The number of bytes actually written to the serial device is returned.\r
   If the return value is less than NumberOfBytes, then the write operation failed.\r
-  If Buffer is NULL, then ASSERT(). \r
+  If Buffer is NULL, then ASSERT().\r
   If NumberOfBytes is zero, then return 0.\r
 \r
   @param  Buffer           The pointer to the data buffer to be written.\r
   @param  NumberOfBytes    The number of bytes to written to the serial device.\r
 \r
   @retval 0                NumberOfBytes is 0.\r
-  @retval >0               The number of bytes written to the serial device.  \r
+  @retval >0               The number of bytes written to the serial device.\r
                            If this value is less than NumberOfBytes, then the read operation failed.\r
 \r
 **/\r
@@ -72,11 +72,11 @@ SerialPortWrite (
 \r
 /**\r
   Read data from serial device and save the datas in buffer.\r
\r
+\r
   Reads NumberOfBytes data bytes from a serial device into the buffer\r
-  specified by Buffer. The number of bytes actually read is returned. \r
+  specified by Buffer. The number of bytes actually read is returned.\r
   If the return value is less than NumberOfBytes, then the rest operation failed.\r
-  If Buffer is NULL, then ASSERT(). \r
+  If Buffer is NULL, then ASSERT().\r
   If NumberOfBytes is zero, then return 0.\r
 \r
   @param  Buffer           The pointer to the data buffer to store the data read from the serial device.\r
index a4734c558fe71046623f5c33a9b68fa9ba79ef54..81276e6073776a9a189c125f04855641929c443b 100644 (file)
@@ -2,7 +2,7 @@
 #  Write only instance of Serial Port Library with empty functions.\r
 #\r
 #  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-#  Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+#  Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
   EmulatorPkg/EmulatorPkg.dec\r
-  \r
+\r
 [LibraryClasses]\r
   EmuThunkLib\r
 \r
 \r
 \r
-  \r
+\r
 \r
index b4ef86e12832ef99f6f86b81a2f96e7817feb465..8d95921c035d0bd34e1677664fc5e797622ddee0 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
-  Serial Port Lib that thunks back to Emulator services to write to StdErr. \r
-  All read functions are stubed out. \r
+  Serial Port Lib that thunks back to Emulator services to write to StdErr.\r
+  All read functions are stubed out.\r
 \r
   Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
   Portions copyright (c) 2011, Apple Inc. All rights reserved.<BR>\r
 \r
 /**\r
   Initialize the serial device hardware.\r
-  \r
+\r
   If no initialization is required, then return RETURN_SUCCESS.\r
   If the serial device was successfully initialized, then return RETURN_SUCCESS.\r
   If the serial device could not be initialized, then return RETURN_DEVICE_ERROR.\r
-  \r
+\r
   @retval RETURN_SUCCESS        The serial device was initialized.\r
   @retval RETURN_DEVICE_ERROR   The serial device could not be initialized.\r
 \r
@@ -43,19 +43,19 @@ SerialPortInitialize (
 }\r
 \r
 /**\r
-  Write data from buffer to serial device. \r
\r
-  Writes NumberOfBytes data bytes from Buffer to the serial device.  \r
+  Write data from buffer to serial device.\r
+\r
+  Writes NumberOfBytes data bytes from Buffer to the serial device.\r
   The number of bytes actually written to the serial device is returned.\r
   If the return value is less than NumberOfBytes, then the write operation failed.\r
-  If Buffer is NULL, then ASSERT(). \r
+  If Buffer is NULL, then ASSERT().\r
   If NumberOfBytes is zero, then return 0.\r
 \r
   @param  Buffer           The pointer to the data buffer to be written.\r
   @param  NumberOfBytes    The number of bytes to written to the serial device.\r
 \r
   @retval 0                NumberOfBytes is 0.\r
-  @retval >0               The number of bytes written to the serial device.  \r
+  @retval >0               The number of bytes written to the serial device.\r
                            If this value is less than NumberOfBytes, then the read operation failed.\r
 \r
 **/\r
@@ -72,11 +72,11 @@ SerialPortWrite (
 \r
 /**\r
   Read data from serial device and save the datas in buffer.\r
\r
+\r
   Reads NumberOfBytes data bytes from a serial device into the buffer\r
-  specified by Buffer. The number of bytes actually read is returned. \r
+  specified by Buffer. The number of bytes actually read is returned.\r
   If the return value is less than NumberOfBytes, then the rest operation failed.\r
-  If Buffer is NULL, then ASSERT(). \r
+  If Buffer is NULL, then ASSERT().\r
   If NumberOfBytes is zero, then return 0.\r
 \r
   @param  Buffer           The pointer to the data buffer to store the data read from the serial device.\r
index 5d791bca6485fcaab7fb9d8bee592ce3e6695d65..c1514d0b5f75bda05b5c4cfb5cd30af941bdb7e7 100644 (file)
@@ -2,7 +2,7 @@
 #  Write only instance of Serial Port Library with empty functions.\r
 #\r
 #  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-#  Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+#  Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
   EmulatorPkg/EmulatorPkg.dec\r
-  \r
+\r
 [LibraryClasses]\r
   EmuThunkLib\r
 \r
 \r
 \r
-  \r
+\r
 \r
index 14bb17f00e120835bd1cf0dd3c610e678d8f2976..032fec4b842237c44439a2fccb36ba8d79217416 100644 (file)
@@ -36,15 +36,15 @@ RegisterTimerArchProtocol (
   )\r
 {\r
   EFI_STATUS  Status;\r
-  \r
+\r
   Status = gBS->LocateProtocol (&gEfiTimerArchProtocolGuid, NULL, (VOID **)&gTimerAp);\r
-  if (!EFI_ERROR (Status)) {    \r
+  if (!EFI_ERROR (Status)) {\r
     Status = gTimerAp->GetTimerPeriod (gTimerAp, &gTimerPeriod);\r
     ASSERT_EFI_ERROR (Status);\r
 \r
     // Convert to Nanoseconds.\r
     gTimerPeriod = MultU64x32 (gTimerPeriod, 100);\r
-    \r
+\r
     if (gTimerEvent == NULL) {\r
       Status = gBS->CreateEvent (EVT_TIMER, 0, NULL, NULL, (VOID **)&gTimerEvent);\r
       ASSERT_EFI_ERROR (Status);\r
@@ -93,21 +93,21 @@ NanoSecondDelay (
   EFI_STATUS  Status;\r
   UINT64      HundredNanoseconds;\r
   UINTN       Index;\r
-  \r
-  if ((gTimerPeriod != 0) && \r
-      ((UINT64)NanoSeconds > gTimerPeriod) && \r
+\r
+  if ((gTimerPeriod != 0) &&\r
+      ((UINT64)NanoSeconds > gTimerPeriod) &&\r
       (EfiGetCurrentTpl () == TPL_APPLICATION)) {\r
     //\r
     // This stall is long, so use gBS->WaitForEvent () to yield CPU to DXE Core\r
     //\r
-    \r
+\r
     HundredNanoseconds = DivU64x32 (NanoSeconds, 100);\r
     Status = gBS->SetTimer (gTimerEvent, TimerRelative, HundredNanoseconds);\r
     ASSERT_EFI_ERROR (Status);\r
 \r
     Status = gBS->WaitForEvent (sizeof (gTimerEvent)/sizeof (EFI_EVENT), &gTimerEvent, &Index);\r
     ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
   } else {\r
     gEmuThunk->Sleep (NanoSeconds);\r
   }\r
@@ -172,7 +172,7 @@ GetPerformanceCounterProperties (
   if (EndValue != NULL) {\r
     *EndValue = (UINT64)-1LL;\r
   }\r
-  \r
+\r
   return gEmuThunk->QueryPerformanceFrequency ();\r
 }\r
 \r
index 51479373ff678cff0c05764d64aca4eb0fff5a36..19f133e952ff3be12fa25a2ffae9f0e870684261 100644 (file)
@@ -46,6 +46,6 @@
   EmuThunkLib\r
   UefiLib\r
   UefiBootServicesTableLib\r
-  \r
+\r
 [Protocols]\r
   gEfiTimerArchProtocolGuid\r
index 8f47ef91253299accb96f1833b2088e3770280dd..46d2a7ee0340d9e8fe2df6b1163e0c8cc8294bdf 100644 (file)
@@ -2,13 +2,13 @@
 \r
 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
@@ -93,14 +93,14 @@ Routine Description:
 Arguments:\r
 \r
   PlatformConsole         - Predfined platform default console device array.\r
\r
+\r
 Returns:\r
 \r
-  EFI_SUCCESS             - Success connect at least one ConIn and ConOut \r
-                            device, there must have one ConOut device is \r
+  EFI_SUCCESS             - Success connect at least one ConIn and ConOut\r
+                            device, there must have one ConOut device is\r
                             active vga device.\r
-  \r
-  EFI_STATUS              - Return the status of \r
+\r
+  EFI_STATUS              - Return the status of\r
                             BdsLibConnectAllDefaultConsoles ()\r
 \r
 **/\r
@@ -149,17 +149,17 @@ PlatformBdsConnectSequence (
 \r
 Routine Description:\r
 \r
-  Connect with predeined platform connect sequence, \r
+  Connect with predeined platform connect sequence,\r
   the OEM/IBV can customize with their own connect sequence.\r
-  \r
+\r
 Arguments:\r
 \r
   None.\r
\r
+\r
 Returns:\r
 \r
   None.\r
-  \r
+\r
 **/\r
 {\r
   UINTN Index;\r
@@ -195,15 +195,15 @@ Routine Description:
 \r
   Load the predefined driver option, OEM/IBV can customize this\r
   to load their own drivers\r
-  \r
+\r
 Arguments:\r
 \r
   BdsDriverLists  - The header of the driver option link list.\r
\r
+\r
 Returns:\r
 \r
   None.\r
-  \r
+\r
 **/\r
 {\r
   UINTN Index;\r
@@ -235,19 +235,19 @@ Routine Description:
 \r
   Perform the platform diagnostic, such like test memory. OEM/IBV also\r
   can customize this fuction to support specific platform diagnostic.\r
-  \r
+\r
 Arguments:\r
 \r
   MemoryTestLevel  - The memory test intensive level\r
-  \r
+\r
   QuietBoot        - Indicate if need to enable the quiet boot\r
 \r
   BaseMemoryTest   - A pointer to BdsMemoryTest()\r
\r
+\r
 Returns:\r
 \r
   None.\r
-  \r
+\r
 **/\r
 {\r
   EFI_STATUS  Status;\r
@@ -291,11 +291,11 @@ Routine Description:
   The function will excute with as the platform policy, current policy\r
   is driven by boot mode. IBV/OEM can customize this code for their specific\r
   policy action.\r
-  \r
+\r
 Arguments:\r
 \r
   DriverOptionList - The header of the driver option link list\r
-  \r
+\r
   BootOptionList   - The header of the boot option link list\r
 \r
   ProcessCapsules  - A pointer to ProcessCapsules()\r
@@ -305,7 +305,7 @@ Arguments:
 Returns:\r
 \r
   None.\r
-  \r
+\r
 **/\r
 {\r
   EFI_STATUS     Status;\r
@@ -431,7 +431,7 @@ PlatformBdsBootSuccess (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   Hook point after a boot attempt succeeds. We don't expect a boot option to\r
   return, so the EFI 1.0 specification defines that you will default to an\r
   interactive mode and stop processing the BootOrder list in this case. This\r
@@ -442,7 +442,7 @@ Arguments:
   Option - Pointer to Boot Option that succeeded to boot.\r
 \r
 Returns:\r
-  \r
+\r
   None.\r
 \r
 **/\r
@@ -471,11 +471,11 @@ PlatformBdsBootFail (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   Hook point after a boot attempt fails.\r
 \r
 Arguments:\r
-  \r
+\r
   Option - Pointer to Boot Option that failed to boot.\r
 \r
   Status - Status returned from failed boot.\r
@@ -485,7 +485,7 @@ Arguments:
   ExitDataSize - Exit data size returned from failed boot.\r
 \r
 Returns:\r
-  \r
+\r
   None.\r
 \r
 **/\r
@@ -510,16 +510,16 @@ PlatformBdsNoConsoleAction (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   This function is remained for IBV/OEM to do some platform action,\r
   if there no console device can be connected.\r
 \r
 Arguments:\r
-  \r
+\r
   None.\r
-  \r
+\r
 Returns:\r
-  \r
+\r
   EFI_SUCCESS      - Direct return success now.\r
 \r
 **/\r
index a76ec2e4bde668248cf075f570eea9bd97864de2..cf2bb3e81c028a6c5176971f993b8c691494d17b 100644 (file)
@@ -2,13 +2,13 @@
 \r
 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
index fecdbecbe68dbc14156a210db018cf2ac109ef68..1e121ee38e20793032f3b0ceb74bc233479d552c 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 # Do platform action customized by IBV/OEM.\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -21,7 +21,7 @@
   FILE_GUID                      =  59569181-CBF8-2E44-9C3E-C2AB2F5608E1\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
 #\r
@@ -61,6 +61,6 @@
   gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile\r
-  \r
+\r
 [Depex]\r
   gEfiVariableArchProtocolGuid AND gEfiVariableWriteArchProtocolGuid\r
index e20099b9f05d35f1db3c3370dc5b7781d5804bcc..37e35f5e06f0ee42fc80b36a4d2239ceecff5a7e 100644 (file)
@@ -2,13 +2,13 @@
 \r
 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
index c457e7c213134df49e7041877c3569af3521682e..d6e20d6f74e6afea884dd86f5c322411f5fe5a6c 100644 (file)
@@ -1,23 +1,23 @@
 /** @file\r
-  Support routines for memory allocation routines based \r
+  Support routines for memory allocation routines based\r
   on boot services for Dxe phase drivers using OS malloc.\r
-  \r
-  OS malloc is used so OS based malloc debugging tools can be used. \r
-  If a single driver links against this lib protocols from other \r
-  drivers, or EFI boot services can return a buffer that needs to \r
-  freed using the EFI scheme. This is why the gEmuThunk->Free () \r
+\r
+  OS malloc is used so OS based malloc debugging tools can be used.\r
+  If a single driver links against this lib protocols from other\r
+  drivers, or EFI boot services can return a buffer that needs to\r
+  freed using the EFI scheme. This is why the gEmuThunk->Free ()\r
   can detect if the memory rang is for EFI so the right free can be\r
   called.\r
 \r
   Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-  Portions copyright (c) 2011, Apple Inc. All rights reserved. \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
+  Portions copyright (c) 2011, Apple Inc. All rights reserved.\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
 **/\r
 VOID *\r
 InternalAllocatePages (\r
-  IN EFI_MEMORY_TYPE  MemoryType,  \r
+  IN EFI_MEMORY_TYPE  MemoryType,\r
   IN UINTN            Pages\r
   )\r
 {\r
   EFI_STATUS            Status;\r
-  EFI_PHYSICAL_ADDRESS  Memory; \r
+  EFI_PHYSICAL_ADDRESS  Memory;\r
 \r
   if (Pages == 0) {\r
     return NULL;\r
@@ -134,11 +134,11 @@ AllocateReservedPages (
   must have been allocated on a previous call to the page allocation services of the Memory\r
   Allocation Library.  If it is not possible to free allocated pages, then this function will\r
   perform no actions.\r
-  \r
+\r
   If Buffer was not allocated with a page allocation function in the Memory Allocation Library,\r
   then ASSERT().\r
   If Pages is zero, then ASSERT().\r
\r
+\r
   @param  Buffer                The pointer to the buffer of pages to free.\r
   @param  Pages                 The number of 4 KB pages to free.\r
 \r
@@ -155,7 +155,7 @@ FreePages (
   ASSERT (Pages != 0);\r
   if (!gEmuThunk->Free (Buffer)) {\r
     // The Free thunk will not free memory allocated in emulated EFI memory.\r
-    // The assmuption is this was allocated directly by EFI. We need this as some \r
+    // The assmuption is this was allocated directly by EFI. We need this as some\r
     // times protocols or EFI BootServices can return dynamically allocated buffers.\r
     Status = gBS->FreePages ((EFI_PHYSICAL_ADDRESS) (UINTN) Buffer, Pages);\r
     ASSERT_EFI_ERROR (Status);\r
@@ -181,7 +181,7 @@ FreePages (
 **/\r
 VOID *\r
 InternalAllocateAlignedPages (\r
-  IN EFI_MEMORY_TYPE  MemoryType,  \r
+  IN EFI_MEMORY_TYPE  MemoryType,\r
   IN UINTN            Pages,\r
   IN UINTN            Alignment\r
   )\r
@@ -197,7 +197,7 @@ InternalAllocateAlignedPages (
   // Alignment must be a power of two or zero.\r
   //\r
   ASSERT ((Alignment & (Alignment - 1)) == 0);\r
\r
+\r
   if (Pages == 0) {\r
     return NULL;\r
   }\r
@@ -211,7 +211,7 @@ InternalAllocateAlignedPages (
     // Make sure that Pages plus EFI_SIZE_TO_PAGES (Alignment) does not overflow.\r
     //\r
     ASSERT (RealPages > Pages);\r
\r
+\r
     Memory = gEmuThunk->Valloc (Pages * EFI_PAGE_SIZE);\r
     if (Memory != NULL) {\r
       return NULL;\r
@@ -252,7 +252,7 @@ InternalAllocateAlignedPages (
   alignment specified by Alignment.  The allocated buffer is returned.  If Pages is 0, then NULL is\r
   returned.  If there is not enough memory at the specified alignment remaining to satisfy the\r
   request, then NULL is returned.\r
-  \r
+\r
   If Alignment is not a power of two and Alignment is not zero, then ASSERT().\r
 \r
   @param  Pages                 The number of 4 KB pages to allocate.\r
@@ -279,7 +279,7 @@ AllocateAlignedPages (
   alignment specified by Alignment.  The allocated buffer is returned.  If Pages is 0, then NULL is\r
   returned.  If there is not enough memory at the specified alignment remaining to satisfy the\r
   request, then NULL is returned.\r
-  \r
+\r
   If Alignment is not a power of two and Alignment is not zero, then ASSERT().\r
 \r
   @param  Pages                 The number of 4 KB pages to allocate.\r
@@ -306,7 +306,7 @@ AllocateAlignedRuntimePages (
   alignment specified by Alignment.  The allocated buffer is returned.  If Pages is 0, then NULL is\r
   returned.  If there is not enough memory at the specified alignment remaining to satisfy the\r
   request, then NULL is returned.\r
-  \r
+\r
   If Alignment is not a power of two and Alignment is not zero, then ASSERT().\r
 \r
   @param  Pages                 The number of 4 KB pages to allocate.\r
@@ -332,13 +332,13 @@ AllocateAlignedReservedPages (
 \r
   Frees the number of 4KB pages specified by Pages from the buffer specified by Buffer.  Buffer\r
   must have been allocated on a previous call to the aligned page allocation services of the Memory\r
-  Allocation Library.  If it is not possible to free allocated pages, then this function will \r
+  Allocation Library.  If it is not possible to free allocated pages, then this function will\r
   perform no actions.\r
-  \r
+\r
   If Buffer was not allocated with an aligned page allocation function in the Memory Allocation\r
   Library, then ASSERT().\r
   If Pages is zero, then ASSERT().\r
-  \r
+\r
   @param  Buffer                The pointer to the buffer of pages to free.\r
   @param  Pages                 The number of 4 KB pages to free.\r
 \r
@@ -368,7 +368,7 @@ FreeAlignedPages (
 **/\r
 VOID *\r
 InternalAllocatePool (\r
-  IN EFI_MEMORY_TYPE  MemoryType,  \r
+  IN EFI_MEMORY_TYPE  MemoryType,\r
   IN UINTN            AllocationSize\r
   )\r
 {\r
@@ -454,9 +454,9 @@ AllocateReservedPool (
 **/\r
 VOID *\r
 InternalAllocateZeroPool (\r
-  IN EFI_MEMORY_TYPE  PoolType,  \r
+  IN EFI_MEMORY_TYPE  PoolType,\r
   IN UINTN            AllocationSize\r
-  ) \r
+  )\r
 {\r
   VOID  *Memory;\r
 \r
@@ -541,7 +541,7 @@ AllocateReservedZeroPool (
   allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.  If there\r
   is not enough memory remaining to satisfy the request, then NULL is returned.\r
   If Buffer is NULL, then ASSERT().\r
-  If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). \r
+  If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
   @param  PoolType              The type of pool to allocate.\r
   @param  AllocationSize        The number of bytes to allocate and zero.\r
@@ -552,10 +552,10 @@ AllocateReservedZeroPool (
 **/\r
 VOID *\r
 InternalAllocateCopyPool (\r
-  IN EFI_MEMORY_TYPE  PoolType,  \r
+  IN EFI_MEMORY_TYPE  PoolType,\r
   IN UINTN            AllocationSize,\r
   IN CONST VOID       *Buffer\r
-  ) \r
+  )\r
 {\r
   VOID  *Memory;\r
 \r
@@ -567,7 +567,7 @@ InternalAllocateCopyPool (
      Memory = CopyMem (Memory, Buffer, AllocationSize);\r
   }\r
   return Memory;\r
-} \r
+}\r
 \r
 /**\r
   Copies a buffer to an allocated buffer of type EfiBootServicesData.\r
@@ -576,9 +576,9 @@ InternalAllocateCopyPool (
   AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the\r
   allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.  If there\r
   is not enough memory remaining to satisfy the request, then NULL is returned.\r
-  \r
+\r
   If Buffer is NULL, then ASSERT().\r
-  If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). \r
+  If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
   @param  AllocationSize        The number of bytes to allocate and zero.\r
   @param  Buffer                The buffer to copy to the allocated buffer.\r
@@ -603,9 +603,9 @@ AllocateCopyPool (
   AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the\r
   allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.  If there\r
   is not enough memory remaining to satisfy the request, then NULL is returned.\r
-  \r
+\r
   If Buffer is NULL, then ASSERT().\r
-  If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). \r
+  If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
   @param  AllocationSize        The number of bytes to allocate and zero.\r
   @param  Buffer                The buffer to copy to the allocated buffer.\r
@@ -630,9 +630,9 @@ AllocateRuntimeCopyPool (
   AllocationSize bytes from Buffer to the newly allocated buffer, and returns a pointer to the\r
   allocated buffer.  If AllocationSize is 0, then a valid buffer of 0 size is returned.  If there\r
   is not enough memory remaining to satisfy the request, then NULL is returned.\r
-  \r
+\r
   If Buffer is NULL, then ASSERT().\r
-  If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). \r
+  If AllocationSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
   @param  AllocationSize        The number of bytes to allocate and zero.\r
   @param  Buffer                The buffer to copy to the allocated buffer.\r
@@ -654,19 +654,19 @@ AllocateReservedCopyPool (
   Reallocates a buffer of a specified memory type.\r
 \r
   Allocates and zeros the number bytes specified by NewSize from memory of the type\r
-  specified by PoolType.  If OldBuffer is not NULL, then the smaller of OldSize and \r
-  NewSize bytes are copied from OldBuffer to the newly allocated buffer, and \r
-  OldBuffer is freed.  A pointer to the newly allocated buffer is returned.  \r
-  If NewSize is 0, then a valid buffer of 0 size is  returned.  If there is not \r
+  specified by PoolType.  If OldBuffer is not NULL, then the smaller of OldSize and\r
+  NewSize bytes are copied from OldBuffer to the newly allocated buffer, and\r
+  OldBuffer is freed.  A pointer to the newly allocated buffer is returned.\r
+  If NewSize is 0, then a valid buffer of 0 size is  returned.  If there is not\r
   enough memory remaining to satisfy the request, then NULL is returned.\r
-  \r
+\r
   If the allocation of the new buffer is successful and the smaller of NewSize and OldSize\r
   is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT().\r
 \r
   @param  PoolType       The type of pool to allocate.\r
   @param  OldSize        The size, in bytes, of OldBuffer.\r
   @param  NewSize        The size, in bytes, of the buffer to reallocate.\r
-  @param  OldBuffer      The buffer to copy to the allocated buffer.  This is an optional \r
+  @param  OldBuffer      The buffer to copy to the allocated buffer.  This is an optional\r
                          parameter that may be NULL.\r
 \r
   @return A pointer to the allocated buffer or NULL if allocation fails.\r
@@ -674,7 +674,7 @@ AllocateReservedCopyPool (
 **/\r
 VOID *\r
 InternalReallocatePool (\r
-  IN EFI_MEMORY_TYPE  PoolType,  \r
+  IN EFI_MEMORY_TYPE  PoolType,\r
   IN UINTN            OldSize,\r
   IN UINTN            NewSize,\r
   IN VOID             *OldBuffer  OPTIONAL\r
@@ -694,18 +694,18 @@ InternalReallocatePool (
   Reallocates a buffer of type EfiBootServicesData.\r
 \r
   Allocates and zeros the number bytes specified by NewSize from memory of type\r
-  EfiBootServicesData.  If OldBuffer is not NULL, then the smaller of OldSize and \r
-  NewSize bytes are copied from OldBuffer to the newly allocated buffer, and \r
-  OldBuffer is freed.  A pointer to the newly allocated buffer is returned.  \r
-  If NewSize is 0, then a valid buffer of 0 size is  returned.  If there is not \r
+  EfiBootServicesData.  If OldBuffer is not NULL, then the smaller of OldSize and\r
+  NewSize bytes are copied from OldBuffer to the newly allocated buffer, and\r
+  OldBuffer is freed.  A pointer to the newly allocated buffer is returned.\r
+  If NewSize is 0, then a valid buffer of 0 size is  returned.  If there is not\r
   enough memory remaining to satisfy the request, then NULL is returned.\r
-  \r
+\r
   If the allocation of the new buffer is successful and the smaller of NewSize and OldSize\r
   is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT().\r
 \r
   @param  OldSize        The size, in bytes, of OldBuffer.\r
   @param  NewSize        The size, in bytes, of the buffer to reallocate.\r
-  @param  OldBuffer      The buffer to copy to the allocated buffer.  This is an optional \r
+  @param  OldBuffer      The buffer to copy to the allocated buffer.  This is an optional\r
                          parameter that may be NULL.\r
 \r
   @return A pointer to the allocated buffer or NULL if allocation fails.\r
@@ -726,10 +726,10 @@ ReallocatePool (
   Reallocates a buffer of type EfiRuntimeServicesData.\r
 \r
   Allocates and zeros the number bytes specified by NewSize from memory of type\r
-  EfiRuntimeServicesData.  If OldBuffer is not NULL, then the smaller of OldSize and \r
-  NewSize bytes are copied from OldBuffer to the newly allocated buffer, and \r
-  OldBuffer is freed.  A pointer to the newly allocated buffer is returned.  \r
-  If NewSize is 0, then a valid buffer of 0 size is  returned.  If there is not \r
+  EfiRuntimeServicesData.  If OldBuffer is not NULL, then the smaller of OldSize and\r
+  NewSize bytes are copied from OldBuffer to the newly allocated buffer, and\r
+  OldBuffer is freed.  A pointer to the newly allocated buffer is returned.\r
+  If NewSize is 0, then a valid buffer of 0 size is  returned.  If there is not\r
   enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
   If the allocation of the new buffer is successful and the smaller of NewSize and OldSize\r
@@ -737,7 +737,7 @@ ReallocatePool (
 \r
   @param  OldSize        The size, in bytes, of OldBuffer.\r
   @param  NewSize        The size, in bytes, of the buffer to reallocate.\r
-  @param  OldBuffer      The buffer to copy to the allocated buffer.  This is an optional \r
+  @param  OldBuffer      The buffer to copy to the allocated buffer.  This is an optional\r
                          parameter that may be NULL.\r
 \r
   @return A pointer to the allocated buffer or NULL if allocation fails.\r
@@ -758,10 +758,10 @@ ReallocateRuntimePool (
   Reallocates a buffer of type EfiReservedMemoryType.\r
 \r
   Allocates and zeros the number bytes specified by NewSize from memory of type\r
-  EfiReservedMemoryType.  If OldBuffer is not NULL, then the smaller of OldSize and \r
-  NewSize bytes are copied from OldBuffer to the newly allocated buffer, and \r
-  OldBuffer is freed.  A pointer to the newly allocated buffer is returned.  \r
-  If NewSize is 0, then a valid buffer of 0 size is  returned.  If there is not \r
+  EfiReservedMemoryType.  If OldBuffer is not NULL, then the smaller of OldSize and\r
+  NewSize bytes are copied from OldBuffer to the newly allocated buffer, and\r
+  OldBuffer is freed.  A pointer to the newly allocated buffer is returned.\r
+  If NewSize is 0, then a valid buffer of 0 size is  returned.  If there is not\r
   enough memory remaining to satisfy the request, then NULL is returned.\r
 \r
   If the allocation of the new buffer is successful and the smaller of NewSize and OldSize\r
@@ -769,7 +769,7 @@ ReallocateRuntimePool (
 \r
   @param  OldSize        The size, in bytes, of OldBuffer.\r
   @param  NewSize        The size, in bytes, of the buffer to reallocate.\r
-  @param  OldBuffer      The buffer to copy to the allocated buffer.  This is an optional \r
+  @param  OldBuffer      The buffer to copy to the allocated buffer.  This is an optional\r
                          parameter that may be NULL.\r
 \r
   @return A pointer to the allocated buffer or NULL if allocation fails.\r
@@ -793,7 +793,7 @@ ReallocateReservedPool (
   Frees the buffer specified by Buffer.  Buffer must have been allocated on a previous call to the\r
   pool allocation services of the Memory Allocation Library.  If it is not possible to free pool\r
   resources, then this function will perform no actions.\r
-  \r
+\r
   If Buffer was not allocated with a pool allocation function in the Memory Allocation Library,\r
   then ASSERT().\r
 \r
@@ -810,7 +810,7 @@ FreePool (
 \r
   if (!gEmuThunk->Free (Buffer)) {\r
     // The Free thunk will not free memory allocated in emulated EFI memory.\r
-    // The assmuption is this was allocated directly by EFI. We need this as some \r
+    // The assmuption is this was allocated directly by EFI. We need this as some\r
     // times protocols or EFI BootServices can return dynamically allocated buffers.\r
     Status = gBS->FreePool (Buffer);\r
     ASSERT_EFI_ERROR (Status);\r
index 5a80870f0fc197f165a6add3f6de5fed7fb446c4..e555026601b09c1f75df3dc1f00ee899c6d4030f 100644 (file)
@@ -1,6 +1,6 @@
 /*++ @file\r
 \r
-Copyright (c) 2011, Apple Inc. All rights reserved. \r
+Copyright (c) 2011, Apple Inc. All rights reserved.\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 f009d8510c78e3d1d07f4f223b294daded5785e4..0b03e416ac186e71500d221103c0a8f12e0fda67 100644 (file)
@@ -1,10 +1,10 @@
 ## @file\r
 # A library to produce the global variable 'gEmuThunk'\r
 #\r
-# This library contains a single global variable 'gEmuThunk' along with a constructor to \r
+# This library contains a single global variable 'gEmuThunk' along with a constructor to\r
 # initialize that global.\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -22,7 +22,7 @@
   FILE_GUID                      = 6B7067C7-A843-A34C-9530-48446963B740\r
   MODULE_TYPE                    = DXE_DRIVER\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = KeyMapLib \r
+  LIBRARY_CLASS                  = KeyMapLib\r
 \r
 [Sources]\r
   KeyMapLibNull.c\r
index 04be649b8296a0fdc2cdff2eaf33f390287c18f9..f50f8a46de8bc547e6027e49989df6143b6bf35d 100644 (file)
@@ -6,7 +6,7 @@
 #  read-only memory.\r
 #\r
 # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
-#  Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+#  Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 9b02316af4545eb572b0361568749a1c8a544a9e..10f588843d002400823aae3f061ab0bcc4bcded9 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
   PEI Services Table Pointer Library.\r
-  \r
+\r
   This library is used for PEIM which does executed from flash device directly but\r
   executed in memory.\r
 \r
 CONST EFI_PEI_SERVICES  **gPeiServices;\r
 \r
 /**\r
-  Caches a pointer PEI Services Table. \r
\r
-  Caches the pointer to the PEI Services Table specified by PeiServicesTablePointer \r
-  in a CPU specific manner as specified in the CPU binding section of the Platform Initialization \r
-  Pre-EFI Initialization Core Interface Specification. \r
-  \r
+  Caches a pointer PEI Services Table.\r
+\r
+  Caches the pointer to the PEI Services Table specified by PeiServicesTablePointer\r
+  in a CPU specific manner as specified in the CPU binding section of the Platform Initialization\r
+  Pre-EFI Initialization Core Interface Specification.\r
+\r
   If PeiServicesTablePointer is NULL, then ASSERT().\r
-  \r
+\r
   @param    PeiServicesTablePointer   The address of PeiServices pointer.\r
 **/\r
 VOID\r
@@ -45,10 +45,10 @@ SetPeiServicesTablePointer (
 /**\r
   Retrieves the cached value of the PEI Services Table pointer.\r
 \r
-  Returns the cached value of the PEI Services Table pointer in a CPU specific manner \r
-  as specified in the CPU binding section of the Platform Initialization Pre-EFI \r
+  Returns the cached value of the PEI Services Table pointer in a CPU specific manner\r
+  as specified in the CPU binding section of the Platform Initialization Pre-EFI\r
   Initialization Core Interface Specification.\r
-  \r
+\r
   If the cached PEI Services Table pointer is NULL, then ASSERT().\r
 \r
   @return  The pointer to PeiServices.\r
@@ -67,7 +67,7 @@ GetPeiServicesTablePointer (
 \r
 /**\r
   The constructor function caches the pointer to PEI services.\r
-  \r
+\r
   The constructor function caches the pointer to PEI services.\r
   It will always return EFI_SUCCESS.\r
 \r
index b398b53e512f8cdb4929dd98916a4339402930ba..b30ec8f0fc4d8fc5dce2d54f86992e8aa93b43a2 100644 (file)
@@ -26,7 +26,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/EmuMagicPageLib.h>\r
 \r
 //\r
-// Cache of UnixThunk protocol \r
+// Cache of UnixThunk protocol\r
 //\r
 EMU_THUNK_PROTOCOL   *mThunk = NULL;\r
 \r
@@ -45,7 +45,7 @@ EmuPeCoffGetThunkStucture (
   EMU_THUNK_PPI     *ThunkPpi;\r
   EFI_STATUS        Status;\r
 \r
-  \r
+\r
   //\r
   // Locate Unix ThunkPpi for retrieving standard output handle\r
   //\r
@@ -87,9 +87,9 @@ PeCoffLoaderRelocateImageExtraAction (
 /**\r
   Performs additional actions just before a PE/COFF image is unloaded.  Any resources\r
   that were allocated by PeCoffLoaderRelocateImageExtraAction() must be freed.\r
-  \r
+\r
   If ImageContext is NULL, then ASSERT().\r
-  \r
+\r
   @param  ImageContext  Pointer to the image context structure that describes the\r
                         PE/COFF image that is being unloaded.\r
 \r
index f05dfc1ab442a852ce3eaaa2843c771d1ab98f09..9a757f72943e079ae00aa05e027fdd1538192303 100644 (file)
@@ -3,7 +3,7 @@
 #
 # Lib to provide memory journal status code reporting Routines
 # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. 
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.
 # This program and the accompanying materials
 # are licensed and made available under the terms and conditions of the BSD License
 # which accompanies this distribution.  The full text of the license may be found at
index e229805cfedb321e75c8daf9c849898caa8ed4b0..2c47a4f006021d47bbc6c003fa1f6375e367122d 100644 (file)
@@ -68,11 +68,11 @@ PeCoffLoaderGetEntryPoint (
 }\r
 \r
 /**\r
-  Returns the machine type of PE/COFF image. \r
+  Returns the machine type of PE/COFF image.\r
   This is copied from MDE BasePeCoffGetEntryPointLib, the code should be sync with it.\r
   The reason is Emu package needs to load the image to memory to support source\r
   level debug.\r
-   \r
+\r
 \r
   @param  Pe32Data   Pointer to a PE/COFF header\r
 \r
@@ -84,7 +84,7 @@ EFIAPI
 PeCoffLoaderGetMachineType (\r
   IN  VOID  *Pe32Data\r
   )\r
-{  \r
+{\r
   EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION  Hdr;\r
   EFI_IMAGE_DOS_HEADER                 *DosHdr;\r
 \r
@@ -270,7 +270,7 @@ PeCoffGetSizeOfHeaders (
   UINTN                                 SizeOfHeaders;\r
 \r
   ASSERT (Pe32Data   != NULL);\r
\r
+\r
   DosHdr = (EFI_IMAGE_DOS_HEADER *)Pe32Data;\r
   if (DosHdr->e_magic == EFI_IMAGE_DOS_SIGNATURE) {\r
     //\r
index 9cd1fbbfe49ee276ef60b289734ac3f2f5a380ee..bf35a35f1e087eca7325d8d9f7fe585d175ea1e7 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 # PeCoffGetEntryPointLib library class for NT32 instance implemented by use NTPeiLoadFile PPI.\r
 # Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -21,7 +21,7 @@
   FILE_GUID                      = 1CBED347-7DE6-BC48-AC68-3758598124D2\r
   MODULE_TYPE                    = PEIM\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = PeCoffGetEntryPointLib \r
+  LIBRARY_CLASS                  = PeCoffGetEntryPointLib\r
 \r
 \r
 #\r
index aa4e80cf01baf892aee9093b2b5aaca67791adbb..4ff7144218ea2965fd8f8726a2448f3b92c15f8f 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
-  Serial Port Lib that thunks back to Emulator services to write to StdErr. \r
-  All read functions are stubed out. There is no constructor so this lib can \r
+  Serial Port Lib that thunks back to Emulator services to write to StdErr.\r
+  All read functions are stubed out. There is no constructor so this lib can\r
   be linked with PEI Core.\r
 \r
   Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
 \r
 /**\r
   Initialize the serial device hardware.\r
-  \r
+\r
   If no initialization is required, then return RETURN_SUCCESS.\r
   If the serial device was successfully initialized, then return RETURN_SUCCESS.\r
   If the serial device could not be initialized, then return RETURN_DEVICE_ERROR.\r
-  \r
+\r
   @retval RETURN_SUCCESS        The serial device was initialized.\r
   @retval RETURN_DEVICE_ERROR   The serial device could not be initialized.\r
 \r
@@ -46,19 +46,19 @@ SerialPortInitialize (
 }\r
 \r
 /**\r
-  Write data from buffer to serial device. \r
\r
-  Writes NumberOfBytes data bytes from Buffer to the serial device.  \r
+  Write data from buffer to serial device.\r
+\r
+  Writes NumberOfBytes data bytes from Buffer to the serial device.\r
   The number of bytes actually written to the serial device is returned.\r
   If the return value is less than NumberOfBytes, then the write operation failed.\r
-  If Buffer is NULL, then ASSERT(). \r
+  If Buffer is NULL, then ASSERT().\r
   If NumberOfBytes is zero, then return 0.\r
 \r
   @param  Buffer           The pointer to the data buffer to be written.\r
   @param  NumberOfBytes    The number of bytes to written to the serial device.\r
 \r
   @retval 0                NumberOfBytes is 0.\r
-  @retval >0               The number of bytes written to the serial device.  \r
+  @retval >0               The number of bytes written to the serial device.\r
                            If this value is less than NumberOfBytes, then the read operation failed.\r
 \r
 **/\r
@@ -86,18 +86,18 @@ SerialPortWrite (
     Thunk  = (EMU_THUNK_PROTOCOL *)ThunkPpi->Thunk ();\r
     return Thunk->WriteStdErr (Buffer, NumberOfBytes);\r
   }\r
-  \r
+\r
   return 0;\r
 }\r
 \r
 \r
 /**\r
   Read data from serial device and save the datas in buffer.\r
\r
+\r
   Reads NumberOfBytes data bytes from a serial device into the buffer\r
-  specified by Buffer. The number of bytes actually read is returned. \r
+  specified by Buffer. The number of bytes actually read is returned.\r
   If the return value is less than NumberOfBytes, then the rest operation failed.\r
-  If Buffer is NULL, then ASSERT(). \r
+  If Buffer is NULL, then ASSERT().\r
   If NumberOfBytes is zero, then return 0.\r
 \r
   @param  Buffer           The pointer to the data buffer to store the data read from the serial device.\r
index f45ce498c8000a74d565995869ec73d4d8398e7c..16450f6da323b9f56468fb1b2475cc166d5a1308 100644 (file)
@@ -2,7 +2,7 @@
 #  Write only instance of Serial Port Library with empty functions.\r
 #\r
 #  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-#  Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+#  Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -33,7 +33,7 @@
 [Packages]\r
   MdePkg/MdePkg.dec\r
   EmulatorPkg/EmulatorPkg.dec\r
-  \r
+\r
 [LibraryClasses]\r
   PeiServicesLib\r
 \r
@@ -41,5 +41,5 @@
   gEmuThunkPpiGuid                       # PPI ALWAYS_CONSUMED\r
 \r
 \r
-  \r
+\r
 \r
index 3454660fecc91d48cdbb5bdbbc237149a6196119..c34997854b1d08f33a587f81e5968e3f68d7caf6 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
   PEI Services Table Pointer Library.\r
-  \r
+\r
   This library is used for PEIM which does executed from flash device directly but\r
   executed in memory.\r
 \r
   Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-  Portiions copyrigth (c) 2011, Apple Inc. All rights reserved. \r
+  Portiions copyrigth (c) 2011, Apple Inc. All rights reserved.\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
 CONST EFI_PEI_SERVICES  **gPeiServices = NULL;\r
 \r
 /**\r
-  Caches a pointer PEI Services Table. \r
\r
-  Caches the pointer to the PEI Services Table specified by PeiServicesTablePointer \r
-  in a CPU specific manner as specified in the CPU binding section of the Platform Initialization \r
-  Pre-EFI Initialization Core Interface Specification. \r
-  \r
+  Caches a pointer PEI Services Table.\r
+\r
+  Caches the pointer to the PEI Services Table specified by PeiServicesTablePointer\r
+  in a CPU specific manner as specified in the CPU binding section of the Platform Initialization\r
+  Pre-EFI Initialization Core Interface Specification.\r
+\r
   If PeiServicesTablePointer is NULL, then ASSERT().\r
-  \r
+\r
   @param    PeiServicesTablePointer   The address of PeiServices pointer.\r
 **/\r
 VOID\r
@@ -50,10 +50,10 @@ SetPeiServicesTablePointer (
 /**\r
   Retrieves the cached value of the PEI Services Table pointer.\r
 \r
-  Returns the cached value of the PEI Services Table pointer in a CPU specific manner \r
-  as specified in the CPU binding section of the Platform Initialization Pre-EFI \r
+  Returns the cached value of the PEI Services Table pointer in a CPU specific manner\r
+  as specified in the CPU binding section of the Platform Initialization Pre-EFI\r
   Initialization Core Interface Specification.\r
-  \r
+\r
   If the cached PEI Services Table pointer is NULL, then ASSERT().\r
 \r
   @return  The pointer to PeiServices.\r
@@ -101,13 +101,13 @@ PeiServicesTablePointerNotifyCallback (
 EFI_PEI_NOTIFY_DESCRIPTOR mNotifyOnThunkList = {\r
   (EFI_PEI_PPI_DESCRIPTOR_NOTIFY_CALLBACK | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),\r
   &gEfiPeiMemoryDiscoveredPpiGuid,\r
-  PeiServicesTablePointerNotifyCallback \r
+  PeiServicesTablePointerNotifyCallback\r
 };\r
 \r
 \r
 /**\r
-  Constructor register notification on when PPI updates. If PPI is \r
-  alreay installed registering the notify will cause the handle to \r
+  Constructor register notification on when PPI updates. If PPI is\r
+  alreay installed registering the notify will cause the handle to\r
   run.\r
 \r
   @param  FileHandle   The handle of FFS header the loaded driver.\r
index 07f323a393adca62588ce75d7d89fa53528e44f3..a4844bab094d7387ab1ad30dd7dfc9df2bcbb927 100644 (file)
@@ -6,7 +6,7 @@
 #  read-only memory.\r
 #\r
 # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 4b4db5cafe93f9b3247f309a25d80655df550fd6..38ec0ea1377620424cd15c392c626af483602ab5 100644 (file)
@@ -1,12 +1,12 @@
 /** @file\r
   PEI Services Table Pointer Library.\r
-  \r
+\r
   Store PEI Services Table pointer via gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage.\r
   This emulates a platform SRAM. The PI mechaism does not work in the emulator due to\r
   lack of privledge.\r
 \r
   Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-  Portiions copyrigth (c) 2011, Apple Inc. All rights reserved. \r
+  Portiions copyrigth (c) 2011, Apple Inc. All rights reserved.\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
 \r
 /**\r
-  Caches a pointer PEI Services Table. \r
\r
-  Caches the pointer to the PEI Services Table specified by PeiServicesTablePointer \r
-  in a CPU specific manner as specified in the CPU binding section of the Platform Initialization \r
-  Pre-EFI Initialization Core Interface Specification. \r
-  \r
+  Caches a pointer PEI Services Table.\r
+\r
+  Caches the pointer to the PEI Services Table specified by PeiServicesTablePointer\r
+  in a CPU specific manner as specified in the CPU binding section of the Platform Initialization\r
+  Pre-EFI Initialization Core Interface Specification.\r
+\r
   If PeiServicesTablePointer is NULL, then ASSERT().\r
-  \r
+\r
   @param    PeiServicesTablePointer   The address of PeiServices pointer.\r
 **/\r
 VOID\r
@@ -48,10 +48,10 @@ SetPeiServicesTablePointer (
 /**\r
   Retrieves the cached value of the PEI Services Table pointer.\r
 \r
-  Returns the cached value of the PEI Services Table pointer in a CPU specific manner \r
-  as specified in the CPU binding section of the Platform Initialization Pre-EFI \r
+  Returns the cached value of the PEI Services Table pointer in a CPU specific manner\r
+  as specified in the CPU binding section of the Platform Initialization Pre-EFI\r
   Initialization Core Interface Specification.\r
-  \r
+\r
   If the cached PEI Services Table pointer is NULL, then ASSERT().\r
 \r
   @return  The pointer to PeiServices.\r
@@ -64,7 +64,7 @@ GetPeiServicesTablePointer (
   )\r
 {\r
   CONST EFI_PEI_SERVICES **PeiServicesTablePointer;\r
-  \r
+\r
   PeiServicesTablePointer = EMU_MAGIC_PAGE()->PeiServicesTablePointer;\r
   ASSERT (PeiServicesTablePointer != NULL);\r
   ASSERT (*PeiServicesTablePointer != NULL);\r
index 60c584e0e5783cc5fac7e2c8d575651604adc8b7..5c42914b453245cc895f8ffb6d2666d023ac15ef 100644 (file)
@@ -1,12 +1,12 @@
 ## @file\r
 #  PEI Services Table Pointer Library.\r
-#  \r
+#\r
 #  Store PEI Services Table pointer via gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage.\r
 #  This emulates a platform SRAM. The PI mechaism does not work in the emulator due to\r
 #  lack of privledge.\r
 #\r
 # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 caf8a7c14a02266a92f487bbd918eacf242f6fb7..4a212efbef86501cbedadc49e494e96fb5edc57c 100644 (file)
@@ -60,7 +60,7 @@ NanoSecondDelay (
   EMU_THUNK_PROTOCOL      *Thunk;\r
 \r
   //\r
-  // Locate EmuThunkPpi for \r
+  // Locate EmuThunkPpi for\r
   //\r
   Status = PeiServicesLocatePpi (\r
               &gEmuThunkPpiGuid,\r
@@ -68,7 +68,7 @@ NanoSecondDelay (
               NULL,\r
               (VOID **) &ThunkPpi\r
              );\r
-  if (!EFI_ERROR (Status)) {   \r
+  if (!EFI_ERROR (Status)) {\r
     Thunk  = (EMU_THUNK_PROTOCOL *)ThunkPpi->Thunk ();\r
     Thunk->Sleep (NanoSeconds * 100);\r
     return NanoSeconds;\r
@@ -99,7 +99,7 @@ GetPerformanceCounter (
   EMU_THUNK_PROTOCOL      *Thunk;\r
 \r
   //\r
-  // Locate EmuThunkPpi for \r
+  // Locate EmuThunkPpi for\r
   //\r
   Status = PeiServicesLocatePpi (\r
               &gEmuThunkPpiGuid,\r
@@ -107,7 +107,7 @@ GetPerformanceCounter (
               NULL,\r
               (VOID **) &ThunkPpi\r
              );\r
-  if (!EFI_ERROR (Status)) {   \r
+  if (!EFI_ERROR (Status)) {\r
     Thunk  = (EMU_THUNK_PROTOCOL *)ThunkPpi->Thunk ();\r
     return  Thunk->QueryPerformanceCounter ();\r
   }\r
@@ -150,7 +150,7 @@ GetPerformanceCounterProperties (
   EMU_THUNK_PROTOCOL      *Thunk;\r
 \r
   //\r
-  // Locate EmuThunkPpi for \r
+  // Locate EmuThunkPpi for\r
   //\r
   Status = PeiServicesLocatePpi (\r
               &gEmuThunkPpiGuid,\r
@@ -165,7 +165,7 @@ GetPerformanceCounterProperties (
     if (EndValue != NULL) {\r
       *EndValue = (UINT64)-1LL;\r
     }\r
-    \r
+\r
     Thunk  = (EMU_THUNK_PROTOCOL *)ThunkPpi->Thunk ();\r
     return  Thunk->QueryPerformanceFrequency ();\r
   }\r
index ae4ebfbdb5f3847d17a23cda7275a3c212dabc6e..7fa4ddb594db1a64e40a165e4254eb4c599b9e5d 100644 (file)
@@ -3,13 +3,13 @@
   FV.
 
 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
-This program and the accompanying materials                          
-are licensed and made available under the terms and conditions of the BSD License         
-which accompanies this distribution.  The full text of the license may be found at        
-http://opensource.org/licenses/bsd-license.php                                            
-                                                                                          
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution.  The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 **/
 
@@ -70,7 +70,7 @@ Arguments:
 
 Returns:
   Checksum of the header.
-  
+
 **/
 {
   UINT8 *ptr;
index bdbf6875c9e23c7b5e8574953650be1d6c4168e8..f9ae3e64ed425cb20ac18bf4e5be5c4085e8c66f 100644 (file)
@@ -87,8 +87,8 @@ PeiServicesReInstallPpi (
 /**\r
   This service enables PEIMs to discover a given instance of an interface.\r
 \r
-  So this is, well a hack, so we can reuse the same libraries as the PEI Core \r
-  for XIP modules.... \r
+  So this is, well a hack, so we can reuse the same libraries as the PEI Core\r
+  for XIP modules....\r
 \r
   @param  Guid                  A pointer to the GUID whose corresponding interface needs to be\r
                                 found.\r
@@ -110,11 +110,11 @@ PeiServicesLocatePpi (
   )\r
 {\r
   EFI_PEI_PPI_DESCRIPTOR *PpiList;\r
-   \r
+\r
   if (Instance != 0) {\r
     return EFI_NOT_FOUND;\r
   }\r
-  \r
+\r
   for (PpiList = EMU_MAGIC_PAGE()->PpiList; ; PpiList++) {\r
     if (CompareGuid (PpiList->Guid, Guid)) {\r
       if (PpiDescriptor != NULL) {\r
@@ -125,13 +125,13 @@ PeiServicesLocatePpi (
       }\r
       return EFI_SUCCESS;\r
     }\r
-    \r
+\r
     if ((PpiList->Flags & EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST) == EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST) {\r
       break;\r
     }\r
-  } \r
-  \r
-  \r
+  }\r
+\r
+\r
   return EFI_NOT_FOUND;\r
 }\r
 \r
@@ -139,7 +139,7 @@ PeiServicesLocatePpi (
   This service enables PEIMs to register a given service to be invoked when another service is\r
   installed or reinstalled.\r
 \r
-  @param  NotifyList            A pointer to the list of notification interfaces \r
+  @param  NotifyList            A pointer to the list of notification interfaces\r
                                 that the caller shall install.\r
 \r
   @retval EFI_SUCCESS           The interface was successfully installed.\r
@@ -200,9 +200,9 @@ PeiServicesSetBootMode (
 /**\r
   This service enables a PEIM to ascertain the address of the list of HOBs in memory.\r
 \r
-  @param  HobList               A pointer to the list of HOBs that the PEI Foundation \r
+  @param  HobList               A pointer to the list of HOBs that the PEI Foundation\r
                                 will initialize.\r
-  \r
+\r
   @retval EFI_SUCCESS           The list was successfully returned.\r
   @retval EFI_NOT_AVAILABLE_YET The HOB list is not yet published.\r
 \r
@@ -222,7 +222,7 @@ PeiServicesGetHobList (
 \r
   @param  Type                  The type of HOB to be installed.\r
   @param  Length                The length of the HOB to be added.\r
-  @param  Hob                   The address of a pointer that will contain the \r
+  @param  Hob                   The address of a pointer that will contain the\r
                                 HOB header.\r
 \r
   @retval EFI_SUCCESS           The HOB was successfully created.\r
@@ -244,7 +244,7 @@ PeiServicesCreateHob (
 /**\r
   This service enables PEIMs to discover additional firmware volumes.\r
 \r
-  @param  Instance              This instance of the firmware volume to find.  The \r
+  @param  Instance              This instance of the firmware volume to find.  The\r
                                 value 0 is the Boot Firmware Volume (BFV).\r
   @param  VolumeHandle          Handle of the firmware volume header of the volume\r
                                 to return.\r
@@ -269,9 +269,9 @@ PeiServicesFfsFindNextVolume (
   This service enables PEIMs to discover additional firmware files.\r
 \r
   @param  SearchType            A filter to find files only of this type.\r
-  @param  VolumeHandle          The pointer to the firmware volume header of the \r
-                                volume to search. This parameter must point to a \r
-                                valid FFS volume. \r
+  @param  VolumeHandle          The pointer to the firmware volume header of the\r
+                                volume to search. This parameter must point to a\r
+                                valid FFS volume.\r
   @param  FileHandle            Handle of the current file from which to begin searching.\r
 \r
   @retval EFI_SUCCESS           The file was found.\r
@@ -294,7 +294,7 @@ PeiServicesFfsFindNextFile (
   This service enables PEIMs to discover sections of a given type within a valid FFS file.\r
 \r
   @param  SectionType           The value of the section type to find.\r
-  @param  FileHandle            A pointer to the file header that contains the set \r
+  @param  FileHandle            A pointer to the file header that contains the set\r
                                 of sections to be searched.\r
   @param  SectionData           A pointer to the discovered section, if successful.\r
 \r
@@ -366,7 +366,7 @@ PeiServicesAllocatePages (
   This service allocates memory from the Hand-Off Block (HOB) heap.\r
 \r
   @param  Size                  The number of bytes to allocate from the pool.\r
-  @param  Buffer                If the call succeeds, a pointer to a pointer to \r
+  @param  Buffer                If the call succeeds, a pointer to a pointer to\r
                                 the allocate buffer; otherwise, undefined.\r
 \r
   @retval EFI_SUCCESS           The allocation was successful\r
@@ -402,13 +402,13 @@ PeiServicesResetSystem (
 }\r
 \r
 /**\r
-  This service is a wrapper for the PEI Service RegisterForShadow(), except the \r
-  pointer to the PEI Services Table has been removed.  See the Platform \r
-  Initialization Pre-EFI Initialization Core Interface Specification for details. \r
+  This service is a wrapper for the PEI Service RegisterForShadow(), except the\r
+  pointer to the PEI Services Table has been removed.  See the Platform\r
+  Initialization Pre-EFI Initialization Core Interface Specification for details.\r
 \r
   @param FileHandle             PEIM's file handle. Must be the currently\r
                                 executing PEIM.\r
-  \r
+\r
   @retval EFI_SUCCESS           The PEIM was successfully registered for\r
                                 shadowing.\r
 \r
@@ -429,9 +429,9 @@ PeiServicesRegisterForShadow (
 }\r
 \r
 /**\r
-  This service is a wrapper for the PEI Service FfsGetFileInfo(), except the pointer to the PEI Services \r
-  Table has been removed.  See the Platform Initialization Pre-EFI Initialization Core Interface \r
-  Specification for details. \r
+  This service is a wrapper for the PEI Service FfsGetFileInfo(), except the pointer to the PEI Services\r
+  Table has been removed.  See the Platform Initialization Pre-EFI Initialization Core Interface\r
+  Specification for details.\r
 \r
   @param FileHandle              The handle of the file.\r
 \r
@@ -439,15 +439,15 @@ PeiServicesRegisterForShadow (
                                   information.\r
 \r
   @retval EFI_SUCCESS             File information returned.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER   If FileHandle does not\r
                                   represent a valid file.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER   FileInfo is NULL.\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
-EFIAPI \r
+EFIAPI\r
 PeiServicesFfsGetFileInfo (\r
   IN CONST  EFI_PEI_FILE_HANDLE   FileHandle,\r
   OUT EFI_FV_FILE_INFO            *FileInfo\r
@@ -459,9 +459,9 @@ PeiServicesFfsGetFileInfo (
 \r
 \r
 /**\r
-  This service is a wrapper for the PEI Service FfsFindByName(), except the pointer to the PEI Services \r
-  Table has been removed.  See the Platform Initialization Pre-EFI Initialization Core Interface \r
-  Specification for details. \r
+  This service is a wrapper for the PEI Service FfsFindByName(), except the pointer to the PEI Services\r
+  Table has been removed.  See the Platform Initialization Pre-EFI Initialization Core Interface\r
+  Specification for details.\r
 \r
   @param FileName                 A pointer to the name of the file to\r
                                   find within the firmware volume.\r
@@ -469,7 +469,7 @@ PeiServicesFfsGetFileInfo (
   @param VolumeHandle             The firmware volume to search FileHandle\r
                                   Upon exit, points to the found file's\r
                                   handle or NULL if it could not be found.\r
-  @param FileHandle               The pointer to found file handle \r
+  @param FileHandle               The pointer to found file handle\r
 \r
   @retval EFI_SUCCESS             File was found.\r
 \r
@@ -493,9 +493,9 @@ PeiServicesFfsFindFileByName (
 \r
 \r
 /**\r
-  This service is a wrapper for the PEI Service FfsGetVolumeInfo(), except the pointer to the PEI Services \r
-  Table has been removed.  See the Platform Initialization Pre-EFI Initialization Core Interface \r
-  Specification for details. \r
+  This service is a wrapper for the PEI Service FfsGetVolumeInfo(), except the pointer to the PEI Services\r
+  Table has been removed.  See the Platform Initialization Pre-EFI Initialization Core Interface\r
+  Specification for details.\r
 \r
   @param VolumeHandle             Handle of the volume.\r
 \r
@@ -503,10 +503,10 @@ PeiServicesFfsFindFileByName (
                                   information.\r
 \r
   @retval EFI_SUCCESS             File information returned.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER   If FileHandle does not\r
                                   represent a valid file.\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER   If FileInfo is NULL.\r
 \r
 **/\r
@@ -523,32 +523,32 @@ PeiServicesFfsGetVolumeInfo (
 \r
 /**\r
   Install a EFI_PEI_FIRMWARE_VOLUME_INFO_PPI instance so the PEI Core will be notified about a new firmware volume.\r
-  \r
-  This function allocates, initializes, and installs a new EFI_PEI_FIRMWARE_VOLUME_INFO_PPI using \r
+\r
+  This function allocates, initializes, and installs a new EFI_PEI_FIRMWARE_VOLUME_INFO_PPI using\r
   the parameters passed in to initialize the fields of the EFI_PEI_FIRMWARE_VOLUME_INFO_PPI instance.\r
   If the resources can not be allocated for EFI_PEI_FIRMWARE_VOLUME_INFO_PPI, then ASSERT().\r
   If the EFI_PEI_FIRMWARE_VOLUME_INFO_PPI can not be installed, then ASSERT().\r
 \r
-  \r
-  @param  FvFormat             Unique identifier of the format of the memory-mapped \r
-                               firmware volume.  This parameter is optional and \r
-                               may be NULL.  If NULL is specified, the \r
+\r
+  @param  FvFormat             Unique identifier of the format of the memory-mapped\r
+                               firmware volume.  This parameter is optional and\r
+                               may be NULL.  If NULL is specified, the\r
                                EFI_FIRMWARE_FILE_SYSTEM2_GUID format is assumed.\r
-  @param  FvInfo               Points to a buffer which allows the \r
-                               EFI_PEI_FIRMWARE_VOLUME_PPI to process the volume. \r
-                               The format of this buffer is specific to the FvFormat. \r
-                               For memory-mapped firmware volumes, this typically \r
+  @param  FvInfo               Points to a buffer which allows the\r
+                               EFI_PEI_FIRMWARE_VOLUME_PPI to process the volume.\r
+                               The format of this buffer is specific to the FvFormat.\r
+                               For memory-mapped firmware volumes, this typically\r
                                points to the first byte of the firmware volume.\r
-  @param  FvInfoSize           The size, in bytes, of FvInfo. For memory-mapped \r
-                               firmware volumes, this is typically the size of \r
+  @param  FvInfoSize           The size, in bytes, of FvInfo. For memory-mapped\r
+                               firmware volumes, this is typically the size of\r
                                the firmware volume.\r
-  @param  ParentFvName         If the new firmware volume originated from a file \r
-                               in a different firmware volume, then this parameter \r
+  @param  ParentFvName         If the new firmware volume originated from a file\r
+                               in a different firmware volume, then this parameter\r
                                specifies the GUID name of the originating firmware\r
                                volume. Otherwise, this parameter must be NULL.\r
-  @param  ParentFileName       If the new firmware volume originated from a file \r
-                               in a different firmware volume, then this parameter \r
-                               specifies the GUID file name of the originating \r
+  @param  ParentFileName       If the new firmware volume originated from a file\r
+                               in a different firmware volume, then this parameter\r
+                               specifies the GUID file name of the originating\r
                                firmware file. Otherwise, this parameter must be NULL.\r
 **/\r
 VOID\r
index fdf8acca612926f490c273f5fb4a697bda737755..5454387eeb3e52ed8628defbb6562aee038cbe1e 100644 (file)
@@ -19,7 +19,7 @@
   FILE_GUID                      = E3E4A441-8465-0F41-8AF4-F67EBE984099\r
   MODULE_TYPE                    = PEIM\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = PeiServicesLib|SEC PEIM PEI_CORE \r
+  LIBRARY_CLASS                  = PeiServicesLib|SEC PEIM PEI_CORE\r
   PI_SPECIFICATION_VERSION       = 0x0001000A\r
 \r
 #\r
index 42c0d979425d9246af4f28c605866935ce0c7614..f9c0c3d677df788baea8e1793b6ee0123c74b3fb 100644 (file)
@@ -1,13 +1,13 @@
 /*++ @file
 
 Copyright (c) 2011, Apple Inc. All rights reserved.<BR>
-This program and the accompanying materials                          
-are licensed and made available under the terms and conditions of the BSD License         
-which accompanies this distribution.  The full text of the license may be found at        
-http://opensource.org/licenses/bsd-license.php                                            
-                                                                                          
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution.  The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 **/
 
index e4b496755aeebb58b2f512290f86d2d44ff401d6..6b1dac8efdf5707b9d7efd7c381634323cb694e8 100644 (file)
@@ -2,7 +2,7 @@
 # Place thunk PPI in HOB.\r
 #\r
 # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 3c2fd93e7faf7e5c93d1254559e28e9dabaa3b51..ba64608f4dce3225afe6da9553b14d269fae199c 100644 (file)
@@ -3,7 +3,7 @@
 \r
   Copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>\r
   Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
-  \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
@@ -30,14 +30,14 @@ GetThunkPpiList (
   )\r
 {\r
   UINTN Index;\r
-  \r
+\r
   if (gThunkPpiList == NULL) {\r
     return NULL;\r
   }\r
 \r
   Index = (gThunkPpiListSize/sizeof (EFI_PEI_PPI_DESCRIPTOR)) - 1;\r
   gThunkPpiList[Index].Flags |= EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST;\r
-  \r
+\r
   return gThunkPpiList;\r
 }\r
 \r
@@ -60,7 +60,7 @@ AddThunkPpi (
   if (gThunkPpiList == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
-  \r
+\r
   Index = (gThunkPpiListSize/sizeof (EFI_PEI_PPI_DESCRIPTOR));\r
   gThunkPpiList[Index].Flags = Flags;\r
   gThunkPpiList[Index].Guid  = Guid;\r
index 54f53ab3131e86e6e311ffcb796c1d10d7e29122..f4a7be77a3b39cb68fdcc991161a3e8be6d3939d 100644 (file)
@@ -2,7 +2,7 @@
 # Place thunk PPI in HOB.\r
 #\r
 # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 5aed594b6ed6f912d18a4583cc4c47d70a0a747a..b2daa2bef5cc4757de53ead34941f8868e7859ca 100644 (file)
@@ -3,7 +3,7 @@
 \r
   Copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>\r
   Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
-  \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
@@ -38,7 +38,7 @@ LIST_ENTRY  mThunkList = INITIALIZE_LIST_HEAD_VARIABLE (mThunkList);
 EFI_STATUS\r
 EFIAPI\r
 AddThunkProtocol (\r
-  IN  EMU_IO_THUNK_PROTOCOL   *ThunkIo,  \r
+  IN  EMU_IO_THUNK_PROTOCOL   *ThunkIo,\r
   IN  CHAR16                  *ConfigString,\r
   IN  BOOLEAN                 EmuBusDriver\r
   )\r
@@ -47,11 +47,11 @@ AddThunkProtocol (
   CHAR16                      *SubString;\r
   UINTN                       Instance;\r
   EMU_IO_THUNK_PROTOCOL_DATA  *Private;\r
-  \r
+\r
   if (ThunkIo == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   Instance = 0;\r
   StartString = AllocatePool (StrSize (ConfigString));\r
   StrCpy (StartString, ConfigString);\r
@@ -81,10 +81,10 @@ AddThunkProtocol (
     Private->Signature          = EMU_IO_THUNK_PROTOCOL_DATA_SIGNATURE;\r
     Private->EmuBusDriver       = EmuBusDriver;\r
 \r
-    CopyMem (&Private->Data, ThunkIo, sizeof (EMU_IO_THUNK_PROTOCOL));    \r
+    CopyMem (&Private->Data, ThunkIo, sizeof (EMU_IO_THUNK_PROTOCOL));\r
     Private->Data.Instance      = Instance++;\r
     Private->Data.ConfigString  = StartString;\r
-    \r
+\r
     InsertTailList (&mThunkList, &Private->Link);\r
 \r
     //\r
@@ -104,14 +104,14 @@ GetNextThunkProtocol (
   OUT EMU_IO_THUNK_PROTOCOL   **Instance  OPTIONAL\r
   )\r
 {\r
-  LIST_ENTRY                   *Link; \r
-  EMU_IO_THUNK_PROTOCOL_DATA   *Private; \r
-  \r
+  LIST_ENTRY                   *Link;\r
+  EMU_IO_THUNK_PROTOCOL_DATA   *Private;\r
+\r
   if (mThunkList.ForwardLink == &mThunkList) {\r
     // Skip parsing an empty list\r
     return EFI_NOT_FOUND;\r
   }\r
-  \r
+\r
   for (Link = mThunkList.ForwardLink; Link != &mThunkList; Link = Link->ForwardLink) {\r
     Private = CR (Link, EMU_IO_THUNK_PROTOCOL_DATA, Link, EMU_IO_THUNK_PROTOCOL_DATA_SIGNATURE);\r
     if (EmuBusDriver & !Private->EmuBusDriver) {\r
@@ -131,8 +131,8 @@ GetNextThunkProtocol (
       return EFI_SUCCESS;\r
     }\r
   }\r
-   \r
-   \r
+\r
+\r
   return EFI_NOT_FOUND;\r
 }\r
 \r
index 06668835f39bbad017b3044a12a72ebf39ad2485..5a22c2f41fe21aebb0639242d432a480bff65b91 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 #\r
 # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 52d120429f0b62f6af6ebb5ae59f7930c69f1873..d0770927404753df8a340350860095ba9e16672a 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
 \r
   MiscBaseBoardManufacturerData.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
index 04f5a1edc51da92b288b787404791607f265a404..ce217fa26365d112014cc67aaa2ea755aee8820a 100644 (file)
@@ -18,7 +18,7 @@
   This function makes boot time changes to the contents of the\r
   MiscBaseBoardManufacturer (Type 2).\r
 \r
-  @param  RecordData                 Pointer to copy of RecordData from the Data Table.  \r
+  @param  RecordData                 Pointer to copy of RecordData from the Data Table.\r
 \r
   @retval EFI_SUCCESS                All parameters were valid.\r
   @retval EFI_UNSUPPORTED            Unexpected RecordType value.\r
@@ -109,37 +109,37 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBaseBoardManufacturer)
   //\r
   // Make handle chosen by smbios protocol.add automatically.\r
   //\r
-  SmbiosRecord->Hdr.Handle = 0;  \r
+  SmbiosRecord->Hdr.Handle = 0;\r
   //\r
   // Manu will be the 1st optional string following the formatted structure.\r
-  // \r
-  SmbiosRecord->Manufacturer = 1;  \r
+  //\r
+  SmbiosRecord->Manufacturer = 1;\r
   //\r
   // ProductName will be the 2st optional string following the formatted structure.\r
-  // \r
-  SmbiosRecord->ProductName  = 2;  \r
+  //\r
+  SmbiosRecord->ProductName  = 2;\r
   //\r
   // Version will be the 3rd optional string following the formatted structure.\r
   //\r
-  SmbiosRecord->Version = 3;  \r
+  SmbiosRecord->Version = 3;\r
   //\r
   // SerialNumber will be the 4th optional string following the formatted structure.\r
   //\r
-  SmbiosRecord->SerialNumber = 4;  \r
+  SmbiosRecord->SerialNumber = 4;\r
   //\r
   // AssertTag will be the 5th optional string following the formatted structure.\r
   //\r
-  SmbiosRecord->AssetTag = 5;  \r
+  SmbiosRecord->AssetTag = 5;\r
 \r
   //\r
   // LocationInChassis will be the 6th optional string following the formatted structure.\r
   //\r
-  SmbiosRecord->LocationInChassis = 6;  \r
+  SmbiosRecord->LocationInChassis = 6;\r
   SmbiosRecord->FeatureFlag = (*(BASE_BOARD_FEATURE_FLAGS*)&(ForType2InputData->BaseBoardFeatureFlags));\r
   SmbiosRecord->ChassisHandle  = 0;\r
   SmbiosRecord->BoardType      = (UINT8)ForType2InputData->BaseBoardType;\r
   SmbiosRecord->NumberOfContainedObjectHandles = 0;\r
-  \r
+\r
   OptionalStrStart = (CHAR8 *)(SmbiosRecord + 1);\r
   //\r
   // Since we fill NumberOfContainedObjectHandles = 0 for simple, just after this filed to fill string\r
@@ -156,9 +156,9 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBaseBoardManufacturer)
   //\r
   SmbiosHandle = 0;\r
   Status = Smbios-> Add(\r
-                      Smbios, \r
+                      Smbios,\r
                       NULL,\r
-                      &SmbiosHandle, \r
+                      &SmbiosHandle,\r
                       (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord\r
                       );\r
 \r
index b9a8cede836a4c6b62ff87d2faa3a5824b7b4eb8..48f08ffa91a1e2e5c03eca2e0df4c8f7d68536f9 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
 \r
   MiscBiosVendorData.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
index 6d64ef463254eac8a3e3ec770e56769f977e91ee..7fdd47f599c2110427dc85bc52bd50a8c5f7d8c2 100644 (file)
@@ -25,9 +25,9 @@
 \r
   @retval EFI_SUCCESS               All parameters were valid and *Value & *Exponent have been set.\r
   @retval EFI_INVALID_PARAMETER     Invalid parameter was found.\r
-  \r
+\r
 **/\r
-EFI_STATUS  \r
+EFI_STATUS\r
 GetValueExponentBase2(\r
   IN OUT UINTN        *Value,\r
   OUT    UINTN        *Exponent\r
@@ -36,7 +36,7 @@ GetValueExponentBase2(
   if ((Value == NULL) || (Exponent == NULL)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   while ((*Value % 2) == 0) {\r
     *Value=*Value/2;\r
     (*Exponent)++;\r
@@ -51,15 +51,15 @@ GetValueExponentBase2(
 \r
   @param  Base2Data              Pointer to Base2_Data\r
 \r
-  @retval EFI_SUCCESS            Transform successfully.       \r
-  @retval EFI_INVALID_PARAMETER  Invalid parameter was found.    \r
+  @retval EFI_SUCCESS            Transform successfully.\r
+  @retval EFI_INVALID_PARAMETER  Invalid parameter was found.\r
 \r
 **/\r
 UINT16\r
 Base2ToByteWith64KUnit (\r
   IN      EFI_EXP_BASE2_DATA  *Base2Data\r
   )\r
-{  \r
+{\r
   UINT16              Value;\r
   UINT16              Exponent;\r
 \r
@@ -109,11 +109,11 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBiosVendor)
   }\r
 \r
   Version = (CHAR16 *) PcdGetPtr (PcdFirmwareVersionString);\r
-  if (StrLen (Version) > 0) {     \r
+  if (StrLen (Version) > 0) {\r
     TokenToUpdate = STRING_TOKEN (STR_MISC_BIOS_VERSION);\r
     HiiSetString (mHiiHandle, TokenToUpdate, Version, NULL);\r
   }\r
-  \r
+\r
   ReleaseDate = (CHAR16 *) PcdGetPtr (PcdFirmwareReleaseDateString);\r
   if (StrLen(ReleaseDate) > 0) {\r
     TokenToUpdate = STRING_TOKEN (STR_MISC_BIOS_RELEASE_DATE);\r
@@ -140,7 +140,7 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBiosVendor)
   if (DateStrLen > SMBIOS_STRING_MAX_LENGTH) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   //\r
   // Two zeros following the last string.\r
   //\r
@@ -156,7 +156,7 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBiosVendor)
   //\r
   // Vendor will be the 1st optional string following the formatted structure.\r
   //\r
-  SmbiosRecord->Vendor = 1;  \r
+  SmbiosRecord->Vendor = 1;\r
   //\r
   // Version will be the 2nd optional string following the formatted structure.\r
   //\r
@@ -191,9 +191,9 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBiosVendor)
   //\r
   SmbiosHandle = 0;\r
   Status = Smbios-> Add(\r
-                      Smbios, \r
+                      Smbios,\r
                       NULL,\r
-                      &SmbiosHandle, \r
+                      &SmbiosHandle,\r
                       (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord\r
                       );\r
 \r
index 0b7c57a8a7a887388be5ec7bbdd13a999474e187..1c184c856d0403a90e72bbe109971b87b4f305f5 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
 \r
   MiscBootInformationData.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
index 65c9792a9344011df5a478661676dbd829885a2b..98d6181501d17ccecb551bd5bd55bc01c32c8f04 100644 (file)
@@ -20,7 +20,7 @@
   This function makes boot time changes to the contents of the\r
   MiscBootInformation (Type 32).\r
 \r
-  @param  RecordData                 Pointer to copy of RecordData from the Data Table.  \r
+  @param  RecordData                 Pointer to copy of RecordData from the Data Table.\r
 \r
   @retval EFI_SUCCESS                All parameters were valid.\r
   @retval EFI_UNSUPPORTED            Unexpected RecordType value.\r
@@ -34,7 +34,7 @@ MISC_SMBIOS_TABLE_FUNCTION(BootInformationStatus)
   EFI_SMBIOS_HANDLE                  SmbiosHandle;\r
   SMBIOS_TABLE_TYPE32                *SmbiosRecord;\r
   EFI_MISC_BOOT_INFORMATION_STATUS*  ForType32InputData;\r
\r
+\r
   ForType32InputData = (EFI_MISC_BOOT_INFORMATION_STATUS *)RecordData;\r
 \r
   //\r
@@ -55,7 +55,7 @@ MISC_SMBIOS_TABLE_FUNCTION(BootInformationStatus)
   //\r
   // Make handle chosen by smbios protocol.add automatically.\r
   //\r
-  SmbiosRecord->Hdr.Handle = 0;  \r
+  SmbiosRecord->Hdr.Handle = 0;\r
   SmbiosRecord->BootStatus = (UINT8)ForType32InputData->BootInformationStatus;\r
 \r
   //\r
@@ -63,9 +63,9 @@ MISC_SMBIOS_TABLE_FUNCTION(BootInformationStatus)
   //\r
   SmbiosHandle = 0;\r
   Status = Smbios-> Add(\r
-                      Smbios, \r
+                      Smbios,\r
                       NULL,\r
-                      &SmbiosHandle, \r
+                      &SmbiosHandle,\r
                       (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord\r
                       );\r
   FreePool(SmbiosRecord);\r
index 795658bac678e5cf1409ef6b5b1409ed598c2f21..8dfc848ff2b2e8eb037b8e7ec4ea362d02a4eea7 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
 \r
   MiscChassisManufacturerData.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
index fd1262b1907f5c3ebbdddaae36581fa8bcbbd88d..8e57fd50225f58b7e587b737ebe3be663d8352c2 100644 (file)
@@ -19,7 +19,7 @@
   This function makes boot time changes to the contents of the\r
   MiscChassisManufacturer (Type 3).\r
 \r
-  @param  RecordData                 Pointer to copy of RecordData from the Data Table.  \r
+  @param  RecordData                 Pointer to copy of RecordData from the Data Table.\r
 \r
   @retval EFI_SUCCESS                All parameters were valid.\r
   @retval EFI_UNSUPPORTED            Unexpected RecordType value.\r
@@ -91,24 +91,24 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscChassisManufacturer)
   //\r
   // Make handle chosen by smbios protocol.add automatically.\r
   //\r
-  SmbiosRecord->Hdr.Handle = 0;  \r
+  SmbiosRecord->Hdr.Handle = 0;\r
   //\r
   // Manu will be the 1st optional string following the formatted structure.\r
-  // \r
-  SmbiosRecord->Manufacturer = 1;  \r
+  //\r
+  SmbiosRecord->Manufacturer = 1;\r
   SmbiosRecord->Type = (UINT8)ForType3InputData->ChassisType.ChassisType;\r
   //\r
   // Version will be the 2nd optional string following the formatted structure.\r
   //\r
-  SmbiosRecord->Version = 2;  \r
+  SmbiosRecord->Version = 2;\r
   //\r
   // SerialNumber will be the 3rd optional string following the formatted structure.\r
   //\r
-  SmbiosRecord->SerialNumber = 3;  \r
+  SmbiosRecord->SerialNumber = 3;\r
   //\r
   // AssertTag will be the 4th optional string following the formatted structure.\r
   //\r
-  SmbiosRecord->AssetTag = 4;  \r
+  SmbiosRecord->AssetTag = 4;\r
   SmbiosRecord->BootupState = (UINT8)ForType3InputData->ChassisBootupState;\r
   SmbiosRecord->PowerSupplyState = (UINT8)ForType3InputData->ChassisPowerSupplyState;\r
   SmbiosRecord->ThermalState = (UINT8)ForType3InputData->ChassisThermalState;\r
@@ -126,9 +126,9 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscChassisManufacturer)
   //\r
   SmbiosHandle = 0;\r
   Status = Smbios-> Add(\r
-                      Smbios, \r
+                      Smbios,\r
                       NULL,\r
-                      &SmbiosHandle, \r
+                      &SmbiosHandle,\r
                       (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord\r
                       );\r
 \r
index b1a9acfafd6be7784fa3a25fd46da3f7fd8ddc44..0cd0e68c707e2ea32c98083f7daaeef84a8d3153 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
\r
+\r
 Copyright (c) 2006, 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
+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
 Module Name:\r
 \r
@@ -15,7 +15,7 @@ Module Name:
 \r
 Abstract:\r
 \r
-  Misc class required EFI Device Path definitions (Ports, slots & \r
+  Misc class required EFI Device Path definitions (Ports, slots &\r
   onboard devices)\r
 \r
 **/\r
@@ -33,7 +33,7 @@ Abstract:
 #define USB1_1_STR  "ACPI(PNP0A03,0)/PCI(1D,0)."\r
 #define USB1_2_STR  "ACPI(PNP0A03,0)/PCI(1D,1)."\r
 #define USB1_3_STR  "ACPI(PNP0A03,0)/PCI(1D,2)."\r
-#define USB2_1_STR  "ACPI(PNP0A03,0)/PCI(1D,7)." \r
+#define USB2_1_STR  "ACPI(PNP0A03,0)/PCI(1D,7)."\r
 */\r
 \r
 //\r
index 88d9d0fb4bd229aa73b5afea66a56877adfd08dc..e56208ae4a02c730c5e875b651fab78ac4609252 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
 \r
   MiscNumberOfInstallableLanguagesData.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
index 9bd7f4da6a5624759b1eb1caa2a870dec76a62e6..3c3a5f3ed78ffe43074d4c646b3a800ab66b0006 100644 (file)
@@ -39,7 +39,7 @@ CurrentLanguageMatch (
   CHAR8     *MatchLang;\r
   CHAR8     *EndMatchLang;\r
   UINTN     CompareLength;\r
-  \r
+\r
   Languages = HiiGetSupportedLanguages (HiiHandle);\r
   if (Languages == NULL) {\r
     return;\r
@@ -61,10 +61,10 @@ CurrentLanguageMatch (
     CompareLength = AsciiStrLen (BestLanguage);\r
     for (MatchLang = Languages, (*Offset) = 0; MatchLang != '\0'; (*Offset)++) {\r
       //\r
-      // Seek to the end of current match language. \r
+      // Seek to the end of current match language.\r
       //\r
       for (EndMatchLang = MatchLang; *EndMatchLang != '\0' && *EndMatchLang != ';'; EndMatchLang++);\r
-  \r
+\r
       if ((EndMatchLang == MatchLang + CompareLength) && AsciiStrnCmp(MatchLang, BestLanguage, CompareLength) == 0) {\r
         //\r
         // Find the current best Language in the supported languages\r
@@ -144,7 +144,7 @@ GetSupportedLanguageNumber (
   CHAR8   *Languages;\r
   CHAR8   *LanguageString;\r
   UINT16  LangNumber;\r
-  \r
+\r
   Languages = HiiGetSupportedLanguages (HiiHandle);\r
   if (Languages == NULL) {\r
     return 0;\r
@@ -186,7 +186,7 @@ MISC_SMBIOS_TABLE_FUNCTION(NumberOfInstallableLanguages)
   EFI_SMBIOS_HANDLE                         SmbiosHandle;\r
   SMBIOS_TABLE_TYPE13                       *SmbiosRecord;\r
   EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES  *ForType13InputData;\r
\r
+\r
   ForType13InputData = (EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES *)RecordData;\r
 \r
   //\r
@@ -195,7 +195,7 @@ MISC_SMBIOS_TABLE_FUNCTION(NumberOfInstallableLanguages)
   if (RecordData == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   ForType13InputData->NumberOfInstallableLanguages = GetSupportedLanguageNumber (mHiiHandle);\r
 \r
   //\r
@@ -216,7 +216,7 @@ MISC_SMBIOS_TABLE_FUNCTION(NumberOfInstallableLanguages)
   //\r
   // Make handle chosen by smbios protocol.add automatically.\r
   //\r
-  SmbiosRecord->Hdr.Handle = 0;  \r
+  SmbiosRecord->Hdr.Handle = 0;\r
 \r
   SmbiosRecord->InstallableLanguages = (UINT8)ForType13InputData->NumberOfInstallableLanguages;\r
   SmbiosRecord->Flags = (UINT8)ForType13InputData->LanguageFlags.AbbreviatedLanguageFormat;\r
@@ -228,9 +228,9 @@ MISC_SMBIOS_TABLE_FUNCTION(NumberOfInstallableLanguages)
   //\r
   SmbiosHandle = 0;\r
   Status = Smbios-> Add(\r
-                      Smbios, \r
+                      Smbios,\r
                       NULL,\r
-                      &SmbiosHandle, \r
+                      &SmbiosHandle,\r
                       (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord\r
                       );\r
   FreePool(SmbiosRecord);\r
index 1d0781586fa29da003fd93bbd90919269edf8f77..19c7416a4451b2c5c6d427e01d2960f4df57c489 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
-  \r
+\r
     MiscOemStringData.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
index 94fc71c23119400cbb97859a8a0195bab6cf3cce..f3291828c3b9ed1bc83bc5bf567a001a5f00ce7b 100644 (file)
@@ -18,7 +18,7 @@
   This function makes boot time changes to the contents of the\r
   MiscOemString (Type 11).\r
 \r
-  @param  RecordData                 Pointer to copy of RecordData from the Data Table.  \r
+  @param  RecordData                 Pointer to copy of RecordData from the Data Table.\r
 \r
   @retval EFI_SUCCESS                All parameters were valid.\r
   @retval EFI_UNSUPPORTED            Unexpected RecordType value.\r
@@ -59,8 +59,8 @@ MISC_SMBIOS_TABLE_FUNCTION(OemString)
   SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE11);\r
   //\r
   // Make handle chosen by smbios protocol.add automatically.\r
-  // \r
-  SmbiosRecord->Hdr.Handle = 0;  \r
+  //\r
+  SmbiosRecord->Hdr.Handle = 0;\r
   SmbiosRecord->StringCount = 1;\r
   OptionalStrStart = (CHAR8 *)(SmbiosRecord + 1);\r
   UnicodeStrToAsciiStr(OemStr, OptionalStrStart);\r
@@ -70,9 +70,9 @@ MISC_SMBIOS_TABLE_FUNCTION(OemString)
   //\r
   SmbiosHandle = 0;\r
   Status = Smbios-> Add(\r
-                      Smbios, \r
+                      Smbios,\r
                       NULL,\r
-                      &SmbiosHandle, \r
+                      &SmbiosHandle,\r
                       (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord\r
                       );\r
   FreePool(SmbiosRecord);\r
index 7d511e19124a70972936724bfdcaf681b2f7ec08..0b2a22087e5d1537b55b055969fbea5a6d1b7ee7 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
 \r
   MiscPortInternalConnectorDesignatorData.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
index 89c88159135b7ff35403c281c83c171e6161d51c..e137887803c9e671db2b2b7140810d1ef6411826 100644 (file)
@@ -1,19 +1,19 @@
 /*++\r
\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
+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
 Module Name:\r
 \r
   MiscPortInternalConnectorDesignatorFunction.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
@@ -69,7 +69,7 @@ Returns:
 {\r
   CHAR8                                        *OptionalStrStart;\r
   UINTN                                        InternalRefStrLen;\r
-  UINTN                                        ExternalRefStrLen;  \r
+  UINTN                                        ExternalRefStrLen;\r
   EFI_STRING                                   InternalRef;\r
   EFI_STRING                                   ExternalRef;\r
   STRING_REF                                   TokenForInternal;\r
@@ -78,7 +78,7 @@ Returns:
   SMBIOS_TABLE_TYPE8                           *SmbiosRecord;\r
   EFI_SMBIOS_HANDLE                            SmbiosHandle;\r
   EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR  *ForType8InputData;\r
-  \r
+\r
   ForType8InputData = (EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR *)RecordData;\r
   //\r
   // First check for invalid parameters.\r
@@ -89,8 +89,8 @@ Returns:
 \r
   TokenForInternal = 0;\r
   TokenForExternal = 0;\r
-  \r
-  switch (ForType8InputData->PortInternalConnectorDesignator) { \r
+\r
+  switch (ForType8InputData->PortInternalConnectorDesignator) {\r
 \r
     case STR_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR:\r
       TokenForInternal = STRING_TOKEN (STR_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR);\r
@@ -147,13 +147,13 @@ Returns:
   //\r
   // Make handle chosen by smbios protocol.add automatically.\r
   //\r
-  SmbiosRecord->Hdr.Handle = 0;  \r
+  SmbiosRecord->Hdr.Handle = 0;\r
   SmbiosRecord->InternalReferenceDesignator = 1;\r
   SmbiosRecord->InternalConnectorType = (UINT8)ForType8InputData->PortInternalConnectorType;\r
   SmbiosRecord->ExternalReferenceDesignator = 2;\r
   SmbiosRecord->ExternalConnectorType = (UINT8)ForType8InputData->PortExternalConnectorType;\r
   SmbiosRecord->PortType = (UINT8)ForType8InputData->PortType;\r
-  \r
+\r
   OptionalStrStart = (CHAR8 *)(SmbiosRecord + 1);\r
   UnicodeStrToAsciiStr(InternalRef, OptionalStrStart);\r
   UnicodeStrToAsciiStr(ExternalRef, OptionalStrStart + InternalRefStrLen + 1);\r
@@ -163,9 +163,9 @@ Returns:
   //\r
   SmbiosHandle = 0;\r
   Status = Smbios-> Add(\r
-                      Smbios, \r
+                      Smbios,\r
                       NULL,\r
-                      &SmbiosHandle, \r
+                      &SmbiosHandle,\r
                       (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord\r
                       );\r
   FreePool(SmbiosRecord);\r
index f591a2e5477791b337b384e879b1f82d8e092453..ca9ee8caca11444de4a95f80b39be7197af74e29 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
-  \r
+\r
     MiscResetCapabilitiesData.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
index 8303c5a29b61ea88eed6245ffba281b4cf892de1..33a43a3e647aade0ac265789862c78f072d4a7ac 100644 (file)
@@ -18,7 +18,7 @@
   This function makes boot time changes to the contents of the\r
   MiscOemString (Type 11).\r
 \r
-  @param  RecordData                 Pointer to copy of RecordData from the Data Table.  \r
+  @param  RecordData                 Pointer to copy of RecordData from the Data Table.\r
 \r
   @retval EFI_SUCCESS                All parameters were valid.\r
   @retval EFI_UNSUPPORTED            Unexpected RecordType value.\r
@@ -31,7 +31,7 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscResetCapabilities)
   EFI_SMBIOS_HANDLE        SmbiosHandle;\r
   SMBIOS_TABLE_TYPE23      *SmbiosRecord;\r
   EFI_MISC_RESET_CAPABILITIES   *ForType23InputData;\r
-  \r
+\r
   ForType23InputData = (EFI_MISC_RESET_CAPABILITIES *)RecordData;\r
 \r
   //\r
@@ -52,11 +52,11 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscResetCapabilities)
   SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE23);\r
   //\r
   // Make handle chosen by smbios protocol.add automatically.\r
-  // \r
-  SmbiosRecord->Hdr.Handle    = 0;  \r
+  //\r
+  SmbiosRecord->Hdr.Handle    = 0;\r
   SmbiosRecord->Capabilities  = *(UINT8*)&(ForType23InputData->ResetCapabilities);\r
   SmbiosRecord->ResetCount    = (UINT16)ForType23InputData->ResetCount;\r
-  SmbiosRecord->ResetLimit    = (UINT16)ForType23InputData->ResetLimit;  \r
+  SmbiosRecord->ResetLimit    = (UINT16)ForType23InputData->ResetLimit;\r
   SmbiosRecord->TimerInterval = (UINT16)ForType23InputData->ResetTimerInterval;\r
   SmbiosRecord->Timeout       = (UINT16)ForType23InputData->ResetTimeout;\r
 \r
@@ -65,9 +65,9 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscResetCapabilities)
   //\r
   SmbiosHandle = 0;\r
   Status = Smbios-> Add(\r
-                      Smbios, \r
+                      Smbios,\r
                       NULL,\r
-                      &SmbiosHandle, \r
+                      &SmbiosHandle,\r
                       (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord\r
                       );\r
   FreePool(SmbiosRecord);\r
index dd759851d740019bfee11231faa49a852a21c49a..cda0d276eef66ae0fe137fc1d34eccf028826f46 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 # Parses the MiscSubclassDataTable and reports any generated data to the DataHub.\r
 #  All .uni file who tagged with "ToolCode="DUMMY"" in following file list is included by\r
-#  MiscSubclassDriver.uni file, the StrGather tool will expand MiscSubclassDriver.uni file \r
+#  MiscSubclassDriver.uni file, the StrGather tool will expand MiscSubclassDriver.uni file\r
 #  and parse all .uni file.\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
 #\r
   MiscBiosVendor.uni\r
   MiscBiosVendorData.c\r
   MiscBiosVendorFunction.c\r
-  MiscBootInformationData.c  \r
+  MiscBootInformationData.c\r
   MiscBootInformationFunction.c\r
   MiscChassisManufacturer.uni\r
   MiscChassisManufacturerData.c\r
   MiscChassisManufacturerFunction.c\r
   MiscNumberOfInstallableLanguagesData.c\r
   MiscNumberOfInstallableLanguagesFunction.c\r
-  MiscOemString.uni  \r
-  MiscOemStringData.c  \r
-  MiscOemStringFunction.c  \r
+  MiscOemString.uni\r
+  MiscOemStringData.c\r
+  MiscOemStringFunction.c\r
   MiscPortInternalConnectorDesignator.uni\r
-  MiscPortInternalConnectorDesignatorData.c  \r
+  MiscPortInternalConnectorDesignatorData.c\r
   MiscPortInternalConnectorDesignatorFunction.c\r
   MiscResetCapabilitiesData.c\r
   MiscResetCapabilitiesFunction.c\r
@@ -95,7 +95,7 @@
 [Pcd]\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareReleaseDateString\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString\r
-  gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultPlatformLang  \r
+  gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultPlatformLang\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuMemorySize\r
 \r
 \r
index cb71f7db5076444a753612db277e263aee775d02..d0be1cdca00efb3eab9610249758366dcc4ebd89 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
 \r
   MiscSubclassDriverDataTable.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
@@ -66,10 +66,10 @@ EFI_MISC_SMBIOS_DATA_TABLE  mMiscSubclassDataTable[] = {
   MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION( MiscResetCapabilities, MiscResetCapabilities),\r
   MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION(SystemLanguageString, SystemLanguageString),\r
   MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION( MiscSystemManufacturer, MiscSystemManufacturer),\r
-  MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION( SystemOptionString, SystemOptionString),  \r
-  MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION( MiscSystemSlotDesignation, MiscSystemSlotDesignation),  \r
+  MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION( SystemOptionString, SystemOptionString),\r
+  MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION( MiscSystemSlotDesignation, MiscSystemSlotDesignation),\r
   };\r
\r
+\r
 //\r
 // Number of Data Table entries.\r
 //\r
index 065ab6fef8bf856491cc10415d731467c0fb2647..88a99a210865dd275dd5d6586869b5523e30ecf2 100644 (file)
@@ -51,7 +51,7 @@ LogMemorySmbiosRecord (
 \r
   Status = gBS->LocateProtocol (&gEfiSmbiosProtocolGuid, NULL, (VOID**)&Smbios);\r
   ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
   NumSlots        = 1;\r
 \r
   //\r
@@ -63,7 +63,7 @@ LogMemorySmbiosRecord (
     TotalMemorySize += StrDecimalToUint64 (MemString);\r
     while (*MemString != '\0') {\r
       if (*MemString == '!') {\r
-        MemString++;       \r
+        MemString++;\r
         break;\r
       }\r
       MemString++;\r
@@ -85,7 +85,7 @@ LogMemorySmbiosRecord (
   Type19Record->StartingAddress = 0;\r
   Type19Record->EndingAddress =  (UINT32)RShiftU64(TotalMemorySize, 10) - 1;\r
   Type19Record->MemoryArrayHandle = 0;\r
-  Type19Record->PartitionWidth = (UINT8)(NumSlots); \r
+  Type19Record->PartitionWidth = (UINT8)(NumSlots);\r
 \r
   //\r
   // Generate Memory Array Mapped Address info (TYPE 19)\r
@@ -128,7 +128,7 @@ Returns:
 {\r
   UINTN                Index;\r
   EFI_STATUS           EfiStatus;\r
-  EFI_SMBIOS_PROTOCOL  *Smbios;  \r
+  EFI_SMBIOS_PROTOCOL  *Smbios;\r
 \r
   EfiStatus = gBS->LocateProtocol(&gEfiSmbiosProtocolGuid, NULL, (VOID**)&Smbios);\r
 \r
index 0dc706e659036cc3fb0e47fcdf4208a53db34963..347767884e6616689538dcc27e6ed2ccd8915f7d 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
 \r
   MiscSystemLanguageStringData.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
index 3e10c63caae598b8d9a710ea1feeb7d05d66b167..db15a252da9e112549148a6664dc41700b6da297 100644 (file)
@@ -18,7 +18,7 @@
   This function makes boot time changes to the contents of the\r
   MiscOemString (Type 11).\r
 \r
-  @param  RecordData                 Pointer to copy of RecordData from the Data Table.  \r
+  @param  RecordData                 Pointer to copy of RecordData from the Data Table.\r
 \r
   @retval EFI_SUCCESS                All parameters were valid.\r
   @retval EFI_UNSUPPORTED            Unexpected RecordType value.\r
@@ -34,7 +34,7 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemLanguageString)
   CHAR8                    *OptionalStrStart;\r
   EFI_STRING               Str;\r
   STRING_REF               TokenToGet;\r
-  \r
+\r
 \r
   //\r
   // First check for invalid parameters.\r
@@ -60,23 +60,23 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemLanguageString)
   SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE13);\r
   //\r
   // Make handle chosen by smbios protocol.add automatically.\r
-  // \r
+  //\r
   SmbiosRecord->Hdr.Handle    = 0;\r
   SmbiosRecord->InstallableLanguages = 1;\r
   SmbiosRecord->Flags   = 1;\r
   SmbiosRecord->CurrentLanguages = 1;\r
   OptionalStrStart = (CHAR8 *)(SmbiosRecord + 1);\r
   UnicodeStrToAsciiStr(Str, OptionalStrStart);\r
-  \r
+\r
 \r
   //\r
   // Now we have got the full smbios record, call smbios protocol to add this record.\r
   //\r
   SmbiosHandle = 0;\r
   Status = Smbios-> Add(\r
-                      Smbios, \r
+                      Smbios,\r
                       NULL,\r
-                      &SmbiosHandle, \r
+                      &SmbiosHandle,\r
                       (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord\r
                       );\r
   FreePool(SmbiosRecord);\r
index 13befc45f629362014583ffab6bb80f5733a505a..5564ad147182d424bfd428f6af17bc2c02199a87 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
 \r
   MiscSystemManufacturerData.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
index 9d2a3cbdc1f003a24683941fffd962652f64ac54..670f379f566272836f9a0c569dec77ebd99bc9d7 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
 \r
   MiscSystemManufacturerFunction.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
@@ -26,7 +26,7 @@ Abstract:
   This function makes boot time changes to the contents of the\r
   MiscSystemManufacturer (Type 1).\r
 \r
-  @param  RecordData                 Pointer to copy of RecordData from the Data Table.  \r
+  @param  RecordData                 Pointer to copy of RecordData from the Data Table.\r
 \r
   @retval EFI_SUCCESS                All parameters were valid.\r
   @retval EFI_UNSUPPORTED            Unexpected RecordType value.\r
@@ -96,8 +96,8 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemManufacturer)
   SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE1);\r
   //\r
   // Make handle chosen by smbios protocol.add automatically.\r
-  // \r
-  SmbiosRecord->Hdr.Handle = 0;  \r
+  //\r
+  SmbiosRecord->Hdr.Handle = 0;\r
   //\r
   // Manu will be the 1st optional string following the formatted structure.\r
   //\r
@@ -105,11 +105,11 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemManufacturer)
   //\r
   // ProductName will be the 2nd optional string following the formatted structure.\r
   //\r
-  SmbiosRecord->ProductName = 2;  \r
+  SmbiosRecord->ProductName = 2;\r
   //\r
-  // Version will be the 3rd optional string following the formatted structure.  \r
+  // Version will be the 3rd optional string following the formatted structure.\r
   //\r
-  SmbiosRecord->Version = 3;  \r
+  SmbiosRecord->Version = 3;\r
   //\r
   // Version will be the 4th optional string following the formatted structure.\r
   //\r
@@ -128,9 +128,9 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemManufacturer)
   //\r
   SmbiosHandle = 0;\r
   Status = Smbios-> Add(\r
-                      Smbios, \r
+                      Smbios,\r
                       NULL,\r
-                      &SmbiosHandle, \r
+                      &SmbiosHandle,\r
                       (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord\r
                       );\r
   FreePool(SmbiosRecord);\r
index 581586b85726391d20706d6e92b85b944229e409..b64181e0fb3a4c203f3050e81939bd4cb26858c2 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
 \r
   MiscSystemOptionStringData.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
index a910634f0092da315c2c44717965ba5f8de89e5a..348a33ec82577254f81afccdb8cc49f5dfeb7246 100644 (file)
@@ -20,7 +20,7 @@
   This function makes boot time changes to the contents of the\r
   MiscSystemOptionString (Type 12).\r
 \r
-  @param  RecordData                 Pointer to copy of RecordData from the Data Table.  \r
+  @param  RecordData                 Pointer to copy of RecordData from the Data Table.\r
 \r
   @retval EFI_SUCCESS                All parameters were valid.\r
   @retval EFI_UNSUPPORTED            Unexpected RecordType value.\r
@@ -50,7 +50,7 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemOptionString)
   if (OptStrLen > SMBIOS_STRING_MAX_LENGTH) {\r
     return EFI_UNSUPPORTED;\r
   }\r
\r
+\r
   //\r
   // Two zeros following the last string.\r
   //\r
@@ -62,7 +62,7 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemOptionString)
   //\r
   // Make handle chosen by smbios protocol.add automatically.\r
   //\r
-  SmbiosRecord->Hdr.Handle = 0;  \r
+  SmbiosRecord->Hdr.Handle = 0;\r
 \r
   SmbiosRecord->StringCount = 1;\r
   OptionalStrStart = (CHAR8*) (SmbiosRecord + 1);\r
@@ -72,9 +72,9 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemOptionString)
   //\r
   SmbiosHandle = 0;\r
   Status = Smbios-> Add(\r
-                      Smbios, \r
+                      Smbios,\r
                       NULL,\r
-                      &SmbiosHandle, \r
+                      &SmbiosHandle,\r
                       (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord\r
                       );\r
 \r
index 11b23393317f3ac968b9f13c5dfc15ec516b109b..3406fdbe083072979025c8b585d5f7f34ff2d539 100644 (file)
@@ -1,19 +1,19 @@
 /*++\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
+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
 Module Name:\r
-  \r
+\r
     MiscSystemSlotDesignationData.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
index 72c4137c6b6dff91e7e31eae296fc72907c3395d..3ed0fa74ca894f7f02d82c8f9ff4df2b305b34a9 100644 (file)
@@ -18,7 +18,7 @@
   This function makes boot time changes to the contents of the\r
   MiscSystemSlotDesignator structure (Type 9).\r
 \r
-  @param  RecordData                 Pointer to copy of RecordData from the Data Table.  \r
+  @param  RecordData                 Pointer to copy of RecordData from the Data Table.\r
 \r
   @retval EFI_SUCCESS                All parameters were valid.\r
   @retval EFI_UNSUPPORTED            Unexpected RecordType value.\r
@@ -47,7 +47,7 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemSlotDesignation)
 \r
   TokenToGet = 0;\r
   switch (ForType9InputData->SlotDesignation) {\r
-    case STR_MISC_SYSTEM_SLOT_DESIGNATION: \r
+    case STR_MISC_SYSTEM_SLOT_DESIGNATION:\r
       TokenToGet = STRING_TOKEN (STR_MISC_SYSTEM_SLOT_DESIGNATION);\r
       break;\r
     default:\r
@@ -59,7 +59,7 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemSlotDesignation)
   if (SlotDesignationStrLen > SMBIOS_STRING_MAX_LENGTH) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   //\r
   // Two zeros following the last string.\r
   //\r
@@ -68,28 +68,28 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemSlotDesignation)
 \r
   SmbiosRecord->Hdr.Type = EFI_SMBIOS_TYPE_SYSTEM_SLOTS;\r
   SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE9);\r
-  SmbiosRecord->Hdr.Handle = 0; \r
+  SmbiosRecord->Hdr.Handle = 0;\r
   SmbiosRecord->SlotDesignation = 1;\r
   SmbiosRecord->SlotType = ForType9InputData->SlotType;\r
   SmbiosRecord->SlotDataBusWidth = ForType9InputData->SlotDataBusWidth;\r
   SmbiosRecord->CurrentUsage = ForType9InputData->SlotUsage;\r
   SmbiosRecord->SlotLength = ForType9InputData->SlotLength;\r
   SmbiosRecord->SlotID = ForType9InputData->SlotId;\r
-  \r
+\r
   //\r
   // Slot Characteristics\r
   //\r
   CopyMem ((UINT8 *) &SmbiosRecord->SlotCharacteristics1,(UINT8 *) &ForType9InputData->SlotCharacteristics,2);\r
   OptionalStrStart = (CHAR8 *)(SmbiosRecord + 1);\r
   UnicodeStrToAsciiStr(SlotDesignation, OptionalStrStart);\r
-  //  \r
+  //\r
   // Now we have got the full smbios record, call smbios protocol to add this record.\r
   //\r
   SmbiosHandle = 0;\r
   Status = Smbios-> Add(\r
-                      Smbios, \r
+                      Smbios,\r
                       NULL,\r
-                      &SmbiosHandle, \r
+                      &SmbiosHandle,\r
                       (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord\r
                       );\r
   FreePool(SmbiosRecord);\r
index 05c34bdbb5556b1562ff1ebc82868f27a67a91a3..b7b6c015fdcc164e619a6b119fccc00952639c30 100644 (file)
@@ -3,13 +3,13 @@
 \r
 Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.\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
 #include <PiDxe.h>\r
@@ -55,14 +55,14 @@ EmuGetTime (
 /*++\r
 \r
 Routine Description:\r
-  Service routine for RealTimeClockInstance->GetTime \r
+  Service routine for RealTimeClockInstance->GetTime\r
 \r
 Arguments:\r
 \r
   Time          - A pointer to storage that will receive a snapshot of the current time.\r
 \r
   Capabilities  - A pointer to storage that will receive the capabilities of the real time clock\r
-                  in the platform. This includes the real time clock's resolution and accuracy.  \r
+                  in the platform. This includes the real time clock's resolution and accuracy.\r
                   All reported device capabilities are rounded up.  This is an OPTIONAL argument.\r
 \r
 Returns:\r
@@ -95,7 +95,7 @@ EmuSetTime (
 /*++\r
 \r
 Routine Description:\r
-  Service routine for RealTimeClockInstance->SetTime \r
+  Service routine for RealTimeClockInstance->SetTime\r
 \r
 Arguments:\r
 \r
@@ -105,7 +105,7 @@ Arguments:
 Returns:\r
 \r
   EFI_SUCEESS           - The operation completed successfully.\r
-                  \r
+\r
   EFI_INVALID_PARAMETER - One of the fields in Time is out of range.\r
 \r
   EFI_DEVICE_ERROR      - The operation could not be complete due to a device error.\r
@@ -152,7 +152,7 @@ Arguments:
 Returns:\r
 \r
   EFI_SUCEESS           - The operation completed successfully.\r
-                  \r
+\r
   EFI_DEVICE_ERROR      - The operation could not be complete due to a device error.\r
 \r
   EFI_UNSUPPORTED       - The operation is not supported on this platform.\r
@@ -184,7 +184,7 @@ Arguments:
 Returns:\r
 \r
   EFI_SUCEESS           - The operation completed successfully.\r
-                  \r
+\r
   EFI_DEVICE_ERROR      - The operation could not be complete due to a device error.\r
 \r
   EFI_INVALID_PARAMETER - A field in Time is out of range.\r
@@ -205,7 +205,7 @@ InitializeRealTimeClock (
 /*++\r
 \r
 Routine Description:\r
-  Install Real Time Clock Protocol \r
+  Install Real Time Clock Protocol\r
 \r
 Arguments:\r
   ImageHandle - Image Handle\r
@@ -244,8 +244,8 @@ RtcTimeFieldsValid (
 Routine Description:\r
 \r
   Arguments:\r
\r
-  Returns: \r
+\r
+  Returns:\r
 **/\r
 {\r
   if (Time->Year < 1998 ||\r
index bee90cb5eb347fd2afb215029dc2b347255aca96..35712ac253c13f607b182707f8f6232ae6c14d4a 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 # This real time clock module simulates virtual device by time WinAPI.\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 14594c77633cd038e5398b491891f19d25c19a05..369bc86296baf5b33e89cb90bdb7bc5cd549d88e 100644 (file)
@@ -3,13 +3,13 @@
 \r
 Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.\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
@@ -54,7 +54,7 @@ EmuResetSystem (
     for (Index = 0; Index < HandleCount; Index++) {\r
       Status = gBS->DisconnectController (HandleBuffer[Index], NULL, NULL);\r
     }\r
-  \r
+\r
     gBS->FreePool (HandleBuffer);\r
   }\r
 \r
index f95822b4bd117fc8925a6b3e91b6ff1a68f17d73..f23dc46bce0cb2f36b0a79087efc1b62af40b9b1 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 # This Reset module simulates system reset by process exit on Emulator.\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 81e478be820501641bd20ac38c2a5004d2b40a2d..39304daef11acc1cc73b6f2ebba1c0bdc4fdac38 100644 (file)
@@ -20,7 +20,7 @@
 #------------------------------------------------------------------------------\r
 \r
  .text\r
\r
+\r
 \r
 //------------------------------------------------------------------------------\r
 // VOID\r
 //   UINT32   TemporaryMemoryBase,\r
 //   UINT32   PermenentMemoryBase\r
 //   )//\r
-//------------------------------------------------------------------------------    \r
+//------------------------------------------------------------------------------\r
 ASM_GLOBAL ASM_PFX(SecSwitchStack)\r
 ASM_PFX(SecSwitchStack):\r
 #\r
 # Save three register: eax, ebx, ecx\r
-#    \r
+#\r
     push  %eax\r
     push  %ebx\r
     push  %ecx\r
     push  %edx\r
-    \r
+\r
 #\r
 # !!CAUTION!! this function address's is pushed into stack after\r
 # migration of whole temporary memory, so need save it to permenent\r
 # memory at first!\r
-#    \r
-    \r
+#\r
+\r
     movl  20(%esp), %ebx            # Save the first parameter\r
     movl  24(%esp), %ecx            # Save the second parameter\r
-    \r
+\r
 #\r
 # Save this function's return address into permenent memory at first.\r
 # Then, Fixup the esp point to permenent memory\r
@@ -77,16 +77,16 @@ ASM_PFX(SecSwitchStack):
     subl   %ebx, %eax\r
     addl   %ecx, %eax\r
     movl   %eax, %ebp                  # From now, ebp is pointed to permenent memory\r
-    \r
+\r
 #\r
 # Fixup callee's ebp point for PeiDispatch\r
-#    \r
+#\r
     movl   (%ebp), %eax\r
     subl   %ebx, %eax\r
     addl   %ecx, %eax\r
     movl   %eax, (%ebp)                # From now, Temporary's PPI caller's stack is in permenent memory\r
-#endif    \r
-    \r
+#endif\r
+\r
     pop   %edx\r
     pop   %ecx\r
     pop   %ebx\r
index 4468d6f07b2c94b302aa24b56b0574427e4477bc..8a015682ddd07a9e395f38f0ad6fb1b58ef1416c 100644 (file)
@@ -1,7 +1,7 @@
 /*++ @file
   Stub SEC that is called from the OS appliation that is the root of the emulator.
-  
-  The OS application will call the SEC with the PEI Entry Point API.  
+
+  The OS application will call the SEC with the PEI Entry Point API.
 
 Copyright (c) 2011, Apple Inc. All rights reserved.<BR>
 This program and the accompanying materials
@@ -18,7 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 
 
-EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI mSecTemporaryRamSupportPpi = { 
+EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI mSecTemporaryRamSupportPpi = {
   SecTemporaryRamSupport
 };
 
@@ -35,8 +35,8 @@ EFI_PEI_PPI_DESCRIPTOR  gPrivateDispatchTable[] = {
 
 /**
   The entry point of PE/COFF Image for the PEI Core, that has been hijacked by this
-  SEC that sits on top of an OS application. So the entry and exit of this module 
-  has the same API. 
+  SEC that sits on top of an OS application. So the entry and exit of this module
+  has the same API.
 
   This function is the entry point for the PEI Foundation, which allows the SEC phase
   to pass information about the stack, temporary RAM and the Boot Firmware Volume.
@@ -54,7 +54,7 @@ EFI_PEI_PPI_DESCRIPTOR  gPrivateDispatchTable[] = {
 
   @param SecCoreData  Points to a data structure containing information about the PEI
                       core's operating environment, such as the size and location of
-                      temporary RAM, the stack location and the BFV location. 
+                      temporary RAM, the stack location and the BFV location.
 
   @param PpiList      Points to a list of one or more PPI descriptors to be installed
                       initially by the PEI core. An empty PPI list consists of a single
@@ -65,11 +65,11 @@ EFI_PEI_PPI_DESCRIPTOR  gPrivateDispatchTable[] = {
                       and/or code in these early PPIs.
 
 **/
-VOID 
+VOID
 EFIAPI
 _ModuleEntryPoint (
   IN EFI_SEC_PEI_HAND_OFF   *SecCoreData,
-  IN EFI_PEI_PPI_DESCRIPTOR *PpiList 
+  IN EFI_PEI_PPI_DESCRIPTOR *PpiList
   )
 {
   EFI_STATUS                Status;
@@ -81,29 +81,29 @@ _ModuleEntryPoint (
   EFI_PEI_PPI_DESCRIPTOR    *SecPpiList;
   UINTN                     SecReseveredMemorySize;
   UINTN                     Index;
-  
+
   EMU_MAGIC_PAGE()->PpiList = PpiList;
   ProcessLibraryConstructorList ();
-  
+
   DEBUG ((EFI_D_ERROR, "SEC Has Started\n"));
-  
+
   //
   // Add Our PPIs to the list
   //
   SecReseveredMemorySize = sizeof (gPrivateDispatchTable);
   for (Ppi = PpiList, Index = 1; ; Ppi++, Index++) {
     SecReseveredMemorySize += sizeof (EFI_PEI_PPI_DESCRIPTOR);
-  
+
     if ((Ppi->Flags & EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST) == EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST) {
       // Since we are appending, need to clear out privious list terminator.
-      Ppi->Flags &= ~EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST; 
+      Ppi->Flags &= ~EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST;
       break;
     }
   }
-  
+
   // Keep everything on a good alignment
   SecReseveredMemorySize = ALIGN_VALUE (SecReseveredMemorySize, CPU_STACK_ALIGNMENT);
-  
+
 #if 0
   // Tell the PEI Core to not use our buffer in temp RAM
   SecPpiList = (EFI_PEI_PPI_DESCRIPTOR *)SecCoreData->PeiTemporaryRamBase;
@@ -116,12 +116,12 @@ _ModuleEntryPoint (
     // or I don't understand temp RAM correctly?
     //
     EFI_PEI_PPI_DESCRIPTOR    PpiArray[10];
-    
+
     SecPpiList = &PpiArray[0];
     ASSERT (sizeof (PpiArray) >= SecReseveredMemorySize);
   }
 #endif
-  // Copy existing list, and append our entries. 
+  // Copy existing list, and append our entries.
   CopyMem (SecPpiList, PpiList, sizeof (EFI_PEI_PPI_DESCRIPTOR) * Index);
   CopyMem (&SecPpiList[Index], gPrivateDispatchTable, sizeof (gPrivateDispatchTable));
 
@@ -130,16 +130,16 @@ _ModuleEntryPoint (
   FileHandle   = NULL;
   Status = PeiServicesFfsFindNextFile (EFI_FV_FILETYPE_PEI_CORE, VolumeHandle, &FileHandle);
   ASSERT_EFI_ERROR (Status);
-  
+
   Status = PeiServicesFfsFindSectionData (EFI_SECTION_PE32, FileHandle, &PeCoffImage);
   ASSERT_EFI_ERROR (Status);
 
   Status = PeCoffLoaderGetEntryPoint (PeCoffImage, (VOID **)&EntryPoint);
   ASSERT_EFI_ERROR (Status);
-  
+
   // Transfer control to PEI Core
   EntryPoint (SecCoreData, SecPpiList);
-  
+
   // PEI Core never returns
   ASSERT (FALSE);
   return;
index 00760121b25ea98108ae6d1c274ff2328e156ae8..4782578efa0084e57e7837da854f32c4f082052d 100644 (file)
@@ -1,7 +1,7 @@
 /*++ @file
   Stub SEC that is called from the OS appliation that is the root of the emulator.
-  
-  The OS application will call the SEC with the PEI Entry Point API.  
+
+  The OS application will call the SEC with the PEI Entry Point API.
 
 Copyright (c) 2011, Apple Inc. All rights reserved.<BR>
 This program and the accompanying materials
index b17caea0b535fb5d54913687cc1f4ad6d3c732ba..484e7a0a93f92a399db557092c81b4b0d970309f 100644 (file)
@@ -45,6 +45,6 @@
 \r
 [Ppis]\r
   gEfiTemporaryRamSupportPpiGuid\r
-  \r
+\r
 [Pcd]\r
   gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage\r
index a7219bf21f4671407b91f4fbe412d4e4d8378b89..9ed1f911e76628b80076c726d4a716bdff250200 100644 (file)
@@ -19,7 +19,7 @@
 //  SecTemporaryRamSupport (\r
 //    IN CONST EFI_PEI_SERVICES   **PeiServices,         // %rcx\r
 //    IN EFI_PHYSICAL_ADDRESS     TemporaryMemoryBase,   // %rdx\r
-//    IN EFI_PHYSICAL_ADDRESS     PermanentMemoryBase,   // %r8 \r
+//    IN EFI_PHYSICAL_ADDRESS     PermanentMemoryBase,   // %r8\r
 //    IN UINTN                    CopySize               // %r9\r
 //    )\r
 //\r
@@ -28,7 +28,7 @@ ASM_PFX(SecTemporaryRamSupport):
   // Adjust callers %rbp to account for stack move\r
   subq    %rdx, %rbp     // Calc offset of %rbp in Temp Memory\r
   addq    %r8,  %rbp     // add in permanent base to offset\r
-  \r
+\r
   pushq   %rbp           // stack frame is for the debugger\r
   movq    %rsp, %rbp\r
 \r
@@ -51,13 +51,13 @@ ASM_PFX(SecTemporaryRamSupport):
   popq    %r9           // CopySize (old stack)\r
   popq    %r8           // PermanentMemoryBase (old stack)\r
   popq    %rdx          // TemporaryMemoryBase (old stack)\r
-    \r
+\r
   movq    %rsp, %rcx    // Move to new stack\r
   subq    %rdx, %rcx    // Calc offset of stack in Temp Memory\r
   addq    %r8,  %rcx    // Calc PermanentMemoryBase address\r
-  movq    %rcx, %rsp    // Update stack \r
+  movq    %rcx, %rsp    // Update stack\r
   // Stack now points to permanent memory\r
-  \r
+\r
   // ZeroMem (TemporaryMemoryBase /* rcx */, CopySize /* rdx */);\r
   movq    %rdx, %rcx\r
   movq    %r9,  %rdx\r
index b2b7801109e7620dffef336c0e73c42d8258e4eb..33188d5e95bc738788d1e4e6c9354ed38d3dd292 100644 (file)
@@ -3,13 +3,13 @@
 \r
 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.\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
@@ -41,7 +41,7 @@ Routine Description:
 Arguments:\r
 \r
   PeiServices - General purpose services available to every PEIM.\r
-    \r
+\r
 Returns:\r
 \r
   None\r
index a3dece4c35af6fdea0b7f4fa13866cc59e0bbb82..d0fcc952ed2323a05d53535bdfae738be3c9f821 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 # Tiano PEIM to abstract construction of firmware volume in a Emu environment.\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 27fc676b717a0ac20e2c9a9576cdd34bfcd97163..ca5b43b0250dee0edf088805609dbee97f925f53 100644 (file)
@@ -5,13 +5,13 @@
 \r
 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.\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
index b18be56e280fa94642984678b5946e243faf394a..713f8eac0ba331a9990c40ad23bc3ee39a0528a3 100644 (file)
@@ -2,7 +2,7 @@
 # Emu Emulation Timer Architectural Protocol Driver as defined in DXE CIS\r
 #\r
 # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# Portions copyright (c) 2011, Apple Inc. All rights reserved. \r
+# Portions copyright (c) 2011, Apple Inc. All rights reserved.\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 428e6556317d79e1e318089a0e0f01b851a37b2e..14a398d62abe668e31f64859a8975e1860479af2 100644 (file)
@@ -68,9 +68,9 @@ define RemoveFirmwareSymbolFile
 end
 
 if gInXcode == 1
-  # in Xcode the program is already runing. Issuing a run command 
+  # in Xcode the program is already runing. Issuing a run command
   # will cause a fatal debugger error. The break point sciprt that
-  # is used to source this script sets gInCode to 1. 
+  # is used to source this script sets gInCode to 1.
 else
   #
   # Start the program running
index 519d394e37254863fe788bd9aa57cf9ee68e54e2..b94da9ee824e65eb07dd9419abbb955d59356347 100644 (file)
@@ -1,19 +1,19 @@
 /**@file\r
- Berkeley Packet Filter implementation of the EMU_SNP_PROTOCOL that allows the \r
+ Berkeley Packet Filter implementation of the EMU_SNP_PROTOCOL that allows the\r
  emulator to get on real networks.\r
 \r
- Tested on Mac OS X. \r
+ Tested on Mac OS X.\r
 \r
 Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>\r
 Portitions copyright (c) 2011, Apple Inc. All rights reserved.\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
@@ -87,7 +87,7 @@ EmuSnpCreateMapping (
   Private = EMU_SNP_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   Private->Mode = Mode;\r
-  \r
+\r
   //\r
   // Set the broadcast address.\r
   //\r
@@ -164,11 +164,11 @@ OpenBpfFileDescriptor (
     if (errno == EACCES) {\r
       printf (\r
         "SNP: Permissions on '%s' are incorrect.  Fix with 'sudo chmod 666 %s'.\n",\r
-        BfpDeviceName, \r
-        BfpDeviceName \r
+        BfpDeviceName,\r
+        BfpDeviceName\r
         );\r
     }\r
-    \r
+\r
     if (errno != EBUSY) {\r
       break;\r
     }\r
@@ -234,7 +234,7 @@ EmuSnpStart (
                if (ioctl (Private->BpfFd, BIOCGBLEN, &ReadBufferSize) < 0) {\r
                        goto DeviceErrorExit;\r
                }\r
-               \r
+\r
                //\r
                // Default value from BIOCGBLEN is usually too small, so use a much larger size, if necessary.\r
                //\r
@@ -244,7 +244,7 @@ EmuSnpStart (
                                goto DeviceErrorExit;\r
                        }\r
                }\r
-               \r
+\r
                //\r
     // Associate our interface with this BPF file descriptor.\r
     //\r
@@ -302,7 +302,7 @@ EmuSnpStart (
     if ( FilterProgram == NULL ) {\r
       goto ErrorExit;\r
     }\r
-    \r
+\r
     CopyMem (FilterProgram, &mFilterInstructionTemplate, sizeof (mFilterInstructionTemplate));\r
 \r
     //\r
@@ -330,7 +330,7 @@ EmuSnpStart (
     }\r
 \r
 \r
-    Private->Mode->State = EfiSimpleNetworkStarted;      \r
+    Private->Mode->State = EfiSimpleNetworkStarted;\r
   }\r
 \r
   return Status;\r
@@ -397,8 +397,8 @@ EmuSnpStop (
 \r
 \r
 /**\r
-  Resets a network adapter and allocates the transmit and receive buffers \r
-  required by the network interface; optionally, also requests allocation \r
+  Resets a network adapter and allocates the transmit and receive buffers\r
+  required by the network interface; optionally, also requests allocation\r
   of additional transmit and receive buffers.\r
 \r
   @param  This              The protocol instance pointer.\r
@@ -457,8 +457,8 @@ EmuSnpInitialize (
 \r
 \r
 /**\r
-  Resets a network adapter and re-initializes it with the parameters that were \r
-  provided in the previous call to Initialize().  \r
+  Resets a network adapter and re-initializes it with the parameters that were\r
+  provided in the previous call to Initialize().\r
 \r
   @param  This                 The protocol instance pointer.\r
   @param  ExtendedVerification Indicates that the driver may perform a more\r
@@ -500,7 +500,7 @@ EmuSnpReset (
 \r
 \r
 /**\r
-  Resets a network adapter and leaves it in a state that is safe for \r
+  Resets a network adapter and leaves it in a state that is safe for\r
   another driver to initialize.\r
 \r
   @param  This Protocol instance pointer.\r
@@ -701,7 +701,7 @@ EmuSnpMCastIpToMac (
 \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
@@ -737,7 +737,7 @@ EmuSnpNvData (
 }\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
@@ -810,7 +810,7 @@ EmuSnpGetStatus (
 \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
@@ -857,7 +857,7 @@ EmuSnpTransmit (
   if (write  (Private->BpfFd, Buffer, BufferSize) < 0) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -917,13 +917,13 @@ EmuSnpReceive (
   }\r
 \r
        ZeroMem (&BpfStats, sizeof( BpfStats));\r
-       \r
+\r
        if (ioctl (Private->BpfFd, BIOCGSTATS, &BpfStats) == 0) {\r
                Private->ReceivedPackets += BpfStats.bs_recv;\r
                if (BpfStats.bs_drop > Private->DroppedPackets) {\r
                        printf (\r
                          "SNP: STATS: RCVD = %d DROPPED = %d.  Probably need to increase BPF PcdNetworkPacketFilterSize?\n",\r
-                               BpfStats.bs_recv, \r
+                               BpfStats.bs_recv,\r
                                BpfStats.bs_drop - Private->DroppedPackets\r
                                );\r
                        Private->DroppedPackets = BpfStats.bs_drop;\r
@@ -1053,26 +1053,26 @@ EmuSnpThunkOpen (
   )\r
 {\r
   EMU_SNP_PRIVATE  *Private;\r
-  \r
+\r
   if (This->Private != NULL) {\r
     return EFI_ALREADY_STARTED;\r
   }\r
-  \r
+\r
   if (!CompareGuid (This->Protocol, &gEmuSnpProtocolGuid)) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   Private = malloc (sizeof (EMU_SNP_PRIVATE));\r
   if (Private == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
-  \r
+\r
   Private->Signature = EMU_SNP_PRIVATE_SIGNATURE;\r
   Private->Thunk     = This;\r
   CopyMem (&Private->EmuSnp, &gEmuSnpProtocol, sizeof (gEmuSnpProtocol));\r
   GetInterfaceMacAddr (Private);\r
-  \r
+\r
   This->Interface = &Private->EmuSnp;\r
   This->Private   = Private;\r
   return EFI_SUCCESS;\r
@@ -1089,10 +1089,10 @@ EmuSnpThunkClose (
   if (!CompareGuid (This->Protocol, &gEmuSnpProtocolGuid)) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   Private = This->Private;\r
   free (Private);\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
index bb2da24d8539cd87b047457340f9d0828e4db330..657ce34e4589a40e89381326621b28f68b26b80b 100644 (file)
@@ -1,13 +1,13 @@
 /**@file\r
 \r
 Copyright (c) 2004 - 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
+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
@@ -69,7 +69,7 @@ SetFilePointer64 (
   res = lseek (Private->fd, offset, (int)MoveMethod);\r
   if (res == -1) {\r
     Status = EFI_INVALID_PARAMETER;\r
-  } \r
+  }\r
 \r
   if (NewFilePointer != NULL) {\r
     *NewFilePointer = res;\r
@@ -123,13 +123,13 @@ EmuBlockIoOpenDevice (
     Status = EFI_UNSUPPORTED;\r
     goto Done;\r
   }\r
-  \r
+\r
   if (FileSize == 0) {\r
     // lseek fails on a real device. ioctl calls are OS specific\r
 #if __APPLE__\r
     {\r
       UINT32 BlockSize;\r
-     \r
+\r
       if (ioctl (Private->fd, DKIOCGETBLOCKSIZE, &BlockSize) == 0) {\r
         Private->Media->BlockSize = BlockSize;\r
       }\r
@@ -141,13 +141,13 @@ EmuBlockIoOpenDevice (
           Private->Media->LastBlock = Private->NumberOfBlocks - 1;\r
         }\r
       }\r
-      ioctl (Private->fd, DKIOCGETMAXBLOCKCOUNTWRITE, &Private->Media->OptimalTransferLengthGranularity);  \r
+      ioctl (Private->fd, DKIOCGETMAXBLOCKCOUNTWRITE, &Private->Media->OptimalTransferLengthGranularity);\r
     }\r
-#else \r
+#else\r
     {\r
       size_t BlockSize;\r
       UINT64 DiskSize;\r
-      \r
+\r
       if (ioctl (Private->fd, BLKSSZGET, &BlockSize) == 0) {\r
         Private->Media->BlockSize = BlockSize;\r
       }\r
@@ -157,12 +157,12 @@ EmuBlockIoOpenDevice (
       }\r
     }\r
 #endif\r
-    \r
+\r
   } else {\r
     Private->Media->BlockSize = Private->BlockSize;\r
     Private->NumberOfBlocks = DivU64x32 (FileSize, Private->Media->BlockSize);\r
     Private->Media->LastBlock = Private->NumberOfBlocks - 1;\r
-    \r
+\r
     if (fstatfs (Private->fd, &buf) == 0) {\r
 #if __APPLE__\r
       Private->Media->OptimalTransferLengthGranularity = buf.f_iosize/buf.f_bsize;\r
@@ -170,7 +170,7 @@ EmuBlockIoOpenDevice (
       Private->Media->OptimalTransferLengthGranularity = buf.f_bsize/buf.f_bsize;\r
 #endif\r
     }\r
-  } \r
+  }\r
 \r
   DEBUG ((EFI_D_INIT, "%HEmuOpenBlock: opened %a%N\n", Private->Filename));\r
   Status = EFI_SUCCESS;\r
@@ -198,7 +198,7 @@ EmuBlockIoCreateMapping (
   Private = EMU_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   Private->Media = Media;\r
-  \r
+\r
   Media->MediaId          = 0;\r
   Media->RemovableMedia   = Private->RemovableMedia;\r
   Media->MediaPresent     = TRUE;\r
@@ -207,18 +207,18 @@ EmuBlockIoCreateMapping (
   Media->WriteCaching     = FALSE;\r
   Media->IoAlign          = 1;\r
   Media->LastBlock        = 0; // Filled in by OpenDevice\r
-  \r
+\r
   // EFI_BLOCK_IO_PROTOCOL_REVISION2\r
   Media->LowestAlignedLba              = 0;\r
-  Media->LogicalBlocksPerPhysicalBlock = 0; \r
-    \r
+  Media->LogicalBlocksPerPhysicalBlock = 0;\r
+\r
 \r
   // EFI_BLOCK_IO_PROTOCOL_REVISION3\r
   Media->OptimalTransferLengthGranularity = 0;\r
-    \r
+\r
   Status = EmuBlockIoOpenDevice (Private);\r
 \r
-  \r
+\r
   return Status;\r
 }\r
 \r
@@ -299,7 +299,7 @@ EmuBlockIoReadWriteCommon (
   if ((UINTN) Buffer % Private->Media->IoAlign != 0) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // Verify buffer size\r
   //\r
@@ -336,7 +336,7 @@ EmuBlockIoReadWriteCommon (
 \r
 /**\r
   Read BufferSize bytes from Lba into Buffer.\r
-  \r
+\r
   This function reads the requested number of blocks from the device. All the\r
   blocks are read, or an error is returned.\r
   If EFI_DEVICE_ERROR, EFI_NO_MEDIA,_or EFI_MEDIA_CHANGED is returned and\r
@@ -344,13 +344,13 @@ EmuBlockIoReadWriteCommon (
   not be signaled.\r
 \r
   @param[in]       This       Indicates a pointer to the calling context.\r
-  @param[in]       MediaId    Id of the media, changes every time the media is \r
+  @param[in]       MediaId    Id of the media, changes every time the media is\r
                               replaced.\r
   @param[in]       Lba        The starting Logical Block Address to read from.\r
   @param[in, out]  Token           A pointer to the token associated with the transaction.\r
-  @param[in]       BufferSize Size of Buffer, must be a multiple of device block size.  \r
-  @param[out]      Buffer     A pointer to the destination buffer for the data. The \r
-                              caller is responsible for either having implicit or \r
+  @param[in]       BufferSize Size of Buffer, must be a multiple of device block size.\r
+  @param[out]      Buffer     A pointer to the destination buffer for the data. The\r
+                              caller is responsible for either having implicit or\r
                               explicit ownership of the buffer.\r
 \r
   @retval EFI_SUCCESS           The read request was queued if Token->Event is\r
@@ -362,7 +362,7 @@ EmuBlockIoReadWriteCommon (
   @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
                                 intrinsic 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_OUT_OF_RESOURCES  The request could not be completed due to a lack\r
                                 of resources.\r
@@ -438,7 +438,7 @@ Done:
   @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the write.\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
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack\r
                                 of resources.\r
@@ -495,10 +495,10 @@ Done:
 \r
 /**\r
   Flush the Block Device.\r
\r
+\r
   If EFI_DEVICE_ERROR, EFI_NO_MEDIA,_EFI_WRITE_PROTECTED or EFI_MEDIA_CHANGED\r
   is returned and non-blocking I/O is being used, the Event associated with\r
-  this request will not be signaled.  \r
+  this request will not be signaled.\r
 \r
   @param[in]      This     Indicates a pointer to the calling context.\r
   @param[in,out]  Token    A pointer to the token associated with the transaction\r
@@ -531,8 +531,8 @@ EmuBlockIoFlushBlocks (
     fcntl (Private->fd, F_FULLFSYNC);\r
 #endif\r
   }\r
-  \r
-  \r
+\r
+\r
   if (Token != NULL) {\r
     if (Token->Event != NULL) {\r
       // Caller is responcible for signaling EFI Event\r
@@ -540,7 +540,7 @@ EmuBlockIoFlushBlocks (
       return EFI_SUCCESS;\r
     }\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -585,18 +585,18 @@ StdDupUnicodeToAscii (
   UINTN   Size;\r
   char    *Ascii;\r
   char    *Ptr;\r
-  \r
+\r
   Size = StrLen (Str) + 1;\r
   Ascii = malloc (Size);\r
   if (Ascii == NULL) {\r
     return NULL;\r
   }\r
-  \r
+\r
   for (Ptr = Ascii; *Str != '\0'; Ptr++, Str++) {\r
     *Ptr = *Str;\r
   }\r
   *Ptr = 0;\r
-  \r
+\r
   return Ascii;\r
 }\r
 \r
@@ -616,32 +616,32 @@ EmuBlockIoThunkOpen (
 {\r
   EMU_BLOCK_IO_PRIVATE  *Private;\r
   char                  *Str;\r
-  \r
+\r
   if (This->Private != NULL) {\r
     return EFI_ALREADY_STARTED;\r
   }\r
-  \r
+\r
   if (!CompareGuid (This->Protocol, &gEmuBlockIoProtocolGuid)) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   Private = malloc (sizeof (EMU_BLOCK_IO_PRIVATE));\r
   if (Private == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
-  \r
+\r
   Private->Signature = EMU_BLOCK_IO_PRIVATE_SIGNATURE;\r
   Private->Thunk     = This;\r
   CopyMem (&Private->EmuBlockIo, &gEmuBlockIoProtocol, sizeof (gEmuBlockIoProtocol));\r
   Private->fd        = -1;\r
   Private->BlockSize = 512;\r
\r
+\r
   Private->Filename = StdDupUnicodeToAscii (This->ConfigString);\r
   if (Private->Filename == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
\r
+\r
   Str = strstr (Private->Filename, ":");\r
   if (Str == NULL) {\r
     Private->RemovableMedia = FALSE;\r
@@ -660,7 +660,7 @@ EmuBlockIoThunkOpen (
       }\r
     }\r
   }\r
-  \r
+\r
   This->Interface = &Private->EmuBlockIo;\r
   This->Private   = Private;\r
   return EFI_SUCCESS;\r
@@ -677,17 +677,17 @@ EmuBlockIoThunkClose (
   if (!CompareGuid (This->Protocol, &gEmuBlockIoProtocolGuid)) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   Private = This->Private;\r
-  \r
+\r
   if (This->Private != NULL) {\r
     if (Private->Filename != NULL) {\r
       free (Private->Filename);\r
-    }   \r
+    }\r
     free (This->Private);\r
     This->Private = NULL;\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
index fe68603d3f678e3660040de9f6bbee9c899c6b73..d9816298d4efd13554959071cd577a85c918c550 100644 (file)
@@ -1,5 +1,5 @@
 /*++ @file
-  Since the SEC is the only program in our emulation we 
+  Since the SEC is the only program in our emulation we
   must use a UEFI/PI mechanism to export APIs to other modules.
   This is the role of the EFI_EMU_THUNK_PROTOCOL.
 
 
 Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>
 Portions copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>
-This program and the accompanying materials                          
-are licensed and made available under the terms and conditions of the BSD License         
-which accompanies this distribution.  The full text of the license may be found at        
-http://opensource.org/licenses/bsd-license.php                                            
-                                                                                          
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
+This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution.  The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 **/
 
@@ -48,9 +48,9 @@ SecWriteStdErr (
   )
 {
   ssize_t Return;
-  
+
   Return = write (STDERR_FILENO, (const void *)Buffer, (size_t)NumberOfBytes);
-  
+
   return (Return == -1) ? 0 : Return;
 }
 
@@ -61,16 +61,16 @@ SecConfigStdIn (
   )
 {
   struct termios tty;
-  
+
   //
   // Need to turn off line buffering, ECHO, and make it unbuffered.
   //
   tcgetattr (STDIN_FILENO, &tty);
   tty.c_lflag &= ~(ICANON | ECHO);
   tcsetattr (STDIN_FILENO, TCSANOW, &tty);
-  
+
 //  setvbuf (STDIN_FILENO, NULL, _IONBF, 0);
-  
+
   // now ioctl FIONREAD will do what we need
   return EFI_SUCCESS;
 }
@@ -82,9 +82,9 @@ SecWriteStdOut (
   )
 {
   ssize_t Return;
-  
+
   Return = write (STDOUT_FILENO, (const void *)Buffer, (size_t)NumberOfBytes);
-  
+
   return (Return == -1) ? 0 : Return;
 }
 
@@ -95,9 +95,9 @@ SecReadStdIn (
   )
 {
   ssize_t Return;
-  
+
   Return = read (STDIN_FILENO, Buffer, (size_t)NumberOfBytes);
-  
+
   return (Return == -1) ? 0 : Return;
 }
 
@@ -108,12 +108,12 @@ SecPollStdIn (
 {
   int Result;
   int Bytes;
-  
+
   Result = ioctl (STDIN_FILENO, FIONREAD, &Bytes);
   if (Result == -1) {
     return FALSE;
   }
-  
+
   return (BOOLEAN)(Bytes > 0);
 }
 
@@ -144,7 +144,7 @@ SecFree (
     // So don't free those ranges and let the caller know.
     return FALSE;
   }
-  
+
   free (Ptr);
   return TRUE;
 }
@@ -158,10 +158,10 @@ settimer_handler (int sig)
 
   gettimeofday (&timeval, NULL);
   delta = ((UINT64)timeval.tv_sec * 1000) + (timeval.tv_usec / 1000)
-    - ((UINT64)settimer_timeval.tv_sec * 1000) 
+    - ((UINT64)settimer_timeval.tv_sec * 1000)
     - (settimer_timeval.tv_usec / 1000);
   settimer_timeval = timeval;
-  
+
   if (settimer_callback) {
     ReverseGasketUint64 (settimer_callback, delta);
   }
@@ -196,7 +196,7 @@ SecSetTimer (
   timerval.it_value.tv_usec = remainder * 1000;
   timerval.it_value.tv_sec = DivU64x32(PeriodMs, 1000);
   timerval.it_interval = timerval.it_value;
-  
+
   if (setitimer (ITIMER_REAL, &timerval, NULL) != 0) {
     printf ("SetTimer: setitimer error %s\n", strerror (errno));
   }
@@ -212,7 +212,7 @@ SecEnableInterrupt (
   sigset_t  sigset;
 
   gEmulatorInterruptEnabled = TRUE;
-  // Since SetTimer() uses SIGALRM we emulate turning on and off interrupts 
+  // Since SetTimer() uses SIGALRM we emulate turning on and off interrupts
   // by enabling/disabling SIGALRM.
   sigemptyset (&sigset);
   sigaddset (&sigset, SIGALRM);
@@ -227,7 +227,7 @@ SecDisableInterrupt (
 {
   sigset_t  sigset;
 
-  // Since SetTimer() uses SIGALRM we emulate turning on and off interrupts 
+  // Since SetTimer() uses SIGALRM we emulate turning on and off interrupts
   // by enabling/disabling SIGALRM.
   sigemptyset (&sigset);
   sigaddset (&sigset, SIGALRM);
@@ -262,11 +262,11 @@ QueryPerformanceCounter (
   Nanoseconds     elapsedNano;
 
   Start = mach_absolute_time ();
-  
+
   // Convert to nanoseconds.
 
-  // Have to do some pointer fun because AbsoluteToNanoseconds 
-  // works in terms of UnsignedWide, which is a structure rather 
+  // Have to do some pointer fun because AbsoluteToNanoseconds
+  // works in terms of UnsignedWide, which is a structure rather
     // than a proper 64-bit integer.
   elapsedNano = AbsoluteToNanoseconds (*(AbsoluteTime *) &Start);
 
@@ -276,7 +276,7 @@ QueryPerformanceCounter (
   return 0;
 #endif
 }
-  
+
 
 
 VOID
@@ -287,12 +287,12 @@ SecSleep (
   struct timespec rq, rm;
   struct timeval  start, end;
   unsigned long  MicroSec;
-  
+
   rq.tv_sec  = DivU64x32 (Nanoseconds, 1000000000);
   rq.tv_nsec = ModU64x32 (Nanoseconds, 1000000000);
 
   //
-  // nanosleep gets interrupted by our timer tic. 
+  // nanosleep gets interrupted by our timer tic.
   // we need to track wall clock time or we will stall for way too long
   //
   gettimeofday (&start, NULL);
@@ -314,7 +314,7 @@ SecSleep (
       break;
     }
     rq = rm;
-  } 
+  }
 }
 
 
@@ -328,7 +328,7 @@ SecCpuSleep (
   // nanosleep gets interrupted by the timer tic
   rq.tv_sec  = 1;
   rq.tv_nsec = 0;
-  
+
   nanosleep (&rq, &rm);
 }
 
@@ -364,7 +364,7 @@ SecGetTime (
   Time->TimeZone = timezone;
   Time->Daylight = (daylight ? EFI_TIME_ADJUST_DAYLIGHT : 0)
     | (tm->tm_isdst > 0 ? EFI_TIME_IN_DAYLIGHT : 0);
-    
+
   if (Capabilities != NULL) {
     Capabilities->Resolution  = 1;
     Capabilities->Accuracy    = 50000000;
@@ -414,9 +414,9 @@ EMU_THUNK_PROTOCOL gEmuThunkProtocol = {
   GasketSecSleep,
   GasketSecCpuSleep,
   GasketSecExit,
-  GasketSecGetTime,                
+  GasketSecGetTime,
   GasketSecSetTime,
-  GasketSecSetTimer,  
+  GasketSecSetTimer,
   GasketSecGetNextProtocol
 };
 
index 2c59a562e6436633c4f922050e47a9c64b03b95c..f1cf4c7ef47e38ffafe778fcbed574d7d843ed98 100644 (file)
@@ -39,7 +39,7 @@ GasketSecWriteStdOut (
   IN UINT8     *Buffer,\r
   IN UINTN     NumberOfBytes\r
   );\r
-  \r
+\r
 UINTN\r
 EFIAPI\r
 GasketSecReadStdIn (\r
@@ -64,7 +64,7 @@ EFIAPI
 GasketSecValloc (\r
   IN  UINTN Size\r
   );\r
-  \r
+\r
 BOOLEAN\r
 EFIAPI\r
 GasketSecFree (\r
@@ -109,8 +109,8 @@ EFIAPI
 GasketSecDisableInterrupt (\r
   VOID\r
   );\r
-  \r
-UINT64  \r
+\r
+UINT64\r
 EFIAPI\r
 GasketQueryPerformanceFrequency (\r
   VOID\r
@@ -128,7 +128,7 @@ EFIAPI
 GasketSecSleep (\r
   IN  UINT64 Nanoseconds\r
   );\r
-  \r
+\r
 VOID\r
 EFIAPI\r
 GasketSecCpuSleep (\r
@@ -162,9 +162,9 @@ GasketSecGetNextProtocol (
   );\r
 \r
 \r
-// PPIs produced by SEC  \r
+// PPIs produced by SEC\r
+\r
 \r
-  \r
 EFI_STATUS\r
 EFIAPI\r
 GasketSecUnixPeiAutoScan (\r
@@ -172,21 +172,21 @@ GasketSecUnixPeiAutoScan (
   OUT EFI_PHYSICAL_ADDRESS  *MemoryBase,\r
   OUT UINT64                *MemorySize\r
   );\r
-  \r
+\r
 VOID *\r
 EFIAPI\r
 GasketSecEmuThunkAddress (\r
   VOID\r
   );\r
 \r
\r
+\r
 EFI_STATUS\r
 EFIAPI\r
 GasketSecUnixUnixFwhAddress (\r
   IN OUT UINT64                *FwhSize,\r
   IN OUT EFI_PHYSICAL_ADDRESS  *FwhBase\r
   );\r
-  \r
+\r
 \r
 \r
 //\r
@@ -244,17 +244,17 @@ GasketX11KeySetState (
   EMU_GRAPHICS_WINDOW_PROTOCOL  *GraphicsWindowsIo,\r
   EFI_KEY_TOGGLE_STATE          *KeyToggleState\r
   );\r
-  \r
+\r
 EFI_STATUS\r
-EFIAPI  \r
-GasketX11RegisterKeyNotify ( \r
-  IN EMU_GRAPHICS_WINDOW_PROTOCOL                         *GraphicsWindowsIo, \r
+EFIAPI\r
+GasketX11RegisterKeyNotify (\r
+  IN EMU_GRAPHICS_WINDOW_PROTOCOL                         *GraphicsWindowsIo,\r
   IN EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK     MakeCallBack,\r
   IN EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK     BreakCallBack,\r
   IN VOID                                                 *Context\r
   );\r
 \r
-  \r
+\r
 EFI_STATUS\r
 EFIAPI\r
 GasketX11Blt (\r
@@ -270,10 +270,10 @@ GasketX11CheckPointer (
   EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsWindowsIo\r
   );\r
 \r
-EFI_STATUS \r
-EFIAPI \r
+EFI_STATUS\r
+EFIAPI\r
 GasketX11GetPointerState (\r
-  EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsWindowsIo, \r
+  EMU_GRAPHICS_WINDOW_PROTOCOL *GraphicsWindowsIo,\r
   EFI_SIMPLE_POINTER_STATE *state\r
   );\r
 \r
@@ -282,7 +282,7 @@ EFIAPI
 GasketX11GraphicsWindowOpen (\r
   IN  EMU_IO_THUNK_PROTOCOL   *This\r
   );\r
\r
+\r
 EFI_STATUS\r
 EFIAPI\r
 GasketX11GraphicsWindowClose (\r
@@ -295,7 +295,7 @@ UINTN
 EFIAPI\r
 GasketPthreadMutexLock (\r
   IN VOID *Mutex\r
-  );            \r
+  );\r
 \r
 \r
 \r
@@ -303,30 +303,30 @@ UINTN
 EFIAPI\r
 GasketPthreadMutexUnLock (\r
   IN VOID *Mutex\r
-  );                        \r
+  );\r
+\r
 \r
\r
 UINTN\r
 EFIAPI\r
 GasketPthreadMutexTryLock (\r
   IN VOID *Mutex\r
-  );                      \r
+  );\r
+\r
 \r
\r
 VOID *\r
 EFIAPI\r
 GasketPthreadMutexInit (\r
   IN VOID\r
-  );                     \r
+  );\r
+\r
 \r
\r
 UINTN\r
 EFIAPI\r
 GasketPthreadMutexDestroy (\r
   IN VOID *Mutex\r
-  );                            \r
+  );\r
+\r
 \r
\r
 UINTN\r
 EFIAPI\r
 GasketPthreadCreate (\r
@@ -335,19 +335,19 @@ GasketPthreadCreate (
   IN  THREAD_THUNK_THREAD_ENTRY Start,\r
   IN  VOID                      *Context\r
   );\r
\r
+\r
 VOID\r
 EFIAPI\r
 GasketPthreadExit (\r
   IN VOID *ValuePtr\r
-  );                            \r
+  );\r
+\r
 \r
-   \r
 UINTN\r
 EFIAPI\r
 GasketPthreadSelf (\r
   VOID\r
-  );                              \r
+  );\r
 \r
 EFI_STATUS\r
 EFIAPI\r
@@ -370,7 +370,7 @@ GasketPosixOpenVolume (
   IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL    *This,\r
   OUT EFI_FILE_PROTOCOL                 **Root\r
   );\r
-  \r
+\r
 EFI_STATUS\r
 EFIAPI\r
 GasketPosixFileOpen (\r
@@ -386,7 +386,7 @@ EFIAPI
 GasketPosixFileCLose (\r
   IN EFI_FILE_PROTOCOL  *This\r
   );\r
-  \r
+\r
 EFI_STATUS\r
 EFIAPI\r
 GasketPosixFileDelete (\r
@@ -400,7 +400,7 @@ GasketPosixFileRead (
   IN OUT UINTN                *BufferSize,\r
   OUT VOID                    *Buffer\r
   );\r
-  \r
+\r
 EFI_STATUS\r
 EFIAPI\r
 GasketPosixFileWrite (\r
@@ -487,14 +487,14 @@ GasketEmuBlockIoWriteBlocks (
   IN     UINTN                  BufferSize,\r
   IN     VOID                   *Buffer\r
   );\r
-  \r
+\r
 EFI_STATUS\r
 EFIAPI\r
 GasketEmuBlockIoFlushBlocks (\r
   IN     EMU_BLOCK_IO_PROTOCOL    *This,\r
   IN OUT EFI_BLOCK_IO2_TOKEN      *Token\r
   );\r
-  \r
+\r
 EFI_STATUS\r
 EFIAPI\r
 GasketEmuBlockIoCreateMapping (\r
@@ -532,7 +532,7 @@ GasketSnpCreateMapping (
   IN     EMU_SNP_PROTOCOL         *This,\r
   IN     EFI_SIMPLE_NETWORK_MODE  *Media\r
   );\r
\r
+\r
 EFI_STATUS\r
 EFIAPI\r
 GasketSnpStart (\r
@@ -645,7 +645,7 @@ GasketSnpReceive (
   OUT UINT16                              *Protocol   OPTIONAL\r
   );\r
 \r
\r
+\r
 #endif\r
 \r
 \r
index aa031ececef62718c400b4db81f69ce29cd9d00f..aa90ea80958dad650512d69fa588a414959c606f 100644 (file)
@@ -3,8 +3,8 @@
 # Manage differenced between UNIX ABI and EFI/Windows ABI
 #
 # For IA-32 the only difference is Mac OS X requires a 16-byte aligned stack.
-# For Linux this stack adjustment is a no-op, but we may as well make the 
-# the code common. 
+# For Linux this stack adjustment is a no-op, but we may as well make the
+# the code common.
 #
 # Copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>
 # This program and the accompanying materials
 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #
 #------------------------------------------------------------------------------
+
 
 
   .text
-  
+
 //
 // EMU_THUNK_PROTOCOL gaskets (EFIAPI to UNIX ABI)
 //
 
 
-ASM_GLOBAL ASM_PFX(GasketSecWriteStdErr) 
+ASM_GLOBAL ASM_PFX(GasketSecWriteStdErr)
 ASM_PFX(GasketSecWriteStdErr):
   pushl %ebp
   movl  %esp, %ebp
@@ -43,7 +43,7 @@ ASM_PFX(GasketSecWriteStdErr):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSecConfigStdIn) 
+ASM_GLOBAL ASM_PFX(GasketSecConfigStdIn)
 ASM_PFX(GasketSecConfigStdIn):
   pushl %ebp
   movl  %esp, %ebp
@@ -55,11 +55,11 @@ ASM_PFX(GasketSecConfigStdIn):
   movl  %eax, (%esp)
 
   call  ASM_PFX(SecConfigStdIn)
-  
+
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketSecWriteStdOut) 
+ASM_GLOBAL ASM_PFX(GasketSecWriteStdOut)
 ASM_PFX(GasketSecWriteStdOut):
   pushl %ebp
   movl  %esp, %ebp
@@ -71,11 +71,11 @@ ASM_PFX(GasketSecWriteStdOut):
   movl  %eax, (%esp)
 
   call  ASM_PFX(SecWriteStdOut)
-  
+
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketSecReadStdIn)  
+ASM_GLOBAL ASM_PFX(GasketSecReadStdIn)
 ASM_PFX(GasketSecReadStdIn):
   pushl %ebp
   movl  %esp, %ebp
@@ -87,11 +87,11 @@ ASM_PFX(GasketSecReadStdIn):
   movl  %eax, (%esp)
 
   call  ASM_PFX(SecReadStdIn)
-  
+
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketSecPollStdIn)  
+ASM_GLOBAL ASM_PFX(GasketSecPollStdIn)
 ASM_PFX(GasketSecPollStdIn):
   pushl %ebp
   movl  %esp, %ebp
@@ -103,11 +103,11 @@ ASM_PFX(GasketSecPollStdIn):
   movl  %eax, (%esp)
 
   call  ASM_PFX(SecPollStdIn)
-  
+
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketSecMalloc) 
+ASM_GLOBAL ASM_PFX(GasketSecMalloc)
 ASM_PFX(GasketSecMalloc):
   pushl %ebp
   movl  %esp, %ebp
@@ -117,11 +117,11 @@ ASM_PFX(GasketSecMalloc):
   movl  %eax, (%esp)
 
   call    ASM_PFX(SecMalloc)
-  
+
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketSecValloc) 
+ASM_GLOBAL ASM_PFX(GasketSecValloc)
 ASM_PFX(GasketSecValloc):
   pushl %ebp
   movl  %esp, %ebp
@@ -131,11 +131,11 @@ ASM_PFX(GasketSecValloc):
   movl  %eax, (%esp)
 
   call    ASM_PFX(SecValloc)
-  
+
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketSecFree) 
+ASM_GLOBAL ASM_PFX(GasketSecFree)
 ASM_PFX(GasketSecFree):
   pushl %ebp
   movl  %esp, %ebp
@@ -145,12 +145,12 @@ ASM_PFX(GasketSecFree):
   movl  %eax, (%esp)
 
   call    ASM_PFX(SecFree)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSecSetTimer) 
+ASM_GLOBAL ASM_PFX(GasketSecSetTimer)
 ASM_PFX(GasketSecSetTimer):
   pushl %ebp
   movl  %esp, %ebp
@@ -164,12 +164,12 @@ ASM_PFX(GasketSecSetTimer):
        movl    %eax, (%esp)
 
   call  ASM_PFX(SecSetTimer)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSecEnableInterrupt) 
+ASM_GLOBAL ASM_PFX(GasketSecEnableInterrupt)
 ASM_PFX(GasketSecEnableInterrupt):
   pushl %ebp
   movl  %esp, %ebp
@@ -177,12 +177,12 @@ ASM_PFX(GasketSecEnableInterrupt):
   and   $-16, %esp    // stack needs to end in 0xFFFFFFF0 before call
 
   call    ASM_PFX(SecEnableInterrupt)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSecDisableInterrupt) 
+ASM_GLOBAL ASM_PFX(GasketSecDisableInterrupt)
 ASM_PFX(GasketSecDisableInterrupt):
   pushl %ebp
   movl  %esp, %ebp
@@ -190,11 +190,11 @@ ASM_PFX(GasketSecDisableInterrupt):
   and   $-16, %esp    // stack needs to end in 0xFFFFFFF0 before call
 
   call    ASM_PFX(SecDisableInterrupt)
-  
+
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketQueryPerformanceFrequency) 
+ASM_GLOBAL ASM_PFX(GasketQueryPerformanceFrequency)
 ASM_PFX(GasketQueryPerformanceFrequency):
   pushl %ebp
   movl  %esp, %ebp
@@ -202,12 +202,12 @@ ASM_PFX(GasketQueryPerformanceFrequency):
   and   $-16, %esp    // stack needs to end in 0xFFFFFFF0 before call
 
   call    ASM_PFX(QueryPerformanceFrequency)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketQueryPerformanceCounter) 
+ASM_GLOBAL ASM_PFX(GasketQueryPerformanceCounter)
 ASM_PFX(GasketQueryPerformanceCounter):
   pushl %ebp
   movl  %esp, %ebp
@@ -215,12 +215,12 @@ ASM_PFX(GasketQueryPerformanceCounter):
   and   $-16, %esp    // stack needs to end in 0xFFFFFFF0 before call
 
   call    ASM_PFX(QueryPerformanceCounter)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSecSleep) 
+ASM_GLOBAL ASM_PFX(GasketSecSleep)
 ASM_PFX(GasketSecSleep):
   pushl %ebp
   movl  %esp, %ebp
@@ -232,12 +232,12 @@ ASM_PFX(GasketSecSleep):
        movl    %eax, (%esp)
 
   call  ASM_PFX(SecSleep)
-  
+
   leave
   ret
-  
-   
-ASM_GLOBAL ASM_PFX(GasketSecCpuSleep) 
+
+
+ASM_GLOBAL ASM_PFX(GasketSecCpuSleep)
 ASM_PFX(GasketSecCpuSleep):
   pushl %ebp
   movl  %esp, %ebp
@@ -245,12 +245,12 @@ ASM_PFX(GasketSecCpuSleep):
   and   $-16, %esp    // stack needs to end in 0xFFFFFFF0 before call
 
   call  ASM_PFX(SecCpuSleep)
-  
+
   leave
   ret
-  
-  
-ASM_GLOBAL ASM_PFX(GasketSecExit) 
+
+
+ASM_GLOBAL ASM_PFX(GasketSecExit)
 ASM_PFX(GasketSecExit):
   pushl %ebp
   movl  %esp, %ebp
@@ -263,8 +263,8 @@ ASM_PFX(GasketSecExit):
 LDEAD_LOOP:
   jmp  LDEAD_LOOP              // _exit should never return
 
-  
-ASM_GLOBAL ASM_PFX(GasketSecGetTime) 
+
+ASM_GLOBAL ASM_PFX(GasketSecGetTime)
 ASM_PFX(GasketSecGetTime):
   pushl %ebp
   movl  %esp, %ebp
@@ -280,7 +280,7 @@ ASM_PFX(GasketSecGetTime):
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketSecSetTime) 
+ASM_GLOBAL ASM_PFX(GasketSecSetTime)
 ASM_PFX(GasketSecSetTime):
   pushl %ebp
   movl  %esp, %ebp
@@ -297,7 +297,7 @@ ASM_PFX(GasketSecSetTime):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSecGetNextProtocol) 
+ASM_GLOBAL ASM_PFX(GasketSecGetNextProtocol)
 ASM_PFX(GasketSecGetNextProtocol):
        pushl   %ebp
        movl    %esp, %ebp
@@ -313,13 +313,13 @@ ASM_PFX(GasketSecGetNextProtocol):
        movl    %eax, (%esp)
 
   call    ASM_PFX(SecGetNextProtocol)
-  
+
   leave
   ret
 
 // PPIs produced by SEC
 
-ASM_GLOBAL ASM_PFX(GasketSecPeCoffGetEntryPoint) 
+ASM_GLOBAL ASM_PFX(GasketSecPeCoffGetEntryPoint)
 ASM_PFX(GasketSecPeCoffGetEntryPoint):
   pushl %ebp
   movl  %esp, %ebp
@@ -331,11 +331,11 @@ ASM_PFX(GasketSecPeCoffGetEntryPoint):
   movl  %eax, (%esp)
 
   call    ASM_PFX(SecPeCoffGetEntryPoint)
-  
+
   leave
   ret
-ASM_GLOBAL ASM_PFX(GasketSecPeCoffRelocateImageExtraAction) 
+
+ASM_GLOBAL ASM_PFX(GasketSecPeCoffRelocateImageExtraAction)
 ASM_PFX(GasketSecPeCoffRelocateImageExtraAction):
   pushl %ebp
   movl  %esp, %ebp
@@ -345,11 +345,11 @@ ASM_PFX(GasketSecPeCoffRelocateImageExtraAction):
   movl  %eax, (%esp)
 
   call    ASM_PFX(SecPeCoffRelocateImageExtraAction)
-  
+
   leave
   ret
-ASM_GLOBAL ASM_PFX(GasketSecPeCoffUnloadImageExtraAction) 
+
+ASM_GLOBAL ASM_PFX(GasketSecPeCoffUnloadImageExtraAction)
 ASM_PFX(GasketSecPeCoffUnloadImageExtraAction):
   pushl %ebp
   movl  %esp, %ebp
@@ -359,12 +359,12 @@ ASM_PFX(GasketSecPeCoffUnloadImageExtraAction):
   movl  %eax, (%esp)
 
   call    ASM_PFX(SecPeCoffUnloadImageExtraAction)
-  
+
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketSecEmuThunkAddress) 
+
+ASM_GLOBAL ASM_PFX(GasketSecEmuThunkAddress)
 ASM_PFX(GasketSecEmuThunkAddress):
   pushl %ebp
   movl  %esp, %ebp
@@ -372,7 +372,7 @@ ASM_PFX(GasketSecEmuThunkAddress):
   and   $-16, %esp    // stack needs to end in 0xFFFFFFF0 before call
 
   call    ASM_PFX(SecEmuThunkAddress)
-  
+
   leave
   ret
 
@@ -380,7 +380,7 @@ ASM_PFX(GasketSecEmuThunkAddress):
 // Gasket functions for EFI_EMU_UGA_IO_PROTOCOL
 //
 
-ASM_GLOBAL ASM_PFX(GasketX11Size) 
+ASM_GLOBAL ASM_PFX(GasketX11Size)
 ASM_PFX(GasketX11Size):
        pushl   %ebp
        movl    %esp, %ebp
@@ -396,12 +396,12 @@ ASM_PFX(GasketX11Size):
        movl    %eax, (%esp)
 
   call    ASM_PFX(X11Size)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketX11CheckKey) 
+ASM_GLOBAL ASM_PFX(GasketX11CheckKey)
 ASM_PFX(GasketX11CheckKey):
   pushl %ebp
   movl  %esp, %ebp
@@ -411,11 +411,11 @@ ASM_PFX(GasketX11CheckKey):
   movl  %eax, (%esp)
 
   call    ASM_PFX(X11CheckKey)
-  
+
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketX11GetKey) 
+ASM_GLOBAL ASM_PFX(GasketX11GetKey)
 ASM_PFX(GasketX11GetKey):
   pushl %ebp
   movl  %esp, %ebp
@@ -427,12 +427,12 @@ ASM_PFX(GasketX11GetKey):
   movl  %eax, (%esp)
 
   call    ASM_PFX(X11GetKey)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketX11KeySetState) 
+ASM_GLOBAL ASM_PFX(GasketX11KeySetState)
 ASM_PFX(GasketX11KeySetState):
   pushl %ebp
   movl  %esp, %ebp
@@ -444,12 +444,12 @@ ASM_PFX(GasketX11KeySetState):
   movl  %eax, (%esp)
 
   call    ASM_PFX(X11KeySetState)
-  
+
   leave
   ret
 
-  
-ASM_GLOBAL ASM_PFX(GasketX11RegisterKeyNotify) 
+
+ASM_GLOBAL ASM_PFX(GasketX11RegisterKeyNotify)
 ASM_PFX(GasketX11RegisterKeyNotify):
        pushl   %ebp
        movl    %esp, %ebp
@@ -465,12 +465,12 @@ ASM_PFX(GasketX11RegisterKeyNotify):
        movl    %eax, (%esp)
 
   call    ASM_PFX(X11RegisterKeyNotify)
-  
+
   leave
   ret
 
-  
-ASM_GLOBAL ASM_PFX(GasketX11Blt) 
+
+ASM_GLOBAL ASM_PFX(GasketX11Blt)
 ASM_PFX(GasketX11Blt):
        pushl   %ebp
        movl    %esp, %ebp
@@ -486,12 +486,12 @@ ASM_PFX(GasketX11Blt):
        movl    %eax, (%esp)
 
   call    ASM_PFX(X11Blt)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketX11CheckPointer) 
+ASM_GLOBAL ASM_PFX(GasketX11CheckPointer)
 ASM_PFX(GasketX11CheckPointer):
   pushl %ebp
   movl  %esp, %ebp
@@ -501,12 +501,12 @@ ASM_PFX(GasketX11CheckPointer):
   movl  %eax, (%esp)
 
   call    ASM_PFX(X11CheckPointer)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketX11GetPointerState) 
+ASM_GLOBAL ASM_PFX(GasketX11GetPointerState)
 ASM_PFX(GasketX11GetPointerState):
   pushl %ebp
   movl  %esp, %ebp
@@ -518,12 +518,12 @@ ASM_PFX(GasketX11GetPointerState):
   movl  %eax, (%esp)
 
   call    ASM_PFX(X11GetPointerState)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketX11GraphicsWindowOpen) 
+ASM_GLOBAL ASM_PFX(GasketX11GraphicsWindowOpen)
 ASM_PFX(GasketX11GraphicsWindowOpen):
   pushl %ebp
   movl  %esp, %ebp
@@ -533,12 +533,12 @@ ASM_PFX(GasketX11GraphicsWindowOpen):
   movl  %eax, (%esp)
 
   call    ASM_PFX(X11GraphicsWindowOpen)
-  
+
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketX11GraphicsWindowClose) 
+
+ASM_GLOBAL ASM_PFX(GasketX11GraphicsWindowClose)
 ASM_PFX(GasketX11GraphicsWindowClose):
   pushl %ebp
   movl  %esp, %ebp
@@ -550,14 +550,14 @@ ASM_PFX(GasketX11GraphicsWindowClose):
   movl  %eax, (%esp)
 
   call    ASM_PFX(X11GraphicsWindowClose)
-  
+
   leave
   ret
 
 
 // Pthreads
 
-ASM_GLOBAL ASM_PFX(GasketPthreadMutexLock) 
+ASM_GLOBAL ASM_PFX(GasketPthreadMutexLock)
 ASM_PFX(GasketPthreadMutexLock):
   pushl %ebp
   movl  %esp, %ebp
@@ -567,12 +567,12 @@ ASM_PFX(GasketPthreadMutexLock):
   movl  %eax, (%esp)
 
   call    ASM_PFX(PthreadMutexLock)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPthreadMutexUnLock) 
+ASM_GLOBAL ASM_PFX(GasketPthreadMutexUnLock)
 ASM_PFX(GasketPthreadMutexUnLock):
   pushl %ebp
   movl  %esp, %ebp
@@ -582,11 +582,11 @@ ASM_PFX(GasketPthreadMutexUnLock):
   movl  %eax, (%esp)
 
   call    ASM_PFX(PthreadMutexUnLock)
-  
+
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketPthreadMutexTryLock) 
+ASM_GLOBAL ASM_PFX(GasketPthreadMutexTryLock)
 ASM_PFX(GasketPthreadMutexTryLock):
   pushl %ebp
   movl  %esp, %ebp
@@ -596,11 +596,11 @@ ASM_PFX(GasketPthreadMutexTryLock):
   movl  %eax, (%esp)
 
   call    ASM_PFX(PthreadMutexTryLock)
-  
+
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketPthreadMutexInit) 
+ASM_GLOBAL ASM_PFX(GasketPthreadMutexInit)
 ASM_PFX(GasketPthreadMutexInit):
   pushl %ebp
   movl  %esp, %ebp
@@ -608,13 +608,13 @@ ASM_PFX(GasketPthreadMutexInit):
   and   $-16, %esp    // stack needs to end in 0xFFFFFFF0 before call
 
   call    ASM_PFX(PthreadMutexInit)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPthreadMutexDestroy) 
+
+ASM_GLOBAL ASM_PFX(GasketPthreadMutexDestroy)
 ASM_PFX(GasketPthreadMutexDestroy):
   pushl %ebp
   movl  %esp, %ebp
@@ -624,12 +624,12 @@ ASM_PFX(GasketPthreadMutexDestroy):
   movl  %eax, (%esp)
 
   call    ASM_PFX(PthreadMutexDestroy)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPthreadCreate)  
+ASM_GLOBAL ASM_PFX(GasketPthreadCreate)
 ASM_PFX(GasketPthreadCreate):
        pushl   %ebp
        movl    %esp, %ebp
@@ -645,12 +645,12 @@ ASM_PFX(GasketPthreadCreate):
        movl    %eax, (%esp)
 
   call    ASM_PFX(PthreadCreate)
-  
+
   leave
   ret
 
-                          
-ASM_GLOBAL ASM_PFX(GasketPthreadExit) 
+
+ASM_GLOBAL ASM_PFX(GasketPthreadExit)
 ASM_PFX(GasketPthreadExit):
   pushl %ebp
   movl  %esp, %ebp
@@ -660,13 +660,13 @@ ASM_PFX(GasketPthreadExit):
   movl  %eax, (%esp)
 
   call    ASM_PFX(PthreadExit)
-  
+
   leave
   ret
 
 
-                             
-ASM_GLOBAL ASM_PFX(GasketPthreadSelf) 
+
+ASM_GLOBAL ASM_PFX(GasketPthreadSelf)
 ASM_PFX(GasketPthreadSelf):
   pushl %ebp
   movl  %esp, %ebp
@@ -674,12 +674,12 @@ ASM_PFX(GasketPthreadSelf):
   and   $-16, %esp    // stack needs to end in 0xFFFFFFF0 before call
 
   call    ASM_PFX(PthreadSelf)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPthreadOpen) 
+ASM_GLOBAL ASM_PFX(GasketPthreadOpen)
 ASM_PFX(GasketPthreadOpen):
   pushl %ebp
   movl  %esp, %ebp
@@ -689,12 +689,12 @@ ASM_PFX(GasketPthreadOpen):
   movl  %eax, (%esp)
 
   call    ASM_PFX(PthreadOpen)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPthreadClose)  
+ASM_GLOBAL ASM_PFX(GasketPthreadClose)
 ASM_PFX(GasketPthreadClose):
   pushl %ebp
   movl  %esp, %ebp
@@ -704,7 +704,7 @@ ASM_PFX(GasketPthreadClose):
   movl  %eax, (%esp)
 
   call    ASM_PFX(PthreadClose)
-  
+
   leave
   ret
 
@@ -761,9 +761,9 @@ ASM_PFX(ReverseGasketUint64Uint64):
        addl    $24, %esp
        popl    %ebp
        ret
-  
 
-ASM_GLOBAL ASM_PFX(GasketSecUnixPeiAutoScan)  
+
+ASM_GLOBAL ASM_PFX(GasketSecUnixPeiAutoScan)
 ASM_PFX(GasketSecUnixPeiAutoScan):
        pushl   %ebp
        movl    %esp, %ebp
@@ -777,12 +777,12 @@ ASM_PFX(GasketSecUnixPeiAutoScan):
        movl    %eax, (%esp)
 
   call    ASM_PFX(SecUnixPeiAutoScan)
-  
+
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSecUnixFdAddress) 
+ASM_GLOBAL ASM_PFX(GasketSecUnixFdAddress)
 ASM_PFX(GasketSecUnixFdAddress):
        pushl   %ebp
        movl    %esp, %ebp
@@ -805,7 +805,7 @@ ASM_PFX(GasketSecUnixFdAddress):
 
 // EmuIoThunk SimpleFileSystem
 
-ASM_GLOBAL ASM_PFX(GasketPosixOpenVolume) 
+ASM_GLOBAL ASM_PFX(GasketPosixOpenVolume)
 ASM_PFX(GasketPosixOpenVolume):
        pushl   %ebp
        movl    %esp, %ebp
@@ -826,7 +826,7 @@ ASM_PFX(GasketPosixOpenVolume):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPosixFileOpen) 
+ASM_GLOBAL ASM_PFX(GasketPosixFileOpen)
 ASM_PFX(GasketPosixFileOpen):
        pushl   %ebp
        movl    %esp, %ebp
@@ -846,14 +846,14 @@ ASM_PFX(GasketPosixFileOpen):
        movl    %eax, 4(%esp)
        movl    8(%ebp), %eax
        movl    %eax, (%esp)
+
   call    ASM_PFX(PosixFileOpen)
 
   leave
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPosixFileCLose) 
+ASM_GLOBAL ASM_PFX(GasketPosixFileCLose)
 ASM_PFX(GasketPosixFileCLose):
   pushl %ebp
   movl  %esp, %ebp
@@ -867,8 +867,8 @@ ASM_PFX(GasketPosixFileCLose):
   leave
   ret
 
-   
-ASM_GLOBAL ASM_PFX(GasketPosixFileDelete) 
+
+ASM_GLOBAL ASM_PFX(GasketPosixFileDelete)
 ASM_PFX(GasketPosixFileDelete):
   pushl %ebp
   movl  %esp, %ebp
@@ -883,7 +883,7 @@ ASM_PFX(GasketPosixFileDelete):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPosixFileRead) 
+ASM_GLOBAL ASM_PFX(GasketPosixFileRead)
 ASM_PFX(GasketPosixFileRead):
        pushl   %ebp
        movl    %esp, %ebp
@@ -901,8 +901,8 @@ ASM_PFX(GasketPosixFileRead):
   leave
   ret
 
-  
-ASM_GLOBAL ASM_PFX(GasketPosixFileWrite) 
+
+ASM_GLOBAL ASM_PFX(GasketPosixFileWrite)
 ASM_PFX(GasketPosixFileWrite):
        pushl   %ebp
        movl    %esp, %ebp
@@ -921,7 +921,7 @@ ASM_PFX(GasketPosixFileWrite):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPosixFileSetPossition) 
+ASM_GLOBAL ASM_PFX(GasketPosixFileSetPossition)
 ASM_PFX(GasketPosixFileSetPossition):
   pushl %ebp
   movl  %esp, %ebp
@@ -940,7 +940,7 @@ ASM_PFX(GasketPosixFileSetPossition):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPosixFileGetPossition) 
+ASM_GLOBAL ASM_PFX(GasketPosixFileGetPossition)
 ASM_PFX(GasketPosixFileGetPossition):
   pushl %ebp
   movl  %esp, %ebp
@@ -957,7 +957,7 @@ ASM_PFX(GasketPosixFileGetPossition):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPosixFileGetInfo) 
+ASM_GLOBAL ASM_PFX(GasketPosixFileGetInfo)
 ASM_PFX(GasketPosixFileGetInfo):
        pushl   %ebp
        movl    %esp, %ebp
@@ -978,7 +978,7 @@ ASM_PFX(GasketPosixFileGetInfo):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPosixFileSetInfo) 
+ASM_GLOBAL ASM_PFX(GasketPosixFileSetInfo)
 ASM_PFX(GasketPosixFileSetInfo):
        pushl   %ebp
        movl    %esp, %ebp
@@ -999,7 +999,7 @@ ASM_PFX(GasketPosixFileSetInfo):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPosixFileFlush) 
+ASM_GLOBAL ASM_PFX(GasketPosixFileFlush)
 ASM_PFX(GasketPosixFileFlush):
   pushl %ebp
   movl  %esp, %ebp
@@ -1014,7 +1014,7 @@ ASM_PFX(GasketPosixFileFlush):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPosixFileSystmeThunkOpen) 
+ASM_GLOBAL ASM_PFX(GasketPosixFileSystmeThunkOpen)
 ASM_PFX(GasketPosixFileSystmeThunkOpen):
   pushl %ebp
   movl  %esp, %ebp
@@ -1029,7 +1029,7 @@ ASM_PFX(GasketPosixFileSystmeThunkOpen):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketPosixFileSystmeThunkClose) 
+ASM_GLOBAL ASM_PFX(GasketPosixFileSystmeThunkClose)
 ASM_PFX(GasketPosixFileSystmeThunkClose):
   pushl %ebp
   movl  %esp, %ebp
@@ -1043,7 +1043,7 @@ ASM_PFX(GasketPosixFileSystmeThunkClose):
   leave
   ret
 
-ASM_GLOBAL ASM_PFX(GasketEmuBlockIoReset) 
+ASM_GLOBAL ASM_PFX(GasketEmuBlockIoReset)
 ASM_PFX(GasketEmuBlockIoReset):
   pushl %ebp
   movl  %esp, %ebp
@@ -1060,7 +1060,7 @@ ASM_PFX(GasketEmuBlockIoReset):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketEmuBlockIoReadBlocks) 
+ASM_GLOBAL ASM_PFX(GasketEmuBlockIoReadBlocks)
 ASM_PFX(GasketEmuBlockIoReadBlocks):
        pushl   %ebp
        movl    %esp, %ebp
@@ -1087,7 +1087,7 @@ ASM_PFX(GasketEmuBlockIoReadBlocks):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketEmuBlockIoWriteBlocks)  
+ASM_GLOBAL ASM_PFX(GasketEmuBlockIoWriteBlocks)
 ASM_PFX(GasketEmuBlockIoWriteBlocks):
        pushl   %ebp
        movl    %esp, %ebp
@@ -1114,7 +1114,7 @@ ASM_PFX(GasketEmuBlockIoWriteBlocks):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketEmuBlockIoFlushBlocks)  
+ASM_GLOBAL ASM_PFX(GasketEmuBlockIoFlushBlocks)
 ASM_PFX(GasketEmuBlockIoFlushBlocks):  pushl %ebp
   movl  %esp, %ebp
   subl  $24, %esp      // sub extra 16 from the stack for alignment
@@ -1131,7 +1131,7 @@ ASM_PFX(GasketEmuBlockIoFlushBlocks):  pushl %ebp
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketEmuBlockIoCreateMapping) 
+ASM_GLOBAL ASM_PFX(GasketEmuBlockIoCreateMapping)
 ASM_PFX(GasketEmuBlockIoCreateMapping):
   pushl %ebp
   movl  %esp, %ebp
@@ -1148,7 +1148,7 @@ ASM_PFX(GasketEmuBlockIoCreateMapping):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketBlockIoThunkOpen)  
+ASM_GLOBAL ASM_PFX(GasketBlockIoThunkOpen)
 ASM_PFX(GasketBlockIoThunkOpen):
   pushl %ebp
   movl  %esp, %ebp
@@ -1163,7 +1163,7 @@ ASM_PFX(GasketBlockIoThunkOpen):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketBlockIoThunkClose)  
+ASM_GLOBAL ASM_PFX(GasketBlockIoThunkClose)
 ASM_PFX(GasketBlockIoThunkClose):
   pushl %ebp
   movl  %esp, %ebp
@@ -1179,7 +1179,7 @@ ASM_PFX(GasketBlockIoThunkClose):
 
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpCreateMapping) 
+ASM_GLOBAL ASM_PFX(GasketSnpCreateMapping)
 ASM_PFX(GasketSnpCreateMapping):
   pushl %ebp
   movl  %esp, %ebp
@@ -1196,7 +1196,7 @@ ASM_PFX(GasketSnpCreateMapping):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpStart) 
+ASM_GLOBAL ASM_PFX(GasketSnpStart)
 ASM_PFX(GasketSnpStart):
   pushl %ebp
   movl  %esp, %ebp
@@ -1211,7 +1211,7 @@ ASM_PFX(GasketSnpStart):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpStop) 
+ASM_GLOBAL ASM_PFX(GasketSnpStop)
 ASM_PFX(GasketSnpStop):
   pushl %ebp
   movl  %esp, %ebp
@@ -1226,7 +1226,7 @@ ASM_PFX(GasketSnpStop):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpInitialize) 
+ASM_GLOBAL ASM_PFX(GasketSnpInitialize)
 ASM_PFX(GasketSnpInitialize):
        pushl   %ebp
        movl    %esp, %ebp
@@ -1245,7 +1245,7 @@ ASM_PFX(GasketSnpInitialize):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpReset)  
+ASM_GLOBAL ASM_PFX(GasketSnpReset)
 ASM_PFX(GasketSnpReset):
   pushl %ebp
   movl  %esp, %ebp
@@ -1262,7 +1262,7 @@ ASM_PFX(GasketSnpReset):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpShutdown) 
+ASM_GLOBAL ASM_PFX(GasketSnpShutdown)
 ASM_PFX(GasketSnpShutdown):
   pushl %ebp
   movl  %esp, %ebp
@@ -1277,7 +1277,7 @@ ASM_PFX(GasketSnpShutdown):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpReceiveFilters)  
+ASM_GLOBAL ASM_PFX(GasketSnpReceiveFilters)
 ASM_PFX(GasketSnpReceiveFilters):
        pushl   %ebp
        movl    %esp, %ebp
@@ -1302,7 +1302,7 @@ ASM_PFX(GasketSnpReceiveFilters):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpStationAddress)  
+ASM_GLOBAL ASM_PFX(GasketSnpStationAddress)
 ASM_PFX(GasketSnpStationAddress):
        pushl   %ebp
        movl    %esp, %ebp
@@ -1320,7 +1320,7 @@ ASM_PFX(GasketSnpStationAddress):
 
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpStatistics) 
+ASM_GLOBAL ASM_PFX(GasketSnpStatistics)
 ASM_PFX(GasketSnpStatistics):
        pushl   %ebp
        movl    %esp, %ebp
@@ -1341,7 +1341,7 @@ ASM_PFX(GasketSnpStatistics):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpMCastIpToMac) 
+ASM_GLOBAL ASM_PFX(GasketSnpMCastIpToMac)
 ASM_PFX(GasketSnpMCastIpToMac):
        pushl   %ebp
        movl    %esp, %ebp
@@ -1362,7 +1362,7 @@ ASM_PFX(GasketSnpMCastIpToMac):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpNvData) 
+ASM_GLOBAL ASM_PFX(GasketSnpNvData)
 ASM_PFX(GasketSnpNvData):
        pushl   %ebp
        movl    %esp, %ebp
@@ -1385,7 +1385,7 @@ ASM_PFX(GasketSnpNvData):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpGetStatus) 
+ASM_GLOBAL ASM_PFX(GasketSnpGetStatus)
 ASM_PFX(GasketSnpGetStatus):
        pushl   %ebp
        movl    %esp, %ebp
@@ -1405,7 +1405,7 @@ ASM_PFX(GasketSnpGetStatus):
 
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpTransmit) 
+ASM_GLOBAL ASM_PFX(GasketSnpTransmit)
 ASM_PFX(GasketSnpTransmit):
        pushl   %ebp
        movl    %esp, %ebp
@@ -1433,7 +1433,7 @@ ASM_PFX(GasketSnpTransmit):
 
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpReceive) 
+ASM_GLOBAL ASM_PFX(GasketSnpReceive)
 ASM_PFX(GasketSnpReceive):
        pushl   %ebp
        movl    %esp, %ebp
@@ -1460,7 +1460,7 @@ ASM_PFX(GasketSnpReceive):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpThunkOpen) 
+ASM_GLOBAL ASM_PFX(GasketSnpThunkOpen)
 ASM_PFX(GasketSnpThunkOpen):
   pushl %ebp
   movl  %esp, %ebp
@@ -1475,7 +1475,7 @@ ASM_PFX(GasketSnpThunkOpen):
   ret
 
 
-ASM_GLOBAL ASM_PFX(GasketSnpThunkClose) 
+ASM_GLOBAL ASM_PFX(GasketSnpThunkClose)
 ASM_PFX(GasketSnpThunkClose):
   pushl %ebp
   movl  %esp, %ebp
index c75073ac2ee1b3b1c5bb6a6eee14db43d7e6f053..1d36500e788640dc550958936094cc5073ea7b5e 100644 (file)
@@ -46,7 +46,7 @@ PeiSwitchStacks (
   )
 {
   BASE_LIBRARY_JUMP_BUFFER  JumpBuffer;
-  
+
   ASSERT (EntryPoint != NULL);
   ASSERT (NewStack != NULL);
 
@@ -62,12 +62,12 @@ PeiSwitchStacks (
   ((VOID**)JumpBuffer.Esp)[2] = Context2;
 
   LongJump (&JumpBuffer, (UINTN)-1);
-  
+
 
   //
   // PeiSwitchStacks () will never return
   //
-  ASSERT (FALSE);  
+  ASSERT (FALSE);
 }
 
 
index 20a08c905972426a186f713392c471c8f31b88b4..41124f72ebff909899138a71541e22c316831780 100644 (file)
@@ -1,20 +1,20 @@
 /**@file\r
- Linux Packet Filter implementation of the EMU_SNP_PROTOCOL that allows the \r
+ Linux Packet Filter implementation of the EMU_SNP_PROTOCOL that allows the\r
  emulator to get on real networks.\r
 \r
  Currently only the Berkeley Packet Filter is fully implemented and this file\r
- is just a template that needs to get filled in. \r
+ is just a template that needs to get filled in.\r
 \r
 Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>\r
 Portitions copyright (c) 2011, Apple Inc. All rights reserved.\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
@@ -59,7 +59,7 @@ EmuSnpCreateMapping (
   Private = EMU_SNP_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   Private->Mode = Mode;\r
-    \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -112,8 +112,8 @@ EmuSnpStop (
 }\r
 \r
 /**\r
-  Resets a network adapter and allocates the transmit and receive buffers \r
-  required by the network interface; optionally, also requests allocation \r
+  Resets a network adapter and allocates the transmit and receive buffers\r
+  required by the network interface; optionally, also requests allocation\r
   of additional transmit and receive buffers.\r
 \r
   @param  This              The protocol instance pointer.\r
@@ -152,8 +152,8 @@ EmuSnpInitialize (
 }\r
 \r
 /**\r
-  Resets a network adapter and re-initializes it with the parameters that were \r
-  provided in the previous call to Initialize().  \r
+  Resets a network adapter and re-initializes it with the parameters that were\r
+  provided in the previous call to Initialize().\r
 \r
   @param  This                 The protocol instance pointer.\r
   @param  ExtendedVerification Indicates that the driver may perform a more\r
@@ -181,7 +181,7 @@ EmuSnpReset (
 }\r
 \r
 /**\r
-  Resets a network adapter and leaves it in a state that is safe for \r
+  Resets a network adapter and leaves it in a state that is safe for\r
   another driver to initialize.\r
 \r
   @param  This Protocol instance pointer.\r
@@ -348,7 +348,7 @@ EmuSnpMCastIpToMac (
 }\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
@@ -384,7 +384,7 @@ EmuSnpNvData (
 }\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
@@ -448,7 +448,7 @@ EmuSnpGetStatus (
 \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
@@ -547,25 +547,25 @@ EmuSnpThunkOpen (
   )\r
 {\r
   EMU_SNP_PRIVATE  *Private;\r
-  \r
+\r
   if (This->Private != NULL) {\r
     return EFI_ALREADY_STARTED;\r
   }\r
-  \r
+\r
   if (!CompareGuid (This->Protocol, &gEmuSnpProtocolGuid)) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   Private = malloc (sizeof (EMU_SNP_PRIVATE));\r
   if (Private == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
-  \r
+\r
   Private->Signature = EMU_SNP_PRIVATE_SIGNATURE;\r
   Private->Thunk     = This;\r
   CopyMem (&Private->EmuSnp, &gEmuSnpProtocol, sizeof (gEmuSnpProtocol));\r
-  \r
+\r
   This->Interface = &Private->EmuSnp;\r
   This->Private   = Private;\r
   return EFI_SUCCESS;\r
@@ -582,10 +582,10 @@ EmuSnpThunkClose (
   if (!CompareGuid (This->Protocol, &gEmuSnpProtocolGuid)) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   Private = This->Private;\r
   free (Private);\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
index 76b72718721d90c31d5f72aca6cf051a2f0f272b..9db91b83d9a49ba2928b719780909ec7942ed161 100644 (file)
@@ -76,18 +76,18 @@ AllocateZeroPool (
   Reallocates a buffer of type EfiBootServicesData.
 
   Allocates and zeros the number bytes specified by NewSize from memory of type
-  EfiBootServicesData.  If OldBuffer is not NULL, then the smaller of OldSize and 
-  NewSize bytes are copied from OldBuffer to the newly allocated buffer, and 
-  OldBuffer is freed.  A pointer to the newly allocated buffer is returned.  
-  If NewSize is 0, then a valid buffer of 0 size is  returned.  If there is not 
+  EfiBootServicesData.  If OldBuffer is not NULL, then the smaller of OldSize and
+  NewSize bytes are copied from OldBuffer to the newly allocated buffer, and
+  OldBuffer is freed.  A pointer to the newly allocated buffer is returned.
+  If NewSize is 0, then a valid buffer of 0 size is  returned.  If there is not
   enough memory remaining to satisfy the request, then NULL is returned.
-  
+
   If the allocation of the new buffer is successful and the smaller of NewSize and OldSize
   is greater than (MAX_ADDRESS - OldBuffer + 1), then ASSERT().
 
   @param  OldSize        The size, in bytes, of OldBuffer.
   @param  NewSize        The size, in bytes, of the buffer to reallocate.
-  @param  OldBuffer      The buffer to copy to the allocated buffer.  This is an optional 
+  @param  OldBuffer      The buffer to copy to the allocated buffer.  This is an optional
                          parameter that may be NULL.
 
   @return A pointer to the allocated buffer or NULL if allocation fails.
@@ -127,7 +127,7 @@ ReallocatePool (
   Frees the buffer specified by Buffer.  Buffer must have been allocated on a previous call to the
   pool allocation services of the Memory Allocation Library.  If it is not possible to free pool
   resources, then this function will perform no actions.
-  
+
   If Buffer was not allocated with a pool allocation function in the Memory Allocation Library,
   then ASSERT().
 
index 3141a3cf1a6de8acf9a2518ddf3fbc0dfaa7707d..aab7161b7f4b74e5f21436b12983d7f3c6fd4aed 100644 (file)
@@ -127,26 +127,26 @@ PosixOpenVolume (
   if (PrivateFile == NULL) {
     goto Done;
   }
-  
+
   PrivateFile->FileName = malloc (AsciiStrSize (Private->FilePath));
   if (PrivateFile->FileName == NULL) {
     goto Done;
   }
   AsciiStrCpy (PrivateFile->FileName, Private->FilePath);
-  
+
   PrivateFile->Signature            = EMU_EFI_FILE_PRIVATE_SIGNATURE;
   PrivateFile->Thunk                = Private->Thunk;
   PrivateFile->SimpleFileSystem     = This;
   PrivateFile->IsRootDirectory      = TRUE;
   PrivateFile->IsDirectoryPath      = TRUE;
   PrivateFile->IsOpenedByRead       = TRUE;
-  
+
   CopyMem (&PrivateFile->EfiFile, &gPosixFileProtocol, sizeof (EFI_FILE_PROTOCOL));
 
   PrivateFile->fd                   = -1;
   PrivateFile->Dir                  = NULL;
   PrivateFile->Dirent               = NULL;
-  
+
   *Root = &PrivateFile->EfiFile;
 
   PrivateFile->Dir = opendir (PrivateFile->FileName);
@@ -165,10 +165,10 @@ Done:
 
       free (PrivateFile);
     }
-    
+
     *Root = NULL;
   }
-  
+
   return Status;
 }
 
@@ -179,13 +179,13 @@ ErrnoToEfiStatus ()
   switch (errno) {
   case EACCES:
     return EFI_ACCESS_DENIED;
-    
+
   case EDQUOT:
   case ENOSPC:
     return EFI_VOLUME_FULL;
-     
+
   default:
-    return EFI_DEVICE_ERROR;      
+    return EFI_DEVICE_ERROR;
   }
 }
 
@@ -225,7 +225,7 @@ PosixSystemTimeToEfiTime (
   Time->Minute = tm->tm_min;
   Time->Second = tm->tm_sec;
   Time->Nanosecond = 0;
-  
+
   Time->TimeZone = timezone;
   Time->Daylight = (daylight ? EFI_TIME_ADJUST_DAYLIGHT : 0) | (tm->tm_isdst > 0 ? EFI_TIME_IN_DAYLIGHT : 0);
 }
@@ -382,7 +382,7 @@ PosixFileOpen (
   EFI_FILE_INFO                     *Info;
   struct stat                       finfo;
   int                               res;
-  
+
 
   PrivateFile     = EMU_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
   PrivateRoot     = EMU_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (PrivateFile->SimpleFileSystem);
@@ -393,7 +393,7 @@ PosixFileOpen (
   // BUGBUG: assume an open of root
   // if current location, return current data
   //
-  if ((StrCmp (FileName, L"\\") == 0) || 
+  if ((StrCmp (FileName, L"\\") == 0) ||
       (StrCmp (FileName, L".") == 0 && PrivateFile->IsRootDirectory)) {
 OpenRoot:
     Status          = PosixOpenVolume (PrivateFile->SimpleFileSystem, &Root);
@@ -443,7 +443,7 @@ OpenRoot:
     Src++;
   }
   *Dst = 0;
-      
+
 
   //
   // Get rid of . and .., except leading . or ..
@@ -509,7 +509,7 @@ OpenRoot:
   while (RealFileName > NewPrivateFile->FileName && *RealFileName != '/') {
     RealFileName--;
   }
-  
+
   TempChar            = *(RealFileName - 1);
   *(RealFileName - 1) = 0;
   *(RealFileName - 1) = TempChar;
@@ -601,7 +601,7 @@ OpenRoot:
       Status = EFI_DEVICE_ERROR;
       goto Done;
     }
-    
+
     Info = malloc (InfoSize);
     if (Info == NULL) {
       goto Done;
@@ -614,7 +614,7 @@ OpenRoot:
 
     Info->Attribute = Attributes;
     PosixFileSetInfo (&NewPrivateFile->EfiFile, &gEfiFileInfoGuid, InfoSize, Info);
-    
+
     free (Info);
   }
 
@@ -682,7 +682,7 @@ PosixFileCLose (
   Close and delete the file handle.
 
   @param  This                     Protocol instance pointer.
-                                   
+
   @retval EFI_SUCCESS              The device was opened.
   @retval EFI_WARN_DELETE_FAILURE  The handle was closed but the file was not deleted.
 
@@ -694,7 +694,7 @@ PosixFileDelete (
 {
   EFI_STATUS              Status;
   EMU_EFI_FILE_PRIVATE   *PrivateFile;
-  
+
   PrivateFile = EMU_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
   Status      = EFI_WARN_DELETE_FAILURE;
 
@@ -806,9 +806,9 @@ PosixFileRead (
   FullFileName = malloc (AsciiStrLen(PrivateFile->FileName) + 1 + NameSize);
   if (FullFileName == NULL) {
     Status = EFI_OUT_OF_RESOURCES;
-    goto Done;  
+    goto Done;
   }
-         
+
   AsciiStrCpy (FullFileName, PrivateFile->FileName);
   AsciiStrCat (FullFileName, "/");
   AsciiStrCat (FullFileName, PrivateFile->Dirent->d_name);
@@ -875,7 +875,7 @@ PosixFileWrite (
   if (Res == (UINTN)-1) {
     return ErrnoToEfiStatus ();
   }
-  
+
   *BufferSize = Res;
   return EFI_SUCCESS;
 }
@@ -887,7 +887,7 @@ PosixFileWrite (
 
   @param  This            Protocol instance pointer.
   @param  Position        Byte position from the start of the file.
-                          
+
   @retval EFI_SUCCESS     Data was written.
   @retval EFI_UNSUPPORTED Seek request for non-zero is not valid on open.
 
@@ -933,7 +933,7 @@ PosixFileSetPossition (
 
   @param  This            Protocol instance pointer.
   @param  Position        Byte position from the start of the file.
-                          
+
   @retval EFI_SUCCESS     Data was written.
   @retval EFI_UNSUPPORTED Seek request for non-zero is not valid on open..
 
@@ -946,7 +946,7 @@ PosixFileGetPossition (
 {
   EFI_STATUS            Status;
   EMU_EFI_FILE_PRIVATE  *PrivateFile;
-  
+
   PrivateFile   = EMU_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
 
   if (PrivateFile->IsDirectoryPath) {
@@ -1024,7 +1024,7 @@ PosixFileGetInfo (
 
     StrCpy ((CHAR16 *) FileSystemInfoBuffer->VolumeLabel, PrivateRoot->VolumeLabel);
     *BufferSize = SIZE_OF_EFI_FILE_SYSTEM_INFO + StrSize (PrivateRoot->VolumeLabel);
-    
+
   } else if (CompareGuid (InformationType, &gEfiFileSystemVolumeLabelInfoIdGuid)) {
     if (*BufferSize < StrSize (PrivateRoot->VolumeLabel)) {
       *BufferSize = StrSize (PrivateRoot->VolumeLabel);
@@ -1087,7 +1087,7 @@ PosixFileSetInfo (
   CHAR16                            *UnicodeFilePtr;
   int                               UnixStatus;
   struct utimbuf                    Utime;
-  
+
 
   PrivateFile = EMU_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
   PrivateRoot = EMU_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (PrivateFile->SimpleFileSystem);
@@ -1213,7 +1213,7 @@ PosixFileSetInfo (
     AsciiFilePtr = NewFileName + AsciiStrLen(NewFileName);
     if ((AsciiFilePtr[-1] != '/') && (NewFileInfo->FileName[0] != '/')) {
       // make sure there is a / between Root FilePath and NewFileInfo Filename
-      AsciiFilePtr[0] = '/';      
+      AsciiFilePtr[0] = '/';
       AsciiFilePtr[1] = '\0';
       AsciiFilePtr++;
     }
@@ -1434,7 +1434,7 @@ PosixFileFlush (
 {
   EMU_EFI_FILE_PRIVATE     *PrivateFile;
 
-  
+
   PrivateFile = EMU_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
 
   if (PrivateFile->IsDirectoryPath) {
@@ -1465,15 +1465,15 @@ PosixFileSystmeThunkOpen (
 {
   EMU_SIMPLE_FILE_SYSTEM_PRIVATE  *Private;
   UINTN                           i;
-  
+
   if (This->Private != NULL) {
     return EFI_ALREADY_STARTED;
   }
-  
+
   if (!CompareGuid (This->Protocol, &gEfiSimpleFileSystemProtocolGuid)) {
     return EFI_UNSUPPORTED;
   }
-  
+
   Private = malloc (sizeof (EMU_SIMPLE_FILE_SYSTEM_PRIVATE));
   if (Private == NULL) {
     return EFI_OUT_OF_RESOURCES;
@@ -1482,9 +1482,9 @@ PosixFileSystmeThunkOpen (
   Private->FilePath = malloc (StrLen (This->ConfigString) + 1);
   if (Private->FilePath == NULL) {
     free (Private);
-    return EFI_OUT_OF_RESOURCES;    
+    return EFI_OUT_OF_RESOURCES;
   }
-  
+
   // Convert Unicode to Ascii
   for (i = 0; This->ConfigString[i] != 0; i++) {
     Private->FilePath[i] = This->ConfigString[i];
@@ -1499,12 +1499,12 @@ PosixFileSystmeThunkOpen (
     return EFI_OUT_OF_RESOURCES;
   }
   StrCpy (Private->VolumeLabel, L"EFI_EMULATED");
-  
+
   Private->Signature = EMU_SIMPLE_FILE_SYSTEM_PRIVATE_SIGNATURE;
   Private->Thunk     = This;
   CopyMem (&Private->SimpleFileSystem, &gPosixFileSystemProtocol, sizeof (Private->SimpleFileSystem));
   Private->FileHandlesOpen = FALSE;
+
   This->Interface = &Private->SimpleFileSystem;
   This->Private   = Private;
   return EFI_SUCCESS;
@@ -1521,9 +1521,9 @@ PosixFileSystmeThunkClose (
   if (!CompareGuid (This->Protocol, &gEfiSimpleFileSystemProtocolGuid)) {
     return EFI_UNSUPPORTED;
   }
-  
+
   Private = This->Private;
-  
+
   if (Private->FileHandlesOpen) {
     //
     // Close only supported if all the EFI_FILE_HANDLEs have been closed.
@@ -1534,11 +1534,11 @@ PosixFileSystmeThunkClose (
   if (This->Private != NULL) {
     if (Private->VolumeLabel != NULL) {
       free (Private->VolumeLabel);
-    }   
+    }
     free (This->Private);
     This->Private = NULL;
   }
-  
+
   return EFI_SUCCESS;
 }
 
index b6b6ae8ef5a09b351e7397058deaa1833596f6aa..36d12986513d7462e8121ffa44d005cc2405080d 100644 (file)
@@ -34,17 +34,17 @@ UINTN
 EFIAPI
 PthreadMutexUnLock (
   IN VOID *Mutex
-  )                        
+  )
 {
   return (UINTN)pthread_mutex_unlock ((pthread_mutex_t *)Mutex);
 }
 
+
 UINTN
 EFIAPI
 PthreadMutexTryLock (
   IN VOID *Mutex
-  )                      
+  )
 {
   return (UINTN)pthread_mutex_trylock ((pthread_mutex_t *)Mutex);
 }
@@ -57,13 +57,13 @@ PthreadMutexInit (
 {
   pthread_mutex_t *Mutex;
   int             err;
-  
+
   Mutex = malloc (sizeof (pthread_mutex_t));
   err = pthread_mutex_init (Mutex, NULL);
   if (err == 0) {
     return Mutex;
   }
-  
+
   return NULL;
 }
 
@@ -76,7 +76,7 @@ PthreadMutexDestroy (
   if (Mutex != NULL) {
     return pthread_mutex_destroy ((pthread_mutex_t *)Mutex);
   }
-  
+
   return -1;
 }
 
@@ -98,26 +98,26 @@ SecFakePthreadStart (
 {
   THREAD_THUNK_THREAD_ENTRY Start;
   sigset_t                  SigMask;
-  
+
   // Save global on the stack before we unlock
   Start   = mThreadMangle.Start;
   pthread_mutex_unlock (&mThreadMangle.Mutex);
-  
+
   // Mask all signals to the APs
-  sigfillset (&SigMask); 
+  sigfillset (&SigMask);
   pthread_sigmask (SIG_BLOCK, &SigMask, NULL);
-  
+
   //
   // We have to start the thread in SEC as we need to follow
-  // OS X calling conventions. We can then call back into 
+  // OS X calling conventions. We can then call back into
   // to the callers Start.
   //
-  // This is a great example of how all problems in computer 
+  // This is a great example of how all problems in computer
   // science can be solved by adding another level of indirection
   //
  return  (VOID *)ReverseGasketUint64 ((CALL_BACK)Start, (UINTN)Context);
 }
-  
+
 UINTN
 PthreadCreate (
   IN  VOID                      *Thread,
@@ -127,8 +127,8 @@ PthreadCreate (
   )
 {
   int         err;
-  BOOLEAN     EnabledOnEntry;    
-  
+  BOOLEAN     EnabledOnEntry;
+
   //
   // Threads inherit interrupt state so disable interrupts before we start thread
   //
@@ -138,21 +138,21 @@ PthreadCreate (
   } else {
     EnabledOnEntry = FALSE;
   }
-  
+
   // Aquire lock for global, SecFakePthreadStart runs in a different thread.
   pthread_mutex_lock (&mThreadMangle.Mutex);
   mThreadMangle.Start   = Start;
-  
+
   err = pthread_create (Thread, Attribute, SecFakePthreadStart, Context);
   if (err != 0) {
     // Thread failed to launch so release the lock;
     pthread_mutex_unlock (&mThreadMangle.Mutex);
   }
-  
+
   if (EnabledOnEntry) {
     // Restore interrupt state
     SecEnableInterrupt ();
-  }    
+  }
 
   return err;
 }
@@ -162,21 +162,21 @@ VOID
 PthreadExit (
   IN VOID *ValuePtr
   )
-{ 
+{
   pthread_exit (ValuePtr);
   return;
 }
 
-   
+
 UINTN
 PthreadSelf (
   VOID
   )
 {
   // POSIX currently allows pthread_t to be a structure or arithmetic type.
-  // Check out sys/types.h to make sure this will work if you are porting. 
+  // Check out sys/types.h to make sure this will work if you are porting.
   // On OS X (Darwin) pthread_t is a pointer to a structure so this code works.
-  return (UINTN)pthread_self (); 
+  return (UINTN)pthread_self ();
 }
 
 
@@ -201,14 +201,14 @@ PthreadOpen (
     // Only single instance is supported
     return EFI_NOT_FOUND;
   }
-  
+
   if (This->ConfigString[0] == L'0') {
     // If AP count is zero no need for threads
     return EFI_NOT_FOUND;
   }
-  
+
   This->Interface = &gPthreadThunk;
-  
+
   return EFI_SUCCESS;
 }
 
index 28063479417476b0dee0b8db1f53743627e34e24..a0af3e4d531f8970eb71a9d900b350faee09aa6e 100644 (file)
@@ -65,7 +65,7 @@ int gInXcode = 0;
 
 /*++
   Breakpoint target for Xcode project. Set in the Xcode XML
-  
+
   Xcode breakpoint will 'source SecMain.gdb'
   gGdbWorkingFileName is set to SecMain.gdb
 
@@ -116,13 +116,13 @@ main (
   CHAR16                *FirmwareVolumesStr;
   UINTN                 *StackPointer;
   FILE                  *GdbTempFile;
-  
+
   //
-  // Xcode does not support sourcing gdb scripts directly, so the Xcode XML 
+  // Xcode does not support sourcing gdb scripts directly, so the Xcode XML
   // has a break point script to source the GdbRun script.
   //
   SecGdbConfigBreak ();
-  
+
   //
   // If dlopen doesn't work, then we build a gdb script to allow the
   // symbols to be loaded.
@@ -141,7 +141,7 @@ main (
   }
 
   printf ("\nEDK II UNIX Host Emulation Environment from edk2.sourceforge.net\n");
-  
+
   setbuf (stdout, 0);
   setbuf (stderr, 0);
 
@@ -154,23 +154,23 @@ main (
   AddThunkPpi (EFI_PEI_PPI_DESCRIPTOR_PPI, &gEmuThunkPpiGuid, &mSecEmuThunkPpi);
 
   SecInitThunkProtocol ();
-  
+
   //
   // Emulator Bus Driver Thunks
   //
-  AddThunkProtocol (&gX11ThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuGop), TRUE); 
-  AddThunkProtocol (&gPosixFileSystemThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuFileSystem), TRUE); 
-  AddThunkProtocol (&gBlockIoThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuVirtualDisk), TRUE); 
-  AddThunkProtocol (&gSnpThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuNetworkInterface), TRUE); 
+  AddThunkProtocol (&gX11ThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuGop), TRUE);
+  AddThunkProtocol (&gPosixFileSystemThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuFileSystem), TRUE);
+  AddThunkProtocol (&gBlockIoThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuVirtualDisk), TRUE);
+  AddThunkProtocol (&gSnpThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuNetworkInterface), TRUE);
 
   //
   // Emulator other Thunks
   //
-  AddThunkProtocol (&gPthreadThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuApCount), FALSE); 
+  AddThunkProtocol (&gPthreadThunkIo, (CHAR16 *)PcdGetPtr (PcdEmuApCount), FALSE);
 
   // EmuSecLibConstructor ();
-  
-  gPpiList = GetThunkPpiList (); 
+
+  gPpiList = GetThunkPpiList ();
 
   //
   // Allocate space for gSystemMemory Array
@@ -272,8 +272,8 @@ main (
       //
       FileHandle = NULL;
       Status = PeiServicesFfsFindNextFile (
-                  EFI_FV_FILETYPE_SECURITY_CORE, 
-                  (EFI_PEI_FV_HANDLE)(UINTN)gFdInfo[Index].Address, 
+                  EFI_FV_FILETYPE_SECURITY_CORE,
+                  (EFI_PEI_FV_HANDLE)(UINTN)gFdInfo[Index].Address,
                   &FileHandle
                   );
       if (!EFI_ERROR (Status)) {
@@ -408,7 +408,7 @@ MapFile (
     perror ("MapFile() Failed");
     return EFI_DEVICE_ERROR;
   }
-      
+
   *Length = (UINT64) FileSize;
   *BaseAddress = (EFI_PHYSICAL_ADDRESS) (UINTN) res;
 
@@ -433,16 +433,16 @@ MapFd0 (
     return EFI_NOT_FOUND;
   }
   FileSize = lseek (fd, 0, SEEK_END);
+
   FvSize = FixedPcdGet64 (PcdEmuFlashFvRecoverySize);
 
   // Assume start of FD is Recovery FV, and make it write protected
   res = mmap (
-          (void *)(UINTN)FixedPcdGet64 (PcdEmuFlashFvRecoveryBase), 
-          FvSize, 
-          PROT_READ | PROT_EXEC, 
-          MAP_PRIVATE, 
-          fd, 
+          (void *)(UINTN)FixedPcdGet64 (PcdEmuFlashFvRecoveryBase),
+          FvSize,
+          PROT_READ | PROT_EXEC,
+          MAP_PRIVATE,
+          fd,
           0
           );
   if (res == MAP_FAILED) {
@@ -453,11 +453,11 @@ MapFd0 (
     // We could not load at the build address, so we need to allow writes
     munmap (res, FvSize);
     res = mmap (
-            (void *)(UINTN)FixedPcdGet64 (PcdEmuFlashFvRecoveryBase), 
-            FvSize, 
-            PROT_READ | PROT_WRITE | PROT_EXEC, 
-            MAP_PRIVATE, 
-            fd, 
+            (void *)(UINTN)FixedPcdGet64 (PcdEmuFlashFvRecoveryBase),
+            FvSize,
+            PROT_READ | PROT_WRITE | PROT_EXEC,
+            MAP_PRIVATE,
+            fd,
             0
             );
     if (res == MAP_FAILED) {
@@ -466,14 +466,14 @@ MapFd0 (
       return EFI_DEVICE_ERROR;
     }
   }
-  
+
   // Map the rest of the FD as read/write
   res2 = mmap (
-          (void *)(UINTN)(FixedPcdGet64 (PcdEmuFlashFvRecoveryBase) + FvSize), 
-          FileSize - FvSize, 
-          PROT_READ | PROT_WRITE | PROT_EXEC, 
+          (void *)(UINTN)(FixedPcdGet64 (PcdEmuFlashFvRecoveryBase) + FvSize),
+          FileSize - FvSize,
+          PROT_READ | PROT_WRITE | PROT_EXEC,
           MAP_SHARED,
-          fd, 
+          fd,
           FvSize
           );
   close (fd);
@@ -483,7 +483,7 @@ MapFd0 (
   }
 
   //
-  // If enabled use the magic page to communicate between modules 
+  // If enabled use the magic page to communicate between modules
   // This replaces the PI PeiServicesTable pointer mechanism that
   // deos not work in the emulator. It also allows the removal of
   // writable globals from SEC, PEI_CORE (libraries), PEIMs
@@ -491,11 +491,11 @@ MapFd0 (
   EmuMagicPage = (void *)(UINTN)FixedPcdGet64 (PcdPeiServicesTablePage);
   if (EmuMagicPage != NULL) {
     res3 =  mmap (
-              (void *)EmuMagicPage, 
-              4096, 
-              PROT_READ | PROT_WRITE, 
+              (void *)EmuMagicPage,
+              4096,
+              PROT_READ | PROT_WRITE,
               MAP_PRIVATE | MAP_ANONYMOUS,
-              0, 
+              0,
               0
               );
     if (res3 != EmuMagicPage) {
@@ -503,11 +503,11 @@ MapFd0 (
       return EFI_DEVICE_ERROR;
     }
   }
-  
+
   *Length = (UINT64) FileSize;
   *BaseAddress = (EFI_PHYSICAL_ADDRESS) (UINTN) res;
 
-  return EFI_SUCCESS;  
+  return EFI_SUCCESS;
 }
 
 
@@ -658,10 +658,10 @@ SecUnixPeiAutoScan (
 
 Routine Description:
  Check to see if an address range is in the EFI GCD memory map.
- This is all of GCD for system memory passed to DXE Core. FV 
+
+ This is all of GCD for system memory passed to DXE Core. FV
  mapping and other device mapped into system memory are not
- inlcuded in the check. 
+ inlcuded in the check.
 
 Arguments:
   Index      - Which memory region to use
@@ -680,7 +680,7 @@ EfiSystemMemoryRange (
 {
   UINTN                 Index;
   EFI_PHYSICAL_ADDRESS  MemoryBase;
-  
+
   MemoryBase = (EFI_PHYSICAL_ADDRESS)(UINTN)MemoryAddress;
   for (Index = 0; Index < gSystemMemoryCount; Index++) {
     if ((MemoryBase >= gSystemMemory[Index].Memory) &&
@@ -688,7 +688,7 @@ EfiSystemMemoryRange (
       return TRUE;
     }
   }
-  
+
   return FALSE;
 }
 
@@ -765,7 +765,7 @@ SecPeCoffGetEntryPoint (
   // On Unix a dlopen is done that will change the entry point
   SecPeCoffRelocateImageExtraAction (&ImageContext);
   *EntryPoint = (VOID *)(UINTN)ImageContext.EntryPoint;
-  
+
   return Status;
 }
 
index 5cd717818ee8f2c5a151962b32cc4e78a85c97d6..aff7c36d7999066d3ca9233b306ec52168d7f9a1 100644 (file)
@@ -73,7 +73,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <termio.h>\r
 #include <sys/vfs.h>\r
 #include <linux/fs.h>\r
-#endif \r
+#endif\r
 \r
 #include <utime.h>\r
 \r
@@ -126,7 +126,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "Gasket.h"\r
 \r
 \r
-#define STACK_SIZE                0x20000      \r
+#define STACK_SIZE                0x20000\r
 \r
 typedef struct {\r
   EFI_PHYSICAL_ADDRESS  Address;\r
@@ -150,10 +150,10 @@ typedef struct {
 EFI_STATUS\r
 EFIAPI\r
 SecUnixPeiLoadFile (\r
-  VOID                  *Pe32Data,  \r
-  EFI_PHYSICAL_ADDRESS  *ImageAddress,  \r
-  UINT64                *ImageSize,  \r
-  EFI_PHYSICAL_ADDRESS  *EntryPoint  \r
+  VOID                  *Pe32Data,\r
+  EFI_PHYSICAL_ADDRESS  *ImageAddress,\r
+  UINT64                *ImageSize,\r
+  EFI_PHYSICAL_ADDRESS  *EntryPoint\r
   );\r
 \r
 int\r
@@ -268,7 +268,7 @@ SecTemporaryRamSupport (
   IN EFI_PHYSICAL_ADDRESS     PermanentMemoryBase,\r
   IN UINTN                    CopySize\r
   );\r
-  \r
+\r
 EFI_STATUS\r
 EFIAPI\r
 GasketSecTemporaryRamSupport (\r
@@ -311,8 +311,8 @@ VOID
 SecInitThunkProtocol (\r
   VOID\r
   );\r
\r
-  \r
+\r
+\r
 EFI_PHYSICAL_ADDRESS *\r
 MapMemory (\r
   INTN fd,\r
index 9bda6f8d314256486edf41dc6d17d20752af874d..c9ba71dc4e6fb188e5417a516282e24db6fac0a2 100644 (file)
@@ -38,7 +38,7 @@
   LinuxPacketFilter.c\r
   BerkeleyPacketFilter.c\r
   MemoryAllocationLib.c\r
-  \r
+\r
 [Sources.X64]\r
   X64/Gasket.S        # convert between Emu x86_64 ABI and EFI X64 ABI\r
   X64/SwitchStack.S\r
index ddcf1e76757b94995a5be2459e84724acd09b538..00d8c58a5b8c4899703a5a64f6c97499536df581 100644 (file)
@@ -40,7 +40,7 @@ typedef struct {
   EMU_GRAPHICS_WINDOW_PROTOCOL GraphicsIo;
 
   Display     *display;
-  int         screen;      // values for window_size in main 
+  int         screen;      // values for window_size in main
   Window      win;
   GC          gc;
   Visual      *visual;
@@ -65,11 +65,11 @@ typedef struct {
   EFI_KEY_DATA keys[NBR_KEYS];
 
   EFI_KEY_STATE KeyState;
-  
+
   EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK    MakeRegisterdKeyCallback;
   EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK    BreakRegisterdKeyCallback;
   VOID                                                *RegisterdKeyCallbackContext;
-  
+
   int                        previous_x;
   int                        previous_y;
   EFI_SIMPLE_POINTER_STATE   pointer_state;
@@ -83,7 +83,7 @@ HandleEvents(
 
 void
 fill_shift_mask (
-  IN  struct uga_drv_shift_mask *sm, 
+  IN  struct uga_drv_shift_mask *sm,
   IN  unsigned long             mask
   )
 {
@@ -134,18 +134,18 @@ TryCreateShmImage (
     XDestroyImage(Drv->image);
     return 0;
   }
-      
+
   Drv->image_data = shmat (Drv->xshm_info.shmid, NULL, 0);
   if(!Drv->image_data) {
     shmctl (Drv->xshm_info.shmid, IPC_RMID, NULL);
     XDestroyImage(Drv->image);
     return 0;
   }
-  
-#ifndef __APPLE__  
+
+#ifndef __APPLE__
   //
   // This closes shared memory in real time on OS X. Only closes after folks quit using
-  // it on Linux. 
+  // it on Linux.
   //
   shmctl (Drv->xshm_info.shmid, IPC_RMID, NULL);
 #endif
@@ -164,18 +164,18 @@ TryCreateShmImage (
 
 EFI_STATUS
 X11Size (
-  IN  EMU_GRAPHICS_WINDOW_PROTOCOL  *GraphicsIo, 
-  IN  UINT32                        Width, 
+  IN  EMU_GRAPHICS_WINDOW_PROTOCOL  *GraphicsIo,
+  IN  UINT32                        Width,
   IN  UINT32                        Height
   )
 {
   GRAPHICS_IO_PRIVATE *Drv;
   XSizeHints          size_hints;
 
-  // Destroy current buffer if created. 
+  // Destroy current buffer if created.
   Drv = (GRAPHICS_IO_PRIVATE *)GraphicsIo;
   if (Drv->image != NULL) {
-    // Before destroy buffer, need to make sure the buffer available for access. 
+    // Before destroy buffer, need to make sure the buffer available for access.
     XDestroyImage (Drv->image);
 
     if (Drv->use_shm) {
@@ -190,7 +190,7 @@ X11Size (
   Drv->height = Height;
   XResizeWindow (Drv->display, Drv->win, Width, Height);
 
-  // Allocate image. 
+  // Allocate image.
   if (XShmQueryExtension(Drv->display) && TryCreateShmImage(Drv)) {
     Drv->use_shm = 1;
   } else {
@@ -202,7 +202,7 @@ X11Size (
     } else {
       Drv->pixel_shift = 0;
     }
-      
+
     Drv->image_data = malloc ((Drv->width * Drv->height) << Drv->pixel_shift);
     Drv->image = XCreateImage (
                     Drv->display, Drv->visual, Drv->depth,
@@ -211,14 +211,14 @@ X11Size (
                     8 << Drv->pixel_shift, 0
                     );
   }
-  
+
   Drv->line_bytes = Drv->image->bytes_per_line;
 
   fill_shift_mask (&Drv->r, Drv->image->red_mask);
   fill_shift_mask (&Drv->g, Drv->image->green_mask);
   fill_shift_mask (&Drv->b, Drv->image->blue_mask);
 
-  // Set WM hints.  
+  // Set WM hints.
   size_hints.flags = PSize | PMinSize | PMaxSize;
   size_hints.min_width = size_hints.max_width = size_hints.base_width = Width;
   size_hints.min_height = size_hints.max_height = size_hints.base_height = Height;
@@ -231,15 +231,15 @@ X11Size (
 
 void
 handleKeyEvent (
-  IN  GRAPHICS_IO_PRIVATE *Drv, 
-  IN  XEvent              *ev, 
+  IN  GRAPHICS_IO_PRIVATE *Drv,
+  IN  XEvent              *ev,
   IN  BOOLEAN             Make
   )
 {
   KeySym        *KeySym;
   EFI_KEY_DATA  KeyData;
   int           KeySymArraySize;
+
   if (Make) {
     if (Drv->key_count == NBR_KEYS) {
       return;
@@ -252,16 +252,16 @@ handleKeyEvent (
   //
   // Returns an array of KeySymArraySize of KeySym for the keycode. [0] is lower case, [1] is upper case,
   // [2] and [3] are based on option and command modifiers. The problem we have is command V
-  // could be mapped to a crazy Unicode character so the old scheme of returning a string. 
+  // could be mapped to a crazy Unicode character so the old scheme of returning a string.
   //
   KeySym = XGetKeyboardMapping (Drv->display, ev->xkey.keycode, 1, &KeySymArraySize);
-   
+
   KeyData.Key.ScanCode = 0;
   KeyData.Key.UnicodeChar = 0;
   KeyData.KeyState.KeyShiftState = 0;
 
   //
-  // Skipping EFI_SCROLL_LOCK_ACTIVE & EFI_NUM_LOCK_ACTIVE since they are not on Macs  
+  // Skipping EFI_SCROLL_LOCK_ACTIVE & EFI_NUM_LOCK_ACTIVE since they are not on Macs
   //
   if ((ev->xkey.state & LockMask) == 0) {
     Drv->KeyState.KeyToggleState &= ~EFI_CAPS_LOCK_ACTIVE;
@@ -270,9 +270,9 @@ handleKeyEvent (
       Drv->KeyState.KeyToggleState |= EFI_CAPS_LOCK_ACTIVE;
     }
   }
-  
+
   // Skipping EFI_MENU_KEY_PRESSED and EFI_SYS_REQ_PRESSED
-  
+
   switch (*KeySym) {
   case XK_Control_R:
     if (Make) {
@@ -282,7 +282,7 @@ handleKeyEvent (
     }
    break;
   case XK_Control_L:
-    if (Make) {    
+    if (Make) {
       Drv->KeyState.KeyShiftState |=  EFI_LEFT_CONTROL_PRESSED;
     } else {
       Drv->KeyState.KeyShiftState &= ~EFI_LEFT_CONTROL_PRESSED;
@@ -303,7 +303,7 @@ handleKeyEvent (
       Drv->KeyState.KeyShiftState &= ~EFI_LEFT_SHIFT_PRESSED;
     }
     break;
-  
+
   case XK_Mode_switch:
     if (Make) {
       Drv->KeyState.KeyShiftState |=  EFI_LEFT_ALT_PRESSED;
@@ -326,44 +326,44 @@ handleKeyEvent (
       Drv->KeyState.KeyShiftState &= ~EFI_LEFT_LOGO_PRESSED;
     }
     break;
-  
+
   case XK_KP_Home:
   case XK_Home:       KeyData.Key.ScanCode = SCAN_HOME;       break;
-  
+
   case XK_KP_End:
   case XK_End:        KeyData.Key.ScanCode = SCAN_END;        break;
-  
-  case XK_KP_Left: 
+
+  case XK_KP_Left:
   case XK_Left:       KeyData.Key.ScanCode = SCAN_LEFT;       break;
-  
+
   case XK_KP_Right:
   case XK_Right:      KeyData.Key.ScanCode = SCAN_RIGHT;      break;
-  
+
   case XK_KP_Up:
   case XK_Up:         KeyData.Key.ScanCode = SCAN_UP;         break;
-  
+
   case XK_KP_Down:
   case XK_Down:       KeyData.Key.ScanCode = SCAN_DOWN;       break;
-  
+
   case XK_KP_Delete:
   case XK_Delete:       KeyData.Key.ScanCode = SCAN_DELETE;     break;
-  
-  case XK_KP_Insert:  
+
+  case XK_KP_Insert:
   case XK_Insert:     KeyData.Key.ScanCode = SCAN_INSERT;     break;
-  
+
   case XK_KP_Page_Up:
   case XK_Page_Up:    KeyData.Key.ScanCode = SCAN_PAGE_UP;    break;
-  
+
   case XK_KP_Page_Down:
   case XK_Page_Down:  KeyData.Key.ScanCode = SCAN_PAGE_DOWN;  break;
-  
+
   case XK_Escape:     KeyData.Key.ScanCode = SCAN_ESC;        break;
 
   case XK_Pause:      KeyData.Key.ScanCode = SCAN_PAUSE;      break;
 
   case XK_KP_F1:
   case XK_F1:   KeyData.Key.ScanCode = SCAN_F1;   break;
-  
+
   case XK_KP_F2:
   case XK_F2:   KeyData.Key.ScanCode = SCAN_F2;   break;
 
@@ -376,18 +376,18 @@ handleKeyEvent (
   case XK_F5:   KeyData.Key.ScanCode = SCAN_F5;   break;
   case XK_F6:   KeyData.Key.ScanCode = SCAN_F6;   break;
   case XK_F7:   KeyData.Key.ScanCode = SCAN_F7;   break;
-  
+
   // Don't map into X11 by default on a Mac
-  // System Preferences->Keyboard->Keyboard Shortcuts can be configured 
+  // System Preferences->Keyboard->Keyboard Shortcuts can be configured
   // to not use higher function keys as shortcuts and the will show up
-  // in X11. 
+  // in X11.
   case XK_F8:   KeyData.Key.ScanCode = SCAN_F8;   break;
   case XK_F9:   KeyData.Key.ScanCode = SCAN_F9;   break;
   case XK_F10:  KeyData.Key.ScanCode = SCAN_F10;  break;
-  
+
   case XK_F11:  KeyData.Key.ScanCode = SCAN_F11;  break;
   case XK_F12:  KeyData.Key.ScanCode = SCAN_F12;  break;
-  
+
   case XK_F13:  KeyData.Key.ScanCode = SCAN_F13;  break;
   case XK_F14:  KeyData.Key.ScanCode = SCAN_F14;  break;
   case XK_F15:  KeyData.Key.ScanCode = SCAN_F15;  break;
@@ -402,16 +402,16 @@ handleKeyEvent (
   case XK_F24:  KeyData.Key.ScanCode = SCAN_F24;  break;
 
   // No mapping in X11
-  //case XK_:   KeyData.Key.ScanCode = SCAN_MUTE;            break;             
-  //case XK_:   KeyData.Key.ScanCode = SCAN_VOLUME_UP;       break;            
-  //case XK_:   KeyData.Key.ScanCode = SCAN_VOLUME_DOWN;     break;       
-  //case XK_:   KeyData.Key.ScanCode = SCAN_BRIGHTNESS_UP;   break;      
-  //case XK_:   KeyData.Key.ScanCode = SCAN_BRIGHTNESS_DOWN; break;    
-  //case XK_:   KeyData.Key.ScanCode = SCAN_SUSPEND;         break; 
-  //case XK_:   KeyData.Key.ScanCode = SCAN_HIBERNATE;       break; 
-  //case XK_:   KeyData.Key.ScanCode = SCAN_TOGGLE_DISPLAY;  break;       
-  //case XK_:   KeyData.Key.ScanCode = SCAN_RECOVERY;        break;      
-  //case XK_:   KeyData.Key.ScanCode = SCAN_EJECT;           break;     
+  //case XK_:   KeyData.Key.ScanCode = SCAN_MUTE;            break;
+  //case XK_:   KeyData.Key.ScanCode = SCAN_VOLUME_UP;       break;
+  //case XK_:   KeyData.Key.ScanCode = SCAN_VOLUME_DOWN;     break;
+  //case XK_:   KeyData.Key.ScanCode = SCAN_BRIGHTNESS_UP;   break;
+  //case XK_:   KeyData.Key.ScanCode = SCAN_BRIGHTNESS_DOWN; break;
+  //case XK_:   KeyData.Key.ScanCode = SCAN_SUSPEND;         break;
+  //case XK_:   KeyData.Key.ScanCode = SCAN_HIBERNATE;       break;
+  //case XK_:   KeyData.Key.ScanCode = SCAN_TOGGLE_DISPLAY;  break;
+  //case XK_:   KeyData.Key.ScanCode = SCAN_RECOVERY;        break;
+  //case XK_:   KeyData.Key.ScanCode = SCAN_EJECT;           break;
 
   case XK_BackSpace:  KeyData.Key.UnicodeChar = 0x0008; break;
 
@@ -419,28 +419,28 @@ handleKeyEvent (
   case XK_Tab:        KeyData.Key.UnicodeChar = 0x0009; break;
 
   case XK_Linefeed:   KeyData.Key.UnicodeChar = 0x000a; break;
-  
+
   case XK_KP_Enter:
   case XK_Return:     KeyData.Key.UnicodeChar = 0x000d; break;
 
-  case XK_KP_Equal      : KeyData.Key.UnicodeChar = L'='; break;                     
-  case XK_KP_Multiply   : KeyData.Key.UnicodeChar = L'*'; break;                  
-  case XK_KP_Add        : KeyData.Key.UnicodeChar = L'+'; break;                       
-  case XK_KP_Separator  : KeyData.Key.UnicodeChar = L'~'; break;                  
-  case XK_KP_Subtract   : KeyData.Key.UnicodeChar = L'-'; break;                  
-  case XK_KP_Decimal    : KeyData.Key.UnicodeChar = L'.'; break;                   
-  case XK_KP_Divide     : KeyData.Key.UnicodeChar = L'/'; break;                    
-
-  case XK_KP_0    : KeyData.Key.UnicodeChar = L'0'; break;                         
-  case XK_KP_1    : KeyData.Key.UnicodeChar = L'1'; break;                         
-  case XK_KP_2    : KeyData.Key.UnicodeChar = L'2'; break;                         
-  case XK_KP_3    : KeyData.Key.UnicodeChar = L'3'; break;                         
-  case XK_KP_4    : KeyData.Key.UnicodeChar = L'4'; break;                        
-  case XK_KP_5    : KeyData.Key.UnicodeChar = L'5'; break;                         
-  case XK_KP_6    : KeyData.Key.UnicodeChar = L'6'; break;                         
-  case XK_KP_7    : KeyData.Key.UnicodeChar = L'7'; break;                         
-  case XK_KP_8    : KeyData.Key.UnicodeChar = L'8'; break;                        
-  case XK_KP_9    : KeyData.Key.UnicodeChar = L'9'; break;                         
+  case XK_KP_Equal      : KeyData.Key.UnicodeChar = L'='; break;
+  case XK_KP_Multiply   : KeyData.Key.UnicodeChar = L'*'; break;
+  case XK_KP_Add        : KeyData.Key.UnicodeChar = L'+'; break;
+  case XK_KP_Separator  : KeyData.Key.UnicodeChar = L'~'; break;
+  case XK_KP_Subtract   : KeyData.Key.UnicodeChar = L'-'; break;
+  case XK_KP_Decimal    : KeyData.Key.UnicodeChar = L'.'; break;
+  case XK_KP_Divide     : KeyData.Key.UnicodeChar = L'/'; break;
+
+  case XK_KP_0    : KeyData.Key.UnicodeChar = L'0'; break;
+  case XK_KP_1    : KeyData.Key.UnicodeChar = L'1'; break;
+  case XK_KP_2    : KeyData.Key.UnicodeChar = L'2'; break;
+  case XK_KP_3    : KeyData.Key.UnicodeChar = L'3'; break;
+  case XK_KP_4    : KeyData.Key.UnicodeChar = L'4'; break;
+  case XK_KP_5    : KeyData.Key.UnicodeChar = L'5'; break;
+  case XK_KP_6    : KeyData.Key.UnicodeChar = L'6'; break;
+  case XK_KP_7    : KeyData.Key.UnicodeChar = L'7'; break;
+  case XK_KP_8    : KeyData.Key.UnicodeChar = L'8'; break;
+  case XK_KP_9    : KeyData.Key.UnicodeChar = L'9'; break;
 
   default:
     ;
@@ -453,23 +453,23 @@ handleKeyEvent (
   if (*KeySym < XK_BackSpace) {
     if (((Drv->KeyState.KeyShiftState & (EFI_LEFT_SHIFT_PRESSED | EFI_RIGHT_SHIFT_PRESSED)) != 0) ||
         ((Drv->KeyState.KeyToggleState & EFI_CAPS_LOCK_ACTIVE) != 0) ) {
-      
+
       KeyData.Key.UnicodeChar = (CHAR16)KeySym[KEYSYM_UPPER];
 
-      // Per UEFI spec since we converted the Unicode clear the shift bits we pass up 
+      // Per UEFI spec since we converted the Unicode clear the shift bits we pass up
       KeyData.KeyState.KeyShiftState &= ~(EFI_LEFT_SHIFT_PRESSED | EFI_RIGHT_SHIFT_PRESSED);
     } else {
       KeyData.Key.UnicodeChar = (CHAR16)KeySym[KEYSYM_LOWER];
     }
   } else {
-    // XK_BackSpace is the start of XK_MISCELLANY. These are the XK_? keys we process in this file 
-    ; 
+    // XK_BackSpace is the start of XK_MISCELLANY. These are the XK_? keys we process in this file
+    ;
   }
-  
+
   if (Make) {
     memcpy (&Drv->keys[Drv->key_wr], &KeyData, sizeof (EFI_KEY_DATA));
     Drv->key_wr = (Drv->key_wr + 1) % NBR_KEYS;
-    Drv->key_count++; 
+    Drv->key_count++;
     if (Drv->MakeRegisterdKeyCallback != NULL) {
       ReverseGasketUint64Uint64 (Drv->MakeRegisterdKeyCallback ,Drv->RegisterdKeyCallbackContext, &KeyData);
     }
@@ -483,7 +483,7 @@ handleKeyEvent (
 
 void
 handleMouseMoved(
-  IN  GRAPHICS_IO_PRIVATE   *Drv, 
+  IN  GRAPHICS_IO_PRIVATE   *Drv,
   IN  XEvent                *ev
   )
 {
@@ -504,8 +504,8 @@ handleMouseMoved(
 
 void
 handleMouseDown (
-  IN  GRAPHICS_IO_PRIVATE *Drv, 
-  IN  XEvent              *ev, 
+  IN  GRAPHICS_IO_PRIVATE *Drv,
+  IN  XEvent              *ev,
   IN  BOOLEAN             Pressed
   )
 {
@@ -521,10 +521,10 @@ handleMouseDown (
 
 void
 Redraw (
-  IN  GRAPHICS_IO_PRIVATE *Drv, 
-  IN  UINTN               X, 
-  IN  UINTN               Y, 
-  IN  UINTN               Width, 
+  IN  GRAPHICS_IO_PRIVATE *Drv,
+  IN  UINTN               X,
+  IN  UINTN               Y,
+  IN  UINTN               Width,
   IN  UINTN               Height
   )
 {
@@ -597,7 +597,7 @@ HandleEvents (
 
 unsigned long
 X11PixelToColor (
-  IN  GRAPHICS_IO_PRIVATE *Drv, 
+  IN  GRAPHICS_IO_PRIVATE *Drv,
   IN  EFI_UGA_PIXEL       pixel
   )
 {
@@ -608,14 +608,14 @@ X11PixelToColor (
 
 EFI_UGA_PIXEL
 X11ColorToPixel (
-  IN  GRAPHICS_IO_PRIVATE *Drv, 
+  IN  GRAPHICS_IO_PRIVATE *Drv,
   IN  unsigned long       val
   )
 {
   EFI_UGA_PIXEL Pixel;
 
   memset (&Pixel, 0, sizeof (EFI_UGA_PIXEL));
-  
+
   // Truncation not an issue since X11 and EFI are both using 8 bits per color
   Pixel.Red =   (val >> Drv->r.shift) << Drv->r.csize;
   Pixel.Green = (val >> Drv->g.shift) << Drv->g.csize;
@@ -631,52 +631,52 @@ X11CheckKey (
   )
 {
   GRAPHICS_IO_PRIVATE  *Drv;
-  
+
   Drv = (GRAPHICS_IO_PRIVATE *)GraphicsIo;
-  
+
   HandleEvents (Drv);
-  
+
   if (Drv->key_count != 0) {
     return EFI_SUCCESS;
   }
-  
+
   return EFI_NOT_READY;
 }
 
 EFI_STATUS
 X11GetKey (
-  IN  EMU_GRAPHICS_WINDOW_PROTOCOL  *GraphicsIo, 
+  IN  EMU_GRAPHICS_WINDOW_PROTOCOL  *GraphicsIo,
   IN  EFI_KEY_DATA                  *KeyData
   )
 {
   EFI_STATUS          EfiStatus;
   GRAPHICS_IO_PRIVATE *Drv;
-  
+
   Drv = (GRAPHICS_IO_PRIVATE *)GraphicsIo;
 
   EfiStatus = X11CheckKey (GraphicsIo);
   if (EFI_ERROR (EfiStatus)) {
     return EfiStatus;
   }
-  
+
   CopyMem (KeyData, &Drv->keys[Drv->key_rd], sizeof (EFI_KEY_DATA));
   Drv->key_rd = (Drv->key_rd + 1) % NBR_KEYS;
   Drv->key_count--;
-  
+
   return EFI_SUCCESS;
 }
 
 
 EFI_STATUS
 X11KeySetState (
-  IN EMU_GRAPHICS_WINDOW_PROTOCOL   *GraphicsIo, 
+  IN EMU_GRAPHICS_WINDOW_PROTOCOL   *GraphicsIo,
   IN EFI_KEY_TOGGLE_STATE           *KeyToggleState
   )
 {
   GRAPHICS_IO_PRIVATE  *Drv;
-  
-  Drv = (GRAPHICS_IO_PRIVATE *)GraphicsIo;  
-  
+
+  Drv = (GRAPHICS_IO_PRIVATE *)GraphicsIo;
+
   if (*KeyToggleState & EFI_CAPS_LOCK_ACTIVE) {
     if ((Drv->KeyState.KeyToggleState & EFI_CAPS_LOCK_ACTIVE) == 0) {
       //
@@ -685,7 +685,7 @@ X11KeySetState (
       //
     }
   }
-    
+
   Drv->KeyState.KeyToggleState = *KeyToggleState;
   return EFI_SUCCESS;
 }
@@ -693,7 +693,7 @@ X11KeySetState (
 
 EFI_STATUS
 X11RegisterKeyNotify (
-  IN EMU_GRAPHICS_WINDOW_PROTOCOL                        *GraphicsIo, 
+  IN EMU_GRAPHICS_WINDOW_PROTOCOL                        *GraphicsIo,
   IN EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK    MakeCallBack,
   IN EMU_GRAPHICS_WINDOW_REGISTER_KEY_NOTIFY_CALLBACK    BreakCallBack,
   IN VOID                                                *Context
@@ -701,7 +701,7 @@ X11RegisterKeyNotify (
 {
   GRAPHICS_IO_PRIVATE  *Drv;
 
-  Drv = (GRAPHICS_IO_PRIVATE *)GraphicsIo;  
+  Drv = (GRAPHICS_IO_PRIVATE *)GraphicsIo;
 
   Drv->MakeRegisterdKeyCallback    = MakeCallBack;
   Drv->BreakRegisterdKeyCallback   = BreakCallBack;
@@ -834,10 +834,10 @@ X11Blt (
   case EfiUgaVideoToVideo:
     XCopyArea(
       Private->display, Private->win, Private->win, Private->gc,
-      Args->SourceX, Args->SourceY, Args->Width, Args->Height, 
+      Args->SourceX, Args->SourceY, Args->Width, Args->Height,
       Args->DestinationX, Args->DestinationY
       );
-      
+
     while (1) {
       XNextEvent (Private->display, &ev);
       HandleEvent (Private, &ev);
@@ -878,14 +878,14 @@ X11CheckPointer (
   if (Drv->pointer_state_changed != 0) {
     return EFI_SUCCESS;
   }
-  
+
   return EFI_NOT_READY;
 }
 
 
 EFI_STATUS
 X11GetPointerState (
-  IN  EMU_GRAPHICS_WINDOW_PROTOCOL  *GraphicsIo, 
+  IN  EMU_GRAPHICS_WINDOW_PROTOCOL  *GraphicsIo,
   IN  EFI_SIMPLE_POINTER_STATE      *State
   )
 {
@@ -898,7 +898,7 @@ X11GetPointerState (
   if (EfiStatus != EFI_SUCCESS) {
     return EfiStatus;
   }
-  
+
   memcpy (State, &Drv->pointer_state, sizeof (EFI_SIMPLE_POINTER_STATE));
 
   Drv->pointer_state.RelativeMovementX = 0;
@@ -932,7 +932,7 @@ X11GraphicsWindowOpen (
   Drv->GraphicsIo.Blt                 = GasketX11Blt;
   Drv->GraphicsIo.CheckPointer        = GasketX11CheckPointer;
   Drv->GraphicsIo.GetPointerState     = GasketX11GetPointerState;
-  
+
 
   Drv->key_count = 0;
   Drv->key_rd = 0;
@@ -942,8 +942,8 @@ X11GraphicsWindowOpen (
   Drv->MakeRegisterdKeyCallback    = NULL;
   Drv->BreakRegisterdKeyCallback   = NULL;
   Drv->RegisterdKeyCallbackContext = NULL;
-  
-  
+
+
   Drv->display = XOpenDisplay (display_name);
   if (Drv->display == NULL) {
     fprintf (stderr, "uga: cannot connect to X server %s\n", XDisplayName (display_name));
@@ -960,16 +960,16 @@ X11GraphicsWindowOpen (
                 );
 
   Drv->depth = DefaultDepth (Drv->display, Drv->screen);
-  XDefineCursor (Drv->display, Drv->win, XCreateFontCursor (Drv->display, XC_pirate)); 
+  XDefineCursor (Drv->display, Drv->win, XCreateFontCursor (Drv->display, XC_pirate));
 
-  Drv->Title = malloc (StrSize (This->ConfigString));  
+  Drv->Title = malloc (StrSize (This->ConfigString));
   UnicodeStrToAsciiStr (This->ConfigString, Drv->Title);
   XStoreName (Drv->display, Drv->win, Drv->Title);
 
 //  XAutoRepeatOff (Drv->display);
   XSelectInput (
     Drv->display, Drv->win,
-    ExposureMask | KeyPressMask | KeyReleaseMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask 
+    ExposureMask | KeyPressMask | KeyReleaseMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask
     );
   Drv->gc = DefaultGC (Drv->display, Drv->screen);
 
@@ -991,7 +991,7 @@ X11GraphicsWindowClose (
   if (Drv == NULL) {
     return EFI_SUCCESS;
   }
-  
+
   if (Drv->image != NULL) {
     XDestroyImage(Drv->image);
 
@@ -1004,12 +1004,12 @@ X11GraphicsWindowClose (
   }
   XDestroyWindow (Drv->display, Drv->win);
   XCloseDisplay (Drv->display);
-  
+
 #ifdef __APPLE__
   // Free up the shared memory
   shmctl (Drv->xshm_info.shmid, IPC_RMID, NULL);
 #endif
-  
+
   free (Drv);
   return EFI_SUCCESS;
 }
index 7ea49bb4220f815fff1eca3fb99e5ab2ac07433e..c339461cd8c13a01eedf7ab4ee4a7903e11bac45 100644 (file)
 
 // 32 byte shadow to spill rcx-r9, 8 bytes to align stack on 16 byte boundry
 // Any call with 0 - 4 arguments allocates 40 bytes on the stack.
-// For more than 4 args you always have to increase in quanta of 16 so 5 or 6 args is 56, 
+// For more than 4 args you always have to increase in quanta of 16 so 5 or 6 args is 56,
 // 7 or 8 args is 72, and 9 or 10 args is 88
 
 
 
   .text
-  
+
 //
 // EMU_THUNK_PROTOCOL gaskets (EFIAPI to UNIX ABI)
 //
@@ -49,11 +49,11 @@ ASM_PFX(GasketSecWriteStdErr):
   pushq    %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq    %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call  ASM_PFX(SecWriteStdErr)
-  
+
   popq  %rdi            // restore state
   popq  %rsi
   popq  %rbp
@@ -69,7 +69,7 @@ ASM_PFX(GasketSecConfigStdIn):
   pushq    %rdi
 
   call  ASM_PFX(SecConfigStdIn)
-  
+
   popq  %rdi            // restore state
   popq  %rsi
   popq  %rbp
@@ -83,11 +83,11 @@ ASM_PFX(GasketSecWriteStdOut):
   pushq    %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq    %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call  ASM_PFX(SecWriteStdOut)
-  
+
   popq  %rdi            // restore state
   popq  %rsi
   popq  %rbp
@@ -101,11 +101,11 @@ ASM_PFX(GasketSecReadStdIn):
   pushq    %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq    %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call  ASM_PFX(SecReadStdIn)
-  
+
   popq  %rdi            // restore state
   popq  %rsi
   popq  %rbp
@@ -120,7 +120,7 @@ ASM_PFX(GasketSecPollStdIn):
   pushq    %rdi
 
   call  ASM_PFX(SecPollStdIn)
-  
+
   popq  %rdi            // restore state
   popq  %rsi
   popq  %rbp
@@ -134,10 +134,10 @@ ASM_PFX(GasketSecMalloc):
   pushq    %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq    %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call  ASM_PFX(SecMalloc)
-  
+
   popq  %rdi            // restore state
   popq  %rsi
   popq  %rbp
@@ -151,10 +151,10 @@ ASM_PFX(GasketSecValloc):
   pushq    %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq    %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call  ASM_PFX(SecValloc)
-  
+
   popq  %rdi            // restore state
   popq  %rsi
   popq  %rbp
@@ -168,10 +168,10 @@ ASM_PFX(GasketSecFree):
   pushq    %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq    %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call  ASM_PFX(SecFree)
-  
+
   popq  %rdi            // restore state
   popq  %rsi
   popq  %rbp
@@ -186,11 +186,11 @@ ASM_PFX(GasketSecSetTimer):
   pushq    %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq    %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call  ASM_PFX(SecSetTimer)
-  
+
   popq  %rdi            // restore state
   popq  %rsi
   popq  %rbp
@@ -206,7 +206,7 @@ ASM_PFX(GasketSecEnableInterrupt):
   pushq   %rdi
 
   call    ASM_PFX(SecEnableInterrupt)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -222,7 +222,7 @@ ASM_PFX(GasketSecDisableInterrupt):
   pushq   %rdi
 
   call    ASM_PFX(SecDisableInterrupt)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -237,7 +237,7 @@ ASM_PFX(GasketQueryPerformanceFrequency):
   pushq   %rdi
 
   call    ASM_PFX(QueryPerformanceFrequency)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -253,7 +253,7 @@ ASM_PFX(GasketQueryPerformanceCounter):
   pushq   %rdi
 
   call    ASM_PFX(QueryPerformanceCounter)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -268,16 +268,16 @@ ASM_PFX(GasketSecSleep):
   pushq    %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq    %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call  ASM_PFX(SecSleep)
-  
+
   popq  %rdi            // restore state
   popq  %rsi
   popq  %rbp
   ret
-  
-  
+
+
 ASM_GLOBAL ASM_PFX(GasketSecCpuSleep)
 ASM_PFX(GasketSecCpuSleep):
   pushq   %rbp            // stack frame is for the debugger
@@ -287,24 +287,24 @@ ASM_PFX(GasketSecCpuSleep):
   pushq    %rdi
 
   call  ASM_PFX(SecCpuSleep)
-  
+
   popq  %rdi            // restore state
   popq  %rsi
   popq  %rbp
   ret
-  
-  
+
+
 ASM_GLOBAL ASM_PFX(GasketSecExit)
 ASM_PFX(GasketSecExit):
   pushq   %rbp                 // stack frame is for the debugger
   movq    %rsp, %rbp
 
-  movq    %rcx, %rdi           // Swizzle args 
+  movq    %rcx, %rdi           // Swizzle args
   call    ASM_PFX(SecExit)     // Less to do as we will never return to EFI ABI world
 LDEAD_LOOP:
   jmp  LDEAD_LOOP              // _exit should never return
 
-  
+
 ASM_GLOBAL ASM_PFX(GasketSecGetTime)
 ASM_PFX(GasketSecGetTime):
   pushq   %rbp            // stack frame is for the debugger
@@ -313,8 +313,8 @@ ASM_PFX(GasketSecGetTime):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call  ASM_PFX(SecGetTime)
 
@@ -331,8 +331,8 @@ ASM_PFX(GasketSecSetTime):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call  ASM_PFX(SecSetTime)
 
@@ -350,13 +350,13 @@ ASM_PFX(GasketSecGetNextProtocol):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
 
   call    ASM_PFX(SecGetNextProtocol)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -372,16 +372,16 @@ ASM_PFX(GasketSecPeCoffGetEntryPoint):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call    ASM_PFX(SecPeCoffGetEntryPoint)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
   ret
+
 ASM_GLOBAL ASM_PFX(GasketSecPeCoffRelocateImageExtraAction)
 ASM_PFX(GasketSecPeCoffRelocateImageExtraAction):
   pushq   %rbp            // stack frame is for the debugger
@@ -390,15 +390,15 @@ ASM_PFX(GasketSecPeCoffRelocateImageExtraAction):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(SecPeCoffRelocateImageExtraAction)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
   ret
+
 ASM_GLOBAL ASM_PFX(GasketSecPeCoffUnloadImageExtraAction)
 ASM_PFX(GasketSecPeCoffUnloadImageExtraAction):
   pushq   %rbp            // stack frame is for the debugger
@@ -407,15 +407,15 @@ ASM_PFX(GasketSecPeCoffUnloadImageExtraAction):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(SecPeCoffUnloadImageExtraAction)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
   ret
+
 
 ASM_GLOBAL ASM_PFX(GasketSecEmuThunkAddress)
 ASM_PFX(GasketSecEmuThunkAddress):
@@ -426,7 +426,7 @@ ASM_PFX(GasketSecEmuThunkAddress):
   pushq   %rdi
 
   call    ASM_PFX(SecEmuThunkAddress)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -444,13 +444,13 @@ ASM_PFX(GasketX11Size):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
 
   call    ASM_PFX(X11Size)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -465,10 +465,10 @@ ASM_PFX(GasketX11CheckKey):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(X11CheckKey)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -482,11 +482,11 @@ ASM_PFX(GasketX11GetKey):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call    ASM_PFX(X11GetKey)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -501,17 +501,17 @@ ASM_PFX(GasketX11KeySetState):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call    ASM_PFX(X11KeySetState)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
   ret
 
-  
+
 ASM_GLOBAL ASM_PFX(GasketX11RegisterKeyNotify)
 ASM_PFX(GasketX11RegisterKeyNotify):
   pushq   %rbp            // stack frame is for the debugger
@@ -520,19 +520,19 @@ ASM_PFX(GasketX11RegisterKeyNotify):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
 
   call    ASM_PFX(X11RegisterKeyNotify)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
   ret
 
-  
+
 ASM_GLOBAL ASM_PFX(GasketX11Blt)
 ASM_PFX(GasketX11Blt):
   pushq   %rbp            // stack frame is for the debugger
@@ -541,13 +541,13 @@ ASM_PFX(GasketX11Blt):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
 
   call    ASM_PFX(X11Blt)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -562,10 +562,10 @@ ASM_PFX(GasketX11CheckPointer):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(X11CheckPointer)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -580,11 +580,11 @@ ASM_PFX(GasketX11GetPointerState):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call    ASM_PFX(X11GetPointerState)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -599,16 +599,16 @@ ASM_PFX(GasketX11GraphicsWindowOpen):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(X11GraphicsWindowOpen)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
   ret
 
+
 ASM_GLOBAL ASM_PFX(GasketX11GraphicsWindowClose)
 ASM_PFX(GasketX11GraphicsWindowClose):
   pushq   %rbp            // stack frame is for the debugger
@@ -617,11 +617,11 @@ ASM_PFX(GasketX11GraphicsWindowClose):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
   movq    %r9,  %rcx
 
   call    ASM_PFX(X11GraphicsWindowClose)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -638,10 +638,10 @@ ASM_PFX(GasketPthreadMutexLock):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(PthreadMutexLock)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -656,10 +656,10 @@ ASM_PFX(GasketPthreadMutexUnLock):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(PthreadMutexUnLock)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -673,10 +673,10 @@ ASM_PFX(GasketPthreadMutexTryLock):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(PthreadMutexTryLock)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -692,14 +692,14 @@ ASM_PFX(GasketPthreadMutexInit):
 
 
   call    ASM_PFX(PthreadMutexInit)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
   ret
 
 
+
 ASM_GLOBAL ASM_PFX(GasketPthreadMutexDestroy)
 ASM_PFX(GasketPthreadMutexDestroy):
   pushq   %rbp            // stack frame is for the debugger
@@ -708,10 +708,10 @@ ASM_PFX(GasketPthreadMutexDestroy):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(PthreadMutexDestroy)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -726,19 +726,19 @@ ASM_PFX(GasketPthreadCreate):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
 
   call    ASM_PFX(PthreadCreate)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
   ret
 
-                          
+
 ASM_GLOBAL ASM_PFX(GasketPthreadExit)
 ASM_PFX(GasketPthreadExit):
   pushq   %rbp            // stack frame is for the debugger
@@ -747,17 +747,17 @@ ASM_PFX(GasketPthreadExit):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(PthreadExit)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
   ret
 
 
-                            
+
 ASM_GLOBAL ASM_PFX(GasketPthreadSelf)
 ASM_PFX(GasketPthreadSelf):
   pushq   %rbp            // stack frame is for the debugger
@@ -768,7 +768,7 @@ ASM_PFX(GasketPthreadSelf):
 
 
   call    ASM_PFX(PthreadSelf)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -783,10 +783,10 @@ ASM_PFX(GasketPthreadOpen):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(PthreadOpen)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -801,10 +801,10 @@ ASM_PFX(GasketPthreadClose):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(PthreadClose)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -826,14 +826,14 @@ ASM_PFX(ReverseGasketUint64):
   pushq   %rbp            // stack frame is for the debugger
   movq    %rsp, %rbp
 
-  movq    %rdi, %rax    // Swizzle args 
-  movq    %rsi, %rcx     
+  movq    %rdi, %rax    // Swizzle args
+  movq    %rsi, %rcx
 
   subq  $32, %rsp        // 32-byte shadow space
   call  *%rax
   addq  $32, %rsp
 
-  popq   %rbp          
+  popq   %rbp
   ret
 
 //
@@ -850,16 +850,16 @@ ASM_PFX(ReverseGasketUint64Uint64):
   pushq   %rbp            // stack frame is for the debugger
   movq    %rsp, %rbp
 
-  movq    %rdi, %rax    // Swizzle args 
-  movq    %rsi, %rcx     
+  movq    %rdi, %rax    // Swizzle args
+  movq    %rsi, %rcx
 
   subq  $32, %rsp        // 32-byte shadow space
   call  *%rax
   addq  $32, %rsp
 
-  popq   %rbp          
+  popq   %rbp
   ret
-  
+
 
 ASM_GLOBAL ASM_PFX(GasketSecUnixPeiAutoScan)
 ASM_PFX(GasketSecUnixPeiAutoScan):
@@ -869,12 +869,12 @@ ASM_PFX(GasketSecUnixPeiAutoScan):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
 
   call    ASM_PFX(SecUnixPeiAutoScan)
-  
+
   popq    %rdi          // restore state
   popq    %rsi
   popq    %rbp
@@ -889,8 +889,8 @@ ASM_PFX(GasketSecUnixFdAddress):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
 
@@ -912,8 +912,8 @@ ASM_PFX(GasketPosixOpenVolume):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
 
@@ -933,12 +933,12 @@ ASM_PFX(GasketPosixFileOpen):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
-  movq    48(%rbp), %r8 
+  movq    48(%rbp), %r8
+
   call    ASM_PFX(PosixFileOpen)
 
   popq    %rdi          // restore state
@@ -955,7 +955,7 @@ ASM_PFX(GasketPosixFileCLose):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(PosixFileCLose)
 
@@ -964,7 +964,7 @@ ASM_PFX(GasketPosixFileCLose):
   popq    %rbp
   ret
 
-  
+
 ASM_GLOBAL ASM_PFX(GasketPosixFileDelete)
 ASM_PFX(GasketPosixFileDelete):
   pushq   %rbp            // stack frame is for the debugger
@@ -973,7 +973,7 @@ ASM_PFX(GasketPosixFileDelete):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(PosixFileDelete)
 
@@ -991,8 +991,8 @@ ASM_PFX(GasketPosixFileRead):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
 
   call    ASM_PFX(PosixFileRead)
@@ -1002,7 +1002,7 @@ ASM_PFX(GasketPosixFileRead):
   popq    %rbp
   ret
 
-  
+
 ASM_GLOBAL ASM_PFX(GasketPosixFileWrite)
 ASM_PFX(GasketPosixFileWrite):
   pushq   %rbp            // stack frame is for the debugger
@@ -1011,8 +1011,8 @@ ASM_PFX(GasketPosixFileWrite):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
 
   call    ASM_PFX(PosixFileWrite)
@@ -1031,8 +1031,8 @@ ASM_PFX(GasketPosixFileSetPossition):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call    ASM_PFX(PosixFileSetPossition)
 
@@ -1050,8 +1050,8 @@ ASM_PFX(GasketPosixFileGetPossition):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call    ASM_PFX(PosixFileGetPossition)
 
@@ -1069,8 +1069,8 @@ ASM_PFX(GasketPosixFileGetInfo):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
 
@@ -1090,8 +1090,8 @@ ASM_PFX(GasketPosixFileSetInfo):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
 
@@ -1111,7 +1111,7 @@ ASM_PFX(GasketPosixFileFlush):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(PosixFileFlush)
 
@@ -1129,7 +1129,7 @@ ASM_PFX(GasketPosixFileSystmeThunkOpen):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(PosixFileSystmeThunkOpen)
 
@@ -1147,7 +1147,7 @@ ASM_PFX(GasketPosixFileSystmeThunkClose):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(PosixFileSystmeThunkClose)
 
@@ -1164,8 +1164,8 @@ ASM_PFX(GasketEmuBlockIoReset):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call    ASM_PFX(EmuBlockIoReset)
 
@@ -1183,12 +1183,12 @@ ASM_PFX(GasketEmuBlockIoReadBlocks):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
-  movq    48(%rbp), %r8   
-  movq    56(%rbp), %r9   
+  movq    48(%rbp), %r8
+  movq    56(%rbp), %r9
 
   call    ASM_PFX(EmuBlockIoReadBlocks)
 
@@ -1206,12 +1206,12 @@ ASM_PFX(GasketEmuBlockIoWriteBlocks):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
-  movq    48(%rbp), %r8   
-  movq    56(%rbp), %r9   
+  movq    48(%rbp), %r8
+  movq    56(%rbp), %r9
 
   call    ASM_PFX(EmuBlockIoWriteBlocks)
 
@@ -1229,8 +1229,8 @@ ASM_PFX(GasketEmuBlockIoFlushBlocks):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi    
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call    ASM_PFX(EmuBlockIoFlushBlocks)
 
@@ -1248,8 +1248,8 @@ ASM_PFX(GasketEmuBlockIoCreateMapping):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call    ASM_PFX(EmuBlockIoCreateMapping)
 
@@ -1267,7 +1267,7 @@ ASM_PFX(GasketBlockIoThunkOpen):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(EmuBlockIoThunkOpen)
 
@@ -1285,7 +1285,7 @@ ASM_PFX(GasketBlockIoThunkClose):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(EmuBlockIoThunkClose)
 
@@ -1304,8 +1304,8 @@ ASM_PFX(GasketSnpCreateMapping):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call    ASM_PFX(EmuSnpCreateMapping)
 
@@ -1323,7 +1323,7 @@ ASM_PFX(GasketSnpStart):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(EmuSnpStart)
 
@@ -1341,7 +1341,7 @@ ASM_PFX(GasketSnpStop):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(EmuSnpStop)
 
@@ -1359,8 +1359,8 @@ ASM_PFX(GasketSnpInitialize):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
 
   call    ASM_PFX(EmuSnpInitialize)
@@ -1380,8 +1380,8 @@ ASM_PFX(GasketSnpReset):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
 
   call    ASM_PFX(EmuSnpReset)
 
@@ -1399,7 +1399,7 @@ ASM_PFX(GasketSnpShutdown):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(EmuSnpShutdown)
 
@@ -1417,12 +1417,12 @@ ASM_PFX(GasketSnpReceiveFilters):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
-  movq    48(%rbp), %r8   
-  movq    56(%rbp), %r9   
+  movq    48(%rbp), %r8
+  movq    56(%rbp), %r9
 
   call    ASM_PFX(EmuSnpReceiveFilters)
 
@@ -1440,8 +1440,8 @@ ASM_PFX(GasketSnpStationAddress):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
 
   call    ASM_PFX(EmuSnpStationAddress)
@@ -1461,8 +1461,8 @@ ASM_PFX(GasketSnpStatistics):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
 
@@ -1482,8 +1482,8 @@ ASM_PFX(GasketSnpMCastIpToMac):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
 
@@ -1503,11 +1503,11 @@ ASM_PFX(GasketSnpNvData):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
-  movq    48(%rbp), %r8   
+  movq    48(%rbp), %r8
 
   call    ASM_PFX(EmuSnpNvData)
 
@@ -1525,8 +1525,8 @@ ASM_PFX(GasketSnpGetStatus):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
 
   call    ASM_PFX(EmuSnpGetStatus)
@@ -1542,17 +1542,17 @@ ASM_GLOBAL ASM_PFX(GasketSnpTransmit)
 ASM_PFX(GasketSnpTransmit):
   pushq   %rbp            // stack frame is for the debugger
   movq    %rsp, %rbp
-       subq    $16, %rsp       // Allocate space for args on the stack 
+       subq    $16, %rsp       // Allocate space for args on the stack
 
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
-  movq    48(%rbp), %r8   
-  movq    56(%rbp), %r9   
+  movq    48(%rbp), %r8
+  movq    56(%rbp), %r9
   movq    64(%rbp), %rax
   movq    %rax,     (%rsp)
 
@@ -1575,12 +1575,12 @@ ASM_PFX(GasketSnpReceive):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
-  movq    %rdx, %rsi     
+  movq    %rcx, %rdi    // Swizzle args
+  movq    %rdx, %rsi
   movq    %r8,  %rdx
   movq    %r9,  %rcx
-  movq    48(%rbp), %r8   
-  movq    56(%rbp), %r9   
+  movq    48(%rbp), %r8
+  movq    56(%rbp), %r9
   movq    64(%rbp), %rax
   movq    %rax,     (%rsp)
 
@@ -1601,7 +1601,7 @@ ASM_PFX(GasketSnpThunkOpen):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(EmuSnpThunkOpen)
 
@@ -1619,7 +1619,7 @@ ASM_PFX(GasketSnpThunkClose):
   pushq   %rsi          // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI
   pushq   %rdi
 
-  movq    %rcx, %rdi    // Swizzle args 
+  movq    %rcx, %rdi    // Swizzle args
 
   call    ASM_PFX(EmuSnpThunkClose)
 
index 8a57b781b54045bb640487bdde6ca29bf4659e26..e82b352b6a66067ed697bf5a6047d64500b86a33 100644 (file)
@@ -23,7 +23,7 @@
 #\r
 #   (rdi) EntryPoint    - Entry point with new stack.\r
 #   (rsi) Context1      - Parameter1 for entry point. (rcx)\r
-#   (rdx) Context2      - Parameter2 for entry point. (rdx) \r
+#   (rdx) Context2      - Parameter2 for entry point. (rdx)\r
 #   (rcx) NewStack      - The pointer to new stack.\r
 #\r
 # Returns:\r
@@ -37,11 +37,11 @@ ASM_PFX(PeiSwitchStacks):
     movq    %rsp, %rbp\r
 \r
     movq    %rcx, %rsp    // update stack pointer\r
-    \r
+\r
     movq    %rdi, %rax    // entry point to %rax\r
     movq    %rsi, %rcx    // Adjust Context1\r
                           // Context2 already in the rigth spot\r
-    \r
+\r
     #\r
     # Reserve space for register parameters (rcx, rdx, r8 & r9) on the stack,\r
     # in case the callee wishes to spill them.\r
@@ -49,5 +49,5 @@ ASM_PFX(PeiSwitchStacks):
     subq    $32, %rsp  // 32-byte shadow space plus alignment pad\r
     call    *%rax\r
 \r
-  \r
+\r
 \r
index 922df012fa73b1c3c4f4f0fac921f57c1045574a..0b08a7357cb917a22e0e63690845c2a596973083 100644 (file)
   #\r
   PlatformBdsLib|EmulatorPkg/Library/EmuBdsLib/EmuBdsLib.inf\r
   KeyMapLib|EmulatorPkg/Library/KeyMapLibNull/KeyMapLibNull.inf\r
-  \r
+\r
   #\r
   # Misc\r
   #\r
 \r
 [LibraryClasses.common.UEFI_DRIVER]\r
   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
\r
+\r
 [LibraryClasses.common.UEFI_APPLICATION]\r
   PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
 \r
   gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareFdSize|0x002a0000\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareBlockSize|0x10000\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareVolume|L"../FV/FV_RECOVERY.fd"\r
-  \r
+\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuMemorySizeForSecMain|L"64!64"\r
 \r
 !if $(BUILD_NEW_SHELL)\r
 #define BOOT_ON_FLASH_UPDATE                          0x12\r
 #define BOOT_IN_RECOVERY_MODE                         0x20\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuBootMode|0\r
-  \r
+\r
   gEmulatorPkgTokenSpaceGuid.PcdEmuApCount|L"1"\r
 \r
   # For a CD-ROM/DVD use L"diag.dmg:RO:2048"\r
   }\r
 \r
 [Components.IA32]\r
-  MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf \r
+  MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
 !endif\r
 \r
 [Components]\r
       PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
   }\r
   MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf\r
-  MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf \r
-  \r
+  MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf\r
+\r
   IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r
   EmulatorPkg/BootModePei/BootModePei.inf\r
   MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r
   MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf {\r
    <LibraryClasses>\r
       DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
-      SerialPortLib|EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.inf    \r
+      SerialPortLib|EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.inf\r
   }\r
 \r
   MdeModulePkg/Universal/Metronome/Metronome.inf\r
   EmbeddedPkg/SerialDxe/SerialDxe.inf {\r
    <LibraryClasses>\r
       DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
-      SerialPortLib|EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.inf    \r
+      SerialPortLib|EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.inf\r
   }\r
-  \r
+\r
   MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
   IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf\r
-  MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf \r
+  MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
   #{\r
-  #  <LibraryClasses>  \r
+  #  <LibraryClasses>\r
   #    NULL|EmulatorPkg/Library/DevicePathTextLib/DevicePathTextLib.inf\r
   #}\r
-  \r
+\r
   MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
   MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
   MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
index 2977a9ff7bf5e5a0f7330ec7e97c211d2480b542..0778612f583cc1c7eecd5c0ff796ef772866b8d0 100644 (file)
@@ -28,7 +28,7 @@
 ################################################################################\r
 [FD.Fv_Recovery]\r
 #\r
-# In OS X PEIMs are really XIP, so we need to make this address match the malloced \r
+# In OS X PEIMs are really XIP, so we need to make this address match the malloced\r
 # buffer for the FD (0x41000000). If this address does not match the FV will get\r
 # relocated in place (works, but not a great idea).\r
 #\r
@@ -184,7 +184,7 @@ INF  MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
 #  DXE Phase modules\r
 ##\r
 INF  MdeModulePkg/Core/Dxe/DxeMain.inf\r
-INF  MdeModulePkg/Universal/PCD/Dxe/Pcd.inf  \r
+INF  MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
 INF  MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r
 INF  MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r
 INF  MdeModulePkg/Universal/Metronome/Metronome.inf\r
@@ -220,7 +220,7 @@ INF  MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
 INF  IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf\r
 INF  MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf\r
 \r
-INF  EmulatorPkg/EmuBusDriverDxe/EmuBusDriverDxe.inf \r
+INF  EmulatorPkg/EmuBusDriverDxe/EmuBusDriverDxe.inf\r
 INF  EmulatorPkg/EmuGopDxe/EmuGopDxe.inf\r
 INF  EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystemDxe.inf\r
 INF  EmulatorPkg/EmuBlockIoDxe/EmuBlockIoDxe.inf\r
@@ -229,7 +229,7 @@ INF  EmulatorPkg/EmuSnpDxe/EmuSnpDxe.inf
 INF  MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
 INF  MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
 INF  MdeModulePkg/Universal/PrintDxe/PrintDxe.inf\r
-INF  IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf \r
+INF  IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf\r
 INF  MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf\r
 INF  MdeModulePkg/Application/HelloWorld/HelloWorld.inf\r
 \r
@@ -250,7 +250,7 @@ INF  MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
 INF  MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf\r
 INF  MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf\r
 \r
\r
+\r
 !if $(BUILD_FAT)\r
 INF FatPkg/EnhancedFatDxe/Fat.inf\r
 !else\r
@@ -270,22 +270,22 @@ INF  RuleOverride = BINARY EdkShellBinPkg/FullShell/FullShell.inf
 FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {\r
   SECTION RAW = MdeModulePkg/Logo/Logo.bmp\r
 }\r
-   \r
-   \r
+\r
+\r
 ################################################################################\r
-#  \r
+#\r
 # Rules are use with the [FV] section's module INF type to define\r
 # how an FFS file is created for a given INF file. The following Rule are the default\r
 # rules for the different module type. User can add the customized rules to define the\r
 # content of the FFS file.\r
-#  \r
+#\r
 ################################################################################\r
-   \r
-   \r
+\r
+\r
 ############################################################################\r
-# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section   # \r
+# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section   #\r
 ############################################################################\r
-#  \r
+#\r
 #[Rule.Common.DXE_DRIVER]\r
 #  FILE DRIVER = $(NAMED_GUID) {\r
 #    DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex\r
@@ -302,24 +302,24 @@ FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
 [Rule.Common.SEC]\r
   FILE SEC = $(NAMED_GUID)  {\r
     PE32     PE32    Align=32       $(INF_OUTPUT)/$(MODULE_NAME).efi\r
-    UI       STRING ="$(MODULE_NAME)" Optional         \r
-    VERSION  STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)    \r
+    UI       STRING ="$(MODULE_NAME)" Optional\r
+    VERSION  STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
   }\r
 \r
 \r
 [Rule.Common.PEI_CORE]\r
   FILE PEI_CORE = $(NAMED_GUID) {\r
     PE32     PE32    Align=32       $(INF_OUTPUT)/$(MODULE_NAME).efi\r
-    UI       STRING ="$(MODULE_NAME)" Optional         \r
-    VERSION  STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)    \r
+    UI       STRING ="$(MODULE_NAME)" Optional\r
+    VERSION  STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
   }\r
 \r
 [Rule.Common.PEIM]\r
   FILE PEIM = $(NAMED_GUID) {\r
      PEI_DEPEX PEI_DEPEX Optional        $(INF_OUTPUT)/$(MODULE_NAME).depex\r
      PE32      PE32   Align=32       $(INF_OUTPUT)/$(MODULE_NAME).efi\r
-     UI       STRING="$(MODULE_NAME)" Optional         \r
-     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)   \r
+     UI       STRING="$(MODULE_NAME)" Optional\r
+     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
   }\r
 \r
 [Rule.Common.DXE_CORE]\r