]>
Commit | Line | Data |
---|---|---|
3cbfba02 DW |
1 | /** \r |
2 | Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r | |
3 | This program and the accompanying materials\r | |
4 | are licensed and made available under the terms and conditions of the BSD License\r | |
5 | which accompanies this distribution. The full text of the license may be found at\r | |
6 | http://opensource.org/licenses/bsd-license.php\r | |
7 | \r | |
8 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
9 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
10 | \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | SaveMemoryConfig.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Header file for Save Previous Memory Configuration Driver.\r | |
19 | \r | |
20 | \r | |
21 | \r | |
22 | --*/\r | |
23 | \r | |
24 | \r | |
25 | #ifndef _SAVE_MEMORY_CONFIG_DRIVER_H\r | |
26 | #define _SAVE_MEMORY_CONFIG_DRIVER_H\r | |
27 | \r | |
28 | #include "Protocol/SetupMode.h"\r | |
29 | #include "Guid/PlatformInfo.h"\r | |
30 | #include "Library/HobLib.h"\r | |
31 | #include "Library/DebugLib.h"\r | |
32 | #include "Library/UefiBootServicesTableLib.h"\r | |
33 | #include "Library/BaseMemoryLib.h"\r | |
34 | #include "PlatformBootMode.h"\r | |
35 | #include "Library/BaseLib.h"\r | |
36 | #include "Library/UefiRuntimeServicesTableLib.h"\r | |
37 | #include "Guid/GlobalVariable.h"\r | |
38 | #include "Library/UefiLib.h"\r | |
39 | #include "Guid/HobList.h"\r | |
40 | #include "Guid/MemoryConfigData.h"\r | |
41 | #include "Protocol/MemInfo.h"\r | |
42 | #include "Library/MemoryAllocationLib.h"\r | |
43 | #include <Guid/Vlv2Variable.h>\r | |
44 | \r | |
45 | //\r | |
46 | // Prototypes\r | |
47 | //\r | |
48 | EFI_STATUS\r | |
49 | EFIAPI\r | |
50 | SaveMemoryConfigEntryPoint (\r | |
51 | IN EFI_HANDLE ImageHandle,\r | |
52 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
53 | )\r | |
54 | /*++\r | |
55 | \r | |
56 | Routine Description:\r | |
57 | This is the standard EFI driver point that detects whether there is a\r | |
58 | MemoryConfigurationData HOB and, if so, saves its data to nvRAM.\r | |
59 | \r | |
60 | Arguments:\r | |
61 | ImageHandle - Handle for the image of this driver\r | |
62 | SystemTable - Pointer to the EFI System Table\r | |
63 | \r | |
64 | Returns:\r | |
65 | EFI_SUCCESS - if the data is successfully saved or there was no data\r | |
66 | EFI_NOT_FOUND - if the HOB list could not be located.\r | |
67 | EFI_UNLOAD_IMAGE - It is not success\r | |
68 | \r | |
69 | --*/\r | |
70 | ;\r | |
71 | \r | |
72 | #endif\r |