#ifndef __PEI_SERVICES_TABLE_POINTER_LIB_H__\r
#define __PEI_SERVICES_TABLE_POINTER_LIB_H__\r
\r
+/**\r
+ The function returns the pointer to PEI services.\r
+ \r
+ The function returns the pointer to PEI services. \r
+ It will ASSERT() if the pointer to PEI services is NULL.\r
+\r
+ @retval The pointer to PeiServices.\r
+\r
+**/\r
EFI_PEI_SERVICES **\r
GetPeiServicesTablePointer (\r
VOID\r
EFI_DXE_SERVICES *gDS = NULL;\r
\r
/**\r
+ The constructor function caches the pointer of System Configuration Table.\r
+ \r
+ The constructor function caches the pointer of System Configuration Table. \r
+ It will ASSERT() if that operation fails.\r
+ It will ASSERT() if the pointer of System Configuration Table is NULL.\r
+ It will always return EFI_SUCCESS.\r
+\r
+ @param ImageHandle The firmware allocated handle for the EFI image.\r
+ @param SystemTable A pointer to the EFI System Table.\r
+ \r
+ @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.\r
+\r
**/\r
EFI_STATUS\r
DxeServicesTableLibConstructor (\r
\r
static EFI_PEI_SERVICES **gPeiServices;\r
\r
+/**\r
+ The function returns the pointer to PEI services.\r
+ \r
+ The function returns the pointer to PEI services. \r
+ It will ASSERT() if the pointer to PEI services is NULL.\r
+\r
+ @retval The pointer to PeiServices.\r
+\r
+**/\r
EFI_PEI_SERVICES **\r
GetPeiServicesTablePointer (\r
VOID\r
return gPeiServices;\r
}\r
\r
+\r
/**\r
+ The constructor function caches the pointer to PEI services.\r
+ \r
+ The constructor function caches the pointer to PEI services. \r
+ It will always return EFI_SUCCESS.\r
+\r
+ @param FfsHeader Pointer to FFS header the loaded driver.\r
+ @param PeiServices Pointer to the PEI services.\r
+ \r
+ @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.\r
+\r
**/\r
EFI_STATUS\r
PeiServicesTablePointerLibConstructor (\r
**/\r
\r
\r
+/**\r
+ The function returns the pointer to PeiServices.\r
+ \r
+ The function returns the pointer to PeiServices. \r
+ It will ASSERT() if the pointer to PeiServices is NULL.\r
+\r
+ @retval The pointer to PeiServices.\r
\r
+**/\r
EFI_PEI_SERVICES **\r
GetPeiServicesTablePointer (\r
VOID\r
}\r
\r
/**\r
+ The constructor function caches the pointer to PEI services.\r
+ \r
+ The constructor function caches the pointer to PEI services. \r
+ It will always return EFI_SUCCESS.\r
+\r
+ @param FfsHeader Pointer to FFS header the loaded driver.\r
+ @param PeiServices Pointer to the PEI services.\r
+ \r
+ @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.\r
+\r
**/\r
EFI_STATUS\r
PeiServicesTablePointerLibConstructor (\r
EFI_BOOT_SERVICES *gBS;\r
\r
/**\r
+ The constructor function caches the pointer of Boot Services Table.\r
+ \r
+ The constructor function caches the pointer of Boot Services Table through System Table. \r
+ It will ASSERT() if the pointer of System Table is NULL.\r
+ It will ASSERT() if the pointer of Boot Services Table is NULL.\r
+ It will always return EFI_SUCCESS.\r
+\r
+ @param ImageHandle The firmware allocated handle for the EFI image.\r
+ @param SystemTable A pointer to the EFI System Table.\r
+ \r
+ @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.\r
+\r
**/\r
EFI_STATUS\r
UefiBootServicesTableLibConstructor (\r
EFI_RUNTIME_SERVICES *gRT = NULL;\r
\r
/**\r
+ The constructor function caches the pointer of Runtime Services Table.\r
+ \r
+ The constructor function caches the pointer of Runtime Services Table. \r
+ It will ASSERT() if the pointer of Runtime Services Table is NULL.\r
+ It will always return EFI_SUCCESS.\r
+\r
+ @param ImageHandle The firmware allocated handle for the EFI image.\r
+ @param SystemTable A pointer to the EFI System Table.\r
+ \r
+ @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.\r
+\r
**/\r
EFI_STATUS\r
UefiRuntimeServicesTableLibConstructor (\r