1 | /** @file
|
---|
2 |
|
---|
3 | Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
---|
4 |
|
---|
5 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
6 |
|
---|
7 | **/
|
---|
8 |
|
---|
9 | #ifndef __LOCK_BOX_LIB_IMPL_H__
|
---|
10 | #define __LOCK_BOX_LIB_IMPL_H__
|
---|
11 |
|
---|
12 | #pragma pack(1)
|
---|
13 |
|
---|
14 | typedef struct {
|
---|
15 | UINT32 Signature;
|
---|
16 | UINT32 SubPageBuffer;
|
---|
17 | UINT32 SubPageRemaining;
|
---|
18 | } LOCK_BOX_GLOBAL;
|
---|
19 |
|
---|
20 | #define LOCK_BOX_GLOBAL_SIGNATURE SIGNATURE_32('L', 'B', 'G', 'S')
|
---|
21 |
|
---|
22 | extern LOCK_BOX_GLOBAL *mLockBoxGlobal;
|
---|
23 |
|
---|
24 | #pragma pack()
|
---|
25 |
|
---|
26 | /**
|
---|
27 | Allocates a buffer of type EfiACPIMemoryNVS.
|
---|
28 |
|
---|
29 | Allocates the number bytes specified by AllocationSize of type
|
---|
30 | EfiACPIMemoryNVS and returns a pointer to the allocated buffer.
|
---|
31 | If AllocationSize is 0, then a valid buffer of 0 size is
|
---|
32 | returned. If there is not enough memory remaining to satisfy
|
---|
33 | the request, then NULL is returned.
|
---|
34 |
|
---|
35 | @param AllocationSize The number of bytes to allocate.
|
---|
36 |
|
---|
37 | @return A pointer to the allocated buffer or NULL if allocation fails.
|
---|
38 |
|
---|
39 | **/
|
---|
40 | VOID *
|
---|
41 | EFIAPI
|
---|
42 | AllocateAcpiNvsPool (
|
---|
43 | IN UINTN AllocationSize
|
---|
44 | );
|
---|
45 |
|
---|
46 | RETURN_STATUS
|
---|
47 | EFIAPI
|
---|
48 | LockBoxLibInitialize (
|
---|
49 | VOID
|
---|
50 | );
|
---|
51 |
|
---|
52 | #endif
|
---|