]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/LockBoxLib/LockBoxBase.c
OvmfPkg: implement LockBoxLib
[mirror_edk2.git] / OvmfPkg / Library / LockBoxLib / LockBoxBase.c
diff --git a/OvmfPkg/Library/LockBoxLib/LockBoxBase.c b/OvmfPkg/Library/LockBoxLib/LockBoxBase.c
new file mode 100644 (file)
index 0000000..8f36770
--- /dev/null
@@ -0,0 +1,42 @@
+/** @file\r
+\r
+  Copyright (c) 2006 - 2014, 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 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
+\r
+**/\r
+\r
+#include <Uefi.h>\r
+\r
+#include <Library/DebugLib.h>\r
+#include <LockBoxLib.h>\r
+\r
+/**\r
+  Allocates a buffer of type EfiACPIMemoryNVS.\r
+\r
+  Allocates the number bytes specified by AllocationSize of type\r
+  EfiACPIMemoryNVS and returns a pointer to the allocated buffer.\r
+  If AllocationSize is 0, then a valid buffer of 0 size is\r
+  returned.  If there is not enough memory remaining to satisfy\r
+  the request, then NULL is returned.\r
+\r
+  @param  AllocationSize        The number of bytes to allocate.\r
+\r
+  @return A pointer to the allocated buffer or NULL if allocation fails.\r
+\r
+**/\r
+VOID *\r
+EFIAPI\r
+AllocateAcpiNvsPool (\r
+  IN UINTN  AllocationSize\r
+  )\r
+{\r
+  ASSERT_EFI_ERROR (RETURN_UNSUPPORTED);\r
+  return NULL;\r
+}\r