]>
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 | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef _PI_PEI_H_\r | |
17 | #define _PI_PEI_H_\r | |
18 | \r | |
19 | #include <PiPei.h>\r | |
20 | \r | |
21 | #include <Library/BaseLib.h>\r | |
22 | #include <Library/PrePiLib.h>\r | |
23 | #include <Library/PcdLib.h>\r | |
24 | #include <Library/DebugLib.h>\r | |
25 | #include <Library/BaseMemoryLib.h>\r | |
26 | #include <Library/UefiDecompressLib.h>\r | |
27 | #include <Library/PeCoffLib.h>\r | |
28 | #include <Library/CacheMaintenanceLib.h>\r | |
29 | #include <Library/TimerLib.h>\r | |
30 | #include <Library/PerformanceLib.h>\r | |
31 | \r | |
32 | #include <Guid/MemoryAllocationHob.h>\r | |
33 | \r | |
34 | \r | |
35 | #define GET_HOB_TYPE(Hob) ((Hob).Header->HobType)\r | |
36 | #define GET_HOB_LENGTH(Hob) ((Hob).Header->HobLength)\r | |
37 | #define GET_NEXT_HOB(Hob) ((Hob).Raw + GET_HOB_LENGTH (Hob))\r | |
38 | #define END_OF_HOB_LIST(Hob) (GET_HOB_TYPE (Hob) == EFI_HOB_TYPE_END_OF_HOB_LIST)\r | |
39 | \r | |
40 | //\r | |
3402aac7 | 41 | // Get the data and data size field of GUID\r |
1e57a462 | 42 | //\r |
43 | #define GET_GUID_HOB_DATA(GuidHob) ((VOID *) (((UINT8 *) &((GuidHob)->Name)) + sizeof (EFI_GUID)))\r | |
44 | #define GET_GUID_HOB_DATA_SIZE(GuidHob) (((GuidHob)->Header).HobLength - sizeof (EFI_HOB_GUID_TYPE))\r | |
45 | \r | |
46 | #endif\r |