]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Library/QemuFwCfgS3Lib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / Include / Library / QemuFwCfgS3Lib.h
index 432e3c906c5c6cf60a06ddd3f1a6f435afae2860..b6b1e30da3aaf837e8f6d9310fb0e637664fa676 100644 (file)
@@ -7,13 +7,7 @@
 \r
   Copyright (C) 2017, Red Hat, Inc.\r
 \r
-  This program and the accompanying materials are licensed and made available\r
-  under the terms and conditions of the BSD License which accompanies this\r
-  distribution.  The 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, WITHOUT\r
-  WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 **/\r
 \r
 #ifndef __FW_CFG_S3_LIB__\r
@@ -38,7 +32,6 @@ QemuFwCfgS3Enabled (
   VOID\r
   );\r
 \r
-\r
 /**\r
   Prototype for the callback function that the client module provides.\r
 \r
@@ -92,12 +85,11 @@ QemuFwCfgS3Enabled (
                                 ScratchBuffer is aligned at 8 bytes.\r
 **/\r
 typedef\r
-VOID (EFIAPI FW_CFG_BOOT_SCRIPT_CALLBACK_FUNCTION) (\r
-  IN OUT VOID *Context,      OPTIONAL\r
+VOID(EFIAPI FW_CFG_BOOT_SCRIPT_CALLBACK_FUNCTION)(\r
+  IN OUT VOID *Context       OPTIONAL,\r
   IN OUT VOID *ScratchBuffer\r
   );\r
 \r
-\r
 /**\r
   Install the client module's FW_CFG_BOOT_SCRIPT_CALLBACK_FUNCTION callback for\r
   when the production of ACPI S3 Boot Script opcodes becomes possible.\r
@@ -158,12 +150,11 @@ VOID (EFIAPI FW_CFG_BOOT_SCRIPT_CALLBACK_FUNCTION) (
 RETURN_STATUS\r
 EFIAPI\r
 QemuFwCfgS3CallWhenBootScriptReady (\r
-  IN     FW_CFG_BOOT_SCRIPT_CALLBACK_FUNCTION *Callback,\r
-  IN OUT VOID                                 *Context,          OPTIONAL\r
-  IN     UINTN                                ScratchBufferSize\r
+  IN     FW_CFG_BOOT_SCRIPT_CALLBACK_FUNCTION  *Callback,\r
+  IN OUT VOID                                  *Context           OPTIONAL,\r
+  IN     UINTN                                 ScratchBufferSize\r
   );\r
 \r
-\r
 /**\r
   Produce ACPI S3 Boot Script opcodes that (optionally) select an fw_cfg item,\r
   and transfer data to it.\r
@@ -207,11 +198,10 @@ QemuFwCfgS3CallWhenBootScriptReady (
 RETURN_STATUS\r
 EFIAPI\r
 QemuFwCfgS3ScriptWriteBytes (\r
-  IN INT32 FirmwareConfigItem,\r
-  IN UINTN NumberOfBytes\r
+  IN INT32  FirmwareConfigItem,\r
+  IN UINTN  NumberOfBytes\r
   );\r
 \r
-\r
 /**\r
   Produce ACPI S3 Boot Script opcodes that (optionally) select an fw_cfg item,\r
   and transfer data from it.\r
@@ -254,11 +244,10 @@ QemuFwCfgS3ScriptWriteBytes (
 RETURN_STATUS\r
 EFIAPI\r
 QemuFwCfgS3ScriptReadBytes (\r
-  IN INT32 FirmwareConfigItem,\r
-  IN UINTN NumberOfBytes\r
+  IN INT32  FirmwareConfigItem,\r
+  IN UINTN  NumberOfBytes\r
   );\r
 \r
-\r
 /**\r
   Produce ACPI S3 Boot Script opcodes that (optionally) select an fw_cfg item,\r
   and increase its offset.\r
@@ -294,11 +283,10 @@ QemuFwCfgS3ScriptReadBytes (
 RETURN_STATUS\r
 EFIAPI\r
 QemuFwCfgS3ScriptSkipBytes (\r
-  IN INT32 FirmwareConfigItem,\r
-  IN UINTN NumberOfBytes\r
+  IN INT32  FirmwareConfigItem,\r
+  IN UINTN  NumberOfBytes\r
   );\r
 \r
-\r
 /**\r
   Produce ACPI S3 Boot Script opcodes that check a value in ScratchBuffer.\r
 \r
@@ -352,10 +340,10 @@ QemuFwCfgS3ScriptSkipBytes (
 RETURN_STATUS\r
 EFIAPI\r
 QemuFwCfgS3ScriptCheckValue (\r
-  IN VOID   *ScratchData,\r
-  IN UINT8  ValueSize,\r
-  IN UINT64 ValueMask,\r
-  IN UINT64 Value\r
+  IN VOID    *ScratchData,\r
+  IN UINT8   ValueSize,\r
+  IN UINT64  ValueMask,\r
+  IN UINT64  Value\r
   );\r
 \r
 #endif\r