]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/SaveMemoryConfig/SaveMemoryConfig.h
Vlv2TbltDevicePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / Vlv2TbltDevicePkg / SaveMemoryConfig / SaveMemoryConfig.h
1 /**
2 Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
3 SPDX-License-Identifier: BSD-2-Clause-Patent
4
5
6 Module Name:
7
8 SaveMemoryConfig.h
9
10 Abstract:
11
12 Header file for Save Previous Memory Configuration Driver.
13
14
15
16 --*/
17
18
19 #ifndef _SAVE_MEMORY_CONFIG_DRIVER_H
20 #define _SAVE_MEMORY_CONFIG_DRIVER_H
21
22 #include "Protocol/SetupMode.h"
23 #include "Guid/PlatformInfo.h"
24 #include "Library/HobLib.h"
25 #include "Library/DebugLib.h"
26 #include "Library/UefiBootServicesTableLib.h"
27 #include "Library/BaseMemoryLib.h"
28 #include "PlatformBootMode.h"
29 #include "Library/BaseLib.h"
30 #include "Library/UefiRuntimeServicesTableLib.h"
31 #include "Guid/GlobalVariable.h"
32 #include "Library/UefiLib.h"
33 #include "Guid/HobList.h"
34 #include "Guid/MemoryConfigData.h"
35 #include "Protocol/MemInfo.h"
36 #include "Library/MemoryAllocationLib.h"
37 #include <Guid/Vlv2Variable.h>
38
39 //
40 // Prototypes
41 //
42 EFI_STATUS
43 EFIAPI
44 SaveMemoryConfigEntryPoint (
45 IN EFI_HANDLE ImageHandle,
46 IN EFI_SYSTEM_TABLE *SystemTable
47 )
48 /*++
49
50 Routine Description:
51 This is the standard EFI driver point that detects whether there is a
52 MemoryConfigurationData HOB and, if so, saves its data to nvRAM.
53
54 Arguments:
55 ImageHandle - Handle for the image of this driver
56 SystemTable - Pointer to the EFI System Table
57
58 Returns:
59 EFI_SUCCESS - if the data is successfully saved or there was no data
60 EFI_NOT_FOUND - if the HOB list could not be located.
61 EFI_UNLOAD_IMAGE - It is not success
62
63 --*/
64 ;
65
66 #endif