]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/S3PciLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Include / Library / S3PciLib.h
index bae12aba1eb802b0f8ff792f05bf22fb5bdd43df..1479859b843ef06fad2d6ffd3a834124c10c7e22 100644 (file)
@@ -1,18 +1,11 @@
 /** @file\r
   The PCI configuration Library Services that carry out PCI configuration and enable\r
   the PCI operations to be replayed during an S3 resume. This library class\r
-  maps directly on top of the PciLib class. \r
+  maps directly on top of the PciLib 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
-  of the BSD License which accompanies this distribution.  The\r
-  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
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
   @return The encoded PCI address.\r
 \r
 **/\r
-#define S3_PCI_LIB_ADDRESS(Bus,Device,Function,Register)   \\r
+#define S3_PCI_LIB_ADDRESS(Bus, Device, Function, Register)   \\r
   (((Register) & 0xfff) | (((Function) & 0x07) << 12) | (((Device) & 0x1f) << 15) | (((Bus) & 0xff) << 20))\r
 \r
 /**\r
\r
-  Reads and returns the 8-bit PCI configuration register specified by Address, \r
+\r
+  Reads and returns the 8-bit PCI configuration register specified by Address,\r
   and saves the value in the S3 script to be replayed on S3 resume.\r
   This function must guarantee that all PCI read and write operations are\r
   serialized.\r
@@ -813,7 +806,7 @@ S3PciAndThenOr32 (
   If StartBit is greater than 31, then ASSERT().\r
   If EndBit is greater than 31, then ASSERT().\r
   If EndBit is less than StartBit, then ASSERT().\r
\r
+\r
   @param[in] Address    The PCI configuration register to read.\r
   @param[in] StartBit   The ordinal of the least significant bit in the bit field.\r
                         Range 0..31.\r