SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPeim.c File Reference


Functions

UINT8 DetectTpmDevice (IN UINT8 SetupTpmDevice)
EFI_STATUS EFIAPI Tcg2ConfigPeimEntryPoint (IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)

Variables

TPM_INSTANCE_ID mTpmInstanceId [] = TPM_INSTANCE_ID_LIST
CONST EFI_PEI_PPI_DESCRIPTOR gTpmSelectedPpi
EFI_PEI_PPI_DESCRIPTOR mTpmInitializationDonePpiList

Detailed Description

The module entry point for Tcg2 configuration module.

Copyright (c) 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.


Function Documentation

UINT8 DetectTpmDevice ( IN UINT8  SetupTpmDevice  ) 

This routine check both SetupVariable and real TPM device, and return final TpmDevice configuration.

Parameters:
SetupTpmDevice TpmDevice configuration in setup driver
Returns:
TpmDevice configuration

Referenced by Tcg2ConfigPeimEntryPoint(), and TrEEConfigPeimEntryPoint().

EFI_STATUS EFIAPI Tcg2ConfigPeimEntryPoint ( IN EFI_PEI_FILE_HANDLE  FileHandle,
IN CONST EFI_PEI_SERVICES **  PeiServices 
)

The entry point for Tcg2 configuration driver.

Parameters:
FileHandle Handle of the file being invoked.
PeiServices Describes the list of possible PEI Services.
Return values:
EFI_SUCCES Convert variable to PCD successfully.
Others Fail to convert variable to PCD.

References DetectTpmDevice(), EFI_STATUS(), gEfiTpmDeviceInstanceNoneGuid, gTcg2ConfigFormSetGuid, gTpmSelectedPpi, TCG2_STORAGE_NAME, TPM_DEVICE_DEFAULT, TPM_DEVICE_MAX, TPM_DEVICE_MIN, TPM_DEVICE_NULL, TCG2_CONFIGURATION::TpmDevice, TpmDevice, TPM_INSTANCE_ID::TpmInstanceGuid, and UINTN().


Variable Documentation

CONST EFI_PEI_PPI_DESCRIPTOR gTpmSelectedPpi

Initial value:

 {
  (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
  &gEfiTpmDeviceSelectedGuid,
  NULL
}

Referenced by Tcg2ConfigPeimEntryPoint(), and TrEEConfigPeimEntryPoint().

EFI_PEI_PPI_DESCRIPTOR mTpmInitializationDonePpiList

Initial value:

 {
  EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,
  &gPeiTpmInitializationDonePpiGuid,
  NULL
}

Referenced by PeimEntryMA().

TPM_INSTANCE_ID mTpmInstanceId[] = TPM_INSTANCE_ID_LIST


Generated on Thu Sep 24 23:44:24 2015 for SecurityPkg[ALL] by  doxygen 1.5.7.1