TianoCore EDK2 master
Loading...
Searching...
No Matches
Tcg2ConfigDriver.c File Reference
#include "Tcg2ConfigImpl.h"

Go to the source code of this file.

Functions

VOID UpdateDefaultPCRBanks (IN VOID *HiiPackage, IN UINTN HiiPackageSize, IN UINT32 PCRBanks)
 
VOID InitializeTcg2VersionInfo (IN TCG2_CONFIG_PRIVATE_DATA *PrivateData)
 
EFI_STATUS EFIAPI Tcg2ConfigDriverEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 
EFI_STATUS EFIAPI Tcg2ConfigDriverUnload (IN EFI_HANDLE ImageHandle)
 

Variables

TPM_INSTANCE_ID mTpmInstanceId [TPM_DEVICE_MAX+1]
 

Detailed Description

The module entry point for Tcg2 configuration module.

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

Definition in file Tcg2ConfigDriver.c.

Function Documentation

◆ InitializeTcg2VersionInfo()

VOID InitializeTcg2VersionInfo ( IN TCG2_CONFIG_PRIVATE_DATA PrivateData)

Initialize TCG2 version information.

This function will initialize efi varstore configuration data for TCG2_VERSION_NAME variable, check the value of related PCD with the variable value and set string for the version state content according to the PCD value.

Parameters
[in]PrivateDataPoints to TCG2 configuration private data.

Definition at line 73 of file Tcg2ConfigDriver.c.

◆ Tcg2ConfigDriverEntryPoint()

EFI_STATUS EFIAPI Tcg2ConfigDriverEntryPoint ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

The entry point for Tcg2 configuration driver.

Parameters
[in]ImageHandleThe image handle of the driver.
[in]SystemTableThe system table.
Return values
EFI_ALREADY_STARTEDThe driver already exists in system.
EFI_OUT_OF_RESOURCESFail to execute entry point due to lack of resources.
EFI_SUCCESSAll the related protocols are installed on the driver.
OthersFail to install protocols as indicated.

Definition at line 255 of file Tcg2ConfigDriver.c.

◆ Tcg2ConfigDriverUnload()

EFI_STATUS EFIAPI Tcg2ConfigDriverUnload ( IN EFI_HANDLE  ImageHandle)

Unload the Tcg2 configuration form.

Parameters
[in]ImageHandleThe driver's image handle.
Return values
EFI_SUCCESSThe Tcg2 configuration form is unloaded.
OthersFailed to unload the form.

Definition at line 433 of file Tcg2ConfigDriver.c.

◆ UpdateDefaultPCRBanks()

VOID UpdateDefaultPCRBanks ( IN VOID *  HiiPackage,
IN UINTN  HiiPackageSize,
IN UINT32  PCRBanks 
)

Update default PCR banks data.

Parameters
[in]HiiPackageHII Package.
[in]HiiPackageSizeHII Package size.
[in]PCRBanksPCR Banks data.

Definition at line 22 of file Tcg2ConfigDriver.c.

Variable Documentation

◆ mTpmInstanceId

TPM_INSTANCE_ID mTpmInstanceId[TPM_DEVICE_MAX+1]
extern

Definition at line 23 of file Tcg2ConfigImpl.c.