VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/IntelFsp2WrapperPkg/Include/Library/FspMeasurementLib.h

Last change on this file was 108794, checked in by vboxsync, 3 weeks ago

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1/** @file
2 This library is used by FSP modules to measure data to TPM.
3
4Copyright (c) 2020, Intel Corporation. All rights reserved. <BR>
5SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9#ifndef _FSP_MEASUREMENT_LIB_H_
10#define _FSP_MEASUREMENT_LIB_H_
11
12#define FSP_MEASURE_FSP BIT0
13#define FSP_MEASURE_FSPT BIT1
14#define FSP_MEASURE_FSPM BIT2
15#define FSP_MEASURE_FSPS BIT3
16#define FSP_MEASURE_FSPI BIT4
17#define FSP_MEASURE_FSPUPD BIT31
18
19/**
20 Measure a FSP FirmwareBlob.
21
22 @param[in] PcrIndex PCR Index.
23 @param[in] Description Description for this FirmwareBlob.
24 @param[in] FirmwareBlobBase Base address of this FirmwareBlob.
25 @param[in] FirmwareBlobLength Size in bytes of this FirmwareBlob.
26
27 @retval EFI_SUCCESS Operation completed successfully.
28 @retval EFI_UNSUPPORTED TPM device not available.
29 @retval EFI_OUT_OF_RESOURCES Out of memory.
30 @retval EFI_DEVICE_ERROR The operation was unsuccessful.
31*/
32EFI_STATUS
33EFIAPI
34MeasureFspFirmwareBlob (
35 IN UINT32 PcrIndex,
36 IN CHAR8 *Description OPTIONAL,
37 IN EFI_PHYSICAL_ADDRESS FirmwareBlobBase,
38 IN UINT64 FirmwareBlobLength
39 );
40
41#endif
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette