2 Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
3 This program and the accompanying materials
4 are licensed and made available under the terms and conditions of the BSD License
5 which accompanies this distribution. The full text of the license may be found at
6 http://opensource.org/licenses/bsd-license.php
8 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Header file for Save Previous Memory Configuration Driver.
25 #ifndef _SAVE_MEMORY_CONFIG_DRIVER_H
26 #define _SAVE_MEMORY_CONFIG_DRIVER_H
28 #include "Protocol/SetupMode.h"
29 #include "Guid/PlatformInfo.h"
30 #include "Library/HobLib.h"
31 #include "Library/DebugLib.h"
32 #include "Library/UefiBootServicesTableLib.h"
33 #include "Library/BaseMemoryLib.h"
34 #include "PlatformBootMode.h"
35 #include "Library/BaseLib.h"
36 #include "Library/UefiRuntimeServicesTableLib.h"
37 #include "Guid/GlobalVariable.h"
38 #include "Library/UefiLib.h"
39 #include "Guid/HobList.h"
40 #include "Guid/MemoryConfigData.h"
41 #include "Protocol/MemInfo.h"
42 #include "Library/MemoryAllocationLib.h"
43 #include <Guid/Vlv2Variable.h>
50 SaveMemoryConfigEntryPoint (
51 IN EFI_HANDLE ImageHandle
,
52 IN EFI_SYSTEM_TABLE
*SystemTable
57 This is the standard EFI driver point that detects whether there is a
58 MemoryConfigurationData HOB and, if so, saves its data to nvRAM.
61 ImageHandle - Handle for the image of this driver
62 SystemTable - Pointer to the EFI System Table
65 EFI_SUCCESS - if the data is successfully saved or there was no data
66 EFI_NOT_FOUND - if the HOB list could not be located.
67 EFI_UNLOAD_IMAGE - It is not success