]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.h
MdeModulePkg/CapsuleRuntimeDxe: clean the capsule payload to DRAM
[mirror_edk2.git] / MdeModulePkg / Universal / CapsuleRuntimeDxe / CapsuleService.h
CommitLineData
e077a93d
AB
1/** @file\r
2 Capsule Runtime Driver produces two UEFI capsule runtime services.\r
3 (UpdateCapsule, QueryCapsuleCapabilities)\r
4 It installs the Capsule Architectural Protocol defined in PI1.0a to signify \r
5 the capsule runtime services are ready.\r
6\r
7 Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
8 Copyright (c) 2018, Linaro, Ltd. All rights reserved.<BR>\r
9\r
10 This program and the accompanying materials are licensed and made available\r
11 under the terms and conditions of the BSD License which accompanies this\r
12 distribution. The full text of the license may be found at\r
13 http://opensource.org/licenses/bsd-license.php\r
14\r
15 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
16 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
17\r
18**/\r
19\r
20#include <Uefi.h>\r
21\r
22#include <Protocol/Capsule.h>\r
23#include <Guid/CapsuleVendor.h>\r
24#include <Guid/FmpCapsule.h>\r
25\r
26#include <Library/DebugLib.h>\r
27#include <Library/PcdLib.h>\r
28#include <Library/CapsuleLib.h>\r
29#include <Library/UefiDriverEntryPoint.h>\r
30#include <Library/UefiBootServicesTableLib.h>\r
31#include <Library/UefiRuntimeServicesTableLib.h>\r
32#include <Library/UefiRuntimeLib.h>\r
33#include <Library/BaseLib.h>\r
34#include <Library/PrintLib.h>\r
35#include <Library/BaseMemoryLib.h>\r
36\r
37/**\r
38 Create the variable to save the base address of page table and stack\r
39 for transferring into long mode in IA32 PEI.\r
40**/\r
41VOID\r
42SaveLongModeContext (\r
43 VOID\r
44 );\r
45\r
46/**\r
47 Whether the platform supports capsules that persist across reset. Note that\r
48 some platforms only support such capsules at boot time.\r
49\r
50 @return TRUE if a PersistAcrossReset capsule may be passed to UpdateCapsule()\r
51 at this time\r
52 FALSE otherwise\r
53**/\r
54BOOLEAN\r
55IsPersistAcrossResetCapsuleSupported (\r
56 VOID\r
57 );\r
58\r
59/**\r
60 Writes Back a range of data cache lines covering a set of capsules in memory.\r
61\r
62 Writes Back the data cache lines specified by ScatterGatherList.\r
63\r
64 @param ScatterGatherList Physical address of the data structure that\r
65 describes a set of capsules in memory\r
66\r
67**/\r
68VOID\r
69CapsuleCacheWriteBack (\r
70 IN EFI_PHYSICAL_ADDRESS ScatterGatherList\r
71 );\r