]>
Commit | Line | Data |
---|---|---|
6a7cba79 LE |
1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r | |
4 | \r | |
b26f0cf9 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
6a7cba79 LE |
6 | \r |
7 | **/\r | |
8 | \r | |
9 | #include <Uefi.h>\r | |
10 | \r | |
11 | #include <Library/DebugLib.h>\r | |
12 | #include <LockBoxLib.h>\r | |
13 | \r | |
14 | /**\r | |
15 | Allocates a buffer of type EfiACPIMemoryNVS.\r | |
16 | \r | |
17 | Allocates the number bytes specified by AllocationSize of type\r | |
18 | EfiACPIMemoryNVS and returns a pointer to the allocated buffer.\r | |
19 | If AllocationSize is 0, then a valid buffer of 0 size is\r | |
20 | returned. If there is not enough memory remaining to satisfy\r | |
21 | the request, then NULL is returned.\r | |
22 | \r | |
23 | @param AllocationSize The number of bytes to allocate.\r | |
24 | \r | |
25 | @return A pointer to the allocated buffer or NULL if allocation fails.\r | |
26 | \r | |
27 | **/\r | |
28 | VOID *\r | |
29 | EFIAPI\r | |
30 | AllocateAcpiNvsPool (\r | |
31 | IN UINTN AllocationSize\r | |
32 | )\r | |
33 | {\r | |
34 | ASSERT_EFI_ERROR (RETURN_UNSUPPORTED);\r | |
35 | return NULL;\r | |
36 | }\r |