]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Acpi/S3SaveStateDxe/AcpiS3ContextSave.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / Acpi / S3SaveStateDxe / AcpiS3ContextSave.c
index 3c05558b23fdf440af7fb74644efecd13769d3aa..3f99023f110f633cddfd4b23f3e6a28763ca64c1 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   This is the implementation to save ACPI S3 Context.\r
 \r
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -43,7 +43,7 @@ EFI_GUID              mAcpiS3IdtrProfileGuid = {
 \r
   @param  MemoryType   Memory type of memory to allocate.\r
   @param  Size         Size of memory to allocate.\r
-  \r
+\r
   @return Allocated address for output.\r
 \r
 **/\r
@@ -101,7 +101,7 @@ ScanTableInRSDT (
   }\r
 \r
   EntryCount = (Rsdt->Length - sizeof (EFI_ACPI_DESCRIPTION_HEADER)) / sizeof(UINT32);\r
-  \r
+\r
   EntryPtr = (UINT32 *)(Rsdt + 1);\r
   for (Index = 0; Index < EntryCount; Index ++, EntryPtr ++) {\r
     Table = (EFI_ACPI_DESCRIPTION_HEADER *)((UINTN)(*EntryPtr));\r
@@ -109,7 +109,7 @@ ScanTableInRSDT (
       return Table;\r
     }\r
   }\r
-  \r
+\r
   return NULL;\r
 }\r
 \r
@@ -140,7 +140,7 @@ ScanTableInXSDT (
   }\r
 \r
   EntryCount = (Xsdt->Length - sizeof (EFI_ACPI_DESCRIPTION_HEADER)) / sizeof(UINT64);\r
-  \r
+\r
   BasePtr = (UINTN)(Xsdt + 1);\r
   for (Index = 0; Index < EntryCount; Index ++) {\r
     CopyMem (&EntryPtr, (VOID *)(BasePtr + Index * sizeof(UINT64)), sizeof(UINT64));\r
@@ -149,7 +149,7 @@ ScanTableInXSDT (
       return Table;\r
     }\r
   }\r
-  \r
+\r
   return NULL;\r
 }\r
 \r
@@ -157,7 +157,7 @@ ScanTableInXSDT (
   To find Facs in FADT.\r
 \r
   @param Fadt   FADT table pointer\r
-  \r
+\r
   @return  Facs table pointer.\r
 **/\r
 EFI_ACPI_2_0_FIRMWARE_ACPI_CONTROL_STRUCTURE  *\r
@@ -187,12 +187,12 @@ FindAcpiFacsFromFadt (
 \r
 /**\r
   To find Facs in Acpi tables.\r
\r
-  To find Firmware ACPI control strutcure in Acpi Tables since the S3 waking vector is stored \r
+\r
+  To find Firmware ACPI control strutcure in Acpi Tables since the S3 waking vector is stored\r
   in the table.\r
 \r
   @param AcpiTableGuid   The guid used to find ACPI table in UEFI ConfigurationTable.\r
-  \r
+\r
   @return  Facs table pointer.\r
 **/\r
 EFI_ACPI_2_0_FIRMWARE_ACPI_CONTROL_STRUCTURE  *\r
@@ -256,10 +256,10 @@ FindAcpiFacsTableByAcpiGuid (
 \r
 /**\r
   To find Facs in Acpi tables.\r
\r
-  To find Firmware ACPI control strutcure in Acpi Tables since the S3 waking vector is stored \r
+\r
+  To find Firmware ACPI control strutcure in Acpi Tables since the S3 waking vector is stored\r
   in the table.\r
-  \r
+\r
   @return  Facs table pointer.\r
 **/\r
 EFI_ACPI_2_0_FIRMWARE_ACPI_CONTROL_STRUCTURE  *\r
@@ -315,20 +315,20 @@ IsLongModeWakingVectorSupport (
 \r
   @param[in] LongModeWakingVectorSupport    Support long mode waking vector or not.\r
 \r
-  If BootScriptExector driver will run in 64-bit mode, this function will establish the 1:1 \r
+  If BootScriptExector driver will run in 64-bit mode, this function will establish the 1:1\r
   virtual to physical mapping page table when long mode waking vector is supported, otherwise\r
   create 4G page table when long mode waking vector is not supported and let PF handler to\r
   handle > 4G request.\r
-  If BootScriptExector driver will not run in 64-bit mode, this function will do nothing. \r
-  \r
-  @return Page table base address. \r
+  If BootScriptExector driver will not run in 64-bit mode, this function will do nothing.\r
+\r
+  @return Page table base address.\r
 \r
 **/\r
 EFI_PHYSICAL_ADDRESS\r
 S3AllocatePageTablesBuffer (\r
   IN BOOLEAN    LongModeWakingVectorSupport\r
   )\r
-{  \r
+{\r
   if (FeaturePcdGet (PcdDxeIplSwitchToLongMode)) {\r
     UINTN                                         ExtraPageTablePages;\r
     UINT32                                        RegEax;\r
@@ -419,7 +419,7 @@ S3AllocatePageTablesBuffer (
     //\r
     // If DXE is running 32-bit mode, no need to establish page table.\r
     //\r
-    return  (EFI_PHYSICAL_ADDRESS) 0;  \r
+    return  (EFI_PHYSICAL_ADDRESS) 0;\r
   }\r
 }\r
 \r