]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/XenHypercallLib/ArmXenHypercall.c
OvmfPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / OvmfPkg / Library / XenHypercallLib / ArmXenHypercall.c
index 1f213d6e6f1880c7eff96af400c9134995a14fdf..2cacc67badd144fca28d27d177d750e5f631f3a7 100644 (file)
@@ -4,17 +4,30 @@
   Copyright (C) 2015, Red Hat, Inc.\r
   Copyright (c) 2014, Linaro Ltd. All rights reserved.<BR>\r
 \r
-  This program and the accompanying materials are licensed and made available\r
-  under the terms and conditions of the BSD License that 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
 #include <Base.h>\r
 \r
+/**\r
+  Check if the Xen Hypercall library is able to make calls to the Xen\r
+  hypervisor.\r
+\r
+  Client code should call further functions in this library only if, and after,\r
+  this function returns TRUE.\r
+\r
+  @retval TRUE   Hypercalls are available.\r
+  @retval FALSE  Hypercalls are not available.\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+XenHypercallIsAvailable (\r
+  VOID\r
+  )\r
+{\r
+  return TRUE;\r
+}\r
+\r
 RETURN_STATUS\r
 EFIAPI\r
 XenHypercallLibInit (\r