/* The function register DTPM2.0 instance and caches current active TPM interface type. */
EFI_STATUS EFIAPI Tpm2InstanceLibDTpmConstructor(VOID)
/* The function register DTPM2.0 instance and caches current active TPM interface type. */
EFI_STATUS EFIAPI Tpm2InstanceLibDTpmConstructor(VOID)
{
  EFI_STATUS  Status;
  Status = Tpm2RegisterTpm2DeviceLib (&mDTpm2InternalTpm2Device);
  if ((Status == EFI_SUCCESS) || (Status == EFI_UNSUPPORTED)) {
    if (Status == EFI_SUCCESS) {
      Status = InternalTpm2DeviceLibDTpmCommonConstructor ();
      DumpPtpInfo ((VOID *)(UINTN)PcdGet64 (PcdTpmBaseAddress));
    }
    return EFI_SUCCESS;
  }
  return Status;
}