]>
Commit | Line | Data |
---|---|---|
6a7cba79 LE |
1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r | |
4 | \r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php.\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #include <Uefi.h>\r | |
16 | \r | |
17 | #include <Library/DebugLib.h>\r | |
18 | #include <LockBoxLib.h>\r | |
19 | \r | |
20 | /**\r | |
21 | Allocates a buffer of type EfiACPIMemoryNVS.\r | |
22 | \r | |
23 | Allocates the number bytes specified by AllocationSize of type\r | |
24 | EfiACPIMemoryNVS and returns a pointer to the allocated buffer.\r | |
25 | If AllocationSize is 0, then a valid buffer of 0 size is\r | |
26 | returned. If there is not enough memory remaining to satisfy\r | |
27 | the request, then NULL is returned.\r | |
28 | \r | |
29 | @param AllocationSize The number of bytes to allocate.\r | |
30 | \r | |
31 | @return A pointer to the allocated buffer or NULL if allocation fails.\r | |
32 | \r | |
33 | **/\r | |
34 | VOID *\r | |
35 | EFIAPI\r | |
36 | AllocateAcpiNvsPool (\r | |
37 | IN UINTN AllocationSize\r | |
38 | )\r | |
39 | {\r | |
40 | ASSERT_EFI_ERROR (RETURN_UNSUPPORTED);\r | |
41 | return NULL;\r | |
42 | }\r |