]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/LockBoxLib/LockBoxBase.c
3 Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #include <Library/DebugLib.h>
18 #include <LockBoxLib.h>
21 Allocates a buffer of type EfiACPIMemoryNVS.
23 Allocates the number bytes specified by AllocationSize of type
24 EfiACPIMemoryNVS and returns a pointer to the allocated buffer.
25 If AllocationSize is 0, then a valid buffer of 0 size is
26 returned. If there is not enough memory remaining to satisfy
27 the request, then NULL is returned.
29 @param AllocationSize The number of bytes to allocate.
31 @return A pointer to the allocated buffer or NULL if allocation fails.
37 IN UINTN AllocationSize
40 ASSERT_EFI_ERROR (RETURN_UNSUPPORTED
);