SecurityPkg/Tcg/TrEEConfig/TrEEConfigPeim.c File Reference


Functions

UINT8 DetectTpmDevice (IN UINT8 SetupTpmDevice)
EFI_STATUS EFIAPI TrEEConfigPeimEntryPoint (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 TrEE configuration module.

Copyright (c) 2013 - 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

References EFI_STATUS(), gTcg2ConfigFormSetGuid, gTrEEConfigFormSetGuid, IsDtpmPresent(), TCG2_DEVICE_DETECTION_NAME, Tpm12RequestUseTpm(), Tpm12Startup(), TPM_DEVICE_1_2, TPM_DEVICE_2_0_DTPM, TPM_DEVICE_MAX, TPM_DEVICE_MIN, TPM_DEVICE_NULL, TREE_DEVICE_DETECTION::TpmDeviceDetected, TCG2_DEVICE_DETECTION::TpmDeviceDetected, TREE_DEVICE_DETECTION_NAME, and UINTN().

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

The entry point for TrEE 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, gTpmSelectedPpi, gTrEEConfigFormSetGuid, TPM_DEVICE_DEFAULT, TPM_DEVICE_MAX, TPM_DEVICE_MIN, TPM_DEVICE_NULL, TREE_CONFIGURATION::TpmDevice, TpmDevice, TPM_INSTANCE_ID::TpmInstanceGuid, TREE_STORAGE_NAME, 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
}

EFI_PEI_PPI_DESCRIPTOR mTpmInitializationDonePpiList

Initial value:

 {
  EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,
  &gPeiTpmInitializationDonePpiGuid,
  NULL
}

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