]>
Commit | Line | Data |
---|---|---|
1e57a462 | 1 | /** @file\r |
2 | Library that helps implement monolithic PEI (i.e. PEI part of SEC)\r | |
3 | \r | |
4 | Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r | |
5 | \r | |
878b807a | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
1e57a462 | 7 | \r |
8 | **/\r | |
9 | \r | |
10 | #ifndef _PI_PEI_H_\r | |
11 | #define _PI_PEI_H_\r | |
12 | \r | |
13 | #include <PiPei.h>\r | |
14 | \r | |
15 | #include <Library/BaseLib.h>\r | |
16 | #include <Library/PrePiLib.h>\r | |
17 | #include <Library/PcdLib.h>\r | |
18 | #include <Library/DebugLib.h>\r | |
19 | #include <Library/BaseMemoryLib.h>\r | |
20 | #include <Library/UefiDecompressLib.h>\r | |
21 | #include <Library/PeCoffLib.h>\r | |
22 | #include <Library/CacheMaintenanceLib.h>\r | |
6ac97ad3 | 23 | #include <Library/MemoryAllocationLib.h>\r |
1e57a462 | 24 | #include <Library/TimerLib.h>\r |
25 | #include <Library/PerformanceLib.h>\r | |
26 | \r | |
27 | #include <Guid/MemoryAllocationHob.h>\r | |
28 | \r | |
29 | \r | |
30 | #define GET_HOB_TYPE(Hob) ((Hob).Header->HobType)\r | |
31 | #define GET_HOB_LENGTH(Hob) ((Hob).Header->HobLength)\r | |
32 | #define GET_NEXT_HOB(Hob) ((Hob).Raw + GET_HOB_LENGTH (Hob))\r | |
33 | #define END_OF_HOB_LIST(Hob) (GET_HOB_TYPE (Hob) == EFI_HOB_TYPE_END_OF_HOB_LIST)\r | |
34 | \r | |
35 | //\r | |
3402aac7 | 36 | // Get the data and data size field of GUID\r |
1e57a462 | 37 | //\r |
38 | #define GET_GUID_HOB_DATA(GuidHob) ((VOID *) (((UINT8 *) &((GuidHob)->Name)) + sizeof (EFI_GUID)))\r | |
39 | #define GET_GUID_HOB_DATA_SIZE(GuidHob) (((GuidHob)->Header).HobLength - sizeof (EFI_HOB_GUID_TYPE))\r | |
40 | \r | |
41 | #endif\r |