TianoCore EDK2 master
Loading...
Searching...
No Matches
FspMeasurementLib.h File Reference

Go to the source code of this file.

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 OPTIONAL, 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

Definition in file FspMeasurementLib.h.

Macro Definition Documentation

◆ FSP_MEASURE_FSP

#define FSP_MEASURE_FSP   BIT0

Definition at line 12 of file FspMeasurementLib.h.

◆ FSP_MEASURE_FSPM

#define FSP_MEASURE_FSPM   BIT2

Definition at line 14 of file FspMeasurementLib.h.

◆ FSP_MEASURE_FSPS

#define FSP_MEASURE_FSPS   BIT3

Definition at line 15 of file FspMeasurementLib.h.

◆ FSP_MEASURE_FSPT

#define FSP_MEASURE_FSPT   BIT1

Definition at line 13 of file FspMeasurementLib.h.

◆ FSP_MEASURE_FSPUPD

#define FSP_MEASURE_FSPUPD   BIT31

Definition at line 16 of file FspMeasurementLib.h.

Function Documentation

◆ MeasureFspFirmwareBlob()

EFI_STATUS EFIAPI MeasureFspFirmwareBlob ( IN UINT32  PcrIndex,
IN CHAR8 *Description  OPTIONAL,
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.

Definition at line 232 of file FspMeasurementLib.c.