]>
Commit | Line | Data |
---|---|---|
251ca604 LE |
1 | /** @file\r |
2 | Serialize Variables Library implementation\r | |
3 | \r | |
4 | Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\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 __SERIALIZE_VARIABLES_LIB_INSTANCE__\r | |
16 | #define __SERIALIZE_VARIABLES_LIB_INSTANCE__\r | |
17 | \r | |
18 | #include <Uefi.h>\r | |
19 | \r | |
20 | #include <Library/BaseLib.h>\r | |
21 | #include <Library/BaseMemoryLib.h>\r | |
22 | #include <Library/DebugLib.h>\r | |
23 | #include <Library/MemoryAllocationLib.h>\r | |
24 | #include <Library/SerializeVariablesLib.h>\r | |
25 | #include <Library/UefiBootServicesTableLib.h>\r | |
26 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
27 | \r | |
28 | #define SV_FROM_HANDLE(a) CR (a, SV_INSTANCE, Signature, SV_SIGNATURE)\r | |
29 | #define SV_SIGNATURE SIGNATURE_32 ('S', 'V', 'A', 'R')\r | |
30 | \r | |
31 | typedef struct {\r | |
32 | UINT32 Signature;\r | |
33 | VOID *BufferPtr;\r | |
34 | UINTN BufferSize;\r | |
35 | UINTN DataSize;\r | |
36 | } SV_INSTANCE;\r | |
37 | \r | |
38 | #endif\r | |
39 | \r |