]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmCommon.h
Add SMM Variable implementation.
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / VariableSmmCommon.h
1 /** @file
2
3 The internal header file includes the common header files shared
4 by VariableSmm module and VariableSmmRuntimeDxe module.
5
6 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
7 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
15 **/
16
17 #ifndef _VARIABLE_SMM_COMMON_H_
18 #define _VARIABLE_SMM_COMMON_H_
19
20 #include <PiDxe.h>
21
22 #include <Protocol/SmmVariable.h>
23 #include <Protocol/SmmFirmwareVolumeBlock.h>
24 #include <Guid/VariableFormat.h>
25
26 #define EFI_SMM_VARIABLE_WRITE_GUID \
27 { 0x93ba1826, 0xdffb, 0x45dd, { 0x82, 0xa7, 0xe7, 0xdc, 0xaa, 0x3b, 0xbd, 0xf3 } }
28
29 ///
30 /// Size of SMM communicate header, without including the payload.
31 ///
32 #define SMM_COMMUNICATE_HEADER_SIZE (OFFSET_OF (EFI_SMM_COMMUNICATE_HEADER, Data))
33
34 ///
35 /// Size of SMM variable communicate header, without including the payload.
36 ///
37 #define SMM_VARIABLE_COMMUNICATE_HEADER_SIZE (OFFSET_OF (SMM_VARIABLE_COMMUNICATE_HEADER, Data))
38
39
40 #endif