EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

EmbeddedPkg/Library/PrePiLib/PrePi.h

Go to the documentation of this file.
00001 
00016 #ifndef _PI_PEI_H_
00017 #define _PI_PEI_H_
00018 
00019 #include <PiPei.h>
00020 
00021 #include <Library/BaseLib.h>
00022 #include <Library/PrePiLib.h>
00023 #include <Library/PcdLib.h>
00024 #include <Library/DebugLib.h>
00025 #include <Library/BaseMemoryLib.h>
00026 #include <Library/UefiDecompressLib.h>
00027 #include <Library/PeCoffLib.h>
00028 #include <Library/CacheMaintenanceLib.h>
00029 #include <Library/TimerLib.h>
00030 #include <Library/PerformanceLib.h>
00031 
00032 #include <Guid/MemoryAllocationHob.h>
00033 
00034 
00035 #define GET_HOB_TYPE(Hob)     ((Hob).Header->HobType)
00036 #define GET_HOB_LENGTH(Hob)   ((Hob).Header->HobLength)
00037 #define GET_NEXT_HOB(Hob)     ((Hob).Raw + GET_HOB_LENGTH (Hob))
00038 #define END_OF_HOB_LIST(Hob)  (GET_HOB_TYPE (Hob) == EFI_HOB_TYPE_END_OF_HOB_LIST)
00039 
00040 //
00041 // Get the data and data size field of GUID 
00042 //
00043 #define GET_GUID_HOB_DATA(GuidHob)      ((VOID *) (((UINT8 *) &((GuidHob)->Name)) + sizeof (EFI_GUID)))
00044 #define GET_GUID_HOB_DATA_SIZE(GuidHob) (((GuidHob)->Header).HobLength - sizeof (EFI_HOB_GUID_TYPE))
00045 
00046 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines