Update EFI_CAPSULE_HEADER definition.
[mirror_edk2.git] / MdeModulePkg / Universal / Capsule / RuntimeDxe / CapsuleService.h
CommitLineData
513f3f44 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12Module Name:\r
13\r
14 CapsuleService.h\r
15\r
16Abstract:\r
17\r
18 Capsule Runtime Service\r
19\r
20--*/\r
21\r
22#ifndef _CAPSULE_RUNTIME_H_\r
23#define _CAPSULE_RUNTIME_H_\r
24\r
25//\r
26// The package level header files this module uses\r
27//\r
28#include <PiDxe.h>\r
29//\r
30// The protocols, PPI and GUID defintions for this module\r
31//\r
32#include <Protocol/Capsule.h>\r
33#include <Guid/CapsuleVendor.h>\r
34//\r
35// The Library classes this module consumes\r
36//\r
37#include <Library/UefiDriverEntryPoint.h>\r
38#include <Library/DxeServicesTableLib.h>\r
39#include <Library/UefiRuntimeLib.h>\r
40#include <Library/DebugLib.h>\r
41#include <Library/PcdLib.h>\r
42#include <Library/BaseMemoryLib.h>\r
43#include <Library/MemoryAllocationLib.h>\r
44#include <Library/UefiBootServicesTableLib.h>\r
45\r
46#include <Common/CapsuleName.h>\r
47\r
48extern EFI_GUID gEfiCapsuleGuid;\r
49\r
50EFI_STATUS\r
51EFIAPI\r
52UpdateCapsule(\r
bcfe6ae1 53 IN EFI_CAPSULE_HEADER **CapsuleHeaderArray,\r
513f3f44 54 IN UINTN CapsuleCount,\r
55 IN EFI_PHYSICAL_ADDRESS ScatterGatherList OPTIONAL\r
56 );\r
57\r
58EFI_STATUS\r
59EFIAPI\r
60QueryCapsuleCapabilities(\r
bcfe6ae1 61 IN EFI_CAPSULE_HEADER **CapsuleHeaderArray,\r
513f3f44 62 IN UINTN CapsuleCount,\r
63 OUT UINT64 *MaxiumCapsuleSize,\r
64 OUT EFI_RESET_TYPE *ResetType\r
65 );\r
66\r
67#endif\r
68\r