]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/LockBoxLib/LockBoxLib.h
OvmfPkg/Virtio: take RingBaseShift in SetQueueAddress()
[mirror_edk2.git] / OvmfPkg / Library / LockBoxLib / LockBoxLib.h
CommitLineData
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#ifndef __LOCK_BOX_LIB_IMPL_H__\r
16#define __LOCK_BOX_LIB_IMPL_H__\r
17\r
18#pragma pack(1)\r
19\r
20typedef struct {\r
21 UINT32 Signature;\r
22 UINT32 SubPageBuffer;\r
23 UINT32 SubPageRemaining;\r
24} LOCK_BOX_GLOBAL;\r
25\r
26#define LOCK_BOX_GLOBAL_SIGNATURE SIGNATURE_32('L', 'B', 'G', 'S')\r
27\r
28extern LOCK_BOX_GLOBAL *mLockBoxGlobal;\r
29\r
30#pragma pack()\r
31\r
32/**\r
33 Allocates a buffer of type EfiACPIMemoryNVS.\r
34\r
35 Allocates the number bytes specified by AllocationSize of type\r
36 EfiACPIMemoryNVS and returns a pointer to the allocated buffer.\r
37 If AllocationSize is 0, then a valid buffer of 0 size is\r
38 returned. If there is not enough memory remaining to satisfy\r
39 the request, then NULL is returned.\r
40\r
41 @param AllocationSize The number of bytes to allocate.\r
42\r
43 @return A pointer to the allocated buffer or NULL if allocation fails.\r
44\r
45**/\r
46VOID *\r
47EFIAPI\r
48AllocateAcpiNvsPool (\r
49 IN UINTN AllocationSize\r
50 );\r
51\r
52\r
53RETURN_STATUS\r
54EFIAPI\r
55LockBoxLibInitialize (\r
56 VOID\r
57 );\r
58\r
59\r
60#endif\r