3 Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions
7 of the BSD License which accompanies this distribution. The
8 full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef _CAPSULE_PEIM_H_
17 #define _CAPSULE_PEIM_H_
20 #include <Uefi/UefiSpec.h>
22 #include <Ppi/Capsule.h>
24 #include <Ppi/ReadOnlyVariable2.h>
25 #include <Guid/CapsuleVendor.h>
27 #include <Library/DebugLib.h>
28 #include <Library/PeimEntryPoint.h>
29 #include <Library/PeiServicesLib.h>
30 #include <Library/BaseMemoryLib.h>
31 #include <Library/HobLib.h>
32 #include <Library/PeiServicesTablePointerLib.h>
33 #include <Library/PrintLib.h>
36 // We want to avoid using memory at 0 for coalescing, so set a
39 #define MIN_COALESCE_ADDR 0x100000
40 #define MAX_SUPPORT_CAPSULE_NUM 50
43 // This capsule PEIM puts its private data at the start of the
44 // coalesced capsule. Here's the structure definition.
46 #define EFI_CAPSULE_PEIM_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('C', 'a', 'p', 'D')
51 } EFI_CAPSULE_PEIM_PRIVATE_DATA
;
53 #define CAPSULE_TEST_SIGNATURE SIGNATURE_32('T', 'E', 'S', 'T')