]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/S3IoLib.h
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Include / Library / S3IoLib.h
index 47c4ff96b5cb47e8a064ccaac55a0eb9f3bd0ecf..e6e0fb6f504d4d4b446e1da65e4843ebb78bd9e6 100644 (file)
@@ -1,9 +1,9 @@
 /** @file\r
   I/O and MMIO Library Services that do I/O and also enable the I/O operation\r
   to be replayed during an S3 resume. This library class maps directly on top\r
-  of the IoLib class. \r
+  of the IoLib class.\r
 \r
-  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions\r
@@ -117,7 +117,7 @@ S3IoAnd8 (
 \r
 /**\r
   Reads an 8-bit I/O port, performs a bitwise AND followed by a bitwise\r
-  inclusive OR, writes the result back to the 8-bit I/O port, and saves \r
+  inclusive OR, 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
@@ -179,7 +179,7 @@ S3IoBitFieldRead8 (
 \r
   Writes Value to the bit field of the I/O register. The bit field is specified\r
   by the StartBit and the EndBit. All other bits in the destination I/O\r
-  register are preserved. The value written to the I/O port is returned. \r
+  register are preserved. The value written to the I/O port is returned.\r
   Remaining bits in Value are stripped.\r
 \r
   If 8-bit I/O port operations are not supported, then ASSERT().\r
@@ -209,7 +209,7 @@ S3IoBitFieldWrite8 (
 \r
 /**\r
   Reads a bit field in an 8-bit port, performs a bitwise OR, 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
@@ -245,7 +245,7 @@ S3IoBitFieldOr8 (
 \r
 /**\r
   Reads a bit field in an 8-bit port, performs a bitwise 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
@@ -365,7 +365,7 @@ S3IoWrite16 (
 \r
 /**\r
   Reads a 16-bit I/O port, performs a bitwise OR, 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
@@ -474,7 +474,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
@@ -509,7 +509,7 @@ S3IoBitFieldWrite16 (
 \r
 /**\r
   Reads a bit field in a 16-bit port, performs a bitwise OR, 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
@@ -545,7 +545,7 @@ S3IoBitFieldOr16 (
 \r
 /**\r
   Reads a bit field in a 16-bit port, performs a bitwise 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
@@ -582,7 +582,7 @@ S3IoBitFieldAnd16 (
 /**\r
   Reads a bit field in a 16-bit port, performs a bitwise AND followed by a\r
   bitwise OR, 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
@@ -666,7 +666,7 @@ S3IoWrite32 (
 \r
 /**\r
   Reads a 32-bit I/O port, performs a bitwise OR, 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
@@ -718,7 +718,7 @@ S3IoAnd32 (
 \r
 /**\r
   Reads a 32-bit I/O port, performs a bitwise AND followed by a bitwise\r
-  inclusive OR, writes the result back to the 32-bit I/O port, and saves \r
+  inclusive OR, 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
@@ -810,7 +810,7 @@ S3IoBitFieldWrite32 (
 \r
 /**\r
   Reads a bit field in a 32-bit port, performs a bitwise OR, 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
@@ -846,7 +846,7 @@ S3IoBitFieldOr32 (
 \r
 /**\r
   Reads a bit field in a 32-bit port, performs a bitwise 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
@@ -883,7 +883,7 @@ S3IoBitFieldAnd32 (
 /**\r
   Reads a bit field in a 32-bit port, performs a bitwise AND followed by a\r
   bitwise OR, 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
@@ -967,7 +967,7 @@ S3IoWrite64 (
 \r
 /**\r
   Reads a 64-bit I/O port, performs a bitwise OR, 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
@@ -1111,7 +1111,7 @@ S3IoBitFieldWrite64 (
 \r
 /**\r
   Reads a bit field in a 64-bit port, performs a bitwise OR, 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
@@ -1147,7 +1147,7 @@ S3IoBitFieldOr64 (
 \r
 /**\r
   Reads a bit field in a 64-bit port, performs a bitwise 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
@@ -1184,7 +1184,7 @@ S3IoBitFieldAnd64 (
 /**\r
   Reads a bit field in a 64-bit port, performs a bitwise AND followed by a\r
   bitwise OR, 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
@@ -1223,7 +1223,7 @@ S3IoBitFieldAndThenOr64 (
   );\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
@@ -1244,7 +1244,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
@@ -1268,7 +1268,7 @@ S3MmioWrite8 (
 \r
 /**\r
   Reads an 8-bit MMIO register, performs a bitwise OR, 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
@@ -1294,7 +1294,7 @@ S3MmioOr8 (
 \r
 /**\r
   Reads an 8-bit MMIO register, performs a bitwise 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
@@ -1320,7 +1320,7 @@ S3MmioAnd8 (
 \r
 /**\r
   Reads an 8-bit MMIO register, performs a bitwise AND followed by a bitwise\r
-  inclusive OR, writes the result back to the 8-bit MMIO register, and saves \r
+  inclusive OR, 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
@@ -1410,7 +1410,7 @@ S3MmioBitFieldWrite8 (
   );\r
 \r
 /**\r
-  Reads a bit field in an 8-bit MMIO register, performs a bitwise OR, \r
+  Reads a bit field in an 8-bit MMIO register, performs a bitwise OR,\r
   writes the result back to the bit field in the 8-bit MMIO register, and saves\r
   the value in the S3 script to be replayed on S3 resume.\r
 \r
@@ -1571,7 +1571,7 @@ S3MmioWrite16 (
 \r
 /**\r
   Reads a 16-bit MMIO register, performs a bitwise OR, 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
@@ -1597,7 +1597,7 @@ S3MmioOr16 (
 \r
 /**\r
   Reads a 16-bit MMIO register, performs a bitwise 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
@@ -1623,7 +1623,7 @@ S3MmioAnd16 (
 \r
 /**\r
   Reads a 16-bit MMIO register, performs a bitwise AND followed by a bitwise\r
-  inclusive OR, writes the result back to the 16-bit MMIO register, and \r
+  inclusive OR, 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
@@ -1713,8 +1713,8 @@ S3MmioBitFieldWrite16 (
   );\r
 \r
 /**\r
-  Reads a bit field in a 16-bit MMIO register, performs a bitwise OR, \r
-  writes the result back to the bit field in the 16-bit MMIO register, and \r
+  Reads a bit field in a 16-bit MMIO register, performs a bitwise OR,\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
@@ -1751,7 +1751,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
@@ -1828,7 +1828,7 @@ S3MmioBitFieldAndThenOr16 (
   );\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
@@ -1849,7 +1849,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
@@ -1873,7 +1873,7 @@ S3MmioWrite32 (
 \r
 /**\r
   Reads a 32-bit MMIO register, performs a bitwise OR, 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
@@ -1899,7 +1899,7 @@ S3MmioOr32 (
 \r
 /**\r
   Reads a 32-bit MMIO register, performs a bitwise 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
@@ -1925,7 +1925,7 @@ S3MmioAnd32 (
 \r
 /**\r
   Reads a 32-bit MMIO register, performs a bitwise AND followed by a bitwise\r
-  inclusive OR, writes the result back to the 32-bit MMIO register, and \r
+  inclusive OR, 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
@@ -1953,7 +1953,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
@@ -1982,7 +1982,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
@@ -2015,8 +2015,8 @@ S3MmioBitFieldWrite32 (
   );\r
 \r
 /**\r
-  Reads a bit field in a 32-bit MMIO register, performs a bitwise OR, \r
-  writes the result back to the bit field in the 32-bit MMIO register, and \r
+  Reads a bit field in a 32-bit MMIO register, performs a bitwise OR,\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
@@ -2053,7 +2053,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
@@ -2130,7 +2130,7 @@ S3MmioBitFieldAndThenOr32 (
   );\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
@@ -2151,7 +2151,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
@@ -2175,7 +2175,7 @@ S3MmioWrite64 (
 \r
 /**\r
   Reads a 64-bit MMIO register, performs a bitwise OR, 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
@@ -2201,7 +2201,7 @@ S3MmioOr64 (
 \r
 /**\r
   Reads a 64-bit MMIO register, performs a bitwise 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
@@ -2227,7 +2227,7 @@ S3MmioAnd64 (
 \r
 /**\r
   Reads a 64-bit MMIO register, performs a bitwise AND followed by a bitwise\r
-  inclusive OR, writes the result back to the 64-bit MMIO register, and \r
+  inclusive OR, 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
@@ -2317,8 +2317,8 @@ S3MmioBitFieldWrite64 (
   );\r
 \r
 /**\r
-  Reads a bit field in a 64-bit MMIO register, performs a bitwise OR, \r
-  writes the result back to the bit field in the 64-bit MMIO register, and \r
+  Reads a bit field in a 64-bit MMIO register, performs a bitwise OR,\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
@@ -2435,11 +2435,11 @@ S3MmioBitFieldAndThenOr64 (
   Copies 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 bytes 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
@@ -2462,13 +2462,13 @@ S3MmioReadBuffer8 (
   Copies 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 bytes 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
@@ -2493,13 +2493,13 @@ S3MmioReadBuffer16 (
   Copies 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
@@ -2524,13 +2524,13 @@ S3MmioReadBuffer32 (
   Copies 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
@@ -2555,11 +2555,11 @@ S3MmioReadBuffer64 (
   Copies 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
@@ -2582,13 +2582,13 @@ S3MmioWriteBuffer8 (
   Copies 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 bytes 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
@@ -2614,13 +2614,13 @@ S3MmioWriteBuffer16 (
   Copies 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 bytes 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
@@ -2643,16 +2643,16 @@ S3MmioWriteBuffer32 (
   );\r
 \r
 /**\r
-  Copies data from system memory to MMIO region by using 64-bit access, \r
+  Copies 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 bytes 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