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