]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleReset.c
MdeModulePkg/CapsuleRuntimeDxe: clean the capsule payload to DRAM
[mirror_edk2.git] / MdeModulePkg / Universal / CapsuleRuntimeDxe / CapsuleReset.c
1 /** @file
2 Default implementation of architecture specific routines related to
3 PersistAcrossReset capsules
4
5 Copyright (c) 2018, Linaro, Ltd. All rights reserved.<BR>
6
7 This program and the accompanying materials are licensed and made available
8 under the terms and conditions of the BSD License which accompanies this
9 distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
15 **/
16
17 #include "CapsuleService.h"
18
19 /**
20 Whether the platform supports capsules that persist across reset. Note that
21 some platforms only support such capsules at boot time.
22
23 @return TRUE if a PersistAcrossReset capsule may be passed to UpdateCapsule()
24 at this time
25 FALSE otherwise
26 **/
27 BOOLEAN
28 IsPersistAcrossResetCapsuleSupported (
29 VOID
30 )
31 {
32 return FeaturePcdGet (PcdSupportUpdateCapsuleReset);
33 }
34
35 /**
36 Writes Back a range of data cache lines covering a set of capsules in memory.
37
38 Writes Back the data cache lines specified by ScatterGatherList.
39
40 @param ScatterGatherList Physical address of the data structure that
41 describes a set of capsules in memory
42
43 **/
44 VOID
45 CapsuleCacheWriteBack (
46 IN EFI_PHYSICAL_ADDRESS ScatterGatherList
47 )
48 {
49 }