]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.h
MdeModulePkg: Clean up source files
[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 - 2018, 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 #ifndef _CAPSULE_SERVICE_H_
21 #define _CAPSULE_SERVICE_H_
22
23 #include <Uefi.h>
24
25 #include <Protocol/Capsule.h>
26 #include <Guid/CapsuleVendor.h>
27 #include <Guid/FmpCapsule.h>
28
29 #include <Library/DebugLib.h>
30 #include <Library/PcdLib.h>
31 #include <Library/CapsuleLib.h>
32 #include <Library/UefiDriverEntryPoint.h>
33 #include <Library/UefiBootServicesTableLib.h>
34 #include <Library/UefiRuntimeServicesTableLib.h>
35 #include <Library/UefiRuntimeLib.h>
36 #include <Library/BaseLib.h>
37 #include <Library/PrintLib.h>
38 #include <Library/BaseMemoryLib.h>
39
40 /**
41 Create the variable to save the base address of page table and stack
42 for transferring into long mode in IA32 PEI.
43 **/
44 VOID
45 SaveLongModeContext (
46 VOID
47 );
48
49 /**
50 Whether the platform supports capsules that persist across reset. Note that
51 some platforms only support such capsules at boot time.
52
53 @return TRUE if a PersistAcrossReset capsule may be passed to UpdateCapsule()
54 at this time
55 FALSE otherwise
56 **/
57 BOOLEAN
58 IsPersistAcrossResetCapsuleSupported (
59 VOID
60 );
61
62 /**
63 Writes Back a range of data cache lines covering a set of capsules in memory.
64
65 Writes Back the data cache lines specified by ScatterGatherList.
66
67 @param ScatterGatherList Physical address of the data structure that
68 describes a set of capsules in memory
69
70 **/
71 VOID
72 CapsuleCacheWriteBack (
73 IN EFI_PHYSICAL_ADDRESS ScatterGatherList
74 );
75
76 #endif