513f3f44 |
1 | /*++\r |
2 | \r |
3 | Copyright (c) 2006, Intel Corporation\r |
4 | All rights reserved. This program and the accompanying materials\r |
5 | are licensed and made available under the terms and conditions of the BSD License\r |
6 | which accompanies this distribution. The full text of the license may be found at\r |
7 | http://opensource.org/licenses/bsd-license.php\r |
8 | \r |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r |
11 | \r |
12 | Module Name:\r |
13 | \r |
14 | CapsuleService.h\r |
15 | \r |
16 | Abstract:\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 |
48 | extern EFI_GUID gEfiCapsuleGuid;\r |
49 | \r |
50 | EFI_STATUS\r |
51 | EFIAPI\r |
52 | UpdateCapsule(\r |
53 | IN UEFI_CAPSULE_HEADER **CapsuleHeaderArray,\r |
54 | IN UINTN CapsuleCount,\r |
55 | IN EFI_PHYSICAL_ADDRESS ScatterGatherList OPTIONAL\r |
56 | );\r |
57 | \r |
58 | EFI_STATUS\r |
59 | EFIAPI\r |
60 | QueryCapsuleCapabilities(\r |
61 | IN UEFI_CAPSULE_HEADER **CapsuleHeaderArray,\r |
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 |