diff options
Diffstat (limited to 'MdePkg/Library/BaseS3IoLib/S3IoLib.c')
-rw-r--r-- | MdePkg/Library/BaseS3IoLib/S3IoLib.c | 191 |
1 files changed, 92 insertions, 99 deletions
diff --git a/MdePkg/Library/BaseS3IoLib/S3IoLib.c b/MdePkg/Library/BaseS3IoLib/S3IoLib.c index a3d636324bf8a..1938383ef1db6 100644 --- a/MdePkg/Library/BaseS3IoLib/S3IoLib.c +++ b/MdePkg/Library/BaseS3IoLib/S3IoLib.c @@ -1,17 +1,10 @@ /** @file I/O and MMIO Library Services that do I/O and also enable the I/O operatation to be replayed during an S3 resume. - - Copyright (c) 2006 -2012, 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 + Copyright (c) 2006 -2018, Intel Corporation. All rights reserved.<BR> - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -27,7 +20,7 @@ Saves an I/O port value to the boot script. This internal worker function saves an I/O port value in the S3 script - to be replayed on S3 resume. + to be replayed on S3 resume. If the saving process fails, then ASSERT(). @@ -44,7 +37,7 @@ InternalSaveIoWriteValueToBootScript ( ) { RETURN_STATUS Status; - + Status = S3BootScriptSaveIoWrite ( Width, Port, @@ -53,12 +46,12 @@ InternalSaveIoWriteValueToBootScript ( ); ASSERT (Status == RETURN_SUCCESS); } - + /** Saves an 8-bit I/O port value to the boot script. This internal worker function saves an 8-bit I/O port value in the S3 script - to be replayed on S3 resume. + to be replayed on S3 resume. If the saving process fails, then ASSERT(). @@ -189,7 +182,7 @@ S3IoAnd8 ( /** Reads an 8-bit I/O port, performs a bitwise AND followed by a bitwise - inclusive OR, and writes the result back to the 8-bit I/O port and saves + inclusive OR, and writes the result back to the 8-bit I/O port and saves the value in the S3 script to be replayed on S3 resume. Reads the 8-bit I/O port specified by Port, performs a bitwise AND between @@ -290,7 +283,7 @@ S3IoBitFieldWrite8 ( /** Reads a bit field in an 8-bit port, performs a bitwise OR, and writes the - result back to the bit field in the 8-bit port and saves the value in the + result back to the bit field in the 8-bit port and saves the value in the S3 script to be replayed on S3 resume. Reads the 8-bit I/O port specified by Port, performs a bitwise OR @@ -329,7 +322,7 @@ S3IoBitFieldOr8 ( /** Reads a bit field in an 8-bit port, performs a bitwise AND, and writes the - result back to the bit field in the 8-bit port and saves the value in the + result back to the bit field in the 8-bit port and saves the value in the S3 script to be replayed on S3 resume. Reads the 8-bit I/O port specified by Port, performs a bitwise AND between @@ -413,7 +406,7 @@ S3IoBitFieldAndThenOr8 ( Saves a 16-bit I/O port value to the boot script. This internal worker function saves a 16-bit I/O port value in the S3 script - to be replayed on S3 resume. + to be replayed on S3 resume. If the saving process fails, then ASSERT(). @@ -430,7 +423,7 @@ InternalSaveIoWrite16ValueToBootScript ( ) { InternalSaveIoWriteValueToBootScript (S3BootScriptWidthUint16, Port, &Value); - + return Value; } @@ -486,7 +479,7 @@ S3IoWrite16 ( /** Reads a 16-bit I/O port, performs a bitwise OR, and writes the - result back to the 16-bit I/O port and saves the value in the S3 script to + result back to the 16-bit I/O port and saves the value in the S3 script to be replayed on S3 resume. Reads the 16-bit I/O port specified by Port, performs a bitwise OR @@ -607,7 +600,7 @@ S3IoBitFieldRead16 ( } /** - Writes a bit field to an I/O register and saves the value in the S3 script + Writes a bit field to an I/O register and saves the value in the S3 script to be replayed on S3 resume. Writes Value to the bit field of the I/O register. The bit field is specified @@ -645,7 +638,7 @@ S3IoBitFieldWrite16 ( /** Reads a bit field in a 16-bit port, performs a bitwise OR, and writes the - result back to the bit field in the 16-bit port and saves the value in the + result back to the bit field in the 16-bit port and saves the value in the S3 script to be replayed on S3 resume. Reads the 16-bit I/O port specified by Port, performs a bitwise OR @@ -684,7 +677,7 @@ S3IoBitFieldOr16 ( /** Reads a bit field in a 16-bit port, performs a bitwise AND, and writes the - result back to the bit field in the 16-bit port and saves the value in the + result back to the bit field in the 16-bit port and saves the value in the S3 script to be replayed on S3 resume. Reads the 16-bit I/O port specified by Port, performs a bitwise AND between @@ -724,7 +717,7 @@ S3IoBitFieldAnd16 ( /** Reads a bit field in a 16-bit port, performs a bitwise AND followed by a bitwise OR, and writes the result back to the bit field in the - 16-bit port and saves the value in the S3 script to be replayed on S3 + 16-bit port and saves the value in the S3 script to be replayed on S3 resume. Reads the 16-bit I/O port specified by Port, performs a bitwise AND followed @@ -769,7 +762,7 @@ S3IoBitFieldAndThenOr16 ( Saves a 32-bit I/O port value to the boot script. This internal worker function saves a 32-bit I/O port value in the S3 script - to be replayed on S3 resume. + to be replayed on S3 resume. If the saving process fails, then ASSERT(). @@ -786,7 +779,7 @@ InternalSaveIoWrite32ValueToBootScript ( ) { InternalSaveIoWriteValueToBootScript (S3BootScriptWidthUint32, Port, &Value); - + return Value; } @@ -842,7 +835,7 @@ S3IoWrite32 ( /** Reads a 32-bit I/O port, performs a bitwise OR, and writes the - result back to the 32-bit I/O port and saves the value in the S3 script to + result back to the 32-bit I/O port and saves the value in the S3 script to be replayed on S3 resume. Reads the 32-bit I/O port specified by Port, performs a bitwise OR @@ -900,7 +893,7 @@ S3IoAnd32 ( /** Reads a 32-bit I/O port, performs a bitwise AND followed by a bitwise - inclusive OR, and writes the result back to the 32-bit I/O port and saves + inclusive OR, and writes the result back to the 32-bit I/O port and saves the value in the S3 script to be replayed on S3 resume. Reads the 32-bit I/O port specified by Port, performs a bitwise AND between @@ -1001,7 +994,7 @@ S3IoBitFieldWrite32 ( /** Reads a bit field in a 32-bit port, performs a bitwise OR, and writes the - result back to the bit field in the 32-bit port and saves the value in the + result back to the bit field in the 32-bit port and saves the value in the S3 script to be replayed on S3 resume. Reads the 32-bit I/O port specified by Port, performs a bitwise OR @@ -1040,7 +1033,7 @@ S3IoBitFieldOr32 ( /** Reads a bit field in a 32-bit port, performs a bitwise AND, and writes the - result back to the bit field in the 32-bit port and saves the value in the + result back to the bit field in the 32-bit port and saves the value in the S3 script to be replayed on S3 resume. Reads the 32-bit I/O port specified by Port, performs a bitwise AND between @@ -1080,7 +1073,7 @@ S3IoBitFieldAnd32 ( /** Reads a bit field in a 32-bit port, performs a bitwise AND followed by a bitwise OR, and writes the result back to the bit field in the - 32-bit port and saves the value in the S3 script to be replayed on S3 + 32-bit port and saves the value in the S3 script to be replayed on S3 resume. Reads the 32-bit I/O port specified by Port, performs a bitwise AND followed @@ -1125,7 +1118,7 @@ S3IoBitFieldAndThenOr32 ( Saves a 64-bit I/O port value to the boot script. This internal worker function saves a 64-bit I/O port value in the S3 script - to be replayed on S3 resume. + to be replayed on S3 resume. If the saving process fails, then ASSERT(). @@ -1142,7 +1135,7 @@ InternalSaveIoWrite64ValueToBootScript ( ) { InternalSaveIoWriteValueToBootScript (S3BootScriptWidthUint64, Port, &Value); - + return Value; } @@ -1198,7 +1191,7 @@ S3IoWrite64 ( /** Reads a 64-bit I/O port, performs a bitwise OR, and writes the - result back to the 64-bit I/O port and saves the value in the S3 script to + result back to the 64-bit I/O port and saves the value in the S3 script to be replayed on S3 resume. Reads the 64-bit I/O port specified by Port, performs a bitwise OR @@ -1357,7 +1350,7 @@ S3IoBitFieldWrite64 ( /** Reads a bit field in a 64-bit port, performs a bitwise OR, and writes the - result back to the bit field in the 64-bit port and saves the value in the + result back to the bit field in the 64-bit port and saves the value in the S3 script to be replayed on S3 resume. Reads the 64-bit I/O port specified by Port, performs a bitwise OR @@ -1396,7 +1389,7 @@ S3IoBitFieldOr64 ( /** Reads a bit field in a 64-bit port, performs a bitwise AND, and writes the - result back to the bit field in the 64-bit port and saves the value in the + result back to the bit field in the 64-bit port and saves the value in the S3 script to be replayed on S3 resume. Reads the 64-bit I/O port specified by Port, performs a bitwise AND between @@ -1436,7 +1429,7 @@ S3IoBitFieldAnd64 ( /** Reads a bit field in a 64-bit port, performs a bitwise AND followed by a bitwise OR, and writes the result back to the bit field in the - 64-bit port and saves the value in the S3 script to be replayed on S3 + 64-bit port and saves the value in the S3 script to be replayed on S3 resume. Reads the 64-bit I/O port specified by Port, performs a bitwise AND followed @@ -1481,7 +1474,7 @@ S3IoBitFieldAndThenOr64 ( Saves an MMIO register value to the boot script. This internal worker function saves an MMIO register value in the S3 script - to be replayed on S3 resume. + to be replayed on S3 resume. If the saving process fails, then ASSERT(). @@ -1512,7 +1505,7 @@ InternalSaveMmioWriteValueToBootScript ( Saves an 8-bit MMIO register value to the boot script. This internal worker function saves an 8-bit MMIO register value in the S3 script - to be replayed on S3 resume. + to be replayed on S3 resume. If the saving process fails, then ASSERT(). @@ -1534,7 +1527,7 @@ InternalSaveMmioWrite8ValueToBootScript ( } /** - Reads an 8-bit MMIO register and saves the value in the S3 script to be + Reads an 8-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 8-bit MMIO register specified by Address. The 8-bit read value is @@ -1558,7 +1551,7 @@ S3MmioRead8 ( } /** - Writes an 8-bit MMIO register and saves the value in the S3 script to be + Writes an 8-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Writes the 8-bit MMIO register specified by Address with the value specified @@ -1585,7 +1578,7 @@ S3MmioWrite8 ( /** Reads an 8-bit MMIO register, performs a bitwise OR, and writes the - result back to the 8-bit MMIO register and saves the value in the S3 script + result back to the 8-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 8-bit MMIO register specified by Address, performs a bitwise @@ -1614,7 +1607,7 @@ S3MmioOr8 ( /** Reads an 8-bit MMIO register, performs a bitwise AND, and writes the result - back to the 8-bit MMIO register and saves the value in the S3 script to be + back to the 8-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 8-bit MMIO register specified by Address, performs a bitwise AND @@ -1643,7 +1636,7 @@ S3MmioAnd8 ( /** Reads an 8-bit MMIO register, performs a bitwise AND followed by a bitwise - inclusive OR, and writes the result back to the 8-bit MMIO register and saves + inclusive OR, and writes the result back to the 8-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 8-bit MMIO register specified by Address, performs a bitwise AND @@ -1869,7 +1862,7 @@ S3MmioBitFieldAndThenOr8 ( Saves a 16-bit MMIO register value to the boot script. This internal worker function saves a 16-bit MMIO register value in the S3 script - to be replayed on S3 resume. + to be replayed on S3 resume. If the saving process fails, then ASSERT(). @@ -1886,7 +1879,7 @@ InternalSaveMmioWrite16ValueToBootScript ( ) { InternalSaveMmioWriteValueToBootScript (S3BootScriptWidthUint16, Address, &Value); - + return Value; } @@ -1943,7 +1936,7 @@ S3MmioWrite16 ( /** Reads a 16-bit MMIO register, performs a bitwise OR, and writes the - result back to the 16-bit MMIO register and saves the value in the S3 script + result back to the 16-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 16-bit MMIO register specified by Address, performs a bitwise @@ -1972,7 +1965,7 @@ S3MmioOr16 ( /** Reads a 16-bit MMIO register, performs a bitwise AND, and writes the result - back to the 16-bit MMIO register and saves the value in the S3 script to be + back to the 16-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 16-bit MMIO register specified by Address, performs a bitwise AND @@ -2001,7 +1994,7 @@ S3MmioAnd16 ( /** Reads a 16-bit MMIO register, performs a bitwise AND followed by a bitwise - inclusive OR, and writes the result back to the 16-bit MMIO register and + inclusive OR, and writes the result back to the 16-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 16-bit MMIO register specified by Address, performs a bitwise AND @@ -2101,7 +2094,7 @@ S3MmioBitFieldWrite16 ( /** Reads a bit field in a 16-bit MMIO register, performs a bitwise OR, and - writes the result back to the bit field in the 16-bit MMIO register and + writes the result back to the bit field in the 16-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 16-bit MMIO register specified by Address, performs a bitwise @@ -2141,7 +2134,7 @@ S3MmioBitFieldOr16 ( /** Reads a bit field in a 16-bit MMIO register, performs a bitwise AND, and - writes the result back to the bit field in the 16-bit MMIO register and + writes the result back to the bit field in the 16-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 16-bit MMIO register specified by Address, performs a bitwise AND @@ -2227,7 +2220,7 @@ S3MmioBitFieldAndThenOr16 ( Saves a 32-bit MMIO register value to the boot script. This internal worker function saves a 32-bit MMIO register value in the S3 script - to be replayed on S3 resume. + to be replayed on S3 resume. If the saving process fails, then ASSERT(). @@ -2249,7 +2242,7 @@ InternalSaveMmioWrite32ValueToBootScript ( } /** - Reads a 32-bit MMIO register saves the value in the S3 script to be + Reads a 32-bit MMIO register saves the value in the S3 script to be replayed on S3 resume. Reads the 32-bit MMIO register specified by Address. The 32-bit read value is @@ -2273,7 +2266,7 @@ S3MmioRead32 ( } /** - Writes a 32-bit MMIO register and saves the value in the S3 script to be + Writes a 32-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Writes the 32-bit MMIO register specified by Address with the value specified @@ -2300,7 +2293,7 @@ S3MmioWrite32 ( /** Reads a 32-bit MMIO register, performs a bitwise OR, and writes the - result back to the 32-bit MMIO register and saves the value in the S3 script + result back to the 32-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 32-bit MMIO register specified by Address, performs a bitwise @@ -2329,7 +2322,7 @@ S3MmioOr32 ( /** Reads a 32-bit MMIO register, performs a bitwise AND, and writes the result - back to the 32-bit MMIO register and saves the value in the S3 script to be + back to the 32-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 32-bit MMIO register specified by Address, performs a bitwise AND @@ -2358,7 +2351,7 @@ S3MmioAnd32 ( /** Reads a 32-bit MMIO register, performs a bitwise AND followed by a bitwise - inclusive OR, and writes the result back to the 32-bit MMIO register and + inclusive OR, and writes the result back to the 32-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 32-bit MMIO register specified by Address, performs a bitwise AND @@ -2389,7 +2382,7 @@ S3MmioAndThenOr32 ( } /** - Reads a bit field of a MMIO register and saves the value in the S3 script + Reads a bit field of a MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the bit field in a 32-bit MMIO register. The bit field is specified by @@ -2421,7 +2414,7 @@ S3MmioBitFieldRead32 ( } /** - Writes a bit field to a MMIO register and saves the value in the S3 script + Writes a bit field to a MMIO register and saves the value in the S3 script to be replayed on S3 resume. Writes Value to the bit field of the MMIO register. The bit field is @@ -2458,7 +2451,7 @@ S3MmioBitFieldWrite32 ( /** Reads a bit field in a 32-bit MMIO register, performs a bitwise OR, and - writes the result back to the bit field in the 32-bit MMIO register and + writes the result back to the bit field in the 32-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 32-bit MMIO register specified by Address, performs a bitwise @@ -2498,7 +2491,7 @@ S3MmioBitFieldOr32 ( /** Reads a bit field in a 32-bit MMIO register, performs a bitwise AND, and - writes the result back to the bit field in the 32-bit MMIO register and + writes the result back to the bit field in the 32-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 32-bit MMIO register specified by Address, performs a bitwise AND @@ -2584,7 +2577,7 @@ S3MmioBitFieldAndThenOr32 ( Saves a 64-bit MMIO register value to the boot script. This internal worker function saves a 64-bit MMIO register value in the S3 script - to be replayed on S3 resume. + to be replayed on S3 resume. If the saving process fails, then ASSERT(). @@ -2606,7 +2599,7 @@ InternalSaveMmioWrite64ValueToBootScript ( } /** - Reads a 64-bit MMIO register and saves the value in the S3 script to be + Reads a 64-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 64-bit MMIO register specified by Address. The 64-bit read value is @@ -2630,7 +2623,7 @@ S3MmioRead64 ( } /** - Writes a 64-bit MMIO register and saves the value in the S3 script to be + Writes a 64-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Writes the 64-bit MMIO register specified by Address with the value specified @@ -2657,7 +2650,7 @@ S3MmioWrite64 ( /** Reads a 64-bit MMIO register, performs a bitwise OR, and writes the - result back to the 64-bit MMIO register and saves the value in the S3 script + result back to the 64-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 64-bit MMIO register specified by Address, performs a bitwise @@ -2686,7 +2679,7 @@ S3MmioOr64 ( /** Reads a 64-bit MMIO register, performs a bitwise AND, and writes the result - back to the 64-bit MMIO register and saves the value in the S3 script to be + back to the 64-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 64-bit MMIO register specified by Address, performs a bitwise AND @@ -2715,7 +2708,7 @@ S3MmioAnd64 ( /** Reads a 64-bit MMIO register, performs a bitwise AND followed by a bitwise - inclusive OR, and writes the result back to the 64-bit MMIO register and + inclusive OR, and writes the result back to the 64-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 64-bit MMIO register specified by Address, performs a bitwise AND @@ -2815,7 +2808,7 @@ S3MmioBitFieldWrite64 ( /** Reads a bit field in a 64-bit MMIO register, performs a bitwise OR, and - writes the result back to the bit field in the 64-bit MMIO register and + writes the result back to the bit field in the 64-bit MMIO register and saves the value in the S3 script to be replayed on S3 resume. Reads the 64-bit MMIO register specified by Address, performs a bitwise @@ -2941,11 +2934,11 @@ S3MmioBitFieldAndThenOr64 ( Copy data from MMIO region to system memory by using 8-bit access and saves the value in the S3 script to be replayed on S3 resume. - Copy data from MMIO region specified by starting address StartAddress - to system memory specified by Buffer by using 8-bit access. The total + Copy data from MMIO region specified by starting address StartAddress + to system memory specified by Buffer by using 8-bit access. The total number of byte to be copied is specified by Length. Buffer is returned. - - If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). + + If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). @@ -2984,13 +2977,13 @@ S3MmioReadBuffer8 ( Copy data from MMIO region to system memory by using 16-bit access and saves the value in the S3 script to be replayed on S3 resume. - Copy data from MMIO region specified by starting address StartAddress - to system memory specified by Buffer by using 16-bit access. The total + Copy data from MMIO region specified by starting address StartAddress + to system memory specified by Buffer by using 16-bit access. The total number of byte to be copied is specified by Length. Buffer is returned. - + If StartAddress is not aligned on a 16-bit boundary, then ASSERT(). - If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). + If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). If Length is not aligned on a 16-bit boundary, then ASSERT(). @@ -3031,13 +3024,13 @@ S3MmioReadBuffer16 ( Copy data from MMIO region to system memory by using 32-bit access and saves the value in the S3 script to be replayed on S3 resume. - Copy data from MMIO region specified by starting address StartAddress - to system memory specified by Buffer by using 32-bit access. The total + Copy data from MMIO region specified by starting address StartAddress + to system memory specified by Buffer by using 32-bit access. The total number of byte to be copied is specified by Length. Buffer is returned. - + If StartAddress is not aligned on a 32-bit boundary, then ASSERT(). - If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). + If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). If Length is not aligned on a 32-bit boundary, then ASSERT(). @@ -3078,13 +3071,13 @@ S3MmioReadBuffer32 ( Copy data from MMIO region to system memory by using 64-bit access and saves the value in the S3 script to be replayed on S3 resume. - Copy data from MMIO region specified by starting address StartAddress - to system memory specified by Buffer by using 64-bit access. The total + Copy data from MMIO region specified by starting address StartAddress + to system memory specified by Buffer by using 64-bit access. The total number of byte to be copied is specified by Length. Buffer is returned. - + If StartAddress is not aligned on a 64-bit boundary, then ASSERT(). - If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). + If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). If Length is not aligned on a 64-bit boundary, then ASSERT(). @@ -3126,11 +3119,11 @@ S3MmioReadBuffer64 ( Copy data from system memory to MMIO region by using 8-bit access and saves the value in the S3 script to be replayed on S3 resume. - Copy data from system memory specified by Buffer to MMIO region specified - by starting address StartAddress by using 8-bit access. The total number + Copy data from system memory specified by Buffer to MMIO region specified + by starting address StartAddress by using 8-bit access. The total number of byte to be copied is specified by Length. Buffer is returned. - - If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). + + If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT(). @@ -3169,13 +3162,13 @@ S3MmioWriteBuffer8 ( Copy data from system memory to MMIO region by using 16-bit access and saves the value in the S3 script to be replayed on S3 resume. - Copy data from system memory specified by Buffer to MMIO region specified - by starting address StartAddress by using 16-bit access. The total number + Copy data from system memory specified by Buffer to MMIO region specified + by starting address StartAddress by using 16-bit access. The total number of byte to be copied is specified by Length. Buffer is returned. - + If StartAddress is not aligned on a 16-bit boundary, then ASSERT(). - If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). + If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT(). If Length is not aligned on a 16-bit boundary, then ASSERT(). @@ -3218,13 +3211,13 @@ S3MmioWriteBuffer16 ( Copy data from system memory to MMIO region by using 32-bit access and saves the value in the S3 script to be replayed on S3 resume. - Copy data from system memory specified by Buffer to MMIO region specified - by starting address StartAddress by using 32-bit access. The total number + Copy data from system memory specified by Buffer to MMIO region specified + by starting address StartAddress by using 32-bit access. The total number of byte to be copied is specified by Length. Buffer is returned. - + If StartAddress is not aligned on a 32-bit boundary, then ASSERT(). - If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). + If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT(). If Length is not aligned on a 32-bit boundary, then ASSERT(). @@ -3266,13 +3259,13 @@ S3MmioWriteBuffer32 ( Copy data from system memory to MMIO region by using 64-bit access and saves the value in the S3 script to be replayed on S3 resume. - Copy data from system memory specified by Buffer to MMIO region specified - by starting address StartAddress by using 64-bit access. The total number + Copy data from system memory specified by Buffer to MMIO region specified + by starting address StartAddress by using 64-bit access. The total number of byte to be copied is specified by Length. Buffer is returned. - + If StartAddress is not aligned on a 64-bit boundary, then ASSERT(). - If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). + If Length is greater than (MAX_ADDRESS - StartAddress + 1), then ASSERT(). If Length is greater than (MAX_ADDRESS -Buffer + 1), then ASSERT(). If Length is not aligned on a 64-bit boundary, then ASSERT(). |