]>
Commit | Line | Data |
---|---|---|
6a7cba79 | 1 | /** @file\r |
4040754d | 2 | \r |
6a7cba79 LE |
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 | #ifndef __LOCK_BOX_LIB_IMPL_H__\r | |
10 | #define __LOCK_BOX_LIB_IMPL_H__\r | |
11 | \r | |
12 | #pragma pack(1)\r | |
13 | \r | |
14 | typedef struct {\r | |
15 | UINT32 Signature;\r | |
16 | UINT32 SubPageBuffer;\r | |
17 | UINT32 SubPageRemaining;\r | |
18 | } LOCK_BOX_GLOBAL;\r | |
19 | \r | |
20 | #define LOCK_BOX_GLOBAL_SIGNATURE SIGNATURE_32('L', 'B', 'G', 'S')\r | |
21 | \r | |
22 | extern LOCK_BOX_GLOBAL *mLockBoxGlobal;\r | |
23 | \r | |
24 | #pragma pack()\r | |
25 | \r | |
26 | /**\r | |
27 | Allocates a buffer of type EfiACPIMemoryNVS.\r | |
28 | \r | |
29 | Allocates the number bytes specified by AllocationSize of type\r | |
30 | EfiACPIMemoryNVS and returns a pointer to the allocated buffer.\r | |
31 | If AllocationSize is 0, then a valid buffer of 0 size is\r | |
32 | returned. If there is not enough memory remaining to satisfy\r | |
33 | the request, then NULL is returned.\r | |
34 | \r | |
35 | @param AllocationSize The number of bytes to allocate.\r | |
36 | \r | |
37 | @return A pointer to the allocated buffer or NULL if allocation fails.\r | |
38 | \r | |
39 | **/\r | |
40 | VOID *\r | |
41 | EFIAPI\r | |
42 | AllocateAcpiNvsPool (\r | |
43 | IN UINTN AllocationSize\r | |
44 | );\r | |
45 | \r | |
46 | \r | |
47 | RETURN_STATUS\r | |
48 | EFIAPI\r | |
49 | LockBoxLibInitialize (\r | |
50 | VOID\r | |
51 | );\r | |
52 | \r | |
53 | \r | |
54 | #endif\r |