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