]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Library/XenHypercallLib.h
OvmfPkg: Apply uncrustify changes
[mirror_edk2.git] / OvmfPkg / Include / Library / XenHypercallLib.h
index 36e3344e2f9df758066db0fca5aefa8e9243ced2..28eee8ccac8577d015537801547835a1eb5b9d56 100644 (file)
@@ -3,19 +3,25 @@
 \r
   Copyright (C) 2014, Citrix Ltd.\r
 \r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this 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,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
 #ifndef __XEN_HYPERCALL_LIB_H__\r
 #define __XEN_HYPERCALL_LIB_H__\r
 \r
+/**\r
+  To call when the gEfiXenInfoGuid HOB became available after the library init\r
+  function has already been executed.\r
+\r
+  This allow to make hypercall in the PEIM stage.\r
+**/\r
+RETURN_STATUS\r
+EFIAPI\r
+XenHypercallLibInit (\r
+  VOID\r
+  );\r
+\r
 /**\r
   Check if the Xen Hypercall library is able to make calls to the Xen\r
   hypervisor.\r
@@ -60,7 +66,7 @@ XenHypercall2 (
 UINT64\r
 EFIAPI\r
 XenHypercallHvmGetParam (\r
-  UINT32 Index\r
+  UINT32  Index\r
   );\r
 \r
 /**\r
@@ -75,8 +81,8 @@ XenHypercallHvmGetParam (
 INTN\r
 EFIAPI\r
 XenHypercallMemoryOp (\r
-  IN     UINTN Operation,\r
-  IN OUT VOID *Arguments\r
+  IN     UINTN  Operation,\r
+  IN OUT VOID   *Arguments\r
   );\r
 \r
 /**\r
@@ -91,8 +97,8 @@ XenHypercallMemoryOp (
 INTN\r
 EFIAPI\r
 XenHypercallEventChannelOp (\r
-  IN     INTN Operation,\r
-  IN OUT VOID *Arguments\r
+  IN     INTN  Operation,\r
+  IN OUT VOID  *Arguments\r
   );\r
 \r
 #endif\r