• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
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
7 
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.
10 
11 
12 Module Name:
13 
14   SaveMemoryConfig.h
15 
16 Abstract:
17 
18   Header file for Save Previous Memory Configuration Driver.
19 
20 
21 
22 --*/
23 
24 
25 #ifndef _SAVE_MEMORY_CONFIG_DRIVER_H
26 #define _SAVE_MEMORY_CONFIG_DRIVER_H
27 
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>
44 
45 //
46 // Prototypes
47 //
48 EFI_STATUS
49 EFIAPI
50 SaveMemoryConfigEntryPoint (
51   IN EFI_HANDLE         ImageHandle,
52   IN EFI_SYSTEM_TABLE   *SystemTable
53   )
54 /*++
55 
56   Routine Description:
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.
59 
60   Arguments:
61     ImageHandle   - Handle for the image of this driver
62     SystemTable   - Pointer to the EFI System Table
63 
64   Returns:
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
68 
69 --*/
70 ;
71 
72 #endif
73