IntelFsp2WrapperPkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Macros Pages
FspMeasurementLib.h File Reference

Macros

#define FSP_MEASURE_FSP   BIT0
 
#define FSP_MEASURE_FSPT   BIT1
 
#define FSP_MEASURE_FSPM   BIT2
 
#define FSP_MEASURE_FSPS   BIT3
 
#define FSP_MEASURE_FSPUPD   BIT31
 

Functions

EFI_STATUS EFIAPI MeasureFspFirmwareBlob (IN UINT32 PcrIndex, IN CHAR8 *Description, IN EFI_PHYSICAL_ADDRESS FirmwareBlobBase, IN UINT64 FirmwareBlobLength)
 

Detailed Description

This library is used by FSP modules to measure data to TPM.

Copyright (c) 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Macro Definition Documentation

#define FSP_MEASURE_FSP   BIT0
#define FSP_MEASURE_FSPM   BIT2
#define FSP_MEASURE_FSPS   BIT3
#define FSP_MEASURE_FSPT   BIT1
#define FSP_MEASURE_FSPUPD   BIT31

Function Documentation

EFI_STATUS EFIAPI MeasureFspFirmwareBlob ( IN UINT32  PcrIndex,
IN CHAR8 *  Description,
IN EFI_PHYSICAL_ADDRESS  FirmwareBlobBase,
IN UINT64  FirmwareBlobLength 
)

Measure a FSP FirmwareBlob.

Parameters
[in]PcrIndexPCR Index.
[in]DescriptionDescription for this FirmwareBlob.
[in]FirmwareBlobBaseBase address of this FirmwareBlob.
[in]FirmwareBlobLengthSize in bytes of this FirmwareBlob.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_UNSUPPORTEDTPM device not available.
EFI_OUT_OF_RESOURCESOut of memory.
EFI_DEVICE_ERRORThe operation was unsuccessful.