]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseS3IoLib/S3IoLib.c
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / BaseS3IoLib / S3IoLib.c
index 017bcbb9cd37c6a287d465f54c917a486e401cd5..adadc2373197f794f7a690fdc0f7f45c35bfbf40 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   I/O and MMIO Library Services that do I/O and also enable the I/O operatation\r
   to be replayed during an S3 resume.\r
-  \r
-  Copyright (c) 2006 -2012, Intel Corporation. All rights reserved.<BR>\r
+\r
+  Copyright (c) 2006 -2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -27,7 +27,7 @@
   Saves an I/O port value to the boot script.\r
 \r
   This internal worker function saves an I/O port value in the S3 script\r
-  to be replayed on S3 resume. \r
+  to be replayed on S3 resume.\r
 \r
   If the saving process fails, then ASSERT().\r
 \r
@@ -44,7 +44,7 @@ InternalSaveIoWriteValueToBootScript (
   )\r
 {\r
   RETURN_STATUS                Status;\r
-  \r
+\r
   Status = S3BootScriptSaveIoWrite (\r
              Width,\r
              Port,\r
@@ -53,12 +53,12 @@ InternalSaveIoWriteValueToBootScript (
              );\r
   ASSERT (Status == RETURN_SUCCESS);\r
 }\r
-  \r
+\r
 /**\r
   Saves an 8-bit I/O port value to the boot script.\r
 \r
   This internal worker function saves an 8-bit I/O port value in the S3 script\r
-  to be replayed on S3 resume. \r
+  to be replayed on S3 resume.\r
 \r
   If the saving process fails, then ASSERT().\r
 \r
@@ -189,7 +189,7 @@ S3IoAnd8 (
 \r
 /**\r
   Reads an 8-bit I/O port, performs a bitwise AND followed by a bitwise\r
-  inclusive OR, and writes the result back to the 8-bit I/O port and saves \r
+  inclusive OR, and writes the result back to the 8-bit I/O port and saves\r
   the value in the S3 script to be replayed on S3 resume.\r
 \r
   Reads the 8-bit I/O port specified by Port, performs a bitwise AND between\r
@@ -290,7 +290,7 @@ S3IoBitFieldWrite8 (
 \r
 /**\r
   Reads a bit field in an 8-bit port, performs a bitwise OR, and writes the\r
-  result back to the bit field in the 8-bit port and saves the value in the \r
+  result back to the bit field in the 8-bit port and saves the value in the\r
   S3 script to be replayed on S3 resume.\r
 \r
   Reads the 8-bit I/O port specified by Port, performs a bitwise OR\r
@@ -329,7 +329,7 @@ S3IoBitFieldOr8 (
 \r
 /**\r
   Reads a bit field in an 8-bit port, performs a bitwise AND, and writes the\r
-  result back to the bit field in the 8-bit port  and saves the value in the \r
+  result back to the bit field in the 8-bit port  and saves the value in the\r
   S3 script to be replayed on S3 resume.\r
 \r
   Reads the 8-bit I/O port specified by Port, performs a bitwise AND between\r
@@ -413,7 +413,7 @@ S3IoBitFieldAndThenOr8 (
   Saves a 16-bit I/O port value to the boot script.\r
 \r
   This internal worker function saves a 16-bit I/O port value in the S3 script\r
-  to be replayed on S3 resume. \r
+  to be replayed on S3 resume.\r
 \r
   If the saving process fails, then ASSERT().\r
 \r
@@ -430,7 +430,7 @@ InternalSaveIoWrite16ValueToBootScript (
   )\r
 {\r
   InternalSaveIoWriteValueToBootScript (S3BootScriptWidthUint16, Port, &Value);\r
-  \r
+\r
   return Value;\r
 }\r
 \r
@@ -486,7 +486,7 @@ S3IoWrite16 (
 \r
 /**\r
   Reads a 16-bit I/O port, performs a bitwise OR, and writes the\r
-  result back to the 16-bit I/O port and saves the value in the S3 script to \r
+  result back to the 16-bit I/O port and saves the value in the S3 script to\r
   be replayed on S3 resume.\r
 \r
   Reads the 16-bit I/O port specified by Port, performs a bitwise OR\r
@@ -607,7 +607,7 @@ S3IoBitFieldRead16 (
 }\r
 \r
 /**\r
-  Writes a bit field to an I/O register and saves the value in the S3 script \r
+  Writes a bit field to an I/O register and saves the value in the S3 script\r
   to be replayed on S3 resume.\r
 \r
   Writes Value to the bit field of the I/O register. The bit field is specified\r
@@ -645,7 +645,7 @@ S3IoBitFieldWrite16 (
 \r
 /**\r
   Reads a bit field in a 16-bit port, performs a bitwise OR, and writes the\r
-  result back to the bit field in the 16-bit port and saves the value in the \r
+  result back to the bit field in the 16-bit port and saves the value in the\r
   S3 script to be replayed on S3 resume.\r
 \r
   Reads the 16-bit I/O port specified by Port, performs a bitwise OR\r
@@ -684,7 +684,7 @@ S3IoBitFieldOr16 (
 \r
 /**\r
   Reads a bit field in a 16-bit port, performs a bitwise AND, and writes the\r
-  result back to the bit field in the 16-bit port and saves the value in the \r
+  result back to the bit field in the 16-bit port and saves the value in the\r
   S3 script to be replayed on S3 resume.\r
 \r
   Reads the 16-bit I/O port specified by Port, performs a bitwise AND between\r
@@ -724,7 +724,7 @@ S3IoBitFieldAnd16 (
 /**\r
   Reads a bit field in a 16-bit port, performs a bitwise AND followed by a\r
   bitwise OR, and writes the result back to the bit field in the\r
-  16-bit port  and saves the value in the S3 script to be replayed on S3 \r
+  16-bit port  and saves the value in the S3 script to be replayed on S3\r
   resume.\r
 \r
   Reads the 16-bit I/O port specified by Port, performs a bitwise AND followed\r
@@ -769,7 +769,7 @@ S3IoBitFieldAndThenOr16 (
   Saves a 32-bit I/O port value to the boot script.\r
 \r
   This internal worker function saves a 32-bit I/O port value in the S3 script\r
-  to be replayed on S3 resume. \r
+  to be replayed on S3 resume.\r
 \r
   If the saving process fails, then ASSERT().\r
 \r
@@ -786,7 +786,7 @@ InternalSaveIoWrite32ValueToBootScript (
   )\r
 {\r
   InternalSaveIoWriteValueToBootScript (S3BootScriptWidthUint32, Port, &Value);\r
-  \r
+\r
   return Value;\r
 }\r
 \r
@@ -842,7 +842,7 @@ S3IoWrite32 (
 \r
 /**\r
   Reads a 32-bit I/O port, performs a bitwise OR, and writes the\r
-  result back to the 32-bit I/O port and saves the value in the S3 script to \r
+  result back to the 32-bit I/O port and saves the value in the S3 script to\r
   be replayed on S3 resume.\r
 \r
   Reads the 32-bit I/O port specified by Port, performs a bitwise OR\r
@@ -900,7 +900,7 @@ S3IoAnd32 (
 \r
 /**\r
   Reads a 32-bit I/O port, performs a bitwise AND followed by a bitwise\r
-  inclusive OR, and writes the result back to the 32-bit I/O port and saves \r
+  inclusive OR, and writes the result back to the 32-bit I/O port and saves\r
   the value in the S3 script to be replayed on S3 resume.\r
 \r
   Reads the 32-bit I/O port specified by Port, performs a bitwise AND between\r
@@ -1001,7 +1001,7 @@ S3IoBitFieldWrite32 (
 \r
 /**\r
   Reads a bit field in a 32-bit port, performs a bitwise OR, and writes the\r
-  result back to the bit field in the 32-bit port and saves the value in the \r
+  result back to the bit field in the 32-bit port and saves the value in the\r
   S3 script to be replayed on S3 resume.\r
 \r
   Reads the 32-bit I/O port specified by Port, performs a bitwise OR\r
@@ -1040,7 +1040,7 @@ S3IoBitFieldOr32 (
 \r
 /**\r
   Reads a bit field in a 32-bit port, performs a bitwise AND, and writes the\r
-  result back to the bit field in the 32-bit port and saves the value in the \r
+  result back to the bit field in the 32-bit port and saves the value in the\r
   S3 script to be replayed on S3 resume.\r
 \r
   Reads the 32-bit I/O port specified by Port, performs a bitwise AND between\r
@@ -1080,7 +1080,7 @@ S3IoBitFieldAnd32 (
 /**\r
   Reads a bit field in a 32-bit port, performs a bitwise AND followed by a\r
   bitwise OR, and writes the result back to the bit field in the\r
-  32-bit port and saves the value in the S3 script to be replayed on S3 \r
+  32-bit port and saves the value in the S3 script to be replayed on S3\r
   resume.\r
 \r
   Reads the 32-bit I/O port specified by Port, performs a bitwise AND followed\r
@@ -1125,7 +1125,7 @@ S3IoBitFieldAndThenOr32 (
   Saves a 64-bit I/O port value to the boot script.\r
 \r
   This internal worker function saves a 64-bit I/O port value in the S3 script\r
-  to be replayed on S3 resume. \r
+  to be replayed on S3 resume.\r
 \r
   If the saving process fails, then ASSERT().\r
 \r
@@ -1142,7 +1142,7 @@ InternalSaveIoWrite64ValueToBootScript (
   )\r
 {\r
   InternalSaveIoWriteValueToBootScript (S3BootScriptWidthUint64, Port, &Value);\r
-  \r
+\r
   return Value;\r
 }\r
 \r
@@ -1198,7 +1198,7 @@ S3IoWrite64 (
 \r
 /**\r
   Reads a 64-bit I/O port, performs a bitwise OR, and writes the\r
-  result back to the 64-bit I/O port and saves the value in the S3 script to \r
+  result back to the 64-bit I/O port and saves the value in the S3 script to\r
   be replayed on S3 resume.\r
 \r
   Reads the 64-bit I/O port specified by Port, performs a bitwise OR\r
@@ -1357,7 +1357,7 @@ S3IoBitFieldWrite64 (
 \r
 /**\r
   Reads a bit field in a 64-bit port, performs a bitwise OR, and writes the\r
-  result back to the bit field in the 64-bit port and saves the value in the \r
+  result back to the bit field in the 64-bit port and saves the value in the\r
   S3 script to be replayed on S3 resume.\r
 \r
   Reads the 64-bit I/O port specified by Port, performs a bitwise OR\r
@@ -1396,7 +1396,7 @@ S3IoBitFieldOr64 (
 \r
 /**\r
   Reads a bit field in a 64-bit port, performs a bitwise AND, and writes the\r
-  result back to the bit field in the 64-bit port and saves the value in the \r
+  result back to the bit field in the 64-bit port and saves the value in the\r
   S3 script to be replayed on S3 resume.\r
 \r
   Reads the 64-bit I/O port specified by Port, performs a bitwise AND between\r
@@ -1436,7 +1436,7 @@ S3IoBitFieldAnd64 (
 /**\r
   Reads a bit field in a 64-bit port, performs a bitwise AND followed by a\r
   bitwise OR, and writes the result back to the bit field in the\r
-  64-bit port and saves the value in the S3 script to be replayed on S3 \r
+  64-bit port and saves the value in the S3 script to be replayed on S3\r
   resume.\r
 \r
   Reads the 64-bit I/O port specified by Port, performs a bitwise AND followed\r
@@ -1481,7 +1481,7 @@ S3IoBitFieldAndThenOr64 (
   Saves an MMIO register value to the boot script.\r
 \r
   This internal worker function saves an MMIO register value in the S3 script\r
-  to be replayed on S3 resume. \r
+  to be replayed on S3 resume.\r
 \r
   If the saving process fails, then ASSERT().\r
 \r
@@ -1512,7 +1512,7 @@ InternalSaveMmioWriteValueToBootScript (
   Saves an 8-bit MMIO register value to the boot script.\r
 \r
   This internal worker function saves an 8-bit MMIO register value in the S3 script\r
-  to be replayed on S3 resume. \r
+  to be replayed on S3 resume.\r
 \r
   If the saving process fails, then ASSERT().\r
 \r
@@ -1534,7 +1534,7 @@ InternalSaveMmioWrite8ValueToBootScript (
 }\r
 \r
 /**\r
-  Reads an 8-bit MMIO register and saves the value in the S3 script to be \r
+  Reads an 8-bit MMIO register and saves the value in the S3 script to be\r
   replayed on S3 resume.\r
 \r
   Reads the 8-bit MMIO register specified by Address. The 8-bit read value is\r
@@ -1558,7 +1558,7 @@ S3MmioRead8 (
 }\r
 \r
 /**\r
-  Writes an 8-bit MMIO register and saves the value in the S3 script to be \r
+  Writes an 8-bit MMIO register and saves the value in the S3 script to be\r
   replayed on S3 resume.\r
 \r
   Writes the 8-bit MMIO register specified by Address with the value specified\r
@@ -1585,7 +1585,7 @@ S3MmioWrite8 (
 \r
 /**\r
   Reads an 8-bit MMIO register, performs a bitwise OR, and writes the\r
-  result back to the 8-bit MMIO register and saves the value in the S3 script \r
+  result back to the 8-bit MMIO register and saves the value in the S3 script\r
   to be replayed on S3 resume.\r
 \r
   Reads the 8-bit MMIO register specified by Address, performs a bitwise\r
@@ -1614,7 +1614,7 @@ S3MmioOr8 (
 \r
 /**\r
   Reads an 8-bit MMIO register, performs a bitwise AND, and writes the result\r
-  back to the 8-bit MMIO register and saves the value in the S3 script to be \r
+  back to the 8-bit MMIO register and saves the value in the S3 script to be\r
   replayed on S3 resume.\r
 \r
   Reads the 8-bit MMIO register specified by Address, performs a bitwise AND\r
@@ -1643,7 +1643,7 @@ S3MmioAnd8 (
 \r
 /**\r
   Reads an 8-bit MMIO register, performs a bitwise AND followed by a bitwise\r
-  inclusive OR, and writes the result back to the 8-bit MMIO register and saves \r
+  inclusive OR, and writes the result back to the 8-bit MMIO register and saves\r
   the value in the S3 script to be replayed on S3 resume.\r
 \r
   Reads the 8-bit MMIO register specified by Address, performs a bitwise AND\r
@@ -1869,7 +1869,7 @@ S3MmioBitFieldAndThenOr8 (
   Saves a 16-bit MMIO register value to the boot script.\r
 \r
   This internal worker function saves a 16-bit MMIO register value in the S3 script\r
-  to be replayed on S3 resume. \r
+  to be replayed on S3 resume.\r
 \r
   If the saving process fails, then ASSERT().\r
 \r
@@ -1886,7 +1886,7 @@ InternalSaveMmioWrite16ValueToBootScript (
   )\r
 {\r
   InternalSaveMmioWriteValueToBootScript (S3BootScriptWidthUint16, Address, &Value);\r
-  \r
+\r
   return Value;\r
 }\r
 \r
@@ -1943,7 +1943,7 @@ S3MmioWrite16 (
 \r
 /**\r
   Reads a 16-bit MMIO register, performs a bitwise OR, and writes the\r
-  result back to the 16-bit MMIO register and saves the value in the S3 script \r
+  result back to the 16-bit MMIO register and saves the value in the S3 script\r
   to be replayed on S3 resume.\r
 \r
   Reads the 16-bit MMIO register specified by Address, performs a bitwise\r
@@ -1972,7 +1972,7 @@ S3MmioOr16 (
 \r
 /**\r
   Reads a 16-bit MMIO register, performs a bitwise AND, and writes the result\r
-  back to the 16-bit MMIO register and saves the value in the S3 script to be \r
+  back to the 16-bit MMIO register and saves the value in the S3 script to be\r
   replayed on S3 resume.\r
 \r
   Reads the 16-bit MMIO register specified by Address, performs a bitwise AND\r
@@ -2001,7 +2001,7 @@ S3MmioAnd16 (
 \r
 /**\r
   Reads a 16-bit MMIO register, performs a bitwise AND followed by a bitwise\r
-  inclusive OR, and writes the result back to the 16-bit MMIO register and \r
+  inclusive OR, and writes the result back to the 16-bit MMIO register and\r
   saves the value in the S3 script to be replayed on S3 resume.\r
 \r
   Reads the 16-bit MMIO register specified by Address, performs a bitwise AND\r
@@ -2101,7 +2101,7 @@ S3MmioBitFieldWrite16 (
 \r
 /**\r
   Reads a bit field in a 16-bit MMIO register, performs a bitwise OR, and\r
-  writes the result back to the bit field in the 16-bit MMIO register and \r
+  writes the result back to the bit field in the 16-bit MMIO register and\r
   saves the value in the S3 script to be replayed on S3 resume.\r
 \r
   Reads the 16-bit MMIO register specified by Address, performs a bitwise\r
@@ -2141,7 +2141,7 @@ S3MmioBitFieldOr16 (
 \r
 /**\r
   Reads a bit field in a 16-bit MMIO register, performs a bitwise AND, and\r
-  writes the result back to the bit field in the 16-bit MMIO register and \r
+  writes the result back to the bit field in the 16-bit MMIO register and\r
   saves the value in the S3 script to be replayed on S3 resume.\r
 \r
   Reads the 16-bit MMIO register specified by Address, performs a bitwise AND\r
@@ -2227,7 +2227,7 @@ S3MmioBitFieldAndThenOr16 (
   Saves a 32-bit MMIO register value to the boot script.\r
 \r
   This internal worker function saves a 32-bit MMIO register value in the S3 script\r
-  to be replayed on S3 resume. \r
+  to be replayed on S3 resume.\r
 \r
   If the saving process fails, then ASSERT().\r
 \r
@@ -2249,7 +2249,7 @@ InternalSaveMmioWrite32ValueToBootScript (
 }\r
 \r
 /**\r
-  Reads a 32-bit MMIO register saves the value in the S3 script to be \r
+  Reads a 32-bit MMIO register saves the value in the S3 script to be\r
   replayed on S3 resume.\r
 \r
   Reads the 32-bit MMIO register specified by Address. The 32-bit read value is\r
@@ -2273,7 +2273,7 @@ S3MmioRead32 (
 }\r
 \r
 /**\r
-  Writes a 32-bit MMIO register and saves the value in the S3 script to be \r
+  Writes a 32-bit MMIO register and saves the value in the S3 script to be\r
   replayed on S3 resume.\r
 \r
   Writes the 32-bit MMIO register specified by Address with the value specified\r
@@ -2300,7 +2300,7 @@ S3MmioWrite32 (
 \r
 /**\r
   Reads a 32-bit MMIO register, performs a bitwise OR, and writes the\r
-  result back to the 32-bit MMIO register and saves the value in the S3 script \r
+  result back to the 32-bit MMIO register and saves the value in the S3 script\r
   to be replayed on S3 resume.\r
 \r
   Reads the 32-bit MMIO register specified by Address, performs a bitwise\r
@@ -2329,7 +2329,7 @@ S3MmioOr32 (
 \r
 /**\r
   Reads a 32-bit MMIO register, performs a bitwise AND, and writes the result\r
-  back to the 32-bit MMIO register and saves the value in the S3 script to be \r
+  back to the 32-bit MMIO register and saves the value in the S3 script to be\r
   replayed on S3 resume.\r
 \r
   Reads the 32-bit MMIO register specified by Address, performs a bitwise AND\r
@@ -2358,7 +2358,7 @@ S3MmioAnd32 (
 \r
 /**\r
   Reads a 32-bit MMIO register, performs a bitwise AND followed by a bitwise\r
-  inclusive OR, and writes the result back to the 32-bit MMIO register and \r
+  inclusive OR, and writes the result back to the 32-bit MMIO register and\r
   saves the value in the S3 script to be replayed on S3 resume.\r
 \r
   Reads the 32-bit MMIO register specified by Address, performs a bitwise AND\r
@@ -2389,7 +2389,7 @@ S3MmioAndThenOr32 (
 }\r
 \r
 /**\r
-  Reads a bit field of a MMIO register and saves the value in the S3 script \r
+  Reads a bit field of a MMIO register and saves the value in the S3 script\r
   to be replayed on S3 resume.\r
 \r
   Reads the bit field in a 32-bit MMIO register. The bit field is specified by\r
@@ -2421,7 +2421,7 @@ S3MmioBitFieldRead32 (
 }\r
 \r
 /**\r
-  Writes a bit field to a MMIO register and saves the value in the S3 script \r
+  Writes a bit field to a MMIO register and saves the value in the S3 script\r
   to be replayed on S3 resume.\r
 \r
   Writes Value to the bit field of the MMIO register. The bit field is\r
@@ -2458,7 +2458,7 @@ S3MmioBitFieldWrite32 (
 \r
 /**\r
   Reads a bit field in a 32-bit MMIO register, performs a bitwise OR, and\r
-  writes the result back to the bit field in the 32-bit MMIO register and \r
+  writes the result back to the bit field in the 32-bit MMIO register and\r
   saves the value in the S3 script to be replayed on S3 resume.\r
 \r
   Reads the 32-bit MMIO register specified by Address, performs a bitwise\r
@@ -2498,7 +2498,7 @@ S3MmioBitFieldOr32 (
 \r
 /**\r
   Reads a bit field in a 32-bit MMIO register, performs a bitwise AND, and\r
-  writes the result back to the bit field in the 32-bit MMIO register and \r
+  writes the result back to the bit field in the 32-bit MMIO register and\r
   saves the value in the S3 script to be replayed on S3 resume.\r
 \r
   Reads the 32-bit MMIO register specified by Address, performs a bitwise AND\r
@@ -2584,7 +2584,7 @@ S3MmioBitFieldAndThenOr32 (
   Saves a 64-bit MMIO register value to the boot script.\r
 \r
   This internal worker function saves a 64-bit MMIO register value in the S3 script\r
-  to be replayed on S3 resume. \r
+  to be replayed on S3 resume.\r
 \r
   If the saving process fails, then ASSERT().\r
 \r
@@ -2606,7 +2606,7 @@ InternalSaveMmioWrite64ValueToBootScript (
 }\r
 \r
 /**\r
-  Reads a 64-bit MMIO register and saves the value in the S3 script to be \r
+  Reads a 64-bit MMIO register and saves the value in the S3 script to be\r
   replayed on S3 resume.\r
 \r
   Reads the 64-bit MMIO register specified by Address. The 64-bit read value is\r
@@ -2630,7 +2630,7 @@ S3MmioRead64 (
 }\r
 \r
 /**\r
-  Writes a 64-bit MMIO register and saves the value in the S3 script to be \r
+  Writes a 64-bit MMIO register and saves the value in the S3 script to be\r
   replayed on S3 resume.\r
 \r
   Writes the 64-bit MMIO register specified by Address with the value specified\r
@@ -2657,7 +2657,7 @@ S3MmioWrite64 (
 \r
 /**\r
   Reads a 64-bit MMIO register, performs a bitwise OR, and writes the\r
-  result back to the 64-bit MMIO register and saves the value in the S3 script \r
+  result back to the 64-bit MMIO register and saves the value in the S3 script\r
   to be replayed on S3 resume.\r
 \r
   Reads the 64-bit MMIO register specified by Address, performs a bitwise\r
@@ -2686,7 +2686,7 @@ S3MmioOr64 (
 \r
 /**\r
   Reads a 64-bit MMIO register, performs a bitwise AND, and writes the result\r
-  back to the 64-bit MMIO register and saves the value in the S3 script to be \r
+  back to the 64-bit MMIO register and saves the value in the S3 script to be\r
   replayed on S3 resume.\r
 \r
   Reads the 64-bit MMIO register specified by Address, performs a bitwise AND\r
@@ -2715,7 +2715,7 @@ S3MmioAnd64 (
 \r
 /**\r
   Reads a 64-bit MMIO register, performs a bitwise AND followed by a bitwise\r
-  inclusive OR, and writes the result back to the 64-bit MMIO register and \r
+  inclusive OR, and writes the result back to the 64-bit MMIO register and\r
   saves the value in the S3 script to be replayed on S3 resume.\r
 \r
   Reads the 64-bit MMIO register specified by Address, performs a bitwise AND\r
@@ -2815,7 +2815,7 @@ S3MmioBitFieldWrite64 (
 \r
 /**\r
   Reads a bit field in a 64-bit MMIO register, performs a bitwise OR, and\r
-  writes the result back to the bit field in the 64-bit MMIO register and \r
+  writes the result back to the bit field in the 64-bit MMIO register and\r
   saves the value in the S3 script to be replayed on S3 resume.\r
 \r
   Reads the 64-bit MMIO register specified by Address, performs a bitwise\r
@@ -2941,11 +2941,11 @@ S3MmioBitFieldAndThenOr64 (
   Copy data from MMIO region to system memory by using 8-bit access\r
   and saves the value in the S3 script to be replayed on S3 resume.\r
 \r
-  Copy data from MMIO region specified by starting address StartAddress \r
-  to system memory specified by Buffer by using 8-bit access. The total \r
+  Copy data from MMIO region specified by starting address StartAddress\r
+  to system memory specified by Buffer by using 8-bit access. The total\r
   number of byte to be copied is specified by Length. Buffer is returned.\r
-  \r
-  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). \r
+\r
+  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
 \r
@@ -2984,13 +2984,13 @@ S3MmioReadBuffer8 (
   Copy data from MMIO region to system memory by using 16-bit access\r
   and saves the value in the S3 script to be replayed on S3 resume.\r
 \r
-  Copy data from MMIO region specified by starting address StartAddress \r
-  to system memory specified by Buffer by using 16-bit access. The total \r
+  Copy data from MMIO region specified by starting address StartAddress\r
+  to system memory specified by Buffer by using 16-bit access. The total\r
   number of byte to be copied is specified by Length. Buffer is returned.\r
-  \r
+\r
   If StartAddress is not aligned on a 16-bit boundary, then ASSERT().\r
 \r
-  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
@@ -3031,13 +3031,13 @@ S3MmioReadBuffer16 (
   Copy data from MMIO region to system memory by using 32-bit access\r
   and saves the value in the S3 script to be replayed on S3 resume.\r
 \r
-  Copy data from MMIO region specified by starting address StartAddress \r
-  to system memory specified by Buffer by using 32-bit access. The total \r
+  Copy data from MMIO region specified by starting address StartAddress\r
+  to system memory specified by Buffer by using 32-bit access. The total\r
   number of byte to be copied is specified by Length. Buffer is returned.\r
-  \r
+\r
   If StartAddress is not aligned on a 32-bit boundary, then ASSERT().\r
 \r
-  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
@@ -3078,13 +3078,13 @@ S3MmioReadBuffer32 (
   Copy data from MMIO region to system memory by using 64-bit access\r
   and saves the value in the S3 script to be replayed on S3 resume.\r
 \r
-  Copy data from MMIO region specified by starting address StartAddress \r
-  to system memory specified by Buffer by using 64-bit access. The total \r
+  Copy data from MMIO region specified by starting address StartAddress\r
+  to system memory specified by Buffer by using 64-bit access. The total\r
   number of byte to be copied is specified by Length. Buffer is returned.\r
-  \r
+\r
   If StartAddress is not aligned on a 64-bit boundary, then ASSERT().\r
 \r
-  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r
@@ -3126,11 +3126,11 @@ S3MmioReadBuffer64 (
   Copy data from system memory to MMIO region by using 8-bit access\r
   and saves the value in the S3 script to be replayed on S3 resume.\r
 \r
-  Copy data from system memory specified by Buffer to MMIO region specified \r
-  by starting address StartAddress by using 8-bit access. The total number \r
+  Copy data from system memory specified by Buffer to MMIO region specified\r
+  by starting address StartAddress by using 8-bit access. The total number\r
   of byte to be copied is specified by Length. Buffer is returned.\r
-  \r
-  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). \r
+\r
+  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT().\r
   If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT().\r
 \r
 \r
@@ -3169,13 +3169,13 @@ S3MmioWriteBuffer8 (
   Copy data from system memory to MMIO region by using 16-bit access\r
   and saves the value in the S3 script to be replayed on S3 resume.\r
 \r
-  Copy data from system memory specified by Buffer to MMIO region specified \r
-  by starting address StartAddress by using 16-bit access. The total number \r
+  Copy data from system memory specified by Buffer to MMIO region specified\r
+  by starting address StartAddress by using 16-bit access. The total number\r
   of byte to be copied is specified by Length. Buffer is returned.\r
-  \r
+\r
   If StartAddress is not aligned on a 16-bit boundary, then ASSERT().\r
 \r
-  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT().\r
   If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT().\r
 \r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
@@ -3218,13 +3218,13 @@ S3MmioWriteBuffer16 (
   Copy data from system memory to MMIO region by using 32-bit access\r
   and saves the value in the S3 script to be replayed on S3 resume.\r
 \r
-  Copy data from system memory specified by Buffer to MMIO region specified \r
-  by starting address StartAddress by using 32-bit access. The total number \r
+  Copy data from system memory specified by Buffer to MMIO region specified\r
+  by starting address StartAddress by using 32-bit access. The total number\r
   of byte to be copied is specified by Length. Buffer is returned.\r
-  \r
+\r
   If StartAddress is not aligned on a 32-bit boundary, then ASSERT().\r
 \r
-  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT().\r
   If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT().\r
 \r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
@@ -3266,13 +3266,13 @@ S3MmioWriteBuffer32 (
   Copy data from system memory to MMIO region by using 64-bit access\r
   and saves the value in the S3 script to be replayed on S3 resume.\r
 \r
-  Copy data from system memory specified by Buffer to MMIO region specified \r
-  by starting address StartAddress by using 64-bit access. The total number \r
+  Copy data from system memory specified by Buffer to MMIO region specified\r
+  by starting address StartAddress by using 64-bit access. The total number\r
   of byte to be copied is specified by Length. Buffer is returned.\r
-  \r
+\r
   If StartAddress is not aligned on a 64-bit boundary, then ASSERT().\r
 \r
-  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). \r
+  If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT().\r
   If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT().\r
 \r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r