+/**\r
+ This function is called after TCG installed PPI.\r
+\r
+ @param[in] PeiServices Pointer to PEI Services Table.\r
+ @param[in] NotifyDesc Pointer to the descriptor for the Notification event that\r
+ caused this function to execute.\r
+ @param[in] Ppi Pointer to the PPI data associated with this function.\r
+\r
+ @retval EFI_STATUS Always return EFI_SUCCESS\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+TcgPpiNotify (\r
+ IN EFI_PEI_SERVICES **PeiServices,\r
+ IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDesc,\r
+ IN VOID *Ppi\r
+ );\r
+\r
+EFI_PEI_NOTIFY_DESCRIPTOR mTcgPpiNotifyDesc = {\r
+ (EFI_PEI_PPI_DESCRIPTOR_NOTIFY_CALLBACK | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),\r
+ &gEdkiiTcgPpiGuid,\r
+ TcgPpiNotify\r
+};\r
+\r
+/**\r
+ This function is called after TCG installed PPI.\r
+\r
+ @param[in] PeiServices Pointer to PEI Services Table.\r
+ @param[in] NotifyDesc Pointer to the descriptor for the Notification event that\r
+ caused this function to execute.\r
+ @param[in] Ppi Pointer to the PPI data associated with this function.\r
+\r
+ @retval EFI_STATUS Always return EFI_SUCCESS\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+TcgPpiNotify (\r
+ IN EFI_PEI_SERVICES **PeiServices,\r
+ IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDesc,\r
+ IN VOID *Ppi\r
+ )\r
+{\r
+ UINT32 FspMeasureMask;\r
+\r
+ DEBUG ((DEBUG_INFO, "TcgPpiNotify FSPM\n"));\r
+\r
+ FspMeasureMask = PcdGet32 (PcdFspMeasurementConfig);\r
+\r
+ if ((FspMeasureMask & FSP_MEASURE_FSPT) != 0) {\r
+ MeasureFspFirmwareBlob (\r
+ 0,\r
+ "FSPT",\r
+ PcdGet32 (PcdFsptBaseAddress),\r
+ (UINT32)((EFI_FIRMWARE_VOLUME_HEADER *)(UINTN)PcdGet32 (PcdFsptBaseAddress))->FvLength\r
+ );\r
+ }\r
+\r
+ if ((FspMeasureMask & FSP_MEASURE_FSPM) != 0) {\r
+ MeasureFspFirmwareBlob (\r
+ 0,\r
+ "FSPM",\r
+ PcdGet32 (PcdFspmBaseAddress),\r
+ (UINT32)((EFI_FIRMWARE_VOLUME_HEADER *)(UINTN)PcdGet32 (PcdFspmBaseAddress))->FvLength\r
+ );\r
+ }\r
+\r
+ return EFI_SUCCESS;\r
+}\r
+\r