]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/LockBoxLib/LockBoxLib.h
OvmfPkg: Apply uncrustify changes
[mirror_edk2.git] / OvmfPkg / Library / LockBoxLib / LockBoxLib.h
CommitLineData
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
14typedef struct {\r
ac0a286f
MK
15 UINT32 Signature;\r
16 UINT32 SubPageBuffer;\r
17 UINT32 SubPageRemaining;\r
6a7cba79
LE
18} LOCK_BOX_GLOBAL;\r
19\r
ac0a286f 20#define LOCK_BOX_GLOBAL_SIGNATURE SIGNATURE_32('L', 'B', 'G', 'S')\r
6a7cba79 21\r
ac0a286f 22extern LOCK_BOX_GLOBAL *mLockBoxGlobal;\r
6a7cba79
LE
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
40VOID *\r
41EFIAPI\r
42AllocateAcpiNvsPool (\r
43 IN UINTN AllocationSize\r
44 );\r
45\r
6a7cba79
LE
46RETURN_STATUS\r
47EFIAPI\r
48LockBoxLibInitialize (\r
49 VOID\r
50 );\r
51\r
6a7cba79 52#endif\r