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